@zag-js/popover 2.0.0-next.2 → 2.0.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +8 -10
- package/dist/index.d.ts +8 -10
- package/dist/index.js +12 -38
- package/dist/index.mjs +2 -7
- package/dist/popover.anatomy.d.mts +2 -6
- package/dist/popover.anatomy.d.ts +2 -6
- package/dist/popover.anatomy.js +8 -44
- package/dist/popover.anatomy.mjs +4 -18
- package/dist/popover.connect.d.mts +3 -9
- package/dist/popover.connect.d.ts +3 -9
- package/dist/popover.connect.js +270 -212
- package/dist/popover.connect.mjs +263 -174
- package/dist/popover.dom.d.mts +19 -21
- package/dist/popover.dom.d.ts +19 -21
- package/dist/popover.dom.js +59 -84
- package/dist/popover.dom.mjs +38 -43
- package/dist/popover.machine.d.mts +2 -9
- package/dist/popover.machine.d.ts +2 -9
- package/dist/popover.machine.js +466 -357
- package/dist/popover.machine.mjs +459 -319
- package/dist/popover.props.d.mts +3 -10
- package/dist/popover.props.d.ts +3 -10
- package/dist/popover.props.js +34 -59
- package/dist/popover.props.mjs +30 -33
- package/dist/popover.style.d.mts +15 -0
- package/dist/popover.style.d.ts +15 -0
- package/dist/popover.style.js +15 -0
- package/dist/popover.style.mjs +11 -0
- package/dist/popover.types.d.mts +350 -237
- package/dist/popover.types.d.ts +350 -237
- package/dist/popover.types.js +4 -18
- package/dist/popover.types.mjs +1 -0
- package/package.json +12 -12
package/dist/popover.connect.mjs
CHANGED
|
@@ -1,180 +1,269 @@
|
|
|
1
|
-
|
|
1
|
+
import { parts } from "./popover.anatomy.mjs";
|
|
2
|
+
import { getContentId, getDescriptionId, getTitleId } from "./popover.dom.mjs";
|
|
3
|
+
import { getViewportSizeStyle } from "./popover.style.mjs";
|
|
2
4
|
import { getDismissableLayerAttrs, getDismissableLayerStyle } from "@zag-js/dismissable";
|
|
3
5
|
import { ariaAttr, dataAttr, isLeftClick, isSafari } from "@zag-js/dom-query";
|
|
4
6
|
import { getPlacementSide, getPlacementStyles } from "@zag-js/popper";
|
|
5
7
|
import { mergeWithDefault } from "@zag-js/utils";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var defaultTranslations = {
|
|
9
|
-
closeTriggerLabel: "close"
|
|
10
|
-
};
|
|
8
|
+
// src/popover.connect.ts
|
|
9
|
+
const defaultTranslations = { closeTriggerLabel: "close" };
|
|
11
10
|
function connect(service, normalize) {
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
11
|
+
const { state, context, send, prop, scope } = service;
|
|
12
|
+
const layer = context.get("layer");
|
|
13
|
+
const translations = mergeWithDefault(defaultTranslations, prop("translations"));
|
|
14
|
+
const open = state.matches("open");
|
|
15
|
+
const currentPlacement = context.get("currentPlacement");
|
|
16
|
+
const currentPlacementSide = currentPlacement ? getPlacementSide(currentPlacement) : void 0;
|
|
17
|
+
const rendered = context.get("renderedElements");
|
|
18
|
+
const triggerValue = context.get("triggerValue");
|
|
19
|
+
const transitioning = context.get("transitioning");
|
|
20
|
+
const instant = context.get("instant");
|
|
21
|
+
const activationDirection = context.get("activationDirection");
|
|
22
|
+
const viewportRendered = rendered.viewport;
|
|
23
|
+
const popperStyles = getPlacementStyles({
|
|
24
|
+
...prop("positioning"),
|
|
25
|
+
placement: currentPlacement
|
|
26
|
+
});
|
|
27
|
+
function getTriggerState(props = {}) {
|
|
28
|
+
const { value } = props;
|
|
29
|
+
const current = value == null ? false : triggerValue === value;
|
|
30
|
+
return {
|
|
31
|
+
value,
|
|
32
|
+
current,
|
|
33
|
+
open: value == null ? open : open && current
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function getPositionerState() {
|
|
37
|
+
return {
|
|
38
|
+
nested: !!layer?.nested,
|
|
39
|
+
hasNested: !!layer?.hasNested,
|
|
40
|
+
transitioning,
|
|
41
|
+
instant
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function getContentState(props = {}) {
|
|
45
|
+
const { value } = props;
|
|
46
|
+
return {
|
|
47
|
+
open: value == null ? open : triggerValue === value,
|
|
48
|
+
modal: !!prop("modal"),
|
|
49
|
+
nested: !!layer?.nested,
|
|
50
|
+
hasNested: !!layer?.hasNested,
|
|
51
|
+
placement: currentPlacement,
|
|
52
|
+
side: currentPlacementSide,
|
|
53
|
+
activationDirection,
|
|
54
|
+
instant
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function getViewportState() {
|
|
58
|
+
return {
|
|
59
|
+
open,
|
|
60
|
+
instant,
|
|
61
|
+
side: currentPlacementSide,
|
|
62
|
+
activationDirection,
|
|
63
|
+
transitioning
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
open,
|
|
68
|
+
setOpen(nextOpen, reason = "script") {
|
|
69
|
+
send({
|
|
70
|
+
type: nextOpen ? "OPEN" : "CLOSE",
|
|
71
|
+
src: reason,
|
|
72
|
+
replaces: "open"
|
|
73
|
+
});
|
|
74
|
+
},
|
|
75
|
+
triggerValue,
|
|
76
|
+
activationDirection,
|
|
77
|
+
getContentValues() {
|
|
78
|
+
const previousValue = context.get("previousTriggerValue");
|
|
79
|
+
const values = [];
|
|
80
|
+
if (previousValue != null && previousValue !== triggerValue) values.push(previousValue);
|
|
81
|
+
if (triggerValue != null) values.push(triggerValue);
|
|
82
|
+
return values;
|
|
83
|
+
},
|
|
84
|
+
setTriggerValue(value) {
|
|
85
|
+
send({
|
|
86
|
+
type: "TRIGGER_VALUE.SET",
|
|
87
|
+
value
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
reposition(options = {}) {
|
|
91
|
+
send({
|
|
92
|
+
type: "POSITIONING.SET",
|
|
93
|
+
options
|
|
94
|
+
});
|
|
95
|
+
},
|
|
96
|
+
getArrowProps() {
|
|
97
|
+
return normalize.element({
|
|
98
|
+
...parts.arrow.attrs(scope.id),
|
|
99
|
+
dir: prop("dir"),
|
|
100
|
+
hidden: viewportRendered ? !open : void 0,
|
|
101
|
+
"data-state": open ? "open" : "closed",
|
|
102
|
+
style: popperStyles.arrow
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
getArrowTipProps() {
|
|
106
|
+
return normalize.element({
|
|
107
|
+
...parts.arrowTip.attrs(scope.id),
|
|
108
|
+
dir: prop("dir"),
|
|
109
|
+
style: popperStyles.arrowTip
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
getAnchorProps() {
|
|
113
|
+
return normalize.element({
|
|
114
|
+
...parts.anchor.attrs(scope.id),
|
|
115
|
+
dir: prop("dir")
|
|
116
|
+
});
|
|
117
|
+
},
|
|
118
|
+
getTriggerState,
|
|
119
|
+
getTriggerProps(props = {}) {
|
|
120
|
+
const { value } = props;
|
|
121
|
+
const triggerState = getTriggerState(props);
|
|
122
|
+
const { current } = triggerState;
|
|
123
|
+
return normalize.button({
|
|
124
|
+
...parts.trigger.attrs(scope.id),
|
|
125
|
+
dir: prop("dir"),
|
|
126
|
+
type: "button",
|
|
127
|
+
"data-placement": currentPlacement,
|
|
128
|
+
"data-side": currentPlacementSide,
|
|
129
|
+
"data-value": value,
|
|
130
|
+
"data-current": dataAttr(current),
|
|
131
|
+
"aria-haspopup": "dialog",
|
|
132
|
+
"aria-expanded": triggerState.open,
|
|
133
|
+
"data-state": open ? "open" : "closed",
|
|
134
|
+
"aria-controls": getContentId(scope, viewportRendered ? value : null),
|
|
135
|
+
onPointerDown(event) {
|
|
136
|
+
if (!isLeftClick(event)) return;
|
|
137
|
+
if (isSafari()) event.currentTarget.focus();
|
|
138
|
+
},
|
|
139
|
+
onClick(event) {
|
|
140
|
+
if (event.defaultPrevented) return;
|
|
141
|
+
const shouldSwitch = open && value != null && !current;
|
|
142
|
+
const instant = event.detail === 0 ? "click" : null;
|
|
143
|
+
send({
|
|
144
|
+
type: shouldSwitch ? "TRIGGER_VALUE.SET" : "TOGGLE",
|
|
145
|
+
value,
|
|
146
|
+
instant,
|
|
147
|
+
src: "trigger-click"
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
onBlur(event) {
|
|
151
|
+
send({
|
|
152
|
+
type: "TRIGGER_BLUR",
|
|
153
|
+
target: event.relatedTarget
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
},
|
|
158
|
+
getIndicatorProps() {
|
|
159
|
+
return normalize.element({
|
|
160
|
+
...parts.indicator.attrs(scope.id),
|
|
161
|
+
dir: prop("dir"),
|
|
162
|
+
"data-state": open ? "open" : "closed"
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
getPositionerState,
|
|
166
|
+
getPositionerProps() {
|
|
167
|
+
const positionerState = getPositionerState();
|
|
168
|
+
return normalize.element({
|
|
169
|
+
...parts.positioner.attrs(scope.id),
|
|
170
|
+
dir: prop("dir"),
|
|
171
|
+
"data-transitioning": dataAttr(positionerState.transitioning),
|
|
172
|
+
"data-instant": positionerState.instant ?? void 0,
|
|
173
|
+
...getDismissableLayerAttrs(layer),
|
|
174
|
+
style: {
|
|
175
|
+
...popperStyles.floating,
|
|
176
|
+
...getDismissableLayerStyle(layer),
|
|
177
|
+
...getViewportSizeStyle(viewportRendered ? context.get("viewportSize") : null)
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
},
|
|
181
|
+
getContentState,
|
|
182
|
+
getContentProps(props = {}) {
|
|
183
|
+
const { value } = props;
|
|
184
|
+
const contentState = getContentState(props);
|
|
185
|
+
const contentLayer = viewportRendered ? null : layer;
|
|
186
|
+
return normalize.element({
|
|
187
|
+
...parts.content.attrs(scope.id),
|
|
188
|
+
dir: prop("dir"),
|
|
189
|
+
id: getContentId(scope, value),
|
|
190
|
+
tabIndex: -1,
|
|
191
|
+
role: "dialog",
|
|
192
|
+
"aria-modal": ariaAttr(contentState.modal),
|
|
193
|
+
hidden: !contentState.open,
|
|
194
|
+
"data-value": value,
|
|
195
|
+
"data-state": contentState.open ? "open" : "closed",
|
|
196
|
+
"data-expanded": dataAttr(contentState.open),
|
|
197
|
+
"aria-labelledby": rendered.title ? getTitleId(scope, value) : void 0,
|
|
198
|
+
"aria-describedby": rendered.description ? getDescriptionId(scope, value) : void 0,
|
|
199
|
+
"data-placement": contentState.placement,
|
|
200
|
+
"data-side": contentState.side,
|
|
201
|
+
"data-activation-direction": contentState.activationDirection ?? void 0,
|
|
202
|
+
"data-instant": contentState.instant ?? void 0,
|
|
203
|
+
...getDismissableLayerAttrs(contentLayer),
|
|
204
|
+
style: getDismissableLayerStyle(contentLayer, { pointerEvents: true })
|
|
205
|
+
});
|
|
206
|
+
},
|
|
207
|
+
getViewportState,
|
|
208
|
+
getViewportProps() {
|
|
209
|
+
const viewportState = getViewportState();
|
|
210
|
+
return normalize.element({
|
|
211
|
+
...parts.viewport.attrs(scope.id),
|
|
212
|
+
dir: prop("dir"),
|
|
213
|
+
hidden: !viewportState.open,
|
|
214
|
+
"data-state": viewportState.open ? "open" : "closed",
|
|
215
|
+
"data-side": viewportState.side,
|
|
216
|
+
"data-instant": viewportState.instant ?? void 0,
|
|
217
|
+
"data-activation-direction": viewportState.activationDirection ?? void 0,
|
|
218
|
+
"data-transitioning": dataAttr(viewportState.transitioning),
|
|
219
|
+
...getDismissableLayerAttrs(layer),
|
|
220
|
+
style: {
|
|
221
|
+
...getDismissableLayerStyle(layer, { pointerEvents: true }),
|
|
222
|
+
...getViewportStyle(viewportState.side)
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
},
|
|
226
|
+
getTitleProps(props = {}) {
|
|
227
|
+
return normalize.element({
|
|
228
|
+
...parts.title.attrs(scope.id),
|
|
229
|
+
id: getTitleId(scope, props.value),
|
|
230
|
+
dir: prop("dir")
|
|
231
|
+
});
|
|
232
|
+
},
|
|
233
|
+
getDescriptionProps(props = {}) {
|
|
234
|
+
return normalize.element({
|
|
235
|
+
...parts.description.attrs(scope.id),
|
|
236
|
+
id: getDescriptionId(scope, props.value),
|
|
237
|
+
dir: prop("dir")
|
|
238
|
+
});
|
|
239
|
+
},
|
|
240
|
+
getCloseTriggerProps() {
|
|
241
|
+
return normalize.button({
|
|
242
|
+
...parts.closeTrigger.attrs(scope.id),
|
|
243
|
+
dir: prop("dir"),
|
|
244
|
+
type: "button",
|
|
245
|
+
"aria-label": translations.closeTriggerLabel,
|
|
246
|
+
onClick(event) {
|
|
247
|
+
if (event.defaultPrevented) return;
|
|
248
|
+
event.stopPropagation();
|
|
249
|
+
send({
|
|
250
|
+
type: "CLOSE",
|
|
251
|
+
src: "close-trigger"
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
function getViewportStyle(side) {
|
|
259
|
+
return {
|
|
260
|
+
position: "absolute",
|
|
261
|
+
width: "var(--viewport-width)",
|
|
262
|
+
height: "var(--viewport-height)",
|
|
263
|
+
top: side === "top" ? void 0 : "0px",
|
|
264
|
+
bottom: side === "top" ? "0px" : void 0,
|
|
265
|
+
left: side === "left" ? void 0 : "0px",
|
|
266
|
+
right: side === "left" ? "0px" : void 0
|
|
267
|
+
};
|
|
177
268
|
}
|
|
178
|
-
export {
|
|
179
|
-
connect
|
|
180
|
-
};
|
|
269
|
+
export { connect };
|
package/dist/popover.dom.d.mts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { Scope } from
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
declare const
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
7
|
-
declare const
|
|
8
|
-
declare const
|
|
9
|
-
declare const
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
12
|
-
declare const
|
|
13
|
-
declare const
|
|
14
|
-
declare const
|
|
15
|
-
declare const
|
|
16
|
-
declare const
|
|
17
|
-
declare const
|
|
18
|
-
declare const
|
|
19
|
-
declare const
|
|
20
|
-
|
|
21
|
-
export { getActiveTriggerEl, getAnchorEl, getAnchorId, getArrowId, getCloseTriggerId, getContentEl, getContentId, getDescriptionEl, getDescriptionId, getFirstFocusableEl, getFocusableEls, getPositionerEl, getPositionerId, getTitleEl, getTitleId, getTriggerEls, getTriggerId };
|
|
1
|
+
import { Scope } from "@zag-js/core";
|
|
2
|
+
export declare const getAnchorId: (scope: Scope) => any;
|
|
3
|
+
export declare const getTriggerId: (scope: Scope, value?: string) => any;
|
|
4
|
+
export declare const getContentId: (scope: Scope, value?: string | null) => any;
|
|
5
|
+
export declare const getPositionerId: (scope: Scope) => any;
|
|
6
|
+
export declare const getArrowId: (scope: Scope) => any;
|
|
7
|
+
export declare const getTitleId: (scope: Scope, value?: string | null) => any;
|
|
8
|
+
export declare const getDescriptionId: (scope: Scope, value?: string | null) => any;
|
|
9
|
+
export declare const getCloseTriggerId: (scope: Scope) => any;
|
|
10
|
+
export declare const getAnchorEl: (scope: Scope) => HTMLElement | null;
|
|
11
|
+
export declare const getTriggerEls: (scope: Scope) => HTMLElement[];
|
|
12
|
+
export declare const getTriggerEl: (scope: Scope, value?: string | null) => HTMLElement | null;
|
|
13
|
+
export declare const getContentEl: (scope: Scope, value?: string | null) => HTMLElement | null;
|
|
14
|
+
export declare const getViewportEl: (scope: Scope) => HTMLElement | null;
|
|
15
|
+
export declare const getLayerEl: (scope: Scope, value?: string | null) => HTMLElement | null;
|
|
16
|
+
export declare const getPositionerEl: (scope: Scope) => HTMLElement | null;
|
|
17
|
+
export declare const getArrowEl: (scope: Scope) => HTMLElement | null;
|
|
18
|
+
export declare const getTitleEl: (scope: Scope) => HTMLElement | null;
|
|
19
|
+
export declare const getDescriptionEl: (scope: Scope) => HTMLElement | null;
|
package/dist/popover.dom.d.ts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { Scope } from
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
declare const
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
7
|
-
declare const
|
|
8
|
-
declare const
|
|
9
|
-
declare const
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
12
|
-
declare const
|
|
13
|
-
declare const
|
|
14
|
-
declare const
|
|
15
|
-
declare const
|
|
16
|
-
declare const
|
|
17
|
-
declare const
|
|
18
|
-
declare const
|
|
19
|
-
declare const
|
|
20
|
-
|
|
21
|
-
export { getActiveTriggerEl, getAnchorEl, getAnchorId, getArrowId, getCloseTriggerId, getContentEl, getContentId, getDescriptionEl, getDescriptionId, getFirstFocusableEl, getFocusableEls, getPositionerEl, getPositionerId, getTitleEl, getTitleId, getTriggerEls, getTriggerId };
|
|
1
|
+
import { Scope } from "@zag-js/core";
|
|
2
|
+
export declare const getAnchorId: (scope: Scope) => any;
|
|
3
|
+
export declare const getTriggerId: (scope: Scope, value?: string) => any;
|
|
4
|
+
export declare const getContentId: (scope: Scope, value?: string | null) => any;
|
|
5
|
+
export declare const getPositionerId: (scope: Scope) => any;
|
|
6
|
+
export declare const getArrowId: (scope: Scope) => any;
|
|
7
|
+
export declare const getTitleId: (scope: Scope, value?: string | null) => any;
|
|
8
|
+
export declare const getDescriptionId: (scope: Scope, value?: string | null) => any;
|
|
9
|
+
export declare const getCloseTriggerId: (scope: Scope) => any;
|
|
10
|
+
export declare const getAnchorEl: (scope: Scope) => HTMLElement | null;
|
|
11
|
+
export declare const getTriggerEls: (scope: Scope) => HTMLElement[];
|
|
12
|
+
export declare const getTriggerEl: (scope: Scope, value?: string | null) => HTMLElement | null;
|
|
13
|
+
export declare const getContentEl: (scope: Scope, value?: string | null) => HTMLElement | null;
|
|
14
|
+
export declare const getViewportEl: (scope: Scope) => HTMLElement | null;
|
|
15
|
+
export declare const getLayerEl: (scope: Scope, value?: string | null) => HTMLElement | null;
|
|
16
|
+
export declare const getPositionerEl: (scope: Scope) => HTMLElement | null;
|
|
17
|
+
export declare const getArrowEl: (scope: Scope) => HTMLElement | null;
|
|
18
|
+
export declare const getTitleEl: (scope: Scope) => HTMLElement | null;
|
|
19
|
+
export declare const getDescriptionEl: (scope: Scope) => HTMLElement | null;
|