@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.
- package/dist/chunks/{Code-DSfz_jrJ.js → Code-C8KML31r.js} +1 -1
- package/dist/chunks/{Heading-Bpvbpnw2.js → Heading-DpEVkX3a.js} +63 -57
- package/dist/chunks/{PageNotFound-j9clObRA.js → PageNotFound-9R7TbMOe.js} +3 -3
- package/dist/chunks/{Paragraph-Lcw42_Mz.js → Paragraph-DiAQlGea.js} +1 -1
- package/dist/chunks/{SidebarLayout-q8zulDb7.js → SidebarLayout-wO9WdfoD.js} +3 -3
- package/dist/chunks/{Textarea-BsiZIC1o.js → Textarea-DuVdR28E.js} +624 -612
- package/dist/chunks/{calendar-DfVsywp-.js → calendar-B5XoIqC2.js} +35 -31
- package/dist/chunks/{popover-CP7xkaYK.js → popover-nVL6yIZo.js} +1 -1
- package/dist/forms.d.ts +13 -8
- package/dist/forms.js +2 -2
- package/dist/index.d.ts +15 -10
- package/dist/index.js +11 -11
- package/dist/interstitials.js +1 -1
- package/dist/navigation.d.ts +1 -1
- package/dist/navigation.js +1 -1
- package/dist/typography.d.ts +1 -1
- package/dist/typography.js +3 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-B0GD0xBr.js";
|
|
2
|
-
import { T as s } from "./Heading-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
const y =
|
|
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:
|
|
9
|
+
weight: f,
|
|
10
10
|
variant: t = "default",
|
|
11
|
-
align:
|
|
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:
|
|
15
|
+
family: n = "body",
|
|
16
16
|
asForeground: x = !1,
|
|
17
|
-
truncate:
|
|
18
|
-
numeric:
|
|
17
|
+
truncate: u = !1,
|
|
18
|
+
numeric: m = !1,
|
|
19
19
|
...i
|
|
20
|
-
},
|
|
20
|
+
}, b) => {
|
|
21
21
|
const g = o || "p";
|
|
22
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ a.jsx(
|
|
23
23
|
g,
|
|
24
24
|
{
|
|
25
|
-
className:
|
|
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":
|
|
45
|
-
"font-extralight":
|
|
46
|
-
"font-light":
|
|
47
|
-
"font-normal":
|
|
48
|
-
"font-medium":
|
|
49
|
-
"font-semibold":
|
|
50
|
-
"font-bold":
|
|
51
|
-
"font-extrabold":
|
|
52
|
-
"font-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":
|
|
77
|
-
"text-center":
|
|
78
|
-
"text-right":
|
|
79
|
-
"text-justify":
|
|
80
|
-
"text-start":
|
|
81
|
-
"text-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":
|
|
104
|
-
"font-
|
|
105
|
-
"font-
|
|
106
|
-
"font-
|
|
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
|
-
|
|
112
|
+
u && "truncate",
|
|
110
113
|
// Tabular numerals
|
|
111
|
-
|
|
114
|
+
m && "tabular-nums",
|
|
112
115
|
c
|
|
113
116
|
),
|
|
114
|
-
ref:
|
|
117
|
+
ref: b,
|
|
115
118
|
...i
|
|
116
119
|
}
|
|
117
120
|
);
|
|
118
121
|
}
|
|
119
122
|
);
|
|
120
123
|
y.displayName = "Text";
|
|
121
|
-
const j =
|
|
124
|
+
const j = h.forwardRef(
|
|
122
125
|
({
|
|
123
126
|
className: c,
|
|
124
127
|
variant: o = "default",
|
|
125
128
|
level: e = "2",
|
|
126
|
-
size:
|
|
129
|
+
size: f,
|
|
127
130
|
weight: t = "bold",
|
|
128
131
|
// Typical default browser style for headings
|
|
129
|
-
align:
|
|
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:
|
|
136
|
+
family: n = "heading",
|
|
134
137
|
asForeground: x = !1,
|
|
135
|
-
truncate:
|
|
136
|
-
numeric:
|
|
138
|
+
truncate: u = !1,
|
|
139
|
+
numeric: m = !1,
|
|
137
140
|
...i
|
|
138
|
-
},
|
|
139
|
-
const g = `h${e}`, l =
|
|
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__ */
|
|
150
|
+
return /* @__PURE__ */ a.jsx(
|
|
148
151
|
g,
|
|
149
152
|
{
|
|
150
|
-
className:
|
|
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":
|
|
202
|
-
"text-center":
|
|
203
|
-
"text-right":
|
|
204
|
-
"text-justify":
|
|
205
|
-
"text-start":
|
|
206
|
-
"text-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-
|
|
229
|
-
"font-
|
|
230
|
-
"font-
|
|
231
|
-
"font-
|
|
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
|
-
|
|
240
|
+
u && "truncate",
|
|
235
241
|
// Tabular numerals
|
|
236
|
-
|
|
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:
|
|
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-
|
|
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-
|
|
6
|
-
import { H as h } from "./Heading-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
8
|
+
import { T as De } from "./Heading-DpEVkX3a.js";
|
|
9
9
|
/**
|
|
10
10
|
* @license lucide-react v0.543.0 - ISC
|
|
11
11
|
*
|