@salutejs/plasma-new-hope 0.174.0-canary.1505.11503860288.0 → 0.174.0-canary.1505.11515852860.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +15 -21
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +1 -7
- package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +1 -1
- package/cjs/components/Select/Select.js +2 -10
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/utils/getButtonLabel.js +2 -2
- package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
- package/cjs/components/Select/utils/getInitialValue.js +1 -7
- package/cjs/components/Select/utils/getInitialValue.js.map +1 -1
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +14 -20
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +1 -7
- package/emotion/cjs/components/Select/Select.js +2 -10
- package/emotion/cjs/components/Select/utils/getButtonLabel.js +2 -2
- package/emotion/cjs/components/Select/utils/getInitialValue.js +1 -7
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +6 -0
- package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +6 -0
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +14 -20
- package/emotion/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +1 -7
- package/emotion/es/components/Select/Select.js +2 -10
- package/emotion/es/components/Select/utils/getButtonLabel.js +2 -2
- package/emotion/es/components/Select/utils/getInitialValue.js +1 -7
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +6 -0
- package/emotion/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +6 -0
- package/es/components/Combobox/ComboboxNew/Combobox.js +15 -21
- package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +1 -7
- package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +1 -1
- package/es/components/Select/Select.js +2 -10
- package/es/components/Select/Select.js.map +1 -1
- package/es/components/Select/utils/getButtonLabel.js +2 -2
- package/es/components/Select/utils/getButtonLabel.js.map +1 -1
- package/es/components/Select/utils/getInitialValue.js +1 -7
- package/es/components/Select/utils/getInitialValue.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +14 -20
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +1 -7
- package/styled-components/cjs/components/Select/Select.js +2 -10
- package/styled-components/cjs/components/Select/utils/getButtonLabel.js +2 -2
- package/styled-components/cjs/components/Select/utils/getInitialValue.js +1 -7
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +6 -0
- package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +6 -0
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +14 -20
- package/styled-components/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +1 -7
- package/styled-components/es/components/Select/Select.js +2 -10
- package/styled-components/es/components/Select/utils/getButtonLabel.js +2 -2
- package/styled-components/es/components/Select/utils/getInitialValue.js +1 -7
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +6 -0
- package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +6 -0
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +7 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/getInitialValue.d.ts.map +1 -1
- package/types/components/Select/Select.d.ts.map +1 -1
- package/types/components/Select/utils/getInitialValue.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +18 -6
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +18 -6
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
@@ -11,13 +11,7 @@ var getInitialValue = exports.getInitialValue = function getInitialValue(outerVa
|
|
11
11
|
if (outerValue.length === 0) {
|
12
12
|
return [];
|
13
13
|
}
|
14
|
-
|
15
|
-
outerValue.forEach(function (value) {
|
16
|
-
if (valueToItemMap.has(value)) {
|
17
|
-
updatedValue.push(value);
|
18
|
-
}
|
19
|
-
});
|
20
|
-
return updatedValue;
|
14
|
+
return outerValue.filter(valueToItemMap.has.bind(valueToItemMap));
|
21
15
|
}
|
22
16
|
if (valueToItemMap.has(outerValue)) {
|
23
17
|
return outerValue;
|
@@ -68,6 +68,10 @@ const meta: Meta<StorySelectProps> = {
|
|
68
68
|
control: { type: 'boolean' },
|
69
69
|
if: { arg: 'alwaysOpened', truthy: false },
|
70
70
|
},
|
71
|
+
targetAmount: {
|
72
|
+
control: { type: 'number' },
|
73
|
+
if: { arg: 'isTargetAmount', truthy: true },
|
74
|
+
},
|
71
75
|
},
|
72
76
|
args: {
|
73
77
|
label: 'Label',
|
@@ -78,6 +82,7 @@ const meta: Meta<StorySelectProps> = {
|
|
78
82
|
view: 'default',
|
79
83
|
enableContentLeft: false,
|
80
84
|
isTargetAmount: false,
|
85
|
+
targetAmount: undefined,
|
81
86
|
variant: 'normal',
|
82
87
|
alwaysOpened: false,
|
83
88
|
disabled: false,
|
@@ -94,6 +99,7 @@ const meta: Meta<StorySelectProps> = {
|
|
94
99
|
'placeholder',
|
95
100
|
'helperText',
|
96
101
|
'isTargetAmount',
|
102
|
+
'targetAmount',
|
97
103
|
'closeAfterSelect',
|
98
104
|
'alwaysOpened',
|
99
105
|
'variant',
|
@@ -68,6 +68,10 @@ const meta: Meta<StorySelectProps> = {
|
|
68
68
|
control: { type: 'boolean' },
|
69
69
|
if: { arg: 'alwaysOpened', truthy: false },
|
70
70
|
},
|
71
|
+
targetAmount: {
|
72
|
+
control: { type: 'number' },
|
73
|
+
if: { arg: 'isTargetAmount', truthy: true },
|
74
|
+
},
|
71
75
|
},
|
72
76
|
args: {
|
73
77
|
label: 'Label',
|
@@ -78,6 +82,7 @@ const meta: Meta<StorySelectProps> = {
|
|
78
82
|
view: 'default',
|
79
83
|
enableContentLeft: false,
|
80
84
|
isTargetAmount: false,
|
85
|
+
targetAmount: undefined,
|
81
86
|
variant: 'normal',
|
82
87
|
alwaysOpened: false,
|
83
88
|
disabled: false,
|
@@ -94,6 +99,7 @@ const meta: Meta<StorySelectProps> = {
|
|
94
99
|
'placeholder',
|
95
100
|
'helperText',
|
96
101
|
'isTargetAmount',
|
102
|
+
'targetAmount',
|
97
103
|
'closeAfterSelect',
|
98
104
|
'alwaysOpened',
|
99
105
|
'variant',
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
|
1
|
+
var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
@@ -35,6 +35,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
35
35
|
outerValue = props.value,
|
36
36
|
outerOnChange = props.onChange,
|
37
37
|
isTargetAmount = props.isTargetAmount,
|
38
|
+
targetAmount = props.targetAmount,
|
38
39
|
items = props.items,
|
39
40
|
_props$placement = props.placement,
|
40
41
|
placement = _props$placement === void 0 ? 'bottom-start' : _props$placement,
|
@@ -64,9 +65,13 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
64
65
|
outerCloseAfterSelect = props.closeAfterSelect,
|
65
66
|
renderValue = props.renderValue,
|
66
67
|
rest = _objectWithoutProperties(props, _excluded);
|
68
|
+
var transformedItems = useMemo(function () {
|
69
|
+
return initialItemsTransform(items || []);
|
70
|
+
}, [items]);
|
71
|
+
|
67
72
|
// Создаем структуры для быстрой работы с деревом
|
68
73
|
var _useMemo = useMemo(function () {
|
69
|
-
return getTreeMaps(
|
74
|
+
return getTreeMaps(transformedItems);
|
70
75
|
}, [items]),
|
71
76
|
_useMemo2 = _slicedToArray(_useMemo, 3),
|
72
77
|
valueToCheckedMap = _useMemo2[0],
|
@@ -85,9 +90,6 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
85
90
|
var floatingPopoverRef = useRef(null);
|
86
91
|
var inputForkRef = useForkRef(inputRef, ref);
|
87
92
|
var treeId = safeUseId();
|
88
|
-
var transformedItems = useMemo(function () {
|
89
|
-
return initialItemsTransform(items || []);
|
90
|
-
}, [items]);
|
91
93
|
var filteredItems = filterItems(transformedItems, textValue, (_valueToItemMap$get2 = valueToItemMap.get(value)) === null || _valueToItemMap$get2 === void 0 ? void 0 : _valueToItemMap$get2.label, filter);
|
92
94
|
var _useMemo3 = useMemo(function () {
|
93
95
|
return getPathMap(filteredItems);
|
@@ -254,16 +256,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
254
256
|
if (e) {
|
255
257
|
e.stopPropagation();
|
256
258
|
}
|
257
|
-
var
|
258
|
-
var isCurrentChecked = checkedCopy.get(item.value);
|
259
|
-
checkedCopy.forEach(function (_, key) {
|
260
|
-
checkedCopy.set(key, false);
|
261
|
-
});
|
262
|
-
if (!isCurrentChecked) {
|
263
|
-
checkedCopy.set(item.value, 'done');
|
264
|
-
updateSingleAncestors(item, checkedCopy, 'dot');
|
265
|
-
}
|
266
|
-
setTextValue(isCurrentChecked ? '' : item.label);
|
259
|
+
var isCurrentChecked = checked.get(item.value);
|
267
260
|
if (!alwaysOpened && closeAfterSelect) {
|
268
261
|
dispatchPath({
|
269
262
|
type: 'reset'
|
@@ -280,14 +273,15 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
280
273
|
if (multiple && Array.isArray(value)) {
|
281
274
|
if (value.length === 0) return [];
|
282
275
|
if (isTargetAmount) {
|
283
|
-
return ["\u0412\u044B\u0431\u0440\u0430\u043D\u043E ".concat(value.length)];
|
276
|
+
return ["\u0412\u044B\u0431\u0440\u0430\u043D\u043E ".concat(targetAmount || value.length)];
|
284
277
|
}
|
285
|
-
var
|
278
|
+
var renderValueMapper = renderValue && function (stringValue) {
|
286
279
|
return renderValue(valueToItemMap.get(stringValue));
|
287
|
-
}
|
280
|
+
};
|
281
|
+
var valueToItemMapper = function valueToItemMapper(stringValue) {
|
288
282
|
return valueToItemMap.get(stringValue).label;
|
289
283
|
};
|
290
|
-
return value.map(
|
284
|
+
return value.map(renderValueMapper || valueToItemMapper);
|
291
285
|
}
|
292
286
|
return [];
|
293
287
|
};
|
@@ -338,7 +332,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
338
332
|
// В deps мы кладем именно outerValue и internalValue, а не просто value.
|
339
333
|
// Т.к. вначале нужно отфильтровать и провалидировать outerValue и результат положить в переменную.
|
340
334
|
// А переменную, содержащую сложные типы данных, нельзя помещать в deps.
|
341
|
-
}, [outerValue, internalValue]);
|
335
|
+
}, [outerValue, internalValue, items]);
|
342
336
|
return /*#__PURE__*/React.createElement(Root, {
|
343
337
|
size: size,
|
344
338
|
view: view,
|
@@ -5,13 +5,7 @@ export var getInitialValue = function getInitialValue(outerValue, valueToItemMap
|
|
5
5
|
if (outerValue.length === 0) {
|
6
6
|
return [];
|
7
7
|
}
|
8
|
-
|
9
|
-
outerValue.forEach(function (value) {
|
10
|
-
if (valueToItemMap.has(value)) {
|
11
|
-
updatedValue.push(value);
|
12
|
-
}
|
13
|
-
});
|
14
|
-
return updatedValue;
|
8
|
+
return outerValue.filter(valueToItemMap.has.bind(valueToItemMap));
|
15
9
|
}
|
16
10
|
if (valueToItemMap.has(outerValue)) {
|
17
11
|
return outerValue;
|
@@ -154,15 +154,7 @@ export var selectRoot = function selectRoot(Root) {
|
|
154
154
|
if (e) {
|
155
155
|
e.stopPropagation();
|
156
156
|
}
|
157
|
-
var
|
158
|
-
var isCurrentChecked = checkedCopy.get(item.value);
|
159
|
-
checkedCopy.forEach(function (_, key) {
|
160
|
-
checkedCopy.set(key, false);
|
161
|
-
});
|
162
|
-
if (!isCurrentChecked) {
|
163
|
-
checkedCopy.set(item.value, 'done');
|
164
|
-
updateSingleAncestors(item, checkedCopy, 'dot');
|
165
|
-
}
|
157
|
+
var isCurrentChecked = checked.get(item.value);
|
166
158
|
if (closeAfterSelect) {
|
167
159
|
dispatchPath({
|
168
160
|
type: 'reset'
|
@@ -234,7 +226,7 @@ export var selectRoot = function selectRoot(Root) {
|
|
234
226
|
}
|
235
227
|
}
|
236
228
|
setChecked(checkedCopy);
|
237
|
-
}, [outerValue]);
|
229
|
+
}, [outerValue, items]);
|
238
230
|
return /*#__PURE__*/React.createElement(Root, _extends({
|
239
231
|
ref: ref,
|
240
232
|
size: size,
|
@@ -16,8 +16,8 @@ export var getButtonLabel = function getButtonLabel(_ref3) {
|
|
16
16
|
if (isEmpty(value) && typeof value !== 'number') {
|
17
17
|
return label || '';
|
18
18
|
}
|
19
|
-
if (selectProps.multiselect && selectProps.isTargetAmount) {
|
20
|
-
return "\u0412\u044B\u0431\u0440\u0430\u043D\u043E: ".concat(value.
|
19
|
+
if (selectProps.multiselect && Array.isArray(value) && selectProps.isTargetAmount) {
|
20
|
+
return "\u0412\u044B\u0431\u0440\u0430\u043D\u043E: ".concat(value.length);
|
21
21
|
}
|
22
22
|
if (selectProps.multiselect && Array.isArray(value)) {
|
23
23
|
return value === null || value === void 0 ? void 0 : value.map(function (itemValue) {
|
@@ -5,13 +5,7 @@ export var getInitialValue = function getInitialValue(outerValue, valueToItemMap
|
|
5
5
|
if (outerValue.length === 0) {
|
6
6
|
return [];
|
7
7
|
}
|
8
|
-
|
9
|
-
outerValue.forEach(function (value) {
|
10
|
-
if (valueToItemMap.has(value)) {
|
11
|
-
updatedValue.push(value);
|
12
|
-
}
|
13
|
-
});
|
14
|
-
return updatedValue;
|
8
|
+
return outerValue.filter(valueToItemMap.has.bind(valueToItemMap));
|
15
9
|
}
|
16
10
|
if (valueToItemMap.has(outerValue)) {
|
17
11
|
return outerValue;
|
@@ -68,6 +68,10 @@ const meta: Meta<StorySelectProps> = {
|
|
68
68
|
control: { type: 'boolean' },
|
69
69
|
if: { arg: 'alwaysOpened', truthy: false },
|
70
70
|
},
|
71
|
+
targetAmount: {
|
72
|
+
control: { type: 'number' },
|
73
|
+
if: { arg: 'isTargetAmount', truthy: true },
|
74
|
+
},
|
71
75
|
},
|
72
76
|
args: {
|
73
77
|
label: 'Label',
|
@@ -78,6 +82,7 @@ const meta: Meta<StorySelectProps> = {
|
|
78
82
|
view: 'default',
|
79
83
|
enableContentLeft: false,
|
80
84
|
isTargetAmount: false,
|
85
|
+
targetAmount: undefined,
|
81
86
|
variant: 'normal',
|
82
87
|
alwaysOpened: false,
|
83
88
|
disabled: false,
|
@@ -94,6 +99,7 @@ const meta: Meta<StorySelectProps> = {
|
|
94
99
|
'placeholder',
|
95
100
|
'helperText',
|
96
101
|
'isTargetAmount',
|
102
|
+
'targetAmount',
|
97
103
|
'closeAfterSelect',
|
98
104
|
'alwaysOpened',
|
99
105
|
'variant',
|
@@ -68,6 +68,10 @@ const meta: Meta<StorySelectProps> = {
|
|
68
68
|
control: { type: 'boolean' },
|
69
69
|
if: { arg: 'alwaysOpened', truthy: false },
|
70
70
|
},
|
71
|
+
targetAmount: {
|
72
|
+
control: { type: 'number' },
|
73
|
+
if: { arg: 'isTargetAmount', truthy: true },
|
74
|
+
},
|
71
75
|
},
|
72
76
|
args: {
|
73
77
|
label: 'Label',
|
@@ -78,6 +82,7 @@ const meta: Meta<StorySelectProps> = {
|
|
78
82
|
view: 'default',
|
79
83
|
enableContentLeft: false,
|
80
84
|
isTargetAmount: false,
|
85
|
+
targetAmount: undefined,
|
81
86
|
variant: 'normal',
|
82
87
|
alwaysOpened: false,
|
83
88
|
disabled: false,
|
@@ -94,6 +99,7 @@ const meta: Meta<StorySelectProps> = {
|
|
94
99
|
'placeholder',
|
95
100
|
'helperText',
|
96
101
|
'isTargetAmount',
|
102
|
+
'targetAmount',
|
97
103
|
'closeAfterSelect',
|
98
104
|
'alwaysOpened',
|
99
105
|
'variant',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4F,MAAM,OAAO,CAAC;AAIjH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqB7C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKnE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,+
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4F,MAAM,OAAO,CAAC;AAIjH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqB7C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKnE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,+IA2YtF,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBA7YQ,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;CAka3F,CAAC"}
|
@@ -13,12 +13,18 @@ declare type IsMultiselect<T extends ItemOption = ItemOption> = {
|
|
13
13
|
* @default false
|
14
14
|
*/
|
15
15
|
isTargetAmount?: never | false;
|
16
|
+
/**
|
17
|
+
* Ручная настройка количества выбранных элементов. Только при isTargetAmount === true.
|
18
|
+
* @default undefined
|
19
|
+
*/
|
20
|
+
targetAmount?: never;
|
16
21
|
renderValue?: never;
|
17
22
|
} | {
|
18
23
|
multiple: true;
|
19
24
|
value?: Array<string>;
|
20
25
|
onChange?: (value: Array<string>) => void;
|
21
|
-
isTargetAmount?:
|
26
|
+
isTargetAmount?: true;
|
27
|
+
targetAmount?: number;
|
22
28
|
/**
|
23
29
|
* Callback для кастомной настройки значения в селекте.
|
24
30
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAErF,aAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEjB,aAAK,aAAa,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,IAC9C;IACI,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC/B,WAAW,CAAC,EAAE,KAAK,CAAC;CACvB,GACD;IACI,QAAQ,EAAE,IAAI,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IAC1C,cAAc,CAAC,EAAE,
|
1
|
+
{"version":3,"file":"Combobox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAErF,aAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CA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Aa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,eAAO,MAAM,eAAe,eACZ,YAAY,aAAa,CAAC,OAAO,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"getInitialValue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/getInitialValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,eAAO,MAAM,eAAe,eACZ,YAAY,aAAa,CAAC,OAAO,CAAC,CAAC,0DAgBlD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoF,MAAM,OAAO,CAAC;AAEzG,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAiB1C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAKrE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,UAAU,SAAU,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoF,MAAM,OAAO,CAAC;AAEzG,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAiB1C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAKrE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,UAAU,SAAU,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC,2IAkRzF,CAAC;AAEP,eAAO,MAAM,YAAY;;;mBApRQ,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;CAsS9F,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getInitialValue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/utils/getInitialValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,eAAO,MAAM,eAAe,eAAgB,iBAAiB,CAAC,OAAO,CAAC,
|
1
|
+
{"version":3,"file":"getInitialValue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/utils/getInitialValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,eAAO,MAAM,eAAe,eAAgB,iBAAiB,CAAC,OAAO,CAAC,8EAcrE,CAAC"}
|
@@ -53,6 +53,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
53
53
|
value?: string | undefined;
|
54
54
|
onChange?: ((value: string) => void) | undefined;
|
55
55
|
isTargetAmount?: false | undefined;
|
56
|
+
targetAmount?: undefined;
|
56
57
|
renderValue?: undefined;
|
57
58
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
58
59
|
items: ItemOption[];
|
@@ -82,7 +83,8 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
82
83
|
multiple: true;
|
83
84
|
value?: string[] | undefined;
|
84
85
|
onChange?: ((value: string[]) => void) | undefined;
|
85
|
-
isTargetAmount?:
|
86
|
+
isTargetAmount?: true | undefined;
|
87
|
+
targetAmount?: number | undefined;
|
86
88
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
87
89
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
88
90
|
items: ItemOption[];
|
@@ -113,6 +115,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
113
115
|
value?: string | undefined;
|
114
116
|
onChange?: ((value: string) => void) | undefined;
|
115
117
|
isTargetAmount?: false | undefined;
|
118
|
+
targetAmount?: undefined;
|
116
119
|
renderValue?: undefined;
|
117
120
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
118
121
|
items: ItemOption[];
|
@@ -142,7 +145,8 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
142
145
|
multiple: true;
|
143
146
|
value?: string[] | undefined;
|
144
147
|
onChange?: ((value: string[]) => void) | undefined;
|
145
|
-
isTargetAmount?:
|
148
|
+
isTargetAmount?: true | undefined;
|
149
|
+
targetAmount?: number | undefined;
|
146
150
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
147
151
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
148
152
|
items: ItemOption[];
|
@@ -173,6 +177,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
173
177
|
value?: string | undefined;
|
174
178
|
onChange?: ((value: string) => void) | undefined;
|
175
179
|
isTargetAmount?: false | undefined;
|
180
|
+
targetAmount?: undefined;
|
176
181
|
renderValue?: undefined;
|
177
182
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
178
183
|
items: ItemOption[];
|
@@ -202,7 +207,8 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
202
207
|
multiple: true;
|
203
208
|
value?: string[] | undefined;
|
204
209
|
onChange?: ((value: string[]) => void) | undefined;
|
205
|
-
isTargetAmount?:
|
210
|
+
isTargetAmount?: true | undefined;
|
211
|
+
targetAmount?: number | undefined;
|
206
212
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
207
213
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
|
208
214
|
declare type PropsFromConfig = keyof typeof config['variations'];
|
@@ -259,6 +265,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
259
265
|
value?: string | undefined;
|
260
266
|
onChange?: ((value: string) => void) | undefined;
|
261
267
|
isTargetAmount?: false | undefined;
|
268
|
+
targetAmount?: undefined;
|
262
269
|
renderValue?: undefined;
|
263
270
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
264
271
|
items: ItemOption[];
|
@@ -288,7 +295,8 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
288
295
|
multiple: true;
|
289
296
|
value?: string[] | undefined;
|
290
297
|
onChange?: ((value: string[]) => void) | undefined;
|
291
|
-
isTargetAmount?:
|
298
|
+
isTargetAmount?: true | undefined;
|
299
|
+
targetAmount?: number | undefined;
|
292
300
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
293
301
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
294
302
|
items: ItemOption[];
|
@@ -319,6 +327,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
319
327
|
value?: string | undefined;
|
320
328
|
onChange?: ((value: string) => void) | undefined;
|
321
329
|
isTargetAmount?: false | undefined;
|
330
|
+
targetAmount?: undefined;
|
322
331
|
renderValue?: undefined;
|
323
332
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
324
333
|
items: ItemOption[];
|
@@ -348,7 +357,8 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
348
357
|
multiple: true;
|
349
358
|
value?: string[] | undefined;
|
350
359
|
onChange?: ((value: string[]) => void) | undefined;
|
351
|
-
isTargetAmount?:
|
360
|
+
isTargetAmount?: true | undefined;
|
361
|
+
targetAmount?: number | undefined;
|
352
362
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
353
363
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
354
364
|
items: ItemOption[];
|
@@ -379,6 +389,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
379
389
|
value?: string | undefined;
|
380
390
|
onChange?: ((value: string) => void) | undefined;
|
381
391
|
isTargetAmount?: false | undefined;
|
392
|
+
targetAmount?: undefined;
|
382
393
|
renderValue?: undefined;
|
383
394
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
384
395
|
items: ItemOption[];
|
@@ -408,7 +419,8 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
408
419
|
multiple: true;
|
409
420
|
value?: string[] | undefined;
|
410
421
|
onChange?: ((value: string[]) => void) | undefined;
|
411
|
-
isTargetAmount?:
|
422
|
+
isTargetAmount?: true | undefined;
|
423
|
+
targetAmount?: number | undefined;
|
412
424
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
413
425
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>)), "view" | "disabled" | "readOnly" | "size" | "labelPlacement"> & {
|
414
426
|
ref?: ForwardedRef<HTMLInputElement> | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Combobox/Combobox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAIxE,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,QAAA,MAAM,iBAAiB
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Combobox/Combobox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAIxE,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2IAA0B,CAAC;AAElD,aAAK,eAAe,GAAG,MAAM,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC;AAEzD,aAAK,QAAQ,CAAC,CAAC,SAAS,UAAU,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,GACzE,IAAI,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,EAAE,eAAe,CAAC,CAAC;AAEpE,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAET,YAAY,GAAG,IAAI,CAAC;AAEzB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
@@ -53,6 +53,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
53
53
|
value?: string | undefined;
|
54
54
|
onChange?: ((value: string) => void) | undefined;
|
55
55
|
isTargetAmount?: false | undefined;
|
56
|
+
targetAmount?: undefined;
|
56
57
|
renderValue?: undefined;
|
57
58
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
58
59
|
items: ItemOption[];
|
@@ -82,7 +83,8 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
82
83
|
multiple: true;
|
83
84
|
value?: string[] | undefined;
|
84
85
|
onChange?: ((value: string[]) => void) | undefined;
|
85
|
-
isTargetAmount?:
|
86
|
+
isTargetAmount?: true | undefined;
|
87
|
+
targetAmount?: number | undefined;
|
86
88
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
87
89
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
88
90
|
items: ItemOption[];
|
@@ -113,6 +115,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
113
115
|
value?: string | undefined;
|
114
116
|
onChange?: ((value: string) => void) | undefined;
|
115
117
|
isTargetAmount?: false | undefined;
|
118
|
+
targetAmount?: undefined;
|
116
119
|
renderValue?: undefined;
|
117
120
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
118
121
|
items: ItemOption[];
|
@@ -142,7 +145,8 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
142
145
|
multiple: true;
|
143
146
|
value?: string[] | undefined;
|
144
147
|
onChange?: ((value: string[]) => void) | undefined;
|
145
|
-
isTargetAmount?:
|
148
|
+
isTargetAmount?: true | undefined;
|
149
|
+
targetAmount?: number | undefined;
|
146
150
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
147
151
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
148
152
|
items: ItemOption[];
|
@@ -173,6 +177,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
173
177
|
value?: string | undefined;
|
174
178
|
onChange?: ((value: string) => void) | undefined;
|
175
179
|
isTargetAmount?: false | undefined;
|
180
|
+
targetAmount?: undefined;
|
176
181
|
renderValue?: undefined;
|
177
182
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
178
183
|
items: ItemOption[];
|
@@ -202,7 +207,8 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
|
|
202
207
|
multiple: true;
|
203
208
|
value?: string[] | undefined;
|
204
209
|
onChange?: ((value: string[]) => void) | undefined;
|
205
|
-
isTargetAmount?:
|
210
|
+
isTargetAmount?: true | undefined;
|
211
|
+
targetAmount?: number | undefined;
|
206
212
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
207
213
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
|
208
214
|
declare type PropsFromConfig = keyof typeof config['variations'];
|
@@ -259,6 +265,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
259
265
|
value?: string | undefined;
|
260
266
|
onChange?: ((value: string) => void) | undefined;
|
261
267
|
isTargetAmount?: false | undefined;
|
268
|
+
targetAmount?: undefined;
|
262
269
|
renderValue?: undefined;
|
263
270
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
264
271
|
items: ItemOption[];
|
@@ -288,7 +295,8 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
288
295
|
multiple: true;
|
289
296
|
value?: string[] | undefined;
|
290
297
|
onChange?: ((value: string[]) => void) | undefined;
|
291
|
-
isTargetAmount?:
|
298
|
+
isTargetAmount?: true | undefined;
|
299
|
+
targetAmount?: number | undefined;
|
292
300
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
293
301
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
294
302
|
items: ItemOption[];
|
@@ -319,6 +327,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
319
327
|
value?: string | undefined;
|
320
328
|
onChange?: ((value: string) => void) | undefined;
|
321
329
|
isTargetAmount?: false | undefined;
|
330
|
+
targetAmount?: undefined;
|
322
331
|
renderValue?: undefined;
|
323
332
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
324
333
|
items: ItemOption[];
|
@@ -348,7 +357,8 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
348
357
|
multiple: true;
|
349
358
|
value?: string[] | undefined;
|
350
359
|
onChange?: ((value: string[]) => void) | undefined;
|
351
|
-
isTargetAmount?:
|
360
|
+
isTargetAmount?: true | undefined;
|
361
|
+
targetAmount?: number | undefined;
|
352
362
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
353
363
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
354
364
|
items: ItemOption[];
|
@@ -379,6 +389,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
379
389
|
value?: string | undefined;
|
380
390
|
onChange?: ((value: string) => void) | undefined;
|
381
391
|
isTargetAmount?: false | undefined;
|
392
|
+
targetAmount?: undefined;
|
382
393
|
renderValue?: undefined;
|
383
394
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
384
395
|
items: ItemOption[];
|
@@ -408,7 +419,8 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
408
419
|
multiple: true;
|
409
420
|
value?: string[] | undefined;
|
410
421
|
onChange?: ((value: string[]) => void) | undefined;
|
411
|
-
isTargetAmount?:
|
422
|
+
isTargetAmount?: true | undefined;
|
423
|
+
targetAmount?: number | undefined;
|
412
424
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
413
425
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>)), "view" | "disabled" | "readOnly" | "size" | "labelPlacement"> & {
|
414
426
|
ref?: ForwardedRef<HTMLInputElement> | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Combobox/Combobox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAIxE,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,QAAA,MAAM,iBAAiB
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Combobox/Combobox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EA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