@still-forest/canopy 0.55.0 → 0.56.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 +88 -122
- package/dist/index.js +8727 -8607
- package/package.json +19 -20
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Accordion as Accordion_3 } from '@base-ui/react/accordion';
|
|
2
2
|
import { Button as Button_3 } from '@base-ui/react/button';
|
|
3
|
-
import { Checkbox as
|
|
3
|
+
import { Checkbox as Checkbox_2 } from '@base-ui/react/checkbox';
|
|
4
4
|
import { ClassProp } from 'class-variance-authority/types';
|
|
5
5
|
import { ClassValue } from 'clsx';
|
|
6
6
|
import { Collapsible as Collapsible_3 } from '@base-ui/react/collapsible';
|
|
@@ -13,8 +13,8 @@ import { Popover as Popover_3 } from '@base-ui/react/popover';
|
|
|
13
13
|
import * as React_2 from 'react';
|
|
14
14
|
import { ReactElement } from 'react';
|
|
15
15
|
import { ReactNode } from 'react';
|
|
16
|
-
import { Slider as
|
|
17
|
-
import { Switch as
|
|
16
|
+
import { Slider as Slider_2 } from '@base-ui/react/slider';
|
|
17
|
+
import { Switch as Switch_2 } from '@base-ui/react/switch';
|
|
18
18
|
import { Tabs as Tabs_2 } from '@base-ui/react/tabs';
|
|
19
19
|
import { Tooltip as Tooltip_3 } from '@base-ui/react/tooltip';
|
|
20
20
|
import { useRender } from '@base-ui/react/use-render';
|
|
@@ -158,9 +158,9 @@ export declare interface ButtonProps extends React.ComponentProps<"button"> {
|
|
|
158
158
|
render?: React.ComponentProps<typeof Button_2>["render"];
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
export declare const
|
|
161
|
+
export declare const ButtonRadioField: ({ name, label, hint, options, error, note, secondaryOptions, value, onChange, buttonClassName, secondaryButtonClassName, className: groupClassName, ...props }: ButtonRadioFieldProps) => JSX.Element;
|
|
162
162
|
|
|
163
|
-
declare interface
|
|
163
|
+
declare interface ButtonRadioFieldProps extends Omit<ButtonGroupProps, "children" | "onChange"> {
|
|
164
164
|
name?: string;
|
|
165
165
|
label?: string;
|
|
166
166
|
hint?: string;
|
|
@@ -178,7 +178,7 @@ export declare type ButtonVariant = "default" | "primary" | "secondary" | "destr
|
|
|
178
178
|
|
|
179
179
|
declare const buttonVariants: (props?: ({
|
|
180
180
|
variant?: "link" | "info" | "success" | "warning" | "error" | "default" | "secondary" | "destructive" | "outline" | "ghost" | "unstyled" | null | undefined;
|
|
181
|
-
size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | "
|
|
181
|
+
size?: "default" | "unstyled" | "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
182
182
|
} & ClassProp) | undefined) => string;
|
|
183
183
|
|
|
184
184
|
export declare const Card: CardComponent;
|
|
@@ -222,11 +222,11 @@ declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div"
|
|
|
222
222
|
|
|
223
223
|
declare type CardTitleProps = React.ComponentProps<typeof CardTitle>;
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
declare function Checkbox({ className, ...props }: Checkbox_2.Root.Props): JSX.Element;
|
|
226
226
|
|
|
227
|
-
declare
|
|
227
|
+
export declare const CheckboxField: ({ label, name, value, checked, onCheckedChange, note, error, labelClassName, hint, ...props }: CheckboxFieldProps) => JSX.Element;
|
|
228
228
|
|
|
229
|
-
export declare interface
|
|
229
|
+
export declare interface CheckboxFieldProps extends React.ComponentProps<typeof Checkbox> {
|
|
230
230
|
label: string;
|
|
231
231
|
labelClassName?: string;
|
|
232
232
|
name: string;
|
|
@@ -282,14 +282,14 @@ export declare const CURSOR_TYPES: readonly ["arrow", "pointer", "text", "not-al
|
|
|
282
282
|
|
|
283
283
|
export declare type CursorType = (typeof CURSOR_TYPES)[number];
|
|
284
284
|
|
|
285
|
-
export declare const
|
|
285
|
+
export declare const DateField: ({ name, label, placeholder, note, className, size, ...props }: DateFieldProps) => JSX.Element;
|
|
286
286
|
|
|
287
|
-
declare interface
|
|
287
|
+
declare interface DateFieldProps extends Omit<TextFieldProps, "type"> {
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
export declare const
|
|
290
|
+
export declare const DatePickerField: ({ onDateSelection, initialValue, className, size, error, }: DatePickerFieldProps) => JSX.Element;
|
|
291
291
|
|
|
292
|
-
declare interface
|
|
292
|
+
declare interface DatePickerFieldProps {
|
|
293
293
|
onDateSelection: (date: Date) => void;
|
|
294
294
|
initialValue?: Date;
|
|
295
295
|
className?: string;
|
|
@@ -376,16 +376,9 @@ export declare type EmptyProps = React.ComponentProps<typeof Empty_2> & {
|
|
|
376
376
|
|
|
377
377
|
declare type EmptyTitleProps = React.ComponentProps<typeof Heading>;
|
|
378
378
|
|
|
379
|
-
export declare const
|
|
379
|
+
export declare const ErrorPage: ({ headline, message, children, ...props }: ErrorPageProps) => JSX.Element;
|
|
380
380
|
|
|
381
|
-
declare interface
|
|
382
|
-
error: Error;
|
|
383
|
-
onRetry?: () => void;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
export declare const ErrorOverlay: ({ headline, message, children, ...props }: ErrorOverlayProps) => JSX.Element;
|
|
387
|
-
|
|
388
|
-
export declare interface ErrorOverlayProps extends InterstitialProps {
|
|
381
|
+
export declare interface ErrorPageProps extends InterstitialProps {
|
|
389
382
|
}
|
|
390
383
|
|
|
391
384
|
export declare const Flex: typeof FlexComponent & {
|
|
@@ -523,8 +516,6 @@ export declare interface HintProps {
|
|
|
523
516
|
className?: string;
|
|
524
517
|
}
|
|
525
518
|
|
|
526
|
-
export declare const Input: ({ type, step, ...props }: InputProps) => JSX.Element;
|
|
527
|
-
|
|
528
519
|
export declare const InputError: ({ id, message }: InputErrorProps) => JSX.Element;
|
|
529
520
|
|
|
530
521
|
declare interface InputErrorProps {
|
|
@@ -547,7 +538,7 @@ declare const inputGroupAddonVariants: (props?: ({
|
|
|
547
538
|
} & ClassProp) | undefined) => string;
|
|
548
539
|
|
|
549
540
|
declare type InputGroupComponent = React.FC<InputGroupProps> & {
|
|
550
|
-
Input: React.FC<
|
|
541
|
+
Input: React.FC<ComponentProps<"input">>;
|
|
551
542
|
Addon: React.FC<InputGroupAddonProps>;
|
|
552
543
|
Button: React.FC<ButtonProps>;
|
|
553
544
|
Text: React.FC<InputGroupTextProps>;
|
|
@@ -558,27 +549,12 @@ export declare type InputGroupProps = React.ComponentProps<typeof InputGroup_2>
|
|
|
558
549
|
children: ReactNode;
|
|
559
550
|
};
|
|
560
551
|
|
|
561
|
-
declare interface InputGroupProps_2 {
|
|
562
|
-
label?: string;
|
|
563
|
-
labelFor?: string;
|
|
564
|
-
className?: string;
|
|
565
|
-
labelClassName?: string;
|
|
566
|
-
children: ReactNode;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
552
|
declare function InputGroupText({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
|
|
570
553
|
|
|
571
|
-
declare
|
|
572
|
-
|
|
573
|
-
declare type InputGroupTextareaProps = React.ComponentProps<typeof InputGroupTextarea>;
|
|
554
|
+
declare type InputGroupTextareaProps = React.ComponentProps<"textarea">;
|
|
574
555
|
|
|
575
556
|
declare type InputGroupTextProps = React.ComponentProps<typeof InputGroupText>;
|
|
576
557
|
|
|
577
|
-
export declare interface InputProps extends TextInputProps {
|
|
578
|
-
type?: "text" | "number" | "date" | "email" | "password";
|
|
579
|
-
step?: string;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
558
|
export declare const Interstitial: ({ variant, iconComponent, headline, headlineLevel, headlineWeight, message, messageClassName, children, iconSize, iconClassName, fullScreen, containerClassName, }: InterstitialProps) => JSX.Element;
|
|
583
559
|
|
|
584
560
|
export declare interface InterstitialProps {
|
|
@@ -683,8 +659,6 @@ declare interface LayoutProps extends FlexProps {
|
|
|
683
659
|
|
|
684
660
|
export declare type LayoutVariant = (typeof LAYOUT_VARIANTS)[number];
|
|
685
661
|
|
|
686
|
-
export declare const LegacyInputGroup: ({ label, labelFor, className, labelClassName, children, }: InputGroupProps_2) => JSX.Element;
|
|
687
|
-
|
|
688
662
|
export declare const Loader: ({ variant, icon, size, className, ...props }: LoaderProps) => JSX.Element;
|
|
689
663
|
|
|
690
664
|
export declare interface LoaderProps extends React.ComponentProps<"svg"> {
|
|
@@ -693,19 +667,56 @@ export declare interface LoaderProps extends React.ComponentProps<"svg"> {
|
|
|
693
667
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl";
|
|
694
668
|
}
|
|
695
669
|
|
|
670
|
+
export declare const LoadingPage: ({ iconComponent, message, iconSize, iconClassName, ...props }: InterstitialProps) => JSX.Element;
|
|
671
|
+
|
|
696
672
|
export declare const MenuItemText: ({ children }: {
|
|
697
673
|
children: React.ReactNode;
|
|
698
674
|
}) => JSX.Element;
|
|
699
675
|
|
|
700
676
|
export declare const Modal: ({ trigger, children, title, description, open, onOpenChange, ariaDescription }: Props_2) => JSX.Element;
|
|
701
677
|
|
|
678
|
+
export declare const NativeSelectField: ({ name, defaultValue, options, label, labelClassName, placeholder, hint, note, className, value, onChange, error, size, id: idProp, ...props }: NativeSelectFieldProps) => JSX.Element;
|
|
679
|
+
|
|
680
|
+
export declare interface NativeSelectFieldOption {
|
|
681
|
+
value: string;
|
|
682
|
+
label: string;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
export declare interface NativeSelectFieldOptionGroup {
|
|
686
|
+
label: string;
|
|
687
|
+
options: NativeSelectFieldOption[];
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export declare interface NativeSelectFieldProps extends Omit<ComponentProps<"select">, "dir" | "size" | "onChange"> {
|
|
691
|
+
name: string;
|
|
692
|
+
value?: string;
|
|
693
|
+
onChange: (value: string) => void;
|
|
694
|
+
options: NativeSelectFieldOption[] | NativeSelectFieldOptionGroup[];
|
|
695
|
+
label?: string;
|
|
696
|
+
labelClassName?: string;
|
|
697
|
+
placeholder?: string;
|
|
698
|
+
hint?: string;
|
|
699
|
+
note?: string;
|
|
700
|
+
className?: string;
|
|
701
|
+
error?: string;
|
|
702
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
export declare const NotFoundPage: ({ onBack, headline, message, backIcon, backLabel, ...props }: NotFoundPageProps) => JSX.Element;
|
|
706
|
+
|
|
707
|
+
declare interface NotFoundPageProps extends InterstitialProps {
|
|
708
|
+
backIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
709
|
+
backLabel?: string;
|
|
710
|
+
onBack?: () => void;
|
|
711
|
+
}
|
|
712
|
+
|
|
702
713
|
/**
|
|
703
714
|
+ * A specialized input component for numeric values.
|
|
704
|
-
+ * Extends
|
|
715
|
+
+ * Extends TextField with number-specific functionality.
|
|
705
716
|
+ */
|
|
706
|
-
export declare const
|
|
717
|
+
export declare const NumberField: ({ name, label, placeholder, note, step, className, ...props }: NumberFieldProps) => JSX.Element;
|
|
707
718
|
|
|
708
|
-
export declare interface
|
|
719
|
+
export declare interface NumberFieldProps extends Omit<TextFieldProps, "type"> {
|
|
709
720
|
step?: string;
|
|
710
721
|
}
|
|
711
722
|
|
|
@@ -725,26 +736,19 @@ export declare type Overflow = (typeof OVERFLOWS)[number];
|
|
|
725
736
|
|
|
726
737
|
export declare const OVERFLOWS: readonly ["auto", "scroll", "hidden", "clip", "visible"];
|
|
727
738
|
|
|
728
|
-
export declare const PageLoader: ({ iconComponent, message, iconSize, iconClassName, ...props }: PageLoaderProps) => JSX.Element;
|
|
729
|
-
|
|
730
|
-
declare interface PageLoaderProps extends InterstitialProps {
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
export declare const PageNotFound: ({ onBack, headline, message, backIcon, backLabel, ...props }: PageNotFoundProps) => JSX.Element;
|
|
734
|
-
|
|
735
|
-
declare interface PageNotFoundProps extends InterstitialProps {
|
|
736
|
-
backIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
737
|
-
backLabel?: string;
|
|
738
|
-
onBack?: () => void;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
739
|
export declare const Pagination: ({ pageCount, currentPage, onChange }: Props_3) => JSX.Element;
|
|
742
740
|
|
|
743
741
|
export declare const Paragraph: ({ children, className, as, ...props }: TextProps) => JSX.Element;
|
|
744
742
|
|
|
745
|
-
export declare const
|
|
743
|
+
export declare const PasswordField: ({ name, size, label, labelOrientation, note, error, id, ...props }: PasswordFieldProps) => JSX.Element;
|
|
746
744
|
|
|
747
|
-
declare interface
|
|
745
|
+
declare interface PasswordFieldProps extends Omit<ComponentProps<"input">, "type" | "size"> {
|
|
746
|
+
name: string;
|
|
747
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
748
|
+
label?: string;
|
|
749
|
+
labelOrientation?: "top" | "left";
|
|
750
|
+
note?: string;
|
|
751
|
+
error?: string;
|
|
748
752
|
}
|
|
749
753
|
|
|
750
754
|
export declare const Popover: PopoverComponent;
|
|
@@ -802,9 +806,9 @@ declare interface Props_5 extends SidebarProps {
|
|
|
802
806
|
children?: React.ReactNode;
|
|
803
807
|
}
|
|
804
808
|
|
|
805
|
-
export declare const
|
|
809
|
+
export declare const RadioField: ({ cols, gap, label, name, options, value, size, onChange, error, labelClassName, }: RadioFieldProps) => JSX.Element;
|
|
806
810
|
|
|
807
|
-
declare interface
|
|
811
|
+
declare interface RadioFieldProps {
|
|
808
812
|
cols?: GridCols;
|
|
809
813
|
gap?: Gap;
|
|
810
814
|
name: string;
|
|
@@ -821,35 +825,18 @@ export declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "x
|
|
|
821
825
|
|
|
822
826
|
export declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
|
|
823
827
|
|
|
824
|
-
export declare const
|
|
825
|
-
|
|
826
|
-
export declare interface SelectInputOption {
|
|
827
|
-
value: string;
|
|
828
|
-
label: string;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
export declare interface SelectInputOptionGroup {
|
|
832
|
-
label: string;
|
|
833
|
-
options: SelectInputOption[];
|
|
834
|
-
}
|
|
828
|
+
export declare const SelectPickerField: ({ options, value, placeholder, onChange, name, renderSelected, dropdownClassName, }: SelectPickerFieldProps) => JSX.Element;
|
|
835
829
|
|
|
836
|
-
export declare interface
|
|
830
|
+
export declare interface SelectPickerFieldProps {
|
|
837
831
|
name: string;
|
|
838
|
-
value?: string;
|
|
832
|
+
value?: string | null;
|
|
839
833
|
onChange: (value: string) => void;
|
|
840
|
-
options:
|
|
841
|
-
label?: string;
|
|
842
|
-
labelClassName?: string;
|
|
834
|
+
options: SelectPickerOption[] | SelectPickerOptionGroup[];
|
|
843
835
|
placeholder?: string;
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
className?: string;
|
|
847
|
-
error?: string;
|
|
848
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
836
|
+
renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
|
|
837
|
+
dropdownClassName?: string;
|
|
849
838
|
}
|
|
850
839
|
|
|
851
|
-
export declare const SelectPicker: ({ options, value, placeholder, onChange, name, renderSelected, dropdownClassName, }: SelectPickerProps) => JSX.Element;
|
|
852
|
-
|
|
853
840
|
export declare interface SelectPickerOption {
|
|
854
841
|
icon?: string;
|
|
855
842
|
label: string;
|
|
@@ -864,16 +851,6 @@ export declare interface SelectPickerOptionGroup {
|
|
|
864
851
|
|
|
865
852
|
export declare type SelectPickerOptionValue = string;
|
|
866
853
|
|
|
867
|
-
export declare interface SelectPickerProps {
|
|
868
|
-
name: string;
|
|
869
|
-
value?: string | null;
|
|
870
|
-
onChange: (value: string) => void;
|
|
871
|
-
options: SelectPickerOption[] | SelectPickerOptionGroup[];
|
|
872
|
-
placeholder?: string;
|
|
873
|
-
renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
|
|
874
|
-
dropdownClassName?: string;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
854
|
export declare const Separator: ({ className, orientation, gap, ...props }: SeparatorProps) => JSX.Element;
|
|
878
855
|
|
|
879
856
|
declare interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -929,11 +906,11 @@ export declare const SIZES: readonly [...string[], "auto", "full", "min", "max",
|
|
|
929
906
|
|
|
930
907
|
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
931
908
|
|
|
932
|
-
|
|
909
|
+
declare function Slider({ className, defaultValue, value, min, max, thumbClassName, trackClassName, ...props }: SliderProps): JSX.Element;
|
|
933
910
|
|
|
934
|
-
declare
|
|
911
|
+
export declare const SliderField: ({ name, size, label, labelClassName, labelOrientation, hint, note, error, thumbClassName, trackClassName, value: valueProp, defaultValue: defaultValueProp, ...props }: SliderFieldProps) => JSX.Element;
|
|
935
912
|
|
|
936
|
-
declare interface
|
|
913
|
+
declare interface SliderFieldProps extends Omit<React.ComponentProps<typeof Slider>, "value" | "defaultValue"> {
|
|
937
914
|
name: string;
|
|
938
915
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
939
916
|
thumbClassName?: string;
|
|
@@ -948,7 +925,7 @@ declare interface SliderProps extends Omit<React.ComponentProps<typeof Slider_2>
|
|
|
948
925
|
defaultValue?: number | number[];
|
|
949
926
|
}
|
|
950
927
|
|
|
951
|
-
declare interface
|
|
928
|
+
declare interface SliderProps extends Slider_2.Root.Props {
|
|
952
929
|
thumbClassName?: string;
|
|
953
930
|
trackClassName?: string;
|
|
954
931
|
}
|
|
@@ -966,19 +943,10 @@ export declare interface SubmitButtonProps extends Omit<ButtonProps, "icon"> {
|
|
|
966
943
|
noIcon?: boolean;
|
|
967
944
|
}
|
|
968
945
|
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
declare function Switch_2({ className, size, ...props }: Switch_3.Root.Props & {
|
|
946
|
+
declare function Switch({ className, size, ...props }: Switch_2.Root.Props & {
|
|
972
947
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
973
948
|
}): JSX.Element;
|
|
974
949
|
|
|
975
|
-
declare interface SwitchProps extends React.ComponentProps<typeof Switch_2> {
|
|
976
|
-
id?: string;
|
|
977
|
-
label?: string | (string | null)[];
|
|
978
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
979
|
-
labelClassName?: string | string[];
|
|
980
|
-
}
|
|
981
|
-
|
|
982
950
|
export declare const Table: TableComponent;
|
|
983
951
|
|
|
984
952
|
export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
|
|
@@ -1029,9 +997,9 @@ export declare const TEXT_TRACKINGS: readonly ["tighter", "tight", "normal", "wi
|
|
|
1029
997
|
|
|
1030
998
|
export declare type TextAlign = (typeof TEXT_ALIGNS)[number];
|
|
1031
999
|
|
|
1032
|
-
export declare function
|
|
1000
|
+
export declare function TextareaField({ label, name, note, placeholder, className, error, labelClassName, hint, ...props }: TextareaFieldProps): JSX.Element;
|
|
1033
1001
|
|
|
1034
|
-
export declare interface
|
|
1002
|
+
export declare interface TextareaFieldProps extends React.ComponentProps<"textarea"> {
|
|
1035
1003
|
name: string;
|
|
1036
1004
|
label?: string;
|
|
1037
1005
|
labelClassName?: string;
|
|
@@ -1062,9 +1030,9 @@ declare interface TextBaseProps {
|
|
|
1062
1030
|
as?: TypographyElement;
|
|
1063
1031
|
}
|
|
1064
1032
|
|
|
1065
|
-
export declare const
|
|
1033
|
+
export declare const TextField: ({ name, type, placeholder, label, labelClassName, labelOrientation, hint, note, size, className, error, ...props }: TextFieldProps) => JSX.Element;
|
|
1066
1034
|
|
|
1067
|
-
export declare interface
|
|
1035
|
+
export declare interface TextFieldProps extends Omit<React.ComponentProps<"input">, "size"> {
|
|
1068
1036
|
name: string;
|
|
1069
1037
|
type?: string;
|
|
1070
1038
|
placeholder?: string;
|
|
@@ -1105,15 +1073,13 @@ export declare type TextTracking = (typeof TEXT_TRACKINGS)[number];
|
|
|
1105
1073
|
|
|
1106
1074
|
export declare type Theme = "system" | "light" | "dark";
|
|
1107
1075
|
|
|
1108
|
-
export declare const
|
|
1076
|
+
export declare const ToggleField: ({ id: idProp, label, className, labelClassName, size, ...props }: ToggleFieldProps) => JSX.Element;
|
|
1109
1077
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
containerClassName?: string;
|
|
1116
|
-
buttonClassName?: string;
|
|
1078
|
+
declare interface ToggleFieldProps extends React.ComponentProps<typeof Switch> {
|
|
1079
|
+
id?: string;
|
|
1080
|
+
label?: string | (string | null)[];
|
|
1081
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
1082
|
+
labelClassName?: string | string[];
|
|
1117
1083
|
}
|
|
1118
1084
|
|
|
1119
1085
|
export declare const Tooltip: TooltipComponent;
|