@still-forest/canopy 0.53.0 → 0.54.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 +61 -33
- package/dist/index.js +11918 -8355
- package/package.json +12 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { Accordion as Accordion_3 } from 'radix-ui';
|
|
2
|
+
import { Button as Button_3 } from '@base-ui/react/button';
|
|
2
3
|
import { Checkbox as Checkbox_3 } from 'radix-ui';
|
|
3
4
|
import { ClassProp } from 'class-variance-authority/types';
|
|
4
5
|
import { ClassValue } from 'clsx';
|
|
5
6
|
import { Collapsible as Collapsible_3 } from 'radix-ui';
|
|
6
7
|
import { ComponentProps } from 'react';
|
|
7
8
|
import { default as default_2 } from 'react';
|
|
9
|
+
import { Dialog as Dialog_3 } from '@base-ui/react/dialog';
|
|
8
10
|
import { JSX } from 'react/jsx-runtime';
|
|
9
|
-
import { Popover as Popover_3 } from '
|
|
11
|
+
import { Popover as Popover_3 } from '@base-ui/react/popover';
|
|
10
12
|
import * as React_2 from 'react';
|
|
11
13
|
import { ReactElement } from 'react';
|
|
12
14
|
import { ReactNode } from 'react';
|
|
13
15
|
import { Slider as Slider_3 } from 'radix-ui';
|
|
14
16
|
import { Switch as Switch_3 } from 'radix-ui';
|
|
15
17
|
import { Tabs as Tabs_2 } from 'radix-ui';
|
|
16
|
-
import { Tooltip as Tooltip_3 } from '
|
|
18
|
+
import { Tooltip as Tooltip_3 } from '@base-ui/react/tooltip';
|
|
17
19
|
import { VariantProps } from 'class-variance-authority';
|
|
18
20
|
|
|
19
21
|
export declare const Accordion: AccordionComponent;
|
|
@@ -123,11 +125,9 @@ declare type BulletListItemProps = ComponentProps<typeof Text_2>;
|
|
|
123
125
|
|
|
124
126
|
declare type BulletListProps = ComponentProps<"ul">;
|
|
125
127
|
|
|
126
|
-
export declare const Button: ({ label, children, onClick, variant, size, icon, asIcon, disabled, className, type,
|
|
128
|
+
export declare const Button: ({ label, children, onClick, variant, size, icon, asIcon, disabled, className, type, full, fit, rounded, render, ...rest }: ButtonProps) => JSX.Element;
|
|
127
129
|
|
|
128
|
-
declare function Button_2({ className, variant, size,
|
|
129
|
-
asChild?: boolean;
|
|
130
|
-
}): JSX.Element;
|
|
130
|
+
declare function Button_2({ className, variant, size, ...props }: Button_3.Props & VariantProps<typeof buttonVariants>): JSX.Element;
|
|
131
131
|
|
|
132
132
|
export declare const ButtonGroup: {
|
|
133
133
|
({ children, className, ...props }: ButtonGroupProps): JSX.Element;
|
|
@@ -139,21 +139,21 @@ export declare interface ButtonGroupProps extends default_2.ComponentPropsWithou
|
|
|
139
139
|
className?: string;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
export declare interface ButtonProps extends
|
|
142
|
+
export declare interface ButtonProps extends React.ComponentProps<"button"> {
|
|
143
143
|
label?: string;
|
|
144
|
-
children?:
|
|
144
|
+
children?: React.ReactNode;
|
|
145
145
|
onClick?: () => void;
|
|
146
146
|
variant?: ButtonVariant;
|
|
147
147
|
size?: "default" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
148
|
-
icon?:
|
|
148
|
+
icon?: ReactElement;
|
|
149
149
|
asIcon?: boolean;
|
|
150
150
|
disabled?: boolean;
|
|
151
151
|
className?: string;
|
|
152
152
|
type?: "button" | "submit" | "reset";
|
|
153
153
|
fit?: boolean;
|
|
154
154
|
full?: boolean;
|
|
155
|
-
asChild?: boolean;
|
|
156
155
|
rounded?: boolean;
|
|
156
|
+
render?: React.ComponentProps<typeof Button_2>["render"];
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
export declare const ButtonSelectInput: ({ name, label, hint, options, error, note, secondaryOptions, value, onChange, buttonClassName, secondaryButtonClassName, className: groupClassName, ...props }: ButtonSelectInputProps) => JSX.Element;
|
|
@@ -176,7 +176,7 @@ export declare type ButtonVariant = "default" | "primary" | "secondary" | "destr
|
|
|
176
176
|
|
|
177
177
|
declare const buttonVariants: (props?: ({
|
|
178
178
|
variant?: "link" | "info" | "success" | "warning" | "error" | "default" | "secondary" | "destructive" | "outline" | "ghost" | "unstyled" | null | undefined;
|
|
179
|
-
size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "
|
|
179
|
+
size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | "unstyled" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
180
180
|
} & ClassProp) | undefined) => string;
|
|
181
181
|
|
|
182
182
|
export declare const Card: CardComponent;
|
|
@@ -297,6 +297,41 @@ declare interface DatePickerProps {
|
|
|
297
297
|
|
|
298
298
|
export declare const DeleteButton: ({ icon, disabled, handleDelete, ...rest }: Props_4) => JSX.Element;
|
|
299
299
|
|
|
300
|
+
export declare const Dialog: {
|
|
301
|
+
(props: ComponentProps<typeof Dialog_2>): JSX.Element;
|
|
302
|
+
Close: typeof DialogClose;
|
|
303
|
+
Content: typeof DialogContent;
|
|
304
|
+
Description: typeof DialogDescription;
|
|
305
|
+
Footer: typeof DialogFooter;
|
|
306
|
+
Header: typeof DialogHeader;
|
|
307
|
+
Overlay: typeof DialogOverlay;
|
|
308
|
+
Portal: typeof DialogPortal;
|
|
309
|
+
Title: typeof DialogTitle;
|
|
310
|
+
Trigger: ({ children, render, ...props }: Dialog_3.Trigger.Props & ButtonProps) => JSX.Element;
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
declare function Dialog_2({ ...props }: Dialog_3.Root.Props): JSX.Element;
|
|
314
|
+
|
|
315
|
+
declare function DialogClose({ ...props }: Dialog_3.Close.Props): JSX.Element;
|
|
316
|
+
|
|
317
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: Dialog_3.Popup.Props & {
|
|
318
|
+
showCloseButton?: boolean;
|
|
319
|
+
}): JSX.Element;
|
|
320
|
+
|
|
321
|
+
declare function DialogDescription({ className, ...props }: Dialog_3.Description.Props): JSX.Element;
|
|
322
|
+
|
|
323
|
+
declare function DialogFooter({ className, showCloseButton, children, ...props }: React_2.ComponentProps<"div"> & {
|
|
324
|
+
showCloseButton?: boolean;
|
|
325
|
+
}): JSX.Element;
|
|
326
|
+
|
|
327
|
+
declare function DialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
328
|
+
|
|
329
|
+
declare function DialogOverlay({ className, ...props }: Dialog_3.Backdrop.Props): JSX.Element;
|
|
330
|
+
|
|
331
|
+
declare function DialogPortal({ ...props }: Dialog_3.Portal.Props): JSX.Element;
|
|
332
|
+
|
|
333
|
+
declare function DialogTitle({ className, ...props }: Dialog_3.Title.Props): JSX.Element;
|
|
334
|
+
|
|
300
335
|
export declare type Display = (typeof DISPLAYS)[number];
|
|
301
336
|
|
|
302
337
|
declare type Display_2 = "block" | "flex";
|
|
@@ -714,16 +749,16 @@ declare interface PasswordInputProps extends Omit<InputProps, "type"> {
|
|
|
714
749
|
|
|
715
750
|
export declare const Popover: PopoverComponent;
|
|
716
751
|
|
|
717
|
-
declare function Popover_2({ ...props }:
|
|
752
|
+
declare function Popover_2({ ...props }: Popover_3.Root.Props): JSX.Element;
|
|
718
753
|
|
|
719
754
|
declare type PopoverComponent = default_2.FC<default_2.ComponentProps<typeof Popover_2>> & {
|
|
720
755
|
Trigger: typeof PopoverTrigger;
|
|
721
756
|
Content: typeof PopoverContent;
|
|
722
757
|
};
|
|
723
758
|
|
|
724
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }:
|
|
759
|
+
declare function PopoverContent({ className, align, alignOffset, side, sideOffset, ...props }: Popover_3.Popup.Props & Pick<Popover_3.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): JSX.Element;
|
|
725
760
|
|
|
726
|
-
declare function PopoverTrigger({ ...props }:
|
|
761
|
+
declare function PopoverTrigger({ ...props }: Popover_3.Trigger.Props): JSX.Element;
|
|
727
762
|
|
|
728
763
|
export declare type Position = (typeof POSITIONS)[number];
|
|
729
764
|
|
|
@@ -742,8 +777,8 @@ declare interface Props {
|
|
|
742
777
|
}
|
|
743
778
|
|
|
744
779
|
declare interface Props_2 {
|
|
745
|
-
children:
|
|
746
|
-
trigger?:
|
|
780
|
+
children: ReactNode;
|
|
781
|
+
trigger?: ReactElement;
|
|
747
782
|
title?: string;
|
|
748
783
|
description?: string;
|
|
749
784
|
open?: boolean;
|
|
@@ -813,7 +848,7 @@ export declare interface SelectInputProps extends Omit<ComponentProps<"select">,
|
|
|
813
848
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
814
849
|
}
|
|
815
850
|
|
|
816
|
-
export declare const SelectPicker: ({ options, value, placeholder, onChange,
|
|
851
|
+
export declare const SelectPicker: ({ options, value, placeholder, onChange, name, renderSelected, dropdownClassName, }: SelectPickerProps) => JSX.Element;
|
|
817
852
|
|
|
818
853
|
export declare interface SelectPickerOption {
|
|
819
854
|
icon?: string;
|
|
@@ -831,19 +866,12 @@ export declare type SelectPickerOptionValue = string;
|
|
|
831
866
|
|
|
832
867
|
export declare interface SelectPickerProps {
|
|
833
868
|
name: string;
|
|
834
|
-
value?: string;
|
|
869
|
+
value?: string | null;
|
|
835
870
|
onChange: (value: string) => void;
|
|
836
871
|
options: SelectPickerOption[] | SelectPickerOptionGroup[];
|
|
837
|
-
label?: string;
|
|
838
|
-
labelClassName?: string;
|
|
839
|
-
triggerClassName?: string;
|
|
840
|
-
dropdownClassName?: string;
|
|
841
872
|
placeholder?: string;
|
|
842
|
-
hint?: string;
|
|
843
|
-
note?: string;
|
|
844
|
-
error?: string;
|
|
845
873
|
renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
|
|
846
|
-
|
|
874
|
+
dropdownClassName?: string;
|
|
847
875
|
}
|
|
848
876
|
|
|
849
877
|
export declare const Separator: ({ className, orientation, gap, ...props }: SeparatorProps) => JSX.Element;
|
|
@@ -887,12 +915,12 @@ declare interface SideLinkSet {
|
|
|
887
915
|
links: SideLink[];
|
|
888
916
|
}
|
|
889
917
|
|
|
890
|
-
export declare const SimpleTooltip: ({ children, cursor, content }: SimpleTooltipProps) => JSX.Element;
|
|
918
|
+
export declare const SimpleTooltip: ({ children, cursor, content, ...props }: SimpleTooltipProps) => JSX.Element;
|
|
891
919
|
|
|
892
|
-
declare interface SimpleTooltipProps {
|
|
893
|
-
children: string |
|
|
920
|
+
declare interface SimpleTooltipProps extends Omit<ComponentProps<typeof Tooltip.Content>, "content"> {
|
|
921
|
+
children: string | ReactElement;
|
|
894
922
|
cursor?: CursorType;
|
|
895
|
-
content: string |
|
|
923
|
+
content: string | ReactElement;
|
|
896
924
|
}
|
|
897
925
|
|
|
898
926
|
export declare type Size = (typeof SIZES)[number];
|
|
@@ -1150,20 +1178,20 @@ declare type TimelineTitleProps = React.ComponentProps<typeof Heading>;
|
|
|
1150
1178
|
|
|
1151
1179
|
export declare const Tooltip: TooltipComponent;
|
|
1152
1180
|
|
|
1153
|
-
declare function Tooltip_2({ ...props }:
|
|
1181
|
+
declare function Tooltip_2({ ...props }: Tooltip_3.Root.Props): JSX.Element;
|
|
1154
1182
|
|
|
1155
1183
|
declare type TooltipComponent = React.FC<TooltipProps> & {
|
|
1156
1184
|
Trigger: React.FC<TooltipTriggerProps>;
|
|
1157
1185
|
Content: React.FC<TooltipContentProps>;
|
|
1158
1186
|
};
|
|
1159
1187
|
|
|
1160
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }:
|
|
1188
|
+
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip_3.Popup.Props & Pick<Tooltip_3.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): JSX.Element;
|
|
1161
1189
|
|
|
1162
1190
|
declare type TooltipContentProps = React.ComponentProps<typeof TooltipContent>;
|
|
1163
1191
|
|
|
1164
1192
|
declare type TooltipProps = React.ComponentProps<typeof Tooltip_2>;
|
|
1165
1193
|
|
|
1166
|
-
declare function TooltipTrigger({ ...props }:
|
|
1194
|
+
declare function TooltipTrigger({ ...props }: Tooltip_3.Trigger.Props): JSX.Element;
|
|
1167
1195
|
|
|
1168
1196
|
declare type TooltipTriggerProps = React.ComponentProps<typeof TooltipTrigger> & {
|
|
1169
1197
|
cursor?: CursorType;
|