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,181 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import { c as u } from "react-compiler-runtime";
|
|
4
|
+
import { Popover as c } from "@base-ui/react/popover";
|
|
5
|
+
import * as m from "react";
|
|
6
|
+
import { cn as P } from "../../lib/utils.js";
|
|
7
|
+
const Z = c.Root, C = "w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0", h = "z-[200]", $ = m.forwardRef(function(l, i) {
|
|
8
|
+
const e = u(17);
|
|
9
|
+
let r, t, o, s;
|
|
10
|
+
e[0] !== l ? ({
|
|
11
|
+
asChild: r,
|
|
12
|
+
children: t,
|
|
13
|
+
render: s,
|
|
14
|
+
...o
|
|
15
|
+
} = l, e[0] = l, e[1] = r, e[2] = t, e[3] = o, e[4] = s) : (r = e[1], t = e[2], o = e[3], s = e[4]);
|
|
16
|
+
const n = i;
|
|
17
|
+
if (s) {
|
|
18
|
+
let a;
|
|
19
|
+
return e[5] !== o || e[6] !== n || e[7] !== s ? (a = /* @__PURE__ */ d(c.Trigger, { ref: n, render: s, ...o }), e[5] = o, e[6] = n, e[7] = s, e[8] = a) : a = e[8], a;
|
|
20
|
+
}
|
|
21
|
+
if (r && m.isValidElement(t)) {
|
|
22
|
+
const a = t;
|
|
23
|
+
let v;
|
|
24
|
+
return e[9] !== o || e[10] !== n || e[11] !== a ? (v = /* @__PURE__ */ d(c.Trigger, { ref: n, render: a, ...o }), e[9] = o, e[10] = n, e[11] = a, e[12] = v) : v = e[12], v;
|
|
25
|
+
}
|
|
26
|
+
let p;
|
|
27
|
+
return e[13] !== t || e[14] !== o || e[15] !== n ? (p = /* @__PURE__ */ d(c.Trigger, { ref: n, ...o, children: t }), e[13] = t, e[14] = o, e[15] = n, e[16] = p) : p = e[16], p;
|
|
28
|
+
});
|
|
29
|
+
$.displayName = "PopoverTrigger";
|
|
30
|
+
function x(f) {
|
|
31
|
+
const {
|
|
32
|
+
keepMounted: l,
|
|
33
|
+
positionerClassName: i,
|
|
34
|
+
className: e,
|
|
35
|
+
children: r,
|
|
36
|
+
anchor: t,
|
|
37
|
+
side: o,
|
|
38
|
+
sideOffset: s = 4,
|
|
39
|
+
align: n,
|
|
40
|
+
alignOffset: p,
|
|
41
|
+
collisionBoundary: a,
|
|
42
|
+
collisionPadding: v,
|
|
43
|
+
sticky: g,
|
|
44
|
+
positionMethod: N,
|
|
45
|
+
arrowPadding: w,
|
|
46
|
+
disableAnchorTracking: y,
|
|
47
|
+
collisionAvoidance: b,
|
|
48
|
+
...k
|
|
49
|
+
} = f, R = {
|
|
50
|
+
className: P(h, i),
|
|
51
|
+
anchor: t,
|
|
52
|
+
side: o,
|
|
53
|
+
sideOffset: s,
|
|
54
|
+
align: n,
|
|
55
|
+
alignOffset: p,
|
|
56
|
+
collisionBoundary: a,
|
|
57
|
+
collisionPadding: v,
|
|
58
|
+
sticky: g,
|
|
59
|
+
positionMethod: N,
|
|
60
|
+
arrowPadding: w,
|
|
61
|
+
disableAnchorTracking: y,
|
|
62
|
+
collisionAvoidance: b
|
|
63
|
+
}, T = {
|
|
64
|
+
...k,
|
|
65
|
+
className: P(C, e),
|
|
66
|
+
children: r
|
|
67
|
+
};
|
|
68
|
+
return {
|
|
69
|
+
keepMounted: l,
|
|
70
|
+
positioner: R,
|
|
71
|
+
popup: T
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
const A = m.forwardRef(function(l, i) {
|
|
75
|
+
const e = u(11);
|
|
76
|
+
let r;
|
|
77
|
+
e[0] !== l ? (r = x(l), e[0] = l, e[1] = r) : r = e[1];
|
|
78
|
+
const {
|
|
79
|
+
keepMounted: t,
|
|
80
|
+
positioner: o,
|
|
81
|
+
popup: s
|
|
82
|
+
} = r;
|
|
83
|
+
let n;
|
|
84
|
+
e[2] !== s || e[3] !== i ? (n = /* @__PURE__ */ d(c.Popup, { ref: i, ...s }), e[2] = s, e[3] = i, e[4] = n) : n = e[4];
|
|
85
|
+
let p;
|
|
86
|
+
e[5] !== o || e[6] !== n ? (p = /* @__PURE__ */ d(c.Positioner, { ...o, children: n }), e[5] = o, e[6] = n, e[7] = p) : p = e[7];
|
|
87
|
+
let a;
|
|
88
|
+
return e[8] !== t || e[9] !== p ? (a = /* @__PURE__ */ d(c.Portal, { keepMounted: t, children: p }), e[8] = t, e[9] = p, e[10] = a) : a = e[10], a;
|
|
89
|
+
});
|
|
90
|
+
A.displayName = "PopoverContent";
|
|
91
|
+
const B = m.forwardRef(function(l, i) {
|
|
92
|
+
const e = u(9);
|
|
93
|
+
let r, t;
|
|
94
|
+
e[0] !== l ? ({
|
|
95
|
+
className: r,
|
|
96
|
+
...t
|
|
97
|
+
} = l, e[0] = l, e[1] = r, e[2] = t) : (r = e[1], t = e[2]);
|
|
98
|
+
let o;
|
|
99
|
+
e[3] !== r ? (o = P("text-lg font-semibold leading-none", r), e[3] = r, e[4] = o) : o = e[4];
|
|
100
|
+
let s;
|
|
101
|
+
return e[5] !== t || e[6] !== i || e[7] !== o ? (s = /* @__PURE__ */ d(c.Title, { ref: i, className: o, ...t }), e[5] = t, e[6] = i, e[7] = o, e[8] = s) : s = e[8], s;
|
|
102
|
+
});
|
|
103
|
+
B.displayName = "PopoverTitle";
|
|
104
|
+
const D = m.forwardRef(function(l, i) {
|
|
105
|
+
const e = u(9);
|
|
106
|
+
let r, t;
|
|
107
|
+
e[0] !== l ? ({
|
|
108
|
+
className: r,
|
|
109
|
+
...t
|
|
110
|
+
} = l, e[0] = l, e[1] = r, e[2] = t) : (r = e[1], t = e[2]);
|
|
111
|
+
let o;
|
|
112
|
+
e[3] !== r ? (o = P("text-sm text-muted-foreground", r), e[3] = r, e[4] = o) : o = e[4];
|
|
113
|
+
let s;
|
|
114
|
+
return e[5] !== t || e[6] !== i || e[7] !== o ? (s = /* @__PURE__ */ d(c.Description, { ref: i, className: o, ...t }), e[5] = t, e[6] = i, e[7] = o, e[8] = s) : s = e[8], s;
|
|
115
|
+
});
|
|
116
|
+
D.displayName = "PopoverDescription";
|
|
117
|
+
const H = m.forwardRef(function(l, i) {
|
|
118
|
+
const e = u(9);
|
|
119
|
+
let r, t;
|
|
120
|
+
e[0] !== l ? ({
|
|
121
|
+
className: r,
|
|
122
|
+
...t
|
|
123
|
+
} = l, e[0] = l, e[1] = r, e[2] = t) : (r = e[1], t = e[2]);
|
|
124
|
+
let o;
|
|
125
|
+
e[3] !== r ? (o = P("flex flex-col space-y-1.5", r), e[3] = r, e[4] = o) : o = e[4];
|
|
126
|
+
let s;
|
|
127
|
+
return e[5] !== t || e[6] !== i || e[7] !== o ? (s = /* @__PURE__ */ d("div", { ref: i, className: o, ...t }), e[5] = t, e[6] = i, e[7] = o, e[8] = s) : s = e[8], s;
|
|
128
|
+
});
|
|
129
|
+
H.displayName = "PopoverHeader";
|
|
130
|
+
const M = m.forwardRef(function(l, i) {
|
|
131
|
+
const e = u(9);
|
|
132
|
+
let r, t, o;
|
|
133
|
+
e[0] !== l ? ({
|
|
134
|
+
className: r,
|
|
135
|
+
type: o,
|
|
136
|
+
...t
|
|
137
|
+
} = l, e[0] = l, e[1] = r, e[2] = t, e[3] = o) : (r = e[1], t = e[2], o = e[3]);
|
|
138
|
+
const s = o === void 0 ? "button" : o;
|
|
139
|
+
let n;
|
|
140
|
+
return e[4] !== r || e[5] !== t || e[6] !== i || e[7] !== s ? (n = /* @__PURE__ */ d(c.Close, { ref: i, type: s, className: r, ...t }), e[4] = r, e[5] = t, e[6] = i, e[7] = s, e[8] = n) : n = e[8], n;
|
|
141
|
+
});
|
|
142
|
+
M.displayName = "PopoverClose";
|
|
143
|
+
const V = m.forwardRef(function(l, i) {
|
|
144
|
+
const e = u(9);
|
|
145
|
+
let r, t;
|
|
146
|
+
e[0] !== l ? ({
|
|
147
|
+
className: r,
|
|
148
|
+
...t
|
|
149
|
+
} = l, e[0] = l, e[1] = r, e[2] = t) : (r = e[1], t = e[2]);
|
|
150
|
+
let o;
|
|
151
|
+
e[3] !== r ? (o = P("fill-border stroke-border", r), e[3] = r, e[4] = o) : o = e[4];
|
|
152
|
+
let s;
|
|
153
|
+
return e[5] !== t || e[6] !== i || e[7] !== o ? (s = /* @__PURE__ */ d(c.Arrow, { ref: i, className: o, ...t }), e[5] = t, e[6] = i, e[7] = o, e[8] = s) : s = e[8], s;
|
|
154
|
+
});
|
|
155
|
+
V.displayName = "PopoverArrow";
|
|
156
|
+
const O = m.forwardRef(function(l, i) {
|
|
157
|
+
const e = u(9);
|
|
158
|
+
let r, t;
|
|
159
|
+
e[0] !== l ? ({
|
|
160
|
+
className: r,
|
|
161
|
+
...t
|
|
162
|
+
} = l, e[0] = l, e[1] = r, e[2] = t) : (r = e[1], t = e[2]);
|
|
163
|
+
let o;
|
|
164
|
+
e[3] !== r ? (o = P("bg-black/20 backdrop-blur-sm transition-opacity", r), e[3] = r, e[4] = o) : o = e[4];
|
|
165
|
+
let s;
|
|
166
|
+
return e[5] !== t || e[6] !== i || e[7] !== o ? (s = /* @__PURE__ */ d(c.Backdrop, { ref: i, className: o, ...t }), e[5] = t, e[6] = i, e[7] = o, e[8] = s) : s = e[8], s;
|
|
167
|
+
});
|
|
168
|
+
O.displayName = "PopoverBackdrop";
|
|
169
|
+
const q = c.Viewport;
|
|
170
|
+
export {
|
|
171
|
+
Z as Popover,
|
|
172
|
+
V as PopoverArrow,
|
|
173
|
+
O as PopoverBackdrop,
|
|
174
|
+
M as PopoverClose,
|
|
175
|
+
A as PopoverContent,
|
|
176
|
+
D as PopoverDescription,
|
|
177
|
+
H as PopoverHeader,
|
|
178
|
+
B as PopoverTitle,
|
|
179
|
+
$ as PopoverTrigger,
|
|
180
|
+
q as PopoverViewport
|
|
181
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as N, jsxs as I } from "react/jsx-runtime";
|
|
3
|
+
import { c as X } from "react-compiler-runtime";
|
|
4
|
+
import { Progress as R } from "@base-ui/react/progress";
|
|
5
|
+
import { cva as A } from "class-variance-authority";
|
|
6
|
+
import * as D from "react";
|
|
7
|
+
import { cn as z } from "../../lib/utils.js";
|
|
8
|
+
const E = A("h-full w-full flex-1 transition-all", {
|
|
9
|
+
variants: {
|
|
10
|
+
color: {
|
|
11
|
+
primary: "bg-primary",
|
|
12
|
+
secondary: "bg-secondary",
|
|
13
|
+
success: "bg-green-600",
|
|
14
|
+
error: "bg-red-600",
|
|
15
|
+
warning: "bg-amber-600",
|
|
16
|
+
info: "bg-blue-600"
|
|
17
|
+
},
|
|
18
|
+
variant: {
|
|
19
|
+
determinate: "",
|
|
20
|
+
indeterminate: "animate-[progress-indeterminate_2.1s_cubic-bezier(0.65,0.815,0.735,0.395)_infinite]",
|
|
21
|
+
buffer: "",
|
|
22
|
+
query: "animate-[progress-query_2s_ease-in-out_infinite]"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
color: "primary",
|
|
27
|
+
variant: "determinate"
|
|
28
|
+
}
|
|
29
|
+
}), F = D.forwardRef((P, T) => {
|
|
30
|
+
const e = X(49);
|
|
31
|
+
let i, C, r, n, h, x, w, V, a;
|
|
32
|
+
e[0] !== P ? ({
|
|
33
|
+
className: i,
|
|
34
|
+
value: V,
|
|
35
|
+
valueBuffer: a,
|
|
36
|
+
variant: h,
|
|
37
|
+
color: x,
|
|
38
|
+
customColor: C,
|
|
39
|
+
showLabel: w,
|
|
40
|
+
label: r,
|
|
41
|
+
...n
|
|
42
|
+
} = P, e[0] = P, e[1] = i, e[2] = C, e[3] = r, e[4] = n, e[5] = h, e[6] = x, e[7] = w, e[8] = V, e[9] = a) : (i = e[1], C = e[2], r = e[3], n = e[4], h = e[5], x = e[6], w = e[7], V = e[8], a = e[9]);
|
|
43
|
+
const s = h === void 0 ? "determinate" : h, _ = x === void 0 ? "primary" : x, j = w === void 0 ? !1 : w, k = typeof _ == "string" && !["primary", "secondary", "success", "error", "warning", "info"].includes(_), l = C || (k ? _ : void 0), q = k ? "primary" : _, o = s === "indeterminate" || s === "query", B = Math.min(Math.max(V ?? 0, 0), 100), t = o ? null : B;
|
|
44
|
+
let M;
|
|
45
|
+
e[10] !== o || e[11] !== r || e[12] !== t || e[13] !== j ? (M = !j || o ? null : typeof r == "function" ? r(t || 0) : typeof r == "string" ? r : `${Math.round(t || 0)}%`, e[10] = o, e[11] = r, e[12] = t, e[13] = j, e[14] = M) : M = e[14];
|
|
46
|
+
const $ = M;
|
|
47
|
+
let c;
|
|
48
|
+
e[15] !== i ? (c = z("relative h-1 w-full overflow-hidden rounded-full bg-secondary/20", i), e[15] = i, e[16] = c) : c = e[16];
|
|
49
|
+
let f;
|
|
50
|
+
e[17] !== a || e[18] !== s ? (f = s === "buffer" && a !== void 0 && /* @__PURE__ */ N("div", { className: "absolute h-full bg-secondary/40 transition-all", style: {
|
|
51
|
+
width: `${Math.min(Math.max(a, 0), 100)}%`
|
|
52
|
+
} }), e[17] = a, e[18] = s, e[19] = f) : f = e[19];
|
|
53
|
+
let m;
|
|
54
|
+
e[20] !== q || e[21] !== l || e[22] !== s ? (m = z(E({
|
|
55
|
+
color: l ? void 0 : q,
|
|
56
|
+
variant: s
|
|
57
|
+
}), l && "bg-transparent"), e[20] = q, e[21] = l, e[22] = s, e[23] = m) : m = e[23];
|
|
58
|
+
let d;
|
|
59
|
+
e[24] !== l ? (d = l && {
|
|
60
|
+
backgroundColor: l
|
|
61
|
+
}, e[24] = l, e[25] = d) : d = e[25];
|
|
62
|
+
let u;
|
|
63
|
+
e[26] !== o || e[27] !== t ? (u = o ? {} : {
|
|
64
|
+
transform: `translateX(-${100 - (t || 0)}%)`
|
|
65
|
+
}, e[26] = o, e[27] = t, e[28] = u) : u = e[28];
|
|
66
|
+
let g;
|
|
67
|
+
e[29] !== d || e[30] !== u ? (g = {
|
|
68
|
+
...d,
|
|
69
|
+
...u
|
|
70
|
+
}, e[29] = d, e[30] = u, e[31] = g) : g = e[31];
|
|
71
|
+
let p;
|
|
72
|
+
e[32] !== g || e[33] !== m ? (p = /* @__PURE__ */ N(R.Indicator, { className: m, style: g }), e[32] = g, e[33] = m, e[34] = p) : p = e[34];
|
|
73
|
+
let b;
|
|
74
|
+
e[35] !== p || e[36] !== c || e[37] !== f ? (b = /* @__PURE__ */ I(R.Track, { className: c, children: [
|
|
75
|
+
f,
|
|
76
|
+
p
|
|
77
|
+
] }), e[35] = p, e[36] = c, e[37] = f, e[38] = b) : b = e[38];
|
|
78
|
+
let y;
|
|
79
|
+
e[39] !== t || e[40] !== n || e[41] !== T || e[42] !== b ? (y = /* @__PURE__ */ N(R.Root, { ref: T, value: t, ...n, children: b }), e[39] = t, e[40] = n, e[41] = T, e[42] = b, e[43] = y) : y = e[43];
|
|
80
|
+
let v;
|
|
81
|
+
e[44] !== $ ? (v = $ && /* @__PURE__ */ N("div", { className: "flex justify-between items-center mt-1", children: /* @__PURE__ */ N("span", { className: "text-sm text-muted-foreground", children: $ }) }), e[44] = $, e[45] = v) : v = e[45];
|
|
82
|
+
let L;
|
|
83
|
+
return e[46] !== y || e[47] !== v ? (L = /* @__PURE__ */ I("div", { className: "w-full", children: [
|
|
84
|
+
y,
|
|
85
|
+
v
|
|
86
|
+
] }), e[46] = y, e[47] = v, e[48] = L) : L = e[48], L;
|
|
87
|
+
});
|
|
88
|
+
F.displayName = "Progress";
|
|
89
|
+
export {
|
|
90
|
+
F as Progress
|
|
91
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { c as m } from "react-compiler-runtime";
|
|
4
|
+
import { Radio as f } from "@base-ui/react/radio";
|
|
5
|
+
import { RadioGroup as R } from "@base-ui/react/radio-group";
|
|
6
|
+
import { Circle as b } from "lucide-react";
|
|
7
|
+
import * as d from "react";
|
|
8
|
+
import { cn as p } from "../../lib/utils.js";
|
|
9
|
+
const g = d.forwardRef((s, a) => {
|
|
10
|
+
const e = m(13);
|
|
11
|
+
let o, r, t;
|
|
12
|
+
e[0] !== s ? ({
|
|
13
|
+
className: o,
|
|
14
|
+
onValueChange: r,
|
|
15
|
+
...t
|
|
16
|
+
} = s, e[0] = s, e[1] = o, e[2] = r, e[3] = t) : (o = e[1], r = e[2], t = e[3]);
|
|
17
|
+
let i;
|
|
18
|
+
e[4] !== o ? (i = p("grid gap-2", o), e[4] = o, e[5] = i) : i = e[5];
|
|
19
|
+
let l;
|
|
20
|
+
e[6] !== r ? (l = (u) => {
|
|
21
|
+
r == null || r(u);
|
|
22
|
+
}, e[6] = r, e[7] = l) : l = e[7];
|
|
23
|
+
let c;
|
|
24
|
+
return e[8] !== t || e[9] !== a || e[10] !== i || e[11] !== l ? (c = /* @__PURE__ */ n(R, { ref: a, className: i, onValueChange: l, ...t }), e[8] = t, e[9] = a, e[10] = i, e[11] = l, e[12] = c) : c = e[12], c;
|
|
25
|
+
});
|
|
26
|
+
g.displayName = "RadioGroup";
|
|
27
|
+
const N = d.forwardRef((s, a) => {
|
|
28
|
+
const e = m(10);
|
|
29
|
+
let o, r;
|
|
30
|
+
e[0] !== s ? ({
|
|
31
|
+
className: o,
|
|
32
|
+
...r
|
|
33
|
+
} = s, e[0] = s, e[1] = o, e[2] = r) : (o = e[1], r = e[2]);
|
|
34
|
+
let t;
|
|
35
|
+
e[3] !== o ? (t = p(`
|
|
36
|
+
aspect-square h-4 w-4 cursor-pointer rounded-full border border-primary text-primary ring-offset-background
|
|
37
|
+
focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
|
|
38
|
+
data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50
|
|
39
|
+
`, o), e[3] = o, e[4] = t) : t = e[4];
|
|
40
|
+
let i;
|
|
41
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ n(f.Indicator, { className: "flex h-full w-full items-center justify-center", children: /* @__PURE__ */ n(b, { className: "h-2.5 w-2.5 fill-current text-current" }) }), e[5] = i) : i = e[5];
|
|
42
|
+
let l;
|
|
43
|
+
return e[6] !== r || e[7] !== a || e[8] !== t ? (l = /* @__PURE__ */ n(f.Root, { ref: a, className: t, ...r, children: i }), e[6] = r, e[7] = a, e[8] = t, e[9] = l) : l = e[9], l;
|
|
44
|
+
});
|
|
45
|
+
N.displayName = "RadioGroupItem";
|
|
46
|
+
export {
|
|
47
|
+
g as RadioGroup,
|
|
48
|
+
N as RadioGroupItem
|
|
49
|
+
};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as m, jsxs as x } from "react/jsx-runtime";
|
|
3
|
+
import { c as h } from "react-compiler-runtime";
|
|
4
|
+
import { Select as p } from "@base-ui/react/select";
|
|
5
|
+
import { ChevronDown as b, ChevronUp as v } from "lucide-react";
|
|
6
|
+
import * as u from "react";
|
|
7
|
+
import { cn as g } from "../../lib/utils.js";
|
|
8
|
+
const C = (r) => {
|
|
9
|
+
const s = h(12);
|
|
10
|
+
let e, l, t;
|
|
11
|
+
s[0] !== r ? ({
|
|
12
|
+
onValueChange: l,
|
|
13
|
+
onOpenChange: e,
|
|
14
|
+
...t
|
|
15
|
+
} = r, s[0] = r, s[1] = e, s[2] = l, s[3] = t) : (e = s[1], l = s[2], t = s[3]);
|
|
16
|
+
let o;
|
|
17
|
+
s[4] !== l ? (o = l ? (n, c) => l(n) : void 0, s[4] = l, s[5] = o) : o = s[5];
|
|
18
|
+
let a;
|
|
19
|
+
s[6] !== e ? (a = e ? (n, c) => e(n) : void 0, s[6] = e, s[7] = a) : a = s[7];
|
|
20
|
+
let i;
|
|
21
|
+
return s[8] !== t || s[9] !== o || s[10] !== a ? (i = /* @__PURE__ */ m(p.Root, { onValueChange: o, onOpenChange: a, ...t }), s[8] = t, s[9] = o, s[10] = a, s[11] = i) : i = s[11], i;
|
|
22
|
+
};
|
|
23
|
+
C.displayName = "Select";
|
|
24
|
+
const G = p.Group, R = u.forwardRef((r, s) => {
|
|
25
|
+
const e = h(7);
|
|
26
|
+
let l, t;
|
|
27
|
+
e[0] !== r ? ({
|
|
28
|
+
placeholder: l,
|
|
29
|
+
...t
|
|
30
|
+
} = r, e[0] = r, e[1] = l, e[2] = t) : (l = e[1], t = e[2]);
|
|
31
|
+
let o;
|
|
32
|
+
return e[3] !== l || e[4] !== t || e[5] !== s ? (o = /* @__PURE__ */ m(p.Value, { ref: s, placeholder: l, ...t }), e[3] = l, e[4] = t, e[5] = s, e[6] = o) : o = e[6], o;
|
|
33
|
+
});
|
|
34
|
+
R.displayName = "SelectValue";
|
|
35
|
+
const $ = u.forwardRef((r, s) => {
|
|
36
|
+
const e = h(18);
|
|
37
|
+
let l, t, o, a;
|
|
38
|
+
e[0] !== r ? ({
|
|
39
|
+
className: o,
|
|
40
|
+
children: t,
|
|
41
|
+
asChild: l,
|
|
42
|
+
...a
|
|
43
|
+
} = r, e[0] = r, e[1] = l, e[2] = t, e[3] = o, e[4] = a) : (l = e[1], t = e[2], o = e[3], a = e[4]);
|
|
44
|
+
let i;
|
|
45
|
+
e[5] !== o ? (i = g("flex h-10 w-full items-center justify-between rounded-md border border-gray-300 bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", o), e[5] = o, e[6] = i) : i = e[6];
|
|
46
|
+
const n = i;
|
|
47
|
+
if (l && u.isValidElement(t)) {
|
|
48
|
+
const S = t;
|
|
49
|
+
let f;
|
|
50
|
+
return e[7] !== a || e[8] !== s || e[9] !== S || e[10] !== n ? (f = /* @__PURE__ */ m(p.Trigger, { ref: s, className: n, render: S, ...a }), e[7] = a, e[8] = s, e[9] = S, e[10] = n, e[11] = f) : f = e[11], f;
|
|
51
|
+
}
|
|
52
|
+
let c;
|
|
53
|
+
e[12] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ m(b, { strokeWidth: 1.5, className: "h-4 w-4 text-foreground" }), e[12] = c) : c = e[12];
|
|
54
|
+
let d;
|
|
55
|
+
return e[13] !== t || e[14] !== a || e[15] !== s || e[16] !== n ? (d = /* @__PURE__ */ x(p.Trigger, { ref: s, className: n, ...a, children: [
|
|
56
|
+
t,
|
|
57
|
+
c
|
|
58
|
+
] }), e[13] = t, e[14] = a, e[15] = s, e[16] = n, e[17] = d) : d = e[17], d;
|
|
59
|
+
});
|
|
60
|
+
$.displayName = "SelectTrigger";
|
|
61
|
+
const _ = u.forwardRef((r, s) => {
|
|
62
|
+
const e = h(10);
|
|
63
|
+
let l, t;
|
|
64
|
+
e[0] !== r ? ({
|
|
65
|
+
className: l,
|
|
66
|
+
...t
|
|
67
|
+
} = r, e[0] = r, e[1] = l, e[2] = t) : (l = e[1], t = e[2]);
|
|
68
|
+
let o;
|
|
69
|
+
e[3] !== l ? (o = g("flex cursor-default items-center justify-center py-1", l), e[3] = l, e[4] = o) : o = e[4];
|
|
70
|
+
let a;
|
|
71
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ m(v, { className: "h-4 w-4" }), e[5] = a) : a = e[5];
|
|
72
|
+
let i;
|
|
73
|
+
return e[6] !== t || e[7] !== s || e[8] !== o ? (i = /* @__PURE__ */ m(p.ScrollUpArrow, { ref: s, className: o, ...t, children: a }), e[6] = t, e[7] = s, e[8] = o, e[9] = i) : i = e[9], i;
|
|
74
|
+
});
|
|
75
|
+
_.displayName = "SelectScrollUpButton";
|
|
76
|
+
const D = u.forwardRef((r, s) => {
|
|
77
|
+
const e = h(10);
|
|
78
|
+
let l, t;
|
|
79
|
+
e[0] !== r ? ({
|
|
80
|
+
className: l,
|
|
81
|
+
...t
|
|
82
|
+
} = r, e[0] = r, e[1] = l, e[2] = t) : (l = e[1], t = e[2]);
|
|
83
|
+
let o;
|
|
84
|
+
e[3] !== l ? (o = g("flex cursor-default items-center justify-center py-1", l), e[3] = l, e[4] = o) : o = e[4];
|
|
85
|
+
let a;
|
|
86
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ m(b, { className: "h-4 w-4" }), e[5] = a) : a = e[5];
|
|
87
|
+
let i;
|
|
88
|
+
return e[6] !== t || e[7] !== s || e[8] !== o ? (i = /* @__PURE__ */ m(p.ScrollDownArrow, { ref: s, className: o, ...t, children: a }), e[6] = t, e[7] = s, e[8] = o, e[9] = i) : i = e[9], i;
|
|
89
|
+
});
|
|
90
|
+
D.displayName = "SelectScrollDownButton";
|
|
91
|
+
const T = u.forwardRef((r, s) => {
|
|
92
|
+
const e = h(21);
|
|
93
|
+
let l, t, o, a;
|
|
94
|
+
e[0] !== r ? ({
|
|
95
|
+
className: t,
|
|
96
|
+
children: l,
|
|
97
|
+
position: a,
|
|
98
|
+
...o
|
|
99
|
+
} = r, e[0] = r, e[1] = l, e[2] = t, e[3] = o, e[4] = a) : (l = e[1], t = e[2], o = e[3], a = e[4]);
|
|
100
|
+
const i = a === void 0 ? "popper" : a, n = i === "item-aligned", c = i === "popper" && "w-[var(--anchor-width)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";
|
|
101
|
+
let d;
|
|
102
|
+
e[5] !== t || e[6] !== c ? (d = g("relative max-h-60 overflow-hidden rounded-md border bg-popover 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", c, t), e[5] = t, e[6] = c, e[7] = d) : d = e[7];
|
|
103
|
+
const S = i === "popper" && "max-h-[inherit] w-full";
|
|
104
|
+
let f;
|
|
105
|
+
e[8] !== S ? (f = g("p-1 overflow-y-auto", S), e[8] = S, e[9] = f) : f = e[9];
|
|
106
|
+
let N;
|
|
107
|
+
e[10] !== l || e[11] !== f ? (N = /* @__PURE__ */ m("div", { className: f, children: l }), e[10] = l, e[11] = f, e[12] = N) : N = e[12];
|
|
108
|
+
let w;
|
|
109
|
+
e[13] !== o || e[14] !== s || e[15] !== d || e[16] !== N ? (w = /* @__PURE__ */ m(p.Popup, { ref: s, className: d, ...o, children: N }), e[13] = o, e[14] = s, e[15] = d, e[16] = N, e[17] = w) : w = e[17];
|
|
110
|
+
let y;
|
|
111
|
+
return e[18] !== n || e[19] !== w ? (y = /* @__PURE__ */ m(p.Portal, { children: /* @__PURE__ */ m(p.Positioner, { className: "z-[200] data-[anchor-hidden]:hidden", alignItemWithTrigger: n, collisionPadding: 0, children: w }) }), e[18] = n, e[19] = w, e[20] = y) : y = e[20], y;
|
|
112
|
+
});
|
|
113
|
+
T.displayName = "SelectContent";
|
|
114
|
+
const V = u.forwardRef((r, s) => {
|
|
115
|
+
const e = h(9);
|
|
116
|
+
let l, t;
|
|
117
|
+
e[0] !== r ? ({
|
|
118
|
+
className: l,
|
|
119
|
+
...t
|
|
120
|
+
} = r, e[0] = r, e[1] = l, e[2] = t) : (l = e[1], t = e[2]);
|
|
121
|
+
let o;
|
|
122
|
+
e[3] !== l ? (o = g("py-1.5 pl-8 pr-2 text-sm font-semibold", l), e[3] = l, e[4] = o) : o = e[4];
|
|
123
|
+
let a;
|
|
124
|
+
return e[5] !== t || e[6] !== s || e[7] !== o ? (a = /* @__PURE__ */ m(p.GroupLabel, { ref: s, className: o, ...t }), e[5] = t, e[6] = s, e[7] = o, e[8] = a) : a = e[8], a;
|
|
125
|
+
});
|
|
126
|
+
V.displayName = "SelectLabel";
|
|
127
|
+
const j = u.forwardRef((r, s) => {
|
|
128
|
+
const e = h(17);
|
|
129
|
+
let l, t, o, a, i;
|
|
130
|
+
e[0] !== r ? ({
|
|
131
|
+
className: t,
|
|
132
|
+
children: l,
|
|
133
|
+
value: i,
|
|
134
|
+
disabled: o,
|
|
135
|
+
...a
|
|
136
|
+
} = r, e[0] = r, e[1] = l, e[2] = t, e[3] = o, e[4] = a, e[5] = i) : (l = e[1], t = e[2], o = e[3], a = e[4], i = e[5]);
|
|
137
|
+
let n;
|
|
138
|
+
e[6] !== t ? (n = g("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t), e[6] = t, e[7] = n) : n = e[7];
|
|
139
|
+
let c;
|
|
140
|
+
e[8] !== l ? (c = /* @__PURE__ */ m(p.ItemText, { children: l }), e[8] = l, e[9] = c) : c = e[9];
|
|
141
|
+
let d;
|
|
142
|
+
return e[10] !== o || e[11] !== a || e[12] !== s || e[13] !== n || e[14] !== c || e[15] !== i ? (d = /* @__PURE__ */ m(p.Item, { ref: s, value: i, disabled: o, className: n, ...a, children: c }), e[10] = o, e[11] = a, e[12] = s, e[13] = n, e[14] = c, e[15] = i, e[16] = d) : d = e[16], d;
|
|
143
|
+
});
|
|
144
|
+
j.displayName = "SelectItem";
|
|
145
|
+
const I = u.forwardRef((r, s) => {
|
|
146
|
+
const e = h(9);
|
|
147
|
+
let l, t;
|
|
148
|
+
e[0] !== r ? ({
|
|
149
|
+
className: l,
|
|
150
|
+
...t
|
|
151
|
+
} = r, e[0] = r, e[1] = l, e[2] = t) : (l = e[1], t = e[2]);
|
|
152
|
+
let o;
|
|
153
|
+
e[3] !== l ? (o = g("-mx-1 my-1 h-px border-0 bg-muted", l), e[3] = l, e[4] = o) : o = e[4];
|
|
154
|
+
let a;
|
|
155
|
+
return e[5] !== t || e[6] !== s || e[7] !== o ? (a = /* @__PURE__ */ m("hr", { ref: s, className: o, ...t }), e[5] = t, e[6] = s, e[7] = o, e[8] = a) : a = e[8], a;
|
|
156
|
+
});
|
|
157
|
+
I.displayName = "SelectSeparator";
|
|
158
|
+
export {
|
|
159
|
+
C as Select,
|
|
160
|
+
T as SelectContent,
|
|
161
|
+
G as SelectGroup,
|
|
162
|
+
j as SelectItem,
|
|
163
|
+
V as SelectLabel,
|
|
164
|
+
D as SelectScrollDownButton,
|
|
165
|
+
_ as SelectScrollUpButton,
|
|
166
|
+
I as SelectSeparator,
|
|
167
|
+
$ as SelectTrigger,
|
|
168
|
+
R as SelectValue
|
|
169
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as w, jsxs as j } from "react/jsx-runtime";
|
|
3
|
+
import { c as V } from "react-compiler-runtime";
|
|
4
|
+
import { cva as q } from "class-variance-authority";
|
|
5
|
+
import { cn as N } from "../../lib/utils.js";
|
|
6
|
+
const _ = q("bg-muted", {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
text: "h-4 w-full rounded",
|
|
10
|
+
circular: "rounded-full aspect-square",
|
|
11
|
+
rectangular: "rounded-none",
|
|
12
|
+
rounded: "rounded-md"
|
|
13
|
+
},
|
|
14
|
+
animation: {
|
|
15
|
+
pulse: "animate-pulse",
|
|
16
|
+
wave: "animate-wave",
|
|
17
|
+
none: ""
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
variant: "rounded",
|
|
22
|
+
animation: "pulse"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
function D(g) {
|
|
26
|
+
const e = V(42);
|
|
27
|
+
let i, t, l, n, o, y, s, a;
|
|
28
|
+
e[0] !== g ? ({
|
|
29
|
+
className: t,
|
|
30
|
+
variant: s,
|
|
31
|
+
animation: y,
|
|
32
|
+
width: a,
|
|
33
|
+
height: l,
|
|
34
|
+
style: o,
|
|
35
|
+
children: i,
|
|
36
|
+
...n
|
|
37
|
+
} = g, e[0] = g, e[1] = i, e[2] = t, e[3] = l, e[4] = n, e[5] = o, e[6] = y, e[7] = s, e[8] = a) : (i = e[1], t = e[2], l = e[3], n = e[4], o = e[5], y = e[6], s = e[7], a = e[8]);
|
|
38
|
+
const S = y === void 0 ? "pulse" : y, u = S === !1 ? "none" : S;
|
|
39
|
+
let m;
|
|
40
|
+
e[9] !== a ? (m = a != null && a !== "" && {
|
|
41
|
+
width: typeof a == "number" ? `${a}px` : a
|
|
42
|
+
}, e[9] = a, e[10] = m) : m = e[10];
|
|
43
|
+
let c;
|
|
44
|
+
e[11] !== l ? (c = l != null && l !== "" && {
|
|
45
|
+
height: typeof l == "number" ? `${l}px` : l
|
|
46
|
+
}, e[11] = l, e[12] = c) : c = e[12];
|
|
47
|
+
let b;
|
|
48
|
+
e[13] !== o || e[14] !== m || e[15] !== c ? (b = {
|
|
49
|
+
...m,
|
|
50
|
+
...c,
|
|
51
|
+
...o
|
|
52
|
+
}, e[13] = o, e[14] = m, e[15] = c, e[16] = b) : b = e[16];
|
|
53
|
+
const r = b;
|
|
54
|
+
let f;
|
|
55
|
+
if (e[17] !== i || e[18] !== t || e[19] !== u || e[20] !== r || e[21] !== n || e[22] !== s) {
|
|
56
|
+
f = Symbol.for("react.early_return_sentinel");
|
|
57
|
+
e: {
|
|
58
|
+
const $ = N("block", _({
|
|
59
|
+
variant: s,
|
|
60
|
+
animation: u
|
|
61
|
+
}));
|
|
62
|
+
if (i != null) {
|
|
63
|
+
let p;
|
|
64
|
+
e[24] !== t ? (p = N("relative inline-flex shrink-0", t), e[24] = t, e[25] = p) : p = e[25];
|
|
65
|
+
let v;
|
|
66
|
+
e[26] !== i ? (v = /* @__PURE__ */ w("span", { className: "pointer-events-none select-none [visibility:hidden]", children: i }), e[26] = i, e[27] = v) : v = e[27];
|
|
67
|
+
const k = /* @__PURE__ */ w("span", { "aria-busy": "true", className: N("absolute inset-0", $) });
|
|
68
|
+
let x;
|
|
69
|
+
e[28] !== r || e[29] !== n || e[30] !== p || e[31] !== v || e[32] !== k ? (x = /* @__PURE__ */ j("span", { className: p, style: r, ...n, children: [
|
|
70
|
+
v,
|
|
71
|
+
k
|
|
72
|
+
] }), e[28] = r, e[29] = n, e[30] = p, e[31] = v, e[32] = k, e[33] = x) : x = e[33], f = x;
|
|
73
|
+
break e;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
e[17] = i, e[18] = t, e[19] = u, e[20] = r, e[21] = n, e[22] = s, e[23] = f;
|
|
77
|
+
} else
|
|
78
|
+
f = e[23];
|
|
79
|
+
if (f !== Symbol.for("react.early_return_sentinel"))
|
|
80
|
+
return f;
|
|
81
|
+
let d;
|
|
82
|
+
e[34] !== t || e[35] !== u || e[36] !== s ? (d = N(_({
|
|
83
|
+
variant: s,
|
|
84
|
+
animation: u
|
|
85
|
+
}), t), e[34] = t, e[35] = u, e[36] = s, e[37] = d) : d = e[37];
|
|
86
|
+
let h;
|
|
87
|
+
return e[38] !== r || e[39] !== n || e[40] !== d ? (h = /* @__PURE__ */ w("div", { "aria-busy": "true", className: d, style: r, ...n }), e[38] = r, e[39] = n, e[40] = d, e[41] = h) : h = e[41], h;
|
|
88
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
D as Skeleton
|
|
91
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
3
|
+
import { c as L } from "react-compiler-runtime";
|
|
4
|
+
import { LoaderCircle as N } from "lucide-react";
|
|
5
|
+
import * as g from "react";
|
|
6
|
+
import { cn as w } from "../../lib/utils.js";
|
|
7
|
+
const x = g.forwardRef((p, c) => {
|
|
8
|
+
const e = L(20);
|
|
9
|
+
let a, t, r, o, s;
|
|
10
|
+
e[0] !== p ? ({
|
|
11
|
+
className: a,
|
|
12
|
+
role: o,
|
|
13
|
+
width: s,
|
|
14
|
+
height: t,
|
|
15
|
+
...r
|
|
16
|
+
} = p, e[0] = p, e[1] = a, e[2] = t, e[3] = r, e[4] = o, e[5] = s) : (a = e[1], t = e[2], r = e[3], o = e[4], s = e[5]);
|
|
17
|
+
const f = o === void 0 ? "status" : o, d = r;
|
|
18
|
+
let n, i;
|
|
19
|
+
e[6] !== d ? ({
|
|
20
|
+
"aria-label": n,
|
|
21
|
+
...i
|
|
22
|
+
} = d, e[6] = d, e[7] = n, e[8] = i) : (n = e[7], i = e[8]);
|
|
23
|
+
const b = s || t ? "animate-spin" : "size-4 animate-spin", h = n ?? "Loading";
|
|
24
|
+
let l;
|
|
25
|
+
e[9] !== b || e[10] !== a ? (l = w(b, a), e[9] = b, e[10] = a, e[11] = l) : l = e[11];
|
|
26
|
+
let m;
|
|
27
|
+
return e[12] !== t || e[13] !== c || e[14] !== i || e[15] !== f || e[16] !== h || e[17] !== l || e[18] !== s ? (m = /* @__PURE__ */ u(N, { ref: c, role: f, "aria-label": h, className: l, width: s, height: t, ...i }), e[12] = t, e[13] = c, e[14] = i, e[15] = f, e[16] = h, e[17] = l, e[18] = s, e[19] = m) : m = e[19], m;
|
|
28
|
+
});
|
|
29
|
+
x.displayName = "Spinner";
|
|
30
|
+
export {
|
|
31
|
+
x as Spinner
|
|
32
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as p, jsxs as w } from "react/jsx-runtime";
|
|
3
|
+
import { c as x } from "react-compiler-runtime";
|
|
4
|
+
import { Tabs as v } from "@base-ui/react/tabs";
|
|
5
|
+
import * as y from "react";
|
|
6
|
+
import { cn as T } from "../../lib/utils.js";
|
|
7
|
+
const L = v.Root, N = y.forwardRef((o, c) => {
|
|
8
|
+
const e = x(11);
|
|
9
|
+
let t, s, i;
|
|
10
|
+
e[0] !== o ? ({
|
|
11
|
+
className: t,
|
|
12
|
+
variant: i,
|
|
13
|
+
...s
|
|
14
|
+
} = o, e[0] = o, e[1] = t, e[2] = s, e[3] = i) : (t = e[1], s = e[2], i = e[3]);
|
|
15
|
+
const n = i === void 0 ? "default" : i, a = c, d = n === "default" ? "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground" : "flex items-center text-sm font-medium";
|
|
16
|
+
let r;
|
|
17
|
+
e[4] !== t || e[5] !== d ? (r = T(d, t), e[4] = t, e[5] = d, e[6] = r) : r = e[6];
|
|
18
|
+
let l;
|
|
19
|
+
return e[7] !== s || e[8] !== a || e[9] !== r ? (l = /* @__PURE__ */ p(v.List, { ref: a, className: r, ...s }), e[7] = s, e[8] = a, e[9] = r, e[10] = l) : l = e[10], l;
|
|
20
|
+
});
|
|
21
|
+
N.displayName = "TabsList";
|
|
22
|
+
const h = y.forwardRef((o, c) => {
|
|
23
|
+
const e = x(15);
|
|
24
|
+
let t, s, i, n;
|
|
25
|
+
e[0] !== o ? ({
|
|
26
|
+
className: t,
|
|
27
|
+
variant: i,
|
|
28
|
+
showSeparator: n,
|
|
29
|
+
...s
|
|
30
|
+
} = o, e[0] = o, e[1] = t, e[2] = s, e[3] = i, e[4] = n) : (t = e[1], s = e[2], i = e[3], n = e[4]);
|
|
31
|
+
const a = i === void 0 ? "default" : i, d = n === void 0 ? !1 : n, r = c, l = a === "default" ? "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-background data-[active]:text-foreground data-[active]:shadow-sm" : "inline-flex items-center justify-center whitespace-nowrap rounded-lg px-5 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-[#EBEEEF] data-[active]:text-[#2F3030] text-[#737475] hover:text-gray-900";
|
|
32
|
+
let f;
|
|
33
|
+
e[5] !== t || e[6] !== l ? (f = T(l, t), e[5] = t, e[6] = l, e[7] = f) : f = e[7];
|
|
34
|
+
let m;
|
|
35
|
+
e[8] !== s || e[9] !== r || e[10] !== f ? (m = /* @__PURE__ */ p(v.Tab, { ref: r, className: f, ...s }), e[8] = s, e[9] = r, e[10] = f, e[11] = m) : m = e[11];
|
|
36
|
+
const u = m;
|
|
37
|
+
if (a === "custom" && d) {
|
|
38
|
+
let b;
|
|
39
|
+
e[12] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ p("div", { className: "h-5 w-px bg-gray-200" }), e[12] = b) : b = e[12];
|
|
40
|
+
let g;
|
|
41
|
+
return e[13] !== u ? (g = /* @__PURE__ */ w("div", { className: "relative flex items-center", children: [
|
|
42
|
+
u,
|
|
43
|
+
b
|
|
44
|
+
] }), e[13] = u, e[14] = g) : g = e[14], g;
|
|
45
|
+
}
|
|
46
|
+
return u;
|
|
47
|
+
});
|
|
48
|
+
h.displayName = "TabsTrigger";
|
|
49
|
+
const j = y.forwardRef((o, c) => {
|
|
50
|
+
const e = x(9);
|
|
51
|
+
let t, s;
|
|
52
|
+
e[0] !== o ? ({
|
|
53
|
+
className: t,
|
|
54
|
+
...s
|
|
55
|
+
} = o, e[0] = o, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
56
|
+
const i = c;
|
|
57
|
+
let n;
|
|
58
|
+
e[3] !== t ? (n = T("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", t), e[3] = t, e[4] = n) : n = e[4];
|
|
59
|
+
let a;
|
|
60
|
+
return e[5] !== s || e[6] !== i || e[7] !== n ? (a = /* @__PURE__ */ p(v.Panel, { ref: i, className: n, ...s }), e[5] = s, e[6] = i, e[7] = n, e[8] = a) : a = e[8], a;
|
|
61
|
+
});
|
|
62
|
+
j.displayName = "TabsContent";
|
|
63
|
+
export {
|
|
64
|
+
L as Tabs,
|
|
65
|
+
j as TabsContent,
|
|
66
|
+
N as TabsList,
|
|
67
|
+
h as TabsTrigger
|
|
68
|
+
};
|