@dev-dga/react 1.0.0 → 1.1.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/CHANGELOG.md +11 -0
- package/README.md +14 -0
- package/dist/{chunk-Z2LJBEIV.cjs → chunk-2ISGZAMI.cjs} +3 -3
- package/dist/{chunk-Z2LJBEIV.cjs.map → chunk-2ISGZAMI.cjs.map} +1 -1
- package/dist/{chunk-TPD2GNR6.js → chunk-3BDWXIO2.js} +4 -4
- package/dist/{chunk-KDV7V5S4.js → chunk-3GW6NMDL.js} +4 -4
- package/dist/{chunk-VN2YHNUE.cjs → chunk-3IJBHHQP.cjs} +4 -4
- package/dist/{chunk-VN2YHNUE.cjs.map → chunk-3IJBHHQP.cjs.map} +1 -1
- package/dist/{chunk-DI52GZLA.cjs → chunk-3Y6JPEJ3.cjs} +4 -4
- package/dist/{chunk-DI52GZLA.cjs.map → chunk-3Y6JPEJ3.cjs.map} +1 -1
- package/dist/{chunk-4HBVLISS.js → chunk-4G42XPSB.js} +4 -4
- package/dist/{chunk-7EEKESAA.js → chunk-4IUOTHJC.js} +4 -4
- package/dist/{chunk-YOKOPO2W.cjs → chunk-5NBC47JU.cjs} +3 -3
- package/dist/{chunk-YOKOPO2W.cjs.map → chunk-5NBC47JU.cjs.map} +1 -1
- package/dist/{chunk-GHJEE4NW.js → chunk-6AWYGPVV.js} +4 -4
- package/dist/{chunk-WRCHASO2.js → chunk-6LRMCCGU.js} +4 -4
- package/dist/{chunk-TG2IDU3W.js → chunk-6UMASQFJ.js} +4 -4
- package/dist/{chunk-O7BBEN7E.cjs → chunk-7ECWVWEP.cjs} +3 -3
- package/dist/{chunk-O7BBEN7E.cjs.map → chunk-7ECWVWEP.cjs.map} +1 -1
- package/dist/{chunk-IFZWOLDF.cjs → chunk-7M3PXCTB.cjs} +3 -3
- package/dist/{chunk-IFZWOLDF.cjs.map → chunk-7M3PXCTB.cjs.map} +1 -1
- package/dist/{chunk-PLT3EZZ5.js → chunk-7NXFVPPR.js} +4 -4
- package/dist/{chunk-EQINOHB6.cjs → chunk-A4JJG7ZS.cjs} +4 -4
- package/dist/{chunk-EQINOHB6.cjs.map → chunk-A4JJG7ZS.cjs.map} +1 -1
- package/dist/{chunk-CUOYBYI4.cjs → chunk-AOGJVMFE.cjs} +9 -9
- package/dist/{chunk-CUOYBYI4.cjs.map → chunk-AOGJVMFE.cjs.map} +1 -1
- package/dist/{chunk-REDX5DCT.cjs → chunk-BH7XP6DP.cjs} +4 -4
- package/dist/{chunk-REDX5DCT.cjs.map → chunk-BH7XP6DP.cjs.map} +1 -1
- package/dist/{chunk-GUI2LDJZ.cjs → chunk-BSVWC2OY.cjs} +4 -4
- package/dist/{chunk-GUI2LDJZ.cjs.map → chunk-BSVWC2OY.cjs.map} +1 -1
- package/dist/{chunk-7GAELGEB.cjs → chunk-BTXKJ4NE.cjs} +3 -3
- package/dist/{chunk-7GAELGEB.cjs.map → chunk-BTXKJ4NE.cjs.map} +1 -1
- package/dist/{chunk-V7U2CXYL.cjs → chunk-C5BPJIIC.cjs} +3 -3
- package/dist/{chunk-V7U2CXYL.cjs.map → chunk-C5BPJIIC.cjs.map} +1 -1
- package/dist/{chunk-NKCBDSI2.js → chunk-C7QGHL2M.js} +2 -2
- package/dist/{chunk-7F24FFIV.cjs → chunk-DI3WGH7W.cjs} +5 -5
- package/dist/{chunk-7F24FFIV.cjs.map → chunk-DI3WGH7W.cjs.map} +1 -1
- package/dist/{chunk-BQZ4XAYH.js → chunk-DUJ2QWTC.js} +4 -4
- package/dist/{chunk-VYP5GX57.cjs → chunk-DZTHIGMQ.cjs} +3 -3
- package/dist/{chunk-VYP5GX57.cjs.map → chunk-DZTHIGMQ.cjs.map} +1 -1
- package/dist/{chunk-BP6BOEVE.js → chunk-EBV35LZE.js} +4 -4
- package/dist/{chunk-GEVXV4RL.js → chunk-GGWMXMBP.js} +4 -4
- package/dist/{chunk-DU4YQEIM.cjs → chunk-H7V6VNFC.cjs} +3 -3
- package/dist/{chunk-DU4YQEIM.cjs.map → chunk-H7V6VNFC.cjs.map} +1 -1
- package/dist/{chunk-K27GNXBF.cjs → chunk-HQABMNYD.cjs} +4 -4
- package/dist/{chunk-K27GNXBF.cjs.map → chunk-HQABMNYD.cjs.map} +1 -1
- package/dist/{chunk-AHUL5WRD.js → chunk-IS7NNFV3.js} +6 -6
- package/dist/{chunk-XB6YHZAG.js → chunk-JBTM3SFO.js} +4 -4
- package/dist/{chunk-APD5WA65.js → chunk-JHWACBNX.js} +4 -4
- package/dist/{chunk-54KSDBGC.js → chunk-JXMXEBXP.js} +2 -2
- package/dist/{chunk-FPXFD5XT.js → chunk-KXBRKW25.js} +4 -4
- package/dist/{chunk-FF4QNJOQ.js → chunk-MFBGKD5J.js} +4 -4
- package/dist/{chunk-WHKNCDTX.js → chunk-N2OE2MUB.js} +7 -7
- package/dist/{chunk-QCITJAK6.cjs → chunk-NLAVXC45.cjs} +3 -3
- package/dist/{chunk-QCITJAK6.cjs.map → chunk-NLAVXC45.cjs.map} +1 -1
- package/dist/{chunk-5GDTEDDH.js → chunk-OUS6KAYF.js} +4 -4
- package/dist/{chunk-G6LUBXN2.js → chunk-OXMWQMYF.js} +2 -2
- package/dist/{chunk-BNCUXVZF.cjs → chunk-OYSETR4K.cjs} +3 -3
- package/dist/{chunk-BNCUXVZF.cjs.map → chunk-OYSETR4K.cjs.map} +1 -1
- package/dist/{chunk-ZNDJS2W7.js → chunk-P4AMGEAG.js} +4 -4
- package/dist/{chunk-6G2BJQZL.cjs → chunk-P66BFKWQ.cjs} +3 -3
- package/dist/{chunk-6G2BJQZL.cjs.map → chunk-P66BFKWQ.cjs.map} +1 -1
- package/dist/{chunk-BYSA3YCV.cjs → chunk-RRTB754T.cjs} +4 -4
- package/dist/{chunk-BYSA3YCV.cjs.map → chunk-RRTB754T.cjs.map} +1 -1
- package/dist/{chunk-GS7QTYLD.js → chunk-S3JTU4FH.js} +4 -4
- package/dist/{chunk-RH3CQOEI.cjs → chunk-S6FRVWCG.cjs} +3 -3
- package/dist/{chunk-RH3CQOEI.cjs.map → chunk-S6FRVWCG.cjs.map} +1 -1
- package/dist/{chunk-WRUVDZRI.js → chunk-S7KATX5T.js} +2 -2
- package/dist/{chunk-VJV3K53D.js → chunk-SHP4KSPL.js} +4 -4
- package/dist/{chunk-WGCK6KKL.js → chunk-SZRP2ODO.js} +4 -4
- package/dist/{chunk-TNIRKGXY.js → chunk-T6RGNFKN.js} +4 -4
- package/dist/{chunk-P2CSX4DZ.cjs → chunk-TBI3YP65.cjs} +4 -2
- package/dist/chunk-TBI3YP65.cjs.map +1 -0
- package/dist/{chunk-EZRPCQSP.js → chunk-TPZTJDCN.js} +4 -4
- package/dist/{chunk-J7XCG6SX.cjs → chunk-TQH7AMQ2.cjs} +4 -4
- package/dist/{chunk-J7XCG6SX.cjs.map → chunk-TQH7AMQ2.cjs.map} +1 -1
- package/dist/{chunk-FV6E33FY.cjs → chunk-TQUB2TCL.cjs} +4 -4
- package/dist/{chunk-FV6E33FY.cjs.map → chunk-TQUB2TCL.cjs.map} +1 -1
- package/dist/{chunk-YVB5RTKR.js → chunk-TZ6IKB3E.js} +4 -2
- package/dist/chunk-TZ6IKB3E.js.map +1 -0
- package/dist/{chunk-T3NVC7UU.cjs → chunk-U3W2GAHM.cjs} +4 -4
- package/dist/{chunk-T3NVC7UU.cjs.map → chunk-U3W2GAHM.cjs.map} +1 -1
- package/dist/{chunk-G6ZOJVIG.cjs → chunk-U6YLGSAQ.cjs} +6 -6
- package/dist/{chunk-G6ZOJVIG.cjs.map → chunk-U6YLGSAQ.cjs.map} +1 -1
- package/dist/{chunk-K7GLIST7.cjs → chunk-UG2SQ4Q3.cjs} +10 -10
- package/dist/{chunk-K7GLIST7.cjs.map → chunk-UG2SQ4Q3.cjs.map} +1 -1
- package/dist/{chunk-IM6TYL3P.cjs → chunk-UVBZHPKP.cjs} +3 -3
- package/dist/{chunk-IM6TYL3P.cjs.map → chunk-UVBZHPKP.cjs.map} +1 -1
- package/dist/{chunk-U7SCEB34.js → chunk-VAGYICPO.js} +2 -2
- package/dist/{chunk-DVKPFWP2.cjs → chunk-W46J3DNV.cjs} +4 -4
- package/dist/{chunk-DVKPFWP2.cjs.map → chunk-W46J3DNV.cjs.map} +1 -1
- package/dist/{chunk-BJIB6S5L.js → chunk-WU3IBHA4.js} +4 -4
- package/dist/{chunk-FUFFG2UW.cjs → chunk-X5GBT5VI.cjs} +4 -4
- package/dist/{chunk-FUFFG2UW.cjs.map → chunk-X5GBT5VI.cjs.map} +1 -1
- package/dist/{chunk-55RHNN3T.js → chunk-Y4JUMIH4.js} +4 -4
- package/dist/{chunk-ODNO43HV.cjs → chunk-YPC7FRJX.cjs} +4 -4
- package/dist/{chunk-ODNO43HV.cjs.map → chunk-YPC7FRJX.cjs.map} +1 -1
- package/dist/{chunk-TYZIRV75.cjs → chunk-ZCRO2PBB.cjs} +4 -4
- package/dist/{chunk-TYZIRV75.cjs.map → chunk-ZCRO2PBB.cjs.map} +1 -1
- package/dist/components/Charts/Charts.cjs +3 -3
- package/dist/components/Charts/Charts.js +2 -2
- package/dist/components/Charts/index.cjs +3 -3
- package/dist/components/Charts/index.js +2 -2
- package/dist/components/Checkbox/Checkbox.cjs +3 -3
- package/dist/components/Checkbox/Checkbox.js +2 -2
- package/dist/components/Checkbox/index.cjs +3 -3
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/CodeSnippet/CodeSnippet.cjs +5 -5
- package/dist/components/CodeSnippet/CodeSnippet.js +4 -4
- package/dist/components/CodeSnippet/index.cjs +5 -5
- package/dist/components/CodeSnippet/index.js +4 -4
- package/dist/components/Command/Command.cjs +3 -3
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/index.cjs +3 -3
- package/dist/components/Command/index.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/index.cjs +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.cjs +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/index.cjs +1 -1
- package/dist/components/DateRangePicker/index.js +1 -1
- package/dist/components/Drawer/Drawer.cjs +3 -3
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/Drawer/index.cjs +3 -3
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/Dropdown/Dropdown.cjs +3 -3
- package/dist/components/Dropdown/Dropdown.js +2 -2
- package/dist/components/Dropdown/index.cjs +3 -3
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/DropdownMenu/DropdownMenu.cjs +3 -3
- package/dist/components/DropdownMenu/DropdownMenu.js +2 -2
- package/dist/components/DropdownMenu/index.cjs +3 -3
- package/dist/components/DropdownMenu/index.js +2 -2
- package/dist/components/FileUpload/FileUpload.cjs +3 -3
- package/dist/components/FileUpload/FileUpload.js +2 -2
- package/dist/components/FileUpload/index.cjs +3 -3
- package/dist/components/FileUpload/index.js +2 -2
- package/dist/components/Filtration/Filtration.cjs +8 -8
- package/dist/components/Filtration/Filtration.js +7 -7
- package/dist/components/Filtration/index.cjs +8 -8
- package/dist/components/Filtration/index.js +7 -7
- package/dist/components/InputOTP/InputOTP.cjs +3 -3
- package/dist/components/InputOTP/InputOTP.js +2 -2
- package/dist/components/InputOTP/index.cjs +3 -3
- package/dist/components/InputOTP/index.js +2 -2
- package/dist/components/Menubar/Menubar.cjs +3 -3
- package/dist/components/Menubar/Menubar.js +2 -2
- package/dist/components/Menubar/index.cjs +3 -3
- package/dist/components/Menubar/index.js +2 -2
- package/dist/components/Metric/index.cjs +2 -2
- package/dist/components/Metric/index.cjs.map +1 -1
- package/dist/components/Metric/index.js +4 -4
- package/dist/components/Modal/Modal.cjs +3 -3
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/index.cjs +3 -3
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/NumberInput/NumberInput.cjs +3 -3
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/NumberInput/index.cjs +3 -3
- package/dist/components/NumberInput/index.js +2 -2
- package/dist/components/Pagination/Pagination.cjs +3 -3
- package/dist/components/Pagination/Pagination.js +2 -2
- package/dist/components/Pagination/index.cjs +3 -3
- package/dist/components/Pagination/index.js +2 -2
- package/dist/components/Popover/Popover.cjs +3 -3
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/index.cjs +3 -3
- package/dist/components/Popover/index.js +2 -2
- package/dist/components/Radio/Radio.cjs +3 -3
- package/dist/components/Radio/Radio.js +2 -2
- package/dist/components/Radio/index.cjs +3 -3
- package/dist/components/Radio/index.js +2 -2
- package/dist/components/Rating/Rating.cjs +3 -3
- package/dist/components/Rating/Rating.js +2 -2
- package/dist/components/Rating/index.cjs +3 -3
- package/dist/components/Rating/index.js +2 -2
- package/dist/components/SaudiRiyal/SaudiRiyal.cjs +3 -3
- package/dist/components/SaudiRiyal/SaudiRiyal.js +2 -2
- package/dist/components/SaudiRiyal/index.cjs +3 -3
- package/dist/components/SaudiRiyal/index.js +2 -2
- package/dist/components/SearchBox/SearchBox.cjs +4 -4
- package/dist/components/SearchBox/SearchBox.js +3 -3
- package/dist/components/SearchBox/index.cjs +4 -4
- package/dist/components/SearchBox/index.js +3 -3
- package/dist/components/Select/Select.cjs +3 -3
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/index.cjs +3 -3
- package/dist/components/Select/index.js +2 -2
- package/dist/components/Sidebar/Sidebar.cjs +4 -4
- package/dist/components/Sidebar/Sidebar.js +3 -3
- package/dist/components/Sidebar/SidebarMenu.cjs +5 -5
- package/dist/components/Sidebar/SidebarMenu.js +4 -4
- package/dist/components/Sidebar/index.cjs +7 -7
- package/dist/components/Sidebar/index.cjs.map +1 -1
- package/dist/components/Sidebar/index.js +6 -6
- package/dist/components/SlideoutMenu/SlideoutMenu.cjs +3 -3
- package/dist/components/SlideoutMenu/SlideoutMenu.js +2 -2
- package/dist/components/SlideoutMenu/index.cjs +3 -3
- package/dist/components/SlideoutMenu/index.js +2 -2
- package/dist/components/Slider/Slider.cjs +3 -3
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/index.cjs +3 -3
- package/dist/components/Slider/index.js +2 -2
- package/dist/components/StructuredList/StructuredList.cjs +4 -4
- package/dist/components/StructuredList/StructuredList.js +3 -3
- package/dist/components/StructuredList/index.cjs +4 -4
- package/dist/components/StructuredList/index.js +3 -3
- package/dist/components/Switch/Switch.cjs +3 -3
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/Switch/index.cjs +3 -3
- package/dist/components/Switch/index.js +2 -2
- package/dist/components/Tabs/Tabs.cjs +4 -4
- package/dist/components/Tabs/Tabs.js +3 -3
- package/dist/components/Tabs/index.cjs +4 -4
- package/dist/components/Tabs/index.js +3 -3
- package/dist/components/TagInput/TagInput.cjs +3 -3
- package/dist/components/TagInput/TagInput.js +2 -2
- package/dist/components/TagInput/index.cjs +3 -3
- package/dist/components/TagInput/index.js +2 -2
- package/dist/components/TextInput/TextInput.cjs +3 -3
- package/dist/components/TextInput/TextInput.js +2 -2
- package/dist/components/TextInput/index.cjs +3 -3
- package/dist/components/TextInput/index.js +2 -2
- package/dist/components/Textarea/Textarea.cjs +3 -3
- package/dist/components/Textarea/Textarea.js +2 -2
- package/dist/components/Textarea/index.cjs +3 -3
- package/dist/components/Textarea/index.js +2 -2
- package/dist/components/Tooltip/Tooltip.cjs +3 -3
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/index.cjs +3 -3
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/date-picker.cjs +25 -0
- package/dist/date-picker.cjs.map +1 -0
- package/dist/date-picker.d.cts +147 -0
- package/dist/date-picker.d.ts +147 -0
- package/dist/date-picker.js +25 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/index.cjs +89 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -142
- package/dist/index.d.ts +2 -142
- package/dist/index.js +113 -113
- package/dist/providers/DgaProvider.cjs +2 -2
- package/dist/providers/DgaProvider.js +1 -1
- package/package.json +13 -3
- package/dist/chunk-P2CSX4DZ.cjs.map +0 -1
- package/dist/chunk-YVB5RTKR.js.map +0 -1
- /package/dist/{chunk-TPD2GNR6.js.map → chunk-3BDWXIO2.js.map} +0 -0
- /package/dist/{chunk-KDV7V5S4.js.map → chunk-3GW6NMDL.js.map} +0 -0
- /package/dist/{chunk-4HBVLISS.js.map → chunk-4G42XPSB.js.map} +0 -0
- /package/dist/{chunk-7EEKESAA.js.map → chunk-4IUOTHJC.js.map} +0 -0
- /package/dist/{chunk-GHJEE4NW.js.map → chunk-6AWYGPVV.js.map} +0 -0
- /package/dist/{chunk-WRCHASO2.js.map → chunk-6LRMCCGU.js.map} +0 -0
- /package/dist/{chunk-TG2IDU3W.js.map → chunk-6UMASQFJ.js.map} +0 -0
- /package/dist/{chunk-PLT3EZZ5.js.map → chunk-7NXFVPPR.js.map} +0 -0
- /package/dist/{chunk-NKCBDSI2.js.map → chunk-C7QGHL2M.js.map} +0 -0
- /package/dist/{chunk-BQZ4XAYH.js.map → chunk-DUJ2QWTC.js.map} +0 -0
- /package/dist/{chunk-BP6BOEVE.js.map → chunk-EBV35LZE.js.map} +0 -0
- /package/dist/{chunk-GEVXV4RL.js.map → chunk-GGWMXMBP.js.map} +0 -0
- /package/dist/{chunk-AHUL5WRD.js.map → chunk-IS7NNFV3.js.map} +0 -0
- /package/dist/{chunk-XB6YHZAG.js.map → chunk-JBTM3SFO.js.map} +0 -0
- /package/dist/{chunk-APD5WA65.js.map → chunk-JHWACBNX.js.map} +0 -0
- /package/dist/{chunk-54KSDBGC.js.map → chunk-JXMXEBXP.js.map} +0 -0
- /package/dist/{chunk-FPXFD5XT.js.map → chunk-KXBRKW25.js.map} +0 -0
- /package/dist/{chunk-FF4QNJOQ.js.map → chunk-MFBGKD5J.js.map} +0 -0
- /package/dist/{chunk-WHKNCDTX.js.map → chunk-N2OE2MUB.js.map} +0 -0
- /package/dist/{chunk-5GDTEDDH.js.map → chunk-OUS6KAYF.js.map} +0 -0
- /package/dist/{chunk-G6LUBXN2.js.map → chunk-OXMWQMYF.js.map} +0 -0
- /package/dist/{chunk-ZNDJS2W7.js.map → chunk-P4AMGEAG.js.map} +0 -0
- /package/dist/{chunk-GS7QTYLD.js.map → chunk-S3JTU4FH.js.map} +0 -0
- /package/dist/{chunk-WRUVDZRI.js.map → chunk-S7KATX5T.js.map} +0 -0
- /package/dist/{chunk-VJV3K53D.js.map → chunk-SHP4KSPL.js.map} +0 -0
- /package/dist/{chunk-WGCK6KKL.js.map → chunk-SZRP2ODO.js.map} +0 -0
- /package/dist/{chunk-TNIRKGXY.js.map → chunk-T6RGNFKN.js.map} +0 -0
- /package/dist/{chunk-EZRPCQSP.js.map → chunk-TPZTJDCN.js.map} +0 -0
- /package/dist/{chunk-U7SCEB34.js.map → chunk-VAGYICPO.js.map} +0 -0
- /package/dist/{chunk-BJIB6S5L.js.map → chunk-WU3IBHA4.js.map} +0 -0
- /package/dist/{chunk-55RHNN3T.js.map → chunk-Y4JUMIH4.js.map} +0 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
type CalendarSystem = 'gregorian' | 'hijri';
|
|
7
|
+
interface CalendarLabels {
|
|
8
|
+
gregorian: string;
|
|
9
|
+
hijri: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const datePickerTriggerVariants: (props?: ({
|
|
13
|
+
size?: "md" | "lg" | null | undefined;
|
|
14
|
+
variant?: "default" | "filled-lighter" | "filled-darker" | null | undefined;
|
|
15
|
+
error?: boolean | null | undefined;
|
|
16
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
+
declare const datePickerVariants: (props?: ({
|
|
18
|
+
size?: "md" | "lg" | null | undefined;
|
|
19
|
+
variant?: "default" | "filled-lighter" | "filled-darker" | null | undefined;
|
|
20
|
+
error?: boolean | null | undefined;
|
|
21
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
22
|
+
interface DatePickerProps extends VariantProps<typeof datePickerTriggerVariants> {
|
|
23
|
+
/** Currently selected date (controlled). Local Y/M/D. */
|
|
24
|
+
value?: Date | null;
|
|
25
|
+
/** Initial value when uncontrolled. */
|
|
26
|
+
defaultValue?: Date | null;
|
|
27
|
+
/** Fires whenever the user picks a day. `null` when cleared. */
|
|
28
|
+
onChange?: (value: Date | null) => void;
|
|
29
|
+
/** Earliest pickable date (inclusive). */
|
|
30
|
+
minValue?: Date;
|
|
31
|
+
/** Latest pickable date (inclusive). */
|
|
32
|
+
maxValue?: Date;
|
|
33
|
+
/** Visible label above the trigger. */
|
|
34
|
+
label?: ReactNode;
|
|
35
|
+
/** Hint shown below the trigger. Hidden while an error message is showing. */
|
|
36
|
+
helperText?: ReactNode;
|
|
37
|
+
/** Message shown below the trigger when `error` is true. */
|
|
38
|
+
errorMessage?: ReactNode;
|
|
39
|
+
/** Marks the field invalid — sets `aria-invalid` and error styling. */
|
|
40
|
+
error?: boolean;
|
|
41
|
+
/** Marks the field required — adds the asterisk + `aria-required`. */
|
|
42
|
+
required?: boolean;
|
|
43
|
+
/** Disables the trigger entirely. */
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/** Read-only: value is shown but not editable (segments + calendar locked). */
|
|
46
|
+
readOnly?: boolean;
|
|
47
|
+
/** Caller-supplied id for the field. */
|
|
48
|
+
id?: string;
|
|
49
|
+
/** Forwarded to the Group (the trigger row), matching Input/Select. */
|
|
50
|
+
className?: string;
|
|
51
|
+
'aria-label'?: string;
|
|
52
|
+
'aria-labelledby'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Calendar system (controlled). Omit to let the user toggle freely with
|
|
55
|
+
* the in-popover switch.
|
|
56
|
+
*/
|
|
57
|
+
calendar?: CalendarSystem;
|
|
58
|
+
/** Initial calendar system when uncontrolled. Defaults to `'gregorian'`. */
|
|
59
|
+
defaultCalendar?: CalendarSystem;
|
|
60
|
+
/** Fires whenever the calendar system toggles. */
|
|
61
|
+
onCalendarChange?: (calendar: CalendarSystem) => void;
|
|
62
|
+
/**
|
|
63
|
+
* Show the Gregorian↔Hijri toggle inside the popover. Defaults to `true`,
|
|
64
|
+
* but is forced off when `calendar` is controlled — a toggle that ignores
|
|
65
|
+
* its click is a worse footgun than no toggle.
|
|
66
|
+
*/
|
|
67
|
+
showCalendarToggle?: boolean;
|
|
68
|
+
/** Override the toggle labels. Defaults are locale-aware (English / Arabic). */
|
|
69
|
+
calendarLabels?: CalendarLabels;
|
|
70
|
+
/**
|
|
71
|
+
* When `true`, each day cell also shows the *other* calendar's day number
|
|
72
|
+
* as small secondary text (e.g., Hijri active → Gregorian day shown small
|
|
73
|
+
* underneath). Helps users cross-reference dates between calendar systems
|
|
74
|
+
* without round-tripping the toggle. Defaults to `false`.
|
|
75
|
+
*/
|
|
76
|
+
showSecondaryCalendar?: boolean;
|
|
77
|
+
}
|
|
78
|
+
declare function DatePicker({ value: controlledValue, defaultValue, onChange, minValue, maxValue, label, helperText, errorMessage, error, required, disabled, readOnly, size, variant, id, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, calendar: controlledCalendar, defaultCalendar, onCalendarChange, showCalendarToggle, calendarLabels, showSecondaryCalendar, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
79
|
+
|
|
80
|
+
declare const dateRangePickerTriggerVariants: (props?: ({
|
|
81
|
+
size?: "md" | "lg" | null | undefined;
|
|
82
|
+
variant?: "default" | "filled-lighter" | "filled-darker" | null | undefined;
|
|
83
|
+
error?: boolean | null | undefined;
|
|
84
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
85
|
+
declare const dateRangePickerVariants: (props?: ({
|
|
86
|
+
size?: "md" | "lg" | null | undefined;
|
|
87
|
+
variant?: "default" | "filled-lighter" | "filled-darker" | null | undefined;
|
|
88
|
+
error?: boolean | null | undefined;
|
|
89
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
90
|
+
/** A complete, inclusive date range. Both ends are local Y/M/D. */
|
|
91
|
+
interface DateRange {
|
|
92
|
+
start: Date;
|
|
93
|
+
end: Date;
|
|
94
|
+
}
|
|
95
|
+
interface DateRangePickerProps extends VariantProps<typeof dateRangePickerTriggerVariants> {
|
|
96
|
+
/** Currently selected range (controlled). `null` clears it. */
|
|
97
|
+
value?: DateRange | null;
|
|
98
|
+
/** Initial range when uncontrolled. */
|
|
99
|
+
defaultValue?: DateRange | null;
|
|
100
|
+
/** Fires when a complete range is picked, or `null` when cleared. */
|
|
101
|
+
onChange?: (value: DateRange | null) => void;
|
|
102
|
+
/** Earliest pickable date (inclusive). */
|
|
103
|
+
minValue?: Date;
|
|
104
|
+
/** Latest pickable date (inclusive). */
|
|
105
|
+
maxValue?: Date;
|
|
106
|
+
/** Visible label above the trigger. */
|
|
107
|
+
label?: ReactNode;
|
|
108
|
+
/** Hint shown below the trigger. Hidden while an error message is showing. */
|
|
109
|
+
helperText?: ReactNode;
|
|
110
|
+
/** Message shown below the trigger when `error` is true. */
|
|
111
|
+
errorMessage?: ReactNode;
|
|
112
|
+
/** Marks the field invalid — sets `aria-invalid` and error styling. */
|
|
113
|
+
error?: boolean;
|
|
114
|
+
/** Marks the field required — adds the asterisk + `aria-required`. */
|
|
115
|
+
required?: boolean;
|
|
116
|
+
/** Disables the trigger entirely. */
|
|
117
|
+
disabled?: boolean;
|
|
118
|
+
/** Read-only: value is shown but not editable (segments + calendar locked). */
|
|
119
|
+
readOnly?: boolean;
|
|
120
|
+
/** Caller-supplied id for the field. */
|
|
121
|
+
id?: string;
|
|
122
|
+
/** Forwarded to the Group (the trigger row), matching Input/Select. */
|
|
123
|
+
className?: string;
|
|
124
|
+
'aria-label'?: string;
|
|
125
|
+
'aria-labelledby'?: string;
|
|
126
|
+
/** Calendar system (controlled). Omit to let the user toggle freely. */
|
|
127
|
+
calendar?: CalendarSystem;
|
|
128
|
+
/** Initial calendar system when uncontrolled. Defaults to `'gregorian'`. */
|
|
129
|
+
defaultCalendar?: CalendarSystem;
|
|
130
|
+
/** Fires whenever the calendar system toggles. */
|
|
131
|
+
onCalendarChange?: (calendar: CalendarSystem) => void;
|
|
132
|
+
/**
|
|
133
|
+
* Show the Gregorian↔Hijri toggle inside the popover. Defaults to `true`, but
|
|
134
|
+
* is forced off when `calendar` is controlled.
|
|
135
|
+
*/
|
|
136
|
+
showCalendarToggle?: boolean;
|
|
137
|
+
/** Override the toggle labels. Defaults are locale-aware (English / Arabic). */
|
|
138
|
+
calendarLabels?: CalendarLabels;
|
|
139
|
+
/**
|
|
140
|
+
* When `true`, each day cell also shows the *other* calendar's day number as
|
|
141
|
+
* small secondary text. Helps cross-reference Hijri↔Gregorian. Default `false`.
|
|
142
|
+
*/
|
|
143
|
+
showSecondaryCalendar?: boolean;
|
|
144
|
+
}
|
|
145
|
+
declare function DateRangePicker({ value: controlledValue, defaultValue, onChange, minValue, maxValue, label, helperText, errorMessage, error, required, disabled, readOnly, size, variant, id, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, calendar: controlledCalendar, defaultCalendar, onCalendarChange, showCalendarToggle, calendarLabels, showSecondaryCalendar, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
146
|
+
|
|
147
|
+
export { type CalendarLabels, type CalendarSystem, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, datePickerVariants, dateRangePickerTriggerVariants, dateRangePickerVariants };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunk-7WDQQSRQ.js";
|
|
3
|
+
import "./chunk-4SDRJW3D.js";
|
|
4
|
+
import {
|
|
5
|
+
DatePicker,
|
|
6
|
+
datePickerVariants
|
|
7
|
+
} from "./chunk-BC2DJQ3Y.js";
|
|
8
|
+
import {
|
|
9
|
+
DateRangePicker,
|
|
10
|
+
dateRangePickerTriggerVariants,
|
|
11
|
+
dateRangePickerVariants
|
|
12
|
+
} from "./chunk-XIJKAUCN.js";
|
|
13
|
+
import "./chunk-SDFMITFO.js";
|
|
14
|
+
import "./chunk-AR7K3D3Z.js";
|
|
15
|
+
import "./chunk-FFGALWM2.js";
|
|
16
|
+
import "./chunk-7NTT2UXP.js";
|
|
17
|
+
import "./chunk-TMXABSFE.js";
|
|
18
|
+
export {
|
|
19
|
+
DatePicker,
|
|
20
|
+
DateRangePicker,
|
|
21
|
+
datePickerVariants,
|
|
22
|
+
dateRangePickerTriggerVariants,
|
|
23
|
+
dateRangePickerVariants
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=date-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|