@still-forest/canopy 0.49.0 → 0.49.1
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 +14 -5
- package/dist/index.js +2079 -2032
- package/package.json +1 -1
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';
|
|
@@ -280,7 +281,7 @@ declare interface DatePickerProps {
|
|
|
280
281
|
error?: string;
|
|
281
282
|
}
|
|
282
283
|
|
|
283
|
-
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props_4) => JSX.Element;
|
|
284
|
+
export declare const DeleteButton: ({ icon, disabled, handleDelete, ...rest }: Props_4) => JSX.Element;
|
|
284
285
|
|
|
285
286
|
export declare type Display = (typeof DISPLAYS)[number];
|
|
286
287
|
|
|
@@ -639,7 +640,7 @@ export declare const Loader: ({ variant, icon, size, className, ...props }: Load
|
|
|
639
640
|
|
|
640
641
|
export declare interface LoaderProps extends React.ComponentProps<"svg"> {
|
|
641
642
|
variant?: "default" | "wheel";
|
|
642
|
-
icon?:
|
|
643
|
+
icon?: ReactElement;
|
|
643
644
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl";
|
|
644
645
|
}
|
|
645
646
|
|
|
@@ -743,6 +744,7 @@ declare interface Props_3 {
|
|
|
743
744
|
}
|
|
744
745
|
|
|
745
746
|
declare interface Props_4 extends ButtonProps {
|
|
747
|
+
icon?: ReactElement;
|
|
746
748
|
disabled?: boolean;
|
|
747
749
|
handleDelete: () => void;
|
|
748
750
|
}
|
|
@@ -881,14 +883,21 @@ export declare const SIZES: readonly [...string[], "auto", "full", "min", "max",
|
|
|
881
883
|
|
|
882
884
|
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
883
885
|
|
|
884
|
-
export declare const Slider: ({ size, thumbClassName, trackClassName, value, defaultValue, ...props }: SliderProps) => JSX.Element;
|
|
886
|
+
export declare const Slider: ({ name, size, label, labelClassName, labelOrientation, hint, note, error, thumbClassName, trackClassName, value: valueProp, defaultValue: defaultValueProp, ...props }: SliderProps) => JSX.Element;
|
|
885
887
|
|
|
886
888
|
declare function Slider_2({ className, trackClassName, thumbClassName, defaultValue, value, min, max, ...props }: SliderProps_2): JSX.Element;
|
|
887
889
|
|
|
888
890
|
declare interface SliderProps extends Omit<React.ComponentProps<typeof Slider_2>, "value" | "defaultValue"> {
|
|
891
|
+
name: string;
|
|
889
892
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
890
893
|
thumbClassName?: string;
|
|
891
894
|
trackClassName?: string;
|
|
895
|
+
label?: string;
|
|
896
|
+
labelClassName?: string;
|
|
897
|
+
labelOrientation?: "top" | "left";
|
|
898
|
+
hint?: string;
|
|
899
|
+
note?: string;
|
|
900
|
+
error?: string;
|
|
892
901
|
value?: number | number[];
|
|
893
902
|
defaultValue?: number | number[];
|
|
894
903
|
}
|
|
@@ -906,8 +915,8 @@ export declare interface SubmitButtonProps extends Omit<ButtonProps, "icon"> {
|
|
|
906
915
|
submittingLabel?: string;
|
|
907
916
|
submitting?: boolean;
|
|
908
917
|
disabled?: boolean;
|
|
909
|
-
icon?:
|
|
910
|
-
submittingIcon?:
|
|
918
|
+
icon?: ReactElement;
|
|
919
|
+
submittingIcon?: ReactElement;
|
|
911
920
|
noIcon?: boolean;
|
|
912
921
|
}
|
|
913
922
|
|