@salutejs/plasma-new-hope 0.231.0-canary.1657.12468366213.0 → 0.231.0-dev.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Autocomplete/Autocomplete.css +4 -4
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +4 -4
- package/cjs/components/Combobox/ComboboxOld/Combobox.css +4 -4
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +4 -4
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +4 -4
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +4 -4
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +4 -4
- package/cjs/components/DatePicker/RangeDate/RangeDate.css +4 -4
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +4 -4
- package/cjs/components/DatePicker/SingleDate/SingleDate.css +4 -4
- package/cjs/components/Dropdown/Dropdown.css +4 -4
- package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.css +4 -4
- package/cjs/components/Pagination/Pagination.css +4 -4
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
- package/cjs/components/Popover/Popover.css +4 -4
- package/cjs/components/Popover/Popover.js +9 -5
- package/cjs/components/Popover/Popover.js.map +1 -1
- package/cjs/components/Popover/Popover.styles.js +7 -7
- package/cjs/components/Popover/Popover.styles.js.map +1 -1
- package/cjs/components/Popover/{Popover.styles_mzmbre.css → Popover.styles_gh4xvw.css} +2 -2
- package/cjs/components/Popover/Popover.tokens.js +2 -1
- package/cjs/components/Popover/Popover.tokens.js.map +1 -1
- package/cjs/components/Portal/Portal.js +1 -1
- package/cjs/components/Portal/Portal.js.map +1 -1
- package/cjs/components/Range/Range.css +4 -4
- package/cjs/components/Select/Select.css +4 -4
- package/cjs/components/Select/ui/Target/Target.css +4 -4
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +4 -4
- package/cjs/components/Slider/Slider.css +4 -4
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +4 -4
- package/cjs/components/TextArea/ui/Hint/Hint.css +4 -4
- package/cjs/components/TextField/ui/Hint/Hint.css +4 -4
- package/cjs/index.css +4 -6
- package/cjs/index.js +0 -3
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/Popover/Popover.js +10 -6
- package/emotion/cjs/components/Popover/Popover.styles.js +8 -16
- package/emotion/cjs/components/Popover/Popover.template-doc.mdx +128 -43
- package/emotion/cjs/components/Popover/Popover.tokens.js +2 -1
- package/emotion/cjs/components/Portal/Portal.js +1 -1
- package/emotion/cjs/index.js +0 -11
- package/emotion/es/components/Popover/Popover.js +11 -7
- package/emotion/es/components/Popover/Popover.styles.js +8 -16
- package/emotion/es/components/Popover/Popover.template-doc.mdx +128 -43
- package/emotion/es/components/Popover/Popover.tokens.js +2 -1
- package/emotion/es/components/Portal/Portal.js +1 -1
- package/emotion/es/index.js +0 -1
- package/es/components/Autocomplete/Autocomplete.css +4 -4
- package/es/components/Combobox/ComboboxNew/Combobox.css +4 -4
- package/es/components/Combobox/ComboboxOld/Combobox.css +4 -4
- package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +4 -4
- package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +4 -4
- package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +4 -4
- package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +4 -4
- package/es/components/DatePicker/RangeDate/RangeDate.css +4 -4
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +4 -4
- package/es/components/DatePicker/SingleDate/SingleDate.css +4 -4
- package/es/components/Dropdown/Dropdown.css +4 -4
- package/es/components/Dropdown/ui/DropdownOld/DropdownOld.css +4 -4
- package/es/components/Pagination/Pagination.css +4 -4
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
- package/es/components/Popover/Popover.css +4 -4
- package/es/components/Popover/Popover.js +11 -7
- package/es/components/Popover/Popover.js.map +1 -1
- package/es/components/Popover/Popover.styles.js +7 -7
- package/es/components/Popover/Popover.styles.js.map +1 -1
- package/es/components/Popover/{Popover.styles_mzmbre.css → Popover.styles_gh4xvw.css} +2 -2
- package/es/components/Popover/Popover.tokens.js +2 -1
- package/es/components/Popover/Popover.tokens.js.map +1 -1
- package/es/components/Portal/Portal.js +1 -1
- package/es/components/Portal/Portal.js.map +1 -1
- package/es/components/Range/Range.css +4 -4
- package/es/components/Select/Select.css +4 -4
- package/es/components/Select/ui/Target/Target.css +4 -4
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +4 -4
- package/es/components/Slider/Slider.css +4 -4
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +4 -4
- package/es/components/TextArea/ui/Hint/Hint.css +4 -4
- package/es/components/TextField/ui/Hint/Hint.css +4 -4
- package/es/index.css +4 -6
- package/es/index.js +0 -1
- package/es/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Popover/Popover.js +10 -6
- package/styled-components/cjs/components/Popover/Popover.styles.js +4 -4
- package/styled-components/cjs/components/Popover/Popover.template-doc.mdx +128 -43
- package/styled-components/cjs/components/Popover/Popover.tokens.js +2 -1
- package/styled-components/cjs/components/Portal/Portal.js +1 -1
- package/styled-components/cjs/index.js +0 -11
- package/styled-components/es/components/Popover/Popover.js +11 -7
- package/styled-components/es/components/Popover/Popover.styles.js +4 -4
- package/styled-components/es/components/Popover/Popover.template-doc.mdx +128 -43
- package/styled-components/es/components/Popover/Popover.tokens.js +2 -1
- package/styled-components/es/components/Portal/Portal.js +1 -1
- package/styled-components/es/index.js +0 -1
- package/types/components/Popover/Popover.d.ts.map +1 -1
- package/types/components/Popover/Popover.styles.d.ts +1 -1
- package/types/components/Popover/Popover.styles.d.ts.map +1 -1
- package/types/components/Popover/Popover.tokens.d.ts +1 -0
- package/types/components/Popover/Popover.tokens.d.ts.map +1 -1
- package/types/components/Popover/Popover.types.d.ts +4 -4
- package/types/components/Popover/Popover.types.d.ts.map +1 -1
- package/types/components/Portal/Portal.types.d.ts +1 -1
- package/types/components/Portal/Portal.types.d.ts.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/cjs/components/Flow/Flow.css +0 -1
- package/cjs/components/Flow/Flow.js +0 -58
- package/cjs/components/Flow/Flow.js.map +0 -1
- package/cjs/components/Flow/Flow.styles.js +0 -9
- package/cjs/components/Flow/Flow.styles.js.map +0 -1
- package/cjs/components/Flow/Flow.styles_1xdoipm.css +0 -1
- package/emotion/cjs/components/ElasticGrid/ElasticGrid.js +0 -5
- package/emotion/cjs/components/ElasticGrid/index.js +0 -5
- package/emotion/cjs/components/Flow/Flow.js +0 -66
- package/emotion/cjs/components/Flow/Flow.styles.js +0 -17
- package/emotion/cjs/components/Flow/Flow.types.js +0 -5
- package/emotion/cjs/components/Flow/index.js +0 -18
- package/emotion/cjs/examples/plasma_b2c/components/Flow/Flow.config.js +0 -10
- package/emotion/cjs/examples/plasma_b2c/components/Flow/Flow.js +0 -11
- package/emotion/cjs/examples/plasma_b2c/components/Flow/Flow.stories.tsx +0 -114
- package/emotion/es/components/ElasticGrid/ElasticGrid.js +0 -1
- package/emotion/es/components/ElasticGrid/index.js +0 -1
- package/emotion/es/components/Flow/Flow.js +0 -57
- package/emotion/es/components/Flow/Flow.styles.js +0 -11
- package/emotion/es/components/Flow/Flow.types.js +0 -1
- package/emotion/es/components/Flow/index.js +0 -1
- package/emotion/es/examples/plasma_b2c/components/Flow/Flow.config.js +0 -4
- package/emotion/es/examples/plasma_b2c/components/Flow/Flow.js +0 -5
- package/emotion/es/examples/plasma_b2c/components/Flow/Flow.stories.tsx +0 -114
- package/es/components/Flow/Flow.css +0 -1
- package/es/components/Flow/Flow.js +0 -53
- package/es/components/Flow/Flow.js.map +0 -1
- package/es/components/Flow/Flow.styles.js +0 -5
- package/es/components/Flow/Flow.styles.js.map +0 -1
- package/es/components/Flow/Flow.styles_1xdoipm.css +0 -1
- package/styled-components/cjs/components/ElasticGrid/ElasticGrid.js +0 -5
- package/styled-components/cjs/components/ElasticGrid/index.js +0 -5
- package/styled-components/cjs/components/Flow/Flow.js +0 -66
- package/styled-components/cjs/components/Flow/Flow.styles.js +0 -8
- package/styled-components/cjs/components/Flow/Flow.types.js +0 -5
- package/styled-components/cjs/components/Flow/index.js +0 -18
- package/styled-components/cjs/examples/plasma_b2c/components/Flow/Flow.config.js +0 -10
- package/styled-components/cjs/examples/plasma_b2c/components/Flow/Flow.js +0 -11
- package/styled-components/cjs/examples/plasma_b2c/components/Flow/Flow.stories.tsx +0 -114
- package/styled-components/es/components/ElasticGrid/ElasticGrid.js +0 -1
- package/styled-components/es/components/ElasticGrid/index.js +0 -1
- package/styled-components/es/components/Flow/Flow.js +0 -57
- package/styled-components/es/components/Flow/Flow.styles.js +0 -2
- package/styled-components/es/components/Flow/Flow.types.js +0 -1
- package/styled-components/es/components/Flow/index.js +0 -1
- package/styled-components/es/examples/plasma_b2c/components/Flow/Flow.config.js +0 -4
- package/styled-components/es/examples/plasma_b2c/components/Flow/Flow.js +0 -5
- package/styled-components/es/examples/plasma_b2c/components/Flow/Flow.stories.tsx +0 -114
- package/types/components/ElasticGrid/ElasticGrid.d.ts +0 -2
- package/types/components/ElasticGrid/ElasticGrid.d.ts.map +0 -1
- package/types/components/ElasticGrid/index.d.ts +0 -2
- package/types/components/ElasticGrid/index.d.ts.map +0 -1
- package/types/components/Flow/Flow.d.ts +0 -13
- package/types/components/Flow/Flow.d.ts.map +0 -1
- package/types/components/Flow/Flow.styles.d.ts +0 -2
- package/types/components/Flow/Flow.styles.d.ts.map +0 -1
- package/types/components/Flow/Flow.types.d.ts +0 -35
- package/types/components/Flow/Flow.types.d.ts.map +0 -1
- package/types/components/Flow/index.d.ts +0 -2
- package/types/components/Flow/index.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Flow/Flow.config.d.ts +0 -5
- package/types/examples/plasma_b2c/components/Flow/Flow.config.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Flow/Flow.d.ts +0 -3
- package/types/examples/plasma_b2c/components/Flow/Flow.d.ts.map +0 -1
@@ -4,51 +4,136 @@ title: Popover
|
|
4
4
|
---
|
5
5
|
|
6
6
|
import { PropsTable, Description } from '@site/src/components';
|
7
|
+
import Tabs from '@theme/Tabs';
|
8
|
+
import TabItem from '@theme/TabItem';
|
7
9
|
|
8
10
|
# Popover
|
9
11
|
<Description name="Popover" />
|
10
12
|
<PropsTable name="Popover" />
|
11
13
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
14
|
+
:::info
|
15
|
+
`target` может быть как ReactNode, так и RefObject:
|
16
|
+
:::
|
17
|
+
|
18
|
+
<Tabs>
|
19
|
+
<TabItem value="reactNode" label="React Node" default>
|
20
|
+
```tsx live
|
21
|
+
import React from 'react';
|
22
|
+
import styled from "styled-components";
|
23
|
+
import { surfaceSolidTertiary } from "@salutejs/{{ vertical }}/tokens";
|
24
|
+
import { Popover, Button } from '@salutejs/{{ package }}';
|
25
|
+
|
26
|
+
export function App() {
|
27
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
28
|
+
|
29
|
+
const StyledContent = styled.div`
|
30
|
+
background: ${surfaceSolidTertiary};
|
31
|
+
padding: 1rem;
|
32
|
+
|
33
|
+
display: flex;
|
34
|
+
flex-direction: column;
|
35
|
+
align-items: center;
|
36
|
+
`;
|
37
|
+
|
38
|
+
return (
|
39
|
+
<section style=\{{width: '20rem', height: '15rem'}}>
|
40
|
+
<Popover
|
41
|
+
opened={isOpen}
|
42
|
+
onToggle={(is) => setIsOpen(is)}
|
43
|
+
role="presentation"
|
44
|
+
id="popover"
|
45
|
+
target={<Button>Target</Button>}
|
46
|
+
offset={[0, 6]}
|
47
|
+
placement='bottom'
|
48
|
+
trigger='click'
|
49
|
+
hasArrow
|
50
|
+
closeOnOverlayClick
|
51
|
+
closeOnEsc
|
52
|
+
isFocusTrapped
|
53
|
+
>
|
54
|
+
<StyledContent>
|
55
|
+
<>Content</>
|
56
|
+
<Button onClick={() => setIsOpen(false)}>close</Button>
|
57
|
+
</StyledContent>
|
58
|
+
</Popover>
|
59
|
+
</section>
|
60
|
+
);
|
61
|
+
}
|
62
|
+
```
|
63
|
+
</TabItem>
|
64
|
+
<TabItem value="refObject" label="RefObject">
|
65
|
+
```tsx live
|
66
|
+
import React, { useRef, useState } from 'react';
|
67
|
+
import styled from "styled-components";
|
68
|
+
import { surfaceSolidTertiary } from "@salutejs/{{ vertical }}/tokens";
|
69
|
+
import { Popover, Button } from '@salutejs/{{ package }}';
|
70
|
+
|
71
|
+
export function App() {
|
72
|
+
const [isOpen, setIsOpen] = useState(false);
|
73
|
+
|
74
|
+
const targetRef = useRef<HTMLButtonElement | null>(null);
|
75
|
+
const targetRef2 = useRef<HTMLButtonElement | null>(null);
|
76
|
+
const targetRef3 = useRef<HTMLButtonElement | null>(null);
|
77
|
+
|
78
|
+
const refs = [targetRef, targetRef2, targetRef3];
|
79
|
+
|
80
|
+
const [currRefIndex, setCurrentRefIndex] = useState(0);
|
81
|
+
const [currentRef, setCurrentRef] = useState(targetRef);
|
82
|
+
|
83
|
+
const changeRef = () => {
|
84
|
+
let ind = currRefIndex + 1;
|
85
|
+
|
86
|
+
if (ind > refs.length - 1) {
|
87
|
+
setCurrentRefIndex(0);
|
88
|
+
ind = 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
setCurrentRefIndex(ind);
|
92
|
+
setCurrentRef(refs[ind]);
|
93
|
+
};
|
94
|
+
|
95
|
+
const StyledContent = styled.div`
|
96
|
+
background: ${surfaceSolidTertiary};
|
97
|
+
padding: 1rem;
|
98
|
+
|
99
|
+
display: flex;
|
100
|
+
flex-direction: column;
|
101
|
+
align-items: center;
|
102
|
+
`;
|
103
|
+
|
104
|
+
return (
|
105
|
+
<>
|
106
|
+
<Button ref={targetRef}>Target 0</Button>
|
107
|
+
<Button style=\{{ margin: '0 5rem' }} onClick={changeRef}>
|
108
|
+
Change targetAsRef to Target {currRefIndex + 1 > refs.length - 1 ? 0 : currRefIndex + 1}
|
109
|
+
</Button>
|
110
|
+
<Button ref={targetRef2}>Target 1</Button>
|
111
|
+
<Popover
|
112
|
+
opened={isOpen}
|
113
|
+
onToggle={(is) => setIsOpen(is)}
|
114
|
+
role="presentation"
|
115
|
+
id="popover"
|
116
|
+
target={currentRef}
|
117
|
+
offset={[0, 6]}
|
118
|
+
placement='bottom'
|
119
|
+
trigger='click'
|
120
|
+
hasArrow
|
121
|
+
closeOnOverlayClick
|
122
|
+
closeOnEsc
|
123
|
+
isFocusTrapped
|
124
|
+
>
|
125
|
+
<StyledContent>
|
126
|
+
<>Content</>
|
127
|
+
<Button onClick={() => setIsOpen(false)}>Close</Button>
|
128
|
+
</StyledContent>
|
129
|
+
</Popover>
|
130
|
+
|
131
|
+
<div style=\{{ padding: '5rem' }}>Current Target: {currRefIndex}</div>
|
132
|
+
<Button ref={targetRef3}>Target 2</Button>
|
133
|
+
</>
|
134
|
+
);
|
135
|
+
}
|
136
|
+
```
|
137
|
+
</TabItem>
|
138
|
+
</Tabs>
|
139
|
+
|
@@ -8,7 +8,8 @@ var classes = exports.classes = {
|
|
8
8
|
wrapper: 'popover-wrapper',
|
9
9
|
root: 'popover-root',
|
10
10
|
target: 'popover-target',
|
11
|
-
arrow: 'popover-arrow'
|
11
|
+
arrow: 'popover-arrow',
|
12
|
+
targetAsRef: 'popover-target-as-ref'
|
12
13
|
};
|
13
14
|
var tokens = exports.tokens = {
|
14
15
|
arrowMaskWidth: '--plasma-popover-arrow-mask-width',
|
@@ -21,5 +21,5 @@ var Portal = exports.Portal = function Portal(_ref) {
|
|
21
21
|
return null;
|
22
22
|
}
|
23
23
|
var portalContainer = typeof container === 'function' ? container() : container;
|
24
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, disabled && children, !disabled && /*#__PURE__*/_reactDom["default"].createPortal(children, portalContainer));
|
24
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (disabled || !portalContainer) && children, !disabled && portalContainer && /*#__PURE__*/_reactDom["default"].createPortal(children, portalContainer));
|
25
25
|
};
|
@@ -135,17 +135,6 @@ Object.keys(_Cell).forEach(function (key) {
|
|
135
135
|
}
|
136
136
|
});
|
137
137
|
});
|
138
|
-
var _Flow = /*#__PURE__*/require("./components/Flow");
|
139
|
-
Object.keys(_Flow).forEach(function (key) {
|
140
|
-
if (key === "default" || key === "__esModule") return;
|
141
|
-
if (key in exports && exports[key] === _Flow[key]) return;
|
142
|
-
Object.defineProperty(exports, key, {
|
143
|
-
enumerable: true,
|
144
|
-
get: function get() {
|
145
|
-
return _Flow[key];
|
146
|
-
}
|
147
|
-
});
|
148
|
-
});
|
149
138
|
var _Link = /*#__PURE__*/require("./components/Link");
|
150
139
|
Object.keys(_Link).forEach(function (key) {
|
151
140
|
if (key === "default" || key === "__esModule") return;
|
@@ -1,4 +1,3 @@
|
|
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
1
|
var _excluded = ["target", "children", "isOpen", "opened", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle", "closeOnOverlayClick"];
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
4
3
|
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; }
|
@@ -6,6 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
6
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
7
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
8
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
|
+
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); }
|
9
9
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
10
10
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
11
11
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
@@ -14,7 +14,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
14
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
15
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
16
16
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
17
|
-
import React, { useRef, useCallback, useEffect, useState, forwardRef } from 'react';
|
17
|
+
import React, { useRef, useCallback, useEffect, useState, forwardRef, isValidElement } from 'react';
|
18
18
|
import { usePopper } from 'react-popper';
|
19
19
|
import { useForkRef } from '@salutejs/plasma-core';
|
20
20
|
import { useFocusTrap } from '../../hooks';
|
@@ -74,6 +74,7 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
74
74
|
var _useState3 = useState(false),
|
75
75
|
_useState4 = _slicedToArray(_useState3, 2),
|
76
76
|
forceRender = _useState4[1];
|
77
|
+
var portalContainer = _typeof(target) === 'object' && target !== null && 'current' in target && target.current || undefined;
|
77
78
|
var isAutoArray = Array.isArray(placement);
|
78
79
|
var isAuto = isAutoArray || placement.startsWith('auto');
|
79
80
|
var initialStyles = {
|
@@ -173,7 +174,7 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
173
174
|
if (typeof frame !== 'string' && frame && frame.current) {
|
174
175
|
portal = frame.current;
|
175
176
|
}
|
176
|
-
if (!usePortal) {
|
177
|
+
if (!usePortal && /*#__PURE__*/isValidElement(target)) {
|
177
178
|
portal = rootRef.current;
|
178
179
|
}
|
179
180
|
if (!portal) {
|
@@ -207,8 +208,11 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
207
208
|
*/
|
208
209
|
Promise.resolve().then(forceUpdate);
|
209
210
|
}, [innerIsOpen, children, forceUpdate]);
|
210
|
-
return /*#__PURE__*/React.createElement(
|
211
|
-
|
211
|
+
return /*#__PURE__*/React.createElement(Portal, {
|
212
|
+
container: portalContainer,
|
213
|
+
disabled: /*#__PURE__*/isValidElement(target)
|
214
|
+
}, /*#__PURE__*/React.createElement(StyledWrapper, {
|
215
|
+
className: cx(classes.wrapper, ! /*#__PURE__*/isValidElement(target) && classes.targetAsRef),
|
212
216
|
onMouseEnter: onMouseEnter,
|
213
217
|
onMouseLeave: onMouseLeave
|
214
218
|
}, /*#__PURE__*/React.createElement(StyledRoot, {
|
@@ -217,7 +221,7 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
217
221
|
onFocus: onFocus,
|
218
222
|
onBlur: onBlur,
|
219
223
|
className: cx(className, classes.target)
|
220
|
-
}, target), children && portalRef.current && /*#__PURE__*/React.createElement(Portal, {
|
224
|
+
}, /*#__PURE__*/isValidElement(target) && target), children && portalRef.current && /*#__PURE__*/React.createElement(Portal, {
|
221
225
|
container: portalRef.current
|
222
226
|
}, /*#__PURE__*/React.createElement(Root, _extends({
|
223
227
|
view: view,
|
@@ -233,7 +237,7 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
233
237
|
className: classes.arrow,
|
234
238
|
ref: setArrowElement,
|
235
239
|
style: styles.arrow
|
236
|
-
}, attributes.arrow)), children))));
|
240
|
+
}, attributes.arrow)), children)))));
|
237
241
|
});
|
238
242
|
};
|
239
243
|
export var popoverConfig = {
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
2
|
import { DEFAULT_Z_INDEX } from '../Popup/utils';
|
3
3
|
import { classes, tokens } from './Popover.tokens';
|
4
|
-
export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
|
5
|
-
componentId: "plasma-new-hope__sc-tnpyex-0"
|
6
|
-
})(["display:inline-block;"]);
|
7
4
|
export var StyledRoot = /*#__PURE__*/styled.div.withConfig({
|
8
|
-
componentId: "plasma-new-hope__sc-tnpyex-
|
5
|
+
componentId: "plasma-new-hope__sc-tnpyex-0"
|
9
6
|
})(["display:inline-flex;box-sizing:border-box;position:relative;"]);
|
7
|
+
export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
|
8
|
+
componentId: "plasma-new-hope__sc-tnpyex-1"
|
9
|
+
})(["display:inline-block;&.", "{position:absolute;top:0;left:0;width:100%;height:100%;", "{width:100%;height:100%;display:block;}}"], classes.targetAsRef, StyledRoot);
|
10
10
|
export var StyledArrow = /*#__PURE__*/styled.div.withConfig({
|
11
11
|
componentId: "plasma-new-hope__sc-tnpyex-2"
|
12
12
|
})(["width:var(", ");height:var(", ");&::before{position:absolute;width:var(", ");height:var(", ");mask-image:var(", ");background:var(", ");content:'';transform:rotate(0deg);}"], /*#__PURE__*/String(tokens.arrowMaskWidth), /*#__PURE__*/String(tokens.arrowMaskHeight), /*#__PURE__*/String(tokens.arrowMaskWidth), /*#__PURE__*/String(tokens.arrowMaskHeight), /*#__PURE__*/String(tokens.arrowMaskImage), /*#__PURE__*/String(tokens.arrowBackground));
|
@@ -4,51 +4,136 @@ title: Popover
|
|
4
4
|
---
|
5
5
|
|
6
6
|
import { PropsTable, Description } from '@site/src/components';
|
7
|
+
import Tabs from '@theme/Tabs';
|
8
|
+
import TabItem from '@theme/TabItem';
|
7
9
|
|
8
10
|
# Popover
|
9
11
|
<Description name="Popover" />
|
10
12
|
<PropsTable name="Popover" />
|
11
13
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
14
|
+
:::info
|
15
|
+
`target` может быть как ReactNode, так и RefObject:
|
16
|
+
:::
|
17
|
+
|
18
|
+
<Tabs>
|
19
|
+
<TabItem value="reactNode" label="React Node" default>
|
20
|
+
```tsx live
|
21
|
+
import React from 'react';
|
22
|
+
import styled from "styled-components";
|
23
|
+
import { surfaceSolidTertiary } from "@salutejs/{{ vertical }}/tokens";
|
24
|
+
import { Popover, Button } from '@salutejs/{{ package }}';
|
25
|
+
|
26
|
+
export function App() {
|
27
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
28
|
+
|
29
|
+
const StyledContent = styled.div`
|
30
|
+
background: ${surfaceSolidTertiary};
|
31
|
+
padding: 1rem;
|
32
|
+
|
33
|
+
display: flex;
|
34
|
+
flex-direction: column;
|
35
|
+
align-items: center;
|
36
|
+
`;
|
37
|
+
|
38
|
+
return (
|
39
|
+
<section style=\{{width: '20rem', height: '15rem'}}>
|
40
|
+
<Popover
|
41
|
+
opened={isOpen}
|
42
|
+
onToggle={(is) => setIsOpen(is)}
|
43
|
+
role="presentation"
|
44
|
+
id="popover"
|
45
|
+
target={<Button>Target</Button>}
|
46
|
+
offset={[0, 6]}
|
47
|
+
placement='bottom'
|
48
|
+
trigger='click'
|
49
|
+
hasArrow
|
50
|
+
closeOnOverlayClick
|
51
|
+
closeOnEsc
|
52
|
+
isFocusTrapped
|
53
|
+
>
|
54
|
+
<StyledContent>
|
55
|
+
<>Content</>
|
56
|
+
<Button onClick={() => setIsOpen(false)}>close</Button>
|
57
|
+
</StyledContent>
|
58
|
+
</Popover>
|
59
|
+
</section>
|
60
|
+
);
|
61
|
+
}
|
62
|
+
```
|
63
|
+
</TabItem>
|
64
|
+
<TabItem value="refObject" label="RefObject">
|
65
|
+
```tsx live
|
66
|
+
import React, { useRef, useState } from 'react';
|
67
|
+
import styled from "styled-components";
|
68
|
+
import { surfaceSolidTertiary } from "@salutejs/{{ vertical }}/tokens";
|
69
|
+
import { Popover, Button } from '@salutejs/{{ package }}';
|
70
|
+
|
71
|
+
export function App() {
|
72
|
+
const [isOpen, setIsOpen] = useState(false);
|
73
|
+
|
74
|
+
const targetRef = useRef<HTMLButtonElement | null>(null);
|
75
|
+
const targetRef2 = useRef<HTMLButtonElement | null>(null);
|
76
|
+
const targetRef3 = useRef<HTMLButtonElement | null>(null);
|
77
|
+
|
78
|
+
const refs = [targetRef, targetRef2, targetRef3];
|
79
|
+
|
80
|
+
const [currRefIndex, setCurrentRefIndex] = useState(0);
|
81
|
+
const [currentRef, setCurrentRef] = useState(targetRef);
|
82
|
+
|
83
|
+
const changeRef = () => {
|
84
|
+
let ind = currRefIndex + 1;
|
85
|
+
|
86
|
+
if (ind > refs.length - 1) {
|
87
|
+
setCurrentRefIndex(0);
|
88
|
+
ind = 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
setCurrentRefIndex(ind);
|
92
|
+
setCurrentRef(refs[ind]);
|
93
|
+
};
|
94
|
+
|
95
|
+
const StyledContent = styled.div`
|
96
|
+
background: ${surfaceSolidTertiary};
|
97
|
+
padding: 1rem;
|
98
|
+
|
99
|
+
display: flex;
|
100
|
+
flex-direction: column;
|
101
|
+
align-items: center;
|
102
|
+
`;
|
103
|
+
|
104
|
+
return (
|
105
|
+
<>
|
106
|
+
<Button ref={targetRef}>Target 0</Button>
|
107
|
+
<Button style=\{{ margin: '0 5rem' }} onClick={changeRef}>
|
108
|
+
Change targetAsRef to Target {currRefIndex + 1 > refs.length - 1 ? 0 : currRefIndex + 1}
|
109
|
+
</Button>
|
110
|
+
<Button ref={targetRef2}>Target 1</Button>
|
111
|
+
<Popover
|
112
|
+
opened={isOpen}
|
113
|
+
onToggle={(is) => setIsOpen(is)}
|
114
|
+
role="presentation"
|
115
|
+
id="popover"
|
116
|
+
target={currentRef}
|
117
|
+
offset={[0, 6]}
|
118
|
+
placement='bottom'
|
119
|
+
trigger='click'
|
120
|
+
hasArrow
|
121
|
+
closeOnOverlayClick
|
122
|
+
closeOnEsc
|
123
|
+
isFocusTrapped
|
124
|
+
>
|
125
|
+
<StyledContent>
|
126
|
+
<>Content</>
|
127
|
+
<Button onClick={() => setIsOpen(false)}>Close</Button>
|
128
|
+
</StyledContent>
|
129
|
+
</Popover>
|
130
|
+
|
131
|
+
<div style=\{{ padding: '5rem' }}>Current Target: {currRefIndex}</div>
|
132
|
+
<Button ref={targetRef3}>Target 2</Button>
|
133
|
+
</>
|
134
|
+
);
|
135
|
+
}
|
136
|
+
```
|
137
|
+
</TabItem>
|
138
|
+
</Tabs>
|
139
|
+
|
@@ -2,7 +2,8 @@ export var classes = {
|
|
2
2
|
wrapper: 'popover-wrapper',
|
3
3
|
root: 'popover-root',
|
4
4
|
target: 'popover-target',
|
5
|
-
arrow: 'popover-arrow'
|
5
|
+
arrow: 'popover-arrow',
|
6
|
+
targetAsRef: 'popover-target-as-ref'
|
6
7
|
};
|
7
8
|
export var tokens = {
|
8
9
|
arrowMaskWidth: '--plasma-popover-arrow-mask-width',
|
@@ -14,5 +14,5 @@ export var Portal = function Portal(_ref) {
|
|
14
14
|
return null;
|
15
15
|
}
|
16
16
|
var portalContainer = typeof container === 'function' ? container() : container;
|
17
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, disabled && children, !disabled && /*#__PURE__*/ReactDOM.createPortal(children, portalContainer));
|
17
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (disabled || !portalContainer) && children, !disabled && portalContainer && /*#__PURE__*/ReactDOM.createPortal(children, portalContainer));
|
18
18
|
};
|
@@ -12,7 +12,6 @@ export * from './components/Breadcrumbs';
|
|
12
12
|
export * from './components/Chip';
|
13
13
|
export * from './components/ChipGroup';
|
14
14
|
export * from './components/Cell';
|
15
|
-
export * from './components/Flow';
|
16
15
|
export * from './components/Link';
|
17
16
|
export * from './components/Spinner';
|
18
17
|
export * from './components/Checkbox';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+E,MAAM,OAAO,CAAC;AAKpG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAMrD,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,+JAoQpE,CAAC;AAEN,eAAO,MAAM,aAAa;;;mBAtQQ,UAAU,cAAc,EAAE,YAAY,CAAC;;;;;;;;;;CAmRxE,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { PopoverProps } from './Popover.types';
|
3
|
-
export declare const StyledWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
4
3
|
export declare const StyledRoot: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
4
|
+
export declare const StyledWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
5
5
|
export declare const StyledArrow: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
6
6
|
export declare const StyledPopover: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<PopoverProps, "zIndex">>;
|
7
7
|
//# sourceMappingURL=Popover.styles.d.ts.map
|
@@ -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,
|
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,UAAU,qKAItB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAgBzB,CAAC;AAEF,eAAO,MAAM,WAAW,qKAcvB,CAAC;AAEF,eAAO,MAAM,aAAa,2KAuIzB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Popover.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO
|
1
|
+
{"version":3,"file":"Popover.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;CAOlB,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { HTMLAttributes, ReactNode, SyntheticEvent } from 'react';
|
1
|
+
import type { HTMLAttributes, ReactNode, RefObject, SyntheticEvent } from 'react';
|
2
2
|
import { Placement as PopoverPlacement, ComputedPlacement as PopoverPlacementBasic } from '@popperjs/core';
|
3
3
|
export type { Placement as PopoverPlacement, ComputedPlacement as PopoverPlacementBasic } from '@popperjs/core';
|
4
4
|
export declare type PopoverTrigger = 'hover' | 'click';
|
@@ -32,11 +32,11 @@ export declare type CustomPopoverProps = {
|
|
32
32
|
/**
|
33
33
|
* В каком контейнере позиционируется(по умолчанию document), можно также указать id элемента или ref для него.
|
34
34
|
*/
|
35
|
-
frame?: 'document' | string |
|
35
|
+
frame?: 'document' | string | RefObject<HTMLElement>;
|
36
36
|
/**
|
37
|
-
*
|
37
|
+
* Элемент или ref на элемент, рядом с которым произойдет вызов всплывающего окна.
|
38
38
|
*/
|
39
|
-
target?: ReactNode
|
39
|
+
target?: ReactNode | RefObject<HTMLElement>;
|
40
40
|
/**
|
41
41
|
* Есть ли стрелка над элементом.
|
42
42
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Popover.types.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"Popover.types.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE3G,YAAY,EAAE,SAAS,IAAI,gBAAgB,E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kBAAkB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Portal.types.d.ts","sourceRoot":"","sources":["../../../src/components/Portal/Portal.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,oBAAY,WAAW,GAAG;IACtB;;OAEG;IACH,SAAS,EAAE,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"Portal.types.d.ts","sourceRoot":"","sources":["../../../src/components/Portal/Portal.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,oBAAY,WAAW,GAAG;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC"}
|
package/types/index.d.ts
CHANGED
@@ -10,7 +10,6 @@ export * from './components/Breadcrumbs';
|
|
10
10
|
export * from './components/Chip';
|
11
11
|
export * from './components/ChipGroup';
|
12
12
|
export * from './components/Cell';
|
13
|
-
export * from './components/Flow';
|
14
13
|
export * from './components/Link';
|
15
14
|
export * from './components/Spinner';
|
16
15
|
export * from './components/Checkbox';
|
package/types/index.d.ts.map
CHANGED
@@ -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,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB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