docthub-core-components 2.99.2 → 3.1.0
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/components/overrides/ui/auto-complete.js +466 -0
- package/dist/components/overrides/ui/autocomplete-checkbox.js +480 -0
- package/dist/components/overrides/ui/chips/doct-chip.js +157 -0
- package/dist/components/overrides/ui/circular-progress.js +32 -0
- package/dist/components/overrides/ui/composed/address-form-section.js +67 -0
- package/dist/components/overrides/ui/composed/contact-form-section.js +56 -0
- package/dist/components/overrides/ui/composed/search-filter-section.js +132 -0
- package/dist/components/overrides/ui/composed/user-registration-section.js +77 -0
- package/dist/components/overrides/ui/currencyInput/currency-input.js +69 -0
- package/dist/components/overrides/ui/doct-animation-loader.js +13 -0
- package/dist/components/overrides/ui/expandable-card.js +115 -0
- package/dist/components/overrides/ui/footer/doct-footer.js +35 -0
- package/dist/components/overrides/ui/footer/footer-desktop.js +92 -0
- package/dist/components/overrides/ui/footer/footer-mobile.js +123 -0
- package/dist/components/overrides/ui/footer/footer-routes.js +87 -0
- package/dist/components/overrides/ui/footer/footer-shared.js +137 -0
- package/dist/components/overrides/ui/footer/presets.js +269 -0
- package/dist/components/overrides/ui/inputs/labeled-input.js +92 -0
- package/dist/components/overrides/ui/inputs/otp-input.js +101 -0
- package/dist/components/overrides/ui/inputs/password-input.js +77 -0
- package/dist/components/overrides/ui/inputs/phone-input.js +336 -0
- package/dist/components/overrides/ui/navigation-menu/doct-navigation-menu.js +22 -0
- package/dist/components/overrides/ui/navigation-menu/individual-nav-routes.js +46 -0
- package/dist/components/overrides/ui/navigation-menu/individual-navigation-menu-desktop.js +109 -0
- package/dist/components/overrides/ui/navigation-menu/individual-navigation-menu-mobile.js +231 -0
- package/dist/components/overrides/ui/navigation-menu/individual-navigation-menu.js +44 -0
- package/dist/components/overrides/ui/navigation-menu/nav-env.js +64 -0
- package/dist/components/overrides/ui/navigation-menu/navigation-menu-adapter.js +55 -0
- package/dist/components/overrides/ui/navigation-menu/navigation-menu-internal.js +36 -0
- package/dist/components/overrides/ui/navigation-menu/organization-nav-routes.js +34 -0
- package/dist/components/overrides/ui/navigation-menu/organization-navigation-menu-desktop.js +109 -0
- package/dist/components/overrides/ui/navigation-menu/organization-navigation-menu-mobile.js +231 -0
- package/dist/components/overrides/ui/navigation-menu/organization-navigation-menu.js +44 -0
- package/dist/components/overrides/ui/navigation-menu/presets.js +238 -0
- package/dist/components/overrides/ui/navigation-menu/types.js +6 -0
- package/dist/components/overrides/ui/pickers/date-picker-field.js +361 -0
- package/dist/components/overrides/ui/pickers/date-range-picker-field.js +288 -0
- package/dist/components/overrides/ui/pickers/day-picker-bounds.js +38 -0
- package/dist/components/overrides/ui/pickers/select-field.js +158 -0
- package/dist/components/overrides/ui/search/auto-complete.js +64 -0
- package/dist/components/overrides/ui/search/search-input.js +65 -0
- package/dist/components/overrides/ui/showcase/component-section.js +45 -0
- package/dist/components/ui/alert.js +94 -0
- package/dist/components/ui/avatar.js +69 -0
- package/dist/components/ui/badge.js +37 -0
- package/dist/components/ui/breadcrumb.js +117 -0
- package/dist/components/ui/button.js +223 -0
- package/dist/components/ui/calendar.js +100 -0
- package/dist/components/ui/checkbox.js +57 -0
- package/dist/components/ui/collapsible.js +25 -0
- package/dist/components/ui/command.js +132 -0
- package/dist/components/ui/dialog.js +230 -0
- package/dist/components/ui/drawer.js +119 -0
- package/dist/components/ui/dropdown-menu.js +216 -0
- package/dist/components/ui/input.js +48 -0
- package/dist/components/ui/label.js +22 -0
- package/dist/components/ui/popover.js +181 -0
- package/dist/components/ui/progress.js +91 -0
- package/dist/components/ui/radio-group.js +49 -0
- package/dist/components/ui/select.js +169 -0
- package/dist/components/ui/skeleton.js +91 -0
- package/dist/components/ui/spinner.js +32 -0
- package/dist/components/ui/tabs.js +68 -0
- package/dist/components/ui/textarea.js +73 -0
- package/dist/components/ui/timeline.js +177 -0
- package/dist/components/ui/toast.js +82 -0
- package/dist/components/ui/tooltip.js +91 -0
- package/dist/components/ui/typography.js +213 -0
- package/dist/hooks/use-exclusive-dropdown.js +53 -0
- package/dist/hooks/use-mobile.js +19 -0
- package/dist/hooks/useAutocompleteCheckbox.js +204 -0
- package/dist/index.esm.js +7173 -7126
- package/dist/index.js +187 -0
- package/dist/lib/dropdown-manager.js +17 -0
- package/dist/lib/get-floating-dropdown-position.js +32 -0
- package/dist/lib/get-scroll-parents.js +20 -0
- package/dist/lib/slot.js +40 -0
- package/dist/lib/utils.js +9 -0
- package/dist/src/components/ui/alert.d.ts +1 -1
- package/dist/src/components/ui/button.d.ts +1 -1
- package/dist/src/components/ui/command.d.ts +3 -3
- package/dist/src/components/ui/timeline.d.ts +1 -1
- package/dist/src/index.d.ts +15 -15
- package/dist/src/lib/get-floating-dropdown-position.d.ts +9 -1
- package/dist/src/lib/get-scroll-parents.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/util/getInputClasses.js +19 -0
- package/package.json +131 -132
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as b, jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { c as g } from "react-compiler-runtime";
|
|
4
|
+
import { Dialog as f } from "@base-ui/react/dialog";
|
|
5
|
+
import { X as H } from "lucide-react";
|
|
6
|
+
import * as u from "react";
|
|
7
|
+
import { cn as p } from "../../lib/utils.js";
|
|
8
|
+
const I = (i) => {
|
|
9
|
+
const l = g(10);
|
|
10
|
+
let e, o, t;
|
|
11
|
+
l[0] !== i ? ({
|
|
12
|
+
onOpenChange: e,
|
|
13
|
+
modal: t,
|
|
14
|
+
...o
|
|
15
|
+
} = i, l[0] = i, l[1] = e, l[2] = o, l[3] = t) : (e = l[1], o = l[2], t = l[3]);
|
|
16
|
+
const s = t === void 0 ? !0 : t;
|
|
17
|
+
let a;
|
|
18
|
+
l[4] !== e ? (a = e ? (n) => e(n) : void 0, l[4] = e, l[5] = a) : a = l[5];
|
|
19
|
+
let r;
|
|
20
|
+
return l[6] !== s || l[7] !== o || l[8] !== a ? (r = /* @__PURE__ */ m(f.Root, { onOpenChange: a, modal: s, ...o }), l[6] = s, l[7] = o, l[8] = a, l[9] = r) : r = l[9], r;
|
|
21
|
+
};
|
|
22
|
+
I.displayName = "Dialog";
|
|
23
|
+
const X = u.forwardRef((i, l) => {
|
|
24
|
+
const e = g(12);
|
|
25
|
+
let o, t, s;
|
|
26
|
+
if (e[0] !== i ? ({
|
|
27
|
+
asChild: o,
|
|
28
|
+
children: t,
|
|
29
|
+
...s
|
|
30
|
+
} = i, e[0] = i, e[1] = o, e[2] = t, e[3] = s) : (o = e[1], t = e[2], s = e[3]), o && u.isValidElement(t)) {
|
|
31
|
+
const n = l, c = t;
|
|
32
|
+
let d;
|
|
33
|
+
return e[4] !== s || e[5] !== n || e[6] !== c ? (d = /* @__PURE__ */ m(f.Trigger, { ref: n, render: c, ...s }), e[4] = s, e[5] = n, e[6] = c, e[7] = d) : d = e[7], d;
|
|
34
|
+
}
|
|
35
|
+
const a = l;
|
|
36
|
+
let r;
|
|
37
|
+
return e[8] !== t || e[9] !== s || e[10] !== a ? (r = /* @__PURE__ */ m(f.Trigger, { ref: a, ...s, children: t }), e[8] = t, e[9] = s, e[10] = a, e[11] = r) : r = e[11], r;
|
|
38
|
+
});
|
|
39
|
+
X.displayName = "DialogTrigger";
|
|
40
|
+
const q = f.Portal, A = u.forwardRef((i, l) => {
|
|
41
|
+
const e = g(12);
|
|
42
|
+
let o, t, s;
|
|
43
|
+
if (e[0] !== i ? ({
|
|
44
|
+
asChild: o,
|
|
45
|
+
children: t,
|
|
46
|
+
...s
|
|
47
|
+
} = i, e[0] = i, e[1] = o, e[2] = t, e[3] = s) : (o = e[1], t = e[2], s = e[3]), o && u.isValidElement(t)) {
|
|
48
|
+
const n = l, c = t;
|
|
49
|
+
let d;
|
|
50
|
+
return e[4] !== s || e[5] !== n || e[6] !== c ? (d = /* @__PURE__ */ m(f.Close, { ref: n, render: c, ...s }), e[4] = s, e[5] = n, e[6] = c, e[7] = d) : d = e[7], d;
|
|
51
|
+
}
|
|
52
|
+
const a = l;
|
|
53
|
+
let r;
|
|
54
|
+
return e[8] !== t || e[9] !== s || e[10] !== a ? (r = /* @__PURE__ */ m(f.Close, { ref: a, ...s, children: t }), e[8] = t, e[9] = s, e[10] = a, e[11] = r) : r = e[11], r;
|
|
55
|
+
});
|
|
56
|
+
A.displayName = "DialogClose";
|
|
57
|
+
const F = u.forwardRef((i, l) => {
|
|
58
|
+
const e = g(9);
|
|
59
|
+
let o, t;
|
|
60
|
+
e[0] !== i ? ({
|
|
61
|
+
className: o,
|
|
62
|
+
...t
|
|
63
|
+
} = i, e[0] = i, e[1] = o, e[2] = t) : (o = e[1], t = e[2]);
|
|
64
|
+
let s;
|
|
65
|
+
e[3] !== o ? (s = p("fixed inset-0 z-50 bg-black/80 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0", o), e[3] = o, e[4] = s) : s = e[4];
|
|
66
|
+
let a;
|
|
67
|
+
return e[5] !== t || e[6] !== l || e[7] !== s ? (a = /* @__PURE__ */ m(f.Backdrop, { ref: l, className: s, ...t }), e[5] = t, e[6] = l, e[7] = s, e[8] = a) : a = e[8], a;
|
|
68
|
+
});
|
|
69
|
+
F.displayName = "DialogOverlay";
|
|
70
|
+
const G = {
|
|
71
|
+
xs: "max-w-xs",
|
|
72
|
+
sm: "max-w-sm",
|
|
73
|
+
md: "max-w-md",
|
|
74
|
+
lg: "max-w-lg",
|
|
75
|
+
xl: "max-w-xl",
|
|
76
|
+
"2xl": "max-w-2xl",
|
|
77
|
+
full: "max-w-[calc(100vw-2rem)]"
|
|
78
|
+
}, P = p(
|
|
79
|
+
"[scrollbar-width:thin]",
|
|
80
|
+
// "[scrollbar-color:hsl(var(--muted-foreground)/0.35)_transparent]",
|
|
81
|
+
"[&::-webkit-scrollbar]:w-1",
|
|
82
|
+
// "[&::-webkit-scrollbar-track]:bg-transparent",
|
|
83
|
+
"[&::-webkit-scrollbar-thumb]:rounded-full",
|
|
84
|
+
"[&::-webkit-scrollbar-thumb]:bg-border/55",
|
|
85
|
+
"[&::-webkit-scrollbar-thumb:hover]:bg-border/85"
|
|
86
|
+
), J = u.forwardRef((i, l) => {
|
|
87
|
+
const e = g(31);
|
|
88
|
+
let o, t, s, a, r, n, c, d;
|
|
89
|
+
e[0] !== i ? ({
|
|
90
|
+
className: t,
|
|
91
|
+
children: o,
|
|
92
|
+
closeOnOutsideClick: a,
|
|
93
|
+
size: r,
|
|
94
|
+
showCloseButton: n,
|
|
95
|
+
closeOnEscape: c,
|
|
96
|
+
layout: d,
|
|
97
|
+
...s
|
|
98
|
+
} = i, e[0] = i, e[1] = o, e[2] = t, e[3] = s, e[4] = a, e[5] = r, e[6] = n, e[7] = c, e[8] = d) : (o = e[1], t = e[2], s = e[3], a = e[4], r = e[5], n = e[6], c = e[7], d = e[8]);
|
|
99
|
+
const V = r === void 0 ? "lg" : r, R = n === void 0 ? !0 : n, x = d === void 0 ? "default" : d, E = u.useRef(null);
|
|
100
|
+
let w;
|
|
101
|
+
e[9] !== l ? (w = (j) => {
|
|
102
|
+
E.current = j, typeof l == "function" ? l(j) : l && (l.current = j);
|
|
103
|
+
}, e[9] = l, e[10] = w) : w = e[10];
|
|
104
|
+
const z = w, S = x === "outsideScroll" ? "relative left-auto top-auto z-50 mx-auto w-full translate-x-0 translate-y-0 border bg-background shadow-lg duration-200 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 sm:rounded-lg pointer-events-auto" : "fixed left-[50%] top-[50%] z-50 w-full translate-x-[-50%] translate-y-[-50%] border bg-background shadow-lg duration-200 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[closed]:slide-out-to-left-1/2 data-[closed]:slide-out-to-top-[48%] data-[open]:slide-in-from-left-1/2 data-[open]:slide-in-from-top-[48%] sm:rounded-lg", $ = x === "insideScroll" ? "flex max-h-[min(90dvh,36rem)] flex-col overflow-hidden gap-0 p-0" : "grid gap-4 p-6", T = G[V];
|
|
105
|
+
let N;
|
|
106
|
+
e[11] !== t || e[12] !== S || e[13] !== $ || e[14] !== T ? (N = p(S, $, T, t), e[11] = t, e[12] = S, e[13] = $, e[14] = T, e[15] = N) : N = e[15];
|
|
107
|
+
const B = N, O = x === "insideScroll" ? "right-6 top-6" : "right-4 top-4";
|
|
108
|
+
let v;
|
|
109
|
+
e[16] !== O ? (v = p("absolute rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[open]:bg-accent data-[open]:text-muted-foreground", O), e[16] = O, e[17] = v) : v = e[17];
|
|
110
|
+
const _ = v;
|
|
111
|
+
let h;
|
|
112
|
+
e[18] !== _ || e[19] !== R ? (h = R && /* @__PURE__ */ b(f.Close, { className: _, children: [
|
|
113
|
+
/* @__PURE__ */ m(H, { className: "h-4 w-4" }),
|
|
114
|
+
/* @__PURE__ */ m("span", { className: "sr-only", children: "Close" })
|
|
115
|
+
] }), e[18] = _, e[19] = R, e[20] = h) : h = e[20];
|
|
116
|
+
let y;
|
|
117
|
+
e[21] !== o || e[22] !== B || e[23] !== s || e[24] !== z || e[25] !== h ? (y = /* @__PURE__ */ b(f.Popup, { ref: z, className: B, tabIndex: -1, initialFocus: E, ...s, children: [
|
|
118
|
+
o,
|
|
119
|
+
h
|
|
120
|
+
] }), e[21] = o, e[22] = B, e[23] = s, e[24] = z, e[25] = h, e[26] = y) : y = e[26];
|
|
121
|
+
const D = y;
|
|
122
|
+
let C;
|
|
123
|
+
e[27] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ m(F, {}), e[27] = C) : C = e[27];
|
|
124
|
+
let k;
|
|
125
|
+
return e[28] !== x || e[29] !== D ? (k = /* @__PURE__ */ b(q, { children: [
|
|
126
|
+
C,
|
|
127
|
+
x === "outsideScroll" ? /* @__PURE__ */ m(f.Viewport, { className: p("fixed inset-0 z-50 overflow-y-auto overscroll-contain", P), children: /* @__PURE__ */ m("div", { className: "pointer-events-none flex min-h-full items-center justify-center p-4 sm:p-6", children: D }) }) : D
|
|
128
|
+
] }), e[28] = x, e[29] = D, e[30] = k) : k = e[30], k;
|
|
129
|
+
});
|
|
130
|
+
J.displayName = "DialogContent";
|
|
131
|
+
const K = (i) => {
|
|
132
|
+
const l = g(8);
|
|
133
|
+
let e, o;
|
|
134
|
+
l[0] !== i ? ({
|
|
135
|
+
className: e,
|
|
136
|
+
...o
|
|
137
|
+
} = i, l[0] = i, l[1] = e, l[2] = o) : (e = l[1], o = l[2]);
|
|
138
|
+
let t;
|
|
139
|
+
l[3] !== e ? (t = p("flex flex-col space-y-1.5 text-center sm:text-left", e), l[3] = e, l[4] = t) : t = l[4];
|
|
140
|
+
let s;
|
|
141
|
+
return l[5] !== o || l[6] !== t ? (s = /* @__PURE__ */ m("div", { className: t, ...o }), l[5] = o, l[6] = t, l[7] = s) : s = l[7], s;
|
|
142
|
+
};
|
|
143
|
+
K.displayName = "DialogHeader";
|
|
144
|
+
const L = u.forwardRef((i, l) => {
|
|
145
|
+
const e = g(17);
|
|
146
|
+
let o, t, s;
|
|
147
|
+
if (e[0] !== i ? ({
|
|
148
|
+
className: o,
|
|
149
|
+
withTopBorder: s,
|
|
150
|
+
...t
|
|
151
|
+
} = i, e[0] = i, e[1] = o, e[2] = t, e[3] = s) : (o = e[1], t = e[2], s = e[3]), s) {
|
|
152
|
+
let n;
|
|
153
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ m("div", { className: "mx-6 shrink-0 border-t border-border", "aria-hidden": "true" }), e[4] = n) : n = e[4];
|
|
154
|
+
let c;
|
|
155
|
+
e[5] !== o ? (c = p("flex flex-col-reverse items-stretch gap-2 px-6 pt-4 pb-5 sm:flex-row sm:items-center sm:justify-end", o), e[5] = o, e[6] = c) : c = e[6];
|
|
156
|
+
let d;
|
|
157
|
+
return e[7] !== t || e[8] !== l || e[9] !== c ? (d = /* @__PURE__ */ b("div", { className: "shrink-0", children: [
|
|
158
|
+
n,
|
|
159
|
+
/* @__PURE__ */ m("div", { ref: l, className: c, ...t })
|
|
160
|
+
] }), e[7] = t, e[8] = l, e[9] = c, e[10] = d) : d = e[10], d;
|
|
161
|
+
}
|
|
162
|
+
let a;
|
|
163
|
+
e[11] !== o ? (a = p("flex flex-col-reverse items-stretch gap-2 sm:flex-row sm:items-center sm:justify-end", o), e[11] = o, e[12] = a) : a = e[12];
|
|
164
|
+
let r;
|
|
165
|
+
return e[13] !== t || e[14] !== l || e[15] !== a ? (r = /* @__PURE__ */ m("div", { ref: l, className: a, ...t }), e[13] = t, e[14] = l, e[15] = a, e[16] = r) : r = e[16], r;
|
|
166
|
+
});
|
|
167
|
+
L.displayName = "DialogFooter";
|
|
168
|
+
const M = u.forwardRef((i, l) => {
|
|
169
|
+
const e = g(17);
|
|
170
|
+
let o, t, s;
|
|
171
|
+
if (e[0] !== i ? ({
|
|
172
|
+
className: o,
|
|
173
|
+
withTopBorder: s,
|
|
174
|
+
...t
|
|
175
|
+
} = i, e[0] = i, e[1] = o, e[2] = t, e[3] = s) : (o = e[1], t = e[2], s = e[3]), s) {
|
|
176
|
+
let n;
|
|
177
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ m("div", { className: "mx-6 shrink-0 border-t border-border", "aria-hidden": "true" }), e[4] = n) : n = e[4];
|
|
178
|
+
let c;
|
|
179
|
+
e[5] !== o ? (c = p("min-h-0 flex-1 overflow-y-auto overscroll-contain px-6 pt-5 pb-5", P, o), e[5] = o, e[6] = c) : c = e[6];
|
|
180
|
+
let d;
|
|
181
|
+
return e[7] !== t || e[8] !== l || e[9] !== c ? (d = /* @__PURE__ */ b("div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
182
|
+
n,
|
|
183
|
+
/* @__PURE__ */ m("div", { ref: l, className: c, ...t })
|
|
184
|
+
] }), e[7] = t, e[8] = l, e[9] = c, e[10] = d) : d = e[10], d;
|
|
185
|
+
}
|
|
186
|
+
let a;
|
|
187
|
+
e[11] !== o ? (a = p("min-h-0 flex-1 overflow-y-auto overscroll-contain px-6 py-4", P, o), e[11] = o, e[12] = a) : a = e[12];
|
|
188
|
+
let r;
|
|
189
|
+
return e[13] !== t || e[14] !== l || e[15] !== a ? (r = /* @__PURE__ */ m("div", { ref: l, className: a, ...t }), e[13] = t, e[14] = l, e[15] = a, e[16] = r) : r = e[16], r;
|
|
190
|
+
});
|
|
191
|
+
M.displayName = "DialogScrollableBody";
|
|
192
|
+
const Q = u.forwardRef((i, l) => {
|
|
193
|
+
const e = g(9);
|
|
194
|
+
let o, t;
|
|
195
|
+
e[0] !== i ? ({
|
|
196
|
+
className: o,
|
|
197
|
+
...t
|
|
198
|
+
} = i, e[0] = i, e[1] = o, e[2] = t) : (o = e[1], t = e[2]);
|
|
199
|
+
let s;
|
|
200
|
+
e[3] !== o ? (s = p("text-lg font-semibold leading-none tracking-tight", o), e[3] = o, e[4] = s) : s = e[4];
|
|
201
|
+
let a;
|
|
202
|
+
return e[5] !== t || e[6] !== l || e[7] !== s ? (a = /* @__PURE__ */ m(f.Title, { ref: l, className: s, ...t }), e[5] = t, e[6] = l, e[7] = s, e[8] = a) : a = e[8], a;
|
|
203
|
+
});
|
|
204
|
+
Q.displayName = "DialogTitle";
|
|
205
|
+
const U = u.forwardRef((i, l) => {
|
|
206
|
+
const e = g(9);
|
|
207
|
+
let o, t;
|
|
208
|
+
e[0] !== i ? ({
|
|
209
|
+
className: o,
|
|
210
|
+
...t
|
|
211
|
+
} = i, e[0] = i, e[1] = o, e[2] = t) : (o = e[1], t = e[2]);
|
|
212
|
+
let s;
|
|
213
|
+
e[3] !== o ? (s = p("text-sm text-muted-foreground", o), e[3] = o, e[4] = s) : s = e[4];
|
|
214
|
+
let a;
|
|
215
|
+
return e[5] !== t || e[6] !== l || e[7] !== s ? (a = /* @__PURE__ */ m(f.Description, { ref: l, className: s, ...t }), e[5] = t, e[6] = l, e[7] = s, e[8] = a) : a = e[8], a;
|
|
216
|
+
});
|
|
217
|
+
U.displayName = "DialogDescription";
|
|
218
|
+
export {
|
|
219
|
+
I as Dialog,
|
|
220
|
+
A as DialogClose,
|
|
221
|
+
J as DialogContent,
|
|
222
|
+
U as DialogDescription,
|
|
223
|
+
L as DialogFooter,
|
|
224
|
+
K as DialogHeader,
|
|
225
|
+
F as DialogOverlay,
|
|
226
|
+
q as DialogPortal,
|
|
227
|
+
M as DialogScrollableBody,
|
|
228
|
+
Q as DialogTitle,
|
|
229
|
+
X as DialogTrigger
|
|
230
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as c, jsxs as N } from "react/jsx-runtime";
|
|
3
|
+
import { c as n } from "react-compiler-runtime";
|
|
4
|
+
import * as u from "react";
|
|
5
|
+
import { Drawer as i } from "vaul";
|
|
6
|
+
import { cn as d } from "../../lib/utils.js";
|
|
7
|
+
const D = (a) => {
|
|
8
|
+
const t = n(6);
|
|
9
|
+
let e, l;
|
|
10
|
+
t[0] !== a ? ({
|
|
11
|
+
shouldScaleBackground: l,
|
|
12
|
+
...e
|
|
13
|
+
} = a, t[0] = a, t[1] = e, t[2] = l) : (e = t[1], l = t[2]);
|
|
14
|
+
const s = l === void 0 ? !0 : l;
|
|
15
|
+
let r;
|
|
16
|
+
return t[3] !== e || t[4] !== s ? (r = /* @__PURE__ */ c(i.Root, { shouldScaleBackground: s, ...e }), t[3] = e, t[4] = s, t[5] = r) : r = t[5], r;
|
|
17
|
+
};
|
|
18
|
+
D.displayName = "Drawer";
|
|
19
|
+
const T = i.Trigger, g = i.Portal, S = i.Close, w = u.forwardRef((a, t) => {
|
|
20
|
+
const e = n(9);
|
|
21
|
+
let l, s;
|
|
22
|
+
e[0] !== a ? ({
|
|
23
|
+
className: l,
|
|
24
|
+
...s
|
|
25
|
+
} = a, e[0] = a, e[1] = l, e[2] = s) : (l = e[1], s = e[2]);
|
|
26
|
+
let r;
|
|
27
|
+
e[3] !== l ? (r = d("fixed inset-0 z-50 bg-black/80", l), e[3] = l, e[4] = r) : r = e[4];
|
|
28
|
+
let o;
|
|
29
|
+
return e[5] !== s || e[6] !== t || e[7] !== r ? (o = /* @__PURE__ */ c(i.Overlay, { ref: t, className: r, ...s }), e[5] = s, e[6] = t, e[7] = r, e[8] = o) : o = e[8], o;
|
|
30
|
+
});
|
|
31
|
+
w.displayName = i.Overlay.displayName;
|
|
32
|
+
const x = u.forwardRef((a, t) => {
|
|
33
|
+
const e = n(13);
|
|
34
|
+
let l, s, r;
|
|
35
|
+
e[0] !== a ? ({
|
|
36
|
+
className: s,
|
|
37
|
+
children: l,
|
|
38
|
+
...r
|
|
39
|
+
} = a, e[0] = a, e[1] = l, e[2] = s, e[3] = r) : (l = e[1], s = e[2], r = e[3]);
|
|
40
|
+
let o;
|
|
41
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ c(w, {}), e[4] = o) : o = e[4];
|
|
42
|
+
let m;
|
|
43
|
+
e[5] !== s ? (m = d("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background", s), e[5] = s, e[6] = m) : m = e[6];
|
|
44
|
+
let f;
|
|
45
|
+
e[7] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ c("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }), e[7] = f) : f = e[7];
|
|
46
|
+
let p;
|
|
47
|
+
return e[8] !== l || e[9] !== r || e[10] !== t || e[11] !== m ? (p = /* @__PURE__ */ N(g, { children: [
|
|
48
|
+
o,
|
|
49
|
+
/* @__PURE__ */ N(i.Content, { ref: t, className: m, ...r, children: [
|
|
50
|
+
f,
|
|
51
|
+
l
|
|
52
|
+
] })
|
|
53
|
+
] }), e[8] = l, e[9] = r, e[10] = t, e[11] = m, e[12] = p) : p = e[12], p;
|
|
54
|
+
});
|
|
55
|
+
x.displayName = "DrawerContent";
|
|
56
|
+
const y = (a) => {
|
|
57
|
+
const t = n(8);
|
|
58
|
+
let e, l;
|
|
59
|
+
t[0] !== a ? ({
|
|
60
|
+
className: e,
|
|
61
|
+
...l
|
|
62
|
+
} = a, t[0] = a, t[1] = e, t[2] = l) : (e = t[1], l = t[2]);
|
|
63
|
+
let s;
|
|
64
|
+
t[3] !== e ? (s = d("grid gap-1.5 p-4 text-center sm:text-left", e), t[3] = e, t[4] = s) : s = t[4];
|
|
65
|
+
let r;
|
|
66
|
+
return t[5] !== l || t[6] !== s ? (r = /* @__PURE__ */ c("div", { className: s, ...l }), t[5] = l, t[6] = s, t[7] = r) : r = t[7], r;
|
|
67
|
+
};
|
|
68
|
+
y.displayName = "DrawerHeader";
|
|
69
|
+
const b = (a) => {
|
|
70
|
+
const t = n(8);
|
|
71
|
+
let e, l;
|
|
72
|
+
t[0] !== a ? ({
|
|
73
|
+
className: e,
|
|
74
|
+
...l
|
|
75
|
+
} = a, t[0] = a, t[1] = e, t[2] = l) : (e = t[1], l = t[2]);
|
|
76
|
+
let s;
|
|
77
|
+
t[3] !== e ? (s = d("mt-auto flex flex-col gap-2 p-4", e), t[3] = e, t[4] = s) : s = t[4];
|
|
78
|
+
let r;
|
|
79
|
+
return t[5] !== l || t[6] !== s ? (r = /* @__PURE__ */ c("div", { className: s, ...l }), t[5] = l, t[6] = s, t[7] = r) : r = t[7], r;
|
|
80
|
+
};
|
|
81
|
+
b.displayName = "DrawerFooter";
|
|
82
|
+
const h = u.forwardRef((a, t) => {
|
|
83
|
+
const e = n(9);
|
|
84
|
+
let l, s;
|
|
85
|
+
e[0] !== a ? ({
|
|
86
|
+
className: l,
|
|
87
|
+
...s
|
|
88
|
+
} = a, e[0] = a, e[1] = l, e[2] = s) : (l = e[1], s = e[2]);
|
|
89
|
+
let r;
|
|
90
|
+
e[3] !== l ? (r = d("text-lg font-semibold leading-none tracking-tight", l), e[3] = l, e[4] = r) : r = e[4];
|
|
91
|
+
let o;
|
|
92
|
+
return e[5] !== s || e[6] !== t || e[7] !== r ? (o = /* @__PURE__ */ c(i.Title, { ref: t, className: r, ...s }), e[5] = s, e[6] = t, e[7] = r, e[8] = o) : o = e[8], o;
|
|
93
|
+
});
|
|
94
|
+
h.displayName = i.Title.displayName;
|
|
95
|
+
const $ = u.forwardRef((a, t) => {
|
|
96
|
+
const e = n(9);
|
|
97
|
+
let l, s;
|
|
98
|
+
e[0] !== a ? ({
|
|
99
|
+
className: l,
|
|
100
|
+
...s
|
|
101
|
+
} = a, e[0] = a, e[1] = l, e[2] = s) : (l = e[1], s = e[2]);
|
|
102
|
+
let r;
|
|
103
|
+
e[3] !== l ? (r = d("text-sm text-muted-foreground", l), e[3] = l, e[4] = r) : r = e[4];
|
|
104
|
+
let o;
|
|
105
|
+
return e[5] !== s || e[6] !== t || e[7] !== r ? (o = /* @__PURE__ */ c(i.Description, { ref: t, className: r, ...s }), e[5] = s, e[6] = t, e[7] = r, e[8] = o) : o = e[8], o;
|
|
106
|
+
});
|
|
107
|
+
$.displayName = i.Description.displayName;
|
|
108
|
+
export {
|
|
109
|
+
D as Drawer,
|
|
110
|
+
S as DrawerClose,
|
|
111
|
+
x as DrawerContent,
|
|
112
|
+
$ as DrawerDescription,
|
|
113
|
+
b as DrawerFooter,
|
|
114
|
+
y as DrawerHeader,
|
|
115
|
+
w as DrawerOverlay,
|
|
116
|
+
g as DrawerPortal,
|
|
117
|
+
h as DrawerTitle,
|
|
118
|
+
T as DrawerTrigger
|
|
119
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as m, jsxs as v } from "react/jsx-runtime";
|
|
3
|
+
import { c as b } from "react-compiler-runtime";
|
|
4
|
+
import { Menu as f } from "@base-ui/react/menu";
|
|
5
|
+
import { ChevronRight as k, Check as P, Circle as _ } from "lucide-react";
|
|
6
|
+
import * as h from "react";
|
|
7
|
+
import { cn as N } from "../../lib/utils.js";
|
|
8
|
+
const K = f.Root, $ = h.forwardRef((i, a) => {
|
|
9
|
+
const e = b(25);
|
|
10
|
+
let t, o, n, s, l, r;
|
|
11
|
+
if (e[0] !== i) {
|
|
12
|
+
const {
|
|
13
|
+
onClick: u,
|
|
14
|
+
onMouseDown: D,
|
|
15
|
+
onPointerDown: x,
|
|
16
|
+
asChild: C,
|
|
17
|
+
children: S,
|
|
18
|
+
...I
|
|
19
|
+
} = i;
|
|
20
|
+
n = D, s = x, t = C, o = S, l = I, r = (R) => {
|
|
21
|
+
R.stopPropagation(), u == null || u(R);
|
|
22
|
+
}, e[0] = i, e[1] = t, e[2] = o, e[3] = n, e[4] = s, e[5] = l, e[6] = r;
|
|
23
|
+
} else
|
|
24
|
+
t = e[1], o = e[2], n = e[3], s = e[4], l = e[5], r = e[6];
|
|
25
|
+
const d = r;
|
|
26
|
+
let c;
|
|
27
|
+
e[7] !== n ? (c = (u) => {
|
|
28
|
+
u.stopPropagation(), n == null || n(u);
|
|
29
|
+
}, e[7] = n, e[8] = c) : c = e[8];
|
|
30
|
+
const p = c;
|
|
31
|
+
let w;
|
|
32
|
+
e[9] !== s ? (w = (u) => {
|
|
33
|
+
u.stopPropagation(), s == null || s(u);
|
|
34
|
+
}, e[9] = s, e[10] = w) : w = e[10];
|
|
35
|
+
const g = w;
|
|
36
|
+
if (t && h.isValidElement(o)) {
|
|
37
|
+
const u = a, D = o;
|
|
38
|
+
let x;
|
|
39
|
+
return e[11] !== d || e[12] !== p || e[13] !== g || e[14] !== l || e[15] !== u || e[16] !== D ? (x = /* @__PURE__ */ m(f.Trigger, { ref: u, render: D, onClick: d, onMouseDown: p, onPointerDown: g, ...l }), e[11] = d, e[12] = p, e[13] = g, e[14] = l, e[15] = u, e[16] = D, e[17] = x) : x = e[17], x;
|
|
40
|
+
}
|
|
41
|
+
const y = a;
|
|
42
|
+
let M;
|
|
43
|
+
return e[18] !== o || e[19] !== d || e[20] !== p || e[21] !== g || e[22] !== l || e[23] !== y ? (M = /* @__PURE__ */ m(f.Trigger, { ref: y, onClick: d, onMouseDown: p, onPointerDown: g, ...l, children: o }), e[18] = o, e[19] = d, e[20] = p, e[21] = g, e[22] = l, e[23] = y, e[24] = M) : M = e[24], M;
|
|
44
|
+
});
|
|
45
|
+
$.displayName = "DropdownMenuTrigger";
|
|
46
|
+
const Q = f.Group, U = f.SubmenuRoot, W = f.RadioGroup, z = h.forwardRef((i, a) => {
|
|
47
|
+
const e = b(14);
|
|
48
|
+
let t, o, n, s;
|
|
49
|
+
e[0] !== i ? ({
|
|
50
|
+
className: o,
|
|
51
|
+
inset: n,
|
|
52
|
+
children: t,
|
|
53
|
+
...s
|
|
54
|
+
} = i, e[0] = i, e[1] = t, e[2] = o, e[3] = n, e[4] = s) : (t = e[1], o = e[2], n = e[3], s = e[4]);
|
|
55
|
+
const l = n && "pl-8";
|
|
56
|
+
let r;
|
|
57
|
+
e[5] !== o || e[6] !== l ? (r = N("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", l, o), e[5] = o, e[6] = l, e[7] = r) : r = e[7];
|
|
58
|
+
let d;
|
|
59
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ m(k, { className: "ml-auto" }), e[8] = d) : d = e[8];
|
|
60
|
+
let c;
|
|
61
|
+
return e[9] !== t || e[10] !== s || e[11] !== a || e[12] !== r ? (c = /* @__PURE__ */ v(f.SubmenuTrigger, { ref: a, className: r, ...s, children: [
|
|
62
|
+
t,
|
|
63
|
+
d
|
|
64
|
+
] }), e[9] = t, e[10] = s, e[11] = a, e[12] = r, e[13] = c) : c = e[13], c;
|
|
65
|
+
});
|
|
66
|
+
z.displayName = "DropdownMenuSubTrigger";
|
|
67
|
+
const T = h.forwardRef((i, a) => {
|
|
68
|
+
const e = b(19);
|
|
69
|
+
let t, o, n, s, l, r;
|
|
70
|
+
e[0] !== i ? ({
|
|
71
|
+
className: n,
|
|
72
|
+
sideOffset: r,
|
|
73
|
+
alignOffset: o,
|
|
74
|
+
side: l,
|
|
75
|
+
align: t,
|
|
76
|
+
...s
|
|
77
|
+
} = i, e[0] = i, e[1] = t, e[2] = o, e[3] = n, e[4] = s, e[5] = l, e[6] = r) : (t = e[1], o = e[2], n = e[3], s = e[4], l = e[5], r = e[6]);
|
|
78
|
+
let d;
|
|
79
|
+
e[7] !== n ? (d = N("min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", n), e[7] = n, e[8] = d) : d = e[8];
|
|
80
|
+
let c;
|
|
81
|
+
e[9] !== s || e[10] !== a || e[11] !== d ? (c = /* @__PURE__ */ m(f.Popup, { ref: a, className: d, ...s }), e[9] = s, e[10] = a, e[11] = d, e[12] = c) : c = e[12];
|
|
82
|
+
let p;
|
|
83
|
+
return e[13] !== t || e[14] !== o || e[15] !== l || e[16] !== r || e[17] !== c ? (p = /* @__PURE__ */ m(f.Positioner, { className: "z-[200]", sideOffset: r, alignOffset: o, side: l, align: t, children: c }), e[13] = t, e[14] = o, e[15] = l, e[16] = r, e[17] = c, e[18] = p) : p = e[18], p;
|
|
84
|
+
});
|
|
85
|
+
T.displayName = "DropdownMenuSubContent";
|
|
86
|
+
const O = h.forwardRef((i, a) => {
|
|
87
|
+
const e = b(19);
|
|
88
|
+
let t, o, n, s, l, r;
|
|
89
|
+
e[0] !== i ? ({
|
|
90
|
+
className: o,
|
|
91
|
+
sideOffset: l,
|
|
92
|
+
alignOffset: t,
|
|
93
|
+
align: r,
|
|
94
|
+
side: s,
|
|
95
|
+
...n
|
|
96
|
+
} = i, e[0] = i, e[1] = t, e[2] = o, e[3] = n, e[4] = s, e[5] = l, e[6] = r) : (t = e[1], o = e[2], n = e[3], s = e[4], l = e[5], r = e[6]);
|
|
97
|
+
const d = l === void 0 ? 4 : l, c = r === void 0 ? "end" : r;
|
|
98
|
+
let p;
|
|
99
|
+
e[7] !== o ? (p = N("min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", o), e[7] = o, e[8] = p) : p = e[8];
|
|
100
|
+
let w;
|
|
101
|
+
e[9] !== n || e[10] !== a || e[11] !== p ? (w = /* @__PURE__ */ m(f.Popup, { ref: a, className: p, ...n }), e[9] = n, e[10] = a, e[11] = p, e[12] = w) : w = e[12];
|
|
102
|
+
let g;
|
|
103
|
+
return e[13] !== c || e[14] !== t || e[15] !== s || e[16] !== d || e[17] !== w ? (g = /* @__PURE__ */ m(f.Portal, { children: /* @__PURE__ */ m(f.Positioner, { className: "z-[200]", sideOffset: d, alignOffset: t, align: c, side: s, children: w }) }), e[13] = c, e[14] = t, e[15] = s, e[16] = d, e[17] = w, e[18] = g) : g = e[18], g;
|
|
104
|
+
});
|
|
105
|
+
O.displayName = "DropdownMenuContent";
|
|
106
|
+
const j = h.forwardRef((i, a) => {
|
|
107
|
+
const e = b(11);
|
|
108
|
+
let t, o, n;
|
|
109
|
+
e[0] !== i ? ({
|
|
110
|
+
className: t,
|
|
111
|
+
inset: o,
|
|
112
|
+
...n
|
|
113
|
+
} = i, e[0] = i, e[1] = t, e[2] = o, e[3] = n) : (t = e[1], o = e[2], n = e[3]);
|
|
114
|
+
const s = o && "pl-8";
|
|
115
|
+
let l;
|
|
116
|
+
e[4] !== t || e[5] !== s ? (l = N("relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", s, t), e[4] = t, e[5] = s, e[6] = l) : l = e[6];
|
|
117
|
+
let r;
|
|
118
|
+
return e[7] !== n || e[8] !== a || e[9] !== l ? (r = /* @__PURE__ */ m(f.Item, { ref: a, className: l, ...n }), e[7] = n, e[8] = a, e[9] = l, e[10] = r) : r = e[10], r;
|
|
119
|
+
});
|
|
120
|
+
j.displayName = "DropdownMenuItem";
|
|
121
|
+
const G = h.forwardRef((i, a) => {
|
|
122
|
+
const e = b(14);
|
|
123
|
+
let t, o, n, s;
|
|
124
|
+
e[0] !== i ? ({
|
|
125
|
+
className: n,
|
|
126
|
+
children: o,
|
|
127
|
+
checked: t,
|
|
128
|
+
...s
|
|
129
|
+
} = i, e[0] = i, e[1] = t, e[2] = o, e[3] = n, e[4] = s) : (t = e[1], o = e[2], n = e[3], s = e[4]);
|
|
130
|
+
let l;
|
|
131
|
+
e[5] !== n ? (l = N("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", n), e[5] = n, e[6] = l) : l = e[6];
|
|
132
|
+
let r;
|
|
133
|
+
e[7] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ m("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ m(f.CheckboxItemIndicator, { children: /* @__PURE__ */ m(P, { className: "h-4 w-4" }) }) }), e[7] = r) : r = e[7];
|
|
134
|
+
let d;
|
|
135
|
+
return e[8] !== t || e[9] !== o || e[10] !== s || e[11] !== a || e[12] !== l ? (d = /* @__PURE__ */ v(f.CheckboxItem, { ref: a, className: l, checked: t, ...s, children: [
|
|
136
|
+
r,
|
|
137
|
+
o
|
|
138
|
+
] }), e[8] = t, e[9] = o, e[10] = s, e[11] = a, e[12] = l, e[13] = d) : d = e[13], d;
|
|
139
|
+
});
|
|
140
|
+
G.displayName = "DropdownMenuCheckboxItem";
|
|
141
|
+
const L = h.forwardRef((i, a) => {
|
|
142
|
+
const e = b(12);
|
|
143
|
+
let t, o, n;
|
|
144
|
+
e[0] !== i ? ({
|
|
145
|
+
className: o,
|
|
146
|
+
children: t,
|
|
147
|
+
...n
|
|
148
|
+
} = i, e[0] = i, e[1] = t, e[2] = o, e[3] = n) : (t = e[1], o = e[2], n = e[3]);
|
|
149
|
+
let s;
|
|
150
|
+
e[4] !== o ? (s = N("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", o), e[4] = o, e[5] = s) : s = e[5];
|
|
151
|
+
let l;
|
|
152
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ m("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ m(f.RadioItemIndicator, { children: /* @__PURE__ */ m(_, { className: "h-2 w-2 fill-current" }) }) }), e[6] = l) : l = e[6];
|
|
153
|
+
let r;
|
|
154
|
+
return e[7] !== t || e[8] !== n || e[9] !== a || e[10] !== s ? (r = /* @__PURE__ */ v(f.RadioItem, { ref: a, className: s, ...n, children: [
|
|
155
|
+
l,
|
|
156
|
+
t
|
|
157
|
+
] }), e[7] = t, e[8] = n, e[9] = a, e[10] = s, e[11] = r) : r = e[11], r;
|
|
158
|
+
});
|
|
159
|
+
L.displayName = "DropdownMenuRadioItem";
|
|
160
|
+
const E = h.forwardRef((i, a) => {
|
|
161
|
+
const e = b(11);
|
|
162
|
+
let t, o, n;
|
|
163
|
+
e[0] !== i ? ({
|
|
164
|
+
className: t,
|
|
165
|
+
inset: o,
|
|
166
|
+
...n
|
|
167
|
+
} = i, e[0] = i, e[1] = t, e[2] = o, e[3] = n) : (t = e[1], o = e[2], n = e[3]);
|
|
168
|
+
const s = o && "pl-8";
|
|
169
|
+
let l;
|
|
170
|
+
e[4] !== t || e[5] !== s ? (l = N("px-2 py-1.5 text-sm font-semibold", s, t), e[4] = t, e[5] = s, e[6] = l) : l = e[6];
|
|
171
|
+
let r;
|
|
172
|
+
return e[7] !== n || e[8] !== a || e[9] !== l ? (r = /* @__PURE__ */ m("div", { ref: a, className: l, ...n }), e[7] = n, e[8] = a, e[9] = l, e[10] = r) : r = e[10], r;
|
|
173
|
+
});
|
|
174
|
+
E.displayName = "DropdownMenuLabel";
|
|
175
|
+
const V = h.forwardRef((i, a) => {
|
|
176
|
+
const e = b(9);
|
|
177
|
+
let t, o;
|
|
178
|
+
e[0] !== i ? ({
|
|
179
|
+
className: t,
|
|
180
|
+
...o
|
|
181
|
+
} = i, e[0] = i, e[1] = t, e[2] = o) : (t = e[1], o = e[2]);
|
|
182
|
+
let n;
|
|
183
|
+
e[3] !== t ? (n = N("-mx-1 my-1 h-px bg-muted", t), e[3] = t, e[4] = n) : n = e[4];
|
|
184
|
+
let s;
|
|
185
|
+
return e[5] !== o || e[6] !== a || e[7] !== n ? (s = /* @__PURE__ */ m(f.Separator, { ref: a, className: n, ...o }), e[5] = o, e[6] = a, e[7] = n, e[8] = s) : s = e[8], s;
|
|
186
|
+
});
|
|
187
|
+
V.displayName = "DropdownMenuSeparator";
|
|
188
|
+
const q = (i) => {
|
|
189
|
+
const a = b(8);
|
|
190
|
+
let e, t;
|
|
191
|
+
a[0] !== i ? ({
|
|
192
|
+
className: e,
|
|
193
|
+
...t
|
|
194
|
+
} = i, a[0] = i, a[1] = e, a[2] = t) : (e = a[1], t = a[2]);
|
|
195
|
+
let o;
|
|
196
|
+
a[3] !== e ? (o = N("ml-auto text-xs tracking-widest opacity-60", e), a[3] = e, a[4] = o) : o = a[4];
|
|
197
|
+
let n;
|
|
198
|
+
return a[5] !== t || a[6] !== o ? (n = /* @__PURE__ */ m("span", { className: o, ...t }), a[5] = t, a[6] = o, a[7] = n) : n = a[7], n;
|
|
199
|
+
};
|
|
200
|
+
q.displayName = "DropdownMenuShortcut";
|
|
201
|
+
export {
|
|
202
|
+
K as DropdownMenu,
|
|
203
|
+
G as DropdownMenuCheckboxItem,
|
|
204
|
+
O as DropdownMenuContent,
|
|
205
|
+
Q as DropdownMenuGroup,
|
|
206
|
+
j as DropdownMenuItem,
|
|
207
|
+
E as DropdownMenuLabel,
|
|
208
|
+
W as DropdownMenuRadioGroup,
|
|
209
|
+
L as DropdownMenuRadioItem,
|
|
210
|
+
V as DropdownMenuSeparator,
|
|
211
|
+
q as DropdownMenuShortcut,
|
|
212
|
+
U as DropdownMenuSub,
|
|
213
|
+
T as DropdownMenuSubContent,
|
|
214
|
+
z as DropdownMenuSubTrigger,
|
|
215
|
+
$ as DropdownMenuTrigger
|
|
216
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as N } from "react/jsx-runtime";
|
|
3
|
+
import { c as R } from "react-compiler-runtime";
|
|
4
|
+
import * as x from "react";
|
|
5
|
+
import { cn as I } from "../../lib/utils.js";
|
|
6
|
+
const k = x.forwardRef((b, l) => {
|
|
7
|
+
const e = R(21);
|
|
8
|
+
let n, a, f, o, s, t;
|
|
9
|
+
e[0] !== b ? ({
|
|
10
|
+
className: n,
|
|
11
|
+
type: t,
|
|
12
|
+
error: a,
|
|
13
|
+
hasError: f,
|
|
14
|
+
disableScrollOnNumber: s,
|
|
15
|
+
...o
|
|
16
|
+
} = b, e[0] = b, e[1] = n, e[2] = a, e[3] = f, e[4] = o, e[5] = s, e[6] = t) : (n = e[1], a = e[2], f = e[3], o = e[4], s = e[5], t = e[6]);
|
|
17
|
+
const u = s === void 0 ? !0 : s, E = a || f, h = x.useRef(null);
|
|
18
|
+
let c;
|
|
19
|
+
e[7] !== l ? (c = (r) => {
|
|
20
|
+
h.current = r, typeof l == "function" ? l(r) : l != null && (l.current = r);
|
|
21
|
+
}, e[7] = l, e[8] = c) : c = e[8];
|
|
22
|
+
const v = c;
|
|
23
|
+
let d, m;
|
|
24
|
+
e[9] !== u || e[10] !== t ? (d = () => {
|
|
25
|
+
if (t !== "number" || !u)
|
|
26
|
+
return;
|
|
27
|
+
const r = h.current;
|
|
28
|
+
if (!r)
|
|
29
|
+
return;
|
|
30
|
+
const y = (w) => {
|
|
31
|
+
document.activeElement === r && w.preventDefault();
|
|
32
|
+
};
|
|
33
|
+
return r.addEventListener("wheel", y, {
|
|
34
|
+
passive: !1
|
|
35
|
+
}), () => {
|
|
36
|
+
r.removeEventListener("wheel", y);
|
|
37
|
+
};
|
|
38
|
+
}, m = [t, u], e[9] = u, e[10] = t, e[11] = d, e[12] = m) : (d = e[11], m = e[12]), x.useEffect(d, m);
|
|
39
|
+
let i;
|
|
40
|
+
e[13] !== n ? (i = I("flex h-10 w-full rounded-md border border-gray-300 bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder-gray-400 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", n), e[13] = n, e[14] = i) : i = e[14];
|
|
41
|
+
const g = E || void 0;
|
|
42
|
+
let p;
|
|
43
|
+
return e[15] !== o || e[16] !== v || e[17] !== i || e[18] !== g || e[19] !== t ? (p = /* @__PURE__ */ N("input", { type: t, className: i, "aria-invalid": g, ref: v, ...o }), e[15] = o, e[16] = v, e[17] = i, e[18] = g, e[19] = t, e[20] = p) : p = e[20], p;
|
|
44
|
+
});
|
|
45
|
+
k.displayName = "Input";
|
|
46
|
+
export {
|
|
47
|
+
k as Input
|
|
48
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { c as m } from "react-compiler-runtime";
|
|
4
|
+
import { cva as c } from "class-variance-authority";
|
|
5
|
+
import * as n from "react";
|
|
6
|
+
import { cn as p } from "../../lib/utils.js";
|
|
7
|
+
const d = c("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), f = n.forwardRef((s, r) => {
|
|
8
|
+
const e = m(9);
|
|
9
|
+
let l, o;
|
|
10
|
+
e[0] !== s ? ({
|
|
11
|
+
className: l,
|
|
12
|
+
...o
|
|
13
|
+
} = s, e[0] = s, e[1] = l, e[2] = o) : (l = e[1], o = e[2]);
|
|
14
|
+
let t;
|
|
15
|
+
e[3] !== l ? (t = p(d(), l), e[3] = l, e[4] = t) : t = e[4];
|
|
16
|
+
let a;
|
|
17
|
+
return e[5] !== o || e[6] !== r || e[7] !== t ? (a = /* @__PURE__ */ i("label", { ref: r, className: t, ...o }), e[5] = o, e[6] = r, e[7] = t, e[8] = a) : a = e[8], a;
|
|
18
|
+
});
|
|
19
|
+
f.displayName = "Label";
|
|
20
|
+
export {
|
|
21
|
+
f as Label
|
|
22
|
+
};
|