@drjoshcsimmons/scl 0.3.1 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/components/ui/accordion/accordion.d.ts +1 -0
  2. package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
  3. package/dist/components/ui/badge/badge.d.ts +5 -1
  4. package/dist/components/ui/badge/badge.d.ts.map +1 -1
  5. package/dist/components/ui/button/button.d.ts +7 -0
  6. package/dist/components/ui/button/button.d.ts.map +1 -1
  7. package/dist/components/ui/input/input.d.ts +6 -1
  8. package/dist/components/ui/input/input.d.ts.map +1 -1
  9. package/dist/components/ui/skeleton/skeleton.d.ts +5 -2
  10. package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
  11. package/dist/components/ui/textarea/textarea.d.ts +6 -1
  12. package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
  13. package/dist/globals.css +45 -0
  14. package/dist/hooks/use-font-loaded.d.ts +2 -0
  15. package/dist/hooks/use-font-loaded.d.ts.map +1 -0
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +116 -114
  19. package/dist/index10.js +33 -28
  20. package/dist/index100.js +3 -5
  21. package/dist/index101.js +2 -2
  22. package/dist/index102.js +5 -54
  23. package/dist/index103.js +25 -30
  24. package/dist/index104.js +47 -29
  25. package/dist/index105.js +30 -4
  26. package/dist/index106.js +45 -216
  27. package/dist/index107.js +7 -46
  28. package/dist/index108.js +178 -27
  29. package/dist/index109.js +51 -44
  30. package/dist/index11.js +28 -5
  31. package/dist/index110.js +30 -9
  32. package/dist/index111.js +30 -6
  33. package/dist/index112.js +6 -48
  34. package/dist/index114.js +200 -42
  35. package/dist/index115.js +20 -204
  36. package/dist/index116.js +399 -21
  37. package/dist/index117.js +40 -392
  38. package/dist/index118.js +48 -2
  39. package/dist/index119.js +23 -51
  40. package/dist/index12.js +5 -79
  41. package/dist/index120.js +29 -65
  42. package/dist/index121.js +5 -25
  43. package/dist/index122.js +2 -29
  44. package/dist/index123.js +53 -5
  45. package/dist/index124.js +65 -2
  46. package/dist/index125.js +2 -2
  47. package/dist/index126.js +2 -5
  48. package/dist/index127.js +5 -3
  49. package/dist/index128.js +3 -24
  50. package/dist/index129.js +22 -111
  51. package/dist/index13.js +75 -12
  52. package/dist/index130.js +111 -14
  53. package/dist/index131.js +14 -523
  54. package/dist/index132.js +511 -114
  55. package/dist/index133.js +111 -117
  56. package/dist/index134.js +130 -61
  57. package/dist/index135.js +65 -69
  58. package/dist/index136.js +68 -8
  59. package/dist/index137.js +9 -14
  60. package/dist/index138.js +14 -66
  61. package/dist/index139.js +66 -4
  62. package/dist/index14.js +17 -14
  63. package/dist/index140.js +3 -22
  64. package/dist/index141.js +23 -13
  65. package/dist/index142.js +20 -25
  66. package/dist/index143.js +12 -4
  67. package/dist/index144.js +25 -20
  68. package/dist/index145.js +7 -0
  69. package/dist/index15.js +12 -17
  70. package/dist/index16.js +18 -31
  71. package/dist/index17.js +32 -25
  72. package/dist/index18.js +19 -31
  73. package/dist/index19.js +28 -129
  74. package/dist/index20.js +136 -18
  75. package/dist/index21.js +19 -11
  76. package/dist/index22.js +11 -20
  77. package/dist/index23.js +23 -15
  78. package/dist/index24.js +15 -31
  79. package/dist/index25.js +31 -35
  80. package/dist/index26.js +35 -15
  81. package/dist/index27.js +15 -13
  82. package/dist/index28.js +11 -20
  83. package/dist/index29.js +23 -99
  84. package/dist/index3.js +10 -22
  85. package/dist/index30.js +99 -38
  86. package/dist/index31.js +38 -10
  87. package/dist/index32.js +10 -48
  88. package/dist/index33.js +47 -64
  89. package/dist/index34.js +66 -236
  90. package/dist/{index63.js → index38.js} +14 -14
  91. package/dist/index4.js +22 -53
  92. package/dist/index40.js +239 -0
  93. package/dist/{index59.js → index42.js} +1 -1
  94. package/dist/index45.js +507 -236
  95. package/dist/index47.js +860 -18
  96. package/dist/index5.js +52 -24
  97. package/dist/index50.js +91 -197
  98. package/dist/{index65.js → index53.js} +8 -8
  99. package/dist/index55.js +221 -822
  100. package/dist/{index67.js → index58.js} +6 -6
  101. package/dist/index6.js +24 -34
  102. package/dist/index61.js +310 -504
  103. package/dist/{index43.js → index64.js} +7 -7
  104. package/dist/{index57.js → index66.js} +2 -2
  105. package/dist/{index52.js → index68.js} +3 -3
  106. package/dist/index7.js +34 -6
  107. package/dist/index70.js +238 -0
  108. package/dist/{index69.js → index72.js} +7 -7
  109. package/dist/{index36.js → index74.js} +1 -1
  110. package/dist/index76.js +20 -0
  111. package/dist/index8.js +6 -21
  112. package/dist/index81.js +1 -1
  113. package/dist/index82.js +1 -1
  114. package/dist/index83.js +7 -30
  115. package/dist/index84.js +25 -5
  116. package/dist/index86.js +114 -170
  117. package/dist/index87.js +13 -67
  118. package/dist/index88.js +133 -32
  119. package/dist/index89.js +10 -7
  120. package/dist/index9.js +27 -32
  121. package/dist/index90.js +215 -48
  122. package/dist/index91.js +14 -11
  123. package/dist/index92.js +64 -120
  124. package/dist/index93.js +32 -133
  125. package/dist/index94.js +48 -14
  126. package/dist/index95.js +50 -13
  127. package/dist/index96.js +50 -9
  128. package/dist/index97.js +9 -50
  129. package/dist/index98.js +29 -47
  130. package/dist/index99.js +7 -24
  131. package/dist/tokens/index.d.ts +9 -8
  132. package/dist/tokens/index.d.ts.map +1 -1
  133. package/dist/tokens/spacing.d.ts +11 -8
  134. package/dist/tokens/spacing.d.ts.map +1 -1
  135. package/dist/tokens/typography.d.ts +1 -0
  136. package/dist/tokens/typography.d.ts.map +1 -1
  137. package/package.json +4 -5
  138. package/dist/index71.js +0 -338
  139. package/dist/index73.js +0 -132
  140. package/dist/index77.js +0 -29
  141. /package/dist/{index41.js → index35.js} +0 -0
package/dist/index137.js CHANGED
@@ -1,16 +1,11 @@
1
- var r = !1;
2
- if (typeof window < "u")
3
- try {
4
- var e = Object.defineProperty({}, "passive", {
5
- get: function() {
6
- return r = !0, !0;
7
- }
8
- });
9
- window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
10
- } catch {
11
- r = !1;
12
- }
13
- var a = r ? { passive: !1 } : !1;
1
+ import { styleHookSingleton as o } from "./index143.js";
2
+ var s = function() {
3
+ var e = o(), n = function(t) {
4
+ var r = t.styles, l = t.dynamic;
5
+ return e(r, l), null;
6
+ };
7
+ return n;
8
+ };
14
9
  export {
15
- a as nonPassive
10
+ s as styleSingleton
16
11
  };
package/dist/index138.js CHANGED
@@ -1,68 +1,16 @@
1
- var N = function(r) {
2
- return r.tagName === "TEXTAREA";
3
- }, b = function(r, e) {
4
- if (!(r instanceof Element))
5
- return !1;
6
- var t = window.getComputedStyle(r);
7
- return (
8
- // not-not-scrollable
9
- t[e] !== "hidden" && // contains scroll inside self
10
- !(t.overflowY === t.overflowX && !N(r) && t[e] === "visible")
11
- );
12
- }, D = function(r) {
13
- return b(r, "overflowY");
14
- }, E = function(r) {
15
- return b(r, "overflowX");
16
- }, T = function(r, e) {
17
- var t = e.ownerDocument, l = e;
18
- do {
19
- typeof ShadowRoot < "u" && l instanceof ShadowRoot && (l = l.host);
20
- var f = g(r, l);
21
- if (f) {
22
- var n = m(r, l), i = n[1], o = n[2];
23
- if (i > o)
24
- return !0;
25
- }
26
- l = l.parentNode;
27
- } while (l && l !== t.body);
28
- return !1;
29
- }, H = function(r) {
30
- var e = r.scrollTop, t = r.scrollHeight, l = r.clientHeight;
31
- return [
32
- e,
33
- t,
34
- l
35
- ];
36
- }, p = function(r) {
37
- var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
38
- return [
39
- e,
40
- t,
41
- l
42
- ];
43
- }, g = function(r, e) {
44
- return r === "v" ? D(e) : E(e);
45
- }, m = function(r, e) {
46
- return r === "v" ? H(e) : p(e);
47
- }, B = function(r, e) {
48
- return r === "h" && e === "rtl" ? -1 : 1;
49
- }, V = function(r, e, t, l, f) {
50
- var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
51
- do {
52
- if (!o)
53
- break;
54
- var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
55
- (v || w) && g(r, o) && (h += w, S += v);
56
- var a = o.parentNode;
57
- o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
58
- } while (
59
- // portaled content
60
- !d && o !== document.body || // self content
61
- d && (e.contains(o) || e === o)
62
- );
63
- return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
64
- };
1
+ var r = !1;
2
+ if (typeof window < "u")
3
+ try {
4
+ var e = Object.defineProperty({}, "passive", {
5
+ get: function() {
6
+ return r = !0, !0;
7
+ }
8
+ });
9
+ window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
10
+ } catch {
11
+ r = !1;
12
+ }
13
+ var a = r ? { passive: !1 } : !1;
65
14
  export {
66
- V as handleScroll,
67
- T as locationCouldBeScrolled
15
+ a as nonPassive
68
16
  };
package/dist/index139.js CHANGED
@@ -1,6 +1,68 @@
1
- function i(n, t) {
2
- return typeof n == "function" ? n(t) : n && (n.current = t), n;
3
- }
1
+ var N = function(r) {
2
+ return r.tagName === "TEXTAREA";
3
+ }, b = function(r, e) {
4
+ if (!(r instanceof Element))
5
+ return !1;
6
+ var t = window.getComputedStyle(r);
7
+ return (
8
+ // not-not-scrollable
9
+ t[e] !== "hidden" && // contains scroll inside self
10
+ !(t.overflowY === t.overflowX && !N(r) && t[e] === "visible")
11
+ );
12
+ }, D = function(r) {
13
+ return b(r, "overflowY");
14
+ }, E = function(r) {
15
+ return b(r, "overflowX");
16
+ }, T = function(r, e) {
17
+ var t = e.ownerDocument, l = e;
18
+ do {
19
+ typeof ShadowRoot < "u" && l instanceof ShadowRoot && (l = l.host);
20
+ var f = g(r, l);
21
+ if (f) {
22
+ var n = m(r, l), i = n[1], o = n[2];
23
+ if (i > o)
24
+ return !0;
25
+ }
26
+ l = l.parentNode;
27
+ } while (l && l !== t.body);
28
+ return !1;
29
+ }, H = function(r) {
30
+ var e = r.scrollTop, t = r.scrollHeight, l = r.clientHeight;
31
+ return [
32
+ e,
33
+ t,
34
+ l
35
+ ];
36
+ }, p = function(r) {
37
+ var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
38
+ return [
39
+ e,
40
+ t,
41
+ l
42
+ ];
43
+ }, g = function(r, e) {
44
+ return r === "v" ? D(e) : E(e);
45
+ }, m = function(r, e) {
46
+ return r === "v" ? H(e) : p(e);
47
+ }, B = function(r, e) {
48
+ return r === "h" && e === "rtl" ? -1 : 1;
49
+ }, V = function(r, e, t, l, f) {
50
+ var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
51
+ do {
52
+ if (!o)
53
+ break;
54
+ var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
55
+ (v || w) && g(r, o) && (h += w, S += v);
56
+ var a = o.parentNode;
57
+ o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
58
+ } while (
59
+ // portaled content
60
+ !d && o !== document.body || // self content
61
+ d && (e.contains(o) || e === o)
62
+ );
63
+ return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
64
+ };
4
65
  export {
5
- i as assignRef
66
+ V as handleScroll,
67
+ T as locationCouldBeScrolled
6
68
  };
package/dist/index14.js CHANGED
@@ -1,17 +1,20 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { Root as o } from "./index47.js";
3
- import * as e from "react";
4
- import { cx as p } from "./index2.js";
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import { cx as s } from "./index2.js";
5
4
  /* empty css */
6
- const s = e.forwardRef(({ className: m, ...r }, a) => /* @__PURE__ */ t(
7
- o,
8
- {
9
- ref: a,
10
- className: p("scl-label", m),
11
- ...r
12
- }
13
- ));
14
- s.displayName = o.displayName;
5
+ const c = n.forwardRef(
6
+ ({ className: r, type: a, error: i, "aria-invalid": t, ...p }, o) => /* @__PURE__ */ m(
7
+ "input",
8
+ {
9
+ type: a,
10
+ className: s("scl-input", i && "scl-input--error", r),
11
+ ref: o,
12
+ "aria-invalid": t ?? i,
13
+ ...p
14
+ }
15
+ )
16
+ );
17
+ c.displayName = "Input";
15
18
  export {
16
- s as Label
19
+ c as Input
17
20
  };
package/dist/index140.js CHANGED
@@ -1,25 +1,6 @@
1
- import { useState as u } from "react";
2
- function n(c, r) {
3
- var e = u(function() {
4
- return {
5
- // value
6
- value: c,
7
- // last callback
8
- callback: r,
9
- // "memoized" public interface
10
- facade: {
11
- get current() {
12
- return e.value;
13
- },
14
- set current(a) {
15
- var t = e.value;
16
- t !== a && (e.value = a, e.callback(a, t));
17
- }
18
- }
19
- };
20
- })[0];
21
- return e.callback = r, e.facade;
1
+ function i(n, t) {
2
+ return typeof n == "function" ? n(t) : n && (n.current = t), n;
22
3
  }
23
4
  export {
24
- n as useCallbackRef
5
+ i as assignRef
25
6
  };
package/dist/index141.js CHANGED
@@ -1,15 +1,25 @@
1
- import * as o from "react";
2
- import { stylesheetSingleton as r } from "./index142.js";
3
- var i = function() {
4
- var t = r();
5
- return function(e, n) {
6
- o.useEffect(function() {
7
- return t.add(e), function() {
8
- t.remove();
9
- };
10
- }, [e && n]);
11
- };
12
- };
1
+ import { useState as u } from "react";
2
+ function n(c, r) {
3
+ var e = u(function() {
4
+ return {
5
+ // value
6
+ value: c,
7
+ // last callback
8
+ callback: r,
9
+ // "memoized" public interface
10
+ facade: {
11
+ get current() {
12
+ return e.value;
13
+ },
14
+ set current(a) {
15
+ var t = e.value;
16
+ t !== a && (e.value = a, e.callback(a, t));
17
+ }
18
+ }
19
+ };
20
+ })[0];
21
+ return e.callback = r, e.facade;
22
+ }
13
23
  export {
14
- i as styleHookSingleton
24
+ n as useCallbackRef
15
25
  };
package/dist/index142.js CHANGED
@@ -1,30 +1,25 @@
1
- import { getNonce as o } from "./index143.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;
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;
19
15
  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
- }
16
+ left: n[0],
17
+ top: n[1],
18
+ right: n[2],
19
+ gap: Math.max(0, r - i + n[2] - n[0])
26
20
  };
27
21
  };
28
22
  export {
29
- c as stylesheetSingleton
23
+ f as getGapWidth,
24
+ a as zeroGap
30
25
  };
package/dist/index143.js CHANGED
@@ -1,7 +1,15 @@
1
- var e = function() {
2
- if (typeof __webpack_nonce__ < "u")
3
- return __webpack_nonce__;
1
+ import * as o from "react";
2
+ import { stylesheetSingleton as r } from "./index144.js";
3
+ var i = function() {
4
+ var t = r();
5
+ return function(e, n) {
6
+ o.useEffect(function() {
7
+ return t.add(e), function() {
8
+ t.remove();
9
+ };
10
+ }, [e && n]);
11
+ };
4
12
  };
5
13
  export {
6
- e as getNonce
14
+ i as styleHookSingleton
7
15
  };
package/dist/index144.js CHANGED
@@ -1,25 +1,30 @@
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;
1
+ import { getNonce as o } from "./index145.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;
15
19
  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
+ 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
+ }
20
26
  };
21
27
  };
22
28
  export {
23
- f as getGapWidth,
24
- a as zeroGap
29
+ c as stylesheetSingleton
25
30
  };
@@ -0,0 +1,7 @@
1
+ var e = function() {
2
+ if (typeof __webpack_nonce__ < "u")
3
+ return __webpack_nonce__;
4
+ };
5
+ export {
6
+ e as getNonce
7
+ };
package/dist/index15.js CHANGED
@@ -1,22 +1,17 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { Root as s, Anchor as a, Trigger as m, Portal as i, Content as r } from "./index63.js";
3
- import * as f from "react";
4
- import { cx as l } from "./index2.js";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { Root as o } from "./index76.js";
3
+ import * as e from "react";
4
+ import { cx as p } from "./index2.js";
5
5
  /* empty css */
6
- const R = s, x = m, A = a, v = f.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...c }, p) => /* @__PURE__ */ o(i, { children: /* @__PURE__ */ o(
7
- r,
6
+ const s = e.forwardRef(({ className: m, ...r }, a) => /* @__PURE__ */ t(
7
+ o,
8
8
  {
9
- ref: p,
10
- align: e,
11
- sideOffset: n,
12
- className: l("scl-popover-content", t),
13
- ...c
9
+ ref: a,
10
+ className: p("scl-label", m),
11
+ ...r
14
12
  }
15
- ) }));
16
- v.displayName = r.displayName;
13
+ ));
14
+ s.displayName = o.displayName;
17
15
  export {
18
- R as Popover,
19
- A as PopoverAnchor,
20
- v as PopoverContent,
21
- x as PopoverTrigger
16
+ s as Label
22
17
  };
package/dist/index16.js CHANGED
@@ -1,35 +1,22 @@
1
- import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
- import { Root as m, Indicator as t } from "./index57.js";
3
- import * as d from "react";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Root as s, Anchor as a, Trigger as m, Portal as i, Content as r } from "./index38.js";
3
+ import * as f from "react";
4
4
  import { cx as l } from "./index2.js";
5
5
  /* empty css */
6
- const n = d.forwardRef(
7
- ({ className: c, value: e = 0, showPercentage: a = !1, label: r, ...i }, p) => /* @__PURE__ */ s("div", { className: "scl-progress-wrapper", children: [
8
- (r || a) && /* @__PURE__ */ s("div", { className: "scl-progress-label", children: [
9
- r && /* @__PURE__ */ o("span", { children: r }),
10
- a && /* @__PURE__ */ s("span", { children: [
11
- Math.round(e),
12
- "%"
13
- ] })
14
- ] }),
15
- /* @__PURE__ */ o(
16
- m,
17
- {
18
- ref: p,
19
- className: l("scl-progress", c),
20
- ...i,
21
- children: /* @__PURE__ */ o(
22
- t,
23
- {
24
- className: "scl-progress__indicator",
25
- style: { width: `${e}%` }
26
- }
27
- )
28
- }
29
- )
30
- ] })
31
- );
32
- n.displayName = "Progress";
6
+ const R = s, x = m, A = a, v = f.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...c }, p) => /* @__PURE__ */ o(i, { children: /* @__PURE__ */ o(
7
+ r,
8
+ {
9
+ ref: p,
10
+ align: e,
11
+ sideOffset: n,
12
+ className: l("scl-popover-content", t),
13
+ ...c
14
+ }
15
+ ) }));
16
+ v.displayName = r.displayName;
33
17
  export {
34
- n as Progress
18
+ R as Popover,
19
+ A as PopoverAnchor,
20
+ v as PopoverContent,
21
+ x as PopoverTrigger
35
22
  };
package/dist/index17.js CHANGED
@@ -1,28 +1,35 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { Root as i, Item as m, Indicator as d } from "./index50.js";
3
- import * as e from "react";
4
- import { cx as t } from "./index2.js";
1
+ import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
+ import { Root as l, Indicator as p } from "./index66.js";
3
+ import * as m from "react";
4
+ import { cx as d } from "./index2.js";
5
5
  /* empty css */
6
- const p = e.forwardRef(({ className: r, ...a }, s) => /* @__PURE__ */ o(
7
- i,
8
- {
9
- className: t("scl-radio-group", r),
10
- ...a,
11
- ref: s
12
- }
13
- ));
14
- p.displayName = i.displayName;
15
- const c = e.forwardRef(({ className: r, ...a }, s) => /* @__PURE__ */ o(
16
- m,
17
- {
18
- ref: s,
19
- className: t("scl-radio-group__item", r),
20
- ...a,
21
- children: /* @__PURE__ */ o(d, { className: "scl-radio-group__indicator", children: /* @__PURE__ */ o("span", { className: "scl-radio-group__dot" }) })
22
- }
23
- ));
24
- c.displayName = m.displayName;
6
+ const n = m.forwardRef(
7
+ ({ className: i, value: e = 0, showPercentage: a = !1, label: r, ...c }, t) => /* @__PURE__ */ s("div", { className: "scl-progress-wrapper", children: [
8
+ (r || a) && /* @__PURE__ */ s("div", { className: "scl-progress-label", role: "status", "aria-live": "polite", children: [
9
+ r && /* @__PURE__ */ o("span", { children: r }),
10
+ a && /* @__PURE__ */ s("span", { children: [
11
+ Math.round(e),
12
+ "%"
13
+ ] })
14
+ ] }),
15
+ /* @__PURE__ */ o(
16
+ l,
17
+ {
18
+ ref: t,
19
+ className: d("scl-progress", i),
20
+ ...c,
21
+ children: /* @__PURE__ */ o(
22
+ p,
23
+ {
24
+ className: "scl-progress__indicator",
25
+ style: { width: `${e}%` }
26
+ }
27
+ )
28
+ }
29
+ )
30
+ ] })
31
+ );
32
+ n.displayName = "Progress";
25
33
  export {
26
- p as RadioGroup,
27
- c as RadioGroupItem
34
+ n as Progress
28
35
  };
package/dist/index18.js CHANGED
@@ -1,40 +1,28 @@
1
- import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
- import { Root as e, Viewport as _, Corner as d, ScrollAreaScrollbar as i, ScrollAreaThumb as f } from "./index61.js";
3
- import * as t from "react";
4
- import { cx as m } from "./index2.js";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Root as i, Item as m, Indicator as d } from "./index70.js";
3
+ import * as e from "react";
4
+ import { cx as t } from "./index2.js";
5
5
  /* empty css */
6
- const n = t.forwardRef(({ className: a, children: l, ...o }, c) => /* @__PURE__ */ p(
7
- e,
6
+ const p = e.forwardRef(({ className: r, ...a }, s) => /* @__PURE__ */ o(
7
+ i,
8
8
  {
9
- ref: c,
10
- className: m("scl-scroll-area", a),
11
- ...o,
12
- children: [
13
- /* @__PURE__ */ r(_, { className: "scl-scroll-area__viewport", children: l }),
14
- /* @__PURE__ */ r(s, { orientation: "vertical" }),
15
- /* @__PURE__ */ r(s, { orientation: "horizontal" }),
16
- /* @__PURE__ */ r(d, {})
17
- ]
9
+ className: t("scl-radio-group", r),
10
+ ...a,
11
+ ref: s
18
12
  }
19
13
  ));
20
- n.displayName = e.displayName;
21
- const s = t.forwardRef(({ className: a, orientation: l = "vertical", ...o }, c) => /* @__PURE__ */ r(
22
- i,
14
+ p.displayName = i.displayName;
15
+ const c = e.forwardRef(({ className: r, ...a }, s) => /* @__PURE__ */ o(
16
+ m,
23
17
  {
24
- ref: c,
25
- orientation: l,
26
- className: m(
27
- "scl-scroll-area__scrollbar",
28
- l === "vertical" && "scl-scroll-area__scrollbar--vertical",
29
- l === "horizontal" && "scl-scroll-area__scrollbar--horizontal",
30
- a
31
- ),
32
- ...o,
33
- children: /* @__PURE__ */ r(f, { className: "scl-scroll-area__thumb" })
18
+ ref: s,
19
+ className: t("scl-radio-group__item", r),
20
+ ...a,
21
+ children: /* @__PURE__ */ o(d, { className: "scl-radio-group__indicator", children: /* @__PURE__ */ o("span", { className: "scl-radio-group__dot" }) })
34
22
  }
35
23
  ));
36
- s.displayName = i.displayName;
24
+ c.displayName = m.displayName;
37
25
  export {
38
- n as ScrollArea,
39
- s as ScrollBar
26
+ p as RadioGroup,
27
+ c as RadioGroupItem
40
28
  };