@czi-sds/components 22.3.1 → 22.3.3
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 +34 -12
- package/dist/index.cjs.js +446 -286
- package/dist/index.esm.d.ts +34 -12
- package/dist/index.esm.js +447 -287
- package/dist/tailwind.json +51 -45
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/variables.css +51 -45
- package/dist/variables.scss +51 -45
- package/package.json +2 -2
package/dist/index.esm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AccordionDetailsProps, PaletteMode, PopperProps, AutocompleteInputChangeReason, AutocompleteRenderInputParams, PaperProps, CardMedia, CardMediaProps, CardProps, SliderProps, SwitchProps, TabsProps, DrawerProps, ToggleButtonGroupProps } from "@mui/material";
|
|
2
|
+
import { AccordionDetailsProps, PaletteMode, PopperProps, AutocompleteInputChangeReason, AutocompleteRenderInputParams, PaperProps, CardMedia, CardMediaProps, CardProps, SliderProps, SwitchProps, AppBarProps, 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";
|
|
@@ -33,7 +33,7 @@ import { LinkProps as LinkProps$1 } from "@mui/material";
|
|
|
33
33
|
import { TabProps as RawTabProps } from "@mui/material";
|
|
34
34
|
import { TabsProps as RawTabsProps } from "@mui/material";
|
|
35
35
|
import React from "react";
|
|
36
|
-
import { CSSProperties, ReactElement, ReactNode, SyntheticEvent, ComponentType, ElementType } from "react";
|
|
36
|
+
import { CSSProperties, ReactElement, ReactNode, SyntheticEvent, HTMLAttributeAnchorTarget, ComponentType, ElementType } from "react";
|
|
37
37
|
import { Theme, ThemeOptions, TypographyStyle, Breakpoints, PaletteOptions } from "@mui/material/styles";
|
|
38
38
|
import { SerializedStyles } from "@emotion/react";
|
|
39
39
|
import { AlertProps } from "@mui/lab";
|
|
@@ -80,6 +80,8 @@ interface BaseColor {
|
|
|
80
80
|
textPrimaryInverse: string;
|
|
81
81
|
textSecondary: string;
|
|
82
82
|
textSecondaryInverse: string;
|
|
83
|
+
textTertiary: string;
|
|
84
|
+
textTertiaryInverse: string;
|
|
83
85
|
textDisabled: string;
|
|
84
86
|
textDisabledInverse: string;
|
|
85
87
|
textOnFill: string;
|
|
@@ -780,6 +782,7 @@ type ButtonSize = "small" | "medium" | "large";
|
|
|
780
782
|
interface BaseButtonProps extends RawButtonProps {
|
|
781
783
|
children?: React.ReactNode;
|
|
782
784
|
isAllCaps?: boolean;
|
|
785
|
+
target?: HTMLAttributeAnchorTarget;
|
|
783
786
|
}
|
|
784
787
|
interface SdsIconButtonProps extends BaseButtonProps {
|
|
785
788
|
sdsStyle: "icon";
|
|
@@ -1140,7 +1143,7 @@ interface BaseContentCardProps extends CardProps {
|
|
|
1140
1143
|
decorativeBorder?: boolean;
|
|
1141
1144
|
children?: React.ReactNode;
|
|
1142
1145
|
clickableCard?: boolean;
|
|
1143
|
-
clickableCardProps?:
|
|
1146
|
+
clickableCardProps?: Partial<SdsMinimalButtonProps>;
|
|
1144
1147
|
buttonsPosition?: "left" | "right";
|
|
1145
1148
|
classes?: {
|
|
1146
1149
|
cardPaper?: string;
|
|
@@ -1453,19 +1456,23 @@ type TagProps = SdsTagProps & ExtraTagProps;
|
|
|
1453
1456
|
declare const Tag: (props: TagProps) => JSX.Element;
|
|
1454
1457
|
interface NavigationFooterNavItem {
|
|
1455
1458
|
label: string;
|
|
1456
|
-
url
|
|
1459
|
+
url?: string;
|
|
1457
1460
|
component?: ElementType;
|
|
1458
1461
|
linkProps?: Record<string, unknown>;
|
|
1459
1462
|
}
|
|
1460
1463
|
interface FooterImage {
|
|
1461
1464
|
image: ReactNode;
|
|
1462
|
-
url
|
|
1465
|
+
url?: string;
|
|
1466
|
+
component?: ElementType;
|
|
1467
|
+
linkProps?: Record<string, unknown>;
|
|
1463
1468
|
}
|
|
1464
1469
|
interface NavigationFooterProps {
|
|
1465
1470
|
hasInvertedStyle?: boolean;
|
|
1466
1471
|
images?: FooterImage[];
|
|
1467
1472
|
logo?: ReactNode;
|
|
1468
1473
|
logoUrl?: string;
|
|
1474
|
+
logoComponent?: ElementType;
|
|
1475
|
+
logoLinkProps?: Record<string, unknown>;
|
|
1469
1476
|
navItems?: NavigationFooterNavItem[];
|
|
1470
1477
|
navLinks?: NavigationFooterNavItem[];
|
|
1471
1478
|
tag?: string;
|
|
@@ -1482,7 +1489,7 @@ interface FooterLinkProps {
|
|
|
1482
1489
|
showDivider: boolean;
|
|
1483
1490
|
hasInvertedStyle?: boolean;
|
|
1484
1491
|
}
|
|
1485
|
-
declare function NavigationFooter({ hasInvertedStyle, images, logo, logoUrl, navItems, navLinks, tag, tagColor, title, ...rest }: NavigationFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
1492
|
+
declare function NavigationFooter({ hasInvertedStyle, images, logo, logoUrl, logoComponent, logoLinkProps, navItems, navLinks, tag, tagColor, title, ...rest }: NavigationFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
1486
1493
|
interface NavigationHeaderPrimaryNavItem<T extends string> extends Record<string, unknown> {
|
|
1487
1494
|
key: T;
|
|
1488
1495
|
label: ReactNode;
|
|
@@ -1490,6 +1497,13 @@ interface NavigationHeaderPrimaryNavItem<T extends string> extends Record<string
|
|
|
1490
1497
|
tagColor?: SdsTagColorType;
|
|
1491
1498
|
onClick?: (e: React.SyntheticEvent) => void;
|
|
1492
1499
|
}
|
|
1500
|
+
interface NavigationHeaderPrimaryNavProps<T extends string> {
|
|
1501
|
+
hasInvertedStyle?: boolean;
|
|
1502
|
+
isNarrow?: boolean;
|
|
1503
|
+
items: NavigationHeaderPrimaryNavItem<T>[];
|
|
1504
|
+
onChange(value: T): void;
|
|
1505
|
+
value: T;
|
|
1506
|
+
}
|
|
1493
1507
|
interface BaseHeaderSecondaryNavItem extends Partial<SdsMinimalButtonProps> {
|
|
1494
1508
|
label: string;
|
|
1495
1509
|
}
|
|
@@ -1499,17 +1513,23 @@ interface TextHeaderSecondaryNavItem extends BaseHeaderSecondaryNavItem {
|
|
|
1499
1513
|
}
|
|
1500
1514
|
interface DropdownHeaderSecondaryNavItem extends BaseHeaderSecondaryNavItem {
|
|
1501
1515
|
itemType: "dropdown";
|
|
1502
|
-
items: Pick<TextHeaderSecondaryNavItem, "label" | "onClick" | "component" | "href">[];
|
|
1516
|
+
items: Pick<TextHeaderSecondaryNavItem, "label" | "onClick" | "component" | "href" | "rel" | "target">[];
|
|
1503
1517
|
}
|
|
1504
1518
|
type NavigationHeaderSecondaryNavItem = TextHeaderSecondaryNavItem | DropdownHeaderSecondaryNavItem;
|
|
1505
|
-
interface
|
|
1519
|
+
interface NavigationHeaderSecondaryNavProps {
|
|
1520
|
+
items: NavigationHeaderSecondaryNavItem[];
|
|
1521
|
+
hasInvertedStyle?: boolean;
|
|
1522
|
+
isNarrow?: boolean;
|
|
1523
|
+
}
|
|
1524
|
+
interface NavigationHeaderProps<T extends string = string> extends AppBarProps {
|
|
1506
1525
|
activePrimaryNavKey?: string;
|
|
1507
|
-
buttons?:
|
|
1526
|
+
buttons?: Partial<SdsProps$0 & ButtonProps$0>[] | React.ReactNode[];
|
|
1508
1527
|
hasInvertedStyle?: boolean;
|
|
1509
1528
|
logo?: ReactNode;
|
|
1510
1529
|
logoUrl?: string;
|
|
1511
1530
|
logoLinkComponent?: ElementType;
|
|
1512
1531
|
logoLinkProps?: LinkProps$1;
|
|
1532
|
+
scrollElevation?: boolean;
|
|
1513
1533
|
primaryNavItems?: NavigationHeaderPrimaryNavItem<T>[];
|
|
1514
1534
|
primaryNavPosition?: "left" | "right";
|
|
1515
1535
|
searchProps?: Partial<InputSearchProps>;
|
|
@@ -1519,11 +1539,13 @@ interface NavigationHeaderProps<T extends string = string> {
|
|
|
1519
1539
|
tag?: string;
|
|
1520
1540
|
tagColor?: SdsTagColorType;
|
|
1521
1541
|
title: string;
|
|
1542
|
+
drawerOpen?: boolean;
|
|
1543
|
+
setDrawerOpen?: (open: boolean) => void;
|
|
1522
1544
|
}
|
|
1523
1545
|
type IconButtonProps = SdsIconButtonProps & {
|
|
1524
1546
|
children?: string;
|
|
1525
1547
|
};
|
|
1526
|
-
declare const NavigationHeader:
|
|
1548
|
+
declare const NavigationHeader: React.ForwardRefExoticComponent<Omit<NavigationHeaderProps<string>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1527
1549
|
interface NavigationJumpToExtraProps extends Omit<TabsProps, "onChange">, CommonThemeProps {
|
|
1528
1550
|
}
|
|
1529
1551
|
type Item = {
|
|
@@ -1687,5 +1709,5 @@ type TooltipTableContentProps = TooltipTableExtraProps;
|
|
|
1687
1709
|
* @see https://mui.com/material-ui/react-table/
|
|
1688
1710
|
*/
|
|
1689
1711
|
declare const TooltipTableContent: (props: TooltipTableContentProps) => JSX.Element;
|
|
1690
|
-
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,
|
|
1691
|
-
export type { AutocompleteBaseProps, AutocompleteMultiColumnProps, AutocompleteOptionBasic, AutocompleteOptionComponent, DefaultAutocompleteOption, ChipProps, ContentCardProps, CardMediaProps as ContentCardMediaProps, ContentCardActionsProps, ContentCardTitleProps, IconNameToSizes, InputToggleExtraProps as InputToggleProps, NavigationHeaderSecondaryNavItem, PanelProps, BasicPanelProps, OverlayPanelProps, TabsProps$0 as TabsProps, SdsTagColorType, TooltipProps, TooltipTableContentProps };
|
|
1712
|
+
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 };
|
|
1713
|
+
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 };
|