@enki-tek/fms-web-components 0.0.1 → 0.0.3
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 +1 -1
- package/app.scss +1 -1
- package/components/Accordion/Accordion.scss +30 -0
- package/components/Accordion/Accordion.stories.d.ts +20 -0
- package/components/Accordion/Accordion.stories.js +30 -0
- package/components/Accordion/Accordion.svelte +617 -0
- package/components/Accordion/Accordion.svelte.d.ts +17 -0
- package/components/Alert/Alert.scss +25 -0
- package/components/Alert/Alert.stories.d.ts +54 -0
- package/components/Alert/Alert.stories.js +46 -0
- package/components/Alert/Alert.svelte +29 -0
- package/components/Alert/Alert.svelte.d.ts +19 -0
- package/components/Badge/Badge.scss +8 -0
- package/components/Badge/Badge.stories.d.ts +75 -0
- package/components/Badge/Badge.stories.js +55 -0
- package/components/Badge/Badge.svelte +587 -0
- package/components/Badge/Badge.svelte.d.ts +17 -0
- package/components/Badge/BadgeConfig.d.ts +10 -0
- package/components/Badge/BadgeConfig.js +34 -0
- package/components/Breadcrumb/Breadcrumb.scss +26 -0
- package/components/Breadcrumb/Breadcrumb.stories.d.ts +23 -0
- package/components/Breadcrumb/Breadcrumb.stories.js +20 -0
- package/components/Breadcrumb/Breadcrumb.svelte +603 -0
- package/components/Breadcrumb/Breadcrumb.svelte.d.ts +16 -0
- package/components/Button/Button.scss +706 -0
- package/components/Button/Button.stories.d.ts +96 -27
- package/components/Button/Button.stories.js +99 -38
- package/components/Button/Button.svelte +1125 -10
- package/components/Button/Button.svelte.d.ts +43 -9
- package/components/Button/buttonConfig.d.ts +38 -0
- package/components/Button/buttonConfig.js +203 -0
- package/components/Card/Card.scss +39 -0
- package/components/Card/Card.stories.d.ts +59 -0
- package/components/Card/Card.stories.js +42 -0
- package/components/Card/Card.svelte +123 -0
- package/components/Card/Card.svelte.d.ts +51 -0
- package/components/CheckBox/Checkbox.scss +32 -0
- package/components/CheckBox/Checkbox.stories.d.ts +94 -0
- package/components/CheckBox/Checkbox.stories.js +51 -0
- package/components/CheckBox/Checkbox.svelte +614 -0
- package/components/CheckBox/Checkbox.svelte.d.ts +31 -0
- package/components/Dropdown/Dropdown.scss +72 -0
- package/components/Dropdown/Dropdown.stories.d.ts +29 -0
- package/components/Dropdown/Dropdown.stories.js +19 -0
- package/components/Dropdown/Dropdown.svelte +646 -0
- package/components/Dropdown/Dropdown.svelte.d.ts +17 -0
- package/components/Header/Header.scss +54 -0
- package/components/Header/Header.stories.d.ts +28 -0
- package/components/Header/Header.stories.js +28 -0
- package/components/Header/Header.svelte +667 -0
- package/components/Header/Header.svelte.d.ts +27 -0
- package/components/Icon/Icon.scss +0 -0
- package/components/Icon/Icon.stories.d.ts +21 -0
- package/components/Icon/Icon.stories.js +18 -0
- package/components/Icon/Icon.svelte +7 -0
- package/components/Icon/Icon.svelte.d.ts +23 -0
- package/components/ModalWindow/Modal.scss +28 -0
- package/components/ModalWindow/Modal.stories.d.ts +29 -0
- package/components/ModalWindow/Modal.stories.js +20 -0
- package/components/ModalWindow/Modal.svelte +641 -0
- package/components/ModalWindow/Modal.svelte.d.ts +23 -0
- package/components/Pagination/Pagination.scss +83 -0
- package/components/Pagination/Pagination.stories.d.ts +29 -0
- package/components/Pagination/Pagination.stories.js +18 -0
- package/components/Pagination/Pagination.svelte +702 -0
- package/components/Pagination/Pagination.svelte.d.ts +18 -0
- package/components/RadioButton/RadioButton.scss +28 -0
- package/components/RadioButton/RadioButton.stories.d.ts +35 -0
- package/components/RadioButton/RadioButton.stories.js +25 -0
- package/components/RadioButton/RadioButton.svelte +616 -0
- package/components/RadioButton/RadioButton.svelte.d.ts +41 -0
- package/components/Sidebar/Sidebar.scss +87 -0
- package/components/Sidebar/Sidebar.stories.d.ts +28 -0
- package/components/Sidebar/Sidebar.stories.js +27 -0
- package/components/Sidebar/Sidebar.svelte +144 -0
- package/components/Sidebar/Sidebar.svelte.d.ts +31 -0
- package/components/Switches/Switch.scss +12 -0
- package/components/Switches/Switch.stories.d.ts +87 -0
- package/components/Switches/Switch.stories.js +50 -0
- package/components/Switches/Switch.svelte +595 -0
- package/components/Switches/Switch.svelte.d.ts +29 -0
- package/components/Tab/Tab.scss +30 -0
- package/components/Tab/Tab.stories.d.ts +23 -0
- package/components/Tab/Tab.stories.js +19 -0
- package/components/Tab/Tab.svelte +615 -0
- package/components/Tab/Tab.svelte.d.ts +19 -0
- package/components/Table/Table.scss +38 -0
- package/components/Table/Table.stories.d.ts +28 -0
- package/components/Table/Table.stories.js +21 -0
- package/components/Table/Table.svelte +137 -0
- package/components/Table/Table.svelte.d.ts +35 -0
- package/components/Tooltip/Tooltip.scss +29 -0
- package/components/Tooltip/Tooltip.stories.d.ts +40 -0
- package/components/Tooltip/Tooltip.stories.js +24 -0
- package/components/Tooltip/Tooltip.svelte +622 -0
- package/components/Tooltip/Tooltip.svelte.d.ts +21 -0
- package/components/common.scss +789 -0
- package/components/textField/TextField.scss +34 -0
- package/components/textField/TextField.stories.d.ts +85 -0
- package/components/textField/TextField.stories.js +32 -0
- package/components/textField/TextField.svelte +607 -0
- package/components/textField/TextField.svelte.d.ts +33 -0
- package/components/variable.scss +134 -0
- package/index.d.ts +17 -1
- package/index.js +17 -1
- package/package.json +60 -1
@@ -0,0 +1,41 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} RadioButtonProps */
|
2
|
+
/** @typedef {typeof __propDef.events} RadioButtonEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} RadioButtonSlots */
|
4
|
+
export default class RadioButton extends SvelteComponentTyped<{
|
5
|
+
size?: string | undefined;
|
6
|
+
options?: ({
|
7
|
+
value: number;
|
8
|
+
label: string;
|
9
|
+
disabled?: undefined;
|
10
|
+
} | {
|
11
|
+
value: number;
|
12
|
+
label: string;
|
13
|
+
disabled: boolean;
|
14
|
+
})[] | undefined;
|
15
|
+
}, {
|
16
|
+
[evt: string]: CustomEvent<any>;
|
17
|
+
}, {}> {
|
18
|
+
}
|
19
|
+
export type RadioButtonProps = typeof __propDef.props;
|
20
|
+
export type RadioButtonEvents = typeof __propDef.events;
|
21
|
+
export type RadioButtonSlots = typeof __propDef.slots;
|
22
|
+
import { SvelteComponentTyped } from "svelte";
|
23
|
+
declare const __propDef: {
|
24
|
+
props: {
|
25
|
+
size?: string | undefined;
|
26
|
+
options?: ({
|
27
|
+
value: number;
|
28
|
+
label: string;
|
29
|
+
disabled?: undefined;
|
30
|
+
} | {
|
31
|
+
value: number;
|
32
|
+
label: string;
|
33
|
+
disabled: boolean;
|
34
|
+
})[] | undefined;
|
35
|
+
};
|
36
|
+
events: {
|
37
|
+
[evt: string]: CustomEvent<any>;
|
38
|
+
};
|
39
|
+
slots: {};
|
40
|
+
};
|
41
|
+
export {};
|
@@ -0,0 +1,87 @@
|
|
1
|
+
// Importing variables from variable.scss file
|
2
|
+
@import './../variable.scss';
|
3
|
+
|
4
|
+
.row {
|
5
|
+
--bs-gutter-x: -0.5rem;
|
6
|
+
}
|
7
|
+
|
8
|
+
.icon-sidebar {
|
9
|
+
position: fixed;
|
10
|
+
top: 0;
|
11
|
+
left: 0;
|
12
|
+
height: 100%;
|
13
|
+
width: 60px;
|
14
|
+
background-color: #fff;
|
15
|
+
}
|
16
|
+
|
17
|
+
.icon-sidebar .toggleButton {
|
18
|
+
display: flex;
|
19
|
+
align-items: center;
|
20
|
+
padding: 20px;
|
21
|
+
gap: 32px;
|
22
|
+
}
|
23
|
+
|
24
|
+
.icon-sidebar-content ul {
|
25
|
+
padding: 20px;
|
26
|
+
color: $primary-dark;
|
27
|
+
gap: 32px;
|
28
|
+
}
|
29
|
+
|
30
|
+
#offcanvasScrollingLabel {
|
31
|
+
color: $secondary-dark;
|
32
|
+
font-size: 28px;
|
33
|
+
font-weight: 600;
|
34
|
+
}
|
35
|
+
|
36
|
+
ul {
|
37
|
+
color: $primary-dark;
|
38
|
+
gap: 4px;
|
39
|
+
}
|
40
|
+
|
41
|
+
.nav-item {
|
42
|
+
display: flex;
|
43
|
+
width: 241px;
|
44
|
+
padding: 15px;
|
45
|
+
align-items: center;
|
46
|
+
gap: 10px;
|
47
|
+
border-radius: 4px;
|
48
|
+
border: 1px solid $primary-dark;
|
49
|
+
}
|
50
|
+
|
51
|
+
.nav-item .item-name {
|
52
|
+
color: $primary-dark;
|
53
|
+
font-size: 16px;
|
54
|
+
font-style: normal;
|
55
|
+
font-weight: 400;
|
56
|
+
line-height: 22px;
|
57
|
+
font-family: 'Roboto';
|
58
|
+
}
|
59
|
+
|
60
|
+
.toggleButton {
|
61
|
+
background-color: transparent;
|
62
|
+
border: #fff;
|
63
|
+
cursor: pointer;
|
64
|
+
}
|
65
|
+
|
66
|
+
.material-icons {
|
67
|
+
font-size: 24px;
|
68
|
+
color: $primary-dark;
|
69
|
+
}
|
70
|
+
|
71
|
+
:global(.offcanvas-start) {
|
72
|
+
width: 274px;
|
73
|
+
border-right: none;
|
74
|
+
}
|
75
|
+
|
76
|
+
:global(.offcanvas.offcanvas-start) {
|
77
|
+
width: 274px;
|
78
|
+
border-right: none;
|
79
|
+
}
|
80
|
+
|
81
|
+
:global(.offcanvas-body) {
|
82
|
+
padding: 0.5rem 0.5rem;
|
83
|
+
}
|
84
|
+
|
85
|
+
.offcanvas-header {
|
86
|
+
padding: 0.5rem 0.5rem;
|
87
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import Sidebar from "./Sidebar.svelte";
|
2
|
+
declare const _default: {
|
3
|
+
title: string;
|
4
|
+
component: typeof Sidebar;
|
5
|
+
argTypes: {
|
6
|
+
companyName: {
|
7
|
+
control: {
|
8
|
+
type: string;
|
9
|
+
};
|
10
|
+
};
|
11
|
+
navItems: {
|
12
|
+
control: {
|
13
|
+
type: string;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
};
|
17
|
+
};
|
18
|
+
export default _default;
|
19
|
+
export declare const Default: ({ companyName, navItems }: {
|
20
|
+
companyName: any;
|
21
|
+
navItems: any;
|
22
|
+
}) => {
|
23
|
+
Component: typeof Sidebar;
|
24
|
+
props: {
|
25
|
+
companyName: any;
|
26
|
+
navItems: any;
|
27
|
+
};
|
28
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import Sidebar from "./Sidebar.svelte";
|
2
|
+
export default {
|
3
|
+
title: 'FMS/Sidebar',
|
4
|
+
component: Sidebar,
|
5
|
+
argTypes: {
|
6
|
+
companyName: { control: { type: 'text' } },
|
7
|
+
navItems: { control: { type: 'object' } }
|
8
|
+
}
|
9
|
+
};
|
10
|
+
const Template = ({ companyName, navItems }) => ({
|
11
|
+
Component: Sidebar,
|
12
|
+
props: { companyName, navItems }
|
13
|
+
});
|
14
|
+
export const Default = Template.bind({});
|
15
|
+
Default.args = {
|
16
|
+
companyName: 'Vertfarm',
|
17
|
+
navItems: [
|
18
|
+
{ name: 'Home', icon: 'home' },
|
19
|
+
{ name: 'About', icon: 'person' },
|
20
|
+
{ name: 'Services', icon: 'settings' },
|
21
|
+
{ name: 'Contact', icon: 'email' },
|
22
|
+
{ name: 'Home', icon: 'home' },
|
23
|
+
{ name: 'About', icon: 'person' },
|
24
|
+
{ name: 'Services', icon: 'settings' },
|
25
|
+
{ name: 'Contact', icon: 'email' }
|
26
|
+
]
|
27
|
+
};
|
@@ -0,0 +1,144 @@
|
|
1
|
+
<script>
|
2
|
+
import { Offcanvas } from 'sveltestrap';
|
3
|
+
export let companyName = 'Vertfarm';
|
4
|
+
export let navItems = [
|
5
|
+
{ name: 'Home', icon: 'home' },
|
6
|
+
{ name: 'About', icon: 'person' },
|
7
|
+
{ name: 'Services', icon: 'settings' },
|
8
|
+
{ name: 'Contact', icon: 'email' },
|
9
|
+
{ name: 'Home', icon: 'home' },
|
10
|
+
{ name: 'About', icon: 'person' },
|
11
|
+
{ name: 'Services', icon: 'settings' },
|
12
|
+
{ name: 'Contact', icon: 'email' }
|
13
|
+
];
|
14
|
+
let isOpen = false;
|
15
|
+
</script>
|
16
|
+
|
17
|
+
<div class="container-fluid">
|
18
|
+
<div class="row">
|
19
|
+
<!-- Toggle button for offcanvas -->
|
20
|
+
<div class="col-auto icon-sidebar">
|
21
|
+
<button
|
22
|
+
class="toggleButton"
|
23
|
+
type="button"
|
24
|
+
data-bs-toggle="offcanvas"
|
25
|
+
data-bs-target="#offcanvasScrolling"
|
26
|
+
aria-controls="offcanvasScrolling"
|
27
|
+
on:click={() => (isOpen = true)}
|
28
|
+
>
|
29
|
+
<span class="material-icons">{'keyboard_double_arrow_right'}</span>
|
30
|
+
</button>
|
31
|
+
<!-- Icon Sidebar -->
|
32
|
+
<div class="icon-sidebar-content">
|
33
|
+
<ul class="nav flex-column">
|
34
|
+
{#each navItems as item, index}
|
35
|
+
<li>
|
36
|
+
<span class="material-icons">{item.icon}</span>
|
37
|
+
</li>
|
38
|
+
{/each}
|
39
|
+
</ul>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
<!-- Offcanvas menu -->
|
43
|
+
<div>
|
44
|
+
<Offcanvas class="offcanvas offcanvas-start" scroll {isOpen} backdrop={false}>
|
45
|
+
<div class="offcanvas-header">
|
46
|
+
<h5 class="offcanvas-title" id="offcanvasScrollingLabel">{companyName}</h5>
|
47
|
+
<button
|
48
|
+
type="button"
|
49
|
+
class="toggleButton"
|
50
|
+
data-bs-dismiss="offcanvas"
|
51
|
+
aria-label="Close"
|
52
|
+
on:click={() => (isOpen = false)}
|
53
|
+
>
|
54
|
+
<span class="material-icons">{'keyboard_double_arrow_left'}</span>
|
55
|
+
</button>
|
56
|
+
</div>
|
57
|
+
<div class="offcanvas-body">
|
58
|
+
<ul class="nav flex-column">
|
59
|
+
{#each navItems as item, index}
|
60
|
+
<li class="nav-item">
|
61
|
+
<span class="material-icons">{item.icon}</span>
|
62
|
+
<span class="item-name">{item.name}</span>
|
63
|
+
</li>
|
64
|
+
{/each}
|
65
|
+
</ul>
|
66
|
+
</div>
|
67
|
+
</Offcanvas>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
72
|
+
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
73
|
+
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
74
|
+
.row {
|
75
|
+
--bs-gutter-x: -0.5rem;
|
76
|
+
}
|
77
|
+
.icon-sidebar {
|
78
|
+
position: fixed;
|
79
|
+
top: 0;
|
80
|
+
left: 0;
|
81
|
+
height: 100%;
|
82
|
+
width: 60px;
|
83
|
+
background-color: #fff;
|
84
|
+
}
|
85
|
+
.icon-sidebar .toggleButton {
|
86
|
+
display: flex;
|
87
|
+
align-items: center;
|
88
|
+
padding: 20px;
|
89
|
+
gap: 32px;
|
90
|
+
}
|
91
|
+
.icon-sidebar-content ul {
|
92
|
+
padding: 20px;
|
93
|
+
color: #007FD8;
|
94
|
+
gap: 32px;
|
95
|
+
}
|
96
|
+
#offcanvasScrollingLabel {
|
97
|
+
color: #00A855;
|
98
|
+
font-size: 28px;
|
99
|
+
font-weight: 600;
|
100
|
+
}
|
101
|
+
ul {
|
102
|
+
color: #007FD8;
|
103
|
+
gap: 4px;
|
104
|
+
}
|
105
|
+
.nav-item {
|
106
|
+
display: flex;
|
107
|
+
width: 241px;
|
108
|
+
padding: 15px;
|
109
|
+
align-items: center;
|
110
|
+
gap: 10px;
|
111
|
+
border-radius: 4px;
|
112
|
+
border: 1px solid #007FD8;
|
113
|
+
}
|
114
|
+
.nav-item .item-name {
|
115
|
+
color: #007FD8;
|
116
|
+
font-size: 16px;
|
117
|
+
font-style: normal;
|
118
|
+
font-weight: 400;
|
119
|
+
line-height: 22px;
|
120
|
+
font-family: "Roboto";
|
121
|
+
}
|
122
|
+
.toggleButton {
|
123
|
+
background-color: transparent;
|
124
|
+
border: #fff;
|
125
|
+
cursor: pointer;
|
126
|
+
}
|
127
|
+
.material-icons {
|
128
|
+
font-size: 24px;
|
129
|
+
color: #007FD8;
|
130
|
+
}
|
131
|
+
:global(.offcanvas-start) {
|
132
|
+
width: 274px;
|
133
|
+
border-right: none;
|
134
|
+
}
|
135
|
+
:global(.offcanvas.offcanvas-start) {
|
136
|
+
width: 274px;
|
137
|
+
border-right: none;
|
138
|
+
}
|
139
|
+
:global(.offcanvas-body) {
|
140
|
+
padding: 0.5rem 0.5rem;
|
141
|
+
}
|
142
|
+
.offcanvas-header {
|
143
|
+
padding: 0.5rem 0.5rem;
|
144
|
+
}</style>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} SidebarProps */
|
2
|
+
/** @typedef {typeof __propDef.events} SidebarEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} SidebarSlots */
|
4
|
+
export default class Sidebar extends SvelteComponentTyped<{
|
5
|
+
companyName?: string | undefined;
|
6
|
+
navItems?: {
|
7
|
+
name: string;
|
8
|
+
icon: string;
|
9
|
+
}[] | undefined;
|
10
|
+
}, {
|
11
|
+
[evt: string]: CustomEvent<any>;
|
12
|
+
}, {}> {
|
13
|
+
}
|
14
|
+
export type SidebarProps = typeof __propDef.props;
|
15
|
+
export type SidebarEvents = typeof __propDef.events;
|
16
|
+
export type SidebarSlots = typeof __propDef.slots;
|
17
|
+
import { SvelteComponentTyped } from "svelte";
|
18
|
+
declare const __propDef: {
|
19
|
+
props: {
|
20
|
+
companyName?: string | undefined;
|
21
|
+
navItems?: {
|
22
|
+
name: string;
|
23
|
+
icon: string;
|
24
|
+
}[] | undefined;
|
25
|
+
};
|
26
|
+
events: {
|
27
|
+
[evt: string]: CustomEvent<any>;
|
28
|
+
};
|
29
|
+
slots: {};
|
30
|
+
};
|
31
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
@import '../variable.scss';
|
2
|
+
|
3
|
+
:global(.form-check-input:focus) {
|
4
|
+
border-color: rgba(0, 0, 0, .25);
|
5
|
+
box-shadow: none;
|
6
|
+
}
|
7
|
+
|
8
|
+
:global(.form-check-input:checked) {
|
9
|
+
background-color: $primary-dark;
|
10
|
+
border-color: $primary-dark;
|
11
|
+
border: 1.5px solid $primary-dark !important;
|
12
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
export const title: string;
|
3
|
+
export { Switch as component };
|
4
|
+
export const tags: string[];
|
5
|
+
export namespace argTypes {
|
6
|
+
namespace label {
|
7
|
+
namespace control {
|
8
|
+
const type: string;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
namespace disable {
|
12
|
+
export namespace control_1 {
|
13
|
+
const type_1: string;
|
14
|
+
export { type_1 as type };
|
15
|
+
}
|
16
|
+
export { control_1 as control };
|
17
|
+
}
|
18
|
+
namespace enable {
|
19
|
+
export namespace control_2 {
|
20
|
+
const type_2: string;
|
21
|
+
export { type_2 as type };
|
22
|
+
}
|
23
|
+
export { control_2 as control };
|
24
|
+
}
|
25
|
+
namespace size {
|
26
|
+
export namespace control_3 {
|
27
|
+
const type_3: string;
|
28
|
+
export { type_3 as type };
|
29
|
+
}
|
30
|
+
export { control_3 as control };
|
31
|
+
export const options: string[];
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
export default _default;
|
36
|
+
export namespace Default {
|
37
|
+
namespace args {
|
38
|
+
const label_1: string;
|
39
|
+
export { label_1 as label };
|
40
|
+
const disable_1: string;
|
41
|
+
export { disable_1 as disable };
|
42
|
+
const enable_1: string;
|
43
|
+
export { enable_1 as enable };
|
44
|
+
const size_1: string;
|
45
|
+
export { size_1 as size };
|
46
|
+
}
|
47
|
+
}
|
48
|
+
export namespace enabledSwitch {
|
49
|
+
export namespace args_1 {
|
50
|
+
const label_2: string;
|
51
|
+
export { label_2 as label };
|
52
|
+
const disable_2: string;
|
53
|
+
export { disable_2 as disable };
|
54
|
+
const enable_2: string;
|
55
|
+
export { enable_2 as enable };
|
56
|
+
const size_2: string;
|
57
|
+
export { size_2 as size };
|
58
|
+
}
|
59
|
+
export { args_1 as args };
|
60
|
+
}
|
61
|
+
export namespace enabledWithDisabledSwitch {
|
62
|
+
export namespace args_2 {
|
63
|
+
const label_3: string;
|
64
|
+
export { label_3 as label };
|
65
|
+
const disable_3: string;
|
66
|
+
export { disable_3 as disable };
|
67
|
+
const enable_3: string;
|
68
|
+
export { enable_3 as enable };
|
69
|
+
const size_3: string;
|
70
|
+
export { size_3 as size };
|
71
|
+
}
|
72
|
+
export { args_2 as args };
|
73
|
+
}
|
74
|
+
export namespace diabledButNotEnabledSwitch {
|
75
|
+
export namespace args_3 {
|
76
|
+
const label_4: string;
|
77
|
+
export { label_4 as label };
|
78
|
+
const disable_4: string;
|
79
|
+
export { disable_4 as disable };
|
80
|
+
const enable_4: string;
|
81
|
+
export { enable_4 as enable };
|
82
|
+
const size_4: string;
|
83
|
+
export { size_4 as size };
|
84
|
+
}
|
85
|
+
export { args_3 as args };
|
86
|
+
}
|
87
|
+
import Switch from "./Switch.svelte";
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import Switch from './Switch.svelte';
|
2
|
+
|
3
|
+
export default{
|
4
|
+
title: 'FMS/Switch',
|
5
|
+
component: Switch,
|
6
|
+
tags:['autodocs'],
|
7
|
+
argTypes:{
|
8
|
+
label:{control:{type:'text'}},
|
9
|
+
disable: { control: { type: 'text' } },
|
10
|
+
enable: { control: { type: 'text' } },
|
11
|
+
size: { control: { type: 'select'},options:['lg','md'] }
|
12
|
+
}
|
13
|
+
};
|
14
|
+
|
15
|
+
|
16
|
+
export const Default = {
|
17
|
+
args:{
|
18
|
+
label:'clicked',
|
19
|
+
disable:'false',
|
20
|
+
enable:'false',
|
21
|
+
size:'lg'
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
export const enabledSwitch = {
|
26
|
+
args:{
|
27
|
+
label:'clicked',
|
28
|
+
disable:'false',
|
29
|
+
enable:'true',
|
30
|
+
size:'lg'
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
export const enabledWithDisabledSwitch = {
|
35
|
+
args:{
|
36
|
+
label:'clicked',
|
37
|
+
disable:'true',
|
38
|
+
enable:'true',
|
39
|
+
size:'lg'
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
export const diabledButNotEnabledSwitch = {
|
44
|
+
args:{
|
45
|
+
label:'clicked',
|
46
|
+
disable:'true',
|
47
|
+
enable:'false',
|
48
|
+
size:'lg'
|
49
|
+
}
|
50
|
+
}
|