@apollion-dsi/core 5.10.0 → 7.0.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 +13 -11
- package/lib/chunks/Dropdown.floating-O5GWHN6F.esm.js +1 -0
- package/lib/chunks/Notification.group-VLYQ6NRW.esm.js +1 -0
- package/lib/chunks/Tooltip.floating-WTJLJZJN.esm.js +1 -0
- package/lib/chunks/{chunk-7IW77YYH.esm.js → chunk-3FWZII65.esm.js} +1 -1
- package/lib/chunks/chunk-4BZPXLAW.esm.js +1 -0
- package/lib/chunks/chunk-4PAEVB5H.esm.js +1 -0
- package/lib/chunks/{chunk-ETH3W4PP.esm.js → chunk-4RAZZLLG.esm.js} +1 -1
- package/lib/chunks/{chunk-OX6RGQBV.esm.js → chunk-5HLJ7LZZ.esm.js} +1 -1
- package/lib/chunks/chunk-6DILIYS2.esm.js +1 -0
- package/lib/chunks/chunk-7HRVZJBD.esm.js +1 -0
- package/lib/chunks/chunk-A77HKHNQ.esm.js +1 -0
- package/lib/chunks/{chunk-EF34DPD2.esm.js → chunk-A7JDCK3C.esm.js} +1 -1
- package/lib/chunks/{chunk-SXOSOU46.esm.js → chunk-BFP2C5JF.esm.js} +1 -1
- package/lib/chunks/{chunk-PDCQBR3M.esm.js → chunk-BQBDAFDE.esm.js} +1 -1
- package/lib/chunks/{chunk-S27SAVIL.esm.js → chunk-CB7EKQYI.esm.js} +1 -1
- package/lib/chunks/{chunk-CDLUQDZD.esm.js → chunk-CTNZPJ47.esm.js} +1 -1
- package/lib/chunks/{chunk-X5H3SR3I.esm.js → chunk-CXBUSCOB.esm.js} +1 -1
- package/lib/chunks/chunk-D4ZBSTRO.esm.js +1 -0
- package/lib/chunks/{chunk-4YYV5PG5.esm.js → chunk-DGQ46IKV.esm.js} +1 -1
- package/lib/chunks/chunk-DMLGAY6T.esm.js +1 -0
- package/lib/chunks/{chunk-LSNLFC7E.esm.js → chunk-DP5DDF7U.esm.js} +1 -1
- package/lib/chunks/{chunk-LZCYT3JI.esm.js → chunk-DRL2R3ED.esm.js} +1 -1
- package/lib/chunks/{chunk-VW237MWN.esm.js → chunk-DRXC4B7Z.esm.js} +1 -1
- package/lib/chunks/chunk-ER6KS2SA.esm.js +1 -0
- package/lib/chunks/{chunk-7D6Z463O.esm.js → chunk-EXHRZZ5E.esm.js} +1 -1
- package/lib/chunks/chunk-FBZTXAE3.esm.js +1 -0
- package/lib/chunks/chunk-FH54V56Y.esm.js +1 -0
- package/lib/chunks/{chunk-JIYX535V.esm.js → chunk-FJHDGSZE.esm.js} +1 -1
- package/lib/chunks/{chunk-RSARU4F4.esm.js → chunk-FNYWD4YI.esm.js} +1 -1
- package/lib/chunks/{chunk-BLJLBPUO.esm.js → chunk-GC2ZV3CY.esm.js} +1 -1
- package/lib/chunks/chunk-GM3IRR2E.esm.js +1 -0
- package/lib/chunks/{chunk-MITMF2OY.esm.js → chunk-H4FEHRHK.esm.js} +1 -1
- package/lib/chunks/chunk-HG4FBLPA.esm.js +1 -0
- package/lib/chunks/{chunk-JEDWIAR7.esm.js → chunk-HJYD74KU.esm.js} +1 -1
- package/lib/chunks/chunk-HW42PSLQ.esm.js +1 -0
- package/lib/chunks/chunk-JQSEC336.esm.js +1 -0
- package/lib/chunks/chunk-JTVUOZDH.esm.js +1 -0
- package/lib/chunks/{chunk-5F6QROAO.esm.js → chunk-JVIACETZ.esm.js} +1 -1
- package/lib/chunks/{chunk-D2AOC2HS.esm.js → chunk-KBBFH5LX.esm.js} +1 -1
- package/lib/chunks/{chunk-7MTVH7NF.esm.js → chunk-KIFRBQYQ.esm.js} +1 -1
- package/lib/chunks/chunk-KKFQPSAE.esm.js +1 -0
- package/lib/chunks/chunk-KZTG5TDM.esm.js +1 -0
- package/lib/chunks/{chunk-HCNNXM2C.esm.js → chunk-LCIO2E2K.esm.js} +1 -1
- package/lib/chunks/{chunk-XSHQR3W5.esm.js → chunk-MJK3VHIO.esm.js} +1 -1
- package/lib/chunks/{chunk-ZEDZVOPC.esm.js → chunk-NDMZLKX7.esm.js} +1 -1
- package/lib/chunks/chunk-NHE4GLQK.esm.js +1 -0
- package/lib/chunks/{chunk-YOPGC5J2.esm.js → chunk-NW2GV6YI.esm.js} +1 -1
- package/lib/chunks/chunk-OHLL57EN.esm.js +1 -0
- package/lib/chunks/{chunk-F62355HF.esm.js → chunk-OHVMP5B7.esm.js} +1 -1
- package/lib/chunks/{chunk-LHHKVEZ7.esm.js → chunk-OQWC47RM.esm.js} +1 -1
- package/lib/chunks/{chunk-GWQA5Z4E.esm.js → chunk-QAK32AY3.esm.js} +1 -1
- package/lib/chunks/{chunk-5H2LWL6K.esm.js → chunk-QRU4HAB3.esm.js} +1 -1
- package/lib/chunks/chunk-R6MCW24V.esm.js +2 -0
- package/lib/chunks/chunk-RI7KKIJD.esm.js +1 -0
- package/lib/chunks/chunk-RR2TYGZC.esm.js +1 -0
- package/lib/chunks/chunk-SF2QSF7E.esm.js +20 -0
- package/lib/chunks/chunk-SMAAEIJR.esm.js +1 -0
- package/lib/chunks/{chunk-HPW5QY7O.esm.js → chunk-SNZE6LRL.esm.js} +1 -1
- package/lib/chunks/{chunk-T2A3J6XU.esm.js → chunk-T6USFPVA.esm.js} +1 -1
- package/lib/chunks/{chunk-GMCQ4ZLL.esm.js → chunk-UFQAFY4P.esm.js} +1 -1
- package/lib/chunks/chunk-UGTJEXCL.esm.js +1 -0
- package/lib/chunks/chunk-UHABJEDB.esm.js +1 -0
- package/lib/chunks/{chunk-W4JROHUU.esm.js → chunk-UWIWI6XE.esm.js} +1 -1
- package/lib/chunks/{chunk-7YCYHCUG.esm.js → chunk-VAA7V65K.esm.js} +1 -1
- package/lib/chunks/{chunk-H7ZXGMID.esm.js → chunk-VU3NKSLB.esm.js} +1 -1
- package/lib/chunks/chunk-VUFEYXWD.esm.js +1 -0
- package/lib/chunks/{chunk-NNPKPEER.esm.js → chunk-VXAPSA5T.esm.js} +1 -1
- package/lib/chunks/{chunk-PQDT5T6V.esm.js → chunk-VYK6RBMI.esm.js} +1 -1
- package/lib/chunks/{chunk-UVCS4EZS.esm.js → chunk-W37MIT56.esm.js} +1 -1
- package/lib/chunks/{chunk-YLSNRJ7L.esm.js → chunk-WMBOZ7KA.esm.js} +1 -1
- package/lib/chunks/{chunk-MGMYTOBZ.esm.js → chunk-X64PGKAO.esm.js} +1 -1
- package/lib/chunks/{chunk-AW3ZCRZG.esm.js → chunk-XYIRIYYK.esm.js} +1 -1
- package/lib/chunks/chunk-Y75NAEIA.esm.js +1 -0
- package/lib/chunks/{chunk-KZL7TDC4.esm.js → chunk-YW2TWFDF.esm.js} +1 -1
- package/lib/chunks/{chunk-65HUSQDZ.esm.js → chunk-ZACTPOXN.esm.js} +1 -1
- package/lib/chunks/{chunk-5OKRBLPE.esm.js → chunk-ZZOIX6CV.esm.js} +1 -1
- package/lib/containers/Base/Base.style.d.ts +17 -5
- package/lib/containers/Base/index.d.ts +13 -8
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Box/Box.interface.d.ts +33 -0
- package/lib/containers/Box/Box.style.d.ts +22 -0
- package/lib/containers/Box/index.d.ts +16 -0
- package/lib/containers/Box/index.esm.js +1 -0
- package/lib/containers/Card/Card.d.ts +2 -2
- package/lib/containers/Card/Card.interface.d.ts +42 -9
- package/lib/containers/Card/Card.style.d.ts +80 -15
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/index.d.ts +8 -1
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/Flex.interface.d.ts +23 -6
- package/lib/containers/Flex/Flex.style.d.ts +52 -7
- package/lib/containers/Flex/index.d.ts +3 -4
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/Grid.interface.d.ts +31 -7
- package/lib/containers/Grid/Grid.style.d.ts +16 -5
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Notification/Notification.d.ts +26 -2
- package/lib/containers/Notification/Notification.group.d.ts +10 -4
- package/lib/containers/Notification/Notification.interface.d.ts +6 -6
- package/lib/containers/Notification/Notification.style.d.ts +200 -6606
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/Paper.interface.d.ts +24 -7
- package/lib/containers/Paper/Paper.style.d.ts +75 -33
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/DataTable.style.d.ts +8 -8
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/DescriptionList.interface.d.ts +8 -1
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Meter/Meter.style.d.ts +70 -6
- package/lib/dataDisplay/Meter/index.esm.js +1 -1
- package/lib/dataDisplay/Steps/Steps.style.d.ts +210 -18
- package/lib/dataDisplay/Steps/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +141 -13
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/Tabs.style.d.ts +401 -81
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/Avatar.interface.d.ts +4 -1
- package/lib/elements/Avatar/Avatar.style.d.ts +34 -14
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/Button.style.d.ts +70 -6
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Divider/Divider.style.d.ts +104 -20
- package/lib/elements/Divider/index.esm.js +1 -1
- package/lib/elements/Dropdown/Dropdown.d.ts +1 -1
- package/lib/elements/Dropdown/Dropdown.floating.d.ts +38 -0
- package/lib/elements/Dropdown/Dropdown.interface.d.ts +9 -0
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/IconButton/IconButton.style.d.ts +280 -24
- package/lib/elements/IconButton/index.esm.js +1 -1
- package/lib/elements/IconText/IconText.interface.d.ts +3 -1
- package/lib/elements/IconText/IconText.style.d.ts +39 -18
- package/lib/elements/IconText/index.esm.js +1 -1
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Label/index.esm.js +1 -1
- package/lib/elements/Link/Link.style.d.ts +4 -4
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/List.style.d.ts +104 -20
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.style.d.ts +244 -6628
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/ProgressBar.style.d.ts +70 -6
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Sheet/Sheet.d.ts +27 -0
- package/lib/elements/Sheet/Sheet.interface.d.ts +66 -0
- package/lib/elements/Sheet/Sheet.style.d.ts +151 -0
- package/lib/elements/Sheet/index.d.ts +9 -0
- package/lib/elements/Sheet/index.esm.js +1 -0
- package/lib/elements/Spinner/Spinner.style.d.ts +9 -3
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/Svg/Svg.style.d.ts +1 -1
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/Text.props.d.ts +90 -88
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/Tooltip.floating.d.ts +36 -0
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/ContainerQueryFactory/ContainerQueryFactory.interface.d.ts +21 -6
- package/lib/factory/ContainerQueryFactory/index.esm.js +1 -1
- package/lib/factory/MotionFactory/MotionFactory.d.ts +21 -0
- package/lib/factory/MotionFactory/MotionFactory.interface.d.ts +37 -0
- package/lib/factory/MotionFactory/index.d.ts +2 -0
- package/lib/factory/MotionFactory/index.esm.js +1 -0
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.interface.d.ts +12 -0
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/System/System.d.ts +5 -0
- package/lib/factory/System/System.interface.d.ts +73 -3
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/ViewportMediaFactory/ViewportMediaFactory.d.ts +25 -0
- package/lib/factory/ViewportMediaFactory/ViewportMediaFactory.interface.d.ts +50 -0
- package/lib/factory/ViewportMediaFactory/index.d.ts +8 -0
- package/lib/factory/ViewportMediaFactory/index.esm.js +1 -0
- package/lib/factory/index.d.ts +2 -0
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/Checkbox.style.d.ts +141 -13
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/Field.style.d.ts +80 -16
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/Form.style.d.ts +76 -12
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/Input.style.d.ts +78 -14
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/InputCurrency.style.d.ts +70 -6
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/index.esm.js +1 -1
- package/lib/form/InputMask/index.esm.js +1 -1
- package/lib/form/InputRange/InputRange.style.d.ts +8 -8
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/InputSelect/index.esm.js +1 -1
- package/lib/form/Option/Option.style.d.ts +70 -6
- package/lib/form/Option/index.esm.js +1 -1
- package/lib/form/Radio/Radio.style.d.ts +4 -4
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/Select/index.esm.js +1 -1
- package/lib/form/Switch/index.esm.js +1 -1
- package/lib/form/TextArea/TextArea.style.d.ts +75 -11
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.style.d.ts +102 -50
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/index.esm.js +1 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.esm.js +1 -1
- package/lib/hooks/useExitTransition/index.d.ts +10 -0
- package/lib/hooks/useExitTransition/index.esm.js +1 -0
- package/lib/hooks/useExitTransition/useExitTransition.d.ts +28 -0
- package/lib/hooks/useExitTransition/useExitTransition.helpers.d.ts +20 -0
- package/lib/hooks/useExitTransition/useExitTransition.interface.d.ts +34 -0
- package/lib/hooks/useFocusTrap/index.d.ts +7 -0
- package/lib/hooks/useFocusTrap/index.esm.js +1 -0
- package/lib/hooks/useFocusTrap/useFocusTrap.d.ts +27 -0
- 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.style.d.ts +12 -12
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/SideBarLayout.style.d.ts +12 -12
- package/lib/layouts/SideBarLayout/index.esm.js +1 -1
- package/lib/layouts/index.esm.js +1 -1
- package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
- package/lib/skeleton/TextPreset/index.esm.js +1 -1
- package/lib/skeleton/index.esm.js +1 -1
- package/lib/themes/Animation/Animation.props.d.ts +5 -3
- package/lib/themes/Animation/index.esm.js +1 -1
- package/lib/themes/GlobalStyle/index.esm.js +1 -1
- package/lib/themes/Motion/Motion.helpers.d.ts +58 -0
- package/lib/themes/Motion/Motion.interface.d.ts +86 -0
- package/lib/themes/Motion/Motion.props.d.ts +20 -0
- package/lib/themes/Motion/index.d.ts +10 -0
- package/lib/themes/Motion/index.esm.js +1 -0
- package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +21 -0
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.esm.js +1 -1
- package/package.json +16 -19
- package/lib/chunks/Notification.group-JOWXLB2O.esm.js +0 -1
- package/lib/chunks/chunk-24X4PCRH.esm.js +0 -1
- package/lib/chunks/chunk-2DVVVJJP.esm.js +0 -1
- package/lib/chunks/chunk-2JTAHCGS.esm.js +0 -1
- package/lib/chunks/chunk-363PMLHY.esm.js +0 -1
- package/lib/chunks/chunk-6DTZVTDE.esm.js +0 -1
- package/lib/chunks/chunk-CZQSAAEA.esm.js +0 -1
- package/lib/chunks/chunk-DXAKT2S3.esm.js +0 -2
- package/lib/chunks/chunk-EN4QMSDH.esm.js +0 -1
- package/lib/chunks/chunk-FIPPKZ3C.esm.js +0 -1
- package/lib/chunks/chunk-GZVFLN6W.esm.js +0 -1
- package/lib/chunks/chunk-HC3KBFJR.esm.js +0 -1
- package/lib/chunks/chunk-I564UV6U.esm.js +0 -1
- package/lib/chunks/chunk-II2LPQYL.esm.js +0 -1
- package/lib/chunks/chunk-IPANNHV3.esm.js +0 -1
- package/lib/chunks/chunk-LQL2LOMD.esm.js +0 -1
- package/lib/chunks/chunk-LX2VG2YS.esm.js +0 -1
- package/lib/chunks/chunk-M2FRELL5.esm.js +0 -1
- package/lib/chunks/chunk-QQU6KGIF.esm.js +0 -1
- package/lib/chunks/chunk-TNU4DCXP.esm.js +0 -1
- package/lib/chunks/chunk-TRGVJXBB.esm.js +0 -1
- package/lib/chunks/chunk-XBNEKPXU.esm.js +0 -1
- package/lib/chunks/chunk-XUDIJMQO.esm.js +0 -1
- package/lib/chunks/chunk-ZSDHXESA.esm.js +0 -1
- package/lib/containers/Motion/Motion.style.d.ts +0 -1652
- package/lib/containers/Motion/index.d.ts +0 -12
- package/lib/containers/Motion/index.esm.js +0 -1
- package/lib/vendors/FramerMotion/component.d.ts +0 -20
- package/lib/vendors/FramerMotion/index.d.ts +0 -2
- package/lib/vendors/FramerMotion/interface.d.ts +0 -16
- /package/lib/chunks/{chunk-2ROOI4B2.esm.js → chunk-PMN6TVDW.esm.js} +0 -0
- /package/lib/chunks/{chunk-PJQ3IZE7.esm.js → chunk-ZMHNNJNC.esm.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollion-dsi/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Apollion Design System — Component Library",
|
|
5
5
|
"homepage": "https://www.apollion.com.br",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,18 +19,14 @@
|
|
|
19
19
|
"import": "./lib/index.esm.js",
|
|
20
20
|
"require": "./lib/index.js"
|
|
21
21
|
},
|
|
22
|
-
"./containers/
|
|
23
|
-
"types": "./lib/containers/
|
|
24
|
-
"import": "./lib/containers/
|
|
22
|
+
"./containers/box": {
|
|
23
|
+
"types": "./lib/containers/Box/index.d.ts",
|
|
24
|
+
"import": "./lib/containers/Box/index.esm.js"
|
|
25
25
|
},
|
|
26
26
|
"./containers/card": {
|
|
27
27
|
"types": "./lib/containers/Card/index.d.ts",
|
|
28
28
|
"import": "./lib/containers/Card/index.esm.js"
|
|
29
29
|
},
|
|
30
|
-
"./containers/content": {
|
|
31
|
-
"types": "./lib/containers/Content/index.d.ts",
|
|
32
|
-
"import": "./lib/containers/Content/index.esm.js"
|
|
33
|
-
},
|
|
34
30
|
"./containers/flex": {
|
|
35
31
|
"types": "./lib/containers/Flex/index.d.ts",
|
|
36
32
|
"import": "./lib/containers/Flex/index.esm.js"
|
|
@@ -39,10 +35,6 @@
|
|
|
39
35
|
"types": "./lib/containers/Grid/index.d.ts",
|
|
40
36
|
"import": "./lib/containers/Grid/index.esm.js"
|
|
41
37
|
},
|
|
42
|
-
"./containers/motion": {
|
|
43
|
-
"types": "./lib/containers/Motion/index.d.ts",
|
|
44
|
-
"import": "./lib/containers/Motion/index.esm.js"
|
|
45
|
-
},
|
|
46
38
|
"./containers/notification": {
|
|
47
39
|
"types": "./lib/containers/Notification/index.d.ts",
|
|
48
40
|
"import": "./lib/containers/Notification/index.esm.js"
|
|
@@ -139,6 +131,10 @@
|
|
|
139
131
|
"types": "./lib/elements/ProgressBar/index.d.ts",
|
|
140
132
|
"import": "./lib/elements/ProgressBar/index.esm.js"
|
|
141
133
|
},
|
|
134
|
+
"./elements/sheet": {
|
|
135
|
+
"types": "./lib/elements/Sheet/index.d.ts",
|
|
136
|
+
"import": "./lib/elements/Sheet/index.esm.js"
|
|
137
|
+
},
|
|
142
138
|
"./elements/spinner": {
|
|
143
139
|
"types": "./lib/elements/Spinner/index.d.ts",
|
|
144
140
|
"import": "./lib/elements/Spinner/index.esm.js"
|
|
@@ -287,6 +283,10 @@
|
|
|
287
283
|
"types": "./lib/themes/Mode/index.d.ts",
|
|
288
284
|
"import": "./lib/themes/Mode/index.esm.js"
|
|
289
285
|
},
|
|
286
|
+
"./themes/motion": {
|
|
287
|
+
"types": "./lib/themes/Motion/index.d.ts",
|
|
288
|
+
"import": "./lib/themes/Motion/index.esm.js"
|
|
289
|
+
},
|
|
290
290
|
"./themes/semantic": {
|
|
291
291
|
"types": "./lib/themes/Semantic/index.d.ts",
|
|
292
292
|
"import": "./lib/themes/Semantic/index.esm.js"
|
|
@@ -311,10 +311,6 @@
|
|
|
311
311
|
"types": "./lib/utils/index.d.ts",
|
|
312
312
|
"import": "./lib/utils/index.esm.js"
|
|
313
313
|
},
|
|
314
|
-
"./factory": {
|
|
315
|
-
"types": "./lib/factory/index.d.ts",
|
|
316
|
-
"import": "./lib/factory/index.esm.js"
|
|
317
|
-
},
|
|
318
314
|
"./icons": {
|
|
319
315
|
"types": "./lib/icons/index.d.ts",
|
|
320
316
|
"import": "./lib/icons/index.esm.js"
|
|
@@ -341,6 +337,8 @@
|
|
|
341
337
|
"validate:tests": "jest --coverage",
|
|
342
338
|
"generate-exports": "node ./scripts/generate-exports.js",
|
|
343
339
|
"generate-exports:check": "node ./scripts/generate-exports.js --check",
|
|
340
|
+
"measure-matrix": "node ./scripts/measure-matrix.js",
|
|
341
|
+
"measure-matrix:check": "node ./scripts/measure-matrix.js --check",
|
|
344
342
|
"build:lib": "node -e \"require('fs').rmSync('./lib',{recursive:true,force:true})\" && node ./esbuild && tsc --emitDeclarationOnly",
|
|
345
343
|
"build": "yarn build:lib && yarn build-storybook",
|
|
346
344
|
"test": "yarn validate",
|
|
@@ -371,7 +369,6 @@
|
|
|
371
369
|
"date-fns": "4.1.0",
|
|
372
370
|
"deepmerge": "4.3.1",
|
|
373
371
|
"fast-deep-equal": "3.1.3",
|
|
374
|
-
"framer-motion": "12.38.0",
|
|
375
372
|
"lodash.debounce": "4.0.8",
|
|
376
373
|
"nanoid": "5.1.16",
|
|
377
374
|
"object-hash": "3.0.0",
|
|
@@ -383,10 +380,10 @@
|
|
|
383
380
|
"zod": "4.4.3"
|
|
384
381
|
},
|
|
385
382
|
"optionalDependencies": {
|
|
386
|
-
"@apollion-dsi/tokens": "
|
|
383
|
+
"@apollion-dsi/tokens": "7.0.0"
|
|
387
384
|
},
|
|
388
385
|
"devDependencies": {
|
|
389
|
-
"@apollion-dsi/eslint-config": "0.
|
|
386
|
+
"@apollion-dsi/eslint-config": "0.10.0",
|
|
390
387
|
"@axe-core/playwright": "^4.13.0",
|
|
391
388
|
"@babel/core": "7.29.0",
|
|
392
389
|
"@babel/preset-env": "7.29.5",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as m}from"./chunk-LX2VG2YS.esm.js";import"./chunk-EF34DPD2.esm.js";import"./chunk-2ROOI4B2.esm.js";import"./chunk-4UWZA5FD.esm.js";import"./chunk-KQQ7V7VG.esm.js";import"./chunk-NDIYF5SX.esm.js";import"./chunk-A3OJEVGQ.esm.js";import"./chunk-KR2X2UQG.esm.js";import"./chunk-BE2JDTVA.esm.js";import"./chunk-2FQC32AA.esm.js";import"./chunk-HSKYQ6VP.esm.js";import"./chunk-SPHHNZVP.esm.js";import"./chunk-3QSPHURU.esm.js";import"./chunk-MGMYTOBZ.esm.js";import"./chunk-DAT6GD4T.esm.js";import"./chunk-CDLUQDZD.esm.js";import"./chunk-OX6RGQBV.esm.js";import"./chunk-SXOSOU46.esm.js";import"./chunk-JLQDS5TS.esm.js";import"./chunk-7TJO34VI.esm.js";import"./chunk-5Q265MC7.esm.js";import"./chunk-3V3ZEGHO.esm.js";import"./chunk-NNPKPEER.esm.js";import"./chunk-7D6Z463O.esm.js";import"./chunk-EBOJSNZ5.esm.js";import"./chunk-DXAKT2S3.esm.js";import"./chunk-TG2P4DDY.esm.js";import"./chunk-4E3BR56X.esm.js";import"./chunk-TMIQIUOH.esm.js";import"./chunk-4L2KOZIQ.esm.js";import{d as s}from"./chunk-I564UV6U.esm.js";import"./chunk-YJHYFCT7.esm.js";import"./chunk-TLIKQFOT.esm.js";import"./chunk-IA234JY2.esm.js";import"./chunk-TG5BCBO4.esm.js";import"./chunk-G757UD32.esm.js";import"./chunk-OSFHXCPW.esm.js";import"./chunk-KT6QQ3UJ.esm.js";import"./chunk-BERIBF3O.esm.js";import"./chunk-LVVNQRJ2.esm.js";import"./chunk-Z7GJDO5T.esm.js";import"./chunk-P7RR4ZHS.esm.js";import"./chunk-JOKVE3IX.esm.js";import"./chunk-CWRWYU7D.esm.js";import"./chunk-PFLBU7HG.esm.js";import"./chunk-IPANNHV3.esm.js";import"./chunk-3DUB5C4Z.esm.js";import"./chunk-HVFI7FHR.esm.js";import"./chunk-H7ZXGMID.esm.js";import"./chunk-2JTAHCGS.esm.js";import"./chunk-KT4BKJVV.esm.js";import{a as r,b as a}from"./chunk-TRGVJXBB.esm.js";import"./chunk-QQU6KGIF.esm.js";import{a as o}from"./chunk-XUDIJMQO.esm.js";import"./chunk-PJQ3IZE7.esm.js";import"./chunk-II2LPQYL.esm.js";import"./chunk-VMIXRIQ2.esm.js";import"./chunk-HCNNXM2C.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-F62355HF.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-OXQA5WD3.esm.js";import"./chunk-TZQMBDGR.esm.js";import"./chunk-WCUEINBQ.esm.js";import"./chunk-YJ6PPJQ4.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-3A7I6HM2.esm.js";import"./chunk-WI3WPCW3.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-R2B57RMV.esm.js";import"./chunk-RFUX53ZX.esm.js";import"./chunk-CQASQBD7.esm.js";import"./chunk-MREWGN5R.esm.js";import"./chunk-PXVTXO3L.esm.js";import"./chunk-BV6GHAF7.esm.js";import{c as e}from"./chunk-G5Z7USXC.esm.js";import"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";import{useEffect as d,useState as y}from"react";import{createPortal as C}from"react-dom";import{jsx as t}from"react/jsx-runtime";var x=n(()=>{let{notifications:c,removeNotification:f}=s(),[p,l]=y(!1);return d(()=>{l(!0)},[]),!p||!e?null:C(t(o,{style:{position:"fixed",bottom:"1rem",right:"1rem"},children:t(r,{children:c.map(({id:i,...u})=>t(a,{initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{scale:0,opacity:0,height:0},style:{minWidth:300,maxWidth:"30vw",zIndex:100},children:t(o,{style:{margin:"0.5rem"},children:t(m,{...u,visible:!0,closable:!0,onDismiss:()=>f(i)})})},i))})}),e)},"NotificationGroup"),W=x;export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as i}from"./chunk-FIPPKZ3C.esm.js";import{e as t}from"./chunk-7D6Z463O.esm.js";import{a as r}from"./chunk-QQU6KGIF.esm.js";import{a as n}from"./chunk-XUDIJMQO.esm.js";import{a as p}from"./chunk-GZONWSRB.esm.js";import{jsx as o,jsxs as m}from"react/jsx-runtime";var s=p(({children:a,icon:l,title:c,description:x,...e})=>{let f=e.inverted?"ink.primary":"surface.paper";return o(i,{content:o(n,{p:"xs",children:m(r,{gap:"medium",maxWidth:400,color:f,children:[m(r,{flexDirection:"row",alignItems:"center",gap:"medium",children:[l,o(t,{variant:"h4",text:c,color:null})]}),o(t,{variant:"p",text:x,color:null})]})}),...e,children:a})},"Popover");s.displayName="Popover";export{s as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as h}from"./chunk-XUDIJMQO.esm.js";import{b as o}from"./chunk-G5Z7USXC.esm.js";import{g as f}from"./chunk-AXUWC2WH.esm.js";import{a as m}from"./chunk-GZONWSRB.esm.js";import{forwardRef as G,useCallback as x,useLayoutEffect as X,useRef as w,useState as _}from"react";var g;function y(){if(typeof window=="undefined")return 15;if(g!==void 0)return g;let e=o.document.createElement("div"),i=o.document.createElement("div");return e.style.overflow="scroll",e.style.width="100%",i.style.width="100%",o.document.body.appendChild(e),e.appendChild(i),g=e.offsetWidth-i.offsetWidth,e.removeChild(i),o.document.body.removeChild(e),g}m(y,"getOsScrollbarWidth");function W(){let e=y();return e?e+1:20}m(W,"getScrollbarWidth");var I=f(h).withConfig({componentId:"sc-wsu612-0"})(["flex:1;height:100%;overflow:hidden;"]),k=f(h).withConfig({componentId:"sc-wsu612-1"})(["height:100%;box-sizing:border-box;overflow-y:scroll;"]),b=f(h).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;"]),M=f(h).withConfig({componentId:"sc-wsu612-3"})(["flex:1;display:flex;overscroll-behavior:auto;overflow:hidden;&:hover ","{opacity:0.75;}"],b);import{jsx as S,jsxs as J}from"react/jsx-runtime";var j=G(({children:e,onScroll:i,style:R,scrollableRef:u,...D},P)=>{let[d,F]=_(1),s=w(null),p=w(null),C=w(0),E=w({}),z=x(r=>{s.current=r,typeof u=="function"?u(r):u&&(u.current=r)},[u]);X(()=>{let r=s.current,t,n=m(()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{var c;if(r){let{clientHeight:l,scrollHeight:a}=r;F(l/a),E.current={clientHeight:l,scrollHeight:a,trackHeight:(c=p==null?void 0:p.current)==null?void 0:c.clientHeight}}})},"updateScrollbar");return o.addEventListener("resize",n),n(),()=>{cancelAnimationFrame(t),o.removeEventListener("resize",n)}},[s,e]);let $=x(r=>{if(i&&i(r),d===1)return;let t=s.current,n=p.current;cancelAnimationFrame(C.current),C.current=requestAnimationFrame(()=>{let{clientHeight:c,scrollHeight:l,trackHeight:a}=E.current,v=t.scrollTop/(l-c)*(c-a);n&&(n.style.transform=`translateY(${v}px)`)})},[s,d,i]),O=x(r=>{let t=s.current,n,c=r.pageY,l=(t==null?void 0:t.scrollTop)||0,a=m(({pageY:v})=>{cancelAnimationFrame(n),n=requestAnimationFrame(()=>{let Y=v-c;l+=Y/d,c=v,t&&(t.scrollTop=l)})},"drag"),A=m(()=>{o.removeEventListener("mousemove",a)},"stop");o.addEventListener("mousemove",a),o.addEventListener("mouseup",A,{once:!0})},[s,d]),L=y(),T=!!L,H=T?W():0,q={style:{marginRight:`-${H}px`}},N={...R,paddingRight:H},B={onScroll:$,ref:z,tabIndex:0,style:{width:`calc(100% + ${L}px)`,overflowX:"hidden"}},U={ref:p,onMouseDown:O,style:{height:`${d*100}%`,display:d===1?"none":void 0}};return J(M,{...D,style:N,ref:P,children:[S(I,{...q,children:S(k,{...B,children:e})}),T&&S(b,{round:"micro",...U})]})});j.displayName="CustomScroll";export{j as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-KT4BKJVV.esm.js";import{a as n}from"./chunk-XUDIJMQO.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";var c=o(n).withConfig({componentId:"sc-1teioay-0"})(["animation:rotate 2s linear infinite;@keyframes rotate{100%{transform:rotate(360deg);}}"]),p=o(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;}}"]),d=2*Math.PI*20,f=o(n).withConfig({componentId:"sc-1teioay-2"})(["transform:rotate(-90deg);"]),l=o(t).withConfig({componentId:"sc-1teioay-3"})(["fill:none;stroke:currentColor;stroke-width:4;opacity:0.2;"]),m=o(t).withConfig({componentId:"sc-1teioay-4"})(["fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-dasharray:",";animation:drain var(--countdown-duration) linear forwards;@keyframes drain{0%{stroke-dashoffset:0;}100%{stroke-dashoffset:",";}}"],d,d);import{forwardRef as u}from"react";import{jsx as r,jsxs as S}from"react/jsx-runtime";var h=u(({size:w,label:i="Carregando",variant:y="indeterminate",duration:C=15e3,cycle:k,...a},s)=>{let e=w||"1em";return y==="countdown"?S(f,{as:"svg",viewBox:"0 0 50 50",role:"timer","aria-label":i,...a,width:e,height:e,ref:s,children:[r(l,{cx:"25",cy:"25",r:"20"}),r(m,{cx:"25",cy:"25",r:"20",style:{"--countdown-duration":`${C}ms`}},k)]}):r(c,{as:"svg",viewBox:"0 0 50 50",role:"status","aria-label":i,...a,width:e,height:e,ref:s,children:r(p,{cx:"25",cy:"25",r:"20"})})});h.displayName="Spinner";export{c as a,p as b,d as c,f as d,l as e,m as f,h as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-7D6Z463O.esm.js";import{a}from"./chunk-QQU6KGIF.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as b}from"react";var h=n(a).withConfig({componentId:"sc-1ulk0ua-0"})(["flex-shrink:0;margin:0;",""],({$orientation:i})=>i==="vertical"?"border-top-width: 0; border-right-width: 0; border-bottom-width: 0;":"border-right-width: 0; border-bottom-width: 0; border-left-width: 0;"),c=n(a).withConfig({componentId:"sc-1ulk0ua-1"})(["width:100%;"]);import{jsx as p,jsxs as g}from"react/jsx-runtime";var v=b(({orientation:i="horizontal",tone:y="hairline",color:t,thickness:D="thin",spacing:o="micro",label:e,...m},f)=>{let r=i==="vertical",w=t!=null?t:`edge.${y}`,d=l((x={})=>p(h,{as:r?"div":"hr",$orientation:i,role:r?"separator":void 0,"aria-orientation":r?"vertical":void 0,borderStyle:"solid",borderWidth:D,borderPosition:r?"left":"top",borderColor:w,...r?{alignSelf:"stretch",mx:o,minHeight:"1em"}:{width:"100%",my:o},...x}),"line");return e&&!r?g(c,{role:"separator","aria-label":typeof e=="string"?e:void 0,flexDirection:"row",alignItems:"center",gap:"small",my:o,...m,ref:f,children:[d({flex:"fluid",my:0}),typeof e=="string"?p(s,{fontSize:"micro",lineHeight:"tight",color:"ink.secondary",whiteSpace:"nowrap",children:e}):e,d({flex:"fluid",my:0})]}):d({...m,ref:f})});v.displayName="Divider";export{h as a,c as b,v as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as u}from"./chunk-GZVFLN6W.esm.js";import{a as d}from"./chunk-7D6Z463O.esm.js";import{a as t}from"./chunk-QQU6KGIF.esm.js";import{a as f}from"./chunk-R2B57RMV.esm.js";import{k as c}from"./chunk-PXVTXO3L.esm.js";import{b as h,g as l}from"./chunk-AXUWC2WH.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";var B=h(["cursor:pointer;&:hover,&:focus-within{border-color:",";box-shadow:",";transform:translateY(-2px);}@media (prefers-reduced-motion:reduce){&:hover,&:focus-within{transform:none;}}"],({theme:e})=>f(e,r=>c(r.colors.primary,"base")),({theme:e})=>e.depth("level-three")),g=l(u).withConfig({componentId:"sc-mtfzzn-0"})(["transition:",";",""],({theme:e})=>e.animation.transitions.short,({$interactive:e})=>e&&B),C=l(t).withConfig({componentId:"sc-mtfzzn-1"})(["margin:",";overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;"],({theme:e,$pad:r})=>{let o=`calc(${e.spacing(r)} * -1)`;return`${o} ${o} 0`});import{jsx as a,jsxs as y}from"react/jsx-runtime";var F=s(e=>{let r=[],o=[];return e.media&&(r.push("media"),o.push("auto")),e.title&&(r.push("title"),o.push("auto")),r.push("content"),o.push(e.action?"1fr":"auto"),e.action&&(r.push("action"),o.push("auto")),{columns:"1fr",rows:o.join(" "),areas:r.map(i=>`"${i}"`).join(" ")}},"cardTemplate"),x=s(({media:e,title:r,description:o,subtitle:i,actionComponent:n,children:b,interactive:m=!1,medias:S,p="large",...w})=>{let I=typeof r=="string"?a(d,{as:"h4",fontSize:"small",fontWeight:"bold",lineHeight:"regular",color:"ink.primary",children:r}):r,v=typeof o=="string"?a(d,{as:"p",fontSize:"micro",lineHeight:"wild",color:"ink.secondary",children:o}):o,z=F({media:!!e,title:!!r,action:!!n});return y(g,{borderRadius:"md",borderWidth:"thin",borderColor:"edge.hairline",bgColor:"surface.paper",overflow:m?"visible":"hidden",p,medias:{...z,gap:"large",...S},$interactive:m,containment:"inline-size",...w,children:[e&&a(C,{area:"media",$pad:p,children:e}),r&&a(t,{area:"title",children:I}),y(t,{area:"content",gap:"xs",children:[v,i,b]}),n&&a(t,{area:"action",children:n})]})},"CardComponent");x.displayName="Card";export{x as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as b}from"./chunk-MGMYTOBZ.esm.js";import{o as k}from"./chunk-DAT6GD4T.esm.js";import{b as x}from"./chunk-CDLUQDZD.esm.js";import{e as w}from"./chunk-7D6Z463O.esm.js";import{b as h}from"./chunk-I564UV6U.esm.js";import{a as y}from"./chunk-QQU6KGIF.esm.js";import{b as S}from"./chunk-TZQMBDGR.esm.js";import{g as u}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as v,useEffect as B,useState as D}from"react";var C=u(y).withConfig({componentId:"sc-1bknes7-0"})(["list-style:none;padding:0;margin:0;"]),T=u(y).withConfig({componentId:"sc-1bknes7-1"})(["padding:8px 12px;cursor:pointer;&:hover{","}",""],S(({isSelected:t})=>!t&&{bgColor:"muted"}),S(({isSelected:t})=>t&&{bgColor:"wash.selected"}));import{jsx as d,jsxs as N}from"react/jsx-runtime";var H=l(({item:t,showCheckIcon:a,action:p})=>{var f;if(!t.title)throw new Error("You need to pass a title to you object inside the list");let m=a&&t.isSelected&&!t.to,i=l(()=>!t.to&&p(),"onClickItem"),o=N(T,{as:"li",gap:"xs",width:"100%",flexDirection:"row",alignItems:"center",borderRadius:"micro",isSelected:t.isSelected,onClick:i,children:[(f=t.icon)!=null?f:m&&d(x,{icon:k,color:"main"}),d(w,{whiteSpace:"nowrap",children:t.title})]});return t.to?d(b,{href:t.to,children:o}):o},"ListItem"),M=v(({content:t,multiple:a,exclusive:p,showCheckIcon:m,onSelectItems:i,onItemClick:o,...f},E)=>{let[I,g]=D(()=>t.map(e=>({id:h(5),isSelected:!1,...e})));B(()=>{g(e=>e.map((s,L)=>{var n;let r=(n=t[L])==null?void 0:n.isSelected;return r===void 0||r===s.isSelected?s:{...s,isSelected:r}}))},[t]);let R=l(e=>()=>{var n;let s=e.id,L=p&&!a?!0:!e.isSelected,r=I.map(c=>c.id===s?{...c,isSelected:L}:{...c,isSelected:a?c.isSelected:!1});if(g(r),i==null||i(r),o==null||o(e),e.action){let{action:c,icon:U,...F}=e;(n=e.action)==null||n.call(e,F)}},"toggleItem");return d(C,{as:"ul",gap:"micro",...f,ref:E,children:I.map(e=>d(H,{item:e,showCheckIcon:m,action:R(e)},e.id))})});M.displayName="List";export{C as a,T as b,M as c};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as i}from"./chunk-I564UV6U.esm.js";import{b as r}from"./chunk-TLIKQFOT.esm.js";import{c as a,h as m}from"./chunk-YJ6PPJQ4.esm.js";import{a as n}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{normalize as s}from"styled-normalize";import{jsx as p}from"react/jsx-runtime";var c=n([""," *,*::before,*::after{box-sizing:inherit;}html{font-size:100%;color-scheme:light;}html[","='dark']{color-scheme:dark;}"," html,body{margin:0;padding:0;box-sizing:border-box;background-color:",";color:",";","}",";"],s,({$attribute:o=r})=>o,({$system:o,$attribute:e=r})=>o?`@media (prefers-color-scheme: dark) { html:not([${e}]) { color-scheme: dark; } }`:"",({theme:o})=>{var e,t;return(t=(e=o.colors.surface)==null?void 0:e.canvas)!=null?t:o.colors.baseLight},({theme:o})=>{var e,t;return(t=(e=o.colors.ink)==null?void 0:e.primary)!=null?t:o.colors.baseDark},({theme:o})=>Object.entries(m(o,a)).map(([e,t])=>`${e}: ${t};`).join(`
|
|
2
|
-
`),({extend:o})=>o);function b(o){let e=i();return p(c,{...o,$attribute:e==null?void 0:e.attribute,$system:(e==null?void 0:e.mode)==="system"})}l(b,"GlobalStyle");export{c as a,b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as H}from"./chunk-CZQSAAEA.esm.js";import{b as w,c as D,d as F,e as b,f as v,g as y,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 R}from"./chunk-BE2JDTVA.esm.js";import{a as P}from"./chunk-LQL2LOMD.esm.js";import{e as p}from"./chunk-BV6GHAF7.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import G,{useEffect as J,useState as Q}from"react";import{Fragment as X,jsx as r,jsxs as Y}from"react/jsx-runtime";var V={left:"bottom-start",right:"bottom-end",center:"bottom"},I=t(({children:a,options:n,content:s,hoverable:L=!1,position:z="left",width:i,full:d})=>{if(!n&&!s)throw new Error('Dropdown deve receber "content" ou "options" props');let m=p(a),A=n?"menu":"dialog",[O,S]=Q(),{active:l,enable:f,disable:g,toggle:W}=R(!1),{refs:u,floatingStyles:k,context:o,elements:c}=M({open:l,onOpenChange:t(e=>e?f():g(),"onOpenChange"),placement:V[z],middleware:[v(4),D(),x({padding:8})],whileElementsMounted:w}),{getReferenceProps:B,getFloatingProps:K}=h([E(o,{enabled:!m}),T(o,{enabled:L,move:!1,handleClose:y()}),C(o,{outsidePress:!0,escapeKey:!0}),N(o,{role:A})]);J(()=>{if(d&&c.reference){let e=c.reference.getBoundingClientRect();S(e.width)}},[d,c.reference]);let U=t(()=>{let e=m?a({isOpen:l,open:f,toggle:W}):a;return G.cloneElement(e,{ref:u.setReference,...B()})},"renderTrigger"),q=t(()=>{let e=s;return Array.isArray(n)&&(e=r(H,{gap:"zero",color:"primary.action",exclusive:!0,content:n})),p(s)&&(e=s({close:g})),r(P,{p:"xs",borderRadius:"xs",deep:2,width:i!=null?i:O,children:e})},"renderDropdownContent");return Y(X,{children:[U(),l&&r(b,{children:r(F,{context:o,modal:!1,initialFocus:-1,children:r("div",{ref:u.setFloating,style:{...k,zIndex:500},...K(),children:q()})})})]})},"DropdownComponent");I.displayName="Dropdown";export{I as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as R,b as C,c as P,e as k,f as v,h as E,j as F,k as S,l as I,m as z,n as B,o as H}from"./chunk-5H2LWL6K.esm.js";import{a as b}from"./chunk-7D6Z463O.esm.js";import{a as c}from"./chunk-XUDIJMQO.esm.js";import{g as s}from"./chunk-AXUWC2WH.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import l from"react";function W({inverted:e,theme:o}){return e?{"--background":o.colors.surface.raised,"--color":o.colors.ink.primary}:{"--background":o.colors.ink.primary,"--color":o.colors.surface.paper}}r(W,"getContainerStyle");var t=s(c).withConfig({componentId:"sc-10yilai-0"})(["position:absolute;width:8px;height:8px;z-index:-1;&::before{content:'';transform:rotate(45deg);background:var(--background);position:absolute;width:8px;height:8px;z-index:-1;}"]),M=s(c).withConfig({componentId:"sc-10yilai-1"})([""," color:var(--color);background-color:var(--background);line-height:1;&[data-placement^='top'] > ","{bottom:-3px;}&[data-placement^='bottom'] > ","{top:-3px;}&[data-placement^='left'] > ","{right:-4px;}&[data-placement^='right'] > ","{left:-4px;}"],W,t,t,t,t);import{Fragment as Z,jsx as f,jsxs as A}from"react/jsx-runtime";var O=r((e,o)=>typeof e=="string"?f(b,{...o,children:e}):e,"getElement"),N=r(({children:e,position:o="top",content:U,inverted:$,noArrow:q,onDismiss:n,visible:i})=>{var y,h;if(i!==void 0&&typeof n=="undefined")throw new Error('Voc\xEA deve fornecer a fun\xE7\xE3o "onDismiss" quando utilizar a prop "visible"');let d=l.useRef(null),[D,K]=l.useState(!1),p=i!==void 0,m=p?!!i:D,L=l.useCallback(T=>{p?!T&&n&&n():K(T)},[p,n]),{refs:u,floatingStyles:V,context:a,placement:X,middlewareData:g}=S({open:m,onOpenChange:L,placement:o,middleware:[v(8),P(),E({padding:4}),R({element:d})],whileElementsMounted:C}),{getReferenceProps:Y,getFloatingProps:G}=B([z(a,{move:!1,restMs:40}),I(a),F(a,{outsidePress:!0,escapeKey:!0}),H(a,{role:"tooltip"})]),x=(y=g.arrow)==null?void 0:y.x,w=(h=g.arrow)==null?void 0:h.y,J=O(e),Q=l.cloneElement(J,{ref:u.setReference,...Y()});return A(Z,{children:[Q,m&&f(k,{children:A(M,{ref:u.setFloating,inverted:$,deep:2,p:"xs",borderRadius:"xs","data-placement":X,style:V,...G(),children:[O(U,{fontSize:"micro",lineHeight:"regular"}),!q&&f(t,{ref:d,style:{left:x!=null?`${x}px`:"",top:w!=null?`${w}px`:""}})]})})]})},"TooltipComponent");N.displayName="Tooltip";export{t as a,M as b,N as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-XUDIJMQO.esm.js";import{c as a}from"./chunk-WI3WPCW3.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var u=t(e=>{var i;if(e===void 0)return;if(typeof e=="string")return e;let r="autoFit"in e?"auto-fit":"auto-fill",n="autoFit"in e?e.autoFit:e.autoFill;return`repeat(${r}, minmax(min(${n}, 100%), ${(i=e.max)!=null?i:"1fr"}))`},"resolveColumns"),f=t((e,r)=>({gridTemplateColumns:u(r.columns),gridTemplateRows:r.rows,gridTemplateAreas:r.areas,gap:r.gap?e.spacing(r.gap):void 0,gridColumnGap:r.columnGap?e.spacing(r.columnGap):void 0,gridRowGap:r.rowGap?e.spacing(r.rowGap):void 0,...a(r)}),"getGridProps"),s=t(({medias:e,theme:r})=>e?"xs"in e?Object.keys(e).reduce((n,i)=>({...n,[r.breakpoints.up(i)]:f(r,e[i])}),{}):f(r,e):{},"setGridBreakpoints"),G=d(o).withConfig({componentId:"sc-11fh3lu-0"})(["display:grid;",""],s);export{s as a,G as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as ae}from"./chunk-BLJLBPUO.esm.js";import{b as A}from"./chunk-GZVFLN6W.esm.js";import{a as Y,b as Z}from"./chunk-EF34DPD2.esm.js";import{a as oe}from"./chunk-A3OJEVGQ.esm.js";import{b as te}from"./chunk-KR2X2UQG.esm.js";import{a as ee}from"./chunk-BE2JDTVA.esm.js";import{I as ie,J as ne,ga as re,ja as k}from"./chunk-DAT6GD4T.esm.js";import{b as S}from"./chunk-CDLUQDZD.esm.js";import{b as J}from"./chunk-SXOSOU46.esm.js";import{f as Q}from"./chunk-NNPKPEER.esm.js";import{e as I}from"./chunk-7D6Z463O.esm.js";import{b as X}from"./chunk-I564UV6U.esm.js";import{a as x}from"./chunk-QQU6KGIF.esm.js";import{a as R}from"./chunk-XUDIJMQO.esm.js";import{d as K}from"./chunk-WI3WPCW3.esm.js";import{m as V}from"./chunk-BV6GHAF7.esm.js";import{g as v}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var le=i(({theme:e,readOnly:t,disabled:o,active:c})=>{if(t||o)return null;let d=e.colors.primary.base;return{borderWidth:1,borderStyle:"dashed",borderColor:c?d:"transparent","&:hover":{borderColor:d}}},"activeStyle"),se=i(({disabled:e,readOnly:t})=>(e||t)&&{cursor:"not-allowed",pointerEvents:"none",userSelect:"none"},"disabledStyle"),de=v(R).withConfig({componentId:"sc-1erdx9t-0"})([""," "," container-type:inline-size;"],le,se),j=v(R).withConfig({componentId:"sc-1erdx9t-1"})(["pointer-events:none;display:flex;justify-content:center;align-items:center;"]),N=v(R).withConfig({componentId:"sc-1erdx9t-2"})(["opacity:0.95;"]),T=v(A).withConfig({componentId:"sc-1erdx9t-3"})(["& ","{padding:0;svg{width:0.8rem;height:0.8rem;}}"],Y),me=v(x).withConfig({componentId:"sc-1erdx9t-4"})(["min-width:0;overflow-y:auto;overflow-x:hidden;& ","{padding:"," 0;}& "," + & ","{margin-top:",";}"],T,({theme:e})=>e.spacing("xs"),T,T,({theme:e})=>e.spacing("medium")),ce=v(I).withConfig({componentId:"sc-1erdx9t-5"})(["flex:1;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),fe=v(R).attrs(e=>({borderRadius:"micro",bgColor:"surface.sunken",...e})).withConfig({componentId:"sc-1erdx9t-6"})(["--fillColor:",";height:4px;background-image:linear-gradient(var(--fillColor),var(--fillColor));background-repeat:no-repeat;background-size:0%;transition:all 100ms linear;"],({theme:e})=>e.colors.information.base),B=v(R).attrs(e=>({borderRadius:"micro",...e})).withConfig({componentId:"sc-1erdx9t-7"})(["align-self:center;overflow:hidden;width:2rem;height:2rem;font-size:1.6rem;color:",";"],({theme:e})=>e.colors.primary.base),pe=v(A).withConfig({componentId:"sc-1erdx9t-8"})([""," ",""],le,se),ue=v(A).withConfig({componentId:"sc-1erdx9t-9"})(["",""],K({flex:"fluid"}));import{forwardRef as je,useCallback as Ne,useEffect as qe,useImperativeHandle as Me,useRef as $e,useState as He}from"react";function q(e){let t=Math.floor(Math.log(e)/Math.log(1e3));return`${(e/1e3**t).toFixed(2)} ${["B","kB","MB","GB","TB"][t]}`}i(q,"fileSize");function M(e,t){let o=t||15728640;return(Array.isArray(e)?e:[e]).filter(d=>d.size<=o)}i(M,"filterFiles");function $(e){return e.map(t=>({id:X(),file:t,fileName:t.name,fileSize:q(t.size)}))}i($,"convertFileToFileItem");function ge(e){let{fieldName:t,file:o,requestConfig:c}=e,{endpoint:d,timeout:y,auth:p,params:F,withCredentials:r,responseType:m,headers:f,formDataParams:l}=c;return new Promise((u,h)=>{let a=new XMLHttpRequest;a.timeout=y;let b=new FormData;b.append(t,o,o.name),l&&l.forEach(s=>{b.append(s.key,s.value)});let O=new URL(d);if(F&&Object.keys(F).forEach(s=>{O.searchParams.append(s,F[s])}),a.open("post",O.href),"setRequestHeader"in a){let s={...f};if(p){let g=p.username||"",P=unescape(encodeURIComponent(p.password))||"",D=`${g}:${P}`;s.Authorization=`Basic ${btoa(D)}`}Object.keys(s).forEach(g=>{let P=s[g];P!==void 0&&a.setRequestHeader(g,P)})}r!==void 0&&(a.withCredentials=!!r),a.responseType=m||"json";let w=0;a.upload.addEventListener("progress",s=>{e.onProgress&&(w=s.loaded,e.onProgress(s.loaded))}),a.onreadystatechange=()=>{var g;if(!a||a.readyState!==4||a.status===0&&((g=a==null?void 0:a.responseURL)==null?void 0:g.indexOf("file:"))!==0)return;let s={response:a.response,status:a.status,statusText:a.statusText};e.onProgress&&e.onProgress(w,!0,s),u(s),a=null},a.onerror=()=>{e.onProgress&&e.onProgress(w,!1),h(),a=null},a.send(b)})}i(ge,"uploadFile");import{useEffect as Ae,useState as Be}from"react";function Fe(e,t){let[o,c]=Be(null);return Ae(()=>{let d="";return e&&t&&t(e)&&(d=URL.createObjectURL(e),c(d)),()=>{URL.revokeObjectURL(d)}},[e,t]),o}i(Fe,"useObjectUrl");import{Fragment as ze,jsx as n,jsxs as C}from"react/jsx-runtime";function Ce(e){let{disabled:t,acceptLabel:o,isDragging:c,events:d,files:y,removeFile:p,openFileDialogButton:F,readOnly:r,style:m,className:f,inputFile:l}=e,u=y.length>0,h=u&&n(me,{flexDirection:"column",flex:"fluid",p:"large",children:y.map(a=>n(ye,{removeFile:p,readOnly:r,...a},a.id))});return C(de,{...d,style:m,className:f,active:c,disabled:t,readOnly:r,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",deep:2,children:[l,C(x,{cq:{md:{flexDirection:"row",height:300,maxHeight:300}},children:[C(x,{gap:"small",flex:"fluid",cq:u?{md:{flex:"initial"}}:void 0,p:"large",bgColor:"deepLight",justifyContent:"center",alignItems:"center",children:[C(x,{gap:"xs",alignItems:"center",children:[n(S,{icon:k,size:16,color:r||t?"ink.disabled":"secondary"}),o&&n(I,{variant:"meta",fontWeight:"bold",children:o})]}),!r&&C(ze,{children:[n(I,{variant:"p",children:"Arraste e solte aqui"}),n(I,{variant:"p",fontWeight:"bold",children:"ou"}),F]})]}),h]}),c&&C(j,{absoluteFill:!0,children:[n(N,{absoluteFill:!0,bgColor:"surface.paper"}),C(x,{gap:"small",justifyContent:"center",alignItems:"center",p:8,children:[n(S,{icon:k,color:"information.dark",size:9}),n(I,{variant:"p",color:"information.dark",children:"Arraste e solte aqui"})]})]})]})}i(Ce,"UploadCardRegular");function xe(e){let{disabled:t,isDragging:o,events:c,files:d,removeFile:y,style:p,className:F,readOnly:r,openFileDialogButton:m,inputFile:f}=e;return C(pe,{...c,style:p,className:F,active:o,disabled:t,readOnly:r,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",p:"large",medias:{xs:{gap:"large"},sm:{columns:"max-content 1fr"}},children:[f,n(x,{flexDirection:"row",justifyContent:"start",alignItems:"start",children:m}),n(ue,{medias:{xs:{gap:"medium",columns:"repeat(auto-fill, minmax(240px, 1fr))"}},children:d.map(l=>n(ye,{removeFile:y,readOnly:r,...l},l.id))}),o&&C(j,{children:[n(N,{}),C(x,{flexDirection:"row",gap:"small",justifyContent:"center",alignItems:"center",children:[n(S,{icon:k,color:"information.dark",size:6}),n(I,{variant:"p",children:"Arraste e solte aqui"})]})]})]})}i(xe,"UploadCardCompact");function ye({removeFile:e,readOnly:t,...o}){let c=o.uploadLoaded?`${o.uploadLoaded} de`:"";return C(T,{medias:{xs:{gap:"micro",columns:"2rem 1fr"}},children:[n(Ee,{...o}),C(x,{children:[C(x,{flexDirection:"row",justifyContent:"between",children:[n(ce,{variant:"meta",children:n("b",{children:o.fileName})}),!t&&n(Z,{onClick:()=>e(o.id),icon:n(S,{icon:re}),variant:"linked"})]}),o.uploadPercentage&&n(fe,{style:{backgroundSize:o.uploadPercentage}}),C(x,{flexDirection:"row",justifyContent:"between",children:[n(I,{variant:"meta",children:`${c} ${o.fileSize}`}),o.uploadPercentage&&n(I,{variant:"meta",children:`Enviando ${o.uploadPercentage}`})]})]})]})}i(ye,"FileItemComponent");function Ee({file:e}){let t=Fe(e,o=>o.type.startsWith("image"));return t?n(B,{children:n(J,{src:t,cover:!0})}):e.name.endsWith(".pdf")?n(B,{children:n(S,{icon:ne})}):n(B,{children:n(S,{icon:ie})})}i(Ee,"Preview");import{useState as Ve}from"react";function he(e){let[t,o]=Ve({files:[],type:null,payload:null});return{files:t,setInitialFiles:i(r=>{var u;let m=M(r,e.maxSize),l={files:$(m),type:"ADD_INITIAL_FILES"};(u=e.onChange)==null||u.call(e,l),o(l)},"setInitialFiles"),removeFile:i(r=>{var f;let m={type:"REMOVE",files:t.files.filter(l=>l.id!==r),payload:t.files.find(l=>l.id===r)};(f=e.onChange)==null||f.call(e,m),o(m)},"removeFile"),removeAll:i(()=>{var m;let r={files:[],type:"REMOVE"};(m=e.onChange)==null||m.call(e,r),o(r)},"removeAll"),addFiles:i(r=>{var h;let m=M(r,e.maxSize),f=$(m),l=[...t.files,...f],u={files:l,type:"ADD",payload:f};e.single&&(l=f,u={files:l,type:"REPLACE",payload:l[0]}),(h=e.onChange)==null||h.call(e,u),o(u)},"addFiles"),updateFileProgress:i((r,m,f,l)=>{var s;let u=t.files.find(g=>g.id===r),h=i(()=>({uploadCompleted:f,uploadError:!f,uploadResponse:l||void 0}),"uploadResponse"),b={...u,...m!==void 0?i(()=>({uploadLoaded:q(m),uploadPercentage:`${Math.min(m/u.file.size*100,100).toFixed(0)}%`}),"progressStatus")():{},...f!==void 0?h():{}},w={files:t.files.map(g=>g.id===b.id?b:g),type:"UPDATE",payload:b};(s=e.onChange)==null||s.call(e,w),o(w)},"updateFileProgress")}}i(he,"useFileState");import{jsx as E}from"react/jsx-runtime";var We=je((e,t)=>{let{accept:o,maxSize:c,singleFile:d,uploadConfig:y,onUnsupportedFile:p,customButton:F,style:r,className:m,onChange:f,initialFiles:l,name:u}=e,[h,a]=He(!1),{active:b,enable:O,disable:w}=ee(),{files:s,setInitialFiles:g,addFiles:P,removeFile:D,removeAll:ve,updateFileProgress:H}=he({single:d,maxSize:c,onChange:f}),{getFiles:Ie}=oe({accept:o,single:d,onFilesSelect:P,onUnsupportedFile:p}),{isDragging:W,events:we}=te({accept:o,single:d,onDrop:P});qe(()=>{let U=Array.isArray(l)?l.length>0:!!l;!h&&!s.files.length&&U&&(a(!0),g(l))},[h,a,l,g,s.files]);let Pe=Ne(async U=>{if(s.files.length){O();let Se=s.files.map(({id:Re,file:Te})=>ge({file:Te,fieldName:U.formDataFileKey||"file",requestConfig:{...y,...U},onProgress:i((De,Le,ke)=>{H(Re,De,Le,ke)},"onProgress")})),Oe=await Promise.all(Se);return w(),Oe}return[]},[s.files,y,O,H,w]);Me(t,()=>({submit:Pe,addFiles:P,removeFile:D,removeAll:ve,files:s.files}));let L=$e(null),z=i(()=>{var U;(U=L==null?void 0:L.current)==null||U.click()},"openFileDialog"),Ue=F?F({files:s.files,isDragging:W,openFileDialog:z,isSubmitting:b}):E(Q,{onClick:z,variant:"outlined",color:"secondary",size:"small",disabled:e.readOnly||e.disabled||b,isLoading:b,type:"button",children:e.buttonText||"Enviar arquivos"}),G={...e,...!e.readOnly&&{events:we,isDragging:W},files:s.files,style:r,className:m,removeFile:D,openFileDialog:z,openFileDialogButton:Ue,name:u},_=E(ae,{type:"file",isHidden:!0,position:"absolute",name:u,id:u,ref:L,onChange:Ie,multiple:!d,accept:Array.isArray(o)?o.join(","):void 0});return e.compact?E(xe,{...G,inputFile:_}):E(Ce,{...G,inputFile:_})});We.displayName="UploadCard";import{useCallback as Ge,useState as be}from"react";var Vt=i(()=>{let[e,t]=be([]),[o,c]=be([]);return{onFilesChange:Ge(p=>{if(!p.payload)return;let{payload:F}=p;p.type==="ADD"?c(r=>V(r,F)):p.type==="REMOVE"&&t(r=>V(r,F))},[]),removedFiles:e,addedFiles:o,clear:i(p=>{p==="removedFiles"&&t([]),p==="addedFiles"&&c([])},"clear")}},"useFileControl");export{de as a,j as b,N as c,T as d,me as e,ce as f,fe as g,B as h,pe as i,ue as j,We as k,Vt as l};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as De,b as Ce,c as xe,d as Oe}from"./chunk-YJHYFCT7.esm.js";import{a as Ne,b as Te,d as Ae,e as Me,f as Se,g as ke,h as be,i as z,m as we,p as Ie,q as Re}from"./chunk-TLIKQFOT.esm.js";import{a as Le,b as Fe}from"./chunk-TG5BCBO4.esm.js";import{a as G}from"./chunk-G757UD32.esm.js";import{b as Ye}from"./chunk-OSFHXCPW.esm.js";import{b as ue,c as me}from"./chunk-KT6QQ3UJ.esm.js";import{a as le,b as pe}from"./chunk-BERIBF3O.esm.js";import{a as ye}from"./chunk-LVVNQRJ2.esm.js";import{b as Pe,c as he}from"./chunk-P7RR4ZHS.esm.js";import{b as ve}from"./chunk-JOKVE3IX.esm.js";import{a as Ee}from"./chunk-PFLBU7HG.esm.js";import{a as de}from"./chunk-IPANNHV3.esm.js";import{a as fe}from"./chunk-3DUB5C4Z.esm.js";import{b as Ge}from"./chunk-HVFI7FHR.esm.js";import{a as ce}from"./chunk-VMIXRIQ2.esm.js";import{b as re,c as ne,d as ie}from"./chunk-R2B57RMV.esm.js";import{c as te}from"./chunk-RFUX53ZX.esm.js";import{a as F,b as W,g as ee,h as oe}from"./chunk-CQASQBD7.esm.js";import{d as se,e as ae}from"./chunk-AXUWC2WH.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";function _(r={}){let{colors:n,breakpoints:t,containerSizes:i,layout:d,spacing:A,border:u,font:m,dimension:y,typeWeight:M,component:D}=le({colors:F,spacing:Le,font:Pe,border:fe,breakpoints:ue,containerSizes:De,layout:Ce,dimension:ve,typeWeight:"regular",component:{}},r),f=W(n),S=Fe(A,y),v=he(m,y,M),k=Ye({colors:f,spacing:S});return{font:v,border:u,animation:de,colors:f,breakpoints:me(t),containerSizes:xe(i),layout:Oe(d),spacing:S,depth:te(f),deep:ye(f),semantic:k,foundation:Ee(k),component:pe(D)}}c(_,"createTheme");import{createContext as He,lazy as je,Suspense as Je,useContext as Ke,useReducer as Xe,useRef as Ze}from"react";import{nanoid as _e}from"nanoid";import{Fragment as oo,jsx as B,jsxs as to}from"react/jsx-runtime";var We=je(()=>import("./Notification.group-JOWXLB2O.esm.js")),Ve=He({});function eo(r,{type:n,payload:t}){switch(n){case"ADD":return[t,...r];case"REMOVE":return r.filter(i=>i.id!==t.id);default:return r}}c(eo,"NotificationReducer");var ze=c(r=>{let[n,t]=Xe(eo,[]),i=Ze(!1),d=c(u=>{t({type:"REMOVE",payload:{id:u}})},"removeNotification"),A=c(u=>{if(t({type:"ADD",payload:{id:_e(),...u}}),n.length>=3){let[m]=n.slice(-1);setTimeout(()=>d(m.id),0)}},"showNotification");return n.length>0&&(i.current=!0),B(Ve.Provider,{value:{notifications:n,removeNotification:d,showNotification:A},children:to(oo,{children:[r.children,i.current&&B(Je,{fallback:null,children:B(We,{})})]})})},"NotificationsProvider");function wo(){let r=Ke(Ve);if(r===void 0)throw new Error("cant use useNotification hook outside of <NotificationsProvider />");return r}c(wo,"useNotification");import o from"react";import{jsx as R}from"react/jsx-runtime";function ro(r,n){return typeof n=="string"?ce(r):!0}c(ro,"shouldForwardProp");var no=typeof window=="undefined"?o.useEffect:o.useLayoutEffect,g=o.createContext(null);function go(){let r=o.useContext(g);if(r===null)throw new Error("useApollionTheme deve ser usado dentro de um <ApollionProvider>.");return r}c(go,"useApollionTheme");function Qo(){return o.useContext(g)}c(Qo,"useApollionThemeOptional");var Uo=c(({children:r,theme:n,lightTheme:t,darkTheme:i,colors:d,useSystemPreference:A=!1,themeMode:u,onThemeModeChange:m,mode:y,defaultMode:M,initialMode:D,onModeChange:f,persist:S=!1,storageKey:v=Ne,syncDocument:k=!0,attribute:b=Te,a11y:Q,defaultA11y:Be=null,onA11yChange:C,surface:x="positive",dimension:E,typeWeight:N})=>{var Z;let s=o.useMemo(()=>we(S),[S]),O=Me(v),Y=y!==void 0||u!==void 0,ge=M!=null?M:A?"system":"light",[Qe,U]=o.useState(ge),T=(Z=y!=null?y:u)!=null?Z:Qe,[V,$]=o.useState(()=>D!==void 0?D==="dark":T==="system"&&be()),a=z(T,V),w=Q!==void 0,[Ue,q]=o.useState(Be),P=w?Q:Ue;no(()=>{if(s){if(!Y){let e=s.read(v);Se(e)&&U(e)}if(!w){let e=s.read(O);if(e===null||e==="")return;q(ke(e)?e:null)}}},[s,v,O,Y,w]),o.useEffect(()=>{var I;if(T!=="system")return;let e=typeof window!="undefined"?(I=window.matchMedia)==null?void 0:I.call(window,Ae):void 0;if(!e)return;$(e.matches);let p=c(qe=>$(qe.matches),"handleChange");return e.addEventListener("change",p),()=>e.removeEventListener("change",p)},[T]),o.useEffect(()=>{if(!(!k||typeof document=="undefined"))return Ie(document.documentElement,{mode:a,a11y:P},{attribute:b}),()=>Re(document.documentElement,{attribute:b})},[k,a,P,b]);let L=o.useCallback(e=>{Y||U(e),s==null||s.write(v,e),f==null||f(e),m==null||m(z(e,V))},[Y,s,v,f,m,V]),H=o.useCallback(e=>{w||q(e),s==null||s.write(O,e),C==null||C(e)},[w,s,O,C]),j=o.useCallback(e=>L(e!=null?e:a==="dark"?"light":"dark"),[L,a]),J=o.useMemo(()=>{if(n||t||i)return null;let e=d!=null?d:F,p=P?oe[P](e):e,I={colors:p,...E!==void 0&&{dimension:E},...N!==void 0&&{typeWeight:N}};return{light:_(I),dark:_({...I,colors:ee(p)})}},[n,t,i,d,E,N,P]),l=o.useMemo(()=>t&&i?{light:t,dark:i}:t||i||n?null:J,[t,i,n,J]),K=o.useMemo(()=>{var e,p;return l?a==="dark"?l.dark:l.light:(p=(e=t!=null?t:i)!=null?e:n)!=null?p:_({...E!==void 0&&{dimension:E},...N!==void 0&&{typeWeight:N}})},[l,a,t,i,n,E,N]),h=o.useMemo(()=>{if(!l)return ie(G(K,x));let e={light:G(l.light,x,"light"),dark:G(l.dark,x,"dark")};return re(e)},[l,K,x]),X=o.useMemo(()=>h.modes?ne(a==="dark"?h.modes.dark:h.modes.light,h.modes):h,[h,a]),$e=o.useMemo(()=>({theme:X,mode:T,resolvedMode:a,setMode:L,a11y:P,setA11y:H,attribute:b,themeMode:a,toggleTheme:j}),[X,T,a,L,P,H,b,j]);return R(se,{shouldForwardProp:ro,children:R(g.Provider,{value:$e,children:R(ae,{theme:h,children:R(Ge,{children:R(ze,{children:r})})})})})},"ApollionProvider");export{_ as a,_e as b,ze as c,wo as d,go as e,Qo as f,Uo as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as v}from"./chunk-VMIXRIQ2.esm.js";import{a as b}from"./chunk-HCNNXM2C.esm.js";import{a as s,d as a}from"./chunk-RWLJNXLX.esm.js";import{a as A,b as w}from"./chunk-F62355HF.esm.js";import{a as K,b as S}from"./chunk-BNB3KNKE.esm.js";import{a as h,b as x}from"./chunk-OXQA5WD3.esm.js";import{a as e,b as i}from"./chunk-TZQMBDGR.esm.js";import{a as p,b as l}from"./chunk-WCUEINBQ.esm.js";import{a as m,b as y}from"./chunk-QYL6LECA.esm.js";import{a as c,b as f}from"./chunk-3A7I6HM2.esm.js";import{a as F,d as g}from"./chunk-WI3WPCW3.esm.js";import{a as d,b as u}from"./chunk-IK5Z5C2R.esm.js";import{g as C}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var n=null,E=t(()=>(n===null&&(n=new Set([...m,...e,...h,...s,...p,...c,...d,...F,...K,...A,"variant","active"])),n),"getCustomPropNames"),P=t(o=>!E().has(o)&&v(o),"shouldForwardProp"),N=new Set(["width","height"]),$=t(o=>N.has(o)||P(o),"shouldForwardDimensionAttrs"),D=t((o=>C(o).withConfig({shouldForwardProp:P})),"styled"),r=t(o=>D(o).withConfig({componentId:`apollion-${o}`})(y({position:"relative"}),g,x,a,i,u,l,f,S,b,w),"buildElement"),j={a:r("a"),div:r("div"),span:r("span"),input:r("input"),button:r("button")};export{P as a,$ as b,D as c,j as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={transitions:{short:"all 0.15s ease-in-out",settle:"color 2.75s ease-out"}};export{e as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./chunk-QQU6KGIF.esm.js";import{g as e}from"./chunk-AXUWC2WH.esm.js";var p=e(r).attrs(o=>({p:"medium",borderRadius:"micro",bgColor:"surface.paper",deep:2,...o})).withConfig({componentId:"sc-5vfy6v-0"})([""]);export{p as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as W,b as B}from"./chunk-EF34DPD2.esm.js";import{f as z}from"./chunk-HSKYQ6VP.esm.js";import{c as R}from"./chunk-MGMYTOBZ.esm.js";import{ga as E}from"./chunk-DAT6GD4T.esm.js";import{a as x,b as I}from"./chunk-CDLUQDZD.esm.js";import{a as w,e as g}from"./chunk-7D6Z463O.esm.js";import{a as P}from"./chunk-H7ZXGMID.esm.js";import{a as A,b as T}from"./chunk-TRGVJXBB.esm.js";import{a as p}from"./chunk-QQU6KGIF.esm.js";import{c as h}from"./chunk-G5Z7USXC.esm.js";import{b as S,c as k,g as l}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var O=k(["0%{width:0;}100%{width:100%;}"]),y=l(p).withConfig({componentId:"sc-6lckl1-0"})(["--time:15;width:0;height:0.25rem;background-color:var(--baseColor);animation:"," calc(var(--time,15) * 1s) normal forwards;"],O),M=l(p).withConfig({componentId:"sc-6lckl1-1"})(["position:absolute;top:0.25rem;left:0.5rem;right:0.5rem;"]);function Q({variant:o,theme:n}){let e=n.colors[o];return S(["--baseColor:",";--lightColor:",";--darkColor:",";--activeColor:",";--actionColor:",";--inkColor:",";position:relative;background-color:var(--lightColor);border-color:var(--baseColor);",":not(button *){color:var(--inkColor);}& ","{width:intrinsic;color:var(--darkColor);&:hover{background:var(--activeColor);}&:active ","{color:var(--actionColor);}}&:hover ","{animation-play-state:paused;}"],e.base,e.light,e.dark,e.active,e.action,e.onLight,w,W,x,y)}i(Q,"getWrapperStyle");var b=l(T).withConfig({componentId:"sc-6lckl1-2"})(Q);b.displayName="div";var V=l(p).withConfig({componentId:"sc-6lckl1-3"})(["color:var(--darkColor);svg{width:2rem;height:2rem;}"]);import U,{useEffect as _,useState as H}from"react";import{createPortal as J}from"react-dom";import{jsx as t,jsxs as F}from"react/jsx-runtime";var L=i(({type:o="block",variant:n="primary",visible:e=!0,closable:c=!0,autoClose:s=null,message:r=null,action:a=null,icon:m=null,link:C,onDismiss:f,closeLabel:$="Fechar notifica\xE7\xE3o",...d})=>{let{isMobile:v}=z(),j=i(()=>{let u=a;return typeof a=="function"&&(u=a({close:f})),u?U.cloneElement(u,{color:n,alignSelf:"center",justifySelf:"center"}):null},"renderActionButton"),q=i(()=>typeof r=="function"?r({close:f}):typeof r=="string"?t(g,{text:r,variant:"p",fontSize:"xs"}):r,"renderMessage"),N=n==="danger",G=N?"alert":"status";return e?F(b,{p:"medium",pr:9,round:v?0:"xs",borderWidth:v?"none":"thin",borderStyle:"solid",variant:n,"data-testid":`notification-${o}`,role:G,"aria-live":N?"assertive":"polite","aria-atomic":"true",...d,children:[s&&t(M,{children:t(y,{round:"micro",style:{"--time":s},onAnimationEnd:f})}),F(P,{contentGap:"medium",opener:m&&t(V,{pt:"xs",alignSelf:"start",children:m}),closer:j(),children:[d.title&&t(g,{text:d.title,variant:"h3",fontSize:"small",fontWeight:"stronger",type:"mobile"}),q(),C&&t(R,{...C,target:"_blank"})]}),c&&t(B,{p:"xs",borderWidth:"none",icon:t(I,{size:"small",icon:E}),"aria-label":$,variant:"linked",onClick:f,alignSelf:"start",position:"absolute",right:"0.5rem",top:"0.5rem"})]}):null},"BaseNotification"),K=i(o=>{let[n,e]=H(!1);_(()=>{e(!0)},[]);let{pageOffset:c=0,...s}=o,r=o.pagePosition==="top",a=r?{top:c}:{bottom:c};if(!n||!h)return null;let m=o.visible!==!1;return J(t(A,{children:m?t(L,{...s,round:0,borderWidth:"thin",borderPosition:r?"bottom":"top",initial:{y:r?"-100%":"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:r?"-100%":"100%",opacity:0},style:{...a,zIndex:1e3,margin:0,position:"fixed",right:0,left:0}}):null}),h)},"PageNotification"),X=i(o=>o.type==="page"?t(K,{...o}):t(L,{...o}),"NotificationComponent");X.displayName="Notification";export{y as a,M as b,b as c,V as d,X as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-7D6Z463O.esm.js";import{a as f}from"./chunk-QQU6KGIF.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{forwardRef as I}from"react";var r=n(f).withConfig({componentId:"sc-1x3so2v-0"})(["display:inline-flex;font-family:",";& > svg,& > [class*='icon']{flex-shrink:0;}"],({theme:e})=>e.font.fontFamily.main);import{jsx as T,jsxs as y}from"react/jsx-runtime";var a=I(({icon:e,text:x,children:t,iconPosition:o="left",align:p="center",gap:s="xs",as:l="span",...c},i)=>y(r,{as:l,flexDirection:"row",alignItems:p,gap:s,...c,ref:i,children:[o==="left"&&e,T(m,{as:"span",children:t!=null?t:x}),o==="right"&&e]}));a.displayName="IconText";export{r as a,a as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-XUDIJMQO.esm.js";import{g as e}from"./chunk-AXUWC2WH.esm.js";var o=e(t).withConfig({componentId:"sc-atg43m-0"})(["display:flex;"]);export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as W}from"./chunk-2DVVVJJP.esm.js";import{a as E,b as K}from"./chunk-EF34DPD2.esm.js";import{a as V}from"./chunk-BE2JDTVA.esm.js";import{f as A}from"./chunk-HSKYQ6VP.esm.js";import{ga as G}from"./chunk-DAT6GD4T.esm.js";import{b as H}from"./chunk-CDLUQDZD.esm.js";import{f as R}from"./chunk-NNPKPEER.esm.js";import{a as z,e as k}from"./chunk-7D6Z463O.esm.js";import{a as F}from"./chunk-H7ZXGMID.esm.js";import{a as O,b as T}from"./chunk-TRGVJXBB.esm.js";import{a as b}from"./chunk-QQU6KGIF.esm.js";import{a as j}from"./chunk-XUDIJMQO.esm.js";import{a as L}from"./chunk-BV6GHAF7.esm.js";import{c as B}from"./chunk-G5Z7USXC.esm.js";import{b as y,g as s}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var no=y(["max-width:30rem;min-width:20rem;"]),ro=y(["max-width:40rem;min-width:20rem;"]),ao=y(["max-width:55rem;min-width:40rem;"]),lo=y(["max-width:75rem;min-width:40rem;"]),io=y(["width:95%;"]);function co({size:n}){switch(n){case"small":return no;case"medium":return ao;case"large":return lo;default:return ro}}a(co,"modalSize");function mo({variant:n,theme:o}){let l=o.colors[n];return y(["--baseColor:",";--lightColor:",";--actionColor:",";"],l.base,l.light,l.action)}a(mo,"modalVariantColor");var q=s(T).attrs({p:"large",borderRadius:"md",bgColor:"surface.overlay"}).withConfig({componentId:"sc-8jjm43-0"})(["",";",";","{",";}"],io,mo,({theme:n})=>n.breakpoints.up("sm"),co),N=s(b).withConfig({componentId:"sc-8jjm43-1"})(["max-height:84vh;overflow:hidden;"]),Q=s(b).withConfig({componentId:"sc-8jjm43-2"})(["& ","{flex:1;}& ","{padding:0.3rem;color:var(--baseColor);&:only-child{margin-left:auto;}}& ",":active{color:var(--actionColor);background-color:var(--lightColor);}& ",":hover{background-color:var(--lightColor);}"],z,E,E,E),Y=s(j).withConfig({componentId:"sc-8jjm43-3"})(["flex:1;display:flex;overscroll-behavior:none;overflow:hidden;"]),$=s(b).attrs({borderRadius:"circular"}).withConfig({componentId:"sc-8jjm43-4"})(["background-color:var(--lightColor);& svg{color:var(--baseColor);width:1.25rem;height:1.25rem;g{fill:var(--baseColor);}}"]),J=s(j).withConfig({componentId:"sc-8jjm43-5"})(["z-index:9999;display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:0;right:0;bottom:0;"]),U=s(T).withConfig({componentId:"sc-8jjm43-6"})(["will-change:opacity;"]);import I,{cloneElement as so,isValidElement as fo,useEffect as X,useRef as uo,useState as po}from"react";import{createPortal as go}from"react-dom";import{Fragment as Co,jsx as t,jsxs as w}from"react/jsx-runtime";var Z=a(({isOpen:n,onDismiss:o,...l})=>{if(!n&&!o)throw new Error('You must provide "isOpen" and "onDismiss" if not using "trigger" prop.');let[i,f]=po(!1),m=uo(null);return X(()=>{f(!0)},[]),X(()=>{var C,M;if(!n||!i)return;let e=document.activeElement,d=m.current,u=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),h=a(()=>d?Array.from(d.querySelectorAll(u)).filter(r=>r.offsetParent!==null):[],"getFocusable");(M=(C=h()[0])!=null?C:d)==null||M.focus();let c=a(r=>{if(r.key==="Escape"){r.stopPropagation(),o==null||o();return}if(r.key!=="Tab")return;let p=h();if(!p.length){r.preventDefault();return}let S=p[0],P=p[p.length-1],g=document.activeElement;r.shiftKey&&(g===S||g===d)?(r.preventDefault(),P.focus()):!r.shiftKey&&g===P&&(r.preventDefault(),S.focus())},"onKeyDown");return document.addEventListener("keydown",c),()=>{var r;document.removeEventListener("keydown",c),(r=e==null?void 0:e.focus)==null||r.call(e)}},[n,i,o]),!i||!B?null:go(t(O,{children:n?w(J,{"data-testid":"modal-container",children:[t(U,{absoluteFill:!0,bgColor:"surface.scrim","data-testid":"modal-overlay",onClick:o,initial:{opacity:0},animate:{opacity:.8},exit:{opacity:0}}),t(ho,{ref:m,onDismiss:o,...l})]}):null}),B)},"ModalBaseComponent"),yo=a(({defaultOpen:n,trigger:o,isOpen:l,onDismiss:i,onModalOpen:f,...m})=>{let{active:e,disable:d,enable:u,toggle:h}=V(n,{onActive:f});return(l||i)&&L.warn('"isOpen" and "onDismiss" has no effect while using "trigger" prop'),w(Co,{children:[a(()=>{let c=null;if(typeof o=="function"&&(c=o({isOpen:e,open:u})),fo(o)&&(c=so(o,{onClick:h})),c===null)throw new Error('"trigger" prop is not a valid element');return c},"renderTrigger")(),t(Z,{isOpen:e,onDismiss:d,...m})]})},"ModalTriggerVariant"),ho=I.forwardRef(a(function({noCloseButton:o,primaryButton:l,secondaryButton:i,primaryText:f,secondaryText:m,onDismiss:e,primaryAction:d,secondaryAction:u,children:h,tagline:v,variant:c,footer:C,title:M,size:r,icon:p,closeLabel:S="Fechar"},P){let{isMobile:g}=A(),D=I.useId(),oo=a(()=>{d({close:e})},"handlePrimary"),eo=a(()=>{u({close:e})},"handleSecondary"),to=a(()=>{let x={onClick:oo,fullWidth:C==="full"||g,"data-testid":"modal-confirm-button"};return l?I.cloneElement(l,x):t(R,{color:c,...x,children:f})},"renderPrimaryButton");return t(q,{ref:P,role:"dialog","aria-modal":"true","aria-labelledby":M?D:void 0,tabIndex:-1,size:r,variant:c,initial:{y:"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"200%",opacity:0},children:w(N,{gap:"medium",children:[w(Q,{gap:"xs",children:[t(F,{opener:p&&t($,{justifyContent:"center",alignItems:"center",p:"micro",children:p}),closer:!o&&t(K,{onClick:e,"data-testid":"modal-close-button","aria-label":S,icon:t(H,{icon:G}),variant:"linked",color:"secondary",size:"large",alignSelf:"start"}),children:M&&t(k,{id:D,variant:"h4",area:"title",color:"ink.primary",text:M})}),v&&t(k,{variant:"meta",color:"secondary.dark",area:"tagline",children:v})]}),t(Y,{py:"medium",children:t(W,{children:h})}),(d||u)&&w(b,{flexDirection:g?"column-reverse":"row",justifyContent:C==="expanded"?"between":"end",gap:"medium",children:[u&&a(()=>{if(C==="full")return null;let x={onClick:eo,fullWidth:g,"data-testid":"modal-cancel-button"};return i?I.cloneElement(i,x):t(R,{variant:"outlined",color:"secondary",...x,children:m})},"renderSecondaryButton")(),d&&to()]})]})})},"ModalDialog")),_=a(({noCloseButton:n=!1,secondaryText:o="Cancelar",primaryText:l="Confirmar",variant:i="primary",footer:f="right",...m})=>{let e={noCloseButton:n,secondaryText:o,primaryText:l,variant:i,footer:f,...m};return e!=null&&e.trigger?t(yo,{...e}):t(Z,{...e})},"ModalComponent");_.displayName="Modal";export{q as a,N as b,Q as c,Y as d,$ as e,J as f,U as g,_ as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-QQU6KGIF.esm.js";import{a as o}from"./chunk-XUDIJMQO.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 +0,0 @@
|
|
|
1
|
-
import{a as N}from"./chunk-BE2JDTVA.esm.js";import{b as m}from"./chunk-3V3ZEGHO.esm.js";import{a as G}from"./chunk-7D6Z463O.esm.js";import{a as s}from"./chunk-XUDIJMQO.esm.js";import{b as d}from"./chunk-G5Z7USXC.esm.js";import{b as w,g as a}from"./chunk-AXUWC2WH.esm.js";import{a as p}from"./chunk-GZONWSRB.esm.js";var ae=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),se=w(["pointer-events:none;--railColor:",";--trackColor:",";--thumbColor:",";--markColor:transparent;"],({theme:e})=>e.colors.muted,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.strong),D=a(s).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?se:ae),$=a(s).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=a(s).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=a(s).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=a(s).withConfig({componentId:"sc-18639os-4"})(["height:var(--height);background-color:var(--railColor);background-repeat:no-repeat;position:absolute;right:0;"]),T=a(s).attrs(e=>({bgColor:"surface.raised",color:"ink.primary",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.edge.border,({theme:e})=>e.spacing("large")),ce=w(["box-shadow:0px 0px 0px 9px #00000033 !important;& ","{opacity:1;}"],T),_=a(s).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&&ce),j=a(s).attrs(e=>({borderRadius:"circular",...e})).withConfig({componentId:"sc-18639os-7"})(["--size:calc(var(--height) * 0.8);position:absolute;width:var(--size);height:var(--size);margin-top:calc((var(--size) * -1 / 2) + var(--height) / 2);margin-left:calc(var(--size) * -1 / 2);background:",";"],({active:e})=>e?"var(--thumbColor)":"var(--markColor)"),q=a(s).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.ink.secondary);import le,{useCallback as de,useEffect as ue,useMemo as pe,useRef as O,useState as he}from"react";function M(e,t,o){return(e-t)*100/(o-t)}p(M,"valueToPercent");function J(e,t,o){return(o-t)*e+t}p(J,"percentToValue");function z(e,t,o){let h=Math.round((e-o)/t)*t+o;return Number(h.toFixed(t))}p(z,"roundValueToStep");function K(e){return e>=1?1:e<=0?0:e}p(K,"clamp");function R(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(R,"normalizeValue");import{jsx as u,jsxs as Q}from"react/jsx-runtime";function U({gradient:e,disabled:t,getLabelValue:o,markLabel:h,onChange:b,value:k=50,max:c=100,min:n=0,step:l=1,mark:I}){let[v,L]=he(()=>R(k,c,n,l));ue(()=>{L(r=>{let i=R(k,c,n,l);return i!==r?i:r})},[k,c,n,l]);let{active:Y,enable:V,disable:Z}=N(),B=O(null),ee=pe(()=>{if(!(I===!0&&l))return[];let r=Math.floor((c-n)/l)+1;return!Number.isFinite(r)||r<=0||r>1e4?[]:[...Array(r)].map((i,E)=>{let x=n+l*E;return{value:x,...o&&h&&{label:o(x)}}})},[I,o,h,l,n,c]),P=O(0),y=de(r=>{let i=0;try{if(r.type==="touchmove"){let[S]=r.changedTouches;i=S==null?void 0:S.clientX}else i=r.clientX}catch(S){i=r.clientX}let{width:E,left:x}=B.current.getBoundingClientRect(),ie=K((i-x)/E),C=J(ie,n,c);C=z(C,l,n),L(C),b&&(clearTimeout(P.current),P.current=setTimeout(()=>{b(C)},100))},[n,c,l,b]),g=m(r=>{y(r)}),f=m(()=>{Z(),d.document.removeEventListener("mousemove",g),d.document.removeEventListener("mouseup",f),d.document.removeEventListener("touchmove",g),d.document.removeEventListener("touchend",f)}),re=m(r=>{r.preventDefault(),y(r),V(),d.document.addEventListener("mousemove",g,{passive:!1}),d.document.addEventListener("mouseup",f,{passive:!1})}),oe=m(r=>{r.stopPropagation(),y(r),V(),d.document.addEventListener("touchmove",g,{passive:!1}),d.document.addEventListener("touchend",f,{passive:!1})}),te=o?o(v):String(v),F=`${M(v,n,c)}%`,ne={width:F},X={left:F};return Q(D,{ref:B,onMouseDown:re,onTouchStart:oe,disabled:t,children:[u($,{}),e?u(H,{children:u(W,{style:X})}):u(A,{style:ne}),ee.map(r=>{let i={left:`${M(r.value,n,c)}%`};return Q(le.Fragment,{children:[u(j,{active:r.value<=v,style:i}),r.label&&u(q,{style:i,children:r.label})]},r.value)}),u(_,{borderRadius:"circular",deep:1,active:Y,style:X,"data-testid":"input-range-thumb",children:!t&&u(T,{children:u(G,{children:te})})})]})}p(U,"Slider");U.displayName="Slider";export{D as a,$ as b,A as c,H as d,W as e,T as f,_ as g,j as h,q as i,U as j};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as o}from"./chunk-II2LPQYL.esm.js";var r=o.div;export{r as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as c}from"./chunk-CDLUQDZD.esm.js";import{b as g}from"./chunk-SXOSOU46.esm.js";import{e as f}from"./chunk-7D6Z463O.esm.js";import{a as m}from"./chunk-QQU6KGIF.esm.js";import{g as p}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";function h(t){return t==="extraLarge"?"xl":t==="giant"?"xxl":t}a(h,"getIconSize");function d({theme:t,size:i,$label:e}){let{fontSize:o}=t.font,n=(e==null?void 0:e.length)||0;switch(i){case"small":{let r=t.spacing("medium");return{width:r,height:r,fontSize:o.micro}}case"large":{let r=t.spacing("xl");return{width:r,height:r,fontSize:n===1?o.xxl:o.large}}case"extraLarge":{let r=t.spacing("xxl");return{width:r,height:r,fontSize:n===1?o.gargantua:o.giant}}case"giant":{let r=t.spacing("giant");return{width:r,height:r,fontSize:o.gargantua}}default:{let r=t.spacing("large");return{width:r,height:r,fontSize:n===1?o.medium:o.xs}}}}a(d,"getSizes");var u=p(m).withConfig({componentId:"sc-k7r87e-0"})(d);import{jsx as s}from"react/jsx-runtime";function x({imgSrc:t,icon:i,size:e,label:o,alt:n}){return t?s(g,{width:"100%",height:"100%",src:t,alt:n!=null?n:"","data-testid":"avatar-image"}):i?s(c,{icon:i,size:h(e),"data-testid":"avatar-icon"}):s(f,{textTransform:"uppercase",children:o})}a(x,"getContent");var l=a(({size:t,icon:i,imgSrc:e,label:o,alt:n,...r})=>s(u,{alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"circular",bgColor:"surface.sunken",color:"primary.base",$label:o,size:t,...!e&&!i&&!!o&&{role:"img","aria-label":n!=null?n:o},...r,children:x({size:t,icon:i,imgSrc:e,label:o,alt:n})}),"Avatar");l.displayName="Avatar";export{l as a};
|