@czi-sds/components 20.5.0 → 20.7.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.
@@ -66,6 +66,8 @@ interface SDSComponentPalette {
66
66
  border: string;
67
67
  borderHover: string;
68
68
  borderDisabled: string;
69
+ borderPressed: string;
70
+ borderTable: string;
69
71
  icon: string;
70
72
  iconHover: string;
71
73
  iconPressed: string;
@@ -82,6 +84,7 @@ interface SDSComponentPalette {
82
84
  borderHover: string;
83
85
  borderOpen: string;
84
86
  borderFocus: string;
87
+ borderPressed: string;
85
88
  borderSelected: string;
86
89
  borderDisabled: string;
87
90
  icon: string;
@@ -337,6 +340,7 @@ interface AccentColor {
337
340
  borderHover: string;
338
341
  borderOpen: string;
339
342
  borderSelected: string;
343
+ borderPressed: string;
340
344
  fill: string;
341
345
  fillDisabled: string;
342
346
  fillHover: string;
@@ -349,6 +353,8 @@ interface BaseColor {
349
353
  border: string;
350
354
  borderDisabled: string;
351
355
  borderHover: string;
356
+ borderPressed: string;
357
+ borderTable: string;
352
358
  divider: string;
353
359
  fill: string;
354
360
  fillDisabled: string;
@@ -505,6 +511,9 @@ interface CommonThemeProps {
505
511
  theme?: SDSTheme;
506
512
  }
507
513
  declare const getSpaces: ({ theme }: CommonThemeProps) => Spaces | null;
514
+ /**
515
+ * @deprecated getSpacings() is deprecated and may be removed in a future release. Please use getSpaces()
516
+ */
508
517
  declare const getSpacings: ({ theme }: CommonThemeProps) => Spaces | null;
509
518
  declare const getTypography: ({ theme }: CommonThemeProps) => Typography | null;
510
519
  declare const getPalette: ({ theme }: CommonThemeProps) => PaletteOptions;
@@ -1130,7 +1139,7 @@ interface ExtraDropdownMenuProps extends StyleProps$1 {
1130
1139
  anchorEl: HTMLElement | null;
1131
1140
  PopperComponent?: React.JSXElementConstructor<PopperProps>;
1132
1141
  PaperComponent?: React.JSXElementConstructor<PaperProps>;
1133
- PopperPlacement?: "bottom-start" | "top-start" | "bottom-end" | "top-end";
1142
+ PopperPlacement?: "auto-end" | "auto-start" | "auto" | "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top-start" | "top";
1134
1143
  children?: JSX.Element | null;
1135
1144
  onClickAway?: (event: MouseEvent | TouchEvent) => void;
1136
1145
  ClickAwayListenerProps?: Partial<MUIClickAwayListenerProps>;
@@ -1141,6 +1150,7 @@ type DropdownMenuProps<T, Multiple extends boolean | undefined, DisableClearable
1141
1150
  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;
1142
1151
  declare const doNotForwardProps: string[];
1143
1152
  interface InputDropdownProps extends CommonThemeProps, Omit<ButtonProps$0, (typeof doNotForwardProps)[number]> {
1153
+ children?: ReactNode;
1144
1154
  disabled?: boolean;
1145
1155
  intent?: "default" | "error" | "warning";
1146
1156
  label: ReactNode;
@@ -1319,6 +1329,7 @@ interface InputToggleExtraProps extends SwitchProps, CommonThemeProps {
1319
1329
  offLabel?: string;
1320
1330
  onChange?(e: React.ChangeEvent): void;
1321
1331
  onLabel?: string;
1332
+ width?: number;
1322
1333
  }
1323
1334
  /**
1324
1335
  * @see https://mui.com/material-ui/react-switch/