@still-forest/canopy 0.54.0 → 0.55.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/LICENSE +1 -1
- package/dist/index.d.ts +39 -99
- package/dist/index.js +16173 -14345
- package/package.json +6 -7
package/LICENSE
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { Accordion as Accordion_3 } from '
|
|
1
|
+
import { Accordion as Accordion_3 } from '@base-ui/react/accordion';
|
|
2
2
|
import { Button as Button_3 } from '@base-ui/react/button';
|
|
3
|
-
import { Checkbox as Checkbox_3 } from '
|
|
3
|
+
import { Checkbox as Checkbox_3 } from '@base-ui/react/checkbox';
|
|
4
4
|
import { ClassProp } from 'class-variance-authority/types';
|
|
5
5
|
import { ClassValue } from 'clsx';
|
|
6
|
-
import { Collapsible as Collapsible_3 } from '
|
|
6
|
+
import { Collapsible as Collapsible_3 } from '@base-ui/react/collapsible';
|
|
7
7
|
import { ComponentProps } from 'react';
|
|
8
8
|
import { default as default_2 } from 'react';
|
|
9
9
|
import { Dialog as Dialog_3 } from '@base-ui/react/dialog';
|
|
10
10
|
import { JSX } from 'react/jsx-runtime';
|
|
11
|
+
import { JSXElementConstructor } from 'react';
|
|
11
12
|
import { Popover as Popover_3 } from '@base-ui/react/popover';
|
|
12
13
|
import * as React_2 from 'react';
|
|
13
14
|
import { ReactElement } from 'react';
|
|
14
15
|
import { ReactNode } from 'react';
|
|
15
|
-
import { Slider as Slider_3 } from '
|
|
16
|
-
import { Switch as Switch_3 } from '
|
|
17
|
-
import { Tabs as Tabs_2 } from '
|
|
16
|
+
import { Slider as Slider_3 } from '@base-ui/react/slider';
|
|
17
|
+
import { Switch as Switch_3 } from '@base-ui/react/switch';
|
|
18
|
+
import { Tabs as Tabs_2 } from '@base-ui/react/tabs';
|
|
18
19
|
import { Tooltip as Tooltip_3 } from '@base-ui/react/tooltip';
|
|
20
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
19
21
|
import { VariantProps } from 'class-variance-authority';
|
|
20
22
|
|
|
21
23
|
export declare const Accordion: AccordionComponent;
|
|
22
24
|
|
|
23
|
-
declare function Accordion_2({ ...props }:
|
|
25
|
+
declare function Accordion_2({ className, ...props }: Accordion_3.Root.Props): JSX.Element;
|
|
24
26
|
|
|
25
27
|
declare type AccordionComponent = React.FC<AccordionProps> & {
|
|
26
28
|
Item: React.FC<AccordionItemProps>;
|
|
@@ -28,11 +30,13 @@ declare type AccordionComponent = React.FC<AccordionProps> & {
|
|
|
28
30
|
Content: React.FC<AccordionContentProps>;
|
|
29
31
|
};
|
|
30
32
|
|
|
31
|
-
declare function AccordionContent({ className, children, ...props }:
|
|
33
|
+
declare function AccordionContent({ className, contentClassName, children, ...props }: Accordion_3.Panel.Props & {
|
|
34
|
+
contentClassName?: string;
|
|
35
|
+
}): JSX.Element;
|
|
32
36
|
|
|
33
37
|
declare type AccordionContentProps = React.ComponentProps<typeof AccordionContent>;
|
|
34
38
|
|
|
35
|
-
declare function AccordionItem({ className, ...props }:
|
|
39
|
+
declare function AccordionItem({ className, ...props }: Accordion_3.Item.Props): JSX.Element;
|
|
36
40
|
|
|
37
41
|
declare type AccordionItemProps = React.ComponentProps<typeof AccordionItem>;
|
|
38
42
|
|
|
@@ -40,7 +44,7 @@ export declare type AccordionProps = React.ComponentProps<typeof Accordion_2> &
|
|
|
40
44
|
children: ReactNode;
|
|
41
45
|
};
|
|
42
46
|
|
|
43
|
-
declare function AccordionTrigger({ className, children, ...props }:
|
|
47
|
+
declare function AccordionTrigger({ className, children, ...props }: Accordion_3.Trigger.Props): JSX.Element;
|
|
44
48
|
|
|
45
49
|
declare type AccordionTriggerProps = React.ComponentProps<typeof AccordionTrigger>;
|
|
46
50
|
|
|
@@ -56,11 +60,9 @@ export declare interface AlertProps {
|
|
|
56
60
|
|
|
57
61
|
declare type AlertVariant = "info" | "success" | "warning" | "error";
|
|
58
62
|
|
|
59
|
-
export declare const Badge: ({ label, onClick, className, variant, color, children, ...props }: BadgeProps) => JSX.Element;
|
|
63
|
+
export declare const Badge: ({ label, onClick, className, variant, color, children, render, ...props }: BadgeProps) => JSX.Element;
|
|
60
64
|
|
|
61
|
-
declare function Badge_2({ className, variant,
|
|
62
|
-
asChild?: boolean;
|
|
63
|
-
}): JSX.Element;
|
|
65
|
+
declare function Badge_2({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
64
66
|
|
|
65
67
|
export declare interface BadgeProps extends React.ComponentProps<typeof Badge_2> {
|
|
66
68
|
variant?: BadgeVariant;
|
|
@@ -74,7 +76,7 @@ export declare interface BadgeProps extends React.ComponentProps<typeof Badge_2>
|
|
|
74
76
|
declare type BadgeVariant = AlertVariant | "default" | "secondary" | "destructive" | "outline";
|
|
75
77
|
|
|
76
78
|
declare const badgeVariants: (props?: ({
|
|
77
|
-
variant?: "info" | "success" | "warning" | "error" | "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
79
|
+
variant?: "link" | "info" | "success" | "warning" | "error" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
78
80
|
} & ClassProp) | undefined) => string;
|
|
79
81
|
|
|
80
82
|
export declare type BaseButtonSize = "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "unstyled";
|
|
@@ -222,7 +224,7 @@ declare type CardTitleProps = React.ComponentProps<typeof CardTitle>;
|
|
|
222
224
|
|
|
223
225
|
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange, note, error, labelClassName, hint, ...props }: CheckboxProps) => JSX.Element;
|
|
224
226
|
|
|
225
|
-
declare function Checkbox_2({ className, ...props }:
|
|
227
|
+
declare function Checkbox_2({ className, ...props }: Checkbox_3.Root.Props): JSX.Element;
|
|
226
228
|
|
|
227
229
|
export declare interface CheckboxProps extends React.ComponentProps<typeof Checkbox_2> {
|
|
228
230
|
label: string;
|
|
@@ -242,20 +244,20 @@ export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
|
|
|
242
244
|
|
|
243
245
|
export declare const Collapsible: CollapsibleComponent;
|
|
244
246
|
|
|
245
|
-
declare function Collapsible_2({ ...props }:
|
|
247
|
+
declare function Collapsible_2({ ...props }: Collapsible_3.Root.Props): JSX.Element;
|
|
246
248
|
|
|
247
249
|
declare type CollapsibleComponent = React.FC<CollapsibleProps> & {
|
|
248
250
|
Trigger: React.FC<CollapsibleTriggerProps>;
|
|
249
251
|
Content: React.FC<CollapsibleContentProps>;
|
|
250
252
|
};
|
|
251
253
|
|
|
252
|
-
declare function CollapsibleContent({ ...props }:
|
|
254
|
+
declare function CollapsibleContent({ ...props }: Collapsible_3.Panel.Props): JSX.Element;
|
|
253
255
|
|
|
254
256
|
declare type CollapsibleContentProps = React.ComponentProps<typeof CollapsibleContent>;
|
|
255
257
|
|
|
256
258
|
export declare type CollapsibleProps = React.ComponentProps<typeof Collapsible_2>;
|
|
257
259
|
|
|
258
|
-
declare function CollapsibleTrigger({ ...props }:
|
|
260
|
+
declare function CollapsibleTrigger({ ...props }: Collapsible_3.Trigger.Props): JSX.Element;
|
|
259
261
|
|
|
260
262
|
declare type CollapsibleTriggerProps = React.ComponentProps<typeof CollapsibleTrigger>;
|
|
261
263
|
|
|
@@ -596,9 +598,7 @@ export declare interface InterstitialProps {
|
|
|
596
598
|
|
|
597
599
|
export declare const Item: ItemComponent;
|
|
598
600
|
|
|
599
|
-
declare function Item_2({ className, variant, size,
|
|
600
|
-
asChild?: boolean;
|
|
601
|
-
}): JSX.Element;
|
|
601
|
+
declare function Item_2({ className, variant, size, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React_2.ReactElement<unknown, string | React_2.JSXElementConstructor<any>>;
|
|
602
602
|
|
|
603
603
|
declare function ItemActions({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
604
604
|
|
|
@@ -650,7 +650,7 @@ declare type ItemTitleProps = React.ComponentProps<typeof ItemTitle>;
|
|
|
650
650
|
|
|
651
651
|
declare const itemVariants: (props?: ({
|
|
652
652
|
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
653
|
-
size?: "default" | "sm" | null | undefined;
|
|
653
|
+
size?: "default" | "xs" | "sm" | null | undefined;
|
|
654
654
|
} & ClassProp) | undefined) => string;
|
|
655
655
|
|
|
656
656
|
export declare const Label: ({ htmlFor, value, children, size, className, ...props }: LabelProps) => JSX.Element;
|
|
@@ -883,7 +883,7 @@ declare interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
883
883
|
|
|
884
884
|
export declare const Sidebar: ({ brandContent, brandOnClick, activeSlug, itemSets, bottomItemSets, theme, setTheme, ...props }: SidebarProps) => JSX.Element;
|
|
885
885
|
|
|
886
|
-
declare function Sidebar_2({ side, variant, collapsible, className, children, ...props }: React_2.ComponentProps<"div"> & {
|
|
886
|
+
declare function Sidebar_2({ side, variant, collapsible, className, children, dir, ...props }: React_2.ComponentProps<"div"> & {
|
|
887
887
|
side?: "left" | "right";
|
|
888
888
|
variant?: "sidebar" | "floating" | "inset";
|
|
889
889
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
@@ -931,7 +931,7 @@ export declare function Skeleton({ className, ...props }: React.ComponentProps<"
|
|
|
931
931
|
|
|
932
932
|
export declare const Slider: ({ name, size, label, labelClassName, labelOrientation, hint, note, error, thumbClassName, trackClassName, value: valueProp, defaultValue: defaultValueProp, ...props }: SliderProps) => JSX.Element;
|
|
933
933
|
|
|
934
|
-
declare function Slider_2({ className,
|
|
934
|
+
declare function Slider_2({ className, defaultValue, value, min, max, thumbClassName, trackClassName, ...props }: SliderProps_2): JSX.Element;
|
|
935
935
|
|
|
936
936
|
declare interface SliderProps extends Omit<React.ComponentProps<typeof Slider_2>, "value" | "defaultValue"> {
|
|
937
937
|
name: string;
|
|
@@ -948,9 +948,9 @@ declare interface SliderProps extends Omit<React.ComponentProps<typeof Slider_2>
|
|
|
948
948
|
defaultValue?: number | number[];
|
|
949
949
|
}
|
|
950
950
|
|
|
951
|
-
declare interface SliderProps_2 extends
|
|
952
|
-
trackClassName?: string;
|
|
951
|
+
declare interface SliderProps_2 extends Slider_3.Root.Props {
|
|
953
952
|
thumbClassName?: string;
|
|
953
|
+
trackClassName?: string;
|
|
954
954
|
}
|
|
955
955
|
|
|
956
956
|
export declare const SubmitButton: ({ submitting, disabled, submittingIcon, action, label: customLabel, submittingLabel: customSubmittingLabel, icon: customIcon, noIcon, ...rest }: SubmitButtonProps) => JSX.Element;
|
|
@@ -966,10 +966,10 @@ export declare interface SubmitButtonProps extends Omit<ButtonProps, "icon"> {
|
|
|
966
966
|
noIcon?: boolean;
|
|
967
967
|
}
|
|
968
968
|
|
|
969
|
-
export declare const Switch: ({ id: idProp, label, className,
|
|
969
|
+
export declare const Switch: ({ id: idProp, label, className, labelClassName, size, ...props }: SwitchProps) => JSX.Element;
|
|
970
970
|
|
|
971
|
-
declare function Switch_2({ className,
|
|
972
|
-
|
|
971
|
+
declare function Switch_2({ className, size, ...props }: Switch_3.Root.Props & {
|
|
972
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
973
973
|
}): JSX.Element;
|
|
974
974
|
|
|
975
975
|
declare interface SwitchProps extends React.ComponentProps<typeof Switch_2> {
|
|
@@ -1002,13 +1002,17 @@ export declare function TableHeader({ className, ...props }: React_2.ComponentPr
|
|
|
1002
1002
|
|
|
1003
1003
|
export declare function TableRow({ className, ...props }: React_2.ComponentProps<"tr">): JSX.Element;
|
|
1004
1004
|
|
|
1005
|
-
export declare function Tabs({ className, ...props }:
|
|
1005
|
+
export declare function Tabs({ className, orientation, ...props }: Tabs_2.Root.Props): JSX.Element;
|
|
1006
1006
|
|
|
1007
|
-
export declare function TabsContent({ className, ...props }:
|
|
1007
|
+
export declare function TabsContent({ className, ...props }: Tabs_2.Panel.Props): JSX.Element;
|
|
1008
1008
|
|
|
1009
|
-
export declare function TabsList({ className, ...props }:
|
|
1009
|
+
export declare function TabsList({ className, variant, ...props }: Tabs_2.List.Props & VariantProps<typeof tabsListVariants>): JSX.Element;
|
|
1010
|
+
|
|
1011
|
+
declare const tabsListVariants: (props?: ({
|
|
1012
|
+
variant?: "line" | "default" | null | undefined;
|
|
1013
|
+
} & ClassProp) | undefined) => string;
|
|
1010
1014
|
|
|
1011
|
-
export declare function TabsTrigger({ className, ...props }:
|
|
1015
|
+
export declare function TabsTrigger({ className, ...props }: Tabs_2.Tab.Props): JSX.Element;
|
|
1012
1016
|
|
|
1013
1017
|
export declare const TAILWIND_COLORS: readonly ["red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia", "pink", "rose", "slate", "gray", "zinc", "neutral", "stone", "white", "black"];
|
|
1014
1018
|
|
|
@@ -1088,9 +1092,8 @@ declare type TextListItemProps = React.ComponentProps<"li"> & {
|
|
|
1088
1092
|
};
|
|
1089
1093
|
|
|
1090
1094
|
declare type TextListProps = React.ComponentProps<"ul"> & {
|
|
1091
|
-
type?: "ordered" | "unordered" | "none";
|
|
1092
1095
|
position?: "inside" | "outside";
|
|
1093
|
-
variant?:
|
|
1096
|
+
variant?: "ordered" | "unordered" | "none";
|
|
1094
1097
|
children: ReactNode;
|
|
1095
1098
|
};
|
|
1096
1099
|
|
|
@@ -1113,69 +1116,6 @@ export declare interface ThemeSelectorProps {
|
|
|
1113
1116
|
buttonClassName?: string;
|
|
1114
1117
|
}
|
|
1115
1118
|
|
|
1116
|
-
export declare const Timeline: TimelineComponent;
|
|
1117
|
-
|
|
1118
|
-
declare function Timeline_2({ defaultValue, value, onValueChange, orientation, className, ...props }: TimelineProps_2): JSX.Element;
|
|
1119
|
-
|
|
1120
|
-
declare type TimelineComponent = React.FC<TimelineProps> & {
|
|
1121
|
-
Item: React.FC<TimelineItemProps>;
|
|
1122
|
-
Header: React.FC<TimelineHeaderProps>;
|
|
1123
|
-
Separator: React.FC<TimelineSeparatorProps>;
|
|
1124
|
-
Date: React.FC<TimelineDateProps>;
|
|
1125
|
-
Title: React.FC<TimelineTitleProps>;
|
|
1126
|
-
Indicator: React.FC<TimelineIndicatorProps>;
|
|
1127
|
-
Content: React.FC<TimelineContentProps>;
|
|
1128
|
-
};
|
|
1129
|
-
|
|
1130
|
-
declare function TimelineContent({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
1131
|
-
|
|
1132
|
-
declare type TimelineContentProps = React.ComponentProps<typeof TimelineContent>;
|
|
1133
|
-
|
|
1134
|
-
declare function TimelineDate({ asChild, className, ...props }: TimelineDateProps_2): JSX.Element;
|
|
1135
|
-
|
|
1136
|
-
declare type TimelineDateProps = React.ComponentProps<typeof TimelineDate>;
|
|
1137
|
-
|
|
1138
|
-
declare interface TimelineDateProps_2 extends React_2.HTMLAttributes<HTMLTimeElement> {
|
|
1139
|
-
asChild?: boolean;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
declare function TimelineHeader({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
1143
|
-
|
|
1144
|
-
declare type TimelineHeaderProps = React.ComponentProps<typeof TimelineHeader>;
|
|
1145
|
-
|
|
1146
|
-
declare function TimelineIndicator({ asChild, className, children, ...props }: TimelineIndicatorProps_2): JSX.Element;
|
|
1147
|
-
|
|
1148
|
-
declare type TimelineIndicatorProps = React.ComponentProps<typeof TimelineIndicator>;
|
|
1149
|
-
|
|
1150
|
-
declare interface TimelineIndicatorProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1151
|
-
asChild?: boolean;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
declare function TimelineItem({ step, className, ...props }: TimelineItemProps_2): JSX.Element;
|
|
1155
|
-
|
|
1156
|
-
declare type TimelineItemProps = React.ComponentProps<typeof TimelineItem>;
|
|
1157
|
-
|
|
1158
|
-
declare interface TimelineItemProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1159
|
-
step: number;
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
export declare type TimelineProps = React.ComponentProps<typeof Timeline_2> & {
|
|
1163
|
-
children: ReactNode;
|
|
1164
|
-
};
|
|
1165
|
-
|
|
1166
|
-
declare interface TimelineProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1167
|
-
defaultValue?: number;
|
|
1168
|
-
value?: number;
|
|
1169
|
-
onValueChange?: (value: number) => void;
|
|
1170
|
-
orientation?: "horizontal" | "vertical";
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
declare function TimelineSeparator({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
1174
|
-
|
|
1175
|
-
declare type TimelineSeparatorProps = React.ComponentProps<typeof TimelineSeparator>;
|
|
1176
|
-
|
|
1177
|
-
declare type TimelineTitleProps = React.ComponentProps<typeof Heading>;
|
|
1178
|
-
|
|
1179
1119
|
export declare const Tooltip: TooltipComponent;
|
|
1180
1120
|
|
|
1181
1121
|
declare function Tooltip_2({ ...props }: Tooltip_3.Root.Props): JSX.Element;
|