@still-forest/canopy 0.23.0 → 0.25.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/Code-BEyCtXmx.js +6 -0
- package/dist/Heading-RoEgEUyn.js +250 -0
- package/dist/Layout-DgdavEB0.js +520 -0
- package/dist/PageNotFound-qxJMFm_R.js +106 -0
- package/dist/Paragraph-CbHixnRz.js +6 -0
- package/dist/SidebarLayout-BdELri0f.js +1043 -0
- package/dist/Textarea-BQK0FPhk.js +2449 -0
- package/dist/calendar-DO3_NMz-.js +3130 -0
- package/dist/forms.d.ts +185 -0
- package/dist/index.js +8 -14961
- package/dist/index2.js +7 -0
- package/dist/index3.js +20 -0
- package/dist/index4.js +8 -0
- package/dist/index5.js +9 -0
- package/dist/index6.js +1371 -0
- package/dist/interstitials.d.ts +41 -0
- package/dist/layout.d.ts +173 -0
- package/dist/navigation.d.ts +59 -0
- package/dist/popover-C6FKo2kc.js +3078 -0
- package/dist/typography.d.ts +89 -0
- package/dist/utils-D_B8C9Kp.js +2781 -0
- package/package.json +33 -2
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
|
|
5
|
+
|
|
6
|
+
declare const FONT_FAMILIES: readonly ["display", "serif", "sans", "mono"];
|
|
7
|
+
|
|
8
|
+
declare const FONT_SIZES: readonly ["xs", "sm", "base", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "8xl", "9xl"];
|
|
9
|
+
|
|
10
|
+
declare const FONT_WEIGHTS: readonly ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"];
|
|
11
|
+
|
|
12
|
+
declare type FontFamily = (typeof FONT_FAMILIES)[number];
|
|
13
|
+
|
|
14
|
+
declare type FontSize = (typeof FONT_SIZES)[number];
|
|
15
|
+
|
|
16
|
+
declare type FontWeight = (typeof FONT_WEIGHTS)[number];
|
|
17
|
+
|
|
18
|
+
export declare const Heading: default_2.ForwardRefExoticComponent<HeadingProps & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
19
|
+
|
|
20
|
+
declare const HEADING_LEVELS: readonly ["1", "2", "3", "4", "5", "6"];
|
|
21
|
+
|
|
22
|
+
export declare interface HeadingProps extends default_2.HTMLAttributes<HTMLHeadingElement> {
|
|
23
|
+
level?: HeadingSize;
|
|
24
|
+
size?: FontSize;
|
|
25
|
+
weight?: FontWeight;
|
|
26
|
+
variant?: TypographyVariant;
|
|
27
|
+
align?: TextAlign;
|
|
28
|
+
leading?: TextLeading;
|
|
29
|
+
tracking?: TextTracking;
|
|
30
|
+
family?: FontFamily;
|
|
31
|
+
/**
|
|
32
|
+
* When true, apply *-foreground color classes for variants instead of regular color classes.
|
|
33
|
+
*/
|
|
34
|
+
asForeground?: boolean;
|
|
35
|
+
truncate?: boolean;
|
|
36
|
+
numeric?: boolean;
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare type HeadingSize = (typeof HEADING_LEVELS)[number];
|
|
41
|
+
|
|
42
|
+
export declare const Paragraph: ({ children, className, as, ...props }: TextProps) => JSX.Element;
|
|
43
|
+
|
|
44
|
+
declare const Text_2: default_2.ForwardRefExoticComponent<Omit<any, "ref"> & default_2.RefAttributes<Element>>;
|
|
45
|
+
export { Text_2 as Text }
|
|
46
|
+
|
|
47
|
+
declare const TEXT_ALIGNS: readonly ["left", "center", "right", "justify", "start", "end"];
|
|
48
|
+
|
|
49
|
+
declare const TEXT_LEADINGS: readonly ["none", "tight", "snug", "normal", "relaxed", "loose"];
|
|
50
|
+
|
|
51
|
+
declare const TEXT_TRACKINGS: readonly ["tighter", "tight", "normal", "wide", "wider", "widest"];
|
|
52
|
+
|
|
53
|
+
declare type TextAlign = (typeof TEXT_ALIGNS)[number];
|
|
54
|
+
|
|
55
|
+
declare interface TextBaseProps {
|
|
56
|
+
size?: FontSize;
|
|
57
|
+
weight?: FontWeight;
|
|
58
|
+
variant?: TypographyVariant;
|
|
59
|
+
align?: TextAlign;
|
|
60
|
+
leading?: TextLeading;
|
|
61
|
+
tracking?: TextTracking;
|
|
62
|
+
family?: FontFamily;
|
|
63
|
+
/**
|
|
64
|
+
* When true, apply *-foreground color classes for variants instead of regular color classes.
|
|
65
|
+
*/
|
|
66
|
+
asForeground?: boolean;
|
|
67
|
+
truncate?: boolean;
|
|
68
|
+
numeric?: boolean;
|
|
69
|
+
className?: string;
|
|
70
|
+
as?: TypographyElement;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare type TextLeading = (typeof TEXT_LEADINGS)[number];
|
|
74
|
+
|
|
75
|
+
export declare type TextProps<E extends default_2.ElementType = TypographyElement> = TextBaseProps & {
|
|
76
|
+
as?: E;
|
|
77
|
+
} & default_2.ComponentPropsWithRef<E>;
|
|
78
|
+
|
|
79
|
+
declare type TextTracking = (typeof TEXT_TRACKINGS)[number];
|
|
80
|
+
|
|
81
|
+
declare const TYPOGRAPHY_ELEMENTS: readonly ["p", "span", "label", "div", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
82
|
+
|
|
83
|
+
declare const TYPOGRAPHY_VARIANTS: readonly ["default", "inherit", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive"];
|
|
84
|
+
|
|
85
|
+
declare type TypographyElement = (typeof TYPOGRAPHY_ELEMENTS)[number];
|
|
86
|
+
|
|
87
|
+
declare type TypographyVariant = (typeof TYPOGRAPHY_VARIANTS)[number];
|
|
88
|
+
|
|
89
|
+
export { }
|