@still-forest/canopy 0.10.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/LICENSE +21 -0
- package/README.md +43 -0
- package/dist/index.d.ts +378 -0
- package/dist/index.js +10371 -0
- package/dist/index.js.map +1 -0
- package/package.json +112 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Still Forest LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Canopy
|
|
2
|
+
|
|
3
|
+
_React components, built with Tailwind CSS, Shadcn, and VisX_
|
|
4
|
+
|
|
5
|
+
[](https://codecov.io/gh/v/canopy)
|
|
6
|
+
|
|
7
|
+
**Resources**
|
|
8
|
+
|
|
9
|
+
- [Github repo](https://github.com/still-forest/canopy)
|
|
10
|
+
- Distribution
|
|
11
|
+
- [npm registry](https://www.npmjs.com/package/@still-forest/canopy)
|
|
12
|
+
- Building blocks
|
|
13
|
+
- [TailwindCSS](https://tailwindcss.com/docs)
|
|
14
|
+
- [shadcn-ui](https://ui.shadcn.com/docs/)
|
|
15
|
+
- [color themes](https://ui.shadcn.com/colors)
|
|
16
|
+
- [Vite](https://vite.dev/guide/)
|
|
17
|
+
- [Vitest](https://vitest.dev/guide/)
|
|
18
|
+
- Documentation via Storybook
|
|
19
|
+
- [Github Pages](https://still-forest.github.io/canopy/) - docs only
|
|
20
|
+
- Development
|
|
21
|
+
- [CodeCov](https://app.codecov.io/gh/still-forest/canopy)
|
|
22
|
+
- [Renovate](https://developer.mend.io/github/still-forest/canopy)
|
|
23
|
+
- Other documentation, documents
|
|
24
|
+
- [Changelog](./CHANGELOG.md)
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
### Installation
|
|
31
|
+
|
|
32
|
+
When using Vite, Canopy must be included in your primary `.css` file in order to ensure the necessary CSS classes are included in the build. For more details, read the Tailwind CSS documentation on [explicitly registering sources](https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-registering-sources).
|
|
33
|
+
|
|
34
|
+
Example `index.css`:
|
|
35
|
+
|
|
36
|
+
```css
|
|
37
|
+
@import "tailwindcss";
|
|
38
|
+
@source "../node_modules/@still-forest/canopy/dist";
|
|
39
|
+
|
|
40
|
+
@layer base {
|
|
41
|
+
/* your usual CSS definitions */
|
|
42
|
+
}
|
|
43
|
+
```
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { Bounds } from '@visx/brush/lib/types';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
4
|
+
import { default as default_3 } from '@jszymanowski/proper-date.js';
|
|
5
|
+
import { JSX } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
export declare const AreaChart: ({ data, opacity, margin, children, }: AreaChartProps) => JSX.Element;
|
|
8
|
+
|
|
9
|
+
export declare interface AreaChartProps {
|
|
10
|
+
data: DataPoint[];
|
|
11
|
+
opacity?: number;
|
|
12
|
+
margin?: {
|
|
13
|
+
top: number;
|
|
14
|
+
right: number;
|
|
15
|
+
bottom: number;
|
|
16
|
+
left: number;
|
|
17
|
+
};
|
|
18
|
+
children?: default_2.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare const Box: default_2.ForwardRefExoticComponent<BoxProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
|
|
23
|
+
declare const BOX_SIZINGS: readonly ["content", "border"];
|
|
24
|
+
|
|
25
|
+
export declare interface BoxProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
26
|
+
as?: default_2.ElementType;
|
|
27
|
+
variant?: LayoutVariant;
|
|
28
|
+
size?: Size;
|
|
29
|
+
width?: Width;
|
|
30
|
+
height?: Height;
|
|
31
|
+
display?: Display;
|
|
32
|
+
sizing?: BoxSizing;
|
|
33
|
+
position?: Position;
|
|
34
|
+
overflow?: Overflow;
|
|
35
|
+
overflowX?: Overflow;
|
|
36
|
+
overflowY?: Overflow;
|
|
37
|
+
rounded?: RoundedSize;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare type BoxSizing = (typeof BOX_SIZINGS)[number];
|
|
41
|
+
|
|
42
|
+
export declare const Brush: ({ data, width, height, margin, onChange, }: BrushProps) => JSX.Element | null;
|
|
43
|
+
|
|
44
|
+
export declare interface BrushProps {
|
|
45
|
+
data: DataPoint[];
|
|
46
|
+
width?: number;
|
|
47
|
+
height?: number;
|
|
48
|
+
margin?: {
|
|
49
|
+
top: number;
|
|
50
|
+
right: number;
|
|
51
|
+
bottom: number;
|
|
52
|
+
left: number;
|
|
53
|
+
};
|
|
54
|
+
onChange: (domain: Bounds | null) => void;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, ...rest }: ButtonProps) => JSX.Element;
|
|
58
|
+
|
|
59
|
+
export declare const ButtonGroup: {
|
|
60
|
+
({ children, className }: ButtonGroupProps): JSX.Element;
|
|
61
|
+
Button({ children, className, ...props }: ButtonProps): JSX.Element;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export declare interface ButtonGroupProps {
|
|
65
|
+
children: default_2.ReactNode;
|
|
66
|
+
className?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare interface ButtonProps extends default_2.ComponentProps<"button"> {
|
|
70
|
+
children?: default_2.ReactNode;
|
|
71
|
+
onClick?: () => void;
|
|
72
|
+
variant?: "default" | "primary" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "subtle";
|
|
73
|
+
size?: "default" | "xs" | "sm" | "md" | "lg";
|
|
74
|
+
icon?: default_2.ReactElement;
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
className?: string;
|
|
77
|
+
type?: "button" | "submit" | "reset";
|
|
78
|
+
asChild?: boolean;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare interface DataPoint {
|
|
82
|
+
x: Date;
|
|
83
|
+
y: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare type DataPoint_2 = {
|
|
87
|
+
date: default_3;
|
|
88
|
+
value: number;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
declare interface DataPoint_3 {
|
|
92
|
+
x: Date;
|
|
93
|
+
yTotal: number;
|
|
94
|
+
ySeries: Serie[];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props) => JSX.Element;
|
|
98
|
+
|
|
99
|
+
declare type Display = (typeof DISPLAYS)[number];
|
|
100
|
+
|
|
101
|
+
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"];
|
|
102
|
+
|
|
103
|
+
export declare const Flex: default_2.ForwardRefExoticComponent<FlexProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
104
|
+
|
|
105
|
+
declare const FLEX_ALIGNS: readonly ["start", "center", "end", "stretch", "baseline"];
|
|
106
|
+
|
|
107
|
+
declare const FLEX_DIRECTIONS: readonly ["row", "col", "row-reverse", "col-reverse"];
|
|
108
|
+
|
|
109
|
+
declare const FLEX_GROWS: readonly [null, true, false, "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
110
|
+
|
|
111
|
+
declare const FLEX_JUSTIFIES: readonly ["start", "center", "end", "between", "around", "evenly", "stretch", "baseline", "normal"];
|
|
112
|
+
|
|
113
|
+
declare const FLEX_WRAPS: readonly ["nowrap", "wrap", "wrap-reverse"];
|
|
114
|
+
|
|
115
|
+
declare type FlexAlign = (typeof FLEX_ALIGNS)[number];
|
|
116
|
+
|
|
117
|
+
declare type FlexDirection = (typeof FLEX_DIRECTIONS)[number];
|
|
118
|
+
|
|
119
|
+
declare type FlexGrow = (typeof FLEX_GROWS)[number];
|
|
120
|
+
|
|
121
|
+
declare type FlexJustify = (typeof FLEX_JUSTIFIES)[number];
|
|
122
|
+
|
|
123
|
+
export declare interface FlexProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
124
|
+
as?: default_2.ElementType;
|
|
125
|
+
direction?: FlexDirection;
|
|
126
|
+
align?: FlexAlign;
|
|
127
|
+
justify?: FlexJustify;
|
|
128
|
+
grow?: FlexGrow;
|
|
129
|
+
wrap?: FlexWrap;
|
|
130
|
+
gap?: Gap;
|
|
131
|
+
gapX?: Gap;
|
|
132
|
+
gapY?: Gap;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
declare type FlexWrap = (typeof FLEX_WRAPS)[number];
|
|
136
|
+
|
|
137
|
+
declare const FONT_FAMILIES: readonly ["display", "serif", "sans", "mono"];
|
|
138
|
+
|
|
139
|
+
declare const FONT_SIZES: readonly ["xs", "sm", "base", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "8xl", "9xl"];
|
|
140
|
+
|
|
141
|
+
declare const FONT_WEIGHTS: readonly ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"];
|
|
142
|
+
|
|
143
|
+
declare type FontFamily = (typeof FONT_FAMILIES)[number];
|
|
144
|
+
|
|
145
|
+
declare type FontSize = (typeof FONT_SIZES)[number];
|
|
146
|
+
|
|
147
|
+
declare type FontWeight = (typeof FONT_WEIGHTS)[number];
|
|
148
|
+
|
|
149
|
+
declare type Gap = (typeof GAPS)[number];
|
|
150
|
+
|
|
151
|
+
declare const GAPS: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"];
|
|
152
|
+
|
|
153
|
+
export declare const Grid: default_2.ForwardRefExoticComponent<GridProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
154
|
+
|
|
155
|
+
declare const GRID_COLS: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "none"];
|
|
156
|
+
|
|
157
|
+
declare const GRID_FLOWS: readonly ["row", "col", "dense", "row-dense", "col-dense"];
|
|
158
|
+
|
|
159
|
+
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"];
|
|
160
|
+
|
|
161
|
+
declare type GridCols = (typeof GRID_COLS)[number];
|
|
162
|
+
|
|
163
|
+
declare type GridFlow = (typeof GRID_FLOWS)[number];
|
|
164
|
+
|
|
165
|
+
export declare interface GridProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
166
|
+
as?: default_2.ElementType;
|
|
167
|
+
cols?: GridCols;
|
|
168
|
+
rows?: GridRows;
|
|
169
|
+
flow?: GridFlow;
|
|
170
|
+
gap?: Gap;
|
|
171
|
+
gapX?: Gap;
|
|
172
|
+
gapY?: Gap;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
declare type GridRows = (typeof GRID_ROWS)[number];
|
|
176
|
+
|
|
177
|
+
export declare const Heading: default_2.ForwardRefExoticComponent<HeadingProps & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
178
|
+
|
|
179
|
+
declare const HEADING_LEVELS: readonly ["1", "2", "3", "4", "5", "6"];
|
|
180
|
+
|
|
181
|
+
export declare interface HeadingProps extends default_2.HTMLAttributes<HTMLHeadingElement> {
|
|
182
|
+
level?: HeadingSize;
|
|
183
|
+
size?: FontSize;
|
|
184
|
+
weight?: FontWeight;
|
|
185
|
+
variant?: TypographyVariant;
|
|
186
|
+
align?: TextAlign;
|
|
187
|
+
leading?: TextLeading;
|
|
188
|
+
tracking?: TextTracking;
|
|
189
|
+
family?: FontFamily;
|
|
190
|
+
/**
|
|
191
|
+
* When true, apply *-foreground color classes for variants instead of regular color classes.
|
|
192
|
+
*/
|
|
193
|
+
asForeground?: boolean;
|
|
194
|
+
truncate?: boolean;
|
|
195
|
+
numeric?: boolean;
|
|
196
|
+
className?: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare type HeadingSize = (typeof HEADING_LEVELS)[number];
|
|
200
|
+
|
|
201
|
+
declare type Height = (typeof HEIGHTS)[number];
|
|
202
|
+
|
|
203
|
+
declare const HEIGHTS: readonly [...string[], "auto", "full", "min", "max", "fit", "px", "screen"];
|
|
204
|
+
|
|
205
|
+
export declare const Label: ({ htmlFor, value, children, className, ...props }: LabelProps) => JSX.Element;
|
|
206
|
+
|
|
207
|
+
export declare interface LabelProps extends ComponentProps<"label"> {
|
|
208
|
+
htmlFor?: string;
|
|
209
|
+
value?: string;
|
|
210
|
+
children?: React.ReactNode;
|
|
211
|
+
className?: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare const LAYOUT_VARIANTS: readonly ["default", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive"];
|
|
215
|
+
|
|
216
|
+
declare type LayoutVariant = (typeof LAYOUT_VARIANTS)[number];
|
|
217
|
+
|
|
218
|
+
export declare const LineChart: ({ data, label, margin }: LineChartProps) => JSX.Element;
|
|
219
|
+
|
|
220
|
+
export declare type LineChartProps = {
|
|
221
|
+
data: DataPoint_2[];
|
|
222
|
+
label?: string;
|
|
223
|
+
width?: number;
|
|
224
|
+
height?: number;
|
|
225
|
+
margin?: {
|
|
226
|
+
top: number;
|
|
227
|
+
right: number;
|
|
228
|
+
bottom: number;
|
|
229
|
+
left: number;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
+ * A specialized input component for numeric values.
|
|
235
|
+
+ * Extends TextInput with number-specific functionality.
|
|
236
|
+
+ */
|
|
237
|
+
export declare const NumberInput: ({ name, label, placeholder, note, step, className, ...props }: NumberInputProps) => JSX.Element;
|
|
238
|
+
|
|
239
|
+
export declare interface NumberInputProps extends Omit<TextInputProps, "type"> {
|
|
240
|
+
step?: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare type Overflow = (typeof OVERFLOWS)[number];
|
|
244
|
+
|
|
245
|
+
declare const OVERFLOWS: readonly ["auto", "scroll", "hidden", "clip", "visible"];
|
|
246
|
+
|
|
247
|
+
declare type Position = (typeof POSITIONS)[number];
|
|
248
|
+
|
|
249
|
+
declare const POSITIONS: readonly ["static", "fixed", "absolute", "relative", "sticky"];
|
|
250
|
+
|
|
251
|
+
declare interface Props extends ButtonProps {
|
|
252
|
+
disabled?: boolean;
|
|
253
|
+
handleDelete: () => void;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
declare interface Props_2 extends ButtonProps {
|
|
257
|
+
submitting?: boolean;
|
|
258
|
+
disabled?: boolean;
|
|
259
|
+
submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "full", true, false];
|
|
263
|
+
|
|
264
|
+
declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
|
|
265
|
+
|
|
266
|
+
export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_2) => JSX.Element;
|
|
267
|
+
|
|
268
|
+
export declare const SelectPicker: ({ options, value, placeholder, className, onSelect, renderSelected, }: SelectPickerProps) => JSX.Element;
|
|
269
|
+
|
|
270
|
+
export declare interface SelectPickerOption {
|
|
271
|
+
icon?: string;
|
|
272
|
+
value: string;
|
|
273
|
+
label: string;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export declare interface SelectPickerProps {
|
|
277
|
+
options: SelectPickerOption[];
|
|
278
|
+
onSelect: (selected: string) => void;
|
|
279
|
+
value?: string;
|
|
280
|
+
placeholder?: string;
|
|
281
|
+
className?: string;
|
|
282
|
+
renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
declare interface Serie {
|
|
286
|
+
key: string;
|
|
287
|
+
label: string;
|
|
288
|
+
y: number;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare type Size = (typeof SIZES)[number];
|
|
292
|
+
|
|
293
|
+
declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
|
|
294
|
+
|
|
295
|
+
export declare const StackedAreaChart: ({ margin, data, }: StackedAreaChartProps) => JSX.Element;
|
|
296
|
+
|
|
297
|
+
export declare type StackedAreaChartProps = {
|
|
298
|
+
margin?: {
|
|
299
|
+
top: number;
|
|
300
|
+
right: number;
|
|
301
|
+
bottom: number;
|
|
302
|
+
left: number;
|
|
303
|
+
};
|
|
304
|
+
data: DataPoint_3[];
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
declare const Text_2: default_2.ForwardRefExoticComponent<Omit<any, "ref"> & default_2.RefAttributes<Element>>;
|
|
308
|
+
export { Text_2 as Text }
|
|
309
|
+
|
|
310
|
+
declare const TEXT_ALIGNS: readonly ["left", "center", "right", "justify", "start", "end"];
|
|
311
|
+
|
|
312
|
+
declare const TEXT_LEADINGS: readonly ["none", "tight", "snug", "normal", "relaxed", "loose"];
|
|
313
|
+
|
|
314
|
+
declare const TEXT_TRACKINGS: readonly ["tighter", "tight", "normal", "wide", "wider", "widest"];
|
|
315
|
+
|
|
316
|
+
declare type TextAlign = (typeof TEXT_ALIGNS)[number];
|
|
317
|
+
|
|
318
|
+
export declare function Textarea({ label, name, note, placeholder, className, ...props }: TextareaProps): JSX.Element;
|
|
319
|
+
|
|
320
|
+
export declare interface TextareaProps extends React.ComponentProps<"textarea"> {
|
|
321
|
+
name: string;
|
|
322
|
+
label?: string;
|
|
323
|
+
placeholder?: string;
|
|
324
|
+
note?: string;
|
|
325
|
+
className?: string;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare interface TextBaseProps {
|
|
329
|
+
size?: FontSize;
|
|
330
|
+
weight?: FontWeight;
|
|
331
|
+
variant?: TypographyVariant;
|
|
332
|
+
align?: TextAlign;
|
|
333
|
+
leading?: TextLeading;
|
|
334
|
+
tracking?: TextTracking;
|
|
335
|
+
family?: FontFamily;
|
|
336
|
+
/**
|
|
337
|
+
* When true, apply *-foreground color classes for variants instead of regular color classes.
|
|
338
|
+
*/
|
|
339
|
+
asForeground?: boolean;
|
|
340
|
+
truncate?: boolean;
|
|
341
|
+
numeric?: boolean;
|
|
342
|
+
className?: string;
|
|
343
|
+
as?: TypographyElement;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export declare const TextInput: ({ name, type, placeholder, label, labelOrientation, note, className, ...props }: TextInputProps) => JSX.Element;
|
|
347
|
+
|
|
348
|
+
export declare interface TextInputProps extends React.ComponentProps<"input"> {
|
|
349
|
+
name: string;
|
|
350
|
+
type?: string;
|
|
351
|
+
placeholder?: string;
|
|
352
|
+
label?: string;
|
|
353
|
+
labelOrientation?: "top" | "left";
|
|
354
|
+
note?: string;
|
|
355
|
+
className?: string;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare type TextLeading = (typeof TEXT_LEADINGS)[number];
|
|
359
|
+
|
|
360
|
+
export declare type TextProps<E extends default_2.ElementType = "p"> = TextBaseProps & {
|
|
361
|
+
as?: E;
|
|
362
|
+
} & default_2.ComponentPropsWithRef<E>;
|
|
363
|
+
|
|
364
|
+
declare type TextTracking = (typeof TEXT_TRACKINGS)[number];
|
|
365
|
+
|
|
366
|
+
declare const TYPOGRAPHY_ELEMENTS: readonly ["p", "span", "label", "div", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
367
|
+
|
|
368
|
+
declare const TYPOGRAPHY_VARIANTS: readonly ["default", "inherit", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive"];
|
|
369
|
+
|
|
370
|
+
declare type TypographyElement = (typeof TYPOGRAPHY_ELEMENTS)[number];
|
|
371
|
+
|
|
372
|
+
declare type TypographyVariant = (typeof TYPOGRAPHY_VARIANTS)[number];
|
|
373
|
+
|
|
374
|
+
declare type Width = (typeof WIDTHS)[number];
|
|
375
|
+
|
|
376
|
+
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"];
|
|
377
|
+
|
|
378
|
+
export { }
|