@still-forest/canopy 0.48.3 → 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 +17 -7
- package/dist/index.js +2080 -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';
|
|
@@ -154,7 +155,7 @@ declare interface ButtonSelectInputProps extends Omit<ButtonGroupProps, "childre
|
|
|
154
155
|
error?: string;
|
|
155
156
|
note?: string;
|
|
156
157
|
options: Option_2[];
|
|
157
|
-
secondaryOptions?:
|
|
158
|
+
secondaryOptions?: SelectPickerOption[];
|
|
158
159
|
value: string | undefined;
|
|
159
160
|
onChange: (value: string) => void;
|
|
160
161
|
buttonClassName?: string;
|
|
@@ -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
|
|
|
@@ -660,8 +661,9 @@ export declare interface NumberInputProps extends Omit<TextInputProps, "type"> {
|
|
|
660
661
|
}
|
|
661
662
|
|
|
662
663
|
declare interface Option_2 {
|
|
663
|
-
label
|
|
664
|
+
label?: string;
|
|
664
665
|
value: string;
|
|
666
|
+
icon?: React.ReactElement;
|
|
665
667
|
}
|
|
666
668
|
|
|
667
669
|
declare interface Option_3 {
|
|
@@ -742,6 +744,7 @@ declare interface Props_3 {
|
|
|
742
744
|
}
|
|
743
745
|
|
|
744
746
|
declare interface Props_4 extends ButtonProps {
|
|
747
|
+
icon?: ReactElement;
|
|
745
748
|
disabled?: boolean;
|
|
746
749
|
handleDelete: () => void;
|
|
747
750
|
}
|
|
@@ -880,14 +883,21 @@ export declare const SIZES: readonly [...string[], "auto", "full", "min", "max",
|
|
|
880
883
|
|
|
881
884
|
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
882
885
|
|
|
883
|
-
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;
|
|
884
887
|
|
|
885
888
|
declare function Slider_2({ className, trackClassName, thumbClassName, defaultValue, value, min, max, ...props }: SliderProps_2): JSX.Element;
|
|
886
889
|
|
|
887
890
|
declare interface SliderProps extends Omit<React.ComponentProps<typeof Slider_2>, "value" | "defaultValue"> {
|
|
891
|
+
name: string;
|
|
888
892
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
889
893
|
thumbClassName?: string;
|
|
890
894
|
trackClassName?: string;
|
|
895
|
+
label?: string;
|
|
896
|
+
labelClassName?: string;
|
|
897
|
+
labelOrientation?: "top" | "left";
|
|
898
|
+
hint?: string;
|
|
899
|
+
note?: string;
|
|
900
|
+
error?: string;
|
|
891
901
|
value?: number | number[];
|
|
892
902
|
defaultValue?: number | number[];
|
|
893
903
|
}
|
|
@@ -905,8 +915,8 @@ export declare interface SubmitButtonProps extends Omit<ButtonProps, "icon"> {
|
|
|
905
915
|
submittingLabel?: string;
|
|
906
916
|
submitting?: boolean;
|
|
907
917
|
disabled?: boolean;
|
|
908
|
-
icon?:
|
|
909
|
-
submittingIcon?:
|
|
918
|
+
icon?: ReactElement;
|
|
919
|
+
submittingIcon?: ReactElement;
|
|
910
920
|
noIcon?: boolean;
|
|
911
921
|
}
|
|
912
922
|
|