@czi-sds/components 22.3.2 → 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 +31 -10
- package/dist/index.cjs.js +439 -283
- package/dist/index.esm.d.ts +31 -10
- package/dist/index.esm.js +440 -284
- 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.cjs.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";
|
|
@@ -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;
|
|
@@ -1454,19 +1456,23 @@ type TagProps = SdsTagProps & ExtraTagProps;
|
|
|
1454
1456
|
declare const Tag: (props: TagProps) => JSX.Element;
|
|
1455
1457
|
interface NavigationFooterNavItem {
|
|
1456
1458
|
label: string;
|
|
1457
|
-
url
|
|
1459
|
+
url?: string;
|
|
1458
1460
|
component?: ElementType;
|
|
1459
1461
|
linkProps?: Record<string, unknown>;
|
|
1460
1462
|
}
|
|
1461
1463
|
interface FooterImage {
|
|
1462
1464
|
image: ReactNode;
|
|
1463
|
-
url
|
|
1465
|
+
url?: string;
|
|
1466
|
+
component?: ElementType;
|
|
1467
|
+
linkProps?: Record<string, unknown>;
|
|
1464
1468
|
}
|
|
1465
1469
|
interface NavigationFooterProps {
|
|
1466
1470
|
hasInvertedStyle?: boolean;
|
|
1467
1471
|
images?: FooterImage[];
|
|
1468
1472
|
logo?: ReactNode;
|
|
1469
1473
|
logoUrl?: string;
|
|
1474
|
+
logoComponent?: ElementType;
|
|
1475
|
+
logoLinkProps?: Record<string, unknown>;
|
|
1470
1476
|
navItems?: NavigationFooterNavItem[];
|
|
1471
1477
|
navLinks?: NavigationFooterNavItem[];
|
|
1472
1478
|
tag?: string;
|
|
@@ -1483,7 +1489,7 @@ interface FooterLinkProps {
|
|
|
1483
1489
|
showDivider: boolean;
|
|
1484
1490
|
hasInvertedStyle?: boolean;
|
|
1485
1491
|
}
|
|
1486
|
-
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;
|
|
1487
1493
|
interface NavigationHeaderPrimaryNavItem<T extends string> extends Record<string, unknown> {
|
|
1488
1494
|
key: T;
|
|
1489
1495
|
label: ReactNode;
|
|
@@ -1491,6 +1497,13 @@ interface NavigationHeaderPrimaryNavItem<T extends string> extends Record<string
|
|
|
1491
1497
|
tagColor?: SdsTagColorType;
|
|
1492
1498
|
onClick?: (e: React.SyntheticEvent) => void;
|
|
1493
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
|
+
}
|
|
1494
1507
|
interface BaseHeaderSecondaryNavItem extends Partial<SdsMinimalButtonProps> {
|
|
1495
1508
|
label: string;
|
|
1496
1509
|
}
|
|
@@ -1500,17 +1513,23 @@ interface TextHeaderSecondaryNavItem extends BaseHeaderSecondaryNavItem {
|
|
|
1500
1513
|
}
|
|
1501
1514
|
interface DropdownHeaderSecondaryNavItem extends BaseHeaderSecondaryNavItem {
|
|
1502
1515
|
itemType: "dropdown";
|
|
1503
|
-
items: Pick<TextHeaderSecondaryNavItem, "label" | "onClick" | "component" | "href">[];
|
|
1516
|
+
items: Pick<TextHeaderSecondaryNavItem, "label" | "onClick" | "component" | "href" | "rel" | "target">[];
|
|
1504
1517
|
}
|
|
1505
1518
|
type NavigationHeaderSecondaryNavItem = TextHeaderSecondaryNavItem | DropdownHeaderSecondaryNavItem;
|
|
1506
|
-
interface
|
|
1519
|
+
interface NavigationHeaderSecondaryNavProps {
|
|
1520
|
+
items: NavigationHeaderSecondaryNavItem[];
|
|
1521
|
+
hasInvertedStyle?: boolean;
|
|
1522
|
+
isNarrow?: boolean;
|
|
1523
|
+
}
|
|
1524
|
+
interface NavigationHeaderProps<T extends string = string> extends AppBarProps {
|
|
1507
1525
|
activePrimaryNavKey?: string;
|
|
1508
|
-
buttons?:
|
|
1526
|
+
buttons?: Partial<SdsProps$0 & ButtonProps$0>[] | React.ReactNode[];
|
|
1509
1527
|
hasInvertedStyle?: boolean;
|
|
1510
1528
|
logo?: ReactNode;
|
|
1511
1529
|
logoUrl?: string;
|
|
1512
1530
|
logoLinkComponent?: ElementType;
|
|
1513
1531
|
logoLinkProps?: LinkProps$1;
|
|
1532
|
+
scrollElevation?: boolean;
|
|
1514
1533
|
primaryNavItems?: NavigationHeaderPrimaryNavItem<T>[];
|
|
1515
1534
|
primaryNavPosition?: "left" | "right";
|
|
1516
1535
|
searchProps?: Partial<InputSearchProps>;
|
|
@@ -1520,11 +1539,13 @@ interface NavigationHeaderProps<T extends string = string> {
|
|
|
1520
1539
|
tag?: string;
|
|
1521
1540
|
tagColor?: SdsTagColorType;
|
|
1522
1541
|
title: string;
|
|
1542
|
+
drawerOpen?: boolean;
|
|
1543
|
+
setDrawerOpen?: (open: boolean) => void;
|
|
1523
1544
|
}
|
|
1524
1545
|
type IconButtonProps = SdsIconButtonProps & {
|
|
1525
1546
|
children?: string;
|
|
1526
1547
|
};
|
|
1527
|
-
declare const NavigationHeader:
|
|
1548
|
+
declare const NavigationHeader: React.ForwardRefExoticComponent<Omit<NavigationHeaderProps<string>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1528
1549
|
interface NavigationJumpToExtraProps extends Omit<TabsProps, "onChange">, CommonThemeProps {
|
|
1529
1550
|
}
|
|
1530
1551
|
type Item = {
|
|
@@ -1688,5 +1709,5 @@ type TooltipTableContentProps = TooltipTableExtraProps;
|
|
|
1688
1709
|
* @see https://mui.com/material-ui/react-table/
|
|
1689
1710
|
*/
|
|
1690
1711
|
declare const TooltipTableContent: (props: TooltipTableContentProps) => JSX.Element;
|
|
1691
|
-
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,
|
|
1692
|
-
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 };
|