@salutejs/plasma-new-hope 0.69.0-dev.0 → 0.70.0-canary.1161.8546427267.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. package/cjs/components/Combobox/Combobox.css +4 -4
  2. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  3. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  4. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  5. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  6. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  7. package/cjs/components/Dropdown/Dropdown.css +4 -4
  8. package/cjs/components/Dropdown/Dropdown.js +0 -1
  9. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  10. package/cjs/components/Pagination/Pagination.css +4 -4
  11. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  12. package/cjs/components/Popover/Popover.css +4 -4
  13. package/cjs/components/Popover/Popover.js +7 -18
  14. package/cjs/components/Popover/Popover.js.map +1 -1
  15. package/cjs/components/Popover/Popover.styles.js +1 -1
  16. package/cjs/components/Popover/Popover.styles.js.map +1 -1
  17. package/cjs/components/Popover/{Popover.styles_1rk9t6z.css → Popover.styles_1ggb66y.css} +1 -1
  18. package/cjs/components/Select/Select.css +4 -4
  19. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  20. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +40 -0
  21. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  22. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +12 -0
  23. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  24. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  25. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +9 -0
  26. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  27. package/cjs/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
  28. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +9 -0
  29. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  30. package/cjs/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
  31. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  32. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +40 -0
  33. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  34. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +12 -0
  35. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  36. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  37. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +9 -0
  38. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  39. package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  40. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +9 -0
  41. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  42. package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  43. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  44. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +40 -0
  45. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  46. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +12 -0
  47. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  48. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  49. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +9 -0
  50. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  51. package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  52. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +9 -0
  53. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  54. package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  55. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  56. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +40 -0
  57. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  58. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +12 -0
  59. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  60. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  61. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +9 -0
  62. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  63. package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  64. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +9 -0
  65. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  66. package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  67. package/cjs/components/Select/ui/SelectItem/SelectItem.css +4 -4
  68. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  69. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  70. package/cjs/index.css +28 -28
  71. package/cjs/index.js +39 -4
  72. package/cjs/index.js.map +1 -1
  73. package/cjs/utils/index.js +13 -1
  74. package/cjs/utils/index.js.map +1 -1
  75. package/cjs/utils/react.js +12 -2
  76. package/cjs/utils/react.js.map +1 -1
  77. package/es/components/Combobox/Combobox.css +4 -4
  78. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  79. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  80. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  81. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  82. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  83. package/es/components/Dropdown/Dropdown.css +4 -4
  84. package/es/components/Dropdown/Dropdown.js +0 -1
  85. package/es/components/Dropdown/Dropdown.js.map +1 -1
  86. package/es/components/Pagination/Pagination.css +4 -4
  87. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  88. package/es/components/Popover/Popover.css +4 -4
  89. package/es/components/Popover/Popover.js +7 -18
  90. package/es/components/Popover/Popover.js.map +1 -1
  91. package/es/components/Popover/Popover.styles.js +1 -1
  92. package/es/components/Popover/Popover.styles.js.map +1 -1
  93. package/es/components/Popover/{Popover.styles_1rk9t6z.css → Popover.styles_1ggb66y.css} +1 -1
  94. package/es/components/Select/Select.css +4 -4
  95. package/es/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  96. package/es/components/Select/ui/SelectDivider/SelectDivider.js +35 -0
  97. package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  98. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +7 -0
  99. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  100. package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  101. package/es/components/Select/ui/SelectDivider/variations/_size/base.js +5 -0
  102. package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  103. package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
  104. package/es/components/Select/ui/SelectDivider/variations/_view/base.js +5 -0
  105. package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  106. package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
  107. package/es/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  108. package/es/components/Select/ui/SelectFooter/SelectFooter.js +35 -0
  109. package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  110. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +7 -0
  111. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  112. package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  113. package/es/components/Select/ui/SelectFooter/variations/_size/base.js +5 -0
  114. package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  115. package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  116. package/es/components/Select/ui/SelectFooter/variations/_view/base.js +5 -0
  117. package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  118. package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  119. package/es/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  120. package/es/components/Select/ui/SelectGroup/SelectGroup.js +35 -0
  121. package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  122. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +7 -0
  123. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  124. package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  125. package/es/components/Select/ui/SelectGroup/variations/_size/base.js +5 -0
  126. package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  127. package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  128. package/es/components/Select/ui/SelectGroup/variations/_view/base.js +5 -0
  129. package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  130. package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  131. package/es/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  132. package/es/components/Select/ui/SelectHeader/SelectHeader.js +35 -0
  133. package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  134. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +7 -0
  135. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  136. package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  137. package/es/components/Select/ui/SelectHeader/variations/_size/base.js +5 -0
  138. package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  139. package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  140. package/es/components/Select/ui/SelectHeader/variations/_view/base.js +5 -0
  141. package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  142. package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  143. package/es/components/Select/ui/SelectItem/SelectItem.css +4 -4
  144. package/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  145. package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  146. package/es/index.css +28 -28
  147. package/es/index.js +13 -0
  148. package/es/index.js.map +1 -1
  149. package/es/utils/index.js +11 -2
  150. package/es/utils/index.js.map +1 -1
  151. package/es/utils/react.js +9 -2
  152. package/es/utils/react.js.map +1 -1
  153. package/package.json +2 -2
  154. package/styled-components/cjs/components/Dropdown/Dropdown.js +0 -1
  155. package/styled-components/cjs/components/Popover/Popover.js +7 -18
  156. package/styled-components/cjs/components/Popover/Popover.styles.js +1 -1
  157. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  158. package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  159. package/styled-components/cjs/index.js +22 -0
  160. package/styled-components/es/components/Dropdown/Dropdown.js +0 -1
  161. package/styled-components/es/components/Popover/Popover.js +7 -18
  162. package/styled-components/es/components/Popover/Popover.styles.js +1 -1
  163. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  164. package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  165. package/styled-components/es/index.js +2 -0
  166. package/types/components/Combobox/Combobox.styles.d.ts +2 -8
  167. package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
  168. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  169. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -7
  170. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  171. package/types/components/Popover/Popover.d.ts +2 -2
  172. package/types/components/Popover/Popover.d.ts.map +1 -1
  173. package/types/components/Popover/Popover.styles.d.ts.map +1 -1
  174. package/types/components/Popover/Popover.types.d.ts +12 -19
  175. package/types/components/Popover/Popover.types.d.ts.map +1 -1
  176. package/types/components/Select/Select.styles.d.ts +2 -8
  177. package/types/components/Select/Select.styles.d.ts.map +1 -1
  178. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +1 -1
  179. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +1 -7
  180. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
  181. package/types/examples/plasma_web/components/Popover/Popover.d.ts +1 -7
  182. package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
  183. package/types/examples/sds_engineer/components/Popover/Popover.d.ts +1 -7
  184. package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
  185. package/types/index.d.ts +2 -0
  186. package/types/index.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"react.js","sources":["../../src/utils/react.ts"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\n\n// NOTE: для next.js важно, чтобы путь до хука был полный, т.к. есть проблемы с ре-экспортом\nimport { useUniqId } from '../hooks/useUniqId';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst { useId } = React as any;\n\nexport const IS_REACT_18 = ReactDOM.version.split('.')[0] === '18';\n\nexport const safeUseId: () => string = !IS_REACT_18 ? useUniqId : useId;\n"],"names":["ReactDOM","version","split"],"mappings":";;;AAS2BA,QAAQ,CAACC,OAAO,CAACC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK"}
1
+ {"version":3,"file":"react.js","sources":["../../src/utils/react.ts"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\n\n// NOTE: для next.js важно, чтобы путь до хука был полный, т.к. есть проблемы с ре-экспортом\nimport { useUniqId } from '../hooks/useUniqId';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst { useId } = React as any;\n\nexport const IS_REACT_18 = ReactDOM.version.split('.')[0] === '18';\n\nexport const safeUseId: () => string = !IS_REACT_18 ? useUniqId : useId;\n"],"names":["_ref","React","useId","IS_REACT_18","ReactDOM","version","split","safeUseId","useUniqId"],"mappings":";;;;AAMA;AACA,IAAAA,IAAA,GAAkBC,KAAK;EAAfC,KAAK,GAAAF,IAAA,CAALE,KAAK,CAAA;IAEAC,WAAW,GAAGC,QAAQ,CAACC,OAAO,CAACC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,KAAI;AAE3D,IAAMC,SAAuB,GAAG,CAACJ,WAAW,GAAGK,SAAS,GAAGN;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.69.0-dev.0",
3
+ "version": "0.70.0-canary.1161.8546427267.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -102,5 +102,5 @@
102
102
  "react-popper": "2.3.0",
103
103
  "storeon": "3.1.5"
104
104
  },
105
- "gitHead": "87ecb61f7c2470663e1c67e29b0ed0938c6fd408"
105
+ "gitHead": "f58910ddc0e886adc386cf43fb6dcb6c218b52aa"
106
106
  }
@@ -71,7 +71,6 @@ var dropdownRoot = exports.dropdownRoot = function dropdownRoot(Root) {
71
71
  placement: (0, _utils.getPlacements)(placement),
72
72
  trigger: trigger,
73
73
  closeOnOverlayClick: closeOnOverlayClick,
74
- closeOnBeyondTargetHover: false,
75
74
  closeOnEsc: closeOnEsc,
76
75
  isFocusTrapped: isFocusTrapped,
77
76
  frame: frame
@@ -66,14 +66,6 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
66
66
  view = props.view,
67
67
  onToggle = props.onToggle,
68
68
  rest = _objectWithoutProperties(props, _excluded);
69
- var closeOnOverlayClick = true;
70
- var closeOnBeyondTargetHover = true;
71
- if (props.trigger === 'click' && props.closeOnOverlayClick === false) {
72
- closeOnOverlayClick = false;
73
- }
74
- if (props.trigger === 'hover' && props.closeOnBeyondTargetHover === false) {
75
- closeOnBeyondTargetHover = false;
76
- }
77
69
  var rootRef = (0, _react.useRef)(null);
78
70
  var popoverRef = (0, _react.useRef)(null);
79
71
  var handleRef = (0, _plasmaCore.useForkRef)(rootRef, outerRootRef);
@@ -129,7 +121,7 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
129
121
  }
130
122
  }, [closeOnEsc, isOpen, onToggle]);
131
123
  var onDocumentClick = (0, _react.useCallback)(function (event) {
132
- if (isOpen && closeOnOverlayClick && onToggle) {
124
+ if (isOpen && props.closeOnOverlayClick && onToggle) {
133
125
  var _rootRef$current;
134
126
  var targetIsRoot = event.target === rootRef.current;
135
127
  var rootHasTarget = (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.contains(event.target);
@@ -137,7 +129,7 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
137
129
  onToggle(false, event);
138
130
  }
139
131
  }
140
- }, [closeOnOverlayClick, isOpen, onToggle]);
132
+ }, [props.closeOnOverlayClick, isOpen, onToggle]);
141
133
  var onClick = (0, _react.useCallback)(function (event) {
142
134
  if (trigger === 'click') {
143
135
  var _popoverRef$current;
@@ -173,7 +165,7 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
173
165
  return function () {
174
166
  return document.removeEventListener('click', onDocumentClick);
175
167
  };
176
- }, [closeOnOverlayClick, isOpen, onToggle]);
168
+ }, [isOpen, onToggle]);
177
169
  (0, _react.useEffect)(function () {
178
170
  window.addEventListener('keydown', onEscape);
179
171
  return function () {
@@ -220,22 +212,19 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
220
212
  Promise.resolve().then(forceUpdate);
221
213
  }, [isOpen, children, forceUpdate]);
222
214
  return /*#__PURE__*/_react["default"].createElement(_Popover.StyledWrapper, {
223
- className: _Popover2.classes.wrapper
215
+ className: _Popover2.classes.wrapper,
216
+ onMouseEnter: onMouseEnter,
217
+ onMouseLeave: onMouseLeave
224
218
  }, /*#__PURE__*/_react["default"].createElement(_Popover.StyledRoot, {
225
219
  ref: handleRef,
226
220
  onClick: onClick,
227
- onMouseEnter: onMouseEnter,
228
- onMouseLeave: onMouseLeave,
229
221
  onFocus: onFocus,
230
222
  onBlur: onBlur,
231
223
  className: (0, _utils.cx)(className, _Popover2.classes.target)
232
224
  }, target), children && portalRef.current && /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/_react["default"].createElement(Root, _extends({
233
225
  view: view,
234
226
  className: className
235
- }, rest, {
236
- onMouseEnter: closeOnBeyondTargetHover ? undefined : onMouseEnter,
237
- onMouseLeave: closeOnBeyondTargetHover ? undefined : onMouseEnter
238
- }), /*#__PURE__*/_react["default"].createElement(_Popover.StyledPopover, _extends({}, attributes.popper, {
227
+ }, rest), /*#__PURE__*/_react["default"].createElement(_Popover.StyledPopover, _extends({}, attributes.popper, {
239
228
  className: _Popover2.classes.root,
240
229
  ref: popoverForkRef,
241
230
  style: _objectSpread(_objectSpread(_objectSpread({}, styles.popper), {
@@ -10,7 +10,7 @@ var _Popover = /*#__PURE__*/require("./Popover.tokens");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
  var StyledWrapper = exports.StyledWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
12
12
  componentId: "plasma-new-hope__sc-tnpyex-0"
13
- })([""]);
13
+ })(["display:inline-block;"]);
14
14
  var StyledRoot = exports.StyledRoot = /*#__PURE__*/_styledComponents["default"].div.withConfig({
15
15
  componentId: "plasma-new-hope__sc-tnpyex-1"
16
16
  })(["display:inline-flex;box-sizing:border-box;position:relative;"]);
@@ -120,7 +120,8 @@ var SelectTarget = exports.SelectTarget = /*#__PURE__*/(0, _react.forwardRef)(fu
120
120
  "aria-label": label,
121
121
  className: (0, _utils.cx)(withInnerLabelUp, withHasChips, withNoFocus, selectTarget),
122
122
  onWheel: onWheel,
123
- onKeyDown: onKeyDown
123
+ onKeyDown: onKeyDown,
124
+ stretching: "filled"
124
125
  }), hasText && (enumerationType === 'comma' || target === 'button-like' ? /*#__PURE__*/_react["default"].createElement(_SelectTarget.StyledText, {
125
126
  className: selectTargeText
126
127
  }, textContent) : /*#__PURE__*/_react["default"].createElement(_SelectTarget.StyledChipsWrapper, {
@@ -33,12 +33,6 @@ const meta: Meta<typeof Popover> = {
33
33
  },
34
34
  table: { defaultValue: { summary: true } },
35
35
  },
36
- closeOnBeyondTargetHover: {
37
- control: {
38
- type: 'boolean',
39
- },
40
- table: { defaultValue: { summary: true } },
41
- },
42
36
  closeOnEsc: {
43
37
  control: {
44
38
  type: 'boolean',
@@ -68,7 +62,6 @@ const meta: Meta<typeof Popover> = {
68
62
  placement: 'bottom',
69
63
  trigger: 'click',
70
64
  closeOnOverlayClick: true,
71
- closeOnBeyondTargetHover: true,
72
65
  closeOnEsc: true,
73
66
  isFocusTrapped: true,
74
67
  skidding: 0,
@@ -36,6 +36,17 @@ Object.keys(_hooks).forEach(function (key) {
36
36
  }
37
37
  });
38
38
  });
39
+ var _utils = /*#__PURE__*/require("./utils");
40
+ Object.keys(_utils).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _utils[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function get() {
46
+ return _utils[key];
47
+ }
48
+ });
49
+ });
39
50
  var _Button = /*#__PURE__*/require("./components/Button");
40
51
  Object.keys(_Button).forEach(function (key) {
41
52
  if (key === "default" || key === "__esModule") return;
@@ -454,6 +465,17 @@ Object.keys(_Progress).forEach(function (key) {
454
465
  }
455
466
  });
456
467
  });
468
+ var _Select = /*#__PURE__*/require("./components/Select");
469
+ Object.keys(_Select).forEach(function (key) {
470
+ if (key === "default" || key === "__esModule") return;
471
+ if (key in exports && exports[key] === _Select[key]) return;
472
+ Object.defineProperty(exports, key, {
473
+ enumerable: true,
474
+ get: function get() {
475
+ return _Select[key];
476
+ }
477
+ });
478
+ });
457
479
  var _Divider = /*#__PURE__*/require("./components/Divider");
458
480
  Object.keys(_Divider).forEach(function (key) {
459
481
  if (key === "default" || key === "__esModule") return;
@@ -62,7 +62,6 @@ export var dropdownRoot = function dropdownRoot(Root) {
62
62
  placement: getPlacements(placement),
63
63
  trigger: trigger,
64
64
  closeOnOverlayClick: closeOnOverlayClick,
65
- closeOnBeyondTargetHover: false,
66
65
  closeOnEsc: closeOnEsc,
67
66
  isFocusTrapped: isFocusTrapped,
68
67
  frame: frame
@@ -57,14 +57,6 @@ export var popoverRoot = function popoverRoot(Root) {
57
57
  view = props.view,
58
58
  onToggle = props.onToggle,
59
59
  rest = _objectWithoutProperties(props, _excluded);
60
- var closeOnOverlayClick = true;
61
- var closeOnBeyondTargetHover = true;
62
- if (props.trigger === 'click' && props.closeOnOverlayClick === false) {
63
- closeOnOverlayClick = false;
64
- }
65
- if (props.trigger === 'hover' && props.closeOnBeyondTargetHover === false) {
66
- closeOnBeyondTargetHover = false;
67
- }
68
60
  var rootRef = useRef(null);
69
61
  var popoverRef = useRef(null);
70
62
  var handleRef = useForkRef(rootRef, outerRootRef);
@@ -120,7 +112,7 @@ export var popoverRoot = function popoverRoot(Root) {
120
112
  }
121
113
  }, [closeOnEsc, isOpen, onToggle]);
122
114
  var onDocumentClick = useCallback(function (event) {
123
- if (isOpen && closeOnOverlayClick && onToggle) {
115
+ if (isOpen && props.closeOnOverlayClick && onToggle) {
124
116
  var _rootRef$current;
125
117
  var targetIsRoot = event.target === rootRef.current;
126
118
  var rootHasTarget = (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.contains(event.target);
@@ -128,7 +120,7 @@ export var popoverRoot = function popoverRoot(Root) {
128
120
  onToggle(false, event);
129
121
  }
130
122
  }
131
- }, [closeOnOverlayClick, isOpen, onToggle]);
123
+ }, [props.closeOnOverlayClick, isOpen, onToggle]);
132
124
  var onClick = useCallback(function (event) {
133
125
  if (trigger === 'click') {
134
126
  var _popoverRef$current;
@@ -164,7 +156,7 @@ export var popoverRoot = function popoverRoot(Root) {
164
156
  return function () {
165
157
  return document.removeEventListener('click', onDocumentClick);
166
158
  };
167
- }, [closeOnOverlayClick, isOpen, onToggle]);
159
+ }, [isOpen, onToggle]);
168
160
  useEffect(function () {
169
161
  window.addEventListener('keydown', onEscape);
170
162
  return function () {
@@ -211,22 +203,19 @@ export var popoverRoot = function popoverRoot(Root) {
211
203
  Promise.resolve().then(forceUpdate);
212
204
  }, [isOpen, children, forceUpdate]);
213
205
  return /*#__PURE__*/React.createElement(StyledWrapper, {
214
- className: classes.wrapper
206
+ className: classes.wrapper,
207
+ onMouseEnter: onMouseEnter,
208
+ onMouseLeave: onMouseLeave
215
209
  }, /*#__PURE__*/React.createElement(StyledRoot, {
216
210
  ref: handleRef,
217
211
  onClick: onClick,
218
- onMouseEnter: onMouseEnter,
219
- onMouseLeave: onMouseLeave,
220
212
  onFocus: onFocus,
221
213
  onBlur: onBlur,
222
214
  className: cx(className, classes.target)
223
215
  }, target), children && portalRef.current && /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Root, _extends({
224
216
  view: view,
225
217
  className: className
226
- }, rest, {
227
- onMouseEnter: closeOnBeyondTargetHover ? undefined : onMouseEnter,
228
- onMouseLeave: closeOnBeyondTargetHover ? undefined : onMouseEnter
229
- }), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
218
+ }, rest), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
230
219
  className: classes.root,
231
220
  ref: popoverForkRef,
232
221
  style: _objectSpread(_objectSpread(_objectSpread({}, styles.popper), {
@@ -3,7 +3,7 @@ import { DEFAULT_Z_INDEX } from '../Popup/utils';
3
3
  import { classes, tokens } from './Popover.tokens';
4
4
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
5
5
  componentId: "plasma-new-hope__sc-tnpyex-0"
6
- })([""]);
6
+ })(["display:inline-block;"]);
7
7
  export var StyledRoot = /*#__PURE__*/styled.div.withConfig({
8
8
  componentId: "plasma-new-hope__sc-tnpyex-1"
9
9
  })(["display:inline-flex;box-sizing:border-box;position:relative;"]);
@@ -111,7 +111,8 @@ export var SelectTarget = /*#__PURE__*/forwardRef(function (_ref, ref) {
111
111
  "aria-label": label,
112
112
  className: cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget),
113
113
  onWheel: onWheel,
114
- onKeyDown: onKeyDown
114
+ onKeyDown: onKeyDown,
115
+ stretching: "filled"
115
116
  }), hasText && (enumerationType === 'comma' || target === 'button-like' ? /*#__PURE__*/React.createElement(StyledText, {
116
117
  className: selectTargeText
117
118
  }, textContent) : /*#__PURE__*/React.createElement(StyledChipsWrapper, {
@@ -33,12 +33,6 @@ const meta: Meta<typeof Popover> = {
33
33
  },
34
34
  table: { defaultValue: { summary: true } },
35
35
  },
36
- closeOnBeyondTargetHover: {
37
- control: {
38
- type: 'boolean',
39
- },
40
- table: { defaultValue: { summary: true } },
41
- },
42
36
  closeOnEsc: {
43
37
  control: {
44
38
  type: 'boolean',
@@ -68,7 +62,6 @@ const meta: Meta<typeof Popover> = {
68
62
  placement: 'bottom',
69
63
  trigger: 'click',
70
64
  closeOnOverlayClick: true,
71
- closeOnBeyondTargetHover: true,
72
65
  closeOnEsc: true,
73
66
  isFocusTrapped: true,
74
67
  skidding: 0,
@@ -3,6 +3,7 @@
3
3
  export * from './mixins';
4
4
  export * from './engines';
5
5
  export * from './hooks';
6
+ export * from './utils';
6
7
  export * from './components/Button';
7
8
  export * from './components/ButtonGroup';
8
9
  export * from './components/Chip';
@@ -42,5 +43,6 @@ export * from './components/Indicator';
42
43
  export * from './components/ButtonBase';
43
44
  export * from './components/Grid';
44
45
  export * from './components/Progress';
46
+ export * from './components/Select';
45
47
  export * from './components/Divider';
46
48
  export * from './components/Toolbar';
@@ -3,17 +3,11 @@ export declare const StyledRoot: import("@linaria/react").StyledComponent<import
3
3
  export declare const StyledCombobox: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
4
  export declare const StyledPopover: import("@linaria/react").StyledComponent<{
5
5
  selectWidth?: number | undefined;
6
- } & (import("../../engines/types").PropsType<{
6
+ } & import("../../engines/types").PropsType<{
7
7
  view: {
8
8
  css: import("@linaria/core").LinariaClassName;
9
9
  };
10
- }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
11
- trigger?: "click" | undefined;
12
- closeOnOverlayClick?: boolean | undefined;
13
- } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
14
- trigger?: "hover" | undefined;
15
- closeOnBeyondTargetHover?: boolean | undefined;
16
- } & import("react").RefAttributes<HTMLDivElement>)))>;
10
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
17
11
  export declare const ComboboxItemNotFound: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
18
12
  export declare const StyledNativeSelect: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSelectElement> & import("react").SelectHTMLAttributes<HTMLSelectElement> & Record<never, unknown>>;
19
13
  //# sourceMappingURL=Combobox.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.styles.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,UAAU,qKAGtB,CAAC;AAEF,eAAO,MAAM,cAAc,qKAY1B,CAAC;AAKF,eAAO,MAAM,aAAa;;;;;;;;;;;;qDAMzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,qKAUhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,iLAY9B,CAAC"}
1
+ {"version":3,"file":"Combobox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.styles.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,UAAU,qKAGtB,CAAC;AAEF,eAAO,MAAM,cAAc,qKAY1B,CAAC;AAKF,eAAO,MAAM,aAAa;;;;;;4JAMzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,qKAUhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,iLAY9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,aAAa,CAAC,iKA8DtE,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBAhEQ,UAAU,cAAc,EAAE,aAAa,CAAC;;;;;;;;;;;;;;CAiF1E,CAAC"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,aAAa,CAAC,iKA6DtE,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBA/DQ,UAAU,cAAc,EAAE,aAAa,CAAC;;;;;;;;;;;;;;CAgF1E,CAAC"}
@@ -3,12 +3,6 @@ export declare const StyledPopover: import("@linaria/react").StyledMeta & import
3
3
  view: {
4
4
  css: import("@linaria/core").LinariaClassName;
5
5
  };
6
- }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
7
- trigger?: "click" | undefined;
8
- closeOnOverlayClick?: boolean | undefined;
9
- } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
10
- trigger?: "hover" | undefined;
11
- closeOnBeyondTargetHover?: boolean | undefined;
12
- } & import("react").RefAttributes<HTMLDivElement>))>;
6
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
13
7
  export declare const StyledDropdown: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
14
8
  //# sourceMappingURL=Dropdown.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.styles.ts"],"names":[],"mappings":";AAUA,eAAO,MAAM,aAAa;;;;;;;;;;oDAIzB,CAAC;AAEF,eAAO,MAAM,cAAc,qKAY1B,CAAC"}
1
+ {"version":3,"file":"Dropdown.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.styles.ts"],"names":[],"mappings":";AAUA,eAAO,MAAM,aAAa;;;;4JAIzB,CAAC;AAEF,eAAO,MAAM,cAAc,qKAY1B,CAAC"}
@@ -7,11 +7,11 @@ export declare const POPOVER_PORTAL_ID = "plasma-popover-root";
7
7
  * Всплывающее окно с возможностью позиционирования
8
8
  * и вызова по клику либо ховеру.
9
9
  */
10
- export declare const popoverRoot: (Root: RootProps<HTMLDivElement, PopoverProps>) => React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
10
+ export declare const popoverRoot: (Root: RootProps<HTMLDivElement, PopoverProps>) => React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & import("./Popover.types").CustomPopoverProps & React.RefAttributes<HTMLDivElement>>;
11
11
  export declare const popoverConfig: {
12
12
  name: string;
13
13
  tag: string;
14
- layout: (Root: RootProps<HTMLDivElement, PopoverProps>) => React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
14
+ layout: (Root: RootProps<HTMLDivElement, PopoverProps>) => React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & import("./Popover.types").CustomPopoverProps & React.RefAttributes<HTMLDivElement>>;
15
15
  base: string;
16
16
  variations: {
17
17
  view: {
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+D,MAAM,OAAO,CAAC;AAMpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAItE,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,WAAW,SAAU,UAAU,cAAc,EAAE,YAAY,CAAC,wFAsQnE,CAAC;AAEP,eAAO,MAAM,aAAa;;;mBAxQQ,UAAU,cAAc,EAAE,YAAY,CAAC;;;;;;;;;;CAqRxE,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+D,MAAM,OAAO,CAAC;AAMpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAItE,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,WAAW,SAAU,UAAU,cAAc,EAAE,YAAY,CAAC,+JAoPnE,CAAC;AAEP,eAAO,MAAM,aAAa;;;mBAtPQ,UAAU,cAAc,EAAE,YAAY,CAAC;;;;;;;;;;CAmQxE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,aAAa,qKAAe,CAAC;AAC1C,eAAO,MAAM,UAAU,qKAItB,CAAC;AAEF,eAAO,MAAM,WAAW,qKAcvB,CAAC;AAEF,eAAO,MAAM,aAAa,2KA8DzB,CAAC"}
1
+ {"version":3,"file":"Popover.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,aAAa,qKAEzB,CAAC;AAEF,eAAO,MAAM,UAAU,qKAItB,CAAC;AAEF,eAAO,MAAM,WAAW,qKAcvB,CAAC;AAEF,eAAO,MAAM,aAAa,2KA8DzB,CAAC"}
@@ -2,11 +2,18 @@ import { Placement, ComputedPlacement } from '@popperjs/core';
2
2
  import type { HTMLAttributes, ReactNode, SyntheticEvent } from 'react';
3
3
  export declare type PopoverPlacementBasic = ComputedPlacement;
4
4
  export declare type PopoverPlacement = Placement;
5
+ export declare type PopoverTrigger = 'hover' | 'click';
5
6
  export declare type CustomPopoverProps = {
6
7
  /**
7
8
  * Всплывающее окно раскрыто или нет.
8
9
  */
9
10
  isOpen?: boolean;
11
+ /**
12
+ * Способ открытия всплывающего окна - наведение или клик мышью.
13
+ * @default
14
+ * click
15
+ */
16
+ trigger?: PopoverTrigger;
10
17
  /**
11
18
  * Сторона открытия окна относительно target элемента.
12
19
  * @default
@@ -59,6 +66,10 @@ export declare type CustomPopoverProps = {
59
66
  * true
60
67
  */
61
68
  closeOnEsc?: boolean;
69
+ /**
70
+ * Закрывать окно при нажатии вне области окна. (Если trigger === 'click')
71
+ */
72
+ closeOnOverlayClick?: boolean;
62
73
  /**
63
74
  * Находится ли в портале.
64
75
  * @default
@@ -67,23 +78,5 @@ export declare type CustomPopoverProps = {
67
78
  usePortal?: boolean;
68
79
  view?: string;
69
80
  };
70
- export declare type PopoverTrigger = {
71
- /**
72
- * Способ открытия всплывающего окна - наведение или клик мышью.
73
- * @default
74
- * click
75
- */
76
- trigger?: 'click';
77
- /**
78
- * Закрывать окно при нажатии вне области окна. (Если trigger === 'click')
79
- */
80
- closeOnOverlayClick?: boolean;
81
- } | {
82
- trigger?: 'hover';
83
- /**
84
- * Закрывать окно при наведении вне области target-элемента. (Если trigger === 'hover')
85
- */
86
- closeOnBeyondTargetHover?: boolean;
87
- };
88
- export declare type PopoverProps = HTMLAttributes<HTMLDivElement> & CustomPopoverProps & PopoverTrigger;
81
+ export declare type PopoverProps = HTMLAttributes<HTMLDivElement> & CustomPopoverProps;
89
82
  //# sourceMappingURL=Popover.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.types.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvE,oBAAY,qBAAqB,GAAG,iBAAiB,CAAC;AACtD,oBAAY,gBAAgB,GAAG,SAAS,CAAC;AAEzC,oBAAY,kBAAkB,GAAG;IAC7B;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OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC"}
@@ -3,16 +3,10 @@ export declare const StyledRoot: import("@linaria/react").StyledComponent<import
3
3
  export declare const StyledSelect: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
4
  export declare const StyledPopover: import("@linaria/react").StyledComponent<{
5
5
  selectWidth?: number | undefined;
6
- } & (import("../../engines/types").PropsType<{
6
+ } & import("../../engines/types").PropsType<{
7
7
  view: {
8
8
  css: import("@linaria/core").LinariaClassName;
9
9
  };
10
- }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
11
- trigger?: "click" | undefined;
12
- closeOnOverlayClick?: boolean | undefined;
13
- } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
14
- trigger?: "hover" | undefined;
15
- closeOnBeyondTargetHover?: boolean | undefined;
16
- } & import("react").RefAttributes<HTMLDivElement>)))>;
10
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
17
11
  export declare const StyledNativeSelect: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSelectElement> & import("react").SelectHTMLAttributes<HTMLSelectElement> & Record<never, unknown>>;
18
12
  //# sourceMappingURL=Select.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,UAAU,qKAOtB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAaxB,CAAC;AAKF,eAAO,MAAM,aAAa;;;;;;;;;;;;qDAMzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,iLAwB9B,CAAC"}
1
+ {"version":3,"file":"Select.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,UAAU,qKAOtB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAaxB,CAAC;AAKF,eAAO,MAAM,aAAa;;;;;;4JAMzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,iLAwB9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectTarget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/ui/SelectTarget/SelectTarget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAgB/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAa9D;;GAEG;AACH,eAAO,MAAM,YAAY,6FAuIxB,CAAC"}
1
+ {"version":3,"file":"SelectTarget.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/ui/SelectTarget/SelectTarget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAgB/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAa9D;;GAEG;AACH,eAAO,MAAM,YAAY,6FAwIxB,CAAC"}
@@ -4,11 +4,5 @@ export declare const Popover: import("react").FunctionComponent<import("../../..
4
4
  view: {
5
5
  default: import("@linaria/core").LinariaClassName;
6
6
  };
7
- }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
8
- trigger?: "click" | undefined;
9
- closeOnOverlayClick?: boolean | undefined;
10
- } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
11
- trigger?: "hover" | undefined;
12
- closeOnBeyondTargetHover?: boolean | undefined;
13
- } & import("react").RefAttributes<HTMLDivElement>))>;
7
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
14
8
  //# sourceMappingURL=Popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;;;;;;;oDAA0B,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;gLAA0B,CAAC"}
@@ -4,11 +4,5 @@ export declare const Popover: import("react").FunctionComponent<import("../../..
4
4
  view: {
5
5
  default: import("@linaria/core").LinariaClassName;
6
6
  };
7
- }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
8
- trigger?: "click" | undefined;
9
- closeOnOverlayClick?: boolean | undefined;
10
- } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
11
- trigger?: "hover" | undefined;
12
- closeOnBeyondTargetHover?: boolean | undefined;
13
- } & import("react").RefAttributes<HTMLDivElement>))>;
7
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
14
8
  //# sourceMappingURL=Popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;;;;;;;oDAA0B,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;gLAA0B,CAAC"}
@@ -4,11 +4,5 @@ export declare const Popover: import("react").FunctionComponent<import("../../..
4
4
  view: {
5
5
  default: import("@linaria/core").LinariaClassName;
6
6
  };
7
- }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
8
- trigger?: "click" | undefined;
9
- closeOnOverlayClick?: boolean | undefined;
10
- } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
11
- trigger?: "hover" | undefined;
12
- closeOnBeyondTargetHover?: boolean | undefined;
13
- } & import("react").RefAttributes<HTMLDivElement>))>;
7
+ }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
14
8
  //# sourceMappingURL=Popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;;;;;;;oDAA0B,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;gLAA0B,CAAC"}
package/types/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './mixins';
2
2
  export * from './engines';
3
3
  export * from './hooks';
4
+ export * from './utils';
4
5
  export * from './components/Button';
5
6
  export * from './components/ButtonGroup';
6
7
  export * from './components/Chip';
@@ -40,6 +41,7 @@ export * from './components/Indicator';
40
41
  export * from './components/ButtonBase';
41
42
  export * from './components/Grid';
42
43
  export * from './components/Progress';
44
+ export * from './components/Select';
43
45
  export * from './components/Divider';
44
46
  export * from './components/Toolbar';
45
47
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAs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