@czi-sds/components 21.7.0 → 21.7.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.
@@ -60,24 +60,27 @@ interface AccentColor {
60
60
  borderOpen: string;
61
61
  borderFocus: string;
62
62
  borderSelected: string;
63
- icon: string;
64
- iconHover: string;
65
- iconPressed: string;
66
- iconOpen: string;
67
- iconFocus: string;
68
- iconSelected: string;
63
+ ornament: string;
64
+ ornamentHover: string;
65
+ ornamentPressed: string;
66
+ ornamentOpen: string;
67
+ ornamentFocus: string;
68
+ ornamentSelected: string;
69
69
  }
70
70
  interface BaseColor {
71
- surfaceBackground: string;
72
- surfacePrimary: string;
73
- surfaceSecondary: string;
74
- surfaceTertiary: string;
75
- surfacePrimaryInverse: string;
71
+ backgroundPrimary: string;
72
+ backgroundPrimaryInverse: string;
73
+ backgroundSecondary: string;
74
+ backgroundSecondaryInverse: string;
75
+ backgroundTertiary: string;
76
+ surface: string;
77
+ surfaceInverse: string;
76
78
  textPrimary: string;
77
79
  textPrimaryInverse: string;
78
80
  textSecondary: string;
79
81
  textSecondaryInverse: string;
80
82
  textDisabled: string;
83
+ textOnFill: string;
81
84
  fillHover: string;
82
85
  fillPressed: string;
83
86
  fillPrimary: string;
@@ -85,19 +88,20 @@ interface BaseColor {
85
88
  fillSelected: string;
86
89
  fillDisabled: string;
87
90
  divider: string;
91
+ dividerInverse: string;
88
92
  border: string;
93
+ borderInverse: string;
89
94
  borderHover: string;
90
95
  borderPressed: string;
91
96
  borderDisabled: string;
92
97
  borderTable: string;
93
- iconPrimary: string;
94
- iconPrimaryHover: string;
95
- iconPrimaryPressed: string;
96
- iconSecondary: string;
97
- iconPrimaryInverse: string;
98
- iconPrimaryInverseHover: string;
99
- iconPrimaryInversePressed: string;
100
- iconDisabled: string;
98
+ ornamentDisabled: string;
99
+ ornamentOnFill: string;
100
+ ornamentPrimary: string;
101
+ ornamentPrimaryInverse: string;
102
+ ornamentSecondary: string;
103
+ ornamentSecondaryHover: string;
104
+ ornamentSecondaryPressed: string;
101
105
  }
102
106
  interface IntentColor {
103
107
  surfacePrimary: string;
@@ -310,10 +314,12 @@ interface IconSizes {
310
314
  interface Border {
311
315
  default?: string;
312
316
  divider?: string;
317
+ dividerInverse?: string;
313
318
  black?: string;
314
319
  solid?: string;
315
320
  dashed?: string;
316
321
  hover?: string;
322
+ inverse?: string;
317
323
  disabled?: string;
318
324
  table?: string;
319
325
  pressed?: string;
@@ -369,6 +375,8 @@ declare const SDSChooseTheme: (theme: PaletteMode) => AppTheme;
369
375
  * Please use `SDSAppTheme` instead. This export will be removed in the future.
370
376
  */
371
377
  declare const defaultAppTheme: AppTheme;
378
+ declare const SDSPaletteLight: (appTheme: AppTheme) => SDSPalette;
379
+ declare const SDSPaletteDark: (appTheme: AppTheme) => SDSPalette;
372
380
  /**
373
381
  * This function creates the theme options for the MUI theme provider
374
382
  */
@@ -579,12 +587,11 @@ interface IconExtraProps<IconName extends keyof IconNameToSizes> extends CommonT
579
587
  className?: string;
580
588
  sdsIcon: IconName;
581
589
  sdsSize: IconNameToSizes[IconName];
582
- sdsType: "iconButton" | "interactive" | "static" | "button";
583
590
  }
584
591
  type SdsIconColorType = "blue" | "gray" | "green" | "purple" | "red" | "yellow";
585
592
  interface SdsIconWithColor$0 {
586
593
  color?: SdsIconColorType;
587
- shade?: 100 | 200 | 300 | 400 | 500 | 600;
594
+ shade?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
588
595
  }
589
596
  type IconProps<IconName extends keyof IconNameToSizes> = IconExtraProps<IconName> & SdsIconWithColor$0;
590
597
  /**
@@ -895,8 +902,11 @@ interface TooltipExtraProps extends CommonThemeProps {
895
902
  // TODO(185930): remove custom `followCursor` prop when we upgrade to MUIv5
896
903
  arrowOffset?: number;
897
904
  followCursor?: boolean;
905
+ // @deprecated Use `hasInvertedStyle` instead
898
906
  inverted?: boolean;
907
+ // @deprecated Use `hasInvertedStyle` instead
899
908
  sdsStyle?: "dark" | "light";
909
+ hasInvertedStyle?: boolean;
900
910
  subtitle?: string;
901
911
  width?: "default" | "wide";
902
912
  }
@@ -1161,7 +1171,7 @@ interface CheckboxExtraProps extends CommonThemeProps {
1161
1171
  interface CheckboxContentProps extends Omit<MUICheckboxProps, "color" | "defaultChecked" | "indeterminate"> {
1162
1172
  caption?: string;
1163
1173
  checkboxProps?: Partial<MUICheckboxProps>;
1164
- intent?: "default" | "error" | "warning";
1174
+ intent?: "default" | "negative" | "notice" | "positive";
1165
1175
  label?: React.ReactNode;
1166
1176
  stage?: "checked" | "unchecked" | "indeterminate";
1167
1177
  }
@@ -1176,7 +1186,7 @@ interface RadioExtraProps extends CommonThemeProps {
1176
1186
  }
1177
1187
  interface RadioContentProps extends Omit<MUIRadioProps, "color" | "defaultChecked"> {
1178
1188
  caption?: string;
1179
- intent?: "default" | "error" | "warning";
1189
+ intent?: "default" | "negative" | "notice" | "positive";
1180
1190
  label?: React.ReactNode;
1181
1191
  radioProps?: Partial<MUIRadioProps>;
1182
1192
  stage?: "checked" | "unchecked";
@@ -1306,13 +1316,14 @@ type MenuSelectProps<T, Multiple extends boolean | undefined = undefined, Disabl
1306
1316
  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;
1307
1317
  interface NavigationJumpToExtraProps extends Omit<TabsProps, "onChange">, CommonThemeProps {
1308
1318
  }
1319
+ type Item = {
1320
+ title: string;
1321
+ elementRef: React.MutableRefObject<HTMLElement | null>;
1322
+ };
1309
1323
  interface NavigationJumpToProps extends NavigationJumpToExtraProps {
1310
- items: Array<{
1311
- title: string;
1312
- elementRef: React.MutableRefObject<HTMLElement | null>;
1313
- }>;
1324
+ items: Array<Item>;
1314
1325
  offsetTop?: number;
1315
- onChange?: (value: number) => void;
1326
+ onChange?: (value: number, event?: React.SyntheticEvent, type?: "click" | "scroll") => void;
1316
1327
  }
1317
1328
  declare const NavigationJumpTo: React.ForwardRefExoticComponent<Omit<NavigationJumpToProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
1318
1329
  type NotificationIntentType = "info" | "negative" | "positive" | "notice";
@@ -1506,5 +1517,5 @@ type TooltipTableContentProps = TooltipTableExtraProps;
1506
1517
  * @see https://mui.com/material-ui/react-table/
1507
1518
  */
1508
1519
  declare const TooltipTableContent: (props: TooltipTableContentProps) => JSX.Element;
1509
- 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, 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, BasicPanelProps, OverlayPanelProps, PanelProps, PANEL_BASIC_MIN_WIDTH_PX, PANEL_OVERLAY_MIN_WIDTH_PX, 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, 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 };
1520
+ 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, 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, BasicPanelProps, OverlayPanelProps, PanelProps, PANEL_BASIC_MIN_WIDTH_PX, PANEL_OVERLAY_MIN_WIDTH_PX, 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 };
1510
1521
  export type { AutocompleteBaseProps, AutocompleteMultiColumnProps, AutocompleteOptionBasic, AutocompleteOptionComponent, DefaultAutocompleteOption, ChipProps, IconNameToSizes, InputToggleExtraProps as InputToggleProps, TabsProps$0 as TabsProps, SdsTagColorType, TooltipProps, TooltipTableContentProps };