@drjoshcsimmons/scl 0.1.6 → 0.1.8
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/index100.js +30 -4
- package/dist/index101.js +11 -13
- package/dist/index102.js +9 -30
- package/dist/index103.js +51 -177
- package/dist/index104.js +30 -650
- package/dist/index105.js +47 -11
- package/dist/index106.js +12 -203
- package/dist/index107.js +47 -21
- package/dist/index108.js +29 -399
- package/dist/index109.js +30 -6
- package/dist/index11.js +2 -2
- package/dist/index110.js +648 -19
- package/dist/index111.js +30 -9
- package/dist/index112.js +9 -38
- package/dist/index113.js +48 -18
- package/dist/index114.js +45 -22
- package/dist/index115.js +6 -29
- package/dist/index116.js +12 -5
- package/dist/index117.js +206 -2
- package/dist/index118.js +21 -52
- package/dist/index119.js +394 -59
- package/dist/index12.js +1 -1
- package/dist/index120.js +21 -2
- package/dist/index121.js +9 -2
- package/dist/index122.js +38 -5
- package/dist/index123.js +18 -3
- package/dist/index124.js +45 -21
- package/dist/index125.js +2 -113
- package/dist/index126.js +52 -15
- package/dist/index127.js +58 -518
- package/dist/index128.js +23 -126
- package/dist/index129.js +28 -133
- package/dist/index13.js +2 -2
- package/dist/index130.js +5 -65
- package/dist/index131.js +2 -69
- package/dist/index132.js +2 -9
- package/dist/index133.js +5 -14
- package/dist/index134.js +3 -66
- package/dist/index135.js +23 -3
- package/dist/index136.js +110 -20
- package/dist/index137.js +15 -22
- package/dist/index138.js +522 -10
- package/dist/index139.js +123 -23
- package/dist/index14.js +2 -2
- package/dist/index140.js +134 -5
- package/dist/index141.js +67 -0
- package/dist/index142.js +71 -0
- package/dist/index143.js +11 -0
- package/dist/index144.js +16 -0
- package/dist/index145.js +68 -0
- package/dist/index146.js +6 -0
- package/dist/index147.js +25 -0
- package/dist/index148.js +25 -0
- package/dist/index149.js +15 -0
- package/dist/index15.js +2 -2
- package/dist/index150.js +30 -0
- package/dist/index151.js +7 -0
- package/dist/index17.js +4 -4
- package/dist/index18.js +2 -2
- package/dist/index20.js +2 -2
- package/dist/index21.js +1 -1
- package/dist/index22.js +1 -1
- package/dist/index23.js +2 -2
- package/dist/index24.js +1 -1
- package/dist/index25.js +4 -4
- package/dist/index26.js +1 -1
- package/dist/index27.js +3 -3
- package/dist/index29.js +1 -1
- package/dist/index31.js +1 -1
- package/dist/index33.js +1 -1
- package/dist/index36.js +2 -2
- package/dist/index37.js +1 -1
- package/dist/index4.js +2 -2
- package/dist/index45.js +237 -33
- package/dist/index46.js +11 -241
- package/dist/index47.js +508 -227
- package/dist/index48.js +241 -9
- package/dist/index49.js +33 -12
- package/dist/index5.js +1 -1
- package/dist/index50.js +214 -238
- package/dist/index51.js +4 -5
- package/dist/index52.js +5 -5
- package/dist/index53.js +112 -219
- package/dist/index54.js +125 -11
- package/dist/index55.js +54 -524
- package/dist/index56.js +250 -121
- package/dist/index57.js +71 -299
- package/dist/index58.js +260 -12
- package/dist/index59.js +12 -435
- package/dist/index6.js +1 -1
- package/dist/index60.js +856 -56
- package/dist/index61.js +9 -254
- package/dist/index62.js +9 -130
- package/dist/index63.js +299 -71
- package/dist/index64.js +12 -22
- package/dist/index65.js +112 -25
- package/dist/index66.js +223 -16
- package/dist/index67.js +11 -236
- package/dist/index68.js +249 -11
- package/dist/index69.js +16 -159
- package/dist/index70.js +18 -332
- package/dist/index71.js +148 -212
- package/dist/index72.js +336 -11
- package/dist/index73.js +390 -815
- package/dist/index74.js +31 -9
- package/dist/index75.js +12 -118
- package/dist/index76.js +66 -5
- package/dist/index77.js +44 -25
- package/dist/index78.js +23 -64
- package/dist/index79.js +5 -123
- package/dist/index8.js +1 -1
- package/dist/index80.js +50 -13
- package/dist/index81.js +32 -133
- package/dist/index82.js +1 -1
- package/dist/index83.js +7 -218
- package/dist/index84.js +69 -14
- package/dist/index85.js +10 -68
- package/dist/index86.js +4 -34
- package/dist/index87.js +3 -53
- package/dist/index88.js +177 -48
- package/dist/index89.js +25 -50
- package/dist/index9.js +2 -2
- package/dist/index90.js +6 -9
- package/dist/index91.js +124 -5
- package/dist/index92.js +14 -24
- package/dist/index93.js +130 -50
- package/dist/index94.js +218 -10
- package/dist/index95.js +14 -4
- package/dist/index96.js +47 -29
- package/dist/index97.js +50 -13
- package/dist/index98.js +9 -46
- package/dist/index99.js +54 -7
- package/package.json +1 -1
package/dist/index53.js
CHANGED
|
@@ -1,239 +1,132 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var d = "Accordion", ie = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [E, ae, le] = Z(d), [b] = X(d, [
|
|
13
|
-
le,
|
|
14
|
-
H
|
|
15
|
-
]), S = H(), K = s.forwardRef(
|
|
16
|
-
(o, c) => {
|
|
17
|
-
const { type: e, ...t } = o, i = t, r = t;
|
|
18
|
-
return /* @__PURE__ */ n(E.Provider, { scope: o.__scopeAccordion, children: e === "multiple" ? /* @__PURE__ */ n(fe, { ...r, ref: c }) : /* @__PURE__ */ n(pe, { ...i, ref: c }) });
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
K.displayName = d;
|
|
22
|
-
var [L, se] = b(d), [z, de] = b(
|
|
23
|
-
d,
|
|
24
|
-
{ collapsible: !1 }
|
|
25
|
-
), pe = s.forwardRef(
|
|
26
|
-
(o, c) => {
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { composeEventHandlers as T } from "./index79.js";
|
|
3
|
+
import { useComposedRefs as P } from "./index78.js";
|
|
4
|
+
import { createContextScope as I } from "./index76.js";
|
|
5
|
+
import { useControllableState as M } from "./index80.js";
|
|
6
|
+
import { usePrevious as H } from "./index90.js";
|
|
7
|
+
import { useSize as j } from "./index89.js";
|
|
8
|
+
import { Primitive as y } from "./index81.js";
|
|
9
|
+
import { jsxs as A, jsx as m } from "react/jsx-runtime";
|
|
10
|
+
var h = "Switch", [U] = I(h), [q, z] = U(h), R = r.forwardRef(
|
|
11
|
+
(t, a) => {
|
|
27
12
|
const {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
scope: o.__scopeAccordion,
|
|
44
|
-
value: s.useMemo(() => a ? [a] : [], [a]),
|
|
45
|
-
onItemOpen: p,
|
|
46
|
-
onItemClose: s.useCallback(() => r && p(""), [r, p]),
|
|
47
|
-
children: /* @__PURE__ */ n(z, { scope: o.__scopeAccordion, collapsible: r, children: /* @__PURE__ */ n(G, { ...l, ref: c }) })
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
), fe = s.forwardRef((o, c) => {
|
|
52
|
-
const {
|
|
53
|
-
value: e,
|
|
54
|
-
defaultValue: t,
|
|
55
|
-
onValueChange: i = () => {
|
|
56
|
-
},
|
|
57
|
-
...r
|
|
58
|
-
} = o, [l, a] = M({
|
|
59
|
-
prop: e,
|
|
60
|
-
defaultProp: t ?? [],
|
|
61
|
-
onChange: i,
|
|
62
|
-
caller: d
|
|
63
|
-
}), p = s.useCallback(
|
|
64
|
-
(v) => a((u = []) => [...u, v]),
|
|
65
|
-
[a]
|
|
66
|
-
), m = s.useCallback(
|
|
67
|
-
(v) => a((u = []) => u.filter((h) => h !== v)),
|
|
68
|
-
[a]
|
|
69
|
-
);
|
|
70
|
-
return /* @__PURE__ */ n(
|
|
71
|
-
L,
|
|
72
|
-
{
|
|
73
|
-
scope: o.__scopeAccordion,
|
|
74
|
-
value: l,
|
|
75
|
-
onItemOpen: p,
|
|
76
|
-
onItemClose: m,
|
|
77
|
-
children: /* @__PURE__ */ n(z, { scope: o.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ n(G, { ...r, ref: c }) })
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}), [ue, I] = b(d), G = s.forwardRef(
|
|
81
|
-
(o, c) => {
|
|
82
|
-
const { __scopeAccordion: e, disabled: t, dir: i, orientation: r = "vertical", ...l } = o, a = s.useRef(null), p = $(a, c), m = ae(e), u = ce(i) === "ltr", h = ee(o.onKeyDown, (C) => {
|
|
83
|
-
var O;
|
|
84
|
-
if (!ie.includes(C.key)) return;
|
|
85
|
-
const Q = C.target, x = m().filter((N) => {
|
|
86
|
-
var T;
|
|
87
|
-
return !((T = N.ref.current) != null && T.disabled);
|
|
88
|
-
}), A = x.findIndex((N) => N.ref.current === Q), D = x.length;
|
|
89
|
-
if (A === -1) return;
|
|
90
|
-
C.preventDefault();
|
|
91
|
-
let f = A;
|
|
92
|
-
const _ = 0, w = D - 1, R = () => {
|
|
93
|
-
f = A + 1, f > w && (f = _);
|
|
94
|
-
}, P = () => {
|
|
95
|
-
f = A - 1, f < _ && (f = w);
|
|
96
|
-
};
|
|
97
|
-
switch (C.key) {
|
|
98
|
-
case "Home":
|
|
99
|
-
f = _;
|
|
100
|
-
break;
|
|
101
|
-
case "End":
|
|
102
|
-
f = w;
|
|
103
|
-
break;
|
|
104
|
-
case "ArrowRight":
|
|
105
|
-
r === "horizontal" && (u ? R() : P());
|
|
106
|
-
break;
|
|
107
|
-
case "ArrowDown":
|
|
108
|
-
r === "vertical" && R();
|
|
109
|
-
break;
|
|
110
|
-
case "ArrowLeft":
|
|
111
|
-
r === "horizontal" && (u ? P() : R());
|
|
112
|
-
break;
|
|
113
|
-
case "ArrowUp":
|
|
114
|
-
r === "vertical" && P();
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
|
-
const W = f % D;
|
|
118
|
-
(O = x[W].ref.current) == null || O.focus();
|
|
13
|
+
__scopeSwitch: e,
|
|
14
|
+
name: c,
|
|
15
|
+
checked: o,
|
|
16
|
+
defaultChecked: v,
|
|
17
|
+
required: i,
|
|
18
|
+
disabled: n,
|
|
19
|
+
value: p = "on",
|
|
20
|
+
onCheckedChange: w,
|
|
21
|
+
form: s,
|
|
22
|
+
...S
|
|
23
|
+
} = t, [d, u] = r.useState(null), b = P(a, (f) => u(f)), C = r.useRef(!1), k = d ? s || !!d.closest("form") : !0, [l, B] = M({
|
|
24
|
+
prop: o,
|
|
25
|
+
defaultProp: v ?? !1,
|
|
26
|
+
onChange: w,
|
|
27
|
+
caller: h
|
|
119
28
|
});
|
|
120
|
-
return /* @__PURE__ */ n
|
|
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
|
-
...a,
|
|
155
|
-
...i,
|
|
156
|
-
ref: c,
|
|
157
|
-
disabled: v,
|
|
158
|
-
open: m,
|
|
159
|
-
onOpenChange: (u) => {
|
|
160
|
-
u ? l.onItemOpen(t) : l.onItemClose(t);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
)
|
|
164
|
-
}
|
|
165
|
-
);
|
|
29
|
+
return /* @__PURE__ */ A(q, { scope: e, checked: l, disabled: n, children: [
|
|
30
|
+
/* @__PURE__ */ m(
|
|
31
|
+
y.button,
|
|
32
|
+
{
|
|
33
|
+
type: "button",
|
|
34
|
+
role: "switch",
|
|
35
|
+
"aria-checked": l,
|
|
36
|
+
"aria-required": i,
|
|
37
|
+
"data-state": g(l),
|
|
38
|
+
"data-disabled": n ? "" : void 0,
|
|
39
|
+
disabled: n,
|
|
40
|
+
value: p,
|
|
41
|
+
...S,
|
|
42
|
+
ref: b,
|
|
43
|
+
onClick: T(t.onClick, (f) => {
|
|
44
|
+
B((N) => !N), k && (C.current = f.isPropagationStopped(), C.current || f.stopPropagation());
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
k && /* @__PURE__ */ m(
|
|
49
|
+
x,
|
|
50
|
+
{
|
|
51
|
+
control: d,
|
|
52
|
+
bubbles: !C.current,
|
|
53
|
+
name: c,
|
|
54
|
+
value: p,
|
|
55
|
+
checked: l,
|
|
56
|
+
required: i,
|
|
57
|
+
disabled: n,
|
|
58
|
+
form: s,
|
|
59
|
+
style: { transform: "translateX(-100%)" }
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] });
|
|
166
63
|
}
|
|
167
64
|
);
|
|
168
|
-
|
|
169
|
-
var
|
|
170
|
-
(
|
|
171
|
-
const {
|
|
172
|
-
return /* @__PURE__ */
|
|
173
|
-
|
|
65
|
+
R.displayName = h;
|
|
66
|
+
var E = "SwitchThumb", _ = r.forwardRef(
|
|
67
|
+
(t, a) => {
|
|
68
|
+
const { __scopeSwitch: e, ...c } = t, o = z(E, e);
|
|
69
|
+
return /* @__PURE__ */ m(
|
|
70
|
+
y.span,
|
|
174
71
|
{
|
|
175
|
-
"data-
|
|
176
|
-
"data-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
ref: c
|
|
72
|
+
"data-state": g(o.checked),
|
|
73
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
74
|
+
...c,
|
|
75
|
+
ref: a
|
|
180
76
|
}
|
|
181
77
|
);
|
|
182
78
|
}
|
|
183
79
|
);
|
|
184
|
-
|
|
185
|
-
var
|
|
186
|
-
(
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
80
|
+
_.displayName = E;
|
|
81
|
+
var L = "SwitchBubbleInput", x = r.forwardRef(
|
|
82
|
+
({
|
|
83
|
+
__scopeSwitch: t,
|
|
84
|
+
control: a,
|
|
85
|
+
checked: e,
|
|
86
|
+
bubbles: c = !0,
|
|
87
|
+
...o
|
|
88
|
+
}, v) => {
|
|
89
|
+
const i = r.useRef(null), n = P(i, v), p = H(e), w = j(a);
|
|
90
|
+
return r.useEffect(() => {
|
|
91
|
+
const s = i.current;
|
|
92
|
+
if (!s) return;
|
|
93
|
+
const S = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(
|
|
94
|
+
S,
|
|
95
|
+
"checked"
|
|
96
|
+
).set;
|
|
97
|
+
if (p !== e && u) {
|
|
98
|
+
const b = new Event("click", { bubbles: c });
|
|
99
|
+
u.call(s, e), s.dispatchEvent(b);
|
|
197
100
|
}
|
|
198
|
-
)
|
|
199
|
-
|
|
200
|
-
);
|
|
201
|
-
q.displayName = y;
|
|
202
|
-
var B = "AccordionContent", F = s.forwardRef(
|
|
203
|
-
(o, c) => {
|
|
204
|
-
const { __scopeAccordion: e, ...t } = o, i = I(d, e), r = k(B, e), l = S(e);
|
|
205
|
-
return /* @__PURE__ */ n(
|
|
206
|
-
te,
|
|
101
|
+
}, [p, e, c]), /* @__PURE__ */ m(
|
|
102
|
+
"input",
|
|
207
103
|
{
|
|
208
|
-
|
|
209
|
-
"aria-
|
|
210
|
-
|
|
211
|
-
...
|
|
212
|
-
|
|
213
|
-
ref:
|
|
104
|
+
type: "checkbox",
|
|
105
|
+
"aria-hidden": !0,
|
|
106
|
+
defaultChecked: e,
|
|
107
|
+
...o,
|
|
108
|
+
tabIndex: -1,
|
|
109
|
+
ref: n,
|
|
214
110
|
style: {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
111
|
+
...o.style,
|
|
112
|
+
...w,
|
|
113
|
+
position: "absolute",
|
|
114
|
+
pointerEvents: "none",
|
|
115
|
+
opacity: 0,
|
|
116
|
+
margin: 0
|
|
218
117
|
}
|
|
219
118
|
}
|
|
220
119
|
);
|
|
221
120
|
}
|
|
222
121
|
);
|
|
223
|
-
|
|
224
|
-
function
|
|
225
|
-
return
|
|
122
|
+
x.displayName = L;
|
|
123
|
+
function g(t) {
|
|
124
|
+
return t ? "checked" : "unchecked";
|
|
226
125
|
}
|
|
227
|
-
var
|
|
126
|
+
var Q = R, V = _;
|
|
228
127
|
export {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
q as AccordionTrigger,
|
|
234
|
-
Se as Content,
|
|
235
|
-
ye as Header,
|
|
236
|
-
Ne as Item,
|
|
237
|
-
Pe as Root,
|
|
238
|
-
Ee as Trigger
|
|
128
|
+
Q as Root,
|
|
129
|
+
R as Switch,
|
|
130
|
+
_ as SwitchThumb,
|
|
131
|
+
V as Thumb
|
|
239
132
|
};
|
package/dist/index54.js
CHANGED
|
@@ -1,13 +1,127 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
])
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { createContextScope as w } from "./index76.js";
|
|
3
|
+
import { useComposedRefs as v } from "./index78.js";
|
|
4
|
+
import { createDialogScope as A, Root as M, Portal as x, Trigger as I, Overlay as L, WarningProvider as $, Content as F, Title as G, Description as j, Close as f } from "./index58.js";
|
|
5
|
+
import { composeEventHandlers as W } from "./index79.js";
|
|
6
|
+
import { createSlottable as Y } from "./index102.js";
|
|
7
|
+
import { jsx as i, jsxs as q } from "react/jsx-runtime";
|
|
8
|
+
var D = "AlertDialog", [B] = w(D, [
|
|
9
|
+
A
|
|
10
|
+
]), n = A(), m = (e) => {
|
|
11
|
+
const { __scopeAlertDialog: o, ...r } = e, t = n(o);
|
|
12
|
+
return /* @__PURE__ */ i(M, { ...t, ...r, modal: !0 });
|
|
13
|
+
};
|
|
14
|
+
m.displayName = D;
|
|
15
|
+
var H = "AlertDialogTrigger", y = l.forwardRef(
|
|
16
|
+
(e, o) => {
|
|
17
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
18
|
+
return /* @__PURE__ */ i(I, { ...a, ...t, ref: o });
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
y.displayName = H;
|
|
22
|
+
var V = "AlertDialogPortal", _ = (e) => {
|
|
23
|
+
const { __scopeAlertDialog: o, ...r } = e, t = n(o);
|
|
24
|
+
return /* @__PURE__ */ i(x, { ...t, ...r });
|
|
25
|
+
};
|
|
26
|
+
_.displayName = V;
|
|
27
|
+
var k = "AlertDialogOverlay", N = l.forwardRef(
|
|
28
|
+
(e, o) => {
|
|
29
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
30
|
+
return /* @__PURE__ */ i(L, { ...a, ...t, ref: o });
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
N.displayName = k;
|
|
34
|
+
var s = "AlertDialogContent", [z, J] = B(s), K = Y("AlertDialogContent"), R = l.forwardRef(
|
|
35
|
+
(e, o) => {
|
|
36
|
+
const { __scopeAlertDialog: r, children: t, ...a } = e, g = n(r), p = l.useRef(null), b = v(o, p), d = l.useRef(null);
|
|
37
|
+
return /* @__PURE__ */ i(
|
|
38
|
+
$,
|
|
39
|
+
{
|
|
40
|
+
contentName: s,
|
|
41
|
+
titleName: C,
|
|
42
|
+
docsSlug: "alert-dialog",
|
|
43
|
+
children: /* @__PURE__ */ i(z, { scope: r, cancelRef: d, children: /* @__PURE__ */ q(
|
|
44
|
+
F,
|
|
45
|
+
{
|
|
46
|
+
role: "alertdialog",
|
|
47
|
+
...g,
|
|
48
|
+
...a,
|
|
49
|
+
ref: b,
|
|
50
|
+
onOpenAutoFocus: W(a.onOpenAutoFocus, (c) => {
|
|
51
|
+
var u;
|
|
52
|
+
c.preventDefault(), (u = d.current) == null || u.focus({ preventScroll: !0 });
|
|
53
|
+
}),
|
|
54
|
+
onPointerDownOutside: (c) => c.preventDefault(),
|
|
55
|
+
onInteractOutside: (c) => c.preventDefault(),
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ i(K, { children: t }),
|
|
58
|
+
/* @__PURE__ */ i(U, { contentRef: p })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
) })
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
R.displayName = s;
|
|
67
|
+
var C = "AlertDialogTitle", h = l.forwardRef(
|
|
68
|
+
(e, o) => {
|
|
69
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
70
|
+
return /* @__PURE__ */ i(G, { ...a, ...t, ref: o });
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
h.displayName = C;
|
|
74
|
+
var E = "AlertDialogDescription", P = l.forwardRef((e, o) => {
|
|
75
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
76
|
+
return /* @__PURE__ */ i(j, { ...a, ...t, ref: o });
|
|
77
|
+
});
|
|
78
|
+
P.displayName = E;
|
|
79
|
+
var Q = "AlertDialogAction", S = l.forwardRef(
|
|
80
|
+
(e, o) => {
|
|
81
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
82
|
+
return /* @__PURE__ */ i(f, { ...a, ...t, ref: o });
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
S.displayName = Q;
|
|
86
|
+
var T = "AlertDialogCancel", O = l.forwardRef(
|
|
87
|
+
(e, o) => {
|
|
88
|
+
const { __scopeAlertDialog: r, ...t } = e, { cancelRef: a } = J(T, r), g = n(r), p = v(o, a);
|
|
89
|
+
return /* @__PURE__ */ i(f, { ...g, ...t, ref: p });
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
O.displayName = T;
|
|
93
|
+
var U = ({ contentRef: e }) => {
|
|
94
|
+
const o = `\`${s}\` requires a description for the component to be accessible for screen reader users.
|
|
95
|
+
|
|
96
|
+
You can add a description to the \`${s}\` by passing a \`${E}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
97
|
+
|
|
98
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${s}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
99
|
+
|
|
100
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
101
|
+
return l.useEffect(() => {
|
|
102
|
+
var t;
|
|
103
|
+
document.getElementById(
|
|
104
|
+
(t = e.current) == null ? void 0 : t.getAttribute("aria-describedby")
|
|
105
|
+
) || console.warn(o);
|
|
106
|
+
}, [o, e]), null;
|
|
107
|
+
}, ae = m, ie = y, le = _, ne = N, se = R, ce = S, pe = O, ge = h, de = P;
|
|
11
108
|
export {
|
|
12
|
-
|
|
109
|
+
ce as Action,
|
|
110
|
+
m as AlertDialog,
|
|
111
|
+
S as AlertDialogAction,
|
|
112
|
+
O as AlertDialogCancel,
|
|
113
|
+
R as AlertDialogContent,
|
|
114
|
+
P as AlertDialogDescription,
|
|
115
|
+
N as AlertDialogOverlay,
|
|
116
|
+
_ as AlertDialogPortal,
|
|
117
|
+
h as AlertDialogTitle,
|
|
118
|
+
y as AlertDialogTrigger,
|
|
119
|
+
pe as Cancel,
|
|
120
|
+
se as Content,
|
|
121
|
+
de as Description,
|
|
122
|
+
ne as Overlay,
|
|
123
|
+
le as Portal,
|
|
124
|
+
ae as Root,
|
|
125
|
+
ge as Title,
|
|
126
|
+
ie as Trigger
|
|
13
127
|
};
|