@wix/editor-react-components 1.2769.0 → 1.2771.0
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/site/components/AudioPlayer/component.js +2 -2
- package/dist/site/components/Breadcrumbs/component.js +1 -1
- package/dist/site/components/DatePicker/DatePicker.types.d.ts +20 -76
- package/dist/site/components/DatePicker/component.js +232 -1240
- package/dist/site/components/DatePicker/components/DatePickerCalendar.d.ts +3 -2
- package/dist/site/components/DatePicker/components/DatePickerField.d.ts +1 -3
- package/dist/site/components/DatePicker/constants.d.ts +47 -79
- package/dist/site/components/DatePicker/css.css +60 -287
- package/dist/site/components/DatePicker/datePickerUtils.d.ts +8 -26
- package/dist/site/components/DatePicker/manifest.js +234 -207
- package/dist/site/components/Repeater/component.js +6 -6
- package/dist/site/components/TextInput/component.js +2 -2
- package/dist/site/components/TimePicker/component.js +350 -3
- package/dist/site/components/chunks/Button.js +2 -2
- package/dist/site/components/chunks/{DismissSmall.js → DateField.js} +56 -430
- package/dist/site/components/chunks/Group.js +44 -44
- package/dist/site/components/chunks/I18nProvider.js +1 -1
- package/dist/site/components/chunks/Input.js +3 -26
- package/dist/site/components/chunks/VisuallyHidden.js +1 -1
- package/dist/site/components/chunks/constants37.js +59 -90
- package/dist/site/components/chunks/filterDOMProps.js +11 -11
- package/dist/site/components/chunks/index11.js +8 -4
- package/package.json +2 -2
- package/dist/site/components/DatePicker/components/DatePickerLabel.d.ts +0 -8
- package/dist/site/components/DatePicker/components/DatePickerTooltip.d.ts +0 -5
- package/dist/site/components/DatePicker/hooks/useDateConstraints.d.ts +0 -12
- package/dist/site/components/DatePicker/hooks/useDatePickerValue.d.ts +0 -15
- package/dist/site/components/DatePicker/hooks/useUnavailableDates.d.ts +0 -3
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import React__default, { useContext, useState, useMemo, useRef, useEffect, forwardRef, createContext } from "react";
|
|
3
4
|
import { c as clsx } from "../chunks/clsx.js";
|
|
4
5
|
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../chunks/Button.js";
|
|
5
|
-
import { $ as $
|
|
6
|
+
import { $ as $72abaeab4d80592f$export$9fc1347d4195ccb3, a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, b as $d3f049242431219c$export$45fda7c47f93fd48, c as $b3526bc71400be8d$export$d39e1813b3bdd0e1, d as $d3f049242431219c$export$6d3443f2c48bfc20, e as $44f671af83e7d9e0$export$2de4954e8ae13b9f, f as $58246871e4652552$export$c9698ec7f05a07e1, g as $40825cdb76e74f70$export$7edc06cf1783b30f, h as $40825cdb76e74f70$export$336ab7fa954c4b5f, i as $40825cdb76e74f70$export$5eaee2322dd727eb } from "../chunks/DateField.js";
|
|
6
7
|
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6, a as $ee014567cb39d3f0$export$f551688fc98f2e09 } from "../chunks/Input.js";
|
|
7
|
-
import { $ as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4,
|
|
8
|
+
import { $ as $e969f22b6713ca4a$export$ae780daf29e6d456, a as $bbaa08b3cd72f041$export$9d1611c77c2fe928, b as $390e54f620492c70$export$f680877a34711e37, c as $d1116acdf220c2da$export$4c014de7c8940b4c, d as $8f5a2122b0992be3$export$630ff653c5ada6a9, e as $8f5a2122b0992be3$export$b9b3dfddab17db27, f as $d1116acdf220c2da$export$13f3202a3e5ddd5, g as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, h as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../chunks/Group.js";
|
|
9
|
+
import { $ as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, a as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f, b as $64fa3d84918910a7$export$2881499e37b75b9a, c as $64fa3d84918910a7$export$29f1550f4b0d4415, d as $64fa3d84918910a7$export$4d86445c2cf5e3, e as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../chunks/filterDOMProps.js";
|
|
10
|
+
import __rspack_external_react_dom_7136dc57__default from "react-dom";
|
|
8
11
|
import { $ as $2eb8e6d23f3d0cb0$export$a54013f0d02a8f82 } from "../chunks/I18nProvider.js";
|
|
9
12
|
import { useService } from "@wix/services-manager-react";
|
|
10
13
|
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
@@ -15,6 +18,350 @@ import { d as directionStyles } from "../chunks/direction.module.js";
|
|
|
15
18
|
import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
|
|
16
19
|
import { E as EMPTY_VALUE, s as selectors, T as TestIds, a as TRANSLATIONS_NAMESPACE, d as defaultValues, H as HourCycleValues, D as DefaultTranslations, b as TranslationKeys, V as VALUE_MISSING_MESSAGE } from "../chunks/constants2.js";
|
|
17
20
|
import { u as useValidatedField, R as RequiredIndicator, I as InfoCircleSmall_default } from "../chunks/RequiredIndicator.js";
|
|
21
|
+
const $c07df45195231803$var$Context = /* @__PURE__ */ React__default.createContext(null);
|
|
22
|
+
function $c07df45195231803$export$178405afcd8c5eb(props) {
|
|
23
|
+
let { children } = props;
|
|
24
|
+
let parent = useContext($c07df45195231803$var$Context);
|
|
25
|
+
let [modalCount, setModalCount] = useState(0);
|
|
26
|
+
let context = useMemo(() => ({
|
|
27
|
+
parent,
|
|
28
|
+
modalCount,
|
|
29
|
+
addModal() {
|
|
30
|
+
setModalCount((count) => count + 1);
|
|
31
|
+
if (parent) parent.addModal();
|
|
32
|
+
},
|
|
33
|
+
removeModal() {
|
|
34
|
+
setModalCount((count) => count - 1);
|
|
35
|
+
if (parent) parent.removeModal();
|
|
36
|
+
}
|
|
37
|
+
}), [
|
|
38
|
+
parent,
|
|
39
|
+
modalCount
|
|
40
|
+
]);
|
|
41
|
+
return /* @__PURE__ */ React__default.createElement($c07df45195231803$var$Context.Provider, {
|
|
42
|
+
value: context
|
|
43
|
+
}, children);
|
|
44
|
+
}
|
|
45
|
+
function $c07df45195231803$export$d9aaed4c3ece1bc0() {
|
|
46
|
+
let context = useContext($c07df45195231803$var$Context);
|
|
47
|
+
return {
|
|
48
|
+
modalProviderProps: {
|
|
49
|
+
"aria-hidden": context && context.modalCount > 0 ? true : void 0
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function $c07df45195231803$var$OverlayContainerDOM(props) {
|
|
54
|
+
let { modalProviderProps } = $c07df45195231803$export$d9aaed4c3ece1bc0();
|
|
55
|
+
return /* @__PURE__ */ React__default.createElement("div", {
|
|
56
|
+
"data-overlay-container": true,
|
|
57
|
+
...props,
|
|
58
|
+
...modalProviderProps
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function $c07df45195231803$export$bf688221f59024e5(props) {
|
|
62
|
+
return /* @__PURE__ */ React__default.createElement($c07df45195231803$export$178405afcd8c5eb, null, /* @__PURE__ */ React__default.createElement($c07df45195231803$var$OverlayContainerDOM, props));
|
|
63
|
+
}
|
|
64
|
+
function $c07df45195231803$export$b47c3594eab58386(props) {
|
|
65
|
+
let isSSR = $c7eafbbe1ea5834e$export$535bd6ca7f90a273();
|
|
66
|
+
let { portalContainer = isSSR ? null : document.body, ...rest } = props;
|
|
67
|
+
let { getContainer } = $72abaeab4d80592f$export$9fc1347d4195ccb3();
|
|
68
|
+
if (!props.portalContainer && getContainer) portalContainer = getContainer();
|
|
69
|
+
React__default.useEffect(() => {
|
|
70
|
+
if (portalContainer == null ? void 0 : portalContainer.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
|
|
71
|
+
}, [
|
|
72
|
+
portalContainer
|
|
73
|
+
]);
|
|
74
|
+
if (!portalContainer) return null;
|
|
75
|
+
let contents = /* @__PURE__ */ React__default.createElement($c07df45195231803$export$bf688221f59024e5, rest);
|
|
76
|
+
return /* @__PURE__ */ __rspack_external_react_dom_7136dc57__default.createPortal(contents, portalContainer);
|
|
77
|
+
}
|
|
78
|
+
function $8c383cffc84c9982$export$1c4b08e0eca38426(props, state) {
|
|
79
|
+
let domProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, {
|
|
80
|
+
labelable: true
|
|
81
|
+
});
|
|
82
|
+
let { hoverProps } = $e969f22b6713ca4a$export$ae780daf29e6d456({
|
|
83
|
+
onHoverStart: () => state == null ? void 0 : state.open(true),
|
|
84
|
+
onHoverEnd: () => state == null ? void 0 : state.close()
|
|
85
|
+
});
|
|
86
|
+
return {
|
|
87
|
+
tooltipProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(domProps, hoverProps, {
|
|
88
|
+
role: "tooltip"
|
|
89
|
+
})
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function $85908aa8a35f0fac$export$a6da6c504e4bba8b(props, state, ref) {
|
|
93
|
+
let { isDisabled, trigger, shouldCloseOnPress = true } = props;
|
|
94
|
+
let tooltipId = $390e54f620492c70$export$f680877a34711e37();
|
|
95
|
+
let isHovered = useRef(false);
|
|
96
|
+
let isFocused = useRef(false);
|
|
97
|
+
let handleShow = () => {
|
|
98
|
+
if (isHovered.current || isFocused.current) state.open(isFocused.current);
|
|
99
|
+
};
|
|
100
|
+
let handleHide = (immediate) => {
|
|
101
|
+
if (!isHovered.current && !isFocused.current) state.close(immediate);
|
|
102
|
+
};
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
let onKeyDown = (e) => {
|
|
105
|
+
if (ref && ref.current) {
|
|
106
|
+
if (e.key === "Escape") {
|
|
107
|
+
e.stopPropagation();
|
|
108
|
+
state.close(true);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
if (state.isOpen) {
|
|
113
|
+
document.addEventListener("keydown", onKeyDown, true);
|
|
114
|
+
return () => {
|
|
115
|
+
document.removeEventListener("keydown", onKeyDown, true);
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}, [
|
|
119
|
+
ref,
|
|
120
|
+
state
|
|
121
|
+
]);
|
|
122
|
+
let onHoverStart = () => {
|
|
123
|
+
if (trigger === "focus") return;
|
|
124
|
+
if ($8f5a2122b0992be3$export$630ff653c5ada6a9() === "pointer") isHovered.current = true;
|
|
125
|
+
else isHovered.current = false;
|
|
126
|
+
handleShow();
|
|
127
|
+
};
|
|
128
|
+
let onHoverEnd = () => {
|
|
129
|
+
if (trigger === "focus") return;
|
|
130
|
+
isFocused.current = false;
|
|
131
|
+
isHovered.current = false;
|
|
132
|
+
handleHide();
|
|
133
|
+
};
|
|
134
|
+
let onPressStart = () => {
|
|
135
|
+
if (!shouldCloseOnPress) return;
|
|
136
|
+
isFocused.current = false;
|
|
137
|
+
isHovered.current = false;
|
|
138
|
+
handleHide(true);
|
|
139
|
+
};
|
|
140
|
+
let onFocus = () => {
|
|
141
|
+
let isVisible = $8f5a2122b0992be3$export$b9b3dfddab17db27();
|
|
142
|
+
if (isVisible) {
|
|
143
|
+
isFocused.current = true;
|
|
144
|
+
handleShow();
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
let onBlur = () => {
|
|
148
|
+
isFocused.current = false;
|
|
149
|
+
isHovered.current = false;
|
|
150
|
+
handleHide(true);
|
|
151
|
+
};
|
|
152
|
+
let { hoverProps } = $e969f22b6713ca4a$export$ae780daf29e6d456({
|
|
153
|
+
isDisabled,
|
|
154
|
+
onHoverStart,
|
|
155
|
+
onHoverEnd
|
|
156
|
+
});
|
|
157
|
+
let { focusableProps } = $d1116acdf220c2da$export$4c014de7c8940b4c({
|
|
158
|
+
isDisabled,
|
|
159
|
+
onFocus,
|
|
160
|
+
onBlur
|
|
161
|
+
}, ref);
|
|
162
|
+
return {
|
|
163
|
+
triggerProps: {
|
|
164
|
+
"aria-describedby": state.isOpen ? tooltipId : void 0,
|
|
165
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(focusableProps, hoverProps, {
|
|
166
|
+
onPointerDown: onPressStart,
|
|
167
|
+
onKeyDown: onPressStart
|
|
168
|
+
}),
|
|
169
|
+
tabIndex: void 0
|
|
170
|
+
},
|
|
171
|
+
tooltipProps: {
|
|
172
|
+
id: tooltipId
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
const $3834487504f4fc00$var$TOOLTIP_DELAY = 1500;
|
|
177
|
+
const $3834487504f4fc00$var$TOOLTIP_COOLDOWN = 500;
|
|
178
|
+
let $3834487504f4fc00$var$tooltips = {};
|
|
179
|
+
let $3834487504f4fc00$var$tooltipId = 0;
|
|
180
|
+
let $3834487504f4fc00$var$globalWarmedUp = false;
|
|
181
|
+
let $3834487504f4fc00$var$globalWarmUpTimeout = null;
|
|
182
|
+
let $3834487504f4fc00$var$globalCooldownTimeout = null;
|
|
183
|
+
function $3834487504f4fc00$export$4d40659c25ecb50b(props = {}) {
|
|
184
|
+
let { delay = $3834487504f4fc00$var$TOOLTIP_DELAY, closeDelay = $3834487504f4fc00$var$TOOLTIP_COOLDOWN } = props;
|
|
185
|
+
let { isOpen, open, close } = $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props);
|
|
186
|
+
let id = useMemo(() => `${++$3834487504f4fc00$var$tooltipId}`, []);
|
|
187
|
+
let closeTimeout = useRef(null);
|
|
188
|
+
let closeCallback = useRef(close);
|
|
189
|
+
let ensureTooltipEntry = () => {
|
|
190
|
+
$3834487504f4fc00$var$tooltips[id] = hideTooltip;
|
|
191
|
+
};
|
|
192
|
+
let closeOpenTooltips = () => {
|
|
193
|
+
for (let hideTooltipId in $3834487504f4fc00$var$tooltips) if (hideTooltipId !== id) {
|
|
194
|
+
$3834487504f4fc00$var$tooltips[hideTooltipId](true);
|
|
195
|
+
delete $3834487504f4fc00$var$tooltips[hideTooltipId];
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
let showTooltip = () => {
|
|
199
|
+
if (closeTimeout.current) clearTimeout(closeTimeout.current);
|
|
200
|
+
closeTimeout.current = null;
|
|
201
|
+
closeOpenTooltips();
|
|
202
|
+
ensureTooltipEntry();
|
|
203
|
+
$3834487504f4fc00$var$globalWarmedUp = true;
|
|
204
|
+
open();
|
|
205
|
+
if ($3834487504f4fc00$var$globalWarmUpTimeout) {
|
|
206
|
+
clearTimeout($3834487504f4fc00$var$globalWarmUpTimeout);
|
|
207
|
+
$3834487504f4fc00$var$globalWarmUpTimeout = null;
|
|
208
|
+
}
|
|
209
|
+
if ($3834487504f4fc00$var$globalCooldownTimeout) {
|
|
210
|
+
clearTimeout($3834487504f4fc00$var$globalCooldownTimeout);
|
|
211
|
+
$3834487504f4fc00$var$globalCooldownTimeout = null;
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
let hideTooltip = (immediate) => {
|
|
215
|
+
if (immediate || closeDelay <= 0) {
|
|
216
|
+
if (closeTimeout.current) clearTimeout(closeTimeout.current);
|
|
217
|
+
closeTimeout.current = null;
|
|
218
|
+
closeCallback.current();
|
|
219
|
+
} else if (!closeTimeout.current) closeTimeout.current = setTimeout(() => {
|
|
220
|
+
closeTimeout.current = null;
|
|
221
|
+
closeCallback.current();
|
|
222
|
+
}, closeDelay);
|
|
223
|
+
if ($3834487504f4fc00$var$globalWarmUpTimeout) {
|
|
224
|
+
clearTimeout($3834487504f4fc00$var$globalWarmUpTimeout);
|
|
225
|
+
$3834487504f4fc00$var$globalWarmUpTimeout = null;
|
|
226
|
+
}
|
|
227
|
+
if ($3834487504f4fc00$var$globalWarmedUp) {
|
|
228
|
+
if ($3834487504f4fc00$var$globalCooldownTimeout) clearTimeout($3834487504f4fc00$var$globalCooldownTimeout);
|
|
229
|
+
$3834487504f4fc00$var$globalCooldownTimeout = setTimeout(() => {
|
|
230
|
+
delete $3834487504f4fc00$var$tooltips[id];
|
|
231
|
+
$3834487504f4fc00$var$globalCooldownTimeout = null;
|
|
232
|
+
$3834487504f4fc00$var$globalWarmedUp = false;
|
|
233
|
+
}, Math.max($3834487504f4fc00$var$TOOLTIP_COOLDOWN, closeDelay));
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
let warmupTooltip = () => {
|
|
237
|
+
closeOpenTooltips();
|
|
238
|
+
ensureTooltipEntry();
|
|
239
|
+
if (!isOpen && !$3834487504f4fc00$var$globalWarmedUp) {
|
|
240
|
+
if ($3834487504f4fc00$var$globalWarmUpTimeout) clearTimeout($3834487504f4fc00$var$globalWarmUpTimeout);
|
|
241
|
+
$3834487504f4fc00$var$globalWarmUpTimeout = setTimeout(() => {
|
|
242
|
+
$3834487504f4fc00$var$globalWarmUpTimeout = null;
|
|
243
|
+
$3834487504f4fc00$var$globalWarmedUp = true;
|
|
244
|
+
showTooltip();
|
|
245
|
+
}, delay);
|
|
246
|
+
} else if (!isOpen) showTooltip();
|
|
247
|
+
};
|
|
248
|
+
useEffect(() => {
|
|
249
|
+
closeCallback.current = close;
|
|
250
|
+
}, [
|
|
251
|
+
close
|
|
252
|
+
]);
|
|
253
|
+
useEffect(() => {
|
|
254
|
+
return () => {
|
|
255
|
+
if (closeTimeout.current) clearTimeout(closeTimeout.current);
|
|
256
|
+
let tooltip2 = $3834487504f4fc00$var$tooltips[id];
|
|
257
|
+
if (tooltip2) delete $3834487504f4fc00$var$tooltips[id];
|
|
258
|
+
};
|
|
259
|
+
}, [
|
|
260
|
+
id
|
|
261
|
+
]);
|
|
262
|
+
return {
|
|
263
|
+
isOpen,
|
|
264
|
+
open: (immediate) => {
|
|
265
|
+
if (!immediate && delay > 0 && !closeTimeout.current) warmupTooltip();
|
|
266
|
+
else showTooltip();
|
|
267
|
+
},
|
|
268
|
+
close: hideTooltip
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
const $4e3b923658d69c60$export$7a7623236eec67fa = /* @__PURE__ */ createContext(null);
|
|
272
|
+
const $4e3b923658d69c60$export$39ae08fa83328b12 = /* @__PURE__ */ createContext(null);
|
|
273
|
+
function $4e3b923658d69c60$export$8c610744efcf8a1d(props) {
|
|
274
|
+
let state = $3834487504f4fc00$export$4d40659c25ecb50b(props);
|
|
275
|
+
let ref = useRef(null);
|
|
276
|
+
let { triggerProps, tooltipProps } = $85908aa8a35f0fac$export$a6da6c504e4bba8b(props, state, ref);
|
|
277
|
+
return /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
278
|
+
values: [
|
|
279
|
+
[
|
|
280
|
+
$4e3b923658d69c60$export$7a7623236eec67fa,
|
|
281
|
+
state
|
|
282
|
+
],
|
|
283
|
+
[
|
|
284
|
+
$4e3b923658d69c60$export$39ae08fa83328b12,
|
|
285
|
+
{
|
|
286
|
+
...tooltipProps,
|
|
287
|
+
triggerRef: ref
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
]
|
|
291
|
+
}, /* @__PURE__ */ React__default.createElement($d1116acdf220c2da$export$13f3202a3e5ddd5, {
|
|
292
|
+
...triggerProps,
|
|
293
|
+
ref
|
|
294
|
+
}, props.children));
|
|
295
|
+
}
|
|
296
|
+
const $4e3b923658d69c60$export$28c660c63b792dea = /* @__PURE__ */ forwardRef(function Tooltip({ UNSTABLE_portalContainer, ...props }, ref) {
|
|
297
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e3b923658d69c60$export$39ae08fa83328b12);
|
|
298
|
+
let contextState = useContext($4e3b923658d69c60$export$7a7623236eec67fa);
|
|
299
|
+
let localState = $3834487504f4fc00$export$4d40659c25ecb50b(props);
|
|
300
|
+
let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
301
|
+
let isExiting = $d3f049242431219c$export$45fda7c47f93fd48(ref, state.isOpen) || props.isExiting || false;
|
|
302
|
+
if (!state.isOpen && !isExiting) return null;
|
|
303
|
+
return /* @__PURE__ */ React__default.createElement($c07df45195231803$export$b47c3594eab58386, {
|
|
304
|
+
portalContainer: UNSTABLE_portalContainer
|
|
305
|
+
}, /* @__PURE__ */ React__default.createElement($4e3b923658d69c60$var$TooltipInner, {
|
|
306
|
+
...props,
|
|
307
|
+
tooltipRef: ref,
|
|
308
|
+
isExiting
|
|
309
|
+
}));
|
|
310
|
+
});
|
|
311
|
+
function $4e3b923658d69c60$var$TooltipInner(props) {
|
|
312
|
+
let state = useContext($4e3b923658d69c60$export$7a7623236eec67fa);
|
|
313
|
+
let arrowRef = useRef(null);
|
|
314
|
+
let { overlayProps, arrowProps, placement, triggerAnchorPoint } = $b3526bc71400be8d$export$d39e1813b3bdd0e1({
|
|
315
|
+
placement: props.placement || "top",
|
|
316
|
+
targetRef: props.triggerRef,
|
|
317
|
+
overlayRef: props.tooltipRef,
|
|
318
|
+
arrowRef,
|
|
319
|
+
offset: props.offset,
|
|
320
|
+
crossOffset: props.crossOffset,
|
|
321
|
+
isOpen: state.isOpen,
|
|
322
|
+
arrowBoundaryOffset: props.arrowBoundaryOffset,
|
|
323
|
+
shouldFlip: props.shouldFlip,
|
|
324
|
+
containerPadding: props.containerPadding,
|
|
325
|
+
onClose: () => state.close(true)
|
|
326
|
+
});
|
|
327
|
+
let isEntering = $d3f049242431219c$export$6d3443f2c48bfc20(props.tooltipRef, !!placement) || props.isEntering || false;
|
|
328
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
329
|
+
...props,
|
|
330
|
+
defaultClassName: "react-aria-Tooltip",
|
|
331
|
+
values: {
|
|
332
|
+
placement,
|
|
333
|
+
isEntering,
|
|
334
|
+
isExiting: props.isExiting,
|
|
335
|
+
state
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
props = $bbaa08b3cd72f041$export$9d1611c77c2fe928(props, overlayProps);
|
|
339
|
+
let { tooltipProps } = $8c383cffc84c9982$export$1c4b08e0eca38426(props, state);
|
|
340
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
341
|
+
global: true
|
|
342
|
+
});
|
|
343
|
+
return /* @__PURE__ */ React__default.createElement("div", {
|
|
344
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(DOMProps, renderProps, tooltipProps),
|
|
345
|
+
ref: props.tooltipRef,
|
|
346
|
+
style: {
|
|
347
|
+
...overlayProps.style,
|
|
348
|
+
"--trigger-anchor-point": triggerAnchorPoint ? `${triggerAnchorPoint.x}px ${triggerAnchorPoint.y}px` : void 0,
|
|
349
|
+
...renderProps.style
|
|
350
|
+
},
|
|
351
|
+
"data-placement": placement !== null && placement !== void 0 ? placement : void 0,
|
|
352
|
+
"data-entering": isEntering || void 0,
|
|
353
|
+
"data-exiting": props.isExiting || void 0
|
|
354
|
+
}, /* @__PURE__ */ React__default.createElement($44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider, {
|
|
355
|
+
value: {
|
|
356
|
+
...arrowProps,
|
|
357
|
+
placement,
|
|
358
|
+
ref: arrowRef
|
|
359
|
+
}
|
|
360
|
+
}, renderProps.children));
|
|
361
|
+
}
|
|
362
|
+
const DismissSmall = ({ size, ...props }) => /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 18 18", fill: "currentColor", width: size || "18", height: size || "18", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M8.43933983,9.5 L6,7.06066017 C5.70710678,6.76776695 5.70710678,6.29289322 6,6 C6.29289322,5.70710678 6.76776695,5.70710678 7.06066017,6 L9.5,8.43933983 L11.9393398,6 C12.232233,5.70710678 12.7071068,5.70710678 13,6 C13.2928932,6.29289322 13.2928932,6.76776695 13,7.06066017 L10.5606602,9.5 L13,11.9393398 C13.2928932,12.232233 13.2928932,12.7071068 13,13 C12.7071068,13.2928932 12.232233,13.2928932 11.9393398,13 L9.5,10.5606602 L7.06066017,13 C6.76776695,13.2928932 6.29289322,13.2928932 6,13 C5.70710678,12.7071068 5.70710678,12.232233 6,11.9393398 L8.43933983,9.5 Z" }));
|
|
363
|
+
DismissSmall.displayName = "DismissSmall";
|
|
364
|
+
var DismissSmall_default = DismissSmall;
|
|
18
365
|
const root = "root__dzkbY";
|
|
19
366
|
const timePicker = "timePicker__j78My";
|
|
20
367
|
const labelRow = "labelRow__qoC8g";
|
|
@@ -6,9 +6,9 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
6
6
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
7
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
8
|
var _shouldStopPropagation;
|
|
9
|
-
import {
|
|
9
|
+
import { a as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f, f as $f39a9eba43920ace$export$86427a43e3e48ebb, c as $64fa3d84918910a7$export$29f1550f4b0d4415, d as $64fa3d84918910a7$export$4d86445c2cf5e3, e as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps.js";
|
|
10
10
|
import React__default, { useState, useRef, useCallback, useMemo, useEffect, useContext, createContext } from "react";
|
|
11
|
-
import {
|
|
11
|
+
import { n as $2add3ce32c6007eb$export$fedb369cb70207f1, o as $d447af545b77c9f1$export$b204af158042fbac, p as $081cb5757e08788e$export$24490316f764c430, q as $d447af545b77c9f1$export$f21a1ffae260145a, r as $48a7d519b337145d$export$4eaf04e54aa8eed6, s as $fe16bffc7a557bf0$export$7f54fc3180508a52, t as $a92dc41f639950be$export$c2b7abe5d61ec696, u as $a92dc41f639950be$export$525bc4921d56d4a, v as $23f2114a1b82827e$export$4282f70798064fe0, k as $23f2114a1b82827e$export$e58f029f0fbfdb29, w as $b5c62b033c25b96d$export$29bf1b5f2c56cf63, x as $a92dc41f639950be$export$cabe61c495ee3649, y as $1969ac565cfec8d0$export$de79e2c695e052f3, z as $b5c62b033c25b96d$export$60278871457622de, a as $bbaa08b3cd72f041$export$9d1611c77c2fe928, A as $b7115c395c64f7b5$export$4debdb1a3f0fa79e, B as $caaf0dd3060ed57c$export$95185d699e05d4d7, C as $a4e76a5424781910$export$e08e3b67e392101e, D as $2add3ce32c6007eb$export$9ac100e40613ea10, c as $d1116acdf220c2da$export$4c014de7c8940b4c, E as $0c4a58759813079a$export$4e328f61c538687f, $ as $e969f22b6713ca4a$export$ae780daf29e6d456, b as $390e54f620492c70$export$f680877a34711e37 } from "./Group.js";
|
|
12
12
|
import { flushSync } from "react-dom";
|
|
13
13
|
const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7e3;
|
|
14
14
|
let $319e236875307eab$var$liveAnnouncer = null;
|