@apollion-dsi/core 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -21
- package/lib/chunks/chunk-26IFGRDF.esm.js +5 -0
- package/lib/chunks/{chunk-TAVNLEMI.esm.js → chunk-2BXBMNBD.esm.js} +5 -5
- package/lib/chunks/chunk-2NX55TTL.esm.js +1 -0
- package/lib/chunks/chunk-34F43UAI.esm.js +4 -0
- package/lib/chunks/chunk-34N4XNXU.esm.js +15 -0
- package/lib/chunks/chunk-3KZGQZXT.esm.js +94 -0
- package/lib/chunks/chunk-432W3QJX.esm.js +4 -0
- package/lib/chunks/chunk-43YSWDK6.esm.js +1 -0
- package/lib/chunks/chunk-4RPR6CZT.esm.js +1 -0
- package/lib/chunks/{chunk-BKF5RIHP.esm.js → chunk-4XERQINB.esm.js} +1 -1
- package/lib/chunks/{chunk-TGTH3E4X.esm.js → chunk-5BGSGGUV.esm.js} +1 -1
- package/lib/chunks/chunk-5H2LWL6K.esm.js +1 -0
- package/lib/chunks/chunk-5HHC44UU.esm.js +1 -0
- package/lib/chunks/chunk-6XWL3BHB.esm.js +3 -0
- package/lib/chunks/chunk-76C7AHBV.esm.js +1 -0
- package/lib/chunks/chunk-7ASEEZ7M.esm.js +15 -0
- package/lib/chunks/chunk-7WVLGVVA.esm.js +1 -0
- package/lib/chunks/{chunk-G3IXCOJI.esm.js → chunk-A4BXGJYW.esm.js} +1 -1
- package/lib/chunks/chunk-A6R3W3MH.esm.js +1 -0
- package/lib/chunks/chunk-APD22JEO.esm.js +1 -0
- package/lib/chunks/chunk-BSTXG3RR.esm.js +6 -0
- package/lib/chunks/chunk-BZYZXUVU.esm.js +142 -0
- package/lib/chunks/chunk-C7QM23W2.esm.js +1 -0
- package/lib/chunks/chunk-CCZVMA2I.esm.js +40 -0
- package/lib/chunks/chunk-CL2HK4JL.esm.js +61 -0
- package/lib/chunks/chunk-DDWCOMUN.esm.js +7 -0
- package/lib/chunks/chunk-DEAQAH6B.esm.js +171 -0
- package/lib/chunks/chunk-EDGVNBGB.esm.js +1 -0
- package/lib/chunks/chunk-EEBGH4FW.esm.js +23 -0
- package/lib/chunks/chunk-EFHY5LLY.esm.js +1 -0
- package/lib/chunks/{chunk-5XXISYUW.esm.js → chunk-EGC6TYNS.esm.js} +4 -4
- package/lib/chunks/chunk-EXUN3ZYF.esm.js +1 -0
- package/lib/chunks/chunk-FLFOQPKD.esm.js +72 -0
- package/lib/chunks/chunk-FPQOBUTR.esm.js +1 -0
- package/lib/chunks/{chunk-V77X6UJ2.esm.js → chunk-H6RGCTRX.esm.js} +1 -1
- package/lib/chunks/chunk-HW4IUAPQ.esm.js +1 -0
- package/lib/chunks/{chunk-D43MLNCQ.esm.js → chunk-HX3TYUGD.esm.js} +1 -1
- package/lib/chunks/{chunk-WTRTFZV6.esm.js → chunk-HZRGN3R2.esm.js} +1 -1
- package/lib/chunks/chunk-IEGER4VB.esm.js +9 -0
- package/lib/chunks/{chunk-XNBK5E7D.esm.js → chunk-ILBHBMWO.esm.js} +2 -2
- package/lib/chunks/chunk-IT4J7I6H.esm.js +1 -0
- package/lib/chunks/{chunk-TR4PVAXI.esm.js → chunk-J6WU4PU3.esm.js} +1 -1
- package/lib/chunks/chunk-JBISNWMI.esm.js +67 -0
- package/lib/chunks/chunk-JOKVE3IX.esm.js +1 -0
- package/lib/chunks/chunk-KB2USQJE.esm.js +1 -0
- package/lib/chunks/{chunk-SKV75I6W.esm.js → chunk-L4FPPJHH.esm.js} +1 -1
- package/lib/chunks/chunk-LEDRBAW5.esm.js +1 -0
- package/lib/chunks/{chunk-XNCMA56H.esm.js → chunk-LQLFWLYH.esm.js} +14 -10
- package/lib/chunks/{chunk-BYYMKYCC.esm.js → chunk-MJ7ZMPLR.esm.js} +1 -1
- package/lib/chunks/chunk-N3QTL6BB.esm.js +1 -0
- package/lib/chunks/chunk-NSZRKCOX.esm.js +1 -0
- package/lib/chunks/chunk-O7OKMTNU.esm.js +104 -0
- package/lib/chunks/{chunk-6H6SEPAI.esm.js → chunk-OVWQSCBW.esm.js} +15 -15
- package/lib/chunks/chunk-Q6KSPMLW.esm.js +1 -0
- package/lib/chunks/chunk-QNQ4OW7T.esm.js +4 -0
- package/lib/chunks/{chunk-KDYOOGW7.esm.js → chunk-QYMXU5YD.esm.js} +1 -1
- package/lib/chunks/chunk-RWDJBOAC.esm.js +5 -0
- package/lib/chunks/{chunk-3XS7RVYS.esm.js → chunk-SASIBVD2.esm.js} +3 -3
- package/lib/chunks/chunk-T4NQQFTY.esm.js +1 -0
- package/lib/chunks/chunk-TDVKGVGD.esm.js +1 -0
- package/lib/chunks/chunk-TG5BCBO4.esm.js +1 -0
- package/lib/chunks/chunk-TJ52MNVI.esm.js +1 -0
- package/lib/chunks/{chunk-3HHYBI4E.esm.js → chunk-TN4BCWOH.esm.js} +1 -1
- package/lib/chunks/chunk-TVJISBND.esm.js +1 -0
- package/lib/chunks/chunk-UXSHB2H7.esm.js +6 -0
- package/lib/chunks/chunk-V5ZKDMDH.esm.js +1 -0
- package/lib/chunks/chunk-VTTPJS32.esm.js +14 -0
- package/lib/chunks/chunk-VUHSUILC.esm.js +1 -0
- package/lib/chunks/{chunk-WAHR5LIT.esm.js → chunk-VVZ6FCG7.esm.js} +1 -1
- package/lib/chunks/chunk-WSEDBJO3.esm.js +38 -0
- package/lib/chunks/chunk-WUOHPB5R.esm.js +1 -0
- package/lib/chunks/chunk-XD7WY5I4.esm.js +7 -0
- package/lib/chunks/chunk-YQPAZ6ZQ.esm.js +81 -0
- package/lib/containers/Base/Base.style.d.ts +144 -144
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/Flex.style.d.ts +145 -145
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/Grid.style.d.ts +3 -3
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Notification/Notification.interface.d.ts +1 -1
- package/lib/containers/Notification/Notification.style.d.ts +1156 -1156
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/Paper.style.d.ts +9 -9
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/Scroll.style.d.ts +8 -8
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/DataTable.d.ts +1 -1
- package/lib/dataDisplay/DataTable/DataTable.filters.d.ts +53 -0
- package/lib/dataDisplay/DataTable/DataTable.helpers.d.ts +82 -4
- package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +137 -4
- package/lib/dataDisplay/DataTable/DataTable.props.d.ts +4 -2
- package/lib/dataDisplay/DataTable/DataTable.style.d.ts +71 -31
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableBody/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 +9 -9
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeader/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/TableRow/index.esm.js +1 -1
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/Tabs.style.d.ts +25 -25
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/Avatar.style.d.ts +4 -4
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/Button.style.d.ts +7 -7
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Calendar/Calendar.d.ts +30 -0
- package/lib/elements/Calendar/Calendar.interface.d.ts +37 -0
- package/lib/elements/Calendar/Calendar.style.d.ts +17 -0
- package/lib/elements/Calendar/index.d.ts +13 -0
- package/lib/elements/Calendar/index.esm.js +1 -0
- package/lib/elements/Dropdown/Dropdown.d.ts +8 -2
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/Icon.style.d.ts +2 -2
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/IconButton/IconButton.style.d.ts +8 -8
- package/lib/elements/IconButton/index.esm.js +1 -1
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Label/Label.style.d.ts +4 -4
- package/lib/elements/Label/index.esm.js +1 -1
- package/lib/elements/Link/Link.d.ts +19 -8
- package/lib/elements/Link/Link.interface.d.ts +33 -12
- package/lib/elements/Link/Link.style.d.ts +38 -690
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/List.style.d.ts +8 -8
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/Modal.style.d.ts +4317 -4317
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/ProgressBar.style.d.ts +10 -10
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Spinner/Spinner.style.d.ts +2 -2
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/Text.props.d.ts +140 -140
- package/lib/elements/Text/Text.style.d.ts +2 -2
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/Tooltip.d.ts +6 -6
- package/lib/elements/Tooltip/Tooltip.interface.d.ts +14 -6
- package/lib/elements/Tooltip/Tooltip.style.d.ts +15 -10
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/BorderFactory/BorderFactory.d.ts +1 -1
- package/lib/factory/ContainerFactory/ContainerFactory.d.ts +1 -1
- package/lib/factory/DeepFactory/DeepFactory.d.ts +1 -1
- package/lib/factory/DeepFactory/index.esm.js +1 -1
- package/lib/factory/FlexFactory/FlexFactory.d.ts +1 -1
- package/lib/factory/FontFactory/FontFactory.d.ts +1 -1
- package/lib/factory/ResponsiveFactory/ResponsiveFactory.d.ts +1 -1
- package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
- package/lib/factory/SizeFactory/SizeFactory.d.ts +1 -1
- package/lib/factory/SpacingFactory/SpacingFactory.d.ts +1 -1
- package/lib/factory/System/System.d.ts +2 -4
- package/lib/factory/System/System.interface.d.ts +2 -2
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/Checkbox.style.d.ts +11 -11
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/Field.d.ts +2 -1
- package/lib/form/Field/Field.interface.d.ts +4 -4
- package/lib/form/Field/Field.props.d.ts +39 -0
- package/lib/form/Field/Field.style.d.ts +16 -16
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/Form.helpers.d.ts +11 -8
- package/lib/form/Form/Form.interface.d.ts +24 -20
- package/lib/form/Form/Form.style.d.ts +10 -10
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/Input.style.d.ts +22 -22
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/InputDate.d.ts +21 -11
- package/lib/form/InputDate/InputDate.interface.d.ts +67 -0
- package/lib/form/InputDate/buildSyntheticEvent.d.ts +26 -0
- package/lib/form/InputDate/index.d.ts +9 -2
- 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 +24 -24
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/InputSelect/DropdownIndicator.d.ts +1 -1
- package/lib/form/InputSelect/InputSelect.interface.d.ts +1 -1
- package/lib/form/InputSelect/index.esm.js +1 -1
- package/lib/form/Radio/Radio.style.d.ts +9 -9
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/TextArea/TextArea.style.d.ts +21 -21
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/UploadCard.style.d.ts +39 -39
- 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/useMediaQuery/index.esm.js +1 -1
- package/lib/hooks/useMediaQuery/useMediaQuery.d.ts +1 -1
- package/lib/hooks/useScript/index.esm.js +1 -1
- package/lib/icons/Icons/categoryInterface.d.ts +1 -0
- package/lib/icons/Icons/index.d.ts +1 -0
- package/lib/icons/Icons/index.esm.js +1 -1
- package/lib/icons/index.esm.js +1 -1
- package/lib/index.d.ts +27 -14
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1262
- package/lib/layouts/DefaultLayout/DefaultLayout.style.d.ts +12 -12
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/SideBarLayout.style.d.ts +12 -12
- package/lib/layouts/SideBarLayout/index.esm.js +1 -1
- package/lib/layouts/index.esm.js +1 -1
- package/lib/scenario/CircleComponent/index.esm.js +1 -1
- package/lib/scenario/RectComponent/index.esm.js +1 -1
- package/lib/scenario/index.esm.js +1 -1
- package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.d.ts +1 -1
- package/lib/skeleton/ComposedSkeleton/ComposedSkeleton.interface.d.ts +1 -1
- package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
- package/lib/skeleton/TextPreset/index.esm.js +1 -1
- package/lib/skeleton/index.esm.js +1 -1
- package/lib/themes/Colors/Colors.helpers.d.ts +56 -4
- package/lib/themes/Colors/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/Dimension/Dimension.interface.d.ts +24 -0
- package/lib/themes/Dimension/Dimension.props.d.ts +36 -0
- package/lib/themes/Dimension/index.d.ts +10 -0
- package/lib/themes/Dimension/index.esm.js +1 -0
- package/lib/themes/Foundation/Foundation.helpers.d.ts +32 -0
- package/lib/themes/Foundation/Foundation.interface.d.ts +84 -0
- package/lib/themes/Foundation/index.d.ts +17 -0
- package/lib/themes/Foundation/index.esm.js +1 -0
- package/lib/themes/GlobalStyle/GlobalStyle.d.ts +1 -1
- package/lib/themes/GlobalStyle/index.esm.js +1 -1
- package/lib/themes/Semantic/Semantic.helpers.d.ts +50 -0
- package/lib/themes/Semantic/Semantic.interface.d.ts +131 -0
- package/lib/themes/Semantic/index.d.ts +18 -0
- package/lib/themes/Semantic/index.esm.js +1 -0
- package/lib/themes/Spacing/Spacing.props.d.ts +32 -1
- package/lib/themes/Spacing/index.esm.js +1 -1
- package/lib/themes/Surface/Surface.d.ts +46 -0
- package/lib/themes/Surface/Surface.helpers.d.ts +52 -0
- package/lib/themes/Surface/Surface.interface.d.ts +20 -0
- package/lib/themes/Surface/index.d.ts +18 -0
- package/lib/themes/Surface/index.esm.js +1 -0
- package/lib/themes/ThemeProvider/ThemeProvider.interface.d.ts +69 -0
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.d.ts +4 -0
- package/lib/themes/index.esm.js +1 -1
- package/lib/utils/components/Breakpoints/index.esm.js +1 -1
- package/lib/utils/components/index.esm.js +1 -1
- package/lib/vendors/Culori/component.d.ts +26 -0
- package/lib/vendors/Culori/index.d.ts +2 -0
- package/lib/vendors/Culori/interface.d.ts +28 -0
- package/lib/vendors/DateFns/component.d.ts +30 -0
- package/lib/vendors/DateFns/index.d.ts +2 -0
- package/lib/vendors/DateFns/interface.d.ts +14 -0
- package/lib/vendors/Deepmerge/component.d.ts +11 -0
- package/lib/vendors/Deepmerge/index.d.ts +1 -0
- package/lib/vendors/Deepmerge/interface.d.ts +10 -0
- package/lib/vendors/EmotionIsPropValid/component.d.ts +12 -0
- package/lib/vendors/EmotionIsPropValid/index.d.ts +1 -0
- package/lib/vendors/EmotionIsPropValid/interface.d.ts +9 -0
- package/lib/vendors/FastDeepEqual/component.d.ts +11 -0
- package/lib/vendors/FastDeepEqual/index.d.ts +1 -0
- package/lib/vendors/FastDeepEqual/interface.d.ts +9 -0
- package/lib/vendors/FloatingUI/component.d.ts +34 -0
- package/lib/vendors/FloatingUI/index.d.ts +2 -0
- package/lib/vendors/FloatingUI/interface.d.ts +18 -0
- package/lib/vendors/FramerMotion/component.d.ts +20 -0
- package/lib/vendors/FramerMotion/index.d.ts +2 -0
- package/lib/vendors/FramerMotion/interface.d.ts +15 -0
- package/lib/vendors/LodashDebounce/component.d.ts +11 -0
- package/lib/vendors/LodashDebounce/index.d.ts +2 -0
- package/lib/vendors/LodashDebounce/interface.d.ts +11 -0
- package/lib/vendors/Nanoid/component.d.ts +13 -0
- package/lib/vendors/Nanoid/index.d.ts +2 -0
- package/lib/vendors/Nanoid/interface.d.ts +11 -0
- package/lib/vendors/ObjectHash/component.d.ts +9 -0
- package/lib/vendors/ObjectHash/index.d.ts +2 -0
- package/lib/vendors/ObjectHash/interface.d.ts +8 -0
- package/lib/vendors/ReactContentLoader/component.d.ts +15 -0
- package/lib/vendors/ReactContentLoader/index.d.ts +2 -0
- package/lib/vendors/ReactContentLoader/interface.d.ts +10 -0
- package/lib/vendors/ReactDayPicker/component.d.ts +17 -0
- package/lib/vendors/ReactDayPicker/index.d.ts +2 -0
- package/lib/vendors/ReactDayPicker/interface.d.ts +19 -0
- package/lib/vendors/ReactHookForm/component.d.ts +27 -0
- package/lib/vendors/ReactHookForm/index.d.ts +2 -0
- package/lib/vendors/ReactHookForm/interface.d.ts +25 -0
- package/lib/vendors/ReactSelect/component.d.ts +17 -0
- package/lib/vendors/ReactSelect/index.d.ts +2 -0
- package/lib/vendors/ReactSelect/interface.d.ts +17 -0
- package/lib/vendors/StyledComponents/component.d.ts +21 -0
- package/lib/vendors/StyledComponents/index.d.ts +2 -0
- package/lib/vendors/StyledComponents/interface.d.ts +27 -0
- package/lib/vendors/StyledNormalize/component.d.ts +10 -0
- package/lib/vendors/StyledNormalize/index.d.ts +1 -0
- package/lib/vendors/StyledNormalize/interface.d.ts +9 -0
- package/lib/vendors/TanstackReactTable/component.d.ts +23 -0
- package/lib/vendors/TanstackReactTable/index.d.ts +2 -0
- package/lib/vendors/TanstackReactTable/interface.d.ts +24 -0
- package/lib/vendors/TanstackReactVirtual/component.d.ts +16 -0
- package/lib/vendors/TanstackReactVirtual/index.d.ts +2 -0
- package/lib/vendors/TanstackReactVirtual/interface.d.ts +14 -0
- package/lib/vendors/Zod/component.d.ts +18 -0
- package/lib/vendors/Zod/index.d.ts +2 -0
- package/lib/vendors/Zod/interface.d.ts +6 -0
- package/package.json +57 -24
- package/lib/chunks/chunk-2B3RKGV2.esm.js +0 -1
- package/lib/chunks/chunk-4PCG2KFF.esm.js +0 -1
- package/lib/chunks/chunk-4WBZAWFH.esm.js +0 -0
- package/lib/chunks/chunk-4Z3FXC7B.esm.js +0 -5
- package/lib/chunks/chunk-6KYLIXBS.esm.js +0 -1
- package/lib/chunks/chunk-6RNKPTEX.esm.js +0 -40
- package/lib/chunks/chunk-7PD7R2RB.esm.js +0 -15
- package/lib/chunks/chunk-7VYSPE3B.esm.js +0 -14
- package/lib/chunks/chunk-CH7BVIBG.esm.js +0 -1
- package/lib/chunks/chunk-CSVGEHXH.esm.js +0 -1
- package/lib/chunks/chunk-DAFBKFTS.esm.js +0 -67
- package/lib/chunks/chunk-DEAAQK5J.esm.js +0 -5
- package/lib/chunks/chunk-DP6AXK72.esm.js +0 -1
- package/lib/chunks/chunk-E4GPRFIB.esm.js +0 -1
- package/lib/chunks/chunk-ELYUJKST.esm.js +0 -1
- package/lib/chunks/chunk-ERLPEOAG.esm.js +0 -7
- package/lib/chunks/chunk-EWFUWYNO.esm.js +0 -81
- package/lib/chunks/chunk-FVRWVTQD.esm.js +0 -7
- package/lib/chunks/chunk-G3PLMKGA.esm.js +0 -6
- package/lib/chunks/chunk-G5M2X3TX.esm.js +0 -7
- package/lib/chunks/chunk-GWCDFVWM.esm.js +0 -1
- package/lib/chunks/chunk-HK3DHNXU.esm.js +0 -38
- package/lib/chunks/chunk-I2E5B4NH.esm.js +0 -1
- package/lib/chunks/chunk-IA7RR4C7.esm.js +0 -136
- package/lib/chunks/chunk-JIDBKHKA.esm.js +0 -9
- package/lib/chunks/chunk-JTQYUIZP.esm.js +0 -1
- package/lib/chunks/chunk-KEQXETSP.esm.js +0 -1
- package/lib/chunks/chunk-L6UB7RUM.esm.js +0 -104
- package/lib/chunks/chunk-LXG3BZB5.esm.js +0 -1
- package/lib/chunks/chunk-LZTZMWTK.esm.js +0 -67
- package/lib/chunks/chunk-NGODVNJB.esm.js +0 -61
- package/lib/chunks/chunk-OMBZMCKV.esm.js +0 -1
- package/lib/chunks/chunk-OXD4QSRP.esm.js +0 -1
- package/lib/chunks/chunk-PZYCW5IZ.esm.js +0 -4
- package/lib/chunks/chunk-Q3FXXXUX.esm.js +0 -1
- package/lib/chunks/chunk-QUHHEZMP.esm.js +0 -1
- package/lib/chunks/chunk-QZYXRYI7.esm.js +0 -4
- package/lib/chunks/chunk-RMTAUQ4Q.esm.js +0 -0
- package/lib/chunks/chunk-SAVXHMAA.esm.js +0 -6
- package/lib/chunks/chunk-SHDMTEPB.esm.js +0 -46
- package/lib/chunks/chunk-SR7ARLZ4.esm.js +0 -1
- package/lib/chunks/chunk-UJDBHSL7.esm.js +0 -1
- package/lib/chunks/chunk-VTRVGJA6.esm.js +0 -3
- package/lib/chunks/chunk-WOI7ZDPE.esm.js +0 -94
- package/lib/chunks/chunk-WTWPQ4EL.esm.js +0 -1
- package/lib/chunks/chunk-WZALORLW.esm.js +0 -1
- package/lib/chunks/chunk-XFQI4QU6.esm.js +0 -1
- package/lib/chunks/chunk-XW52MLHU.esm.js +0 -15
- /package/lib/chunks/{chunk-4H6GW4MC.esm.js → chunk-CWRWYU7D.esm.js} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `react-hook-form` + bridge
|
|
3
|
+
* adapter `@hookform/resolvers/zod`.
|
|
4
|
+
*
|
|
5
|
+
* Surface absorvida (ADR-007 §3.1):
|
|
6
|
+
* - `useForm` — hook primário; substitui `useFormik` em `form/Form/Form.tsx`.
|
|
7
|
+
* - `Controller` — render-prop wrapper para primitives uncontrolled-resistant
|
|
8
|
+
* (InputSelect via react-select, InputDate, etc.). Q1 de ADR-007 valida
|
|
9
|
+
* no PoC se `Controller` vs `register` é usado por field.
|
|
10
|
+
* - `useFormContext` — acesso a `methods` em descendentes (FieldGroup).
|
|
11
|
+
* - `useFieldArray` — multi-value field arrays. Gap absorvido proativamente
|
|
12
|
+
* para alinhamento com ROADMAP §FormWizard absorption.
|
|
13
|
+
* - `zodResolver` — adapter Zod schema ↔ RHF resolver. Importado de
|
|
14
|
+
* `@hookform/resolvers/zod`; re-export co-localizado para evitar dois
|
|
15
|
+
* call-sites distintos em consumers internos.
|
|
16
|
+
*
|
|
17
|
+
* Surface NÃO absorvida (gap intencional — ver README.md):
|
|
18
|
+
* `useWatch` (replaced by `methods.watch`), `useFormState` (replaced by
|
|
19
|
+
* `methods.formState`), `FormProvider` (gap pending real consumer demand —
|
|
20
|
+
* Q1 ADR-007), legacy `Field`-style components.
|
|
21
|
+
*
|
|
22
|
+
* @see ./README.md
|
|
23
|
+
* @see ../../../docs/adr/ADR-007-form-stack-rhf-zod.md §3.1
|
|
24
|
+
*/
|
|
25
|
+
import { Controller, useFieldArray, useForm, useFormContext } from 'react-hook-form';
|
|
26
|
+
import { zodResolver } from '@hookform/resolvers/zod';
|
|
27
|
+
export { Controller, useFieldArray, useForm, useFormContext, zodResolver };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contrato ideal do DS sobre `react-hook-form`.
|
|
3
|
+
*
|
|
4
|
+
* Tipos re-exportados (ADR-007 §7 PoC + §3.1):
|
|
5
|
+
* - `UseFormReturn` — shape do objeto retornado por `useForm`; substitui
|
|
6
|
+
* `FormikProps<any>` em `Form.interface.ts#FormRef`.
|
|
7
|
+
* - `UseFormProps` — config aceita por `useForm` (modo de validação, etc.).
|
|
8
|
+
* - `UseFormSetValue` — assinatura do `methods.setValue`; substitui
|
|
9
|
+
* `FormikHelpers<any>['setFieldValue']` em `Field.interface.ts`.
|
|
10
|
+
* - `FieldErrors` — shape de `formState.errors`; substitui `FormikErrors<...>`
|
|
11
|
+
* em `onError` callback.
|
|
12
|
+
* - `Control` — objeto opaco propagado para `<Controller>`.
|
|
13
|
+
* - `FieldPath` — string-literal-typed field name.
|
|
14
|
+
* - `FieldValues` — generic shape para schema values.
|
|
15
|
+
* - `Mode` — enum union `'onSubmit' | 'onBlur' | 'onChange' | 'onTouched' | 'all'`;
|
|
16
|
+
* exposto em `Form.interface.ts#FormCommonInterface['mode']` (substitui o
|
|
17
|
+
* par booleano `validateOnChange?`/`validateOnBlur?` do Formik — decisão
|
|
18
|
+
* fixada via tech-radar 2026-05-27).
|
|
19
|
+
* - `Resolver` — função resolver (output do `zodResolver(...)`).
|
|
20
|
+
* - `SubmitHandler` — assinatura do callback de submit.
|
|
21
|
+
*
|
|
22
|
+
* @see ./component.ts
|
|
23
|
+
* @see ../../../docs/adr/ADR-007-form-stack-rhf-zod.md §7
|
|
24
|
+
*/
|
|
25
|
+
export type { Control, FieldErrors, FieldPath, FieldValues, Mode, Resolver, SubmitHandler, UseFormProps, UseFormReturn, UseFormSetValue, } from 'react-hook-form';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `react-select` e
|
|
3
|
+
* `react-select/async`.
|
|
4
|
+
*
|
|
5
|
+
* Surface absorvida:
|
|
6
|
+
* - `DefaultSelect` (default export de `react-select`) — componente síncrono.
|
|
7
|
+
* - `AsyncSelect` (default export de `react-select/async`) — variante async.
|
|
8
|
+
* - `components` (named export de `react-select`) — slot overrides
|
|
9
|
+
* (usado em `InputSelect/DropdownIndicator.tsx`).
|
|
10
|
+
*
|
|
11
|
+
* @see ./README.md
|
|
12
|
+
* @see ADR-004 §3.1 · §6 S3
|
|
13
|
+
*/
|
|
14
|
+
import DefaultSelect, { components } from 'react-select';
|
|
15
|
+
import AsyncSelect from 'react-select/async';
|
|
16
|
+
export { AsyncSelect, components, DefaultSelect };
|
|
17
|
+
export default DefaultSelect;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contrato ideal do DS sobre combobox/select.
|
|
3
|
+
*
|
|
4
|
+
* Types absorvidos:
|
|
5
|
+
* - `DropdownIndicatorProps` — para tipar slot custom em
|
|
6
|
+
* `InputSelect/DropdownIndicator.tsx`.
|
|
7
|
+
* - `ReactSelectProps` — re-export renomeado de `Props` (a fonte
|
|
8
|
+
* chama `Props`, que é nome genérico demais para vazar pro DS).
|
|
9
|
+
*
|
|
10
|
+
* Gap intencional: tipos avançados como `MenuListProps`, `MultiValue`,
|
|
11
|
+
* `GroupBase`, etc. — adicionar conscientemente se virarem necessários.
|
|
12
|
+
* Creatable, sortable e formatGroupLabel **não** absorvidos.
|
|
13
|
+
*
|
|
14
|
+
* @see ./component.ts
|
|
15
|
+
* @see ADR-004 §3.1 · §6 S3
|
|
16
|
+
*/
|
|
17
|
+
export type { DropdownIndicatorProps, Props as ReactSelectProps } from 'react-select';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `styled-components` (6.4.1).
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida (runtime):
|
|
5
|
+
* - `styled` — default factory de styled components
|
|
6
|
+
* - `css`, `keyframes` — template literals para CSS dinâmico / animation
|
|
7
|
+
* - `ThemeProvider` — wrapper de theme (usado por ApollionProvider)
|
|
8
|
+
* - `StyleSheetManager` — controle de injection (shouldForwardProp etc.)
|
|
9
|
+
* - `createGlobalStyle` — usado em themes/GlobalStyle
|
|
10
|
+
* - `useTheme` — hook para ler theme em componentes
|
|
11
|
+
*
|
|
12
|
+
* Gap intencional (ver README): `injectGlobal` (removido em v5+), `withTheme`
|
|
13
|
+
* HOC (legacy, prefira useTheme), APIs `__PRIVATE__` (proibido).
|
|
14
|
+
*
|
|
15
|
+
* @see ./interface.ts (types + DefaultTheme augmentation)
|
|
16
|
+
* @see ./README.md
|
|
17
|
+
* @see ADR-005 §3.1
|
|
18
|
+
*/
|
|
19
|
+
import styled, { createGlobalStyle, css, keyframes, StyleSheetManager, ThemeProvider, useTheme } from 'styled-components';
|
|
20
|
+
export { createGlobalStyle, css, keyframes, StyleSheetManager, ThemeProvider, useTheme };
|
|
21
|
+
export default styled;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contrato ideal do DS sobre `styled-components`.
|
|
3
|
+
*
|
|
4
|
+
* Inclui a augmentation global de `DefaultTheme` — movida para cá de
|
|
5
|
+
* `packages/core/src/typings/index.d.ts` durante S0 (ADR-005 §3.1).
|
|
6
|
+
*
|
|
7
|
+
* TypeScript module augmentation é GLOBAL — funciona independente de path
|
|
8
|
+
* de import; basta este arquivo ser parte da compilação. Durante S0 a
|
|
9
|
+
* propagação é garantida por um forwarding `import` em
|
|
10
|
+
* `src/typings/index.d.ts` (auto-carregado via `tsconfig#types`). Pós-S1
|
|
11
|
+
* (codemod), o próprio grafo de imports cobre.
|
|
12
|
+
*
|
|
13
|
+
* Types absorvidos (estritamente os usados no core hoje):
|
|
14
|
+
* - `CSSObject`, `Interpolation`, `RuleSet` — value types do CSS-in-JS DSL
|
|
15
|
+
* - `DefaultTheme` — re-exportado para imports diretos
|
|
16
|
+
* - `Styled`, `IStyledComponent` — types do component factory
|
|
17
|
+
*
|
|
18
|
+
* @see ./component.ts
|
|
19
|
+
* @see ADR-005 §3.1 / §5 / §8.1
|
|
20
|
+
*/
|
|
21
|
+
import 'styled-components';
|
|
22
|
+
import type { Theme } from '../../themes/ThemeProvider';
|
|
23
|
+
declare module 'styled-components' {
|
|
24
|
+
interface DefaultTheme extends Theme {
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export type { CSSObject, DefaultTheme, Interpolation, IStyledComponent, RuleSet, Styled } from 'styled-components';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `styled-normalize`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida: `normalize` — CSS reset compatível com styled-components,
|
|
5
|
+
* usado em `themes/GlobalStyle/GlobalStyle.tsx`.
|
|
6
|
+
*
|
|
7
|
+
* @see ./README.md
|
|
8
|
+
* @see ADR-004 §3.1
|
|
9
|
+
*/
|
|
10
|
+
export { normalize } from 'styled-normalize';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './component';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `@tanstack/react-table`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida pelo DS (`dataDisplay/DataTable`):
|
|
5
|
+
* - `useReactTable` — hook principal.
|
|
6
|
+
* - `flexRender` — helper para renderizar cells/headers.
|
|
7
|
+
* - `getCoreRowModel` — row model padrão.
|
|
8
|
+
* - `getSortedRowModel` — sort support.
|
|
9
|
+
* - `getFilteredRowModel` — filter support (`globalFilter` + `columnFilters`).
|
|
10
|
+
* - `getPaginationRowModel` — client-side pagination (ROADMAP §🟡 absorption gap).
|
|
11
|
+
* - `getExpandedRowModel` — tree expansion via `getSubRows` (ROADMAP §🟡 absorption gap).
|
|
12
|
+
* - `getFacetedRowModel` — per-column facet pipeline (ROADMAP §🟡 absorption gap).
|
|
13
|
+
* - `getFacetedUniqueValues` — `Map<value, count>` por coluna (SelectFilter).
|
|
14
|
+
* - `getFacetedMinMaxValues` — `[min, max]` por coluna numérica (RangeFilter).
|
|
15
|
+
*
|
|
16
|
+
* Gap intencional remanescente (ver README): `getGroupedRowModel` — sem
|
|
17
|
+
* caso de uso atual. Reabsorver é diff de 1 linha aqui + entrada
|
|
18
|
+
* de roadmap.
|
|
19
|
+
*
|
|
20
|
+
* @see ./README.md
|
|
21
|
+
* @see ADR-004 §3.1 · §6 S4
|
|
22
|
+
*/
|
|
23
|
+
export { flexRender, getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable, } from '@tanstack/react-table';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contrato ideal do DS sobre data tables tipadas.
|
|
3
|
+
*
|
|
4
|
+
* Types absorvidos:
|
|
5
|
+
* - `ColumnDef` — DataTable expõe array de ColumnDef no contrato público.
|
|
6
|
+
* - `Row` — usado em `DataTable.interface.ts` para tipar callbacks/handlers.
|
|
7
|
+
* - `RowSelectionState` — usado em DataTable para selection.
|
|
8
|
+
* - `SortingState` — usado em DataTable para sort.
|
|
9
|
+
* - `PaginationState` — `{ pageIndex, pageSize }`, usado em DataTable para paginação client-side.
|
|
10
|
+
* - `ExpandedState` — `Record<string, boolean> | true`, usado em DataTable para tree expansion.
|
|
11
|
+
* - `ColumnFiltersState` — `Array<{ id: string; value: unknown }>`, usado em DataTable para faceted filters.
|
|
12
|
+
* - `FilterFn` — `(row, columnId, value, addMeta?) => boolean`, custom filter function signature.
|
|
13
|
+
* - `OnChangeFn` — `(updater: T | ((prev: T) => T)) => void`, padrão tanstack
|
|
14
|
+
* para controlled state callbacks (`onPaginationChange`, `onExpandedChange`,
|
|
15
|
+
* `onColumnFiltersChange`).
|
|
16
|
+
*
|
|
17
|
+
* Gap intencional: `Cell`, `Header`, `Table`, `RowModel`, `Column`,
|
|
18
|
+
* `GroupingState`, etc. — superfície enorme de types da lib que o DS
|
|
19
|
+
* não expõe por design.
|
|
20
|
+
*
|
|
21
|
+
* @see ./component.ts
|
|
22
|
+
* @see ADR-004 §3.1 · §6 S4
|
|
23
|
+
*/
|
|
24
|
+
export type { ColumnDef, ColumnFiltersState, ExpandedState, FilterFn, OnChangeFn, PaginationState, Row, RowSelectionState, SortingState, } from '@tanstack/react-table';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `@tanstack/react-virtual`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida pelo DS (`dataDisplay/DataTable`):
|
|
5
|
+
* - `useVirtualizer` — hook principal de virtualização (lists 1D, fixed
|
|
6
|
+
* ou variable size via `estimateSize` + `measureElement` opt-in).
|
|
7
|
+
*
|
|
8
|
+
* Família tanstack — alinha com `vendors/TanstackReactTable`. Substitui
|
|
9
|
+
* `vendors/ReactWindow` (deprecated em S4 deste ciclo). Habilita
|
|
10
|
+
* variable-row-height por construção via `estimateSize: (i) => number`
|
|
11
|
+
* sem refactor adicional.
|
|
12
|
+
*
|
|
13
|
+
* @see ./README.md
|
|
14
|
+
* @see ADR-004 §3.1 (vendor isolation convention)
|
|
15
|
+
*/
|
|
16
|
+
export { useVirtualizer } from '@tanstack/react-virtual';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado dos types upstream que o DS expõe.
|
|
3
|
+
*
|
|
4
|
+
* - `Virtualizer<TScrollElement, TItemElement>` — instância retornada
|
|
5
|
+
* por `useVirtualizer`.
|
|
6
|
+
* - `VirtualItem` — `{ index, start, size, key, lane? }` retornado por
|
|
7
|
+
* `virtualizer.getVirtualItems()`.
|
|
8
|
+
*
|
|
9
|
+
* Sem types DS-owned. Convenção ADR-004 §3.1 mantém o arquivo para
|
|
10
|
+
* uniformidade entre vendors.
|
|
11
|
+
*
|
|
12
|
+
* @see ./component.ts
|
|
13
|
+
*/
|
|
14
|
+
export type { VirtualItem, Virtualizer } from '@tanstack/react-virtual';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export tipado da surface absorvida de `zod`.
|
|
3
|
+
*
|
|
4
|
+
* Surface absorvida (ADR-006 §3.4 + §3.8 B3 — sandboxed config loader):
|
|
5
|
+
* - `z` — namespace with all schema builders (`z.object`, `z.string`,
|
|
6
|
+
* `z.array`, `z.record`, `z.union`, `z.literal`, `z.optional`, etc).
|
|
7
|
+
* - `ZodError` — error type for schema validation failures.
|
|
8
|
+
*
|
|
9
|
+
* Surface NÃO absorvida (gap intencional — ver README.md):
|
|
10
|
+
* `zfd` (form-data extension), `coerce`, `effect`, `transform` chains —
|
|
11
|
+
* not used by Apollion's config schema (purely structural validation).
|
|
12
|
+
*
|
|
13
|
+
* @see ./README.md
|
|
14
|
+
* @see ../../../docs/adr/ADR-006-v4-oklch-dimension-token-split.md §3.8 B3
|
|
15
|
+
* @see ../../../docs/prd/PRD-002-v4-epic-execution.md §S6
|
|
16
|
+
*/
|
|
17
|
+
import { z, ZodError } from 'zod';
|
|
18
|
+
export { z, ZodError };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollion-dsi/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Apollion Design System — Component Library",
|
|
5
5
|
"homepage": "https://github.com/apollion-ds/apollion",
|
|
6
6
|
"license": "MIT",
|
|
@@ -65,6 +65,10 @@
|
|
|
65
65
|
"types": "./lib/elements/Button/index.d.ts",
|
|
66
66
|
"import": "./lib/elements/Button/index.esm.js"
|
|
67
67
|
},
|
|
68
|
+
"./elements/calendar": {
|
|
69
|
+
"types": "./lib/elements/Calendar/index.d.ts",
|
|
70
|
+
"import": "./lib/elements/Calendar/index.esm.js"
|
|
71
|
+
},
|
|
68
72
|
"./elements/dropdown": {
|
|
69
73
|
"types": "./lib/elements/Dropdown/index.d.ts",
|
|
70
74
|
"import": "./lib/elements/Dropdown/index.esm.js"
|
|
@@ -197,6 +201,30 @@
|
|
|
197
201
|
"types": "./lib/skeleton/TextPreset/index.d.ts",
|
|
198
202
|
"import": "./lib/skeleton/TextPreset/index.esm.js"
|
|
199
203
|
},
|
|
204
|
+
"./themes/colors": {
|
|
205
|
+
"types": "./lib/themes/Colors/index.d.ts",
|
|
206
|
+
"import": "./lib/themes/Colors/index.esm.js"
|
|
207
|
+
},
|
|
208
|
+
"./themes/dimension": {
|
|
209
|
+
"types": "./lib/themes/Dimension/index.d.ts",
|
|
210
|
+
"import": "./lib/themes/Dimension/index.esm.js"
|
|
211
|
+
},
|
|
212
|
+
"./themes/foundation": {
|
|
213
|
+
"types": "./lib/themes/Foundation/index.d.ts",
|
|
214
|
+
"import": "./lib/themes/Foundation/index.esm.js"
|
|
215
|
+
},
|
|
216
|
+
"./themes/semantic": {
|
|
217
|
+
"types": "./lib/themes/Semantic/index.d.ts",
|
|
218
|
+
"import": "./lib/themes/Semantic/index.esm.js"
|
|
219
|
+
},
|
|
220
|
+
"./themes/spacing": {
|
|
221
|
+
"types": "./lib/themes/Spacing/index.d.ts",
|
|
222
|
+
"import": "./lib/themes/Spacing/index.esm.js"
|
|
223
|
+
},
|
|
224
|
+
"./themes/surface": {
|
|
225
|
+
"types": "./lib/themes/Surface/index.d.ts",
|
|
226
|
+
"import": "./lib/themes/Surface/index.esm.js"
|
|
227
|
+
},
|
|
200
228
|
"./themes": {
|
|
201
229
|
"types": "./lib/themes/index.d.ts",
|
|
202
230
|
"import": "./lib/themes/index.esm.js"
|
|
@@ -219,10 +247,7 @@
|
|
|
219
247
|
},
|
|
220
248
|
"./package.json": "./package.json"
|
|
221
249
|
},
|
|
222
|
-
"sideEffects":
|
|
223
|
-
"./lib/themes/GlobalStyle/**",
|
|
224
|
-
"./lib/factory/System/**"
|
|
225
|
-
],
|
|
250
|
+
"sideEffects": false,
|
|
226
251
|
"files": [
|
|
227
252
|
"lib/**/*"
|
|
228
253
|
],
|
|
@@ -235,7 +260,7 @@
|
|
|
235
260
|
"prepare": "yarn build",
|
|
236
261
|
"prettier:write": "prettier src/**/*.ts{,x} --write",
|
|
237
262
|
"test:watch": "jest --watch",
|
|
238
|
-
"audit-dependencies": "audit
|
|
263
|
+
"audit-dependencies": "yarn npm audit --severity moderate --no-deprecations",
|
|
239
264
|
"coverage": "jest --coverage",
|
|
240
265
|
"lint": "eslint src --max-warnings 0",
|
|
241
266
|
"lint:full": "eslint src",
|
|
@@ -251,7 +276,8 @@
|
|
|
251
276
|
"prepublishOnly": "yarn build && yarn generate-exports",
|
|
252
277
|
"test": "yarn validate",
|
|
253
278
|
"storybook": "storybook dev -p 4000",
|
|
254
|
-
"build-storybook": "storybook build -o ./build --quiet"
|
|
279
|
+
"build-storybook": "storybook build -o ./build --quiet",
|
|
280
|
+
"test-storybook": "bash ./scripts/run-visual.sh"
|
|
255
281
|
},
|
|
256
282
|
"peerDependencies": {
|
|
257
283
|
"react": "19.2.6",
|
|
@@ -259,47 +285,52 @@
|
|
|
259
285
|
},
|
|
260
286
|
"dependencies": {
|
|
261
287
|
"@emotion/is-prop-valid": "1.4.0",
|
|
288
|
+
"@floating-ui/react": "^0.27.19",
|
|
289
|
+
"@hookform/resolvers": "5.4.0",
|
|
262
290
|
"@tanstack/react-table": "8.21.3",
|
|
263
|
-
"@
|
|
264
|
-
"
|
|
291
|
+
"@tanstack/react-virtual": "^3.13.26",
|
|
292
|
+
"culori": "4.0.2",
|
|
293
|
+
"date-fns": "4.1.0",
|
|
265
294
|
"deepmerge": "4.3.1",
|
|
266
295
|
"fast-deep-equal": "3.1.3",
|
|
267
|
-
"formik": "2.4.9",
|
|
268
296
|
"framer-motion": "12.38.0",
|
|
269
297
|
"jest-styled-components": "7.4.0",
|
|
270
298
|
"lodash.debounce": "4.0.8",
|
|
271
299
|
"nanoid": "5.1.11",
|
|
272
300
|
"object-hash": "3.0.0",
|
|
273
301
|
"react-content-loader": "7.1.2",
|
|
274
|
-
"react-
|
|
302
|
+
"react-day-picker": "9.5.0",
|
|
303
|
+
"react-hook-form": "7.76.1",
|
|
275
304
|
"react-select": "5.10.2",
|
|
276
|
-
"react-window": "1.8.11",
|
|
277
305
|
"styled-components": "6.4.1",
|
|
278
306
|
"styled-normalize": "8.1.1",
|
|
279
|
-
"
|
|
307
|
+
"zod": "4.4.3"
|
|
308
|
+
},
|
|
309
|
+
"optionalDependencies": {
|
|
310
|
+
"@apollion-dsi/tokens": "4.0.0"
|
|
280
311
|
},
|
|
281
312
|
"devDependencies": {
|
|
282
|
-
"@apollion-dsi/eslint-config": "0.
|
|
313
|
+
"@apollion-dsi/eslint-config": "0.7.0",
|
|
283
314
|
"@babel/core": "7.29.0",
|
|
284
315
|
"@babel/preset-env": "7.29.5",
|
|
285
|
-
"@
|
|
286
|
-
"@storybook/addon-
|
|
287
|
-
"@storybook/
|
|
288
|
-
"@storybook/react
|
|
316
|
+
"@playwright/test": "1.60.0",
|
|
317
|
+
"@storybook/addon-essentials": "8.6.18",
|
|
318
|
+
"@storybook/addon-links": "8.6.18",
|
|
319
|
+
"@storybook/react": "8.6.18",
|
|
320
|
+
"@storybook/react-webpack5": "8.6.18",
|
|
321
|
+
"@storybook/test-runner": "0.19.1",
|
|
289
322
|
"@testing-library/dom": "10.4.1",
|
|
290
323
|
"@testing-library/jest-dom": "6.9.1",
|
|
291
324
|
"@testing-library/react": "16.3.2",
|
|
292
325
|
"@testing-library/user-event": "13.5.0",
|
|
293
|
-
"@types/
|
|
326
|
+
"@types/culori": "4.0.1",
|
|
294
327
|
"@types/jest": "30.0.0",
|
|
328
|
+
"@types/jest-image-snapshot": "6.4.0",
|
|
295
329
|
"@types/lodash.debounce": "4.0.9",
|
|
296
330
|
"@types/node": "25.7.0",
|
|
297
331
|
"@types/object-hash": "3.0.6",
|
|
298
332
|
"@types/react": "19.2.14",
|
|
299
333
|
"@types/react-dom": "19.2.3",
|
|
300
|
-
"@types/react-window": "1.8.8",
|
|
301
|
-
"@types/styled-components": "5.1.36",
|
|
302
|
-
"audit-ci": "7.1.0",
|
|
303
334
|
"babel-jest": "30.4.1",
|
|
304
335
|
"babel-loader": "10.1.1",
|
|
305
336
|
"csstype": "3.2.3",
|
|
@@ -307,13 +338,15 @@
|
|
|
307
338
|
"eslint": "9.29.0",
|
|
308
339
|
"jest": "30.4.2",
|
|
309
340
|
"jest-environment-jsdom": "30.4.1",
|
|
341
|
+
"jest-image-snapshot": "^6.5.2",
|
|
310
342
|
"npm-run-all": "4.1.5",
|
|
311
343
|
"prettier": "3.8.3",
|
|
312
344
|
"react": "19.2.6",
|
|
313
345
|
"react-dom": "19.2.6",
|
|
314
|
-
"storybook": "8.6.
|
|
315
|
-
"ts-jest": "29.4.
|
|
346
|
+
"storybook": "8.6.18",
|
|
347
|
+
"ts-jest": "^29.4.11",
|
|
316
348
|
"typescript": "6.0.3",
|
|
349
|
+
"wait-on": "8.0.1",
|
|
317
350
|
"webpack": "5.106.2"
|
|
318
351
|
}
|
|
319
352
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as G}from"./chunk-3V3ZEGHO.esm.js";import{a as W}from"./chunk-2FQC32AA.esm.js";import{a as F}from"./chunk-BE2JDTVA.esm.js";import{a as E,d as M,f as I,h as D,i as H,p as B}from"./chunk-44EW3LMK.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var Z=B((e,t)=>{switch(e){case"expansive":return{padding:t.spacing("medium","small"),fontSize:t.font.fontSize.small,borderRadius:t.border.borderRadius.xs,height:54};case"compact":return{padding:t.spacing("zero","small"),fontSize:t.font.fontSize.small,borderRadius:t.border.borderRadius.xs,height:38};case"micro":return{padding:t.spacing("zero","small"),fontSize:t.font.fontSize.micro,borderRadius:t.border.borderRadius.micro,height:26};default:return{padding:t.spacing("xs","small"),fontSize:t.font.fontSize.small,lineHeight:t.font.lineHeight.close,borderRadius:t.border.borderRadius.xs,height:46}}});function j(e,t,c={}){let{defaultBorderColor:m,dark:d}=(()=>{switch(t){case"error":return{dark:e.colors.danger.dark,defaultBorderColor:e.colors.danger.base};case"success":return{dark:e.colors.success.dark,defaultBorderColor:e.colors.success.base};default:return{dark:e.colors.primary.dark,defaultBorderColor:e.colors.neutral[40]}}})(),l=e.colors.neutral[100],g=e.colors.neutral[20],a=e.colors.neutral[50],T=e.colors.neutral[10],k=e.colors.neutral[10],w=e.colors.neutral[150],C=e.colors.neutral[150],h=e.spacing("small"),S=e.spacing("micro");return{container:n((o,i)=>({...o,width:i.selectProps.width,...c,fontFamily:e.font.fontFamily.main}),"container"),control:n((o,{isDisabled:i,selectProps:s})=>{let u=i?"transparent":m,y=Z(s.size,e);return{...o,...y,borderColor:u,borderWidth:1,minHeight:void 0,background:i?T:"#fff",boxShadow:e.depth("level-one-minus"),"&:hover, &:focus":{boxShadow:"none",borderColor:u}}},"control"),valueContainer:n((o,{isMulti:i})=>{let s=i?`calc(${S} * -1) 0`:0;return{...o,margin:s,padding:0,lineHeight:1}},"valueContainer"),input:n(o=>({...o,padding:0,margin:0,fontSize:"1rem"}),"input"),singleValue:n(o=>({...o,color:d}),"singleValue"),multiValue:n(o=>({...o,margin:S,fontSize:"0.75rem",background:k,"& svg":{color:C,strokeWidth:1},"& > div:first-of-type":{color:w}}),"multiValue"),multiValueLabel:n(o=>({...o,padding:e.spacing(0,"micro"),lineHeight:e.font.lineHeight.regular}),"multiValueLabel"),multiValueRemove:n(o=>({...o,background:g,cursor:"pointer","&:hover":{background:T}}),"multiValueRemove"),placeholder:n((o,{isDisabled:i})=>({...o,color:i?a:d}),"placeholder"),indicatorsContainer:n((o,{isDisabled:i})=>({...o,lineHeight:1,display:"inline-flex",alignItems:"center",alignSelf:"center","& > div":{paddingTop:0,paddingBottom:0},"& svg":{color:i?a:l,fontSize:"inherit",width:"1em",height:"1em"}}),"indicatorsContainer"),indicatorSeparator:n((o,{isDisabled:i})=>({...o,margin:0,height:"1rem",alignSelf:"center",borderColor:i?a:l,backgroundColor:i?a:l}),"indicatorSeparator"),menu:n(o=>({...o,borderRadius:8,overflow:"hidden",boxShadow:e.depth("level-three"),marginTop:S,padding:0}),"menu"),menuList:n(o=>({...o,borderRadius:8,border:"1px solid #fff",padding:0,"& div:not(:first-of-type)":{borderTop:"1px solid #fff"}}),"menuList"),option:n((o,i)=>{let s=e.colors.baseLight;return i.isSelected&&(s=e.colors.neutral[5]),i.isFocused&&(s=e.colors.neutral[20]),{...o,color:e.colors.primary.dark,backgroundColor:s,cursor:"pointer",textAlign:"left",padding:h,lineHeight:"1.2rem","&:active":{color:e.colors.baseLight,backgroundColor:e.colors.primary.base}}},"option"),clearIndicator:n(o=>({...o,cursor:"pointer"}),"clearIndicator"),dropdownIndicator:n(o=>({...o,cursor:"pointer",paddingRight:0}),"dropdownIndicator")}}n(j,"createComponentStyle");import q,{forwardRef as ee,useImperativeHandle as re,useMemo as oe,useState as ne}from"react";import te from"react-select";import ie from"react-select/async";import{useTheme as ae}from"styled-components";import r from"react";import{components as _}from"react-select";function Y(e){return r.createElement(_.DropdownIndicator,{...e},r.createElement("div",{style:{width:24}},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{margin:"auto",background:"0 0"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",display:"block"},r.createElement("defs",null),r.createElement("g",{transform:"translate(80 50)"},r.createElement("circle",{r:"6",fill:"#9bb6c0",transform:"scale(1.37926)"},r.createElement("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.875s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.875s"}))),r.createElement("g",{transform:"rotate(45 -50 122)"},r.createElement("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".9",transform:"scale(1.44176)"},r.createElement("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.75s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.75s"}))),r.createElement("g",{transform:"rotate(90 -15 65)"},r.createElement("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".8",transform:"scale(1.00426)"},r.createElement("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.625s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.625s"}))),r.createElement("g",{transform:"rotate(135 0 42)"},r.createElement("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".6",transform:"scale(1.06676)"},r.createElement("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.5s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.5s"}))),r.createElement("g",{transform:"rotate(180 10 25)"},r.createElement("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".5",transform:"scale(1.12926)"},r.createElement("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.375s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.375s"}))),r.createElement("g",{transform:"rotate(-135 20 8)"},r.createElement("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".4",transform:"scale(1.19176)"},r.createElement("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.25s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.25s"}))),r.createElement("g",{transform:"rotate(-90 35 -15)"},r.createElement("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".3",transform:"scale(1.25426)"},r.createElement("animateTransform",{attributeName:"transform",type:"scale",begin:"-0.125s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"-0.125s"}))),r.createElement("g",{transform:"rotate(-45 70 -72)"},r.createElement("circle",{r:"6",fill:"#9bb6c0",fillOpacity:".1",transform:"scale(1.31676)"},r.createElement("animateTransform",{attributeName:"transform",type:"scale",begin:"0s",values:"1.5 1.5;1 1",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"fill-opacity",keyTimes:"0;1",dur:"1s",repeatCount:"indefinite",values:"1;0",begin:"0s"}))))))}n(Y,"DropdownIndicator");import{useCallback as U,useRef as R}from"react";function z(e,t){if(!(!e||H(t))){if(I(e))return e;if(D(e))return t.find(c=>c.value===e);if(Array.isArray(e)){if(e.every(c=>typeof c=="string"))return t.filter(c=>e.includes(c.value));if(e.every(I))return e}}}n(z,"getDefaultValue");function $(e){let t=R(e),{active:c,disable:m,enable:d}=F();G(()=>{t.current=e});let l=U(async g=>{try{d();let a=await t.current(g);if(Array.isArray(a))return a;throw new Error('"LoadOptions" prop did not return the expected result')}catch(a){E.error(a==null?void 0:a.message)}finally{m()}},[d,m]);return[c,l]}n($,"useLoadOptions");function se(e,t){let{loadingPlaceholder:c="Carregando (aguarde)...",emptyMessage:m="Sem Op\xE7\xF5es",isLoading:d,onChange:l,loadOptions:g,onItemSelect:a,variant:T,style:k,readOnly:w,value:C,hideSelectedOptions:h=!1,menuPlacement:S="bottom",placeholder:o="Selecione...",size:i="medium",...s}=e,[u,y]=ne(()=>{let{options:p,defaultValue:b}=s;return z(b||C,p)}),L=n(p=>{y(p||[]);let b=M(p);if(l&&l(p?b:[]),s.isMulti&&a){let x=Array.isArray(u)&&u.length,O=b.length,P=n(()=>{let f=u||[];l&&l(f),y(f)},"cancelAction");if(O===0)u.forEach(f=>{a({option:f,type:"REMOVE",cancelAction:n(()=>y(V=>{let v=[...V,f];return l&&l(v),v}),"cancelAction")})});else if(O>x)a({option:b[O-1],type:"ADD",cancelAction:P});else if(O<x){let f=u.find(V=>!b.some(v=>v.value===V.value));a({option:f,type:"REMOVE",cancelAction:P})}}},"onChangeValue");W(()=>{y(C||[])},[C]),re(t,()=>({setValue:n(p=>{L(z(p,s.options))},"setValue")}));let[K,Q]=$(g),N=ae(),X=oe(()=>j(N,T,k),[N,T,k]),A={ref:t,...s,size:i,hideSelectedOptions:h,menuPlacement:S,placeholder:o,...(d||K)&&{components:{DropdownIndicator:Y,LoadingIndicator:null},placeholder:c,isDisabled:!0},closeMenuOnSelect:!s.isMulti,styles:X,value:u,noOptionsMessage:n(()=>m,"noOptionsMessage"),onChange:L,...w&&{isClearable:!1,isSearchable:!1,openMenuOnClick:!1,menuIsOpen:!1}};return g?q.createElement(ie,{...A,cacheOptions:!0,defaultOptions:!0,loadOptions:Q}):q.createElement(te,{...A})}n(se,"InputSelectComponent");var J=ee(se);J.displayName="InputSelect";export{j as a,J as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as y}from"./chunk-L6UB7RUM.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";import N,{forwardRef as S,useMemo as V,useState as O}from"react";import h from"lodash.debounce";function c(e){return e.replace(/\D/g,"")}n(c,"removeNonDigits");function I(e,r="."){return c(e).replace(/\B(?=(\d{3})+(?!\d))/g,r)}n(I,"formatNumber");function f(e,r){let t=e;if(r.prefix&&t&&(t=e.replaceAll(r.prefix,"").trim()),t==="")return t;let{decimal:i,thousand:o,validate:m}=r,s=t.indexOf(i);if(s>=0){let a=t.substring(0,s),u=t.substring(s);a=I(a,o),m&&(u=`${u}00`),u=c(u).substring(0,2),t=`${a}${i}${u}`}else t=I(t),m&&(t+=`${i}00`);return t}n(f,"formatCurrency");function F(e,r=","){if(typeof e=="number")return e;try{let t=e.indexOf(r);if(t>=0){let i=c(e.substring(0,t)),o=c(e.substring(t));return+`${i}.${o}`}return Number(c(e))}catch(t){return console.log("Failed to convert string to Number"),0}}n(F,"currencyToNumber");function C(e,r){let t=e;return typeof t=="number"&&(t=t.toLocaleString("pt-BR",{style:"decimal"})),f(t,{validate:!0,...r})}n(C,"getInitialCurrencyValue");var E=S(({onChange:e,value:r,decimal:t=",",thousand:i=".",prefix:o="R$",...m},s)=>{let[a,u]=O(()=>r?C(r,{decimal:t,thousand:i,prefix:o}):""),p=V(()=>h(l=>e==null?void 0:e(l),250),[e]),d=n((l,x)=>{var b;let g=f((b=l.target.value)!=null?b:"",{validate:x,decimal:t,thousand:i,prefix:o});u(g),p(g)},"handleChange"),$=n(()=>{u(""),p("")},"resetValues"),v=o?`${o} ${a}`:a;return N.createElement(y,{...m,ref:s,reset:$,value:v,onChange:d,onBlur:l=>d(l,!0)})});E.displayName="InputCurrency";export{f as a,F as b,C as c,E as d};
|
|
File without changes
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{a as T}from"./chunk-CDRLVSLF.esm.js";import{a as s}from"./chunk-BYYMKYCC.esm.js";import{c}from"./chunk-HK3DHNXU.esm.js";import{d as f}from"./chunk-XNBK5E7D.esm.js";import{a as C}from"./chunk-VTRVGJA6.esm.js";import{b as a}from"./chunk-752Z7BQF.esm.js";import{b as m}from"./chunk-A6Z2M2XU.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";import l,{useEffect as x}from"react";import h from"styled-components";var u=h.td`
|
|
2
|
-
${s};
|
|
3
|
-
${m};
|
|
4
|
-
${a({fontFamily:"main"})};
|
|
5
|
-
`;var t=n(e=>{let{ellipsis:d}=l.useContext(T),[i,b]=l.useState(null),o=l.createRef();function p(){return o===null||i===null?e.children:d&&i?l.createElement(c,{content:e.children},e.children):e.children==="string"?l.createElement(f,{color:"baseDark"},e.children):e.children}return n(p,"getCustomChild"),x(()=>{let r=o.current;r!==null&&b(r.offsetWidth<r.scrollWidth)},[o.current]),l.createElement(u,{ref:o,...e},l.createElement(C,null,p()))},"TableCellComponent");t.displayName="TableCell";export{u as a,t as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as m}from"./chunk-5XXISYUW.esm.js";import{c as a}from"./chunk-3XS7RVYS.esm.js";import{b as o}from"./chunk-752Z7BQF.esm.js";import{b as r}from"./chunk-W663AGNE.esm.js";import{d as t}from"./chunk-U27SLYIV.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import f,{forwardRef as x}from"react";import S from"styled-components";function y({size:n}){switch(n){case"extraSmall":return[r({p:"micro"}),t({borderRadius:"micro"}),o({fontSize:"micro"})];case"small":return[r({p:"xs"}),t({borderRadius:"circular"}),o({fontSize:"xs"})];case"large":return[r({p:"medium"}),t({borderRadius:"circular"}),o({fontSize:"medium"})];default:return[r({p:"small"}),t({borderRadius:"circular"}),o({fontSize:"small"})]}}i(y,"iconButtonSize");var u=S(m)(y);var s=x(({color:n="primary",size:l="medium",variant:p="contained",icon:d=null,...c},I)=>{let{isLoading:B,loadingComponent:e}=c;return f.createElement(u,{...c,color:n,size:l,variant:p,as:"button",ref:I},B?e!=null?e:f.createElement(a,{"data-testid":"icon-spinner"}):d)});s.displayName="IconButton";export{u as a,s as b};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import{d as f}from"./chunk-5XXISYUW.esm.js";import{a as p}from"./chunk-XNBK5E7D.esm.js";import{a as e}from"./chunk-VTRVGJA6.esm.js";import{c as d}from"./chunk-QUHHEZMP.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";import a,{forwardRef as S,useMemo as F}from"react";import{nanoid as H}from"nanoid";import u from"styled-components";var c=u(e)`
|
|
2
|
-
border-bottom: 1px solid ${({theme:o})=>o.colors.neutral[20]};
|
|
3
|
-
|
|
4
|
-
& > ${e} {
|
|
5
|
-
transform: translateY(1px);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
${({theme:o})=>o.breakpoints.down("sm")} {
|
|
9
|
-
> ${e} {
|
|
10
|
-
overflow-x: scroll;
|
|
11
|
-
overflow-y: hidden;
|
|
12
|
-
|
|
13
|
-
&::-webkit-scrollbar {
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
`,x=u(f).attrs(o=>{var t,r;return{borderRadius:(t=o.borderRadius)!=null?t:"straight",borderWidth:(r=o.borderWidth)!=null?r:"none"}})`
|
|
19
|
-
flex-shrink: 0;
|
|
20
|
-
|
|
21
|
-
/*
|
|
22
|
-
* Em mobile, o cabeçalho rolável (parent com overflow-x) + a borda inferior
|
|
23
|
-
* do header podiam interceptar o tap antes do botão. position:relative + z-index
|
|
24
|
-
* garante a hit-zone do botão acima do border-bottom do parent, e
|
|
25
|
-
* touch-action:manipulation desabilita o delay de 300 ms herdado do double-tap.
|
|
26
|
-
*/
|
|
27
|
-
position: relative;
|
|
28
|
-
z-index: 1;
|
|
29
|
-
touch-action: manipulation;
|
|
30
|
-
|
|
31
|
-
border-bottom: 2px solid
|
|
32
|
-
${({isActive:o,theme:t,color:r})=>o?d(t.colors[r],"base"):"transparent"};
|
|
33
|
-
|
|
34
|
-
&:focus,
|
|
35
|
-
&:active,
|
|
36
|
-
&:hover {
|
|
37
|
-
box-shadow: none;
|
|
38
|
-
text-decoration: none;
|
|
39
|
-
}
|
|
40
|
-
`;function $({isActive:o,tabTitle:t,color:r="primary",buttonProps:m}){return a.createElement(x,{as:"button",variant:"linked",isActive:o,color:r,...m},a.createElement(p,{fontWeight:"bold",lineHeight:"tight"},t))}s($,"TabButton");var g=S(({selectedIndex:o=0,onChange:t,tabs:r,tabHeaderProps:m,tabContentProps:T,...y},v)=>{let b=F(()=>r.map(i=>({...i,id:H()})),[r]),B=s(i=>o===i,"isCurrentIndex");return a.createElement(e,{...y,ref:v},a.createElement(c,{...m},a.createElement(e,{flexDirection:"row",width:"100%",gap:"medium",container:!0,position:"relative",alignItems:"end",as:"section"},b.map(({id:i,buttonProps:h,handleClick:l,...w},n)=>a.createElement($,{key:i,isActive:B(n),...w,buttonProps:{...h,onClick:s(I=>{n!==o&&(l==null||l(n,I),t==null||t(n))},"onClick")}})))),a.createElement(e,{flex:"fluid",as:"section",container:!0,width:"100%",...T},b[o].content))});g.displayName="Tabs";export{c as a,x as b,$ as c,g as d};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-XNBK5E7D.esm.js";import{a as g}from"./chunk-VTRVGJA6.esm.js";import{a as m}from"./chunk-WTWPQ4EL.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import a,{forwardRef as B}from"react";import l from"styled-components";function h({size:e,border:o}){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 o||(r.borderRadius=void 0),r}i(h,"progressOverlayProps");var f=l(m).attrs(h)`
|
|
2
|
-
background: var(--bg-overlay);
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
width: 100%;
|
|
5
|
-
`,c=l(m)`
|
|
6
|
-
height: 100%;
|
|
7
|
-
background: var(--bg-progress);
|
|
8
|
-
transition: ${({theme:e})=>e.animation.transitions.short};
|
|
9
|
-
`;function y({color:e,theme:o}){let{base:r,dark:s,light:n}=o.colors[e];return{"--text-color":s,"--bg-overlay":n,"--bg-progress":r}}i(y,"getProgressColor");var p=l(g)`
|
|
10
|
-
${y}
|
|
11
|
-
|
|
12
|
-
${t} {
|
|
13
|
-
color: var(--text-color);
|
|
14
|
-
}
|
|
15
|
-
`;var d=B(({color:e="primary",border:o,size:r="medium",progress:s=0,showProgressLabel:n=!1},P)=>{let b=-100+Number(s);return a.createElement(p,{color:e,justifyContent:"center",alignItems:"center",ref:P},a.createElement(f,{size:r,border:o},a.createElement(c,{style:{transform:`translateX(${b}%)`}})),n&&a.createElement(t,null,s,"%"))});d.displayName="ProgressBar";export{d as a};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{o as I}from"./chunk-LZTZMWTK.esm.js";import{e as S}from"./chunk-FVRWVTQD.esm.js";import{d as u}from"./chunk-XNBK5E7D.esm.js";import{a as p}from"./chunk-VTRVGJA6.esm.js";import{b as f}from"./chunk-A6Z2M2XU.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import o,{forwardRef as E,useState as F}from"react";import{nanoid as $}from"nanoid";import x from"styled-components";var g=x(p)`
|
|
2
|
-
list-style: none;
|
|
3
|
-
padding: 0;
|
|
4
|
-
margin: 0;
|
|
5
|
-
`,h=x(p)`
|
|
6
|
-
padding: 8px 12px;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
|
|
9
|
-
&:hover {
|
|
10
|
-
${f(({isSelected:t})=>!t&&{bgColor:"neutral.10"})}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
${f(({isSelected:t})=>t&&{bgColor:"neutral.40"})}
|
|
14
|
-
`;var j=l(({item:t,showCheckIcon:a,action:d})=>{var c;if(!t.title)throw new Error("You need to pass a title to you object inside the list");let r=a&&t.isSelected&&!t.to,i=l(()=>!t.to&&d(),"onClickItem"),s=o.createElement(h,{as:"li",gap:"xs",width:"100%",flexDirection:"row",alignItems:"center",borderRadius:"micro",isSelected:t.isSelected,onClick:i},(c=t.icon)!=null?c:r&&o.createElement(I,{name:"check",color:"main"}),o.createElement(u,{whiteSpace:"nowrap"},t.title));return t.to?o.createElement(S,{to:t.to},s):s},"ListItem"),v=E(({content:t,multiple:a,showCheckIcon:d,onSelectItems:r,onItemClick:i,...s},c)=>{let[m,w]=F(()=>t.map(e=>({id:$(5),isSelected:!1,...e}))),T=l(e=>()=>{var y;let b=e.id,k=!e.isSelected,L=m.map(n=>n.id===b?{...n,isSelected:k}:{...n,isSelected:a?n.isSelected:!1});if(w(L),r==null||r(L),i==null||i(e),e.action){let{action:n,icon:B,...C}=e;(y=e.action)==null||y.call(e,C)}},"toggleItem");return o.createElement(g,{as:"ul",gap:"micro",...s,ref:c},m.map(e=>o.createElement(j,{item:e,key:e.id,showCheckIcon:d,action:T(e)})))});v.displayName="List";export{g as a,h as b,v as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as l}from"./chunk-L6UB7RUM.esm.js";import{r as p}from"./chunk-44EW3LMK.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import d,{useMemo as c,useState as v}from"react";import C from"lodash.debounce";function f(i){let{mask:a,value:n,onChange:e,...k}=i,o=c(()=>p(a),[a]),[I,s]=v(()=>n?o(n):""),r=c(()=>C(e!=null?e:(()=>{}),250),[e]);return d.createElement(l,{...k,reset:t(()=>{s(""),r("")},"resetValues"),value:I,onChange:t((M,V)=>{var m;let u=o((m=M.target.value)!=null?m:"");s(u),r(u)},"handleChange")})}t(f,"InputMaskComponent");f.displayName="InputMask";export{f as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as p,o as c}from"./chunk-LZTZMWTK.esm.js";import{d as g}from"./chunk-XNBK5E7D.esm.js";import{a as m}from"./chunk-VTRVGJA6.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";import s from"react";function f(t){return t==="extraLarge"?"xl":t==="giant"?"xxl":t}a(f,"getIconSize");import u from"styled-components";function l({theme:t,size:n,label:e}){let{fontSize:o}=t.font,i=(e==null?void 0:e.length)||0;switch(n){case"small":{let r=t.spacing("medium");return{width:r,height:r,fontSize:o.micro}}case"large":{let r=t.spacing("xl");return{width:r,height:r,fontSize:i===1?o.xxl:o.large}}case"extraLarge":{let r=t.spacing("xxl");return{width:r,height:r,fontSize:i===1?o.gargantua:o.giant}}case"giant":{let r=t.spacing("giant");return{width:r,height:r,fontSize:o.gargantua}}default:{let r=t.spacing("large");return{width:r,height:r,fontSize:i===1?o.medium:o.xs}}}}a(l,"getSizes");var h=u(m)(l);function x({imgSrc:t,icon:n,size:e,label:o}){return t?s.createElement(p,{width:"100%",height:"100%",src:t,"data-testid":"avatar-image"}):n?s.createElement(c,{name:n,size:f(e),"data-testid":"avatar-icon"}):s.createElement(g,{textTransform:"uppercase"},o)}a(x,"getContent");var d=a(({size:t,icon:n,imgSrc:e,label:o,...i})=>s.createElement(h,{alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"circular",bgColor:"grayscale.5",color:"primary.base",label:o,size:t,...i},x({size:t,icon:n,imgSrc:e,label:o})),"Avatar");d.displayName="Avatar";export{d as a};
|