@chayns-components/core 5.2.4-alpha.0 → 5.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/list/list-item/ListItem.js +1 -2
- package/lib/cjs/components/list/list-item/ListItem.js.map +1 -1
- package/lib/cjs/components/list/list-item/ListItem.styles.js +1 -2
- package/lib/cjs/components/list/list-item/ListItem.styles.js.map +1 -1
- package/lib/cjs/components/list/list-item/list-item-head/ListItemHead.js +3 -4
- package/lib/cjs/components/list/list-item/list-item-head/ListItemHead.js.map +1 -1
- package/lib/cjs/components/list/list-item/list-item-head/ListItemHead.styles.js +3 -4
- package/lib/cjs/components/list/list-item/list-item-head/ListItemHead.styles.js.map +1 -1
- package/lib/cjs/components/skeleton/base-skeleton/BaseSkeleton.styles.js +0 -2
- package/lib/cjs/components/skeleton/base-skeleton/BaseSkeleton.styles.js.map +1 -1
- package/lib/cjs/constants/list.js +0 -9
- package/lib/cjs/constants/list.js.map +1 -1
- package/lib/cjs/hooks/element.js +32 -12
- package/lib/cjs/hooks/element.js.map +1 -1
- package/lib/esm/components/list/list-item/ListItem.js +1 -2
- package/lib/esm/components/list/list-item/ListItem.js.map +1 -1
- package/lib/esm/components/list/list-item/ListItem.styles.js +1 -2
- package/lib/esm/components/list/list-item/ListItem.styles.js.map +1 -1
- package/lib/esm/components/list/list-item/list-item-head/ListItemHead.js +3 -4
- package/lib/esm/components/list/list-item/list-item-head/ListItemHead.js.map +1 -1
- package/lib/esm/components/list/list-item/list-item-head/ListItemHead.styles.js +3 -4
- package/lib/esm/components/list/list-item/list-item-head/ListItemHead.styles.js.map +1 -1
- package/lib/esm/components/skeleton/base-skeleton/BaseSkeleton.styles.js +0 -2
- package/lib/esm/components/skeleton/base-skeleton/BaseSkeleton.styles.js.map +1 -1
- package/lib/esm/constants/list.js +1 -4
- package/lib/esm/constants/list.js.map +1 -1
- package/lib/esm/hooks/element.js +32 -12
- package/lib/esm/hooks/element.js.map +1 -1
- package/lib/types/components/accordion/Accordion.styles.d.ts +18 -6
- package/lib/types/components/accordion/accordion-body/AccordionBody.styles.d.ts +11 -6
- package/lib/types/components/accordion/accordion-content/AccordionContent.styles.d.ts +9 -5
- package/lib/types/components/accordion/accordion-head/AccordionHead.styles.d.ts +64 -25
- package/lib/types/components/accordion/accordion-intro/AccordionIntro.styles.d.ts +1 -1
- package/lib/types/components/accordion/accordion-item/AccordionItem.styles.d.ts +8 -5
- package/lib/types/components/amount-control/AmountControl.styles.d.ts +44 -17
- package/lib/types/components/badge/Badge.styles.d.ts +24 -12
- package/lib/types/components/button/Button.styles.d.ts +25 -9
- package/lib/types/components/button/wait-cursor/WaitCursor.styles.d.ts +20 -10
- package/lib/types/components/checkbox/Checkbox.styles.d.ts +45 -24
- package/lib/types/components/color-scheme-provider/ColorSchemeProvider.styles.d.ts +4 -2
- package/lib/types/components/combobox/ComboBox.styles.d.ts +65 -28
- package/lib/types/components/combobox/combobox-item/ComboBoxItem.styles.d.ts +28 -15
- package/lib/types/components/content-card/ContentCard.styles.d.ts +9 -5
- package/lib/types/components/context-menu/ContextMenu.styles.d.ts +10 -5
- package/lib/types/components/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +30 -15
- package/lib/types/components/dropdown-body-wrapper/DropdownBodyWrapper.styles.d.ts +12 -6
- package/lib/types/components/dropdown-body-wrapper/delayed-dropdown-content/DelayedDropdownContent.styles.d.ts +13 -6
- package/lib/types/components/expandable-content/ExpandableContent.styles.d.ts +3 -1
- package/lib/types/components/file-input/FileInput.styles.d.ts +33 -16
- package/lib/types/components/file-list/FileList.styles.d.ts +1 -1
- package/lib/types/components/file-list/file-item/FileItem.styles.d.ts +1 -1
- package/lib/types/components/file-select/FileSelect.styles.d.ts +33 -16
- package/lib/types/components/filter/Filter.styles.d.ts +43 -18
- package/lib/types/components/filter/filter-content/FilterContent.styles.d.ts +17 -12
- package/lib/types/components/filter-buttons/FilterButtons.styles.d.ts +1 -1
- package/lib/types/components/filter-buttons/filter-button/FilterButton.styles.d.ts +44 -19
- package/lib/types/components/grid-image/GridImage.styles.d.ts +14 -8
- package/lib/types/components/grouped-image/GroupedImage.styles.d.ts +39 -16
- package/lib/types/components/highlight-slider/HighlightSlider.styles.d.ts +1 -1
- package/lib/types/components/highlight-slider/highlight-slider-item/HighlightSliderItem.styles.d.ts +23 -11
- package/lib/types/components/icon/Icon.styles.d.ts +20 -8
- package/lib/types/components/input/Input.styles.d.ts +74 -29
- package/lib/types/components/list/list-item/ListItem.styles.d.ts +544 -7
- package/lib/types/components/list/list-item/list-item-body/ListItemBody.styles.d.ts +3 -1
- package/lib/types/components/list/list-item/list-item-content/ListItemContent.styles.d.ts +1 -1
- package/lib/types/components/list/list-item/list-item-head/ListItemHead.styles.d.ts +1605 -15
- package/lib/types/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.d.ts +9 -5
- package/lib/types/components/list/list-item/list-item-head/list-item-right-element/ListItemRightElement.styles.d.ts +1 -1
- package/lib/types/components/list/list-item/list-item-head/list-item-subtitle/ListItemSubtitle.styles.d.ts +10 -7
- package/lib/types/components/list/list-item/list-item-head/list-item-title/ListItemTitle.styles.d.ts +13 -9
- package/lib/types/components/mention-finder/MentionFinder.styles.d.ts +39 -14
- package/lib/types/components/mention-finder/mention-finder-item/MentionFinderItem.styles.d.ts +19 -11
- package/lib/types/components/multi-action-button/MultiActionButton.styles.d.ts +12 -6
- package/lib/types/components/multi-action-button/action-button/ActionButton.styles.d.ts +30 -10
- package/lib/types/components/page-provider/PageProvider.styles.d.ts +1 -1
- package/lib/types/components/popup/Popup.styles.d.ts +13 -7
- package/lib/types/components/popup/popup-content/PopupContent.styles.d.ts +1 -1
- package/lib/types/components/popup/popup-content-wrapper/PopupContentWrapper.styles.d.ts +22 -9
- package/lib/types/components/progress-bar/ProgressBar.styles.d.ts +71 -27
- package/lib/types/components/radio-button/RadioButton.styles.d.ts +54 -23
- package/lib/types/components/scroll-view/ScrollView.styles.d.ts +19 -11
- package/lib/types/components/search-box/SearchBox.styles.d.ts +16 -10
- package/lib/types/components/search-box/group-name/GroupName.styles.d.ts +8 -5
- package/lib/types/components/search-box/search-box-body/SearchBoxBody.styles.d.ts +23 -11
- package/lib/types/components/search-box/search-box-item/SearchBoxItem.styles.d.ts +16 -9
- package/lib/types/components/search-input/SearchInput.styles.d.ts +18 -9
- package/lib/types/components/select-button/SelectButton.styles.d.ts +1 -1
- package/lib/types/components/setup-wizard/SetupWizard.styles.d.ts +1 -1
- package/lib/types/components/setup-wizard/setup-wizard-item/SetupWizardItem.styles.d.ts +1 -1
- package/lib/types/components/sharing-bar/SharingBar.styles.d.ts +6 -4
- package/lib/types/components/sharing-button/SharingButton.styles.d.ts +1 -1
- package/lib/types/components/signature/Signature.styles.d.ts +7 -5
- package/lib/types/components/skeleton/base-skeleton/BaseSkeleton.styles.d.ts +15 -12
- package/lib/types/components/skeleton/variants/accordion-skeleton/AccordionSkeleton.styles.d.ts +1 -1
- package/lib/types/components/skeleton/variants/list-item-skeleton/ListItemSkeleton.styles.d.ts +2 -2
- package/lib/types/components/skeleton/variants/text-skeleton/TextSkeleton.styles.d.ts +1 -1
- package/lib/types/components/slider/Slider.styles.d.ts +59 -21
- package/lib/types/components/slider-button/SliderButton.styles.d.ts +56 -22
- package/lib/types/components/small-wait-cursor/SmallWaitCursor.styles.d.ts +26 -12
- package/lib/types/components/tag-input/TagInput.styles.d.ts +16 -11
- package/lib/types/components/text-area/TextArea.styles.d.ts +49 -23
- package/lib/types/components/tooltip/Tooltip.styles.d.ts +11 -6
- package/lib/types/components/tooltip/tooltip-item/TooltipItem.styles.d.ts +20 -12
- package/lib/types/components/truncation/Truncation.styles.d.ts +14 -9
- package/lib/types/components/verification-badge/VerificationBadge.styles.d.ts +1 -1
- package/lib/types/constants/list.d.ts +0 -4
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.js","names":["React","Children","cloneElement","isValidElement","useEffect","useRef","useState","useElementSize","ref","shouldUseChildElement","shouldUseParentElement","size","setSize","target","current","parentElement","firstElementChild","updateSize","getBoundingClientRect","observer","ResizeObserver","entries","forEach","entry","contentRect","observe","disconnect","cloneWithTabIndex","node","element","tmpChildren","props","children","map","type","displayName","createElement","tabIndex","getClonedElement","content","preventEvents","onClick","e","stopPropagation","onMouseDown","onMouseUp","onKeyDown","onKeyUp","onFocus","onBlur","useMeasuredClone","shouldPreventTextWrapping","width","height","clonedElement","measure","offsetWidth","offsetHeight","measuredElement","style","position","opacity","pointerEvents","userSelect","zIndex","visibility","inert","useIsMeasuredClone","isClone","setIsClone","el","hasAttribute"],"sources":["../../../src/hooks/element.tsx"],"sourcesContent":["import React, {\n Children,\n cloneElement,\n HTMLAttributes,\n isValidElement,\n MutableRefObject,\n ReactElement,\n ReactNode,\n useEffect,\n useRef,\n useState,\n} from 'react';\n\ninterface UseElementSizeOptions {\n shouldUseChildElement?: boolean;\n shouldUseParentElement?: boolean;\n}\n\nexport const useElementSize = (\n ref: MutableRefObject<HTMLDivElement | HTMLLabelElement | null>,\n { shouldUseChildElement = false, shouldUseParentElement = false }: UseElementSizeOptions = {},\n): DOMRectReadOnly | undefined => {\n const [size, setSize] = useState<DOMRectReadOnly>();\n\n useEffect(() => {\n let target = ref.current as HTMLElement | null;\n\n if (shouldUseParentElement) {\n target = ref.current?.parentElement as HTMLElement | null;\n }\n\n if (shouldUseChildElement) {\n target = ref.current?.firstElementChild as HTMLElement | null;\n }\n\n if (!target) return () => {};\n\n const updateSize = () => setSize(target.getBoundingClientRect());\n\n updateSize();\n\n const observer = new ResizeObserver((entries) => {\n entries.forEach((entry) => {\n if (entry.target === target) {\n setSize(entry.contentRect);\n }\n });\n });\n\n observer.observe(target);\n\n return () => observer.disconnect();\n }, [ref, shouldUseChildElement, shouldUseParentElement]);\n\n return size;\n};\n\nconst cloneWithTabIndex = (node: ReactNode): ReactNode => {\n if (!isValidElement(node)) return node;\n\n const element = node as ReactElement;\n\n const tmpChildren = (element.props as { children: ReactNode[] }).children;\n\n const children = tmpChildren ? Children.map(tmpChildren, cloneWithTabIndex) : tmpChildren;\n\n if ((element.type as unknown as { displayName: string }).displayName === 'Button') {\n return (\n // eslint-disable-next-line react/button-has-type\n <button tabIndex={-1}>{children}</button>\n );\n }\n\n return cloneElement(element, {\n ...element.props,\n tabIndex: -1,\n children,\n });\n};\n\nconst getClonedElement = (content: ReactNode) => {\n const preventEvents: Partial<HTMLAttributes<never>> = {\n onClick: (e) => e.stopPropagation(),\n onMouseDown: (e) => e.stopPropagation(),\n onMouseUp: (e) => e.stopPropagation(),\n onKeyDown: (e) => e.stopPropagation(),\n onKeyUp: (e) => e.stopPropagation(),\n onFocus: (e) => e.stopPropagation(),\n onBlur: (e) => e.stopPropagation(),\n };\n\n if (typeof content === 'string') {\n return (\n <span tabIndex={-1} data-measured-clone>\n {content}\n </span>\n );\n }\n\n if (isValidElement(content)) {\n return cloneWithTabIndex(\n cloneElement(content, {\n ...preventEvents,\n 'data-measured-clone': true,\n }),\n );\n }\n\n return content;\n};\n\ninterface UseMeasuredCloneOptions {\n content: ReactNode;\n shouldPreventTextWrapping?: boolean;\n}\n\nexport const useMeasuredClone = ({\n content,\n shouldPreventTextWrapping = true,\n}: UseMeasuredCloneOptions) => {\n const ref = useRef<HTMLDivElement>(null);\n\n const [size, setSize] = useState({ width: 0, height: 0 });\n\n const clonedElement = getClonedElement(content);\n\n useEffect(() => {\n const measure = () => {\n if (!ref.current) return;\n\n const { offsetWidth: width, offsetHeight: height } = ref.current;\n\n setSize({ width: width + (shouldPreventTextWrapping ? 10 : 0), height });\n };\n\n measure();\n\n const observer = new ResizeObserver(measure);\n\n if (ref.current) observer.observe(ref.current);\n\n return () => observer.disconnect();\n }, [shouldPreventTextWrapping]);\n\n const measuredElement = (\n <div\n data-measured-clone=\"true\"\n ref={ref}\n style={{\n position: 'fixed',\n opacity: 0,\n pointerEvents: 'none',\n userSelect: 'none',\n zIndex: -1,\n height: 'auto',\n width: 'auto',\n visibility: 'hidden',\n }}\n inert=\"true\"\n tabIndex={-1}\n >\n {clonedElement}\n </div>\n );\n\n return {\n measuredElement,\n width: size.width,\n height: size.height,\n };\n};\n\nexport const useIsMeasuredClone = <T extends HTMLElement>() => {\n const ref = useRef<T | null>(null);\n\n const [isClone, setIsClone] = useState(false);\n\n useEffect(() => {\n if (!ref.current) return;\n\n let el: HTMLElement | null = ref.current;\n\n while (el) {\n if (el.hasAttribute('data-measured-clone')) {\n setIsClone(true);\n\n return;\n }\n\n el = el.parentElement;\n }\n\n setIsClone(false);\n }, []);\n\n return [isClone, ref] as const;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IACRC,QAAQ,EACRC,YAAY,EAEZC,cAAc,EAIdC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACL,OAAO;AAOd,OAAO,MAAMC,cAAc,GAAGA,CAC1BC,GAA+D,EAC/D;EAAEC,qBAAqB,GAAG,KAAK;EAAEC,sBAAsB,GAAG;AAA6B,CAAC,GAAG,CAAC,CAAC,KAC/D;EAC9B,MAAM,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAGN,QAAQ,CAAkB,CAAC;EAEnDF,SAAS,CAAC,MAAM;IACZ,IAAIS,MAAM,GAAGL,GAAG,CAACM,OAA6B;IAE9C,IAAIJ,sBAAsB,EAAE;MACxBG,MAAM,GAAGL,GAAG,CAACM,OAAO,EAAEC,aAAmC;IAC7D;IAEA,IAAIN,qBAAqB,EAAE;MACvBI,MAAM,GAAGL,GAAG,CAACM,OAAO,EAAEE,iBAAuC;IACjE;IAEA,IAAI,CAACH,MAAM,EAAE,OAAO,MAAM,CAAC,CAAC;IAE5B,MAAMI,UAAU,GAAGA,CAAA,KAAML,OAAO,CAACC,MAAM,CAACK,qBAAqB,CAAC,CAAC,CAAC;IAEhED,UAAU,CAAC,CAAC;IAEZ,MAAME,QAAQ,GAAG,IAAIC,cAAc,CAAEC,OAAO,IAAK;MAC7CA,OAAO,CAACC,OAAO,CAAEC,KAAK,IAAK;QACvB,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C,IAAI,CAAC;QAEhB;MACJ;MAEAC,EAAE,GAAGA,EAAE,CAACvD,aAAa;IACzB;IAEAsD,UAAU,CAAC,KAAK,CAAC;EACrB,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO,CAACD,OAAO,EAAE5D,GAAG,CAAC;AACzB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"element.js","names":["React","Children","cloneElement","isValidElement","useEffect","useRef","useState","isSameRect","a","b","width","height","x","y","useElementSize","ref","shouldUseChildElement","shouldUseParentElement","size","setSize","target","current","parentElement","firstElementChild","undefined","frameId","updateSize","nextSize","window","cancelAnimationFrame","requestAnimationFrame","currentSize","getBoundingClientRect","observer","ResizeObserver","entry","contentRect","observe","disconnect","cloneWithTabIndex","node","element","type","Fragment","children","map","props","displayName","createElement","tabIndex","getClonedElement","content","preventEvents","onClick","e","stopPropagation","onMouseDown","onMouseUp","onKeyDown","onKeyUp","onFocus","onBlur","useMeasuredClone","shouldPreventTextWrapping","clonedElement","measure","offsetWidth","offsetHeight","measuredElement","style","position","opacity","pointerEvents","userSelect","zIndex","visibility","inert","useIsMeasuredClone","isClone","setIsClone","el","hasAttribute"],"sources":["../../../src/hooks/element.tsx"],"sourcesContent":["import React, {\n Children,\n cloneElement,\n HTMLAttributes,\n isValidElement,\n MutableRefObject,\n ReactElement,\n ReactNode,\n useEffect,\n useRef,\n useState,\n} from 'react';\n\ninterface UseElementSizeOptions {\n shouldUseChildElement?: boolean;\n shouldUseParentElement?: boolean;\n}\n\nconst isSameRect = (a?: DOMRectReadOnly, b?: DOMRectReadOnly) => {\n if (!a || !b) return false;\n\n return a.width === b.width && a.height === b.height && a.x === b.x && a.y === b.y;\n};\n\nexport const useElementSize = (\n ref: MutableRefObject<HTMLDivElement | HTMLLabelElement | null>,\n { shouldUseChildElement = false, shouldUseParentElement = false }: UseElementSizeOptions = {},\n): DOMRectReadOnly | undefined => {\n const [size, setSize] = useState<DOMRectReadOnly>();\n\n useEffect(() => {\n let target: HTMLElement | null = ref.current;\n\n if (shouldUseParentElement) {\n target = ref.current?.parentElement ?? null;\n }\n\n if (shouldUseChildElement) {\n target = ref.current?.firstElementChild as HTMLElement | null;\n }\n\n if (!target) return undefined;\n\n let frameId: number | undefined;\n\n const updateSize = (nextSize: DOMRectReadOnly) => {\n if (frameId) {\n window.cancelAnimationFrame(frameId);\n }\n\n frameId = window.requestAnimationFrame(() => {\n setSize((currentSize) =>\n isSameRect(currentSize, nextSize) ? currentSize : nextSize,\n );\n });\n };\n\n updateSize(target.getBoundingClientRect());\n\n const observer = new ResizeObserver(([entry]) => {\n if (!entry || entry.target !== target) return;\n\n updateSize(entry.contentRect);\n });\n\n observer.observe(target);\n\n return () => {\n if (frameId) {\n window.cancelAnimationFrame(frameId);\n }\n\n observer.disconnect();\n };\n }, [ref, shouldUseChildElement, shouldUseParentElement]);\n\n return size;\n};\n\nconst cloneWithTabIndex = (node: ReactNode): ReactNode => {\n if (!isValidElement(node)) return node;\n\n const element = node as ReactElement;\n\n if (element.type === React.Fragment) {\n const children = Children.map(element.props.children, cloneWithTabIndex);\n\n return cloneElement(element, {\n ...element.props,\n children,\n });\n }\n\n const children = element.props.children\n ? Children.map(element.props.children, cloneWithTabIndex)\n : element.props.children;\n\n if ((element.type as any).displayName === 'Button') {\n return (\n // eslint-disable-next-line react/button-has-type\n <button tabIndex={-1}>{children}</button>\n );\n }\n\n return cloneElement(element, {\n ...element.props,\n tabIndex: -1,\n children,\n });\n};\n\nconst getClonedElement = (content: ReactNode) => {\n const preventEvents: Partial<HTMLAttributes<never>> = {\n onClick: (e) => e.stopPropagation(),\n onMouseDown: (e) => e.stopPropagation(),\n onMouseUp: (e) => e.stopPropagation(),\n onKeyDown: (e) => e.stopPropagation(),\n onKeyUp: (e) => e.stopPropagation(),\n onFocus: (e) => e.stopPropagation(),\n onBlur: (e) => e.stopPropagation(),\n };\n\n if (typeof content === 'string') {\n return (\n <span tabIndex={-1} data-measured-clone>\n {content}\n </span>\n );\n }\n\n if (isValidElement(content)) {\n return cloneWithTabIndex(\n cloneElement(content, {\n ...preventEvents,\n 'data-measured-clone': true,\n }),\n );\n }\n\n return content;\n};\n\ninterface UseMeasuredCloneOptions {\n content: ReactNode;\n shouldPreventTextWrapping?: boolean;\n}\n\nexport const useMeasuredClone = ({\n content,\n shouldPreventTextWrapping = true,\n}: UseMeasuredCloneOptions) => {\n const ref = useRef<HTMLDivElement>(null);\n\n const [size, setSize] = useState({ width: 0, height: 0 });\n\n const clonedElement = getClonedElement(content);\n\n useEffect(() => {\n const measure = () => {\n if (!ref.current) return;\n\n const { offsetWidth: width, offsetHeight: height } = ref.current;\n\n setSize({ width: width + (shouldPreventTextWrapping ? 10 : 0), height });\n };\n\n measure();\n\n const observer = new ResizeObserver(measure);\n\n if (ref.current) observer.observe(ref.current);\n\n return () => observer.disconnect();\n }, [shouldPreventTextWrapping]);\n\n const measuredElement = (\n <div\n data-measured-clone=\"true\"\n ref={ref}\n style={{\n position: 'fixed',\n opacity: 0,\n pointerEvents: 'none',\n userSelect: 'none',\n zIndex: -1,\n height: 'auto',\n width: 'auto',\n visibility: 'hidden',\n }}\n inert=\"true\"\n tabIndex={-1}\n >\n {clonedElement}\n </div>\n );\n\n return {\n measuredElement,\n width: size.width,\n height: size.height,\n };\n};\n\nexport const useIsMeasuredClone = <T extends HTMLElement>() => {\n const ref = useRef<T | null>(null);\n\n const [isClone, setIsClone] = useState(false);\n\n useEffect(() => {\n if (!ref.current) return;\n\n let el: HTMLElement | null = ref.current;\n\n while (el) {\n if (el.hasAttribute('data-measured-clone')) {\n setIsClone(true);\n\n return;\n }\n\n el = el.parentElement;\n }\n\n setIsClone(false);\n }, []);\n\n return [isClone, ref] as const;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IACRC,QAAQ,EACRC,YAAY,EAEZC,cAAc,EAIdC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACL,OAAO;AAOd,MAAMC,UAAU,GAAGA,CAACC,CAAmB,EAAEC,CAAmB,KAAK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I,CAACP;EACjB,CAAC;AACL,CAAC;AAED,OAAO,MAAMkE,kBAAkB,GAAGA,CAAA,KAA6B;EAC3D,MAAM9D,GAAG,GAAGV,MAAM,CAAW,IAAI,CAAC;EAElC,MAAM,CAACyE,OAAO,EAAEC,UAAU,CAAC,GAAGzE,QAAQ,CAAC,KAAK,CAAC;EAE7CF,SAAS,CAAC,MAAM;IACZ,IAAI,CAACW,GAAG,CAACM,OAAO,EAAE;IAElB,IAAI2D,EAAsB,GAAGjE,GAAG,CAACM,OAAO;IAExC,OAAO2D,EAAE,EAAE;MACP,IAAIA,EAAE,CAACC,YAAY,CAAC,qBAAqB,CAAC,EAAE;QACxCF,UAAU,CAAC,IAAI,CAAC;QAEhB;MACJ;MAEAC,EAAE,GAAGA,EAAE,CAAC1D,aAAa;IACzB;IAEAyD,UAAU,CAAC,KAAK,CAAC;EACrB,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO,CAACD,OAAO,EAAE/D,GAAG,CAAC;AACzB,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const StyledMotionAccordion: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
3
|
+
}, "theme" | "$isWrapped" | "$isOpen" | "$isParentWrapped" | "$shouldForceBackground" | "$shouldHideBackground" | "$shouldShowLines" | "$shouldHideBottomLine" | "$bottomBorderColor"> & {
|
|
3
4
|
$isOpen: boolean;
|
|
4
5
|
$isParentWrapped?: boolean;
|
|
5
6
|
$isWrapped?: boolean;
|
|
@@ -8,8 +9,19 @@ type StyledMotionAccordionProps = WithTheme<{
|
|
|
8
9
|
$shouldShowLines?: boolean;
|
|
9
10
|
$shouldHideBottomLine: boolean;
|
|
10
11
|
$bottomBorderColor?: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
12
|
+
} & {
|
|
13
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
14
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
13
15
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
+
}, "theme" | "$isWrapped" | "$isOpen" | "$isParentWrapped" | "$shouldForceBackground" | "$shouldHideBackground" | "$shouldShowLines" | "$shouldHideBottomLine" | "$bottomBorderColor"> & {
|
|
17
|
+
$isOpen: boolean;
|
|
18
|
+
$isParentWrapped?: boolean;
|
|
19
|
+
$isWrapped?: boolean;
|
|
20
|
+
$shouldForceBackground?: boolean;
|
|
21
|
+
$shouldHideBackground?: boolean;
|
|
22
|
+
$shouldShowLines?: boolean;
|
|
23
|
+
$shouldHideBottomLine: boolean;
|
|
24
|
+
$bottomBorderColor?: string;
|
|
25
|
+
} & {
|
|
26
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
27
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const StyledMotionAccordionBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
3
|
+
}, "theme" | "$maxHeight"> & {
|
|
3
4
|
$maxHeight?: number;
|
|
4
|
-
}
|
|
5
|
-
|
|
5
|
+
} & {
|
|
6
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
7
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
8
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
+
}, "theme" | "$maxHeight"> & {
|
|
10
|
+
$maxHeight?: number;
|
|
11
|
+
} & {
|
|
12
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
13
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
type StyledAccordionContentProps = WithTheme<{
|
|
1
|
+
export declare const StyledAccordionContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$maxHeight" | "$shouldPreventBottomSpace"> & {
|
|
3
2
|
$maxHeight?: number;
|
|
4
3
|
$shouldPreventBottomSpace: boolean;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
} & {
|
|
5
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
6
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$maxHeight" | "$shouldPreventBottomSpace"> & {
|
|
7
|
+
$maxHeight?: number;
|
|
8
|
+
$shouldPreventBottomSpace: boolean;
|
|
9
|
+
} & {
|
|
10
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
11
|
+
}, never>>> & string;
|
|
@@ -1,52 +1,91 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const StyledMotionAccordionHead: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
2
|
+
export declare const StyledMotionAccordionHead: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
4
3
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
5
|
-
}, {
|
|
4
|
+
}, "theme"> & {
|
|
6
5
|
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
7
|
-
}
|
|
6
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
8
|
+
}, "theme"> & {
|
|
9
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
10
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
8
11
|
export declare const StyledMotionIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
12
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
10
|
-
}, never
|
|
11
|
-
|
|
13
|
+
}, never> & Partial<Pick<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
14
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
15
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
16
|
+
export declare const StyledMotionContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
17
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
18
|
+
}, "theme" | "$isWrapped"> & {
|
|
12
19
|
$isWrapped: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
20
|
+
} & {
|
|
21
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
22
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
23
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
16
|
-
},
|
|
24
|
+
}, "theme" | "$isWrapped"> & {
|
|
25
|
+
$isWrapped: boolean;
|
|
26
|
+
} & {
|
|
27
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
28
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
17
29
|
export declare const StyledMotionTitleWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
18
30
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
19
|
-
}, never
|
|
20
|
-
|
|
21
|
-
|
|
31
|
+
}, never> & Partial<Pick<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
32
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
33
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
34
|
+
export declare const StyledTitleInputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
35
|
+
export declare const StyledMotionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
36
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
37
|
+
}, "theme" | "$color" | "$isWrapped" | "$isOpen" | "$hasSearch"> & {
|
|
22
38
|
$isOpen: boolean;
|
|
23
39
|
$isWrapped: boolean;
|
|
24
|
-
$color?: CSSProperties[
|
|
40
|
+
$color?: CSSProperties["color"];
|
|
25
41
|
$hasSearch: boolean;
|
|
26
|
-
}
|
|
27
|
-
|
|
42
|
+
} & {
|
|
43
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
44
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
28
45
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
29
|
-
},
|
|
46
|
+
}, "theme" | "$color" | "$isWrapped" | "$isOpen" | "$hasSearch"> & {
|
|
47
|
+
$isOpen: boolean;
|
|
48
|
+
$isWrapped: boolean;
|
|
49
|
+
$color?: CSSProperties["color"];
|
|
50
|
+
$hasSearch: boolean;
|
|
51
|
+
} & {
|
|
52
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
53
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
30
54
|
export declare const StyledMotionTitleElementWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
31
55
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
32
|
-
}, never
|
|
56
|
+
}, never> & Partial<Pick<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
57
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
58
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
33
59
|
type StyledRightWrapperProps = {
|
|
34
60
|
$isSearchActive: boolean;
|
|
35
61
|
};
|
|
36
|
-
export declare const StyledRightWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components
|
|
62
|
+
export declare const StyledRightWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isSearchActive"> & StyledRightWrapperProps, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$isSearchActive"> & StyledRightWrapperProps, never>>> & string;
|
|
37
63
|
export declare const StyledMotionSearchWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
38
64
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
39
|
-
}, never
|
|
65
|
+
}, never> & Partial<Pick<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
66
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
67
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
40
68
|
export declare const StyledMotionRightElementWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
41
69
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
42
|
-
}, never
|
|
43
|
-
|
|
70
|
+
}, never> & Partial<Pick<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
71
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
72
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
73
|
+
export declare const StyledMotionRightInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"input">, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
74
|
+
ref?: ((instance: HTMLInputElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
75
|
+
}, "theme" | "$hasIcon"> & {
|
|
44
76
|
$hasIcon: boolean;
|
|
45
|
-
}
|
|
46
|
-
|
|
77
|
+
} & {
|
|
78
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
79
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"input">, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
47
80
|
ref?: ((instance: HTMLInputElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
48
|
-
},
|
|
81
|
+
}, "theme" | "$hasIcon"> & {
|
|
82
|
+
$hasIcon: boolean;
|
|
83
|
+
} & {
|
|
84
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
85
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLInputElement, import("motion/react").HTMLMotionProps<"input">>, keyof React.Component<any, {}, any>>;
|
|
49
86
|
export declare const StyledMotionRightInputIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
50
87
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
51
|
-
}, never
|
|
88
|
+
}, never> & Partial<Pick<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
89
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
90
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
52
91
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const StyledAccordionIntro: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never
|
|
1
|
+
export declare const StyledAccordionIntro: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
type StyledAccordionItemProps = WithTheme<{
|
|
1
|
+
export declare const StyledAccordionItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$isWrapped"> & {
|
|
3
2
|
$isWrapped?: boolean;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
} & {
|
|
4
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
5
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$isWrapped"> & {
|
|
6
|
+
$isWrapped?: boolean;
|
|
7
|
+
} & {
|
|
8
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
9
|
+
}, never>>> & string;
|
|
@@ -1,29 +1,56 @@
|
|
|
1
|
-
import type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';
|
|
2
1
|
import type { DisplayState } from './AmountControl';
|
|
3
|
-
|
|
2
|
+
export declare const StyledAmountControl: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$isDisabled"> & {
|
|
4
3
|
$isDisabled: boolean;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
} & {
|
|
5
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
6
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$isDisabled"> & {
|
|
7
|
+
$isDisabled: boolean;
|
|
8
|
+
} & {
|
|
9
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
10
|
+
}, never>>> & string;
|
|
11
|
+
export declare const StyledInputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & {
|
|
12
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
13
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & {
|
|
14
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
15
|
+
}, never>>> & string;
|
|
16
|
+
export declare const StyledAmountControlInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "theme" | "$displayState" | "$shouldShowIcon" | "$hasFocus" | "$shouldShowWideInput"> & {
|
|
17
|
+
$displayState: DisplayState;
|
|
18
|
+
$shouldShowIcon: boolean;
|
|
19
|
+
$hasFocus: boolean;
|
|
20
|
+
$shouldShowWideInput: boolean;
|
|
21
|
+
} & {
|
|
22
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
23
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "theme" | "$displayState" | "$shouldShowIcon" | "$hasFocus" | "$shouldShowWideInput"> & {
|
|
8
24
|
$displayState: DisplayState;
|
|
9
25
|
$shouldShowIcon: boolean;
|
|
10
26
|
$hasFocus: boolean;
|
|
11
27
|
$shouldShowWideInput: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const StyledInputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
28
|
+
} & {
|
|
14
29
|
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
15
|
-
}
|
|
16
|
-
export declare const
|
|
17
|
-
type StyledAmountControlPseudoInputProps = WithTheme<{
|
|
30
|
+
}, never>>> & string;
|
|
31
|
+
export declare const StyledAmountControlPseudoInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$shouldShowWideInput" | "$shouldShowRightIcon"> & {
|
|
18
32
|
$shouldShowWideInput: boolean;
|
|
19
33
|
$shouldShowRightIcon: boolean;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
34
|
+
} & {
|
|
35
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
36
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$shouldShowWideInput" | "$shouldShowRightIcon"> & {
|
|
37
|
+
$shouldShowWideInput: boolean;
|
|
38
|
+
$shouldShowRightIcon: boolean;
|
|
39
|
+
} & {
|
|
40
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
41
|
+
}, never>>> & string;
|
|
42
|
+
export declare const StyledMotionAmountControlButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"button">, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
43
|
+
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
44
|
+
}, "theme" | "$isDisabled" | "$color"> & {
|
|
23
45
|
$isDisabled: boolean;
|
|
24
46
|
$color?: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
47
|
+
} & {
|
|
48
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
49
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"button">, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
27
50
|
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
28
|
-
},
|
|
29
|
-
|
|
51
|
+
}, "theme" | "$isDisabled" | "$color"> & {
|
|
52
|
+
$isDisabled: boolean;
|
|
53
|
+
$color?: string;
|
|
54
|
+
} & {
|
|
55
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
56
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLButtonElement, import("motion/react").HTMLMotionProps<"button">>, keyof React.Component<any, {}, any>>;
|
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
|
-
import type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';
|
|
3
2
|
import { BadgeDesign } from './Badge.types';
|
|
4
|
-
|
|
5
|
-
$cursor: CSSProperties[
|
|
6
|
-
$backgroundColor?: CSSProperties[
|
|
7
|
-
$borderRadius: CSSProperties[
|
|
8
|
-
$fontColor?: CSSProperties[
|
|
9
|
-
$minWidth: CSSProperties[
|
|
3
|
+
export declare const StyledBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$size" | "$backgroundColor" | "$cursor" | "$borderRadius" | "$fontColor" | "$minWidth" | "$design"> & {
|
|
4
|
+
$cursor: CSSProperties["cursor"];
|
|
5
|
+
$backgroundColor?: CSSProperties["backgroundColor"];
|
|
6
|
+
$borderRadius: CSSProperties["borderRadius"];
|
|
7
|
+
$fontColor?: CSSProperties["color"];
|
|
8
|
+
$minWidth: CSSProperties["minWidth"];
|
|
10
9
|
$size?: {
|
|
11
|
-
font: CSSProperties[
|
|
12
|
-
padding: CSSProperties[
|
|
10
|
+
font: CSSProperties["fontSize"];
|
|
11
|
+
padding: CSSProperties["padding"];
|
|
13
12
|
};
|
|
14
13
|
$design: BadgeDesign;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
} & {
|
|
15
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
16
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$size" | "$backgroundColor" | "$cursor" | "$borderRadius" | "$fontColor" | "$minWidth" | "$design"> & {
|
|
17
|
+
$cursor: CSSProperties["cursor"];
|
|
18
|
+
$backgroundColor?: CSSProperties["backgroundColor"];
|
|
19
|
+
$borderRadius: CSSProperties["borderRadius"];
|
|
20
|
+
$fontColor?: CSSProperties["color"];
|
|
21
|
+
$minWidth: CSSProperties["minWidth"];
|
|
22
|
+
$size?: {
|
|
23
|
+
font: CSSProperties["fontSize"];
|
|
24
|
+
padding: CSSProperties["padding"];
|
|
25
|
+
};
|
|
26
|
+
$design: BadgeDesign;
|
|
27
|
+
} & {
|
|
28
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
29
|
+
}, never>>> & string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const StyledMotionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"button">, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
3
|
+
}, "theme" | "$isDisabled" | "$hasIcon" | "$hasChildren" | "$isSecondary" | "$shouldShowTextAsRobotoMedium" | "$shouldShowAsSelectButton" | "$shouldShowWaitCursor" | "$effectiveButtonDesign"> & {
|
|
3
4
|
$hasIcon: boolean;
|
|
4
5
|
$hasChildren: boolean;
|
|
5
6
|
$isDisabled?: boolean;
|
|
@@ -8,15 +9,30 @@ type StyledButtonProps = WithTheme<{
|
|
|
8
9
|
$shouldShowAsSelectButton: boolean;
|
|
9
10
|
$shouldShowWaitCursor?: boolean;
|
|
10
11
|
$effectiveButtonDesign: number;
|
|
11
|
-
}
|
|
12
|
-
|
|
12
|
+
} & {
|
|
13
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
14
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"button">, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
13
15
|
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
+
}, "theme" | "$isDisabled" | "$hasIcon" | "$hasChildren" | "$isSecondary" | "$shouldShowTextAsRobotoMedium" | "$shouldShowAsSelectButton" | "$shouldShowWaitCursor" | "$effectiveButtonDesign"> & {
|
|
17
|
+
$hasIcon: boolean;
|
|
18
|
+
$hasChildren: boolean;
|
|
19
|
+
$isDisabled?: boolean;
|
|
20
|
+
$isSecondary?: boolean;
|
|
21
|
+
$shouldShowTextAsRobotoMedium: boolean;
|
|
22
|
+
$shouldShowAsSelectButton: boolean;
|
|
23
|
+
$shouldShowWaitCursor?: boolean;
|
|
24
|
+
$effectiveButtonDesign: number;
|
|
25
|
+
} & {
|
|
26
|
+
theme: import("../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
27
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLButtonElement, import("motion/react").HTMLMotionProps<"button">>, keyof React.Component<any, {}, any>>;
|
|
28
|
+
export declare const StyledIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
|
|
16
29
|
export declare const StyledMotionChildrenWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
17
30
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
18
|
-
}, never
|
|
31
|
+
}, never> & Partial<Pick<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
32
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
33
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
19
34
|
export declare const StyledMotionWaitCursorWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
35
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
21
|
-
}, never
|
|
22
|
-
|
|
36
|
+
}, never> & Partial<Pick<Omit<Omit<import("motion/react").HTMLMotionProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
37
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
38
|
+
}, never>>> & string & Omit<import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>, keyof React.Component<any, {}, any>>;
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
type StyledWaitCursorProps = WithTheme<{
|
|
1
|
+
export declare const StyledWaitCursor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$shouldShowWaitCursor"> & {
|
|
3
2
|
$shouldShowWaitCursor: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const StyledWaitCursor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledWaitCursorProps>> & string;
|
|
6
|
-
export declare const StyledWaitCursorBackground: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
} & {
|
|
7
4
|
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
8
|
-
}
|
|
9
|
-
|
|
5
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$shouldShowWaitCursor"> & {
|
|
6
|
+
$shouldShowWaitCursor: boolean;
|
|
7
|
+
} & {
|
|
8
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
9
|
+
}, never>>> & string;
|
|
10
|
+
export declare const StyledWaitCursorBackground: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & {
|
|
11
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
12
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme"> & {
|
|
13
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
14
|
+
}, never>>> & string;
|
|
15
|
+
export declare const StyledWaitCursorWaitCursor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$color"> & {
|
|
10
16
|
$color: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
} & {
|
|
18
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
19
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "theme" | "$color"> & {
|
|
20
|
+
$color: string;
|
|
21
|
+
} & {
|
|
22
|
+
theme: import("../../color-scheme-provider/ColorSchemeProvider").Theme;
|
|
23
|
+
}, never>>> & string;
|