@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,227 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import Button from '$lib/stories/components/Form/Button/Button.svelte';
|
|
3
|
-
import RangeSlider from '$lib/stories/components/Form/RangeSlider/RangeSlider.svelte';
|
|
4
|
-
import Column from '$lib/stories/components/Layout/Grid/Column/Column.svelte';
|
|
5
|
-
import Grid from '$lib/stories/components/Layout/Grid/Grid.svelte';
|
|
6
|
-
import Paper from '$lib/stories/components/Layout/Paper/Paper.svelte';
|
|
7
|
-
import {
|
|
8
|
-
colorPalette,
|
|
9
|
-
colorPaletteValues,
|
|
10
|
-
} from '$lib/stories/developer tools/philosophy/Colors/utils/color.js';
|
|
11
|
-
import {
|
|
12
|
-
useAutoCustomizeConfigStore,
|
|
13
|
-
type AutoCustomizeConfigDataColors,
|
|
14
|
-
} from '../stores/config.svelte.js';
|
|
15
|
-
|
|
16
|
-
let cssVariables = $state<string[]>([]);
|
|
17
|
-
|
|
18
|
-
$effect(() => {
|
|
19
|
-
const newCssvariables: string[] = [];
|
|
20
|
-
|
|
21
|
-
for (let index = 0; index < colorPalette.length; index++) {
|
|
22
|
-
const colorName = colorPalette[index];
|
|
23
|
-
const fieldName = `${colorName}` as keyof AutoCustomizeConfigDataColors;
|
|
24
|
-
|
|
25
|
-
const dataPoint =
|
|
26
|
-
useAutoCustomizeConfigStore.data.colors &&
|
|
27
|
-
useAutoCustomizeConfigStore.data.colors[fieldName]
|
|
28
|
-
? useAutoCustomizeConfigStore.data.colors[fieldName]
|
|
29
|
-
: undefined;
|
|
30
|
-
|
|
31
|
-
if (dataPoint) {
|
|
32
|
-
for (let index = 0; index < colorPaletteValues.length; index++) {
|
|
33
|
-
const weight = colorPaletteValues[index];
|
|
34
|
-
|
|
35
|
-
newCssvariables.push(
|
|
36
|
-
`--dodo-color-${colorName}-${weight}: var(--dodo-color-base-${dataPoint}-${weight})`,
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
newCssvariables.push(
|
|
41
|
-
...[
|
|
42
|
-
`--dodo-ui-Button-outline-${colorName}: var(--dodo-color-base-${dataPoint}-400)`,
|
|
43
|
-
`--dodo-ui-Button-text-${colorName}-bg: var(--dodo-color-base-${dataPoint}-100)`,
|
|
44
|
-
`--dodo-ui-Button-text-${colorName}-hover-bg: var(--dodo-color-base-${dataPoint}-200)`,
|
|
45
|
-
`--dodo-ui-Button-text-${colorName}-active-bg: var(--dodo-color-base-${dataPoint}-300)`,
|
|
46
|
-
`--dodo-ui-Button-solid-${colorName}-bg: var(--dodo-color-base-${dataPoint}-500)`,
|
|
47
|
-
`--dodo-ui-Button-solid-${colorName}-hover-bg: var(--dodo-color-base-${dataPoint}-600)`,
|
|
48
|
-
`--dodo-ui-Button-solid-${colorName}-active-bg: var(--dodo-color-base-${dataPoint}-700)`,
|
|
49
|
-
`--dodo-ui-RangeSlider-thumb-${colorName}-bg: var(--dodo-color-base-${dataPoint}-500)`,
|
|
50
|
-
`--dodo-ui-RangeSlider-thumb-${colorName}-hover-bg: var(--dodo-color-base-${dataPoint}-600)`,
|
|
51
|
-
`--dodo-ui-RangeSlider-thumb-${colorName}-active-bg: var(--dodo-color-base-${dataPoint}-700)`,
|
|
52
|
-
`--dodo-ui-RangeSlider-track-filled-${colorName}-bg: var(--dodo-color-base-${dataPoint}-500)`,
|
|
53
|
-
],
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
if (useAutoCustomizeConfigStore.data.components?.roundness) {
|
|
59
|
-
const roundness = useAutoCustomizeConfigStore.data.components.roundness / 8;
|
|
60
|
-
|
|
61
|
-
newCssvariables.push(`--dodo-ui-element-roundness-1: ${0.4375 + roundness}em`);
|
|
62
|
-
newCssvariables.push(`--dodo-ui-element-roundness-2: ${0.8125 + roundness}em`);
|
|
63
|
-
newCssvariables.push(`--dodo-ui-element-roundness-3: ${1.9375 + roundness}em`);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
if (useAutoCustomizeConfigStore.data.components?.elementHeight) {
|
|
67
|
-
const elementHeight = useAutoCustomizeConfigStore.data.components.elementHeight + 2;
|
|
68
|
-
const elementHeightTrack = useAutoCustomizeConfigStore.data.components.elementHeight / 2;
|
|
69
|
-
|
|
70
|
-
newCssvariables.push(`--dodo-ui-element-height-small: ${34 + elementHeight}px`);
|
|
71
|
-
newCssvariables.push(`--dodo-ui-element-height-normal: ${40 + elementHeight}px`);
|
|
72
|
-
newCssvariables.push(`--dodo-ui-element-height-large: ${50 + elementHeight}px`);
|
|
73
|
-
|
|
74
|
-
newCssvariables.push(`--dodo-ui-track-element-height-small: ${6 + elementHeightTrack}px`);
|
|
75
|
-
newCssvariables.push(`--dodo-ui-track-element-height-normal: ${8 + elementHeightTrack}px`);
|
|
76
|
-
newCssvariables.push(`--dodo-ui-track-element-height-large: ${10 + elementHeightTrack}px`);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
if (useAutoCustomizeConfigStore.data.components?.borderWidth) {
|
|
80
|
-
const borderWidth = useAutoCustomizeConfigStore.data.components.borderWidth;
|
|
81
|
-
|
|
82
|
-
newCssvariables.push(`--dodo-ui-element-border-width: ${1 + borderWidth}px`);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (useAutoCustomizeConfigStore.data.space) {
|
|
86
|
-
const space = useAutoCustomizeConfigStore.data.space;
|
|
87
|
-
|
|
88
|
-
newCssvariables.push(`--dodo-ui-space-small: ${6 + space}px`);
|
|
89
|
-
newCssvariables.push(`--dodo-ui-space: ${8 + space}px`);
|
|
90
|
-
newCssvariables.push(`--dodo-ui-space-large: ${10 + space}px`);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
cssVariables = [...newCssvariables];
|
|
94
|
-
});
|
|
95
|
-
</script>
|
|
96
|
-
|
|
97
|
-
<div class="Preview" style={cssVariables.join(';')}>
|
|
98
|
-
<div class="section">
|
|
99
|
-
<div class="column">
|
|
100
|
-
<Button>Primary</Button>
|
|
101
|
-
</div>
|
|
102
|
-
<div class="column">
|
|
103
|
-
<Button color="secondary">Secondary</Button>
|
|
104
|
-
</div>
|
|
105
|
-
<div class="column">
|
|
106
|
-
<Button color="neutral">Neutral</Button>
|
|
107
|
-
</div>
|
|
108
|
-
<div class="column">
|
|
109
|
-
<Button color="safe">Safe</Button>
|
|
110
|
-
</div>
|
|
111
|
-
<div class="column">
|
|
112
|
-
<Button color="warning">Warning</Button>
|
|
113
|
-
</div>
|
|
114
|
-
<div class="column">
|
|
115
|
-
<Button color="danger">Danger</Button>
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
|
|
119
|
-
<div class="section">
|
|
120
|
-
<div class="column">
|
|
121
|
-
<Button variant="text" outline>Primary</Button>
|
|
122
|
-
</div>
|
|
123
|
-
<div class="column">
|
|
124
|
-
<Button variant="text" outline color="secondary">Secondary</Button>
|
|
125
|
-
</div>
|
|
126
|
-
<div class="column">
|
|
127
|
-
<Button variant="text" outline color="neutral">Neutral</Button>
|
|
128
|
-
</div>
|
|
129
|
-
<div class="column">
|
|
130
|
-
<Button variant="text" outline color="safe">Safe</Button>
|
|
131
|
-
</div>
|
|
132
|
-
<div class="column">
|
|
133
|
-
<Button variant="text" outline color="warning">Warning</Button>
|
|
134
|
-
</div>
|
|
135
|
-
<div class="column">
|
|
136
|
-
<Button variant="text" outline color="danger">Danger</Button>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
|
|
140
|
-
<div class="section">
|
|
141
|
-
<div class="column">
|
|
142
|
-
<Paper shadow={1} width="150px" height="180px">
|
|
143
|
-
<div style="padding: var(--dodo-ui-space)">Hola!</div>
|
|
144
|
-
</Paper>
|
|
145
|
-
</div>
|
|
146
|
-
<div class="column">
|
|
147
|
-
<RangeSlider value={50} min={20} max={70} />
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
|
|
151
|
-
<div class="section">
|
|
152
|
-
<Grid class="GridSection">
|
|
153
|
-
<Column md={6}>
|
|
154
|
-
<Paper shadow={1}>
|
|
155
|
-
<div style="padding: var(--dodo-ui-space)">Hola!</div>
|
|
156
|
-
</Paper>
|
|
157
|
-
</Column>
|
|
158
|
-
<Column md={6}>
|
|
159
|
-
<Paper shadow={1}>
|
|
160
|
-
<div style="padding: var(--dodo-ui-space)">Hola!</div>
|
|
161
|
-
</Paper>
|
|
162
|
-
</Column>
|
|
163
|
-
<Column md={4}>
|
|
164
|
-
<Paper shadow={1}>
|
|
165
|
-
<div style="padding: var(--dodo-ui-space)">Hola!</div>
|
|
166
|
-
</Paper>
|
|
167
|
-
</Column>
|
|
168
|
-
<Column md={3}>
|
|
169
|
-
<Paper shadow={1}>
|
|
170
|
-
<div style="padding: var(--dodo-ui-space)">Hola!</div>
|
|
171
|
-
</Paper>
|
|
172
|
-
</Column>
|
|
173
|
-
<Column md={2}>
|
|
174
|
-
<Paper shadow={1}>
|
|
175
|
-
<div style="padding: var(--dodo-ui-space)">Hola!</div>
|
|
176
|
-
</Paper>
|
|
177
|
-
</Column>
|
|
178
|
-
<Column md={3}>
|
|
179
|
-
<Paper shadow={1}>
|
|
180
|
-
<div style="padding: var(--dodo-ui-space)">Hola!</div>
|
|
181
|
-
</Paper>
|
|
182
|
-
</Column>
|
|
183
|
-
</Grid>
|
|
184
|
-
</div>
|
|
185
|
-
</div>
|
|
186
|
-
|
|
187
|
-
<style lang="scss">
|
|
188
|
-
@use '../../../../../../styles/scss' as *;
|
|
189
|
-
|
|
190
|
-
:global(:root) {
|
|
191
|
-
--AutoCustomize-Preview-bgColor: var(--dodo-color-base-gray-100);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
:global(.dodo-theme--dark) {
|
|
195
|
-
--AutoCustomize-Preview-bgColor: var(--dodo-color-base-gray-800);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.Preview {
|
|
199
|
-
background-color: var(--AutoCustomize-Preview-bgColor);
|
|
200
|
-
padding: calc(var(--dodo-ui-space) * 2);
|
|
201
|
-
border-radius: var(--dodo-ui-element-roundness-2);
|
|
202
|
-
width: 100%;
|
|
203
|
-
|
|
204
|
-
@media (min-width: $breakpoints-lg) {
|
|
205
|
-
flex: 1;
|
|
206
|
-
width: initial;
|
|
207
|
-
height: calc(100vh - 130px);
|
|
208
|
-
overflow: auto;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.section {
|
|
212
|
-
width: 100%;
|
|
213
|
-
margin: var(--dodo-ui-space) 0;
|
|
214
|
-
display: flex;
|
|
215
|
-
flex-wrap: wrap;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.column {
|
|
219
|
-
margin: 4px;
|
|
220
|
-
display: inline-flex;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
:global(.GridSection) {
|
|
224
|
-
width: 100%;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
</style>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import Config from './Config/Config.svelte';
|
|
3
|
-
import Preview from './Preview/Preview.svelte';
|
|
4
|
-
</script>
|
|
5
|
-
|
|
6
|
-
<div class="Tool">
|
|
7
|
-
<Config />
|
|
8
|
-
<Preview />
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
<style lang="scss">
|
|
12
|
-
.Tool {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-wrap: wrap;
|
|
15
|
-
}
|
|
16
|
-
</style>
|
package/src/lib/stories/developer tools/customize/AutoCustomize/Tool/stores/config.svelte.ts
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { browser } from '$app/environment';
|
|
2
|
-
|
|
3
|
-
const AUTO_CUSTOMIZE_TOOL_CONFIG = 'AUTO_CUSTOMIZE_TOOL_CONFIG';
|
|
4
|
-
|
|
5
|
-
export type AutoCustomizeConfigDataColors = {
|
|
6
|
-
primary?: string;
|
|
7
|
-
secondary?: string;
|
|
8
|
-
neutral?: string;
|
|
9
|
-
safe?: string;
|
|
10
|
-
warning?: string;
|
|
11
|
-
danger?: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type AutoCustomizeConfigDataComponents = {
|
|
15
|
-
roundness?: number;
|
|
16
|
-
elementHeight?: number;
|
|
17
|
-
borderWidth?: number;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export type AutoCustomizeConfigData = {
|
|
21
|
-
colors?: AutoCustomizeConfigDataColors;
|
|
22
|
-
components?: AutoCustomizeConfigDataComponents;
|
|
23
|
-
space?: number;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const autoCustomizeConfigdefaultData: AutoCustomizeConfigData = {
|
|
27
|
-
colors: {
|
|
28
|
-
primary: 'violet',
|
|
29
|
-
secondary: 'blue',
|
|
30
|
-
neutral: 'gray',
|
|
31
|
-
safe: 'emerald',
|
|
32
|
-
warning: 'amber',
|
|
33
|
-
danger: 'red',
|
|
34
|
-
},
|
|
35
|
-
components: {
|
|
36
|
-
roundness: 0,
|
|
37
|
-
elementHeight: 0,
|
|
38
|
-
borderWidth: 0,
|
|
39
|
-
},
|
|
40
|
-
space: 0,
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
function getDefaultData() {
|
|
44
|
-
if (!browser) {
|
|
45
|
-
return autoCustomizeConfigdefaultData;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
let values = JSON.parse(localStorage.getItem(AUTO_CUSTOMIZE_TOOL_CONFIG) || `{}`);
|
|
49
|
-
|
|
50
|
-
values = { ...autoCustomizeConfigdefaultData, ...values };
|
|
51
|
-
|
|
52
|
-
return values as AutoCustomizeConfigData;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function createAutoCustomizeConfigStore() {
|
|
56
|
-
let updatedAt: number = $state(Date.now());
|
|
57
|
-
let data: AutoCustomizeConfigData = $state(getDefaultData());
|
|
58
|
-
|
|
59
|
-
return {
|
|
60
|
-
get data() {
|
|
61
|
-
return data;
|
|
62
|
-
},
|
|
63
|
-
get updatedAt() {
|
|
64
|
-
return updatedAt;
|
|
65
|
-
},
|
|
66
|
-
updateData(newData: Partial<AutoCustomizeConfigData>) {
|
|
67
|
-
data = {
|
|
68
|
-
...data,
|
|
69
|
-
...newData,
|
|
70
|
-
};
|
|
71
|
-
updatedAt = Date.now();
|
|
72
|
-
|
|
73
|
-
if (browser) {
|
|
74
|
-
localStorage.setItem(AUTO_CUSTOMIZE_TOOL_CONFIG, JSON.stringify(newData));
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
updateDataColor(newData: Partial<AutoCustomizeConfigDataColors>) {
|
|
78
|
-
const colors = {
|
|
79
|
-
...data.colors,
|
|
80
|
-
...newData,
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
this.updateData({ colors });
|
|
84
|
-
},
|
|
85
|
-
updateDataComponents(newData: Partial<AutoCustomizeConfigDataComponents>) {
|
|
86
|
-
const components = {
|
|
87
|
-
...data.components,
|
|
88
|
-
...newData,
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
this.updateData({ components });
|
|
92
|
-
},
|
|
93
|
-
reset() {
|
|
94
|
-
data = autoCustomizeConfigdefaultData;
|
|
95
|
-
updatedAt = Date.now();
|
|
96
|
-
|
|
97
|
-
if (browser) {
|
|
98
|
-
localStorage.setItem(
|
|
99
|
-
AUTO_CUSTOMIZE_TOOL_CONFIG,
|
|
100
|
-
JSON.stringify(autoCustomizeConfigdefaultData),
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export const useAutoCustomizeConfigStore = createAutoCustomizeConfigStore();
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export function clickOutside(node: Element, callback: () => void) {
|
|
2
|
-
const handleClick = (event: MouseEvent) => {
|
|
3
|
-
const target = event.target as Node;
|
|
4
|
-
|
|
5
|
-
if (node && !node.contains(target) && !event.defaultPrevented) {
|
|
6
|
-
callback();
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
document.addEventListener('click', handleClick, true);
|
|
11
|
-
|
|
12
|
-
return {
|
|
13
|
-
destroy() {
|
|
14
|
-
document.removeEventListener('click', handleClick, true);
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export function drag(node: HTMLElement) {
|
|
2
|
-
let dragging = false;
|
|
3
|
-
|
|
4
|
-
function getX(e: MouseEvent | TouchEvent): number {
|
|
5
|
-
return 'touches' in e ? e.touches[0].clientX : e.clientX;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function handleStart(e: MouseEvent | TouchEvent) {
|
|
9
|
-
dragging = true;
|
|
10
|
-
const x = getX(e);
|
|
11
|
-
node.dispatchEvent(new CustomEvent('dragstart', { detail: { x } }));
|
|
12
|
-
|
|
13
|
-
window.addEventListener('mousemove', handleMove);
|
|
14
|
-
window.addEventListener('mouseup', handleEnd);
|
|
15
|
-
window.addEventListener('touchmove', handleMove);
|
|
16
|
-
window.addEventListener('touchend', handleEnd);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function handleMove(e: MouseEvent | TouchEvent) {
|
|
20
|
-
if (!dragging) return;
|
|
21
|
-
const x = getX(e);
|
|
22
|
-
|
|
23
|
-
node.dispatchEvent(new CustomEvent('dragging', { detail: { x } }));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function handleEnd(e: MouseEvent | TouchEvent) {
|
|
27
|
-
if (!dragging) return;
|
|
28
|
-
dragging = false;
|
|
29
|
-
const x = getX(e);
|
|
30
|
-
node.dispatchEvent(new CustomEvent('dragend', { detail: { x } }));
|
|
31
|
-
|
|
32
|
-
window.removeEventListener('mousemove', handleMove);
|
|
33
|
-
window.removeEventListener('mouseup', handleEnd);
|
|
34
|
-
window.removeEventListener('touchmove', handleMove);
|
|
35
|
-
window.removeEventListener('touchend', handleEnd);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
node.addEventListener('mousedown', handleStart);
|
|
39
|
-
node.addEventListener('touchstart', handleStart, { passive: true });
|
|
40
|
-
|
|
41
|
-
return {
|
|
42
|
-
destroy() {
|
|
43
|
-
node.removeEventListener('mousedown', handleStart);
|
|
44
|
-
node.removeEventListener('touchstart', handleStart);
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
}
|
package/src/lib/stories/developer tools/helpers/Numbers/cleanNumericString/cleanNumericString.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cleans the input string by removing all characters except numeric digits (0-9) and a single decimal point.
|
|
3
|
-
* Only the first decimal point is retained; all subsequent dots are removed.
|
|
4
|
-
*
|
|
5
|
-
* @param {string} input - The input string to be cleaned.
|
|
6
|
-
* @returns {string} - A string containing only digits and at most one decimal point.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* cleanNumericString("abc123.45.67def"); // returns "123.4567"
|
|
10
|
-
* cleanNumericString("a1b2c3"); // returns "123"
|
|
11
|
-
* cleanNumericString("...12.3.4..5"); // returns "12.345"
|
|
12
|
-
*/
|
|
13
|
-
export default function cleanNumericString(input: string): string {
|
|
14
|
-
// Remove all characters except digits and dots
|
|
15
|
-
const filtered = input.replace(/[^0-9.]/g, '');
|
|
16
|
-
|
|
17
|
-
// Split by dot to separate parts
|
|
18
|
-
const parts = filtered.split('.');
|
|
19
|
-
|
|
20
|
-
if (parts.length === 1) {
|
|
21
|
-
// No dot present, just digits
|
|
22
|
-
return parts[0];
|
|
23
|
-
} else {
|
|
24
|
-
// Keep only first dot, join the rest parts without dots
|
|
25
|
-
return parts[0] + '.' + parts.slice(1).join('');
|
|
26
|
-
}
|
|
27
|
-
}
|
package/src/lib/stories/developer tools/helpers/Numbers/isValidNumberValue/isValidNumberValue.ts
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import createLogger from '../../logger/logger.js';
|
|
2
|
-
|
|
3
|
-
export type IsValidNumberValueSettings = {
|
|
4
|
-
/**
|
|
5
|
-
* Minimum allowed numeric value (inclusive).
|
|
6
|
-
*/
|
|
7
|
-
min?: number;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Maximum allowed numeric value (inclusive).
|
|
11
|
-
*/
|
|
12
|
-
max?: number;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Whether negative numbers are allowed.
|
|
16
|
-
* Defaults to false.
|
|
17
|
-
*/
|
|
18
|
-
allowNegativeValues?: boolean;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Maximum allowed decimal places.
|
|
22
|
-
* Defaults to 0 (no decimals allowed).
|
|
23
|
-
*/
|
|
24
|
-
decimalPlaces?: number;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Whether to enable logging.
|
|
28
|
-
* Defaults to false.
|
|
29
|
-
*/
|
|
30
|
-
log?: boolean;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Strict checking, Full text - keep it enabled, Partial text - keep it disabled
|
|
34
|
-
* Defaults to true.
|
|
35
|
-
*/
|
|
36
|
-
strict?: boolean;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Checks if the input string is a valid numeric string.
|
|
41
|
-
* Allows integers, decimals, negative numbers, and scientific notation.
|
|
42
|
-
*
|
|
43
|
-
* @param str - Input string to validate.
|
|
44
|
-
* @returns True if string is numeric, false otherwise.
|
|
45
|
-
*/
|
|
46
|
-
function isNumericString(str: string): boolean {
|
|
47
|
-
if (typeof str !== 'string') return false;
|
|
48
|
-
const trimmed = str.trim();
|
|
49
|
-
if (trimmed === '') return false;
|
|
50
|
-
const num = Number(trimmed);
|
|
51
|
-
return !isNaN(num) && isFinite(num);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Validates whether a string represents a valid number based on provided settings.
|
|
56
|
-
*
|
|
57
|
-
* @param value - The string to validate as a number.
|
|
58
|
-
* @param settings - Optional validation settings.
|
|
59
|
-
* @param settings.min - Minimum allowed value (inclusive).
|
|
60
|
-
* @param settings.max - Maximum allowed value (inclusive).
|
|
61
|
-
* @param settings.allowNegativeValues - Whether negative numbers are allowed.
|
|
62
|
-
* @param settings.decimalPlaces - Maximum allowed decimal places.
|
|
63
|
-
* @param settings.log - Whether to enable detailed logging.
|
|
64
|
-
* @param settings.strict - Whether to enable Strict checking, Full text - keep it enabled, Partial text - keep it disabled
|
|
65
|
-
*
|
|
66
|
-
* @returns True if the value is a valid number according to the settings; otherwise false.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```ts
|
|
70
|
-
* isValidNumberValue("123.45", { decimalPlaces: 2, log: true });
|
|
71
|
-
* isValidNumberValue("-50", { allowNegativeValues: true, min: -100 });
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
export default function isValidNumberValue(
|
|
75
|
-
value: string,
|
|
76
|
-
settings?: IsValidNumberValueSettings,
|
|
77
|
-
): boolean {
|
|
78
|
-
const allowNegativeValues = settings?.allowNegativeValues || false;
|
|
79
|
-
const decimalPlaces = settings?.decimalPlaces || 0;
|
|
80
|
-
const valueFormatted = value.trim();
|
|
81
|
-
const log = settings?.log || false;
|
|
82
|
-
const logger = createLogger({
|
|
83
|
-
label: 'isValidNumberValue',
|
|
84
|
-
show: log,
|
|
85
|
-
});
|
|
86
|
-
const min = settings?.min;
|
|
87
|
-
const max = settings?.max;
|
|
88
|
-
const strict = settings?.strict === false ? false : true;
|
|
89
|
-
|
|
90
|
-
logger.info(`Validating value: "${valueFormatted}"`);
|
|
91
|
-
|
|
92
|
-
if (strict && !isNumericString(valueFormatted)) {
|
|
93
|
-
logger.warn('Invalid input: strict checking is enaabled and the text failed the checks');
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (valueFormatted === '') {
|
|
98
|
-
logger.info('Valid input: Blank value');
|
|
99
|
-
return true;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (allowNegativeValues && valueFormatted === '-') {
|
|
103
|
-
logger.info(`Valid input: Single '-' sign allowed as a negative placeholder.`);
|
|
104
|
-
return true;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
if (!decimalPlaces && valueFormatted.includes('.')) {
|
|
108
|
-
logger.warn('Invalid input: Decimals not allowed');
|
|
109
|
-
return false;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
const dotCount = (valueFormatted.match(/\./g) || []).length;
|
|
113
|
-
|
|
114
|
-
if (dotCount > 1) {
|
|
115
|
-
logger.warn('Invalid input: More than one decimal point detected.');
|
|
116
|
-
return false;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
const parts = valueFormatted.split('.');
|
|
120
|
-
|
|
121
|
-
if (parts[1]?.length > decimalPlaces) {
|
|
122
|
-
logger.warn(
|
|
123
|
-
`Invalid input: Number has ${parts[1].length} decimal places, exceeding the allowed limit of ${decimalPlaces}.`,
|
|
124
|
-
);
|
|
125
|
-
return false;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (!isNumericString(valueFormatted)) {
|
|
129
|
-
logger.warn('Invalid input: String is not a valid number.');
|
|
130
|
-
return false;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
const numericValue = Number(valueFormatted);
|
|
134
|
-
|
|
135
|
-
if (!allowNegativeValues && numericValue < 0) {
|
|
136
|
-
logger.warn('Invalid input: Negative numbers are not allowed.');
|
|
137
|
-
return false;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
if (min !== undefined && numericValue < min) {
|
|
141
|
-
logger.warn(
|
|
142
|
-
`Invalid input: Number ${numericValue} is less than the minimum allowed value of ${min}.`,
|
|
143
|
-
);
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (max !== undefined && numericValue > max) {
|
|
148
|
-
logger.warn(
|
|
149
|
-
`Invalid input: Number ${numericValue} exceeds the maximum allowed value of ${max}.`,
|
|
150
|
-
);
|
|
151
|
-
return false;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
logger.info('Validation passed: Input is a valid number according to the provided settings.');
|
|
155
|
-
return true;
|
|
156
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { ConfigType, OptionType } from 'dayjs';
|
|
2
|
-
import dayjs from 'dayjs';
|
|
3
|
-
import utc from 'dayjs/plugin/utc.js';
|
|
4
|
-
import timezone from 'dayjs/plugin/timezone.js';
|
|
5
|
-
import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
|
6
|
-
|
|
7
|
-
type Dayjs = ReturnType<typeof dayjs>;
|
|
8
|
-
|
|
9
|
-
dayjs.extend(utc);
|
|
10
|
-
dayjs.extend(timezone);
|
|
11
|
-
dayjs.extend(customParseFormat);
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Acceptable input types for the `getMoment` function, compatible with dayjs.
|
|
15
|
-
*/
|
|
16
|
-
export type GetMomentDate = ConfigType;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Optional formatting string used to parse the date.
|
|
20
|
-
*/
|
|
21
|
-
export type GetMomentFormat = OptionType;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Settings to control how the moment is returned (UTC, timezone, or local).
|
|
25
|
-
*/
|
|
26
|
-
export interface GetMomentSettings {
|
|
27
|
-
/**
|
|
28
|
-
* Timezone string (e.g., "America/New_York").
|
|
29
|
-
*/
|
|
30
|
-
timezone?: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Whether to return the time in UTC. If true, overrides timezone.
|
|
34
|
-
*/
|
|
35
|
-
utc?: boolean;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* A wrapper around dayjs to return a moment-like object with optional formatting,
|
|
40
|
-
* timezone, or UTC handling.
|
|
41
|
-
*
|
|
42
|
-
* @param date - The input date, time, or string to be parsed.
|
|
43
|
-
* @param format - A custom format string for parsing the input date.
|
|
44
|
-
* @param settings - Optional settings for timezone or UTC output.
|
|
45
|
-
* @returns A dayjs object in local, UTC, or specified timezone.
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* getMoment('2025-01-01T12:00:00Z', undefined, { utc: true }).format()
|
|
49
|
-
* getMoment('01-01-2025', 'DD-MM-YYYY', { timezone: 'Asia/Kolkata' }).format()
|
|
50
|
-
*/
|
|
51
|
-
export default function getMoment(
|
|
52
|
-
date?: GetMomentDate,
|
|
53
|
-
format?: GetMomentFormat,
|
|
54
|
-
settings?: GetMomentSettings,
|
|
55
|
-
): Dayjs {
|
|
56
|
-
const timezone = settings?.timezone;
|
|
57
|
-
const utc = settings?.utc ?? false;
|
|
58
|
-
|
|
59
|
-
if (utc) {
|
|
60
|
-
return dayjs.utc(dayjs(date, format));
|
|
61
|
-
} else if (timezone) {
|
|
62
|
-
return dayjs.tz(dayjs(date, format), timezone);
|
|
63
|
-
} else {
|
|
64
|
-
return dayjs(date, format);
|
|
65
|
-
}
|
|
66
|
-
}
|