@itcase/ui 1.8.118 → 1.8.120

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 (35) hide show
  1. package/dist/{Button_cjs_CvczxroQ.js → Button_cjs_3BTD8Mlm.js} +63 -63
  2. package/dist/{Button_es_BmbsQu5F.js → Button_es_B_k-SP92.js} +63 -63
  3. package/dist/{DatePicker_cjs_DYXNxuUF.js → DatePicker_cjs_BLkZB0S0.js} +1 -1
  4. package/dist/{DatePicker_es_lMIvYFM6.js → DatePicker_es_CKrgRUWu.js} +1 -1
  5. package/dist/cjs/components/Button.js +1 -1
  6. package/dist/cjs/components/Checkbox.js +2 -2
  7. package/dist/cjs/components/CookiesWarning.js +1 -1
  8. package/dist/cjs/components/DatePeriod.js +2 -2
  9. package/dist/cjs/components/DatePicker.js +2 -2
  10. package/dist/cjs/components/Response.js +1 -1
  11. package/dist/cjs/components/Swiper.js +12 -6
  12. package/dist/components/Button.js +1 -1
  13. package/dist/components/Checkbox.js +2 -2
  14. package/dist/components/CookiesWarning.js +1 -1
  15. package/dist/components/DatePeriod.js +2 -2
  16. package/dist/components/DatePicker.js +2 -2
  17. package/dist/components/Response.js +1 -1
  18. package/dist/components/Swiper.js +12 -6
  19. package/dist/types/components/Button/Button.appearance.d.ts +2612 -2
  20. package/dist/types/components/Button/Button.d.ts +71 -2
  21. package/dist/types/components/Button/Button.interface.d.ts +67 -60
  22. package/dist/types/components/Button/appearance/buttonAccent.d.ts +2 -35
  23. package/dist/types/components/Button/appearance/buttonDanger.d.ts +2 -23
  24. package/dist/types/components/Button/appearance/buttonError.d.ts +2 -33
  25. package/dist/types/components/Button/appearance/buttonInfo.d.ts +2 -46
  26. package/dist/types/components/Button/appearance/buttonPrimary.d.ts +2 -30
  27. package/dist/types/components/Button/appearance/buttonSecondary.d.ts +2 -30
  28. package/dist/types/components/Button/appearance/buttonShape.d.ts +2 -24
  29. package/dist/types/components/Button/appearance/buttonSize.d.ts +2 -65
  30. package/dist/types/components/Button/appearance/buttonStyle.d.ts +2 -13
  31. package/dist/types/components/Button/appearance/buttonSuccess.d.ts +2 -33
  32. package/dist/types/components/Button/appearance/buttonSurface.d.ts +2 -51
  33. package/dist/types/components/Button/appearance/buttonWarning.d.ts +2 -33
  34. package/dist/types/components/Checkbox/appearance/checkboxRequire.d.ts +2 -2
  35. package/package.json +1 -1
@@ -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
- roundedS: {
224
- shape: 'rounded',
225
- shapeStrength: '0_5m',
226
- },
227
- roundedM: {
223
+ roundedXL: {
228
224
  shape: 'rounded',
229
- shapeStrength: '1m',
225
+ shapeStrength: '2m',
230
226
  },
231
227
  roundedL: {
232
228
  shape: 'rounded',
233
229
  shapeStrength: '1_5m',
234
230
  },
235
- roundedXL: {
231
+ roundedM: {
236
232
  shape: 'rounded',
237
- shapeStrength: '2m',
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
- loaderSize: 'l',
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
- loaderSize: 'l',
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
- loaderSize: 'l',
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
- loaderSize: 'l',
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
- loaderSize: 'l',
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
- loaderSize: 'l',
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
- loaderSize: 'l',
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, 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;
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, 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;
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 ||
@@ -466,7 +466,7 @@ var Button = React.forwardRef(function Button(props, ref) {
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, "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', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsx(Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, 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", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
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 };
@@ -9,7 +9,7 @@ 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('./Button_cjs_CvczxroQ.js');
12
+ var Button = require('./Button_cjs_3BTD8Mlm.js');
13
13
  var Icon = require('./Icon_cjs_CUArL1z2.js');
14
14
  var Input = require('./Input_cjs_Du73R-wm.js');
15
15
  var Label = require('./Label_cjs_BUEGAnsq.js');
@@ -7,7 +7,7 @@ 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 './Button_es_BmbsQu5F.js';
10
+ import { B as Button } from './Button_es_B_k-SP92.js';
11
11
  import { I as Icon } from './Icon_es_CNrc90oI.js';
12
12
  import { I as Input } from './Input_es_CiDHjDqJ.js';
13
13
  import { L as Label } from './Label_es_I01RN9hv.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Button = require('../../Button_cjs_CvczxroQ.js');
3
+ var Button = require('../../Button_cjs_3BTD8Mlm.js');
4
4
  require('react/jsx-runtime');
5
5
  require('react');
6
6
  require('clsx');
@@ -90,12 +90,12 @@ var checkboxAppearanceRequire = {
90
90
  fillCheckboxActiveHover: 'warningTertiary',
91
91
  fillCheckboxHover: 'warningSecondary',
92
92
  fillCheckmark: 'warningBorderPrimary',
93
- labelTextColor: 'surfaceTextPrimary',
94
- descTextColor: 'surfaceTextPrimary',
95
93
  borderColorCheckbox: 'warningBorderPrimary',
96
94
  borderColorCheckboxActive: 'warningBorderPrimary',
97
95
  borderColorCheckboxActiveHover: 'warningBorderPrimary',
98
96
  borderColorCheckboxHover: 'warningBorderPrimary',
97
+ labelTextColor: 'surfaceTextPrimary',
98
+ descTextColor: 'surfaceTextPrimary',
99
99
  },
100
100
  requireSecondary: {
101
101
  fill: 'surfaceSecondary',
@@ -6,7 +6,7 @@ var clsx = require('clsx');
6
6
  var Cookies = require('js-cookie');
7
7
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
8
8
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
9
- var Button = require('../../Button_cjs_CvczxroQ.js');
9
+ var Button = require('../../Button_cjs_3BTD8Mlm.js');
10
10
  var Text = require('../../Text_cjs_0EINiUq4.js');
11
11
  var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
12
12
  require('lodash/camelCase');
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var common = require('@itcase/common');
7
- var DatePicker = require('../../DatePicker_cjs_DYXNxuUF.js');
7
+ var DatePicker = require('../../DatePicker_cjs_BLkZB0S0.js');
8
8
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
9
9
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
10
  var ChipsGroup = require('../../ChipsGroup_cjs_DhoY9YjT.js');
@@ -23,7 +23,7 @@ require('react-responsive');
23
23
  require('../utils/setViewportProperty.js');
24
24
  require('../hooks.js');
25
25
  require('../hooks/useStyles/styleAttributes.js');
26
- require('../../Button_cjs_CvczxroQ.js');
26
+ require('../../Button_cjs_3BTD8Mlm.js');
27
27
  require('../../Icon_cjs_CUArL1z2.js');
28
28
  require('react-inlinesvg');
29
29
  require('../hoc/urlWithAssetPrefix.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var DatePicker = require('../../DatePicker_cjs_DYXNxuUF.js');
3
+ var DatePicker = require('../../DatePicker_cjs_BLkZB0S0.js');
4
4
  require('../../tslib.es6_cjs_CCZ3TN_7.js');
5
5
  require('react/jsx-runtime');
6
6
  require('react');
@@ -23,7 +23,7 @@ require('../hooks.js');
23
23
  require('../hooks/useStyles/styleAttributes.js');
24
24
  require('../hooks/useStyles/useStyles.js');
25
25
  require('lodash/maxBy');
26
- require('../../Button_cjs_CvczxroQ.js');
26
+ require('../../Button_cjs_3BTD8Mlm.js');
27
27
  require('../../Icon_cjs_CUArL1z2.js');
28
28
  require('react-inlinesvg');
29
29
  require('../hoc/urlWithAssetPrefix.js');
@@ -9,7 +9,7 @@ var urlWithAssetPrefix = require('../hoc/urlWithAssetPrefix.js');
9
9
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
10
10
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
11
11
  var useStyles = require('../hooks/useStyles/useStyles.js');
12
- var Button = require('../../Button_cjs_CvczxroQ.js');
12
+ var Button = require('../../Button_cjs_3BTD8Mlm.js');
13
13
  var Group = require('../../Group_cjs_CsJ6ICKK.js');
14
14
  var Text = require('../../Text_cjs_0EINiUq4.js');
15
15
  require('@itcase/common');
@@ -30,8 +30,9 @@ require('../../Text_cjs_0EINiUq4.js');
30
30
 
31
31
  function Swiper(props) {
32
32
  var id = props.id, className = props.className, direction = props.direction, title = props.title, titleAfter = props.titleAfter, titleSize = props.titleSize, titleTextColor = props.titleTextColor, titleWeight = props.titleWeight, setNextBtnDisabled = props.setNextBtnDisabled, setPrevBtnDisabled = props.setPrevBtnDisabled, _a = props.activeSlideIndex, activeSlideIndex = _a === void 0 ? 0 : _a, allowTouchMove = props.allowTouchMove, autoHeight = props.autoHeight, breakpoints = props.breakpoints, forwardedRef = props.forwardedRef, // https://github.com/vercel/next.js/issues/4957
33
- freeMode = props.freeMode, items = props.items, keyboard = props.keyboard, loop = props.loop, modules = props.modules, mousewheel = props.mousewheel, nextButton = props.nextButton, normalizeSlideIndex = props.normalizeSlideIndex, pagination = props.pagination, prevButton = props.prevButton, preventClicks = props.preventClicks, preventClicksPropagation = props.preventClicksPropagation, simulateTouch = props.simulateTouch, slidesPerView = props.slidesPerView, spaceBetween = props.spaceBetween, speed = props.speed, swiperClass = props.swiperClass, swiperSlideClass = props.swiperSlideClass, isChangeOnClickSlide = props.isChangeOnClickSlide, isInit = props.isInit, _b = props.isNavigation, isNavigation = _b === void 0 ? false : _b, isScrollbar = props.isScrollbar, set = props.set, onSlideNextTransitionEnd = props.onSlideNextTransitionEnd, onSlidePrevTransitionEnd = props.onSlidePrevTransitionEnd, onSwiper = props.onSwiper, onUpdate = props.onUpdate, children = props.children;
33
+ freeMode = props.freeMode, items = props.items, keyboard = props.keyboard, loop = props.loop, modules = props.modules, mousewheel = props.mousewheel, nextButton = props.nextButton, normalizeSlideIndex = props.normalizeSlideIndex, pagination = props.pagination, prevButton = props.prevButton, preventClicks = props.preventClicks, preventClicksPropagation = props.preventClicksPropagation, set = props.set, simulateTouch = props.simulateTouch, slidesPerView = props.slidesPerView, spaceBetween = props.spaceBetween, speed = props.speed, swiperClass = props.swiperClass, swiperSlideClass = props.swiperSlideClass, isChangeOnClickSlide = props.isChangeOnClickSlide, isInit = props.isInit, _b = props.isNavigation, isNavigation = _b === void 0 ? false : _b, isScrollbar = props.isScrollbar, onSlideNextTransitionEnd = props.onSlideNextTransitionEnd, onSlidePrevTransitionEnd = props.onSlidePrevTransitionEnd, onSwiper = props.onSwiper, onUpdate = props.onUpdate, children = props.children;
34
34
  var swiperRef = React.useRef(null);
35
+ var isMountedRef = React.useRef(false);
35
36
  var _c = useSwiperRef(), nextEl = _c[0], nextRef = _c[1];
36
37
  var _d = useSwiperRef(), prevEl = _d[0], prevRef = _d[1];
37
38
  var isLoop = loop !== null && loop !== void 0 ? loop : true;
@@ -60,16 +61,21 @@ function Swiper(props) {
60
61
  React.useImperativeHandle(forwardedRef, function () { return swiperRef.current; }, []);
61
62
  React.useEffect(function () {
62
63
  var _a;
63
- var swiperInstance = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper;
64
- // @ts-expect-error
65
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateActiveIndex(activeSlideIndex);
66
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateSlidesClasses();
64
+ if (isMountedRef.current) {
65
+ var swiperInstance = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper;
66
+ // @ts-expect-error
67
+ swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateActiveIndex(activeSlideIndex);
68
+ swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateSlidesClasses();
69
+ }
70
+ else {
71
+ isMountedRef.current = true;
72
+ }
67
73
  }, [activeSlideIndex]);
68
74
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
69
75
  var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass;
70
76
  // @ts-expect-error
71
77
  var style = useStyles.useStyles(props).styles;
72
- return (jsxRuntime.jsxs("div", { id: id, className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && "fill_".concat(fillClass), shapeClass && "swiper_shape_".concat(shapeClass), className, set && "swiper-block_set_".concat(set)), style: style, children: [(title || (prevButton && nextButton)) && (jsxRuntime.jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsxRuntime.jsx(Icon.Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxRuntime.jsxs("div", { className: "swiper-block__navigation", children: [jsxRuntime.jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsxRuntime.jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsxRuntime.jsx(react.Swiper, { className: clsx('swiper-block__swiper', swiperClass), direction: direction, allowTouchMove: allowTouchMove, autoHeight: autoHeight !== null && autoHeight !== void 0 ? autoHeight : false, breakpoints: breakpoints, centeredSlides: true, freeMode: freeMode, init: isInit !== null && isInit !== void 0 ? isInit : true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl: nextEl, prevEl: prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, ref: swiperRef, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed !== null && speed !== void 0 ? speed : 500, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
78
+ return (jsxRuntime.jsxs("div", { id: id, className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && "fill_".concat(fillClass), shapeClass && "swiper_shape_".concat(shapeClass), className, set && "swiper-block_set_".concat(set)), style: style, children: [(title || (prevButton && nextButton)) && (jsxRuntime.jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsxRuntime.jsx(Icon.Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxRuntime.jsxs("div", { className: "swiper-block__navigation", children: [jsxRuntime.jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsxRuntime.jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsxRuntime.jsx(react.Swiper, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, direction: direction, allowTouchMove: allowTouchMove, autoHeight: autoHeight !== null && autoHeight !== void 0 ? autoHeight : false, breakpoints: breakpoints, centeredSlides: true, freeMode: freeMode, init: isInit !== null && isInit !== void 0 ? isInit : true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl: nextEl, prevEl: prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed !== null && speed !== void 0 ? speed : 500, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
73
79
  (items === null || items === void 0 ? void 0 : items.map(function (item, i) { return (jsxRuntime.jsx(react.SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), children: item }, "swiper-slide_".concat(i))); })) })] }));
74
80
  }
75
81
  // https://github.com/nolimits4web/swiper/issues/3855#issuecomment-1050694342
@@ -1,4 +1,4 @@
1
- export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_BmbsQu5F.js';
1
+ export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_B_k-SP92.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -88,12 +88,12 @@ var checkboxAppearanceRequire = {
88
88
  fillCheckboxActiveHover: 'warningTertiary',
89
89
  fillCheckboxHover: 'warningSecondary',
90
90
  fillCheckmark: 'warningBorderPrimary',
91
- labelTextColor: 'surfaceTextPrimary',
92
- descTextColor: 'surfaceTextPrimary',
93
91
  borderColorCheckbox: 'warningBorderPrimary',
94
92
  borderColorCheckboxActive: 'warningBorderPrimary',
95
93
  borderColorCheckboxActiveHover: 'warningBorderPrimary',
96
94
  borderColorCheckboxHover: 'warningBorderPrimary',
95
+ labelTextColor: 'surfaceTextPrimary',
96
+ descTextColor: 'surfaceTextPrimary',
97
97
  },
98
98
  requireSecondary: {
99
99
  fill: 'surfaceSecondary',
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import Cookies from 'js-cookie';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
- import { B as Button } from '../Button_es_BmbsQu5F.js';
7
+ import { B as Button } from '../Button_es_B_k-SP92.js';
8
8
  import { T as Text } from '../Text_es_CwV9rjFD.js';
9
9
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
10
10
  import 'lodash/camelCase';
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useCallback } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { DATE_PERIOD_INTERVALS } from '@itcase/common';
5
- import { D as DatePickerInput } from '../DatePicker_es_lMIvYFM6.js';
5
+ import { D as DatePickerInput } from '../DatePicker_es_CKrgRUWu.js';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_Dg1GmJ-9.js';
@@ -21,7 +21,7 @@ import 'react-responsive';
21
21
  import '../utils/setViewportProperty.js';
22
22
  import '../hooks.js';
23
23
  import '../hooks/useStyles/styleAttributes.js';
24
- import '../Button_es_BmbsQu5F.js';
24
+ import '../Button_es_B_k-SP92.js';
25
25
  import '../Icon_es_CNrc90oI.js';
26
26
  import 'react-inlinesvg';
27
27
  import '../hoc/urlWithAssetPrefix.js';
@@ -1,4 +1,4 @@
1
- export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_lMIvYFM6.js';
1
+ export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_CKrgRUWu.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -21,7 +21,7 @@ import '../hooks.js';
21
21
  import '../hooks/useStyles/styleAttributes.js';
22
22
  import '../hooks/useStyles/useStyles.js';
23
23
  import 'lodash/maxBy';
24
- import '../Button_es_BmbsQu5F.js';
24
+ import '../Button_es_B_k-SP92.js';
25
25
  import '../Icon_es_CNrc90oI.js';
26
26
  import 'react-inlinesvg';
27
27
  import '../hoc/urlWithAssetPrefix.js';
@@ -7,7 +7,7 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
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 '../Button_es_BmbsQu5F.js';
10
+ import { B as Button } from '../Button_es_B_k-SP92.js';
11
11
  import { G as Group } from '../Group_es_DRqIIM9m.js';
12
12
  import { T as Text } from '../Text_es_CwV9rjFD.js';
13
13
  import '@itcase/common';
@@ -28,8 +28,9 @@ import '../Text_es_CwV9rjFD.js';
28
28
 
29
29
  function Swiper(props) {
30
30
  var id = props.id, className = props.className, direction = props.direction, title = props.title, titleAfter = props.titleAfter, titleSize = props.titleSize, titleTextColor = props.titleTextColor, titleWeight = props.titleWeight, setNextBtnDisabled = props.setNextBtnDisabled, setPrevBtnDisabled = props.setPrevBtnDisabled, _a = props.activeSlideIndex, activeSlideIndex = _a === void 0 ? 0 : _a, allowTouchMove = props.allowTouchMove, autoHeight = props.autoHeight, breakpoints = props.breakpoints, forwardedRef = props.forwardedRef, // https://github.com/vercel/next.js/issues/4957
31
- freeMode = props.freeMode, items = props.items, keyboard = props.keyboard, loop = props.loop, modules = props.modules, mousewheel = props.mousewheel, nextButton = props.nextButton, normalizeSlideIndex = props.normalizeSlideIndex, pagination = props.pagination, prevButton = props.prevButton, preventClicks = props.preventClicks, preventClicksPropagation = props.preventClicksPropagation, simulateTouch = props.simulateTouch, slidesPerView = props.slidesPerView, spaceBetween = props.spaceBetween, speed = props.speed, swiperClass = props.swiperClass, swiperSlideClass = props.swiperSlideClass, isChangeOnClickSlide = props.isChangeOnClickSlide, isInit = props.isInit, _b = props.isNavigation, isNavigation = _b === void 0 ? false : _b, isScrollbar = props.isScrollbar, set = props.set, onSlideNextTransitionEnd = props.onSlideNextTransitionEnd, onSlidePrevTransitionEnd = props.onSlidePrevTransitionEnd, onSwiper = props.onSwiper, onUpdate = props.onUpdate, children = props.children;
31
+ freeMode = props.freeMode, items = props.items, keyboard = props.keyboard, loop = props.loop, modules = props.modules, mousewheel = props.mousewheel, nextButton = props.nextButton, normalizeSlideIndex = props.normalizeSlideIndex, pagination = props.pagination, prevButton = props.prevButton, preventClicks = props.preventClicks, preventClicksPropagation = props.preventClicksPropagation, set = props.set, simulateTouch = props.simulateTouch, slidesPerView = props.slidesPerView, spaceBetween = props.spaceBetween, speed = props.speed, swiperClass = props.swiperClass, swiperSlideClass = props.swiperSlideClass, isChangeOnClickSlide = props.isChangeOnClickSlide, isInit = props.isInit, _b = props.isNavigation, isNavigation = _b === void 0 ? false : _b, isScrollbar = props.isScrollbar, onSlideNextTransitionEnd = props.onSlideNextTransitionEnd, onSlidePrevTransitionEnd = props.onSlidePrevTransitionEnd, onSwiper = props.onSwiper, onUpdate = props.onUpdate, children = props.children;
32
32
  var swiperRef = useRef(null);
33
+ var isMountedRef = useRef(false);
33
34
  var _c = useSwiperRef(), nextEl = _c[0], nextRef = _c[1];
34
35
  var _d = useSwiperRef(), prevEl = _d[0], prevRef = _d[1];
35
36
  var isLoop = loop !== null && loop !== void 0 ? loop : true;
@@ -58,16 +59,21 @@ function Swiper(props) {
58
59
  useImperativeHandle(forwardedRef, function () { return swiperRef.current; }, []);
59
60
  useEffect(function () {
60
61
  var _a;
61
- var swiperInstance = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper;
62
- // @ts-expect-error
63
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateActiveIndex(activeSlideIndex);
64
- swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateSlidesClasses();
62
+ if (isMountedRef.current) {
63
+ var swiperInstance = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper;
64
+ // @ts-expect-error
65
+ swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateActiveIndex(activeSlideIndex);
66
+ swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateSlidesClasses();
67
+ }
68
+ else {
69
+ isMountedRef.current = true;
70
+ }
65
71
  }, [activeSlideIndex]);
66
72
  var propsGenerator = useDevicePropsGenerator(props);
67
73
  var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass;
68
74
  // @ts-expect-error
69
75
  var style = useStyles(props).styles;
70
- return (jsxs("div", { id: id, className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && "fill_".concat(fillClass), shapeClass && "swiper_shape_".concat(shapeClass), className, set && "swiper-block_set_".concat(set)), style: style, children: [(title || (prevButton && nextButton)) && (jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsx(Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxs("div", { className: "swiper-block__navigation", children: [jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsx(Swiper$1, { className: clsx('swiper-block__swiper', swiperClass), direction: direction, allowTouchMove: allowTouchMove, autoHeight: autoHeight !== null && autoHeight !== void 0 ? autoHeight : false, breakpoints: breakpoints, centeredSlides: true, freeMode: freeMode, init: isInit !== null && isInit !== void 0 ? isInit : true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl: nextEl, prevEl: prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, ref: swiperRef, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed !== null && speed !== void 0 ? speed : 500, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
76
+ return (jsxs("div", { id: id, className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && "fill_".concat(fillClass), shapeClass && "swiper_shape_".concat(shapeClass), className, set && "swiper-block_set_".concat(set)), style: style, children: [(title || (prevButton && nextButton)) && (jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsx(Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxs("div", { className: "swiper-block__navigation", children: [jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsx(Swiper$1, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, direction: direction, allowTouchMove: allowTouchMove, autoHeight: autoHeight !== null && autoHeight !== void 0 ? autoHeight : false, breakpoints: breakpoints, centeredSlides: true, freeMode: freeMode, init: isInit !== null && isInit !== void 0 ? isInit : true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl: nextEl, prevEl: prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed !== null && speed !== void 0 ? speed : 500, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
71
77
  (items === null || items === void 0 ? void 0 : items.map(function (item, i) { return (jsx(SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), children: item }, "swiper-slide_".concat(i))); })) })] }));
72
78
  }
73
79
  // https://github.com/nolimits4web/swiper/issues/3855#issuecomment-1050694342