@czi-sds/components 22.4.0 → 22.5.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 +98 -41
- package/dist/index.cjs.js +90 -119
- package/dist/index.esm.d.ts +98 -41
- package/dist/index.esm.js +86 -120
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.esm.d.ts
CHANGED
|
@@ -364,10 +364,65 @@ declare const Theme$0: (t: PaletteMode) => import("@mui/material").Theme;
|
|
|
364
364
|
* Use the `theme` export to get a flexible light/dark mode theme function
|
|
365
365
|
*/
|
|
366
366
|
declare const defaultTheme: import("@mui/material").Theme;
|
|
367
|
+
declare const createAppThemeBorders: (colors: Colors, isDarkMode: boolean) => {
|
|
368
|
+
accent: {
|
|
369
|
+
default: string;
|
|
370
|
+
focused: string;
|
|
371
|
+
hover: string;
|
|
372
|
+
open: string;
|
|
373
|
+
pressed: string;
|
|
374
|
+
selected: string;
|
|
375
|
+
};
|
|
376
|
+
base: {
|
|
377
|
+
default: string;
|
|
378
|
+
disabled: string;
|
|
379
|
+
divider: string;
|
|
380
|
+
dividerInverse: string;
|
|
381
|
+
hover: string;
|
|
382
|
+
inverse: string;
|
|
383
|
+
pressed: string;
|
|
384
|
+
table: string;
|
|
385
|
+
};
|
|
386
|
+
beta: {
|
|
387
|
+
default: string;
|
|
388
|
+
extraThick: string;
|
|
389
|
+
thick: string;
|
|
390
|
+
};
|
|
391
|
+
info: {
|
|
392
|
+
default: string;
|
|
393
|
+
extraThick: string;
|
|
394
|
+
thick: string;
|
|
395
|
+
};
|
|
396
|
+
link: {
|
|
397
|
+
dashed: string;
|
|
398
|
+
solid: string;
|
|
399
|
+
};
|
|
400
|
+
negative: {
|
|
401
|
+
default: string;
|
|
402
|
+
extraThick: string;
|
|
403
|
+
thick: string;
|
|
404
|
+
};
|
|
405
|
+
neutral: {
|
|
406
|
+
default: string;
|
|
407
|
+
extraThick: string;
|
|
408
|
+
thick: string;
|
|
409
|
+
};
|
|
410
|
+
none: string;
|
|
411
|
+
notice: {
|
|
412
|
+
default: string;
|
|
413
|
+
extraThick: string;
|
|
414
|
+
thick: string;
|
|
415
|
+
};
|
|
416
|
+
positive: {
|
|
417
|
+
default: string;
|
|
418
|
+
extraThick: string;
|
|
419
|
+
thick: string;
|
|
420
|
+
};
|
|
421
|
+
};
|
|
367
422
|
/**
|
|
368
423
|
* Create a SDS App Theme with custom colors that follows the SDS color model.
|
|
369
424
|
*/
|
|
370
|
-
declare const makeSdsSemanticAppTheme: (colors: Colors) => AppTheme;
|
|
425
|
+
declare const makeSdsSemanticAppTheme: (colors: Colors, isDarkTheme?: boolean) => AppTheme;
|
|
371
426
|
declare const SDSLightAppTheme: AppTheme;
|
|
372
427
|
declare const SDSDarkAppTheme: AppTheme;
|
|
373
428
|
/**
|
|
@@ -811,6 +866,9 @@ declare const Button: React.ForwardRefExoticComponent<(Omit<SdsIconButtonProps,
|
|
|
811
866
|
interface BannerExtraProps extends CommonThemeProps {
|
|
812
867
|
sdsType: "primary" | "secondary";
|
|
813
868
|
}
|
|
869
|
+
type ButtonType$0 = ButtonProps & {
|
|
870
|
+
bannerType: string;
|
|
871
|
+
} & CommonThemeProps;
|
|
814
872
|
interface BannerProps extends BannerExtraProps {
|
|
815
873
|
children: React.ReactNode;
|
|
816
874
|
icon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
@@ -820,19 +878,18 @@ interface BannerProps extends BannerExtraProps {
|
|
|
820
878
|
onClose?: (e: React.MouseEvent) => void;
|
|
821
879
|
}
|
|
822
880
|
declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement | null>>;
|
|
823
|
-
type SDSButtonDropdownSizes = "small" | "medium" | "large";
|
|
824
881
|
type SdsProps$0 = {
|
|
825
882
|
sdsStyle: "icon";
|
|
826
|
-
sdsType?: "
|
|
883
|
+
sdsType?: ButtonTypeMap["icon"];
|
|
827
884
|
icon: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
828
885
|
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>>;
|
|
829
|
-
sdsSize?:
|
|
886
|
+
sdsSize?: ButtonSize;
|
|
830
887
|
} | {
|
|
831
888
|
sdsStyle: "rounded" | "square";
|
|
832
|
-
sdsType?: "
|
|
889
|
+
sdsType?: ButtonTypeMap["rounded"];
|
|
833
890
|
icon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
834
891
|
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>>;
|
|
835
|
-
sdsSize?:
|
|
892
|
+
sdsSize?: ButtonSize;
|
|
836
893
|
};
|
|
837
894
|
type ButtonDropdownProps = ButtonProps & SdsProps$0;
|
|
838
895
|
/**
|
|
@@ -843,13 +900,13 @@ declare const ButtonDropdown: React.ForwardRefExoticComponent<(Omit<SdsIconButto
|
|
|
843
900
|
sdsType?: "primary" | "secondary" | "tertiary" | undefined;
|
|
844
901
|
icon: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
845
902
|
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>> | undefined;
|
|
846
|
-
sdsSize?:
|
|
903
|
+
sdsSize?: ButtonSize | undefined;
|
|
847
904
|
}, "ref"> | Omit<SdsButtonProps & {
|
|
848
905
|
sdsStyle: "rounded" | "square";
|
|
849
906
|
sdsType?: "primary" | "secondary" | "destructive" | undefined;
|
|
850
907
|
icon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps, string | React.JSXElementConstructor<any>> | undefined;
|
|
851
908
|
sdsIconProps?: Partial<IconProps<keyof IconNameToSizes>> | undefined;
|
|
852
|
-
sdsSize?:
|
|
909
|
+
sdsSize?: ButtonSize | undefined;
|
|
853
910
|
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
854
911
|
interface ButtonIconExtraProps extends CommonThemeProps {
|
|
855
912
|
disabled?: boolean;
|
|
@@ -1108,40 +1165,15 @@ declare const StyledContentCardBody: import("@emotion/styled").StyledComponent<i
|
|
|
1108
1165
|
}, "className" | "style" | "classes" | "children" | "sx"> & {
|
|
1109
1166
|
theme?: import("@emotion/react").Theme | undefined;
|
|
1110
1167
|
} & CardExtraProps, {}, {}>;
|
|
1111
|
-
interface ContentCardTitleProps {
|
|
1112
|
-
overlineText?: string;
|
|
1113
|
-
titleText?: string;
|
|
1114
|
-
subtitleText?: string;
|
|
1115
|
-
metadataText?: string;
|
|
1116
|
-
classes?: {
|
|
1117
|
-
cardHeader?: string;
|
|
1118
|
-
cardOverline?: string;
|
|
1119
|
-
cardTitle?: string;
|
|
1120
|
-
cardSubtitle?: string;
|
|
1121
|
-
cardMetadata?: string;
|
|
1122
|
-
};
|
|
1123
|
-
}
|
|
1124
|
-
interface ContentCardActionsProps {
|
|
1125
|
-
buttonsPosition?: "left" | "right";
|
|
1126
|
-
clickableCard?: ContentCardProps["clickableCard"];
|
|
1127
|
-
classes?: {
|
|
1128
|
-
cardActions?: string;
|
|
1129
|
-
};
|
|
1130
|
-
children: React.ReactElement<ButtonProps> | Array<React.ReactElement<ButtonProps>>;
|
|
1131
|
-
}
|
|
1132
|
-
/**
|
|
1133
|
-
* @see https://mui.com/material-ui/api/card-actions/
|
|
1134
|
-
*/
|
|
1135
|
-
declare const ContentCardActions: React.ForwardRefExoticComponent<ContentCardActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
1136
1168
|
interface BaseContentCardProps extends CardProps {
|
|
1137
1169
|
sdsType?: "wide" | "narrow";
|
|
1138
|
-
overlineText?:
|
|
1139
|
-
titleText?:
|
|
1140
|
-
subtitleText?:
|
|
1141
|
-
metadataText?:
|
|
1170
|
+
overlineText?: ReactNode;
|
|
1171
|
+
titleText?: ReactNode;
|
|
1172
|
+
subtitleText?: ReactNode;
|
|
1173
|
+
metadataText?: ReactNode;
|
|
1142
1174
|
boundingBox?: boolean;
|
|
1143
1175
|
decorativeBorder?: boolean;
|
|
1144
|
-
children?:
|
|
1176
|
+
children?: ReactNode;
|
|
1145
1177
|
clickableCard?: boolean;
|
|
1146
1178
|
clickableCardProps?: Partial<SdsMinimalButtonProps>;
|
|
1147
1179
|
buttonsPosition?: "left" | "right";
|
|
@@ -1160,7 +1192,7 @@ interface BaseContentCardProps extends CardProps {
|
|
|
1160
1192
|
}
|
|
1161
1193
|
interface ImageContentCardProps extends BaseContentCardProps {
|
|
1162
1194
|
visualElementType: "image";
|
|
1163
|
-
image?:
|
|
1195
|
+
image?: ReactNode;
|
|
1164
1196
|
imagePosition?: "left" | "right";
|
|
1165
1197
|
imagePadding?: boolean;
|
|
1166
1198
|
imageSize?: number;
|
|
@@ -1168,7 +1200,7 @@ interface ImageContentCardProps extends BaseContentCardProps {
|
|
|
1168
1200
|
}
|
|
1169
1201
|
interface IconContentCardProps extends BaseContentCardProps {
|
|
1170
1202
|
visualElementType: "icon";
|
|
1171
|
-
icon?:
|
|
1203
|
+
icon?: ReactNode;
|
|
1172
1204
|
image?: never;
|
|
1173
1205
|
imageSize?: never;
|
|
1174
1206
|
imagePosition?: never;
|
|
@@ -1183,6 +1215,31 @@ interface NoneContentCardProps extends BaseContentCardProps {
|
|
|
1183
1215
|
imageSize?: never;
|
|
1184
1216
|
}
|
|
1185
1217
|
type ContentCardProps = ImageContentCardProps | IconContentCardProps | NoneContentCardProps;
|
|
1218
|
+
interface ContentCardTitleProps extends Pick<BaseContentCardProps, "overlineText" | "titleText" | "subtitleText" | "metadataText"> {
|
|
1219
|
+
classes?: {
|
|
1220
|
+
cardHeader?: string;
|
|
1221
|
+
cardOverline?: string;
|
|
1222
|
+
cardTitle?: string;
|
|
1223
|
+
cardSubtitle?: string;
|
|
1224
|
+
cardMetadata?: string;
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
interface ContentCardActionsProps {
|
|
1228
|
+
buttonsPosition?: "left" | "right";
|
|
1229
|
+
clickableCard?: ContentCardProps["clickableCard"];
|
|
1230
|
+
classes?: {
|
|
1231
|
+
cardActions?: string;
|
|
1232
|
+
};
|
|
1233
|
+
children: React.ReactElement<ButtonProps> | Array<React.ReactElement<ButtonProps>>;
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
* @see https://mui.com/material-ui/api/card-actions/
|
|
1237
|
+
*/
|
|
1238
|
+
declare const ContentCardActions: React.ForwardRefExoticComponent<ContentCardActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
1239
|
+
declare const StyledOverlineText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CommonThemeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
1240
|
+
declare const StyledTitleText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CommonThemeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
1241
|
+
declare const StyledSubtitleText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CommonThemeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
1242
|
+
declare const StyledMetadataText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CommonThemeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
1186
1243
|
/**
|
|
1187
1244
|
* @see https://mui.com/material-ui/react-card/
|
|
1188
1245
|
*/
|
|
@@ -1731,5 +1788,5 @@ type TooltipTableContentProps = TooltipTableExtraProps;
|
|
|
1731
1788
|
* @see https://mui.com/material-ui/react-table/
|
|
1732
1789
|
*/
|
|
1733
1790
|
declare const TooltipTableContent: (props: TooltipTableContentProps) => JSX.Element;
|
|
1734
|
-
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, ContentCardActions, StyledContentCardBody as ContentCardBody, CardMedia as ContentCardMedia, ContentCard, 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, NavigationFooterNavItem, FooterImage, NavigationFooterProps, NavItemProps, FooterLinkProps, NavigationFooter, 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 };
|
|
1791
|
+
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, ButtonType$0 as ButtonType, ButtonTypeMap, ButtonSize, 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, ContentCardActions, StyledContentCardBody as ContentCardBody, CardMedia as ContentCardMedia, StyledTitleText as ContentCardTitle, StyledSubtitleText as ContentCardSubtitle, StyledMetadataText as ContentCardMetadata, StyledOverlineText as ContentCardOverline, ContentCard, 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, NavigationFooterNavItem, FooterImage, NavigationFooterProps, NavItemProps, FooterLinkProps, NavigationFooter, 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, createAppThemeBorders, 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 };
|
|
1735
1792
|
export type { AutocompleteBaseProps, AutocompleteMultiColumnProps, AutocompleteOptionBasic, AutocompleteOptionComponent, DefaultAutocompleteOption, ChipProps, ContentCardProps, CardMediaProps as ContentCardMediaProps, ContentCardActionsProps, ContentCardTitleProps, IconNameToSizes, InputToggleExtraProps as InputToggleProps, NavigationHeaderProps, IconButtonProps, NavigationHeaderPrimaryNavItem, NavigationHeaderPrimaryNavProps, NavigationHeaderSecondaryNavItem, NavigationHeaderSecondaryNavProps, PanelProps, BasicPanelProps, OverlayPanelProps, TabsProps$0 as TabsProps, SdsTagColorType, TooltipProps, TooltipTableContentProps };
|
package/dist/index.esm.js
CHANGED
|
@@ -792,12 +792,6 @@ var sharedAppTheme = {
|
|
|
792
792
|
},
|
|
793
793
|
},
|
|
794
794
|
};
|
|
795
|
-
/**
|
|
796
|
-
* Create a SDS App Theme with custom colors that follows the SDS color model.
|
|
797
|
-
*/
|
|
798
|
-
var makeSdsSemanticAppTheme = function (colors) { return (__assign(__assign({}, sharedAppTheme), { colors: colors })); };
|
|
799
|
-
var SDSLightAppTheme = makeSdsSemanticAppTheme(SDSLightThemeColors);
|
|
800
|
-
var SDSDarkAppTheme = makeSdsSemanticAppTheme(SDSDarkThemeColors);
|
|
801
795
|
// (mlila) whenever our theme uses colors, we need to make sure we allow consuming
|
|
802
796
|
// applications to override those colors using their own custom theme.
|
|
803
797
|
// By defining borders using SDSAppTheme.colors instead of defaultThemeColors,
|
|
@@ -807,116 +801,79 @@ var SDSDarkAppTheme = makeSdsSemanticAppTheme(SDSDarkThemeColors);
|
|
|
807
801
|
//
|
|
808
802
|
// (masoudmanson): We need to define borders separately for light and dark themes
|
|
809
803
|
// because the border colors are different for each theme.
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
inverse: "1px solid ".concat(SDSDarkThemeColors.gray[50]),
|
|
881
|
-
pressed: "1px solid ".concat(SDSDarkThemeColors.gray[900]),
|
|
882
|
-
table: "1px solid ".concat(SDSDarkThemeColors.gray[300]),
|
|
883
|
-
},
|
|
884
|
-
beta: {
|
|
885
|
-
default: "1px solid ".concat(SDSDarkThemeColors.purple[600]),
|
|
886
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.purple[600]),
|
|
887
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.purple[600]),
|
|
888
|
-
},
|
|
889
|
-
info: {
|
|
890
|
-
default: "1px solid ".concat(SDSDarkThemeColors.blue[600]),
|
|
891
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.blue[600]),
|
|
892
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.blue[600]),
|
|
893
|
-
},
|
|
894
|
-
link: {
|
|
895
|
-
dashed: "1px dashed",
|
|
896
|
-
solid: "1px solid",
|
|
897
|
-
},
|
|
898
|
-
negative: {
|
|
899
|
-
default: "1px solid ".concat(SDSDarkThemeColors.red[600]),
|
|
900
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.red[600]),
|
|
901
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.red[600]),
|
|
902
|
-
},
|
|
903
|
-
neutral: {
|
|
904
|
-
default: "1px solid ".concat(SDSDarkThemeColors.gray[500]),
|
|
905
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.gray[500]),
|
|
906
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.gray[500]),
|
|
907
|
-
},
|
|
908
|
-
none: "none",
|
|
909
|
-
notice: {
|
|
910
|
-
default: "1px solid ".concat(SDSDarkThemeColors.yellow[600]),
|
|
911
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.yellow[600]),
|
|
912
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.yellow[600]),
|
|
913
|
-
},
|
|
914
|
-
positive: {
|
|
915
|
-
default: "1px solid ".concat(SDSDarkThemeColors.green[600]),
|
|
916
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.green[600]),
|
|
917
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.green[600]),
|
|
918
|
-
},
|
|
804
|
+
var BorderThickness = {
|
|
805
|
+
default: 1,
|
|
806
|
+
extraThick: 4,
|
|
807
|
+
thick: 2,
|
|
808
|
+
};
|
|
809
|
+
var createAppThemeBorders = function (colors, isDarkMode) {
|
|
810
|
+
var createSolidBorder = function (color, level, thickness) { return "".concat(BorderThickness[thickness], "px solid ").concat(colors[color][level]); };
|
|
811
|
+
var createDashedBorder = function () { return "1px dashed"; };
|
|
812
|
+
return {
|
|
813
|
+
accent: {
|
|
814
|
+
default: createSolidBorder("blue", isDarkMode ? 600 : 500, "default"),
|
|
815
|
+
focused: createSolidBorder("blue", isDarkMode ? 600 : 500, "default"),
|
|
816
|
+
hover: createSolidBorder("blue", isDarkMode ? 700 : 600, "default"),
|
|
817
|
+
open: createSolidBorder("blue", isDarkMode ? 600 : 500, "default"),
|
|
818
|
+
pressed: createSolidBorder("blue", isDarkMode ? 800 : 700, "default"),
|
|
819
|
+
selected: createSolidBorder("blue", isDarkMode ? 600 : 500, "default"),
|
|
820
|
+
},
|
|
821
|
+
base: {
|
|
822
|
+
default: createSolidBorder("gray", 500, "default"),
|
|
823
|
+
disabled: createSolidBorder("gray", 300, "default"),
|
|
824
|
+
divider: createSolidBorder("gray", 200, "default"),
|
|
825
|
+
dividerInverse: createSolidBorder("gray", 600, "default"),
|
|
826
|
+
hover: createSolidBorder("gray", 900, "default"),
|
|
827
|
+
inverse: createSolidBorder("gray", 50, "default"),
|
|
828
|
+
pressed: createSolidBorder("gray", 900, "default"),
|
|
829
|
+
table: createSolidBorder("gray", 300, "default"),
|
|
830
|
+
},
|
|
831
|
+
beta: {
|
|
832
|
+
default: createSolidBorder("purple", 600, "default"),
|
|
833
|
+
extraThick: createSolidBorder("purple", 600, "extraThick"),
|
|
834
|
+
thick: createSolidBorder("purple", 600, "thick"),
|
|
835
|
+
},
|
|
836
|
+
info: {
|
|
837
|
+
default: createSolidBorder("blue", 600, "default"),
|
|
838
|
+
extraThick: createSolidBorder("blue", 600, "extraThick"),
|
|
839
|
+
thick: createSolidBorder("blue", 600, "thick"),
|
|
840
|
+
},
|
|
841
|
+
link: {
|
|
842
|
+
dashed: createDashedBorder(),
|
|
843
|
+
solid: createSolidBorder("blue", 500, "default"),
|
|
844
|
+
},
|
|
845
|
+
negative: {
|
|
846
|
+
default: createSolidBorder("red", 600, "default"),
|
|
847
|
+
extraThick: createSolidBorder("red", 600, "extraThick"),
|
|
848
|
+
thick: createSolidBorder("red", 600, "thick"),
|
|
849
|
+
},
|
|
850
|
+
neutral: {
|
|
851
|
+
default: createSolidBorder("gray", 500, "default"),
|
|
852
|
+
extraThick: createSolidBorder("gray", 500, "extraThick"),
|
|
853
|
+
thick: createSolidBorder("gray", 500, "thick"),
|
|
854
|
+
},
|
|
855
|
+
none: "none",
|
|
856
|
+
notice: {
|
|
857
|
+
default: createSolidBorder("yellow", 600, "default"),
|
|
858
|
+
extraThick: createSolidBorder("yellow", 600, "extraThick"),
|
|
859
|
+
thick: createSolidBorder("yellow", 600, "thick"),
|
|
860
|
+
},
|
|
861
|
+
positive: {
|
|
862
|
+
default: createSolidBorder("green", 600, "default"),
|
|
863
|
+
extraThick: createSolidBorder("green", 600, "extraThick"),
|
|
864
|
+
thick: createSolidBorder("green", 600, "thick"),
|
|
865
|
+
},
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
/**
|
|
869
|
+
* Create a SDS App Theme with custom colors that follows the SDS color model.
|
|
870
|
+
*/
|
|
871
|
+
var makeSdsSemanticAppTheme = function (colors, isDarkTheme) {
|
|
872
|
+
if (isDarkTheme === void 0) { isDarkTheme = false; }
|
|
873
|
+
return (__assign(__assign({}, sharedAppTheme), { borders: createAppThemeBorders(colors, isDarkTheme), colors: colors }));
|
|
919
874
|
};
|
|
875
|
+
var SDSLightAppTheme = makeSdsSemanticAppTheme(SDSLightThemeColors);
|
|
876
|
+
var SDSDarkAppTheme = makeSdsSemanticAppTheme(SDSDarkThemeColors, true);
|
|
920
877
|
/**
|
|
921
878
|
* Helper function to select the appropriate theme settings.
|
|
922
879
|
*
|
|
@@ -6995,13 +6952,22 @@ var StyledMetadataText = styled$3("p", {
|
|
|
6995
6952
|
});
|
|
6996
6953
|
var templateObject_1$I, templateObject_2$q, templateObject_3$j, templateObject_4$g, templateObject_5$b;
|
|
6997
6954
|
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
6955
|
+
var createTextComponent = function (StyledComponent) {
|
|
6956
|
+
return function (_a) {
|
|
6957
|
+
var text = _a.text, className = _a.className;
|
|
6958
|
+
if (!text)
|
|
6959
|
+
return null;
|
|
6960
|
+
return typeof text === "string" ? (jsx(StyledComponent, { className: className, children: text })) : (text);
|
|
6961
|
+
};
|
|
6962
|
+
};
|
|
6963
|
+
var OverlineText = createTextComponent(StyledOverlineText);
|
|
6964
|
+
var TitleText = createTextComponent(StyledTitleText);
|
|
6965
|
+
var SubtitleText = createTextComponent(StyledSubtitleText);
|
|
6966
|
+
var MetadataText = createTextComponent(StyledMetadataText);
|
|
7001
6967
|
var ContentCardTitle = forwardRef(function ContentCardTitle(props, ref) {
|
|
7002
6968
|
var overlineText = props.overlineText, titleText = props.titleText, subtitleText = props.subtitleText, metadataText = props.metadataText, _a = props.classes, classes = _a === void 0 ? EMPTY_OBJECT : _a;
|
|
7003
6969
|
var cardHeader = classes.cardHeader, cardOverline = classes.cardOverline, cardTitle = classes.cardTitle, cardSubtitle = classes.cardSubtitle, cardMetadata = classes.cardMetadata;
|
|
7004
|
-
return (jsxs("div", { ref: ref, children: [jsxs(StyledTitleWrapper, { className: cardHeader, children: [
|
|
6970
|
+
return (jsxs("div", { ref: ref, children: [jsxs(StyledTitleWrapper, { className: cardHeader, children: [jsx(OverlineText, { text: overlineText, className: cardOverline }), jsx(TitleText, { text: titleText, className: cardTitle }), jsx(SubtitleText, { text: subtitleText, className: cardSubtitle })] }), jsx(MetadataText, { text: metadataText, className: cardMetadata })] }));
|
|
7005
6971
|
});
|
|
7006
6972
|
|
|
7007
6973
|
var doNotForwardProps$m = ["buttonsPosition"];
|
|
@@ -15870,4 +15836,4 @@ var TooltipTableContent = function (props) {
|
|
|
15870
15836
|
return (jsxs(TableContainer, __assign({}, rest, { children: [contentAlert && jsx(Alert, { children: contentAlert }), data === null || data === void 0 ? void 0 : data.map(function (section, index) { return (jsxs(Section, { disabled: section.disabled, children: [jsx(SectionLabel, { disabled: section.disabled, label: section.label, children: section.label }), jsx(Table$1, { size: "small", children: jsx(TableBody, { children: section.dataRows.map(function (row, rowIndex) { return (jsxs(TableRow$1, { children: [jsx(RowLabel, { disabled: section.disabled, align: "left", children: row.label }), jsx(RowValue, { disabled: section.disabled, align: itemAlign, children: row.value })] }, row.label + String(rowIndex))); }) }) })] }, "".concat(section.label + String(index)))); })] })));
|
|
15871
15837
|
};
|
|
15872
15838
|
|
|
15873
|
-
export { Accordion, AccordionDetails, AccordionHeader, Alert$1 as Alert, Autocomplete, StyledPopper$2 as AutocompleteMultiColumnStyledPopper, StyledPaper$3 as AutocompleteSingleColumnStyledPaper, Banner, Button, ButtonDropdown, ButtonIcon, ButtonToggle, Callout, CalloutTitle, CellBasic, CellComponent, CellHeader, Chip, ComplexFilter, InputDropdown as ComplexFilterInputDropdown, StyledPopper as ComplexFilterPopper, ContentCard, ContentCardActions, StyledContentCardBody as ContentCardBody, Dialog, DialogActions, index as DialogContent, DialogContext, DialogPaper, DialogTitle, Overline as DialogTitleOverline, Subtitle as DialogTitleSubtitle, Title as DialogTitleTitle, Dropdown, InputDropdown as DropdownInputDropdown, DropdownMenu, StyledPaper$1 as DropdownPaper, StyledPopper as DropdownPopper, Icon, InputCheckbox, InputDropdown, InputRadio, InputSearch, InputSlider, InputText, InputToggle, Link, List, ListItem, ListItemLabel, ListSubheader, LoadingIndicator, MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, Menu, MenuItem, MenuSelect, NavigationFooter, NavigationHeader, NavigationJumpTo, Notification, Pagination, Panel, SDSChooseTheme, SDSDarkAppTheme, SDSLightAppTheme, SDSPaletteDark, SDSPaletteLight, SegmentedControl, Tab, Table, TableHeader, TableRow, Tabs, Tag, TagFilter, Theme, Tooltip, TooltipCondensed, TooltipTableContent as TooltipTable, defaultAppTheme, defaultTheme$4 as defaultTheme, focusVisibleA11yStyle, fontBody, fontBodyL$1 as fontBodyL, fontBodyM$1 as fontBodyM, fontBodyS$1 as fontBodyS, fontBodySemiboldL, fontBodySemiboldM, fontBodySemiboldS, fontBodySemiboldXs, fontBodySemiboldXxs, fontBodySemiboldXxxs, fontBodyXs$2 as fontBodyXs, fontBodyXxs$1 as fontBodyXxs, fontBodyXxxs$1 as fontBodyXxxs, fontCaps, fontCapsXxs, fontCapsXxxs, fontCapsXxxxs, fontCode, fontCodeS, fontCodeSemiboldS, fontCodeSemiboldXs, fontCodeXs, fontHeader, fontHeaderL, fontHeaderM$1 as fontHeaderM, fontHeaderS, fontHeaderXl, fontHeaderXs, fontHeaderXxl, fontHeaderXxs, fontHeaderXxxs, fontTabular, fontTabularS, fontTabularSemiboldS, fontTabularSemiboldXs, fontTabularXs, getBorders, getBreakpoints, getColors, getCorners, getFontWeights, getIconSizes, getMode, getPalette, getSemanticColors, getShadows, getSpaces, getSpacings, getTypography, makeSdsSemanticAppTheme, makeThemeOptions };
|
|
15839
|
+
export { Accordion, AccordionDetails, AccordionHeader, Alert$1 as Alert, Autocomplete, StyledPopper$2 as AutocompleteMultiColumnStyledPopper, StyledPaper$3 as AutocompleteSingleColumnStyledPaper, Banner, Button, ButtonDropdown, ButtonIcon, ButtonToggle, Callout, CalloutTitle, CellBasic, CellComponent, CellHeader, Chip, ComplexFilter, InputDropdown as ComplexFilterInputDropdown, StyledPopper as ComplexFilterPopper, ContentCard, ContentCardActions, StyledContentCardBody as ContentCardBody, StyledMetadataText as ContentCardMetadata, StyledOverlineText as ContentCardOverline, StyledSubtitleText as ContentCardSubtitle, StyledTitleText as ContentCardTitle, Dialog, DialogActions, index as DialogContent, DialogContext, DialogPaper, DialogTitle, Overline as DialogTitleOverline, Subtitle as DialogTitleSubtitle, Title as DialogTitleTitle, Dropdown, InputDropdown as DropdownInputDropdown, DropdownMenu, StyledPaper$1 as DropdownPaper, StyledPopper as DropdownPopper, Icon, InputCheckbox, InputDropdown, InputRadio, InputSearch, InputSlider, InputText, InputToggle, Link, List, ListItem, ListItemLabel, ListSubheader, LoadingIndicator, MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, Menu, MenuItem, MenuSelect, NavigationFooter, NavigationHeader, NavigationJumpTo, Notification, Pagination, Panel, SDSChooseTheme, SDSDarkAppTheme, SDSLightAppTheme, SDSPaletteDark, SDSPaletteLight, SegmentedControl, Tab, Table, TableHeader, TableRow, Tabs, Tag, TagFilter, Theme, Tooltip, TooltipCondensed, TooltipTableContent as TooltipTable, createAppThemeBorders, defaultAppTheme, defaultTheme$4 as defaultTheme, focusVisibleA11yStyle, fontBody, fontBodyL$1 as fontBodyL, fontBodyM$1 as fontBodyM, fontBodyS$1 as fontBodyS, fontBodySemiboldL, fontBodySemiboldM, fontBodySemiboldS, fontBodySemiboldXs, fontBodySemiboldXxs, fontBodySemiboldXxxs, fontBodyXs$2 as fontBodyXs, fontBodyXxs$1 as fontBodyXxs, fontBodyXxxs$1 as fontBodyXxxs, fontCaps, fontCapsXxs, fontCapsXxxs, fontCapsXxxxs, fontCode, fontCodeS, fontCodeSemiboldS, fontCodeSemiboldXs, fontCodeXs, fontHeader, fontHeaderL, fontHeaderM$1 as fontHeaderM, fontHeaderS, fontHeaderXl, fontHeaderXs, fontHeaderXxl, fontHeaderXxs, fontHeaderXxxs, fontTabular, fontTabularS, fontTabularSemiboldS, fontTabularSemiboldXs, fontTabularXs, getBorders, getBreakpoints, getColors, getCorners, getFontWeights, getIconSizes, getMode, getPalette, getSemanticColors, getShadows, getSpaces, getSpacings, getTypography, makeSdsSemanticAppTheme, makeThemeOptions };
|