@itcase/ui 1.9.28 → 1.9.30

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 (136) hide show
  1. package/dist/{Avatar_cjs_CS01fvh-.js → Avatar_cjs_DsgsCeRd.js} +2 -2
  2. package/dist/{Avatar_es_DRObE1DB.js → Avatar_es_DBNS3IWw.js} +2 -2
  3. package/dist/{Button_cjs_DPs7uj_n.js → Button_cjs_DiaYeIs8.js} +19 -33
  4. package/dist/{Button_es_ljlle2Pu.js → Button_es_y6hlih24.js} +19 -33
  5. package/dist/{ChipsGroup_cjs_Sn3uiCSJ.js → ChipsGroup_cjs_P0UlUnid.js} +4 -4
  6. package/dist/{ChipsGroup_es_CbzUWqG9.js → ChipsGroup_es_BgECuDPT.js} +4 -4
  7. package/dist/{DatePicker_cjs_Bfiav-tb.js → DatePicker_cjs_CaD9pYTQ.js} +5 -5
  8. package/dist/{DatePicker_es_CtbVXMmy.js → DatePicker_es_DqHRlhti.js} +5 -5
  9. package/dist/{DropdownItem_cjs_Capn0Iu7.js → DropdownItem_cjs_l_fnynBJ.js} +2 -2
  10. package/dist/{DropdownItem_es_CTw07zF3.js → DropdownItem_es_B36TJ2oI.js} +2 -2
  11. package/dist/{Group_cjs_DNI9PTBq.js → Group_cjs_C1YVff0N.js} +1 -1
  12. package/dist/{Group_es_nBtACpoG.js → Group_es_C69f2Dom.js} +1 -1
  13. package/dist/{Icon_cjs_BgGtdviU.js → Icon_cjs_D-jQrwjV.js} +2 -2
  14. package/dist/{Icon_es_CtZHchZc.js → Icon_es_BstDGBF3.js} +2 -2
  15. package/dist/{Input_cjs_KgFCCi2U.js → Input_cjs_DnjehCpi.js} +1 -1
  16. package/dist/{Input_es_I8GPoibb.js → Input_es_DCaVqQH5.js} +1 -1
  17. package/dist/{Label_cjs_FRIVslSV.js → Label_cjs_CyPU9hqO.js} +3 -3
  18. package/dist/{Label_es_CI2mt2wH.js → Label_es_qnCgQX52.js} +3 -3
  19. package/dist/{Loader_cjs_DWBtnjaL.js → Loader_cjs_B3j9ATrq.js} +1 -1
  20. package/dist/{Loader_es_BvTBRuay.js → Loader_es_wjTqawH6.js} +1 -1
  21. package/dist/{Overlay_cjs_tGA2fU43.js → Overlay_cjs_-hY4qbRG.js} +1 -1
  22. package/dist/{Overlay_es_BS7OTFoy.js → Overlay_es_dNz3djDB.js} +1 -1
  23. package/dist/{SelectContainer_cjs_doMatESV.js → SelectContainer_cjs_CnhODaJP.js} +4 -4
  24. package/dist/{SelectContainer_es_2ZX3VSMS.js → SelectContainer_es_CcYDHcBP.js} +4 -4
  25. package/dist/{Text_cjs_DG2eMKBi.js → Text_cjs_Co2XdYF-.js} +1 -1
  26. package/dist/{Text_es_CU9KR5AE.js → Text_es_DaYcLe4H.js} +1 -1
  27. package/dist/cjs/components/Accordion.js +2 -2
  28. package/dist/cjs/components/Avatar.js +3 -3
  29. package/dist/cjs/components/AvatarStack.js +4 -4
  30. package/dist/cjs/components/Badge.js +2 -2
  31. package/dist/cjs/components/Breadcrumbs.js +2 -2
  32. package/dist/cjs/components/Button.js +4 -4
  33. package/dist/cjs/components/Cell.js +3 -3
  34. package/dist/cjs/components/Checkbox.js +1 -1
  35. package/dist/cjs/components/Chips.js +3 -3
  36. package/dist/cjs/components/Choice.js +4 -4
  37. package/dist/cjs/components/CookiesWarning.js +4 -4
  38. package/dist/cjs/components/Dadata.js +1 -1
  39. package/dist/cjs/components/DatePeriod.js +10 -10
  40. package/dist/cjs/components/DatePicker.js +7 -7
  41. package/dist/cjs/components/Drawer.js +2 -2
  42. package/dist/cjs/components/Dropdown.js +3 -3
  43. package/dist/cjs/components/Flex.js +2 -2
  44. package/dist/cjs/components/Grid.js +2 -2
  45. package/dist/cjs/components/Group.js +1 -1
  46. package/dist/cjs/components/HeroTitle.js +3 -3
  47. package/dist/cjs/components/Icon.js +2 -2
  48. package/dist/cjs/components/Input.js +1 -1
  49. package/dist/cjs/components/InputNumber.js +181 -0
  50. package/dist/cjs/components/InputPassword.js +4 -4
  51. package/dist/cjs/components/Label.js +3 -3
  52. package/dist/cjs/components/Loader.js +2 -2
  53. package/dist/cjs/components/MenuItem.js +4 -4
  54. package/dist/cjs/components/Modal.js +5 -5
  55. package/dist/cjs/components/ModalSheetBottom.js +2 -2
  56. package/dist/cjs/components/Notification.js +5 -5
  57. package/dist/cjs/components/Overlay.js +1 -1
  58. package/dist/cjs/components/Pagination.js +4 -4
  59. package/dist/cjs/components/Radio.js +1 -1
  60. package/dist/cjs/components/RangeSlider.js +2 -2
  61. package/dist/cjs/components/Response.js +6 -6
  62. package/dist/cjs/components/Search.js +2 -2
  63. package/dist/cjs/components/Segmented.js +2 -2
  64. package/dist/cjs/components/Select.js +5 -5
  65. package/dist/cjs/components/Swiper.js +3 -3
  66. package/dist/cjs/components/Switch.js +1 -1
  67. package/dist/cjs/components/Tab.js +5 -5
  68. package/dist/cjs/components/Text.js +1 -1
  69. package/dist/cjs/components/Textarea.js +2 -2
  70. package/dist/cjs/components/Tile.js +3 -3
  71. package/dist/cjs/components/Title.js +2 -2
  72. package/dist/cjs/components/Tooltip.js +2 -2
  73. package/dist/cjs/components/Warning.js +2 -2
  74. package/dist/components/Accordion.js +2 -2
  75. package/dist/components/Avatar.js +3 -3
  76. package/dist/components/AvatarStack.js +4 -4
  77. package/dist/components/Badge.js +2 -2
  78. package/dist/components/Breadcrumbs.js +2 -2
  79. package/dist/components/Button.js +4 -4
  80. package/dist/components/Cell.js +3 -3
  81. package/dist/components/Checkbox.js +1 -1
  82. package/dist/components/Chips.js +3 -3
  83. package/dist/components/Choice.js +4 -4
  84. package/dist/components/CookiesWarning.js +4 -4
  85. package/dist/components/Dadata.js +1 -1
  86. package/dist/components/DatePeriod.js +10 -10
  87. package/dist/components/DatePicker.js +7 -7
  88. package/dist/components/Drawer.js +2 -2
  89. package/dist/components/Dropdown.js +3 -3
  90. package/dist/components/Flex.js +2 -2
  91. package/dist/components/Grid.js +2 -2
  92. package/dist/components/Group.js +1 -1
  93. package/dist/components/HeroTitle.js +3 -3
  94. package/dist/components/Icon.js +2 -2
  95. package/dist/components/Input.js +1 -1
  96. package/dist/components/InputNumber.js +178 -0
  97. package/dist/components/InputPassword.js +4 -4
  98. package/dist/components/Label.js +3 -3
  99. package/dist/components/Loader.js +2 -2
  100. package/dist/components/MenuItem.js +4 -4
  101. package/dist/components/Modal.js +5 -5
  102. package/dist/components/ModalSheetBottom.js +2 -2
  103. package/dist/components/Notification.js +5 -5
  104. package/dist/components/Overlay.js +1 -1
  105. package/dist/components/Pagination.js +4 -4
  106. package/dist/components/Radio.js +1 -1
  107. package/dist/components/RangeSlider.js +2 -2
  108. package/dist/components/Response.js +6 -6
  109. package/dist/components/Search.js +2 -2
  110. package/dist/components/Segmented.js +2 -2
  111. package/dist/components/Select.js +5 -5
  112. package/dist/components/Swiper.js +3 -3
  113. package/dist/components/Switch.js +1 -1
  114. package/dist/components/Tab.js +5 -5
  115. package/dist/components/Text.js +1 -1
  116. package/dist/components/Textarea.js +2 -2
  117. package/dist/components/Tile.js +3 -3
  118. package/dist/components/Title.js +2 -2
  119. package/dist/components/Tooltip.js +2 -2
  120. package/dist/components/Warning.js +2 -2
  121. package/dist/css/styles/bundles.css +49 -0
  122. package/dist/types/components/Button/Button.appearance.d.ts +290 -0
  123. package/dist/types/components/Button/Button.d.ts +5 -0
  124. package/dist/types/components/Button/Button.interface.d.ts +5 -0
  125. package/dist/types/components/InputNumber/InputNumber.appearance.d.ts +3 -0
  126. package/dist/types/components/InputNumber/InputNumber.d.ts +3 -0
  127. package/dist/types/components/InputNumber/InputNumber.interfaces.d.ts +48 -0
  128. package/dist/types/components/InputNumber/appearance/InputNumberDefault.d.ts +3 -0
  129. package/dist/types/components/InputNumber/appearance/InputNumberShape.d.ts +25 -0
  130. package/dist/types/components/InputNumber/appearance/inputNumberSize.d.ts +33 -0
  131. package/dist/types/components/InputNumber/appearance/inputNumberStyle.d.ts +16 -0
  132. package/dist/types/components/InputNumber/appearance/inputNumberSurface.d.ts +3 -0
  133. package/dist/types/components/InputNumber/index.d.ts +2 -0
  134. package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +1 -0
  135. package/dist/types/components/Tab/Tab.interface.d.ts +68 -40
  136. package/package.json +10 -10
@@ -0,0 +1,178 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { useState, useEffect, useCallback } from 'react';
3
+ import clsx from 'clsx';
4
+ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
+ import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
+ import { B as Button } from '../Button_es_y6hlih24.js';
7
+ import { icons24 } from '@itcase/icons/default';
8
+ import 'lodash/camelCase';
9
+ import 'lodash/castArray';
10
+ import 'lodash/upperFirst';
11
+ import '../context/Notifications.js';
12
+ import 'uuid';
13
+ import '@itcase/common';
14
+ import '../context/UIContext.js';
15
+ import '../hooks/useMediaQueries/useMediaQueries.js';
16
+ import 'react-responsive';
17
+ import '../utils/setViewportProperty.js';
18
+ import '../hooks.js';
19
+ import '../hooks/useStyles/styleAttributes.js';
20
+ import '../hooks/useStyles/useStyles.js';
21
+ import 'lodash/maxBy';
22
+ import '../Icon_es_BstDGBF3.js';
23
+ import 'react-inlinesvg';
24
+ import '../hoc/urlWithAssetPrefix.js';
25
+ import '../context/UrlAssetPrefix.js';
26
+ import '../Link_es_P2b6ya7P.js';
27
+ import '../Text_es_DaYcLe4H.js';
28
+ import '../Loader_es_wjTqawH6.js';
29
+
30
+ const inputNumberAppearanceDefault = {
31
+ defaultPrimary: {
32
+ fill: 'surfacePrimary',
33
+ labelTextWeight: '400',
34
+ borderColor: 'surfaceBorderTertiary',
35
+ borderHover: 'surfaceBorderQuaternary',
36
+ iconFill: 'accentItemPrimary',
37
+ iconFillHover: 'surfaceSecondary',
38
+ iconFillIcon: 'surfaceItemPrimary',
39
+ iconMinus: icons24.Form.Minus,
40
+ iconPlus: icons24.Form.Plus,
41
+ inputNumberTextColor: 'surfaceTextPrimary',
42
+ },
43
+ };
44
+
45
+ const inputNumberAppearanceShape = {
46
+ circular: {
47
+ shape: 'circular',
48
+ },
49
+ rounded: {
50
+ shape: 'rounded',
51
+ },
52
+ roundedXL: {
53
+ shape: 'rounded',
54
+ shapeStrength: '2m',
55
+ },
56
+ roundedL: {
57
+ shape: 'rounded',
58
+ shapeStrength: '1_5m',
59
+ },
60
+ roundedM: {
61
+ shape: 'rounded',
62
+ shapeStrength: '1m',
63
+ },
64
+ roundedS: {
65
+ shape: 'rounded',
66
+ shapeStrength: '0_5m',
67
+ },
68
+ };
69
+
70
+ const inputNumberAppearanceSize = {
71
+ sizeXXL: {
72
+ size: 'xxl',
73
+ iconFillSize: '24',
74
+ iconSize: '24',
75
+ inputNumberTextSize: 'xxl',
76
+ },
77
+ sizeXL: {
78
+ size: 'xl',
79
+ iconFillSize: '24',
80
+ iconSize: '24',
81
+ inputNumberTextSize: 'xl',
82
+ },
83
+ sizeL: {
84
+ size: 'l',
85
+ iconFillSize: '24',
86
+ iconSize: '24',
87
+ inputNumberTextSize: 'l',
88
+ },
89
+ sizeM: {
90
+ size: 'm',
91
+ iconFillSize: '24',
92
+ iconSize: '24',
93
+ inputNumberTextSize: 'm',
94
+ },
95
+ sizeS: {
96
+ size: 's',
97
+ iconFillSize: '24',
98
+ iconSize: '24',
99
+ inputNumberTextSize: 's',
100
+ },
101
+ };
102
+
103
+ const inputNumberAppearanceStyle = {
104
+ solid: {
105
+ borderColor: 'none',
106
+ },
107
+ outlined: {
108
+ fill: 'none',
109
+ },
110
+ full: {
111
+ borderColor: 'none',
112
+ },
113
+ ghost: {
114
+ fill: 'none',
115
+ borderColor: 'none',
116
+ },
117
+ };
118
+
119
+ const inputNumberAppearanceSurface = {
120
+ surfaceSecondary: {
121
+ fill: 'surfaceSecondary',
122
+ labelTextWeight: '400',
123
+ borderColor: 'surfaceBorderQuaternary',
124
+ borderHover: 'surfaceBorderQuaternary',
125
+ iconFill: 'surfaceSecondary',
126
+ iconFillHover: 'surfaceSecondary',
127
+ iconFillIcon: 'surfaceItemQuaternary',
128
+ iconMinus: icons24.Form.Minus,
129
+ iconPlus: icons24.Form.Plus,
130
+ inputNumberTextColor: 'surfaceTextQuaternary',
131
+ },
132
+ };
133
+
134
+ const inputNumberAppearance = {
135
+ ...inputNumberAppearanceDefault,
136
+ ...inputNumberAppearanceSurface,
137
+ ...inputNumberAppearanceShape,
138
+ ...inputNumberAppearanceSize,
139
+ ...inputNumberAppearanceStyle,
140
+ };
141
+
142
+ const inputNumberConfig = {
143
+ appearance: inputNumberAppearance};
144
+ const InputNumber = (props) => {
145
+ const { id, appearance, className, dataTestId, type = 'custom', name, min = 0, max = Infinity, step = 1, value = 0, onChange, } = props;
146
+ const [number, setNumber] = useState(value);
147
+ useEffect(() => {
148
+ setNumber(value);
149
+ }, [value]);
150
+ const handleChangeValue = useCallback((operation) => {
151
+ const operationType = operation === 'minus' ? -step : step;
152
+ const nextValue = number + operationType;
153
+ if (nextValue < min || nextValue > max) {
154
+ return null;
155
+ }
156
+ setNumber(nextValue);
157
+ onChange?.(nextValue);
158
+ }, [max, min, number, onChange, step]);
159
+ const handleInputValue = (event) => {
160
+ const value = Number(event.target.value);
161
+ if (value < min || value > max) {
162
+ return null;
163
+ }
164
+ setNumber(value);
165
+ onChange?.(value);
166
+ };
167
+ const appearanceConfig = useAppearanceConfig(appearance, inputNumberConfig);
168
+ const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
169
+ const { fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, borderWidthClass, iconFill, iconFillHover, iconFillIcon, iconMinus, iconPlus, iconShape, iconSize, inputNumberTextColorClass, inputNumberTextSizeClass, inputNumberTextWeightClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
170
+ if (type === 'number') {
171
+ return (jsx("input", { id: String(id), type: "number", min: min, max: max, step: step, value: number, onChange: (event) => handleInputValue(event) }));
172
+ }
173
+ return (jsxs("div", { id: String(id), className: clsx(className, 'input-number', 'input-number__custom', borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input-number_size_${sizeClass}`, widthClass && `width_${widthClass}`), children: [jsx(Button, { className: "input-number__icon", icon: iconMinus, iconFill: iconFill, iconFillHover: iconFillHover, iconFillIcon: iconFillIcon, iconShape: iconShape, iconSize: iconSize, onClick: () => handleChangeValue('minus') }), jsx("input", { className: clsx(inputNumberTextColorClass &&
174
+ `text-color_${inputNumberTextColorClass}`, inputNumberTextSizeClass && `text_size_${inputNumberTextSizeClass}`, inputNumberTextWeightClass &&
175
+ `text-weight_${inputNumberTextWeightClass}`), type: "number", min: min, max: max, "data-testid": dataTestId || (name ? `${name}-input-number` : 'input-number'), step: step, value: number, onChange: (event) => handleInputValue(event) }), jsx(Button, { className: "input-number__icon", icon: iconPlus, iconFill: iconFill, iconFillHover: iconFillHover, iconFillIcon: iconFillIcon, iconShape: iconShape, iconSize: iconSize, onClick: () => handleChangeValue('plus') })] }));
176
+ };
177
+
178
+ export { InputNumber, inputNumberAppearance };
@@ -4,7 +4,7 @@ import { useState, useMemo, useCallback } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
- import { I as Icon } from '../Icon_es_CtZHchZc.js';
7
+ import { I as Icon } from '../Icon_es_BstDGBF3.js';
8
8
  import 'lodash/camelCase';
9
9
  import 'lodash/castArray';
10
10
  import 'lodash/upperFirst';
@@ -23,7 +23,7 @@ import '../context/UrlAssetPrefix.js';
23
23
  import '../hooks/useStyles/useStyles.js';
24
24
  import 'lodash/maxBy';
25
25
  import '../Link_es_P2b6ya7P.js';
26
- import '../Text_es_CU9KR5AE.js';
26
+ import '../Text_es_DaYcLe4H.js';
27
27
 
28
28
  const inputPasswordAppearanceDefault = {
29
29
  defaultPrimary: {
@@ -244,7 +244,7 @@ const inputPasswordConfig = {
244
244
  },
245
245
  };
246
246
  function InputPassword(props) {
247
- const { id, appearance, className, placeholder, value, isDisabled, onBlur, onChange, onFocus, onKeyDown, } = props;
247
+ const { id, appearance, className, dataTestId, name, placeholder, value, isDisabled, onBlur, onChange, onFocus, onKeyDown, } = props;
248
248
  const [isRevealed, setIsRevealed] = useState(false);
249
249
  const inputType = useMemo(() => {
250
250
  return isRevealed ? 'text' : 'password';
@@ -258,7 +258,7 @@ function InputPassword(props) {
258
258
  const { fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, borderWidthClass, textColorClass, textSizeClass, textWeightClass, caretClass, iconFill, iconFillHover, iconRevealableHide, iconRevealableShow, iconShape, iconSize, imageRevealableHide, imageRevealableShow, placeholderTextColorClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
259
259
  return (jsxs("div", { className: "input-password", children: [jsx("input", { id: String(id), className: clsx(className, 'input-password__input', (textSizeClass || textColorClass || textWeightClass) && 'text', borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass &&
260
260
  `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, caretClass && `caret-color_${caretClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, placeholderTextColorClass &&
261
- `placeholder-text-color_${placeholderTextColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input-password__input_size_${sizeClass}`, textColorClass && `text-color_${textColorClass}`, textColorClass && `text-color_${textColorClass}`, textSizeClass && `text_size_${textSizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, widthClass && `width_${widthClass}`), type: inputType, disabled: isDisabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }), jsx(Icon, { className: "input-password__icon", size: iconSize, iconFill: iconFill, iconFillHover: iconFillHover, imageSrc: isRevealed ? imageRevealableHide : imageRevealableShow, shape: iconShape, SvgImage: isRevealed ? iconRevealableHide : iconRevealableShow, onClick: onClickIconReveal })] }));
261
+ `placeholder-text-color_${placeholderTextColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input-password__input_size_${sizeClass}`, textColorClass && `text-color_${textColorClass}`, textColorClass && `text-color_${textColorClass}`, textSizeClass && `text_size_${textSizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, widthClass && `width_${widthClass}`), type: inputType, "data-testid": dataTestId || (name ? `${name}-input-password` : 'input-password'), disabled: isDisabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }), jsx(Icon, { className: "input-password__icon", size: iconSize, iconFill: iconFill, iconFillHover: iconFillHover, imageSrc: isRevealed ? imageRevealableHide : imageRevealableShow, shape: iconShape, SvgImage: isRevealed ? iconRevealableHide : iconRevealableShow, onClick: onClickIconReveal })] }));
262
262
  }
263
263
 
264
264
  export { InputPassword, inputPasswordAppearance, inputPasswordConfig };
@@ -1,4 +1,4 @@
1
- export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_CI2mt2wH.js';
1
+ export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_qnCgQX52.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -18,9 +18,9 @@ import '../hooks.js';
18
18
  import '../hooks/useStyles/styleAttributes.js';
19
19
  import '../hooks/useStyles/useStyles.js';
20
20
  import 'lodash/maxBy';
21
- import '../Icon_es_CtZHchZc.js';
21
+ import '../Icon_es_BstDGBF3.js';
22
22
  import 'react-inlinesvg';
23
23
  import '../hoc/urlWithAssetPrefix.js';
24
24
  import '../context/UrlAssetPrefix.js';
25
25
  import '../Link_es_P2b6ya7P.js';
26
- import '../Text_es_CU9KR5AE.js';
26
+ import '../Text_es_DaYcLe4H.js';
@@ -1,4 +1,4 @@
1
- export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_BvTBRuay.js';
1
+ export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_wjTqawH6.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
@@ -18,4 +18,4 @@ import '../hooks.js';
18
18
  import '../hooks/useStyles/styleAttributes.js';
19
19
  import '../hooks/useStyles/useStyles.js';
20
20
  import 'lodash/maxBy';
21
- import '../Text_es_CU9KR5AE.js';
21
+ import '../Text_es_DaYcLe4H.js';
@@ -4,9 +4,9 @@ import clsx from 'clsx';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { I as Icon, T as Tooltip } from '../Icon_es_CtZHchZc.js';
7
+ import { I as Icon, T as Tooltip } from '../Icon_es_BstDGBF3.js';
8
8
  import { L as Link } from '../Link_es_P2b6ya7P.js';
9
- import { T as Text } from '../Text_es_CU9KR5AE.js';
9
+ import { T as Text } from '../Text_es_DaYcLe4H.js';
10
10
  import 'lodash/camelCase';
11
11
  import 'lodash/castArray';
12
12
  import 'lodash/upperFirst';
@@ -217,7 +217,7 @@ const menuItemConfig = {
217
217
  },
218
218
  };
219
219
  function MenuItem(props) {
220
- const { appearance, className, label, easing, href, link, LinkComponent, rel, showTooltip, target, tooltipAppearance, underline, before, after, isActive, isDisabled, onClick, children, } = props;
220
+ const { appearance, className, dataTestId, dataTour, label, easing, href, link, LinkComponent, rel, showTooltip, target, tooltipAppearance, underline, before, after, isActive, isDisabled, onClick, children, } = props;
221
221
  const tooltipRef = useRef(null);
222
222
  const onMouseEnter = useCallback(() => {
223
223
  if (showTooltip) {
@@ -242,7 +242,7 @@ function MenuItem(props) {
242
242
  : fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass
243
243
  ? `shape-strength_${shapeStrengthClass}`
244
244
  : shapeClass === 'rounded' && 'shape-strength_default', typeClass && `menu-item_type_${typeClass}`, widthClass && `width_${widthClass}`, justifyContentClass &&
245
- `menu-item_justify-content_${justifyContentClass}`, isSkeleton && `menu-item_skeleton`), style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [jsxs(Link, { className: clsx('menu-item__wrapper', alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsx(Text, { className: "menu-item__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorDisabled: labelTextColorDisabled, textColorHover: labelTextColorHover, textWeight: labelWeight, textWrap: labelWrap, isActive: isActive, isDisabled: isDisabled, children: label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('menu-item__icon_after', iconBadgeValue && 'menu-item__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: "menu-item__icon_after_badge", badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] })), after] }), showTooltip && (jsx(Tooltip, { appearance: tooltipAppearance, className: "menu-item__tooltip", ref: tooltipRef, minWidth: "auto", alignment: "right-center", size: tooltipSize, fill: tooltipFill, zIndex: "100", title: tooltipTitle, titleColor: tooltipTitleTextColor, paddingLeft: "2m", text: tooltipText, textColor: tooltipTextColor, textSize: tooltipTextSize,
245
+ `menu-item_justify-content_${justifyContentClass}`, isSkeleton && `menu-item_skeleton`), "data-testid": dataTestId, "data-tour": dataTour, style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [jsxs(Link, { className: clsx('menu-item__wrapper', alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsx(Text, { className: "menu-item__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorDisabled: labelTextColorDisabled, textColorHover: labelTextColorHover, textWeight: labelWeight, textWrap: labelWrap, isActive: isActive, isDisabled: isDisabled, children: label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('menu-item__icon_after', iconBadgeValue && 'menu-item__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: "menu-item__icon_after_badge", badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] })), after] }), showTooltip && (jsx(Tooltip, { appearance: tooltipAppearance, className: "menu-item__tooltip", ref: tooltipRef, minWidth: "auto", alignment: "right-center", size: tooltipSize, fill: tooltipFill, zIndex: "100", title: tooltipTitle, titleColor: tooltipTitleTextColor, paddingLeft: "2m", text: tooltipText, textColor: tooltipTextColor, textSize: tooltipTextSize,
246
246
  // centering="vertical"
247
247
  shape: tooltipShape, shapeStrength: tooltipShapeStrength, isTooltipDisableState: true }))] }));
248
248
  }
@@ -6,9 +6,9 @@ import { icons24, icons32, icons40 } from '@itcase/icons/default';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { b as Title, I as Icon } from '../Icon_es_CtZHchZc.js';
10
- import { O as Overlay } from '../Overlay_es_BS7OTFoy.js';
11
- import { L as Loader } from '../Loader_es_BvTBRuay.js';
9
+ import { b as Title, I as Icon } from '../Icon_es_BstDGBF3.js';
10
+ import { O as Overlay } from '../Overlay_es_dNz3djDB.js';
11
+ import { L as Loader } from '../Loader_es_wjTqawH6.js';
12
12
  import 'lodash/camelCase';
13
13
  import 'lodash/castArray';
14
14
  import 'lodash/upperFirst';
@@ -26,7 +26,7 @@ import 'react-inlinesvg';
26
26
  import '../hoc/urlWithAssetPrefix.js';
27
27
  import '../context/UrlAssetPrefix.js';
28
28
  import '../Link_es_P2b6ya7P.js';
29
- import '../Text_es_CU9KR5AE.js';
29
+ import '../Text_es_DaYcLe4H.js';
30
30
 
31
31
  const modalAppearanceShape = {
32
32
  circular: {
@@ -258,7 +258,7 @@ const Modal = React.forwardRef(function Modal(props, ref) {
258
258
  return (modalElement &&
259
259
  ReactDOM.createPortal(
260
260
  // Any valid React child: JSX, strings, arrays, etc.
261
- isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal__content', absoluteHeader && 'modal__content-absolute-header', !title && !closeIcon && 'modal__content-no-header', fillClass && `fill_${fillClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, shapeClass && `shape_${shapeClass}`, sizeClass && `modal_size_${sizeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, elevationClass && `elevation_${elevationClass}`, scroll && `modal-scroll_${scroll}`, stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'modal_skeleton'), ref: modalContentRef, "data-test-id": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, children: [(title || closeIcon) && (jsxs("div", { className: clsx('modal__header', fillClass && `fill_${fillClass}`), children: [title && (jsx(Title, { width: titleTextWidth, flex: "1", size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeIcon && (jsx("div", { className: "modal__close", onClick: closeModal, children: jsx(Icon, { appearance: `${closeIconAppearance} ${closeIconAppearanceSize}`, fillSize: closeIconFillSize, iconSize: closeIconSize, shape: closeIconShape, SvgImage: closeIconImage ?? icons24.Action.Close }) }))] })), jsx("div", { className: "modal__content-wrapper", children: children })] }), jsx(Overlay, { className: "modal__overlay",
261
+ isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal__content', absoluteHeader && 'modal__content-absolute-header', !title && !closeIcon && 'modal__content-no-header', fillClass && `fill_${fillClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, shapeClass && `shape_${shapeClass}`, sizeClass && `modal_size_${sizeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, elevationClass && `elevation_${elevationClass}`, scroll && `modal-scroll_${scroll}`, stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'modal_skeleton'), ref: modalContentRef, "data-testid": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, children: [(title || closeIcon) && (jsxs("div", { className: clsx('modal__header', fillClass && `fill_${fillClass}`), children: [title && (jsx(Title, { width: titleTextWidth, flex: "1", size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeIcon && (jsx("div", { className: "modal__close", onClick: closeModal, children: jsx(Icon, { appearance: `${closeIconAppearance} ${closeIconAppearanceSize}`, fillSize: closeIconFillSize, iconSize: closeIconSize, shape: closeIconShape, SvgImage: closeIconImage ?? icons24.Action.Close }) }))] })), jsx("div", { className: "modal__content-wrapper", children: children })] }), jsx(Overlay, { className: "modal__overlay",
262
262
  // ref={modalOverlayRef}
263
263
  fill: overlayFill, opacity: overlayOpacity, isOverlay: isOverlay, onClick: handleClickOverlay })] })) : null,
264
264
  // A DOM element
@@ -5,7 +5,7 @@ import { Sheet } from 'react-modal-sheet';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
- import { b as Title } from '../Icon_es_CtZHchZc.js';
8
+ import { b as Title } from '../Icon_es_BstDGBF3.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
11
11
  import 'lodash/upperFirst';
@@ -23,7 +23,7 @@ import 'react-inlinesvg';
23
23
  import '../hoc/urlWithAssetPrefix.js';
24
24
  import '../context/UrlAssetPrefix.js';
25
25
  import '../Link_es_P2b6ya7P.js';
26
- import '../Text_es_CU9KR5AE.js';
26
+ import '../Text_es_DaYcLe4H.js';
27
27
 
28
28
  const modalSheetBottomAppearanceSize = {
29
29
  sizeL: {
@@ -1,12 +1,12 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
- import { L as Loader } from '../Loader_es_BvTBRuay.js';
3
+ import { L as Loader } from '../Loader_es_wjTqawH6.js';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { B as Button } from '../Button_es_ljlle2Pu.js';
8
- import { I as Icon } from '../Icon_es_CtZHchZc.js';
9
- import { T as Text } from '../Text_es_CU9KR5AE.js';
7
+ import { B as Button } from '../Button_es_y6hlih24.js';
8
+ import { I as Icon } from '../Icon_es_BstDGBF3.js';
9
+ import { T as Text } from '../Text_es_DaYcLe4H.js';
10
10
  import { icons24 } from '@itcase/icons/default';
11
11
  import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
12
12
  import '../context/UIContext.js';
@@ -184,7 +184,7 @@ function Notification(props) {
184
184
  const { fillClass, fillHoverClass, titleTextColor, titleTextSize, descTextColor, descTextSize, buttonAppearance, buttonLabel, elevationClass, loaderAppearance, loaderAppearanceSize, loaderFill, loaderItemFill, loaderSize, loaderType = 'hug', shapeClass, shapeStrengthClass, sizeClass, widthClass, closeIcon, closeIconAppearance, closeIconAppearanceSize, closeIconSrc, } = propsGenerator;
185
185
  // @ts-expect-error
186
186
  const { styles: notificationStyles } = useStyles(props);
187
- return (jsxs("div", { className: clsx('notification__item', `notification__item_${type}`, widthClass && `width_${widthClass}`, elevationClass && `elevation_${elevationClass}`, fillClass && `fill_${fillClass}`, sizeClass && `notification__item_size_${sizeClass}`, type && `notification__item_type_${type}`, fillHoverClass && `fill_${fillHoverClass}`, isSkeleton && `notification__item_skeleton`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), "data-test-id": dataTestId, "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })), text && (jsx(Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: text })), isLoading && (jsx(Loader, { appearance: `${loaderAppearance} ${loaderAppearanceSize}`, className: clsx(className, 'button__loader'), type: loaderType, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), onClickClose && (jsx(Icon, { appearance: `${closeIconAppearance} ${closeIconAppearanceSize}`, className: clsx('notification__item-close', 'cursor_type_pointer'), imageSrc: closeIconSrc, SvgImage: closeIcon, onClick: () => onClickClose && onClickClose(id) })), (onClickButton || buttonLabel) && (jsx(Button, { appearance: buttonAppearance, className: "notification__item-button", width: "fill", label: buttonLabel, onClick: onClickButton }))] }), after] }));
187
+ return (jsxs("div", { className: clsx('notification__item', `notification__item_${type}`, widthClass && `width_${widthClass}`, elevationClass && `elevation_${elevationClass}`, fillClass && `fill_${fillClass}`, sizeClass && `notification__item_size_${sizeClass}`, type && `notification__item_type_${type}`, fillHoverClass && `fill_${fillHoverClass}`, isSkeleton && `notification__item_skeleton`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })), text && (jsx(Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: text })), isLoading && (jsx(Loader, { appearance: `${loaderAppearance} ${loaderAppearanceSize}`, className: clsx(className, 'button__loader'), type: loaderType, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), onClickClose && (jsx(Icon, { appearance: `${closeIconAppearance} ${closeIconAppearanceSize}`, className: clsx('notification__item-close', 'cursor_type_pointer'), imageSrc: closeIconSrc, SvgImage: closeIcon, onClick: () => onClickClose && onClickClose(id) })), (onClickButton || buttonLabel) && (jsx(Button, { appearance: buttonAppearance, className: "notification__item-button", width: "fill", label: buttonLabel, onClick: onClickButton }))] }), after] }));
188
188
  }
189
189
 
190
190
  function NotificationWrapper(props) {
@@ -1,4 +1,4 @@
1
- export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../Overlay_es_BS7OTFoy.js';
1
+ export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../Overlay_es_dNz3djDB.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
@@ -6,9 +6,9 @@ import ReactPaginate from 'react-paginate';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_CTw07zF3.js';
10
- import { I as Icon } from '../Icon_es_CtZHchZc.js';
11
- import { T as Text } from '../Text_es_CU9KR5AE.js';
9
+ import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_B36TJ2oI.js';
10
+ import { I as Icon } from '../Icon_es_BstDGBF3.js';
11
+ import { T as Text } from '../Text_es_DaYcLe4H.js';
12
12
  import { icons14, icons24, icons16 } from '@itcase/icons/default';
13
13
  import 'lodash/camelCase';
14
14
  import 'lodash/castArray';
@@ -310,7 +310,7 @@ function Pagination(props) {
310
310
  const minPageSize = Math.min(perPageCount, ...pageCountList);
311
311
  // If there are fewer items than the minimum page size - pagination wont work.
312
312
  const isPaginationDisplayed = allItemsCount > minPageSize;
313
- return (isPaginationDisplayed && (jsxs("div", { className: clsx('pagination', sizeClass && `pagination_size_${sizeClass}`, isSkeleton && `pagination_skeleton`), "data-test-id": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsx(ReactPaginate, { activeClassName: clsx('pagination__item_state_active cursor_type_default', fillActiveClass && `fill fill_active_${fillActiveClass}`, fillActiveHoverClass &&
313
+ return (isPaginationDisplayed && (jsxs("div", { className: clsx('pagination', sizeClass && `pagination_size_${sizeClass}`, isSkeleton && `pagination_skeleton`), "data-testid": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsx(ReactPaginate, { activeClassName: clsx('pagination__item_state_active cursor_type_default', fillActiveClass && `fill fill_active_${fillActiveClass}`, fillActiveHoverClass &&
314
314
  `fill fill_active_hover_${fillActiveHoverClass}`), activeLinkClassName: clsx('pagination__item-link_state_active', textColorActiveClass &&
315
315
  `text text-color_active_${textColorActiveClass}`, textColorActiveHoverClass &&
316
316
  `text text-color_active_hover_${textColorActiveHoverClass}`), breakClassName: "pagination__item pagination__item_break", breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
- import { T as Text } from '../Text_es_CU9KR5AE.js';
5
+ import { T as Text } from '../Text_es_DaYcLe4H.js';
6
6
  import 'react';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
@@ -19,7 +19,7 @@ import '../hooks/useStyles/styleAttributes.js';
19
19
  import 'lodash/maxBy';
20
20
 
21
21
  function RangeSlider(props) {
22
- const { className, min, max, disabled, pushable, range, value, vertical, before, after, set, onChangeSlider, children, } = props;
22
+ const { className, min, max, disabled, pushable, range, step, value, vertical, before, after, set, onChangeSlider, children, } = props;
23
23
  const propsGenerator = useDevicePropsGenerator(props);
24
24
  const { fillClass, fillHandleClass, fillHandleDraggingClass, fillHandleDraggingHoverClass, fillHandleHoverClass, fillRailClass, fillTrackClass, shapeClass, widthClass, } = propsGenerator;
25
25
  // @ts-expect-error
@@ -27,7 +27,7 @@ function RangeSlider(props) {
27
27
  return (jsxs("div", { className: clsx(className, 'range-slider', set && `range-slider_set_${set}`, fillClass && `fill_${fillClass}`, fillTrackClass && `range-slider-track-fill_${fillTrackClass}`, fillRailClass && `range-slider-rail-fill_${fillRailClass}`, fillHandleClass && `range-slider-handle-fill_${fillHandleClass}`, fillHandleHoverClass &&
28
28
  `range-slider-handle-fill-hover_${fillHandleHoverClass}`, fillHandleDraggingClass &&
29
29
  `range-slider-handle-dragging-fill_${fillHandleDraggingClass}`, fillHandleDraggingHoverClass &&
30
- `range-slider-handle-dragging-fill-hover_${fillHandleDraggingHoverClass}`, shapeClass && `range-slider_shape_${shapeClass}`, widthClass && `width_${widthClass}`), style: rangeSliderStyles, children: [before && jsx("div", { className: "range-slider__before", children: before }), jsx(Slider, { className: "range-slider__wrapper", min: min, max: max, disabled: disabled, pushable: pushable, range: range, value: value, vertical: vertical, onChange: onChangeSlider }), children, after && jsx("div", { className: "range-slider__after", children: after })] }));
30
+ `range-slider-handle-dragging-fill-hover_${fillHandleDraggingHoverClass}`, shapeClass && `range-slider_shape_${shapeClass}`, widthClass && `width_${widthClass}`), style: rangeSliderStyles, children: [before && jsx("div", { className: "range-slider__before", children: before }), jsx(Slider, { className: "range-slider__wrapper", min: min, max: max, disabled: disabled, pushable: pushable, range: range, step: step, value: value, vertical: vertical, onChange: onChangeSlider }), children, after && jsx("div", { className: "range-slider__after", children: after })] }));
31
31
  }
32
32
 
33
33
  export { RangeSlider };
@@ -6,9 +6,9 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { B as Button } from '../Button_es_ljlle2Pu.js';
10
- import { G as Group } from '../Group_es_nBtACpoG.js';
11
- import { T as Text } from '../Text_es_CU9KR5AE.js';
9
+ import { B as Button } from '../Button_es_y6hlih24.js';
10
+ import { G as Group } from '../Group_es_C69f2Dom.js';
11
+ import { T as Text } from '../Text_es_DaYcLe4H.js';
12
12
  import '@itcase/common';
13
13
  import '../context/UrlAssetPrefix.js';
14
14
  import 'lodash/camelCase';
@@ -23,10 +23,10 @@ import '../utils/setViewportProperty.js';
23
23
  import '../hooks.js';
24
24
  import '../hooks/useStyles/styleAttributes.js';
25
25
  import 'lodash/maxBy';
26
- import '../Icon_es_CtZHchZc.js';
26
+ import '../Icon_es_BstDGBF3.js';
27
27
  import 'react-inlinesvg';
28
28
  import '../Link_es_P2b6ya7P.js';
29
- import '../Loader_es_BvTBRuay.js';
29
+ import '../Loader_es_wjTqawH6.js';
30
30
 
31
31
  const responseAppearanceConfirm = {
32
32
  confirm: {
@@ -245,7 +245,7 @@ const Response = urlWithAssetPrefix(function Response(props) {
245
245
  }, [imageSrc, svgSrc, SvgImage, width, height, svgFillClass]);
246
246
  // @ts-expect-error
247
247
  const { styles: responseStyles, wrapper: wrapperStyles } = useStyles(props);
248
- return (jsxs("div", { className: clsx(className, 'response', bottomButton && `response_bottom-button`, borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderTypeClass && `border_type_${borderTypeClass}`, borderWidthClass && `border-width_${borderWidthClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, heightClass && `height_${heightClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, widthClass && `width_${widthClass}`, isSkeleton && `response_skeleton`), "data-test-id": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [ImageComponent && (jsx("div", { className: clsx('response__image', svgFillClass && `svg_fill_${svgFillClass}`, svgPathFillClass && `svg_path_fill_${svgPathFillClass}`), children: ImageComponent })), jsxs("div", { className: "response__wrapper-inner", children: [title && (jsx(Text, { className: "response__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), desc && (jsx(Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
248
+ return (jsxs("div", { className: clsx(className, 'response', bottomButton && `response_bottom-button`, borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderTypeClass && `border_type_${borderTypeClass}`, borderWidthClass && `border-width_${borderWidthClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, heightClass && `height_${heightClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, widthClass && `width_${widthClass}`, isSkeleton && `response_skeleton`), "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [ImageComponent && (jsx("div", { className: clsx('response__image', svgFillClass && `svg_fill_${svgFillClass}`, svgPathFillClass && `svg_path_fill_${svgPathFillClass}`), children: ImageComponent })), jsxs("div", { className: "response__wrapper-inner", children: [title && (jsx(Text, { className: "response__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), desc && (jsx(Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
249
249
  primaryButton ||
250
250
  secondaryButtonLabel ||
251
251
  secondaryButton ||
@@ -5,8 +5,8 @@ import clsx from 'clsx';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
- import { I as Icon } from '../Icon_es_CtZHchZc.js';
9
- import { T as Text } from '../Text_es_CU9KR5AE.js';
8
+ import { I as Icon } from '../Icon_es_BstDGBF3.js';
9
+ import { T as Text } from '../Text_es_DaYcLe4H.js';
10
10
  import { S as Scrollbar } from '../Scrollbar_es_CcMgNvGi.js';
11
11
  import 'lodash/camelCase';
12
12
  import 'lodash/castArray';
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
3
3
  import clsx from 'clsx';
4
- import { I as Icon } from '../Icon_es_CtZHchZc.js';
4
+ import { I as Icon } from '../Icon_es_BstDGBF3.js';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
- import { T as Text } from '../Text_es_CU9KR5AE.js';
7
+ import { T as Text } from '../Text_es_DaYcLe4H.js';
8
8
  import 'react-inlinesvg';
9
9
  import '../hoc/urlWithAssetPrefix.js';
10
10
  import '@itcase/common';
@@ -1,4 +1,4 @@
1
- export { a as Select, S as SelectClearIndicator, b as SelectControl, c as SelectDropdownIndicator, d as SelectGroupHeading, e as SelectIndicatorsContainer, f as SelectInput, g as SelectMenu, h as SelectMultiValueContainer, i as SelectMultiValueLabel, j as SelectMultiValueRemove, k as SelectOption, l as SelectPlaceholder, m as SelectSingleValue, n as SelectValueContainer, s as selectConfig } from '../SelectContainer_es_2ZX3VSMS.js';
1
+ export { a as Select, S as SelectClearIndicator, b as SelectControl, c as SelectDropdownIndicator, d as SelectGroupHeading, e as SelectIndicatorsContainer, f as SelectInput, g as SelectMenu, h as SelectMultiValueContainer, i as SelectMultiValueLabel, j as SelectMultiValueRemove, k as SelectOption, l as SelectPlaceholder, m as SelectSingleValue, n as SelectValueContainer, s as selectConfig } from '../SelectContainer_es_CcYDHcBP.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -18,15 +18,15 @@ import 'react-responsive';
18
18
  import '../utils/setViewportProperty.js';
19
19
  import '../hooks.js';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
- import '../Group_es_nBtACpoG.js';
21
+ import '../Group_es_C69f2Dom.js';
22
22
  import '../hooks/useStyles/useStyles.js';
23
23
  import 'lodash/maxBy';
24
- import '../Text_es_CU9KR5AE.js';
24
+ import '../Text_es_DaYcLe4H.js';
25
25
  import '@itcase/icons/default';
26
- import '../Icon_es_CtZHchZc.js';
26
+ import '../Icon_es_BstDGBF3.js';
27
27
  import 'react-inlinesvg';
28
28
  import '../hoc/urlWithAssetPrefix.js';
29
29
  import '../context/UrlAssetPrefix.js';
30
30
  import '../Link_es_P2b6ya7P.js';
31
- import '../Loader_es_BvTBRuay.js';
31
+ import '../Loader_es_wjTqawH6.js';
32
32
  import '../Divider_es_DNJg0mQR.js';
@@ -2,11 +2,11 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import React, { useRef, useCallback, useImperativeHandle, useEffect, useState } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
5
- import { G as Group } from '../Group_es_nBtACpoG.js';
6
- import { T as Text } from '../Text_es_CU9KR5AE.js';
5
+ import { G as Group } from '../Group_es_C69f2Dom.js';
6
+ import { T as Text } from '../Text_es_DaYcLe4H.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { b as Title } from '../Icon_es_CtZHchZc.js';
9
+ import { b as Title } from '../Icon_es_BstDGBF3.js';
10
10
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
11
11
  import 'lodash/camelCase';
12
12
  import 'lodash/castArray';
@@ -3,7 +3,7 @@ import React 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 { T as Text } from '../Text_es_CU9KR5AE.js';
6
+ import { T as Text } from '../Text_es_DaYcLe4H.js';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import 'lodash/upperFirst';
@@ -5,10 +5,10 @@ import { useActiveClasses } from '../hooks/useActiveClasses/useActiveClasses.js'
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
- import { B as Badge, I as Icon } from '../Icon_es_CtZHchZc.js';
8
+ import { B as Badge, I as Icon } from '../Icon_es_BstDGBF3.js';
9
9
  import { D as Divider } from '../Divider_es_DNJg0mQR.js';
10
10
  import { L as Link } from '../Link_es_P2b6ya7P.js';
11
- import { T as Text } from '../Text_es_CU9KR5AE.js';
11
+ import { T as Text } from '../Text_es_DaYcLe4H.js';
12
12
  import '../hooks/useActiveClasses/useActiveClasses.helpers.js';
13
13
  import 'lodash/camelCase';
14
14
  import 'lodash/castArray';
@@ -217,16 +217,16 @@ function Tab(props) {
217
217
  const { justifyContentClass, alignClass, labelTextAlign, labelTextColor, labelTextColorActive, labelTextColorActiveHover, labelTextColorHover, labelTextSize, labelTextStyle, labelTextWeight, labelTextWrap, badgeAppearance, badgeAppearanceSize, badgeShape, badgeSize, badgeTextColor, badgeTextSize, dividerFill, dividerFillActive, dividerFillActiveHover, dividerFillDisabled, dividerFillHover, dividerSize, icon, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, linkFill, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
218
218
  // @ts-expect-error
219
219
  const { styles: tab } = useStyles(props);
220
- return (jsx("div", { className: clsx('tab', className, rootClasses, isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', sizeClass && `tab_size_${sizeClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, widthClass && `width_${widthClass}`, justifyContentClass && `tab_justify-content_${justifyContentClass}`, isSkeleton && `tab_skeleton`, onClick && 'cursor_type_pointer'), "data-test-id": dataTestId && `${dataTestId}Tab`, "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('tab__link', !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: clsx('tab__wrapper', alignClass && `align_${alignClass}`), children: [label && (jsx(Text, { className: "tab__label", size: labelTextSize, textAlign: labelTextAlign, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorHover: labelTextColorHover, textColorHoverActive: labelTextColorActiveHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, isDisabled: isDisabled, children: label })), Boolean(badgeValue) && (jsx(Badge, { appearance: `${badgeAppearance} ${badgeAppearanceSize}`, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('tab__icon_after'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }), jsx(Divider, { className: clsx('tab__divider'), width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isActive: isActive, isDisabled: isDisabled })] })), after] }) }));
220
+ return (jsx("div", { className: clsx('tab', className, rootClasses, isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', sizeClass && `tab_size_${sizeClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, widthClass && `width_${widthClass}`, justifyContentClass && `tab_justify-content_${justifyContentClass}`, isSkeleton && `tab_skeleton`, onClick && 'cursor_type_pointer'), "data-testid": dataTestId && `${dataTestId}Tab`, "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('tab__link', !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: clsx('tab__wrapper', alignClass && `align_${alignClass}`), children: [label && (jsx(Text, { className: "tab__label", size: labelTextSize, textAlign: labelTextAlign, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorHover: labelTextColorHover, textColorHoverActive: labelTextColorActiveHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, isDisabled: isDisabled, children: label })), Boolean(badgeValue) && (jsx(Badge, { appearance: `${badgeAppearance} ${badgeAppearanceSize}`, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('tab__icon_after'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }), jsx(Divider, { className: clsx('tab__divider'), width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isActive: isActive, isDisabled: isDisabled })] })), after] }) }));
221
221
  }
222
222
 
223
223
  function TabGroup(props) {
224
- const { dataTestId, dataTour, className, horizontalScroll, style, tabAppearance, tabList, children, } = props;
224
+ const { className, dataTestId, dataTour, horizontalScroll, style, tabAppearance, tabList, children, } = props;
225
225
  const propsGenerator = useDevicePropsGenerator(props);
226
226
  const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, widthClass, wrapClass, } = propsGenerator;
227
227
  // @ts-expect-error
228
228
  const { styles: groupStyles, wrapper: groupWrapperStyles } = useStyles(props);
229
- return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxs("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: [tabList?.map((item) => (jsx(Tab, { appearance: tabAppearance, label: item.label, isActive: item.isActive }, item.key))), children] })) : (jsxs(React.Fragment, { children: [tabList?.map((item) => (jsx(Tab, { appearance: tabAppearance, label: item.label, badgeValue: item.badgeValue, icon: item.icon, iconSrc: item.icon, isActive: item.isActive }, item.key))), children] })) }));
229
+ return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxs("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: [tabList?.map((item) => (jsx(Tab, { appearance: tabAppearance, label: item.label, isActive: item.isActive }, item.key))), children] })) : (jsxs(React.Fragment, { children: [tabList?.map((item) => (jsx(Tab, { appearance: tabAppearance, label: item.label, badgeValue: item.badgeValue, icon: item.icon, iconSrc: item.icon, isActive: item.isActive, onClick: item.onClick }, item.key))), children] })) }));
230
230
  }
231
231
 
232
232
  export { Tab, TabGroup, tabAppearance, tabConfig };
@@ -1,4 +1,4 @@
1
- export { T as Text, a as textAppearance, t as textConfig } from '../Text_es_CU9KR5AE.js';
1
+ export { T as Text, a as textAppearance, t as textConfig } from '../Text_es_DaYcLe4H.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';