@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.
Files changed (115) hide show
  1. package/dist/{Avatar_cjs_BqJtyGqb.js → Avatar_cjs_BKcQuqYV.js} +1 -1
  2. package/dist/{Avatar_es_7WTlfUFM.js → Avatar_es_Cpn1PNmO.js} +1 -1
  3. package/dist/{Button_cjs_oO7g75FT.js → Button_cjs_3BTD8Mlm.js} +65 -65
  4. package/dist/{Button_es_CymyESs0.js → Button_es_B_k-SP92.js} +65 -65
  5. package/dist/{ChipsGroup_cjs_C3KJn3MF.js → ChipsGroup_cjs_DhoY9YjT.js} +3 -3
  6. package/dist/{ChipsGroup_es_BdIFBKkG.js → ChipsGroup_es_Dg1GmJ-9.js} +3 -3
  7. package/dist/{DatePicker_cjs_DsFAHbZ4.js → DatePicker_cjs_BLkZB0S0.js} +4 -4
  8. package/dist/{DatePicker_es_CvtwPWL_.js → DatePicker_es_CKrgRUWu.js} +4 -4
  9. package/dist/{DropdownItem_cjs_f1GO8Bg4.js → DropdownItem_cjs_D3Mcbsxa.js} +1 -1
  10. package/dist/{DropdownItem_es_Cc7Ebhgl.js → DropdownItem_es_BUs02mjJ.js} +1 -1
  11. package/dist/{Group_cjs_BxBk5T7A.js → Group_cjs_CsJ6ICKK.js} +1 -1
  12. package/dist/{Group_es_DIfmrMSM.js → Group_es_DRqIIM9m.js} +1 -1
  13. package/dist/{Icon_cjs_C9zGWlVp.js → Icon_cjs_CUArL1z2.js} +2 -2
  14. package/dist/{Icon_es_DHLepoKo.js → Icon_es_CNrc90oI.js} +2 -2
  15. package/dist/{Input_cjs_D18gXu6j.js → Input_cjs_Du73R-wm.js} +1 -1
  16. package/dist/{Input_es_CHuhHbMo.js → Input_es_CiDHjDqJ.js} +1 -1
  17. package/dist/{Label_cjs_O2PnxmeQ.js → Label_cjs_BUEGAnsq.js} +1 -1
  18. package/dist/{Label_es_47i4dTW3.js → Label_es_I01RN9hv.js} +1 -1
  19. package/dist/cjs/components/Accordion.js +1 -1
  20. package/dist/cjs/components/Avatar.js +2 -2
  21. package/dist/cjs/components/AvatarStack.js +3 -3
  22. package/dist/cjs/components/Badge.js +1 -1
  23. package/dist/cjs/components/Breadcrumbs.js +1 -1
  24. package/dist/cjs/components/Button.js +2 -2
  25. package/dist/cjs/components/Cell.js +2 -2
  26. package/dist/cjs/components/Checkbox.js +2 -2
  27. package/dist/cjs/components/Chips.js +2 -2
  28. package/dist/cjs/components/Choice.js +1 -1
  29. package/dist/cjs/components/CookiesWarning.js +2 -2
  30. package/dist/cjs/components/Dadata.js +1 -1
  31. package/dist/cjs/components/DatePeriod.js +6 -6
  32. package/dist/cjs/components/DatePicker.js +5 -5
  33. package/dist/cjs/components/Drawer.js +1 -1
  34. package/dist/cjs/components/Dropdown.js +2 -2
  35. package/dist/cjs/components/Flex.js +2 -2
  36. package/dist/cjs/components/Grid.js +2 -2
  37. package/dist/cjs/components/Group.js +1 -1
  38. package/dist/cjs/components/HeroTitle.js +2 -2
  39. package/dist/cjs/components/Icon.js +1 -1
  40. package/dist/cjs/components/Input.js +1 -1
  41. package/dist/cjs/components/InputPassword.js +1 -1
  42. package/dist/cjs/components/Label.js +2 -2
  43. package/dist/cjs/components/MenuItem.js +1 -1
  44. package/dist/cjs/components/Modal.js +1 -1
  45. package/dist/cjs/components/ModalSheetBottom.js +3 -3
  46. package/dist/cjs/components/Notification.js +1 -1
  47. package/dist/cjs/components/Pagination.js +2 -2
  48. package/dist/cjs/components/Response.js +4 -4
  49. package/dist/cjs/components/Search.js +1 -1
  50. package/dist/cjs/components/Segmented.js +3 -3
  51. package/dist/cjs/components/Select.js +2 -2
  52. package/dist/cjs/components/Swiper.js +1 -1
  53. package/dist/cjs/components/Tab.js +1 -1
  54. package/dist/cjs/components/Tile.js +1 -1
  55. package/dist/cjs/components/Title.js +1 -1
  56. package/dist/cjs/components/Tooltip.js +1 -1
  57. package/dist/cjs/components/Warning.js +1 -1
  58. package/dist/components/Accordion.js +1 -1
  59. package/dist/components/Avatar.js +2 -2
  60. package/dist/components/AvatarStack.js +3 -3
  61. package/dist/components/Badge.js +1 -1
  62. package/dist/components/Breadcrumbs.js +1 -1
  63. package/dist/components/Button.js +2 -2
  64. package/dist/components/Cell.js +2 -2
  65. package/dist/components/Checkbox.js +2 -2
  66. package/dist/components/Chips.js +2 -2
  67. package/dist/components/Choice.js +1 -1
  68. package/dist/components/CookiesWarning.js +2 -2
  69. package/dist/components/Dadata.js +1 -1
  70. package/dist/components/DatePeriod.js +6 -6
  71. package/dist/components/DatePicker.js +5 -5
  72. package/dist/components/Drawer.js +1 -1
  73. package/dist/components/Dropdown.js +2 -2
  74. package/dist/components/Flex.js +2 -2
  75. package/dist/components/Grid.js +2 -2
  76. package/dist/components/Group.js +1 -1
  77. package/dist/components/HeroTitle.js +2 -2
  78. package/dist/components/Icon.js +1 -1
  79. package/dist/components/Input.js +1 -1
  80. package/dist/components/InputPassword.js +1 -1
  81. package/dist/components/Label.js +2 -2
  82. package/dist/components/MenuItem.js +1 -1
  83. package/dist/components/Modal.js +1 -1
  84. package/dist/components/ModalSheetBottom.js +3 -3
  85. package/dist/components/Notification.js +1 -1
  86. package/dist/components/Pagination.js +2 -2
  87. package/dist/components/Response.js +4 -4
  88. package/dist/components/Search.js +1 -1
  89. package/dist/components/Segmented.js +4 -4
  90. package/dist/components/Select.js +2 -2
  91. package/dist/components/Swiper.js +1 -1
  92. package/dist/components/Tab.js +1 -1
  93. package/dist/components/Tile.js +1 -1
  94. package/dist/components/Title.js +1 -1
  95. package/dist/components/Tooltip.js +1 -1
  96. package/dist/components/Warning.js +1 -1
  97. package/dist/types/components/Button/Button.appearance.d.ts +2612 -2
  98. package/dist/types/components/Button/Button.d.ts +71 -2
  99. package/dist/types/components/Button/Button.interface.d.ts +67 -60
  100. package/dist/types/components/Button/appearance/buttonAccent.d.ts +2 -35
  101. package/dist/types/components/Button/appearance/buttonDanger.d.ts +2 -23
  102. package/dist/types/components/Button/appearance/buttonError.d.ts +2 -33
  103. package/dist/types/components/Button/appearance/buttonInfo.d.ts +2 -46
  104. package/dist/types/components/Button/appearance/buttonPrimary.d.ts +2 -30
  105. package/dist/types/components/Button/appearance/buttonSecondary.d.ts +2 -30
  106. package/dist/types/components/Button/appearance/buttonShape.d.ts +2 -24
  107. package/dist/types/components/Button/appearance/buttonSize.d.ts +2 -65
  108. package/dist/types/components/Button/appearance/buttonStyle.d.ts +2 -13
  109. package/dist/types/components/Button/appearance/buttonSuccess.d.ts +2 -33
  110. package/dist/types/components/Button/appearance/buttonSurface.d.ts +2 -51
  111. package/dist/types/components/Button/appearance/buttonWarning.d.ts +2 -33
  112. package/dist/types/components/Checkbox/appearance/checkboxRequire.d.ts +2 -2
  113. package/dist/types/components/Icon/Icon.interface.d.ts +1 -1
  114. package/dist/types/components/Segmented/Segmented.d.ts +1 -2
  115. package/package.json +1 -1
@@ -5,7 +5,7 @@ var React = require('react');
5
5
  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
- var Icon = require('./Icon_cjs_C9zGWlVp.js');
8
+ var Icon = require('./Icon_cjs_CUArL1z2.js');
9
9
  var Image = require('./Image_cjs_B6YlGx8G.js');
10
10
  var Text = require('./Text_cjs_0EINiUq4.js');
11
11
  var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
@@ -3,7 +3,7 @@ import { useMemo } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
- import { I as Icon, B as Badge } from './Icon_es_DHLepoKo.js';
6
+ import { I as Icon, B as Badge } from './Icon_es_CNrc90oI.js';
7
7
  import { I as Image } from './Image_es_BvYo_cHH.js';
8
8
  import { T as Text } from './Text_es_CwV9rjFD.js';
9
9
  import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var clsx = require('clsx');
6
- var Icon = require('./Icon_cjs_C9zGWlVp.js');
6
+ var Icon = require('./Icon_cjs_CUArL1z2.js');
7
7
  var Link = require('./Link_cjs_C5UsZUiF.js');
8
8
  var Loader = require('./Loader_cjs_Cme6Hi0B.js');
9
9
  var Text = require('./Text_cjs_0EINiUq4.js');
@@ -16,9 +16,9 @@ var buttonAppearanceAccent = {
16
16
  accentMutedPrimary: {
17
17
  fill: 'accentTertiary',
18
18
  fillHover: 'accentHoverTertiary',
19
+ borderColor: 'accentBorderSecondary',
19
20
  labelTextColor: 'accentTextQuaternary',
20
21
  labelTextColorHover: 'accentTextQuaternary',
21
- borderColor: 'accentBorderSecondary',
22
22
  iconAfterFillIcon: 'accentItemQuaternary',
23
23
  iconBeforeFillIcon: 'accentItemQuaternary',
24
24
  iconFillIcon: 'accentItemQuaternary',
@@ -27,9 +27,9 @@ var buttonAppearanceAccent = {
27
27
  accentPrimary: {
28
28
  fill: 'accentPrimary',
29
29
  fillHover: 'accentHoverPrimary',
30
+ borderColor: 'accentBorderPrimary',
30
31
  labelTextColor: 'accentTextPrimary',
31
32
  labelTextColorHover: 'accentTextPrimary',
32
- borderColor: 'accentBorderPrimary',
33
33
  iconAfterFillIcon: 'accentItemPrimary',
34
34
  iconBeforeFillIcon: 'accentItemPrimary',
35
35
  iconFillIcon: 'accentItemPrimary',
@@ -38,9 +38,9 @@ var buttonAppearanceAccent = {
38
38
  accentSecondary: {
39
39
  fill: 'accentPrimary',
40
40
  fillHover: 'accentHoverPrimary',
41
+ borderColor: 'accentBorderPrimary',
41
42
  labelTextColor: 'accentTextSecondary',
42
43
  labelTextColorHover: 'accentTextSecondary',
43
- borderColor: 'accentBorderPrimary',
44
44
  iconAfterFillIcon: 'accentItemPrimary',
45
45
  iconBeforeFillIcon: 'accentItemPrimary',
46
46
  iconFillIcon: 'accentItemPrimary',
@@ -52,9 +52,9 @@ var buttonAppearanceDanger = {
52
52
  dangerMutedPrimary: {
53
53
  fill: 'dangerTertiary',
54
54
  fillHover: 'dangerHover',
55
+ borderColor: 'dangerBorderSecondary',
55
56
  labelTextColor: 'dangerTextQuaternary',
56
57
  labelTextColorHover: 'dangerTextQuaternary',
57
- borderColor: 'dangerBorderSecondary',
58
58
  iconAfterFillIcon: 'dangerItemQuaternary',
59
59
  iconBeforeFillIcon: 'dangerItemQuaternary',
60
60
  iconFillIcon: 'dangerItemQuaternary',
@@ -86,9 +86,9 @@ var buttonAppearanceError = {
86
86
  errorMutedPrimary: {
87
87
  fill: 'errorTertiary',
88
88
  fillHover: 'errorHover',
89
+ borderColor: 'errorBorderSecondary',
89
90
  labelTextColor: 'errorTextQuaternary',
90
91
  labelTextColorHover: 'errorTextQuaternary',
91
- borderColor: 'errorBorderSecondary',
92
92
  iconAfterFillIcon: 'errorItemQuaternary',
93
93
  iconBeforeFillIcon: 'errorItemQuaternary',
94
94
  iconFillIcon: 'errorItemQuaternary',
@@ -110,9 +110,9 @@ var buttonAppearanceInfo = {
110
110
  info: {
111
111
  fill: 'infoPrimary',
112
112
  fillHover: 'infoPrimaryHover',
113
+ borderColor: 'infoBorderPrimary',
113
114
  labelTextColor: 'infoTextPrimary',
114
115
  labelTextColorHover: 'infoTextPrimary',
115
- borderColor: 'infoBorderPrimary',
116
116
  iconAfterFillIcon: 'infoItemPrimary',
117
117
  iconBeforeFillIcon: 'infoItemPrimary',
118
118
  iconFillIcon: 'infoItemPrimary',
@@ -121,9 +121,9 @@ var buttonAppearanceInfo = {
121
121
  infoMutedPrimary: {
122
122
  fill: 'infoTertiary',
123
123
  fillHover: 'infoTertiaryHover',
124
+ borderColor: 'infoBorderSecondary',
124
125
  labelTextColor: 'infoTextSecondary',
125
126
  labelTextColorHover: 'infoTextSecondary',
126
- borderColor: 'infoBorderSecondary',
127
127
  iconAfterFillIcon: 'infoItemSecondary',
128
128
  iconBeforeFillIcon: 'infoItemSecondary',
129
129
  iconFillIcon: 'infoItemSecondaryPrimary',
@@ -132,9 +132,9 @@ var buttonAppearanceInfo = {
132
132
  infoPrimary: {
133
133
  fill: 'infoPrimary',
134
134
  fillHover: 'infoPrimaryHover',
135
+ borderColor: 'infoBorderPrimary',
135
136
  labelTextColor: 'infoTextPrimary',
136
137
  labelTextColorHover: 'infoTextPrimary',
137
- borderColor: 'infoBorderPrimary',
138
138
  iconAfterFillIcon: 'infoItemPrimary',
139
139
  iconBeforeFillIcon: 'infoItemPrimary',
140
140
  iconFillIcon: 'infoItemPrimary',
@@ -143,9 +143,9 @@ var buttonAppearanceInfo = {
143
143
  infoSecondary: {
144
144
  fill: 'infoPrimary',
145
145
  fillHover: 'infoPrimaryHover',
146
+ borderColor: 'infoBorderPrimary',
146
147
  labelTextColor: 'infoTextSecondary',
147
148
  labelTextColorHover: 'infoTextSecondary',
148
- borderColor: 'infoBorderPrimary',
149
149
  iconAfterFillIcon: 'infoItemPrimary',
150
150
  iconBeforeFillIcon: 'infoItemPrimary',
151
151
  iconFillIcon: 'infoItemPrimary',
@@ -166,8 +166,8 @@ var buttonAppearancePrimary = {
166
166
  primaryMutedPrimary: {
167
167
  fill: 'primaryTertiary',
168
168
  fillHover: 'primaryPrimaryHover',
169
- labelTextColor: 'primaryTextSecondary',
170
169
  borderColor: 'primaryBorderTertiary',
170
+ labelTextColor: 'primaryTextSecondary',
171
171
  iconAfterFillIcon: 'primaryItemSecondary',
172
172
  iconBeforeFillIcon: 'primaryItemSecondary',
173
173
  iconFillIcon: 'primaryItemSecondary',
@@ -197,8 +197,8 @@ var buttonAppearanceSecondary = {
197
197
  secondaryMutedPrimary: {
198
198
  fill: 'secondaryTertiary',
199
199
  fillHover: 'secondaryPrimaryHover',
200
- labelTextColor: 'secondaryTextQuaternary',
201
200
  borderColor: 'secondaryBorderSecondary',
201
+ labelTextColor: 'secondaryTextQuaternary',
202
202
  iconAfterFillIcon: 'secondaryItemQuaternary',
203
203
  iconBeforeFillIcon: 'secondaryItemQuaternary',
204
204
  iconFillIcon: 'secondaryItemQuaternary',
@@ -222,21 +222,21 @@ var buttonAppearanceShape = {
222
222
  rounded: {
223
223
  shape: 'rounded',
224
224
  },
225
- roundedS: {
226
- shape: 'rounded',
227
- shapeStrength: '0_5m',
228
- },
229
- roundedM: {
225
+ roundedXL: {
230
226
  shape: 'rounded',
231
- shapeStrength: '1m',
227
+ shapeStrength: '2m',
232
228
  },
233
229
  roundedL: {
234
230
  shape: 'rounded',
235
231
  shapeStrength: '1_5m',
236
232
  },
237
- roundedXL: {
233
+ roundedM: {
238
234
  shape: 'rounded',
239
- shapeStrength: '2m',
235
+ shapeStrength: '1m',
236
+ },
237
+ roundedS: {
238
+ shape: 'rounded',
239
+ shapeStrength: '0_5m',
240
240
  },
241
241
  };
242
242
 
@@ -244,65 +244,65 @@ var buttonAppearanceSize = {
244
244
  sizeXXL: {
245
245
  size: 'xxl',
246
246
  labelTextSize: 'xl',
247
- iconAfterFillSize: 24,
248
- iconAfterSize: 24,
249
- iconBeforeFillSize: 24,
250
- iconBeforeSize: 24,
251
- loaderSize: 'l',
247
+ iconAfterFillSize: '24',
248
+ iconAfterSize: '24',
249
+ iconBeforeFillSize: '24',
250
+ iconBeforeSize: '24',
251
+ loaderAppearanceSize: 'sizeL',
252
252
  },
253
253
  sizeXL: {
254
254
  size: 'xl',
255
255
  labelTextSize: 'l',
256
- iconAfterFillSize: 24,
257
- iconAfterSize: 24,
258
- iconBeforeFillSize: 24,
259
- iconBeforeSize: 24,
260
- loaderSize: 'l',
256
+ iconAfterFillSize: '24',
257
+ iconAfterSize: '24',
258
+ iconBeforeFillSize: '24',
259
+ iconBeforeSize: '24',
260
+ loaderAppearanceSize: 'sizeL',
261
261
  },
262
262
  sizeL: {
263
263
  size: 'l',
264
264
  labelTextSize: 'l',
265
- iconAfterFillSize: 24,
266
- iconAfterSize: 24,
267
- iconBeforeFillSize: 24,
268
- iconBeforeSize: 24,
269
- loaderSize: 'l',
265
+ iconAfterFillSize: '24',
266
+ iconAfterSize: '24',
267
+ iconBeforeFillSize: '24',
268
+ iconBeforeSize: '24',
269
+ loaderAppearanceSize: 'sizeL',
270
270
  },
271
271
  sizeM: {
272
272
  size: 'm',
273
273
  labelTextSize: 'm',
274
- iconAfterFillSize: 24,
275
- iconAfterSize: 24,
276
- iconBeforeFillSize: 24,
277
- iconBeforeSize: 24,
278
- loaderSize: 'l',
274
+ iconAfterFillSize: '24',
275
+ iconAfterSize: '24',
276
+ iconBeforeFillSize: '24',
277
+ iconBeforeSize: '24',
278
+ loaderAppearanceSize: 'sizeL',
279
279
  },
280
280
  sizeS: {
281
281
  size: 's',
282
282
  labelTextSize: 's',
283
- iconAfterFillSize: 20,
284
- iconAfterSize: 20,
285
- iconBeforeFillSize: 20,
286
- iconBeforeSize: 20,
287
- loaderSize: 'l',
283
+ iconAfterFillSize: '20',
284
+ iconAfterSize: '20',
285
+ iconBeforeFillSize: '20',
286
+ iconBeforeSize: '20',
287
+ loaderAppearanceSize: 'sizeL',
288
288
  },
289
289
  sizeXS: {
290
290
  size: 'xs',
291
291
  labelTextSize: 'xs',
292
- iconAfterFillSize: 16,
293
- iconAfterSize: 16,
294
- iconBeforeFillSize: 16,
295
- iconBeforeSize: 16,
296
- loaderSize: 'l',
292
+ iconAfterFillSize: '16',
293
+ iconAfterSize: '16',
294
+ iconBeforeFillSize: '16',
295
+ iconBeforeSize: '16',
296
+ loaderAppearanceSize: 'sizeL',
297
297
  },
298
298
  sizeXXS: {
299
299
  size: 'xxs',
300
300
  labelTextSize: 'xs',
301
- iconAfterFillSize: 14,
302
- iconAfterSize: 14,
303
- iconBeforeFillSize: 14,
304
- iconBeforeSize: 14,
305
- loaderSize: 'l',
301
+ iconAfterFillSize: '14',
302
+ iconAfterSize: '14',
303
+ iconBeforeFillSize: '14',
304
+ iconBeforeSize: '14',
305
+ loaderAppearanceSize: 'sizeL',
306
306
  },
307
307
  };
308
308
 
@@ -334,9 +334,9 @@ var buttonAppearanceSuccess = {
334
334
  successMutedPrimary: {
335
335
  fill: 'successTertiary',
336
336
  fillHover: 'successHover',
337
+ borderColor: 'successBorderQuaternary',
337
338
  labelTextColor: 'successTextQuaternary',
338
339
  labelTextColorHover: 'successTextQuaternary',
339
- borderColor: 'successBorderQuaternary',
340
340
  iconAfterFillIcon: 'successItemQuaternary',
341
341
  iconBeforeFillIcon: 'successItemQuaternary',
342
342
  iconFillIcon: 'successItemQuaternary',
@@ -358,8 +358,8 @@ var buttonAppearanceSurface = {
358
358
  surfaceMutedPrimary: {
359
359
  fill: 'surfaceTertiary',
360
360
  fillHover: 'surfaceTertiary',
361
- labelTextColor: 'surfaceTextQuaternary',
362
361
  borderColor: 'surfaceBorderQuaternary',
362
+ labelTextColor: 'surfaceTextQuaternary',
363
363
  iconAfterFillIcon: 'surfaceItemQuaternary',
364
364
  iconBeforeFillIcon: 'surfaceItemQuaternary',
365
365
  iconFillIcon: 'surfaceItemQuaternary',
@@ -368,8 +368,8 @@ var buttonAppearanceSurface = {
368
368
  surfacePrimary: {
369
369
  fill: 'surfacePrimary',
370
370
  fillHover: 'surfaceSecondary',
371
- labelTextColor: 'surfaceTextPrimary',
372
371
  borderColor: 'surfaceBorderTertiary',
372
+ labelTextColor: 'surfaceTextPrimary',
373
373
  iconAfterFillIcon: 'surfaceItemPrimary',
374
374
  iconBeforeFillIcon: 'surfaceItemPrimary',
375
375
  iconFillIcon: 'surfaceItemPrimary',
@@ -378,8 +378,8 @@ var buttonAppearanceSurface = {
378
378
  surfaceSecondary: {
379
379
  fill: 'surfaceSecondary',
380
380
  fillHover: 'surfaceSecondary',
381
- labelTextColor: 'surfaceTextPrimary',
382
381
  borderColor: 'surfaceBorderTertiary',
382
+ labelTextColor: 'surfaceTextPrimary',
383
383
  iconAfterFillIcon: 'surfaceItemPrimary',
384
384
  iconBeforeFillIcon: 'surfaceItemPrimary',
385
385
  iconFillIcon: 'surfaceItemPrimary',
@@ -397,8 +397,8 @@ var buttonAppearanceSurface = {
397
397
  surfaceQuaternary: {
398
398
  fill: 'surfaceTertiary',
399
399
  fillHover: 'surfaceTertiaryHover',
400
- labelTextColor: 'surfaceTextPrimary',
401
400
  borderColor: 'surfaceBorderTertiary',
401
+ labelTextColor: 'surfaceTextPrimary',
402
402
  iconAfterFillIcon: 'surfaceItemPrimary',
403
403
  iconBeforeFillIcon: 'surfaceItemPrimary',
404
404
  iconFillIcon: 'surfaceItemPrimary',
@@ -420,9 +420,9 @@ var buttonAppearanceWarning = {
420
420
  warningMutedPrimary: {
421
421
  fill: 'warningTertiary',
422
422
  fillHover: 'warningBorderHover',
423
+ borderColor: 'warningBorderHover',
423
424
  labelTextColor: 'warningTextSecondary',
424
425
  labelTextColorHover: 'warningTextPrimary',
425
- borderColor: 'warningBorderHover',
426
426
  iconAfterFillIcon: 'warningItemSecondary',
427
427
  iconBeforeFillIcon: 'warningItemSecondary',
428
428
  iconFillIcon: 'warningItemSecondary',
@@ -449,10 +449,10 @@ var buttonConfig = {
449
449
  },
450
450
  };
451
451
  var Button = React.forwardRef(function Button(props, ref) {
452
- var dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, label = props.label, isDisabled = props.isDisabled, 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, _b = props.isLoading, isLoading = _b === void 0 ? false : _b, onClick = props.onClick, onMouseDown = props.onMouseDown, children = props.children;
452
+ 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;
453
453
  var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, buttonConfig, isDisabled);
454
454
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
455
- 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, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
455
+ 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;
456
456
  var _d = useStyles.useStyles(props), labelStyles = _d.label, buttonStyles = _d.styles;
457
457
  var buttonTypeClass = after ||
458
458
  before ||
@@ -462,13 +462,13 @@ var Button = React.forwardRef(function Button(props, ref) {
462
462
  iconBefore ||
463
463
  iconBeforeSrc ||
464
464
  iconSrc;
465
- return (jsxRuntime.jsx(Link.LinkWrapper, { dataTestId: dataTestId && "".concat(dataTestId, "Button"), dataTour: dataTour, className: clsx(className, 'button', label && buttonTypeClass
465
+ return (jsxRuntime.jsx(Link.LinkWrapper, { className: clsx(className, 'button', label && buttonTypeClass
466
466
  ? 'button_type_default'
467
467
  : label
468
468
  ? 'buttom_type_label'
469
469
  : buttonTypeClass
470
470
  ? 'button_type_icon'
471
- : '', 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: 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(Icon.Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.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(Icon.Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
471
+ : '', 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: jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { className: clsx(className, 'button__loader'), type: loaderType, appearance: "".concat(loaderAppearance, " ").concat(loaderAppearanceSize), size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, 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(Icon.Icon, { className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
472
472
  });
473
473
 
474
474
  exports.Button = Button;