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