@drjoshcsimmons/scl 0.1.2 → 0.1.3
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/README.md +202 -13
- package/dist/index100.js +49 -218
- package/dist/index101.js +8 -649
- package/dist/index102.js +628 -159
- package/dist/index103.js +180 -3
- package/dist/index104.js +15 -30
- package/dist/index106.js +21 -12
- package/dist/index107.js +3 -15
- package/dist/index108.js +32 -3
- package/dist/index109.js +12 -32
- package/dist/index11.js +2 -2
- package/dist/index110.js +12 -18
- package/dist/index112.js +1 -1
- package/dist/index115.js +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.js +2 -25
- package/dist/index118.js +2 -29
- package/dist/index119.js +25 -5
- package/dist/index12.js +1 -1
- package/dist/index120.js +29 -2
- package/dist/index121.js +5 -2
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index14.js +2 -2
- 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 +4 -4
- package/dist/index27.js +3 -3
- package/dist/index29.js +1 -1
- package/dist/index31.js +1 -1
- package/dist/index36.js +1 -1
- package/dist/index37.js +1 -1
- package/dist/index4.js +2 -2
- package/dist/index45.js +108 -220
- package/dist/index46.js +33 -11
- package/dist/index47.js +118 -33
- package/dist/index48.js +62 -107
- package/dist/index49.js +237 -61
- package/dist/index5.js +1 -1
- package/dist/index50.js +9 -310
- package/dist/index51.js +237 -12
- package/dist/index52.js +11 -260
- package/dist/index53.js +18 -12
- package/dist/index54.js +856 -56
- package/dist/index55.js +9 -254
- package/dist/index56.js +205 -229
- package/dist/index57.js +5 -3
- package/dist/index58.js +11 -125
- package/dist/index59.js +60 -12
- package/dist/index6.js +1 -1
- package/dist/index60.js +252 -16
- package/dist/index61.js +511 -206
- package/dist/index62.js +241 -11
- package/dist/index63.js +260 -11
- package/dist/index64.js +12 -241
- package/dist/index65.js +12 -236
- package/dist/index66.js +392 -487
- package/dist/index67.js +8 -8
- package/dist/index68.js +325 -119
- package/dist/index69.js +66 -320
- package/dist/index7.js +1 -1
- package/dist/index70.js +299 -71
- package/dist/index71.js +12 -435
- package/dist/index72.js +1 -1
- package/dist/index73.js +204 -828
- package/dist/index74.js +130 -9
- package/dist/index75.js +3 -3
- package/dist/index76.js +66 -5
- package/dist/index77.js +23 -64
- package/dist/index78.js +6 -51
- package/dist/index79.js +54 -4
- package/dist/index8.js +1 -1
- package/dist/index80.js +49 -24
- package/dist/index81.js +4 -34
- package/dist/index82.js +32 -67
- package/dist/index83.js +68 -10
- package/dist/index84.js +10 -54
- package/dist/index85.js +54 -10
- package/dist/index86.js +11 -30
- package/dist/index87.js +30 -13
- package/dist/index88.js +11 -44
- package/dist/index89.js +5 -7
- package/dist/index9.js +2 -2
- package/dist/index90.js +24 -14
- package/dist/index91.js +44 -123
- package/dist/index92.js +7 -134
- package/dist/index93.js +4 -14
- package/dist/index94.js +122 -12
- package/dist/index95.js +14 -8
- package/dist/index96.js +133 -48
- package/dist/index97.js +216 -51
- package/dist/index98.js +14 -6
- package/dist/index99.js +30 -25
- package/package.json +1 -1
package/dist/index15.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { Root as g, Portal as u, Trigger as x, Close as n, Overlay as d, Content as r, Title as c, Description as m } from "./
|
|
3
|
+
import { Root as g, Portal as u, Trigger as x, Close as n, Overlay as d, Content as r, Title as c, Description as m } from "./index63.js";
|
|
4
4
|
import { cn as s } from "./index2.js";
|
|
5
|
-
import y from "./
|
|
5
|
+
import y from "./index64.js";
|
|
6
6
|
const T = g, j = x, N = u, F = n, f = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
|
|
7
7
|
d,
|
|
8
8
|
{
|
package/dist/index17.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { Root as w, Trigger as x, Group as N, Portal as m, Sub as v, RadioGroup as R, Content as l, Item as p, CheckboxItem as c, ItemIndicator as u, RadioItem as f, Label as b, Separator as y, SubContent as g, SubTrigger as h } from "./
|
|
3
|
+
import { Root as w, Trigger as x, Group as N, Portal as m, Sub as v, RadioGroup as R, Content as l, Item as p, CheckboxItem as c, ItemIndicator as u, RadioItem as f, Label as b, Separator as y, SubContent as g, SubTrigger as h } from "./index56.js";
|
|
4
4
|
import { cn as s } from "./index2.js";
|
|
5
|
-
import D from "./
|
|
6
|
-
import M from "./
|
|
7
|
-
import S from "./
|
|
5
|
+
import D from "./index50.js";
|
|
6
|
+
import M from "./index57.js";
|
|
7
|
+
import S from "./index58.js";
|
|
8
8
|
const H = w, J = x, K = N, O = m, Q = v, U = R, I = n.forwardRef(({ className: e, inset: a, children: t, ...r }, i) => /* @__PURE__ */ d(
|
|
9
9
|
h,
|
|
10
10
|
{
|
package/dist/index18.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { Root as F } from "./
|
|
4
|
-
import { FormProvider as u, useFormContext as p, Controller as x } from "./
|
|
3
|
+
import { Root as F } from "./index59.js";
|
|
4
|
+
import { FormProvider as u, useFormContext as p, Controller as x } from "./index60.js";
|
|
5
5
|
import { cn as a } from "./index2.js";
|
|
6
6
|
import { Label as I } from "./index20.js";
|
|
7
7
|
const D = u, f = s.createContext(
|
package/dist/index20.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import { Root as o } from "./
|
|
4
|
-
import { cva as i } from "./
|
|
3
|
+
import { Root as o } from "./index53.js";
|
|
4
|
+
import { cva as i } from "./index46.js";
|
|
5
5
|
import { cn as s } from "./index2.js";
|
|
6
6
|
const l = i(
|
|
7
7
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
package/dist/index21.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { Root as d, Trigger as m, Anchor as p, Portal as c, Content as t } from "./
|
|
3
|
+
import { Root as d, Trigger as m, Anchor as p, Portal as c, Content as t } from "./index62.js";
|
|
4
4
|
import { cn as l } from "./index2.js";
|
|
5
5
|
const P = d, u = m, v = p, f = s.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...i }, n) => /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(
|
|
6
6
|
t,
|
package/dist/index22.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import { Root as d, Indicator as l } from "./
|
|
3
|
+
import { Root as d, Indicator as l } from "./index69.js";
|
|
4
4
|
import { cn as c } from "./index2.js";
|
|
5
5
|
const f = m.forwardRef(
|
|
6
6
|
({
|
package/dist/index23.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { Root as t, Item as s, Indicator as d } from "./
|
|
3
|
+
import { Root as t, Item as s, Indicator as d } from "./index73.js";
|
|
4
4
|
import { cn as m } from "./index2.js";
|
|
5
|
-
import l from "./
|
|
5
|
+
import l from "./index57.js";
|
|
6
6
|
const c = i.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ r(
|
|
7
7
|
t,
|
|
8
8
|
{
|
package/dist/index24.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { Root as s, Viewport as p, Corner as d, ScrollAreaScrollbar as c, ScrollAreaThumb as f } from "./
|
|
3
|
+
import { Root as s, Viewport as p, Corner as d, ScrollAreaScrollbar as c, ScrollAreaThumb as f } from "./index61.js";
|
|
4
4
|
import { cn as n } from "./index2.js";
|
|
5
5
|
const h = i.forwardRef(({ className: l, children: e, ...o }, a) => /* @__PURE__ */ m(
|
|
6
6
|
s,
|
package/dist/index25.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { Root as N, Group as b, Value as g, Trigger as d, Icon as S, Portal as v, Content as m, Viewport as R, Label as n, Item as c, ItemIndicator as C, ItemText as j, Separator as p, ScrollUpButton as f, ScrollDownButton as y } from "./
|
|
3
|
+
import { Root as N, Group as b, Value as g, Trigger as d, Icon as S, Portal as v, Content as m, Viewport as R, Label as n, Item as c, ItemIndicator as C, ItemText as j, Separator as p, ScrollUpButton as f, ScrollDownButton as y } from "./index54.js";
|
|
4
4
|
import { cn as o } from "./index2.js";
|
|
5
|
-
import u from "./
|
|
6
|
-
import I from "./
|
|
7
|
-
import B from "./
|
|
5
|
+
import u from "./index52.js";
|
|
6
|
+
import I from "./index50.js";
|
|
7
|
+
import B from "./index55.js";
|
|
8
8
|
const E = N, F = b, H = g, k = s.forwardRef(({ className: a, children: r, ...t }, l) => /* @__PURE__ */ i(
|
|
9
9
|
d,
|
|
10
10
|
{
|
package/dist/index27.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { Root as g, Portal as u, Trigger as x, Close as n, Overlay as d, Content as l, Title as m, Description as c } from "./
|
|
4
|
-
import { cva as y } from "./
|
|
3
|
+
import { Root as g, Portal as u, Trigger as x, Close as n, Overlay as d, Content as l, Title as m, Description as c } from "./index63.js";
|
|
4
|
+
import { cva as y } from "./index46.js";
|
|
5
5
|
import { cn as s } from "./index2.js";
|
|
6
|
-
import N from "./
|
|
6
|
+
import N from "./index64.js";
|
|
7
7
|
const H = g, O = x, P = n, b = u, f = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
|
|
8
8
|
d,
|
|
9
9
|
{
|
package/dist/index29.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as b from "react";
|
|
3
|
-
import { Root as n, Track as l, Range as p, Thumb as d } from "./
|
|
3
|
+
import { Root as n, Track as l, Range as p, Thumb as d } from "./index66.js";
|
|
4
4
|
import { cn as h } from "./index2.js";
|
|
5
5
|
const g = b.forwardRef(({ className: i, defaultValue: r, value: o, ...s }, m) => {
|
|
6
6
|
const t = (o == null ? void 0 : o.length) ?? (r == null ? void 0 : r.length) ?? 1;
|
package/dist/index31.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import { Root as o, Thumb as n } from "./
|
|
3
|
+
import { Root as o, Thumb as n } from "./index74.js";
|
|
4
4
|
import { cn as e } from "./index2.js";
|
|
5
5
|
const c = a.forwardRef(({ className: i, ...s }, t) => /* @__PURE__ */ r(
|
|
6
6
|
o,
|
package/dist/index36.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { Root as t } from "./index75.js";
|
|
4
|
-
import { cva as m } from "./
|
|
4
|
+
import { cva as m } from "./index46.js";
|
|
5
5
|
import { cn as p } from "./index2.js";
|
|
6
6
|
const f = m(
|
|
7
7
|
"inline-flex items-center justify-center text-sm font-medium transition-colors hover:bg-primary/20 hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary disabled:pointer-events-none disabled:opacity-50 border-2 border-primary data-[state=on]:bg-primary data-[state=on]:text-primary-foreground data-[state=off]:bg-transparent data-[state=off]:text-primary [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",
|
package/dist/index37.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { Root as s, Trigger as n, Portal as m, Content as e, Provider as l } from "./
|
|
3
|
+
import { Root as s, Trigger as n, Portal as m, Content as e, Provider as l } from "./index68.js";
|
|
4
4
|
import { cn as p } from "./index2.js";
|
|
5
5
|
const f = ({ children: o, ...t }) => /* @__PURE__ */ a(l, { delayDuration: 100, skipDelayDuration: 300, ...t, children: o });
|
|
6
6
|
f.displayName = "TooltipProvider";
|
package/dist/index4.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { Root as c, Item as l, Header as f, Trigger as i, Content as d } from "./
|
|
3
|
+
import { Root as c, Item as l, Header as f, Trigger as i, Content as d } from "./index51.js";
|
|
4
4
|
import { cn as s } from "./index2.js";
|
|
5
|
-
import p from "./
|
|
5
|
+
import p from "./index52.js";
|
|
6
6
|
const R = c, N = n.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ a(
|
|
7
7
|
l,
|
|
8
8
|
{
|
package/dist/index45.js
CHANGED
|
@@ -1,239 +1,127 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createContextScope as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { composeEventHandlers as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
(
|
|
17
|
-
const {
|
|
18
|
-
return /* @__PURE__ */
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { createContextScope as w } from "./index76.js";
|
|
3
|
+
import { useComposedRefs as v } from "./index77.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 "./index63.js";
|
|
5
|
+
import { composeEventHandlers as W } from "./index78.js";
|
|
6
|
+
import { createSlottable as Y } from "./index79.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
19
|
}
|
|
20
20
|
);
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
collapsible: r = !1,
|
|
33
|
-
...l
|
|
34
|
-
} = o, [a, p] = M({
|
|
35
|
-
prop: e,
|
|
36
|
-
defaultProp: t ?? "",
|
|
37
|
-
onChange: i,
|
|
38
|
-
caller: d
|
|
39
|
-
});
|
|
40
|
-
return /* @__PURE__ */ n(
|
|
41
|
-
L,
|
|
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();
|
|
119
|
-
});
|
|
120
|
-
return /* @__PURE__ */ n(
|
|
121
|
-
ue,
|
|
122
|
-
{
|
|
123
|
-
scope: e,
|
|
124
|
-
disabled: t,
|
|
125
|
-
direction: i,
|
|
126
|
-
orientation: r,
|
|
127
|
-
children: /* @__PURE__ */ n(E.Slot, { scope: e, children: /* @__PURE__ */ n(
|
|
128
|
-
V.div,
|
|
129
|
-
{
|
|
130
|
-
...l,
|
|
131
|
-
"data-orientation": r,
|
|
132
|
-
ref: p,
|
|
133
|
-
onKeyDown: t ? void 0 : h
|
|
134
|
-
}
|
|
135
|
-
) })
|
|
136
|
-
}
|
|
137
|
-
);
|
|
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 });
|
|
138
31
|
}
|
|
139
|
-
)
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
+
$,
|
|
144
39
|
{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
oe,
|
|
40
|
+
contentName: s,
|
|
41
|
+
titleName: C,
|
|
42
|
+
docsSlug: "alert-dialog",
|
|
43
|
+
children: /* @__PURE__ */ i(z, { scope: r, cancelRef: d, children: /* @__PURE__ */ q(
|
|
44
|
+
F,
|
|
151
45
|
{
|
|
152
|
-
"
|
|
153
|
-
|
|
46
|
+
role: "alertdialog",
|
|
47
|
+
...g,
|
|
154
48
|
...a,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
+
]
|
|
162
60
|
}
|
|
163
|
-
)
|
|
61
|
+
) })
|
|
164
62
|
}
|
|
165
63
|
);
|
|
166
64
|
}
|
|
167
65
|
);
|
|
168
|
-
|
|
169
|
-
var
|
|
170
|
-
(
|
|
171
|
-
const {
|
|
172
|
-
return /* @__PURE__ */
|
|
173
|
-
V.h3,
|
|
174
|
-
{
|
|
175
|
-
"data-orientation": i.orientation,
|
|
176
|
-
"data-state": J(r.open),
|
|
177
|
-
"data-disabled": r.disabled ? "" : void 0,
|
|
178
|
-
...t,
|
|
179
|
-
ref: c
|
|
180
|
-
}
|
|
181
|
-
);
|
|
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 });
|
|
182
71
|
}
|
|
183
72
|
);
|
|
184
|
-
|
|
185
|
-
var
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
...a,
|
|
195
|
-
...t,
|
|
196
|
-
ref: c
|
|
197
|
-
}
|
|
198
|
-
) });
|
|
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 });
|
|
199
83
|
}
|
|
200
84
|
);
|
|
201
|
-
|
|
202
|
-
var
|
|
203
|
-
(
|
|
204
|
-
const {
|
|
205
|
-
return /* @__PURE__ */
|
|
206
|
-
te,
|
|
207
|
-
{
|
|
208
|
-
role: "region",
|
|
209
|
-
"aria-labelledby": r.triggerId,
|
|
210
|
-
"data-orientation": i.orientation,
|
|
211
|
-
...l,
|
|
212
|
-
...t,
|
|
213
|
-
ref: c,
|
|
214
|
-
style: {
|
|
215
|
-
"--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
|
|
216
|
-
"--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
|
|
217
|
-
...o.style
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
);
|
|
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 });
|
|
221
90
|
}
|
|
222
91
|
);
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
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;
|
|
228
108
|
export {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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
|
|
239
127
|
};
|
package/dist/index46.js
CHANGED
|
@@ -1,13 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { clsx as O } from "./index43.js";
|
|
2
|
+
const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
|
|
3
|
+
var s;
|
|
4
|
+
if ((l == null ? void 0 : l.variants) == null) return y(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
5
|
+
const { variants: r, defaultVariants: d } = l, V = Object.keys(r).map((t) => {
|
|
6
|
+
const a = n == null ? void 0 : n[t], u = d == null ? void 0 : d[t];
|
|
7
|
+
if (a === null) return null;
|
|
8
|
+
const i = m(a) || m(u);
|
|
9
|
+
return r[t][i];
|
|
10
|
+
}), v = n && Object.entries(n).reduce((t, a) => {
|
|
11
|
+
let [u, i] = a;
|
|
12
|
+
return i === void 0 || (t[u] = i), t;
|
|
13
|
+
}, {}), N = l == null || (s = l.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((t, a) => {
|
|
14
|
+
let { class: u, className: i, ...f } = a;
|
|
15
|
+
return Object.entries(f).every((C) => {
|
|
16
|
+
let [c, o] = C;
|
|
17
|
+
return Array.isArray(o) ? o.includes({
|
|
18
|
+
...d,
|
|
19
|
+
...v
|
|
20
|
+
}[c]) : {
|
|
21
|
+
...d,
|
|
22
|
+
...v
|
|
23
|
+
}[c] === o;
|
|
24
|
+
}) ? [
|
|
25
|
+
...t,
|
|
26
|
+
u,
|
|
27
|
+
i
|
|
28
|
+
] : t;
|
|
29
|
+
}, []);
|
|
30
|
+
return y(e, V, N, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
31
|
+
};
|
|
11
32
|
export {
|
|
12
|
-
|
|
33
|
+
j as cva,
|
|
34
|
+
y as cx
|
|
13
35
|
};
|