@still-forest/canopy 0.28.2 → 0.29.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/README.md +51 -0
- package/dist/chunks/Heading-Dwx3mHff.js +251 -0
- package/dist/{Layout2.js → chunks/Layout-fBiCo4lc.js} +53 -57
- package/dist/chunks/PageNotFound-DOYQfbRs.js +51 -0
- package/dist/chunks/SidebarLayout-BtEWD4ew.js +52 -0
- package/dist/chunks/TextInput-NfG9yrGJ.js +330 -0
- package/dist/chunks/cn-B6yFEsav.js +8 -0
- package/dist/forms.js +14 -16
- package/dist/index.d.ts +45 -6
- package/dist/index.js +589 -233
- package/dist/interstitials.js +5 -6
- package/dist/layout.js +1 -1
- package/dist/navigation.js +6 -5
- package/dist/typography.js +5 -7
- package/dist/utilities.js +1 -1
- package/package.json +27 -29
- package/dist/Code.js +0 -6
- package/dist/ErrorFallback.js +0 -29
- package/dist/Heading.js +0 -251
- package/dist/PageNotFound.js +0 -86
- package/dist/Paragraph.js +0 -7
- package/dist/SelectInput.js +0 -1971
- package/dist/SidebarLayout.js +0 -986
- package/dist/Table.js +0 -122
- package/dist/Textarea.js +0 -491
- package/dist/calendar.js +0 -3135
- package/dist/index2.js +0 -2743
- package/dist/jsx-runtime.js +0 -40
- package/dist/next.d.ts +0 -579
- package/dist/next.js +0 -68
- package/dist/popover.js +0 -3079
- package/dist/skeleton.js +0 -1141
package/dist/jsx-runtime.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var s = { exports: {} }, e = {};
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
var o;
|
|
12
|
-
function d() {
|
|
13
|
-
if (o) return e;
|
|
14
|
-
o = 1;
|
|
15
|
-
var R = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment");
|
|
16
|
-
function i(v, r, t) {
|
|
17
|
-
var u = null;
|
|
18
|
-
if (t !== void 0 && (u = "" + t), r.key !== void 0 && (u = "" + r.key), "key" in r) {
|
|
19
|
-
t = {};
|
|
20
|
-
for (var n in r)
|
|
21
|
-
n !== "key" && (t[n] = r[n]);
|
|
22
|
-
} else t = r;
|
|
23
|
-
return r = t.ref, {
|
|
24
|
-
$$typeof: R,
|
|
25
|
-
type: v,
|
|
26
|
-
key: u,
|
|
27
|
-
ref: r !== void 0 ? r : null,
|
|
28
|
-
props: t
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
return e.Fragment = a, e.jsx = i, e.jsxs = i, e;
|
|
32
|
-
}
|
|
33
|
-
var x;
|
|
34
|
-
function l() {
|
|
35
|
-
return x || (x = 1, s.exports = d()), s.exports;
|
|
36
|
-
}
|
|
37
|
-
var p = l();
|
|
38
|
-
export {
|
|
39
|
-
p as j
|
|
40
|
-
};
|
package/dist/next.d.ts
DELETED
|
@@ -1,579 +0,0 @@
|
|
|
1
|
-
import { Accordion as Accordion_2 } from 'radix-ui';
|
|
2
|
-
import { ClassValue } from 'clsx';
|
|
3
|
-
import { ComponentProps } from 'react';
|
|
4
|
-
import { default as default_2 } from 'react';
|
|
5
|
-
import { JSX } from 'react/jsx-runtime';
|
|
6
|
-
import { Popover as Popover_3 } from 'radix-ui';
|
|
7
|
-
import type * as React_2 from 'react';
|
|
8
|
-
|
|
9
|
-
export declare function Accordion({ ...props }: React_2.ComponentProps<typeof Accordion_2.Root>): JSX.Element;
|
|
10
|
-
|
|
11
|
-
export declare function AccordionContent({ className, children, ...props }: React_2.ComponentProps<typeof Accordion_2.Content>): JSX.Element;
|
|
12
|
-
|
|
13
|
-
export declare function AccordionItem({ className, ...props }: React_2.ComponentProps<typeof Accordion_2.Item>): JSX.Element;
|
|
14
|
-
|
|
15
|
-
export declare function AccordionTrigger({ className, children, ...props }: React_2.ComponentProps<typeof Accordion_2.Trigger>): JSX.Element;
|
|
16
|
-
|
|
17
|
-
export declare const Alert: ({ type, title, message, className }: AlertProps) => JSX.Element;
|
|
18
|
-
|
|
19
|
-
export declare interface AlertProps {
|
|
20
|
-
type: "info" | "success" | "warning" | "error";
|
|
21
|
-
title?: string;
|
|
22
|
-
message: string;
|
|
23
|
-
className?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export declare const Badge: ({ label, onClick, className, variant, color }: BadgeProps) => JSX.Element;
|
|
27
|
-
|
|
28
|
-
declare interface BadgeProps {
|
|
29
|
-
variant?: "default" | "secondary" | "destructive" | "outline";
|
|
30
|
-
color?: TailwindColor;
|
|
31
|
-
label: string;
|
|
32
|
-
onClick?: () => void;
|
|
33
|
-
className?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export declare type BaseButtonSize = "default" | "sm" | "lg" | "icon" | "unstyled";
|
|
37
|
-
|
|
38
|
-
export declare type BaseButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled";
|
|
39
|
-
|
|
40
|
-
declare const Body_2: ({ children, className, withContainer, ...props }: BodyProps) => JSX.Element;
|
|
41
|
-
|
|
42
|
-
declare interface BodyProps extends FlexProps {
|
|
43
|
-
withContainer?: boolean;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export declare const Box: default_2.ForwardRefExoticComponent<BoxProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
47
|
-
|
|
48
|
-
declare const BOX_SIZINGS: readonly ["content", "border"];
|
|
49
|
-
|
|
50
|
-
export declare interface BoxProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
51
|
-
as?: default_2.ElementType;
|
|
52
|
-
variant?: LayoutVariant;
|
|
53
|
-
size?: Size;
|
|
54
|
-
width?: Width;
|
|
55
|
-
height?: Height;
|
|
56
|
-
display?: Display;
|
|
57
|
-
sizing?: BoxSizing;
|
|
58
|
-
position?: Position;
|
|
59
|
-
overflow?: Overflow;
|
|
60
|
-
overflowX?: Overflow;
|
|
61
|
-
overflowY?: Overflow;
|
|
62
|
-
rounded?: RoundedSize;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
declare type BoxSizing = (typeof BOX_SIZINGS)[number];
|
|
66
|
-
|
|
67
|
-
export declare const Breadcrumbs: ({ breadcrumbs, linkComponent, pageComponent, className }: Props) => JSX.Element;
|
|
68
|
-
|
|
69
|
-
export declare interface BreadcrumbType {
|
|
70
|
-
label: string;
|
|
71
|
-
to?: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, full, fit, ...rest }: ButtonProps) => JSX.Element;
|
|
75
|
-
|
|
76
|
-
export declare const ButtonGroup: {
|
|
77
|
-
({ children, className }: ButtonGroupProps): JSX.Element;
|
|
78
|
-
Button({ children, className, ...props }: ButtonProps): JSX.Element;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export declare interface ButtonGroupProps {
|
|
82
|
-
children: default_2.ReactNode;
|
|
83
|
-
className?: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export declare interface ButtonProps extends default_2.ComponentProps<"button"> {
|
|
87
|
-
children?: default_2.ReactNode;
|
|
88
|
-
onClick?: () => void;
|
|
89
|
-
variant?: "default" | "primary" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled" | "subtle";
|
|
90
|
-
size?: "default" | "xs" | "sm" | "md" | "lg";
|
|
91
|
-
icon?: default_2.ReactElement;
|
|
92
|
-
disabled?: boolean;
|
|
93
|
-
className?: string;
|
|
94
|
-
type?: "button" | "submit" | "reset";
|
|
95
|
-
fit?: boolean;
|
|
96
|
-
full?: boolean;
|
|
97
|
-
asChild?: boolean;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export declare function Card({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
101
|
-
|
|
102
|
-
export declare function CardAction({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
103
|
-
|
|
104
|
-
export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
105
|
-
|
|
106
|
-
export declare function CardDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
107
|
-
|
|
108
|
-
export declare function CardFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
109
|
-
|
|
110
|
-
export declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
111
|
-
|
|
112
|
-
export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
113
|
-
|
|
114
|
-
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange }: CheckboxProps) => JSX.Element;
|
|
115
|
-
|
|
116
|
-
export declare interface CheckboxProps {
|
|
117
|
-
label: string;
|
|
118
|
-
name: string;
|
|
119
|
-
value?: string;
|
|
120
|
-
checked: boolean;
|
|
121
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export declare function cn(...inputs: ClassValue[]): string;
|
|
125
|
-
|
|
126
|
-
export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
|
|
127
|
-
|
|
128
|
-
export declare const Container: ({ children, className, direction, ...props }: ContainerProps) => JSX.Element;
|
|
129
|
-
|
|
130
|
-
export declare interface ContainerProps extends FlexProps {
|
|
131
|
-
children: React.ReactNode;
|
|
132
|
-
display?: Display_2;
|
|
133
|
-
className?: string;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export declare const DateInput: ({ name, label, placeholder, note, className, ...props }: DateInputProps) => JSX.Element;
|
|
137
|
-
|
|
138
|
-
declare interface DateInputProps extends Omit<TextInputProps, "type"> {
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export declare const DatePicker: ({ onDateSelection, initialValue, className, size, error }: DatePickerProps) => JSX.Element;
|
|
142
|
-
|
|
143
|
-
declare interface DatePickerProps {
|
|
144
|
-
onDateSelection: (date: Date) => void;
|
|
145
|
-
initialValue?: Date;
|
|
146
|
-
className?: string;
|
|
147
|
-
size?: "default" | "xs" | "sm" | "lg";
|
|
148
|
-
error?: string;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props_4) => JSX.Element;
|
|
152
|
-
|
|
153
|
-
declare type Display = (typeof DISPLAYS)[number];
|
|
154
|
-
|
|
155
|
-
declare type Display_2 = "block" | "flex";
|
|
156
|
-
|
|
157
|
-
declare const DISPLAYS: readonly ["block", "flex", "grid", "inline", "inline-block", "inline-flex", "inline-grid", "inline-table", "list-item", "flow-root", "contents", "table", "table-header-group", "table-footer-group", "table-column-group", "table-column", "table-row-group", "table-row", "table-cell", "table-caption", "hidden", "sr-only", "not-sr-only"];
|
|
158
|
-
|
|
159
|
-
export declare const ErrorOverlay: ({ message, children }: ErrorOverlayProps) => JSX.Element;
|
|
160
|
-
|
|
161
|
-
declare interface ErrorOverlayProps {
|
|
162
|
-
message?: string;
|
|
163
|
-
children?: React.ReactNode;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export declare const Flex: typeof FlexComponent & {
|
|
167
|
-
Item: typeof FlexItem;
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
declare const FLEX_ALIGNS: readonly ["start", "center", "end", "stretch", "baseline"];
|
|
171
|
-
|
|
172
|
-
declare const FLEX_DIRECTIONS: readonly ["row", "col", "row-reverse", "col-reverse"];
|
|
173
|
-
|
|
174
|
-
declare const FLEX_GROWS: readonly [null, true, false, "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
175
|
-
|
|
176
|
-
declare const FLEX_JUSTIFIES: readonly ["start", "center", "end", "between", "around", "evenly", "stretch", "baseline", "normal"];
|
|
177
|
-
|
|
178
|
-
declare const FLEX_WRAPS: readonly ["nowrap", "wrap", "wrap-reverse"];
|
|
179
|
-
|
|
180
|
-
declare type FlexAlign = (typeof FLEX_ALIGNS)[number];
|
|
181
|
-
|
|
182
|
-
declare const FlexComponent: default_2.ForwardRefExoticComponent<FlexProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
183
|
-
|
|
184
|
-
declare type FlexDirection = (typeof FLEX_DIRECTIONS)[number];
|
|
185
|
-
|
|
186
|
-
declare type FlexGrow = (typeof FLEX_GROWS)[number];
|
|
187
|
-
|
|
188
|
-
declare const FlexItem: ({ flex, className, as, children, ...props }: FlexItemProps) => JSX.Element;
|
|
189
|
-
|
|
190
|
-
declare interface FlexItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
191
|
-
as?: React.ElementType<any>;
|
|
192
|
-
flex?: FlexType;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
declare type FlexJustify = (typeof FLEX_JUSTIFIES)[number];
|
|
196
|
-
|
|
197
|
-
export declare interface FlexProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
198
|
-
as?: default_2.ElementType;
|
|
199
|
-
direction?: FlexDirection;
|
|
200
|
-
align?: FlexAlign;
|
|
201
|
-
justify?: FlexJustify;
|
|
202
|
-
grow?: FlexGrow;
|
|
203
|
-
wrap?: FlexWrap;
|
|
204
|
-
gap?: Gap;
|
|
205
|
-
gapX?: Gap;
|
|
206
|
-
gapY?: Gap;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
declare type FlexType = "1" | "auto" | "initial" | "none";
|
|
210
|
-
|
|
211
|
-
declare type FlexWrap = (typeof FLEX_WRAPS)[number];
|
|
212
|
-
|
|
213
|
-
declare const FONT_FAMILIES: readonly ["display", "serif", "sans", "mono"];
|
|
214
|
-
|
|
215
|
-
declare const FONT_SIZES: readonly ["xs", "sm", "base", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "8xl", "9xl"];
|
|
216
|
-
|
|
217
|
-
declare const FONT_WEIGHTS: readonly ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"];
|
|
218
|
-
|
|
219
|
-
declare type FontFamily = (typeof FONT_FAMILIES)[number];
|
|
220
|
-
|
|
221
|
-
declare type FontSize = (typeof FONT_SIZES)[number];
|
|
222
|
-
|
|
223
|
-
declare type FontWeight = (typeof FONT_WEIGHTS)[number];
|
|
224
|
-
|
|
225
|
-
export declare const Footer: ({ children, className, ...props }: FooterProps) => JSX.Element;
|
|
226
|
-
|
|
227
|
-
declare interface FooterProps extends ContainerProps {
|
|
228
|
-
children: React.ReactNode;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
declare type Gap = (typeof GAPS)[number];
|
|
232
|
-
|
|
233
|
-
declare const GAPS: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"];
|
|
234
|
-
|
|
235
|
-
export declare const Grid: default_2.ForwardRefExoticComponent<GridProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
236
|
-
|
|
237
|
-
declare const GRID_COLS: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "none"];
|
|
238
|
-
|
|
239
|
-
declare const GRID_FLOWS: readonly ["row", "col", "dense", "row-dense", "col-dense"];
|
|
240
|
-
|
|
241
|
-
declare const GRID_ROWS: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "none"];
|
|
242
|
-
|
|
243
|
-
declare type GridCols = (typeof GRID_COLS)[number];
|
|
244
|
-
|
|
245
|
-
declare type GridFlow = (typeof GRID_FLOWS)[number];
|
|
246
|
-
|
|
247
|
-
export declare interface GridProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
248
|
-
as?: default_2.ElementType;
|
|
249
|
-
cols?: GridCols;
|
|
250
|
-
rows?: GridRows;
|
|
251
|
-
flow?: GridFlow;
|
|
252
|
-
gap?: Gap;
|
|
253
|
-
gapX?: Gap;
|
|
254
|
-
gapY?: Gap;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
declare type GridRows = (typeof GRID_ROWS)[number];
|
|
258
|
-
|
|
259
|
-
export declare const Header: ({ children, sticky, className, ...props }: HeaderProps) => JSX.Element;
|
|
260
|
-
|
|
261
|
-
declare interface HeaderProps extends ContainerProps {
|
|
262
|
-
children: React.ReactNode;
|
|
263
|
-
sticky?: boolean;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export declare const Heading: default_2.ForwardRefExoticComponent<HeadingProps & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
267
|
-
|
|
268
|
-
declare const HEADING_LEVELS: readonly ["1", "2", "3", "4", "5", "6"];
|
|
269
|
-
|
|
270
|
-
export declare interface HeadingProps extends default_2.HTMLAttributes<HTMLHeadingElement> {
|
|
271
|
-
level?: HeadingSize;
|
|
272
|
-
size?: FontSize;
|
|
273
|
-
weight?: FontWeight;
|
|
274
|
-
variant?: TypographyVariant;
|
|
275
|
-
align?: TextAlign;
|
|
276
|
-
leading?: TextLeading;
|
|
277
|
-
tracking?: TextTracking;
|
|
278
|
-
family?: FontFamily;
|
|
279
|
-
/**
|
|
280
|
-
* When true, apply *-foreground color classes for variants instead of regular color classes.
|
|
281
|
-
*/
|
|
282
|
-
asForeground?: boolean;
|
|
283
|
-
truncate?: boolean;
|
|
284
|
-
numeric?: boolean;
|
|
285
|
-
className?: string;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
declare type HeadingSize = (typeof HEADING_LEVELS)[number];
|
|
289
|
-
|
|
290
|
-
declare type Height = (typeof HEIGHTS)[number];
|
|
291
|
-
|
|
292
|
-
declare const HEIGHTS: readonly [...string[], "auto", "full", "min", "max", "fit", "px", "screen"];
|
|
293
|
-
|
|
294
|
-
export declare const InputError: ({ message }: {
|
|
295
|
-
message: string;
|
|
296
|
-
}) => JSX.Element;
|
|
297
|
-
|
|
298
|
-
export declare const InputGroup: ({ label, labelFor, className, labelClassName, children }: InputGroupProps) => JSX.Element;
|
|
299
|
-
|
|
300
|
-
declare interface InputGroupProps {
|
|
301
|
-
label?: string;
|
|
302
|
-
labelFor?: string;
|
|
303
|
-
className?: string;
|
|
304
|
-
labelClassName?: string;
|
|
305
|
-
children: React.ReactNode;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
export declare const Interstitial: ({ variant, iconComponent, message, children }: InterstitialProps) => JSX.Element;
|
|
309
|
-
|
|
310
|
-
export declare interface InterstitialProps {
|
|
311
|
-
variant?: "error" | "info" | "success" | "warning";
|
|
312
|
-
iconComponent?: default_2.ElementType;
|
|
313
|
-
message?: string;
|
|
314
|
-
children?: default_2.ReactNode;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
export declare const Label: ({ htmlFor, value, children, className, ...props }: LabelProps) => JSX.Element;
|
|
318
|
-
|
|
319
|
-
export declare interface LabelProps extends ComponentProps<"label"> {
|
|
320
|
-
htmlFor?: string;
|
|
321
|
-
value?: string;
|
|
322
|
-
children?: React.ReactNode;
|
|
323
|
-
className?: string;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
export declare const Layout: typeof LayoutComponent & {
|
|
327
|
-
Header: typeof Header;
|
|
328
|
-
Body: typeof Body_2;
|
|
329
|
-
Footer: typeof Footer;
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
declare const LAYOUT_VARIANTS: readonly ["default", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive"];
|
|
333
|
-
|
|
334
|
-
declare const LayoutComponent: default_2.ForwardRefExoticComponent<LayoutProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
335
|
-
|
|
336
|
-
declare interface LayoutProps extends FlexProps {
|
|
337
|
-
children: default_2.ReactNode;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
declare type LayoutVariant = (typeof LAYOUT_VARIANTS)[number];
|
|
341
|
-
|
|
342
|
-
export declare const Modal: ({ trigger, children, title, description, open, onOpenChange }: Props_2) => JSX.Element;
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
+ * A specialized input component for numeric values.
|
|
346
|
-
+ * Extends TextInput with number-specific functionality.
|
|
347
|
-
+ */
|
|
348
|
-
export declare const NumberInput: ({ name, label, placeholder, note, step, className, ...props }: NumberInputProps) => JSX.Element;
|
|
349
|
-
|
|
350
|
-
export declare interface NumberInputProps extends Omit<TextInputProps, "type"> {
|
|
351
|
-
step?: string;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
declare interface Option_2 {
|
|
355
|
-
value: string;
|
|
356
|
-
label: string;
|
|
357
|
-
}
|
|
358
|
-
export { Option_2 as Option }
|
|
359
|
-
|
|
360
|
-
declare interface Option_3 {
|
|
361
|
-
value: string;
|
|
362
|
-
label: string;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
declare type Overflow = (typeof OVERFLOWS)[number];
|
|
366
|
-
|
|
367
|
-
declare const OVERFLOWS: readonly ["auto", "scroll", "hidden", "clip", "visible"];
|
|
368
|
-
|
|
369
|
-
export declare const PageLoader: ({ iconComponent, message }: PageLoaderProps) => JSX.Element;
|
|
370
|
-
|
|
371
|
-
declare interface PageLoaderProps {
|
|
372
|
-
iconComponent?: React.ElementType;
|
|
373
|
-
message?: string;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export declare const PageNotFound: ({ goHome, message }: PageNotFoundProps) => JSX.Element;
|
|
377
|
-
|
|
378
|
-
declare interface PageNotFoundProps {
|
|
379
|
-
message?: string;
|
|
380
|
-
goHome?: () => void;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
export declare const Pagination: ({ pageCount, currentPage, onChange }: Props_3) => JSX.Element;
|
|
384
|
-
|
|
385
|
-
export declare const Paragraph: ({ children, className, as, ...props }: TextProps) => JSX.Element;
|
|
386
|
-
|
|
387
|
-
export declare const Popover: PopoverComponent;
|
|
388
|
-
|
|
389
|
-
declare function Popover_2({ ...props }: React_2.ComponentProps<typeof Popover_3.Root>): JSX.Element;
|
|
390
|
-
|
|
391
|
-
declare type PopoverComponent = default_2.FC<default_2.ComponentProps<typeof Popover_2>> & {
|
|
392
|
-
Trigger: typeof PopoverTrigger;
|
|
393
|
-
Content: typeof PopoverContent;
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof Popover_3.Content>): JSX.Element;
|
|
397
|
-
|
|
398
|
-
declare function PopoverTrigger({ ...props }: React_2.ComponentProps<typeof Popover_3.Trigger>): JSX.Element;
|
|
399
|
-
|
|
400
|
-
declare type Position = (typeof POSITIONS)[number];
|
|
401
|
-
|
|
402
|
-
declare const POSITIONS: readonly ["static", "fixed", "absolute", "relative", "sticky"];
|
|
403
|
-
|
|
404
|
-
declare interface Props {
|
|
405
|
-
breadcrumbs: BreadcrumbType[];
|
|
406
|
-
linkComponent?: React.ComponentType<{
|
|
407
|
-
to: string;
|
|
408
|
-
label: string;
|
|
409
|
-
}>;
|
|
410
|
-
pageComponent?: React.ComponentType<{
|
|
411
|
-
label: string;
|
|
412
|
-
}>;
|
|
413
|
-
className?: string;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
declare interface Props_2 {
|
|
417
|
-
children: React.ReactNode;
|
|
418
|
-
trigger?: React.ReactNode;
|
|
419
|
-
title?: string;
|
|
420
|
-
description?: string;
|
|
421
|
-
open?: boolean;
|
|
422
|
-
onOpenChange?: (open: boolean) => void;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
declare interface Props_3 {
|
|
426
|
-
pageCount: number;
|
|
427
|
-
currentPage: number;
|
|
428
|
-
onChange: (page: number) => void;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
declare interface Props_4 extends ButtonProps {
|
|
432
|
-
disabled?: boolean;
|
|
433
|
-
handleDelete: () => void;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
export declare const RadioSelect: ({ label, name, options, value, onChange, error }: RadioSelectProps) => JSX.Element;
|
|
437
|
-
|
|
438
|
-
declare interface RadioSelectProps {
|
|
439
|
-
name: string;
|
|
440
|
-
label?: string;
|
|
441
|
-
value?: string;
|
|
442
|
-
options: Option_3[];
|
|
443
|
-
onChange?: (value: string) => void;
|
|
444
|
-
error?: string;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "full", true, false];
|
|
448
|
-
|
|
449
|
-
declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
|
|
450
|
-
|
|
451
|
-
export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onValueChange, error, ...props }: SelectInputProps) => JSX.Element;
|
|
452
|
-
|
|
453
|
-
export declare interface SelectInputProps extends Omit<React.ComponentProps<"select">, "dir"> {
|
|
454
|
-
name: string;
|
|
455
|
-
value?: string;
|
|
456
|
-
onValueChange: (value: string) => void;
|
|
457
|
-
options: Option_2[];
|
|
458
|
-
label?: string;
|
|
459
|
-
placeholder?: string;
|
|
460
|
-
note?: string;
|
|
461
|
-
className?: string;
|
|
462
|
-
error?: string;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
export declare const Separator: ({ className, orientation, gap, ...props }: SeparatorProps) => JSX.Element;
|
|
466
|
-
|
|
467
|
-
declare interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
468
|
-
orientation?: "horizontal" | "vertical";
|
|
469
|
-
gap?: Gap;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
declare type Size = (typeof SIZES)[number];
|
|
473
|
-
|
|
474
|
-
declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
|
|
475
|
-
|
|
476
|
-
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
477
|
-
|
|
478
|
-
export declare const SubmitButton: ({ submitting, disabled, submittingIcon, action, noIcon, ...rest }: SubmitButtonProps) => JSX.Element;
|
|
479
|
-
|
|
480
|
-
export declare interface SubmitButtonProps extends ButtonProps {
|
|
481
|
-
action?: "default" | "submit" | "save" | "send";
|
|
482
|
-
submitting?: boolean;
|
|
483
|
-
disabled?: boolean;
|
|
484
|
-
submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
485
|
-
noIcon?: boolean;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
export declare const Table: TableComponent;
|
|
489
|
-
|
|
490
|
-
export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
|
|
491
|
-
|
|
492
|
-
export declare function TableCaption({ className, ...props }: React_2.ComponentProps<"caption">): JSX.Element;
|
|
493
|
-
|
|
494
|
-
export declare function TableCell({ className, ...props }: React_2.ComponentProps<"td">): JSX.Element;
|
|
495
|
-
|
|
496
|
-
declare type TableComponent = React_2.FC<React_2.ComponentProps<"table">> & {
|
|
497
|
-
Body: typeof TableBody;
|
|
498
|
-
Caption: typeof TableCaption;
|
|
499
|
-
Cell: typeof TableCell;
|
|
500
|
-
Head: typeof TableHead;
|
|
501
|
-
Header: typeof TableHeader;
|
|
502
|
-
Row: typeof TableRow;
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
export declare function TableHead({ className, ...props }: React_2.ComponentProps<"th">): JSX.Element;
|
|
506
|
-
|
|
507
|
-
export declare function TableHeader({ className, ...props }: React_2.ComponentProps<"thead">): JSX.Element;
|
|
508
|
-
|
|
509
|
-
export declare function TableRow({ className, ...props }: React_2.ComponentProps<"tr">): JSX.Element;
|
|
510
|
-
|
|
511
|
-
declare const TAILWIND_COLORS: readonly ["red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia", "pink", "rose", "slate", "gray", "zinc", "neutral", "stone", "white", "black"];
|
|
512
|
-
|
|
513
|
-
declare type TailwindColor = (typeof TAILWIND_COLORS)[number];
|
|
514
|
-
|
|
515
|
-
declare const Text_2: default_2.ForwardRefExoticComponent<Omit<any, "ref"> & default_2.RefAttributes<Element>>;
|
|
516
|
-
export { Text_2 as Text }
|
|
517
|
-
|
|
518
|
-
declare const TEXT_ALIGNS: readonly ["left", "center", "right", "justify", "start", "end"];
|
|
519
|
-
|
|
520
|
-
declare const TEXT_LEADINGS: readonly ["none", "tight", "snug", "normal", "relaxed", "loose"];
|
|
521
|
-
|
|
522
|
-
declare const TEXT_TRACKINGS: readonly ["tighter", "tight", "normal", "wide", "wider", "widest"];
|
|
523
|
-
|
|
524
|
-
declare type TextAlign = (typeof TEXT_ALIGNS)[number];
|
|
525
|
-
|
|
526
|
-
declare interface TextBaseProps {
|
|
527
|
-
size?: FontSize;
|
|
528
|
-
weight?: FontWeight;
|
|
529
|
-
variant?: TypographyVariant;
|
|
530
|
-
align?: TextAlign;
|
|
531
|
-
leading?: TextLeading;
|
|
532
|
-
tracking?: TextTracking;
|
|
533
|
-
family?: FontFamily;
|
|
534
|
-
/**
|
|
535
|
-
* When true, apply *-foreground color classes for variants instead of regular color classes.
|
|
536
|
-
*/
|
|
537
|
-
asForeground?: boolean;
|
|
538
|
-
truncate?: boolean;
|
|
539
|
-
numeric?: boolean;
|
|
540
|
-
className?: string;
|
|
541
|
-
as?: TypographyElement;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
export declare const TextInput: ({ name, type, placeholder, label, labelOrientation, note, className, error, ...props }: TextInputProps) => JSX.Element;
|
|
545
|
-
|
|
546
|
-
export declare interface TextInputProps extends React.ComponentProps<"input"> {
|
|
547
|
-
name: string;
|
|
548
|
-
type?: string;
|
|
549
|
-
placeholder?: string;
|
|
550
|
-
label?: string;
|
|
551
|
-
labelOrientation?: "top" | "left";
|
|
552
|
-
note?: string;
|
|
553
|
-
className?: string;
|
|
554
|
-
error?: string;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
declare type TextLeading = (typeof TEXT_LEADINGS)[number];
|
|
558
|
-
|
|
559
|
-
export declare type TextProps<E extends default_2.ElementType = TypographyElement> = TextBaseProps & {
|
|
560
|
-
as?: E;
|
|
561
|
-
} & default_2.ComponentPropsWithRef<E>;
|
|
562
|
-
|
|
563
|
-
declare type TextTracking = (typeof TEXT_TRACKINGS)[number];
|
|
564
|
-
|
|
565
|
-
export declare type Theme = "system" | "light" | "dark";
|
|
566
|
-
|
|
567
|
-
declare const TYPOGRAPHY_ELEMENTS: readonly ["p", "span", "label", "div", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
568
|
-
|
|
569
|
-
declare const TYPOGRAPHY_VARIANTS: readonly ["default", "inherit", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive"];
|
|
570
|
-
|
|
571
|
-
declare type TypographyElement = (typeof TYPOGRAPHY_ELEMENTS)[number];
|
|
572
|
-
|
|
573
|
-
declare type TypographyVariant = (typeof TYPOGRAPHY_VARIANTS)[number];
|
|
574
|
-
|
|
575
|
-
declare type Width = (typeof WIDTHS)[number];
|
|
576
|
-
|
|
577
|
-
declare const WIDTHS: readonly [...string[], "auto", "full", "min", "max", "fit", "px", "3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "screen"];
|
|
578
|
-
|
|
579
|
-
export { }
|
package/dist/next.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { A as o, c as r, a as s, b as t, d as n, B as d, e as p, C as i, f as l, g as c, h as C, i as u, j as b, k as x, M as m, P as T, S as f, l as B } from "./skeleton.js";
|
|
2
|
-
import { P, T as g, a as A, b as H, c as S, d as D, e as F, f as L } from "./Table.js";
|
|
3
|
-
import { B as G, a as h } from "./calendar.js";
|
|
4
|
-
import { C as E, a as N, b as R, D as v, I as M, c as j, L as w, N as O, R as q, d as z, S as J, T as K } from "./SelectInput.js";
|
|
5
|
-
import { E as U, I as V, P as W, a as X } from "./PageNotFound.js";
|
|
6
|
-
import { B as Z, C as _, F as $, a as aa, G as ea, H as oa, L as ra } from "./Layout2.js";
|
|
7
|
-
import { C as ta } from "./Code.js";
|
|
8
|
-
import { H as da, T as pa } from "./Heading.js";
|
|
9
|
-
import { P as la } from "./Paragraph.js";
|
|
10
|
-
import { c as Ca } from "./index2.js";
|
|
11
|
-
export {
|
|
12
|
-
o as Accordion,
|
|
13
|
-
r as AccordionContent,
|
|
14
|
-
s as AccordionItem,
|
|
15
|
-
t as AccordionTrigger,
|
|
16
|
-
n as Alert,
|
|
17
|
-
d as Badge,
|
|
18
|
-
Z as Box,
|
|
19
|
-
p as Breadcrumbs,
|
|
20
|
-
G as Button,
|
|
21
|
-
h as ButtonGroup,
|
|
22
|
-
i as Card,
|
|
23
|
-
l as CardAction,
|
|
24
|
-
c as CardContent,
|
|
25
|
-
C as CardDescription,
|
|
26
|
-
u as CardFooter,
|
|
27
|
-
b as CardHeader,
|
|
28
|
-
x as CardTitle,
|
|
29
|
-
E as Checkbox,
|
|
30
|
-
ta as Code,
|
|
31
|
-
_ as Container,
|
|
32
|
-
N as DateInput,
|
|
33
|
-
R as DatePicker,
|
|
34
|
-
v as DeleteButton,
|
|
35
|
-
U as ErrorOverlay,
|
|
36
|
-
$ as Flex,
|
|
37
|
-
aa as Footer,
|
|
38
|
-
ea as Grid,
|
|
39
|
-
oa as Header,
|
|
40
|
-
da as Heading,
|
|
41
|
-
M as InputError,
|
|
42
|
-
j as InputGroup,
|
|
43
|
-
V as Interstitial,
|
|
44
|
-
w as Label,
|
|
45
|
-
ra as Layout,
|
|
46
|
-
m as Modal,
|
|
47
|
-
O as NumberInput,
|
|
48
|
-
W as PageLoader,
|
|
49
|
-
X as PageNotFound,
|
|
50
|
-
T as Pagination,
|
|
51
|
-
la as Paragraph,
|
|
52
|
-
P as Popover,
|
|
53
|
-
q as RadioSelect,
|
|
54
|
-
z as SelectInput,
|
|
55
|
-
f as Separator,
|
|
56
|
-
B as Skeleton,
|
|
57
|
-
J as SubmitButton,
|
|
58
|
-
g as Table,
|
|
59
|
-
A as TableBody,
|
|
60
|
-
H as TableCaption,
|
|
61
|
-
S as TableCell,
|
|
62
|
-
D as TableHead,
|
|
63
|
-
F as TableHeader,
|
|
64
|
-
L as TableRow,
|
|
65
|
-
pa as Text,
|
|
66
|
-
K as TextInput,
|
|
67
|
-
Ca as cn
|
|
68
|
-
};
|