@czi-sds/components 22.9.0 → 22.10.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 +4 -11
- package/dist/index.cjs.js +233 -156
- package/dist/index.esm.d.ts +4 -11
- package/dist/index.esm.js +233 -156
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.cjs.d.ts
CHANGED
|
@@ -1563,16 +1563,17 @@ declare function NavigationFooter({ hasInvertedStyle, images, logo, logoUrl, log
|
|
|
1563
1563
|
interface BaseNavigationHeaderPrimaryNavItem<T extends string> extends Record<string, unknown> {
|
|
1564
1564
|
key: T;
|
|
1565
1565
|
label: ReactNode;
|
|
1566
|
+
onClick?: (e: React.SyntheticEvent) => void;
|
|
1566
1567
|
}
|
|
1567
1568
|
interface TextNavigationHeaderPrimaryNavItem<T extends string> extends BaseNavigationHeaderPrimaryNavItem<T> {
|
|
1568
1569
|
itemType: "text";
|
|
1569
1570
|
tag?: string;
|
|
1570
1571
|
tagColor?: SdsTagColorType;
|
|
1571
|
-
onClick?: (e: React.SyntheticEvent) => void;
|
|
1572
1572
|
}
|
|
1573
1573
|
interface DropdownItem {
|
|
1574
1574
|
label: ReactNode;
|
|
1575
|
-
|
|
1575
|
+
section?: string;
|
|
1576
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
1576
1577
|
component?: React.ElementType;
|
|
1577
1578
|
href?: string;
|
|
1578
1579
|
rel?: string;
|
|
@@ -1594,18 +1595,10 @@ interface TextHeaderSecondaryNavItem extends Partial<SdsMinimalButtonProps> {
|
|
|
1594
1595
|
label: string;
|
|
1595
1596
|
itemType: "text";
|
|
1596
1597
|
}
|
|
1597
|
-
interface DropdownItem$0 {
|
|
1598
|
-
label: ReactNode;
|
|
1599
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
1600
|
-
component?: React.ElementType;
|
|
1601
|
-
href?: string;
|
|
1602
|
-
rel?: string;
|
|
1603
|
-
target?: string;
|
|
1604
|
-
}
|
|
1605
1598
|
interface DropdownHeaderSecondaryNavItem extends Partial<SdsMinimalButtonProps> {
|
|
1606
1599
|
label: string;
|
|
1607
1600
|
itemType: "dropdown";
|
|
1608
|
-
items: DropdownItem
|
|
1601
|
+
items: DropdownItem[];
|
|
1609
1602
|
}
|
|
1610
1603
|
type NavigationHeaderSecondaryNavItem = TextHeaderSecondaryNavItem | DropdownHeaderSecondaryNavItem;
|
|
1611
1604
|
interface NavigationHeaderSecondaryNavProps {
|