@apollion-dsi/core 7.3.0 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/lib/chunks/Dropdown.floating-BZADQ5AX.esm.js +1 -0
- package/lib/chunks/Notification.group-BC3U4UX6.esm.js +1 -0
- package/lib/chunks/Tooltip.floating-LDFMVRIA.esm.js +1 -0
- package/lib/chunks/{chunk-G757UD32.esm.js → chunk-2BWCWW2Q.esm.js} +1 -1
- package/lib/chunks/chunk-3437GMP7.esm.js +1 -0
- package/lib/chunks/{chunk-XCJYI6FQ.esm.js → chunk-3PLVWHLK.esm.js} +1 -1
- package/lib/chunks/{chunk-WU3U64UA.esm.js → chunk-3VZTMO2Z.esm.js} +1 -1
- package/lib/chunks/{chunk-YJ6PPJQ4.esm.js → chunk-3WXII2F3.esm.js} +1 -1
- package/lib/chunks/chunk-46CG3ZZX.esm.js +50 -0
- package/lib/chunks/chunk-4KW43QHY.esm.js +1 -0
- package/lib/chunks/{chunk-S7Y2IM73.esm.js → chunk-4MZWYLJH.esm.js} +1 -1
- package/lib/chunks/{chunk-PV4PSGB7.esm.js → chunk-52O36B6T.esm.js} +1 -1
- package/lib/chunks/chunk-5PLSFFP6.esm.js +1 -0
- package/lib/chunks/chunk-6G22RNUO.esm.js +1 -0
- package/lib/chunks/{chunk-5Q265MC7.esm.js → chunk-7JYI2AQK.esm.js} +1 -1
- package/lib/chunks/chunk-7PHMFL32.esm.js +1 -0
- package/lib/chunks/chunk-A4QGVHIH.esm.js +1 -0
- package/lib/chunks/chunk-A77KMXEI.esm.js +5 -0
- package/lib/chunks/{chunk-67E7VWGJ.esm.js → chunk-A7STAO6C.esm.js} +1 -1
- package/lib/chunks/{chunk-WCUEINBQ.esm.js → chunk-AAZFRX52.esm.js} +1 -1
- package/lib/chunks/{chunk-5HZUIEYR.esm.js → chunk-ATYYPKUP.esm.js} +1 -1
- package/lib/chunks/{chunk-5RKOPGWH.esm.js → chunk-BKMH5ZKN.esm.js} +1 -1
- package/lib/chunks/{chunk-LS3AMOAD.esm.js → chunk-BZNSA3AA.esm.js} +1 -1
- package/lib/chunks/{chunk-3A7I6HM2.esm.js → chunk-C7U4X56I.esm.js} +1 -1
- package/lib/chunks/chunk-CPQPRAAV.esm.js +1 -0
- package/lib/chunks/chunk-DA65U576.esm.js +1 -0
- package/lib/chunks/chunk-DXCL3MVA.esm.js +30 -0
- package/lib/chunks/{chunk-WEZKDYTI.esm.js → chunk-DYLFA33G.esm.js} +1 -1
- package/lib/chunks/chunk-E2U6IFPB.esm.js +1 -0
- package/lib/chunks/{chunk-R2B57RMV.esm.js → chunk-EJ245MA7.esm.js} +1 -1
- package/lib/chunks/chunk-EYAGAJRL.esm.js +1 -0
- package/lib/chunks/chunk-F3SAEVZJ.esm.js +1 -0
- package/lib/chunks/{chunk-RFUX53ZX.esm.js → chunk-FNYS25ZX.esm.js} +1 -1
- package/lib/chunks/chunk-FUVFPMSI.esm.js +39 -0
- package/lib/chunks/{chunk-2EYK6SOO.esm.js → chunk-G5L6INCM.esm.js} +1 -1
- package/lib/chunks/{chunk-ZIPR5STE.esm.js → chunk-GAQ3CPOM.esm.js} +1 -1
- package/lib/chunks/{chunk-RHRKGRQP.esm.js → chunk-GQZGW3EG.esm.js} +1 -1
- package/lib/chunks/chunk-GXGV64D2.esm.js +9 -0
- package/lib/chunks/{chunk-CXAWY4CK.esm.js → chunk-H5EZPFXA.esm.js} +1 -1
- package/lib/chunks/chunk-HPMNSONF.esm.js +0 -0
- package/lib/chunks/chunk-HTYWYOZQ.esm.js +1 -0
- package/lib/chunks/chunk-IFSAA4OC.esm.js +1 -0
- package/lib/chunks/chunk-IMS5TWF3.esm.js +1 -0
- package/lib/chunks/{chunk-OSFHXCPW.esm.js → chunk-IQQH6HMG.esm.js} +1 -1
- package/lib/chunks/chunk-ITSDQBLF.esm.js +1 -0
- package/lib/chunks/chunk-IZHCHFTU.esm.js +1 -0
- package/lib/chunks/{chunk-QHRNEUNP.esm.js → chunk-J4VMAQM3.esm.js} +5 -5
- package/lib/chunks/chunk-J6F4PMW4.esm.js +1 -0
- package/lib/chunks/{chunk-TWGEF7LA.esm.js → chunk-JNV3RCLH.esm.js} +1 -1
- package/lib/chunks/chunk-JVFVXNCA.esm.js +1 -0
- package/lib/chunks/{chunk-ZR433YL7.esm.js → chunk-JVJJNNK3.esm.js} +1 -1
- package/lib/chunks/{chunk-TBHGVERY.esm.js → chunk-JWNC52FT.esm.js} +1 -1
- package/lib/chunks/{chunk-CGPZLU4O.esm.js → chunk-JYFJX4EO.esm.js} +1 -1
- package/lib/chunks/{chunk-KVWFEJRW.esm.js → chunk-KE4YU2FM.esm.js} +1 -1
- package/lib/chunks/chunk-KITEZ7OW.esm.js +1 -0
- package/lib/chunks/chunk-KW62FBMI.esm.js +1 -0
- package/lib/chunks/chunk-KXRGSB6P.esm.js +1 -0
- package/lib/chunks/chunk-L7A7RA56.esm.js +1 -0
- package/lib/chunks/chunk-LA7VVT23.esm.js +1 -0
- package/lib/chunks/chunk-LCCVFIPZ.esm.js +1 -0
- package/lib/chunks/{chunk-LVVNQRJ2.esm.js → chunk-LDOM2UUN.esm.js} +1 -1
- package/lib/chunks/chunk-LN65BGR5.esm.js +1 -0
- package/lib/chunks/{chunk-6VBJ7CSY.esm.js → chunk-M4EIGJZZ.esm.js} +1 -1
- package/lib/chunks/{chunk-TMIQIUOH.esm.js → chunk-MKGWYKH6.esm.js} +1 -1
- package/lib/chunks/{chunk-IIC6OHTB.esm.js → chunk-MTJOR4UX.esm.js} +1 -1
- package/lib/chunks/{chunk-CQASQBD7.esm.js → chunk-MYU2IAR3.esm.js} +1 -1
- package/lib/chunks/{chunk-NSMXX277.esm.js → chunk-NGCCXGDN.esm.js} +1 -1
- package/lib/chunks/{chunk-TG2P4DDY.esm.js → chunk-O5TS2XER.esm.js} +1 -1
- package/lib/chunks/{chunk-ZV2ZWK53.esm.js → chunk-OC7CKHRF.esm.js} +1 -1
- package/lib/chunks/{chunk-TZQMBDGR.esm.js → chunk-ODL5JUYM.esm.js} +1 -1
- package/lib/chunks/chunk-OOYR6EZR.esm.js +1 -0
- package/lib/chunks/chunk-P3SIJHYM.esm.js +1 -0
- package/lib/chunks/chunk-P3XOIBAC.esm.js +1 -0
- package/lib/chunks/{chunk-O5ZHMMMV.esm.js → chunk-PB7O2NHF.esm.js} +1 -1
- package/lib/chunks/{chunk-QL2OVYDI.esm.js → chunk-PCLKWRMD.esm.js} +1 -1
- package/lib/chunks/{chunk-QIN2X7SN.esm.js → chunk-PRQOVSM6.esm.js} +4 -4
- package/lib/chunks/{chunk-PXPFWWKL.esm.js → chunk-Q2PMRBCL.esm.js} +1 -1
- package/lib/chunks/{chunk-VCA76NG3.esm.js → chunk-Q3XFSLPE.esm.js} +1 -1
- package/lib/chunks/chunk-QXV2TDLZ.esm.js +1 -0
- package/lib/chunks/chunk-R2QEO3KP.esm.js +18 -0
- package/lib/chunks/chunk-REPFMEFA.esm.js +1 -0
- package/lib/chunks/{chunk-BERIBF3O.esm.js → chunk-SEPVF2TL.esm.js} +1 -1
- package/lib/chunks/{chunk-HJYD74KU.esm.js → chunk-SPN5664Z.esm.js} +1 -1
- package/lib/chunks/chunk-TF3JNXQO.esm.js +1 -0
- package/lib/chunks/{chunk-KP35QBYF.esm.js → chunk-TWZWNWBQ.esm.js} +1 -1
- package/lib/chunks/chunk-U3GZABRG.esm.js +1 -0
- package/lib/chunks/{chunk-Z2YRSJP4.esm.js → chunk-UAXSZ3UE.esm.js} +1 -1
- package/lib/chunks/chunk-V2GA7W66.esm.js +1 -0
- package/lib/chunks/{chunk-OXQA5WD3.esm.js → chunk-VCMHX5VK.esm.js} +1 -1
- package/lib/chunks/{chunk-KGR36P56.esm.js → chunk-VFCCRDG4.esm.js} +1 -1
- package/lib/chunks/chunk-VFM3QFOU.esm.js +4 -0
- package/lib/chunks/{chunk-MREWGN5R.esm.js → chunk-VJ5GIFXO.esm.js} +1 -1
- package/lib/chunks/chunk-VR23WM3F.esm.js +1 -0
- package/lib/chunks/chunk-VYHY4SSS.esm.js +1 -0
- package/lib/chunks/chunk-W4NSHFN4.esm.js +1 -0
- package/lib/chunks/chunk-WB5XXCKL.esm.js +1 -0
- package/lib/chunks/chunk-WCJC5AG7.esm.js +1 -0
- package/lib/chunks/chunk-WDGATQZG.esm.js +1 -0
- package/lib/chunks/{chunk-K2FNA2E5.esm.js → chunk-X62RTM6B.esm.js} +1 -1
- package/lib/chunks/chunk-XKACWIWC.esm.js +1 -0
- package/lib/chunks/{chunk-A4N7BBKS.esm.js → chunk-XSULIEOF.esm.js} +1 -1
- package/lib/chunks/{chunk-3ULXR3PR.esm.js → chunk-XUZQE326.esm.js} +1 -1
- package/lib/chunks/chunk-YBKS2HAY.esm.js +1 -0
- package/lib/chunks/chunk-Z23O3NNN.esm.js +1 -0
- package/lib/chunks/{chunk-KMD7LUDX.esm.js → chunk-ZDB7ECI3.esm.js} +1 -1
- package/lib/chunks/{chunk-7TJO34VI.esm.js → chunk-ZJT2WQTR.esm.js} +1 -1
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Box/index.esm.js +1 -1
- package/lib/containers/Card/Card.style.d.ts +16 -8
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/Content.interface.d.ts +7 -1
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/Flex.interface.d.ts +10 -0
- package/lib/containers/Flex/Flex.style.d.ts +9 -4
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Notification/Notification.style.d.ts +32 -16
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/Paper.style.d.ts +4 -4
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/Accordion/Accordion.d.ts +34 -0
- package/lib/dataDisplay/Accordion/Accordion.interface.d.ts +97 -0
- package/lib/dataDisplay/Accordion/Accordion.style.d.ts +122 -0
- package/lib/dataDisplay/Accordion/index.d.ts +8 -0
- package/lib/dataDisplay/Accordion/index.esm.js +1 -0
- package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +8 -0
- package/lib/dataDisplay/DataTable/DataTable.style.d.ts +8 -8
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/DescriptionList.interface.d.ts +7 -1
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Meter/Meter.style.d.ts +16 -8
- package/lib/dataDisplay/Meter/index.esm.js +1 -1
- package/lib/dataDisplay/Steps/Steps.interface.d.ts +7 -0
- package/lib/dataDisplay/Steps/Steps.style.d.ts +48 -24
- package/lib/dataDisplay/Steps/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableEmpty/TableEmpty.style.d.ts +36 -20
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/Tabs.interface.d.ts +7 -1
- package/lib/dataDisplay/Tabs/Tabs.style.d.ts +84 -44
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.d.ts +1 -0
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/Avatar.style.d.ts +4 -0
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/Button.style.d.ts +16 -8
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Calendar/index.esm.js +1 -1
- package/lib/elements/Divider/Divider.style.d.ts +16 -8
- package/lib/elements/Divider/index.esm.js +1 -1
- package/lib/elements/Dropdown/Dropdown.floating.d.ts +3 -1
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/Icon.d.ts +3 -1
- package/lib/elements/Icon/Icon.interface.d.ts +3 -1
- package/lib/elements/Icon/Icon.style.d.ts +3 -2
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/IconButton/IconButton.style.d.ts +64 -32
- 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/index.esm.js +1 -1
- package/lib/elements/Link/Link.style.d.ts +8 -8
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/List.style.d.ts +16 -8
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.interface.d.ts +5 -1
- package/lib/elements/Modal/Modal.style.d.ts +44 -27
- package/lib/elements/Modal/Modal.width.d.ts +30 -0
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/ProgressBar.interface.d.ts +2 -2
- package/lib/elements/ProgressBar/ProgressBar.style.d.ts +16 -8
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Sheet/Sheet.d.ts +4 -0
- package/lib/elements/Sheet/Sheet.interface.d.ts +15 -1
- package/lib/elements/Sheet/Sheet.style.d.ts +60 -44
- package/lib/elements/Sheet/index.d.ts +3 -1
- package/lib/elements/Sheet/index.esm.js +1 -1
- package/lib/elements/Spinner/Spinner.style.d.ts +2 -3
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/Svg/Svg.style.d.ts +7 -5
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/Text.props.d.ts +22 -22
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/Tooltip.floating.d.ts +3 -1
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/BackgroundFactory/index.esm.js +1 -1
- package/lib/factory/ColorFactory/index.esm.js +1 -1
- package/lib/factory/ContainerQueryFactory/index.esm.js +1 -1
- package/lib/factory/DeepFactory/index.esm.js +1 -1
- package/lib/factory/FlexFactory/FlexFactory.d.ts +7 -2
- package/lib/factory/FlexFactory/index.esm.js +1 -1
- package/lib/factory/FontFactory/FontFactory.interface.d.ts +1 -1
- package/lib/factory/MotionFactory/index.esm.js +1 -1
- package/lib/factory/PlacementFactory/index.esm.js +1 -1
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.channel.d.ts +14 -0
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.d.ts +1 -1
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/SpacingFactory/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 -20
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/Field.style.d.ts +16 -8
- 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 +16 -8
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/Input.interface.d.ts +2 -0
- package/lib/form/Input/Input.style.d.ts +47 -20
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/InputCurrency.style.d.ts +16 -8
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/InputDate.d.ts +3 -0
- package/lib/form/InputDate/index.esm.js +1 -1
- package/lib/form/InputMask/index.esm.js +1 -1
- package/lib/form/InputRange/InputRange.style.d.ts +8 -8
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/InputSelect/index.esm.js +1 -1
- package/lib/form/Option/Option.style.d.ts +16 -8
- package/lib/form/Option/index.esm.js +1 -1
- package/lib/form/Radio/Radio.style.d.ts +4 -4
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/Select/Select.interface.d.ts +2 -0
- package/lib/form/Select/index.esm.js +1 -1
- package/lib/form/Switch/Switch.style.d.ts +1 -2
- package/lib/form/Switch/index.esm.js +1 -1
- package/lib/form/TextArea/TextArea.interface.d.ts +30 -1
- package/lib/form/TextArea/TextArea.style.d.ts +29 -17
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.interface.d.ts +8 -0
- package/lib/form/UploadCard/UploadCard.style.d.ts +29 -20
- 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/hooks/useClipboard/index.esm.js +1 -1
- package/lib/hooks/useEventCallback/index.esm.js +1 -1
- package/lib/hooks/useFocusTrap/index.esm.js +1 -1
- package/lib/hooks/useIntersect/index.esm.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/index.esm.js +1 -1
- package/lib/layouts/index.esm.js +1 -1
- package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
- package/lib/skeleton/TextPreset/index.esm.js +1 -1
- package/lib/skeleton/index.esm.js +1 -1
- package/lib/themes/Animation/index.esm.js +1 -1
- package/lib/themes/Colors/Colors.helpers.d.ts +42 -10
- package/lib/themes/Colors/index.esm.js +1 -1
- package/lib/themes/Component/Component.interface.d.ts +41 -1
- package/lib/themes/Component/index.d.ts +1 -1
- package/lib/themes/Component/index.esm.js +1 -1
- package/lib/themes/Deep/index.esm.js +1 -1
- package/lib/themes/Depth/index.esm.js +1 -1
- package/lib/themes/Font/Font.helpers.d.ts +14 -0
- package/lib/themes/Font/Font.interface.d.ts +23 -5
- package/lib/themes/Font/Font.props.d.ts +47 -17
- package/lib/themes/Font/index.d.ts +1 -0
- package/lib/themes/Font/index.esm.js +1 -1
- package/lib/themes/GlobalStyle/GlobalStyle.d.ts +8 -4
- package/lib/themes/GlobalStyle/GlobalStyle.forcedColors.d.ts +8 -0
- package/lib/themes/GlobalStyle/GlobalStyle.helpers.d.ts +14 -0
- package/lib/themes/GlobalStyle/index.esm.js +1 -1
- package/lib/themes/Ground/index.esm.js +1 -1
- package/lib/themes/Layout/Layout.interface.d.ts +10 -0
- package/lib/themes/Layout/Layout.props.d.ts +25 -1
- package/lib/themes/Layout/index.esm.js +1 -1
- package/lib/themes/Motion/Motion.helpers.d.ts +9 -6
- package/lib/themes/Motion/index.esm.js +1 -1
- package/lib/themes/Semantic/Semantic.interface.d.ts +3 -2
- package/lib/themes/Semantic/index.esm.js +1 -1
- package/lib/themes/Surface/index.esm.js +1 -1
- package/lib/themes/TextSize/TextSize.helpers.d.ts +14 -0
- package/lib/themes/TextSize/TextSize.interface.d.ts +14 -0
- package/lib/themes/TextSize/TextSize.props.d.ts +27 -0
- package/lib/themes/TextSize/index.d.ts +8 -0
- package/lib/themes/TextSize/index.esm.js +1 -0
- package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +48 -4
- package/lib/themes/ThemeProvider/ThemeProvider.modes.d.ts +1 -1
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.d.ts +1 -0
- package/lib/themes/index.esm.js +1 -1
- package/lib/utils/capabilities.d.ts +185 -0
- package/lib/utils/index.esm.js +1 -1
- package/lib/vendors/FloatingUI/index.d.ts +1 -0
- package/lib/vendors/FloatingUI/interface.d.ts +12 -2
- package/lib/vendors/FloatingUI/layer.d.ts +46 -0
- package/package.json +27 -9
- package/lib/chunks/Dropdown.floating-J32D2QRS.esm.js +0 -1
- package/lib/chunks/Notification.group-AS4LA5D6.esm.js +0 -1
- package/lib/chunks/Tooltip.floating-3ONULW2L.esm.js +0 -1
- package/lib/chunks/chunk-2SNAO7NC.esm.js +0 -1
- package/lib/chunks/chunk-2Y4WLA5I.esm.js +0 -1
- package/lib/chunks/chunk-3LYH4EYD.esm.js +0 -1
- package/lib/chunks/chunk-3V3ZEGHO.esm.js +0 -1
- package/lib/chunks/chunk-4AZHB45P.esm.js +0 -1
- package/lib/chunks/chunk-4IYOKQA7.esm.js +0 -5
- package/lib/chunks/chunk-5UYRWNCM.esm.js +0 -39
- package/lib/chunks/chunk-7UXK4EG7.esm.js +0 -1
- package/lib/chunks/chunk-AH6Y5HZ7.esm.js +0 -2
- package/lib/chunks/chunk-BV6GHAF7.esm.js +0 -1
- package/lib/chunks/chunk-CAE4JJJR.esm.js +0 -1
- package/lib/chunks/chunk-CK3WBMQQ.esm.js +0 -1
- package/lib/chunks/chunk-E4B4OTEY.esm.js +0 -1
- package/lib/chunks/chunk-EPAHWTZU.esm.js +0 -1
- package/lib/chunks/chunk-FK5R4PVA.esm.js +0 -1
- package/lib/chunks/chunk-GHPI3RFU.esm.js +0 -1
- package/lib/chunks/chunk-GZSGD3CF.esm.js +0 -1
- package/lib/chunks/chunk-H4CHFD6I.esm.js +0 -1
- package/lib/chunks/chunk-IJBZ45BC.esm.js +0 -1
- package/lib/chunks/chunk-IV6ORC5K.esm.js +0 -1
- package/lib/chunks/chunk-JCPRNQ6K.esm.js +0 -1
- package/lib/chunks/chunk-JHPEWQBA.esm.js +0 -1
- package/lib/chunks/chunk-KK7GJC3H.esm.js +0 -1
- package/lib/chunks/chunk-MBQGF5IM.esm.js +0 -1
- package/lib/chunks/chunk-OEQN4UYJ.esm.js +0 -1
- package/lib/chunks/chunk-OULN77LP.esm.js +0 -1
- package/lib/chunks/chunk-OVUUG4UQ.esm.js +0 -4
- package/lib/chunks/chunk-P7RR4ZHS.esm.js +0 -1
- package/lib/chunks/chunk-PXVTXO3L.esm.js +0 -1
- package/lib/chunks/chunk-QRU4HAB3.esm.js +0 -1
- package/lib/chunks/chunk-RR2TYGZC.esm.js +0 -1
- package/lib/chunks/chunk-RZLOZ3NW.esm.js +0 -1
- package/lib/chunks/chunk-S2SVVZOG.esm.js +0 -1
- package/lib/chunks/chunk-S7AKJ6C3.esm.js +0 -1
- package/lib/chunks/chunk-UN3R576I.esm.js +0 -48
- package/lib/chunks/chunk-V3JQI7KV.esm.js +0 -20
- package/lib/chunks/chunk-VMNCGW4Z.esm.js +0 -26
- package/lib/chunks/chunk-X2ARVSJZ.esm.js +0 -1
- package/lib/chunks/chunk-XE4O5TMX.esm.js +0 -1
- package/lib/chunks/chunk-XR6VYETA.esm.js +0 -1
- package/lib/chunks/chunk-XTY6DXMK.esm.js +0 -1
- package/lib/chunks/chunk-YJHYFCT7.esm.js +0 -1
- package/lib/chunks/chunk-ZOPD2T72.esm.js +0 -1
- package/lib/chunks/chunk-ZZOIX6CV.esm.js +0 -1
- /package/lib/chunks/{chunk-EBOJSNZ5.esm.js → chunk-AMN6SRJS.esm.js} +0 -0
package/README.md
CHANGED
|
@@ -54,6 +54,13 @@ createRoot(document.getElementById('root')!).render(
|
|
|
54
54
|
);
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
## Browser support
|
|
58
|
+
|
|
59
|
+
Baseline 2024: Chrome/Edge 130+, Firefox 132+, Safari 18.2+ (macOS and iOS),
|
|
60
|
+
Chrome for Android 130+, Samsung Internet 28+. The exact list ships as this
|
|
61
|
+
package's `browserslist` field; support levels are explained at
|
|
62
|
+
<https://www.apollion.com.br/docs/concept-browser-support>.
|
|
63
|
+
|
|
57
64
|
## Documentation
|
|
58
65
|
|
|
59
66
|
- **Docs & live examples:** <https://www.apollion.com.br>
|
|
@@ -0,0 +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-52O36B6T.esm.js";import"./chunk-5PLSFFP6.esm.js";import"./chunk-MPMCXGOX.esm.js";import"./chunk-JWNC52FT.esm.js";import"./chunk-3PLVWHLK.esm.js";import"./chunk-4SDDAQ6N.esm.js";import"./chunk-HTYWYOZQ.esm.js";import"./chunk-Q2PMRBCL.esm.js";import"./chunk-R2QEO3KP.esm.js";import"./chunk-YBKS2HAY.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-KXRGSB6P.esm.js";import"./chunk-F3SAEVZJ.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-QXV2TDLZ.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-VCMHX5VK.esm.js";import"./chunk-ODL5JUYM.esm.js";import"./chunk-AAZFRX52.esm.js";import"./chunk-3WXII2F3.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-C7U4X56I.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-IFSAA4OC.esm.js";import"./chunk-ZDB7ECI3.esm.js";import"./chunk-ZMHNNJNC.esm.js";import"./chunk-KQQ7V7VG.esm.js";import{c as l}from"./chunk-KZTG5TDM.esm.js";import"./chunk-A3OJEVGQ.esm.js";import"./chunk-P3SIJHYM.esm.js";import"./chunk-2FQC32AA.esm.js";import"./chunk-HSKYQ6VP.esm.js";import"./chunk-SPHHNZVP.esm.js";import"./chunk-4UWZA5FD.esm.js";import"./chunk-3QSPHURU.esm.js";import"./chunk-NDIYF5SX.esm.js";import"./chunk-KR2X2UQG.esm.js";import"./chunk-BE2JDTVA.esm.js";import"./chunk-VFCCRDG4.esm.js";import"./chunk-P3XOIBAC.esm.js";import"./chunk-WDGATQZG.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-DAT6GD4T.esm.js";import"./chunk-VFM3QFOU.esm.js";import"./chunk-ITSDQBLF.esm.js";import"./chunk-EYAGAJRL.esm.js";import"./chunk-HPMNSONF.esm.js";import"./chunk-4L2KOZIQ.esm.js";import"./chunk-O5TS2XER.esm.js";import"./chunk-4E3BR56X.esm.js";import"./chunk-MKGWYKH6.esm.js";import"./chunk-GXGV64D2.esm.js";import{d as y}from"./chunk-W4NSHFN4.esm.js";import"./chunk-TLIKQFOT.esm.js";import"./chunk-IA234JY2.esm.js";import"./chunk-2BWCWW2Q.esm.js";import"./chunk-IQQH6HMG.esm.js";import"./chunk-SEPVF2TL.esm.js";import"./chunk-LDOM2UUN.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-XUZQE326.esm.js";import"./chunk-3DUB5C4Z.esm.js";import"./chunk-KT6QQ3UJ.esm.js";import{g as u}from"./chunk-L7A7RA56.esm.js";import"./chunk-HVFI7FHR.esm.js";import"./chunk-UAXSZ3UE.esm.js";import"./chunk-WCJC5AG7.esm.js";import"./chunk-KT4BKJVV.esm.js";import"./chunk-IZHCHFTU.esm.js";import{a as o}from"./chunk-5PLSFFP6.esm.js";import"./chunk-MPMCXGOX.esm.js";import"./chunk-JWNC52FT.esm.js";import"./chunk-3PLVWHLK.esm.js";import"./chunk-4SDDAQ6N.esm.js";import"./chunk-HTYWYOZQ.esm.js";import"./chunk-Q2PMRBCL.esm.js";import"./chunk-R2QEO3KP.esm.js";import"./chunk-YBKS2HAY.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-KXRGSB6P.esm.js";import"./chunk-F3SAEVZJ.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-QXV2TDLZ.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-VCMHX5VK.esm.js";import"./chunk-ODL5JUYM.esm.js";import"./chunk-AAZFRX52.esm.js";import"./chunk-3WXII2F3.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-C7U4X56I.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};
|
|
@@ -0,0 +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-BKMH5ZKN.esm.js";import{g as c}from"./chunk-L7A7RA56.esm.js";import"./chunk-5PLSFFP6.esm.js";import"./chunk-MPMCXGOX.esm.js";import"./chunk-JWNC52FT.esm.js";import"./chunk-3PLVWHLK.esm.js";import"./chunk-4SDDAQ6N.esm.js";import"./chunk-HTYWYOZQ.esm.js";import"./chunk-Q2PMRBCL.esm.js";import"./chunk-R2QEO3KP.esm.js";import"./chunk-YBKS2HAY.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-KXRGSB6P.esm.js";import"./chunk-F3SAEVZJ.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-QXV2TDLZ.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-VCMHX5VK.esm.js";import"./chunk-ODL5JUYM.esm.js";import"./chunk-AAZFRX52.esm.js";import"./chunk-3WXII2F3.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-C7U4X56I.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as fe}from"./chunk-
|
|
1
|
+
import{a as fe}from"./chunk-IQQH6HMG.esm.js";import{a as ke}from"./chunk-PFLBU7HG.esm.js";import{m as ce}from"./chunk-VJ5GIFXO.esm.js";import{l as a}from"./chunk-REPFMEFA.esm.js";import{a as be}from"./chunk-GZONWSRB.esm.js";function Oe(r,ge,pe){var n,o,i,s,d,m,b,c,k,f,g,p,u,D,F,l,x,O,h,v,y,S,L,T,w,P,M,C,j,q,z,A,B,E,G,H,I,J,K,N,Q,R,U,V,W,X,Y,Z,_,$,ee,ae,re,te,ne,oe,ie,se,de,me;if(ge==="positive")return r;let{colors:e}=r,ue=ce(e),t={color:{feedback:{success:{bg:(i=(o=(n=e.success)==null?void 0:n.dark)!=null?o:e.baseDark)!=null?i:"#000",txtOn:a((m=(d=(s=e.success)==null?void 0:s.dark)!=null?d:e.baseDark)!=null?m:"#000"),border:(k=(c=(b=e.success)==null?void 0:b.base)!=null?c:e.baseLight)!=null?k:"#FFF"},danger:{bg:(p=(g=(f=e.danger)==null?void 0:f.dark)!=null?g:e.baseDark)!=null?p:"#000",txtOn:a((F=(D=(u=e.danger)==null?void 0:u.dark)!=null?D:e.baseDark)!=null?F:"#000"),border:(O=(x=(l=e.danger)==null?void 0:l.base)!=null?x:e.baseLight)!=null?O:"#FFF"},warning:{bg:(y=(v=(h=e.warning)==null?void 0:h.dark)!=null?v:e.baseDark)!=null?y:"#000",txtOn:a((T=(L=(S=e.warning)==null?void 0:S.dark)!=null?L:e.baseDark)!=null?T:"#000"),border:(M=(P=(w=e.warning)==null?void 0:w.base)!=null?P:e.baseLight)!=null?M:"#FFF"},information:{bg:(q=(j=(C=e.information)==null?void 0:C.dark)!=null?j:e.baseDark)!=null?q:"#000",txtOn:a((B=(A=(z=e.information)==null?void 0:z.dark)!=null?A:e.baseDark)!=null?B:"#000"),border:(H=(G=(E=e.information)==null?void 0:E.base)!=null?G:e.baseLight)!=null?H:"#FFF"}},interface:{function:{primary:{normal:{bg:(I=e.baseDark)!=null?I:"#000",txtOn:a((J=e.baseDark)!=null?J:"#000")}},secondary:{normal:{bg:(K=e.baseDark)!=null?K:"#000",txtOn:a((N=e.baseDark)!=null?N:"#000")}},tertiary:{normal:{bg:(Q=e.baseDark)!=null?Q:"#000",txtOn:a((R=e.baseDark)!=null?R:"#000")}}}},brand:{first:{default:{surface:(W=(V=(U=e.main)==null?void 0:U.dark)!=null?V:e.baseDark)!=null?W:"#000",txtOn:a((Z=(Y=(X=e.main)==null?void 0:X.dark)!=null?Y:e.baseDark)!=null?Z:"#000")}},second:{default:{surface:(ee=($=(_=e.opposite)==null?void 0:_.dark)!=null?$:e.baseDark)!=null?ee:"#000",txtOn:a((te=(re=(ae=e.opposite)==null?void 0:ae.dark)!=null?re:e.baseDark)!=null?te:"#000")}},third:{default:{surface:(ie=(oe=(ne=e.complementary)==null?void 0:ne.dark)!=null?oe:e.baseDark)!=null?ie:"#000",txtOn:a((me=(de=(se=e.complementary)==null?void 0:se.dark)!=null?de:e.baseDark)!=null?me:"#000")}}},...fe(e,ue)},dimension:r.semantic.dimension};return{...r,semantic:t,foundation:ke(t)}}be(Oe,"invertForSurface");export{Oe as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-J6F4PMW4.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";import{arrow as m,autoUpdate as d,flip as c,FloatingFocusManager as y,FloatingPortal as F,offset as L,safePolygon as p,shift as E,useClick as D,useDismiss as M,useFloating as O,useFocus as b,useHover as h,useInteractions as x,useRole as A}from"@floating-ui/react";import{useEffect as a}from"react";var i={root:void 0,strategy:"absolute"},s={root:null,strategy:"absolute"},l='dialog[open], [aria-modal="true"]';function u(e){if(!e)return s;let t=e.closest(l);return t?{root:t,strategy:"fixed"}:i}o(u,"getFloatingLayer");function w(e,t){return a(()=>{if(!t||e)return;let r=setTimeout(()=>{n.warn("[apollion] A floating layer is open but its reference element never mounted, so it renders nothing. Make sure the trigger forwards its ref to a DOM element.")},0);return()=>clearTimeout(r)},[t,e]),u(e)}o(w,"useFloatingLayer");export{m as a,d as b,c,y as d,F as e,L as f,p as g,E as h,D as i,M as j,O as k,h as l,x as m,A as n,w as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as N}from"./chunk-4SDDAQ6N.esm.js";import{a as
|
|
1
|
+
import{a as N}from"./chunk-4SDDAQ6N.esm.js";import{a as P,b as E}from"./chunk-HTYWYOZQ.esm.js";import{a as b,b as C}from"./chunk-Q2PMRBCL.esm.js";import{a as M}from"./chunk-YBKS2HAY.esm.js";import{a as s,d as a}from"./chunk-RWLJNXLX.esm.js";import{a as x,b as A}from"./chunk-KXRGSB6P.esm.js";import{a as d,b as u}from"./chunk-IK5Z5C2R.esm.js";import{a as F,e as g}from"./chunk-QXV2TDLZ.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 i,b as n}from"./chunk-ODL5JUYM.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{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 H}from"./chunk-
|
|
1
|
+
import{c as H}from"./chunk-VFCCRDG4.esm.js";import{b as F}from"./chunk-P3XOIBAC.esm.js";import{o as M}from"./chunk-DAT6GD4T.esm.js";import{a as k}from"./chunk-EYAGAJRL.esm.js";import{a as c}from"./chunk-IZHCHFTU.esm.js";import{a as y}from"./chunk-5PLSFFP6.esm.js";import{a as v}from"./chunk-EJ245MA7.esm.js";import{k as E}from"./chunk-REPFMEFA.esm.js";import{b as u,g as h}from"./chunk-AXUWC2WH.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";import{forwardRef as q}from"react";var A=s((e,t)=>E(e.colors[t],"base"),"literalStop"),x=s((e,t)=>v(e,i=>A(i,t)),"stop"),z=s((e,t)=>v(e,i=>{var d,m,B;return(B=(m=(d=i.colors).getContrastColor)==null?void 0:m.call(d,A(i,t)))!=null?B:i.colors.ink.primary}),"inkOn"),W=s((e,t)=>{switch(t){case"complete":return{fill:x(e,"success"),ink:z(e,"success")};case"current":return{fill:x(e,"primary"),ink:z(e,"primary")};case"next":return{fill:e.colors.surface.raised,ink:e.colors.ink.primary};default:return{fill:e.colors.surface.sunken,ink:e.colors.ink.disabled}}},"badgePaint"),C=h(c).withConfig({componentId:"sc-1bjowjb-0"})(["width:",";height:",";flex:0 0 auto;border-radius:",";background:",";color:",";box-shadow:",";transition:",";"],({$size:e})=>e,({$size:e})=>e,({theme:e})=>e.border.borderRadius.circular,({theme:e,$status:t})=>W(e,t).fill,({theme:e,$status:t})=>W(e,t).ink,({theme:e,$status:t})=>t==="next"?`inset 0 0 0 1px ${e.colors.edge.border}`:"none",({theme:e})=>e.animation.transitions.short),b=h(c).withConfig({componentId:"sc-1bjowjb-1"})(["flex:1 1 0;align-self:center;"," border-radius:",";background:",";"],({$vertical:e})=>e?u(["width:0.25rem;min-height:0.75rem;"]):u(["height:0.25rem;"]),({theme:e})=>e.border.borderRadius.micro,({theme:e,$done:t})=>t?x(e,"success"):e.colors.edge.hairline),O=u(["cursor:pointer;&:hover ","{box-shadow:",";}"],C,({theme:e})=>e.depth("level-one")),R=h(c).withConfig({componentId:"sc-1bjowjb-2"})(["flex:1 1 0;min-width:0;"," "," a{text-decoration:none;}&:focus-within ","{outline:2px solid ",";outline-offset:2px;}"],({$vertical:e})=>e&&u(["flex:0 0 auto;"]),({$actionable:e})=>e&&O,C,({theme:e})=>x(e,"primary"));import{jsx as n,jsxs as S}from"react/jsx-runtime";var w=q(({stepNumber:e,status:t,size:i="2rem",...d},m)=>n(C,{alignItems:"center",justifyContent:"center",$status:t,$size:typeof i=="number"?`${i}px`:i,...d,ref:m,children:t==="complete"?n(F,{icon:M,size:"small",color:"currentColor","aria-hidden":!0}):n(k,{fontSize:"xs",fontWeight:"bold",lineHeight:"tight",color:"inherit",children:e})}));w.displayName="StepsBadge";var g=s((e,t,i)=>e.isComplete||t<i?"complete":t===i?"current":e.disabled?"disabled":"next","resolveStepStatus"),N=s((e,t)=>t==="next"&&!!(e.href||e.to||e.onClick),"isActionable"),V=q(({steps:e,currentIndex:t=0,linkAs:i,label:d="Etapas",layout:m="auto",counterLabel:B,...I},T)=>{let L=e.length,D=s((a,p,r,o)=>r&&(a.href||a.to)?n(H,{as:a.to?i:void 0,href:a.href,to:a.to,text:a.title,onClick:a.onClick,fontSize:"xs",fontWeight:"bold",color:"primary",textAlign:o}):r?n(k,{as:"button",type:"button",onClick:a.onClick,fontSize:"xs",fontWeight:"bold",color:"primary",textAlign:o,bgColor:"transparent",borderWidth:"none",cursor:"pointer",style:{padding:0},children:a.title}):n(k,{fontSize:"xs",fontWeight:"bold",textAlign:o,color:p==="disabled"?"ink.disabled":"ink.primary",children:a.title}),"renderTitle"),P=s((a={},p)=>n(c,{as:"nav","aria-label":d,flexDirection:"row",width:"100%",...a,ref:p,children:e.map((r,o)=>{let l=g(r,o,t),f=N(r,l),$=o===L-1;return S(R,{$actionable:f,gap:"small",alignItems:"center","aria-current":l==="current"?"step":void 0,"aria-disabled":l==="disabled"||void 0,onClick:f&&!r.href&&!r.to?r.onClick:void 0,children:[S(c,{flexDirection:"row",alignItems:"center",width:"100%",children:[n(b,{$done:o>0&&g(e[o-1],o-1,t)==="complete",style:{visibility:o===0?"hidden":void 0}}),n(w,{stepNumber:o+1,status:l}),n(b,{$done:l==="complete",style:{visibility:$?"hidden":void 0}})]}),D(r,l,f,"center")]},`${o}-${r.title}`)})}),"desktopVariant"),j=s((a={},p)=>n(c,{as:"nav","aria-label":d,flexDirection:"column",width:"100%",...a,ref:p,children:e.map((r,o)=>{let l=g(r,o,t),f=N(r,l),$=o===L-1;return S(R,{$actionable:f,$vertical:!0,flexDirection:"row",gap:"medium",alignItems:"center","aria-current":l==="current"?"step":void 0,"aria-disabled":l==="disabled"||void 0,onClick:f&&!r.href&&!r.to?r.onClick:void 0,children:[S(c,{flexDirection:"column",alignItems:"center",alignSelf:"stretch",children:[n(b,{$vertical:!0,$done:o>0&&g(e[o-1],o-1,t)==="complete",style:{visibility:o===0?"hidden":void 0}}),n(w,{stepNumber:o+1,status:l}),n(b,{$vertical:!0,$done:l==="complete",style:{visibility:$?"hidden":void 0}})]}),D(r,l,f,"left")]},`${o}-${r.title}`)})}),"verticalVariant");return m==="mobile"?j(I,T):m==="desktop"?P(I,T):S(y,{containment:"inline-size",width:"100%",...I,ref:T,children:[n(y,{cq:{md:{display:"none"}},children:j()}),n(y,{display:"none",cq:{md:{display:"block"}},children:P()})]})});V.displayName="Steps";export{W as a,C as b,b as c,R as d,w as e,g as f,V as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O}from"./chunk-
|
|
1
|
+
import{a as O}from"./chunk-EJ245MA7.esm.js";import{h as E}from"./chunk-VJ5GIFXO.esm.js";import{A as h,D as k,a as x,h as m,i as p,j as y,m as b,n as T}from"./chunk-REPFMEFA.esm.js";import{a as d}from"./chunk-GZONWSRB.esm.js";var G="--apollion-on-ground",v=["primary","secondary","muted","disabled"],C="surface.canvas";function f(...r){return[G,...r].join("-")}d(f,"groundVar");function U(r,...e){return`var(${f(...e)}, ${r})`}d(U,"groundVarRef");function V(r){if(r.startsWith("ink.")){let a=r.slice(4);return v.includes(a)?["ink",a]:null}if(b.includes(r))return["tx",r];let e=/^neutral\.(\d+)$/.exec(r);return e&&T.includes(Number(e[1]))?["neutral",e[1]]:null}d(V,"groundInkPath");function R(r,e){var a,i,u,n;return(n=(u=(i=r.colors(e))!=null?i:(a=r.colors.surface)==null?void 0:a.canvas)!=null?u:r.colors.baseLight)!=null?n:"#FFFFFF"}d(R,"groundLiteral");function N(r){if(r==="transparent"||r.startsWith("var("))return!1;let e=x(r);return e?e.alpha===void 0||e.alpha>=1:!1}d(N,"isOpaqueGround");function g(r,e,a,i=m){var o,t,s;let u=(s=(t=(o=r.colors.ink)==null?void 0:o.primary)!=null?t:r.colors.baseDark)!=null?s:"#000000",n=y(e!=null?e:u,a,i);return p(n,a)>=i?n:p("#ffffff",a)>=p("#000000",a)?"#ffffff":"#000000"}d(g,"readableOver");function F(r,e){return r.modes?h(e)?r.modes.dark:r.modes.light:r}d(F,"inkTableFor");function D(r,e){if(!(r.modes?[r.modes.light,r.modes.dark]:[r]).every(n=>N(R(n,e))))return{};let i=d(n=>O(r,o=>{let t=R(o,e);return n(F(r,t),t)}),"over"),u={[f()]:i((n,o)=>o),[f("contrast")]:i((n,o)=>{var t,s,c;return(c=(s=(t=n.colors).getContrastColor)==null?void 0:s.call(t,o))!=null?c:g(n,void 0,o)})};for(let n of v)u[f("ink",n)]=i((o,t)=>{var s,c,l;return n==="disabled"?(c=(s=o.colors.ink)==null?void 0:s.disabled)!=null?c:g(o,void 0,t):g(o,(l=o.colors.ink)==null?void 0:l[n],t)});for(let n of b)u[f("tx",n)]=i((o,t)=>{var s;return g(o,(s=o.colors[n])==null?void 0:s.base,t)});for(let n of T)u[f("neutral",n)]=i((o,t)=>{var s;return g(o,(s=o.colors.neutral)==null?void 0:s[n],t)});for(let[n,o]of Object.entries(E))u[f("edge",n)]=i((t,s)=>{var c;return k(g(t,(c=t.colors.ink)==null?void 0:c.primary,s),o)});return u}d(D,"groundVars");function j(r,e,a=m){let i=[],u=r.modes?[["light",r.modes.light],["dark",r.modes.dark]]:[["light",r]];for(let n of e)for(let[o,t]of u){let s=R(t,n),c=D(r.modes?{...t,modes:r.modes}:t,s);for(let[l,A]of Object.entries(c)){if(l===f()||l.includes("-edge-")||l.endsWith("-disabled"))continue;let _=p(A,s);_<a&&i.push({ground:n,mode:o,variable:l,ink:A,ratio:_})}}return i}d(j,"auditGroundVars");export{G as a,v as b,C as c,f as d,U as e,V as f,N as g,D as h,j as i};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import{d as m}from"./chunk-4KW43QHY.esm.js";import{a as d}from"./chunk-JWNC52FT.esm.js";import{c as p}from"./chunk-3PLVWHLK.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
|
+
appearance: none;
|
|
3
|
+
-webkit-appearance: none;
|
|
4
|
+
-moz-appearance: none;
|
|
5
|
+
|
|
6
|
+
display: block;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
width: ${({$width:e})=>typeof e=="number"?`${e}px`:e!=null?e:"100%"};
|
|
9
|
+
height: ${e=>s(e).height}px;
|
|
10
|
+
|
|
11
|
+
font-family: ${({theme:e})=>e.font.fontFamily.main};
|
|
12
|
+
font-size: ${({theme:e})=>e.font.fontSize.small};
|
|
13
|
+
line-height: ${({theme:e})=>e.font.lineHeight.close};
|
|
14
|
+
|
|
15
|
+
background-color: ${({theme:e})=>e.colors.surface.paper};
|
|
16
|
+
border-radius: ${({theme:e,$radius:o})=>e.border.borderRadius[o]};
|
|
17
|
+
|
|
18
|
+
/* Left padding = size token; right padding reserves room for the chevron. */
|
|
19
|
+
padding: ${e=>e.theme.spacing("zero",s(e).px)};
|
|
20
|
+
padding-right: ${e=>`calc(${e.theme.spacing(s(e).px)} + 1.25em)`};
|
|
21
|
+
|
|
22
|
+
outline: none;
|
|
23
|
+
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
transition: ${({theme:e})=>e.animation.transitions.short};
|
|
26
|
+
|
|
27
|
+
background-image: ${({theme:e})=>u(e.colors.neutral[100])};
|
|
28
|
+
background-repeat: no-repeat;
|
|
29
|
+
background-position: right ${e=>e.theme.spacing(s(e).px)} center;
|
|
30
|
+
|
|
31
|
+
${k}
|
|
32
|
+
${m}
|
|
33
|
+
${$}
|
|
34
|
+
|
|
35
|
+
/* Force readable native option colors — the OS popup inherits these. */
|
|
36
|
+
& option {
|
|
37
|
+
color: ${({theme:e})=>e.colors.ink.primary};
|
|
38
|
+
background-color: ${({theme:e})=>e.colors.surface.paper};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:disabled {
|
|
42
|
+
/* Fade the chevron in step with the disabled text. */
|
|
43
|
+
background-image: ${({theme:e})=>u(e.colors.disabled.color)};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Grid-item placement — the native root neither emits nor strips these, so
|
|
47
|
+
the factory interpolates the CSS here (the System \`styled\` withholds the
|
|
48
|
+
keys from the DOM via its \`shouldForwardProp\`). */
|
|
49
|
+
${d({})}
|
|
50
|
+
`;a.displayName="select";import{forwardRef as v}from"react";import{jsx as f}from"react/jsx-runtime";var b=v(({options:e,size:o="medium",variant:r,borderRadius:l="xs",width:n,...g},h)=>{let S=r!==void 0,y=r!=null?r:"default";return f(a,{ref:h,$size:o,$variant:y,$variantExplicit:S,$radius:l,$width:n,...g,children:e.map(c=>f("option",{value:c.value,children:c.label},String(c.value)))})});b.displayName="Select";export{a,b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b as P}from"./chunk-ZDB7ECI3.esm.js";import{a as p,b as f}from"./chunk-P3XOIBAC.esm.js";import{ga as g,o as T}from"./chunk-DAT6GD4T.esm.js";import{a as v}from"./chunk-IZHCHFTU.esm.js";import{d as C}from"./chunk-3PLVWHLK.esm.js";import{b as y}from"./chunk-ODL5JUYM.esm.js";import{b as u}from"./chunk-C7U4X56I.esm.js";import{a as S}from"./chunk-EJ245MA7.esm.js";import{j as x}from"./chunk-REPFMEFA.esm.js";import{b as l,f as w,g as I}from"./chunk-AXUWC2WH.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";function N(){return l(["color:var(--dark-color);border-color:var(--border-color);"," &:focus,&:hover{","}&:focus-visible{outline:2px solid var(--base-color);outline-offset:2px;}&:focus + ","{color:var(--base-color);}"],u({deep:-1}),u({deep:0}),p)}s(N,"inputVariantStyle");var $=l(["&::placeholder{color:",";}&:disabled{&::placeholder{color:var(--disabled-color);}}"],({theme:o})=>o.colors.ink.muted),L=l(["&:disabled,&:read-only{border:1px solid var(--disabled-bg);background-color:var(--disabled-bg);color:var(--disabled-color);}&:read-only{","}"],u({deep:0}));function j({theme:o,$variantExplicit:r}){var e,i,n;if(r)return null;let t=(n=(i=(e=o.colors.danger)==null?void 0:e.base)!=null?i:o.colors.baseDark)!=null?n:"#000";return l(["&:user-invalid{border-color:",";}"],t)}s(j,"userInvalidBorderStyle");function q({iconPosition:o}){return o==="left"?l(["& ~ ",",& ~ ","{left:1em;right:unset;}"],a,p):null}s(q,"invertIconPosition");var G=l(["&:disabled ~ ","{color:var(--disabled-color);}&:disabled ~ ","{pointer-events:none;","}& ~ ","{width:intrinsic;","}& ~ ",",& ~ ","{color:var(--icon-color);z-index:1;position:absolute;align-self:center;right:1em;& > g{fill:var(--icon-color);}}"],p,a,y(()=>({bgColor:"wash.hover"})),a,y(()=>({bgColor:"wash.pressed"})),a,p),B=I(C.input).attrs(o=>({fontFamily:"main",lineHeight:"tight",bgColor:"surface.paper",borderWidth:"thin",borderStyle:"solid",px:"small",...o})).withConfig({componentId:"sc-8elel8-0"})(["-webkit-appearance:none;display:block;width:100%;outline:none;transition:",";"," "," ",";",";",";",";&[type='date']::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;right:0;bottom:0;width:auto;height:auto;opacity:0;}&[type='number']::-webkit-outer-spin-button,&[type='number']::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}"],({theme:o})=>o.animation.transitions.short,N,j,G,q,L,$),h=I(v).withConfig({componentId:"sc-8elel8-1"})(({theme:o,variant:r})=>{let t=o.colors.primary;r==="error"?t=o.colors.danger:r==="success"&&(t=o.colors.success);let{base:e,dark:i}=t;return{display:"flex",position:"relative",isolation:"isolate","--base-color":e,"--dark-color":r==="default"?o.colors.ink.primary:S(o,n=>{var c,d;return x((d=(c=n.colors[r==="error"?"danger":"success"])==null?void 0:c.dark)!=null?d:n.colors.ink.primary,n.colors.surface.paper)}),"--disabled-bg":o.colors.disabled.fill,"--disabled-color":o.colors.disabled.color,"--icon-color":r==="default"?o.colors.ink.muted:e,"--border-color":r==="default"?o.colors.edge.border:e}});h.displayName="input";import{forwardRef as J}from"react";import{jsx as m}from"react/jsx-runtime";function W({icon:o,variant:r,clearable:t,reset:e,value:i,readOnly:n}){return t&&e&&i&&!n?m(P,{p:"micro",type:"button",borderWidth:"none",variant:"linked",onClick:e,"data-testid":"input-reset-button",icon:m(f,{size:"small",color:"grayscale.0",icon:g})}):o||(r==="error"?m(f,{icon:g,"data-testid":"input-icon-error"}):r==="success"?m(f,{icon:T,"data-testid":"input-icon-success"}):null)}s(W,"getIconComponent");import{jsx as K,jsxs as O}from"react/jsx-runtime";var D=J(({value:o,variant:r,iconPosition:t="right",size:e="medium",...i},n)=>{let{disabled:c,width:d,style:E,area:F,alignSelf:z,justifySelf:A,...R}=i,V=w(),H=r!==void 0,b=r!=null?r:"default",k=W({...i,value:o,variant:b,size:e,iconPosition:t}),M={...V.component.input.size[e],...k&&{[t==="right"?"pr":"pl"]:"xl"}};return O(h,{variant:b,width:d,flexDirection:"row",area:F,alignSelf:z,justifySelf:A,children:[K(B,{iconPosition:t,disabled:c,variant:b,$variantExplicit:H,...M,...R,...o!==void 0&&{value:o},style:E,ref:n}),k]})});D.displayName="Input";export{N as a,$ as b,L as c,j as d,q as e,B as f,h as g,D as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as n}from"./chunk-
|
|
1
|
+
import{b as n}from"./chunk-ITSDQBLF.esm.js";import{a as m}from"./chunk-EYAGAJRL.esm.js";import{a as i}from"./chunk-IZHCHFTU.esm.js";import{a}from"./chunk-5PLSFFP6.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";function h({size:e,border:t}){let r;switch(e){case"extraSmall":r={height:"0.25rem",borderRadius:"micro",mb:"micro"};break;case"small":r={height:"0.5rem",borderRadius:"xs",mb:"micro"};break;case"large":r={height:"1rem",borderRadius:"md",mb:"small"};break;default:r={height:"0.75rem",borderRadius:"sm",mb:"xs"}}return t||(r.borderRadius=void 0),r}s(h,"progressOverlayProps");var x=o(a).attrs(h).withConfig({componentId:"sc-13s1fh5-0"})(["background:var(--bg-overlay);overflow:hidden;width:100%;"]),B=o(a).withConfig({componentId:"sc-13s1fh5-1"})(["height:100%;background:var(--bg-progress);transition:",";"],({theme:e})=>e.animation.transitions.short);function l({color:e,theme:t}){let{base:r,dark:c,light:g}=n(t,e);return{"--text-color":c,"--bg-overlay":g,"--bg-progress":r}}s(l,"getProgressColor");var C=o(i).withConfig({componentId:"sc-13s1fh5-2"})([""," ","{color:var(--text-color);}"],l,m);export{x as a,B as b,l as c,C as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-5PLSFFP6.esm.js";import{g as e}from"./chunk-AXUWC2WH.esm.js";var a=e(r).attrs(({flat:o,...t})=>({p:"medium",borderRadius:"micro",...o?{}:{bgColor:"surface.paper",deep:2},...t})).withConfig({componentId:"sc-5vfy6v-0"})(["display:flex;"]);export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as o}from"./chunk-3PLVWHLK.esm.js";var t=o.div,n=t;export{t as a,n as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as l}from"./chunk-G5Z7USXC.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";import{createElement as m,useEffect as g}from"react";function A(t,e){g(()=>{let n=`apl_deprecated_${t}`;l&&l[n]},[t])}o(A,"useDeprecated");function O(t){return t?typeof t=="string"?t:`${t}px`:0}o(O,"toPixel");function C(t){return Array.isArray(t)?t:[].concat(t)}o(C,"toArray");function M(t){return typeof t=="function"}o(M,"isFunction");function u(t){return t!==null&&typeof t=="object"}o(u,"isObject");function w(t){return u(t)&&Object.keys(t).length===0}o(w,"isObjectEmpty");function N(t){return Object.prototype.toString.call(t)==="[object String]"}o(N,"isString");function j(t){return Array.isArray(t)&&t.length===0}o(j,"isEmptyArray");function R(t){return t&&u(t)&&u(t.target)}o(R,"isInputEvent");function $(t,e){return new DOMParser().parseFromString(t,"text/html").getElementsByTagName(e)}o($,"parseHtmlString");function d(t){let e=[],{length:n}=t;for(let s=0;s<n;s++){let r=t[s],c={};r!=null&&r.hasAttributes()&&Array.from(r==null?void 0:r.attributes).forEach(({name:a,value:f})=>{switch(a){case"class":case"style":break;default:c[a]=f}});let i=null;if(r!=null&&r.children&&(r!=null&&r.children.length))i=d(r.children);else if(r.hasChildNodes()){let{textContent:a}=Array.from(r.childNodes).find(f=>f.nodeType===Node.TEXT_NODE)||{};a&&(i=a)}n&&(c.key=s),e.push(m(r.tagName,c,i))}return e.length>1?e:e[0]}o(d,"domToReact");var x=o((...t)=>t.length?t.reduce((e,n)=>Array.isArray(n)?[...e,...x(...n)]:[...e,n],[]):[],"flatAll");function _(t,e){return Object.keys(e).reduce((n,s)=>(n[s]=t(e[s],s,e),n),{})}o(_,"mapObjIndexed");function z(t,e,n){let r=(Array.isArray(t)?t:t.split(".")).reduce((c,i)=>c&&c[i],e);return u(r)&&n?r[n]:r}o(z,"getValue");var p=new WeakMap,y=0,h=o(t=>{if(t===null)return"null";let e=typeof t;if(e==="object"||e==="function"){let n=p.get(t);return n===void 0&&(y+=1,n=`#${y}`,p.set(t,n)),n}return`${e}:${String(t)}`},"keyPart"),b=5e3;function H(t){let e=new Map,n=o((...s)=>{let r=s.map(h).join("|");if(e.has(r))return e.get(r);let c=t(...s);return e.size>=b&&e.clear(),e.set(r,c),c},"memoizedFn");return n.clearCache=()=>{e=new Map},n}o(H,"memoize");var T=o((t,e)=>n=>n.replace(/\D/g,"").split("").reduce((c,i,a)=>`${c}${(t[a]||"")+i}`,"").substr(0,e),"maskContructor"),F=o(t=>{let e=0,{length:n}=t,s={};for(let r=0;r<n;r++){let c=t[r];if(c!=="0"){let i=r-Object.keys(s).length-e;s[i]?(s[i]+=c,e++):s[i]=c}}return T(s,n)},"createMask");export{A as a,O as b,C as c,M as d,u as e,w as f,N as g,j as h,R as i,$ as j,d as k,x as l,_ as m,z as n,H as o,T as p,F as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b}from"./chunk-
|
|
1
|
+
import{b}from"./chunk-E2U6IFPB.esm.js";import{b as r}from"./chunk-G5Z7USXC.esm.js";import{a as f}from"./chunk-GZONWSRB.esm.js";import{useEffect as I,useRef as p,useState as O}from"react";function x({root:s=null,threshold:c=.5,rootMargin:o="0px"},i){let[n,l]=O(null),e=p(null),t=b(()=>{i&&i()});return I(()=>{var u;return"IntersectionObserver"in r?(e.current&&e.current.disconnect(),r.IntersectionObserver&&(e.current=new r.IntersectionObserver(v=>{v.forEach(({isIntersecting:m})=>{m&&t()})},{root:s,rootMargin:o,threshold:c})),n&&((u=e.current)==null||u.observe(n))):t(),()=>{e.current&&e.current.disconnect()}},[n,s,o,c,t]),[l]}f(x,"useIntersect");export{x as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n,b as a,d as f}from"./chunk-J4VMAQM3.esm.js";import{b as c}from"./chunk-P3XOIBAC.esm.js";import{o as i}from"./chunk-DAT6GD4T.esm.js";import{a as m}from"./chunk-EYAGAJRL.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";var p=r(({label:e=null,labelProps:x,variant:l="default",color:C,area:k,alignSelf:h,justifySelf:b,...t})=>s(f,{variant:l,$color:C,disabled:t.disabled,area:k,alignSelf:h,justifySelf:b,children:[o(n,{...t,type:"checkbox"}),o(a,{children:o(c,{icon:i,size:"small"})}),typeof e=="string"?o(m,{fontSize:"small",color:"ink.primary",...x,children:e}):e]}),"CheckboxComponent");p.displayName="Checkbox";export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as se}from"./chunk-4KW43QHY.esm.js";import{a as le,b as j}from"./chunk-GAQ3CPOM.esm.js";import{a as Y,b as ee}from"./chunk-ZDB7ECI3.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-P3XOIBAC.esm.js";import{b as J}from"./chunk-WDGATQZG.esm.js";import{I as ne,J as re,ga as ae,ja as B}from"./chunk-DAT6GD4T.esm.js";import{f as Q}from"./chunk-ITSDQBLF.esm.js";import{e as I}from"./chunk-EYAGAJRL.esm.js";import{b as X}from"./chunk-W4NSHFN4.esm.js";import{a as k}from"./chunk-LCCVFIPZ.esm.js";import{a as v}from"./chunk-IZHCHFTU.esm.js";import{a as U}from"./chunk-5PLSFFP6.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 de=i(({theme:e,readOnly:t,disabled:o,active:n})=>{if(t||o)return null;let c=e.colors.primary.base;return{borderWidth:1,borderStyle:"dashed",borderColor:n?c:"transparent","&:hover":{borderColor:c}}},"activeStyle"),me=i(({disabled:e,readOnly:t})=>(e||t)&&{cursor:"not-allowed",pointerEvents:"none",userSelect:"none"},"disabledStyle"),ce=h(U).withConfig({componentId:"sc-1erdx9t-0"})([""," "," container-type:inline-size;"],de,me),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(v).withConfig({componentId:"sc-1erdx9t-4"})(["min-width:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;& ","{padding:"," 0;}& "," + & ","{margin-top:",";}"],D,({theme:e})=>e.spacing("xs"),D,D,({theme:e})=>e.spacing("medium")),pe=h(I).withConfig({componentId:"sc-1erdx9t-5"})(["flex:1;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),ue=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),ge=h(U).withConfig({componentId:"sc-1erdx9t-8"})(["display:grid;"," "," ",""],le,de,me),Fe=h(U).withConfig({componentId:"sc-1erdx9t-9"})(["display:flex;flex-direction:column;"]),Ce=h(j).withConfig({componentId:"sc-1erdx9t-10"})(["",""],K({flex:"fluid"}));import{forwardRef as $e,useCallback as Me,useEffect as He,useImperativeHandle as We,useRef as Ge,useState as Ze}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 xe(e){let{fieldName:t,file:o,requestConfig:n}=e,{endpoint:c,timeout:b,auth:u,params:F,withCredentials:m,responseType:d,headers:p,formDataParams:s}=n;return new Promise((f,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={...p};if(u){let g=u.username||"",P=unescape(encodeURIComponent(u.password))||"",L=`${g}:${P}`;l.Authorization=`Basic ${btoa(L)}`}Object.keys(l).forEach(g=>{let P=l[g];P!==void 0&&a.setRequestHeader(g,P)})}m!==void 0&&(a.withCredentials=!!m),a.responseType=d||"json";let w=0;a.upload.addEventListener("progress",l=>{e.onProgress&&(w=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(w,!0,l),f(l),a=null},a.onerror=()=>{e.onProgress&&e.onProgress(w,!1),y(),a=null},a.send(C)})}i(xe,"uploadFile");import{useEffect as Ee,useState as Ve}from"react";function ye(e,t){let[o,n]=Ve(null);return Ee(()=>{let c="";return e&&t&&t(e)&&(c=URL.createObjectURL(e),n(c)),()=>{URL.revokeObjectURL(c)}},[e,t]),o}i(ye,"useObjectUrl");import{Fragment as Ne,jsx as r,jsxs as x}from"react/jsx-runtime";function he(e){let{disabled:t,acceptLabel:o,isDragging:n,events:c,files:b,removeFile:u,removeFileLabel:F,openFileDialogButton:m,readOnly:d,style:p,className:s,inputFile:f}=e,y=b.length>0,a=y&&r(fe,{flexDirection:"column",flex:"fluid",p:"large",children:b.map(C=>r(ve,{removeFile:u,removeFileLabel:F,readOnly:d,...C},C.id))});return x(ce,{...c,style:p,className:s,active:n,disabled:t,readOnly:d,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",deep:2,children:[f,x(v,{cq:{md:{flexDirection:"row",height:300,maxHeight:300}},children:[x(Fe,{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:[r(O,{icon:B,size:16,color:d||t?"ink.disabled":"secondary"}),o&&r(I,{variant:"meta",fontWeight:"bold",children:o})]}),!d&&x(Ne,{children:[r(I,{variant:"p",children:"Arraste e solte aqui"}),r(I,{variant:"p",fontWeight:"bold",children:"ou"}),m]})]}),a]}),n&&x(N,{absoluteFill:!0,children:[r(q,{absoluteFill:!0,bgColor:"surface.paper"}),x(v,{gap:"small",justifyContent:"center",alignItems:"center",p:8,children:[r(O,{icon:B,color:"information.dark",size:9}),r(I,{variant:"p",color:"information.dark",children:"Arraste e solte aqui"})]})]})]})}i(he,"UploadCardRegular");function be(e){let{disabled:t,isDragging:o,events:n,files:c,removeFile:b,removeFileLabel:u,style:F,className:m,readOnly:d,openFileDialogButton:p,inputFile:s}=e;return x(ge,{...n,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,r(v,{flexDirection:"row",justifyContent:"start",alignItems:"start",children:p}),r(Ce,{medias:{xs:{gap:"medium",columns:"repeat(auto-fill, minmax(240px, 1fr))"}},children:c.map(f=>r(ve,{removeFile:b,removeFileLabel:u,readOnly:d,...f},f.id))}),o&&x(N,{children:[r(q,{}),x(v,{flexDirection:"row",gap:"small",justifyContent:"center",alignItems:"center",children:[r(O,{icon:B,color:"information.dark",size:6}),r(I,{variant:"p",children:"Arraste e solte aqui"})]})]})]})}i(be,"UploadCardCompact");function ve({removeFile:e,removeFileLabel:t="Remover arquivo",readOnly:o,...n}){let c=n.uploadLoaded?`${n.uploadLoaded} de`:"";return x(D,{medias:{xs:{gap:"micro",columns:"2rem 1fr"}},children:[r(je,{...n}),x(v,{children:[x(v,{flexDirection:"row",justifyContent:"between",children:[r(pe,{variant:"meta",children:r("b",{children:n.fileName})}),!o&&r(ee,{onClick:()=>e(n.id),icon:r(O,{icon:ae}),label:`${t} ${n.fileName}`,variant:"linked"})]}),n.uploadPercentage&&r(ue,{style:{backgroundSize:n.uploadPercentage}}),x(v,{flexDirection:"row",justifyContent:"between",children:[r(I,{variant:"meta",children:`${c} ${n.fileSize}`}),n.uploadPercentage&&r(I,{variant:"meta",children:`Enviando ${n.uploadPercentage}`})]})]})]})}i(ve,"FileItemComponent");function je({file:e}){let t=ye(e,o=>o.type.startsWith("image"));return t?r(z,{children:r(J,{src:t,cover:!0})}):e.name.endsWith(".pdf")?r(z,{children:r(O,{icon:re})}):r(z,{children:r(O,{icon:ne})})}i(je,"Preview");import{useState as qe}from"react";function Ie(e){let[t,o]=qe({files:[],type:null,payload:null});return{files:t,setInitialFiles:i(m=>{var f;let d=M(m,e.maxSize),s={files:H(d),type:"ADD_INITIAL_FILES"};(f=e.onChange)==null||f.call(e,s),o(s)},"setInitialFiles"),removeFile:i(m=>{var p;let d={type:"REMOVE",files:t.files.filter(s=>s.id!==m),payload:t.files.find(s=>s.id===m)};(p=e.onChange)==null||p.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),p=H(d),s=[...t.files,...p],f={files:s,type:"ADD",payload:p};e.single&&(s=p,f={files:s,type:"REPLACE",payload:s[0]}),(y=e.onChange)==null||y.call(e,f),o(f)},"addFiles"),updateFileProgress:i((m,d,p,s)=>{var l;let f=t.files.find(g=>g.id===m),y=i(()=>({uploadCompleted:p,uploadError:!p,uploadResponse:s||void 0}),"uploadResponse"),C={...f,...d!==void 0?i(()=>({uploadLoaded:$(d),uploadPercentage:`${Math.min(d/f.file.size*100,100).toFixed(0)}%`}),"progressStatus")():{},...p!==void 0?y():{}},w={files:t.files.map(g=>g.id===C.id?C:g),type:"UPDATE",payload:C};(l=e.onChange)==null||l.call(e,w),o(w)},"updateFileProgress")}}i(Ie,"useFileState");import{jsx as A}from"react/jsx-runtime";var _e=$e((e,t)=>{let{accept:o,maxSize:n,singleFile:c,uploadConfig:b,onUnsupportedFile:u,customButton:F,style:m,className:d,onChange:p,initialFiles:s,name:f}=e,[y,a]=Ze(!1),{active:C,enable:R,disable:w}=te(),{files:l,setInitialFiles:g,addFiles:P,removeFile:L,removeAll:Pe,updateFileProgress:W}=Ie({single:c,maxSize:n,onChange:p}),{getFiles:Ue}=ie({accept:o,single:c,onFilesSelect:P,onUnsupportedFile:u}),{isDragging:G,events:Se}=oe({accept:o,single:c,onDrop:P});He(()=>{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 Oe=Me(async S=>{if(l.files.length){R();let De=l.files.map(({id:Te,file:ke})=>xe({file:ke,fieldName:S.formDataFileKey||"file",requestConfig:{...b,...S},onProgress:i((Be,ze,Ae)=>{W(Te,Be,ze,Ae)},"onProgress")})),Le=await Promise.all(De);return w(),Le}return[]},[l.files,b,R,W,w]);We(t,()=>({submit:Oe,addFiles:P,removeFile:L,removeAll:Pe,files:l.files}));let T=Ge(null),E=i(()=>{var S;(S=T==null?void 0:T.current)==null||S.click()},"openFileDialog"),Re=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:Se,isDragging:G},files:l.files,style:m,className:d,removeFile:L,openFileDialog:E,openFileDialogButton:Re,name:f},_=A(se,{type:"file",isHidden:!0,position:"absolute",name:f,id:f,ref:T,onChange:Ue,multiple:!c,accept:Array.isArray(o)?o.join(","):void 0});return e.compact?A(be,{...Z,inputFile:_}):A(he,{...Z,inputFile:_})});_e.displayName="UploadCard";import{useCallback as Ke,useState as we}from"react";var Mt=i(()=>{let[e,t]=we([]),[o,n]=we([]);return{onFilesChange:Ke(u=>{if(!u.payload)return;let{payload:F}=u;u.type==="ADD"?n(m=>V(m,F)):u.type==="REMOVE"&&t(m=>V(m,F))},[]),removedFiles:e,addedFiles:o,clear:i(u=>{u==="removedFiles"&&t([]),u==="addedFiles"&&n([])},"clear")}},"useFileControl");export{ce as a,N as b,q as c,D as d,fe as e,pe as f,ue as g,z as h,ge as i,Fe as j,Ce as k,_e as l,Mt as m};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{b as d}from"./chunk-GAQ3CPOM.esm.js";import{a}from"./chunk-IZHCHFTU.esm.js";import{a as i}from"./chunk-5PLSFFP6.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";import{a as e}from"./chunk-GZONWSRB.esm.js";var m={xs:{columns:"minmax(0, 1fr)",rows:"100%",areas:`
|
|
2
|
+
"content"
|
|
3
|
+
`},md:{columns:"200px minmax(0, 1fr)",rows:"100%",areas:`
|
|
4
|
+
"sidebar content"
|
|
5
|
+
`}};var n=o(d).attrs({medias:m}).withConfig({componentId:"sc-191lt0b-0"})(["height:100%;"]);import{jsx as t,jsxs as f}from"react/jsx-runtime";function s({layoutComponents:r}){return f(n,{children:[r.sidebar&&t(i,{area:"sidebar",display:"none",md_display:"flex",children:t(r.sidebar,{})}),t(a,{area:"content",width:"100%",justifyContent:"center",md_justifyContent:"start",children:r.content&&t(r.content,{})})]})}e(s,"SideBarLayout");s.displayName="SideBarLayout";export{m as a,n as b,s as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k}from"./chunk-
|
|
1
|
+
import{c as k}from"./chunk-VFCCRDG4.esm.js";import{b as h}from"./chunk-P3XOIBAC.esm.js";import{o as C}from"./chunk-DAT6GD4T.esm.js";import{e as b}from"./chunk-EYAGAJRL.esm.js";import{b as g}from"./chunk-W4NSHFN4.esm.js";import{a as w}from"./chunk-IZHCHFTU.esm.js";import{a as x}from"./chunk-5PLSFFP6.esm.js";import{b as y}from"./chunk-ODL5JUYM.esm.js";import{g as S}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as v,useEffect as D,useState as H}from"react";var T=S(w).withConfig({componentId:"sc-1bknes7-0"})(["list-style:none;padding:0;margin:0;"]),E=S(x).withConfig({componentId:"sc-1bknes7-1"})(["display:flex;padding:8px 12px;cursor:pointer;&:hover{","}",""],y(({isSelected:t})=>!t&&{bgColor:"muted"}),y(({isSelected:t})=>t&&{bgColor:"wash.selected"}));import{jsx as a,jsxs as U}from"react/jsx-runtime";var M=l(({item:t,showCheckIcon:d,action:p})=>{var f;if(!t.title)throw new Error("You need to pass a title to you object inside the list");let m=d&&t.isSelected&&!t.to,i=l(()=>!t.to&&p(),"onClickItem"),o=U(E,{as:"li",gap:"xs",width:"100%",flexDirection:"row",alignItems:"center",borderRadius:"micro",isSelected:t.isSelected,onClick:i,children:[(f=t.icon)!=null?f:m&&a(h,{icon:C,color:"main"}),a(b,{whiteSpace:"nowrap",children:t.title})]});return t.to?a(k,{href:t.to,children:o}):o},"ListItem"),N=v(({content:t,multiple:d,exclusive:p,showCheckIcon:m,onSelectItems:i,onItemClick:o,...f},R)=>{let[u,I]=H(()=>t.map(e=>({id:g(5),isSelected:!1,...e})));D(()=>{I(e=>e.map((s,L)=>{var n;let r=(n=t[L])==null?void 0:n.isSelected;return r===void 0||r===s.isSelected?s:{...s,isSelected:r}}))},[t]);let B=l(e=>()=>{var n;let s=e.id,L=p&&!d?!0:!e.isSelected,r=u.map(c=>c.id===s?{...c,isSelected:L}:{...c,isSelected:d?c.isSelected:!1});if(I(r),i==null||i(r),o==null||o(e),e.action){let{action:c,icon:Y,...F}=e;(n=e.action)==null||n.call(e,F)}},"toggleItem");return a(T,{as:"ul",gap:"micro",...f,ref:R,children:u.map(e=>a(M,{item:e,showCheckIcon:m,action:B(e)},e.id))})});N.displayName="List";export{T as a,E as b,N as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as T,f as l}from"./chunk-
|
|
1
|
+
import{e as T,f as l}from"./chunk-3WXII2F3.esm.js";import{a as c}from"./chunk-EJ245MA7.esm.js";import{h as d,j as C,n as u}from"./chunk-REPFMEFA.esm.js";import{a as F}from"./chunk-GZONWSRB.esm.js";var E=new RegExp(`^neutral\\.(${u.join("|")})$`),I=["color","contrast","readable"],N=F(b=>g=>{var i,p;let{theme:a,...o}={...b,...g},r;if(o.contrast){let{contrast:t}=o;r=c(a,e=>e.colors.getContrastColor(e.colors(t)))}else if(o.color){let t=o.color,e=(p=o.readable)!=null?p:E.test(t)||((i=l(t))==null?void 0:i[0])==="tx";if(e){let h=typeof o.readable=="number"?o.readable:d;r=c(a,m=>{var y;let n=m.colors(t);return n&&C(n,(y=m.colors.baseLight)!=null?y:"#FFFFFF",h)})}else r=a.colors(t);let f=r?l(t):null;f&&(e||t.startsWith("ink."))&&(r=T(r,...f))}if(!o.opacity)return{color:r};let s;return o.opacity==="high"?s=.9:s=o.opacity==="md"?.5:.1,{color:r,opacity:s}},"ColorFactory");export{I as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as C}from"./chunk-
|
|
1
|
+
import{a as C}from"./chunk-7PHMFL32.esm.js";import{a}from"./chunk-CDRLVSLF.esm.js";import{b}from"./chunk-X62RTM6B.esm.js";import{a as t}from"./chunk-IZHCHFTU.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 i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-5PLSFFP6.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,3 +1,3 @@
|
|
|
1
|
-
import{b as a}from"./chunk-
|
|
1
|
+
import{b as a}from"./chunk-GAQ3CPOM.esm.js";import{a as i}from"./chunk-IZHCHFTU.esm.js";import{g as e}from"./chunk-AXUWC2WH.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var f={xs:{columns:"100%",rows:"100%",areas:`
|
|
2
2
|
"content"
|
|
3
3
|
`}};var m=e(a).attrs({medias:f}).withConfig({componentId:"sc-11xb4nx-0"})(["width:100%;height:100%;"]);import{jsx as o}from"react/jsx-runtime";var n=r(({layoutComponents:t})=>o(m,{children:o(i,{area:"content",width:"100%",justifyContent:"center",md_justifyContent:"start",children:t&&t.content&&o(t.content,{})})}),"DefaultLayout");n.displayName="DefaultLayout";export{f as a,m as b,n as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as y}from"./chunk-
|
|
1
|
+
import{a as y}from"./chunk-EJ245MA7.esm.js";import{f as m}from"./chunk-REPFMEFA.esm.js";import{a as p}from"./chunk-GZONWSRB.esm.js";var g=["deep","deepColor","noShadow"];function d({position:i="",distance:n=0,proximity:t=0,color:e="",intensity:r=0}){return{geometry:`${i} 0px 0px ${n}px ${t}px`.trim(),color:`rgba(${e}, ${r})`}}p(d,"shadowParts");function l(i,n,t){let{deep:e}=i,r=e.color.regular;if(t){let s=i.colors(t);r=typeof s=="string"?m(s):r}let o={color:r,position:e.position.outter,distance:e.distance.flat,proximity:e.proximity.flat,intensity:e.intensity.medium};switch(n){case-1:return{...o,position:e.position.internal,distance:e.distance.micro,proximity:e.proximity.flat,intensity:e.intensity.high};case 1:return{...o,proximity:e.proximity.flat,distance:e.distance.micro};case 2:return{...o,proximity:e.proximity.close,distance:e.distance.xs};case 3:return{...o,distance:e.distance.sm,proximity:e.proximity.medium};case 4:return{...o,distance:e.distance.md,proximity:e.proximity.close};case 5:return{...o,distance:e.distance.lg,proximity:e.proximity.close};case 6:return{...o,distance:e.distance.xl,proximity:e.proximity.close};default:return o}}p(l,"shadowFor");var D=p(i=>n=>{var c,a;let{theme:t,deep:e,deepColor:r,noShadow:o}={...i,...n};if(e===void 0||o)return null;let{geometry:s}=d(l((a=(c=t.modes)==null?void 0:c.light)!=null?a:t,e,r)),x=y(t,f=>d(l(f,e,r)).color);return{boxShadow:`${s} ${x}`}},"DeepFactory");export{g as a,D as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as F}from"./chunk-43YSWDK6.esm.js";import{a as w,c as E}from"./chunk-LA7VVT23.esm.js";import{f as N,h as k}from"./chunk-4KW43QHY.esm.js";import{a as T}from"./chunk-EYAGAJRL.esm.js";import{a as v}from"./chunk-IZHCHFTU.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";import{forwardRef as H,useEffect as V,useMemo as A,useState as U}from"react";function s(e){return e.replace(/\D/g,"")}c(s,"removeNonDigits");function B(e,r="."){return s(e).replace(/\B(?=(\d{3})+(?!\d))/g,r)}c(B,"formatNumber");function b(e,r){let t=e;if(r.prefix&&t&&(t=e.replaceAll(r.prefix,"").trim()),t==="")return t;let{decimal:n,thousand:o,validate:m}=r,l=t.indexOf(n);if(l>=0){let f=t.substring(0,l),u=t.substring(l);f=B(f,o),m&&(u=`${u}00`),u=s(u).substring(0,2),t=`${f}${n}${u}`}else t=B(t),m&&(t+=`${n}00`);return t}c(b,"formatCurrency");function G(e,r=","){if(typeof e=="number")return e;try{let t=e.indexOf(r);if(t>=0){let n=s(e.substring(0,t)),o=s(e.substring(t));return+`${n}.${o}`}return Number(s(e))}catch(t){return console.log("Failed to convert string to Number"),0}}c(G,"currencyToNumber");function g(e,r){let t=e;return typeof t=="number"&&(t=t.toLocaleString("pt-BR",{style:"decimal"})),b(t,{validate:!0,...r})}c(g,"getInitialCurrencyValue");var M=d(T).withConfig({componentId:"sc-1xhba8m-0"})(["position:absolute;right:1em;align-self:center;pointer-events:none;color:var(--icon-color);z-index:1;"]),P=d(v).withConfig({componentId:"sc-1xhba8m-1"})(["","{border-bottom-left-radius:0;border-bottom-right-radius:0;}","{border-top-left-radius:0;border-top-right-radius:0;}"],N,w);import{jsx as y,jsxs as q}from"react/jsx-runtime";var W=H(({onChange:e,value:r,decimal:t=",",thousand:n=".",prefix:o="R$",suffix:m,options:l,optionValue:f,onOptionChange:u,optionsLabel:R="Percent of balance",...z},D)=>{let[x,p]=U(()=>r?g(r,{decimal:t,thousand:n,prefix:o}):"");V(()=>{p(i=>{let a=r?g(r,{decimal:t,thousand:n,prefix:o}):"";return a!==i?a:i})},[r,t,n,o]);let S=A(()=>F(i=>e==null?void 0:e(i),250),[e]),I=c((i,a)=>{var h;let $=b((h=i.target.value)!=null?h:"",{validate:a,decimal:t,thousand:n,prefix:o});p($),S($)},"handleChange"),L=c(()=>{p(""),S("")},"resetValues"),O=o?`${o} ${x}`:x,C=y(k,{...z,...m&&{icon:y(M,{fontSize:"xs",fontWeight:"bold","data-testid":"input-currency-suffix",children:m})},ref:D,reset:L,value:O,onChange:I,onBlur:i=>I(i,!0)});return l!=null&&l.length?q(P,{flexDirection:"column",width:"100%",children:[C,y(E,{size:"small",label:R,options:l,value:f!=null?f:"",onChange:i=>u==null?void 0:u(i)})]}):C});W.displayName="InputCurrency";export{b as a,G as b,g as c,W as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as j}from"./chunk-4KW43QHY.esm.js";import{a as ee}from"./chunk-U3GZABRG.esm.js";import{a as Ae}from"./chunk-2FQC32AA.esm.js";import{b as I}from"./chunk-P3XOIBAC.esm.js";import{K as Z,X as Ue,aa as Be,ba as _e,ca as Ge,p as We,r as Oe,w as $e}from"./chunk-DAT6GD4T.esm.js";import{f as le}from"./chunk-ITSDQBLF.esm.js";import{e as P}from"./chunk-EYAGAJRL.esm.js";import{a as F}from"./chunk-IZHCHFTU.esm.js";import{a as h}from"./chunk-5PLSFFP6.esm.js";import{g as Se}from"./chunk-6G22RNUO.esm.js";import{f as He,g as C}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import S from"react";import X from"react";var q=C(h).withConfig({componentId:"sc-npwc89-0"})(({theme:e})=>({margin:0,padding:"0 0.5rem",minHeight:40,lineHeight:1.2,display:"flex",flexDirection:"row",alignItems:"center",color:e.colors.ink.primary,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontFamily:e.font.fontFamily.main})),z=C(h).withConfig({componentId:"sc-npwc89-1"})(["display:flex;flex-direction:row;align-items:stretch;min-width:max-content;border-bottom:1px solid transparent;border-left:1px solid transparent;"]),je=C(z).attrs(e=>({bgColor:"muted",...e})).withConfig({componentId:"sc-npwc89-2"})([""]),qe=C(h).withConfig({componentId:"sc-npwc89-3"})(["& ",":hover{border-bottom-color:"," !important;border-left-color:"," !important;}"],z,({theme:e})=>e.colors.edge.strong,({theme:e})=>e.colors.primary.base),Xe=C(z).withConfig({componentId:"sc-npwc89-4"})(["position:sticky;top:0;z-index:2;background:",";"],({theme:e})=>e.colors.surface.paper),Ye=C(h).withConfig({componentId:"sc-npwc89-5"})(["border-spacing:0;border-top:2px solid ",";border-bottom:1px solid ",";isolation:isolate;overflow:auto;scrollbar-gutter:stable;&[data-border='true'] ","{border-right:1px solid ",";border-left-color:",";border-bottom-color:",";}&[data-border='true'] ",":not(:last-child){border-right:1px solid ",";}&[data-default='true'] ","{border-bottom-color:",";}& > "," > ","{font-weight:600;align-items:center;justify-content:space-between;gap:",";padding-right:",";color:",";}"],({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,z,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,q,({theme:e})=>e.colors.edge.border,z,({theme:e})=>e.colors.muted,z,q,({theme:e})=>e.spacing("xs"),({theme:e})=>e.spacing("xs"),({theme:e})=>e.colors.ink.secondary),Ke=C(h).withConfig({componentId:"sc-npwc89-6"})(["display:none;","{display:inline-flex;align-items:center;flex-shrink:0;}"],({theme:e})=>e.breakpoints.up("sm")),Je=C(h).withConfig({componentId:"sc-npwc89-7"})(["cursor:col-resize;display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:1;touch-action:none;"]),E=C(h).withConfig({componentId:"sc-npwc89-8"})(({theme:e})=>({position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"var(--size)",height:"var(--size)",border:"2px solid var(--border-color)",borderRadius:e.spacing("micro"),"&:after":{content:"''",position:"absolute",display:"none"}})),se=C.input.withConfig({componentId:"sc-npwc89-9"})(["cursor:pointer;position:absolute;opacity:0;height:0;width:0;&:indeterminate ~ ",",&:checked ~ ","{background-color:var(--checked-color);border-color:var(--checked-color);}&:checked ~ ",":after{display:block;left:4px;top:0px;width:4px;height:8px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg);}&:indeterminate ~ ",":after{display:block;left:3px;top:5px;width:9px;height:4px;background-color:white;}&:indeterminate:hover{cursor:wait;}"],E,E,E,E),ce=C(h).withConfig({componentId:"sc-npwc89-10"})(({theme:e})=>({"--checked-color":e.colors.information.base,"--border-color":e.colors.edge.strong,"--size":"18px",position:"relative",minWidth:"var(--size)",minHeight:"var(--size)",width:"fit-content",cursor:"pointer",display:"inline-flex",alignItems:"center",userSelect:"none",paddingLeft:`calc(var(--size) + ${e.spacing("xs")})`})),Qe=C(h).attrs(e=>({bgColor:"surface.sunken",...e})).withConfig({componentId:"sc-npwc89-11"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.ink.primary})),Ze=C(h).withConfig({componentId:"sc-npwc89-12"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:`${e.spacing("xs")} ${e.spacing("small")}`,borderTop:`1px solid ${e.colors.muted}`,gap:e.spacing("small")})),et=C(h).withConfig({componentId:"sc-npwc89-13"})(({theme:e})=>({display:"inline-flex",flexDirection:"row",alignItems:"center",gap:e.spacing("xs"),flexShrink:0})),de=C(h).withConfig({componentId:"sc-npwc89-14"})(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing("xs"),maxHeight:"240px",overflowY:"auto",minWidth:"200px",padding:e.spacing("xs")}));import{jsx as T,jsxs as Fe}from"react/jsx-runtime";var tt={select:"arrIncludesSome",range:"inNumberRange",text:"includesString"};function nt(e,o){let t=X.useRef(null);return X.useCallback((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>e(...n),o)},[e,o])}i(nt,"useDebounce");var Wt=i(({column:e,labels:o})=>{var a,l;let t=X.useMemo(()=>Array.from(e.getFacetedUniqueValues().entries()).sort(([s],[m])=>String(s).localeCompare(String(m))),[e,e.getFilterValue()]),n=(a=e.getFilterValue())!=null?a:[];return Fe(de,{children:[t.length===0&&T(P,{variant:"meta",text:(l=o==null?void 0:o.filterNoValues)!=null?l:"Sem valores"}),t.map(([s,m])=>{let d=String(s),f=n.includes(d);return Fe(ce,{as:"label",children:[T(se,{type:"checkbox",checked:f,onChange:()=>{let c=f?n.filter(N=>N!==d):[...n,d];e.setFilterValue(c.length?c:void 0)}}),T(E,{}),T(P,{variant:"meta",text:`${d} (${m})`})]},d)})]})},"SelectFilter"),Ot=i(({column:e,labels:o})=>{var O,$;let[t,n]=(O=e.getFacetedMinMaxValues())!=null?O:[0,0],a=o!=null&&o.filterRangeMin?o.filterRangeMin(t):`min (${t})`,l=o!=null&&o.filterRangeMax?o.filterRangeMax(n):`max (${n})`,s=($=e.getFilterValue())!=null?$:[void 0,void 0],m=nt(k=>{let[R,U]=k,B=R===void 0&&U===void 0;e.setFilterValue(B?void 0:k)},200),[d,f]=X.useState(s[0]!==void 0?String(s[0]):""),[c,N]=X.useState(s[1]!==void 0?String(s[1]):"");return T(de,{children:Fe(F,{flexDirection:"row",gap:"xs",alignItems:"center",children:[T(j,{type:"number",placeholder:a,value:d,onChange:k=>{let R=k.target.value;f(R),m([R===""?void 0:Number(R),c===""?void 0:Number(c)])}}),T(P,{variant:"meta",text:"\u2014"}),T(j,{type:"number",placeholder:l,value:c,onChange:k=>{let R=k.target.value;N(R),m([d===""?void 0:Number(d),R===""?void 0:Number(R)])}})]})})},"RangeFilter"),$t=i(({column:e,labels:o})=>{var s,m;let t=(s=e.getFilterValue())!=null?s:"",[n,a]=X.useState(t),l=nt(d=>{e.setFilterValue(d||void 0)},200);return T(de,{children:T(j,{placeholder:(m=o==null?void 0:o.filterPlaceholder)!=null?m:"Filtrar...",value:n,onChange:d=>{let f=d.target.value;a(f),l(f)}})})},"TextFilter"),ot=i((e,o,t,n)=>{switch(e){case"select":return T(Wt,{column:o,onClose:t,labels:n});case"range":return T(Ot,{column:o,onClose:t,labels:n});case"text":return T($t,{column:o,onClose:t,labels:n})}},"filterUIForVariant");import V,{forwardRef as Ut}from"react";import{Fragment as _t,jsx as b,jsxs as pe}from"react/jsx-runtime";var at=Ut((e,o)=>b(Je,{...e,ref:o})),it=i(e=>e==="asc"?Ge:e==="desc"?_e:Be,"getSortIcon"),rt=V.forwardRef(({indeterminate:e,children:o,...t},n)=>{let a=V.useRef(null),l=n||a;return V.useEffect(()=>{l.current&&(l.current.indeterminate=e!=null?e:!1)},[l,e]),pe(ce,{as:"label",children:[o,b(se,{type:"checkbox",ref:l,...t}),b(E,{})]})});function lt(e,o){return e?{id:"expand",size:o!=null?o:48,enableSorting:!1,enableResizing:!1,header:i(()=>null,"header"),cell:i(({row:n})=>n.getCanExpand()?b(I,{icon:n.getIsExpanded()?We:Oe,onClick:n.getToggleExpandedHandler(),style:{cursor:"pointer",marginLeft:`${n.depth*16}px`}}):b("span",{style:{display:"inline-block",marginLeft:`${n.depth*16}px`}}),"cell"),meta:{selectable:!1,align:void 0}}:null}i(lt,"buildExpandColumnDef");function st(e,o){return e?{id:"checkbox",size:o!=null?o:64,enableSorting:!1,enableResizing:!1,header:i(({table:n})=>b(rt,{checked:n.getIsAllRowsSelected(),indeterminate:n.getIsSomeRowsSelected(),onChange:n.getToggleAllRowsSelectedHandler(),"aria-label":Se(e)?void 0:"Select all rows",children:Se(e)?e:void 0}),"header"),cell:i(({row:n})=>{var a,l;return b(rt,{checked:n.getIsSelected(),indeterminate:(l=(a=n.getIsSomeSelected)==null?void 0:a.call(n))!=null?l:!1,onChange:n.getToggleSelectedHandler(),"aria-label":"Select row"})},"cell"),meta:{selectable:!1,align:void 0}}:null}i(st,"buildSelectableColumnDef");function Bt(e,o){let t=V.useRef(null);return V.useCallback((...n)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(()=>e(...n),o)},[e,o])}i(Bt,"useDebounce");var ct=i(({globalFilter:e,setGlobalFilter:o,placeholder:t})=>{let[n,a]=V.useState(e),l=Bt(s=>{o(s||"")},200);return b(j,{clearable:!0,width:"250px",size:"compact",reset:()=>{a(""),l("")},value:n||"",onChange:s=>{a(s.target.value),l(s.target.value)},placeholder:t,"aria-label":t!=null?t:"Search",icon:b(I,{icon:Ue})})},"GlobalFilter"),dt=i(({height:e,emptyIcon:o,emptyTitle:t="Nada foi encontrado",emptyDescription:n})=>b(Qe,{style:{height:e},children:pe(F,{gap:"medium",justifyContent:"center",alignItems:"center",width:"80%",style:{height:e},children:[o,b(P,{textAlign:"center",variant:"h5",text:t}),n&&b(P,{textAlign:"center",variant:"p",text:n})]})}),"EmptyTable");function ue(e,o,t){let[n,a]=V.useState(t),l=e!==void 0,s=l?e:n,m=V.useCallback(d=>{let f=typeof d=="function"?d(s):d;l||a(f),o==null||o(f)},[l,o,s]);return[s,m]}i(ue,"useHybridState");var pt=i(({pageIndex:e,pageSize:o,pageCount:t,rowCount:n,canPreviousPage:a,canNextPage:l,pageSizeOptions:s,onPrevious:m,onNext:d,onPageSizeChange:f,labels:c})=>{var U,B,H,Y,ne;let N=n===0?0:e*o+1,O=Math.min((e+1)*o,n),$=(U=c==null?void 0:c.showingRange)!=null?U:((y,M,me)=>`Mostrando ${y}-${M} de ${me}`),k=(B=c==null?void 0:c.perPageOption)!=null?B:(y=>`${y} por p\xE1gina`),R=(H=c==null?void 0:c.perPageTrigger)!=null?H:(y=>`${y} / p\xE1gina`);return pe(_t,{children:[b(P,{variant:"meta",text:$(N,O,n)}),pe(F,{flexDirection:"row",gap:"small",alignItems:"center",children:[s.length>1&&b(ee,{position:"right",options:s.map(y=>({title:k(y),action:i(()=>f(y),"action")})),children:b(le,{variant:"linked",size:"small",text:R(o)})}),b(le,{variant:"linked",size:"small",disabled:!a,onClick:m,text:(Y=c==null?void 0:c.previous)!=null?Y:"Anterior"}),b(P,{variant:"meta",text:`${e+1} / ${Math.max(t,1)}`}),b(le,{variant:"linked",size:"small",disabled:!l,onClick:d,text:(ne=c==null?void 0:c.next)!=null?ne:"Pr\xF3ximo"})]})]})},"PaginationControls");var Gt=(a=>(a.primary="primary",a.success="success",a.alert="warning",a.error="danger",a))(Gt||{}),jt=(n=>(n.left="flex-start",n.center="center",n.right="flex-end",n))(jt||{});var te={minWidth:30,width:150,maxWidth:400};import{flexRender as ge,getCoreRowModel as ut,getExpandedRowModel as gt,getFacetedMinMaxValues as mt,getFacetedRowModel as ft,getFacetedUniqueValues as bt,getFilteredRowModel as xt,getPaginationRowModel as Ct,getSortedRowModel as ht,useReactTable as Rt}from"@tanstack/react-table";import{useVirtualizer as wt}from"@tanstack/react-virtual";import{Fragment as Xt,jsx as p,jsxs as L}from"react/jsx-runtime";function qt(e,o){return e.map(t=>{var l,s,m,d,f;let n=t.accessor?String(t.accessor):void 0,a={id:(l=t.id)!=null?l:n||void 0,header:i(()=>t.Header,"header"),footer:t.Footer?c=>t.Footer({table:c.table}):void 0,enableSorting:!t.disableSortBy,enableResizing:!0,enableColumnFilter:t.disableFilters?!1:!!t.filterVariant,...t.filterVariant&&{filterFn:(s=t.filterFn)!=null?s:tt[t.filterVariant]},size:(m=t.width)!=null?m:o.width,minSize:(d=t.minWidth)!=null?d:o.minWidth,maxSize:(f=t.maxWidth)!=null?f:o.maxWidth,meta:{align:t.align,selectable:t.selectable,filterVariant:t.filterVariant}};return n?a.accessorKey=n:a.accessorFn=()=>null,t.Cell&&(a.cell=c=>t.Cell({row:c.row,value:c.getValue()})),a})}i(qt,"toTanstackColumns");function qn(e){var Ve,Le,Ne;let{data:o,columns:t,onRowSelect:n,onRowClick:a,selectableColumnWidth:l,selectableColumn:s,setRowColor:m,title:d,striped:f,bordered:c,searchPlaceholder:N,hasHeader:O,hasFooter:$,hasSpacingMenu:k,inputSearchComponent:R,headerLeftComponent:U=null,headerRightComponent:B=null,lastRowComponent:H,height:Y=400,spacing:ne=0,paginated:y=!1,initialPagination:M,pagination:me,onPaginationChange:yt,pageSizeOptions:Pe=[10,25,50,100],getSubRows:ke,expandedColumnWidth:oe,initialExpanded:fe,expanded:Tt,onExpandedChange:St,initialColumnFilters:be,columnFilters:Ft,onColumnFiltersChange:Pt,labels:K}=e,A=!!ke,xe=S.useMemo(()=>t.some(r=>r.filterVariant&&!r.disableFilters),[t]),[kt,Ce]=S.useState(48),[vt,It]=S.useState([]),[ve,Ie]=S.useState(""),[he,Mt]=S.useState({}),[Re,Dt]=ue(me,yt,()=>{var r,g,u;return{pageIndex:(r=M==null?void 0:M.pageIndex)!=null?r:0,pageSize:(u=(g=M==null?void 0:M.pageSize)!=null?g:Pe[0])!=null?u:10}}),[Et,zt]=ue(Tt,St,()=>fe!=null?fe:{}),[Vt,Lt]=ue(Ft,Pt,()=>be!=null?be:[]),Nt=S.useMemo(()=>{let r=qt(t,te),g=st(s,l),u=lt(A,oe!=null?oe:l),w=[];return u&&w.push(u),g&&w.push(g),[...w,...r]},[t,s,l,A,oe]),v=Rt({data:o,columns:Nt,state:{sorting:vt,globalFilter:ve,rowSelection:he,...y&&{pagination:Re},...A&&{expanded:Et},...xe&&{columnFilters:Vt}},enableRowSelection:!!s,enableExpanding:A,...A&&{getSubRows:ke},onSortingChange:It,onGlobalFilterChange:Ie,onRowSelectionChange:Mt,...y&&{onPaginationChange:Dt},...A&&{onExpandedChange:zt},...xe&&{onColumnFiltersChange:Lt},getCoreRowModel:ut(),getSortedRowModel:ht(),getFilteredRowModel:xt(),...y&&{getPaginationRowModel:Ct()},...A&&{getExpandedRowModel:gt()},...xe&&{getFacetedRowModel:ft(),getFacetedUniqueValues:bt(),getFacetedMinMaxValues:mt()},columnResizeMode:"onChange",defaultColumn:{size:te.width,minSize:te.minWidth,maxSize:te.maxWidth}}),J=v.getRowModel().rows;Ae(()=>{if(n){let r=J.filter(g=>he[g.id]).map(g=>g.original);n(r)}},[he]);let W=He(),we=J.length+(H?1:0),Me=S.useCallback((r,g)=>{let u=m&&m(r),w=f&&g%2===0,x=W.colors.surface.paper;return u?x=W.colors[u].light:r.getIsSelected()&&n?x=W.colors.muted:w&&(x=W.colors.surface.sunken),{backgroundColor:x}},[m,f,W,n]),re=kt+ne,ae=S.useCallback(({align:r="flex-start",cellProps:g={},header:u,hasCheckbox:w,selectable:x})=>Object.assign(g,{title:void 0,style:{height:re,overflow:"hidden",display:"flex",alignItems:u?"flex-end":"center",justifyContent:r,paddingLeft:w?W.spacing("small"):void 0,cursor:x?"pointer":void 0}}),[re,W]),Ht=S.useCallback(({index:r,style:g})=>{if(H&&r===we-1)return S.cloneElement(H,{style:g});let u=J[r],w={...g,...Me(u,r)};return p(z,{style:w,children:u.getVisibleCells().map(x=>{var D;let _=(D=x.column.columnDef.meta)!=null?D:{},Te=x.column.id,G;a?G=i(()=>a(u.original),"onClickAction"):n&&(G=i(()=>u.toggleSelected(),"onClickAction"));let Q=ae({align:_.align,hasCheckbox:Te==="checkbox",selectable:(n||a)&&_.selectable!==!1,cellProps:_.selectable!==!1?{onClick:G}:void 0});return p(q,{...Q,style:{...Q.style,width:x.column.getSize(),flex:`${x.column.getSize()} 0 auto`},children:ge(x.column.columnDef.cell,x.getContext())},x.id)})})},[J,ae,H,a,n,Me,we]),ye=!!J.length,At=$&&ye&&t.some(r=>"Footer"in r),De=S.useRef(null),ie=wt({count:we,getScrollElement:i(()=>De.current,"getScrollElement"),estimateSize:i(()=>re,"estimateSize"),overscan:5});S.useEffect(()=>{ie.measure()},[re,ie]);let Ee=L(Ye,{ref:De,role:"region","aria-label":(Le=(Ve=K==null?void 0:K.scrollRegion)!=null?Ve:d)!=null?Le:"Tabela",tabIndex:0,style:{maxHeight:Y},bgColor:"baseLight","data-border":c,"data-default":!f&&!c,children:[p(Xe,{children:v.getFlatHeaders().map(r=>{var Q;let g=(Q=r.column.columnDef.meta)!=null?Q:{},u=r.column.getCanSort(),w=r.column.getCanResize(),x=r.column.getIsSorted(),_=!!g.filterVariant&&r.column.getCanFilter(),Te=r.column.getIsFiltered(),G=ae({align:g.align,header:!0,hasCheckbox:r.column.id==="checkbox"});return L(q,{...G,style:{...G.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`,cursor:u?"pointer":void 0,position:"relative"},onClick:u?r.column.getToggleSortingHandler():void 0,children:[r.isPlaceholder?null:ge(r.column.columnDef.header,r.getContext()),(_||u)&&L(et,{children:[_&&p("span",{role:"presentation",onClick:D=>D.stopPropagation(),children:p(ee,{content:({close:D})=>ot(g.filterVariant,r.column,D,K),children:p(I,{icon:$e,color:Te?"primary.action":"ink.disabled",style:{cursor:"pointer"},role:"button",tabIndex:0,"aria-label":"Filter column"})})}),u&&p(Ke,{children:p(I,{icon:it(x)})})]}),w&&p(at,{onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler(),onClick:D=>D.stopPropagation()})]},r.id)})}),ye?p(qe,{style:{height:ie.getTotalSize(),position:"relative",minWidth:"max-content"},children:ie.getVirtualItems().map(r=>p(h,{style:{position:"absolute",top:0,left:0,width:"100%",height:r.size,transform:`translateY(${r.start}px)`},children:Ht({index:r.index,style:{}})},r.key))}):p(dt,{...e,height:Y}),At&&p(h,{children:p(je,{children:(Ne=v.getFooterGroups()[0])==null?void 0:Ne.headers.map(r=>{var w;let g=(w=r.column.columnDef.meta)!=null?w:{},u=ae({align:g.align});return p(q,{...u,style:{...u.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`},children:r.isPlaceholder?null:ge(r.column.columnDef.footer,r.getContext())},r.id)})})})]}),ze=y&&ye&&p(Ze,{children:p(pt,{pageIndex:Re.pageIndex,pageSize:Re.pageSize,pageCount:v.getPageCount(),rowCount:v.getFilteredRowModel().rows.length,canPreviousPage:v.getCanPreviousPage(),canNextPage:v.getCanNextPage(),pageSizeOptions:Pe,onPrevious:()=>v.previousPage(),onNext:()=>v.nextPage(),onPageSizeChange:r=>v.setPageSize(r),labels:K})});return O?L(F,{gap:"medium",children:[L(F,{flexDirection:"row",alignItems:"center",justifyContent:"between",children:[L(F,{flexDirection:"row",gap:"medium",children:[d&&p(P,{variant:"h5",color:"primary.dark",text:d}),U]}),L(F,{flexDirection:"row",gap:"medium",children:[R!=null?R:p(ct,{globalFilter:ve,setGlobalFilter:Ie,placeholder:N}),B,k?p(F,{alignSelf:"center",children:p(ee,{position:"right",options:[{icon:p(I,{icon:Z}),title:"Layout Compacto",action:i(()=>Ce(32),"action")},{icon:p(I,{icon:Z}),title:"Layout Padr\xE3o",action:i(()=>Ce(48),"action")},{icon:p(I,{icon:Z}),title:"Layout Expandido",action:i(()=>Ce(64),"action")}],children:p(I,{size:5,icon:Z,color:"primary.action",style:{alignSelf:"center",cursor:"pointer"}})})}):null]})]}),Ee,ze]}):L(Xt,{children:[Ee,ze]})}i(qn,"DataTable");export{Gt as a,jt as b,qn as c};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import{a as b,b as A,c as $,d as z,g as C}from"./chunk-4KW43QHY.esm.js";import{a as g}from"./chunk-IZHCHFTU.esm.js";import{c as u}from"./chunk-3PLVWHLK.esm.js";import{d as h}from"./chunk-RWLJNXLX.esm.js";import{b as S}from"./chunk-IK5Z5C2R.esm.js";import{b as T}from"./chunk-VCMHX5VK.esm.js";import{b as y}from"./chunk-ODL5JUYM.esm.js";import{b as p}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";function M({theme:e,autoResize:l,rows:t,maxRows:a}){if(!l)return null;let r=e.spacing("small"),m=e.border.borderWidth.thin,o=n(s=>`calc((${s} * 1lh) + (2 * ${r}) + (2 * ${m}))`,"blockSize");return p(["field-sizing:content;min-block-size:",";",""],o(t!=null?t:2),a?p(["max-block-size:",";"],o(a)):null)}n(M,"autoResizeStyle");var I=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
|
+
${M}
|
|
9
|
+
|
|
10
|
+
${b}
|
|
11
|
+
|
|
12
|
+
${z}
|
|
13
|
+
|
|
14
|
+
${$}
|
|
15
|
+
|
|
16
|
+
${A}
|
|
17
|
+
|
|
18
|
+
${h({borderRadius:"xs",borderWidth:"thin",borderStyle:"solid"})}
|
|
19
|
+
${S({fontFamily:"main"})}
|
|
20
|
+
${T({p:"small"})}
|
|
21
|
+
${y({bgColor:"surface.paper"})}
|
|
22
|
+
`,k=u(g).withConfig({componentId:"apollion-textarea-counter"})`
|
|
23
|
+
position: absolute;
|
|
24
|
+
right: 0;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
line-height: 1.2rem;
|
|
27
|
+
font-size: ${({theme:e})=>e.font.fontSize.micro};
|
|
28
|
+
transform: translateY(100%);
|
|
29
|
+
color: ${({theme:e})=>e.colors.ink.primary};
|
|
30
|
+
`;import{forwardRef as N,useState as w}from"react";import{jsx as j,jsxs as F}from"react/jsx-runtime";var Y={expansive:{fontSize:"medium",py:"medium"},medium:{fontSize:"medium",py:"small"},compact:{fontSize:"medium",py:"xs"},micro:{py:"micro",fontSize:"small",borderRadius:"micro"}},P=N(({value:e,defaultValue:l,onChange:t,maxLengthHint:a="characters left",variant:r,resize:m=!1,autoResize:o=!1,maxRows:s,size:R="medium",area:V,alignSelf:D,justifySelf:E,style:W,...c},L)=>{let B=r!==void 0,f=r!=null?r:"default",i=e!==void 0,[d,H]=w(l||""),v=i?e:d;return F(C,{variant:f,area:V,alignSelf:D,justifySelf:E,children:[j(I,{value:i?e:d,defaultValue:void 0,variant:f,$variantExplicit:B,autoResize:o,maxRows:s,onChange:n(x=>{i||H(x.target.value),t&&t(x)},"handleChange"),...Y[R],...c,ref:L,style:{resize:o?"none":m?"both":"none",...W}}),c.maxLength&&F(k,{children:[Number(c.maxLength)-(v||"").length," ",a]})]})});P.displayName="TextArea";export{I as a,k as b,P as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
1
|
+
import{a as h}from"./chunk-5PLSFFP6.esm.js";import{b as o}from"./chunk-G5Z7USXC.esm.js";import{g as f}from"./chunk-AXUWC2WH.esm.js";import{a as m}from"./chunk-GZONWSRB.esm.js";import{forwardRef as G,useCallback as x,useLayoutEffect as X,useRef as w,useState as _}from"react";var g;function y(){if(typeof window=="undefined")return 15;if(g!==void 0)return g;let e=o.document.createElement("div"),i=o.document.createElement("div");return e.style.overflow="scroll",e.style.width="100%",i.style.width="100%",o.document.body.appendChild(e),e.appendChild(i),g=e.offsetWidth-i.offsetWidth,e.removeChild(i),o.document.body.removeChild(e),g}m(y,"getOsScrollbarWidth");function W(){let e=y();return e?e+1:20}m(W,"getScrollbarWidth");var I=f(h).withConfig({componentId:"sc-wsu612-0"})(["flex:1;height:100%;overflow:hidden;"]),k=f(h).withConfig({componentId:"sc-wsu612-1"})(["height:100%;box-sizing:border-box;overflow-y:scroll;"]),b=f(h).withConfig({componentId:"sc-wsu612-2"})(["position:absolute;top:0;right:2px;cursor:pointer;user-select:none;width:6px;min-height:30px;max-height:100%;background:rgba(0,0,0,0.4);opacity:0;transition:opacity var(--apollion-motion-duration-300,300ms) var(--apollion-motion-easing-exit,cubic-bezier(0.4,0,1,1));z-index:1;"]),M=f(h).withConfig({componentId:"sc-wsu612-3"})(["flex:1;display:flex;overscroll-behavior:auto;overflow:hidden;&:hover ","{opacity:0.75;}"],b);import{jsx as S,jsxs as J}from"react/jsx-runtime";var j=G(({children:e,onScroll:i,style:R,scrollableRef:u,...D},P)=>{let[d,z]=_(1),s=w(null),p=w(null),C=w(0),E=w({}),F=x(n=>{s.current=n,typeof u=="function"?u(n):u&&(u.current=n)},[u]);X(()=>{let n=s.current,t,r=m(()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{var c;if(n){let{clientHeight:l,scrollHeight:a}=n;z(l/a),E.current={clientHeight:l,scrollHeight:a,trackHeight:(c=p==null?void 0:p.current)==null?void 0:c.clientHeight}}})},"updateScrollbar");return o.addEventListener("resize",r),r(),()=>{cancelAnimationFrame(t),o.removeEventListener("resize",r)}},[s,e]);let $=x(n=>{if(i&&i(n),d===1)return;let t=s.current,r=p.current;cancelAnimationFrame(C.current),C.current=requestAnimationFrame(()=>{let{clientHeight:c,scrollHeight:l,trackHeight:a}=E.current,v=t.scrollTop/(l-c)*(c-a);r&&(r.style.transform=`translateY(${v}px)`)})},[s,d,i]),O=x(n=>{let t=s.current,r,c=n.pageY,l=(t==null?void 0:t.scrollTop)||0,a=m(({pageY:v})=>{cancelAnimationFrame(r),r=requestAnimationFrame(()=>{let Y=v-c;l+=Y/d,c=v,t&&(t.scrollTop=l)})},"drag"),A=m(()=>{o.removeEventListener("mousemove",a)},"stop");o.addEventListener("mousemove",a),o.addEventListener("mouseup",A,{once:!0})},[s,d]),L=y(),T=!!L,H=T?W():0,q={style:{marginRight:`-${H}px`}},N={...R,paddingRight:H},B={onScroll:$,ref:F,tabIndex:0,style:{width:`calc(100% + ${L}px)`,overflowX:"hidden"}},U={ref:p,onMouseDown:O,style:{height:`${d*100}%`,display:d===1?"none":void 0}};return J(M,{...D,style:N,ref:P,children:[S(I,{...q,children:S(k,{...B,children:e})}),T&&S(b,{round:"micro",...U})]})});j.displayName="CustomScroll";export{j as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-GZONWSRB.esm.js";import{useCallback as r,useEffect as u,useLayoutEffect as f,useRef as a}from"react";var c=typeof window!="undefined"?f:u;function i(e){let n=a(e);return c(()=>{n.current=e}),r((...o)=>n.current.apply(void 0,o),[])}t(i,"useEventCallback");export{c as a,i as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-FNYS25ZX.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";function u(e,o){return e===o?e:`light-dark(${e}, ${o})`}t(u,"lightDark");function l(e,o){if(!e.modes)return o(e);let n=o(e.modes.light),r=o(e.modes.dark);return n===void 0||r===void 0?n:u(n,r)}t(l,"forModes");function f(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}t(f,"isPlainObject");function d(e,o){if(typeof e=="string")return typeof o=="string"?u(e,o):e;if(f(e)){let n={},r=f(o)?o:{};for(let[s,i]of Object.entries(e))n[s]=d(i,r[s]);return n}return e}t(d,"projectNode");function m(e,o){let n=t(s=>{let i=e(s),c=o(s);return i===void 0||c===void 0?i:u(i,c)},"callable"),r=d({...e},{...o});return Object.assign(n,r,{getColor:e.getColor,getContrastColor:e.getContrastColor})}t(m,"projectColors");function p(e){let{light:o,dark:n}=e;return{...o,colors:m(o.colors,n.colors),semantic:{...o.semantic,color:d(o.semantic.color,n.semantic.color)},foundation:{...o.foundation,bg:d(o.foundation.bg,n.foundation.bg),text:d(o.foundation.text,n.foundation.text),edge:d(o.foundation.edge,n.foundation.edge)},depth:t(r=>{let s=o.depth(r),i=n.depth(r);if(s===i)return s;let c=a[r];return`${c} ${u(s.slice(c.length+1),i.slice(c.length+1))}`},"depth"),modes:e}}t(p,"projectModes");function g(e,o){return e.modes===o?e:{...e,modes:o}}t(g,"withModes");function h(e){return{...e,modes:void 0}}t(h,"withoutModes");export{l as a,p as b,g as c,h as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as g}from"./chunk-3PLVWHLK.esm.js";import{a as T}from"./chunk-EJ245MA7.esm.js";import{k as x}from"./chunk-REPFMEFA.esm.js";import{f as h,g as m}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var c=m(g.span).withConfig({componentId:"sc-29xk67-0"})(["margin:0;font-family:",";line-height:",";&:is(h1,h2,h3,h4,h5,h6){text-wrap:balance;}& a:not([data-ds-link-button]){text-decoration:underline;}& a[data-ds-link-button]{display:inline-flex;vertical-align:middle;}"],({theme:e})=>e.font.fontFamily.main,({theme:e})=>e.font.lineHeight.regular),S=i((e,t)=>T(e,o=>x(o.colors[t],"base")),"tickInk"),y=m(c).withConfig({componentId:"sc-29xk67-1"})(["&[data-tick-settle]{transition:",";}&[data-tick]{transition:none;}&[data-tick='up']{color:",";}&[data-tick='down']{color:",";}@media (prefers-reduced-motion:reduce){&[data-tick-settle]{transition:none;}}"],({theme:e})=>e.animation.transitions.settle,({theme:e})=>S(e,"success"),({theme:e})=>S(e,"danger"));var C={p:{props:{fontSize:"small"}},meta:{tag:"p",props:{fontSize:"micro"}},lead:{tag:"p",props:{fontSize:"medium"}},blockquote:{props:{fontSize:"xxl"}},h1:{props:{fontSize:"xl",md_fontSize:"colossal"}},h2:{props:{fontSize:"large",md_fontSize:"giant"}},h3:{props:{fontSize:"large",fontStyle:"italic",md_fontSize:"xxl",md_fontStyle:"normal"}},h4:{props:{fontSize:"medium",md_fontSize:"xl"}},h5:{props:{fontSize:"medium",fontStyle:"italic",color:"ink.primary",md_fontSize:"large",md_fontStyle:"normal",md_color:"ink.primary"}},h6:{props:{fontSize:"small",color:"ink.primary",textTransform:"uppercase",md_fontSize:"medium",md_textTransform:"normal",md_color:"ink.primary"}},d1:{tag:"h1",props:{fontSize:"xxl",md_fontSize:"gargantua"}},d2:{tag:"h2",props:{fontSize:"xl",md_fontSize:"colossal"}},d3:{tag:"h3",props:{fontSize:"large",md_fontSize:"giant"}},d4:{tag:"h4",props:{fontSize:"medium",md_fontSize:"xxl"}}},I={fontWeight:"bold",lineHeight:"close"},V={fontWeight:"stronger",lineHeight:"close"};function w(e){switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return I;case"d1":case"d2":case"d3":case"d4":return V;default:return{}}}i(w,"getDefaultProps");function z(e,t={}){var a,s;let o=C,{tag:n=e,props:r={}}=o[e]||{};return{tag:n,variantProps:{fontWeight:(a=t.fontWeight)!=null?a:"regular",letterSpacing:"regular",color:(s=t.color)!=null?s:"ink.primary",...t.fontSize&&{fontSize:t.fontSize},...w(e),...r}}}i(z,"getTextProps");import{forwardRef as F}from"react";import{useEffect as E,useRef as D,useState as H}from"react";function k(e){let t=D(e),[o,n]=H(null);return E(()=>{if(e===void 0||t.current===void 0||e===t.current){t.current=e;return}n(e>t.current?"up":"down"),t.current=e;let r=requestAnimationFrame(()=>n(null));return()=>cancelAnimationFrame(r)},[e]),o}i(k,"useTickFlash");import{jsx as B}from"react/jsx-runtime";var _=F(({text:e,children:t,variant:o="span",type:n,tick:r,...a},s)=>{var d;let p=h(),{tag:P,variantProps:f}=z(o,(d=p==null?void 0:p.component)==null?void 0:d.text),l=k(r),b=r===void 0?c:y,R=a.color!==void 0||a.contrast!==void 0?Object.fromEntries(Object.entries(f).filter(([u])=>u!=="color"&&!u.endsWith("_color"))):f;return B(b,{as:P,ignoreResponsive:n==="mobile",enableBreakpoint:n==="desktop"?"md":void 0,...R,...a,"data-tick-settle":r===void 0?void 0:"","data-tick":l!=null?l:void 0,ref:s,children:t||e})});_.displayName="Text";var v=_;export{c as a,y as b,C as c,z as d,v as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as n}from"./chunk-IK5Z5C2R.esm.js";import{e as c}from"./chunk-QXV2TDLZ.esm.js";import{b as y}from"./chunk-BNB3KNKE.esm.js";import{b as f}from"./chunk-VCMHX5VK.esm.js";import{b as e}from"./chunk-ODL5JUYM.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{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 s,b as h
|
|
1
|
+
import{A as i,a as s,b as h}from"./chunk-REPFMEFA.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var d={"level-one-minus":"inset 0px 0px 4px","level-zero":"0px 0px 0px","level-one":"0px 0px 4px","level-two":"0px 0px 8px","level-three":"0px 0px 16px","level-four":"0px 0px 28px","level-five":"0px 0px 44px","level-six":"0px 0px 72px"},m=h("rgb"),c={light:{alpha:.15},dark:{alpha:.4}},$=n(p=>{var o,a,l,x;let t=i(p.baseLight),r=t?(o=p.deepLight)!=null?o:"#000":p.neutral[180],v=t?c.dark.alpha:c.light.alpha,e=m(s(r)),f=e?`rgba(${Math.round(((a=e.r)!=null?a:0)*255)}, ${Math.round(((l=e.g)!=null?l:0)*255)}, ${Math.round(((x=e.b)!=null?x:0)*255)}, ${v})`:r;return g=>`${d[g]} ${f}`},"createDeth");export{d as a,c as b,$ as c};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import{a as Y}from"./chunk-H5EZPFXA.esm.js";import{a as q}from"./chunk-CLU3WNVI.esm.js";import{a as c}from"./chunk-GQZGW3EG.esm.js";import{b as W}from"./chunk-G5L6INCM.esm.js";import{a as P}from"./chunk-F7PA7OCV.esm.js";import{a as l}from"./chunk-NGCCXGDN.esm.js";import{a as K}from"./chunk-CDRLVSLF.esm.js";import{a as s}from"./chunk-X62RTM6B.esm.js";import{h as j}from"./chunk-4KW43QHY.esm.js";import{a as L}from"./chunk-U3GZABRG.esm.js";import{b as m}from"./chunk-P3XOIBAC.esm.js";import{F as O,K as x,Y as V,v as N,w as M}from"./chunk-DAT6GD4T.esm.js";import{a as I,e as B}from"./chunk-EYAGAJRL.esm.js";import{g as z}from"./chunk-L7A7RA56.esm.js";import{a as u}from"./chunk-IZHCHFTU.esm.js";import{d as R}from"./chunk-RWLJNXLX.esm.js";import{b as $}from"./chunk-ODL5JUYM.esm.js";import{b as o,g as F}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import w,{useEffect as me,useState as v}from"react";function re(e){switch(e){case"Compact":return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:n})=>n.spacing("micro"),l,c,({theme:n})=>n.spacing("micro"));case"Expansive":return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:n})=>n.spacing("large"),l,c,({theme:n})=>n.spacing("large"));default:return o(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:n})=>n.spacing("medium"),l,c,({theme:n})=>n.spacing("medium"))}}i(re,"getSizeStyle");function E(e){switch(e){case"left":return"flex-start";case"right":return"flex-end";default:return"center"}}i(E,"getAlignDirection");function oe(e){if(typeof e=="object"){let n=e.reduce((r,g)=>{let h=`
|
|
2
|
+
& ${l}, ${c}, ${s} {
|
|
3
|
+
&:nth-child(${g.target}) {
|
|
4
|
+
${u} {
|
|
5
|
+
text-align: ${g.direction};
|
|
6
|
+
align-items: ${E(g.direction)}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
`;return`${r} ${h}`},"");return o(["& ",",",",","{","{text-align:center;align-items:",";}}",""],l,c,s,u,E("center"),n)}return e!==void 0?o(["& ",",",",","{","{text-align:",";align-items:",";}}"],l,c,s,u,e,E(e)):o(["& ",",",",","{","{text-align:center;align-items:center;}}"],l,c,s,u)}i(oe,"getAlignStyle");function le(e){if(e===void 0)return o([""]);let n=e.map((r,g)=>r&&(r.type===void 0?`
|
|
11
|
+
&:nth-child(${g+1}) {
|
|
12
|
+
width: ${r.width}px;
|
|
13
|
+
}
|
|
14
|
+
`:`
|
|
15
|
+
&:nth-child(${g+1}) {
|
|
16
|
+
${r.type}-width: ${r.width}px;
|
|
17
|
+
}
|
|
18
|
+
`));return o(["& ",",",",","{","}"],l,c,s,n)}i(le,"getColumnSizeStyle");function ce(){return o(["& ",",",",","{& ","{width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}"],l,c,s,I)}i(ce,"getEllipsisStyle");function se(e){return e.map(n=>o(["& ","{&:nth-child(","){",";}}"],P,n+1,$({bgColor:"muted"})))}i(se,"getSelectedStyle");var de=`
|
|
19
|
+
& ${s} {
|
|
20
|
+
position: sticky;
|
|
21
|
+
top: 0;
|
|
22
|
+
}
|
|
23
|
+
`,ue=o(["","{& ","{&:nth-child(odd){",";}}& ",",","{",";}}& ","{z-index:",";}"],q,P,$({bgColor:"surface.sunken"}),l,c,R({borderWidth:"none"}),s,({theme:e})=>z(e).sticky),fe=i(e=>`
|
|
24
|
+
& ${P}{
|
|
25
|
+
&:hover{
|
|
26
|
+
& ${l}, ${c}{
|
|
27
|
+
/* box-shadow inset instead of border avoids layout shift on hover
|
|
28
|
+
(rows would get +1px taller on mouseover, causing visible
|
|
29
|
+
drift). Visually identical to the classic border-1px. */
|
|
30
|
+
box-shadow: inset 0 -1px 0 ${e.colors.edge.border};
|
|
31
|
+
&:first-child{
|
|
32
|
+
box-shadow:
|
|
33
|
+
inset 1px 0 0 ${e.colors.getColor(e.colors.primary,"base")},
|
|
34
|
+
inset 0 -1px 0 ${e.colors.edge.border};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`,"getHoverableProps"),Z=F.table.withConfig({componentId:"sc-u1ldbs-0"})(["position:relative;isolation:isolate;border-collapse:collapse;display:table;width:",";"," "," ",";"," "," "," "," ",""],({width:e})=>e||"100%",({stickyHeader:e})=>e&&de,({striped:e})=>e&&ue,({hoverable:e,theme:n})=>e&&fe(n),({selected:e})=>se(e),({ellipsis:e})=>e?ce():"",({columnSize:e})=>le(e),({align:e})=>oe(e),({rowSize:e})=>re(e));import{jsx as a,jsxs as A}from"react/jsx-runtime";var G=i(e=>{let n=w.useId(),[r,g]=v(""),[h,D]=v([]),[k,T]=v([]),[J,C]=v("Default"),y=w.useRef(null);me(()=>{if(!y.current)return;let t=Array.from(y.current.children);D(t)},[]);let Q=w.Children.toArray(e.children).length>1?1:0,U=w.Children.map(e.children,(t,f)=>f===Q?w.cloneElement(t,{ref:y}):t),X=i(t=>{if(t.key==="Enter"){if(!y.current)return;let f=y.current.children,d=h.map((b,S)=>{let p=f[S];return p&&(r===""&&(p.style.display=""),b.innerText.toLowerCase().includes(r.toLowerCase())||(p.style.display="none")),b});D(d)}},"getFilterData"),_=h.length>0&&h.every(t=>t.style.display==="none"),ee=h.length,te=i((t,f)=>{f&&T(d=>[...d,t]),f||T(k.filter(d=>d!==t))},"getSelected"),ne=i(t=>(h.forEach((f,d)=>{let b=f.children[0].querySelectorAll("input")[0];return t&&(b.checked=!0,T(S=>[...S,d])),t||(b.checked=!1,T([])),null}),t),"getAllSelected"),ie=i(t=>h.map(d=>parseInt(d.children[t].innerText,10)).reduce((d,b)=>d+b,0),"getAddLines"),ae=e.initialPagination&&e.finalPagination&&e.totalPagination&&e.linesPerPage;function H(t){switch(t){case"normal":if(ee<=1)return"visible";if(e.stickyHeader||e.columnSize)return"scroll";break;case"y":if(e.columnSize&&!e.stickyHeader)return"hidden";break;default:return"visible"}return"visible"}return i(H,"getOverflow"),A(u,{overflow:H("normal"),overflowY:H("y"),gap:4,children:[A(u,{flexDirection:"row",justifyContent:"between",alignItems:"center",children:[e.title&&a(B,{id:n,color:"primary",readable:!0,variant:"h5",children:e.title}),A(u,{flexDirection:"row",justifyContent:"end",alignItems:"end",gap:2,children:[e.searching&&a(u,{width:"230px",children:a(j,{placeholder:"Pesquisar",type:"text",value:r,name:"search",onChange:t=>g(t.target.value),onKeyDown:t=>X(t),width:"230",icon:a(m,{icon:N}),role:"search"})}),e.rowTypes&&a(L,{options:[{icon:a(m,{icon:x}),title:"Layout Condensado",action:i(()=>C("Compact"),"action")},{icon:a(m,{icon:x}),title:"Layout Padr\xE3o",action:i(()=>C("Expansive"),"action")},{icon:a(m,{icon:x}),title:"Layout Expandido",action:i(()=>C("Default"),"action")}],children:a(m,{icon:x,color:"primary"})}),e.share&&a(L,{options:[{icon:a(m,{icon:O}),title:"Enviar por email",action:e.share.email},{icon:a(m,{icon:V}),title:"Compartilhar",action:e.share.social}],children:a(m,{icon:M,color:"primary"})})]})]}),ae&&a(Y,{initialPagination:e.initialPagination,finalPagination:e.finalPagination,totalPagination:e.totalPagination,linesPerPage:e.linesPerPage,showingText:e.showingText,linesPerPageLabel:e.linesPerPageLabel,linesPerPageValue:e.linesPerPageValue,onLinesPerPageChange:e.onLinesPerPageChange,onPreviousPage:e.onPreviousPage,onNextPage:e.onNextPage,canPreviousPage:e.canPreviousPage,canNextPage:e.canNextPage,previousLabel:e.previousLabel,nextLabel:e.nextLabel}),a(Z,{...e,stickyHeader:e.stickyHeader,striped:e.striped,rowSize:J||e.rowSize,align:e.align,columnSize:e.columnSize,width:e.width,ellipsis:e.ellipsis,hoverable:e.hoverable,selected:k,"aria-labelledby":e.title?n:void 0,children:a(K.Provider,{value:{ellipsis:e.ellipsis,getSelected:te,getAllSelected:ne,columnSum:e.columnSum!==void 0?{index:e.columnSum,sum:ie(e.columnSum)}:{index:void 0,sum:void 0}},children:U})}),_&&a(W,{})]})},"TableComponent");export{Z as a,G as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as r}from"./chunk-P3XOIBAC.esm.js";import{Q as p}from"./chunk-DAT6GD4T.esm.js";import{e as m}from"./chunk-EYAGAJRL.esm.js";import{a as e}from"./chunk-IZHCHFTU.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var i=n(e).attrs(t=>({bgColor:"surface.sunken",...t})).withConfig({componentId:"sc-1rhi83a-0"})([""]);import{jsx as o,jsxs as l}from"react/jsx-runtime";var y=a(t=>l(i,{width:"100%",justifyContent:"center",alignItems:"center",gap:2,p:"xl",...t,children:[t.iconPropsEmpty?o(r,{...t.iconPropsEmpty}):o(r,{icon:p,size:"xl",color:"primary.dark"}),l(e,{width:"50%",children:[o(m,{variant:"h5",color:"primary",readable:5,textAlign:"center",children:t.titleEmpty?t.titleEmpty:"Nada foi encontrado"}),o(m,{variant:"p",color:"primary",readable:5,textAlign:"center",children:t.subtitleEmpty?t.subtitleEmpty:"Tente ajustar os par\xE2metros dos filtros ou tente um novo termo para a busca."})]})]}),"TableEmptyComponent");export{i as a,y as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as d}from"./chunk-
|
|
1
|
+
import{b as d}from"./chunk-5PLSFFP6.esm.js";import{c as a}from"./chunk-QXV2TDLZ.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var u=t(e=>{var i;if(e===void 0)return;if(typeof e=="string")return e;let r="autoFit"in e?"auto-fit":"auto-fill",n="autoFit"in e?e.autoFit:e.autoFill;return`repeat(${r}, minmax(min(${n}, 100%), ${(i=e.max)!=null?i:"1fr"}))`},"resolveColumns"),f=t((e,r)=>({gridTemplateColumns:u(r.columns),gridTemplateRows:r.rows,gridTemplateAreas:r.areas,gap:r.gap?e.spacing(r.gap):void 0,gridColumnGap:r.columnGap?e.spacing(r.columnGap):void 0,gridRowGap:r.rowGap?e.spacing(r.rowGap):void 0,...a(r)}),"getGridProps"),s=t(({medias:e,theme:r})=>e?"xs"in e?Object.keys(e).reduce((n,i)=>({...n,[r.breakpoints.up(i)]:f(r,e[i])}),{}):f(r,e):{},"setGridBreakpoints"),p=o(d).withConfig({componentId:"sc-11fh3lu-0"})(["display:grid;",""],s);export{s as a,p as b};
|