@still-forest/canopy 0.30.0 → 0.32.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/{Layout-DAdzkAxW.js → Layout-CjE5bQn7.js} +79 -72
- package/dist/chunks/{PageNotFound-BqoSSvCP.js → PageNotFound-DxxRBMDz.js} +4 -4
- package/dist/chunks/{Paragraph-Lcw42_Mz.js → Paragraph-DiAQlGea.js} +1 -1
- package/dist/chunks/{SidebarLayout-Bm8SlspC.js → SidebarLayout--MNsYxAf.js} +657 -604
- package/dist/chunks/{Textarea-Doc1h--A.js → Textarea-DQRwMNUV.js} +4 -4
- package/dist/chunks/{calendar-D21xByT8.js → calendar-DfVsywp-.js} +1 -1
- package/dist/chunks/{popover-BhBG-w7n.js → popover-CP7xkaYK.js} +1 -1
- package/dist/forms.js +2 -2
- package/dist/index.d.ts +37 -9
- package/dist/index.js +110 -161
- package/dist/interstitials.js +1 -1
- package/dist/layout.d.ts +2 -1
- package/dist/layout.js +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,11 +1,11 @@
|
|
|
1
1
|
import { j as i } from "./jsx-runtime-B0GD0xBr.js";
|
|
2
|
-
import { c as re, u as V, f as kt, B as ct, i as fr, j as Ne, h as pr } from "./calendar-
|
|
2
|
+
import { c as re, u as V, f as kt, B as ct, i as fr, j as Ne, h as pr } from "./calendar-DfVsywp-.js";
|
|
3
3
|
import * as s from "react";
|
|
4
4
|
import { useState as lt, useEffect as mr, useMemo as vr } from "react";
|
|
5
|
-
import { F as ae, G as hr } from "./Layout-
|
|
6
|
-
import { T as Ae } from "./Heading-
|
|
5
|
+
import { F as ae, G as hr } from "./Layout-CjE5bQn7.js";
|
|
6
|
+
import { T as Ae } from "./Heading-DpEVkX3a.js";
|
|
7
7
|
import { c as $ } from "./index-CRiPKpXj.js";
|
|
8
|
-
import { c as we, d as jt, P as k, a as ye, e as F, t as Pt, g as _t, b as Z, u as dt, v as Me, l as Tt, m as gr, A as xr, f as ne, h as Dt, V as br, i as At, j as yr, R as Mt, F as Ot, D as wr, C as Cr, n as Sr, q as Ft, r as Lt, s as Bt, p as $t, w as Er, x as Ir, k as Rr } from "./popover-
|
|
8
|
+
import { c as we, d as jt, P as k, a as ye, e as F, t as Pt, g as _t, b as Z, u as dt, v as Me, l as Tt, m as gr, A as xr, f as ne, h as Dt, V as br, i as At, j as yr, R as Mt, F as Ot, D as wr, C as Cr, n as Sr, q as Ft, r as Lt, s as Bt, p as $t, w as Er, x as Ir, k as Rr } from "./popover-CP7xkaYK.js";
|
|
9
9
|
import * as Vt from "react-dom";
|
|
10
10
|
/**
|
|
11
11
|
* @license lucide-react v0.543.0 - ISC
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as P } from "./jsx-runtime-B0GD0xBr.js";
|
|
2
|
-
import { F as mt } from "./Layout-
|
|
2
|
+
import { F as mt } from "./Layout-CjE5bQn7.js";
|
|
3
3
|
import { a as Dn, c as _ } from "./index-CRiPKpXj.js";
|
|
4
4
|
import * as j from "react";
|
|
5
5
|
import h, { forwardRef as yt, createElement as He, createContext as On, useContext as Cn, useCallback as Q, useRef as Se, useLayoutEffect as Nn, useState as qe, useEffect as xn, useMemo as Fe } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Vn, f as Me, u as Y } from "./calendar-
|
|
1
|
+
import { c as Vn, f as Me, u as Y } from "./calendar-DfVsywp-.js";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import oe, { useState as Un, useLayoutEffect as Yn } from "react";
|
|
4
4
|
import { j as S } from "./jsx-runtime-B0GD0xBr.js";
|
package/dist/forms.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as e, a as s } from "./chunks/calendar-
|
|
2
|
-
import { C as o, a as r, b as n, D as p, I as c, c as I, L as b, N as l, R as x, d as B, e as S, S as i, f as m, T as D } from "./chunks/Textarea-
|
|
1
|
+
import { B as e, a as s } from "./chunks/calendar-DfVsywp-.js";
|
|
2
|
+
import { C as o, a as r, b as n, D as p, I as c, c as I, L as b, N as l, R as x, d as B, e as S, S as i, f as m, T as D } from "./chunks/Textarea-DQRwMNUV.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Button,
|
|
5
5
|
s as ButtonGroup,
|
package/dist/index.d.ts
CHANGED
|
@@ -130,19 +130,46 @@ declare const buttonVariants: (props?: ({
|
|
|
130
130
|
size?: "default" | "unstyled" | "sm" | "lg" | "icon" | null | undefined;
|
|
131
131
|
} & ClassProp) | undefined) => string;
|
|
132
132
|
|
|
133
|
-
export declare
|
|
133
|
+
export declare const Card: CardComponent;
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
declare function Card_2({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
declare function CardAction({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
declare type CardActionProps = React.ComponentProps<typeof CardAction>;
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
declare type CardComponent = React.FC<CardProps> & {
|
|
142
|
+
Action: React.FC<CardActionProps>;
|
|
143
|
+
Content: React.FC<CardContentProps>;
|
|
144
|
+
Description: React.FC<CardDescriptionProps>;
|
|
145
|
+
Footer: React.FC<CardFooterProps>;
|
|
146
|
+
Header: React.FC<CardHeaderProps>;
|
|
147
|
+
Title: React.FC<CardTitleProps>;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
151
|
+
|
|
152
|
+
declare type CardContentProps = React.ComponentProps<typeof CardContent>;
|
|
153
|
+
|
|
154
|
+
declare function CardDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
155
|
+
|
|
156
|
+
declare type CardDescriptionProps = React.ComponentProps<typeof CardDescription>;
|
|
157
|
+
|
|
158
|
+
declare function CardFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
159
|
+
|
|
160
|
+
declare type CardFooterProps = React.ComponentProps<typeof CardFooter>;
|
|
161
|
+
|
|
162
|
+
declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
163
|
+
|
|
164
|
+
declare type CardHeaderProps = React.ComponentProps<typeof CardHeader>;
|
|
165
|
+
|
|
166
|
+
export declare type CardProps = React.ComponentProps<typeof Card_2> & {
|
|
167
|
+
children: ReactNode;
|
|
168
|
+
};
|
|
142
169
|
|
|
143
|
-
|
|
170
|
+
declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
144
171
|
|
|
145
|
-
|
|
172
|
+
declare type CardTitleProps = React.ComponentProps<typeof CardTitle>;
|
|
146
173
|
|
|
147
174
|
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange }: CheckboxProps) => JSX.Element;
|
|
148
175
|
|
|
@@ -177,12 +204,13 @@ declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Co
|
|
|
177
204
|
|
|
178
205
|
declare type CollapsibleTriggerProps = React.ComponentProps<typeof CollapsibleTrigger>;
|
|
179
206
|
|
|
180
|
-
export declare const Container: ({ children, className, direction, ...props }: ContainerProps) => JSX.Element;
|
|
207
|
+
export declare const Container: ({ children, className, direction, separation, ...props }: ContainerProps) => JSX.Element;
|
|
181
208
|
|
|
182
209
|
export declare interface ContainerProps extends FlexProps {
|
|
183
210
|
children: React.ReactNode;
|
|
184
211
|
display?: Display_2;
|
|
185
212
|
className?: string;
|
|
213
|
+
separation?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
186
214
|
}
|
|
187
215
|
|
|
188
216
|
export declare type CursorType = "arrow" | "pointer" | "text" | "not-allowed";
|
|
@@ -271,7 +299,7 @@ declare type FlexType = "1" | "auto" | "initial" | "none";
|
|
|
271
299
|
|
|
272
300
|
declare type FlexWrap = (typeof FLEX_WRAPS)[number];
|
|
273
301
|
|
|
274
|
-
declare const FONT_FAMILIES: readonly ["display", "serif", "sans", "mono"];
|
|
302
|
+
declare const FONT_FAMILIES: readonly ["display", "serif", "sans", "mono", "heading", "body", "brand"];
|
|
275
303
|
|
|
276
304
|
declare const FONT_SIZES: readonly ["xs", "sm", "base", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "8xl", "9xl"];
|
|
277
305
|
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { R, T as
|
|
2
|
-
import { A as
|
|
1
|
+
import { R, T as P, C as F, c as V, X as O, d as H, D as q, P as K, O as X, e as J } from "./chunks/SidebarLayout--MNsYxAf.js";
|
|
2
|
+
import { A as Na, f as ka, g as wa, M as Ta, h as Ca, a as _a, b as Ia, S as Ma, r as Sa, i as za, j as Aa, k as $a, l as Da, m as Ea, n as Ba, o as La, p as Ga, q as Ra } from "./chunks/SidebarLayout--MNsYxAf.js";
|
|
3
3
|
import { j as t } from "./chunks/jsx-runtime-B0GD0xBr.js";
|
|
4
|
-
import { c as
|
|
5
|
-
import { B as
|
|
4
|
+
import { c as g, b as N, S as T, C, d as Q, e as U } from "./chunks/calendar-DfVsywp-.js";
|
|
5
|
+
import { B as Fa, a as Va } from "./chunks/calendar-DfVsywp-.js";
|
|
6
6
|
import { c as i } from "./chunks/index-CRiPKpXj.js";
|
|
7
7
|
import * as x from "react";
|
|
8
8
|
import { Fragment as W, useState as Y, useEffect as Z, useMemo as ee } from "react";
|
|
9
|
-
import { u as ae, a as te, c as re, b as se, P as h, d as ne, e as j } from "./chunks/popover-
|
|
10
|
-
import { g as _, h as oe, i as ie } from "./chunks/Textarea-
|
|
11
|
-
import { C as
|
|
12
|
-
import { E as
|
|
13
|
-
import { B as
|
|
14
|
-
import { C as
|
|
15
|
-
import { H as
|
|
16
|
-
import { P as
|
|
9
|
+
import { u as ae, a as te, c as re, b as se, P as h, d as ne, e as j } from "./chunks/popover-CP7xkaYK.js";
|
|
10
|
+
import { g as _, h as oe, i as ie } from "./chunks/Textarea-DQRwMNUV.js";
|
|
11
|
+
import { C as Ha, a as qa, b as Ka, D as Xa, I as Ja, c as Qa, L as Ua, N as Wa, R as Ya, d as Za, e as et, S as at, f as tt, T as rt } from "./chunks/Textarea-DQRwMNUV.js";
|
|
12
|
+
import { E as nt, a as ot, I as it, P as lt, b as ct } from "./chunks/PageNotFound-DxxRBMDz.js";
|
|
13
|
+
import { B as ut, C as bt, F as mt, a as gt, G as pt, H as xt, L as ft } from "./chunks/Layout-CjE5bQn7.js";
|
|
14
|
+
import { C as ht } from "./chunks/Code-C8KML31r.js";
|
|
15
|
+
import { H as jt, T as Nt } from "./chunks/Heading-DpEVkX3a.js";
|
|
16
|
+
import { P as wt } from "./chunks/Paragraph-DiAQlGea.js";
|
|
17
17
|
/**
|
|
18
18
|
* @license lucide-react v0.543.0 - ISC
|
|
19
19
|
*
|
|
@@ -23,7 +23,7 @@ import { P as St } from "./chunks/Paragraph-Lcw42_Mz.js";
|
|
|
23
23
|
const le = [
|
|
24
24
|
["path", { d: "m17 18-6-6 6-6", key: "1yerx2" }],
|
|
25
25
|
["path", { d: "M7 6v12", key: "1p53r6" }]
|
|
26
|
-
], ce =
|
|
26
|
+
], ce = g("chevron-first", le);
|
|
27
27
|
/**
|
|
28
28
|
* @license lucide-react v0.543.0 - ISC
|
|
29
29
|
*
|
|
@@ -33,28 +33,28 @@ const le = [
|
|
|
33
33
|
const de = [
|
|
34
34
|
["path", { d: "m7 18 6-6-6-6", key: "lwmzdw" }],
|
|
35
35
|
["path", { d: "M17 6v12", key: "1o0aio" }]
|
|
36
|
-
], ue =
|
|
36
|
+
], ue = g("chevron-last", de);
|
|
37
37
|
/**
|
|
38
38
|
* @license lucide-react v0.543.0 - ISC
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the ISC license.
|
|
41
41
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
const
|
|
43
|
+
const be = [
|
|
44
44
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
45
45
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
46
|
-
],
|
|
46
|
+
], me = g("circle-check-big", be);
|
|
47
47
|
/**
|
|
48
48
|
* @license lucide-react v0.543.0 - ISC
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the ISC license.
|
|
51
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
52
52
|
*/
|
|
53
|
-
const
|
|
53
|
+
const ge = [
|
|
54
54
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
55
55
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
56
56
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
57
|
-
], pe =
|
|
57
|
+
], pe = g("ellipsis", ge);
|
|
58
58
|
/**
|
|
59
59
|
* @license lucide-react v0.543.0 - ISC
|
|
60
60
|
*
|
|
@@ -65,7 +65,7 @@ const xe = [
|
|
|
65
65
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
66
66
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
67
67
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
68
|
-
], fe =
|
|
68
|
+
], fe = g("info", xe);
|
|
69
69
|
/**
|
|
70
70
|
* @license lucide-react v0.543.0 - ISC
|
|
71
71
|
*
|
|
@@ -82,7 +82,7 @@ const ve = [
|
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
84
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
85
|
-
], he =
|
|
85
|
+
], he = g("octagon-x", ve);
|
|
86
86
|
/**
|
|
87
87
|
* @license lucide-react v0.543.0 - ISC
|
|
88
88
|
*
|
|
@@ -99,7 +99,7 @@ const ye = [
|
|
|
99
99
|
],
|
|
100
100
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
101
101
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
102
|
-
], je =
|
|
102
|
+
], je = g("triangle-alert", ye);
|
|
103
103
|
var y = "Tabs", [Ne, la] = re(y, [
|
|
104
104
|
_
|
|
105
105
|
]), I = _(), [ke, k] = Ne(y), M = x.forwardRef(
|
|
@@ -111,8 +111,8 @@ var y = "Tabs", [Ne, la] = re(y, [
|
|
|
111
111
|
defaultValue: l,
|
|
112
112
|
orientation: r = "horizontal",
|
|
113
113
|
dir: c,
|
|
114
|
-
activationMode:
|
|
115
|
-
...
|
|
114
|
+
activationMode: b = "automatic",
|
|
115
|
+
...m
|
|
116
116
|
} = e, d = ae(c), [u, p] = te({
|
|
117
117
|
prop: s,
|
|
118
118
|
onChange: n,
|
|
@@ -128,13 +128,13 @@ var y = "Tabs", [Ne, la] = re(y, [
|
|
|
128
128
|
onValueChange: p,
|
|
129
129
|
orientation: r,
|
|
130
130
|
dir: d,
|
|
131
|
-
activationMode:
|
|
131
|
+
activationMode: b,
|
|
132
132
|
children: /* @__PURE__ */ t.jsx(
|
|
133
133
|
h.div,
|
|
134
134
|
{
|
|
135
135
|
dir: d,
|
|
136
136
|
"data-orientation": r,
|
|
137
|
-
...
|
|
137
|
+
...m,
|
|
138
138
|
ref: a
|
|
139
139
|
}
|
|
140
140
|
)
|
|
@@ -170,7 +170,7 @@ var S = "TabsList", z = x.forwardRef(
|
|
|
170
170
|
z.displayName = S;
|
|
171
171
|
var A = "TabsTrigger", $ = x.forwardRef(
|
|
172
172
|
(e, a) => {
|
|
173
|
-
const { __scopeTabs: o, value: s, disabled: n = !1, ...l } = e, r = k(A, o), c = I(o),
|
|
173
|
+
const { __scopeTabs: o, value: s, disabled: n = !1, ...l } = e, r = k(A, o), c = I(o), b = B(r.baseId, s), m = L(r.baseId, s), d = s === r.value;
|
|
174
174
|
return /* @__PURE__ */ t.jsx(
|
|
175
175
|
ie,
|
|
176
176
|
{
|
|
@@ -184,11 +184,11 @@ var A = "TabsTrigger", $ = x.forwardRef(
|
|
|
184
184
|
type: "button",
|
|
185
185
|
role: "tab",
|
|
186
186
|
"aria-selected": d,
|
|
187
|
-
"aria-controls":
|
|
187
|
+
"aria-controls": m,
|
|
188
188
|
"data-state": d ? "active" : "inactive",
|
|
189
189
|
"data-disabled": n ? "" : void 0,
|
|
190
190
|
disabled: n,
|
|
191
|
-
id:
|
|
191
|
+
id: b,
|
|
192
192
|
...l,
|
|
193
193
|
ref: a,
|
|
194
194
|
onMouseDown: j(e.onMouseDown, (u) => {
|
|
@@ -210,7 +210,7 @@ var A = "TabsTrigger", $ = x.forwardRef(
|
|
|
210
210
|
$.displayName = A;
|
|
211
211
|
var D = "TabsContent", E = x.forwardRef(
|
|
212
212
|
(e, a) => {
|
|
213
|
-
const { __scopeTabs: o, value: s, forceMount: n, children: l, ...r } = e, c = k(D, o),
|
|
213
|
+
const { __scopeTabs: o, value: s, forceMount: n, children: l, ...r } = e, c = k(D, o), b = B(c.baseId, s), m = L(c.baseId, s), d = s === c.value, u = x.useRef(d);
|
|
214
214
|
return x.useEffect(() => {
|
|
215
215
|
const p = requestAnimationFrame(() => u.current = !1);
|
|
216
216
|
return () => cancelAnimationFrame(p);
|
|
@@ -220,9 +220,9 @@ var D = "TabsContent", E = x.forwardRef(
|
|
|
220
220
|
"data-state": d ? "active" : "inactive",
|
|
221
221
|
"data-orientation": c.orientation,
|
|
222
222
|
role: "tabpanel",
|
|
223
|
-
"aria-labelledby":
|
|
223
|
+
"aria-labelledby": b,
|
|
224
224
|
hidden: !p,
|
|
225
|
-
id:
|
|
225
|
+
id: m,
|
|
226
226
|
tabIndex: 0,
|
|
227
227
|
...r,
|
|
228
228
|
ref: a,
|
|
@@ -283,7 +283,7 @@ function ze({ className: e, ...a }) {
|
|
|
283
283
|
);
|
|
284
284
|
}
|
|
285
285
|
const Ae = {
|
|
286
|
-
success:
|
|
286
|
+
success: me,
|
|
287
287
|
info: fe,
|
|
288
288
|
error: he,
|
|
289
289
|
warning: je
|
|
@@ -538,7 +538,7 @@ function Re({ className: e, ...a }) {
|
|
|
538
538
|
}
|
|
539
539
|
);
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Pe({ children: e, className: a, ...o }) {
|
|
542
542
|
return /* @__PURE__ */ t.jsx(
|
|
543
543
|
"li",
|
|
544
544
|
{
|
|
@@ -551,66 +551,21 @@ function Fe({ children: e, className: a, ...o }) {
|
|
|
551
551
|
}
|
|
552
552
|
);
|
|
553
553
|
}
|
|
554
|
-
const
|
|
555
|
-
const n = a ||
|
|
556
|
-
return /* @__PURE__ */ t.jsx(Be, { className: i("my-4", s), children: /* @__PURE__ */ t.jsx(Le, { children: e.map(({ to: r, label: c },
|
|
554
|
+
const Fe = ({ to: e, label: a }) => /* @__PURE__ */ t.jsx(G, { className: "font-display", href: e, children: a }), Ve = ({ label: e }) => /* @__PURE__ */ t.jsx(Re, { className: "font-display", children: e }), ua = ({ breadcrumbs: e, linkComponent: a, pageComponent: o, className: s }) => {
|
|
555
|
+
const n = a || Fe, l = o || Ve;
|
|
556
|
+
return /* @__PURE__ */ t.jsx(Be, { className: i("my-4", s), children: /* @__PURE__ */ t.jsx(Le, { children: e.map(({ to: r, label: c }, b) => /* @__PURE__ */ t.jsxs(W, { children: [
|
|
557
557
|
/* @__PURE__ */ t.jsxs(Ge, { children: [
|
|
558
558
|
r && /* @__PURE__ */ t.jsx(G, { asChild: !0, className: "font-display", children: /* @__PURE__ */ t.jsx(n, { label: c, to: r }) }),
|
|
559
559
|
!r && /* @__PURE__ */ t.jsx(l, { label: c })
|
|
560
560
|
] }),
|
|
561
|
-
|
|
561
|
+
b < e.length - 1 && /* @__PURE__ */ t.jsx(Pe, {})
|
|
562
562
|
] }, c)) }) });
|
|
563
563
|
};
|
|
564
|
-
function ma({ className: e, ...a }) {
|
|
565
|
-
return /* @__PURE__ */ t.jsx(
|
|
566
|
-
"div",
|
|
567
|
-
{
|
|
568
|
-
className: i("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm", e),
|
|
569
|
-
"data-slot": "card",
|
|
570
|
-
...a
|
|
571
|
-
}
|
|
572
|
-
);
|
|
573
|
-
}
|
|
574
|
-
function ga({ className: e, ...a }) {
|
|
575
|
-
return /* @__PURE__ */ t.jsx(
|
|
576
|
-
"div",
|
|
577
|
-
{
|
|
578
|
-
className: i(
|
|
579
|
-
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
580
|
-
e
|
|
581
|
-
),
|
|
582
|
-
"data-slot": "card-header",
|
|
583
|
-
...a
|
|
584
|
-
}
|
|
585
|
-
);
|
|
586
|
-
}
|
|
587
|
-
function ba({ className: e, ...a }) {
|
|
588
|
-
return /* @__PURE__ */ t.jsx("div", { className: i("font-semibold leading-none", e), "data-slot": "card-title", ...a });
|
|
589
|
-
}
|
|
590
|
-
function pa({ className: e, ...a }) {
|
|
591
|
-
return /* @__PURE__ */ t.jsx("div", { className: i("text-muted-foreground text-sm", e), "data-slot": "card-description", ...a });
|
|
592
|
-
}
|
|
593
|
-
function xa({ className: e, ...a }) {
|
|
594
|
-
return /* @__PURE__ */ t.jsx(
|
|
595
|
-
"div",
|
|
596
|
-
{
|
|
597
|
-
className: i("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
598
|
-
"data-slot": "card-action",
|
|
599
|
-
...a
|
|
600
|
-
}
|
|
601
|
-
);
|
|
602
|
-
}
|
|
603
|
-
function fa({ className: e, ...a }) {
|
|
604
|
-
return /* @__PURE__ */ t.jsx("div", { className: i("px-6", e), "data-slot": "card-content", ...a });
|
|
605
|
-
}
|
|
606
|
-
function va({ className: e, ...a }) {
|
|
607
|
-
return /* @__PURE__ */ t.jsx("div", { className: i("flex items-center px-6 [.border-t]:pt-6", e), "data-slot": "card-footer", ...a });
|
|
608
|
-
}
|
|
609
564
|
function Oe({ ...e }) {
|
|
610
565
|
return /* @__PURE__ */ t.jsx(R, { "data-slot": "dialog", ...e });
|
|
611
566
|
}
|
|
612
567
|
function He({ ...e }) {
|
|
613
|
-
return /* @__PURE__ */ t.jsx(
|
|
568
|
+
return /* @__PURE__ */ t.jsx(P, { "data-slot": "dialog-trigger", ...e });
|
|
614
569
|
}
|
|
615
570
|
function qe({ ...e }) {
|
|
616
571
|
return /* @__PURE__ */ t.jsx(K, { "data-slot": "dialog-portal", ...e });
|
|
@@ -632,7 +587,7 @@ function Xe({ className: e, children: a, ...o }) {
|
|
|
632
587
|
return /* @__PURE__ */ t.jsxs(qe, { "data-slot": "dialog-portal", children: [
|
|
633
588
|
/* @__PURE__ */ t.jsx(Ke, {}),
|
|
634
589
|
/* @__PURE__ */ t.jsxs(
|
|
635
|
-
|
|
590
|
+
F,
|
|
636
591
|
{
|
|
637
592
|
className: i(
|
|
638
593
|
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",
|
|
@@ -681,16 +636,16 @@ function Ue({ className: e, ...a }) {
|
|
|
681
636
|
}
|
|
682
637
|
);
|
|
683
638
|
}
|
|
684
|
-
const
|
|
685
|
-
const r = n !== void 0, [c,
|
|
639
|
+
const ba = ({ trigger: e, children: a, title: o, description: s, open: n, onOpenChange: l }) => {
|
|
640
|
+
const r = n !== void 0, [c, b] = Y(r ? n : !1);
|
|
686
641
|
if (Z(() => {
|
|
687
|
-
r &&
|
|
642
|
+
r && b(n);
|
|
688
643
|
}, [n, r]), !e && !r)
|
|
689
644
|
throw new Error("Trigger must be provided if modal state is not controlled through open, onOpenChange props.");
|
|
690
|
-
const
|
|
691
|
-
|
|
645
|
+
const m = (d) => {
|
|
646
|
+
b(d), l?.(d);
|
|
692
647
|
};
|
|
693
|
-
return /* @__PURE__ */ t.jsxs(Oe, { onOpenChange:
|
|
648
|
+
return /* @__PURE__ */ t.jsxs(Oe, { onOpenChange: m, open: c, children: [
|
|
694
649
|
/* @__PURE__ */ t.jsx(He, { asChild: !0, children: e }),
|
|
695
650
|
/* @__PURE__ */ t.jsxs(Xe, { children: [
|
|
696
651
|
(o || s) && /* @__PURE__ */ t.jsxs(Je, { children: [
|
|
@@ -781,7 +736,7 @@ function w({ className: e, ...a }) {
|
|
|
781
736
|
}
|
|
782
737
|
);
|
|
783
738
|
}
|
|
784
|
-
const
|
|
739
|
+
const ma = ({ pageCount: e, currentPage: a, onChange: o }) => {
|
|
785
740
|
const s = Math.max(1, e), n = Math.max(1, Math.min(a, s)), l = ee(() => s === 1 ? [1] : n <= 3 ? Array.from({ length: Math.min(3, s) }, (r, c) => c + 1) : n >= s - 2 ? Array.from(
|
|
786
741
|
{ length: Math.min(3, s) },
|
|
787
742
|
(r, c) => s - Math.min(3, s) + c + 1
|
|
@@ -862,7 +817,7 @@ const ya = ({ pageCount: e, currentPage: a, onChange: o }) => {
|
|
|
862
817
|
}
|
|
863
818
|
) })
|
|
864
819
|
] }) });
|
|
865
|
-
},
|
|
820
|
+
}, ga = ({ className: e, orientation: a = "horizontal", gap: o, ...s }) => {
|
|
866
821
|
const n = a === "vertical", r = o ?? (n ? "2" : "4");
|
|
867
822
|
return /* @__PURE__ */ t.jsx(
|
|
868
823
|
J,
|
|
@@ -914,13 +869,13 @@ const ya = ({ pageCount: e, currentPage: a, onChange: o }) => {
|
|
|
914
869
|
}
|
|
915
870
|
);
|
|
916
871
|
};
|
|
917
|
-
function
|
|
872
|
+
function pa({ className: e, ...a }) {
|
|
918
873
|
return /* @__PURE__ */ t.jsx("div", { className: i("animate-pulse rounded-md bg-accent", e), "data-slot": "skeleton", ...a });
|
|
919
874
|
}
|
|
920
|
-
function
|
|
875
|
+
function xa({ className: e, ...a }) {
|
|
921
876
|
return /* @__PURE__ */ t.jsx(we, { className: i("flex flex-col gap-2", e), "data-slot": "tabs", ...a });
|
|
922
877
|
}
|
|
923
|
-
function
|
|
878
|
+
function fa({ className: e, ...a }) {
|
|
924
879
|
return /* @__PURE__ */ t.jsx(
|
|
925
880
|
Te,
|
|
926
881
|
{
|
|
@@ -933,7 +888,7 @@ function wa({ className: e, ...a }) {
|
|
|
933
888
|
}
|
|
934
889
|
);
|
|
935
890
|
}
|
|
936
|
-
function
|
|
891
|
+
function va({ className: e, ...a }) {
|
|
937
892
|
return /* @__PURE__ */ t.jsx(
|
|
938
893
|
Ce,
|
|
939
894
|
{
|
|
@@ -946,76 +901,70 @@ function Ta({ className: e, ...a }) {
|
|
|
946
901
|
}
|
|
947
902
|
);
|
|
948
903
|
}
|
|
949
|
-
function
|
|
904
|
+
function ha({ className: e, ...a }) {
|
|
950
905
|
return /* @__PURE__ */ t.jsx(_e, { className: i("flex-1 outline-none", e), "data-slot": "tabs-content", ...a });
|
|
951
906
|
}
|
|
952
907
|
export {
|
|
953
|
-
|
|
908
|
+
Na as Accordion,
|
|
954
909
|
ca as Alert,
|
|
955
910
|
da as Badge,
|
|
956
|
-
|
|
911
|
+
ut as Box,
|
|
957
912
|
ua as Breadcrumbs,
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
La as
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
Ta as TabsTrigger,
|
|
1015
|
-
It as Text,
|
|
1016
|
-
lt as TextInput,
|
|
1017
|
-
ct as Textarea,
|
|
1018
|
-
Ha as ThemeSelector,
|
|
1019
|
-
qa as Tooltip,
|
|
913
|
+
Fa as Button,
|
|
914
|
+
Va as ButtonGroup,
|
|
915
|
+
ka as Card,
|
|
916
|
+
Ha as Checkbox,
|
|
917
|
+
ht as Code,
|
|
918
|
+
wa as Collapsible,
|
|
919
|
+
bt as Container,
|
|
920
|
+
qa as DateInput,
|
|
921
|
+
Ka as DatePicker,
|
|
922
|
+
Xa as DeleteButton,
|
|
923
|
+
nt as ErrorFallback,
|
|
924
|
+
ot as ErrorOverlay,
|
|
925
|
+
mt as Flex,
|
|
926
|
+
gt as Footer,
|
|
927
|
+
pt as Grid,
|
|
928
|
+
xt as Header,
|
|
929
|
+
jt as Heading,
|
|
930
|
+
Ja as InputError,
|
|
931
|
+
Qa as InputGroup,
|
|
932
|
+
it as Interstitial,
|
|
933
|
+
Ua as Label,
|
|
934
|
+
ft as Layout,
|
|
935
|
+
Ta as MenuItemText,
|
|
936
|
+
ba as Modal,
|
|
937
|
+
Wa as NumberInput,
|
|
938
|
+
lt as PageLoader,
|
|
939
|
+
ct as PageNotFound,
|
|
940
|
+
ma as Pagination,
|
|
941
|
+
wt as Paragraph,
|
|
942
|
+
Ca as Popover,
|
|
943
|
+
Ya as RadioSelect,
|
|
944
|
+
Za as SelectInput,
|
|
945
|
+
et as SelectPicker,
|
|
946
|
+
ga as Separator,
|
|
947
|
+
_a as Sidebar,
|
|
948
|
+
Ia as SidebarLayout,
|
|
949
|
+
Ma as SidebarTrigger,
|
|
950
|
+
Sa as SimpleTooltip,
|
|
951
|
+
pa as Skeleton,
|
|
952
|
+
at as SubmitButton,
|
|
953
|
+
za as Table,
|
|
954
|
+
Aa as TableBody,
|
|
955
|
+
$a as TableCaption,
|
|
956
|
+
Da as TableCell,
|
|
957
|
+
Ea as TableHead,
|
|
958
|
+
Ba as TableHeader,
|
|
959
|
+
La as TableRow,
|
|
960
|
+
xa as Tabs,
|
|
961
|
+
ha as TabsContent,
|
|
962
|
+
fa as TabsList,
|
|
963
|
+
va as TabsTrigger,
|
|
964
|
+
Nt as Text,
|
|
965
|
+
tt as TextInput,
|
|
966
|
+
rt as Textarea,
|
|
967
|
+
Ga as ThemeSelector,
|
|
968
|
+
Ra as Tooltip,
|
|
1020
969
|
i as cn
|
|
1021
970
|
};
|
package/dist/interstitials.js
CHANGED
package/dist/layout.d.ts
CHANGED
|
@@ -28,12 +28,13 @@ export declare interface BoxProps extends default_2.HTMLAttributes<HTMLDivElemen
|
|
|
28
28
|
|
|
29
29
|
declare type BoxSizing = (typeof BOX_SIZINGS)[number];
|
|
30
30
|
|
|
31
|
-
export declare const Container: ({ children, className, direction, ...props }: ContainerProps) => JSX.Element;
|
|
31
|
+
export declare const Container: ({ children, className, direction, separation, ...props }: ContainerProps) => JSX.Element;
|
|
32
32
|
|
|
33
33
|
export declare interface ContainerProps extends FlexProps {
|
|
34
34
|
children: React.ReactNode;
|
|
35
35
|
display?: Display_2;
|
|
36
36
|
className?: string;
|
|
37
|
+
separation?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
declare type Display = (typeof DISPLAYS)[number];
|
package/dist/layout.js
CHANGED
package/dist/navigation.js
CHANGED
package/dist/typography.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
|
|
4
4
|
export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
|
|
5
5
|
|
|
6
|
-
declare const FONT_FAMILIES: readonly ["display", "serif", "sans", "mono"];
|
|
6
|
+
declare const FONT_FAMILIES: readonly ["display", "serif", "sans", "mono", "heading", "body", "brand"];
|
|
7
7
|
|
|
8
8
|
declare const FONT_SIZES: readonly ["xs", "sm", "base", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "8xl", "9xl"];
|
|
9
9
|
|
package/dist/typography.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as o } from "./chunks/Code-
|
|
2
|
-
import { H as p, T as s } from "./chunks/Heading-
|
|
3
|
-
import { P as x } from "./chunks/Paragraph-
|
|
1
|
+
import { C as o } from "./chunks/Code-C8KML31r.js";
|
|
2
|
+
import { H as p, T as s } from "./chunks/Heading-DpEVkX3a.js";
|
|
3
|
+
import { P as x } from "./chunks/Paragraph-DiAQlGea.js";
|
|
4
4
|
export {
|
|
5
5
|
o as Code,
|
|
6
6
|
p as Heading,
|