@flightlesslabs/dodo-ui 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -0
- package/dist/index.js +6 -0
- package/dist/stories/components/Form/Button/Button.svelte +1 -1
- package/dist/stories/components/Form/Button/Button.svelte.d.ts +1 -1
- package/dist/stories/components/Form/Checkbox/Checkbox.stories.svelte +39 -0
- package/dist/stories/components/Form/Checkbox/Checkbox.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Form/Checkbox/Checkbox.svelte +452 -0
- package/dist/stories/components/Form/Checkbox/Checkbox.svelte.d.ts +42 -0
- package/{src/lib/stories/components/Form/RangeSlider → dist/stories/components/Form/Checkbox}/Color/Color.stories.svelte +4 -4
- package/dist/stories/components/Form/Checkbox/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Form/Checkbox/Customize/Customize.stories.svelte +27 -0
- package/dist/stories/components/Form/Checkbox/Customize/Customize.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/Checkbox/Events/Events.stories.svelte +35 -0
- package/dist/stories/components/Form/Checkbox/Events/Events.stories.svelte.d.ts +18 -0
- package/{src/lib/stories/components/Form/PasswordInput → dist/stories/components/Form/Checkbox}/Roundness/Roundness.stories.svelte +6 -4
- package/dist/stories/components/Form/Checkbox/Roundness/Roundness.stories.svelte.d.ts +26 -0
- package/{src/lib/stories/components/Form/RangeSlider → dist/stories/components/Form/Checkbox}/Size/Size.stories.svelte +4 -4
- package/dist/stories/components/Form/Checkbox/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Form/Checkbox/utils/scss/mixins.scss +80 -0
- package/{src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList → dist/stories/components/Form/Radio}/Color/Color.stories.svelte +4 -7
- package/dist/stories/components/Form/Radio/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Form/Radio/Events/Events.stories.svelte +32 -0
- package/dist/stories/components/Form/Radio/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/Radio/Radio.stories.svelte +39 -0
- package/dist/stories/components/Form/Radio/Radio.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Form/Radio/Radio.svelte +413 -0
- package/dist/stories/components/Form/Radio/Radio.svelte.d.ts +36 -0
- package/{src/lib/stories/components/Form/NumericInput → dist/stories/components/Form/Radio}/Roundness/Roundness.stories.svelte +7 -5
- package/dist/stories/components/Form/Radio/Roundness/Roundness.stories.svelte.d.ts +26 -0
- package/{src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek → dist/stories/components/Form/Radio}/Size/Size.stories.svelte +4 -4
- package/dist/stories/components/Form/Radio/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Form/Radio/utils/scss/mixins.scss +85 -0
- package/{src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation → dist/stories/components/Form/Toggle}/Color/Color.stories.svelte +4 -4
- package/dist/stories/components/Form/Toggle/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Form/Toggle/Events/Events.stories.svelte +35 -0
- package/dist/stories/components/Form/Toggle/Events/Events.stories.svelte.d.ts +18 -0
- package/{src/lib/stories/developer tools/components/InputEnclosure/Roundness/Roundness.stories.svelte → dist/stories/components/Form/Toggle/Roundness/Roundness.stories.svelte} +8 -6
- package/dist/stories/components/Form/Toggle/Roundness/Roundness.stories.svelte.d.ts +26 -0
- package/{src/lib/stories/components/Form/NumericInput → dist/stories/components/Form/Toggle}/Size/Size.stories.svelte +4 -4
- package/dist/stories/components/Form/Toggle/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Form/Toggle/Toggle.stories.svelte +37 -0
- package/dist/stories/components/Form/Toggle/Toggle.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Form/Toggle/Toggle.svelte +359 -0
- package/dist/stories/components/Form/Toggle/Toggle.svelte.d.ts +36 -0
- package/dist/stories/components/Form/Toggle/utils/scss/mixins.scss +68 -0
- package/package.json +16 -14
- package/src/lib/index.ts +12 -0
- package/src/lib/stories/components/Form/Button/Button.svelte +2 -2
- package/src/lib/stories/components/Form/Checkbox/Checkbox.svelte +323 -0
- package/src/lib/stories/components/Form/Checkbox/utils/scss/mixins.scss +80 -0
- package/src/lib/stories/components/Form/Radio/Radio.svelte +278 -0
- package/src/lib/stories/components/Form/Radio/utils/scss/mixins.scss +85 -0
- package/src/lib/stories/components/Form/Toggle/Toggle.svelte +290 -0
- package/src/lib/stories/components/Form/Toggle/utils/scss/mixins.scss +68 -0
- package/src/lib/stories/Home.mdx +0 -59
- package/src/lib/stories/assets/dark-theme-toggle.png +0 -0
- package/src/lib/stories/components/Form/Button/Button.stories.svelte +0 -61
- package/src/lib/stories/components/Form/Button/Color/Color.stories.svelte +0 -43
- package/src/lib/stories/components/Form/Button/Events/Events.stories.svelte +0 -36
- package/src/lib/stories/components/Form/Button/IconButton/IconButton.stories.svelte +0 -43
- package/src/lib/stories/components/Form/Button/Roundness/Roundness.stories.svelte +0 -23
- package/src/lib/stories/components/Form/Button/Size/Size.stories.svelte +0 -16
- package/src/lib/stories/components/Form/Button/Variant/Variant.stories.svelte +0 -18
- package/src/lib/stories/components/Form/DatePicker/Color/Color.stories.svelte +0 -47
- package/src/lib/stories/components/Form/DatePicker/Controls/Controls.stories.svelte +0 -58
- package/src/lib/stories/components/Form/DatePicker/Customize/Customize.stories.svelte +0 -167
- package/src/lib/stories/components/Form/DatePicker/DatePicker.stories.svelte +0 -107
- package/src/lib/stories/components/Form/DatePicker/Events/Events.stories.svelte +0 -147
- package/src/lib/stories/components/Form/DatePicker/FilterDates/FilterDates.stories.svelte +0 -61
- package/src/lib/stories/components/Form/DatePicker/Positions/AutoPosition/AutoPosition.stories.svelte +0 -46
- package/src/lib/stories/components/Form/DatePicker/Positions/Positions.stories.svelte +0 -57
- package/src/lib/stories/components/Form/DatePicker/Roundness/Roundness.stories.svelte +0 -38
- package/src/lib/stories/components/Form/DatePicker/Size/Size.stories.svelte +0 -41
- package/src/lib/stories/components/Form/DatePicker/WithIcon/WithIcon.stories.svelte +0 -41
- package/src/lib/stories/components/Form/FormControl/FormControl.stories.svelte +0 -28
- package/src/lib/stories/components/Form/Label/Label.stories.svelte +0 -13
- package/src/lib/stories/components/Form/Message/Color/Color.stories.svelte +0 -36
- package/src/lib/stories/components/Form/Message/Message.stories.svelte +0 -27
- package/src/lib/stories/components/Form/Message/Size/Size.stories.svelte +0 -22
- package/src/lib/stories/components/Form/NumericInput/Events/Events.stories.svelte +0 -134
- package/src/lib/stories/components/Form/NumericInput/NumericInput.stories.svelte +0 -84
- package/src/lib/stories/components/Form/NumericInput/Validation/Validation.stories.svelte +0 -87
- package/src/lib/stories/components/Form/NumericInput/WithIcon/WithIcon.stories.svelte +0 -31
- package/src/lib/stories/components/Form/PasswordInput/Events/Events.stories.svelte +0 -132
- package/src/lib/stories/components/Form/PasswordInput/PasswordInput.stories.svelte +0 -58
- package/src/lib/stories/components/Form/PasswordInput/Size/Size.stories.svelte +0 -16
- package/src/lib/stories/components/Form/PasswordInput/WithIcon/WithIcon.stories.svelte +0 -31
- package/src/lib/stories/components/Form/RangeSlider/Events/Events.stories.svelte +0 -63
- package/src/lib/stories/components/Form/RangeSlider/RangeSlider.stories.svelte +0 -69
- package/src/lib/stories/components/Form/RangeSlider/Roundness/Roundness.stories.svelte +0 -30
- package/src/lib/stories/components/Form/RangeSlider/WithIcon/WithIcon.stories.svelte +0 -33
- package/src/lib/stories/components/Form/Select/Customize/Customize.stories.svelte +0 -139
- package/src/lib/stories/components/Form/Select/DropDownArrow/DropDownArrow.stories.svelte +0 -63
- package/src/lib/stories/components/Form/Select/Events/Events.stories.svelte +0 -174
- package/src/lib/stories/components/Form/Select/Options/OptionFormat.mdx +0 -40
- package/src/lib/stories/components/Form/Select/Positions/AutoPosition/AutoPosition.stories.svelte +0 -58
- package/src/lib/stories/components/Form/Select/Positions/Positions.stories.svelte +0 -87
- package/src/lib/stories/components/Form/Select/Roundness/Roundness.stories.svelte +0 -32
- package/src/lib/stories/components/Form/Select/Select.stories.svelte +0 -125
- package/src/lib/stories/components/Form/Select/Size/Size.stories.svelte +0 -28
- package/src/lib/stories/components/Form/Select/WithIcon/WithIcon.stories.svelte +0 -43
- package/src/lib/stories/components/Form/TextInput/Events/Events.stories.svelte +0 -125
- package/src/lib/stories/components/Form/TextInput/Roundness/Roundness.stories.svelte +0 -21
- package/src/lib/stories/components/Form/TextInput/Size/Size.stories.svelte +0 -17
- package/src/lib/stories/components/Form/TextInput/TextInput.stories.svelte +0 -43
- package/src/lib/stories/components/Form/TextInput/WithIcon/WithIcon.stories.svelte +0 -47
- package/src/lib/stories/components/Info/Calendar/Calendar.stories.svelte +0 -121
- package/src/lib/stories/components/Info/Calendar/Color/Color.stories.svelte +0 -23
- package/src/lib/stories/components/Info/Calendar/Controls/Controls.stories.svelte +0 -26
- package/src/lib/stories/components/Info/Calendar/Customize/Customize.stories.svelte +0 -160
- package/src/lib/stories/components/Info/Calendar/Events/Events.stories.svelte +0 -122
- package/src/lib/stories/components/Info/Calendar/FilterDates/FilterDates.stories.svelte +0 -70
- package/src/lib/stories/components/Info/Calendar/Size/Size.stories.svelte +0 -20
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarControls.stories.svelte +0 -36
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/CalendarMonthSelector.stories.svelte +0 -58
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Color/Color.stories.svelte +0 -23
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Customize/Customize.stories.svelte +0 -30
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Events/Events.stories.svelte +0 -25
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/NameTypes/NameTypes.stories.svelte +0 -25
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Roundness/Roundness.stories.svelte +0 -26
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarMonthSelector/Size/Size.stories.svelte +0 -20
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/CalendarNavigation.stories.svelte +0 -36
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Customize/Customize.stories.svelte +0 -33
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Events/Events.stories.svelte +0 -37
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarNavigation/Size/Size.stories.svelte +0 -16
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/CalendarYearSelector.stories.svelte +0 -58
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Color/Color.stories.svelte +0 -23
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Customize/Customize.stories.svelte +0 -30
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Events/Events.stories.svelte +0 -25
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Roundness/Roundness.stories.svelte +0 -26
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/CalendarYearSelector/Size/Size.stories.svelte +0 -20
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/Color/Color.stories.svelte +0 -23
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/Controls/Controls.stories.svelte +0 -21
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/Customize/Customize.stories.svelte +0 -69
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/Events/Events.stories.svelte +0 -61
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarControls/Size/Size.stories.svelte +0 -20
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/CalendarDateChip.stories.svelte +0 -75
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Color/Color.stories.svelte +0 -41
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Customize/Customize.stories.svelte +0 -45
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Events/Events.stories.svelte +0 -28
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Roundness/Roundness.stories.svelte +0 -31
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/Size/Size.stories.svelte +0 -24
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDateChip/SpecialChips/SpecialChips.stories.svelte +0 -96
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarDatesChart.stories.svelte +0 -104
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/CalendarWeek.stories.svelte +0 -38
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/Customize/Customize.stories.svelte +0 -32
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek/NameTypes/NameTypes.stories.svelte +0 -28
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Color/Color.stories.svelte +0 -23
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Customize/Customize.stories.svelte +0 -68
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Events/Events.stories.svelte +0 -24
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/Size/Size.stories.svelte +0 -20
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/CalendarMonthChip.stories.svelte +0 -40
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Color/Color.stories.svelte +0 -29
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Customize/Customize.stories.svelte +0 -33
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Events/Events.stories.svelte +0 -23
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Roundness/Roundness.stories.svelte +0 -26
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthChip/Size/Size.stories.svelte +0 -19
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/CalendarMonthList.stories.svelte +0 -45
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Customize/Customize.stories.svelte +0 -36
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Events/Events.stories.svelte +0 -33
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList/Size/Size.stories.svelte +0 -19
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/CalendarYearChip.stories.svelte +0 -41
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Color/Color.stories.svelte +0 -30
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Customize/Customize.stories.svelte +0 -33
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Events/Events.stories.svelte +0 -24
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Roundness/Roundness.stories.svelte +0 -27
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearChip/Size/Size.stories.svelte +0 -20
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/CalendarYearList.stories.svelte +0 -39
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/Color/Color.stories.svelte +0 -23
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/Customize/Customize.stories.svelte +0 -36
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/Events/Events.stories.svelte +0 -24
- package/src/lib/stories/components/Info/Calendar/SubComponents/CalendarYearList/Size/Size.stories.svelte +0 -20
- package/src/lib/stories/components/Info/Calendar/utils/createDateOfMonth/index.mdx +0 -121
- package/src/lib/stories/components/Info/Calendar/utils/getDatesOfMonth/index.mdx +0 -37
- package/src/lib/stories/components/Layout/Menu/DynamicMenu/Customize/Customize.stories.svelte +0 -30
- package/src/lib/stories/components/Layout/Menu/DynamicMenu/DynamicMenu.stories.svelte +0 -56
- package/src/lib/stories/components/Layout/Menu/DynamicMenu/Events/Events.stories.svelte +0 -48
- package/src/lib/stories/components/Layout/Menu/DynamicMenu/KeybaordNavigation/KeybaordNavigation.stories.svelte +0 -29
- package/src/lib/stories/components/Layout/Menu/DynamicMenu/Options/OptionFormat.mdx +0 -72
- package/src/lib/stories/components/Layout/Menu/Menu.stories.svelte +0 -69
- package/src/lib/stories/components/Layout/Menu/MenuItem/MenuItem.stories.svelte +0 -34
- package/src/lib/stories/components/Layout/Menu/MenuItem/Size/Size.stories.svelte +0 -16
- package/src/lib/stories/components/Layout/Menu/MenuItem/Type/Type.stories.svelte +0 -21
- package/src/lib/stories/components/Layout/Menu/Size/Size.stories.svelte +0 -37
- package/src/lib/stories/components/Layout/Paper/Color/Color.stories.svelte +0 -63
- package/src/lib/stories/components/Layout/Paper/Paper.stories.svelte +0 -50
- package/src/lib/stories/components/Layout/Paper/Roundness/Roundness.stories.svelte +0 -25
- package/src/lib/stories/components/Layout/Paper/Shadow/Shadow.stories.svelte +0 -24
- package/src/lib/stories/components/Layout/Separator/Color/Color.stories.svelte +0 -19
- package/src/lib/stories/components/Layout/Separator/Separator.stories.svelte +0 -30
- package/src/lib/stories/developer tools/Intro.mdx +0 -9
- package/src/lib/stories/developer tools/components/DynamicInput/DynamicInput.stories.svelte +0 -53
- package/src/lib/stories/developer tools/components/DynamicInput/Events/Events.stories.svelte +0 -121
- package/src/lib/stories/developer tools/components/DynamicInput/Size/Size.stories.svelte +0 -17
- package/src/lib/stories/developer tools/components/InputEnclosure/InputEnclosure.stories.svelte +0 -38
- package/src/lib/stories/developer tools/components/InputEnclosure/Size/Size.stories.svelte +0 -16
- package/src/lib/stories/developer tools/components/InputEnclosure/WithIcon/WithIcon.stories.svelte +0 -47
- package/src/lib/stories/developer tools/components/Popper/Popper.stories.svelte +0 -140
- package/src/lib/stories/developer tools/components/Popper/PopperPopup/PopperPopup.stories.svelte +0 -64
- package/src/lib/stories/developer tools/components/Popper/Positions/AutoPosition/AutoPosition.stories.svelte +0 -92
- package/src/lib/stories/developer tools/components/Popper/Positions/Positions.stories.svelte +0 -114
- package/src/lib/stories/developer tools/components/UtilityButton/Size/Size.stories.svelte +0 -25
- package/src/lib/stories/developer tools/components/UtilityButton/UtilityButton.stories.svelte +0 -30
- package/src/lib/stories/developer tools/directives/clickOutside/index.mdx +0 -25
- package/src/lib/stories/developer tools/helpers/Numbers/cleanNumericString/index.mdx +0 -20
- package/src/lib/stories/developer tools/helpers/Numbers/isValidNumberValue/index.mdx +0 -71
- package/src/lib/stories/developer tools/helpers/Time/getMoment/index.mdx +0 -45
- package/src/lib/stories/developer tools/helpers/logger/index.mdx +0 -63
- package/src/lib/stories/developer tools/philosophy/Colors/Colors.mdx +0 -43
- package/src/lib/stories/developer tools/philosophy/Colors/Colors.stories.svelte +0 -22
- package/src/lib/stories/developer tools/philosophy/Colors/Opacity.stories.svelte +0 -11
- package/src/lib/stories/developer tools/philosophy/Themes.mdx +0 -23
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const Customize: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type Customize = InstanceType<typeof Customize>;
|
|
18
|
+
export default Customize;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script module lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
2
|
+
import Checkbox from '../Checkbox.svelte';
|
|
3
|
+
import { storyCheckboxArgTypes } from '../Checkbox.stories.svelte';
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
5
|
+
const { Story } = defineMeta({
|
|
6
|
+
component: Checkbox,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: storyCheckboxArgTypes,
|
|
9
|
+
});
|
|
10
|
+
let checked = $state(false);
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<Story
|
|
14
|
+
name="Change"
|
|
15
|
+
args={{
|
|
16
|
+
onchange: (e: Event) => {
|
|
17
|
+
const target = e.target as HTMLInputElement;
|
|
18
|
+
|
|
19
|
+
alert('onchange Clicked');
|
|
20
|
+
console.log('Checkbox Clicked', target);
|
|
21
|
+
},
|
|
22
|
+
checked,
|
|
23
|
+
}}
|
|
24
|
+
asChild
|
|
25
|
+
>
|
|
26
|
+
<Checkbox
|
|
27
|
+
onchange={(e: Event) => {
|
|
28
|
+
const target = e.target as HTMLInputElement;
|
|
29
|
+
|
|
30
|
+
alert('onchange Clicked');
|
|
31
|
+
console.log('onchange Clicked', target);
|
|
32
|
+
}}
|
|
33
|
+
{checked}
|
|
34
|
+
/>
|
|
35
|
+
</Story>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const Events: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type Events = InstanceType<typeof Events>;
|
|
18
|
+
export default Events;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script module>
|
|
2
2
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import Checkbox from '../Checkbox.svelte';
|
|
4
|
+
import { storyCheckboxArgTypes } from '../Checkbox.stories.svelte';
|
|
5
5
|
|
|
6
6
|
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
7
|
const { Story } = defineMeta({
|
|
8
|
-
component:
|
|
8
|
+
component: Checkbox,
|
|
9
9
|
tags: ['autodocs'],
|
|
10
|
-
argTypes:
|
|
10
|
+
argTypes: storyCheckboxArgTypes,
|
|
11
11
|
});
|
|
12
12
|
</script>
|
|
13
13
|
|
|
@@ -18,3 +18,5 @@
|
|
|
18
18
|
<Story name="Roundness 3" args={{ roundness: 3 }} />
|
|
19
19
|
|
|
20
20
|
<Story name="Roundness 0" args={{ roundness: 0 }} />
|
|
21
|
+
|
|
22
|
+
<Story name="Roundness full" args={{ roundness: 'full' }} />
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Roundness;
|
|
2
|
+
type Roundness = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Roundness: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script module>
|
|
2
2
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import Checkbox from '../Checkbox.svelte';
|
|
4
|
+
import { storyCheckboxArgTypes } from '../Checkbox.stories.svelte';
|
|
5
5
|
|
|
6
6
|
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
7
|
const { Story } = defineMeta({
|
|
8
|
-
component:
|
|
8
|
+
component: Checkbox,
|
|
9
9
|
tags: ['autodocs'],
|
|
10
|
-
argTypes:
|
|
10
|
+
argTypes: storyCheckboxArgTypes,
|
|
11
11
|
});
|
|
12
12
|
</script>
|
|
13
13
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Size;
|
|
2
|
+
type Size = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Size: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/// Mixin: generate-dodo-ui-checkbox-colors
|
|
2
|
+
/// Generates CSS custom properties for Dodo UI checkbox styles (text & solid)
|
|
3
|
+
/// across different interaction states (default, hover, active).
|
|
4
|
+
/// @param {String} $color-name - The theme color name (e.g., "primary", "safe", etc.)
|
|
5
|
+
@mixin generate-dodo-ui-checkbox-colors($color-name) {
|
|
6
|
+
--dodo-ui-Checkbox-#{$color-name}-bg: var(--dodo-color-#{$color-name}-200);
|
|
7
|
+
--dodo-ui-Checkbox-#{$color-name}-hover-bg: var(--dodo-color-#{$color-name}-300);
|
|
8
|
+
--dodo-ui-Checkbox-#{$color-name}-active-bg: var(--dodo-color-#{$color-name}-400);
|
|
9
|
+
|
|
10
|
+
--dodo-ui-Checkbox-#{$color-name}-checked-bg: var(--dodo-color-#{$color-name}-500);
|
|
11
|
+
--dodo-ui-Checkbox-#{$color-name}-checked-hover-bg: var(--dodo-color-#{$color-name}-600);
|
|
12
|
+
--dodo-ui-Checkbox-#{$color-name}-checked-active-bg: var(--dodo-color-#{$color-name}-700);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/// Mixin: generate-dodo-ui-checkbox-colors
|
|
16
|
+
/// Generates CSS custom properties for Dodo UI checkbox styles (text & solid)
|
|
17
|
+
/// across different interaction states (default, hover, active).
|
|
18
|
+
/// @param {String} $color-name - The theme color name (e.g., "primary", "safe", etc.)
|
|
19
|
+
@mixin generate-dodo-ui-checkbox-colors-dark($color-name) {
|
|
20
|
+
--dodo-ui-Checkbox-#{$color-name}-bg: color-mix(
|
|
21
|
+
in oklab,
|
|
22
|
+
var(--dodo-color-#{$color-name}-50) 90%,
|
|
23
|
+
#fff
|
|
24
|
+
);
|
|
25
|
+
--dodo-ui-Checkbox-#{$color-name}-hover-bg: color-mix(
|
|
26
|
+
in oklab,
|
|
27
|
+
var(--dodo-color-#{$color-name}-100) 90%,
|
|
28
|
+
#fff
|
|
29
|
+
);
|
|
30
|
+
--dodo-ui-Checkbox-#{$color-name}-active-bg: color-mix(
|
|
31
|
+
in oklab,
|
|
32
|
+
var(--dodo-color-#{$color-name}-200) 90%,
|
|
33
|
+
#fff
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
--dodo-ui-Checkbox-#{$color-name}-checked-bg: var(--dodo-color-#{$color-name}-400);
|
|
37
|
+
--dodo-ui-Checkbox-#{$color-name}-checked-hover-bg: var(--dodo-color-#{$color-name}-300);
|
|
38
|
+
--dodo-ui-Checkbox-#{$color-name}-checked-active-bg: var(--dodo-color-#{$color-name}-200);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/// Mixin: generate-dodo-ui-checkbox-color
|
|
42
|
+
/// @param {String} $theme - e.g., default, safe, danger, etc.
|
|
43
|
+
@mixin generate-dodo-ui-checkbox-color($theme) {
|
|
44
|
+
&--#{$theme} {
|
|
45
|
+
.Checkbox {
|
|
46
|
+
background-color: var(--dodo-ui-Checkbox-#{$theme}-bg);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
input:checked:not([disabled]) {
|
|
50
|
+
& + .Checkbox {
|
|
51
|
+
background-color: var(--dodo-ui-Checkbox-#{$theme}-checked-bg);
|
|
52
|
+
border-color: transparent;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
.Checkbox {
|
|
58
|
+
background-color: var(--dodo-ui-Checkbox-#{$theme}-hover-bg);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
input:checked:not([disabled]) {
|
|
62
|
+
& + .Checkbox {
|
|
63
|
+
background-color: var(--dodo-ui-Checkbox-#{$theme}-checked-hover-bg);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:active {
|
|
69
|
+
.Checkbox {
|
|
70
|
+
background-color: var(--dodo-ui-Checkbox-#{$theme}-active-bg);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
input:checked:not([disabled]) {
|
|
74
|
+
& + .Checkbox {
|
|
75
|
+
background-color: var(--dodo-ui-Checkbox-#{$theme}-checked-active-bg);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
<script module>
|
|
2
2
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import Radio from '../Radio.svelte';
|
|
4
|
+
import { storyRadioArgTypes } from '../Radio.stories.svelte';
|
|
5
5
|
|
|
6
6
|
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
7
|
const { Story } = defineMeta({
|
|
8
|
-
component:
|
|
8
|
+
component: Radio,
|
|
9
9
|
tags: ['autodocs'],
|
|
10
|
-
argTypes:
|
|
11
|
-
args: {
|
|
12
|
-
value: 'jan',
|
|
13
|
-
},
|
|
10
|
+
argTypes: storyRadioArgTypes,
|
|
14
11
|
});
|
|
15
12
|
</script>
|
|
16
13
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Color;
|
|
2
|
+
type Color = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Color: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script module lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
2
|
+
import Radio from '../Radio.svelte';
|
|
3
|
+
import { storyRadioArgTypes } from '../Radio.stories.svelte';
|
|
4
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
5
|
+
const { Story } = defineMeta({
|
|
6
|
+
component: Radio,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: storyRadioArgTypes,
|
|
9
|
+
});
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<Story
|
|
13
|
+
name="Change"
|
|
14
|
+
args={{
|
|
15
|
+
onchange: (e: Event) => {
|
|
16
|
+
const target = e.target as HTMLInputElement;
|
|
17
|
+
|
|
18
|
+
alert('onchange Clicked');
|
|
19
|
+
console.log('Radio Clicked', target);
|
|
20
|
+
},
|
|
21
|
+
}}
|
|
22
|
+
asChild
|
|
23
|
+
>
|
|
24
|
+
<Radio
|
|
25
|
+
onchange={(e: Event) => {
|
|
26
|
+
const target = e.target as HTMLInputElement;
|
|
27
|
+
|
|
28
|
+
alert('onchange Clicked');
|
|
29
|
+
console.log('onchange Clicked', target);
|
|
30
|
+
}}
|
|
31
|
+
/>
|
|
32
|
+
</Story>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const Events: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type Events = InstanceType<typeof Events>;
|
|
18
|
+
export default Events;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<script module lang="ts">import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
2
|
+
import Radio from './Radio.svelte';
|
|
3
|
+
import { componentRoundnessArray } from '../../../../types/roundness.js';
|
|
4
|
+
import { componentColorArray } from '../../../../types/colors.js';
|
|
5
|
+
import { componentSizeArray } from '../../../../types/size.js';
|
|
6
|
+
export const storyRadioArgTypes = {
|
|
7
|
+
color: {
|
|
8
|
+
control: { type: 'select' },
|
|
9
|
+
options: componentColorArray,
|
|
10
|
+
},
|
|
11
|
+
roundness: {
|
|
12
|
+
control: { type: 'select' },
|
|
13
|
+
options: componentRoundnessArray,
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
control: { type: 'select' },
|
|
17
|
+
options: componentSizeArray,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
21
|
+
const { Story } = defineMeta({
|
|
22
|
+
component: Radio,
|
|
23
|
+
tags: ['autodocs'],
|
|
24
|
+
argTypes: storyRadioArgTypes,
|
|
25
|
+
args: {
|
|
26
|
+
value: 'Car1',
|
|
27
|
+
name: 'radios',
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<!-- Radio with default style -->
|
|
33
|
+
<Story name="Primary" />
|
|
34
|
+
|
|
35
|
+
<Story name="WithText">This is Radio</Story>
|
|
36
|
+
|
|
37
|
+
<Story name="Selected" args={{ selectedValue: 'Car1' }} />
|
|
38
|
+
|
|
39
|
+
<Story name="Disabled" args={{ disabled: true }} />
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Radio from './Radio.svelte';
|
|
2
|
+
import type { StoryBookArgTypes } from '../../../../storybook-types.js';
|
|
3
|
+
export declare const storyRadioArgTypes: 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 Radio: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
}, {}, {}, string>;
|
|
20
|
+
type Radio = InstanceType<typeof Radio>;
|
|
21
|
+
export default Radio;
|