@salutejs/plasma-new-hope 0.72.0-canary.1172.8602492915.0 → 0.72.0-dev.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Cell/Cell.js +2 -0
- package/cjs/components/Cell/Cell.js.map +1 -1
- package/cjs/components/Combobox/Combobox.css +10 -10
- package/cjs/components/Combobox/Combobox.styles.js +5 -5
- package/cjs/components/Combobox/Combobox.styles.js.map +1 -1
- package/cjs/components/Combobox/{Combobox.styles_17ei5vn.css → Combobox.styles_dw6hnk.css} +1 -1
- package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
- package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
- package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
- package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
- package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
- package/cjs/components/Dropdown/Dropdown.css +4 -4
- package/cjs/components/Dropdown/Dropdown.js +0 -1
- package/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Pagination/Pagination.css +9 -9
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +9 -9
- package/cjs/components/Popover/Popover.css +4 -4
- package/cjs/components/Popover/Popover.js +33 -43
- package/cjs/components/Popover/Popover.js.map +1 -1
- package/cjs/components/Popover/Popover.styles.js +1 -1
- package/cjs/components/Popover/Popover.styles.js.map +1 -1
- package/{es/components/Popover/Popover.styles_1rk9t6z.css → cjs/components/Popover/Popover.styles_1ggb66y.css} +1 -1
- package/cjs/components/Select/Select.css +9 -9
- package/cjs/components/Select/Select.styles.js +7 -7
- package/cjs/components/Select/Select.styles.js.map +1 -1
- package/{es/components/Select/Select.styles_ls547o.css → cjs/components/Select/Select.styles_1q3i6gw.css} +1 -1
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +40 -0
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +12 -0
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
- package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +9 -0
- package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +9 -0
- package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +40 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +12 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
- package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +9 -0
- package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +9 -0
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +40 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +12 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +9 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +9 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +40 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +12 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +9 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +9 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectItem/SelectItem.css +4 -4
- package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
- package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
- package/cjs/index.css +33 -33
- package/cjs/index.js +39 -4
- package/cjs/index.js.map +1 -1
- package/cjs/utils/index.js +13 -1
- package/cjs/utils/index.js.map +1 -1
- package/cjs/utils/react.js +12 -2
- package/cjs/utils/react.js.map +1 -1
- package/es/components/Cell/Cell.js +2 -0
- package/es/components/Cell/Cell.js.map +1 -1
- package/es/components/Combobox/Combobox.css +10 -10
- package/es/components/Combobox/Combobox.styles.js +5 -5
- package/es/components/Combobox/Combobox.styles.js.map +1 -1
- package/es/components/Combobox/{Combobox.styles_17ei5vn.css → Combobox.styles_dw6hnk.css} +1 -1
- package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
- package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
- package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
- package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
- package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
- package/es/components/Dropdown/Dropdown.css +4 -4
- package/es/components/Dropdown/Dropdown.js +0 -1
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Pagination/Pagination.css +9 -9
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +9 -9
- package/es/components/Popover/Popover.css +4 -4
- package/es/components/Popover/Popover.js +33 -43
- package/es/components/Popover/Popover.js.map +1 -1
- package/es/components/Popover/Popover.styles.js +1 -1
- package/es/components/Popover/Popover.styles.js.map +1 -1
- package/{cjs/components/Popover/Popover.styles_1rk9t6z.css → es/components/Popover/Popover.styles_1ggb66y.css} +1 -1
- package/es/components/Select/Select.css +9 -9
- package/es/components/Select/Select.styles.js +7 -7
- package/es/components/Select/Select.styles.js.map +1 -1
- package/{cjs/components/Select/Select.styles_ls547o.css → es/components/Select/Select.styles_1q3i6gw.css} +1 -1
- package/es/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
- package/es/components/Select/ui/SelectDivider/SelectDivider.js +35 -0
- package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +7 -0
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
- package/es/components/Select/ui/SelectDivider/variations/_size/base.js +5 -0
- package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
- package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectDivider/variations/_view/base.js +5 -0
- package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
- package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.js +35 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +7 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
- package/es/components/Select/ui/SelectFooter/variations/_size/base.js +5 -0
- package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
- package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectFooter/variations/_view/base.js +5 -0
- package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
- package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.js +35 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +7 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
- package/es/components/Select/ui/SelectGroup/variations/_size/base.js +5 -0
- package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
- package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectGroup/variations/_view/base.js +5 -0
- package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
- package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.js +35 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +7 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
- package/es/components/Select/ui/SelectHeader/variations/_size/base.js +5 -0
- package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
- package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectHeader/variations/_view/base.js +5 -0
- package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
- package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectItem/SelectItem.css +4 -4
- package/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
- package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
- package/es/index.css +33 -33
- package/es/index.js +13 -0
- package/es/index.js.map +1 -1
- package/es/utils/index.js +11 -2
- package/es/utils/index.js.map +1 -1
- package/es/utils/react.js +9 -2
- package/es/utils/react.js.map +1 -1
- package/package.json +4 -4
- package/styled-components/cjs/components/Cell/Cell.js +2 -0
- package/styled-components/cjs/components/Combobox/Combobox.styles.js +1 -1
- package/styled-components/cjs/components/Dropdown/Dropdown.js +0 -1
- package/styled-components/cjs/components/Popover/Popover.js +33 -43
- package/styled-components/cjs/components/Popover/Popover.styles.js +1 -1
- package/styled-components/cjs/components/Select/Select.styles.js +1 -1
- package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
- package/styled-components/cjs/index.js +22 -0
- package/styled-components/es/components/Cell/Cell.js +2 -0
- package/styled-components/es/components/Combobox/Combobox.styles.js +1 -1
- package/styled-components/es/components/Dropdown/Dropdown.js +0 -1
- package/styled-components/es/components/Popover/Popover.js +33 -43
- package/styled-components/es/components/Popover/Popover.styles.js +1 -1
- package/styled-components/es/components/Select/Select.styles.js +1 -1
- package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
- package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
- package/styled-components/es/index.js +2 -0
- package/types/components/Cell/Cell.d.ts.map +1 -1
- package/types/components/Combobox/Combobox.styles.d.ts +2 -8
- package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.styles.d.ts +1 -7
- package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
- package/types/components/Popover/Popover.d.ts +2 -2
- package/types/components/Popover/Popover.d.ts.map +1 -1
- package/types/components/Popover/Popover.styles.d.ts.map +1 -1
- package/types/components/Popover/Popover.types.d.ts +12 -19
- package/types/components/Popover/Popover.types.d.ts.map +1 -1
- package/types/components/Select/Select.styles.d.ts +2 -8
- package/types/components/Select/Select.styles.d.ts.map +1 -1
- package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +1 -7
- package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Popover/Popover.d.ts +1 -7
- package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
- package/types/examples/sds_engineer/components/Popover/Popover.d.ts +1 -7
- package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
@@ -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 (
|
33
|
+
return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
|
34
34
|
var _placement$;
|
35
|
-
var target =
|
36
|
-
children =
|
37
|
-
isOpen =
|
38
|
-
|
39
|
-
trigger =
|
40
|
-
hasArrow =
|
41
|
-
|
42
|
-
frame =
|
43
|
-
className =
|
44
|
-
|
45
|
-
placement =
|
46
|
-
|
47
|
-
offset =
|
48
|
-
zIndex =
|
49
|
-
|
50
|
-
isFocusTrapped =
|
51
|
-
|
52
|
-
closeOnEsc =
|
53
|
-
|
54
|
-
preventOverflow =
|
55
|
-
|
56
|
-
usePortal =
|
57
|
-
view =
|
58
|
-
onToggle =
|
59
|
-
|
60
|
-
|
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
|
-
}, [
|
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;"]);
|
@@ -6,7 +6,7 @@ var nativeSelectVisible = classes.nativeSelectVisible,
|
|
6
6
|
selectTarget = classes.selectTarget;
|
7
7
|
export var StyledRoot = /*#__PURE__*/styled.div.withConfig({
|
8
8
|
componentId: "plasma-new-hope__sc-le54jv-0"
|
9
|
-
})(["width:100%;position:relative;.", "{display:block;}"], /*#__PURE__*/String(nativeSelectVisible));
|
9
|
+
})(["width:100%;position:relative;.", "{display:block;}& .", "{display:block;}"], /*#__PURE__*/String(nativeSelectVisible), popoverClasses.wrapper);
|
10
10
|
export var StyledSelect = /*#__PURE__*/styled.div.withConfig({
|
11
11
|
componentId: "plasma-new-hope__sc-le54jv-1"
|
12
12
|
})(["box-sizing:border-box;overflow-y:auto;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);
|
@@ -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';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../src/components/Cell/Cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,eAAO,MAAM,QAAQ,SAAU,UAAU,cAAc,EAAE,SAAS,CAAC,
|
1
|
+
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../src/components/Cell/Cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,eAAO,MAAM,QAAQ,SAAU,UAAU,cAAc,EAAE,SAAS,CAAC,qFA0C9D,CAAC;AAEN,eAAO,MAAM,UAAU;;;mBA5CQ,UAAU,cAAc,EAAE,SAAS,CAAC;;;;;;;;;;;;;;CA6DlE,CAAC"}
|
@@ -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
|
-
} &
|
6
|
+
} & import("../../engines/types").PropsType<{
|
7
7
|
view: {
|
8
8
|
css: import("@linaria/core").LinariaClassName;
|
9
9
|
};
|
10
|
-
}> &
|
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,
|
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,
|
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
|
-
}> &
|
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
|
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<
|
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<
|
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,
|
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,
|
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
|
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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AC,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
|
-
} &
|
6
|
+
} & import("../../engines/types").PropsType<{
|
7
7
|
view: {
|
8
8
|
css: import("@linaria/core").LinariaClassName;
|
9
9
|
};
|
10
|
-
}> &
|
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,
|
1
|
+
{"version":3,"file":"Select.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,UAAU,qKAWtB,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,
|
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
|
-
}> &
|
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
|
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
|
-
}> &
|
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
|
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
|
-
}> &
|
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
|
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
|
package/types/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,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