@apollion-dsi/core 3.0.0 → 4.1.0
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/README.md +47 -21
- package/lib/chunks/chunk-2UQUA5JQ.esm.js +14 -0
- package/lib/chunks/chunk-34F43UAI.esm.js +4 -0
- package/lib/chunks/chunk-43YSWDK6.esm.js +1 -0
- package/lib/chunks/chunk-4HE643OX.esm.js +1 -0
- package/lib/chunks/{chunk-BKF5RIHP.esm.js → chunk-4HGSFSHL.esm.js} +1 -1
- package/lib/chunks/chunk-4RPR6CZT.esm.js +1 -0
- package/lib/chunks/chunk-4WWVMB7R.esm.js +67 -0
- package/lib/chunks/chunk-53R7OVXP.esm.js +1 -0
- package/lib/chunks/chunk-5BR6JTC5.esm.js +5 -0
- package/lib/chunks/chunk-5H2LWL6K.esm.js +1 -0
- package/lib/chunks/{chunk-3XS7RVYS.esm.js → chunk-5NIX5AK7.esm.js} +3 -3
- package/lib/chunks/chunk-76C7AHBV.esm.js +1 -0
- package/lib/chunks/chunk-777HH5XE.esm.js +9 -0
- package/lib/chunks/chunk-7LG563DZ.esm.js +1 -0
- package/lib/chunks/chunk-7WVLGVVA.esm.js +1 -0
- package/lib/chunks/{chunk-G3IXCOJI.esm.js → chunk-A4BXGJYW.esm.js} +1 -1
- package/lib/chunks/chunk-APD22JEO.esm.js +1 -0
- package/lib/chunks/chunk-BFZUNHO5.esm.js +4 -0
- package/lib/chunks/{chunk-TAVNLEMI.esm.js → chunk-BJFSNET7.esm.js} +5 -5
- package/lib/chunks/chunk-BXLZT77M.esm.js +5 -0
- package/lib/chunks/{chunk-5XXISYUW.esm.js → chunk-BYRL7X5M.esm.js} +4 -4
- package/lib/chunks/chunk-C2HYRKZ5.esm.js +72 -0
- package/lib/chunks/{chunk-SKV75I6W.esm.js → chunk-C7NZ4MPY.esm.js} +1 -1
- package/lib/chunks/chunk-CPOKPPFV.esm.js +7 -0
- package/lib/chunks/chunk-DEAQAH6B.esm.js +171 -0
- package/lib/chunks/chunk-E2S4LJNF.esm.js +40 -0
- package/lib/chunks/chunk-EC3O6B7O.esm.js +1 -0
- package/lib/chunks/chunk-EEBGH4FW.esm.js +23 -0
- package/lib/chunks/chunk-EWU2RG4F.esm.js +38 -0
- package/lib/chunks/{chunk-D43MLNCQ.esm.js → chunk-FKAOGMRM.esm.js} +1 -1
- package/lib/chunks/chunk-FPQOBUTR.esm.js +1 -0
- package/lib/chunks/{chunk-TGTH3E4X.esm.js → chunk-H4CYNDAM.esm.js} +1 -1
- package/lib/chunks/{chunk-V77X6UJ2.esm.js → chunk-H6RGCTRX.esm.js} +1 -1
- package/lib/chunks/chunk-HSNUZR7V.esm.js +1 -0
- package/lib/chunks/chunk-IT4J7I6H.esm.js +1 -0
- package/lib/chunks/chunk-IWMEDT6U.esm.js +1 -0
- package/lib/chunks/{chunk-XNBK5E7D.esm.js → chunk-J73BJCFK.esm.js} +2 -2
- package/lib/chunks/chunk-JD7UXJES.esm.js +1 -0
- package/lib/chunks/chunk-JOKVE3IX.esm.js +1 -0
- package/lib/chunks/chunk-KB2USQJE.esm.js +1 -0
- package/lib/chunks/chunk-LP4ND77J.esm.js +15 -0
- package/lib/chunks/chunk-M3BBRFF2.esm.js +1 -0
- package/lib/chunks/{chunk-BYYMKYCC.esm.js → chunk-MJ7ZMPLR.esm.js} +1 -1
- package/lib/chunks/chunk-N7OQM7C7.esm.js +1 -0
- package/lib/chunks/chunk-NSZRKCOX.esm.js +1 -0
- package/lib/chunks/{chunk-WTRTFZV6.esm.js → chunk-NYWQDBFO.esm.js} +1 -1
- package/lib/chunks/chunk-O4NT6MN7.esm.js +15 -0
- package/lib/chunks/chunk-O7P2XALT.esm.js +104 -0
- package/lib/chunks/chunk-OFLB4VL6.esm.js +1 -0
- package/lib/chunks/chunk-OTJ32SHO.esm.js +94 -0
- package/lib/chunks/chunk-P4JVQK7V.esm.js +81 -0
- package/lib/chunks/chunk-PP2U26DD.esm.js +6 -0
- package/lib/chunks/{chunk-KDYOOGW7.esm.js → chunk-Q44UHGO6.esm.js} +1 -1
- package/lib/chunks/chunk-Q6KSPMLW.esm.js +1 -0
- package/lib/chunks/chunk-RF5E2C7X.esm.js +6 -0
- package/lib/chunks/chunk-TDVKGVGD.esm.js +1 -0
- package/lib/chunks/chunk-TG5BCBO4.esm.js +1 -0
- package/lib/chunks/chunk-THOEVSMN.esm.js +3 -0
- package/lib/chunks/chunk-TOYBV66A.esm.js +1 -0
- package/lib/chunks/chunk-TVJISBND.esm.js +1 -0
- package/lib/chunks/chunk-U4ODIBWG.esm.js +1 -0
- package/lib/chunks/{chunk-XNCMA56H.esm.js → chunk-UUVZW6VR.esm.js} +14 -10
- package/lib/chunks/chunk-UZFVIKSU.esm.js +142 -0
- package/lib/chunks/chunk-V2CHFCNJ.esm.js +4 -0
- package/lib/chunks/chunk-V2DSTTQA.esm.js +1 -0
- package/lib/chunks/{chunk-TR4PVAXI.esm.js → chunk-V2FPYZTP.esm.js} +1 -1
- package/lib/chunks/chunk-V5ZKDMDH.esm.js +1 -0
- package/lib/chunks/{chunk-WAHR5LIT.esm.js → chunk-VVZ6FCG7.esm.js} +1 -1
- package/lib/chunks/chunk-XD7WY5I4.esm.js +7 -0
- package/lib/chunks/chunk-Y2T3ENA4.esm.js +1 -0
- package/lib/chunks/chunk-Y4VB4DRM.esm.js +1 -0
- package/lib/chunks/chunk-Y7EHFKPF.esm.js +61 -0
- package/lib/chunks/{chunk-3HHYBI4E.esm.js → chunk-ZRIEVBTB.esm.js} +1 -1
- package/lib/chunks/{chunk-6H6SEPAI.esm.js → chunk-ZX7OP4LN.esm.js} +15 -15
- package/lib/containers/Base/Base.style.d.ts +144 -144
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/Flex.style.d.ts +145 -145
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/Grid.style.d.ts +3 -3
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Notification/Notification.interface.d.ts +1 -1
- package/lib/containers/Notification/Notification.style.d.ts +1156 -1156
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/Paper.style.d.ts +9 -9
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/Scroll.style.d.ts +8 -8
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/DataTable.d.ts +1 -1
- package/lib/dataDisplay/DataTable/DataTable.filters.d.ts +53 -0
- package/lib/dataDisplay/DataTable/DataTable.helpers.d.ts +82 -4
- package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +137 -4
- package/lib/dataDisplay/DataTable/DataTable.props.d.ts +4 -2
- package/lib/dataDisplay/DataTable/DataTable.style.d.ts +71 -31
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/DescriptionList.d.ts +33 -0
- package/lib/dataDisplay/DescriptionList/DescriptionList.interface.d.ts +61 -0
- package/lib/dataDisplay/DescriptionList/index.d.ts +11 -0
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -0
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableBody/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +9 -9
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeader/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableRow/index.esm.js +1 -1
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/Tabs.style.d.ts +25 -25
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/Avatar.style.d.ts +4 -4
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/Button.style.d.ts +7 -7
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Calendar/Calendar.d.ts +30 -0
- package/lib/elements/Calendar/Calendar.interface.d.ts +37 -0
- package/lib/elements/Calendar/Calendar.style.d.ts +17 -0
- package/lib/elements/Calendar/index.d.ts +13 -0
- package/lib/elements/Calendar/index.esm.js +1 -0
- package/lib/elements/Dropdown/Dropdown.d.ts +8 -2
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/Icon.style.d.ts +2 -2
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/IconButton/IconButton.style.d.ts +8 -8
- package/lib/elements/IconButton/index.esm.js +1 -1
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Label/Label.style.d.ts +4 -4
- package/lib/elements/Label/index.esm.js +1 -1
- package/lib/elements/Link/Link.d.ts +19 -8
- package/lib/elements/Link/Link.interface.d.ts +33 -12
- package/lib/elements/Link/Link.style.d.ts +38 -690
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/List.style.d.ts +8 -8
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.style.d.ts +4317 -4317
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/ProgressBar.style.d.ts +10 -10
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Spinner/Spinner.style.d.ts +2 -2
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/Text.props.d.ts +140 -140
- package/lib/elements/Text/Text.style.d.ts +2 -2
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/Tooltip.d.ts +6 -6
- package/lib/elements/Tooltip/Tooltip.interface.d.ts +14 -6
- package/lib/elements/Tooltip/Tooltip.style.d.ts +15 -10
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/BorderFactory/BorderFactory.d.ts +1 -1
- package/lib/factory/ContainerFactory/ContainerFactory.d.ts +1 -1
- package/lib/factory/DeepFactory/DeepFactory.d.ts +1 -1
- package/lib/factory/DeepFactory/index.esm.js +1 -1
- package/lib/factory/FlexFactory/FlexFactory.d.ts +1 -1
- package/lib/factory/FontFactory/FontFactory.d.ts +1 -1
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.d.ts +1 -1
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/SizeFactory/SizeFactory.d.ts +1 -1
- package/lib/factory/SpacingFactory/SpacingFactory.d.ts +1 -1
- package/lib/factory/System/System.d.ts +2 -4
- package/lib/factory/System/System.interface.d.ts +2 -2
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/Checkbox.style.d.ts +11 -11
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/Field.d.ts +2 -1
- package/lib/form/Field/Field.interface.d.ts +16 -7
- package/lib/form/Field/Field.props.d.ts +39 -0
- package/lib/form/Field/Field.style.d.ts +16 -16
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/Form.helpers.d.ts +11 -8
- package/lib/form/Form/Form.interface.d.ts +24 -20
- package/lib/form/Form/Form.style.d.ts +10 -10
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/Input.style.d.ts +22 -22
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/InputDate.d.ts +21 -11
- package/lib/form/InputDate/InputDate.interface.d.ts +67 -0
- package/lib/form/InputDate/buildSyntheticEvent.d.ts +26 -0
- package/lib/form/InputDate/index.d.ts +9 -2
- package/lib/form/InputDate/index.esm.js +1 -1
- package/lib/form/InputMask/index.esm.js +1 -1
- package/lib/form/InputRange/InputRange.style.d.ts +24 -24
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/InputSelect/DropdownIndicator.d.ts +1 -1
- package/lib/form/InputSelect/InputSelect.interface.d.ts +1 -1
- package/lib/form/InputSelect/index.esm.js +1 -1
- package/lib/form/Radio/Radio.style.d.ts +9 -9
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/TextArea/TextArea.style.d.ts +21 -21
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.style.d.ts +39 -39
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/index.esm.js +1 -1
- package/lib/hooks/index.esm.js +1 -1
- package/lib/hooks/useMediaQuery/index.esm.js +1 -1
- package/lib/hooks/useMediaQuery/useMediaQuery.d.ts +1 -1
- package/lib/hooks/useScript/index.esm.js +1 -1
- package/lib/icons/Icons/categoryInterface.d.ts +1 -0
- package/lib/icons/Icons/index.d.ts +1 -0
- package/lib/icons/Icons/index.esm.js +1 -1
- package/lib/icons/index.esm.js +1 -1
- package/lib/index.d.ts +27 -14
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1262
- package/lib/layouts/DefaultLayout/DefaultLayout.style.d.ts +12 -12
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/SideBarLayout.style.d.ts +12 -12
- package/lib/layouts/SideBarLayout/index.esm.js +1 -1
- package/lib/layouts/index.esm.js +1 -1
- package/lib/scenario/CircleComponent/index.esm.js +1 -1
- package/lib/scenario/RectComponent/index.esm.js +1 -1
- package/lib/scenario/index.esm.js +1 -1
- package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.d.ts +1 -1
- package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.interface.d.ts +1 -1
- package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
- package/lib/skeleton/TextPreset/index.esm.js +1 -1
- package/lib/skeleton/index.esm.js +1 -1
- package/lib/themes/Colors/Colors.helpers.d.ts +56 -4
- package/lib/themes/Colors/index.esm.js +1 -1
- package/lib/themes/Deep/index.esm.js +1 -1
- package/lib/themes/Depth/index.esm.js +1 -1
- package/lib/themes/Dimension/Dimension.interface.d.ts +24 -0
- package/lib/themes/Dimension/Dimension.props.d.ts +36 -0
- package/lib/themes/Dimension/index.d.ts +10 -0
- package/lib/themes/Dimension/index.esm.js +1 -0
- package/lib/themes/Foundation/Foundation.helpers.d.ts +32 -0
- package/lib/themes/Foundation/Foundation.interface.d.ts +84 -0
- package/lib/themes/Foundation/index.d.ts +17 -0
- package/lib/themes/Foundation/index.esm.js +1 -0
- package/lib/themes/GlobalStyle/GlobalStyle.d.ts +1 -1
- package/lib/themes/GlobalStyle/index.esm.js +1 -1
- package/lib/themes/Semantic/Semantic.helpers.d.ts +50 -0
- package/lib/themes/Semantic/Semantic.interface.d.ts +131 -0
- package/lib/themes/Semantic/index.d.ts +18 -0
- package/lib/themes/Semantic/index.esm.js +1 -0
- package/lib/themes/Spacing/Spacing.props.d.ts +32 -1
- package/lib/themes/Spacing/index.esm.js +1 -1
- package/lib/themes/Surface/Surface.d.ts +46 -0
- package/lib/themes/Surface/Surface.helpers.d.ts +52 -0
- package/lib/themes/Surface/Surface.interface.d.ts +20 -0
- package/lib/themes/Surface/index.d.ts +18 -0
- package/lib/themes/Surface/index.esm.js +1 -0
- package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +69 -0
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.d.ts +4 -0
- package/lib/themes/index.esm.js +1 -1
- package/lib/utils/components/Breakpoints/index.esm.js +1 -1
- package/lib/utils/components/index.esm.js +1 -1
- package/lib/vendors/Culori/component.d.ts +26 -0
- package/lib/vendors/Culori/index.d.ts +2 -0
- package/lib/vendors/Culori/interface.d.ts +28 -0
- package/lib/vendors/DateFns/component.d.ts +30 -0
- package/lib/vendors/DateFns/index.d.ts +2 -0
- package/lib/vendors/DateFns/interface.d.ts +14 -0
- package/lib/vendors/Deepmerge/component.d.ts +11 -0
- package/lib/vendors/Deepmerge/index.d.ts +1 -0
- package/lib/vendors/Deepmerge/interface.d.ts +10 -0
- package/lib/vendors/EmotionIsPropValid/component.d.ts +12 -0
- package/lib/vendors/EmotionIsPropValid/index.d.ts +1 -0
- package/lib/vendors/EmotionIsPropValid/interface.d.ts +9 -0
- package/lib/vendors/FastDeepEqual/component.d.ts +11 -0
- package/lib/vendors/FastDeepEqual/index.d.ts +1 -0
- package/lib/vendors/FastDeepEqual/interface.d.ts +9 -0
- package/lib/vendors/FloatingUI/component.d.ts +34 -0
- package/lib/vendors/FloatingUI/index.d.ts +2 -0
- package/lib/vendors/FloatingUI/interface.d.ts +18 -0
- package/lib/vendors/FramerMotion/component.d.ts +20 -0
- package/lib/vendors/FramerMotion/index.d.ts +2 -0
- package/lib/vendors/FramerMotion/interface.d.ts +15 -0
- package/lib/vendors/LodashDebounce/component.d.ts +11 -0
- package/lib/vendors/LodashDebounce/index.d.ts +2 -0
- package/lib/vendors/LodashDebounce/interface.d.ts +11 -0
- package/lib/vendors/Nanoid/component.d.ts +13 -0
- package/lib/vendors/Nanoid/index.d.ts +2 -0
- package/lib/vendors/Nanoid/interface.d.ts +11 -0
- package/lib/vendors/ObjectHash/component.d.ts +9 -0
- package/lib/vendors/ObjectHash/index.d.ts +2 -0
- package/lib/vendors/ObjectHash/interface.d.ts +8 -0
- package/lib/vendors/ReactContentLoader/component.d.ts +15 -0
- package/lib/vendors/ReactContentLoader/index.d.ts +2 -0
- package/lib/vendors/ReactContentLoader/interface.d.ts +10 -0
- package/lib/vendors/ReactDayPicker/component.d.ts +17 -0
- package/lib/vendors/ReactDayPicker/index.d.ts +2 -0
- package/lib/vendors/ReactDayPicker/interface.d.ts +19 -0
- package/lib/vendors/ReactHookForm/component.d.ts +27 -0
- package/lib/vendors/ReactHookForm/index.d.ts +2 -0
- package/lib/vendors/ReactHookForm/interface.d.ts +25 -0
- package/lib/vendors/ReactSelect/component.d.ts +17 -0
- package/lib/vendors/ReactSelect/index.d.ts +2 -0
- package/lib/vendors/ReactSelect/interface.d.ts +17 -0
- package/lib/vendors/StyledComponents/component.d.ts +21 -0
- package/lib/vendors/StyledComponents/index.d.ts +2 -0
- package/lib/vendors/StyledComponents/interface.d.ts +27 -0
- package/lib/vendors/StyledNormalize/component.d.ts +10 -0
- package/lib/vendors/StyledNormalize/index.d.ts +1 -0
- package/lib/vendors/StyledNormalize/interface.d.ts +9 -0
- package/lib/vendors/TanstackReactTable/component.d.ts +23 -0
- package/lib/vendors/TanstackReactTable/index.d.ts +2 -0
- package/lib/vendors/TanstackReactTable/interface.d.ts +24 -0
- package/lib/vendors/TanstackReactVirtual/component.d.ts +16 -0
- package/lib/vendors/TanstackReactVirtual/index.d.ts +2 -0
- package/lib/vendors/TanstackReactVirtual/interface.d.ts +14 -0
- package/lib/vendors/Zod/component.d.ts +18 -0
- package/lib/vendors/Zod/index.d.ts +2 -0
- package/lib/vendors/Zod/interface.d.ts +6 -0
- package/package.json +73 -24
- package/lib/chunks/chunk-2B3RKGV2.esm.js +0 -1
- package/lib/chunks/chunk-4PCG2KFF.esm.js +0 -1
- package/lib/chunks/chunk-4WBZAWFH.esm.js +0 -0
- package/lib/chunks/chunk-4Z3FXC7B.esm.js +0 -5
- package/lib/chunks/chunk-6KYLIXBS.esm.js +0 -1
- package/lib/chunks/chunk-6RNKPTEX.esm.js +0 -40
- package/lib/chunks/chunk-7PD7R2RB.esm.js +0 -15
- package/lib/chunks/chunk-7VYSPE3B.esm.js +0 -14
- package/lib/chunks/chunk-CH7BVIBG.esm.js +0 -1
- package/lib/chunks/chunk-CSVGEHXH.esm.js +0 -1
- package/lib/chunks/chunk-DAFBKFTS.esm.js +0 -67
- package/lib/chunks/chunk-DEAAQK5J.esm.js +0 -5
- package/lib/chunks/chunk-DP6AXK72.esm.js +0 -1
- package/lib/chunks/chunk-E4GPRFIB.esm.js +0 -1
- package/lib/chunks/chunk-ELYUJKST.esm.js +0 -1
- package/lib/chunks/chunk-ERLPEOAG.esm.js +0 -7
- package/lib/chunks/chunk-EWFUWYNO.esm.js +0 -81
- package/lib/chunks/chunk-FVRWVTQD.esm.js +0 -7
- package/lib/chunks/chunk-G3PLMKGA.esm.js +0 -6
- package/lib/chunks/chunk-G5M2X3TX.esm.js +0 -7
- package/lib/chunks/chunk-GWCDFVWM.esm.js +0 -1
- package/lib/chunks/chunk-HK3DHNXU.esm.js +0 -38
- package/lib/chunks/chunk-I2E5B4NH.esm.js +0 -1
- package/lib/chunks/chunk-IA7RR4C7.esm.js +0 -136
- package/lib/chunks/chunk-JIDBKHKA.esm.js +0 -9
- package/lib/chunks/chunk-JTQYUIZP.esm.js +0 -1
- package/lib/chunks/chunk-KEQXETSP.esm.js +0 -1
- package/lib/chunks/chunk-L6UB7RUM.esm.js +0 -104
- package/lib/chunks/chunk-LXG3BZB5.esm.js +0 -1
- package/lib/chunks/chunk-LZTZMWTK.esm.js +0 -67
- package/lib/chunks/chunk-NGODVNJB.esm.js +0 -61
- package/lib/chunks/chunk-OMBZMCKV.esm.js +0 -1
- package/lib/chunks/chunk-OXD4QSRP.esm.js +0 -1
- package/lib/chunks/chunk-PZYCW5IZ.esm.js +0 -4
- package/lib/chunks/chunk-Q3FXXXUX.esm.js +0 -1
- package/lib/chunks/chunk-QUHHEZMP.esm.js +0 -1
- package/lib/chunks/chunk-QZYXRYI7.esm.js +0 -4
- package/lib/chunks/chunk-RMTAUQ4Q.esm.js +0 -0
- package/lib/chunks/chunk-SAVXHMAA.esm.js +0 -6
- package/lib/chunks/chunk-SHDMTEPB.esm.js +0 -46
- package/lib/chunks/chunk-SR7ARLZ4.esm.js +0 -1
- package/lib/chunks/chunk-UJDBHSL7.esm.js +0 -1
- package/lib/chunks/chunk-VTRVGJA6.esm.js +0 -3
- package/lib/chunks/chunk-WOI7ZDPE.esm.js +0 -94
- package/lib/chunks/chunk-WTWPQ4EL.esm.js +0 -1
- package/lib/chunks/chunk-WZALORLW.esm.js +0 -1
- package/lib/chunks/chunk-XFQI4QU6.esm.js +0 -1
- package/lib/chunks/chunk-XW52MLHU.esm.js +0 -15
- /package/lib/chunks/{chunk-4H6GW4MC.esm.js → chunk-CWRWYU7D.esm.js} +0 -0
|
@@ -4,14 +4,27 @@ import { BreakpointInput, BreakpointsInterface } from '../Breakpoints';
|
|
|
4
4
|
import { ColorsInput, ColorsThemeInterface } from '../Colors';
|
|
5
5
|
import { DeepThemeInterface } from '../Deep';
|
|
6
6
|
import { DepthThemeInterface } from '../Depth';
|
|
7
|
+
import type { Dimension } from '../Dimension';
|
|
7
8
|
import { FontInput, FontThemeInterface } from '../Font';
|
|
9
|
+
import { FoundationLayer } from '../Foundation';
|
|
10
|
+
import { SemanticLayer } from '../Semantic';
|
|
8
11
|
import { SpacingInput, SpacingThemeInterface } from '../Spacing';
|
|
12
|
+
import type { SurfaceMode } from '../Surface';
|
|
9
13
|
export interface ThemeInputsInterface {
|
|
10
14
|
breakpoints?: BreakpointInput;
|
|
11
15
|
spacing?: SpacingInput;
|
|
12
16
|
colors?: ColorsInput;
|
|
13
17
|
font?: FontInput;
|
|
14
18
|
border?: BorderInput;
|
|
19
|
+
/**
|
|
20
|
+
* Density axis introduced in `@apollion-dsi/core` v4 (ADR-006 E2).
|
|
21
|
+
* Overrides `spacing.multiplier` when provided. Default: `'normal'`
|
|
22
|
+
* (preserves v3.x behavior).
|
|
23
|
+
*
|
|
24
|
+
* @see ../Dimension/Dimension.interface.ts (naming disambiguation)
|
|
25
|
+
* @see ../Dimension/Dimension.props.ts (DIMENSION_MULTIPLIERS calibration)
|
|
26
|
+
*/
|
|
27
|
+
dimension?: Dimension;
|
|
15
28
|
}
|
|
16
29
|
export type Theme = {
|
|
17
30
|
border: BorderInput;
|
|
@@ -22,6 +35,29 @@ export type Theme = {
|
|
|
22
35
|
depth: DepthThemeInterface;
|
|
23
36
|
deep: DeepThemeInterface;
|
|
24
37
|
animation: AnimationThemeInterface;
|
|
38
|
+
/**
|
|
39
|
+
* Camada Semantic — tokens nomeados por intenção, derivada uma única vez
|
|
40
|
+
* em `createTheme()` a partir dos tokens estruturais. Adicionada em
|
|
41
|
+
* `@apollion-dsi/core` 3.1.0 (ADR-002 Slice 2).
|
|
42
|
+
*
|
|
43
|
+
* Componentes do core devem preferir Semantic ao acessar cores com intent
|
|
44
|
+
* claro (feedback, interface function, brand). Produto deve consumir
|
|
45
|
+
* Foundation (camada acima).
|
|
46
|
+
*
|
|
47
|
+
* @see ../Semantic/Semantic.interface.ts
|
|
48
|
+
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
49
|
+
*/
|
|
50
|
+
semantic: SemanticLayer;
|
|
51
|
+
/**
|
|
52
|
+
* Camada Foundation — aliases curtos e ergonômicos sobre Semantic. Camada
|
|
53
|
+
* default para código de produto (DEX/Jovian/Fanaticofc). Adicionada em
|
|
54
|
+
* `@apollion-dsi/core` 3.2.0 (ADR-002 Slice 3).
|
|
55
|
+
*
|
|
56
|
+
* @see ../Foundation/Foundation.interface.ts
|
|
57
|
+
* @see ../Foundation/README.md (cheatsheet)
|
|
58
|
+
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
59
|
+
*/
|
|
60
|
+
foundation: FoundationLayer;
|
|
25
61
|
};
|
|
26
62
|
export type ThemeMode = 'light' | 'dark';
|
|
27
63
|
export interface ApollionProviderInterface {
|
|
@@ -29,6 +65,39 @@ export interface ApollionProviderInterface {
|
|
|
29
65
|
lightTheme?: Theme;
|
|
30
66
|
darkTheme?: Theme;
|
|
31
67
|
useSystemPreference?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Surface mode aplicado ao theme inteiro a partir deste provider.
|
|
70
|
+
*
|
|
71
|
+
* - `'positive'` (default): theme passa intacto. Comportamento legado.
|
|
72
|
+
* - `'negative'`: aplica `invertForSurface` no theme antes de injetar no
|
|
73
|
+
* styled-components ThemeProvider. Use quando o ApollionProvider é o
|
|
74
|
+
* nível mais externo E você quer todo o app numa surface invertida.
|
|
75
|
+
*
|
|
76
|
+
* Para inverter um SUBTREE (caso muito mais comum — "dark card on light
|
|
77
|
+
* page"), use `<SurfaceProvider surface="negative">` ao invés de
|
|
78
|
+
* remontar o ApollionProvider inteiro.
|
|
79
|
+
*
|
|
80
|
+
* Adicionado em `@apollion-dsi/core` 3.3.0 (ADR-002 Slice 4).
|
|
81
|
+
*
|
|
82
|
+
* @default 'positive'
|
|
83
|
+
* @see ../Surface/Surface.tsx (SurfaceProvider — nested usage)
|
|
84
|
+
* @see ../Surface/Surface.helpers.ts (invertForSurface)
|
|
85
|
+
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md §3.2
|
|
86
|
+
*/
|
|
87
|
+
surface?: SurfaceMode;
|
|
88
|
+
/**
|
|
89
|
+
* Density axis (ADR-006 E2). Convenience prop equivalent to passing
|
|
90
|
+
* `theme={createTheme({ dimension })}`. When set, builds a new theme
|
|
91
|
+
* on the fly with the chosen density multiplier.
|
|
92
|
+
*
|
|
93
|
+
* **Prop-only API** (Q-G3 decision): no `theme.dimension()` getter and
|
|
94
|
+
* no `useDimension()` hook are exposed. Consumer expresses density
|
|
95
|
+
* declaratively at the provider boundary.
|
|
96
|
+
*
|
|
97
|
+
* @default 'normal' (preserves v3.x spacing)
|
|
98
|
+
* @see ../Dimension/Dimension.interface.ts
|
|
99
|
+
*/
|
|
100
|
+
dimension?: Dimension;
|
|
32
101
|
children?: React.ReactNode;
|
|
33
102
|
}
|
|
34
103
|
export interface ApollionThemeContext {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,d as b}from"../../chunks/chunk-
|
|
1
|
+
import{c as a,d as b}from"../../chunks/chunk-4WWVMB7R.esm.js";import"../../chunks/chunk-EEBGH4FW.esm.js";import"../../chunks/chunk-V5ZKDMDH.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-76C7AHBV.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-A4BXGJYW.esm.js";import"../../chunks/chunk-IT4J7I6H.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-Z5OQHLDW.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-TVJISBND.esm.js";import"../../chunks/chunk-NQBO2D7L.esm.js";import"../../chunks/chunk-FPQPDMPB.esm.js";import"../../chunks/chunk-TDVKGVGD.esm.js";import"../../chunks/chunk-BFZUNHO5.esm.js";import"../../chunks/chunk-Q44UHGO6.esm.js";import"../../chunks/chunk-53R7OVXP.esm.js";import"../../chunks/chunk-BYRL7X5M.esm.js";import"../../chunks/chunk-2ROOI4B2.esm.js";import"../../chunks/chunk-NSZRKCOX.esm.js";import"../../chunks/chunk-KQQ7V7VG.esm.js";import"../../chunks/chunk-EKTJ3A6R.esm.js";import"../../chunks/chunk-3V3ZEGHO.esm.js";import"../../chunks/chunk-A3OJEVGQ.esm.js";import"../../chunks/chunk-KR2X2UQG.esm.js";import"../../chunks/chunk-BE2JDTVA.esm.js";import"../../chunks/chunk-KFFUMDHD.esm.js";import"../../chunks/chunk-2FQC32AA.esm.js";import"../../chunks/chunk-H6RGCTRX.esm.js";import"../../chunks/chunk-FPQOBUTR.esm.js";import"../../chunks/chunk-SPHHNZVP.esm.js";import"../../chunks/chunk-3QSPHURU.esm.js";import"../../chunks/chunk-IWMEDT6U.esm.js";import"../../chunks/chunk-J73BJCFK.esm.js";import"../../chunks/chunk-ZRIEVBTB.esm.js";import"../../chunks/chunk-5NIX5AK7.esm.js";import"../../chunks/chunk-34F43UAI.esm.js";import"../../chunks/chunk-THOEVSMN.esm.js";import"../../chunks/chunk-U4ODIBWG.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-TOYBV66A.esm.js";import"../../chunks/chunk-H4CYNDAM.esm.js";import"../../chunks/chunk-VVZ6FCG7.esm.js";import"../../chunks/chunk-4RPR6CZT.esm.js";import"../../chunks/chunk-7WVLGVVA.esm.js";import"../../chunks/chunk-OEH5ARPF.esm.js";import"../../chunks/chunk-752Z7BQF.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-W663AGNE.esm.js";import"../../chunks/chunk-44EW3LMK.esm.js";import"../../chunks/chunk-V5AWVNU6.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-U27SLYIV.esm.js";import"../../chunks/chunk-JB7G6UGV.esm.js";import"../../chunks/chunk-GP7NECT4.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as ApollionProvider,a as createTheme};
|
package/lib/themes/index.d.ts
CHANGED
|
@@ -4,7 +4,11 @@ export * from './Breakpoints';
|
|
|
4
4
|
export * from './Colors';
|
|
5
5
|
export * from './Deep';
|
|
6
6
|
export * from './Depth';
|
|
7
|
+
export * from './Dimension';
|
|
7
8
|
export * from './Font';
|
|
9
|
+
export * from './Foundation';
|
|
8
10
|
export * from './GlobalStyle';
|
|
11
|
+
export * from './Semantic';
|
|
9
12
|
export * from './Spacing';
|
|
13
|
+
export * from './Surface';
|
|
10
14
|
export * from './ThemeProvider';
|
package/lib/themes/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as F,d as G}from"../chunks/chunk-4WWVMB7R.esm.js";import{a as z}from"../chunks/chunk-EEBGH4FW.esm.js";import{a as A}from"../chunks/chunk-V5ZKDMDH.esm.js";import{a as B,b as C}from"../chunks/chunk-TG5BCBO4.esm.js";import{a as D,b as E}from"../chunks/chunk-76C7AHBV.esm.js";import{a as n}from"../chunks/chunk-3DUB5C4Z.esm.js";import{a as o,b as p,c as q}from"../chunks/chunk-KT6QQ3UJ.esm.js";import{a as r}from"../chunks/chunk-A4BXGJYW.esm.js";import{a as s,b as t}from"../chunks/chunk-IT4J7I6H.esm.js";import{a as u,b as v,c as w}from"../chunks/chunk-JOKVE3IX.esm.js";import{a as x}from"../chunks/chunk-Z5OQHLDW.esm.js";import"../chunks/chunk-CWRWYU7D.esm.js";import{a as y}from"../chunks/chunk-TVJISBND.esm.js";import{a as m}from"../chunks/chunk-NQBO2D7L.esm.js";import"../chunks/chunk-FPQPDMPB.esm.js";import"../chunks/chunk-TDVKGVGD.esm.js";import"../chunks/chunk-BFZUNHO5.esm.js";import"../chunks/chunk-Q44UHGO6.esm.js";import"../chunks/chunk-53R7OVXP.esm.js";import"../chunks/chunk-BYRL7X5M.esm.js";import"../chunks/chunk-2ROOI4B2.esm.js";import"../chunks/chunk-NSZRKCOX.esm.js";import"../chunks/chunk-KQQ7V7VG.esm.js";import"../chunks/chunk-EKTJ3A6R.esm.js";import"../chunks/chunk-3V3ZEGHO.esm.js";import"../chunks/chunk-A3OJEVGQ.esm.js";import"../chunks/chunk-KR2X2UQG.esm.js";import"../chunks/chunk-BE2JDTVA.esm.js";import"../chunks/chunk-KFFUMDHD.esm.js";import"../chunks/chunk-2FQC32AA.esm.js";import"../chunks/chunk-H6RGCTRX.esm.js";import"../chunks/chunk-FPQOBUTR.esm.js";import"../chunks/chunk-SPHHNZVP.esm.js";import"../chunks/chunk-3QSPHURU.esm.js";import"../chunks/chunk-IWMEDT6U.esm.js";import"../chunks/chunk-J73BJCFK.esm.js";import"../chunks/chunk-ZRIEVBTB.esm.js";import"../chunks/chunk-5NIX5AK7.esm.js";import"../chunks/chunk-34F43UAI.esm.js";import"../chunks/chunk-THOEVSMN.esm.js";import"../chunks/chunk-U4ODIBWG.esm.js";import"../chunks/chunk-5OKRFXLL.esm.js";import"../chunks/chunk-TOYBV66A.esm.js";import"../chunks/chunk-H4CYNDAM.esm.js";import"../chunks/chunk-VVZ6FCG7.esm.js";import{a,b,c,d,e,f,g,h,i,j,k,l}from"../chunks/chunk-4RPR6CZT.esm.js";import"../chunks/chunk-7WVLGVVA.esm.js";import"../chunks/chunk-OEH5ARPF.esm.js";import"../chunks/chunk-752Z7BQF.esm.js";import"../chunks/chunk-BNB3KNKE.esm.js";import"../chunks/chunk-W663AGNE.esm.js";import"../chunks/chunk-44EW3LMK.esm.js";import"../chunks/chunk-V5AWVNU6.esm.js";import"../chunks/chunk-A6Z2M2XU.esm.js";import"../chunks/chunk-U27SLYIV.esm.js";import"../chunks/chunk-JB7G6UGV.esm.js";import"../chunks/chunk-GP7NECT4.esm.js";import"../chunks/chunk-APD22JEO.esm.js";import"../chunks/chunk-GZONWSRB.esm.js";export{G as ApollionProvider,v as DEFAULT_DIMENSION,u as DIMENSION_MULTIPLIERS,z as GlobalStyle,a as HextoRgb,E as SurfaceProvider,m as animation,o as breakpointsValues,q as createBreakpoints,l as createColors,r as createDeepTheme,t as createDeth,y as createFoundation,A as createSemantic,C as createSpacing,F as createTheme,n as defaultInputBorder,p as defaultInputBreakpoints,k as defaultInputColors,x as defaultInputFont,B as defaultInputSpacing,c as getColor,d as getContrastColor,w as getMultiplierForDimension,b as getOppositeColor,D as invertForSurface,s as levelValues,i as mountActionColors,h as mountBaseColors,f as mountGreyscaleColors,j as mountMainColors,g as mountNeutralColors,e as mountSingleColor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/chunk-
|
|
1
|
+
import{a,b}from"../../../chunks/chunk-FPQOBUTR.esm.js";import"../../../chunks/chunk-V5AWVNU6.esm.js";import"../../../chunks/chunk-APD22JEO.esm.js";import"../../../chunks/chunk-GZONWSRB.esm.js";export{a as BreakpointsContext,b as BreakpointsProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunks/chunk-
|
|
1
|
+
import{a as o,b as r}from"../../chunks/chunk-FPQOBUTR.esm.js";import"../../chunks/chunk-V5AWVNU6.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{o as BreakpointsContext,r as BreakpointsProvider};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `culori`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida (ADR-006 v4 epic E1 + E6):
|
|
5
|
+
* - `parse(input)` — parse hex/CSS color string → color object
|
|
6
|
+
* - `formatHex(color)` — color object → 6-digit hex string (with fallback)
|
|
7
|
+
* - `interpolate(colors, mode, options?)` — perceptual lerp interpolator factory.
|
|
8
|
+
* Used em mode `'oklch'` para palette generation (mountSingleColor,
|
|
9
|
+
* mountGreyscaleColors, mountNeutralColors). Hue fixup default
|
|
10
|
+
* (`fixupHueShorter`) é correto para palette derivation.
|
|
11
|
+
* - `wcagContrast(a, b)` — WCAG 2.x contrast ratio (replace
|
|
12
|
+
* `Color(a).contrast(Color(b))` em S6).
|
|
13
|
+
* - `wcagLuminance(c)` — WCAG 2.x relative luminance (replace
|
|
14
|
+
* `Color(c).luminosity()` em S6).
|
|
15
|
+
* - `converter(mode)` — color space converter factory (uso interno).
|
|
16
|
+
*
|
|
17
|
+
* Surface NÃO absorvida (gap intencional — ver README.md):
|
|
18
|
+
* `blend`, `average`, `differenceCiede2000`, color spaces avançados (lab,
|
|
19
|
+
* lch, cubehelix, hwb, etc).
|
|
20
|
+
*
|
|
21
|
+
* @see ./README.md
|
|
22
|
+
* @see ../../../docs/adr/ADR-006-v4-oklch-dimension-token-split.md §3.10 §6 S2
|
|
23
|
+
* @see ../../../docs/prd/PRD-002-v4-epic-execution.md §S2
|
|
24
|
+
*/
|
|
25
|
+
import { converter, formatHex, interpolate, parse, wcagContrast, wcagLuminance } from 'culori';
|
|
26
|
+
export { parse, formatHex, interpolate, wcagContrast, wcagLuminance, converter };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contrato ideal do DS sobre manipulação perceptual de cor.
|
|
3
|
+
*
|
|
4
|
+
* `culori` opera em color objects (não instances como `color@5`). Tipos
|
|
5
|
+
* re-exportados para casos onde helpers internos precisam tipar:
|
|
6
|
+
* - `Color` — generic color object union (RGB/HSL/OKLch/etc).
|
|
7
|
+
* - `Oklch` — specific OKLch color shape (`{ mode: 'oklch', l, c, h }`).
|
|
8
|
+
*
|
|
9
|
+
* @see ./component.ts
|
|
10
|
+
* @see ../../../docs/adr/ADR-006-v4-oklch-dimension-token-split.md §3.10
|
|
11
|
+
*/
|
|
12
|
+
export type { Color, Oklch } from 'culori';
|
|
13
|
+
/**
|
|
14
|
+
* DS-owned helper signature: OKLch perceptual lerp wrapper.
|
|
15
|
+
*
|
|
16
|
+
* Migra de `Color(a).mix(b, t).hex()` (RGB lerp, color@5) para
|
|
17
|
+
* `interpolate([a, b], 'oklch')(t)` + `formatHex` (OKLch lerp, culori).
|
|
18
|
+
*
|
|
19
|
+
* Spike validation: branch `spike/culori-oklch-lerp-parity` confirmou
|
|
20
|
+
* 0 unexpected regressions em 68 deltas. Greyscale ramp 19× mais uniforme
|
|
21
|
+
* em OKLAB L space.
|
|
22
|
+
*
|
|
23
|
+
* @param a - hex string (e.g. `'#003750'`)
|
|
24
|
+
* @param b - hex string
|
|
25
|
+
* @param t - interpolation factor (0..1)
|
|
26
|
+
* @returns 6-digit hex string. Fallback to `a` on parse failure.
|
|
27
|
+
*/
|
|
28
|
+
export type MixOklch = (a: string, b: string, t: number) => string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `date-fns` v4.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida pelo DS:
|
|
5
|
+
*
|
|
6
|
+
* Format/parse:
|
|
7
|
+
* - `format` — `Date → string` com pattern + locale. Usado em
|
|
8
|
+
* `form/InputDate` para `displayFormat`.
|
|
9
|
+
* - `parse` — `string → Date` com pattern + locale. Disponível para
|
|
10
|
+
* consumers que ingerem datas em formato não-ISO (ex.: vindo de API
|
|
11
|
+
* legado). Consumers importam direto do vendor; não há re-export DS-owned.
|
|
12
|
+
* - `parseISO` — `string → Date` apenas para ISO `yyyy-MM-dd[Thh:mm:ss]`.
|
|
13
|
+
* Faster path do `form/InputDate` (value interno é sempre ISO).
|
|
14
|
+
* - `isValid` — `Date → boolean`. Guarda runtime contra `Invalid Date`
|
|
15
|
+
* antes de formatar.
|
|
16
|
+
*
|
|
17
|
+
* Locales:
|
|
18
|
+
* - `ptBR` — `elements/Calendar` (default), `form/InputDate` (default).
|
|
19
|
+
* - `enUS` — Storybook locale demos + tests determinísticos
|
|
20
|
+
* (`aria-label` ICU-version-agnostic).
|
|
21
|
+
*
|
|
22
|
+
* `date-fns@4.x` é o sucessor de `date-fns@3` — tree-shakeable, ESM-first,
|
|
23
|
+
* sem mutação de Date. DS importa apenas o necessário para o
|
|
24
|
+
* Calendar/InputDate; bundle real ~3 KB gzip.
|
|
25
|
+
*
|
|
26
|
+
* @see ./README.md
|
|
27
|
+
* @see ADR-004 §3.1 (vendor isolation convention)
|
|
28
|
+
*/
|
|
29
|
+
export { format, isValid, parse, parseISO } from 'date-fns';
|
|
30
|
+
export { enUS, ptBR } from 'date-fns/locale';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado dos types upstream que o DS expõe.
|
|
3
|
+
*
|
|
4
|
+
* - `Locale` — shape de locale (`code`, `formatLong`, `match`, etc.).
|
|
5
|
+
* Usado como prop type em `elements/Calendar.interface` (via
|
|
6
|
+
* `react-day-picker`) e em `form/InputDate.interface` para tipar
|
|
7
|
+
* `locale?: Locale`.
|
|
8
|
+
*
|
|
9
|
+
* Sem types DS-owned. Convenção ADR-004 §3.1 mantém o arquivo para
|
|
10
|
+
* uniformidade entre vendors.
|
|
11
|
+
*
|
|
12
|
+
* @see ./component.ts
|
|
13
|
+
*/
|
|
14
|
+
export type { Locale } from 'date-fns';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `deepmerge`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida: default export (`deepmerge(a, b)`).
|
|
5
|
+
*
|
|
6
|
+
* @see ./README.md
|
|
7
|
+
* @see ADR-004 §3.1
|
|
8
|
+
*/
|
|
9
|
+
import deepmerge from 'deepmerge';
|
|
10
|
+
export { deepmerge };
|
|
11
|
+
export default deepmerge;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, deepmerge } from './component';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contrato ideal do DS sobre merge profundo de objetos.
|
|
3
|
+
*
|
|
4
|
+
* Não há tipos próprios — `deepmerge` é genérico e o consumidor passa os tipos
|
|
5
|
+
* dos objetos de entrada/saída. Mantemos arquivo para uniformidade da
|
|
6
|
+
* convenção de 4 arquivos por vendor (ADR-004 §3.1).
|
|
7
|
+
*
|
|
8
|
+
* @see ./component.ts
|
|
9
|
+
*/
|
|
10
|
+
export type {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `@emotion/is-prop-valid`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida: default export — predicate que classifica nome de prop
|
|
5
|
+
* como HTML-valid (usado pelo `shouldForwardProp` de styled-components).
|
|
6
|
+
*
|
|
7
|
+
* @see ./README.md
|
|
8
|
+
* @see ADR-004 §3.1
|
|
9
|
+
*/
|
|
10
|
+
import isPropValid from '@emotion/is-prop-valid';
|
|
11
|
+
export { isPropValid };
|
|
12
|
+
export default isPropValid;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, isPropValid } from './component';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contrato ideal do DS sobre validação de nomes de prop HTML.
|
|
3
|
+
*
|
|
4
|
+
* `@emotion/is-prop-valid` é `(name: string) => boolean`. Sem tipos próprios
|
|
5
|
+
* — arquivo mantido para uniformidade da convenção (ADR-004 §3.1).
|
|
6
|
+
*
|
|
7
|
+
* @see ./component.ts
|
|
8
|
+
*/
|
|
9
|
+
export type {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `fast-deep-equal`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida: default export (`deepEqual(a, b): boolean`).
|
|
5
|
+
*
|
|
6
|
+
* @see ./README.md
|
|
7
|
+
* @see ADR-004 §3.1
|
|
8
|
+
*/
|
|
9
|
+
import deepEqual from 'fast-deep-equal';
|
|
10
|
+
export { deepEqual };
|
|
11
|
+
export default deepEqual;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, deepEqual } from './component';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `@floating-ui/react`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida pelo DS (`elements/Tooltip`, `elements/Dropdown`):
|
|
5
|
+
*
|
|
6
|
+
* Hooks:
|
|
7
|
+
* - `useFloating` — hook principal de positioning.
|
|
8
|
+
* - `useInteractions` — composição de event handlers (hover/click/focus/dismiss/role).
|
|
9
|
+
* - `useClick` — abre no clique do reference.
|
|
10
|
+
* - `useHover` — abre no hover (com delay/restMs configuráveis).
|
|
11
|
+
* - `useFocus` — abre no focus do reference (a11y AAA).
|
|
12
|
+
* - `useDismiss` — fecha em outsidePress + escapeKey.
|
|
13
|
+
* - `useRole` — injeta ARIA role correto (`tooltip`/`menu`/`dialog`).
|
|
14
|
+
*
|
|
15
|
+
* Portal + focus:
|
|
16
|
+
* - `FloatingPortal` — body portal.
|
|
17
|
+
* - `FloatingFocusManager` — focus trap para Popover/Dropdown.
|
|
18
|
+
*
|
|
19
|
+
* Middleware:
|
|
20
|
+
* - `arrow` — posiciona a seta via `middlewareData.arrow.{x,y}`.
|
|
21
|
+
* - `offset` — gap entre reference e floating.
|
|
22
|
+
* - `flip` — auto-flip on overflow.
|
|
23
|
+
* - `shift` — auto-shift on overflow.
|
|
24
|
+
* - `autoUpdate` — passado para `whileElementsMounted`.
|
|
25
|
+
*
|
|
26
|
+
* Família floating-ui — substitui `vendors/TippyHeadless` (deprecated em
|
|
27
|
+
* S4 deste ciclo). `tippy.js` sem release ≥ 18 meses; `floating-ui` é o
|
|
28
|
+
* sucessor de fato (mantido pelo mesmo autor do Popper, que tippy.js
|
|
29
|
+
* usava internamente). Hook-based, tipos modernos, ARIA explícita.
|
|
30
|
+
*
|
|
31
|
+
* @see ./README.md
|
|
32
|
+
* @see ADR-004 §3.1 (vendor isolation convention)
|
|
33
|
+
*/
|
|
34
|
+
export { arrow, autoUpdate, flip, FloatingFocusManager, FloatingPortal, offset, safePolygon, shift, useClick, useDismiss, useFloating, useFocus, useHover, useInteractions, useRole, } from '@floating-ui/react';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado dos types upstream que o DS expõe.
|
|
3
|
+
*
|
|
4
|
+
* - `Placement` — uma de 12 strings literais (`'top'`, `'top-start'`,
|
|
5
|
+
* `'top-end'`, `'right'`, …, `'left-end'`). Usado por Tooltip/Dropdown
|
|
6
|
+
* para tipar a prop `position`.
|
|
7
|
+
* - `Strategy` — `'absolute' | 'fixed'`.
|
|
8
|
+
* - `MiddlewareData` — retornado por `useFloating()` em
|
|
9
|
+
* `middlewareData.arrow.{x,y}` para posicionar setas inline.
|
|
10
|
+
* - `OpenChangeReason` — passado para callbacks `onOpenChange` indicando
|
|
11
|
+
* o que disparou o close (`outside-press`, `escape-key`, etc.).
|
|
12
|
+
*
|
|
13
|
+
* Sem types DS-owned. Convenção ADR-004 §3.1 mantém o arquivo para
|
|
14
|
+
* uniformidade entre vendors.
|
|
15
|
+
*
|
|
16
|
+
* @see ./component.ts
|
|
17
|
+
*/
|
|
18
|
+
export type { MiddlewareData, OpenChangeReason, Placement, Strategy } from '@floating-ui/react';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `framer-motion`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida pelo DS:
|
|
5
|
+
* - `motion` — proxy de elementos HTML/SVG animáveis (usado em
|
|
6
|
+
* `containers/Flex/Flex.style.ts`, `containers/Base/Base.style.ts`).
|
|
7
|
+
* - `AnimatePresence` — wrapper para animar mount/unmount (usado em Modal,
|
|
8
|
+
* Notification).
|
|
9
|
+
* - `MotionConfig` — root de configuração de motion (usado em
|
|
10
|
+
* decorators de teste / Storybook).
|
|
11
|
+
* - `useReducedMotion` — hook que respeita `prefers-reduced-motion`.
|
|
12
|
+
*
|
|
13
|
+
* Gap intencional (ver README): variants/orchestration avançada (`useAnimate`,
|
|
14
|
+
* `useScroll`, `useMotionTemplate`, layoutGroup, drag, gestures, exit
|
|
15
|
+
* orchestration) — não absorvidos no core hoje.
|
|
16
|
+
*
|
|
17
|
+
* @see ./README.md
|
|
18
|
+
* @see ADR-004 §3.1
|
|
19
|
+
*/
|
|
20
|
+
export { AnimatePresence, motion, MotionConfig, useReducedMotion } from 'framer-motion';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contrato ideal do DS sobre animação declarativa.
|
|
3
|
+
*
|
|
4
|
+
* Apenas `MotionProps` é re-exportado — props que componentes podem aceitar
|
|
5
|
+
* para customizar transições no nível da raiz do componente (e.g.
|
|
6
|
+
* Notification.interface.ts compõe `MotionProps`).
|
|
7
|
+
*
|
|
8
|
+
* `Variants`, `Transition`, `Target` e demais tipos do framer-motion ficam
|
|
9
|
+
* **fora do contrato** — DS escolhe restringir a superfície de configuração
|
|
10
|
+
* por intent (não expor toda a expressividade da lib via tipos públicos).
|
|
11
|
+
*
|
|
12
|
+
* @see ./component.ts
|
|
13
|
+
* @see ADR-004 §3.1
|
|
14
|
+
*/
|
|
15
|
+
export type { MotionProps } from 'framer-motion';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `lodash.debounce`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida: o default export (função `debounce`).
|
|
5
|
+
*
|
|
6
|
+
* @see ./README.md
|
|
7
|
+
* @see ADR-004 §3.1
|
|
8
|
+
*/
|
|
9
|
+
import debounce from 'lodash.debounce';
|
|
10
|
+
export { debounce };
|
|
11
|
+
export default debounce;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contrato ideal do DS sobre debounce de funções.
|
|
3
|
+
*
|
|
4
|
+
* @see ./component.ts
|
|
5
|
+
* @see ADR-004 §3.1
|
|
6
|
+
*/
|
|
7
|
+
/** Função que executa após período de inatividade da última chamada. */
|
|
8
|
+
export type DebouncedFunction<T extends (...args: never[]) => unknown> = T & {
|
|
9
|
+
cancel: () => void;
|
|
10
|
+
flush: () => ReturnType<T> | undefined;
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `nanoid`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida pelo DS:
|
|
5
|
+
* - `nanoid` (default generator) — id curto + URL-safe para keys React, refs internos.
|
|
6
|
+
*
|
|
7
|
+
* Gap intencional (ver README): geração customizada (`customAlphabet`,
|
|
8
|
+
* `urlAlphabet`), `nanoid/async`, `nanoid/non-secure` — não usados no core.
|
|
9
|
+
*
|
|
10
|
+
* @see ./README.md
|
|
11
|
+
* @see ADR-004 §3.1
|
|
12
|
+
*/
|
|
13
|
+
export { nanoid } from 'nanoid';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contrato ideal do DS sobre geração de IDs únicos.
|
|
3
|
+
*
|
|
4
|
+
* Apenas o tipo do generator `nanoid` é absorvido — string opaca,
|
|
5
|
+
* length default 21 chars, URL-safe.
|
|
6
|
+
*
|
|
7
|
+
* @see ./component.ts
|
|
8
|
+
* @see ADR-004 §3.1
|
|
9
|
+
*/
|
|
10
|
+
/** ID opaco gerado pelo nanoid (URL-safe, default length 21). */
|
|
11
|
+
export type NanoId = string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `react-content-loader`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida:
|
|
5
|
+
* - `ContentLoader` (default) — wrapper SVG-based para skeleton loaders.
|
|
6
|
+
* - Presets: `BulletList`, `Code`, `Facebook`, `List`.
|
|
7
|
+
*
|
|
8
|
+
* Usado em `skeleton/ComposedSkeleton`.
|
|
9
|
+
*
|
|
10
|
+
* @see ./README.md
|
|
11
|
+
* @see ADR-004 §3.1
|
|
12
|
+
*/
|
|
13
|
+
import ContentLoader, { BulletList, Code, Facebook, List } from 'react-content-loader';
|
|
14
|
+
export { BulletList, Code, ContentLoader, Facebook, List };
|
|
15
|
+
export default ContentLoader;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contrato ideal do DS sobre skeleton loaders.
|
|
3
|
+
*
|
|
4
|
+
* `IContentLoaderProps` re-exportado para `ComposedSkeleton.interface.ts`
|
|
5
|
+
* tipar props que estendem o contrato do loader.
|
|
6
|
+
*
|
|
7
|
+
* @see ./component.ts
|
|
8
|
+
* @see ADR-004 §3.1
|
|
9
|
+
*/
|
|
10
|
+
export type { IContentLoaderProps } from 'react-content-loader';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `react-day-picker` v9.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida pelo DS:
|
|
5
|
+
*
|
|
6
|
+
* Runtime:
|
|
7
|
+
* - `DayPicker` — componente headless de grid (single/multiple/range). Núcleo
|
|
8
|
+
* do `elements/Calendar` e, por composição, de `form/InputDate`.
|
|
9
|
+
*
|
|
10
|
+
* `react-day-picker@9.x` é o sucessor de `react-day-picker@8` — API hook-based,
|
|
11
|
+
* tipos discriminados por `mode`, sem CSS embutido (DS aplica visual via
|
|
12
|
+
* `Calendar.style.ts` → tokens do tema).
|
|
13
|
+
*
|
|
14
|
+
* @see ./README.md
|
|
15
|
+
* @see ADR-004 §3.1 (vendor isolation convention)
|
|
16
|
+
*/
|
|
17
|
+
export { DayPicker } from 'react-day-picker';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado dos types upstream que o DS expõe.
|
|
3
|
+
*
|
|
4
|
+
* - `DayPickerProps` — union completa (single/multiple/range). Usada
|
|
5
|
+
* como `type CalendarProps = DayPickerProps` no `elements/Calendar`.
|
|
6
|
+
* - `Mode` — `'single' | 'multiple' | 'range'`. Discrimina
|
|
7
|
+
* `PropsSingle`/`PropsMultiple`/`PropsRange`.
|
|
8
|
+
* - `DateRange` — `{ from: Date; to?: Date }` para `mode="range"`.
|
|
9
|
+
* - `Matcher` — predicado de data (Date, range, function, etc.)
|
|
10
|
+
* usado nas props `disabled`/`hidden`. Combinável em array.
|
|
11
|
+
* - `PropsSingle` / `PropsSingleRequired` — modo single (selected: Date | undefined).
|
|
12
|
+
* - `PropsRange` / `PropsRangeRequired` — modo range (selected: DateRange | undefined).
|
|
13
|
+
*
|
|
14
|
+
* Sem types DS-owned. Convenção ADR-004 §3.1 mantém o arquivo para
|
|
15
|
+
* uniformidade entre vendors.
|
|
16
|
+
*
|
|
17
|
+
* @see ./component.ts
|
|
18
|
+
*/
|
|
19
|
+
export type { DateRange, DayPickerProps, Matcher, Mode, PropsRange, PropsRangeRequired, PropsSingle, PropsSingleRequired, } from 'react-day-picker';
|