@itcase/ui 1.8.89 → 1.8.91
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.
- package/dist/{Avatar_cjs_CoDaXDKy.js → Avatar_cjs_Dh7c9RmS.js} +2 -2
- package/dist/{Avatar_es_DUtgRVQ7.js → Avatar_es_D4xUwAOB.js} +2 -2
- package/dist/{Button_cjs_Crmtn084.js → Button_cjs_CQzbBsB0.js} +3 -3
- package/dist/{Button_es_BTidGO25.js → Button_es_Bj8CZ_bh.js} +3 -3
- package/dist/{ChipsGroup_cjs_BfzeDpwM.js → ChipsGroup_cjs_7mHtHzNh.js} +5 -5
- package/dist/{ChipsGroup_es_tfEKBIc4.js → ChipsGroup_es_Cz_gDYsw.js} +5 -5
- package/dist/{DatePicker_cjs_DGlgp1Oj.js → DatePicker_cjs_CnFVTsC1.js} +4 -4
- package/dist/{DatePicker_es_6j1FwGTI.js → DatePicker_es_DTSHtynU.js} +4 -4
- package/dist/{DropdownItem_cjs_eiWqrFRW.js → DropdownItem_cjs_DrMFaKh6.js} +2 -2
- package/dist/{DropdownItem_es_CHGCRZt0.js → DropdownItem_es_Dp7-DGkV.js} +2 -2
- package/dist/{Icon_cjs_CdFkbmKN.js → Icon_cjs_CDMtlf1A.js} +1 -1
- package/dist/{Icon_es_BpZIoe9M.js → Icon_es_MOmiy9nF.js} +1 -1
- package/dist/{Label_cjs_CFzGH1Ah.js → Label_cjs_BTLhlnJW.js} +2 -2
- package/dist/{Label_es_D-tO6hy7.js → Label_es_DBPp2ots.js} +2 -2
- package/dist/{Loader_cjs_DlnM5Vzb.js → Loader_cjs_mB_UCgBG.js} +1 -1
- package/dist/{Loader_es_DhNCKZ8Y.js → Loader_es_Dfs_VYxV.js} +1 -1
- package/dist/{Text_cjs_B8nNXWBA.js → Text_cjs_DmuzuKFj.js} +15 -8
- package/dist/{Text_es_BvmOR4nv.js → Text_es_DIU5ySvf.js} +15 -8
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack.js +3 -3
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +3 -3
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +3 -3
- package/dist/cjs/components/CookiesWarning.js +4 -4
- package/dist/cjs/components/DatePeriod.js +7 -7
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Drawer.js +2 -2
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/HeroTitle.js +2 -2
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/MenuItem.js +2 -2
- package/dist/cjs/components/Modal.js +3 -3
- package/dist/cjs/components/Notification.js +2 -2
- package/dist/cjs/components/Pagination.js +3 -3
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/Response.js +4 -4
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Segmented.js +2 -2
- package/dist/cjs/components/Select/stories/__mock__.js +64 -0
- package/dist/cjs/components/Select.js +333 -41
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Switch.js +1 -1
- package/dist/cjs/components/Tab.js +3 -3
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +2 -2
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/components/Warning.js +2 -2
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack.js +3 -3
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +3 -3
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +3 -3
- package/dist/components/CookiesWarning.js +4 -4
- package/dist/components/DatePeriod.js +7 -7
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/HeroTitle.js +2 -2
- package/dist/components/Icon.js +2 -2
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Label.js +3 -3
- package/dist/components/Loader.js +2 -2
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Modal.js +3 -3
- package/dist/components/Notification.js +2 -2
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Radio.js +1 -1
- package/dist/components/Response.js +4 -4
- package/dist/components/Search.js +2 -2
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Select/stories/__mock__.js +62 -0
- package/dist/components/Select.js +334 -42
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tab.js +3 -3
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +2 -2
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/Warning.js +2 -2
- package/dist/css/components/Search/Search.css +1 -1
- package/dist/css/components/Search/css/search-input/search-input.css +1 -1
- package/dist/css/components/Select/Select.css +15 -111
- package/dist/css/components/Select/css/__menu/select__menu.css +0 -4
- package/dist/css/components/Select/css/__multi-value/select__multi-value.css +1 -3
- package/dist/css/components/Select/css/__option/select__option.css +0 -50
- package/dist/css/components/Select/css/__single-value/select__single-value.css +0 -1
- package/dist/types/components/Select/SelectLoadingIndicator.d.ts +1 -2
- package/dist/types/components/Select/SelectLoadingMessage.d.ts +3 -0
- package/dist/types/components/Select/appearance/selectDefault.d.ts +21 -3
- package/dist/types/components/Select/appearance/selectDisabled.d.ts +31 -0
- package/dist/types/components/Select/appearance/selectError.d.ts +31 -0
- package/dist/types/components/Select/appearance/selectRequire.d.ts +31 -0
- package/dist/types/components/Select/appearance/selectShape.d.ts +22 -0
- package/dist/types/components/Select/appearance/selectSize.d.ts +101 -0
- package/dist/types/components/Select/appearance/selectStyle.d.ts +16 -0
- package/dist/types/components/Select/appearance/selectSuccess.d.ts +33 -0
- package/package.json +7 -7
- package/dist/css/components/Select/css/__control/select__control_fill.css +0 -17
- package/dist/css/components/Select/css/__control/select__control_shape.css +0 -12
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon, B as Badge } from '../
|
|
5
|
-
import React, { useRef,
|
|
4
|
+
import { I as Icon, B as Badge } from '../Icon_es_MOmiy9nF.js';
|
|
5
|
+
import React, { useRef, useEffect, useMemo } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
8
|
+
import { G as Group } from '../Group_es_Bo7Y6JwT.js';
|
|
9
|
+
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
8
10
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
9
11
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
+
import { icons12, icons16, icons14, icons24 } from '@itcase/icons/default';
|
|
13
|
+
import { L as Loader } from '../Loader_es_Dfs_VYxV.js';
|
|
12
14
|
import { D as Divider } from '../Divider_es_CiRU0sTz.js';
|
|
13
15
|
import 'react-inlinesvg';
|
|
14
16
|
import '../hoc/urlWithAssetPrefix.js';
|
|
@@ -38,43 +40,331 @@ var SelectClearIndicator = function (props) {
|
|
|
38
40
|
return (jsx(components.ClearIndicator, __assign({}, props, { children: clearIcon ? (jsx(Icon, { iconFill: clearIconFill, SvgImage: clearIcon })) : (children) })));
|
|
39
41
|
};
|
|
40
42
|
|
|
43
|
+
var SelectLoadingMessage = function (props) {
|
|
44
|
+
var _a = props.selectProps, loadingMessageText = _a.loadingMessageText, loadingMessageTextColor = _a.loadingMessageTextColor, loadingMessageTextSize = _a.loadingMessageTextSize;
|
|
45
|
+
return (jsx(Group, { textAlign: "center", children: jsx(Text, { size: loadingMessageTextSize, textColor: loadingMessageTextColor, children: loadingMessageText }) }));
|
|
46
|
+
};
|
|
47
|
+
|
|
41
48
|
var selectAppearanceDefault = {
|
|
42
49
|
defaultPrimary: {
|
|
43
50
|
elevation: 8,
|
|
51
|
+
errorInputBorderColor: 'errorBorderPrimary',
|
|
52
|
+
optionFillDisabled: 'surfaceSecondary',
|
|
53
|
+
optionTextColorDisabled: 'surfaceTextQuaternary',
|
|
54
|
+
badgeAppearance: 'accent',
|
|
55
|
+
clearIconFill: 'surfaceItemQuaternary',
|
|
56
|
+
dropdownIconFill: 'surfaceItemQuaternary',
|
|
57
|
+
groupFill: 'surfaceSecondary',
|
|
58
|
+
groupTextColor: 'surfaceTextPrimary',
|
|
59
|
+
groupTextWeight: '600',
|
|
44
60
|
inputBorderColor: 'surfaceBorderTertiary',
|
|
45
61
|
inputBorderColorHover: 'surfaceBorderQuaternary',
|
|
46
|
-
|
|
62
|
+
inputCaretColor: 'accentPrimary',
|
|
63
|
+
inputFill: 'surfaceSecondary',
|
|
64
|
+
inputTextColor: 'surfaceTextPrimary',
|
|
65
|
+
loaderAppearance: 'accentPrimary sizeS ghost',
|
|
66
|
+
loadingMessageTextColor: 'surfaceTextPrimary',
|
|
67
|
+
menuFill: 'surfacePrimary',
|
|
68
|
+
multipleItemFill: 'accentPrimary',
|
|
69
|
+
multipleItemFillHover: 'accentSecondary',
|
|
70
|
+
multipleItemIconFill: 'accentItemPrimary',
|
|
71
|
+
multipleItemTextColor: 'accentTextPrimary',
|
|
72
|
+
multipleTextColor: 'accentTextPrimary',
|
|
73
|
+
noOptionsTextColor: 'surfaceTextPrimary',
|
|
74
|
+
optionBorder: 'none',
|
|
75
|
+
optionFill: 'surfacePrimary',
|
|
76
|
+
optionFillActive: 'accentPrimary',
|
|
77
|
+
optionFillActiveHover: 'accentSecondary',
|
|
78
|
+
optionFillHover: 'surfaceSecondary',
|
|
79
|
+
optionSelectedIconFillIcon: 'successItemPrimary',
|
|
80
|
+
optionTextColor: 'surfaceTextPrimary',
|
|
81
|
+
optionTextColorActive: 'accentTextPrimary',
|
|
82
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
83
|
+
requiredInputBorderColor: 'warningBorderPrimary',
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
var selectAppearanceDisabled = {
|
|
88
|
+
disabledPrimary: {
|
|
89
|
+
elevation: 8,
|
|
90
|
+
errorInputBorderColor: 'errorBorderPrimary',
|
|
91
|
+
badgeAppearance: 'accent',
|
|
92
|
+
clearIconFill: 'surfaceItemDisabled',
|
|
93
|
+
dropdownIconFill: 'surfaceItemDisabled',
|
|
94
|
+
headingFill: 'surfaceSecondary',
|
|
95
|
+
headingTextColor: 'surfaceTextPrimary',
|
|
96
|
+
inputBorderColor: 'surfaceBorderTertiary',
|
|
97
|
+
inputBorderColorHover: 'surfaceBorderQuaternary',
|
|
98
|
+
inputCaretColor: 'secondaryItemPrimary',
|
|
99
|
+
inputFill: 'surfaceDisabled',
|
|
47
100
|
inputShape: 'rounded',
|
|
48
101
|
inputTextColor: 'surfaceTextPrimary',
|
|
49
|
-
multipleItemFill: '
|
|
102
|
+
multipleItemFill: 'accentPrimary',
|
|
50
103
|
multipleItemFillHover: 'surfaceHover',
|
|
104
|
+
multipleItemIconFill: 'accentItemPrimary',
|
|
105
|
+
multipleItemTextColor: 'accentTextPrimary',
|
|
51
106
|
multipleTextColor: 'accentTextPrimary',
|
|
52
|
-
noOptionsText: 'Ничего не найдено...',
|
|
53
107
|
noOptionsTextColor: 'surfaceTextPrimary',
|
|
108
|
+
optionBorder: 'none',
|
|
54
109
|
optionFill: 'surfacePrimary',
|
|
55
110
|
optionFillHover: 'surfaceSecondary',
|
|
111
|
+
optionShape: 'rounded',
|
|
56
112
|
optionTextColor: 'surfaceTextPrimary',
|
|
57
|
-
placeholder: 'Выбрать...',
|
|
58
113
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
114
|
+
requiredInputBorderColor: 'warningBorderPrimary',
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
var selectAppearanceError = {
|
|
119
|
+
errorPrimary: {
|
|
120
|
+
elevation: 8,
|
|
121
|
+
errorInputBorderColor: 'errorBorderPrimary',
|
|
122
|
+
badgeAppearance: 'accent',
|
|
123
|
+
clearIconFill: 'errorItemQuaternary',
|
|
124
|
+
dropdownIconFill: 'errorItemQuaternary',
|
|
125
|
+
headingFill: 'surfaceSecondary',
|
|
126
|
+
headingTextColor: 'surfaceTextPrimary',
|
|
127
|
+
inputBorderColor: 'surfaceBorderTertiary',
|
|
128
|
+
inputBorderColorHover: 'surfaceBorderQuaternary',
|
|
129
|
+
inputCaretColor: 'accentPrimary',
|
|
130
|
+
inputFill: 'errorTertiary',
|
|
131
|
+
inputShape: 'rounded',
|
|
132
|
+
inputTextColor: 'surfaceTextPrimary',
|
|
133
|
+
multipleItemFill: 'surfacePrimary',
|
|
134
|
+
multipleItemFillHover: 'surfaceHover',
|
|
135
|
+
multipleItemIconFill: 'surfaceItemPrimary',
|
|
136
|
+
multipleItemTextColor: 'surfaceTextPrimary',
|
|
137
|
+
multipleTextColor: 'accentTextPrimary',
|
|
138
|
+
noOptionsTextColor: 'surfaceTextPrimary',
|
|
139
|
+
optionBorder: 'none',
|
|
140
|
+
optionFill: 'surfacePrimary',
|
|
141
|
+
optionFillHover: 'surfaceSecondary',
|
|
142
|
+
optionShape: 'rounded',
|
|
143
|
+
optionTextColor: 'surfaceTextPrimary',
|
|
144
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
145
|
+
requiredInputBorderColor: 'warningBorderPrimary',
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
var selectAppearanceRequire = {
|
|
150
|
+
requirePrimary: {
|
|
151
|
+
elevation: 8,
|
|
152
|
+
errorInputBorderColor: 'errorBorderPrimary',
|
|
153
|
+
badgeAppearance: 'accent',
|
|
154
|
+
clearIconFill: 'warningItemSecondary',
|
|
155
|
+
dropdownIconFill: 'warningItemSecondary',
|
|
156
|
+
headingFill: 'surfaceSecondary',
|
|
157
|
+
headingTextColor: 'surfaceTextPrimary',
|
|
158
|
+
inputBorderColor: 'surfaceBorderTertiary',
|
|
159
|
+
inputBorderColorHover: 'surfaceBorderQuaternary',
|
|
160
|
+
inputCaretColor: 'secondaryItemPrimary',
|
|
161
|
+
inputFill: 'warningTertiary',
|
|
162
|
+
inputShape: 'rounded',
|
|
163
|
+
inputTextColor: 'surfaceTextPrimary',
|
|
164
|
+
multipleItemFill: 'surfacePrimary',
|
|
165
|
+
multipleItemFillHover: 'surfaceHover',
|
|
166
|
+
multipleItemIconFill: 'surfaceItemPrimary',
|
|
167
|
+
multipleItemTextColor: 'surfaceTextPrimary',
|
|
168
|
+
multipleTextColor: 'surfaceTextPrimary',
|
|
169
|
+
noOptionsTextColor: 'surfaceTextPrimary',
|
|
170
|
+
optionBorder: 'none',
|
|
171
|
+
optionFill: 'surfacePrimary',
|
|
172
|
+
optionFillHover: 'surfaceSecondary',
|
|
173
|
+
optionShape: 'rounded',
|
|
174
|
+
optionTextColor: 'surfaceTextPrimary',
|
|
175
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
176
|
+
requiredInputBorderColor: 'warningBorderPrimary',
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
var selectAppearanceShape = {
|
|
181
|
+
rounded: {
|
|
182
|
+
shape: 'rounded',
|
|
183
|
+
},
|
|
184
|
+
roundedS: {
|
|
185
|
+
shape: 'rounded',
|
|
186
|
+
shapeStrength: '0_5m',
|
|
187
|
+
},
|
|
188
|
+
roundedM: {
|
|
189
|
+
shape: 'rounded',
|
|
190
|
+
shapeStrength: '1m',
|
|
191
|
+
},
|
|
192
|
+
roundedL: {
|
|
193
|
+
shape: 'rounded',
|
|
194
|
+
shapeStrength: '1_5m',
|
|
195
|
+
},
|
|
196
|
+
roundedXL: {
|
|
197
|
+
shape: 'rounded',
|
|
198
|
+
shapeStrength: '2m',
|
|
59
199
|
},
|
|
60
200
|
};
|
|
61
201
|
|
|
62
202
|
var selectAppearanceSize = {
|
|
203
|
+
sizeXXL: {
|
|
204
|
+
size: 'xxl',
|
|
205
|
+
textLoadingMessageAppearance: 'sizeM',
|
|
206
|
+
badgeSize: 'm',
|
|
207
|
+
badgeTextSize: 'm',
|
|
208
|
+
clearIcon: icons24.Action.Clear,
|
|
209
|
+
dividerSize: 'xxs',
|
|
210
|
+
dropdownIcon: icons24.Arrow.ChevronDownSmall,
|
|
211
|
+
groupTextSize: 'm',
|
|
212
|
+
headingTextWeight: '600',
|
|
213
|
+
inputTextSize: 'm',
|
|
214
|
+
menuItemSize: 'l',
|
|
215
|
+
multipleItemIcon: icons16.Action.Close,
|
|
216
|
+
multipleItemTextSize: 's',
|
|
217
|
+
noOptionsTextSize: 's',
|
|
218
|
+
optionTextSize: 'm',
|
|
219
|
+
placeholderTextSize: 'm',
|
|
220
|
+
},
|
|
221
|
+
sizeXL: {
|
|
222
|
+
size: 'xl',
|
|
223
|
+
textLoadingMessageAppearance: 'sizeM',
|
|
224
|
+
badgeSize: 'm',
|
|
225
|
+
badgeTextSize: 'm',
|
|
226
|
+
clearIcon: icons24.Action.Clear,
|
|
227
|
+
dividerSize: 'xxs',
|
|
228
|
+
dropdownIcon: icons24.Arrow.ChevronDownSmall,
|
|
229
|
+
groupTextSize: 'm',
|
|
230
|
+
headingTextWeight: '600',
|
|
231
|
+
inputTextSize: 'm',
|
|
232
|
+
menuItemSize: 'l',
|
|
233
|
+
multipleItemIcon: icons16.Action.Close,
|
|
234
|
+
multipleItemTextSize: 's',
|
|
235
|
+
noOptionsTextSize: 'm',
|
|
236
|
+
optionTextSize: 'm',
|
|
237
|
+
placeholderTextSize: 'm',
|
|
238
|
+
},
|
|
63
239
|
sizeM: {
|
|
64
240
|
size: 'm',
|
|
241
|
+
textLoadingMessageAppearance: 'sizeM',
|
|
242
|
+
badgeSize: 'm',
|
|
243
|
+
badgeTextSize: 'm',
|
|
244
|
+
clearIcon: icons24.Action.Clear,
|
|
245
|
+
dividerSize: 'xxs',
|
|
246
|
+
dropdownIcon: icons24.Arrow.ChevronDownSmall,
|
|
247
|
+
groupTextSize: 'm',
|
|
65
248
|
inputTextSize: 'm',
|
|
66
|
-
|
|
249
|
+
loadingMessageTextSize: 'm',
|
|
250
|
+
menuItemSize: 'l',
|
|
251
|
+
multipleItemIcon: icons14.Action.Close,
|
|
252
|
+
multipleItemTextSize: 'xs ',
|
|
67
253
|
noOptionsTextSize: 'm',
|
|
254
|
+
optionSelectedIcon: icons14.Action.Close,
|
|
68
255
|
optionTextSize: 'm',
|
|
69
256
|
placeholderTextSize: 'm',
|
|
70
257
|
},
|
|
258
|
+
sizeS: {
|
|
259
|
+
size: 's',
|
|
260
|
+
textLoadingMessageAppearance: 'sizeS',
|
|
261
|
+
badgeSize: 'm',
|
|
262
|
+
badgeTextSize: 'm',
|
|
263
|
+
clearIcon: icons24.Action.Clear,
|
|
264
|
+
dividerSize: 'xxs',
|
|
265
|
+
dropdownIcon: icons24.Arrow.ChevronDownSmall,
|
|
266
|
+
groupTextSize: 'm',
|
|
267
|
+
headingTextWeight: '600',
|
|
268
|
+
inputTextSize: 's',
|
|
269
|
+
menuItemSize: 'l',
|
|
270
|
+
multipleItemIcon: icons14.Action.Close,
|
|
271
|
+
multipleItemTextSize: 'xs ',
|
|
272
|
+
noOptionsTextSize: 's',
|
|
273
|
+
optionTextSize: 's',
|
|
274
|
+
placeholderTextSize: 's',
|
|
275
|
+
},
|
|
276
|
+
sizeXS: {
|
|
277
|
+
size: 'xs',
|
|
278
|
+
textLoadingMessageAppearance: 'sizeXS',
|
|
279
|
+
badgeSize: 'm',
|
|
280
|
+
badgeTextSize: 'm',
|
|
281
|
+
clearIcon: icons16.Action.Clear,
|
|
282
|
+
dividerSize: 'xxs',
|
|
283
|
+
dropdownIcon: icons16.Arrow.ChevronDownSmall,
|
|
284
|
+
groupTextSize: 'm',
|
|
285
|
+
headingTextWeight: '600',
|
|
286
|
+
inputTextSize: 'xs ',
|
|
287
|
+
menuItemSize: 'l',
|
|
288
|
+
multipleItemIcon: icons12.Action.Close,
|
|
289
|
+
multipleItemTextSize: 'xxs',
|
|
290
|
+
noOptionsTextSize: 'xs',
|
|
291
|
+
optionTextSize: 'xs',
|
|
292
|
+
placeholderTextSize: 'xs',
|
|
293
|
+
},
|
|
294
|
+
sizeXXS: {
|
|
295
|
+
size: 'xxs',
|
|
296
|
+
textLoadingMessageAppearance: 'sizeXS',
|
|
297
|
+
badgeSize: 'm',
|
|
298
|
+
badgeTextSize: 'm',
|
|
299
|
+
clearIcon: icons16.Action.Clear,
|
|
300
|
+
dividerSize: 'xxs',
|
|
301
|
+
dropdownIcon: icons16.Arrow.ChevronDownSmall,
|
|
302
|
+
groupTextSize: 'm',
|
|
303
|
+
headingTextWeight: '600',
|
|
304
|
+
inputTextSize: 'xs',
|
|
305
|
+
menuItemSize: 'l',
|
|
306
|
+
multipleItemIcon: icons12.Action.Close,
|
|
307
|
+
multipleItemTextSize: 'xxs',
|
|
308
|
+
noOptionsTextSize: 'xs',
|
|
309
|
+
optionTextSize: 'xs',
|
|
310
|
+
placeholderTextSize: 'xs',
|
|
311
|
+
},
|
|
71
312
|
};
|
|
72
313
|
|
|
73
|
-
var
|
|
314
|
+
var selectAppearanceStyle = {
|
|
315
|
+
solid: {
|
|
316
|
+
inputBorderColor: 'none',
|
|
317
|
+
inputBorderColorHover: 'none',
|
|
318
|
+
},
|
|
319
|
+
outlined: {
|
|
320
|
+
fill: 'none',
|
|
321
|
+
},
|
|
322
|
+
full: {},
|
|
323
|
+
ghost: {
|
|
324
|
+
fill: 'none',
|
|
325
|
+
inputBorderColor: 'none',
|
|
326
|
+
inputBorderColorHover: 'none',
|
|
327
|
+
},
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
var selectAppearanceSuccess = {
|
|
331
|
+
successPrimary: {
|
|
332
|
+
elevation: 8,
|
|
333
|
+
errorInputBorderColor: 'errorBorderPrimary',
|
|
334
|
+
badgeAppearance: 'accent',
|
|
335
|
+
clearIconFill: 'successItemSecondary',
|
|
336
|
+
dropdownIconFill: 'successItemSecondary',
|
|
337
|
+
headingFill: 'surfaceSecondary',
|
|
338
|
+
headingTextColor: 'surfaceTextPrimary',
|
|
339
|
+
inputBorderColor: 'surfaceBorderTertiary',
|
|
340
|
+
inputBorderColorHover: 'surfaceBorderQuaternary',
|
|
341
|
+
inputCaretColor: 'secondaryItemPrimary',
|
|
342
|
+
inputFill: 'successTertiary',
|
|
343
|
+
inputShape: 'rounded',
|
|
344
|
+
inputTextColor: 'surfaceTextPrimary',
|
|
345
|
+
multipleItemFill: 'surfacePrimary',
|
|
346
|
+
multipleItemFillHover: 'surfaceHover',
|
|
347
|
+
multipleItemIconFill: 'surfaceItemPrimary',
|
|
348
|
+
multipleItemTextColor: 'surfaceTextPrimary',
|
|
349
|
+
multipleTextColor: 'surfaceTextPrimary',
|
|
350
|
+
noOptionsText: 'Ничего не найдено...',
|
|
351
|
+
noOptionsTextColor: 'surfaceTextPrimary',
|
|
352
|
+
optionBorder: 'none',
|
|
353
|
+
optionFill: 'surfacePrimary',
|
|
354
|
+
optionFillHover: 'surfaceSecondary',
|
|
355
|
+
optionShape: 'rounded',
|
|
356
|
+
optionTextColor: 'surfaceTextPrimary',
|
|
357
|
+
placeholder: 'Выбрать...',
|
|
358
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
359
|
+
requiredInputBorderColor: 'warningBorderPrimary',
|
|
360
|
+
},
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
var selectAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, selectAppearanceRequire), selectAppearanceDefault), selectAppearanceDisabled), selectAppearanceSuccess), selectAppearanceSize), selectAppearanceError), selectAppearanceShape), selectAppearanceStyle);
|
|
74
364
|
|
|
75
365
|
var SelectControl = function (props) {
|
|
76
|
-
var _a = props.selectProps, inputBorderColor = _a.inputBorderColor, inputBorderColorHover = _a.inputBorderColorHover, inputFill = _a.inputFill, inputShape = _a.inputShape, before = _a.before, after = _a.after;
|
|
77
|
-
return (jsxs(React.Fragment, { children: [before, jsx(components.Control, __assign({}, props, { className: clsx('select__control', inputFill, inputShape, inputBorderColor && "border-color_".concat(inputBorderColor), inputBorderColorHover &&
|
|
366
|
+
var _a = props.selectProps, inputBorderColor = _a.inputBorderColor, inputBorderColorHover = _a.inputBorderColorHover, inputFill = _a.inputFill, inputShape = _a.inputShape, inputShapeStrength = _a.inputShapeStrength, before = _a.before, after = _a.after;
|
|
367
|
+
return (jsxs(React.Fragment, { children: [before, jsx(components.Control, __assign({}, props, { className: clsx('select__control', inputFill && "fill_".concat(inputFill), inputShape && "shape_".concat(inputShape), inputShape && "shape_".concat(inputShape), inputShapeStrength && "shape-strength_".concat(inputShapeStrength), inputBorderColor && "border-color_".concat(inputBorderColor), inputBorderColorHover &&
|
|
78
368
|
"border-color_hover_".concat(inputBorderColorHover)) })), after] }));
|
|
79
369
|
};
|
|
80
370
|
|
|
@@ -87,8 +377,8 @@ var SelectDropdownIndicator = function (props) {
|
|
|
87
377
|
};
|
|
88
378
|
|
|
89
379
|
var SelectGroupHeading = function (props) {
|
|
90
|
-
var _a = props.selectProps,
|
|
91
|
-
return (jsx(components.GroupHeading, __assign({}, props, { className: clsx('select__menu-group-heading',
|
|
380
|
+
var _a = props.selectProps, groupFill = _a.groupFill, groupTextColor = _a.groupTextColor, groupTextSize = _a.groupTextSize, groupTextWeight = _a.groupTextWeight;
|
|
381
|
+
return (jsx(components.GroupHeading, __assign({}, props, { className: clsx('select__menu-group-heading', groupFill && "fill_".concat(groupFill)), children: jsx(Text, { size: groupTextSize, textColor: groupTextColor, textWeight: groupTextWeight, children: props.data.label }) })));
|
|
92
382
|
};
|
|
93
383
|
|
|
94
384
|
var SelectIndicatorsContainer = function (props) {
|
|
@@ -107,21 +397,18 @@ var SelectInput = function (props) {
|
|
|
107
397
|
};
|
|
108
398
|
|
|
109
399
|
var SelectLoadingIndicator = function (props) {
|
|
110
|
-
var
|
|
111
|
-
|
|
112
|
-
// <components.LoadingIndicator {...props}>
|
|
113
|
-
// </components.LoadingIndicator>
|
|
114
|
-
return loadingIndicator;
|
|
400
|
+
var _a = props.selectProps, loaderAppearance = _a.loaderAppearance, isLoading = _a.isLoading;
|
|
401
|
+
return isLoading && jsx(Loader, { appearance: loaderAppearance });
|
|
115
402
|
};
|
|
116
403
|
|
|
117
404
|
var SelectMenu = function (props) {
|
|
118
|
-
var _a = props.selectProps, elevation = _a.elevation, menuAfter = _a.menuAfter, menuBefore = _a.menuBefore;
|
|
119
|
-
return (jsxs(components.Menu, __assign({}, props, { className: clsx(elevation && "elevation_".concat(elevation)), children: [menuBefore, props.selectProps.fetchingData ? (jsx("span", { className: "fetching", children: "Fetching data..." })) : (jsx(React.Fragment, { children: props.children })), menuAfter] })));
|
|
405
|
+
var _a = props.selectProps, elevation = _a.elevation, menuAfter = _a.menuAfter, menuBefore = _a.menuBefore, menuFill = _a.menuFill, menuShape = _a.menuShape, menuShapeStrength = _a.menuShapeStrength;
|
|
406
|
+
return (jsxs(components.Menu, __assign({}, props, { className: clsx(menuFill && "fill_".concat(menuFill), menuShape && "shape_".concat(menuShape), menuShapeStrength && "shape-strength_".concat(menuShapeStrength), elevation && "elevation_".concat(elevation)), children: [menuBefore, props.selectProps.fetchingData ? (jsx("span", { className: "fetching", children: "Fetching data..." })) : (jsx(React.Fragment, { children: props.children })), menuAfter] })));
|
|
120
407
|
};
|
|
121
408
|
|
|
122
409
|
var SelectMultiValueContainer = function (props) {
|
|
123
410
|
var _a = props.selectProps, multipleItemFill = _a.multipleItemFill, multipleItemFillHover = _a.multipleItemFillHover;
|
|
124
|
-
return (jsx(components.MultiValueContainer, __assign({}, props, { children: jsx(Group, { className:
|
|
411
|
+
return (jsx(components.MultiValueContainer, __assign({}, props, { children: jsx(Group, { className: clsx('select__multi-value-item'), direction: "horizontal", alignItems: "center", fill: multipleItemFill, fillHover: multipleItemFillHover, gap: "0.5m", children: props.children }) })));
|
|
125
412
|
};
|
|
126
413
|
|
|
127
414
|
var SelectMultiValueLabel = function (props) {
|
|
@@ -135,16 +422,30 @@ var SelectMultiValueRemove = function (props) {
|
|
|
135
422
|
};
|
|
136
423
|
|
|
137
424
|
var SelectNoOptions = function (props) {
|
|
138
|
-
var _a = props.selectProps, inputValue = _a.inputValue, noOptionsSearchText = _a.noOptionsSearchText, noOptionsText = _a.noOptionsText, noOptionsTextColor = _a.noOptionsTextColor, noOptionsTextSize = _a.noOptionsTextSize,
|
|
139
|
-
return (jsx(components.NoOptionsMessage, __assign({}, props, { className: clsx(optionFill,
|
|
140
|
-
|
|
141
|
-
|
|
425
|
+
var _a = props.selectProps, inputValue = _a.inputValue, noOptionsSearchText = _a.noOptionsSearchText, noOptionsText = _a.noOptionsText, noOptionsTextColor = _a.noOptionsTextColor, noOptionsTextSize = _a.noOptionsTextSize, optionFill = _a.optionFill;
|
|
426
|
+
return (jsx(components.NoOptionsMessage, __assign({}, props, { className: clsx(optionFill && "fill_".concat(optionFill)), children: jsx(Group, { textAlign: "center", children: jsx(Text, { size: noOptionsTextSize, textColor: noOptionsTextColor, children: inputValue && noOptionsSearchText
|
|
427
|
+
? noOptionsSearchText
|
|
428
|
+
: noOptionsText }) }) })));
|
|
142
429
|
};
|
|
143
430
|
|
|
144
431
|
var SelectOption = function (props) {
|
|
145
432
|
var label = props.label, isSelected = props.isSelected;
|
|
146
|
-
var _a = props.selectProps, dividerDirection = _a.dividerDirection, dividerFill = _a.dividerFill, dividerSize = _a.dividerSize, menuItemSize = _a.menuItemSize, optionAfter = _a.optionAfter, optionBefore = _a.optionBefore, optionBorder = _a.optionBorder, optionBorderType = _a.optionBorderType, optionFill = _a.optionFill, optionFillHover = _a.optionFillHover,
|
|
147
|
-
return (jsxs(components.Option, __assign({}, props, { className: clsx('select__menu-list-item', isSelected
|
|
433
|
+
var _a = props.selectProps, optionFillActiveDisabled = _a.optionFillActiveDisabled, optionFillDisabled = _a.optionFillDisabled, optionTextColorDisabled = _a.optionTextColorDisabled, dividerDirection = _a.dividerDirection, dividerFill = _a.dividerFill, dividerSize = _a.dividerSize, menuItemSize = _a.menuItemSize, optionAfter = _a.optionAfter, optionBefore = _a.optionBefore, optionBorder = _a.optionBorder, optionBorderType = _a.optionBorderType, optionFill = _a.optionFill, optionFillActive = _a.optionFillActive, optionFillActiveHover = _a.optionFillActiveHover, optionFillHover = _a.optionFillHover, optionSelectedIcon = _a.optionSelectedIcon, optionSelectedIconFillIcon = _a.optionSelectedIconFillIcon, optionSelectedIconSize = _a.optionSelectedIconSize, optionSelectedIconSrc = _a.optionSelectedIconSrc, optionShape = _a.optionShape, optionShapeStrength = _a.optionShapeStrength, optionTextColor = _a.optionTextColor, optionTextColorActive = _a.optionTextColorActive, optionTextSize = _a.optionTextSize, showDivider = _a.showDivider;
|
|
434
|
+
return (jsxs(components.Option, __assign({}, props, { className: clsx('select__menu-list-item', isSelected || props.isSelected
|
|
435
|
+
? !props.isDisabled
|
|
436
|
+
? optionFillActive && "fill_active_".concat(optionFillActive)
|
|
437
|
+
: optionFillActiveDisabled &&
|
|
438
|
+
"fill_active_disabled_".concat(optionFillActiveDisabled)
|
|
439
|
+
: !props.isDisabled
|
|
440
|
+
? optionFill && "fill_".concat(optionFill)
|
|
441
|
+
: optionFillDisabled && "fill_".concat(optionFillDisabled), (isSelected || props.isSelected) &&
|
|
442
|
+
!props.isDisabled &&
|
|
443
|
+
optionFillActiveHover &&
|
|
444
|
+
"fill_active_hover_".concat(optionFillActiveHover), !isSelected &&
|
|
445
|
+
!props.isSelected &&
|
|
446
|
+
!props.isDisabled &&
|
|
447
|
+
optionFillHover &&
|
|
448
|
+
"fill_hover_".concat(optionFillHover), isSelected && 'select__menu-list-item_state_selected', menuItemSize && "select__menu-list-item_size_".concat(menuItemSize), optionBorder && "border-color_".concat(optionBorder), optionBorderType && "border_type_".concat(optionBorderType), optionShape && "shape_".concat(optionShape), optionShapeStrength && "shape-strength_".concat(optionShapeStrength)), children: [optionBefore, jsx(Text, { className: "select__menu-list-item_option", size: optionTextSize, textColor: optionTextColor, textColorActive: optionTextColorActive, textColorDisabled: optionTextColorDisabled, isDisabled: props.isDisabled, isActive: props.isSelected || isSelected, children: label }), (isSelected || props.isSelected) && (jsx("div", { className: "select__menu-list-item_selected", children: jsx(Icon, { iconFill: optionSelectedIconFillIcon, iconSize: optionSelectedIconSize, imageSrc: optionSelectedIconSrc, SvgImage: optionSelectedIcon }) })), optionAfter, showDivider && (jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill }))] })));
|
|
148
449
|
};
|
|
149
450
|
|
|
150
451
|
var SelectPlaceholder = function (props) {
|
|
@@ -170,11 +471,9 @@ var selectConfig = {
|
|
|
170
471
|
},
|
|
171
472
|
};
|
|
172
473
|
var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
173
|
-
var className = props.className, _a = props.appearance, appearance = _a === void 0 ? '' : _a, width = props.width, minWidth = props.minWidth, initialValue = props.initialValue, isDisabled = props.isDisabled, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize,
|
|
474
|
+
var className = props.className, _a = props.appearance, appearance = _a === void 0 ? '' : _a, width = props.width, minWidth = props.minWidth, initialValue = props.initialValue, isDisabled = props.isDisabled, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize, defaultValue = props.defaultValue, dividerDirection = props.dividerDirection, filterOption = props.filterOption, hideSelectedOptions = props.hideSelectedOptions, hideValueContainer = props.hideValueContainer, inputAfter = props.inputAfter, inputBefore = props.inputBefore, instanceId = props.instanceId, loaderAppearance = props.loaderAppearance, loadingMessageText = props.loadingMessageText, menuAfter = props.menuAfter, menuBefore = props.menuBefore, menuIsOpen = props.menuIsOpen, menuItemSize = props.menuItemSize, noOptionsSearchText = props.noOptionsSearchText, noOptionsText = props.noOptionsText, optionAfter = props.optionAfter, optionBefore = props.optionBefore, options = props.options, placeholder = props.placeholder, set = props.set, showBadge = props.showBadge, showDivider = props.showDivider, value = props.value, before = props.before, after = props.after, openMenuOnClick = props.openMenuOnClick, closeMenuOnSelect = props.closeMenuOnSelect, isClearable = props.isClearable, isCreatable = props.isCreatable, isLoading = props.isLoading, isMulti = props.isMulti, isSearchable = props.isSearchable, onChange = props.onChange, onInputChange = props.onInputChange;
|
|
174
475
|
var defaultRef = useRef(null);
|
|
175
476
|
var selectRef = ref || defaultRef;
|
|
176
|
-
// React-select wait function as "loadingMessage" property
|
|
177
|
-
var getLoadingMessage = useCallback(function () { return loadingMessage; }, [loadingMessage]);
|
|
178
477
|
var SelectComponent = isCreatable
|
|
179
478
|
? CreatableSelect
|
|
180
479
|
: Select;
|
|
@@ -222,8 +521,8 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
222
521
|
}, [minWidth, width]);
|
|
223
522
|
var appearanceConfig = useAppearanceConfig(appearance, selectConfig);
|
|
224
523
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
225
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, elevation = propsGenerator.elevation, badgeTextSize = propsGenerator.badgeTextSize, clearIconFill = propsGenerator.clearIconFill, dividerFill = propsGenerator.dividerFill, dropdownFillHover = propsGenerator.dropdownFillHover,
|
|
226
|
-
return (jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass),
|
|
524
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, elevation = propsGenerator.elevation, optionFillActiveDisabledClass = propsGenerator.optionFillActiveDisabledClass, optionFillDisabledClass = propsGenerator.optionFillDisabledClass, optionTextColorDisabled = propsGenerator.optionTextColorDisabled, badgeTextSize = propsGenerator.badgeTextSize, clearIcon = propsGenerator.clearIcon, clearIconFill = propsGenerator.clearIconFill, dividerFill = propsGenerator.dividerFill, dividerSize = propsGenerator.dividerSize, dropdownFillHover = propsGenerator.dropdownFillHover, dropdownIcon = propsGenerator.dropdownIcon, dropdownIconFill = propsGenerator.dropdownIconFill, dropdownIconShape = propsGenerator.dropdownIconShape, groupFillClass = propsGenerator.groupFillClass, groupTextColorClass = propsGenerator.groupTextColorClass, groupTextSizeClass = propsGenerator.groupTextSizeClass, groupTextWeightClass = propsGenerator.groupTextWeightClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, inputBorderColorHoverClass = propsGenerator.inputBorderColorHoverClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputFillClass = propsGenerator.inputFillClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, loadingMessageTextColor = propsGenerator.loadingMessageTextColor, loadingMessageTextSize = propsGenerator.loadingMessageTextSize, menuFillClass = propsGenerator.menuFillClass, multipleItemFill = propsGenerator.multipleItemFill, multipleItemFillHover = propsGenerator.multipleItemFillHover, multipleItemIcon = propsGenerator.multipleItemIcon, multipleItemIconFill = propsGenerator.multipleItemIconFill, multipleItemTextColorClass = propsGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = propsGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = propsGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = propsGenerator.noOptionsTextSizeClass, optionBorderClass = propsGenerator.optionBorderClass, optionBorderTypeClass = propsGenerator.optionBorderTypeClass, optionFillActiveClass = propsGenerator.optionFillActiveClass, optionFillActiveHoverClass = propsGenerator.optionFillActiveHoverClass, optionFillClass = propsGenerator.optionFillClass, optionFillHoverClass = propsGenerator.optionFillHoverClass, optionSelectedIcon = propsGenerator.optionSelectedIcon, optionSelectedIconFillIcon = propsGenerator.optionSelectedIconFillIcon, optionSelectedIconSize = propsGenerator.optionSelectedIconSize, optionSelectedIconSrc = propsGenerator.optionSelectedIconSrc, optionTextColorActiveClass = propsGenerator.optionTextColorActiveClass, optionTextColorClass = propsGenerator.optionTextColorClass, optionTextSizeClass = propsGenerator.optionTextSizeClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
525
|
+
return (jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set), widthClass && "select_width_".concat(widthClass)), ref: selectRef, elevation: elevation, isDisabled: isDisabled, optionFillActiveDisabledClass: optionFillActiveDisabledClass, optionFillDisabled: optionFillDisabledClass, optionTextColorDisabled: optionTextColorDisabled, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, components: {
|
|
227
526
|
IndicatorSeparator: function () { return null; },
|
|
228
527
|
ClearIndicator: SelectClearIndicator,
|
|
229
528
|
Control: SelectControl,
|
|
@@ -232,6 +531,7 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
232
531
|
IndicatorsContainer: SelectIndicatorsContainer,
|
|
233
532
|
Input: SelectInput,
|
|
234
533
|
LoadingIndicator: SelectLoadingIndicator,
|
|
534
|
+
LoadingMessage: SelectLoadingMessage,
|
|
235
535
|
Menu: SelectMenu,
|
|
236
536
|
MultiValueContainer: SelectMultiValueContainer,
|
|
237
537
|
MultiValueLabel: SelectMultiValueLabel,
|
|
@@ -241,15 +541,7 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
241
541
|
Placeholder: SelectPlaceholder,
|
|
242
542
|
SingleValue: SelectSingleValue,
|
|
243
543
|
ValueContainer: SelectValueContainer,
|
|
244
|
-
}, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, filterOption: filterOption,
|
|
245
|
-
// headingFill={headingFillClass as FillProps}
|
|
246
|
-
headingFill: headingFillClass && "fill_".concat(headingFillClass), headingFillHover: headingFillHoverClass && "fill_hover_".concat(headingFillHoverClass), headingTextColor: headingTextColorClass, headingTextSize: headingTextSizeClass, headingTextWeight: headingTextWeightClass, hideSelectedOptions: hideSelectedOptions, inputAfter: inputAfter, inputBefore: inputBefore, inputBorderColor: inputBorderColorClass, inputBorderColorHover: inputBorderColorHoverClass, inputCaretColor: inputCaretColorClass, inputFill: inputFillClass && "select__control_fill_".concat(inputFillClass), inputShape: inputShapeClass && "select__control_shape_".concat(inputShapeClass), inputTextColor: inputTextColorClass, inputTextSize: inputTextSizeClass, instanceId: instanceId,
|
|
247
|
-
// @ts-expect-error
|
|
248
|
-
loadingMessage: getLoadingMessage, menuAfter: menuAfter, menuBefore: menuBefore, menuIsOpen: menuIsOpen, menuItemSize: menuItemSize, multipleItemFill: multipleItemFill, multipleItemFillHover: multipleItemFillHover, multipleItemIcon: multipleItemIcon, multipleItemIconFill: multipleItemIconFill, multipleItemTextColor: multipleItemTextColorClass, multipleItemTextSize: multipleItemTextSizeClass, noOptionBorder: optionBorderClass && "border-color_".concat(optionBorderClass), noOptionBorderType: optionBorderTypeClass && "border_type_".concat(optionBorderTypeClass), noOptionsFill: optionFillClass && "fill_".concat(optionFillClass), noOptionsSearchText: noOptionsSearchText, noOptionsText: noOptionsText || appearanceConfig.noOptionsText, noOptionsTextColor: noOptionsTextColorClass, noOptionsTextSize: noOptionsTextSizeClass, optionAfter: optionAfter, optionBefore: optionBefore,
|
|
249
|
-
// optionBorder={optionBorderClass as BorderColorProps}
|
|
250
|
-
optionBorder: optionBorderClass && "border-color_".concat(optionBorderClass),
|
|
251
|
-
// optionBorderType={optionBorderTypeClass as BorderTypeProps}
|
|
252
|
-
optionBorderType: optionBorderTypeClass && "border_type_".concat(optionBorderTypeClass), optionFill: optionFillClass && "fill_".concat(optionFillClass), optionFillHover: optionFillHoverClass && "fill_hover_".concat(optionFillHoverClass), options: options, optionSelected: optionSelected, optionShape: optionShapeClass, optionTextColor: optionTextColorClass, optionTextSize: optionTextSizeClass, placeholder: placeholder || appearanceConfig.placeholder, placeholderTextColor: placeholderTextColor || appearanceConfig.placeholderTextColor, placeholderTextSize: placeholderTextSize || appearanceConfig.placeholderTextSize, ref: selectRef, showBadge: showBadge, showDivider: showDivider, styles: clearStyle, value: value, before: before, after: after, openMenuOnClick: openMenuOnClick, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !== void 0 ? closeMenuOnSelect : false, isClearable: isClearable, isLoading: isLoading, isMulti: isMulti, isSearchable: isSearchable, set: set, onChange: onChange, onInputChange: onInputChange }));
|
|
544
|
+
}, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, filterOption: filterOption, groupFill: groupFillClass, groupTextColor: groupTextColorClass, groupTextSize: groupTextSizeClass, groupTextWeight: groupTextWeightClass, hideSelectedOptions: hideSelectedOptions, inputAfter: inputAfter, inputBefore: inputBefore, inputBorderColor: inputBorderColorClass, inputBorderColorHover: inputBorderColorHoverClass, inputCaretColor: inputCaretColorClass, inputFill: inputFillClass, inputShape: shapeClass, inputShapeStrength: shapeStrengthClass, inputTextColor: inputTextColorClass, inputTextSize: inputTextSizeClass, instanceId: instanceId, loaderAppearance: loaderAppearance, loadingMessageText: loadingMessageText, loadingMessageTextColor: loadingMessageTextColor, loadingMessageTextSize: loadingMessageTextSize, menuAfter: menuAfter, menuBefore: menuBefore, menuFill: menuFillClass, menuIsOpen: menuIsOpen, menuItemSize: menuItemSize, menuShape: shapeClass, menuShapeStrength: shapeStrengthClass, multipleItemFill: multipleItemFill, multipleItemFillHover: multipleItemFillHover, multipleItemIcon: multipleItemIcon, multipleItemIconFill: multipleItemIconFill, multipleItemSize: sizeClass, multipleItemTextColor: multipleItemTextColorClass, multipleItemTextSize: multipleItemTextSizeClass, noOptionBorder: optionBorderClass && "border-color_".concat(optionBorderClass), noOptionBorderType: optionBorderTypeClass && "border_type_".concat(optionBorderTypeClass), noOptionsFill: optionFillClass && "fill_".concat(optionFillClass), noOptionsSearchText: noOptionsSearchText, noOptionsText: noOptionsText, noOptionsTextColor: noOptionsTextColorClass, noOptionsTextSize: noOptionsTextSizeClass, optionAfter: optionAfter, optionBefore: optionBefore, optionBorder: optionBorderClass, optionBorderType: optionBorderTypeClass, optionFill: optionFillClass, optionFillActive: optionFillActiveClass, optionFillActiveHover: optionFillActiveHoverClass, optionFillHover: optionFillHoverClass, options: options, optionSelectedIcon: optionSelectedIcon, optionSelectedIconFillIcon: optionSelectedIconFillIcon, optionSelectedIconSize: optionSelectedIconSize, optionSelectedIconSrc: optionSelectedIconSrc, optionShape: shapeClass, optionShapeStrength: shapeStrengthClass, optionTextColor: optionTextColorClass, optionTextColorActive: optionTextColorActiveClass, optionTextSize: optionTextSizeClass, placeholder: placeholder, placeholderTextColor: placeholderTextColor, placeholderTextSize: placeholderTextSize, set: set, showBadge: showBadge, showDivider: showDivider, styles: clearStyle, value: value, before: before, after: after, openMenuOnClick: openMenuOnClick, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !== void 0 ? closeMenuOnSelect : false, isClearable: isClearable, isLoading: isLoading, isMulti: isMulti, isSearchable: isSearchable, onChange: onChange, onInputChange: onInputChange }));
|
|
253
545
|
});
|
|
254
546
|
|
|
255
547
|
export { SelectContainer as Select, SelectClearIndicator, SelectControl, SelectDropdownIndicator, SelectGroupHeading, SelectIndicatorsContainer, SelectInput, SelectMenu, SelectMultiValueContainer, SelectMultiValueLabel, SelectMultiValueRemove, SelectOption, SelectPlaceholder, SelectSingleValue, SelectValueContainer, selectConfig };
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { b as Title } from '../
|
|
7
|
+
import { b as Title } from '../Icon_es_MOmiy9nF.js';
|
|
8
8
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -23,7 +23,7 @@ import '../hoc/urlWithAssetPrefix.js';
|
|
|
23
23
|
import '../context/UrlAssetPrefix.js';
|
|
24
24
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
25
25
|
import '../Link_es_BnUIX0QT.js';
|
|
26
|
-
import '../
|
|
26
|
+
import '../Text_es_DIU5ySvf.js';
|
|
27
27
|
|
|
28
28
|
function Swiper(props) {
|
|
29
29
|
var id = props.id, className = props.className, direction = props.direction, title = props.title, titleAfter = props.titleAfter, titleSize = props.titleSize, titleTextColor = props.titleTextColor, titleWeight = props.titleWeight, setNextBtnDisabled = props.setNextBtnDisabled, setPrevBtnDisabled = props.setPrevBtnDisabled, _a = props.activeSlideIndex, activeSlideIndex = _a === void 0 ? 0 : _a, allowTouchMove = props.allowTouchMove, autoHeight = props.autoHeight, breakpoints = props.breakpoints, forwardedRef = props.forwardedRef, // https://github.com/vercel/next.js/issues/4957
|
|
@@ -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 '../
|
|
6
|
+
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
7
7
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
package/dist/components/Tab.js
CHANGED
|
@@ -4,10 +4,10 @@ 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 { B as Badge, I as Icon } from '../
|
|
7
|
+
import { B as Badge, I as Icon } from '../Icon_es_MOmiy9nF.js';
|
|
8
8
|
import { D as Divider } from '../Divider_es_CiRU0sTz.js';
|
|
9
9
|
import { L as Link } from '../Link_es_BnUIX0QT.js';
|
|
10
|
-
import { T as Text } from '../
|
|
10
|
+
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
11
11
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import 'lodash/castArray';
|
|
@@ -211,7 +211,7 @@ function Tab(props) {
|
|
|
211
211
|
? borderColorHoverClass &&
|
|
212
212
|
"border-color_hover_".concat(borderColorHoverClass)
|
|
213
213
|
: borderColorActiveHoverClass &&
|
|
214
|
-
"border-color_active_hover_".concat(borderColorActiveHoverClass), sizeClass && "tab_size_".concat(sizeClass), shapeClass && "tab_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), isSkeleton && "tab_skeleton", onClick && 'cursor_type_pointer'), dataTour: dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: "tab__wrapper", 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, isDisabled: isDisabled, isActive: isActive, children: label })), badgeValue && (jsx(Badge, { appearance: badgeAppearance, 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, { width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isDisabled: isDisabled, isActive: isActive })] })), after] }) }));
|
|
214
|
+
"border-color_active_hover_".concat(borderColorActiveHoverClass), sizeClass && "tab_size_".concat(sizeClass), shapeClass && "tab_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), isSkeleton && "tab_skeleton", onClick && 'cursor_type_pointer'), dataTour: dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: "tab__wrapper", 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, isDisabled: isDisabled, isActive: isActive, children: label })), Boolean(badgeValue) && (jsx(Badge, { appearance: badgeAppearance, 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, { width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isDisabled: isDisabled, isActive: isActive })] })), after] }) }));
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
function TabGroup(props) {
|
package/dist/components/Text.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Text, a as textAppearance, t as textConfig } from '../
|
|
1
|
+
export { T as Text, a as textAppearance, t as textConfig } from '../Text_es_DIU5ySvf.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
package/dist/components/Tile.js
CHANGED
|
@@ -3,8 +3,8 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { b as Title, B as Badge, I as Icon } from '../
|
|
7
|
-
import { T as Text } from '../
|
|
6
|
+
import { b as Title, B as Badge, I as Icon } from '../Icon_es_MOmiy9nF.js';
|
|
7
|
+
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
package/dist/components/Title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as Title, d as titleAppearance, c as titleConfig } from '../
|
|
1
|
+
export { b as Title, d as titleAppearance, c as titleConfig } from '../Icon_es_MOmiy9nF.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -22,4 +22,4 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
22
22
|
import 'lodash/maxBy';
|
|
23
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
24
24
|
import '../Link_es_BnUIX0QT.js';
|
|
25
|
-
import '../
|
|
25
|
+
import '../Text_es_DIU5ySvf.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Icon_es_MOmiy9nF.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -22,4 +22,4 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
22
22
|
import 'lodash/maxBy';
|
|
23
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
24
24
|
import '../Link_es_BnUIX0QT.js';
|
|
25
|
-
import '../
|
|
25
|
+
import '../Text_es_DIU5ySvf.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, Fragment } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from '../
|
|
5
|
-
import { T as Text } from '../
|
|
4
|
+
import { I as Icon } from '../Icon_es_MOmiy9nF.js';
|
|
5
|
+
import { T as Text } from '../Text_es_DIU5ySvf.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';
|