@czi-sds/components 21.2.0 → 21.3.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 +39 -9
- package/dist/index.cjs.js +469 -348
- package/dist/index.esm.d.ts +39 -9
- package/dist/index.esm.js +468 -350
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/variables.css +34 -10
- package/dist/variables.scss +34 -10
- package/package.json +2 -2
package/dist/index.cjs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AccordionDetailsProps, PaletteMode, PopperProps, AutocompleteInputChangeReason, AutocompleteRenderInputParams, PaperProps, SliderProps, SwitchProps, TabsProps, ToggleButtonGroupProps } from "@mui/material";
|
|
2
|
+
import { AccordionDetailsProps, PaletteMode, PopperProps, AutocompleteInputChangeReason, AutocompleteRenderInputParams, PaperProps, SliderProps, SwitchProps, TabsProps, DrawerProps, ToggleButtonGroupProps } from "@mui/material";
|
|
3
3
|
import { AccordionProps as RawAccordionProps } from "@mui/material";
|
|
4
4
|
import { AccordionSummaryProps as RawAccordionSummaryProps } from "@mui/material";
|
|
5
5
|
import { AutocompleteChangeDetails as AutocompleteChangeDetails$0 } from "@mui/material";
|
|
@@ -305,6 +305,8 @@ interface Border {
|
|
|
305
305
|
open?: string;
|
|
306
306
|
focused?: string;
|
|
307
307
|
selected?: string;
|
|
308
|
+
thick?: string;
|
|
309
|
+
extraThick?: string;
|
|
308
310
|
}
|
|
309
311
|
interface Borders {
|
|
310
312
|
accent: Border;
|
|
@@ -569,9 +571,10 @@ type IconProps<IconName extends keyof IconNameToSizes> = IconExtraProps<IconName
|
|
|
569
571
|
* @see https://mui.com/material-ui/icons/#icons
|
|
570
572
|
*/
|
|
571
573
|
declare const Icon: import("react").ForwardRefExoticComponent<IconExtraProps<keyof IconNameToSizes> & SdsIconWithColor$0 & import("react").RefAttributes<HTMLDivElement | null>>;
|
|
574
|
+
type IntentType = "negative" | "notice" | "positive";
|
|
572
575
|
interface InputSearchExtraProps extends CommonThemeProps {
|
|
573
576
|
disabled?: boolean;
|
|
574
|
-
intent?:
|
|
577
|
+
intent?: IntentType | "default";
|
|
575
578
|
sdsStyle?: "rounded" | "square";
|
|
576
579
|
value?: string;
|
|
577
580
|
}
|
|
@@ -689,7 +692,7 @@ declare const StyledPopper: import("@emotion/styled").StyledComponent<Omit<impor
|
|
|
689
692
|
} & StyleProps$0, {}, {}>;
|
|
690
693
|
declare const StyledPaper$0: import("@emotion/styled").StyledComponent<import("@mui/material").PaperOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
691
694
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
692
|
-
}, "className" | "style" | "classes" | "children" | "sx" | "
|
|
695
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "elevation" | "variant" | "square"> & {
|
|
693
696
|
theme?: import("@emotion/react").Theme | undefined;
|
|
694
697
|
} & StyleProps$0, {}, {}>;
|
|
695
698
|
interface ExtraAutocompleteMultiColumnProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> extends StyleProps$0 {
|
|
@@ -977,7 +980,7 @@ declare const StyledPopper$1: import("@emotion/styled").StyledComponent<Omit<imp
|
|
|
977
980
|
} & CommonThemeProps, {}, {}>;
|
|
978
981
|
declare const StyledPaper$1: import("@emotion/styled").StyledComponent<import("@mui/material").PaperOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
979
982
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
980
|
-
}, "className" | "style" | "classes" | "children" | "sx" | "
|
|
983
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "elevation" | "variant" | "square"> & {
|
|
981
984
|
theme?: import("@emotion/react").Theme | undefined;
|
|
982
985
|
} & StyleProps$1, {}, {}>;
|
|
983
986
|
/**
|
|
@@ -1012,10 +1015,11 @@ type CustomAutocompleteProps$1<T, Multiple extends boolean | undefined, DisableC
|
|
|
1012
1015
|
type DropdownMenuProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> = CustomAutocompleteProps$1<T, Multiple, DisableClearable, FreeSolo> & ExtraDropdownMenuProps;
|
|
1013
1016
|
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;
|
|
1014
1017
|
declare const doNotForwardProps: string[];
|
|
1018
|
+
type IntentType$0 = "negative" | "notice" | "positive";
|
|
1015
1019
|
interface InputDropdownProps extends CommonThemeProps, Omit<ButtonProps$0, (typeof doNotForwardProps)[number]> {
|
|
1016
1020
|
children?: ReactNode;
|
|
1017
1021
|
disabled?: boolean;
|
|
1018
|
-
intent?: "default" |
|
|
1022
|
+
intent?: "default" | IntentType$0;
|
|
1019
1023
|
label: ReactNode;
|
|
1020
1024
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
1021
1025
|
state?: "default" | "open";
|
|
@@ -1137,7 +1141,7 @@ type DropdownProps<T, Multiple extends boolean | undefined, DisableClearable ext
|
|
|
1137
1141
|
// eslint-disable-next-line sonarjs/cognitive-complexity
|
|
1138
1142
|
declare const Dropdown: <T extends DefaultAutocompleteOption, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined>(props: DropdownProps<T, Multiple, DisableClearable, FreeSolo>) => JSX.Element;
|
|
1139
1143
|
interface CheckboxExtraProps extends CommonThemeProps {
|
|
1140
|
-
intent?: "default" | "negative" | "notice";
|
|
1144
|
+
intent?: "default" | "negative" | "notice" | "positive";
|
|
1141
1145
|
disabled?: boolean;
|
|
1142
1146
|
}
|
|
1143
1147
|
interface CheckboxContentProps extends Omit<MUICheckboxProps, "color" | "defaultChecked" | "indeterminate"> {
|
|
@@ -1153,7 +1157,7 @@ type CheckboxProps = CheckboxContentProps & CheckboxExtraProps;
|
|
|
1153
1157
|
*/
|
|
1154
1158
|
declare const InputCheckbox: (props: CheckboxProps) => JSX.Element;
|
|
1155
1159
|
interface RadioExtraProps extends CommonThemeProps {
|
|
1156
|
-
intent?: "default" | "negative" | "notice";
|
|
1160
|
+
intent?: "default" | "negative" | "notice" | "positive";
|
|
1157
1161
|
disabled?: boolean;
|
|
1158
1162
|
}
|
|
1159
1163
|
interface RadioContentProps extends Omit<MUIRadioProps, "color" | "defaultChecked"> {
|
|
@@ -1176,9 +1180,10 @@ type InputSliderProps = InputSliderExtraProps;
|
|
|
1176
1180
|
* @see https://mui.com/material-ui/react-slider/
|
|
1177
1181
|
*/
|
|
1178
1182
|
declare const InputSlider: import("react").ForwardRefExoticComponent<Omit<InputSliderExtraProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
1183
|
+
type IntentType$1 = "negative" | "notice" | "positive";
|
|
1179
1184
|
interface InputTextExtraProps extends CommonThemeProps {
|
|
1180
1185
|
disabled?: boolean;
|
|
1181
|
-
intent?: "default" |
|
|
1186
|
+
intent?: "default" | IntentType$1;
|
|
1182
1187
|
sdsType?: "textField" | "textArea";
|
|
1183
1188
|
hideLabel?: boolean;
|
|
1184
1189
|
}
|
|
@@ -1332,6 +1337,31 @@ interface PaginationInternalProps {
|
|
|
1332
1337
|
}
|
|
1333
1338
|
type PaginationProps = PaginationExtraProps & PaginationInternalProps;
|
|
1334
1339
|
declare const Pagination: import("react").ForwardRefExoticComponent<PaginationExtraProps & PaginationInternalProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
1340
|
+
interface PanelHeaderCloseProps {
|
|
1341
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
1342
|
+
CloseButtonComponent?: React.ReactNode;
|
|
1343
|
+
}
|
|
1344
|
+
interface BasicPanelProps extends Omit<DrawerProps, "variant"> {
|
|
1345
|
+
sdsType?: "basic"; // Discriminator
|
|
1346
|
+
position?: "left" | "right";
|
|
1347
|
+
width?: number | string;
|
|
1348
|
+
}
|
|
1349
|
+
interface OverlayPanelProps extends Omit<DrawerProps, "variant"> {
|
|
1350
|
+
sdsType?: "overlay"; // Discriminator
|
|
1351
|
+
position?: "left" | "right" | "bottom";
|
|
1352
|
+
width?: number | string;
|
|
1353
|
+
HeaderComponent?: React.ReactNode;
|
|
1354
|
+
closeButtonOnClick?: PanelHeaderCloseProps["onClick"];
|
|
1355
|
+
CloseButtonComponent?: PanelHeaderCloseProps["CloseButtonComponent"];
|
|
1356
|
+
}
|
|
1357
|
+
// Discriminated Union
|
|
1358
|
+
type PanelProps = BasicPanelProps | OverlayPanelProps;
|
|
1359
|
+
declare const PANEL_BASIC_MIN_WIDTH_PX = 240;
|
|
1360
|
+
declare const PANEL_OVERLAY_MIN_WIDTH_PX = 320;
|
|
1361
|
+
/**
|
|
1362
|
+
* @see https://mui.com/material-ui/react-drawer/
|
|
1363
|
+
*/
|
|
1364
|
+
declare const Panel: React.ForwardRefExoticComponent<(Omit<BasicPanelProps, "ref"> | Omit<OverlayPanelProps, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
1335
1365
|
// one prop is array of objects: with icon name and tooltip text. They need to make
|
|
1336
1366
|
// first item in array first button, etc
|
|
1337
1367
|
interface SingleButtonDefinition {
|
|
@@ -1462,5 +1492,5 @@ type TooltipTableContentProps = TooltipTableExtraProps;
|
|
|
1462
1492
|
* @see https://mui.com/material-ui/react-table/
|
|
1463
1493
|
*/
|
|
1464
1494
|
declare const TooltipTableContent: (props: TooltipTableContentProps) => JSX.Element;
|
|
1465
|
-
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, 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, 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, Typography, FontWeights, Corners, Spaces, Spacings, Color, Colors, IconSize, IconSizes, Border, Borders, Theme$0 as Theme, defaultTheme, 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 };
|
|
1495
|
+
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, 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, Typography, FontWeights, Corners, Spaces, Spacings, Color, Colors, IconSize, IconSizes, Border, Borders, Theme$0 as Theme, defaultTheme, 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 };
|
|
1466
1496
|
export type { AutocompleteBaseProps, AutocompleteMultiColumnProps, AutocompleteOptionBasic, AutocompleteOptionComponent, DefaultAutocompleteOption, ChipProps, IconNameToSizes, InputToggleExtraProps as InputToggleProps, TabsProps$0 as TabsProps, SdsTagColorType, TooltipProps, TooltipTableContentProps };
|