@still-forest/canopy 0.16.0 → 0.17.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/index.d.ts +48 -6
- package/dist/index.js +5535 -5371
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
1
2
|
import { ComponentProps } from 'react';
|
|
2
3
|
import { default as default_2 } from 'react';
|
|
3
4
|
import { JSX } from 'react/jsx-runtime';
|
|
4
5
|
import * as React_2 from 'react';
|
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
7
|
|
|
6
8
|
export declare const Box: default_2.ForwardRefExoticComponent<BoxProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
7
9
|
|
|
@@ -24,8 +26,19 @@ export declare interface BoxProps extends default_2.HTMLAttributes<HTMLDivElemen
|
|
|
24
26
|
|
|
25
27
|
declare type BoxSizing = (typeof BOX_SIZINGS)[number];
|
|
26
28
|
|
|
29
|
+
export declare const Breadcrumbs: ({ breadcrumbs, linkComponent, pageComponent, className }: Props) => JSX.Element;
|
|
30
|
+
|
|
31
|
+
export declare interface BreadcrumbType {
|
|
32
|
+
label: string;
|
|
33
|
+
to?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, ...rest }: ButtonProps) => JSX.Element;
|
|
28
37
|
|
|
38
|
+
declare function Button_2({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
39
|
+
asChild?: boolean;
|
|
40
|
+
}): JSX.Element;
|
|
41
|
+
|
|
29
42
|
export declare const ButtonGroup: {
|
|
30
43
|
({ children, className }: ButtonGroupProps): JSX.Element;
|
|
31
44
|
Button({ children, className, ...props }: ButtonProps): JSX.Element;
|
|
@@ -48,6 +61,11 @@ export declare interface ButtonProps extends default_2.ComponentProps<"button">
|
|
|
48
61
|
asChild?: boolean;
|
|
49
62
|
}
|
|
50
63
|
|
|
64
|
+
declare const buttonVariants: (props?: ({
|
|
65
|
+
variant?: "link" | "secondary" | "destructive" | "default" | "outline" | "ghost" | null | undefined;
|
|
66
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
67
|
+
} & ClassProp) | undefined) => string;
|
|
68
|
+
|
|
51
69
|
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange }: CheckboxProps) => JSX.Element;
|
|
52
70
|
|
|
53
71
|
export declare interface CheckboxProps {
|
|
@@ -85,7 +103,7 @@ declare interface DatePickerProps {
|
|
|
85
103
|
size?: "default" | "xs" | "sm" | "lg";
|
|
86
104
|
}
|
|
87
105
|
|
|
88
|
-
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }:
|
|
106
|
+
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props_3) => JSX.Element;
|
|
89
107
|
|
|
90
108
|
declare type Display = (typeof DISPLAYS)[number];
|
|
91
109
|
|
|
@@ -239,6 +257,8 @@ export declare const MenuItemText: ({ children }: {
|
|
|
239
257
|
children: React.ReactNode;
|
|
240
258
|
}) => JSX.Element;
|
|
241
259
|
|
|
260
|
+
export declare const Modal: ({ trigger, children, title, description }: Props_2) => JSX.Element;
|
|
261
|
+
|
|
242
262
|
/**
|
|
243
263
|
+ * A specialized input component for numeric values.
|
|
244
264
|
+ * Extends TextInput with number-specific functionality.
|
|
@@ -268,18 +288,37 @@ declare type Position = (typeof POSITIONS)[number];
|
|
|
268
288
|
|
|
269
289
|
declare const POSITIONS: readonly ["static", "fixed", "absolute", "relative", "sticky"];
|
|
270
290
|
|
|
271
|
-
declare interface Props
|
|
291
|
+
declare interface Props {
|
|
292
|
+
breadcrumbs: BreadcrumbType[];
|
|
293
|
+
linkComponent?: React.ComponentType<{
|
|
294
|
+
to: string;
|
|
295
|
+
label: string;
|
|
296
|
+
}>;
|
|
297
|
+
pageComponent?: React.ComponentType<{
|
|
298
|
+
label: string;
|
|
299
|
+
}>;
|
|
300
|
+
className?: string;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
declare interface Props_2 {
|
|
304
|
+
trigger: React.ReactNode;
|
|
305
|
+
children: React.ReactNode;
|
|
306
|
+
title?: string;
|
|
307
|
+
description?: string;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
declare interface Props_3 extends ButtonProps {
|
|
272
311
|
disabled?: boolean;
|
|
273
312
|
handleDelete: () => void;
|
|
274
313
|
}
|
|
275
314
|
|
|
276
|
-
declare interface
|
|
315
|
+
declare interface Props_4 extends ButtonProps {
|
|
277
316
|
submitting?: boolean;
|
|
278
317
|
disabled?: boolean;
|
|
279
318
|
submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
280
319
|
}
|
|
281
320
|
|
|
282
|
-
declare interface
|
|
321
|
+
declare interface Props_5 extends SidebarProps {
|
|
283
322
|
children?: React.ReactNode;
|
|
284
323
|
}
|
|
285
324
|
|
|
@@ -297,7 +336,7 @@ declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2x
|
|
|
297
336
|
|
|
298
337
|
declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
|
|
299
338
|
|
|
300
|
-
export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }:
|
|
339
|
+
export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_4) => JSX.Element;
|
|
301
340
|
|
|
302
341
|
export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onValueChange, ...props }: SelectInputProps) => JSX.Element;
|
|
303
342
|
|
|
@@ -344,7 +383,7 @@ declare function Sidebar_2({ side, variant, collapsible, className, children, ..
|
|
|
344
383
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
345
384
|
}): JSX.Element;
|
|
346
385
|
|
|
347
|
-
export declare const SidebarLayout: ({ children, ...props }:
|
|
386
|
+
export declare const SidebarLayout: ({ children, ...props }: Props_5) => JSX.Element;
|
|
348
387
|
|
|
349
388
|
export declare interface SidebarProps extends React.ComponentProps<typeof Sidebar_2> {
|
|
350
389
|
brandContent: React.ReactNode;
|
|
@@ -354,11 +393,14 @@ export declare interface SidebarProps extends React.ComponentProps<typeof Sideba
|
|
|
354
393
|
bottomItemSets: SideLinkSet[];
|
|
355
394
|
}
|
|
356
395
|
|
|
396
|
+
export declare function SidebarTrigger({ className, onClick, children, ...props }: React_2.ComponentProps<typeof Button_2>): JSX.Element;
|
|
397
|
+
|
|
357
398
|
declare interface SideLink {
|
|
358
399
|
slug: string;
|
|
359
400
|
title: string;
|
|
360
401
|
icon: React.ElementType;
|
|
361
402
|
onClick?: () => void;
|
|
403
|
+
external?: boolean;
|
|
362
404
|
}
|
|
363
405
|
|
|
364
406
|
declare interface SideLinkSet {
|