@still-forest/canopy 0.42.1 → 0.43.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/forms.d.ts DELETED
@@ -1,297 +0,0 @@
1
- import { ClassProp } from 'class-variance-authority/types';
2
- import { ComponentProps } from 'react';
3
- import { default as default_2 } from 'react';
4
- import { JSX } from 'react/jsx-runtime';
5
- import * as React_2 from 'react';
6
- import { ReactNode } from 'react';
7
- import * as SliderPrimitive from '@radix-ui/react-slider';
8
- import * as SwitchPrimitive from '@radix-ui/react-switch';
9
- import { VariantProps } from 'class-variance-authority';
10
-
11
- export declare type BaseButtonSize = "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "unstyled";
12
-
13
- export declare type BaseButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled" | "error" | "info" | "success" | "warning";
14
-
15
- export declare const Button: ({ label, children, onClick, variant, size, icon, asIcon, disabled, className, type, asChild, full, fit, rounded, ...rest }: ButtonProps) => JSX.Element;
16
-
17
- export declare const ButtonGroup: {
18
- ({ children, className }: ButtonGroupProps): JSX.Element;
19
- Button({ children, className, ...props }: ButtonProps): JSX.Element;
20
- };
21
-
22
- export declare interface ButtonGroupProps {
23
- children: default_2.ReactNode;
24
- className?: string;
25
- }
26
-
27
- export declare interface ButtonProps extends default_2.ComponentProps<"button"> {
28
- label?: string;
29
- children?: default_2.ReactNode;
30
- onClick?: () => void;
31
- variant?: ButtonVariant;
32
- size?: "default" | "xs" | "sm" | "md" | "lg" | "xl";
33
- icon?: default_2.ReactElement;
34
- asIcon?: boolean;
35
- disabled?: boolean;
36
- className?: string;
37
- type?: "button" | "submit" | "reset";
38
- fit?: boolean;
39
- full?: boolean;
40
- asChild?: boolean;
41
- rounded?: boolean;
42
- }
43
-
44
- export declare type ButtonVariant = "default" | "primary" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled" | "error" | "info" | "success" | "warning";
45
-
46
- export declare const Checkbox: ({ label, name, value, checked, onCheckedChange }: CheckboxProps) => JSX.Element;
47
-
48
- export declare interface CheckboxProps {
49
- label: string;
50
- name: string;
51
- value?: string;
52
- checked: boolean;
53
- onCheckedChange?: (checked: boolean) => void;
54
- }
55
-
56
- export declare const CopyButton: ({ content, className, size, ...props }: CopyButtonProps) => JSX.Element;
57
-
58
- declare interface CopyButtonProps extends Omit<ButtonProps, "onClick" | "disabled"> {
59
- content: string;
60
- }
61
-
62
- export declare const DateInput: ({ name, label, placeholder, note, className, size, ...props }: DateInputProps) => JSX.Element;
63
-
64
- declare interface DateInputProps extends Omit<TextInputProps, "type"> {
65
- }
66
-
67
- export declare const DatePicker: ({ onDateSelection, initialValue, className, size, error }: DatePickerProps) => JSX.Element;
68
-
69
- declare interface DatePickerProps {
70
- onDateSelection: (date: Date) => void;
71
- initialValue?: Date;
72
- className?: string;
73
- size?: "default" | "xs" | "sm" | "lg";
74
- error?: string;
75
- }
76
-
77
- export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props) => JSX.Element;
78
-
79
- export declare const Input: ({ type, step, ...props }: InputProps) => JSX.Element;
80
-
81
- export declare const InputError: ({ message }: {
82
- message: string;
83
- }) => JSX.Element;
84
-
85
- export declare const InputGroup: InputGroupComponent;
86
-
87
- declare function InputGroup_2({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
88
-
89
- declare function InputGroupAddon({ className, align, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): JSX.Element;
90
-
91
- declare interface InputGroupAddonProps extends React.ComponentProps<typeof InputGroupAddon> {
92
- right?: boolean;
93
- }
94
-
95
- declare const inputGroupAddonVariants: (props?: ({
96
- align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
97
- } & ClassProp) | undefined) => string;
98
-
99
- declare type InputGroupComponent = React.FC<InputGroupProps> & {
100
- Input: React.FC<InputProps>;
101
- Addon: React.FC<InputGroupAddonProps>;
102
- Button: React.FC<ButtonProps>;
103
- Text: React.FC<InputGroupTextProps>;
104
- Textarea: React.FC<InputGroupTextareaProps>;
105
- };
106
-
107
- export declare type InputGroupProps = React.ComponentProps<typeof InputGroup_2> & {
108
- children: ReactNode;
109
- };
110
-
111
- declare interface InputGroupProps_2 {
112
- label?: string;
113
- labelFor?: string;
114
- className?: string;
115
- labelClassName?: string;
116
- children: ReactNode;
117
- }
118
-
119
- declare function InputGroupText({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
120
-
121
- declare const InputGroupTextarea: ({ className, ...props }: TextareaProps) => JSX.Element;
122
-
123
- declare type InputGroupTextareaProps = React.ComponentProps<typeof InputGroupTextarea>;
124
-
125
- declare type InputGroupTextProps = React.ComponentProps<typeof InputGroupText>;
126
-
127
- export declare interface InputProps extends TextInputProps {
128
- type?: "text" | "number" | "date" | "email" | "password";
129
- step?: string;
130
- }
131
-
132
- export declare const Label: ({ htmlFor, value, children, size, className, ...props }: LabelProps) => JSX.Element;
133
-
134
- export declare interface LabelProps extends ComponentProps<"label"> {
135
- htmlFor?: string;
136
- value?: string;
137
- children?: React.ReactNode;
138
- size?: "xs" | "sm" | "md" | "lg" | "xl";
139
- className?: string;
140
- }
141
-
142
- export declare const LegacyInputGroup: ({ label, labelFor, className, labelClassName, children, }: InputGroupProps_2) => JSX.Element;
143
-
144
- /**
145
- + * A specialized input component for numeric values.
146
- + * Extends TextInput with number-specific functionality.
147
- + */
148
- export declare const NumberInput: ({ name, label, placeholder, note, step, className, ...props }: NumberInputProps) => JSX.Element;
149
-
150
- export declare interface NumberInputProps extends Omit<TextInputProps, "type"> {
151
- step?: string;
152
- }
153
-
154
- declare interface Option_2 {
155
- value: string;
156
- label: string;
157
- }
158
-
159
- export declare const PasswordInput: ({ name, size, label, labelOrientation, note, error, ...props }: PasswordInputProps) => JSX.Element;
160
-
161
- declare interface PasswordInputProps extends Omit<InputProps, "type"> {
162
- }
163
-
164
- declare interface Props extends ButtonProps {
165
- disabled?: boolean;
166
- handleDelete: () => void;
167
- }
168
-
169
- export declare const RadioSelect: ({ label, name, options, value, onChange, error }: RadioSelectProps) => JSX.Element;
170
-
171
- declare interface RadioSelectProps {
172
- name: string;
173
- label?: string;
174
- value?: string;
175
- options: Option_2[];
176
- onChange?: (value: string) => void;
177
- error?: string;
178
- }
179
-
180
- export declare const SelectInput: ({ name, defaultValue, options: optionsProp, label, placeholder, note, className, value, onValueChange, error, emptyOptionLabel, size, ...props }: SelectInputProps) => JSX.Element;
181
-
182
- export declare interface SelectInputOption {
183
- icon?: string;
184
- value: string;
185
- label: string;
186
- }
187
-
188
- export declare interface SelectInputOptionGroup {
189
- label: string;
190
- options: SelectInputOption[];
191
- }
192
-
193
- export declare interface SelectInputProps extends Omit<React.ComponentProps<"select">, "dir" | "size"> {
194
- name: string;
195
- value?: string;
196
- onValueChange: (value: string) => void;
197
- options: SelectInputOption[] | SelectInputOptionGroup[];
198
- label?: string;
199
- placeholder?: string;
200
- note?: string;
201
- className?: string;
202
- error?: string;
203
- emptyOptionLabel?: string;
204
- size?: "xs" | "sm" | "md" | "lg" | "xl";
205
- }
206
-
207
- export declare const SelectPicker: ({ options: optionGroups, value, placeholder, className, onSelect, renderSelected, }: SelectPickerProps) => JSX.Element;
208
-
209
- export declare interface SelectPickerOption {
210
- icon?: string;
211
- value: string;
212
- label: string;
213
- }
214
-
215
- export declare interface SelectPickerOptionGroup {
216
- label: string;
217
- options: SelectPickerOption[];
218
- }
219
-
220
- export declare interface SelectPickerProps {
221
- options: SelectPickerOptionGroup[];
222
- onSelect: (selected: string) => void;
223
- value?: string;
224
- placeholder?: string;
225
- className?: string;
226
- renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
227
- }
228
-
229
- export declare const Slider: ({ size, thumbClassName, trackClassName, value, defaultValue, ...props }: SliderProps) => JSX.Element;
230
-
231
- declare function Slider_2({ className, trackClassName, thumbClassName, defaultValue, value, min, max, ...props }: SliderProps_2): JSX.Element;
232
-
233
- declare interface SliderProps extends Omit<React.ComponentProps<typeof Slider_2>, "value" | "defaultValue"> {
234
- size?: "xs" | "sm" | "md" | "lg" | "xl";
235
- thumbClassName?: string;
236
- trackClassName?: string;
237
- value?: number | number[];
238
- defaultValue?: number | number[];
239
- }
240
-
241
- declare interface SliderProps_2 extends React_2.ComponentProps<typeof SliderPrimitive.Root> {
242
- trackClassName?: string;
243
- thumbClassName?: string;
244
- }
245
-
246
- export declare const SubmitButton: ({ submitting, disabled, submittingIcon, action, label: customLabel, submittingLabel: customSubmittingLabel, icon: customIcon, noIcon, ...rest }: SubmitButtonProps) => JSX.Element;
247
-
248
- export declare interface SubmitButtonProps extends Omit<ButtonProps, "icon"> {
249
- action?: "default" | "submit" | "save" | "send";
250
- label?: string;
251
- submittingLabel?: string;
252
- submitting?: boolean;
253
- disabled?: boolean;
254
- icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
255
- submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
256
- noIcon?: boolean;
257
- }
258
-
259
- export declare const Switch: ({ id: idProp, label, className, thumbClassName, labelClassName, size, ...props }: SwitchProps) => JSX.Element;
260
-
261
- declare function Switch_2({ className, thumbClassName, ...props }: React_2.ComponentProps<typeof SwitchPrimitive.Root> & {
262
- thumbClassName?: string;
263
- }): JSX.Element;
264
-
265
- declare interface SwitchProps extends React.ComponentProps<typeof Switch_2> {
266
- id?: string;
267
- label?: string | (string | null)[];
268
- size?: "xs" | "sm" | "md" | "lg" | "xl";
269
- labelClassName?: string | string[];
270
- }
271
-
272
- export declare function Textarea({ label, name, note, placeholder, className, error, ...props }: TextareaProps): JSX.Element;
273
-
274
- export declare interface TextareaProps extends React.ComponentProps<"textarea"> {
275
- name: string;
276
- label?: string;
277
- placeholder?: string;
278
- note?: string;
279
- className?: string;
280
- error?: string;
281
- }
282
-
283
- export declare const TextInput: ({ name, type, placeholder, label, labelOrientation, note, size, className, error, ...props }: TextInputProps) => JSX.Element;
284
-
285
- export declare interface TextInputProps extends Omit<React.ComponentProps<"input">, "size"> {
286
- name: string;
287
- type?: string;
288
- placeholder?: string;
289
- label?: string;
290
- labelOrientation?: "top" | "left";
291
- note?: string;
292
- size?: "xs" | "sm" | "md" | "lg" | "xl";
293
- className?: string;
294
- error?: string;
295
- }
296
-
297
- export { }
package/dist/forms.js DELETED
@@ -1,26 +0,0 @@
1
- import { B as e, a as s, D as u, I as o, b as r, c as p, L as n, N as c, d as I, T as S } from "./chunks/sidebar-Dub2Iudi.js";
2
- import { C as i, a as l, b as B, D as d, L as x, P as D, R as m, c as L, d as P, e as f, S as k, f as C } from "./chunks/Switch-B-zrBW1-.js";
3
- export {
4
- e as Button,
5
- s as ButtonGroup,
6
- i as Checkbox,
7
- l as CopyButton,
8
- u as DateInput,
9
- B as DatePicker,
10
- d as DeleteButton,
11
- o as Input,
12
- r as InputError,
13
- p as InputGroup,
14
- n as Label,
15
- x as LegacyInputGroup,
16
- c as NumberInput,
17
- D as PasswordInput,
18
- m as RadioSelect,
19
- L as SelectInput,
20
- P as SelectPicker,
21
- f as Slider,
22
- k as SubmitButton,
23
- C as Switch,
24
- I as TextInput,
25
- S as Textarea
26
- };
@@ -1,48 +0,0 @@
1
- import { default as default_2 } from 'react';
2
- import { JSX } from 'react/jsx-runtime';
3
-
4
- export declare const ErrorFallback: ({ error, onRetry, ...props }: ErrorFallbackProps) => JSX.Element;
5
-
6
- declare interface ErrorFallbackProps extends ErrorOverlayProps {
7
- error: Error;
8
- onRetry?: () => void;
9
- }
10
-
11
- export declare const ErrorOverlay: ({ message, children, ...props }: ErrorOverlayProps) => JSX.Element;
12
-
13
- export declare interface ErrorOverlayProps extends InterstitialProps {
14
- }
15
-
16
- export declare const Interstitial: ({ variant, iconComponent, message, children, iconSize, iconClassName, fullScreen, containerClassName, }: InterstitialProps) => JSX.Element;
17
-
18
- export declare interface InterstitialProps {
19
- variant?: "error" | "info" | "success" | "warning";
20
- iconComponent?: default_2.ElementType;
21
- message?: string;
22
- iconSize?: LoaderProps["size"];
23
- iconClassName?: string;
24
- children?: default_2.ReactNode;
25
- fullScreen?: boolean;
26
- containerClassName?: string;
27
- }
28
-
29
- declare interface LoaderProps extends React.ComponentProps<"svg"> {
30
- variant?: "default" | "wheel";
31
- icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
32
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl";
33
- }
34
-
35
- export declare const PageLoader: ({ iconComponent, message, iconSize, iconClassName, ...props }: PageLoaderProps) => JSX.Element;
36
-
37
- declare interface PageLoaderProps extends InterstitialProps {
38
- }
39
-
40
- export declare const PageNotFound: ({ onBack, message, backIcon, backLabel, ...props }: PageNotFoundProps) => JSX.Element;
41
-
42
- declare interface PageNotFoundProps extends InterstitialProps {
43
- backIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
44
- backLabel?: string;
45
- onBack?: () => void;
46
- }
47
-
48
- export { }
@@ -1,8 +0,0 @@
1
- import { E as o, a as e, I as s, P as t, b as l } from "./chunks/PageNotFound-CPlMTx3M.js";
2
- export {
3
- o as ErrorFallback,
4
- e as ErrorOverlay,
5
- s as Interstitial,
6
- t as PageLoader,
7
- l as PageNotFound
8
- };
package/dist/layout.d.ts DELETED
@@ -1,174 +0,0 @@
1
- import { default as default_2 } from 'react';
2
- import { JSX } from 'react/jsx-runtime';
3
-
4
- declare const Body_2: ({ children, className, withContainer, ...props }: BodyProps) => JSX.Element;
5
-
6
- declare interface BodyProps extends FlexProps {
7
- withContainer?: boolean;
8
- }
9
-
10
- export declare const Box: default_2.ForwardRefExoticComponent<BoxProps & default_2.RefAttributes<HTMLDivElement>>;
11
-
12
- declare const BOX_SIZINGS: readonly ["content", "border"];
13
-
14
- export declare interface BoxProps extends default_2.HTMLAttributes<HTMLDivElement> {
15
- as?: default_2.ElementType;
16
- variant?: LayoutVariant;
17
- size?: Size;
18
- width?: Width;
19
- height?: Height;
20
- display?: Display;
21
- sizing?: BoxSizing;
22
- position?: Position;
23
- overflow?: Overflow;
24
- overflowX?: Overflow;
25
- overflowY?: Overflow;
26
- rounded?: RoundedSize;
27
- }
28
-
29
- declare type BoxSizing = (typeof BOX_SIZINGS)[number];
30
-
31
- export declare const Container: ({ children, className, direction, separation, ...props }: ContainerProps) => JSX.Element;
32
-
33
- export declare interface ContainerProps extends FlexProps {
34
- children: React.ReactNode;
35
- display?: Display_2;
36
- className?: string;
37
- separation?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
38
- }
39
-
40
- declare type Display = (typeof DISPLAYS)[number];
41
-
42
- declare type Display_2 = "block" | "flex";
43
-
44
- 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"];
45
-
46
- export declare const Flex: typeof FlexComponent & {
47
- Item: typeof FlexItem;
48
- };
49
-
50
- declare const FLEX_ALIGNS: readonly ["start", "center", "end", "stretch", "baseline"];
51
-
52
- declare const FLEX_DIRECTIONS: readonly ["row", "col", "row-reverse", "col-reverse"];
53
-
54
- declare const FLEX_GROWS: readonly [null, true, false, "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
55
-
56
- declare const FLEX_JUSTIFIES: readonly ["start", "center", "end", "between", "around", "evenly", "stretch", "baseline", "normal"];
57
-
58
- declare const FLEX_WRAPS: readonly ["nowrap", "wrap", "wrap-reverse"];
59
-
60
- declare type FlexAlign = (typeof FLEX_ALIGNS)[number];
61
-
62
- declare const FlexComponent: default_2.ForwardRefExoticComponent<FlexProps & default_2.RefAttributes<HTMLDivElement>>;
63
-
64
- declare type FlexDirection = (typeof FLEX_DIRECTIONS)[number];
65
-
66
- declare type FlexGrow = (typeof FLEX_GROWS)[number];
67
-
68
- declare const FlexItem: ({ flex, className, as, children, ...props }: FlexItemProps) => JSX.Element;
69
-
70
- declare interface FlexItemProps extends React.HTMLAttributes<HTMLDivElement> {
71
- as?: React.ElementType<any>;
72
- flex?: FlexType;
73
- }
74
-
75
- declare type FlexJustify = (typeof FLEX_JUSTIFIES)[number];
76
-
77
- export declare interface FlexProps extends default_2.HTMLAttributes<HTMLDivElement> {
78
- as?: default_2.ElementType;
79
- direction?: FlexDirection;
80
- align?: FlexAlign;
81
- justify?: FlexJustify;
82
- grow?: FlexGrow;
83
- wrap?: FlexWrap;
84
- gap?: Gap;
85
- gapX?: Gap;
86
- gapY?: Gap;
87
- }
88
-
89
- declare type FlexType = "1" | "auto" | "initial" | "none";
90
-
91
- declare type FlexWrap = (typeof FLEX_WRAPS)[number];
92
-
93
- export declare const Footer: ({ children, className, ...props }: FooterProps) => JSX.Element;
94
-
95
- declare interface FooterProps extends ContainerProps {
96
- children: React.ReactNode;
97
- }
98
-
99
- declare type Gap = (typeof GAPS)[number];
100
-
101
- declare const GAPS: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"];
102
-
103
- export declare const Grid: default_2.ForwardRefExoticComponent<GridProps & default_2.RefAttributes<HTMLDivElement>>;
104
-
105
- declare const GRID_COLS: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "none"];
106
-
107
- declare const GRID_FLOWS: readonly ["row", "col", "dense", "row-dense", "col-dense"];
108
-
109
- 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"];
110
-
111
- declare type GridCols = (typeof GRID_COLS)[number];
112
-
113
- declare type GridFlow = (typeof GRID_FLOWS)[number];
114
-
115
- export declare interface GridProps extends default_2.HTMLAttributes<HTMLDivElement> {
116
- as?: default_2.ElementType;
117
- cols?: GridCols;
118
- rows?: GridRows;
119
- flow?: GridFlow;
120
- gap?: Gap;
121
- gapX?: Gap;
122
- gapY?: Gap;
123
- }
124
-
125
- declare type GridRows = (typeof GRID_ROWS)[number];
126
-
127
- export declare const Header: ({ children, sticky, className, ...props }: HeaderProps) => JSX.Element;
128
-
129
- declare interface HeaderProps extends ContainerProps {
130
- children: React.ReactNode;
131
- sticky?: boolean;
132
- }
133
-
134
- declare type Height = (typeof HEIGHTS)[number];
135
-
136
- declare const HEIGHTS: readonly [...string[], "auto", "full", "min", "max", "fit", "px", "screen"];
137
-
138
- export declare const Layout: typeof LayoutComponent & {
139
- Header: typeof Header;
140
- Body: typeof Body_2;
141
- Footer: typeof Footer;
142
- };
143
-
144
- declare const LAYOUT_VARIANTS: readonly ["default", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive", "brand"];
145
-
146
- declare const LayoutComponent: default_2.ForwardRefExoticComponent<LayoutProps & default_2.RefAttributes<HTMLDivElement>>;
147
-
148
- declare interface LayoutProps extends FlexProps {
149
- children: default_2.ReactNode;
150
- }
151
-
152
- declare type LayoutVariant = (typeof LAYOUT_VARIANTS)[number];
153
-
154
- declare type Overflow = (typeof OVERFLOWS)[number];
155
-
156
- declare const OVERFLOWS: readonly ["auto", "scroll", "hidden", "clip", "visible"];
157
-
158
- declare type Position = (typeof POSITIONS)[number];
159
-
160
- declare const POSITIONS: readonly ["static", "fixed", "absolute", "relative", "sticky"];
161
-
162
- declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "full", true, false];
163
-
164
- declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
165
-
166
- declare type Size = (typeof SIZES)[number];
167
-
168
- declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
169
-
170
- declare type Width = (typeof WIDTHS)[number];
171
-
172
- 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"];
173
-
174
- export { }
package/dist/layout.js DELETED
@@ -1,10 +0,0 @@
1
- import { B as s, C as e, F as r, a as t, G as x, H as F, L as d } from "./chunks/Layout-CvVv48kM.js";
2
- export {
3
- s as Box,
4
- e as Container,
5
- r as Flex,
6
- t as Footer,
7
- x as Grid,
8
- F as Header,
9
- d as Layout
10
- };
@@ -1,59 +0,0 @@
1
- import { ClassProp } from 'class-variance-authority/types';
2
- import { JSX } from 'react/jsx-runtime';
3
- import * as React_2 from 'react';
4
- import { VariantProps } from 'class-variance-authority';
5
-
6
- declare function Button({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
7
- asChild?: boolean;
8
- }): JSX.Element;
9
-
10
- declare const buttonVariants: (props?: ({
11
- variant?: "link" | "info" | "success" | "warning" | "error" | "default" | "secondary" | "destructive" | "outline" | "ghost" | "unstyled" | null | undefined;
12
- size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "unstyled" | null | undefined;
13
- } & ClassProp) | undefined) => string;
14
-
15
- export declare const MenuItemText: ({ children }: {
16
- children: React.ReactNode;
17
- }) => JSX.Element;
18
-
19
- declare interface Props extends SidebarProps {
20
- children?: React.ReactNode;
21
- }
22
-
23
- export declare const Sidebar: ({ brandContent, brandOnClick, activeSlug, itemSets, bottomItemSets, theme, setTheme, ...props }: SidebarProps) => JSX.Element;
24
-
25
- declare function Sidebar_2({ side, variant, collapsible, className, children, ...props }: React_2.ComponentProps<"div"> & {
26
- side?: "left" | "right";
27
- variant?: "sidebar" | "floating" | "inset";
28
- collapsible?: "offcanvas" | "icon" | "none";
29
- }): JSX.Element;
30
-
31
- export declare const SidebarLayout: ({ children, ...props }: Props) => JSX.Element;
32
-
33
- export declare interface SidebarProps extends React.ComponentProps<typeof Sidebar_2> {
34
- brandContent: React.ReactNode;
35
- brandOnClick?: () => void;
36
- activeSlug?: string;
37
- itemSets: SideLinkSet[];
38
- bottomItemSets?: SideLinkSet[];
39
- theme: Theme;
40
- setTheme: (theme: Theme) => void;
41
- }
42
-
43
- export declare function SidebarTrigger({ className, onClick, children, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
44
-
45
- declare interface SideLink {
46
- slug: string;
47
- title: string;
48
- icon: React.ElementType;
49
- onClick?: () => void;
50
- external?: boolean;
51
- }
52
-
53
- declare interface SideLinkSet {
54
- links: SideLink[];
55
- }
56
-
57
- declare type Theme = "system" | "light" | "dark";
58
-
59
- export { }
@@ -1,8 +0,0 @@
1
- import { M as r, S as o, a as t } from "./chunks/SidebarLayout-DBGn2rXK.js";
2
- import { S as i } from "./chunks/sidebar-Dub2Iudi.js";
3
- export {
4
- r as MenuItemText,
5
- o as Sidebar,
6
- t as SidebarLayout,
7
- i as SidebarTrigger
8
- };