@czi-sds/components 20.0.1 → 20.1.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.cjs.d.ts +130 -56
- package/dist/index.cjs.js +450 -247
- package/dist/index.esm.d.ts +130 -56
- package/dist/index.esm.js +450 -249
- package/dist/tailwind.json +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/variables.css +5 -3
- package/dist/variables.scss +5 -3
- package/package.json +2 -2
package/dist/index.cjs.d.ts
CHANGED
|
@@ -4,15 +4,17 @@ import { AccordionProps as RawAccordionProps } from "@mui/material";
|
|
|
4
4
|
import { AccordionSummaryProps as RawAccordionSummaryProps } from "@mui/material";
|
|
5
5
|
import { AutocompleteChangeDetails as AutocompleteChangeDetails$0 } from "@mui/material";
|
|
6
6
|
import { AutocompleteChangeReason as AutocompleteChangeReason$0 } from "@mui/material";
|
|
7
|
+
import { AutocompleteCloseReason as AutocompleteCloseReason$0 } from "@mui/material";
|
|
7
8
|
import { AutocompleteValue as AutocompleteValue$0 } from "@mui/material";
|
|
8
9
|
import { AutocompleteProps as MuiAutocompleteProps } from "@mui/material";
|
|
9
10
|
import { TextFieldProps as RawTextFieldSearchProps } from "@mui/material";
|
|
10
11
|
import { MenuItemProps as RawMenuItemProps } from "@mui/material";
|
|
11
12
|
import { ClickAwayListenerProps as MUIClickAwayListenerProps } from "@mui/material";
|
|
12
|
-
import { IconButtonProps as RawButtonIconProps } from "@mui/material";
|
|
13
13
|
import { ButtonProps as RawButtonProps } from "@mui/material";
|
|
14
|
+
import { IconButtonProps as RawButtonIconProps } from "@mui/material";
|
|
14
15
|
import { TooltipProps as RawTooltipProps } from "@mui/material";
|
|
15
16
|
import { ChipProps as RawChipProps } from "@mui/material";
|
|
17
|
+
import { ButtonProps as ButtonProps$0 } from "@mui/material";
|
|
16
18
|
import { DialogProps as RawDialogProps } from "@mui/material";
|
|
17
19
|
import { DialogActionsProps as RawDialogActionsProps } from "@mui/material";
|
|
18
20
|
import { DialogContentProps as RawDialogContentProps } from "@mui/material";
|
|
@@ -34,7 +36,7 @@ import { CSSProperties, ReactElement, ReactNode, SyntheticEvent, ComponentType }
|
|
|
34
36
|
import { Theme, ThemeOptions, TypographyStyle, PaletteOptions } from "@mui/material/styles";
|
|
35
37
|
import { SerializedStyles } from "@emotion/react";
|
|
36
38
|
import { AlertProps } from "@mui/lab";
|
|
37
|
-
import { AutocompleteChangeDetails, AutocompleteChangeReason, AutocompleteValue } from "@mui/base";
|
|
39
|
+
import { AutocompleteChangeDetails, AutocompleteChangeReason, AutocompleteCloseReason, AutocompleteValue } from "@mui/base";
|
|
38
40
|
import { AlertTitleProps } from "@mui/material/AlertTitle";
|
|
39
41
|
import { AutocompleteValue as AutocompleteValue$1 } from "@mui/material/useAutocomplete";
|
|
40
42
|
declare const AccordionDetails: (props: AccordionDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -160,6 +162,7 @@ interface SDSTextPalette {
|
|
|
160
162
|
beta: string;
|
|
161
163
|
info: string;
|
|
162
164
|
negative: string;
|
|
165
|
+
neutral: string;
|
|
163
166
|
notice: string;
|
|
164
167
|
positive: string;
|
|
165
168
|
}
|
|
@@ -472,12 +475,21 @@ interface Borders {
|
|
|
472
475
|
info: Border;
|
|
473
476
|
link: Border;
|
|
474
477
|
negative: Border;
|
|
478
|
+
neutral: Border;
|
|
475
479
|
none: string;
|
|
476
480
|
notice: Border;
|
|
477
481
|
positive: Border;
|
|
478
482
|
}
|
|
479
483
|
declare const defaultTheme: import("@mui/material/styles").Theme;
|
|
484
|
+
/**
|
|
485
|
+
* (masoudmanson): This is to keep the old defaultAppTheme export for backward compatibility.
|
|
486
|
+
*/
|
|
487
|
+
declare const defaultAppTheme: import("@mui/material/styles").Theme;
|
|
480
488
|
declare const SDSAppTheme: AppTheme;
|
|
489
|
+
/**
|
|
490
|
+
* This function creates the theme options for the MUI theme provider
|
|
491
|
+
*/
|
|
492
|
+
declare function makeThemeOptions(appTheme: AppTheme): SDSThemeOptions;
|
|
481
493
|
declare function focusVisibleA11yStyle(): string;
|
|
482
494
|
// (thuang): Somehow this namespace needs to be globally unique to prevent
|
|
483
495
|
// namespace collisions.
|
|
@@ -557,6 +569,10 @@ type AccordionProps = RawAccordionProps & AccordionExtraProps;
|
|
|
557
569
|
declare const Accordion: React.ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
558
570
|
/**
|
|
559
571
|
* @see https://mui.com/material-ui/react-alert/
|
|
572
|
+
*
|
|
573
|
+
* @deprecated
|
|
574
|
+
* This component is deprecated and will be removed in the next major version.
|
|
575
|
+
* Please use `Callout` or `Notification` instead.
|
|
560
576
|
*/
|
|
561
577
|
declare const Alert: (props: AlertProps) => JSX.Element;
|
|
562
578
|
interface IconNameToSizes {
|
|
@@ -776,6 +792,8 @@ interface ExtraAutocompleteProps<T, Multiple, DisableClearable, FreeSolo> extend
|
|
|
776
792
|
onChange?: (event: React.SyntheticEvent, value: AutocompleteValue$0<T, Multiple, DisableClearable, FreeSolo>, reason: AutocompleteChangeReason$0, details?: AutocompleteChangeDetails$0<T>) => void;
|
|
777
793
|
InputBaseProps?: Partial<InputSearchProps>;
|
|
778
794
|
label?: string;
|
|
795
|
+
onClickAway?: (event?: MouseEvent | TouchEvent, reason?: AutocompleteCloseReason$0) => void;
|
|
796
|
+
onClick?: (event?: TouchEvent | MouseEvent) => void;
|
|
779
797
|
}
|
|
780
798
|
type CustomAutocompleteProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> = Omit<MuiAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput" | "nonce" | "rev" | "rel" | "autoFocus" | "content">;
|
|
781
799
|
type AutocompleteBaseProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> = CustomAutocompleteProps<T, Multiple, DisableClearable, FreeSolo> & ExtraAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>;
|
|
@@ -809,7 +827,8 @@ interface ExtraAutocompleteMultiColumnProps<T, Multiple extends boolean | undefi
|
|
|
809
827
|
PopperComponent?: React.JSXElementConstructor<PopperProps>;
|
|
810
828
|
PopperPlacement?: "bottom-start" | "top-start" | "bottom-end" | "top-end";
|
|
811
829
|
children?: JSX.Element | null;
|
|
812
|
-
onClickAway?: (event
|
|
830
|
+
onClickAway?: (event?: MouseEvent | TouchEvent, reason?: AutocompleteCloseReason$0) => void;
|
|
831
|
+
onClick?: (event?: TouchEvent | MouseEvent) => void;
|
|
813
832
|
ClickAwayListenerProps?: Partial<MUIClickAwayListenerProps>;
|
|
814
833
|
options: AutocompleteMultiColumnOption<T, Multiple, DisableClearable, FreeSolo>[];
|
|
815
834
|
value?: AutocompleteMultiColumnValue<T, Multiple, DisableClearable, FreeSolo>;
|
|
@@ -836,7 +855,8 @@ interface ExtraAutocompleteProps$0<T, Multiple extends boolean | undefined, Disa
|
|
|
836
855
|
options: SDSAutocompleteOptions<T, Multiple, DisableClearable, FreeSolo>;
|
|
837
856
|
PopperBaseProps?: Partial<PopperProps>;
|
|
838
857
|
value?: SDSAutocompleteValue<T, Multiple, DisableClearable, FreeSolo>;
|
|
839
|
-
onClickAway?: (event
|
|
858
|
+
onClickAway?: (event?: MouseEvent | TouchEvent, reason?: AutocompleteCloseReason) => void;
|
|
859
|
+
onClick?: (event?: TouchEvent | MouseEvent) => void;
|
|
840
860
|
onChange?: SDSAutocompleteOnChange<T, Multiple, DisableClearable, FreeSolo>;
|
|
841
861
|
count?: number;
|
|
842
862
|
icon?: ReactElement;
|
|
@@ -844,36 +864,65 @@ interface ExtraAutocompleteProps$0<T, Multiple extends boolean | undefined, Disa
|
|
|
844
864
|
}
|
|
845
865
|
type AutocompleteProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> = Omit<AutocompleteBaseProps<T, Multiple, DisableClearable, FreeSolo>, "options" | "value" | "onChange"> & ExtraAutocompleteProps$0<T, Multiple, DisableClearable, FreeSolo>;
|
|
846
866
|
declare const Autocomplete$0: <T extends DefaultAutocompleteOption, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined>(props: AutocompleteProps<T, Multiple, DisableClearable, FreeSolo>) => JSX.Element;
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
type ButtonIconProps<IconName extends keyof IconNameToSizes, ButtonIconSize extends keyof ButtonIconSizeToTypes> = ButtonIconExtraProps<ButtonIconSize> & RawButtonIconProps & ButtonIconInternalProps<IconName>;
|
|
867
|
+
type ButtonSize = "small" | "medium" | "large";
|
|
868
|
+
type SdsProps = {
|
|
869
|
+
sdsStyle?: "icon";
|
|
870
|
+
sdsType?: "primary" | "secondary" | "tertiary";
|
|
871
|
+
isAllCaps?: boolean;
|
|
872
|
+
isRounded?: boolean;
|
|
873
|
+
sdsSize?: ButtonSize;
|
|
874
|
+
icon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
875
|
+
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>>;
|
|
876
|
+
} | {
|
|
877
|
+
sdsStyle?: "minimal";
|
|
878
|
+
sdsType?: "primary" | "secondary";
|
|
879
|
+
isAllCaps?: boolean;
|
|
880
|
+
isRounded?: boolean;
|
|
881
|
+
} | {
|
|
882
|
+
sdsStyle?: "rounded" | "square";
|
|
883
|
+
sdsType?: "primary" | "secondary" | "destructive";
|
|
884
|
+
isAllCaps?: boolean;
|
|
885
|
+
isRounded?: boolean;
|
|
886
|
+
};
|
|
887
|
+
type ButtonProps = RawButtonProps & SdsProps;
|
|
869
888
|
/**
|
|
870
|
-
* @see https://mui.com/material-ui/react-button
|
|
889
|
+
* @see https://mui.com/material-ui/react-button/
|
|
871
890
|
*/
|
|
872
|
-
declare const
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
891
|
+
declare const Button: React.ForwardRefExoticComponent<(Omit<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
892
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
893
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "variant" | "href" | "disableFocusRipple" | "disableElevation" | "endIcon" | "fullWidth" | "size" | "startIcon"> & {
|
|
894
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
895
|
+
} & {
|
|
896
|
+
sdsStyle?: "icon" | undefined;
|
|
897
|
+
sdsType?: "primary" | "secondary" | "tertiary" | undefined;
|
|
898
|
+
isAllCaps?: boolean | undefined;
|
|
899
|
+
isRounded?: boolean | undefined;
|
|
900
|
+
sdsSize?: ButtonSize | undefined;
|
|
901
|
+
icon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps, string | React.JSXElementConstructor<any>> | undefined;
|
|
902
|
+
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>> | undefined;
|
|
903
|
+
}, "ref"> | Omit<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
904
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
905
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "variant" | "href" | "disableFocusRipple" | "disableElevation" | "endIcon" | "fullWidth" | "size" | "startIcon"> & {
|
|
906
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
907
|
+
} & {
|
|
908
|
+
sdsStyle?: "minimal" | undefined;
|
|
909
|
+
sdsType?: "primary" | "secondary" | undefined;
|
|
910
|
+
isAllCaps?: boolean | undefined;
|
|
911
|
+
isRounded?: boolean | undefined;
|
|
912
|
+
}, "ref"> | Omit<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
913
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
914
|
+
}, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "variant" | "href" | "disableFocusRipple" | "disableElevation" | "endIcon" | "fullWidth" | "size" | "startIcon"> & {
|
|
915
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
916
|
+
} & {
|
|
917
|
+
sdsStyle?: "square" | "rounded" | undefined;
|
|
918
|
+
sdsType?: "primary" | "secondary" | "destructive" | undefined;
|
|
919
|
+
isAllCaps?: boolean | undefined;
|
|
920
|
+
isRounded?: boolean | undefined;
|
|
921
|
+
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
922
|
+
interface BannerExtraProps extends CommonThemeProps {
|
|
923
|
+
sdsType: "primary" | "secondary" | "tertiary";
|
|
924
|
+
}
|
|
925
|
+
interface BannerProps extends BannerExtraProps {
|
|
877
926
|
children: React.ReactNode;
|
|
878
927
|
icon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
879
928
|
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>>;
|
|
@@ -881,27 +930,14 @@ interface BannerProps<ButtonIconSize extends keyof ButtonIconSizeToTypes> extend
|
|
|
881
930
|
dismissible?: boolean;
|
|
882
931
|
onClose?: (e: React.MouseEvent) => void;
|
|
883
932
|
}
|
|
884
|
-
declare const Banner: React.ForwardRefExoticComponent<BannerProps
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
sdsStyle?: "minimal" | "rounded" | "square";
|
|
889
|
-
sdsType?: "primary" | "secondary";
|
|
890
|
-
}
|
|
891
|
-
// (thuang): Support `component` prop
|
|
892
|
-
// https://stackoverflow.com/a/66123108
|
|
893
|
-
type ButtonProps<C extends React.ElementType = "button"> = RawButtonProps<C, {
|
|
894
|
-
component?: C;
|
|
895
|
-
}> & SdsProps;
|
|
896
|
-
/**
|
|
897
|
-
* @see https://mui.com/material-ui/react-button/
|
|
898
|
-
*/
|
|
899
|
-
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
900
|
-
interface SdsProps$0 {
|
|
901
|
-
icon?: JSX.Element;
|
|
902
|
-
sdsStyle?: "rounded" | "square";
|
|
933
|
+
declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement | null>>;
|
|
934
|
+
type SdsProps$0 = {
|
|
935
|
+
icon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
936
|
+
sdsStyle?: "rounded" | "square" | "icon";
|
|
903
937
|
sdsType?: "primary" | "secondary";
|
|
904
|
-
|
|
938
|
+
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>>;
|
|
939
|
+
sdsSize?: "small" | "medium" | "large";
|
|
940
|
+
};
|
|
905
941
|
type ButtonDropdownProps<C extends React.ElementType = "button"> = RawButtonProps<C, {
|
|
906
942
|
component?: C;
|
|
907
943
|
}> & SdsProps$0;
|
|
@@ -909,6 +945,30 @@ type ButtonDropdownProps<C extends React.ElementType = "button"> = RawButtonProp
|
|
|
909
945
|
* @see https://mui.com/material-ui/react-button/
|
|
910
946
|
*/
|
|
911
947
|
declare const ButtonDropdown: React.ForwardRefExoticComponent<Omit<ButtonDropdownProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
948
|
+
interface ButtonIconExtraProps extends CommonThemeProps {
|
|
949
|
+
disabled?: boolean;
|
|
950
|
+
sdsSize?: "small" | "medium" | "large";
|
|
951
|
+
sdsType?: "primary" | "secondary" | "tertiary";
|
|
952
|
+
}
|
|
953
|
+
interface ButtonIconInternalProps {
|
|
954
|
+
icon: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
955
|
+
/**
|
|
956
|
+
* @deprecated
|
|
957
|
+
* (masoudmanson): This prop is deprecated and will be removed in the next major version.
|
|
958
|
+
* Please use `icon` instead.
|
|
959
|
+
*/
|
|
960
|
+
sdsIcon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
961
|
+
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>>;
|
|
962
|
+
}
|
|
963
|
+
type ButtonIconProps = ButtonIconExtraProps & RawButtonIconProps & ButtonIconInternalProps;
|
|
964
|
+
/**
|
|
965
|
+
* @see https://mui.com/material-ui/react-button/#icon-buttons
|
|
966
|
+
*
|
|
967
|
+
* @deprecated
|
|
968
|
+
* This component is deprecated and will be removed in the next major version.
|
|
969
|
+
* Please use `Button` or `ButtonDropdown` with `sdsStyle: icon` instead.
|
|
970
|
+
*/
|
|
971
|
+
declare const ButtonIcon: import("react").ForwardRefExoticComponent<Omit<ButtonIconProps, "ref"> & import("react").RefAttributes<HTMLButtonElement | null>>;
|
|
912
972
|
declare const SDS_STAGE_OPEN = "open";
|
|
913
973
|
declare const SDS_STAGE_CLOSED = "closed";
|
|
914
974
|
type CalloutIntentType = "info" | "negative" | "notice" | "positive";
|
|
@@ -1014,6 +1074,10 @@ interface ChipExtraProps extends CommonThemeProps {
|
|
|
1014
1074
|
type ChipProps = ChipExtraProps & RawChipProps;
|
|
1015
1075
|
/**
|
|
1016
1076
|
* @see https://mui.com/material-ui/react-chip/
|
|
1077
|
+
*
|
|
1078
|
+
* @deprecated
|
|
1079
|
+
* This component is deprecated and will be removed in the next major version.
|
|
1080
|
+
* Please use `Tag` or `TagFilter` instead.
|
|
1017
1081
|
*/
|
|
1018
1082
|
declare const Chip: (props: ChipProps) => JSX.Element;
|
|
1019
1083
|
interface StyleProps$1 extends CommonThemeProps {
|
|
@@ -1066,7 +1130,8 @@ interface ExtraDropdownMenuProps extends StyleProps$1 {
|
|
|
1066
1130
|
type CustomAutocompleteProps$1<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> = Omit<AutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput">;
|
|
1067
1131
|
type DropdownMenuProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> = CustomAutocompleteProps$1<T, Multiple, DisableClearable, FreeSolo> & ExtraDropdownMenuProps;
|
|
1068
1132
|
declare const DropdownMenu: <T extends DefaultAutocompleteOption, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined>(props: DropdownMenuProps<T, Multiple, DisableClearable, FreeSolo>) => JSX.Element;
|
|
1069
|
-
|
|
1133
|
+
declare const doNotForwardProps: string[];
|
|
1134
|
+
interface InputDropdownProps extends CommonThemeProps, Omit<ButtonProps$0, (typeof doNotForwardProps)[number]> {
|
|
1070
1135
|
disabled?: boolean;
|
|
1071
1136
|
intent?: "default" | "error" | "warning";
|
|
1072
1137
|
label: ReactNode;
|
|
@@ -1081,9 +1146,14 @@ interface InputDropdownProps extends CommonThemeProps {
|
|
|
1081
1146
|
value?: ReactNode;
|
|
1082
1147
|
shouldTruncateMinimalDetails?: boolean;
|
|
1083
1148
|
shouldPutAColonAfterLabel?: boolean;
|
|
1149
|
+
// (masoudmanson): This is a temporary fix for the issue where the style prop
|
|
1150
|
+
// is not correctly passed to the underlying Button component when asserting as
|
|
1151
|
+
// a React.ComponentType<InputDropdownProps>. This is a workaround until a more
|
|
1152
|
+
// permanent solution is implemented.
|
|
1153
|
+
style?: React.CSSProperties;
|
|
1084
1154
|
}
|
|
1085
1155
|
type SdsInputDropdownProps = InputDropdownProps;
|
|
1086
|
-
type InputDropdownProps$0 = SdsInputDropdownProps
|
|
1156
|
+
type InputDropdownProps$0 = SdsInputDropdownProps;
|
|
1087
1157
|
/**
|
|
1088
1158
|
* @see https://mui.com/material-ui/react-button/
|
|
1089
1159
|
*/
|
|
@@ -1318,6 +1388,10 @@ type CustomAutocompleteProps$3<T, Multiple extends boolean | undefined = undefin
|
|
|
1318
1388
|
type MenuSelectProps<T, Multiple extends boolean | undefined = undefined, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined> = CustomAutocompleteProps$3<T, Multiple, DisableClearable, FreeSolo> & MenuSelectExtraProps;
|
|
1319
1389
|
/**
|
|
1320
1390
|
* @see https://mui.com/material-ui/react-autocomplete/
|
|
1391
|
+
*
|
|
1392
|
+
* @deprecated
|
|
1393
|
+
* This component is deprecated and will be removed in the next major version.
|
|
1394
|
+
* Please use `Autocomplete` or `Dropdown` instead.
|
|
1321
1395
|
*/
|
|
1322
1396
|
declare const MenuSelect: <T extends DefaultMenuSelectOption, Multiple extends boolean | undefined = undefined, DisableClearable extends boolean | undefined = undefined, FreeSolo extends boolean | undefined = undefined>(props: MenuSelectProps<T, Multiple, DisableClearable, FreeSolo>) => JSX.Element;
|
|
1323
1397
|
interface NavigationJumpToExtraProps extends Omit<TabsProps, "indicatorColor" | "onChange">, CommonThemeProps {
|
|
@@ -1499,5 +1573,5 @@ type TooltipTableContentProps = TooltipTableExtraProps;
|
|
|
1499
1573
|
* @see https://mui.com/material-ui/react-table/
|
|
1500
1574
|
*/
|
|
1501
1575
|
declare const TooltipTableContent: (props: TooltipTableContentProps) => JSX.Element;
|
|
1502
|
-
export { AccordionDetails, AccordionHeader, AccordionProps, Accordion, Alert, AutocompleteSingleColumnOption, AutocompleteMultiColumnOption, SDSAutocompleteOptions, AutocompleteMultiColumnValue, AutocompleteSingleColumnValue, SDSAutocompleteValue, AutocompleteSingleColumnOnChange, AutocompleteMultiColumnOnChange, SDSAutocompleteOnChange, AutocompleteProps, StyledPopper as AutocompleteMultiColumnStyledPopper, StyledPaper$0 as AutocompleteSingleColumnStyledPaper, Autocomplete$0 as Autocomplete, BannerProps, Banner,
|
|
1503
|
-
export type { AutocompleteBaseProps, AutocompleteMultiColumnProps, AutocompleteOptionBasic, AutocompleteOptionComponent, DefaultAutocompleteOption,
|
|
1576
|
+
export { AccordionDetails, AccordionHeader, AccordionProps, Accordion, Alert, AutocompleteSingleColumnOption, AutocompleteMultiColumnOption, SDSAutocompleteOptions, AutocompleteMultiColumnValue, AutocompleteSingleColumnValue, SDSAutocompleteValue, AutocompleteSingleColumnOnChange, AutocompleteMultiColumnOnChange, SDSAutocompleteOnChange, AutocompleteProps, StyledPopper as AutocompleteMultiColumnStyledPopper, StyledPaper$0 as AutocompleteSingleColumnStyledPaper, Autocomplete$0 as Autocomplete, BannerProps, Banner, ButtonProps, Button, ButtonDropdownProps, ButtonDropdown, ButtonIconInternalProps, ButtonIconProps, ButtonIcon, CalloutIntentType, CalloutProps, ExposedCalloutProps, Callout, CalloutTitle, CellBasicRawProps, CellBasicProps, CellBasic, CellComponentProps, CellComponent, CellHeaderDirection, CellHeaderProps, CellHeader, Chip, InputDropdown as ComplexFilterInputDropdown, InputDropdown as DropdownInputDropdown, InputDropdown, StyledPopper$1 as ComplexFilterPopper, StyledPopper$1 as DropdownPopper, ComplexFilterProps, ComplexFilter, DialogContext, DialogProps, Dialog, DialogActionsProps, DialogActions, DialogContentProps, _default, _default as DialogContent, DialogPaperProps, DialogPaper, Subtitle$0 as DialogTitleSubtitle, Title as DialogTitleTitle, Overline as DialogTitleOverline, DialogTitleProps, DialogTitle, StyledPaper$1 as DropdownPaper, ExtraDropdownProps, DropdownProps, Dropdown, DefaultDropdownMenuOption, MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, DropdownMenuProps, DropdownMenu, SdsIconWithColor$0 as SdsIconWithColor, IconProps, Icon, CheckboxProps, InputCheckbox, InputDropdownProps$0 as InputDropdownProps, RadioContentProps, RadioProps, InputRadio, AccessibleInputSearchProps, InputSearchProps, InputSearch, InputSliderProps, InputSlider, InputTextProps, InputText, InputToggle, LinkProps$0 as LinkProps, Link, ListProps, List, ListItemLabel, ListItemProps, ListItem, ListSubheaderProps, ListSubheader, LoadingIndicatorProps$0 as LoadingIndicatorProps, LoadingIndicator, MenuProps, Menu, IconNameToSmallSizes, MenuItemExtraProps, MenuItemProps, MenuItem, DefaultMenuSelectOption, MenuSelectProps, MenuSelect, NavigationJumpToProps, NavigationJumpTo, NotificationIntentType, NotificationProps, ExposedNotificationProps, Notification, PaginationInternalProps, PaginationProps, Pagination, SingleButtonDefinition, SegmentedControlProps, SegmentedControl, SdsTableProps, TableProps, Table, TableHeaderProps, TableHeader, TableRowProps, TableRow, Tabs, TabProps$0 as TabProps, Tab, SdsTagProps, TagProps, Tag, SdsTagFilterProps, TagFilterProps, TagFilter, Tooltip, TooltipCondensedProps, TooltipCondensed, TooltipTableContent, TooltipTableContent as TooltipTable, SDSComponentPalette, SDSTextPalette, SDSTheme, SDSThemeOptions, AppTheme, Shadows, Typography, FontWeights, Corners, Spaces, Spacings, Color, Colors, AccentColor, BaseColor, BetaColor, InfoColor, NegativeColor, NeutralColor, NoticeColor, PositiveColor, SemanticComponentColors, SemanticTextColors, IconSize, IconSizes, Border, Borders, defaultTheme, defaultAppTheme, SDSAppTheme, makeThemeOptions, focusVisibleA11yStyle, fontBody, fontBodyL, fontBodyM, fontBodyS, fontBodyXs, fontBodyXxs, fontBodyXxxs, fontBodySemiboldL, fontBodySemiboldM, fontBodySemiboldS, fontBodySemiboldXs, fontBodySemiboldXxs, fontBodySemiboldXxxs, fontCaps, fontCapsXxs, fontCapsXxxs, fontCapsXxxxs, fontHeader, fontHeaderXxl, fontHeaderXl, fontHeaderL, fontHeaderM, fontHeaderS, fontHeaderXs, fontHeaderXxs, fontHeaderXxxs, fontCode, fontCodeXs, fontCodeS, fontCodeSemiboldXs, fontCodeSemiboldS, fontTabular, fontTabularXs, fontTabularS, fontTabularSemiboldXs, fontTabularSemiboldS, CommonThemeProps, getSpaces, getSpacings, getTypography, getPalette, getColors, getSemanticComponentColors, getSemanticTextColors, getShadows, getCorners, getFontWeights, getIconSizes, getBorders };
|
|
1577
|
+
export type { AutocompleteBaseProps, AutocompleteMultiColumnProps, AutocompleteOptionBasic, AutocompleteOptionComponent, DefaultAutocompleteOption, ChipProps, IconNameToSizes, InputToggleExtraProps as InputToggleProps, TabsProps$0 as TabsProps, SdsTagColorType, TooltipProps, TooltipTableContentProps };
|