@drjoshcsimmons/scl 0.1.13 → 0.1.15
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/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/index100.js +25 -30
- package/dist/index101.js +8 -12
- package/dist/index102.js +177 -51
- package/dist/index103.js +47 -29
- package/dist/index104.js +30 -4
- package/dist/index105.js +52 -216
- package/dist/index106.js +29 -47
- package/dist/index107.js +30 -30
- package/dist/index108.js +650 -30
- package/dist/index110.js +30 -9
- package/dist/index111.js +8 -180
- package/dist/index112.js +15 -30
- package/dist/index113.js +6 -48
- package/dist/index115.js +47 -11
- package/dist/index116.js +11 -47
- package/dist/index117.js +206 -6
- package/dist/index118.js +20 -204
- package/dist/index119.js +399 -21
- package/dist/index12.js +1 -1
- package/dist/index120.js +20 -399
- package/dist/index121.js +3 -15
- package/dist/index122.js +32 -3
- package/dist/index123.js +12 -32
- package/dist/index124.js +48 -18
- package/dist/index125.js +2 -25
- package/dist/index126.js +53 -29
- package/dist/index127.js +65 -5
- package/dist/index128.js +25 -2
- package/dist/index129.js +29 -53
- package/dist/index13.js +1 -1
- package/dist/index130.js +5 -65
- package/dist/index136.js +1 -1
- package/dist/index137.js +1 -1
- package/dist/index14.js +2 -2
- package/dist/index141.js +1 -1
- package/dist/index142.js +1 -1
- package/dist/index143.js +1 -1
- package/dist/index148.js +11 -21
- package/dist/index149.js +26 -11
- package/dist/index15.js +54 -54
- package/dist/index150.js +4 -27
- package/dist/index151.js +22 -4
- package/dist/index17.js +71 -72
- package/dist/index18.js +2 -2
- package/dist/index19.js +4 -4
- package/dist/index21.js +15 -15
- package/dist/index22.js +20 -20
- package/dist/index23.js +2 -2
- package/dist/index24.js +12 -12
- package/dist/index25.js +57 -57
- package/dist/index26.js +1 -1
- package/dist/index27.js +31 -31
- package/dist/index29.js +7 -7
- package/dist/index31.js +14 -14
- package/dist/index32.js +17 -17
- package/dist/index33.js +10 -10
- package/dist/index36.js +8 -8
- package/dist/index37.js +18 -18
- package/dist/index4.js +25 -25
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index48.js +62 -249
- package/dist/index49.js +241 -12
- package/dist/index50.js +410 -285
- package/dist/index51.js +125 -12
- package/dist/index52.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index54.js +102 -209
- package/dist/index55.js +130 -11
- package/dist/index56.js +236 -11
- package/dist/index57.js +11 -125
- package/dist/index58.js +57 -70
- package/dist/index59.js +248 -76
- package/dist/index6.js +36 -36
- package/dist/index60.js +222 -822
- package/dist/index61.js +6 -3
- package/dist/index62.js +506 -94
- package/dist/index63.js +1 -1
- package/dist/index64.js +158 -57
- package/dist/index65.js +71 -230
- package/dist/index66.js +20 -433
- package/dist/index67.js +823 -299
- package/dist/index68.js +9 -161
- package/dist/index69.js +218 -24
- package/dist/index7.js +1 -1
- package/dist/index70.js +11 -236
- package/dist/index71.js +325 -119
- package/dist/index72.js +310 -12
- package/dist/index73.js +12 -254
- package/dist/index74.js +25 -524
- package/dist/index75.js +12 -22
- package/dist/index77.js +1 -1
- package/dist/index8.js +5 -5
- package/dist/index80.js +1 -1
- package/dist/index81.js +1 -1
- package/dist/index82.js +1 -1
- package/dist/index84.js +48 -118
- package/dist/index85.js +10 -134
- package/dist/index86.js +4 -14
- package/dist/index87.js +29 -68
- package/dist/index88.js +11 -13
- package/dist/index89.js +124 -8
- package/dist/index9.js +21 -21
- package/dist/index90.js +15 -50
- package/dist/index91.js +127 -40
- package/dist/index92.js +218 -5
- package/dist/index93.js +14 -25
- package/dist/index94.js +66 -12
- package/dist/index95.js +44 -646
- package/dist/index96.js +50 -9
- package/dist/index97.js +9 -55
- package/dist/index98.js +3 -10
- package/dist/index99.js +6 -4
- package/package.json +1 -1
package/dist/index150.js
CHANGED
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return null;
|
|
5
|
-
var t = document.createElement("style");
|
|
6
|
-
t.type = "text/css";
|
|
7
|
-
var e = o();
|
|
8
|
-
return e && t.setAttribute("nonce", e), t;
|
|
9
|
-
}
|
|
10
|
-
function l(t, e) {
|
|
11
|
-
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
-
}
|
|
13
|
-
function a(t) {
|
|
14
|
-
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
-
e.appendChild(t);
|
|
16
|
-
}
|
|
17
|
-
var c = function() {
|
|
18
|
-
var t = 0, e = null;
|
|
19
|
-
return {
|
|
20
|
-
add: function(n) {
|
|
21
|
-
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
-
},
|
|
23
|
-
remove: function() {
|
|
24
|
-
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
1
|
+
var e = function() {
|
|
2
|
+
if (typeof __webpack_nonce__ < "u")
|
|
3
|
+
return __webpack_nonce__;
|
|
27
4
|
};
|
|
28
5
|
export {
|
|
29
|
-
|
|
6
|
+
e as getNonce
|
|
30
7
|
};
|
package/dist/index151.js
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var a = {
|
|
2
|
+
left: 0,
|
|
3
|
+
top: 0,
|
|
4
|
+
right: 0,
|
|
5
|
+
gap: 0
|
|
6
|
+
}, e = function(t) {
|
|
7
|
+
return parseInt(t || "", 10) || 0;
|
|
8
|
+
}, o = function(t) {
|
|
9
|
+
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
|
10
|
+
return [e(i), e(r), e(d)];
|
|
11
|
+
}, f = function(t) {
|
|
12
|
+
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
13
|
+
return a;
|
|
14
|
+
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
|
15
|
+
return {
|
|
16
|
+
left: n[0],
|
|
17
|
+
top: n[1],
|
|
18
|
+
right: n[2],
|
|
19
|
+
gap: Math.max(0, r - i + n[2] - n[0])
|
|
20
|
+
};
|
|
4
21
|
};
|
|
5
22
|
export {
|
|
6
|
-
|
|
23
|
+
f as getGapWidth,
|
|
24
|
+
a as zeroGap
|
|
7
25
|
};
|
package/dist/index17.js
CHANGED
|
@@ -1,142 +1,141 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { Root as w, Trigger as
|
|
4
|
-
import { cn as
|
|
1
|
+
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { Root as w, Trigger as h, Group as N, Portal as d, Sub as v, RadioGroup as R, Content as m, Item as l, CheckboxItem as c, ItemIndicator as u, RadioItem as f, Label as y, Separator as b, SubContent as g, SubTrigger as x } from "./index69.js";
|
|
4
|
+
import { cn as n } from "./index2.js";
|
|
5
5
|
import D from "./index53.js";
|
|
6
|
-
import M from "./
|
|
7
|
-
import S from "./
|
|
8
|
-
const H = w, J =
|
|
9
|
-
|
|
6
|
+
import M from "./index57.js";
|
|
7
|
+
import S from "./index70.js";
|
|
8
|
+
const H = w, J = h, K = N, O = d, Q = v, U = R, I = s.forwardRef(({ className: e, inset: r, children: o, ...t }, i) => /* @__PURE__ */ p(
|
|
9
|
+
x,
|
|
10
10
|
{
|
|
11
11
|
ref: i,
|
|
12
|
-
className:
|
|
12
|
+
className: n(
|
|
13
13
|
"flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none hover:bg-primary/20 focus:bg-primary/20 data-[state=open]:bg-primary/20 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
14
|
-
|
|
14
|
+
r && "pl-8",
|
|
15
15
|
e
|
|
16
16
|
),
|
|
17
|
-
...
|
|
17
|
+
...t,
|
|
18
18
|
children: [
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */
|
|
19
|
+
o,
|
|
20
|
+
/* @__PURE__ */ a(S, { className: "ml-auto" })
|
|
21
21
|
]
|
|
22
22
|
}
|
|
23
23
|
));
|
|
24
|
-
I.displayName =
|
|
25
|
-
const C =
|
|
24
|
+
I.displayName = x.displayName;
|
|
25
|
+
const C = s.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
|
|
26
26
|
g,
|
|
27
27
|
{
|
|
28
|
-
ref:
|
|
29
|
-
className:
|
|
30
|
-
"z-[60] min-w-[8rem] overflow-hidden border-2 border-primary bg-black p-1 text-primary
|
|
28
|
+
ref: o,
|
|
29
|
+
className: n(
|
|
30
|
+
"z-[60] min-w-[8rem] overflow-hidden border-2 border-primary bg-black p-1 text-primary",
|
|
31
31
|
e
|
|
32
32
|
),
|
|
33
|
-
...
|
|
33
|
+
...r
|
|
34
34
|
}
|
|
35
35
|
));
|
|
36
36
|
C.displayName = g.displayName;
|
|
37
|
-
const k =
|
|
38
|
-
|
|
37
|
+
const k = s.forwardRef(({ className: e, sideOffset: r = 4, ...o }, t) => /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(
|
|
38
|
+
m,
|
|
39
39
|
{
|
|
40
|
-
ref:
|
|
41
|
-
sideOffset:
|
|
42
|
-
className:
|
|
40
|
+
ref: t,
|
|
41
|
+
sideOffset: r,
|
|
42
|
+
className: n(
|
|
43
43
|
"z-[60] min-w-[8rem] overflow-hidden border-2 border-primary bg-black p-1 text-primary",
|
|
44
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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",
|
|
45
44
|
e
|
|
46
45
|
),
|
|
47
|
-
...
|
|
46
|
+
...o
|
|
48
47
|
}
|
|
49
48
|
) }));
|
|
50
|
-
k.displayName =
|
|
51
|
-
const
|
|
52
|
-
|
|
49
|
+
k.displayName = m.displayName;
|
|
50
|
+
const G = s.forwardRef(({ className: e, inset: r, ...o }, t) => /* @__PURE__ */ a(
|
|
51
|
+
l,
|
|
53
52
|
{
|
|
54
|
-
ref:
|
|
55
|
-
className:
|
|
56
|
-
"relative flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none
|
|
57
|
-
|
|
53
|
+
ref: t,
|
|
54
|
+
className: n(
|
|
55
|
+
"relative flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
56
|
+
r && "pl-8",
|
|
58
57
|
e
|
|
59
58
|
),
|
|
60
|
-
...
|
|
59
|
+
...o
|
|
61
60
|
}
|
|
62
61
|
));
|
|
63
|
-
|
|
64
|
-
const
|
|
62
|
+
G.displayName = l.displayName;
|
|
63
|
+
const T = s.forwardRef(({ className: e, children: r, checked: o, ...t }, i) => /* @__PURE__ */ p(
|
|
65
64
|
c,
|
|
66
65
|
{
|
|
67
66
|
ref: i,
|
|
68
|
-
className:
|
|
69
|
-
"relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none
|
|
67
|
+
className: n(
|
|
68
|
+
"relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
70
69
|
e
|
|
71
70
|
),
|
|
72
|
-
checked:
|
|
73
|
-
...
|
|
71
|
+
checked: o,
|
|
72
|
+
...t,
|
|
74
73
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
|
|
74
|
+
/* @__PURE__ */ a("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(u, { children: /* @__PURE__ */ a(D, { className: "h-4 w-4" }) }) }),
|
|
75
|
+
r
|
|
77
76
|
]
|
|
78
77
|
}
|
|
79
78
|
));
|
|
80
|
-
|
|
81
|
-
const
|
|
79
|
+
T.displayName = c.displayName;
|
|
80
|
+
const j = s.forwardRef(({ className: e, children: r, ...o }, t) => /* @__PURE__ */ p(
|
|
82
81
|
f,
|
|
83
82
|
{
|
|
84
|
-
ref:
|
|
85
|
-
className:
|
|
86
|
-
"relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none
|
|
83
|
+
ref: t,
|
|
84
|
+
className: n(
|
|
85
|
+
"relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
87
86
|
e
|
|
88
87
|
),
|
|
89
|
-
...
|
|
88
|
+
...o,
|
|
90
89
|
children: [
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
|
|
90
|
+
/* @__PURE__ */ a("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(u, { children: /* @__PURE__ */ a(M, { className: "h-4 w-4 fill-current" }) }) }),
|
|
91
|
+
r
|
|
93
92
|
]
|
|
94
93
|
}
|
|
95
94
|
));
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
|
|
95
|
+
j.displayName = f.displayName;
|
|
96
|
+
const z = s.forwardRef(({ className: e, inset: r, ...o }, t) => /* @__PURE__ */ a(
|
|
97
|
+
y,
|
|
99
98
|
{
|
|
100
|
-
ref:
|
|
101
|
-
className:
|
|
99
|
+
ref: t,
|
|
100
|
+
className: n(
|
|
102
101
|
"px-2 py-1.5 text-sm font-semibold",
|
|
103
|
-
|
|
102
|
+
r && "pl-8",
|
|
104
103
|
e
|
|
105
104
|
),
|
|
106
|
-
...
|
|
105
|
+
...o
|
|
107
106
|
}
|
|
108
107
|
));
|
|
109
|
-
|
|
110
|
-
const L =
|
|
111
|
-
|
|
108
|
+
z.displayName = y.displayName;
|
|
109
|
+
const L = s.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
|
|
110
|
+
b,
|
|
112
111
|
{
|
|
113
|
-
ref:
|
|
114
|
-
className:
|
|
115
|
-
...
|
|
112
|
+
ref: o,
|
|
113
|
+
className: n("-mx-1 my-1 h-px bg-muted", e),
|
|
114
|
+
...r
|
|
116
115
|
}
|
|
117
116
|
));
|
|
118
|
-
L.displayName =
|
|
117
|
+
L.displayName = b.displayName;
|
|
119
118
|
const P = ({
|
|
120
119
|
className: e,
|
|
121
|
-
...
|
|
122
|
-
}) => /* @__PURE__ */
|
|
120
|
+
...r
|
|
121
|
+
}) => /* @__PURE__ */ a(
|
|
123
122
|
"span",
|
|
124
123
|
{
|
|
125
|
-
className:
|
|
126
|
-
...
|
|
124
|
+
className: n("ml-auto text-xs tracking-widest text-primary border border-primary px-1", e),
|
|
125
|
+
...r
|
|
127
126
|
}
|
|
128
127
|
);
|
|
129
128
|
P.displayName = "DropdownMenuShortcut";
|
|
130
129
|
export {
|
|
131
130
|
H as DropdownMenu,
|
|
132
|
-
|
|
131
|
+
T as DropdownMenuCheckboxItem,
|
|
133
132
|
k as DropdownMenuContent,
|
|
134
133
|
K as DropdownMenuGroup,
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
G as DropdownMenuItem,
|
|
135
|
+
z as DropdownMenuLabel,
|
|
137
136
|
O as DropdownMenuPortal,
|
|
138
137
|
U as DropdownMenuRadioGroup,
|
|
139
|
-
|
|
138
|
+
j as DropdownMenuRadioItem,
|
|
140
139
|
L as DropdownMenuSeparator,
|
|
141
140
|
P as DropdownMenuShortcut,
|
|
142
141
|
Q as DropdownMenuSub,
|
package/dist/index18.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { Root as F } from "./
|
|
4
|
-
import { FormProvider as u, useFormContext as p, Controller as x } from "./
|
|
3
|
+
import { Root as F } from "./index58.js";
|
|
4
|
+
import { FormProvider as u, useFormContext as p, Controller as x } from "./index59.js";
|
|
5
5
|
import { cn as a } from "./index2.js";
|
|
6
6
|
import { Label as I } from "./index20.js";
|
|
7
7
|
const D = u, f = s.createContext(
|
package/dist/index19.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { cn as f } from "./index2.js";
|
|
4
|
-
const
|
|
4
|
+
const m = t.forwardRef(
|
|
5
5
|
({ className: r, type: e, ...i }, l) => /* @__PURE__ */ o(
|
|
6
6
|
"input",
|
|
7
7
|
{
|
|
8
8
|
type: e,
|
|
9
9
|
className: f(
|
|
10
|
-
"flex h-10 w-full border-2 border-primary bg-black px-3 py-1 text-base text-primary
|
|
10
|
+
"flex h-10 w-full border-2 border-primary bg-black px-3 py-1 text-base text-primary file:-ml-3 file:-my-1 file:mr-4 file:h-10 file:px-3 file:border-0 file:border-r file:border-primary file:bg-primary file:text-primary-foreground file:text-sm file:font-medium file:cursor-pointer hover:file:bg-black hover:file:text-primary placeholder:text-primary/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
11
11
|
r
|
|
12
12
|
),
|
|
13
13
|
ref: l,
|
|
@@ -15,7 +15,7 @@ const a = t.forwardRef(
|
|
|
15
15
|
}
|
|
16
16
|
)
|
|
17
17
|
);
|
|
18
|
-
|
|
18
|
+
m.displayName = "Input";
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
m as Input
|
|
21
21
|
};
|
package/dist/index21.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { Root as
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
6
|
-
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { Root as m, Trigger as s, Anchor as i, Portal as l, Content as r } from "./index49.js";
|
|
4
|
+
import { cn as d } from "./index2.js";
|
|
5
|
+
const h = m, v = s, y = i, f = c.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...a }, p) => /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(
|
|
6
|
+
r,
|
|
7
7
|
{
|
|
8
|
-
ref:
|
|
9
|
-
align:
|
|
10
|
-
sideOffset:
|
|
11
|
-
className:
|
|
12
|
-
"z-50 w-72 border-2 border-primary bg-black p-4 text-primary outline-none
|
|
8
|
+
ref: p,
|
|
9
|
+
align: t,
|
|
10
|
+
sideOffset: n,
|
|
11
|
+
className: d(
|
|
12
|
+
"z-50 w-72 border-2 border-primary bg-black p-4 text-primary outline-none",
|
|
13
13
|
e
|
|
14
14
|
),
|
|
15
|
-
...
|
|
15
|
+
...a
|
|
16
16
|
}
|
|
17
17
|
) }));
|
|
18
|
-
f.displayName =
|
|
18
|
+
f.displayName = r.displayName;
|
|
19
19
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
h as Popover,
|
|
21
|
+
y as PopoverAnchor,
|
|
22
22
|
f as PopoverContent,
|
|
23
|
-
|
|
23
|
+
v as PopoverTrigger
|
|
24
24
|
};
|
package/dist/index22.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { Root as d, Indicator as l } from "./
|
|
1
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { Root as d, Indicator as l } from "./index65.js";
|
|
4
4
|
import { cn as c } from "./index2.js";
|
|
5
|
-
const f =
|
|
5
|
+
const f = n.forwardRef(
|
|
6
6
|
({
|
|
7
|
-
className:
|
|
8
|
-
value:
|
|
9
|
-
showPercentage:
|
|
7
|
+
className: i,
|
|
8
|
+
value: s = 0,
|
|
9
|
+
showPercentage: t = !1,
|
|
10
10
|
label: r,
|
|
11
|
-
...
|
|
12
|
-
},
|
|
13
|
-
(r ||
|
|
14
|
-
r && /* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
Math.round(
|
|
11
|
+
...m
|
|
12
|
+
}, a) => /* @__PURE__ */ e("div", { className: "w-full min-w-[200px]", children: [
|
|
13
|
+
(r || t) && /* @__PURE__ */ e("div", { className: "flex justify-center items-center gap-2 mb-2 font-mono text-sm font-bold text-primary", children: [
|
|
14
|
+
r && /* @__PURE__ */ o("span", { children: r }),
|
|
15
|
+
t && /* @__PURE__ */ e("span", { children: [
|
|
16
|
+
Math.round(s),
|
|
17
17
|
"%"
|
|
18
18
|
] })
|
|
19
19
|
] }),
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ o(
|
|
21
21
|
d,
|
|
22
22
|
{
|
|
23
|
-
ref:
|
|
24
|
-
className: c("relative h-6 w-full overflow-hidden bg-background border-2 border-primary",
|
|
25
|
-
...
|
|
26
|
-
children: /* @__PURE__ */
|
|
23
|
+
ref: a,
|
|
24
|
+
className: c("relative h-6 w-full overflow-hidden bg-background border-2 border-primary", i),
|
|
25
|
+
...m,
|
|
26
|
+
children: /* @__PURE__ */ o(
|
|
27
27
|
l,
|
|
28
28
|
{
|
|
29
|
-
className: "h-full bg-primary
|
|
30
|
-
style: { width: `${
|
|
29
|
+
className: "h-full bg-primary",
|
|
30
|
+
style: { width: `${s}%` }
|
|
31
31
|
}
|
|
32
32
|
)
|
|
33
33
|
}
|
package/dist/index23.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { Root as t, Item as s, Indicator as d } from "./
|
|
3
|
+
import { Root as t, Item as s, Indicator as d } from "./index56.js";
|
|
4
4
|
import { cn as m } from "./index2.js";
|
|
5
|
-
import l from "./
|
|
5
|
+
import l from "./index57.js";
|
|
6
6
|
const c = i.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ r(
|
|
7
7
|
t,
|
|
8
8
|
{
|
package/dist/index24.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { Root as
|
|
3
|
+
import { Root as c, Viewport as p, Corner as d, ScrollAreaScrollbar as s, ScrollAreaThumb as f } from "./index62.js";
|
|
4
4
|
import { cn as n } from "./index2.js";
|
|
5
|
-
const h = i.forwardRef(({ className: l, children: e, ...
|
|
6
|
-
|
|
5
|
+
const h = i.forwardRef(({ className: l, children: e, ...a }, o) => /* @__PURE__ */ m(
|
|
6
|
+
c,
|
|
7
7
|
{
|
|
8
|
-
ref:
|
|
8
|
+
ref: o,
|
|
9
9
|
className: n("relative overflow-hidden", l),
|
|
10
|
-
...
|
|
10
|
+
...a,
|
|
11
11
|
children: [
|
|
12
12
|
/* @__PURE__ */ r(p, { className: "h-full w-full rounded-[inherit]", children: e }),
|
|
13
13
|
/* @__PURE__ */ r(t, { orientation: "vertical" }),
|
|
@@ -16,23 +16,23 @@ const h = i.forwardRef(({ className: l, children: e, ...o }, a) => /* @__PURE__
|
|
|
16
16
|
]
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
|
-
h.displayName =
|
|
20
|
-
const t = i.forwardRef(({ className: l, orientation: e = "vertical", ...
|
|
21
|
-
|
|
19
|
+
h.displayName = c.displayName;
|
|
20
|
+
const t = i.forwardRef(({ className: l, orientation: e = "vertical", ...a }, o) => /* @__PURE__ */ r(
|
|
21
|
+
s,
|
|
22
22
|
{
|
|
23
|
-
ref:
|
|
23
|
+
ref: o,
|
|
24
24
|
orientation: e,
|
|
25
25
|
className: n(
|
|
26
|
-
"flex touch-none select-none
|
|
26
|
+
"flex touch-none select-none",
|
|
27
27
|
e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
28
28
|
e === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
29
29
|
l
|
|
30
30
|
),
|
|
31
|
-
...
|
|
31
|
+
...a,
|
|
32
32
|
children: /* @__PURE__ */ r(f, { className: "relative flex-1 bg-primary" })
|
|
33
33
|
}
|
|
34
34
|
));
|
|
35
|
-
t.displayName =
|
|
35
|
+
t.displayName = s.displayName;
|
|
36
36
|
export {
|
|
37
37
|
h as ScrollArea,
|
|
38
38
|
t as ScrollBar
|