@still-forest/canopy 0.32.0 → 0.34.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-DpEVkX3a.js";
2
+ import { T as s } from "./Heading-Bzl2l0K-.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
@@ -0,0 +1,263 @@
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
+ ({
6
+ className: c,
7
+ as: x,
8
+ size: o,
9
+ weight: f,
10
+ variant: t = "default",
11
+ align: l,
12
+ leading: r,
13
+ // No default: Tailwind applies a default from text size classes
14
+ tracking: s,
15
+ family: n = "body",
16
+ asForeground: e = !1,
17
+ truncate: u = !1,
18
+ numeric: m = !1,
19
+ ...b
20
+ }, i) => {
21
+ const g = x || "p";
22
+ return /* @__PURE__ */ a.jsx(
23
+ g,
24
+ {
25
+ className: p(
26
+ // Font sizes
27
+ {
28
+ "text-xs": o === "xs",
29
+ "text-sm": o === "sm",
30
+ "text-base": o === "base" || o === "md",
31
+ "text-lg": o === "lg",
32
+ "text-xl": o === "xl",
33
+ "text-2xl": o === "2xl",
34
+ "text-3xl": o === "3xl",
35
+ "text-4xl": o === "4xl",
36
+ "text-5xl": o === "5xl",
37
+ "text-6xl": o === "6xl",
38
+ "text-7xl": o === "7xl",
39
+ "text-8xl": o === "8xl",
40
+ "text-9xl": o === "9xl"
41
+ },
42
+ // Font weights
43
+ {
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
+ },
54
+ // Text colors (variants)
55
+ {
56
+ "text-foreground": t === "default",
57
+ "text-inherit": t === "inherit",
58
+ "text-muted-foreground": t === "muted",
59
+ "text-accent-foreground": t === "accent",
60
+ // Action colors
61
+ "text-primary-foreground": t === "primary",
62
+ "text-secondary-foreground": t === "secondary",
63
+ // Brand color
64
+ "text-brand": !e && t === "brand",
65
+ "text-brand-foreground": e && t === "brand",
66
+ // Accent colors (rich color variants)
67
+ "text-info": !e && t === "info",
68
+ "text-warning": !e && t === "warning",
69
+ "text-destructive": !e && t === "destructive",
70
+ "text-success": !e && t === "success",
71
+ // Accent colors (foreground variants)
72
+ "text-info-foreground": e && t === "info",
73
+ "text-warning-foreground": e && t === "warning",
74
+ "text-destructive-foreground": e && t === "destructive",
75
+ "text-success-foreground": e && t === "success"
76
+ },
77
+ // Text alignment
78
+ {
79
+ "text-left": l === "left",
80
+ "text-center": l === "center",
81
+ "text-right": l === "right",
82
+ "text-justify": l === "justify",
83
+ "text-start": l === "start",
84
+ "text-end": l === "end"
85
+ },
86
+ // Leading (line height)
87
+ {
88
+ "leading-none": r === "none",
89
+ "leading-tight": r === "tight",
90
+ "leading-snug": r === "snug",
91
+ "leading-normal": r === "normal",
92
+ "leading-relaxed": r === "relaxed",
93
+ "leading-loose": r === "loose"
94
+ },
95
+ // Tracking (letter spacing)
96
+ {
97
+ "tracking-tighter": s === "tighter",
98
+ "tracking-tight": s === "tight",
99
+ "tracking-normal": s === "normal",
100
+ "tracking-wide": s === "wide",
101
+ "tracking-wider": s === "wider",
102
+ "tracking-widest": s === "widest"
103
+ },
104
+ // Font family
105
+ {
106
+ "font-display": n === "display",
107
+ "font-heading": n === "heading",
108
+ "font-body": n === "body",
109
+ "font-brand": n === "brand",
110
+ "font-sans": n === "sans",
111
+ "font-serif": n === "serif",
112
+ "font-mono": n === "mono"
113
+ },
114
+ // Truncation
115
+ u && "truncate",
116
+ // Tabular numerals
117
+ m && "tabular-nums",
118
+ c
119
+ ),
120
+ ref: i,
121
+ ...b
122
+ }
123
+ );
124
+ }
125
+ );
126
+ y.displayName = "Text";
127
+ const j = h.forwardRef(
128
+ ({
129
+ className: c,
130
+ variant: x = "default",
131
+ level: o = "2",
132
+ size: f,
133
+ weight: t = "bold",
134
+ // Typical default browser style for headings
135
+ align: l,
136
+ leading: r,
137
+ // No default: Tailwind applies a default from text size classes
138
+ tracking: s,
139
+ family: n = "heading",
140
+ asForeground: e = !1,
141
+ truncate: u = !1,
142
+ numeric: m = !1,
143
+ ...b
144
+ }, i) => {
145
+ const g = `h${o}`, d = f || {
146
+ 1: "4xl",
147
+ 2: "3xl",
148
+ 3: "2xl",
149
+ 4: "xl",
150
+ 5: "lg",
151
+ 6: "base"
152
+ }[o];
153
+ return /* @__PURE__ */ a.jsx(
154
+ g,
155
+ {
156
+ className: p(
157
+ // Size scales
158
+ {
159
+ "text-xs": d === "xs",
160
+ "text-sm": d === "sm",
161
+ "text-base": d === "base" || d === "md",
162
+ "text-lg": d === "lg",
163
+ "text-xl": d === "xl",
164
+ "text-2xl": d === "2xl",
165
+ "text-3xl": d === "3xl",
166
+ "text-4xl": d === "4xl",
167
+ "text-5xl": d === "5xl",
168
+ "text-6xl": d === "6xl",
169
+ "text-7xl": d === "7xl",
170
+ "text-8xl": d === "8xl",
171
+ "text-9xl": d === "9xl"
172
+ },
173
+ // Font weights
174
+ {
175
+ "font-thin": t === "thin",
176
+ "font-extralight": t === "extralight",
177
+ "font-light": t === "light",
178
+ "font-normal": t === "normal",
179
+ "font-medium": t === "medium",
180
+ "font-semibold": t === "semibold",
181
+ "font-bold": t === "bold",
182
+ "font-extrabold": t === "extrabold",
183
+ "font-black": t === "black"
184
+ },
185
+ // Text colors (variants)
186
+ {
187
+ "text-foreground": x === "default",
188
+ "text-inherit": x === "inherit",
189
+ "text-muted-foreground": x === "muted",
190
+ "text-accent-foreground": x === "accent",
191
+ // Action colors
192
+ "text-primary-foreground": x === "primary",
193
+ "text-secondary-foreground": x === "secondary",
194
+ // Brand color
195
+ "text-brand": x === "brand",
196
+ "text-brand-foreground": e && x === "brand",
197
+ // Accent colors (rich color variants)
198
+ "text-info": !e && x === "info",
199
+ "text-warning": !e && x === "warning",
200
+ "text-destructive": !e && x === "destructive",
201
+ "text-success": !e && x === "success",
202
+ // Accent colors (foreground variants)
203
+ "text-info-foreground": e && x === "info",
204
+ "text-warning-foreground": e && x === "warning",
205
+ "text-destructive-foreground": e && x === "destructive",
206
+ "text-success-foreground": e && x === "success"
207
+ },
208
+ // Text alignment
209
+ {
210
+ "text-left": l === "left",
211
+ "text-center": l === "center",
212
+ "text-right": l === "right",
213
+ "text-justify": l === "justify",
214
+ "text-start": l === "start",
215
+ "text-end": l === "end"
216
+ },
217
+ // Leading (line height)
218
+ {
219
+ "leading-none": r === "none",
220
+ "leading-tight": r === "tight",
221
+ "leading-snug": r === "snug",
222
+ "leading-normal": r === "normal",
223
+ "leading-relaxed": r === "relaxed",
224
+ "leading-loose": r === "loose"
225
+ },
226
+ // Tracking (letter spacing)
227
+ {
228
+ "tracking-tighter": s === "tighter",
229
+ "tracking-tight": s === "tight",
230
+ "tracking-normal": s === "normal",
231
+ "tracking-wide": s === "wide",
232
+ "tracking-wider": s === "wider",
233
+ "tracking-widest": s === "widest"
234
+ },
235
+ // Font family
236
+ {
237
+ "font-brand": n === "brand",
238
+ "font-heading": n === "heading",
239
+ "font-body": n === "body",
240
+ "font-display": n === "display",
241
+ "font-sans": n === "sans",
242
+ "font-serif": n === "serif",
243
+ "font-mono": n === "mono"
244
+ },
245
+ // Truncation
246
+ u && "truncate",
247
+ // Tabular numerals
248
+ m && "tabular-nums",
249
+ // Add some scroll margin for better anchor navigation
250
+ "scroll-m-20",
251
+ c
252
+ ),
253
+ ref: i,
254
+ ...b
255
+ }
256
+ );
257
+ }
258
+ );
259
+ j.displayName = "Heading";
260
+ export {
261
+ j as H,
262
+ y as T
263
+ };
@@ -1,4 +1,4 @@
1
- import { j as m } from "./jsx-runtime-B0GD0xBr.js";
1
+ import { j as u } from "./jsx-runtime-B0GD0xBr.js";
2
2
  import y from "react";
3
3
  import { c as f } from "./index-CRiPKpXj.js";
4
4
  const i = y.forwardRef(
@@ -15,9 +15,9 @@ const i = y.forwardRef(
15
15
  overflow: c,
16
16
  overflowX: b,
17
17
  overflowY: d,
18
- rounded: u,
18
+ rounded: m,
19
19
  ...p
20
- }, v) => /* @__PURE__ */ m.jsx(
20
+ }, j) => /* @__PURE__ */ u.jsx(
21
21
  t,
22
22
  {
23
23
  className: f(
@@ -30,7 +30,8 @@ const i = y.forwardRef(
30
30
  "bg-info text-info-foreground": n === "info",
31
31
  "bg-success text-success-foreground": n === "success",
32
32
  "bg-warning text-warning-foreground": n === "warning",
33
- "bg-destructive text-destructive-foreground": n === "destructive"
33
+ "bg-destructive text-destructive-foreground": n === "destructive",
34
+ "bg-brand text-brand-foreground": n === "brand"
34
35
  },
35
36
  // Size
36
37
  {
@@ -226,20 +227,20 @@ const i = y.forwardRef(
226
227
  },
227
228
  // Rounded
228
229
  {
229
- rounded: u === !0,
230
- "rounded-none": u === "none",
231
- "rounded-xs": u === "xs",
232
- "rounded-sm": u === "sm",
233
- "rounded-md": u === "md",
234
- "rounded-lg": u === "lg",
235
- "rounded-xl": u === "xl",
236
- "rounded-2xl": u === "2xl",
237
- "rounded-3xl": u === "3xl",
238
- "rounded-full": u === "full"
230
+ rounded: m === !0,
231
+ "rounded-none": m === "none",
232
+ "rounded-xs": m === "xs",
233
+ "rounded-sm": m === "sm",
234
+ "rounded-md": m === "md",
235
+ "rounded-lg": m === "lg",
236
+ "rounded-xl": m === "xl",
237
+ "rounded-2xl": m === "2xl",
238
+ "rounded-3xl": m === "3xl",
239
+ "rounded-full": m === "full"
239
240
  },
240
241
  a
241
242
  ),
242
- ref: v,
243
+ ref: j,
243
244
  ...p
244
245
  }
245
246
  )
@@ -254,10 +255,10 @@ const g = ({ children: a, className: t, direction: n = "col", separation: r = "m
254
255
  "py-4 md:py-6": r === "lg",
255
256
  "py-6 md:py-8": r === "xl"
256
257
  });
257
- return o === "block" ? /* @__PURE__ */ m.jsx(i, { className: s, ...l, children: a }) : /* @__PURE__ */ m.jsx(w, { className: s, direction: n, ...l, children: a });
258
- }, j = ({ flex: a, className: t, as: n, children: r, ...e }) => {
258
+ return o === "block" ? /* @__PURE__ */ u.jsx(i, { className: s, ...l, children: a }) : /* @__PURE__ */ u.jsx(w, { className: s, direction: n, ...l, children: a });
259
+ }, v = ({ flex: a, className: t, as: n, children: r, ...e }) => {
259
260
  const o = n || "div";
260
- return /* @__PURE__ */ m.jsx(
261
+ return /* @__PURE__ */ u.jsx(
261
262
  o,
262
263
  {
263
264
  className: f(
@@ -274,7 +275,7 @@ const g = ({ children: a, className: t, direction: n = "col", separation: r = "m
274
275
  }
275
276
  );
276
277
  }, N = y.forwardRef(
277
- ({ className: a, as: t = "div", direction: n, align: r, justify: e, grow: o, wrap: l, gap: s, gapX: x, gapY: c, ...b }, d) => /* @__PURE__ */ m.jsx(
278
+ ({ className: a, as: t = "div", direction: n, align: r, justify: e, grow: o, wrap: l, gap: s, gapX: x, gapY: c, ...b }, d) => /* @__PURE__ */ u.jsx(
278
279
  t,
279
280
  {
280
281
  className: f(
@@ -392,8 +393,8 @@ const g = ({ children: a, className: t, direction: n = "col", separation: r = "m
392
393
  ...b
393
394
  }
394
395
  )
395
- ), w = Object.assign(N, { Item: j }), k = ({ children: a, className: t, ...n }) => /* @__PURE__ */ m.jsx(g, { as: "footer", className: f("bottom-0 mt-auto pb-2", t), justify: "between", ...n, children: a }), R = y.forwardRef(
396
- ({ className: a, as: t = "div", cols: n, rows: r, gap: e, gapX: o, gapY: l, flow: s, ...x }, c) => /* @__PURE__ */ m.jsx(
396
+ ), w = Object.assign(N, { Item: v }), k = ({ children: a, className: t, ...n }) => /* @__PURE__ */ u.jsx(g, { as: "footer", className: f("bottom-0 mt-auto pb-2", t), justify: "between", ...n, children: a }), R = y.forwardRef(
397
+ ({ className: a, as: t = "div", cols: n, rows: r, gap: e, gapX: o, gapY: l, flow: s, ...x }, c) => /* @__PURE__ */ u.jsx(
397
398
  t,
398
399
  {
399
400
  className: f(
@@ -513,10 +514,10 @@ const g = ({ children: a, className: t, direction: n = "col", separation: r = "m
513
514
  )
514
515
  );
515
516
  R.displayName = "Grid";
516
- const C = ({ children: a, sticky: t = !1, className: n, ...r }) => /* @__PURE__ */ m.jsx(g, { as: "header", className: f("top-0 ", t && "z-50 sticky", n), justify: "between", ...r, children: a }), F = ({ children: a, className: t, withContainer: n = !1, ...r }) => {
517
+ const C = ({ children: a, sticky: t = !1, className: n, ...r }) => /* @__PURE__ */ u.jsx(g, { as: "header", className: f("top-0 ", t && "z-50 sticky", n), justify: "between", ...r, children: a }), F = ({ children: a, className: t, withContainer: n = !1, ...r }) => {
517
518
  const e = f("flex-1 grow", t);
518
- return n ? /* @__PURE__ */ m.jsx(g, { as: "main", className: e, display: "block", ...r, children: a }) : /* @__PURE__ */ m.jsx(w.Item, { as: "main", className: e, ...r, children: a });
519
- }, B = y.forwardRef(({ children: a, className: t, ...n }, r) => /* @__PURE__ */ m.jsx(
519
+ return n ? /* @__PURE__ */ u.jsx(g, { as: "main", className: e, display: "block", ...r, children: a }) : /* @__PURE__ */ u.jsx(w.Item, { as: "main", className: e, ...r, children: a });
520
+ }, B = y.forwardRef(({ children: a, className: t, ...n }, r) => /* @__PURE__ */ u.jsx(
520
521
  w,
521
522
  {
522
523
  className: f("mx-auto w-full max-w-screen-xl h-screen flex-1", t),
@@ -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-DKwGFkIw.js";
3
3
  import "react";
4
- import { F as o, B as d } from "./Layout-CjE5bQn7.js";
5
- import { C as m } from "./Code-C8KML31r.js";
6
- import { H as h } from "./Heading-DpEVkX3a.js";
4
+ import { F as o, B as d } from "./Layout-CvVv48kM.js";
5
+ import { C as m } from "./Code-BA5638r9.js";
6
+ import { H as h } from "./Heading-Bzl2l0K-.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-DpEVkX3a.js";
3
+ import { T as p } from "./Heading-Bzl2l0K-.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-DKwGFkIw.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";
7
- import { F as ke } from "./Layout-CjE5bQn7.js";
8
- import { T as De } from "./Heading-DpEVkX3a.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-ByOImpZC.js";
7
+ import { F as ke } from "./Layout-CvVv48kM.js";
8
+ import { T as De } from "./Heading-Bzl2l0K-.js";
9
9
  /**
10
10
  * @license lucide-react v0.543.0 - ISC
11
11
  *