@apollion-dsi/core 7.5.0 → 7.7.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 +6 -6
- package/lib/chunks/{Dropdown.floating-BZADQ5AX.esm.js → Dropdown.floating-LUGBBHPK.esm.js} +1 -1
- package/lib/chunks/Notification.group-4D3CNTGF.esm.js +1 -0
- package/lib/chunks/{Tooltip.floating-LDFMVRIA.esm.js → Tooltip.floating-X5XZSZ2I.esm.js} +1 -1
- package/lib/chunks/chunk-24CF72TV.esm.js +1 -0
- package/lib/chunks/{chunk-U3GZABRG.esm.js → chunk-2E56GHZG.esm.js} +1 -1
- package/lib/chunks/{chunk-UAXSZ3UE.esm.js → chunk-2Z3UZIWZ.esm.js} +1 -1
- package/lib/chunks/chunk-3HZLT4FV.esm.js +5 -0
- package/lib/chunks/{chunk-MTJOR4UX.esm.js → chunk-3NQ3E6K6.esm.js} +1 -1
- package/lib/chunks/{chunk-TF3JNXQO.esm.js → chunk-3R2MJA2X.esm.js} +1 -1
- package/lib/chunks/chunk-47UE4K3O.esm.js +1 -0
- package/lib/chunks/{chunk-LA7VVT23.esm.js → chunk-4MBDLRIT.esm.js} +1 -1
- package/lib/chunks/{chunk-BKMH5ZKN.esm.js → chunk-4XCYWJYX.esm.js} +1 -1
- package/lib/chunks/{chunk-WCJC5AG7.esm.js → chunk-4XKKIEQL.esm.js} +1 -1
- package/lib/chunks/{chunk-VYHY4SSS.esm.js → chunk-52EZIGKB.esm.js} +1 -1
- package/lib/chunks/chunk-536CYSLZ.esm.js +1 -0
- package/lib/chunks/chunk-64VNULOI.esm.js +1 -0
- package/lib/chunks/chunk-6HPOOHYI.esm.js +1 -0
- package/lib/chunks/chunk-6PIT5MY3.esm.js +34 -0
- package/lib/chunks/chunk-74AODEHL.esm.js +1 -0
- package/lib/chunks/{chunk-VR23WM3F.esm.js → chunk-7ATA5LLY.esm.js} +1 -1
- package/lib/chunks/{chunk-ITSDQBLF.esm.js → chunk-7MX2FUN4.esm.js} +1 -1
- package/lib/chunks/{chunk-46CG3ZZX.esm.js → chunk-7PPAEO52.esm.js} +1 -1
- package/lib/chunks/chunk-7PZTYH4G.esm.js +1 -0
- package/lib/chunks/chunk-7QZAWMWZ.esm.js +1 -0
- package/lib/chunks/{chunk-M4EIGJZZ.esm.js → chunk-7YXP5WUW.esm.js} +1 -1
- package/lib/chunks/{chunk-Z23O3NNN.esm.js → chunk-A4A5GN53.esm.js} +1 -1
- package/lib/chunks/chunk-AULAOFBW.esm.js +1 -0
- package/lib/chunks/{chunk-LN65BGR5.esm.js → chunk-AWOVVB76.esm.js} +1 -1
- package/lib/chunks/chunk-BTO37XLJ.esm.js +1 -0
- package/lib/chunks/{chunk-WDGATQZG.esm.js → chunk-BTPOCQ2L.esm.js} +1 -1
- package/lib/chunks/chunk-CHX7ZWCF.esm.js +1 -0
- package/lib/chunks/{chunk-Q3XFSLPE.esm.js → chunk-COFDJE74.esm.js} +1 -1
- package/lib/chunks/{chunk-KW62FBMI.esm.js → chunk-CSBTMK6G.esm.js} +1 -1
- package/lib/chunks/chunk-CTNDAXMO.esm.js +1 -0
- package/lib/chunks/{chunk-W4NSHFN4.esm.js → chunk-D6OVUFOQ.esm.js} +1 -1
- package/lib/chunks/{chunk-XSULIEOF.esm.js → chunk-D75HJH24.esm.js} +1 -1
- package/lib/chunks/chunk-DVMAC4Z4.esm.js +1 -0
- package/lib/chunks/{chunk-J4VMAQM3.esm.js → chunk-EEPJZ62X.esm.js} +1 -1
- package/lib/chunks/{chunk-EYAGAJRL.esm.js → chunk-EU4FKCQL.esm.js} +1 -1
- package/lib/chunks/{chunk-TWZWNWBQ.esm.js → chunk-EXZZEN2U.esm.js} +1 -1
- package/lib/chunks/{chunk-ZDB7ECI3.esm.js → chunk-FMNMEPTI.esm.js} +1 -1
- package/lib/chunks/chunk-FOHV4WEQ.esm.js +1 -0
- package/lib/chunks/{chunk-HTYWYOZQ.esm.js → chunk-FOWO4QTS.esm.js} +1 -1
- package/lib/chunks/{chunk-3VZTMO2Z.esm.js → chunk-HG55HD7C.esm.js} +1 -1
- package/lib/chunks/chunk-HJVFE7FQ.esm.js +1 -0
- package/lib/chunks/{chunk-KE4YU2FM.esm.js → chunk-HQG2TBRB.esm.js} +1 -1
- package/lib/chunks/{chunk-VFCCRDG4.esm.js → chunk-HZZBNAF4.esm.js} +1 -1
- package/lib/chunks/{chunk-YBKS2HAY.esm.js → chunk-IN2WB2ZK.esm.js} +1 -1
- package/lib/chunks/{chunk-JNV3RCLH.esm.js → chunk-IXYOWFP7.esm.js} +1 -1
- package/lib/chunks/chunk-JNK7ZSEU.esm.js +9 -0
- package/lib/chunks/chunk-K2QIMPT3.esm.js +1 -0
- package/lib/chunks/chunk-KXU5DIBH.esm.js +1 -0
- package/lib/chunks/chunk-LB4UJSH7.esm.js +1 -0
- package/lib/chunks/chunk-LSLBDF5M.esm.js +1 -0
- package/lib/chunks/{chunk-4MZWYLJH.esm.js → chunk-LUVBIWXK.esm.js} +1 -1
- package/lib/chunks/chunk-MPOW55EU.esm.js +1 -0
- package/lib/chunks/{chunk-CPQPRAAV.esm.js → chunk-PB6W2IE3.esm.js} +1 -1
- package/lib/chunks/chunk-PCQQ762I.esm.js +1 -0
- package/lib/chunks/chunk-PIZ5RV6D.esm.js +1 -0
- package/lib/chunks/chunk-PPV6A2DH.esm.js +1 -0
- package/lib/chunks/{chunk-4KW43QHY.esm.js → chunk-Q3FUXFD5.esm.js} +1 -1
- package/lib/chunks/{chunk-Q2PMRBCL.esm.js → chunk-QEB4VTKV.esm.js} +1 -1
- package/lib/chunks/chunk-QZYG7DTG.esm.js +1 -0
- package/lib/chunks/{chunk-PB7O2NHF.esm.js → chunk-RIDQQLK7.esm.js} +1 -1
- package/lib/chunks/chunk-RQZ3NB7A.esm.js +1 -0
- package/lib/chunks/{chunk-IFSAA4OC.esm.js → chunk-S5ONND5F.esm.js} +1 -1
- package/lib/chunks/{chunk-P3XOIBAC.esm.js → chunk-SRBIATLE.esm.js} +1 -1
- package/lib/chunks/{chunk-JVJJNNK3.esm.js → chunk-SVPEVGOA.esm.js} +1 -1
- package/lib/chunks/chunk-TQMP7PZI.esm.js +1 -0
- package/lib/chunks/chunk-TVJXEJLN.esm.js +1 -0
- package/lib/chunks/chunk-U3CY4REV.esm.js +1 -0
- package/lib/chunks/{chunk-V2GA7W66.esm.js → chunk-UKMNA2P3.esm.js} +1 -1
- package/lib/chunks/{chunk-OC7CKHRF.esm.js → chunk-UPJVBBBN.esm.js} +1 -1
- package/lib/chunks/chunk-URD3VE47.esm.js +34 -0
- package/lib/chunks/{chunk-7PHMFL32.esm.js → chunk-URGL4O5W.esm.js} +1 -1
- package/lib/chunks/{chunk-BZNSA3AA.esm.js → chunk-UXUJNLR7.esm.js} +1 -1
- package/lib/chunks/{chunk-VFM3QFOU.esm.js → chunk-WLFYIXN6.esm.js} +1 -1
- package/lib/chunks/{chunk-PRQOVSM6.esm.js → chunk-XAXIQDFB.esm.js} +1 -1
- package/lib/chunks/{chunk-KXRGSB6P.esm.js → chunk-XR763B4T.esm.js} +1 -1
- package/lib/chunks/{chunk-A77KMXEI.esm.js → chunk-XUJF6HTG.esm.js} +1 -1
- package/lib/chunks/{chunk-H5EZPFXA.esm.js → chunk-YPEM3MWB.esm.js} +1 -1
- package/lib/chunks/chunk-ZOO4TDFX.esm.js +1 -0
- package/lib/chunks/chunk-ZRYB2F7G.esm.js +1 -0
- package/lib/chunks/{chunk-G5L6INCM.esm.js → chunk-ZVL3UZ6R.esm.js} +1 -1
- package/lib/chunks/chunk-ZZ5EX7HG.esm.js +1 -0
- package/lib/containers/Base/Base.style.d.ts +16 -1
- package/lib/containers/Base/index.d.ts +1 -1
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Box/Box.interface.d.ts +12 -0
- package/lib/containers/Box/Box.style.d.ts +26 -9
- package/lib/containers/Box/index.esm.js +1 -1
- package/lib/containers/Card/Card.interface.d.ts +12 -1
- package/lib/containers/Card/Card.style.d.ts +52 -12
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/Flex.interface.d.ts +3 -0
- package/lib/containers/Flex/Flex.style.d.ts +19 -8
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/Grid.interface.d.ts +51 -4
- package/lib/containers/Grid/Grid.style.d.ts +39 -7
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Notification/Notification.style.d.ts +36 -12
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/Paper.interface.d.ts +13 -2
- package/lib/containers/Paper/Paper.style.d.ts +6 -2
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/Scroll.d.ts +13 -12
- package/lib/containers/Scroll/Scroll.interface.d.ts +40 -4
- package/lib/containers/Scroll/Scroll.style.d.ts +33 -28
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/Accordion/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/DataTable.filters.d.ts +2 -1
- package/lib/dataDisplay/DataTable/DataTable.style.d.ts +19 -12
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Meter/Meter.style.d.ts +18 -6
- package/lib/dataDisplay/Meter/index.esm.js +1 -1
- package/lib/dataDisplay/Steps/Steps.style.d.ts +54 -18
- package/lib/dataDisplay/Steps/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/Table.d.ts +4 -0
- package/lib/dataDisplay/Table/Table/Table.interface.d.ts +20 -0
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table.context.d.ts +26 -0
- package/lib/dataDisplay/Table/Table.labels.d.ts +22 -0
- package/lib/dataDisplay/Table/Table.shared.d.ts +6 -0
- package/lib/dataDisplay/Table/TableBody/TableBody.d.ts +5 -4
- package/lib/dataDisplay/Table/TableBody/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCell/TableCell.d.ts +5 -1
- package/lib/dataDisplay/Table/TableCell/TableCell.interface.d.ts +8 -0
- package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/TableCheckboxCell.d.ts +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +36 -12
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/TableFooter.d.ts +2 -1
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeader/TableHeader.d.ts +2 -1
- package/lib/dataDisplay/Table/TableHeader/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.d.ts +12 -2
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.interface.d.ts +10 -0
- package/lib/dataDisplay/Table/TableHeaderCell/TableHeaderCell.style.d.ts +5 -2
- package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/TableHeaderCheckboxCell.style.d.ts +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/TableRow/TableRow.d.ts +4 -0
- package/lib/dataDisplay/Table/TableRow/index.esm.js +1 -1
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/Tabs.style.d.ts +90 -30
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/Button.style.d.ts +18 -6
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Chip/Chip.context.d.ts +11 -0
- package/lib/elements/Chip/Chip.d.ts +34 -0
- package/lib/elements/Chip/Chip.interface.d.ts +162 -0
- package/lib/elements/Chip/Chip.style.d.ts +52 -0
- package/lib/elements/Chip/index.d.ts +10 -0
- package/lib/elements/Chip/index.esm.js +1 -0
- package/lib/elements/ChipGroup/ChipGroup.d.ts +21 -0
- package/lib/elements/ChipGroup/ChipGroup.interface.d.ts +27 -0
- package/lib/elements/ChipGroup/ChipGroup.style.d.ts +15 -0
- package/lib/elements/ChipGroup/index.d.ts +9 -0
- package/lib/elements/ChipGroup/index.esm.js +1 -0
- package/lib/elements/Divider/Divider.style.d.ts +18 -6
- package/lib/elements/Divider/index.esm.js +1 -1
- 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 +72 -24
- package/lib/elements/IconButton/index.esm.js +1 -1
- package/lib/elements/IconText/index.esm.js +1 -1
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Label/Label.d.ts +4 -0
- package/lib/elements/Label/Label.interface.d.ts +9 -0
- package/lib/elements/Label/Label.style.d.ts +8 -3
- package/lib/elements/Label/index.esm.js +1 -1
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/List.d.ts +12 -1
- package/lib/elements/List/List.interface.d.ts +70 -3
- package/lib/elements/List/List.style.d.ts +48 -6
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.style.d.ts +36 -12
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/NavBar/NavBar.d.ts +35 -0
- package/lib/elements/NavBar/NavBar.helpers.d.ts +25 -0
- package/lib/elements/NavBar/NavBar.interface.d.ts +98 -0
- package/lib/elements/NavBar/NavBar.style.d.ts +54 -0
- package/lib/elements/NavBar/index.d.ts +10 -0
- package/lib/elements/NavBar/index.esm.js +1 -0
- package/lib/elements/NavTabs/NavTabs.d.ts +33 -0
- package/lib/elements/NavTabs/NavTabs.interface.d.ts +54 -0
- package/lib/elements/NavTabs/NavTabs.style.d.ts +45 -0
- package/lib/elements/NavTabs/index.d.ts +10 -0
- package/lib/elements/NavTabs/index.esm.js +1 -0
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/ProgressBar.style.d.ts +18 -6
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Sheet/Sheet.style.d.ts +40 -16
- package/lib/elements/Sheet/index.esm.js +1 -1
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/StatusDot/StatusDot.d.ts +32 -0
- package/lib/elements/StatusDot/StatusDot.interface.d.ts +61 -0
- package/lib/elements/StatusDot/StatusDot.style.d.ts +28 -0
- package/lib/elements/StatusDot/index.d.ts +10 -0
- package/lib/elements/StatusDot/index.esm.js +1 -0
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.d.ts +5 -0
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/ContainerQueryFactory/ContainerQueryFactory.d.ts +7 -0
- package/lib/factory/ContainerQueryFactory/index.esm.js +1 -1
- package/lib/factory/MotionFactory/MotionFactory.d.ts +3 -1
- package/lib/factory/MotionFactory/MotionFactory.interface.d.ts +12 -2
- package/lib/factory/MotionFactory/index.esm.js +1 -1
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/ViewportMediaFactory/index.esm.js +1 -1
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/Checkbox.style.d.ts +36 -12
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/Field.d.ts +7 -0
- package/lib/form/Field/Field.interface.d.ts +17 -0
- package/lib/form/Field/Field.style.d.ts +24 -6
- 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 +52 -12
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/Input.style.d.ts +18 -6
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/InputCurrency.style.d.ts +18 -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.d.ts +27 -12
- package/lib/form/InputRange/InputRange.helpers.d.ts +12 -4
- package/lib/form/InputRange/InputRange.interface.d.ts +79 -1
- package/lib/form/InputRange/InputRange.style.d.ts +43 -7
- 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 +18 -6
- package/lib/form/Option/index.esm.js +1 -1
- 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.d.ts +5 -0
- package/lib/form/TextArea/TextArea.interface.d.ts +26 -2
- package/lib/form/TextArea/TextArea.style.d.ts +245 -8
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.style.d.ts +74 -109
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/index.esm.js +1 -1
- package/lib/hooks/index.esm.js +1 -1
- package/lib/icons/index.d.ts +4 -1
- package/lib/icons/index.esm.js +1 -1
- package/lib/icons/set/desktop.d.ts +3 -0
- package/lib/icons/set/moon.d.ts +3 -0
- package/lib/icons/set/sun.d.ts +3 -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 +68 -12
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/SideBarLayout.style.d.ts +68 -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/Colors/Colors.interface.d.ts +33 -0
- package/lib/themes/GlobalStyle/GlobalStyle.d.ts +8 -6
- package/lib/themes/GlobalStyle/index.esm.js +1 -1
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.esm.js +1 -1
- package/package.json +22 -2
- package/lib/chunks/Notification.group-BC3U4UX6.esm.js +0 -1
- package/lib/chunks/chunk-3PLVWHLK.esm.js +0 -1
- package/lib/chunks/chunk-52O36B6T.esm.js +0 -1
- package/lib/chunks/chunk-5PLSFFP6.esm.js +0 -1
- package/lib/chunks/chunk-A4QGVHIH.esm.js +0 -1
- package/lib/chunks/chunk-A7STAO6C.esm.js +0 -1
- package/lib/chunks/chunk-ATYYPKUP.esm.js +0 -1
- package/lib/chunks/chunk-CDRLVSLF.esm.js +0 -1
- package/lib/chunks/chunk-CLU3WNVI.esm.js +0 -1
- package/lib/chunks/chunk-DA65U576.esm.js +0 -1
- package/lib/chunks/chunk-DAT6GD4T.esm.js +0 -1
- package/lib/chunks/chunk-DXCL3MVA.esm.js +0 -30
- package/lib/chunks/chunk-DYLFA33G.esm.js +0 -1
- package/lib/chunks/chunk-F3SAEVZJ.esm.js +0 -1
- package/lib/chunks/chunk-F7PA7OCV.esm.js +0 -1
- package/lib/chunks/chunk-FUVFPMSI.esm.js +0 -39
- package/lib/chunks/chunk-GAQ3CPOM.esm.js +0 -1
- package/lib/chunks/chunk-GQZGW3EG.esm.js +0 -1
- package/lib/chunks/chunk-GXGV64D2.esm.js +0 -9
- package/lib/chunks/chunk-IZHCHFTU.esm.js +0 -1
- package/lib/chunks/chunk-JVFVXNCA.esm.js +0 -1
- package/lib/chunks/chunk-JYFJX4EO.esm.js +0 -1
- package/lib/chunks/chunk-LNZNPIZT.esm.js +0 -1
- package/lib/chunks/chunk-NGCCXGDN.esm.js +0 -1
- package/lib/chunks/chunk-OOYR6EZR.esm.js +0 -1
- package/lib/chunks/chunk-PCLKWRMD.esm.js +0 -1
- package/lib/chunks/chunk-X62RTM6B.esm.js +0 -1
- package/lib/chunks/chunk-XQJ4DROM.esm.js +0 -1
- package/lib/containers/Scroll/Scroll.helpers.d.ts +0 -27
package/README.md
CHANGED
|
@@ -86,12 +86,12 @@ and `elements/sheet` / `elements/modal` for the primitives that use it.
|
|
|
86
86
|
|
|
87
87
|
## Components
|
|
88
88
|
|
|
89
|
-
| Category | Components
|
|
90
|
-
| ---------------- |
|
|
91
|
-
| **Elements** | `Avatar`, `Button`, `Calendar`, `Divider`, `Dropdown`, `Icon`, `IconButton`, `IconText`, `Image`, `Label`, `Link`, `List`, `Modal`, `Popover`, `ProgressBar`, `Sheet`, `Spinner`, `Svg`, `Text`, `Tooltip` |
|
|
92
|
-
| **Containers** | `Box`, `Card`, `Flex`, `Grid`, `Notification`, `Paper`, `Scroll`
|
|
93
|
-
| **Form** | `Checkbox`, `Field`, `FieldGroup`, `Form`, `Input`, `InputCurrency`, `InputDate`, `InputMask`, `InputRange`, `InputSelect`, `Option`, `Radio`, `Select`, `Switch`, `TextArea`, `UploadCard`
|
|
94
|
-
| **Data Display** | `DataTable`, `DescriptionList`, `Meter`, `Steps`, `Table`, `Tabs`
|
|
89
|
+
| Category | Components |
|
|
90
|
+
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
91
|
+
| **Elements** | `Avatar`, `Button`, `Calendar`, `Chip`, `ChipGroup`, `Divider`, `Dropdown`, `Icon`, `IconButton`, `IconText`, `Image`, `Label`, `Link`, `List`, `Modal`, `NavBar`, `NavTabs`, `Popover`, `ProgressBar`, `Sheet`, `Spinner`, `StatusDot`, `Svg`, `Text`, `Tooltip` |
|
|
92
|
+
| **Containers** | `Box`, `Card`, `Flex`, `Grid`, `Notification`, `Paper`, `Scroll` |
|
|
93
|
+
| **Form** | `Checkbox`, `Field`, `FieldGroup`, `Form`, `Input`, `InputCurrency`, `InputDate`, `InputMask`, `InputRange`, `InputSelect`, `Option`, `Radio`, `Select`, `Switch`, `TextArea`, `UploadCard` |
|
|
94
|
+
| **Data Display** | `DataTable`, `DescriptionList`, `Meter`, `Steps`, `Table`, `Tabs` |
|
|
95
95
|
|
|
96
96
|
Also available: `layouts/*`, `skeleton/*` and `scenario/*` (loading
|
|
97
97
|
placeholders), `icons`, `hooks`, `utils`, `factory`, and the theme scales under
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as d,c as m,d as p,e as c,f as g,g as f,h as u,j as P,k as F,l as h,m as w,n as y,o as b}from"./chunk-3437GMP7.esm.js";import{g as a}from"./chunk-L7A7RA56.esm.js";import{a as l}from"./chunk-
|
|
1
|
+
import{b as d,c as m,d as p,e as c,f as g,g as f,h as u,j as P,k as F,l as h,m as w,n as y,o as b}from"./chunk-3437GMP7.esm.js";import{g as a}from"./chunk-L7A7RA56.esm.js";import{a as l}from"./chunk-64VNULOI.esm.js";import"./chunk-TQMP7PZI.esm.js";import"./chunk-MPMCXGOX.esm.js";import"./chunk-JWNC52FT.esm.js";import"./chunk-AULAOFBW.esm.js";import"./chunk-4SDDAQ6N.esm.js";import"./chunk-IN2WB2ZK.esm.js";import"./chunk-FOWO4QTS.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-XR763B4T.esm.js";import"./chunk-47UE4K3O.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-VCMHX5VK.esm.js";import"./chunk-AAZFRX52.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-C7U4X56I.esm.js";import"./chunk-QXV2TDLZ.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-QEB4VTKV.esm.js";import"./chunk-R2QEO3KP.esm.js";import"./chunk-ODL5JUYM.esm.js";import"./chunk-3WXII2F3.esm.js";import"./chunk-EJ245MA7.esm.js";import"./chunk-FNYS25ZX.esm.js";import"./chunk-MYU2IAR3.esm.js";import"./chunk-VJ5GIFXO.esm.js";import"./chunk-REPFMEFA.esm.js";import"./chunk-6G22RNUO.esm.js";import"./chunk-J6F4PMW4.esm.js";import"./chunk-G5Z7USXC.esm.js";import{f as s}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import{jsx as e}from"react/jsx-runtime";var z={left:"bottom-start",right:"bottom-end",center:"bottom"},K=t(({referenceEl:n,open:r,onClose:x,position:D,hoverable:v,role:M,width:R,motion:C,children:I})=>{let E=s(),i=b(n,r),{refs:H,floatingStyles:L,context:o}=F({open:r,strategy:i.strategy,onOpenChange:t(T=>{T||x()},"onOpenChange"),placement:z[D],middleware:[g(4),m(),u({padding:8})],whileElementsMounted:d,elements:{reference:n}}),{getFloatingProps:O}=w([h(o,{enabled:v,mouseOnly:!0,move:!1,handleClose:f()}),P(o,{outsidePress:!0,escapeKey:!0}),y(o,{role:M})]);return e(c,{root:i.root,children:e(p,{context:o,modal:!1,initialFocus:-1,children:e("div",{ref:H.setFloating,style:{...L,zIndex:a(E).dropdown},...O(),children:e(l,{p:"xs",borderRadius:"xs",deep:2,width:R,motion:C,children:I})})})})},"DropdownFloating"),k=K;export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as h}from"./chunk-S5ONND5F.esm.js";import"./chunk-FMNMEPTI.esm.js";import"./chunk-ZMHNNJNC.esm.js";import"./chunk-2FQC32AA.esm.js";import"./chunk-HSKYQ6VP.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{c as l}from"./chunk-KZTG5TDM.esm.js";import"./chunk-A3OJEVGQ.esm.js";import"./chunk-KR2X2UQG.esm.js";import"./chunk-BE2JDTVA.esm.js";import"./chunk-P3SIJHYM.esm.js";import"./chunk-HZZBNAF4.esm.js";import"./chunk-SRBIATLE.esm.js";import"./chunk-BTPOCQ2L.esm.js";import"./chunk-JLQDS5TS.esm.js";import"./chunk-ZJT2WQTR.esm.js";import"./chunk-7JYI2AQK.esm.js";import"./chunk-AMN6SRJS.esm.js";import"./chunk-E2U6IFPB.esm.js";import"./chunk-TVJXEJLN.esm.js";import"./chunk-WLFYIXN6.esm.js";import"./chunk-7MX2FUN4.esm.js";import"./chunk-EU4FKCQL.esm.js";import"./chunk-HPMNSONF.esm.js";import"./chunk-MKGWYKH6.esm.js";import"./chunk-4L2KOZIQ.esm.js";import"./chunk-JNK7ZSEU.esm.js";import{d as y}from"./chunk-D6OVUFOQ.esm.js";import"./chunk-IA234JY2.esm.js";import"./chunk-2BWCWW2Q.esm.js";import"./chunk-IQQH6HMG.esm.js";import"./chunk-Z7GJDO5T.esm.js";import"./chunk-LCCVFIPZ.esm.js";import"./chunk-TG5BCBO4.esm.js";import"./chunk-WB5XXCKL.esm.js";import"./chunk-JOKVE3IX.esm.js";import"./chunk-CWRWYU7D.esm.js";import"./chunk-PFLBU7HG.esm.js";import"./chunk-O5TS2XER.esm.js";import"./chunk-4E3BR56X.esm.js";import"./chunk-TLIKQFOT.esm.js";import"./chunk-XUZQE326.esm.js";import"./chunk-3DUB5C4Z.esm.js";import"./chunk-KT6QQ3UJ.esm.js";import"./chunk-SEPVF2TL.esm.js";import"./chunk-LDOM2UUN.esm.js";import{g as u}from"./chunk-L7A7RA56.esm.js";import"./chunk-HVFI7FHR.esm.js";import"./chunk-2Z3UZIWZ.esm.js";import"./chunk-4XKKIEQL.esm.js";import"./chunk-KT4BKJVV.esm.js";import"./chunk-LSLBDF5M.esm.js";import{a as o}from"./chunk-TQMP7PZI.esm.js";import"./chunk-MPMCXGOX.esm.js";import"./chunk-JWNC52FT.esm.js";import"./chunk-AULAOFBW.esm.js";import"./chunk-4SDDAQ6N.esm.js";import"./chunk-IN2WB2ZK.esm.js";import"./chunk-FOWO4QTS.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-XR763B4T.esm.js";import"./chunk-47UE4K3O.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-VCMHX5VK.esm.js";import"./chunk-AAZFRX52.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-C7U4X56I.esm.js";import"./chunk-QXV2TDLZ.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-QEB4VTKV.esm.js";import"./chunk-R2QEO3KP.esm.js";import"./chunk-ODL5JUYM.esm.js";import"./chunk-3WXII2F3.esm.js";import"./chunk-EJ245MA7.esm.js";import"./chunk-FNYS25ZX.esm.js";import"./chunk-MYU2IAR3.esm.js";import"./chunk-VJ5GIFXO.esm.js";import"./chunk-REPFMEFA.esm.js";import"./chunk-6G22RNUO.esm.js";import"./chunk-J6F4PMW4.esm.js";import{c}from"./chunk-G5Z7USXC.esm.js";import{f as d}from"./chunk-AXUWC2WH.esm.js";import{a as p}from"./chunk-GZONWSRB.esm.js";import{useEffect as C,useState as g}from"react";import{createPortal as N}from"react-dom";import{jsx as t}from"react/jsx-runtime";var v=p(({toast:n,onRemove:e})=>{let{id:i,...a}=n,[s,r]=g(!0),{mounted:m,state:f,ref:B}=l(s,{property:"grid-template-rows"});return C(()=>{m||e(i)},[m,i,e]),m?t(o,{ref:B,motion:"collapse","data-state":f,"aria-hidden":f==="closing"||void 0,style:{minWidth:300,maxWidth:"30vw"},children:t(o,{motion:"drawer-right","data-state":f,children:t(o,{style:{margin:"0.5rem"},children:t(h,{...a,visible:!0,closable:!0,onDismiss:()=>r(!1)})})})}):null},"ToastItem"),x=p(()=>{let{notifications:n,removeNotification:e}=y(),i=d(),[a,s]=g(!1);return C(()=>{s(!0)},[]),!a||!c?null:N(t(o,{style:{position:"fixed",bottom:"1rem",right:"1rem",zIndex:u(i).toast},children:n.map(r=>t(v,{toast:r,onRemove:e},r.id))}),c)},"NotificationGroup"),D=x;export{D as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u,b as f,c as g,e as w,f as y,h,j as x,k as b,m as F,n as P,o as T}from"./chunk-3437GMP7.esm.js";import{a as R,b as v}from"./chunk-
|
|
1
|
+
import{a as u,b as f,c as g,e as w,f as y,h,j as x,k as b,m as F,n as P,o as T}from"./chunk-3437GMP7.esm.js";import{a as R,b as v}from"./chunk-4XCYWJYX.esm.js";import{g as c}from"./chunk-L7A7RA56.esm.js";import"./chunk-TQMP7PZI.esm.js";import"./chunk-MPMCXGOX.esm.js";import"./chunk-JWNC52FT.esm.js";import"./chunk-AULAOFBW.esm.js";import"./chunk-4SDDAQ6N.esm.js";import"./chunk-IN2WB2ZK.esm.js";import"./chunk-FOWO4QTS.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-XR763B4T.esm.js";import"./chunk-47UE4K3O.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-VCMHX5VK.esm.js";import"./chunk-AAZFRX52.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-C7U4X56I.esm.js";import"./chunk-QXV2TDLZ.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-QEB4VTKV.esm.js";import"./chunk-R2QEO3KP.esm.js";import"./chunk-ODL5JUYM.esm.js";import"./chunk-3WXII2F3.esm.js";import"./chunk-EJ245MA7.esm.js";import"./chunk-FNYS25ZX.esm.js";import"./chunk-MYU2IAR3.esm.js";import"./chunk-VJ5GIFXO.esm.js";import"./chunk-REPFMEFA.esm.js";import"./chunk-6G22RNUO.esm.js";import"./chunk-J6F4PMW4.esm.js";import"./chunk-G5Z7USXC.esm.js";import{f as m}from"./chunk-AXUWC2WH.esm.js";import{a as d}from"./chunk-GZONWSRB.esm.js";import K from"react";import{jsx as D,jsxs as O}from"react/jsx-runtime";var N=d(({referenceEl:e,open:t,onOpenChange:I,position:C,inverted:E,noArrow:L,content:M,tooltipId:A})=>{var s,p;let o=K.useRef(null),n=T(e,t),{refs:H,floatingStyles:S,context:r,placement:$,middlewareData:l}=b({open:t,strategy:n.strategy,onOpenChange:I,placement:C,middleware:[y(8),g(),h({padding:4}),u({element:o})],whileElementsMounted:f,elements:{reference:e}}),{getFloatingProps:k}=F([x(r,{outsidePress:!0,escapeKey:!0}),P(r,{role:"tooltip"})]),z=m(),a=(s=l.arrow)==null?void 0:s.x,i=(p=l.arrow)==null?void 0:p.y;return D(w,{root:n.root,children:O(v,{ref:H.setFloating,id:A,inverted:E,deep:2,p:"xs",borderRadius:"xs","data-placement":$,style:{...S,zIndex:c(z).dropdown},...k(),children:[M,!L&&D(R,{ref:o,style:{left:a!=null?`${a}px`:"",top:i!=null?`${i}px`:""}})]})})},"TooltipFloating"),B=N;export{B as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u}from"./chunk-TQMP7PZI.esm.js";import{b as r,c as l,g as c}from"./chunk-AXUWC2WH.esm.js";import{a as e}from"./chunk-GZONWSRB.esm.js";var a={small:"0.5rem",medium:"0.625rem"},m={small:"0.875rem",medium:"1.125rem"},p={small:"0.1875rem",medium:"0.25rem"},b=l(["from{transform:scale(1);opacity:0.6;}to{transform:scale(2.25);opacity:0;}"]),g=l(["to{transform:rotate(360deg);}"]),f={live:"success",working:"information",success:"success",warning:"warning",danger:"danger",info:"information"},s=e((o,i)=>{var t,n;return(n=(t=o.colors[f[i]])==null?void 0:t.base)!=null?n:"currentColor"},"fillOf"),S=e(({$status:o,$size:i,theme:t})=>{var n,d;return o==="neutral"?r(["background:transparent;border:"," solid ",";"],t.border.borderWidth.regular,t.colors.ink.muted):r(["background:",";",""],s(t,o),o==="live"&&`box-shadow: 0 0 0 ${p[i]} ${(d=(n=t.colors.success)==null?void 0:n.light)!=null?d:"transparent"};`)},"dotCss"),x=e(({$status:o,$size:i,theme:t})=>o==="live"?r(["&::after{content:'';position:absolute;inset:0;margin:auto;inline-size:",";block-size:",";border-radius:50%;background:",";animation:"," var(--apollion-motion-indicator-pulse,",") var(--apollion-motion-easing-enter,",") infinite;}"],a[i],a[i],s(t,"live"),b,t.motion.indicator.pulse,t.motion.easing.enter):o==="working"?r(["&::after{content:'';position:absolute;inset:0;box-sizing:border-box;border:"," solid transparent;border-block-start-color:",";border-inline-end-color:",";border-radius:50%;animation:"," var(--apollion-motion-indicator-loop,",") var(--apollion-motion-easing-linear,",") infinite;}"],t.border.borderWidth.regular,s(t,"working"),s(t,"working"),g,t.motion.indicator.loop,t.motion.easing.linear):null,"motionCss"),z=c(u).withConfig({componentId:"sc-15k6ndi-0"})(["position:relative;display:inline-flex;flex:none;align-items:center;justify-content:center;box-sizing:border-box;inline-size:",";block-size:",";vertical-align:middle;&::before{content:'';box-sizing:border-box;inline-size:",";block-size:",";border-radius:50%;","}",""],({$size:o})=>m[o],({$size:o})=>m[o],({$size:o})=>a[o],({$size:o})=>a[o],S,x),T=c.span.withConfig({componentId:"sc-15k6ndi-1"})(["position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;"]);export{a,m as b,z as c,T as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{g as D}from"./chunk-ZOO4TDFX.esm.js";import{a as E}from"./chunk-BE2JDTVA.esm.js";import{d as p}from"./chunk-6G22RNUO.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import N,{lazy as H,Suspense as S,useCallback as z,useEffect as A,useState as T}from"react";import{Fragment as B,jsx as c,jsxs as I}from"react/jsx-runtime";var W=H(()=>import("./Dropdown.floating-LUGBBHPK.esm.js")),b=t(({children:s,options:e,content:o,hoverable:d=!1,position:C="left",width:i,full:g,motion:P="scale"})=>{if(!e&&!o)throw new Error('Dropdown deve receber "content" ou "options" props');let m=p(s),u=e?"menu":"dialog",[r,v]=T(null),[y,k]=T(),{active:n,enable:f,disable:R,toggle:w}=E(!1),x=z(a=>v(a),[]);A(()=>{g&&r&&k(r.getBoundingClientRect().width)},[g,r]);let F=t(()=>{let a=m?s({isOpen:n,open:f,toggle:w}):s,l={ref:x,"aria-haspopup":u,"aria-expanded":n};return m||(l.onClick=w),d&&(l.onPointerEnter=M=>{M.pointerType==="mouse"&&f()}),N.cloneElement(a,l)},"renderTrigger"),L=t(()=>Array.isArray(e)?c(D,{gap:"zero",color:"primary.action",exclusive:!0,content:e}):p(o)?o({close:R}):o,"renderMenuContent");return I(B,{children:[F(),n&&c(S,{fallback:null,children:c(W,{referenceEl:r,open:n,onClose:R,position:C,hoverable:d,role:u,width:i!=null?i:y,motion:P,children:L()})})]})},"DropdownComponent");b.displayName="Dropdown";export{b as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as o}from"./chunk-
|
|
1
|
+
import{g as o}from"./chunk-4XKKIEQL.esm.js";import{a as e}from"./chunk-LSLBDF5M.esm.js";import{forwardRef as u}from"react";import{jsx as n,jsxs as i}from"react/jsx-runtime";var f=u(({loading:r,opener:l=null,closer:m=null,content:s,contentGap:p="xs",children:x,loadingComponent:t,...c},a)=>i(e,{flexDirection:"row",justifyContent:"center",alignItems:"center",...c,ref:a,children:[i(e,{flexDirection:"row",flex:"fluid",alignItems:"center",gap:p,isHidden:r,children:[l,n(e,{flex:"fluid",minWidth:0,children:x||s}),m]}),r&&(t!=null?t:n(o,{"data-testid":"content-spinner",color:"gray.0",position:"absolute"}))]}));f.displayName="Content";export{f as a};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{c as y}from"./chunk-24CF72TV.esm.js";import{a as g}from"./chunk-EU4FKCQL.esm.js";import{d as f}from"./chunk-RWLJNXLX.esm.js";import{b as d}from"./chunk-VCMHX5VK.esm.js";import{b as p}from"./chunk-IK5Z5C2R.esm.js";import{a as c}from"./chunk-EJ245MA7.esm.js";import{g as u}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";function L(o){return o==="default"?"primary":o==="info"?"information":o}a(L,"getColorVariant");function S(o,t,n){let e=L(t),r=o.colors[e];if(n){let i=r==null?void 0:r.action;return{backgroundColor:i,color:i&&c(o,l=>{var m;let s=(m=l.colors[e])==null?void 0:m.action;return s&&l.colors.getContrastColor(s)})}}return{backgroundColor:r==null?void 0:r.light,color:r==null?void 0:r.onLight}}a(S,"getColor");var b=u(g).withConfig({componentId:"sc-dznqj7-0"})(["display:inline;"," "," "," "," ",""],({$withStatus:o,theme:t})=>o&&`
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: ${t.spacing("micro")};
|
|
5
|
+
`,p({fontSize:"micro",lineHeight:"close"}),d({px:"small",py:"xs"}),f({borderRadius:"micro"}),({theme:o,variant:t,inverted:n})=>S(o,t,n));import{jsx as C,jsxs as h}from"react/jsx-runtime";function x(o){let{variant:t="default",text:n,children:e,alignSelf:r="start",status:i,...l}=o;return h(b,{variant:t,alignSelf:r,$withStatus:i!==void 0,...l,children:[i!==void 0&&C(y,{as:"span","aria-hidden":!0,$status:i,$size:"small"}),e||n]})}a(x,"Label");x.displayName="Label";export{b as a,x as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-EU4FKCQL.esm.js";import{a as f}from"./chunk-TQMP7PZI.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{forwardRef as I}from"react";var m=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:s,children:t,iconPosition:o="left",align:x="center",gap:p="xs",as:c="span",...i},l)=>y(m,{as:c,flexDirection:"row",alignItems:x,gap:p,...i,ref:l,children:[o==="left"&&e,T(r,{as:"span",children:t!=null?t:s}),o==="right"&&e]}));a.displayName="IconText";export{m as a,a as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as B,b as K,c as N}from"./chunk-IMS5TWF3.esm.js";import{a as A}from"./chunk-
|
|
1
|
+
import{a as B,b as K,c as N}from"./chunk-IMS5TWF3.esm.js";import{a as A}from"./chunk-6HPOOHYI.esm.js";import{a as M,b as F}from"./chunk-FMNMEPTI.esm.js";import{f as W}from"./chunk-HSKYQ6VP.esm.js";import{c as O}from"./chunk-KZTG5TDM.esm.js";import{a as G}from"./chunk-BE2JDTVA.esm.js";import{a as _}from"./chunk-P3SIJHYM.esm.js";import{b as D}from"./chunk-SRBIATLE.esm.js";import{ja as V}from"./chunk-TVJXEJLN.esm.js";import{f as E}from"./chunk-7MX2FUN4.esm.js";import{a as H,e as P}from"./chunk-EU4FKCQL.esm.js";import{g as k}from"./chunk-L7A7RA56.esm.js";import{a as L}from"./chunk-2Z3UZIWZ.esm.js";import{a as C}from"./chunk-LSLBDF5M.esm.js";import{a as u}from"./chunk-TQMP7PZI.esm.js";import{a as R}from"./chunk-J6F4PMW4.esm.js";import{c as S}from"./chunk-G5Z7USXC.esm.js";import{b as y,g as c}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var co=y(["width:",";"],K);function mo({size:o}){var n;let e=(n=B[o!=null?o:"base"])!=null?n:B.base;return y(["max-width:",";min-width:min(",",100%);"],e.max,e.min)}a(mo,"modalSize");function so({variant:o,theme:e}){let n=e.colors[o];return y(["--baseColor:",";--lightColor:",";--actionColor:",";"],n.base,n.light,n.action)}a(so,"modalVariantColor");var Q=c(u).attrs({p:"large",borderRadius:"md",bgColor:"surface.overlay"}).withConfig({componentId:"sc-8jjm43-0"})(["",";",";","{",";}"],co,so,({theme:o})=>o.breakpoints.up("sm"),mo),U=c(C).withConfig({componentId:"sc-8jjm43-1"})(["max-height:",";overflow:hidden;"],N),X=c(C).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);}"],H,M,M,M),Y=c(u).withConfig({componentId:"sc-8jjm43-3"})(["flex:1;display:flex;overflow:hidden;"]),Z=c(u).attrs({borderRadius:"circular"}).withConfig({componentId:"sc-8jjm43-4"})(["display:flex;background-color:var(--lightColor);& svg{color:var(--baseColor);width:1.25rem;height:1.25rem;g{fill:var(--baseColor);}}"]),$=c(u).withConfig({componentId:"sc-8jjm43-5"})(["z-index:",";display:flex;justify-content:center;align-items:center;position:fixed;inset:0;html:has(&){overflow:hidden;}"],({theme:o})=>k(o).modal),q=c(u).withConfig({componentId:"sc-8jjm43-6"})(["opacity:0.8;will-change:opacity;"]);import x,{cloneElement as fo,isValidElement as po,useEffect as uo,useRef as go,useState as Co}from"react";import{createPortal as ho}from"react-dom";import{Fragment as xo,jsx as r,jsxs as h}from"react/jsx-runtime";var z=a(({isOpen:o,onDismiss:e,...n})=>{if(!o&&!e)throw new Error('You must provide "isOpen" and "onDismiss" if not using "trigger" prop.');let[l,m]=Co(!1),i=go(null),{mounted:t,state:d,ref:s}=O(o!=null?o:!1);return uo(()=>{m(!0)},[]),_(i,{active:!!(o&&l&&t),onEscape:e}),!l||!S?null:ho(t?h($,{"data-testid":"modal-container",children:[r(q,{absoluteFill:!0,bgColor:"surface.scrim","data-testid":"modal-overlay",onClick:e,motion:"fade","data-state":d}),r(Mo,{ref:p=>{i.current=p,s(p)},motionState:d,onDismiss:e,...n})]}):null,S)},"ModalBaseComponent"),yo=a(({defaultOpen:o,trigger:e,isOpen:n,onDismiss:l,onModalOpen:m,...i})=>{let{active:t,disable:d,enable:s,toggle:p}=G(o,{onActive:m});return(n||l)&&R.warn('"isOpen" and "onDismiss" has no effect while using "trigger" prop'),h(xo,{children:[a(()=>{let f=null;if(typeof e=="function"&&(f=e({isOpen:t,open:s})),po(e)&&(f=fo(e,{onClick:p})),f===null)throw new Error('"trigger" prop is not a valid element');return f},"renderTrigger")(),r(z,{isOpen:t,onDismiss:d,...i})]})},"ModalTriggerVariant"),Mo=x.forwardRef(a(function({noCloseButton:e,primaryButton:n,secondaryButton:l,primaryText:m,secondaryText:i,onDismiss:t,primaryAction:d,secondaryAction:s,children:p,tagline:v,variant:f,footer:b,title:w,size:oo,icon:j,motionState:eo,closeLabel:to="Fechar",role:ro="dialog"},no){let{isMobile:I}=W(),T=x.useId(),ao=a(()=>{d({close:t})},"handlePrimary"),lo=a(()=>{s({close:t})},"handleSecondary"),io=a(()=>{let g={onClick:ao,fullWidth:b==="full"||I,"data-testid":"modal-confirm-button"};return n?x.cloneElement(n,g):r(E,{color:f,...g,children:m})},"renderPrimaryButton");return r(Q,{ref:no,role:ro,"aria-modal":"true","aria-labelledby":w?T:void 0,tabIndex:-1,size:oo,variant:f,motion:"sheet","data-state":eo,children:h(U,{gap:"medium",children:[h(X,{gap:"xs",children:[r(L,{opener:j&&r(Z,{justifyContent:"center",alignItems:"center",p:"micro",children:j}),closer:!e&&r(F,{onClick:t,"data-testid":"modal-close-button","aria-label":to,icon:r(D,{icon:V}),variant:"linked",color:"secondary",size:"large",alignSelf:"start"}),children:w&&r(P,{id:T,variant:"h4",area:"title",color:"ink.primary",text:w})}),v&&r(P,{variant:"meta",color:"secondary.dark",area:"tagline",children:v})]}),r(Y,{py:"medium",children:r(A,{overscroll:"contain",children:p})}),(d||s)&&h(C,{flexDirection:I?"column-reverse":"row",justifyContent:b==="expanded"?"between":"end",gap:"medium",children:[s&&a(()=>{if(b==="full")return null;let g={onClick:lo,fullWidth:I,"data-testid":"modal-cancel-button"};return typeof l=="function"?l({close:a(()=>t==null?void 0:t(),"close")}):l?x.cloneElement(l,g):r(E,{variant:"outlined",color:"secondary",...g,children:i})},"renderSecondaryButton")(),d&&io()]})]})})},"ModalDialog")),J=a(({noCloseButton:o=!1,secondaryText:e="Cancelar",primaryText:n="Confirmar",variant:l="primary",footer:m="right",...i})=>{let t={noCloseButton:o,secondaryText:e,primaryText:n,variant:l,footer:m,...i};return t!=null&&t.trigger?r(yo,{...t}):r(z,{...t})},"ModalComponent");J.displayName="Modal";export{Q as a,U as b,X as c,Y as d,Z as e,$ as f,q as g,J as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as y}from"./chunk-BNB3KNKE.esm.js";import{b as f}from"./chunk-VCMHX5VK.esm.js";import{b as m}from"./chunk-AAZFRX52.esm.js";import{b as a}from"./chunk-QYL6LECA.esm.js";import{b as i}from"./chunk-C7U4X56I.esm.js";import{e as c}from"./chunk-QXV2TDLZ.esm.js";import{b as n}from"./chunk-IK5Z5C2R.esm.js";import{b as e}from"./chunk-ODL5JUYM.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";var d=o((r,F)=>{let t={theme:F};return{...y(r)(),...a(r)(t),...e(r)(t),...f(r)(t),...m(r)(t),...c(r,{defaultDirection:!1})(t),...n(r)(t),...i(r)(t)}},"channelStyles");export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as y}from"./chunk-
|
|
1
|
+
import{a as y}from"./chunk-LSLBDF5M.esm.js";import{a as h}from"./chunk-EJ245MA7.esm.js";import{k as b}from"./chunk-REPFMEFA.esm.js";import{b as s,g as c}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as S,useRef as v}from"react";var g=c(y).withConfig({componentId:"sc-rp85te-0"})(["padding:",";border-radius:",";background:",";"],({theme:e})=>e.spacing("micro"),({theme:e})=>e.border.borderRadius.md,({theme:e})=>e.colors.surface.sunken),I={small:s(["min-height:1.75rem;padding:0 ",";font-size:",";"],({theme:e})=>e.spacing("small"),({theme:e})=>e.font.fontSize.xs),medium:s(["min-height:2.25rem;padding:0 ",";font-size:",";"],({theme:e})=>e.spacing("medium"),({theme:e})=>e.font.fontSize.small)},k=c.button.withConfig({componentId:"sc-rp85te-1"})(["appearance:none;border:0;margin:0;background:transparent;cursor:pointer;font-family:",";font-weight:",";line-height:",";color:",";border-radius:",";transition:",";display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:",";",";&:hover:not([aria-checked='true']):not(:disabled){background:",";}&[aria-checked='true']{background:",";box-shadow:",";color:",";}&:focus-visible{outline:2px solid ",";outline-offset:1px;}&:disabled{cursor:not-allowed;color:",";}"],({theme:e})=>e.font.fontFamily.main,({theme:e})=>e.font.fontWeight.bold,({theme:e})=>e.font.lineHeight.tight,({theme:e})=>e.colors.ink.secondary,({theme:e})=>e.border.borderRadius.sm,({theme:e})=>e.animation.transitions.short,({$fullWidth:e})=>e?"1 1 0":"0 0 auto",({$size:e})=>I[e],({theme:e})=>e.colors.wash.hover,({theme:e})=>e.colors.surface.raised,({theme:e})=>e.depth("level-one"),({theme:e})=>e.colors.ink.primary,({theme:e})=>h(e,i=>b(i.colors.primary,"base")),({theme:e})=>e.colors.ink.disabled);import{jsx as w}from"react/jsx-runtime";var x=S(({options:e,value:i,onChange:O,size:R="medium",label:D,fullWidth:d=!0,...C},a)=>{let f=v(null),m=l(r=>{var o,t;let n=e[r];!n||n.disabled||n.value===i||(O(n.value),(t=(o=f.current)==null?void 0:o.querySelectorAll('[role="radio"]')[r])==null||t.focus())},"pick"),u=l((r,n)=>{let o=e.length,t=r;for(let p=0;p<o;p+=1)if(t=(t+n+o)%o,!e[t].disabled)return t;return r},"step");return w(g,{flexDirection:"row",alignItems:"stretch",gap:"micro",width:d?"100%":void 0,role:"radiogroup","aria-label":D,onKeyDown:l(r=>{let n=e.findIndex(t=>t.value===i),o=null;r.key==="ArrowRight"||r.key==="ArrowDown"?o=u(n,1):r.key==="ArrowLeft"||r.key==="ArrowUp"?o=u(n,-1):r.key==="Home"?o=e.findIndex(t=>!t.disabled):r.key==="End"&&(o=e.length-1-[...e].reverse().findIndex(t=>!t.disabled)),!(o===null||o<0)&&(r.preventDefault(),m(o))},"handleKeyDown"),...C,ref:l(r=>{f.current=r,typeof a=="function"?a(r):a&&(a.current=r)},"setRefs"),children:e.map((r,n)=>{let o=r.value===i;return w(k,{type:"button",role:"radio","aria-checked":o,tabIndex:o?0:-1,disabled:r.disabled,$size:R,$fullWidth:d,onClick:()=>m(n),children:r.label},r.value)})})});x.displayName="Option";export{g as a,k as b,x as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-TQMP7PZI.esm.js";import{g as r}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";function e({inverted:a,theme:o}){return a?{"--background":o.colors.surface.raised,"--color":o.colors.ink.primary}:{"--background":o.colors.ink.primary,"--color":o.colors.surface.paper}}n(e,"getContainerStyle");var t=r(i).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;}"]),l=r(i).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;}"],e,t,t,t,t);export{t as a,l as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-KT4BKJVV.esm.js";import{a as i}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-KT4BKJVV.esm.js";import{a as i}from"./chunk-TQMP7PZI.esm.js";import{c as t,g as o}from"./chunk-AXUWC2WH.esm.js";var S=t(["to{transform:rotate(360deg);}"]),g=t(["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=o(i).withConfig({componentId:"sc-1teioay-0"})(["animation:"," var(--apollion-motion-indicator-loop,2000ms) var(--apollion-motion-easing-linear,cubic-bezier(0,0,1,1)) infinite;"],S),p=o(n).withConfig({componentId:"sc-1teioay-1"})(["fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;animation:"," var(--apollion-motion-indicator-pulse,1500ms) var(--apollion-motion-easing-standard,cubic-bezier(0.42,0,0.58,1)) infinite;@media (prefers-reduced-motion:reduce){animation:none;stroke-dasharray:90,150;stroke-dashoffset:-35;}"],g),l=2*Math.PI*20,x=t(["from{stroke-dashoffset:0;}to{stroke-dashoffset:",";}"],l),m=o(i).withConfig({componentId:"sc-1teioay-2"})(["transform:rotate(-90deg);"]),f=o(n).withConfig({componentId:"sc-1teioay-3"})(["fill:none;stroke:currentColor;stroke-width:4;opacity:0.2;"]),h=o(n).withConfig({componentId:"sc-1teioay-4"})(["fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-dasharray:",";animation:"," var(--countdown-duration) var(--apollion-motion-easing-linear,cubic-bezier(0,0,1,1)) forwards;"],l,x);import{forwardRef as v}from"react";import{jsx as r,jsxs as b}from"react/jsx-runtime";var u=v(({size:w,label:a="Carregando",variant:y="indeterminate",duration:C=15e3,cycle:k,...s},c)=>{let e=w||"1em";return y==="countdown"?b(m,{as:"svg",viewBox:"0 0 50 50",role:"timer","aria-label":a,...s,width:e,height:e,ref:c,children:[r(f,{cx:"25",cy:"25",r:"20"}),r(h,{cx:"25",cy:"25",r:"20",style:{"--countdown-duration":`${C}ms`}},k)]}):r(d,{as:"svg",viewBox:"0 0 50 50",role:"status","aria-label":a,...s,width:e,height:e,ref:c,children:r(p,{cx:"25",cy:"25",r:"20"})})});u.displayName="Spinner";export{d as a,p as b,l as c,m as d,f as e,h as f,u as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as c}from"./chunk-
|
|
1
|
+
import{b as c}from"./chunk-SRBIATLE.esm.js";import{b as g}from"./chunk-BTPOCQ2L.esm.js";import{e as u}from"./chunk-EU4FKCQL.esm.js";import{a as s}from"./chunk-LCCVFIPZ.esm.js";import{a as f}from"./chunk-TQMP7PZI.esm.js";import{g as p}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";function h(r){return r==="extraLarge"?"xl":r==="giant"?"xxl":r}a(h,"getIconSize");function x({theme:r,size:i,$label:n}){let{fontSize:o}=r.font,e=(n==null?void 0:n.length)||0;switch(i){case"small":{let t=s(r,"medium");return{width:t,height:t,fontSize:o.micro}}case"large":{let t=s(r,"xl");return{width:t,height:t,fontSize:e===1?o.xxl:o.large}}case"extraLarge":{let t=s(r,"xxl");return{width:t,height:t,fontSize:e===1?o.gargantua:o.giant}}case"giant":{let t=s(r,"giant");return{width:t,height:t,fontSize:o.gargantua}}default:{let t=s(r,"large");return{width:t,height:t,fontSize:e===1?o.medium:o.xs}}}}a(x,"getSizes");var d=p(f).withConfig({componentId:"sc-k7r87e-0"})(["display:flex;",""],x);import{jsx as m}from"react/jsx-runtime";function l({imgSrc:r,icon:i,size:n,label:o,alt:e}){return r?m(g,{cover:!0,src:r,alt:e!=null?e:"","data-testid":"avatar-image"}):i?m(c,{icon:i,size:h(n),"data-testid":"avatar-icon"}):m(u,{textTransform:"uppercase",children:o})}a(l,"getContent");var v=a(({size:r,icon:i,imgSrc:n,label:o,alt:e,...t})=>m(d,{alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"circular",bgColor:"surface.sunken",color:"primary.base",$label:o,size:r,...!n&&!i&&!!o&&{role:"img","aria-label":e!=null?e:o},...t,children:l({size:r,icon:i,imgSrc:n,label:o,alt:e})}),"Avatar");v.displayName="Avatar";export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as re}from"./chunk-BE2JDTVA.esm.js";import{b as y}from"./chunk-E2U6IFPB.esm.js";import{a as ee}from"./chunk-EU4FKCQL.esm.js";import{a as p}from"./chunk-TQMP7PZI.esm.js";import{b as v}from"./chunk-G5Z7USXC.esm.js";import{b as R,g as l}from"./chunk-AXUWC2WH.esm.js";import{a as u}from"./chunk-GZONWSRB.esm.js";var Ie=R(["--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),Fe=R(["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),oe=l(p).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?Fe:Ie),te=l(p).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);"]),ne=l(p).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;"]),Le=u((e,o)=>{let t=[e.colors("danger"),e.colors("warning"),e.colors("success")];return(o==="descending"?t.reverse():t).join(", ")},"gradientStops"),ie=l(p).withConfig({componentId:"sc-18639os-3"})(["height:var(--height);background-image:linear-gradient(to right,",");background-repeat:no-repeat;border-radius:calc(var(--height) / 2);position:absolute;width:100%;left:0;"],({theme:e,$direction:o})=>Le(e,o)),ae=l(p).withConfig({componentId:"sc-18639os-4"})(["height:var(--height);background-color:var(--railColor);background-repeat:no-repeat;position:absolute;right:0;"]),D=l(p).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 var(--apollion-motion-duration-200,200ms) var(--apollion-motion-easing-linear,cubic-bezier(0,0,1,1));text-align:center;position:absolute;bottom:",";left:50%;transform:translateX(-50%);font-size:",";white-space:nowrap;border-color:var(--borderColor);@media (pointer:coarse){bottom:",";}&: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"),({theme:e})=>e.font.fontSize.micro,({theme:e})=>e.spacing("xl")),Pe=R(["box-shadow:0px 0px 0px 9px "," !important;& ","{opacity:1;}"],({theme:e})=>e.colors.wash.pressed,D),se=l(p).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 var(--apollion-motion-intent-micro-duration,150ms) var(--apollion-motion-intent-micro-easing,cubic-bezier(0.42,0,0.58,1));&:hover{box-shadow:0px 0px 0px 6px ",";","{opacity:1;}}&:focus-visible{outline:2px solid var(--trackColor);outline-offset:2px;}@media (pointer:coarse){--size:calc(var(--height) * 3.5);}",""],({theme:e})=>e.colors.wash.hover,D,({active:e})=>e&&Pe),le=l(p).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)"),ce=l(p).withConfig({componentId:"sc-18639os-8"})(["position:absolute;margin-top:1rem;transform:translateX(-50%);white-space:nowrap;font-family:",";font-size:",";font-weight:",";color:",";"],({theme:e})=>e.font.fontFamily.main,({theme:e})=>e.font.fontSize.micro,({theme:e,$picked:o})=>o?e.font.fontWeight.bold:e.font.fontWeight.regular,({theme:e,$picked:o})=>o?e.colors.ink.primary:e.colors.ink.secondary),de=l(p).withConfig({componentId:"sc-18639os-9"})(["display:flex;flex-direction:column;gap:",";width:100%;"],({theme:e})=>e.spacing("micro")),ue=l(p).withConfig({componentId:"sc-18639os-10"})(["display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;gap:",";font-family:",";font-size:",";"],({theme:e})=>e.spacing("xs"),({theme:e})=>e.font.fontFamily.main,({theme:e})=>e.font.fontSize.xs),pe=l.span.withConfig({componentId:"sc-18639os-11"})(["font-weight:",";color:",";"],({theme:e})=>e.font.fontWeight.bold,({theme:e})=>e.colors.ink.primary),fe=l.span.withConfig({componentId:"sc-18639os-12"})(["margin-inline-start:auto;font-variant-numeric:tabular-nums;color:",";"],({theme:e})=>e.colors.ink.secondary);import Ve,{useCallback as xe,useEffect as H,useId as Be,useMemo as Ge,useRef as I,useState as Xe}from"react";function X(e,o,t){return(e-o)*100/(t-o)}u(X,"valueToPercent");function be(e,o,t){return(t-o)*e+o}u(be,"percentToValue");function me(e){let[,o=""]=String(e).split(".");return o.length}u(me,"decimals");function he(e,o,t){let a=Math.round((e-t)/o)*o+t;return Number(a.toFixed(Math.max(me(o),me(t))))}u(he,"roundValueToStep");function ge(e,o,t,a,f){let i=f>0?f:(a-t)/100,x=Math.max(i,Math.round((a-t)/10/i)*i),S={ArrowLeft:-i,ArrowDown:-i,ArrowRight:i,ArrowUp:i,PageDown:-x,PageUp:x},w;if(e==="Home")w=t;else if(e==="End")w=a;else if(e in S)w=Math.min(Math.max(t,o+S[e]),a);else return;return T(w,a,t,f)}u(ge,"keyboardValue");function ve(e){return e>=1?1:e<=0?0:e}u(ve,"clamp");function T(e,o,t,a){if(Number.isFinite(e)&&e>=t&&e<=o){if(!a)return e;let i=he(e,a,t);return i>o?he(i-a,a,t):i}return Math.min(Math.max(t,e),o)}u(T,"normalizeValue");import{jsx as m,jsxs as F}from"react/jsx-runtime";function $({gradient:e,disabled:o,getLabelValue:t,markLabel:a,onChange:f,onInput:i,label:x,showValue:S=!1,id:w,"aria-label":Se,"aria-labelledby":L,value:P=50,max:d=100,min:c=0,step:h=1,mark:A,area:we,alignSelf:Ce,justifySelf:ye}){let[g,N]=Xe(()=>T(P,d,c,h)),k=I(g);H(()=>{N(r=>{let n=T(P,d,c,h);return n!==r?n:r})},[P,d,c,h]),H(()=>{k.current=g},[g]);let{active:Te,enable:W,disable:ke}=re(),K=I(null),j=I(null),U=`${Be()}-label`,Ee=Ge(()=>{if(!(A===!0&&h))return[];let r=Math.floor((d-c)/h)+1;return!Number.isFinite(r)||r<=0||r>1e4?[]:[...Array(r)].map((n,s)=>{let b=c+h*s;return{value:b,...t&&a&&{label:t(b)}}})},[A,t,a,h,c,d]),E=I(void 0);H(()=>()=>clearTimeout(E.current),[]);let V=xe(r=>r===k.current?!1:(k.current=r,N(r),i==null||i(r),!0),[i]),B=xe(r=>{var Z;let n=0;try{if(r.type==="touchmove"){let[z]=r.changedTouches;n=z==null?void 0:z.clientX}else n=r.clientX}catch(z){n=r.clientX}let s=(Z=K.current)==null?void 0:Z.getBoundingClientRect();if(!s)return;let b=ve((n-s.left)/s.width),Y=T(be(b,c,d),d,c,h);V(Y),f&&(clearTimeout(E.current),E.current=setTimeout(()=>{f(Y)},100))},[c,d,h,f,V]),M=y(r=>{B(r)}),C=y(()=>{var r,n,s,b;ke(),(r=v)==null||r.document.removeEventListener("mousemove",M),(n=v)==null||n.document.removeEventListener("mouseup",C),(s=v)==null||s.document.removeEventListener("touchmove",M),(b=v)==null||b.document.removeEventListener("touchend",C)});H(()=>C,[C]);let Me=y(r=>{var n,s,b;r.preventDefault(),(n=j.current)==null||n.focus({preventScroll:!0}),B(r),W(),(s=v)==null||s.document.addEventListener("mousemove",M,{passive:!1}),(b=v)==null||b.document.addEventListener("mouseup",C,{passive:!1})}),ze=y(r=>{var n,s;r.stopPropagation(),B(r),W(),(n=v)==null||n.document.addEventListener("touchmove",M,{passive:!1}),(s=v)==null||s.document.addEventListener("touchend",C,{passive:!1})}),Re=y(r=>{if(o)return;let n=ge(r.key,k.current,c,d,h);n!==void 0&&(r.preventDefault(),V(n)&&(clearTimeout(E.current),f==null||f(n)))}),G=t?t(g):String(g),_=x!=null||S,De=L!=null?L:x!=null?U:void 0,q=`${X(g,c,d)}%`,He={width:q},J={left:q},O={area:we,alignSelf:Ce,justifySelf:ye},Q=F(oe,{ref:K,onMouseDown:Me,onTouchStart:ze,disabled:o,...!_&&O,children:[m(te,{}),e?m(ie,{$direction:e==="descending"?"descending":"ascending",children:m(ae,{style:J})}):m(ne,{style:He}),Ee.map(r=>{let n={left:`${X(r.value,c,d)}%`};return F(Ve.Fragment,{children:[m(le,{active:r.value<=g,style:n,"aria-hidden":!0}),r.label&&m(ce,{$picked:r.value===g,style:n,"aria-hidden":!0,children:r.label})]},r.value)}),m(se,{ref:j,id:w,role:"slider",tabIndex:o?void 0:0,"aria-valuemin":c,"aria-valuemax":d,"aria-valuenow":g,"aria-valuetext":t?G:void 0,"aria-label":Se,"aria-labelledby":De,"aria-disabled":o||void 0,onKeyDown:Re,borderRadius:"circular",deep:1,active:Te,style:J,"data-testid":"input-range-thumb",children:!o&&!S&&m(D,{children:m(ee,{children:G})})})]});return _?F(de,{...O,children:[F(ue,{children:[x!=null&&m(pe,{id:U,children:x}),S&&m(fe,{"data-testid":"input-range-value",children:G})]}),Q]}):Q}u($,"Slider");$.displayName="Slider";$.ariaLabelledByField=!0;export{oe as a,te as b,ne as c,ie as d,ae as e,D as f,se as g,le as h,ce as i,de as j,ue as k,pe as l,fe as m,$ as n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o,c as t}from"./chunk-TQMP7PZI.esm.js";import{g as r}from"./chunk-AXUWC2WH.esm.js";var p=r(o).attrs(({flat:a,display:e,...f})=>({p:"medium",borderRadius:"micro",...a?{}:{bgColor:"surface.paper",deep:2},...f,display:e!=null?e:"flex"})).withConfig({componentId:"sc-5vfy6v-0"})(["",""],t("flex"));export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as S,c as W}from"./chunk-TQMP7PZI.esm.js";import{b as a}from"./chunk-G5Z7USXC.esm.js";import{g as v}from"./chunk-AXUWC2WH.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";import{forwardRef as it,useCallback as E,useEffect as j,useLayoutEffect as rt,useRef as m}from"react";var R=v.div.withConfig({componentId:"sc-wsu612-0"})(["position:absolute;top:0;left:0;border-radius:999px;background:",";opacity:0.55;cursor:pointer;touch-action:none;transition:opacity var(--apollion-motion-duration-150,150ms) var(--apollion-motion-easing-standard,ease);&:hover,[data-dragging='true'] > &{opacity:0.85;}"],({theme:n})=>n.colors.ink.muted),l=v.div.withConfig({componentId:"sc-wsu612-1"})(["position:absolute;z-index:1;opacity:0;user-select:none;transition:opacity var(--apollion-motion-duration-300,300ms) var(--apollion-motion-easing-exit,cubic-bezier(0.4,0,1,1));&[data-active='false']{display:none;}&[data-axis='y']{top:2px;right:2px;bottom:2px;width:8px;& > ","{width:100%;}}&[data-axis='x']{right:2px;bottom:2px;left:2px;height:8px;& > ","{height:100%;}}"],R,R),X=v(S).withConfig({componentId:"sc-wsu612-2"})(["flex:1 1 auto;min-width:0;min-height:0;box-sizing:border-box;scrollbar-width:none;-webkit-overflow-scrolling:touch;&::-webkit-scrollbar{display:none;width:0;height:0;}&[data-axis='y']{overflow-x:hidden;overflow-y:auto;}&[data-axis='x']{overflow-x:auto;overflow-y:hidden;}&[data-axis='both']{overflow:auto;}&[data-overscroll='contain']{overscroll-behavior:contain;}&:focus-visible{outline:2px solid ",";outline-offset:-2px;}"],({theme:n})=>n.colors.ink.primary),Y=v.div.withConfig({componentId:"sc-wsu612-3"})(["display:flow-root;&[data-axis='x'],&[data-axis='both']{width:fit-content;min-width:100%;}"]),$=v(S).attrs(({display:n})=>({display:n!=null?n:"flex"})).withConfig({componentId:"sc-wsu612-4"})([""," position:relative;flex:1;flex-direction:column;min-width:0;min-height:0;overflow:hidden;&:hover > ",",&:focus-within > ",",&[data-scrolling='true'] > ",",& > ","[data-dragging='true']{opacity:1;transition-timing-function:var(--apollion-motion-easing-enter,cubic-bezier(0,0,0.2,1));}&[data-thumb='always'] > ","{opacity:1;}&[data-axis='both'] > ","[data-axis='y']{bottom:12px;}&[data-axis='both'] > ","[data-axis='x']{right:12px;}"],W("flex"),l,l,l,l,l,l,l);import{jsx as M,jsxs as ut}from"react/jsx-runtime";var at=24,ct=800,st=a?rt:j,B=c((n,r)=>r==="y"?{client:n.clientHeight,size:n.scrollHeight,position:n.scrollTop}:{client:n.clientWidth,size:n.scrollWidth,position:n.scrollLeft},"metrics"),_=c((n,r)=>r==="y"?n.clientHeight:n.clientWidth,"railLength"),U=c((n,r,x)=>Math.min(x,Math.max(at,n/r*x)),"thumbLength"),q=c(n=>n==="both"?["y","x"]:[n],"axesOf"),G=c((n,r)=>{typeof n=="function"?n(r):n&&(n.current=r)},"assignRef"),lt=it(({children:n,onScroll:r,scrollableRef:x,scrollerProps:J,axis:p="y",thumb:K="auto",overscroll:Q="auto",...V},k)=>{let N=m(null),g=m(null),P=m(null),H=m({}),C=m({}),I=m(0),z=m(void 0),Z=E(t=>{N.current=t,G(k,t)},[k]),tt=E(t=>{g.current=t,G(x,t)},[x]),L=E(()=>{let t=g.current;t&&q(p).forEach(e=>{let o=H.current[e],i=C.current[e];if(!o||!i)return;let{client:s,size:u,position:f}=B(t,e),y=u-s>1;if(o.dataset.active=String(y),!y)return;let b=_(o,e),w=U(s,u,b),T=f/(u-s)*(b-w);i.style[e==="y"?"height":"width"]=`${w}px`,i.style.transform=e==="y"?`translateY(${T}px)`:`translateX(${T}px)`})},[p]),d=E(()=>{a&&(a.cancelAnimationFrame(I.current),I.current=a.requestAnimationFrame(L))},[L]);st(()=>{L()},[L,n]),j(()=>{if(!a)return;let t=[g.current,P.current].filter(o=>!!o),e=typeof ResizeObserver=="undefined"?void 0:new ResizeObserver(d);return t.forEach(o=>e==null?void 0:e.observe(o)),a.addEventListener("resize",d),()=>{var o,i;e==null||e.disconnect(),(o=a)==null||o.removeEventListener("resize",d),(i=a)==null||i.cancelAnimationFrame(I.current),clearTimeout(z.current)}},[d]);let et=E(t=>{r==null||r(t),d();let e=N.current;e&&(e.dataset.scrolling="true",clearTimeout(z.current),z.current=setTimeout(()=>{e.dataset.scrolling="false"},ct))},[r,d]),nt=c(t=>e=>{let o=g.current,i=H.current[t];if(!o||!i||!a||e.button>0)return;e.preventDefault(),e.stopPropagation();let{client:s,size:u,position:f}=B(o,t),y=_(i,t),b=y-U(s,u,y),w=b>0?(u-s)/b:0,T=t==="y"?e.clientY:e.clientX,h=a;i.dataset.dragging="true";let A=c(F=>{let O=(t==="y"?F.clientY:F.clientX)-T;t==="y"?o.scrollTop=f+O*w:o.scrollLeft=f+O*w},"move"),D=c(()=>{i.dataset.dragging="false",h.removeEventListener("pointermove",A),h.removeEventListener("pointerup",D),h.removeEventListener("pointercancel",D)},"stop");h.addEventListener("pointermove",A),h.addEventListener("pointerup",D),h.addEventListener("pointercancel",D)},"startDrag"),ot=c(t=>e=>{let o=g.current,i=C.current[t];if(!o||!i||e.button>0)return;let s=i.getBoundingClientRect(),u=t==="y"?e.clientY<s.top:e.clientX<s.left,f=(t==="y"?o.clientHeight:o.clientWidth)*(u?-1:1);t==="y"?o.scrollTop+=f:o.scrollLeft+=f},"pageTowards");return ut($,{...V,ref:Z,"data-axis":p,"data-thumb":K,children:[M(X,{...J,ref:tt,"data-axis":p,"data-overscroll":Q,tabIndex:0,onScroll:et,children:M(Y,{ref:P,"data-axis":p,children:n})}),q(p).map(t=>M(l,{ref:e=>{H.current[t]=e},"data-axis":t,"data-active":"false","aria-hidden":"true",onPointerDown:ot(t),children:M(R,{ref:e=>{C.current[t]=e},onPointerDown:nt(t)})},t))]})});lt.displayName="CustomScroll";export{lt as a};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{a as g,b as $,c as z,d as C,g as I}from"./chunk-Q3FUXFD5.esm.js";import{a as A}from"./chunk-LSLBDF5M.esm.js";import{c as u}from"./chunk-AULAOFBW.esm.js";import{d as T}from"./chunk-RWLJNXLX.esm.js";import{b}from"./chunk-VCMHX5VK.esm.js";import{b as S}from"./chunk-IK5Z5C2R.esm.js";import{b as h}from"./chunk-ODL5JUYM.esm.js";import{a as y}from"./chunk-J6F4PMW4.esm.js";import{b as m}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";function k(e,r){let t=e.spacing("small"),n=e.border.borderWidth.thin;return`calc((${r} * 1lh) + (2 * ${t}) + (2 * ${n}))`}a(k,"rowsBlockSize");function Y({theme:e,autoResize:r,$fill:t,rows:n,maxRows:o}){if(!r||t)return null;let s=a(i=>k(e,i),"blockSize");return m(["field-sizing:content;min-block-size:",";",""],s(n!=null?n:2),o?m(["max-block-size:",";"],s(o)):null)}a(Y,"autoResizeStyle");function j({theme:e,$fill:r,rows:t}){return r?m(["flex:1 1 auto;min-block-size:",";"],k(e,t!=null?t:2)):null}a(j,"fillStyle");var P=u("textarea").withConfig({componentId:"apollion-textarea"})`
|
|
2
|
+
-webkit-appearance: none;
|
|
3
|
+
width: 100%;
|
|
4
|
+
outline: none;
|
|
5
|
+
display: block;
|
|
6
|
+
transition: ${({theme:e})=>e.animation.transitions.short};
|
|
7
|
+
|
|
8
|
+
${Y}
|
|
9
|
+
|
|
10
|
+
${j}
|
|
11
|
+
|
|
12
|
+
${g}
|
|
13
|
+
|
|
14
|
+
${C}
|
|
15
|
+
|
|
16
|
+
${z}
|
|
17
|
+
|
|
18
|
+
${$}
|
|
19
|
+
|
|
20
|
+
${T({borderRadius:"xs",borderWidth:"thin",borderStyle:"solid"})}
|
|
21
|
+
${S({fontFamily:"main"})}
|
|
22
|
+
${b({p:"small"})}
|
|
23
|
+
${h({bgColor:"surface.paper"})}
|
|
24
|
+
`,R=u(A).withConfig({componentId:"apollion-textarea-counter"})`
|
|
25
|
+
position: absolute;
|
|
26
|
+
right: 0;
|
|
27
|
+
bottom: 0;
|
|
28
|
+
line-height: 1.2rem;
|
|
29
|
+
font-size: ${({theme:e})=>e.font.fontSize.micro};
|
|
30
|
+
transform: translateY(100%);
|
|
31
|
+
color: ${({theme:e})=>e.colors.ink.primary};
|
|
32
|
+
`,F=u(I)`
|
|
33
|
+
${({$fill:e})=>e?m(["flex:1 1 auto;"]):null}
|
|
34
|
+
`;import{forwardRef as q,useEffect as w,useState as J}from"react";import{jsx as Q,jsxs as D}from"react/jsx-runtime";var K={expansive:{fontSize:"medium",py:"medium"},medium:{fontSize:"medium",py:"small"},compact:{fontSize:"medium",py:"xs"},micro:{py:"micro",fontSize:"small",borderRadius:"micro"}},E=q(({value:e,defaultValue:r,onChange:t,maxLengthHint:n="characters left",variant:o,resize:s=!1,autoResize:i=!1,fill:l=!1,maxRows:V,size:W="medium",area:L,alignSelf:B,justifySelf:H,style:v,...c},G)=>{let M=o!==void 0,p=o!=null?o:"default",f=e!==void 0,[d,N]=J(r||""),O=f?e:d;return w(()=>{l&&i&&y.warn('[TextArea] "autoResize" has no effect while "fill" is set: the field is sized by its container.')},[l,i]),D(F,{variant:p,$fill:l,area:L,alignSelf:B,justifySelf:H,children:[Q(P,{value:f?e:d,defaultValue:void 0,variant:p,$variantExplicit:M,autoResize:i,$fill:l,maxRows:V,onChange:a(x=>{f||N(x.target.value),t&&t(x)},"handleChange"),...K[W],...c,ref:G,style:{resize:i||l?"none":s?"both":"none",...v}}),c.maxLength&&D(R,{children:[Number(c.maxLength)-(O||"").length," ",n]})]})});E.displayName="TextArea";export{P as a,R as b,F as c,E as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as se}from"./chunk-6HPOOHYI.esm.js";import{f as de}from"./chunk-Q3FUXFD5.esm.js";import{a as le,c as j}from"./chunk-ZZ5EX7HG.esm.js";import{a as Y,b as ee}from"./chunk-FMNMEPTI.esm.js";import{a as ie}from"./chunk-A3OJEVGQ.esm.js";import{b as oe}from"./chunk-KR2X2UQG.esm.js";import{a as te}from"./chunk-BE2JDTVA.esm.js";import{b as O}from"./chunk-SRBIATLE.esm.js";import{b as J}from"./chunk-BTPOCQ2L.esm.js";import{J as ne,K as re,ja as ae,ma as B}from"./chunk-TVJXEJLN.esm.js";import{f as Q}from"./chunk-7MX2FUN4.esm.js";import{e as I}from"./chunk-EU4FKCQL.esm.js";import{b as X}from"./chunk-D6OVUFOQ.esm.js";import{a as k}from"./chunk-LCCVFIPZ.esm.js";import{a as v}from"./chunk-LSLBDF5M.esm.js";import{a as U}from"./chunk-TQMP7PZI.esm.js";import{e as K}from"./chunk-QXV2TDLZ.esm.js";import{l as V}from"./chunk-6G22RNUO.esm.js";import{g as h}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var me=i(({theme:e,readOnly:t,disabled:o,active:r})=>{if(t||o)return null;let c=e.colors.primary.base;return{borderWidth:1,borderStyle:"dashed",borderColor:r?c:"transparent","&:hover":{borderColor:c}}},"activeStyle"),ce=i(({disabled:e,readOnly:t})=>(e||t)&&{cursor:"not-allowed",pointerEvents:"none",userSelect:"none"},"disabledStyle"),pe=h(U).withConfig({componentId:"sc-1erdx9t-0"})([""," "," container-type:inline-size;"],me,ce),N=h(U).withConfig({componentId:"sc-1erdx9t-1"})(["pointer-events:none;display:flex;justify-content:center;align-items:center;"]),q=h(U).withConfig({componentId:"sc-1erdx9t-2"})(["opacity:0.95;"]),D=h(j).withConfig({componentId:"sc-1erdx9t-3"})(["& ","{padding:0;svg{width:0.8rem;height:0.8rem;}}"],Y),fe=h(se).withConfig({componentId:"sc-1erdx9t-4"})(["min-width:0;& ","{padding:"," 0;}& "," + & ","{margin-top:",";}"],D,({theme:e})=>e.spacing("xs"),D,D,({theme:e})=>e.spacing("medium")),ue=h(I).withConfig({componentId:"sc-1erdx9t-5"})(["flex:1;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),ge=h(U).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 var(--apollion-motion-duration-100,100ms) var(--apollion-motion-easing-linear,cubic-bezier(0,0,1,1));"],({theme:e})=>e.colors.information.base),z=h(U).attrs(e=>({borderRadius:"micro",...e})).withConfig({componentId:"sc-1erdx9t-7"})(["align-self:center;overflow:hidden;width:",";height:",";font-size:",";color:",";"],({theme:e})=>k(e,8),({theme:e})=>k(e,8),({theme:e})=>k(e,6.4),({theme:e})=>e.colors.primary.base),Fe=h(U).withConfig({componentId:"sc-1erdx9t-8"})(["display:grid;"," "," ",""],le,me,ce),Ce=h(U).withConfig({componentId:"sc-1erdx9t-9"})(["display:flex;flex-direction:column;"]),xe=h(j).withConfig({componentId:"sc-1erdx9t-10"})(["",""],K({flex:"fluid"}));import{forwardRef as Me,useCallback as He,useEffect as We,useImperativeHandle as Ge,useRef as Ze,useState as _e}from"react";function $(e){let t=Math.floor(Math.log(e)/Math.log(1e3));return`${(e/1e3**t).toFixed(2)} ${["B","kB","MB","GB","TB"][t]}`}i($,"fileSize");function M(e,t){let o=t||15728640;return(Array.isArray(e)?e:[e]).filter(c=>c.size<=o)}i(M,"filterFiles");function H(e){return e.map(t=>({id:X(),file:t,fileName:t.name,fileSize:$(t.size)}))}i(H,"convertFileToFileItem");function ye(e){let{fieldName:t,file:o,requestConfig:r}=e,{endpoint:c,timeout:b,auth:u,params:F,withCredentials:m,responseType:d,headers:f,formDataParams:s}=r;return new Promise((p,y)=>{let a=new XMLHttpRequest;a.timeout=b;let C=new FormData;C.append(t,o,o.name),s&&s.forEach(l=>{C.append(l.key,l.value)});let R=new URL(c);if(F&&Object.keys(F).forEach(l=>{R.searchParams.append(l,F[l])}),a.open("post",R.href),"setRequestHeader"in a){let l={...f};if(u){let g=u.username||"",w=unescape(encodeURIComponent(u.password))||"",L=`${g}:${w}`;l.Authorization=`Basic ${btoa(L)}`}Object.keys(l).forEach(g=>{let w=l[g];w!==void 0&&a.setRequestHeader(g,w)})}m!==void 0&&(a.withCredentials=!!m),a.responseType=d||"json";let P=0;a.upload.addEventListener("progress",l=>{e.onProgress&&(P=l.loaded,e.onProgress(l.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 l={response:a.response,status:a.status,statusText:a.statusText};e.onProgress&&e.onProgress(P,!0,l),p(l),a=null},a.onerror=()=>{e.onProgress&&e.onProgress(P,!1),y(),a=null},a.send(C)})}i(ye,"uploadFile");import{useEffect as Ve,useState as je}from"react";function he(e,t){let[o,r]=je(null);return Ve(()=>{let c="";return e&&t&&t(e)&&(c=URL.createObjectURL(e),r(c)),()=>{URL.revokeObjectURL(c)}},[e,t]),o}i(he,"useObjectUrl");import{Fragment as qe,jsx as n,jsxs as x}from"react/jsx-runtime";function be(e){let{disabled:t,acceptLabel:o,isDragging:r,events:c,files:b,removeFile:u,removeFileLabel:F,openFileDialogButton:m,readOnly:d,style:f,className:s,inputFile:p}=e,y=b.length>0,a=y&&n(fe,{children:n(v,{flexDirection:"column",p:"large",children:b.map(C=>n(Ie,{removeFile:u,removeFileLabel:F,readOnly:d,...C},C.id))})});return x(pe,{...c,style:f,className:s,active:r,disabled:t,readOnly:d,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",deep:2,children:[p,x(v,{cq:{md:{flexDirection:"row",height:300,maxHeight:300}},children:[x(Ce,{gap:"small",flex:"fluid",cq:y?{md:{flex:"initial"}}:void 0,p:"large",bgColor:"deepLight",justifyContent:"center",alignItems:"center",children:[x(v,{gap:"xs",alignItems:"center",children:[n(O,{icon:B,size:16,color:d||t?"ink.disabled":"secondary"}),o&&n(I,{variant:"meta",fontWeight:"bold",children:o})]}),!d&&x(qe,{children:[n(I,{variant:"p",children:"Arraste e solte aqui"}),n(I,{variant:"p",fontWeight:"bold",children:"ou"}),m]})]}),a]}),r&&x(N,{absoluteFill:!0,children:[n(q,{absoluteFill:!0,bgColor:"surface.paper"}),x(v,{gap:"small",justifyContent:"center",alignItems:"center",p:8,children:[n(O,{icon:B,color:"information.dark",size:9}),n(I,{variant:"p",color:"information.dark",children:"Arraste e solte aqui"})]})]})]})}i(be,"UploadCardRegular");function ve(e){let{disabled:t,isDragging:o,events:r,files:c,removeFile:b,removeFileLabel:u,style:F,className:m,readOnly:d,openFileDialogButton:f,inputFile:s}=e;return x(Fe,{...r,style:F,className:m,active:o,disabled:t,readOnly:d,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",p:"large",medias:{xs:{gap:"large"},sm:{columns:"max-content 1fr"}},children:[s,n(v,{flexDirection:"row",justifyContent:"start",alignItems:"start",children:f}),n(xe,{medias:{xs:{gap:"medium",columns:"repeat(auto-fill, minmax(240px, 1fr))"}},children:c.map(p=>n(Ie,{removeFile:b,removeFileLabel:u,readOnly:d,...p},p.id))}),o&&x(N,{children:[n(q,{}),x(v,{flexDirection:"row",gap:"small",justifyContent:"center",alignItems:"center",children:[n(O,{icon:B,color:"information.dark",size:6}),n(I,{variant:"p",children:"Arraste e solte aqui"})]})]})]})}i(ve,"UploadCardCompact");function Ie({removeFile:e,removeFileLabel:t="Remover arquivo",readOnly:o,...r}){let c=r.uploadLoaded?`${r.uploadLoaded} de`:"";return x(D,{medias:{xs:{gap:"micro",columns:"2rem 1fr"}},children:[n(Ne,{...r}),x(v,{children:[x(v,{flexDirection:"row",justifyContent:"between",children:[n(ue,{variant:"meta",children:n("b",{children:r.fileName})}),!o&&n(ee,{onClick:()=>e(r.id),icon:n(O,{icon:ae}),label:`${t} ${r.fileName}`,variant:"linked"})]}),r.uploadPercentage&&n(ge,{style:{backgroundSize:r.uploadPercentage}}),x(v,{flexDirection:"row",justifyContent:"between",children:[n(I,{variant:"meta",children:`${c} ${r.fileSize}`}),r.uploadPercentage&&n(I,{variant:"meta",children:`Enviando ${r.uploadPercentage}`})]})]})]})}i(Ie,"FileItemComponent");function Ne({file:e}){let t=he(e,o=>o.type.startsWith("image"));return t?n(z,{children:n(J,{src:t,cover:!0})}):e.name.endsWith(".pdf")?n(z,{children:n(O,{icon:re})}):n(z,{children:n(O,{icon:ne})})}i(Ne,"Preview");import{useState as $e}from"react";function Pe(e){let[t,o]=$e({files:[],type:null,payload:null});return{files:t,setInitialFiles:i(m=>{var p;let d=M(m,e.maxSize),s={files:H(d),type:"ADD_INITIAL_FILES"};(p=e.onChange)==null||p.call(e,s),o(s)},"setInitialFiles"),removeFile:i(m=>{var f;let d={type:"REMOVE",files:t.files.filter(s=>s.id!==m),payload:t.files.find(s=>s.id===m)};(f=e.onChange)==null||f.call(e,d),o(d)},"removeFile"),removeAll:i(()=>{var d;let m={files:[],type:"REMOVE"};(d=e.onChange)==null||d.call(e,m),o(m)},"removeAll"),addFiles:i(m=>{var y;let d=M(m,e.maxSize),f=H(d),s=[...t.files,...f],p={files:s,type:"ADD",payload:f};e.single&&(s=f,p={files:s,type:"REPLACE",payload:s[0]}),(y=e.onChange)==null||y.call(e,p),o(p)},"addFiles"),updateFileProgress:i((m,d,f,s)=>{var l;let p=t.files.find(g=>g.id===m),y=i(()=>({uploadCompleted:f,uploadError:!f,uploadResponse:s||void 0}),"uploadResponse"),C={...p,...d!==void 0?i(()=>({uploadLoaded:$(d),uploadPercentage:`${Math.min(d/p.file.size*100,100).toFixed(0)}%`}),"progressStatus")():{},...f!==void 0?y():{}},P={files:t.files.map(g=>g.id===C.id?C:g),type:"UPDATE",payload:C};(l=e.onChange)==null||l.call(e,P),o(P)},"updateFileProgress")}}i(Pe,"useFileState");import{jsx as A}from"react/jsx-runtime";var Ke=Me((e,t)=>{let{accept:o,maxSize:r,singleFile:c,uploadConfig:b,onUnsupportedFile:u,customButton:F,style:m,className:d,onChange:f,initialFiles:s,name:p}=e,[y,a]=_e(!1),{active:C,enable:R,disable:P}=te(),{files:l,setInitialFiles:g,addFiles:w,removeFile:L,removeAll:Ue,updateFileProgress:W}=Pe({single:c,maxSize:r,onChange:f}),{getFiles:Se}=ie({accept:o,single:c,onFilesSelect:w,onUnsupportedFile:u}),{isDragging:G,events:Oe}=oe({accept:o,single:c,onDrop:w});We(()=>{let S=Array.isArray(s)?s.length>0:!!s;!y&&!l.files.length&&S&&(a(!0),g(s))},[y,a,s,g,l.files]);let Re=He(async S=>{if(l.files.length){R();let Le=l.files.map(({id:ke,file:Be})=>ye({file:Be,fieldName:S.formDataFileKey||"file",requestConfig:{...b,...S},onProgress:i((ze,Ae,Ee)=>{W(ke,ze,Ae,Ee)},"onProgress")})),Te=await Promise.all(Le);return P(),Te}return[]},[l.files,b,R,W,P]);Ge(t,()=>({submit:Re,addFiles:w,removeFile:L,removeAll:Ue,files:l.files}));let T=Ze(null),E=i(()=>{var S;(S=T==null?void 0:T.current)==null||S.click()},"openFileDialog"),De=F?F({files:l.files,isDragging:G,openFileDialog:E,isSubmitting:C}):A(Q,{onClick:E,variant:"outlined",color:"secondary",size:"small",disabled:e.readOnly||e.disabled||C,isLoading:C,type:"button",children:e.buttonText||"Enviar arquivos"}),Z={...e,...!e.readOnly&&{events:Oe,isDragging:G},files:l.files,style:m,className:d,removeFile:L,openFileDialog:E,openFileDialogButton:De,name:p},_=A(de,{type:"file",isHidden:!0,position:"absolute",name:p,id:p,ref:T,onChange:Se,multiple:!c,accept:Array.isArray(o)?o.join(","):void 0});return e.compact?A(ve,{...Z,inputFile:_}):A(be,{...Z,inputFile:_})});Ke.displayName="UploadCard";import{useCallback as Xe,useState as we}from"react";var Ht=i(()=>{let[e,t]=we([]),[o,r]=we([]);return{onFilesChange:Xe(u=>{if(!u.payload)return;let{payload:F}=u;u.type==="ADD"?r(m=>V(m,F)):u.type==="REMOVE"&&t(m=>V(m,F))},[]),removedFiles:e,addedFiles:o,clear:i(u=>{u==="removedFiles"&&t([]),u==="addedFiles"&&r([])},"clear")}},"useFileControl");export{pe as a,N as b,q as c,D as d,fe as e,ue as f,ge as g,z as h,Fe as i,Ce as j,xe as k,Ke as l,Ht as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b as s,d as t}from"./chunk-
|
|
1
|
+
import{a,b as s,d as t}from"./chunk-LUVBIWXK.esm.js";import{a as o}from"./chunk-EU4FKCQL.esm.js";import{forwardRef as x}from"react";import{jsx as n,jsxs as m}from"react/jsx-runtime";var i=x(({color:f="primary",border:l,size:g="medium",progress:c=0,showProgressLabel:p=!1,...P},u)=>{let e=Number(c),r=Number.isFinite(e)?Math.min(100,Math.max(0,e)):0,B=r-100;return m(t,{color:f,justifyContent:"center",alignItems:"center",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":r,...P,ref:u,children:[n(a,{size:g,border:l,children:n(s,{style:{transform:`translateX(${B}%)`}})}),p&&m(o,{children:[r,"%"]})]})});i.displayName="ProgressBar";export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S}from"./chunk-
|
|
1
|
+
import{a as S}from"./chunk-EU4FKCQL.esm.js";import{a as v}from"./chunk-2Z3UZIWZ.esm.js";import{a as C}from"./chunk-4XKKIEQL.esm.js";import{a as y}from"./chunk-LSLBDF5M.esm.js";import{d as p}from"./chunk-RWLJNXLX.esm.js";import{b as x}from"./chunk-VCMHX5VK.esm.js";import{e as B}from"./chunk-QXV2TDLZ.esm.js";import{b as g}from"./chunk-IK5Z5C2R.esm.js";import{e as m}from"./chunk-3WXII2F3.esm.js";import{a as u}from"./chunk-EJ245MA7.esm.js";import{j as f}from"./chunk-REPFMEFA.esm.js";import{b as a,g as h}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";import{forwardRef as A}from"react";function k(t="2px"){return a(["@media (forced-colors:active){&:focus-visible{outline:2px solid Highlight;outline-offset:",";}}"],t)}n(k,"forcedColorsFocusRestoreCss");var N=5,O=n(({size:t="medium",theme:o})=>{var e;let r=(e=o.component.button.size[t])!=null?e:o.component.button.size.medium;return[g({fontWeight:r.fontWeight,fontSize:r.fontSize,...r.textTransform!==void 0&&{textTransform:r.textTransform}}),x({py:r.py,px:r.px}),p({borderRadius:r.borderRadius})]},"buttonSize"),d=n((t,o)=>o==="neutral"?t.colors.quiet:t.colors[o],"buttonPalette"),I=n((t,o,r)=>d(t,o)[r],"stopOf"),l=n((t,o,r)=>u(t,e=>e.colors.getContrastColor(I(e,o,r))),"contrastInk"),s=n((t,o,r)=>{let e=u(t,i=>{var c;return f(I(i,o,r),(c=i.colors.baseLight)!=null?c:"#FFFFFF",N)});return r==="base"?m(e,"tx",o):e},"readableInk"),H=n((t,o)=>{let r=d(o,t);return a(["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;}"],l(o,t,"base"),r.base,r.base,e=>e.theme.depth("level-two"),l(o,t,"action"),r.action,r.action,e=>e.theme.depth("level-zero"),l(o,t,"action"),r.action,r.active,r.action,l(o,t,"active"),r.active,r.light,o.colors.disabled.fill,o.colors.disabled.fill,o.colors.disabled.color,e=>e.theme.depth("level-zero"))},"ButtonContained"),L=n((t,o)=>{let r=d(o,t);return a(["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;}"],s(o,t,"base"),r.base,l(o,t,"action"),r.action,r.action,l(o,t,"action"),r.action,r.active,e=>e.theme.depth("level-two"),r.action,r.dark,r.light,e=>e.theme.depth("level-two"),o.colors.disabled.color,o.colors.disabled.fill,o.colors.disabled.fill)},"ButtonOutlined"),M=n((t,o)=>{let r=d(o,t);return a(["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;}"],s(o,t,"base"),s(o,t,"action"),s(o,t,"base"),s(o,t,"active"),o.colors.disabled.color)},"ButtonLinked"),_=n((t,o)=>a(["background:transparent;border-color:transparent;box-shadow:none;color:",";&:hover{background:",";color:",";text-decoration:none;}&:focus-visible{background:",";outline:2px solid ",";outline-offset:1px;}&:active{background:",";color:",";}&:disabled{background:transparent;color:",";cursor:default;}"],s(o,t,"base"),o.colors.wash.hover,s(o,t,"action"),o.colors.wash.hover,s(o,t,"base"),o.colors.wash.pressed,s(o,t,"active"),o.colors.disabled.color),"ButtonGhost"),j=n(({color:t,variant:o,theme:r})=>{let e;switch(o){case"outlined":e=L(t,r);break;case"linked":e=M(t,r);break;case"ghost":e=_(t,r);break;default:e=H(t,r)}return a(["&&{","}"],e)},"buttonVariant"),V=n(({fullWidth:t})=>({width:t?"100%":"fit-content"}),"isFullWidth"),q=a(["outline:0;"," cursor:pointer;transition:",";"," "," "," "," ",""],k("1px"),({theme:t})=>t.animation.transitions.short,p({borderWidth:"regular",borderStyle:"solid"}),B({gap:"xs",flexDirection:"row",alignItems:"center",justifyContent:"center"}),V,O,j),T=h(y).withConfig({componentId:"sc-12djmz6-0"})([""," ","{width:1em;height:1em;}"],q,C);import{jsx as b}from"react/jsx-runtime";var w=A(({children:t,text:o,isLoading:r,icon:e=null,iconPosition:i="left",color:c="primary",size:F="medium",variant:P="contained",fullWidth:R=!1,...z},W)=>b(T,{...z,color:c,size:F,variant:P,fullWidth:R,as:"button",ref:W,children:b(v,{loading:r,...i==="right"?{closer:e}:{opener:e},children:b(S,{fontWeight:"bold",lineHeight:"tight",fontFamily:"main",children:t||o})})}));w.displayName="Button";export{O as a,d as b,j as c,q as d,T as e,w as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as m}from"./chunk-
|
|
1
|
+
import{d as m}from"./chunk-Q3FUXFD5.esm.js";import{a as d}from"./chunk-JWNC52FT.esm.js";import{c as p}from"./chunk-AULAOFBW.esm.js";import{b as i}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var s=t(({theme:e,$size:o})=>e.component.select.size[o],"sizeTokens");function u(e){let o=`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M2.5 4.5L6 8l3.5-3.5" stroke="${e}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`;return`url("data:image/svg+xml,${encodeURIComponent(o)}")`}t(u,"chevron");function x({$variant:e,theme:o}){return e==="error"?{accent:o.colors.danger.base,text:o.colors.danger.dark,border:o.colors.danger.base}:e==="success"?{accent:o.colors.success.base,text:o.colors.success.dark,border:o.colors.success.base}:{accent:o.colors.primary.base,text:o.colors.primary.dark,border:o.colors.edge.border}}t(x,"variantColors");function k(e){let{theme:o}=e,{accent:r,text:l,border:n}=x(e);return i(["color:",";border:1px solid ",";box-shadow:",";&:hover,&:focus{box-shadow:none;border-color:",";}&:focus-visible{outline:2px solid ",";outline-offset:2px;}"],l,n,o.depth("level-one-minus"),n,r)}t(k,"variantStyle");function $({theme:e}){return i(["&:disabled{cursor:default;color:",";border-color:transparent;background-color:",";box-shadow:none;}"],e.colors.disabled.color,e.colors.disabled.fill)}t($,"disabledStyle");var a=p("select").withConfig({componentId:"apollion-select"})`
|
|
2
2
|
appearance: none;
|
|
3
3
|
-webkit-appearance: none;
|
|
4
4
|
-moz-appearance: none;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as t}from"./chunk-PCQQ762I.esm.js";import{g as r}from"./chunk-AXUWC2WH.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";var d=r.thead.withConfig({componentId:"sc-eqsqas-0"})(["width:100%;background:",";position:sticky;top:0;z-index:1;"],({theme:a})=>a.colors.surface.paper);import{jsx as l}from"react/jsx-runtime";var e=o(a=>l(d,{...a,role:t("rowgroup"),children:a.children}),"TableHeaderComponent");e.displayName="TableHeader";export{d as a,e as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-HJVFE7FQ.esm.js";import{a as b}from"./chunk-URGL4O5W.esm.js";import{a as c,c as r}from"./chunk-PCQQ762I.esm.js";import{a as C}from"./chunk-2Z3UZIWZ.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import s from"react";var m=n(a).withConfig({componentId:"sc-g7895e-0"})([""]);import{jsx as t}from"react/jsx-runtime";var o=l(p=>{let{getSelected:x}=s.useContext(c),h=r("cell"),d=l(e=>[...e.parentNode.children].indexOf(e),"getNodeIndex"),T=l(e=>{let k=d(e.target.closest("tr"));x(k,e.target.checked)},"handleChecked");return t(m,{role:h,children:t(C,{children:t(b,{label:p.children,onChange:T})})})},"TableCheckboxCellComponent");o.displayName="TableCheckboxCell";export{m as a,o as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-43YSWDK6.esm.js";import{h as f}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-43YSWDK6.esm.js";import{h as f}from"./chunk-Q3FUXFD5.esm.js";import{q as c}from"./chunk-6G22RNUO.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";import{useEffect as h,useMemo as I,useState as v}from"react";import{jsx as g}from"react/jsx-runtime";function i(M){let{mask:u,value:e,onChange:t,...d}=M,a=I(()=>c(u),[u]),[C,s]=v(()=>e?a(e):"");h(()=>{s(n=>{let r=e?a(e):"";return r!==n?r:n})},[e,a]);let m=I(()=>k(t!=null?t:(()=>{}),250),[t]);return g(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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as g}from"./chunk-
|
|
1
|
+
import{e as g}from"./chunk-7MX2FUN4.esm.js";import{a as k}from"./chunk-EU4FKCQL.esm.js";import{a}from"./chunk-LSLBDF5M.esm.js";import{a as y}from"./chunk-EJ245MA7.esm.js";import{k as d}from"./chunk-REPFMEFA.esm.js";import{g as x}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as F,useId as L,useMemo as P,useRef as K}from"react";var B=x(a).withConfig({componentId:"sc-1hkckjr-0"})(["border-bottom:1px solid ",";& > ","{transform:translateY(1px);}> ","{overflow-x:scroll;overflow-y:hidden;&::-webkit-scrollbar{display:none;}}","{> ","{overflow-x:visible;overflow-y:visible;}}"],({theme:t})=>t.colors.edge.hairline,a,a,({theme:t})=>t.breakpoints.up("sm"),a),S=x(g).attrs(t=>{var e,i;return{borderRadius:(e=t.borderRadius)!=null?e:"straight",borderWidth:(i=t.borderWidth)!=null?i:"none"}}).withConfig({componentId:"sc-1hkckjr-1"})(["flex-shrink:0;position:relative;z-index:1;touch-action:manipulation;-webkit-tap-highlight-color:transparent;&::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:1px;background:",";transition:",";}&&&,&&&:focus,&&&:active,&&&:hover{box-shadow:none;text-decoration:none;}&&&:focus-visible{outline:2px solid ",";outline-offset:-2px;}"],({isActive:t,theme:e,color:i})=>t?y(e,b=>d(b.colors[i],"base")):"transparent",({theme:t})=>t.animation.transitions.short,({theme:t,color:e="primary"})=>y(t,i=>d(i.colors[e],"base")));import{jsx as f,jsxs as j}from"react/jsx-runtime";function $({isActive:t,tabTitle:e,color:i="primary",buttonProps:b}){return f(S,{as:"button",variant:"linked",isActive:t,color:i,...b,children:f(k,{fontWeight:"bold",lineHeight:"tight",children:e})})}l($,"TabButton");var W=F(({selectedIndex:t=0,onChange:e,tabs:i,tabHeaderProps:b,tabContentProps:H,...D},R)=>{var I;let T=L(),m=P(()=>i.map((o,n)=>({...o,id:`${T}-${n}`})),[i,T]),h=K(null),A=l(o=>t===o,"isCurrentIndex"),w=l(o=>`tab-${o}`,"tabId"),v=l(o=>`tabpanel-${o}`,"panelId"),s=(I=m[t])!=null?I:m[0],E=l(o=>{var r,p;e==null||e(o);let n=(r=h.current)==null?void 0:r.querySelectorAll('[role="tab"]');(p=n==null?void 0:n[o])==null||p.focus()},"selectTab");return j(a,{...D,ref:R,children:[f(B,{...b,children:f(a,{flexDirection:"row",width:"100%",gap:"medium",pageShell:!0,position:"relative",alignItems:"end",role:"tablist",onKeyDown:l(o=>{let n=m.length-1,r=null;o.key==="ArrowRight"?r=t>=n?0:t+1:o.key==="ArrowLeft"?r=t<=0?n:t-1:o.key==="Home"?r=0:o.key==="End"&&(r=n),r!==null&&(o.preventDefault(),E(r))},"handleKeyDown"),ref:h,children:m.map(({id:o,buttonProps:n,handleClick:r,...p},c)=>{let u=A(c);return f($,{isActive:u,...p,buttonProps:{...n,id:w(o),role:"tab","aria-selected":u,"aria-controls":v(o),tabIndex:u?0:-1,onClick:l(M=>{c!==t&&(r==null||r(c,M),e==null||e(c))},"onClick")}},o)})})}),f(a,{flex:"fluid",pageShell:!0,width:"100%",role:"tabpanel",id:s?v(s.id):void 0,"aria-labelledby":s?w(s.id):void 0,...H,children:s==null?void 0:s.content})]})});W.displayName="Tabs";export{B as a,S as b,$ as c,W as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as N}from"./chunk-4SDDAQ6N.esm.js";import{a as M}from"./chunk-IN2WB2ZK.esm.js";import{a as P,b as E}from"./chunk-FOWO4QTS.esm.js";import{a as s,d as a}from"./chunk-RWLJNXLX.esm.js";import{a as x,c as A}from"./chunk-XR763B4T.esm.js";import{a as K,b as S}from"./chunk-BNB3KNKE.esm.js";import{a as h,b as w}from"./chunk-VCMHX5VK.esm.js";import{a as m,b as p}from"./chunk-AAZFRX52.esm.js";import{a as l,b as y}from"./chunk-QYL6LECA.esm.js";import{a as c,b as f}from"./chunk-C7U4X56I.esm.js";import{a as F,e as g}from"./chunk-QXV2TDLZ.esm.js";import{a as d,b as u}from"./chunk-IK5Z5C2R.esm.js";import{a as b,b as C}from"./chunk-QEB4VTKV.esm.js";import{a as i,b as n}from"./chunk-ODL5JUYM.esm.js";import{g as v}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var e=null,I=t(()=>(e===null&&(e=new Set([...l,...i,...h,...s,...m,...c,...d,...F,...K,...x,...P,...b,"variant","active"])),e),"getCustomPropNames"),D=t(o=>!I().has(o)&&N(o),"shouldForwardProp"),T=new Set(["width","height"]),W=t(o=>T.has(o)||D(o),"shouldForwardDimensionAttrs"),_=t((o=>v(o).withConfig({shouldForwardProp:D})),"styled"),r=t(o=>_(o).withConfig({componentId:`apollion-${o}`})(y({position:"relative"}),g,w,a,n,u,p,f,S,M,A,E,C),"buildElement"),X={a:r("a"),div:r("div"),span:r("span"),input:r("input"),button:r("button")};export{D as a,W as b,_ as c,X as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f}from"./chunk-
|
|
1
|
+
import{c as f}from"./chunk-EEPJZ62X.esm.js";import{a as s}from"./chunk-EU4FKCQL.esm.js";import{a as p}from"./chunk-TQMP7PZI.esm.js";import{b as d,g as n}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";var i=n.input.withConfig({componentId:"sc-truao3-0"})(["position:absolute;left:0;top:0;margin:0;z-index:1;opacity:0;"]);i.displayName="input";var r=n(p).attrs(o=>({borderRadius:"md",borderWidth:"regular",borderStyle:"solid",borderColor:"primary",deep:-1,...o})).withConfig({componentId:"sc-truao3-1"})(["--size:20px;--checked-size:calc(var(--size) * 0.5);width:var(--size);height:var(--size);flex-shrink:0;&::before{content:'';border-radius:50%;display:inline-block;width:var(--checked-size);height:var(--checked-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:0;}"]);function S({variant:o,$color:t,theme:a}){let e=f(a,o,t);return d(["color:",";& > ","{border:2px solid ",";&::before{background:",";}}&:hover > ","{border-color:",";}& > ",":focus-visible ~ ","{outline:2px solid ",";outline-offset:2px;}& > ",":checked ~ ","{border-color:",";box-shadow:",";}"],e.dark,r,e.dark,e.base,r,e.action,i,r,e.base,i,r,e.base,a.depth("level-zero"))}l(S,"inputVariantStyle");function C(o){return d(["color:",";& > ",":disabled{cursor:default;& ~ ","{background-color:",";border-color:",";&::before{background:",";}}}"],o.colors.disabled.color,i,r,o.colors.disabled.fill,o.colors.disabled.fill,o.colors.disabled.color)}l(C,"getDisabledStyle");var m=n(s).withConfig({componentId:"sc-truao3-2"})(["cursor:pointer;position:relative;display:inline-flex;flex-direction:row;align-items:center;gap:",";margin:",";"," "," & ",":checked ~ ","::before{opacity:1;}"],({theme:o})=>o.spacing("micro"),({theme:o})=>o.spacing(0,"xs","xs",0),S,({theme:o,disabled:t})=>t&&C(o),i,r);import{jsx as c,jsxs as k}from"react/jsx-runtime";var b=l(({id:o,disabled:t,label:a=null,labelProps:e,variant:u="default",color:y,area:x,alignSelf:g,justifySelf:h,...R})=>k(m,{as:"label",htmlFor:o,variant:u,$color:y,disabled:t,area:x,alignSelf:g,justifySelf:h,children:[c(i,{...R,type:"radio",id:o,disabled:t}),c(r,{}),typeof a=="string"?c(s,{fontSize:"small",color:"ink.primary",...e,children:a}):a]}),"RadioComponent");b.displayName="Radio";export{i as a,r as b,m as c,b as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as a}from"./chunk-3WXII2F3.esm.js";import{a as i}from"./chunk-EJ245MA7.esm.js";import{j as l}from"./chunk-REPFMEFA.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var d=5,f=r((e,t)=>t==="neutral"?e.colors.quiet:e.colors[t],"navPalette"),v=r((e,t)=>a(i(e,o=>{var n;return l(f(o,t).base,(n=o.colors.baseLight)!=null?n:"#FFFFFF",d)}),"tx",t),"navTintInk"),I=r(e=>a(e.colors.ink.secondary,"ink","secondary"),"navRestInk"),N=r((e,t)=>{var o;return(o=e.id)!=null?o:typeof e.label=="string"?e.label:String(t)},"navItemKey"),b=r(({href:e,to:t,as:o,onClick:n,current:p},c)=>{var s;let m=e!==void 0||t!==void 0;return{as:m?(s=o!=null?o:c)!=null?s:"a":"button",props:{...m?{}:{type:"button"},...e!==void 0&&{href:e},...t!==void 0&&{to:t},...n&&{onClick:n},...p&&{"aria-current":"page"}}}},"navItemElement");export{v as a,I as b,N as c,b as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as I}from"./chunk-JLQDS5TS.esm.js";import{a as l}from"./chunk-ZJT2WQTR.esm.js";import{a as s}from"./chunk-7JYI2AQK.esm.js";import{a as g}from"./chunk-JWNC52FT.esm.js";import{b as f}from"./chunk-
|
|
1
|
+
import{b as I}from"./chunk-JLQDS5TS.esm.js";import{a as l}from"./chunk-ZJT2WQTR.esm.js";import{a as s}from"./chunk-7JYI2AQK.esm.js";import{a as g}from"./chunk-JWNC52FT.esm.js";import{b as f}from"./chunk-AULAOFBW.esm.js";import{b as c}from"./chunk-6G22RNUO.esm.js";import{g as i}from"./chunk-AXUWC2WH.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var C=r(({cover:e,height:t,width:o})=>e&&{width:o!=null?o:"100%",height:t!=null?t:"100%",objectFit:"cover"},"imageCover"),d=r(e=>e?c(e):"fit-content","getSizeValue"),p=i("img").withConfig({shouldForwardProp:f}).withConfig({componentId:"sc-swtbvc-0"})(["display:block;width:",";height:",";",";&[src='']{visibility:hidden;position:absolute;}",""],({full:e,width:t})=>e?"100%":d(t),({height:e})=>d(e),C,g({}));import L,{forwardRef as h,useState as F}from"react";import{jsx as n,jsxs as z}from"react/jsx-runtime";var u=h(({src:e,...t},o)=>n(p,{src:e,ref:o,...t})),x=r(({width:e=60,height:t=60})=>n(l,{height:t,width:e,children:n(I,{width:e,height:t})}),"ImageDefaultContentLoader");function R(e){return new Promise((t,o)=>{let a=new Image;a.onload=t,a.onerror=o,a.src=e})}r(R,"loadImage");var y=r(({src:e,fallback:t,threshold:o,...a})=>{let[m,S]=F(),[w]=s({threshold:o},()=>{R(e).then(()=>S(e)).catch(()=>console.warn(`[Failed]: error on loading image: ${e}`))}),b=typeof m=="undefined";return z(L.Fragment,{children:[b?t||n(x,{...a}):null,n(u,{src:m||"",ref:w,...a})]})},"ImageLazy");y.displayName="ImageLazy";export{p as a,u as b,y as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as C}from"./chunk-URGL4O5W.esm.js";import{c as b}from"./chunk-LB4UJSH7.esm.js";import{a}from"./chunk-PCQQ762I.esm.js";import{a as t}from"./chunk-LSLBDF5M.esm.js";import{g as r}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import h from"react";var c=r(b).withConfig({componentId:"sc-a4obcw-0"})([""]);import{jsx as o}from"react/jsx-runtime";var e=l(n=>{let{getAllSelected:m}=h.useContext(a);return o(c,{bgColor:"baseLight",children:o(t,{justifyContent:"center",children:o(C,{label:n.children,onChange:x=>m(x.target.checked)})})})},"TableHeaderCheckboxCellComponent");e.displayName="TableHeaderCheckboxCell";export{c as a,e as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as z}from"./chunk-
|
|
1
|
+
import{a as z}from"./chunk-CTNDAXMO.esm.js";import{c as v}from"./chunk-ZZ5EX7HG.esm.js";import{f as C}from"./chunk-7MX2FUN4.esm.js";import{a as w}from"./chunk-LSLBDF5M.esm.js";import{f as T,m as E}from"./chunk-6G22RNUO.esm.js";import{g as c}from"./chunk-AXUWC2WH.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";var g=c(w).attrs({as:"form",width:"100%"}).withConfig({componentId:"sc-1vzg0wj-0"})([""]),j=c(v).attrs({as:"form",width:"100%"}).withConfig({componentId:"sc-1vzg0wj-1"})([""]);import{z as d,ZodError as P}from"zod";function B(e){var o;return(o=e==null?void 0:e.value)!=null?o:e}s(B,"normalizeValues");function Z(e,o,i){let r=E(B,e);i(r,o)}s(Z,"prepareSubmit");function k(e){let o=Object.keys(e).reduce((i,r)=>{var t;let l=(t=e[r].validation)!=null?t:d.unknown().optional();return{...i,[r]:l}},{});return d.object(o)}s(k,"getValidationSchema");function O(e,o){return{...Object.keys(e).reduce((r,l)=>{var p;let t=(p=e[l].inputProps)==null?void 0:p.type;return r[l]=t==="checkbox"||t==="radio"?!1:"",r},{}),...o}}s(O,"buildDefaultValues");var ue=s(e=>e,"newField");import{forwardRef as Q,useEffect as W,useImperativeHandle as X,useState as Y}from"react";import U from"fast-deep-equal";var y=U;import{Controller as L,useFieldArray as J,useForm as x,useFormContext as M}from"react-hook-form";import{zodResolver as b}from"@hookform/resolvers/zod";import{jsx as K,jsxs as re}from"react/jsx-runtime";import{createElement as ee}from"react";var _=s((e,o)=>{let{initialValues:i,children:r,submitLabel:l,fields:t,handleSubmit:p,conditionalFields:R,mode:u,medias:S,onError:f,...D}=e,q=k(t),m=x({defaultValues:O(t,i),resolver:b(q),mode:u!=null?u:"onSubmit"});X(o,()=>m);let F=m.watch(),a=m.formState.errors,[V,G]=Y(()=>a);W(()=>{f&&!y(V,a)&&(T(a)||f(a),G(a))},[V,a,f]);let N=S?j:g,A=m.handleSubmit(n=>Z(n,m,p)),H=s(()=>typeof r=="undefined"?K(C,{disabled:m.formState.isSubmitting,type:"submit",text:l||"Enviar",color:"primary",area:"button"}):typeof r=="function"?r(F):r,"renderChildren");return re(N,{medias:S,...D,onSubmit:A,children:[Object.keys(t).map(n=>{let h=ee(z,{...t[n],key:n,name:n,area:n,value:F[n],errors:a[n],setFieldValue:m.setValue}),I=R&&R[n];return I?I(F)?h:null:h}),H()]})},"FormInputComponent"),$=Q(_);export{g as a,j as b,B as c,Z as d,k as e,O as f,ue as g,$ as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as S,c as H,d as k,e as O,f as D,h as K,i as A,j as C,k as z,m as _,n as j,o as B}from"./chunk-3437GMP7.esm.js";import{b as c,c as N,d as U,e as Z,f as q}from"./chunk-XKACWIWC.esm.js";import{h as L}from"./chunk-
|
|
1
|
+
import{b as S,c as H,d as k,e as O,f as D,h as K,i as A,j as C,k as z,m as _,n as j,o as B}from"./chunk-3437GMP7.esm.js";import{b as c,c as N,d as U,e as Z,f as q}from"./chunk-XKACWIWC.esm.js";import{h as L}from"./chunk-Q3FUXFD5.esm.js";import{b as R}from"./chunk-SRBIATLE.esm.js";import{n as x}from"./chunk-TVJXEJLN.esm.js";import{g as T}from"./chunk-L7A7RA56.esm.js";import{a as F}from"./chunk-64VNULOI.esm.js";import{f as P}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import{forwardRef as ae,useMemo as m,useState as J}from"react";function G(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(G,"buildSyntheticEvent");import{Fragment as ue,jsx as a,jsxs as de}from"react/jsx-runtime";var se="yyyy-MM-dd";function pe(e){if(!e)return;let n=U(e);return N(n)?n:void 0}t(pe,"toDate");function le(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(le,"resolveDisabled");var Q=ae(({value:e,onChange:n,onValueChange:i,locale:o=Z,minDate:s,maxDate:p,disabledDates:h,displayFormat:y="dd/MM/yyyy",name:g,placeholder:W,disabled:M,readOnly:I,...X},u)=>{let[f,v]=J(!1),Y=P(),l=m(()=>pe(e),[e]),$=m(()=>l?c(l,y,{locale:o}):"",[l,y,o]),V=m(()=>le(h,s,p),[h,s,p]),[E,ee]=J(null),b=B(E,f),{floatingStyles:te,context:d,refs:ne}=z({open:f,onOpenChange:v,strategy:b.strategy,elements:{reference:E},placement:"bottom-start",middleware:[D(4),H(),K({padding:8})],whileElementsMounted:S}),{getReferenceProps:oe,getFloatingProps:re}=_([A(d,{enabled:!M&&!I}),C(d,{outsidePress:!0,escapeKey:!0}),j(d,{role:"dialog"})]),ie=t(r=>{if(!r)return;let w=c(r,se);i==null||i(w),n==null||n(G(g,w)),v(!1)},"handleSelect");return de(ue,{children:[a(L,{...X,ref:r=>{typeof u=="function"?u(r):u&&(u.current=r),ee(r)},type:"text",role:"combobox",disabled:M,readOnly:I,name:g,placeholder:W,value:$,onChange:t(r=>{},"handleInputChange"),inputMode:"none",autoComplete:"off",icon:a(R,{icon:x}),iconPosition:"right",...oe({onKeyDown:t(r=>{r.key.length===1&&r.key!==" "&&r.preventDefault()},"handleKeyDown")})}),f&&a(O,{root:b.root,children:a(k,{context:d,modal:!1,initialFocus:-1,children:a("div",{ref:ne.setFloating,style:{...te,zIndex:T(Y).dropdown},...re(),children:a(F,{p:"xs",borderRadius:"xs",deep:3,children:a(q,{mode:"single",selected:l,onSelect:ie,locale:o,defaultMonth:l,disabled:V,captionLayout:"dropdown",startMonth:s!=null?s:new Date(1970,0,1),endMonth:p!=null?p:new Date(2100,11,31)})})})})})]})});Q.displayName="InputDate";export{Q as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as g}from"./chunk-EU4FKCQL.esm.js";import{a as m}from"./chunk-LSLBDF5M.esm.js";import{a as A}from"./chunk-EJ245MA7.esm.js";import{j as T}from"./chunk-REPFMEFA.esm.js";import{i as j}from"./chunk-6G22RNUO.esm.js";import{b as B,g as d}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import{useId as X}from"react";var U=i(({theme:t,disabled:h,variant:r})=>{let e=t.colors.ink.primary,f=t.colors.ink.secondary;if(r!=="default"){let S=r==="success"?"success":"danger",a=i(c=>A(t,n=>{var s,y;return T(T((y=(s=n.colors[S])==null?void 0:s[c])!=null?y:n.colors.ink.primary,n.colors.surface.canvas),n.colors.surface.paper)}),"ink");e=a("dark"),f=a("base")}return h&&(e=t.colors.ink.disabled),{"--color-label":e,"--color-hint":f}},"getFieldColor"),z=d(m).withConfig({componentId:"sc-1iiu1tt-0"})(["width:100%;justify-content:center;",";",""],U,({$fill:t})=>t?B(["flex:1 1 auto;"]):null),E=d(g).withConfig({componentId:"sc-1iiu1tt-1"})(["color:var(--color-label);"]),R=d(g).withConfig({componentId:"sc-1iiu1tt-2"})(["color:var(--color-label);"]),V=d(g).withConfig({componentId:"sc-1iiu1tt-3"})(["color:var(--color-hint);min-height:","em;"],({theme:t})=>t.font.lineHeight.tight);import{jsx as b,jsxs as D}from"react/jsx-runtime";var $=i(({name:t,value:h,label:r,inputProps:e,hintText:f,variant:S,setFieldValue:a,readOnly:c,readOnlyText:n="apenas leitura",hintErrorText:s="Something went wrong",hintSuccessText:y="Everything is alright",...l})=>{var O;let I=l.component,M=X(),w=!!l.errors||l.error,k=!!l.success,x=(O=e==null?void 0:e.readOnly)!=null?O:c,N=i(o=>{if(!c&&(e!=null&&e.onChange&&e.onChange(o),a)){let F=o;j(o)&&(F=o.target.type==="checkbox"||o.target.type==="radio"?o.target.checked:o.target.value),a(t,F)}},"onChange"),W=i(()=>{if(c)return;if(typeof(e==null?void 0:e.reset)=="function"){e.reset();return}let o=e==null?void 0:e.type;a&&a(t,o==="checkbox"||o==="radio"?!1:"")},"resetField"),q=typeof l.errors=="string"?l.errors:s,v=w&&q||k&&y||f,H=S||w&&"error"||k&&"success"||"default",G=!r||l.hideLabel,J=x||l.optionalText,K=x?n:l.optionalText,L=e&&e.disabled,Q=(e==null?void 0:e.fill)===!0,C=I.ariaLabelledByField===!0&&!!r&&!(e!=null&&e["aria-label"])&&!(e!=null&&e["aria-labelledby"])&&(e==null?void 0:e.label)==null?`${t!=null?t:M}-label`:void 0;return D(z,{area:l.area,alignSelf:l.alignSelf,justifySelf:l.justifySelf,variant:H,disabled:L,$fill:Q,gap:"micro",...l.fieldProps,children:[D(m,{flexDirection:"row",justifyContent:"between",isHidden:G,children:[b(E,{as:"label",id:C,htmlFor:t,fontSize:"xs",fontWeight:"bold",lineHeight:"regular",children:r}),J&&b(R,{fontStyle:"italic",lineHeight:"tight",fontSize:"micro",children:K})]}),b(I,{...e,...C&&{"aria-labelledby":C},id:t,name:t,value:h,variant:H,readOnly:x,onChange:N,reset:W}),b(V,{lineHeight:"tight",fontSize:"micro",isHidden:L||!v,children:v})]})},"FieldComponent");$.displayName="Field";export{$ as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as B}from"./chunk-2BWCWW2Q.esm.js";import{b as qe}from"./chunk-IQQH6HMG.esm.js";import{d as xe,e as De}from"./chunk-LCCVFIPZ.esm.js";import{a as Me,b as ke}from"./chunk-TG5BCBO4.esm.js";import{b as be,c as we,e as V}from"./chunk-WB5XXCKL.esm.js";import{b as Ae}from"./chunk-JOKVE3IX.esm.js";import{a as Re}from"./chunk-PFLBU7HG.esm.js";import{a as Ce,b as Le,d as Oe,e as Ye,f as _e,g as ze,h as Fe,i as X,m as Ge,p as Ve,q as Be}from"./chunk-TLIKQFOT.esm.js";import{a as ve}from"./chunk-XUZQE326.esm.js";import{a as Te}from"./chunk-3DUB5C4Z.esm.js";import{b as Pe,c as he}from"./chunk-KT6QQ3UJ.esm.js";import{a as Ne,b as Ie}from"./chunk-SEPVF2TL.esm.js";import{a as Se}from"./chunk-LDOM2UUN.esm.js";import{a as Ue,b as ge,c as Ze,d as Qe,e as Xe,f as $e}from"./chunk-L7A7RA56.esm.js";import{b as He}from"./chunk-HVFI7FHR.esm.js";import{a as Ee}from"./chunk-4SDDAQ6N.esm.js";import{h as pe,k as ye}from"./chunk-R2QEO3KP.esm.js";import{b as ae,c as fe,d as ue}from"./chunk-EJ245MA7.esm.js";import{c as de}from"./chunk-FNYS25ZX.esm.js";import{a as G,b as ie,g as ce,h as se}from"./chunk-MYU2IAR3.esm.js";import{d as me,e as le}from"./chunk-AXUWC2WH.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";function U(n={}){let{colors:r,breakpoints:o,containerSizes:i,layout:a,zIndex:M,spacing:f,border:m,font:P,dimension:k,textSize:D,typeWeight:h,component:R,motion:E}=Ne({colors:G,spacing:Me,font:xe,border:Te,breakpoints:Pe,containerSizes:Ue,layout:ge,zIndex:Xe,motion:pe,dimension:Ae,textSize:V,typeWeight:"regular",component:{}},n),u=ie(r),l=ke(f,k),C=De(P,{textSize:D,typeWeight:h,alias:f.alias}),L=qe({colors:u,spacing:l});return{font:C,border:m,animation:ve,colors:u,breakpoints:he(o),containerSizes:Ze(i),layout:Qe(a),zIndex:$e(M),motion:ye(E),spacing:l,depth:de(u),deep:Se(u),semantic:L,foundation:Re(L),component:Ie(R)}}c(U,"createTheme");import{createContext as rt,lazy as it,Suspense as ct,useContext as st,useReducer as dt,useRef as at}from"react";import{nanoid as je}from"nanoid";import{Fragment as mt,jsx as $,jsxs as lt}from"react/jsx-runtime";var ft=it(()=>import("./Notification.group-4D3CNTGF.esm.js")),Je=rt({});function ut(n,{type:r,payload:o}){switch(r){case"ADD":return[o,...n];case"REMOVE":return n.filter(i=>i.id!==o.id);default:return n}}c(ut,"NotificationReducer");var Ke=c(n=>{let[r,o]=dt(ut,[]),i=at(!1),a=c(f=>{o({type:"REMOVE",payload:{id:f}})},"removeNotification"),M=c(f=>{if(o({type:"ADD",payload:{id:je(),...f}}),r.length>=3){let[m]=r.slice(-1);setTimeout(()=>a(m.id),0)}},"showNotification");return r.length>0&&(i.current=!0),$(Je.Provider,{value:{notifications:r,removeNotification:a,showNotification:M},children:lt(mt,{children:[n.children,i.current&&$(ct,{fallback:null,children:$(ft,{})})]})})},"NotificationsProvider");function Gt(){let n=st(Je);if(n===void 0)throw new Error("cant use useNotification hook outside of <NotificationsProvider />");return n}c(Gt,"useNotification");import t from"react";import{jsx as x}from"react/jsx-runtime";function pt(n,r){return typeof r=="string"?Ee(n):!0}c(pt,"shouldForwardProp");var yt=typeof window=="undefined"?t.useEffect:t.useLayoutEffect,g=t.createContext(null);function to(){let n=t.useContext(g);if(n===null)throw new Error("useApollionTheme deve ser usado dentro de um <ApollionProvider>.");return n}c(to,"useApollionTheme");function oo(){return t.useContext(g)}c(oo,"useApollionThemeOptional");var no=c(({children:n,theme:r,lightTheme:o,darkTheme:i,colors:a,useSystemPreference:M=!1,themeMode:f,onThemeModeChange:m,mode:P,defaultMode:k,initialMode:D,onModeChange:h,persist:R=!1,storageKey:E=Ce,syncDocument:u=!0,attribute:l=Le,a11y:C,defaultA11y:L=null,onA11yChange:O,surface:Y="positive",dimension:N,textSize:I,typeWeight:S})=>{var ne,re;let s=t.useMemo(()=>Ge(R),[R]),_=Ye(E),z=P!==void 0||f!==void 0,We=k!=null?k:M?"system":"light",[et,q]=t.useState(We),A=(ne=P!=null?P:f)!=null?ne:et,[Z,H]=t.useState(()=>D!==void 0?D==="dark":A==="system"&&Fe()),d=X(A,Z),b=C!==void 0,[tt,j]=t.useState(L),v=b?C:tt;yt(()=>{if(s){if(!z){let e=s.read(E);_e(e)&&q(e)}if(!b){let e=s.read(_);if(e===null||e==="")return;j(ze(e)?e:null)}}},[s,E,_,z,b]),t.useEffect(()=>{var w;if(A!=="system")return;let e=typeof window!="undefined"?(w=window.matchMedia)==null?void 0:w.call(window,Oe):void 0;if(!e)return;H(e.matches);let y=c(nt=>H(nt.matches),"handleChange");return e.addEventListener("change",y),()=>e.removeEventListener("change",y)},[A]),t.useEffect(()=>{if(!(!u||typeof document=="undefined"))return Ve(document.documentElement,{mode:d,a11y:v},{attribute:l}),()=>Be(document.documentElement,{attribute:l})},[u,d,v,l]);let F=t.useCallback(e=>{z||q(e),s==null||s.write(E,e),h==null||h(e),m==null||m(X(e,Z))},[z,s,E,h,m,Z]),J=t.useCallback(e=>{b||j(e),s==null||s.write(_,e),O==null||O(e)},[b,s,_,O]),K=t.useCallback(e=>F(e!=null?e:d==="dark"?"light":"dark"),[F,d]),W=t.useMemo(()=>{if(r||o||i)return null;let e=a!=null?a:G,y=v?se[v](e):e,w={colors:y,...N!==void 0&&{dimension:N},...S!==void 0&&{typeWeight:S},...I!==void 0&&{textSize:I}};return{light:U(w),dark:U({...w,colors:ce(y)})}},[r,o,i,a,N,S,I,v]),p=t.useMemo(()=>o&&i?{light:o,dark:i}:o||i||r?null:W,[o,i,r,W]),Q=t.useMemo(()=>{var e,y;return p?d==="dark"?p.dark:p.light:(y=(e=o!=null?o:i)!=null?e:r)!=null?y:U({...N!==void 0&&{dimension:N},...S!==void 0&&{typeWeight:S},...I!==void 0&&{textSize:I}})},[p,d,o,i,r,N,S,I]),ee=t.useContext(g)!==null,te=(re=Q.font.textSize)!=null?re:V;t.useEffect(()=>{if(!(!u||ee||typeof document=="undefined"))return be(document.documentElement,te),()=>we(document.documentElement)},[u,ee,te]);let T=t.useMemo(()=>{if(!p)return ue(B(Q,Y));let e={light:B(p.light,Y,"light"),dark:B(p.dark,Y,"dark")};return ae(e)},[p,Q,Y]),oe=t.useMemo(()=>T.modes?fe(d==="dark"?T.modes.dark:T.modes.light,T.modes):T,[T,d]),ot=t.useMemo(()=>({theme:oe,mode:A,resolvedMode:d,setMode:F,a11y:v,setA11y:J,attribute:l,themeMode:d,toggleTheme:K}),[oe,A,d,F,v,J,l,K]);return x(me,{shouldForwardProp:pt,children:x(g.Provider,{value:ot,children:x(le,{theme:T,children:x(He,{children:x(Ke,{children:n})})})})})},"ApollionProvider");export{U as a,je as b,Ke as c,Gt as d,to as e,oo as f,no as g};
|