@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { TextInterface } from '../Text';
|
|
3
3
|
/**
|
|
4
|
-
* Props
|
|
4
|
+
* Props for the `Label` component.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Inherits the typography props from {@link TextInterface} (color, weight,
|
|
7
|
+
* spacing) but replaces the `variant` prop with a semantic color scale used
|
|
8
|
+
* as a badge.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```tsx
|
|
@@ -15,26 +15,22 @@ import { TextInterface } from '../Text';
|
|
|
15
15
|
*/
|
|
16
16
|
export interface LabelProps extends Omit<TextInterface, 'variant'> {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
* (`light`
|
|
18
|
+
* Semantic color of the badge. Each value maps to a theme palette
|
|
19
|
+
* (`light` for the background, `action` for the text).
|
|
20
20
|
*
|
|
21
21
|
* @default 'default'
|
|
22
22
|
*/
|
|
23
23
|
variant?: 'default' | 'info' | 'success' | 'warning' | 'danger';
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* ou fotográficas, onde o fundo `light` padrão some.
|
|
29
|
-
*
|
|
30
|
-
* Inversão pontual de elemento — para inverter uma subárvore inteira, use
|
|
31
|
-
* `surface` no container (ver `concept/surface-inversion.mdx`).
|
|
25
|
+
* Strong-background variant of the badge: fill goes to the palette's
|
|
26
|
+
* `action` tone, ink derives by contrast (AA in any theme). For dark or
|
|
27
|
+
* photographic surfaces.
|
|
32
28
|
*
|
|
33
29
|
* @default false
|
|
34
30
|
*/
|
|
35
31
|
inverted?: boolean;
|
|
36
|
-
/**
|
|
32
|
+
/** Badge content via children. Takes precedence over `text`. */
|
|
37
33
|
children?: ReactNode;
|
|
38
|
-
/**
|
|
34
|
+
/** Badge content as a string. */
|
|
39
35
|
text?: string;
|
|
40
36
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { LabelProps } from './Label.interface';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The Label's styled component.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
5
|
+
* Built on `BaseText` to inherit the typography and the System factories
|
|
6
|
+
* (`alignSelf`, `textTransform`, spacing, etc.). `display: inline` keeps the
|
|
7
|
+
* badge look. The `alignSelf="start"` default comes from the component
|
|
8
|
+
* (`Label.tsx`) — do not hardcode `align-self` here, or the prop cannot
|
|
9
|
+
* override it. Default font size and spacing (`micro`/`xs`) via factories,
|
|
10
|
+
* overridable through props.
|
|
11
11
|
*/
|
|
12
12
|
export declare const LabelStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & import("../../factory").ApollionProps & {
|
|
13
13
|
as?: import("styled-components").WebTarget;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `Label` component.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* `Label.style`
|
|
6
|
-
*
|
|
4
|
+
* Re-exports the component and its interfaces. `LabelStyle` is exposed via
|
|
5
|
+
* `Label.style` for compositions — other files should import from the
|
|
6
|
+
* barrel, never from internal paths.
|
|
7
7
|
*/
|
|
8
8
|
export * from './Label';
|
|
9
9
|
export * from './Label.interface';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk-
|
|
1
|
+
import{a,b}from"../../chunks/chunk-TISQZ6PQ.esm.js";import"../../chunks/chunk-KASRN4X5.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-3RNWYCCU.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.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{b as Label,a as LabelStyle};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LinkButtonInterface, LinkInterface } from './Link.interface';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Merges the consumer's `rel` with the required external-link security
|
|
5
|
+
* tokens, instead of overwriting it.
|
|
6
6
|
*
|
|
7
|
-
* `noopener`
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* `noopener` and `noreferrer` always come first (stable order); extra
|
|
8
|
+
* consumer tokens (`nofollow`, `ugc`, `sponsored`, `me`) are preserved in
|
|
9
|
+
* the order they were passed. Tokens are normalized to lowercase (`rel`
|
|
10
|
+
* keywords are case-insensitive in HTML) and deduplicated.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
@@ -18,51 +18,51 @@ import { LinkButtonInterface, LinkInterface } from './Link.interface';
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const mergeRel: (consumerRel?: string) => string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
* `Link.Button`.
|
|
23
|
-
* `as`
|
|
24
|
-
*
|
|
21
|
+
* `Link` variant with the visual appearance of a `Button`. Accessed as
|
|
22
|
+
* `Link.Button`. Keeps the same polymorphic pattern as `Link` (default
|
|
23
|
+
* `<a>`, `as` for a framework Link) and the same external-link handling —
|
|
24
|
+
* forced `target` and `rel` merged via {@link mergeRel}.
|
|
25
25
|
*
|
|
26
|
-
* @see {@link LinkButtonInterface}
|
|
26
|
+
* @see {@link LinkButtonInterface} for the detailed props.
|
|
27
27
|
*/
|
|
28
28
|
declare const LinkButtonComponent: React.ForwardRefExoticComponent<LinkButtonInterface & React.RefAttributes<HTMLAnchorElement>>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Text link (v4 — router-agnostic).
|
|
31
31
|
*
|
|
32
|
-
* Default `<a
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* `as`
|
|
32
|
+
* Default is a native `<a>`. To integrate with SPA routing, pass `as` with
|
|
33
|
+
* the framework's `Link` (`as={NextLink}`, `as={RouterLink}`). External-URL
|
|
34
|
+
* detection forces `<a>` + `target="_blank"` automatically, ignoring the
|
|
35
|
+
* consumer's `as` (router prefix problem).
|
|
36
36
|
*
|
|
37
|
-
*
|
|
38
|
-
* `noreferrer`
|
|
39
|
-
* (`nofollow`, `ugc`, `sponsored`, `me`)
|
|
40
|
-
*
|
|
37
|
+
* On an external link the `rel` is **merged**, not overwritten: `noopener`
|
|
38
|
+
* and `noreferrer` are always applied and extra consumer tokens
|
|
39
|
+
* (`nofollow`, `ugc`, `sponsored`, `me`) are preserved. `target` remains
|
|
40
|
+
* forced — a new tab is the DS contract for external links.
|
|
41
41
|
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
42
|
+
* Content can be passed via `text` or `children` — `children` takes
|
|
43
|
+
* precedence. Use `Link.Button` for the button-looking variant.
|
|
44
44
|
*
|
|
45
45
|
* @example
|
|
46
46
|
* ```tsx
|
|
47
|
-
* // <a>
|
|
48
|
-
* <Link href="/
|
|
49
|
-
* <Link href="https://example.com" text="
|
|
47
|
+
* // native <a> (default)
|
|
48
|
+
* <Link href="/profile" text="My profile" />
|
|
49
|
+
* <Link href="https://example.com" text="External" />
|
|
50
50
|
*
|
|
51
|
-
* // rel
|
|
52
|
-
* <Link href="https://example.com" rel="nofollow" text="
|
|
51
|
+
* // merged rel → rel="noopener noreferrer nofollow"
|
|
52
|
+
* <Link href="https://example.com" rel="nofollow" text="Source citation" />
|
|
53
53
|
*
|
|
54
54
|
* // Next.js
|
|
55
55
|
* import NextLink from 'next/link';
|
|
56
|
-
* <Link as={NextLink} href="/
|
|
56
|
+
* <Link as={NextLink} href="/profile">Profile</Link>
|
|
57
57
|
*
|
|
58
58
|
* // react-router-dom (consumer owns dep)
|
|
59
59
|
* import { Link as RouterLink } from 'react-router-dom';
|
|
60
|
-
* <Link as={RouterLink} to="/
|
|
60
|
+
* <Link as={RouterLink} to="/profile">Profile</Link>
|
|
61
61
|
*
|
|
62
|
-
* <Link.Button as={NextLink} href="/login" text="
|
|
62
|
+
* <Link.Button as={NextLink} href="/login" text="Sign in" variant="contained" />
|
|
63
63
|
* ```
|
|
64
64
|
*
|
|
65
|
-
* @see {@link LinkInterface}
|
|
65
|
+
* @see {@link LinkInterface} for the detailed props.
|
|
66
66
|
* @see ADR-008 — router-agnostic polymorphic Link.
|
|
67
67
|
*/
|
|
68
68
|
export declare const LinkComponent: React.ForwardRefExoticComponent<LinkInterface & React.RefAttributes<HTMLAnchorElement>> & {
|
|
@@ -3,67 +3,68 @@ import { ColorFactoryProps, ContainerFactoryProps, FontFactoryProps } from '../.
|
|
|
3
3
|
import { ButtonComponentProps } from '../Button';
|
|
4
4
|
type NativeAnchorProps = Omit<React.ComponentPropsWithoutRef<'a'>, 'color'>;
|
|
5
5
|
/**
|
|
6
|
-
* Props
|
|
6
|
+
* Props for the `Link` component (v4 — router-agnostic).
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* By default it renders a native `<a>`. To integrate with SPA routing
|
|
9
|
+
* (Next.js, react-router, Remix, Vite), pass `as` with the framework's
|
|
10
|
+
* `Link` — extra props (`to`, `href`, `replace`, etc.) are forwarded via
|
|
11
|
+
* spread.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```tsx
|
|
15
|
-
* // <a>
|
|
16
|
-
* <Link href="/
|
|
15
|
+
* // native <a> (default)
|
|
16
|
+
* <Link href="/profile" text="My profile" />
|
|
17
17
|
*
|
|
18
|
-
* // URL
|
|
19
|
-
* <Link href="https://example.com" text="
|
|
18
|
+
* // external URL — forces <a> + target=_blank and merges rel=noopener noreferrer
|
|
19
|
+
* <Link href="https://example.com" text="External" />
|
|
20
20
|
*
|
|
21
|
-
* // rel
|
|
22
|
-
* <Link href="https://example.com" rel="nofollow" text="
|
|
21
|
+
* // consumer rel is preserved → rel="noopener noreferrer nofollow"
|
|
22
|
+
* <Link href="https://example.com" rel="nofollow" text="Source citation" />
|
|
23
23
|
*
|
|
24
24
|
* // Next.js
|
|
25
25
|
* import NextLink from 'next/link';
|
|
26
|
-
* <Link as={NextLink} href="/
|
|
26
|
+
* <Link as={NextLink} href="/profile" text="My profile" />
|
|
27
27
|
*
|
|
28
28
|
* // react-router-dom (consumer owns the dep)
|
|
29
29
|
* import { Link as RouterLink } from 'react-router-dom';
|
|
30
|
-
* <Link as={RouterLink} to="/
|
|
30
|
+
* <Link as={RouterLink} to="/profile" text="My profile" />
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
33
|
* @see ADR-008 — router-agnostic polymorphic Link.
|
|
34
34
|
*/
|
|
35
35
|
export type LinkInterface = Omit<NativeAnchorProps, 'role' | 'ref' | 'children' | 'onBlur' | 'onBlurCapture' | 'onFocus' | 'onFocusCapture'> & FontFactoryProps & ContainerFactoryProps & ColorFactoryProps & {
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* `Link` (NextLink, RouterLink, etc.)
|
|
39
|
-
*
|
|
37
|
+
* Underlying component. Default `'a'` (native). Pass a framework
|
|
38
|
+
* `Link` (NextLink, RouterLink, etc.) for SPA navigation. Extra props
|
|
39
|
+
* are forwarded via spread.
|
|
40
40
|
*/
|
|
41
41
|
as?: React.ElementType;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* Forwarded
|
|
45
|
-
* use `href`
|
|
43
|
+
* Router-aware link destination (e.g., react-router-dom's `to`).
|
|
44
|
+
* Forwarded to `as` when the component accepts it. For a native `<a>`,
|
|
45
|
+
* use `href` instead of `to`.
|
|
46
46
|
*/
|
|
47
47
|
to?: any;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
49
|
+
* Consumer `rel` tokens. On an external `href` they are **merged** with
|
|
50
|
+
* the required ones (`noopener noreferrer`), which come first — never
|
|
51
|
+
* overwritten —, allowing `nofollow`, `ugc`, `sponsored`, `me`.
|
|
52
|
+
* Deduplicated and normalized to lowercase. On an internal `href` it is
|
|
53
|
+
* passed through as-is.
|
|
54
54
|
*
|
|
55
|
-
* @default undefined —
|
|
55
|
+
* @default undefined — external resolves to `'noopener noreferrer'`
|
|
56
56
|
*/
|
|
57
57
|
rel?: string;
|
|
58
|
-
/**
|
|
58
|
+
/** Link content as a string. */
|
|
59
59
|
text?: string;
|
|
60
|
-
/**
|
|
60
|
+
/** Link content as children. Takes precedence over `text`. */
|
|
61
61
|
children?: React.ReactNode;
|
|
62
62
|
};
|
|
63
63
|
/**
|
|
64
|
-
* Props
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* Props for `Link.Button` — a `Link` variant with the look of a `Button`.
|
|
65
|
+
* Combines `ButtonComponentProps` (variants, sizes, colors) with the link
|
|
66
|
+
* props, omitting the link's `color` to avoid conflicts (the color comes
|
|
67
|
+
* from the Button).
|
|
67
68
|
*/
|
|
68
69
|
export interface LinkButtonInterface extends ButtonComponentProps, Omit<LinkInterface, 'color'> {
|
|
69
70
|
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Style
|
|
3
|
-
* `as`
|
|
4
|
-
* `as={RouterLink}`, etc.) — styled-components
|
|
5
|
-
* underlying element
|
|
2
|
+
* Style for `<Link>`. The base is a native `<a>`; the consumer can swap it
|
|
3
|
+
* via the `as` prop for the routing framework's Link (`as={NextLink}`,
|
|
4
|
+
* `as={RouterLink}`, etc.) — styled-components forwards `as` to the
|
|
5
|
+
* underlying element while preserving the style.
|
|
6
6
|
*
|
|
7
|
-
* Default:
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* underline
|
|
11
|
-
*
|
|
12
|
-
* `Link.Button`
|
|
7
|
+
* Default: permanent underline (inline link in prose — WCAG 1.4.1, never
|
|
8
|
+
* distinguish a link by color alone). The `:hover` / `:focus-visible`
|
|
9
|
+
* restore is scoped to quiet mode (`textDecoration="none"`, link in
|
|
10
|
+
* chrome/nav): no underline at rest, underline on interaction — a11y
|
|
11
|
+
* without looking like a button. In the default the underline is already
|
|
12
|
+
* permanent, so the rule would be redundant. `Link.Button` does not inherit
|
|
13
|
+
* this.
|
|
13
14
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* (`data-ds-link-button`
|
|
15
|
+
* Note: inside a `Text` (prose), the container's own engine underlines any
|
|
16
|
+
* descendant link regardless of this — see `Text.style`
|
|
17
|
+
* (`data-ds-link-button` opts `Link.Button` out of the rule).
|
|
17
18
|
*
|
|
18
19
|
* @see ADR-008 §3 — router-agnostic polymorphic Link.
|
|
19
20
|
*/
|
|
@@ -741,16 +742,16 @@ export declare const LinkStyle: import("styled-components/dist/types").IStyledCo
|
|
|
741
742
|
children?: React.ReactNode;
|
|
742
743
|
}, never>>> & string;
|
|
743
744
|
/**
|
|
744
|
-
* Style
|
|
745
|
-
* via `as`
|
|
745
|
+
* Style for `Link.Button`. The base is a native `<a>`; same polymorphic
|
|
746
|
+
* pattern via `as` as `LinkStyle`. Reuses the `Button`'s `buttonBaseStyles`.
|
|
746
747
|
*
|
|
747
|
-
*
|
|
748
|
-
* (`& a:not([data-ds-link-button])`)
|
|
749
|
-
*
|
|
748
|
+
* Carries `data-ds-link-button` so the `Text` prose underline engine
|
|
749
|
+
* (`& a:not([data-ds-link-button])`) skips it — a button-looking link must
|
|
750
|
+
* keep its affordance, not gain a text underline inside prose.
|
|
750
751
|
*
|
|
751
|
-
*
|
|
752
|
-
* `underline`)
|
|
753
|
-
*
|
|
754
|
-
* `:hover`/`:focus` (
|
|
752
|
+
* Resets `text-decoration` because the base is a native `<a>` (UA default is
|
|
753
|
+
* `underline`) rendered as a button — unlike `Button`, whose `<button>`
|
|
754
|
+
* comes without decoration. The `linked` variant re-adds the underline on
|
|
755
|
+
* `:hover`/`:focus` (higher specificity), preserving the affordance.
|
|
755
756
|
*/
|
|
756
757
|
export declare const LinkButtonStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, string | number | symbol> & Partial<Pick<any, string | number | symbol>>> & string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `Link` component.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Re-exports the component (renaming `LinkComponent` → `Link` for
|
|
5
|
+
* compatibility), its interfaces, and the styles. `Link.Button` is accessed
|
|
6
|
+
* as a static property of `Link`, not as a separate export.
|
|
7
7
|
*/
|
|
8
8
|
export { LinkComponent as Link } from './Link';
|
|
9
9
|
export * from './Link.interface';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunks/chunk-
|
|
1
|
+
import{a,b,c}from"../../chunks/chunk-KYIPVR2T.esm.js";import"../../chunks/chunk-CZAUFZ45.esm.js";import"../../chunks/chunk-KASRN4X5.esm.js";import"../../chunks/chunk-BMGVQBTB.esm.js";import"../../chunks/chunk-BC24WDTC.esm.js";import"../../chunks/chunk-6N52NFPT.esm.js";import"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-3RNWYCCU.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.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 Link,b as LinkButtonStyle,a as LinkStyle};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ListInterface } from './List.interface';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* List of selectable or navigable items.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
6
|
+
* Renders a `<ul>` with items described via `content`. Each item can be:
|
|
7
|
+
* - selectable (a click toggles `isSelected`) — single or multiple via `multiple`;
|
|
8
|
+
* - navigable (item.to becomes a `<Link>`);
|
|
9
|
+
* - executable (item.action is called after the toggle).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* The selection state is internal; use `onSelectItems`/`onItemClick` to
|
|
12
|
+
* observe changes.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```tsx
|
|
16
16
|
* <List content={[{ title: 'Item 1' }, { title: 'Item 2' }]} />
|
|
17
17
|
* <List multiple showCheckIcon content={items} onSelectItems={setSelected} />
|
|
18
|
-
* <List content={[{ title: '
|
|
18
|
+
* <List content={[{ title: 'Page', to: '/pagina' }]} />
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
21
|
-
* @see {@link ListInterface}
|
|
21
|
+
* @see {@link ListInterface} for the detailed props.
|
|
22
22
|
*/
|
|
23
23
|
export declare const List: React.ForwardRefExoticComponent<ListInterface & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { BaseContainerProps } from '../../containers/Base';
|
|
2
2
|
import { FlexPropsInterface } from '../../containers/Flex';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Minimal shape of a list item (no callbacks/icon).
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* It is what callsites provide in `content` — the `List` adds an `id`
|
|
7
|
+
* (nanoid) internally if one is not given.
|
|
8
8
|
*/
|
|
9
9
|
export type ItemContent = {
|
|
10
|
-
/**
|
|
10
|
+
/** Stable identifier. If omitted, it is generated via `nanoid`. */
|
|
11
11
|
id?: string;
|
|
12
|
-
/** URL
|
|
12
|
+
/** Destination URL. When present, the item becomes a link and skips the toggle. */
|
|
13
13
|
to?: string;
|
|
14
|
-
/**
|
|
14
|
+
/** Visible content of the item. Can be text or any ReactNode. */
|
|
15
15
|
title: React.ReactNode;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* Selection state. When `showCheckIcon` is true, selected items display a
|
|
18
|
+
* check icon.
|
|
19
19
|
*/
|
|
20
20
|
isSelected?: boolean;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* Full item. Adds the action callback (executed after the toggle) and the
|
|
24
|
+
* custom icon (replaces the default check).
|
|
25
25
|
*/
|
|
26
26
|
export interface ListContentType extends ItemContent {
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
* (
|
|
28
|
+
* Function called after the item's toggle. Receives the item without
|
|
29
|
+
* `action`/`icon` (so they are not serialized into logs).
|
|
30
30
|
*/
|
|
31
31
|
action?: (item: ItemContent) => void;
|
|
32
|
-
/**
|
|
32
|
+
/** Custom icon to the left of `title`. Replaces the automatic check. */
|
|
33
33
|
icon?: React.ReactNode;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
* Props
|
|
36
|
+
* Props for the `List` component.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* ```tsx
|
|
@@ -42,40 +42,40 @@ export interface ListContentType extends ItemContent {
|
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
44
|
export interface ListInterface extends FlexPropsInterface, Omit<React.ComponentPropsWithoutRef<'ul'>, 'children' | 'content'> {
|
|
45
|
-
/**
|
|
45
|
+
/** The list's items. */
|
|
46
46
|
content: ListContentType[];
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
48
|
+
* Allows selecting more than one item at a time. Without it, selecting an
|
|
49
|
+
* item deselects the others.
|
|
50
50
|
*
|
|
51
51
|
* @default false
|
|
52
52
|
*/
|
|
53
53
|
multiple?: boolean;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
55
|
+
* Displays a check icon to the left of selected items (only on items
|
|
56
|
+
* without `to`).
|
|
57
57
|
*
|
|
58
58
|
* @default false
|
|
59
59
|
*/
|
|
60
60
|
showCheckIcon?: boolean;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
63
|
-
* `isSelected`
|
|
62
|
+
* Called on every change to the selection array. Receives the whole list
|
|
63
|
+
* with `isSelected` updated.
|
|
64
64
|
*/
|
|
65
65
|
onSelectItems?: (l: ListContentType[]) => void;
|
|
66
|
-
/**
|
|
66
|
+
/** Called when an item is clicked. Receives only the clicked item. */
|
|
67
67
|
onItemClick?: (l: ListContentType) => void;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
* Props
|
|
71
|
-
* `List`
|
|
70
|
+
* Props for the internal `ListItem`. Not a public API — it is the shape
|
|
71
|
+
* received from `List` that must be typed for the styled-component.
|
|
72
72
|
*/
|
|
73
73
|
export interface ListItemInterface extends BaseContainerProps, React.ComponentPropsWithoutRef<'li'> {
|
|
74
74
|
item: ListContentType;
|
|
75
75
|
action?: () => void;
|
|
76
76
|
showCheckIcon?: boolean;
|
|
77
77
|
}
|
|
78
|
-
/** Props
|
|
78
|
+
/** Props received by `ListItemStyle` to highlight selected items. */
|
|
79
79
|
export type LisItemStyle = {
|
|
80
80
|
isSelected?: boolean;
|
|
81
81
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LisItemStyle } from './List.interface';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The list's container.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Resets the `<ul>` defaults (`list-style`, `padding`, `margin`) because
|
|
6
|
+
* inheriting the browser's "navigation list" appearance is rarely desired;
|
|
7
|
+
* the component composes its look via `Flex`.
|
|
8
8
|
*/
|
|
9
9
|
export declare const ListStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("../../factory").ApollionProps & {
|
|
10
10
|
as?: import("styled-components").WebTarget;
|
|
@@ -26,12 +26,11 @@ export declare const ListStyle: import("styled-components/dist/types").IStyledCo
|
|
|
26
26
|
forwardedAs?: import("styled-components").WebTarget;
|
|
27
27
|
}, never>>> & string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* List item.
|
|
30
30
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* o hover).
|
|
31
|
+
* Uses a conditional `BackgroundFactory` to apply the selected-state
|
|
32
|
+
* highlight (`neutral.40`) and the hover (`muted` only on unselected items —
|
|
33
|
+
* preserves the "which one is selected" read even during hover).
|
|
35
34
|
*/
|
|
36
35
|
export declare const ListItemStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("../../factory").ApollionProps & {
|
|
37
36
|
as?: import("styled-components").WebTarget;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `List` component.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Re-exports the component, its interfaces, and the style. `ListStyle`/`ListItemStyle`
|
|
5
|
+
* are exposed so other components (`Dropdown`) can compose variants.
|
|
6
6
|
*/
|
|
7
7
|
export * from './List';
|
|
8
8
|
export * from './List.interface';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunks/chunk-
|
|
1
|
+
import{a,b,c}from"../../chunks/chunk-M32CTX5Z.esm.js";import"../../chunks/chunk-KYIPVR2T.esm.js";import"../../chunks/chunk-CZAUFZ45.esm.js";import"../../chunks/chunk-H2KVPACE.esm.js";import"../../chunks/chunk-5SQH2W2J.esm.js";import"../../chunks/chunk-TD4RVB2L.esm.js";import"../../chunks/chunk-BVKAXW2H.esm.js";import"../../chunks/chunk-TUALAE4W.esm.js";import"../../chunks/chunk-ZLFQHCLE.esm.js";import"../../chunks/chunk-KL3ATH64.esm.js";import"../../chunks/chunk-T6ZB656A.esm.js";import"../../chunks/chunk-7AFAO7ZS.esm.js";import"../../chunks/chunk-PXCCSJNT.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-5Q265MC7.esm.js";import"../../chunks/chunk-3V3ZEGHO.esm.js";import"../../chunks/chunk-WGTBX72G.esm.js";import"../../chunks/chunk-IWMEDT6U.esm.js";import"../../chunks/chunk-KASRN4X5.esm.js";import"../../chunks/chunk-BMGVQBTB.esm.js";import"../../chunks/chunk-BC24WDTC.esm.js";import"../../chunks/chunk-6N52NFPT.esm.js";import"../../chunks/chunk-CLDPV7NK.esm.js";import"../../chunks/chunk-YRBM4WYM.esm.js";import"../../chunks/chunk-5OKRFXLL.esm.js";import"../../chunks/chunk-LATE6DIA.esm.js";import"../../chunks/chunk-VMIXRIQ2.esm.js";import"../../chunks/chunk-MBYC37CX.esm.js";import"../../chunks/chunk-NI6YLGUA.esm.js";import"../../chunks/chunk-OZIEVLUR.esm.js";import"../../chunks/chunk-3RNWYCCU.esm.js";import"../../chunks/chunk-RZDVS7AY.esm.js";import"../../chunks/chunk-IK5Z5C2R.esm.js";import"../../chunks/chunk-BNB3KNKE.esm.js";import"../../chunks/chunk-OXQA5WD3.esm.js";import"../../chunks/chunk-A6Z2M2XU.esm.js";import"../../chunks/chunk-RWLJNXLX.esm.js";import"../../chunks/chunk-TLBV5OUM.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 List,b as ListItemStyle,a as ListStyle};
|