@apollion-dsi/core 5.3.0 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +90 -66
- package/lib/chunks/Notification.group-ICBTCHGB.esm.js +1 -0
- package/lib/chunks/chunk-2CW4G3UR.esm.js +1 -0
- package/lib/chunks/chunk-2WED4EVR.esm.js +43 -0
- package/lib/chunks/chunk-34QOWBI6.esm.js +1 -0
- package/lib/chunks/chunk-3RNWYCCU.esm.js +1 -0
- package/lib/chunks/{chunk-OXFE7XFH.esm.js → chunk-452VAAGY.esm.js} +1 -1
- package/lib/chunks/{chunk-75YRUKSI.esm.js → chunk-4BMWIGG4.esm.js} +1 -1
- package/lib/chunks/{chunk-PLYS2FYI.esm.js → chunk-4V7LOS5Z.esm.js} +1 -1
- package/lib/chunks/{chunk-RC453BIC.esm.js → chunk-4VEUQE23.esm.js} +1 -1
- package/lib/chunks/{chunk-I3LRFLFK.esm.js → chunk-5MWVBWXW.esm.js} +1 -1
- package/lib/chunks/{chunk-LC6CQDHG.esm.js → chunk-5NE62M4R.esm.js} +1 -1
- package/lib/chunks/{chunk-JN5ZNWJR.esm.js → chunk-5SQH2W2J.esm.js} +1 -1
- package/lib/chunks/chunk-6OXVRDS2.esm.js +1 -0
- package/lib/chunks/{chunk-IGHPN2OO.esm.js → chunk-73MPQ5OY.esm.js} +1 -1
- package/lib/chunks/chunk-7EGX7BMB.esm.js +1 -0
- package/lib/chunks/{chunk-NAPV2J5W.esm.js → chunk-AYZYOY57.esm.js} +1 -1
- package/lib/chunks/{chunk-YJ4ZRQMI.esm.js → chunk-BC24WDTC.esm.js} +1 -1
- package/lib/chunks/{chunk-2IZ35FTI.esm.js → chunk-BMGVQBTB.esm.js} +1 -1
- package/lib/chunks/{chunk-KDIEROKH.esm.js → chunk-BVKAXW2H.esm.js} +1 -1
- package/lib/chunks/{chunk-QTWYG4PZ.esm.js → chunk-CLDPV7NK.esm.js} +1 -1
- package/lib/chunks/chunk-CQK4PCNH.esm.js +1 -0
- package/lib/chunks/chunk-CZAUFZ45.esm.js +1 -0
- package/lib/chunks/chunk-CZJF4EVQ.esm.js +1 -0
- package/lib/chunks/{chunk-FYIBJA5Y.esm.js → chunk-D2T4FF27.esm.js} +1 -1
- package/lib/chunks/chunk-DLVRDZRA.esm.js +35 -0
- package/lib/chunks/{chunk-LAO57LJC.esm.js → chunk-EJ3VKFOX.esm.js} +1 -1
- package/lib/chunks/{chunk-5VB6YPWU.esm.js → chunk-FPUV6SIF.esm.js} +4 -4
- package/lib/chunks/chunk-G4IUG32B.esm.js +1 -0
- package/lib/chunks/{chunk-KAPHZYMX.esm.js → chunk-HMITYQV5.esm.js} +1 -1
- package/lib/chunks/{chunk-UB6WSKGK.esm.js → chunk-HRMJR6TD.esm.js} +1 -1
- package/lib/chunks/{chunk-MFMJXXV6.esm.js → chunk-I46TFDIX.esm.js} +1 -1
- package/lib/chunks/{chunk-KMQUGDL3.esm.js → chunk-IE4YNQFD.esm.js} +1 -1
- package/lib/chunks/{chunk-WXIAPOTW.esm.js → chunk-K2BKOGDX.esm.js} +1 -1
- package/lib/chunks/chunk-KASRN4X5.esm.js +1 -0
- package/lib/chunks/chunk-KHEBUAB4.esm.js +1 -0
- package/lib/chunks/{chunk-6C3PW2PK.esm.js → chunk-KYIPVR2T.esm.js} +1 -1
- package/lib/chunks/chunk-LATE6DIA.esm.js +1 -0
- package/lib/chunks/{chunk-52WIL6WF.esm.js → chunk-LTTG3NIJ.esm.js} +1 -1
- package/lib/chunks/{chunk-JSCUCQSD.esm.js → chunk-M32CTX5Z.esm.js} +1 -1
- package/lib/chunks/{chunk-7UYOO2PQ.esm.js → chunk-M33BYGAO.esm.js} +1 -1
- package/lib/chunks/{chunk-YX33Y5T6.esm.js → chunk-MJUAYHOW.esm.js} +1 -1
- package/lib/chunks/{chunk-BIBJ6JAY.esm.js → chunk-MLIU6MRT.esm.js} +1 -1
- package/lib/chunks/{chunk-SPWQRX4O.esm.js → chunk-MS7WJXDX.esm.js} +1 -1
- package/lib/chunks/chunk-NYDXZB2D.esm.js +1 -0
- package/lib/chunks/chunk-OHOMOBIV.esm.js +43 -0
- package/lib/chunks/chunk-OUHMU5PP.esm.js +1 -0
- package/lib/chunks/chunk-P5PWDVWO.esm.js +1 -0
- package/lib/chunks/chunk-PXCCSJNT.esm.js +1 -0
- package/lib/chunks/chunk-ROSLCQXL.esm.js +1 -0
- package/lib/chunks/{chunk-IUNHMZ3V.esm.js → chunk-RUKCBNDS.esm.js} +1 -1
- package/lib/chunks/chunk-TD4RVB2L.esm.js +4 -0
- package/lib/chunks/{chunk-ZP75XPKF.esm.js → chunk-TISQZ6PQ.esm.js} +1 -1
- package/lib/chunks/{chunk-7ORNMDF3.esm.js → chunk-UHMYTFMU.esm.js} +1 -1
- package/lib/chunks/chunk-VAJGIZNP.esm.js +1 -0
- package/lib/chunks/{chunk-WKQ3JIEG.esm.js → chunk-VHXSTTRG.esm.js} +1 -1
- package/lib/chunks/{chunk-46YVAYDW.esm.js → chunk-WNCECFZT.esm.js} +1 -1
- package/lib/chunks/chunk-WU5LSQM6.esm.js +1 -0
- package/lib/chunks/{chunk-MJX6TZUR.esm.js → chunk-XGE6OOEJ.esm.js} +1 -1
- package/lib/chunks/{chunk-RE3I3OYH.esm.js → chunk-YKIFYIC5.esm.js} +1 -1
- package/lib/chunks/chunk-YRBM4WYM.esm.js +1 -0
- package/lib/chunks/chunk-ZZFLBPSO.esm.js +39 -0
- package/lib/containers/Base/Base.interface.d.ts +7 -7
- package/lib/containers/Base/Base.style.d.ts +9 -8
- package/lib/containers/Base/index.d.ts +9 -9
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Card/Card.d.ts +8 -7
- package/lib/containers/Card/Card.interface.d.ts +16 -16
- package/lib/containers/Card/index.d.ts +5 -5
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/Content.d.ts +10 -10
- package/lib/containers/Content/Content.interface.d.ts +15 -15
- package/lib/containers/Content/index.d.ts +5 -5
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/Flex.interface.d.ts +10 -10
- package/lib/containers/Flex/Flex.style.d.ts +7 -6
- package/lib/containers/Flex/index.d.ts +8 -7
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/Grid.interface.d.ts +27 -26
- package/lib/containers/Grid/Grid.style.d.ts +10 -10
- package/lib/containers/Grid/index.d.ts +7 -7
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Motion/Motion.style.d.ts +37 -37
- package/lib/containers/Motion/index.d.ts +7 -6
- package/lib/containers/Motion/index.esm.js +1 -1
- package/lib/containers/Notification/Notification.context.d.ts +17 -17
- package/lib/containers/Notification/Notification.d.ts +23 -23
- package/lib/containers/Notification/Notification.group.d.ts +9 -9
- package/lib/containers/Notification/Notification.interface.d.ts +39 -39
- package/lib/containers/Notification/Notification.style.d.ts +136 -136
- package/lib/containers/Notification/index.d.ts +9 -9
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/Paper.interface.d.ts +5 -5
- package/lib/containers/Paper/Paper.style.d.ts +8 -8
- package/lib/containers/Paper/index.d.ts +5 -5
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/Scroll.d.ts +12 -12
- package/lib/containers/Scroll/Scroll.helpers.d.ts +15 -14
- package/lib/containers/Scroll/Scroll.interface.d.ts +7 -11
- package/lib/containers/Scroll/Scroll.style.d.ts +13 -13
- package/lib/containers/Scroll/index.d.ts +5 -5
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/DataTable.d.ts +8 -9
- package/lib/dataDisplay/DataTable/DataTable.filters.d.ts +24 -18
- package/lib/dataDisplay/DataTable/DataTable.helpers.d.ts +66 -59
- package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +181 -133
- package/lib/dataDisplay/DataTable/DataTable.props.d.ts +11 -11
- package/lib/dataDisplay/DataTable/DataTable.style.d.ts +29 -29
- package/lib/dataDisplay/DataTable/index.d.ts +5 -5
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/DescriptionList.d.ts +17 -17
- package/lib/dataDisplay/DescriptionList/DescriptionList.interface.d.ts +28 -28
- package/lib/dataDisplay/DescriptionList/index.d.ts +6 -6
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Meter/Meter.d.ts +15 -15
- package/lib/dataDisplay/Meter/Meter.interface.d.ts +36 -35
- package/lib/dataDisplay/Meter/Meter.style.d.ts +11 -11
- package/lib/dataDisplay/Meter/index.d.ts +4 -4
- package/lib/dataDisplay/Meter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/Table.d.ts +9 -9
- package/lib/dataDisplay/Table/Table/Table.interface.d.ts +40 -32
- package/lib/dataDisplay/Table/Table/index.d.ts +5 -5
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table.context.d.ts +15 -15
- package/lib/dataDisplay/Table/Table.shared.d.ts +5 -5
- package/lib/dataDisplay/Table/TableBody/TableBody.interface.d.ts +3 -3
- package/lib/dataDisplay/Table/TableBody/TableBody.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableBody/index.d.ts +5 -4
- package/lib/dataDisplay/Table/TableCell/TableCell.d.ts +5 -5
- package/lib/dataDisplay/Table/TableCell/TableCell.interface.d.ts +7 -7
- package/lib/dataDisplay/Table/TableCell/TableCell.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/TableCheckboxCell.d.ts +5 -5
- package/lib/dataDisplay/Table/TableCheckboxCell/TableCheckboxCell.interface.d.ts +3 -3
- package/lib/dataDisplay/Table/TableCheckboxCell/TableCheckboxCell.style.d.ts +5 -5
- package/lib/dataDisplay/Table/TableCheckboxCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.d.ts +4 -4
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.interface.d.ts +7 -7
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +8 -8
- package/lib/dataDisplay/Table/TableEmpty/index.d.ts +2 -2
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/TableFooter.d.ts +5 -5
- package/lib/dataDisplay/Table/TableFooter/TableFooter.interface.d.ts +4 -4
- package/lib/dataDisplay/Table/TableFooter/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeader/TableHeader.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeader/TableHeader.interface.d.ts +2 -2
- package/lib/dataDisplay/Table/TableHeader/TableHeader.style.d.ts +5 -5
- package/lib/dataDisplay/Table/TableHeader/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.d.ts +5 -5
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.interface.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/TableHeaderCheckboxCell.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/TableHeaderCheckboxCell.interface.d.ts +3 -2
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/TableHeaderCheckboxCell.style.d.ts +4 -4
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.d.ts +3 -3
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/TablePagination.d.ts +8 -8
- package/lib/dataDisplay/Table/TablePagination/TablePagination.interface.d.ts +17 -8
- package/lib/dataDisplay/Table/TablePagination/index.d.ts +2 -2
- package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableRow/TableRow.d.ts +3 -3
- package/lib/dataDisplay/Table/TableRow/TableRow.interface.d.ts +3 -3
- package/lib/dataDisplay/Table/TableRow/TableRow.style.d.ts +4 -3
- package/lib/dataDisplay/Table/TableRow/index.d.ts +3 -3
- package/lib/dataDisplay/Table/index.d.ts +5 -5
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/Tabs.d.ts +21 -21
- package/lib/dataDisplay/Tabs/Tabs.interface.d.ts +22 -22
- package/lib/dataDisplay/Tabs/Tabs.style.d.ts +9 -9
- package/lib/dataDisplay/Tabs/index.d.ts +5 -5
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/Avatar.d.ts +7 -7
- package/lib/elements/Avatar/Avatar.helpers.d.ts +6 -6
- package/lib/elements/Avatar/Avatar.interface.d.ts +23 -12
- package/lib/elements/Avatar/Avatar.style.d.ts +26 -7
- package/lib/elements/Avatar/index.d.ts +4 -4
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/Button.d.ts +12 -12
- package/lib/elements/Button/Button.interface.d.ts +39 -38
- package/lib/elements/Button/Button.style.d.ts +18 -15
- package/lib/elements/Button/index.d.ts +7 -7
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Calendar/Calendar.d.ts +10 -10
- package/lib/elements/Calendar/Calendar.interface.d.ts +15 -16
- package/lib/elements/Calendar/Calendar.style.d.ts +11 -11
- package/lib/elements/Calendar/index.d.ts +6 -6
- package/lib/elements/Calendar/index.esm.js +1 -1
- package/lib/elements/Dropdown/Dropdown.d.ts +17 -16
- package/lib/elements/Dropdown/Dropdown.interface.d.ts +26 -26
- package/lib/elements/Dropdown/index.d.ts +4 -4
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/Icon.d.ts +7 -7
- package/lib/elements/Icon/Icon.helpers.d.ts +10 -9
- package/lib/elements/Icon/Icon.interface.d.ts +25 -24
- package/lib/elements/Icon/Icon.style.d.ts +8 -8
- package/lib/elements/Icon/index.d.ts +5 -5
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/IconButton/IconButton.d.ts +8 -8
- package/lib/elements/IconButton/IconButton.interface.d.ts +17 -7
- package/lib/elements/IconButton/IconButton.style.d.ts +4 -4
- package/lib/elements/IconButton/index.d.ts +5 -5
- package/lib/elements/IconButton/index.esm.js +1 -1
- package/lib/elements/Image/Image.d.ts +9 -9
- package/lib/elements/Image/Image.interface.d.ts +14 -13
- package/lib/elements/Image/Image.style.d.ts +4 -4
- package/lib/elements/Image/index.d.ts +4 -4
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Label/Label.d.ts +13 -12
- package/lib/elements/Label/Label.interface.d.ts +11 -15
- package/lib/elements/Label/Label.style.d.ts +7 -7
- package/lib/elements/Label/index.d.ts +4 -4
- package/lib/elements/Label/index.esm.js +1 -1
- package/lib/elements/Link/Link.d.ts +31 -31
- package/lib/elements/Link/Link.interface.d.ts +31 -30
- package/lib/elements/Link/Link.style.d.ts +23 -22
- package/lib/elements/Link/index.d.ts +4 -4
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/List.d.ts +9 -9
- package/lib/elements/List/List.interface.d.ts +25 -25
- package/lib/elements/List/List.style.d.ts +8 -9
- package/lib/elements/List/index.d.ts +3 -3
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.d.ts +22 -22
- package/lib/elements/Modal/Modal.interface.d.ts +41 -41
- package/lib/elements/Modal/Modal.style.d.ts +509 -510
- package/lib/elements/Modal/index.d.ts +4 -4
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/Popover.d.ts +8 -8
- package/lib/elements/Popover/Popover.interface.d.ts +11 -11
- package/lib/elements/Popover/index.d.ts +3 -3
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/ProgressBar.d.ts +11 -11
- package/lib/elements/ProgressBar/ProgressBar.interface.d.ts +9 -9
- package/lib/elements/ProgressBar/ProgressBar.style.d.ts +21 -22
- package/lib/elements/ProgressBar/index.d.ts +6 -6
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Spinner/Spinner.d.ts +6 -6
- package/lib/elements/Spinner/Spinner.interface.d.ts +11 -11
- package/lib/elements/Spinner/Spinner.style.d.ts +9 -8
- package/lib/elements/Spinner/index.d.ts +4 -4
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/Svg/Svg.d.ts +8 -8
- package/lib/elements/Svg/Svg.interface.d.ts +19 -20
- package/lib/elements/Svg/Svg.style.d.ts +17 -9
- package/lib/elements/Svg/index.d.ts +4 -4
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/Text.d.ts +10 -10
- package/lib/elements/Text/Text.interface.d.ts +94 -90
- package/lib/elements/Text/Text.props.d.ts +35 -35
- package/lib/elements/Text/Text.style.d.ts +8 -8
- package/lib/elements/Text/index.d.ts +5 -5
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/Tooltip.d.ts +8 -8
- package/lib/elements/Tooltip/Tooltip.interface.d.ts +18 -19
- package/lib/elements/Tooltip/Tooltip.style.d.ts +14 -13
- package/lib/elements/Tooltip/index.d.ts +4 -4
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/BackgroundFactory/BackgroundFactory.d.ts +10 -10
- package/lib/factory/BackgroundFactory/BackgroundFactory.interface.d.ts +18 -14
- package/lib/factory/BackgroundFactory/index.d.ts +4 -4
- package/lib/factory/BorderFactory/BorderFactory.d.ts +16 -16
- package/lib/factory/BorderFactory/BorderFactory.interface.d.ts +20 -20
- package/lib/factory/BorderFactory/index.d.ts +4 -4
- package/lib/factory/ColorFactory/ColorFactory.d.ts +16 -16
- package/lib/factory/ColorFactory/ColorFactory.interface.d.ts +21 -28
- package/lib/factory/ColorFactory/index.d.ts +3 -3
- package/lib/factory/ContainerFactory/ContainerFactory.d.ts +7 -7
- package/lib/factory/ContainerFactory/ContainerFactory.interface.d.ts +27 -31
- package/lib/factory/ContainerFactory/index.d.ts +3 -3
- package/lib/factory/DeepFactory/DeepFactory.d.ts +9 -9
- package/lib/factory/DeepFactory/DeepFactory.interface.d.ts +19 -19
- package/lib/factory/DeepFactory/index.d.ts +3 -3
- package/lib/factory/DeepFactory/index.esm.js +1 -1
- package/lib/factory/FlexFactory/FlexFactory.d.ts +7 -7
- package/lib/factory/FlexFactory/FlexFactory.interface.d.ts +22 -22
- package/lib/factory/FlexFactory/index.d.ts +4 -4
- package/lib/factory/FontFactory/FontFactory.d.ts +6 -6
- package/lib/factory/FontFactory/FontFactory.interface.d.ts +19 -19
- package/lib/factory/FontFactory/index.d.ts +3 -3
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.d.ts +9 -9
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.interface.d.ts +15 -15
- package/lib/factory/ResponsiveFactory/index.d.ts +3 -3
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/SizeFactory/SizeFactory.d.ts +7 -7
- package/lib/factory/SizeFactory/SizeFactory.interface.d.ts +9 -9
- package/lib/factory/SizeFactory/index.d.ts +2 -2
- package/lib/factory/SpacingFactory/SpacingFactory.d.ts +7 -6
- package/lib/factory/SpacingFactory/SpacingFactory.interface.d.ts +9 -9
- package/lib/factory/SpacingFactory/index.d.ts +3 -3
- package/lib/factory/System/System.d.ts +24 -14
- package/lib/factory/System/System.interface.d.ts +17 -17
- package/lib/factory/System/index.d.ts +3 -3
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/index.d.ts +8 -7
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/Checkbox.d.ts +7 -7
- package/lib/form/Checkbox/Checkbox.interface.d.ts +9 -10
- package/lib/form/Checkbox/Checkbox.style.d.ts +12 -12
- package/lib/form/Checkbox/index.d.ts +3 -3
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/Field.d.ts +7 -7
- package/lib/form/Field/Field.interface.d.ts +6 -6
- package/lib/form/Field/Field.props.d.ts +5 -5
- package/lib/form/Field/Field.style.d.ts +3 -3
- package/lib/form/Field/index.d.ts +7 -6
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/FieldGroup.d.ts +9 -9
- package/lib/form/FieldGroup/FieldGroup.helpers.d.ts +9 -9
- package/lib/form/FieldGroup/FieldGroup.interface.d.ts +18 -18
- package/lib/form/FieldGroup/index.d.ts +3 -3
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/Form.helpers.d.ts +26 -26
- package/lib/form/Form/Form.interface.d.ts +33 -33
- package/lib/form/Form/Form.style.d.ts +4 -4
- package/lib/form/Form/index.d.ts +4 -4
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/Input.d.ts +7 -7
- package/lib/form/Input/Input.helpers.d.ts +8 -16
- package/lib/form/Input/Input.interface.d.ts +26 -26
- package/lib/form/Input/Input.style.d.ts +28 -28
- package/lib/form/Input/index.d.ts +5 -5
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/InputCurrency.d.ts +7 -7
- package/lib/form/InputCurrency/InputCurrency.helpers.d.ts +13 -13
- package/lib/form/InputCurrency/InputCurrency.interface.d.ts +9 -8
- package/lib/form/InputCurrency/index.d.ts +5 -5
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/InputDate.d.ts +13 -13
- package/lib/form/InputDate/InputDate.interface.d.ts +26 -25
- package/lib/form/InputDate/buildSyntheticEvent.d.ts +18 -18
- package/lib/form/InputDate/index.d.ts +8 -7
- package/lib/form/InputDate/index.esm.js +1 -1
- package/lib/form/InputMask/InputMask.d.ts +9 -9
- package/lib/form/InputMask/InputMask.interface.d.ts +9 -9
- package/lib/form/InputMask/index.d.ts +4 -3
- package/lib/form/InputMask/index.esm.js +1 -1
- package/lib/form/InputRange/InputRange.d.ts +9 -9
- package/lib/form/InputRange/InputRange.helpers.d.ts +14 -14
- package/lib/form/InputRange/InputRange.style.d.ts +24 -23
- package/lib/form/InputRange/index.d.ts +4 -4
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/InputSelect/DropdownIndicator.d.ts +6 -6
- package/lib/form/InputSelect/InputSelect.helpers.d.ts +12 -11
- package/lib/form/InputSelect/InputSelect.style.d.ts +12 -39
- package/lib/form/InputSelect/index.d.ts +4 -4
- package/lib/form/InputSelect/index.esm.js +1 -1
- package/lib/form/Radio/Radio.d.ts +7 -7
- package/lib/form/Radio/Radio.interface.d.ts +13 -14
- package/lib/form/Radio/Radio.style.d.ts +11 -11
- package/lib/form/Radio/index.d.ts +3 -3
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/Select/Select.style.d.ts +1 -12
- package/lib/form/Select/index.esm.js +1 -1
- package/lib/form/Switch/Switch.d.ts +11 -11
- package/lib/form/Switch/Switch.interface.d.ts +16 -17
- package/lib/form/Switch/Switch.style.d.ts +12 -25
- package/lib/form/Switch/index.d.ts +2 -2
- package/lib/form/Switch/index.esm.js +1 -1
- package/lib/form/TextArea/TextArea.d.ts +9 -9
- package/lib/form/TextArea/TextArea.interface.d.ts +15 -15
- package/lib/form/TextArea/TextArea.style.d.ts +9 -9
- package/lib/form/TextArea/index.d.ts +3 -3
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.d.ts +14 -14
- package/lib/form/UploadCard/UploadCard.helpers.d.ts +15 -15
- package/lib/form/UploadCard/UploadCard.interface.d.ts +40 -39
- package/lib/form/UploadCard/UploadCard.style.d.ts +16 -16
- package/lib/form/UploadCard/index.d.ts +6 -6
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/UploadCard/useFileControl.d.ts +6 -6
- package/lib/form/UploadCard/useFileState.d.ts +6 -6
- package/lib/form/UploadCard/useObjectUrl.d.ts +5 -5
- package/lib/form/index.esm.js +1 -1
- package/lib/hooks/useClickOutside/index.d.ts +3 -3
- package/lib/hooks/useClickOutside/useClickOutside.d.ts +8 -8
- package/lib/hooks/useClipboard/index.d.ts +3 -3
- package/lib/hooks/useClipboard/useClipboard.d.ts +10 -10
- package/lib/hooks/useClipboard/useClipboard.helpers.d.ts +8 -9
- package/lib/hooks/useDrag/index.d.ts +5 -5
- package/lib/hooks/useDrag/useDrag.d.ts +6 -6
- package/lib/hooks/useDrag/useDrag.helpers.d.ts +9 -9
- package/lib/hooks/useDrag/useDrag.interface.d.ts +9 -9
- package/lib/hooks/useEventCallback/index.d.ts +4 -4
- package/lib/hooks/useEventCallback/useEventCallback.d.ts +12 -12
- package/lib/hooks/useFileDialog/index.d.ts +3 -3
- package/lib/hooks/useFileDialog/useFileDialog.d.ts +15 -15
- package/lib/hooks/useIntersect/index.d.ts +3 -3
- package/lib/hooks/useIntersect/useIntersect.d.ts +11 -11
- package/lib/hooks/useLazyEffect/index.d.ts +3 -3
- package/lib/hooks/useLazyEffect/useLazyEffect.d.ts +7 -7
- package/lib/hooks/useMediaQuery/index.d.ts +5 -5
- package/lib/hooks/useMediaQuery/useMediaQuery.d.ts +7 -7
- package/lib/hooks/useMediaQuery/useMediaQuery.helpers.d.ts +8 -8
- package/lib/hooks/useMediaQuery/useMediaQuery.interface.d.ts +6 -6
- package/lib/hooks/useProgress/index.d.ts +3 -3
- package/lib/hooks/useProgress/useProgress.d.ts +13 -13
- package/lib/hooks/useScript/index.d.ts +3 -3
- package/lib/hooks/useScript/useScript.d.ts +7 -7
- package/lib/hooks/useToggle/index.d.ts +3 -3
- package/lib/hooks/useToggle/useToggle.d.ts +14 -14
- package/lib/hooks/useUnload/index.d.ts +3 -3
- package/lib/hooks/useUnload/useUnload.d.ts +10 -10
- package/lib/icons/icon.interface.d.ts +8 -7
- package/lib/icons/index.d.ts +6 -6
- package/lib/icons/set/alertInfo.d.ts +1 -1
- package/lib/icons/set/alignCenter.d.ts +1 -1
- package/lib/icons/set/alignJustify.d.ts +1 -1
- package/lib/icons/set/alignLeft.d.ts +1 -1
- package/lib/icons/set/alignRight.d.ts +1 -1
- package/lib/icons/set/arrowCircleDown.d.ts +1 -1
- package/lib/icons/set/arrowCircleLeft.d.ts +1 -1
- package/lib/icons/set/arrowCircleRight.d.ts +1 -1
- package/lib/icons/set/arrowCircleUp.d.ts +1 -1
- package/lib/icons/set/arrowLeft.d.ts +1 -1
- package/lib/icons/set/arrowRight.d.ts +1 -1
- package/lib/icons/set/attention.d.ts +1 -1
- package/lib/icons/set/ban.d.ts +1 -1
- package/lib/icons/set/calendar.d.ts +1 -1
- package/lib/icons/set/check.d.ts +1 -1
- package/lib/icons/set/chevronDown.d.ts +1 -1
- package/lib/icons/set/chevronLeft.d.ts +1 -1
- package/lib/icons/set/chevronRight.d.ts +1 -1
- package/lib/icons/set/chevronUp.d.ts +1 -1
- package/lib/icons/set/clock.d.ts +1 -1
- package/lib/icons/set/cog.d.ts +1 -1
- package/lib/icons/set/edit.d.ts +1 -1
- package/lib/icons/set/ellipsisH.d.ts +1 -1
- package/lib/icons/set/emojiAngry.d.ts +1 -1
- package/lib/icons/set/emojiBeamSweat.d.ts +1 -1
- package/lib/icons/set/emojiSadTear.d.ts +1 -1
- package/lib/icons/set/emojiSquintTear.d.ts +1 -1
- package/lib/icons/set/emojiStar.d.ts +1 -1
- package/lib/icons/set/emojiTired.d.ts +1 -1
- package/lib/icons/set/emojiTongue.d.ts +1 -1
- package/lib/icons/set/emojiTongueSquint.d.ts +1 -1
- package/lib/icons/set/envelope.d.ts +1 -1
- package/lib/icons/set/eye.d.ts +1 -1
- package/lib/icons/set/eyeSlash.d.ts +1 -1
- package/lib/icons/set/file.d.ts +1 -1
- package/lib/icons/set/filePdf.d.ts +1 -1
- package/lib/icons/set/menuBars.d.ts +1 -1
- package/lib/icons/set/minus.d.ts +1 -1
- package/lib/icons/set/pen.d.ts +1 -1
- package/lib/icons/set/phoneAlt.d.ts +1 -1
- package/lib/icons/set/phoneSlash.d.ts +1 -1
- package/lib/icons/set/picture.d.ts +1 -1
- package/lib/icons/set/pictures.d.ts +1 -1
- package/lib/icons/set/playCircle.d.ts +1 -1
- package/lib/icons/set/plus.d.ts +1 -1
- package/lib/icons/set/roundedAttention.d.ts +1 -1
- package/lib/icons/set/roundedCheck.d.ts +1 -1
- package/lib/icons/set/roundedInfo.d.ts +1 -1
- package/lib/icons/set/running.d.ts +1 -1
- package/lib/icons/set/search.d.ts +1 -1
- package/lib/icons/set/shareAlt.d.ts +1 -1
- package/lib/icons/set/shareSquare.d.ts +1 -1
- package/lib/icons/set/signIn.d.ts +1 -1
- package/lib/icons/set/signOut.d.ts +1 -1
- package/lib/icons/set/sort.d.ts +1 -1
- package/lib/icons/set/sortDown.d.ts +1 -1
- package/lib/icons/set/sortUp.d.ts +1 -1
- package/lib/icons/set/spinner.d.ts +1 -1
- package/lib/icons/set/thumbsDown.d.ts +1 -1
- package/lib/icons/set/thumbsUp.d.ts +1 -1
- package/lib/icons/set/times.d.ts +1 -1
- package/lib/icons/set/trash.d.ts +1 -1
- package/lib/icons/set/unlink.d.ts +1 -1
- package/lib/icons/set/upload.d.ts +1 -1
- package/lib/icons/set/user.d.ts +1 -1
- package/lib/icons/set/userAdd.d.ts +1 -1
- package/lib/icons/set/userBlock.d.ts +1 -1
- package/lib/icons/set/userCheck.d.ts +1 -1
- package/lib/icons/set/userConfig.d.ts +1 -1
- package/lib/icons/set/userDelete.d.ts +1 -1
- package/lib/icons/set/userEdit.d.ts +1 -1
- package/lib/icons/set/userInvalid.d.ts +1 -1
- package/lib/icons/set/userLocked.d.ts +1 -1
- package/lib/icons/set/users.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/DefaultLayout/DefaultLayout.d.ts +6 -6
- package/lib/layouts/DefaultLayout/DefaultLayout.interface.d.ts +8 -9
- package/lib/layouts/DefaultLayout/DefaultLayout.props.d.ts +4 -4
- package/lib/layouts/DefaultLayout/DefaultLayout.style.d.ts +6 -6
- package/lib/layouts/DefaultLayout/index.d.ts +6 -6
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/SideBarLayout.d.ts +5 -6
- package/lib/layouts/SideBarLayout/SideBarLayout.interface.d.ts +7 -7
- package/lib/layouts/SideBarLayout/SideBarLayout.props.d.ts +5 -5
- package/lib/layouts/SideBarLayout/SideBarLayout.style.d.ts +6 -5
- package/lib/layouts/SideBarLayout/index.d.ts +6 -6
- package/lib/layouts/SideBarLayout/index.esm.js +1 -1
- package/lib/layouts/index.esm.js +1 -1
- package/lib/scenario/CircleComponent/CircleComponent.d.ts +3 -3
- package/lib/scenario/CircleComponent/CircleComponent.style.d.ts +4 -4
- package/lib/scenario/CircleComponent/index.d.ts +5 -5
- package/lib/scenario/RectComponent/RectComponent.d.ts +3 -3
- package/lib/scenario/RectComponent/RectComponent.style.d.ts +3 -3
- package/lib/scenario/RectComponent/index.d.ts +5 -5
- package/lib/scenario/RectComponent/index.esm.js +1 -1
- package/lib/scenario/index.esm.js +1 -1
- package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.d.ts +12 -12
- package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.interface.d.ts +10 -10
- package/lib/skeleton/ComposedSkeleton/index.d.ts +7 -7
- package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
- package/lib/skeleton/TextPreset/TextPreset.d.ts +4 -4
- package/lib/skeleton/TextPreset/index.d.ts +4 -4
- package/lib/skeleton/TextPreset/index.esm.js +1 -1
- package/lib/skeleton/index.esm.js +1 -1
- package/lib/themes/Animation/Animation.interface.d.ts +9 -9
- package/lib/themes/Animation/Animation.props.d.ts +4 -5
- package/lib/themes/Animation/index.d.ts +4 -4
- package/lib/themes/Border/Border.interface.d.ts +26 -25
- package/lib/themes/Border/index.d.ts +4 -4
- package/lib/themes/Breakpoints/index.d.ts +3 -3
- package/lib/themes/Colors/Colors.helpers.d.ts +128 -129
- package/lib/themes/Colors/Colors.interface.d.ts +23 -23
- package/lib/themes/Colors/Colors.presets.d.ts +2 -2
- package/lib/themes/Colors/index.d.ts +3 -3
- package/lib/themes/Colors/index.esm.js +1 -1
- package/lib/themes/Component/Component.helpers.d.ts +24 -0
- package/lib/themes/Component/Component.interface.d.ts +93 -0
- package/lib/themes/Component/index.d.ts +18 -0
- package/lib/themes/Component/index.esm.js +1 -0
- package/lib/themes/Deep/index.d.ts +3 -3
- package/lib/themes/Deep/index.esm.js +1 -1
- package/lib/themes/Depth/index.d.ts +3 -3
- package/lib/themes/Dimension/index.d.ts +4 -4
- package/lib/themes/Font/index.d.ts +3 -3
- package/lib/themes/Foundation/Foundation.helpers.d.ts +12 -12
- package/lib/themes/Foundation/Foundation.interface.d.ts +25 -26
- package/lib/themes/Foundation/index.d.ts +5 -5
- package/lib/themes/GlobalStyle/index.d.ts +1 -1
- package/lib/themes/Semantic/Semantic.helpers.d.ts +14 -14
- package/lib/themes/Semantic/Semantic.interface.d.ts +36 -36
- package/lib/themes/Semantic/index.d.ts +5 -5
- package/lib/themes/Spacing/index.d.ts +3 -3
- package/lib/themes/Surface/Surface.d.ts +15 -15
- package/lib/themes/Surface/Surface.helpers.d.ts +26 -25
- package/lib/themes/Surface/Surface.interface.d.ts +9 -9
- package/lib/themes/Surface/index.d.ts +4 -4
- package/lib/themes/ThemeProvider/ThemeProvider.d.ts +4 -4
- package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +65 -41
- package/lib/themes/ThemeProvider/index.d.ts +7 -7
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.d.ts +1 -0
- package/lib/themes/index.esm.js +1 -1
- package/lib/utils/components/Breakpoints/Breakpoints.d.ts +12 -12
- package/lib/utils/components/Breakpoints/Breakpoints.interface.d.ts +8 -8
- package/lib/utils/components/Breakpoints/index.d.ts +3 -3
- package/lib/utils/components/index.d.ts +4 -4
- package/lib/utils/index.d.ts +4 -4
- package/lib/utils/logger.d.ts +4 -4
- package/lib/utils/mask.d.ts +12 -12
- package/lib/utils/object.d.ts +29 -27
- package/lib/utils/typeUtils.d.ts +18 -16
- package/lib/utils/utils.d.ts +31 -31
- package/lib/utils/window.d.ts +10 -10
- package/lib/vendors/Culori/component.d.ts +14 -14
- package/lib/vendors/Culori/engine.d.ts +40 -40
- package/lib/vendors/Culori/interface.d.ts +7 -7
- package/lib/vendors/Culori/named.d.ts +4 -4
- package/lib/vendors/DateFns/component.d.ts +16 -15
- package/lib/vendors/DateFns/interface.d.ts +6 -6
- package/lib/vendors/Deepmerge/component.d.ts +2 -2
- package/lib/vendors/Deepmerge/interface.d.ts +4 -4
- package/lib/vendors/EmotionIsPropValid/component.d.ts +3 -3
- package/lib/vendors/EmotionIsPropValid/interface.d.ts +3 -3
- package/lib/vendors/FastDeepEqual/component.d.ts +2 -2
- package/lib/vendors/FastDeepEqual/interface.d.ts +3 -3
- package/lib/vendors/FloatingUI/component.d.ts +18 -17
- package/lib/vendors/FloatingUI/interface.d.ts +10 -10
- package/lib/vendors/FramerMotion/component.d.ts +9 -9
- package/lib/vendors/FramerMotion/interface.d.ts +8 -7
- package/lib/vendors/LodashDebounce/component.d.ts +2 -2
- package/lib/vendors/LodashDebounce/interface.d.ts +2 -2
- package/lib/vendors/Nanoid/component.d.ts +5 -5
- package/lib/vendors/Nanoid/interface.d.ts +4 -4
- package/lib/vendors/ObjectHash/component.d.ts +2 -2
- package/lib/vendors/ObjectHash/interface.d.ts +2 -2
- package/lib/vendors/ReactContentLoader/component.d.ts +4 -4
- package/lib/vendors/ReactContentLoader/interface.d.ts +3 -3
- package/lib/vendors/ReactDayPicker/component.d.ts +7 -7
- package/lib/vendors/ReactDayPicker/interface.d.ts +11 -11
- package/lib/vendors/ReactHookForm/component.d.ts +14 -14
- package/lib/vendors/ReactHookForm/interface.d.ts +16 -16
- package/lib/vendors/ReactSelect/component.d.ts +6 -6
- package/lib/vendors/ReactSelect/interface.d.ts +24 -9
- package/lib/vendors/StyledComponents/component.d.ts +10 -10
- package/lib/vendors/StyledComponents/interface.d.ts +12 -12
- package/lib/vendors/StyledNormalize/component.d.ts +3 -3
- package/lib/vendors/StyledNormalize/interface.d.ts +3 -3
- package/lib/vendors/TanstackReactTable/component.d.ts +10 -10
- package/lib/vendors/TanstackReactTable/interface.d.ts +15 -15
- package/lib/vendors/TanstackReactVirtual/component.d.ts +8 -8
- package/lib/vendors/TanstackReactVirtual/interface.d.ts +6 -6
- package/lib/vendors/Zod/component.d.ts +3 -3
- package/package.json +7 -3
- package/lib/chunks/Notification.group-P24CKBGW.esm.js +0 -1
- package/lib/chunks/chunk-2JE2KM3Y.esm.js +0 -1
- package/lib/chunks/chunk-5RSKEPVX.esm.js +0 -1
- package/lib/chunks/chunk-7WWDUGCC.esm.js +0 -1
- package/lib/chunks/chunk-AGTNBWPD.esm.js +0 -39
- package/lib/chunks/chunk-B64YEI67.esm.js +0 -1
- package/lib/chunks/chunk-CWLQNJ2D.esm.js +0 -1
- package/lib/chunks/chunk-FGI2BYTC.esm.js +0 -1
- package/lib/chunks/chunk-FJUISCKG.esm.js +0 -1
- package/lib/chunks/chunk-G4OCANJN.esm.js +0 -1
- package/lib/chunks/chunk-GQSXSPXG.esm.js +0 -34
- package/lib/chunks/chunk-JYROOJRO.esm.js +0 -1
- package/lib/chunks/chunk-KFJ6EF6N.esm.js +0 -1
- package/lib/chunks/chunk-LBSRV6OY.esm.js +0 -1
- package/lib/chunks/chunk-M53TQFQR.esm.js +0 -43
- package/lib/chunks/chunk-MGLZFOSB.esm.js +0 -1
- package/lib/chunks/chunk-NO4SD45Y.esm.js +0 -1
- package/lib/chunks/chunk-OPAH7JBD.esm.js +0 -43
- package/lib/chunks/chunk-PAITPPEW.esm.js +0 -4
- package/lib/chunks/chunk-Q6EGG64M.esm.js +0 -1
- package/lib/chunks/chunk-QZNDN3FN.esm.js +0 -1
- package/lib/chunks/chunk-RTTQGZN4.esm.js +0 -1
- package/lib/chunks/chunk-UE2MT6VF.esm.js +0 -1
- package/lib/chunks/chunk-VRM5U7D2.esm.js +0 -1
- package/lib/chunks/chunk-YHJ77TR7.esm.js +0 -1
- /package/lib/chunks/{chunk-QF2YUOVX.esm.js → chunk-KL3ATH64.esm.js} +0 -0
package/README.md
CHANGED
|
@@ -1,53 +1,50 @@
|
|
|
1
1
|
# @apollion-dsi/core
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(TSDoc + Storybook + MDX).
|
|
3
|
+
React component library of the **Apollion Design System** — 50+
|
|
4
|
+
ready-to-use components, organized by category, with strict typing,
|
|
5
|
+
light/dark theming, and accessibility built in.
|
|
7
6
|
|
|
8
7
|
[](https://www.npmjs.com/package/@apollion-dsi/core)
|
|
9
8
|
|
|
10
|
-
##
|
|
9
|
+
## Installation
|
|
11
10
|
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
- **styled-components** 6.x
|
|
15
|
-
- **@tanstack/react-table** 8.x (`DataTable`)
|
|
16
|
-
- **framer-motion** (`Modal`, `Notification` animados)
|
|
17
|
-
- **Jest** + **Storybook** 8.x
|
|
18
|
-
|
|
19
|
-
## Instalação
|
|
11
|
+
`react`, `react-dom` and `styled-components` are **peer dependencies** —
|
|
12
|
+
install them alongside the package:
|
|
20
13
|
|
|
21
14
|
```bash
|
|
22
|
-
yarn add @apollion-dsi/core
|
|
15
|
+
yarn add @apollion-dsi/core react react-dom styled-components
|
|
23
16
|
```
|
|
24
17
|
|
|
25
|
-
Peer
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
| Peer dependency | Range |
|
|
19
|
+
| ------------------- | --------- |
|
|
20
|
+
| `react` | `^19.0.0` |
|
|
21
|
+
| `react-dom` | `^19.0.0` |
|
|
22
|
+
| `styled-components` | `^6.0.0` |
|
|
30
23
|
|
|
31
|
-
## Imports (
|
|
24
|
+
## Imports (subpaths only)
|
|
32
25
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
Since **v4** the root barrel **does not re-export** the components. The only
|
|
27
|
+
symbol in `@apollion-dsi/core` is `APOLLION_CORE_VERSION`.
|
|
28
|
+
Always import from granular subpaths — this enables per-component
|
|
29
|
+
tree-shaking:
|
|
36
30
|
|
|
37
31
|
```ts
|
|
38
32
|
import { ApollionProvider, createTheme } from '@apollion-dsi/core/themes';
|
|
39
33
|
import { Button } from '@apollion-dsi/core/elements/button';
|
|
40
34
|
import { Flex } from '@apollion-dsi/core/containers/flex';
|
|
41
35
|
|
|
42
|
-
// ❌
|
|
43
|
-
// converte imports legados automaticamente
|
|
36
|
+
// ❌ Not available since v4
|
|
44
37
|
import { Button } from '@apollion-dsi/core';
|
|
45
38
|
```
|
|
46
39
|
|
|
47
|
-
|
|
40
|
+
Animation helpers live behind their own subpath
|
|
41
|
+
(`@apollion-dsi/core/containers/motion`), so consumers that never import
|
|
42
|
+
animated components never pull `framer-motion` into their bundle.
|
|
43
|
+
|
|
44
|
+
## Minimal setup
|
|
48
45
|
|
|
49
|
-
|
|
50
|
-
`ThemeProvider`
|
|
46
|
+
Wrap your application with `ApollionProvider` (which also mounts the
|
|
47
|
+
`ThemeProvider` and the `NotificationsProvider`):
|
|
51
48
|
|
|
52
49
|
```tsx
|
|
53
50
|
import { createRoot } from 'react-dom/client';
|
|
@@ -61,32 +58,24 @@ createRoot(document.getElementById('root')!).render(
|
|
|
61
58
|
);
|
|
62
59
|
```
|
|
63
60
|
|
|
64
|
-
##
|
|
61
|
+
## Categories
|
|
65
62
|
|
|
66
|
-
|
|
|
67
|
-
| ---------------- |
|
|
68
|
-
| **Elements** | `Button`, `
|
|
69
|
-
| **Containers** | `
|
|
70
|
-
| **Form** | `
|
|
71
|
-
| **Data Display** | `
|
|
63
|
+
| Category | Components |
|
|
64
|
+
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
65
|
+
| **Elements** | `Avatar`, `Button`, `Calendar`, `Dropdown`, `Icon`, `IconButton`, `Image`, `Label`, `Link`, `List`, `Modal`, `Popover`, `ProgressBar`, `Spinner`, `Svg`, `Text`, `Tooltip` |
|
|
66
|
+
| **Containers** | `Base`, `Card`, `Content`, `Flex`, `Grid`, `Motion`, `Notification`, `Paper`, `Scroll` |
|
|
67
|
+
| **Form** | `Checkbox`, `Field`, `FieldGroup`, `Form`, `Input`, `InputCurrency`, `InputDate`, `InputMask`, `InputRange`, `InputSelect`, `Radio`, `Select`, `Switch`, `TextArea`, `UploadCard` |
|
|
68
|
+
| **Data Display** | `DataTable`, `DescriptionList`, `Meter`, `Table`, `Tabs` |
|
|
72
69
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
ComponentName/
|
|
77
|
-
├── ComponentName.tsx
|
|
78
|
-
├── ComponentName.interface.ts
|
|
79
|
-
├── ComponentName.style.ts
|
|
80
|
-
├── ComponentName.test.tsx
|
|
81
|
-
├── README.mdx
|
|
82
|
-
├── story.tsx
|
|
83
|
-
└── index.ts
|
|
84
|
-
```
|
|
70
|
+
Additional subpaths: `layouts/*` (page layouts), `skeleton/*` and
|
|
71
|
+
`scenario/*` (loading placeholders), `icons`, `hooks`, `utils`, `factory`,
|
|
72
|
+
and the granular theme scales under `themes/*`.
|
|
85
73
|
|
|
86
74
|
## Theming
|
|
87
75
|
|
|
88
|
-
|
|
89
|
-
|
|
76
|
+
Build a theme with `createTheme` and pass it to `ApollionProvider`.
|
|
77
|
+
Components consume semantic tokens (colors, spacing, typography, borders,
|
|
78
|
+
shadows) via styled-components props:
|
|
90
79
|
|
|
91
80
|
```tsx
|
|
92
81
|
import { Text } from '@apollion-dsi/core/elements/text';
|
|
@@ -94,34 +83,69 @@ import { Flex } from '@apollion-dsi/core/containers/flex';
|
|
|
94
83
|
|
|
95
84
|
<Flex bgColor="primary.light" p="large">
|
|
96
85
|
<Text color="primary.dark" fontWeight="bold">
|
|
97
|
-
|
|
86
|
+
Content
|
|
98
87
|
</Text>
|
|
99
88
|
</Flex>;
|
|
100
89
|
```
|
|
101
90
|
|
|
102
|
-
|
|
91
|
+
### Custom themes and component tokens
|
|
92
|
+
|
|
93
|
+
`createTheme` also resolves the **component token tier**
|
|
94
|
+
(`theme.component.*`): each component's themeable size decisions are named,
|
|
95
|
+
enumerable theme values. Override one field of one size without forking the
|
|
96
|
+
component:
|
|
103
97
|
|
|
104
98
|
```tsx
|
|
105
|
-
|
|
99
|
+
import { ApollionProvider, createTheme } from '@apollion-dsi/core/themes';
|
|
100
|
+
|
|
101
|
+
const theme = createTheme({
|
|
102
|
+
component: { button: { size: { medium: { px: 'xl' } } } },
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
<ApollionProvider theme={theme}>...</ApollionProvider>;
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Dark mode
|
|
109
|
+
|
|
110
|
+
Pass a `lightTheme`/`darkTheme` pair; switch with the controlled `themeMode`
|
|
111
|
+
prop (`'light' | 'dark'`) or let `useSystemPreference` follow the operating
|
|
112
|
+
system's `prefers-color-scheme`:
|
|
113
|
+
|
|
114
|
+
```tsx
|
|
115
|
+
const darkTheme = createTheme({
|
|
116
|
+
colors: { baseDark: '#FCFCFC', baseLight: '#26292E', deepDark: '#FFF', deepLight: '#000' },
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
<ApollionProvider lightTheme={createTheme()} darkTheme={darkTheme} useSystemPreference>
|
|
120
|
+
...
|
|
121
|
+
</ApollionProvider>;
|
|
106
122
|
```
|
|
107
123
|
|
|
108
|
-
##
|
|
124
|
+
## Accessibility
|
|
125
|
+
|
|
126
|
+
- Tonal color pairs are WCAG AA legible **by construction** — contrast
|
|
127
|
+
helpers (`getContrastColor`, `readableColor`) guarantee a readable ink for
|
|
128
|
+
any background, in both themes.
|
|
129
|
+
- Every Storybook story passes the semantic axe sweep (`wcag2a` +
|
|
130
|
+
`wcag2aa`) with zero violations.
|
|
131
|
+
|
|
132
|
+
## Documentation
|
|
133
|
+
|
|
134
|
+
- **Official documentation:** <https://www.apollion.com.br>
|
|
135
|
+
- **Changelog:** <https://www.apollion.com.br/changelog>
|
|
109
136
|
|
|
110
|
-
|
|
111
|
-
| ---------------------------------------------------------- | -------------------------------------------------------- |
|
|
112
|
-
| `yarn workspace @apollion-dsi/core run start` | TSC em watch. |
|
|
113
|
-
| `yarn workspace @apollion-dsi/core run storybook` | Storybook em `http://localhost:4000`. |
|
|
114
|
-
| `yarn workspace @apollion-dsi/core run build` | Limpa `lib/`, roda esbuild + types + storybook estático. |
|
|
115
|
-
| `yarn workspace @apollion-dsi/core run test` | Equivalente a `validate`. |
|
|
116
|
-
| `yarn workspace @apollion-dsi/core run validate` | Lint + types + prettier + Jest + build. |
|
|
117
|
-
| `yarn workspace @apollion-dsi/core run coverage` | Jest coverage. |
|
|
118
|
-
| `yarn workspace @apollion-dsi/core run audit-dependencies` | Audit-ci. |
|
|
137
|
+
## Lineage & Acknowledgements
|
|
119
138
|
|
|
120
|
-
|
|
139
|
+
Apollion (2020) and DEX (2018) were built in collaboration between
|
|
140
|
+
**Fernando Balves** (author) and **Fernando Poe** (co-author / Design Manager).
|
|
141
|
+
The intuition of semantic tokens, generative palettes and the separation of
|
|
142
|
+
intent ⇄ implementation was born from that joint work.
|
|
121
143
|
|
|
122
|
-
|
|
123
|
-
|
|
144
|
+
**[Aplica DS](https://aplica.me/en/)** (2025), by Fernando Poe, is the public,
|
|
145
|
+
independent evolution of that thinking. Apollion's token architecture adopts the
|
|
146
|
+
non-disruptive subset of its layer model (Semantic, Foundation, Surface) — see
|
|
147
|
+
[docs.aplica.me](https://docs.aplica.me/en-US) for the upstream concept.
|
|
124
148
|
|
|
125
|
-
##
|
|
149
|
+
## License
|
|
126
150
|
|
|
127
151
|
MIT.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as s}from"./chunk-G4IUG32B.esm.js";import"./chunk-KHEBUAB4.esm.js";import"./chunk-KYIPVR2T.esm.js";import"./chunk-CZAUFZ45.esm.js";import"./chunk-H2KVPACE.esm.js";import"./chunk-5SQH2W2J.esm.js";import"./chunk-TD4RVB2L.esm.js";import"./chunk-BVKAXW2H.esm.js";import"./chunk-TUALAE4W.esm.js";import"./chunk-ZLFQHCLE.esm.js";import"./chunk-KL3ATH64.esm.js";import"./chunk-T6ZB656A.esm.js";import"./chunk-7AFAO7ZS.esm.js";import{c as a}from"./chunk-PXCCSJNT.esm.js";import"./chunk-RU6QRCR7.esm.js";import"./chunk-CWRWYU7D.esm.js";import"./chunk-2R6XFFSQ.esm.js";import"./chunk-TG5BCBO4.esm.js";import"./chunk-JOKVE3IX.esm.js";import"./chunk-BRXIFPWB.esm.js";import"./chunk-3EOSES4S.esm.js";import"./chunk-NQBO2D7L.esm.js";import"./chunk-3DUB5C4Z.esm.js";import"./chunk-KT6QQ3UJ.esm.js";import"./chunk-7EGX7BMB.esm.js";import"./chunk-OWMRURZT.esm.js";import"./chunk-6X6WKZ3Y.esm.js";import"./chunk-2ROOI4B2.esm.js";import"./chunk-2FQC32AA.esm.js";import"./chunk-UNM6DHPD.esm.js";import"./chunk-SPHHNZVP.esm.js";import"./chunk-4UWZA5FD.esm.js";import"./chunk-KQQ7V7VG.esm.js";import"./chunk-3QSPHURU.esm.js";import"./chunk-NDIYF5SX.esm.js";import"./chunk-A3OJEVGQ.esm.js";import"./chunk-KR2X2UQG.esm.js";import"./chunk-BE2JDTVA.esm.js";import"./chunk-5Q265MC7.esm.js";import"./chunk-3V3ZEGHO.esm.js";import"./chunk-WGTBX72G.esm.js";import"./chunk-IWMEDT6U.esm.js";import"./chunk-KASRN4X5.esm.js";import"./chunk-BMGVQBTB.esm.js";import"./chunk-BC24WDTC.esm.js";import"./chunk-6N52NFPT.esm.js";import{a as r,b as m}from"./chunk-6OXVRDS2.esm.js";import"./chunk-CLDPV7NK.esm.js";import{a as o}from"./chunk-YRBM4WYM.esm.js";import"./chunk-5OKRFXLL.esm.js";import"./chunk-LATE6DIA.esm.js";import"./chunk-VMIXRIQ2.esm.js";import"./chunk-MBYC37CX.esm.js";import"./chunk-NI6YLGUA.esm.js";import"./chunk-OZIEVLUR.esm.js";import"./chunk-3RNWYCCU.esm.js";import"./chunk-RZDVS7AY.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-OXQA5WD3.esm.js";import"./chunk-A6Z2M2XU.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-TLBV5OUM.esm.js";import"./chunk-E3MSXQXV.esm.js";import"./chunk-TQJTHPA3.esm.js";import"./chunk-BV6GHAF7.esm.js";import{c as i}from"./chunk-G5Z7USXC.esm.js";import"./chunk-APD22JEO.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";import t,{useEffect as d,useState as y}from"react";import{createPortal as x}from"react-dom";var C=n(()=>{let{notifications:f,removeNotification:p}=a(),[c,l]=y(!1);return d(()=>{l(!0)},[]),!c||!i?null:x(t.createElement(o,{style:{position:"fixed",bottom:"1rem",right:"1rem"}},t.createElement(r,null,f.map(({id:e,...u})=>t.createElement(m,{key:e,initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{scale:0,opacity:0,height:0},style:{minWidth:300,maxWidth:"30vw",zIndex:100}},t.createElement(o,{style:{margin:"0.5rem"}},t.createElement(s,{...u,visible:!0,closable:!0,onDismiss:()=>p(e)})))))),i)},"NotificationGroup"),W=C;export{W as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as L}from"./chunk-E3MSXQXV.esm.js";import{b as N,g as O}from"./chunk-APD22JEO.esm.js";import{a as I}from"./chunk-GZONWSRB.esm.js";import H,{forwardRef as V}from"react";var a=O.div.withConfig({componentId:"sc-1ihglem-0"})(["",""],({theme:r})=>{var l,c,f,g,u,b,y,m,h,x,w,_,v,C,k,S,R,z,F,W,P;let o=(l=r.colors.baseDark)!=null?l:"#000",t=(c=r.colors.neutral)!=null?c:{},p=(f=r.colors.grayscale)!=null?f:{},d=(u=(g=r.colors.primary)==null?void 0:g.base)!=null?u:o,T=L(d,(b=r.colors.baseLight)!=null?b:"#FFFFFF"),n=(m=(y=r.colors.primary)==null?void 0:y.light)!=null?m:o,s=(x=(h=r.colors.primary)==null?void 0:h.action)!=null?x:o,i=(v=(_=(w=r.colors.disabled)==null?void 0:w.color)!=null?_:t[70])!=null?v:o,e=I(U=>{var j,D,B;return(B=(D=(j=r.colors).getContrastColor)==null?void 0:D.call(j,U))!=null?B:o},"contrastOn");return N(["--rdp-accent-color:",";--rdp-accent-background-color:",";--rdp-day-height:2.25rem;--rdp-day-width:2.25rem;--rdp-day_button-border-radius:",";display:inline-block;width:fit-content;font-family:",";color:",";padding:",";.rdp-root{--rdp-outline:2px solid ",";--rdp-outline-offset:2px;position:relative;}.rdp-months{display:flex;gap:",";}.rdp-month_caption{display:flex;align-items:center;justify-content:center;padding:"," 0 ",";font-size:",";font-weight:",";text-transform:capitalize;color:",";}.rdp-nav{position:absolute;top:",";right:0;display:flex;gap:",";}.rdp-dropdowns{display:flex;align-items:center;gap:",";}.rdp-dropdown_root{position:relative;display:inline-flex;align-items:center;}.rdp-dropdown{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;border:none;appearance:none;cursor:pointer;}.rdp-dropdown_root .rdp-caption_label{display:inline-flex;align-items:center;gap:",";padding:2px ",";border:1px solid ",";border-radius:",";background:",";white-space:nowrap;}.rdp-caption_label .rdp-chevron{width:0.625rem;height:0.625rem;flex-shrink:0;fill:currentColor;}.rdp-button_previous .rdp-chevron,.rdp-button_next .rdp-chevron{width:0.875rem;height:0.875rem;fill:currentColor;}.rdp-month_caption:has(.rdp-dropdowns){justify-content:flex-start;padding-right:4.5rem;}.rdp-button_previous,.rdp-button_next{width:1.75rem;height:1.75rem;display:inline-flex;align-items:center;justify-content:center;border:1px solid ",";border-radius:",";background:",";color:",";cursor:pointer;transition:",";&:hover:not(:disabled){border-color:",";color:",";}&:disabled{color:",";cursor:default;}}.rdp-weekdays{display:grid;grid-template-columns:repeat(7,var(--rdp-day-width));}.rdp-weekday{width:var(--rdp-day-width);height:1.75rem;display:inline-flex;align-items:center;justify-content:center;font-size:",";font-weight:",";color:",";text-transform:uppercase;}.rdp-week{display:grid;grid-template-columns:repeat(7,var(--rdp-day-width));}.rdp-day{width:var(--rdp-day-width);height:var(--rdp-day-height);padding:0;}.rdp-day_button{width:100%;height:100%;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:var(--rdp-day_button-border-radius);background:transparent;color:inherit;font-size:",";cursor:pointer;transition:",";&:hover:not(:disabled){background:",";color:",";}&:focus-visible{outline:var(--rdp-outline);outline-offset:var(--rdp-outline-offset);}&:disabled{cursor:default;color:",";}}.rdp-today:not(.rdp-outside):not(.rdp-selected) .rdp-day_button{border-color:",";color:",";font-weight:",";}.rdp-selected .rdp-day_button,.rdp-selected .rdp-day_button:hover:not(:disabled){background:",";color:",";border-color:",";}.rdp-outside .rdp-day_button{color:",";}.rdp-disabled .rdp-day_button,.rdp-disabled .rdp-day_button:hover{color:",";background:transparent;cursor:default;}.rdp-hidden{visibility:hidden;}.rdp-range_middle .rdp-day_button{background:",";color:",";border-radius:0;}.rdp-range_start .rdp-day_button{border-top-right-radius:0;border-bottom-right-radius:0;}.rdp-range_end .rdp-day_button{border-top-left-radius:0;border-bottom-left-radius:0;}"],d,n,r.border.borderRadius.micro,r.font.fontFamily.main,(C=t[140])!=null?C:o,r.spacing("xs"),s,r.spacing("medium"),r.spacing("xs"),r.spacing("small"),r.font.fontSize.small,r.font.fontWeight.bold,(k=t[140])!=null?k:o,r.spacing("xs"),r.spacing("micro"),r.spacing("small"),r.spacing("micro"),r.spacing("xs"),(S=t[40])!=null?S:o,r.border.borderRadius.micro,(R=p[0])!=null?R:"transparent",(z=t[40])!=null?z:o,r.border.borderRadius.micro,(F=p[0])!=null?F:"transparent",(W=t[140])!=null?W:o,r.animation.transitions.short,d,d,i,r.font.fontSize.micro,r.font.fontWeight.bold,(P=t[120])!=null?P:o,r.font.fontSize.small,r.animation.transitions.short,n,e(n),i,s,T,r.font.fontWeight.bold,d,e(d),d,i,i,n,e(n))});a.displayName="Calendar";import{format as Y,isValid as Z,parse as $,parseISO as rr}from"date-fns";import{enUS as tr,ptBR as A}from"date-fns/locale";import{DayPicker as E}from"react-day-picker";var M=V(({locale:r=A,...o},t)=>H.createElement(a,{ref:t},H.createElement(E,{locale:r,...o})));M.displayName="Calendar";export{a,Y as b,Z as c,rr as d,A as e,M as f};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import{a as d}from"./chunk-KASRN4X5.esm.js";import{c}from"./chunk-LATE6DIA.esm.js";import{b as a}from"./chunk-APD22JEO.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var u=n(({trackW:t,thumb:o,pad:e})=>t-o-e*2,"thumbTravel"),s=n(({theme:t,$size:o="medium"})=>t.component.switch.size[o],"sizeTokens"),r=c("input").withConfig({componentId:"apollion-switch-input"})`
|
|
2
|
+
position: absolute;
|
|
3
|
+
left: 0;
|
|
4
|
+
top: 0;
|
|
5
|
+
margin: 0;
|
|
6
|
+
z-index: 1;
|
|
7
|
+
opacity: 0;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
`,p=c("span").withConfig({componentId:"apollion-switch-thumb"})`
|
|
10
|
+
--travel: ${t=>u(s(t))}px;
|
|
11
|
+
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 50%;
|
|
14
|
+
left: ${t=>s(t).pad}px;
|
|
15
|
+
width: ${t=>s(t).thumb}px;
|
|
16
|
+
height: ${t=>s(t).thumb}px;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
background: ${({theme:t})=>t.colors.neutral[0]};
|
|
19
|
+
transform: translateY(-50%);
|
|
20
|
+
transition: ${({theme:t})=>t.animation.transitions.short};
|
|
21
|
+
`,i=c("span").withConfig({componentId:"apollion-switch-track"})`
|
|
22
|
+
position: relative;
|
|
23
|
+
display: inline-block;
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
width: ${t=>s(t).trackW}px;
|
|
26
|
+
height: ${t=>s(t).trackH}px;
|
|
27
|
+
border-radius: ${t=>s(t).trackH/2}px;
|
|
28
|
+
background: ${({theme:t})=>t.colors.muted};
|
|
29
|
+
margin-right: ${({theme:t})=>t.spacing("xs")};
|
|
30
|
+
transition: ${({theme:t})=>t.animation.transitions.short};
|
|
31
|
+
`;function f({variant:t,theme:o}){let e=o.colors.information;return t==="success"&&(e=o.colors.success),t==="error"&&(e=o.colors.danger),a(["&:hover > ",",& > ",":focus ~ ","{box-shadow:",";}& > ",":checked ~ ","{background:",";}& > ",":checked ~ "," > ","{transform:translateY(-50%) translateX(var(--travel));}"],i,r,i,o.depth("level-zero"),r,i,e.base,r,i,p)}n(f,"switchVariantStyle");function y({theme:t,disabled:o}){return o?a(["color:",";& > ",":disabled{cursor:default;}& > ",":disabled ~ ","{background-color:",";box-shadow:none;}& > ",":disabled:checked ~ ","{background-color:",";}"],t.colors.disabled.color,r,r,i,t.colors.disabled.fill,r,i,t.colors.disabled.color):null}n(y,"disabledStyle");var m=c("label").withConfig({componentId:"apollion-switch-container"})`
|
|
32
|
+
position: relative;
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
align-items: center;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
gap: ${({theme:t})=>t.spacing("xs")};
|
|
38
|
+
margin: ${({theme:t})=>t.spacing(0,"xs","xs",0)};
|
|
39
|
+
transition: ${({theme:t})=>t.animation.transitions.short};
|
|
40
|
+
|
|
41
|
+
${f}
|
|
42
|
+
${y}
|
|
43
|
+
`;import l from"react";var w=n(({label:t=null,labelProps:o,variant:e="default",size:h="medium",...S})=>l.createElement(m,{variant:e,disabled:S.disabled},l.createElement(r,{...S,type:"checkbox",role:"switch"}),l.createElement(i,{$size:h},l.createElement(p,{$size:h})),typeof t=="string"?l.createElement(d,{fontSize:"small",color:"neutral.180",...o},t):t),"SwitchComponent");w.displayName="Switch";export{r as a,p as b,i as c,m as d,w as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as H}from"./chunk-M32CTX5Z.esm.js";import{b as D,c as F,d as R,e as b,f as y,g as v,h as x,i as E,j as C,k as M,m as T,n as h,o as N}from"./chunk-5H2LWL6K.esm.js";import{a as P}from"./chunk-BE2JDTVA.esm.js";import{a as w}from"./chunk-4V7LOS5Z.esm.js";import{e as d}from"./chunk-BV6GHAF7.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import o,{useEffect as q,useState as G}from"react";var J={left:"bottom-start",right:"bottom-end",center:"bottom"},I=r(({children:a,options:n,content:s,hoverable:L=!1,position:z="left",width:i,full:c})=>{if(!n&&!s)throw new Error('Dropdown deve receber "content" ou "options" props');let m=d(a),A=n?"menu":"dialog",[O,S]=G(),{active:l,enable:f,disable:g,toggle:W}=P(!1),{refs:u,floatingStyles:k,context:t,elements:p}=M({open:l,onOpenChange:r(e=>e?f():g(),"onOpenChange"),placement:J[z],middleware:[y(4),F(),x({padding:8})],whileElementsMounted:D}),{getReferenceProps:B,getFloatingProps:K}=h([E(t,{enabled:!m}),T(t,{enabled:L,move:!1,handleClose:v()}),C(t,{outsidePress:!0,escapeKey:!0}),N(t,{role:A})]);q(()=>{if(c&&p.reference){let e=p.reference.getBoundingClientRect();S(e.width)}},[c,p.reference]);let U=r(()=>{let e=m?a({isOpen:l,open:f,toggle:W}):a;return o.cloneElement(e,{ref:u.setReference,...B()})},"renderTrigger"),j=r(()=>{let e=s;return Array.isArray(n)&&(e=o.createElement(H,{gap:"zero",color:"primary.action",content:n})),d(s)&&(e=s({close:g})),o.createElement(w,{p:"xs",borderRadius:"xs",deep:2,width:i!=null?i:O},e)},"renderDropdownContent");return o.createElement(o.Fragment,null,U(),l&&o.createElement(b,null,o.createElement(R,{context:t,modal:!1,initialFocus:-1},o.createElement("div",{ref:u.setFloating,style:{...k,zIndex:500},...K()},j()))))},"DropdownComponent");I.displayName="Dropdown";export{I as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as u,d as p,e as g,f as y,l as d,m as C,q as l,r as f,s as h,t as I,u as b}from"./chunk-E3MSXQXV.esm.js";import{o as c,p as m}from"./chunk-BV6GHAF7.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var s={baseDark:"#26292E",baseLight:"#FCFCFC",transparent:"transparent",deepDark:"#000",deepLight:"#FFF",main:"#003750",opposite:u("#003750"),complementary:"#F6BA20",information:"#3399FF",success:"#2CB567",danger:"#E12712",warning:"#FFBB00",primary:"#32AFDC",secondary:"#2D81AA",tertiary:"#2CE571"},F=/^(#|rgba?\(|hsla?\(|oklch\(|oklab\(|color\(|var\(--|currentColor$|transparent$|inherit$)/;function L(r){let e={baseDark:r.baseDark,baseLight:r.baseLight,deepDark:r.deepDark,deepLight:r.deepLight,transparent:r.transparent,neutral:f(r),grayscale:l(r),...h(r),...I(r),...b(r)},t={...e,...C(e),disabled:d(e)},i=m(c);return Object.assign(o=>F.test(o)?o:i(o,t,"base"),t,{getColor:g,getContrastColor:y})}n(L,"createColors");function x(r=s){let e=l(r);return{...r,main:e[100],opposite:e[10],complementary:e[20],primary:e[60],secondary:e[40],tertiary:e[30],information:e[50],success:e[70],warning:e[80],danger:e[90]}}n(x,"grayscalePalette");function k(r=s){var i;let e=(i=r.baseLight)!=null?i:s.baseLight,t=n(o=>o&&(typeof o=="string"?p(o,e,7):{...o,base:p(o.base,e,7)}),"aaa");return{...r,main:t(r.main),opposite:t(r.opposite),complementary:t(r.complementary),primary:t(r.primary),secondary:t(r.secondary),tertiary:t(r.tertiary),information:t(r.information),success:t(r.success),warning:t(r.warning),danger:t(r.danger)}}n(k,"highContrastPalette");var a={orange:"#E69F00",skyBlue:"#56B4E9",bluishGreen:"#009E73",vermillion:"#D55E00",blue:"#0072B2"};function B(r=s){return{...r,main:r.main,danger:a.vermillion,success:a.bluishGreen,warning:a.orange,primary:a.skyBlue,information:a.blue,secondary:a.blue}}n(B,"colorblindPalette");var v={grayscale:x,"high-contrast":k,colorblind:B};export{s as a,L as b,x as c,k as d,a as e,B as f,v as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-KASRN4X5.esm.js";import{a as r}from"./chunk-CLDPV7NK.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import e from"react";var d=i(({media:t,title:o,description:l,actionComponent:n,children:m,...f})=>{let x=typeof o=="string"?e.createElement(a,{as:"h4",fontSize:"small",fontWeight:"bold",lineHeight:"regular",color:"neutral.180"},o):o,s=typeof l=="string"?e.createElement(a,{as:"p",fontSize:"micro",lineHeight:"wild",color:"neutral.180"},l):l;return e.createElement(r,{display:"inline-flex",borderRadius:"md",borderWidth:"thin",borderColor:"neutral.30",overflow:"hidden",...f},t&&e.createElement(r,{area:"media"},t),e.createElement(r,{p:"large",gap:"large"},e.createElement(r,{area:"content",gap:"xs"},e.createElement(r,{area:"title"},x),e.createElement(r,{area:"subtitle"},s,m)),n&&e.createElement(r,{area:"action",flex:"fluid",mt:"large"},n)))},"CardComponent");d.displayName="Card";export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as $}from"./chunk-43YSWDK6.esm.js";import{g as C}from"./chunk-
|
|
1
|
+
import{a as $}from"./chunk-43YSWDK6.esm.js";import{g as C}from"./chunk-NYDXZB2D.esm.js";import{a as u}from"./chunk-GZONWSRB.esm.js";import V,{forwardRef as v,useEffect as E,useMemo as O,useState as F}from"react";function l(e){return e.replace(/\D/g,"")}u(l,"removeNonDigits");function x(e,r="."){return l(e).replace(/\B(?=(\d{3})+(?!\d))/g,r)}u(x,"formatNumber");function p(e,r){let t=e;if(r.prefix&&t&&(t=e.replaceAll(r.prefix,"").trim()),t==="")return t;let{decimal:n,thousand:o,validate:f}=r,c=t.indexOf(n);if(c>=0){let a=t.substring(0,c),i=t.substring(c);a=x(a,o),f&&(i=`${i}00`),i=l(i).substring(0,2),t=`${a}${n}${i}`}else t=x(t),f&&(t+=`${n}00`);return t}u(p,"formatCurrency");function B(e,r=","){if(typeof e=="number")return e;try{let t=e.indexOf(r);if(t>=0){let n=l(e.substring(0,t)),o=l(e.substring(t));return+`${n}.${o}`}return Number(l(e))}catch(t){return console.log("Failed to convert string to Number"),0}}u(B,"currencyToNumber");function g(e,r){let t=e;return typeof t=="number"&&(t=t.toLocaleString("pt-BR",{style:"decimal"})),p(t,{validate:!0,...r})}u(g,"getInitialCurrencyValue");var M=v(({onChange:e,value:r,decimal:t=",",thousand:n=".",prefix:o="R$",...f},c)=>{let[a,i]=F(()=>r?g(r,{decimal:t,thousand:n,prefix:o}):"");E(()=>{i(s=>{let m=r?g(r,{decimal:t,thousand:n,prefix:o}):"";return m!==s?m:s})},[r,t,n,o]);let d=O(()=>$(s=>e==null?void 0:e(s),250),[e]),b=u((s,m)=>{var I;let y=p((I=s.target.value)!=null?I:"",{validate:m,decimal:t,thousand:n,prefix:o});i(y),d(y)},"handleChange"),N=u(()=>{i(""),d("")},"resetValues"),S=o?`${o} ${a}`:a;return V.createElement(C,{...f,ref:c,reset:N,value:S,onChange:b,onBlur:s=>b(s,!0)})});M.displayName="InputCurrency";export{p as a,B as b,g as c,M as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-CLDPV7NK.esm.js";import{g as e}from"./chunk-APD22JEO.esm.js";var t=e(r).attrs(o=>({p:"medium",borderRadius:"micro",bgColor:"neutral.0",deep:2,...o})).withConfig({componentId:"sc-5vfy6v-0"})([""]);export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as x,c as b}from"./chunk-
|
|
1
|
+
import{a as x,c as b}from"./chunk-5NE62M4R.esm.js";import{a as h}from"./chunk-CLDPV7NK.esm.js";import{a as d}from"./chunk-YRBM4WYM.esm.js";import{g as t}from"./chunk-APD22JEO.esm.js";import{a as M}from"./chunk-GZONWSRB.esm.js";import i,{forwardRef as v}from"react";var u=t(h).withConfig({componentId:"sc-10ipxtd-0"})([""," width:100%;"],b),s=t(x).withConfig({componentId:"sc-10ipxtd-1"})(["margin-bottom:0;"]),y=t(d).withConfig({componentId:"sc-10ipxtd-2"})(["position:absolute;top:0;bottom:0;background:var(--bg-progress);"]),g=t(d).withConfig({componentId:"sc-10ipxtd-3"})(["position:absolute;top:0;bottom:0;width:2px;background:var(--text-color);"]);var P=v(({label:w,min:r=0,max:n=100,value:p,segments:e,ticks:m,color:C="primary",size:T="medium",border:$,...S},I)=>{let f=n-r,a=M(o=>f>0?Math.min(100,Math.max(0,(o-r)/f*100)):0,"pct"),l=p!=null,k=e!=null&&e.length?e:l?[{from:r,to:p}]:[];return i.createElement(u,{color:C,role:l?"meter":"img","aria-label":w,...l&&{"aria-valuemin":r,"aria-valuemax":n,"aria-valuenow":Math.min(n,Math.max(r,p))},...S,ref:I},i.createElement(s,{size:T,border:$},k.map((o,c)=>i.createElement(y,{key:`${o.from}-${o.to}-${c}`,"aria-hidden":"true",style:{left:`${a(o.from)}%`,width:`${Math.max(a(o.to)-a(o.from),0)}%`,...o.color&&{background:o.color}}})),m==null?void 0:m.map((o,c)=>i.createElement(g,{key:`${o.at}-${c}`,"aria-hidden":"true",style:{left:`calc(${a(o.at)}% - 1px)`,...o.color&&{background:o.color}}}))))});P.displayName="Meter";export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D}from"./chunk-BE2JDTVA.esm.js";import{b as m}from"./chunk-3V3ZEGHO.esm.js";import{a as N}from"./chunk-
|
|
1
|
+
import{a as D}from"./chunk-BE2JDTVA.esm.js";import{b as m}from"./chunk-3V3ZEGHO.esm.js";import{a as N}from"./chunk-KASRN4X5.esm.js";import{a as l}from"./chunk-YRBM4WYM.esm.js";import{b as d}from"./chunk-G5Z7USXC.esm.js";import{b as w,g as s}from"./chunk-APD22JEO.esm.js";import{a as p}from"./chunk-GZONWSRB.esm.js";var ie=w(["--railColor:",";--trackColor:",";--thumbColor:",";--markColor:",";"],({theme:e})=>e.colors.primary.light,({theme:e})=>e.colors.primary.base,({theme:e})=>e.colors.primary.action,({theme:e})=>e.colors.primary.active),ae=w(["pointer-events:none;--railColor:",";--trackColor:",";--thumbColor:",";--markColor:transparent;"],({theme:e})=>e.colors.muted,({theme:e})=>e.colors.neutral[30],({theme:e})=>e.colors.neutral[30]),$=s(l).withConfig({componentId:"sc-18639os-0"})(["--height:6px;",";cursor:pointer;box-sizing:content-box;height:var(--height);padding:1.5rem 0 2rem;width:100%;"],({disabled:e})=>e?ae:ie),j=s(l).withConfig({componentId:"sc-18639os-1"})(["width:100%;height:var(--height);background:var(--railColor);position:absolute;border-radius:calc(var(--height) / 2);box-shadow:0px 0px 0px 1px var(--railColor);"]),A=s(l).withConfig({componentId:"sc-18639os-2"})(["height:var(--height);box-shadow:0px 0px 0px 1px var(--trackColor);background:var(--trackColor);border-radius:calc(var(--height) / 2);position:absolute;left:0;"]),H=s(l).withConfig({componentId:"sc-18639os-3"})(["height:var(--height);background-image:linear-gradient(to right,#e12712,#ffbb00,#2cb567);background-repeat:no-repeat;border-radius:calc(var(--height) / 2);position:absolute;width:100%;left:0;"]),W=s(l).withConfig({componentId:"sc-18639os-4"})(["height:var(--height);background-color:var(--railColor);background-repeat:no-repeat;position:absolute;right:0;"]),T=s(l).attrs(e=>({bgColor:"baseLight",color:"primary.dark",borderRadius:"xs",borderWidth:"thin",p:"micro",...e})).withConfig({componentId:"sc-18639os-5"})(["--borderColor:",";opacity:0;transition:all 200ms linear;text-align:center;position:absolute;bottom:",";left:50%;transform:translateX(-50%);font-size:12px;white-space:nowrap;border-color:var(--borderColor);&:before{content:'';position:absolute;width:0;height:0;border-top:10px solid var(--borderColor);border-left:5px solid transparent;border-right:5px solid transparent;top:100%;left:50%;margin-left:-5px;margin-top:-1px;}"],({theme:e})=>e.colors.neutral[40],({theme:e})=>e.spacing("large")),se=w(["box-shadow:0px 0px 0px 9px #00000033 !important;& ","{opacity:1;}"],T),_=s(l).withConfig({componentId:"sc-18639os-6"})(["--size:calc(var(--height) * 2.4);display:flex;justify-content:center;width:var(--size);height:var(--size);margin-top:calc((var(--size) * -1 / 2) + var(--height) / 2);margin-left:calc(var(--size) * -1 / 2);position:absolute;background:var(--thumbColor);transition:box-shadow 150ms cubic-bezier(0.4,0,0.2,1) 0ms;&:hover{box-shadow:0px 0px 0px 6px #00000033;","{opacity:1;}}",""],T,({active:e})=>e&&se),q=s(l).attrs(e=>({borderRadius:"circular",...e})).withConfig({componentId:"sc-18639os-7"})(["--size:calc(var(--height) * 0.8);position:absolute;margin:calc(var(--height) * 0.1);width:var(--size);height:var(--size);padding:2px;margin-left:",";background:",";"],({active:e})=>e?"unset":"calc(var(--size) * -1)",({active:e})=>e?"var(--thumbColor)":"var(--markColor)"),J=s(l).withConfig({componentId:"sc-18639os-8"})(["position:absolute;margin-top:1rem;transform:translateX(-50%);white-space:nowrap;font-size:0.75rem;color:",";"],({theme:e})=>e.colors.main.base);import n,{useCallback as le,useEffect as ce,useMemo as ue,useRef as Q,useState as de}from"react";function M(e,t,o){return(e-t)*100/(o-t)}p(M,"valueToPercent");function K(e,t,o){return(o-t)*e+t}p(K,"percentToValue");function z(e,t,o){let h=Math.round((e-o)/t)*t+o;return Number(h.toFixed(t))}p(z,"roundValueToStep");function O(e){return e>=1?1:e<=0?0:e}p(O,"clamp");function L(e,t,o,h){return Number.isFinite(e)&&e>=o&&e<=t?h?z(e,h,o):e:Math.min(Math.max(o,e),t)}p(L,"normalizeValue");function R({gradient:e,disabled:t,getLabelValue:o,markLabel:h,onChange:b,value:k=50,max:c=100,min:i=0,step:u=1,mark:I}){let[v,V]=de(()=>L(k,c,i,u));ce(()=>{V(r=>{let a=L(k,c,i,u);return a!==r?a:r})},[k,c,i,u]);let{active:U,enable:B,disable:Y}=D(),P=Q(null),Z=ue(()=>{if(!(I===!0&&u))return[];let r=Math.floor((c-i)/u)+1;return!Number.isFinite(r)||r<=0||r>1e4?[]:[...Array(r)].map((a,E)=>{let x=i+u*E;return{value:x,...o&&h&&{label:o(x)}}})},[I,o,h,u,i,c]),F=Q(0),y=le(r=>{let a=0;try{if(r.type==="touchmove"){let[S]=r.changedTouches;a=S==null?void 0:S.clientX}else a=r.clientX}catch(S){a=r.clientX}let{width:E,left:x}=P.current.getBoundingClientRect(),ne=O((a-x)/E),C=K(ne,i,c);C=z(C,u,i),V(C),b&&(clearTimeout(F.current),F.current=setTimeout(()=>{b(C)},100))},[i,c,u,b]),f=m(r=>{y(r)}),g=m(()=>{Y(),d.document.removeEventListener("mousemove",f),d.document.removeEventListener("mouseup",g),d.document.removeEventListener("touchmove",f),d.document.removeEventListener("touchend",g)}),ee=m(r=>{r.preventDefault(),y(r),B(),d.document.addEventListener("mousemove",f,{passive:!1}),d.document.addEventListener("mouseup",g,{passive:!1})}),re=m(r=>{r.stopPropagation(),y(r),B(),d.document.addEventListener("touchmove",f,{passive:!1}),d.document.addEventListener("touchend",g,{passive:!1})}),oe=o?o(v):String(v),X=`${M(v,i,c)}%`,te={width:X},G={left:X};return n.createElement($,{ref:P,onMouseDown:ee,onTouchStart:re,disabled:t},n.createElement(j,null),e?n.createElement(H,null,n.createElement(W,{style:G})):n.createElement(A,{style:te}),Z.map(r=>{let a={left:`${M(r.value,i,c)}%`};return n.createElement(n.Fragment,{key:r.value},n.createElement(q,{active:r.value<=v,style:a}),r.label&&n.createElement(J,{style:a},r.label))}),n.createElement(_,{borderRadius:"circular",deep:1,active:U,style:G,"data-testid":"input-range-thumb"},!t&&n.createElement(T,null,n.createElement(N,null,oe))))}p(R,"Slider");R.displayName="Slider";export{$ as a,j as b,A as c,H as d,W as e,T as f,_ as g,q as h,J as i,R as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-KASRN4X5.esm.js";import{a as n}from"./chunk-CLDPV7NK.esm.js";import{a}from"./chunk-YRBM4WYM.esm.js";import{g as e}from"./chunk-APD22JEO.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";function g({size:o,border:t}){let r;switch(o){case"extraSmall":r={height:"0.25rem",borderRadius:"micro",mb:"micro"};break;case"small":r={height:"0.5rem",borderRadius:"xs",mb:"micro"};break;case"large":r={height:"1rem",borderRadius:"md",mb:"small"};break;default:r={height:"0.75rem",borderRadius:"sm",mb:"xs"}}return t||(r.borderRadius=void 0),r}s(g,"progressOverlayProps");var P=e(a).attrs(g).withConfig({componentId:"sc-13s1fh5-0"})(["background:var(--bg-overlay);overflow:hidden;width:100%;"]),u=e(a).withConfig({componentId:"sc-13s1fh5-1"})(["height:100%;background:var(--bg-progress);transition:",";"],({theme:o})=>o.animation.transitions.short);function h({color:o,theme:t}){let{base:r,dark:m,light:c}=t.colors[o];return{"--text-color":m,"--bg-overlay":c,"--bg-progress":r}}s(h,"getProgressColor");var x=e(n).withConfig({componentId:"sc-13s1fh5-2"})([""," ","{color:var(--text-color);}"],h,i);export{P as a,u as b,h as c,x as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as f}from"./chunk-
|
|
1
|
+
import{e as f}from"./chunk-TD4RVB2L.esm.js";import{b as C}from"./chunk-BVKAXW2H.esm.js";import{a as u}from"./chunk-YRBM4WYM.esm.js";import{a as I,k as d,l as g}from"./chunk-BV6GHAF7.esm.js";import{g as h}from"./chunk-APD22JEO.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var s=h(u).withConfig({componentId:"sc-l15crp-0"})(({theme:t,size:o})=>({fontSize:o?t.spacing(o):"inherit",display:"inline-block",lineHeight:0,"& svg":{stroke:"currentColor",fill:"currentColor",strokeWidth:0,"& g":{fill:"currentColor"}}}));import r,{forwardRef as p,useEffect as v,useState as w}from"react";function y(t,o){if(typeof window!="undefined")try{window.fetch(t).then(e=>e.text()).then(e=>d(e,"svg")).then(g).then(o)}catch(e){I.warn(`[ICON] Failed to load icon from: ${t}`)}}i(y,"getIconFromUrl");var R=i((t,o)=>r.cloneElement(t,o),"createIcon"),E=p(({icon:t,iconProps:o,svgProps:e,children:n,...m},l)=>{let a=i(()=>{let c=null;return n?c=R(n,e):t?c=r.createElement(f,{...t,...e}):o&&(c=f(e)),c},"getIcon");return r.createElement(s,{...m,ref:l},a())}),P=p(({title:t,src:o,svgProps:e,...n},m)=>{let[l,a]=w(()=>r.createElement(C,{height:"1em",width:"1em",alt:t}));return v(()=>{y(o,c=>{a(R(c,e))})},[o]),r.createElement(s,{...n,ref:m},l)}),S=p(({title:t,...o},e)=>{let n={...o.iconProps||{},title:t,stroke:"currentColor",fill:"currentColor",strokeWidth:"0",height:"1em",width:"1em"};return o.src?r.createElement(P,{...o,svgProps:n,ref:e}):r.createElement(E,{...o,svgProps:n,ref:e})});S.displayName="Icon";export{s as a,S as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-CLDPV7NK.esm.js";import{a as o}from"./chunk-YRBM4WYM.esm.js";import{AnimatePresence as a,motion as e,MotionConfig as p,useReducedMotion as x}from"framer-motion";var n=e.create(o),r=e.create(t);export{a,n as b,r as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-YRBM4WYM.esm.js";import{g as a}from"./chunk-APD22JEO.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var o=i((r,e)=>({gridTemplateColumns:e.columns,gridTemplateRows:e.rows,gridTemplateAreas:e.areas,gap:e.gap?r.spacing(e.gap):void 0,gridColumnGap:e.columnGap?r.spacing(e.columnGap):void 0,gridRowGap:e.rowGap?r.spacing(e.rowGap):void 0}),"getGridProps"),f=i(({medias:r,theme:e})=>r?"xs"in r?Object.keys(r).reduce((d,t)=>({...d,[e.breakpoints.up(t)]:o(e,r[t])}),{}):o(e,r):{},"setGridBreakpoints"),c=a(n).withConfig({componentId:"sc-11fh3lu-0"})(["display:grid;",""],f);export{f as a,c as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-GZONWSRB.esm.js";import t from"deepmerge";var e=t;var m={input:{size:{expansive:{py:"medium",fontSize:"small",borderRadius:"xs",height:54},medium:{py:"small",fontSize:"small",borderRadius:"xs",height:46},compact:{py:"xs",fontSize:"small",borderRadius:"xs",height:38},micro:{py:"micro",fontSize:"micro",borderRadius:"micro",height:26}}},switch:{size:{small:{trackW:32,trackH:18,thumb:14,pad:2},medium:{trackW:40,trackH:22,thumb:18,pad:2},large:{trackW:48,trackH:26,thumb:22,pad:2}}},select:{size:{small:{height:38,px:"small"},medium:{height:46,px:"small"},large:{height:54,px:"medium"}}},button:{size:{extraSmall:{fontSize:"micro",fontWeight:"bold",textTransform:"uppercase",py:"micro",px:"medium",borderRadius:"micro"},small:{fontSize:"small",fontWeight:"bold",py:"xs",px:"medium",borderRadius:"large"},medium:{fontSize:"small",fontWeight:"bold",py:"small",px:"large",borderRadius:"large"},large:{fontSize:"medium",fontWeight:"bold",py:"medium",px:"xl",borderRadius:"large"}}},inputSelect:{size:{expansive:{py:"medium",px:"small",fontSize:"small",borderRadius:"xs",height:54},medium:{py:"xs",px:"small",fontSize:"small",lineHeight:"close",borderRadius:"xs",height:46},compact:{py:"zero",px:"small",fontSize:"small",borderRadius:"xs",height:38},micro:{py:"zero",px:"small",fontSize:"micro",borderRadius:"micro",height:26}}}};function r(i={}){return e(m,i)}o(r,"createComponentTokens");export{e as a,r as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as i}from"./chunk-
|
|
1
|
+
import{c as i}from"./chunk-WNCECFZT.esm.js";import{d as r}from"./chunk-KASRN4X5.esm.js";import{a as t}from"./chunk-CLDPV7NK.esm.js";import{a as m}from"./chunk-YRBM4WYM.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";import o from"react";var f=n(({children:p,icon:l,title:a,description:x,...e})=>{let c=e.inverted?"neutral.170":"grayscale.0";return o.createElement(i,{content:o.createElement(m,{p:"xs"},o.createElement(t,{gap:"medium",maxWidth:400,color:c},o.createElement(t,{flexDirection:"row",alignItems:"center",gap:"medium"},l,o.createElement(r,{variant:"h4",text:a,color:null})),o.createElement(r,{variant:"p",text:x,color:null}))),...e},p)},"Popover");f.displayName="Popover";export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-6N52NFPT.esm.js";import{a as o}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-6N52NFPT.esm.js";import{a as o}from"./chunk-YRBM4WYM.esm.js";import{g as e}from"./chunk-APD22JEO.esm.js";var n=e(o).withConfig({componentId:"sc-1teioay-0"})(["animation:rotate 2s linear infinite;@keyframes rotate{100%{transform:rotate(360deg);}}"]),i=e(t).withConfig({componentId:"sc-1teioay-1"})(["fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite;@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"]);import s,{forwardRef as d}from"react";var a=d(({size:p,label:m="Carregando",...f},l)=>{let r=p||"1em";return s.createElement(n,{as:"svg",viewBox:"0 0 50 50",role:"status","aria-label":m,...f,width:r,height:r,ref:l},s.createElement(i,{cx:"25",cy:"25",r:"20"}))});a.displayName="Spinner";export{n as a,i as b,a as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n}from"./chunk-
|
|
1
|
+
import{c as n}from"./chunk-BC24WDTC.esm.js";import{a as e}from"./chunk-CLDPV7NK.esm.js";import t,{forwardRef as u}from"react";var i=u(({loading:o,opener:f=null,closer:l=null,content:s,contentGap:m="xs",children:p,loadingComponent:r,...x},c)=>t.createElement(e,{flexDirection:"row",justifyContent:"center",alignItems:"center",...x,ref:c},t.createElement(e,{flexDirection:"row",flex:"fluid",alignItems:"center",gap:m,isHidden:o},f,t.createElement(e,{flex:"fluid"},p||s),l),o&&(r!=null?r:t.createElement(n,{"data-testid":"content-spinner",color:"gray.0",position:"absolute"}))));i.displayName="Content";export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as f}from"./chunk-TUALAE4W.esm.js";import{a as I}from"./chunk-ZLFQHCLE.esm.js";import{a as s}from"./chunk-5Q265MC7.esm.js";import{b as g}from"./chunk-
|
|
1
|
+
import{b as f}from"./chunk-TUALAE4W.esm.js";import{a as I}from"./chunk-ZLFQHCLE.esm.js";import{a as s}from"./chunk-5Q265MC7.esm.js";import{b as g}from"./chunk-LATE6DIA.esm.js";import{c as i}from"./chunk-BV6GHAF7.esm.js";import{g as c}from"./chunk-APD22JEO.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var b=r(({cover:e,height:o,width:t})=>e&&{width:t!=null?t:"100%",height:o!=null?o:"100%",objectFit:"cover"},"imageCover"),l=r(e=>e?i(e):"fit-content","getSizeValue"),d=c("img").withConfig({shouldForwardProp:g}).withConfig({componentId:"sc-swtbvc-0"})(["display:block;width:",";height:",";",";&[src='']{visibility:hidden;position:absolute;}"],({full:e,width:o})=>e?"100%":l(o),({height:e})=>l(e),b);import n,{forwardRef as C,useState as L}from"react";var p=C(({src:e,...o},t)=>n.createElement(d,{src:e,ref:t,...o})),h=r(({width:e=60,height:o=60})=>n.createElement(I,{height:o,width:e},n.createElement(f,{width:e,height:o})),"ImageDefaultContentLoader");function x(e){return new Promise((o,t)=>{let a=new Image;a.onload=o,a.onerror=t,a.src=e})}r(x,"loadImage");var u=r(({src:e,fallback:o,threshold:t,...a})=>{let[m,y]=L(),[S]=s({threshold:t},()=>{x(e).then(()=>y(e)).catch(()=>console.warn(`[Failed]: error on loading image: ${e}`))}),w=typeof m=="undefined";return n.createElement(n.Fragment,null,w?o||n.createElement(h,{...a}):null,n.createElement(p,{src:m||"",ref:S,...a}))},"ImageLazy");u.displayName="ImageLazy";export{d as a,p as b,u as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-YRBM4WYM.esm.js";import{g as e}from"./chunk-APD22JEO.esm.js";var o=e(t).withConfig({componentId:"sc-atg43m-0"})(["display:flex;"]);export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as f,c as j,d as _,e as z,f as B}from"./chunk-2CW4G3UR.esm.js";import{g as x}from"./chunk-NYDXZB2D.esm.js";import{b as F,c as S,d as L,e as H,f as k,h as O,i as D,j as K,k as A,n as C,o as R}from"./chunk-5H2LWL6K.esm.js";import{n as P}from"./chunk-H2KVPACE.esm.js";import{b as w}from"./chunk-5SQH2W2J.esm.js";import{a as T}from"./chunk-4V7LOS5Z.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import s,{forwardRef as $,useMemo as c,useState as V}from"react";function N(e,n){let i={value:n,name:e!=null?e:"",type:"text"};return{target:i,currentTarget:i,type:"change",bubbles:!0,cancelable:!0,defaultPrevented:!1,isDefaultPrevented:t(()=>!1,"isDefaultPrevented"),isPropagationStopped:t(()=>!1,"isPropagationStopped"),isTrusted:!1,persist:t(()=>{},"persist"),preventDefault:t(()=>{},"preventDefault"),stopPropagation:t(()=>{},"stopPropagation"),timeStamp:Date.now(),nativeEvent:{target:i},eventPhase:0}}t(N,"buildSyntheticEvent");var ee="yyyy-MM-dd";function te(e){if(!e)return;let n=_(e);return j(n)?n:void 0}t(te,"toDate");function ne(e,n,i){let o=[];if(n&&o.push({before:n}),i&&o.push({after:i}),e&&o.push(...Array.isArray(e)?e:[e]),o.length!==0)return o.length===1?o[0]:o}t(ne,"resolveDisabled");var U=$(({value:e,onChange:n,onValueChange:i,locale:o=z,minDate:a,maxDate:p,disabledDates:h,displayFormat:g="dd/MM/yyyy",name:y,placeholder:q,disabled:m,readOnly:M,...G},d)=>{let[v,I]=V(!1),u=c(()=>te(e),[e]),J=c(()=>u?f(u,g,{locale:o}):"",[u,g,o]),Q=c(()=>ne(h,a,p),[h,a,p]),{refs:b,floatingStyles:W,context:l}=A({open:v,onOpenChange:I,placement:"bottom-start",middleware:[k(4),S(),O({padding:8})],whileElementsMounted:F}),{getReferenceProps:X,getFloatingProps:Y}=C([D(l,{enabled:!m&&!M}),K(l,{outsidePress:!0,escapeKey:!0}),R(l,{role:"dialog"})]),Z=t(r=>{if(!r)return;let E=f(r,ee);i==null||i(E),n==null||n(N(y,E)),I(!1)},"handleSelect");return s.createElement(s.Fragment,null,s.createElement(x,{...G,ref:r=>{typeof d=="function"?d(r):d&&(d.current=r),b.setReference(r)},type:"text",role:"combobox",disabled:m,readOnly:M,name:y,placeholder:q,value:J,onChange:t(r=>{},"handleInputChange"),inputMode:"none",autoComplete:"off",icon:s.createElement(w,{icon:P}),iconPosition:"right",...X({onKeyDown:t(r=>{r.key.length===1&&r.key!==" "&&r.preventDefault()},"handleKeyDown")})}),v&&s.createElement(H,null,s.createElement(L,{context:l,modal:!1,initialFocus:-1},s.createElement("div",{ref:b.setFloating,style:W,...Y()},s.createElement(T,{p:"xs",borderRadius:"xs",deep:3},s.createElement(B,{mode:"single",selected:u,onSelect:Z,locale:o,defaultMonth:u,disabled:Q,captionLayout:"dropdown",startMonth:a!=null?a:new Date(1970,0,1),endMonth:p!=null?p:new Date(2100,11,31)}))))))});U.displayName="InputDate";export{U as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as g}from"./chunk-KASRN4X5.esm.js";import{a as x}from"./chunk-BMGVQBTB.esm.js";import{a as B}from"./chunk-BC24WDTC.esm.js";import{a as y}from"./chunk-CLDPV7NK.esm.js";import{b as p}from"./chunk-RZDVS7AY.esm.js";import{b}from"./chunk-IK5Z5C2R.esm.js";import{b as f}from"./chunk-OXQA5WD3.esm.js";import{d}from"./chunk-RWLJNXLX.esm.js";import{d as l}from"./chunk-E3MSXQXV.esm.js";import{b as c,g as F}from"./chunk-APD22JEO.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";import u,{forwardRef as O}from"react";var s=5,T=a(({size:o="medium",theme:t})=>{var n;let r=(n=t.component.button.size[o])!=null?n:t.component.button.size.medium;return[b({fontWeight:r.fontWeight,fontSize:r.fontSize,...r.textTransform!==void 0&&{textTransform:r.textTransform}}),f({py:r.py,px:r.px}),d({borderRadius:r.borderRadius})]},"buttonSize"),z=a((o,t)=>c(["color:",";background:",";border-color:",";box-shadow:",";&:hover{color:",";background:",";border-color:",";box-shadow:",";}&:focus{color:",";background:",";border-color:",";&:hover{border-color:",";}}&:active{&,&:hover,&:focus{color:",";background:",";border-color:",";}}&:disabled{background:",";border-color:",";color:",";box-shadow:",";cursor:default;}"],t.colors.getContrastColor(o.base),o.base,o.base,r=>r.theme.depth("level-two"),t.colors.getContrastColor(o.action),o.action,o.action,r=>r.theme.depth("level-zero"),t.colors.getContrastColor(o.action),o.action,o.active,o.action,t.colors.getContrastColor(o.active),o.active,o.light,t.colors.disabled.fill,t.colors.disabled.fill,t.colors.disabled.color,r=>r.theme.depth("level-zero")),"ButtonContained"),h=a((o,t)=>{var r;return c(["background:transparent;color:",";border-color:",";&:hover{color:",";background:",";border-color:",";}&:focus{color:",";background:",";border-color:",";box-shadow:",";&:hover{border-color:",";}}&:active{&,&:hover,&:focus{background-color:transparent;color:",";border-color:",";box-shadow:",";}}&:disabled{color:",";background:",";border-color:",";cursor:default;}"],l(o.base,(r=t.colors.baseLight)!=null?r:"#FFFFFF",s),o.base,t.colors.getContrastColor(o.action),o.action,o.action,t.colors.getContrastColor(o.action),o.action,o.active,n=>n.theme.depth("level-two"),o.action,o.dark,o.light,n=>n.theme.depth("level-two"),t.colors.disabled.color,t.colors.disabled.fill,t.colors.disabled.fill)},"ButtonOutlined"),L=a((o,t)=>{var r,n,e,i;return c(["background:transparent;color:",";border-color:transparent;border-radius:none;&:hover{color:",";text-decoration:underline;}&:focus{color:",";text-decoration:underline;}&:active{color:",";text-decoration:underline;}&:disabled{color:",";text-decoration:none;cursor:default;}"],l(o.base,(r=t.colors.baseLight)!=null?r:"#FFFFFF",s),l(o.action,(n=t.colors.baseLight)!=null?n:"#FFFFFF",s),l(o.base,(e=t.colors.baseLight)!=null?e:"#FFFFFF",s),l(o.active,(i=t.colors.baseLight)!=null?i:"#FFFFFF",s),t.colors.disabled.color)},"ButtonLinked"),W=a(({color:o,variant:t,theme:r})=>{let n=r.colors[o],e;switch(t){case"outlined":e=h(n,r);break;case"linked":e=L(n,r);break;default:e=z(n,r)}return c(["&&{","}"],e)},"buttonVariant"),N=a(({fullWidth:o})=>({width:o?"100%":"fit-content"}),"isFullWidth"),C=c(["outline:0;cursor:pointer;transition:",";"," "," "," "," ",""],({theme:o})=>o.animation.transitions.short,d({borderWidth:"regular",borderStyle:"solid"}),p({gap:"xs",flexDirection:"row",alignItems:"center",justifyContent:"center"}),N,T,W),v=F(y).withConfig({componentId:"sc-12djmz6-0"})([""," ","{width:1em;height:1em;}"],C,B);var S=O(({children:o,text:t,isLoading:r,icon:n=null,iconPosition:e="left",color:i="primary",size:m="medium",variant:I="contained",fullWidth:k=!1,...P},w)=>u.createElement(v,{...P,color:i,size:m,variant:I,fullWidth:k,as:"button",ref:w},u.createElement(x,{loading:r,...e==="right"?{closer:n}:{opener:n}},u.createElement(g,{fontWeight:"bold",lineHeight:"tight",fontFamily:"main"},o||t))));S.displayName="Button";export{T as a,W as b,C as c,v as d,S as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as x}from"./chunk-VAJGIZNP.esm.js";import{d as r}from"./chunk-KASRN4X5.esm.js";import{a as n}from"./chunk-CLDPV7NK.esm.js";import{a as e}from"./chunk-GZONWSRB.esm.js";import o from"react";var t=e(({initialPagination:i,finalPagination:a,linesPerPage:p,totalPagination:m,showingText:b=e((s,f,T)=>`Exibindo ${s} - ${f} de ${T} itens`,"showingText"),linesPerPageLabel:l="Linhas por p\xE1gina"})=>i&&a&&m&&Array.isArray(p)?o.createElement(n,{flexDirection:"row",justifyContent:"between",alignItems:"center"},o.createElement(r,{color:"primary.dark"},b(i,a,m)),o.createElement(n,{flexDirection:"row",justifyContent:"center",alignItems:"center",gap:2},o.createElement(r,{color:"primary.dark"},l),o.createElement(x,{width:"150px",options:p,"aria-label":l}))):null,"TablePaginationComponent");t.displayName="TablePagination";export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-43YSWDK6.esm.js";import{g as f}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-43YSWDK6.esm.js";import{g as f}from"./chunk-NYDXZB2D.esm.js";import{r as c}from"./chunk-BV6GHAF7.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";import h,{useEffect as v,useMemo as i,useState as g}from"react";function I(M){let{mask:u,value:e,onChange:t,...d}=M,a=i(()=>c(u),[u]),[C,s]=g(()=>e?a(e):"");v(()=>{s(n=>{let r=e?a(e):"";return r!==n?r:n})},[e,a]);let m=i(()=>k(t!=null?t:(()=>{}),250),[t]);return h.createElement(f,{...d,reset:o(()=>{s(""),m("")},"resetValues"),value:C,onChange:o((n,r)=>{var l;let p=a((l=n.target.value)!=null?l:"");s(p),m(p)},"handleChange")})}o(I,"InputMaskComponent");I.displayName="InputMask";export{I as a};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import{o as f}from"./chunk-H2KVPACE.esm.js";import{a as l,b as m}from"./chunk-5SQH2W2J.esm.js";import{a as h}from"./chunk-KASRN4X5.esm.js";import{a as b}from"./chunk-CLDPV7NK.esm.js";import{c as a}from"./chunk-LATE6DIA.esm.js";import{b as d}from"./chunk-TLBV5OUM.esm.js";import{b as s,g as x}from"./chunk-APD22JEO.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var i=a("input").withConfig({componentId:"apollion-checkbox-input"})`
|
|
2
|
+
position: absolute;
|
|
3
|
+
left: 0;
|
|
4
|
+
top: 0;
|
|
5
|
+
margin: 0;
|
|
6
|
+
opacity: 0;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
`,t=x(b).attrs(o=>({alignItems:"center",justifyContent:"center",borderRadius:"micro",borderWidth:"thin",boderStyle:"solid",borderColor:"information",deep:-1,mr:"small",...o})).withConfig({componentId:"sc-o1c91u-0"})(["width:20px;height:20px;flex-shrink:0;transition:",";"],({theme:o})=>o.animation.transitions.short);function y({variant:o,theme:e}){let r=e.colors.information;return o==="success"&&(r=e.colors.success),o==="error"&&(r=e.colors.danger),s(["color:",";& > ","{border:1px solid ",";}&:hover > ",",&:focus > ","{border-color:",";box-shadow:",";}& > ",":checked ~ ","{border-color:",";background-color:",";box-shadow:",";}"],r.dark,t,r.dark,t,t,r.action,e.depth("level-zero"),i,t,r.base,r.base,e.depth("level-zero"))}n(y,"checkboxVariantStyle");function C({theme:o,disabled:e}){return e?s(["color:",";& > ",":disabled{cursor:default;& ~ ","{background-color:",";border-color:",";box-shadow:none;& > ","{color:",";}}}"],o.colors.disabled.color,i,t,o.colors.disabled.fill,o.colors.disabled.fill,l,o.colors.disabled.color):null}n(C,"disabledStyle");var k=a("label").withConfig({componentId:"apollion-checkbox-container"})`
|
|
9
|
+
position: relative;
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
align-items: center;
|
|
14
|
+
/* micro — the xs gap read too wide between the box and its label. */
|
|
15
|
+
gap: ${({theme:o})=>o.spacing("micro")};
|
|
16
|
+
/* Pre-v4 margin was \`spacing(0, 8, 'medium', 0)\` (32px right + 16px bottom)
|
|
17
|
+
— excessive, it overrode the consumer's layout. v4 keeps only a small
|
|
18
|
+
breathing space (xs = 8px) horizontal+vertical, enough for inline use
|
|
19
|
+
without dictating layout. A parent with Flex gap adds more when needed. */
|
|
20
|
+
margin: ${({theme:o})=>o.spacing(0,"xs","xs",0)};
|
|
21
|
+
transition: ${({theme:o})=>o.animation.transitions.short};
|
|
22
|
+
|
|
23
|
+
& > ${i} ~ ${t} > ${l} {
|
|
24
|
+
${d({color:"neutral.0"})}
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Shows the check when the native input is :checked */
|
|
29
|
+
& > ${i}:checked ~ ${t} > ${l} {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
${y}
|
|
34
|
+
${C}
|
|
35
|
+
`;import c from"react";var u=n(({label:o=null,labelProps:e,variant:r="default",...p})=>c.createElement(k,{variant:r,disabled:p.disabled},c.createElement(i,{...p,type:"checkbox",hidden:!0}),c.createElement(t,null,c.createElement(m,{icon:f,size:"small"})),typeof o=="string"?c.createElement(h,{fontSize:"small",color:"neutral.180",...e},o):o),"CheckboxComponent");u.displayName="Checkbox";export{i as a,t as b,k as c,u as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-YRBM4WYM.esm.js";import{b as t}from"./chunk-G5Z7USXC.esm.js";import{g as d}from"./chunk-APD22JEO.esm.js";import{a as g}from"./chunk-GZONWSRB.esm.js";import w,{forwardRef as N,useCallback as L,useLayoutEffect as U,useRef as y,useState as Y}from"react";var h=(()=>{if(typeof window=="undefined")return 15;let o=t.document.createElement("div"),i=t.document.createElement("div");o.style.overflow="scroll",o.style.width="100%",i.style.width="100%",t.document.body.appendChild(o),o.appendChild(i);let x=o.offsetWidth-i.offsetWidth;return o.removeChild(i),t.document.body.removeChild(o),x})(),b=h?h+1:20;var I=d(f).withConfig({componentId:"sc-wsu612-0"})(["flex:1;height:100%;overflow:hidden;"]),R=d(f).withConfig({componentId:"sc-wsu612-1"})(["height:100%;box-sizing:border-box;overflow-y:scroll;"]),C=d(f).withConfig({componentId:"sc-wsu612-2"})(["position:absolute;top:0;right:2px;cursor:pointer;user-select:none;width:6px;min-height:30px;max-height:100%;background:rgba(0,0,0,0.4);opacity:0;transition:opacity 0.25s ease-in;z-index:1;"]),D=d(f).withConfig({componentId:"sc-wsu612-3"})(["flex:1;display:flex;overscroll-behavior:auto;overflow:hidden;&:hover ","{opacity:0.75;}"],C);var j=N(({children:o,onScroll:i,style:x,scrollableRef:p,...k},M)=>{let[m,W]=Y(1),c=y(null),u=y(null),S=y(0),T=y({}),O=L(n=>{c.current=n,typeof p=="function"?p(n):p&&(p.current=n)},[p]);U(()=>{let n=c.current,e,r=g(()=>{cancelAnimationFrame(e),e=requestAnimationFrame(()=>{var s;if(n){let{clientHeight:l,scrollHeight:a}=n;W(l/a),T.current={clientHeight:l,scrollHeight:a,trackHeight:(s=u==null?void 0:u.current)==null?void 0:s.clientHeight}}})},"updateScrollbar");return t.addEventListener("resize",r),r(),()=>{cancelAnimationFrame(e),t.removeEventListener("resize",r)}},[c,o]);let P=L(n=>{if(i&&i(n),m===1)return;let e=c.current,r=u.current;cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{let{clientHeight:s,scrollHeight:l,trackHeight:a}=T.current,v=e.scrollTop/(l-s)*(s-a);r&&(r.style.transform=`translateY(${v}px)`)})},[c,m,i]),F=L(n=>{let e=c.current,r,s=n.pageY,l=(e==null?void 0:e.scrollTop)||0,a=g(({pageY:v})=>{cancelAnimationFrame(r),r=requestAnimationFrame(()=>{let q=v-s;l+=q/m,s=v,e&&(e.scrollTop=l)})},"drag"),A=g(()=>{t.removeEventListener("mousemove",a)},"stop");t.addEventListener("mousemove",a),t.addEventListener("mouseup",A,{once:!0})},[c,m]),E=!!h,H=E?b:0,_={style:{marginRight:`-${H}px`}},B={...x,paddingRight:H},$={onScroll:P,ref:O,tabIndex:0,style:{width:`calc(100% + ${h}px)`,overflowX:"hidden"}},z={ref:u,onMouseDown:F,style:{height:`${m*100}%`,display:m===1?"none":void 0}};return w.createElement(D,{...k,style:B,ref:M},w.createElement(I,{..._},w.createElement(R,{...$},o)),E&&w.createElement(C,{round:"micro",...z}))});j.displayName="CustomScroll";export{j as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as x,b as y,c as
|
|
1
|
+
import{a as x,b as y,c as h,f as T}from"./chunk-NYDXZB2D.esm.js";import{a as c}from"./chunk-CLDPV7NK.esm.js";import{c as o}from"./chunk-LATE6DIA.esm.js";import{b as f}from"./chunk-IK5Z5C2R.esm.js";import{b as d}from"./chunk-OXQA5WD3.esm.js";import{b as p}from"./chunk-A6Z2M2XU.esm.js";import{d as u}from"./chunk-RWLJNXLX.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";var S=o("textarea").withConfig({componentId:"apollion-textarea"})`
|
|
2
2
|
-webkit-appearance: none;
|
|
3
3
|
width: 100%;
|
|
4
4
|
outline: none;
|
|
@@ -7,7 +7,7 @@ import{a as x,b as y,c as T,f as h}from"./chunk-2JE2KM3Y.esm.js";import{a as c}f
|
|
|
7
7
|
|
|
8
8
|
${x}
|
|
9
9
|
|
|
10
|
-
${
|
|
10
|
+
${h}
|
|
11
11
|
|
|
12
12
|
${y}
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ import{a as x,b as y,c as T,f as h}from"./chunk-2JE2KM3Y.esm.js";import{a as c}f
|
|
|
15
15
|
${f({fontFamily:"main"})}
|
|
16
16
|
${d({p:"small"})}
|
|
17
17
|
${p({bgColor:"grayscale.0"})}
|
|
18
|
-
`,
|
|
18
|
+
`,g=o(c).withConfig({componentId:"apollion-textarea-counter"})`
|
|
19
19
|
position: absolute;
|
|
20
20
|
right: 0;
|
|
21
21
|
bottom: 0;
|
|
@@ -23,4 +23,4 @@ import{a as x,b as y,c as T,f as h}from"./chunk-2JE2KM3Y.esm.js";import{a as c}f
|
|
|
23
23
|
font-size: 0.6875rem;
|
|
24
24
|
transform: translateY(100%);
|
|
25
25
|
color: ${({theme:e})=>e.colors.neutral[170]};
|
|
26
|
-
`;import a,{forwardRef as k,useState as
|
|
26
|
+
`;import a,{forwardRef as k,useState as w}from"react";var V={expansive:{fontSize:"medium",py:"medium"},medium:{fontSize:"medium",py:"small"},compact:{fontSize:"medium",py:"xs"},micro:{py:"micro",fontSize:"small",borderRadius:"micro"}},A=k(({value:e,defaultValue:C,onChange:n,maxLengthHint:b="characters left",variant:i="default",resize:I=!1,size:z="medium",...r},F)=>{let t=e!==void 0,[l,$]=w(C||""),P=t?e:l;return a.createElement(T,{variant:i},a.createElement(S,{value:t?e:l,defaultValue:void 0,variant:i,onChange:s(m=>{t||$(m.target.value),n&&n(m)},"handleChange"),...V[z],...r,ref:F,style:{resize:I?"both":"none"}}),r.maxLength&&a.createElement(g,null,Number(r.maxLength)-(P||"").length," ",b))});A.displayName="TextArea";export{S as a,g as b,A as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as M,b as T}from"./chunk-KHEBUAB4.esm.js";import{c as z}from"./chunk-KYIPVR2T.esm.js";import{ga as E}from"./chunk-H2KVPACE.esm.js";import{a as B,b as A}from"./chunk-5SQH2W2J.esm.js";import{e as g}from"./chunk-UNM6DHPD.esm.js";import{a as I,d as h}from"./chunk-KASRN4X5.esm.js";import{a as w}from"./chunk-BMGVQBTB.esm.js";import{a as P,b as W}from"./chunk-6OXVRDS2.esm.js";import{a as s}from"./chunk-CLDPV7NK.esm.js";import{c as u}from"./chunk-G5Z7USXC.esm.js";import{b as S,c as k,g as a}from"./chunk-APD22JEO.esm.js";import{a as e}from"./chunk-GZONWSRB.esm.js";var U=k(["0%{width:0;}100%{width:100%;}"]),y=a(s).withConfig({componentId:"sc-6lckl1-0"})(["--time:15;width:0;height:0.25rem;background-color:var(--baseColor);animation:"," calc(var(--time,15) * 1s) normal forwards;"],U),V=a(s).withConfig({componentId:"sc-6lckl1-1"})(["position:absolute;top:0.25rem;left:0.5rem;right:0.5rem;"]);function _({variant:o,theme:r}){let i=r.colors[o];return S(["--baseColor:",";--lightColor:",";--darkColor:",";--activeColor:",";--actionColor:",";position:relative;background-color:var(--lightColor);border-color:var(--baseColor);","{color:var(--darkColor);}& ","{width:intrinsic;color:var(--darkColor);&:hover{background:var(--activeColor);}&:active ","{color:var(--actionColor);}}&:hover ","{animation-play-state:paused;}"],i.base,i.light,i.dark,i.active,i.action,I,M,B,y)}e(_,"getWrapperStyle");var b=a(W).withConfig({componentId:"sc-6lckl1-2"})(_);b.displayName="div";var j=a(s).withConfig({componentId:"sc-6lckl1-3"})(["color:var(--darkColor);svg{width:2rem;height:2rem;}"]);import t,{useEffect as q,useState as H}from"react";import{createPortal as J}from"react-dom";var F=e(({type:o="block",variant:r="primary",visible:i=!0,closable:m=!0,autoClose:l=null,message:n=null,action:f=null,icon:v=null,link:C,onDismiss:c,closeLabel:$="Fechar notifica\xE7\xE3o",...p})=>{let{isMobile:N}=g(),G=e(()=>{let d=f;return typeof f=="function"&&(d=f({close:c})),d?t.cloneElement(d,{color:r,alignSelf:"center",justifySelf:"center"}):null},"renderActionButton"),L=e(()=>typeof n=="function"?n({close:c}):typeof n=="string"?t.createElement(h,{text:n,variant:"p",fontSize:"xs"}):n,"renderMessage"),x=r==="danger",Q=x?"alert":"status";return i?t.createElement(b,{p:"medium",pr:9,round:N?0:"xs",borderWidth:N?"none":"thin",borderStyle:"solid",variant:r,"data-testid":`notification-${o}`,role:Q,"aria-live":x?"assertive":"polite","aria-atomic":"true",...p},l&&t.createElement(V,null,t.createElement(y,{round:"micro",style:{"--time":l},onAnimationEnd:c})),t.createElement(w,{contentGap:"medium",opener:v&&t.createElement(j,{pt:"xs",alignSelf:"start"},v),closer:G()},p.title&&t.createElement(h,{text:p.title,variant:"h3",fontSize:"small",fontWeight:"stronger",type:"mobile"}),L(),C&&t.createElement(z,{...C,target:"_blank"})),m&&t.createElement(T,{p:"xs",borderWidth:"none",icon:t.createElement(A,{size:"small",icon:E}),"aria-label":$,variant:"linked",onClick:c,alignSelf:"start",position:"absolute",right:"0.5rem",top:"0.5rem"})):null},"BaseNotification"),K=e(o=>{let{isMobile:r}=g(),[i,m]=H(!1);q(()=>{m(!0)},[]);let l=o.pagePosition==="top"?{top:0}:{bottom:0};if(!i||!u)return null;let n=o.visible!==!1;return J(t.createElement(P,null,n?t.createElement(F,{...o,initial:{y:"-100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"-100%",opacity:0},style:{...l,zIndex:1e3,margin:r?0:"1rem",position:"fixed",right:0,left:0}}):null),u)},"PageNotification"),O=e(o=>o.type==="page"?t.createElement(K,{...o}):t.createElement(F,{...o}),"NotificationComponent");O.displayName="Notification";export{y as a,V as b,b as c,j as d,O as e};
|