@banzamel/mineralui 0.9.0 → 0.10.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 +152 -151
- package/dist/AmericanExpressIcon-Bpk-Yz4y.js +1794 -0
- package/dist/AmericanExpressIcon-Bpk-Yz4y.js.map +1 -0
- package/dist/AmericanExpressIcon-Duhw7WXn.cjs +2 -0
- package/dist/AmericanExpressIcon-Duhw7WXn.cjs.map +1 -0
- package/dist/AppShell-BGFVRml6.js +659 -0
- package/dist/AppShell-BGFVRml6.js.map +1 -0
- package/dist/AppShell-ButYSI7U.cjs +2 -0
- package/dist/AppShell-ButYSI7U.cjs.map +1 -0
- package/dist/ArrowDownIcon-DzDirevG.js +21 -0
- package/dist/ArrowDownIcon-DzDirevG.js.map +1 -0
- package/dist/ArrowDownIcon-EfyFLBHR.cjs +2 -0
- package/dist/ArrowDownIcon-EfyFLBHR.cjs.map +1 -0
- package/dist/Avatar-Ba4TdSXp.cjs +2 -0
- package/dist/Avatar-Ba4TdSXp.cjs.map +1 -0
- package/dist/Avatar-BzokUdR4.js +50 -0
- package/dist/Avatar-BzokUdR4.js.map +1 -0
- package/dist/Badge-BF8-zXDl.js +15 -0
- package/dist/Badge-BF8-zXDl.js.map +1 -0
- package/dist/Badge-CivRCrzY.cjs +2 -0
- package/dist/Badge-CivRCrzY.cjs.map +1 -0
- package/dist/BrandMoreIcons-Cb4cXa_M.cjs +2 -0
- package/dist/BrandMoreIcons-Cb4cXa_M.cjs.map +1 -0
- package/dist/BrandMoreIcons-DnusZA-G.js +825 -0
- package/dist/BrandMoreIcons-DnusZA-G.js.map +1 -0
- package/dist/Button-BUd8Dkdx.cjs +2 -0
- package/dist/Button-BUd8Dkdx.cjs.map +1 -0
- package/dist/Button-BnxXh7zp.js +52 -0
- package/dist/Button-BnxXh7zp.js.map +1 -0
- package/dist/CalendarBoard-DidNBym4.js +998 -0
- package/dist/CalendarBoard-DidNBym4.js.map +1 -0
- package/dist/CalendarBoard-DvGimf8K.cjs +2 -0
- package/dist/CalendarBoard-DvGimf8K.cjs.map +1 -0
- package/dist/CalendarIcon-D74I9hJl.cjs +2 -0
- package/dist/CalendarIcon-D74I9hJl.cjs.map +1 -0
- package/dist/CalendarIcon-gvWV3ioD.js +29 -0
- package/dist/CalendarIcon-gvWV3ioD.js.map +1 -0
- package/dist/Card-AbIdSFmm.cjs +2 -0
- package/dist/Card-AbIdSFmm.cjs.map +1 -0
- package/dist/Card-B_4TR7gc.js +55 -0
- package/dist/Card-B_4TR7gc.js.map +1 -0
- package/dist/CardGrid-Cm0qx9ue.cjs +2 -0
- package/dist/CardGrid-Cm0qx9ue.cjs.map +1 -0
- package/dist/CardGrid-nqnCwmTD.js +581 -0
- package/dist/CardGrid-nqnCwmTD.js.map +1 -0
- package/dist/Checkbox-B4t7uzS2.js +60 -0
- package/dist/Checkbox-B4t7uzS2.js.map +1 -0
- package/dist/Checkbox-BXetIDRT.cjs +2 -0
- package/dist/Checkbox-BXetIDRT.cjs.map +1 -0
- package/dist/ChevronDownIcon-BDiyHPT4.js +15 -0
- package/dist/ChevronDownIcon-BDiyHPT4.js.map +1 -0
- package/dist/ChevronDownIcon-CkT_O5e5.cjs +2 -0
- package/dist/ChevronDownIcon-CkT_O5e5.cjs.map +1 -0
- package/dist/ChevronLeftIcon-DVwatRi0.cjs +2 -0
- package/dist/ChevronLeftIcon-DVwatRi0.cjs.map +1 -0
- package/dist/ChevronLeftIcon-lTktpFVi.js +15 -0
- package/dist/ChevronLeftIcon-lTktpFVi.js.map +1 -0
- package/dist/ChevronRightIcon-1oaUsxM2.js +15 -0
- package/dist/ChevronRightIcon-1oaUsxM2.js.map +1 -0
- package/dist/ChevronRightIcon-Bxqjb5s0.cjs +2 -0
- package/dist/ChevronRightIcon-Bxqjb5s0.cjs.map +1 -0
- package/dist/ClockIcon-CTHDAJUU.js +19 -0
- package/dist/ClockIcon-CTHDAJUU.js.map +1 -0
- package/dist/ClockIcon-DeDZlnTQ.cjs +2 -0
- package/dist/ClockIcon-DeDZlnTQ.cjs.map +1 -0
- package/dist/CloseIcon-5btDsUxB.cjs +2 -0
- package/dist/CloseIcon-5btDsUxB.cjs.map +1 -0
- package/dist/CloseIcon-DGl8CDLK.js +15 -0
- package/dist/CloseIcon-DGl8CDLK.js.map +1 -0
- package/dist/ColorPicker-BqE5PvW5.js +457 -0
- package/dist/ColorPicker-BqE5PvW5.js.map +1 -0
- package/dist/ColorPicker-DlrPaM8W.cjs +2 -0
- package/dist/ColorPicker-DlrPaM8W.cjs.map +1 -0
- package/dist/DropdownMenu-Bf1l4spO.js +139 -0
- package/dist/DropdownMenu-Bf1l4spO.js.map +1 -0
- package/dist/DropdownMenu-CvUG4QEC.cjs +2 -0
- package/dist/DropdownMenu-CvUG4QEC.cjs.map +1 -0
- package/dist/FileExtIcons-BecWBncW.js +145 -0
- package/dist/FileExtIcons-BecWBncW.js.map +1 -0
- package/dist/FileExtIcons-FTFddWmg.cjs +2 -0
- package/dist/FileExtIcons-FTFddWmg.cjs.map +1 -0
- package/dist/FolderOpenIcon-BAxBjkbK.js +31 -0
- package/dist/FolderOpenIcon-BAxBjkbK.js.map +1 -0
- package/dist/FolderOpenIcon-D2fsAXLM.cjs +2 -0
- package/dist/FolderOpenIcon-D2fsAXLM.cjs.map +1 -0
- package/dist/Heading-CALsycVL.cjs +2 -0
- package/dist/Heading-CALsycVL.cjs.map +1 -0
- package/dist/Heading-DtcgehrI.js +17 -0
- package/dist/Heading-DtcgehrI.js.map +1 -0
- package/dist/I18nProvider-CAnFu85r.js +69 -0
- package/dist/I18nProvider-CAnFu85r.js.map +1 -0
- package/dist/I18nProvider-CiYjTmgv.cjs +2 -0
- package/dist/I18nProvider-CiYjTmgv.cjs.map +1 -0
- package/dist/Icon-B-s6VJr5.cjs +2 -0
- package/dist/Icon-B-s6VJr5.cjs.map +1 -0
- package/dist/Icon-B848Vysm.js +45 -0
- package/dist/Icon-B848Vysm.js.map +1 -0
- package/dist/InputFile-C6Y-y8CQ.cjs +2 -0
- package/dist/InputFile-C6Y-y8CQ.cjs.map +1 -0
- package/dist/InputFile-DicC8Tbv.js +1356 -0
- package/dist/InputFile-DicC8Tbv.js.map +1 -0
- package/dist/InputSearch-BO_j0nAW.js +218 -0
- package/dist/InputSearch-BO_j0nAW.js.map +1 -0
- package/dist/InputSearch-Bk5YFz09.cjs +2 -0
- package/dist/InputSearch-Bk5YFz09.cjs.map +1 -0
- package/dist/Kbd-qcCkiDkW.js +55 -0
- package/dist/Kbd-qcCkiDkW.js.map +1 -0
- package/dist/Kbd-wmU-rhWO.cjs +2 -0
- package/dist/Kbd-wmU-rhWO.cjs.map +1 -0
- package/dist/Link-D3lmTu3R.js +30 -0
- package/dist/Link-D3lmTu3R.js.map +1 -0
- package/dist/Link-DSIStgFG.cjs +2 -0
- package/dist/Link-DSIStgFG.cjs.map +1 -0
- package/dist/MPagination-C-Ff4orL.js +103 -0
- package/dist/MPagination-C-Ff4orL.js.map +1 -0
- package/dist/MPagination-CVy14D9v.cjs +2 -0
- package/dist/MPagination-CVy14D9v.cjs.map +1 -0
- package/dist/MasonryItem-BsD5OuYt.js +368 -0
- package/dist/MasonryItem-BsD5OuYt.js.map +1 -0
- package/dist/MasonryItem-CBxzCuRr.cjs +2 -0
- package/dist/MasonryItem-CBxzCuRr.cjs.map +1 -0
- package/dist/MenuIcon-mX5bSTAp.js +20 -0
- package/dist/MenuIcon-mX5bSTAp.js.map +1 -0
- package/dist/MenuIcon-x1LjLPWp.cjs +2 -0
- package/dist/MenuIcon-x1LjLPWp.cjs.map +1 -0
- package/dist/Modal-BDDrW5HI.js +56 -0
- package/dist/Modal-BDDrW5HI.js.map +1 -0
- package/dist/Modal-DrtVZtb1.cjs +2 -0
- package/dist/Modal-DrtVZtb1.cjs.map +1 -0
- package/dist/NeutralIcon-BPZ3coWv.js +67 -0
- package/dist/NeutralIcon-BPZ3coWv.js.map +1 -0
- package/dist/NeutralIcon-CScIXs8_.cjs +2 -0
- package/dist/NeutralIcon-CScIXs8_.cjs.map +1 -0
- package/dist/PhoneIcon-CPGZ1D2-.cjs +2 -0
- package/dist/PhoneIcon-CPGZ1D2-.cjs.map +1 -0
- package/dist/PhoneIcon-DXlB7Uz0.js +38 -0
- package/dist/PhoneIcon-DXlB7Uz0.js.map +1 -0
- package/dist/Popconfirm-BJtyFjdY.js +200 -0
- package/dist/Popconfirm-BJtyFjdY.js.map +1 -0
- package/dist/Popconfirm-DQqBq_OP.cjs +2 -0
- package/dist/Popconfirm-DQqBq_OP.cjs.map +1 -0
- package/dist/Popover-BLYlu0jf.js +95 -0
- package/dist/Popover-BLYlu0jf.js.map +1 -0
- package/dist/Popover-BfCYHGUU.cjs +2 -0
- package/dist/Popover-BfCYHGUU.cjs.map +1 -0
- package/dist/Portal-CeUZ2xET.cjs +2 -0
- package/dist/Portal-CeUZ2xET.cjs.map +1 -0
- package/dist/Portal-s54PuE_l.js +10 -0
- package/dist/Portal-s54PuE_l.js.map +1 -0
- package/dist/QrCode-CP1sYiXF.js +371 -0
- package/dist/QrCode-CP1sYiXF.js.map +1 -0
- package/dist/QrCode-scUXUrNj.cjs +2 -0
- package/dist/QrCode-scUXUrNj.cjs.map +1 -0
- package/dist/SearchIcon-DDahNpBX.js +24 -0
- package/dist/SearchIcon-DDahNpBX.js.map +1 -0
- package/dist/SearchIcon-DeKs76RI.cjs +2 -0
- package/dist/SearchIcon-DeKs76RI.cjs.map +1 -0
- package/dist/Slider-BgHTWUXS.cjs +2 -0
- package/dist/Slider-BgHTWUXS.cjs.map +1 -0
- package/dist/Slider-BvnJPPAf.js +75 -0
- package/dist/Slider-BvnJPPAf.js.map +1 -0
- package/dist/Stack-DzFHpLMS.cjs +2 -0
- package/dist/Stack-DzFHpLMS.cjs.map +1 -0
- package/dist/Stack-xUXSOKqN.js +40 -0
- package/dist/Stack-xUXSOKqN.js.map +1 -0
- package/dist/StarFillIcon-D4HEOD6y.cjs +2 -0
- package/dist/StarFillIcon-D4HEOD6y.cjs.map +1 -0
- package/dist/StarFillIcon-tMWVk8tT.js +25 -0
- package/dist/StarFillIcon-tMWVk8tT.js.map +1 -0
- package/dist/Surface-BVk3r7ws.cjs +2 -0
- package/dist/Surface-BVk3r7ws.cjs.map +1 -0
- package/dist/Surface-E8hELelv.js +40 -0
- package/dist/Surface-E8hELelv.js.map +1 -0
- package/dist/Text-DOVuH0uw.js +39 -0
- package/dist/Text-DOVuH0uw.js.map +1 -0
- package/dist/Text-DUuY1RDL.cjs +2 -0
- package/dist/Text-DUuY1RDL.cjs.map +1 -0
- package/dist/ThemeProvider-CCWDIXiA.cjs +2 -0
- package/dist/ThemeProvider-CCWDIXiA.cjs.map +1 -0
- package/dist/ThemeProvider-COEImCNH.js +132 -0
- package/dist/ThemeProvider-COEImCNH.js.map +1 -0
- package/dist/TimePicker-BXbuLCDX.js +1204 -0
- package/dist/TimePicker-BXbuLCDX.js.map +1 -0
- package/dist/TimePicker-DDhkqier.cjs +2 -0
- package/dist/TimePicker-DDhkqier.cjs.map +1 -0
- package/dist/ToastProvider-DRz62qKU.cjs +2 -0
- package/dist/ToastProvider-DRz62qKU.cjs.map +1 -0
- package/dist/ToastProvider-Dlgk48v1.js +234 -0
- package/dist/ToastProvider-Dlgk48v1.js.map +1 -0
- package/dist/Toggle-BACN6Wrk.cjs +2 -0
- package/dist/Toggle-BACN6Wrk.cjs.map +1 -0
- package/dist/Toggle-D9M7aDWh.js +140 -0
- package/dist/Toggle-D9M7aDWh.js.map +1 -0
- package/dist/ZoomInIcon-CtoKX0Ri.cjs +2 -0
- package/dist/ZoomInIcon-CtoKX0Ri.cjs.map +1 -0
- package/dist/ZoomInIcon-UNvzc9zU.js +113 -0
- package/dist/ZoomInIcon-UNvzc9zU.js.map +1 -0
- package/dist/appearanceProps-65LbXIeI.cjs +2 -0
- package/dist/appearanceProps-65LbXIeI.cjs.map +1 -0
- package/dist/appearanceProps-8tN47e1u.js +8 -0
- package/dist/appearanceProps-8tN47e1u.js.map +1 -0
- package/dist/cards.cjs +2 -0
- package/dist/cards.d.ts +3 -0
- package/dist/cards.js +8 -0
- package/dist/cn-BIeeqGZv.js +8 -0
- package/dist/cn-BIeeqGZv.js.map +1 -0
- package/dist/cn-BOmEz3Rt.cjs +2 -0
- package/dist/cn-BOmEz3Rt.cjs.map +1 -0
- package/dist/components/cards/Card/Card.d.ts +5 -0
- package/dist/components/cards/Card/Card.types.d.ts +16 -0
- package/dist/components/cards/Card/index.d.ts +2 -0
- package/dist/components/cards/CardBusiness/CardBusiness.d.ts +2 -0
- package/dist/components/cards/CardBusiness/CardBusiness.types.d.ts +33 -0
- package/dist/components/cards/CardBusiness/index.d.ts +2 -0
- package/dist/components/cards/CardGrid/CardGrid.d.ts +2 -0
- package/dist/components/cards/CardGrid/CardGrid.types.d.ts +27 -0
- package/dist/components/cards/CardGrid/index.d.ts +2 -0
- package/dist/components/cards/CardPayment/CardPayment.d.ts +2 -0
- package/dist/components/cards/CardPayment/CardPayment.types.d.ts +13 -0
- package/dist/components/cards/CardPayment/index.d.ts +2 -0
- package/dist/components/cards/CardService/CardService.d.ts +2 -0
- package/dist/components/cards/CardService/CardService.types.d.ts +37 -0
- package/dist/components/cards/CardService/index.d.ts +2 -0
- package/dist/components/cards/index.d.ts +10 -0
- package/dist/components/controls/Button/Button.d.ts +2 -0
- package/dist/components/controls/Button/Button.types.d.ts +22 -0
- package/dist/components/controls/Button/index.d.ts +2 -0
- package/dist/components/controls/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/controls/Checkbox/Checkbox.types.d.ts +24 -0
- package/dist/components/controls/Checkbox/index.d.ts +2 -0
- package/dist/components/controls/Radio/Radio.d.ts +3 -0
- package/dist/components/controls/Radio/Radio.types.d.ts +47 -0
- package/dist/components/controls/Radio/RadioContext.d.ts +3 -0
- package/dist/components/controls/Radio/RadioGroup.d.ts +2 -0
- package/dist/components/controls/Radio/index.d.ts +3 -0
- package/dist/components/controls/Slider/Slider.d.ts +2 -0
- package/dist/components/controls/Slider/Slider.types.d.ts +17 -0
- package/dist/components/controls/Slider/index.d.ts +2 -0
- package/dist/components/controls/Toggle/Toggle.d.ts +2 -0
- package/dist/components/controls/Toggle/Toggle.types.d.ts +20 -0
- package/dist/components/controls/Toggle/index.d.ts +2 -0
- package/dist/components/controls/index.d.ts +10 -0
- package/dist/components/data/CalendarBoard/CalendarBoard.d.ts +7 -0
- package/dist/components/data/CalendarBoard/CalendarBoard.types.d.ts +117 -0
- package/dist/components/data/CalendarBoard/index.d.ts +2 -0
- package/dist/components/data/DataTable/DataTable.d.ts +2 -0
- package/dist/components/data/DataTable/DataTable.types.d.ts +34 -0
- package/dist/components/data/DataTable/index.d.ts +2 -0
- package/dist/components/data/TaskList/TaskList.d.ts +2 -0
- package/dist/components/data/TaskList/TaskList.types.d.ts +14 -0
- package/dist/components/data/TaskList/index.d.ts +2 -0
- package/dist/components/data/TreeView/TreeView.d.ts +2 -0
- package/dist/components/data/TreeView/TreeView.types.d.ts +63 -0
- package/dist/components/data/TreeView/index.d.ts +2 -0
- package/dist/components/data/index.d.ts +8 -0
- package/dist/components/display/Accordion/Accordion.d.ts +3 -0
- package/dist/components/display/Accordion/Accordion.types.d.ts +16 -0
- package/dist/components/display/Accordion/index.d.ts +2 -0
- package/dist/components/display/Collapsible/Collapsible.d.ts +2 -0
- package/dist/components/display/Collapsible/Collapsible.types.d.ts +10 -0
- package/dist/components/display/Collapsible/index.d.ts +2 -0
- package/dist/components/display/ColorPicker/ColorPicker.d.ts +2 -0
- package/dist/components/display/ColorPicker/ColorPicker.types.d.ts +11 -0
- package/dist/components/display/ColorPicker/index.d.ts +2 -0
- package/dist/components/display/CountUp/CountUp.d.ts +2 -0
- package/dist/components/display/CountUp/CountUp.types.d.ts +10 -0
- package/dist/components/display/CountUp/index.d.ts +2 -0
- package/dist/components/display/ProgressBar/ProgressBar.d.ts +2 -0
- package/dist/components/display/ProgressBar/ProgressBar.types.d.ts +12 -0
- package/dist/components/display/ProgressBar/index.d.ts +2 -0
- package/dist/components/display/QrCode/QrCode.d.ts +2 -0
- package/dist/components/display/QrCode/QrCode.types.d.ts +8 -0
- package/dist/components/display/QrCode/index.d.ts +2 -0
- package/dist/components/display/Rating/Rating.d.ts +2 -0
- package/dist/components/display/Rating/Rating.types.d.ts +10 -0
- package/dist/components/display/Rating/index.d.ts +2 -0
- package/dist/components/display/TimeAgo/TimeAgo.d.ts +2 -0
- package/dist/components/display/TimeAgo/TimeAgo.types.d.ts +11 -0
- package/dist/components/display/TimeAgo/index.d.ts +2 -0
- package/dist/components/display/index.d.ts +16 -0
- package/dist/components/dropdowns/Autocomplete/Autocomplete.d.ts +2 -0
- package/dist/components/dropdowns/Autocomplete/Autocomplete.types.d.ts +38 -0
- package/dist/components/dropdowns/Autocomplete/index.d.ts +2 -0
- package/dist/components/dropdowns/DatePicker/DatePicker.d.ts +2 -0
- package/dist/components/dropdowns/DatePicker/DatePicker.types.d.ts +33 -0
- package/dist/components/dropdowns/DatePicker/index.d.ts +2 -0
- package/dist/components/dropdowns/DateRangePicker/DateRangePicker.d.ts +2 -0
- package/dist/components/dropdowns/DateRangePicker/DateRangePicker.types.d.ts +50 -0
- package/dist/components/dropdowns/DateRangePicker/index.d.ts +2 -0
- package/dist/components/dropdowns/Select/Select.d.ts +2 -0
- package/dist/components/dropdowns/Select/Select.types.d.ts +39 -0
- package/dist/components/dropdowns/Select/index.d.ts +2 -0
- package/dist/components/dropdowns/TimePicker/TimePicker.d.ts +2 -0
- package/dist/components/dropdowns/TimePicker/TimePicker.types.d.ts +30 -0
- package/dist/components/dropdowns/TimePicker/index.d.ts +2 -0
- package/dist/components/dropdowns/index.d.ts +10 -0
- package/dist/components/feedback/Alert/Alert.d.ts +2 -0
- package/dist/components/feedback/Alert/Alert.types.d.ts +9 -0
- package/dist/components/feedback/Alert/index.d.ts +2 -0
- package/dist/components/feedback/Badge/Badge.d.ts +2 -0
- package/dist/components/feedback/Badge/Badge.types.d.ts +9 -0
- package/dist/components/feedback/Badge/index.d.ts +2 -0
- package/dist/components/feedback/Banner/Banner.d.ts +2 -0
- package/dist/components/feedback/Banner/Banner.types.d.ts +12 -0
- package/dist/components/feedback/Banner/index.d.ts +2 -0
- package/dist/components/feedback/Loader/Loader.d.ts +2 -0
- package/dist/components/feedback/Loader/Loader.types.d.ts +9 -0
- package/dist/components/feedback/Loader/index.d.ts +2 -0
- package/dist/components/feedback/Spinner/Spinner.d.ts +2 -0
- package/dist/components/feedback/Spinner/Spinner.types.d.ts +7 -0
- package/dist/components/feedback/Spinner/index.d.ts +2 -0
- package/dist/components/feedback/Tag/Tag.d.ts +2 -0
- package/dist/components/feedback/Tag/Tag.types.d.ts +12 -0
- package/dist/components/feedback/Tag/index.d.ts +2 -0
- package/dist/components/feedback/Toast/Toast.types.d.ts +27 -0
- package/dist/components/feedback/Toast/ToastContext.d.ts +3 -0
- package/dist/components/feedback/Toast/ToastItem.d.ts +5 -0
- package/dist/components/feedback/Toast/ToastProvider.d.ts +4 -0
- package/dist/components/feedback/Toast/index.d.ts +3 -0
- package/dist/components/feedback/index.d.ts +14 -0
- package/dist/components/form/Form/Form.d.ts +2 -0
- package/dist/components/form/Form/Form.types.d.ts +42 -0
- package/dist/components/form/Form/FormContext.d.ts +3 -0
- package/dist/components/form/Form/index.d.ts +5 -0
- package/dist/components/form/Form/useFormField.d.ts +13 -0
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/inputs/Input/Input.d.ts +3 -0
- package/dist/components/inputs/Input/Input.types.d.ts +49 -0
- package/dist/components/inputs/Input/index.d.ts +2 -0
- package/dist/components/inputs/InputCreditCard/InputCreditCard.d.ts +3 -0
- package/dist/components/inputs/InputCreditCard/InputCreditCard.types.d.ts +12 -0
- package/dist/components/inputs/InputCreditCard/index.d.ts +2 -0
- package/dist/components/inputs/InputCurrency/InputCurrency.d.ts +3 -0
- package/dist/components/inputs/InputCurrency/InputCurrency.types.d.ts +13 -0
- package/dist/components/inputs/InputCurrency/index.d.ts +2 -0
- package/dist/components/inputs/InputEmail/InputEmail.d.ts +3 -0
- package/dist/components/inputs/InputEmail/InputEmail.types.d.ts +8 -0
- package/dist/components/inputs/InputEmail/index.d.ts +2 -0
- package/dist/components/inputs/InputFile/CropEditor.d.ts +11 -0
- package/dist/components/inputs/InputFile/InputFile.d.ts +3 -0
- package/dist/components/inputs/InputFile/InputFile.types.d.ts +29 -0
- package/dist/components/inputs/InputFile/index.d.ts +2 -0
- package/dist/components/inputs/InputGroup/InputGroup.d.ts +3 -0
- package/dist/components/inputs/InputGroup/InputGroup.types.d.ts +14 -0
- package/dist/components/inputs/InputGroup/index.d.ts +2 -0
- package/dist/components/inputs/InputIBAN/InputIBAN.d.ts +3 -0
- package/dist/components/inputs/InputIBAN/InputIBAN.types.d.ts +10 -0
- package/dist/components/inputs/InputIBAN/index.d.ts +2 -0
- package/dist/components/inputs/InputName/InputName.d.ts +3 -0
- package/dist/components/inputs/InputName/InputName.types.d.ts +10 -0
- package/dist/components/inputs/InputName/index.d.ts +2 -0
- package/dist/components/inputs/InputNumber/InputNumber.d.ts +3 -0
- package/dist/components/inputs/InputNumber/InputNumber.types.d.ts +10 -0
- package/dist/components/inputs/InputNumber/index.d.ts +2 -0
- package/dist/components/inputs/InputOTP/InputOTP.d.ts +3 -0
- package/dist/components/inputs/InputOTP/InputOTP.types.d.ts +15 -0
- package/dist/components/inputs/InputOTP/index.d.ts +2 -0
- package/dist/components/inputs/InputPassword/InputPassword.d.ts +3 -0
- package/dist/components/inputs/InputPassword/InputPassword.types.d.ts +7 -0
- package/dist/components/inputs/InputPassword/index.d.ts +2 -0
- package/dist/components/inputs/InputPhone/InputPhone.d.ts +3 -0
- package/dist/components/inputs/InputPhone/InputPhone.types.d.ts +10 -0
- package/dist/components/inputs/InputPhone/index.d.ts +2 -0
- package/dist/components/inputs/InputPostCode/InputPostCode.d.ts +3 -0
- package/dist/components/inputs/InputPostCode/InputPostCode.types.d.ts +12 -0
- package/dist/components/inputs/InputPostCode/index.d.ts +2 -0
- package/dist/components/inputs/InputSearch/InputSearch.d.ts +3 -0
- package/dist/components/inputs/InputSearch/InputSearch.types.d.ts +5 -0
- package/dist/components/inputs/InputSearch/index.d.ts +2 -0
- package/dist/components/inputs/InputSlider/InputSlider.d.ts +3 -0
- package/dist/components/inputs/InputSlider/InputSlider.types.d.ts +12 -0
- package/dist/components/inputs/InputSlider/index.d.ts +2 -0
- package/dist/components/inputs/InputTaxId/InputTaxId.d.ts +3 -0
- package/dist/components/inputs/InputTaxId/InputTaxId.types.d.ts +11 -0
- package/dist/components/inputs/InputTaxId/index.d.ts +2 -0
- package/dist/components/inputs/Textarea/Textarea.d.ts +3 -0
- package/dist/components/inputs/Textarea/Textarea.types.d.ts +41 -0
- package/dist/components/inputs/Textarea/index.d.ts +2 -0
- package/dist/components/inputs/index.d.ts +34 -0
- package/dist/components/layout/AppShell/AppShell.d.ts +4 -0
- package/dist/components/layout/AppShell/AppShell.types.d.ts +7 -0
- package/dist/components/layout/AppShell/index.d.ts +2 -0
- package/dist/components/layout/Container/Container.d.ts +2 -0
- package/dist/components/layout/Container/Container.types.d.ts +10 -0
- package/dist/components/layout/Container/index.d.ts +2 -0
- package/dist/components/layout/Divider/Divider.d.ts +2 -0
- package/dist/components/layout/Divider/Divider.types.d.ts +9 -0
- package/dist/components/layout/Divider/index.d.ts +2 -0
- package/dist/components/layout/Grid/Grid.d.ts +2 -0
- package/dist/components/layout/Grid/Grid.types.d.ts +10 -0
- package/dist/components/layout/Grid/index.d.ts +2 -0
- package/dist/components/layout/Inline/Inline.d.ts +2 -0
- package/dist/components/layout/Inline/Inline.types.d.ts +15 -0
- package/dist/components/layout/Inline/index.d.ts +2 -0
- package/dist/components/layout/MBreadcrumb/MBreadcrumb.d.ts +2 -0
- package/dist/components/layout/MBreadcrumb/MBreadcrumb.types.d.ts +11 -0
- package/dist/components/layout/MBreadcrumb/index.d.ts +2 -0
- package/dist/components/layout/MFooter/MFooter.d.ts +2 -0
- package/dist/components/layout/MFooter/MFooter.types.d.ts +11 -0
- package/dist/components/layout/MFooter/index.d.ts +2 -0
- package/dist/components/layout/MGrid/MGrid.d.ts +3 -0
- package/dist/components/layout/MGrid/MGrid.types.d.ts +21 -0
- package/dist/components/layout/MGrid/index.d.ts +2 -0
- package/dist/components/layout/MHeader/MHeader.d.ts +2 -0
- package/dist/components/layout/MHeader/MHeader.types.d.ts +13 -0
- package/dist/components/layout/MHeader/index.d.ts +2 -0
- package/dist/components/layout/MNavbar/MNavbar.d.ts +2 -0
- package/dist/components/layout/MNavbar/MNavbar.types.d.ts +18 -0
- package/dist/components/layout/MNavbar/index.d.ts +2 -0
- package/dist/components/layout/MNavs/MNavs.d.ts +2 -0
- package/dist/components/layout/MNavs/MNavs.types.d.ts +19 -0
- package/dist/components/layout/MNavs/index.d.ts +2 -0
- package/dist/components/layout/MPagination/MPagination.d.ts +2 -0
- package/dist/components/layout/MPagination/MPagination.types.d.ts +10 -0
- package/dist/components/layout/MPagination/index.d.ts +2 -0
- package/dist/components/layout/MSidebar/MSidebar.d.ts +9 -0
- package/dist/components/layout/MSidebar/MSidebar.types.d.ts +60 -0
- package/dist/components/layout/MSidebar/index.d.ts +2 -0
- package/dist/components/layout/MSubNav/MSubNav.d.ts +2 -0
- package/dist/components/layout/MSubNav/MSubNav.types.d.ts +14 -0
- package/dist/components/layout/MSubNav/index.d.ts +2 -0
- package/dist/components/layout/MTabs/MTabs.d.ts +2 -0
- package/dist/components/layout/MTabs/MTabs.types.d.ts +28 -0
- package/dist/components/layout/MTabs/index.d.ts +2 -0
- package/dist/components/layout/Section/Section.d.ts +2 -0
- package/dist/components/layout/Section/Section.types.d.ts +13 -0
- package/dist/components/layout/Section/index.d.ts +2 -0
- package/dist/components/layout/Stack/Stack.d.ts +2 -0
- package/dist/components/layout/Stack/Stack.types.d.ts +11 -0
- package/dist/components/layout/Stack/index.d.ts +2 -0
- package/dist/components/layout/Surface/Surface.d.ts +2 -0
- package/dist/components/layout/Surface/Surface.types.d.ts +13 -0
- package/dist/components/layout/Surface/index.d.ts +2 -0
- package/dist/components/layout/index.d.ts +36 -0
- package/dist/components/media/Avatar/Avatar.d.ts +2 -0
- package/dist/components/media/Avatar/Avatar.types.d.ts +19 -0
- package/dist/components/media/Avatar/index.d.ts +2 -0
- package/dist/components/media/Carousel/Carousel.d.ts +2 -0
- package/dist/components/media/Carousel/Carousel.types.d.ts +12 -0
- package/dist/components/media/Carousel/index.d.ts +2 -0
- package/dist/components/media/Gallery/Gallery.d.ts +2 -0
- package/dist/components/media/Gallery/Gallery.types.d.ts +14 -0
- package/dist/components/media/Gallery/index.d.ts +2 -0
- package/dist/components/media/Image/Image.d.ts +2 -0
- package/dist/components/media/Image/Image.types.d.ts +13 -0
- package/dist/components/media/Image/index.d.ts +2 -0
- package/dist/components/media/Masonry/Masonry.d.ts +2 -0
- package/dist/components/media/Masonry/Masonry.types.d.ts +7 -0
- package/dist/components/media/Masonry/index.d.ts +2 -0
- package/dist/components/media/MasonryItem/MasonryItem.d.ts +3 -0
- package/dist/components/media/MasonryItem/MasonryItem.types.d.ts +14 -0
- package/dist/components/media/MasonryItem/index.d.ts +2 -0
- package/dist/components/media/ShowcaseCarousel/ShowcaseCarousel.d.ts +2 -0
- package/dist/components/media/ShowcaseCarousel/ShowcaseCarousel.types.d.ts +19 -0
- package/dist/components/media/ShowcaseCarousel/index.d.ts +2 -0
- package/dist/components/media/ShowcaseCarouselItem/ShowcaseCarouselItem.d.ts +3 -0
- package/dist/components/media/ShowcaseCarouselItem/ShowcaseCarouselItem.types.d.ts +16 -0
- package/dist/components/media/ShowcaseCarouselItem/index.d.ts +2 -0
- package/dist/components/media/index.d.ts +16 -0
- package/dist/components/overlays/Drawer/Drawer.d.ts +5 -0
- package/dist/components/overlays/Drawer/Drawer.types.d.ts +17 -0
- package/dist/components/overlays/Drawer/index.d.ts +2 -0
- package/dist/components/overlays/DropdownMenu/DropdownMenu.d.ts +9 -0
- package/dist/components/overlays/DropdownMenu/DropdownMenu.types.d.ts +32 -0
- package/dist/components/overlays/DropdownMenu/index.d.ts +2 -0
- package/dist/components/overlays/Modal/Modal.d.ts +2 -0
- package/dist/components/overlays/Modal/Modal.types.d.ts +12 -0
- package/dist/components/overlays/Modal/index.d.ts +2 -0
- package/dist/components/overlays/Popconfirm/Popconfirm.d.ts +2 -0
- package/dist/components/overlays/Popconfirm/Popconfirm.types.d.ts +18 -0
- package/dist/components/overlays/Popconfirm/index.d.ts +2 -0
- package/dist/components/overlays/Tooltip/Tooltip.d.ts +2 -0
- package/dist/components/overlays/Tooltip/Tooltip.types.d.ts +9 -0
- package/dist/components/overlays/Tooltip/index.d.ts +2 -0
- package/dist/components/overlays/index.d.ts +10 -0
- package/dist/components/primitives/Popover/Popover.d.ts +2 -0
- package/dist/components/primitives/Popover/Popover.types.d.ts +14 -0
- package/dist/components/primitives/Popover/index.d.ts +2 -0
- package/dist/components/primitives/Portal/Portal.d.ts +2 -0
- package/dist/components/primitives/Portal/Portal.types.d.ts +5 -0
- package/dist/components/primitives/Portal/index.d.ts +2 -0
- package/dist/components/primitives/index.d.ts +4 -0
- package/dist/components/typography/Code/Code.d.ts +2 -0
- package/dist/components/typography/Code/Code.types.d.ts +7 -0
- package/dist/components/typography/Code/index.d.ts +2 -0
- package/dist/components/typography/Heading/Heading.d.ts +281 -0
- package/dist/components/typography/Heading/Heading.types.d.ts +9 -0
- package/dist/components/typography/Heading/index.d.ts +2 -0
- package/dist/components/typography/Kbd/Kbd.d.ts +2 -0
- package/dist/components/typography/Kbd/Kbd.types.d.ts +6 -0
- package/dist/components/typography/Kbd/index.d.ts +2 -0
- package/dist/components/typography/Link/Link.d.ts +2 -0
- package/dist/components/typography/Link/Link.types.d.ts +15 -0
- package/dist/components/typography/Link/index.d.ts +2 -0
- package/dist/components/typography/List/List.d.ts +4 -0
- package/dist/components/typography/List/List.types.d.ts +8 -0
- package/dist/components/typography/List/index.d.ts +2 -0
- package/dist/components/typography/SubText/SubText.d.ts +2 -0
- package/dist/components/typography/SubText/SubText.types.d.ts +9 -0
- package/dist/components/typography/SubText/index.d.ts +2 -0
- package/dist/components/typography/Text/Text.d.ts +2 -0
- package/dist/components/typography/Text/Text.types.d.ts +16 -0
- package/dist/components/typography/Text/index.d.ts +2 -0
- package/dist/components/typography/index.d.ts +14 -0
- package/dist/controls.cjs +2 -0
- package/dist/controls.d.ts +3 -0
- package/dist/controls.js +6 -0
- package/dist/creditCards-CUM63Oia.cjs +2 -0
- package/dist/creditCards-CUM63Oia.cjs.map +1 -0
- package/dist/creditCards-pLOxJ6gs.js +129 -0
- package/dist/creditCards-pLOxJ6gs.js.map +1 -0
- package/dist/data.cjs +2 -0
- package/dist/data.d.ts +3 -0
- package/dist/data.js +16 -0
- package/dist/dateUtils-D3rghkxq.js +67 -0
- package/dist/dateUtils-D3rghkxq.js.map +1 -0
- package/dist/dateUtils-a8oMntCI.cjs +2 -0
- package/dist/dateUtils-a8oMntCI.cjs.map +1 -0
- package/dist/display.cjs +2 -0
- package/dist/display.d.ts +3 -0
- package/dist/display.js +6 -0
- package/dist/dropdowns.cjs +2 -0
- package/dist/dropdowns.d.ts +3 -0
- package/dist/dropdowns.js +4 -0
- package/dist/feedback.cjs +2 -0
- package/dist/feedback.d.ts +3 -0
- package/dist/feedback.js +6 -0
- package/dist/form.cjs +2 -0
- package/dist/form.d.ts +3 -0
- package/dist/form.js +3 -0
- package/dist/formatters-C3tjM3rj.cjs +2 -0
- package/dist/formatters-C3tjM3rj.cjs.map +1 -0
- package/dist/formatters-CtZdwLSU.js +89 -0
- package/dist/formatters-CtZdwLSU.js.map +1 -0
- package/dist/i18n/I18nProvider.d.ts +18 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n.cjs +2 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/i18n.entry.d.ts +1 -0
- package/dist/i18n.js +3 -0
- package/dist/icons/Icon.d.ts +2 -0
- package/dist/icons/Icon.types.d.ts +8 -0
- package/dist/icons/glyphs/AmericanExpressIcon.d.ts +3 -0
- package/dist/icons/glyphs/ArrowDownIcon.d.ts +2 -0
- package/dist/icons/glyphs/ArrowLeftIcon.d.ts +2 -0
- package/dist/icons/glyphs/ArrowRightIcon.d.ts +2 -0
- package/dist/icons/glyphs/ArrowUpDownIcon.d.ts +2 -0
- package/dist/icons/glyphs/ArrowUpIcon.d.ts +2 -0
- package/dist/icons/glyphs/BankIcon.d.ts +2 -0
- package/dist/icons/glyphs/BellIcon.d.ts +2 -0
- package/dist/icons/glyphs/BoltIcon.d.ts +2 -0
- package/dist/icons/glyphs/BoxIcon.d.ts +2 -0
- package/dist/icons/glyphs/BrandIcons.d.ts +21 -0
- package/dist/icons/glyphs/BrandMoreIcons.d.ts +27 -0
- package/dist/icons/glyphs/BugIcon.d.ts +2 -0
- package/dist/icons/glyphs/BuildingIcon.d.ts +2 -0
- package/dist/icons/glyphs/CalendarIcon.d.ts +2 -0
- package/dist/icons/glyphs/CameraIcon.d.ts +2 -0
- package/dist/icons/glyphs/CartIcon.d.ts +2 -0
- package/dist/icons/glyphs/ChartIcon.d.ts +2 -0
- package/dist/icons/glyphs/ChatIcon.d.ts +2 -0
- package/dist/icons/glyphs/ChatsIcon.d.ts +2 -0
- package/dist/icons/glyphs/CheckCircleIcon.d.ts +2 -0
- package/dist/icons/glyphs/CheckIcon.d.ts +2 -0
- package/dist/icons/glyphs/ChevronDownIcon.d.ts +2 -0
- package/dist/icons/glyphs/ChevronLeftIcon.d.ts +2 -0
- package/dist/icons/glyphs/ChevronRightIcon.d.ts +2 -0
- package/dist/icons/glyphs/ChevronUpIcon.d.ts +2 -0
- package/dist/icons/glyphs/ClickIcon.d.ts +2 -0
- package/dist/icons/glyphs/ClipboardIcon.d.ts +2 -0
- package/dist/icons/glyphs/ClockIcon.d.ts +2 -0
- package/dist/icons/glyphs/CloseIcon.d.ts +2 -0
- package/dist/icons/glyphs/CommentIcon.d.ts +2 -0
- package/dist/icons/glyphs/CopyIcon.d.ts +2 -0
- package/dist/icons/glyphs/CopyrightIcon.d.ts +2 -0
- package/dist/icons/glyphs/CreditCardIcon.d.ts +2 -0
- package/dist/icons/glyphs/CubeIcon.d.ts +2 -0
- package/dist/icons/glyphs/DashboardIcon.d.ts +2 -0
- package/dist/icons/glyphs/DatabaseIcon.d.ts +2 -0
- package/dist/icons/glyphs/DeviceMonitorIcon.d.ts +2 -0
- package/dist/icons/glyphs/DevicePhoneIcon.d.ts +2 -0
- package/dist/icons/glyphs/DeviceTabletIcon.d.ts +2 -0
- package/dist/icons/glyphs/DocCopyIcon.d.ts +2 -0
- package/dist/icons/glyphs/DocIcon.d.ts +2 -0
- package/dist/icons/glyphs/DocPlusIcon.d.ts +2 -0
- package/dist/icons/glyphs/DollarIcon.d.ts +2 -0
- package/dist/icons/glyphs/DownloadIcon.d.ts +2 -0
- package/dist/icons/glyphs/EditIcon.d.ts +2 -0
- package/dist/icons/glyphs/EllipsisVerticalIcon.d.ts +2 -0
- package/dist/icons/glyphs/ErrorIcon.d.ts +2 -0
- package/dist/icons/glyphs/EuroIcon.d.ts +2 -0
- package/dist/icons/glyphs/ExternalLinkIcon.d.ts +2 -0
- package/dist/icons/glyphs/EyeIcon.d.ts +2 -0
- package/dist/icons/glyphs/EyeOffIcon.d.ts +2 -0
- package/dist/icons/glyphs/FileArchiveIcon.d.ts +2 -0
- package/dist/icons/glyphs/FileCodeIcon.d.ts +2 -0
- package/dist/icons/glyphs/FileExtIcons.d.ts +27 -0
- package/dist/icons/glyphs/FileIcon.d.ts +2 -0
- package/dist/icons/glyphs/FileImageIcon.d.ts +2 -0
- package/dist/icons/glyphs/FilePdfIcon.d.ts +2 -0
- package/dist/icons/glyphs/FileTextIcon.d.ts +2 -0
- package/dist/icons/glyphs/FileVideoIcon.d.ts +2 -0
- package/dist/icons/glyphs/FilterIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagArIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagBrIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagCaIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagCnIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagCzIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagDeIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagEsIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagFrIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagGbIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagInIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagItIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagJpIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagMxIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagPlIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagRuIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagSkIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagUaIcon.d.ts +2 -0
- package/dist/icons/glyphs/FlagUsIcon.d.ts +2 -0
- package/dist/icons/glyphs/FolderIcon.d.ts +2 -0
- package/dist/icons/glyphs/FolderOpenIcon.d.ts +2 -0
- package/dist/icons/glyphs/FolderPlusIcon.d.ts +2 -0
- package/dist/icons/glyphs/FormIcon.d.ts +2 -0
- package/dist/icons/glyphs/GalleryIcon.d.ts +2 -0
- package/dist/icons/glyphs/GlobeIcon.d.ts +2 -0
- package/dist/icons/glyphs/GroupIcon.d.ts +2 -0
- package/dist/icons/glyphs/HeartFillIcon.d.ts +2 -0
- package/dist/icons/glyphs/HeartIcon.d.ts +2 -0
- package/dist/icons/glyphs/HelpIcon.d.ts +2 -0
- package/dist/icons/glyphs/HomeIcon.d.ts +2 -0
- package/dist/icons/glyphs/IdCardIcon.d.ts +2 -0
- package/dist/icons/glyphs/ImageIcon.d.ts +2 -0
- package/dist/icons/glyphs/InfoIcon.d.ts +2 -0
- package/dist/icons/glyphs/KanbanIcon.d.ts +2 -0
- package/dist/icons/glyphs/LayoutIcon.d.ts +2 -0
- package/dist/icons/glyphs/LightbulbIcon.d.ts +2 -0
- package/dist/icons/glyphs/LinkIcon.d.ts +2 -0
- package/dist/icons/glyphs/LockIcon.d.ts +2 -0
- package/dist/icons/glyphs/LockOpenIcon.d.ts +2 -0
- package/dist/icons/glyphs/MagicIcon.d.ts +2 -0
- package/dist/icons/glyphs/MailIcon.d.ts +2 -0
- package/dist/icons/glyphs/MailOpenIcon.d.ts +2 -0
- package/dist/icons/glyphs/MenuIcon.d.ts +2 -0
- package/dist/icons/glyphs/MinusIcon.d.ts +2 -0
- package/dist/icons/glyphs/MoonIcon.d.ts +2 -0
- package/dist/icons/glyphs/MoreIcon.d.ts +3 -0
- package/dist/icons/glyphs/NeutralIcon.d.ts +2 -0
- package/dist/icons/glyphs/PaletteIcon.d.ts +2 -0
- package/dist/icons/glyphs/PhoneIcon.d.ts +2 -0
- package/dist/icons/glyphs/PinIcon.d.ts +2 -0
- package/dist/icons/glyphs/PlusIcon.d.ts +2 -0
- package/dist/icons/glyphs/ProtectIcon.d.ts +2 -0
- package/dist/icons/glyphs/PuzzleIcon.d.ts +2 -0
- package/dist/icons/glyphs/RefreshIcon.d.ts +2 -0
- package/dist/icons/glyphs/SearchIcon.d.ts +2 -0
- package/dist/icons/glyphs/SendIcon.d.ts +2 -0
- package/dist/icons/glyphs/SettingsIcon.d.ts +2 -0
- package/dist/icons/glyphs/SidebarIcon.d.ts +2 -0
- package/dist/icons/glyphs/Signal1Icon.d.ts +2 -0
- package/dist/icons/glyphs/Signal2Icon.d.ts +2 -0
- package/dist/icons/glyphs/Signal3Icon.d.ts +2 -0
- package/dist/icons/glyphs/Signal4Icon.d.ts +2 -0
- package/dist/icons/glyphs/SlidersIcon.d.ts +2 -0
- package/dist/icons/glyphs/SortIcon.d.ts +2 -0
- package/dist/icons/glyphs/StarFillIcon.d.ts +2 -0
- package/dist/icons/glyphs/StarIcon.d.ts +2 -0
- package/dist/icons/glyphs/SuccessIcon.d.ts +2 -0
- package/dist/icons/glyphs/SunIcon.d.ts +2 -0
- package/dist/icons/glyphs/TagIcon.d.ts +2 -0
- package/dist/icons/glyphs/TeamIcon.d.ts +2 -0
- package/dist/icons/glyphs/TerminalIcon.d.ts +2 -0
- package/dist/icons/glyphs/TranslateIcon.d.ts +2 -0
- package/dist/icons/glyphs/TrashIcon.d.ts +2 -0
- package/dist/icons/glyphs/UploadIcon.d.ts +2 -0
- package/dist/icons/glyphs/UserIcon.d.ts +2 -0
- package/dist/icons/glyphs/UsersIcon.d.ts +2 -0
- package/dist/icons/glyphs/WarningIcon.d.ts +2 -0
- package/dist/icons/glyphs/WindowIcon.d.ts +2 -0
- package/dist/icons/glyphs/ZoomInIcon.d.ts +2 -0
- package/dist/icons/glyphs/ZoomOutIcon.d.ts +2 -0
- package/dist/icons/glyphs/fileMark.d.ts +9 -0
- package/dist/icons/index.d.ts +142 -0
- package/dist/icons.cjs +2 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.entry.d.ts +3 -0
- package/dist/icons.js +20 -0
- package/dist/index.cjs +2 -4
- package/dist/index.d.ts +183 -3062
- package/dist/index.js +63 -8896
- package/dist/inputs.cjs +2 -0
- package/dist/inputs.d.ts +3 -0
- package/dist/inputs.js +6 -0
- package/dist/layout.cjs +2 -0
- package/dist/layout.d.ts +3 -0
- package/dist/layout.js +9 -0
- package/dist/layoutProps-CY4cnDrW.js +29 -0
- package/dist/layoutProps-CY4cnDrW.js.map +1 -0
- package/dist/layoutProps-Dw_ZW6ot.cjs +2 -0
- package/dist/layoutProps-Dw_ZW6ot.cjs.map +1 -0
- package/dist/locale-C_PRdyIv.cjs +2 -0
- package/dist/locale-C_PRdyIv.cjs.map +1 -0
- package/dist/locale-DofwII5P.js +58 -0
- package/dist/locale-DofwII5P.js.map +1 -0
- package/dist/media.cjs +2 -0
- package/dist/media.d.ts +3 -0
- package/dist/media.js +7 -0
- package/dist/overlays.cjs +2 -0
- package/dist/overlays.d.ts +3 -0
- package/dist/overlays.js +8 -0
- package/dist/primitives.cjs +2 -0
- package/dist/primitives.d.ts +3 -0
- package/dist/primitives.js +4 -0
- package/dist/style-runtime.cjs +2 -0
- package/dist/style-runtime.js +2 -0
- package/dist/styles.css +1 -1
- package/dist/theme/ThemeProvider.d.ts +20 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/types.d.ts +50 -0
- package/dist/theme.cjs +2 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.entry.d.ts +1 -0
- package/dist/theme.js +3 -0
- package/dist/typography.cjs +2 -0
- package/dist/typography.d.ts +3 -0
- package/dist/typography.js +6 -0
- package/dist/useClickOutside-CS-Mc6ne.cjs +2 -0
- package/dist/useClickOutside-CS-Mc6ne.cjs.map +1 -0
- package/dist/useClickOutside-Dcye4Ut0.js +16 -0
- package/dist/useClickOutside-Dcye4Ut0.js.map +1 -0
- package/dist/useDebounce-C3jbJOKC.cjs +2 -0
- package/dist/useDebounce-C3jbJOKC.cjs.map +1 -0
- package/dist/useDebounce-D-v3IRXp.js +21 -0
- package/dist/useDebounce-D-v3IRXp.js.map +1 -0
- package/dist/useFormField-Bz4d7m8u.cjs +2 -0
- package/dist/useFormField-Bz4d7m8u.cjs.map +1 -0
- package/dist/useFormField-jOnRqGD2.js +166 -0
- package/dist/useFormField-jOnRqGD2.js.map +1 -0
- package/dist/useGhostText-BNcH5o9H.js +51 -0
- package/dist/useGhostText-BNcH5o9H.js.map +1 -0
- package/dist/useGhostText-CoYhBGCg.cjs +2 -0
- package/dist/useGhostText-CoYhBGCg.cjs.map +1 -0
- package/dist/useInteractionEffect-B5_UpgTt.js +40 -0
- package/dist/useInteractionEffect-B5_UpgTt.js.map +1 -0
- package/dist/useInteractionEffect-BaJeiUns.cjs +2 -0
- package/dist/useInteractionEffect-BaJeiUns.cjs.map +1 -0
- package/dist/useKeyboardNav-CmUKtJag.js +43 -0
- package/dist/useKeyboardNav-CmUKtJag.js.map +1 -0
- package/dist/useKeyboardNav-DJtFz7Fx.cjs +2 -0
- package/dist/useKeyboardNav-DJtFz7Fx.cjs.map +1 -0
- package/dist/useReveal-Fg-i8hhZ.js +23 -0
- package/dist/useReveal-Fg-i8hhZ.js.map +1 -0
- package/dist/useReveal-p1cSTlUT.cjs +2 -0
- package/dist/useReveal-p1cSTlUT.cjs.map +1 -0
- package/dist/utils/appearanceProps.d.ts +6 -0
- package/dist/utils/cn.d.ts +1 -0
- package/dist/utils/creditCards.d.ts +16 -0
- package/dist/utils/dateUtils.d.ts +17 -0
- package/dist/utils/formatters.d.ts +21 -0
- package/dist/utils/layoutProps.d.ts +25 -0
- package/dist/utils/locale.d.ts +13 -0
- package/dist/utils/postalCodes.d.ts +21 -0
- package/dist/utils/relativeTime.d.ts +16 -0
- package/dist/utils/useClickOutside.d.ts +2 -0
- package/dist/utils/useControllableString.d.ts +7 -0
- package/dist/utils/useDebounce.d.ts +2 -0
- package/dist/utils/useGhostText.d.ts +28 -0
- package/dist/utils/useInteractionEffect.d.ts +15 -0
- package/dist/utils/useKeyboardNav.d.ts +14 -0
- package/dist/utils/useReveal.d.ts +2 -0
- package/dist/utils/validators.d.ts +19 -0
- package/dist/utils.cjs +2 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.entry.d.ts +20 -0
- package/dist/utils.js +13 -0
- package/dist/validators-B7cSTrU_.cjs +2 -0
- package/dist/validators-B7cSTrU_.cjs.map +1 -0
- package/dist/validators-Y1nYXhNR.js +378 -0
- package/dist/validators-Y1nYXhNR.js.map +1 -0
- package/package.json +226 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKeyboardNav-CmUKtJag.js","names":[],"sources":["../src/utils/useKeyboardNav.ts"],"sourcesContent":["import {useState, useCallback, type KeyboardEvent} from 'react'\n\nexport interface UseKeyboardNavOptions {\n itemCount: number\n onSelect: (index: number) => void\n onClose: () => void\n isOpen: boolean\n loop?: boolean\n}\n\n// Provide arrow-key navigation and selection state for list-like widgets.\nexport function useKeyboardNav({itemCount, onSelect, onClose, isOpen, loop = true}: UseKeyboardNavOptions) {\n const [activeIndex, setActiveIndex] = useState(-1)\n\n // Reset highlight state when the owning widget closes or clears results.\n const resetIndex = useCallback(() => setActiveIndex(-1), [])\n\n const onKeyDown = useCallback(\n (e: KeyboardEvent) => {\n if (!isOpen || itemCount === 0) return\n\n switch (e.key) {\n case 'ArrowDown': {\n e.preventDefault()\n setActiveIndex((prev) => {\n if (prev >= itemCount - 1) return loop ? 0 : prev\n return prev + 1\n })\n break\n }\n case 'ArrowUp': {\n e.preventDefault()\n setActiveIndex((prev) => {\n if (prev <= 0) return loop ? itemCount - 1 : 0\n return prev - 1\n })\n break\n }\n case 'Enter': {\n e.preventDefault()\n if (activeIndex >= 0 && activeIndex < itemCount) {\n onSelect(activeIndex)\n }\n break\n }\n case 'Escape': {\n e.preventDefault()\n onClose()\n break\n }\n case 'Home': {\n e.preventDefault()\n setActiveIndex(0)\n break\n }\n case 'End': {\n e.preventDefault()\n setActiveIndex(itemCount - 1)\n break\n }\n }\n },\n [isOpen, itemCount, activeIndex, onSelect, onClose, loop]\n )\n\n return {activeIndex, setActiveIndex, resetIndex, onKeyDown}\n}\n"],"mappings":";;AAWA,SAAgB,EAAe,EAAC,cAAW,aAAU,YAAS,WAAQ,UAAO,MAA8B;CACvG,IAAM,CAAC,GAAa,KAAkB,EAAS,GAAG;AAqDlD,QAAO;EAAC;EAAa;EAAgB,YAlDlB,QAAkB,EAAe,GAAG,EAAE,EAAE,CAAC;EAkDX,WAhD/B,GACb,MAAqB;AACd,UAAC,KAAU,MAAc,GAE7B,SAAQ,EAAE,KAAV;IACI,KAAK;AAED,KADA,EAAE,gBAAgB,EAClB,GAAgB,MACR,KAAQ,IAAY,IAAU,IAAO,IAAI,IACtC,IAAO,EAChB;AACF;IAEJ,KAAK;AAED,KADA,EAAE,gBAAgB,EAClB,GAAgB,MACR,KAAQ,IAAU,IAAO,IAAY,IAAI,IACtC,IAAO,EAChB;AACF;IAEJ,KAAK;AAED,KADA,EAAE,gBAAgB,EACd,KAAe,KAAK,IAAc,KAClC,EAAS,EAAY;AAEzB;IAEJ,KAAK;AAED,KADA,EAAE,gBAAgB,EAClB,GAAS;AACT;IAEJ,KAAK;AAED,KADA,EAAE,gBAAgB,EAClB,EAAe,EAAE;AACjB;IAEJ,KAAK;AAED,KADA,EAAE,gBAAgB,EAClB,EAAe,IAAY,EAAE;AAC7B;;KAIZ;GAAC;GAAQ;GAAW;GAAa;GAAU;GAAS;GAAK,CAC5D;EAE0D"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require(`react`);function t({itemCount:t,onSelect:n,onClose:r,isOpen:i,loop:a=!0}){let[o,s]=(0,e.useState)(-1);return{activeIndex:o,setActiveIndex:s,resetIndex:(0,e.useCallback)(()=>s(-1),[]),onKeyDown:(0,e.useCallback)(e=>{if(!(!i||t===0))switch(e.key){case`ArrowDown`:e.preventDefault(),s(e=>e>=t-1?a?0:e:e+1);break;case`ArrowUp`:e.preventDefault(),s(e=>e<=0?a?t-1:0:e-1);break;case`Enter`:e.preventDefault(),o>=0&&o<t&&n(o);break;case`Escape`:e.preventDefault(),r();break;case`Home`:e.preventDefault(),s(0);break;case`End`:e.preventDefault(),s(t-1);break}},[i,t,o,n,r,a])}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
2
|
+
//# sourceMappingURL=useKeyboardNav-DJtFz7Fx.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKeyboardNav-DJtFz7Fx.cjs","names":[],"sources":["../src/utils/useKeyboardNav.ts"],"sourcesContent":["import {useState, useCallback, type KeyboardEvent} from 'react'\n\nexport interface UseKeyboardNavOptions {\n itemCount: number\n onSelect: (index: number) => void\n onClose: () => void\n isOpen: boolean\n loop?: boolean\n}\n\n// Provide arrow-key navigation and selection state for list-like widgets.\nexport function useKeyboardNav({itemCount, onSelect, onClose, isOpen, loop = true}: UseKeyboardNavOptions) {\n const [activeIndex, setActiveIndex] = useState(-1)\n\n // Reset highlight state when the owning widget closes or clears results.\n const resetIndex = useCallback(() => setActiveIndex(-1), [])\n\n const onKeyDown = useCallback(\n (e: KeyboardEvent) => {\n if (!isOpen || itemCount === 0) return\n\n switch (e.key) {\n case 'ArrowDown': {\n e.preventDefault()\n setActiveIndex((prev) => {\n if (prev >= itemCount - 1) return loop ? 0 : prev\n return prev + 1\n })\n break\n }\n case 'ArrowUp': {\n e.preventDefault()\n setActiveIndex((prev) => {\n if (prev <= 0) return loop ? itemCount - 1 : 0\n return prev - 1\n })\n break\n }\n case 'Enter': {\n e.preventDefault()\n if (activeIndex >= 0 && activeIndex < itemCount) {\n onSelect(activeIndex)\n }\n break\n }\n case 'Escape': {\n e.preventDefault()\n onClose()\n break\n }\n case 'Home': {\n e.preventDefault()\n setActiveIndex(0)\n break\n }\n case 'End': {\n e.preventDefault()\n setActiveIndex(itemCount - 1)\n break\n }\n }\n },\n [isOpen, itemCount, activeIndex, onSelect, onClose, loop]\n )\n\n return {activeIndex, setActiveIndex, resetIndex, onKeyDown}\n}\n"],"mappings":"uBAWA,SAAgB,EAAe,CAAC,YAAW,WAAU,UAAS,SAAQ,OAAO,IAA8B,CACvG,GAAM,CAAC,EAAa,IAAA,EAAA,EAAA,UAA2B,GAAG,CAqDlD,MAAO,CAAC,cAAa,iBAAgB,YAAA,EAAA,EAAA,iBAlDA,EAAe,GAAG,CAAE,EAAE,CAAC,CAkDX,WAAA,EAAA,EAAA,aA/C5C,GAAqB,CACd,MAAC,GAAU,IAAc,GAE7B,OAAQ,EAAE,IAAV,CACI,IAAK,YACD,EAAE,gBAAgB,CAClB,EAAgB,GACR,GAAQ,EAAY,EAAU,EAAO,EAAI,EACtC,EAAO,EAChB,CACF,MAEJ,IAAK,UACD,EAAE,gBAAgB,CAClB,EAAgB,GACR,GAAQ,EAAU,EAAO,EAAY,EAAI,EACtC,EAAO,EAChB,CACF,MAEJ,IAAK,QACD,EAAE,gBAAgB,CACd,GAAe,GAAK,EAAc,GAClC,EAAS,EAAY,CAEzB,MAEJ,IAAK,SACD,EAAE,gBAAgB,CAClB,GAAS,CACT,MAEJ,IAAK,OACD,EAAE,gBAAgB,CAClB,EAAe,EAAE,CACjB,MAEJ,IAAK,MACD,EAAE,gBAAgB,CAClB,EAAe,EAAY,EAAE,CAC7B,QAIZ,CAAC,EAAQ,EAAW,EAAa,EAAU,EAAS,EAAK,CAC5D,CAE0D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useEffect as e, useRef as t } from "react";
|
|
2
|
+
//#region src/utils/useReveal.ts
|
|
3
|
+
function n(n) {
|
|
4
|
+
let r = t(null);
|
|
5
|
+
return e(() => {
|
|
6
|
+
if (n === !1 || n === void 0) return;
|
|
7
|
+
let e = r.current;
|
|
8
|
+
if (!e) return;
|
|
9
|
+
let t = typeof n == "number" ? n : 0;
|
|
10
|
+
if (t > 0 && e.style.setProperty("--mineral-reveal-delay", `${t}s`), window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
11
|
+
e.classList.remove("mineral-reveal"), e.classList.add("mineral-revealed");
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
let i = new IntersectionObserver((t) => {
|
|
15
|
+
for (let n of t) n.isIntersecting && (e.classList.add("mineral-revealed"), i.disconnect());
|
|
16
|
+
}, { threshold: .2 });
|
|
17
|
+
return i.observe(e), () => i.disconnect();
|
|
18
|
+
}, [n]), r;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { n as t };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=useReveal-Fg-i8hhZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReveal-Fg-i8hhZ.js","names":[],"sources":["../src/utils/useReveal.ts"],"sourcesContent":["import {useEffect, useRef} from 'react'\n\nexport type RevealProp = boolean | number\n\n// Observe an element and trigger a CSS reveal animation when it enters the viewport.\nexport function useReveal<T extends HTMLElement = HTMLElement>(reveal: RevealProp | undefined) {\n const ref = useRef<T>(null)\n\n useEffect(() => {\n if (reveal === false || reveal === undefined) return\n\n const node = ref.current\n if (!node) return\n\n const delay = typeof reveal === 'number' ? reveal : 0\n if (delay > 0) {\n node.style.setProperty('--mineral-reveal-delay', `${delay}s`)\n }\n\n const prefersReduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches\n if (prefersReduced) {\n node.classList.remove('mineral-reveal')\n node.classList.add('mineral-revealed')\n return\n }\n\n const observer = new IntersectionObserver(\n (entries) => {\n for (const entry of entries) {\n if (entry.isIntersecting) {\n node.classList.add('mineral-revealed')\n observer.disconnect()\n }\n }\n },\n {threshold: 0.2}\n )\n\n observer.observe(node)\n return () => observer.disconnect()\n }, [reveal])\n\n return ref\n}\n"],"mappings":";;AAKA,SAAgB,EAA+C,GAAgC;CAC3F,IAAM,IAAM,EAAU,KAAK;AAoC3B,QAlCA,QAAgB;AACZ,MAAI,MAAW,MAAS,MAAW,KAAA,EAAW;EAE9C,IAAM,IAAO,EAAI;AACjB,MAAI,CAAC,EAAM;EAEX,IAAM,IAAQ,OAAO,KAAW,WAAW,IAAS;AAMpD,MALI,IAAQ,KACR,EAAK,MAAM,YAAY,0BAA0B,GAAG,EAAM,GAAG,EAG1C,OAAO,WAAW,mCAAmC,CAAC,SACzD;AAEhB,GADA,EAAK,UAAU,OAAO,iBAAiB,EACvC,EAAK,UAAU,IAAI,mBAAmB;AACtC;;EAGJ,IAAM,IAAW,IAAI,sBAChB,MAAY;AACT,QAAK,IAAM,KAAS,EAChB,CAAI,EAAM,mBACN,EAAK,UAAU,IAAI,mBAAmB,EACtC,EAAS,YAAY;KAIjC,EAAC,WAAW,IAAI,CACnB;AAGD,SADA,EAAS,QAAQ,EAAK,QACT,EAAS,YAAY;IACnC,CAAC,EAAO,CAAC,EAEL"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require(`react`);function t(t){let n=(0,e.useRef)(null);return(0,e.useEffect)(()=>{if(t===!1||t===void 0)return;let e=n.current;if(!e)return;let r=typeof t==`number`?t:0;if(r>0&&e.style.setProperty(`--mineral-reveal-delay`,`${r}s`),window.matchMedia(`(prefers-reduced-motion: reduce)`).matches){e.classList.remove(`mineral-reveal`),e.classList.add(`mineral-revealed`);return}let i=new IntersectionObserver(t=>{for(let n of t)n.isIntersecting&&(e.classList.add(`mineral-revealed`),i.disconnect())},{threshold:.2});return i.observe(e),()=>i.disconnect()},[t]),n}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
2
|
+
//# sourceMappingURL=useReveal-p1cSTlUT.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReveal-p1cSTlUT.cjs","names":[],"sources":["../src/utils/useReveal.ts"],"sourcesContent":["import {useEffect, useRef} from 'react'\n\nexport type RevealProp = boolean | number\n\n// Observe an element and trigger a CSS reveal animation when it enters the viewport.\nexport function useReveal<T extends HTMLElement = HTMLElement>(reveal: RevealProp | undefined) {\n const ref = useRef<T>(null)\n\n useEffect(() => {\n if (reveal === false || reveal === undefined) return\n\n const node = ref.current\n if (!node) return\n\n const delay = typeof reveal === 'number' ? reveal : 0\n if (delay > 0) {\n node.style.setProperty('--mineral-reveal-delay', `${delay}s`)\n }\n\n const prefersReduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches\n if (prefersReduced) {\n node.classList.remove('mineral-reveal')\n node.classList.add('mineral-revealed')\n return\n }\n\n const observer = new IntersectionObserver(\n (entries) => {\n for (const entry of entries) {\n if (entry.isIntersecting) {\n node.classList.add('mineral-revealed')\n observer.disconnect()\n }\n }\n },\n {threshold: 0.2}\n )\n\n observer.observe(node)\n return () => observer.disconnect()\n }, [reveal])\n\n return ref\n}\n"],"mappings":"uBAKA,SAAgB,EAA+C,EAAgC,CAC3F,IAAM,GAAA,EAAA,EAAA,QAAgB,KAAK,CAoC3B,OAlCA,EAAA,EAAA,eAAgB,CACZ,GAAI,IAAW,IAAS,IAAW,IAAA,GAAW,OAE9C,IAAM,EAAO,EAAI,QACjB,GAAI,CAAC,EAAM,OAEX,IAAM,EAAQ,OAAO,GAAW,SAAW,EAAS,EAMpD,GALI,EAAQ,GACR,EAAK,MAAM,YAAY,yBAA0B,GAAG,EAAM,GAAG,CAG1C,OAAO,WAAW,mCAAmC,CAAC,QACzD,CAChB,EAAK,UAAU,OAAO,iBAAiB,CACvC,EAAK,UAAU,IAAI,mBAAmB,CACtC,OAGJ,IAAM,EAAW,IAAI,qBAChB,GAAY,CACT,IAAK,IAAM,KAAS,EACZ,EAAM,iBACN,EAAK,UAAU,IAAI,mBAAmB,CACtC,EAAS,YAAY,GAIjC,CAAC,UAAW,GAAI,CACnB,CAGD,OADA,EAAS,QAAQ,EAAK,KACT,EAAS,YAAY,EACnC,CAAC,EAAO,CAAC,CAEL"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MineralColor, MineralFontColor } from '../theme';
|
|
2
|
+
export interface AppearanceProps {
|
|
3
|
+
color?: MineralColor;
|
|
4
|
+
fcolor?: MineralFontColor;
|
|
5
|
+
}
|
|
6
|
+
export declare function getAppearanceClassNames({ color, fcolor }: AppearanceProps): Array<string | false | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cn(...classes: (string | undefined | null | false)[]): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ValidationResult } from './validators';
|
|
2
|
+
export type CreditCardBrand = 'visa' | 'mastercard' | 'amex' | 'discover' | 'maestro' | 'unknown';
|
|
3
|
+
export interface CreditCardBrandDetails {
|
|
4
|
+
brand: CreditCardBrand;
|
|
5
|
+
label: string;
|
|
6
|
+
iconLabel: string;
|
|
7
|
+
maxLength: number;
|
|
8
|
+
formatGroups: number[];
|
|
9
|
+
regex: RegExp;
|
|
10
|
+
}
|
|
11
|
+
declare const creditCardBrands: CreditCardBrandDetails[];
|
|
12
|
+
export declare function stripCardNumber(value: string): string;
|
|
13
|
+
export declare function detectCardBrand(value: string): CreditCardBrandDetails;
|
|
14
|
+
export declare function formatCardNumber(value: string): string;
|
|
15
|
+
export declare function validateCardNumber(value: string): ValidationResult;
|
|
16
|
+
export { creditCardBrands };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function daysInMonth(year: number, month: number): number;
|
|
2
|
+
export declare function firstDayOfMonth(year: number, month: number): number;
|
|
3
|
+
export declare function isSameDay(a: Date, b: Date): boolean;
|
|
4
|
+
export declare function isDateInRange(date: Date, min?: Date | null, max?: Date | null): boolean;
|
|
5
|
+
export declare function stripTime(date: Date): Date;
|
|
6
|
+
export declare function addMonths(date: Date, count: number): Date;
|
|
7
|
+
export declare function addYears(date: Date, count: number): Date;
|
|
8
|
+
export declare function formatDate(date: Date, format?: string): string;
|
|
9
|
+
export declare function parseDate(value: string, format?: string): Date | null;
|
|
10
|
+
export declare function getDayNames(locale?: string, firstDayOfWeek?: 0 | 1): string[];
|
|
11
|
+
export declare function getMonthNames(locale?: string): string[];
|
|
12
|
+
export declare function parseTime(value: string): {
|
|
13
|
+
hours: number;
|
|
14
|
+
minutes: number;
|
|
15
|
+
seconds: number;
|
|
16
|
+
} | null;
|
|
17
|
+
export declare function formatTime(hours: number, minutes: number, seconds?: number, showSeconds?: boolean): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare function stripNonDigits(value: string): string;
|
|
2
|
+
export declare function stripNonAlphanumeric(value: string): string;
|
|
3
|
+
export declare function capitalizeWords(value: string): string;
|
|
4
|
+
export declare function formatIBAN(value: string): string;
|
|
5
|
+
export declare function unformatIBAN(value: string): string;
|
|
6
|
+
export interface PhoneFormatOptions {
|
|
7
|
+
countryCode?: string;
|
|
8
|
+
groupPattern?: number[];
|
|
9
|
+
}
|
|
10
|
+
export declare function formatPhone(value: string, options?: PhoneFormatOptions): string;
|
|
11
|
+
export declare function formatNIP(value: string): string;
|
|
12
|
+
export interface CurrencyFormatOptions {
|
|
13
|
+
decimalSeparator?: '.' | ',';
|
|
14
|
+
thousandSeparator?: ' ' | '.' | ',' | '';
|
|
15
|
+
precision?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function formatCurrency(value: string, options?: CurrencyFormatOptions): string;
|
|
18
|
+
export declare function parseCurrencyToNumber(formatted: string, thousandSeparator?: string, decimalSeparator?: string): number | null;
|
|
19
|
+
export declare function adjustCursorAfterFormat(oldValue: string, newValue: string, oldCursor: number): number;
|
|
20
|
+
export { formatPostCode } from './postalCodes';
|
|
21
|
+
export { formatCardNumber } from './creditCards';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { MineralFontColor } from '../theme';
|
|
3
|
+
export declare const mineralUtilityScaleValues: readonly ["none", "xs", "sm", "md", "lg", "xl", "2xl"];
|
|
4
|
+
export type MineralUtilityScale = (typeof mineralUtilityScaleValues)[number];
|
|
5
|
+
export interface LayoutUtilityProps {
|
|
6
|
+
spacing?: MineralUtilityScale;
|
|
7
|
+
padding?: MineralUtilityScale;
|
|
8
|
+
fsize?: string | number;
|
|
9
|
+
fcolor?: MineralFontColor;
|
|
10
|
+
mt?: MineralUtilityScale;
|
|
11
|
+
mb?: MineralUtilityScale;
|
|
12
|
+
ml?: MineralUtilityScale;
|
|
13
|
+
mr?: MineralUtilityScale;
|
|
14
|
+
mx?: MineralUtilityScale;
|
|
15
|
+
my?: MineralUtilityScale;
|
|
16
|
+
pt?: MineralUtilityScale;
|
|
17
|
+
pb?: MineralUtilityScale;
|
|
18
|
+
pl?: MineralUtilityScale;
|
|
19
|
+
pr?: MineralUtilityScale;
|
|
20
|
+
px?: MineralUtilityScale;
|
|
21
|
+
py?: MineralUtilityScale;
|
|
22
|
+
fullWidth?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare function getLayoutUtilityClassNames({ spacing, padding, fsize, fcolor, mt, mb, ml, mr, mx, my, pt, pb, pl, pr, px, py, fullWidth, }: LayoutUtilityProps): Array<string | false | undefined>;
|
|
25
|
+
export declare function getLayoutUtilityStyles({ fsize }: Pick<LayoutUtilityProps, 'fsize'>): CSSProperties | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function resolveRuntimeLocale(): string;
|
|
2
|
+
export declare function useDocumentLocale(explicitLocale?: string): string;
|
|
3
|
+
export declare function getLocaleLanguage(locale: string): string;
|
|
4
|
+
export interface CalendarLocaleText {
|
|
5
|
+
today: string;
|
|
6
|
+
clear: string;
|
|
7
|
+
previousMonth: string;
|
|
8
|
+
nextMonth: string;
|
|
9
|
+
selectDateRange: string;
|
|
10
|
+
rangeSubtitle: string;
|
|
11
|
+
defaultRangePlaceholder: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function getCalendarLocaleText(locale: string): CalendarLocaleText;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ValidationResult } from './validators';
|
|
2
|
+
export interface PostCodeRule {
|
|
3
|
+
countryCode: string;
|
|
4
|
+
label: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
example: string;
|
|
7
|
+
inputMode: 'text' | 'numeric';
|
|
8
|
+
maxLength: number;
|
|
9
|
+
regex: RegExp;
|
|
10
|
+
sanitize: (value: string) => string;
|
|
11
|
+
format: (value: string) => string;
|
|
12
|
+
message: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const postCodeRules: Record<string, PostCodeRule>;
|
|
15
|
+
export declare const postCodeCountries: {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
}[];
|
|
19
|
+
export declare function getPostCodeRule(countryCode?: string): PostCodeRule;
|
|
20
|
+
export declare function formatPostCode(value: string, countryCode?: string): string;
|
|
21
|
+
export declare function validatePostCode(value: string, countryCode?: string): ValidationResult;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type RelativeTimeUnit = Intl.RelativeTimeFormatUnit;
|
|
2
|
+
export type RelativeTimeFallbackFormat = 'date' | 'datetime';
|
|
3
|
+
export interface RelativeTimeValue {
|
|
4
|
+
value: number;
|
|
5
|
+
unit: RelativeTimeUnit;
|
|
6
|
+
}
|
|
7
|
+
export interface FormatRelativeTimeOptions {
|
|
8
|
+
locale?: string;
|
|
9
|
+
now?: Date | number;
|
|
10
|
+
}
|
|
11
|
+
export declare function toDate(value: Date | string | number): Date | null;
|
|
12
|
+
export declare function parseRelativeThreshold(value?: string | number | null): number | null;
|
|
13
|
+
export declare function getRelativeTimeValue(value: Date | string | number, now?: Date | number): RelativeTimeValue | null;
|
|
14
|
+
export declare function formatRelativeTime(value: Date | string | number, { locale, now }?: FormatRelativeTimeOptions): string | null;
|
|
15
|
+
export declare function formatAbsoluteTime(value: Date | string | number, locale?: string, fallbackFormat?: RelativeTimeFallbackFormat): string | null;
|
|
16
|
+
export declare function getAutoUpdateInterval(value: Date | string | number, now?: Date | number): number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type ControllableStringLike = string | number | readonly string[] | null | undefined;
|
|
2
|
+
export declare function useControllableString(value: ControllableStringLike, defaultValue?: ControllableStringLike): {
|
|
3
|
+
isControlled: boolean;
|
|
4
|
+
currentValue: string;
|
|
5
|
+
setCurrentValue: (nextValue: string) => void;
|
|
6
|
+
};
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface GhostTextOptions<T = string> {
|
|
3
|
+
options: T[];
|
|
4
|
+
value: string;
|
|
5
|
+
minChars?: number;
|
|
6
|
+
getLabel?: (option: T) => string;
|
|
7
|
+
filter?: (options: T[], input: string) => T[];
|
|
8
|
+
}
|
|
9
|
+
export interface GhostTextReturn<T = string> {
|
|
10
|
+
/** The ghost suffix to render after the typed text. */
|
|
11
|
+
hint: string;
|
|
12
|
+
/** Accept the current hint and return the full value. */
|
|
13
|
+
accept: () => {
|
|
14
|
+
value: string;
|
|
15
|
+
option: T | null;
|
|
16
|
+
};
|
|
17
|
+
/** Cycle to the next matching option. */
|
|
18
|
+
next: () => void;
|
|
19
|
+
/** Cycle to the previous matching option. */
|
|
20
|
+
prev: () => void;
|
|
21
|
+
/** Reset the hint index (call on value change). */
|
|
22
|
+
reset: () => void;
|
|
23
|
+
/** Number of matching options. */
|
|
24
|
+
matchCount: number;
|
|
25
|
+
/** Handle keyboard events — Tab/Enter accept, arrows cycle, Escape resets. */
|
|
26
|
+
onKeyDown: (e: React.KeyboardEvent) => boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function useGhostText<T = string>({ options, value, minChars, getLabel, filter, }: GhostTextOptions<T>): GhostTextReturn<T>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PointerEvent, ReactElement } from 'react';
|
|
2
|
+
export type MineralClickEffect = 'none' | 'ripple';
|
|
3
|
+
export interface UseInteractionEffectOptions {
|
|
4
|
+
effect?: MineralClickEffect;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
centered?: boolean;
|
|
7
|
+
color?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UseInteractionEffectResult<T extends HTMLElement> {
|
|
10
|
+
effectClassName?: string;
|
|
11
|
+
effectLayer: ReactElement | null;
|
|
12
|
+
handlePointerDown: (event: PointerEvent<T>) => void;
|
|
13
|
+
triggerEffect: (target: T | null) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function useInteractionEffect<T extends HTMLElement = HTMLElement>({ effect, disabled, centered, color, }?: UseInteractionEffectOptions): UseInteractionEffectResult<T>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { KeyboardEvent } from 'react';
|
|
2
|
+
export interface UseKeyboardNavOptions {
|
|
3
|
+
itemCount: number;
|
|
4
|
+
onSelect: (index: number) => void;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function useKeyboardNav({ itemCount, onSelect, onClose, isOpen, loop }: UseKeyboardNavOptions): {
|
|
10
|
+
activeIndex: number;
|
|
11
|
+
setActiveIndex: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
12
|
+
resetIndex: () => void;
|
|
13
|
+
onKeyDown: (e: KeyboardEvent) => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ValidationResult {
|
|
2
|
+
valid: boolean;
|
|
3
|
+
error?: string;
|
|
4
|
+
}
|
|
5
|
+
export type ValidatorFn = (value: string) => ValidationResult;
|
|
6
|
+
export declare function validateRequired(value: string): ValidationResult;
|
|
7
|
+
export declare function validateMinLength(min: number): ValidatorFn;
|
|
8
|
+
export declare function validateMaxLength(max: number): ValidatorFn;
|
|
9
|
+
export declare function validatePattern(pattern: RegExp, message?: string): ValidatorFn;
|
|
10
|
+
export declare function validateRange(min?: number, max?: number): ValidatorFn;
|
|
11
|
+
export declare function validateEmail(value: string): ValidationResult;
|
|
12
|
+
export declare function validatePhone(value: string, countryCode?: string): ValidationResult;
|
|
13
|
+
export declare function validateIBAN(value: string): ValidationResult;
|
|
14
|
+
export declare function validateNIP(value: string): ValidationResult;
|
|
15
|
+
export declare function validatePESEL(value: string): ValidationResult;
|
|
16
|
+
export declare function validateREGON(value: string): ValidationResult;
|
|
17
|
+
export declare function composeValidators(...validators: ValidatorFn[]): ValidatorFn;
|
|
18
|
+
export { validatePostCode } from './postalCodes';
|
|
19
|
+
export { validateCardNumber } from './creditCards';
|
package/dist/utils.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('./style-runtime.cjs')
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./cn-BOmEz3Rt.cjs`),t=require(`./validators-B7cSTrU_.cjs`),n=require(`./creditCards-CUM63Oia.cjs`),r=require(`./formatters-C3tjM3rj.cjs`),i=require(`./dateUtils-a8oMntCI.cjs`),a=require(`./useDebounce-C3jbJOKC.cjs`),o=require(`./useClickOutside-CS-Mc6ne.cjs`),s=require(`./useKeyboardNav-DJtFz7Fx.cjs`),c=require(`./useInteractionEffect-BaJeiUns.cjs`),l=require(`./useReveal-p1cSTlUT.cjs`),u=require(`./useGhostText-CoYhBGCg.cjs`);exports.addMonths=i.t,exports.addYears=i.n,exports.adjustCursorAfterFormat=r.t,exports.capitalizeWords=r.n,exports.cn=e.t,exports.mergeClasses=e.t,exports.composeValidators=t.t,exports.creditCardBrands=n.t,exports.daysInMonth=i.r,exports.detectCardBrand=n.n,exports.firstDayOfMonth=i.i,exports.formatCardNumber=n.r,exports.formatCurrency=r.r,exports.formatDate=i.a,exports.formatIBAN=r.i,exports.formatNIP=r.a,exports.formatPhone=r.o,exports.formatPostCode=t.p,exports.formatTime=i.o,exports.getDayNames=i.s,exports.getMonthNames=i.c,exports.getPostCodeRule=t.m,exports.isDateInRange=i.l,exports.isSameDay=i.u,exports.parseCurrencyToNumber=r.s,exports.parseDate=i.d,exports.parseTime=i.f,exports.postCodeCountries=t.h,exports.postCodeRules=t.g,exports.stripCardNumber=n.i,exports.stripNonAlphanumeric=r.c,exports.stripNonDigits=r.l,exports.stripTime=i.p,exports.unformatIBAN=r.u,exports.useClickEffect=c.t,exports.useInteractionEffect=c.t,exports.useClickOutside=o.t,exports.useOutsideClick=o.t,exports.useDebounce=a.t,exports.useDebouncedCallback=a.n,exports.useGhostText=u.t,exports.useKeyNavigation=s.t,exports.useKeyboardNav=s.t,exports.useReveal=l.t,exports.validateCardNumber=n.a,exports.validateEmail=t.n,exports.validateIBAN=t.r,exports.validateMaxLength=t.i,exports.validateMinLength=t.a,exports.validateNIP=t.o,exports.validatePESEL=t.s,exports.validatePattern=t.c,exports.validatePhone=t.l,exports.validatePostCode=t._,exports.validateREGON=t.u,exports.validateRange=t.d,exports.validateRequired=t.f;
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { cn as mergeClasses, cn } from './utils/cn';
|
|
2
|
+
export { validateRequired, validateMinLength, validateMaxLength, validatePattern, validateRange, validateEmail, validatePhone, validateIBAN, validateNIP, validatePESEL, validateREGON, validatePostCode, validateCardNumber, composeValidators, } from './utils/validators';
|
|
3
|
+
export type { ValidationResult, ValidatorFn } from './utils/validators';
|
|
4
|
+
export { formatPostCode, formatIBAN, formatCardNumber, unformatIBAN, formatPhone, formatNIP, formatCurrency, parseCurrencyToNumber, stripNonDigits, stripNonAlphanumeric, capitalizeWords, adjustCursorAfterFormat, } from './utils/formatters';
|
|
5
|
+
export type { PhoneFormatOptions, CurrencyFormatOptions } from './utils/formatters';
|
|
6
|
+
export { getPostCodeRule, postCodeCountries, postCodeRules } from './utils/postalCodes';
|
|
7
|
+
export type { PostCodeRule } from './utils/postalCodes';
|
|
8
|
+
export { creditCardBrands, detectCardBrand, stripCardNumber } from './utils/creditCards';
|
|
9
|
+
export type { CreditCardBrand, CreditCardBrandDetails } from './utils/creditCards';
|
|
10
|
+
export { formatDate, parseDate, daysInMonth, firstDayOfMonth, isSameDay, isDateInRange, stripTime, addMonths, addYears, getDayNames, getMonthNames, parseTime, formatTime, } from './utils/dateUtils';
|
|
11
|
+
export { useDebounce, useDebouncedCallback } from './utils/useDebounce';
|
|
12
|
+
export { useClickOutside as useOutsideClick, useClickOutside } from './utils/useClickOutside';
|
|
13
|
+
export { useKeyboardNav as useKeyNavigation, useKeyboardNav } from './utils/useKeyboardNav';
|
|
14
|
+
export type { UseKeyboardNavOptions, UseKeyboardNavOptions as UseKeyNavigationOptions } from './utils/useKeyboardNav';
|
|
15
|
+
export { useInteractionEffect as useClickEffect, useInteractionEffect } from './utils/useInteractionEffect';
|
|
16
|
+
export type { MineralClickEffect, UseInteractionEffectOptions, UseInteractionEffectResult, } from './utils/useInteractionEffect';
|
|
17
|
+
export { useReveal } from './utils/useReveal';
|
|
18
|
+
export type { RevealProp } from './utils/useReveal';
|
|
19
|
+
export { useGhostText } from './utils/useGhostText';
|
|
20
|
+
export type { GhostTextOptions, GhostTextReturn } from './utils/useGhostText';
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './style-runtime.js'
|
|
2
|
+
import { t as e } from "./cn-BIeeqGZv.js";
|
|
3
|
+
import { _ as t, a as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _ } from "./validators-Y1nYXhNR.js";
|
|
4
|
+
import { a as v, i as y, n as b, r as x, t as S } from "./creditCards-pLOxJ6gs.js";
|
|
5
|
+
import { a as C, c as w, i as T, l as E, n as D, o as O, r as k, s as A, t as j, u as M } from "./formatters-CtZdwLSU.js";
|
|
6
|
+
import { a as N, c as P, d as F, f as I, i as L, l as R, n as z, o as B, p as V, r as H, s as U, t as W, u as G } from "./dateUtils-D3rghkxq.js";
|
|
7
|
+
import { n as K, t as q } from "./useDebounce-D-v3IRXp.js";
|
|
8
|
+
import { t as J } from "./useClickOutside-Dcye4Ut0.js";
|
|
9
|
+
import { t as Y } from "./useKeyboardNav-CmUKtJag.js";
|
|
10
|
+
import { t as X } from "./useInteractionEffect-B5_UpgTt.js";
|
|
11
|
+
import { t as Z } from "./useReveal-Fg-i8hhZ.js";
|
|
12
|
+
import { t as Q } from "./useGhostText-BNcH5o9H.js";
|
|
13
|
+
export { W as addMonths, z as addYears, j as adjustCursorAfterFormat, D as capitalizeWords, e as cn, e as mergeClasses, g as composeValidators, S as creditCardBrands, H as daysInMonth, b as detectCardBrand, L as firstDayOfMonth, x as formatCardNumber, k as formatCurrency, N as formatDate, T as formatIBAN, C as formatNIP, O as formatPhone, p as formatPostCode, B as formatTime, U as getDayNames, P as getMonthNames, u as getPostCodeRule, R as isDateInRange, G as isSameDay, A as parseCurrencyToNumber, F as parseDate, I as parseTime, s as postCodeCountries, o as postCodeRules, y as stripCardNumber, w as stripNonAlphanumeric, E as stripNonDigits, V as stripTime, M as unformatIBAN, X as useClickEffect, X as useInteractionEffect, J as useClickOutside, J as useOutsideClick, q as useDebounce, K as useDebouncedCallback, Q as useGhostText, Y as useKeyNavigation, Y as useKeyboardNav, Z as useReveal, v as validateCardNumber, d as validateEmail, m as validateIBAN, c as validateMaxLength, n as validateMinLength, f as validateNIP, h as validatePESEL, r as validatePattern, l as validatePhone, t as validatePostCode, _ as validateREGON, i as validateRange, a as validateRequired };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={valid:!0};function t(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,``)}function n(e){let t=e.replace(/\D/g,``).slice(0,5);return t.length<=2?t:`${t.slice(0,2)}-${t.slice(2)}`}function r(e){let t=e.replace(/\D/g,``).slice(0,9);return t.length<=5?t:`${t.slice(0,5)}-${t.slice(5)}`}function i(e,t){return e.replace(/\D/g,``).slice(0,t)}function a(e){return t(e).slice(0,6).split(``).map((e,t)=>t===3?` ${e}`:e).join(``)}function o(e){let n=t(e).slice(0,7);return n.length<=3?n:`${n.slice(0,n.length-3)} ${n.slice(-3)}`}function s(e){let n=t(e).slice(0,6);return n.length<=4?n:`${n.slice(0,4)} ${n.slice(4)}`}var c={PL:{countryCode:`PL`,label:`Poland`,placeholder:`12-345`,example:`00-001`,inputMode:`numeric`,maxLength:6,regex:/^\d{2}-\d{3}$/,sanitize:e=>e.replace(/\D/g,``).slice(0,5),format:n,message:`Use the Polish format XX-XXX`},DE:{countryCode:`DE`,label:`Germany`,placeholder:`12345`,example:`10115`,inputMode:`numeric`,maxLength:5,regex:/^\d{5}$/,sanitize:e=>e.replace(/\D/g,``).slice(0,5),format:e=>i(e,5),message:`Use a 5-digit German postal code`},FR:{countryCode:`FR`,label:`France`,placeholder:`75001`,example:`75001`,inputMode:`numeric`,maxLength:5,regex:/^\d{5}$/,sanitize:e=>e.replace(/\D/g,``).slice(0,5),format:e=>i(e,5),message:`Use a 5-digit French postal code`},ES:{countryCode:`ES`,label:`Spain`,placeholder:`28013`,example:`28013`,inputMode:`numeric`,maxLength:5,regex:/^\d{5}$/,sanitize:e=>e.replace(/\D/g,``).slice(0,5),format:e=>i(e,5),message:`Use a 5-digit Spanish postal code`},IT:{countryCode:`IT`,label:`Italy`,placeholder:`00184`,example:`00184`,inputMode:`numeric`,maxLength:5,regex:/^\d{5}$/,sanitize:e=>e.replace(/\D/g,``).slice(0,5),format:e=>i(e,5),message:`Use a 5-digit Italian postal code`},US:{countryCode:`US`,label:`United States`,placeholder:`12345 or 12345-6789`,example:`10001`,inputMode:`numeric`,maxLength:10,regex:/^\d{5}(?:-\d{4})?$/,sanitize:e=>e.replace(/\D/g,``).slice(0,9),format:r,message:`Use ZIP or ZIP+4 format`},CA:{countryCode:`CA`,label:`Canada`,placeholder:`A1A 1A1`,example:`M5V 3L9`,inputMode:`text`,maxLength:7,regex:/^[A-Z]\d[A-Z] \d[A-Z]\d$/,sanitize:e=>t(e).slice(0,6),format:a,message:`Use the Canadian format A1A 1A1`},GB:{countryCode:`GB`,label:`United Kingdom`,placeholder:`SW1A 1AA`,example:`SW1A 1AA`,inputMode:`text`,maxLength:8,regex:/^[A-Z]{1,2}\d[A-Z\d]? \d[A-Z]{2}$/,sanitize:e=>t(e).slice(0,7),format:o,message:`Use a valid UK postcode`},NL:{countryCode:`NL`,label:`Netherlands`,placeholder:`1234 AB`,example:`1012 AB`,inputMode:`text`,maxLength:7,regex:/^\d{4} [A-Z]{2}$/,sanitize:e=>t(e).slice(0,6),format:s,message:`Use the Dutch format 1234 AB`}},l=Object.values(c).map(({countryCode:e,label:t})=>({value:e,label:t}));function u(e=`PL`){return c[e.toUpperCase()]??c.PL}function d(e,t=`PL`){let n=u(t);return n.format(n.sanitize(e))}function f(t,n=`PL`){if(!t)return e;let r=u(n),i=r.format(r.sanitize(t));return r.regex.test(i)?e:{valid:!1,error:r.message}}var p={valid:!0},m=e=>({valid:!1,error:e});function h(e){return e.trim().length>0?p:m(`This field is required`)}function g(e){return t=>t.length>=e?p:m(`Minimum ${e} characters`)}function _(e){return t=>t.length<=e?p:m(`Maximum ${e} characters`)}function v(e,t){return n=>e.test(n)?p:m(t??`Invalid format`)}function y(e,t){return n=>{let r=parseFloat(n);return isNaN(r)?m(`Must be a number`):e!==void 0&&r<e?m(`Minimum value is ${e}`):t!==void 0&&r>t?m(`Maximum value is ${t}`):p}}var b=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function x(e){return e?b.test(e)?p:m(`Invalid email address`):p}var S={PL:9,DE:10,US:10,GB:10,FR:9,CZ:9,SK:9};function C(e,t){if(!e)return p;let n=e.replace(/\D/g,``);if(n.length<7)return m(`Phone number too short`);if(n.length>15)return m(`Phone number too long`);if(t){let e=S[t.toUpperCase()];if(e&&n.length!==e)return m(`Phone number should have ${e} digits`)}return p}var w={AL:28,AD:24,AT:20,AZ:28,BH:22,BY:28,BE:16,BA:20,BR:29,BG:22,CR:22,HR:21,CY:28,CZ:24,DK:18,DO:28,EG:29,SV:28,EE:20,FO:18,FI:18,FR:27,GE:22,DE:22,GI:23,GR:27,GL:18,GT:28,HU:28,IS:26,IQ:23,IE:22,IL:23,IT:27,JO:30,KZ:20,XK:20,KW:30,LV:21,LB:28,LI:21,LT:20,LU:20,MT:31,MR:27,MU:30,MD:24,MC:27,ME:22,NL:18,MK:19,NO:15,PK:24,PS:29,PL:28,PT:25,QA:29,RO:24,LC:32,SM:27,SA:24,RS:22,SC:31,SK:24,SI:19,ES:24,SE:24,CH:21,TL:23,TN:24,TR:26,UA:29,AE:23,GB:22,VA:22,VG:24};function T(e){let t=0;for(let n=0;n<e.length;n++)t=(t*10+parseInt(e[n],10))%97;return t}function E(e){if(!e)return p;let t=e.replace(/\s/g,``).toUpperCase();if(t.length<2)return m(`IBAN too short`);let n=t.slice(0,2),r=w[n];return r?t.length===r?T((t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,e=>String(e.charCodeAt(0)-55)))===1?p:m(`Invalid IBAN checksum`):m(`IBAN for ${n} should have ${r} characters`):m(`Unknown IBAN country code`)}var D=[6,5,7,2,3,4,5,6,7];function O(e){if(!e)return p;let t=e.replace(/\D/g,``);if(t.length!==10)return m(`NIP must have 10 digits`);let n=0;for(let e=0;e<9;e++)n+=parseInt(t[e],10)*D[e];let r=n%11;return r===10?m(`Invalid NIP`):r===parseInt(t[9],10)?p:m(`Invalid NIP checksum`)}var k=[1,3,7,9,1,3,7,9,1,3];function A(e){if(!e)return p;let t=e.replace(/\D/g,``);if(t.length!==11)return m(`PESEL must have 11 digits`);let n=0;for(let e=0;e<10;e++)n+=parseInt(t[e],10)*k[e];return(10-n%10)%10===parseInt(t[10],10)?p:m(`Invalid PESEL checksum`)}var j=[8,9,2,3,4,5,6,7],M=[2,4,8,5,0,9,7,3,6,1,2,4,8];function N(e){if(!e)return p;let t=e.replace(/\D/g,``);if(t.length!==9&&t.length!==14)return m(`REGON must have 9 or 14 digits`);let n=t.length===9?j:M,r=0;for(let e=0;e<n.length;e++)r+=parseInt(t[e],10)*n[e];return(r%11==10?0:r%11)===parseInt(t[t.length-1],10)?p:m(`Invalid REGON checksum`)}function P(...e){return t=>{for(let n of e){let e=n(t);if(!e.valid)return e}return p}}Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return N}});
|
|
2
|
+
//# sourceMappingURL=validators-B7cSTrU_.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validators-B7cSTrU_.cjs","names":[],"sources":["../src/utils/postalCodes.ts","../src/utils/validators.ts"],"sourcesContent":["import type {ValidationResult} from './validators'\n\nexport interface PostCodeRule {\n countryCode: string\n label: string\n placeholder: string\n example: string\n inputMode: 'text' | 'numeric'\n maxLength: number\n regex: RegExp\n sanitize: (value: string) => string\n format: (value: string) => string\n message: string\n}\n\nconst OK_RESULT: ValidationResult = {valid: true}\n\n// Reuse one sanitizer for countries that mix letters and digits.\nfunction keepLettersAndDigits(value: string): string {\n return value.toUpperCase().replace(/[^A-Z0-9]/g, '')\n}\n\n// Apply the common Polish XX-XXX postcode shape.\nfunction formatPlPostCode(value: string): string {\n const digits = value.replace(/\\D/g, '').slice(0, 5)\n\n if (digits.length <= 2) {\n return digits\n }\n\n return `${digits.slice(0, 2)}-${digits.slice(2)}`\n}\n\n// Support ZIP and ZIP+4 with the same formatter.\nfunction formatUsPostCode(value: string): string {\n const digits = value.replace(/\\D/g, '').slice(0, 9)\n\n if (digits.length <= 5) {\n return digits\n }\n\n return `${digits.slice(0, 5)}-${digits.slice(5)}`\n}\n\n// Clamp countries that only need a fixed number of digits.\nfunction formatFixedDigits(value: string, maxLength: number): string {\n return value.replace(/\\D/g, '').slice(0, maxLength)\n}\n\n// Insert the standard center space used by Canadian post codes.\nfunction formatCaPostCode(value: string): string {\n const clean = keepLettersAndDigits(value).slice(0, 6)\n const chars = clean.split('')\n\n return chars\n .map((char, index) => {\n if (index === 3) {\n return ` ${char}`\n }\n\n return char\n })\n .join('')\n}\n\n// Split the outward and inward parts of a UK postcode.\nfunction formatGbPostCode(value: string): string {\n const clean = keepLettersAndDigits(value).slice(0, 7)\n\n if (clean.length <= 3) {\n return clean\n }\n\n return `${clean.slice(0, clean.length - 3)} ${clean.slice(-3)}`\n}\n\n// Split Dutch codes into four digits and two letters.\nfunction formatNlPostCode(value: string): string {\n const clean = keepLettersAndDigits(value).slice(0, 6)\n\n if (clean.length <= 4) {\n return clean\n }\n\n return `${clean.slice(0, 4)} ${clean.slice(4)}`\n}\n\nexport const postCodeRules: Record<string, PostCodeRule> = {\n PL: {\n countryCode: 'PL',\n label: 'Poland',\n placeholder: '12-345',\n example: '00-001',\n inputMode: 'numeric',\n maxLength: 6,\n regex: /^\\d{2}-\\d{3}$/,\n sanitize: (value) => value.replace(/\\D/g, '').slice(0, 5),\n format: formatPlPostCode,\n message: 'Use the Polish format XX-XXX',\n },\n DE: {\n countryCode: 'DE',\n label: 'Germany',\n placeholder: '12345',\n example: '10115',\n inputMode: 'numeric',\n maxLength: 5,\n regex: /^\\d{5}$/,\n sanitize: (value) => value.replace(/\\D/g, '').slice(0, 5),\n format: (value) => formatFixedDigits(value, 5),\n message: 'Use a 5-digit German postal code',\n },\n FR: {\n countryCode: 'FR',\n label: 'France',\n placeholder: '75001',\n example: '75001',\n inputMode: 'numeric',\n maxLength: 5,\n regex: /^\\d{5}$/,\n sanitize: (value) => value.replace(/\\D/g, '').slice(0, 5),\n format: (value) => formatFixedDigits(value, 5),\n message: 'Use a 5-digit French postal code',\n },\n ES: {\n countryCode: 'ES',\n label: 'Spain',\n placeholder: '28013',\n example: '28013',\n inputMode: 'numeric',\n maxLength: 5,\n regex: /^\\d{5}$/,\n sanitize: (value) => value.replace(/\\D/g, '').slice(0, 5),\n format: (value) => formatFixedDigits(value, 5),\n message: 'Use a 5-digit Spanish postal code',\n },\n IT: {\n countryCode: 'IT',\n label: 'Italy',\n placeholder: '00184',\n example: '00184',\n inputMode: 'numeric',\n maxLength: 5,\n regex: /^\\d{5}$/,\n sanitize: (value) => value.replace(/\\D/g, '').slice(0, 5),\n format: (value) => formatFixedDigits(value, 5),\n message: 'Use a 5-digit Italian postal code',\n },\n US: {\n countryCode: 'US',\n label: 'United States',\n placeholder: '12345 or 12345-6789',\n example: '10001',\n inputMode: 'numeric',\n maxLength: 10,\n regex: /^\\d{5}(?:-\\d{4})?$/,\n sanitize: (value) => value.replace(/\\D/g, '').slice(0, 9),\n format: formatUsPostCode,\n message: 'Use ZIP or ZIP+4 format',\n },\n CA: {\n countryCode: 'CA',\n label: 'Canada',\n placeholder: 'A1A 1A1',\n example: 'M5V 3L9',\n inputMode: 'text',\n maxLength: 7,\n regex: /^[A-Z]\\d[A-Z] \\d[A-Z]\\d$/,\n sanitize: (value) => keepLettersAndDigits(value).slice(0, 6),\n format: formatCaPostCode,\n message: 'Use the Canadian format A1A 1A1',\n },\n GB: {\n countryCode: 'GB',\n label: 'United Kingdom',\n placeholder: 'SW1A 1AA',\n example: 'SW1A 1AA',\n inputMode: 'text',\n maxLength: 8,\n regex: /^[A-Z]{1,2}\\d[A-Z\\d]? \\d[A-Z]{2}$/,\n sanitize: (value) => keepLettersAndDigits(value).slice(0, 7),\n format: formatGbPostCode,\n message: 'Use a valid UK postcode',\n },\n NL: {\n countryCode: 'NL',\n label: 'Netherlands',\n placeholder: '1234 AB',\n example: '1012 AB',\n inputMode: 'text',\n maxLength: 7,\n regex: /^\\d{4} [A-Z]{2}$/,\n sanitize: (value) => keepLettersAndDigits(value).slice(0, 6),\n format: formatNlPostCode,\n message: 'Use the Dutch format 1234 AB',\n },\n}\n\nexport const postCodeCountries = Object.values(postCodeRules).map(({countryCode, label}) => ({\n value: countryCode,\n label,\n}))\n\n// Return the active postal rule or fall back to Poland for deterministic behavior.\nexport function getPostCodeRule(countryCode: string = 'PL'): PostCodeRule {\n return postCodeRules[countryCode.toUpperCase()] ?? postCodeRules.PL\n}\n\n// Keep postal input values aligned with the selected country format.\nexport function formatPostCode(value: string, countryCode: string = 'PL'): string {\n const rule = getPostCodeRule(countryCode)\n return rule.format(rule.sanitize(value))\n}\n\n// Validate the user-visible postal code against the selected country rule.\nexport function validatePostCode(value: string, countryCode: string = 'PL'): ValidationResult {\n if (!value) {\n return OK_RESULT\n }\n\n const rule = getPostCodeRule(countryCode)\n const formatted = rule.format(rule.sanitize(value))\n\n if (!rule.regex.test(formatted)) {\n return {valid: false, error: rule.message}\n }\n\n return OK_RESULT\n}\n","export interface ValidationResult {\n valid: boolean\n error?: string\n}\n\nexport type ValidatorFn = (value: string) => ValidationResult\n\nconst ok: ValidationResult = {valid: true}\nconst fail = (error: string): ValidationResult => ({valid: false, error})\n\n// Ensure the field is not empty after trimming user input.\nexport function validateRequired(value: string): ValidationResult {\n return value.trim().length > 0 ? ok : fail('This field is required')\n}\n\n// Build a validator that enforces a minimum string length.\nexport function validateMinLength(min: number): ValidatorFn {\n return (value: string) => (value.length >= min ? ok : fail(`Minimum ${min} characters`))\n}\n\n// Build a validator that enforces a maximum string length.\nexport function validateMaxLength(max: number): ValidatorFn {\n return (value: string) => (value.length <= max ? ok : fail(`Maximum ${max} characters`))\n}\n\n// Build a validator around a custom regular expression.\nexport function validatePattern(pattern: RegExp, message?: string): ValidatorFn {\n return (value: string) => (pattern.test(value) ? ok : fail(message ?? 'Invalid format'))\n}\n\n// Validate numeric input against optional min and max bounds.\nexport function validateRange(min?: number, max?: number): ValidatorFn {\n return (value: string) => {\n const num = parseFloat(value)\n if (isNaN(num)) return fail('Must be a number')\n if (min !== undefined && num < min) return fail(`Minimum value is ${min}`)\n if (max !== undefined && num > max) return fail(`Maximum value is ${max}`)\n return ok\n }\n}\n\n// === Email ===\n\nconst EMAIL_RE =\n /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/\n\n// Validate email format while allowing empty optional fields.\nexport function validateEmail(value: string): ValidationResult {\n if (!value) return ok\n return EMAIL_RE.test(value) ? ok : fail('Invalid email address')\n}\n\n// === Phone ===\n\nconst PHONE_LENGTH: Record<string, number> = {\n PL: 9,\n DE: 10,\n US: 10,\n GB: 10,\n FR: 9,\n CZ: 9,\n SK: 9,\n}\n\n// Validate a phone number with optional country-specific digit counts.\nexport function validatePhone(value: string, countryCode?: string): ValidationResult {\n if (!value) return ok\n const digits = value.replace(/\\D/g, '')\n if (digits.length < 7) return fail('Phone number too short')\n if (digits.length > 15) return fail('Phone number too long')\n if (countryCode) {\n const expected = PHONE_LENGTH[countryCode.toUpperCase()]\n if (expected && digits.length !== expected) {\n return fail(`Phone number should have ${expected} digits`)\n }\n }\n return ok\n}\n\n// === IBAN (MOD-97, ISO 13616) ===\n\nconst IBAN_LENGTHS: Record<string, number> = {\n AL: 28,\n AD: 24,\n AT: 20,\n AZ: 28,\n BH: 22,\n BY: 28,\n BE: 16,\n BA: 20,\n BR: 29,\n BG: 22,\n CR: 22,\n HR: 21,\n CY: 28,\n CZ: 24,\n DK: 18,\n DO: 28,\n EG: 29,\n SV: 28,\n EE: 20,\n FO: 18,\n FI: 18,\n FR: 27,\n GE: 22,\n DE: 22,\n GI: 23,\n GR: 27,\n GL: 18,\n GT: 28,\n HU: 28,\n IS: 26,\n IQ: 23,\n IE: 22,\n IL: 23,\n IT: 27,\n JO: 30,\n KZ: 20,\n XK: 20,\n KW: 30,\n LV: 21,\n LB: 28,\n LI: 21,\n LT: 20,\n LU: 20,\n MT: 31,\n MR: 27,\n MU: 30,\n MD: 24,\n MC: 27,\n ME: 22,\n NL: 18,\n MK: 19,\n NO: 15,\n PK: 24,\n PS: 29,\n PL: 28,\n PT: 25,\n QA: 29,\n RO: 24,\n LC: 32,\n SM: 27,\n SA: 24,\n RS: 22,\n SC: 31,\n SK: 24,\n SI: 19,\n ES: 24,\n SE: 24,\n CH: 21,\n TL: 23,\n TN: 24,\n TR: 26,\n UA: 29,\n AE: 23,\n GB: 22,\n VA: 22,\n VG: 24,\n}\n\n// Run the MOD-97 remainder calculation on a numeric IBAN representation.\nfunction mod97(numStr: string): number {\n let remainder = 0\n for (let i = 0; i < numStr.length; i++) {\n remainder = (remainder * 10 + parseInt(numStr[i], 10)) % 97\n }\n return remainder\n}\n\n// Validate a full IBAN using country length rules and the MOD-97 checksum.\nexport function validateIBAN(value: string): ValidationResult {\n if (!value) return ok\n const iban = value.replace(/\\s/g, '').toUpperCase()\n\n if (iban.length < 2) return fail('IBAN too short')\n\n const countryCode = iban.slice(0, 2)\n const expectedLength = IBAN_LENGTHS[countryCode]\n\n if (!expectedLength) return fail('Unknown IBAN country code')\n if (iban.length !== expectedLength) {\n return fail(`IBAN for ${countryCode} should have ${expectedLength} characters`)\n }\n\n // MOD-97 check: move first 4 chars to end, convert letters to numbers\n const rearranged = iban.slice(4) + iban.slice(0, 4)\n const numStr = rearranged.replace(/[A-Z]/g, (ch) => String(ch.charCodeAt(0) - 55))\n\n return mod97(numStr) === 1 ? ok : fail('Invalid IBAN checksum')\n}\n\n// === NIP (Polish Tax ID) ===\n\nconst NIP_WEIGHTS = [6, 5, 7, 2, 3, 4, 5, 6, 7]\n\n// Validate a Polish NIP number with its weighted checksum.\nexport function validateNIP(value: string): ValidationResult {\n if (!value) return ok\n const digits = value.replace(/\\D/g, '')\n if (digits.length !== 10) return fail('NIP must have 10 digits')\n\n let sum = 0\n for (let i = 0; i < 9; i++) {\n sum += parseInt(digits[i], 10) * NIP_WEIGHTS[i]\n }\n const checkDigit = sum % 11\n if (checkDigit === 10) return fail('Invalid NIP')\n return checkDigit === parseInt(digits[9], 10) ? ok : fail('Invalid NIP checksum')\n}\n\n// === PESEL ===\n\nconst PESEL_WEIGHTS = [1, 3, 7, 9, 1, 3, 7, 9, 1, 3]\n\n// Validate a Polish PESEL number with its checksum algorithm.\nexport function validatePESEL(value: string): ValidationResult {\n if (!value) return ok\n const digits = value.replace(/\\D/g, '')\n if (digits.length !== 11) return fail('PESEL must have 11 digits')\n\n let sum = 0\n for (let i = 0; i < 10; i++) {\n sum += parseInt(digits[i], 10) * PESEL_WEIGHTS[i]\n }\n const checkDigit = (10 - (sum % 10)) % 10\n return checkDigit === parseInt(digits[10], 10) ? ok : fail('Invalid PESEL checksum')\n}\n\n// === REGON ===\n\nconst REGON9_WEIGHTS = [8, 9, 2, 3, 4, 5, 6, 7]\nconst REGON14_WEIGHTS = [2, 4, 8, 5, 0, 9, 7, 3, 6, 1, 2, 4, 8]\n\n// Validate REGON numbers in both the 9-digit and 14-digit variants.\nexport function validateREGON(value: string): ValidationResult {\n if (!value) return ok\n const digits = value.replace(/\\D/g, '')\n\n if (digits.length !== 9 && digits.length !== 14) {\n return fail('REGON must have 9 or 14 digits')\n }\n\n const weights = digits.length === 9 ? REGON9_WEIGHTS : REGON14_WEIGHTS\n let sum = 0\n for (let i = 0; i < weights.length; i++) {\n sum += parseInt(digits[i], 10) * weights[i]\n }\n const checkDigit = sum % 11 === 10 ? 0 : sum % 11\n const lastDigit = parseInt(digits[digits.length - 1], 10)\n return checkDigit === lastDigit ? ok : fail('Invalid REGON checksum')\n}\n\n// === Compose validators ===\n\n// Run validators in order and stop at the first failure.\nexport function composeValidators(...validators: ValidatorFn[]): ValidatorFn {\n return (value: string) => {\n for (const validator of validators) {\n const result = validator(value)\n if (!result.valid) return result\n }\n return ok\n }\n}\n\nexport {validatePostCode} from './postalCodes'\nexport {validateCardNumber} from './creditCards'\n"],"mappings":"AAeA,IAAM,EAA8B,CAAC,MAAO,GAAK,CAGjD,SAAS,EAAqB,EAAuB,CACjD,OAAO,EAAM,aAAa,CAAC,QAAQ,aAAc,GAAG,CAIxD,SAAS,EAAiB,EAAuB,CAC7C,IAAM,EAAS,EAAM,QAAQ,MAAO,GAAG,CAAC,MAAM,EAAG,EAAE,CAMnD,OAJI,EAAO,QAAU,EACV,EAGJ,GAAG,EAAO,MAAM,EAAG,EAAE,CAAC,GAAG,EAAO,MAAM,EAAE,GAInD,SAAS,EAAiB,EAAuB,CAC7C,IAAM,EAAS,EAAM,QAAQ,MAAO,GAAG,CAAC,MAAM,EAAG,EAAE,CAMnD,OAJI,EAAO,QAAU,EACV,EAGJ,GAAG,EAAO,MAAM,EAA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