@drjoshcsimmons/scl 0.1.10 → 0.1.12
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 +47 -49
- package/dist/index101.js +51 -44
- package/dist/index102.js +10 -8
- package/dist/index103.js +30 -15
- package/dist/index104.js +10 -216
- package/dist/index105.js +30 -9
- package/dist/index106.js +54 -29
- package/dist/index107.js +29 -47
- package/dist/index108.js +646 -44
- package/dist/index109.js +47 -29
- package/dist/index11.js +2 -2
- package/dist/index110.js +29 -54
- package/dist/index111.js +9 -30
- package/dist/index112.js +8 -12
- package/dist/index115.js +21 -48
- package/dist/index116.js +9 -12
- package/dist/index117.js +32 -15
- package/dist/index118.js +12 -3
- package/dist/index119.js +12 -38
- package/dist/index12.js +1 -1
- package/dist/index120.js +206 -18
- package/dist/index121.js +20 -204
- package/dist/index122.js +399 -21
- package/dist/index123.js +6 -400
- package/dist/index124.js +48 -6
- package/dist/index126.js +3 -3
- package/dist/index127.js +3 -3
- package/dist/index129.js +1 -1
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index131.js +2 -5
- package/dist/index132.js +2 -3
- package/dist/index133.js +5 -24
- package/dist/index134.js +3 -113
- package/dist/index135.js +23 -15
- package/dist/index136.js +113 -2
- package/dist/index137.js +16 -2
- package/dist/index14.js +2 -2
- package/dist/index142.js +1 -1
- package/dist/index15.js +2 -2
- 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 +3 -3
- 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/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.js +236 -33
- package/dist/index48.js +4 -5
- package/dist/index49.js +118 -9
- package/dist/index5.js +1 -1
- package/dist/index50.js +33 -60
- package/dist/index51.js +116 -104
- package/dist/index52.js +402 -216
- package/dist/index53.js +58 -20
- package/dist/index54.js +249 -231
- package/dist/index55.js +18 -11
- package/dist/index56.js +25 -524
- package/dist/index57.js +300 -215
- package/dist/index58.js +5 -4
- package/dist/index59.js +249 -71
- package/dist/index6.js +1 -1
- package/dist/index60.js +12 -260
- package/dist/index61.js +161 -12
- package/dist/index62.js +216 -402
- package/dist/index63.js +9 -125
- package/dist/index64.js +238 -28
- package/dist/index65.js +65 -302
- package/dist/index66.js +22 -12
- package/dist/index67.js +66 -320
- package/dist/index68.js +219 -248
- package/dist/index69.js +11 -241
- package/dist/index7.js +1 -1
- package/dist/index70.js +12 -860
- package/dist/index71.js +860 -9
- package/dist/index72.js +9 -18
- package/dist/index73.js +509 -109
- package/dist/index74.js +111 -147
- package/dist/index75.js +326 -63
- package/dist/index8.js +1 -1
- package/dist/index80.js +1 -1
- package/dist/index82.js +1 -1
- package/dist/index84.js +180 -3
- package/dist/index85.js +23 -67
- package/dist/index86.js +6 -30
- package/dist/index87.js +68 -5
- package/dist/index88.js +4 -25
- package/dist/index89.js +3 -180
- package/dist/index9.js +2 -2
- package/dist/index90.js +30 -11
- package/dist/index91.js +14 -3
- package/dist/index92.js +112 -637
- package/dist/index93.js +130 -50
- package/dist/index94.js +14 -30
- package/dist/index95.js +12 -122
- package/dist/index96.js +8 -134
- package/dist/index97.js +50 -14
- package/dist/index98.js +46 -13
- package/dist/index99.js +218 -8
- package/package.json +1 -1
package/dist/index74.js
CHANGED
|
@@ -1,163 +1,127 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
defaultValue: c,
|
|
20
|
-
orientation: o = "horizontal",
|
|
21
|
-
dir: d,
|
|
22
|
-
activationMode: f = "automatic",
|
|
23
|
-
...m
|
|
24
|
-
} = e, i = D(d), [a, u] = V({
|
|
25
|
-
prop: t,
|
|
26
|
-
onChange: n,
|
|
27
|
-
defaultProp: c ?? "",
|
|
28
|
-
caller: p
|
|
29
|
-
});
|
|
30
|
-
return /* @__PURE__ */ l(
|
|
31
|
-
$,
|
|
32
|
-
{
|
|
33
|
-
scope: s,
|
|
34
|
-
baseId: G(),
|
|
35
|
-
value: a,
|
|
36
|
-
onValueChange: u,
|
|
37
|
-
orientation: o,
|
|
38
|
-
dir: i,
|
|
39
|
-
activationMode: f,
|
|
40
|
-
children: /* @__PURE__ */ l(
|
|
41
|
-
b.div,
|
|
42
|
-
{
|
|
43
|
-
dir: i,
|
|
44
|
-
"data-orientation": o,
|
|
45
|
-
...m,
|
|
46
|
-
ref: r
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
}
|
|
50
|
-
);
|
|
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 "./index59.js";
|
|
5
|
+
import { composeEventHandlers as W } from "./index79.js";
|
|
6
|
+
import { createSlottable as Y } from "./index111.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 });
|
|
51
19
|
}
|
|
52
20
|
);
|
|
53
|
-
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
dir: c.dir,
|
|
64
|
-
loop: t,
|
|
65
|
-
children: /* @__PURE__ */ l(
|
|
66
|
-
b.div,
|
|
67
|
-
{
|
|
68
|
-
role: "tablist",
|
|
69
|
-
"aria-orientation": c.orientation,
|
|
70
|
-
...n,
|
|
71
|
-
ref: r
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
}
|
|
75
|
-
);
|
|
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 });
|
|
76
31
|
}
|
|
77
32
|
);
|
|
78
|
-
|
|
79
|
-
var
|
|
80
|
-
(e,
|
|
81
|
-
const {
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
|
|
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
|
+
$,
|
|
84
39
|
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
b.button,
|
|
40
|
+
contentName: s,
|
|
41
|
+
titleName: C,
|
|
42
|
+
docsSlug: "alert-dialog",
|
|
43
|
+
children: /* @__PURE__ */ i(z, { scope: r, cancelRef: d, children: /* @__PURE__ */ q(
|
|
44
|
+
F,
|
|
91
45
|
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
id: f,
|
|
100
|
-
...c,
|
|
101
|
-
ref: r,
|
|
102
|
-
onMouseDown: g(e.onMouseDown, (a) => {
|
|
103
|
-
!n && a.button === 0 && a.ctrlKey === !1 ? o.onValueChange(t) : a.preventDefault();
|
|
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 });
|
|
104
53
|
}),
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
})
|
|
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
|
+
]
|
|
112
60
|
}
|
|
113
|
-
)
|
|
61
|
+
) })
|
|
114
62
|
}
|
|
115
63
|
);
|
|
116
64
|
}
|
|
117
65
|
);
|
|
118
|
-
|
|
119
|
-
var
|
|
120
|
-
(e,
|
|
121
|
-
const {
|
|
122
|
-
return
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
) });
|
|
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 });
|
|
144
90
|
}
|
|
145
91
|
);
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
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;
|
|
154
108
|
export {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
|
163
127
|
};
|