@czi-sds/components 20.4.0 → 20.6.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;
@@ -659,6 +668,8 @@ interface IconNameToSizes {
659
668
  Refresh: "xs" | "s" | "l" | "xl";
660
669
  Report: "l" | "xl";
661
670
  Rocket: "l" | "xl";
671
+ RotateLeft: "xs" | "s";
672
+ RotateRight: "xs" | "s";
662
673
  Save: "l" | "xl";
663
674
  Search: "xs" | "s" | "l" | "xl";
664
675
  SearchLinesHorizontal3: "xs" | "s" | "l" | "xl";
@@ -761,7 +772,7 @@ type MenuItemProps<IconName extends keyof IconNameToSmallSizes> = MenuItemExtraP
761
772
  /**
762
773
  * @see https://mui.com/material-ui/react-menu/
763
774
  */
764
- declare const MenuItem: React.ForwardRefExoticComponent<Omit<MenuItemProps<"Bacteria" | "BarChartHorizontal3" | "BarChartVertical3" | "BarChartVertical4" | "Check" | "CheckCircle" | "ChevronDown" | "ChevronDown2" | "ChevronLeft2" | "ChevronLeft" | "ChevronRight2" | "ChevronRight" | "ChevronUp" | "ChevronUp2" | "CirclesOverlap2" | "Copy" | "Cube" | "Document" | "DotsHorizontal" | "Download" | "Edit" | "Envelope" | "ExclamationMarkCircle" | "EyeClosed" | "EyeOpen" | "Filter" | "FlagCheck" | "FlagOutline" | "FlagQuestionMark" | "FlagXMark" | "Gear" | "Globe" | "House" | "InfoCircle" | "LifeRing" | "LightBulb" | "LinesDashed3Solid1" | "LinesHorizontal3" | "Link" | "List" | "Loading" | "Lock" | "LockCircle" | "Minus" | "Open" | "People" | "Percentage" | "Person" | "Pin" | "PinLocation" | "Plus" | "PlusCircle" | "PuzzlePiece" | "Refresh" | "Search" | "SearchLinesHorizontal3" | "Starburst" | "Table" | "TrashCan" | "TreeHorizontal" | "TreeVertical" | "TriangleDown" | "TriangleLeft" | "TriangleRight" | "TriangleUp" | "XMark" | "XMarkCircle">, "ref"> & React.RefAttributes<HTMLLIElement | null>>;
775
+ declare const MenuItem: React.ForwardRefExoticComponent<Omit<MenuItemProps<"Bacteria" | "BarChartHorizontal3" | "BarChartVertical3" | "BarChartVertical4" | "Check" | "CheckCircle" | "ChevronDown" | "ChevronDown2" | "ChevronLeft2" | "ChevronLeft" | "ChevronRight2" | "ChevronRight" | "ChevronUp" | "ChevronUp2" | "CirclesOverlap2" | "Copy" | "Cube" | "Document" | "DotsHorizontal" | "Download" | "Edit" | "Envelope" | "ExclamationMarkCircle" | "EyeClosed" | "EyeOpen" | "Filter" | "FlagCheck" | "FlagOutline" | "FlagQuestionMark" | "FlagXMark" | "Gear" | "Globe" | "House" | "InfoCircle" | "LifeRing" | "LightBulb" | "LinesDashed3Solid1" | "LinesHorizontal3" | "Link" | "List" | "Loading" | "Lock" | "LockCircle" | "Minus" | "Open" | "People" | "Percentage" | "Person" | "Pin" | "PinLocation" | "Plus" | "PlusCircle" | "PuzzlePiece" | "Refresh" | "RotateLeft" | "RotateRight" | "Search" | "SearchLinesHorizontal3" | "Starburst" | "Table" | "TrashCan" | "TreeHorizontal" | "TreeVertical" | "TriangleDown" | "TriangleLeft" | "TriangleRight" | "TriangleUp" | "XMark" | "XMarkCircle">, "ref"> & React.RefAttributes<HTMLLIElement | null>>;
765
776
  interface StyleProps extends CommonThemeProps {
766
777
  count?: number;
767
778
  icon?: ReactElement;
@@ -1128,7 +1139,7 @@ interface ExtraDropdownMenuProps extends StyleProps$1 {
1128
1139
  anchorEl: HTMLElement | null;
1129
1140
  PopperComponent?: React.JSXElementConstructor<PopperProps>;
1130
1141
  PaperComponent?: React.JSXElementConstructor<PaperProps>;
1131
- 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";
1132
1143
  children?: JSX.Element | null;
1133
1144
  onClickAway?: (event: MouseEvent | TouchEvent) => void;
1134
1145
  ClickAwayListenerProps?: Partial<MUIClickAwayListenerProps>;
@@ -1139,6 +1150,7 @@ type DropdownMenuProps<T, Multiple extends boolean | undefined, DisableClearable
1139
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;
1140
1151
  declare const doNotForwardProps: string[];
1141
1152
  interface InputDropdownProps extends CommonThemeProps, Omit<ButtonProps$0, (typeof doNotForwardProps)[number]> {
1153
+ children?: ReactNode;
1142
1154
  disabled?: boolean;
1143
1155
  intent?: "default" | "error" | "warning";
1144
1156
  label: ReactNode;
@@ -1317,6 +1329,7 @@ interface InputToggleExtraProps extends SwitchProps, CommonThemeProps {
1317
1329
  offLabel?: string;
1318
1330
  onChange?(e: React.ChangeEvent): void;
1319
1331
  onLabel?: string;
1332
+ width?: number;
1320
1333
  }
1321
1334
  /**
1322
1335
  * @see https://mui.com/material-ui/react-switch/