@flightlesslabs/dodo-ui 0.11.1 → 0.12.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 +3 -0
- package/dist/index.js +2 -0
- package/dist/stories/components/Form/Button/Button.svelte +18 -18
- package/dist/stories/components/Form/Button/utils/scss/mixins.scss +3 -3
- package/{src/lib/stories/components/Form/PasswordInput → dist/stories/components/Form/NumericInput}/Roundness/Roundness.stories.svelte +4 -4
- package/dist/stories/components/Form/NumericInput/Roundness/Roundness.stories.svelte.d.ts +26 -0
- package/{src/lib/stories/components/Info/Calendar/SubComponents/CalendarDatesChart/CalendarWeek → dist/stories/components/Form/NumericInput}/Size/Size.stories.svelte +4 -4
- package/dist/stories/components/Form/NumericInput/Size/Size.stories.svelte.d.ts +26 -0
- package/{src/lib/stories/components/Form/PasswordInput → dist/stories/components/Form/NumericInput}/WithIcon/WithIcon.stories.svelte +10 -10
- package/dist/stories/components/Form/NumericInput/WithIcon/WithIcon.stories.svelte.d.ts +26 -0
- package/{src/lib/stories/components/Info/Calendar/SubComponents/CalendarMonthList → dist/stories/components/Form/RangeSlider}/Color/Color.stories.svelte +4 -7
- package/dist/stories/components/Form/RangeSlider/Color/Color.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Form/RangeSlider/Events/Events.stories.svelte +59 -0
- package/dist/stories/components/Form/RangeSlider/Events/Events.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/RangeSlider/RangeSlider.stories.svelte +64 -0
- package/dist/stories/components/Form/RangeSlider/RangeSlider.stories.svelte.d.ts +21 -0
- package/dist/stories/components/Form/RangeSlider/RangeSlider.svelte +525 -0
- package/dist/stories/components/Form/RangeSlider/RangeSlider.svelte.d.ts +48 -0
- package/dist/stories/components/Form/RangeSlider/Roundness/Roundness.stories.svelte +30 -0
- package/dist/stories/components/Form/RangeSlider/Roundness/Roundness.stories.svelte.d.ts +26 -0
- package/{src/lib/stories/components/Form/PasswordInput → dist/stories/components/Form/RangeSlider}/Size/Size.stories.svelte +4 -4
- package/dist/stories/components/Form/RangeSlider/Size/Size.stories.svelte.d.ts +26 -0
- package/dist/stories/components/Form/RangeSlider/WithIcon/WithIcon.stories.svelte +30 -0
- package/dist/stories/components/Form/RangeSlider/WithIcon/WithIcon.stories.svelte.d.ts +18 -0
- package/dist/stories/components/Form/RangeSlider/utils/scss/mixins.scss +91 -0
- package/dist/stories/developer tools/directives/drag/drag.d.ts +3 -0
- package/dist/stories/developer tools/directives/drag/drag.js +40 -0
- package/dist/styles/_components.css +5 -0
- package/package.json +23 -21
- package/src/lib/index.ts +4 -0
- package/src/lib/stories/components/Form/Button/utils/scss/mixins.scss +3 -3
- package/src/lib/stories/components/Form/RangeSlider/RangeSlider.svelte +476 -0
- package/src/lib/stories/components/Form/RangeSlider/utils/scss/mixins.scss +91 -0
- package/src/lib/stories/developer tools/directives/drag/drag.ts +47 -0
- package/src/lib/styles/_components.css +5 -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/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/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/Color/Color.stories.svelte +0 -19
- 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/Roundness/Roundness.stories.svelte +0 -20
- 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
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import MenuItem from '../MenuItem.svelte';
|
|
4
|
-
import { storyMenuItemArgTypes } from '../MenuItem.stories.svelte';
|
|
5
|
-
|
|
6
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
|
-
const { Story } = defineMeta({
|
|
8
|
-
component: MenuItem,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
argTypes: storyMenuItemArgTypes,
|
|
11
|
-
});
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<Story name="Text">Menu Item</Story>
|
|
15
|
-
<Story
|
|
16
|
-
name="Link"
|
|
17
|
-
args={{ type: 'link', href: 'https://www.w3schools.com/tags/tag_a.asp', target: '_blank' }}
|
|
18
|
-
>
|
|
19
|
-
Menu Item
|
|
20
|
-
</Story>
|
|
21
|
-
<Story name="Button" args={{ type: 'button', onclick: () => {} }}>Menu Item</Story>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import Menu from '../Menu.svelte';
|
|
4
|
-
import { storyMenuArgTypes } from '../Menu.stories.svelte';
|
|
5
|
-
import MenuItem from '../MenuItem/MenuItem.svelte';
|
|
6
|
-
|
|
7
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
8
|
-
const { Story } = defineMeta({
|
|
9
|
-
component: Menu,
|
|
10
|
-
tags: ['autodocs'],
|
|
11
|
-
argTypes: storyMenuArgTypes,
|
|
12
|
-
});
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<Story name="Normal" asChild>
|
|
16
|
-
<Menu>
|
|
17
|
-
<MenuItem>Cut</MenuItem>
|
|
18
|
-
<MenuItem>Copy</MenuItem>
|
|
19
|
-
<MenuItem>Paste</MenuItem>
|
|
20
|
-
</Menu>
|
|
21
|
-
</Story>
|
|
22
|
-
|
|
23
|
-
<Story name="Small" asChild>
|
|
24
|
-
<Menu size="small">
|
|
25
|
-
<MenuItem>Cut</MenuItem>
|
|
26
|
-
<MenuItem>Copy</MenuItem>
|
|
27
|
-
<MenuItem>Paste</MenuItem>
|
|
28
|
-
</Menu>
|
|
29
|
-
</Story>
|
|
30
|
-
|
|
31
|
-
<Story name="Large" asChild>
|
|
32
|
-
<Menu size="large">
|
|
33
|
-
<MenuItem>Cut</MenuItem>
|
|
34
|
-
<MenuItem>Copy</MenuItem>
|
|
35
|
-
<MenuItem>Paste</MenuItem>
|
|
36
|
-
</Menu>
|
|
37
|
-
</Story>
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import { storyPaperArgTypes } from '../Paper.stories.svelte';
|
|
4
|
-
import Paper from '../Paper.svelte';
|
|
5
|
-
|
|
6
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
|
-
const { Story } = defineMeta({
|
|
8
|
-
component: Paper,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
argTypes: storyPaperArgTypes,
|
|
11
|
-
});
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<Story name="Default" args={{ height: '100px' }}>Hola!</Story>
|
|
15
|
-
|
|
16
|
-
<Story name="Primary" args={{ color: 'primary', height: '100px' }}>Hola!</Story>
|
|
17
|
-
<Story name="Secondary" args={{ color: 'secondary', height: '100px' }}>Hola!</Story>
|
|
18
|
-
<Story name="Neutral" args={{ color: 'neutral', height: '100px' }}>Hola!</Story>
|
|
19
|
-
<Story name="Safe" args={{ color: 'safe', height: '100px' }}>Hola!</Story>
|
|
20
|
-
<Story name="Warning" args={{ color: 'warning', height: '100px' }}>Hola!</Story>
|
|
21
|
-
<Story name="Danger" args={{ color: 'danger', height: '100px' }}>Hola!</Story>
|
|
22
|
-
|
|
23
|
-
<Story name="Default Outline" args={{ outline: true, height: '100px' }}>Hola!</Story>
|
|
24
|
-
<Story name="Primary Outline" args={{ color: 'primary', outline: true, height: '100px' }}>
|
|
25
|
-
Hola!
|
|
26
|
-
</Story>
|
|
27
|
-
<Story name="Secondary Outline" args={{ color: 'secondary', outline: true, height: '100px' }}>
|
|
28
|
-
Hola!
|
|
29
|
-
</Story>
|
|
30
|
-
<Story name="Neutral Outline" args={{ color: 'neutral', outline: true, height: '100px' }}>
|
|
31
|
-
Hola!
|
|
32
|
-
</Story>
|
|
33
|
-
<Story name="Safe Outline" args={{ color: 'safe', outline: true, height: '100px' }}>Hola!</Story>
|
|
34
|
-
<Story name="Warning Outline" args={{ color: 'warning', outline: true, height: '100px' }}>
|
|
35
|
-
Hola!
|
|
36
|
-
</Story>
|
|
37
|
-
<Story name="Danger Outline" args={{ color: 'danger', outline: true, height: '100px' }}>Hola!</Story
|
|
38
|
-
>
|
|
39
|
-
|
|
40
|
-
<Story name="Primary Solid" args={{ color: 'primary', variant: 'solid', height: '100px' }}>
|
|
41
|
-
Hola!
|
|
42
|
-
</Story>
|
|
43
|
-
<Story name="Secondary Solid" args={{ color: 'secondary', variant: 'solid', height: '100px' }}>
|
|
44
|
-
Hola!
|
|
45
|
-
</Story>
|
|
46
|
-
<Story name="Neutral Solid" args={{ color: 'neutral', variant: 'solid', height: '100px' }}>
|
|
47
|
-
Hola!
|
|
48
|
-
</Story>
|
|
49
|
-
<Story name="Safe Solid" args={{ color: 'safe', variant: 'solid', height: '100px' }}>Hola!</Story>
|
|
50
|
-
<Story name="Warning Solid" args={{ color: 'warning', variant: 'solid', height: '100px' }}>
|
|
51
|
-
Hola!
|
|
52
|
-
</Story>
|
|
53
|
-
<Story name="Danger Solid" args={{ color: 'danger', variant: 'solid', height: '100px' }}>
|
|
54
|
-
Hola!
|
|
55
|
-
</Story>
|
|
56
|
-
|
|
57
|
-
<!-- Paper with Custom Background and Border colors -->
|
|
58
|
-
<Story
|
|
59
|
-
name="Custom Color"
|
|
60
|
-
args={{ height: '100px', customBackgroundColor: '#ffdfad', customBorderColor: '#fbc674' }}
|
|
61
|
-
>
|
|
62
|
-
Hola!
|
|
63
|
-
</Story>
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<script module lang="ts">
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import Paper, { paperColorArray } from './Paper.svelte';
|
|
4
|
-
import type { StoryBookArgTypes } from '$lib/storybook-types.js';
|
|
5
|
-
import { componentRoundnessArray } from '$lib/types/roundness.js';
|
|
6
|
-
import { componentShadowArray } from '$lib/types/shadow.js';
|
|
7
|
-
import { componentWeightArray } from '$lib/types/weight.js';
|
|
8
|
-
|
|
9
|
-
export const storyPaperArgTypes: StoryBookArgTypes = {
|
|
10
|
-
color: {
|
|
11
|
-
control: { type: 'select' },
|
|
12
|
-
options: paperColorArray,
|
|
13
|
-
},
|
|
14
|
-
variant: {
|
|
15
|
-
control: { type: 'select' },
|
|
16
|
-
options: componentWeightArray,
|
|
17
|
-
},
|
|
18
|
-
roundness: {
|
|
19
|
-
control: { type: 'select' },
|
|
20
|
-
options: componentRoundnessArray,
|
|
21
|
-
},
|
|
22
|
-
shadow: {
|
|
23
|
-
control: { type: 'select' },
|
|
24
|
-
options: componentShadowArray,
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
29
|
-
const { Story } = defineMeta({
|
|
30
|
-
component: Paper,
|
|
31
|
-
tags: ['autodocs'],
|
|
32
|
-
argTypes: storyPaperArgTypes,
|
|
33
|
-
});
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<!-- Paper with default style -->
|
|
37
|
-
<Story name="Default">Hola!</Story>
|
|
38
|
-
|
|
39
|
-
<!-- Paper with width and height -->
|
|
40
|
-
<Story name="WidthAndHeight" args={{ width: '200px', height: '200px', color: 'primary' }}>
|
|
41
|
-
Hola!
|
|
42
|
-
</Story>
|
|
43
|
-
|
|
44
|
-
<!-- Paper with Custom Background and Border colors -->
|
|
45
|
-
<Story
|
|
46
|
-
name="Custom Color"
|
|
47
|
-
args={{ height: '100px', customBackgroundColor: '#ffdfad', customBorderColor: '#fbc674' }}
|
|
48
|
-
>
|
|
49
|
-
Hola!
|
|
50
|
-
</Story>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import Paper from '../Paper.svelte';
|
|
4
|
-
import { storyPaperArgTypes } from '../Paper.stories.svelte';
|
|
5
|
-
|
|
6
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
|
-
const { Story } = defineMeta({
|
|
8
|
-
component: Paper,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
argTypes: storyPaperArgTypes,
|
|
11
|
-
});
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<Story name="Roundness 1" args={{ height: '100px', color: 'primary' }}></Story>
|
|
15
|
-
|
|
16
|
-
<Story name="Roundness 2" args={{ roundness: 2, height: '100px', color: 'primary' }}></Story>
|
|
17
|
-
|
|
18
|
-
<Story name="Roundness 3" args={{ roundness: 3, height: '100px', color: 'primary' }}></Story>
|
|
19
|
-
|
|
20
|
-
<Story name="Roundness 0" args={{ roundness: 0, height: '100px', color: 'primary' }}></Story>
|
|
21
|
-
|
|
22
|
-
<Story
|
|
23
|
-
name="Roundness Full"
|
|
24
|
-
args={{ roundness: 'full', height: '100px', width: '100%', color: 'primary' }}
|
|
25
|
-
></Story>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import Paper from '../Paper.svelte';
|
|
4
|
-
import { storyPaperArgTypes } from '../Paper.stories.svelte';
|
|
5
|
-
|
|
6
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
|
-
const { Story } = defineMeta({
|
|
8
|
-
component: Paper,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
argTypes: storyPaperArgTypes,
|
|
11
|
-
});
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<Story name="Shadow 0" args={{ height: '100px' }}>Hola!</Story>
|
|
15
|
-
|
|
16
|
-
<Story name="Shadow 1" args={{ shadow: 1, height: '100px' }}>Hola!</Story>
|
|
17
|
-
|
|
18
|
-
<Story name="Shadow 2" args={{ shadow: 2, height: '100px' }}>Hola!</Story>
|
|
19
|
-
|
|
20
|
-
<Story name="Shadow 3" args={{ shadow: 3, height: '100px' }}>Hola!</Story>
|
|
21
|
-
|
|
22
|
-
<Story name="Shadow 4" args={{ shadow: 4, height: '100px' }}>Hola!</Story>
|
|
23
|
-
|
|
24
|
-
<Story name="Shadow 5" args={{ shadow: 5, height: '100px' }}>Hola!</Story>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import { storySeparatorArgTypes } from '../Separator.stories.svelte';
|
|
4
|
-
import Separator from '../Separator.svelte';
|
|
5
|
-
|
|
6
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
|
-
const { Story } = defineMeta({
|
|
8
|
-
component: Separator,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
argTypes: storySeparatorArgTypes,
|
|
11
|
-
});
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<Story name="Neutral">Hola!</Story>
|
|
15
|
-
<Story name="Primary" args={{ color: 'primary' }}>Hola!</Story>
|
|
16
|
-
<Story name="Secondary" args={{ color: 'secondary' }}>Hola!</Story>
|
|
17
|
-
<Story name="Safe" args={{ color: 'safe' }}>Hola!</Story>
|
|
18
|
-
<Story name="Warning" args={{ color: 'warning' }}>Hola!</Story>
|
|
19
|
-
<Story name="Danger" args={{ color: 'danger' }}>Hola!</Story>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<script module lang="ts">
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import Separator, { separatorOrientationArray } from './Separator.svelte';
|
|
4
|
-
import type { StoryBookArgTypes } from '$lib/storybook-types.js';
|
|
5
|
-
import { componentColorArray } from '$lib/types/colors.js';
|
|
6
|
-
|
|
7
|
-
export const storySeparatorArgTypes: StoryBookArgTypes = {
|
|
8
|
-
color: {
|
|
9
|
-
control: { type: 'select' },
|
|
10
|
-
options: componentColorArray,
|
|
11
|
-
},
|
|
12
|
-
orientation: {
|
|
13
|
-
control: { type: 'select' },
|
|
14
|
-
options: separatorOrientationArray,
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
19
|
-
const { Story } = defineMeta({
|
|
20
|
-
component: Separator,
|
|
21
|
-
tags: ['autodocs'],
|
|
22
|
-
argTypes: storySeparatorArgTypes,
|
|
23
|
-
});
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<Story name="Default" />
|
|
27
|
-
|
|
28
|
-
<Story name="FixedWidth" args={{ width: '200px' }} />
|
|
29
|
-
|
|
30
|
-
<Story name="VerticalOrientation" args={{ orientation: 'vertical', height: '200px' }} />
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Developer Tools
|
|
2
|
-
|
|
3
|
-
A set of components and tools used internally in dodo-ui.
|
|
4
|
-
|
|
5
|
-
## Explore More
|
|
6
|
-
|
|
7
|
-
- [Utility Button](?path=/docs/developer-tools-components-utilitybutton--docs)
|
|
8
|
-
- [Colors](?path=/docs/developer-tools-philosophy-colors--docs)
|
|
9
|
-
- [Adjust Color Opacity](?path=/docs/developer-tools-philosophy-colors--docs#adjusting-opacity)
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<script module lang="ts">
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import DynamicInput, { dynamicInputVariantArray } from './DynamicInput.svelte';
|
|
4
|
-
import type { StoryBookArgTypes } from '$lib/storybook-types.js';
|
|
5
|
-
import { componentSizeArray } from '$lib/types/size.js';
|
|
6
|
-
import { textInputTypeArray } from '$lib/stories/components/Form/TextInput/TextInput.svelte';
|
|
7
|
-
import Icon from '@iconify/svelte';
|
|
8
|
-
|
|
9
|
-
export const storyDynamicInputArgTypes: StoryBookArgTypes = {
|
|
10
|
-
type: {
|
|
11
|
-
control: { type: 'select' },
|
|
12
|
-
options: textInputTypeArray,
|
|
13
|
-
},
|
|
14
|
-
variant: {
|
|
15
|
-
control: { type: 'select' },
|
|
16
|
-
options: dynamicInputVariantArray,
|
|
17
|
-
},
|
|
18
|
-
size: {
|
|
19
|
-
control: { type: 'select' },
|
|
20
|
-
options: componentSizeArray,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
25
|
-
const { Story } = defineMeta({
|
|
26
|
-
component: DynamicInput,
|
|
27
|
-
tags: ['autodocs'],
|
|
28
|
-
argTypes: storyDynamicInputArgTypes,
|
|
29
|
-
args: { value: 'Hello world!' },
|
|
30
|
-
});
|
|
31
|
-
</script>
|
|
32
|
-
|
|
33
|
-
<Story name="Default" />
|
|
34
|
-
|
|
35
|
-
<!-- Clickable button type Variant -->
|
|
36
|
-
<Story name="VariantButton" args={{ variant: 'button' }} />
|
|
37
|
-
|
|
38
|
-
<!-- Clickable button type Variant with placeholder -->
|
|
39
|
-
<Story
|
|
40
|
-
name="ButtonWithPlaceholder"
|
|
41
|
-
args={{ variant: 'button', placeholder: 'Type Something...', value: '' }}
|
|
42
|
-
/>
|
|
43
|
-
|
|
44
|
-
<Story name="CustomInputContent" asChild>
|
|
45
|
-
<DynamicInput variant="button" value="Hello world!">
|
|
46
|
-
{#snippet customInputContent(value)}
|
|
47
|
-
<div>
|
|
48
|
-
{`${value}`}
|
|
49
|
-
<Icon icon="material-symbols:ads-click" width="24" height="24" style="color: #d21313" />
|
|
50
|
-
</div>
|
|
51
|
-
{/snippet}
|
|
52
|
-
</DynamicInput>
|
|
53
|
-
</Story>
|
package/src/lib/stories/developer tools/components/DynamicInput/Events/Events.stories.svelte
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
<script module lang="ts">
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import { storyDynamicInputArgTypes } from '../DynamicInput.stories.svelte';
|
|
4
|
-
import DynamicInput, {
|
|
5
|
-
type DynamicInputFocusEvent,
|
|
6
|
-
type DynamicInputKeyboardEvent,
|
|
7
|
-
} from '../DynamicInput.svelte';
|
|
8
|
-
import type { TextInputClipboardEvent } from '$lib/stories/components/Form/TextInput/TextInput.svelte';
|
|
9
|
-
|
|
10
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
11
|
-
const { Story } = defineMeta({
|
|
12
|
-
component: DynamicInput,
|
|
13
|
-
tags: ['autodocs'],
|
|
14
|
-
argTypes: storyDynamicInputArgTypes,
|
|
15
|
-
args: { value: 'Hello world!' },
|
|
16
|
-
});
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<Story
|
|
20
|
-
name="Input"
|
|
21
|
-
args={{
|
|
22
|
-
oninput: (e: Event) => {
|
|
23
|
-
const target = e.target as HTMLInputElement;
|
|
24
|
-
|
|
25
|
-
console.log('Input Event', target.value);
|
|
26
|
-
},
|
|
27
|
-
}}
|
|
28
|
-
/>
|
|
29
|
-
|
|
30
|
-
<Story
|
|
31
|
-
name="Change"
|
|
32
|
-
args={{
|
|
33
|
-
onchange: (e: Event) => {
|
|
34
|
-
const target = e.target as HTMLInputElement;
|
|
35
|
-
|
|
36
|
-
console.log('onChange Event', target.value);
|
|
37
|
-
},
|
|
38
|
-
}}
|
|
39
|
-
/>
|
|
40
|
-
|
|
41
|
-
<Story
|
|
42
|
-
name="Focus"
|
|
43
|
-
args={{
|
|
44
|
-
onfocus: (e: DynamicInputFocusEvent) => {
|
|
45
|
-
const target = e.target as HTMLInputElement;
|
|
46
|
-
|
|
47
|
-
console.log('onfocus Event', target);
|
|
48
|
-
},
|
|
49
|
-
}}
|
|
50
|
-
/>
|
|
51
|
-
|
|
52
|
-
<Story
|
|
53
|
-
name="Blur"
|
|
54
|
-
args={{
|
|
55
|
-
onblur: (e: DynamicInputFocusEvent) => {
|
|
56
|
-
const target = e.target as HTMLInputElement;
|
|
57
|
-
|
|
58
|
-
console.log('onblur Event', target);
|
|
59
|
-
},
|
|
60
|
-
}}
|
|
61
|
-
/>
|
|
62
|
-
|
|
63
|
-
<Story
|
|
64
|
-
name="Copy"
|
|
65
|
-
args={{
|
|
66
|
-
oncopy: (e: TextInputClipboardEvent) => {
|
|
67
|
-
const target = e.target as HTMLInputElement;
|
|
68
|
-
|
|
69
|
-
console.log('oncopy Event', target);
|
|
70
|
-
},
|
|
71
|
-
}}
|
|
72
|
-
/>
|
|
73
|
-
|
|
74
|
-
<Story
|
|
75
|
-
name="Cut"
|
|
76
|
-
args={{
|
|
77
|
-
oncut: (e: TextInputClipboardEvent) => {
|
|
78
|
-
const target = e.target as HTMLInputElement;
|
|
79
|
-
|
|
80
|
-
console.log('oncut Event', target);
|
|
81
|
-
},
|
|
82
|
-
}}
|
|
83
|
-
/>
|
|
84
|
-
|
|
85
|
-
<Story
|
|
86
|
-
name="Paste"
|
|
87
|
-
args={{
|
|
88
|
-
onpaste: (e: TextInputClipboardEvent) => {
|
|
89
|
-
const target = e.target as HTMLInputElement;
|
|
90
|
-
|
|
91
|
-
console.log('onpaste Event', target);
|
|
92
|
-
},
|
|
93
|
-
}}
|
|
94
|
-
/>
|
|
95
|
-
|
|
96
|
-
<Story
|
|
97
|
-
name="KeyDown"
|
|
98
|
-
args={{
|
|
99
|
-
onkeydown: (e: DynamicInputKeyboardEvent) => {
|
|
100
|
-
console.log('onkeydown Event', e.key);
|
|
101
|
-
},
|
|
102
|
-
}}
|
|
103
|
-
/>
|
|
104
|
-
|
|
105
|
-
<Story
|
|
106
|
-
name="KeyPress"
|
|
107
|
-
args={{
|
|
108
|
-
onkeypress: (e: DynamicInputKeyboardEvent) => {
|
|
109
|
-
console.log('onkeypress Event', e.key);
|
|
110
|
-
},
|
|
111
|
-
}}
|
|
112
|
-
/>
|
|
113
|
-
|
|
114
|
-
<Story
|
|
115
|
-
name="KeyUp"
|
|
116
|
-
args={{
|
|
117
|
-
onkeyup: (e: DynamicInputKeyboardEvent) => {
|
|
118
|
-
console.log('onkeyup Event', e.key);
|
|
119
|
-
},
|
|
120
|
-
}}
|
|
121
|
-
/>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import DynamicInput from '../DynamicInput.svelte';
|
|
4
|
-
import { storyDynamicInputArgTypes } from '../DynamicInput.stories.svelte';
|
|
5
|
-
|
|
6
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
|
-
const { Story } = defineMeta({
|
|
8
|
-
component: DynamicInput,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
argTypes: storyDynamicInputArgTypes,
|
|
11
|
-
args: { value: 'Hello world!' },
|
|
12
|
-
});
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<Story name="Normal" />
|
|
16
|
-
<Story name="Small" args={{ size: 'small' }} />
|
|
17
|
-
<Story name="Large" args={{ size: 'large' }} />
|
package/src/lib/stories/developer tools/components/InputEnclosure/InputEnclosure.stories.svelte
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<script module lang="ts">
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import InputEnclosure from './InputEnclosure.svelte';
|
|
4
|
-
import type { StoryBookArgTypes } from '$lib/storybook-types.js';
|
|
5
|
-
import { componentRoundnessArray } from '$lib/types/roundness.js';
|
|
6
|
-
import { componentSizeArray } from '$lib/types/size.js';
|
|
7
|
-
|
|
8
|
-
export const storyInputEnclosureArgTypes: StoryBookArgTypes = {
|
|
9
|
-
roundness: {
|
|
10
|
-
control: { type: 'select' },
|
|
11
|
-
options: componentRoundnessArray,
|
|
12
|
-
},
|
|
13
|
-
size: {
|
|
14
|
-
control: { type: 'select' },
|
|
15
|
-
options: componentSizeArray,
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
20
|
-
const { Story } = defineMeta({
|
|
21
|
-
component: InputEnclosure,
|
|
22
|
-
tags: ['autodocs'],
|
|
23
|
-
argTypes: storyInputEnclosureArgTypes,
|
|
24
|
-
});
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<!-- An ensloure for Form Inputs [TextInput](?path=/docs/components-form-textinput--docs) -->
|
|
28
|
-
<Story name="Default" />
|
|
29
|
-
|
|
30
|
-
<Story name="Focused" args={{ focused: true }} />
|
|
31
|
-
|
|
32
|
-
<Story name="Error" args={{ error: true }} />
|
|
33
|
-
|
|
34
|
-
<Story name="Disabled" args={{ disabled: true }} />
|
|
35
|
-
|
|
36
|
-
<Story name="Input example">
|
|
37
|
-
<input type="text" style="flex: 1; border: 0;" placeholder="Enter name" />
|
|
38
|
-
</Story>
|
package/src/lib/stories/developer tools/components/InputEnclosure/Roundness/Roundness.stories.svelte
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import InputEnclosure from '../InputEnclosure.svelte';
|
|
4
|
-
import { storyInputEnclosureArgTypes } from '../InputEnclosure.stories.svelte';
|
|
5
|
-
|
|
6
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
|
-
const { Story } = defineMeta({
|
|
8
|
-
component: InputEnclosure,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
argTypes: storyInputEnclosureArgTypes,
|
|
11
|
-
});
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<Story name="Roundness 1" />
|
|
15
|
-
|
|
16
|
-
<Story name="Roundness 2" args={{ roundness: 2 }} />
|
|
17
|
-
|
|
18
|
-
<Story name="Roundness 3" args={{ roundness: 3 }} />
|
|
19
|
-
|
|
20
|
-
<Story name="Roundness 0" args={{ roundness: 0 }} />
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import InputEnclosure from '../InputEnclosure.svelte';
|
|
4
|
-
import { storyInputEnclosureArgTypes } from '../InputEnclosure.stories.svelte';
|
|
5
|
-
|
|
6
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
|
-
const { Story } = defineMeta({
|
|
8
|
-
component: InputEnclosure,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
argTypes: storyInputEnclosureArgTypes,
|
|
11
|
-
});
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<Story name="Normal" />
|
|
15
|
-
<Story name="Small" args={{ size: 'small' }} />
|
|
16
|
-
<Story name="Large" args={{ size: 'large' }} />
|
package/src/lib/stories/developer tools/components/InputEnclosure/WithIcon/WithIcon.stories.svelte
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import InputEnclosure from '../InputEnclosure.svelte';
|
|
4
|
-
import { storyInputEnclosureArgTypes } from '../InputEnclosure.stories.svelte';
|
|
5
|
-
import Icon from '@iconify/svelte';
|
|
6
|
-
|
|
7
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
8
|
-
const { Story } = defineMeta({
|
|
9
|
-
component: InputEnclosure,
|
|
10
|
-
tags: ['autodocs'],
|
|
11
|
-
argTypes: storyInputEnclosureArgTypes,
|
|
12
|
-
});
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<!-- InputEnclosure icon in front. -->
|
|
16
|
-
<Story name="Icon Before" asChild>
|
|
17
|
-
<InputEnclosure>
|
|
18
|
-
{#snippet before()}
|
|
19
|
-
<Icon icon="material-symbols:content-copy" />
|
|
20
|
-
{/snippet}
|
|
21
|
-
</InputEnclosure>
|
|
22
|
-
</Story>
|
|
23
|
-
|
|
24
|
-
<!-- InputEnclosure icon in front. -->
|
|
25
|
-
<Story name="Icon After" asChild>
|
|
26
|
-
<InputEnclosure>
|
|
27
|
-
{#snippet after()}
|
|
28
|
-
<Icon icon="material-symbols:download-2" />
|
|
29
|
-
{/snippet}
|
|
30
|
-
</InputEnclosure>
|
|
31
|
-
</Story>
|
|
32
|
-
|
|
33
|
-
<Story name="Small" args={{ size: 'small' }} asChild>
|
|
34
|
-
<InputEnclosure size="small">
|
|
35
|
-
{#snippet before()}
|
|
36
|
-
<Icon icon="material-symbols:content-copy" />
|
|
37
|
-
{/snippet}
|
|
38
|
-
</InputEnclosure>
|
|
39
|
-
</Story>
|
|
40
|
-
|
|
41
|
-
<Story name="Large" args={{ size: 'large' }} asChild>
|
|
42
|
-
<InputEnclosure size="large">
|
|
43
|
-
{#snippet before()}
|
|
44
|
-
<Icon icon="material-symbols:content-copy" />
|
|
45
|
-
{/snippet}
|
|
46
|
-
</InputEnclosure>
|
|
47
|
-
</Story>
|