@still-forest/canopy 0.42.1 → 0.44.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 +98 -15
- package/dist/index.js +16165 -628
- package/package.json +12 -41
- package/dist/chunks/Code-BLilg72p.js +0 -6
- package/dist/chunks/Heading-DjVutKs1.js +0 -268
- package/dist/chunks/Layout-CvVv48kM.js +0 -538
- package/dist/chunks/Loader-DDhZhyvW.js +0 -49
- package/dist/chunks/PageNotFound-CPlMTx3M.js +0 -144
- package/dist/chunks/Paragraph-ai9KZse1.js +0 -7
- package/dist/chunks/SidebarLayout-DBGn2rXK.js +0 -198
- package/dist/chunks/Switch-B-zrBW1-.js +0 -3163
- package/dist/chunks/index-CRiPKpXj.js +0 -2743
- package/dist/chunks/jsx-runtime-B0GD0xBr.js +0 -40
- package/dist/chunks/sidebar-Dub2Iudi.js +0 -8284
- package/dist/forms.d.ts +0 -297
- package/dist/forms.js +0 -26
- package/dist/interstitials.d.ts +0 -48
- package/dist/interstitials.js +0 -8
- package/dist/layout.d.ts +0 -174
- package/dist/layout.js +0 -10
- package/dist/navigation.d.ts +0 -59
- package/dist/navigation.js +0 -8
- package/dist/typography.d.ts +0 -91
- package/dist/typography.js +0 -9
- package/dist/utilities.d.ts +0 -5
- package/dist/utilities.js +0 -4
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,16 @@ export declare interface BreadcrumbType {
|
|
|
98
98
|
to?: string;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
export declare const BulletList: BulletListComponent;
|
|
102
|
+
|
|
103
|
+
declare type BulletListComponent = React.FC<BulletListProps> & {
|
|
104
|
+
Item: React.FC<BulletListItemProps>;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
declare type BulletListItemProps = ComponentProps<typeof Text_2>;
|
|
108
|
+
|
|
109
|
+
declare type BulletListProps = ComponentProps<"ul">;
|
|
110
|
+
|
|
101
111
|
export declare const Button: ({ label, children, onClick, variant, size, icon, asIcon, disabled, className, type, asChild, full, fit, rounded, ...rest }: ButtonProps) => JSX.Element;
|
|
102
112
|
|
|
103
113
|
declare function Button_2({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -179,7 +189,7 @@ declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div"
|
|
|
179
189
|
|
|
180
190
|
declare type CardTitleProps = React.ComponentProps<typeof CardTitle>;
|
|
181
191
|
|
|
182
|
-
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange }: CheckboxProps) => JSX.Element;
|
|
192
|
+
export declare const Checkbox: ({ label, name, value, checked, onCheckedChange, note, error }: CheckboxProps) => JSX.Element;
|
|
183
193
|
|
|
184
194
|
export declare interface CheckboxProps {
|
|
185
195
|
label: string;
|
|
@@ -187,6 +197,8 @@ export declare interface CheckboxProps {
|
|
|
187
197
|
value?: string;
|
|
188
198
|
checked: boolean;
|
|
189
199
|
onCheckedChange?: (checked: boolean) => void;
|
|
200
|
+
note?: string;
|
|
201
|
+
error?: string;
|
|
190
202
|
}
|
|
191
203
|
|
|
192
204
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
@@ -430,9 +442,12 @@ declare const HEIGHTS: readonly [...string[], "auto", "full", "min", "max", "fit
|
|
|
430
442
|
|
|
431
443
|
export declare const Input: ({ type, step, ...props }: InputProps) => JSX.Element;
|
|
432
444
|
|
|
433
|
-
export declare const InputError: ({ message }:
|
|
445
|
+
export declare const InputError: ({ id, message }: InputErrorProps) => JSX.Element;
|
|
446
|
+
|
|
447
|
+
declare interface InputErrorProps {
|
|
448
|
+
id?: string;
|
|
434
449
|
message: string;
|
|
435
|
-
}
|
|
450
|
+
}
|
|
436
451
|
|
|
437
452
|
export declare const InputGroup: InputGroupComponent;
|
|
438
453
|
|
|
@@ -593,7 +608,7 @@ export declare const MenuItemText: ({ children }: {
|
|
|
593
608
|
children: React.ReactNode;
|
|
594
609
|
}) => JSX.Element;
|
|
595
610
|
|
|
596
|
-
export declare const Modal: ({ trigger, children, title, description, open, onOpenChange }: Props_2) => JSX.Element;
|
|
611
|
+
export declare const Modal: ({ trigger, children, title, description, open, onOpenChange, ariaDescription }: Props_2) => JSX.Element;
|
|
597
612
|
|
|
598
613
|
/**
|
|
599
614
|
+ * A specialized input component for numeric values.
|
|
@@ -672,6 +687,7 @@ declare interface Props_2 {
|
|
|
672
687
|
description?: string;
|
|
673
688
|
open?: boolean;
|
|
674
689
|
onOpenChange?: (open: boolean) => void;
|
|
690
|
+
ariaDescription?: string;
|
|
675
691
|
}
|
|
676
692
|
|
|
677
693
|
declare interface Props_3 {
|
|
@@ -704,10 +720,9 @@ declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2x
|
|
|
704
720
|
|
|
705
721
|
declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
|
|
706
722
|
|
|
707
|
-
export declare const SelectInput: ({ name, defaultValue, options
|
|
723
|
+
export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onChange, error, size, id: idProp, ...props }: SelectInputProps) => JSX.Element;
|
|
708
724
|
|
|
709
725
|
export declare interface SelectInputOption {
|
|
710
|
-
icon?: string;
|
|
711
726
|
value: string;
|
|
712
727
|
label: string;
|
|
713
728
|
}
|
|
@@ -717,39 +732,44 @@ export declare interface SelectInputOptionGroup {
|
|
|
717
732
|
options: SelectInputOption[];
|
|
718
733
|
}
|
|
719
734
|
|
|
720
|
-
export declare interface SelectInputProps extends Omit<
|
|
735
|
+
export declare interface SelectInputProps extends Omit<ComponentProps<"select">, "dir" | "size" | "onChange"> {
|
|
721
736
|
name: string;
|
|
722
737
|
value?: string;
|
|
723
|
-
|
|
738
|
+
onChange: (value: string) => void;
|
|
724
739
|
options: SelectInputOption[] | SelectInputOptionGroup[];
|
|
725
740
|
label?: string;
|
|
726
741
|
placeholder?: string;
|
|
727
742
|
note?: string;
|
|
728
743
|
className?: string;
|
|
729
744
|
error?: string;
|
|
730
|
-
emptyOptionLabel?: string;
|
|
731
745
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
732
746
|
}
|
|
733
747
|
|
|
734
|
-
export declare const SelectPicker: ({ options
|
|
748
|
+
export declare const SelectPicker: ({ options, value, placeholder, onChange, label, name, note, error, renderSelected, }: SelectPickerProps) => JSX.Element;
|
|
735
749
|
|
|
736
750
|
export declare interface SelectPickerOption {
|
|
737
751
|
icon?: string;
|
|
738
|
-
value: string;
|
|
739
752
|
label: string;
|
|
753
|
+
value: SelectPickerOptionValue;
|
|
754
|
+
keywords?: string[];
|
|
740
755
|
}
|
|
741
756
|
|
|
742
757
|
export declare interface SelectPickerOptionGroup {
|
|
743
|
-
label
|
|
758
|
+
label?: string;
|
|
744
759
|
options: SelectPickerOption[];
|
|
745
760
|
}
|
|
746
761
|
|
|
762
|
+
export declare type SelectPickerOptionValue = string;
|
|
763
|
+
|
|
747
764
|
export declare interface SelectPickerProps {
|
|
748
|
-
|
|
749
|
-
onSelect: (selected: string) => void;
|
|
765
|
+
name: string;
|
|
750
766
|
value?: string;
|
|
767
|
+
onChange: (value: string) => void;
|
|
768
|
+
options: SelectPickerOption[] | SelectPickerOptionGroup[];
|
|
769
|
+
label?: string;
|
|
751
770
|
placeholder?: string;
|
|
752
|
-
|
|
771
|
+
note?: string;
|
|
772
|
+
error?: string;
|
|
753
773
|
renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
|
|
754
774
|
}
|
|
755
775
|
|
|
@@ -980,6 +1000,69 @@ export declare interface ThemeSelectorProps {
|
|
|
980
1000
|
buttonClassName?: string;
|
|
981
1001
|
}
|
|
982
1002
|
|
|
1003
|
+
export declare const Timeline: TimelineComponent;
|
|
1004
|
+
|
|
1005
|
+
declare function Timeline_2({ defaultValue, value, onValueChange, orientation, className, ...props }: TimelineProps_2): JSX.Element;
|
|
1006
|
+
|
|
1007
|
+
declare type TimelineComponent = React.FC<TimelineProps> & {
|
|
1008
|
+
Item: React.FC<TimelineItemProps>;
|
|
1009
|
+
Header: React.FC<TimelineHeaderProps>;
|
|
1010
|
+
Separator: React.FC<TimelineSeparatorProps>;
|
|
1011
|
+
Date: React.FC<TimelineDateProps>;
|
|
1012
|
+
Title: React.FC<TimelineTitleProps>;
|
|
1013
|
+
Indicator: React.FC<TimelineIndicatorProps>;
|
|
1014
|
+
Content: React.FC<TimelineContentProps>;
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
declare function TimelineContent({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
1018
|
+
|
|
1019
|
+
declare type TimelineContentProps = React.ComponentProps<typeof TimelineContent>;
|
|
1020
|
+
|
|
1021
|
+
declare function TimelineDate({ asChild, className, ...props }: TimelineDateProps_2): JSX.Element;
|
|
1022
|
+
|
|
1023
|
+
declare type TimelineDateProps = React.ComponentProps<typeof TimelineDate>;
|
|
1024
|
+
|
|
1025
|
+
declare interface TimelineDateProps_2 extends React_2.HTMLAttributes<HTMLTimeElement> {
|
|
1026
|
+
asChild?: boolean;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
declare function TimelineHeader({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
1030
|
+
|
|
1031
|
+
declare type TimelineHeaderProps = React.ComponentProps<typeof TimelineHeader>;
|
|
1032
|
+
|
|
1033
|
+
declare function TimelineIndicator({ asChild, className, children, ...props }: TimelineIndicatorProps_2): JSX.Element;
|
|
1034
|
+
|
|
1035
|
+
declare type TimelineIndicatorProps = React.ComponentProps<typeof TimelineIndicator>;
|
|
1036
|
+
|
|
1037
|
+
declare interface TimelineIndicatorProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1038
|
+
asChild?: boolean;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
declare function TimelineItem({ step, className, ...props }: TimelineItemProps_2): JSX.Element;
|
|
1042
|
+
|
|
1043
|
+
declare type TimelineItemProps = React.ComponentProps<typeof TimelineItem>;
|
|
1044
|
+
|
|
1045
|
+
declare interface TimelineItemProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1046
|
+
step: number;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
export declare type TimelineProps = React.ComponentProps<typeof Timeline_2> & {
|
|
1050
|
+
children: ReactNode;
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
declare interface TimelineProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1054
|
+
defaultValue?: number;
|
|
1055
|
+
value?: number;
|
|
1056
|
+
onValueChange?: (value: number) => void;
|
|
1057
|
+
orientation?: "horizontal" | "vertical";
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
declare function TimelineSeparator({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
1061
|
+
|
|
1062
|
+
declare type TimelineSeparatorProps = React.ComponentProps<typeof TimelineSeparator>;
|
|
1063
|
+
|
|
1064
|
+
declare type TimelineTitleProps = React.ComponentProps<typeof Heading>;
|
|
1065
|
+
|
|
983
1066
|
export declare const Tooltip: TooltipComponent;
|
|
984
1067
|
|
|
985
1068
|
declare function Tooltip_2({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element;
|