@salutejs/plasma-new-hope 0.195.0-canary.1572.11914481185.0 → 0.195.0-canary.1574.11921374356.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.js +7 -1
  2. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  3. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  4. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  5. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  6. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  7. package/cjs/components/Calendar/store/reducer.js +2 -2
  8. package/cjs/components/Calendar/store/reducer.js.map +1 -1
  9. package/cjs/components/Combobox/ComboboxNew/Combobox.js +18 -4
  10. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  11. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  12. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  13. package/cjs/components/Combobox/ComboboxOld/Combobox.css +5 -4
  14. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -4
  15. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -4
  16. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -4
  17. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -4
  18. package/cjs/components/Dropdown/Dropdown.css +5 -4
  19. package/cjs/components/Dropdown/Dropdown.js +4 -2
  20. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  21. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -4
  22. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  23. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  24. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +7 -1
  25. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  26. package/cjs/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_14yih1y.css} +1 -0
  27. package/cjs/components/Select/Select.js +0 -1
  28. package/cjs/components/Select/Select.js.map +1 -1
  29. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  30. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  31. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +18 -3
  32. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  33. package/cjs/index.css +5 -4
  34. package/emotion/cjs/components/Autocomplete/Autocomplete.js +7 -1
  35. package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  36. package/emotion/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  37. package/emotion/cjs/components/Calendar/store/reducer.js +2 -2
  38. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -4
  39. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  40. package/emotion/cjs/components/Dropdown/Dropdown.js +4 -2
  41. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  42. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -11
  43. package/emotion/cjs/components/Select/Select.js +0 -1
  44. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  45. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +24 -3
  46. package/emotion/es/components/Autocomplete/Autocomplete.js +7 -1
  47. package/emotion/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  48. package/emotion/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  49. package/emotion/es/components/Calendar/store/reducer.js +2 -2
  50. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +22 -4
  51. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  52. package/emotion/es/components/Dropdown/Dropdown.js +4 -2
  53. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  54. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -11
  55. package/emotion/es/components/Select/Select.js +0 -1
  56. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  57. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +24 -3
  58. package/es/components/Autocomplete/Autocomplete.js +7 -1
  59. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  60. package/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  61. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  62. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  63. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  64. package/es/components/Calendar/store/reducer.js +2 -2
  65. package/es/components/Calendar/store/reducer.js.map +1 -1
  66. package/es/components/Combobox/ComboboxNew/Combobox.js +19 -5
  67. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  68. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  69. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  70. package/es/components/Combobox/ComboboxOld/Combobox.css +5 -4
  71. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -4
  72. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -4
  73. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -4
  74. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -4
  75. package/es/components/Dropdown/Dropdown.css +5 -4
  76. package/es/components/Dropdown/Dropdown.js +4 -2
  77. package/es/components/Dropdown/Dropdown.js.map +1 -1
  78. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -4
  79. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  80. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  81. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +7 -2
  82. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  83. package/es/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_14yih1y.css} +1 -0
  84. package/es/components/Select/Select.js +0 -1
  85. package/es/components/Select/Select.js.map +1 -1
  86. package/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  87. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  88. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +19 -4
  89. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  90. package/es/index.css +5 -4
  91. package/package.json +3 -2
  92. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +7 -1
  93. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  94. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  95. package/styled-components/cjs/components/Calendar/store/reducer.js +2 -2
  96. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -4
  97. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  98. package/styled-components/cjs/components/Dropdown/Dropdown.js +4 -2
  99. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  100. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -2
  101. package/styled-components/cjs/components/Select/Select.js +0 -1
  102. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  103. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +24 -3
  104. package/styled-components/es/components/Autocomplete/Autocomplete.js +7 -1
  105. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  106. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  107. package/styled-components/es/components/Calendar/store/reducer.js +2 -2
  108. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +22 -4
  109. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  110. package/styled-components/es/components/Dropdown/Dropdown.js +4 -2
  111. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  112. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -2
  113. package/styled-components/es/components/Select/Select.js +0 -1
  114. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  115. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +24 -3
  116. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  117. package/types/components/Autocomplete/Autocomplete.types.d.ts +4 -0
  118. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  119. package/types/components/Calendar/store/reducer.d.ts +1 -1
  120. package/types/components/Calendar/store/reducer.d.ts.map +1 -1
  121. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  122. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +1 -2
  123. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  124. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  125. package/types/components/Dropdown/Dropdown.d.ts +50 -2
  126. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  127. package/types/components/Dropdown/Dropdown.types.d.ts +11 -6
  128. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  129. package/types/components/Dropdown/index.d.ts +1 -0
  130. package/types/components/Dropdown/index.d.ts.map +1 -1
  131. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  132. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +1 -0
  133. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  134. package/types/components/Select/Select.d.ts.map +1 -1
  135. package/types/components/Select/Select.types.d.ts +1 -2
  136. package/types/components/Select/Select.types.d.ts.map +1 -1
  137. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  138. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  139. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +25 -1
  140. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
  141. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +25 -1
  142. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
@@ -12,6 +12,12 @@ var _Textfield = /*#__PURE__*/require("./Textfield.styles");
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
14
  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); }
15
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
16
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
18
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
19
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
20
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
15
21
  var Textfield = exports.Textfield = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
16
22
  var _valueToItemMap$get;
17
23
  var inputWrapperRef = _ref.inputWrapperRef,
@@ -56,9 +62,24 @@ var Textfield = exports.Textfield = /*#__PURE__*/(0, _react.forwardRef)(function
56
62
 
57
63
  // Обработчик чипов
58
64
  var handleChipsChange = function handleChipsChange(chipLabels) {
59
- onChange(chipLabels.map(function (chipLabel) {
60
- return labelToItemMap.get(chipLabel).value;
61
- }));
65
+ if (!Array.isArray(value)) return;
66
+
67
+ // TODO: #1564
68
+ // Из лейблов чипов получаем value у item и далее прокидываем его в onChange.
69
+ if (renderValue && !isTargetAmount) {
70
+ var resultValues = _toConsumableArray(value);
71
+ value.forEach(function (_, index) {
72
+ var labelAfterRenderValue = renderValue(labelToItemMap.get(valueToItemMap.get(value[index]).label));
73
+ if (!chipLabels.includes(labelAfterRenderValue)) {
74
+ resultValues.splice(index, 1);
75
+ }
76
+ });
77
+ onChange(resultValues);
78
+ } else {
79
+ onChange(chipLabels.map(function (chipLabel) {
80
+ return labelToItemMap.get(chipLabel).value;
81
+ }));
82
+ }
62
83
  };
63
84
  return /*#__PURE__*/_react["default"].createElement(_Textfield.StyledTextField, _extends({
64
85
  ref: ref,
@@ -1,4 +1,4 @@
1
- var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
1
+ var _excluded = ["value", "defaultValue", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
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."); }
@@ -23,6 +23,7 @@ import { useKeyNavigation } from './hooks/useKeyboardNavigation';
23
23
  export var autocompleteRoot = function autocompleteRoot(Root) {
24
24
  return /*#__PURE__*/forwardRef(function (_ref, ref) {
25
25
  var outerValue = _ref.value,
26
+ defaultValue = _ref.defaultValue,
26
27
  onChange = _ref.onChange,
27
28
  suggestions = _ref.suggestions,
28
29
  view = _ref.view,
@@ -110,6 +111,11 @@ export var autocompleteRoot = function autocompleteRoot(Root) {
110
111
  type: 'reset'
111
112
  });
112
113
  }, [value]);
114
+ useDidMountEffect(function () {
115
+ if (defaultValue) {
116
+ setInnerValue(defaultValue);
117
+ }
118
+ }, [defaultValue]);
113
119
  return /*#__PURE__*/React.createElement(Root, {
114
120
  view: view,
115
121
  size: size,
@@ -63,7 +63,7 @@ export var calendarBaseRoot = function calendarBaseRoot(Root) {
63
63
  _useState8 = _slicedToArray(_useState7, 2),
64
64
  outOfRangeKey = _useState8[0],
65
65
  setOutOfRangeKey = _useState8[1];
66
- var _useReducer = useReducer(reducer, getInitialState(value, min, type)),
66
+ var _useReducer = useReducer(reducer, getInitialState(value, type)),
67
67
  _useReducer2 = _slicedToArray(_useReducer, 2),
68
68
  state = _useReducer2[0],
69
69
  dispatch = _useReducer2[1];
@@ -64,7 +64,7 @@ export var calendarDoubleRoot = function calendarDoubleRoot(Root) {
64
64
  _useState8 = _slicedToArray(_useState7, 2),
65
65
  outOfRangeKey = _useState8[0],
66
66
  setOutOfRangeKey = _useState8[1];
67
- var _useReducer = useReducer(reducer, getInitialState(value, min, type, true)),
67
+ var _useReducer = useReducer(reducer, getInitialState(value, type, true)),
68
68
  _useReducer2 = _slicedToArray(_useReducer, 2),
69
69
  state = _useReducer2[0],
70
70
  dispatch = _useReducer2[1];
@@ -30,8 +30,8 @@ export var sizeMap = {
30
30
  "double": [3, 1]
31
31
  }
32
32
  };
33
- export var getInitialState = function getInitialState(value, min, calendarState, isDouble) {
34
- var initDate = value || min || new Date();
33
+ export var getInitialState = function getInitialState(value, calendarState, isDouble) {
34
+ var initDate = value || new Date();
35
35
  var date = getDateFromValue(initDate);
36
36
  var resSize = isDouble ? sizeMap[calendarState]["double"] : sizeMap[calendarState].single;
37
37
  return {
@@ -1,5 +1,9 @@
1
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
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
3
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
8
  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."); }
5
9
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -177,9 +181,24 @@ export var comboboxRoot = function comboboxRoot(Root) {
177
181
 
178
182
  // Обработчик чипов
179
183
  var handleChipsChange = function handleChipsChange(chipLabels) {
180
- onChange(chipLabels.map(function (chipLabel) {
181
- return labelToItemMap.get(chipLabel).value;
182
- }));
184
+ if (!Array.isArray(value)) return;
185
+
186
+ // TODO: #1564
187
+ // Из лейблов чипов получаем value у item и далее прокидываем его в onChange.
188
+ if (renderValue && !isTargetAmount) {
189
+ var resultValues = _toConsumableArray(value);
190
+ value.forEach(function (_, index) {
191
+ var labelAfterRenderValue = renderValue(labelToItemMap.get(valueToItemMap.get(value[index]).label));
192
+ if (!chipLabels.includes(labelAfterRenderValue)) {
193
+ resultValues.splice(index, 1);
194
+ }
195
+ });
196
+ onChange(resultValues);
197
+ } else {
198
+ onChange(chipLabels.map(function (chipLabel) {
199
+ return labelToItemMap.get(chipLabel).value;
200
+ }));
201
+ }
183
202
  };
184
203
 
185
204
  // Обработчик открытия/закрытия выпадающего списка
@@ -348,7 +367,6 @@ export var comboboxRoot = function comboboxRoot(Root) {
348
367
  handleItemClick: handleItemClick,
349
368
  variant: variant,
350
369
  renderItem: renderItem,
351
- valueToItemMap: valueToItemMap,
352
370
  treeId: treeId
353
371
  }
354
372
  }, /*#__PURE__*/React.createElement(FloatingPopover, {
@@ -31,7 +31,6 @@ export var Item = function Item(_ref) {
31
31
  handleItemClick = _useContext.handleItemClick,
32
32
  variant = _useContext.variant,
33
33
  renderItem = _useContext.renderItem,
34
- valueToItemMap = _useContext.valueToItemMap,
35
34
  treeId = _useContext.treeId;
36
35
  var disabledClassName = disabled ? classes.dropdownItemIsDisabled : undefined;
37
36
  var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? classes.dropdownItemIsFocused : undefined;
@@ -85,7 +84,7 @@ export var Item = function Item(_ref) {
85
84
  }))), !multiple && checked.get(item.value) === 'done' && /*#__PURE__*/React.createElement(IconDone, {
86
85
  size: sizeToIconSize(size, variant),
87
86
  color: "inherit"
88
- })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(valueToItemMap.get(value))) : /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
87
+ })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(item)) : /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
89
88
  view: "default",
90
89
  size: "l",
91
90
  contentLeft: contentLeft,
@@ -1,4 +1,4 @@
1
- var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "alwaysOpened", "portal"];
1
+ var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "alwaysOpened", "portal", "renderItem"];
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."); }
@@ -60,6 +60,7 @@ export var dropdownRoot = function dropdownRoot(Root) {
60
60
  _ref$alwaysOpened = _ref.alwaysOpened,
61
61
  alwaysOpened = _ref$alwaysOpened === void 0 ? false : _ref$alwaysOpened,
62
62
  portal = _ref.portal,
63
+ renderItem = _ref.renderItem,
63
64
  rest = _objectWithoutProperties(_ref, _excluded);
64
65
  var _useReducer = useReducer(pathReducer, []),
65
66
  _useReducer2 = _slicedToArray(_useReducer, 2),
@@ -135,7 +136,8 @@ export var dropdownRoot = function dropdownRoot(Root) {
135
136
  onItemClick: onItemClick,
136
137
  onItemSelect: onItemSelect,
137
138
  hasArrow: hasArrow,
138
- treeId: treeId
139
+ treeId: treeId,
140
+ renderItem: renderItem
139
141
  }
140
142
  }, /*#__PURE__*/React.createElement(FloatingPopover, {
141
143
  ref: floatingPopoverRef,
@@ -4,7 +4,7 @@ import { cx } from '../../../../utils';
4
4
  import { IconDisclosureRight } from '../../../_Icon';
5
5
  import { Context } from '../../Dropdown';
6
6
  import { getItemId } from '../../utils';
7
- import { Wrapper, DisclosureIconWrapper, Divider, CellWrapper, StyledCell } from './DropdownItem.styles';
7
+ import { Wrapper, DisclosureIconWrapper, Divider, CellWrapper, StyledCell, RenderItemWrapper } from './DropdownItem.styles';
8
8
  export var DropdownItem = function DropdownItem(_ref) {
9
9
  var item = _ref.item,
10
10
  path = _ref.path,
@@ -34,7 +34,8 @@ export var DropdownItem = function DropdownItem(_ref) {
34
34
  onItemSelect = _useContext.onItemSelect,
35
35
  onItemClick = _useContext.onItemClick,
36
36
  hasArrow = _useContext.hasArrow,
37
- treeId = _useContext.treeId;
37
+ treeId = _useContext.treeId,
38
+ renderItem = _useContext.renderItem;
38
39
  var hasDescendants = Boolean(item.items);
39
40
  var disclosureIconSize = size === 'xs' ? 'xs' : 's';
40
41
  var isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;
@@ -85,7 +86,7 @@ export var DropdownItem = function DropdownItem(_ref) {
85
86
  "aria-expanded": ariaExpanded,
86
87
  "aria-level": ariaLevel,
87
88
  "aria-label": ariaLabel
88
- }, /*#__PURE__*/React.createElement(CellWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
89
+ }, renderItem ? /*#__PURE__*/React.createElement(RenderItemWrapper, null, renderItem(item)) : /*#__PURE__*/React.createElement(CellWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
89
90
  contentLeft: contentLeft,
90
91
  contentRight: contentRight,
91
92
  alignContentLeft: "center",
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  import { classes, tokens, constants } from '../../Dropdown.tokens';
3
- import { addFocus } from '../../../../mixins';
3
+ import { addFocus, applyEllipsis } from '../../../../mixins';
4
4
  import { cellConfig, cellTokens } from '../../../Cell';
5
5
  import { component, mergeConfig } from '../../../../engines';
6
6
  var mergedCellConfig = /*#__PURE__*/mergeConfig(cellConfig);
@@ -35,4 +35,7 @@ export var Wrapper = /*#__PURE__*/styled.li.withConfig({
35
35
  outlineRadius: /*#__PURE__*/"var(".concat(tokens.itemBorderRadius, ")"),
36
36
  hasTransition: false,
37
37
  customFocusRules: /*#__PURE__*/"\n &.".concat(classes.dropdownItemIsFocused, ":before {\n outline: none;\n box-shadow: 0 0 0 0.0625rem var(").concat(constants.focusColor, ");\n }\n ")
38
- }));
38
+ }));
39
+ export var RenderItemWrapper = /*#__PURE__*/styled.div.withConfig({
40
+ componentId: "plasma-new-hope__sc-hs0ek1-5"
41
+ })(["", ";flex:1;"], /*#__PURE__*/applyEllipsis());
@@ -272,7 +272,6 @@ export var selectRoot = function selectRoot(Root) {
272
272
  handleItemClick: handleItemClick,
273
273
  variant: variant,
274
274
  renderItem: renderItem,
275
- valueToItemMap: valueToItemMap,
276
275
  treeId: treeId
277
276
  }
278
277
  }, /*#__PURE__*/React.createElement(FloatingPopover, {
@@ -32,7 +32,6 @@ export var Item = function Item(_ref) {
32
32
  handleItemClick = _useContext.handleItemClick,
33
33
  variant = _useContext.variant,
34
34
  renderItem = _useContext.renderItem,
35
- valueToItemMap = _useContext.valueToItemMap,
36
35
  treeId = _useContext.treeId;
37
36
  var itemDisabled = Boolean(disabled || isDisabled);
38
37
  var disabledClassName = itemDisabled ? classes.dropdownItemIsDisabled : undefined;
@@ -87,7 +86,7 @@ export var Item = function Item(_ref) {
87
86
  }))), !multiselect && checked.get(item.value) === 'done' && /*#__PURE__*/React.createElement(IconDone, {
88
87
  size: sizeToIconSize(size, variant),
89
88
  color: "inherit"
90
- })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(valueToItemMap.get(value))) : /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
89
+ })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(item)) : /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
91
90
  contentLeft: contentLeft,
92
91
  contentRight: contentRight
93
92
  // TODO: #1548
@@ -1,4 +1,10 @@
1
1
  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); }
2
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2
8
  import React, { forwardRef } from 'react';
3
9
  import { sizeToIconSize, getItemId } from '../../../../utils';
4
10
  import { classes } from '../../../../Select.tokens';
@@ -47,9 +53,24 @@ export var Textfield = /*#__PURE__*/forwardRef(function (_ref, ref) {
47
53
 
48
54
  // Обработчик чипов
49
55
  var handleChipsChange = function handleChipsChange(chipLabels) {
50
- onChange(chipLabels.map(function (chipLabel) {
51
- return labelToItemMap.get(chipLabel).value;
52
- }));
56
+ if (!Array.isArray(value)) return;
57
+
58
+ // TODO: #1564
59
+ // Из лейблов чипов получаем value у item и далее прокидываем его в onChange.
60
+ if (renderValue && !isTargetAmount) {
61
+ var resultValues = _toConsumableArray(value);
62
+ value.forEach(function (_, index) {
63
+ var labelAfterRenderValue = renderValue(labelToItemMap.get(valueToItemMap.get(value[index]).label));
64
+ if (!chipLabels.includes(labelAfterRenderValue)) {
65
+ resultValues.splice(index, 1);
66
+ }
67
+ });
68
+ onChange(resultValues);
69
+ } else {
70
+ onChange(chipLabels.map(function (chipLabel) {
71
+ return labelToItemMap.get(chipLabel).value;
72
+ }));
73
+ }
53
74
  };
54
75
  return /*#__PURE__*/React.createElement(StyledTextField, _extends({
55
76
  ref: ref,
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,+FAuLhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBAzLQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CAwMpF,CAAC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,+FA8LhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBAhMQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CA+MpF,CAAC"}
@@ -83,6 +83,10 @@ export declare type BaseProps = {
83
83
  * Коллбэк для рендера элемента в конце выпадающего списка.
84
84
  */
85
85
  renderListEnd?: () => ReactNode;
86
+ /**
87
+ * Изначальное значение.
88
+ */
89
+ defaultValue?: string;
86
90
  };
87
91
  export declare type AutocompleteProps = BaseProps & RequiredProps & Omit<TextFieldPropsBase, 'chips' | 'onChangeChips' | 'enumerationType' | 'required' | 'optional' | 'requiredPlacement'> & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'required'>;
88
92
  //# sourceMappingURL=Autocomplete.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.types.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAEjF,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF,oBAAY,SAAS,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC;IAC/C;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,KAAK,SAAS,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,SAAS,CAAC;CACnC,CAAC;AAEF,oBAAY,iBAAiB,GAAG,SAAS,GACrC,aAAa,GACb,IAAI,CACA,kBAAkB,EAClB,OAAO,GAAG,eAAe,GAAG,iBAAiB,GAAG,UAAU,GAAG,UAAU,GAAG,mBAAmB,CAChG,GACD,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"Autocomplete.types.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAA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EAAE,MAAM,SAAS,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,oBAAY,iBAAiB,GAAG,SAAS,GACrC,aAAa,GACb,IAAI,CACA,kBAAkB,EAClB,OAAO,GAAG,eAAe,GAAG,iBAAiB,GAAG,UAAU,GAAG,UAAU,GAAG,mBAAmB,CAChG,GACD,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { CalendarStateType, Action, InitialState, SizeMap } from './types';
2
2
  export declare const sizeMap: SizeMap;
3
- export declare const getInitialState: (value: Date | undefined, min: Date | undefined, calendarState: CalendarStateType, isDouble?: boolean | undefined) => InitialState;
3
+ export declare const getInitialState: (value: Date | undefined, calendarState: CalendarStateType, isDouble?: boolean | undefined) => InitialState;
4
4
  export declare const reducer: (state: InitialState, action: Action) => InitialState;
5
5
  //# sourceMappingURL=reducer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/store/reducer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAc,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvF,eAAO,MAAM,OAAO,EAAE,OAiBrB,CAAC;AAEF,eAAO,MAAM,eAAe,UACjB,IAAI,GAAG,SAAS,OAClB,IAAI,GAAG,SAAS,iBACN,iBAAiB,qCAEjC,YAYF,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,YAAY,UAAU,MAAM,KAAG,YAyH7D,CAAC"}
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/store/reducer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAc,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvF,eAAO,MAAM,OAAO,EAAE,OAiBrB,CAAC;AAEF,eAAO,MAAM,eAAe,UACjB,IAAI,GAAG,SAAS,iBACR,iBAAiB,qCAEjC,YAYF,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,YAAY,UAAU,MAAM,KAAG,YAyH7D,CAAC"}
@@ -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,+IA2YtF,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBA7YQ,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;CAka3F,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,+IA8ZtF,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBAhaQ,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;CAqb3F,CAAC"}
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { RequiredProps } from '../../TextField/TextField.types';
4
4
  import { FocusedPathState } from './reducers';
5
5
  import { ItemOption, ItemOptionTransformed } from './ui/Inner/ui/Item/Item.types';
6
- import type { ValueToCheckedMapType, ValueToItemMapType } from './hooks/getPathMaps';
6
+ import type { ValueToCheckedMapType } from './hooks/getPathMaps';
7
7
  declare type Placement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
8
8
  declare type IsMultiselect<T extends ItemOption = ItemOption> = {
9
9
  multiple?: false;
@@ -175,7 +175,6 @@ export declare type ItemContext = {
175
175
  handleItemClick: (item: ItemOptionTransformed, e: React.MouseEvent<HTMLElement>) => void;
176
176
  variant: ComboboxProps['variant'];
177
177
  renderItem: ComboboxProps['renderItem'];
178
- valueToItemMap: ValueToItemMapType;
179
178
  treeId: string;
180
179
  };
181
180
  export {};
@@ -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,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,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,MA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,EAAE,MAAM,CAAC;CAClB,CAAC"}
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,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,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;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,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,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;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aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACtB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACpC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5B,oBAAoB,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC5D,eAAe,EAAE,CAAC,IAAI,EAAE,qBAAqB,EAAE,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzF,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAU,EAAE,EAAc,MAAM,OAAO,CAAC;AAStD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAazC,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAqH9B,CAAC"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAU,EAAE,EAAc,MAAM,OAAO,CAAC;AAStD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAazC,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAoH9B,CAAC"}
@@ -5,11 +5,59 @@ export declare const Context: React.Context<ItemContext>;
5
5
  /**
6
6
  * Выпадающий список.
7
7
  */
8
- export declare const dropdownRoot: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const dropdownRoot: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<{
9
+ items: import(".").DropdownItemOption[];
10
+ alwaysOpened?: boolean | undefined;
11
+ children?: React.ReactNode;
12
+ itemRole?: string | undefined;
13
+ onHover?: ((index: number) => void) | undefined;
14
+ onItemSelect?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
15
+ trigger?: import("./Dropdown.types").DropdownTrigger | undefined;
16
+ placement?: import("./Dropdown.types").DropdownPlacement | undefined;
17
+ offset?: [number, number] | undefined;
18
+ listWidth?: import("csstype").Property.Width<string | number> | undefined;
19
+ hasArrow?: boolean | undefined;
20
+ closeOnSelect?: boolean | undefined;
21
+ closeOnOverlayClick?: boolean | undefined;
22
+ onToggle?: ((isOpen: boolean, event: Event | React.SyntheticEvent<Element, Event>) => void) | undefined;
23
+ size?: string | undefined;
24
+ view?: string | undefined;
25
+ variant?: "normal" | "tight" | undefined;
26
+ portal?: string | React.RefObject<HTMLElement> | undefined;
27
+ renderItem?: ((item: import(".").DropdownItemOption) => React.ReactNode) | undefined;
28
+ onItemClick?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
29
+ listOverflow?: import("csstype").Property.Overflow | undefined;
30
+ listHeight?: import("csstype").Property.Height<string | number> | undefined;
31
+ hoverIndex?: number | undefined;
32
+ } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
9
33
  export declare const dropdownConfig: {
10
34
  name: string;
11
35
  tag: string;
12
- layout: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLDivElement>>;
36
+ layout: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<{
37
+ items: import(".").DropdownItemOption[];
38
+ alwaysOpened?: boolean | undefined;
39
+ children?: React.ReactNode;
40
+ itemRole?: string | undefined;
41
+ onHover?: ((index: number) => void) | undefined;
42
+ onItemSelect?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
43
+ trigger?: import("./Dropdown.types").DropdownTrigger | undefined;
44
+ placement?: import("./Dropdown.types").DropdownPlacement | undefined;
45
+ offset?: [number, number] | undefined;
46
+ listWidth?: import("csstype").Property.Width<string | number> | undefined;
47
+ hasArrow?: boolean | undefined;
48
+ closeOnSelect?: boolean | undefined;
49
+ closeOnOverlayClick?: boolean | undefined;
50
+ onToggle?: ((isOpen: boolean, event: Event | React.SyntheticEvent<Element, Event>) => void) | undefined;
51
+ size?: string | undefined;
52
+ view?: string | undefined;
53
+ variant?: "normal" | "tight" | undefined;
54
+ portal?: string | React.RefObject<HTMLElement> | undefined;
55
+ renderItem?: ((item: import(".").DropdownItemOption) => React.ReactNode) | undefined;
56
+ onItemClick?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
57
+ listOverflow?: import("csstype").Property.Overflow | undefined;
58
+ listHeight?: import("csstype").Property.Height<string | number> | undefined;
59
+ hoverIndex?: number | undefined;
60
+ } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
13
61
  base: import("@linaria/core").LinariaClassName;
14
62
  variations: {
15
63
  view: {
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAW1C,OAAO,KAAK,EAAE,aAAa,EAA0B,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM3F,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,yFAyJrF,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBA3JQ,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;CA4KzF,CAAC"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAW1C,OAAO,KAAK,EAAE,aAAa,EAA0B,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM3F,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;+EA2JrF,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBA7JQ,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8KzF,CAAC"}
@@ -1,14 +1,14 @@
1
- import type { CSSProperties, HTMLAttributes, ReactNode, SyntheticEvent } from 'react';
1
+ import type { HTMLAttributes, ReactNode, SyntheticEvent, CSSProperties } from 'react';
2
2
  import React from 'react';
3
3
  import { FocusedPathState } from './reducers/focusedPathReducer';
4
4
  import { DropdownItemOption } from './ui/DropdownItem/DropdownItem.type';
5
5
  export declare type DropdownPlacement = 'auto' | 'top' | 'right' | 'bottom' | 'left';
6
6
  export declare type DropdownTrigger = 'hover' | 'click';
7
- export interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
7
+ export declare type DropdownProps<T extends DropdownItemOption = DropdownItemOption> = {
8
8
  /**
9
9
  * Список элементов.
10
10
  */
11
- items: Array<DropdownItemOption>;
11
+ items: T[];
12
12
  /**
13
13
  * Дропдаун открыт всегда.
14
14
  */
@@ -29,7 +29,7 @@ export interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
29
29
  /**
30
30
  * Обработчик выбора item.
31
31
  */
32
- onItemSelect?: (item: DropdownItemOption, event: SyntheticEvent) => void;
32
+ onItemSelect?: (item: T, event: SyntheticEvent) => void;
33
33
  /**
34
34
  * Способ открытия дропдауна окна - наведение или клик мышью.
35
35
  * @default click
@@ -80,11 +80,15 @@ export interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
80
80
  * Портал для выпадающего списка. Принимает id контейнера или ref.
81
81
  */
82
82
  portal?: string | React.RefObject<HTMLElement>;
83
+ /**
84
+ * Callback для кастомной настройки айтема в выпадающем списке.
85
+ */
86
+ renderItem?: (item: T) => React.ReactNode;
83
87
  /**
84
88
  * Обработчик клика по item.
85
89
  * @deprecated использовать onItemSelect.
86
90
  */
87
- onItemClick?: (item: DropdownItemOption, event: SyntheticEvent) => void;
91
+ onItemClick?: (item: T, event: SyntheticEvent) => void;
88
92
  /**
89
93
  * Значение css overflow для выпадающего меню.
90
94
  * @default initial
@@ -104,7 +108,7 @@ export interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
104
108
  * @deprecated использовать onHover
105
109
  */
106
110
  hoverIndex?: number;
107
- }
111
+ } & HTMLAttributes<HTMLDivElement>;
108
112
  export declare type HandleGlobalToggleType = (opened: boolean, event: SyntheticEvent | Event) => void;
109
113
  export declare type PlacementType = 'auto' | 'top-start' | 'right-start' | 'bottom-start' | 'left-start';
110
114
  export declare type FloatingPopoverProps = {
@@ -130,5 +134,6 @@ export declare type ItemContext = {
130
134
  onItemClick: DropdownProps['onItemClick'];
131
135
  hasArrow: DropdownProps['hasArrow'];
132
136
  treeId: string;
137
+ renderItem: DropdownProps['renderItem'];
133
138
  };
134
139
  //# sourceMappingURL=Dropdown.types.d.ts.map
@@ -1 +1 @@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,kBAAkB,EAAE,sBAAsB,CAAC;IAC3C,aAAa,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC9C,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC5C,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC1C,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;CAC3C,CAAC"}
@@ -4,4 +4,5 @@ export { useKeyNavigation as useDropdownKeyNavigation } from './hooks/useKeyboar
4
4
  export type { DropdownProps, DropdownPlacementBasic, DropdownPlacement, DropdownTrigger, } from './ui/DropdownOld/Dropdown.types';
5
5
  export type { DropdownItemProps, DropdownItemOption } from './ui/DropdownItem/DropdownItem.type';
6
6
  export * from './ui';
7
+ export type { DropdownProps as DropdownNewProps } from './Dropdown.types';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,gBAAgB,IAAI,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,YAAY,EACR,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,GAClB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACjG,cAAc,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,gBAAgB,IAAI,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,YAAY,EACR,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,GAClB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACjG,cAAc,MAAM,CAAC;AAErB,YAAY,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAqB,EAAE,EAAc,MAAM,OAAO,CAAC;AASjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA8G9C,CAAC"}
1
+ {"version":3,"file":"DropdownItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAqB,EAAE,EAAc,MAAM,OAAO,CAAC;AAgBjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAmH9C,CAAC"}
@@ -39,4 +39,5 @@ export declare const Divider: import("@linaria/react").StyledComponent<import("r
39
39
  export declare const Wrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & {
40
40
  variant: DropdownProps['variant'];
41
41
  }>;
42
+ export declare const RenderItemWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
42
43
  //# sourceMappingURL=DropdownItem.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAOrD,eAAO,MAAM,WAAW,qKAgBvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qGAAiB,CAAC;AAEzC,eAAO,MAAM,qBAAqB,qKAGjC,CAAC;AAEF,eAAO,MAAM,OAAO;aAAyB,aAAa,CAAC,SAAS,CAAC;EASpE,CAAC;AAEF,eAAO,MAAM,OAAO;aAAwB,aAAa,CAAC,SAAS,CAAC;EAmDnE,CAAC"}
1
+ {"version":3,"file":"DropdownItem.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAOrD,eAAO,MAAM,WAAW,qKAgBvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qGAAiB,CAAC;AAEzC,eAAO,MAAM,qBAAqB,qKAGjC,CAAC;AAEF,eAAO,MAAM,OAAO;aAAyB,aAAa,CAAC,SAAS,CAAC;EASpE,CAAC;AAEF,eAAO,MAAM,OAAO;aAAwB,aAAa,CAAC,SAAS,CAAC;EAmDnE,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAG7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4F,MAAM,OAAO,CAAC;AAGjH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAiB1C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIrE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,UAAU,SAAU,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC,kJAuUzF,CAAC;AAEP,eAAO,MAAM,YAAY;;;mBAzUQ,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC;;;;;;;;;CAqV9F,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4F,MAAM,OAAO,CAAC;AAGjH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAiB1C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIrE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,UAAU,SAAU,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC,kJAsUzF,CAAC;AAEP,eAAO,MAAM,YAAY;;;mBAxUQ,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC;;;;;;;;;CAoV9F,CAAC"}