@still-forest/canopy 0.53.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 +100 -132
- package/dist/index.js +17077 -11686
- package/package.json +12 -12
package/LICENSE
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import { Accordion as Accordion_3 } from '
|
|
2
|
-
import {
|
|
1
|
+
import { Accordion as Accordion_3 } from '@base-ui/react/accordion';
|
|
2
|
+
import { Button as Button_3 } from '@base-ui/react/button';
|
|
3
|
+
import { Checkbox as Checkbox_3 } from '@base-ui/react/checkbox';
|
|
3
4
|
import { ClassProp } from 'class-variance-authority/types';
|
|
4
5
|
import { ClassValue } from 'clsx';
|
|
5
|
-
import { Collapsible as Collapsible_3 } from '
|
|
6
|
+
import { Collapsible as Collapsible_3 } from '@base-ui/react/collapsible';
|
|
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 {
|
|
11
|
+
import { JSXElementConstructor } from 'react';
|
|
12
|
+
import { Popover as Popover_3 } from '@base-ui/react/popover';
|
|
10
13
|
import * as React_2 from 'react';
|
|
11
14
|
import { ReactElement } from 'react';
|
|
12
15
|
import { ReactNode } from 'react';
|
|
13
|
-
import { Slider as Slider_3 } from '
|
|
14
|
-
import { Switch as Switch_3 } from '
|
|
15
|
-
import { Tabs as Tabs_2 } from '
|
|
16
|
-
import { Tooltip as Tooltip_3 } 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';
|
|
19
|
+
import { Tooltip as Tooltip_3 } from '@base-ui/react/tooltip';
|
|
20
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
17
21
|
import { VariantProps } from 'class-variance-authority';
|
|
18
22
|
|
|
19
23
|
export declare const Accordion: AccordionComponent;
|
|
20
24
|
|
|
21
|
-
declare function Accordion_2({ ...props }:
|
|
25
|
+
declare function Accordion_2({ className, ...props }: Accordion_3.Root.Props): JSX.Element;
|
|
22
26
|
|
|
23
27
|
declare type AccordionComponent = React.FC<AccordionProps> & {
|
|
24
28
|
Item: React.FC<AccordionItemProps>;
|
|
@@ -26,11 +30,13 @@ declare type AccordionComponent = React.FC<AccordionProps> & {
|
|
|
26
30
|
Content: React.FC<AccordionContentProps>;
|
|
27
31
|
};
|
|
28
32
|
|
|
29
|
-
declare function AccordionContent({ className, children, ...props }:
|
|
33
|
+
declare function AccordionContent({ className, contentClassName, children, ...props }: Accordion_3.Panel.Props & {
|
|
34
|
+
contentClassName?: string;
|
|
35
|
+
}): JSX.Element;
|
|
30
36
|
|
|
31
37
|
declare type AccordionContentProps = React.ComponentProps<typeof AccordionContent>;
|
|
32
38
|
|
|
33
|
-
declare function AccordionItem({ className, ...props }:
|
|
39
|
+
declare function AccordionItem({ className, ...props }: Accordion_3.Item.Props): JSX.Element;
|
|
34
40
|
|
|
35
41
|
declare type AccordionItemProps = React.ComponentProps<typeof AccordionItem>;
|
|
36
42
|
|
|
@@ -38,7 +44,7 @@ export declare type AccordionProps = React.ComponentProps<typeof Accordion_2> &
|
|
|
38
44
|
children: ReactNode;
|
|
39
45
|
};
|
|
40
46
|
|
|
41
|
-
declare function AccordionTrigger({ className, children, ...props }:
|
|
47
|
+
declare function AccordionTrigger({ className, children, ...props }: Accordion_3.Trigger.Props): JSX.Element;
|
|
42
48
|
|
|
43
49
|
declare type AccordionTriggerProps = React.ComponentProps<typeof AccordionTrigger>;
|
|
44
50
|
|
|
@@ -54,11 +60,9 @@ export declare interface AlertProps {
|
|
|
54
60
|
|
|
55
61
|
declare type AlertVariant = "info" | "success" | "warning" | "error";
|
|
56
62
|
|
|
57
|
-
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;
|
|
58
64
|
|
|
59
|
-
declare function Badge_2({ className, variant,
|
|
60
|
-
asChild?: boolean;
|
|
61
|
-
}): JSX.Element;
|
|
65
|
+
declare function Badge_2({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
62
66
|
|
|
63
67
|
export declare interface BadgeProps extends React.ComponentProps<typeof Badge_2> {
|
|
64
68
|
variant?: BadgeVariant;
|
|
@@ -72,7 +76,7 @@ export declare interface BadgeProps extends React.ComponentProps<typeof Badge_2>
|
|
|
72
76
|
declare type BadgeVariant = AlertVariant | "default" | "secondary" | "destructive" | "outline";
|
|
73
77
|
|
|
74
78
|
declare const badgeVariants: (props?: ({
|
|
75
|
-
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;
|
|
76
80
|
} & ClassProp) | undefined) => string;
|
|
77
81
|
|
|
78
82
|
export declare type BaseButtonSize = "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "unstyled";
|
|
@@ -123,11 +127,9 @@ declare type BulletListItemProps = ComponentProps<typeof Text_2>;
|
|
|
123
127
|
|
|
124
128
|
declare type BulletListProps = ComponentProps<"ul">;
|
|
125
129
|
|
|
126
|
-
export declare const Button: ({ label, children, onClick, variant, size, icon, asIcon, disabled, className, type,
|
|
130
|
+
export declare const Button: ({ label, children, onClick, variant, size, icon, asIcon, disabled, className, type, full, fit, rounded, render, ...rest }: ButtonProps) => JSX.Element;
|
|
127
131
|
|
|
128
|
-
declare function Button_2({ className, variant, size,
|
|
129
|
-
asChild?: boolean;
|
|
130
|
-
}): JSX.Element;
|
|
132
|
+
declare function Button_2({ className, variant, size, ...props }: Button_3.Props & VariantProps<typeof buttonVariants>): JSX.Element;
|
|
131
133
|
|
|
132
134
|
export declare const ButtonGroup: {
|
|
133
135
|
({ children, className, ...props }: ButtonGroupProps): JSX.Element;
|
|
@@ -139,21 +141,21 @@ export declare interface ButtonGroupProps extends default_2.ComponentPropsWithou
|
|
|
139
141
|
className?: string;
|
|
140
142
|
}
|
|
141
143
|
|
|
142
|
-
export declare interface ButtonProps extends
|
|
144
|
+
export declare interface ButtonProps extends React.ComponentProps<"button"> {
|
|
143
145
|
label?: string;
|
|
144
|
-
children?:
|
|
146
|
+
children?: React.ReactNode;
|
|
145
147
|
onClick?: () => void;
|
|
146
148
|
variant?: ButtonVariant;
|
|
147
149
|
size?: "default" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
148
|
-
icon?:
|
|
150
|
+
icon?: ReactElement;
|
|
149
151
|
asIcon?: boolean;
|
|
150
152
|
disabled?: boolean;
|
|
151
153
|
className?: string;
|
|
152
154
|
type?: "button" | "submit" | "reset";
|
|
153
155
|
fit?: boolean;
|
|
154
156
|
full?: boolean;
|
|
155
|
-
asChild?: boolean;
|
|
156
157
|
rounded?: boolean;
|
|
158
|
+
render?: React.ComponentProps<typeof Button_2>["render"];
|
|
157
159
|
}
|
|
158
160
|
|
|
159
161
|
export declare const ButtonSelectInput: ({ name, label, hint, options, error, note, secondaryOptions, value, onChange, buttonClassName, secondaryButtonClassName, className: groupClassName, ...props }: ButtonSelectInputProps) => JSX.Element;
|
|
@@ -176,7 +178,7 @@ export declare type ButtonVariant = "default" | "primary" | "secondary" | "destr
|
|
|
176
178
|
|
|
177
179
|
declare const buttonVariants: (props?: ({
|
|
178
180
|
variant?: "link" | "info" | "success" | "warning" | "error" | "default" | "secondary" | "destructive" | "outline" | "ghost" | "unstyled" | null | undefined;
|
|
179
|
-
size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "
|
|
181
|
+
size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | "unstyled" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
180
182
|
} & ClassProp) | undefined) => string;
|
|
181
183
|
|
|
182
184
|
export declare const Card: CardComponent;
|
|
@@ -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
|
|
|
@@ -297,6 +299,41 @@ declare interface DatePickerProps {
|
|
|
297
299
|
|
|
298
300
|
export declare const DeleteButton: ({ icon, disabled, handleDelete, ...rest }: Props_4) => JSX.Element;
|
|
299
301
|
|
|
302
|
+
export declare const Dialog: {
|
|
303
|
+
(props: ComponentProps<typeof Dialog_2>): JSX.Element;
|
|
304
|
+
Close: typeof DialogClose;
|
|
305
|
+
Content: typeof DialogContent;
|
|
306
|
+
Description: typeof DialogDescription;
|
|
307
|
+
Footer: typeof DialogFooter;
|
|
308
|
+
Header: typeof DialogHeader;
|
|
309
|
+
Overlay: typeof DialogOverlay;
|
|
310
|
+
Portal: typeof DialogPortal;
|
|
311
|
+
Title: typeof DialogTitle;
|
|
312
|
+
Trigger: ({ children, render, ...props }: Dialog_3.Trigger.Props & ButtonProps) => JSX.Element;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
declare function Dialog_2({ ...props }: Dialog_3.Root.Props): JSX.Element;
|
|
316
|
+
|
|
317
|
+
declare function DialogClose({ ...props }: Dialog_3.Close.Props): JSX.Element;
|
|
318
|
+
|
|
319
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: Dialog_3.Popup.Props & {
|
|
320
|
+
showCloseButton?: boolean;
|
|
321
|
+
}): JSX.Element;
|
|
322
|
+
|
|
323
|
+
declare function DialogDescription({ className, ...props }: Dialog_3.Description.Props): JSX.Element;
|
|
324
|
+
|
|
325
|
+
declare function DialogFooter({ className, showCloseButton, children, ...props }: React_2.ComponentProps<"div"> & {
|
|
326
|
+
showCloseButton?: boolean;
|
|
327
|
+
}): JSX.Element;
|
|
328
|
+
|
|
329
|
+
declare function DialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
330
|
+
|
|
331
|
+
declare function DialogOverlay({ className, ...props }: Dialog_3.Backdrop.Props): JSX.Element;
|
|
332
|
+
|
|
333
|
+
declare function DialogPortal({ ...props }: Dialog_3.Portal.Props): JSX.Element;
|
|
334
|
+
|
|
335
|
+
declare function DialogTitle({ className, ...props }: Dialog_3.Title.Props): JSX.Element;
|
|
336
|
+
|
|
300
337
|
export declare type Display = (typeof DISPLAYS)[number];
|
|
301
338
|
|
|
302
339
|
declare type Display_2 = "block" | "flex";
|
|
@@ -561,9 +598,7 @@ export declare interface InterstitialProps {
|
|
|
561
598
|
|
|
562
599
|
export declare const Item: ItemComponent;
|
|
563
600
|
|
|
564
|
-
declare function Item_2({ className, variant, size,
|
|
565
|
-
asChild?: boolean;
|
|
566
|
-
}): 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>>;
|
|
567
602
|
|
|
568
603
|
declare function ItemActions({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
569
604
|
|
|
@@ -615,7 +650,7 @@ declare type ItemTitleProps = React.ComponentProps<typeof ItemTitle>;
|
|
|
615
650
|
|
|
616
651
|
declare const itemVariants: (props?: ({
|
|
617
652
|
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
618
|
-
size?: "default" | "sm" | null | undefined;
|
|
653
|
+
size?: "default" | "xs" | "sm" | null | undefined;
|
|
619
654
|
} & ClassProp) | undefined) => string;
|
|
620
655
|
|
|
621
656
|
export declare const Label: ({ htmlFor, value, children, size, className, ...props }: LabelProps) => JSX.Element;
|
|
@@ -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;
|
|
@@ -855,7 +883,7 @@ declare interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
855
883
|
|
|
856
884
|
export declare const Sidebar: ({ brandContent, brandOnClick, activeSlug, itemSets, bottomItemSets, theme, setTheme, ...props }: SidebarProps) => JSX.Element;
|
|
857
885
|
|
|
858
|
-
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"> & {
|
|
859
887
|
side?: "left" | "right";
|
|
860
888
|
variant?: "sidebar" | "floating" | "inset";
|
|
861
889
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
@@ -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];
|
|
@@ -903,7 +931,7 @@ export declare function Skeleton({ className, ...props }: React.ComponentProps<"
|
|
|
903
931
|
|
|
904
932
|
export declare const Slider: ({ name, size, label, labelClassName, labelOrientation, hint, note, error, thumbClassName, trackClassName, value: valueProp, defaultValue: defaultValueProp, ...props }: SliderProps) => JSX.Element;
|
|
905
933
|
|
|
906
|
-
declare function Slider_2({ className,
|
|
934
|
+
declare function Slider_2({ className, defaultValue, value, min, max, thumbClassName, trackClassName, ...props }: SliderProps_2): JSX.Element;
|
|
907
935
|
|
|
908
936
|
declare interface SliderProps extends Omit<React.ComponentProps<typeof Slider_2>, "value" | "defaultValue"> {
|
|
909
937
|
name: string;
|
|
@@ -920,9 +948,9 @@ declare interface SliderProps extends Omit<React.ComponentProps<typeof Slider_2>
|
|
|
920
948
|
defaultValue?: number | number[];
|
|
921
949
|
}
|
|
922
950
|
|
|
923
|
-
declare interface SliderProps_2 extends
|
|
924
|
-
trackClassName?: string;
|
|
951
|
+
declare interface SliderProps_2 extends Slider_3.Root.Props {
|
|
925
952
|
thumbClassName?: string;
|
|
953
|
+
trackClassName?: string;
|
|
926
954
|
}
|
|
927
955
|
|
|
928
956
|
export declare const SubmitButton: ({ submitting, disabled, submittingIcon, action, label: customLabel, submittingLabel: customSubmittingLabel, icon: customIcon, noIcon, ...rest }: SubmitButtonProps) => JSX.Element;
|
|
@@ -938,10 +966,10 @@ export declare interface SubmitButtonProps extends Omit<ButtonProps, "icon"> {
|
|
|
938
966
|
noIcon?: boolean;
|
|
939
967
|
}
|
|
940
968
|
|
|
941
|
-
export declare const Switch: ({ id: idProp, label, className,
|
|
969
|
+
export declare const Switch: ({ id: idProp, label, className, labelClassName, size, ...props }: SwitchProps) => JSX.Element;
|
|
942
970
|
|
|
943
|
-
declare function Switch_2({ className,
|
|
944
|
-
|
|
971
|
+
declare function Switch_2({ className, size, ...props }: Switch_3.Root.Props & {
|
|
972
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
945
973
|
}): JSX.Element;
|
|
946
974
|
|
|
947
975
|
declare interface SwitchProps extends React.ComponentProps<typeof Switch_2> {
|
|
@@ -974,13 +1002,17 @@ export declare function TableHeader({ className, ...props }: React_2.ComponentPr
|
|
|
974
1002
|
|
|
975
1003
|
export declare function TableRow({ className, ...props }: React_2.ComponentProps<"tr">): JSX.Element;
|
|
976
1004
|
|
|
977
|
-
export declare function Tabs({ className, ...props }:
|
|
1005
|
+
export declare function Tabs({ className, orientation, ...props }: Tabs_2.Root.Props): JSX.Element;
|
|
978
1006
|
|
|
979
|
-
export declare function TabsContent({ className, ...props }:
|
|
1007
|
+
export declare function TabsContent({ className, ...props }: Tabs_2.Panel.Props): JSX.Element;
|
|
980
1008
|
|
|
981
|
-
export declare function TabsList({ className, ...props }:
|
|
1009
|
+
export declare function TabsList({ className, variant, ...props }: Tabs_2.List.Props & VariantProps<typeof tabsListVariants>): JSX.Element;
|
|
982
1010
|
|
|
983
|
-
|
|
1011
|
+
declare const tabsListVariants: (props?: ({
|
|
1012
|
+
variant?: "line" | "default" | null | undefined;
|
|
1013
|
+
} & ClassProp) | undefined) => string;
|
|
1014
|
+
|
|
1015
|
+
export declare function TabsTrigger({ className, ...props }: Tabs_2.Tab.Props): JSX.Element;
|
|
984
1016
|
|
|
985
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"];
|
|
986
1018
|
|
|
@@ -1060,9 +1092,8 @@ declare type TextListItemProps = React.ComponentProps<"li"> & {
|
|
|
1060
1092
|
};
|
|
1061
1093
|
|
|
1062
1094
|
declare type TextListProps = React.ComponentProps<"ul"> & {
|
|
1063
|
-
type?: "ordered" | "unordered" | "none";
|
|
1064
1095
|
position?: "inside" | "outside";
|
|
1065
|
-
variant?:
|
|
1096
|
+
variant?: "ordered" | "unordered" | "none";
|
|
1066
1097
|
children: ReactNode;
|
|
1067
1098
|
};
|
|
1068
1099
|
|
|
@@ -1085,85 +1116,22 @@ export declare interface ThemeSelectorProps {
|
|
|
1085
1116
|
buttonClassName?: string;
|
|
1086
1117
|
}
|
|
1087
1118
|
|
|
1088
|
-
export declare const Timeline: TimelineComponent;
|
|
1089
|
-
|
|
1090
|
-
declare function Timeline_2({ defaultValue, value, onValueChange, orientation, className, ...props }: TimelineProps_2): JSX.Element;
|
|
1091
|
-
|
|
1092
|
-
declare type TimelineComponent = React.FC<TimelineProps> & {
|
|
1093
|
-
Item: React.FC<TimelineItemProps>;
|
|
1094
|
-
Header: React.FC<TimelineHeaderProps>;
|
|
1095
|
-
Separator: React.FC<TimelineSeparatorProps>;
|
|
1096
|
-
Date: React.FC<TimelineDateProps>;
|
|
1097
|
-
Title: React.FC<TimelineTitleProps>;
|
|
1098
|
-
Indicator: React.FC<TimelineIndicatorProps>;
|
|
1099
|
-
Content: React.FC<TimelineContentProps>;
|
|
1100
|
-
};
|
|
1101
|
-
|
|
1102
|
-
declare function TimelineContent({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
1103
|
-
|
|
1104
|
-
declare type TimelineContentProps = React.ComponentProps<typeof TimelineContent>;
|
|
1105
|
-
|
|
1106
|
-
declare function TimelineDate({ asChild, className, ...props }: TimelineDateProps_2): JSX.Element;
|
|
1107
|
-
|
|
1108
|
-
declare type TimelineDateProps = React.ComponentProps<typeof TimelineDate>;
|
|
1109
|
-
|
|
1110
|
-
declare interface TimelineDateProps_2 extends React_2.HTMLAttributes<HTMLTimeElement> {
|
|
1111
|
-
asChild?: boolean;
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
declare function TimelineHeader({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
1115
|
-
|
|
1116
|
-
declare type TimelineHeaderProps = React.ComponentProps<typeof TimelineHeader>;
|
|
1117
|
-
|
|
1118
|
-
declare function TimelineIndicator({ asChild, className, children, ...props }: TimelineIndicatorProps_2): JSX.Element;
|
|
1119
|
-
|
|
1120
|
-
declare type TimelineIndicatorProps = React.ComponentProps<typeof TimelineIndicator>;
|
|
1121
|
-
|
|
1122
|
-
declare interface TimelineIndicatorProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1123
|
-
asChild?: boolean;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
declare function TimelineItem({ step, className, ...props }: TimelineItemProps_2): JSX.Element;
|
|
1127
|
-
|
|
1128
|
-
declare type TimelineItemProps = React.ComponentProps<typeof TimelineItem>;
|
|
1129
|
-
|
|
1130
|
-
declare interface TimelineItemProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1131
|
-
step: number;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
export declare type TimelineProps = React.ComponentProps<typeof Timeline_2> & {
|
|
1135
|
-
children: ReactNode;
|
|
1136
|
-
};
|
|
1137
|
-
|
|
1138
|
-
declare interface TimelineProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1139
|
-
defaultValue?: number;
|
|
1140
|
-
value?: number;
|
|
1141
|
-
onValueChange?: (value: number) => void;
|
|
1142
|
-
orientation?: "horizontal" | "vertical";
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
declare function TimelineSeparator({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
1146
|
-
|
|
1147
|
-
declare type TimelineSeparatorProps = React.ComponentProps<typeof TimelineSeparator>;
|
|
1148
|
-
|
|
1149
|
-
declare type TimelineTitleProps = React.ComponentProps<typeof Heading>;
|
|
1150
|
-
|
|
1151
1119
|
export declare const Tooltip: TooltipComponent;
|
|
1152
1120
|
|
|
1153
|
-
declare function Tooltip_2({ ...props }:
|
|
1121
|
+
declare function Tooltip_2({ ...props }: Tooltip_3.Root.Props): JSX.Element;
|
|
1154
1122
|
|
|
1155
1123
|
declare type TooltipComponent = React.FC<TooltipProps> & {
|
|
1156
1124
|
Trigger: React.FC<TooltipTriggerProps>;
|
|
1157
1125
|
Content: React.FC<TooltipContentProps>;
|
|
1158
1126
|
};
|
|
1159
1127
|
|
|
1160
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }:
|
|
1128
|
+
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
1129
|
|
|
1162
1130
|
declare type TooltipContentProps = React.ComponentProps<typeof TooltipContent>;
|
|
1163
1131
|
|
|
1164
1132
|
declare type TooltipProps = React.ComponentProps<typeof Tooltip_2>;
|
|
1165
1133
|
|
|
1166
|
-
declare function TooltipTrigger({ ...props }:
|
|
1134
|
+
declare function TooltipTrigger({ ...props }: Tooltip_3.Trigger.Props): JSX.Element;
|
|
1167
1135
|
|
|
1168
1136
|
declare type TooltipTriggerProps = React.ComponentProps<typeof TooltipTrigger> & {
|
|
1169
1137
|
cursor?: CursorType;
|