@flightlesslabs/dodo-ui 0.9.1 → 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 +17 -14
- 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,457 @@
|
|
|
1
|
+
<script lang="ts" module>export {};
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<script lang="ts">let { class: className = '', roundness = 2, selected = false, color = 'primary', ref = $bindable(), customCalendarMonthChipContent: customCalendarMonthChipContentInternal, customCalendarMonthChip: customCalendarMonthChipInternal, onselect, size = 'normal', value, disabled = false, } = $props();
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
let customCalendarMonthChipContentTyped = customCalendarMonthChipContentInternal;
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
|
+
let customCalendarMonthChipTyped = customCalendarMonthChipInternal;
|
|
9
|
+
export {};
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
{#snippet chipContent()}
|
|
13
|
+
{#if customCalendarMonthChipTyped}
|
|
14
|
+
{@render customCalendarMonthChipTyped(value)}
|
|
15
|
+
{:else}
|
|
16
|
+
<button class="chip" {disabled} onclick={onselect ? (e) => onselect(value, e) : undefined}>
|
|
17
|
+
{#if customCalendarMonthChipContentTyped}
|
|
18
|
+
{@render customCalendarMonthChipContentTyped(value)}
|
|
19
|
+
{:else}
|
|
20
|
+
{value}
|
|
21
|
+
{/if}
|
|
22
|
+
</button>
|
|
23
|
+
{/if}
|
|
24
|
+
{/snippet}
|
|
25
|
+
|
|
26
|
+
<li
|
|
27
|
+
class:disabled
|
|
28
|
+
class:selected
|
|
29
|
+
class={[
|
|
30
|
+
'dodo-ui-CalendarMonthChip',
|
|
31
|
+
`roundness--${roundness}`,
|
|
32
|
+
`color--${color}`,
|
|
33
|
+
`size--${size}`,
|
|
34
|
+
className,
|
|
35
|
+
].join(' ')}
|
|
36
|
+
bind:this={ref}
|
|
37
|
+
>
|
|
38
|
+
{@render chipContent()}
|
|
39
|
+
</li>
|
|
40
|
+
|
|
41
|
+
<style>:global(:root) {
|
|
42
|
+
--dodo-ui-CalendarMonthChip-disabled-bg: var(--dodo-color-neutral-50);
|
|
43
|
+
--dodo-ui-CalendarMonthChip-disabled-color: var(--dodo-color-neutral-400);
|
|
44
|
+
--dodo-ui-CalendarMonthChip-neutral-bg: transparent;
|
|
45
|
+
--dodo-ui-CalendarMonthChip-neutral-hover-bg: var(--dodo-color-neutral-100);
|
|
46
|
+
--dodo-ui-CalendarMonthChip-neutral-active-bg: var(--dodo-color-neutral-200);
|
|
47
|
+
--dodo-ui-CalendarMonthChip-selected-neutral-bg: var(--dodo-color-neutral-500);
|
|
48
|
+
--dodo-ui-CalendarMonthChip-selected-neutral-hover-bg: var(
|
|
49
|
+
--dodo-color-neutral-600
|
|
50
|
+
);
|
|
51
|
+
--dodo-ui-CalendarMonthChip-selected-neutral-active-bg: var(
|
|
52
|
+
--dodo-color-neutral-700
|
|
53
|
+
);
|
|
54
|
+
--dodo-ui-CalendarMonthChip-primary-bg: transparent;
|
|
55
|
+
--dodo-ui-CalendarMonthChip-primary-hover-bg: var(--dodo-color-primary-100);
|
|
56
|
+
--dodo-ui-CalendarMonthChip-primary-active-bg: var(--dodo-color-primary-200);
|
|
57
|
+
--dodo-ui-CalendarMonthChip-selected-primary-bg: var(--dodo-color-primary-500);
|
|
58
|
+
--dodo-ui-CalendarMonthChip-selected-primary-hover-bg: var(
|
|
59
|
+
--dodo-color-primary-600
|
|
60
|
+
);
|
|
61
|
+
--dodo-ui-CalendarMonthChip-selected-primary-active-bg: var(
|
|
62
|
+
--dodo-color-primary-700
|
|
63
|
+
);
|
|
64
|
+
--dodo-ui-CalendarMonthChip-secondary-bg: transparent;
|
|
65
|
+
--dodo-ui-CalendarMonthChip-secondary-hover-bg: var(--dodo-color-secondary-100);
|
|
66
|
+
--dodo-ui-CalendarMonthChip-secondary-active-bg: var(--dodo-color-secondary-200);
|
|
67
|
+
--dodo-ui-CalendarMonthChip-selected-secondary-bg: var(--dodo-color-secondary-500);
|
|
68
|
+
--dodo-ui-CalendarMonthChip-selected-secondary-hover-bg: var(
|
|
69
|
+
--dodo-color-secondary-600
|
|
70
|
+
);
|
|
71
|
+
--dodo-ui-CalendarMonthChip-selected-secondary-active-bg: var(
|
|
72
|
+
--dodo-color-secondary-700
|
|
73
|
+
);
|
|
74
|
+
--dodo-ui-CalendarMonthChip-safe-bg: transparent;
|
|
75
|
+
--dodo-ui-CalendarMonthChip-safe-hover-bg: var(--dodo-color-safe-100);
|
|
76
|
+
--dodo-ui-CalendarMonthChip-safe-active-bg: var(--dodo-color-safe-200);
|
|
77
|
+
--dodo-ui-CalendarMonthChip-selected-safe-bg: var(--dodo-color-safe-500);
|
|
78
|
+
--dodo-ui-CalendarMonthChip-selected-safe-hover-bg: var(
|
|
79
|
+
--dodo-color-safe-600
|
|
80
|
+
);
|
|
81
|
+
--dodo-ui-CalendarMonthChip-selected-safe-active-bg: var(
|
|
82
|
+
--dodo-color-safe-700
|
|
83
|
+
);
|
|
84
|
+
--dodo-ui-CalendarMonthChip-warning-bg: transparent;
|
|
85
|
+
--dodo-ui-CalendarMonthChip-warning-hover-bg: var(--dodo-color-warning-100);
|
|
86
|
+
--dodo-ui-CalendarMonthChip-warning-active-bg: var(--dodo-color-warning-200);
|
|
87
|
+
--dodo-ui-CalendarMonthChip-selected-warning-bg: var(--dodo-color-warning-500);
|
|
88
|
+
--dodo-ui-CalendarMonthChip-selected-warning-hover-bg: var(
|
|
89
|
+
--dodo-color-warning-600
|
|
90
|
+
);
|
|
91
|
+
--dodo-ui-CalendarMonthChip-selected-warning-active-bg: var(
|
|
92
|
+
--dodo-color-warning-700
|
|
93
|
+
);
|
|
94
|
+
--dodo-ui-CalendarMonthChip-danger-bg: transparent;
|
|
95
|
+
--dodo-ui-CalendarMonthChip-danger-hover-bg: var(--dodo-color-danger-100);
|
|
96
|
+
--dodo-ui-CalendarMonthChip-danger-active-bg: var(--dodo-color-danger-200);
|
|
97
|
+
--dodo-ui-CalendarMonthChip-selected-danger-bg: var(--dodo-color-danger-500);
|
|
98
|
+
--dodo-ui-CalendarMonthChip-selected-danger-hover-bg: var(
|
|
99
|
+
--dodo-color-danger-600
|
|
100
|
+
);
|
|
101
|
+
--dodo-ui-CalendarMonthChip-selected-danger-active-bg: var(
|
|
102
|
+
--dodo-color-danger-700
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:global(.dodo-theme--dark) {
|
|
107
|
+
--dodo-ui-CalendarMonthChip-disabled-bg: var(--dodo-color-neutral-200);
|
|
108
|
+
--dodo-ui-CalendarMonthChip-disabled-color: var(--dodo-color-neutral-400);
|
|
109
|
+
--dodo-ui-CalendarMonthChip-neutral-bg: transparent;
|
|
110
|
+
--dodo-ui-CalendarMonthChip-neutral-hover-bg: color-mix(
|
|
111
|
+
in oklab,
|
|
112
|
+
var(--dodo-color-neutral-50) 85%,
|
|
113
|
+
#fff
|
|
114
|
+
);
|
|
115
|
+
--dodo-ui-CalendarMonthChip-neutral-active-bg: color-mix(
|
|
116
|
+
in oklab,
|
|
117
|
+
var(--dodo-color-neutral-100) 85%,
|
|
118
|
+
#fff
|
|
119
|
+
);
|
|
120
|
+
--dodo-ui-CalendarMonthChip-selected-neutral-bg: var(--dodo-color-neutral-300);
|
|
121
|
+
--dodo-ui-CalendarMonthChip-selected-neutral-hover-bg: var(
|
|
122
|
+
--dodo-color-neutral-200
|
|
123
|
+
);
|
|
124
|
+
--dodo-ui-CalendarMonthChip-selected-neutral-active-bg: var(
|
|
125
|
+
--dodo-color-neutral-100
|
|
126
|
+
);
|
|
127
|
+
--dodo-ui-CalendarMonthChip-primary-bg: transparent;
|
|
128
|
+
--dodo-ui-CalendarMonthChip-primary-hover-bg: color-mix(
|
|
129
|
+
in oklab,
|
|
130
|
+
var(--dodo-color-primary-50) 85%,
|
|
131
|
+
#fff
|
|
132
|
+
);
|
|
133
|
+
--dodo-ui-CalendarMonthChip-primary-active-bg: color-mix(
|
|
134
|
+
in oklab,
|
|
135
|
+
var(--dodo-color-primary-100) 85%,
|
|
136
|
+
#fff
|
|
137
|
+
);
|
|
138
|
+
--dodo-ui-CalendarMonthChip-selected-primary-bg: var(--dodo-color-primary-300);
|
|
139
|
+
--dodo-ui-CalendarMonthChip-selected-primary-hover-bg: var(
|
|
140
|
+
--dodo-color-primary-200
|
|
141
|
+
);
|
|
142
|
+
--dodo-ui-CalendarMonthChip-selected-primary-active-bg: var(
|
|
143
|
+
--dodo-color-primary-100
|
|
144
|
+
);
|
|
145
|
+
--dodo-ui-CalendarMonthChip-secondary-bg: transparent;
|
|
146
|
+
--dodo-ui-CalendarMonthChip-secondary-hover-bg: color-mix(
|
|
147
|
+
in oklab,
|
|
148
|
+
var(--dodo-color-secondary-50) 85%,
|
|
149
|
+
#fff
|
|
150
|
+
);
|
|
151
|
+
--dodo-ui-CalendarMonthChip-secondary-active-bg: color-mix(
|
|
152
|
+
in oklab,
|
|
153
|
+
var(--dodo-color-secondary-100) 85%,
|
|
154
|
+
#fff
|
|
155
|
+
);
|
|
156
|
+
--dodo-ui-CalendarMonthChip-selected-secondary-bg: var(--dodo-color-secondary-300);
|
|
157
|
+
--dodo-ui-CalendarMonthChip-selected-secondary-hover-bg: var(
|
|
158
|
+
--dodo-color-secondary-200
|
|
159
|
+
);
|
|
160
|
+
--dodo-ui-CalendarMonthChip-selected-secondary-active-bg: var(
|
|
161
|
+
--dodo-color-secondary-100
|
|
162
|
+
);
|
|
163
|
+
--dodo-ui-CalendarMonthChip-safe-bg: transparent;
|
|
164
|
+
--dodo-ui-CalendarMonthChip-safe-hover-bg: color-mix(
|
|
165
|
+
in oklab,
|
|
166
|
+
var(--dodo-color-safe-50) 85%,
|
|
167
|
+
#fff
|
|
168
|
+
);
|
|
169
|
+
--dodo-ui-CalendarMonthChip-safe-active-bg: color-mix(
|
|
170
|
+
in oklab,
|
|
171
|
+
var(--dodo-color-safe-100) 85%,
|
|
172
|
+
#fff
|
|
173
|
+
);
|
|
174
|
+
--dodo-ui-CalendarMonthChip-selected-safe-bg: var(--dodo-color-safe-300);
|
|
175
|
+
--dodo-ui-CalendarMonthChip-selected-safe-hover-bg: var(
|
|
176
|
+
--dodo-color-safe-200
|
|
177
|
+
);
|
|
178
|
+
--dodo-ui-CalendarMonthChip-selected-safe-active-bg: var(
|
|
179
|
+
--dodo-color-safe-100
|
|
180
|
+
);
|
|
181
|
+
--dodo-ui-CalendarMonthChip-warning-bg: transparent;
|
|
182
|
+
--dodo-ui-CalendarMonthChip-warning-hover-bg: color-mix(
|
|
183
|
+
in oklab,
|
|
184
|
+
var(--dodo-color-warning-50) 85%,
|
|
185
|
+
#fff
|
|
186
|
+
);
|
|
187
|
+
--dodo-ui-CalendarMonthChip-warning-active-bg: color-mix(
|
|
188
|
+
in oklab,
|
|
189
|
+
var(--dodo-color-warning-100) 85%,
|
|
190
|
+
#fff
|
|
191
|
+
);
|
|
192
|
+
--dodo-ui-CalendarMonthChip-selected-warning-bg: var(--dodo-color-warning-300);
|
|
193
|
+
--dodo-ui-CalendarMonthChip-selected-warning-hover-bg: var(
|
|
194
|
+
--dodo-color-warning-200
|
|
195
|
+
);
|
|
196
|
+
--dodo-ui-CalendarMonthChip-selected-warning-active-bg: var(
|
|
197
|
+
--dodo-color-warning-100
|
|
198
|
+
);
|
|
199
|
+
--dodo-ui-CalendarMonthChip-danger-bg: transparent;
|
|
200
|
+
--dodo-ui-CalendarMonthChip-danger-hover-bg: color-mix(
|
|
201
|
+
in oklab,
|
|
202
|
+
var(--dodo-color-danger-50) 85%,
|
|
203
|
+
#fff
|
|
204
|
+
);
|
|
205
|
+
--dodo-ui-CalendarMonthChip-danger-active-bg: color-mix(
|
|
206
|
+
in oklab,
|
|
207
|
+
var(--dodo-color-danger-100) 85%,
|
|
208
|
+
#fff
|
|
209
|
+
);
|
|
210
|
+
--dodo-ui-CalendarMonthChip-selected-danger-bg: var(--dodo-color-danger-300);
|
|
211
|
+
--dodo-ui-CalendarMonthChip-selected-danger-hover-bg: var(
|
|
212
|
+
--dodo-color-danger-200
|
|
213
|
+
);
|
|
214
|
+
--dodo-ui-CalendarMonthChip-selected-danger-active-bg: var(
|
|
215
|
+
--dodo-color-danger-100
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.dodo-ui-CalendarMonthChip {
|
|
220
|
+
display: inline-flex;
|
|
221
|
+
justify-content: center;
|
|
222
|
+
align-items: center;
|
|
223
|
+
color: var(--dodo-color-neutral-800);
|
|
224
|
+
user-select: none;
|
|
225
|
+
}
|
|
226
|
+
.dodo-ui-CalendarMonthChip.roundness--1 .chip {
|
|
227
|
+
border-radius: var(--dodo-ui-element-roundness-1);
|
|
228
|
+
}
|
|
229
|
+
.dodo-ui-CalendarMonthChip.roundness--2 .chip {
|
|
230
|
+
border-radius: var(--dodo-ui-element-roundness-2);
|
|
231
|
+
}
|
|
232
|
+
.dodo-ui-CalendarMonthChip.roundness--3 .chip {
|
|
233
|
+
border-radius: var(--dodo-ui-element-roundness-3);
|
|
234
|
+
}
|
|
235
|
+
.dodo-ui-CalendarMonthChip.roundness--full .chip {
|
|
236
|
+
border-radius: 50%;
|
|
237
|
+
}
|
|
238
|
+
.dodo-ui-CalendarMonthChip.size--normal {
|
|
239
|
+
width: var(--dodo-ui-element-height-normal);
|
|
240
|
+
height: var(--dodo-ui-element-height-normal);
|
|
241
|
+
font-size: 1rem;
|
|
242
|
+
}
|
|
243
|
+
.dodo-ui-CalendarMonthChip.size--small {
|
|
244
|
+
width: var(--dodo-ui-element-height-small);
|
|
245
|
+
height: var(--dodo-ui-element-height-small);
|
|
246
|
+
font-size: 0.9rem;
|
|
247
|
+
}
|
|
248
|
+
.dodo-ui-CalendarMonthChip.size--large {
|
|
249
|
+
width: var(--dodo-ui-element-height-large);
|
|
250
|
+
height: var(--dodo-ui-element-height-large);
|
|
251
|
+
font-size: 1.1rem;
|
|
252
|
+
}
|
|
253
|
+
.dodo-ui-CalendarMonthChip.color--neutral .chip:not([disabled]) {
|
|
254
|
+
background-color: var(--dodo-ui-CalendarMonthChip-neutral-bg);
|
|
255
|
+
}
|
|
256
|
+
.dodo-ui-CalendarMonthChip.color--neutral .chip:not([disabled]):hover {
|
|
257
|
+
background-color: var(--dodo-ui-CalendarMonthChip-neutral-hover-bg);
|
|
258
|
+
}
|
|
259
|
+
.dodo-ui-CalendarMonthChip.color--neutral .chip:not([disabled]):active {
|
|
260
|
+
background-color: var(--dodo-ui-CalendarMonthChip-neutral-active-bg);
|
|
261
|
+
}
|
|
262
|
+
.dodo-ui-CalendarMonthChip.color--neutral.today .chip:not([disabled]) {
|
|
263
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-neutral-bg);
|
|
264
|
+
}
|
|
265
|
+
.dodo-ui-CalendarMonthChip.color--neutral.today .chip:not([disabled]):hover {
|
|
266
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-neutral-hover-bg);
|
|
267
|
+
}
|
|
268
|
+
.dodo-ui-CalendarMonthChip.color--neutral.today .chip:not([disabled]):active {
|
|
269
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-neutral-active-bg);
|
|
270
|
+
}
|
|
271
|
+
.dodo-ui-CalendarMonthChip.color--neutral.selected .chip:not([disabled]) {
|
|
272
|
+
color: var(--dodo-color-constant-white);
|
|
273
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-neutral-bg);
|
|
274
|
+
}
|
|
275
|
+
.dodo-ui-CalendarMonthChip.color--neutral.selected .chip:not([disabled]):hover {
|
|
276
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-neutral-hover-bg);
|
|
277
|
+
}
|
|
278
|
+
.dodo-ui-CalendarMonthChip.color--neutral.selected .chip:not([disabled]):active {
|
|
279
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-neutral-active-bg);
|
|
280
|
+
}
|
|
281
|
+
.dodo-ui-CalendarMonthChip.color--primary .chip:not([disabled]) {
|
|
282
|
+
background-color: var(--dodo-ui-CalendarMonthChip-primary-bg);
|
|
283
|
+
}
|
|
284
|
+
.dodo-ui-CalendarMonthChip.color--primary .chip:not([disabled]):hover {
|
|
285
|
+
background-color: var(--dodo-ui-CalendarMonthChip-primary-hover-bg);
|
|
286
|
+
}
|
|
287
|
+
.dodo-ui-CalendarMonthChip.color--primary .chip:not([disabled]):active {
|
|
288
|
+
background-color: var(--dodo-ui-CalendarMonthChip-primary-active-bg);
|
|
289
|
+
}
|
|
290
|
+
.dodo-ui-CalendarMonthChip.color--primary.today .chip:not([disabled]) {
|
|
291
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-primary-bg);
|
|
292
|
+
}
|
|
293
|
+
.dodo-ui-CalendarMonthChip.color--primary.today .chip:not([disabled]):hover {
|
|
294
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-primary-hover-bg);
|
|
295
|
+
}
|
|
296
|
+
.dodo-ui-CalendarMonthChip.color--primary.today .chip:not([disabled]):active {
|
|
297
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-primary-active-bg);
|
|
298
|
+
}
|
|
299
|
+
.dodo-ui-CalendarMonthChip.color--primary.selected .chip:not([disabled]) {
|
|
300
|
+
color: var(--dodo-color-constant-white);
|
|
301
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-primary-bg);
|
|
302
|
+
}
|
|
303
|
+
.dodo-ui-CalendarMonthChip.color--primary.selected .chip:not([disabled]):hover {
|
|
304
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-primary-hover-bg);
|
|
305
|
+
}
|
|
306
|
+
.dodo-ui-CalendarMonthChip.color--primary.selected .chip:not([disabled]):active {
|
|
307
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-primary-active-bg);
|
|
308
|
+
}
|
|
309
|
+
.dodo-ui-CalendarMonthChip.color--secondary .chip:not([disabled]) {
|
|
310
|
+
background-color: var(--dodo-ui-CalendarMonthChip-secondary-bg);
|
|
311
|
+
}
|
|
312
|
+
.dodo-ui-CalendarMonthChip.color--secondary .chip:not([disabled]):hover {
|
|
313
|
+
background-color: var(--dodo-ui-CalendarMonthChip-secondary-hover-bg);
|
|
314
|
+
}
|
|
315
|
+
.dodo-ui-CalendarMonthChip.color--secondary .chip:not([disabled]):active {
|
|
316
|
+
background-color: var(--dodo-ui-CalendarMonthChip-secondary-active-bg);
|
|
317
|
+
}
|
|
318
|
+
.dodo-ui-CalendarMonthChip.color--secondary.today .chip:not([disabled]) {
|
|
319
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-secondary-bg);
|
|
320
|
+
}
|
|
321
|
+
.dodo-ui-CalendarMonthChip.color--secondary.today .chip:not([disabled]):hover {
|
|
322
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-secondary-hover-bg);
|
|
323
|
+
}
|
|
324
|
+
.dodo-ui-CalendarMonthChip.color--secondary.today .chip:not([disabled]):active {
|
|
325
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-secondary-active-bg);
|
|
326
|
+
}
|
|
327
|
+
.dodo-ui-CalendarMonthChip.color--secondary.selected .chip:not([disabled]) {
|
|
328
|
+
color: var(--dodo-color-constant-white);
|
|
329
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-secondary-bg);
|
|
330
|
+
}
|
|
331
|
+
.dodo-ui-CalendarMonthChip.color--secondary.selected .chip:not([disabled]):hover {
|
|
332
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-secondary-hover-bg);
|
|
333
|
+
}
|
|
334
|
+
.dodo-ui-CalendarMonthChip.color--secondary.selected .chip:not([disabled]):active {
|
|
335
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-secondary-active-bg);
|
|
336
|
+
}
|
|
337
|
+
.dodo-ui-CalendarMonthChip.color--safe .chip:not([disabled]) {
|
|
338
|
+
background-color: var(--dodo-ui-CalendarMonthChip-safe-bg);
|
|
339
|
+
}
|
|
340
|
+
.dodo-ui-CalendarMonthChip.color--safe .chip:not([disabled]):hover {
|
|
341
|
+
background-color: var(--dodo-ui-CalendarMonthChip-safe-hover-bg);
|
|
342
|
+
}
|
|
343
|
+
.dodo-ui-CalendarMonthChip.color--safe .chip:not([disabled]):active {
|
|
344
|
+
background-color: var(--dodo-ui-CalendarMonthChip-safe-active-bg);
|
|
345
|
+
}
|
|
346
|
+
.dodo-ui-CalendarMonthChip.color--safe.today .chip:not([disabled]) {
|
|
347
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-safe-bg);
|
|
348
|
+
}
|
|
349
|
+
.dodo-ui-CalendarMonthChip.color--safe.today .chip:not([disabled]):hover {
|
|
350
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-safe-hover-bg);
|
|
351
|
+
}
|
|
352
|
+
.dodo-ui-CalendarMonthChip.color--safe.today .chip:not([disabled]):active {
|
|
353
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-safe-active-bg);
|
|
354
|
+
}
|
|
355
|
+
.dodo-ui-CalendarMonthChip.color--safe.selected .chip:not([disabled]) {
|
|
356
|
+
color: var(--dodo-color-constant-white);
|
|
357
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-safe-bg);
|
|
358
|
+
}
|
|
359
|
+
.dodo-ui-CalendarMonthChip.color--safe.selected .chip:not([disabled]):hover {
|
|
360
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-safe-hover-bg);
|
|
361
|
+
}
|
|
362
|
+
.dodo-ui-CalendarMonthChip.color--safe.selected .chip:not([disabled]):active {
|
|
363
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-safe-active-bg);
|
|
364
|
+
}
|
|
365
|
+
.dodo-ui-CalendarMonthChip.color--warning .chip:not([disabled]) {
|
|
366
|
+
background-color: var(--dodo-ui-CalendarMonthChip-warning-bg);
|
|
367
|
+
}
|
|
368
|
+
.dodo-ui-CalendarMonthChip.color--warning .chip:not([disabled]):hover {
|
|
369
|
+
background-color: var(--dodo-ui-CalendarMonthChip-warning-hover-bg);
|
|
370
|
+
}
|
|
371
|
+
.dodo-ui-CalendarMonthChip.color--warning .chip:not([disabled]):active {
|
|
372
|
+
background-color: var(--dodo-ui-CalendarMonthChip-warning-active-bg);
|
|
373
|
+
}
|
|
374
|
+
.dodo-ui-CalendarMonthChip.color--warning.today .chip:not([disabled]) {
|
|
375
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-warning-bg);
|
|
376
|
+
}
|
|
377
|
+
.dodo-ui-CalendarMonthChip.color--warning.today .chip:not([disabled]):hover {
|
|
378
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-warning-hover-bg);
|
|
379
|
+
}
|
|
380
|
+
.dodo-ui-CalendarMonthChip.color--warning.today .chip:not([disabled]):active {
|
|
381
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-warning-active-bg);
|
|
382
|
+
}
|
|
383
|
+
.dodo-ui-CalendarMonthChip.color--warning.selected .chip:not([disabled]) {
|
|
384
|
+
color: var(--dodo-color-constant-white);
|
|
385
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-warning-bg);
|
|
386
|
+
}
|
|
387
|
+
.dodo-ui-CalendarMonthChip.color--warning.selected .chip:not([disabled]):hover {
|
|
388
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-warning-hover-bg);
|
|
389
|
+
}
|
|
390
|
+
.dodo-ui-CalendarMonthChip.color--warning.selected .chip:not([disabled]):active {
|
|
391
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-warning-active-bg);
|
|
392
|
+
}
|
|
393
|
+
.dodo-ui-CalendarMonthChip.color--danger .chip:not([disabled]) {
|
|
394
|
+
background-color: var(--dodo-ui-CalendarMonthChip-danger-bg);
|
|
395
|
+
}
|
|
396
|
+
.dodo-ui-CalendarMonthChip.color--danger .chip:not([disabled]):hover {
|
|
397
|
+
background-color: var(--dodo-ui-CalendarMonthChip-danger-hover-bg);
|
|
398
|
+
}
|
|
399
|
+
.dodo-ui-CalendarMonthChip.color--danger .chip:not([disabled]):active {
|
|
400
|
+
background-color: var(--dodo-ui-CalendarMonthChip-danger-active-bg);
|
|
401
|
+
}
|
|
402
|
+
.dodo-ui-CalendarMonthChip.color--danger.today .chip:not([disabled]) {
|
|
403
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-danger-bg);
|
|
404
|
+
}
|
|
405
|
+
.dodo-ui-CalendarMonthChip.color--danger.today .chip:not([disabled]):hover {
|
|
406
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-danger-hover-bg);
|
|
407
|
+
}
|
|
408
|
+
.dodo-ui-CalendarMonthChip.color--danger.today .chip:not([disabled]):active {
|
|
409
|
+
background-color: var(--dodo-ui-CalendarMonthChip-today-danger-active-bg);
|
|
410
|
+
}
|
|
411
|
+
.dodo-ui-CalendarMonthChip.color--danger.selected .chip:not([disabled]) {
|
|
412
|
+
color: var(--dodo-color-constant-white);
|
|
413
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-danger-bg);
|
|
414
|
+
}
|
|
415
|
+
.dodo-ui-CalendarMonthChip.color--danger.selected .chip:not([disabled]):hover {
|
|
416
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-danger-hover-bg);
|
|
417
|
+
}
|
|
418
|
+
.dodo-ui-CalendarMonthChip.color--danger.selected .chip:not([disabled]):active {
|
|
419
|
+
background-color: var(--dodo-ui-CalendarMonthChip-selected-danger-active-bg);
|
|
420
|
+
}
|
|
421
|
+
.dodo-ui-CalendarMonthChip .chip {
|
|
422
|
+
cursor: pointer;
|
|
423
|
+
outline: none;
|
|
424
|
+
letter-spacing: 0.3px;
|
|
425
|
+
transition: all 150ms;
|
|
426
|
+
text-decoration: none;
|
|
427
|
+
margin: 0;
|
|
428
|
+
display: inline-flex;
|
|
429
|
+
justify-content: center;
|
|
430
|
+
align-items: center;
|
|
431
|
+
font-family: inherit;
|
|
432
|
+
background-color: transparent;
|
|
433
|
+
transition: all 50ms;
|
|
434
|
+
width: 100%;
|
|
435
|
+
height: 100%;
|
|
436
|
+
display: flex;
|
|
437
|
+
justify-content: center;
|
|
438
|
+
align-items: center;
|
|
439
|
+
outline: 0;
|
|
440
|
+
border: 0;
|
|
441
|
+
color: inherit;
|
|
442
|
+
font-size: inherit;
|
|
443
|
+
text-transform: capitalize;
|
|
444
|
+
}
|
|
445
|
+
.dodo-ui-CalendarMonthChip .chip[disabled] {
|
|
446
|
+
cursor: initial;
|
|
447
|
+
background-color: var(--dodo-ui-CalendarMonthChip-disabled-bg);
|
|
448
|
+
color: var(--dodo-ui-CalendarMonthChip-disabled-color);
|
|
449
|
+
}
|
|
450
|
+
.dodo-ui-CalendarMonthChip .chip[disabled]:hover {
|
|
451
|
+
background-color: var(--dodo-ui-CalendarMonthChip-disabled-bg);
|
|
452
|
+
color: var(--dodo-ui-CalendarMonthChip-disabled-color);
|
|
453
|
+
}
|
|
454
|
+
.dodo-ui-CalendarMonthChip .chip[disabled]:active {
|
|
455
|
+
background-color: var(--dodo-ui-CalendarMonthChip-disabled-bg);
|
|
456
|
+
color: var(--dodo-ui-CalendarMonthChip-disabled-color);
|
|
457
|
+
}</style>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface CalendarMonthChipProps {
|
|
2
|
+
/** CalendarDatesChart ref */
|
|
3
|
+
ref?: HTMLLIElement;
|
|
4
|
+
/** Custom css class */
|
|
5
|
+
class?: string;
|
|
6
|
+
/** How round should the border radius be? */
|
|
7
|
+
roundness?: ComponentRoundness;
|
|
8
|
+
/** What color to use? */
|
|
9
|
+
color?: ComponentColor;
|
|
10
|
+
/** Month value */
|
|
11
|
+
value: CalendarMonthNames;
|
|
12
|
+
/** Is Date Selected */
|
|
13
|
+
selected?: boolean;
|
|
14
|
+
/** onselect event handler */
|
|
15
|
+
onselect?: (value: CalendarMonthNames, e: ButtonClickEvent) => void;
|
|
16
|
+
/** Custom Calendar Chip Content */
|
|
17
|
+
customCalendarMonthChipContent?: (value: CalendarMonthNames) => Snippet;
|
|
18
|
+
/** Custom Calendar Chip Content */
|
|
19
|
+
customCalendarMonthChip?: (value: CalendarMonthNames) => Snippet;
|
|
20
|
+
/** How large should the Calendar Chip be? */
|
|
21
|
+
size?: ComponentSize;
|
|
22
|
+
/** Disabled */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
import type { ComponentColor } from '../../../../../../../types/colors.js';
|
|
26
|
+
import type { ComponentRoundness } from '../../../../../../../types/roundness.js';
|
|
27
|
+
import type { Snippet } from 'svelte';
|
|
28
|
+
import type { ButtonClickEvent } from '../../../../../Form/Button/Button.svelte';
|
|
29
|
+
import type { ComponentSize } from '../../../../../../../types/size.js';
|
|
30
|
+
import type { CalendarMonthNames } from '../../CalendarControls/CalendarMonthSelector/CalendarMonthSelector.svelte';
|
|
31
|
+
declare const CalendarMonthChip: import("svelte").Component<CalendarMonthChipProps, {}, "ref">;
|
|
32
|
+
type CalendarMonthChip = ReturnType<typeof CalendarMonthChip>;
|
|
33
|
+
export default CalendarMonthChip;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script module>
|
|
2
|
+
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
+
import CalendarMonthChip from '../CalendarMonthChip.svelte';
|
|
4
|
+
import { storyCalendarMonthChipArgTypes } from '../CalendarMonthChip.stories.svelte';
|
|
5
|
+
|
|
6
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
|
+
const { Story } = defineMeta({
|
|
8
|
+
component: CalendarMonthChip,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
argTypes: storyCalendarMonthChipArgTypes,
|
|
11
|
+
args: {
|
|
12
|
+
value: 'jan',
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<Story name="Primary" />
|
|
18
|
+
<Story name="Secondary" args={{ color: 'secondary' }} />
|
|
19
|
+
<Story name="Neutral" args={{ color: 'neutral' }} />
|
|
20
|
+
<Story name="Safe" args={{ color: 'safe' }} />
|
|
21
|
+
<Story name="Warning" args={{ color: 'warning' }} />
|
|
22
|
+
<Story name="Danger" args={{ color: 'danger' }} />
|
|
23
|
+
|
|
24
|
+
<Story name="Primary Selected" args={{ color: 'primary', selected: true }} />
|
|
25
|
+
<Story name="Secondary Selected" args={{ color: 'secondary', selected: true }} />
|
|
26
|
+
<Story name="Neutral Selected" args={{ color: 'neutral', selected: true }} />
|
|
27
|
+
<Story name="Safe Selected" args={{ color: 'safe', selected: true }} />
|
|
28
|
+
<Story name="Warning Selected" args={{ color: 'warning', selected: true }} />
|
|
29
|
+
<Story name="Danger Selected" args={{ color: 'danger', selected: true }} />
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Color;
|
|
2
|
+
type Color = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Color: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
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> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<script module lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
2
|
+
import CalendarMonthChip from '../CalendarMonthChip.svelte';
|
|
3
|
+
import { storyCalendarMonthChipArgTypes } from '../CalendarMonthChip.stories.svelte';
|
|
4
|
+
import { Button } from '../../../../../../../../index.js';
|
|
5
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
6
|
+
const { Story } = defineMeta({
|
|
7
|
+
component: CalendarMonthChip,
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
argTypes: storyCalendarMonthChipArgTypes,
|
|
10
|
+
});
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<!-- Custom Content -->
|
|
14
|
+
<Story name="customCalendarMonthChipContent" asChild>
|
|
15
|
+
<CalendarMonthChip value="jan">
|
|
16
|
+
{#snippet customCalendarMonthChipContent(val)}
|
|
17
|
+
🗓️{val}
|
|
18
|
+
{/snippet}
|
|
19
|
+
</CalendarMonthChip>
|
|
20
|
+
</Story>
|
|
21
|
+
|
|
22
|
+
<!-- Custom Chip -->
|
|
23
|
+
<Story name="customCalendarMonthChip" asChild>
|
|
24
|
+
<CalendarMonthChip value="jan">
|
|
25
|
+
{#snippet customCalendarMonthChip(val)}
|
|
26
|
+
<Button size="small" variant="text" outline>
|
|
27
|
+
{val}
|
|
28
|
+
</Button>
|
|
29
|
+
{/snippet}
|
|
30
|
+
</CalendarMonthChip>
|
|
31
|
+
</Story>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
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> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const Customize: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type Customize = InstanceType<typeof Customize>;
|
|
18
|
+
export default Customize;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script module lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
2
|
+
import CalendarMonthChip from '../CalendarMonthChip.svelte';
|
|
3
|
+
import { storyCalendarMonthChipArgTypes } from '../CalendarMonthChip.stories.svelte';
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
5
|
+
const { Story } = defineMeta({
|
|
6
|
+
component: CalendarMonthChip,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: storyCalendarMonthChipArgTypes,
|
|
9
|
+
});
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<Story name="Select" asChild>
|
|
13
|
+
<CalendarMonthChip
|
|
14
|
+
value="jan"
|
|
15
|
+
onselect={(value, e) => {
|
|
16
|
+
const target = e.target as HTMLButtonElement;
|
|
17
|
+
alert(`CalendarMonthChip Select, ${value}`);
|
|
18
|
+
console.log('CalendarMonthChip Select', value, target);
|
|
19
|
+
}}
|
|
20
|
+
/>
|
|
21
|
+
</Story>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
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> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const Events: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type Events = InstanceType<typeof Events>;
|
|
18
|
+
export default Events;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
<script module>
|
|
2
2
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import CalendarMonthChip from '../CalendarMonthChip.svelte';
|
|
4
|
+
import { storyCalendarMonthChipArgTypes } from '../CalendarMonthChip.stories.svelte';
|
|
5
5
|
|
|
6
6
|
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
7
|
const { Story } = defineMeta({
|
|
8
|
-
component:
|
|
8
|
+
component: CalendarMonthChip,
|
|
9
9
|
tags: ['autodocs'],
|
|
10
|
-
argTypes:
|
|
10
|
+
argTypes: storyCalendarMonthChipArgTypes,
|
|
11
|
+
args: {
|
|
12
|
+
value: 'jan',
|
|
13
|
+
},
|
|
11
14
|
});
|
|
12
15
|
</script>
|
|
13
16
|
|
|
17
|
+
<!-- Hover to see the result -->
|
|
14
18
|
<Story name="Roundness 1" />
|
|
15
19
|
|
|
16
20
|
<Story name="Roundness 2" args={{ roundness: 2 }} />
|
|
@@ -18,3 +22,5 @@
|
|
|
18
22
|
<Story name="Roundness 3" args={{ roundness: 3 }} />
|
|
19
23
|
|
|
20
24
|
<Story name="Roundness 0" args={{ roundness: 0 }} />
|
|
25
|
+
|
|
26
|
+
<Story name="Roundness Full" args={{ roundness: 'full', compact: true }} />
|