@still-forest/canopy 0.31.0 → 0.33.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.
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "./jsx-runtime-B0GD0xBr.js";
2
- import { T as s } from "./Heading-Bpvbpnw2.js";
2
+ import { T as s } from "./Heading-DpEVkX3a.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 {
5
5
  r as C
@@ -1,28 +1,28 @@
1
- import { j as b } from "./jsx-runtime-B0GD0xBr.js";
2
- import p from "react";
3
- import { c as h } from "./index-CRiPKpXj.js";
4
- const y = p.forwardRef(
1
+ import { j as a } from "./jsx-runtime-B0GD0xBr.js";
2
+ import h from "react";
3
+ import { c as p } from "./index-CRiPKpXj.js";
4
+ const y = h.forwardRef(
5
5
  ({
6
6
  className: c,
7
7
  as: o,
8
8
  size: e,
9
- weight: d,
9
+ weight: f,
10
10
  variant: t = "default",
11
- align: n,
11
+ align: d,
12
12
  leading: s,
13
13
  // No default: Tailwind applies a default from text size classes
14
14
  tracking: r,
15
- family: f = "display",
15
+ family: n = "body",
16
16
  asForeground: x = !1,
17
- truncate: m = !1,
18
- numeric: u = !1,
17
+ truncate: u = !1,
18
+ numeric: m = !1,
19
19
  ...i
20
- }, a) => {
20
+ }, b) => {
21
21
  const g = o || "p";
22
- return /* @__PURE__ */ b.jsx(
22
+ return /* @__PURE__ */ a.jsx(
23
23
  g,
24
24
  {
25
- className: h(
25
+ className: p(
26
26
  // Font sizes
27
27
  {
28
28
  "text-xs": e === "xs",
@@ -41,15 +41,15 @@ const y = p.forwardRef(
41
41
  },
42
42
  // Font weights
43
43
  {
44
- "font-thin": d === "thin",
45
- "font-extralight": d === "extralight",
46
- "font-light": d === "light",
47
- "font-normal": d === "normal",
48
- "font-medium": d === "medium",
49
- "font-semibold": d === "semibold",
50
- "font-bold": d === "bold",
51
- "font-extrabold": d === "extrabold",
52
- "font-black": d === "black"
44
+ "font-thin": f === "thin",
45
+ "font-extralight": f === "extralight",
46
+ "font-light": f === "light",
47
+ "font-normal": f === "normal",
48
+ "font-medium": f === "medium",
49
+ "font-semibold": f === "semibold",
50
+ "font-bold": f === "bold",
51
+ "font-extrabold": f === "extrabold",
52
+ "font-black": f === "black"
53
53
  },
54
54
  // Text colors (variants)
55
55
  {
@@ -73,12 +73,12 @@ const y = p.forwardRef(
73
73
  },
74
74
  // Text alignment
75
75
  {
76
- "text-left": n === "left",
77
- "text-center": n === "center",
78
- "text-right": n === "right",
79
- "text-justify": n === "justify",
80
- "text-start": n === "start",
81
- "text-end": n === "end"
76
+ "text-left": d === "left",
77
+ "text-center": d === "center",
78
+ "text-right": d === "right",
79
+ "text-justify": d === "justify",
80
+ "text-start": d === "start",
81
+ "text-end": d === "end"
82
82
  },
83
83
  // Leading (line height)
84
84
  {
@@ -100,43 +100,46 @@ const y = p.forwardRef(
100
100
  },
101
101
  // Font family
102
102
  {
103
- "font-display": f === "display",
104
- "font-sans": f === "sans",
105
- "font-serif": f === "serif",
106
- "font-mono": f === "mono"
103
+ "font-display": n === "display",
104
+ "font-heading": n === "heading",
105
+ "font-body": n === "body",
106
+ "font-brand": n === "brand",
107
+ "font-sans": n === "sans",
108
+ "font-serif": n === "serif",
109
+ "font-mono": n === "mono"
107
110
  },
108
111
  // Truncation
109
- m && "truncate",
112
+ u && "truncate",
110
113
  // Tabular numerals
111
- u && "tabular-nums",
114
+ m && "tabular-nums",
112
115
  c
113
116
  ),
114
- ref: a,
117
+ ref: b,
115
118
  ...i
116
119
  }
117
120
  );
118
121
  }
119
122
  );
120
123
  y.displayName = "Text";
121
- const j = p.forwardRef(
124
+ const j = h.forwardRef(
122
125
  ({
123
126
  className: c,
124
127
  variant: o = "default",
125
128
  level: e = "2",
126
- size: d,
129
+ size: f,
127
130
  weight: t = "bold",
128
131
  // Typical default browser style for headings
129
- align: n,
132
+ align: d,
130
133
  leading: s,
131
134
  // No default: Tailwind applies a default from text size classes
132
135
  tracking: r,
133
- family: f = "display",
136
+ family: n = "heading",
134
137
  asForeground: x = !1,
135
- truncate: m = !1,
136
- numeric: u = !1,
138
+ truncate: u = !1,
139
+ numeric: m = !1,
137
140
  ...i
138
- }, a) => {
139
- const g = `h${e}`, l = d || {
141
+ }, b) => {
142
+ const g = `h${e}`, l = f || {
140
143
  1: "4xl",
141
144
  2: "3xl",
142
145
  3: "2xl",
@@ -144,10 +147,10 @@ const j = p.forwardRef(
144
147
  5: "lg",
145
148
  6: "base"
146
149
  }[e];
147
- return /* @__PURE__ */ b.jsx(
150
+ return /* @__PURE__ */ a.jsx(
148
151
  g,
149
152
  {
150
- className: h(
153
+ className: p(
151
154
  // Size scales
152
155
  {
153
156
  "text-xs": l === "xs",
@@ -198,12 +201,12 @@ const j = p.forwardRef(
198
201
  },
199
202
  // Text alignment
200
203
  {
201
- "text-left": n === "left",
202
- "text-center": n === "center",
203
- "text-right": n === "right",
204
- "text-justify": n === "justify",
205
- "text-start": n === "start",
206
- "text-end": n === "end"
204
+ "text-left": d === "left",
205
+ "text-center": d === "center",
206
+ "text-right": d === "right",
207
+ "text-justify": d === "justify",
208
+ "text-start": d === "start",
209
+ "text-end": d === "end"
207
210
  },
208
211
  // Leading (line height)
209
212
  {
@@ -225,20 +228,23 @@ const j = p.forwardRef(
225
228
  },
226
229
  // Font family
227
230
  {
228
- "font-display": f === "display",
229
- "font-sans": f === "sans",
230
- "font-serif": f === "serif",
231
- "font-mono": f === "mono"
231
+ "font-brand": n === "brand",
232
+ "font-heading": n === "heading",
233
+ "font-body": n === "body",
234
+ "font-display": n === "display",
235
+ "font-sans": n === "sans",
236
+ "font-serif": n === "serif",
237
+ "font-mono": n === "mono"
232
238
  },
233
239
  // Truncation
234
- m && "truncate",
240
+ u && "truncate",
235
241
  // Tabular numerals
236
- u && "tabular-nums",
242
+ m && "tabular-nums",
237
243
  // Add some scroll margin for better anchor navigation
238
244
  "scroll-m-20",
239
245
  c
240
246
  ),
241
- ref: a,
247
+ ref: b,
242
248
  ...i
243
249
  }
244
250
  );
@@ -1,9 +1,9 @@
1
1
  import { j as e } from "./jsx-runtime-B0GD0xBr.js";
2
- import { c, B as l } from "./calendar-DfVsywp-.js";
2
+ import { c, B as l } from "./calendar-B5XoIqC2.js";
3
3
  import "react";
4
4
  import { F as o, B as d } from "./Layout-CjE5bQn7.js";
5
- import { C as m } from "./Code-DSfz_jrJ.js";
6
- import { H as h } from "./Heading-Bpvbpnw2.js";
5
+ import { C as m } from "./Code-C8KML31r.js";
6
+ import { H as h } from "./Heading-DpEVkX3a.js";
7
7
  import { c as x } from "./index-CRiPKpXj.js";
8
8
  /**
9
9
  * @license lucide-react v0.543.0 - ISC
@@ -1,6 +1,6 @@
1
1
  import { j as o } from "./jsx-runtime-B0GD0xBr.js";
2
2
  import { c as t } from "./index-CRiPKpXj.js";
3
- import { T as p } from "./Heading-Bpvbpnw2.js";
3
+ import { T as p } from "./Heading-DpEVkX3a.js";
4
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 });
5
5
  export {
6
6
  i as P
@@ -1,11 +1,11 @@
1
1
  import { j as o } from "./jsx-runtime-B0GD0xBr.js";
2
- import { c as E, u as I, f as At, g as kt, B as Dt, h as Et, S as Pt, b as It } from "./calendar-DfVsywp-.js";
2
+ import { c as E, u as I, f as At, g as kt, B as Dt, h as Et, S as Pt, b as It } from "./calendar-B5XoIqC2.js";
3
3
  import * as l from "react";
4
4
  import T, { Fragment as St } from "react";
5
5
  import { c as p } from "./index-CRiPKpXj.js";
6
- import { a as H, c as U, b as O, P as N, e as w, d as $, f as Ot, g as Mt, u as $t, h as Ne, i as Lt, R as zt, j as Ft, F as Ht, D as Re, k as Bt, l as Ae, m as Gt, A as Vt, n as Wt, C as qt, o as Kt, p as Ut, q as Yt, r as Xt, s as Zt } from "./popover-CP7xkaYK.js";
6
+ import { a as H, c as U, b as O, P as N, e as w, d as $, f as Ot, g as Mt, u as $t, h as Ne, i as Lt, R as zt, j as Ft, F as Ht, D as Re, k as Bt, l as Ae, m as Gt, A as Vt, n as Wt, C as qt, o as Kt, p as Ut, q as Yt, r as Xt, s as Zt } from "./popover-nVL6yIZo.js";
7
7
  import { F as ke } from "./Layout-CjE5bQn7.js";
8
- import { T as De } from "./Heading-Bpvbpnw2.js";
8
+ import { T as De } from "./Heading-DpEVkX3a.js";
9
9
  /**
10
10
  * @license lucide-react v0.543.0 - ISC
11
11
  *