@itcase/ui 1.2.19 → 1.2.21

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 (182) hide show
  1. package/dist/cjs/components/Accordion.js +3 -2
  2. package/dist/cjs/components/Choice.js +1 -1
  3. package/dist/cjs/components/InputPassword.js +6 -6
  4. package/dist/cjs/components/Radio.js +85 -8
  5. package/dist/cjs/components/Switch.js +12 -8
  6. package/dist/cjs/components/Tile.js +3 -3
  7. package/dist/cjs/constants/componentProps/textColor.js +1 -1
  8. package/dist/cjs/constants/componentProps/textColorHover.js +1 -1
  9. package/dist/components/Accordion.js +3 -2
  10. package/dist/components/Choice.js +1 -1
  11. package/dist/components/InputPassword.js +6 -6
  12. package/dist/components/Radio.js +86 -5
  13. package/dist/components/Switch.js +12 -4
  14. package/dist/components/Tile.js +3 -3
  15. package/dist/constants/componentProps/textColor.js +1 -1
  16. package/dist/constants/componentProps/textColorHover.js +1 -1
  17. package/dist/css/components/Accordion/Accordion.css +1 -0
  18. package/dist/css/components/DatePicker/DatePicker.css +12 -12
  19. package/dist/css/components/Icon/Icon.css +4 -2
  20. package/dist/css/mixins/mixin_elevation.css +0 -2
  21. package/dist/css/mixins/mixin_typography.css +104 -84
  22. package/dist/css/mixins/mixin_utils.css +1 -1
  23. package/dist/css/styles/border-color/border-color.css +4 -2
  24. package/dist/css/styles/text-gradient/text-gradient.css +9 -4
  25. package/dist/css/tokens/colors.css +105 -0
  26. package/dist/css/tokens/elevation.css +10 -0
  27. package/dist/css/tokens/settings.css +31 -0
  28. package/dist/css/tokens/typography.css +127 -0
  29. package/dist/stories/Accordion.mdx +11 -0
  30. package/dist/stories/Accordion.stories.js +49 -32
  31. package/dist/stories/AccordionItem.mdx +15 -0
  32. package/dist/stories/AccordionItem.stories.js +69 -69
  33. package/dist/stories/AlignContent.mdx +85 -0
  34. package/dist/stories/AlignItems.mdx +74 -0
  35. package/dist/stories/AlignItems.stories.js +88 -0
  36. package/dist/stories/AlignSelf.mdx +85 -0
  37. package/dist/stories/AlignSelf.stories.js +101 -0
  38. package/dist/stories/Appearance.mdx +24 -9
  39. package/dist/stories/Appearance.stories.js +77 -23
  40. package/dist/stories/Avatar.mdx +23 -0
  41. package/dist/stories/Avatar.stories.js +69 -64
  42. package/dist/stories/Badge.mdx +20 -0
  43. package/dist/stories/Badge.stories.js +43 -44
  44. package/dist/stories/Button.mdx +48 -0
  45. package/dist/stories/Button.stories.js +26 -186
  46. package/dist/stories/Cell.mdx +23 -0
  47. package/dist/stories/Cell.stories.js +119 -119
  48. package/dist/stories/Checkbox.mdx +24 -0
  49. package/dist/stories/Checkbox.stories.js +42 -34
  50. package/dist/stories/Chips.mdx +31 -0
  51. package/dist/stories/Chips.stories.js +22 -67
  52. package/dist/stories/Choice.mdx +11 -0
  53. package/dist/stories/Choice.stories.js +59 -61
  54. package/dist/stories/Code.mdx +11 -0
  55. package/dist/stories/Code.stories.js +37 -40
  56. package/dist/stories/Columns.mdx +51 -0
  57. package/dist/stories/Columns.stories.js +80 -0
  58. package/dist/stories/DatePicker.mdx +31 -0
  59. package/dist/stories/DatePicker.stories.js +58 -59
  60. package/dist/stories/Dev.mdx +9 -0
  61. package/dist/stories/DevMode.mdx +8 -0
  62. package/dist/stories/Direction.mdx +84 -0
  63. package/dist/stories/Direction.stories.js +93 -0
  64. package/dist/stories/Divider.mdx +35 -0
  65. package/dist/stories/Divider.stories.js +28 -29
  66. package/dist/stories/Dot.mdx +19 -0
  67. package/dist/stories/Dot.stories.js +38 -39
  68. package/dist/stories/Drawer.mdx +11 -0
  69. package/dist/stories/Drawer.stories.js +75 -0
  70. package/dist/stories/Dropdown.mdx +12 -0
  71. package/dist/stories/Dropdown.stories.js +30 -29
  72. package/dist/stories/DropdownItem.mdx +19 -0
  73. package/dist/stories/DropdownItem.stories.js +76 -78
  74. package/dist/stories/Flex.stories.js +47 -0
  75. package/dist/stories/FlexAlignContent.stories.js +102 -0
  76. package/dist/stories/FlexAlignItems.stories.js +91 -0
  77. package/dist/stories/FlexAlignSelf.stories.js +97 -0
  78. package/dist/stories/FlexDirection.stories.js +112 -0
  79. package/dist/stories/FlexGrow.stories.js +69 -0
  80. package/dist/stories/FlexJustifyContent.stories.js +98 -0
  81. package/dist/stories/FlexOrder.stories.js +76 -0
  82. package/dist/stories/FlexWrap.stories.js +89 -0
  83. package/dist/stories/Grid.stories.js +202 -0
  84. package/dist/stories/Group.mdx +9 -0
  85. package/dist/stories/{Tab.group.stories.js → Group.stories.js} +60 -56
  86. package/dist/stories/Grow.mdx +40 -0
  87. package/dist/stories/Icon.mdx +15 -0
  88. package/dist/stories/Icon.stories.js +84 -82
  89. package/dist/stories/Image.mdx +15 -0
  90. package/dist/stories/Image.stories.js +134 -0
  91. package/dist/stories/Input.mdx +31 -0
  92. package/dist/stories/Input.stories.js +26 -26
  93. package/dist/stories/InputPassword.mdx +15 -0
  94. package/dist/stories/InputPassword.stories.js +32 -34
  95. package/dist/stories/JustifyContent.mdx +89 -0
  96. package/dist/stories/JustifyContent.stories.js +96 -0
  97. package/dist/stories/Label.mdx +31 -0
  98. package/dist/stories/Label.stories.js +63 -53
  99. package/dist/stories/Loader.mdx +31 -0
  100. package/dist/stories/Loader.stories.js +26 -28
  101. package/dist/stories/Logo.mdx +19 -0
  102. package/dist/stories/Logo.stories.js +28 -28
  103. package/dist/stories/MenuItem.mdx +15 -0
  104. package/dist/stories/MenuItem.stories.js +156 -91
  105. package/dist/stories/Message.mdx +12 -0
  106. package/dist/stories/Message.stories.js +34 -0
  107. package/dist/stories/ModalConfirm.stories.js +48 -47
  108. package/dist/stories/ModalDefault.stories.js +21 -20
  109. package/dist/stories/Notification.mdx +23 -0
  110. package/dist/stories/Notification.stories.js +24 -47
  111. package/dist/stories/Order.mdx +52 -0
  112. package/dist/stories/Overview.mdx +1 -2
  113. package/dist/stories/Pagination.mdx +11 -0
  114. package/dist/stories/Pagination.stories.js +24 -27
  115. package/dist/stories/Playground.mdx +1 -2
  116. package/dist/stories/Radio.mdx +29 -0
  117. package/dist/stories/Radio.stories.js +32 -33
  118. package/dist/stories/Response.mdx +18 -0
  119. package/dist/stories/Response.stories.js +66 -0
  120. package/dist/stories/SearchInput.mdx +19 -0
  121. package/dist/stories/{Search-input.stories.js → SearchInput.stories.js} +79 -62
  122. package/dist/stories/Segmented.mdx +11 -0
  123. package/dist/stories/Segmented.stories.js +49 -50
  124. package/dist/stories/Select.stories.js +155 -155
  125. package/dist/stories/Size.mdx +35 -0
  126. package/dist/stories/Size.stories.js +101 -0
  127. package/dist/stories/Skeleton.mdx +9 -0
  128. package/dist/stories/State.mdx +19 -0
  129. package/dist/stories/State.stories.js +70 -0
  130. package/dist/stories/Switch.mdx +23 -0
  131. package/dist/stories/Switch.stories.js +23 -23
  132. package/dist/stories/Text.mdx +35 -0
  133. package/dist/stories/Text.stories.js +172 -0
  134. package/dist/stories/Textarea.mdx +15 -0
  135. package/dist/stories/Textarea.stories.js +27 -27
  136. package/dist/stories/Tile.mdx +19 -0
  137. package/dist/stories/Tile.stories.js +111 -96
  138. package/dist/stories/Title.mdx +31 -0
  139. package/dist/stories/Title.stories.js +168 -0
  140. package/dist/stories/Tooltip.mdx +19 -0
  141. package/dist/stories/Tooltip.stories.js +164 -0
  142. package/dist/stories/WithTooltip.mdx +9 -0
  143. package/dist/stories/Wrap.mdx +52 -0
  144. package/dist/stories/Wrap.stories.js +74 -0
  145. package/dist/types/components/Accordion/Accordion.interface.d.ts +4 -0
  146. package/dist/types/components/Choice/Choice.interface.d.ts +0 -2
  147. package/dist/types/components/InputPassword/InputPassword.interface.d.ts +10 -8
  148. package/dist/types/components/Tile/Tile.d.ts +1 -1
  149. package/dist/types/components/Tile/Tile.interface.d.ts +3 -1
  150. package/dist/types/config/forms/datepicker.d.ts +18 -0
  151. package/dist/types/config/forms/index.d.ts +4 -0
  152. package/dist/types/config/forms/input.d.ts +14 -0
  153. package/dist/types/config/forms/select.d.ts +50 -0
  154. package/package.json +36 -42
  155. package/dist/Radio-BQo97TZL.js +0 -89
  156. package/dist/Radio-oMf0vN7T.js +0 -86
  157. package/dist/Switch-B5yVEqxz.js +0 -14
  158. package/dist/Switch-DEXsrPCo.js +0 -12
  159. package/dist/cjs/components/FormField.js +0 -122
  160. package/dist/components/FormField.js +0 -116
  161. package/dist/css/mixins/mixin.css +0 -78
  162. package/dist/stories/FormFieldCheckbox.stories.js +0 -77
  163. package/dist/stories/FormFieldChoice.stories.js +0 -75
  164. package/dist/stories/FormFieldDatepicker.stories.js +0 -51
  165. package/dist/stories/FormFieldFileInput.stories.js +0 -58
  166. package/dist/stories/FormFieldInput.stories.js +0 -66
  167. package/dist/stories/FormFieldInputPassword.stories.js +0 -66
  168. package/dist/stories/FormFieldMultiBadgeSelect.stories.js +0 -132
  169. package/dist/stories/FormFieldMultiSelect.stories.js +0 -127
  170. package/dist/stories/FormFieldSelect.stories.js +0 -99
  171. package/dist/stories/FormFieldSelectGroup.stories.js +0 -84
  172. package/dist/stories/NotFound.stories.js +0 -93
  173. package/dist/stories/Tab.appearance.stories.js +0 -260
  174. package/dist/stories/Tab.size.stories.js +0 -259
  175. package/dist/stories/Tab.state.stories.js +0 -227
  176. package/dist/types/components/FormField/ChoiceField.d.ts +0 -8
  177. package/dist/types/components/FormField/FormField.d.ts +0 -9
  178. package/dist/types/components/FormField/FormFiled.interface.d.ts +0 -77
  179. package/dist/types/components/FormField/PasswordField.d.ts +0 -9
  180. package/dist/types/components/FormField/SelectField.d.ts +0 -9
  181. package/dist/types/components/FormField/SwitchField.d.ts +0 -8
  182. package/dist/types/components/FormField/index.d.ts +0 -6
@@ -1,93 +0,0 @@
1
- import { buttonConfig } from '@itcase/ui/components/Button'
2
- import { Response } from '@itcase/ui/components/Response'
3
- import {
4
- fillHoverProps,
5
- fillProps,
6
- shapeProps,
7
- sizeProps,
8
- textColorProps,
9
- textSizeProps,
10
- widthProps,
11
- } from '@itcase/ui/constants'
12
-
13
- import buttonAppearance from 'src/components/Button/appearance.json'
14
-
15
- buttonConfig.setAppearance(buttonAppearance)
16
-
17
- export default {
18
- title: 'Components / NotFound',
19
- component: Response,
20
- argTypes: {
21
- advancedProps: { control: 'boolean' },
22
- buttonAfter: {
23
- if: { arg: 'advancedProps' },
24
- },
25
- buttonBefore: {
26
- if: { arg: 'advancedProps' },
27
- },
28
- buttonFill: {
29
- options: fillProps,
30
- control: 'select',
31
- },
32
- buttonFillHover: {
33
- options: fillHoverProps,
34
- control: 'select',
35
- },
36
- buttonLabelTextColor: {
37
- options: textColorProps,
38
- control: 'select',
39
- },
40
- buttonLabelTextSize: {
41
- options: textSizeProps,
42
- control: 'inline-radio',
43
- },
44
- buttonShape: {
45
- options: shapeProps,
46
- control: 'inline-radio',
47
- },
48
- buttonSize: {
49
- options: sizeProps,
50
- control: 'inline-radio',
51
- },
52
- buttonWidth: {
53
- options: widthProps,
54
- control: 'inline-radio',
55
- },
56
- messageTextColor: {
57
- options: textColorProps,
58
- control: 'select',
59
- },
60
- messageTextSize: {
61
- options: textSizeProps,
62
- control: 'inline-radio',
63
- },
64
- buttonAppearance: {
65
- options: [
66
- null,
67
- 'accent',
68
- 'primary',
69
- 'secondary',
70
- 'surfacePrimary',
71
- 'surfaceSecondary',
72
- 'surfaceTertiary',
73
- 'surfaceDisabled',
74
- ],
75
- control: 'inline-radio',
76
- },
77
- },
78
- }
79
-
80
- export const Default = {
81
- args: {
82
- imageSrc: 'assets/img/search.svg',
83
- message: 'Nothing found',
84
- messageTextColor: 'surfaceTextPrimary',
85
- messageTextSize: 'l',
86
- buttonLabel: 'Label',
87
- buttonLabelTextSize: 'l',
88
- buttonShape: 'rounded',
89
- buttonSize: 'xxl',
90
- buttonWidth: 'fill',
91
- buttonAppearance: 'surfaceSecondary',
92
- },
93
- }
@@ -1,260 +0,0 @@
1
- import { Tab, tabConfig } from '@itcase/ui/components/Tab'
2
- import {
3
- fillHoverProps,
4
- fillProps,
5
- shapeProps,
6
- sizeProps,
7
- textColorActiveProps,
8
- textColorHoverProps,
9
- textColorProps,
10
- textGradientProps,
11
- textSizeProps,
12
- textStyleProps,
13
- textWeightProps,
14
- textWrapProps,
15
- underlineProps,
16
- } from '@itcase/ui/constants'
17
-
18
- import tabAppearance from 'src/components/Tab/appearance.json'
19
-
20
- tabConfig.setAppearance(tabAppearance)
21
-
22
- export default {
23
- title: 'Atoms / Tab / Appearance',
24
- component: Tab,
25
- parameters: {
26
- controls: {
27
- exclude: [
28
- 'fillDesktop',
29
- 'fillMobile',
30
- 'fillTablet',
31
- 'linkFillDesktop',
32
- 'linkFillMobile',
33
- 'linkFillTablet',
34
- 'shapeDesktop',
35
- 'shapeMobile',
36
- 'shapeTablet',
37
- 'sizeDesktop',
38
- 'sizeMobile',
39
- 'sizeTablet',
40
- 'typeDesktop',
41
- 'typeMobile',
42
- 'typeTablet',
43
- ],
44
- },
45
- },
46
- argTypes: {
47
- advancedProps: { control: 'boolean' },
48
- onClick: {
49
- if: { arg: 'advancedProps' },
50
- },
51
- onMouseEnter: {
52
- if: { arg: 'advancedProps' },
53
- },
54
- after: {
55
- if: { arg: 'advancedProps' },
56
- },
57
- before: {
58
- if: { arg: 'advancedProps' },
59
- },
60
- children: {
61
- if: { arg: 'advancedProps' },
62
- },
63
- className: {
64
- if: { arg: 'advancedProps' },
65
- },
66
- href: {
67
- if: { arg: 'advancedProps' },
68
- },
69
- link: {
70
- if: { arg: 'advancedProps' },
71
- },
72
- LinkComponent: {
73
- if: { arg: 'advancedProps' },
74
- },
75
- rel: {
76
- if: { arg: 'advancedProps' },
77
- },
78
- target: {
79
- if: { arg: 'advancedProps' },
80
- },
81
- isActive: {
82
- control: 'boolean',
83
- },
84
- appearance: {
85
- options: [
86
- null,
87
- 'any',
88
- 'surfacePrimary',
89
- 'surfaceSecondary',
90
- 'surfaceTertiary',
91
- 'surfaceQuaternary',
92
- 'accent',
93
- 'primary',
94
- 'secondary',
95
- ],
96
- control: 'inline-radio',
97
- },
98
- badge: {
99
- control: 'boolean',
100
- },
101
- badgeSize: {
102
- options: sizeProps,
103
- control: 'inline-radio',
104
- },
105
- badgeFill: {
106
- options: fillProps,
107
- control: 'select',
108
- },
109
- badgeTextColor: {
110
- options: textColorProps,
111
- control: 'select',
112
- },
113
- badgeTextSize: {
114
- options: textSizeProps,
115
- control: 'inline-radio',
116
- },
117
- fill: {
118
- options: fillProps,
119
- control: 'select',
120
- },
121
- fillHover: {
122
- options: fillHoverProps,
123
- control: 'select',
124
- },
125
- labelColor: {
126
- options: textColorProps,
127
- control: 'select',
128
- },
129
- labelColorActive: {
130
- if: { arg: 'advancedProps' },
131
- options: textColorActiveProps,
132
- control: 'select',
133
- },
134
- labelTextSize: {
135
- options: textSizeProps,
136
- control: 'inline-radio',
137
- },
138
- labelTextColorHover: {
139
- if: { arg: 'advancedProps' },
140
- options: textColorHoverProps,
141
- control: 'inline-radio',
142
- },
143
- labelTextGradient: {
144
- if: { arg: 'advancedProps' },
145
- options: textGradientProps,
146
- control: 'inline-radio',
147
- },
148
- labelTextStyle: {
149
- options: textStyleProps,
150
- control: 'inline-radio',
151
- if: { arg: 'advancedProps' },
152
- },
153
- labelTextWeight: {
154
- options: textWeightProps,
155
- control: 'inline-radio',
156
- },
157
- labelTextWrap: {
158
- options: textWrapProps,
159
- control: 'inline-radio',
160
- },
161
- linkFill: {
162
- if: { arg: 'advancedProps' },
163
- options: fillProps,
164
- control: 'select',
165
- },
166
- shape: {
167
- options: shapeProps,
168
- control: 'inline-radio',
169
- },
170
- size: {
171
- options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],
172
- control: 'inline-radio',
173
- },
174
- type: {
175
- if: { arg: 'advancedProps' },
176
- },
177
- underline: {
178
- if: { arg: 'advancedProps' },
179
- options: underlineProps,
180
- control: 'inline-radio',
181
- },
182
- badgeAppearance: {
183
- options: [
184
- 'surfacePrimary',
185
- 'surfaceSecondary',
186
- 'surfaceTertiary',
187
- 'surfaceQuaternary',
188
- 'accent',
189
- 'primary',
190
- 'secondary',
191
- 'disabled',
192
- ],
193
- control: 'inline-radio',
194
- },
195
- },
196
- }
197
-
198
- export const Default = {
199
- args: {
200
- appearance: 'any',
201
- label: 'Label',
202
- size: 'normal',
203
- labelTextSize: 'm',
204
- badge: true,
205
- badgeSize: 'xs',
206
- badgeAppearance: 'accent',
207
- badgeTextSize: 'xs',
208
- badgeValue: '3',
209
- },
210
- }
211
-
212
- export const SurfacePrimary = {
213
- args: {
214
- ...Default.args,
215
- appearance: 'surfacePrimary',
216
- },
217
- }
218
-
219
- export const SurfaceSecondary = {
220
- args: {
221
- ...Default.args,
222
- appearance: 'surfaceSecondary',
223
- },
224
- }
225
-
226
- export const SurfaceTertiary = {
227
- args: {
228
- ...Default.args,
229
- appearance: 'surfaceTertiary',
230
- },
231
- }
232
-
233
- export const SurfaceQuaternary = {
234
- args: {
235
- ...Default.args,
236
- appearance: 'surfaceQuaternary',
237
- },
238
- }
239
-
240
- export const Accent = {
241
- args: {
242
- ...Default.args,
243
- appearance: 'accent',
244
- badgeAppearance: 'surfacePrimary',
245
- },
246
- }
247
-
248
- export const Primary = {
249
- args: {
250
- ...Default.args,
251
- appearance: 'primary',
252
- },
253
- }
254
-
255
- export const Secondary = {
256
- args: {
257
- ...Default.args,
258
- appearance: 'secondary',
259
- },
260
- }
@@ -1,259 +0,0 @@
1
- import { Tab, tabConfig } from '@itcase/ui/components/Tab'
2
- import {
3
- fillHoverProps,
4
- fillProps,
5
- shapeProps,
6
- sizeProps,
7
- textColorActiveProps,
8
- textColorHoverProps,
9
- textColorProps,
10
- textGradientProps,
11
- textSizeProps,
12
- textStyleProps,
13
- textWeightProps,
14
- textWrapProps,
15
- underlineProps,
16
- } from '@itcase/ui/constants'
17
-
18
- import tabAppearance from 'src/components/Tab/appearance.json'
19
-
20
- tabConfig.setAppearance(tabAppearance)
21
-
22
- export default {
23
- title: 'Atoms / Tab / Size',
24
- component: Tab,
25
- parameters: {
26
- controls: {
27
- exclude: [
28
- 'fillDesktop',
29
- 'fillMobile',
30
- 'fillTablet',
31
- 'linkFillDesktop',
32
- 'linkFillMobile',
33
- 'linkFillTablet',
34
- 'shapeDesktop',
35
- 'shapeMobile',
36
- 'shapeTablet',
37
- 'sizeDesktop',
38
- 'sizeMobile',
39
- 'sizeTablet',
40
- 'typeDesktop',
41
- 'typeMobile',
42
- 'typeTablet',
43
- ],
44
- },
45
- },
46
- argTypes: {
47
- advancedProps: { control: 'boolean' },
48
- onClick: {
49
- if: { arg: 'advancedProps' },
50
- },
51
- onMouseEnter: {
52
- if: { arg: 'advancedProps' },
53
- },
54
- after: {
55
- if: { arg: 'advancedProps' },
56
- },
57
- before: {
58
- if: { arg: 'advancedProps' },
59
- },
60
- children: {
61
- if: { arg: 'advancedProps' },
62
- },
63
- className: {
64
- if: { arg: 'advancedProps' },
65
- },
66
- href: {
67
- if: { arg: 'advancedProps' },
68
- },
69
- link: {
70
- if: { arg: 'advancedProps' },
71
- },
72
- LinkComponent: {
73
- if: { arg: 'advancedProps' },
74
- },
75
- rel: {
76
- if: { arg: 'advancedProps' },
77
- },
78
- target: {
79
- if: { arg: 'advancedProps' },
80
- },
81
- isActive: {
82
- control: 'boolean',
83
- },
84
- appearance: {
85
- options: [
86
- null,
87
- 'any',
88
- 'surfacePrimary',
89
- 'surfaceSecondary',
90
- 'surfaceTertiary',
91
- 'surfaceQuaternary',
92
- 'accent',
93
- 'primary',
94
- 'secondary',
95
- ],
96
- control: 'inline-radio',
97
- },
98
- badge: {
99
- control: 'boolean',
100
- },
101
- badgeSize: {
102
- options: sizeProps,
103
- control: 'inline-radio',
104
- },
105
- badgeFill: {
106
- options: fillProps,
107
- control: 'select',
108
- },
109
- badgeTextColor: {
110
- options: textColorProps,
111
- control: 'select',
112
- },
113
- badgeTextSize: {
114
- options: textSizeProps,
115
- control: 'inline-radio',
116
- },
117
- fill: {
118
- options: fillProps,
119
- control: 'select',
120
- },
121
- fillHover: {
122
- options: fillHoverProps,
123
- control: 'select',
124
- },
125
- labelColor: {
126
- options: textColorProps,
127
- control: 'select',
128
- },
129
- labelColorActive: {
130
- if: { arg: 'advancedProps' },
131
- options: textColorActiveProps,
132
- control: 'select',
133
- },
134
- labelTextSize: {
135
- options: textSizeProps,
136
- control: 'inline-radio',
137
- },
138
- labelTextColorHover: {
139
- if: { arg: 'advancedProps' },
140
- options: textColorHoverProps,
141
- control: 'inline-radio',
142
- },
143
- labelTextGradient: {
144
- if: { arg: 'advancedProps' },
145
- options: textGradientProps,
146
- control: 'inline-radio',
147
- },
148
- labelTextStyle: {
149
- options: textStyleProps,
150
- control: 'inline-radio',
151
- if: { arg: 'advancedProps' },
152
- },
153
- labelTextWeight: {
154
- options: textWeightProps,
155
- control: 'inline-radio',
156
- },
157
- labelTextWrap: {
158
- options: textWrapProps,
159
- control: 'inline-radio',
160
- },
161
- linkFill: {
162
- if: { arg: 'advancedProps' },
163
- options: fillProps,
164
- control: 'select',
165
- },
166
- shape: {
167
- options: shapeProps,
168
- control: 'inline-radio',
169
- },
170
- size: {
171
- options: ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'],
172
- control: 'inline-radio',
173
- },
174
- type: {
175
- if: { arg: 'advancedProps' },
176
- },
177
- underline: {
178
- if: { arg: 'advancedProps' },
179
- options: underlineProps,
180
- control: 'inline-radio',
181
- },
182
- badgeAppearance: {
183
- options: [
184
- 'surfacePrimary',
185
- 'surfaceSecondary',
186
- 'surfaceTertiary',
187
- 'surfaceQuaternary',
188
- 'accent',
189
- 'primary',
190
- 'secondary',
191
- 'disabled',
192
- ],
193
- control: 'inline-radio',
194
- },
195
- },
196
- }
197
-
198
- export const Default = {
199
- args: {
200
- appearance: 'primary',
201
- label: 'Label',
202
- size: 'm',
203
- labelTextSize: 'm',
204
- badge: true,
205
- badgeSize: 'xs',
206
- badgeAppearance: 'accent',
207
- badgeTextSize: 'xs',
208
- badgeValue: '3',
209
- },
210
- }
211
-
212
- export const SizeXXS = {
213
- args: {
214
- ...Default.args,
215
- size: 'xxs',
216
- },
217
- }
218
-
219
- export const SizeXS = {
220
- args: {
221
- ...Default.args,
222
- size: 'xs',
223
- },
224
- }
225
-
226
- export const SizeS = {
227
- args: {
228
- ...Default.args,
229
- size: 's',
230
- },
231
- }
232
-
233
- export const SizeM = {
234
- args: {
235
- ...Default.args,
236
- size: 'm',
237
- },
238
- }
239
-
240
- export const SizeL = {
241
- args: {
242
- ...Default.args,
243
- size: 'l',
244
- },
245
- }
246
-
247
- export const SizeXL = {
248
- args: {
249
- ...Default.args,
250
- size: 'xl',
251
- },
252
- }
253
-
254
- export const SizeXXL = {
255
- args: {
256
- ...Default.args,
257
- size: 'xxl',
258
- },
259
- }