@chayns-components/core 5.0.0-beta.775 → 5.0.0-beta.778

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.
Files changed (67) hide show
  1. package/lib/cjs/components/color-scheme-provider/ColorSchemeProvider.js +0 -1
  2. package/lib/cjs/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
  3. package/lib/cjs/components/combobox/ComboBox.js +39 -44
  4. package/lib/cjs/components/combobox/ComboBox.js.map +1 -1
  5. package/lib/cjs/components/context-menu/ContextMenu.js +2 -2
  6. package/lib/cjs/components/context-menu/ContextMenu.js.map +1 -1
  7. package/lib/cjs/components/popup/Popup.js +1 -1
  8. package/lib/cjs/components/popup/Popup.js.map +1 -1
  9. package/lib/cjs/index.js +0 -14
  10. package/lib/cjs/index.js.map +1 -1
  11. package/lib/esm/components/color-scheme-provider/ColorSchemeProvider.js +0 -1
  12. package/lib/esm/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
  13. package/lib/esm/components/combobox/ComboBox.js +39 -51
  14. package/lib/esm/components/combobox/ComboBox.js.map +1 -1
  15. package/lib/esm/components/context-menu/ContextMenu.js +2 -2
  16. package/lib/esm/components/context-menu/ContextMenu.js.map +1 -1
  17. package/lib/esm/components/popup/Popup.js +1 -1
  18. package/lib/esm/components/popup/Popup.js.map +1 -1
  19. package/lib/esm/index.js +0 -2
  20. package/lib/esm/index.js.map +1 -1
  21. package/lib/types/components/accordion/Accordion.styles.d.ts +1 -1
  22. package/lib/types/components/accordion/accordion-body/AccordionBody.styles.d.ts +1 -1
  23. package/lib/types/components/accordion/accordion-head/AccordionHead.styles.d.ts +10 -10
  24. package/lib/types/components/amount-control/AmountControl.styles.d.ts +1 -1
  25. package/lib/types/components/button/Button.styles.d.ts +3 -3
  26. package/lib/types/components/color-scheme-provider/ColorSchemeProvider.d.ts +1 -1
  27. package/lib/types/components/combobox/ComboBox.styles.d.ts +1 -1
  28. package/lib/types/components/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -1
  29. package/lib/types/components/expandable-content/ExpandableContent.styles.d.ts +1 -1
  30. package/lib/types/components/file-input/FileInput.styles.d.ts +1 -1
  31. package/lib/types/components/filter-buttons/filter-button/FilterButton.styles.d.ts +1 -1
  32. package/lib/types/components/input/Input.styles.d.ts +3 -3
  33. package/lib/types/components/list/list-item/ListItem.styles.d.ts +1 -1
  34. package/lib/types/components/list/list-item/list-item-body/ListItemBody.styles.d.ts +1 -1
  35. package/lib/types/components/list/list-item/list-item-head/ListItemHead.styles.d.ts +4 -4
  36. package/lib/types/components/mention-finder/MentionFinder.styles.d.ts +1 -1
  37. package/lib/types/components/popup/popup-content-wrapper/PopupContentWrapper.styles.d.ts +1 -1
  38. package/lib/types/components/progress-bar/ProgressBar.styles.d.ts +1 -1
  39. package/lib/types/components/radio-button/RadioButton.styles.d.ts +1 -1
  40. package/lib/types/components/search-box/SearchBox.styles.d.ts +1 -1
  41. package/lib/types/components/search-box/search-box-body/SearchBoxBody.styles.d.ts +1 -1
  42. package/lib/types/components/search-input/SearchInput.styles.d.ts +2 -2
  43. package/lib/types/components/slider/Slider.styles.d.ts +2 -2
  44. package/lib/types/components/slider-button/SliderButton.styles.d.ts +1 -1
  45. package/lib/types/components/truncation/Truncation.styles.d.ts +1 -1
  46. package/lib/types/index.d.ts +0 -2
  47. package/package.json +2 -2
  48. package/lib/cjs/components/page-provider/PageProvider.js +0 -67
  49. package/lib/cjs/components/page-provider/PageProvider.js.map +0 -1
  50. package/lib/cjs/components/page-provider/PageProvider.styles.js +0 -34
  51. package/lib/cjs/components/page-provider/PageProvider.styles.js.map +0 -1
  52. package/lib/cjs/constants/pageProvider.js +0 -16
  53. package/lib/cjs/constants/pageProvider.js.map +0 -1
  54. package/lib/cjs/utils/pageProvider.js +0 -92
  55. package/lib/cjs/utils/pageProvider.js.map +0 -1
  56. package/lib/esm/components/page-provider/PageProvider.js +0 -59
  57. package/lib/esm/components/page-provider/PageProvider.js.map +0 -1
  58. package/lib/esm/components/page-provider/PageProvider.styles.js +0 -33
  59. package/lib/esm/components/page-provider/PageProvider.styles.js.map +0 -1
  60. package/lib/esm/constants/pageProvider.js +0 -10
  61. package/lib/esm/constants/pageProvider.js.map +0 -1
  62. package/lib/esm/utils/pageProvider.js +0 -84
  63. package/lib/esm/utils/pageProvider.js.map +0 -1
  64. package/lib/types/components/page-provider/PageProvider.d.ts +0 -14
  65. package/lib/types/components/page-provider/PageProvider.styles.d.ts +0 -7
  66. package/lib/types/constants/pageProvider.d.ts +0 -6
  67. package/lib/types/utils/pageProvider.d.ts +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.js","names":["getWindowMetrics","AnimatePresence","React","forwardRef","useCallback","useEffect","useImperativeHandle","useRef","useState","createPortal","useUuid","PopupAlignment","AreaContextProvider","PopupContentWrapper","StyledPopup","StyledPopupPseudo","Popup","_ref","ref","content","onShow","container","document","querySelector","body","onHide","children","shouldShowOnHover","yOffset","coordinates","setCoordinates","x","y","alignment","setAlignment","TopLeft","offset","setOffset","isOpen","setIsOpen","portal","setPortal","menuHeight","setMenuHeight","pseudoSize","setPseudoSize","timeout","uuid","popupContentRef","popupPseudoContentRef","popupRef","current","height","width","getBoundingClientRect","handleShow","pseudoHeight","pseudoWidth","childrenHeight","left","childrenLeft","top","childrenTop","childrenWidth","isRight","BottomRight","BottomLeft","newOffset","window","innerWidth","right","newX","TopRight","handleChildrenClick","handleHide","handleMouseEnter","clearTimeout","handleMouseLeave","setTimeout","handleDocumentClick","event","contains","target","preventDefault","stopPropagation","hide","show","then","result","topBarHeight","addEventListener","removeEventListener","createElement","initial","key","onMouseLeave","onMouseEnter","shouldChangeColor","Fragment","$menuHeight","onClick","displayName"],"sources":["../../../../src/components/popup/Popup.tsx"],"sourcesContent":["import { getWindowMetrics } from 'chayns-api';\nimport { AnimatePresence } from 'framer-motion';\nimport React, {\n forwardRef,\n ReactNode,\n ReactPortal,\n useCallback,\n useEffect,\n useImperativeHandle,\n useRef,\n useState,\n} from 'react';\nimport { createPortal } from 'react-dom';\nimport { useUuid } from '../../hooks/uuid';\nimport { PopupAlignment, PopupCoordinates, PopupRef } from '../../types/popup';\nimport AreaContextProvider from '../area-provider/AreaContextProvider';\nimport PopupContentWrapper from './popup-content-wrapper/PopupContentWrapper';\nimport { StyledPopup, StyledPopupPseudo } from './Popup.styles';\n\nexport type PopupProps = {\n /**\n * The element over which the content of the `ContextMenu` should be displayed.\n */\n children?: ReactNode;\n /**\n * The element where the content of the `Popup` should be rendered via React Portal.\n */\n container?: Element;\n /**\n * The content that should be displayed inside the popup.\n */\n content: ReactNode;\n /**\n * Function to be executed when the content of the Context menu has been hidden.\n */\n onHide?: VoidFunction;\n /**\n * Function to be executed when the content of the Context menu has been shown.\n */\n onShow?: VoidFunction;\n /**\n * Whether the popup should be opened on hover. If not, the popup will be opened on click.\n */\n shouldShowOnHover?: boolean;\n /**\n * The Y offset of the popup to the children.\n */\n yOffset?: number;\n};\n\nconst Popup = forwardRef<PopupRef, PopupProps>(\n (\n {\n content,\n onShow,\n container = document.querySelector('.page-provider') || document.body,\n onHide,\n children,\n shouldShowOnHover = false,\n yOffset = 0,\n },\n ref,\n ) => {\n const [coordinates, setCoordinates] = useState<PopupCoordinates>({\n x: 0,\n y: 0,\n });\n\n const [alignment, setAlignment] = useState<PopupAlignment>(PopupAlignment.TopLeft);\n const [offset, setOffset] = useState<number>(0);\n const [isOpen, setIsOpen] = useState(false);\n const [portal, setPortal] = useState<ReactPortal>();\n const [menuHeight, setMenuHeight] = useState(0);\n\n const [pseudoSize, setPseudoSize] = useState<{ height: number; width: number }>();\n\n const timeout = useRef<number>();\n\n const uuid = useUuid();\n\n // ToDo: Replace with hook if new chayns api is ready\n\n const popupContentRef = useRef<HTMLDivElement>(null);\n const popupPseudoContentRef = useRef<HTMLDivElement>(null);\n const popupRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (popupPseudoContentRef.current) {\n const { height, width } = popupPseudoContentRef.current.getBoundingClientRect();\n\n setPseudoSize({ height, width });\n }\n }, []);\n\n const handleShow = useCallback(() => {\n if (popupRef.current && pseudoSize) {\n const { height: pseudoHeight, width: pseudoWidth } = pseudoSize;\n\n const {\n height: childrenHeight,\n left: childrenLeft,\n top: childrenTop,\n width: childrenWidth,\n } = popupRef.current.getBoundingClientRect();\n\n if (pseudoHeight > childrenTop - 25) {\n let isRight = false;\n\n if (pseudoWidth > childrenLeft + childrenWidth / 2 - 25) {\n setAlignment(PopupAlignment.BottomRight);\n\n isRight = true;\n } else {\n setAlignment(PopupAlignment.BottomLeft);\n }\n\n const x = childrenLeft + childrenWidth / 2;\n const y = childrenTop + childrenHeight + yOffset;\n\n let newOffset;\n\n if (isRight) {\n newOffset =\n x + pseudoWidth >= window.innerWidth\n ? x + pseudoWidth - window.innerWidth\n : 0;\n } else {\n newOffset = 0;\n\n const right = window.innerWidth - (childrenLeft + childrenWidth / 2);\n\n newOffset =\n right + pseudoWidth >= window.innerWidth\n ? right + pseudoWidth - window.innerWidth\n : 0;\n }\n\n setOffset(newOffset);\n\n const newX = x - newOffset;\n\n setCoordinates({\n x: newX < 23 ? 23 : newX,\n y: y - yOffset,\n });\n } else {\n let isRight = false;\n\n if (pseudoWidth > childrenLeft + childrenWidth / 2 - 25) {\n setAlignment(PopupAlignment.TopRight);\n\n isRight = true;\n } else {\n setAlignment(PopupAlignment.TopLeft);\n }\n\n const x = childrenLeft + childrenWidth / 2;\n const y = childrenTop - yOffset;\n\n let newOffset;\n\n if (isRight) {\n newOffset =\n x + pseudoWidth >= window.innerWidth\n ? x + pseudoWidth - window.innerWidth\n : 0;\n } else {\n newOffset = 0;\n\n const right = window.innerWidth - (childrenLeft + childrenWidth / 2);\n\n newOffset =\n right + pseudoWidth >= window.innerWidth\n ? right + pseudoWidth - window.innerWidth\n : 0;\n }\n\n setOffset(newOffset);\n\n const newX = x - newOffset;\n\n setCoordinates({\n x: newX < 23 ? 23 : newX,\n y: y - yOffset,\n });\n }\n\n setIsOpen(true);\n }\n }, [pseudoSize, yOffset]);\n\n const handleChildrenClick = () => {\n if (!shouldShowOnHover) {\n handleShow();\n }\n };\n\n const handleHide = useCallback(() => {\n setIsOpen(false);\n }, []);\n\n const handleMouseEnter = useCallback(() => {\n if (shouldShowOnHover) {\n window.clearTimeout(timeout.current);\n handleShow();\n }\n }, [handleShow, shouldShowOnHover]);\n\n const handleMouseLeave = useCallback(() => {\n if (!shouldShowOnHover) {\n return;\n }\n\n timeout.current = window.setTimeout(() => {\n handleHide();\n }, 500);\n }, [handleHide, shouldShowOnHover]);\n\n const handleDocumentClick = useCallback<EventListener>(\n (event) => {\n if (\n !popupContentRef.current?.contains(event.target as Node) &&\n !shouldShowOnHover\n ) {\n event.preventDefault();\n event.stopPropagation();\n\n handleHide();\n }\n },\n [handleHide, shouldShowOnHover],\n );\n\n useImperativeHandle(\n ref,\n () => ({\n hide: handleHide,\n show: handleShow,\n }),\n [handleHide, handleShow],\n );\n\n useEffect(() => {\n void getWindowMetrics().then((result) => {\n if (result.topBarHeight) {\n setMenuHeight(result.topBarHeight);\n }\n });\n }, []);\n\n useEffect(() => {\n if (isOpen) {\n document.addEventListener('click', handleDocumentClick, true);\n window.addEventListener('blur', handleHide);\n\n if (typeof onShow === 'function') {\n onShow();\n }\n } else if (typeof onHide === 'function') {\n onHide();\n }\n\n return () => {\n document.removeEventListener('click', handleDocumentClick, true);\n window.removeEventListener('blur', handleHide);\n };\n }, [handleDocumentClick, handleHide, isOpen, onHide, onShow]);\n\n useEffect(() => {\n setPortal(() =>\n createPortal(\n <AnimatePresence initial={false}>\n {isOpen && (\n <PopupContentWrapper\n offset={offset}\n coordinates={coordinates}\n key={`tooltip_${uuid}`}\n alignment={alignment}\n ref={popupContentRef}\n onMouseLeave={handleMouseLeave}\n onMouseEnter={handleMouseEnter}\n >\n <AreaContextProvider shouldChangeColor={false}>\n {content}\n </AreaContextProvider>\n </PopupContentWrapper>\n )}\n </AnimatePresence>,\n container,\n ),\n );\n }, [\n alignment,\n container,\n content,\n coordinates,\n handleMouseEnter,\n handleMouseLeave,\n isOpen,\n offset,\n uuid,\n ]);\n\n return (\n <>\n {!pseudoSize && (\n <StyledPopupPseudo ref={popupPseudoContentRef} $menuHeight={menuHeight}>\n {content}\n </StyledPopupPseudo>\n )}\n <StyledPopup\n ref={popupRef}\n onClick={handleChildrenClick}\n onMouseLeave={handleMouseLeave}\n onMouseEnter={handleMouseEnter}\n >\n {children}\n </StyledPopup>\n {portal}\n </>\n );\n },\n);\n\nPopup.displayName = 'Popup';\n\nexport default Popup;\n"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,YAAY;AAC7C,SAASC,eAAe,QAAQ,eAAe;AAC/C,OAAOC,KAAK,IACRC,UAAU,EAGVC,WAAW,EACXC,SAAS,EACTC,mBAAmB,EACnBC,MAAM,EACNC,QAAQ,QACL,OAAO;AACd,SAASC,YAAY,QAAQ,WAAW;AACxC,SAASC,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,cAAc,QAAoC,mBAAmB;AAC9E,OAAOC,mBAAmB,MAAM,sCAAsC;AACtE,OAAOC,mBAAmB,MAAM,6CAA6C;AAC7E,SAASC,WAAW,EAAEC,iBAAiB,QAAQ,gBAAgB;AAiC/D,MAAMC,KAAK,gBAAGb,UAAU,CACpB,CAAAc,IAAA,EAUIC,GAAG,KACF;EAAA,IAVD;IACIC,OAAO;IACPC,MAAM;IACNC,SAAS,GAAGC,QAAQ,CAACC,aAAa,CAAC,gBAAgB,CAAC,IAAID,QAAQ,CAACE,IAAI;IACrEC,MAAM;IACNC,QAAQ;IACRC,iBAAiB,GAAG,KAAK;IACzBC,OAAO,GAAG;EACd,CAAC,GAAAX,IAAA;EAGD,MAAM,CAACY,WAAW,EAAEC,cAAc,CAAC,GAAGtB,QAAQ,CAAmB;IAC7DuB,CAAC,EAAE,CAAC;IACJC,CAAC,EAAE;EACP,CAAC,CAAC;EAEF,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAG1B,QAAQ,CAAiB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,CACCY,SAAS,EACTZ,SAAS,EACTF,OAAO,EACPU,WAAW,EACX8C,gBAAgB,EAChBE,gBAAgB,EAChBvC,MAAM,EACNF,MAAM,EACNW,IAAI,CACP,CAAC;EAEF,oBACI7C,KAAA,CAAA0F,aAAA,CAAA1F,KAAA,CAAAgG,QAAA,QACK,CAACtD,UAAU,iBACR1C,KAAA,CAAA0F,aAAA,CAAC7E,iBAAiB;IAACG,GAAG,EAAE+B,qBAAsB;IAACkD,WAAW,EAAEzD;EAAW,GAClEvB,OACc,CACtB,eACDjB,KAAA,CAAA0F,aAAA,CAAC9E,WAAW;IACRI,GAAG,EAAEgC,QAAS;IACdkD,OAAO,EAAE3B,mBAAoB;IAC7BsB,YAAY,EAAElB,gBAAiB;IAC/BmB,YAAY,EAAErB;EAAiB,GAE9BjD,QACQ,CAAC,EACbc,MACH,CAAC;AAEX,CACJ,CAAC;AAEDxB,KAAK,CAACqF,WAAW,GAAG,OAAO;AAE3B,eAAerF,KAAK","ignoreList":[]}
1
+ {"version":3,"file":"Popup.js","names":["getWindowMetrics","AnimatePresence","React","forwardRef","useCallback","useEffect","useImperativeHandle","useRef","useState","createPortal","useUuid","PopupAlignment","AreaContextProvider","PopupContentWrapper","StyledPopup","StyledPopupPseudo","Popup","_ref","ref","content","onShow","container","document","querySelector","body","onHide","children","shouldShowOnHover","yOffset","coordinates","setCoordinates","x","y","alignment","setAlignment","TopLeft","offset","setOffset","isOpen","setIsOpen","portal","setPortal","menuHeight","setMenuHeight","pseudoSize","setPseudoSize","timeout","uuid","popupContentRef","popupPseudoContentRef","popupRef","current","height","width","getBoundingClientRect","handleShow","pseudoHeight","pseudoWidth","childrenHeight","left","childrenLeft","top","childrenTop","childrenWidth","isRight","BottomRight","BottomLeft","newOffset","window","innerWidth","right","newX","TopRight","handleChildrenClick","handleHide","handleMouseEnter","clearTimeout","handleMouseLeave","setTimeout","handleDocumentClick","event","contains","target","preventDefault","stopPropagation","hide","show","then","result","topBarHeight","addEventListener","removeEventListener","createElement","initial","key","onMouseLeave","onMouseEnter","shouldChangeColor","Fragment","$menuHeight","onClick","displayName"],"sources":["../../../../src/components/popup/Popup.tsx"],"sourcesContent":["import { getWindowMetrics } from 'chayns-api';\nimport { AnimatePresence } from 'framer-motion';\nimport React, {\n forwardRef,\n ReactNode,\n ReactPortal,\n useCallback,\n useEffect,\n useImperativeHandle,\n useRef,\n useState,\n} from 'react';\nimport { createPortal } from 'react-dom';\nimport { useUuid } from '../../hooks/uuid';\nimport { PopupAlignment, PopupCoordinates, PopupRef } from '../../types/popup';\nimport AreaContextProvider from '../area-provider/AreaContextProvider';\nimport PopupContentWrapper from './popup-content-wrapper/PopupContentWrapper';\nimport { StyledPopup, StyledPopupPseudo } from './Popup.styles';\n\nexport type PopupProps = {\n /**\n * The element over which the content of the `ContextMenu` should be displayed.\n */\n children?: ReactNode;\n /**\n * The element where the content of the `Popup` should be rendered via React Portal.\n */\n container?: Element;\n /**\n * The content that should be displayed inside the popup.\n */\n content: ReactNode;\n /**\n * Function to be executed when the content of the Context menu has been hidden.\n */\n onHide?: VoidFunction;\n /**\n * Function to be executed when the content of the Context menu has been shown.\n */\n onShow?: VoidFunction;\n /**\n * Whether the popup should be opened on hover. If not, the popup will be opened on click.\n */\n shouldShowOnHover?: boolean;\n /**\n * The Y offset of the popup to the children.\n */\n yOffset?: number;\n};\n\nconst Popup = forwardRef<PopupRef, PopupProps>(\n (\n {\n content,\n onShow,\n container = document.querySelector('.tapp') || document.body,\n onHide,\n children,\n shouldShowOnHover = false,\n yOffset = 0,\n },\n ref,\n ) => {\n const [coordinates, setCoordinates] = useState<PopupCoordinates>({\n x: 0,\n y: 0,\n });\n\n const [alignment, setAlignment] = useState<PopupAlignment>(PopupAlignment.TopLeft);\n const [offset, setOffset] = useState<number>(0);\n const [isOpen, setIsOpen] = useState(false);\n const [portal, setPortal] = useState<ReactPortal>();\n const [menuHeight, setMenuHeight] = useState(0);\n\n const [pseudoSize, setPseudoSize] = useState<{ height: number; width: number }>();\n\n const timeout = useRef<number>();\n\n const uuid = useUuid();\n\n // ToDo: Replace with hook if new chayns api is ready\n\n const popupContentRef = useRef<HTMLDivElement>(null);\n const popupPseudoContentRef = useRef<HTMLDivElement>(null);\n const popupRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (popupPseudoContentRef.current) {\n const { height, width } = popupPseudoContentRef.current.getBoundingClientRect();\n\n setPseudoSize({ height, width });\n }\n }, []);\n\n const handleShow = useCallback(() => {\n if (popupRef.current && pseudoSize) {\n const { height: pseudoHeight, width: pseudoWidth } = pseudoSize;\n\n const {\n height: childrenHeight,\n left: childrenLeft,\n top: childrenTop,\n width: childrenWidth,\n } = popupRef.current.getBoundingClientRect();\n\n if (pseudoHeight > childrenTop - 25) {\n let isRight = false;\n\n if (pseudoWidth > childrenLeft + childrenWidth / 2 - 25) {\n setAlignment(PopupAlignment.BottomRight);\n\n isRight = true;\n } else {\n setAlignment(PopupAlignment.BottomLeft);\n }\n\n const x = childrenLeft + childrenWidth / 2;\n const y = childrenTop + childrenHeight + yOffset;\n\n let newOffset;\n\n if (isRight) {\n newOffset =\n x + pseudoWidth >= window.innerWidth\n ? x + pseudoWidth - window.innerWidth\n : 0;\n } else {\n newOffset = 0;\n\n const right = window.innerWidth - (childrenLeft + childrenWidth / 2);\n\n newOffset =\n right + pseudoWidth >= window.innerWidth\n ? right + pseudoWidth - window.innerWidth\n : 0;\n }\n\n setOffset(newOffset);\n\n const newX = x - newOffset;\n\n setCoordinates({\n x: newX < 23 ? 23 : newX,\n y: y - yOffset,\n });\n } else {\n let isRight = false;\n\n if (pseudoWidth > childrenLeft + childrenWidth / 2 - 25) {\n setAlignment(PopupAlignment.TopRight);\n\n isRight = true;\n } else {\n setAlignment(PopupAlignment.TopLeft);\n }\n\n const x = childrenLeft + childrenWidth / 2;\n const y = childrenTop - yOffset;\n\n let newOffset;\n\n if (isRight) {\n newOffset =\n x + pseudoWidth >= window.innerWidth\n ? x + pseudoWidth - window.innerWidth\n : 0;\n } else {\n newOffset = 0;\n\n const right = window.innerWidth - (childrenLeft + childrenWidth / 2);\n\n newOffset =\n right + pseudoWidth >= window.innerWidth\n ? right + pseudoWidth - window.innerWidth\n : 0;\n }\n\n setOffset(newOffset);\n\n const newX = x - newOffset;\n\n setCoordinates({\n x: newX < 23 ? 23 : newX,\n y: y - yOffset,\n });\n }\n\n setIsOpen(true);\n }\n }, [pseudoSize, yOffset]);\n\n const handleChildrenClick = () => {\n if (!shouldShowOnHover) {\n handleShow();\n }\n };\n\n const handleHide = useCallback(() => {\n setIsOpen(false);\n }, []);\n\n const handleMouseEnter = useCallback(() => {\n if (shouldShowOnHover) {\n window.clearTimeout(timeout.current);\n handleShow();\n }\n }, [handleShow, shouldShowOnHover]);\n\n const handleMouseLeave = useCallback(() => {\n if (!shouldShowOnHover) {\n return;\n }\n\n timeout.current = window.setTimeout(() => {\n handleHide();\n }, 500);\n }, [handleHide, shouldShowOnHover]);\n\n const handleDocumentClick = useCallback<EventListener>(\n (event) => {\n if (\n !popupContentRef.current?.contains(event.target as Node) &&\n !shouldShowOnHover\n ) {\n event.preventDefault();\n event.stopPropagation();\n\n handleHide();\n }\n },\n [handleHide, shouldShowOnHover],\n );\n\n useImperativeHandle(\n ref,\n () => ({\n hide: handleHide,\n show: handleShow,\n }),\n [handleHide, handleShow],\n );\n\n useEffect(() => {\n void getWindowMetrics().then((result) => {\n if (result.topBarHeight) {\n setMenuHeight(result.topBarHeight);\n }\n });\n }, []);\n\n useEffect(() => {\n if (isOpen) {\n document.addEventListener('click', handleDocumentClick, true);\n window.addEventListener('blur', handleHide);\n\n if (typeof onShow === 'function') {\n onShow();\n }\n } else if (typeof onHide === 'function') {\n onHide();\n }\n\n return () => {\n document.removeEventListener('click', handleDocumentClick, true);\n window.removeEventListener('blur', handleHide);\n };\n }, [handleDocumentClick, handleHide, isOpen, onHide, onShow]);\n\n useEffect(() => {\n setPortal(() =>\n createPortal(\n <AnimatePresence initial={false}>\n {isOpen && (\n <PopupContentWrapper\n offset={offset}\n coordinates={coordinates}\n key={`tooltip_${uuid}`}\n alignment={alignment}\n ref={popupContentRef}\n onMouseLeave={handleMouseLeave}\n onMouseEnter={handleMouseEnter}\n >\n <AreaContextProvider shouldChangeColor={false}>\n {content}\n </AreaContextProvider>\n </PopupContentWrapper>\n )}\n </AnimatePresence>,\n container,\n ),\n );\n }, [\n alignment,\n container,\n content,\n coordinates,\n handleMouseEnter,\n handleMouseLeave,\n isOpen,\n offset,\n uuid,\n ]);\n\n return (\n <>\n {!pseudoSize && (\n <StyledPopupPseudo ref={popupPseudoContentRef} $menuHeight={menuHeight}>\n {content}\n </StyledPopupPseudo>\n )}\n <StyledPopup\n ref={popupRef}\n onClick={handleChildrenClick}\n onMouseLeave={handleMouseLeave}\n onMouseEnter={handleMouseEnter}\n >\n {children}\n </StyledPopup>\n {portal}\n </>\n );\n },\n);\n\nPopup.displayName = 'Popup';\n\nexport default Popup;\n"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,YAAY;AAC7C,SAASC,eAAe,QAAQ,eAAe;AAC/C,OAAOC,KAAK,IACRC,UAAU,EAGVC,WAAW,EACXC,SAAS,EACTC,mBAAmB,EACnBC,MAAM,EACNC,QAAQ,QACL,OAAO;AACd,SAASC,YAAY,QAAQ,WAAW;AACxC,SAASC,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,cAAc,QAAoC,mBAAmB;AAC9E,OAAOC,mBAAmB,MAAM,sCAAsC;AACtE,OAAOC,mBAAmB,MAAM,6CAA6C;AAC7E,SAASC,WAAW,EAAEC,iBAAiB,QAAQ,gBAAgB;AAiC/D,MAAMC,KAAK,gBAAGb,UAAU,CACpB,CAAAc,IAAA,EAUIC,GAAG,KACF;EAAA,IAVD;IACIC,OAAO;IACPC,MAAM;IACNC,SAAS,GAAGC,QAAQ,CAACC,aAAa,CAAC,OAAO,CAAC,IAAID,QAAQ,CAACE,IAAI;IAC5DC,MAAM;IACNC,QAAQ;IACRC,iBAAiB,GAAG,KAAK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MACrBf,GAAG,EAAE8B,eAAgB;MACrB+C,YAAY,EAAElB,gBAAiB;MAC/BmB,YAAY,EAAErB;IAAiB,gBAE/BzE,KAAA,CAAA0F,aAAA,CAAChF,mBAAmB;MAACqF,iBAAiB,EAAE;IAAM,GACzC9E,OACgB,CACJ,CAEZ,CAAC,EAClBE,SACJ,CACJ,CAAC;EACL,CAAC,EAAE,CACCY,SAAS,EACTZ,SAAS,EACTF,OAAO,EACPU,WAAW,EACX8C,gBAAgB,EAChBE,gBAAgB,EAChBvC,MAAM,EACNF,MAAM,EACNW,IAAI,CACP,CAAC;EAEF,oBACI7C,KAAA,CAAA0F,aAAA,CAAA1F,KAAA,CAAAgG,QAAA,QACK,CAACtD,UAAU,iBACR1C,KAAA,CAAA0F,aAAA,CAAC7E,iBAAiB;IAACG,GAAG,EAAE+B,qBAAsB;IAACkD,WAAW,EAAEzD;EAAW,GAClEvB,OACc,CACtB,eACDjB,KAAA,CAAA0F,aAAA,CAAC9E,WAAW;IACRI,GAAG,EAAEgC,QAAS;IACdkD,OAAO,EAAE3B,mBAAoB;IAC7BsB,YAAY,EAAElB,gBAAiB;IAC/BmB,YAAY,EAAErB;EAAiB,GAE9BjD,QACQ,CAAC,EACbc,MACH,CAAC;AAEX,CACJ,CAAC;AAEDxB,KAAK,CAACqF,WAAW,GAAG,OAAO;AAE3B,eAAerF,KAAK","ignoreList":[]}
package/lib/esm/index.js CHANGED
@@ -24,7 +24,6 @@ export { default as ListItemContent } from './components/list/list-item/list-ite
24
24
  export { default as ListItem } from './components/list/list-item/ListItem';
25
25
  export { default as MentionFinder } from './components/mention-finder/MentionFinder';
26
26
  export { default as NumberInput } from './components/number-input/NumberInput';
27
- export { default as PageProvider } from './components/page-provider/PageProvider';
28
27
  export { default as Popup } from './components/popup/Popup';
29
28
  export { default as PopupContent } from './components/popup/popup-content/PopupContent';
30
29
  export { default as ProgressBar } from './components/progress-bar/ProgressBar';
@@ -55,6 +54,5 @@ export { ClampPosition } from './types/truncation';
55
54
  export { getIsTouch } from './utils/environment';
56
55
  export { getFileAsArrayBuffer, selectFiles } from './utils/fileDialog';
57
56
  export { isTobitEmployee } from './utils/isTobitEmployee';
58
- export { getUsableHeight } from './utils/pageProvider';
59
57
  export { uploadFile } from './utils/uploadFile';
60
58
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","Accordion","AccordionContent","AccordionGroup","AccordionIntro","AccordionItem","AmountControl","AreaContext","AreaProvider","Badge","Button","Checkbox","ColorSchemeProvider","ComboBox","ContentCard","ContextMenu","ExpandableContent","FileInput","FilterButtons","GridImage","Icon","Input","List","ListItemContent","ListItem","MentionFinder","NumberInput","PageProvider","Popup","PopupContent","ProgressBar","RadioButtonGroup","RadioButton","ScrollView","SearchBox","SearchInput","SelectButton","SetupWizardItem","SetupWizard","SharingBar","Signature","SliderButton","Slider","SmallWaitCursor","SmallWaitCursorSize","SmallWaitCursorSpeed","TagInput","TextArea","Tooltip","Truncation","MentionFinderPopupAlignment","useElementSize","ComboBoxDirection","ContentCardType","ContextMenuAlignment","FilterButtonItemShape","FilterButtonSize","ClampPosition","getIsTouch","getFileAsArrayBuffer","selectFiles","isTobitEmployee","getUsableHeight","uploadFile"],"sources":["../../src/index.ts"],"sourcesContent":["// noinspection JSUnusedGlobalSymbols\nexport { default as Accordion } from './components/accordion/Accordion';\nexport { default as AccordionContent } from './components/accordion/accordion-content/AccordionContent';\nexport { default as AccordionGroup } from './components/accordion/accordion-group/AccordionGroup';\nexport { default as AccordionIntro } from './components/accordion/accordion-intro/AccordionIntro';\nexport { default as AccordionItem } from './components/accordion/accordion-item/AccordionItem';\nexport { default as AmountControl } from './components/amount-control/AmountControl';\nexport {\n AreaContext,\n default as AreaProvider,\n} from './components/area-provider/AreaContextProvider';\nexport { default as Badge } from './components/badge/Badge';\nexport { default as Button } from './components/button/Button';\nexport { default as Checkbox } from './components/checkbox/Checkbox';\nexport { default as ColorSchemeProvider } from './components/color-scheme-provider/ColorSchemeProvider';\nexport type {\n FramerMotionBugFix,\n WithTheme,\n} from './components/color-scheme-provider/ColorSchemeProvider';\nexport {\n default as ComboBox,\n type IComboBoxItem as ComboBoxItem,\n type IComboBoxItems as ComboBoxItems,\n} from './components/combobox/ComboBox';\nexport { default as ContentCard } from './components/content-card/ContentCard';\nexport { default as ContextMenu, type ContextMenuRef } from './components/context-menu/ContextMenu';\nexport { default as ExpandableContent } from './components/expandable-content/ExpandableContent';\nexport { default as FileInput, type FileInputRef } from './components/file-input/FileInput';\nexport { default as FilterButtons } from './components/filter-buttons/FilterButtons';\nexport { default as GridImage } from './components/grid-image/GridImage';\nexport { default as Icon } from './components/icon/Icon';\nexport { default as Input } from './components/input/Input';\nexport { default as List } from './components/list/List';\nexport { default as ListItemContent } from './components/list/list-item/list-item-content/ListItemContent';\nexport {\n default as ListItem,\n type ListItemElements,\n type ListItemProps,\n} from './components/list/list-item/ListItem';\nexport { default as MentionFinder } from './components/mention-finder/MentionFinder';\nexport type { MentionMember } from './components/mention-finder/MentionFinder';\nexport { default as NumberInput } from './components/number-input/NumberInput';\nexport { default as PageProvider } from './components/page-provider/PageProvider';\nexport { default as Popup } from './components/popup/Popup';\nexport { default as PopupContent } from './components/popup/popup-content/PopupContent';\nexport { default as ProgressBar } from './components/progress-bar/ProgressBar';\nexport {\n default as RadioButtonGroup,\n type RadioButtonGroupRef,\n} from './components/radio-button/radio-button-group/RadioButtonGroup';\nexport { default as RadioButton } from './components/radio-button/RadioButton';\nexport { default as ScrollView } from './components/scroll-view/ScrollView';\nexport { default as SearchBox } from './components/search-box/SearchBox';\nexport { default as SearchInput } from './components/search-input/SearchInput';\nexport { default as SelectButton } from './components/select-button/SelectButton';\nexport { default as SetupWizardItem } from './components/setup-wizard/setup-wizard-item/SetupWizardItem';\nexport { default as SetupWizard } from './components/setup-wizard/SetupWizard';\nexport type { SetupWizardRef } from './components/setup-wizard/SetupWizard';\nexport { default as SharingBar } from './components/sharing-bar/SharingBar';\nexport { default as Signature } from './components/signature/Signature';\nexport type { SignatureRef } from './components/signature/Signature';\nexport { default as SliderButton } from './components/slider-button/SliderButton';\nexport { default as Slider } from './components/slider/Slider';\nexport {\n default as SmallWaitCursor,\n SmallWaitCursorSize,\n SmallWaitCursorSpeed,\n} from './components/small-wait-cursor/SmallWaitCursor';\nexport { default as TagInput } from './components/tag-input/TagInput';\nexport { default as TextArea } from './components/text-area/TextArea';\nexport { default as Tooltip } from './components/tooltip/Tooltip';\nexport { default as Truncation } from './components/truncation/Truncation';\nexport { MentionFinderPopupAlignment } from './constants/mentionFinder';\nexport { useElementSize } from './hooks/useElementSize';\nexport { ComboBoxDirection } from './types/comboBox';\nexport { ContentCardType } from './types/contentCard';\nexport { ContextMenuAlignment } from './types/contextMenu';\nexport type { FileItem, Image, InternalFileItem, Meta, Video } from './types/file';\nexport type { FileInputFileItem } from './types/fileInput';\nexport { FilterButtonItemShape, FilterButtonSize } from './types/filterButtons';\nexport type { IFilterButtonItem as FilterButtonItem } from './types/filterButtons';\nexport type { IListItemRightElements } from './types/list';\nexport type { PopupRef } from './types/popup';\nexport type { RadioButtonItem } from './types/radioButton';\nexport type {\n ISearchBoxItem as SearchBoxItem,\n ISearchBoxItems as SearchBoxItems,\n} from './types/searchBox';\nexport type { SelectButtonItem } from './types/selectButton';\nexport type { SliderButtonItem } from './types/slider-button';\nexport { ClampPosition } from './types/truncation';\nexport { getIsTouch } from './utils/environment';\nexport { getFileAsArrayBuffer, selectFiles } from './utils/fileDialog';\nexport { isTobitEmployee } from './utils/isTobitEmployee';\nexport { getUsableHeight } from './utils/pageProvider';\nexport { uploadFile } from './utils/uploadFile';\n"],"mappings":"AAAA;AACA,SAASA,OAAO,IAAIC,SAAS,QAAQ,kCAAkC;AACvE,SAASD,OAAO,IAAIE,gBAAgB,QAAQ,2DAA2D;AACvG,SAASF,OAAO,IAAIG,cAAc,QAAQ,uDAAuD;AACjG,SAASH,OAAO,IAAII,cAAc,QAAQ,uDAAuD;AACjG,SAASJ,O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AoB;AACtE,SAASC,eAAe,QAAQ,yBAAyB;AACzD,SAASC,eAAe,QAAQ,sBAAsB;AACtD,SAASC,UAAU,QAAQ,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["default","Accordion","AccordionContent","AccordionGroup","AccordionIntro","AccordionItem","AmountControl","AreaContext","AreaProvider","Badge","Button","Checkbox","ColorSchemeProvider","ComboBox","ContentCard","ContextMenu","ExpandableContent","FileInput","FilterButtons","GridImage","Icon","Input","List","ListItemContent","ListItem","MentionFinder","NumberInput","Popup","PopupContent","ProgressBar","RadioButtonGroup","RadioButton","ScrollView","SearchBox","SearchInput","SelectButton","SetupWizardItem","SetupWizard","SharingBar","Signature","SliderButton","Slider","SmallWaitCursor","SmallWaitCursorSize","SmallWaitCursorSpeed","TagInput","TextArea","Tooltip","Truncation","MentionFinderPopupAlignment","useElementSize","ComboBoxDirection","ContentCardType","ContextMenuAlignment","FilterButtonItemShape","FilterButtonSize","ClampPosition","getIsTouch","getFileAsArrayBuffer","selectFiles","isTobitEmployee","uploadFile"],"sources":["../../src/index.ts"],"sourcesContent":["// noinspection JSUnusedGlobalSymbols\nexport { default as Accordion } from './components/accordion/Accordion';\nexport { default as AccordionContent } from './components/accordion/accordion-content/AccordionContent';\nexport { default as AccordionGroup } from './components/accordion/accordion-group/AccordionGroup';\nexport { default as AccordionIntro } from './components/accordion/accordion-intro/AccordionIntro';\nexport { default as AccordionItem } from './components/accordion/accordion-item/AccordionItem';\nexport { default as AmountControl } from './components/amount-control/AmountControl';\nexport {\n AreaContext,\n default as AreaProvider,\n} from './components/area-provider/AreaContextProvider';\nexport { default as Badge } from './components/badge/Badge';\nexport { default as Button } from './components/button/Button';\nexport { default as Checkbox } from './components/checkbox/Checkbox';\nexport { default as ColorSchemeProvider } from './components/color-scheme-provider/ColorSchemeProvider';\nexport type {\n FramerMotionBugFix,\n WithTheme,\n} from './components/color-scheme-provider/ColorSchemeProvider';\nexport {\n default as ComboBox,\n type IComboBoxItem as ComboBoxItem,\n type IComboBoxItems as ComboBoxItems,\n} from './components/combobox/ComboBox';\nexport { default as ContentCard } from './components/content-card/ContentCard';\nexport { default as ContextMenu, type ContextMenuRef } from './components/context-menu/ContextMenu';\nexport { default as ExpandableContent } from './components/expandable-content/ExpandableContent';\nexport { default as FileInput, type FileInputRef } from './components/file-input/FileInput';\nexport { default as FilterButtons } from './components/filter-buttons/FilterButtons';\nexport { default as GridImage } from './components/grid-image/GridImage';\nexport { default as Icon } from './components/icon/Icon';\nexport { default as Input } from './components/input/Input';\nexport { default as List } from './components/list/List';\nexport { default as ListItemContent } from './components/list/list-item/list-item-content/ListItemContent';\nexport {\n default as ListItem,\n type ListItemElements,\n type ListItemProps,\n} from './components/list/list-item/ListItem';\nexport { default as MentionFinder } from './components/mention-finder/MentionFinder';\nexport type { MentionMember } from './components/mention-finder/MentionFinder';\nexport { default as NumberInput } from './components/number-input/NumberInput';\nexport { default as Popup } from './components/popup/Popup';\nexport { default as PopupContent } from './components/popup/popup-content/PopupContent';\nexport { default as ProgressBar } from './components/progress-bar/ProgressBar';\nexport {\n default as RadioButtonGroup,\n type RadioButtonGroupRef,\n} from './components/radio-button/radio-button-group/RadioButtonGroup';\nexport { default as RadioButton } from './components/radio-button/RadioButton';\nexport { default as ScrollView } from './components/scroll-view/ScrollView';\nexport { default as SearchBox } from './components/search-box/SearchBox';\nexport { default as SearchInput } from './components/search-input/SearchInput';\nexport { default as SelectButton } from './components/select-button/SelectButton';\nexport { default as SetupWizardItem } from './components/setup-wizard/setup-wizard-item/SetupWizardItem';\nexport { default as SetupWizard } from './components/setup-wizard/SetupWizard';\nexport type { SetupWizardRef } from './components/setup-wizard/SetupWizard';\nexport { default as SharingBar } from './components/sharing-bar/SharingBar';\nexport { default as Signature } from './components/signature/Signature';\nexport type { SignatureRef } from './components/signature/Signature';\nexport { default as SliderButton } from './components/slider-button/SliderButton';\nexport { default as Slider } from './components/slider/Slider';\nexport {\n default as SmallWaitCursor,\n SmallWaitCursorSize,\n SmallWaitCursorSpeed,\n} from './components/small-wait-cursor/SmallWaitCursor';\nexport { default as TagInput } from './components/tag-input/TagInput';\nexport { default as TextArea } from './components/text-area/TextArea';\nexport { default as Tooltip } from './components/tooltip/Tooltip';\nexport { default as Truncation } from './components/truncation/Truncation';\nexport { MentionFinderPopupAlignment } from './constants/mentionFinder';\nexport { useElementSize } from './hooks/useElementSize';\nexport { ComboBoxDirection } from './types/comboBox';\nexport { ContentCardType } from './types/contentCard';\nexport { ContextMenuAlignment } from './types/contextMenu';\nexport type { FileItem, Image, InternalFileItem, Meta, Video } from './types/file';\nexport type { FileInputFileItem } from './types/fileInput';\nexport { FilterButtonItemShape, FilterButtonSize } from './types/filterButtons';\nexport type { IFilterButtonItem as FilterButtonItem } from './types/filterButtons';\nexport type { IListItemRightElements } from './types/list';\nexport type { PopupRef } from './types/popup';\nexport type { RadioButtonItem } from './types/radioButton';\nexport type {\n ISearchBoxItem as SearchBoxItem,\n ISearchBoxItems as SearchBoxItems,\n} from './types/searchBox';\nexport type { SelectButtonItem } from './types/selectButton';\nexport type { SliderButtonItem } from './types/slider-button';\nexport { ClampPosition } from './types/truncation';\nexport { getIsTouch } from './utils/environment';\nexport { getFileAsArrayBuffer, selectFiles } from './utils/fileDialog';\nexport { isTobitEmployee } from './utils/isTobitEmployee';\nexport { uploadFile } from './utils/uploadFile';\n"],"mappings":"AAAA;AACA,SAASA,OAAO,IAAIC,SAAS,QAAQ,kCAAkC;AACvE,SAASD,OAAO,IAAIE,gBAAgB,QAAQ,2DAA2D;AACvG,SAASF,OAAO,IAAIG,cAAc,QAAQ,uDAAuD;AACjG,SAASH,OAAO,IAAII,cAAc,QAAQ,uDAAuD;AACjG,SAASJ,OAAO,IAAIK,aAAa,QAAQ,qDAAqD;AAC9F,SAASL,OAAO,IAAIM,aAAa,QAAQ,2CAA2C;AACpF,SACIC,WAAW,EACXP,OAAO,IAAIQ,YAAY,QACpB,gDAAgD;AACvD,SAASR,OAAO,IAAIS,KAAK,Q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O,IAAIkC,WAAW,QAAQ,uCAAuC;AAC9E,SAASlC,OAAO,IAAImC,YAAY,QAAQ,yCAAyC;AACjF,SAASnC,OAAO,IAAIoC,eAAe,QAAQ,6DAA6D;AACxG,SAASpC,OAAO,IAAIqC,WAAW,QAAQ,uCAAuC;AAE9E,SAASrC,OAAO,IAAIsC,UAAU,QAAQ,qCAAqC;AAC3E,SAAStC,OAAO,IAAIuC,SAAS,QAAQ,kCAAkC;AAEvE,SAASvC,OAAO,IAAIwC,YAAY,QAAQ,yCAAyC;AACjF,SAASxC,OAAO,IAAIyC,MAAM,QAAQ,4BAA4B;AAC9D,SACIzC,OAAO,IAAI0C,eAAe,EAC1BC,mBAAmB,EACnBC,oBAAoB,QACjB,gDAAgD;AACvD,SAAS5C,OAAO,IAAI6C,QAAQ,QAAQ,iCAAiC;AACrE,SAAS7C,OAAO,IAAI8C,QAAQ,QAAQ,iCAAiC;AACrE,SAAS9C,OAAO,IAAI+C,OAAO,QAAQ,8BAA8B;AACjE,SAAS/C,OAAO,IAAIgD,UAAU,QAAQ,oCAAoC;AAC1E,SAASC,2BAA2B,QAAQ,2BAA2B;AACvE,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,iBAAiB,QAAQ,kBAAkB;AACpD,SAASC,eAAe,QAAQ,qBAAqB;AACrD,SAASC,oBAAoB,QAAQ,qBAAqB;AAG1D,SAASC,qBAAqB,EAAEC,gBAAgB,QAAQ,uBAAuB;AAW/E,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,oBAAoB,EAAEC,WAAW,QAAQ,oBAAoB;AACtE,SAASC,eAAe,QAAQ,yBAAyB;AACzD,SAASC,UAAU,QAAQ,oBAAoB","ignoreList":[]}
@@ -11,7 +11,6 @@ export declare const StyledMotionAccordion: import("styled-components/dist/types
11
11
  slot?: string | undefined;
12
12
  title?: string | undefined;
13
13
  color?: string | undefined;
14
- className?: string | undefined;
15
14
  rel?: string | undefined;
16
15
  defaultChecked?: boolean | undefined;
17
16
  defaultValue?: string | number | readonly string[] | undefined;
@@ -19,6 +18,7 @@ export declare const StyledMotionAccordion: import("styled-components/dist/types
19
18
  suppressHydrationWarning?: boolean | undefined;
20
19
  accessKey?: string | undefined;
21
20
  autoFocus?: boolean | undefined;
21
+ className?: string | undefined;
22
22
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
23
23
  contextMenu?: string | undefined;
24
24
  dir?: string | undefined;
@@ -8,7 +8,6 @@ export declare const StyledMotionAccordionBody: import("styled-components/dist/t
8
8
  slot?: string | undefined;
9
9
  title?: string | undefined;
10
10
  color?: string | undefined;
11
- className?: string | undefined;
12
11
  rel?: string | undefined;
13
12
  defaultChecked?: boolean | undefined;
14
13
  defaultValue?: string | number | readonly string[] | undefined;
@@ -16,6 +15,7 @@ export declare const StyledMotionAccordionBody: import("styled-components/dist/t
16
15
  suppressHydrationWarning?: boolean | undefined;
17
16
  accessKey?: string | undefined;
18
17
  autoFocus?: boolean | undefined;
18
+ className?: string | undefined;
19
19
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
20
20
  contextMenu?: string | undefined;
21
21
  dir?: string | undefined;
@@ -4,7 +4,6 @@ export declare const StyledMotionAccordionHead: import("styled-components/dist/t
4
4
  slot?: string | undefined;
5
5
  title?: string | undefined;
6
6
  color?: string | undefined;
7
- className?: string | undefined;
8
7
  rel?: string | undefined;
9
8
  defaultChecked?: boolean | undefined;
10
9
  defaultValue?: string | number | readonly string[] | undefined;
@@ -12,6 +11,7 @@ export declare const StyledMotionAccordionHead: import("styled-components/dist/t
12
11
  suppressHydrationWarning?: boolean | undefined;
13
12
  accessKey?: string | undefined;
14
13
  autoFocus?: boolean | undefined;
14
+ className?: string | undefined;
15
15
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
16
16
  contextMenu?: string | undefined;
17
17
  dir?: string | undefined;
@@ -269,7 +269,6 @@ export declare const StyledMotionIconWrapper: import("styled-components/dist/typ
269
269
  slot?: string | undefined;
270
270
  title?: string | undefined;
271
271
  color?: string | undefined;
272
- className?: string | undefined;
273
272
  rel?: string | undefined;
274
273
  defaultChecked?: boolean | undefined;
275
274
  defaultValue?: string | number | readonly string[] | undefined;
@@ -277,6 +276,7 @@ export declare const StyledMotionIconWrapper: import("styled-components/dist/typ
277
276
  suppressHydrationWarning?: boolean | undefined;
278
277
  accessKey?: string | undefined;
279
278
  autoFocus?: boolean | undefined;
279
+ className?: string | undefined;
280
280
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
281
281
  contextMenu?: string | undefined;
282
282
  dir?: string | undefined;
@@ -538,7 +538,6 @@ export declare const StyledMotionContentWrapper: import("styled-components/dist/
538
538
  slot?: string | undefined;
539
539
  title?: string | undefined;
540
540
  color?: string | undefined;
541
- className?: string | undefined;
542
541
  rel?: string | undefined;
543
542
  defaultChecked?: boolean | undefined;
544
543
  defaultValue?: string | number | readonly string[] | undefined;
@@ -546,6 +545,7 @@ export declare const StyledMotionContentWrapper: import("styled-components/dist/
546
545
  suppressHydrationWarning?: boolean | undefined;
547
546
  accessKey?: string | undefined;
548
547
  autoFocus?: boolean | undefined;
548
+ className?: string | undefined;
549
549
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
550
550
  contextMenu?: string | undefined;
551
551
  dir?: string | undefined;
@@ -803,7 +803,6 @@ export declare const StyledMotionTitleWrapper: import("styled-components/dist/ty
803
803
  slot?: string | undefined;
804
804
  title?: string | undefined;
805
805
  color?: string | undefined;
806
- className?: string | undefined;
807
806
  rel?: string | undefined;
808
807
  defaultChecked?: boolean | undefined;
809
808
  defaultValue?: string | number | readonly string[] | undefined;
@@ -811,6 +810,7 @@ export declare const StyledMotionTitleWrapper: import("styled-components/dist/ty
811
810
  suppressHydrationWarning?: boolean | undefined;
812
811
  accessKey?: string | undefined;
813
812
  autoFocus?: boolean | undefined;
813
+ className?: string | undefined;
814
814
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
815
815
  contextMenu?: string | undefined;
816
816
  dir?: string | undefined;
@@ -1073,7 +1073,6 @@ export declare const StyledMotionTitle: import("styled-components/dist/types").I
1073
1073
  slot?: string | undefined;
1074
1074
  title?: string | undefined;
1075
1075
  color?: string | undefined;
1076
- className?: string | undefined;
1077
1076
  rel?: string | undefined;
1078
1077
  defaultChecked?: boolean | undefined;
1079
1078
  defaultValue?: string | number | readonly string[] | undefined;
@@ -1081,6 +1080,7 @@ export declare const StyledMotionTitle: import("styled-components/dist/types").I
1081
1080
  suppressHydrationWarning?: boolean | undefined;
1082
1081
  accessKey?: string | undefined;
1083
1082
  autoFocus?: boolean | undefined;
1083
+ className?: string | undefined;
1084
1084
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
1085
1085
  contextMenu?: string | undefined;
1086
1086
  dir?: string | undefined;
@@ -1336,7 +1336,6 @@ export declare const StyledMotionTitleElementWrapper: import("styled-components/
1336
1336
  slot?: string | undefined;
1337
1337
  title?: string | undefined;
1338
1338
  color?: string | undefined;
1339
- className?: string | undefined;
1340
1339
  rel?: string | undefined;
1341
1340
  defaultChecked?: boolean | undefined;
1342
1341
  defaultValue?: string | number | readonly string[] | undefined;
@@ -1344,6 +1343,7 @@ export declare const StyledMotionTitleElementWrapper: import("styled-components/
1344
1343
  suppressHydrationWarning?: boolean | undefined;
1345
1344
  accessKey?: string | undefined;
1346
1345
  autoFocus?: boolean | undefined;
1346
+ className?: string | undefined;
1347
1347
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
1348
1348
  contextMenu?: string | undefined;
1349
1349
  dir?: string | undefined;
@@ -1602,7 +1602,6 @@ export declare const StyledMotionSearchWrapper: import("styled-components/dist/t
1602
1602
  slot?: string | undefined;
1603
1603
  title?: string | undefined;
1604
1604
  color?: string | undefined;
1605
- className?: string | undefined;
1606
1605
  rel?: string | undefined;
1607
1606
  defaultChecked?: boolean | undefined;
1608
1607
  defaultValue?: string | number | readonly string[] | undefined;
@@ -1610,6 +1609,7 @@ export declare const StyledMotionSearchWrapper: import("styled-components/dist/t
1610
1609
  suppressHydrationWarning?: boolean | undefined;
1611
1610
  accessKey?: string | undefined;
1612
1611
  autoFocus?: boolean | undefined;
1612
+ className?: string | undefined;
1613
1613
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
1614
1614
  contextMenu?: string | undefined;
1615
1615
  dir?: string | undefined;
@@ -1867,7 +1867,6 @@ export declare const StyledMotionRightElementWrapper: import("styled-components/
1867
1867
  slot?: string | undefined;
1868
1868
  title?: string | undefined;
1869
1869
  color?: string | undefined;
1870
- className?: string | undefined;
1871
1870
  rel?: string | undefined;
1872
1871
  defaultChecked?: boolean | undefined;
1873
1872
  defaultValue?: string | number | readonly string[] | undefined;
@@ -1875,6 +1874,7 @@ export declare const StyledMotionRightElementWrapper: import("styled-components/
1875
1874
  suppressHydrationWarning?: boolean | undefined;
1876
1875
  accessKey?: string | undefined;
1877
1876
  autoFocus?: boolean | undefined;
1877
+ className?: string | undefined;
1878
1878
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
1879
1879
  contextMenu?: string | undefined;
1880
1880
  dir?: string | undefined;
@@ -2140,7 +2140,6 @@ export declare const StyledMotionRightInput: import("styled-components/dist/type
2140
2140
  size?: number | undefined;
2141
2141
  color?: string | undefined;
2142
2142
  type?: import("react").HTMLInputTypeAttribute | undefined;
2143
- className?: string | undefined;
2144
2143
  rel?: string | undefined;
2145
2144
  defaultChecked?: boolean | undefined;
2146
2145
  defaultValue?: string | number | readonly string[] | undefined;
@@ -2148,6 +2147,7 @@ export declare const StyledMotionRightInput: import("styled-components/dist/type
2148
2147
  suppressHydrationWarning?: boolean | undefined;
2149
2148
  accessKey?: string | undefined;
2150
2149
  autoFocus?: boolean | undefined;
2150
+ className?: string | undefined;
2151
2151
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
2152
2152
  contextMenu?: string | undefined;
2153
2153
  dir?: string | undefined;
@@ -2429,7 +2429,6 @@ export declare const StyledMotionRightInputIconWrapper: import("styled-component
2429
2429
  slot?: string | undefined;
2430
2430
  title?: string | undefined;
2431
2431
  color?: string | undefined;
2432
- className?: string | undefined;
2433
2432
  rel?: string | undefined;
2434
2433
  defaultChecked?: boolean | undefined;
2435
2434
  defaultValue?: string | number | readonly string[] | undefined;
@@ -2437,6 +2436,7 @@ export declare const StyledMotionRightInputIconWrapper: import("styled-component
2437
2436
  suppressHydrationWarning?: boolean | undefined;
2438
2437
  accessKey?: string | undefined;
2439
2438
  autoFocus?: boolean | undefined;
2439
+ className?: string | undefined;
2440
2440
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
2441
2441
  contextMenu?: string | undefined;
2442
2442
  dir?: string | undefined;
@@ -26,7 +26,6 @@ export declare const StyledMotionAmountControlButton: import("styled-components/
26
26
  value?: string | number | readonly string[] | undefined;
27
27
  color?: string | undefined;
28
28
  type?: "button" | "reset" | "submit" | undefined;
29
- className?: string | undefined;
30
29
  rel?: string | undefined;
31
30
  defaultChecked?: boolean | undefined;
32
31
  defaultValue?: string | number | readonly string[] | undefined;
@@ -34,6 +33,7 @@ export declare const StyledMotionAmountControlButton: import("styled-components/
34
33
  suppressHydrationWarning?: boolean | undefined;
35
34
  accessKey?: string | undefined;
36
35
  autoFocus?: boolean | undefined;
36
+ className?: string | undefined;
37
37
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
38
38
  contextMenu?: string | undefined;
39
39
  dir?: string | undefined;
@@ -14,7 +14,6 @@ export declare const StyledMotionButton: import("styled-components/dist/types").
14
14
  value?: string | number | readonly string[] | undefined;
15
15
  color?: string | undefined;
16
16
  type?: "button" | "reset" | "submit" | undefined;
17
- className?: string | undefined;
18
17
  rel?: string | undefined;
19
18
  defaultChecked?: boolean | undefined;
20
19
  defaultValue?: string | number | readonly string[] | undefined;
@@ -22,6 +21,7 @@ export declare const StyledMotionButton: import("styled-components/dist/types").
22
21
  suppressHydrationWarning?: boolean | undefined;
23
22
  accessKey?: string | undefined;
24
23
  autoFocus?: boolean | undefined;
24
+ className?: string | undefined;
25
25
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
26
26
  contextMenu?: string | undefined;
27
27
  dir?: string | undefined;
@@ -285,7 +285,6 @@ export declare const StyledMotionChildrenWrapper: import("styled-components/dist
285
285
  slot?: string | undefined;
286
286
  title?: string | undefined;
287
287
  color?: string | undefined;
288
- className?: string | undefined;
289
288
  rel?: string | undefined;
290
289
  defaultChecked?: boolean | undefined;
291
290
  defaultValue?: string | number | readonly string[] | undefined;
@@ -293,6 +292,7 @@ export declare const StyledMotionChildrenWrapper: import("styled-components/dist
293
292
  suppressHydrationWarning?: boolean | undefined;
294
293
  accessKey?: string | undefined;
295
294
  autoFocus?: boolean | undefined;
295
+ className?: string | undefined;
296
296
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
297
297
  contextMenu?: string | undefined;
298
298
  dir?: string | undefined;
@@ -550,7 +550,6 @@ export declare const StyledMotionWaitCursorWrapper: import("styled-components/di
550
550
  slot?: string | undefined;
551
551
  title?: string | undefined;
552
552
  color?: string | undefined;
553
- className?: string | undefined;
554
553
  rel?: string | undefined;
555
554
  defaultChecked?: boolean | undefined;
556
555
  defaultValue?: string | number | readonly string[] | undefined;
@@ -558,6 +557,7 @@ export declare const StyledMotionWaitCursorWrapper: import("styled-components/di
558
557
  suppressHydrationWarning?: boolean | undefined;
559
558
  accessKey?: string | undefined;
560
559
  autoFocus?: boolean | undefined;
560
+ className?: string | undefined;
561
561
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
562
562
  contextMenu?: string | undefined;
563
563
  dir?: string | undefined;
@@ -5,7 +5,7 @@ declare enum ColorMode {
5
5
  Dark = 1,
6
6
  Light = 2
7
7
  }
8
- export type ColorSchemeProviderProps = {
8
+ type ColorSchemeProviderProps = {
9
9
  /**
10
10
  * The content of the application or the components for which the styles should be set
11
11
  */
@@ -33,7 +33,6 @@ export declare const StyledMotionComboBoxBody: import("styled-components/dist/ty
33
33
  slot?: string | undefined;
34
34
  title?: string | undefined;
35
35
  color?: string | undefined;
36
- className?: string | undefined;
37
36
  rel?: string | undefined;
38
37
  defaultChecked?: boolean | undefined;
39
38
  defaultValue?: string | number | readonly string[] | undefined;
@@ -41,6 +40,7 @@ export declare const StyledMotionComboBoxBody: import("styled-components/dist/ty
41
40
  suppressHydrationWarning?: boolean | undefined;
42
41
  accessKey?: string | undefined;
43
42
  autoFocus?: boolean | undefined;
43
+ className?: string | undefined;
44
44
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
45
45
  contextMenu?: string | undefined;
46
46
  dir?: string | undefined;
@@ -7,7 +7,6 @@ export declare const StyledMotionContextMenuContent: import("styled-components/d
7
7
  slot?: string | undefined;
8
8
  title?: string | undefined;
9
9
  color?: string | undefined;
10
- className?: string | undefined;
11
10
  rel?: string | undefined;
12
11
  defaultChecked?: boolean | undefined;
13
12
  defaultValue?: string | number | readonly string[] | undefined;
@@ -15,6 +14,7 @@ export declare const StyledMotionContextMenuContent: import("styled-components/d
15
14
  suppressHydrationWarning?: boolean | undefined;
16
15
  accessKey?: string | undefined;
17
16
  autoFocus?: boolean | undefined;
17
+ className?: string | undefined;
18
18
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
19
19
  contextMenu?: string | undefined;
20
20
  dir?: string | undefined;
@@ -2,7 +2,6 @@ export declare const StyledMotionExpandableContent: import("styled-components/di
2
2
  slot?: string | undefined;
3
3
  title?: string | undefined;
4
4
  color?: string | undefined;
5
- className?: string | undefined;
6
5
  rel?: string | undefined;
7
6
  defaultChecked?: boolean | undefined;
8
7
  defaultValue?: string | number | readonly string[] | undefined;
@@ -10,6 +9,7 @@ export declare const StyledMotionExpandableContent: import("styled-components/di
10
9
  suppressHydrationWarning?: boolean | undefined;
11
10
  accessKey?: string | undefined;
12
11
  autoFocus?: boolean | undefined;
12
+ className?: string | undefined;
13
13
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
14
14
  contextMenu?: string | undefined;
15
15
  dir?: string | undefined;
@@ -19,7 +19,6 @@ export declare const StyledMotionFileInputList: import("styled-components/dist/t
19
19
  slot?: string | undefined;
20
20
  title?: string | undefined;
21
21
  color?: string | undefined;
22
- className?: string | undefined;
23
22
  rel?: string | undefined;
24
23
  defaultChecked?: boolean | undefined;
25
24
  defaultValue?: string | number | readonly string[] | undefined;
@@ -27,6 +26,7 @@ export declare const StyledMotionFileInputList: import("styled-components/dist/t
27
26
  suppressHydrationWarning?: boolean | undefined;
28
27
  accessKey?: string | undefined;
29
28
  autoFocus?: boolean | undefined;
29
+ className?: string | undefined;
30
30
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
31
31
  contextMenu?: string | undefined;
32
32
  dir?: string | undefined;
@@ -28,7 +28,6 @@ export declare const StyledMotionFilterButtonItemBackground: import("styled-comp
28
28
  slot?: string | undefined;
29
29
  title?: string | undefined;
30
30
  color?: string | undefined;
31
- className?: string | undefined;
32
31
  rel?: string | undefined;
33
32
  defaultChecked?: boolean | undefined;
34
33
  defaultValue?: string | number | readonly string[] | undefined;
@@ -36,6 +35,7 @@ export declare const StyledMotionFilterButtonItemBackground: import("styled-comp
36
35
  suppressHydrationWarning?: boolean | undefined;
37
36
  accessKey?: string | undefined;
38
37
  autoFocus?: boolean | undefined;
38
+ className?: string | undefined;
39
39
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
40
40
  contextMenu?: string | undefined;
41
41
  dir?: string | undefined;
@@ -27,7 +27,6 @@ export declare const StyledMotionInputLabelWrapper: import("styled-components/di
27
27
  slot?: string | undefined;
28
28
  title?: string | undefined;
29
29
  color?: string | undefined;
30
- className?: string | undefined;
31
30
  rel?: string | undefined;
32
31
  defaultChecked?: boolean | undefined;
33
32
  defaultValue?: string | number | readonly string[] | undefined;
@@ -35,6 +34,7 @@ export declare const StyledMotionInputLabelWrapper: import("styled-components/di
35
34
  suppressHydrationWarning?: boolean | undefined;
36
35
  accessKey?: string | undefined;
37
36
  autoFocus?: boolean | undefined;
37
+ className?: string | undefined;
38
38
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
39
39
  contextMenu?: string | undefined;
40
40
  dir?: string | undefined;
@@ -291,7 +291,6 @@ export declare const StyledMotionInputElement: import("styled-components/dist/ty
291
291
  slot?: string | undefined;
292
292
  title?: string | undefined;
293
293
  color?: string | undefined;
294
- className?: string | undefined;
295
294
  rel?: string | undefined;
296
295
  defaultChecked?: boolean | undefined;
297
296
  defaultValue?: string | number | readonly string[] | undefined;
@@ -299,6 +298,7 @@ export declare const StyledMotionInputElement: import("styled-components/dist/ty
299
298
  suppressHydrationWarning?: boolean | undefined;
300
299
  accessKey?: string | undefined;
301
300
  autoFocus?: boolean | undefined;
301
+ className?: string | undefined;
302
302
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
303
303
  contextMenu?: string | undefined;
304
304
  dir?: string | undefined;
@@ -562,7 +562,6 @@ export declare const StyledMotionInputClearIcon: import("styled-components/dist/
562
562
  slot?: string | undefined;
563
563
  title?: string | undefined;
564
564
  color?: string | undefined;
565
- className?: string | undefined;
566
565
  rel?: string | undefined;
567
566
  defaultChecked?: boolean | undefined;
568
567
  defaultValue?: string | number | readonly string[] | undefined;
@@ -570,6 +569,7 @@ export declare const StyledMotionInputClearIcon: import("styled-components/dist/
570
569
  suppressHydrationWarning?: boolean | undefined;
571
570
  accessKey?: string | undefined;
572
571
  autoFocus?: boolean | undefined;
572
+ className?: string | undefined;
573
573
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
574
574
  contextMenu?: string | undefined;
575
575
  dir?: string | undefined;
@@ -9,7 +9,6 @@ export declare const StyledMotionListItem: import("styled-components/dist/types"
9
9
  slot?: string | undefined;
10
10
  title?: string | undefined;
11
11
  color?: string | undefined;
12
- className?: string | undefined;
13
12
  rel?: string | undefined;
14
13
  defaultChecked?: boolean | undefined;
15
14
  defaultValue?: string | number | readonly string[] | undefined;
@@ -17,6 +16,7 @@ export declare const StyledMotionListItem: import("styled-components/dist/types"
17
16
  suppressHydrationWarning?: boolean | undefined;
18
17
  accessKey?: string | undefined;
19
18
  autoFocus?: boolean | undefined;
19
+ className?: string | undefined;
20
20
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
21
21
  contextMenu?: string | undefined;
22
22
  dir?: string | undefined;
@@ -2,7 +2,6 @@ export declare const StyledMotionListItemBody: import("styled-components/dist/ty
2
2
  slot?: string | undefined;
3
3
  title?: string | undefined;
4
4
  color?: string | undefined;
5
- className?: string | undefined;
6
5
  rel?: string | undefined;
7
6
  defaultChecked?: boolean | undefined;
8
7
  defaultValue?: string | number | readonly string[] | undefined;
@@ -10,6 +9,7 @@ export declare const StyledMotionListItemBody: import("styled-components/dist/ty
10
9
  suppressHydrationWarning?: boolean | undefined;
11
10
  accessKey?: string | undefined;
12
11
  autoFocus?: boolean | undefined;
12
+ className?: string | undefined;
13
13
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
14
14
  contextMenu?: string | undefined;
15
15
  dir?: string | undefined;