@still-forest/canopy 0.15.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
 
@@ -234,6 +235,10 @@ declare const LAYOUT_VARIANTS: readonly ["default", "primary", "secondary", "mut
234
235
 
235
236
  declare type LayoutVariant = (typeof LAYOUT_VARIANTS)[number];
236
237
 
238
+ export declare const MenuItemText: ({ children }: {
239
+ children: React.ReactNode;
240
+ }) => JSX.Element;
241
+
237
242
  /**
238
243
  + * A specialized input component for numeric values.
239
244
  + * Extends TextInput with number-specific functionality.
@@ -274,6 +279,10 @@ declare interface Props_2 extends ButtonProps {
274
279
  submittingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
275
280
  }
276
281
 
282
+ declare interface Props_3 extends SidebarProps {
283
+ children?: React.ReactNode;
284
+ }
285
+
277
286
  export declare const RadioSelect: ({ label, name, options, value, onChange }: RadioSelectProps) => JSX.Element;
278
287
 
279
288
  declare interface RadioSelectProps {
@@ -327,6 +336,35 @@ declare interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
327
336
  gap?: Gap;
328
337
  }
329
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
+
330
368
  declare type Size = (typeof SIZES)[number];
331
369
 
332
370
  declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];