@still-forest/canopy 0.14.0 → 0.16.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
@@ -1,6 +1,7 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { default as default_2 } from 'react';
3
3
  import { JSX } from 'react/jsx-runtime';
4
+ import * as React_2 from 'react';
4
5
 
5
6
  export declare const Box: default_2.ForwardRefExoticComponent<BoxProps & default_2.RefAttributes<HTMLDivElement>>;
6
7
 
@@ -57,6 +58,10 @@ export declare interface CheckboxProps {
57
58
  onCheckedChange?: (checked: boolean) => void;
58
59
  }
59
60
 
61
+ declare interface ChildProps {
62
+ children: React.ReactNode;
63
+ }
64
+
60
65
  export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
61
66
 
62
67
  export declare const Container: ({ children, className, ...props }: ContainerProps) => JSX.Element;
@@ -230,6 +235,10 @@ declare const LAYOUT_VARIANTS: readonly ["default", "primary", "secondary", "mut
230
235
 
231
236
  declare type LayoutVariant = (typeof LAYOUT_VARIANTS)[number];
232
237
 
238
+ export declare const MenuItemText: ({ children }: {
239
+ children: React.ReactNode;
240
+ }) => JSX.Element;
241
+
233
242
  /**
234
243
  + * A specialized input component for numeric values.
235
244
  + * Extends TextInput with number-specific functionality.
@@ -270,6 +279,10 @@ declare interface Props_2 extends ButtonProps {
270
279
  submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
271
280
  }
272
281
 
282
+ declare interface Props_3 extends SidebarProps {
283
+ children?: React.ReactNode;
284
+ }
285
+
273
286
  export declare const RadioSelect: ({ label, name, options, value, onChange }: RadioSelectProps) => JSX.Element;
274
287
 
275
288
  declare interface RadioSelectProps {
@@ -316,6 +329,42 @@ export declare interface SelectPickerProps {
316
329
  renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
317
330
  }
318
331
 
332
+ export declare const Separator: ({ className, orientation, gap, ...props }: SeparatorProps) => JSX.Element;
333
+
334
+ declare interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
335
+ orientation?: "horizontal" | "vertical";
336
+ gap?: Gap;
337
+ }
338
+
339
+ export declare const Sidebar: ({ brandContent, brandOnClick, activeSlug, itemSets, bottomItemSets, ...props }: SidebarProps) => JSX.Element;
340
+
341
+ declare function Sidebar_2({ side, variant, collapsible, className, children, ...props }: React_2.ComponentProps<"div"> & {
342
+ side?: "left" | "right";
343
+ variant?: "sidebar" | "floating" | "inset";
344
+ collapsible?: "offcanvas" | "icon" | "none";
345
+ }): JSX.Element;
346
+
347
+ export declare const SidebarLayout: ({ children, ...props }: Props_3) => JSX.Element;
348
+
349
+ export declare interface SidebarProps extends React.ComponentProps<typeof Sidebar_2> {
350
+ brandContent: React.ReactNode;
351
+ brandOnClick?: () => void;
352
+ activeSlug?: string;
353
+ itemSets: SideLinkSet[];
354
+ bottomItemSets: SideLinkSet[];
355
+ }
356
+
357
+ declare interface SideLink {
358
+ slug: string;
359
+ title: string;
360
+ icon: React.ElementType;
361
+ onClick?: () => void;
362
+ }
363
+
364
+ declare interface SideLinkSet {
365
+ links: SideLink[];
366
+ }
367
+
319
368
  declare type Size = (typeof SIZES)[number];
320
369
 
321
370
  declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
@@ -379,6 +428,19 @@ export declare type TextProps<E extends default_2.ElementType = "p"> = TextBaseP
379
428
 
380
429
  declare type TextTracking = (typeof TEXT_TRACKINGS)[number];
381
430
 
431
+ export declare const Tooltip: TooltipComponent;
432
+
433
+ declare type TooltipComponent = React.FC<TooltipProps> & {
434
+ Trigger: React.FC<ChildProps>;
435
+ Content: React.FC<ChildProps>;
436
+ };
437
+
438
+ declare interface TooltipProps {
439
+ children: React.ReactNode;
440
+ open?: boolean;
441
+ onOpenChange?: (open: boolean) => void;
442
+ }
443
+
382
444
  declare const TYPOGRAPHY_ELEMENTS: readonly ["p", "span", "label", "div", "h1", "h2", "h3", "h4", "h5", "h6"];
383
445
 
384
446
  declare const TYPOGRAPHY_VARIANTS: readonly ["default", "inherit", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive"];