@temp-spotwork/ui 1.7.1 → 1.7.2
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/{Combination-BkpbjcWz.js → Combination-B1NSOvaC.js} +170 -167
- package/dist/{bundle-mjs-CAy1p0fn.js → bundle-mjs-BjFsLjkg.js} +1 -1
- package/dist/components/atoms/avatar/Avatar.stories.js +1 -1
- package/dist/components/atoms/avatar/avatar.js +1 -1
- package/dist/components/atoms/badge/badge.stories.js +1 -1
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.js +1 -1
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.stories.js +1 -1
- package/dist/components/atoms/daybubble/recurrence-day/recurrence-day.js +1 -1
- package/dist/components/atoms/form/calendar/calendar-date-cell.js +3 -3
- package/dist/components/atoms/form/calendar/calendar-month.js +1 -1
- package/dist/components/atoms/form/calendar/calendar-utils.js +1 -1
- package/dist/components/atoms/form/calendar/calendar.js +2 -2
- package/dist/components/atoms/form/calendar/calendar.stories.js +3 -3
- package/dist/components/atoms/form/calendar/month-header.js +1 -1
- package/dist/components/atoms/form/calendar/sticky-button.js +1 -1
- package/dist/components/atoms/form/checkbox/checkbox.js +2 -2
- package/dist/components/atoms/form/chips/chips.js +1 -1
- package/dist/components/atoms/form/chips/chips.stories.js +1 -1
- package/dist/components/atoms/form/dateselect/date-calendar.js +2 -2
- package/dist/components/atoms/form/dateselect/date-dropdown-header.js +1 -1
- package/dist/components/atoms/form/dateselect/date-dropdown.js +1 -1
- package/dist/components/atoms/form/dateselect/date-input.js +3 -3
- package/dist/components/atoms/form/dateselect/date-month-year-switch.js +1 -1
- package/dist/components/atoms/form/dateselect/dateselect.js +2 -2
- package/dist/components/atoms/form/dateselect/month-switch.js +3 -3
- package/dist/components/atoms/form/dateselect/year-switch.js +3 -3
- package/dist/components/atoms/form/dropdown/dropdown.js +1 -1
- package/dist/components/atoms/form/dropdown-search/dropdown-search.js +1 -1
- package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.js +1 -1
- package/dist/components/atoms/form/radiobutton/radiobutton.js +1 -1
- package/dist/components/atoms/form/stepper/Stepper.stories.js +1 -1
- package/dist/components/atoms/form/switch/switch.js +21 -21
- package/dist/components/atoms/form/time-picker/time-picker-dropdown.js +2 -2
- package/dist/components/atoms/form/time-picker/time-picker-input.js +3 -3
- package/dist/components/atoms/form/time-picker/time-picker.js +2 -2
- package/dist/components/atoms/form/time-picker/time-picker.stories.js +2 -2
- package/dist/components/atoms/form/timeselect/hours-switch.js +1 -1
- package/dist/components/atoms/form/timeselect/minutes-switch.js +1 -1
- package/dist/components/atoms/form/typeahead/typeahead.js +1 -1
- package/dist/components/atoms/icons/icons.js +2 -2
- package/dist/components/atoms/icons/icons.stories.js +3 -3
- package/dist/components/atoms/message/message.js +1 -1
- package/dist/components/atoms/message/message.stories.js +1 -1
- package/dist/components/atoms/navigation/navigation-item/navigation-item.js +1 -1
- package/dist/components/atoms/small-large-text/small-large-text.js +2 -2
- package/dist/components/atoms/tab/Tab.stories.js +1 -1
- package/dist/components/atoms/tab/tab.js +1 -1
- package/dist/components/atoms/tooltip/tooltip.js +2 -2
- package/dist/components/atoms/tooltip/tooltip.stories.js +1 -1
- package/dist/components/molecules/alert/alert.js +4 -4
- package/dist/components/molecules/button/Button.stories.js +1 -1
- package/dist/components/molecules/button/button.js +1 -1
- package/dist/components/molecules/button/loading-spinner.js +1 -1
- package/dist/components/molecules/collapsible-card/Collapsiblecard.stories.js +1 -1
- package/dist/components/molecules/conversation/message-editor/MessageEditor.stories.js +1 -1
- package/dist/components/molecules/conversation/message-group-composer/MessageGroupComposer.stories.js +1 -1
- package/dist/components/molecules/datatables/cell/Cell.stories.js +1 -1
- package/dist/components/molecules/datatables/cell/cell.js +1 -1
- package/dist/components/molecules/datatables/row/Row.stories.js +1 -1
- package/dist/components/molecules/datatables/row/row.js +1 -1
- package/dist/components/molecules/datatables/row-header/RowHeader.stories.js +1 -1
- package/dist/components/molecules/dataviz/donut-chart/DonutChart.stories.js +1 -1
- package/dist/components/molecules/dataviz/donut-chart/donut-chart.js +1821 -1820
- package/dist/components/molecules/dataviz/dot-matrix/DotMatrix.stories.js +1 -1
- package/dist/components/molecules/dataviz/progress-bar/progress-bar.js +1 -1
- package/dist/components/molecules/dataviz/single-stacked-bar/SingleStackedBar.stories.js +1 -1
- package/dist/components/molecules/dialog/dialog.js +4 -4
- package/dist/components/molecules/dialog/dialog.stories.js +1 -1
- package/dist/components/molecules/drawer/drawer.js +3 -3
- package/dist/components/molecules/filter/checkbox/checkbox.js +2 -2
- package/dist/components/molecules/filter/context-search/context-search.js +25 -26
- package/dist/components/molecules/filter/date-range-selector/date-range-selector.js +16 -16
- package/dist/components/molecules/filter/date-selector/DateSelector.stories.js +1 -1
- package/dist/components/molecules/filter/date-selector/date-selector.js +11 -11
- package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.js +2 -2
- package/dist/components/molecules/filter/range-selector/RangeSelector.stories.js +1 -1
- package/dist/components/molecules/filter/range-selector/range-selector.js +6 -6
- package/dist/components/molecules/filter/range-selector/styles.js +1 -1
- package/dist/components/molecules/filter/segmented-control/segmented-control.js +1 -1
- package/dist/components/molecules/form/radiogroup/radiogroup.js +1 -1
- package/dist/components/molecules/form/radiogroup/radiogroup.stories.js +1 -1
- package/dist/components/molecules/link/Link.stories.js +1 -1
- package/dist/components/molecules/navigation/context-menu/context-menu.js +2 -2
- package/dist/components/molecules/navigation/header/Header.stories.js +1 -1
- package/dist/components/molecules/navigation/menubar/menubar.js +2 -2
- package/dist/components/molecules/navigation/sidebar/Sidebar.stories.js +1 -1
- package/dist/components/molecules/navigation/sidebar/sidebar.js +2 -2
- package/dist/components/molecules/notifications/content/Content.stories.js +1 -1
- package/dist/components/molecules/snackbar/Snackbar.stories.js +1 -1
- package/dist/components/molecules/snackbar/index.js +1 -1
- package/dist/components/molecules/snackbar/snackbar.js +3 -3
- package/dist/components/molecules/tab-group/tab-group.js +1 -1
- package/dist/components/molecules/tab-group/tabgroup.stories.js +1 -1
- package/dist/components/styles/typography/typography.js +1 -1
- package/dist/{index-DrfOymtc.js → index-B9jfXCBx.js} +15 -15
- package/dist/{index-DNpMaKvH.js → index-Bam3aisa.js} +24 -24
- package/dist/{index-OIdMhwsO.js → index-ByBd5wKB.js} +1 -1
- package/dist/{index-C0ZrzaoZ.js → index-Ck3lRuRz.js} +17 -17
- package/dist/{index-DotfMcM0.js → index-DLKZ-XYv.js} +5922 -5891
- package/dist/{index-CYyrKZeH.js → index-DMvnp-vR.js} +58 -58
- package/dist/{index-CnWyMXBX.js → index-DVNTJNwY.js} +24 -24
- package/dist/{index-DM2Ov9_y.js → index-Dpx0xQmQ.js} +6620 -6620
- package/dist/{index-BKdkX0lZ.js → index-QKj2bKph.js} +13 -13
- package/dist/lib/utils.js +1 -1
- package/dist/lodash-CyvSh4lH.js +3691 -0
- package/dist/main.js +2 -2
- package/dist/purify.es-CcKdJiNO.js +595 -0
- package/dist/{react-spring_web.modern-BLL8Qmtg.js → react-spring_web.modern-BzbxCya-.js} +1 -1
- package/dist/{snackbar-CgqDB5xn.js → snackbar-BUPlWHWk.js} +9 -14
- package/package.json +1 -1
- package/dist/lodash-BRbpQ7iy.js +0 -3676
- package/dist/purify.es-eYFoHPwR.js +0 -528
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { P as L, a as I, u as O, b as N, c as S, d as j, e as H } from "./index-DLKZ-XYv.js";
|
|
3
3
|
import { u as z } from "./index-BZPx6jYI.js";
|
|
4
4
|
import { jsx as h, jsxs as G, Fragment as K } from "react/jsx-runtime";
|
|
5
|
-
var _ = "Checkbox", [U
|
|
5
|
+
var _ = "Checkbox", [U] = H(_), [X, g] = U(_);
|
|
6
6
|
function J(t) {
|
|
7
7
|
const {
|
|
8
8
|
__scopeCheckbox: a,
|
|
@@ -17,20 +17,20 @@ function J(t) {
|
|
|
17
17
|
value: k = "on",
|
|
18
18
|
// @ts-expect-error
|
|
19
19
|
internal_do_not_use_render: i
|
|
20
|
-
} = t, [l,
|
|
20
|
+
} = t, [l, x] = O({
|
|
21
21
|
prop: c,
|
|
22
22
|
defaultProp: r ?? !1,
|
|
23
23
|
onChange: d,
|
|
24
24
|
caller: _
|
|
25
|
-
}), [m,
|
|
25
|
+
}), [m, v] = s.useState(null), [R, o] = s.useState(null), n = s.useRef(!1), E = m ? !!f || !!m.closest("form") : (
|
|
26
26
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
27
27
|
!0
|
|
28
28
|
), P = {
|
|
29
29
|
checked: l,
|
|
30
30
|
disabled: e,
|
|
31
|
-
setChecked:
|
|
31
|
+
setChecked: x,
|
|
32
32
|
control: m,
|
|
33
|
-
setControl:
|
|
33
|
+
setControl: v,
|
|
34
34
|
name: p,
|
|
35
35
|
form: f,
|
|
36
36
|
value: k,
|
|
@@ -61,9 +61,9 @@ var w = "CheckboxTrigger", B = s.forwardRef(
|
|
|
61
61
|
setControl: k,
|
|
62
62
|
setChecked: i,
|
|
63
63
|
hasConsumerStoppedPropagationRef: l,
|
|
64
|
-
isFormControl:
|
|
64
|
+
isFormControl: x,
|
|
65
65
|
bubbleInput: m
|
|
66
|
-
} = g(w, t),
|
|
66
|
+
} = g(w, t), v = N(r, k), R = s.useRef(d);
|
|
67
67
|
return s.useEffect(() => {
|
|
68
68
|
const o = e == null ? void 0 : e.form;
|
|
69
69
|
if (o) {
|
|
@@ -82,12 +82,12 @@ var w = "CheckboxTrigger", B = s.forwardRef(
|
|
|
82
82
|
disabled: p,
|
|
83
83
|
value: f,
|
|
84
84
|
...u,
|
|
85
|
-
ref:
|
|
85
|
+
ref: v,
|
|
86
86
|
onKeyDown: S(a, (o) => {
|
|
87
87
|
o.key === "Enter" && o.preventDefault();
|
|
88
88
|
}),
|
|
89
89
|
onClick: S(c, (o) => {
|
|
90
|
-
i((n) => b(n) ? !0 : !n), m &&
|
|
90
|
+
i((n) => b(n) ? !0 : !n), m && x && (l.current = o.isPropagationStopped(), l.current || o.stopPropagation());
|
|
91
91
|
})
|
|
92
92
|
}
|
|
93
93
|
);
|
|
@@ -145,7 +145,7 @@ var M = "CheckboxIndicator", V = s.forwardRef(
|
|
|
145
145
|
(t, a) => {
|
|
146
146
|
const { __scopeCheckbox: c, forceMount: u, ...r } = t, e = g(M, c);
|
|
147
147
|
return /* @__PURE__ */ h(
|
|
148
|
-
|
|
148
|
+
L,
|
|
149
149
|
{
|
|
150
150
|
present: u || b(e.checked) || e.checked === !0,
|
|
151
151
|
children: /* @__PURE__ */ h(
|
|
@@ -176,8 +176,8 @@ var T = "CheckboxBubbleInput", q = s.forwardRef(
|
|
|
176
176
|
value: k,
|
|
177
177
|
form: i,
|
|
178
178
|
bubbleInput: l,
|
|
179
|
-
setBubbleInput:
|
|
180
|
-
} = g(T, t), m = N(c,
|
|
179
|
+
setBubbleInput: x
|
|
180
|
+
} = g(T, t), m = N(c, x), v = z(e), R = j(u);
|
|
181
181
|
s.useEffect(() => {
|
|
182
182
|
const n = l;
|
|
183
183
|
if (!n) return;
|
|
@@ -185,11 +185,11 @@ var T = "CheckboxBubbleInput", q = s.forwardRef(
|
|
|
185
185
|
E,
|
|
186
186
|
"checked"
|
|
187
187
|
).set, D = !r.current;
|
|
188
|
-
if (
|
|
188
|
+
if (v !== e && y) {
|
|
189
189
|
const F = new Event("click", { bubbles: D });
|
|
190
190
|
n.indeterminate = b(e), y.call(n, b(e) ? !1 : e), n.dispatchEvent(F);
|
|
191
191
|
}
|
|
192
|
-
}, [l,
|
|
192
|
+
}, [l, v, e, r]);
|
|
193
193
|
const o = s.useRef(b(e) ? !1 : e);
|
|
194
194
|
return /* @__PURE__ */ h(
|
|
195
195
|
I.input,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as N, f as K, u as $, R as J, b as S, A as Q, c as m, P as j, g as Z, l as ee, i as G, D as te, C as oe, e as re, p as ne } from "./index-DLKZ-XYv.js";
|
|
3
3
|
import { jsx as p, jsxs as se } from "react/jsx-runtime";
|
|
4
4
|
var ae = Object.freeze({
|
|
5
5
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
@@ -15,7 +15,7 @@ var ae = Object.freeze({
|
|
|
15
15
|
wordWrap: "normal"
|
|
16
16
|
}), ie = "VisuallyHidden", V = s.forwardRef(
|
|
17
17
|
(e, o) => /* @__PURE__ */ p(
|
|
18
|
-
|
|
18
|
+
N.span,
|
|
19
19
|
{
|
|
20
20
|
...e,
|
|
21
21
|
ref: o,
|
|
@@ -24,9 +24,9 @@ var ae = Object.freeze({
|
|
|
24
24
|
)
|
|
25
25
|
);
|
|
26
26
|
V.displayName = ie;
|
|
27
|
-
var le = V, [A
|
|
28
|
-
|
|
29
|
-
]), D =
|
|
27
|
+
var le = V, [A] = re("Tooltip", [
|
|
28
|
+
G
|
|
29
|
+
]), D = G(), F = "TooltipProvider", ce = 700, L = "tooltip.open", [ue, k] = A(F), Y = (e) => {
|
|
30
30
|
const {
|
|
31
31
|
__scopeTooltip: o,
|
|
32
32
|
delayDuration: t = ce,
|
|
@@ -71,11 +71,11 @@ var R = "Tooltip", [pe, _] = A(R), de = (e) => {
|
|
|
71
71
|
onOpenChange: i,
|
|
72
72
|
disableHoverableContent: l,
|
|
73
73
|
delayDuration: v
|
|
74
|
-
} = e, a = k(R, e.__scopeTooltip), d = D(o), [c, f] = s.useState(null), h =
|
|
74
|
+
} = e, a = k(R, e.__scopeTooltip), d = D(o), [c, f] = s.useState(null), h = K(), u = s.useRef(0), T = l ?? a.disableHoverableContent, C = v ?? a.delayDuration, y = s.useRef(!1), [g, x] = $({
|
|
75
75
|
prop: r,
|
|
76
76
|
defaultProp: n ?? !1,
|
|
77
|
-
onChange: (
|
|
78
|
-
|
|
77
|
+
onChange: (H) => {
|
|
78
|
+
H ? (a.onOpen(), document.dispatchEvent(new CustomEvent(L))) : a.onClose(), i == null || i(H);
|
|
79
79
|
},
|
|
80
80
|
caller: R
|
|
81
81
|
}), w = s.useMemo(() => g ? y.current ? "delayed-open" : "instant-open" : "closed", [g]), P = s.useCallback(() => {
|
|
@@ -89,7 +89,7 @@ var R = "Tooltip", [pe, _] = A(R), de = (e) => {
|
|
|
89
89
|
}, [C, x]);
|
|
90
90
|
return s.useEffect(() => () => {
|
|
91
91
|
u.current && (window.clearTimeout(u.current), u.current = 0);
|
|
92
|
-
}, []), /* @__PURE__ */ p(
|
|
92
|
+
}, []), /* @__PURE__ */ p(J, { ...d, children: /* @__PURE__ */ p(
|
|
93
93
|
pe,
|
|
94
94
|
{
|
|
95
95
|
scope: o,
|
|
@@ -114,9 +114,9 @@ var R = "Tooltip", [pe, _] = A(R), de = (e) => {
|
|
|
114
114
|
de.displayName = R;
|
|
115
115
|
var O = "TooltipTrigger", B = s.forwardRef(
|
|
116
116
|
(e, o) => {
|
|
117
|
-
const { __scopeTooltip: t, ...r } = e, n = _(O, t), i = k(O, t), l = D(t), v = s.useRef(null), a =
|
|
118
|
-
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ p(
|
|
119
|
-
|
|
117
|
+
const { __scopeTooltip: t, ...r } = e, n = _(O, t), i = k(O, t), l = D(t), v = s.useRef(null), a = S(o, v, n.onTriggerChange), d = s.useRef(!1), c = s.useRef(!1), f = s.useCallback(() => d.current = !1, []);
|
|
118
|
+
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ p(Q, { asChild: !0, ...l, children: /* @__PURE__ */ p(
|
|
119
|
+
N.button,
|
|
120
120
|
{
|
|
121
121
|
"aria-describedby": n.open ? n.contentId : void 0,
|
|
122
122
|
"data-state": n.stateAttribute,
|
|
@@ -145,16 +145,16 @@ var I = "TooltipPortal", [fe, ve] = A(I, {
|
|
|
145
145
|
forceMount: void 0
|
|
146
146
|
}), U = (e) => {
|
|
147
147
|
const { __scopeTooltip: o, forceMount: t, children: r, container: n } = e, i = _(I, o);
|
|
148
|
-
return /* @__PURE__ */ p(fe, { scope: o, forceMount: t, children: /* @__PURE__ */ p(
|
|
148
|
+
return /* @__PURE__ */ p(fe, { scope: o, forceMount: t, children: /* @__PURE__ */ p(j, { present: t || i.open, children: /* @__PURE__ */ p(Z, { asChild: !0, container: n, children: r }) }) });
|
|
149
149
|
};
|
|
150
150
|
U.displayName = I;
|
|
151
151
|
var b = "TooltipContent", q = s.forwardRef(
|
|
152
152
|
(e, o) => {
|
|
153
153
|
const t = ve(b, e.__scopeTooltip), { forceMount: r = t.forceMount, side: n = "top", ...i } = e, l = _(b, e.__scopeTooltip);
|
|
154
|
-
return /* @__PURE__ */ p(
|
|
154
|
+
return /* @__PURE__ */ p(j, { present: r || l.open, children: l.disableHoverableContent ? /* @__PURE__ */ p(W, { side: n, ...i, ref: o }) : /* @__PURE__ */ p(he, { side: n, ...i, ref: o }) });
|
|
155
155
|
}
|
|
156
156
|
), he = s.forwardRef((e, o) => {
|
|
157
|
-
const t = _(b, e.__scopeTooltip), r = k(b, e.__scopeTooltip), n = s.useRef(null), i =
|
|
157
|
+
const t = _(b, e.__scopeTooltip), r = k(b, e.__scopeTooltip), n = s.useRef(null), i = S(o, n), [l, v] = s.useState(null), { trigger: a, onClose: d } = t, c = n.current, { onPointerInTransitChange: f } = r, h = s.useCallback(() => {
|
|
158
158
|
v(null), f(!1);
|
|
159
159
|
}, [f]), u = s.useCallback(
|
|
160
160
|
(T, C) => {
|
|
@@ -198,7 +198,7 @@ var b = "TooltipContent", q = s.forwardRef(
|
|
|
198
198
|
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
199
199
|
}
|
|
200
200
|
}, [a.trigger, c]), /* @__PURE__ */ p(
|
|
201
|
-
|
|
201
|
+
te,
|
|
202
202
|
{
|
|
203
203
|
asChild: !0,
|
|
204
204
|
disableOutsidePointerEvents: !1,
|
|
@@ -207,7 +207,7 @@ var b = "TooltipContent", q = s.forwardRef(
|
|
|
207
207
|
onFocusOutside: (f) => f.preventDefault(),
|
|
208
208
|
onDismiss: c,
|
|
209
209
|
children: /* @__PURE__ */ se(
|
|
210
|
-
|
|
210
|
+
oe,
|
|
211
211
|
{
|
|
212
212
|
"data-state": a.stateAttribute,
|
|
213
213
|
...d,
|
|
@@ -238,7 +238,7 @@ var X = "TooltipArrow", z = s.forwardRef(
|
|
|
238
238
|
return ye(
|
|
239
239
|
X,
|
|
240
240
|
t
|
|
241
|
-
).isInside ? null : /* @__PURE__ */ p(
|
|
241
|
+
).isInside ? null : /* @__PURE__ */ p(ee, { ...n, ...r, ref: o });
|
|
242
242
|
}
|
|
243
243
|
);
|
|
244
244
|
z.displayName = X;
|
|
@@ -334,14 +334,14 @@ function Pe(e) {
|
|
|
334
334
|
}
|
|
335
335
|
return t.pop(), o.length === 1 && t.length === 1 && o[0].x === t[0].x && o[0].y === t[0].y ? o : o.concat(t);
|
|
336
336
|
}
|
|
337
|
-
var
|
|
337
|
+
var _e = Y, Ae = B, De = U, Le = q, Oe = z;
|
|
338
338
|
export {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
339
|
+
Oe as A,
|
|
340
|
+
Le as C,
|
|
341
|
+
_e as P,
|
|
342
342
|
de as T,
|
|
343
343
|
ae as V,
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
Ae as a,
|
|
345
|
+
De as b,
|
|
346
346
|
V as c
|
|
347
347
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as A from "react";
|
|
2
2
|
import r from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { e as D, b as S, k as M } from "./index-DLKZ-XYv.js";
|
|
4
4
|
import { jsx as d } from "react/jsx-runtime";
|
|
5
5
|
function g(l) {
|
|
6
6
|
const i = l + "CollectionProvider", [N, _] = D(i), [v, f] = N(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { u as j,
|
|
3
|
-
import { R as Y, h as Z, u as z, F as J } from "./Combination-
|
|
2
|
+
import { u as j, f as R, P as _, g as H, a as D, b as h, c as p, e as V, k as q, D as K, m as U } from "./index-DLKZ-XYv.js";
|
|
3
|
+
import { R as Y, h as Z, u as z, F as J } from "./Combination-B1NSOvaC.js";
|
|
4
4
|
import { jsx as i, jsxs as N, Fragment as O } from "react/jsx-runtime";
|
|
5
|
-
var m = "Dialog", [I
|
|
5
|
+
var m = "Dialog", [I] = V(m), [Q, u] = I(m), x = (e) => {
|
|
6
6
|
const {
|
|
7
7
|
__scopeDialog: o,
|
|
8
8
|
children: r,
|
|
@@ -36,7 +36,7 @@ var m = "Dialog", [I, fe] = H(m), [Q, u] = I(m), x = (e) => {
|
|
|
36
36
|
x.displayName = m;
|
|
37
37
|
var A = "DialogTrigger", X = s.forwardRef(
|
|
38
38
|
(e, o) => {
|
|
39
|
-
const { __scopeDialog: r, ...a } = e, n = u(A, r), t =
|
|
39
|
+
const { __scopeDialog: r, ...a } = e, n = u(A, r), t = h(o, n.triggerRef);
|
|
40
40
|
return /* @__PURE__ */ i(
|
|
41
41
|
D.button,
|
|
42
42
|
{
|
|
@@ -57,13 +57,13 @@ var E = "DialogPortal", [ee, T] = I(E, {
|
|
|
57
57
|
forceMount: void 0
|
|
58
58
|
}), b = (e) => {
|
|
59
59
|
const { __scopeDialog: o, forceMount: r, children: a, container: n } = e, t = u(E, o);
|
|
60
|
-
return /* @__PURE__ */ i(ee, { scope: o, forceMount: r, children: s.Children.map(a, (c) => /* @__PURE__ */ i(
|
|
60
|
+
return /* @__PURE__ */ i(ee, { scope: o, forceMount: r, children: s.Children.map(a, (c) => /* @__PURE__ */ i(_, { present: r || t.open, children: /* @__PURE__ */ i(H, { asChild: !0, container: n, children: c }) })) });
|
|
61
61
|
};
|
|
62
62
|
b.displayName = E;
|
|
63
63
|
var v = "DialogOverlay", M = s.forwardRef(
|
|
64
64
|
(e, o) => {
|
|
65
65
|
const r = T(v, e.__scopeDialog), { forceMount: a = r.forceMount, ...n } = e, t = u(v, e.__scopeDialog);
|
|
66
|
-
return t.modal ? /* @__PURE__ */ i(
|
|
66
|
+
return t.modal ? /* @__PURE__ */ i(_, { present: a || t.open, children: /* @__PURE__ */ i(oe, { ...n, ref: o }) }) : null;
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
M.displayName = v;
|
|
@@ -87,13 +87,13 @@ var te = q("DialogOverlay.RemoveScroll"), oe = s.forwardRef(
|
|
|
87
87
|
), f = "DialogContent", w = s.forwardRef(
|
|
88
88
|
(e, o) => {
|
|
89
89
|
const r = T(f, e.__scopeDialog), { forceMount: a = r.forceMount, ...n } = e, t = u(f, e.__scopeDialog);
|
|
90
|
-
return /* @__PURE__ */ i(
|
|
90
|
+
return /* @__PURE__ */ i(_, { present: a || t.open, children: t.modal ? /* @__PURE__ */ i(ne, { ...n, ref: o }) : /* @__PURE__ */ i(re, { ...n, ref: o }) });
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
93
|
w.displayName = f;
|
|
94
94
|
var ne = s.forwardRef(
|
|
95
95
|
(e, o) => {
|
|
96
|
-
const r = u(f, e.__scopeDialog), a = s.useRef(null), n =
|
|
96
|
+
const r = u(f, e.__scopeDialog), a = s.useRef(null), n = h(o, r.contentRef, a);
|
|
97
97
|
return s.useEffect(() => {
|
|
98
98
|
const t = a.current;
|
|
99
99
|
if (t) return Z(t);
|
|
@@ -144,7 +144,7 @@ var ne = s.forwardRef(
|
|
|
144
144
|
}
|
|
145
145
|
), F = s.forwardRef(
|
|
146
146
|
(e, o) => {
|
|
147
|
-
const { __scopeDialog: r, trapFocus: a, onOpenAutoFocus: n, onCloseAutoFocus: t, ...c } = e, l = u(f, r), d = s.useRef(null), g =
|
|
147
|
+
const { __scopeDialog: r, trapFocus: a, onOpenAutoFocus: n, onCloseAutoFocus: t, ...c } = e, l = u(f, r), d = s.useRef(null), g = h(o, d);
|
|
148
148
|
return z(), /* @__PURE__ */ N(O, { children: [
|
|
149
149
|
/* @__PURE__ */ i(
|
|
150
150
|
J,
|
|
@@ -207,7 +207,7 @@ ae.displayName = G;
|
|
|
207
207
|
function y(e) {
|
|
208
208
|
return e ? "open" : "closed";
|
|
209
209
|
}
|
|
210
|
-
var L = "DialogTitleWarning", [
|
|
210
|
+
var L = "DialogTitleWarning", [fe, $] = U(L, {
|
|
211
211
|
contentName: f,
|
|
212
212
|
titleName: P,
|
|
213
213
|
docsSlug: "dialog"
|
|
@@ -227,12 +227,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${o.do
|
|
|
227
227
|
const n = (t = e.current) == null ? void 0 : t.getAttribute("aria-describedby");
|
|
228
228
|
o && n && (document.getElementById(o) || console.warn(a));
|
|
229
229
|
}, [a, e, o]), null;
|
|
230
|
-
},
|
|
230
|
+
}, ge = x, pe = b, De = M, ve = w, me = S, Ce = k;
|
|
231
231
|
export {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
232
|
+
ve as C,
|
|
233
|
+
Ce as D,
|
|
234
|
+
De as O,
|
|
235
|
+
pe as P,
|
|
236
|
+
ge as R,
|
|
237
|
+
me as T
|
|
238
238
|
};
|