@salutejs/plasma-new-hope 0.71.1-dev.0 → 0.71.2-canary.1161.8606115048.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. package/cjs/components/Combobox/Combobox.css +10 -10
  2. package/cjs/components/Combobox/Combobox.styles.js +5 -5
  3. package/cjs/components/Combobox/Combobox.styles.js.map +1 -1
  4. package/cjs/components/Combobox/{Combobox.styles_17ei5vn.css → Combobox.styles_dw6hnk.css} +1 -1
  5. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  6. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  7. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  8. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  9. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  10. package/cjs/components/Dropdown/Dropdown.css +4 -4
  11. package/cjs/components/Dropdown/Dropdown.js +0 -1
  12. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  13. package/cjs/components/Pagination/Pagination.css +4 -4
  14. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  15. package/cjs/components/Popover/Popover.css +4 -4
  16. package/cjs/components/Popover/Popover.js +33 -43
  17. package/cjs/components/Popover/Popover.js.map +1 -1
  18. package/cjs/components/Popover/Popover.styles.js +1 -1
  19. package/cjs/components/Popover/Popover.styles.js.map +1 -1
  20. package/cjs/components/Popover/{Popover.styles_1rk9t6z.css → Popover.styles_1ggb66y.css} +1 -1
  21. package/cjs/components/Select/Select.css +4 -4
  22. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  23. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +40 -0
  24. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  25. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +12 -0
  26. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  27. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  28. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +9 -0
  29. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  30. package/cjs/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
  31. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +9 -0
  32. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  33. package/cjs/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
  34. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  35. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +40 -0
  36. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  37. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +12 -0
  38. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  39. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  40. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +9 -0
  41. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  42. package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  43. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +9 -0
  44. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  45. package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  46. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  47. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +40 -0
  48. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  49. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +12 -0
  50. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  51. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  52. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +9 -0
  53. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  54. package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  55. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +9 -0
  56. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  57. package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  58. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  59. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +40 -0
  60. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  61. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +12 -0
  62. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  63. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  64. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +9 -0
  65. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  66. package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  67. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +9 -0
  68. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  69. package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  70. package/cjs/components/Select/ui/SelectItem/SelectItem.css +4 -4
  71. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  72. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  73. package/cjs/index.css +33 -33
  74. package/cjs/index.js +39 -4
  75. package/cjs/index.js.map +1 -1
  76. package/cjs/utils/index.js +13 -1
  77. package/cjs/utils/index.js.map +1 -1
  78. package/cjs/utils/react.js +12 -2
  79. package/cjs/utils/react.js.map +1 -1
  80. package/es/components/Combobox/Combobox.css +10 -10
  81. package/es/components/Combobox/Combobox.styles.js +5 -5
  82. package/es/components/Combobox/Combobox.styles.js.map +1 -1
  83. package/es/components/Combobox/{Combobox.styles_17ei5vn.css → Combobox.styles_dw6hnk.css} +1 -1
  84. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  85. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  86. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  87. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  88. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  89. package/es/components/Dropdown/Dropdown.css +4 -4
  90. package/es/components/Dropdown/Dropdown.js +0 -1
  91. package/es/components/Dropdown/Dropdown.js.map +1 -1
  92. package/es/components/Pagination/Pagination.css +4 -4
  93. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  94. package/es/components/Popover/Popover.css +4 -4
  95. package/es/components/Popover/Popover.js +33 -43
  96. package/es/components/Popover/Popover.js.map +1 -1
  97. package/es/components/Popover/Popover.styles.js +1 -1
  98. package/es/components/Popover/Popover.styles.js.map +1 -1
  99. package/es/components/Popover/{Popover.styles_1rk9t6z.css → Popover.styles_1ggb66y.css} +1 -1
  100. package/es/components/Select/Select.css +4 -4
  101. package/es/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
  102. package/es/components/Select/ui/SelectDivider/SelectDivider.js +35 -0
  103. package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
  104. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +7 -0
  105. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
  106. package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
  107. package/es/components/Select/ui/SelectDivider/variations/_size/base.js +5 -0
  108. package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
  109. package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
  110. package/es/components/Select/ui/SelectDivider/variations/_view/base.js +5 -0
  111. package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
  112. package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
  113. package/es/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
  114. package/es/components/Select/ui/SelectFooter/SelectFooter.js +35 -0
  115. package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
  116. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +7 -0
  117. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
  118. package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
  119. package/es/components/Select/ui/SelectFooter/variations/_size/base.js +5 -0
  120. package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
  121. package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
  122. package/es/components/Select/ui/SelectFooter/variations/_view/base.js +5 -0
  123. package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
  124. package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
  125. package/es/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
  126. package/es/components/Select/ui/SelectGroup/SelectGroup.js +35 -0
  127. package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
  128. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +7 -0
  129. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
  130. package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
  131. package/es/components/Select/ui/SelectGroup/variations/_size/base.js +5 -0
  132. package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
  133. package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
  134. package/es/components/Select/ui/SelectGroup/variations/_view/base.js +5 -0
  135. package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
  136. package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
  137. package/es/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
  138. package/es/components/Select/ui/SelectHeader/SelectHeader.js +35 -0
  139. package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
  140. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +7 -0
  141. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
  142. package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
  143. package/es/components/Select/ui/SelectHeader/variations/_size/base.js +5 -0
  144. package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
  145. package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
  146. package/es/components/Select/ui/SelectHeader/variations/_view/base.js +5 -0
  147. package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
  148. package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
  149. package/es/components/Select/ui/SelectItem/SelectItem.css +4 -4
  150. package/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  151. package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  152. package/es/index.css +33 -33
  153. package/es/index.js +13 -0
  154. package/es/index.js.map +1 -1
  155. package/es/utils/index.js +11 -2
  156. package/es/utils/index.js.map +1 -1
  157. package/es/utils/react.js +9 -2
  158. package/es/utils/react.js.map +1 -1
  159. package/package.json +2 -2
  160. package/styled-components/cjs/components/Combobox/Combobox.styles.js +1 -1
  161. package/styled-components/cjs/components/Dropdown/Dropdown.js +0 -1
  162. package/styled-components/cjs/components/Popover/Popover.js +33 -43
  163. package/styled-components/cjs/components/Popover/Popover.styles.js +1 -1
  164. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  165. package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  166. package/styled-components/cjs/index.js +22 -0
  167. package/styled-components/es/components/Combobox/Combobox.styles.js +1 -1
  168. package/styled-components/es/components/Dropdown/Dropdown.js +0 -1
  169. package/styled-components/es/components/Popover/Popover.js +33 -43
  170. package/styled-components/es/components/Popover/Popover.styles.js +1 -1
  171. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
  172. package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
  173. package/styled-components/es/index.js +2 -0
  174. package/types/components/Combobox/Combobox.styles.d.ts +2 -8
  175. package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
  176. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  177. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -7
  178. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  179. package/types/components/Popover/Popover.d.ts +2 -2
  180. package/types/components/Popover/Popover.d.ts.map +1 -1
  181. package/types/components/Popover/Popover.styles.d.ts.map +1 -1
  182. package/types/components/Popover/Popover.types.d.ts +12 -19
  183. package/types/components/Popover/Popover.types.d.ts.map +1 -1
  184. package/types/components/Select/Select.styles.d.ts +2 -8
  185. package/types/components/Select/Select.styles.d.ts.map +1 -1
  186. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +1 -1
  187. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +1 -7
  188. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
  189. package/types/examples/plasma_web/components/Popover/Popover.d.ts +1 -7
  190. package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
  191. package/types/examples/sds_engineer/components/Popover/Popover.d.ts +1 -7
  192. package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
  193. package/types/index.d.ts +2 -0
  194. package/types/index.d.ts.map +1 -1
@@ -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;
@@ -4,7 +4,7 @@ import { popoverClasses, popoverConfig } from '../Popover';
4
4
  import { tokens } from './Combobox.tokens';
5
5
  export var StyledRoot = /*#__PURE__*/styled.div.withConfig({
6
6
  componentId: "plasma-new-hope__sc-gt7m6a-0"
7
- })(["width:100%;position:relative;"]);
7
+ })(["width:100%;position:relative;& .", "{display:block;}"], popoverClasses.wrapper);
8
8
  export var StyledCombobox = /*#__PURE__*/styled.div.withConfig({
9
9
  componentId: "plasma-new-hope__sc-gt7m6a-1"
10
10
  })(["box-sizing:border-box;background:var(", ");box-shadow:var(", ");border-radius:var(", ");width:var(", ");height:var(", ");padding:var(", ") var(", ") var(", ") var(", ");"], tokens.background, tokens.boxShadow, tokens.borderRadius, tokens.width, tokens.height, tokens.paddingTop, tokens.paddingRight, tokens.paddingBottom, tokens.paddingLeft);
@@ -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
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle"];
2
+ var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle", "closeOnOverlayClick"];
3
3
  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); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -30,41 +30,34 @@ export var POPOVER_PORTAL_ID = 'plasma-popover-root';
30
30
  * и вызова по клику либо ховеру.
31
31
  */
32
32
  export var popoverRoot = function popoverRoot(Root) {
33
- return /*#__PURE__*/forwardRef(function (props, outerRootRef) {
33
+ return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
34
34
  var _placement$;
35
- var target = props.target,
36
- children = props.children,
37
- isOpen = props.isOpen,
38
- _props$trigger = props.trigger,
39
- trigger = _props$trigger === void 0 ? 'click' : _props$trigger,
40
- hasArrow = props.hasArrow,
41
- _props$frame = props.frame,
42
- frame = _props$frame === void 0 ? 'document' : _props$frame,
43
- className = props.className,
44
- _props$placement = props.placement,
45
- placement = _props$placement === void 0 ? 'auto' : _props$placement,
46
- _props$offset = props.offset,
47
- offset = _props$offset === void 0 ? [0, 0] : _props$offset,
48
- zIndex = props.zIndex,
49
- _props$isFocusTrapped = props.isFocusTrapped,
50
- isFocusTrapped = _props$isFocusTrapped === void 0 ? true : _props$isFocusTrapped,
51
- _props$closeOnEsc = props.closeOnEsc,
52
- closeOnEsc = _props$closeOnEsc === void 0 ? true : _props$closeOnEsc,
53
- _props$preventOverflo = props.preventOverflow,
54
- preventOverflow = _props$preventOverflo === void 0 ? true : _props$preventOverflo,
55
- _props$usePortal = props.usePortal,
56
- usePortal = _props$usePortal === void 0 ? false : _props$usePortal,
57
- view = props.view,
58
- onToggle = props.onToggle,
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
- }
35
+ var target = _ref.target,
36
+ children = _ref.children,
37
+ isOpen = _ref.isOpen,
38
+ _ref$trigger = _ref.trigger,
39
+ trigger = _ref$trigger === void 0 ? 'click' : _ref$trigger,
40
+ hasArrow = _ref.hasArrow,
41
+ _ref$frame = _ref.frame,
42
+ frame = _ref$frame === void 0 ? 'document' : _ref$frame,
43
+ className = _ref.className,
44
+ _ref$placement = _ref.placement,
45
+ placement = _ref$placement === void 0 ? 'auto' : _ref$placement,
46
+ _ref$offset = _ref.offset,
47
+ offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
48
+ zIndex = _ref.zIndex,
49
+ _ref$isFocusTrapped = _ref.isFocusTrapped,
50
+ isFocusTrapped = _ref$isFocusTrapped === void 0 ? true : _ref$isFocusTrapped,
51
+ _ref$closeOnEsc = _ref.closeOnEsc,
52
+ closeOnEsc = _ref$closeOnEsc === void 0 ? true : _ref$closeOnEsc,
53
+ _ref$preventOverflow = _ref.preventOverflow,
54
+ preventOverflow = _ref$preventOverflow === void 0 ? true : _ref$preventOverflow,
55
+ _ref$usePortal = _ref.usePortal,
56
+ usePortal = _ref$usePortal === void 0 ? false : _ref$usePortal,
57
+ view = _ref.view,
58
+ onToggle = _ref.onToggle,
59
+ closeOnOverlayClick = _ref.closeOnOverlayClick,
60
+ rest = _objectWithoutProperties(_ref, _excluded);
68
61
  var rootRef = useRef(null);
69
62
  var popoverRef = useRef(null);
70
63
  var handleRef = useForkRef(rootRef, outerRootRef);
@@ -164,7 +157,7 @@ export var popoverRoot = function popoverRoot(Root) {
164
157
  return function () {
165
158
  return document.removeEventListener('click', onDocumentClick);
166
159
  };
167
- }, [closeOnOverlayClick, isOpen, onToggle]);
160
+ }, [isOpen, onToggle]);
168
161
  useEffect(function () {
169
162
  window.addEventListener('keydown', onEscape);
170
163
  return function () {
@@ -211,22 +204,19 @@ export var popoverRoot = function popoverRoot(Root) {
211
204
  Promise.resolve().then(forceUpdate);
212
205
  }, [isOpen, children, forceUpdate]);
213
206
  return /*#__PURE__*/React.createElement(StyledWrapper, {
214
- className: classes.wrapper
207
+ className: classes.wrapper,
208
+ onMouseEnter: onMouseEnter,
209
+ onMouseLeave: onMouseLeave
215
210
  }, /*#__PURE__*/React.createElement(StyledRoot, {
216
211
  ref: handleRef,
217
212
  onClick: onClick,
218
- onMouseEnter: onMouseEnter,
219
- onMouseLeave: onMouseLeave,
220
213
  onFocus: onFocus,
221
214
  onBlur: onBlur,
222
215
  className: cx(className, classes.target)
223
216
  }, target), children && portalRef.current && /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Root, _extends({
224
217
  view: view,
225
218
  className: className
226
- }, rest, {
227
- onMouseEnter: closeOnBeyondTargetHover ? undefined : onMouseEnter,
228
- onMouseLeave: closeOnBeyondTargetHover ? undefined : onMouseEnter
229
- }), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
219
+ }, rest), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
230
220
  className: classes.root,
231
221
  ref: popoverForkRef,
232
222
  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,qKAOtB,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,+JAwPpE,CAAC;AAEN,eAAO,MAAM,aAAa;;;mBA1PQ,UAAU,cAAc,EAAE,YAAY,CAAC;;;;;;;;;;CAuQxE,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;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,gBAAgB,GAAG,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC5D;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;IACpE;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,cAAc,GACpB;IACI;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC,GACD;IACI,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACtC,CAAC;AAER,oBAAY,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,kBAAkB,GAAG,cAAc,CAAC"}
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,cAAc,GAAG,OAAO,GAAG,OAAO,CAAC;AAE/C,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,gBAAgB,GAAG,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC5D;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;IACpE;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;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,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
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,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,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}