@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
package/dist/forms.d.ts
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
export declare type BaseButtonSize = "default" | "sm" | "lg" | "icon";
|
|
6
|
+
|
|
7
|
+
export declare type BaseButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link";
|
|
8
|
+
|
|
9
|
+
export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, ...rest }: ButtonProps) => JSX.Element;
|
|
10
|
+
|
|
11
|
+
export declare const ButtonGroup: {
|
|
12
|
+
({ children, className }: ButtonGroupProps): JSX.Element;
|
|
13
|
+
Button({ children, className, ...props }: ButtonProps): JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export declare interface ButtonGroupProps {
|
|
17
|
+
children: default_2.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare interface ButtonProps extends default_2.ComponentProps<"button"> {
|
|
22
|
+
children?: default_2.ReactNode;
|
|
23
|
+
onClick?: () => void;
|
|
24
|
+
variant?: "default" | "primary" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "subtle";
|
|
25
|
+
size?: "default" | "xs" | "sm" | "md" | "lg";
|
|
26
|
+
icon?: default_2.ReactElement;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
className?: string;
|
|
29
|
+
type?: "button" | "submit" | "reset";
|
|
30
|
+
asChild?: boolean;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange }: CheckboxProps) => JSX.Element;
|
|
34
|
+
|
|
35
|
+
export declare interface CheckboxProps {
|
|
36
|
+
label: string;
|
|
37
|
+
name: string;
|
|
38
|
+
value?: string;
|
|
39
|
+
checked: boolean;
|
|
40
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare const DateInput: ({ name, label, placeholder, note, className, ...props }: DateInputProps) => JSX.Element;
|
|
44
|
+
|
|
45
|
+
declare interface DateInputProps extends Omit<TextInputProps, "type"> {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export declare const DatePicker: ({ onDateSelection, initialValue, className, size, error }: DatePickerProps) => JSX.Element;
|
|
49
|
+
|
|
50
|
+
declare interface DatePickerProps {
|
|
51
|
+
onDateSelection: (date: Date) => void;
|
|
52
|
+
initialValue?: Date;
|
|
53
|
+
className?: string;
|
|
54
|
+
size?: "default" | "xs" | "sm" | "lg";
|
|
55
|
+
error?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props) => JSX.Element;
|
|
59
|
+
|
|
60
|
+
export declare const InputError: ({ message }: {
|
|
61
|
+
message: string;
|
|
62
|
+
}) => JSX.Element;
|
|
63
|
+
|
|
64
|
+
export declare const InputGroup: ({ label, labelFor, className, labelClassName, children }: InputGroupProps) => JSX.Element;
|
|
65
|
+
|
|
66
|
+
declare interface InputGroupProps {
|
|
67
|
+
label?: string;
|
|
68
|
+
labelFor?: string;
|
|
69
|
+
className?: string;
|
|
70
|
+
labelClassName?: string;
|
|
71
|
+
children: React.ReactNode;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export declare const Label: ({ htmlFor, value, children, className, ...props }: LabelProps) => JSX.Element;
|
|
75
|
+
|
|
76
|
+
export declare interface LabelProps extends ComponentProps<"label"> {
|
|
77
|
+
htmlFor?: string;
|
|
78
|
+
value?: string;
|
|
79
|
+
children?: React.ReactNode;
|
|
80
|
+
className?: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
+ * A specialized input component for numeric values.
|
|
85
|
+
+ * Extends TextInput with number-specific functionality.
|
|
86
|
+
+ */
|
|
87
|
+
export declare const NumberInput: ({ name, label, placeholder, note, step, className, ...props }: NumberInputProps) => JSX.Element;
|
|
88
|
+
|
|
89
|
+
export declare interface NumberInputProps extends Omit<TextInputProps, "type"> {
|
|
90
|
+
step?: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare interface Option_2 {
|
|
94
|
+
value: string;
|
|
95
|
+
label: string;
|
|
96
|
+
}
|
|
97
|
+
export { Option_2 as Option }
|
|
98
|
+
|
|
99
|
+
declare interface Option_3 {
|
|
100
|
+
value: string;
|
|
101
|
+
label: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare interface Props extends ButtonProps {
|
|
105
|
+
disabled?: boolean;
|
|
106
|
+
handleDelete: () => void;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare const RadioSelect: ({ label, name, options, value, onChange, error }: RadioSelectProps) => JSX.Element;
|
|
110
|
+
|
|
111
|
+
declare interface RadioSelectProps {
|
|
112
|
+
name: string;
|
|
113
|
+
label?: string;
|
|
114
|
+
value?: string;
|
|
115
|
+
options: Option_3[];
|
|
116
|
+
onChange?: (value: string) => void;
|
|
117
|
+
error?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onValueChange, error, ...props }: SelectInputProps) => JSX.Element;
|
|
121
|
+
|
|
122
|
+
export declare interface SelectInputProps extends Omit<React.ComponentProps<"select">, "dir"> {
|
|
123
|
+
name: string;
|
|
124
|
+
value?: string;
|
|
125
|
+
onValueChange: (value: string) => void;
|
|
126
|
+
options: Option_2[];
|
|
127
|
+
label?: string;
|
|
128
|
+
placeholder?: string;
|
|
129
|
+
note?: string;
|
|
130
|
+
className?: string;
|
|
131
|
+
error?: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export declare const SelectPicker: ({ options, value, placeholder, className, onSelect, renderSelected, }: SelectPickerProps) => JSX.Element;
|
|
135
|
+
|
|
136
|
+
export declare interface SelectPickerOption {
|
|
137
|
+
icon?: string;
|
|
138
|
+
value: string;
|
|
139
|
+
label: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export declare interface SelectPickerProps {
|
|
143
|
+
options: SelectPickerOption[];
|
|
144
|
+
onSelect: (selected: string) => void;
|
|
145
|
+
value?: string;
|
|
146
|
+
placeholder?: string;
|
|
147
|
+
className?: string;
|
|
148
|
+
renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export declare const SubmitButton: ({ submitting, disabled, submittingIcon, action, noIcon, ...rest }: SubmitButtonProps) => JSX.Element;
|
|
152
|
+
|
|
153
|
+
export declare interface SubmitButtonProps extends ButtonProps {
|
|
154
|
+
action?: "default" | "submit" | "save" | "send";
|
|
155
|
+
submitting?: boolean;
|
|
156
|
+
disabled?: boolean;
|
|
157
|
+
submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
158
|
+
noIcon?: boolean;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export declare function Textarea({ label, name, note, placeholder, className, error, ...props }: TextareaProps): JSX.Element;
|
|
162
|
+
|
|
163
|
+
export declare interface TextareaProps extends React.ComponentProps<"textarea"> {
|
|
164
|
+
name: string;
|
|
165
|
+
label?: string;
|
|
166
|
+
placeholder?: string;
|
|
167
|
+
note?: string;
|
|
168
|
+
className?: string;
|
|
169
|
+
error?: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export declare const TextInput: ({ name, type, placeholder, label, labelOrientation, note, className, error, ...props }: TextInputProps) => JSX.Element;
|
|
173
|
+
|
|
174
|
+
export declare interface TextInputProps extends React.ComponentProps<"input"> {
|
|
175
|
+
name: string;
|
|
176
|
+
type?: string;
|
|
177
|
+
placeholder?: string;
|
|
178
|
+
label?: string;
|
|
179
|
+
labelOrientation?: "top" | "left";
|
|
180
|
+
note?: string;
|
|
181
|
+
className?: string;
|
|
182
|
+
error?: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export { }
|