@itcase/ui 1.8.35 → 1.8.36

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 (147) hide show
  1. package/dist/{Avatar_cjs_kADy_b4o.js → Avatar_cjs_DBoMi2WA.js} +1 -1
  2. package/dist/{Avatar_es_DbGpnL99.js → Avatar_es_DHREqfOD.js} +1 -1
  3. package/dist/{Button_cjs_CW6ENTbm.js → Button_cjs_djJUZATX.js} +2 -2
  4. package/dist/{Button_es_DTUagqgU.js → Button_es_X1DzVhok.js} +2 -2
  5. package/dist/ChipsGroup_cjs_5xsEchPo.js +314 -0
  6. package/dist/ChipsGroup_es_4TOkv-fm.js +309 -0
  7. package/dist/{DatePicker_cjs_Bx5_lZNT.js → DatePicker_cjs_DffhgUnQ.js} +4 -4
  8. package/dist/{DatePicker_es_A1FcasHs.js → DatePicker_es_GmkagjKf.js} +4 -4
  9. package/dist/{DropdownItem_cjs_tH2DBClp.js → DropdownItem_cjs_DxBpJAi9.js} +1 -1
  10. package/dist/{DropdownItem_es_BeVv-pDA.js → DropdownItem_es_Loneq6M7.js} +1 -1
  11. package/dist/{Input_cjs_arr_wxD2.js → Input_cjs_CPmXkQGd.js} +1 -0
  12. package/dist/{Input_es_BW6cZThr.js → Input_es_D9Y1Rj5Y.js} +1 -0
  13. package/dist/{Label_cjs_CP4b6Mg2.js → Label_cjs_C88e2CIP.js} +49 -49
  14. package/dist/{Label_es_DFSiy5sL.js → Label_es_Bn2aRjLl.js} +49 -49
  15. package/dist/{Loader_cjs_CCrbD8Em.js → Loader_cjs_Ca4i0sER.js} +4 -2
  16. package/dist/{Loader_es_B2auu_rc.js → Loader_es_GYOr0UTX.js} +4 -2
  17. package/dist/{Tooltip_cjs_DinScDnC.js → Tooltip_cjs_oS1iOamX.js} +4 -2
  18. package/dist/{Tooltip_es_B0nm9irO.js → Tooltip_es_LV5ZNg3B.js} +4 -2
  19. package/dist/cjs/components/Accordion.js +1 -1
  20. package/dist/cjs/components/Avatar.js +2 -2
  21. package/dist/cjs/components/AvatarStack.js +2 -2
  22. package/dist/cjs/components/Badge.js +1 -1
  23. package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +13 -6
  24. package/dist/cjs/components/Breadcrumbs.js +17 -18
  25. package/dist/cjs/components/Button.js +3 -3
  26. package/dist/cjs/components/Cell.js +2 -2
  27. package/dist/cjs/components/Chips/stories/__mock__.js +31 -0
  28. package/dist/cjs/components/Chips.js +4 -4
  29. package/dist/cjs/components/Choice/stories/__mock__.js +15 -15
  30. package/dist/cjs/components/Choice.js +7 -7
  31. package/dist/cjs/components/CookiesWarning.js +3 -3
  32. package/dist/cjs/components/Dadata.js +1 -1
  33. package/dist/cjs/components/DatePeriod.js +7 -7
  34. package/dist/cjs/components/DatePicker.js +6 -6
  35. package/dist/cjs/components/Drawer.js +1 -1
  36. package/dist/cjs/components/Dropdown/stories/__mock__.js +3 -2
  37. package/dist/cjs/components/Dropdown.js +2 -2
  38. package/dist/cjs/components/HeroTitle.js +1 -1
  39. package/dist/cjs/components/Icon.js +1 -1
  40. package/dist/cjs/components/Input.js +1 -1
  41. package/dist/cjs/components/InputPassword.js +1 -1
  42. package/dist/cjs/components/Label.js +2 -2
  43. package/dist/cjs/components/Loader.js +1 -1
  44. package/dist/cjs/components/MenuItem.js +12 -5
  45. package/dist/cjs/components/Modal.js +2 -2
  46. package/dist/cjs/components/Notification.js +1 -1
  47. package/dist/cjs/components/Pagination.js +2 -4
  48. package/dist/cjs/components/Response.js +3 -3
  49. package/dist/cjs/components/ScrollOnDrag.js +5 -3
  50. package/dist/cjs/components/Search.js +1 -1
  51. package/dist/cjs/components/Segmented/stories/__mock__.js +24 -9
  52. package/dist/cjs/components/Segmented.js +80 -51
  53. package/dist/cjs/components/Select.js +1 -1
  54. package/dist/cjs/components/Swiper.js +1 -1
  55. package/dist/cjs/components/Tab.js +1 -1
  56. package/dist/cjs/components/Textarea.js +8 -9
  57. package/dist/cjs/components/Tile.js +1 -1
  58. package/dist/cjs/components/Title.js +1 -1
  59. package/dist/cjs/components/Tooltip.js +1 -1
  60. package/dist/cjs/hooks/useStyles/styleAttributes.js +1 -1
  61. package/dist/components/Accordion.js +1 -1
  62. package/dist/components/Avatar.js +2 -2
  63. package/dist/components/AvatarStack.js +2 -2
  64. package/dist/components/Badge.js +1 -1
  65. package/dist/components/Breadcrumbs/stories/__mock__.js +13 -7
  66. package/dist/components/Breadcrumbs.js +17 -18
  67. package/dist/components/Button.js +3 -3
  68. package/dist/components/Cell.js +2 -2
  69. package/dist/components/Chips/stories/__mock__.js +29 -0
  70. package/dist/components/Chips.js +4 -4
  71. package/dist/components/Choice/stories/__mock__.js +15 -15
  72. package/dist/components/Choice.js +7 -7
  73. package/dist/components/CookiesWarning.js +3 -3
  74. package/dist/components/Dadata.js +1 -1
  75. package/dist/components/DatePeriod.js +7 -7
  76. package/dist/components/DatePicker.js +6 -6
  77. package/dist/components/Drawer.js +1 -1
  78. package/dist/components/Dropdown/stories/__mock__.js +3 -2
  79. package/dist/components/Dropdown.js +2 -2
  80. package/dist/components/HeroTitle.js +1 -1
  81. package/dist/components/Icon.js +1 -1
  82. package/dist/components/Input.js +1 -1
  83. package/dist/components/InputPassword.js +1 -1
  84. package/dist/components/Label.js +2 -2
  85. package/dist/components/Loader.js +1 -1
  86. package/dist/components/MenuItem.js +12 -5
  87. package/dist/components/Modal.js +2 -2
  88. package/dist/components/Notification.js +1 -1
  89. package/dist/components/Pagination.js +3 -5
  90. package/dist/components/Response.js +3 -3
  91. package/dist/components/ScrollOnDrag.js +7 -5
  92. package/dist/components/Search.js +1 -1
  93. package/dist/components/Segmented/stories/__mock__.js +23 -11
  94. package/dist/components/Segmented.js +80 -51
  95. package/dist/components/Select.js +1 -1
  96. package/dist/components/Swiper.js +1 -1
  97. package/dist/components/Tab.js +1 -1
  98. package/dist/components/Textarea.js +8 -9
  99. package/dist/components/Tile.js +1 -1
  100. package/dist/components/Title.js +1 -1
  101. package/dist/components/Tooltip.js +1 -1
  102. package/dist/css/components/Breadcrumbs/Breadcrumbs.css +15 -6
  103. package/dist/css/components/Chips/Chips.css +40 -14
  104. package/dist/css/components/Loader/Loader.css +1 -19
  105. package/dist/css/components/MenuItem/MenuItem.css +22 -30
  106. package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +230 -4
  107. package/dist/css/components/Segmented/Segmented.css +53 -6
  108. package/dist/css/components/Segmented/css/__item/segmaented__item.css +31 -0
  109. package/dist/css/styles/centering/centering.css +17 -0
  110. package/dist/css/styles/shape-strength/shape-strength.css +6 -0
  111. package/dist/hooks/useStyles/styleAttributes.js +1 -1
  112. package/dist/stories/ChipsOverview.mdx +26 -14
  113. package/dist/stories/ChipsPlayground.mdx +3 -3
  114. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +5 -5
  115. package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +24 -1
  116. package/dist/types/components/Chips/Chips.interface.d.ts +1 -0
  117. package/dist/types/components/Chips/appearance/chipsAccent.d.ts +9 -1
  118. package/dist/types/components/Chips/appearance/chipsDanger.d.ts +16 -1
  119. package/dist/types/components/Chips/appearance/chipsError.d.ts +16 -1
  120. package/dist/types/components/Chips/appearance/chipsInfo.d.ts +16 -1
  121. package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +11 -2
  122. package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +10 -2
  123. package/dist/types/components/Chips/appearance/chipsStyle.d.ts +3 -1
  124. package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +16 -1
  125. package/dist/types/components/Chips/appearance/chipsSurface.d.ts +11 -1
  126. package/dist/types/components/Chips/appearance/chipsWarning.d.ts +16 -1
  127. package/dist/types/components/Chips/stories/__mock__/index.d.ts +14 -0
  128. package/dist/types/components/Choice/appearance/choiceStyle.d.ts +5 -5
  129. package/dist/types/components/Choice/stories/__mock__/index.d.ts +3 -9
  130. package/dist/types/components/Input/appearance/inputDefault.d.ts +1 -0
  131. package/dist/types/components/Label/appearance/labelDisable.d.ts +2 -2
  132. package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +5 -0
  133. package/dist/types/components/Segmented/Segmented.interface.d.ts +5 -2
  134. package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +8 -11
  135. package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +9 -11
  136. package/dist/types/components/Segmented/appearance/segmentedError.d.ts +9 -2
  137. package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +5 -0
  138. package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +5 -3
  139. package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +8 -0
  140. package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +9 -1
  141. package/dist/types/components/Segmented/stories/__mock__/index.d.ts +30 -8
  142. package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +1 -0
  143. package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +4 -4
  144. package/dist/types/context/UIContext.d.ts +3 -5
  145. package/package.json +3 -2
  146. package/dist/ChipsGroup_cjs_j3QOma3U.js +0 -200
  147. package/dist/ChipsGroup_es_DF1fhn97.js +0 -195
@@ -0,0 +1,309 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import clsx from 'clsx';
3
+ import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
4
+ import { useMemo } from 'react';
5
+ import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
+ import { useStyles } from './hooks/useStyles/useStyles.js';
7
+ import { I as Icon, B as Badge } from './Tooltip_es_LV5ZNg3B.js';
8
+ import { T as Text } from './Text_es_BfLRfj-5.js';
9
+
10
+ var chipsAppearanceAccent = {
11
+ accent: {
12
+ fill: 'accentPrimary',
13
+ fillHover: 'accentPrimaryHover',
14
+ labelTextColor: 'accentTextPrimary',
15
+ borderColor: 'accentBorderSecondary',
16
+ },
17
+ accentMutedPrimary: {
18
+ fill: 'accentMutedPrimary',
19
+ labelTextColor: 'accentMutedTextPrimary',
20
+ borderColor: 'accentMutedBorderSecondary',
21
+ iconAfterFillIcon: 'accentMutedItemPrimary',
22
+ iconBeforeFillIcon: 'accentMutedItemPrimary',
23
+ },
24
+ accentPrimary: {
25
+ fill: 'accentPrimary',
26
+ labelTextColor: 'accentTextPrimary',
27
+ borderColor: 'accentBorderSecondary',
28
+ iconAfterFillIcon: 'accentItemPrimary',
29
+ iconBeforeFillIcon: 'accentItemPrimary',
30
+ },
31
+ };
32
+
33
+ var chipsAppearanceDanger = {
34
+ dangerMutedPrimary: {
35
+ fill: 'dangerMutedPrimary',
36
+ labelTextColor: 'dangerMutedTextPrimary',
37
+ borderColor: 'dangerMutedBorderSecondary',
38
+ iconAfterFillIcon: 'dangerMutedItemPrimary',
39
+ iconBeforeFillIcon: 'dangerMutedItemPrimary',
40
+ },
41
+ dangerPrimary: {
42
+ fill: 'dangerPrimary',
43
+ labelTextColor: 'dangerTextPrimary',
44
+ borderColor: 'dangerBorderSecondary',
45
+ iconAfterFillIcon: 'dangerItemPrimary',
46
+ iconBeforeFillIcon: 'dangerItemPrimary',
47
+ },
48
+ };
49
+
50
+ var chipsAppearanceDisabled = {
51
+ disabled: {
52
+ fill: 'surfaceDisabled',
53
+ fillActive: 'surfaceDisabled',
54
+ fillHover: 'surfaceDisabled',
55
+ labelTextColor: 'surfaceTextDisabled',
56
+ labelTextHoverColor: 'surfaceTextDisabled',
57
+ borderColor: 'surfaceBorderDisabled',
58
+ },
59
+ };
60
+
61
+ var chipsAppearanceError = {
62
+ errorMutedPrimary: {
63
+ fill: 'errorMutedPrimary',
64
+ labelTextColor: 'errorMutedTextPrimary',
65
+ borderColor: 'errorMutedBorderSecondary',
66
+ iconAfterFillIcon: 'errorMutedItemPrimary',
67
+ iconBeforeFillIcon: 'errorMutedItemPrimary',
68
+ },
69
+ errorPrimary: {
70
+ fill: 'errorPrimary',
71
+ labelTextColor: 'errorTextPrimary',
72
+ borderColor: 'errorBorderSecondary',
73
+ iconAfterFillIcon: 'errorItemPrimary',
74
+ iconBeforeFillIcon: 'errorItemPrimary',
75
+ },
76
+ };
77
+
78
+ var chipsAppearanceInfo = {
79
+ infoMutedPrimary: {
80
+ fill: 'infoPrimary',
81
+ labelTextColor: 'infoTextPrimary',
82
+ borderColor: 'infoBorderSecondary',
83
+ iconAfterFillIcon: 'infoItemPrimary',
84
+ iconBeforeFillIcon: 'infoItemPrimary',
85
+ },
86
+ infoPrimary: {
87
+ fill: 'infoPrimary',
88
+ labelTextColor: 'infoTextPrimary',
89
+ borderColor: 'infoBorderSecondary',
90
+ iconAfterFillIcon: 'infoItemPrimary',
91
+ iconBeforeFillIcon: 'infoItemPrimary',
92
+ },
93
+ };
94
+
95
+ var chipsAppearancePrimary = {
96
+ primaryMutedPrimary: {
97
+ fill: 'primaryMutedPrimary',
98
+ labelTextColor: 'primaryMutedTextPrimary',
99
+ borderColor: 'primaryMutedBorderSecondary',
100
+ iconAfterFillIcon: 'primaryMutedItemPrimary',
101
+ iconBeforeFillIcon: 'primaryMutedItemPrimary',
102
+ },
103
+ primaryPrimary: {
104
+ fill: 'primaryPrimary',
105
+ labelTextColor: 'primaryTextPrimary',
106
+ borderColor: 'primaryBorderSecondary',
107
+ iconAfterFillIcon: 'primaryItemPrimary',
108
+ iconBeforeFillIcon: 'primaryItemPrimary',
109
+ },
110
+ };
111
+
112
+ var chipsAppearanceSecondary = {
113
+ secondaryMutedPrimary: {
114
+ fill: 'secondaryMutedPrimary',
115
+ labelTextColor: 'secondaryMutedTextPrimary',
116
+ borderColor: 'secondaryMutedBorderSecondary',
117
+ iconAfterFillIcon: 'secondaryMutedItemPrimary',
118
+ iconBeforeFillIcon: 'secondaryMutedItemPrimary',
119
+ },
120
+ secondaryPrimary: {
121
+ fill: 'secondaryPrimary',
122
+ labelTextColor: 'secondaryTextPrimary',
123
+ borderColor: 'secondaryBorderSecondary',
124
+ iconAfterFillIcon: 'secondaryItemPrimary',
125
+ iconBeforeFillIcon: 'secondaryItemPrimary',
126
+ },
127
+ };
128
+
129
+ var chipsAppearanceSize = {
130
+ sizeXXL: {
131
+ size: 'xxl',
132
+ labelTextSize: 'xl',
133
+ iconAfterSize: 24,
134
+ iconBeforeSize: 24,
135
+ },
136
+ sizeXL: {
137
+ size: 'xl',
138
+ labelTextSize: 'm',
139
+ iconAfterSize: 20,
140
+ iconBeforeSize: 20,
141
+ },
142
+ sizeL: {
143
+ size: 'l',
144
+ labelTextSize: 'm',
145
+ iconAfterSize: 16,
146
+ iconBeforeSize: 16,
147
+ },
148
+ sizeM: {
149
+ size: 'm',
150
+ labelTextSize: 's',
151
+ iconAfterSize: 16,
152
+ iconBeforeSize: 16,
153
+ },
154
+ sizeS: {
155
+ size: 's',
156
+ labelTextSize: 's',
157
+ iconAfterSize: 16,
158
+ iconBeforeSize: 16,
159
+ },
160
+ sizeXS: {
161
+ size: 'xs',
162
+ labelTextSize: 'xs',
163
+ iconAfterSize: 14,
164
+ iconBeforeSize: 14,
165
+ },
166
+ sizeXXS: {
167
+ size: 'xxs',
168
+ labelTextSize: 'xxs',
169
+ iconAfterSize: 12,
170
+ iconBeforeSize: 12,
171
+ },
172
+ };
173
+
174
+ var chipsAppearanceStyle = {
175
+ solid: {
176
+ borderColor: 'none',
177
+ },
178
+ outlined: {
179
+ fill: 'none',
180
+ },
181
+ full: {
182
+ borderColor: 'none',
183
+ },
184
+ ghost: {
185
+ fill: 'none',
186
+ borderColor: 'none',
187
+ },
188
+ };
189
+
190
+ var chipsAppearanceSuccess = {
191
+ successMutedPrimary: {
192
+ fill: 'successMutedPrimary',
193
+ labelTextColor: 'successMutedTextPrimary',
194
+ borderColor: 'successMutedBorderSecondary',
195
+ iconAfterFillIcon: 'successMutedItemPrimary',
196
+ iconBeforeFillIcon: 'successMutedItemPrimary',
197
+ },
198
+ successPrimary: {
199
+ fill: 'successPrimary',
200
+ labelTextColor: 'successTextPrimary',
201
+ borderColor: 'successBorderSecondary',
202
+ iconAfterFillIcon: 'successItemPrimary',
203
+ iconBeforeFillIcon: 'successItemPrimary',
204
+ },
205
+ };
206
+
207
+ var chipsAppearanceSurface = {
208
+ surfaceMutedPrimary: {
209
+ fill: 'surfaceMutedPrimary',
210
+ labelTextColor: 'surfaceMutedTextPrimary',
211
+ borderColor: 'surfaceMutedBorderTertiary',
212
+ iconAfterFillIcon: 'surfaceMutedItemPrimary',
213
+ iconBeforeFillIcon: 'surfaceMutedItemPrimary',
214
+ },
215
+ surfacePrimary: {
216
+ fill: 'surfacePrimary',
217
+ fillActive: 'accentPrimary',
218
+ fillActiveHover: 'accentSecondary',
219
+ fillHover: 'surfaceHover',
220
+ labelTextActiveColor: 'accentTextPrimary',
221
+ labelTextColor: 'surfaceTextPrimary',
222
+ labelTextHoverColor: 'surfaceTextPrimary',
223
+ borderColor: 'surfaceBorderTertiary',
224
+ activeIconItemFill: 'surfaceItemSecondary',
225
+ badgeAppearance: 'surfacePrimary sizeXS solid',
226
+ iconAfterFillActiveIcon: 'accentItemPrimary',
227
+ iconAfterFillIcon: 'surfaceItemPrimary',
228
+ iconBeforeFillActiveIcon: 'accentItemPrimary',
229
+ iconBeforeFillIcon: 'surfaceItemPrimary',
230
+ },
231
+ surfaceSecondary: {
232
+ fill: 'surfaceSecondary',
233
+ fillHover: 'surfaceHover',
234
+ labelTextColor: 'surfaceTextPrimary',
235
+ borderColor: 'surfaceBorderSecondary',
236
+ },
237
+ surfaceTertiary: {
238
+ fill: 'surfaceTertiary',
239
+ fillHover: 'surfaceHover',
240
+ labelTextColor: 'surfaceTextPrimary',
241
+ borderColor: 'surfaceBorderTertiary',
242
+ },
243
+ };
244
+
245
+ var chipsAppearanceWarning = {
246
+ warningMutedPrimary: {
247
+ fill: 'warningMutedPrimary',
248
+ labelTextColor: 'warningMutedTextPrimary',
249
+ borderColor: 'warningMutedBorderSecondary',
250
+ iconAfterFillIcon: 'warningMutedItemPrimary',
251
+ iconBeforeFillIcon: 'warningMutedItemPrimary',
252
+ },
253
+ warningPrimary: {
254
+ fill: 'warningPrimary',
255
+ labelTextColor: 'warningTextPrimary',
256
+ borderColor: 'warningBorderSecondary',
257
+ iconAfterFillIcon: 'warningItemPrimary',
258
+ iconBeforeFillIcon: 'warningItemPrimary',
259
+ },
260
+ };
261
+
262
+ var chipsAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, chipsAppearanceSize), chipsAppearanceStyle), chipsAppearanceAccent), chipsAppearanceDanger), chipsAppearanceError), chipsAppearanceInfo), chipsAppearanceDisabled), chipsAppearancePrimary), chipsAppearanceSecondary), chipsAppearanceSuccess), chipsAppearanceSurface), chipsAppearanceWarning);
263
+
264
+ var chipsConfig = {
265
+ appearance: chipsAppearance,
266
+ setAppearance: function (appearanceConfig) {
267
+ chipsConfig.appearance = appearanceConfig;
268
+ },
269
+ };
270
+ function Chips(props) {
271
+ var className = props.className, appearance = props.appearance, _a = props.label, label = _a === void 0 ? '' : _a, isDisabled = props.isDisabled, dataTestId = props.dataTestId, dataTour = props.dataTour, iconAfter = props.iconAfter, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeSrc = props.iconBeforeSrc, isActive = props.isActive, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
272
+ var appearanceConfig = useMemo(function () {
273
+ if (appearance) {
274
+ var appearanceProps = appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
275
+ var _a;
276
+ return (__assign(__assign({}, resultConfig), (_a = chipsConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
277
+ }, {});
278
+ if (isDisabled && chipsConfig.appearance.disabled) {
279
+ Object.assign(appearanceProps, chipsConfig.appearance.disabled);
280
+ }
281
+ return appearanceProps;
282
+ }
283
+ if (isDisabled) {
284
+ return chipsConfig.appearance.disabled;
285
+ }
286
+ return {};
287
+ }, [appearance, isDisabled]);
288
+ var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
289
+ var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActiveIcon = propsGenerator.iconAfterFillActiveIcon, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActiveIcon = propsGenerator.iconBeforeFillActiveIcon, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
290
+ var chipsStyles = useStyles(props).styles;
291
+ return (jsx("div", { className: clsx(className, 'chips', !isActive
292
+ ? fillClass && "fill_".concat(fillClass)
293
+ : fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
294
+ ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
295
+ : fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isActive && 'chips_state_active', isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer', isSkeleton && "chips_skeleton"), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconFillActive: iconBeforeFillActiveIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore, isActive: isActive })), typeof label === 'string' ? (jsx(Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorHover: labelTextHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })) : (jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, iconFillActive: iconAfterFillActiveIcon, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter, isActive: isActive })), badgeValue && (jsx(Badge, { className: "chips__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }) }));
296
+ }
297
+
298
+ function ChipsGroup(props) {
299
+ var className = props.className, chipsList = props.chipsList, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, style = props.style, onClick = props.onClick, children = props.children;
300
+ var propsGenerator = useDevicePropsGenerator(props);
301
+ var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, chipsAppearance = propsGenerator.chipsAppearance, contentAlignClass = propsGenerator.contentAlignClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
302
+ // @ts-expect-error
303
+ var _a = useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
304
+ return (jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && "width_".concat(widthClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsx("div", { className: "chips-group__wrapper", style: groupWrapperStyles, children: children
305
+ ? children
306
+ : chipsList === null || chipsList === void 0 ? void 0 : chipsList.map(function (item) { return (jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: function () { return onClick(item); } }, item.id)); }) })) : children ? (children) : (chipsList === null || chipsList === void 0 ? void 0 : chipsList.map(function (item) { return (jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: function () { return onClick(item); } }, item.id)); })) }));
307
+ }
308
+
309
+ export { Chips as C, chipsAppearance as a, ChipsGroup as b, chipsConfig as c };
@@ -8,10 +8,10 @@ var locale = require('date-fns/locale');
8
8
  var DatePicker = require('react-datepicker');
9
9
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
10
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
11
- var Button = require('./Button_cjs_CW6ENTbm.js');
12
- var Tooltip = require('./Tooltip_cjs_DinScDnC.js');
13
- var Input = require('./Input_cjs_arr_wxD2.js');
14
- var Label = require('./Label_cjs_CP4b6Mg2.js');
11
+ var Button = require('./Button_cjs_djJUZATX.js');
12
+ var Tooltip = require('./Tooltip_cjs_oS1iOamX.js');
13
+ var Input = require('./Input_cjs_CPmXkQGd.js');
14
+ var Label = require('./Label_cjs_C88e2CIP.js');
15
15
  var Text = require('./Text_cjs_C9fOm0nd.js');
16
16
  var _default = require('@itcase/icons/default');
17
17
 
@@ -6,10 +6,10 @@ import { ru } from 'date-fns/locale';
6
6
  import DatePicker from 'react-datepicker';
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_DTUagqgU.js';
10
- import { I as Icon } from './Tooltip_es_B0nm9irO.js';
11
- import { I as Input } from './Input_es_BW6cZThr.js';
12
- import { L as Label } from './Label_es_DFSiy5sL.js';
9
+ import { B as Button } from './Button_es_X1DzVhok.js';
10
+ import { I as Icon } from './Tooltip_es_LV5ZNg3B.js';
11
+ import { I as Input } from './Input_es_D9Y1Rj5Y.js';
12
+ import { L as Label } from './Label_es_Bn2aRjLl.js';
13
13
  import { T as Text } from './Text_es_BfLRfj-5.js';
14
14
  import { icons14 } from '@itcase/icons/default';
15
15
 
@@ -7,7 +7,7 @@ var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDe
7
7
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
8
8
  var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
9
9
  var Divider = require('./Divider_cjs_BmCJj3TN.js');
10
- var Tooltip = require('./Tooltip_cjs_DinScDnC.js');
10
+ var Tooltip = require('./Tooltip_cjs_oS1iOamX.js');
11
11
  var Text = require('./Text_cjs_C9fOm0nd.js');
12
12
 
13
13
  function Dropdown(props) {
@@ -5,7 +5,7 @@ import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevi
5
5
  import { useStyles } from './hooks/useStyles/useStyles.js';
6
6
  import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
7
7
  import { D as Divider } from './Divider_es_kY-30pft.js';
8
- import { I as Icon } from './Tooltip_es_B0nm9irO.js';
8
+ import { I as Icon } from './Tooltip_es_LV5ZNg3B.js';
9
9
  import { T as Text } from './Text_es_BfLRfj-5.js';
10
10
 
11
11
  function Dropdown(props) {
@@ -16,6 +16,7 @@ var inputAppearanceDefault = {
16
16
  caret: 'secondaryItemSecondary',
17
17
  iconBeforeFill: 'surfaceItemQuaternary',
18
18
  iconClearFill: 'surfaceItemPrimary',
19
+ placeholderTextColor: 'surfaceTextQuaternary',
19
20
  },
20
21
  defaultSecondary: {
21
22
  fill: 'surfacePrimary',
@@ -14,6 +14,7 @@ var inputAppearanceDefault = {
14
14
  caret: 'secondaryItemSecondary',
15
15
  iconBeforeFill: 'surfaceItemQuaternary',
16
16
  iconClearFill: 'surfaceItemPrimary',
17
+ placeholderTextColor: 'surfaceTextQuaternary',
17
18
  },
18
19
  defaultSecondary: {
19
20
  fill: 'surfacePrimary',
@@ -6,16 +6,16 @@ var React = require('react');
6
6
  var clsx = require('clsx');
7
7
  var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
9
- var Tooltip = require('./Tooltip_cjs_DinScDnC.js');
9
+ var Tooltip = require('./Tooltip_cjs_oS1iOamX.js');
10
10
  var Text = require('./Text_cjs_C9fOm0nd.js');
11
11
 
12
12
  var labelAppearanceAccent = {
13
13
  accentMutedPrimary: {
14
- fill: 'accentTertiary',
15
- labelTextColor: 'accentTextQuaternary',
16
- borderColor: 'accentBorderSecondary',
17
- iconAfterFillIcon: 'accentItemQuaternary',
18
- iconBeforeFillIcon: 'accentItemQuaternary',
14
+ fill: 'accentMutedPrimary',
15
+ labelTextColor: 'accentMutedTextQuaternary',
16
+ borderColor: 'accentMutedBorderSecondary',
17
+ iconAfterFillIcon: 'accentMutedItemQuaternary',
18
+ iconBeforeFillIcon: 'accentMutedItemQuaternary',
19
19
  },
20
20
  accentPrimary: {
21
21
  fill: 'accentPrimary',
@@ -32,11 +32,11 @@ var labelAppearanceAccent = {
32
32
 
33
33
  var labelAppearanceDanger = {
34
34
  dangerMutedPrimary: {
35
- fill: 'dangerTertiary',
36
- labelTextColor: 'dangerTextQuaternary',
37
- borderColor: 'dangerBorderQuaternary',
38
- iconAfterFillIcon: 'dangerItemQuaternary',
39
- iconBeforeFillIcon: 'dangerItemQuaternary',
35
+ fill: 'dangerMutedPrimary',
36
+ labelTextColor: 'dangerMutedTextQuaternary',
37
+ borderColor: 'dangerMutedBorderQuaternary',
38
+ iconAfterFillIcon: 'dangerMutedItemQuaternary',
39
+ iconBeforeFillIcon: 'dangerMutedItemQuaternary',
40
40
  },
41
41
  dangerPrimary: {
42
42
  fill: 'dangerPrimary',
@@ -48,6 +48,13 @@ var labelAppearanceDanger = {
48
48
  };
49
49
 
50
50
  var labelAppearanceDisable = {
51
+ disableMutedPrimary: {
52
+ fill: 'disableMutedPrimary',
53
+ labelTextColor: 'disableMutedTextPrimary',
54
+ borderColor: 'disableMutedBorderSecondary',
55
+ iconAfterFillIcon: 'disableMutedItemPrimary',
56
+ iconBeforeFillIcon: 'disableMutedItemPrimary',
57
+ },
51
58
  disablePrimary: {
52
59
  fill: 'disablePrimary',
53
60
  labelTextColor: 'disableTextPrimary',
@@ -55,22 +62,15 @@ var labelAppearanceDisable = {
55
62
  iconAfterFillIcon: 'disableItemPrimary',
56
63
  iconBeforeFillIcon: 'disableItemPrimary',
57
64
  },
58
- disableMuted: {
59
- fill: 'disableMuted',
60
- labelTextColor: 'disableMutedTextPrimary',
61
- borderColor: 'disableMutedBorderSecondary',
62
- iconAfterFillIcon: 'disableMutedItemPrimary',
63
- iconBeforeFillIcon: 'disableMutedItemPrimary',
64
- },
65
65
  };
66
66
 
67
67
  var labelAppearanceError = {
68
68
  errorMutedPrimary: {
69
- fill: 'errorDisabled',
70
- labelTextColor: 'errorTextQuaternary',
71
- borderColor: 'errorBorderSecondary',
72
- iconAfterFillIcon: 'errorItemQuaternary',
73
- iconBeforeFillIcon: 'errorItemQuaternary',
69
+ fill: 'errorMutedPrimary',
70
+ labelTextColor: 'errorMutedTextQuaternary',
71
+ borderColor: 'errorMutedBorderSecondary',
72
+ iconAfterFillIcon: 'errorMutedItemQuaternary',
73
+ iconBeforeFillIcon: 'errorMutedItemQuaternary',
74
74
  },
75
75
  errorPrimary: {
76
76
  fill: 'errorPrimary',
@@ -84,7 +84,7 @@ var labelAppearanceError = {
84
84
 
85
85
  var labelAppearanceInfo = {
86
86
  infoMutedPrimary: {
87
- fill: 'infoMuted',
87
+ fill: 'infoMutedPrimary',
88
88
  labelTextColor: 'infoMutedTextPrimary',
89
89
  borderColor: 'infoMutedBorderSecondary',
90
90
  iconAfterFillIcon: 'infoMutedItemPrimary',
@@ -108,11 +108,11 @@ var labelAppearanceInfo = {
108
108
 
109
109
  var labelAppearancePrimary = {
110
110
  primaryMutedPrimary: {
111
- fill: 'primaryDisabled',
112
- labelTextColor: 'primaryTextSecondary',
113
- borderColor: 'primaryBorderTertiary',
114
- iconAfterFillIcon: 'primaryItemSecondary',
115
- iconBeforeFillIcon: 'primaryItemSecondary',
111
+ fill: 'primaryMutedPrimary',
112
+ labelTextColor: 'primaryMutedTextSecondary',
113
+ borderColor: 'primaryMutedBorderTertiary',
114
+ iconAfterFillIcon: 'primaryMutedItemSecondary',
115
+ iconBeforeFillIcon: 'primaryMutedItemSecondary',
116
116
  },
117
117
  primaryPrimary: {
118
118
  fill: 'primaryPrimary',
@@ -125,11 +125,11 @@ var labelAppearancePrimary = {
125
125
 
126
126
  var labelAppearanceSecondary = {
127
127
  secondaryMutedPrimary: {
128
- fill: 'secondaryDisabled',
129
- labelTextColor: 'secondaryTextQuaternary',
130
- borderColor: 'secondaryBorderDisabled',
131
- iconAfterFillIcon: 'secondaryItemQuaternary',
132
- iconBeforeFillIcon: 'secondaryItemQuaternary',
128
+ fill: 'secondaryMutedPrimary',
129
+ labelTextColor: 'secondaryMutedTextQuaternary',
130
+ borderColor: 'secondaryMutedBorderDisabled',
131
+ iconAfterFillIcon: 'secondaryMutedItemQuaternary',
132
+ iconBeforeFillIcon: 'secondaryMutedItemQuaternary',
133
133
  },
134
134
  secondaryPrimary: {
135
135
  fill: 'secondaryPrimary',
@@ -215,11 +215,11 @@ var labelAppearanceStyle = {
215
215
 
216
216
  var labelAppearanceSuccess = {
217
217
  successMutedPrimary: {
218
- fill: 'successTertiary',
219
- labelTextColor: 'successTextQuaternary',
220
- borderColor: 'successBorderQuaternary',
221
- iconAfterFillIcon: 'successItemQuaternary',
222
- iconBeforeFillIcon: 'successItemQuaternary',
218
+ fill: 'successMutedPrimary',
219
+ labelTextColor: 'successMutedTextPrimary',
220
+ borderColor: 'successMutedBorderSecondary',
221
+ iconAfterFillIcon: 'successMutedItemPrimary',
222
+ iconBeforeFillIcon: 'successMutedItemPrimary',
223
223
  },
224
224
  successPrimary: {
225
225
  fill: 'successPrimary',
@@ -233,11 +233,11 @@ var labelAppearanceSuccess = {
233
233
 
234
234
  var labelAppearanceSurface = {
235
235
  surfaceMutedPrimary: {
236
- fill: 'surfaceSecondary',
237
- labelTextColor: 'surfaceTextQuaternary',
238
- borderColor: 'surfaceBorderQuaternary',
239
- iconAfterFillIcon: 'surfaceItemQuaternary',
240
- iconBeforeFillIcon: 'surfaceItemQuaternary',
236
+ fill: 'surfaceMutedPrimary',
237
+ labelTextColor: 'surfaceMutedTextQuaternary',
238
+ borderColor: 'surfaceMutedBorderQuaternary',
239
+ iconAfterFillIcon: 'surfaceMutedItemQuaternary',
240
+ iconBeforeFillIcon: 'surfaceMutedItemQuaternary',
241
241
  },
242
242
  surfacePrimary: {
243
243
  fill: 'surfacePrimary',
@@ -262,11 +262,11 @@ var labelAppearanceSurface = {
262
262
 
263
263
  var labelAppearanceWarning = {
264
264
  warningMutedPrimary: {
265
- fill: 'warningTertiary',
266
- labelTextColor: 'warningTextSecondary',
267
- borderColor: 'warningBorderSecondary',
268
- iconAfterFillIcon: 'warningItemSecondary',
269
- iconBeforeFillIcon: 'warningItemSecondary',
265
+ fill: 'warningMutedPrimary',
266
+ labelTextColor: 'warningMutedTextSecondary',
267
+ borderColor: 'warningMutedBorderSecondary',
268
+ iconAfterFillIcon: 'warningMutedItemSecondary',
269
+ iconBeforeFillIcon: 'warningMutedItemSecondary',
270
270
  },
271
271
  warningPrimary: {
272
272
  fill: 'warningPrimary',