@itcase/ui 1.8.34 → 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 (160) 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_C-VbK2J4.js → DatePicker_cjs_DffhgUnQ.js} +26 -30
  8. package/dist/{DatePicker_es_CIEHQyHC.js → DatePicker_es_GmkagjKf.js} +27 -31
  9. package/dist/{DropdownItem_cjs_D-zoX7Ik.js → DropdownItem_cjs_DxBpJAi9.js} +5 -3
  10. package/dist/{DropdownItem_es_BMnIhUSe.js → DropdownItem_es_Loneq6M7.js} +5 -3
  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_BWbVsB-u.js → Label_cjs_C88e2CIP.js} +59 -131
  14. package/dist/{Label_es_ouC2i_iI.js → Label_es_Bn2aRjLl.js} +59 -131
  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 +10 -8
  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 +10 -8
  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/Dropdown/Dropdown.css +7 -14
  105. package/dist/css/components/Loader/Loader.css +1 -19
  106. package/dist/css/components/MenuItem/MenuItem.css +22 -30
  107. package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +230 -4
  108. package/dist/css/components/Segmented/Segmented.css +53 -6
  109. package/dist/css/components/Segmented/css/__item/segmaented__item.css +31 -0
  110. package/dist/css/styles/centering/centering.css +17 -0
  111. package/dist/css/styles/shape-strength/shape-strength.css +10 -9
  112. package/dist/hooks/useStyles/styleAttributes.js +1 -1
  113. package/dist/stories/ChipsOverview.mdx +26 -14
  114. package/dist/stories/ChipsPlayground.mdx +3 -3
  115. package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +5 -5
  116. package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +24 -1
  117. package/dist/types/components/Chips/Chips.interface.d.ts +1 -0
  118. package/dist/types/components/Chips/appearance/chipsAccent.d.ts +9 -1
  119. package/dist/types/components/Chips/appearance/chipsDanger.d.ts +16 -1
  120. package/dist/types/components/Chips/appearance/chipsError.d.ts +16 -1
  121. package/dist/types/components/Chips/appearance/chipsInfo.d.ts +16 -1
  122. package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +11 -2
  123. package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +10 -2
  124. package/dist/types/components/Chips/appearance/chipsSize.d.ts +34 -0
  125. package/dist/types/components/Chips/appearance/chipsStyle.d.ts +9 -9
  126. package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +16 -1
  127. package/dist/types/components/Chips/appearance/chipsSurface.d.ts +11 -1
  128. package/dist/types/components/Chips/appearance/chipsWarning.d.ts +16 -1
  129. package/dist/types/components/Chips/stories/__mock__/index.d.ts +14 -0
  130. package/dist/types/components/Choice/appearance/choiceStyle.d.ts +5 -5
  131. package/dist/types/components/Choice/stories/__mock__/index.d.ts +3 -9
  132. package/dist/types/components/Input/appearance/inputDefault.d.ts +1 -0
  133. package/dist/types/components/Label/appearance/labelAccent.d.ts +0 -8
  134. package/dist/types/components/Label/appearance/labelDanger.d.ts +0 -12
  135. package/dist/types/components/Label/appearance/labelDisable.d.ts +2 -4
  136. package/dist/types/components/Label/appearance/labelError.d.ts +0 -8
  137. package/dist/types/components/Label/appearance/labelInfo.d.ts +0 -5
  138. package/dist/types/components/Label/appearance/labelPrimary.d.ts +0 -10
  139. package/dist/types/components/Label/appearance/labelSecondary.d.ts +0 -10
  140. package/dist/types/components/Label/appearance/labelSize.d.ts +6 -0
  141. package/dist/types/components/Label/appearance/labelStyle.d.ts +4 -4
  142. package/dist/types/components/Label/appearance/labelSuccess.d.ts +0 -8
  143. package/dist/types/components/Label/appearance/labelSurface.d.ts +0 -6
  144. package/dist/types/components/Label/appearance/labelWarning.d.ts +0 -9
  145. package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +5 -0
  146. package/dist/types/components/Segmented/Segmented.interface.d.ts +5 -2
  147. package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +8 -11
  148. package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +9 -11
  149. package/dist/types/components/Segmented/appearance/segmentedError.d.ts +9 -2
  150. package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +5 -0
  151. package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +5 -3
  152. package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +8 -0
  153. package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +9 -1
  154. package/dist/types/components/Segmented/stories/__mock__/index.d.ts +30 -8
  155. package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +1 -0
  156. package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +4 -4
  157. package/dist/types/context/UIContext.d.ts +3 -5
  158. package/package.json +3 -2
  159. package/dist/ChipsGroup_cjs_DdWjvr_S.js +0 -168
  160. package/dist/ChipsGroup_es_CXS0aeon.js +0 -163
@@ -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_BWbVsB-u.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
 
@@ -99,34 +99,36 @@ function DatePickerInput(props) {
99
99
  }, {});
100
100
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(datePickerProps, appearanceConfig);
101
101
  var daySize = propsGenerator.daySize, dayTextColor = propsGenerator.dayTextColor, dayTextShape = propsGenerator.dayTextShape, dayTextSize = propsGenerator.dayTextSize, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconLeft = propsGenerator.iconLeft, iconRight = propsGenerator.iconRight, iconShape = propsGenerator.iconShape, monthTextColor = propsGenerator.monthTextColor, monthTextSize = propsGenerator.monthTextSize, monthTextWeight = propsGenerator.monthTextWeight, popper = propsGenerator.popper, popperPlacement = propsGenerator.popperPlacement, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, yearTextColor = propsGenerator.yearTextColor, yearTextSize = propsGenerator.yearTextSize, yearTextWeight = propsGenerator.yearTextWeight, isClearable = propsGenerator.isClearable;
102
- var start = React.useMemo(function () {
102
+ var _d = React.useMemo(function () {
103
+ var startDate;
103
104
  if (value) {
104
105
  if (typeof value === 'string') {
105
- return new Date(value);
106
+ startDate = new Date(value);
107
+ }
108
+ else {
109
+ startDate = value;
106
110
  }
107
- return value;
108
111
  }
109
- if (datePickerProps.isStartDefaultNull) {
110
- return undefined;
112
+ else {
113
+ startDate = undefined;
111
114
  }
112
- return new Date();
113
- }, [value, datePickerProps.isStartDefaultNull]);
114
- var end = React.useMemo(function () {
115
- if (!endValue) {
116
- return undefined;
115
+ var endDate;
116
+ if (endValue) {
117
+ if (typeof endValue === 'string') {
118
+ endDate = new Date(endValue);
119
+ }
120
+ else {
121
+ endDate = endValue;
122
+ }
117
123
  }
118
- if (typeof endValue === 'string') {
119
- return new Date(endValue);
124
+ else {
125
+ endDate = undefined;
120
126
  }
121
- return endValue;
122
- }, [endValue]);
123
- var _d = React.useState(start), startDate = _d[0], setStartDate = _d[1];
124
- var _e = React.useState(end), endDate = _e[0], setEndDate = _e[1];
127
+ return [startDate, endDate];
128
+ }, [value, endValue]), startDate = _d[0], endDate = _d[1];
125
129
  var handleChange = React.useCallback(function (_a) {
126
130
  var newStartDate = _a[0], newEndDate = _a[1];
127
- onChange && onChange(newStartDate, newEndDate);
128
- setStartDate(newStartDate);
129
- setEndDate(newEndDate);
131
+ onChange(newStartDate, newEndDate);
130
132
  }, [onChange]);
131
133
  var renderDayContents = React.useCallback(function (day, date) {
132
134
  return (jsxRuntime.jsx(Button.Button, { className: "react-datepicker__day-button", size: daySize, label: date.getDate().toString(), labelTextColor: dayTextColor, labelTextSize: dayTextSize, shape: dayTextShape }));
@@ -149,14 +151,8 @@ function DatePickerInput(props) {
149
151
  yearTextSize,
150
152
  yearTextWeight,
151
153
  ]);
152
- React.useEffect(function () {
153
- setStartDate(start);
154
- }, [start]);
155
- React.useEffect(function () {
156
- setEndDate(end);
157
- }, [end]);
158
154
  var datePickerStyles = useStyles.useStyles(props).styles;
159
- return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, tslib_es6.__assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? endDate : undefined, locale: locale.ru, popperPlacement: popperPlacement, popperClassName: popper && "react-datepicker-popper-".concat(popper), ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
155
+ return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, tslib_es6.__assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? endDate : undefined, locale: locale.ru, popperClassName: popper && "react-datepicker-popper-".concat(popper), popperPlacement: popperPlacement, ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
160
156
  // Important for use custom clear button
161
157
  isClearable: false })) }));
162
158
  }
@@ -1,15 +1,15 @@
1
1
  import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
- import React, { useMemo, useCallback, useRef, useState, useEffect } from 'react';
3
+ import React, { useMemo, useCallback, useRef } from 'react';
4
4
  import clsx from 'clsx';
5
5
  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_ouC2i_iI.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
 
@@ -97,34 +97,36 @@ function DatePickerInput(props) {
97
97
  }, {});
98
98
  var propsGenerator = useDevicePropsGenerator(datePickerProps, appearanceConfig);
99
99
  var daySize = propsGenerator.daySize, dayTextColor = propsGenerator.dayTextColor, dayTextShape = propsGenerator.dayTextShape, dayTextSize = propsGenerator.dayTextSize, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconLeft = propsGenerator.iconLeft, iconRight = propsGenerator.iconRight, iconShape = propsGenerator.iconShape, monthTextColor = propsGenerator.monthTextColor, monthTextSize = propsGenerator.monthTextSize, monthTextWeight = propsGenerator.monthTextWeight, popper = propsGenerator.popper, popperPlacement = propsGenerator.popperPlacement, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, yearTextColor = propsGenerator.yearTextColor, yearTextSize = propsGenerator.yearTextSize, yearTextWeight = propsGenerator.yearTextWeight, isClearable = propsGenerator.isClearable;
100
- var start = useMemo(function () {
100
+ var _d = useMemo(function () {
101
+ var startDate;
101
102
  if (value) {
102
103
  if (typeof value === 'string') {
103
- return new Date(value);
104
+ startDate = new Date(value);
105
+ }
106
+ else {
107
+ startDate = value;
104
108
  }
105
- return value;
106
109
  }
107
- if (datePickerProps.isStartDefaultNull) {
108
- return undefined;
110
+ else {
111
+ startDate = undefined;
109
112
  }
110
- return new Date();
111
- }, [value, datePickerProps.isStartDefaultNull]);
112
- var end = useMemo(function () {
113
- if (!endValue) {
114
- return undefined;
113
+ var endDate;
114
+ if (endValue) {
115
+ if (typeof endValue === 'string') {
116
+ endDate = new Date(endValue);
117
+ }
118
+ else {
119
+ endDate = endValue;
120
+ }
115
121
  }
116
- if (typeof endValue === 'string') {
117
- return new Date(endValue);
122
+ else {
123
+ endDate = undefined;
118
124
  }
119
- return endValue;
120
- }, [endValue]);
121
- var _d = useState(start), startDate = _d[0], setStartDate = _d[1];
122
- var _e = useState(end), endDate = _e[0], setEndDate = _e[1];
125
+ return [startDate, endDate];
126
+ }, [value, endValue]), startDate = _d[0], endDate = _d[1];
123
127
  var handleChange = useCallback(function (_a) {
124
128
  var newStartDate = _a[0], newEndDate = _a[1];
125
- onChange && onChange(newStartDate, newEndDate);
126
- setStartDate(newStartDate);
127
- setEndDate(newEndDate);
129
+ onChange(newStartDate, newEndDate);
128
130
  }, [onChange]);
129
131
  var renderDayContents = useCallback(function (day, date) {
130
132
  return (jsx(Button, { className: "react-datepicker__day-button", size: daySize, label: date.getDate().toString(), labelTextColor: dayTextColor, labelTextSize: dayTextSize, shape: dayTextShape }));
@@ -147,14 +149,8 @@ function DatePickerInput(props) {
147
149
  yearTextSize,
148
150
  yearTextWeight,
149
151
  ]);
150
- useEffect(function () {
151
- setStartDate(start);
152
- }, [start]);
153
- useEffect(function () {
154
- setEndDate(end);
155
- }, [end]);
156
152
  var datePickerStyles = useStyles(props).styles;
157
- return (jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsx(DatePicker, __assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? endDate : undefined, locale: ru, popperPlacement: popperPlacement, popperClassName: popper && "react-datepicker-popper-".concat(popper), ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
153
+ return (jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsx(DatePicker, __assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? endDate : undefined, locale: ru, popperClassName: popper && "react-datepicker-popper-".concat(popper), popperPlacement: popperPlacement, ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
158
154
  // Important for use custom clear button
159
155
  isClearable: false })) }));
160
156
  }
@@ -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) {
@@ -58,9 +58,11 @@ function Dropdown(props) {
58
58
  // eslint-disable-next-line react-hooks/exhaustive-deps
59
59
  }, []);
60
60
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
61
- var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass;
61
+ var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass;
62
62
  var styles = useStyles.useStyles(props).styles;
63
- return (jsxRuntime.jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, (children || dropdownList) && (jsxRuntime.jsxs("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
63
+ return (jsxRuntime.jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
64
+ ? "shape-strength_".concat(shapeStrengthClass)
65
+ : shapeClass === 'rounded' && 'shape-strength_default', elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, (children || dropdownList) && (jsxRuntime.jsxs("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
64
66
  // Add "onAnimationEnd" only for wrapper for ignore dropdown button
65
67
  onAnimationEnd: onAnimationEnd, children: [dropdownList === null || dropdownList === void 0 ? void 0 : dropdownList.map(function (item) { return (jsxRuntime.jsx(DropdownItem, { appearance: appearance, label: item.label, badgeValue: item.badgeValue, iconAfter: item.iconAfter, iconBefore: item.iconBefore, iconSrc: item.icon, isActive: item.isActive }, item.key)); }), children] })), after] }));
66
68
  }
@@ -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) {
@@ -56,9 +56,11 @@ function Dropdown(props) {
56
56
  // eslint-disable-next-line react-hooks/exhaustive-deps
57
57
  }, []);
58
58
  var propsGenerator = useDevicePropsGenerator(props);
59
- var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass;
59
+ var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass;
60
60
  var styles = useStyles(props).styles;
61
- return (jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, (children || dropdownList) && (jsxs("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
61
+ return (jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass
62
+ ? "shape-strength_".concat(shapeStrengthClass)
63
+ : shapeClass === 'rounded' && 'shape-strength_default', elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, (children || dropdownList) && (jsxs("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
62
64
  // Add "onAnimationEnd" only for wrapper for ignore dropdown button
63
65
  onAnimationEnd: onAnimationEnd, children: [dropdownList === null || dropdownList === void 0 ? void 0 : dropdownList.map(function (item) { return (jsx(DropdownItem, { appearance: appearance, label: item.label, badgeValue: item.badgeValue, iconAfter: item.iconAfter, iconBefore: item.iconBefore, iconSrc: item.icon, isActive: item.isActive }, item.key)); }), children] })), after] }));
64
66
  }
@@ -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',