chore: Upgrade outline-icons (typescript)
This commit is contained in:
@@ -54,7 +54,7 @@ function DocumentTasks({ document }: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
const Done = styled(DoneIcon)`
|
||||
const Done = styled(DoneIcon)<{ $animated: boolean }>`
|
||||
margin: -1px;
|
||||
animation: ${(props) => (props.$animated ? bounceIn : "none")} 600ms;
|
||||
transform-origin: center center;
|
||||
|
||||
@@ -113,7 +113,7 @@ function Collections() {
|
||||
);
|
||||
}
|
||||
|
||||
const Disclosure = styled(CollapsedIcon)`
|
||||
const Disclosure = styled(CollapsedIcon)<{ expanded?: boolean }>`
|
||||
transition: transform 100ms ease, fill 50ms !important;
|
||||
${({ expanded }) => !expanded && "transform: rotate(-90deg);"};
|
||||
`;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { CollapsedIcon } from "outline-icons";
|
||||
import styled from "styled-components";
|
||||
|
||||
const Disclosure = styled(CollapsedIcon)`
|
||||
const Disclosure = styled(CollapsedIcon)<{ expanded?: boolean }>`
|
||||
transition: transform 100ms ease, fill 50ms !important;
|
||||
position: absolute;
|
||||
left: -24px;
|
||||
|
||||
@@ -160,7 +160,7 @@ function Starred() {
|
||||
);
|
||||
}
|
||||
|
||||
const Disclosure = styled(CollapsedIcon)`
|
||||
const Disclosure = styled(CollapsedIcon)<{ expanded?: boolean }>`
|
||||
transition: transform 100ms ease, fill 50ms !important;
|
||||
${({ expanded }) => !expanded && "transform: rotate(-90deg);"};
|
||||
`;
|
||||
|
||||
@@ -44,7 +44,7 @@ function StarredLink({ depth, title, to, documentId, collectionId }: Props) {
|
||||
}, [collection, collectionId, collections, document, documentId, documents]);
|
||||
|
||||
const handleDisclosureClick = React.useCallback(
|
||||
(ev: React.MouseEvent<HTMLDivElement>) => {
|
||||
(ev: React.MouseEvent<SVGElement>) => {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
setExpanded((prevExpanded) => !prevExpanded);
|
||||
|
||||
@@ -24,12 +24,7 @@ function SearchInput({ defaultValue, ...rest }: Props) {
|
||||
|
||||
return (
|
||||
<Wrapper align="center">
|
||||
<StyledIcon
|
||||
type="Search"
|
||||
size={46}
|
||||
color={theme.textTertiary}
|
||||
onClick={focusInput}
|
||||
/>
|
||||
<StyledIcon size={46} color={theme.textTertiary} onClick={focusInput} />
|
||||
<StyledInput
|
||||
{...rest}
|
||||
defaultValue={defaultValue}
|
||||
|
||||
2
app/typings/index.d.ts
vendored
2
app/typings/index.d.ts
vendored
@@ -2,8 +2,6 @@ declare module "autotrack/autotrack.js";
|
||||
|
||||
declare module "boundless-arrow-key-navigation";
|
||||
|
||||
declare module "outline-icons";
|
||||
|
||||
declare module "string-replace-to-array";
|
||||
|
||||
declare module "styled-components-breakpoint";
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
"mobx-react": "^6.3.1",
|
||||
"natural-sort": "^1.0.0",
|
||||
"nodemailer": "^6.4.16",
|
||||
"outline-icons": "^1.33.1",
|
||||
"outline-icons": "^1.35.0",
|
||||
"oy-vey": "^0.10.0",
|
||||
"passport": "^0.4.1",
|
||||
"passport-google-oauth2": "^0.2.0",
|
||||
|
||||
@@ -11215,10 +11215,10 @@ os-browserify@^0.3.0:
|
||||
resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27"
|
||||
integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=
|
||||
|
||||
outline-icons@^1.26.1, outline-icons@^1.33.1:
|
||||
version "1.33.1"
|
||||
resolved "https://registry.yarnpkg.com/outline-icons/-/outline-icons-1.33.1.tgz#2abe0dbd8604d2740ad8a0cb1e3d5baea2a91d2e"
|
||||
integrity sha512-PRpk5cPZHhrc1o1oRwIaJTaXCtUA1Rc2L/ywLvdVmXOLoADBJT6ak7TV9/g75IFCive54oIx8JQ1tt5k0RtQPw==
|
||||
outline-icons@^1.26.1, outline-icons@^1.35.0:
|
||||
version "1.35.0"
|
||||
resolved "https://registry.yarnpkg.com/outline-icons/-/outline-icons-1.35.0.tgz#3249d8e8a05b491e8820ca182175336240d1cfa5"
|
||||
integrity sha512-QWPrft2WKy6eIGBbzeaO/0sYXHuLvbQoBa7NrGQM5j7R9/AoxItnJdolYWKiZJAH8tUxfp2yuBdg+H9/z1Zf+g==
|
||||
|
||||
oy-vey@^0.10.0:
|
||||
version "0.10.0"
|
||||
|
||||
Reference in New Issue
Block a user