@flightlesslabs/dodo-ui 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +36 -0
- package/dist/index.js +20 -0
- package/dist/stories/components/Form/Button/Button.svelte +120 -25
- package/dist/stories/components/Form/Button/utils/scss/mixins.scss +20 -4
- package/dist/stories/components/Form/DatePicker/Color/Color.stories.svelte +44 -0
- package/dist/stories/components/Form/DatePicker/Color/Color.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/DatePicker/Controls/Controls.stories.svelte +55 -0
- package/dist/stories/components/Form/DatePicker/Controls/Controls.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/DatePicker/Customize/Customize.stories.svelte +164 -0
- package/dist/stories/components/Form/DatePicker/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/DatePicker/DatePicker.svelte.d.ts +215 -0
- package/dist/stories/components/Form/DatePicker/Datepicker.stories.svelte +86 -0
- package/dist/stories/components/Form/DatePicker/Datepicker.stories.svelte.d.ts +20 -0
- package/dist/stories/components/Form/DatePicker/Datepicker.svelte +306 -0
- package/dist/stories/components/Form/DatePicker/Events/Events.stories.svelte +139 -0
- package/dist/stories/components/Form/DatePicker/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/DatePicker/FilterDates/FilterDates.stories.svelte +58 -0
- package/dist/stories/components/Form/DatePicker/FilterDates/FilterDates.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/DatePicker/Roundness/Roundness.stories.svelte +35 -0
- package/dist/stories/components/Form/DatePicker/Roundness/Roundness.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/DatePicker/Size/Size.stories.svelte +38 -0
- package/dist/stories/components/Form/DatePicker/Size/Size.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/DatePicker/WithIcon/WithIcon.stories.svelte +38 -0
- package/dist/stories/components/Form/DatePicker/WithIcon/WithIcon.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/PasswordInput/PasswordInput.stories.svelte +0 -1
- package/dist/stories/components/Form/PasswordInput/PasswordInput.svelte +7 -1
- package/dist/stories/components/Form/Select/Select.stories.svelte +4 -0
- package/dist/stories/components/Form/Select/Select.svelte +1 -2
- package/dist/stories/components/Form/Select/Select.svelte.d.ts +3 -1
- package/dist/stories/components/Info/Calendar/Calendar.stories.svelte +101 -0
- package/dist/stories/components/Info/Calendar/Calendar.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/Calendar.svelte +204 -0
- package/dist/stories/components/Info/Calendar/Calendar.svelte.d.ts +143 -0
- package/dist/stories/components/Info/Calendar/Color/Color.stories.svelte +23 -0
- package/dist/stories/components/Info/Calendar/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/Controls/Controls.stories.svelte +26 -0
- package/dist/stories/components/Info/Calendar/Controls/Controls.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/Customize/Customize.stories.svelte +158 -0
- package/dist/stories/components/Info/Calendar/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/Events/Events.stories.svelte +117 -0
- package/dist/stories/components/Info/Calendar/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/FilterDates/FilterDates.stories.svelte +67 -0
- package/dist/stories/components/Info/Calendar/FilterDates/FilterDates.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/Size/Size.stories.svelte +20 -0
- package/dist/stories/components/Info/Calendar/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarControls.stories.svelte +31 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarControls.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarControls.svelte +143 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarControls.svelte.d.ts +72 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/CalendarMonthSelector.stories.svelte +53 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/CalendarMonthSelector.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/CalendarMonthSelector.svelte +93 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/CalendarMonthSelector.svelte.d.ts +49 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Color/Color.stories.svelte +23 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Customize/Customize.stories.svelte +28 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Events/Events.stories.svelte +22 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/NameTypes/NameTypes.stories.svelte +23 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/NameTypes/NameTypes.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Roundness/Roundness.stories.svelte +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Roundness/Roundness.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Size/Size.stories.svelte +20 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/CalendarNavigation.stories.svelte +32 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/CalendarNavigation.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/CalendarNavigation.svelte +65 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/CalendarNavigation.svelte.d.ts +38 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Color/Color.stories.svelte +19 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Customize/Customize.stories.svelte +31 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Events/Events.stories.svelte +34 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/NavigationButton.svelte +38 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/NavigationButton.svelte.d.ts +32 -0
- package/{src/lib/stories/developer tools/components/InputEnclosure/Size/Size.stories.svelte → dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Size/Size.stories.svelte} +4 -4
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/CalendarYearSelector.stories.svelte +53 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/CalendarYearSelector.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/CalendarYearSelector.svelte +71 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/CalendarYearSelector.svelte.d.ts +38 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Color/Color.stories.svelte +23 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Customize/Customize.stories.svelte +28 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Events/Events.stories.svelte +22 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Roundness/Roundness.stories.svelte +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Roundness/Roundness.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Size/Size.stories.svelte +20 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Color/Color.stories.svelte +23 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Controls/Controls.stories.svelte +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Controls/Controls.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Customize/Customize.stories.svelte +67 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Events/Events.stories.svelte +58 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Size/Size.stories.svelte +20 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/CalendarDateChip.stories.svelte +71 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/CalendarDateChip.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/CalendarDateChip.svelte +783 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/CalendarDateChip.svelte.d.ts +49 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Color/Color.stories.svelte +41 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Customize/Customize.stories.svelte +43 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Events/Events.stories.svelte +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Roundness/Roundness.stories.svelte +31 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Roundness/Roundness.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Size/Size.stories.svelte +24 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/SpecialChips/SpecialChips.stories.svelte +96 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/SpecialChips/SpecialChips.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/utils/scss/mixins.scss +153 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDatesChart.stories.svelte +85 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDatesChart.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDatesChart.svelte +131 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDatesChart.svelte.d.ts +70 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/CalendarWeek.stories.svelte +34 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/CalendarWeek.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/CalendarWeek.svelte +100 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/CalendarWeek.svelte.d.ts +35 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/Customize/Customize.stories.svelte +30 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/NameTypes/NameTypes.stories.svelte +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/NameTypes/NameTypes.stories.svelte.d.ts +18 -0
- package/{src/lib/stories/components/Form/PasswordInput → dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek}/Size/Size.stories.svelte +4 -4
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/WeekDay.svelte +50 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/WeekDay.svelte.d.ts +20 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Color/Color.stories.svelte +23 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Customize/Customize.stories.svelte +66 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Events/Events.stories.svelte +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Size/Size.stories.svelte +20 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/CalendarMonthChip.stories.svelte +36 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/CalendarMonthChip.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/CalendarMonthChip.svelte +457 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/CalendarMonthChip.svelte.d.ts +33 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Color/Color.stories.svelte +29 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Customize/Customize.stories.svelte +31 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Events/Events.stories.svelte +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Events/Events.stories.svelte.d.ts +18 -0
- package/{src/lib/stories/components/Form/PasswordInput → dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip}/Roundness/Roundness.stories.svelte +10 -4
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Roundness/Roundness.stories.svelte.d.ts +26 -0
- package/{src/lib/stories/developer tools/components/DynamicInput/Size/Size.stories.svelte → dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Size/Size.stories.svelte} +7 -5
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/utils/scss/mixins.scss +91 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthList.stories.svelte +41 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthList.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthList.svelte +64 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthList.svelte.d.ts +35 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Color/Color.stories.svelte +22 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Customize/Customize.stories.svelte +34 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Events/Events.stories.svelte +29 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Events/Events.stories.svelte.d.ts +18 -0
- package/{src/lib/stories/components/Form/TextInput → dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList}/Size/Size.stories.svelte +7 -5
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/CalendarYearChip.stories.svelte +37 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/CalendarYearChip.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/CalendarYearChip.svelte +441 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/CalendarYearChip.svelte.d.ts +32 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Color/Color.stories.svelte +30 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Customize/Customize.stories.svelte +31 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Events/Events.stories.svelte +22 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Roundness/Roundness.stories.svelte +27 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Roundness/Roundness.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Size/Size.stories.svelte +20 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/utils/scss/mixins.scss +87 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearList.stories.svelte +35 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearList.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearList.svelte +83 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearList.svelte.d.ts +36 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Color/Color.stories.svelte +23 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Customize/Customize.stories.svelte +34 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Events/Events.stories.svelte +21 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Size/Size.stories.svelte +20 -0
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Info/Calendar/utils/createDateOfMonth.d.ts +28 -0
- package/dist/stories/components/Info/Calendar/utils/createDateOfMonth.js +87 -0
- package/dist/stories/components/Info/Calendar/utils/getDatesOfMonth.d.ts +10 -0
- package/dist/stories/components/Info/Calendar/utils/getDatesOfMonth.js +74 -0
- package/dist/stories/components/Info/Calendar/utils/index.mdx +64 -0
- package/dist/stories/components/Info/Calendar/utils/types.d.ts +36 -0
- package/dist/stories/components/Info/Calendar/utils/types.js +25 -0
- package/dist/stories/developer tools/helpers/Numbers/cleanNumericString/index.mdx +1 -1
- package/dist/stories/developer tools/helpers/Numbers/isValidNumberValue/index.mdx +1 -1
- package/dist/stories/developer tools/helpers/Time/getMoment/getMoment.d.ts +38 -0
- package/dist/stories/developer tools/helpers/Time/getMoment/getMoment.js +33 -0
- package/dist/stories/developer tools/helpers/Time/getMoment/index.mdx +18 -0
- package/dist/styles/_components.css +3 -3
- package/package.json +18 -15
- package/src/lib/index.ts +74 -0
- package/src/lib/stories/components/Form/Button/Button.svelte +0 -1
- package/src/lib/stories/components/Form/Button/utils/scss/mixins.scss +20 -4
- package/src/lib/stories/components/Form/Datepicker/Datepicker.svelte +731 -0
- package/src/lib/stories/components/Form/PasswordInput/PasswordInput.svelte +7 -1
- package/src/lib/stories/components/Form/Select/Select.svelte +3 -1
- package/src/lib/stories/components/Info/Calendar/Calendar.svelte +461 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarControls.svelte +271 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/CalendarMonthSelector.svelte +199 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/CalendarNavigation.svelte +128 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/NavigationButton.svelte +85 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/CalendarYearSelector.svelte +148 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/CalendarDateChip.svelte +296 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/utils/scss/mixins.scss +153 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDatesChart.svelte +266 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/CalendarWeek.svelte +154 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/WeekDay.svelte +90 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/CalendarMonthChip.svelte +217 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/utils/scss/mixins.scss +91 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthList.svelte +124 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/CalendarYearChip.svelte +227 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/utils/scss/mixins.scss +87 -0
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearList.svelte +150 -0
- package/src/lib/stories/components/Info/Calendar/utils/createDateOfMonth.ts +160 -0
- package/src/lib/stories/components/Info/Calendar/utils/getDatesOfMonth.ts +100 -0
- package/src/lib/stories/components/Info/Calendar/utils/types.ts +39 -0
- package/src/lib/stories/developer tools/helpers/Time/getMoment/getMoment.ts +65 -0
- package/src/lib/styles/_components.css +3 -3
- package/src/lib/stories/Home.mdx +0 -59
- package/src/lib/stories/assets/dark-theme-toggle.png +0 -0
- package/src/lib/stories/components/Form/Button/Button.stories.svelte +0 -61
- package/src/lib/stories/components/Form/Button/Color/Color.stories.svelte +0 -43
- package/src/lib/stories/components/Form/Button/Events/Events.stories.svelte +0 -36
- package/src/lib/stories/components/Form/Button/IconButton/IconButton.stories.svelte +0 -43
- package/src/lib/stories/components/Form/Button/Roundness/Roundness.stories.svelte +0 -23
- package/src/lib/stories/components/Form/Button/Size/Size.stories.svelte +0 -16
- package/src/lib/stories/components/Form/Button/Variant/Variant.stories.svelte +0 -18
- package/src/lib/stories/components/Form/FormControl/FormControl.stories.svelte +0 -28
- package/src/lib/stories/components/Form/Label/Label.stories.svelte +0 -13
- package/src/lib/stories/components/Form/Message/Color/Color.stories.svelte +0 -36
- package/src/lib/stories/components/Form/Message/Message.stories.svelte +0 -27
- package/src/lib/stories/components/Form/Message/Size/Size.stories.svelte +0 -22
- package/src/lib/stories/components/Form/NumericInput/Events/Events.stories.svelte +0 -134
- package/src/lib/stories/components/Form/NumericInput/NumericInput.stories.svelte +0 -84
- package/src/lib/stories/components/Form/NumericInput/Validation/Validation.stories.svelte +0 -87
- package/src/lib/stories/components/Form/PasswordInput/Events/Events.stories.svelte +0 -132
- package/src/lib/stories/components/Form/PasswordInput/PasswordInput.stories.svelte +0 -59
- package/src/lib/stories/components/Form/PasswordInput/WithIcon/WithIcon.stories.svelte +0 -31
- package/src/lib/stories/components/Form/Select/Customize/Customize.stories.svelte +0 -139
- package/src/lib/stories/components/Form/Select/DropDownArrow/DropDownArrow.stories.svelte +0 -63
- package/src/lib/stories/components/Form/Select/Events/Events.stories.svelte +0 -174
- package/src/lib/stories/components/Form/Select/Options/OptionFormat.mdx +0 -40
- package/src/lib/stories/components/Form/Select/Positions/AutoPosition/AutoPosition.stories.svelte +0 -58
- package/src/lib/stories/components/Form/Select/Positions/Positions.stories.svelte +0 -87
- package/src/lib/stories/components/Form/Select/Roundness/Roundness.stories.svelte +0 -32
- package/src/lib/stories/components/Form/Select/Select.stories.svelte +0 -121
- package/src/lib/stories/components/Form/Select/Size/Size.stories.svelte +0 -28
- package/src/lib/stories/components/Form/Select/WithIcon/WithIcon.stories.svelte +0 -43
- package/src/lib/stories/components/Form/TextInput/Events/Events.stories.svelte +0 -125
- package/src/lib/stories/components/Form/TextInput/Roundness/Roundness.stories.svelte +0 -21
- package/src/lib/stories/components/Form/TextInput/TextInput.stories.svelte +0 -43
- package/src/lib/stories/components/Form/TextInput/WithIcon/WithIcon.stories.svelte +0 -47
- package/src/lib/stories/components/Layout/Menu/DynamicMenu/Customize/Customize.stories.svelte +0 -30
- package/src/lib/stories/components/Layout/Menu/DynamicMenu/DynamicMenu.stories.svelte +0 -56
- package/src/lib/stories/components/Layout/Menu/DynamicMenu/Events/Events.stories.svelte +0 -48
- package/src/lib/stories/components/Layout/Menu/DynamicMenu/KeybaordNavigation/KeybaordNavigation.stories.svelte +0 -29
- package/src/lib/stories/components/Layout/Menu/DynamicMenu/Options/OptionFormat.mdx +0 -72
- package/src/lib/stories/components/Layout/Menu/Menu.stories.svelte +0 -69
- package/src/lib/stories/components/Layout/Menu/MenuItem/MenuItem.stories.svelte +0 -34
- package/src/lib/stories/components/Layout/Menu/MenuItem/Size/Size.stories.svelte +0 -16
- package/src/lib/stories/components/Layout/Menu/MenuItem/Type/Type.stories.svelte +0 -21
- package/src/lib/stories/components/Layout/Menu/Size/Size.stories.svelte +0 -37
- package/src/lib/stories/components/Layout/Paper/Color/Color.stories.svelte +0 -63
- package/src/lib/stories/components/Layout/Paper/Paper.stories.svelte +0 -50
- package/src/lib/stories/components/Layout/Paper/Roundness/Roundness.stories.svelte +0 -25
- package/src/lib/stories/components/Layout/Paper/Shadow/Shadow.stories.svelte +0 -24
- package/src/lib/stories/components/Layout/Separator/Color/Color.stories.svelte +0 -19
- package/src/lib/stories/components/Layout/Separator/Separator.stories.svelte +0 -30
- package/src/lib/stories/developer tools/Intro.mdx +0 -9
- package/src/lib/stories/developer tools/components/DynamicInput/DynamicInput.stories.svelte +0 -53
- package/src/lib/stories/developer tools/components/DynamicInput/Events/Events.stories.svelte +0 -121
- package/src/lib/stories/developer tools/components/InputEnclosure/InputEnclosure.stories.svelte +0 -38
- package/src/lib/stories/developer tools/components/InputEnclosure/Roundness/Roundness.stories.svelte +0 -20
- package/src/lib/stories/developer tools/components/InputEnclosure/WithIcon/WithIcon.stories.svelte +0 -47
- package/src/lib/stories/developer tools/components/Popper/Popper.stories.svelte +0 -124
- package/src/lib/stories/developer tools/components/Popper/PopperPopup/PopperPopup.stories.svelte +0 -64
- package/src/lib/stories/developer tools/components/Popper/Positions/AutoPosition/AutoPosition.stories.svelte +0 -92
- package/src/lib/stories/developer tools/components/Popper/Positions/Positions.stories.svelte +0 -114
- package/src/lib/stories/developer tools/components/UtilityButton/Size/Size.stories.svelte +0 -25
- package/src/lib/stories/developer tools/components/UtilityButton/UtilityButton.stories.svelte +0 -30
- package/src/lib/stories/developer tools/directives/clickOutside/index.mdx +0 -25
- package/src/lib/stories/developer tools/helpers/Numbers/cleanNumericString/index.mdx +0 -20
- package/src/lib/stories/developer tools/helpers/Numbers/isValidNumberValue/index.mdx +0 -71
- package/src/lib/stories/developer tools/helpers/logger/index.mdx +0 -63
- package/src/lib/stories/developer tools/philosophy/Colors/Colors.mdx +0 -43
- package/src/lib/stories/developer tools/philosophy/Colors/Colors.stories.svelte +0 -22
- package/src/lib/stories/developer tools/philosophy/Colors/Opacity.stories.svelte +0 -11
- package/src/lib/stories/developer tools/philosophy/Themes.mdx +0 -23
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import type { ComponentSize } from '../../../../types/size.js';
|
|
2
|
+
import type { ComponentRoundness } from '../../../../types/roundness.js';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
import type { ChangeEventHandler, ClipboardEventHandler, FocusEventHandler, FormEventHandler, KeyboardEventHandler, MouseEventHandler } from 'svelte/elements';
|
|
5
|
+
export type DatePickerCalendarIconPosition = false | 'before' | 'after';
|
|
6
|
+
export interface DatePickerProps {
|
|
7
|
+
/** How large should the button be? */
|
|
8
|
+
size?: ComponentSize;
|
|
9
|
+
/** editable DatePicker? */
|
|
10
|
+
editable?: boolean;
|
|
11
|
+
/** want a clearable DatePicker? */
|
|
12
|
+
clearable?: boolean;
|
|
13
|
+
/** onselect event handler */
|
|
14
|
+
onselect?: (value: Date, dayOfMonth: DateOfMonth, e: ButtonClickEvent) => void;
|
|
15
|
+
/** onclear event handler */
|
|
16
|
+
onclear?: MouseEventHandler<HTMLButtonElement>;
|
|
17
|
+
/** DatePicker ref */
|
|
18
|
+
ref?: HTMLInputElement | HTMLButtonElement;
|
|
19
|
+
/** How round should the border radius be? */
|
|
20
|
+
roundness?: ComponentRoundness;
|
|
21
|
+
/** Add a border around the button. Default True */
|
|
22
|
+
outline?: boolean;
|
|
23
|
+
/** DatePicker value */
|
|
24
|
+
value: Date | undefined;
|
|
25
|
+
/** How round should the border radius be? */
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
/** disabled state */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Read only ? */
|
|
30
|
+
readonly?: boolean;
|
|
31
|
+
/** is there any associated Error ? */
|
|
32
|
+
error?: boolean;
|
|
33
|
+
/** Name */
|
|
34
|
+
name?: string;
|
|
35
|
+
/** Id */
|
|
36
|
+
id?: string;
|
|
37
|
+
/** Icon before button content */
|
|
38
|
+
before?: Snippet;
|
|
39
|
+
/** Icon after button content */
|
|
40
|
+
after?: Snippet;
|
|
41
|
+
/** Custom css class*/
|
|
42
|
+
class?: string;
|
|
43
|
+
/** onchange event handler */
|
|
44
|
+
onchange?: ChangeEventHandler<HTMLInputElement>;
|
|
45
|
+
/** oninput event handler */
|
|
46
|
+
oninput?: FormEventHandler<HTMLInputElement>;
|
|
47
|
+
/** onblur event handler */
|
|
48
|
+
onblur?: FocusEventHandler<HTMLInputElement | HTMLButtonElement>;
|
|
49
|
+
/** onfocus event handler */
|
|
50
|
+
onfocus?: FocusEventHandler<HTMLInputElement | HTMLButtonElement>;
|
|
51
|
+
/** onpaste event handler */
|
|
52
|
+
onpaste?: ClipboardEventHandler<HTMLInputElement>;
|
|
53
|
+
/** oncopy event handler */
|
|
54
|
+
oncopy?: ClipboardEventHandler<HTMLInputElement>;
|
|
55
|
+
/** oncut event handler */
|
|
56
|
+
oncut?: ClipboardEventHandler<HTMLInputElement>;
|
|
57
|
+
/** onkeydown event handler */
|
|
58
|
+
onkeydown?: KeyboardEventHandler<HTMLInputElement | HTMLButtonElement>;
|
|
59
|
+
/** onkeypress event handler */
|
|
60
|
+
onkeypress?: KeyboardEventHandler<HTMLInputElement | HTMLButtonElement>;
|
|
61
|
+
/** onkeyup event handler */
|
|
62
|
+
onkeyup?: KeyboardEventHandler<HTMLInputElement | HTMLButtonElement>;
|
|
63
|
+
/** custom Content Formatting for variant button */
|
|
64
|
+
customInputContent?: (val: Date) => Snippet;
|
|
65
|
+
/** Custom Popup Content */
|
|
66
|
+
customPopupContent?: () => Snippet;
|
|
67
|
+
/** PaperProps: Paper component props for Popup */
|
|
68
|
+
paperProps?: Partial<PaperProps>;
|
|
69
|
+
/** PopperProps: Popper component props */
|
|
70
|
+
popperProps?: Partial<PopperProps>;
|
|
71
|
+
/** custom CalendarI Icon */
|
|
72
|
+
customCalendarIcon?: (open: boolean) => Snippet;
|
|
73
|
+
/** DatePicker CalendarI con Position */
|
|
74
|
+
calendarIconPosition?: DatePickerCalendarIconPosition;
|
|
75
|
+
/** Popup stick horizontally */
|
|
76
|
+
popupPositionX?: PositionX;
|
|
77
|
+
/** Popup stick vertically */
|
|
78
|
+
popupPositionY?: PositionY;
|
|
79
|
+
/** Lock positions, disable auto top, bottom position based */
|
|
80
|
+
lockPoistions?: boolean;
|
|
81
|
+
/** Popper Height For Vertical Position, default 300 */
|
|
82
|
+
popperHeightForVerticalPosition?: number;
|
|
83
|
+
/** Date display format, Default: DD/MM/YYYY , [Supported formats](https://day.js.org/docs/en/display/format) */
|
|
84
|
+
format?: string;
|
|
85
|
+
/** Override format for editable input */
|
|
86
|
+
formatEditable?: string;
|
|
87
|
+
/** Control Popup Open state */
|
|
88
|
+
open?: boolean;
|
|
89
|
+
/** Start Of Week */
|
|
90
|
+
startOfWeek?: CalendarWeekNames;
|
|
91
|
+
/** Define active month to override month selected with value */
|
|
92
|
+
activeMonth?: Date;
|
|
93
|
+
/** Include leading days from the previous month */
|
|
94
|
+
showLastMonth?: boolean;
|
|
95
|
+
/** Include trailing days from the next month */
|
|
96
|
+
showNextMonth?: boolean;
|
|
97
|
+
/** What color to use? */
|
|
98
|
+
color?: ComponentColor;
|
|
99
|
+
/** Show slected */
|
|
100
|
+
showSelected?: boolean;
|
|
101
|
+
/** Show Today */
|
|
102
|
+
showToday?: boolean;
|
|
103
|
+
/** Set today manually */
|
|
104
|
+
today?: Date;
|
|
105
|
+
/** Minimum allowed date, rest of the dates will be disabled */
|
|
106
|
+
minDate?: Date;
|
|
107
|
+
/** Maxium allowed date, rest of the dates will be disabled */
|
|
108
|
+
maxDate?: Date;
|
|
109
|
+
/** Exclude Dates, these dates will be disabled */
|
|
110
|
+
excludeDates?: Date[];
|
|
111
|
+
/** Include Dates, rest of the dates will be disabled */
|
|
112
|
+
includeDates?: Date[];
|
|
113
|
+
/** Timezone string (e.g., "America/New_York"). */
|
|
114
|
+
timezone?: string;
|
|
115
|
+
/** Whether to return the time in UTC. If true, overrides timezone. */
|
|
116
|
+
utc?: boolean;
|
|
117
|
+
/** calendarDateChipProps: CalendarDateChip component props */
|
|
118
|
+
calendarDateChipProps?: Partial<CalendarDateChipProps>;
|
|
119
|
+
/** Custom Calendar Chip Content */
|
|
120
|
+
customCalendarDateChipContent?: (dayOfMonth: DateOfMonth) => Snippet;
|
|
121
|
+
/** Custom Calendar Chip */
|
|
122
|
+
customCalendarDateChip?: (dayOfMonth: DateOfMonth) => Snippet;
|
|
123
|
+
/** Custom Calendar Week Content */
|
|
124
|
+
customCalendarWeekContent?: (week: CalendarWeekOption) => Snippet;
|
|
125
|
+
/** Custom Calendar Week */
|
|
126
|
+
customCalendarWeek?: (week: CalendarWeekOption) => Snippet;
|
|
127
|
+
/** Weekend days */
|
|
128
|
+
weekendDays?: CalendarWeekNames[];
|
|
129
|
+
/** Color Weekend days */
|
|
130
|
+
weekendDaysColorDays?: boolean;
|
|
131
|
+
/** Show Calendar Controls */
|
|
132
|
+
showCalendarControls?: boolean;
|
|
133
|
+
/** Custom Calendar Controls */
|
|
134
|
+
customCalendarControls?: () => Snippet;
|
|
135
|
+
/** Show Month Selector */
|
|
136
|
+
showCalendarMonthSelector?: boolean;
|
|
137
|
+
/** Show Year Selector */
|
|
138
|
+
showCalendarYearSelector?: boolean;
|
|
139
|
+
/** Show Navigator */
|
|
140
|
+
showCalendarNavigator?: boolean;
|
|
141
|
+
/** Month Selector Props */
|
|
142
|
+
calendarMonthSelectorProps?: Partial<CalendarMonthSelectorProps>;
|
|
143
|
+
/** Custom MonthSelector */
|
|
144
|
+
customCalendarMonthSelector?: (option: CalendarMonthOption) => Snippet;
|
|
145
|
+
/** Custom MonthSelector Content */
|
|
146
|
+
customCalendarMonthSelectorContent?: (option: CalendarMonthOption) => Snippet;
|
|
147
|
+
/** Month Selector Click */
|
|
148
|
+
onMonthSelectorClick?: (option: CalendarMonthOption, e: ButtonClickEvent) => void;
|
|
149
|
+
/** Year Selector Props */
|
|
150
|
+
calendarYearSelectorProps?: Partial<CalendarYearSelectorProps>;
|
|
151
|
+
/** Custom YearSelector */
|
|
152
|
+
customCalendarYearSelector?: (selectedYear: string) => Snippet;
|
|
153
|
+
/** Custom YearSelector Content */
|
|
154
|
+
customCalendarYearSelectorContent?: (selectedYear: string) => Snippet;
|
|
155
|
+
/** Year Selector Click */
|
|
156
|
+
onYearSelectorClick?: (selectedYear: string, e: ButtonClickEvent) => void;
|
|
157
|
+
/** Calendar Navigation Props */
|
|
158
|
+
calendarNavigationProps?: Partial<CalendarYearSelectorProps>;
|
|
159
|
+
/** Navigation Next */
|
|
160
|
+
onCalendarNavigationNextClick?: MouseEventHandler<HTMLButtonElement>;
|
|
161
|
+
/** Navigation Previous */
|
|
162
|
+
onCalendarNavigationPrevClick?: MouseEventHandler<HTMLButtonElement>;
|
|
163
|
+
/** Custom YearSelector */
|
|
164
|
+
customCalendarNavigation?: () => Snippet;
|
|
165
|
+
/** Custom NavigationNext */
|
|
166
|
+
customCalendarNavigationNext?: () => Snippet;
|
|
167
|
+
/** Custom NavigationPrev */
|
|
168
|
+
customCalendarNavigationPrev?: () => Snippet;
|
|
169
|
+
/** Custom NavigationNext Content */
|
|
170
|
+
customCalendarNavigationNextContent?: () => Snippet;
|
|
171
|
+
/** Custom NavigationPrev Content */
|
|
172
|
+
customCalendarNavigationPrevContent?: () => Snippet;
|
|
173
|
+
/** Next disabled state */
|
|
174
|
+
disabledCalendarNavigationNext?: boolean;
|
|
175
|
+
/** Prev disabled state */
|
|
176
|
+
disabledCalendarNavigationPrev?: boolean;
|
|
177
|
+
/** Calendar Month select */
|
|
178
|
+
onselectMonth?: (value: CalendarMonthNames, e: ButtonClickEvent) => void;
|
|
179
|
+
/** Calendar Month cancel */
|
|
180
|
+
oncancelMonth?: (e: ButtonClickEvent) => void;
|
|
181
|
+
/** Custom Calendar Chip Content */
|
|
182
|
+
customCalendarMonthChipContent?: (value: CalendarMonthNames) => Snippet;
|
|
183
|
+
/** Custom Calendar Chip */
|
|
184
|
+
customCalendarMonthChip?: (value: CalendarMonthNames) => Snippet;
|
|
185
|
+
/** disabled Months */
|
|
186
|
+
disabledMonths?: CalendarMonthNames[];
|
|
187
|
+
/** calendarMonthChipProps: calendarMonthChip component props */
|
|
188
|
+
calendarMonthChipProps?: Partial<CalendarMonthChipProps>;
|
|
189
|
+
/** show month list controls */
|
|
190
|
+
showControlsMonthList?: boolean;
|
|
191
|
+
/** calendarYearChipProps: calendarYearChip component props */
|
|
192
|
+
calendarYearChipProps?: Partial<CalendarYearChipProps>;
|
|
193
|
+
/** Calendar Year select */
|
|
194
|
+
onselectYear?: (value: string, e: ButtonClickEvent) => void;
|
|
195
|
+
/** Calendar Year cancel */
|
|
196
|
+
oncancelYear?: (e: ButtonClickEvent) => void;
|
|
197
|
+
/** Custom Calendar Chip Content */
|
|
198
|
+
customCalendarYearChipContent?: (value: string) => Snippet;
|
|
199
|
+
/** Custom Calendar Chip */
|
|
200
|
+
customCalendarYearChip?: (value: string) => Snippet;
|
|
201
|
+
/** show Year list controls */
|
|
202
|
+
showControlsYearList?: boolean;
|
|
203
|
+
/** calendarProps: calendar component props */
|
|
204
|
+
calendarProps?: Partial<CalendarProps>;
|
|
205
|
+
/** calendar Top Content*/
|
|
206
|
+
calendarTopContent?: (activeSection: CalendarActiveSection) => Snippet;
|
|
207
|
+
/** calendar Bottom Content*/
|
|
208
|
+
calendarBottomContent?: (activeSection: CalendarActiveSection) => Snippet;
|
|
209
|
+
}
|
|
210
|
+
import { type CalendarDateChipProps, type CalendarMonthChipProps, type CalendarMonthNames, type CalendarMonthOption, type CalendarMonthSelectorProps, type CalendarWeekNames, type CalendarWeekOption, type CalendarYearChipProps, type CalendarYearSelectorProps, type ComponentColor, type DateOfMonth, type PaperProps, type PopperProps, type PositionX, type PositionY } from '../../../../index.js';
|
|
211
|
+
import type { ButtonClickEvent } from '../Button/Button.svelte';
|
|
212
|
+
import { type CalendarActiveSection, type CalendarProps } from '../../Info/Calendar/Calendar.svelte';
|
|
213
|
+
declare const DatePicker: import("svelte").Component<DatePickerProps, {}, "ref" | "open">;
|
|
214
|
+
type DatePicker = ReturnType<typeof DatePicker>;
|
|
215
|
+
export default DatePicker;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<script module lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
2
|
+
import DatePicker from './DatePicker.svelte';
|
|
3
|
+
import { componentRoundnessArray } from '../../../../types/roundness.js';
|
|
4
|
+
import { componentSizeArray } from '../../../../types/size.js';
|
|
5
|
+
import { componentColorArray } from '../../../../types/colors.js';
|
|
6
|
+
import Icon from '@iconify/svelte';
|
|
7
|
+
export const storyDatePickerArgTypes = {
|
|
8
|
+
roundness: {
|
|
9
|
+
control: { type: 'select' },
|
|
10
|
+
options: componentRoundnessArray,
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
control: { type: 'select' },
|
|
14
|
+
options: componentSizeArray,
|
|
15
|
+
},
|
|
16
|
+
color: {
|
|
17
|
+
control: { type: 'select' },
|
|
18
|
+
options: componentColorArray,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
22
|
+
const { Story } = defineMeta({
|
|
23
|
+
component: DatePicker,
|
|
24
|
+
tags: ['autodocs'],
|
|
25
|
+
argTypes: storyDatePickerArgTypes,
|
|
26
|
+
parameters: {
|
|
27
|
+
docs: {
|
|
28
|
+
story: {
|
|
29
|
+
height: '400px',
|
|
30
|
+
inline: false,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
let value = $state(new Date());
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<!-- DatePicker with default style -->
|
|
39
|
+
<Story name="Default" asChild>
|
|
40
|
+
<DatePicker {value} onselect={(val: Date) => (value = val)} />
|
|
41
|
+
</Story>
|
|
42
|
+
|
|
43
|
+
<!-- [Supported formats](https://day.js.org/docs/en/display/format) -->
|
|
44
|
+
<Story name="FormatDate" asChild>
|
|
45
|
+
<DatePicker {value} onselect={(val: Date) => (value = val)} format="MMM, DD YYYY" />
|
|
46
|
+
</Story>
|
|
47
|
+
|
|
48
|
+
<Story name="Editable" asChild>
|
|
49
|
+
<DatePicker {value} editable onselect={(val: Date) => (value = val)} placeholder="DD/MM/YYYY" />
|
|
50
|
+
</Story>
|
|
51
|
+
|
|
52
|
+
<Story name="EditableInDiffrentFormat" asChild>
|
|
53
|
+
<DatePicker
|
|
54
|
+
{value}
|
|
55
|
+
editable
|
|
56
|
+
onselect={(val: Date) => (value = val)}
|
|
57
|
+
placeholder="DD/MM/YYYY"
|
|
58
|
+
formatEditable="YYYY-MM-DD"
|
|
59
|
+
/>
|
|
60
|
+
</Story>
|
|
61
|
+
|
|
62
|
+
<Story name="Clearable" asChild>
|
|
63
|
+
<DatePicker
|
|
64
|
+
{value}
|
|
65
|
+
clearable
|
|
66
|
+
onselect={(val: Date) => (value = val)}
|
|
67
|
+
onclear={() => (value = undefined)}
|
|
68
|
+
placeholder="DD/MM/YYYY"
|
|
69
|
+
/>
|
|
70
|
+
</Story>
|
|
71
|
+
|
|
72
|
+
<Story name="Disabled" asChild>
|
|
73
|
+
<DatePicker {value} disabled />
|
|
74
|
+
</Story>
|
|
75
|
+
|
|
76
|
+
<Story name="OpenByDefault" asChild>
|
|
77
|
+
<DatePicker {value} open={true} />
|
|
78
|
+
</Story>
|
|
79
|
+
|
|
80
|
+
<Story name="Custom calender icon" asChild>
|
|
81
|
+
<DatePicker {value}>
|
|
82
|
+
{#snippet customCalendarIcon()}
|
|
83
|
+
<Icon icon="mingcute:calendar-3-line" width="24" height="24" />
|
|
84
|
+
{/snippet}
|
|
85
|
+
</DatePicker>
|
|
86
|
+
</Story>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { StoryBookArgTypes } from '../../../../storybook-types.js';
|
|
2
|
+
export declare const storyDatePickerArgTypes: StoryBookArgTypes;
|
|
3
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
4
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
5
|
+
$$bindings?: Bindings;
|
|
6
|
+
} & Exports;
|
|
7
|
+
(internal: unknown, props: {
|
|
8
|
+
$$events?: Events;
|
|
9
|
+
$$slots?: Slots;
|
|
10
|
+
}): Exports & {
|
|
11
|
+
$set?: any;
|
|
12
|
+
$on?: any;
|
|
13
|
+
};
|
|
14
|
+
z_$$bindings?: Bindings;
|
|
15
|
+
}
|
|
16
|
+
declare const Datepicker: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
17
|
+
[evt: string]: CustomEvent<any>;
|
|
18
|
+
}, {}, {}, string>;
|
|
19
|
+
type Datepicker = InstanceType<typeof Datepicker>;
|
|
20
|
+
export default Datepicker;
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
<script lang="ts" module>export {};
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<script lang="ts">import InputEnclosure from '../../../developer tools/components/InputEnclosure/InputEnclosure.svelte';
|
|
5
|
+
import UtilityButton from '../../../developer tools/components/UtilityButton/UtilityButton.svelte';
|
|
6
|
+
import Icon from '@iconify/svelte';
|
|
7
|
+
import { createDateOfMonth, DynamicInput, getMoment, Popper, } from '../../../../index.js';
|
|
8
|
+
import Calendar, {} from '../../Info/Calendar/Calendar.svelte';
|
|
9
|
+
let { size = 'normal', roundness = 1, outline = true, name, id, class: className = '', disabled = false, onchange, oninput, onselect, onblur, onfocus, onpaste, oncopy, oncut, onkeydown, onkeypress, onkeyup, before, after, error = false, value, placeholder, ref = $bindable(), readonly = false, editable = false, clearable = false, onclear, customInputContent: customInputContentInternal, customPopupContent: customPopupContentInternal, customCalendarIcon: customCalendarIconInternal, paperProps, popperProps, calendarIconPosition = 'after', popupPositionX, popupPositionY, lockPoistions, popperHeightForVerticalPosition, color, format = 'DD/MM/YYYY', formatEditable: formatEditableRaw, open = $bindable(false), startOfWeek = 'sun', timezone, utc, calendarDateChipProps, activeMonth, showSelected, showLastMonth, showNextMonth, showToday, today, minDate, maxDate, excludeDates, includeDates, customCalendarDateChipContent, customCalendarDateChip, customCalendarWeekContent, customCalendarWeek, weekendDays, weekendDaysColorDays, customCalendarControls, showCalendarControls, calendarMonthSelectorProps, customCalendarMonthSelector, customCalendarMonthSelectorContent, onMonthSelectorClick, calendarYearSelectorProps, customCalendarYearSelector, customCalendarYearSelectorContent, onYearSelectorClick, calendarNavigationProps, customCalendarNavigation, customCalendarNavigationNext, customCalendarNavigationPrev, customCalendarNavigationNextContent, customCalendarNavigationPrevContent, onCalendarNavigationNextClick, onCalendarNavigationPrevClick, disabledCalendarNavigationNext, disabledCalendarNavigationPrev, showCalendarMonthSelector, showCalendarYearSelector, showCalendarNavigator, onselectMonth, customCalendarMonthChipContent, customCalendarMonthChip, disabledMonths, calendarMonthChipProps, calendarYearChipProps, onselectYear, customCalendarYearChipContent, customCalendarYearChip, oncancelMonth, oncancelYear, showControlsMonthList, showControlsYearList, calendarProps, calendarTopContent, calendarBottomContent, } = $props();
|
|
10
|
+
const formatEditable = $derived(formatEditableRaw || format);
|
|
11
|
+
let searchText = $derived(value ? getMoment(value, undefined, { timezone, utc }).format(format) : '');
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
|
+
let customInputContentTyped = customInputContentInternal;
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
+
let customPopupContentTyped = customPopupContentInternal;
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
|
+
let customCalendarIconTyped = customCalendarIconInternal;
|
|
18
|
+
const calenderSize = calendarProps?.size || size;
|
|
19
|
+
let popupWidth = $state(`calc(var(--dodo-ui-element-height-normal) * 7 + var(--dodo-ui-space) * 2)`);
|
|
20
|
+
if (calenderSize === 'normal') {
|
|
21
|
+
popupWidth = `calc(var(--dodo-ui-element-height-normal) * 7 + var(--dodo-ui-space) * 2)`;
|
|
22
|
+
}
|
|
23
|
+
else if (calenderSize === 'small') {
|
|
24
|
+
popupWidth = `calc(var(--dodo-ui-element-height-small) * 7 + var(--dodo-ui-space) * 2)`;
|
|
25
|
+
}
|
|
26
|
+
else if (calenderSize === 'large') {
|
|
27
|
+
popupWidth = `calc(var(--dodo-ui-element-height-large) * 7 + var(--dodo-ui-space) * 2)`;
|
|
28
|
+
}
|
|
29
|
+
function closePopup() {
|
|
30
|
+
open = false;
|
|
31
|
+
ref?.blur();
|
|
32
|
+
}
|
|
33
|
+
function openPopup() {
|
|
34
|
+
open = true;
|
|
35
|
+
}
|
|
36
|
+
function onfocusMod(e) {
|
|
37
|
+
openPopup();
|
|
38
|
+
if (editable) {
|
|
39
|
+
searchText = getMoment(searchText, format, { timezone, utc }).format(formatEditable);
|
|
40
|
+
}
|
|
41
|
+
if (onfocus) {
|
|
42
|
+
onfocus(e);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function onblurMod(e) {
|
|
46
|
+
if (editable) {
|
|
47
|
+
const searchTextrToMoment = getMoment(searchText, formatEditable, { timezone, utc });
|
|
48
|
+
if (searchTextrToMoment.isValid()) {
|
|
49
|
+
const searchTextrToDate = searchTextrToMoment.toDate();
|
|
50
|
+
const dayOfMonth = createDateOfMonth(searchTextrToDate, {
|
|
51
|
+
startOfWeek,
|
|
52
|
+
showLastMonth,
|
|
53
|
+
showNextMonth,
|
|
54
|
+
today,
|
|
55
|
+
minDate,
|
|
56
|
+
maxDate,
|
|
57
|
+
excludeDates,
|
|
58
|
+
includeDates,
|
|
59
|
+
timezone,
|
|
60
|
+
utc,
|
|
61
|
+
}, 'currentMonth');
|
|
62
|
+
searchText = searchTextrToMoment.format(format);
|
|
63
|
+
onselectMod(searchTextrToDate, dayOfMonth, e);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
searchText = value ? getMoment(value, undefined, { timezone, utc }).format(format) : '';
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (onblur) {
|
|
70
|
+
onblur(e);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function onClickOutside() {
|
|
74
|
+
closePopup();
|
|
75
|
+
}
|
|
76
|
+
function onselectMod(val, dayOfMonth, e) {
|
|
77
|
+
closePopup();
|
|
78
|
+
if (onselect) {
|
|
79
|
+
onselect(val, dayOfMonth, e);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function oninputMod(e) {
|
|
83
|
+
const target = e.target;
|
|
84
|
+
searchText = target.value;
|
|
85
|
+
if (oninput) {
|
|
86
|
+
oninput(e);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function onclearMod(e) {
|
|
90
|
+
closePopup();
|
|
91
|
+
if (onclear) {
|
|
92
|
+
onclear(e);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
</script>
|
|
96
|
+
|
|
97
|
+
{#snippet datePickerCalendarIcon()}
|
|
98
|
+
<UtilityButton {size} title="Dropdown" onclick={onfocusMod}>
|
|
99
|
+
{#if customCalendarIconTyped}
|
|
100
|
+
{@render customCalendarIconTyped(open)}
|
|
101
|
+
{:else if size === 'small'}
|
|
102
|
+
<Icon icon="ic:baseline-calendar-month" width="19" height="19" />
|
|
103
|
+
{:else}
|
|
104
|
+
<Icon icon="ic:baseline-calendar-month" width="24" height="24" />
|
|
105
|
+
{/if}
|
|
106
|
+
</UtilityButton>
|
|
107
|
+
{/snippet}
|
|
108
|
+
|
|
109
|
+
<div class={['dodo-ui-DatePicker', className].join(' ')}>
|
|
110
|
+
<Popper
|
|
111
|
+
{open}
|
|
112
|
+
fullWidth
|
|
113
|
+
{popupWidth}
|
|
114
|
+
{onClickOutside}
|
|
115
|
+
{...popperProps}
|
|
116
|
+
{popupPositionX}
|
|
117
|
+
{popupPositionY}
|
|
118
|
+
{paperProps}
|
|
119
|
+
{lockPoistions}
|
|
120
|
+
{popperHeightForVerticalPosition}
|
|
121
|
+
popupMaxHeight="800px"
|
|
122
|
+
>
|
|
123
|
+
<div
|
|
124
|
+
class:outline
|
|
125
|
+
class:disabled
|
|
126
|
+
class:error
|
|
127
|
+
class={[
|
|
128
|
+
'DatePicker',
|
|
129
|
+
`size--${size}`,
|
|
130
|
+
`${open ? 'focused' : ''}`,
|
|
131
|
+
`roundness--${roundness}`,
|
|
132
|
+
className,
|
|
133
|
+
].join(' ')}
|
|
134
|
+
>
|
|
135
|
+
<InputEnclosure
|
|
136
|
+
{outline}
|
|
137
|
+
{disabled}
|
|
138
|
+
{error}
|
|
139
|
+
focused={open}
|
|
140
|
+
{size}
|
|
141
|
+
{roundness}
|
|
142
|
+
{before}
|
|
143
|
+
{after}
|
|
144
|
+
>
|
|
145
|
+
{#if calendarIconPosition === 'before'}
|
|
146
|
+
<div class:before class:open class="Calendar">
|
|
147
|
+
{@render datePickerCalendarIcon()}
|
|
148
|
+
</div>
|
|
149
|
+
{/if}
|
|
150
|
+
|
|
151
|
+
<DynamicInput
|
|
152
|
+
type="text"
|
|
153
|
+
{name}
|
|
154
|
+
{id}
|
|
155
|
+
{disabled}
|
|
156
|
+
bind:ref
|
|
157
|
+
oninput={oninputMod}
|
|
158
|
+
{onchange}
|
|
159
|
+
onfocus={onfocusMod}
|
|
160
|
+
onblur={onblurMod}
|
|
161
|
+
{onpaste}
|
|
162
|
+
{oncopy}
|
|
163
|
+
{oncut}
|
|
164
|
+
{onkeydown}
|
|
165
|
+
{onkeypress}
|
|
166
|
+
{onkeyup}
|
|
167
|
+
{placeholder}
|
|
168
|
+
value={editable
|
|
169
|
+
? searchText
|
|
170
|
+
: getMoment(value, undefined, { timezone, utc }).format(format)}
|
|
171
|
+
{readonly}
|
|
172
|
+
variant={editable ? 'input' : 'button'}
|
|
173
|
+
>
|
|
174
|
+
{#snippet customInputContent()}
|
|
175
|
+
{#if customInputContentTyped}
|
|
176
|
+
{@render customInputContentTyped(value)}
|
|
177
|
+
{:else if value}
|
|
178
|
+
{getMoment(value, undefined, { timezone, utc }).format(format)}
|
|
179
|
+
{:else}
|
|
180
|
+
{placeholder}
|
|
181
|
+
{/if}
|
|
182
|
+
{/snippet}
|
|
183
|
+
</DynamicInput>
|
|
184
|
+
|
|
185
|
+
{#if value && clearable && !disabled}
|
|
186
|
+
<div class:after class="DatePickerClear">
|
|
187
|
+
<UtilityButton {size} title="Clear" onclick={onclearMod}>
|
|
188
|
+
<Icon icon="material-symbols:close-small" width="24" height="24" />
|
|
189
|
+
</UtilityButton>
|
|
190
|
+
</div>
|
|
191
|
+
{/if}
|
|
192
|
+
|
|
193
|
+
{#if calendarIconPosition === 'after'}
|
|
194
|
+
<div class:after class:open class="Calendar">
|
|
195
|
+
{@render datePickerCalendarIcon()}
|
|
196
|
+
</div>
|
|
197
|
+
{/if}
|
|
198
|
+
</InputEnclosure>
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
{#snippet popupChildren()}
|
|
202
|
+
{#if customPopupContentTyped}
|
|
203
|
+
{@render customPopupContentTyped()}
|
|
204
|
+
{:else}
|
|
205
|
+
<div class="CalendarContainer">
|
|
206
|
+
<Calendar
|
|
207
|
+
{value}
|
|
208
|
+
size={calenderSize}
|
|
209
|
+
{color}
|
|
210
|
+
{startOfWeek}
|
|
211
|
+
{timezone}
|
|
212
|
+
{utc}
|
|
213
|
+
{calendarDateChipProps}
|
|
214
|
+
{activeMonth}
|
|
215
|
+
{showSelected}
|
|
216
|
+
{showLastMonth}
|
|
217
|
+
{showNextMonth}
|
|
218
|
+
{showToday}
|
|
219
|
+
{today}
|
|
220
|
+
{minDate}
|
|
221
|
+
{maxDate}
|
|
222
|
+
{excludeDates}
|
|
223
|
+
{includeDates}
|
|
224
|
+
{customCalendarDateChipContent}
|
|
225
|
+
{customCalendarDateChip}
|
|
226
|
+
{customCalendarWeekContent}
|
|
227
|
+
{customCalendarWeek}
|
|
228
|
+
{weekendDays}
|
|
229
|
+
{weekendDaysColorDays}
|
|
230
|
+
{customCalendarControls}
|
|
231
|
+
{showCalendarControls}
|
|
232
|
+
{calendarMonthSelectorProps}
|
|
233
|
+
{customCalendarMonthSelector}
|
|
234
|
+
{customCalendarMonthSelectorContent}
|
|
235
|
+
{onMonthSelectorClick}
|
|
236
|
+
{calendarYearSelectorProps}
|
|
237
|
+
{customCalendarYearSelector}
|
|
238
|
+
{customCalendarYearSelectorContent}
|
|
239
|
+
{onYearSelectorClick}
|
|
240
|
+
{calendarNavigationProps}
|
|
241
|
+
{customCalendarNavigation}
|
|
242
|
+
{customCalendarNavigationNext}
|
|
243
|
+
{customCalendarNavigationPrev}
|
|
244
|
+
{customCalendarNavigationNextContent}
|
|
245
|
+
{customCalendarNavigationPrevContent}
|
|
246
|
+
{onCalendarNavigationNextClick}
|
|
247
|
+
{onCalendarNavigationPrevClick}
|
|
248
|
+
{disabledCalendarNavigationNext}
|
|
249
|
+
{disabledCalendarNavigationPrev}
|
|
250
|
+
{showCalendarMonthSelector}
|
|
251
|
+
{showCalendarYearSelector}
|
|
252
|
+
{showCalendarNavigator}
|
|
253
|
+
{onselectMonth}
|
|
254
|
+
{customCalendarMonthChipContent}
|
|
255
|
+
{customCalendarMonthChip}
|
|
256
|
+
{disabledMonths}
|
|
257
|
+
{calendarMonthChipProps}
|
|
258
|
+
{calendarYearChipProps}
|
|
259
|
+
{onselectYear}
|
|
260
|
+
{customCalendarYearChipContent}
|
|
261
|
+
{customCalendarYearChip}
|
|
262
|
+
{oncancelMonth}
|
|
263
|
+
{oncancelYear}
|
|
264
|
+
{showControlsMonthList}
|
|
265
|
+
{showControlsYearList}
|
|
266
|
+
onselect={onselectMod}
|
|
267
|
+
{calendarTopContent}
|
|
268
|
+
{calendarBottomContent}
|
|
269
|
+
{...calendarProps}
|
|
270
|
+
/>
|
|
271
|
+
</div>
|
|
272
|
+
{/if}
|
|
273
|
+
{/snippet}
|
|
274
|
+
</Popper>
|
|
275
|
+
</div>
|
|
276
|
+
|
|
277
|
+
<style>.dodo-ui-DatePicker .DatePicker.size--normal .DatePickerClear.after {
|
|
278
|
+
margin-right: calc(var(--dodo-ui-space-small) * 2);
|
|
279
|
+
}
|
|
280
|
+
.dodo-ui-DatePicker .DatePicker.size--normal .Calendar.after {
|
|
281
|
+
margin-right: calc(var(--dodo-ui-space-small) * 2);
|
|
282
|
+
}
|
|
283
|
+
.dodo-ui-DatePicker .DatePicker.size--normal .Calendar.before {
|
|
284
|
+
margin-right: calc(var(--dodo-ui-space-small) * 2);
|
|
285
|
+
}
|
|
286
|
+
.dodo-ui-DatePicker .DatePicker.size--small .DatePickerClear.after {
|
|
287
|
+
margin-right: var(--dodo-ui-space);
|
|
288
|
+
}
|
|
289
|
+
.dodo-ui-DatePicker .DatePicker.size--small .Calendar.after {
|
|
290
|
+
margin-right: var(--dodo-ui-space);
|
|
291
|
+
}
|
|
292
|
+
.dodo-ui-DatePicker .DatePicker.size--small .Calendar.before {
|
|
293
|
+
margin-right: var(--dodo-ui-space);
|
|
294
|
+
}
|
|
295
|
+
.dodo-ui-DatePicker .DatePicker.size--large .DatePickerClear.after {
|
|
296
|
+
margin-right: calc(var(--dodo-ui-space) * 2);
|
|
297
|
+
}
|
|
298
|
+
.dodo-ui-DatePicker .DatePicker.size--large .Calendar.after {
|
|
299
|
+
margin-right: calc(var(--dodo-ui-space) * 2);
|
|
300
|
+
}
|
|
301
|
+
.dodo-ui-DatePicker .DatePicker.size--large .Calendar.before {
|
|
302
|
+
margin-right: calc(var(--dodo-ui-space) * 2);
|
|
303
|
+
}
|
|
304
|
+
.dodo-ui-DatePicker .CalendarContainer {
|
|
305
|
+
padding: var(--dodo-ui-space);
|
|
306
|
+
}</style>
|