@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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../chunks/chunk-
|
|
1
|
+
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-44EW3LMK.esm.js";import"../../chunks/chunk-V5AWVNU6.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as HextoRgb,l as createColors,k as defaultInputColors,c as getColor,d as getContrastColor,b as getOppositeColor,i as mountActionColors,h as mountBaseColors,f as mountGreyscaleColors,j as mountMainColors,g as mountNeutralColors,e as mountSingleColor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-A4BXGJYW.esm.js";import"../../chunks/chunk-4RPR6CZT.esm.js";import"../../chunks/chunk-7WVLGVVA.esm.js";import"../../chunks/chunk-44EW3LMK.esm.js";import"../../chunks/chunk-V5AWVNU6.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as createDeepTheme};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk-
|
|
1
|
+
import{a,b}from"../../chunks/chunk-IT4J7I6H.esm.js";import"../../chunks/chunk-7WVLGVVA.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as createDeth,a as levelValues};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Density axis introduced in `@apollion-dsi/core` v4 (ADR-006 E2).
|
|
3
|
+
*
|
|
4
|
+
* **Naming disambiguation:** this `Dimension` type controls the **density**
|
|
5
|
+
* (spacing scale multiplier) of the theme — orthogonal to `SemanticDimension`
|
|
6
|
+
* (the spacing-aliases layer at `theme.semantic.dimension`). They coexist:
|
|
7
|
+
*
|
|
8
|
+
* - `Dimension` (this file) → which multiplier the spacing scale uses.
|
|
9
|
+
* - `SemanticDimension` → semantic aliases (xs/sm/md/large/xl/xxl) derived
|
|
10
|
+
* from the active `Dimension` multiplier.
|
|
11
|
+
*
|
|
12
|
+
* Both contribute to `theme.spacing(...)` output. Consumer changes density via
|
|
13
|
+
* `<ApollionProvider dimension="compact">` prop (Q-G3 — prop-only API, no
|
|
14
|
+
* getter, no hook).
|
|
15
|
+
*
|
|
16
|
+
* Calibration values are CHUTE in S3 — Q2 of ADR-006 §9 (Open Questions) flags
|
|
17
|
+
* that empirical calibration is needed (target: `compact` = 30 table rows in
|
|
18
|
+
* 1080p without scroll). Final values land in PRD-002 or a follow-up PR.
|
|
19
|
+
*
|
|
20
|
+
* @see ../../docs/adr/ADR-006-v4-oklch-dimension-token-split.md §6 S3
|
|
21
|
+
* @see ../../docs/prd/PRD-002-v4-epic-execution.md §S3
|
|
22
|
+
* @see ./Dimension.props.ts
|
|
23
|
+
*/
|
|
24
|
+
export type Dimension = 'compact' | 'normal' | 'spacious';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Dimension } from './Dimension.interface';
|
|
2
|
+
/**
|
|
3
|
+
* Spacing multipliers per density dimension.
|
|
4
|
+
*
|
|
5
|
+
* **Calibration (CHUTE — Q2 ADR-006):**
|
|
6
|
+
* - `compact` = 0.20 → tighter spacing for data-dense UIs (dashboards, tables)
|
|
7
|
+
* - `normal` = 0.25 → v3.x default (preserves existing visual)
|
|
8
|
+
* - `spacious` = 0.32 → looser spacing for marketing/touch-first surfaces
|
|
9
|
+
*
|
|
10
|
+
* Empirical calibration target: `compact` produces 30 table rows in 1080p
|
|
11
|
+
* without scroll. Final values may shift in a follow-up PR; the public
|
|
12
|
+
* surface (the multipliers object + indexed access) is stable.
|
|
13
|
+
*
|
|
14
|
+
* Default `normal` preserves v3.x `multiplier: 0.25` behavior — consumer
|
|
15
|
+
* unaware of E2 inherits identical spacing.
|
|
16
|
+
*
|
|
17
|
+
* @see ../../docs/adr/ADR-006-v4-oklch-dimension-token-split.md §6 S3 (Q2 calibration)
|
|
18
|
+
*/
|
|
19
|
+
export declare const DIMENSION_MULTIPLIERS: Readonly<Record<Dimension, number>>;
|
|
20
|
+
/**
|
|
21
|
+
* Default dimension when consumer does not pass `<ApollionProvider dimension>`.
|
|
22
|
+
*
|
|
23
|
+
* Preserves v3.x behavior (multiplier 0.25) — silent migration for consumer
|
|
24
|
+
* that doesn't opt into E2 axis.
|
|
25
|
+
*/
|
|
26
|
+
export declare const DEFAULT_DIMENSION: Dimension;
|
|
27
|
+
/**
|
|
28
|
+
* Resolve the spacing multiplier for a given dimension.
|
|
29
|
+
*
|
|
30
|
+
* Used by `Spacing.props.ts#createSpacing` when consumer activates the
|
|
31
|
+
* density axis via `<ApollionProvider dimension="compact|normal|spacious">`.
|
|
32
|
+
*
|
|
33
|
+
* @param dimension - density profile (see {@link Dimension})
|
|
34
|
+
* @returns rem multiplier (0.20 / 0.25 / 0.32)
|
|
35
|
+
*/
|
|
36
|
+
export declare function getMultiplierForDimension(dimension: Dimension): number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Barrel público do módulo `Dimension` (density axis — ADR-006 E2).
|
|
3
|
+
*
|
|
4
|
+
* Não confundir com `theme.semantic.dimension` (spacing-aliases layer); esta
|
|
5
|
+
* `Dimension` aqui é a density/multiplier axis introduzida em v4.
|
|
6
|
+
*
|
|
7
|
+
* @see ./Dimension.interface.ts (naming disambiguation completo)
|
|
8
|
+
*/
|
|
9
|
+
export * from './Dimension.interface';
|
|
10
|
+
export * from './Dimension.props';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c}from"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as DEFAULT_DIMENSION,a as DIMENSION_MULTIPLIERS,c as getMultiplierForDimension};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { FoundationLayer } from './Foundation.interface';
|
|
2
|
+
import type { SemanticLayer } from '../Semantic/Semantic.interface';
|
|
3
|
+
/**
|
|
4
|
+
* Resolve a camada Foundation a partir da camada Semantic.
|
|
5
|
+
*
|
|
6
|
+
* **Pureza + idempotência (contrato ADR-002 §9, herdado de Semantic):**
|
|
7
|
+
* - Não lê nada externo (Date, Math.random, env, DOM).
|
|
8
|
+
* - Não muta a entrada.
|
|
9
|
+
* - Mesma entrada → mesma saída (referencialmente nova, byte-equivalente).
|
|
10
|
+
*
|
|
11
|
+
* Foundation é puramente derivativa de Semantic — toda alteração de cor/
|
|
12
|
+
* espaçamento propaga via Semantic. Mapping segue ADR-002 §3 + §5.
|
|
13
|
+
*
|
|
14
|
+
* @param semantic - Camada Semantic já resolvida (vinda de `createSemantic`).
|
|
15
|
+
* @returns Camada Foundation completa, pronta pra ser plugada em
|
|
16
|
+
* `theme.foundation`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* // Em código de produto (DEX/Jovian/Fanaticofc):
|
|
21
|
+
* const StyledCTA = styled.button`
|
|
22
|
+
* background: ${({ theme }) => theme.foundation.bg.primary};
|
|
23
|
+
* color: ${({ theme }) => theme.foundation.text.onPrimary};
|
|
24
|
+
* padding: ${({ theme }) => theme.foundation.spacing.md};
|
|
25
|
+
* `;
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md §3, §5
|
|
29
|
+
* @see ../Semantic/Semantic.helpers.ts (camada de origem)
|
|
30
|
+
* @see ./README.md (cheatsheet completo)
|
|
31
|
+
*/
|
|
32
|
+
export declare function createFoundation(semantic: SemanticLayer): FoundationLayer;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Camada Foundation do theme — aliases curtos e ergonômicos sobre Semantic.
|
|
3
|
+
* Esta é a camada que produto (telas, features, clients DEX/Jovian/Fanaticofc)
|
|
4
|
+
* deve consumir por default.
|
|
5
|
+
*
|
|
6
|
+
* Filosofia (Aplica DS, adotada literalmente): "Foundation is not a technical
|
|
7
|
+
* simplification — it is a product decision." Não exige saber a taxonomia
|
|
8
|
+
* Semantic completa; um dev de produto escreve `theme.foundation.bg.primary`
|
|
9
|
+
* em vez de `theme.semantic.color.interface.function.primary.normal.bg`.
|
|
10
|
+
*
|
|
11
|
+
* Quem deve usar o quê (ADR-002 §5):
|
|
12
|
+
* - Produto → Foundation (esta camada)
|
|
13
|
+
* - Componentes → Semantic
|
|
14
|
+
* - Engine → Structural (`theme.colors.*`, `theme.spacing(...)`)
|
|
15
|
+
*
|
|
16
|
+
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
17
|
+
* @see ../../docs/CONCEPTS.md §2 (Layer Cake) · §3 (3-group communication)
|
|
18
|
+
* @see ./README.md (cheatsheet completo)
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Aliases curtos para cores de fundo. Mapeiam para Semantic da seguinte
|
|
22
|
+
* forma:
|
|
23
|
+
* - `bg.primary` ← `semantic.color.interface.function.primary.normal.bg`
|
|
24
|
+
* - `bg.secondary` ← `semantic.color.interface.function.secondary.normal.bg`
|
|
25
|
+
* - `bg.tertiary` ← `semantic.color.interface.function.tertiary.normal.bg`
|
|
26
|
+
* - `bg.success` ← `semantic.color.feedback.success.bg`
|
|
27
|
+
* - `bg.danger` ← `semantic.color.feedback.danger.bg`
|
|
28
|
+
* - `bg.warning` ← `semantic.color.feedback.warning.bg`
|
|
29
|
+
* - `bg.info` ← `semantic.color.feedback.information.bg`
|
|
30
|
+
*/
|
|
31
|
+
export interface FoundationBg {
|
|
32
|
+
primary: string;
|
|
33
|
+
secondary: string;
|
|
34
|
+
tertiary: string;
|
|
35
|
+
success: string;
|
|
36
|
+
danger: string;
|
|
37
|
+
warning: string;
|
|
38
|
+
info: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Aliases curtos para cores de texto "sobre" um fundo Foundation. O sufixo
|
|
42
|
+
* (`onPrimary`) indica explicitamente o par de bg.
|
|
43
|
+
*
|
|
44
|
+
* Garantia de contraste WCAG ≥ AA é responsabilidade da camada Semantic
|
|
45
|
+
* (que escolhe `baseLight` ou `baseDark` para cada `txtOn`).
|
|
46
|
+
*/
|
|
47
|
+
export interface FoundationText {
|
|
48
|
+
onPrimary: string;
|
|
49
|
+
onSecondary: string;
|
|
50
|
+
onTertiary: string;
|
|
51
|
+
onSuccess: string;
|
|
52
|
+
onDanger: string;
|
|
53
|
+
onWarning: string;
|
|
54
|
+
onInfo: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Aliases curtos de espaçamento. Mapeiam para spacing Semantic preservando
|
|
58
|
+
* convenção de 2-3 letras canônica (xs/sm/md/lg/xl/xxl).
|
|
59
|
+
*
|
|
60
|
+
* Tradução para spacing aliases legadas de Apollion:
|
|
61
|
+
* - `xs` ← `semantic.dimension.spacing.xs`
|
|
62
|
+
* - `sm` ← `semantic.dimension.spacing.small`
|
|
63
|
+
* - `md` ← `semantic.dimension.spacing.medium`
|
|
64
|
+
* - `lg` ← `semantic.dimension.spacing.large`
|
|
65
|
+
* - `xl` ← `semantic.dimension.spacing.xl`
|
|
66
|
+
* - `xxl` ← `semantic.dimension.spacing.xxl`
|
|
67
|
+
*/
|
|
68
|
+
export interface FoundationSpacing {
|
|
69
|
+
xs: string;
|
|
70
|
+
sm: string;
|
|
71
|
+
md: string;
|
|
72
|
+
lg: string;
|
|
73
|
+
xl: string;
|
|
74
|
+
xxl: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Forma completa da camada Foundation. Exposta em `theme.foundation` a partir
|
|
78
|
+
* do Apollion v3.2.0 (ADR-002 Slice 3).
|
|
79
|
+
*/
|
|
80
|
+
export interface FoundationLayer {
|
|
81
|
+
bg: FoundationBg;
|
|
82
|
+
text: FoundationText;
|
|
83
|
+
spacing: FoundationSpacing;
|
|
84
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Camada Foundation — aliases curtos e ergonômicos sobre Semantic.
|
|
3
|
+
*
|
|
4
|
+
* Exposta em `theme.foundation` a partir de `@apollion-dsi/core` 3.2.0.
|
|
5
|
+
*
|
|
6
|
+
* Subpath import (preferido):
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { createFoundation, type FoundationLayer } from '@apollion-dsi/core/themes/foundation';
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* Re-exportada também pelo barrel `themes` para compat com consumers
|
|
12
|
+
* pre-subpath: `import { createFoundation } from '@apollion-dsi/core/themes';`.
|
|
13
|
+
*
|
|
14
|
+
* @see ../../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
15
|
+
*/
|
|
16
|
+
export type { FoundationBg, FoundationLayer, FoundationSpacing, FoundationText } from './Foundation.interface';
|
|
17
|
+
export { createFoundation } from './Foundation.helpers';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../chunks/chunk-CWRWYU7D.esm.js";import{a}from"../../chunks/chunk-TVJISBND.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as createFoundation};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefaultTheme, RuleSet } from '
|
|
1
|
+
import { DefaultTheme, RuleSet } from '../../vendors/StyledComponents';
|
|
2
2
|
export declare const GlobalStyleComponent: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & {
|
|
3
3
|
theme: DefaultTheme;
|
|
4
4
|
extend?: RuleSet<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-EEBGH4FW.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as GlobalStyle};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { SemanticLayer } from './Semantic.interface';
|
|
2
|
+
import type { ColorsThemeInterface } from '../Colors/Colors.interface';
|
|
3
|
+
import type { SpacingThemeInterface } from '../Spacing/Spacing.interface';
|
|
4
|
+
/**
|
|
5
|
+
* Subset do `Theme` estrutural necessário para derivar a camada Semantic.
|
|
6
|
+
*
|
|
7
|
+
* Tipado explicitamente (em vez de `Theme`) para evitar ciclo de tipos
|
|
8
|
+
* `ThemeProvider.interface → Semantic.interface → ThemeProvider.interface`.
|
|
9
|
+
*/
|
|
10
|
+
export interface CreateSemanticInput {
|
|
11
|
+
colors: ColorsThemeInterface;
|
|
12
|
+
spacing: SpacingThemeInterface;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Resolve a camada Semantic a partir do theme estrutural.
|
|
16
|
+
*
|
|
17
|
+
* **Pureza + idempotência (contrato de ADR-002 §9):**
|
|
18
|
+
* - Não lê nada externo (Date, Math.random, env, DOM).
|
|
19
|
+
* - Não muta a entrada.
|
|
20
|
+
* - Mesma entrada → mesma saída (referencialmente nova, byte-equivalente).
|
|
21
|
+
*
|
|
22
|
+
* Esse contrato é o que permite chamada via `useMemo([theme])` para
|
|
23
|
+
* performance, sem depender de garantias semânticas do React (que reserva o
|
|
24
|
+
* direito de descartar caches — ver ADR-002 §9 / React docs).
|
|
25
|
+
*
|
|
26
|
+
* Mapping rationale (ADR-002 §5, Aplica ⇄ Apollion):
|
|
27
|
+
* - `feedback.{state}.bg` ← `colors.{state}.base`
|
|
28
|
+
* - `feedback.{state}.txtOn` ← `colors.{baseLight | baseDark}` por contraste
|
|
29
|
+
* - `feedback.{state}.border` ← `colors.{state}.dark`
|
|
30
|
+
* - `interface.function.{role}.normal.bg` ← `colors.{role}.base`
|
|
31
|
+
* - `interface.function.{role}.normal.txtOn` ← contraste sobre `bg`
|
|
32
|
+
* - `brand.{first,second,third}.default.surface` ← `colors.{main,opposite,complementary}.base`
|
|
33
|
+
* - `dimension.spacing.{alias}` ← `spacing(alias)`
|
|
34
|
+
*
|
|
35
|
+
* @param theme - Subset do theme estrutural com `colors` e `spacing` resolvidos.
|
|
36
|
+
* @returns Camada Semantic completa, pronta pra ser plugada em `theme.semantic`.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { createTheme } from '@apollion-dsi/core/themes';
|
|
41
|
+
*
|
|
42
|
+
* const theme = createTheme();
|
|
43
|
+
* theme.semantic.color.feedback.success.bg;
|
|
44
|
+
* // → mesmo valor que theme.colors.success.base
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md §3, §5, §9
|
|
48
|
+
* @see ../../docs/CONCEPTS.md §2 Layer Cake
|
|
49
|
+
*/
|
|
50
|
+
export declare function createSemantic(theme: CreateSemanticInput): SemanticLayer;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Camada Semantic do theme — tokens nomeados por intenção, mirror direto da
|
|
3
|
+
* taxonomia de Aplica DS (`semantic.<category>.<group>.<state>.<property>`).
|
|
4
|
+
*
|
|
5
|
+
* Esta camada NÃO substitui a camada estrutural (`theme.colors.*`,
|
|
6
|
+
* `theme.spacing(...)`, etc.); ela é uma leitura paralela, derivada uma
|
|
7
|
+
* única vez em `createTheme()` a partir dos tokens estruturais já existentes.
|
|
8
|
+
*
|
|
9
|
+
* Componentes do `@apollion-dsi/core` devem preferir tokens Semantic ao
|
|
10
|
+
* acessar cores/dimensões com intent claro (feedback, interface function,
|
|
11
|
+
* brand). Produto deve consumir Foundation (camada acima) — ver §3 da
|
|
12
|
+
* `docs/adr/ADR-002-layered-theme-aliases-and-surface.md`.
|
|
13
|
+
*
|
|
14
|
+
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
15
|
+
* @see ../../docs/CONCEPTS.md §2 (Layer Cake) · §5 (Apollion ⇄ Aplica map)
|
|
16
|
+
* @see https://docs.aplica.me/en-US/design-tokens-fundamentals/token-architecture
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Par cor-de-fundo / cor-de-texto-sobre. Convenção Aplica DS.
|
|
20
|
+
* `txtOn` é a cor de texto garantida com contraste WCAG ≥ AA sobre `bg`.
|
|
21
|
+
*/
|
|
22
|
+
export interface SemanticBgPair {
|
|
23
|
+
bg: string;
|
|
24
|
+
txtOn: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Triplet com borda explícita, usado em estados de feedback (success, danger,
|
|
28
|
+
* warning, information) onde a borda costuma destacar o card/notification.
|
|
29
|
+
*/
|
|
30
|
+
export interface SemanticFeedbackTokens extends SemanticBgPair {
|
|
31
|
+
border: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Tokens de feedback — comunicam estado funcional ao usuário.
|
|
35
|
+
* Mapeiam para `theme.colors.{success, danger, warning, information}` no
|
|
36
|
+
* nível estrutural.
|
|
37
|
+
*/
|
|
38
|
+
export interface SemanticColorFeedback {
|
|
39
|
+
success: SemanticFeedbackTokens;
|
|
40
|
+
danger: SemanticFeedbackTokens;
|
|
41
|
+
warning: SemanticFeedbackTokens;
|
|
42
|
+
information: SemanticFeedbackTokens;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Estado de um par interface.function (default `normal`). Reservado para
|
|
46
|
+
* expansão futura (`hover`, `pressed`, `disabled`) sem breaking change.
|
|
47
|
+
*/
|
|
48
|
+
export interface SemanticInterfaceFunctionStates {
|
|
49
|
+
normal: SemanticBgPair;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Tokens funcionais de interface — papéis de ação (primary, secondary,
|
|
53
|
+
* tertiary). Mapeiam para `theme.colors.{primary, secondary, tertiary}`.
|
|
54
|
+
*/
|
|
55
|
+
export interface SemanticColorInterfaceFunction {
|
|
56
|
+
primary: SemanticInterfaceFunctionStates;
|
|
57
|
+
secondary: SemanticInterfaceFunctionStates;
|
|
58
|
+
tertiary: SemanticInterfaceFunctionStates;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Tokens de interface — agrega `function` e (futuramente) outros papéis.
|
|
62
|
+
*/
|
|
63
|
+
export interface SemanticColorInterface {
|
|
64
|
+
function: SemanticColorInterfaceFunction;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Superfície + texto-sobre para uma cor de marca, no estado default.
|
|
68
|
+
* Reservado `default` como string-key para permitir variantes futuras.
|
|
69
|
+
*/
|
|
70
|
+
export interface SemanticBrandTokens {
|
|
71
|
+
default: {
|
|
72
|
+
surface: string;
|
|
73
|
+
txtOn: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Tokens de marca — identidade visual. Mapeiam para
|
|
78
|
+
* `theme.colors.{main, opposite, complementary}` no estrutural.
|
|
79
|
+
*
|
|
80
|
+
* `first`/`second`/`third` reflete a nomenclatura Aplica DS (ordem de
|
|
81
|
+
* apresentação) em vez da nomenclatura legada Apollion
|
|
82
|
+
* (`main`/`opposite`/`complementary`).
|
|
83
|
+
*/
|
|
84
|
+
export interface SemanticColorBrand {
|
|
85
|
+
first: SemanticBrandTokens;
|
|
86
|
+
second: SemanticBrandTokens;
|
|
87
|
+
third: SemanticBrandTokens;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Camada de cores da Semantic.
|
|
91
|
+
*/
|
|
92
|
+
export interface SemanticColor {
|
|
93
|
+
feedback: SemanticColorFeedback;
|
|
94
|
+
interface: SemanticColorInterface;
|
|
95
|
+
brand: SemanticColorBrand;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Spacing pré-resolvido em string CSS (`'8px'`, `'1rem'`, etc.), gerado uma
|
|
99
|
+
* única vez em `createSemantic()` a partir de `theme.spacing(alias)`.
|
|
100
|
+
*
|
|
101
|
+
* Apollion usa as aliases legadas `zero..giant` no nível estrutural; a camada
|
|
102
|
+
* Semantic preserva essas mesmas chaves para evitar tradução cognitiva
|
|
103
|
+
* desnecessária (ADR-002 §5 deferiu adoção da nomenclatura Fibonacci de
|
|
104
|
+
* Aplica para o ADR-003 / v4 epic).
|
|
105
|
+
*/
|
|
106
|
+
export interface SemanticDimensionSpacing {
|
|
107
|
+
zero: string;
|
|
108
|
+
micro: string;
|
|
109
|
+
xs: string;
|
|
110
|
+
small: string;
|
|
111
|
+
medium: string;
|
|
112
|
+
large: string;
|
|
113
|
+
xl: string;
|
|
114
|
+
xxl: string;
|
|
115
|
+
giant: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Camada de dimensão da Semantic. Atualmente cobre apenas spacing; tipografia
|
|
119
|
+
* e elevation podem entrar em iterações futuras sem breaking change.
|
|
120
|
+
*/
|
|
121
|
+
export interface SemanticDimension {
|
|
122
|
+
spacing: SemanticDimensionSpacing;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Forma completa da camada Semantic. Exposta em `theme.semantic` a partir do
|
|
126
|
+
* Apollion v3.1.0.
|
|
127
|
+
*/
|
|
128
|
+
export interface SemanticLayer {
|
|
129
|
+
color: SemanticColor;
|
|
130
|
+
dimension: SemanticDimension;
|
|
131
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Camada Semantic — tokens nomeados por intenção, mirror de Aplica DS.
|
|
3
|
+
*
|
|
4
|
+
* Exposta em `theme.semantic` a partir de `@apollion-dsi/core` 3.1.0.
|
|
5
|
+
*
|
|
6
|
+
* Subpath import (preferido):
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { createSemantic, type SemanticLayer } from '@apollion-dsi/core/themes/semantic';
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* Re-exportada também pelo barrel `themes` para compat com consumers
|
|
12
|
+
* pre-subpath: `import { createSemantic } from '@apollion-dsi/core/themes';`.
|
|
13
|
+
*
|
|
14
|
+
* @see ../../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
15
|
+
*/
|
|
16
|
+
export type { CreateSemanticInput } from './Semantic.helpers';
|
|
17
|
+
export type { SemanticBgPair, SemanticBrandTokens, SemanticColor, SemanticColorBrand, SemanticColorFeedback, SemanticColorInterface, SemanticColorInterfaceFunction, SemanticDimension, SemanticDimensionSpacing, SemanticFeedbackTokens, SemanticInterfaceFunctionStates, SemanticLayer, } from './Semantic.interface';
|
|
18
|
+
export { createSemantic } from './Semantic.helpers';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunks/chunk-V5ZKDMDH.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{a as createSemantic};
|
|
@@ -1,3 +1,34 @@
|
|
|
1
1
|
import { SpacingInput, SpacingThemeInterface } from './Spacing.interface';
|
|
2
|
+
import { Dimension } from '../Dimension';
|
|
2
3
|
export declare const defaultInputSpacing: SpacingInput;
|
|
3
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Build the `theme.spacing(...)` function.
|
|
6
|
+
*
|
|
7
|
+
* **v4 (ADR-006 E2):** accepts optional `dimension` (density axis). When
|
|
8
|
+
* provided, the dimension's calibrated multiplier (see
|
|
9
|
+
* {@link DIMENSION_MULTIPLIERS} in `../Dimension`) **overrides** any
|
|
10
|
+
* `input.multiplier` from the spacing input. Consumer activates via
|
|
11
|
+
* `<ApollionProvider dimension>` and the spacing scale aliases adjust
|
|
12
|
+
* proportionally without recomputing the alias table.
|
|
13
|
+
*
|
|
14
|
+
* Resolution order:
|
|
15
|
+
* 1. If `dimension` arg provided → `getMultiplierForDimension(dimension)`.
|
|
16
|
+
* 2. Else → `input.multiplier ?? 0.25` (v3.x behavior preserved).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* theme.spacing('medium') // '1rem' (normal: 0.25 * 4)
|
|
21
|
+
* theme.spacing('medium', 'xs') // '1rem 0.5rem'
|
|
22
|
+
* theme.spacing(10) // '2.5rem'
|
|
23
|
+
*
|
|
24
|
+
* // Under <ApollionProvider dimension="compact">:
|
|
25
|
+
* theme.spacing('medium') // '0.8rem' (0.20 * 4)
|
|
26
|
+
*
|
|
27
|
+
* // Under <ApollionProvider dimension="spacious">:
|
|
28
|
+
* theme.spacing('medium') // '1.28rem' (0.32 * 4)
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @see ../../docs/adr/ADR-006-v4-oklch-dimension-token-split.md §6 S3
|
|
32
|
+
* @see ../Dimension/Dimension.props.ts
|
|
33
|
+
*/
|
|
34
|
+
export declare function createSpacing({ multiplier, alias }: SpacingInput, dimension?: Dimension): SpacingThemeInterface;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk-
|
|
1
|
+
import{a,b}from"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as createSpacing,a as defaultInputSpacing};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SurfaceMode } from './Surface.interface';
|
|
3
|
+
/**
|
|
4
|
+
* Props do `SurfaceProvider`.
|
|
5
|
+
*/
|
|
6
|
+
export interface SurfaceProviderProps {
|
|
7
|
+
/**
|
|
8
|
+
* Surface mode aplicado ao subtree.
|
|
9
|
+
*
|
|
10
|
+
* - `'positive'` (default): no-op. Theme passa intacto.
|
|
11
|
+
* - `'negative'`: inverte Semantic + Foundation para "dark backdrop
|
|
12
|
+
* treatment" (ver `invertForSurface` para semântica exata).
|
|
13
|
+
*/
|
|
14
|
+
surface?: SurfaceMode;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Wrapper leve para inverter o `surface` de um subtree sem re-mount dos
|
|
19
|
+
* providers do `ApollionProvider` (StyleSheetManager, BreakpointsProvider,
|
|
20
|
+
* NotificationsProvider).
|
|
21
|
+
*
|
|
22
|
+
* Implementação segue ADR-002 §9 (grill-with-docs §1): usa a forma
|
|
23
|
+
* **função-theme** do styled-components ThemeProvider, que recebe o outer
|
|
24
|
+
* theme da árvore pai. Sem dependência de "default merge semantics" (que
|
|
25
|
+
* não está documentada).
|
|
26
|
+
*
|
|
27
|
+
* Por que `useCallback`: garante referência estável da função `themeFn`
|
|
28
|
+
* entre renders quando `surface` não muda — evita que styled-components
|
|
29
|
+
* recompute o theme do subtree.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <ApollionProvider> // outer, positive (default)
|
|
34
|
+
* <Page>
|
|
35
|
+
* <SurfaceProvider surface="negative">
|
|
36
|
+
* <Card /> // dark card on light page
|
|
37
|
+
* </SurfaceProvider>
|
|
38
|
+
* </Page>
|
|
39
|
+
* </ApollionProvider>
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @see ./Surface.helpers.ts (invertForSurface — pure helper)
|
|
43
|
+
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md §3.2, §9
|
|
44
|
+
* @see ./README.md
|
|
45
|
+
*/
|
|
46
|
+
export declare const SurfaceProvider: React.FC<SurfaceProviderProps>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { SurfaceMode } from './Surface.interface';
|
|
2
|
+
import type { Theme } from '../ThemeProvider/ThemeProvider.interface';
|
|
3
|
+
/**
|
|
4
|
+
* Inverte um `Theme` para um surface mode específico, sem mutar a entrada
|
|
5
|
+
* nem tocar a camada Structural.
|
|
6
|
+
*
|
|
7
|
+
* **Pureza + idempotência (contrato ADR-002 §9):**
|
|
8
|
+
* - Não lê nada externo (Date, Math.random, env, DOM).
|
|
9
|
+
* - Não muta a entrada (`theme` permanece intacto após chamada).
|
|
10
|
+
* - Mesma entrada → mesma saída (referencialmente nova, byte-equivalente).
|
|
11
|
+
* - `invertForSurface(invertForSurface(theme, 'negative'), 'negative')` !==
|
|
12
|
+
* `theme` (intencionalmente — segunda inversão NÃO retorna ao original;
|
|
13
|
+
* `negative` é um terminal state baseado no Structural, não bg↔txt swap).
|
|
14
|
+
*
|
|
15
|
+
* Semântica de inversão (v1 — ADR-002 Slice 4):
|
|
16
|
+
* - **Structural** (`theme.colors.*`, `theme.spacing(...)`): inalterado.
|
|
17
|
+
* - **Semantic** + **Foundation** são reconstruídos a partir do Structural
|
|
18
|
+
* com regra "dark backdrop treatment":
|
|
19
|
+
* - `feedback.{state}.bg` ← `colors.{state}.dark` (mantém hue, escurece)
|
|
20
|
+
* - `feedback.{state}.txtOn` ← `colors.baseLight`
|
|
21
|
+
* - `feedback.{state}.border` ← `colors.{state}.base` (borda fica brilhante)
|
|
22
|
+
* - `interface.function.{role}.normal.bg` ← `colors.baseDark` (neutro escuro
|
|
23
|
+
* universal — cor de função perde saturação para virar "surface dark")
|
|
24
|
+
* - `interface.function.{role}.normal.txtOn` ← `colors.baseLight`
|
|
25
|
+
* - `brand.{n}.default.surface` ← `colors.{main|opposite|complementary}.dark`
|
|
26
|
+
* - `brand.{n}.default.txtOn` ← `colors.baseLight`
|
|
27
|
+
* - **Dimension** (spacing): inalterado.
|
|
28
|
+
*
|
|
29
|
+
* Limitação documentada (v1): inversão é determinística e ignora `themeMode`
|
|
30
|
+
* (Apollion v3.x não tem mode resolution algorítmico). Em ADR-003 (v4 epic
|
|
31
|
+
* com Mode + Dimension axes) a semântica vira "negative dentro do mode
|
|
32
|
+
* corrente" — ver Aplica DS docs.
|
|
33
|
+
*
|
|
34
|
+
* @param theme - Theme base resolvido (vindo de `createTheme()` ou de outer
|
|
35
|
+
* ThemeProvider).
|
|
36
|
+
* @param surface - `'positive'` (no-op, retorna `theme`) ou `'negative'`.
|
|
37
|
+
* @returns Novo Theme. Para `positive` é a referência original (identity).
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```tsx
|
|
41
|
+
* import { invertForSurface } from '@apollion-dsi/core/themes/surface';
|
|
42
|
+
*
|
|
43
|
+
* const negativeTheme = invertForSurface(theme, 'negative');
|
|
44
|
+
* negativeTheme.foundation.bg.primary; // → theme.colors.baseDark
|
|
45
|
+
* negativeTheme.foundation.text.onPrimary; // → theme.colors.baseLight
|
|
46
|
+
* theme.foundation.bg.primary; // unchanged (input não mutado)
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md §3, §9
|
|
50
|
+
* @see ./README.md
|
|
51
|
+
*/
|
|
52
|
+
export declare function invertForSurface(theme: Theme, surface: SurfaceMode, mode?: import('../ThemeProvider/ThemeProvider.interface').ThemeMode): Theme;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Surface modes do theme. Conceito importado de Aplica DS (Poe).
|
|
3
|
+
*
|
|
4
|
+
* - `positive`: surface "normal" da página — fundo principal. Default.
|
|
5
|
+
* - `negative`: surface invertida/destacada (dark card numa página light,
|
|
6
|
+
* highlighted section, badge invertido). Texto sempre claro sobre bg
|
|
7
|
+
* escuro/saturado.
|
|
8
|
+
*
|
|
9
|
+
* Surface é **ortogonal a themeMode** (light/dark): `negative` em light mode
|
|
10
|
+
* = "dark surface numa página clara"; `negative` em dark mode = "lighter
|
|
11
|
+
* surface numa página escura". Ver ADR-002 §9 + grill-with-docs §5.
|
|
12
|
+
*
|
|
13
|
+
* Ortogonalidade verificada contra Aplica DS:
|
|
14
|
+
* https://docs.aplica.me/en-US/design-tokens-fundamentals/token-architecture
|
|
15
|
+
* "N_brands × 2 modes × 2 surfaces × 3 dimensions = N × 12 variants"
|
|
16
|
+
*
|
|
17
|
+
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
18
|
+
* @see ./README.md
|
|
19
|
+
*/
|
|
20
|
+
export type SurfaceMode = 'positive' | 'negative';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Camada Surface — wrapper de inversão contextual de Semantic + Foundation.
|
|
3
|
+
*
|
|
4
|
+
* Adicionada em `@apollion-dsi/core` 3.3.0 (ADR-002 Slice 4).
|
|
5
|
+
*
|
|
6
|
+
* Subpath import (preferido):
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { SurfaceProvider, invertForSurface, type SurfaceMode } from '@apollion-dsi/core/themes/surface';
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* Re-exportada também pelo barrel `themes`.
|
|
12
|
+
*
|
|
13
|
+
* @see ../../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
14
|
+
* @see ./README.md
|
|
15
|
+
*/
|
|
16
|
+
export type { SurfaceMode } from './Surface.interface';
|
|
17
|
+
export { invertForSurface } from './Surface.helpers';
|
|
18
|
+
export { SurfaceProvider, type SurfaceProviderProps } from './Surface';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../../chunks/chunk-76C7AHBV.esm.js";import"../../chunks/chunk-TVJISBND.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{b as SurfaceProvider,a as invertForSurface};
|