@drjoshcsimmons/scl 0.2.4 → 0.2.7

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/index100.js +12 -178
  2. package/dist/index101.js +5 -54
  3. package/dist/index102.js +25 -30
  4. package/dist/index103.js +55 -30
  5. package/dist/index104.js +30 -15
  6. package/dist/index105.js +219 -30
  7. package/dist/index106.js +7 -46
  8. package/dist/index107.js +29 -47
  9. package/dist/index108.js +177 -51
  10. package/dist/index109.js +650 -30
  11. package/dist/index11.js +2 -2
  12. package/dist/index110.js +30 -13
  13. package/dist/index111.js +44 -646
  14. package/dist/index112.js +46 -7
  15. package/dist/index113.js +6 -48
  16. package/dist/index115.js +47 -11
  17. package/dist/index116.js +10 -204
  18. package/dist/index117.js +20 -21
  19. package/dist/index118.js +9 -400
  20. package/dist/index119.js +32 -15
  21. package/dist/index12.js +1 -1
  22. package/dist/index120.js +12 -3
  23. package/dist/index121.js +206 -38
  24. package/dist/index122.js +22 -18
  25. package/dist/index123.js +400 -6
  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 +2 -2
  32. package/dist/index130.js +5 -65
  33. package/dist/index131.js +2 -5
  34. package/dist/index132.js +2 -3
  35. package/dist/index133.js +5 -24
  36. package/dist/index134.js +3 -113
  37. package/dist/index135.js +23 -15
  38. package/dist/index136.js +107 -519
  39. package/dist/index137.js +14 -126
  40. package/dist/index138.js +516 -125
  41. package/dist/index139.js +128 -2
  42. package/dist/index14.js +2 -2
  43. package/dist/index140.js +134 -2
  44. package/dist/index141.js +1 -1
  45. package/dist/index145.js +1 -1
  46. package/dist/index15.js +2 -2
  47. package/dist/index17.js +4 -4
  48. package/dist/index18.js +2 -2
  49. package/dist/index20.js +1 -1
  50. package/dist/index21.js +1 -1
  51. package/dist/index22.js +1 -1
  52. package/dist/index23.js +2 -2
  53. package/dist/index24.js +1 -1
  54. package/dist/index25.js +3 -3
  55. package/dist/index26.js +1 -1
  56. package/dist/index27.js +2 -2
  57. package/dist/index29.js +1 -1
  58. package/dist/index31.js +1 -1
  59. package/dist/index33.js +1 -1
  60. package/dist/index36.js +1 -1
  61. package/dist/index37.js +1 -1
  62. package/dist/index45.js +1 -1
  63. package/dist/index46.js +1 -1
  64. package/dist/index48.js +70 -57
  65. package/dist/index49.js +114 -107
  66. package/dist/index50.js +517 -112
  67. package/dist/index51.js +227 -402
  68. package/dist/index52.js +12 -860
  69. package/dist/index53.js +60 -9
  70. package/dist/index54.js +18 -9
  71. package/dist/index55.js +12 -130
  72. package/dist/index56.js +9 -530
  73. package/dist/index57.js +302 -153
  74. package/dist/index58.js +12 -82
  75. package/dist/index59.js +80 -16
  76. package/dist/index6.js +1 -1
  77. package/dist/index60.js +91 -197
  78. package/dist/index61.js +435 -11
  79. package/dist/index62.js +245 -27
  80. package/dist/index63.js +215 -300
  81. package/dist/index64.js +3 -4
  82. package/dist/index65.js +11 -260
  83. package/dist/index66.js +336 -12
  84. package/dist/index67.js +160 -21
  85. package/dist/index68.js +18 -221
  86. package/dist/index69.js +860 -11
  87. package/dist/index7.js +1 -1
  88. package/dist/index70.js +9 -241
  89. package/dist/index71.js +30 -72
  90. package/dist/index72.js +254 -12
  91. package/dist/index73.js +212 -225
  92. package/dist/index74.js +103 -321
  93. package/dist/index75.js +235 -248
  94. package/dist/index77.js +1 -1
  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 +55 -4
  99. package/dist/index85.js +10 -68
  100. package/dist/index86.js +4 -9
  101. package/dist/index87.js +30 -4
  102. package/dist/index88.js +12 -5
  103. package/dist/index89.js +8 -24
  104. package/dist/index9.js +1 -1
  105. package/dist/index90.js +64 -120
  106. package/dist/index91.js +3 -14
  107. package/dist/index92.js +115 -125
  108. package/dist/index93.js +128 -212
  109. package/dist/index94.js +1 -1
  110. package/dist/index95.js +13 -46
  111. package/dist/index96.js +8 -10
  112. package/dist/index97.js +50 -30
  113. package/dist/index98.js +47 -49
  114. package/dist/index99.js +30 -9
  115. package/package.json +5 -3
package/dist/index53.js CHANGED
@@ -1,11 +1,62 @@
1
- import e from "./index119.js";
2
- /**
3
- * @license lucide-react v0.460.0 - ISC
4
- *
5
- * This source code is licensed under the ISC license.
6
- * See the LICENSE file in the root directory of this source tree.
7
- */
8
- const t = e("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
1
+ import * as o from "react";
2
+ import { composeRefs as S } from "./index78.js";
3
+ import { jsx as y } from "react/jsx-runtime";
4
+ var E = Symbol.for("react.lazy"), p = o[" use ".trim().toString()];
5
+ function g(t) {
6
+ return typeof t == "object" && t !== null && "then" in t;
7
+ }
8
+ function d(t) {
9
+ return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === E && "_payload" in t && g(t._payload);
10
+ }
11
+ // @__NO_SIDE_EFFECTS__
12
+ function C(t) {
13
+ const n = /* @__PURE__ */ R(t), i = o.forwardRef((e, r) => {
14
+ let { children: l, ...a } = e;
15
+ d(l) && typeof p == "function" && (l = p(l._payload));
16
+ const s = o.Children.toArray(l), f = s.find(b);
17
+ if (f) {
18
+ const c = f.props.children, m = s.map((u) => u === f ? o.Children.count(c) > 1 ? o.Children.only(null) : o.isValidElement(c) ? c.props.children : null : u);
19
+ return /* @__PURE__ */ y(n, { ...a, ref: r, children: o.isValidElement(c) ? o.cloneElement(c, void 0, m) : null });
20
+ }
21
+ return /* @__PURE__ */ y(n, { ...a, ref: r, children: l });
22
+ });
23
+ return i.displayName = `${t}.Slot`, i;
24
+ }
25
+ var V = /* @__PURE__ */ C("Slot");
26
+ // @__NO_SIDE_EFFECTS__
27
+ function R(t) {
28
+ const n = o.forwardRef((i, e) => {
29
+ let { children: r, ...l } = i;
30
+ if (d(r) && typeof p == "function" && (r = p(r._payload)), o.isValidElement(r)) {
31
+ const a = P(r), s = h(l, r.props);
32
+ return r.type !== o.Fragment && (s.ref = e ? S(e, a) : a), o.cloneElement(r, s);
33
+ }
34
+ return o.Children.count(r) > 1 ? o.Children.only(null) : null;
35
+ });
36
+ return n.displayName = `${t}.SlotClone`, n;
37
+ }
38
+ var _ = Symbol("radix.slottable");
39
+ function b(t) {
40
+ return o.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === _;
41
+ }
42
+ function h(t, n) {
43
+ const i = { ...n };
44
+ for (const e in n) {
45
+ const r = t[e], l = n[e];
46
+ /^on[A-Z]/.test(e) ? r && l ? i[e] = (...s) => {
47
+ const f = l(...s);
48
+ return r(...s), f;
49
+ } : r && (i[e] = r) : e === "style" ? i[e] = { ...r, ...l } : e === "className" && (i[e] = [r, l].filter(Boolean).join(" "));
50
+ }
51
+ return { ...t, ...i };
52
+ }
53
+ function P(t) {
54
+ var e, r;
55
+ let n = (e = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : e.get, i = n && "isReactWarning" in n && n.isReactWarning;
56
+ return i ? t.ref : (n = (r = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : r.get, i = n && "isReactWarning" in n && n.isReactWarning, i ? t.props.ref : t.props.ref || t.ref);
57
+ }
9
58
  export {
10
- t as default
59
+ V as Root,
60
+ V as Slot,
61
+ C as createSlot
11
62
  };
package/dist/index54.js CHANGED
@@ -1,11 +1,20 @@
1
- import e from "./index119.js";
2
- /**
3
- * @license lucide-react v0.460.0 - ISC
4
- *
5
- * This source code is licensed under the ISC license.
6
- * See the LICENSE file in the root directory of this source tree.
7
- */
8
- const r = e("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
1
+ import * as i from "react";
2
+ import { Primitive as f } from "./index99.js";
3
+ import { jsx as l } from "react/jsx-runtime";
4
+ var m = "Label", r = i.forwardRef((e, o) => /* @__PURE__ */ l(
5
+ f.label,
6
+ {
7
+ ...e,
8
+ ref: o,
9
+ onMouseDown: (t) => {
10
+ var a;
11
+ t.target.closest("button, input, select, textarea") || ((a = e.onMouseDown) == null || a.call(e, t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
12
+ }
13
+ }
14
+ ));
15
+ r.displayName = m;
16
+ var b = r;
9
17
  export {
10
- r as default
18
+ r as Label,
19
+ b as Root
11
20
  };
package/dist/index55.js CHANGED
@@ -1,132 +1,14 @@
1
- import * as r from "react";
2
- import { composeEventHandlers as T } from "./index79.js";
3
- import { useComposedRefs as P } from "./index78.js";
4
- import { createContextScope as I } from "./index76.js";
5
- import { useControllableState as M } from "./index80.js";
6
- import { usePrevious as H } from "./index88.js";
7
- import { useSize as j } from "./index89.js";
8
- import { Primitive as y } from "./index81.js";
9
- import { jsxs as A, jsx as m } from "react/jsx-runtime";
10
- var h = "Switch", [U] = I(h), [q, z] = U(h), R = r.forwardRef(
11
- (t, a) => {
12
- const {
13
- __scopeSwitch: e,
14
- name: c,
15
- checked: o,
16
- defaultChecked: v,
17
- required: i,
18
- disabled: n,
19
- value: p = "on",
20
- onCheckedChange: w,
21
- form: s,
22
- ...S
23
- } = t, [d, u] = r.useState(null), b = P(a, (f) => u(f)), C = r.useRef(!1), k = d ? s || !!d.closest("form") : !0, [l, B] = M({
24
- prop: o,
25
- defaultProp: v ?? !1,
26
- onChange: w,
27
- caller: h
28
- });
29
- return /* @__PURE__ */ A(q, { scope: e, checked: l, disabled: n, children: [
30
- /* @__PURE__ */ m(
31
- y.button,
32
- {
33
- type: "button",
34
- role: "switch",
35
- "aria-checked": l,
36
- "aria-required": i,
37
- "data-state": g(l),
38
- "data-disabled": n ? "" : void 0,
39
- disabled: n,
40
- value: p,
41
- ...S,
42
- ref: b,
43
- onClick: T(t.onClick, (f) => {
44
- B((N) => !N), k && (C.current = f.isPropagationStopped(), C.current || f.stopPropagation());
45
- })
46
- }
47
- ),
48
- k && /* @__PURE__ */ m(
49
- x,
50
- {
51
- control: d,
52
- bubbles: !C.current,
53
- name: c,
54
- value: p,
55
- checked: l,
56
- required: i,
57
- disabled: n,
58
- form: s,
59
- style: { transform: "translateX(-100%)" }
60
- }
61
- )
62
- ] });
63
- }
64
- );
65
- R.displayName = h;
66
- var E = "SwitchThumb", _ = r.forwardRef(
67
- (t, a) => {
68
- const { __scopeSwitch: e, ...c } = t, o = z(E, e);
69
- return /* @__PURE__ */ m(
70
- y.span,
71
- {
72
- "data-state": g(o.checked),
73
- "data-disabled": o.disabled ? "" : void 0,
74
- ...c,
75
- ref: a
76
- }
77
- );
78
- }
79
- );
80
- _.displayName = E;
81
- var L = "SwitchBubbleInput", x = r.forwardRef(
82
- ({
83
- __scopeSwitch: t,
84
- control: a,
85
- checked: e,
86
- bubbles: c = !0,
87
- ...o
88
- }, v) => {
89
- const i = r.useRef(null), n = P(i, v), p = H(e), w = j(a);
90
- return r.useEffect(() => {
91
- const s = i.current;
92
- if (!s) return;
93
- const S = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(
94
- S,
95
- "checked"
96
- ).set;
97
- if (p !== e && u) {
98
- const b = new Event("click", { bubbles: c });
99
- u.call(s, e), s.dispatchEvent(b);
100
- }
101
- }, [p, e, c]), /* @__PURE__ */ m(
102
- "input",
103
- {
104
- type: "checkbox",
105
- "aria-hidden": !0,
106
- defaultChecked: e,
107
- ...o,
108
- tabIndex: -1,
109
- ref: n,
110
- style: {
111
- ...o.style,
112
- ...w,
113
- position: "absolute",
114
- pointerEvents: "none",
115
- opacity: 0,
116
- margin: 0
117
- }
118
- }
119
- );
120
- }
121
- );
122
- x.displayName = L;
123
- function g(t) {
124
- return t ? "checked" : "unchecked";
125
- }
126
- var Q = R, V = _;
1
+ import e from "./index117.js";
2
+ /**
3
+ * @license lucide-react v0.460.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const t = e("ChevronsUpDown", [
9
+ ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
10
+ ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
11
+ ]);
127
12
  export {
128
- Q as Root,
129
- R as Switch,
130
- _ as SwitchThumb,
131
- V as Thumb
13
+ t as default
132
14
  };