@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.
Files changed (105) hide show
  1. package/app.scss +1 -1
  2. package/components/Accordion/Accordion.scss +30 -0
  3. package/components/Accordion/Accordion.stories.d.ts +20 -0
  4. package/components/Accordion/Accordion.stories.js +30 -0
  5. package/components/Accordion/Accordion.svelte +617 -0
  6. package/components/Accordion/Accordion.svelte.d.ts +17 -0
  7. package/components/Alert/Alert.scss +25 -0
  8. package/components/Alert/Alert.stories.d.ts +54 -0
  9. package/components/Alert/Alert.stories.js +46 -0
  10. package/components/Alert/Alert.svelte +29 -0
  11. package/components/Alert/Alert.svelte.d.ts +19 -0
  12. package/components/Badge/Badge.scss +8 -0
  13. package/components/Badge/Badge.stories.d.ts +75 -0
  14. package/components/Badge/Badge.stories.js +55 -0
  15. package/components/Badge/Badge.svelte +587 -0
  16. package/components/Badge/Badge.svelte.d.ts +17 -0
  17. package/components/Badge/BadgeConfig.d.ts +10 -0
  18. package/components/Badge/BadgeConfig.js +34 -0
  19. package/components/Breadcrumb/Breadcrumb.scss +26 -0
  20. package/components/Breadcrumb/Breadcrumb.stories.d.ts +23 -0
  21. package/components/Breadcrumb/Breadcrumb.stories.js +20 -0
  22. package/components/Breadcrumb/Breadcrumb.svelte +602 -0
  23. package/components/Breadcrumb/Breadcrumb.svelte.d.ts +16 -0
  24. package/components/Button/Button.scss +706 -0
  25. package/components/Button/Button.stories.d.ts +96 -27
  26. package/components/Button/Button.stories.js +99 -38
  27. package/components/Button/Button.svelte +1125 -10
  28. package/components/Button/Button.svelte.d.ts +43 -9
  29. package/components/Button/buttonConfig.d.ts +38 -0
  30. package/components/Button/buttonConfig.js +203 -0
  31. package/components/Card/Card.scss +39 -0
  32. package/components/Card/Card.stories.d.ts +59 -0
  33. package/components/Card/Card.stories.js +42 -0
  34. package/components/Card/Card.svelte +123 -0
  35. package/components/Card/Card.svelte.d.ts +51 -0
  36. package/components/CheckBox/Checkbox.scss +32 -0
  37. package/components/CheckBox/Checkbox.stories.d.ts +94 -0
  38. package/components/CheckBox/Checkbox.stories.js +51 -0
  39. package/components/CheckBox/Checkbox.svelte +614 -0
  40. package/components/CheckBox/Checkbox.svelte.d.ts +31 -0
  41. package/components/Dropdown/Dropdown.scss +72 -0
  42. package/components/Dropdown/Dropdown.stories.d.ts +29 -0
  43. package/components/Dropdown/Dropdown.stories.js +19 -0
  44. package/components/Dropdown/Dropdown.svelte +646 -0
  45. package/components/Dropdown/Dropdown.svelte.d.ts +17 -0
  46. package/components/Header/Header.scss +54 -0
  47. package/components/Header/Header.stories.d.ts +28 -0
  48. package/components/Header/Header.stories.js +28 -0
  49. package/components/Header/Header.svelte +667 -0
  50. package/components/Header/Header.svelte.d.ts +27 -0
  51. package/components/Icon/Icon.scss +0 -0
  52. package/components/Icon/Icon.stories.d.ts +21 -0
  53. package/components/Icon/Icon.stories.js +18 -0
  54. package/components/Icon/Icon.svelte +7 -0
  55. package/components/Icon/Icon.svelte.d.ts +23 -0
  56. package/components/ModalWindow/Modal.scss +28 -0
  57. package/components/ModalWindow/Modal.stories.d.ts +29 -0
  58. package/components/ModalWindow/Modal.stories.js +20 -0
  59. package/components/ModalWindow/Modal.svelte +641 -0
  60. package/components/ModalWindow/Modal.svelte.d.ts +23 -0
  61. package/components/Pagination/Pagination.scss +83 -0
  62. package/components/Pagination/Pagination.stories.d.ts +29 -0
  63. package/components/Pagination/Pagination.stories.js +18 -0
  64. package/components/Pagination/Pagination.svelte +702 -0
  65. package/components/Pagination/Pagination.svelte.d.ts +18 -0
  66. package/components/RadioButton/RadioButton.scss +28 -0
  67. package/components/RadioButton/RadioButton.stories.d.ts +35 -0
  68. package/components/RadioButton/RadioButton.stories.js +25 -0
  69. package/components/RadioButton/RadioButton.svelte +616 -0
  70. package/components/RadioButton/RadioButton.svelte.d.ts +41 -0
  71. package/components/Sidebar/Sidebar.scss +115 -0
  72. package/components/Sidebar/Sidebar.stories.d.ts +29 -0
  73. package/components/Sidebar/Sidebar.stories.js +27 -0
  74. package/components/Sidebar/Sidebar.svelte +722 -0
  75. package/components/Sidebar/Sidebar.svelte.d.ts +33 -0
  76. package/components/Switches/Switch.scss +12 -0
  77. package/components/Switches/Switch.stories.d.ts +87 -0
  78. package/components/Switches/Switch.stories.js +50 -0
  79. package/components/Switches/Switch.svelte +595 -0
  80. package/components/Switches/Switch.svelte.d.ts +29 -0
  81. package/components/Tab/Tab.scss +30 -0
  82. package/components/Tab/Tab.stories.d.ts +23 -0
  83. package/components/Tab/Tab.stories.js +19 -0
  84. package/components/Tab/Tab.svelte +615 -0
  85. package/components/Tab/Tab.svelte.d.ts +19 -0
  86. package/components/Table/Table.scss +38 -0
  87. package/components/Table/Table.stories.d.ts +28 -0
  88. package/components/Table/Table.stories.js +21 -0
  89. package/components/Table/Table.svelte +137 -0
  90. package/components/Table/Table.svelte.d.ts +35 -0
  91. package/components/Tooltip/Tooltip.scss +29 -0
  92. package/components/Tooltip/Tooltip.stories.d.ts +40 -0
  93. package/components/Tooltip/Tooltip.stories.js +24 -0
  94. package/components/Tooltip/Tooltip.svelte +622 -0
  95. package/components/Tooltip/Tooltip.svelte.d.ts +21 -0
  96. package/components/common.scss +789 -0
  97. package/components/textField/TextField.scss +34 -0
  98. package/components/textField/TextField.stories.d.ts +85 -0
  99. package/components/textField/TextField.stories.js +32 -0
  100. package/components/textField/TextField.svelte +607 -0
  101. package/components/textField/TextField.svelte.d.ts +33 -0
  102. package/components/variable.scss +134 -0
  103. package/index.d.ts +17 -1
  104. package/index.js +17 -1
  105. package/package.json +60 -1
@@ -1,48 +1,117 @@
1
- import Button from './Button.svelte';
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
- argTypes: {
7
- backgroundColor: {
8
- control: string;
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
- size: {
11
- control: {
12
- type: string;
13
- };
14
- options: string[];
16
+ };
17
+ };
18
+ export declare const rightIcon: {
19
+ args: {
20
+ icon: {
21
+ state: boolean;
22
+ name: string;
23
+ position: string;
15
24
  };
16
- color: {
17
- control: {
18
- type: string;
19
- };
20
- options: string[];
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 default _default;
25
- export declare const Primary: {
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
- iscolor: boolean;
28
- label: string;
100
+ config: string;
29
101
  };
30
102
  };
31
- export declare const Secondary: {
103
+ export declare const primaryOutlineBtnMedium: {
32
104
  args: {
33
- label: string;
34
- color: string;
105
+ config: string;
35
106
  };
36
107
  };
37
- export declare const Large: {
108
+ export declare const successBtnMedium: {
38
109
  args: {
39
- size: string;
40
- label: string;
110
+ config: string;
41
111
  };
42
112
  };
43
- export declare const Small: {
113
+ export declare const successOutlineBtnMedium: {
44
114
  args: {
45
- size: string;
46
- label: string;
115
+ config: string;
47
116
  };
48
117
  };
@@ -1,43 +1,104 @@
1
- import Button from './Button.svelte';
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
- argTypes: {
8
- backgroundColor: { control: 'color' },
9
- size: {
10
- control: { type: 'select' },
11
- options: ['sm', 'md', 'lg'],
12
- },
13
- color: {
14
- control: { type: 'select' },
15
- options: ['primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark']
16
- }
17
- },
18
- };
19
- // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
20
- export const Primary = {
21
- args: {
22
- iscolor: true,
23
- label: 'Button',
24
- },
25
- };
26
- export const Secondary = {
27
- args: {
28
- label: 'Button',
29
- color: 'secondary'
30
- },
31
- };
32
- export const Large = {
33
- args: {
34
- size: 'lg',
35
- label: 'Button',
36
- },
37
- };
38
- export const Small = {
39
- args: {
40
- size: 'sm',
41
- label: 'Button',
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
  };