@still-forest/canopy 0.49.0 → 0.50.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 +18 -8
- package/dist/index.js +3072 -2989
- package/package.json +17 -17
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { default as default_2 } from 'react';
|
|
|
7
7
|
import { JSX } from 'react/jsx-runtime';
|
|
8
8
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
9
9
|
import * as React_2 from 'react';
|
|
10
|
+
import { ReactElement } from 'react';
|
|
10
11
|
import { ReactNode } from 'react';
|
|
11
12
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
12
13
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
@@ -52,12 +53,13 @@ export declare interface AlertProps {
|
|
|
52
53
|
|
|
53
54
|
declare type AlertVariant = "info" | "success" | "warning" | "error";
|
|
54
55
|
|
|
55
|
-
export declare const Badge: ({ label, onClick, className, variant, color }: BadgeProps) => JSX.Element;
|
|
56
|
+
export declare const Badge: ({ label, onClick, className, variant, color, children }: BadgeProps) => JSX.Element;
|
|
56
57
|
|
|
57
58
|
export declare interface BadgeProps {
|
|
58
59
|
variant?: BadgeVariant;
|
|
59
60
|
color?: TailwindColor;
|
|
60
|
-
label
|
|
61
|
+
label?: string;
|
|
62
|
+
children?: React.ReactNode;
|
|
61
63
|
onClick?: () => void;
|
|
62
64
|
className?: string;
|
|
63
65
|
}
|
|
@@ -280,7 +282,7 @@ declare interface DatePickerProps {
|
|
|
280
282
|
error?: string;
|
|
281
283
|
}
|
|
282
284
|
|
|
283
|
-
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props_4) => JSX.Element;
|
|
285
|
+
export declare const DeleteButton: ({ icon, disabled, handleDelete, ...rest }: Props_4) => JSX.Element;
|
|
284
286
|
|
|
285
287
|
export declare type Display = (typeof DISPLAYS)[number];
|
|
286
288
|
|
|
@@ -491,7 +493,7 @@ declare interface InputGroupAddonProps extends React.ComponentProps<typeof Input
|
|
|
491
493
|
}
|
|
492
494
|
|
|
493
495
|
declare const inputGroupAddonVariants: (props?: ({
|
|
494
|
-
align?: "
|
|
496
|
+
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
495
497
|
} & ClassProp) | undefined) => string;
|
|
496
498
|
|
|
497
499
|
declare type InputGroupComponent = React.FC<InputGroupProps> & {
|
|
@@ -639,7 +641,7 @@ export declare const Loader: ({ variant, icon, size, className, ...props }: Load
|
|
|
639
641
|
|
|
640
642
|
export declare interface LoaderProps extends React.ComponentProps<"svg"> {
|
|
641
643
|
variant?: "default" | "wheel";
|
|
642
|
-
icon?:
|
|
644
|
+
icon?: ReactElement;
|
|
643
645
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl";
|
|
644
646
|
}
|
|
645
647
|
|
|
@@ -743,6 +745,7 @@ declare interface Props_3 {
|
|
|
743
745
|
}
|
|
744
746
|
|
|
745
747
|
declare interface Props_4 extends ButtonProps {
|
|
748
|
+
icon?: ReactElement;
|
|
746
749
|
disabled?: boolean;
|
|
747
750
|
handleDelete: () => void;
|
|
748
751
|
}
|
|
@@ -881,14 +884,21 @@ export declare const SIZES: readonly [...string[], "auto", "full", "min", "max",
|
|
|
881
884
|
|
|
882
885
|
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
883
886
|
|
|
884
|
-
export declare const Slider: ({ size, thumbClassName, trackClassName, value, defaultValue, ...props }: SliderProps) => JSX.Element;
|
|
887
|
+
export declare const Slider: ({ name, size, label, labelClassName, labelOrientation, hint, note, error, thumbClassName, trackClassName, value: valueProp, defaultValue: defaultValueProp, ...props }: SliderProps) => JSX.Element;
|
|
885
888
|
|
|
886
889
|
declare function Slider_2({ className, trackClassName, thumbClassName, defaultValue, value, min, max, ...props }: SliderProps_2): JSX.Element;
|
|
887
890
|
|
|
888
891
|
declare interface SliderProps extends Omit<React.ComponentProps<typeof Slider_2>, "value" | "defaultValue"> {
|
|
892
|
+
name: string;
|
|
889
893
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
890
894
|
thumbClassName?: string;
|
|
891
895
|
trackClassName?: string;
|
|
896
|
+
label?: string;
|
|
897
|
+
labelClassName?: string;
|
|
898
|
+
labelOrientation?: "top" | "left";
|
|
899
|
+
hint?: string;
|
|
900
|
+
note?: string;
|
|
901
|
+
error?: string;
|
|
892
902
|
value?: number | number[];
|
|
893
903
|
defaultValue?: number | number[];
|
|
894
904
|
}
|
|
@@ -906,8 +916,8 @@ export declare interface SubmitButtonProps extends Omit<ButtonProps, "icon"> {
|
|
|
906
916
|
submittingLabel?: string;
|
|
907
917
|
submitting?: boolean;
|
|
908
918
|
disabled?: boolean;
|
|
909
|
-
icon?:
|
|
910
|
-
submittingIcon?:
|
|
919
|
+
icon?: ReactElement;
|
|
920
|
+
submittingIcon?: ReactElement;
|
|
911
921
|
noIcon?: boolean;
|
|
912
922
|
}
|
|
913
923
|
|