@itcase/ui 1.8.23 → 1.8.24
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/{Button_cjs_MfWRETXI.js → Button_cjs_CYUpbdMO.js} +133 -52
- package/dist/{Button_es_zW2pQTwL.js → Button_es_Dp6yFZgn.js} +133 -52
- package/dist/{DatePicker_cjs_uDJmwWkk.js → DatePicker_cjs_DamcZFbX.js} +2 -2
- package/dist/{DatePicker_es_5r0isX1_.js → DatePicker_es_Bm_onmmb.js} +2 -2
- package/dist/{Divider_cjs_DzFVtGkF.js → Divider_cjs_DhqcldLH.js} +6 -2
- package/dist/{Divider_es_BdU9qjKa.js → Divider_es_BEYLRagS.js} +6 -2
- package/dist/{DropdownItem_cjs_C6Jx7-kx.js → DropdownItem_cjs_B_7anyaJ.js} +1 -1
- package/dist/{DropdownItem_es_UdkGGVtg.js → DropdownItem_es_B4EZYdJA.js} +1 -1
- package/dist/{Label_cjs_jN0dxo1q.js → Label_cjs_ByGAWJcj.js} +168 -28
- package/dist/{Label_es_CFQzN-2m.js → Label_es_BtwZ3a2V.js} +168 -28
- package/dist/{Loader_cjs_3VRzFLI2.js → Loader_cjs___VikiqS.js} +36 -1
- package/dist/{Loader_es_DEYowVdU.js → Loader_es_DHKB6tTw.js} +36 -1
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +45 -0
- package/dist/cjs/components/Breadcrumbs.js +46 -57
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +1 -1
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +4 -4
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/Label.js +1 -1
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +27 -36
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Tab/stories/__mock__.js +14 -0
- package/dist/cjs/components/Tab.js +133 -39
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Breadcrumbs/stories/__mock__.js +43 -0
- package/dist/components/Breadcrumbs.js +46 -57
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +1 -1
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +4 -4
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Label.js +1 -1
- package/dist/components/Loader.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +27 -36
- package/dist/components/Select.js +1 -1
- package/dist/components/Tab/stories/__mock__.js +12 -0
- package/dist/components/Tab.js +134 -40
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +22 -0
- package/dist/css/components/Button/Button.css +4 -4
- package/dist/css/components/Label/Label.css +10 -9
- package/dist/css/components/Loader/Loader.css +21 -2
- package/dist/stories/Plsyground.mdx +1 -3
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +2 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +28 -35
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +4 -3
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +10 -0
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +7 -6
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +8 -4
- package/dist/types/components/Button/appearance/buttonError.d.ts +14 -2
- package/dist/types/components/Button/appearance/buttonInfo.d.ts +19 -4
- package/dist/types/components/Button/appearance/buttonPrimary.d.ts +13 -0
- package/dist/types/components/Button/appearance/buttonSecondary.d.ts +13 -0
- package/dist/types/components/Button/appearance/buttonSize.d.ts +7 -0
- package/dist/types/components/Button/appearance/buttonStyle.d.ts +0 -2
- package/dist/types/components/Button/appearance/buttonSuccess.d.ts +14 -2
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +11 -8
- package/dist/types/components/Button/appearance/buttonWarning.d.ts +8 -4
- package/dist/types/components/Label/appearance/labelAccent.d.ts +10 -1
- package/dist/types/components/Label/appearance/labelDanger.d.ts +20 -0
- package/dist/types/components/Label/appearance/labelDisable.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelError.d.ts +13 -2
- package/dist/types/components/Label/appearance/labelInfo.d.ts +14 -2
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelStyle.d.ts +0 -2
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +11 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +14 -3
- package/dist/types/components/Label/appearance/labelWarning.d.ts +11 -0
- package/dist/types/components/Loader/appearance/loaderDanger.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderError.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderInfo.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderSuccess.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderWarning.d.ts +7 -0
- package/dist/types/components/Response/appearance/responceConfirm.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceFail.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceNothingFound.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceRefresh.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseError.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseWarning.d.ts +2 -3
- package/dist/types/components/Tab/appearance/tabError.d.ts +13 -0
- package/dist/types/components/Tab/appearance/tabSize.d.ts +41 -0
- package/dist/types/components/Tab/appearance/tabStyle.d.ts +2 -2
- package/dist/types/components/Tab/appearance/tabSuccess.d.ts +13 -0
- package/dist/types/components/Tab/appearance/tabSurface.d.ts +29 -24
- package/dist/types/components/Tab/appearance/tabWarning.d.ts +13 -0
- package/dist/types/components/Tab/stories/__mock__/index.d.ts +22 -0
- package/package.json +5 -5
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var Tooltip = require('./Tooltip_cjs_CaocDcQ5.js');
|
|
8
8
|
var Link = require('./Link_cjs_DbRGq2Yk.js');
|
|
9
|
-
var Loader = require('./
|
|
9
|
+
var Loader = require('./Loader_cjs___VikiqS.js');
|
|
10
10
|
var Text = require('./Text_cjs_DPhKj3wf.js');
|
|
11
11
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
12
12
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
@@ -21,8 +21,7 @@ var buttonAppearanceAccent = {
|
|
|
21
21
|
iconAfterFillIcon: 'accentItemPrimary',
|
|
22
22
|
iconBeforeFillIcon: 'accentItemPrimary',
|
|
23
23
|
iconFillIcon: 'accentItemPrimary',
|
|
24
|
-
|
|
25
|
-
loaderItemFill: 'accentItemPrimary',
|
|
24
|
+
loaderAppearance: 'accentPrimary',
|
|
26
25
|
},
|
|
27
26
|
accentPrimary: {
|
|
28
27
|
fill: 'accentPrimary',
|
|
@@ -32,8 +31,8 @@ var buttonAppearanceAccent = {
|
|
|
32
31
|
borderColor: 'accentBorderPrimary',
|
|
33
32
|
iconAfterFillIcon: 'accentItemPrimary',
|
|
34
33
|
iconBeforeFillIcon: 'accentItemPrimary',
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
iconFillIcon: 'accentItemPrimary',
|
|
35
|
+
loaderAppearance: 'accentPrimary',
|
|
37
36
|
},
|
|
38
37
|
accentSecondary: {
|
|
39
38
|
fill: 'accentPrimary',
|
|
@@ -41,8 +40,10 @@ var buttonAppearanceAccent = {
|
|
|
41
40
|
labelTextColor: 'accentTextSecondary',
|
|
42
41
|
labelTextColorHover: 'accentTextSecondary',
|
|
43
42
|
borderColor: 'accentBorderPrimary',
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
iconAfterFillIcon: 'accentItemPrimary',
|
|
44
|
+
iconBeforeFillIcon: 'accentItemPrimary',
|
|
45
|
+
iconFillIcon: 'accentItemPrimary',
|
|
46
|
+
loaderAppearance: 'accentPrimary',
|
|
46
47
|
},
|
|
47
48
|
};
|
|
48
49
|
|
|
@@ -52,16 +53,20 @@ var buttonAppearanceDanger = {
|
|
|
52
53
|
fillHover: 'dangerHover',
|
|
53
54
|
labelTextColor: 'dangerTextSecondary',
|
|
54
55
|
labelTextColorHover: 'dangerTextSecondary',
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
iconAfterFillIcon: 'dangerItemPrimary',
|
|
57
|
+
iconBeforeFillIcon: 'dangerItemPrimary',
|
|
58
|
+
iconFillIcon: 'dangerItemPrimary',
|
|
59
|
+
loaderAppearance: 'dangerPrimary',
|
|
57
60
|
},
|
|
58
61
|
dangerPrimary: {
|
|
59
62
|
fill: 'dangerPrimary',
|
|
60
63
|
fillHover: 'dangerHover',
|
|
61
64
|
labelTextColor: 'dangerTextPrimary',
|
|
62
65
|
labelTextColorHover: 'dangerTextPrimary',
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
iconAfterFillIcon: 'dangerItemPrimary',
|
|
67
|
+
iconBeforeFillIcon: 'dangerItemPrimary',
|
|
68
|
+
iconFillIcon: 'dangerItemPrimary',
|
|
69
|
+
loaderAppearance: 'dangerPrimary',
|
|
65
70
|
},
|
|
66
71
|
};
|
|
67
72
|
|
|
@@ -71,29 +76,56 @@ var buttonAppearanceError = {
|
|
|
71
76
|
fillHover: 'errorHover',
|
|
72
77
|
labelTextColor: 'errorTextPrimary',
|
|
73
78
|
labelTextColorHover: 'errorTextPrimary',
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
iconAfterFillIcon: 'errorItemPrimary',
|
|
80
|
+
iconBeforeFillIcon: 'errorItemPrimary',
|
|
81
|
+
iconFillIcon: 'errorItemPrimary',
|
|
82
|
+
loaderAppearance: 'errorPrimary',
|
|
83
|
+
},
|
|
84
|
+
errorPrimary: {
|
|
85
|
+
fill: 'errorPrimary',
|
|
86
|
+
fillHover: 'errorHover',
|
|
87
|
+
labelTextColor: 'errorTextPrimary',
|
|
88
|
+
labelTextColorHover: 'errorTextPrimary',
|
|
89
|
+
iconAfterFillIcon: 'errorItemPrimary',
|
|
90
|
+
iconBeforeFillIcon: 'errorItemPrimary',
|
|
91
|
+
iconFillIcon: 'errorItemPrimary',
|
|
92
|
+
loaderAppearance: 'errorPrimary',
|
|
76
93
|
},
|
|
77
94
|
};
|
|
78
95
|
|
|
79
96
|
var buttonAppearanceInfo = {
|
|
80
97
|
info: {
|
|
81
|
-
fill: '
|
|
82
|
-
fillHover: '
|
|
83
|
-
labelTextColor: '
|
|
84
|
-
labelTextColorHover: '
|
|
85
|
-
borderColor: '
|
|
86
|
-
|
|
87
|
-
|
|
98
|
+
fill: 'infoPrimary',
|
|
99
|
+
fillHover: 'infoPrimaryHover',
|
|
100
|
+
labelTextColor: 'infoTextPrimary',
|
|
101
|
+
labelTextColorHover: 'infoTextPrimary',
|
|
102
|
+
borderColor: 'infoBorderPrimary',
|
|
103
|
+
iconAfterFillIcon: 'infoItemPrimary',
|
|
104
|
+
iconBeforeFillIcon: 'infoItemPrimary',
|
|
105
|
+
iconFillIcon: 'infoItemPrimary',
|
|
106
|
+
loaderAppearance: 'infoPrimary',
|
|
107
|
+
},
|
|
108
|
+
infoPrimary: {
|
|
109
|
+
fill: 'infoPrimary',
|
|
110
|
+
fillHover: 'infoPrimaryHover',
|
|
111
|
+
labelTextColor: 'infoTextPrimary',
|
|
112
|
+
labelTextColorHover: 'infoTextPrimary',
|
|
113
|
+
borderColor: 'infoBorderPrimary',
|
|
114
|
+
iconAfterFillIcon: 'infoItemPrimary',
|
|
115
|
+
iconBeforeFillIcon: 'infoItemPrimary',
|
|
116
|
+
iconFillIcon: 'infoItemPrimary',
|
|
117
|
+
loaderAppearance: 'infoPrimary',
|
|
88
118
|
},
|
|
89
119
|
infoSecondary: {
|
|
90
|
-
fill: '
|
|
91
|
-
fillHover: '
|
|
92
|
-
labelTextColor: '
|
|
93
|
-
labelTextColorHover: '
|
|
94
|
-
borderColor: '
|
|
95
|
-
|
|
96
|
-
|
|
120
|
+
fill: 'infoPrimary',
|
|
121
|
+
fillHover: 'infoPrimaryHover',
|
|
122
|
+
labelTextColor: 'infoTextSecondary',
|
|
123
|
+
labelTextColorHover: 'infoTextSecondary',
|
|
124
|
+
borderColor: 'infoBorderPrimary',
|
|
125
|
+
iconAfterFillIcon: 'infoItemPrimary',
|
|
126
|
+
iconBeforeFillIcon: 'infoItemPrimary',
|
|
127
|
+
iconFillIcon: 'infoItemPrimary',
|
|
128
|
+
loaderAppearance: 'infoPrimary',
|
|
97
129
|
},
|
|
98
130
|
};
|
|
99
131
|
|
|
@@ -102,6 +134,19 @@ var buttonAppearancePrimary = {
|
|
|
102
134
|
fill: 'primaryPrimary',
|
|
103
135
|
fillHover: 'primaryPrimaryHover',
|
|
104
136
|
labelTextColor: 'primaryTextPrimary',
|
|
137
|
+
iconAfterFillIcon: 'primaryItemPrimary',
|
|
138
|
+
iconBeforeFillIcon: 'primaryItemPrimary',
|
|
139
|
+
iconFillIcon: 'primaryItemPrimary',
|
|
140
|
+
loaderAppearance: 'primaryPrimary',
|
|
141
|
+
},
|
|
142
|
+
primaryPrimary: {
|
|
143
|
+
fill: 'primaryPrimary',
|
|
144
|
+
fillHover: 'primaryPrimaryHover',
|
|
145
|
+
labelTextColor: 'primaryTextPrimary',
|
|
146
|
+
iconAfterFillIcon: 'primaryItemPrimary',
|
|
147
|
+
iconBeforeFillIcon: 'primaryItemPrimary',
|
|
148
|
+
iconFillIcon: 'primaryItemPrimary',
|
|
149
|
+
loaderAppearance: 'primaryPrimary',
|
|
105
150
|
},
|
|
106
151
|
};
|
|
107
152
|
|
|
@@ -110,6 +155,19 @@ var buttonAppearanceSecondary = {
|
|
|
110
155
|
fill: 'secondaryPrimary',
|
|
111
156
|
fillHover: 'secondaryPrimaryHover',
|
|
112
157
|
labelTextColor: 'secondaryTextPrimary',
|
|
158
|
+
iconAfterFillIcon: 'secondaryItemPrimary',
|
|
159
|
+
iconBeforeFillIcon: 'secondaryItemPrimary',
|
|
160
|
+
iconFillIcon: 'secondaryItemPrimary',
|
|
161
|
+
loaderAppearance: 'secondaryPrimary',
|
|
162
|
+
},
|
|
163
|
+
secondaryPrimary: {
|
|
164
|
+
fill: 'secondaryPrimary',
|
|
165
|
+
fillHover: 'secondaryPrimaryHover',
|
|
166
|
+
labelTextColor: 'secondaryTextPrimary',
|
|
167
|
+
iconAfterFillIcon: 'secondaryItemPrimary',
|
|
168
|
+
iconBeforeFillIcon: 'secondaryItemPrimary',
|
|
169
|
+
iconFillIcon: 'secondaryItemPrimary',
|
|
170
|
+
loaderAppearance: 'secondaryPrimary',
|
|
113
171
|
},
|
|
114
172
|
};
|
|
115
173
|
|
|
@@ -121,6 +179,7 @@ var buttonAppearanceSize = {
|
|
|
121
179
|
iconAfterSize: 24,
|
|
122
180
|
iconBeforeFillSize: 24,
|
|
123
181
|
iconBeforeSize: 24,
|
|
182
|
+
loaderSize: 'l',
|
|
124
183
|
},
|
|
125
184
|
sizeXL: {
|
|
126
185
|
size: 'xl',
|
|
@@ -129,6 +188,7 @@ var buttonAppearanceSize = {
|
|
|
129
188
|
iconAfterSize: 24,
|
|
130
189
|
iconBeforeFillSize: 24,
|
|
131
190
|
iconBeforeSize: 24,
|
|
191
|
+
loaderSize: 'l',
|
|
132
192
|
},
|
|
133
193
|
sizeL: {
|
|
134
194
|
size: 'l',
|
|
@@ -137,6 +197,7 @@ var buttonAppearanceSize = {
|
|
|
137
197
|
iconAfterSize: 24,
|
|
138
198
|
iconBeforeFillSize: 24,
|
|
139
199
|
iconBeforeSize: 24,
|
|
200
|
+
loaderSize: 'l',
|
|
140
201
|
},
|
|
141
202
|
sizeM: {
|
|
142
203
|
size: 'm',
|
|
@@ -145,6 +206,7 @@ var buttonAppearanceSize = {
|
|
|
145
206
|
iconAfterSize: 24,
|
|
146
207
|
iconBeforeFillSize: 24,
|
|
147
208
|
iconBeforeSize: 24,
|
|
209
|
+
loaderSize: 'l',
|
|
148
210
|
},
|
|
149
211
|
sizeS: {
|
|
150
212
|
size: 's',
|
|
@@ -153,6 +215,7 @@ var buttonAppearanceSize = {
|
|
|
153
215
|
iconAfterSize: 20,
|
|
154
216
|
iconBeforeFillSize: 20,
|
|
155
217
|
iconBeforeSize: 20,
|
|
218
|
+
loaderSize: 'l',
|
|
156
219
|
},
|
|
157
220
|
sizeXS: {
|
|
158
221
|
size: 'xs',
|
|
@@ -161,6 +224,7 @@ var buttonAppearanceSize = {
|
|
|
161
224
|
iconAfterSize: 16,
|
|
162
225
|
iconBeforeFillSize: 16,
|
|
163
226
|
iconBeforeSize: 16,
|
|
227
|
+
loaderSize: 'l',
|
|
164
228
|
},
|
|
165
229
|
sizeXXS: {
|
|
166
230
|
size: 'xxs',
|
|
@@ -169,6 +233,7 @@ var buttonAppearanceSize = {
|
|
|
169
233
|
iconAfterSize: 14,
|
|
170
234
|
iconBeforeFillSize: 14,
|
|
171
235
|
iconBeforeSize: 14,
|
|
236
|
+
loaderSize: 'l',
|
|
172
237
|
},
|
|
173
238
|
};
|
|
174
239
|
|
|
@@ -176,12 +241,10 @@ var buttonAppearanceStyle = {
|
|
|
176
241
|
full: {},
|
|
177
242
|
ghost: {
|
|
178
243
|
fill: 'none',
|
|
179
|
-
fillHover: 'none',
|
|
180
244
|
borderColor: '0',
|
|
181
245
|
},
|
|
182
246
|
outlined: {
|
|
183
247
|
fill: 'none',
|
|
184
|
-
fillHover: 'none',
|
|
185
248
|
},
|
|
186
249
|
solid: {
|
|
187
250
|
borderColor: '0',
|
|
@@ -192,10 +255,22 @@ var buttonAppearanceSuccess = {
|
|
|
192
255
|
success: {
|
|
193
256
|
fill: 'successPrimary',
|
|
194
257
|
fillHover: 'successHover',
|
|
195
|
-
labelTextColor: '
|
|
196
|
-
labelTextColorHover: '
|
|
197
|
-
|
|
198
|
-
|
|
258
|
+
labelTextColor: 'successTextPrimary',
|
|
259
|
+
labelTextColorHover: 'successTextPrimary',
|
|
260
|
+
iconAfterFillIcon: 'successItemPrimary',
|
|
261
|
+
iconBeforeFillIcon: 'successItemPrimary',
|
|
262
|
+
iconFillIcon: 'successItemPrimary',
|
|
263
|
+
loaderAppearance: 'successPrimary',
|
|
264
|
+
},
|
|
265
|
+
successPrimary: {
|
|
266
|
+
fill: 'successPrimary',
|
|
267
|
+
fillHover: 'successHover',
|
|
268
|
+
labelTextColor: 'successTextPrimary',
|
|
269
|
+
labelTextColorHover: 'successTextPrimary',
|
|
270
|
+
iconAfterFillIcon: 'successItemPrimary',
|
|
271
|
+
iconBeforeFillIcon: 'successItemPrimary',
|
|
272
|
+
iconFillIcon: 'successItemPrimary',
|
|
273
|
+
loaderAppearance: 'successPrimary',
|
|
199
274
|
},
|
|
200
275
|
};
|
|
201
276
|
|
|
@@ -204,25 +279,28 @@ var buttonAppearanceSurface = {
|
|
|
204
279
|
fill: 'surfacePrimary',
|
|
205
280
|
fillHover: 'surfaceSecondary',
|
|
206
281
|
labelTextColor: 'surfaceTextPrimary',
|
|
282
|
+
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
283
|
+
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
207
284
|
iconFillIcon: 'surfaceItemPrimary',
|
|
285
|
+
loaderAppearance: 'surfacePrimary',
|
|
208
286
|
},
|
|
209
287
|
surfaceSecondary: {
|
|
210
288
|
fill: 'surfaceSecondary',
|
|
211
289
|
fillHover: 'surfaceSecondaryHover',
|
|
212
290
|
labelTextColor: 'surfaceTextPrimary',
|
|
213
|
-
|
|
214
|
-
|
|
291
|
+
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
292
|
+
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
293
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
294
|
+
loaderAppearance: 'surfacePrimary',
|
|
215
295
|
},
|
|
216
296
|
surfaceTertiary: {
|
|
217
297
|
fill: 'surfaceTertiary',
|
|
218
298
|
fillHover: 'surfaceTertiaryHover',
|
|
219
299
|
labelTextColor: 'surfaceTextPrimary',
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
225
|
-
labelTextColorHover: 'surfaceTextHover',
|
|
300
|
+
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
301
|
+
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
302
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
303
|
+
loaderAppearance: 'surfacePrimary',
|
|
226
304
|
},
|
|
227
305
|
};
|
|
228
306
|
|
|
@@ -230,18 +308,22 @@ var buttonAppearanceWarning = {
|
|
|
230
308
|
warning: {
|
|
231
309
|
fill: 'warningPrimary',
|
|
232
310
|
fillHover: 'warningHover',
|
|
233
|
-
labelTextColor: '
|
|
234
|
-
labelTextColorHover: '
|
|
235
|
-
|
|
236
|
-
|
|
311
|
+
labelTextColor: 'warningTextPrimary',
|
|
312
|
+
labelTextColorHover: 'warningTextPrimary',
|
|
313
|
+
iconAfterFillIcon: 'warningItemPrimary',
|
|
314
|
+
iconBeforeFillIcon: 'warningItemPrimary',
|
|
315
|
+
iconFillIcon: 'warningItemPrimary',
|
|
316
|
+
loaderAppearance: 'warningPrimary',
|
|
237
317
|
},
|
|
238
318
|
warningPrimary: {
|
|
239
319
|
fill: 'warningPrimary',
|
|
240
320
|
fillHover: 'warningHover',
|
|
241
|
-
labelTextColor: '
|
|
242
|
-
labelTextColorHover: '
|
|
243
|
-
|
|
244
|
-
|
|
321
|
+
labelTextColor: 'warningTextPrimary',
|
|
322
|
+
labelTextColorHover: 'warningTextPrimary',
|
|
323
|
+
iconAfterFillIcon: 'warningItemPrimary',
|
|
324
|
+
iconBeforeFillIcon: 'warningItemPrimary',
|
|
325
|
+
iconFillIcon: 'warningItemPrimary',
|
|
326
|
+
loaderAppearance: 'warningPrimary',
|
|
245
327
|
},
|
|
246
328
|
};
|
|
247
329
|
|
|
@@ -260,12 +342,11 @@ var Button = React.forwardRef(function Button(props, ref) {
|
|
|
260
342
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = buttonConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
261
343
|
}, {});
|
|
262
344
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
263
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, icon = propsGenerator.icon, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, loaderShapeClass = propsGenerator.loaderShapeClass, _c = propsGenerator.
|
|
345
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, icon = propsGenerator.icon, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, loaderAppearance = propsGenerator.loaderAppearance, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, loaderShapeClass = propsGenerator.loaderShapeClass, loaderSize = propsGenerator.loaderSize, _c = propsGenerator.loaderType, loaderType = _c === void 0 ? 'simple' : _c, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
264
346
|
var shapeStrengthClass = propsGenerator.getClassName('shapeStrength', {
|
|
265
347
|
replace: [/\./, '-'],
|
|
266
348
|
});
|
|
267
349
|
// const a = propsGenerator.
|
|
268
|
-
// @ts-expect-error
|
|
269
350
|
var _d = useStyles.useStyles(props), labelStyles = _d.label, buttonStyles = _d.styles;
|
|
270
351
|
var buttonTypeClass = after ||
|
|
271
352
|
before ||
|
|
@@ -283,7 +364,7 @@ var Button = React.forwardRef(function Button(props, ref) {
|
|
|
283
364
|
? 'button_type_icon'
|
|
284
365
|
: '', borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
|
|
285
366
|
? "shape-strength_".concat(shapeStrengthClass)
|
|
286
|
-
: shapeClass === 'rounded' && 'shape-strength_default', sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type:
|
|
367
|
+
: shapeClass === 'rounded' && 'shape-strength_default', sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsxRuntime.jsx(Text.Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
|
|
287
368
|
});
|
|
288
369
|
|
|
289
370
|
exports.Button = Button;
|