@itcase/ui 1.8.117 → 1.8.119
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/{Avatar_cjs_BqJtyGqb.js → Avatar_cjs_BKcQuqYV.js} +1 -1
- package/dist/{Avatar_es_7WTlfUFM.js → Avatar_es_Cpn1PNmO.js} +1 -1
- package/dist/{Button_cjs_oO7g75FT.js → Button_cjs_3BTD8Mlm.js} +65 -65
- package/dist/{Button_es_CymyESs0.js → Button_es_B_k-SP92.js} +65 -65
- package/dist/{ChipsGroup_cjs_C3KJn3MF.js → ChipsGroup_cjs_DhoY9YjT.js} +3 -3
- package/dist/{ChipsGroup_es_BdIFBKkG.js → ChipsGroup_es_Dg1GmJ-9.js} +3 -3
- package/dist/{DatePicker_cjs_DsFAHbZ4.js → DatePicker_cjs_BLkZB0S0.js} +4 -4
- package/dist/{DatePicker_es_CvtwPWL_.js → DatePicker_es_CKrgRUWu.js} +4 -4
- package/dist/{DropdownItem_cjs_f1GO8Bg4.js → DropdownItem_cjs_D3Mcbsxa.js} +1 -1
- package/dist/{DropdownItem_es_Cc7Ebhgl.js → DropdownItem_es_BUs02mjJ.js} +1 -1
- package/dist/{Group_cjs_BxBk5T7A.js → Group_cjs_CsJ6ICKK.js} +1 -1
- package/dist/{Group_es_DIfmrMSM.js → Group_es_DRqIIM9m.js} +1 -1
- package/dist/{Icon_cjs_C9zGWlVp.js → Icon_cjs_CUArL1z2.js} +2 -2
- package/dist/{Icon_es_DHLepoKo.js → Icon_es_CNrc90oI.js} +2 -2
- package/dist/{Input_cjs_D18gXu6j.js → Input_cjs_Du73R-wm.js} +1 -1
- package/dist/{Input_es_CHuhHbMo.js → Input_es_CiDHjDqJ.js} +1 -1
- package/dist/{Label_cjs_O2PnxmeQ.js → Label_cjs_BUEGAnsq.js} +1 -1
- package/dist/{Label_es_47i4dTW3.js → Label_es_I01RN9hv.js} +1 -1
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +3 -3
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Checkbox.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +6 -6
- package/dist/cjs/components/DatePicker.js +5 -5
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/Flex.js +2 -2
- package/dist/cjs/components/Grid.js +2 -2
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/HeroTitle.js +2 -2
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/ModalSheetBottom.js +3 -3
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +4 -4
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +3 -3
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +3 -3
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +6 -6
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Flex.js +2 -2
- package/dist/components/Grid.js +2 -2
- package/dist/components/Group.js +1 -1
- package/dist/components/HeroTitle.js +2 -2
- package/dist/components/Icon.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/ModalSheetBottom.js +3 -3
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +4 -4
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +4 -4
- package/dist/components/Select.js +2 -2
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/types/components/Button/Button.appearance.d.ts +2612 -2
- package/dist/types/components/Button/Button.d.ts +71 -2
- package/dist/types/components/Button/Button.interface.d.ts +67 -60
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +2 -35
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +2 -23
- package/dist/types/components/Button/appearance/buttonError.d.ts +2 -33
- package/dist/types/components/Button/appearance/buttonInfo.d.ts +2 -46
- package/dist/types/components/Button/appearance/buttonPrimary.d.ts +2 -30
- package/dist/types/components/Button/appearance/buttonSecondary.d.ts +2 -30
- package/dist/types/components/Button/appearance/buttonShape.d.ts +2 -24
- package/dist/types/components/Button/appearance/buttonSize.d.ts +2 -65
- package/dist/types/components/Button/appearance/buttonStyle.d.ts +2 -13
- package/dist/types/components/Button/appearance/buttonSuccess.d.ts +2 -33
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +2 -51
- package/dist/types/components/Button/appearance/buttonWarning.d.ts +2 -33
- package/dist/types/components/Checkbox/appearance/checkboxRequire.d.ts +2 -2
- package/dist/types/components/Icon/Icon.interface.d.ts +1 -1
- package/dist/types/components/Segmented/Segmented.d.ts +1 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from './
|
|
4
|
+
import { I as Icon } from './Icon_es_CNrc90oI.js';
|
|
5
5
|
import { a as LinkWrapper } from './Link_es_XiqbdwLp.js';
|
|
6
6
|
import { L as Loader } from './Loader_es_ByhTIMxS.js';
|
|
7
7
|
import { T as Text } from './Text_es_CwV9rjFD.js';
|
|
@@ -14,9 +14,9 @@ var buttonAppearanceAccent = {
|
|
|
14
14
|
accentMutedPrimary: {
|
|
15
15
|
fill: 'accentTertiary',
|
|
16
16
|
fillHover: 'accentHoverTertiary',
|
|
17
|
+
borderColor: 'accentBorderSecondary',
|
|
17
18
|
labelTextColor: 'accentTextQuaternary',
|
|
18
19
|
labelTextColorHover: 'accentTextQuaternary',
|
|
19
|
-
borderColor: 'accentBorderSecondary',
|
|
20
20
|
iconAfterFillIcon: 'accentItemQuaternary',
|
|
21
21
|
iconBeforeFillIcon: 'accentItemQuaternary',
|
|
22
22
|
iconFillIcon: 'accentItemQuaternary',
|
|
@@ -25,9 +25,9 @@ var buttonAppearanceAccent = {
|
|
|
25
25
|
accentPrimary: {
|
|
26
26
|
fill: 'accentPrimary',
|
|
27
27
|
fillHover: 'accentHoverPrimary',
|
|
28
|
+
borderColor: 'accentBorderPrimary',
|
|
28
29
|
labelTextColor: 'accentTextPrimary',
|
|
29
30
|
labelTextColorHover: 'accentTextPrimary',
|
|
30
|
-
borderColor: 'accentBorderPrimary',
|
|
31
31
|
iconAfterFillIcon: 'accentItemPrimary',
|
|
32
32
|
iconBeforeFillIcon: 'accentItemPrimary',
|
|
33
33
|
iconFillIcon: 'accentItemPrimary',
|
|
@@ -36,9 +36,9 @@ var buttonAppearanceAccent = {
|
|
|
36
36
|
accentSecondary: {
|
|
37
37
|
fill: 'accentPrimary',
|
|
38
38
|
fillHover: 'accentHoverPrimary',
|
|
39
|
+
borderColor: 'accentBorderPrimary',
|
|
39
40
|
labelTextColor: 'accentTextSecondary',
|
|
40
41
|
labelTextColorHover: 'accentTextSecondary',
|
|
41
|
-
borderColor: 'accentBorderPrimary',
|
|
42
42
|
iconAfterFillIcon: 'accentItemPrimary',
|
|
43
43
|
iconBeforeFillIcon: 'accentItemPrimary',
|
|
44
44
|
iconFillIcon: 'accentItemPrimary',
|
|
@@ -50,9 +50,9 @@ var buttonAppearanceDanger = {
|
|
|
50
50
|
dangerMutedPrimary: {
|
|
51
51
|
fill: 'dangerTertiary',
|
|
52
52
|
fillHover: 'dangerHover',
|
|
53
|
+
borderColor: 'dangerBorderSecondary',
|
|
53
54
|
labelTextColor: 'dangerTextQuaternary',
|
|
54
55
|
labelTextColorHover: 'dangerTextQuaternary',
|
|
55
|
-
borderColor: 'dangerBorderSecondary',
|
|
56
56
|
iconAfterFillIcon: 'dangerItemQuaternary',
|
|
57
57
|
iconBeforeFillIcon: 'dangerItemQuaternary',
|
|
58
58
|
iconFillIcon: 'dangerItemQuaternary',
|
|
@@ -84,9 +84,9 @@ var buttonAppearanceError = {
|
|
|
84
84
|
errorMutedPrimary: {
|
|
85
85
|
fill: 'errorTertiary',
|
|
86
86
|
fillHover: 'errorHover',
|
|
87
|
+
borderColor: 'errorBorderSecondary',
|
|
87
88
|
labelTextColor: 'errorTextQuaternary',
|
|
88
89
|
labelTextColorHover: 'errorTextQuaternary',
|
|
89
|
-
borderColor: 'errorBorderSecondary',
|
|
90
90
|
iconAfterFillIcon: 'errorItemQuaternary',
|
|
91
91
|
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
92
92
|
iconFillIcon: 'errorItemQuaternary',
|
|
@@ -108,9 +108,9 @@ var buttonAppearanceInfo = {
|
|
|
108
108
|
info: {
|
|
109
109
|
fill: 'infoPrimary',
|
|
110
110
|
fillHover: 'infoPrimaryHover',
|
|
111
|
+
borderColor: 'infoBorderPrimary',
|
|
111
112
|
labelTextColor: 'infoTextPrimary',
|
|
112
113
|
labelTextColorHover: 'infoTextPrimary',
|
|
113
|
-
borderColor: 'infoBorderPrimary',
|
|
114
114
|
iconAfterFillIcon: 'infoItemPrimary',
|
|
115
115
|
iconBeforeFillIcon: 'infoItemPrimary',
|
|
116
116
|
iconFillIcon: 'infoItemPrimary',
|
|
@@ -119,9 +119,9 @@ var buttonAppearanceInfo = {
|
|
|
119
119
|
infoMutedPrimary: {
|
|
120
120
|
fill: 'infoTertiary',
|
|
121
121
|
fillHover: 'infoTertiaryHover',
|
|
122
|
+
borderColor: 'infoBorderSecondary',
|
|
122
123
|
labelTextColor: 'infoTextSecondary',
|
|
123
124
|
labelTextColorHover: 'infoTextSecondary',
|
|
124
|
-
borderColor: 'infoBorderSecondary',
|
|
125
125
|
iconAfterFillIcon: 'infoItemSecondary',
|
|
126
126
|
iconBeforeFillIcon: 'infoItemSecondary',
|
|
127
127
|
iconFillIcon: 'infoItemSecondaryPrimary',
|
|
@@ -130,9 +130,9 @@ var buttonAppearanceInfo = {
|
|
|
130
130
|
infoPrimary: {
|
|
131
131
|
fill: 'infoPrimary',
|
|
132
132
|
fillHover: 'infoPrimaryHover',
|
|
133
|
+
borderColor: 'infoBorderPrimary',
|
|
133
134
|
labelTextColor: 'infoTextPrimary',
|
|
134
135
|
labelTextColorHover: 'infoTextPrimary',
|
|
135
|
-
borderColor: 'infoBorderPrimary',
|
|
136
136
|
iconAfterFillIcon: 'infoItemPrimary',
|
|
137
137
|
iconBeforeFillIcon: 'infoItemPrimary',
|
|
138
138
|
iconFillIcon: 'infoItemPrimary',
|
|
@@ -141,9 +141,9 @@ var buttonAppearanceInfo = {
|
|
|
141
141
|
infoSecondary: {
|
|
142
142
|
fill: 'infoPrimary',
|
|
143
143
|
fillHover: 'infoPrimaryHover',
|
|
144
|
+
borderColor: 'infoBorderPrimary',
|
|
144
145
|
labelTextColor: 'infoTextSecondary',
|
|
145
146
|
labelTextColorHover: 'infoTextSecondary',
|
|
146
|
-
borderColor: 'infoBorderPrimary',
|
|
147
147
|
iconAfterFillIcon: 'infoItemPrimary',
|
|
148
148
|
iconBeforeFillIcon: 'infoItemPrimary',
|
|
149
149
|
iconFillIcon: 'infoItemPrimary',
|
|
@@ -164,8 +164,8 @@ var buttonAppearancePrimary = {
|
|
|
164
164
|
primaryMutedPrimary: {
|
|
165
165
|
fill: 'primaryTertiary',
|
|
166
166
|
fillHover: 'primaryPrimaryHover',
|
|
167
|
-
labelTextColor: 'primaryTextSecondary',
|
|
168
167
|
borderColor: 'primaryBorderTertiary',
|
|
168
|
+
labelTextColor: 'primaryTextSecondary',
|
|
169
169
|
iconAfterFillIcon: 'primaryItemSecondary',
|
|
170
170
|
iconBeforeFillIcon: 'primaryItemSecondary',
|
|
171
171
|
iconFillIcon: 'primaryItemSecondary',
|
|
@@ -195,8 +195,8 @@ var buttonAppearanceSecondary = {
|
|
|
195
195
|
secondaryMutedPrimary: {
|
|
196
196
|
fill: 'secondaryTertiary',
|
|
197
197
|
fillHover: 'secondaryPrimaryHover',
|
|
198
|
-
labelTextColor: 'secondaryTextQuaternary',
|
|
199
198
|
borderColor: 'secondaryBorderSecondary',
|
|
199
|
+
labelTextColor: 'secondaryTextQuaternary',
|
|
200
200
|
iconAfterFillIcon: 'secondaryItemQuaternary',
|
|
201
201
|
iconBeforeFillIcon: 'secondaryItemQuaternary',
|
|
202
202
|
iconFillIcon: 'secondaryItemQuaternary',
|
|
@@ -220,21 +220,21 @@ var buttonAppearanceShape = {
|
|
|
220
220
|
rounded: {
|
|
221
221
|
shape: 'rounded',
|
|
222
222
|
},
|
|
223
|
-
|
|
224
|
-
shape: 'rounded',
|
|
225
|
-
shapeStrength: '0_5m',
|
|
226
|
-
},
|
|
227
|
-
roundedM: {
|
|
223
|
+
roundedXL: {
|
|
228
224
|
shape: 'rounded',
|
|
229
|
-
shapeStrength: '
|
|
225
|
+
shapeStrength: '2m',
|
|
230
226
|
},
|
|
231
227
|
roundedL: {
|
|
232
228
|
shape: 'rounded',
|
|
233
229
|
shapeStrength: '1_5m',
|
|
234
230
|
},
|
|
235
|
-
|
|
231
|
+
roundedM: {
|
|
236
232
|
shape: 'rounded',
|
|
237
|
-
shapeStrength: '
|
|
233
|
+
shapeStrength: '1m',
|
|
234
|
+
},
|
|
235
|
+
roundedS: {
|
|
236
|
+
shape: 'rounded',
|
|
237
|
+
shapeStrength: '0_5m',
|
|
238
238
|
},
|
|
239
239
|
};
|
|
240
240
|
|
|
@@ -242,65 +242,65 @@ var buttonAppearanceSize = {
|
|
|
242
242
|
sizeXXL: {
|
|
243
243
|
size: 'xxl',
|
|
244
244
|
labelTextSize: 'xl',
|
|
245
|
-
iconAfterFillSize: 24,
|
|
246
|
-
iconAfterSize: 24,
|
|
247
|
-
iconBeforeFillSize: 24,
|
|
248
|
-
iconBeforeSize: 24,
|
|
249
|
-
|
|
245
|
+
iconAfterFillSize: '24',
|
|
246
|
+
iconAfterSize: '24',
|
|
247
|
+
iconBeforeFillSize: '24',
|
|
248
|
+
iconBeforeSize: '24',
|
|
249
|
+
loaderAppearanceSize: 'sizeL',
|
|
250
250
|
},
|
|
251
251
|
sizeXL: {
|
|
252
252
|
size: 'xl',
|
|
253
253
|
labelTextSize: 'l',
|
|
254
|
-
iconAfterFillSize: 24,
|
|
255
|
-
iconAfterSize: 24,
|
|
256
|
-
iconBeforeFillSize: 24,
|
|
257
|
-
iconBeforeSize: 24,
|
|
258
|
-
|
|
254
|
+
iconAfterFillSize: '24',
|
|
255
|
+
iconAfterSize: '24',
|
|
256
|
+
iconBeforeFillSize: '24',
|
|
257
|
+
iconBeforeSize: '24',
|
|
258
|
+
loaderAppearanceSize: 'sizeL',
|
|
259
259
|
},
|
|
260
260
|
sizeL: {
|
|
261
261
|
size: 'l',
|
|
262
262
|
labelTextSize: 'l',
|
|
263
|
-
iconAfterFillSize: 24,
|
|
264
|
-
iconAfterSize: 24,
|
|
265
|
-
iconBeforeFillSize: 24,
|
|
266
|
-
iconBeforeSize: 24,
|
|
267
|
-
|
|
263
|
+
iconAfterFillSize: '24',
|
|
264
|
+
iconAfterSize: '24',
|
|
265
|
+
iconBeforeFillSize: '24',
|
|
266
|
+
iconBeforeSize: '24',
|
|
267
|
+
loaderAppearanceSize: 'sizeL',
|
|
268
268
|
},
|
|
269
269
|
sizeM: {
|
|
270
270
|
size: 'm',
|
|
271
271
|
labelTextSize: 'm',
|
|
272
|
-
iconAfterFillSize: 24,
|
|
273
|
-
iconAfterSize: 24,
|
|
274
|
-
iconBeforeFillSize: 24,
|
|
275
|
-
iconBeforeSize: 24,
|
|
276
|
-
|
|
272
|
+
iconAfterFillSize: '24',
|
|
273
|
+
iconAfterSize: '24',
|
|
274
|
+
iconBeforeFillSize: '24',
|
|
275
|
+
iconBeforeSize: '24',
|
|
276
|
+
loaderAppearanceSize: 'sizeL',
|
|
277
277
|
},
|
|
278
278
|
sizeS: {
|
|
279
279
|
size: 's',
|
|
280
280
|
labelTextSize: 's',
|
|
281
|
-
iconAfterFillSize: 20,
|
|
282
|
-
iconAfterSize: 20,
|
|
283
|
-
iconBeforeFillSize: 20,
|
|
284
|
-
iconBeforeSize: 20,
|
|
285
|
-
|
|
281
|
+
iconAfterFillSize: '20',
|
|
282
|
+
iconAfterSize: '20',
|
|
283
|
+
iconBeforeFillSize: '20',
|
|
284
|
+
iconBeforeSize: '20',
|
|
285
|
+
loaderAppearanceSize: 'sizeL',
|
|
286
286
|
},
|
|
287
287
|
sizeXS: {
|
|
288
288
|
size: 'xs',
|
|
289
289
|
labelTextSize: 'xs',
|
|
290
|
-
iconAfterFillSize: 16,
|
|
291
|
-
iconAfterSize: 16,
|
|
292
|
-
iconBeforeFillSize: 16,
|
|
293
|
-
iconBeforeSize: 16,
|
|
294
|
-
|
|
290
|
+
iconAfterFillSize: '16',
|
|
291
|
+
iconAfterSize: '16',
|
|
292
|
+
iconBeforeFillSize: '16',
|
|
293
|
+
iconBeforeSize: '16',
|
|
294
|
+
loaderAppearanceSize: 'sizeL',
|
|
295
295
|
},
|
|
296
296
|
sizeXXS: {
|
|
297
297
|
size: 'xxs',
|
|
298
298
|
labelTextSize: 'xs',
|
|
299
|
-
iconAfterFillSize: 14,
|
|
300
|
-
iconAfterSize: 14,
|
|
301
|
-
iconBeforeFillSize: 14,
|
|
302
|
-
iconBeforeSize: 14,
|
|
303
|
-
|
|
299
|
+
iconAfterFillSize: '14',
|
|
300
|
+
iconAfterSize: '14',
|
|
301
|
+
iconBeforeFillSize: '14',
|
|
302
|
+
iconBeforeSize: '14',
|
|
303
|
+
loaderAppearanceSize: 'sizeL',
|
|
304
304
|
},
|
|
305
305
|
};
|
|
306
306
|
|
|
@@ -332,9 +332,9 @@ var buttonAppearanceSuccess = {
|
|
|
332
332
|
successMutedPrimary: {
|
|
333
333
|
fill: 'successTertiary',
|
|
334
334
|
fillHover: 'successHover',
|
|
335
|
+
borderColor: 'successBorderQuaternary',
|
|
335
336
|
labelTextColor: 'successTextQuaternary',
|
|
336
337
|
labelTextColorHover: 'successTextQuaternary',
|
|
337
|
-
borderColor: 'successBorderQuaternary',
|
|
338
338
|
iconAfterFillIcon: 'successItemQuaternary',
|
|
339
339
|
iconBeforeFillIcon: 'successItemQuaternary',
|
|
340
340
|
iconFillIcon: 'successItemQuaternary',
|
|
@@ -356,8 +356,8 @@ var buttonAppearanceSurface = {
|
|
|
356
356
|
surfaceMutedPrimary: {
|
|
357
357
|
fill: 'surfaceTertiary',
|
|
358
358
|
fillHover: 'surfaceTertiary',
|
|
359
|
-
labelTextColor: 'surfaceTextQuaternary',
|
|
360
359
|
borderColor: 'surfaceBorderQuaternary',
|
|
360
|
+
labelTextColor: 'surfaceTextQuaternary',
|
|
361
361
|
iconAfterFillIcon: 'surfaceItemQuaternary',
|
|
362
362
|
iconBeforeFillIcon: 'surfaceItemQuaternary',
|
|
363
363
|
iconFillIcon: 'surfaceItemQuaternary',
|
|
@@ -366,8 +366,8 @@ var buttonAppearanceSurface = {
|
|
|
366
366
|
surfacePrimary: {
|
|
367
367
|
fill: 'surfacePrimary',
|
|
368
368
|
fillHover: 'surfaceSecondary',
|
|
369
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
370
369
|
borderColor: 'surfaceBorderTertiary',
|
|
370
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
371
371
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
372
372
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
373
373
|
iconFillIcon: 'surfaceItemPrimary',
|
|
@@ -376,8 +376,8 @@ var buttonAppearanceSurface = {
|
|
|
376
376
|
surfaceSecondary: {
|
|
377
377
|
fill: 'surfaceSecondary',
|
|
378
378
|
fillHover: 'surfaceSecondary',
|
|
379
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
380
379
|
borderColor: 'surfaceBorderTertiary',
|
|
380
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
381
381
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
382
382
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
383
383
|
iconFillIcon: 'surfaceItemPrimary',
|
|
@@ -395,8 +395,8 @@ var buttonAppearanceSurface = {
|
|
|
395
395
|
surfaceQuaternary: {
|
|
396
396
|
fill: 'surfaceTertiary',
|
|
397
397
|
fillHover: 'surfaceTertiaryHover',
|
|
398
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
399
398
|
borderColor: 'surfaceBorderTertiary',
|
|
399
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
400
400
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
401
401
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
402
402
|
iconFillIcon: 'surfaceItemPrimary',
|
|
@@ -418,9 +418,9 @@ var buttonAppearanceWarning = {
|
|
|
418
418
|
warningMutedPrimary: {
|
|
419
419
|
fill: 'warningTertiary',
|
|
420
420
|
fillHover: 'warningBorderHover',
|
|
421
|
+
borderColor: 'warningBorderHover',
|
|
421
422
|
labelTextColor: 'warningTextSecondary',
|
|
422
423
|
labelTextColorHover: 'warningTextPrimary',
|
|
423
|
-
borderColor: 'warningBorderHover',
|
|
424
424
|
iconAfterFillIcon: 'warningItemSecondary',
|
|
425
425
|
iconBeforeFillIcon: 'warningItemSecondary',
|
|
426
426
|
iconFillIcon: 'warningItemSecondary',
|
|
@@ -447,10 +447,10 @@ var buttonConfig = {
|
|
|
447
447
|
},
|
|
448
448
|
};
|
|
449
449
|
var Button = React.forwardRef(function Button(props, ref) {
|
|
450
|
-
var dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, label = props.label,
|
|
450
|
+
var dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, label = props.label, Badge = props.Badge, href = props.href, _a = props.htmlType, htmlType = _a === void 0 ? 'button' : _a, link = props.link, rel = props.rel, target = props.target, before = props.before, after = props.after, isDisabled = props.isDisabled, _b = props.isLoading, isLoading = _b === void 0 ? false : _b, onClick = props.onClick, onMouseDown = props.onMouseDown, children = props.children;
|
|
451
451
|
var appearanceConfig = useAppearanceConfig(appearance, buttonConfig, isDisabled);
|
|
452
452
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
453
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass,
|
|
453
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextTruncate = propsGenerator.labelTextTruncate, labelTextWeight = propsGenerator.labelTextWeight, labelTextWidth = propsGenerator.labelTextWidth, labelTextWrap = propsGenerator.labelTextWrap, 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, loaderAppearanceSize = propsGenerator.loaderAppearanceSize, loaderFill = propsGenerator.loaderFill, loaderItemFill = propsGenerator.loaderItemFill, loaderSize = propsGenerator.loaderSize, _c = propsGenerator.loaderType, loaderType = _c === void 0 ? 'simple' : _c, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
454
454
|
var _d = useStyles(props), labelStyles = _d.label, buttonStyles = _d.styles;
|
|
455
455
|
var buttonTypeClass = after ||
|
|
456
456
|
before ||
|
|
@@ -460,13 +460,13 @@ var Button = React.forwardRef(function Button(props, ref) {
|
|
|
460
460
|
iconBefore ||
|
|
461
461
|
iconBeforeSrc ||
|
|
462
462
|
iconSrc;
|
|
463
|
-
return (jsx(LinkWrapper, {
|
|
463
|
+
return (jsx(LinkWrapper, { className: clsx(className, 'button', label && buttonTypeClass
|
|
464
464
|
? 'button_type_default'
|
|
465
465
|
: label
|
|
466
466
|
? 'buttom_type_label'
|
|
467
467
|
: buttonTypeClass
|
|
468
468
|
? 'button_type_icon'
|
|
469
|
-
: '', 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 && "shape-strength_".concat(shapeStrengthClass), 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, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsx(Loader, { className: clsx(className, 'button__loader'
|
|
469
|
+
: '', 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 && "shape-strength_".concat(shapeStrengthClass), 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-test-id": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsx(Loader, { className: clsx(className, 'button__loader'), type: loaderType, appearance: "".concat(loaderAppearance, " ").concat(loaderAppearanceSize), size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsx(Icon, { className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsx(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) && (jsx(Icon, { className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
|
|
470
470
|
});
|
|
471
471
|
|
|
472
472
|
export { Button as B, buttonAppearance as a, buttonConfig as b };
|
|
@@ -5,7 +5,7 @@ var clsx = require('clsx');
|
|
|
5
5
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
6
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
|
-
var Icon = require('./
|
|
8
|
+
var Icon = require('./Icon_cjs_CUArL1z2.js');
|
|
9
9
|
var Text = require('./Text_cjs_0EINiUq4.js');
|
|
10
10
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
11
11
|
|
|
@@ -307,7 +307,7 @@ function Chips(props) {
|
|
|
307
307
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
308
308
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActiveIcon = propsGenerator.iconAfterFillActiveIcon, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActiveIcon = propsGenerator.iconBeforeFillActiveIcon, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass;
|
|
309
309
|
var chipsStyles = useStyles.useStyles(props).styles;
|
|
310
|
-
return (jsxRuntime.jsx("div", {
|
|
310
|
+
return (jsxRuntime.jsx("div", { "data-test-id": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, className: clsx(className, 'chips', !isActive
|
|
311
311
|
? fillClass && "fill_".concat(fillClass)
|
|
312
312
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
313
313
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
@@ -320,7 +320,7 @@ function ChipsGroup(props) {
|
|
|
320
320
|
var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, chipsAppearance = propsGenerator.chipsAppearance, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
321
321
|
// @ts-expect-error
|
|
322
322
|
var _a = useStyles.useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
|
|
323
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && "width_".concat(widthClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)),
|
|
323
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && "width_".concat(widthClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxRuntime.jsx("div", { className: "chips-group__wrapper", style: groupWrapperStyles, children: children
|
|
324
324
|
? children
|
|
325
325
|
: chipsList === null || chipsList === void 0 ? void 0 : chipsList.map(function (item) { return (jsxRuntime.jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: function () { return onClick(item); } }, item.id)); }) })) : children ? (children) : (chipsList === null || chipsList === void 0 ? void 0 : chipsList.map(function (item) { return (jsxRuntime.jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: function () { return onClick(item); } }, item.id)); })) }));
|
|
326
326
|
}
|
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon, B as Badge } from './
|
|
6
|
+
import { I as Icon, B as Badge } from './Icon_es_CNrc90oI.js';
|
|
7
7
|
import { T as Text } from './Text_es_CwV9rjFD.js';
|
|
8
8
|
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
|
|
@@ -305,7 +305,7 @@ function Chips(props) {
|
|
|
305
305
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
306
306
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActiveIcon = propsGenerator.iconAfterFillActiveIcon, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActiveIcon = propsGenerator.iconBeforeFillActiveIcon, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass;
|
|
307
307
|
var chipsStyles = useStyles(props).styles;
|
|
308
|
-
return (jsx("div", {
|
|
308
|
+
return (jsx("div", { "data-test-id": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, className: clsx(className, 'chips', !isActive
|
|
309
309
|
? fillClass && "fill_".concat(fillClass)
|
|
310
310
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
311
311
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
@@ -318,7 +318,7 @@ function ChipsGroup(props) {
|
|
|
318
318
|
var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, chipsAppearance = propsGenerator.chipsAppearance, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
319
319
|
// @ts-expect-error
|
|
320
320
|
var _a = useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
|
|
321
|
-
return (jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && "width_".concat(widthClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)),
|
|
321
|
+
return (jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && "width_".concat(widthClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsx("div", { className: "chips-group__wrapper", style: groupWrapperStyles, children: children
|
|
322
322
|
? children
|
|
323
323
|
: chipsList === null || chipsList === void 0 ? void 0 : chipsList.map(function (item) { return (jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: function () { return onClick(item); } }, item.id)); }) })) : children ? (children) : (chipsList === null || chipsList === void 0 ? void 0 : chipsList.map(function (item) { return (jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: function () { return onClick(item); } }, item.id)); })) }));
|
|
324
324
|
}
|
|
@@ -9,10 +9,10 @@ var DatePicker = require('react-datepicker');
|
|
|
9
9
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
10
10
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
11
11
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
12
|
-
var Button = require('./
|
|
13
|
-
var Icon = require('./
|
|
14
|
-
var Input = require('./
|
|
15
|
-
var Label = require('./
|
|
12
|
+
var Button = require('./Button_cjs_3BTD8Mlm.js');
|
|
13
|
+
var Icon = require('./Icon_cjs_CUArL1z2.js');
|
|
14
|
+
var Input = require('./Input_cjs_Du73R-wm.js');
|
|
15
|
+
var Label = require('./Label_cjs_BUEGAnsq.js');
|
|
16
16
|
var Text = require('./Text_cjs_0EINiUq4.js');
|
|
17
17
|
var _default = require('@itcase/icons/default');
|
|
18
18
|
|
|
@@ -7,10 +7,10 @@ import DatePicker from 'react-datepicker';
|
|
|
7
7
|
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
8
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
10
|
-
import { B as Button } from './
|
|
11
|
-
import { I as Icon } from './
|
|
12
|
-
import { I as Input } from './
|
|
13
|
-
import { L as Label } from './
|
|
10
|
+
import { B as Button } from './Button_es_B_k-SP92.js';
|
|
11
|
+
import { I as Icon } from './Icon_es_CNrc90oI.js';
|
|
12
|
+
import { I as Input } from './Input_es_CiDHjDqJ.js';
|
|
13
|
+
import { L as Label } from './Label_es_I01RN9hv.js';
|
|
14
14
|
import { T as Text } from './Text_es_CwV9rjFD.js';
|
|
15
15
|
import { icons14 } from '@itcase/icons/default';
|
|
16
16
|
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
|
-
var Icon = require('./
|
|
8
|
+
var Icon = require('./Icon_cjs_CUArL1z2.js');
|
|
9
9
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
10
10
|
var Divider = require('./Divider_cjs_DUYtmwn2.js');
|
|
11
11
|
var Text = require('./Text_cjs_0EINiUq4.js');
|
|
@@ -3,7 +3,7 @@ import React, { useRef, useState, useCallback, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon, B as Badge } from './
|
|
6
|
+
import { I as Icon, B as Badge } from './Icon_es_CNrc90oI.js';
|
|
7
7
|
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
8
|
import { D as Divider } from './Divider_es_CCLBFIx6.js';
|
|
9
9
|
import { T as Text } from './Text_es_CwV9rjFD.js';
|
|
@@ -30,7 +30,7 @@ var Group = React.forwardRef(function Group(props, ref) {
|
|
|
30
30
|
var directionClass = propsGenerator.directionClass, flexGrowClass = propsGenerator.flexGrowClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorHoverClass = propsGenerator.textColorHoverClass, columnsClass = propsGenerator.columnsClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, shapeClass = propsGenerator.shapeClass, stackingClass = propsGenerator.stackingClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
31
31
|
// @ts-expect-error
|
|
32
32
|
var groupStyles = useStyles.useStyles(props).styles;
|
|
33
|
-
return (jsxRuntime.jsx(Tag, { id: id,
|
|
33
|
+
return (jsxRuntime.jsx(Tag, { id: id, "data-test-id": dataTestId, "data-tour": dataTour, className: clsx(className, 'group', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), columnsClass && "group_columns_".concat(columnsClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), justifyContentClass && "justify-content_".concat(justifyContentClass), textColorClass && "group_text-color_".concat(textColorClass), textColorActiveClass &&
|
|
34
34
|
"group_text-color_active_".concat(textColorActiveClass), textColorHoverClass && "group_text-color_hover_".concat(textColorHoverClass), iconFillHoverClass && "group_icon_fill_hover_".concat(iconFillHoverClass), !isDisabled
|
|
35
35
|
? !isActive
|
|
36
36
|
? fillClass && "fill_".concat(fillClass)
|
|
@@ -28,7 +28,7 @@ var Group = React.forwardRef(function Group(props, ref) {
|
|
|
28
28
|
var directionClass = propsGenerator.directionClass, flexGrowClass = propsGenerator.flexGrowClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorHoverClass = propsGenerator.textColorHoverClass, columnsClass = propsGenerator.columnsClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, shapeClass = propsGenerator.shapeClass, stackingClass = propsGenerator.stackingClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
29
29
|
// @ts-expect-error
|
|
30
30
|
var groupStyles = useStyles(props).styles;
|
|
31
|
-
return (jsx(Tag, { id: id,
|
|
31
|
+
return (jsx(Tag, { id: id, "data-test-id": dataTestId, "data-tour": dataTour, className: clsx(className, 'group', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), columnsClass && "group_columns_".concat(columnsClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), justifyContentClass && "justify-content_".concat(justifyContentClass), textColorClass && "group_text-color_".concat(textColorClass), textColorActiveClass &&
|
|
32
32
|
"group_text-color_active_".concat(textColorActiveClass), textColorHoverClass && "group_text-color_hover_".concat(textColorHoverClass), iconFillHoverClass && "group_icon_fill_hover_".concat(iconFillHoverClass), !isDisabled
|
|
33
33
|
? !isActive
|
|
34
34
|
? fillClass && "fill_".concat(fillClass)
|
|
@@ -525,7 +525,7 @@ function Title(props) {
|
|
|
525
525
|
}
|
|
526
526
|
return size ? size : 'span';
|
|
527
527
|
}, [tag, size]);
|
|
528
|
-
return (jsxRuntime.jsxs(Tag, {
|
|
528
|
+
return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'title', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillClass), svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), size && "title_size_".concat(size), directionClass && "title_direction_".concat(directionClass), isDisabled &&
|
|
529
529
|
textColorDisabledClass &&
|
|
530
530
|
"text-color_".concat(textColorDisabledClass), !isActive &&
|
|
531
531
|
!isDisabled &&
|
|
@@ -539,7 +539,7 @@ function Title(props) {
|
|
|
539
539
|
"text-color_hover_".concat(textColorHoverClass), isActive &&
|
|
540
540
|
!isDisabled &&
|
|
541
541
|
textColorActiveHoverClass &&
|
|
542
|
-
"text-color_active_hover".concat(textColorActiveHoverClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), style: titleStyles, onClick: onClick, children: [before, jsxRuntime.jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title_direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }), after] }));
|
|
542
|
+
"text-color_active_hover".concat(textColorActiveHoverClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), "data-test-id": dataTestId, "data-tour": dataTour, style: titleStyles, onClick: onClick, children: [before, jsxRuntime.jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title_direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }), after] }));
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
var tooltipAppearanceDefault = {
|
|
@@ -523,7 +523,7 @@ function Title(props) {
|
|
|
523
523
|
}
|
|
524
524
|
return size ? size : 'span';
|
|
525
525
|
}, [tag, size]);
|
|
526
|
-
return (jsxs(Tag, {
|
|
526
|
+
return (jsxs(Tag, { className: clsx(className, 'title', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillClass), svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), size && "title_size_".concat(size), directionClass && "title_direction_".concat(directionClass), isDisabled &&
|
|
527
527
|
textColorDisabledClass &&
|
|
528
528
|
"text-color_".concat(textColorDisabledClass), !isActive &&
|
|
529
529
|
!isDisabled &&
|
|
@@ -537,7 +537,7 @@ function Title(props) {
|
|
|
537
537
|
"text-color_hover_".concat(textColorHoverClass), isActive &&
|
|
538
538
|
!isDisabled &&
|
|
539
539
|
textColorActiveHoverClass &&
|
|
540
|
-
"text-color_active_hover".concat(textColorActiveHoverClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), style: titleStyles, onClick: onClick, children: [before, jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title_direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }), after] }));
|
|
540
|
+
"text-color_active_hover".concat(textColorActiveHoverClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), "data-test-id": dataTestId, "data-tour": dataTour, style: titleStyles, onClick: onClick, children: [before, jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title_direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }), after] }));
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
var tooltipAppearanceDefault = {
|
|
@@ -206,7 +206,7 @@ var Input = React.forwardRef(function Input(props, ref) {
|
|
|
206
206
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
207
207
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
208
208
|
return (jsxRuntime.jsx("input", { id: String(id), className: clsx(className, 'input', type === 'number' && 'input_type_number', isDisabled && 'input_state_disabled', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), textColorClass && "text-color_".concat(textColorClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), sizeClass && "input_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderColorClass && "border-color_".concat(borderColorClass), placeholderTextColorClass &&
|
|
209
|
-
"placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: type, ref: ref, disabled: isDisabled,
|
|
209
|
+
"placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: type, ref: ref, disabled: isDisabled, autoComplete: autocomplete, "data-test-id": dataTestId || (name ? "".concat(name, "Input") : 'input'), index: index, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
exports.Input = Input;
|
|
@@ -204,7 +204,7 @@ var Input = React.forwardRef(function Input(props, ref) {
|
|
|
204
204
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
205
205
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
206
206
|
return (jsx("input", { id: String(id), className: clsx(className, 'input', type === 'number' && 'input_type_number', isDisabled && 'input_state_disabled', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), textColorClass && "text-color_".concat(textColorClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), sizeClass && "input_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderColorClass && "border-color_".concat(borderColorClass), placeholderTextColorClass &&
|
|
207
|
-
"placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: type, ref: ref, disabled: isDisabled,
|
|
207
|
+
"placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: type, ref: ref, disabled: isDisabled, autoComplete: autocomplete, "data-test-id": dataTestId || (name ? "".concat(name, "Input") : 'input'), index: index, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
|
|
208
208
|
});
|
|
209
209
|
|
|
210
210
|
export { Input as I, inputAppearance as a, inputConfig as i };
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('./
|
|
9
|
+
var Icon = require('./Icon_cjs_CUArL1z2.js');
|
|
10
10
|
var Text = require('./Text_cjs_0EINiUq4.js');
|
|
11
11
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
12
12
|
|