@still-forest/canopy 0.16.1 → 0.18.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 CHANGED
@@ -3,6 +3,7 @@ import { ComponentProps } from 'react';
3
3
  import { default as default_2 } from 'react';
4
4
  import { JSX } from 'react/jsx-runtime';
5
5
  import * as React_2 from 'react';
6
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
6
7
  import { VariantProps } from 'class-variance-authority';
7
8
 
8
9
  export declare const Box: default_2.ForwardRefExoticComponent<BoxProps & default_2.RefAttributes<HTMLDivElement>>;
@@ -26,6 +27,13 @@ export declare interface BoxProps extends default_2.HTMLAttributes<HTMLDivElemen
26
27
 
27
28
  declare type BoxSizing = (typeof BOX_SIZINGS)[number];
28
29
 
30
+ export declare const Breadcrumbs: ({ breadcrumbs, linkComponent, pageComponent, className }: Props) => JSX.Element;
31
+
32
+ export declare interface BreadcrumbType {
33
+ label: string;
34
+ to?: string;
35
+ }
36
+
29
37
  export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, ...rest }: ButtonProps) => JSX.Element;
30
38
 
31
39
  declare function Button_2({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
@@ -96,7 +104,7 @@ declare interface DatePickerProps {
96
104
  size?: "default" | "xs" | "sm" | "lg";
97
105
  }
98
106
 
99
- export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props) => JSX.Element;
107
+ export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props_3) => JSX.Element;
100
108
 
101
109
  declare type Display = (typeof DISPLAYS)[number];
102
110
 
@@ -250,6 +258,8 @@ export declare const MenuItemText: ({ children }: {
250
258
  children: React.ReactNode;
251
259
  }) => JSX.Element;
252
260
 
261
+ export declare const Modal: ({ trigger, children, title, description }: Props_2) => JSX.Element;
262
+
253
263
  /**
254
264
  + * A specialized input component for numeric values.
255
265
  + * Extends TextInput with number-specific functionality.
@@ -279,18 +289,37 @@ declare type Position = (typeof POSITIONS)[number];
279
289
 
280
290
  declare const POSITIONS: readonly ["static", "fixed", "absolute", "relative", "sticky"];
281
291
 
282
- declare interface Props extends ButtonProps {
292
+ declare interface Props {
293
+ breadcrumbs: BreadcrumbType[];
294
+ linkComponent?: React.ComponentType<{
295
+ to: string;
296
+ label: string;
297
+ }>;
298
+ pageComponent?: React.ComponentType<{
299
+ label: string;
300
+ }>;
301
+ className?: string;
302
+ }
303
+
304
+ declare interface Props_2 {
305
+ trigger: React.ReactNode;
306
+ children: React.ReactNode;
307
+ title?: string;
308
+ description?: string;
309
+ }
310
+
311
+ declare interface Props_3 extends ButtonProps {
283
312
  disabled?: boolean;
284
313
  handleDelete: () => void;
285
314
  }
286
315
 
287
- declare interface Props_2 extends ButtonProps {
316
+ declare interface Props_4 extends ButtonProps {
288
317
  submitting?: boolean;
289
318
  disabled?: boolean;
290
319
  submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
291
320
  }
292
321
 
293
- declare interface Props_3 extends SidebarProps {
322
+ declare interface Props_5 extends SidebarProps {
294
323
  children?: React.ReactNode;
295
324
  }
296
325
 
@@ -308,7 +337,7 @@ declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2x
308
337
 
309
338
  declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
310
339
 
311
- export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_2) => JSX.Element;
340
+ export declare const SaveButton: ({ submitting, disabled, submittingIcon, ...rest }: Props_4) => JSX.Element;
312
341
 
313
342
  export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onValueChange, ...props }: SelectInputProps) => JSX.Element;
314
343
 
@@ -355,7 +384,7 @@ declare function Sidebar_2({ side, variant, collapsible, className, children, ..
355
384
  collapsible?: "offcanvas" | "icon" | "none";
356
385
  }): JSX.Element;
357
386
 
358
- export declare const SidebarLayout: ({ children, ...props }: Props_3) => JSX.Element;
387
+ export declare const SidebarLayout: ({ children, ...props }: Props_5) => JSX.Element;
359
388
 
360
389
  export declare interface SidebarProps extends React.ComponentProps<typeof Sidebar_2> {
361
390
  brandContent: React.ReactNode;
@@ -383,6 +412,14 @@ declare type Size = (typeof SIZES)[number];
383
412
 
384
413
  declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
385
414
 
415
+ export declare function Tabs({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
416
+
417
+ export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;
418
+
419
+ export declare function TabsList({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.List>): JSX.Element;
420
+
421
+ export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
422
+
386
423
  declare const Text_2: default_2.ForwardRefExoticComponent<Omit<any, "ref"> & default_2.RefAttributes<Element>>;
387
424
  export { Text_2 as Text }
388
425