@still-forest/canopy 0.19.2 → 0.19.4
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 +15 -3
- package/dist/index.js +1083 -1081
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -131,6 +131,8 @@ export declare interface ContainerProps extends BoxProps {
|
|
|
131
131
|
className?: string;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
export declare type CursorType = "arrow" | "pointer" | "text" | "not-allowed";
|
|
135
|
+
|
|
134
136
|
export declare const DateInput: ({ name, label, placeholder, note, className, ...props }: DateInputProps) => JSX.Element;
|
|
135
137
|
|
|
136
138
|
declare interface DateInputProps extends Omit<TextInputProps, "type"> {
|
|
@@ -462,7 +464,7 @@ declare interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
462
464
|
gap?: Gap;
|
|
463
465
|
}
|
|
464
466
|
|
|
465
|
-
export declare const Sidebar: ({ brandContent, brandOnClick, activeSlug, itemSets, bottomItemSets, ...props }: SidebarProps) => JSX.Element;
|
|
467
|
+
export declare const Sidebar: ({ brandContent, brandOnClick, activeSlug, itemSets, bottomItemSets, theme, setTheme, ...props }: SidebarProps) => JSX.Element;
|
|
466
468
|
|
|
467
469
|
declare function Sidebar_2({ side, variant, collapsible, className, children, ...props }: React_2.ComponentProps<"div"> & {
|
|
468
470
|
side?: "left" | "right";
|
|
@@ -477,7 +479,9 @@ export declare interface SidebarProps extends React.ComponentProps<typeof Sideba
|
|
|
477
479
|
brandOnClick?: () => void;
|
|
478
480
|
activeSlug?: string;
|
|
479
481
|
itemSets: SideLinkSet[];
|
|
480
|
-
bottomItemSets
|
|
482
|
+
bottomItemSets?: SideLinkSet[];
|
|
483
|
+
theme: Theme;
|
|
484
|
+
setTheme: (theme: Theme) => void;
|
|
481
485
|
}
|
|
482
486
|
|
|
483
487
|
export declare function SidebarTrigger({ className, onClick, children, ...props }: React_2.ComponentProps<typeof Button_2>): JSX.Element;
|
|
@@ -567,10 +571,12 @@ export declare type TextProps<E extends default_2.ElementType = "p"> = TextBaseP
|
|
|
567
571
|
|
|
568
572
|
declare type TextTracking = (typeof TEXT_TRACKINGS)[number];
|
|
569
573
|
|
|
574
|
+
export declare type Theme = "light" | "dark" | "system";
|
|
575
|
+
|
|
570
576
|
export declare const Tooltip: TooltipComponent;
|
|
571
577
|
|
|
572
578
|
declare type TooltipComponent = React.FC<TooltipProps> & {
|
|
573
|
-
Trigger: React.FC<
|
|
579
|
+
Trigger: React.FC<TriggerProps>;
|
|
574
580
|
Content: React.FC<ChildProps>;
|
|
575
581
|
};
|
|
576
582
|
|
|
@@ -580,6 +586,12 @@ declare interface TooltipProps {
|
|
|
580
586
|
onOpenChange?: (open: boolean) => void;
|
|
581
587
|
}
|
|
582
588
|
|
|
589
|
+
declare interface TriggerProps {
|
|
590
|
+
children: React.ReactNode;
|
|
591
|
+
cursor?: CursorType;
|
|
592
|
+
className?: string;
|
|
593
|
+
}
|
|
594
|
+
|
|
583
595
|
declare const TYPOGRAPHY_ELEMENTS: readonly ["p", "span", "label", "div", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
584
596
|
|
|
585
597
|
declare const TYPOGRAPHY_VARIANTS: readonly ["default", "inherit", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive"];
|