@enki-tek/fms-web-components 0.0.2 → 0.0.4
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/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 +602 -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 +115 -0
- package/components/Sidebar/Sidebar.stories.d.ts +29 -0
- package/components/Sidebar/Sidebar.stories.js +27 -0
- package/components/Sidebar/Sidebar.svelte +722 -0
- package/components/Sidebar/Sidebar.svelte.d.ts +33 -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
@@ -1,48 +1,117 @@
|
|
1
|
-
import Button from
|
1
|
+
import Button from "./Button.svelte";
|
2
2
|
declare const _default: {
|
3
3
|
title: string;
|
4
4
|
component: typeof Button;
|
5
5
|
tags: string[];
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
};
|
7
|
+
export default _default;
|
8
|
+
export declare const icon: {
|
9
|
+
args: {
|
10
|
+
config: string;
|
11
|
+
icon: {
|
12
|
+
state: boolean;
|
13
|
+
name: string;
|
14
|
+
position: string;
|
9
15
|
};
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
16
|
+
};
|
17
|
+
};
|
18
|
+
export declare const rightIcon: {
|
19
|
+
args: {
|
20
|
+
icon: {
|
21
|
+
state: boolean;
|
22
|
+
name: string;
|
23
|
+
position: string;
|
15
24
|
};
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
25
|
+
config: string;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
export declare const leftIcon: {
|
29
|
+
args: {
|
30
|
+
icon: {
|
31
|
+
state: boolean;
|
32
|
+
name: string;
|
33
|
+
position: string;
|
21
34
|
};
|
35
|
+
config: string;
|
22
36
|
};
|
23
37
|
};
|
24
|
-
export
|
25
|
-
|
38
|
+
export declare const secondaryBtnMedium: {
|
39
|
+
args: {
|
40
|
+
config: string;
|
41
|
+
};
|
42
|
+
};
|
43
|
+
export declare const secondaryOutlineBtnMedium: {
|
44
|
+
args: {
|
45
|
+
config: string;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
export declare const secondaryBtnSmall: {
|
49
|
+
args: {
|
50
|
+
config: string;
|
51
|
+
};
|
52
|
+
};
|
53
|
+
export declare const secondaryOutlineBtnSmall: {
|
54
|
+
args: {
|
55
|
+
config: string;
|
56
|
+
};
|
57
|
+
};
|
58
|
+
export declare const secondaryBtnLarge: {
|
59
|
+
args: {
|
60
|
+
config: string;
|
61
|
+
};
|
62
|
+
};
|
63
|
+
export declare const secondaryOutlineBtnLarge: {
|
64
|
+
args: {
|
65
|
+
config: string;
|
66
|
+
};
|
67
|
+
};
|
68
|
+
export declare const infoBtnMedium: {
|
69
|
+
args: {
|
70
|
+
config: string;
|
71
|
+
};
|
72
|
+
};
|
73
|
+
export declare const infoOutlineBtnMedium: {
|
74
|
+
args: {
|
75
|
+
config: string;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
export declare const dangerBtnMedium: {
|
79
|
+
args: {
|
80
|
+
config: string;
|
81
|
+
};
|
82
|
+
};
|
83
|
+
export declare const dangerOtlineBtnMedium: {
|
84
|
+
args: {
|
85
|
+
config: string;
|
86
|
+
};
|
87
|
+
};
|
88
|
+
export declare const warningBtnMedium: {
|
89
|
+
args: {
|
90
|
+
config: string;
|
91
|
+
};
|
92
|
+
};
|
93
|
+
export declare const warningOutlineBtnMedium: {
|
94
|
+
args: {
|
95
|
+
config: string;
|
96
|
+
};
|
97
|
+
};
|
98
|
+
export declare const primaryBtnMedium: {
|
26
99
|
args: {
|
27
|
-
|
28
|
-
label: string;
|
100
|
+
config: string;
|
29
101
|
};
|
30
102
|
};
|
31
|
-
export declare const
|
103
|
+
export declare const primaryOutlineBtnMedium: {
|
32
104
|
args: {
|
33
|
-
|
34
|
-
color: string;
|
105
|
+
config: string;
|
35
106
|
};
|
36
107
|
};
|
37
|
-
export declare const
|
108
|
+
export declare const successBtnMedium: {
|
38
109
|
args: {
|
39
|
-
|
40
|
-
label: string;
|
110
|
+
config: string;
|
41
111
|
};
|
42
112
|
};
|
43
|
-
export declare const
|
113
|
+
export declare const successOutlineBtnMedium: {
|
44
114
|
args: {
|
45
|
-
|
46
|
-
label: string;
|
115
|
+
config: string;
|
47
116
|
};
|
48
117
|
};
|
@@ -1,43 +1,104 @@
|
|
1
|
-
import Button from
|
2
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
1
|
+
import Button from "./Button.svelte";
|
3
2
|
export default {
|
4
3
|
title: 'FMS/Button',
|
5
4
|
component: Button,
|
6
5
|
tags: ['autodocs'],
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
19
|
-
|
20
|
-
export const
|
21
|
-
args: {
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
};
|
26
|
-
export const
|
27
|
-
args: {
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
6
|
+
};
|
7
|
+
export const icon = {
|
8
|
+
args: {
|
9
|
+
config: 'secondaryOutlineBtnMedium',
|
10
|
+
icon: { state: true, name: 'person', position: 'single' },
|
11
|
+
}
|
12
|
+
};
|
13
|
+
export const rightIcon = {
|
14
|
+
args: {
|
15
|
+
...icon.args,
|
16
|
+
icon: { state: true, name: 'person', position: 'right' },
|
17
|
+
}
|
18
|
+
};
|
19
|
+
export const leftIcon = {
|
20
|
+
args: {
|
21
|
+
...icon.args,
|
22
|
+
icon: { state: true, name: 'person', position: 'left' },
|
23
|
+
}
|
24
|
+
};
|
25
|
+
export const secondaryBtnMedium = {
|
26
|
+
args: {
|
27
|
+
config: 'secondaryBtnMedium'
|
28
|
+
}
|
29
|
+
};
|
30
|
+
export const secondaryOutlineBtnMedium = {
|
31
|
+
args: {
|
32
|
+
config: 'secondaryOutlineBtnMedium'
|
33
|
+
}
|
34
|
+
};
|
35
|
+
export const secondaryBtnSmall = {
|
36
|
+
args: {
|
37
|
+
config: 'secondaryBtnSmall'
|
38
|
+
}
|
39
|
+
};
|
40
|
+
export const secondaryOutlineBtnSmall = {
|
41
|
+
args: {
|
42
|
+
config: 'secondaryOutlineBtnSmall'
|
43
|
+
}
|
44
|
+
};
|
45
|
+
export const secondaryBtnLarge = {
|
46
|
+
args: {
|
47
|
+
config: 'secondaryBtnLarge'
|
48
|
+
}
|
49
|
+
};
|
50
|
+
export const secondaryOutlineBtnLarge = {
|
51
|
+
args: {
|
52
|
+
config: 'secondaryOutlineBtnLarge'
|
53
|
+
}
|
54
|
+
};
|
55
|
+
export const infoBtnMedium = {
|
56
|
+
args: {
|
57
|
+
config: 'infoBtnMedium'
|
58
|
+
}
|
59
|
+
};
|
60
|
+
export const infoOutlineBtnMedium = {
|
61
|
+
args: {
|
62
|
+
config: 'infoOutlineBtnMedium'
|
63
|
+
}
|
64
|
+
};
|
65
|
+
export const dangerBtnMedium = {
|
66
|
+
args: {
|
67
|
+
config: 'dangerBtnMedium'
|
68
|
+
}
|
69
|
+
};
|
70
|
+
export const dangerOtlineBtnMedium = {
|
71
|
+
args: {
|
72
|
+
config: 'dangerOutlineBtnMedium'
|
73
|
+
}
|
74
|
+
};
|
75
|
+
export const warningBtnMedium = {
|
76
|
+
args: {
|
77
|
+
config: 'warningBtnMedium'
|
78
|
+
}
|
79
|
+
};
|
80
|
+
export const warningOutlineBtnMedium = {
|
81
|
+
args: {
|
82
|
+
config: 'warningOutlineBtnMedium'
|
83
|
+
}
|
84
|
+
};
|
85
|
+
export const primaryBtnMedium = {
|
86
|
+
args: {
|
87
|
+
config: 'primaryBtnMedium'
|
88
|
+
}
|
89
|
+
};
|
90
|
+
export const primaryOutlineBtnMedium = {
|
91
|
+
args: {
|
92
|
+
config: 'primaryOutlineBtnMedium'
|
93
|
+
}
|
94
|
+
};
|
95
|
+
export const successBtnMedium = {
|
96
|
+
args: {
|
97
|
+
config: 'successBtnMedium'
|
98
|
+
}
|
99
|
+
};
|
100
|
+
export const successOutlineBtnMedium = {
|
101
|
+
args: {
|
102
|
+
config: 'successOutlineBtnMedium'
|
103
|
+
}
|
43
104
|
};
|