@still-forest/canopy 0.25.1 → 0.26.0

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/Code.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "./utils.js";
1
+ import { j as e } from "./jsx-runtime.js";
2
2
  import { T as s } from "./Heading.js";
3
3
  const r = ({ children: o, ...t }) => /* @__PURE__ */ e.jsx(s, { className: "inline-block w-fit rounded bg-accent px-2", family: "mono", size: "sm", variant: "accent", ...t, children: o });
4
4
  export {
package/dist/Heading.js CHANGED
@@ -1,6 +1,7 @@
1
- import { j as b, c as p } from "./utils.js";
2
- import h from "react";
3
- const y = h.forwardRef(
1
+ import { j as b } from "./jsx-runtime.js";
2
+ import p from "react";
3
+ import { c as h } from "./index2.js";
4
+ const y = p.forwardRef(
4
5
  ({
5
6
  className: c,
6
7
  as: o,
@@ -13,15 +14,15 @@ const y = h.forwardRef(
13
14
  tracking: r,
14
15
  family: f = "display",
15
16
  asForeground: x = !1,
16
- truncate: u = !1,
17
- numeric: m = !1,
17
+ truncate: m = !1,
18
+ numeric: u = !1,
18
19
  ...i
19
20
  }, a) => {
20
21
  const g = o || "p";
21
22
  return /* @__PURE__ */ b.jsx(
22
23
  g,
23
24
  {
24
- className: p(
25
+ className: h(
25
26
  // Font sizes
26
27
  {
27
28
  "text-xs": e === "xs",
@@ -105,9 +106,9 @@ const y = h.forwardRef(
105
106
  "font-mono": f === "mono"
106
107
  },
107
108
  // Truncation
108
- u && "truncate",
109
+ m && "truncate",
109
110
  // Tabular numerals
110
- m && "tabular-nums",
111
+ u && "tabular-nums",
111
112
  c
112
113
  ),
113
114
  ref: a,
@@ -117,7 +118,7 @@ const y = h.forwardRef(
117
118
  }
118
119
  );
119
120
  y.displayName = "Text";
120
- const j = h.forwardRef(
121
+ const j = p.forwardRef(
121
122
  ({
122
123
  className: c,
123
124
  variant: o = "default",
@@ -131,8 +132,8 @@ const j = h.forwardRef(
131
132
  tracking: r,
132
133
  family: f = "display",
133
134
  asForeground: x = !1,
134
- truncate: u = !1,
135
- numeric: m = !1,
135
+ truncate: m = !1,
136
+ numeric: u = !1,
136
137
  ...i
137
138
  }, a) => {
138
139
  const g = `h${e}`, l = d || {
@@ -146,7 +147,7 @@ const j = h.forwardRef(
146
147
  return /* @__PURE__ */ b.jsx(
147
148
  g,
148
149
  {
149
- className: p(
150
+ className: h(
150
151
  // Size scales
151
152
  {
152
153
  "text-xs": l === "xs",
@@ -230,9 +231,9 @@ const j = h.forwardRef(
230
231
  "font-mono": f === "mono"
231
232
  },
232
233
  // Truncation
233
- u && "truncate",
234
+ m && "truncate",
234
235
  // Tabular numerals
235
- m && "tabular-nums",
236
+ u && "tabular-nums",
236
237
  // Add some scroll margin for better anchor navigation
237
238
  "scroll-m-20",
238
239
  c
package/dist/Layout2.js CHANGED
@@ -1,5 +1,6 @@
1
- import { j as u, c as m } from "./utils.js";
1
+ import { j as u } from "./jsx-runtime.js";
2
2
  import g from "react";
3
+ import { c as m } from "./index2.js";
3
4
  const w = g.forwardRef(
4
5
  ({
5
6
  className: c,
@@ -508,13 +509,13 @@ R.displayName = "Grid";
508
509
  const F = ({ children: c, sticky: t = !1, className: s, ...r }) => /* @__PURE__ */ u.jsx(y, { as: "header", className: m("top-0 ", t && "z-50 sticky", s), justify: "between", ...r, children: c }), p = "mx-auto w-full max-w-screen-lg", B = ({ children: c, className: t, withContainer: s = !1, ...r }) => {
509
510
  const e = m("flex-1 grow", p, t);
510
511
  return s ? /* @__PURE__ */ u.jsx(y, { as: "main", className: e, display: "block", ...r, children: c }) : /* @__PURE__ */ u.jsx(i.Item, { as: "main", className: e, ...r, children: c });
511
- }, G = g.forwardRef(({ children: c, className: t, ...s }, r) => /* @__PURE__ */ u.jsx(i, { className: m(p, "h-screen flex-1", t), direction: "col", ref: r, ...s, children: c })), H = Object.assign(G, { Header: F, Body: B, Footer: C });
512
+ }, G = g.forwardRef(({ children: c, className: t, ...s }, r) => /* @__PURE__ */ u.jsx(i, { className: m(p, "h-screen flex-1", t), direction: "col", ref: r, ...s, children: c })), O = Object.assign(G, { Header: F, Body: B, Footer: C });
512
513
  export {
513
514
  w as B,
514
515
  y as C,
515
516
  i as F,
516
517
  R as G,
517
518
  F as H,
518
- H as L,
519
+ O as L,
519
520
  C as a
520
521
  };
@@ -1,9 +1,10 @@
1
- import { j as e, c as d } from "./utils.js";
1
+ import { j as e } from "./jsx-runtime.js";
2
2
  import { c, B as l } from "./calendar.js";
3
3
  import "react";
4
- import { F as o, B as m } from "./Layout2.js";
5
- import { C as h } from "./Code.js";
6
- import { H as x } from "./Heading.js";
4
+ import { F as o, B as d } from "./Layout2.js";
5
+ import { C as m } from "./Code.js";
6
+ import { H as h } from "./Heading.js";
7
+ import { c as x } from "./index2.js";
7
8
  /**
8
9
  * @license lucide-react v0.525.0 - ISC
9
10
  *
@@ -21,11 +22,11 @@ const u = [
21
22
  * This source code is licensed under the ISC license.
22
23
  * See the LICENSE file in the root directory of this source tree.
23
24
  */
24
- const j = [
25
+ const f = [
25
26
  ["path", { d: "M12 17h.01", key: "p32p05" }],
26
27
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z", key: "1mlx9k" }],
27
28
  ["path", { d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3", key: "mhlwft" }]
28
- ], f = c("file-question-mark", j);
29
+ ], j = c("file-question-mark", f);
29
30
  /**
30
31
  * @license lucide-react v0.525.0 - ISC
31
32
  *
@@ -68,7 +69,7 @@ const N = [
68
69
  {
69
70
  "aria-hidden": !!r,
70
71
  "aria-label": r ? void 0 : `${n || "info"} icon`,
71
- className: d(
72
+ className: x(
72
73
  n === "error" && "text-destructive",
73
74
  n === "success" && "text-success",
74
75
  n === "warning" && "text-warning",
@@ -80,7 +81,7 @@ const N = [
80
81
  }
81
82
  ) }),
82
83
  /* @__PURE__ */ e.jsxs(o, { className: "max-w-[500px]", direction: "col", justify: "center", children: [
83
- r ? /* @__PURE__ */ e.jsx(x, { align: "center", level: "4", weight: "normal", children: r }) : null,
84
+ r ? /* @__PURE__ */ e.jsx(h, { align: "center", level: "4", weight: "normal", children: r }) : null,
84
85
  i
85
86
  ] })
86
87
  ] }) });
@@ -90,17 +91,17 @@ const N = [
90
91
  } catch {
91
92
  console.warn("Page reload prevented in test environment");
92
93
  }
93
- }, B = ({ error: n, onRetry: t = _ }) => /* @__PURE__ */ e.jsx(C, { children: /* @__PURE__ */ e.jsxs(o, { align: "center", className: "mt-8", direction: "col", children: [
94
- /* @__PURE__ */ e.jsx(m, { className: "mb-8 p-4", variant: "muted", width: "full", children: /* @__PURE__ */ e.jsx(h, { align: "center", size: "xs", variant: "inherit", children: n.message || "Unknown error occurred" }) }),
94
+ }, E = ({ error: n, onRetry: t = _ }) => /* @__PURE__ */ e.jsx(C, { children: /* @__PURE__ */ e.jsxs(o, { align: "center", className: "mt-8", direction: "col", children: [
95
+ /* @__PURE__ */ e.jsx(d, { className: "mb-8 p-4", variant: "muted", width: "full", children: /* @__PURE__ */ e.jsx(m, { align: "center", size: "xs", variant: "inherit", children: n.message || "Unknown error occurred" }) }),
95
96
  /* @__PURE__ */ e.jsx(l, { icon: /* @__PURE__ */ e.jsx(v, {}), onClick: t, variant: "primary", children: "Reload" })
96
- ] }) }), M = () => /* @__PURE__ */ e.jsx(g, { className: "animate-spin text-info", "data-testid": "icon", size: 64 }), E = ({ iconComponent: n, message: t }) => {
97
+ ] }) }), M = () => /* @__PURE__ */ e.jsx(g, { className: "animate-spin text-info", "data-testid": "icon", size: 64 }), L = ({ iconComponent: n, message: t }) => {
97
98
  const r = n || M;
98
99
  return /* @__PURE__ */ e.jsx(a, { iconComponent: r, message: t });
99
- }, L = ({ goHome: n, message: t = "404: Not found" }) => /* @__PURE__ */ e.jsx(a, { iconComponent: f, message: t, variant: "warning", children: /* @__PURE__ */ e.jsx(o, { align: "center", className: "mt-8", direction: "col", children: n && /* @__PURE__ */ e.jsx(l, { icon: /* @__PURE__ */ e.jsx(k, {}), onClick: n, variant: "primary", children: "Home" }) }) });
100
+ }, P = ({ goHome: n, message: t = "404: Not found" }) => /* @__PURE__ */ e.jsx(a, { iconComponent: j, message: t, variant: "warning", children: /* @__PURE__ */ e.jsx(o, { align: "center", className: "mt-8", direction: "col", children: n && /* @__PURE__ */ e.jsx(l, { icon: /* @__PURE__ */ e.jsx(k, {}), onClick: n, variant: "primary", children: "Home" }) }) });
100
101
  export {
101
- B as E,
102
+ E,
102
103
  a as I,
103
- E as P,
104
+ L as P,
104
105
  C as a,
105
- L as b
106
+ P as b
106
107
  };
package/dist/Paragraph.js CHANGED
@@ -1,6 +1,7 @@
1
- import { j as m, c as o } from "./utils.js";
1
+ import { j as o } from "./jsx-runtime.js";
2
+ import { c as t } from "./index2.js";
2
3
  import { T as p } from "./Heading.js";
3
- const c = ({ children: r, className: s, as: a = "p", ...t }) => /* @__PURE__ */ m.jsx(p, { as: a, className: o("mb-4", s), ...t, children: r });
4
+ const i = ({ children: r, className: s, as: a = "p", ...m }) => /* @__PURE__ */ o.jsx(p, { as: a, className: t("mb-4", s), ...m, children: r });
4
5
  export {
5
- c as P
6
+ i as P
6
7
  };
@@ -1,7 +1,8 @@
1
- import { j as a, c } from "./utils.js";
1
+ import { j as a } from "./jsx-runtime.js";
2
2
  import { c as j, u as U, b as xe, d as be, S as ge, e as me } from "./calendar.js";
3
3
  import * as s from "react";
4
4
  import { Fragment as ve } from "react";
5
+ import { c } from "./index2.js";
5
6
  import { P as X, c as we, a as Y, u as ye, b as je, R as Te, A as Ce, d as T, e as Z, f as ke, g as Ne, D as _e, C as Se, h as Ee, i as Re, j as Pe, k as Me, l as Oe, m as De, n as Ae, T as Ie, o as Le, p as ze, O as He } from "./popover.js";
6
7
  import { F as $e } from "./Layout2.js";
7
8
  import { T as Be } from "./Heading.js";
@@ -102,7 +103,7 @@ J.displayName = at;
102
103
  function ot(e) {
103
104
  return rt.includes(e);
104
105
  }
105
- var nt = J, [D, ga] = we("Tooltip", [
106
+ var nt = J, [D, ma] = we("Tooltip", [
106
107
  Y
107
108
  ]), A = Y(), Q = "TooltipProvider", st = 700, z = "tooltip.open", [it, B] = D(Q), ee = (e) => {
108
109
  const {
@@ -1020,7 +1021,7 @@ const E = ({ children: e }) => /* @__PURE__ */ a.jsx(Be, { size: "base", truncat
1020
1021
  ] })
1021
1022
  ] }) }),
1022
1023
  /* @__PURE__ */ a.jsx(ea, {})
1023
- ] }), ma = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs(Zt, { children: [
1024
+ ] }), va = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs(Zt, { children: [
1024
1025
  /* @__PURE__ */ a.jsx(ca, { ...t }),
1025
1026
  /* @__PURE__ */ a.jsx(ta, { children: e })
1026
1027
  ] });
@@ -1031,7 +1032,7 @@ export {
1031
1032
  k as T,
1032
1033
  tt as X,
1033
1034
  ca as a,
1034
- ma as b,
1035
+ va as b,
1035
1036
  _t as c,
1036
1037
  Rt as d,
1037
1038
  Dt as e,
package/dist/Textarea.js CHANGED
@@ -1,9 +1,10 @@
1
- import { j as o, c as $ } from "./utils.js";
1
+ import { j as o } from "./jsx-runtime.js";
2
2
  import { c as ee, u as G, h as Ue, B as et, i as Pr, j as Ie, d as Mr } from "./calendar.js";
3
3
  import * as a from "react";
4
4
  import ue, { useState as tt, useEffect as Ar, useMemo as Dr } from "react";
5
5
  import { F as oe, G as Or } from "./Layout2.js";
6
6
  import { T as _e } from "./Heading.js";
7
+ import { c as $ } from "./index2.js";
7
8
  import { c as ge, e as mt, P, b as Re, d as F, s as ht, u as te, t as vt, a as xt, R as Fr, A as Lr, q as ne, f as Br, V as $r, v as Vr, w as Gr, x as Hr, F as Kr, D as Ur, C as zr, g as Wr, i as gt, j as bt, k as wt, l as qr, p as Yr, O as Xr, m as Zr } from "./popover.js";
8
9
  import * as yt from "react-dom";
9
10
  /**
@@ -177,7 +178,7 @@ function nt(e) {
177
178
  const r = a.useRef({ value: e, previous: e });
178
179
  return a.useMemo(() => (r.current.value !== e && (r.current.previous = r.current.value, r.current.value = e), r.current.previous), [e]);
179
180
  }
180
- var Te = "Checkbox", [bo, ja] = ge(Te), [wo, at] = bo(Te);
181
+ var Te = "Checkbox", [bo, Na] = ge(Te), [wo, at] = bo(Te);
181
182
  function yo(e) {
182
183
  const {
183
184
  __scopeCheckbox: r,
@@ -694,7 +695,7 @@ Ht.displayName = $o;
694
695
  function Kt(e) {
695
696
  return e ? "checked" : "unchecked";
696
697
  }
697
- var Vo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Pe = "RadioGroup", [Go, Na] = ge(Pe, [
698
+ var Vo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Pe = "RadioGroup", [Go, _a] = ge(Pe, [
698
699
  Mt,
699
700
  Bt
700
701
  ]), Ut = Mt(), zt = Bt(), [Ho, Ko] = Go(Pe), Wt = a.forwardRef(
@@ -801,7 +802,7 @@ var Uo = "RadioGroupIndicator", Xt = a.forwardRef(
801
802
  }
802
803
  );
803
804
  Xt.displayName = Uo;
804
- var zo = Wt, Wo = Yt, qo = Xt, Yo = [" ", "Enter", "ArrowUp", "ArrowDown"], Xo = [" ", "Enter"], pe = "Select", [Me, Ae, Zo] = Ct(pe), [be, _a] = ge(pe, [
805
+ var zo = Wt, Wo = Yt, qo = Xt, Yo = [" ", "Enter", "ArrowUp", "ArrowDown"], Xo = [" ", "Enter"], pe = "Select", [Me, Ae, Zo] = Ct(pe), [be, Ta] = ge(pe, [
805
806
  Zo,
806
807
  xt
807
808
  ]), De = xt(), [Jo, se] = be(pe), [Qo, en] = be(pe), Zt = (e) => {
@@ -1592,7 +1593,7 @@ function gn(e, r) {
1592
1593
  return e.map((t, s) => e[(r + s) % e.length]);
1593
1594
  }
1594
1595
  var bn = Zt, wn = Qt, yn = tr, Sn = rr, Cn = or, In = nr, Rn = cr, kn = pr, En = fr, jn = hr, Nn = vr, _n = xr;
1595
- const Ta = ({ disabled: e = !1, handleDelete: r, ...t }) => /* @__PURE__ */ o.jsx(
1596
+ const Pa = ({ disabled: e = !1, handleDelete: r, ...t }) => /* @__PURE__ */ o.jsx(
1596
1597
  et,
1597
1598
  {
1598
1599
  disabled: e,
@@ -1608,7 +1609,7 @@ const Ta = ({ disabled: e = !1, handleDelete: r, ...t }) => /* @__PURE__ */ o.js
1608
1609
  submit: { label: "Submit", submittingLabel: "Submitting", icon: /* @__PURE__ */ o.jsx($e, {}) },
1609
1610
  save: { label: "Save", submittingLabel: "Saving", icon: /* @__PURE__ */ o.jsx(po, {}) },
1610
1611
  send: { label: "Send", submittingLabel: "Sending", icon: /* @__PURE__ */ o.jsx($e, {}) }
1611
- }, Pa = ({
1612
+ }, Ma = ({
1612
1613
  submitting: e = !1,
1613
1614
  disabled: r = !1,
1614
1615
  submittingIcon: t,
@@ -1653,7 +1654,7 @@ function Tn({ className: e, ...r }) {
1653
1654
  }
1654
1655
  );
1655
1656
  }
1656
- const Ma = ({ label: e, name: r, value: t, checked: s, onCheckedChange: n }) => {
1657
+ const Aa = ({ label: e, name: r, value: t, checked: s, onCheckedChange: n }) => {
1657
1658
  const [l, c] = tt(s);
1658
1659
  Ar(() => {
1659
1660
  c(s);
@@ -1677,7 +1678,7 @@ const Ma = ({ label: e, name: r, value: t, checked: s, onCheckedChange: n }) =>
1677
1678
  ),
1678
1679
  /* @__PURE__ */ o.jsx(we, { className: "cursor-pointer", htmlFor: i, children: e })
1679
1680
  ] });
1680
- }, Aa = ({ name: e, label: r, placeholder: t, note: s, className: n, ...l }) => /* @__PURE__ */ o.jsx(
1681
+ }, Da = ({ name: e, label: r, placeholder: t, note: s, className: n, ...l }) => /* @__PURE__ */ o.jsx(
1681
1682
  Cr,
1682
1683
  {
1683
1684
  className: $("max-w-[150px]", n),
@@ -1688,7 +1689,7 @@ const Ma = ({ label: e, name: r, value: t, checked: s, onCheckedChange: n }) =>
1688
1689
  type: "date",
1689
1690
  ...l
1690
1691
  }
1691
- ), Da = ({ onDateSelection: e, initialValue: r, className: t, size: s = "default", error: n }) => {
1692
+ ), Oa = ({ onDateSelection: e, initialValue: r, className: t, size: s = "default", error: n }) => {
1692
1693
  const [l, c] = tt(r), i = (u) => {
1693
1694
  c(u), u && e(u);
1694
1695
  };
@@ -1778,7 +1779,7 @@ const Cr = ({
1778
1779
  ),
1779
1780
  l && /* @__PURE__ */ o.jsx(_e, { size: "sm", variant: "muted", children: l }),
1780
1781
  i && /* @__PURE__ */ o.jsx(Ee, { message: i })
1781
- ] }), Oa = ({
1782
+ ] }), Fa = ({
1782
1783
  name: e,
1783
1784
  label: r,
1784
1785
  placeholder: t,
@@ -1824,7 +1825,7 @@ function On({ className: e, ...r }) {
1824
1825
  }
1825
1826
  );
1826
1827
  }
1827
- const Fa = ({ label: e, name: r, options: t, value: s, onChange: n, error: l }) => /* @__PURE__ */ o.jsxs(Pn, { className: "flex flex-col gap-4 px-2 py-1", label: e, labelFor: r, children: [
1828
+ const La = ({ label: e, name: r, options: t, value: s, onChange: n, error: l }) => /* @__PURE__ */ o.jsxs(Pn, { className: "flex flex-col gap-4 px-2 py-1", label: e, labelFor: r, children: [
1828
1829
  /* @__PURE__ */ o.jsx(Dn, { className: "w-full", name: r, onValueChange: n, value: s, children: /* @__PURE__ */ o.jsx(Or, { cols: "2", children: t.map((c, i) => /* @__PURE__ */ o.jsxs(oe, { align: "center", gap: "2", justify: "start", children: [
1829
1830
  /* @__PURE__ */ o.jsx(On, { id: c.value, value: c.value }),
1830
1831
  /* @__PURE__ */ o.jsx(we, { htmlFor: c.value, children: c.label })
@@ -1936,7 +1937,7 @@ function Hn({
1936
1937
  }
1937
1938
  );
1938
1939
  }
1939
- const La = ({
1940
+ const Ba = ({
1940
1941
  name: e,
1941
1942
  defaultValue: r,
1942
1943
  options: t,
@@ -2350,7 +2351,7 @@ const wa = ({
2350
2351
  }) => /* @__PURE__ */ o.jsx(bt, { asChild: !0, children: /* @__PURE__ */ o.jsxs(Mr, { "aria-expanded": s, className: `justify-between ${t}`, role: "combobox", variant: "outline", children: [
2351
2352
  n(r || { label: e, value: "" }),
2352
2353
  /* @__PURE__ */ o.jsx(ao, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
2353
- ] }) }), Ba = ({
2354
+ ] }) }), $a = ({
2354
2355
  options: e,
2355
2356
  value: r = "",
2356
2357
  placeholder: t = "Select a value...",
@@ -2407,7 +2408,7 @@ function ya({ className: e, ...r }) {
2407
2408
  }
2408
2409
  );
2409
2410
  }
2410
- function $a({ label: e, name: r, note: t, placeholder: s, className: n, error: l, ...c }) {
2411
+ function Va({ label: e, name: r, note: t, placeholder: s, className: n, error: l, ...c }) {
2411
2412
  return /* @__PURE__ */ o.jsxs(oe, { className: "w-full", direction: "col", gap: "2", children: [
2412
2413
  e && /* @__PURE__ */ o.jsx(we, { htmlFor: r, children: e }),
2413
2414
  /* @__PURE__ */ o.jsx(
@@ -2426,19 +2427,19 @@ function $a({ label: e, name: r, note: t, placeholder: s, className: n, error: l
2426
2427
  ] });
2427
2428
  }
2428
2429
  export {
2429
- Ma as C,
2430
- Ta as D,
2430
+ Aa as C,
2431
+ Pa as D,
2431
2432
  Ee as I,
2432
2433
  we as L,
2433
- Oa as N,
2434
- Fa as R,
2435
- Pa as S,
2436
- $a as T,
2437
- Aa as a,
2438
- Da as b,
2434
+ Fa as N,
2435
+ La as R,
2436
+ Ma as S,
2437
+ Va as T,
2438
+ Da as a,
2439
+ Oa as b,
2439
2440
  Pn as c,
2440
- La as d,
2441
- Ba as e,
2441
+ Ba as d,
2442
+ $a as e,
2442
2443
  Cr as f,
2443
2444
  Ct as g,
2444
2445
  Mt as h,
package/dist/calendar.js CHANGED
@@ -1,5 +1,6 @@
1
- import { j as P, a as Nn, c as S } from "./utils.js";
1
+ import { j as P } from "./jsx-runtime.js";
2
2
  import { F as bt } from "./Layout2.js";
3
+ import { a as Nn, c as S } from "./index2.js";
3
4
  import * as B from "react";
4
5
  import h, { forwardRef as wt, createElement as Re, createContext as Wn, useContext as xn, useCallback as V, useRef as Te, useLayoutEffect as Sn, useState as Ge, useEffect as _n, useMemo as je } from "react";
5
6
  /**
@@ -127,7 +128,7 @@ function Dt(...e) {
127
128
  };
128
129
  };
129
130
  }
130
- function ra(...e) {
131
+ function oa(...e) {
131
132
  return B.useCallback(Dt(...e), e);
132
133
  }
133
134
  // @__NO_SIDE_EFFECTS__
@@ -157,7 +158,7 @@ function Hn(e) {
157
158
  }
158
159
  var Ot = Symbol("radix.slottable");
159
160
  // @__NO_SIDE_EFFECTS__
160
- function oa(e) {
161
+ function sa(e) {
161
162
  const t = ({ children: n }) => /* @__PURE__ */ P.jsx(P.Fragment, { children: n });
162
163
  return t.displayName = `${e}.Slottable`, t.__radixId = Ot, t;
163
164
  }
@@ -3117,7 +3118,7 @@ export {
3117
3118
  Mt as C,
3118
3119
  An as S,
3119
3120
  Ln as a,
3120
- oa as b,
3121
+ sa as b,
3121
3122
  vt as c,
3122
3123
  Ce as d,
3123
3124
  Gn as e,
@@ -3126,5 +3127,5 @@ export {
3126
3127
  jn as h,
3127
3128
  Qs as i,
3128
3129
  Dt as j,
3129
- ra as u
3130
+ oa as u
3130
3131
  };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Accordion as Accordion_2 } from 'radix-ui';
2
2
  import { ClassProp } from 'class-variance-authority/types';
3
+ import { ClassValue } from 'clsx';
3
4
  import { ComponentProps } from 'react';
4
5
  import { default as default_2 } from 'react';
5
6
  import { JSX } from 'react/jsx-runtime';
@@ -134,6 +135,8 @@ declare interface ChildProps {
134
135
  children: React.ReactNode;
135
136
  }
136
137
 
138
+ export declare function cn(...inputs: ClassValue[]): string;
139
+
137
140
  export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
138
141
 
139
142
  export declare const Container: ({ children, className, direction, ...props }: ContainerProps) => JSX.Element;