@czi-sds/components 22.1.1 → 22.2.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.cjs.d.ts +148 -84
- package/dist/index.cjs.js +7139 -672
- package/dist/index.esm.d.ts +148 -84
- package/dist/index.esm.js +7278 -812
- package/dist/tailwind.json +16 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/variables.css +16 -2
- package/dist/variables.scss +16 -2
- package/package.json +2 -2
package/dist/index.esm.d.ts
CHANGED
|
@@ -28,9 +28,9 @@ import { ListProps as RawListProps } from "@mui/material";
|
|
|
28
28
|
import { ListItemProps as RawListItemProps } from "@mui/material";
|
|
29
29
|
import { ListSubheaderProps as RawListSubheaderProps } from "@mui/material";
|
|
30
30
|
import { MenuProps as RawMenuProps } from "@mui/material";
|
|
31
|
+
import { ChipProps as ChipProps$0 } from "@mui/material";
|
|
31
32
|
import { TabProps as RawTabProps } from "@mui/material";
|
|
32
33
|
import { TabsProps as RawTabsProps } from "@mui/material";
|
|
33
|
-
import { ChipProps as ChipProps$0 } from "@mui/material";
|
|
34
34
|
import React from "react";
|
|
35
35
|
import { CSSProperties, ReactElement, ReactNode, SyntheticEvent, ComponentType } from "react";
|
|
36
36
|
import { Theme, ThemeOptions, TypographyStyle, Breakpoints, PaletteOptions } from "@mui/material/styles";
|
|
@@ -80,6 +80,7 @@ interface BaseColor {
|
|
|
80
80
|
textSecondary: string;
|
|
81
81
|
textSecondaryInverse: string;
|
|
82
82
|
textDisabled: string;
|
|
83
|
+
textDisabledInverse: string;
|
|
83
84
|
textOnFill: string;
|
|
84
85
|
fillHover: string;
|
|
85
86
|
fillPressed: string;
|
|
@@ -92,14 +93,20 @@ interface BaseColor {
|
|
|
92
93
|
border: string;
|
|
93
94
|
borderInverse: string;
|
|
94
95
|
borderHover: string;
|
|
96
|
+
borderHoverInverse: string;
|
|
97
|
+
borderOnFill: string;
|
|
95
98
|
borderPressed: string;
|
|
99
|
+
borderPressedInverse: string;
|
|
96
100
|
borderDisabled: string;
|
|
101
|
+
borderDisabledInverse: string;
|
|
97
102
|
borderTable: string;
|
|
98
103
|
ornamentDisabled: string;
|
|
104
|
+
ornamentDisabledInverse: string;
|
|
99
105
|
ornamentOnFill: string;
|
|
100
106
|
ornamentPrimary: string;
|
|
101
107
|
ornamentPrimaryInverse: string;
|
|
102
108
|
ornamentSecondary: string;
|
|
109
|
+
ornamentSecondaryInverse: string;
|
|
103
110
|
ornamentSecondaryHover: string;
|
|
104
111
|
ornamentSecondaryPressed: string;
|
|
105
112
|
}
|
|
@@ -611,6 +618,7 @@ interface AccessibleInputSearchProps {
|
|
|
611
618
|
id: string;
|
|
612
619
|
handleSubmit?: (value: string) => void;
|
|
613
620
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
621
|
+
customTheme?: "light" | "dark" | "auto";
|
|
614
622
|
}
|
|
615
623
|
type InputSearchProps = RawTextFieldSearchProps & AccessibleInputSearchProps & InputSearchExtraProps;
|
|
616
624
|
/**
|
|
@@ -761,26 +769,37 @@ interface ExtraAutocompleteProps$0<T, Multiple extends boolean | undefined, Disa
|
|
|
761
769
|
}
|
|
762
770
|
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>;
|
|
763
771
|
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;
|
|
772
|
+
type ButtonTypeMap = {
|
|
773
|
+
icon: "primary" | "secondary" | "tertiary";
|
|
774
|
+
minimal: "primary" | "secondary";
|
|
775
|
+
rounded: "primary" | "secondary" | "destructive";
|
|
776
|
+
square: "primary" | "secondary" | "destructive";
|
|
777
|
+
};
|
|
764
778
|
type ButtonSize = "small" | "medium" | "large";
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
779
|
+
interface BaseButtonProps {
|
|
780
|
+
customTheme?: "light" | "dark" | "auto";
|
|
781
|
+
children?: React.ReactNode;
|
|
768
782
|
isAllCaps?: boolean;
|
|
769
|
-
|
|
783
|
+
}
|
|
784
|
+
interface SdsIconButtonProps extends BaseButtonProps {
|
|
785
|
+
sdsStyle: "icon";
|
|
786
|
+
sdsType?: ButtonTypeMap["icon"];
|
|
770
787
|
sdsSize?: ButtonSize;
|
|
771
|
-
icon
|
|
788
|
+
icon: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
772
789
|
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>>;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
isAllCaps?: boolean;
|
|
790
|
+
}
|
|
791
|
+
interface SdsMinimalButtonProps extends BaseButtonProps {
|
|
792
|
+
sdsStyle: "minimal";
|
|
793
|
+
sdsType?: ButtonTypeMap["minimal"];
|
|
794
|
+
children: React.ReactNode;
|
|
795
|
+
}
|
|
796
|
+
interface SdsButtonProps extends BaseButtonProps {
|
|
797
|
+
sdsStyle: "rounded" | "square";
|
|
782
798
|
isRounded?: boolean;
|
|
783
|
-
|
|
799
|
+
sdsType?: ButtonTypeMap["rounded" | "square"];
|
|
800
|
+
children: React.ReactNode;
|
|
801
|
+
}
|
|
802
|
+
type SdsProps = SdsIconButtonProps | SdsMinimalButtonProps | SdsButtonProps;
|
|
784
803
|
type ButtonProps = RawButtonProps & SdsProps;
|
|
785
804
|
/**
|
|
786
805
|
* @see https://mui.com/material-ui/react-button/
|
|
@@ -789,33 +808,15 @@ declare const Button: React.ForwardRefExoticComponent<(Omit<import("@mui/materia
|
|
|
789
808
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
790
809
|
}, "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"> & {
|
|
791
810
|
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
792
|
-
} & {
|
|
793
|
-
sdsStyle?: "icon" | undefined;
|
|
794
|
-
sdsType?: "primary" | "secondary" | "tertiary" | undefined;
|
|
795
|
-
isAllCaps?: boolean | undefined;
|
|
796
|
-
isRounded?: boolean | undefined;
|
|
797
|
-
sdsSize?: ButtonSize | undefined;
|
|
798
|
-
icon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps, string | React.JSXElementConstructor<any>> | undefined;
|
|
799
|
-
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>> | undefined;
|
|
800
|
-
}, "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"> & {
|
|
811
|
+
} & SdsIconButtonProps, "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"> & {
|
|
801
812
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
802
813
|
}, "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"> & {
|
|
803
814
|
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
804
|
-
} & {
|
|
805
|
-
sdsStyle?: "minimal" | undefined;
|
|
806
|
-
sdsType?: "primary" | "secondary" | undefined;
|
|
807
|
-
isAllCaps?: boolean | undefined;
|
|
808
|
-
isRounded?: boolean | undefined;
|
|
809
|
-
}, "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"> & {
|
|
815
|
+
} & SdsMinimalButtonProps, "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"> & {
|
|
810
816
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
811
817
|
}, "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"> & {
|
|
812
818
|
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
813
|
-
} &
|
|
814
|
-
sdsStyle?: "square" | "rounded" | undefined;
|
|
815
|
-
sdsType?: "primary" | "secondary" | "destructive" | undefined;
|
|
816
|
-
isAllCaps?: boolean | undefined;
|
|
817
|
-
isRounded?: boolean | undefined;
|
|
818
|
-
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
819
|
+
} & SdsButtonProps, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
819
820
|
interface BannerExtraProps extends CommonThemeProps {
|
|
820
821
|
sdsType: "primary" | "secondary";
|
|
821
822
|
}
|
|
@@ -828,20 +829,45 @@ interface BannerProps extends BannerExtraProps {
|
|
|
828
829
|
onClose?: (e: React.MouseEvent) => void;
|
|
829
830
|
}
|
|
830
831
|
declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement | null>>;
|
|
832
|
+
type SDSButtonDropdownSizes = "small" | "medium" | "large";
|
|
831
833
|
type SdsProps$0 = {
|
|
834
|
+
sdsStyle: "icon";
|
|
835
|
+
sdsType?: "primary" | "secondary" | "tertiary";
|
|
836
|
+
icon: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
837
|
+
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>>;
|
|
838
|
+
sdsSize?: SDSButtonDropdownSizes;
|
|
839
|
+
} | {
|
|
840
|
+
sdsStyle: "rounded" | "square";
|
|
841
|
+
sdsType?: "primary" | "secondary" | "destructive";
|
|
832
842
|
icon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
833
|
-
sdsStyle?: "rounded" | "square" | "icon";
|
|
834
|
-
sdsType?: "primary" | "secondary";
|
|
835
843
|
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>>;
|
|
836
|
-
sdsSize?:
|
|
844
|
+
sdsSize?: SDSButtonDropdownSizes;
|
|
837
845
|
};
|
|
838
|
-
type ButtonDropdownProps
|
|
839
|
-
component?: C;
|
|
840
|
-
}> & SdsProps$0;
|
|
846
|
+
type ButtonDropdownProps = ButtonProps & SdsProps$0;
|
|
841
847
|
/**
|
|
842
848
|
* @see https://mui.com/material-ui/react-button/
|
|
843
849
|
*/
|
|
844
|
-
declare const ButtonDropdown: React.ForwardRefExoticComponent<Omit<
|
|
850
|
+
declare const ButtonDropdown: 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"> & {
|
|
851
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
852
|
+
}, "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"> & {
|
|
853
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
854
|
+
} & SdsIconButtonProps & {
|
|
855
|
+
sdsStyle: "icon";
|
|
856
|
+
sdsType?: "primary" | "secondary" | "tertiary" | undefined;
|
|
857
|
+
icon: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
858
|
+
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>> | undefined;
|
|
859
|
+
sdsSize?: SDSButtonDropdownSizes | undefined;
|
|
860
|
+
}, "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"> & {
|
|
861
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
862
|
+
}, "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"> & {
|
|
863
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
864
|
+
} & SdsButtonProps & {
|
|
865
|
+
sdsStyle: "rounded" | "square";
|
|
866
|
+
sdsType?: "primary" | "secondary" | "destructive" | undefined;
|
|
867
|
+
icon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps, string | React.JSXElementConstructor<any>> | undefined;
|
|
868
|
+
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>> | undefined;
|
|
869
|
+
sdsSize?: SDSButtonDropdownSizes | undefined;
|
|
870
|
+
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
845
871
|
interface ButtonIconExtraProps extends CommonThemeProps {
|
|
846
872
|
disabled?: boolean;
|
|
847
873
|
sdsSize?: "small" | "medium" | "large";
|
|
@@ -890,7 +916,7 @@ interface CalloutProps {
|
|
|
890
916
|
sdsStage?: typeof SDS_STAGE_CLOSED | typeof SDS_STAGE_OPEN;
|
|
891
917
|
title?: string;
|
|
892
918
|
hideTitle?: boolean;
|
|
893
|
-
body?:
|
|
919
|
+
body?: React.ReactNode;
|
|
894
920
|
hideBody?: boolean;
|
|
895
921
|
extraContent?: React.ReactNode;
|
|
896
922
|
sdsStyle?: CalloutSdsStyleType;
|
|
@@ -967,6 +993,7 @@ interface CellHeaderExtraProps extends CommonThemeProps {
|
|
|
967
993
|
active?: boolean;
|
|
968
994
|
hideSortIcon?: boolean;
|
|
969
995
|
horizontalAlign?: "left" | "center" | "right";
|
|
996
|
+
hover?: boolean;
|
|
970
997
|
}
|
|
971
998
|
type CellHeaderDirection = "asc" | "desc";
|
|
972
999
|
interface CellHeaderContentProps {
|
|
@@ -975,6 +1002,7 @@ interface CellHeaderContentProps {
|
|
|
975
1002
|
hideSortIcon?: boolean;
|
|
976
1003
|
horizontalAlign?: "left" | "center" | "right";
|
|
977
1004
|
children: React.ReactNode;
|
|
1005
|
+
hover?: boolean;
|
|
978
1006
|
}
|
|
979
1007
|
interface CellHeaderRawProps extends Omit<React.HTMLProps<HTMLTableCellElement>, "as"> {
|
|
980
1008
|
tooltipText?: string;
|
|
@@ -1320,6 +1348,80 @@ type MenuSelectProps<T, Multiple extends boolean | undefined = undefined, Disabl
|
|
|
1320
1348
|
* Please use `Autocomplete` or `Dropdown` instead.
|
|
1321
1349
|
*/
|
|
1322
1350
|
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;
|
|
1351
|
+
type SdsTagColorType = "info" | "positive" | "notice" | "negative" | "neutral" | "beta" | [
|
|
1352
|
+
string,
|
|
1353
|
+
string
|
|
1354
|
+
] | [
|
|
1355
|
+
string,
|
|
1356
|
+
string,
|
|
1357
|
+
string
|
|
1358
|
+
];
|
|
1359
|
+
interface ExtraSmallTagProps extends CommonThemeProps {
|
|
1360
|
+
hover?: boolean;
|
|
1361
|
+
sdsType?: "primary" | "secondary";
|
|
1362
|
+
sdsStyle?: "square" | "rounded";
|
|
1363
|
+
sdsSize?: "s";
|
|
1364
|
+
tagColor?: SdsTagColorType;
|
|
1365
|
+
icon?: JSX.Element;
|
|
1366
|
+
}
|
|
1367
|
+
interface ExtraLargeTagProps extends CommonThemeProps {
|
|
1368
|
+
hover?: boolean;
|
|
1369
|
+
sdsType?: "primary" | "secondary";
|
|
1370
|
+
sdsStyle?: "square" | "rounded";
|
|
1371
|
+
sdsSize?: "l";
|
|
1372
|
+
tagColor?: SdsTagColorType;
|
|
1373
|
+
icon: JSX.Element;
|
|
1374
|
+
}
|
|
1375
|
+
type ExtraTagProps = ExtraSmallTagProps | ExtraLargeTagProps;
|
|
1376
|
+
interface SdsTagProps extends Omit<ChipProps$0, "color"> {
|
|
1377
|
+
label: string;
|
|
1378
|
+
color?: SdsTagColorType;
|
|
1379
|
+
}
|
|
1380
|
+
type TagProps = SdsTagProps & ExtraTagProps;
|
|
1381
|
+
/**
|
|
1382
|
+
* @see https://mui.com/material-ui/react-chip/
|
|
1383
|
+
*
|
|
1384
|
+
* @props color: {string} - applies color for tag based on default theme color values
|
|
1385
|
+
* [string, string] - applies custom colors for [font, background]
|
|
1386
|
+
* [string, string, string] - applies custom colors for [font, background, icon]
|
|
1387
|
+
*/
|
|
1388
|
+
declare const Tag: (props: TagProps) => JSX.Element;
|
|
1389
|
+
interface NavigationHeaderPrimaryNavItem<T extends string> extends Record<string, unknown> {
|
|
1390
|
+
key: T;
|
|
1391
|
+
label: ReactNode;
|
|
1392
|
+
tag?: string;
|
|
1393
|
+
tagColor?: SdsTagColorType;
|
|
1394
|
+
onClick?: (e: React.SyntheticEvent) => void;
|
|
1395
|
+
}
|
|
1396
|
+
interface BaseHeaderSecondaryNavItem {
|
|
1397
|
+
label: string;
|
|
1398
|
+
}
|
|
1399
|
+
interface TextHeaderSecondaryNavItem extends BaseHeaderSecondaryNavItem {
|
|
1400
|
+
onClick?(): void;
|
|
1401
|
+
type: "text";
|
|
1402
|
+
}
|
|
1403
|
+
interface DropdownHeaderSecondaryNavItem extends BaseHeaderSecondaryNavItem {
|
|
1404
|
+
type: "dropdown";
|
|
1405
|
+
items: Pick<TextHeaderSecondaryNavItem, "label" | "onClick">[];
|
|
1406
|
+
}
|
|
1407
|
+
type NavigationHeaderSecondaryNavItem = TextHeaderSecondaryNavItem | DropdownHeaderSecondaryNavItem;
|
|
1408
|
+
interface NavigationHeaderProps<T extends string = string> {
|
|
1409
|
+
activePrimaryNavKey?: string;
|
|
1410
|
+
buttons?: (SdsProps$0 & ButtonProps$0)[];
|
|
1411
|
+
hasInvertedStyle?: boolean;
|
|
1412
|
+
logo?: ReactNode;
|
|
1413
|
+
logoUrl?: string;
|
|
1414
|
+
primaryNavItems?: NavigationHeaderPrimaryNavItem<T>[];
|
|
1415
|
+
primaryNavPosition?: "left" | "right";
|
|
1416
|
+
searchProps?: Partial<InputSearchProps>;
|
|
1417
|
+
secondaryNavItems?: NavigationHeaderSecondaryNavItem[];
|
|
1418
|
+
setActivePrimaryNavKey?(key: string): void;
|
|
1419
|
+
showSearch?: boolean;
|
|
1420
|
+
tag?: string;
|
|
1421
|
+
tagColor?: SdsTagColorType;
|
|
1422
|
+
title: string;
|
|
1423
|
+
}
|
|
1424
|
+
declare const NavigationHeader: import("react").ForwardRefExoticComponent<NavigationHeaderProps<string> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1323
1425
|
interface NavigationJumpToExtraProps extends Omit<TabsProps, "onChange">, CommonThemeProps {
|
|
1324
1426
|
}
|
|
1325
1427
|
type Item = {
|
|
@@ -1443,44 +1545,6 @@ interface TabProps$0 extends RawTabProps {
|
|
|
1443
1545
|
* @see https://mui.com/material-ui/react-tabs/
|
|
1444
1546
|
*/
|
|
1445
1547
|
declare const Tab: React.ForwardRefExoticComponent<Omit<TabProps$0, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1446
|
-
type SdsTagColorType = "info" | "positive" | "notice" | "negative" | "neutral" | "beta" | [
|
|
1447
|
-
string,
|
|
1448
|
-
string
|
|
1449
|
-
] | [
|
|
1450
|
-
string,
|
|
1451
|
-
string,
|
|
1452
|
-
string
|
|
1453
|
-
];
|
|
1454
|
-
interface ExtraSmallTagProps extends CommonThemeProps {
|
|
1455
|
-
hover?: boolean;
|
|
1456
|
-
sdsType?: "primary" | "secondary";
|
|
1457
|
-
sdsStyle?: "square" | "rounded";
|
|
1458
|
-
sdsSize?: "s";
|
|
1459
|
-
tagColor?: SdsTagColorType;
|
|
1460
|
-
icon?: JSX.Element;
|
|
1461
|
-
}
|
|
1462
|
-
interface ExtraLargeTagProps extends CommonThemeProps {
|
|
1463
|
-
hover?: boolean;
|
|
1464
|
-
sdsType?: "primary" | "secondary";
|
|
1465
|
-
sdsStyle?: "square" | "rounded";
|
|
1466
|
-
sdsSize?: "l";
|
|
1467
|
-
tagColor?: SdsTagColorType;
|
|
1468
|
-
icon: JSX.Element;
|
|
1469
|
-
}
|
|
1470
|
-
type ExtraTagProps = ExtraSmallTagProps | ExtraLargeTagProps;
|
|
1471
|
-
interface SdsTagProps extends Omit<ChipProps$0, "color"> {
|
|
1472
|
-
label: string;
|
|
1473
|
-
color?: SdsTagColorType;
|
|
1474
|
-
}
|
|
1475
|
-
type TagProps = SdsTagProps & ExtraTagProps;
|
|
1476
|
-
/**
|
|
1477
|
-
* @see https://mui.com/material-ui/react-chip/
|
|
1478
|
-
*
|
|
1479
|
-
* @props color: {string} - applies color for tag based on default theme color values
|
|
1480
|
-
* [string, string] - applies custom colors for [font, background]
|
|
1481
|
-
* [string, string, string] - applies custom colors for [font, background, icon]
|
|
1482
|
-
*/
|
|
1483
|
-
declare const Tag: (props: TagProps) => JSX.Element;
|
|
1484
1548
|
interface SdsTagFilterProps extends Omit<ChipProps$0, "color" | "variant"> {
|
|
1485
1549
|
label: string;
|
|
1486
1550
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -1521,5 +1585,5 @@ type TooltipTableContentProps = TooltipTableExtraProps;
|
|
|
1521
1585
|
* @see https://mui.com/material-ui/react-table/
|
|
1522
1586
|
*/
|
|
1523
1587
|
declare const TooltipTableContent: (props: TooltipTableContentProps) => JSX.Element;
|
|
1524
|
-
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, ButtonToggleProps, ButtonToggle, CalloutIntentType, CalloutSdsStyleType, 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, Panel, 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, AccentColor, BaseColor, IntentColor, SDSPalette, SDSTheme, SDSThemeOptions, AppTheme, Shadows, TypographyStyles, Typography, FontWeights, Corners, Spaces, Spacings, Color, Colors, IconSize, IconSizes, Border, Borders, Theme$0 as Theme, defaultTheme, makeSdsSemanticAppTheme, SDSLightAppTheme, SDSDarkAppTheme, SDSChooseTheme, defaultAppTheme, SDSPaletteLight, SDSPaletteDark, 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, getMode, getPalette, getColors, getSemanticColors, getShadows, getCorners, getFontWeights, getIconSizes, getBorders, getBreakpoints };
|
|
1588
|
+
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, SdsIconButtonProps, SdsMinimalButtonProps, SdsButtonProps, SdsProps, ButtonProps, Button, ButtonDropdownProps, ButtonDropdown, ButtonIconInternalProps, ButtonIconProps, ButtonIcon, ButtonToggleProps, ButtonToggle, CalloutIntentType, CalloutSdsStyleType, 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, NavigationHeaderProps, NavigationHeader, NavigationJumpToProps, NavigationJumpTo, NotificationIntentType, NotificationProps, ExposedNotificationProps, Notification, PaginationInternalProps, PaginationProps, Pagination, Panel, 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, AccentColor, BaseColor, IntentColor, SDSPalette, SDSTheme, SDSThemeOptions, AppTheme, Shadows, TypographyStyles, Typography, FontWeights, Corners, Spaces, Spacings, Color, Colors, IconSize, IconSizes, Border, Borders, Theme$0 as Theme, defaultTheme, makeSdsSemanticAppTheme, SDSLightAppTheme, SDSDarkAppTheme, SDSChooseTheme, defaultAppTheme, SDSPaletteLight, SDSPaletteDark, 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, getMode, getPalette, getColors, getSemanticColors, getShadows, getCorners, getFontWeights, getIconSizes, getBorders, getBreakpoints };
|
|
1525
1589
|
export type { AutocompleteBaseProps, AutocompleteMultiColumnProps, AutocompleteOptionBasic, AutocompleteOptionComponent, DefaultAutocompleteOption, ChipProps, IconNameToSizes, InputToggleExtraProps as InputToggleProps, PanelProps, BasicPanelProps, OverlayPanelProps, TabsProps$0 as TabsProps, SdsTagColorType, TooltipProps, TooltipTableContentProps };
|