@still-forest/canopy 0.26.0 → 0.28.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/ErrorFallback.js +29 -0
- package/dist/Layout2.js +80 -71
- package/dist/PageNotFound.js +28 -49
- package/dist/SelectInput.js +1971 -0
- package/dist/SidebarLayout.js +416 -474
- package/dist/Table.js +122 -0
- package/dist/Textarea.js +339 -2298
- package/dist/calendar.js +196 -192
- package/dist/forms.d.ts +6 -4
- package/dist/forms.js +14 -13
- package/dist/index.d.ts +20 -8
- package/dist/index.js +195 -1305
- package/dist/interstitials.js +6 -5
- package/dist/layout.d.ts +1 -1
- package/dist/navigation.d.ts +3 -3
- package/dist/next.d.ts +579 -0
- package/dist/next.js +68 -0
- package/dist/popover.js +18 -18
- package/dist/skeleton.js +1141 -0
- package/package.json +14 -16
package/dist/forms.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { ComponentProps } from 'react';
|
|
|
2
2
|
import { default as default_2 } from 'react';
|
|
3
3
|
import { JSX } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
|
-
export declare type BaseButtonSize = "default" | "sm" | "lg" | "icon";
|
|
5
|
+
export declare type BaseButtonSize = "default" | "sm" | "lg" | "icon" | "unstyled";
|
|
6
6
|
|
|
7
|
-
export declare type BaseButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link";
|
|
7
|
+
export declare type BaseButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled";
|
|
8
8
|
|
|
9
|
-
export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, ...rest }: ButtonProps) => JSX.Element;
|
|
9
|
+
export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, full, fit, ...rest }: ButtonProps) => JSX.Element;
|
|
10
10
|
|
|
11
11
|
export declare const ButtonGroup: {
|
|
12
12
|
({ children, className }: ButtonGroupProps): JSX.Element;
|
|
@@ -21,12 +21,14 @@ export declare interface ButtonGroupProps {
|
|
|
21
21
|
export declare interface ButtonProps extends default_2.ComponentProps<"button"> {
|
|
22
22
|
children?: default_2.ReactNode;
|
|
23
23
|
onClick?: () => void;
|
|
24
|
-
variant?: "default" | "primary" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "subtle";
|
|
24
|
+
variant?: "default" | "primary" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled" | "subtle";
|
|
25
25
|
size?: "default" | "xs" | "sm" | "md" | "lg";
|
|
26
26
|
icon?: default_2.ReactElement;
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
className?: string;
|
|
29
29
|
type?: "button" | "submit" | "reset";
|
|
30
|
+
fit?: boolean;
|
|
31
|
+
full?: boolean;
|
|
30
32
|
asChild?: boolean;
|
|
31
33
|
}
|
|
32
34
|
|
package/dist/forms.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { B as e, a as s } from "./calendar.js";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as r, a as u, b as p, D as n, I as c, c as I, L as x, N as S, R as b, d as l, S as m, T as B } from "./SelectInput.js";
|
|
3
|
+
import { S as D, T } from "./Textarea.js";
|
|
3
4
|
export {
|
|
4
5
|
e as Button,
|
|
5
6
|
s as ButtonGroup,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
r as Checkbox,
|
|
8
|
+
u as DateInput,
|
|
9
|
+
p as DatePicker,
|
|
10
|
+
n as DeleteButton,
|
|
10
11
|
c as InputError,
|
|
11
12
|
I as InputGroup,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
x as Label,
|
|
14
|
+
S as NumberInput,
|
|
15
|
+
b as RadioSelect,
|
|
16
|
+
l as SelectInput,
|
|
17
|
+
D as SelectPicker,
|
|
18
|
+
m as SubmitButton,
|
|
19
|
+
B as TextInput,
|
|
20
|
+
T as Textarea
|
|
20
21
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -36,9 +36,9 @@ declare interface BadgeProps {
|
|
|
36
36
|
className?: string;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export declare type BaseButtonSize = "default" | "sm" | "lg" | "icon";
|
|
39
|
+
export declare type BaseButtonSize = "default" | "sm" | "lg" | "icon" | "unstyled";
|
|
40
40
|
|
|
41
|
-
export declare type BaseButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link";
|
|
41
|
+
export declare type BaseButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled";
|
|
42
42
|
|
|
43
43
|
declare const Body_2: ({ children, className, withContainer, ...props }: BodyProps) => JSX.Element;
|
|
44
44
|
|
|
@@ -74,7 +74,7 @@ export declare interface BreadcrumbType {
|
|
|
74
74
|
to?: string;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, ...rest }: ButtonProps) => JSX.Element;
|
|
77
|
+
export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, full, fit, ...rest }: ButtonProps) => JSX.Element;
|
|
78
78
|
|
|
79
79
|
declare function Button_2({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
80
80
|
asChild?: boolean;
|
|
@@ -93,18 +93,20 @@ export declare interface ButtonGroupProps {
|
|
|
93
93
|
export declare interface ButtonProps extends default_2.ComponentProps<"button"> {
|
|
94
94
|
children?: default_2.ReactNode;
|
|
95
95
|
onClick?: () => void;
|
|
96
|
-
variant?: "default" | "primary" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "subtle";
|
|
96
|
+
variant?: "default" | "primary" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled" | "subtle";
|
|
97
97
|
size?: "default" | "xs" | "sm" | "md" | "lg";
|
|
98
98
|
icon?: default_2.ReactElement;
|
|
99
99
|
disabled?: boolean;
|
|
100
100
|
className?: string;
|
|
101
101
|
type?: "button" | "submit" | "reset";
|
|
102
|
+
fit?: boolean;
|
|
103
|
+
full?: boolean;
|
|
102
104
|
asChild?: boolean;
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
declare const buttonVariants: (props?: ({
|
|
106
|
-
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
107
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
108
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | "unstyled" | null | undefined;
|
|
109
|
+
size?: "default" | "unstyled" | "sm" | "lg" | "icon" | null | undefined;
|
|
108
110
|
} & ClassProp) | undefined) => string;
|
|
109
111
|
|
|
110
112
|
export declare function Card({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
@@ -245,7 +247,7 @@ declare type FontSize = (typeof FONT_SIZES)[number];
|
|
|
245
247
|
|
|
246
248
|
declare type FontWeight = (typeof FONT_WEIGHTS)[number];
|
|
247
249
|
|
|
248
|
-
export declare const Footer: ({ children, ...props }: FooterProps) => JSX.Element;
|
|
250
|
+
export declare const Footer: ({ children, className, ...props }: FooterProps) => JSX.Element;
|
|
249
251
|
|
|
250
252
|
declare interface FooterProps extends ContainerProps {
|
|
251
253
|
children: React.ReactNode;
|
|
@@ -663,7 +665,17 @@ export declare type TextProps<E extends default_2.ElementType = TypographyElemen
|
|
|
663
665
|
|
|
664
666
|
declare type TextTracking = (typeof TEXT_TRACKINGS)[number];
|
|
665
667
|
|
|
666
|
-
export declare type Theme = "
|
|
668
|
+
export declare type Theme = "system" | "light" | "dark";
|
|
669
|
+
|
|
670
|
+
export declare const ThemeSelector: ({ variant, theme, setTheme, className, buttonClassName, ...props }: ThemeSelectorProps) => JSX.Element;
|
|
671
|
+
|
|
672
|
+
export declare interface ThemeSelectorProps {
|
|
673
|
+
variant?: "horizontal" | "stacked";
|
|
674
|
+
theme: Theme;
|
|
675
|
+
setTheme: (theme: Theme) => void;
|
|
676
|
+
className?: string;
|
|
677
|
+
buttonClassName?: string;
|
|
678
|
+
}
|
|
667
679
|
|
|
668
680
|
export declare const Tooltip: TooltipComponent;
|
|
669
681
|
|