@apollion-dsi/core 5.3.0 → 5.4.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 +46 -34
- package/lib/chunks/Notification.group-YC5G24UY.esm.js +1 -0
- package/lib/chunks/chunk-3RNWYCCU.esm.js +1 -0
- package/lib/chunks/{chunk-RE3I3OYH.esm.js → chunk-4KZ2JQAC.esm.js} +1 -1
- package/lib/chunks/{chunk-PLYS2FYI.esm.js → chunk-4V7LOS5Z.esm.js} +1 -1
- package/lib/chunks/{chunk-WXIAPOTW.esm.js → chunk-5LTPAIHB.esm.js} +1 -1
- package/lib/chunks/chunk-5O44BVAT.esm.js +43 -0
- package/lib/chunks/{chunk-JN5ZNWJR.esm.js → chunk-5SQH2W2J.esm.js} +1 -1
- package/lib/chunks/chunk-6OXVRDS2.esm.js +1 -0
- package/lib/chunks/{chunk-46YVAYDW.esm.js → chunk-6UPV326F.esm.js} +1 -1
- package/lib/chunks/{chunk-IGHPN2OO.esm.js → chunk-73MPQ5OY.esm.js} +1 -1
- package/lib/chunks/chunk-7EGX7BMB.esm.js +1 -0
- package/lib/chunks/chunk-7Y6YHVIS.esm.js +1 -0
- package/lib/chunks/{chunk-OXFE7XFH.esm.js → chunk-7YLTH6LY.esm.js} +1 -1
- package/lib/chunks/{chunk-52WIL6WF.esm.js → chunk-A3PI2KMG.esm.js} +1 -1
- package/lib/chunks/chunk-ARQDV4PP.esm.js +1 -0
- package/lib/chunks/{chunk-YJ4ZRQMI.esm.js → chunk-BC24WDTC.esm.js} +1 -1
- package/lib/chunks/chunk-BL3BNTW3.esm.js +1 -0
- package/lib/chunks/{chunk-2IZ35FTI.esm.js → chunk-BMGVQBTB.esm.js} +1 -1
- package/lib/chunks/{chunk-KDIEROKH.esm.js → chunk-BVKAXW2H.esm.js} +1 -1
- package/lib/chunks/chunk-C5ZCCKMP.esm.js +1 -0
- package/lib/chunks/{chunk-QTWYG4PZ.esm.js → chunk-CLDPV7NK.esm.js} +1 -1
- package/lib/chunks/{chunk-NAPV2J5W.esm.js → chunk-DIN3SAMW.esm.js} +1 -1
- package/lib/chunks/{chunk-SPWQRX4O.esm.js → chunk-DZB2OR52.esm.js} +1 -1
- package/lib/chunks/{chunk-LAO57LJC.esm.js → chunk-EJ3VKFOX.esm.js} +1 -1
- package/lib/chunks/{chunk-BIBJ6JAY.esm.js → chunk-F3WJSICY.esm.js} +1 -1
- package/lib/chunks/{chunk-5VB6YPWU.esm.js → chunk-FCMCTNIG.esm.js} +4 -4
- package/lib/chunks/{chunk-6C3PW2PK.esm.js → chunk-FUSBM77F.esm.js} +1 -1
- package/lib/chunks/chunk-FXR7WKA7.esm.js +1 -0
- package/lib/chunks/{chunk-JSCUCQSD.esm.js → chunk-HP5OTTKY.esm.js} +1 -1
- package/lib/chunks/{chunk-7ORNMDF3.esm.js → chunk-HUATVKQA.esm.js} +1 -1
- package/lib/chunks/{chunk-MFMJXXV6.esm.js → chunk-I46TFDIX.esm.js} +1 -1
- package/lib/chunks/chunk-IQ6MEZCJ.esm.js +1 -0
- package/lib/chunks/{chunk-YX33Y5T6.esm.js → chunk-KUNNAGZ3.esm.js} +1 -1
- package/lib/chunks/chunk-LATE6DIA.esm.js +1 -0
- package/lib/chunks/{chunk-I3LRFLFK.esm.js → chunk-MI7BQ4AV.esm.js} +1 -1
- package/lib/chunks/chunk-OHOMOBIV.esm.js +43 -0
- package/lib/chunks/chunk-PR2T746R.esm.js +1 -0
- package/lib/chunks/{chunk-RC453BIC.esm.js → chunk-PWFS4OYV.esm.js} +1 -1
- package/lib/chunks/{chunk-MJX6TZUR.esm.js → chunk-QHDAJQC7.esm.js} +1 -1
- package/lib/chunks/{chunk-IUNHMZ3V.esm.js → chunk-QNK4SZQ6.esm.js} +1 -1
- package/lib/chunks/{chunk-CWLQNJ2D.esm.js → chunk-QOO64QE4.esm.js} +1 -1
- package/lib/chunks/chunk-QXQC37K5.esm.js +1 -0
- package/lib/chunks/chunk-ROYW5FBA.esm.js +1 -0
- package/lib/chunks/chunk-T5YJT2PA.esm.js +35 -0
- package/lib/chunks/chunk-TD4RVB2L.esm.js +4 -0
- package/lib/chunks/chunk-UYYT7GH5.esm.js +1 -0
- package/lib/chunks/chunk-VAJGIZNP.esm.js +1 -0
- package/lib/chunks/{chunk-FYIBJA5Y.esm.js → chunk-VFA2NPNZ.esm.js} +1 -1
- package/lib/chunks/{chunk-7UYOO2PQ.esm.js → chunk-VHIU3G6O.esm.js} +1 -1
- package/lib/chunks/{chunk-WKQ3JIEG.esm.js → chunk-VHXSTTRG.esm.js} +1 -1
- package/lib/chunks/{chunk-KAPHZYMX.esm.js → chunk-VSLW7J54.esm.js} +1 -1
- package/lib/chunks/{chunk-ZP75XPKF.esm.js → chunk-WJL7X2E2.esm.js} +1 -1
- package/lib/chunks/{chunk-KMQUGDL3.esm.js → chunk-WS2NO23J.esm.js} +1 -1
- package/lib/chunks/{chunk-LC6CQDHG.esm.js → chunk-X3YSUW3W.esm.js} +1 -1
- package/lib/chunks/chunk-X5UHGM25.esm.js +1 -0
- package/lib/chunks/{chunk-UB6WSKGK.esm.js → chunk-XAVQOLJ6.esm.js} +1 -1
- package/lib/chunks/{chunk-75YRUKSI.esm.js → chunk-XJJDEXNW.esm.js} +1 -1
- package/lib/chunks/{chunk-AGTNBWPD.esm.js → chunk-XVEUJXSW.esm.js} +7 -7
- package/lib/chunks/chunk-YLRQW7VD.esm.js +1 -0
- package/lib/chunks/chunk-YRBM4WYM.esm.js +1 -0
- package/lib/chunks/chunk-ZPPJD46V.esm.js +1 -0
- package/lib/containers/Base/Base.interface.d.ts +7 -7
- package/lib/containers/Base/Base.style.d.ts +9 -8
- package/lib/containers/Base/index.d.ts +9 -9
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Card/Card.d.ts +8 -7
- package/lib/containers/Card/Card.interface.d.ts +16 -16
- package/lib/containers/Card/index.d.ts +5 -5
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/Content.d.ts +10 -10
- package/lib/containers/Content/Content.interface.d.ts +15 -15
- package/lib/containers/Content/index.d.ts +5 -5
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/Flex.interface.d.ts +10 -10
- package/lib/containers/Flex/Flex.style.d.ts +7 -6
- package/lib/containers/Flex/index.d.ts +8 -7
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/Grid.interface.d.ts +27 -26
- package/lib/containers/Grid/Grid.style.d.ts +10 -10
- package/lib/containers/Grid/index.d.ts +7 -7
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Motion/Motion.style.d.ts +37 -37
- package/lib/containers/Motion/index.d.ts +7 -6
- package/lib/containers/Motion/index.esm.js +1 -1
- package/lib/containers/Notification/Notification.context.d.ts +17 -17
- package/lib/containers/Notification/Notification.d.ts +23 -23
- package/lib/containers/Notification/Notification.group.d.ts +9 -9
- package/lib/containers/Notification/Notification.interface.d.ts +39 -39
- package/lib/containers/Notification/Notification.style.d.ts +136 -136
- package/lib/containers/Notification/index.d.ts +9 -9
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/Paper.interface.d.ts +5 -5
- package/lib/containers/Paper/Paper.style.d.ts +8 -8
- package/lib/containers/Paper/index.d.ts +5 -5
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/Scroll.d.ts +12 -12
- package/lib/containers/Scroll/Scroll.helpers.d.ts +15 -14
- package/lib/containers/Scroll/Scroll.interface.d.ts +7 -11
- package/lib/containers/Scroll/Scroll.style.d.ts +13 -13
- package/lib/containers/Scroll/index.d.ts +5 -5
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/DataTable.d.ts +8 -9
- package/lib/dataDisplay/DataTable/DataTable.filters.d.ts +16 -15
- package/lib/dataDisplay/DataTable/DataTable.helpers.d.ts +62 -57
- package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +121 -133
- package/lib/dataDisplay/DataTable/DataTable.props.d.ts +11 -11
- package/lib/dataDisplay/DataTable/DataTable.style.d.ts +29 -29
- package/lib/dataDisplay/DataTable/index.d.ts +5 -5
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/DescriptionList.d.ts +17 -17
- package/lib/dataDisplay/DescriptionList/DescriptionList.interface.d.ts +28 -28
- package/lib/dataDisplay/DescriptionList/index.d.ts +6 -6
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Meter/Meter.d.ts +15 -15
- package/lib/dataDisplay/Meter/Meter.interface.d.ts +36 -35
- package/lib/dataDisplay/Meter/Meter.style.d.ts +11 -11
- package/lib/dataDisplay/Meter/index.d.ts +4 -4
- package/lib/dataDisplay/Meter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/Table.d.ts +9 -9
- package/lib/dataDisplay/Table/Table/Table.interface.d.ts +32 -32
- package/lib/dataDisplay/Table/Table/index.d.ts +5 -5
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table.context.d.ts +15 -15
- package/lib/dataDisplay/Table/Table.shared.d.ts +5 -5
- package/lib/dataDisplay/Table/TableBody/TableBody.interface.d.ts +3 -3
- package/lib/dataDisplay/Table/TableBody/TableBody.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableBody/index.d.ts +5 -4
- package/lib/dataDisplay/Table/TableCell/TableCell.d.ts +5 -5
- package/lib/dataDisplay/Table/TableCell/TableCell.interface.d.ts +7 -7
- package/lib/dataDisplay/Table/TableCell/TableCell.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/TableCheckboxCell.d.ts +5 -5
- package/lib/dataDisplay/Table/TableCheckboxCell/TableCheckboxCell.interface.d.ts +3 -3
- package/lib/dataDisplay/Table/TableCheckboxCell/TableCheckboxCell.style.d.ts +5 -5
- package/lib/dataDisplay/Table/TableCheckboxCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.d.ts +4 -4
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.interface.d.ts +7 -7
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +8 -8
- package/lib/dataDisplay/Table/TableEmpty/index.d.ts +2 -2
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/TableFooter.d.ts +5 -5
- package/lib/dataDisplay/Table/TableFooter/TableFooter.interface.d.ts +4 -4
- package/lib/dataDisplay/Table/TableFooter/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeader/TableHeader.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeader/TableHeader.interface.d.ts +2 -2
- package/lib/dataDisplay/Table/TableHeader/TableHeader.style.d.ts +5 -5
- package/lib/dataDisplay/Table/TableHeader/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.d.ts +5 -5
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.interface.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/TableHeaderCheckboxCell.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/TableHeaderCheckboxCell.interface.d.ts +3 -2
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/TableHeaderCheckboxCell.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/TablePagination.d.ts +7 -7
- package/lib/dataDisplay/Table/TablePagination/TablePagination.interface.d.ts +8 -8
- package/lib/dataDisplay/Table/TablePagination/index.d.ts +2 -2
- package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableRow/TableRow.d.ts +3 -3
- package/lib/dataDisplay/Table/TableRow/TableRow.interface.d.ts +3 -3
- package/lib/dataDisplay/Table/TableRow/TableRow.style.d.ts +4 -3
- package/lib/dataDisplay/Table/TableRow/index.d.ts +3 -3
- package/lib/dataDisplay/Table/index.d.ts +5 -5
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/Tabs.d.ts +21 -21
- package/lib/dataDisplay/Tabs/Tabs.interface.d.ts +22 -22
- package/lib/dataDisplay/Tabs/Tabs.style.d.ts +9 -9
- package/lib/dataDisplay/Tabs/index.d.ts +5 -5
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/Avatar.d.ts +7 -7
- package/lib/elements/Avatar/Avatar.helpers.d.ts +6 -6
- package/lib/elements/Avatar/Avatar.interface.d.ts +23 -12
- package/lib/elements/Avatar/Avatar.style.d.ts +26 -7
- package/lib/elements/Avatar/index.d.ts +4 -4
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/Button.d.ts +12 -12
- package/lib/elements/Button/Button.interface.d.ts +39 -38
- package/lib/elements/Button/Button.style.d.ts +18 -15
- package/lib/elements/Button/index.d.ts +7 -7
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Calendar/Calendar.d.ts +10 -10
- package/lib/elements/Calendar/Calendar.interface.d.ts +15 -16
- package/lib/elements/Calendar/Calendar.style.d.ts +11 -11
- package/lib/elements/Calendar/index.d.ts +6 -6
- package/lib/elements/Calendar/index.esm.js +1 -1
- package/lib/elements/Dropdown/Dropdown.d.ts +17 -16
- package/lib/elements/Dropdown/Dropdown.interface.d.ts +26 -26
- package/lib/elements/Dropdown/index.d.ts +4 -4
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/Icon.d.ts +7 -7
- package/lib/elements/Icon/Icon.helpers.d.ts +10 -9
- package/lib/elements/Icon/Icon.interface.d.ts +25 -24
- package/lib/elements/Icon/Icon.style.d.ts +8 -8
- package/lib/elements/Icon/index.d.ts +5 -5
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/IconButton/IconButton.d.ts +8 -8
- package/lib/elements/IconButton/IconButton.interface.d.ts +17 -7
- package/lib/elements/IconButton/IconButton.style.d.ts +4 -4
- package/lib/elements/IconButton/index.d.ts +5 -5
- package/lib/elements/IconButton/index.esm.js +1 -1
- package/lib/elements/Image/Image.d.ts +9 -9
- package/lib/elements/Image/Image.interface.d.ts +14 -13
- package/lib/elements/Image/Image.style.d.ts +4 -4
- package/lib/elements/Image/index.d.ts +4 -4
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Label/Label.d.ts +13 -12
- package/lib/elements/Label/Label.interface.d.ts +11 -15
- package/lib/elements/Label/Label.style.d.ts +7 -7
- package/lib/elements/Label/index.d.ts +4 -4
- package/lib/elements/Label/index.esm.js +1 -1
- package/lib/elements/Link/Link.d.ts +31 -31
- package/lib/elements/Link/Link.interface.d.ts +31 -30
- package/lib/elements/Link/Link.style.d.ts +23 -22
- package/lib/elements/Link/index.d.ts +4 -4
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/List.d.ts +9 -9
- package/lib/elements/List/List.interface.d.ts +25 -25
- package/lib/elements/List/List.style.d.ts +8 -9
- package/lib/elements/List/index.d.ts +3 -3
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.d.ts +22 -22
- package/lib/elements/Modal/Modal.interface.d.ts +41 -41
- package/lib/elements/Modal/Modal.style.d.ts +509 -510
- package/lib/elements/Modal/index.d.ts +4 -4
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/Popover.d.ts +8 -8
- package/lib/elements/Popover/Popover.interface.d.ts +11 -11
- package/lib/elements/Popover/index.d.ts +3 -3
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/ProgressBar.d.ts +11 -11
- package/lib/elements/ProgressBar/ProgressBar.interface.d.ts +9 -9
- package/lib/elements/ProgressBar/ProgressBar.style.d.ts +21 -22
- package/lib/elements/ProgressBar/index.d.ts +6 -6
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Spinner/Spinner.d.ts +6 -6
- package/lib/elements/Spinner/Spinner.interface.d.ts +11 -11
- package/lib/elements/Spinner/Spinner.style.d.ts +9 -8
- package/lib/elements/Spinner/index.d.ts +4 -4
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/Svg/Svg.d.ts +8 -8
- package/lib/elements/Svg/Svg.interface.d.ts +19 -20
- package/lib/elements/Svg/Svg.style.d.ts +17 -9
- package/lib/elements/Svg/index.d.ts +4 -4
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/Text.d.ts +10 -10
- package/lib/elements/Text/Text.interface.d.ts +94 -90
- package/lib/elements/Text/Text.props.d.ts +35 -35
- package/lib/elements/Text/Text.style.d.ts +8 -8
- package/lib/elements/Text/index.d.ts +5 -5
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/Tooltip.d.ts +8 -8
- package/lib/elements/Tooltip/Tooltip.interface.d.ts +18 -19
- package/lib/elements/Tooltip/Tooltip.style.d.ts +14 -13
- package/lib/elements/Tooltip/index.d.ts +4 -4
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/BackgroundFactory/BackgroundFactory.d.ts +10 -10
- package/lib/factory/BackgroundFactory/BackgroundFactory.interface.d.ts +18 -14
- package/lib/factory/BackgroundFactory/index.d.ts +4 -4
- package/lib/factory/BorderFactory/BorderFactory.d.ts +16 -16
- package/lib/factory/BorderFactory/BorderFactory.interface.d.ts +20 -20
- package/lib/factory/BorderFactory/index.d.ts +4 -4
- package/lib/factory/ColorFactory/ColorFactory.d.ts +16 -16
- package/lib/factory/ColorFactory/ColorFactory.interface.d.ts +21 -28
- package/lib/factory/ColorFactory/index.d.ts +3 -3
- package/lib/factory/ContainerFactory/ContainerFactory.d.ts +7 -7
- package/lib/factory/ContainerFactory/ContainerFactory.interface.d.ts +27 -31
- package/lib/factory/ContainerFactory/index.d.ts +3 -3
- package/lib/factory/DeepFactory/DeepFactory.d.ts +9 -9
- package/lib/factory/DeepFactory/DeepFactory.interface.d.ts +19 -19
- package/lib/factory/DeepFactory/index.d.ts +3 -3
- package/lib/factory/DeepFactory/index.esm.js +1 -1
- package/lib/factory/FlexFactory/FlexFactory.d.ts +7 -7
- package/lib/factory/FlexFactory/FlexFactory.interface.d.ts +22 -22
- package/lib/factory/FlexFactory/index.d.ts +4 -4
- package/lib/factory/FontFactory/FontFactory.d.ts +6 -6
- package/lib/factory/FontFactory/FontFactory.interface.d.ts +19 -19
- package/lib/factory/FontFactory/index.d.ts +3 -3
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.d.ts +9 -9
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.interface.d.ts +15 -15
- package/lib/factory/ResponsiveFactory/index.d.ts +3 -3
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/SizeFactory/SizeFactory.d.ts +7 -7
- package/lib/factory/SizeFactory/SizeFactory.interface.d.ts +9 -9
- package/lib/factory/SizeFactory/index.d.ts +2 -2
- package/lib/factory/SpacingFactory/SpacingFactory.d.ts +7 -6
- package/lib/factory/SpacingFactory/SpacingFactory.interface.d.ts +9 -9
- package/lib/factory/SpacingFactory/index.d.ts +3 -3
- package/lib/factory/System/System.d.ts +24 -14
- package/lib/factory/System/System.interface.d.ts +17 -17
- package/lib/factory/System/index.d.ts +3 -3
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/index.d.ts +8 -7
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/Checkbox.d.ts +7 -7
- package/lib/form/Checkbox/Checkbox.interface.d.ts +9 -10
- package/lib/form/Checkbox/Checkbox.style.d.ts +12 -12
- package/lib/form/Checkbox/index.d.ts +3 -3
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/Field.d.ts +7 -7
- package/lib/form/Field/Field.interface.d.ts +6 -6
- package/lib/form/Field/Field.props.d.ts +5 -5
- package/lib/form/Field/Field.style.d.ts +3 -3
- package/lib/form/Field/index.d.ts +7 -6
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/FieldGroup.d.ts +9 -9
- package/lib/form/FieldGroup/FieldGroup.helpers.d.ts +9 -9
- package/lib/form/FieldGroup/FieldGroup.interface.d.ts +18 -18
- package/lib/form/FieldGroup/index.d.ts +3 -3
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/Form.helpers.d.ts +26 -26
- package/lib/form/Form/Form.interface.d.ts +33 -33
- package/lib/form/Form/Form.style.d.ts +4 -4
- package/lib/form/Form/index.d.ts +4 -4
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/Input.d.ts +7 -7
- package/lib/form/Input/Input.helpers.d.ts +8 -16
- package/lib/form/Input/Input.interface.d.ts +26 -26
- package/lib/form/Input/Input.style.d.ts +28 -28
- package/lib/form/Input/index.d.ts +5 -5
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/InputCurrency.d.ts +7 -7
- package/lib/form/InputCurrency/InputCurrency.helpers.d.ts +13 -13
- package/lib/form/InputCurrency/InputCurrency.interface.d.ts +9 -8
- package/lib/form/InputCurrency/index.d.ts +5 -5
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/InputDate.d.ts +13 -13
- package/lib/form/InputDate/InputDate.interface.d.ts +26 -25
- package/lib/form/InputDate/buildSyntheticEvent.d.ts +18 -18
- package/lib/form/InputDate/index.d.ts +8 -7
- package/lib/form/InputDate/index.esm.js +1 -1
- package/lib/form/InputMask/InputMask.d.ts +9 -9
- package/lib/form/InputMask/InputMask.interface.d.ts +9 -9
- package/lib/form/InputMask/index.d.ts +4 -3
- package/lib/form/InputMask/index.esm.js +1 -1
- package/lib/form/InputRange/InputRange.d.ts +9 -9
- package/lib/form/InputRange/InputRange.helpers.d.ts +14 -14
- package/lib/form/InputRange/InputRange.style.d.ts +24 -23
- package/lib/form/InputRange/index.d.ts +4 -4
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/InputSelect/DropdownIndicator.d.ts +6 -6
- package/lib/form/InputSelect/InputSelect.helpers.d.ts +12 -11
- package/lib/form/InputSelect/InputSelect.style.d.ts +12 -39
- package/lib/form/InputSelect/index.d.ts +4 -4
- package/lib/form/InputSelect/index.esm.js +1 -1
- package/lib/form/Radio/Radio.d.ts +7 -7
- package/lib/form/Radio/Radio.interface.d.ts +13 -14
- package/lib/form/Radio/Radio.style.d.ts +11 -11
- package/lib/form/Radio/index.d.ts +3 -3
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/Select/Select.style.d.ts +1 -12
- package/lib/form/Select/index.esm.js +1 -1
- package/lib/form/Switch/Switch.d.ts +11 -11
- package/lib/form/Switch/Switch.interface.d.ts +16 -17
- package/lib/form/Switch/Switch.style.d.ts +12 -25
- package/lib/form/Switch/index.d.ts +2 -2
- package/lib/form/Switch/index.esm.js +1 -1
- package/lib/form/TextArea/TextArea.d.ts +9 -9
- package/lib/form/TextArea/TextArea.interface.d.ts +15 -15
- package/lib/form/TextArea/TextArea.style.d.ts +9 -9
- package/lib/form/TextArea/index.d.ts +3 -3
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.d.ts +14 -14
- package/lib/form/UploadCard/UploadCard.helpers.d.ts +15 -15
- package/lib/form/UploadCard/UploadCard.interface.d.ts +40 -39
- package/lib/form/UploadCard/UploadCard.style.d.ts +16 -16
- package/lib/form/UploadCard/index.d.ts +6 -6
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/UploadCard/useFileControl.d.ts +6 -6
- package/lib/form/UploadCard/useFileState.d.ts +6 -6
- package/lib/form/UploadCard/useObjectUrl.d.ts +5 -5
- package/lib/form/index.esm.js +1 -1
- package/lib/hooks/useClickOutside/index.d.ts +3 -3
- package/lib/hooks/useClickOutside/useClickOutside.d.ts +8 -8
- package/lib/hooks/useClipboard/index.d.ts +3 -3
- package/lib/hooks/useClipboard/useClipboard.d.ts +10 -10
- package/lib/hooks/useClipboard/useClipboard.helpers.d.ts +8 -9
- package/lib/hooks/useDrag/index.d.ts +5 -5
- package/lib/hooks/useDrag/useDrag.d.ts +6 -6
- package/lib/hooks/useDrag/useDrag.helpers.d.ts +9 -9
- package/lib/hooks/useDrag/useDrag.interface.d.ts +9 -9
- package/lib/hooks/useEventCallback/index.d.ts +4 -4
- package/lib/hooks/useEventCallback/useEventCallback.d.ts +12 -12
- package/lib/hooks/useFileDialog/index.d.ts +3 -3
- package/lib/hooks/useFileDialog/useFileDialog.d.ts +15 -15
- package/lib/hooks/useIntersect/index.d.ts +3 -3
- package/lib/hooks/useIntersect/useIntersect.d.ts +11 -11
- package/lib/hooks/useLazyEffect/index.d.ts +3 -3
- package/lib/hooks/useLazyEffect/useLazyEffect.d.ts +7 -7
- package/lib/hooks/useMediaQuery/index.d.ts +5 -5
- package/lib/hooks/useMediaQuery/useMediaQuery.d.ts +7 -7
- package/lib/hooks/useMediaQuery/useMediaQuery.helpers.d.ts +8 -8
- package/lib/hooks/useMediaQuery/useMediaQuery.interface.d.ts +6 -6
- package/lib/hooks/useProgress/index.d.ts +3 -3
- package/lib/hooks/useProgress/useProgress.d.ts +13 -13
- package/lib/hooks/useScript/index.d.ts +3 -3
- package/lib/hooks/useScript/useScript.d.ts +7 -7
- package/lib/hooks/useToggle/index.d.ts +3 -3
- package/lib/hooks/useToggle/useToggle.d.ts +14 -14
- package/lib/hooks/useUnload/index.d.ts +3 -3
- package/lib/hooks/useUnload/useUnload.d.ts +10 -10
- package/lib/icons/icon.interface.d.ts +8 -7
- package/lib/icons/index.d.ts +6 -6
- package/lib/icons/set/alertInfo.d.ts +1 -1
- package/lib/icons/set/alignCenter.d.ts +1 -1
- package/lib/icons/set/alignJustify.d.ts +1 -1
- package/lib/icons/set/alignLeft.d.ts +1 -1
- package/lib/icons/set/alignRight.d.ts +1 -1
- package/lib/icons/set/arrowCircleDown.d.ts +1 -1
- package/lib/icons/set/arrowCircleLeft.d.ts +1 -1
- package/lib/icons/set/arrowCircleRight.d.ts +1 -1
- package/lib/icons/set/arrowCircleUp.d.ts +1 -1
- package/lib/icons/set/arrowLeft.d.ts +1 -1
- package/lib/icons/set/arrowRight.d.ts +1 -1
- package/lib/icons/set/attention.d.ts +1 -1
- package/lib/icons/set/ban.d.ts +1 -1
- package/lib/icons/set/calendar.d.ts +1 -1
- package/lib/icons/set/check.d.ts +1 -1
- package/lib/icons/set/chevronDown.d.ts +1 -1
- package/lib/icons/set/chevronLeft.d.ts +1 -1
- package/lib/icons/set/chevronRight.d.ts +1 -1
- package/lib/icons/set/chevronUp.d.ts +1 -1
- package/lib/icons/set/clock.d.ts +1 -1
- package/lib/icons/set/cog.d.ts +1 -1
- package/lib/icons/set/edit.d.ts +1 -1
- package/lib/icons/set/ellipsisH.d.ts +1 -1
- package/lib/icons/set/emojiAngry.d.ts +1 -1
- package/lib/icons/set/emojiBeamSweat.d.ts +1 -1
- package/lib/icons/set/emojiSadTear.d.ts +1 -1
- package/lib/icons/set/emojiSquintTear.d.ts +1 -1
- package/lib/icons/set/emojiStar.d.ts +1 -1
- package/lib/icons/set/emojiTired.d.ts +1 -1
- package/lib/icons/set/emojiTongue.d.ts +1 -1
- package/lib/icons/set/emojiTongueSquint.d.ts +1 -1
- package/lib/icons/set/envelope.d.ts +1 -1
- package/lib/icons/set/eye.d.ts +1 -1
- package/lib/icons/set/eyeSlash.d.ts +1 -1
- package/lib/icons/set/file.d.ts +1 -1
- package/lib/icons/set/filePdf.d.ts +1 -1
- package/lib/icons/set/menuBars.d.ts +1 -1
- package/lib/icons/set/minus.d.ts +1 -1
- package/lib/icons/set/pen.d.ts +1 -1
- package/lib/icons/set/phoneAlt.d.ts +1 -1
- package/lib/icons/set/phoneSlash.d.ts +1 -1
- package/lib/icons/set/picture.d.ts +1 -1
- package/lib/icons/set/pictures.d.ts +1 -1
- package/lib/icons/set/playCircle.d.ts +1 -1
- package/lib/icons/set/plus.d.ts +1 -1
- package/lib/icons/set/roundedAttention.d.ts +1 -1
- package/lib/icons/set/roundedCheck.d.ts +1 -1
- package/lib/icons/set/roundedInfo.d.ts +1 -1
- package/lib/icons/set/running.d.ts +1 -1
- package/lib/icons/set/search.d.ts +1 -1
- package/lib/icons/set/shareAlt.d.ts +1 -1
- package/lib/icons/set/shareSquare.d.ts +1 -1
- package/lib/icons/set/signIn.d.ts +1 -1
- package/lib/icons/set/signOut.d.ts +1 -1
- package/lib/icons/set/sort.d.ts +1 -1
- package/lib/icons/set/sortDown.d.ts +1 -1
- package/lib/icons/set/sortUp.d.ts +1 -1
- package/lib/icons/set/spinner.d.ts +1 -1
- package/lib/icons/set/thumbsDown.d.ts +1 -1
- package/lib/icons/set/thumbsUp.d.ts +1 -1
- package/lib/icons/set/times.d.ts +1 -1
- package/lib/icons/set/trash.d.ts +1 -1
- package/lib/icons/set/unlink.d.ts +1 -1
- package/lib/icons/set/upload.d.ts +1 -1
- package/lib/icons/set/user.d.ts +1 -1
- package/lib/icons/set/userAdd.d.ts +1 -1
- package/lib/icons/set/userBlock.d.ts +1 -1
- package/lib/icons/set/userCheck.d.ts +1 -1
- package/lib/icons/set/userConfig.d.ts +1 -1
- package/lib/icons/set/userDelete.d.ts +1 -1
- package/lib/icons/set/userEdit.d.ts +1 -1
- package/lib/icons/set/userInvalid.d.ts +1 -1
- package/lib/icons/set/userLocked.d.ts +1 -1
- package/lib/icons/set/users.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/DefaultLayout/DefaultLayout.d.ts +6 -6
- package/lib/layouts/DefaultLayout/DefaultLayout.interface.d.ts +8 -9
- package/lib/layouts/DefaultLayout/DefaultLayout.props.d.ts +4 -4
- package/lib/layouts/DefaultLayout/DefaultLayout.style.d.ts +6 -6
- package/lib/layouts/DefaultLayout/index.d.ts +6 -6
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/SideBarLayout.d.ts +5 -6
- package/lib/layouts/SideBarLayout/SideBarLayout.interface.d.ts +7 -7
- package/lib/layouts/SideBarLayout/SideBarLayout.props.d.ts +5 -5
- package/lib/layouts/SideBarLayout/SideBarLayout.style.d.ts +6 -5
- package/lib/layouts/SideBarLayout/index.d.ts +6 -6
- package/lib/layouts/SideBarLayout/index.esm.js +1 -1
- package/lib/layouts/index.esm.js +1 -1
- package/lib/scenario/CircleComponent/CircleComponent.d.ts +3 -3
- package/lib/scenario/CircleComponent/CircleComponent.style.d.ts +4 -4
- package/lib/scenario/CircleComponent/index.d.ts +5 -5
- package/lib/scenario/RectComponent/RectComponent.d.ts +3 -3
- package/lib/scenario/RectComponent/RectComponent.style.d.ts +3 -3
- package/lib/scenario/RectComponent/index.d.ts +5 -5
- package/lib/scenario/RectComponent/index.esm.js +1 -1
- package/lib/scenario/index.esm.js +1 -1
- package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.d.ts +12 -12
- package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.interface.d.ts +10 -10
- package/lib/skeleton/ComposedSkeleton/index.d.ts +7 -7
- package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
- package/lib/skeleton/TextPreset/TextPreset.d.ts +4 -4
- package/lib/skeleton/TextPreset/index.d.ts +4 -4
- package/lib/skeleton/TextPreset/index.esm.js +1 -1
- package/lib/skeleton/index.esm.js +1 -1
- package/lib/themes/Animation/Animation.interface.d.ts +9 -9
- package/lib/themes/Animation/Animation.props.d.ts +4 -5
- package/lib/themes/Animation/index.d.ts +4 -4
- package/lib/themes/Border/Border.interface.d.ts +26 -25
- package/lib/themes/Border/index.d.ts +4 -4
- package/lib/themes/Breakpoints/index.d.ts +3 -3
- package/lib/themes/Colors/Colors.helpers.d.ts +128 -129
- package/lib/themes/Colors/Colors.interface.d.ts +23 -23
- package/lib/themes/Colors/Colors.presets.d.ts +2 -2
- package/lib/themes/Colors/index.d.ts +3 -3
- package/lib/themes/Colors/index.esm.js +1 -1
- package/lib/themes/Component/Component.helpers.d.ts +24 -0
- package/lib/themes/Component/Component.interface.d.ts +93 -0
- package/lib/themes/Component/index.d.ts +18 -0
- package/lib/themes/Component/index.esm.js +1 -0
- package/lib/themes/Deep/index.d.ts +3 -3
- package/lib/themes/Deep/index.esm.js +1 -1
- package/lib/themes/Depth/index.d.ts +3 -3
- package/lib/themes/Dimension/index.d.ts +4 -4
- package/lib/themes/Font/index.d.ts +3 -3
- package/lib/themes/Foundation/Foundation.helpers.d.ts +12 -12
- package/lib/themes/Foundation/Foundation.interface.d.ts +25 -26
- package/lib/themes/Foundation/index.d.ts +5 -5
- package/lib/themes/GlobalStyle/index.d.ts +1 -1
- package/lib/themes/Semantic/Semantic.helpers.d.ts +14 -14
- package/lib/themes/Semantic/Semantic.interface.d.ts +36 -36
- package/lib/themes/Semantic/index.d.ts +5 -5
- package/lib/themes/Spacing/index.d.ts +3 -3
- package/lib/themes/Surface/Surface.d.ts +15 -15
- package/lib/themes/Surface/Surface.helpers.d.ts +26 -25
- package/lib/themes/Surface/Surface.interface.d.ts +9 -9
- package/lib/themes/Surface/index.d.ts +4 -4
- package/lib/themes/ThemeProvider/ThemeProvider.d.ts +4 -4
- package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +65 -41
- package/lib/themes/ThemeProvider/index.d.ts +7 -7
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.d.ts +1 -0
- package/lib/themes/index.esm.js +1 -1
- package/lib/utils/components/Breakpoints/Breakpoints.d.ts +12 -12
- package/lib/utils/components/Breakpoints/Breakpoints.interface.d.ts +8 -8
- package/lib/utils/components/Breakpoints/index.d.ts +3 -3
- package/lib/utils/components/index.d.ts +4 -4
- package/lib/utils/index.d.ts +4 -4
- package/lib/utils/logger.d.ts +4 -4
- package/lib/utils/mask.d.ts +12 -12
- package/lib/utils/object.d.ts +29 -27
- package/lib/utils/typeUtils.d.ts +18 -16
- package/lib/utils/utils.d.ts +31 -31
- package/lib/utils/window.d.ts +10 -10
- package/lib/vendors/Culori/component.d.ts +14 -14
- package/lib/vendors/Culori/engine.d.ts +40 -40
- package/lib/vendors/Culori/interface.d.ts +7 -7
- package/lib/vendors/Culori/named.d.ts +4 -4
- package/lib/vendors/DateFns/component.d.ts +16 -15
- package/lib/vendors/DateFns/interface.d.ts +6 -6
- package/lib/vendors/Deepmerge/component.d.ts +2 -2
- package/lib/vendors/Deepmerge/interface.d.ts +4 -4
- package/lib/vendors/EmotionIsPropValid/component.d.ts +3 -3
- package/lib/vendors/EmotionIsPropValid/interface.d.ts +3 -3
- package/lib/vendors/FastDeepEqual/component.d.ts +2 -2
- package/lib/vendors/FastDeepEqual/interface.d.ts +3 -3
- package/lib/vendors/FloatingUI/component.d.ts +18 -17
- package/lib/vendors/FloatingUI/interface.d.ts +10 -10
- package/lib/vendors/FramerMotion/component.d.ts +9 -9
- package/lib/vendors/FramerMotion/interface.d.ts +8 -7
- package/lib/vendors/LodashDebounce/component.d.ts +2 -2
- package/lib/vendors/LodashDebounce/interface.d.ts +2 -2
- package/lib/vendors/Nanoid/component.d.ts +5 -5
- package/lib/vendors/Nanoid/interface.d.ts +4 -4
- package/lib/vendors/ObjectHash/component.d.ts +2 -2
- package/lib/vendors/ObjectHash/interface.d.ts +2 -2
- package/lib/vendors/ReactContentLoader/component.d.ts +4 -4
- package/lib/vendors/ReactContentLoader/interface.d.ts +3 -3
- package/lib/vendors/ReactDayPicker/component.d.ts +7 -7
- package/lib/vendors/ReactDayPicker/interface.d.ts +11 -11
- package/lib/vendors/ReactHookForm/component.d.ts +14 -14
- package/lib/vendors/ReactHookForm/interface.d.ts +16 -16
- package/lib/vendors/ReactSelect/component.d.ts +6 -6
- package/lib/vendors/ReactSelect/interface.d.ts +24 -9
- package/lib/vendors/StyledComponents/component.d.ts +10 -10
- package/lib/vendors/StyledComponents/interface.d.ts +12 -12
- package/lib/vendors/StyledNormalize/component.d.ts +3 -3
- package/lib/vendors/StyledNormalize/interface.d.ts +3 -3
- package/lib/vendors/TanstackReactTable/component.d.ts +10 -10
- package/lib/vendors/TanstackReactTable/interface.d.ts +15 -15
- package/lib/vendors/TanstackReactVirtual/component.d.ts +8 -8
- package/lib/vendors/TanstackReactVirtual/interface.d.ts +6 -6
- package/lib/vendors/Zod/component.d.ts +3 -3
- package/package.json +7 -3
- package/lib/chunks/Notification.group-P24CKBGW.esm.js +0 -1
- package/lib/chunks/chunk-2JE2KM3Y.esm.js +0 -1
- package/lib/chunks/chunk-5RSKEPVX.esm.js +0 -1
- package/lib/chunks/chunk-7WWDUGCC.esm.js +0 -1
- package/lib/chunks/chunk-B64YEI67.esm.js +0 -1
- package/lib/chunks/chunk-FGI2BYTC.esm.js +0 -1
- package/lib/chunks/chunk-FJUISCKG.esm.js +0 -1
- package/lib/chunks/chunk-G4OCANJN.esm.js +0 -1
- package/lib/chunks/chunk-GQSXSPXG.esm.js +0 -34
- package/lib/chunks/chunk-JYROOJRO.esm.js +0 -1
- package/lib/chunks/chunk-KFJ6EF6N.esm.js +0 -1
- package/lib/chunks/chunk-LBSRV6OY.esm.js +0 -1
- package/lib/chunks/chunk-M53TQFQR.esm.js +0 -43
- package/lib/chunks/chunk-MGLZFOSB.esm.js +0 -1
- package/lib/chunks/chunk-NO4SD45Y.esm.js +0 -1
- package/lib/chunks/chunk-OPAH7JBD.esm.js +0 -43
- package/lib/chunks/chunk-PAITPPEW.esm.js +0 -4
- package/lib/chunks/chunk-Q6EGG64M.esm.js +0 -1
- package/lib/chunks/chunk-QZNDN3FN.esm.js +0 -1
- package/lib/chunks/chunk-RTTQGZN4.esm.js +0 -1
- package/lib/chunks/chunk-UE2MT6VF.esm.js +0 -1
- package/lib/chunks/chunk-VRM5U7D2.esm.js +0 -1
- package/lib/chunks/chunk-YHJ77TR7.esm.js +0 -1
- /package/lib/chunks/{chunk-QF2YUOVX.esm.js → chunk-KL3ATH64.esm.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Semantic layer — tokens named by intent, mirror of Aplica DS.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Exposed at `theme.semantic` as of `@apollion-dsi/core` 3.1.0.
|
|
5
5
|
*
|
|
6
|
-
* Subpath import (
|
|
6
|
+
* Subpath import (preferred):
|
|
7
7
|
* ```ts
|
|
8
8
|
* import { createSemantic, type SemanticLayer } from '@apollion-dsi/core/themes/semantic';
|
|
9
9
|
* ```
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Also re-exported by the `themes` barrel for compat with pre-subpath
|
|
12
|
+
* consumers: `import { createSemantic } from '@apollion-dsi/core/themes';`.
|
|
13
13
|
*
|
|
14
14
|
* @see ../../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
15
15
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `Spacing` module.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Any other file in the project should import from the barrel, never from
|
|
5
|
+
* internal paths like `./Spacing.interface` or `./Spacing.props`.
|
|
6
6
|
*/
|
|
7
7
|
export * from './Spacing.interface';
|
|
8
8
|
export * from './Spacing.props';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SurfaceMode } from './Surface.interface';
|
|
3
3
|
/**
|
|
4
|
-
* Props
|
|
4
|
+
* Props for `SurfaceProvider`.
|
|
5
5
|
*/
|
|
6
6
|
export interface SurfaceProviderProps {
|
|
7
7
|
/**
|
|
8
|
-
* Surface mode
|
|
8
|
+
* Surface mode applied to the subtree.
|
|
9
9
|
*
|
|
10
|
-
* - `'positive'` (default): no-op. Theme
|
|
11
|
-
* - `'negative'`:
|
|
12
|
-
* treatment" (
|
|
10
|
+
* - `'positive'` (default): no-op. Theme passes through untouched.
|
|
11
|
+
* - `'negative'`: inverts Semantic + Foundation into the "dark backdrop
|
|
12
|
+
* treatment" (see `invertForSurface` for the exact semantics).
|
|
13
13
|
*/
|
|
14
14
|
surface?: SurfaceMode;
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* NotificationsProvider).
|
|
18
|
+
* Lightweight wrapper to invert the `surface` of a subtree without
|
|
19
|
+
* re-mounting the `ApollionProvider` providers (StyleSheetManager,
|
|
20
|
+
* BreakpointsProvider, NotificationsProvider).
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
* **
|
|
24
|
-
* theme
|
|
25
|
-
*
|
|
22
|
+
* The implementation follows ADR-002 §9 (grill-with-docs §1): it uses the
|
|
23
|
+
* **theme-function** form of the styled-components ThemeProvider, which
|
|
24
|
+
* receives the outer theme from the parent tree. No dependency on "default
|
|
25
|
+
* merge semantics" (which is undocumented).
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* Why `useCallback`: guarantees a stable reference for the `themeFn` function
|
|
28
|
+
* across renders when `surface` does not change — prevents styled-components
|
|
29
|
+
* from recomputing the subtree's theme.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* ```tsx
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import type { SurfaceMode } from './Surface.interface';
|
|
2
2
|
import type { Theme } from '../ThemeProvider/ThemeProvider.interface';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Inverts a `Theme` for a specific surface mode, without mutating the input
|
|
5
|
+
* or touching the Structural layer.
|
|
6
6
|
*
|
|
7
|
-
* **
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
7
|
+
* **Purity + idempotence (ADR-002 §9 contract):**
|
|
8
|
+
* - Reads nothing external (Date, Math.random, env, DOM).
|
|
9
|
+
* - Does not mutate the input (`theme` remains intact after the call).
|
|
10
|
+
* - Same input → same output (referentially new, byte-equivalent).
|
|
11
11
|
* - `invertForSurface(invertForSurface(theme, 'negative'), 'negative')` !==
|
|
12
|
-
* `theme` (
|
|
13
|
-
* `negative`
|
|
12
|
+
* `theme` (intentionally — a second inversion does NOT return to the
|
|
13
|
+
* original; `negative` is a terminal state based on the Structural layer,
|
|
14
|
+
* not a bg↔txt swap).
|
|
14
15
|
*
|
|
15
|
-
*
|
|
16
|
-
* - **Structural** (`theme.colors.*`, `theme.spacing(...)`):
|
|
17
|
-
* - **Semantic** + **Foundation**
|
|
18
|
-
*
|
|
19
|
-
* - `feedback.{state}.bg` ← `colors.{state}.dark` (
|
|
16
|
+
* Inversion semantics (v1 — ADR-002 Slice 4):
|
|
17
|
+
* - **Structural** (`theme.colors.*`, `theme.spacing(...)`): unchanged.
|
|
18
|
+
* - **Semantic** + **Foundation** are rebuilt from the Structural layer
|
|
19
|
+
* with the "dark backdrop treatment" rule:
|
|
20
|
+
* - `feedback.{state}.bg` ← `colors.{state}.dark` (keeps hue, darkens)
|
|
20
21
|
* - `feedback.{state}.txtOn` ← `colors.baseLight`
|
|
21
|
-
* - `feedback.{state}.border` ← `colors.{state}.base` (
|
|
22
|
-
* - `interface.function.{role}.normal.bg` ← `colors.baseDark` (
|
|
23
|
-
*
|
|
22
|
+
* - `feedback.{state}.border` ← `colors.{state}.base` (border stays bright)
|
|
23
|
+
* - `interface.function.{role}.normal.bg` ← `colors.baseDark` (universal
|
|
24
|
+
* dark neutral — the function color loses saturation to become "surface dark")
|
|
24
25
|
* - `interface.function.{role}.normal.txtOn` ← `colors.baseLight`
|
|
25
26
|
* - `brand.{n}.default.surface` ← `colors.{main|opposite|complementary}.dark`
|
|
26
27
|
* - `brand.{n}.default.txtOn` ← `colors.baseLight`
|
|
27
|
-
* - **Dimension** (spacing):
|
|
28
|
+
* - **Dimension** (spacing): unchanged.
|
|
28
29
|
*
|
|
29
|
-
*
|
|
30
|
-
* (Apollion v3.x
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* Documented limitation (v1): the inversion is deterministic and ignores
|
|
31
|
+
* `themeMode` (Apollion v3.x has no algorithmic mode resolution). In ADR-003
|
|
32
|
+
* (v4 epic with Mode + Dimension axes) the semantics become "negative within
|
|
33
|
+
* the current mode" — see the Aplica DS docs.
|
|
33
34
|
*
|
|
34
|
-
* @param theme -
|
|
35
|
+
* @param theme - Resolved base Theme (from `createTheme()` or an outer
|
|
35
36
|
* ThemeProvider).
|
|
36
|
-
* @param surface - `'positive'` (no-op,
|
|
37
|
-
* @returns
|
|
37
|
+
* @param surface - `'positive'` (no-op, returns `theme`) or `'negative'`.
|
|
38
|
+
* @returns New Theme. For `positive` it is the original reference (identity).
|
|
38
39
|
*
|
|
39
40
|
* @example
|
|
40
41
|
* ```tsx
|
|
@@ -43,7 +44,7 @@ import type { Theme } from '../ThemeProvider/ThemeProvider.interface';
|
|
|
43
44
|
* const negativeTheme = invertForSurface(theme, 'negative');
|
|
44
45
|
* negativeTheme.foundation.bg.primary; // → theme.colors.baseDark
|
|
45
46
|
* negativeTheme.foundation.text.onPrimary; // → theme.colors.baseLight
|
|
46
|
-
* theme.foundation.bg.primary; // unchanged (input
|
|
47
|
+
* theme.foundation.bg.primary; // unchanged (input not mutated)
|
|
47
48
|
* ```
|
|
48
49
|
*
|
|
49
50
|
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md §3, §9
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Theme surface modes. Concept imported from Aplica DS (Poe).
|
|
3
3
|
*
|
|
4
|
-
* - `positive`:
|
|
5
|
-
* - `negative`: surface
|
|
6
|
-
* highlighted section, badge
|
|
7
|
-
*
|
|
4
|
+
* - `positive`: the page's "normal" surface — main background. Default.
|
|
5
|
+
* - `negative`: inverted/highlighted surface (dark card on a light page,
|
|
6
|
+
* highlighted section, inverted badge). Text is always light over a
|
|
7
|
+
* dark/saturated bg.
|
|
8
8
|
*
|
|
9
|
-
* Surface
|
|
10
|
-
* = "dark surface
|
|
11
|
-
* surface
|
|
9
|
+
* Surface is **orthogonal to themeMode** (light/dark): `negative` in light
|
|
10
|
+
* mode = "dark surface on a light page"; `negative` in dark mode =
|
|
11
|
+
* "lighter surface on a dark page". See ADR-002 §9 + grill-with-docs §5.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* Orthogonality verified against Aplica DS:
|
|
14
14
|
* https://docs.aplica.me/en-US/design-tokens-fundamentals/token-architecture
|
|
15
15
|
* "N_brands × 2 modes × 2 surfaces × 3 dimensions = N × 12 variants"
|
|
16
16
|
*
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Surface layer — contextual inversion wrapper for Semantic + Foundation.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Added in `@apollion-dsi/core` 3.3.0 (ADR-002 Slice 4).
|
|
5
5
|
*
|
|
6
|
-
* Subpath import (
|
|
6
|
+
* Subpath import (preferred):
|
|
7
7
|
* ```ts
|
|
8
8
|
* import { SurfaceProvider, invertForSurface, type SurfaceMode } from '@apollion-dsi/core/themes/surface';
|
|
9
9
|
* ```
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* Also re-exported by the `themes` barrel.
|
|
12
12
|
*
|
|
13
13
|
* @see ../../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
14
14
|
* @see ./README.md
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ApollionProviderInterface, ApollionThemeContext } from './ThemeProvider.interface';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Reads the active theme and the current mode (`light`/`dark`), and toggles
|
|
5
|
+
* the mode from within any component under the `ApollionProvider`.
|
|
6
6
|
*
|
|
7
|
-
* @throws
|
|
7
|
+
* @throws when used outside an `ApollionProvider`.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```tsx
|
|
11
11
|
* const { themeMode, toggleTheme } = useApollionTheme();
|
|
12
|
-
* <Button text={`
|
|
12
|
+
* <Button text={`Mode: ${themeMode}`} onClick={() => toggleTheme()} />
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
export declare function useApollionTheme(): ApollionThemeContext;
|
|
@@ -3,6 +3,7 @@ import { AnimationThemeInterface } from '../Animation';
|
|
|
3
3
|
import { BorderInput } from '../Border';
|
|
4
4
|
import { BreakpointInput, BreakpointsInterface } from '../Breakpoints';
|
|
5
5
|
import { ColorsInput, ColorsThemeInterface } from '../Colors';
|
|
6
|
+
import { ComponentTokensInput, ComponentTokensLayer } from '../Component';
|
|
6
7
|
import { DeepThemeInterface } from '../Deep';
|
|
7
8
|
import { DepthThemeInterface } from '../Depth';
|
|
8
9
|
import type { Dimension } from '../Dimension';
|
|
@@ -26,6 +27,18 @@ export interface ThemeInputsInterface {
|
|
|
26
27
|
* @see ../Dimension/Dimension.props.ts (DIMENSION_MULTIPLIERS calibration)
|
|
27
28
|
*/
|
|
28
29
|
dimension?: Dimension;
|
|
30
|
+
/**
|
|
31
|
+
* Component token tier overrides (ADR-020). Deep-merged over the
|
|
32
|
+
* defaults — override a single size of a single component without
|
|
33
|
+
* restating the rest.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* createTheme({ component: { button: { size: { medium: { px: 'xl' } } } } });
|
|
38
|
+
* ```
|
|
39
|
+
* @see ../Component/Component.interface.ts
|
|
40
|
+
*/
|
|
41
|
+
component?: ComponentTokensInput;
|
|
29
42
|
}
|
|
30
43
|
export type Theme = {
|
|
31
44
|
border: BorderInput;
|
|
@@ -37,21 +50,21 @@ export type Theme = {
|
|
|
37
50
|
deep: DeepThemeInterface;
|
|
38
51
|
animation: AnimationThemeInterface;
|
|
39
52
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
53
|
+
* Semantic layer — tokens named by intent, derived exactly once in
|
|
54
|
+
* `createTheme()` from the structural tokens. Added in
|
|
42
55
|
* `@apollion-dsi/core` 3.1.0 (ADR-002 Slice 2).
|
|
43
56
|
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* Foundation (
|
|
57
|
+
* Core components should prefer Semantic when accessing colors with a clear
|
|
58
|
+
* intent (feedback, interface function, brand). Product code should consume
|
|
59
|
+
* Foundation (the layer above).
|
|
47
60
|
*
|
|
48
61
|
* @see ../Semantic/Semantic.interface.ts
|
|
49
62
|
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
50
63
|
*/
|
|
51
64
|
semantic: SemanticLayer;
|
|
52
65
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
66
|
+
* Foundation layer — short, ergonomic aliases over Semantic. Default layer
|
|
67
|
+
* for product code (DEX/Jovian/Fanaticofc). Added in
|
|
55
68
|
* `@apollion-dsi/core` 3.2.0 (ADR-002 Slice 3).
|
|
56
69
|
*
|
|
57
70
|
* @see ../Foundation/Foundation.interface.ts
|
|
@@ -59,24 +72,34 @@ export type Theme = {
|
|
|
59
72
|
* @see ../../docs/adr/ADR-002-layered-theme-aliases-and-surface.md
|
|
60
73
|
*/
|
|
61
74
|
foundation: FoundationLayer;
|
|
75
|
+
/**
|
|
76
|
+
* Component token tier — each component's themeable decisions, named and
|
|
77
|
+
* enumerable, resolved once in `createTheme()` (ADR-020). Replaces the
|
|
78
|
+
* five ad-hoc per-component token records that previously lived in
|
|
79
|
+
* `*.style.ts` / `*.helpers.tsx` files. Added in `@apollion-dsi/core` 5.4.0.
|
|
80
|
+
*
|
|
81
|
+
* @see ../Component/Component.interface.ts
|
|
82
|
+
* @see ../../docs/adr/ADR-020-component-token-tier.md
|
|
83
|
+
*/
|
|
84
|
+
component: ComponentTokensLayer;
|
|
62
85
|
};
|
|
63
86
|
export type ThemeMode = 'light' | 'dark';
|
|
64
87
|
export interface ApollionProviderInterface {
|
|
65
88
|
/**
|
|
66
|
-
*
|
|
67
|
-
* `lightTheme`/`darkTheme`,
|
|
89
|
+
* Single theme (light mode). Legacy and most common path: when there is no
|
|
90
|
+
* `lightTheme`/`darkTheme`, this theme is used for any `themeMode`.
|
|
68
91
|
*
|
|
69
92
|
* @default createTheme()
|
|
70
93
|
*/
|
|
71
94
|
theme?: Theme;
|
|
72
95
|
/**
|
|
73
|
-
* Theme
|
|
74
|
-
*
|
|
96
|
+
* Theme applied when `themeMode === 'light'`. Pair it with `darkTheme` to
|
|
97
|
+
* enable mode switching (manual toggle or `useSystemPreference`).
|
|
75
98
|
*/
|
|
76
99
|
lightTheme?: Theme;
|
|
77
100
|
/**
|
|
78
|
-
* Theme
|
|
79
|
-
*
|
|
101
|
+
* Theme applied when `themeMode === 'dark'`. Usually a `createTheme` with
|
|
102
|
+
* the `baseDark`/`baseLight` (and `deepDark`/`deepLight`) contrast inverted.
|
|
80
103
|
*
|
|
81
104
|
* @example
|
|
82
105
|
* ```tsx
|
|
@@ -87,38 +110,39 @@ export interface ApollionProviderInterface {
|
|
|
87
110
|
*/
|
|
88
111
|
darkTheme?: Theme;
|
|
89
112
|
/**
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
113
|
+
* When `true` (and the mode is uncontrolled), observes the operating
|
|
114
|
+
* system's `prefers-color-scheme` to pick the initial `themeMode` and react
|
|
115
|
+
* to runtime changes. SSR-safe (no-op when there is no `window`).
|
|
93
116
|
*
|
|
94
117
|
* @default false
|
|
95
118
|
*/
|
|
96
119
|
useSystemPreference?: boolean;
|
|
97
120
|
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
121
|
+
* Controlled mode. When set, the provider renders this mode and ignores the
|
|
122
|
+
* internal state and `useSystemPreference` — the source of truth becomes the
|
|
123
|
+
* parent (e.g. a navbar toggle / `next-themes`). `toggleTheme` then only
|
|
124
|
+
* fires `onThemeModeChange`, without mutating local state.
|
|
102
125
|
*/
|
|
103
126
|
themeMode?: ThemeMode;
|
|
104
127
|
/**
|
|
105
|
-
* Callback
|
|
106
|
-
*
|
|
128
|
+
* Callback fired by `toggleTheme`. Essential in controlled mode (for the
|
|
129
|
+
* parent to update its source of truth) and optional in uncontrolled mode.
|
|
107
130
|
*/
|
|
108
131
|
onThemeModeChange?: (mode: ThemeMode) => void;
|
|
109
132
|
/**
|
|
110
|
-
* Surface mode
|
|
133
|
+
* Surface mode applied to the whole theme from this provider down.
|
|
111
134
|
*
|
|
112
|
-
* - `'positive'` (default): theme
|
|
113
|
-
* - `'negative'`:
|
|
114
|
-
* styled-components ThemeProvider. Use
|
|
115
|
-
*
|
|
135
|
+
* - `'positive'` (default): theme passes through untouched. Legacy behavior.
|
|
136
|
+
* - `'negative'`: applies `invertForSurface` to the theme before injecting
|
|
137
|
+
* it into the styled-components ThemeProvider. Use when the
|
|
138
|
+
* ApollionProvider is the outermost level AND you want the whole app on an
|
|
139
|
+
* inverted surface.
|
|
116
140
|
*
|
|
117
|
-
*
|
|
118
|
-
* page"), use `<SurfaceProvider surface="negative">`
|
|
119
|
-
*
|
|
141
|
+
* To invert a SUBTREE (the far more common case — "dark card on light
|
|
142
|
+
* page"), use `<SurfaceProvider surface="negative">` instead of remounting
|
|
143
|
+
* the entire ApollionProvider.
|
|
120
144
|
*
|
|
121
|
-
*
|
|
145
|
+
* Added in `@apollion-dsi/core` 3.3.0 (ADR-002 Slice 4).
|
|
122
146
|
*
|
|
123
147
|
* @default 'positive'
|
|
124
148
|
* @see ../Surface/Surface.tsx (SurfaceProvider — nested usage)
|
|
@@ -150,18 +174,18 @@ export type WithTheme<P> = P & {
|
|
|
150
174
|
theme: Theme;
|
|
151
175
|
};
|
|
152
176
|
/**
|
|
153
|
-
*
|
|
177
|
+
* Signature of a factory interpolation inside a styled-component.
|
|
154
178
|
*
|
|
155
|
-
*
|
|
156
|
-
* `(contextProps) => CSSObject`,
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* (`Link`, `Modal`, `Button`, `ProgressBar`, `Meter`).
|
|
179
|
+
* The factories (`ColorFactory`, `FontFactory`, …) return
|
|
180
|
+
* `(contextProps) => CSSObject`, and the styled-component calls that function
|
|
181
|
+
* with ITS OWN props (`LinkInterface & { theme }`, for example). Without a
|
|
182
|
+
* type that accommodates this, the parameter is contravariant and TypeScript
|
|
183
|
+
* refuses — exactly the friction that spread 12 `as any` across the
|
|
184
|
+
* `*.style.ts` files (`Link`, `Modal`, `Button`, `ProgressBar`, `Meter`).
|
|
161
185
|
*
|
|
162
|
-
*
|
|
163
|
-
* styled-component;
|
|
164
|
-
*
|
|
186
|
+
* The `C` generic lets the interpolation accept the props of ANY
|
|
187
|
+
* styled-component; the factory reads only what it knows, coming from
|
|
188
|
+
* `customProps` or from context.
|
|
165
189
|
*/
|
|
166
190
|
export type FactoryInterpolation<P> = <C extends object>(contextProps: C & Partial<P> & {
|
|
167
191
|
theme: Theme;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `ThemeProvider` module.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* breakpoints
|
|
6
|
-
* `Theme`
|
|
7
|
-
*
|
|
4
|
+
* Re-exports `ApollionProvider` (root provider that injects `theme`,
|
|
5
|
+
* breakpoints, and notifications into the app), the `createTheme` helper
|
|
6
|
+
* (builds a `Theme` from partial inputs), and the type interfaces consumed
|
|
7
|
+
* by other core modules (`Theme`, `WithTheme`, `ThemeInputsInterface`,
|
|
8
8
|
* `ApollionProviderInterface`).
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Any other file in the project should import from the barrel, never from
|
|
11
|
+
* internal paths like `./ThemeProvider.interface` or `./ThemeProvider.props`.
|
|
12
12
|
*/
|
|
13
13
|
export { ApollionProvider, useApollionTheme } from './ThemeProvider';
|
|
14
14
|
export { createTheme } from './ThemeProvider.props';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,d as b,e as c}from"../../chunks/chunk-
|
|
1
|
+
import{a,d as b,e as c}from"../../chunks/chunk-QXQC37K5.esm.js";import"../../chunks/chunk-RU6QRCR7.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-2R6XFFSQ.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-BRXIFPWB.esm.js";import"../../chunks/chunk-3EOSES4S.esm.js";import"../../chunks/chunk-NQBO2D7L.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-7EGX7BMB.esm.js";import"../../chunks/chunk-OWMRURZT.esm.js";import"../../chunks/chunk-6X6WKZ3Y.esm.js";import"../../chunks/chunk-WGTBX72G.esm.js";import"../../chunks/chunk-IWMEDT6U.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-3RNWYCCU.esm.js";import"../../chunks/chunk-E3MSXQXV.esm.js";import"../../chunks/chunk-TQJTHPA3.esm.js";import"../../chunks/chunk-BV6GHAF7.esm.js";import"../../chunks/chunk-G5Z7USXC.esm.js";import"../../chunks/chunk-APD22JEO.esm.js";import"../../chunks/chunk-GZONWSRB.esm.js";export{c as ApollionProvider,a as createTheme,b as useApollionTheme};
|
package/lib/themes/index.d.ts
CHANGED
package/lib/themes/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/chunk-
|
|
1
|
+
import"../chunks/chunk-KL3ATH64.esm.js";import{a as R}from"../chunks/chunk-T6ZB656A.esm.js";import{a as W}from"../chunks/chunk-7AFAO7ZS.esm.js";import{a as X,d as Y,e as Z}from"../chunks/chunk-QXQC37K5.esm.js";import{a as O,b as P}from"../chunks/chunk-RU6QRCR7.esm.js";import"../chunks/chunk-CWRWYU7D.esm.js";import{a as S}from"../chunks/chunk-2R6XFFSQ.esm.js";import{a as T,b as U}from"../chunks/chunk-TG5BCBO4.esm.js";import{a as L,b as M,c as N}from"../chunks/chunk-JOKVE3IX.esm.js";import{a as V}from"../chunks/chunk-BRXIFPWB.esm.js";import{a as Q}from"../chunks/chunk-3EOSES4S.esm.js";import{a as C}from"../chunks/chunk-NQBO2D7L.esm.js";import{a as D}from"../chunks/chunk-3DUB5C4Z.esm.js";import{a as E,b as F,c as G}from"../chunks/chunk-KT6QQ3UJ.esm.js";import{b as H}from"../chunks/chunk-7EGX7BMB.esm.js";import{a as I}from"../chunks/chunk-OWMRURZT.esm.js";import{a as J,b as K}from"../chunks/chunk-6X6WKZ3Y.esm.js";import"../chunks/chunk-WGTBX72G.esm.js";import"../chunks/chunk-IWMEDT6U.esm.js";import"../chunks/chunk-VMIXRIQ2.esm.js";import{a as v,b as w,c as x,d as y,e as z,f as A,g as B}from"../chunks/chunk-3RNWYCCU.esm.js";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"../chunks/chunk-E3MSXQXV.esm.js";import"../chunks/chunk-TQJTHPA3.esm.js";import"../chunks/chunk-BV6GHAF7.esm.js";import"../chunks/chunk-G5Z7USXC.esm.js";import"../chunks/chunk-APD22JEO.esm.js";import"../chunks/chunk-GZONWSRB.esm.js";export{Z as ApollionProvider,M as DEFAULT_DIMENSION,L as DIMENSION_MULTIPLIERS,j as DISABLED_NEUTRAL_INDICES,R as GlobalStyle,a as HextoRgb,c as MIN_CONTRAST_AA,n as MIN_STATE_CONTRAST,h as NEUTRAL_TEXT_INDICES,z as OKABE_ITO,g as READABLE_TEXT_PALETTES,o as STATE_DELTA_L_JND,k as STRUCTURAL_NEUTRAL_INDICES,W as SurfaceProvider,B as accessibilityPalettes,C as animation,E as breakpointsValues,A as colorblindPalette,G as createBreakpoints,w as createColors,H as createComponentTokens,I as createDeepTheme,K as createDeth,P as createFont,Q as createFoundation,i as createReadableTextLayer,S as createSemantic,U as createSpacing,X as createTheme,D as defaultInputBorder,F as defaultInputBreakpoints,v as defaultInputColors,O as defaultInputFont,T as defaultInputSpacing,e as getColor,f as getContrastColor,N as getMultiplierForDimension,b as getOppositeColor,x as grayscalePalette,y as highContrastPalette,V as invertForSurface,J as levelValues,t as mountActionColors,s as mountBaseColors,q as mountGreyscaleColors,u as mountMainColors,r as mountNeutralColors,p as mountSingleColor,d as readableColor,l as resolveDisabledNeutral,m as resolveStructuralNeutrals,Y as useApollionTheme};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BreakpointsContextType } from './Breakpoints.interface';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* React context exposing the breakpoint flags to the rest of the app.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Consumers use `useContext(BreakpointsContext)` (or a wrapper hook) to
|
|
7
|
+
* react to size/orientation changes without listening to the events
|
|
8
|
+
* manually.
|
|
9
9
|
*/
|
|
10
10
|
export declare const BreakpointsContext: React.Context<BreakpointsContextType>;
|
|
11
11
|
/**
|
|
12
|
-
* Provider
|
|
13
|
-
*
|
|
12
|
+
* Provider that registers `matchMedia` for each theme breakpoint and
|
|
13
|
+
* propagates the state through the `BreakpointsContext`.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
* -
|
|
17
|
-
*
|
|
18
|
-
* -
|
|
19
|
-
*
|
|
20
|
-
* -
|
|
15
|
+
* Runtime care:
|
|
16
|
+
* - In SSR / environments without `matchMedia` the effect returns early and
|
|
17
|
+
* keeps the initial state (`false` for everything).
|
|
18
|
+
* - Uses `addEventListener('change', ...)` with an `addListener` fallback
|
|
19
|
+
* for old Safari compatibility.
|
|
20
|
+
* - Cleans up the listeners on unmount.
|
|
21
21
|
*/
|
|
22
22
|
export declare const BreakpointsProvider: React.FC<{
|
|
23
23
|
children?: React.ReactNode;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Shape of the context exposed by `BreakpointsProvider`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Each flag represents an active `matchMedia` match at the current moment.
|
|
5
|
+
* The ranges follow the `theme.breakpoints.values` tokens:
|
|
6
6
|
* - `isMobile`: viewport < `md`.
|
|
7
|
-
* - `isTablet`:
|
|
8
|
-
* - `isLaptop`:
|
|
9
|
-
* - `isPortrait`:
|
|
7
|
+
* - `isTablet`: between `md` and `lg`.
|
|
8
|
+
* - `isLaptop`: between `lg` and `xl`.
|
|
9
|
+
* - `isPortrait`: portrait orientation (size-independent).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* In SSR (or browsers without `matchMedia`) all flags stay `false` until the
|
|
12
|
+
* effect runs on the client.
|
|
13
13
|
*/
|
|
14
14
|
export type BreakpointsContextType = {
|
|
15
15
|
isMobile: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel of the `Breakpoints` component.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Re-exports the context/provider (`BreakpointsContext`, `BreakpointsProvider`)
|
|
5
|
+
* and the exposed state type (`BreakpointsContextType`).
|
|
6
6
|
*/
|
|
7
7
|
export * from './Breakpoints.interface';
|
|
8
8
|
export * from './Breakpoints';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Barrel
|
|
2
|
+
* Barrel of the utility components coupled to `utils`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Currently only re-exports the `BreakpointsProvider`/context — we keep
|
|
5
|
+
* this barrel so that new componentizable utilities can land here without
|
|
6
|
+
* touching the consumer.
|
|
7
7
|
*/
|
|
8
8
|
export * from './Breakpoints';
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel of the generic utilities of `@apollion/core`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* `logger`)
|
|
6
|
-
*
|
|
4
|
+
* Groups small, independent functions (`object`, `utils`, `mask`,
|
|
5
|
+
* `logger`) used throughout the library. External imports must come
|
|
6
|
+
* through this barrel — never through internal paths like `./object`.
|
|
7
7
|
*/
|
|
8
8
|
export * from './object';
|
|
9
9
|
export * from './utils';
|
package/lib/utils/logger.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Apollion's default logger instance.
|
|
3
3
|
*
|
|
4
|
-
* Use
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Use it instead of direct `console.*` calls in any runtime code — that way
|
|
5
|
+
* internal messages (deprecation warnings, etc.) disappear from the console
|
|
6
|
+
* in production builds.
|
|
7
7
|
*/
|
|
8
8
|
export declare const LOGGER: {
|
|
9
9
|
log: (message: string, ...args: any) => void;
|