@flightlesslabs/dodo-ui 0.19.1 → 1.0.0--beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/{stories/Home.mdx → Home.mdx} +7 -20
- package/dist/attributes/color.d.ts +11 -0
- package/dist/attributes/color.js +13 -0
- package/dist/attributes/roundness.d.ts +12 -0
- package/dist/attributes/roundness.js +9 -0
- package/dist/attributes/size.d.ts +6 -0
- package/dist/attributes/size.js +5 -0
- package/dist/attributes/variant.d.ts +6 -0
- package/dist/attributes/variant.js +5 -0
- package/dist/components/Form/Button/Button.scss +164 -0
- package/dist/components/Form/Button/Button.stories.svelte +148 -0
- package/dist/{stories/components → components}/Form/Button/Button.stories.svelte.d.ts +3 -2
- package/dist/components/Form/Button/Button.svelte +53 -0
- package/dist/components/Form/Button/Button.svelte.d.ts +76 -0
- package/dist/components/Form/InputEnclosure/InputAffix.svelte +21 -0
- package/dist/components/Form/InputEnclosure/InputAffix.svelte.d.ts +26 -0
- package/dist/components/Form/InputEnclosure/InputEnclosure.scss +105 -0
- package/dist/components/Form/InputEnclosure/InputEnclosure.stories.svelte +126 -0
- package/dist/{stories/developer tools/components/InputEnclosure/InputEnclosure.stories.svelte.d.ts → components/Form/InputEnclosure/InputEnclosure.stories.svelte.d.ts} +3 -2
- package/dist/components/Form/InputEnclosure/InputEnclosure.svelte +42 -0
- package/dist/components/Form/InputEnclosure/InputEnclosure.svelte.d.ts +64 -0
- package/dist/components/Form/TextInput/TextInput.scss +34 -0
- package/dist/components/Form/TextInput/TextInput.stories.svelte +148 -0
- package/dist/{stories/components → components}/Form/TextInput/TextInput.stories.svelte.d.ts +3 -2
- package/dist/components/Form/TextInput/TextInput.svelte +44 -0
- package/dist/components/Form/TextInput/TextInput.svelte.d.ts +67 -0
- package/dist/components/Form/index.d.ts +3 -0
- package/dist/components/Form/index.js +3 -0
- package/dist/index.d.ts +15 -128
- package/dist/index.js +15 -77
- package/dist/styles/scss/mixins/_button-color.scss +140 -0
- package/package.json +38 -38
- package/src/lib/Home.mdx +59 -0
- package/src/lib/attributes/color.ts +19 -0
- package/src/lib/attributes/roundness.ts +14 -0
- package/src/lib/attributes/size.ts +8 -0
- package/src/lib/attributes/variant.ts +8 -0
- package/src/lib/components/Form/Button/Button.scss +164 -0
- package/src/lib/components/Form/Button/Button.stories.svelte +156 -0
- package/src/lib/components/Form/Button/Button.svelte +165 -0
- package/src/lib/components/Form/InputEnclosure/InputAffix.svelte +52 -0
- package/src/lib/components/Form/InputEnclosure/InputEnclosure.scss +105 -0
- package/src/lib/components/Form/InputEnclosure/InputEnclosure.stories.svelte +136 -0
- package/src/lib/components/Form/InputEnclosure/InputEnclosure.svelte +132 -0
- package/src/lib/components/Form/TextInput/TextInput.scss +34 -0
- package/src/lib/components/Form/TextInput/TextInput.stories.svelte +159 -0
- package/src/lib/components/Form/TextInput/TextInput.svelte +141 -0
- package/src/lib/components/Form/index.ts +18 -0
- package/src/lib/index.ts +22 -231
- package/src/lib/styles/scss/mixins/_button-color.scss +140 -0
- package/dist/stories/assets/dark-theme-toggle.png +0 -0
- package/dist/stories/components/Form/Button/Button.stories.svelte +0 -57
- package/dist/stories/components/Form/Button/Button.svelte +0 -500
- package/dist/stories/components/Form/Button/Button.svelte.d.ts +0 -74
- package/dist/stories/components/Form/Button/Color/Color.stories.svelte +0 -43
- package/dist/stories/components/Form/Button/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Button/Events/Events.stories.svelte +0 -34
- package/dist/stories/components/Form/Button/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Button/IconButton/IconButton.stories.svelte +0 -43
- package/dist/stories/components/Form/Button/IconButton/IconButton.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Button/Roundness/Roundness.stories.svelte +0 -23
- package/dist/stories/components/Form/Button/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Button/Size/Size.stories.svelte +0 -16
- package/dist/stories/components/Form/Button/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Button/Variant/Variant.stories.svelte +0 -18
- package/dist/stories/components/Form/Button/Variant/Variant.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Button/utils/scss/mixins.scss +0 -86
- package/dist/stories/components/Form/Checkbox/Checkbox.stories.svelte +0 -39
- package/dist/stories/components/Form/Checkbox/Checkbox.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Form/Checkbox/Checkbox.svelte +0 -452
- package/dist/stories/components/Form/Checkbox/Checkbox.svelte.d.ts +0 -42
- package/dist/stories/components/Form/Checkbox/Color/Color.stories.svelte +0 -19
- package/dist/stories/components/Form/Checkbox/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Checkbox/Customize/Customize.stories.svelte +0 -27
- package/dist/stories/components/Form/Checkbox/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Checkbox/Events/Events.stories.svelte +0 -35
- package/dist/stories/components/Form/Checkbox/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Checkbox/Roundness/Roundness.stories.svelte +0 -22
- package/dist/stories/components/Form/Checkbox/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Checkbox/Size/Size.stories.svelte +0 -16
- package/dist/stories/components/Form/Checkbox/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Checkbox/utils/scss/mixins.scss +0 -80
- package/dist/stories/components/Form/DatePicker/Color/Color.stories.svelte +0 -44
- package/dist/stories/components/Form/DatePicker/Color/Color.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/DatePicker/Controls/Controls.stories.svelte +0 -55
- package/dist/stories/components/Form/DatePicker/Controls/Controls.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/DatePicker/Customize/Customize.stories.svelte +0 -164
- package/dist/stories/components/Form/DatePicker/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/DatePicker/DatePicker.stories.svelte +0 -102
- package/dist/stories/components/Form/DatePicker/DatePicker.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Form/DatePicker/DatePicker.svelte +0 -298
- package/dist/stories/components/Form/DatePicker/DatePicker.svelte.d.ts +0 -217
- package/dist/stories/components/Form/DatePicker/Events/Events.stories.svelte +0 -139
- package/dist/stories/components/Form/DatePicker/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/DatePicker/FilterDates/FilterDates.stories.svelte +0 -58
- package/dist/stories/components/Form/DatePicker/FilterDates/FilterDates.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/DatePicker/Positions/AutoPosition/AutoPosition.stories.svelte +0 -43
- package/dist/stories/components/Form/DatePicker/Positions/AutoPosition/AutoPosition.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/DatePicker/Positions/Positions.stories.svelte +0 -54
- package/dist/stories/components/Form/DatePicker/Positions/Positions.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/DatePicker/Roundness/Roundness.stories.svelte +0 -35
- package/dist/stories/components/Form/DatePicker/Roundness/Roundness.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/DatePicker/Size/Size.stories.svelte +0 -38
- package/dist/stories/components/Form/DatePicker/Size/Size.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/DatePicker/WithIcon/WithIcon.stories.svelte +0 -38
- package/dist/stories/components/Form/DatePicker/WithIcon/WithIcon.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/FormControl/FormControl.stories.svelte +0 -26
- package/dist/stories/components/Form/FormControl/FormControl.stories.svelte.d.ts +0 -19
- package/dist/stories/components/Form/FormControl/FormControl.svelte +0 -32
- package/dist/stories/components/Form/FormControl/FormControl.svelte.d.ts +0 -20
- package/dist/stories/components/Form/Label/Label.stories.svelte +0 -11
- package/dist/stories/components/Form/Label/Label.stories.svelte.d.ts +0 -19
- package/dist/stories/components/Form/Label/Label.svelte +0 -20
- package/dist/stories/components/Form/Label/Label.svelte.d.ts +0 -16
- package/dist/stories/components/Form/Message/Color/Color.stories.svelte +0 -36
- package/dist/stories/components/Form/Message/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Message/Message.stories.svelte +0 -23
- package/dist/stories/components/Form/Message/Message.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Form/Message/Message.svelte +0 -48
- package/dist/stories/components/Form/Message/Message.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Message/Size/Size.stories.svelte +0 -22
- package/dist/stories/components/Form/Message/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/NumericInput/Events/Events.stories.svelte +0 -126
- package/dist/stories/components/Form/NumericInput/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/NumericInput/NumericInput.stories.svelte +0 -79
- package/dist/stories/components/Form/NumericInput/NumericInput.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Form/NumericInput/NumericInput.svelte +0 -162
- package/dist/stories/components/Form/NumericInput/NumericInput.svelte.d.ts +0 -69
- package/dist/stories/components/Form/NumericInput/Roundness/Roundness.stories.svelte +0 -20
- package/dist/stories/components/Form/NumericInput/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/NumericInput/Size/Size.stories.svelte +0 -16
- package/dist/stories/components/Form/NumericInput/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/NumericInput/Validation/Validation.stories.svelte +0 -84
- package/dist/stories/components/Form/NumericInput/Validation/Validation.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/NumericInput/WithIcon/WithIcon.stories.svelte +0 -31
- package/dist/stories/components/Form/NumericInput/WithIcon/WithIcon.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/PasswordInput/Events/Events.stories.svelte +0 -125
- package/dist/stories/components/Form/PasswordInput/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/PasswordInput/PasswordInput.stories.svelte +0 -54
- package/dist/stories/components/Form/PasswordInput/PasswordInput.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Form/PasswordInput/PasswordInput.svelte +0 -100
- package/dist/stories/components/Form/PasswordInput/PasswordInput.svelte.d.ts +0 -69
- package/dist/stories/components/Form/PasswordInput/Roundness/Roundness.stories.svelte +0 -20
- package/dist/stories/components/Form/PasswordInput/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/PasswordInput/Size/Size.stories.svelte +0 -16
- package/dist/stories/components/Form/PasswordInput/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/PasswordInput/WithIcon/WithIcon.stories.svelte +0 -31
- package/dist/stories/components/Form/PasswordInput/WithIcon/WithIcon.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Radio/Color/Color.stories.svelte +0 -19
- package/dist/stories/components/Form/Radio/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Radio/Events/Events.stories.svelte +0 -32
- package/dist/stories/components/Form/Radio/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Radio/Radio.stories.svelte +0 -39
- package/dist/stories/components/Form/Radio/Radio.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Form/Radio/Radio.svelte +0 -412
- package/dist/stories/components/Form/Radio/Radio.svelte.d.ts +0 -36
- package/dist/stories/components/Form/Radio/Roundness/Roundness.stories.svelte +0 -22
- package/dist/stories/components/Form/Radio/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Radio/Size/Size.stories.svelte +0 -16
- package/dist/stories/components/Form/Radio/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Radio/utils/scss/mixins.scss +0 -85
- package/dist/stories/components/Form/RangeSlider/Color/Color.stories.svelte +0 -19
- package/dist/stories/components/Form/RangeSlider/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/RangeSlider/Events/Events.stories.svelte +0 -59
- package/dist/stories/components/Form/RangeSlider/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/RangeSlider/RangeSlider.stories.svelte +0 -64
- package/dist/stories/components/Form/RangeSlider/RangeSlider.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Form/RangeSlider/RangeSlider.svelte +0 -538
- package/dist/stories/components/Form/RangeSlider/RangeSlider.svelte.d.ts +0 -48
- package/dist/stories/components/Form/RangeSlider/Roundness/Roundness.stories.svelte +0 -30
- package/dist/stories/components/Form/RangeSlider/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/RangeSlider/Size/Size.stories.svelte +0 -16
- package/dist/stories/components/Form/RangeSlider/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/RangeSlider/WithIcon/WithIcon.stories.svelte +0 -30
- package/dist/stories/components/Form/RangeSlider/WithIcon/WithIcon.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/RangeSlider/utils/scss/mixins.scss +0 -91
- package/dist/stories/components/Form/Search/Events/Events.stories.svelte +0 -137
- package/dist/stories/components/Form/Search/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Search/Roundness/Roundness.stories.svelte +0 -21
- package/dist/stories/components/Form/Search/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Search/Search.stories.svelte +0 -40
- package/dist/stories/components/Form/Search/Search.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Form/Search/Search.svelte +0 -142
- package/dist/stories/components/Form/Search/Search.svelte.d.ts +0 -66
- package/dist/stories/components/Form/Search/SearchIcon/SearchIcon.stories.svelte +0 -27
- package/dist/stories/components/Form/Search/SearchIcon/SearchIcon.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Search/Size/Size.stories.svelte +0 -17
- package/dist/stories/components/Form/Search/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Search/WithIcon/WithIcon.stories.svelte +0 -47
- package/dist/stories/components/Form/Search/WithIcon/WithIcon.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Select/Customize/Customize.stories.svelte +0 -135
- package/dist/stories/components/Form/Select/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Select/DropDownArrow/DropDownArrow.stories.svelte +0 -59
- package/dist/stories/components/Form/Select/DropDownArrow/DropDownArrow.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Select/Events/Events.stories.svelte +0 -165
- package/dist/stories/components/Form/Select/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Select/Options/OptionFormat.mdx +0 -40
- package/dist/stories/components/Form/Select/Positions/AutoPosition/AutoPosition.stories.svelte +0 -54
- package/dist/stories/components/Form/Select/Positions/AutoPosition/AutoPosition.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Select/Positions/Positions.stories.svelte +0 -83
- package/dist/stories/components/Form/Select/Positions/Positions.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Select/Roundness/Roundness.stories.svelte +0 -28
- package/dist/stories/components/Form/Select/Roundness/Roundness.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Select/Select.stories.svelte +0 -118
- package/dist/stories/components/Form/Select/Select.stories.svelte.d.ts +0 -22
- package/dist/stories/components/Form/Select/Select.svelte +0 -272
- package/dist/stories/components/Form/Select/Select.svelte.d.ts +0 -108
- package/dist/stories/components/Form/Select/Size/Size.stories.svelte +0 -24
- package/dist/stories/components/Form/Select/Size/Size.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Select/WithIcon/WithIcon.stories.svelte +0 -39
- package/dist/stories/components/Form/Select/WithIcon/WithIcon.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/TextInput/Events/Events.stories.svelte +0 -119
- package/dist/stories/components/Form/TextInput/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/TextInput/Roundness/Roundness.stories.svelte +0 -21
- package/dist/stories/components/Form/TextInput/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/TextInput/Size/Size.stories.svelte +0 -17
- package/dist/stories/components/Form/TextInput/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/TextInput/TextInput.stories.svelte +0 -39
- package/dist/stories/components/Form/TextInput/TextInput.svelte +0 -61
- package/dist/stories/components/Form/TextInput/TextInput.svelte.d.ts +0 -73
- package/dist/stories/components/Form/TextInput/WithIcon/WithIcon.stories.svelte +0 -47
- package/dist/stories/components/Form/TextInput/WithIcon/WithIcon.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Toggle/Color/Color.stories.svelte +0 -19
- package/dist/stories/components/Form/Toggle/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Toggle/Events/Events.stories.svelte +0 -35
- package/dist/stories/components/Form/Toggle/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Form/Toggle/Roundness/Roundness.stories.svelte +0 -22
- package/dist/stories/components/Form/Toggle/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Toggle/Size/Size.stories.svelte +0 -16
- package/dist/stories/components/Form/Toggle/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Form/Toggle/Toggle.stories.svelte +0 -37
- package/dist/stories/components/Form/Toggle/Toggle.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Form/Toggle/Toggle.svelte +0 -359
- package/dist/stories/components/Form/Toggle/Toggle.svelte.d.ts +0 -36
- package/dist/stories/components/Form/Toggle/utils/scss/mixins.scss +0 -68
- package/dist/stories/components/Info/Calendar/Calendar.stories.svelte +0 -115
- package/dist/stories/components/Info/Calendar/Calendar.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/Calendar.svelte +0 -205
- package/dist/stories/components/Info/Calendar/Calendar.svelte.d.ts +0 -143
- package/dist/stories/components/Info/Calendar/Color/Color.stories.svelte +0 -23
- package/dist/stories/components/Info/Calendar/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/Controls/Controls.stories.svelte +0 -26
- package/dist/stories/components/Info/Calendar/Controls/Controls.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/Customize/Customize.stories.svelte +0 -158
- package/dist/stories/components/Info/Calendar/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/Events/Events.stories.svelte +0 -117
- package/dist/stories/components/Info/Calendar/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/FilterDates/FilterDates.stories.svelte +0 -67
- package/dist/stories/components/Info/Calendar/FilterDates/FilterDates.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/Size/Size.stories.svelte +0 -20
- package/dist/stories/components/Info/Calendar/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarControls.stories.svelte +0 -31
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarControls.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarControls.svelte +0 -143
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarControls.svelte.d.ts +0 -72
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/CalendarMonthSelector.stories.svelte +0 -53
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/CalendarMonthSelector.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/CalendarMonthSelector.svelte +0 -93
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/CalendarMonthSelector.svelte.d.ts +0 -49
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Color/Color.stories.svelte +0 -23
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Customize/Customize.stories.svelte +0 -28
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Events/Events.stories.svelte +0 -22
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/NameTypes/NameTypes.stories.svelte +0 -23
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/NameTypes/NameTypes.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Roundness/Roundness.stories.svelte +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Size/Size.stories.svelte +0 -20
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/CalendarNavigation.stories.svelte +0 -32
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/CalendarNavigation.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/CalendarNavigation.svelte +0 -65
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/CalendarNavigation.svelte.d.ts +0 -38
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Color/Color.stories.svelte +0 -19
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Customize/Customize.stories.svelte +0 -31
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Events/Events.stories.svelte +0 -34
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/NavigationButton.svelte +0 -38
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/NavigationButton.svelte.d.ts +0 -32
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Size/Size.stories.svelte +0 -16
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/CalendarYearSelector.stories.svelte +0 -53
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/CalendarYearSelector.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/CalendarYearSelector.svelte +0 -71
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/CalendarYearSelector.svelte.d.ts +0 -38
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Color/Color.stories.svelte +0 -23
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Customize/Customize.stories.svelte +0 -28
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Events/Events.stories.svelte +0 -22
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Roundness/Roundness.stories.svelte +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Size/Size.stories.svelte +0 -20
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Color/Color.stories.svelte +0 -23
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Controls/Controls.stories.svelte +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Controls/Controls.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Customize/Customize.stories.svelte +0 -67
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Events/Events.stories.svelte +0 -58
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Size/Size.stories.svelte +0 -20
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarControls/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/CalendarDateChip.stories.svelte +0 -71
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/CalendarDateChip.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/CalendarDateChip.svelte +0 -570
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/CalendarDateChip.svelte.d.ts +0 -43
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Color/Color.stories.svelte +0 -41
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Customize/Customize.stories.svelte +0 -43
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Events/Events.stories.svelte +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Roundness/Roundness.stories.svelte +0 -31
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Size/Size.stories.svelte +0 -24
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/SpecialChips/SpecialChips.stories.svelte +0 -96
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/SpecialChips/SpecialChips.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/utils/scss/mixins.scss +0 -107
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDatesChart.stories.svelte +0 -99
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDatesChart.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDatesChart.svelte +0 -109
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDatesChart.svelte.d.ts +0 -69
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/CalendarWeek.stories.svelte +0 -34
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/CalendarWeek.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/CalendarWeek.svelte +0 -100
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/CalendarWeek.svelte.d.ts +0 -35
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/Customize/Customize.stories.svelte +0 -30
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/NameTypes/NameTypes.stories.svelte +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/NameTypes/NameTypes.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/Size/Size.stories.svelte +0 -16
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/WeekDay.svelte +0 -50
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/WeekDay.svelte.d.ts +0 -20
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Color/Color.stories.svelte +0 -23
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Customize/Customize.stories.svelte +0 -66
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Events/Events.stories.svelte +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Size/Size.stories.svelte +0 -20
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/CalendarMonthChip.stories.svelte +0 -36
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/CalendarMonthChip.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/CalendarMonthChip.svelte +0 -457
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/CalendarMonthChip.svelte.d.ts +0 -33
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Color/Color.stories.svelte +0 -29
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Customize/Customize.stories.svelte +0 -31
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Events/Events.stories.svelte +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Roundness/Roundness.stories.svelte +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Size/Size.stories.svelte +0 -19
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/utils/scss/mixins.scss +0 -91
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthList.stories.svelte +0 -41
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthList.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthList.svelte +0 -64
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthList.svelte.d.ts +0 -35
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Color/Color.stories.svelte +0 -22
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Customize/Customize.stories.svelte +0 -34
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Events/Events.stories.svelte +0 -29
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Size/Size.stories.svelte +0 -19
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/CalendarYearChip.stories.svelte +0 -37
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/CalendarYearChip.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/CalendarYearChip.svelte +0 -441
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/CalendarYearChip.svelte.d.ts +0 -32
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Color/Color.stories.svelte +0 -30
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Customize/Customize.stories.svelte +0 -31
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Events/Events.stories.svelte +0 -22
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Roundness/Roundness.stories.svelte +0 -27
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Size/Size.stories.svelte +0 -20
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/utils/scss/mixins.scss +0 -87
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearList.stories.svelte +0 -35
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearList.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearList.svelte +0 -83
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearList.svelte.d.ts +0 -36
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Color/Color.stories.svelte +0 -23
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Customize/Customize.stories.svelte +0 -34
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Events/Events.stories.svelte +0 -21
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Size/Size.stories.svelte +0 -20
- package/dist/stories/components/Info/Calendar/SubComponents/CalendarYearList/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Info/Calendar/utils/createDateOfMonth/createDateOfMonth.d.ts +0 -27
- package/dist/stories/components/Info/Calendar/utils/createDateOfMonth/createDateOfMonth.js +0 -73
- package/dist/stories/components/Info/Calendar/utils/createDateOfMonth/index.mdx +0 -121
- package/dist/stories/components/Info/Calendar/utils/getDatesOfMonth/getDatesOfMonth.d.ts +0 -10
- package/dist/stories/components/Info/Calendar/utils/getDatesOfMonth/getDatesOfMonth.js +0 -81
- package/dist/stories/components/Info/Calendar/utils/getDatesOfMonth/index.mdx +0 -37
- package/dist/stories/components/Info/Calendar/utils/types.d.ts +0 -32
- package/dist/stories/components/Info/Calendar/utils/types.js +0 -25
- package/dist/stories/components/Layout/Accordian/Accordian.stories.svelte +0 -52
- package/dist/stories/components/Layout/Accordian/Accordian.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Layout/Accordian/Accordian.svelte +0 -121
- package/dist/stories/components/Layout/Accordian/Accordian.svelte.d.ts +0 -34
- package/dist/stories/components/Layout/Accordian/Customize/Customize.stories.svelte +0 -69
- package/dist/stories/components/Layout/Accordian/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Layout/Accordian/Events/Events.stories.svelte +0 -30
- package/dist/stories/components/Layout/Accordian/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Layout/Accordian/Size/Size.stories.svelte +0 -48
- package/dist/stories/components/Layout/Accordian/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Layout/Grid/Column/Column.stories.svelte +0 -18
- package/dist/stories/components/Layout/Grid/Column/Column.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Layout/Grid/Column/Column.svelte +0 -73
- package/dist/stories/components/Layout/Grid/Column/Column.svelte.d.ts +0 -24
- package/dist/stories/components/Layout/Grid/Grid.stories.svelte +0 -179
- package/dist/stories/components/Layout/Grid/Grid.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Layout/Grid/Grid.svelte +0 -24
- package/dist/stories/components/Layout/Grid/Grid.svelte.d.ts +0 -16
- package/dist/stories/components/Layout/Grid/Row/Row.stories.svelte +0 -19
- package/dist/stories/components/Layout/Grid/Row/Row.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Layout/Grid/Row/Row.svelte +0 -20
- package/dist/stories/components/Layout/Grid/Row/Row.svelte.d.ts +0 -12
- package/dist/stories/components/Layout/Menu/DynamicMenu/Customize/Customize.stories.svelte +0 -28
- package/dist/stories/components/Layout/Menu/DynamicMenu/Customize/Customize.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Layout/Menu/DynamicMenu/DynamicMenu.stories.svelte +0 -51
- package/dist/stories/components/Layout/Menu/DynamicMenu/DynamicMenu.stories.svelte.d.ts +0 -22
- package/dist/stories/components/Layout/Menu/DynamicMenu/DynamicMenu.svelte +0 -129
- package/dist/stories/components/Layout/Menu/DynamicMenu/DynamicMenu.svelte.d.ts +0 -81
- package/dist/stories/components/Layout/Menu/DynamicMenu/Events/Events.stories.svelte +0 -46
- package/dist/stories/components/Layout/Menu/DynamicMenu/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Layout/Menu/DynamicMenu/KeybaordNavigation/KeybaordNavigation.stories.svelte +0 -27
- package/dist/stories/components/Layout/Menu/DynamicMenu/KeybaordNavigation/KeybaordNavigation.stories.svelte.d.ts +0 -18
- package/dist/stories/components/Layout/Menu/DynamicMenu/Options/OptionFormat.mdx +0 -72
- package/dist/stories/components/Layout/Menu/Menu.stories.svelte +0 -65
- package/dist/stories/components/Layout/Menu/Menu.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Layout/Menu/Menu.svelte +0 -30
- package/dist/stories/components/Layout/Menu/Menu.svelte.d.ts +0 -23
- package/dist/stories/components/Layout/Menu/MenuItem/MenuItem.stories.svelte +0 -30
- package/dist/stories/components/Layout/Menu/MenuItem/MenuItem.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Layout/Menu/MenuItem/MenuItem.svelte +0 -164
- package/dist/stories/components/Layout/Menu/MenuItem/MenuItem.svelte.d.ts +0 -49
- package/dist/stories/components/Layout/Menu/MenuItem/Size/Size.stories.svelte +0 -16
- package/dist/stories/components/Layout/Menu/MenuItem/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Layout/Menu/MenuItem/Type/Type.stories.svelte +0 -21
- package/dist/stories/components/Layout/Menu/MenuItem/Type/Type.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Layout/Menu/Size/Size.stories.svelte +0 -37
- package/dist/stories/components/Layout/Menu/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Layout/Paper/Color/Color.stories.svelte +0 -63
- package/dist/stories/components/Layout/Paper/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Layout/Paper/Paper.stories.svelte +0 -46
- package/dist/stories/components/Layout/Paper/Paper.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Layout/Paper/Paper.svelte +0 -250
- package/dist/stories/components/Layout/Paper/Paper.svelte.d.ts +0 -38
- package/dist/stories/components/Layout/Paper/Roundness/Roundness.stories.svelte +0 -25
- package/dist/stories/components/Layout/Paper/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Layout/Paper/Shadow/Shadow.stories.svelte +0 -24
- package/dist/stories/components/Layout/Paper/Shadow/Shadow.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Layout/Paper/utils/scss/mixins.scss +0 -46
- package/dist/stories/components/Layout/Separator/Color/Color.stories.svelte +0 -19
- package/dist/stories/components/Layout/Separator/Color/Color.stories.svelte.d.ts +0 -26
- package/dist/stories/components/Layout/Separator/Separator.stories.svelte +0 -26
- package/dist/stories/components/Layout/Separator/Separator.stories.svelte.d.ts +0 -21
- package/dist/stories/components/Layout/Separator/Separator.svelte +0 -66
- package/dist/stories/components/Layout/Separator/Separator.svelte.d.ts +0 -22
- package/dist/stories/components/Layout/Separator/utils/scss/mixins.scss +0 -24
- package/dist/stories/developer tools/Intro.mdx +0 -10
- package/dist/stories/developer tools/components/DynamicInput/DynamicInput.stories.svelte +0 -49
- package/dist/stories/developer tools/components/DynamicInput/DynamicInput.stories.svelte.d.ts +0 -21
- package/dist/stories/developer tools/components/DynamicInput/DynamicInput.svelte +0 -111
- package/dist/stories/developer tools/components/DynamicInput/DynamicInput.svelte.d.ts +0 -71
- package/dist/stories/developer tools/components/DynamicInput/Events/Events.stories.svelte +0 -115
- package/dist/stories/developer tools/components/DynamicInput/Events/Events.stories.svelte.d.ts +0 -18
- package/dist/stories/developer tools/components/DynamicInput/Size/Size.stories.svelte +0 -17
- package/dist/stories/developer tools/components/DynamicInput/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/developer tools/components/InputEnclosure/InputEnclosure.stories.svelte +0 -34
- package/dist/stories/developer tools/components/InputEnclosure/InputEnclosure.svelte +0 -124
- package/dist/stories/developer tools/components/InputEnclosure/InputEnclosure.svelte.d.ts +0 -30
- package/dist/stories/developer tools/components/InputEnclosure/Roundness/Roundness.stories.svelte +0 -20
- package/dist/stories/developer tools/components/InputEnclosure/Roundness/Roundness.stories.svelte.d.ts +0 -26
- package/dist/stories/developer tools/components/InputEnclosure/Size/Size.stories.svelte +0 -16
- package/dist/stories/developer tools/components/InputEnclosure/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/developer tools/components/InputEnclosure/WithIcon/WithIcon.stories.svelte +0 -47
- package/dist/stories/developer tools/components/InputEnclosure/WithIcon/WithIcon.stories.svelte.d.ts +0 -26
- package/dist/stories/developer tools/components/Popper/Popper.stories.svelte +0 -135
- package/dist/stories/developer tools/components/Popper/Popper.stories.svelte.d.ts +0 -21
- package/dist/stories/developer tools/components/Popper/Popper.svelte +0 -73
- package/dist/stories/developer tools/components/Popper/Popper.svelte.d.ts +0 -52
- package/dist/stories/developer tools/components/Popper/PopperPopup/PopperPopup.stories.svelte +0 -60
- package/dist/stories/developer tools/components/Popper/PopperPopup/PopperPopup.stories.svelte.d.ts +0 -21
- package/dist/stories/developer tools/components/Popper/PopperPopup/PopperPopup.svelte +0 -80
- package/dist/stories/developer tools/components/Popper/PopperPopup/PopperPopup.svelte.d.ts +0 -36
- package/dist/stories/developer tools/components/Popper/PopperPopup/utils/getPopupPosition.d.ts +0 -23
- package/dist/stories/developer tools/components/Popper/PopperPopup/utils/getPopupPosition.js +0 -79
- package/dist/stories/developer tools/components/Popper/Positions/AutoPosition/AutoPosition.stories.svelte +0 -89
- package/dist/stories/developer tools/components/Popper/Positions/AutoPosition/AutoPosition.stories.svelte.d.ts +0 -18
- package/dist/stories/developer tools/components/Popper/Positions/Positions.stories.svelte +0 -111
- package/dist/stories/developer tools/components/Popper/Positions/Positions.stories.svelte.d.ts +0 -18
- package/dist/stories/developer tools/components/UtilityButton/Size/Size.stories.svelte +0 -25
- package/dist/stories/developer tools/components/UtilityButton/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/developer tools/components/UtilityButton/UtilityButton.stories.svelte +0 -26
- package/dist/stories/developer tools/components/UtilityButton/UtilityButton.stories.svelte.d.ts +0 -21
- package/dist/stories/developer tools/components/UtilityButton/UtilityButton.svelte +0 -82
- package/dist/stories/developer tools/components/UtilityButton/UtilityButton.svelte.d.ts +0 -26
- package/dist/stories/developer tools/components/UtilityIcon/Size/Size.stories.svelte +0 -25
- package/dist/stories/developer tools/components/UtilityIcon/Size/Size.stories.svelte.d.ts +0 -26
- package/dist/stories/developer tools/components/UtilityIcon/UtilityIcon.stories.svelte +0 -26
- package/dist/stories/developer tools/components/UtilityIcon/UtilityIcon.stories.svelte.d.ts +0 -21
- package/dist/stories/developer tools/components/UtilityIcon/UtilityIcon.svelte +0 -58
- package/dist/stories/developer tools/components/UtilityIcon/UtilityIcon.svelte.d.ts +0 -19
- package/dist/stories/developer tools/customize/AutoCustomize/AutoCustomize.mdx +0 -4
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Config/ColorTool/ColorButton.svelte +0 -42
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Config/ColorTool/ColorButton.svelte.d.ts +0 -8
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Config/ColorTool/ColorTool.svelte +0 -21
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Config/ColorTool/ColorTool.svelte.d.ts +0 -9
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Config/Config.svelte +0 -144
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Config/Config.svelte.d.ts +0 -18
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Config/Export.svelte +0 -123
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Config/Export.svelte.d.ts +0 -18
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Config/ValueSilder/ValueSilder.svelte +0 -32
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Config/ValueSilder/ValueSilder.svelte.d.ts +0 -11
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Preview/Preview.svelte +0 -192
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Preview/Preview.svelte.d.ts +0 -3
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Tool.stories.svelte +0 -9
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Tool.stories.svelte.d.ts +0 -19
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Tool.svelte +0 -13
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/Tool.svelte.d.ts +0 -18
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/helpers/download-file.d.ts +0 -1
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/helpers/download-file.js +0 -10
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/stores/config.svelte.d.ts +0 -27
- package/dist/stories/developer tools/customize/AutoCustomize/Tool/stores/config.svelte.js +0 -70
- package/dist/stories/developer tools/customize/Intro.mdx +0 -8
- package/dist/stories/developer tools/directives/clickOutside/clickOutside.d.ts +0 -3
- package/dist/stories/developer tools/directives/clickOutside/clickOutside.js +0 -14
- package/dist/stories/developer tools/directives/clickOutside/index.mdx +0 -25
- package/dist/stories/developer tools/directives/drag/drag.d.ts +0 -3
- package/dist/stories/developer tools/directives/drag/drag.js +0 -40
- package/dist/stories/developer tools/helpers/Numbers/cleanNumericString/cleanNumericString.d.ts +0 -13
- package/dist/stories/developer tools/helpers/Numbers/cleanNumericString/cleanNumericString.js +0 -26
- package/dist/stories/developer tools/helpers/Numbers/cleanNumericString/index.mdx +0 -20
- package/dist/stories/developer tools/helpers/Numbers/isValidNumberValue/index.mdx +0 -71
- package/dist/stories/developer tools/helpers/Numbers/isValidNumberValue/isValidNumberValue.d.ts +0 -51
- package/dist/stories/developer tools/helpers/Numbers/isValidNumberValue/isValidNumberValue.js +0 -96
- package/dist/stories/developer tools/helpers/Time/getMoment/getMoment.d.ts +0 -39
- package/dist/stories/developer tools/helpers/Time/getMoment/getMoment.js +0 -33
- package/dist/stories/developer tools/helpers/Time/getMoment/index.mdx +0 -45
- package/dist/stories/developer tools/helpers/logger/index.mdx +0 -63
- package/dist/stories/developer tools/helpers/logger/logger.d.ts +0 -24
- package/dist/stories/developer tools/helpers/logger/logger.js +0 -31
- package/dist/stories/developer tools/philosophy/Colors/Colors.mdx +0 -43
- package/dist/stories/developer tools/philosophy/Colors/Colors.stories.svelte +0 -20
- package/dist/stories/developer tools/philosophy/Colors/Colors.stories.svelte.d.ts +0 -19
- package/dist/stories/developer tools/philosophy/Colors/Colors.svelte +0 -33
- package/dist/stories/developer tools/philosophy/Colors/Colors.svelte.d.ts +0 -6
- package/dist/stories/developer tools/philosophy/Colors/Opacity.stories.svelte +0 -9
- package/dist/stories/developer tools/philosophy/Colors/Opacity.stories.svelte.d.ts +0 -19
- package/dist/stories/developer tools/philosophy/Colors/Opacity.svelte +0 -20
- package/dist/stories/developer tools/philosophy/Colors/Opacity.svelte.d.ts +0 -18
- package/dist/stories/developer tools/philosophy/Colors/Swatches/Palette.svelte +0 -37
- package/dist/stories/developer tools/philosophy/Colors/Swatches/Palette.svelte.d.ts +0 -6
- package/dist/stories/developer tools/philosophy/Colors/Swatches/Swatch.svelte +0 -24
- package/dist/stories/developer tools/philosophy/Colors/Swatches/Swatch.svelte.d.ts +0 -8
- package/dist/stories/developer tools/philosophy/Colors/Swatches/Swatches.svelte +0 -43
- package/dist/stories/developer tools/philosophy/Colors/Swatches/Swatches.svelte.d.ts +0 -8
- package/dist/stories/developer tools/philosophy/Colors/utils/color.d.ts +0 -4
- package/dist/stories/developer tools/philosophy/Colors/utils/color.js +0 -38
- package/dist/stories/developer tools/philosophy/Themes.mdx +0 -23
- package/dist/types/colors.d.ts +0 -7
- package/dist/types/colors.js +0 -10
- package/dist/types/position.d.ts +0 -4
- package/dist/types/position.js +0 -2
- package/dist/types/roundness.d.ts +0 -3
- package/dist/types/roundness.js +0 -1
- package/dist/types/shadow.d.ts +0 -3
- package/dist/types/shadow.js +0 -1
- package/dist/types/size.d.ts +0 -3
- package/dist/types/size.js +0 -1
- package/dist/types/special.d.ts +0 -1
- package/dist/types/special.js +0 -1
- package/dist/types/weight.d.ts +0 -3
- package/dist/types/weight.js +0 -1
- package/src/lib/stories/components/Form/Button/Button.svelte +0 -357
- package/src/lib/stories/components/Form/Button/utils/scss/mixins.scss +0 -86
- package/src/lib/stories/components/Form/Checkbox/Checkbox.svelte +0 -323
- package/src/lib/stories/components/Form/Checkbox/utils/scss/mixins.scss +0 -80
- package/src/lib/stories/components/Form/DatePicker/DatePicker.svelte +0 -730
- package/src/lib/stories/components/Form/FormControl/FormControl.svelte +0 -65
- package/src/lib/stories/components/Form/Label/Label.svelte +0 -42
- package/src/lib/stories/components/Form/Message/Message.svelte +0 -87
- package/src/lib/stories/components/Form/NumericInput/NumericInput.svelte +0 -287
- package/src/lib/stories/components/Form/PasswordInput/PasswordInput.svelte +0 -235
- package/src/lib/stories/components/Form/Radio/Radio.svelte +0 -277
- package/src/lib/stories/components/Form/Radio/utils/scss/mixins.scss +0 -85
- package/src/lib/stories/components/Form/RangeSlider/RangeSlider.svelte +0 -487
- package/src/lib/stories/components/Form/RangeSlider/utils/scss/mixins.scss +0 -91
- package/src/lib/stories/components/Form/Search/Search.svelte +0 -285
- package/src/lib/stories/components/Form/Select/Select.svelte +0 -523
- package/src/lib/stories/components/Form/TextInput/TextInput.svelte +0 -179
- package/src/lib/stories/components/Form/Toggle/Toggle.svelte +0 -290
- package/src/lib/stories/components/Form/Toggle/utils/scss/mixins.scss +0 -68
- package/src/lib/stories/components/Info/Calendar/Calendar.svelte +0 -467
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarControls.svelte +0 -271
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/CalendarMonthSelector.svelte +0 -199
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/CalendarNavigation.svelte +0 -128
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/NavigationButton.svelte +0 -85
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/CalendarYearSelector.svelte +0 -148
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/CalendarDateChip.svelte +0 -273
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/utils/scss/mixins.scss +0 -107
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDatesChart.svelte +0 -236
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/CalendarWeek.svelte +0 -154
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/WeekDay.svelte +0 -90
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/CalendarMonthChip.svelte +0 -217
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/utils/scss/mixins.scss +0 -91
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthList.svelte +0 -124
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/CalendarYearChip.svelte +0 -227
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/utils/scss/mixins.scss +0 -87
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearList.svelte +0 -150
- package/src/lib/stories/components/Info/Calendar/utils/createDateOfMonth/createDateOfMonth.ts +0 -122
- package/src/lib/stories/components/Info/Calendar/utils/getDatesOfMonth/getDatesOfMonth.ts +0 -114
- package/src/lib/stories/components/Info/Calendar/utils/types.ts +0 -34
- package/src/lib/stories/components/Layout/Accordian/Accordian.svelte +0 -195
- package/src/lib/stories/components/Layout/Grid/Column/Column.svelte +0 -127
- package/src/lib/stories/components/Layout/Grid/Grid.svelte +0 -47
- package/src/lib/stories/components/Layout/Grid/Row/Row.svelte +0 -36
- package/src/lib/stories/components/Layout/Menu/DynamicMenu/DynamicMenu.svelte +0 -262
- package/src/lib/stories/components/Layout/Menu/Menu.svelte +0 -65
- package/src/lib/stories/components/Layout/Menu/MenuItem/MenuItem.svelte +0 -268
- package/src/lib/stories/components/Layout/Paper/Paper.svelte +0 -225
- package/src/lib/stories/components/Layout/Paper/utils/scss/mixins.scss +0 -46
- package/src/lib/stories/components/Layout/Separator/Separator.svelte +0 -96
- package/src/lib/stories/components/Layout/Separator/utils/scss/mixins.scss +0 -24
- package/src/lib/stories/developer tools/components/DynamicInput/DynamicInput.svelte +0 -235
- package/src/lib/stories/developer tools/components/InputEnclosure/InputEnclosure.svelte +0 -202
- package/src/lib/stories/developer tools/components/Popper/Popper.svelte +0 -158
- package/src/lib/stories/developer tools/components/Popper/PopperPopup/PopperPopup.svelte +0 -146
- package/src/lib/stories/developer tools/components/Popper/PopperPopup/utils/getPopupPosition.ts +0 -101
- package/src/lib/stories/developer tools/components/UtilityButton/UtilityButton.svelte +0 -130
- package/src/lib/stories/developer tools/components/UtilityIcon/UtilityIcon.svelte +0 -90
- package/src/lib/stories/developer tools/customize/AutoCustomize/Tool/Config/ColorTool/ColorButton.svelte +0 -56
- package/src/lib/stories/developer tools/customize/AutoCustomize/Tool/Config/ColorTool/ColorTool.svelte +0 -32
- package/src/lib/stories/developer tools/customize/AutoCustomize/Tool/Config/Config.svelte +0 -149
- package/src/lib/stories/developer tools/customize/AutoCustomize/Tool/Config/Export.svelte +0 -172
- package/src/lib/stories/developer tools/customize/AutoCustomize/Tool/Config/ValueSilder/ValueSilder.svelte +0 -47
- package/src/lib/stories/developer tools/customize/AutoCustomize/Tool/Preview/Preview.svelte +0 -227
- package/src/lib/stories/developer tools/customize/AutoCustomize/Tool/Tool.svelte +0 -16
- package/src/lib/stories/developer tools/customize/AutoCustomize/Tool/helpers/download-file.ts +0 -11
- package/src/lib/stories/developer tools/customize/AutoCustomize/Tool/stores/config.svelte.ts +0 -107
- package/src/lib/stories/developer tools/directives/clickOutside/clickOutside.ts +0 -17
- package/src/lib/stories/developer tools/directives/drag/drag.ts +0 -47
- package/src/lib/stories/developer tools/helpers/Numbers/cleanNumericString/cleanNumericString.ts +0 -27
- package/src/lib/stories/developer tools/helpers/Numbers/isValidNumberValue/isValidNumberValue.ts +0 -156
- package/src/lib/stories/developer tools/helpers/Time/getMoment/getMoment.ts +0 -66
- package/src/lib/stories/developer tools/helpers/logger/logger.ts +0 -46
- package/src/lib/stories/developer tools/philosophy/Colors/Colors.svelte +0 -46
- package/src/lib/stories/developer tools/philosophy/Colors/Opacity.svelte +0 -23
- package/src/lib/stories/developer tools/philosophy/Colors/Swatches/Palette.svelte +0 -46
- package/src/lib/stories/developer tools/philosophy/Colors/Swatches/Swatch.svelte +0 -35
- package/src/lib/stories/developer tools/philosophy/Colors/Swatches/Swatches.svelte +0 -55
- package/src/lib/stories/developer tools/philosophy/Colors/utils/color.ts +0 -41
- package/src/lib/types/colors.ts +0 -16
- package/src/lib/types/position.ts +0 -5
- package/src/lib/types/roundness.ts +0 -3
- package/src/lib/types/shadow.ts +0 -3
- package/src/lib/types/size.ts +0 -3
- package/src/lib/types/special.ts +0 -1
- package/src/lib/types/weight.ts +0 -3
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import getMoment from '../../../../../developer tools/helpers/Time/getMoment/getMoment.js';
|
|
2
|
-
import dayjsLib from 'dayjs'; // Only needed for types
|
|
3
|
-
/**
|
|
4
|
-
* Creates a moment object from a Date with optional timezone and UTC settings.
|
|
5
|
-
*/
|
|
6
|
-
function dateMoment(date, settings) {
|
|
7
|
-
return getMoment(date, undefined, {
|
|
8
|
-
timezone: settings?.timezone,
|
|
9
|
-
utc: settings?.utc,
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Determines if the given day matches "today" (manual or actual).
|
|
14
|
-
*/
|
|
15
|
-
function getIsToday(dayMoment, todayDate, todayManual) {
|
|
16
|
-
const dayDateFormat = dayMoment.format('DD-MM-YYYY');
|
|
17
|
-
return todayManual === dayDateFormat || todayDate === dayDateFormat;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Determines if a date should be disabled based on limits and included/excluded lists.
|
|
21
|
-
*/
|
|
22
|
-
function getIsDateDisabled(dayMoment, minDate, maxDate, excludeDates, includeDates) {
|
|
23
|
-
const dayDateFormat = dayMoment.format('DD-MM-YYYY');
|
|
24
|
-
if (minDate?.isValid() && dayMoment.isBefore(minDate))
|
|
25
|
-
return true;
|
|
26
|
-
if (maxDate?.isValid() && dayMoment.isAfter(maxDate))
|
|
27
|
-
return true;
|
|
28
|
-
if (excludeDates?.includes(dayDateFormat))
|
|
29
|
-
return true;
|
|
30
|
-
if (includeDates && !includeDates.includes(dayDateFormat))
|
|
31
|
-
return true;
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Generates a DateOfMonth object with metadata for a specific day, including
|
|
36
|
-
* whether it's part of the current month, disabled, or today.
|
|
37
|
-
*
|
|
38
|
-
* @param date - The day to convert.
|
|
39
|
-
* @param settings - Optional configuration settings.
|
|
40
|
-
* @param monthType - Specifies if the day belongs to the current, previous, or next month.
|
|
41
|
-
* @param manipulateDate - Optional function to customize the resulting date object.
|
|
42
|
-
* @returns A DateOfMonth object representing the day.
|
|
43
|
-
*/
|
|
44
|
-
export default function createDateOfMonth(date, settings, monthType = 'currentMonth', manipulateDate) {
|
|
45
|
-
const minDate = settings?.minDate ? dateMoment(settings.minDate, settings) : undefined;
|
|
46
|
-
const maxDate = settings?.maxDate ? dateMoment(settings.maxDate, settings) : undefined;
|
|
47
|
-
const excludeDates = settings?.excludeDates?.map((item) => dateMoment(item, settings).format('DD-MM-YYYY'));
|
|
48
|
-
const includeDates = settings?.includeDates?.map((item) => dateMoment(item, settings).format('DD-MM-YYYY'));
|
|
49
|
-
const todayDate = dateMoment(undefined, settings).format('DD-MM-YYYY');
|
|
50
|
-
const todayManual = settings?.today
|
|
51
|
-
? dateMoment(settings.today, settings).format('DD-MM-YYYY')
|
|
52
|
-
: undefined;
|
|
53
|
-
const dayMoment = dateMoment(date, settings);
|
|
54
|
-
let dataToExport = {
|
|
55
|
-
id: `${dayMoment.valueOf()}`,
|
|
56
|
-
date: dayMoment.toDate(),
|
|
57
|
-
isCurrentMonth: true,
|
|
58
|
-
disabled: getIsDateDisabled(dayMoment, minDate, maxDate, excludeDates, includeDates),
|
|
59
|
-
today: getIsToday(dayMoment, todayDate, todayManual),
|
|
60
|
-
};
|
|
61
|
-
if (monthType === 'lastMonth') {
|
|
62
|
-
dataToExport.isLastMonth = true;
|
|
63
|
-
dataToExport.isCurrentMonth = false;
|
|
64
|
-
}
|
|
65
|
-
else if (monthType === 'nextMonth') {
|
|
66
|
-
dataToExport.isNextMonth = true;
|
|
67
|
-
dataToExport.isCurrentMonth = false;
|
|
68
|
-
}
|
|
69
|
-
if (manipulateDate) {
|
|
70
|
-
dataToExport = manipulateDate(dataToExport, settings);
|
|
71
|
-
}
|
|
72
|
-
return dataToExport;
|
|
73
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { Source } from '@storybook/addon-docs/blocks';
|
|
2
|
-
|
|
3
|
-
# `createDateOfMonth`
|
|
4
|
-
|
|
5
|
-
`createDateOfMonth(date, settings, monthType?, manipulateDate?)` creates a single `DateOfMonth` object representing one calendar cell. This is typically used internally by `getDatesOfMonth` but can be useful for custom logic.
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
<Source
|
|
10
|
-
dark
|
|
11
|
-
language="ts"
|
|
12
|
-
code={`
|
|
13
|
-
// Manual usage for one day
|
|
14
|
-
import { createDateOfMonth } from '@flightlesslabs/dodo-ui';
|
|
15
|
-
|
|
16
|
-
const date = new Date();
|
|
17
|
-
const dateObj = createDateOfMonth(date, {
|
|
18
|
-
minDate: new Date('2025-01-01'),
|
|
19
|
-
timezone: 'UTC',
|
|
20
|
-
}, 'currentMonth');
|
|
21
|
-
`}
|
|
22
|
-
/>
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
# Types
|
|
27
|
-
|
|
28
|
-
## `DateOfMonth`
|
|
29
|
-
|
|
30
|
-
<Source
|
|
31
|
-
dark
|
|
32
|
-
language="ts"
|
|
33
|
-
code={`
|
|
34
|
-
// Represents a single calendar cell
|
|
35
|
-
type DateOfMonth = {
|
|
36
|
-
id: string;
|
|
37
|
-
date: Date;
|
|
38
|
-
isCurrentMonth: boolean;
|
|
39
|
-
isLastMonth?: boolean;
|
|
40
|
-
isNextMonth?: boolean;
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
today?: boolean;
|
|
43
|
-
};
|
|
44
|
-
`}
|
|
45
|
-
/>
|
|
46
|
-
|
|
47
|
-
## `CreateDatesOfMonthSettings`
|
|
48
|
-
|
|
49
|
-
<Source
|
|
50
|
-
dark
|
|
51
|
-
language="ts"
|
|
52
|
-
code={`
|
|
53
|
-
// Configuration for calendar generation
|
|
54
|
-
interface CreateDatesOfMonthSettings {
|
|
55
|
-
startOfWeek?: 'SUN' | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT';
|
|
56
|
-
showLastMonth?: boolean;
|
|
57
|
-
showNextMonth?: boolean;
|
|
58
|
-
today?: Date;
|
|
59
|
-
minDate?: Date;
|
|
60
|
-
maxDate?: Date;
|
|
61
|
-
excludeDates?: Date[];
|
|
62
|
-
includeDates?: Date[];
|
|
63
|
-
timezone?: string;
|
|
64
|
-
utc?: boolean;
|
|
65
|
-
}
|
|
66
|
-
`}
|
|
67
|
-
/>
|
|
68
|
-
|
|
69
|
-
## `CreateDateOfMonthType`
|
|
70
|
-
|
|
71
|
-
<Source
|
|
72
|
-
dark
|
|
73
|
-
language="ts"
|
|
74
|
-
code={`
|
|
75
|
-
// Indicates the month context of the date
|
|
76
|
-
type CreateDateOfMonthType = 'currentMonth' | 'nextMonth' | 'lastMonth';
|
|
77
|
-
`}
|
|
78
|
-
/>
|
|
79
|
-
|
|
80
|
-
## `DAYS_OF_WEEK` Enum
|
|
81
|
-
|
|
82
|
-
<Source
|
|
83
|
-
dark
|
|
84
|
-
language="ts"
|
|
85
|
-
code={`
|
|
86
|
-
// Weekday constants (Sunday = 0)
|
|
87
|
-
export const enum DAYS_OF_WEEK {
|
|
88
|
-
SUN,
|
|
89
|
-
MON,
|
|
90
|
-
TUE,
|
|
91
|
-
WED,
|
|
92
|
-
THU,
|
|
93
|
-
FRI,
|
|
94
|
-
SAT,
|
|
95
|
-
}
|
|
96
|
-
`}
|
|
97
|
-
/>
|
|
98
|
-
|
|
99
|
-
## `MONTHS` Enum
|
|
100
|
-
|
|
101
|
-
<Source
|
|
102
|
-
dark
|
|
103
|
-
language="ts"
|
|
104
|
-
code={`
|
|
105
|
-
// Month constants (January = 0)
|
|
106
|
-
export const enum MONTHS {
|
|
107
|
-
JAN,
|
|
108
|
-
FEB,
|
|
109
|
-
MAR,
|
|
110
|
-
APR,
|
|
111
|
-
MAY,
|
|
112
|
-
JUN,
|
|
113
|
-
JUL,
|
|
114
|
-
AUG,
|
|
115
|
-
SEP,
|
|
116
|
-
OCT,
|
|
117
|
-
NOV,
|
|
118
|
-
DEC,
|
|
119
|
-
}
|
|
120
|
-
`}
|
|
121
|
-
/>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type CreateDatesOfMonthSettings, type DateOfMonth } from '../../../../../../index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Generates a calendar grid of dates for a given month.
|
|
4
|
-
*
|
|
5
|
-
* @param date - The base date for the month to generate.
|
|
6
|
-
* @param settings - Optional settings for formatting and display.
|
|
7
|
-
* @param manipulateDate - Optional function to modify each generated DateOfMonth.
|
|
8
|
-
* @returns A 2D array of DateOfMonth objects representing the calendar, or null if invalid.
|
|
9
|
-
*/
|
|
10
|
-
export default function getDatesOfMonth(date?: Date, settings?: CreateDatesOfMonthSettings, manipulateDate?: (dateToModify: DateOfMonth, settings?: CreateDatesOfMonthSettings) => DateOfMonth): DateOfMonth[][] | null;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import getMoment from '../../../../../developer tools/helpers/Time/getMoment/getMoment.js';
|
|
2
|
-
import { calendarWeekOptions, createDateOfMonth, } from '../../../../../../index.js';
|
|
3
|
-
/**
|
|
4
|
-
* Divides an array into chunks of a given size.
|
|
5
|
-
*
|
|
6
|
-
* @template T - The type of elements in the array.
|
|
7
|
-
* @param arr - The array to be chunked.
|
|
8
|
-
* @param size - The chunk size.
|
|
9
|
-
* @returns An array of chunks.
|
|
10
|
-
*/
|
|
11
|
-
function chunkArray(arr, size) {
|
|
12
|
-
const result = [];
|
|
13
|
-
for (let i = 0; i < arr.length; i += size) {
|
|
14
|
-
result.push(arr.slice(i, i + size));
|
|
15
|
-
}
|
|
16
|
-
return result;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Creates a moment object from a Date with optional timezone and UTC settings.
|
|
20
|
-
*
|
|
21
|
-
* @param date - The date to convert.
|
|
22
|
-
* @param settings - Optional settings for timezone and UTC.
|
|
23
|
-
* @returns A moment object with the applied settings.
|
|
24
|
-
*/
|
|
25
|
-
function dateMoment(date, settings) {
|
|
26
|
-
return getMoment(date, undefined, {
|
|
27
|
-
timezone: settings?.timezone,
|
|
28
|
-
utc: settings?.utc,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Generates a calendar grid of dates for a given month.
|
|
33
|
-
*
|
|
34
|
-
* @param date - The base date for the month to generate.
|
|
35
|
-
* @param settings - Optional settings for formatting and display.
|
|
36
|
-
* @param manipulateDate - Optional function to modify each generated DateOfMonth.
|
|
37
|
-
* @returns A 2D array of DateOfMonth objects representing the calendar, or null if invalid.
|
|
38
|
-
*/
|
|
39
|
-
export default function getDatesOfMonth(date, settings, manipulateDate) {
|
|
40
|
-
if (!date) {
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
const monthMoment = dateMoment(date, settings).startOf('month').startOf('day');
|
|
44
|
-
if (!monthMoment.isValid()) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
const showNextMonth = settings?.showNextMonth !== false;
|
|
48
|
-
const showLastMonth = settings?.showLastMonth !== false;
|
|
49
|
-
const startOfWeek = calendarWeekOptions.find((item) => item.abr3 === settings?.startOfWeek) ||
|
|
50
|
-
calendarWeekOptions[0];
|
|
51
|
-
const rawStartOfMonthDay = monthMoment.day();
|
|
52
|
-
const startOfMonthDay = (rawStartOfMonthDay - startOfWeek.value + 7) % 7;
|
|
53
|
-
const daysInMonth = monthMoment.daysInMonth();
|
|
54
|
-
const dates = [];
|
|
55
|
-
const lastMonth = monthMoment.clone().subtract(startOfMonthDay, 'days');
|
|
56
|
-
const nextMonth = monthMoment.clone().add(1, 'month');
|
|
57
|
-
if (showLastMonth) {
|
|
58
|
-
for (let gap = 0; gap < startOfMonthDay; gap++) {
|
|
59
|
-
const dayMoment = lastMonth.clone().add(gap, 'days');
|
|
60
|
-
dates.push(createDateOfMonth(dayMoment.toDate(), settings, 'lastMonth', manipulateDate));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
for (let day = 1; day <= daysInMonth; day++) {
|
|
64
|
-
const dayMoment = monthMoment.clone().set('date', day);
|
|
65
|
-
dates.push(createDateOfMonth(dayMoment.toDate(), settings, 'currentMonth', manipulateDate));
|
|
66
|
-
}
|
|
67
|
-
const datesDivided = chunkArray(dates, 7);
|
|
68
|
-
if (showNextMonth) {
|
|
69
|
-
const lastRow = datesDivided[datesDivided.length - 1];
|
|
70
|
-
const nextMonthDaysRequired = 7 - lastRow.length;
|
|
71
|
-
if (nextMonthDaysRequired > 0) {
|
|
72
|
-
const nextMonthDates = [];
|
|
73
|
-
for (let gap = 0; gap < nextMonthDaysRequired; gap++) {
|
|
74
|
-
const dayMoment = nextMonth.clone().add(gap, 'days');
|
|
75
|
-
nextMonthDates.push(createDateOfMonth(dayMoment.toDate(), settings, 'nextMonth', manipulateDate));
|
|
76
|
-
}
|
|
77
|
-
datesDivided[datesDivided.length - 1] = [...lastRow, ...nextMonthDates];
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return datesDivided;
|
|
81
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Source } from '@storybook/addon-docs/blocks';
|
|
2
|
-
|
|
3
|
-
# `getDatesOfMonth`
|
|
4
|
-
|
|
5
|
-
`getDatesOfMonth(date, settings, manipulateDate)` generates a 2D array of weeks, each containing `DateOfMonth` objects. It supports options via `CreateDatesOfMonthSettings` and allows injecting custom logic per date.
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
<Source
|
|
10
|
-
dark
|
|
11
|
-
language="ts"
|
|
12
|
-
code={`
|
|
13
|
-
// Basic usage
|
|
14
|
-
import { getDatesOfMonth, getMoment } from '@flightlesslabs/dodo-ui';
|
|
15
|
-
|
|
16
|
-
const dates = getDatesOfMonth(new Date(), {
|
|
17
|
-
showLastMonth: false,
|
|
18
|
-
showNextMonth: false,
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
// Using a formatted date
|
|
22
|
-
const dates2 = getDatesOfMonth(
|
|
23
|
-
getMoment('01-02-2025', 'DD-MM-YYYY').toDate()
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
// With custom manipulation
|
|
27
|
-
const dates3 = getDatesOfMonth(new Date(), {
|
|
28
|
-
timezone: 'America/New_York',
|
|
29
|
-
startOfWeek: 'MON',
|
|
30
|
-
}, (date, settings) => {
|
|
31
|
-
return {
|
|
32
|
-
...date,
|
|
33
|
-
disabled: true,
|
|
34
|
-
};
|
|
35
|
-
});
|
|
36
|
-
`}
|
|
37
|
-
/>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const enum DAYS_OF_WEEK {
|
|
2
|
-
SUN = 0,
|
|
3
|
-
MON = 1,
|
|
4
|
-
TUE = 2,
|
|
5
|
-
WED = 3,
|
|
6
|
-
THU = 4,
|
|
7
|
-
FRI = 5,
|
|
8
|
-
SAT = 6
|
|
9
|
-
}
|
|
10
|
-
export declare const enum MONTHS {
|
|
11
|
-
JAN = 0,
|
|
12
|
-
FEB = 1,
|
|
13
|
-
MAR = 2,
|
|
14
|
-
APR = 3,
|
|
15
|
-
MAY = 4,
|
|
16
|
-
JUN = 5,
|
|
17
|
-
JUL = 6,
|
|
18
|
-
AUG = 7,
|
|
19
|
-
SEP = 8,
|
|
20
|
-
OCT = 9,
|
|
21
|
-
NOV = 10,
|
|
22
|
-
DEC = 11
|
|
23
|
-
}
|
|
24
|
-
export type DateOfMonth = {
|
|
25
|
-
id: string;
|
|
26
|
-
date: Date;
|
|
27
|
-
isCurrentMonth: boolean;
|
|
28
|
-
isLastMonth?: boolean;
|
|
29
|
-
isNextMonth?: boolean;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
today?: boolean;
|
|
32
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export var DAYS_OF_WEEK;
|
|
2
|
-
(function (DAYS_OF_WEEK) {
|
|
3
|
-
DAYS_OF_WEEK[DAYS_OF_WEEK["SUN"] = 0] = "SUN";
|
|
4
|
-
DAYS_OF_WEEK[DAYS_OF_WEEK["MON"] = 1] = "MON";
|
|
5
|
-
DAYS_OF_WEEK[DAYS_OF_WEEK["TUE"] = 2] = "TUE";
|
|
6
|
-
DAYS_OF_WEEK[DAYS_OF_WEEK["WED"] = 3] = "WED";
|
|
7
|
-
DAYS_OF_WEEK[DAYS_OF_WEEK["THU"] = 4] = "THU";
|
|
8
|
-
DAYS_OF_WEEK[DAYS_OF_WEEK["FRI"] = 5] = "FRI";
|
|
9
|
-
DAYS_OF_WEEK[DAYS_OF_WEEK["SAT"] = 6] = "SAT";
|
|
10
|
-
})(DAYS_OF_WEEK || (DAYS_OF_WEEK = {}));
|
|
11
|
-
export var MONTHS;
|
|
12
|
-
(function (MONTHS) {
|
|
13
|
-
MONTHS[MONTHS["JAN"] = 0] = "JAN";
|
|
14
|
-
MONTHS[MONTHS["FEB"] = 1] = "FEB";
|
|
15
|
-
MONTHS[MONTHS["MAR"] = 2] = "MAR";
|
|
16
|
-
MONTHS[MONTHS["APR"] = 3] = "APR";
|
|
17
|
-
MONTHS[MONTHS["MAY"] = 4] = "MAY";
|
|
18
|
-
MONTHS[MONTHS["JUN"] = 5] = "JUN";
|
|
19
|
-
MONTHS[MONTHS["JUL"] = 6] = "JUL";
|
|
20
|
-
MONTHS[MONTHS["AUG"] = 7] = "AUG";
|
|
21
|
-
MONTHS[MONTHS["SEP"] = 8] = "SEP";
|
|
22
|
-
MONTHS[MONTHS["OCT"] = 9] = "OCT";
|
|
23
|
-
MONTHS[MONTHS["NOV"] = 10] = "NOV";
|
|
24
|
-
MONTHS[MONTHS["DEC"] = 11] = "DEC";
|
|
25
|
-
})(MONTHS || (MONTHS = {}));
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<script module lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
2
|
-
import Accordian from './Accordian.svelte';
|
|
3
|
-
import { componentSizeArray } from '../../../../types/size.js';
|
|
4
|
-
export const storyAccordianArgTypes = {
|
|
5
|
-
size: {
|
|
6
|
-
control: { type: 'select' },
|
|
7
|
-
options: componentSizeArray,
|
|
8
|
-
},
|
|
9
|
-
};
|
|
10
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
11
|
-
const { Story } = defineMeta({
|
|
12
|
-
component: Accordian,
|
|
13
|
-
tags: ['autodocs'],
|
|
14
|
-
argTypes: storyAccordianArgTypes,
|
|
15
|
-
});
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<Story name="Default" asChild>
|
|
19
|
-
<Accordian>
|
|
20
|
-
{#snippet summary()}
|
|
21
|
-
Click me!
|
|
22
|
-
{/snippet}
|
|
23
|
-
|
|
24
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur nisi hic accusamus,
|
|
25
|
-
mollitia velit corporis, sit culpa nam ducimus quisquam aliquam eos atque doloribus architecto
|
|
26
|
-
at harum, explicabo et doloremque.
|
|
27
|
-
</Accordian>
|
|
28
|
-
</Story>
|
|
29
|
-
|
|
30
|
-
<Story name="Open by Default" asChild>
|
|
31
|
-
<Accordian defaultOpen={true}>
|
|
32
|
-
{#snippet summary()}
|
|
33
|
-
Click me!
|
|
34
|
-
{/snippet}
|
|
35
|
-
|
|
36
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur nisi hic accusamus,
|
|
37
|
-
mollitia velit corporis, sit culpa nam ducimus quisquam aliquam eos atque doloribus architecto
|
|
38
|
-
at harum, explicabo et doloremque.
|
|
39
|
-
</Accordian>
|
|
40
|
-
</Story>
|
|
41
|
-
|
|
42
|
-
<Story name="Full Width Summary" asChild>
|
|
43
|
-
<Accordian fullWidthSummary>
|
|
44
|
-
{#snippet summary()}
|
|
45
|
-
Click me!
|
|
46
|
-
{/snippet}
|
|
47
|
-
|
|
48
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur nisi hic accusamus,
|
|
49
|
-
mollitia velit corporis, sit culpa nam ducimus quisquam aliquam eos atque doloribus architecto
|
|
50
|
-
at harum, explicabo et doloremque.
|
|
51
|
-
</Accordian>
|
|
52
|
-
</Story>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import Accordian from './Accordian.svelte';
|
|
2
|
-
import type { StoryBookArgTypes } from '../../../../storybook-types.js';
|
|
3
|
-
export declare const storyAccordianArgTypes: StoryBookArgTypes;
|
|
4
|
-
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> {
|
|
5
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
6
|
-
$$bindings?: Bindings;
|
|
7
|
-
} & Exports;
|
|
8
|
-
(internal: unknown, props: {
|
|
9
|
-
$$events?: Events;
|
|
10
|
-
$$slots?: Slots;
|
|
11
|
-
}): Exports & {
|
|
12
|
-
$set?: any;
|
|
13
|
-
$on?: any;
|
|
14
|
-
};
|
|
15
|
-
z_$$bindings?: Bindings;
|
|
16
|
-
}
|
|
17
|
-
declare const Accordian: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
}, {}, {}, string>;
|
|
20
|
-
type Accordian = InstanceType<typeof Accordian>;
|
|
21
|
-
export default Accordian;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
<script lang="ts" module>import Icon from '@iconify/svelte';
|
|
2
|
-
import { onMount } from 'svelte';
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<script lang="ts">"use strict";
|
|
6
|
-
let { class: className = '', ref = $bindable(), ontoggle, open = $bindable(), defaultOpen, summary, children, size = 'normal', fullWidthSummary = false, customDropdownArrowIcon: customDropdownArrowIconInternal, dropdownArrowPosition = 'before', } = $props();
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
|
-
let customDropdownArrowIconTyped = customDropdownArrowIconInternal;
|
|
9
|
-
let isUserInteraction = $state(false);
|
|
10
|
-
function ontoggleMod(e) {
|
|
11
|
-
if (isUserInteraction) {
|
|
12
|
-
if (ontoggle) {
|
|
13
|
-
ontoggle(e);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
isUserInteraction = false;
|
|
17
|
-
}
|
|
18
|
-
function onsummaryclick() {
|
|
19
|
-
isUserInteraction = true;
|
|
20
|
-
}
|
|
21
|
-
onMount(() => {
|
|
22
|
-
if (open === true) {
|
|
23
|
-
ref.open = true;
|
|
24
|
-
}
|
|
25
|
-
else if (open === false) {
|
|
26
|
-
ref.open = false;
|
|
27
|
-
}
|
|
28
|
-
else if (defaultOpen === true) {
|
|
29
|
-
ref.open = true;
|
|
30
|
-
}
|
|
31
|
-
else if (defaultOpen === false) {
|
|
32
|
-
ref.open = false;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
{#snippet dropdownArrowIcon()}
|
|
38
|
-
{#if customDropdownArrowIconTyped}
|
|
39
|
-
{@render customDropdownArrowIconTyped(open)}
|
|
40
|
-
{:else}
|
|
41
|
-
<div class="IconOpen">
|
|
42
|
-
<Icon icon="material-symbols:arrow-drop-up-rounded" width="32" height="32" />
|
|
43
|
-
</div>
|
|
44
|
-
<div class="IconClose">
|
|
45
|
-
<Icon icon="material-symbols:arrow-drop-down-rounded" width="32" height="32" />
|
|
46
|
-
</div>
|
|
47
|
-
{/if}
|
|
48
|
-
{/snippet}
|
|
49
|
-
|
|
50
|
-
<details
|
|
51
|
-
class:fullWidthSummary
|
|
52
|
-
class={['dodo-ui-Accordian', `size--${size}`, className].join(' ')}
|
|
53
|
-
bind:this={ref}
|
|
54
|
-
{open}
|
|
55
|
-
ontoggle={ontoggleMod}
|
|
56
|
-
>
|
|
57
|
-
{#if summary}
|
|
58
|
-
<summary onclick={onsummaryclick}>
|
|
59
|
-
{#if dropdownArrowPosition === 'before'}
|
|
60
|
-
<div class:open class="DropdownArrow before">
|
|
61
|
-
{@render dropdownArrowIcon()}
|
|
62
|
-
</div>
|
|
63
|
-
{/if}
|
|
64
|
-
{@render summary()}
|
|
65
|
-
{#if dropdownArrowPosition === 'after'}
|
|
66
|
-
<div class:open class="DropdownArrow after">
|
|
67
|
-
{@render dropdownArrowIcon()}
|
|
68
|
-
</div>
|
|
69
|
-
{/if}
|
|
70
|
-
</summary>
|
|
71
|
-
{/if}
|
|
72
|
-
|
|
73
|
-
{#if children}
|
|
74
|
-
<div class="AccordianContent">
|
|
75
|
-
{@render children()}
|
|
76
|
-
</div>
|
|
77
|
-
{/if}
|
|
78
|
-
</details>
|
|
79
|
-
|
|
80
|
-
<style>.dodo-ui-Accordian {
|
|
81
|
-
color: var(--dodo-color-neutral-900);
|
|
82
|
-
width: 100%;
|
|
83
|
-
}
|
|
84
|
-
.dodo-ui-Accordian summary {
|
|
85
|
-
display: inline-flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
cursor: pointer;
|
|
88
|
-
user-select: none;
|
|
89
|
-
font-weight: 500;
|
|
90
|
-
}
|
|
91
|
-
.dodo-ui-Accordian.fullWidthSummary summary {
|
|
92
|
-
display: flex;
|
|
93
|
-
width: 100%;
|
|
94
|
-
}
|
|
95
|
-
.dodo-ui-Accordian[open] .IconOpen {
|
|
96
|
-
display: flex;
|
|
97
|
-
}
|
|
98
|
-
.dodo-ui-Accordian[open] .IconClose {
|
|
99
|
-
display: none;
|
|
100
|
-
}
|
|
101
|
-
.dodo-ui-Accordian:not([open]) .IconOpen {
|
|
102
|
-
display: none;
|
|
103
|
-
}
|
|
104
|
-
.dodo-ui-Accordian:not([open]) .IconClose {
|
|
105
|
-
display: flex;
|
|
106
|
-
}
|
|
107
|
-
.dodo-ui-Accordian.size--normal summary {
|
|
108
|
-
font-size: 1rem;
|
|
109
|
-
min-height: var(--dodo-ui-element-height-normal);
|
|
110
|
-
}
|
|
111
|
-
.dodo-ui-Accordian.size--small summary {
|
|
112
|
-
font-size: 0.9rem;
|
|
113
|
-
min-height: var(--dodo-ui-element-height-small);
|
|
114
|
-
}
|
|
115
|
-
.dodo-ui-Accordian.size--large summary {
|
|
116
|
-
font-size: 1.1rem;
|
|
117
|
-
min-height: var(--dodo-ui-element-height-large);
|
|
118
|
-
}
|
|
119
|
-
.dodo-ui-Accordian .AccordianContent {
|
|
120
|
-
margin-top: var(--dodo-ui-space);
|
|
121
|
-
}</style>
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { ComponentSize } from '../../../../types/size.js';
|
|
2
|
-
import type { IconPosition } from '../../../../types/special.js';
|
|
3
|
-
import { type Snippet } from 'svelte';
|
|
4
|
-
import type { EventHandler } from 'svelte/elements';
|
|
5
|
-
export type AccordianToggleEvent = Event & {
|
|
6
|
-
currentTarget: EventTarget & HTMLDetailsElement;
|
|
7
|
-
};
|
|
8
|
-
export interface AccordianProps {
|
|
9
|
-
/** Contents goes here */
|
|
10
|
-
children?: Snippet;
|
|
11
|
-
/** Accordian summary */
|
|
12
|
-
summary?: Snippet;
|
|
13
|
-
/** summary full width */
|
|
14
|
-
fullWidthSummary?: boolean;
|
|
15
|
-
/** Accordian ref */
|
|
16
|
-
ref?: HTMLDetailsElement;
|
|
17
|
-
/** Custom css class */
|
|
18
|
-
class?: string;
|
|
19
|
-
/** The toggle event handler */
|
|
20
|
-
ontoggle?: EventHandler<Event, HTMLDetailsElement>;
|
|
21
|
-
/** Open state, for dynmaic Accordians */
|
|
22
|
-
open?: boolean;
|
|
23
|
-
/** default Open, for static Accordians */
|
|
24
|
-
defaultOpen?: boolean;
|
|
25
|
-
/** How large should the button be? */
|
|
26
|
-
size?: ComponentSize;
|
|
27
|
-
/** Select Dropdown Arrow Position */
|
|
28
|
-
dropdownArrowPosition?: IconPosition;
|
|
29
|
-
/** Dropdown Arrow Icon */
|
|
30
|
-
customDropdownArrowIcon?: (open: boolean) => Snippet;
|
|
31
|
-
}
|
|
32
|
-
declare const Accordian: import("svelte").Component<AccordianProps, {}, "ref" | "open">;
|
|
33
|
-
type Accordian = ReturnType<typeof Accordian>;
|
|
34
|
-
export default Accordian;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<script module lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
2
|
-
import Accordian from '../Accordian.svelte';
|
|
3
|
-
import { storyAccordianArgTypes } from '../Accordian.stories.svelte';
|
|
4
|
-
import Icon from '@iconify/svelte';
|
|
5
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
6
|
-
const { Story } = defineMeta({
|
|
7
|
-
component: Accordian,
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
argTypes: storyAccordianArgTypes,
|
|
10
|
-
});
|
|
11
|
-
let open = $state(true);
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<Story name="DropdownArrowPositionBefore" asChild>
|
|
15
|
-
<Accordian>
|
|
16
|
-
{#snippet summary()}
|
|
17
|
-
Click me!
|
|
18
|
-
{/snippet}
|
|
19
|
-
|
|
20
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur nisi hic accusamus,
|
|
21
|
-
mollitia velit corporis, sit culpa nam ducimus quisquam aliquam eos atque doloribus architecto
|
|
22
|
-
at harum, explicabo et doloremque.
|
|
23
|
-
</Accordian>
|
|
24
|
-
</Story>
|
|
25
|
-
|
|
26
|
-
<Story name="DropdownArrowPositionAfter" asChild>
|
|
27
|
-
<Accordian dropdownArrowPosition="after">
|
|
28
|
-
{#snippet summary()}
|
|
29
|
-
Click me!
|
|
30
|
-
{/snippet}
|
|
31
|
-
|
|
32
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur nisi hic accusamus,
|
|
33
|
-
mollitia velit corporis, sit culpa nam ducimus quisquam aliquam eos atque doloribus architecto
|
|
34
|
-
at harum, explicabo et doloremque.
|
|
35
|
-
</Accordian>
|
|
36
|
-
</Story>
|
|
37
|
-
|
|
38
|
-
<Story name="HideDropdownArrow" asChild>
|
|
39
|
-
<Accordian dropdownArrowPosition={false}>
|
|
40
|
-
{#snippet summary()}
|
|
41
|
-
Click me!
|
|
42
|
-
{/snippet}
|
|
43
|
-
|
|
44
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur nisi hic accusamus,
|
|
45
|
-
mollitia velit corporis, sit culpa nam ducimus quisquam aliquam eos atque doloribus architecto
|
|
46
|
-
at harum, explicabo et doloremque.
|
|
47
|
-
</Accordian>
|
|
48
|
-
</Story>
|
|
49
|
-
|
|
50
|
-
<!-- Format look and feel Dropdown Arrow icon -->
|
|
51
|
-
<Story name="CustomDropdownArrowIcon" asChild>
|
|
52
|
-
<Accordian {open} ontoggle={() => (open = !open)}>
|
|
53
|
-
{#snippet summary()}
|
|
54
|
-
Click me!
|
|
55
|
-
{/snippet}
|
|
56
|
-
|
|
57
|
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur nisi hic accusamus,
|
|
58
|
-
mollitia velit corporis, sit culpa nam ducimus quisquam aliquam eos atque doloribus architecto
|
|
59
|
-
at harum, explicabo et doloremque.
|
|
60
|
-
|
|
61
|
-
{#snippet customDropdownArrowIcon(open)}
|
|
62
|
-
{#if open}
|
|
63
|
-
<Icon icon="mingcute:up-fill" width="24" height="24" />
|
|
64
|
-
{:else}
|
|
65
|
-
<Icon icon="mingcute:down-fill" width="24" height="24" />
|
|
66
|
-
{/if}
|
|
67
|
-
{/snippet}
|
|
68
|
-
</Accordian>
|
|
69
|
-
</Story>
|