@apollion-dsi/core 5.3.0 → 5.5.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 +90 -66
- package/lib/chunks/Notification.group-ICBTCHGB.esm.js +1 -0
- package/lib/chunks/chunk-2CW4G3UR.esm.js +1 -0
- package/lib/chunks/chunk-2WED4EVR.esm.js +43 -0
- package/lib/chunks/chunk-34QOWBI6.esm.js +1 -0
- package/lib/chunks/chunk-3RNWYCCU.esm.js +1 -0
- package/lib/chunks/{chunk-OXFE7XFH.esm.js → chunk-452VAAGY.esm.js} +1 -1
- package/lib/chunks/{chunk-75YRUKSI.esm.js → chunk-4BMWIGG4.esm.js} +1 -1
- package/lib/chunks/{chunk-PLYS2FYI.esm.js → chunk-4V7LOS5Z.esm.js} +1 -1
- package/lib/chunks/{chunk-RC453BIC.esm.js → chunk-4VEUQE23.esm.js} +1 -1
- package/lib/chunks/{chunk-I3LRFLFK.esm.js → chunk-5MWVBWXW.esm.js} +1 -1
- package/lib/chunks/{chunk-LC6CQDHG.esm.js → chunk-5NE62M4R.esm.js} +1 -1
- 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-IGHPN2OO.esm.js → chunk-73MPQ5OY.esm.js} +1 -1
- package/lib/chunks/chunk-7EGX7BMB.esm.js +1 -0
- package/lib/chunks/{chunk-NAPV2J5W.esm.js → chunk-AYZYOY57.esm.js} +1 -1
- package/lib/chunks/{chunk-YJ4ZRQMI.esm.js → chunk-BC24WDTC.esm.js} +1 -1
- 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-QTWYG4PZ.esm.js → chunk-CLDPV7NK.esm.js} +1 -1
- package/lib/chunks/chunk-CQK4PCNH.esm.js +1 -0
- package/lib/chunks/chunk-CZAUFZ45.esm.js +1 -0
- package/lib/chunks/chunk-CZJF4EVQ.esm.js +1 -0
- package/lib/chunks/{chunk-FYIBJA5Y.esm.js → chunk-D2T4FF27.esm.js} +1 -1
- package/lib/chunks/chunk-DLVRDZRA.esm.js +35 -0
- package/lib/chunks/{chunk-LAO57LJC.esm.js → chunk-EJ3VKFOX.esm.js} +1 -1
- package/lib/chunks/{chunk-5VB6YPWU.esm.js → chunk-FPUV6SIF.esm.js} +4 -4
- package/lib/chunks/chunk-G4IUG32B.esm.js +1 -0
- package/lib/chunks/{chunk-KAPHZYMX.esm.js → chunk-HMITYQV5.esm.js} +1 -1
- package/lib/chunks/{chunk-UB6WSKGK.esm.js → chunk-HRMJR6TD.esm.js} +1 -1
- package/lib/chunks/{chunk-MFMJXXV6.esm.js → chunk-I46TFDIX.esm.js} +1 -1
- package/lib/chunks/{chunk-KMQUGDL3.esm.js → chunk-IE4YNQFD.esm.js} +1 -1
- package/lib/chunks/{chunk-WXIAPOTW.esm.js → chunk-K2BKOGDX.esm.js} +1 -1
- package/lib/chunks/chunk-KASRN4X5.esm.js +1 -0
- package/lib/chunks/chunk-KHEBUAB4.esm.js +1 -0
- package/lib/chunks/{chunk-6C3PW2PK.esm.js → chunk-KYIPVR2T.esm.js} +1 -1
- package/lib/chunks/chunk-LATE6DIA.esm.js +1 -0
- package/lib/chunks/{chunk-52WIL6WF.esm.js → chunk-LTTG3NIJ.esm.js} +1 -1
- package/lib/chunks/{chunk-JSCUCQSD.esm.js → chunk-M32CTX5Z.esm.js} +1 -1
- package/lib/chunks/{chunk-7UYOO2PQ.esm.js → chunk-M33BYGAO.esm.js} +1 -1
- package/lib/chunks/{chunk-YX33Y5T6.esm.js → chunk-MJUAYHOW.esm.js} +1 -1
- package/lib/chunks/{chunk-BIBJ6JAY.esm.js → chunk-MLIU6MRT.esm.js} +1 -1
- package/lib/chunks/{chunk-SPWQRX4O.esm.js → chunk-MS7WJXDX.esm.js} +1 -1
- package/lib/chunks/chunk-NYDXZB2D.esm.js +1 -0
- package/lib/chunks/chunk-OHOMOBIV.esm.js +43 -0
- package/lib/chunks/chunk-OUHMU5PP.esm.js +1 -0
- package/lib/chunks/chunk-P5PWDVWO.esm.js +1 -0
- package/lib/chunks/chunk-PXCCSJNT.esm.js +1 -0
- package/lib/chunks/chunk-ROSLCQXL.esm.js +1 -0
- package/lib/chunks/{chunk-IUNHMZ3V.esm.js → chunk-RUKCBNDS.esm.js} +1 -1
- package/lib/chunks/chunk-TD4RVB2L.esm.js +4 -0
- package/lib/chunks/{chunk-ZP75XPKF.esm.js → chunk-TISQZ6PQ.esm.js} +1 -1
- package/lib/chunks/{chunk-7ORNMDF3.esm.js → chunk-UHMYTFMU.esm.js} +1 -1
- package/lib/chunks/chunk-VAJGIZNP.esm.js +1 -0
- package/lib/chunks/{chunk-WKQ3JIEG.esm.js → chunk-VHXSTTRG.esm.js} +1 -1
- package/lib/chunks/{chunk-46YVAYDW.esm.js → chunk-WNCECFZT.esm.js} +1 -1
- package/lib/chunks/chunk-WU5LSQM6.esm.js +1 -0
- package/lib/chunks/{chunk-MJX6TZUR.esm.js → chunk-XGE6OOEJ.esm.js} +1 -1
- package/lib/chunks/{chunk-RE3I3OYH.esm.js → chunk-YKIFYIC5.esm.js} +1 -1
- package/lib/chunks/chunk-YRBM4WYM.esm.js +1 -0
- package/lib/chunks/chunk-ZZFLBPSO.esm.js +39 -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 +24 -18
- package/lib/dataDisplay/DataTable/DataTable.helpers.d.ts +66 -59
- package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +181 -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 +40 -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 +8 -8
- package/lib/dataDisplay/Table/TablePagination/TablePagination.interface.d.ts +17 -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-AGTNBWPD.esm.js +0 -39
- package/lib/chunks/chunk-B64YEI67.esm.js +0 -1
- package/lib/chunks/chunk-CWLQNJ2D.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
package/lib/utils/mask.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Map of position → literal character of a mask.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* (`.`, `-`, `/`, etc.)
|
|
4
|
+
* The keys are indices of the final output string where the literal
|
|
5
|
+
* character (`.`, `-`, `/`, etc.) must be inserted before the next digit.
|
|
6
6
|
*/
|
|
7
7
|
type MaskChars = {
|
|
8
8
|
[index: number]: string;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Creates a function that applies a mask to a digit string.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* The returned function filters digits from the input, walks them in order
|
|
14
|
+
* applying the literals stored in `maskChars` and truncates at `maxLength`.
|
|
15
|
+
* It is the cheapest way to mask (no regex), used by Apollion's Input
|
|
16
|
+
* masks.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
@@ -23,11 +23,11 @@ type MaskChars = {
|
|
|
23
23
|
*/
|
|
24
24
|
export declare const maskContructor: (maskChars: MaskChars, maxLength: number) => (numberToBeFormated: string) => string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Compiles a template string into a ready-to-use mask function.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
28
|
+
* Convention: `0` is a digit placeholder; any other character is a literal.
|
|
29
|
+
* The result is equivalent to `maskContructor` but skips assembling the map
|
|
30
|
+
* manually.
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* ```ts
|
package/lib/utils/object.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Union of an object's value types.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Equivalent to the `T[keyof T]` operator — kept as an alias for readability
|
|
5
|
+
* in the types of helpers that iterate over objects.
|
|
6
6
|
*/
|
|
7
7
|
export type ValueOf<T> = T[keyof T];
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Applies a function to each key of the object, preserving the keys in the
|
|
10
|
+
* result.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* Analogous to Ramda's `R.mapObjIndexed` — useful for transforming
|
|
13
|
+
* dictionary values (e.g. color tokens) without rewriting the reducer every
|
|
14
|
+
* time.
|
|
14
15
|
*
|
|
15
16
|
* @example
|
|
16
17
|
* ```ts
|
|
@@ -22,11 +23,11 @@ export declare function mapObjIndexed<T, V>(fn: (val: ValueOf<T>, key?: string,
|
|
|
22
23
|
[key: string]: V;
|
|
23
24
|
};
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
* Accesses a nested value by path (dot-separated string or array of keys).
|
|
26
27
|
*
|
|
27
|
-
*
|
|
28
|
-
* `result[optionalKey]`
|
|
29
|
-
*
|
|
28
|
+
* If the final result is an object and `optionalKey` is provided, it returns
|
|
29
|
+
* `result[optionalKey]` instead of the object itself — sugar for accessing
|
|
30
|
+
* values like `theme.colors.primary.main` in a single call.
|
|
30
31
|
*
|
|
31
32
|
* @example
|
|
32
33
|
* ```ts
|
|
@@ -36,26 +37,27 @@ export declare function mapObjIndexed<T, V>(fn: (val: ValueOf<T>, key?: string,
|
|
|
36
37
|
*/
|
|
37
38
|
export declare function getValue(key: string | string[], obj: any, optionalKey?: string): any;
|
|
38
39
|
/**
|
|
39
|
-
*
|
|
40
|
+
* Memoizes a function by **all** of its arguments.
|
|
40
41
|
*
|
|
41
|
-
*
|
|
42
|
+
* Previously the key was only `args[0]`, and that was not a theoretical
|
|
43
|
+
* limitation:
|
|
42
44
|
*
|
|
43
|
-
* - `getContrastColor(color, colorbase?)` —
|
|
44
|
-
* `colorbase`
|
|
45
|
-
*
|
|
46
|
-
* - `inputSizeProps(size, theme)` —
|
|
47
|
-
* - `readableColor(color, background, minRatio)`
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* `parse`+`formatHex`+`wcagContrast`
|
|
45
|
+
* - `getContrastColor(color, colorbase?)` — calls with the same `color` and
|
|
46
|
+
* different `colorbase` returned the first call's result. Silent
|
|
47
|
+
* contamination in the contrast system.
|
|
48
|
+
* - `inputSizeProps(size, theme)` — switching themes invalidated nothing.
|
|
49
|
+
* - `readableColor(color, background, minRatio)` was left **out** of the
|
|
50
|
+
* cache on purpose (see the comment in `Colors.helpers.ts`), precisely
|
|
51
|
+
* because the result depends on the `background`. The memoize was what was
|
|
52
|
+
* wrong, not the decision to cache — and it is the hot path: up to 25
|
|
53
|
+
* iterations of `parse`+`formatHex`+`wcagContrast` per rendered element.
|
|
52
54
|
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
+
* Primitives enter the key by value (with the type attached, so `1` does not
|
|
56
|
+
* collide with `'1'`); objects enter by identity via `WeakMap`.
|
|
55
57
|
*
|
|
56
|
-
*
|
|
57
|
-
* `cache[key] === undefined`,
|
|
58
|
-
*
|
|
58
|
+
* Uses `Map`, not an object literal: the previous version tested
|
|
59
|
+
* `cache[key] === undefined`, so a function returning `undefined` was never
|
|
60
|
+
* cached — and keys like `constructor` collided with the prototype.
|
|
59
61
|
*
|
|
60
62
|
* @example
|
|
61
63
|
* ```ts
|
package/lib/utils/typeUtils.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Internal helper: generates an object where every key of `T` that is NOT
|
|
3
|
+
* in `U` is optional and `never`.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* `Without`
|
|
5
|
+
* It's the piece that makes `XOR` work — combining two instances of
|
|
6
|
+
* `Without` makes it possible to model "either one, or the other, never both".
|
|
7
7
|
*/
|
|
8
8
|
type Without<T, U> = {
|
|
9
9
|
[P in Exclude<keyof T, keyof U>]?: never;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* props
|
|
12
|
+
* "Exclusive or" type: requires the consumer to provide the props of `T`
|
|
13
|
+
* OR the props of `U`, never a mix of both.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
* "controlled" via `value`+`onChange`
|
|
15
|
+
* Useful for components that accept two incompatible APIs (e.g., a
|
|
16
|
+
* "controlled" field via `value`+`onChange` or "uncontrolled" via
|
|
17
|
+
* `defaultValue`).
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
* ```ts
|
|
@@ -23,16 +24,16 @@ type Without<T, U> = {
|
|
|
23
24
|
*
|
|
24
25
|
* const a: Props = { value: 'x', onChange: () => {} }; // ok
|
|
25
26
|
* const b: Props = { defaultValue: 'x' }; // ok
|
|
26
|
-
* const c: Props = { value: 'x', defaultValue: 'x' }; //
|
|
27
|
+
* const c: Props = { value: 'x', defaultValue: 'x' }; // error
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
30
|
export type XOR<T, U> = T | U extends any ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
32
|
+
* Internal helper: filters only the literal ("known") keys of a type,
|
|
33
|
+
* removing indexed keys (`[k: string]: ...` or `[k: number]: ...`).
|
|
33
34
|
*
|
|
34
|
-
*
|
|
35
|
-
* `Pick<T, keyof T>`
|
|
35
|
+
* Necessary because `keyof T` in TS includes index signatures, which
|
|
36
|
+
* pollutes `Pick<T, keyof T>` when you only want the named properties.
|
|
36
37
|
*/
|
|
37
38
|
type KnownKeys<T> = {
|
|
38
39
|
[K in keyof T]: string extends K ? never : number extends K ? never : K;
|
|
@@ -40,10 +41,11 @@ type KnownKeys<T> = {
|
|
|
40
41
|
[_ in keyof T]: infer U;
|
|
41
42
|
} ? U : never;
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* Picks only the named (non-index) properties of an object.
|
|
44
45
|
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
46
|
+
* Useful for inferring the "known shape" of types like
|
|
47
|
+
* `React.CSSProperties` or `JSX.IntrinsicElements[...]` that carry hidden
|
|
48
|
+
* index signatures.
|
|
47
49
|
*/
|
|
48
50
|
export type RequiredOnly<T extends Record<any, any>> = Pick<T, KnownKeys<T>>;
|
|
49
51
|
export {};
|
package/lib/utils/utils.d.ts
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hook
|
|
2
|
+
* Hook that emits a deprecation warning ONCE per API name.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* `LOGGER.warn`
|
|
6
|
-
*
|
|
4
|
+
* Uses a flag on `$window` to guarantee that each `name` only triggers one
|
|
5
|
+
* `LOGGER.warn` per browser session, even if the component unmounts and
|
|
6
|
+
* remounts several times. Runs in development only.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```tsx
|
|
10
10
|
* function OldComponent() {
|
|
11
|
-
* useDeprecated('OldComponent', 'Use NewComponent
|
|
11
|
+
* useDeprecated('OldComponent', 'Use NewComponent instead.');
|
|
12
12
|
* return <NewComponent />;
|
|
13
13
|
* }
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
export declare function useDeprecated(name: string, message?: string): void;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Converts a numeric value to a pixel string; passes strings through.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* Returns `0` when the value is falsy — common in handlers that accept
|
|
21
21
|
* `number | string | undefined`.
|
|
22
22
|
*/
|
|
23
23
|
export declare function toPixel(prop?: number | string): string | 0;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Guarantees the value is an array.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
* If it already is one, returns it; otherwise wraps it in a 1-element array.
|
|
28
|
+
* Useful for normalizing props that accept "one thing OR many things".
|
|
29
29
|
*/
|
|
30
30
|
export declare function toArray(obj: any): any[];
|
|
31
|
-
/** Type guard:
|
|
31
|
+
/** Type guard: is the value a callable function? */
|
|
32
32
|
export declare function isFunction(fn: any): fn is Function;
|
|
33
|
-
/** Type guard:
|
|
33
|
+
/** Type guard: is the value a non-null object (arrays included)? */
|
|
34
34
|
export declare function isObject(obj: any): boolean;
|
|
35
|
-
/**
|
|
35
|
+
/** Combines `isObject` + key check to detect `{}`. */
|
|
36
36
|
export declare function isObjectEmpty(obj: any): boolean;
|
|
37
37
|
/**
|
|
38
|
-
* Type guard:
|
|
38
|
+
* Type guard: is the value a string?
|
|
39
39
|
*
|
|
40
|
-
*
|
|
41
|
-
* `String` (
|
|
40
|
+
* Uses the `Object.prototype.toString.call(...)` trick to also accept
|
|
41
|
+
* `String` (wrapper object), although that is an extremely rare case.
|
|
42
42
|
*/
|
|
43
43
|
export declare function isString(obj: any): boolean;
|
|
44
|
-
/**
|
|
44
|
+
/** Checks whether the value is an empty array. */
|
|
45
45
|
export declare function isEmptyArray(value?: any): boolean;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Heuristic to detect an input `SyntheticEvent`.
|
|
48
48
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
49
|
+
* Looks only at the `target` (non-null object) — enough to distinguish, in
|
|
50
|
+
* generic handlers, whether an event or a raw value arrived.
|
|
51
51
|
*/
|
|
52
52
|
export declare function isInputEvent(value: any): boolean;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
54
|
+
* Parses an HTML string using `DOMParser` and returns the collection of the
|
|
55
|
+
* target element.
|
|
56
56
|
*
|
|
57
|
-
*
|
|
57
|
+
* Browser-only — do not use in SSR.
|
|
58
58
|
*/
|
|
59
59
|
export declare function parseHtmlString(domString: string, element: string): HTMLCollection;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Converts an `HTMLCollection` into the equivalent React tree.
|
|
62
62
|
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
63
|
+
* Iterates recursively, copies attributes (except `class`/`style`, discarded
|
|
64
|
+
* to avoid conflicts with Apollion's controlled styling) and respects text
|
|
65
|
+
* content. Returns a single element when there is only one child.
|
|
66
66
|
*/
|
|
67
67
|
export declare function domToReact(nodes: HTMLCollection): React.ReactNode;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
69
|
+
* Recursively flattens a variadic argument set (arrays nested at any depth)
|
|
70
|
+
* into a single array.
|
|
71
71
|
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
72
|
+
* Equivalent to `Array.prototype.flat(Infinity)` applied over `[...args]`,
|
|
73
|
+
* but with the advantage of accepting loose arguments.
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
76
|
* ```ts
|
package/lib/utils/window.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `true`
|
|
3
|
-
* jsdom).
|
|
2
|
+
* `true` when the module is running in an environment with `document`
|
|
3
|
+
* (browser or jsdom). Used as an SSR guard to avoid errors like
|
|
4
4
|
* "`document is not defined`".
|
|
5
5
|
*/
|
|
6
6
|
export declare const canuseDom: boolean;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Reference to the global `window` when available; `undefined` in SSR.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Computed once at module load — we prefer this reference over
|
|
11
|
+
* `globalThis.window` because it keeps a single point of availability
|
|
12
|
+
* checking and helps narrowing for consumers.
|
|
13
13
|
*/
|
|
14
14
|
export declare const $window: Window & typeof globalThis;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Reference to `document.body` when available; `undefined` in SSR.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* The cast to `HTMLElement` simplifies use in calls like `appendChild`, at
|
|
19
|
+
* the cost of requiring the consumer to check `canuseDom` first in code
|
|
20
|
+
* that runs on the server.
|
|
21
21
|
*/
|
|
22
22
|
export declare const $documentBody: HTMLElement;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The DS's perceptual color manipulation surface.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* `culori`.
|
|
6
|
-
* bit-
|
|
7
|
-
* ~44 KB
|
|
4
|
+
* Until F6b (v5.0.0 fine-tooth-comb audit) this file was a typed re-export of
|
|
5
|
+
* `culori`. It now re-exports the **own color engine** (`./engine.ts`): a
|
|
6
|
+
* bit-exact port of the culori@4.0.2 subset the DS actually uses —
|
|
7
|
+
* ~44 KB less dependency in every subpath that touches color.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* The public surface is IDENTICAL to the previous one (same names, same
|
|
10
|
+
* semantics, same output values):
|
|
11
11
|
* - `parse(input)` — parse hex/CSS color string → color object
|
|
12
12
|
* - `formatHex(color)` — color object → 6-digit hex string
|
|
13
13
|
* - `interpolate(colors, mode)` — perceptual lerp interpolator factory
|
|
14
|
-
* (mode `'oklch'`
|
|
14
|
+
* (mode `'oklch'` for palette generation; `fixupHueShorter` built in)
|
|
15
15
|
* - `wcagContrast(a, b)` / `wcagLuminance(c)` — WCAG 2.x
|
|
16
16
|
* - `converter(mode)` — color space converter factory
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
* (snapshots
|
|
20
|
-
* (sweep
|
|
18
|
+
* Two mechanical proofs guarantee the equivalence — see `./parity.test.ts`
|
|
19
|
+
* (snapshots generated with the real culori) and `./parity.differential.test.ts`
|
|
20
|
+
* (dense sweep against the real culori, now a devDependency).
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
* `export { ... } from 'culori'`
|
|
22
|
+
* Going back to culori, should it ever be needed, means reverting THIS file
|
|
23
|
+
* to `export { ... } from 'culori'` and restoring the dependency — one file.
|
|
24
24
|
*
|
|
25
|
-
* @see ./engine.ts (
|
|
25
|
+
* @see ./engine.ts (implementation + documented parse gap)
|
|
26
26
|
* @see ./README.md
|
|
27
27
|
* @see ../../../docs/adr/ADR-016-motor-de-cor-proprio.md
|
|
28
28
|
* @see ../../../docs/adr/ADR-006-v4-oklch-dimension-token-split.md §3.10 §6 S2
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The DS's own color engine — replaces the `culori` runtime dependency.
|
|
3
3
|
*
|
|
4
|
-
* ##
|
|
4
|
+
* ## Why it exists (F6b / APOLLION-CULORI-FLOOR)
|
|
5
5
|
*
|
|
6
|
-
* `culori`
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* `formatHex`, `wcagContrast`/`wcagLuminance`.
|
|
10
|
-
*
|
|
6
|
+
* `culori` cost ~44 KB in every subpath that touches color — the bundle floor
|
|
7
|
+
* flagged in the v5.0.0 fine-tooth-comb audit. The surface the DS actually
|
|
8
|
+
* uses is minimal: `parse`, `converter('rgb'|'oklch'|'lrgb')`, `interpolate(_, 'oklch')`,
|
|
9
|
+
* `formatHex`, `wcagContrast`/`wcagLuminance`. This file ports EXACTLY
|
|
10
|
+
* that subset.
|
|
11
11
|
*
|
|
12
|
-
* ##
|
|
12
|
+
* ## Bit-exactness contract
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* `culori@4.0.2` (
|
|
17
|
-
*
|
|
14
|
+
* This is a **port**, not a from-scratch reimplementation: each function
|
|
15
|
+
* replicates the algorithm, the constants and the floating-point ORDER OF
|
|
16
|
+
* OPERATIONS of `culori@4.0.2` (the source files are annotated per function).
|
|
17
|
+
* Two mechanical proofs guard the contract:
|
|
18
18
|
*
|
|
19
|
-
* 1. `parity.test.ts` — snapshots
|
|
20
|
-
*
|
|
21
|
-
* 2. `parity.differential.test.ts` — sweep
|
|
22
|
-
*
|
|
23
|
-
*
|
|
19
|
+
* 1. `parity.test.ts` — snapshots generated with the REAL culori before the
|
|
20
|
+
* swap; this implementation must reproduce them without regenerating anything.
|
|
21
|
+
* 2. `parity.differential.test.ts` — dense sweep comparing this engine against
|
|
22
|
+
* the real culori (devDependency) under strict equality, including -0 and
|
|
23
|
+
* `undefined` channels.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* Therefore: do NOT "optimize" conversion routes (e.g. oklch→lrgb goes
|
|
26
|
+
* through rgb on purpose, because that is the route culori uses), do NOT
|
|
27
|
+
* reorder sums, do NOT round differently.
|
|
28
28
|
*
|
|
29
|
-
* ##
|
|
29
|
+
* ## Parse gap (documented, conscious decision)
|
|
30
30
|
*
|
|
31
|
-
*
|
|
32
|
-
* `oklch(…)`, `lab(…)`, `color(…)`) via
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* (
|
|
36
|
-
*
|
|
31
|
+
* culori parses the full CSS Color 4 syntax (`rgb(255 0 0 / 50%)`,
|
|
32
|
+
* `oklch(…)`, `lab(…)`, `color(…)`) via a ~500-line tokenizer. The DS
|
|
33
|
+
* absorbs only: hex 3/4/6/8, legacy `rgb()/rgba()`, legacy `hsl()/hsla()`,
|
|
34
|
+
* named colors and `transparent` — all the formats that circulate at runtime
|
|
35
|
+
* (the DS's internal cycle is 100% hex). Modern syntax → `undefined`, the
|
|
36
|
+
* same path as any invalid color, which every call site already guards.
|
|
37
37
|
*
|
|
38
|
-
* ##
|
|
38
|
+
* ## License
|
|
39
39
|
*
|
|
40
40
|
* Portions ported from culori v4.0.2 — MIT License, Copyright (c) 2018
|
|
41
41
|
* Dan Burzo. https://github.com/Evercoder/culori
|
|
@@ -84,29 +84,29 @@ interface TargetByMode {
|
|
|
84
84
|
oklch: Oklch;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
87
|
+
* CSS string parse → color object. Source: culori src/parse.js (the public
|
|
88
|
+
* function; the modern parsers were not ported — see gap in the header).
|
|
89
89
|
*/
|
|
90
90
|
export declare const parse: (color: unknown) => Color | undefined;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
92
|
+
* Color space converter factory. Source: culori src/converter.js.
|
|
93
|
+
* Absorbed targets: `rgb`, `lrgb`, `oklab`, `oklch` (the DS uses rgb/oklch
|
|
94
|
+
* at runtime and lrgb via `wcagLuminance`).
|
|
95
95
|
*/
|
|
96
96
|
export declare const converter: <M extends TargetMode>(mode?: M) => (color: Color | string | undefined) => TargetByMode[M] | undefined;
|
|
97
|
-
/** Color object (
|
|
97
|
+
/** Color object (or string) → 6-digit hex. Source: culori formatHex. */
|
|
98
98
|
export declare const formatHex: (color: Color | string | undefined) => string | undefined;
|
|
99
|
-
/**
|
|
99
|
+
/** WCAG 2.x relative luminance. Throws TypeError on an invalid color (like culori). */
|
|
100
100
|
export declare const wcagLuminance: (color: Color | string) => number;
|
|
101
|
-
/**
|
|
101
|
+
/** WCAG 2.x contrast ratio. Source: culori src/wcag.js `contrast`. */
|
|
102
102
|
export declare const wcagContrast: (a: Color | string, b: Color | string) => number;
|
|
103
103
|
type InterpolateMode = 'rgb' | 'oklab' | 'oklch';
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Perceptual interpolator factory. Source: culori src/interpolate/interpolate.js.
|
|
106
106
|
*
|
|
107
|
-
*
|
|
108
|
-
* (`[color, 0.3]`), hints
|
|
109
|
-
*
|
|
107
|
+
* Absorbed: array of COLOR stops (string or object) + mode. Positions
|
|
108
|
+
* (`[color, 0.3]`), numeric hints and easings were NOT absorbed — the DS
|
|
109
|
+
* never used them; passing such a stop throws instead of degrading silently.
|
|
110
110
|
*/
|
|
111
111
|
export declare const interpolate: (colors: ReadonlyArray<Color | string>, mode?: InterpolateMode) => ((t: number) => TargetByMode[Extract<InterpolateMode, TargetMode>] | Color);
|
|
112
112
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The DS's ideal contract for perceptual color manipulation.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* The engine operates on color objects (the model inherited from culori).
|
|
5
|
+
* Types exported for cases where internal helpers need typing:
|
|
6
6
|
* - `Color` — generic color object union (RGB/HSL/OKLch/etc).
|
|
7
7
|
* - `Oklch` — specific OKLch color shape (`{ mode: 'oklch', l, c, h }`).
|
|
8
8
|
*
|
|
@@ -13,12 +13,12 @@ export type { Color, Hsl, Lrgb, Oklab, Oklch, Rgb } from './engine';
|
|
|
13
13
|
/**
|
|
14
14
|
* DS-owned helper signature: OKLch perceptual lerp wrapper.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* Migrates from `Color(a).mix(b, t).hex()` (RGB lerp, color@5) to
|
|
17
17
|
* `interpolate([a, b], 'oklch')(t)` + `formatHex` (OKLch lerp, culori).
|
|
18
18
|
*
|
|
19
|
-
* Spike validation: branch `spike/culori-oklch-lerp-parity`
|
|
20
|
-
* 0 unexpected regressions
|
|
21
|
-
*
|
|
19
|
+
* Spike validation: branch `spike/culori-oklch-lerp-parity` confirmed
|
|
20
|
+
* 0 unexpected regressions across 68 deltas. Greyscale ramp 19× more uniform
|
|
21
|
+
* in OKLAB L space.
|
|
22
22
|
*
|
|
23
23
|
* @param a - hex string (e.g. `'#003750'`)
|
|
24
24
|
* @param b - hex string
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* `culori@4.0.2/src/colors/named.js` (MIT © 2018 Dan Burzo),
|
|
4
|
-
* script
|
|
2
|
+
* CSS named colors table — mechanical transcription of
|
|
3
|
+
* `culori@4.0.2/src/colors/named.js` (MIT © 2018 Dan Burzo), generated by
|
|
4
|
+
* script in F6b to eliminate typo risk. 148 entries.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Lives in its own file so the engine (`engine.ts`) stays readable.
|
|
7
7
|
*/
|
|
8
8
|
export declare const named: Record<string, number>;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Typed re-export of the absorbed surface of `date-fns` v4.
|
|
3
3
|
*
|
|
4
|
-
* Surface
|
|
4
|
+
* Surface absorbed by the DS:
|
|
5
5
|
*
|
|
6
6
|
* Format/parse:
|
|
7
|
-
* - `format` — `Date → string`
|
|
8
|
-
* `form/InputDate`
|
|
9
|
-
* - `parse` — `string → Date`
|
|
10
|
-
* consumers
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
7
|
+
* - `format` — `Date → string` with pattern + locale. Used in
|
|
8
|
+
* `form/InputDate` for `displayFormat`.
|
|
9
|
+
* - `parse` — `string → Date` with pattern + locale. Available for
|
|
10
|
+
* consumers ingesting dates in non-ISO formats (e.g. coming from a
|
|
11
|
+
* legacy API). Consumers import straight from the vendor; there is no
|
|
12
|
+
* DS-owned re-export.
|
|
13
|
+
* - `parseISO` — `string → Date` only for ISO `yyyy-MM-dd[Thh:mm:ss]`.
|
|
14
|
+
* Faster path of `form/InputDate` (internal value is always ISO).
|
|
15
|
+
* - `isValid` — `Date → boolean`. Runtime guard against `Invalid Date`
|
|
16
|
+
* before formatting.
|
|
16
17
|
*
|
|
17
18
|
* Locales:
|
|
18
19
|
* - `ptBR` — `elements/Calendar` (default), `form/InputDate` (default).
|
|
19
|
-
* - `enUS` — Storybook locale demos + tests
|
|
20
|
+
* - `enUS` — Storybook locale demos + deterministic tests
|
|
20
21
|
* (`aria-label` ICU-version-agnostic).
|
|
21
22
|
*
|
|
22
|
-
* `date-fns@4.x`
|
|
23
|
-
*
|
|
24
|
-
* Calendar/InputDate; bundle
|
|
23
|
+
* `date-fns@4.x` is the successor of `date-fns@3` — tree-shakeable,
|
|
24
|
+
* ESM-first, no Date mutation. The DS imports only what is needed for
|
|
25
|
+
* Calendar/InputDate; real bundle ~3 KB gzip.
|
|
25
26
|
*
|
|
26
27
|
* @see ./README.md
|
|
27
28
|
* @see ADR-004 §3.1 (vendor isolation convention)
|