@soyfri/shared-library 2.0.0-beta.2 → 2.0.0-beta.20
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/.dockerignore +8 -0
- package/.github/workflows/publish.yml +107 -0
- package/.prettierrc +3 -0
- package/.storybook/main.ts +19 -0
- package/.storybook/preview.ts +14 -0
- package/.storybook/vitest.setup.ts +9 -0
- package/Dockerfile +37 -0
- package/build.js +117 -0
- package/chromatic.config.json +5 -0
- package/cleanDirectories.js +40 -0
- package/dist/Autocomplete-C_lW1VER.js +337 -0
- package/dist/Autocomplete-C_lW1VER.js.map +1 -0
- package/dist/Autocomplete-CejWztBY.cjs +336 -0
- package/dist/Autocomplete-CejWztBY.cjs.map +1 -0
- package/dist/Avatar-CgT7955R.js +162 -0
- package/dist/Avatar-CgT7955R.js.map +1 -0
- package/dist/Avatar-CuSrK8Wn.cjs +161 -0
- package/dist/Avatar-CuSrK8Wn.cjs.map +1 -0
- package/dist/Button-C17mExpd.cjs.map +1 -1
- package/dist/Button-UkkP-bNw.js.map +1 -1
- package/dist/Card-B1wtavyl.js +98 -0
- package/dist/Card-B1wtavyl.js.map +1 -0
- package/dist/Card-DfdU610V.cjs +97 -0
- package/dist/Card-DfdU610V.cjs.map +1 -0
- package/dist/Checkbox-BCqMFWt4.cjs +187 -0
- package/dist/Checkbox-BCqMFWt4.cjs.map +1 -0
- package/dist/Checkbox-gB5YKkVo.js +188 -0
- package/dist/Checkbox-gB5YKkVo.js.map +1 -0
- package/dist/{components/DateRangePicker/DateRangePicker.js → Chip-OPYQ1uQ_.js} +33 -35
- package/dist/Chip-OPYQ1uQ_.js.map +1 -0
- package/dist/{components/DateRangePicker/DateRangePicker.cjs → Chip-qoJLDiva.cjs} +33 -36
- package/dist/Chip-qoJLDiva.cjs.map +1 -0
- package/dist/DatePicker-_IGWc3I5.js +178 -0
- package/dist/DatePicker-_IGWc3I5.js.map +1 -0
- package/dist/DatePicker-t7uDTZMl.cjs +177 -0
- package/dist/DatePicker-t7uDTZMl.cjs.map +1 -0
- package/dist/DateTimePicker-BxQyjTCY.cjs +229 -0
- package/dist/DateTimePicker-BxQyjTCY.cjs.map +1 -0
- package/dist/DateTimePicker-CrmWav_j.js +230 -0
- package/dist/DateTimePicker-CrmWav_j.js.map +1 -0
- package/dist/Input-CScC87J5.cjs +185 -0
- package/dist/Input-CScC87J5.cjs.map +1 -0
- package/dist/Input-DP_fKl38.js +186 -0
- package/dist/Input-DP_fKl38.js.map +1 -0
- package/dist/Modal-BN5s-Tfk.cjs +347 -0
- package/dist/Modal-BN5s-Tfk.cjs.map +1 -0
- package/dist/Modal-BRZMPwDj.js +348 -0
- package/dist/Modal-BRZMPwDj.js.map +1 -0
- package/dist/README.md +243 -0
- package/dist/RadioGroup-Dd0rHXSX.cjs +202 -0
- package/dist/RadioGroup-Dd0rHXSX.cjs.map +1 -0
- package/dist/RadioGroup-bO-ahP9T.js +203 -0
- package/dist/RadioGroup-bO-ahP9T.js.map +1 -0
- package/dist/Select-D5OrjVj3.js +253 -0
- package/dist/Select-D5OrjVj3.js.map +1 -0
- package/dist/Select-Dyvc4bVo.cjs +252 -0
- package/dist/Select-Dyvc4bVo.cjs.map +1 -0
- package/dist/Stat-BUcFCGrz.cjs +83 -0
- package/dist/Stat-BUcFCGrz.cjs.map +1 -0
- package/dist/Stat-C06A_izS.js +84 -0
- package/dist/Stat-C06A_izS.js.map +1 -0
- package/dist/StatusMessage-B3nXpuRl.cjs +88 -0
- package/dist/StatusMessage-B3nXpuRl.cjs.map +1 -0
- package/dist/StatusMessage-D0WgSBx7.js +89 -0
- package/dist/StatusMessage-D0WgSBx7.js.map +1 -0
- package/dist/Step-BArsou1V.js +301 -0
- package/dist/Step-BArsou1V.js.map +1 -0
- package/dist/Step-Nd7SJbRZ.cjs +300 -0
- package/dist/Step-Nd7SJbRZ.cjs.map +1 -0
- package/dist/Switch-CQFOopYy.cjs +182 -0
- package/dist/Switch-CQFOopYy.cjs.map +1 -0
- package/dist/Switch-D72dpkH2.js +183 -0
- package/dist/Switch-D72dpkH2.js.map +1 -0
- package/dist/Tab-BbP8jBcK.cjs +110 -0
- package/dist/Tab-BbP8jBcK.cjs.map +1 -0
- package/dist/Tab-BxSxKJsP.js +111 -0
- package/dist/Tab-BxSxKJsP.js.map +1 -0
- package/dist/Table-C2LbW0B1.js +531 -0
- package/dist/Table-C2LbW0B1.js.map +1 -0
- package/dist/Table-C4OM6rrC.cjs +530 -0
- package/dist/Table-C4OM6rrC.cjs.map +1 -0
- package/dist/components/ActionMenu/ActionMenu.cjs +52 -52
- package/dist/components/ActionMenu/ActionMenu.cjs.map +1 -1
- package/dist/components/ActionMenu/ActionMenu.d.ts +20 -36
- package/dist/components/ActionMenu/ActionMenu.js +55 -55
- package/dist/components/ActionMenu/ActionMenu.js.map +1 -1
- package/dist/components/ActionMenu/index.d.ts +2 -2
- package/dist/components/AppBar/AppBar.cjs +3 -220
- package/dist/components/AppBar/AppBar.cjs.map +1 -1
- package/dist/components/AppBar/AppBar.d.ts +6 -6
- package/dist/components/AppBar/AppBar.js +6 -223
- package/dist/components/AppBar/AppBar.js.map +1 -1
- package/dist/components/AppBar/index.d.ts +0 -6
- package/dist/components/Autocomplete/Autocomplete.cjs +4 -311
- package/dist/components/Autocomplete/Autocomplete.cjs.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +8 -6
- package/dist/components/Autocomplete/Autocomplete.helpers.d.ts +8 -4
- package/dist/components/Autocomplete/Autocomplete.js +4 -311
- package/dist/components/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/components/Autocomplete/_parts/AutocompleteOption.d.ts +5 -8
- package/dist/components/Autocomplete/index.d.ts +1 -1
- package/dist/components/Avatar/Avatar.cjs +2 -160
- package/dist/components/Avatar/Avatar.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.js +2 -160
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +5 -5
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Card/Card.cjs +4 -184
- package/dist/components/Card/Card.cjs.map +1 -1
- package/dist/components/Card/Card.d.ts +3 -50
- package/dist/components/Card/Card.js +4 -184
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/Card.sx.d.ts +3 -6
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +6 -0
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +55 -0
- package/dist/components/Checkbox/Checkbox.js +6 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.sx.d.ts +13 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox.d.ts +6 -0
- package/dist/components/Chip/Chip.cjs +4 -72
- package/dist/components/Chip/Chip.cjs.map +1 -1
- package/dist/components/Chip/Chip.js +3 -71
- package/dist/components/Chip/Chip.js.map +1 -1
- package/dist/components/Chip/index.d.ts +2 -1
- package/dist/components/Chip.d.ts +4 -0
- package/dist/components/Column/Column.cjs +1 -1
- package/dist/components/Column/Column.cjs.map +1 -1
- package/dist/components/Column/Column.d.ts +1 -1
- package/dist/components/Column/Column.js +1 -1
- package/dist/components/Column/Column.js.map +1 -1
- package/dist/components/Column/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.cjs +3 -200
- package/dist/components/DatePicker/DatePicker.cjs.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +1 -13
- package/dist/components/DatePicker/DatePicker.js +3 -200
- package/dist/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.cjs +3 -219
- package/dist/components/DateTimePicker/DateTimePicker.cjs.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.d.ts +10 -6
- package/dist/components/DateTimePicker/DateTimePicker.definitions.d.ts +2 -0
- package/dist/components/DateTimePicker/DateTimePicker.helpers.d.ts +4 -2
- package/dist/components/DateTimePicker/DateTimePicker.js +3 -219
- package/dist/components/DateTimePicker/DateTimePicker.js.map +1 -1
- package/dist/components/DateTimePicker/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.cjs +25 -24
- package/dist/components/Drawer/Drawer.cjs.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +8 -1
- package/dist/components/Drawer/Drawer.js +26 -25
- package/dist/components/Drawer/Drawer.js.map +1 -1
- package/dist/components/Drawer/DrawerItem.d.ts +6 -1
- package/dist/components/Gallery/Gallery.cjs +154 -79
- package/dist/components/Gallery/Gallery.cjs.map +1 -1
- package/dist/components/Gallery/Gallery.d.ts +25 -9
- package/dist/components/Gallery/Gallery.js +154 -79
- package/dist/components/Gallery/Gallery.js.map +1 -1
- package/dist/components/Gallery/GalleryLightbox.d.ts +6 -10
- package/dist/components/Gallery/GalleryMain.d.ts +3 -7
- package/dist/components/Gallery/GalleryThumbnails.d.ts +7 -11
- package/dist/components/Gallery/index.d.ts +2 -1
- package/dist/components/Gallery.d.ts +4 -0
- package/dist/components/Icon/Icon.cjs +6 -8
- package/dist/components/Icon/Icon.cjs.map +1 -1
- package/dist/components/Icon/Icon.d.ts +11 -17
- package/dist/components/Icon/Icon.js +7 -9
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/Icon/index.d.ts +2 -1
- package/dist/components/Icon.d.ts +4 -0
- package/dist/components/Input/Input.cjs +3 -172
- package/dist/components/Input/Input.cjs.map +1 -1
- package/dist/components/Input/Input.d.ts +9 -2
- package/dist/components/Input/Input.definitions.d.ts +1 -0
- package/dist/components/Input/Input.helpers.d.ts +3 -3
- package/dist/components/Input/Input.js +3 -172
- package/dist/components/Input/Input.js.map +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/InputGroup/InputGroup.cjs +23 -22
- package/dist/components/InputGroup/InputGroup.cjs.map +1 -1
- package/dist/components/InputGroup/InputGroup.d.ts +4 -4
- package/dist/components/InputGroup/InputGroup.js +22 -21
- package/dist/components/InputGroup/InputGroup.js.map +1 -1
- package/dist/components/InputGroup/index.d.ts +2 -1
- package/dist/components/InputGroup.d.ts +4 -0
- package/dist/components/Modal/Modal.cjs +7 -317
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.d.ts +20 -5
- package/dist/components/Modal/Modal.js +6 -316
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/ModalBody.d.ts +6 -1
- package/dist/components/Modal/ModalFooter.d.ts +4 -4
- package/dist/components/Modal/ModalHeader.d.ts +6 -1
- package/dist/components/Modal/index.d.ts +4 -1
- package/dist/components/Modal.d.ts +4 -0
- package/dist/components/RadioGroup/RadioGroup.cjs +6 -0
- package/dist/components/RadioGroup/RadioGroup.cjs.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +59 -0
- package/dist/components/RadioGroup/RadioGroup.definitions.d.ts +6 -0
- package/dist/components/RadioGroup/RadioGroup.js +6 -0
- package/dist/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.sx.d.ts +20 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RadioGroup.d.ts +6 -0
- package/dist/components/Select/Select.cjs +4 -445
- package/dist/components/Select/Select.cjs.map +1 -1
- package/dist/components/Select/Select.d.ts +13 -18
- package/dist/components/Select/Select.helpers.d.ts +5 -19
- package/dist/components/Select/Select.js +4 -445
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Stat/Stat.cjs +4 -83
- package/dist/components/Stat/Stat.cjs.map +1 -1
- package/dist/components/Stat/Stat.js +3 -82
- package/dist/components/Stat/Stat.js.map +1 -1
- package/dist/components/Stat/index.d.ts +2 -1
- package/dist/components/Stat.d.ts +4 -0
- package/dist/components/StatusMessage/StatusMessage.cjs +4 -77
- package/dist/components/StatusMessage/StatusMessage.cjs.map +1 -1
- package/dist/components/StatusMessage/StatusMessage.d.ts +20 -36
- package/dist/components/StatusMessage/StatusMessage.js +3 -76
- package/dist/components/StatusMessage/StatusMessage.js.map +1 -1
- package/dist/components/StatusMessage/index.d.ts +2 -1
- package/dist/components/StatusMessage.d.ts +4 -0
- package/dist/components/Stepper/Stepper.cjs +8 -47
- package/dist/components/Stepper/Stepper.cjs.map +1 -1
- package/dist/components/Stepper/Stepper.d.ts +9 -8
- package/dist/components/Stepper/Stepper.js +7 -46
- package/dist/components/Stepper/Stepper.js.map +1 -1
- package/dist/{hooks/Wizard/WizardContext.d.ts → components/Stepper/StepperContext.d.ts} +29 -23
- package/dist/components/Stepper/_hooks/useHorizontalScroll.d.ts +19 -0
- package/dist/components/Stepper/_parts/StepperScrollArrow.d.ts +19 -0
- package/dist/components/Stepper/index.d.ts +6 -2
- package/dist/components/Stepper.d.ts +4 -0
- package/dist/components/Switch/Switch.cjs +6 -0
- package/dist/components/Switch/Switch.cjs.map +1 -0
- package/dist/components/Switch/Switch.d.ts +48 -0
- package/dist/components/Switch/Switch.definitions.d.ts +7 -0
- package/dist/components/Switch/Switch.js +6 -0
- package/dist/components/Switch/Switch.js.map +1 -0
- package/dist/components/Switch/Switch.sx.d.ts +22 -0
- package/dist/components/Switch/Switch.types.d.ts +1 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch.d.ts +6 -0
- package/dist/components/Table/Table.cjs +2 -528
- package/dist/components/Table/Table.cjs.map +1 -1
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Table/Table.js +2 -528
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Tabs/Tabs.cjs +5 -94
- package/dist/components/Tabs/Tabs.cjs.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +21 -16
- package/dist/components/Tabs/Tabs.js +4 -93
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/index.d.ts +4 -2
- package/dist/components/Tabs.d.ts +4 -0
- package/dist/components/Timeline/Timeline.cjs +3 -2
- package/dist/components/Timeline/Timeline.cjs.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +4 -8
- package/dist/components/Timeline/Timeline.js +3 -2
- package/dist/components/Timeline/Timeline.js.map +1 -1
- package/dist/components/Timeline/index.d.ts +4 -2
- package/dist/components/Timeline.d.ts +4 -0
- package/dist/components/_shared/mergeSx.d.ts +7 -0
- package/dist/{formField.sx-DfVbMe0V.js → formField.sx-8_QRnKxv.js} +2 -11
- package/dist/formField.sx-8_QRnKxv.js.map +1 -0
- package/dist/{formField.sx-CQ1mbk9M.cjs → formField.sx-BAX7KwMR.cjs} +10 -19
- package/dist/formField.sx-BAX7KwMR.cjs.map +1 -0
- package/dist/index.cjs +92 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +32 -0
- package/dist/index.js +66 -3
- package/dist/index.js.map +1 -1
- package/dist/mergeSx-BXoNZjB_.js +10 -0
- package/dist/mergeSx-BXoNZjB_.js.map +1 -0
- package/dist/mergeSx-Dbccoo_H.cjs +9 -0
- package/dist/mergeSx-Dbccoo_H.cjs.map +1 -0
- package/dist/mui.d.ts +3 -1
- package/dist/package.json +190 -0
- package/dist/{resolvePreset-CT3kU-K2.cjs → resolvePreset-CxTI6_Ln.cjs} +3 -3
- package/dist/{resolvePreset-CT3kU-K2.cjs.map → resolvePreset-CxTI6_Ln.cjs.map} +1 -1
- package/dist/{resolvePreset-B-IB0ehH.js → resolvePreset-K6_BfWHD.js} +3 -3
- package/dist/{resolvePreset-B-IB0ehH.js.map → resolvePreset-K6_BfWHD.js.map} +1 -1
- package/dist/theme/componentStyles.d.ts +1 -1
- package/dist/tokens-BRrcP_p_.js +21 -0
- package/dist/tokens-BRrcP_p_.js.map +1 -0
- package/dist/tokens-jaWWNk39.cjs +20 -0
- package/dist/tokens-jaWWNk39.cjs.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/{components/ScrollTopButton → utils}/scrollToTop.d.ts +6 -7
- package/package.json +25 -48
- package/rollup.config.cjs +87 -0
- package/scripts/gen-dist-pkg.mjs +15 -0
- package/shared-library-comercios-MUI.code-workspace +10 -0
- package/src/components/ActionMenu/ActionMenu.stories.tsx +427 -0
- package/src/components/ActionMenu/ActionMenu.tsx +153 -0
- package/src/components/ActionMenu/index.ts +2 -0
- package/src/components/AppBar/AppBar.stories.tsx +316 -0
- package/src/components/AppBar/AppBar.sx.ts +32 -0
- package/src/components/AppBar/AppBar.tsx +119 -0
- package/src/components/AppBar/AppBarContext.ts +25 -0
- package/src/components/AppBar/AppBarMenuToggle.tsx +90 -0
- package/src/components/AppBar/index.ts +12 -0
- package/src/components/Autocomplete/Autocomplete.definitions.ts +477 -0
- package/src/components/Autocomplete/Autocomplete.helpers.ts +80 -0
- package/src/components/Autocomplete/Autocomplete.stories.tsx +784 -0
- package/src/components/Autocomplete/Autocomplete.sx.ts +30 -0
- package/src/components/Autocomplete/Autocomplete.tsx +393 -0
- package/src/components/Autocomplete/_parts/AutocompleteChips.tsx +55 -0
- package/src/components/Autocomplete/_parts/AutocompleteLoader.tsx +17 -0
- package/src/components/Autocomplete/_parts/AutocompleteOption.tsx +29 -0
- package/src/components/Autocomplete/index.ts +12 -0
- package/src/components/Avatar/Avatar.definitions.ts +162 -0
- package/src/components/Avatar/Avatar.stories.tsx +258 -0
- package/src/components/Avatar/Avatar.tsx +206 -0
- package/src/components/Avatar/index.ts +2 -0
- package/src/components/Button/Button.definition.ts +97 -0
- package/src/components/Button/Button.stories.tsx +285 -0
- package/src/components/Button/Button.tsx +66 -0
- package/src/components/Button/index.ts +2 -0
- package/src/components/Card/Card.definition.ts +5 -0
- package/src/components/Card/Card.stories.tsx +102 -0
- package/src/components/Card/Card.sx.ts +58 -0
- package/src/components/Card/Card.tsx +85 -0
- package/src/components/Card/index.ts +4 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +212 -0
- package/src/components/Checkbox/Checkbox.sx.ts +67 -0
- package/src/components/Checkbox/Checkbox.tsx +208 -0
- package/src/components/Checkbox/index.ts +10 -0
- package/src/components/Chip/Chip.definitions.ts +167 -0
- package/src/components/Chip/Chip.stories.tsx +265 -0
- package/src/components/Chip/Chip.tsx +61 -0
- package/src/components/Chip/index.ts +2 -0
- package/src/components/Column/Column.tsx +29 -0
- package/src/components/Column/index.ts +2 -0
- package/src/components/DatePicker/DatePicker.definitions.ts +228 -0
- package/src/components/DatePicker/DatePicker.helpers.ts +24 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +309 -0
- package/src/components/DatePicker/DatePicker.sx.ts +33 -0
- package/src/components/DatePicker/DatePicker.tsx +133 -0
- package/src/components/DatePicker/index.ts +7 -0
- package/src/components/DateTimePicker/DateTimePicker.definitions.ts +317 -0
- package/src/components/DateTimePicker/DateTimePicker.helpers.ts +45 -0
- package/src/components/DateTimePicker/DateTimePicker.stories.tsx +415 -0
- package/src/components/DateTimePicker/DateTimePicker.sx.ts +30 -0
- package/src/components/DateTimePicker/DateTimePicker.tsx +240 -0
- package/src/components/DateTimePicker/index.ts +9 -0
- package/src/components/Drawer/Drawer.stories.tsx +438 -0
- package/src/components/Drawer/Drawer.sx.ts +106 -0
- package/src/components/Drawer/Drawer.tsx +224 -0
- package/src/components/Drawer/DrawerContext.ts +26 -0
- package/src/components/Drawer/DrawerItem.tsx +120 -0
- package/src/components/Drawer/index.ts +10 -0
- package/src/components/Flyout/Flyout.stories.tsx +282 -0
- package/src/components/Flyout/Flyout.tsx +122 -0
- package/src/components/Flyout/index.ts +1 -0
- package/src/components/Gallery/Gallery.definition.tsx +37 -0
- package/src/components/Gallery/Gallery.stories.tsx +82 -0
- package/src/components/Gallery/Gallery.tsx +158 -0
- package/src/components/Gallery/GalleryLightbox.tsx +186 -0
- package/src/components/Gallery/GalleryMain.tsx +87 -0
- package/src/components/Gallery/GalleryThumbnails.tsx +122 -0
- package/src/components/Gallery/index.ts +2 -0
- package/src/components/Icon/Icon.stories.tsx +121 -0
- package/src/components/Icon/Icon.tsx +163 -0
- package/src/components/Icon/index.ts +2 -0
- package/src/components/Input/Input.definitions.ts +348 -0
- package/src/components/Input/Input.helpers.ts +50 -0
- package/src/components/Input/Input.stories.tsx +528 -0
- package/src/components/Input/Input.sx.ts +42 -0
- package/src/components/Input/Input.tsx +162 -0
- package/src/components/Input/index.ts +10 -0
- package/src/components/InputGroup/InputGroup.definitions.ts +158 -0
- package/src/components/InputGroup/InputGroup.stories.tsx +267 -0
- package/src/components/InputGroup/InputGroup.tsx +180 -0
- package/src/components/InputGroup/index.ts +2 -0
- package/src/components/MenuButton/MenuButton.stories.tsx +197 -0
- package/src/components/MenuButton/MenuButton.tsx +100 -0
- package/src/components/MenuButton/index.ts +1 -0
- package/src/components/Modal/Modal.stories.tsx +721 -0
- package/src/components/Modal/Modal.tsx +407 -0
- package/src/components/Modal/ModalBody.tsx +23 -0
- package/src/components/Modal/ModalFooter.tsx +83 -0
- package/src/components/Modal/ModalHeader.tsx +33 -0
- package/src/components/Modal/index.ts +11 -0
- package/src/components/RadioGroup/RadioGroup.definitions.ts +177 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +231 -0
- package/src/components/RadioGroup/RadioGroup.sx.ts +75 -0
- package/src/components/RadioGroup/RadioGroup.tsx +207 -0
- package/src/components/RadioGroup/index.ts +10 -0
- package/src/components/Select/Select.helpers.ts +31 -0
- package/src/components/Select/Select.stories.tsx +393 -0
- package/src/components/Select/Select.sx.ts +14 -0
- package/src/components/Select/Select.tsx +327 -0
- package/src/components/Select/_parts/SelectMenuItem.tsx +40 -0
- package/src/components/Select/_parts/SelectValue.tsx +95 -0
- package/src/components/Select/index.ts +12 -0
- package/src/components/Stat/Stat.stories.tsx +85 -0
- package/src/components/Stat/Stat.tsx +117 -0
- package/src/components/Stat/index.ts +2 -0
- package/src/components/StatusMessage/StatusMessage.stories.tsx +159 -0
- package/src/components/StatusMessage/StatusMessage.tsx +143 -0
- package/src/components/StatusMessage/index.ts +3 -0
- package/src/components/Stepper/Step.tsx +21 -0
- package/src/components/Stepper/Stepper.definition.ts +75 -0
- package/src/components/Stepper/Stepper.stories.tsx +194 -0
- package/src/components/Stepper/Stepper.tsx +194 -0
- package/src/components/Stepper/StepperContext.tsx +176 -0
- package/src/components/Stepper/StepperProvider.stories.tsx +286 -0
- package/src/components/Stepper/_hooks/useHorizontalScroll.ts +56 -0
- package/src/components/Stepper/_parts/StepperScrollArrow.tsx +50 -0
- package/src/components/Stepper/index.ts +15 -0
- package/src/components/Switch/Switch.definitions.ts +134 -0
- package/src/components/Switch/Switch.stories.tsx +213 -0
- package/src/components/Switch/Switch.sx.ts +81 -0
- package/src/components/Switch/Switch.tsx +188 -0
- package/src/components/Switch/Switch.types.ts +10 -0
- package/src/components/Switch/index.ts +9 -0
- package/src/components/Table/EmptyTable.png +0 -0
- package/src/components/Table/Table.definition.ts +580 -0
- package/src/components/Table/Table.stories.tsx +853 -0
- package/src/components/Table/Table.tsx +494 -0
- package/src/components/Table/data.ts +134 -0
- package/src/components/Table/exportsUtils.ts +195 -0
- package/src/components/Table/index.ts +3 -0
- package/src/components/Table/types.ts +34 -0
- package/src/components/Tabs/Tab.definition.ts +53 -0
- package/src/components/Tabs/Tab.tsx +19 -0
- package/src/components/Tabs/Tabs.stories.tsx +118 -0
- package/src/components/Tabs/Tabs.tsx +163 -0
- package/src/components/Tabs/_tabUtils.tsx +4 -0
- package/src/components/Tabs/index.ts +5 -0
- package/src/components/Timeline/Timeline.definition.ts +43 -0
- package/src/components/Timeline/Timeline.stories.tsx +108 -0
- package/src/components/Timeline/Timeline.tsx +44 -0
- package/src/components/Timeline/TimelineItem.tsx +31 -0
- package/src/components/Timeline/index.ts +5 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +129 -0
- package/src/components/Tooltip/Tooltip.tsx +58 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/_shared/formField.sx.ts +118 -0
- package/src/components/_shared/mergeSx.ts +16 -0
- package/src/components/_shared/resolvePreset.ts +38 -0
- package/src/hooks/ClipBoard/ClipBoard.stories.tsx +168 -0
- package/src/hooks/ClipBoard/ClipBoard.tsx +131 -0
- package/src/hooks/ClipBoard/ClipboardUnifiedDemo.tsx +111 -0
- package/src/hooks/ClipBoard/index.ts +1 -0
- package/src/index.ts +51 -0
- package/src/mui.ts +57 -0
- package/src/styles.css +3 -0
- package/src/theme/componentStyles.ts +50 -0
- package/src/theme/tokens.ts +43 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/scrollToTop.ts +36 -0
- package/storybook-static/addon-visual-tests-assets/visual-test-illustration.mp4 +0 -0
- package/storybook-static/assets/AccountCircle-BDZFsbTw.js +1 -0
- package/storybook-static/assets/ActionMenu-EynP8yU1.js +19 -0
- package/storybook-static/assets/ActionMenu.stories-DqSqRGix.js +185 -0
- package/storybook-static/assets/Alert-3zvTPc0p.js +1 -0
- package/storybook-static/assets/AppBar.stories-DcX3M5th.js +172 -0
- package/storybook-static/assets/Autocomplete.stories-CXJm8FOT.js +788 -0
- package/storybook-static/assets/Avatar-NbFfkZws.js +1 -0
- package/storybook-static/assets/Avatar.stories-CwOYCzqU.js +390 -0
- package/storybook-static/assets/Box-BnhEcfFm.js +1 -0
- package/storybook-static/assets/Button-D9h7OggD.js +1 -0
- package/storybook-static/assets/Button-DBpqmVB_.js +1 -0
- package/storybook-static/assets/Button.stories-F20dmnjq.js +320 -0
- package/storybook-static/assets/ButtonBase-qyaMEhe4.js +74 -0
- package/storybook-static/assets/Card.stories-B3NpAhO0.js +154 -0
- package/storybook-static/assets/CheckCircleOutline-CEj5mDsl.js +1 -0
- package/storybook-static/assets/Chip-C3vKPpzR.js +1 -0
- package/storybook-static/assets/Chip.stories-sxcfHVo9.js +333 -0
- package/storybook-static/assets/CircularProgress-DC7ZNWwl.js +28 -0
- package/storybook-static/assets/Clear-4kYcKvT3.js +1 -0
- package/storybook-static/assets/ClipBoard-DvLBdNHe.js +1 -0
- package/storybook-static/assets/ClipBoard.stories-BGUo47r6.js +108 -0
- package/storybook-static/assets/Close-CgHeRgmh.js +1 -0
- package/storybook-static/assets/Close-Cy8nELYU.js +1 -0
- package/storybook-static/assets/Color-AVL7NMMY-BJKvwERm.js +1 -0
- package/storybook-static/assets/ContentCopy-BfLTDb10.js +1 -0
- package/storybook-static/assets/DatePicker-Clkpr-Ku.js +1 -0
- package/storybook-static/assets/DatePicker.stories-EaUCMkh3.js +444 -0
- package/storybook-static/assets/DateRangePicker.stories-BMlkj-8K.js +390 -0
- package/storybook-static/assets/DateTimePicker.stories-B6gdzKq5.js +555 -0
- package/storybook-static/assets/DefaultPropsProvider-BGoQxtDa.js +16 -0
- package/storybook-static/assets/Delete-D2SMMmIA.js +1 -0
- package/storybook-static/assets/DialogContent-BeCDKgax.js +1 -0
- package/storybook-static/assets/Divider-BbCj9wT4.js +1 -0
- package/storybook-static/assets/DocsRenderer-PQXLIZUC-BebLK5Y_.js +1243 -0
- package/storybook-static/assets/Drawer-DcFwy73r.js +1 -0
- package/storybook-static/assets/Drawer.stories-C5AZkJBk.js +173 -0
- package/storybook-static/assets/EmptyTable-B-RKtgVs.png +0 -0
- package/storybook-static/assets/ErrorOutline-D9gM7ART.js +1 -0
- package/storybook-static/assets/Fade-Ll96CvH8.js +1 -0
- package/storybook-static/assets/Flyout.stories-Cf7z6MNw.js +163 -0
- package/storybook-static/assets/Gallery.stories-DdpWVTF6.js +127 -0
- package/storybook-static/assets/Grow-8y4FglGK.js +1 -0
- package/storybook-static/assets/Home-BRvJEp2L.js +1 -0
- package/storybook-static/assets/Icon.stories-D0mUiW_t.js +78 -0
- package/storybook-static/assets/IconButton-9OYSTH58.js +1 -0
- package/storybook-static/assets/Input-CjX0t4h-.js +1 -0
- package/storybook-static/assets/Input.stories-BRxekliy.js +650 -0
- package/storybook-static/assets/InputGroup.stories-DH6gUfmn.js +306 -0
- package/storybook-static/assets/KeyboardArrowRight-WO_attK2.js +1 -0
- package/storybook-static/assets/KeyboardArrowUp-DsyVef-i.js +1 -0
- package/storybook-static/assets/ListItem-D3O0103N.js +1 -0
- package/storybook-static/assets/ListItemIcon-hca6xN79.js +1 -0
- package/storybook-static/assets/ListItemText-BFLAwLdl.js +1 -0
- package/storybook-static/assets/Logout-gj-P3AfU.js +1 -0
- package/storybook-static/assets/Menu-ClzfjLc3.js +1 -0
- package/storybook-static/assets/MenuButton.stories-B-W_QVDt.js +162 -0
- package/storybook-static/assets/MenuItem-iU6tAqJI.js +1 -0
- package/storybook-static/assets/Modal-3okp9H2i.js +1 -0
- package/storybook-static/assets/Modal.stories-DIWzm4qR.js +468 -0
- package/storybook-static/assets/MoreVert-BoIVG4gh.js +1 -0
- package/storybook-static/assets/Notifications-DY_A-Sho.js +1 -0
- package/storybook-static/assets/PageLoader.stories-DmtO1mlm.js +158 -0
- package/storybook-static/assets/Paper-SwQBhqI7.js +1 -0
- package/storybook-static/assets/Person-CkQl-mpq.js +1 -0
- package/storybook-static/assets/PickersModalDialog-Tjnr_cu5.js +10 -0
- package/storybook-static/assets/PickersToolbarButton-Tt185-si.js +1 -0
- package/storybook-static/assets/Popper-CnCTYXxy.js +1 -0
- package/storybook-static/assets/Portal-Cj8XF9Lf.js +1 -0
- package/storybook-static/assets/ScrollTopButton.stories-BflQCwNP.js +90 -0
- package/storybook-static/assets/Select-CjcuMAY0.js +4 -0
- package/storybook-static/assets/Select-DJh2biEb.js +3 -0
- package/storybook-static/assets/Select.stories-DU1Gb3I2.js +1103 -0
- package/storybook-static/assets/Settings-BLKc1CnO.js +1 -0
- package/storybook-static/assets/Snackbar-BtVeKTw6.js +1 -0
- package/storybook-static/assets/Stack-D01OUIXi.js +1 -0
- package/storybook-static/assets/Stat.stories-Bn9-iuPT.js +60 -0
- package/storybook-static/assets/StatusMessage.stories-hnfX8FeU.js +73 -0
- package/storybook-static/assets/Stepper-BtKB5ykn.js +2 -0
- package/storybook-static/assets/Stepper.stories-CTEZbgPc.js +165 -0
- package/storybook-static/assets/Table.stories-CTn2Ktmn.js +1260 -0
- package/storybook-static/assets/TableContainer-CzLNaEU-.js +1 -0
- package/storybook-static/assets/TableRow-CS88-1HF.js +2 -0
- package/storybook-static/assets/Tabs-DLpDOu_n.js +1 -0
- package/storybook-static/assets/Tabs.stories-BFVuFy_5.js +159 -0
- package/storybook-static/assets/TextField-22T-xHBm.js +1 -0
- package/storybook-static/assets/Timeline.stories-DJU_U2Hv.js +97 -0
- package/storybook-static/assets/Tooltip-DbnHUxNj.js +1 -0
- package/storybook-static/assets/Tooltip.stories-B7tA3dnV.js +66 -0
- package/storybook-static/assets/Typography-BgntX2Ep.js +1 -0
- package/storybook-static/assets/Wizard.stories-CVrJLK_D.js +23 -0
- package/storybook-static/assets/createSimplePaletteValueFilter-bm0fmN_7.js +1 -0
- package/storybook-static/assets/createSvgIcon-D_Gca4vA.js +1 -0
- package/storybook-static/assets/debounce-Be36O1Ab.js +1 -0
- package/storybook-static/assets/emotion-react.browser.esm--g-C9cX9.js +8 -0
- package/storybook-static/assets/extendSxProp-CEpa30hT.js +1 -0
- package/storybook-static/assets/formField.sx-DMCmZIAa.js +1 -0
- package/storybook-static/assets/getReactElementRef-BQ3ANZdy.js +1 -0
- package/storybook-static/assets/iframe-BAJnc_4n.js +1079 -0
- package/storybook-static/assets/index-B1tlhOpe.js +240 -0
- package/storybook-static/assets/index-BF3FAXTk.js +9 -0
- package/storybook-static/assets/index-CIeucmOB.js +2 -0
- package/storybook-static/assets/index-CY7j4a7o.js +1 -0
- package/storybook-static/assets/index-CxkKctw5.js +1 -0
- package/storybook-static/assets/isFocusVisible-B8k4qzLc.js +1 -0
- package/storybook-static/assets/isMuiElement-CTZSFcY5.js +1 -0
- package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +9 -0
- package/storybook-static/assets/listItemTextClasses-CC_rwJam.js +1 -0
- package/storybook-static/assets/mergeSlotProps-B0UBKBMe.js +1 -0
- package/storybook-static/assets/ownerDocument-DW-IO8s5.js +1 -0
- package/storybook-static/assets/ownerWindow-HkKU3E4x.js +1 -0
- package/storybook-static/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/storybook-static/assets/react-18-BUJ64QCV.js +25 -0
- package/storybook-static/assets/resolvePreset-CN2aOJJr.js +1 -0
- package/storybook-static/assets/useControlled-DsVh1a5j.js +1 -0
- package/storybook-static/assets/useForkRef-0ANIrxcF.js +1 -0
- package/storybook-static/assets/useId-b4fZxjOL.js +1 -0
- package/storybook-static/assets/useMobilePicker-DK-c8xbD.js +1 -0
- package/storybook-static/assets/usePreviousProps-WR0rG4aR.js +1 -0
- package/storybook-static/assets/useSlot-b6pXgp5_.js +1 -0
- package/storybook-static/assets/useSlotProps-C0uMfuBt.js +1 -0
- package/storybook-static/assets/useTheme-BmOJK7ra.js +1 -0
- package/storybook-static/assets/useThemeProps-DYtxXiUU.js +1 -0
- package/storybook-static/assets/useThemeProps-U4yXiZ_5.js +1 -0
- package/storybook-static/assets/useTimeout-DNjRaOWc.js +1 -0
- package/storybook-static/assets/visuallyHidden-Dan1xhjv.js +1 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +686 -0
- package/storybook-static/index.html +160 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-2/manager-bundle.js +356 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-2/manager-bundle.js.LEGAL.txt +40 -0
- package/storybook-static/sb-addons/docs-4/manager-bundle.js +151 -0
- package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +127 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
- package/storybook-static/sb-addons/vitest-3/manager-bundle.js +3 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +797 -0
- package/storybook-static/sb-manager/globals-runtime.js +69679 -0
- package/storybook-static/sb-manager/globals.js +34 -0
- package/storybook-static/sb-manager/runtime.js +13195 -0
- package/storybook-static/vite-inject-mocker-entry.js +18 -0
- package/tailwind.config.js +10 -0
- package/tsconfig.json +48 -0
- package/tsup.config.js +41 -0
- package/vite.config.js +132 -0
- package/vitest.config.ts +35 -0
- package/dist/components/AppBar/AppBarBrand.d.ts +0 -31
- package/dist/components/AppBar/AppBarUserMenu.d.ts +0 -65
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.types.d.ts +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.cjs.map +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -15
- package/dist/components/DateRangePicker/DateRangePicker.definitions.d.ts +0 -6
- package/dist/components/DateRangePicker/DateRangePicker.js.map +0 -1
- package/dist/components/DateRangePicker/index.d.ts +0 -1
- package/dist/components/DateRangePicker.d.ts +0 -2
- package/dist/components/DateTimePicker/DateTimePicker.types.d.ts +0 -1
- package/dist/components/Input/Input.types.d.ts +0 -1
- package/dist/components/PageLoader/PageLoader.cjs +0 -61
- package/dist/components/PageLoader/PageLoader.cjs.map +0 -1
- package/dist/components/PageLoader/PageLoader.d.ts +0 -38
- package/dist/components/PageLoader/PageLoader.js +0 -61
- package/dist/components/PageLoader/PageLoader.js.map +0 -1
- package/dist/components/PageLoader/index.d.ts +0 -2
- package/dist/components/PageLoader.d.ts +0 -6
- package/dist/components/ScrollTopButton/ScrollTopButton.cjs +0 -79
- package/dist/components/ScrollTopButton/ScrollTopButton.cjs.map +0 -1
- package/dist/components/ScrollTopButton/ScrollTopButton.d.ts +0 -48
- package/dist/components/ScrollTopButton/ScrollTopButton.js +0 -79
- package/dist/components/ScrollTopButton/ScrollTopButton.js.map +0 -1
- package/dist/components/ScrollTopButton/index.d.ts +0 -4
- package/dist/components/ScrollTopButton.d.ts +0 -6
- package/dist/components/Select/Select.definitions.d.ts +0 -17
- package/dist/components/Select/Select.types.d.ts +0 -1
- package/dist/components/Select/_parts/SelectSearchHeader.d.ts +0 -15
- package/dist/formField.sx-CQ1mbk9M.cjs.map +0 -1
- package/dist/formField.sx-DfVbMe0V.js.map +0 -1
- package/dist/hooks/Wizard/Wizard.cjs +0 -7
- package/dist/hooks/Wizard/Wizard.cjs.map +0 -1
- package/dist/hooks/Wizard/Wizard.js +0 -7
- package/dist/hooks/Wizard/Wizard.js.map +0 -1
- package/dist/hooks/Wizard/index.d.ts +0 -3
- package/dist/hooks/Wizard/useWizard.d.ts +0 -9
- package/dist/hooks/Wizard.d.ts +0 -2
- package/dist/useWizard-CWdIxZzX.cjs +0 -94
- package/dist/useWizard-CWdIxZzX.cjs.map +0 -1
- package/dist/useWizard-CWq--C3o.js +0 -95
- package/dist/useWizard-CWq--C3o.js.map +0 -1
- /package/dist/{styles.css → index.css} +0 -0
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import{j as g}from"./jsx-runtime-D_zvdyIk.js";import{r as p}from"./iframe-BAJnc_4n.js";import{a as Ze,g as Pt,r as pa,b as ma,c as fa,e as ha,u as K,f as ya,h as Ce,i as Pa,P as Ra,j as tt,m as Ge,k as xa,l as ba,n as Ma,o as va,p as Sa,q as ka,D as Mt,s as wa,t as Ca,v as Ia,w as Ta,x as Ya,y as ja,z as Ea,A as Aa,B as Rt,C as Oa,E as Na,F as Fa,G as Va,H as $a,I as La,J as vt,K as St,L as kt,M as Ba,N as wt,O as o,Q as Ct,R as _a,S as Ha,T as Ua,d as H}from"./PickersModalDialog-Tjnr_cu5.js";import{_ as d,g as at,a as Ie,s as X,c as nt,d as rt,e as Wa}from"./DefaultPropsProvider-BGoQxtDa.js";import{_ as L,u as Y}from"./useTimeout-DNjRaOWc.js";import{u as It}from"./index-CIeucmOB.js";import{u as ne}from"./useThemeProps-U4yXiZ_5.js";import{P as xt}from"./PickersToolbarButton-Tt185-si.js";import{T as q}from"./Typography-BgntX2Ep.js";import{u as Xa}from"./useControlled-DsVh1a5j.js";import{u as za}from"./useId-b4fZxjOL.js";import{u as ot}from"./useSlotProps-C0uMfuBt.js";import{r as Te}from"./useSlot-b6pXgp5_.js";import{B as re}from"./Box-BnhEcfFm.js";import"./preload-helper-PPVm8Dsz.js";import"./useForkRef-0ANIrxcF.js";import"./Fade-Ll96CvH8.js";import"./useTheme-BmOJK7ra.js";import"./extendSxProp-CEpa30hT.js";import"./getReactElementRef-BQ3ANZdy.js";import"./index-CY7j4a7o.js";import"./index-BF3FAXTk.js";import"./Grow-8y4FglGK.js";import"./Modal-3okp9H2i.js";import"./ownerWindow-HkKU3E4x.js";import"./ownerDocument-DW-IO8s5.js";import"./Portal-Cj8XF9Lf.js";import"./Paper-SwQBhqI7.js";import"./Popper-CnCTYXxy.js";import"./Button-DBpqmVB_.js";import"./createSimplePaletteValueFilter-bm0fmN_7.js";import"./ButtonBase-qyaMEhe4.js";import"./emotion-react.browser.esm--g-C9cX9.js";import"./isFocusVisible-B8k4qzLc.js";import"./CircularProgress-DC7ZNWwl.js";import"./DialogContent-BeCDKgax.js";import"./ListItem-D3O0103N.js";import"./Menu-ClzfjLc3.js";import"./debounce-Be36O1Ab.js";import"./mergeSlotProps-B0UBKBMe.js";import"./isMuiElement-CTZSFcY5.js";import"./Chip-C3vKPpzR.js";import"./createSvgIcon-D_Gca4vA.js";import"./TextField-22T-xHBm.js";import"./Select-DJh2biEb.js";import"./visuallyHidden-Dan1xhjv.js";import"./IconButton-9OYSTH58.js";import"./useThemeProps-DYtxXiUU.js";const pe=e=>{const t=[],a=[];return e.forEach(n=>{n.dateName==="start"?t.push(n):a.push(n)}),{startDate:t,endDate:a}},qa=e=>e.map((t,a)=>a===e.length-1?d({},t,{separator:null}):t);function Tt(e){return e.fieldType??"multi-input"}const Ka=["value","referenceDate"],de={emptyValue:[null,null],getTodayValue:(e,t,a)=>[Pt(e,t,a),Pt(e,t,a)],getInitialReferenceValue:e=>{let{value:t,referenceDate:a}=e,n=L(e,Ka);const r=n.adapter.isValid(t[0]),s=n.adapter.isValid(t[1]);if(r&&s)return t;const i=a??ma(n),c=Array.isArray(i)?i[0]:i,l=Array.isArray(i)?i[1]:i;return[r?t[0]:c,s?t[1]:l]},cleanValue:(e,t)=>t.map(a=>pa(e,a)),areValuesEqual:(e,t,a)=>Ze(e,t[0],a[0])&&Ze(e,t[1],a[1]),isSameError:(e,t)=>t!==null&&e[1]===t[1]&&e[0]===t[0],hasError:e=>e[0]!=null||e[1]!=null,defaultErrorState:[null,null],getTimezone:(e,t)=>{const a=e.isValid(t[0])?e.getTimezone(t[0]):null,n=e.isValid(t[1])?e.getTimezone(t[1]):null;if(a!=null&&n!=null&&a!==n)throw new Error("MUI X: The timezone of the start and the end date should be the same.");return a??n},setTimezone:(e,t,a)=>[a[0]==null?null:e.setTimezone(a[0],t),a[1]==null?null:e.setTimezone(a[1],t)]},Ga=({dateSeparator:e="–"})=>({updateReferenceValue:(t,a,n)=>{const r=t.isValid(a[0]),s=t.isValid(a[1]);return!r&&!s?n:r&&s?a:r?[a[0],n[0]]:[n[1],a[1]]},getSectionsFromValue:([t,a],n)=>{const r=(s,i)=>{const c=n(s);return c.map((l,u)=>u===c.length-1&&i==="start"?d({},l,{dateName:i,endSeparator:`${l.endSeparator} ${e} `}):d({},l,{dateName:i}))};return[...r(t,"start"),...r(a,"end")]},getV7HiddenInputValueFromSections:t=>{const a=pe(t);return ha([...a.startDate,...a.endDate])},getV6InputValueFromSections:(t,a,n)=>{const r=pe(t);return fa([...r.startDate,...r.endDate],a,n)},parseValueStr:(t,a,n)=>{const[r,s]=t.split(e);return[r,s].map((i,c)=>i==null?null:n(i.trim(),a[c]))},getDateFromSection:(t,a)=>t[me(a)],getDateSectionsFromValue:(t,a)=>{const n=pe(t);return me(a)===0?qa(n.startDate):n.endDate},updateDateInValue:(t,a,n)=>me(a)===0?[n,t[1]]:[t[0],n],clearDateSections:(t,a)=>{const n=pe(t);return me(a)===0?[...n.startDate.map(r=>d({},r,{value:""})),...n.endDate]:[...n.startDate,...n.endDate.map(r=>d({},r,{value:""}))]}});function me(e){return e==null||e.dateName==="start"?0:1}function Qa(e){return at("MuiDateRangePickerToolbar",e)}Ie("MuiDateRangePickerToolbar",["root","container"]);const Ye=p.createContext(null);function Ja(){const e=p.useContext(Ye);if(e==null)throw new Error(["MUI X: The `usePickerRangePositionContext` can only be called in components that are used inside a picker component"].join(`
|
|
2
|
+
`));return e}function Za(){return p.useContext(Ye)}const en=["toolbarFormat","className","classes"],tn=e=>rt({root:["root"],container:["container"]},Qa,e),an=X(Ra,{name:"MuiDateRangePickerToolbar",slot:"Root"})({}),nn=X("div",{name:"MuiDateRangePickerToolbar",slot:"Container"})({display:"flex"}),rn=p.forwardRef(function(t,a){const n=K(),r=ne({props:t,name:"MuiDateRangePickerToolbar"}),{toolbarFormat:s,className:i,classes:c}=r,l=L(r,en),{value:u}=ya(),P=Ce(),y=Pa(),{rangePosition:M,setRangePosition:x}=Ja(),S=tn(c),T=s??n.formats.shortDate,C=(b,j)=>n.isValid(b)?n.formatByString(b,T):j;return g.jsx(an,d({},l,{toolbarTitle:P.dateRangePickerToolbarTitle,className:nt(S.root,i),ownerState:y,ref:a,children:g.jsxs(nn,{className:S.container,children:[g.jsx(xt,{variant:u[0]==null?"h6":"h5",value:C(u[0],P.start),selected:M==="start",onClick:()=>x("start")}),g.jsxs(q,{variant:"h5",children:[" ","–"," "]}),g.jsx(xt,{variant:u[1]==null?"h6":"h5",value:C(u[1],P.end),selected:M==="end",onClick:()=>x("end")})]})}))});function Yt(e,t){const a=ne({props:e,name:t}),n=tt(a),r=p.useMemo(()=>a.localeText?.toolbarTitle==null?a.localeText:d({},a.localeText,{dateRangePickerToolbarTitle:a.localeText.toolbarTitle}),[a.localeText]);return d({},a,n,{localeText:r,slots:d({toolbar:rn},a.slots)})}const jt=[];let J=0;for(;J<64;)jt[J]=0|Math.sin(++J%Math.PI)*4294967296;function on(e){const t=[];let a,n,r,s=unescape(encodeURI(e))+"",i=s.length;const c=[a=1732584193,n=4023233417,~a,~n];for(e=--i/4+2|15,t[--e]=i*8;~i;)t[i>>2]|=s.charCodeAt(i)<<8*i--;for(J=s=0;J<e;J+=16){for(i=c;s<64;i=[r=i[3],a+((r=i[0]+[a&n|~a&r,r&a|~r&n,a^n^r,n^(a|~r)][i=s>>4]+jt[s]+~~t[J|[s,5*s+1,3*s+5,7*s][i]&15])<<(i=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*i+s++%4])|r>>>-i),a,n])a=i[1]|0,n=i[2];for(s=4;s;)c[--s]+=i[s]}for(e="";s<32;)e+=(c[s>>3]>>(1^s++)*4&15).toString(16);return e}const fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Et=e=>{let t="",a,n,r,s,i,c,l,u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)s=fe.indexOf(e.charAt(u++)),i=fe.indexOf(e.charAt(u++)),c=fe.indexOf(e.charAt(u++)),l=fe.indexOf(e.charAt(u++)),a=s<<2|i>>4,n=(i&15)<<4|c>>2,r=(c&3)<<6|l,t=t+String.fromCharCode(a),c!=64&&(t=t+String.fromCharCode(n)),l!=64&&(t=t+String.fromCharCode(r));return t},sn=["pro","premium"],ln=["perpetual","annual","subscription"],cn=typeof window<"u"&&window.location.hostname.endsWith(".csb.app");function oe(e){(cn?console.log:console.error)(["*************************************************************","",...e,"","*************************************************************"].join(`
|
|
3
|
+
`))}function dn(){oe(["MUI X: Invalid license key.","","Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.","","To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument","Please check the license key installation https://mui.com/r/x-license-key-installation."])}function un(){oe(["MUI X: License key plan mismatch.","","Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use Data Grid Premium with a license key for the Pro plan.","","To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.","Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`."])}function gn(){oe(["MUI X: Component not included in your license.","","The component you are trying to use is not included in the Pro Plan you purchased.","","Your license is from an old version of the Pro Plan that is only compatible with the `@mui/x-data-grid-pro` and `@mui/x-date-pickers-pro` commercial packages.","","To start using another Pro package, please consider reaching to our sales team to upgrade your license or visit https://mui.com/r/x-get-license to get a new license key."])}function Dn({plan:e,packageName:t}){oe(["MUI X: Missing license key.","",`The license key is missing. You might not be allowed to use \`${t}\` which is part of MUI X ${e}.`,"","To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.","If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately."])}function pn({packageName:e}){oe(["MUI X: Expired package version.","",`You have installed a version of \`${e}\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`,"","To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key."])}function mn({plan:e,licenseKey:t,expiryTimestamp:a}){oe(["MUI X: Expired license key.","",`Your annual license key to use MUI X ${e} in non-production environments has expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${e} component (more details in https://mui.com/r/x-license-annual).`,"","To solve the problem you can either:","","- Renew your license https://mui.com/r/x-get-license and use the new key",`- Stop making changes to code depending directly or indirectly on MUI X ${e}'s APIs`,"","Note that your license is perpetual in production environments with any version released before your license term ends.","",`- License key expiry timestamp: ${new Date(a)}`,`- Installed license key: ${t}`,""])}function fn({plan:e,licenseKey:t,expiryTimestamp:a}){throw new Error(["MUI X: Expired license key.","",`Your annual license key to use MUI X ${e} in non-production environments has expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${e} component (more details in https://mui.com/r/x-license-annual).`,"","To solve the problem you can either:","","- Renew your license https://mui.com/r/x-get-license and use the new key",`- Stop making changes to code depending directly or indirectly on MUI X ${e}'s APIs`,"","Note that your license is perpetual in production environments with any version released before your license term ends.","",`- License key expiry timestamp: ${new Date(a)}`,`- Installed license key: ${t}`,""].join(`
|
|
4
|
+
`))}globalThis.__MUI_LICENSE_INFO__=globalThis.__MUI_LICENSE_INFO__||{key:void 0};class we{static getLicenseInfo(){return globalThis.__MUI_LICENSE_INFO__}static getLicenseKey(){return we.getLicenseInfo().key}static setLicenseKey(t){const a=we.getLicenseInfo();a.key=t}}let v=(function(e){return e.NotFound="NotFound",e.Invalid="Invalid",e.ExpiredAnnual="ExpiredAnnual",e.ExpiredAnnualGrace="ExpiredAnnualGrace",e.ExpiredVersion="ExpiredVersion",e.Valid="Valid",e.OutOfScope="OutOfScope",e.NotAvailableInInitialProPlan="NotAvailableInInitialProPlan",e})({});function hn(e,t){let a;return e.includes("-pro")?a=["pro","premium"]:e.includes("-premium")?a=["premium"]:a=[],a.includes(t)}const yn=/^.*EXPIRY=([0-9]+),.*$/,Pn=/^.*ORDER:([0-9]+),.*$/,Rn=["x-data-grid-pro","x-date-pickers-pro"];function xn(e){let t,a;try{t=parseInt(e.match(yn)[1],10),(!t||Number.isNaN(t))&&(t=null),a=parseInt(e.match(Pn)[1],10),(!a||Number.isNaN(a))&&(a=null)}catch{t=null,a=null}return{version:1,licenseModel:"perpetual",planScope:"pro",planVersion:"initial",expiryTimestamp:t,expiryDate:t?new Date(t):null,orderId:a}}function bn(e){const t={version:2,licenseModel:null,planScope:null,planVersion:"initial",expiryTimestamp:null,expiryDate:null,orderId:null};return e.split(",").map(a=>a.split("=")).filter(a=>a.length===2).forEach(([a,n])=>{if(a==="S"&&(t.planScope=n),a==="LM"&&(t.licenseModel=n),a==="E"){const r=parseInt(n,10);r&&!Number.isNaN(r)&&(t.expiryTimestamp=r,t.expiryDate=new Date(r))}if(a==="PV"&&(t.planVersion=n),a==="O"){const r=parseInt(n,10);r&&!Number.isNaN(r)&&(t.orderId=r)}}),t}function Mn(e){const t=Et(e);return t.includes("KEYVERSION=1")?xn(t):t.includes("KV=2")?bn(t):null}function vn({releaseInfo:e,licenseKey:t,packageName:a}){if(!e)throw new Error("MUI X: The release information is missing. Not able to validate license.");if(!t)return{status:v.NotFound};const n=t.substr(0,32),r=t.substr(32);if(n!==on(r))return{status:v.Invalid};const s=Mn(r);if(s==null)return console.error("MUI X: Error checking license. Key version not found!"),{status:v.Invalid};if(s.licenseModel==null||!ln.includes(s.licenseModel))return console.error("MUI X: Error checking license. License model not found or invalid!"),{status:v.Invalid};if(s.expiryTimestamp==null)return console.error("MUI X: Error checking license. Expiry timestamp not found or invalid!"),{status:v.Invalid};s.licenseModel;{const i=parseInt(Et(e),10);if(Number.isNaN(i))throw new Error("MUI X: The release information is invalid. Not able to validate license.");if(s.expiryTimestamp<i)return{status:v.ExpiredVersion}}return s.planScope==null||!sn.includes(s.planScope)?(console.error("MUI X: Error checking license. planScope not found or invalid!"),{status:v.Invalid}):hn(a,s.planScope)?s.planVersion==="initial"&&s.planScope==="pro"&&!Rn.includes(a)?{status:v.NotAvailableInInitialProPlan}:{status:v.Valid}:{status:v.OutOfScope}}const Sn=()=>null,kn={licenseVerification:Sn};/**
|
|
5
|
+
* @mui/x-telemetry v8.11.3
|
|
6
|
+
*
|
|
7
|
+
* @license SEE LICENSE IN LICENSE
|
|
8
|
+
* This source code is licensed under the SEE LICENSE IN LICENSE license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/const wn=()=>{},Cn=wn,In=p.createContext({key:void 0}),he={};function je(e,t){const{key:a}=p.useContext(In);return p.useMemo(()=>{const n=a??we.getLicenseKey();if(he[e]&&he[e].key===n)return he[e].licenseVerifier;const r=e.includes("premium")?"Premium":"Pro",s=vn({releaseInfo:t,licenseKey:n,packageName:e}),i=`@mui/${e}`;return Cn(kn.licenseVerification({licenseKey:n},{packageName:e,packageReleaseInfo:t,licenseStatus:s?.status})),s.status===v.Valid||(s.status===v.Invalid?dn():s.status===v.NotAvailableInInitialProPlan?gn():s.status===v.OutOfScope?un():s.status===v.NotFound?Dn({plan:r,packageName:i}):s.status===v.ExpiredAnnualGrace?mn(d({plan:r},s.meta)):s.status===v.ExpiredAnnual?fn(d({plan:r},s.meta)):s.status===v.ExpiredVersion&&pn({packageName:i})),he[e]={key:n,licenseVerifier:s},s},[e,t,a])}const Tn=Object.is;function Yn(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let a=0,n=0;for(const r in e)if(a+=1,!Tn(e[r],t[r])||!(r in t))return!1;for(const r in t)n+=1;return a===n}function jn(e){return p.memo(e,Yn)}function En(e){switch(e){case v.ExpiredAnnualGrace:case v.ExpiredAnnual:return"MUI X Expired license key";case v.ExpiredVersion:return"MUI X Expired package version";case v.Invalid:return"MUI X Invalid license key";case v.OutOfScope:return"MUI X License key plan mismatch";case v.NotAvailableInInitialProPlan:return"MUI X Product not covered by plan";case v.NotFound:return"MUI X Missing license key";default:throw new Error("Unhandled MUI X license status.")}}function An(e){const{packageName:t,releaseInfo:a}=e,n=je(t,a);return n.status===v.Valid?null:g.jsx("div",{style:{position:"absolute",pointerEvents:"none",color:"#8282829e",zIndex:1e5,width:"100%",textAlign:"center",bottom:"50%",right:0,letterSpacing:5,fontSize:24},children:En(n.status)})}const On=jn(An),Nn=e=>at("MuiDateRangeCalendar",e),bt=Ie("MuiDateRangeCalendar",["root","monthContainer","dayDragging"]),se=(e,t)=>e.isValid(t[0])&&e.isValid(t[1])&&!e.isBefore(t[1],t[0]),Qe=(e,t,a)=>se(e,a)&&e.isWithinRange(t,a),ve=(e,t,a)=>se(e,a)&&e.isSameDay(t,a[0]),ce=(e,t,a)=>se(e,a)&&e.isSameDay(t,a[1]),Fn=(e,t,a)=>se(e,t)?`${e.format(t[0],a)} - ${e.format(t[1],a)}`:null;function At(e,t){return Array.isArray(e)?t==="start"?e[0]:e[1]:e}function et({adapter:e,range:t,newDate:a,rangePosition:n,allowRangeFlip:r=!1,shouldMergeDateAndTime:s=!1,referenceDate:i}){const c=e.isValid(t[0])?t[0]:null,l=e.isValid(t[1])?t[1]:null;s&&a&&(c&&n==="start"&&(a=Ge(e,a,c)),l&&n==="end"&&(a=Ge(e,a,l)));const u=i&&a&&s?Ge(e,a,At(i,n)):a;if(n==="start"){const y=r?{nextSelection:"start",newRange:[l,u]}:{nextSelection:"end",newRange:[u,null]};return l&&e.isAfter(u,l)?y:{nextSelection:"end",newRange:[u,l]}}const P=r?{nextSelection:"end",newRange:[u,c]}:{nextSelection:"end",newRange:[u,null]};return c&&e.isBeforeDay(u,c)?P:{nextSelection:"start",newRange:[c,u]}}function Vn(e){if(e.newDate==null)return[null,null];const[t,a]=e.range,{newRange:n}=et(e);if(!t||!a)return n;const[r,s]=n;return e.rangePosition==="end"?[a,s]:[r,t]}function $n(e){return at("MuiDateRangePickerDay",e)}const w=Ie("MuiDateRangePickerDay",["root","rangeIntervalDayHighlight","rangeIntervalDayHighlightStart","rangeIntervalDayHighlightEnd","rangeIntervalPreview","rangeIntervalDayPreview","rangeIntervalDayPreviewStart","rangeIntervalDayPreviewEnd","outsideCurrentMonth","startOfMonth","endOfMonth","firstVisibleCell","lastVisibleCell","hiddenDayFiller","day","dayOutsideRangeInterval","dayInsideRangeInterval","notSelectedDate"]),Ln=["className","classes","isEndOfHighlighting","isEndOfPreviewing","isHighlighting","isPreviewing","isStartOfHighlighting","isStartOfPreviewing","isVisuallySelected","sx","draggable","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],Bn=(e,t)=>{const{isDaySelected:a,isDayOutsideMonth:n,isDaySelectionStart:r,isDaySelectionEnd:s,isDayInsideSelection:i,isDayPreviewStart:c,isDayPreviewEnd:l,isDayPreviewed:u,isDayStartOfMonth:P,isDayEndOfMonth:y,isDayFirstVisibleCell:M,isDayLastVisibleCell:x,isDayFillerCell:S}=t;return rt({root:["root",a&&"rangeIntervalDayHighlight",r&&"rangeIntervalDayHighlightStart",s&&"rangeIntervalDayHighlightEnd",n&&"outsideCurrentMonth",P&&"startOfMonth",y&&"endOfMonth",M&&"firstVisibleCell",x&&"lastVisibleCell",S&&"hiddenDayFiller"],rangeIntervalPreview:["rangeIntervalPreview",u&&"rangeIntervalDayPreview",(c||P)&&"rangeIntervalDayPreviewStart",(l||y)&&"rangeIntervalDayPreviewEnd"],day:["day",!a&&"notSelectedDate",!a&&"dayOutsideRangeInterval",!i&&"dayInsideRangeInterval"]},$n,e)},Se={borderTopRightRadius:"50%",borderBottomRightRadius:"50%"},ke={borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"},_n=X("div",{name:"MuiDateRangePickerDay",slot:"Root",overridesResolver:(e,t)=>[{[`&.${w.rangeIntervalDayHighlight}`]:t.rangeIntervalDayHighlight},{[`&.${w.rangeIntervalDayHighlightStart}`]:t.rangeIntervalDayHighlightStart},{[`&.${w.rangeIntervalDayHighlightEnd}`]:t.rangeIntervalDayHighlightEnd},{[`&.${w.firstVisibleCell}`]:t.firstVisibleCell},{[`&.${w.lastVisibleCell}`]:t.lastVisibleCell},{[`&.${w.startOfMonth}`]:t.startOfMonth},{[`&.${w.endOfMonth}`]:t.endOfMonth},{[`&.${w.outsideCurrentMonth}`]:t.outsideCurrentMonth},{[`&.${w.hiddenDayFiller}`]:t.hiddenDayFiller},t.root]})(({theme:e})=>({variants:[{props:{isDayFillerCell:!1},style:{[`&:first-of-type .${w.rangeIntervalDayPreview}`]:d({},ke,{borderLeftColor:(e.vars||e).palette.divider}),[`&:last-of-type .${w.rangeIntervalDayPreview}`]:d({},Se,{borderRightColor:(e.vars||e).palette.divider})}},{props:{isDayFillerCell:!1,isDaySelected:!0},style:{borderRadius:0,color:(e.vars||e).palette.primary.contrastText,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Wa(e.palette.primary.main,e.palette.action.focusOpacity),"&:first-of-type":ke,"&:last-of-type":Se}},{props:({ownerState:{isDayFillerCell:t,isDaySelectionStart:a,isDayFirstVisibleCell:n}})=>!t&&(a||n),style:d({},ke,{paddingLeft:0})},{props:({ownerState:{isDayFillerCell:t,isDaySelectionEnd:a,isDayLastVisibleCell:n}})=>!t&&(a||n),style:d({},Se,{paddingRight:0})}]})),Hn=X("div",{name:"MuiDateRangePickerDay",slot:"RangeIntervalPreview",overridesResolver:(e,t)=>[{[`&.${w.rangeIntervalDayPreview}`]:t.rangeIntervalDayPreview},{[`&.${w.rangeIntervalDayPreviewStart}`]:t.rangeIntervalDayPreviewStart},{[`&.${w.rangeIntervalDayPreviewEnd}`]:t.rangeIntervalDayPreviewEnd},t.rangeIntervalPreview]})(({theme:e})=>({border:"2px solid transparent",variants:[{props:{isDayPreviewed:!0,isDayFillerCell:!1},style:{borderRadius:0,border:`2px dashed ${(e.vars||e).palette.divider}`,borderLeftColor:"transparent",borderRightColor:"transparent"}},{props:({ownerState:{isDayPreviewed:t,isDayFillerCell:a,isDayPreviewStart:n,isDayFirstVisibleCell:r}})=>t&&!a&&(n||r),style:d({borderLeftColor:(e.vars||e).palette.divider},ke)},{props:({ownerState:{isDayPreviewed:t,isDayFillerCell:a,isDayPreviewEnd:n,isDayLastVisibleCell:r}})=>t&&!a&&(n||r),style:d({borderRightColor:(e.vars||e).palette.divider},Se)}]})),Un=X(ba,{name:"MuiDateRangePickerDay",slot:"Day",overridesResolver:(e,t)=>[{[`&.${w.dayInsideRangeInterval}`]:t.dayInsideRangeInterval},{[`&.${w.dayOutsideRangeInterval}`]:t.dayOutsideRangeInterval},{[`&.${w.notSelectedDate}`]:t.notSelectedDate},t.day]})({transform:"scale(1.1)","& > *":{transform:"scale(0.9)"},variants:[{props:{draggable:!0},style:{cursor:"grab",touchAction:"none"}}]}),Wn=p.forwardRef(function(t,a){const n=ne({props:t,name:"MuiDateRangePickerDay"}),{className:r,classes:s,isEndOfHighlighting:i,isEndOfPreviewing:c,isHighlighting:l,isPreviewing:u,isStartOfHighlighting:P,isStartOfPreviewing:y,isVisuallySelected:M,sx:x,draggable:S,isFirstVisibleCell:T,isLastVisibleCell:C,day:b,selected:j,disabled:E,today:D,outsideCurrentMonth:h,disableMargin:R,disableHighlightToday:A,showDaysOutsideCurrentMonth:O}=n,B=L(n,Ln);je("x-date-pickers-pro","MTc1ODA2NzIwMDAwMA==");const W=K(),V=xa({day:b,selected:j,disabled:E,today:D,outsideCurrentMonth:h,disableMargin:R,disableHighlightToday:A,showDaysOutsideCurrentMonth:O}),z=d({},V,{isDaySelectionStart:P,isDaySelectionEnd:i,isDayInsideSelection:l&&!P&&!i,isDaySelected:l,isDayPreviewed:u,isDayPreviewStart:y,isDayPreviewEnd:c,isDayInsidePreview:u&&!y&&!c,isDayStartOfMonth:W.isSameDay(b,W.startOfMonth(b)),isDayEndOfMonth:W.isSameDay(b,W.endOfMonth(b)),isDayFirstVisibleCell:T,isDayLastVisibleCell:C,isDayFillerCell:h&&!O}),Q=Bn(s,z);return g.jsx(_n,{className:nt(Q.root,r),ownerState:z,sx:x,children:g.jsx(Hn,{className:Q.rangeIntervalPreview,ownerState:z,children:g.jsx(Un,d({},B,{ref:a,day:b,selected:M,disabled:E,today:D,outsideCurrentMonth:h,disableMargin:!0,disableHighlightToday:A,showDaysOutsideCurrentMonth:O,className:Q.day,ownerState:z,draggable:S,isFirstVisibleCell:T,isLastVisibleCell:C}))})})}),Xn=p.memo(Wn),ae=(e,t,a)=>{const n=e.dataset.timestamp;if(!n)return null;const r=+n;return t.date(new Date(r).toISOString(),a)},zn=e=>e.target.dataset.timestamp===e.dataTransfer.getData("draggingDate"),Ot=e=>e&&(e instanceof HTMLButtonElement&&!e.disabled?e:e.children.length?Ot(e.children[0]):null),Je=(e,t)=>{if(e.changedTouches?.length===1&&e.touches.length<=1){const a=document.elementFromPoint(e.changedTouches[0].clientX,e.changedTouches[0].clientY),n=Ot(a);return t&&n===e.changedTouches[0].target?null:n}return null},qn=({adapter:e,setRangeDragDay:t,setIsDragging:a,isDragging:n,onDatePositionChange:r,onDrop:s,disableDragEditing:i,dateRange:c,timezone:l})=>{const u=p.useRef(null);p.useEffect(()=>{u.current=document.createElement("img"),u.current.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},[]);const P=D=>{if(D==null)return!1;const h=!i&&!!c[0]&&!!c[1],R=ve(e,D,c),A=ce(e,D,c);return h&&(R||A)},y=Y(D=>{const h=ae(D.target,e,l);if(!P(h))return;D.stopPropagation(),u.current&&D.dataTransfer.setDragImage(u.current,0,0),t(h),D.dataTransfer.effectAllowed="move",a(!0);const R=D.target.dataset;R.timestamp&&D.dataTransfer.setData("draggingDate",R.timestamp),R.position&&r(R.position)}),M=Y(D=>{const h=Je(D);if(!h)return;const R=ae(h,e,l);P(R)&&t(R)}),x=Y(D=>{n&&(D.preventDefault(),D.stopPropagation(),D.dataTransfer.dropEffect="move",t(ae(D.target,e,l)))}),S=Y(D=>{const h=Je(D);if(!h)return;const R=ae(h,e,l);if(R&&t(R),!(h===D.changedTouches[0].target)||!P(R))return;a(!0);const B=D.target.dataset;B.position&&r(B.position)}),T=Y(D=>{n&&(D.preventDefault(),D.stopPropagation())}),C=Y(D=>{n&&(D.preventDefault(),D.stopPropagation(),D.dataTransfer.dropEffect="move")}),b=Y(D=>{if(!n)return;t(null),a(!1);const h=Je(D,!0);if(!h)return;h.focus();const R=ae(h,e,l);R&&s(R)}),j=Y(D=>{n&&(D.preventDefault(),D.stopPropagation(),a(!1),t(null))}),E=Y(D=>{if(!n||(D.preventDefault(),D.stopPropagation(),a(!1),t(null),D.currentTarget.focus(),zn(D)))return;const h=ae(D.target,e,l);h&&s(h)});return{onDragStart:y,onDragEnter:x,onDragLeave:T,onDragOver:C,onDragEnd:j,onDrop:E,onTouchStart:M,onTouchMove:S,onTouchEnd:b}},Kn=({disableDragEditing:e,adapter:t,onDatePositionChange:a,onDrop:n,dateRange:r,timezone:s})=>{const[i,c]=p.useState(!1),[l,u]=p.useState(null),P=Y(x=>{t.isEqual(x,l)||u(x)}),y=p.useMemo(()=>{const[x,S]=r;if(l){if(x&&t.isBefore(l,x))return"start";if(S&&t.isAfter(l,S))return"end"}return null},[r,l,t]),M=qn({adapter:t,onDatePositionChange:a,onDrop:n,setIsDragging:c,isDragging:i,setRangeDragDay:P,disableDragEditing:e,dateRange:r,timezone:s});return p.useMemo(()=>d({isDragging:i,rangeDragDay:l,draggingDatePosition:y},e?{}:M),[i,l,y,e,M])},st=e=>{const[t,a]=Xa({name:"useRangePosition",state:"rangePosition",controlled:e.rangePosition,default:e.defaultRangePosition??"start"}),n=Y(r=>{a(r),e.onRangePositionChange?.(r)});return{rangePosition:t,setRangePosition:n}},Gn=40,Qn=["calendars","month","monthIndex","labelId"],Jn=["format","slots","slotProps","currentMonth","onMonthChange","disableFuture","disablePast","minDate","maxDate","timezone","reduceAnimations","views","view"],Zn=X(ka)({padding:"12px 16px 4px 16px",display:"flex",alignItems:"center",justifyContent:"space-between"}),er=p.forwardRef(function(t,a){const n=K(),r=Ce(),{calendars:s,month:i,monthIndex:c,labelId:l}=t,u=L(t,Qn),{format:P,slots:y,slotProps:M,currentMonth:x,onMonthChange:S,disableFuture:T,disablePast:C,minDate:b,maxDate:j,timezone:E}=u,D=L(u,Jn),h=Ma(x,{disableFuture:T,maxDate:j,timezone:E}),R=va(x,{disablePast:C,minDate:b,timezone:E});if(s===1)return g.jsx(Sa,d({},u,{labelId:l,ref:a}));const A=()=>S(n.addMonths(x,1)),O=()=>S(n.addMonths(x,-1));return g.jsx(Zn,d({},D,{ref:a,onGoToPrevious:O,onGoToNext:A,isPreviousHidden:c!==0,isPreviousDisabled:R,previousLabel:r.previousMonth,isNextHidden:c!==s-1,isNextDisabled:h,nextLabel:r.nextMonth,slots:y,slotProps:M,labelId:l,children:n.formatByString(i,P??`${n.formats.month} ${n.formats.year}`)}))}),tr=Ie("MuiDateRangePickerDay2",["root","dayOutsideMonth","today","disabled","fillerCell","previewStart","previewEnd","insidePreviewing","selectionStart","selectionEnd","insideSelection","startOfWeek","endOfWeek","startOfMonth","endOfMonth","previewed","selected","draggable"]),ar=["value","defaultValue","referenceDate","onChange","className","classes","disableFuture","disablePast","minDate","maxDate","shouldDisableDate","reduceAnimations","onMonthChange","rangePosition","defaultRangePosition","onRangePositionChange","calendars","currentMonthCalendarPosition","slots","slotProps","loading","renderLoading","disableHighlightToday","focusedView","onFocusedViewChange","readOnly","disabled","showDaysOutsideCurrentMonth","dayOfWeekFormatter","disableAutoMonthSwitching","autoFocus","fixedWeekNumber","disableDragEditing","displayWeekNumber","timezone","availableRangePositions","views","view","openTo","onViewChange"],nr=["isDragging","rangeDragDay","draggingDatePosition"],rr="MTc1ODA2NzIwMDAwMA==",or=X("div",{name:"MuiDateRangeCalendar",slot:"Root"})({display:"flex",flexDirection:"row"}),sr=X("div",{name:"MuiDateRangeCalendar",slot:"Container",overridesResolver:(e,t)=>t.monthContainer})(({theme:e})=>({"&:not(:last-of-type)":{borderRight:`1px solid ${(e.vars||e).palette.divider}`}})),ir=(Gn+Ea*2)*6,lr=X(ja)(({theme:e})=>({minWidth:312,minHeight:ir,[`&.${bt.dayDragging}`]:{[`& .${tr.root}, & .${w.day}`]:{cursor:"grabbing"},[`& .${w.root}:not(.${w.rangeIntervalDayHighlightStart}):not(.${w.rangeIntervalDayHighlightEnd}) .${w.day}:not(.${w.notSelectedDate})`]:{opacity:.6}},[`&:not(.${bt.dayDragging}) .${w.dayOutsideRangeInterval}`]:{"@media (pointer: fine)":{"&:hover":{border:`1px solid ${(e.vars||e).palette.grey[500]}`}}}})),cr=lr;function dr(e,t){const a=ne({props:e,name:t}),n=Ya(a.reduceAnimations),r=tt(a);return d({},a,r,{renderLoading:a.renderLoading??(()=>g.jsx("span",{children:"..."})),reduceAnimations:n,loading:e.loading??!1,openTo:a.openTo??"day",views:a.views??["day"],calendars:a.calendars??2,disableDragEditing:a.disableDragEditing??!1,availableRangePositions:a.availableRangePositions??["start","end"]})}const ur=(e,t)=>{const a={root:["root"],monthContainer:["monthContainer"],dayCalendar:[t.isDraggingDay&&"dayDragging"]};return rt(a,Nn,e)},gr=p.forwardRef(function(t,a){const n=dr(t,"MuiDateRangeCalendar"),r=It(Mt,{defaultMatches:!1}),{value:s,defaultValue:i,referenceDate:c,onChange:l,className:u,classes:P,disableFuture:y,disablePast:M,minDate:x,maxDate:S,shouldDisableDate:T,reduceAnimations:C,onMonthChange:b,rangePosition:j,defaultRangePosition:E,onRangePositionChange:D,calendars:h,currentMonthCalendarPosition:R=1,slots:A,slotProps:O,loading:B,renderLoading:W,disableHighlightToday:V,focusedView:z,onFocusedViewChange:Q,readOnly:ue,disabled:ie,showDaysOutsideCurrentMonth:Ae,dayOfWeekFormatter:Oe,disableAutoMonthSwitching:Ne,autoFocus:Fe,fixedWeekNumber:Ve,disableDragEditing:Lt,displayWeekNumber:Bt,timezone:_t,availableRangePositions:Ht,views:Ut,view:Wt,openTo:Xt,onViewChange:zt}=n,qt=L(n,ar),lt=Za(),{value:F,handleValueChange:Kt,timezone:ge}=wa({name:"DateRangeCalendar",timezone:_t,value:s,referenceDate:c,defaultValue:i,onChange:l,valueManager:de}),{view:Z,setFocusedView:$e,focusedView:Le,setValueAndGoToNextView:Gt}=Ca({view:Wt,views:Ut,openTo:Xt,onChange:Kt,onViewChange:zt,autoFocus:Fe,focusedView:z,onFocusedViewChange:Q}),m=K(),Qt=za(),{rangePosition:_,setRangePosition:ct}=st({rangePosition:j??lt?.rangePosition,defaultRangePosition:E,onRangePositionChange:D??lt?.setRangePosition}),Jt=Y(f=>{_!==f&&ct(f)}),dt=Y((f,k,I=!1)=>{const{nextSelection:N,newRange:U}=et({newDate:f,adapter:m,range:F,rangePosition:_,allowRangeFlip:I,shouldMergeDateAndTime:!0,referenceDate:c}),le=Ht.includes(N);le&&ct(N);const qe=_==="end"&&se(m,U);Gt(U,qe||!le?"finish":"partial",Z)}),Zt=Y(f=>{dt(f,void 0,!0)}),ut=Lt||ie||ue,$=p.useMemo(()=>[m.isValid(F[0])?m.startOfDay(F[0]):F[0],m.isValid(F[1])?m.endOfDay(F[1]):F[1]],[F,m]),gt=Kn({disableDragEditing:ut,onDrop:Zt,onDatePositionChange:Jt,adapter:m,dateRange:$,timezone:ge}),{isDragging:ee,rangeDragDay:Be,draggingDatePosition:Dt}=gt,ea=L(gt,nr),{ownerState:ta}=Ia(),_e=d({},ta,{isDraggingDay:ee}),He=ur(P,_e),De=p.useMemo(()=>{if(!$[0]||!$[1]||!Be)return[null,null];const f=et({adapter:m,range:$,newDate:Be,rangePosition:_,allowRangeFlip:!0}).newRange;return f[0]!==null&&f[1]!==null?[m.startOfDay(f[0]),m.endOfDay(f[1])]:f},[_,Be,m,$]),pt=p.useMemo(()=>{if(T)return f=>T(f,Dt||_)},[T,_,Dt]),{calendarState:te,setVisibleDate:Ue,onMonthSwitchingAnimationEnd:aa}=Ta({value:F[0]||F[1],referenceDate:At(c,_),disableFuture:y,disablePast:M,maxDate:S,minDate:x,onMonthChange:b,reduceAnimations:C,shouldDisableDate:pt,timezone:ge,getCurrentMonthFromVisibleDate:(f,k)=>{const I=m.addMonths(k,1-R),N=m.endOfMonth(m.addMonths(I,h-1));return m.isWithinRange(f,[I,N])?k:m.isAfter(f,N)?m.startOfMonth(m.addMonths(f,R-1)):m.startOfMonth(m.addMonths(f,R-h))}}),mt=A?.calendarHeader??er,na=ot({elementType:mt,externalSlotProps:O?.calendarHeader,additionalProps:{calendars:h,views:["day"],view:"day",currentMonth:te.currentMonth,onMonthChange:f=>Ue({target:f,reason:"header-navigation"}),minDate:x,maxDate:S,disabled:ie,disablePast:M,disableFuture:y,reduceAnimations:C,timezone:ge,slots:A,slotProps:O},ownerState:_e}),We=p.useRef(null);p.useEffect(()=>{const f=_==="start"?F[0]:F[1];if(!m.isValid(f))return;const k=_==="start"?We.current?.[0]:We.current?.[1];if(We.current=F,Ne&&k&&m.isEqual(k,f))return;const I=h-R,N=m.getMonth(te.currentMonth),U=m.getMonth(f);if(!m.isSameYear(te.currentMonth,f)||U<N||U>N+I){const le=_==="start"?f:m.addMonths(f,-I);Ue({target:le,reason:"controlled-value-change"})}},[_,F]);const ra={disablePast:M,disableFuture:y,maxDate:S,minDate:x},oa={disableHighlightToday:V,readOnly:ue,disabled:ie},[ft,ht]=p.useState(null),sa=p.useMemo(()=>({onMouseLeave:()=>ht(null)}),[]),Xe=Vn({adapter:m,range:$,newDate:ft,rangePosition:_}),ia=Y((f,k)=>{let I;$[0]==null&&$[1]==null||Qe(m,k,$)?I=null:I=k,Ze(m,I,ft)||ht(I)}),la=d({day:Xn},A),ca=d({},O,{day:f=>{const{day:k,isDaySelected:I}=f,N=ve(m,k,$),U=ce(m,k,$),qe=!ut&&$[0]&&$[1]&&(N||U);let Ke;N?Ke="start":U&&(Ke="end");const yt=ee?ve(m,k,De):N,Da=ee?ce(m,k,De):U;return d({isPreviewing:r?Qe(m,k,Xe):!1,isStartOfPreviewing:r?ve(m,k,Xe):!1,isEndOfPreviewing:r?ce(m,k,Xe):!1,isHighlighting:Qe(m,k,ee?De:$),isStartOfHighlighting:yt,isEndOfHighlighting:ee?ce(m,k,De):U,onMouseEnter:r?ia:void 0,isVisuallySelected:I||ee&&(yt||Da),"data-position":Ke},ea,{draggable:qe?!0:void 0},Te(O?.day,f)??{})}}),da=p.useMemo(()=>Array.from({length:h}).map((f,k)=>k),[h]),ua=p.useMemo(()=>{const f=m.addMonths(te.currentMonth,1-R);return Array.from({length:h}).map((k,I)=>m.addMonths(f,I))},[m,te.currentMonth,h,R]),ga=Le!==null,ze=p.useRef(Z);return p.useEffect(()=>{ze.current!==Z&&(Le===ze.current&&$e(Z,!0),ze.current=Z)},[Le,$e,Z]),g.jsxs(or,d({ref:a,className:nt(He.root,u),ownerState:_e},qt,{children:[g.jsx(On,{packageName:"x-date-pickers-pro",releaseInfo:rr}),da.map(f=>{const k=ua[f],I=`${Qt}-grid-${f}-label`;return g.jsxs(sr,{className:He.monthContainer,children:[g.jsx(mt,d({},na,{month:k,monthIndex:f,labelId:I})),g.jsx(cr,d({className:He.dayCalendar},te,ra,oa,{onMonthSwitchingAnimationEnd:aa,onFocusedDayChange:N=>Ue({target:N,reason:"cell-interaction"}),reduceAnimations:C,selectedDays:F,onSelectedDaysChange:dt,currentMonth:k,TransitionProps:sa,shouldDisableDate:pt,hasFocus:ga,onFocusedViewChange:N=>$e("day",N),showDaysOutsideCurrentMonth:h===1&&Ae,dayOfWeekFormatter:Oe,loading:B,renderLoading:W,slots:la,slotProps:ca,fixedWeekNumber:Ve,displayWeekNumber:Bt,timezone:ge,gridLabelId:I}))]},f)})]}))}),Nt=({views:e,view:t,onViewChange:a,focusedView:n,onFocusedViewChange:r,value:s,defaultValue:i,referenceDate:c,onChange:l,className:u,classes:P,disableFuture:y,disablePast:M,minDate:x,maxDate:S,shouldDisableDate:T,reduceAnimations:C,onMonthChange:b,calendars:j,currentMonthCalendarPosition:E,slots:D,slotProps:h,loading:R,renderLoading:A,disableHighlightToday:O,readOnly:B,disabled:W,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:z,disableAutoMonthSwitching:Q,sx:ue,autoFocus:ie,fixedWeekNumber:Ae,disableDragEditing:Oe,displayWeekNumber:Ne,timezone:Fe,availableRangePositions:Ve})=>g.jsx(gr,{view:t,views:e,onViewChange:a,focusedView:n&&Aa(n)?n:null,onFocusedViewChange:r,value:s,defaultValue:i,referenceDate:c,onChange:l,className:u,classes:P,disableFuture:y,disablePast:M,minDate:x,maxDate:S,shouldDisableDate:T,reduceAnimations:C,onMonthChange:b,calendars:j,currentMonthCalendarPosition:E,slots:D,slotProps:h,loading:R,renderLoading:A,disableHighlightToday:O,readOnly:B,disabled:W,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:z,disableAutoMonthSwitching:Q,sx:ue,autoFocus:ie,fixedWeekNumber:Ae,disableDragEditing:Oe,displayWeekNumber:Ne,timezone:Fe,availableRangePositions:Ve}),Dr=["shouldDisableDate"],Ee=({adapter:e,value:t,timezone:a,props:n})=>{const[r,s]=t,{shouldDisableDate:i}=n,c=L(n,Dr),l=[Rt({adapter:e,value:r,timezone:a,props:d({},c,{shouldDisableDate:u=>!!i?.(u,"start")})}),Rt({adapter:e,value:s,timezone:a,props:d({},c,{shouldDisableDate:u=>!!i?.(u,"end")})})];return l[0]||l[1]?l:r===null||s===null?[null,null]:se(e,t)?[null,null]:["invalidRange","invalidRange"]};Ee.valueManager=de;function pr(e={}){const{enableAccessibleFieldDOMStructure:t=!0,dateSeparator:a}=e;return p.useMemo(()=>({valueType:"date",validator:Ee,internal_valueManager:de,internal_fieldValueManager:Ga({dateSeparator:a}),internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:fr,internal_useOpenPickerButtonAriaLabel:mr}),[t,a])}function mr(e){const t=K(),a=Ce();return p.useMemo(()=>a.openRangePickerDialogue(Fn(t,e,"fullDate")),[e,a,t])}function fr(e){const t=K(),a=tt(e);return p.useMemo(()=>d({},e,a,{format:e.format??t.formats.keyboardDate}),[e,a,t])}const hr=e=>{const t=pr(e);return Oa({manager:t,props:e})},yr=["slots","slotProps"],it=p.forwardRef(function(t,a){const n=ne({props:t,name:"MuiSingleInputDateRangeField"}),{slots:r,slotProps:s}=n,i=L(n,yr),c=Na({slotProps:s,ref:a,externalForwardedProps:i}),l=hr(c);return g.jsx(Fa,{slots:r,slotProps:s,inputRef:i.inputRef,children:g.jsx(Va,{fieldResponse:l,defaultOpenPickerIcon:$a})})});it.fieldType="single-input";function Ft(e){const{steps:t,rangePositionResponse:a}=e;return La({steps:t,isViewMatchingStep:(n,r)=>r.rangePosition!==a.rangePosition?!1:r.views==null||r.views.includes(n),onStepChange:({step:n,defaultView:r,setView:s,view:i,views:c})=>{n.rangePosition!==a.rangePosition&&a.setRangePosition(n.rangePosition);const l=n.views==null?r:n.views.find(u=>c.includes(u));l!==i&&s(l)}})}const Pr=["props","steps"],Rr=["ownerState"],xr=e=>{let{props:t,steps:a}=e,n=L(e,Pr);je("x-date-pickers-pro","MTc1ODA2NzIwMDAwMA==");const{slots:r,slotProps:s,inputRef:i,localeText:c}=t,u=Tt(r.field)==="single-input",P=u?"dialog":"tooltip",y=st(t),M=Ft({steps:a,rangePositionResponse:y}),{providerProps:x,renderCurrentView:S,ownerState:T}=vt(d({},n,{props:t,variant:"desktop",autoFocusView:P==="dialog",viewContainerRole:P,localeText:c,getStepNavigation:M,onPopperExited:Y(()=>y.setRangePosition(t.defaultRangePosition??"start"))})),C=r.field,b=ot({elementType:C,externalSlotProps:s?.field,ownerState:T,additionalProps:{"data-active-range-position":x.contextValue.open?y.rangePosition:void 0}}),j=L(b,Rr),E=r?.layout??St;return{renderPicker:()=>g.jsx(kt,d({},x,{children:g.jsxs(Ye.Provider,{value:y,children:[g.jsx(C,d({},j,{slots:r,slotProps:s},u&&{inputRef:i})),g.jsx(Ba,{slots:r,slotProps:s,children:g.jsx(E,d({},s?.layout,{slots:r,slotProps:s,children:S()}))})]})}))}},Vt=p.forwardRef(function(t,a){const n=K(),r=Yt(t,"MuiDesktopDateRangePicker"),s=d({day:Nt},r.viewRenderers),i=d({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:s,format:r.format??n.formats.keyboardDate,calendars:r.calendars??2,views:["day"],openTo:"day",slots:d({field:it},r.slots),slotProps:d({},r.slotProps,{field:l=>d({},Te(r.slotProps?.field,l),wt(r)),toolbar:d({hidden:!0},r.slotProps?.toolbar)})}),{renderPicker:c}=xr({ref:a,props:i,valueManager:de,valueType:"date",validator:Ee,steps:null});return c()});Vt.propTypes={autoFocus:o.bool,calendars:o.oneOf([1,2,3]),className:o.string,closeOnSelect:o.bool,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ct,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onRangePositionChange:o.func,onSelectedSectionsChange:o.func,open:o.bool,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})};const br=["props","steps"],Mr=["ownerState"],vr=e=>{let{props:t,steps:a}=e,n=L(e,br);je("x-date-pickers-pro","MTc1ODA2NzIwMDAwMA==");const{slots:r,slotProps:s,label:i,inputRef:c,localeText:l}=t,u=Tt(r.field),P=u==="single-input",y=st(t),M=Ce(),x=Ft({steps:a,rangePositionResponse:y}),{providerProps:S,renderCurrentView:T,ownerState:C}=vt(d({},n,{props:t,variant:"mobile",autoFocusView:!0,viewContainerRole:"dialog",localeText:l,getStepNavigation:x,onPopperExited:Y(()=>y.setRangePosition(t.defaultRangePosition??"start"))})),b=S.privateContextValue.labelId,j=s?.toolbar?.hidden??!1,E=r.field,D=ot({elementType:E,externalSlotProps:s?.field,additionalProps:d({},P&&j&&{id:b}),ownerState:C}),h=L(D,Mr),R=r?.layout??St,A=d({},M,l);let O=n.valueType==="date-time"?`${b}-start-toolbar ${b}-end-toolbar`:b;if(j){const V=[];u==="multi-input"?(A.start&&V.push(`${b}-start-label`),A.end&&V.push(`${b}-end-label`)):i!=null&&V.push(`${b}-label`),O=V.length>0?V.join(" "):void 0}const B=d({},s,{toolbar:d({},s?.toolbar,{titleId:b}),mobilePaper:d({"aria-labelledby":O},s?.mobilePaper)},u==="multi-input"&&{textField:V=>d({},Te(s?.textField,V),{id:`${b}-${V.position}`})});return{renderPicker:()=>g.jsx(kt,d({},S,{children:g.jsxs(Ye.Provider,{value:y,children:[g.jsx(E,d({},h,{slots:r,slotProps:B},P&&{inputRef:c})),g.jsx(_a,{slots:r,slotProps:B,children:g.jsx(R,d({},B?.layout,{slots:r,slotProps:B,children:T()}))})]})}))}},$t=p.forwardRef(function(t,a){const n=K(),r=Yt(t,"MuiMobileDateRangePicker"),s=d({day:Nt},r.viewRenderers),i=d({},r,{viewRenderers:s,format:r.format??n.formats.keyboardDate,calendars:1,currentMonthCalendarPosition:1,views:["day"],openTo:"day",slots:d({field:it},r.slots),slotProps:d({},r.slotProps,{field:l=>d({},Te(r.slotProps?.field,l),wt(r)),toolbar:d({hidden:!1},r.slotProps?.toolbar)})}),{renderPicker:c}=vr({ref:a,props:i,valueManager:de,valueType:"date",validator:Ee,steps:null});return c()});$t.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,currentMonthCalendarPosition:o.oneOf([1,2,3]),dayOfWeekFormatter:o.func,defaultRangePosition:o.oneOf(["end","start"]),defaultValue:o.arrayOf(o.object),disableAutoMonthSwitching:o.bool,disabled:o.bool,disableDragEditing:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Ct,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onRangePositionChange:o.func,onSelectedSectionsChange:o.func,open:o.bool,rangePosition:o.oneOf(["end","start"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.oneOfType([o.arrayOf(o.object),o.object]),renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.arrayOf(o.object),viewRenderers:o.shape({day:o.func})};const Sr=["desktopModeMediaQuery"],kr=p.forwardRef(function(t,a){const n=ne({props:t,name:"MuiDateRangePicker"}),{desktopModeMediaQuery:r=Mt}=n,s=L(n,Sr);return It(r,{defaultMatches:!0})?g.jsx(Vt,d({ref:a},s)):g.jsx($t,d({ref:a},s))}),G=({label:e,startDate:t,endDate:a,onDateRangeChange:n,minDate:r,maxDate:s,disabled:i,readOnly:c,slotProps:l,...u})=>{const P=[t,a],y=M=>{n(M[0],M[1])};return g.jsx(Ha,{dateAdapter:Ua,children:g.jsx(kr,{localeText:{start:"Fecha de Inicio",end:"Fecha de Fin"},value:P,onChange:y,minDate:r,maxDate:s,disabled:i,readOnly:c,slotProps:l,...u})})};G.__docgenInfo={description:"",methods:[],displayName:"DateRangePicker",props:{label:{required:!1,tsType:{name:"string"},description:""},startDate:{required:!0,tsType:{name:"union",raw:"Dayjs | null",elements:[{name:"Dayjs"},{name:"null"}]},description:""},endDate:{required:!0,tsType:{name:"union",raw:"Dayjs | null",elements:[{name:"Dayjs"},{name:"null"}]},description:""},onDateRangeChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(start: Dayjs | null, end: Dayjs | null) => void",signature:{arguments:[{type:{name:"union",raw:"Dayjs | null",elements:[{name:"Dayjs"},{name:"null"}]},name:"start"},{type:{name:"union",raw:"Dayjs | null",elements:[{name:"Dayjs"},{name:"null"}]},name:"end"}],return:{name:"void"}}},description:""},minDate:{required:!1,tsType:{name:"Dayjs"},description:""},maxDate:{required:!1,tsType:{name:"Dayjs"},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:""},readOnly:{required:!1,tsType:{name:"boolean"},description:""},slotProps:{required:!1,tsType:{name:"any"},description:""}}};const wr=`
|
|
11
|
+
import React, { useState } from 'react';
|
|
12
|
+
import { DateRangePicker } from './DateRangePicker'; // Ajusta la ruta si es necesario
|
|
13
|
+
import dayjs from 'dayjs';
|
|
14
|
+
import { Box, Typography } from '@mui/material';
|
|
15
|
+
|
|
16
|
+
export const BasicDateRangePickerExample = () => {
|
|
17
|
+
const [startDate, setStartDate] = useState(dayjs('2023-01-01'));
|
|
18
|
+
const [endDate, setEndDate] = useState(dayjs('2023-01-31'));
|
|
19
|
+
|
|
20
|
+
const handleDateRangeChange = (start, end) => {
|
|
21
|
+
setStartDate(start);
|
|
22
|
+
setEndDate(end);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<Box sx={{ width: 400, display: 'flex', flexDirection: 'column', gap: 2 }}>
|
|
27
|
+
<DateRangePicker
|
|
28
|
+
label="Seleccionar Rango"
|
|
29
|
+
startDate={startDate}
|
|
30
|
+
endDate={endDate}
|
|
31
|
+
onDateRangeChange={handleDateRangeChange}
|
|
32
|
+
/>
|
|
33
|
+
<Typography sx={{ mt: 2 }}>
|
|
34
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
35
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
36
|
+
</Typography>
|
|
37
|
+
</Box>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
`,Cr=`
|
|
41
|
+
import React, { useState } from 'react';
|
|
42
|
+
import { DateRangePicker } from './DateRangePicker'; // Ajusta la ruta si es necesario
|
|
43
|
+
import dayjs from 'dayjs';
|
|
44
|
+
import { Box, Typography } from '@mui/material';
|
|
45
|
+
|
|
46
|
+
export const DateRangePickerWithMinMaxExample = () => {
|
|
47
|
+
const [startDate, setStartDate] = useState(dayjs('2023-06-10'));
|
|
48
|
+
const [endDate, setEndDate] = useState(dayjs('2023-06-20'));
|
|
49
|
+
const minDate = dayjs('2023-06-01');
|
|
50
|
+
const maxDate = dayjs('2023-06-30');
|
|
51
|
+
|
|
52
|
+
const handleDateRangeChange = (start, end) => {
|
|
53
|
+
setStartDate(start);
|
|
54
|
+
setEndDate(end);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<Box sx={{ width: 400, display: 'flex', flexDirection: 'column', gap: 2 }}>
|
|
59
|
+
<DateRangePicker
|
|
60
|
+
label="Rango de Junio"
|
|
61
|
+
startDate={startDate}
|
|
62
|
+
endDate={endDate}
|
|
63
|
+
onDateRangeChange={handleDateRangeChange}
|
|
64
|
+
minDate={minDate}
|
|
65
|
+
maxDate={maxDate}
|
|
66
|
+
/>
|
|
67
|
+
<Typography sx={{ mt: 2 }}>
|
|
68
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
69
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
70
|
+
</Typography>
|
|
71
|
+
<Typography variant="caption" color="text.secondary">
|
|
72
|
+
(Rango permitido: \${minDate.format('YYYY-MM-DD')} a \${maxDate.format('YYYY-MM-DD')})
|
|
73
|
+
</Typography>
|
|
74
|
+
</Box>
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
`,Ir=`
|
|
78
|
+
import React, { useState } from 'react';
|
|
79
|
+
import { DateRangePicker } from './DateRangePicker'; // Ajusta la ruta si es necesario
|
|
80
|
+
import dayjs from 'dayjs';
|
|
81
|
+
import { Box, Typography } from '@mui/material';
|
|
82
|
+
|
|
83
|
+
export const DateRangePickerDisabledExample = () => {
|
|
84
|
+
const [startDate, setStartDate] = useState(dayjs('2023-01-01'));
|
|
85
|
+
const [endDate, setEndDate] = useState(dayjs('2023-01-31'));
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<Box sx={{ width: 400, display: 'flex', flexDirection: 'column', gap: 2 }}>
|
|
89
|
+
<DateRangePicker
|
|
90
|
+
label="Rango Deshabilitado"
|
|
91
|
+
startDate={startDate}
|
|
92
|
+
endDate={endDate}
|
|
93
|
+
onDateRangeChange={() => {}}
|
|
94
|
+
disabled
|
|
95
|
+
/>
|
|
96
|
+
<Typography sx={{ mt: 2 }}>
|
|
97
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
98
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
99
|
+
</Typography>
|
|
100
|
+
</Box>
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
`,Tr=`
|
|
104
|
+
import React, { useState } from 'react';
|
|
105
|
+
import { DateRangePicker } from './DateRangePicker'; // Ajusta la ruta si es necesario
|
|
106
|
+
import dayjs from 'dayjs';
|
|
107
|
+
import { Box, Typography } from '@mui/material';
|
|
108
|
+
|
|
109
|
+
export const DateRangePickerReadOnlyExample = () => {
|
|
110
|
+
const [startDate, setStartDate] = useState(dayjs('2024-07-01'));
|
|
111
|
+
const [endDate, setEndDate] = useState(dayjs('2024-07-15'));
|
|
112
|
+
|
|
113
|
+
return (
|
|
114
|
+
<Box sx={{ width: 400, display: 'flex', flexDirection: 'column', gap: 2 }}>
|
|
115
|
+
<DateRangePicker
|
|
116
|
+
label="Rango Solo Lectura"
|
|
117
|
+
startDate={startDate}
|
|
118
|
+
endDate={endDate}
|
|
119
|
+
onDateRangeChange={() => {}}
|
|
120
|
+
readOnly
|
|
121
|
+
/>
|
|
122
|
+
<Typography sx={{ mt: 2 }}>
|
|
123
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
124
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
125
|
+
</Typography>
|
|
126
|
+
</Box>
|
|
127
|
+
);
|
|
128
|
+
};
|
|
129
|
+
`,Yr=`
|
|
130
|
+
import React, { useState } from 'react';
|
|
131
|
+
import { DateRangePicker } from './DateRangePicker'; // Ajusta la ruta si es necesario
|
|
132
|
+
import dayjs from 'dayjs';
|
|
133
|
+
import { Box, Typography } from '@mui/material';
|
|
134
|
+
|
|
135
|
+
export const DateRangePickerWithInitialNullExample = () => {
|
|
136
|
+
const [startDate, setStartDate] = useState(null);
|
|
137
|
+
const [endDate, setEndDate] = useState(null);
|
|
138
|
+
|
|
139
|
+
const handleDateRangeChange = (start, end) => {
|
|
140
|
+
setStartDate(start);
|
|
141
|
+
setEndDate(end);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
return (
|
|
145
|
+
<Box sx={{ width: 400, display: 'flex', flexDirection: 'column', gap: 2 }}>
|
|
146
|
+
<DateRangePicker
|
|
147
|
+
label="Rango Sin Selección Inicial"
|
|
148
|
+
startDate={startDate}
|
|
149
|
+
endDate={endDate}
|
|
150
|
+
onDateRangeChange={handleDateRangeChange}
|
|
151
|
+
/>
|
|
152
|
+
<Typography sx={{ mt: 2 }}>
|
|
153
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
154
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
155
|
+
</Typography>
|
|
156
|
+
</Box>
|
|
157
|
+
);
|
|
158
|
+
};
|
|
159
|
+
`,jr=`
|
|
160
|
+
import React, { useState } from 'react';
|
|
161
|
+
import { DateRangePicker } from './DateRangePicker'; // Adjust path if necessary
|
|
162
|
+
import dayjs from 'dayjs';
|
|
163
|
+
import { Box, Typography } from '@mui/material';
|
|
164
|
+
|
|
165
|
+
export const DateRangePickerWithSizeExample = () => {
|
|
166
|
+
const [startDate, setStartDate] = useState(dayjs('2023-01-01'));
|
|
167
|
+
const [endDate, setEndDate] = useState(dayjs('2023-01-31'));
|
|
168
|
+
|
|
169
|
+
const handleDateRangeChange = (start, end) => {
|
|
170
|
+
setStartDate(start);
|
|
171
|
+
setEndDate(end);
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
return (
|
|
175
|
+
<Box sx={{ width: 400, display: 'flex', flexDirection: 'column', gap: 2 }}>
|
|
176
|
+
<DateRangePicker
|
|
177
|
+
label="Rango de Fechas (Tamaño Pequeño)"
|
|
178
|
+
startDate={startDate}
|
|
179
|
+
endDate={endDate}
|
|
180
|
+
onDateRangeChange={handleDateRangeChange}
|
|
181
|
+
slotProps={{ textField: { size: 'small' } }}
|
|
182
|
+
/>
|
|
183
|
+
<Typography sx={{ mt: 2 }}>
|
|
184
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
185
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
186
|
+
</Typography>
|
|
187
|
+
</Box>
|
|
188
|
+
);
|
|
189
|
+
};
|
|
190
|
+
`,Co={title:"Components/DateRangePicker",component:G,tags:["autodocs"],parameters:{layout:"centered",docs:{description:{component:"Un componente `DateRangePicker` personalizado que permite seleccionar un rango de fechas con un solo campo de entrada (visualmente dos inputs interconectados) y gestiona las fechas de inicio y fin."}}},argTypes:{label:{control:"text",description:"Etiqueta para el campo de entrada del rango de fechas."},startDate:{control:"object",description:"La fecha de inicio del rango.",type:{name:"object",required:!1,value:{}}},endDate:{control:"object",description:"La fecha de fin del rango.",type:{name:"object",required:!1,value:{}}},onDateRangeChange:{action:"dateRangeChanged",description:"Callback que se dispara cuando el rango de fechas cambia."},minDate:{control:"object",description:"La fecha mínima permitida para cualquier fecha en el rango."},maxDate:{control:"object",description:"La fecha máxima permitida para cualquier fecha en el rango."},disabled:{control:"boolean",description:"Si es verdadero, el selector de rango estará deshabilitado."},readOnly:{control:"boolean",description:"Si es verdadero, el selector de rango estará en modo de solo lectura."},slotProps:{control:"object",description:"Propiedades pasadas a los slots internos del DateRangePicker (e.g., `textField`)."}}},ye={render:()=>{const[e,t]=p.useState(H("2023-01-01")),[a,n]=p.useState(H("2023-01-31")),r=(s,i)=>{t(s),n(i)};return g.jsxs(re,{sx:{width:400,display:"flex",flexDirection:"column",gap:2},children:[g.jsx(G,{label:"Seleccionar Rango",startDate:e,endDate:a,onDateRangeChange:r}),g.jsxs(q,{sx:{mt:2},children:["Inicio: ",e?e.format("YYYY-MM-DD"):"N/A"," | Fin: ",a?a.format("YYYY-MM-DD"):"N/A"]})]})},parameters:{docs:{description:{story:"Un `DateRangePicker` básico que permite seleccionar un rango de fechas."},source:{code:wr.trim()}}}},Pe={render:()=>{const[e,t]=p.useState(H("2023-06-10")),[a,n]=p.useState(H("2023-06-20")),r=H("2023-06-01"),s=H("2023-06-30"),i=(c,l)=>{t(c),n(l)};return g.jsxs(re,{sx:{width:400,display:"flex",flexDirection:"column",gap:2},children:[g.jsx(G,{label:"Rango de Junio",startDate:e,endDate:a,onDateRangeChange:i,minDate:r,maxDate:s}),g.jsxs(q,{sx:{mt:2},children:["Inicio: ",e?e.format("YYYY-MM-DD"):"N/A"," | Fin: ",a?a.format("YYYY-MM-DD"):"N/A"]}),g.jsxs(q,{variant:"caption",color:"text.secondary",children:["(Rango permitido: $",r.format("YYYY-MM-DD")," a $",s.format("YYYY-MM-DD"),")"]})]})},parameters:{docs:{description:{story:"Muestra un `DateRangePicker` con fechas mínimas y máximas permitidas para el rango completo."},source:{code:Cr.trim()}}}},Re={render:()=>{const[e,t]=p.useState(H("2023-01-01")),[a,n]=p.useState(H("2023-01-31"));return g.jsxs(re,{sx:{width:400,display:"flex",flexDirection:"column",gap:2},children:[g.jsx(G,{label:"Rango Deshabilitado",startDate:e,endDate:a,onDateRangeChange:()=>{},disabled:!0}),g.jsxs(q,{sx:{mt:2},children:["Inicio: ",e?e.format("YYYY-MM-DD"):"N/A"," | Fin: ",a?a.format("YYYY-MM-DD"):"N/A"]})]})},parameters:{docs:{description:{story:"Demuestra un `DateRangePicker` en estado deshabilitado."},source:{code:Ir.trim()}}}},xe={render:()=>{const[e,t]=p.useState(H("2024-07-01")),[a,n]=p.useState(H("2024-07-15"));return g.jsxs(re,{sx:{width:400,display:"flex",flexDirection:"column",gap:2},children:[g.jsx(G,{label:"Rango Solo Lectura",startDate:e,endDate:a,onDateRangeChange:()=>{},readOnly:!0}),g.jsxs(q,{sx:{mt:2},children:["Inicio: ",e?e.format("YYYY-MM-DD"):"N/A"," | Fin: ",a?a.format("YYYY-MM-DD"):"N/A"]})]})},parameters:{docs:{description:{story:"Muestra el `DateRangePicker` en modo de solo lectura. El usuario puede ver el rango pero no modificarlo."},source:{code:Tr.trim()}}}},be={render:()=>{const[e,t]=p.useState(null),[a,n]=p.useState(null),r=(s,i)=>{t(s),n(i)};return g.jsxs(re,{sx:{width:400,display:"flex",flexDirection:"column",gap:2},children:[g.jsx(G,{label:"Rango Sin Selección Inicial",startDate:e,endDate:a,onDateRangeChange:r}),g.jsxs(q,{sx:{mt:2},children:["Inicio: ",e?e.format("YYYY-MM-DD"):"N/A"," | Fin: ",a?a.format("YYYY-MM-DD"):"N/A"]})]})},parameters:{docs:{description:{story:"Muestra un `DateRangePicker` sin fechas de inicio o fin seleccionadas inicialmente."},source:{code:Yr.trim()}}}},Me={render:()=>{const[e,t]=p.useState(H("2023-01-01")),[a,n]=p.useState(H("2023-01-31")),r=(s,i)=>{t(s),n(i)};return g.jsxs(re,{sx:{width:400,display:"flex",flexDirection:"column",gap:2},children:[g.jsx(G,{label:"Rango de Fechas (Tamaño Pequeño)",startDate:e,endDate:a,onDateRangeChange:r,slotProps:{textField:{size:"small"}}}),g.jsxs(q,{sx:{mt:2},children:["Inicio: ",e?e.format("YYYY-MM-DD"):"N/A"," | Fin: ",a?a.format("YYYY-MM-DD"):"N/A"]})]})},parameters:{docs:{description:{story:"Demuestra cómo aplicar diferentes tamaños (`small` o `medium`) a los campos de entrada del `DateRangePicker`."},source:{code:jr.trim()}}}};ye.parameters={...ye.parameters,docs:{...ye.parameters?.docs,source:{originalSource:`{
|
|
191
|
+
render: () => {
|
|
192
|
+
const [startDate, setStartDate] = useState<Dayjs | null>(dayjs('2023-01-01'));
|
|
193
|
+
const [endDate, setEndDate] = useState<Dayjs | null>(dayjs('2023-01-31'));
|
|
194
|
+
const handleDateRangeChange = (start: Dayjs | null, end: Dayjs | null) => {
|
|
195
|
+
setStartDate(start);
|
|
196
|
+
setEndDate(end);
|
|
197
|
+
};
|
|
198
|
+
return <Box sx={{
|
|
199
|
+
width: 400,
|
|
200
|
+
display: 'flex',
|
|
201
|
+
flexDirection: 'column',
|
|
202
|
+
gap: 2
|
|
203
|
+
}}>
|
|
204
|
+
<DateRangePicker label="Seleccionar Rango" startDate={startDate} endDate={endDate} onDateRangeChange={handleDateRangeChange} />
|
|
205
|
+
<Typography sx={{
|
|
206
|
+
mt: 2
|
|
207
|
+
}}>
|
|
208
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
209
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
210
|
+
</Typography>
|
|
211
|
+
</Box>;
|
|
212
|
+
},
|
|
213
|
+
parameters: {
|
|
214
|
+
docs: {
|
|
215
|
+
description: {
|
|
216
|
+
story: "Un \`DateRangePicker\` básico que permite seleccionar un rango de fechas."
|
|
217
|
+
},
|
|
218
|
+
source: {
|
|
219
|
+
code: BasicDateRangePickerDefinition.trim()
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}`,...ye.parameters?.docs?.source}}};Pe.parameters={...Pe.parameters,docs:{...Pe.parameters?.docs,source:{originalSource:`{
|
|
224
|
+
render: () => {
|
|
225
|
+
const [startDate, setStartDate] = useState<Dayjs | null>(dayjs('2023-06-10'));
|
|
226
|
+
const [endDate, setEndDate] = useState<Dayjs | null>(dayjs('2023-06-20'));
|
|
227
|
+
const minDate = dayjs('2023-06-01');
|
|
228
|
+
const maxDate = dayjs('2023-06-30');
|
|
229
|
+
const handleDateRangeChange = (start: Dayjs | null, end: Dayjs | null) => {
|
|
230
|
+
setStartDate(start);
|
|
231
|
+
setEndDate(end);
|
|
232
|
+
};
|
|
233
|
+
return <Box sx={{
|
|
234
|
+
width: 400,
|
|
235
|
+
display: 'flex',
|
|
236
|
+
flexDirection: 'column',
|
|
237
|
+
gap: 2
|
|
238
|
+
}}>
|
|
239
|
+
<DateRangePicker label="Rango de Junio" startDate={startDate} endDate={endDate} onDateRangeChange={handleDateRangeChange} minDate={minDate} maxDate={maxDate} />
|
|
240
|
+
<Typography sx={{
|
|
241
|
+
mt: 2
|
|
242
|
+
}}>
|
|
243
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
244
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
245
|
+
</Typography>
|
|
246
|
+
<Typography variant="caption" color="text.secondary">
|
|
247
|
+
(Rango permitido: \${minDate.format('YYYY-MM-DD')} a \${maxDate.format('YYYY-MM-DD')})
|
|
248
|
+
</Typography>
|
|
249
|
+
</Box>;
|
|
250
|
+
},
|
|
251
|
+
parameters: {
|
|
252
|
+
docs: {
|
|
253
|
+
description: {
|
|
254
|
+
story: "Muestra un \`DateRangePicker\` con fechas mínimas y máximas permitidas para el rango completo."
|
|
255
|
+
},
|
|
256
|
+
source: {
|
|
257
|
+
code: DateRangePickerWithMinMaxDefinition.trim()
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}`,...Pe.parameters?.docs?.source}}};Re.parameters={...Re.parameters,docs:{...Re.parameters?.docs,source:{originalSource:`{
|
|
262
|
+
render: () => {
|
|
263
|
+
const [startDate, setStartDate] = useState<Dayjs | null>(dayjs('2023-01-01'));
|
|
264
|
+
const [endDate, setEndDate] = useState<Dayjs | null>(dayjs('2023-01-31'));
|
|
265
|
+
return <Box sx={{
|
|
266
|
+
width: 400,
|
|
267
|
+
display: 'flex',
|
|
268
|
+
flexDirection: 'column',
|
|
269
|
+
gap: 2
|
|
270
|
+
}}>
|
|
271
|
+
<DateRangePicker label="Rango Deshabilitado" startDate={startDate} endDate={endDate} onDateRangeChange={() => {}} disabled />
|
|
272
|
+
<Typography sx={{
|
|
273
|
+
mt: 2
|
|
274
|
+
}}>
|
|
275
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
276
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
277
|
+
</Typography>
|
|
278
|
+
</Box>;
|
|
279
|
+
},
|
|
280
|
+
parameters: {
|
|
281
|
+
docs: {
|
|
282
|
+
description: {
|
|
283
|
+
story: "Demuestra un \`DateRangePicker\` en estado deshabilitado."
|
|
284
|
+
},
|
|
285
|
+
source: {
|
|
286
|
+
code: DateRangePickerDisabledDefinition.trim()
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}`,...Re.parameters?.docs?.source}}};xe.parameters={...xe.parameters,docs:{...xe.parameters?.docs,source:{originalSource:`{
|
|
291
|
+
render: () => {
|
|
292
|
+
const [startDate, setStartDate] = useState<Dayjs | null>(dayjs('2024-07-01'));
|
|
293
|
+
const [endDate, setEndDate] = useState<Dayjs | null>(dayjs('2024-07-15'));
|
|
294
|
+
return <Box sx={{
|
|
295
|
+
width: 400,
|
|
296
|
+
display: 'flex',
|
|
297
|
+
flexDirection: 'column',
|
|
298
|
+
gap: 2
|
|
299
|
+
}}>
|
|
300
|
+
<DateRangePicker label="Rango Solo Lectura" startDate={startDate} endDate={endDate} onDateRangeChange={() => {}} readOnly />
|
|
301
|
+
<Typography sx={{
|
|
302
|
+
mt: 2
|
|
303
|
+
}}>
|
|
304
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
305
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
306
|
+
</Typography>
|
|
307
|
+
</Box>;
|
|
308
|
+
},
|
|
309
|
+
parameters: {
|
|
310
|
+
docs: {
|
|
311
|
+
description: {
|
|
312
|
+
story: "Muestra el \`DateRangePicker\` en modo de solo lectura. El usuario puede ver el rango pero no modificarlo."
|
|
313
|
+
},
|
|
314
|
+
source: {
|
|
315
|
+
code: DateRangePickerReadOnlyDefinition.trim()
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}`,...xe.parameters?.docs?.source}}};be.parameters={...be.parameters,docs:{...be.parameters?.docs,source:{originalSource:`{
|
|
320
|
+
render: () => {
|
|
321
|
+
const [startDate, setStartDate] = useState<Dayjs | null>(null);
|
|
322
|
+
const [endDate, setEndDate] = useState<Dayjs | null>(null);
|
|
323
|
+
const handleDateRangeChange = (start: Dayjs | null, end: Dayjs | null) => {
|
|
324
|
+
setStartDate(start);
|
|
325
|
+
setEndDate(end);
|
|
326
|
+
};
|
|
327
|
+
return <Box sx={{
|
|
328
|
+
width: 400,
|
|
329
|
+
display: 'flex',
|
|
330
|
+
flexDirection: 'column',
|
|
331
|
+
gap: 2
|
|
332
|
+
}}>
|
|
333
|
+
<DateRangePicker label="Rango Sin Selección Inicial" startDate={startDate} endDate={endDate} onDateRangeChange={handleDateRangeChange} />
|
|
334
|
+
<Typography sx={{
|
|
335
|
+
mt: 2
|
|
336
|
+
}}>
|
|
337
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
338
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
339
|
+
</Typography>
|
|
340
|
+
</Box>;
|
|
341
|
+
},
|
|
342
|
+
parameters: {
|
|
343
|
+
docs: {
|
|
344
|
+
description: {
|
|
345
|
+
story: "Muestra un \`DateRangePicker\` sin fechas de inicio o fin seleccionadas inicialmente."
|
|
346
|
+
},
|
|
347
|
+
source: {
|
|
348
|
+
code: DateRangePickerWithInitialNullDefinition.trim()
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}`,...be.parameters?.docs?.source}}};Me.parameters={...Me.parameters,docs:{...Me.parameters?.docs,source:{originalSource:`{
|
|
353
|
+
render: () => {
|
|
354
|
+
const [startDate, setStartDate] = useState<Dayjs | null>(dayjs('2023-01-01'));
|
|
355
|
+
const [endDate, setEndDate] = useState<Dayjs | null>(dayjs('2023-01-31'));
|
|
356
|
+
const handleDateRangeChange = (start: Dayjs | null, end: Dayjs | null) => {
|
|
357
|
+
setStartDate(start);
|
|
358
|
+
setEndDate(end);
|
|
359
|
+
};
|
|
360
|
+
return <Box sx={{
|
|
361
|
+
width: 400,
|
|
362
|
+
display: 'flex',
|
|
363
|
+
flexDirection: 'column',
|
|
364
|
+
gap: 2
|
|
365
|
+
}}>
|
|
366
|
+
<DateRangePicker label="Rango de Fechas (Tamaño Pequeño)" startDate={startDate} endDate={endDate} onDateRangeChange={handleDateRangeChange} slotProps={{
|
|
367
|
+
textField: {
|
|
368
|
+
size: 'small'
|
|
369
|
+
}
|
|
370
|
+
}} // Aplica el tamaño 'small' a los TextFields internos
|
|
371
|
+
/>
|
|
372
|
+
<Typography sx={{
|
|
373
|
+
mt: 2
|
|
374
|
+
}}>
|
|
375
|
+
Inicio: {startDate ? startDate.format('YYYY-MM-DD') : 'N/A'} |
|
|
376
|
+
Fin: {endDate ? endDate.format('YYYY-MM-DD') : 'N/A'}
|
|
377
|
+
</Typography>
|
|
378
|
+
</Box>;
|
|
379
|
+
},
|
|
380
|
+
parameters: {
|
|
381
|
+
docs: {
|
|
382
|
+
description: {
|
|
383
|
+
story: "Demuestra cómo aplicar diferentes tamaños (\`small\` o \`medium\`) a los campos de entrada del \`DateRangePicker\`."
|
|
384
|
+
},
|
|
385
|
+
source: {
|
|
386
|
+
code: DateRangePickerWithSizeDefinition.trim()
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}`,...Me.parameters?.docs?.source}}};const Io=["BasicDateRangePicker","DateRangePickerWithMinMax","DateRangePickerDisabled","DateRangePickerReadOnly","DateRangePickerWithInitialNull","DateRangePickerWithSize"];export{ye as BasicDateRangePicker,Re as DateRangePickerDisabled,xe as DateRangePickerReadOnly,be as DateRangePickerWithInitialNull,Pe as DateRangePickerWithMinMax,Me as DateRangePickerWithSize,Io as __namedExportsOrder,Co as default};
|