@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,46 +1,33 @@
|
|
|
1
1
|
import { SwitchSize } from './Switch.interface';
|
|
2
2
|
import { Theme } from '../../themes/ThemeProvider';
|
|
3
|
-
/**
|
|
4
|
-
* Dimensões intrínsecas (px) do controle por tamanho.
|
|
5
|
-
*
|
|
6
|
-
* Seguindo o precedente do `Checkbox` (quadrado fixo de 20px), as medidas do
|
|
7
|
-
* trilho/bolinha são px fixos — o espaçamento ao redor continua vindo do tema.
|
|
8
|
-
* `pad` é a folga entre a bolinha e a borda do trilho.
|
|
9
|
-
*/
|
|
10
|
-
export declare const switchSizeTokens: Record<SwitchSize, {
|
|
11
|
-
trackW: number;
|
|
12
|
-
trackH: number;
|
|
13
|
-
thumb: number;
|
|
14
|
-
pad: number;
|
|
15
|
-
}>;
|
|
16
3
|
type SwitchVisualProps = {
|
|
17
4
|
$size?: SwitchSize;
|
|
18
5
|
theme: Theme;
|
|
19
6
|
};
|
|
20
7
|
/**
|
|
21
|
-
* `<input type="checkbox" role="switch">`
|
|
22
|
-
*
|
|
8
|
+
* Native `<input type="checkbox" role="switch">` positioned over the visual
|
|
9
|
+
* control.
|
|
23
10
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
11
|
+
* It stays at `opacity: 0` (instead of `display: none`/`hidden`) to preserve
|
|
12
|
+
* keyboard focus and toggling via `Space` — unlike the `Checkbox`, the
|
|
13
|
+
* `Switch` is typically operated directly from the keyboard.
|
|
27
14
|
*/
|
|
28
15
|
export declare const SwitchInputStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement>, never> & Partial<Pick<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement>, never>>> & string;
|
|
29
16
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
17
|
+
* Thumb — disc that slides inside the track. Exposes the travel distance
|
|
18
|
+
* via `--travel` for the on-state rule on the container.
|
|
32
19
|
*/
|
|
33
20
|
export declare const SwitchThumbStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof SwitchVisualProps> & SwitchVisualProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof SwitchVisualProps> & SwitchVisualProps, never>>> & string;
|
|
34
21
|
/**
|
|
35
|
-
*
|
|
22
|
+
* Track — rounded (pill) background that contains the thumb.
|
|
36
23
|
*/
|
|
37
24
|
export declare const SwitchTrackStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof SwitchVisualProps> & SwitchVisualProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof SwitchVisualProps> & SwitchVisualProps, never>>> & string;
|
|
38
25
|
/**
|
|
39
|
-
*
|
|
26
|
+
* Outer container of the switch (`<label>`).
|
|
40
27
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* (`xs`)
|
|
28
|
+
* We use `_styled('label')` so clicking the text also toggles the wrapped
|
|
29
|
+
* input (implicit label association), keeping a small breathing room
|
|
30
|
+
* (`xs`) without dictating the consumer's layout — same pattern as `Checkbox`/`Radio`.
|
|
44
31
|
*/
|
|
45
32
|
export declare const SwitchContainerStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement>, "theme" | keyof import("./Switch.interface").SwitchInterface> & {
|
|
46
33
|
theme: Theme;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `Switch` component.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Re-exports the implementation, the interfaces and the styled-components.
|
|
5
5
|
*/
|
|
6
6
|
export * from './Switch.interface';
|
|
7
7
|
export * from './Switch.style';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e
|
|
1
|
+
import{a,b,c,d,e}from"../../chunks/chunk-2WED4EVR.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{e as Switch,d as SwitchContainerStyle,a as SwitchInputStyle,b as SwitchThumbStyle,c as SwitchTrackStyle};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextAreaInterface } from './TextArea.interface';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Multi-line text field (`<textarea>`).
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Useful for collecting comments, descriptions and any free-form text
|
|
7
|
+
* input that may exceed one line. When `maxLength` is defined, it shows a
|
|
8
|
+
* counter in the bottom corner with how many characters remain.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* **
|
|
12
|
-
*
|
|
10
|
+
* Works both in **controlled** mode (with `value` + `onChange`) and
|
|
11
|
+
* **uncontrolled** mode (just `defaultValue`); in both cases the character
|
|
12
|
+
* counter updates in real time.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```tsx
|
|
16
|
-
* <TextArea placeholder="
|
|
16
|
+
* <TextArea placeholder="Leave a comment" maxLength={140} />
|
|
17
17
|
* <TextArea size="expansive" resize variant="success" />
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
|
-
* @see {@link TextAreaInterface}
|
|
20
|
+
* @see {@link TextAreaInterface} for the detailed props.
|
|
21
21
|
*/
|
|
22
22
|
export declare const TextAreaComponent: React.FC<TextAreaInterface>;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { FieldVariants } from '../Field';
|
|
2
2
|
import { InputSize, InputTokenProps } from '../Input';
|
|
3
3
|
/**
|
|
4
|
-
* Props
|
|
4
|
+
* Props of the `TextArea` component.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Extends the native `<textarea>` props and applies the design system's
|
|
7
|
+
* visual tokens (size, color variant). Supports `maxLength` with a
|
|
8
|
+
* remaining-characters counter (`maxLengthHint` sets the suffix).
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```tsx
|
|
12
|
-
* <TextArea placeholder="
|
|
12
|
+
* <TextArea placeholder="Leave a comment" maxLength={140} />
|
|
13
13
|
* <TextArea size="expansive" resize variant="success" />
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* @see {@link InputSize}
|
|
16
|
+
* @see {@link InputSize} for the available size tokens.
|
|
17
17
|
*/
|
|
18
18
|
export interface TextAreaInterface extends React.ComponentPropsWithoutRef<'textarea'> {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Textarea size token.
|
|
21
21
|
*
|
|
22
22
|
* @default 'medium'
|
|
23
23
|
*/
|
|
24
24
|
size?: InputSize;
|
|
25
25
|
value?: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* (`resize: both`);
|
|
27
|
+
* When `true`, allows the user to resize the `<textarea>`
|
|
28
|
+
* (`resize: both`); when `false`, fixes the size.
|
|
29
29
|
*
|
|
30
30
|
* @default false
|
|
31
31
|
*/
|
|
32
32
|
resize?: boolean;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
34
|
+
* Limits the number of characters and displays a counter in the bottom
|
|
35
|
+
* right corner with the remaining number.
|
|
36
36
|
*/
|
|
37
37
|
maxLength?: number;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Counter suffix displayed after the number of remaining characters.
|
|
40
40
|
*
|
|
41
41
|
* @default 'characters left'
|
|
42
42
|
*/
|
|
43
43
|
maxLengthHint?: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Textarea visual variant.
|
|
46
46
|
*
|
|
47
47
|
* @default 'default'
|
|
48
48
|
*/
|
|
@@ -50,7 +50,7 @@ export interface TextAreaInterface extends React.ComponentPropsWithoutRef<'texta
|
|
|
50
50
|
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Props
|
|
54
|
-
*
|
|
53
|
+
* Props received by the `TextArea`'s styled-component, including the
|
|
54
|
+
* resolved size tokens.
|
|
55
55
|
*/
|
|
56
56
|
export type TextAreaStyleProps = TextAreaInterface & InputTokenProps;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Styled-component
|
|
2
|
+
* Styled-component of the `<textarea>`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* `inputPlaceholderStyle`)
|
|
6
|
-
* —
|
|
4
|
+
* Reuses the `Input` mixins (`inputVariantStyle`, `inputDisabledStyle`,
|
|
5
|
+
* `inputPlaceholderStyle`) to keep exact visual coherence between the two
|
|
6
|
+
* — this way, changes to the `Input` propagate automatically.
|
|
7
7
|
*/
|
|
8
8
|
export declare const TextAreaStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").ClassAttributes<HTMLTextAreaElement> & import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, keyof import("../../themes").BorderInput | "fontSize" | import("../../factory").BorderRoundPropsType | "borderColor" | "borderPosition" | "square" | "textAlign" | "whiteSpace" | "wordBreak" | "textDecoration" | keyof {
|
|
9
9
|
fontFamily: {
|
|
@@ -59,7 +59,7 @@ export declare const TextAreaStyle: import("styled-components/dist/types").IStyl
|
|
|
59
59
|
square?: boolean;
|
|
60
60
|
} & Partial<{
|
|
61
61
|
borderRadius: "xs" | "sm" | "md" | "micro" | "large" | "straight" | "circular";
|
|
62
|
-
borderWidth: "bold" | "none" | "
|
|
62
|
+
borderWidth: "bold" | "none" | "regular" | "thin" | "great";
|
|
63
63
|
borderStyle: "solid" | "dotted" | "dashed";
|
|
64
64
|
}> & Partial<Record<import("../../factory").BorderRoundPropsType, number | "xs" | "sm" | "md" | "micro" | "large" | "straight" | "circular">> & import("../../factory").SizeFactoryProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").ClassAttributes<HTMLTextAreaElement> & import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, keyof import("../../themes").BorderInput | "fontSize" | import("../../factory").BorderRoundPropsType | "borderColor" | "borderPosition" | "square" | "textAlign" | "whiteSpace" | "wordBreak" | "textDecoration" | keyof {
|
|
65
65
|
fontFamily: {
|
|
@@ -115,13 +115,13 @@ export declare const TextAreaStyle: import("styled-components/dist/types").IStyl
|
|
|
115
115
|
square?: boolean;
|
|
116
116
|
} & Partial<{
|
|
117
117
|
borderRadius: "xs" | "sm" | "md" | "micro" | "large" | "straight" | "circular";
|
|
118
|
-
borderWidth: "bold" | "none" | "
|
|
118
|
+
borderWidth: "bold" | "none" | "regular" | "thin" | "great";
|
|
119
119
|
borderStyle: "solid" | "dotted" | "dashed";
|
|
120
120
|
}> & Partial<Record<import("../../factory").BorderRoundPropsType, number | "xs" | "sm" | "md" | "micro" | "large" | "straight" | "circular">> & import("../../factory").SizeFactoryProps, never>>> & string;
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
123
|
-
* textarea (`transform: translateY(100%)`)
|
|
124
|
-
*
|
|
122
|
+
* Remaining-characters counter — absolutely positioned below the
|
|
123
|
+
* textarea (`transform: translateY(100%)`) so it does not compete for space
|
|
124
|
+
* with the typed content.
|
|
125
125
|
*/
|
|
126
126
|
export declare const TextAreaCounterStyle: 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 & {
|
|
127
127
|
as?: import("styled-components").WebTarget;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `TextArea` component.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Re-exports the implementation, the interfaces and the styled-components —
|
|
5
|
+
* other components must import from here (`../TextArea`), never from
|
|
6
6
|
* `./TextArea.interface`.
|
|
7
7
|
*/
|
|
8
8
|
export * from './TextArea.style';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunks/chunk-
|
|
1
|
+
import{a,b,c}from"../../chunks/chunk-FPUV6SIF.esm.js";import"../../chunks/chunk-NYDXZB2D.esm.js";import"../../chunks/chunk-KHEBUAB4.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 TextArea,b as TextAreaCounterStyle,a as TextAreaStyle};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UploadCardProps, UploadCardRef } from './UploadCard.interface';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* File upload card with support for drag-and-drop, multiple files, and
|
|
5
|
+
* upload progress.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
* - **regular** (
|
|
9
|
-
*
|
|
10
|
-
* - **compact**:
|
|
11
|
-
*
|
|
7
|
+
* Supports two visual variants via the `compact` prop:
|
|
8
|
+
* - **regular** (default): large card with a drop area, icon, and file list
|
|
9
|
+
* below.
|
|
10
|
+
* - **compact**: single row with a button + files in a grid — useful inside
|
|
11
|
+
* forms with little space.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* `uploadConfig.endpoint`
|
|
16
|
-
*
|
|
13
|
+
* The upload itself is optional — the component can be used purely to
|
|
14
|
+
* collect files (`onChange`) and do the sending elsewhere. When
|
|
15
|
+
* `uploadConfig.endpoint` is defined and the `submit()` ref is called, the
|
|
16
|
+
* component POSTs via XHR with real-time progress.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```tsx
|
|
@@ -25,13 +25,13 @@ import { UploadCardProps, UploadCardRef } from './UploadCard.interface';
|
|
|
25
25
|
* acceptLabel="PNG, JPEG, PDF"
|
|
26
26
|
* maxSize={10 * 1024 * 1024}
|
|
27
27
|
* onChange={(value) => console.log(value)}
|
|
28
|
-
* onUnsupportedFile={(f) => showNotification('
|
|
28
|
+
* onUnsupportedFile={(f) => showNotification('Unsupported file')}
|
|
29
29
|
* />
|
|
30
30
|
*
|
|
31
|
-
* //
|
|
31
|
+
* // Submit:
|
|
32
32
|
* await uploadRef.current?.submit({ endpoint: '/api/upload' });
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
|
-
* @see {@link UploadCardProps}
|
|
35
|
+
* @see {@link UploadCardProps} for the detailed props.
|
|
36
36
|
*/
|
|
37
37
|
export declare const UploadCard: React.ForwardRefExoticComponent<UploadCardProps & React.RefAttributes<UploadCardRef>>;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { FileItem, UploadParameters } from './UploadCard.interface';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Formats bytes into a readable string (`'1.50 MB'`, `'24.30 kB'`, ...).
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Uses powers of 1000 (not 1024) — the standard modern operating systems
|
|
6
|
+
* use for files (SI, not JEDEC).
|
|
7
7
|
*/
|
|
8
8
|
export declare function fileSize(size: number): string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Filters out files larger than `maxSize` (in bytes).
|
|
11
11
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* Conservative default: 15 MB. Rejected files trigger no error — the
|
|
13
|
+
* consumer must use `onUnsupportedFile` (in `useFileDialog`/`useDrag`) for
|
|
14
|
+
* user feedback.
|
|
15
15
|
*/
|
|
16
16
|
export declare function filterFiles(fileInput: File | File[], maxSize: number): File[];
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
* `id`
|
|
18
|
+
* Converts native `File`s into design system `FileItem`s — adds a unique
|
|
19
|
+
* `id` (via nanoid) for UI tracking without relying on the name.
|
|
20
20
|
*/
|
|
21
21
|
export declare function convertFileToFileItem(fileList: File[]): Partial<FileItem[]>;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Uploads a single `File` via `XMLHttpRequest`.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
25
|
+
* We use XHR (not `fetch`) because we need the `upload.progress` event —
|
|
26
|
+
* `fetch` still does not support upload progress in every browser.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
29
|
-
* `Authorization`),
|
|
30
|
-
*
|
|
28
|
+
* Accepts basic authentication (`auth.username`/`auth.password` →
|
|
29
|
+
* `Authorization` header), query parameters (`params`), extra FormData
|
|
30
|
+
* parameters (`formDataParams`), and progress callbacks (`onProgress`).
|
|
31
31
|
*/
|
|
32
32
|
export declare function uploadFile(parameters: UploadParameters): Promise<unknown>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DragEvents } from '../../hooks/useDrag';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Configuration of the upload request performed by `UploadCard.submit()`.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Not required for pure use as a file collector (without submit).
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```tsx
|
|
@@ -26,23 +26,23 @@ export interface UploadFileRequestConfig {
|
|
|
26
26
|
params?: {
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
};
|
|
29
|
-
/**
|
|
29
|
+
/** Name of the FormData field (default `'file'`). */
|
|
30
30
|
formDataFileKey?: string;
|
|
31
|
-
/**
|
|
31
|
+
/** Extra fields appended to the FormData (e.g. token, metadata). */
|
|
32
32
|
formDataParams?: {
|
|
33
33
|
key: string;
|
|
34
34
|
value: string | Blob;
|
|
35
35
|
fileName?: string;
|
|
36
36
|
}[];
|
|
37
|
-
/**
|
|
37
|
+
/** Basic authentication — generates the `Authorization` header automatically. */
|
|
38
38
|
auth?: {
|
|
39
39
|
username: string;
|
|
40
40
|
password: string;
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
* `UploadCard`).
|
|
44
|
+
* Arguments of the `uploadFile` utility function (direct use, outside the
|
|
45
|
+
* `UploadCard`). You usually do not need to interact with this.
|
|
46
46
|
*/
|
|
47
47
|
export interface UploadParameters {
|
|
48
48
|
file: File;
|
|
@@ -52,19 +52,19 @@ export interface UploadParameters {
|
|
|
52
52
|
onFail?: () => void;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* File item managed by the `UploadCard`.
|
|
56
56
|
*
|
|
57
|
-
* `id`
|
|
58
|
-
* `upload*`
|
|
57
|
+
* `id` is generated via `nanoid` for stable tracking in the UI. The
|
|
58
|
+
* `upload*` fields are filled during and after the upload.
|
|
59
59
|
*/
|
|
60
60
|
export type FileItem = {
|
|
61
61
|
file: File;
|
|
62
62
|
fileName: string;
|
|
63
63
|
fileSize: string;
|
|
64
64
|
id: string;
|
|
65
|
-
/** Bytes
|
|
65
|
+
/** Bytes uploaded (formatted, e.g. `'1.20 MB'`). */
|
|
66
66
|
uploadLoaded?: string;
|
|
67
|
-
/**
|
|
67
|
+
/** Percentage uploaded, e.g. `'45%'`. */
|
|
68
68
|
uploadPercentage?: string;
|
|
69
69
|
uploadCompleted?: boolean;
|
|
70
70
|
uploadError?: boolean;
|
|
@@ -76,13 +76,13 @@ export type FileItemProps = {
|
|
|
76
76
|
readOnly?: boolean;
|
|
77
77
|
} & FileItem;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Imperative ref exposed by the `UploadCard`.
|
|
80
80
|
*
|
|
81
|
-
* Use
|
|
82
|
-
*
|
|
81
|
+
* Use it to trigger the upload, manipulate the file list, and read the
|
|
82
|
+
* current state without depending on parent component re-renders.
|
|
83
83
|
*/
|
|
84
84
|
export type UploadCardRef = {
|
|
85
|
-
/**
|
|
85
|
+
/** Uploads all current files. Returns the responses in parallel. */
|
|
86
86
|
submit(config?: UploadFileRequestConfig): Promise<any>;
|
|
87
87
|
removeFile(id: string): void;
|
|
88
88
|
removeAll(): void;
|
|
@@ -96,13 +96,13 @@ type CustomButtonProps = {
|
|
|
96
96
|
isSubmitting?: boolean;
|
|
97
97
|
};
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
99
|
+
* Action types reported by the `UploadCard`'s `onChange`. Useful to react
|
|
100
|
+
* to only certain operations (e.g. persist only on `REMOVE`).
|
|
101
101
|
*/
|
|
102
102
|
export type FileActionType = 'ADD_INITIAL_FILES' | 'ADD' | 'REMOVE' | 'REPLACE' | 'UPDATE' | 'RESET';
|
|
103
103
|
/**
|
|
104
|
-
* Payload
|
|
105
|
-
* (
|
|
104
|
+
* Payload delivered to `onChange`. `payload` is the item affected by the
|
|
105
|
+
* action (or an array, in the `ADD_INITIAL_FILES` case).
|
|
106
106
|
*/
|
|
107
107
|
export type UploadCardOnChangeValue = {
|
|
108
108
|
files: FileItem[];
|
|
@@ -110,7 +110,7 @@ export type UploadCardOnChangeValue = {
|
|
|
110
110
|
payload?: FileItem | FileItem[];
|
|
111
111
|
};
|
|
112
112
|
/**
|
|
113
|
-
* Props
|
|
113
|
+
* Props of the `UploadCard` component.
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
116
|
* ```tsx
|
|
@@ -125,23 +125,23 @@ export type UploadCardOnChangeValue = {
|
|
|
125
125
|
* ```
|
|
126
126
|
*/
|
|
127
127
|
export type UploadCardProps = {
|
|
128
|
-
/**
|
|
128
|
+
/** Name of the `<input type="file">` (required in native forms). */
|
|
129
129
|
name?: string;
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* Compact visual variant — single row instead of the large card.
|
|
132
132
|
*
|
|
133
133
|
* @default false
|
|
134
134
|
*/
|
|
135
135
|
compact?: boolean;
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
138
|
-
* (`'image/*'`).
|
|
137
|
+
* Accepted file types. Accepts extensions (`'.png'`) or MIME types
|
|
138
|
+
* (`'image/*'`). Rejected items trigger `onUnsupportedFile`.
|
|
139
139
|
*
|
|
140
140
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
|
|
141
141
|
*/
|
|
142
142
|
accept: string[];
|
|
143
143
|
/**
|
|
144
|
-
*
|
|
144
|
+
* Maximum size per file, in bytes.
|
|
145
145
|
*
|
|
146
146
|
* @default 15728640 // 15 MB
|
|
147
147
|
*/
|
|
@@ -149,38 +149,39 @@ export type UploadCardProps = {
|
|
|
149
149
|
disabled?: boolean;
|
|
150
150
|
readOnly?: boolean;
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* Restricts to a single file (drag/drop and dialog).
|
|
153
153
|
*
|
|
154
154
|
* @default false
|
|
155
155
|
*/
|
|
156
156
|
singleFile?: boolean;
|
|
157
|
-
/** Label
|
|
157
|
+
/** Label for the accepted types (e.g. `"PNG, JPEG, PDF"`) shown on the card. */
|
|
158
158
|
acceptLabel?: string;
|
|
159
159
|
/**
|
|
160
|
-
*
|
|
160
|
+
* Text of the selection button.
|
|
161
161
|
*
|
|
162
162
|
* @default 'Enviar arquivos'
|
|
163
163
|
*/
|
|
164
164
|
buttonText?: string;
|
|
165
|
-
/**
|
|
165
|
+
/** Files to populate on mount (useful when editing forms). */
|
|
166
166
|
initialFiles?: File | File[];
|
|
167
|
-
/**
|
|
167
|
+
/** Upload configuration — required to use `ref.submit()`. */
|
|
168
168
|
uploadConfig?: UploadFileRequestConfig;
|
|
169
|
-
/** Callback
|
|
169
|
+
/** Callback fired on every change (ADD, REMOVE, UPDATE, ...). */
|
|
170
170
|
onChange?: (value: UploadCardOnChangeValue) => void;
|
|
171
|
-
/** Callback
|
|
171
|
+
/** Callback for files rejected by `accept` (not by `maxSize`). */
|
|
172
172
|
onUnsupportedFile?: (f: File) => void;
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
174
|
+
* Replaces the default button with a custom one. Receives utilities to
|
|
175
|
+
* open the dialog, read the current files, and the submit state.
|
|
176
176
|
*/
|
|
177
177
|
customButton?: (p: CustomButtonProps) => React.ReactNode;
|
|
178
178
|
className?: string;
|
|
179
179
|
style?: React.CSSProperties;
|
|
180
180
|
};
|
|
181
181
|
/**
|
|
182
|
-
*
|
|
183
|
-
* (`UploadCardRegular`/`UploadCardCompact`).
|
|
182
|
+
* Internal props passed to the variant components
|
|
183
|
+
* (`UploadCardRegular`/`UploadCardCompact`). Not exposed in the public
|
|
184
|
+
* barrel.
|
|
184
185
|
*/
|
|
185
186
|
export type VariantProps = {
|
|
186
187
|
removeFile: (id: string) => void;
|
|
@@ -188,13 +189,13 @@ export type VariantProps = {
|
|
|
188
189
|
events?: DragEvents;
|
|
189
190
|
inputFile: React.ReactNode;
|
|
190
191
|
} & UploadCardProps & CustomButtonProps;
|
|
191
|
-
/** Props
|
|
192
|
+
/** Props received by the styled-components (visual state focused). */
|
|
192
193
|
export type VariantPropsStyle = {
|
|
193
194
|
active?: boolean;
|
|
194
195
|
disabled?: boolean;
|
|
195
196
|
readOnly?: boolean;
|
|
196
197
|
};
|
|
197
|
-
/**
|
|
198
|
+
/** Options accepted by the internal `useFileState` hook. */
|
|
198
199
|
export interface useFileStateOptions {
|
|
199
200
|
single?: UploadCardProps['singleFile'];
|
|
200
201
|
maxSize?: UploadCardProps['maxSize'];
|