@still-forest/canopy 0.16.1 → 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 +34 -6
- package/dist/index.js +5284 -5133
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,13 @@ export declare interface BoxProps extends default_2.HTMLAttributes<HTMLDivElemen
|
|
|
26
26
|
|
|
27
27
|
declare type BoxSizing = (typeof BOX_SIZINGS)[number];
|
|
28
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
|
+
|
|
29
36
|
export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, ...rest }: ButtonProps) => JSX.Element;
|
|
30
37
|
|
|
31
38
|
declare function Button_2({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -96,7 +103,7 @@ declare interface DatePickerProps {
|
|
|
96
103
|
size?: "default" | "xs" | "sm" | "lg";
|
|
97
104
|
}
|
|
98
105
|
|
|
99
|
-
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }:
|
|
106
|
+
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props_3) => JSX.Element;
|
|
100
107
|
|
|
101
108
|
declare type Display = (typeof DISPLAYS)[number];
|
|
102
109
|
|
|
@@ -250,6 +257,8 @@ export declare const MenuItemText: ({ children }: {
|
|
|
250
257
|
children: React.ReactNode;
|
|
251
258
|
}) => JSX.Element;
|
|
252
259
|
|
|
260
|
+
export declare const Modal: ({ trigger, children, title, description }: Props_2) => JSX.Element;
|
|
261
|
+
|
|
253
262
|
/**
|
|
254
263
|
+ * A specialized input component for numeric values.
|
|
255
264
|
+ * Extends TextInput with number-specific functionality.
|
|
@@ -279,18 +288,37 @@ declare type Position = (typeof POSITIONS)[number];
|
|
|
279
288
|
|
|
280
289
|
declare const POSITIONS: readonly ["static", "fixed", "absolute", "relative", "sticky"];
|
|
281
290
|
|
|
282
|
-
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 {
|
|
283
311
|
disabled?: boolean;
|
|
284
312
|
handleDelete: () => void;
|
|
285
313
|
}
|
|
286
314
|
|
|
287
|
-
declare interface
|
|
315
|
+
declare interface Props_4 extends ButtonProps {
|
|
288
316
|
submitting?: boolean;
|
|
289
317
|
disabled?: boolean;
|
|
290
318
|
submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
291
319
|
}
|
|
292
320
|
|
|
293
|
-
declare interface
|
|
321
|
+
declare interface Props_5 extends SidebarProps {
|
|
294
322
|
children?: React.ReactNode;
|
|
295
323
|
}
|
|
296
324
|
|
|
@@ -308,7 +336,7 @@ declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2x
|
|
|
308
336
|
|
|
309
337
|
declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
|
|
310
338
|
|
|
311
|
-
export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }:
|
|
339
|
+
export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_4) => JSX.Element;
|
|
312
340
|
|
|
313
341
|
export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onValueChange, ...props }: SelectInputProps) => JSX.Element;
|
|
314
342
|
|
|
@@ -355,7 +383,7 @@ declare function Sidebar_2({ side, variant, collapsible, className, children, ..
|
|
|
355
383
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
356
384
|
}): JSX.Element;
|
|
357
385
|
|
|
358
|
-
export declare const SidebarLayout: ({ children, ...props }:
|
|
386
|
+
export declare const SidebarLayout: ({ children, ...props }: Props_5) => JSX.Element;
|
|
359
387
|
|
|
360
388
|
export declare interface SidebarProps extends React.ComponentProps<typeof Sidebar_2> {
|
|
361
389
|
brandContent: React.ReactNode;
|