@apollion-dsi/core 5.3.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -34
- package/lib/chunks/Notification.group-YC5G24UY.esm.js +1 -0
- package/lib/chunks/chunk-3RNWYCCU.esm.js +1 -0
- package/lib/chunks/{chunk-RE3I3OYH.esm.js → chunk-4KZ2JQAC.esm.js} +1 -1
- package/lib/chunks/{chunk-PLYS2FYI.esm.js → chunk-4V7LOS5Z.esm.js} +1 -1
- package/lib/chunks/{chunk-WXIAPOTW.esm.js → chunk-5LTPAIHB.esm.js} +1 -1
- package/lib/chunks/chunk-5O44BVAT.esm.js +43 -0
- package/lib/chunks/{chunk-JN5ZNWJR.esm.js → chunk-5SQH2W2J.esm.js} +1 -1
- package/lib/chunks/chunk-6OXVRDS2.esm.js +1 -0
- package/lib/chunks/{chunk-46YVAYDW.esm.js → chunk-6UPV326F.esm.js} +1 -1
- package/lib/chunks/{chunk-IGHPN2OO.esm.js → chunk-73MPQ5OY.esm.js} +1 -1
- package/lib/chunks/chunk-7EGX7BMB.esm.js +1 -0
- package/lib/chunks/chunk-7Y6YHVIS.esm.js +1 -0
- package/lib/chunks/{chunk-OXFE7XFH.esm.js → chunk-7YLTH6LY.esm.js} +1 -1
- package/lib/chunks/{chunk-52WIL6WF.esm.js → chunk-A3PI2KMG.esm.js} +1 -1
- package/lib/chunks/chunk-ARQDV4PP.esm.js +1 -0
- package/lib/chunks/{chunk-YJ4ZRQMI.esm.js → chunk-BC24WDTC.esm.js} +1 -1
- package/lib/chunks/chunk-BL3BNTW3.esm.js +1 -0
- package/lib/chunks/{chunk-2IZ35FTI.esm.js → chunk-BMGVQBTB.esm.js} +1 -1
- package/lib/chunks/{chunk-KDIEROKH.esm.js → chunk-BVKAXW2H.esm.js} +1 -1
- package/lib/chunks/chunk-C5ZCCKMP.esm.js +1 -0
- package/lib/chunks/{chunk-QTWYG4PZ.esm.js → chunk-CLDPV7NK.esm.js} +1 -1
- package/lib/chunks/{chunk-NAPV2J5W.esm.js → chunk-DIN3SAMW.esm.js} +1 -1
- package/lib/chunks/{chunk-SPWQRX4O.esm.js → chunk-DZB2OR52.esm.js} +1 -1
- package/lib/chunks/{chunk-LAO57LJC.esm.js → chunk-EJ3VKFOX.esm.js} +1 -1
- package/lib/chunks/{chunk-BIBJ6JAY.esm.js → chunk-F3WJSICY.esm.js} +1 -1
- package/lib/chunks/{chunk-5VB6YPWU.esm.js → chunk-FCMCTNIG.esm.js} +4 -4
- package/lib/chunks/{chunk-6C3PW2PK.esm.js → chunk-FUSBM77F.esm.js} +1 -1
- package/lib/chunks/chunk-FXR7WKA7.esm.js +1 -0
- package/lib/chunks/{chunk-JSCUCQSD.esm.js → chunk-HP5OTTKY.esm.js} +1 -1
- package/lib/chunks/{chunk-7ORNMDF3.esm.js → chunk-HUATVKQA.esm.js} +1 -1
- package/lib/chunks/{chunk-MFMJXXV6.esm.js → chunk-I46TFDIX.esm.js} +1 -1
- package/lib/chunks/chunk-IQ6MEZCJ.esm.js +1 -0
- package/lib/chunks/{chunk-YX33Y5T6.esm.js → chunk-KUNNAGZ3.esm.js} +1 -1
- package/lib/chunks/chunk-LATE6DIA.esm.js +1 -0
- package/lib/chunks/{chunk-I3LRFLFK.esm.js → chunk-MI7BQ4AV.esm.js} +1 -1
- package/lib/chunks/chunk-OHOMOBIV.esm.js +43 -0
- package/lib/chunks/chunk-PR2T746R.esm.js +1 -0
- package/lib/chunks/{chunk-RC453BIC.esm.js → chunk-PWFS4OYV.esm.js} +1 -1
- package/lib/chunks/{chunk-MJX6TZUR.esm.js → chunk-QHDAJQC7.esm.js} +1 -1
- package/lib/chunks/{chunk-IUNHMZ3V.esm.js → chunk-QNK4SZQ6.esm.js} +1 -1
- package/lib/chunks/{chunk-CWLQNJ2D.esm.js → chunk-QOO64QE4.esm.js} +1 -1
- package/lib/chunks/chunk-QXQC37K5.esm.js +1 -0
- package/lib/chunks/chunk-ROYW5FBA.esm.js +1 -0
- package/lib/chunks/chunk-T5YJT2PA.esm.js +35 -0
- package/lib/chunks/chunk-TD4RVB2L.esm.js +4 -0
- package/lib/chunks/chunk-UYYT7GH5.esm.js +1 -0
- package/lib/chunks/chunk-VAJGIZNP.esm.js +1 -0
- package/lib/chunks/{chunk-FYIBJA5Y.esm.js → chunk-VFA2NPNZ.esm.js} +1 -1
- package/lib/chunks/{chunk-7UYOO2PQ.esm.js → chunk-VHIU3G6O.esm.js} +1 -1
- package/lib/chunks/{chunk-WKQ3JIEG.esm.js → chunk-VHXSTTRG.esm.js} +1 -1
- package/lib/chunks/{chunk-KAPHZYMX.esm.js → chunk-VSLW7J54.esm.js} +1 -1
- package/lib/chunks/{chunk-ZP75XPKF.esm.js → chunk-WJL7X2E2.esm.js} +1 -1
- package/lib/chunks/{chunk-KMQUGDL3.esm.js → chunk-WS2NO23J.esm.js} +1 -1
- package/lib/chunks/{chunk-LC6CQDHG.esm.js → chunk-X3YSUW3W.esm.js} +1 -1
- package/lib/chunks/chunk-X5UHGM25.esm.js +1 -0
- package/lib/chunks/{chunk-UB6WSKGK.esm.js → chunk-XAVQOLJ6.esm.js} +1 -1
- package/lib/chunks/{chunk-75YRUKSI.esm.js → chunk-XJJDEXNW.esm.js} +1 -1
- package/lib/chunks/{chunk-AGTNBWPD.esm.js → chunk-XVEUJXSW.esm.js} +7 -7
- package/lib/chunks/chunk-YLRQW7VD.esm.js +1 -0
- package/lib/chunks/chunk-YRBM4WYM.esm.js +1 -0
- package/lib/chunks/chunk-ZPPJD46V.esm.js +1 -0
- package/lib/containers/Base/Base.interface.d.ts +7 -7
- package/lib/containers/Base/Base.style.d.ts +9 -8
- package/lib/containers/Base/index.d.ts +9 -9
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Card/Card.d.ts +8 -7
- package/lib/containers/Card/Card.interface.d.ts +16 -16
- package/lib/containers/Card/index.d.ts +5 -5
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/Content.d.ts +10 -10
- package/lib/containers/Content/Content.interface.d.ts +15 -15
- package/lib/containers/Content/index.d.ts +5 -5
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/Flex.interface.d.ts +10 -10
- package/lib/containers/Flex/Flex.style.d.ts +7 -6
- package/lib/containers/Flex/index.d.ts +8 -7
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/Grid.interface.d.ts +27 -26
- package/lib/containers/Grid/Grid.style.d.ts +10 -10
- package/lib/containers/Grid/index.d.ts +7 -7
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Motion/Motion.style.d.ts +37 -37
- package/lib/containers/Motion/index.d.ts +7 -6
- package/lib/containers/Motion/index.esm.js +1 -1
- package/lib/containers/Notification/Notification.context.d.ts +17 -17
- package/lib/containers/Notification/Notification.d.ts +23 -23
- package/lib/containers/Notification/Notification.group.d.ts +9 -9
- package/lib/containers/Notification/Notification.interface.d.ts +39 -39
- package/lib/containers/Notification/Notification.style.d.ts +136 -136
- package/lib/containers/Notification/index.d.ts +9 -9
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/Paper.interface.d.ts +5 -5
- package/lib/containers/Paper/Paper.style.d.ts +8 -8
- package/lib/containers/Paper/index.d.ts +5 -5
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/Scroll.d.ts +12 -12
- package/lib/containers/Scroll/Scroll.helpers.d.ts +15 -14
- package/lib/containers/Scroll/Scroll.interface.d.ts +7 -11
- package/lib/containers/Scroll/Scroll.style.d.ts +13 -13
- package/lib/containers/Scroll/index.d.ts +5 -5
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/DataTable.d.ts +8 -9
- package/lib/dataDisplay/DataTable/DataTable.filters.d.ts +16 -15
- package/lib/dataDisplay/DataTable/DataTable.helpers.d.ts +62 -57
- package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +121 -133
- package/lib/dataDisplay/DataTable/DataTable.props.d.ts +11 -11
- package/lib/dataDisplay/DataTable/DataTable.style.d.ts +29 -29
- package/lib/dataDisplay/DataTable/index.d.ts +5 -5
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/DescriptionList.d.ts +17 -17
- package/lib/dataDisplay/DescriptionList/DescriptionList.interface.d.ts +28 -28
- package/lib/dataDisplay/DescriptionList/index.d.ts +6 -6
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Meter/Meter.d.ts +15 -15
- package/lib/dataDisplay/Meter/Meter.interface.d.ts +36 -35
- package/lib/dataDisplay/Meter/Meter.style.d.ts +11 -11
- package/lib/dataDisplay/Meter/index.d.ts +4 -4
- package/lib/dataDisplay/Meter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/Table.d.ts +9 -9
- package/lib/dataDisplay/Table/Table/Table.interface.d.ts +32 -32
- package/lib/dataDisplay/Table/Table/index.d.ts +5 -5
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table.context.d.ts +15 -15
- package/lib/dataDisplay/Table/Table.shared.d.ts +5 -5
- package/lib/dataDisplay/Table/TableBody/TableBody.interface.d.ts +3 -3
- package/lib/dataDisplay/Table/TableBody/TableBody.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableBody/index.d.ts +5 -4
- package/lib/dataDisplay/Table/TableCell/TableCell.d.ts +5 -5
- package/lib/dataDisplay/Table/TableCell/TableCell.interface.d.ts +7 -7
- package/lib/dataDisplay/Table/TableCell/TableCell.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/TableCheckboxCell.d.ts +5 -5
- package/lib/dataDisplay/Table/TableCheckboxCell/TableCheckboxCell.interface.d.ts +3 -3
- package/lib/dataDisplay/Table/TableCheckboxCell/TableCheckboxCell.style.d.ts +5 -5
- package/lib/dataDisplay/Table/TableCheckboxCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.d.ts +4 -4
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.interface.d.ts +7 -7
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +8 -8
- package/lib/dataDisplay/Table/TableEmpty/index.d.ts +2 -2
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/TableFooter.d.ts +5 -5
- package/lib/dataDisplay/Table/TableFooter/TableFooter.interface.d.ts +4 -4
- package/lib/dataDisplay/Table/TableFooter/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeader/TableHeader.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeader/TableHeader.interface.d.ts +2 -2
- package/lib/dataDisplay/Table/TableHeader/TableHeader.style.d.ts +5 -5
- package/lib/dataDisplay/Table/TableHeader/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.d.ts +5 -5
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.interface.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/TableHeaderCheckboxCell.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/TableHeaderCheckboxCell.interface.d.ts +3 -2
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/TableHeaderCheckboxCell.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/TablePagination.d.ts +7 -7
- package/lib/dataDisplay/Table/TablePagination/TablePagination.interface.d.ts +8 -8
- package/lib/dataDisplay/Table/TablePagination/index.d.ts +2 -2
- package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableRow/TableRow.d.ts +3 -3
- package/lib/dataDisplay/Table/TableRow/TableRow.interface.d.ts +3 -3
- package/lib/dataDisplay/Table/TableRow/TableRow.style.d.ts +4 -3
- package/lib/dataDisplay/Table/TableRow/index.d.ts +3 -3
- package/lib/dataDisplay/Table/index.d.ts +5 -5
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/Tabs.d.ts +21 -21
- package/lib/dataDisplay/Tabs/Tabs.interface.d.ts +22 -22
- package/lib/dataDisplay/Tabs/Tabs.style.d.ts +9 -9
- package/lib/dataDisplay/Tabs/index.d.ts +5 -5
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/Avatar.d.ts +7 -7
- package/lib/elements/Avatar/Avatar.helpers.d.ts +6 -6
- package/lib/elements/Avatar/Avatar.interface.d.ts +23 -12
- package/lib/elements/Avatar/Avatar.style.d.ts +26 -7
- package/lib/elements/Avatar/index.d.ts +4 -4
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/Button.d.ts +12 -12
- package/lib/elements/Button/Button.interface.d.ts +39 -38
- package/lib/elements/Button/Button.style.d.ts +18 -15
- package/lib/elements/Button/index.d.ts +7 -7
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Calendar/Calendar.d.ts +10 -10
- package/lib/elements/Calendar/Calendar.interface.d.ts +15 -16
- package/lib/elements/Calendar/Calendar.style.d.ts +11 -11
- package/lib/elements/Calendar/index.d.ts +6 -6
- package/lib/elements/Calendar/index.esm.js +1 -1
- package/lib/elements/Dropdown/Dropdown.d.ts +17 -16
- package/lib/elements/Dropdown/Dropdown.interface.d.ts +26 -26
- package/lib/elements/Dropdown/index.d.ts +4 -4
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/Icon.d.ts +7 -7
- package/lib/elements/Icon/Icon.helpers.d.ts +10 -9
- package/lib/elements/Icon/Icon.interface.d.ts +25 -24
- package/lib/elements/Icon/Icon.style.d.ts +8 -8
- package/lib/elements/Icon/index.d.ts +5 -5
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/IconButton/IconButton.d.ts +8 -8
- package/lib/elements/IconButton/IconButton.interface.d.ts +17 -7
- package/lib/elements/IconButton/IconButton.style.d.ts +4 -4
- package/lib/elements/IconButton/index.d.ts +5 -5
- package/lib/elements/IconButton/index.esm.js +1 -1
- package/lib/elements/Image/Image.d.ts +9 -9
- package/lib/elements/Image/Image.interface.d.ts +14 -13
- package/lib/elements/Image/Image.style.d.ts +4 -4
- package/lib/elements/Image/index.d.ts +4 -4
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Label/Label.d.ts +13 -12
- package/lib/elements/Label/Label.interface.d.ts +11 -15
- package/lib/elements/Label/Label.style.d.ts +7 -7
- package/lib/elements/Label/index.d.ts +4 -4
- package/lib/elements/Label/index.esm.js +1 -1
- package/lib/elements/Link/Link.d.ts +31 -31
- package/lib/elements/Link/Link.interface.d.ts +31 -30
- package/lib/elements/Link/Link.style.d.ts +23 -22
- package/lib/elements/Link/index.d.ts +4 -4
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/List.d.ts +9 -9
- package/lib/elements/List/List.interface.d.ts +25 -25
- package/lib/elements/List/List.style.d.ts +8 -9
- package/lib/elements/List/index.d.ts +3 -3
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.d.ts +22 -22
- package/lib/elements/Modal/Modal.interface.d.ts +41 -41
- package/lib/elements/Modal/Modal.style.d.ts +509 -510
- package/lib/elements/Modal/index.d.ts +4 -4
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/Popover.d.ts +8 -8
- package/lib/elements/Popover/Popover.interface.d.ts +11 -11
- package/lib/elements/Popover/index.d.ts +3 -3
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/ProgressBar.d.ts +11 -11
- package/lib/elements/ProgressBar/ProgressBar.interface.d.ts +9 -9
- package/lib/elements/ProgressBar/ProgressBar.style.d.ts +21 -22
- package/lib/elements/ProgressBar/index.d.ts +6 -6
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Spinner/Spinner.d.ts +6 -6
- package/lib/elements/Spinner/Spinner.interface.d.ts +11 -11
- package/lib/elements/Spinner/Spinner.style.d.ts +9 -8
- package/lib/elements/Spinner/index.d.ts +4 -4
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/Svg/Svg.d.ts +8 -8
- package/lib/elements/Svg/Svg.interface.d.ts +19 -20
- package/lib/elements/Svg/Svg.style.d.ts +17 -9
- package/lib/elements/Svg/index.d.ts +4 -4
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/Text.d.ts +10 -10
- package/lib/elements/Text/Text.interface.d.ts +94 -90
- package/lib/elements/Text/Text.props.d.ts +35 -35
- package/lib/elements/Text/Text.style.d.ts +8 -8
- package/lib/elements/Text/index.d.ts +5 -5
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/Tooltip.d.ts +8 -8
- package/lib/elements/Tooltip/Tooltip.interface.d.ts +18 -19
- package/lib/elements/Tooltip/Tooltip.style.d.ts +14 -13
- package/lib/elements/Tooltip/index.d.ts +4 -4
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/BackgroundFactory/BackgroundFactory.d.ts +10 -10
- package/lib/factory/BackgroundFactory/BackgroundFactory.interface.d.ts +18 -14
- package/lib/factory/BackgroundFactory/index.d.ts +4 -4
- package/lib/factory/BorderFactory/BorderFactory.d.ts +16 -16
- package/lib/factory/BorderFactory/BorderFactory.interface.d.ts +20 -20
- package/lib/factory/BorderFactory/index.d.ts +4 -4
- package/lib/factory/ColorFactory/ColorFactory.d.ts +16 -16
- package/lib/factory/ColorFactory/ColorFactory.interface.d.ts +21 -28
- package/lib/factory/ColorFactory/index.d.ts +3 -3
- package/lib/factory/ContainerFactory/ContainerFactory.d.ts +7 -7
- package/lib/factory/ContainerFactory/ContainerFactory.interface.d.ts +27 -31
- package/lib/factory/ContainerFactory/index.d.ts +3 -3
- package/lib/factory/DeepFactory/DeepFactory.d.ts +9 -9
- package/lib/factory/DeepFactory/DeepFactory.interface.d.ts +19 -19
- package/lib/factory/DeepFactory/index.d.ts +3 -3
- package/lib/factory/DeepFactory/index.esm.js +1 -1
- package/lib/factory/FlexFactory/FlexFactory.d.ts +7 -7
- package/lib/factory/FlexFactory/FlexFactory.interface.d.ts +22 -22
- package/lib/factory/FlexFactory/index.d.ts +4 -4
- package/lib/factory/FontFactory/FontFactory.d.ts +6 -6
- package/lib/factory/FontFactory/FontFactory.interface.d.ts +19 -19
- package/lib/factory/FontFactory/index.d.ts +3 -3
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.d.ts +9 -9
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.interface.d.ts +15 -15
- package/lib/factory/ResponsiveFactory/index.d.ts +3 -3
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/SizeFactory/SizeFactory.d.ts +7 -7
- package/lib/factory/SizeFactory/SizeFactory.interface.d.ts +9 -9
- package/lib/factory/SizeFactory/index.d.ts +2 -2
- package/lib/factory/SpacingFactory/SpacingFactory.d.ts +7 -6
- package/lib/factory/SpacingFactory/SpacingFactory.interface.d.ts +9 -9
- package/lib/factory/SpacingFactory/index.d.ts +3 -3
- package/lib/factory/System/System.d.ts +24 -14
- package/lib/factory/System/System.interface.d.ts +17 -17
- package/lib/factory/System/index.d.ts +3 -3
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/index.d.ts +8 -7
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/Checkbox.d.ts +7 -7
- package/lib/form/Checkbox/Checkbox.interface.d.ts +9 -10
- package/lib/form/Checkbox/Checkbox.style.d.ts +12 -12
- package/lib/form/Checkbox/index.d.ts +3 -3
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/Field.d.ts +7 -7
- package/lib/form/Field/Field.interface.d.ts +6 -6
- package/lib/form/Field/Field.props.d.ts +5 -5
- package/lib/form/Field/Field.style.d.ts +3 -3
- package/lib/form/Field/index.d.ts +7 -6
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/FieldGroup.d.ts +9 -9
- package/lib/form/FieldGroup/FieldGroup.helpers.d.ts +9 -9
- package/lib/form/FieldGroup/FieldGroup.interface.d.ts +18 -18
- package/lib/form/FieldGroup/index.d.ts +3 -3
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/Form.helpers.d.ts +26 -26
- package/lib/form/Form/Form.interface.d.ts +33 -33
- package/lib/form/Form/Form.style.d.ts +4 -4
- package/lib/form/Form/index.d.ts +4 -4
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/Input.d.ts +7 -7
- package/lib/form/Input/Input.helpers.d.ts +8 -16
- package/lib/form/Input/Input.interface.d.ts +26 -26
- package/lib/form/Input/Input.style.d.ts +28 -28
- package/lib/form/Input/index.d.ts +5 -5
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/InputCurrency.d.ts +7 -7
- package/lib/form/InputCurrency/InputCurrency.helpers.d.ts +13 -13
- package/lib/form/InputCurrency/InputCurrency.interface.d.ts +9 -8
- package/lib/form/InputCurrency/index.d.ts +5 -5
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/InputDate.d.ts +13 -13
- package/lib/form/InputDate/InputDate.interface.d.ts +26 -25
- package/lib/form/InputDate/buildSyntheticEvent.d.ts +18 -18
- package/lib/form/InputDate/index.d.ts +8 -7
- package/lib/form/InputDate/index.esm.js +1 -1
- package/lib/form/InputMask/InputMask.d.ts +9 -9
- package/lib/form/InputMask/InputMask.interface.d.ts +9 -9
- package/lib/form/InputMask/index.d.ts +4 -3
- package/lib/form/InputMask/index.esm.js +1 -1
- package/lib/form/InputRange/InputRange.d.ts +9 -9
- package/lib/form/InputRange/InputRange.helpers.d.ts +14 -14
- package/lib/form/InputRange/InputRange.style.d.ts +24 -23
- package/lib/form/InputRange/index.d.ts +4 -4
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/InputSelect/DropdownIndicator.d.ts +6 -6
- package/lib/form/InputSelect/InputSelect.helpers.d.ts +12 -11
- package/lib/form/InputSelect/InputSelect.style.d.ts +12 -39
- package/lib/form/InputSelect/index.d.ts +4 -4
- package/lib/form/InputSelect/index.esm.js +1 -1
- package/lib/form/Radio/Radio.d.ts +7 -7
- package/lib/form/Radio/Radio.interface.d.ts +13 -14
- package/lib/form/Radio/Radio.style.d.ts +11 -11
- package/lib/form/Radio/index.d.ts +3 -3
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/Select/Select.style.d.ts +1 -12
- package/lib/form/Select/index.esm.js +1 -1
- package/lib/form/Switch/Switch.d.ts +11 -11
- package/lib/form/Switch/Switch.interface.d.ts +16 -17
- package/lib/form/Switch/Switch.style.d.ts +12 -25
- package/lib/form/Switch/index.d.ts +2 -2
- package/lib/form/Switch/index.esm.js +1 -1
- package/lib/form/TextArea/TextArea.d.ts +9 -9
- package/lib/form/TextArea/TextArea.interface.d.ts +15 -15
- package/lib/form/TextArea/TextArea.style.d.ts +9 -9
- package/lib/form/TextArea/index.d.ts +3 -3
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.d.ts +14 -14
- package/lib/form/UploadCard/UploadCard.helpers.d.ts +15 -15
- package/lib/form/UploadCard/UploadCard.interface.d.ts +40 -39
- package/lib/form/UploadCard/UploadCard.style.d.ts +16 -16
- package/lib/form/UploadCard/index.d.ts +6 -6
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/UploadCard/useFileControl.d.ts +6 -6
- package/lib/form/UploadCard/useFileState.d.ts +6 -6
- package/lib/form/UploadCard/useObjectUrl.d.ts +5 -5
- package/lib/form/index.esm.js +1 -1
- package/lib/hooks/useClickOutside/index.d.ts +3 -3
- package/lib/hooks/useClickOutside/useClickOutside.d.ts +8 -8
- package/lib/hooks/useClipboard/index.d.ts +3 -3
- package/lib/hooks/useClipboard/useClipboard.d.ts +10 -10
- package/lib/hooks/useClipboard/useClipboard.helpers.d.ts +8 -9
- package/lib/hooks/useDrag/index.d.ts +5 -5
- package/lib/hooks/useDrag/useDrag.d.ts +6 -6
- package/lib/hooks/useDrag/useDrag.helpers.d.ts +9 -9
- package/lib/hooks/useDrag/useDrag.interface.d.ts +9 -9
- package/lib/hooks/useEventCallback/index.d.ts +4 -4
- package/lib/hooks/useEventCallback/useEventCallback.d.ts +12 -12
- package/lib/hooks/useFileDialog/index.d.ts +3 -3
- package/lib/hooks/useFileDialog/useFileDialog.d.ts +15 -15
- package/lib/hooks/useIntersect/index.d.ts +3 -3
- package/lib/hooks/useIntersect/useIntersect.d.ts +11 -11
- package/lib/hooks/useLazyEffect/index.d.ts +3 -3
- package/lib/hooks/useLazyEffect/useLazyEffect.d.ts +7 -7
- package/lib/hooks/useMediaQuery/index.d.ts +5 -5
- package/lib/hooks/useMediaQuery/useMediaQuery.d.ts +7 -7
- package/lib/hooks/useMediaQuery/useMediaQuery.helpers.d.ts +8 -8
- package/lib/hooks/useMediaQuery/useMediaQuery.interface.d.ts +6 -6
- package/lib/hooks/useProgress/index.d.ts +3 -3
- package/lib/hooks/useProgress/useProgress.d.ts +13 -13
- package/lib/hooks/useScript/index.d.ts +3 -3
- package/lib/hooks/useScript/useScript.d.ts +7 -7
- package/lib/hooks/useToggle/index.d.ts +3 -3
- package/lib/hooks/useToggle/useToggle.d.ts +14 -14
- package/lib/hooks/useUnload/index.d.ts +3 -3
- package/lib/hooks/useUnload/useUnload.d.ts +10 -10
- package/lib/icons/icon.interface.d.ts +8 -7
- package/lib/icons/index.d.ts +6 -6
- package/lib/icons/set/alertInfo.d.ts +1 -1
- package/lib/icons/set/alignCenter.d.ts +1 -1
- package/lib/icons/set/alignJustify.d.ts +1 -1
- package/lib/icons/set/alignLeft.d.ts +1 -1
- package/lib/icons/set/alignRight.d.ts +1 -1
- package/lib/icons/set/arrowCircleDown.d.ts +1 -1
- package/lib/icons/set/arrowCircleLeft.d.ts +1 -1
- package/lib/icons/set/arrowCircleRight.d.ts +1 -1
- package/lib/icons/set/arrowCircleUp.d.ts +1 -1
- package/lib/icons/set/arrowLeft.d.ts +1 -1
- package/lib/icons/set/arrowRight.d.ts +1 -1
- package/lib/icons/set/attention.d.ts +1 -1
- package/lib/icons/set/ban.d.ts +1 -1
- package/lib/icons/set/calendar.d.ts +1 -1
- package/lib/icons/set/check.d.ts +1 -1
- package/lib/icons/set/chevronDown.d.ts +1 -1
- package/lib/icons/set/chevronLeft.d.ts +1 -1
- package/lib/icons/set/chevronRight.d.ts +1 -1
- package/lib/icons/set/chevronUp.d.ts +1 -1
- package/lib/icons/set/clock.d.ts +1 -1
- package/lib/icons/set/cog.d.ts +1 -1
- package/lib/icons/set/edit.d.ts +1 -1
- package/lib/icons/set/ellipsisH.d.ts +1 -1
- package/lib/icons/set/emojiAngry.d.ts +1 -1
- package/lib/icons/set/emojiBeamSweat.d.ts +1 -1
- package/lib/icons/set/emojiSadTear.d.ts +1 -1
- package/lib/icons/set/emojiSquintTear.d.ts +1 -1
- package/lib/icons/set/emojiStar.d.ts +1 -1
- package/lib/icons/set/emojiTired.d.ts +1 -1
- package/lib/icons/set/emojiTongue.d.ts +1 -1
- package/lib/icons/set/emojiTongueSquint.d.ts +1 -1
- package/lib/icons/set/envelope.d.ts +1 -1
- package/lib/icons/set/eye.d.ts +1 -1
- package/lib/icons/set/eyeSlash.d.ts +1 -1
- package/lib/icons/set/file.d.ts +1 -1
- package/lib/icons/set/filePdf.d.ts +1 -1
- package/lib/icons/set/menuBars.d.ts +1 -1
- package/lib/icons/set/minus.d.ts +1 -1
- package/lib/icons/set/pen.d.ts +1 -1
- package/lib/icons/set/phoneAlt.d.ts +1 -1
- package/lib/icons/set/phoneSlash.d.ts +1 -1
- package/lib/icons/set/picture.d.ts +1 -1
- package/lib/icons/set/pictures.d.ts +1 -1
- package/lib/icons/set/playCircle.d.ts +1 -1
- package/lib/icons/set/plus.d.ts +1 -1
- package/lib/icons/set/roundedAttention.d.ts +1 -1
- package/lib/icons/set/roundedCheck.d.ts +1 -1
- package/lib/icons/set/roundedInfo.d.ts +1 -1
- package/lib/icons/set/running.d.ts +1 -1
- package/lib/icons/set/search.d.ts +1 -1
- package/lib/icons/set/shareAlt.d.ts +1 -1
- package/lib/icons/set/shareSquare.d.ts +1 -1
- package/lib/icons/set/signIn.d.ts +1 -1
- package/lib/icons/set/signOut.d.ts +1 -1
- package/lib/icons/set/sort.d.ts +1 -1
- package/lib/icons/set/sortDown.d.ts +1 -1
- package/lib/icons/set/sortUp.d.ts +1 -1
- package/lib/icons/set/spinner.d.ts +1 -1
- package/lib/icons/set/thumbsDown.d.ts +1 -1
- package/lib/icons/set/thumbsUp.d.ts +1 -1
- package/lib/icons/set/times.d.ts +1 -1
- package/lib/icons/set/trash.d.ts +1 -1
- package/lib/icons/set/unlink.d.ts +1 -1
- package/lib/icons/set/upload.d.ts +1 -1
- package/lib/icons/set/user.d.ts +1 -1
- package/lib/icons/set/userAdd.d.ts +1 -1
- package/lib/icons/set/userBlock.d.ts +1 -1
- package/lib/icons/set/userCheck.d.ts +1 -1
- package/lib/icons/set/userConfig.d.ts +1 -1
- package/lib/icons/set/userDelete.d.ts +1 -1
- package/lib/icons/set/userEdit.d.ts +1 -1
- package/lib/icons/set/userInvalid.d.ts +1 -1
- package/lib/icons/set/userLocked.d.ts +1 -1
- package/lib/icons/set/users.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/DefaultLayout/DefaultLayout.d.ts +6 -6
- package/lib/layouts/DefaultLayout/DefaultLayout.interface.d.ts +8 -9
- package/lib/layouts/DefaultLayout/DefaultLayout.props.d.ts +4 -4
- package/lib/layouts/DefaultLayout/DefaultLayout.style.d.ts +6 -6
- package/lib/layouts/DefaultLayout/index.d.ts +6 -6
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/SideBarLayout.d.ts +5 -6
- package/lib/layouts/SideBarLayout/SideBarLayout.interface.d.ts +7 -7
- package/lib/layouts/SideBarLayout/SideBarLayout.props.d.ts +5 -5
- package/lib/layouts/SideBarLayout/SideBarLayout.style.d.ts +6 -5
- package/lib/layouts/SideBarLayout/index.d.ts +6 -6
- package/lib/layouts/SideBarLayout/index.esm.js +1 -1
- package/lib/layouts/index.esm.js +1 -1
- package/lib/scenario/CircleComponent/CircleComponent.d.ts +3 -3
- package/lib/scenario/CircleComponent/CircleComponent.style.d.ts +4 -4
- package/lib/scenario/CircleComponent/index.d.ts +5 -5
- package/lib/scenario/RectComponent/RectComponent.d.ts +3 -3
- package/lib/scenario/RectComponent/RectComponent.style.d.ts +3 -3
- package/lib/scenario/RectComponent/index.d.ts +5 -5
- package/lib/scenario/RectComponent/index.esm.js +1 -1
- package/lib/scenario/index.esm.js +1 -1
- package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.d.ts +12 -12
- package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.interface.d.ts +10 -10
- package/lib/skeleton/ComposedSkeleton/index.d.ts +7 -7
- package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
- package/lib/skeleton/TextPreset/TextPreset.d.ts +4 -4
- package/lib/skeleton/TextPreset/index.d.ts +4 -4
- package/lib/skeleton/TextPreset/index.esm.js +1 -1
- package/lib/skeleton/index.esm.js +1 -1
- package/lib/themes/Animation/Animation.interface.d.ts +9 -9
- package/lib/themes/Animation/Animation.props.d.ts +4 -5
- package/lib/themes/Animation/index.d.ts +4 -4
- package/lib/themes/Border/Border.interface.d.ts +26 -25
- package/lib/themes/Border/index.d.ts +4 -4
- package/lib/themes/Breakpoints/index.d.ts +3 -3
- package/lib/themes/Colors/Colors.helpers.d.ts +128 -129
- package/lib/themes/Colors/Colors.interface.d.ts +23 -23
- package/lib/themes/Colors/Colors.presets.d.ts +2 -2
- package/lib/themes/Colors/index.d.ts +3 -3
- package/lib/themes/Colors/index.esm.js +1 -1
- package/lib/themes/Component/Component.helpers.d.ts +24 -0
- package/lib/themes/Component/Component.interface.d.ts +93 -0
- package/lib/themes/Component/index.d.ts +18 -0
- package/lib/themes/Component/index.esm.js +1 -0
- package/lib/themes/Deep/index.d.ts +3 -3
- package/lib/themes/Deep/index.esm.js +1 -1
- package/lib/themes/Depth/index.d.ts +3 -3
- package/lib/themes/Dimension/index.d.ts +4 -4
- package/lib/themes/Font/index.d.ts +3 -3
- package/lib/themes/Foundation/Foundation.helpers.d.ts +12 -12
- package/lib/themes/Foundation/Foundation.interface.d.ts +25 -26
- package/lib/themes/Foundation/index.d.ts +5 -5
- package/lib/themes/GlobalStyle/index.d.ts +1 -1
- package/lib/themes/Semantic/Semantic.helpers.d.ts +14 -14
- package/lib/themes/Semantic/Semantic.interface.d.ts +36 -36
- package/lib/themes/Semantic/index.d.ts +5 -5
- package/lib/themes/Spacing/index.d.ts +3 -3
- package/lib/themes/Surface/Surface.d.ts +15 -15
- package/lib/themes/Surface/Surface.helpers.d.ts +26 -25
- package/lib/themes/Surface/Surface.interface.d.ts +9 -9
- package/lib/themes/Surface/index.d.ts +4 -4
- package/lib/themes/ThemeProvider/ThemeProvider.d.ts +4 -4
- package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +65 -41
- package/lib/themes/ThemeProvider/index.d.ts +7 -7
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.d.ts +1 -0
- package/lib/themes/index.esm.js +1 -1
- package/lib/utils/components/Breakpoints/Breakpoints.d.ts +12 -12
- package/lib/utils/components/Breakpoints/Breakpoints.interface.d.ts +8 -8
- package/lib/utils/components/Breakpoints/index.d.ts +3 -3
- package/lib/utils/components/index.d.ts +4 -4
- package/lib/utils/index.d.ts +4 -4
- package/lib/utils/logger.d.ts +4 -4
- package/lib/utils/mask.d.ts +12 -12
- package/lib/utils/object.d.ts +29 -27
- package/lib/utils/typeUtils.d.ts +18 -16
- package/lib/utils/utils.d.ts +31 -31
- package/lib/utils/window.d.ts +10 -10
- package/lib/vendors/Culori/component.d.ts +14 -14
- package/lib/vendors/Culori/engine.d.ts +40 -40
- package/lib/vendors/Culori/interface.d.ts +7 -7
- package/lib/vendors/Culori/named.d.ts +4 -4
- package/lib/vendors/DateFns/component.d.ts +16 -15
- package/lib/vendors/DateFns/interface.d.ts +6 -6
- package/lib/vendors/Deepmerge/component.d.ts +2 -2
- package/lib/vendors/Deepmerge/interface.d.ts +4 -4
- package/lib/vendors/EmotionIsPropValid/component.d.ts +3 -3
- package/lib/vendors/EmotionIsPropValid/interface.d.ts +3 -3
- package/lib/vendors/FastDeepEqual/component.d.ts +2 -2
- package/lib/vendors/FastDeepEqual/interface.d.ts +3 -3
- package/lib/vendors/FloatingUI/component.d.ts +18 -17
- package/lib/vendors/FloatingUI/interface.d.ts +10 -10
- package/lib/vendors/FramerMotion/component.d.ts +9 -9
- package/lib/vendors/FramerMotion/interface.d.ts +8 -7
- package/lib/vendors/LodashDebounce/component.d.ts +2 -2
- package/lib/vendors/LodashDebounce/interface.d.ts +2 -2
- package/lib/vendors/Nanoid/component.d.ts +5 -5
- package/lib/vendors/Nanoid/interface.d.ts +4 -4
- package/lib/vendors/ObjectHash/component.d.ts +2 -2
- package/lib/vendors/ObjectHash/interface.d.ts +2 -2
- package/lib/vendors/ReactContentLoader/component.d.ts +4 -4
- package/lib/vendors/ReactContentLoader/interface.d.ts +3 -3
- package/lib/vendors/ReactDayPicker/component.d.ts +7 -7
- package/lib/vendors/ReactDayPicker/interface.d.ts +11 -11
- package/lib/vendors/ReactHookForm/component.d.ts +14 -14
- package/lib/vendors/ReactHookForm/interface.d.ts +16 -16
- package/lib/vendors/ReactSelect/component.d.ts +6 -6
- package/lib/vendors/ReactSelect/interface.d.ts +24 -9
- package/lib/vendors/StyledComponents/component.d.ts +10 -10
- package/lib/vendors/StyledComponents/interface.d.ts +12 -12
- package/lib/vendors/StyledNormalize/component.d.ts +3 -3
- package/lib/vendors/StyledNormalize/interface.d.ts +3 -3
- package/lib/vendors/TanstackReactTable/component.d.ts +10 -10
- package/lib/vendors/TanstackReactTable/interface.d.ts +15 -15
- package/lib/vendors/TanstackReactVirtual/component.d.ts +8 -8
- package/lib/vendors/TanstackReactVirtual/interface.d.ts +6 -6
- package/lib/vendors/Zod/component.d.ts +3 -3
- package/package.json +7 -3
- package/lib/chunks/Notification.group-P24CKBGW.esm.js +0 -1
- package/lib/chunks/chunk-2JE2KM3Y.esm.js +0 -1
- package/lib/chunks/chunk-5RSKEPVX.esm.js +0 -1
- package/lib/chunks/chunk-7WWDUGCC.esm.js +0 -1
- package/lib/chunks/chunk-B64YEI67.esm.js +0 -1
- package/lib/chunks/chunk-FGI2BYTC.esm.js +0 -1
- package/lib/chunks/chunk-FJUISCKG.esm.js +0 -1
- package/lib/chunks/chunk-G4OCANJN.esm.js +0 -1
- package/lib/chunks/chunk-GQSXSPXG.esm.js +0 -34
- package/lib/chunks/chunk-JYROOJRO.esm.js +0 -1
- package/lib/chunks/chunk-KFJ6EF6N.esm.js +0 -1
- package/lib/chunks/chunk-LBSRV6OY.esm.js +0 -1
- package/lib/chunks/chunk-M53TQFQR.esm.js +0 -43
- package/lib/chunks/chunk-MGLZFOSB.esm.js +0 -1
- package/lib/chunks/chunk-NO4SD45Y.esm.js +0 -1
- package/lib/chunks/chunk-OPAH7JBD.esm.js +0 -43
- package/lib/chunks/chunk-PAITPPEW.esm.js +0 -4
- package/lib/chunks/chunk-Q6EGG64M.esm.js +0 -1
- package/lib/chunks/chunk-QZNDN3FN.esm.js +0 -1
- package/lib/chunks/chunk-RTTQGZN4.esm.js +0 -1
- package/lib/chunks/chunk-UE2MT6VF.esm.js +0 -1
- package/lib/chunks/chunk-VRM5U7D2.esm.js +0 -1
- package/lib/chunks/chunk-YHJ77TR7.esm.js +0 -1
- /package/lib/chunks/{chunk-QF2YUOVX.esm.js → chunk-KL3ATH64.esm.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel of the `UploadCard` component.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* (
|
|
6
|
-
* (`FileItem`, `UploadCardRef`, `UploadCardProps`).
|
|
7
|
-
* **
|
|
8
|
-
* `VariantPropsStyle`)
|
|
4
|
+
* Re-exports the implementation, the styled-components, the
|
|
5
|
+
* `useFileControl` hook (utility to track added/removed files), and the
|
|
6
|
+
* main types (`FileItem`, `UploadCardRef`, `UploadCardProps`). The barrel
|
|
7
|
+
* intentionally does **not** re-export `*` from the interface — some
|
|
8
|
+
* internal types (`VariantProps`, `VariantPropsStyle`) stay encapsulated.
|
|
9
9
|
*/
|
|
10
10
|
export * from './UploadCard.style';
|
|
11
11
|
export * from './UploadCard';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../chunks/chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../chunks/chunk-QNK4SZQ6.esm.js";import"../../chunks/chunk-EJ3VKFOX.esm.js";import"../../chunks/chunk-UYYT7GH5.esm.js";import"../../chunks/chunk-73MPQ5OY.esm.js";import"../../chunks/chunk-IQ6MEZCJ.esm.js";import"../../chunks/chunk-PR2T746R.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-QXQC37K5.esm.js";import"../../chunks/chunk-RU6QRCR7.esm.js";import"../../chunks/chunk-CWRWYU7D.esm.js";import"../../chunks/chunk-2R6XFFSQ.esm.js";import"../../chunks/chunk-TG5BCBO4.esm.js";import"../../chunks/chunk-JOKVE3IX.esm.js";import"../../chunks/chunk-BRXIFPWB.esm.js";import"../../chunks/chunk-3EOSES4S.esm.js";import"../../chunks/chunk-NQBO2D7L.esm.js";import"../../chunks/chunk-3DUB5C4Z.esm.js";import"../../chunks/chunk-KT6QQ3UJ.esm.js";import"../../chunks/chunk-7EGX7BMB.esm.js";import"../../chunks/chunk-OWMRURZT.esm.js";import"../../chunks/chunk-6X6WKZ3Y.esm.js";import"../../chunks/chunk-2ROOI4B2.esm.js";import"../../chunks/chunk-2FQC32AA.esm.js";import"../../chunks/chunk-UNM6DHPD.esm.js";import"../../chunks/chunk-SPHHNZVP.esm.js";import"../../chunks/chunk-4UWZA5FD.esm.js";import"../../chunks/chunk-KQQ7V7VG.esm.js";import"../../chunks/chunk-3QSPHURU.esm.js";import"../../chunks/chunk-NDIYF5SX.esm.js";import"../../chunks/chunk-A3OJEVGQ.esm.js";import"../../chunks/chunk-KR2X2UQG.esm.js";import"../../chunks/chunk-BE2JDTVA.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-FXR7WKA7.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{i as CompactContainer,j as CompactFileItemContainer,d as FileItemContainer,f as FileItemName,h as FileItemPreviewContainer,g as FileItemProgress,c as Overlay,b as OverlayContainer,k as UploadCard,a as UploadCardContainer,e as UploadCardFiles,l as useFileControl};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FileItem, UploadCardOnChangeValue } from './UploadCard.interface';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Utility hook that listens to the `UploadCard`'s `onChange` and keeps two
|
|
4
|
+
* parallel lists: files added (`addedFiles`) and removed (`removedFiles`) in
|
|
5
|
+
* the current session.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Useful in editing flows where you need to know **what changed** since the
|
|
8
|
+
* last save — combine the two arrays to sync with the backend (POST the new
|
|
9
|
+
* ones, DELETE the removed ones).
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```tsx
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UploadCardOnChangeValue, useFileStateOptions } from './UploadCard.interface';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Internal `UploadCard` hook — manages the file list and exposes typed
|
|
4
|
+
* mutators.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* (`ADD_INITIAL_FILES` | `ADD` | `REMOVE` | `REPLACE` | `UPDATE`)
|
|
8
|
-
* `payload` (
|
|
9
|
-
*
|
|
6
|
+
* Each mutation propagates via `opts.onChange` with the action `type`
|
|
7
|
+
* (`ADD_INITIAL_FILES` | `ADD` | `REMOVE` | `REPLACE` | `UPDATE`) and the
|
|
8
|
+
* `payload` (the affected item) — lets consumers react to specific changes
|
|
9
|
+
* without having to diff arrays.
|
|
10
10
|
*/
|
|
11
11
|
export declare function useFileState(opts: useFileStateOptions): {
|
|
12
12
|
files: UploadCardOnChangeValue;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
type FileType = File | Blob;
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Creates and releases (`URL.createObjectURL` / `URL.revokeObjectURL`) a
|
|
4
|
+
* temporary URL for a `File`/`Blob`, gated by `test`.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Used to generate image previews inside `UploadCard` — `test` controls
|
|
7
|
+
* when the URL should be created (e.g. only for images). Cleanup in the
|
|
8
|
+
* `useEffect` cleanup function prevents memory leaks.
|
|
9
9
|
*/
|
|
10
10
|
export declare function useObjectUrl(file: FileType, test: (f: FileType) => boolean): string;
|
|
11
11
|
export {};
|
package/lib/form/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as G}from"../chunks/chunk-
|
|
1
|
+
import{a as G}from"../chunks/chunk-VFA2NPNZ.esm.js";import{a as H,b as I,c as J,d as K,e as L,f as M,g as N,h as O,i as P,j as Q}from"../chunks/chunk-MI7BQ4AV.esm.js";import{a as R,b as S}from"../chunks/chunk-OHOMOBIV.esm.js";import{a as T,b as U,c as V,d as W,e as X}from"../chunks/chunk-5O44BVAT.esm.js";import{a as Y,b as Z,c as _}from"../chunks/chunk-FCMCTNIG.esm.js";import{a as $,b as oo,c as ro,d as eo,e as fo,f as mo,g as po,h as to,i as xo,j as ao,k as bo,l as co}from"../chunks/chunk-QNK4SZQ6.esm.js";import{a as n}from"../chunks/chunk-KUNNAGZ3.esm.js";import{a as i,b as j,c as k,d as l}from"../chunks/chunk-HUATVKQA.esm.js";import{a as q,b as s,c as u,d as v,e as w,f as y,g as z,h as A}from"../chunks/chunk-XAVQOLJ6.esm.js";import{a as h}from"../chunks/chunk-5LTPAIHB.esm.js";import{a as B,b as C,c as D,d as E}from"../chunks/chunk-XJJDEXNW.esm.js";import"../chunks/chunk-43YSWDK6.esm.js";import{a as F}from"../chunks/chunk-BL3BNTW3.esm.js";import"../chunks/chunk-ZPPJD46V.esm.js";import"../chunks/chunk-EJ3VKFOX.esm.js";import{a as x,b as a,c as b,d as c}from"../chunks/chunk-T5YJT2PA.esm.js";import{a as d,b as g}from"../chunks/chunk-VAJGIZNP.esm.js";import{a as o,b as r,c as e,d as f,e as m,f as p,g as t}from"../chunks/chunk-UYYT7GH5.esm.js";import"../chunks/chunk-5H2LWL6K.esm.js";import"../chunks/chunk-73MPQ5OY.esm.js";import"../chunks/chunk-IQ6MEZCJ.esm.js";import"../chunks/chunk-PR2T746R.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-QXQC37K5.esm.js";import"../chunks/chunk-RU6QRCR7.esm.js";import"../chunks/chunk-CWRWYU7D.esm.js";import"../chunks/chunk-2R6XFFSQ.esm.js";import"../chunks/chunk-TG5BCBO4.esm.js";import"../chunks/chunk-JOKVE3IX.esm.js";import"../chunks/chunk-BRXIFPWB.esm.js";import"../chunks/chunk-3EOSES4S.esm.js";import"../chunks/chunk-NQBO2D7L.esm.js";import"../chunks/chunk-3DUB5C4Z.esm.js";import"../chunks/chunk-KT6QQ3UJ.esm.js";import"../chunks/chunk-7EGX7BMB.esm.js";import"../chunks/chunk-OWMRURZT.esm.js";import"../chunks/chunk-6X6WKZ3Y.esm.js";import"../chunks/chunk-2ROOI4B2.esm.js";import"../chunks/chunk-2FQC32AA.esm.js";import"../chunks/chunk-UNM6DHPD.esm.js";import"../chunks/chunk-SPHHNZVP.esm.js";import"../chunks/chunk-4UWZA5FD.esm.js";import"../chunks/chunk-KQQ7V7VG.esm.js";import"../chunks/chunk-3QSPHURU.esm.js";import"../chunks/chunk-NDIYF5SX.esm.js";import"../chunks/chunk-A3OJEVGQ.esm.js";import"../chunks/chunk-KR2X2UQG.esm.js";import"../chunks/chunk-BE2JDTVA.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-FXR7WKA7.esm.js";import"../chunks/chunk-BMGVQBTB.esm.js";import"../chunks/chunk-BC24WDTC.esm.js";import"../chunks/chunk-6N52NFPT.esm.js";import"../chunks/chunk-4V7LOS5Z.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 Checkbox,b as CheckboxContainerStyle,x as CheckboxInputStyle,a as CheckboxStyle,xo as CompactContainer,ao as CompactFileItemContainer,h as Field,n as FieldGroup,eo as FileItemContainer,mo as FileItemName,to as FileItemPreviewContainer,po as FileItemProgress,A as Form,q as FormFlexStyle,s as FormGridStyle,t as Input,E as InputCurrency,F as InputDate,G as InputMask,Q as InputRange,g as InputSelect,m as InputStyle,ro as Overlay,oo as OverlayContainer,l as Radio,k as RadioContainerStyle,i as RadioInputStyle,j as RadioStyle,S as Select,R as SelectStyle,H as SliderContainer,L as SliderGradient,M as SliderLabel,O as SliderMark,P as SliderMarkLabel,I as SliderRail,N as SliderThumb,J as SliderTrack,K as SliderTrackGradient,X as Switch,W as SwitchContainerStyle,T as SwitchInputStyle,U as SwitchThumbStyle,V as SwitchTrackStyle,_ as TextArea,Z as TextAreaCounterStyle,Y as TextAreaStyle,bo as UploadCard,$ as UploadCardContainer,fo as UploadCardFiles,p as WrapperInputStyle,y as buildDefaultValues,d as createComponentStyle,C as currencyToNumber,B as formatCurrency,D as getInitialCurrencyValue,w as getValidationSchema,e as inputDisabledStyle,r as inputPlaceholderStyle,o as inputVariantStyle,f as invertIconPosition,z as newField,u as normalizeValues,v as prepareSubmit,co as useFileControl};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `useClickOutside` hook.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Re-exports the implementation — any other file in the project must import
|
|
5
|
+
* from the barrel, never from internal paths such as `./useClickOutside`.
|
|
6
6
|
*/
|
|
7
7
|
export * from './useClickOutside';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Detects clicks outside an element and fires a callback.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Returns a `ref` that must be attached to the element you want to "protect".
|
|
5
|
+
* Whenever the user presses the mouse outside of it (`mousedown` event in the
|
|
6
|
+
* capture phase), the `callback` is invoked.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* Useful for closing menus, dropdowns, modals, and popovers on outside click.
|
|
9
9
|
*
|
|
10
|
-
* @param callback -
|
|
11
|
-
* @returns
|
|
10
|
+
* @param callback - Function executed when the click happens outside the referenced element.
|
|
11
|
+
* @returns A typed `ref` for the target element.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```tsx
|
|
15
15
|
* function Dropdown({ onClose }: { onClose: () => void }) {
|
|
16
16
|
* const ref = useClickOutside<HTMLDivElement>(onClose);
|
|
17
|
-
* return <div ref={ref}>
|
|
17
|
+
* return <div ref={ref}>content</div>;
|
|
18
18
|
* }
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `useClipboard` hook.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Re-exports the implementation — any other file in the project must import
|
|
5
|
+
* from the barrel, never from internal paths such as `./useClipboard`.
|
|
6
6
|
*/
|
|
7
7
|
export * from './useClipboard';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Copies textual content to the clipboard and exposes a temporary success
|
|
3
|
+
* signal.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `timeout`
|
|
8
|
-
*
|
|
5
|
+
* Internally it tries the asynchronous Clipboard API first and, as a fallback,
|
|
6
|
+
* uses `document.execCommand('copy')`. The `hasCopied` signal stays `true` for
|
|
7
|
+
* `timeout` milliseconds after a successful copy — useful for temporarily
|
|
8
|
+
* switching the button label to "Copied".
|
|
9
9
|
*
|
|
10
|
-
* @param text -
|
|
11
|
-
* @param timeout -
|
|
12
|
-
* @returns
|
|
10
|
+
* @param text - Text that will be copied to the clipboard when `onCopy` is called.
|
|
11
|
+
* @param timeout - How many milliseconds `hasCopied` stays `true` after copying. Defaults to `2000`.
|
|
12
|
+
* @returns An object with `onCopy` (triggers the copy) and `hasCopied` (transient boolean).
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```tsx
|
|
16
16
|
* function CopyButton({ value }: { value: string }) {
|
|
17
17
|
* const { onCopy, hasCopied } = useClipboard(value);
|
|
18
|
-
* return <button onClick={onCopy}>{hasCopied ? '
|
|
18
|
+
* return <button onClick={onCopy}>{hasCopied ? 'Copied' : 'Copy'}</button>;
|
|
19
19
|
* }
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Options accepted by the {@link copy} function.
|
|
3
3
|
*
|
|
4
|
-
* - `format`:
|
|
5
|
-
* - `debug`:
|
|
6
|
-
* - `onCopy`/`onFailed`: callbacks
|
|
4
|
+
* - `format`: forces a specific MIME type when writing to the clipboard.
|
|
5
|
+
* - `debug`: prints errors to the console when the copy fails.
|
|
6
|
+
* - `onCopy`/`onFailed`: result callbacks.
|
|
7
7
|
*/
|
|
8
8
|
type copyOptions = {
|
|
9
9
|
format?: string;
|
|
@@ -12,12 +12,11 @@ type copyOptions = {
|
|
|
12
12
|
onFailed?: () => void;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* disponível.
|
|
15
|
+
* Copies `text` to the clipboard using the best available strategy.
|
|
17
16
|
*
|
|
18
|
-
*
|
|
19
|
-
* `document.execCommand('copy')`.
|
|
20
|
-
*
|
|
17
|
+
* Tries the (asynchronous) Clipboard API first. As a fallback, it resorts to
|
|
18
|
+
* `document.execCommand('copy')`. Fires `onCopy` or `onFailed` according to
|
|
19
|
+
* the result.
|
|
21
20
|
*/
|
|
22
21
|
export declare function copy(text: string, { onCopy, onFailed, ...options }?: copyOptions): Promise<void>;
|
|
23
22
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `useDrag` hook.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* (`DragEvents`, `useDragHookInterface`)
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Re-exports the implementation, the interface and auxiliary types
|
|
5
|
+
* (`DragEvents`, `useDragHookInterface`), and the `acceptableFile` helper.
|
|
6
|
+
* Any other file in the project must import from the barrel, never from
|
|
7
|
+
* internal paths such as `./useDrag` or `./useDrag.helpers`.
|
|
8
8
|
*/
|
|
9
9
|
export * from './useDrag';
|
|
10
10
|
export * from './useDrag.interface';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useDragHookInterface } from './useDrag.interface';
|
|
2
2
|
/**
|
|
3
|
-
* Hook
|
|
3
|
+
* Hook that orchestrates file drag-and-drop events on a container.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* Returns the `isDragging` state (active while the user drags over the
|
|
6
|
+
* target) and a set of handlers (`events`) ready to be spread onto a
|
|
7
|
+
* `<div>`. Filters the dropped files by the types accepted in `accept`
|
|
8
|
+
* and, optionally, limits to a single file via `single`.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```tsx
|
|
@@ -17,7 +17,7 @@ import { useDragHookInterface } from './useDrag.interface';
|
|
|
17
17
|
*
|
|
18
18
|
* return (
|
|
19
19
|
* <div {...events} style={{ borderColor: isDragging ? 'blue' : 'gray' }}>
|
|
20
|
-
*
|
|
20
|
+
* Drop images here
|
|
21
21
|
* </div>
|
|
22
22
|
* );
|
|
23
23
|
* }
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Checks whether a file matches the list of accepted types.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Accepts three input formats in `accept`, in the same style as the HTML
|
|
5
|
+
* `accept` attribute of `<input type="file">`:
|
|
6
6
|
*
|
|
7
|
-
* -
|
|
8
|
-
* - MIME
|
|
9
|
-
* - MIME
|
|
7
|
+
* - Extension (`.png`, `.pdf`): compares against the end of the file name.
|
|
8
|
+
* - Wildcard MIME (`image/*`): compares only the base part of the MIME type.
|
|
9
|
+
* - Full MIME (`application/pdf`): compares exactly.
|
|
10
10
|
*
|
|
11
|
-
* @param file -
|
|
12
|
-
* @param accept -
|
|
13
|
-
* @returns `true`
|
|
11
|
+
* @param file - File (or a `Partial<File>` with `name`/`type`) to validate.
|
|
12
|
+
* @param accept - List of accepted types, or a single string.
|
|
13
|
+
* @returns `true` if the file matches at least one of the types.
|
|
14
14
|
*/
|
|
15
15
|
export declare function acceptableFile(file: Partial<File>, accept: string | string[]): boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Arguments accepted by {@link useDrag}.
|
|
3
3
|
*
|
|
4
|
-
* - `accept`:
|
|
4
|
+
* - `accept`: list of types in the format of the HTML `accept` attribute
|
|
5
5
|
* (`image/*`, `.pdf`, `application/json`).
|
|
6
|
-
* - `single`:
|
|
7
|
-
* - `onDragOver`/`onDragLeave`: callbacks
|
|
8
|
-
* - `onDrop`:
|
|
6
|
+
* - `single`: when `true`, only the first valid file is delivered.
|
|
7
|
+
* - `onDragOver`/`onDragLeave`: callbacks for entering/leaving the target.
|
|
8
|
+
* - `onDrop`: receives the valid files after the drop.
|
|
9
9
|
*/
|
|
10
10
|
type useDragHookArg = {
|
|
11
11
|
accept?: string[];
|
|
@@ -15,8 +15,8 @@ type useDragHookArg = {
|
|
|
15
15
|
onDrop?: (files: File[]) => void;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* Set of drag-and-drop handlers returned by {@link useDrag}, ready to be
|
|
19
|
+
* spread onto a `<div>` (or equivalent element).
|
|
20
20
|
*/
|
|
21
21
|
export type DragEvents = {
|
|
22
22
|
onDragOver: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
@@ -25,8 +25,8 @@ export type DragEvents = {
|
|
|
25
25
|
onDragEnd: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
* (`isDragging`)
|
|
28
|
+
* Signature of the {@link useDrag} hook. Takes options and returns state
|
|
29
|
+
* (`isDragging`) plus the `events` bundle to attach to the container.
|
|
30
30
|
*/
|
|
31
31
|
export type useDragHookInterface = (opt: useDragHookArg) => {
|
|
32
32
|
isDragging: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `useEventCallback` hook.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Re-exports the implementation and the `useIsomorphicEffect` utility — every
|
|
5
|
+
* other file in the project must import from the barrel, never from internal
|
|
6
|
+
* paths like `./useEventCallback`.
|
|
7
7
|
*/
|
|
8
8
|
export * from './useEventCallback';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Isomorphic version of `useLayoutEffect`.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* In the browser (when `window` exists), uses `useLayoutEffect` to synchronize
|
|
6
|
+
* before the browser paints. In SSR (no `window`), falls back to `useEffect` to
|
|
7
|
+
* avoid React warnings during server rendering.
|
|
8
8
|
*/
|
|
9
9
|
export declare const useIsomorphicEffect: typeof useEffect;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Creates a stable callback that always delegates to the latest version of
|
|
12
12
|
* `fn`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
14
|
+
* The return value has constant identity across renders (it does not break
|
|
15
|
+
* `memo`/deps of other hooks), but internally it always executes the most
|
|
16
|
+
* current version of the received function. Useful for registering handlers on
|
|
17
|
+
* external listeners without suffering from stale closures.
|
|
18
18
|
*
|
|
19
|
-
* @param fn -
|
|
20
|
-
* @returns
|
|
19
|
+
* @param fn - Target function. May change between renders without affecting the return identity.
|
|
20
|
+
* @returns Stable callback that delegates to the current `fn`.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```tsx
|
|
@@ -27,7 +27,7 @@ export declare const useIsomorphicEffect: typeof useEffect;
|
|
|
27
27
|
* useEffect(() => {
|
|
28
28
|
* window.addEventListener('custom', stable);
|
|
29
29
|
* return () => window.removeEventListener('custom', stable);
|
|
30
|
-
* }, [stable]); //
|
|
30
|
+
* }, [stable]); // identity never changes
|
|
31
31
|
* }
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `useFileDialog` hook.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Re-exports the implementation — every other file in the project must import
|
|
5
|
+
* from the barrel, never from internal paths like `./useFileDialog`.
|
|
6
6
|
*/
|
|
7
7
|
export * from './useFileDialog';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Options accepted by {@link useFileDialog}.
|
|
3
3
|
*
|
|
4
|
-
* - `accept`:
|
|
5
|
-
* (`image/*`, `.pdf`, `application/json`).
|
|
6
|
-
* - `single`:
|
|
7
|
-
* `onFilesSelect`
|
|
8
|
-
* - `onFilesSelect`:
|
|
9
|
-
* - `onUnsupportedFile`:
|
|
10
|
-
*
|
|
4
|
+
* - `accept`: list of types in the format of the HTML `accept` attribute
|
|
5
|
+
* (`image/*`, `.pdf`, `application/json`). Used to validate the selection.
|
|
6
|
+
* - `single`: reserved for limiting to a single file (currently only
|
|
7
|
+
* `onFilesSelect` is invoked with the full valid list).
|
|
8
|
+
* - `onFilesSelect`: called with the accepted selected files.
|
|
9
|
+
* - `onUnsupportedFile`: called when some chosen file does not match
|
|
10
|
+
* `accept`.
|
|
11
11
|
*/
|
|
12
12
|
interface OptionsInterface {
|
|
13
13
|
accept?: string[];
|
|
@@ -16,13 +16,13 @@ interface OptionsInterface {
|
|
|
16
16
|
onUnsupportedFile?: (f: File) => void;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* Hook
|
|
19
|
+
* Hook to handle file selection via `<input type="file">`.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
* `<input>`.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
21
|
+
* Returns a `getFiles` handler meant to be used in the `onChange` of an
|
|
22
|
+
* `<input>`. The handler validates each chosen file against `accept`:
|
|
23
|
+
* if any is invalid, it fires `onUnsupportedFile`; otherwise it delivers
|
|
24
|
+
* the full list to `onFilesSelect`. It always resets `e.target.value`
|
|
25
|
+
* at the end, allowing the same file to be selected again right away.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* ```tsx
|
|
@@ -30,7 +30,7 @@ interface OptionsInterface {
|
|
|
30
30
|
* const { getFiles } = useFileDialog({
|
|
31
31
|
* accept: ['image/*'],
|
|
32
32
|
* onFilesSelect: (files) => console.log(files),
|
|
33
|
-
* onUnsupportedFile: (file) => alert(`
|
|
33
|
+
* onUnsupportedFile: (file) => alert(`Invalid type: ${file.name}`),
|
|
34
34
|
* });
|
|
35
35
|
*
|
|
36
36
|
* return <input type="file" multiple onChange={getFiles} />;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `useIntersect` hook.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Re-exports the implementation — every other file in the project must import
|
|
5
|
+
* from the barrel, never from internal paths like `./useIntersect`.
|
|
6
6
|
*/
|
|
7
7
|
export * from './useIntersect';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Runs a callback when a DOM node enters the viewport.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Internally uses the [Intersection Observer
|
|
5
5
|
* API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API).
|
|
6
|
-
*
|
|
7
|
-
* (fallback
|
|
6
|
+
* When the API is not available on `window`, it fires `onIntersect` once
|
|
7
|
+
* (graceful fallback, assuming "visible").
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
* `ref`
|
|
11
|
-
*
|
|
9
|
+
* Returns a tuple with a single setter `[setNode]`: you must pass it as the
|
|
10
|
+
* `ref` of the element to observe. Whenever the node changes, the observer is
|
|
11
|
+
* reconfigured.
|
|
12
12
|
*
|
|
13
|
-
* @param options -
|
|
14
|
-
* @param onIntersect - Callback
|
|
15
|
-
* @returns
|
|
13
|
+
* @param options - Standard `IntersectionObserver` options (`root`, `rootMargin`, `threshold`).
|
|
14
|
+
* @param onIntersect - Callback fired when the node is visible.
|
|
15
|
+
* @returns Tuple `[setNode]` to attach as `ref` to the observed element.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```tsx
|
|
19
19
|
* function LoadMore({ onVisible }: { onVisible: () => void }) {
|
|
20
20
|
* const [setNode] = useIntersect({ threshold: 1 }, onVisible);
|
|
21
|
-
* return <div ref={setNode}>
|
|
21
|
+
* return <div ref={setNode}>Load more…</div>;
|
|
22
22
|
* }
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public barrel for the `useLazyEffect` hook.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Re-exports the implementation — every other file in the project must import
|
|
5
|
+
* from the barrel, never from internal paths like `./useLazyEffect`.
|
|
6
6
|
*/
|
|
7
7
|
export * from './useLazyEffect';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* "Lazy" version of `useEffect`: skips execution on the first render and only
|
|
3
|
+
* runs the callback on subsequent dependency updates.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Equivalent to a `componentDidUpdate` in hooks. Useful for reacting to
|
|
6
|
+
* state/prop changes without firing logic on mount.
|
|
7
7
|
*
|
|
8
|
-
* @param cb - Callback
|
|
9
|
-
* @param deps -
|
|
8
|
+
* @param cb - Callback executed on `deps` updates.
|
|
9
|
+
* @param deps - Dependency list (same semantics as `useEffect`).
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```tsx
|
|
13
13
|
* function Filter({ query }: { query: string }) {
|
|
14
14
|
* useLazyEffect(() => {
|
|
15
|
-
* //
|
|
15
|
+
* // does not fire on mount; only when `query` changes
|
|
16
16
|
* fetchResults(query);
|
|
17
17
|
* }, [query]);
|
|
18
18
|
* }
|