@drjoshcsimmons/scl 0.1.9 → 0.1.10

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 (104) hide show
  1. package/dist/index10.js +21 -21
  2. package/dist/index100.js +50 -14
  3. package/dist/index102.js +9 -50
  4. package/dist/index103.js +15 -9
  5. package/dist/index104.js +218 -3
  6. package/dist/index105.js +7 -46
  7. package/dist/index108.js +47 -29
  8. package/dist/index109.js +30 -181
  9. package/dist/index11.js +2 -2
  10. package/dist/index110.js +54 -8
  11. package/dist/index111.js +30 -650
  12. package/dist/index112.js +13 -30
  13. package/dist/index115.js +48 -6
  14. package/dist/index116.js +12 -21
  15. package/dist/index117.js +15 -3
  16. package/dist/index118.js +3 -32
  17. package/dist/index119.js +32 -12
  18. package/dist/index12.js +1 -1
  19. package/dist/index120.js +18 -12
  20. package/dist/index124.js +6 -48
  21. package/dist/index125.js +25 -2
  22. package/dist/index126.js +29 -53
  23. package/dist/index127.js +5 -65
  24. package/dist/index128.js +2 -2
  25. package/dist/index129.js +53 -2
  26. package/dist/index13.js +2 -2
  27. package/dist/index130.js +63 -23
  28. package/dist/index131.js +5 -29
  29. package/dist/index132.js +3 -5
  30. package/dist/index133.js +24 -5
  31. package/dist/index134.js +113 -3
  32. package/dist/index135.js +15 -23
  33. package/dist/index136.js +2 -113
  34. package/dist/index137.js +2 -16
  35. package/dist/index14.js +2 -2
  36. package/dist/index141.js +1 -1
  37. package/dist/index142.js +1 -1
  38. package/dist/index15.js +2 -2
  39. package/dist/index17.js +4 -4
  40. package/dist/index18.js +2 -2
  41. package/dist/index20.js +1 -1
  42. package/dist/index21.js +1 -1
  43. package/dist/index22.js +1 -1
  44. package/dist/index23.js +2 -2
  45. package/dist/index24.js +1 -1
  46. package/dist/index25.js +3 -3
  47. package/dist/index26.js +1 -1
  48. package/dist/index27.js +2 -2
  49. package/dist/index29.js +1 -1
  50. package/dist/index31.js +1 -1
  51. package/dist/index36.js +1 -1
  52. package/dist/index37.js +1 -1
  53. package/dist/index45.js +1 -1
  54. package/dist/index46.js +1 -1
  55. package/dist/index48.js +12 -73
  56. package/dist/index49.js +9 -125
  57. package/dist/index50.js +55 -244
  58. package/dist/index51.js +118 -9
  59. package/dist/index52.js +237 -298
  60. package/dist/index53.js +22 -12
  61. package/dist/index54.js +234 -58
  62. package/dist/index55.js +4 -5
  63. package/dist/index56.js +506 -94
  64. package/dist/index57.js +215 -72
  65. package/dist/index58.js +11 -241
  66. package/dist/index59.js +68 -846
  67. package/dist/index6.js +1 -1
  68. package/dist/index60.js +260 -9
  69. package/dist/index61.js +12 -254
  70. package/dist/index62.js +402 -227
  71. package/dist/index63.js +125 -12
  72. package/dist/index64.js +30 -434
  73. package/dist/index65.js +308 -16
  74. package/dist/index66.js +12 -130
  75. package/dist/index67.js +310 -504
  76. package/dist/index68.js +248 -219
  77. package/dist/index69.js +241 -11
  78. package/dist/index7.js +1 -1
  79. package/dist/index70.js +860 -11
  80. package/dist/index71.js +9 -236
  81. package/dist/index72.js +16 -334
  82. package/dist/index73.js +130 -31
  83. package/dist/index74.js +2 -2
  84. package/dist/index75.js +71 -20
  85. package/dist/index80.js +1 -1
  86. package/dist/index82.js +1 -1
  87. package/dist/index84.js +4 -9
  88. package/dist/index85.js +65 -51
  89. package/dist/index86.js +30 -11
  90. package/dist/index87.js +6 -4
  91. package/dist/index88.js +25 -30
  92. package/dist/index89.js +178 -10
  93. package/dist/index9.js +1 -1
  94. package/dist/index90.js +10 -5
  95. package/dist/index91.js +3 -24
  96. package/dist/index92.js +643 -62
  97. package/dist/index93.js +53 -13
  98. package/dist/index94.js +30 -55
  99. package/dist/index95.js +124 -29
  100. package/dist/index96.js +125 -115
  101. package/dist/index97.js +13 -14
  102. package/dist/index98.js +14 -134
  103. package/dist/index99.js +8 -218
  104. package/package.json +1 -1
package/dist/index51.js CHANGED
@@ -1,11 +1,120 @@
1
- import e from "./index116.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 { composeEventHandlers as T } from "./index79.js";
3
+ import { createContextScope as S } from "./index76.js";
4
+ import { useControllableState as D } from "./index80.js";
5
+ import { useLayoutEffect as L } from "./index84.js";
6
+ import { useComposedRefs as M } from "./index78.js";
7
+ import { Primitive as v } from "./index81.js";
8
+ import { Presence as k } from "./index85.js";
9
+ import { useId as F } from "./index82.js";
10
+ import { jsx as c } from "react/jsx-runtime";
11
+ var u = "Collapsible", [B, W] = S(u), [G, g] = B(u), w = o.forwardRef(
12
+ (e, a) => {
13
+ const {
14
+ __scopeCollapsible: i,
15
+ open: r,
16
+ defaultOpen: t,
17
+ disabled: l,
18
+ onOpenChange: s,
19
+ ...m
20
+ } = e, [d, p] = D({
21
+ prop: r,
22
+ defaultProp: t ?? !1,
23
+ onChange: s,
24
+ caller: u
25
+ });
26
+ return /* @__PURE__ */ c(
27
+ G,
28
+ {
29
+ scope: i,
30
+ disabled: l,
31
+ contentId: F(),
32
+ open: d,
33
+ onOpenToggle: o.useCallback(() => p((C) => !C), [p]),
34
+ children: /* @__PURE__ */ c(
35
+ v.div,
36
+ {
37
+ "data-state": h(d),
38
+ "data-disabled": l ? "" : void 0,
39
+ ...m,
40
+ ref: a
41
+ }
42
+ )
43
+ }
44
+ );
45
+ }
46
+ );
47
+ w.displayName = u;
48
+ var A = "CollapsibleTrigger", I = o.forwardRef(
49
+ (e, a) => {
50
+ const { __scopeCollapsible: i, ...r } = e, t = g(A, i);
51
+ return /* @__PURE__ */ c(
52
+ v.button,
53
+ {
54
+ type: "button",
55
+ "aria-controls": t.contentId,
56
+ "aria-expanded": t.open || !1,
57
+ "data-state": h(t.open),
58
+ "data-disabled": t.disabled ? "" : void 0,
59
+ disabled: t.disabled,
60
+ ...r,
61
+ ref: a,
62
+ onClick: T(e.onClick, t.onOpenToggle)
63
+ }
64
+ );
65
+ }
66
+ );
67
+ I.displayName = A;
68
+ var R = "CollapsibleContent", O = o.forwardRef(
69
+ (e, a) => {
70
+ const { forceMount: i, ...r } = e, t = g(R, e.__scopeCollapsible);
71
+ return /* @__PURE__ */ c(k, { present: i || t.open, children: ({ present: l }) => /* @__PURE__ */ c($, { ...r, ref: a, present: l }) });
72
+ }
73
+ );
74
+ O.displayName = R;
75
+ var $ = o.forwardRef((e, a) => {
76
+ const { __scopeCollapsible: i, present: r, children: t, ...l } = e, s = g(R, i), [m, d] = o.useState(r), p = o.useRef(null), C = M(a, p), y = o.useRef(0), x = y.current, N = o.useRef(0), P = N.current, b = s.open || m, _ = o.useRef(b), f = o.useRef(void 0);
77
+ return o.useEffect(() => {
78
+ const n = requestAnimationFrame(() => _.current = !1);
79
+ return () => cancelAnimationFrame(n);
80
+ }, []), L(() => {
81
+ const n = p.current;
82
+ if (n) {
83
+ f.current = f.current || {
84
+ transitionDuration: n.style.transitionDuration,
85
+ animationName: n.style.animationName
86
+ }, n.style.transitionDuration = "0s", n.style.animationName = "none";
87
+ const E = n.getBoundingClientRect();
88
+ y.current = E.height, N.current = E.width, _.current || (n.style.transitionDuration = f.current.transitionDuration, n.style.animationName = f.current.animationName), d(r);
89
+ }
90
+ }, [s.open, r]), /* @__PURE__ */ c(
91
+ v.div,
92
+ {
93
+ "data-state": h(s.open),
94
+ "data-disabled": s.disabled ? "" : void 0,
95
+ id: s.contentId,
96
+ hidden: !b,
97
+ ...l,
98
+ ref: C,
99
+ style: {
100
+ "--radix-collapsible-content-height": x ? `${x}px` : void 0,
101
+ "--radix-collapsible-content-width": P ? `${P}px` : void 0,
102
+ ...e.style
103
+ },
104
+ children: b && t
105
+ }
106
+ );
107
+ });
108
+ function h(e) {
109
+ return e ? "open" : "closed";
110
+ }
111
+ var X = w, Y = I, Z = O;
9
112
  export {
10
- t as default
113
+ w as Collapsible,
114
+ O as CollapsibleContent,
115
+ I as CollapsibleTrigger,
116
+ Z as Content,
117
+ X as Root,
118
+ Y as Trigger,
119
+ W as createCollapsibleScope
11
120
  };