@drjoshcsimmons/scl 0.1.14 → 0.2.1
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/LICENSE +1 -1
- package/dist/components/ui/accordion/accordion.d.ts +1 -1
- package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion/index.d.ts +1 -1
- package/dist/components/ui/accordion/index.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/alert/index.d.ts +1 -1
- package/dist/components/ui/alert/index.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +2 -2
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog/index.d.ts +1 -1
- package/dist/components/ui/alert-dialog/index.d.ts.map +1 -1
- package/dist/components/ui/avatar/avatar.d.ts +1 -1
- package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar/index.d.ts +1 -1
- package/dist/components/ui/avatar/index.d.ts.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +1 -1
- package/dist/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/components/ui/badge/index.d.ts +1 -1
- package/dist/components/ui/badge/index.d.ts.map +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/index.d.ts +1 -1
- package/dist/components/ui/button/index.d.ts.map +1 -1
- package/dist/components/ui/card/card.d.ts.map +1 -1
- package/dist/components/ui/card/index.d.ts +1 -1
- package/dist/components/ui/card/index.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox/index.d.ts.map +1 -1
- package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible/index.d.ts +1 -1
- package/dist/components/ui/collapsible/index.d.ts.map +1 -1
- package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/index.d.ts +1 -1
- package/dist/components/ui/combobox/index.d.ts.map +1 -1
- package/dist/components/ui/command/command.d.ts.map +1 -1
- package/dist/components/ui/command/index.d.ts +1 -1
- package/dist/components/ui/command/index.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts +1 -1
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/index.d.ts +1 -1
- package/dist/components/ui/dialog/index.d.ts.map +1 -1
- package/dist/components/ui/dithered-image/dithered-image.d.ts.map +1 -1
- package/dist/components/ui/dithered-image/index.d.ts +1 -1
- package/dist/components/ui/dithered-image/index.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/index.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/index.d.ts.map +1 -1
- package/dist/components/ui/form/form.d.ts +1 -1
- package/dist/components/ui/form/form.d.ts.map +1 -1
- package/dist/components/ui/form/index.d.ts +1 -1
- package/dist/components/ui/form/index.d.ts.map +1 -1
- package/dist/components/ui/input/index.d.ts.map +1 -1
- package/dist/components/ui/input/input.d.ts.map +1 -1
- package/dist/components/ui/label/index.d.ts.map +1 -1
- package/dist/components/ui/label/label.d.ts +1 -1
- package/dist/components/ui/label/label.d.ts.map +1 -1
- package/dist/components/ui/popover/index.d.ts +1 -1
- package/dist/components/ui/popover/index.d.ts.map +1 -1
- package/dist/components/ui/popover/popover.d.ts +1 -1
- package/dist/components/ui/popover/popover.d.ts.map +1 -1
- package/dist/components/ui/progress/index.d.ts.map +1 -1
- package/dist/components/ui/progress/progress.d.ts +1 -1
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/radio-group/index.d.ts.map +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/ui/scroll-area/index.d.ts.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/select/index.d.ts +1 -1
- package/dist/components/ui/select/index.d.ts.map +1 -1
- package/dist/components/ui/select/select.d.ts +1 -1
- package/dist/components/ui/select/select.d.ts.map +1 -1
- package/dist/components/ui/separator/index.d.ts.map +1 -1
- package/dist/components/ui/separator/separator.d.ts +1 -1
- package/dist/components/ui/separator/separator.d.ts.map +1 -1
- package/dist/components/ui/sheet/index.d.ts +1 -1
- package/dist/components/ui/sheet/index.d.ts.map +1 -1
- package/dist/components/ui/sheet/sheet.d.ts +2 -2
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
- package/dist/components/ui/skeleton/index.d.ts.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/ui/slider/index.d.ts.map +1 -1
- package/dist/components/ui/slider/slider.d.ts +1 -1
- package/dist/components/ui/slider/slider.d.ts.map +1 -1
- package/dist/components/ui/statusline/index.d.ts.map +1 -1
- package/dist/components/ui/statusline/statusline.d.ts.map +1 -1
- package/dist/components/ui/switch/index.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.d.ts +1 -1
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/table/index.d.ts +1 -1
- package/dist/components/ui/table/index.d.ts.map +1 -1
- package/dist/components/ui/table/table.d.ts +1 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/tabs/index.d.ts +1 -1
- package/dist/components/ui/tabs/index.d.ts.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +1 -1
- package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
- package/dist/components/ui/terminal-textarea/index.d.ts.map +1 -1
- package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea/index.d.ts.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
- package/dist/components/ui/toggle/index.d.ts.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
- package/dist/components/ui/tooltip/index.d.ts +1 -1
- package/dist/components/ui/tooltip/index.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index10.js +42 -44
- package/dist/index100.js +4 -13
- package/dist/index101.js +30 -9
- package/dist/index102.js +13 -30
- package/dist/index103.js +649 -3
- package/dist/index104.js +30 -25
- package/dist/index105.js +3 -5
- package/dist/index106.js +44 -51
- package/dist/index107.js +30 -30
- package/dist/index108.js +55 -30
- package/dist/index109.js +29 -47
- package/dist/index11.js +5 -11
- package/dist/index110.js +44 -646
- package/dist/index113.js +47 -11
- package/dist/index114.js +42 -200
- package/dist/index115.js +12 -22
- package/dist/index116.js +194 -388
- package/dist/index117.js +21 -47
- package/dist/index118.js +392 -40
- package/dist/index119.js +6 -21
- package/dist/index12.js +2 -2
- package/dist/index120.js +48 -9
- package/dist/index121.js +15 -32
- package/dist/index122.js +3 -12
- package/dist/index123.js +38 -6
- package/dist/index124.js +18 -48
- 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 +107 -519
- package/dist/index137.js +14 -126
- package/dist/index138.js +516 -125
- package/dist/index139.js +128 -2
- package/dist/index14.js +4 -13
- package/dist/index140.js +134 -2
- package/dist/index141.js +65 -69
- package/dist/index142.js +68 -8
- package/dist/index143.js +9 -14
- package/dist/index144.js +14 -66
- package/dist/index145.js +65 -64
- package/dist/index15.js +43 -67
- package/dist/index16.js +3 -30
- package/dist/index17.js +75 -80
- package/dist/index18.js +11 -13
- package/dist/index19.js +4 -4
- package/dist/index20.js +5 -12
- package/dist/index21.js +15 -15
- package/dist/index22.js +21 -24
- package/dist/index23.js +7 -14
- package/dist/index24.js +11 -11
- package/dist/index25.js +66 -72
- package/dist/index26.js +15 -17
- package/dist/index27.js +57 -51
- package/dist/index28.js +2 -10
- package/dist/index29.js +9 -12
- package/dist/index3.js +18 -18
- package/dist/index30.js +27 -60
- package/dist/index31.js +15 -15
- package/dist/index32.js +24 -47
- package/dist/index33.js +16 -16
- package/dist/index34.js +1 -4
- package/dist/index36.js +11 -11
- package/dist/index37.js +21 -18
- package/dist/index38.js +99 -38
- package/dist/index39.js +37 -64
- package/dist/index4.js +24 -31
- package/dist/index40.js +10 -48
- package/dist/index41.js +48 -99
- package/dist/index42.js +65 -10
- package/dist/index45.js +237 -33
- package/dist/index46.js +11 -241
- package/dist/index47.js +33 -237
- package/dist/index48.js +241 -11
- package/dist/index49.js +16 -258
- package/dist/index5.js +13 -26
- package/dist/index50.js +125 -12
- package/dist/index51.js +25 -524
- package/dist/index52.js +71 -20
- package/dist/index53.js +206 -131
- package/dist/index54.js +11 -73
- package/dist/index55.js +54 -330
- package/dist/index56.js +249 -231
- package/dist/index57.js +225 -11
- package/dist/index58.js +9 -82
- package/dist/index59.js +11 -249
- package/dist/index6.js +66 -36
- package/dist/index60.js +130 -9
- package/dist/index61.js +21 -129
- package/dist/index62.js +860 -18
- package/dist/index63.js +9 -860
- package/dist/index64.js +82 -9
- package/dist/index65.js +256 -27
- package/dist/index66.js +12 -435
- package/dist/index67.js +244 -55
- package/dist/index68.js +7 -7
- package/dist/index69.js +511 -206
- package/dist/index7.js +5 -5
- package/dist/index70.js +5 -4
- package/dist/index71.js +435 -12
- package/dist/index72.js +318 -107
- package/dist/index73.js +3 -3
- package/dist/index74.js +1 -1
- package/dist/index75.js +156 -249
- 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 +5 -5
- 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 +124 -13
- package/dist/index85.js +13 -67
- package/dist/index86.js +133 -32
- package/dist/index87.js +216 -45
- package/dist/index88.js +14 -52
- package/dist/index89.js +66 -47
- package/dist/index9.js +19 -26
- package/dist/index90.js +48 -9
- package/dist/index91.js +49 -45
- package/dist/index92.js +9 -8
- package/dist/index93.js +29 -47
- package/dist/index94.js +9 -30
- package/dist/index95.js +8 -8
- package/dist/index96.js +24 -54
- package/dist/index97.js +5 -10
- package/dist/index98.js +55 -4
- package/dist/index99.js +11 -30
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/tokens/animations.d.ts.map +1 -1
- package/dist/tokens/colors.d.ts.map +1 -1
- package/dist/tokens/index.d.ts +3 -3
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/shadows.d.ts.map +1 -1
- package/dist/tokens/spacing.d.ts.map +1 -1
- package/dist/tokens/typography.d.ts.map +1 -1
- package/package.json +19 -9
package/dist/index57.js
CHANGED
|
@@ -1,13 +1,227 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
]
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { composeEventHandlers as m } from "./index79.js";
|
|
3
|
+
import { composeRefs as K } from "./index78.js";
|
|
4
|
+
import { createContextScope as U } from "./index76.js";
|
|
5
|
+
import { useControllableState as g } from "./index80.js";
|
|
6
|
+
import { Primitive as B } from "./index81.js";
|
|
7
|
+
import { createMenuScope as D, Root as F, Group as H, Portal as W, RadioGroup as $, Sub as j, Anchor as X, CheckboxItem as q, ItemIndicator as z, Content as J, Item as Q, Label as V, RadioItem as Y, Separator as Z, SubContent as oo, SubTrigger as eo, Arrow as ro } from "./index103.js";
|
|
8
|
+
import { useId as M } from "./index82.js";
|
|
9
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
10
|
+
var f = "DropdownMenu", [no] = U(
|
|
11
|
+
f,
|
|
12
|
+
[D]
|
|
13
|
+
), i = D(), [ao, _] = no(f), h = (o) => {
|
|
14
|
+
const {
|
|
15
|
+
__scopeDropdownMenu: n,
|
|
16
|
+
children: r,
|
|
17
|
+
dir: e,
|
|
18
|
+
open: a,
|
|
19
|
+
defaultOpen: d,
|
|
20
|
+
onOpenChange: c,
|
|
21
|
+
modal: p = !0
|
|
22
|
+
} = o, s = i(n), v = u.useRef(null), [l, w] = g({
|
|
23
|
+
prop: a,
|
|
24
|
+
defaultProp: d ?? !1,
|
|
25
|
+
onChange: c,
|
|
26
|
+
caller: f
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ t(
|
|
29
|
+
ao,
|
|
30
|
+
{
|
|
31
|
+
scope: n,
|
|
32
|
+
triggerId: M(),
|
|
33
|
+
triggerRef: v,
|
|
34
|
+
contentId: M(),
|
|
35
|
+
open: l,
|
|
36
|
+
onOpenChange: w,
|
|
37
|
+
onOpenToggle: u.useCallback(() => w((L) => !L), [w]),
|
|
38
|
+
modal: p,
|
|
39
|
+
children: /* @__PURE__ */ t(F, { ...s, open: l, onOpenChange: w, dir: e, modal: p, children: r })
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
h.displayName = f;
|
|
44
|
+
var R = "DropdownMenuTrigger", b = u.forwardRef(
|
|
45
|
+
(o, n) => {
|
|
46
|
+
const { __scopeDropdownMenu: r, disabled: e = !1, ...a } = o, d = _(R, r), c = i(r);
|
|
47
|
+
return /* @__PURE__ */ t(X, { asChild: !0, ...c, children: /* @__PURE__ */ t(
|
|
48
|
+
B.button,
|
|
49
|
+
{
|
|
50
|
+
type: "button",
|
|
51
|
+
id: d.triggerId,
|
|
52
|
+
"aria-haspopup": "menu",
|
|
53
|
+
"aria-expanded": d.open,
|
|
54
|
+
"aria-controls": d.open ? d.contentId : void 0,
|
|
55
|
+
"data-state": d.open ? "open" : "closed",
|
|
56
|
+
"data-disabled": e ? "" : void 0,
|
|
57
|
+
disabled: e,
|
|
58
|
+
...a,
|
|
59
|
+
ref: K(n, d.triggerRef),
|
|
60
|
+
onPointerDown: m(o.onPointerDown, (p) => {
|
|
61
|
+
!e && p.button === 0 && p.ctrlKey === !1 && (d.onOpenToggle(), d.open || p.preventDefault());
|
|
62
|
+
}),
|
|
63
|
+
onKeyDown: m(o.onKeyDown, (p) => {
|
|
64
|
+
e || (["Enter", " "].includes(p.key) && d.onOpenToggle(), p.key === "ArrowDown" && d.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(p.key) && p.preventDefault());
|
|
65
|
+
})
|
|
66
|
+
}
|
|
67
|
+
) });
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
b.displayName = R;
|
|
71
|
+
var to = "DropdownMenuPortal", I = (o) => {
|
|
72
|
+
const { __scopeDropdownMenu: n, ...r } = o, e = i(n);
|
|
73
|
+
return /* @__PURE__ */ t(W, { ...e, ...r });
|
|
74
|
+
};
|
|
75
|
+
I.displayName = to;
|
|
76
|
+
var S = "DropdownMenuContent", C = u.forwardRef(
|
|
77
|
+
(o, n) => {
|
|
78
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = _(S, r), d = i(r), c = u.useRef(!1);
|
|
79
|
+
return /* @__PURE__ */ t(
|
|
80
|
+
J,
|
|
81
|
+
{
|
|
82
|
+
id: a.contentId,
|
|
83
|
+
"aria-labelledby": a.triggerId,
|
|
84
|
+
...d,
|
|
85
|
+
...e,
|
|
86
|
+
ref: n,
|
|
87
|
+
onCloseAutoFocus: m(o.onCloseAutoFocus, (p) => {
|
|
88
|
+
var s;
|
|
89
|
+
c.current || (s = a.triggerRef.current) == null || s.focus(), c.current = !1, p.preventDefault();
|
|
90
|
+
}),
|
|
91
|
+
onInteractOutside: m(o.onInteractOutside, (p) => {
|
|
92
|
+
const s = p.detail.originalEvent, v = s.button === 0 && s.ctrlKey === !0, l = s.button === 2 || v;
|
|
93
|
+
(!a.modal || l) && (c.current = !0);
|
|
94
|
+
}),
|
|
95
|
+
style: {
|
|
96
|
+
...o.style,
|
|
97
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
98
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
99
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
100
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
101
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
C.displayName = S;
|
|
108
|
+
var po = "DropdownMenuGroup", N = u.forwardRef(
|
|
109
|
+
(o, n) => {
|
|
110
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
111
|
+
return /* @__PURE__ */ t(H, { ...a, ...e, ref: n });
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
N.displayName = po;
|
|
115
|
+
var uo = "DropdownMenuLabel", x = u.forwardRef(
|
|
116
|
+
(o, n) => {
|
|
117
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
118
|
+
return /* @__PURE__ */ t(V, { ...a, ...e, ref: n });
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
x.displayName = uo;
|
|
122
|
+
var io = "DropdownMenuItem", A = u.forwardRef(
|
|
123
|
+
(o, n) => {
|
|
124
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
125
|
+
return /* @__PURE__ */ t(Q, { ...a, ...e, ref: n });
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
A.displayName = io;
|
|
129
|
+
var so = "DropdownMenuCheckboxItem", P = u.forwardRef((o, n) => {
|
|
130
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
131
|
+
return /* @__PURE__ */ t(q, { ...a, ...e, ref: n });
|
|
132
|
+
});
|
|
133
|
+
P.displayName = so;
|
|
134
|
+
var co = "DropdownMenuRadioGroup", E = u.forwardRef((o, n) => {
|
|
135
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
136
|
+
return /* @__PURE__ */ t($, { ...a, ...e, ref: n });
|
|
137
|
+
});
|
|
138
|
+
E.displayName = co;
|
|
139
|
+
var lo = "DropdownMenuRadioItem", O = u.forwardRef((o, n) => {
|
|
140
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
141
|
+
return /* @__PURE__ */ t(Y, { ...a, ...e, ref: n });
|
|
142
|
+
});
|
|
143
|
+
O.displayName = lo;
|
|
144
|
+
var wo = "DropdownMenuItemIndicator", y = u.forwardRef((o, n) => {
|
|
145
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
146
|
+
return /* @__PURE__ */ t(z, { ...a, ...e, ref: n });
|
|
147
|
+
});
|
|
148
|
+
y.displayName = wo;
|
|
149
|
+
var mo = "DropdownMenuSeparator", T = u.forwardRef((o, n) => {
|
|
150
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
151
|
+
return /* @__PURE__ */ t(Z, { ...a, ...e, ref: n });
|
|
152
|
+
});
|
|
153
|
+
T.displayName = mo;
|
|
154
|
+
var fo = "DropdownMenuArrow", vo = u.forwardRef(
|
|
155
|
+
(o, n) => {
|
|
156
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
157
|
+
return /* @__PURE__ */ t(ro, { ...a, ...e, ref: n });
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
vo.displayName = fo;
|
|
161
|
+
var Mo = (o) => {
|
|
162
|
+
const { __scopeDropdownMenu: n, children: r, open: e, onOpenChange: a, defaultOpen: d } = o, c = i(n), [p, s] = g({
|
|
163
|
+
prop: e,
|
|
164
|
+
defaultProp: d ?? !1,
|
|
165
|
+
onChange: a,
|
|
166
|
+
caller: "DropdownMenuSub"
|
|
167
|
+
});
|
|
168
|
+
return /* @__PURE__ */ t(j, { ...c, open: p, onOpenChange: s, children: r });
|
|
169
|
+
}, go = "DropdownMenuSubTrigger", G = u.forwardRef((o, n) => {
|
|
170
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
171
|
+
return /* @__PURE__ */ t(eo, { ...a, ...e, ref: n });
|
|
172
|
+
});
|
|
173
|
+
G.displayName = go;
|
|
174
|
+
var Do = "DropdownMenuSubContent", k = u.forwardRef((o, n) => {
|
|
175
|
+
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
176
|
+
return /* @__PURE__ */ t(
|
|
177
|
+
oo,
|
|
178
|
+
{
|
|
179
|
+
...a,
|
|
180
|
+
...e,
|
|
181
|
+
ref: n,
|
|
182
|
+
style: {
|
|
183
|
+
...o.style,
|
|
184
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
185
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
186
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
187
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
188
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
});
|
|
193
|
+
k.displayName = Do;
|
|
194
|
+
var xo = h, Ao = b, Po = I, Eo = C, Oo = N, yo = x, To = A, Go = P, ko = E, Lo = O, Ko = y, Uo = T, Bo = Mo, Fo = G, Ho = k;
|
|
11
195
|
export {
|
|
12
|
-
|
|
196
|
+
Go as CheckboxItem,
|
|
197
|
+
Eo as Content,
|
|
198
|
+
h as DropdownMenu,
|
|
199
|
+
vo as DropdownMenuArrow,
|
|
200
|
+
P as DropdownMenuCheckboxItem,
|
|
201
|
+
C as DropdownMenuContent,
|
|
202
|
+
N as DropdownMenuGroup,
|
|
203
|
+
A as DropdownMenuItem,
|
|
204
|
+
y as DropdownMenuItemIndicator,
|
|
205
|
+
x as DropdownMenuLabel,
|
|
206
|
+
I as DropdownMenuPortal,
|
|
207
|
+
E as DropdownMenuRadioGroup,
|
|
208
|
+
O as DropdownMenuRadioItem,
|
|
209
|
+
T as DropdownMenuSeparator,
|
|
210
|
+
Mo as DropdownMenuSub,
|
|
211
|
+
k as DropdownMenuSubContent,
|
|
212
|
+
G as DropdownMenuSubTrigger,
|
|
213
|
+
b as DropdownMenuTrigger,
|
|
214
|
+
Oo as Group,
|
|
215
|
+
To as Item,
|
|
216
|
+
Ko as ItemIndicator,
|
|
217
|
+
yo as Label,
|
|
218
|
+
Po as Portal,
|
|
219
|
+
ko as RadioGroup,
|
|
220
|
+
Lo as RadioItem,
|
|
221
|
+
xo as Root,
|
|
222
|
+
Uo as Separator,
|
|
223
|
+
Bo as Sub,
|
|
224
|
+
Ho as SubContent,
|
|
225
|
+
Fo as SubTrigger,
|
|
226
|
+
Ao as Trigger
|
|
13
227
|
};
|
package/dist/index58.js
CHANGED
|
@@ -1,84 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
value: o = null,
|
|
10
|
-
max: a,
|
|
11
|
-
getValueLabel: N = E,
|
|
12
|
-
...b
|
|
13
|
-
} = r;
|
|
14
|
-
(a || a === 0) && !v(a) && console.error(M(`${a}`, "Progress"));
|
|
15
|
-
const t = v(a) ? a : d;
|
|
16
|
-
o !== null && !p(o, t) && console.error(V(`${o}`, "Progress"));
|
|
17
|
-
const n = p(o, t) ? o : null, I = s(n) ? N(n, t) : void 0;
|
|
18
|
-
return /* @__PURE__ */ l(R, { scope: i, value: n, max: t, children: /* @__PURE__ */ l(
|
|
19
|
-
c.div,
|
|
20
|
-
{
|
|
21
|
-
"aria-valuemax": t,
|
|
22
|
-
"aria-valuemin": 0,
|
|
23
|
-
"aria-valuenow": s(n) ? n : void 0,
|
|
24
|
-
"aria-valuetext": I,
|
|
25
|
-
role: "progressbar",
|
|
26
|
-
"data-state": P(n, t),
|
|
27
|
-
"data-value": n ?? void 0,
|
|
28
|
-
"data-max": t,
|
|
29
|
-
...b,
|
|
30
|
-
ref: e
|
|
31
|
-
}
|
|
32
|
-
) });
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
f.displayName = u;
|
|
36
|
-
var g = "ProgressIndicator", x = m.forwardRef(
|
|
37
|
-
(r, e) => {
|
|
38
|
-
const { __scopeProgress: i, ...o } = r, a = _(g, i);
|
|
39
|
-
return /* @__PURE__ */ l(
|
|
40
|
-
c.div,
|
|
41
|
-
{
|
|
42
|
-
"data-state": P(a.value, a.max),
|
|
43
|
-
"data-value": a.value ?? void 0,
|
|
44
|
-
"data-max": a.max,
|
|
45
|
-
...o,
|
|
46
|
-
ref: e
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
x.displayName = g;
|
|
52
|
-
function E(r, e) {
|
|
53
|
-
return `${Math.round(r / e * 100)}%`;
|
|
54
|
-
}
|
|
55
|
-
function P(r, e) {
|
|
56
|
-
return r == null ? "indeterminate" : r === e ? "complete" : "loading";
|
|
57
|
-
}
|
|
58
|
-
function s(r) {
|
|
59
|
-
return typeof r == "number";
|
|
60
|
-
}
|
|
61
|
-
function v(r) {
|
|
62
|
-
return s(r) && !isNaN(r) && r > 0;
|
|
63
|
-
}
|
|
64
|
-
function p(r, e) {
|
|
65
|
-
return s(r) && !isNaN(r) && r <= e && r >= 0;
|
|
66
|
-
}
|
|
67
|
-
function M(r, e) {
|
|
68
|
-
return `Invalid prop \`max\` of value \`${r}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`;
|
|
69
|
-
}
|
|
70
|
-
function V(r, e) {
|
|
71
|
-
return `Invalid prop \`value\` of value \`${r}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
72
|
-
- a positive number
|
|
73
|
-
- less than the value passed to \`max\` (or ${d} if no \`max\` prop is set)
|
|
74
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
75
|
-
|
|
76
|
-
Defaulting to \`null\`.`;
|
|
77
|
-
}
|
|
78
|
-
var D = f, L = x;
|
|
1
|
+
import e from "./index121.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const t = e("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
79
9
|
export {
|
|
80
|
-
|
|
81
|
-
f as Progress,
|
|
82
|
-
x as ProgressIndicator,
|
|
83
|
-
D as Root
|
|
10
|
+
t as default
|
|
84
11
|
};
|
package/dist/index59.js
CHANGED
|
@@ -1,251 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var g = "Checkbox", [U] = L(g), [X, E] = U(g);
|
|
12
|
-
function J(t) {
|
|
13
|
-
const {
|
|
14
|
-
__scopeCheckbox: a,
|
|
15
|
-
checked: c,
|
|
16
|
-
children: u,
|
|
17
|
-
defaultChecked: r,
|
|
18
|
-
disabled: e,
|
|
19
|
-
form: p,
|
|
20
|
-
name: f,
|
|
21
|
-
onCheckedChange: i,
|
|
22
|
-
required: m,
|
|
23
|
-
value: C = "on",
|
|
24
|
-
// @ts-expect-error
|
|
25
|
-
internal_do_not_use_render: d
|
|
26
|
-
} = t, [l, v] = O({
|
|
27
|
-
prop: c,
|
|
28
|
-
defaultProp: r ?? !1,
|
|
29
|
-
onChange: i,
|
|
30
|
-
caller: g
|
|
31
|
-
}), [k, x] = s.useState(null), [_, o] = s.useState(null), n = s.useRef(!1), I = k ? !!p || !!k.closest("form") : (
|
|
32
|
-
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
33
|
-
!0
|
|
34
|
-
), R = {
|
|
35
|
-
checked: l,
|
|
36
|
-
disabled: e,
|
|
37
|
-
setChecked: v,
|
|
38
|
-
control: k,
|
|
39
|
-
setControl: x,
|
|
40
|
-
name: f,
|
|
41
|
-
form: p,
|
|
42
|
-
value: C,
|
|
43
|
-
hasConsumerStoppedPropagationRef: n,
|
|
44
|
-
required: m,
|
|
45
|
-
defaultChecked: h(r) ? !1 : r,
|
|
46
|
-
isFormControl: I,
|
|
47
|
-
bubbleInput: _,
|
|
48
|
-
setBubbleInput: o
|
|
49
|
-
};
|
|
50
|
-
return /* @__PURE__ */ b(
|
|
51
|
-
X,
|
|
52
|
-
{
|
|
53
|
-
scope: a,
|
|
54
|
-
...R,
|
|
55
|
-
children: W(d) ? d(R) : u
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
var N = "CheckboxTrigger", w = s.forwardRef(
|
|
60
|
-
({ __scopeCheckbox: t, onKeyDown: a, onClick: c, ...u }, r) => {
|
|
61
|
-
const {
|
|
62
|
-
control: e,
|
|
63
|
-
value: p,
|
|
64
|
-
disabled: f,
|
|
65
|
-
checked: i,
|
|
66
|
-
required: m,
|
|
67
|
-
setControl: C,
|
|
68
|
-
setChecked: d,
|
|
69
|
-
hasConsumerStoppedPropagationRef: l,
|
|
70
|
-
isFormControl: v,
|
|
71
|
-
bubbleInput: k
|
|
72
|
-
} = E(N, t), x = B(r, C), _ = s.useRef(i);
|
|
73
|
-
return s.useEffect(() => {
|
|
74
|
-
const o = e == null ? void 0 : e.form;
|
|
75
|
-
if (o) {
|
|
76
|
-
const n = () => d(_.current);
|
|
77
|
-
return o.addEventListener("reset", n), () => o.removeEventListener("reset", n);
|
|
78
|
-
}
|
|
79
|
-
}, [e, d]), /* @__PURE__ */ b(
|
|
80
|
-
P.button,
|
|
81
|
-
{
|
|
82
|
-
type: "button",
|
|
83
|
-
role: "checkbox",
|
|
84
|
-
"aria-checked": h(i) ? "mixed" : i,
|
|
85
|
-
"aria-required": m,
|
|
86
|
-
"data-state": A(i),
|
|
87
|
-
"data-disabled": f ? "" : void 0,
|
|
88
|
-
disabled: f,
|
|
89
|
-
value: p,
|
|
90
|
-
...u,
|
|
91
|
-
ref: x,
|
|
92
|
-
onKeyDown: S(a, (o) => {
|
|
93
|
-
o.key === "Enter" && o.preventDefault();
|
|
94
|
-
}),
|
|
95
|
-
onClick: S(c, (o) => {
|
|
96
|
-
d((n) => h(n) ? !0 : !n), k && v && (l.current = o.isPropagationStopped(), l.current || o.stopPropagation());
|
|
97
|
-
})
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
);
|
|
102
|
-
w.displayName = N;
|
|
103
|
-
var Q = s.forwardRef(
|
|
104
|
-
(t, a) => {
|
|
105
|
-
const {
|
|
106
|
-
__scopeCheckbox: c,
|
|
107
|
-
name: u,
|
|
108
|
-
checked: r,
|
|
109
|
-
defaultChecked: e,
|
|
110
|
-
required: p,
|
|
111
|
-
disabled: f,
|
|
112
|
-
value: i,
|
|
113
|
-
onCheckedChange: m,
|
|
114
|
-
form: C,
|
|
115
|
-
...d
|
|
116
|
-
} = t;
|
|
117
|
-
return /* @__PURE__ */ b(
|
|
118
|
-
J,
|
|
119
|
-
{
|
|
120
|
-
__scopeCheckbox: c,
|
|
121
|
-
checked: r,
|
|
122
|
-
defaultChecked: e,
|
|
123
|
-
disabled: f,
|
|
124
|
-
required: p,
|
|
125
|
-
onCheckedChange: m,
|
|
126
|
-
name: u,
|
|
127
|
-
form: C,
|
|
128
|
-
value: i,
|
|
129
|
-
internal_do_not_use_render: ({ isFormControl: l }) => /* @__PURE__ */ G(K, { children: [
|
|
130
|
-
/* @__PURE__ */ b(
|
|
131
|
-
w,
|
|
132
|
-
{
|
|
133
|
-
...d,
|
|
134
|
-
ref: a,
|
|
135
|
-
__scopeCheckbox: c
|
|
136
|
-
}
|
|
137
|
-
),
|
|
138
|
-
l && /* @__PURE__ */ b(
|
|
139
|
-
q,
|
|
140
|
-
{
|
|
141
|
-
__scopeCheckbox: c
|
|
142
|
-
}
|
|
143
|
-
)
|
|
144
|
-
] })
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
);
|
|
149
|
-
Q.displayName = g;
|
|
150
|
-
var T = "CheckboxIndicator", V = s.forwardRef(
|
|
151
|
-
(t, a) => {
|
|
152
|
-
const { __scopeCheckbox: c, forceMount: u, ...r } = t, e = E(T, c);
|
|
153
|
-
return /* @__PURE__ */ b(
|
|
154
|
-
z,
|
|
155
|
-
{
|
|
156
|
-
present: u || h(e.checked) || e.checked === !0,
|
|
157
|
-
children: /* @__PURE__ */ b(
|
|
158
|
-
P.span,
|
|
159
|
-
{
|
|
160
|
-
"data-state": A(e.checked),
|
|
161
|
-
"data-disabled": e.disabled ? "" : void 0,
|
|
162
|
-
...r,
|
|
163
|
-
ref: a,
|
|
164
|
-
style: { pointerEvents: "none", ...t.style }
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
}
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
);
|
|
171
|
-
V.displayName = T;
|
|
172
|
-
var M = "CheckboxBubbleInput", q = s.forwardRef(
|
|
173
|
-
({ __scopeCheckbox: t, ...a }, c) => {
|
|
174
|
-
const {
|
|
175
|
-
control: u,
|
|
176
|
-
hasConsumerStoppedPropagationRef: r,
|
|
177
|
-
checked: e,
|
|
178
|
-
defaultChecked: p,
|
|
179
|
-
required: f,
|
|
180
|
-
disabled: i,
|
|
181
|
-
name: m,
|
|
182
|
-
value: C,
|
|
183
|
-
form: d,
|
|
184
|
-
bubbleInput: l,
|
|
185
|
-
setBubbleInput: v
|
|
186
|
-
} = E(M, t), k = B(c, v), x = j(e), _ = H(u);
|
|
187
|
-
s.useEffect(() => {
|
|
188
|
-
const n = l;
|
|
189
|
-
if (!n) return;
|
|
190
|
-
const I = window.HTMLInputElement.prototype, y = Object.getOwnPropertyDescriptor(
|
|
191
|
-
I,
|
|
192
|
-
"checked"
|
|
193
|
-
).set, D = !r.current;
|
|
194
|
-
if (x !== e && y) {
|
|
195
|
-
const F = new Event("click", { bubbles: D });
|
|
196
|
-
n.indeterminate = h(e), y.call(n, h(e) ? !1 : e), n.dispatchEvent(F);
|
|
197
|
-
}
|
|
198
|
-
}, [l, x, e, r]);
|
|
199
|
-
const o = s.useRef(h(e) ? !1 : e);
|
|
200
|
-
return /* @__PURE__ */ b(
|
|
201
|
-
P.input,
|
|
202
|
-
{
|
|
203
|
-
type: "checkbox",
|
|
204
|
-
"aria-hidden": !0,
|
|
205
|
-
defaultChecked: p ?? o.current,
|
|
206
|
-
required: f,
|
|
207
|
-
disabled: i,
|
|
208
|
-
name: m,
|
|
209
|
-
value: C,
|
|
210
|
-
form: d,
|
|
211
|
-
...a,
|
|
212
|
-
tabIndex: -1,
|
|
213
|
-
ref: k,
|
|
214
|
-
style: {
|
|
215
|
-
...a.style,
|
|
216
|
-
..._,
|
|
217
|
-
position: "absolute",
|
|
218
|
-
pointerEvents: "none",
|
|
219
|
-
opacity: 0,
|
|
220
|
-
margin: 0,
|
|
221
|
-
// We transform because the input is absolutely positioned but we have
|
|
222
|
-
// rendered it **after** the button. This pulls it back to sit on top
|
|
223
|
-
// of the button.
|
|
224
|
-
transform: "translateX(-100%)"
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
);
|
|
228
|
-
}
|
|
229
|
-
);
|
|
230
|
-
q.displayName = M;
|
|
231
|
-
function W(t) {
|
|
232
|
-
return typeof t == "function";
|
|
233
|
-
}
|
|
234
|
-
function h(t) {
|
|
235
|
-
return t === "indeterminate";
|
|
236
|
-
}
|
|
237
|
-
function A(t) {
|
|
238
|
-
return h(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
239
|
-
}
|
|
1
|
+
import t from "./index121.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const h = t("ChevronRight", [
|
|
9
|
+
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
10
|
+
]);
|
|
240
11
|
export {
|
|
241
|
-
|
|
242
|
-
V as CheckboxIndicator,
|
|
243
|
-
V as Indicator,
|
|
244
|
-
Q as Root,
|
|
245
|
-
q as unstable_BubbleInput,
|
|
246
|
-
q as unstable_CheckboxBubbleInput,
|
|
247
|
-
J as unstable_CheckboxProvider,
|
|
248
|
-
w as unstable_CheckboxTrigger,
|
|
249
|
-
J as unstable_Provider,
|
|
250
|
-
w as unstable_Trigger
|
|
12
|
+
h as default
|
|
251
13
|
};
|