@czi-sds/components 22.16.1 → 22.16.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 +11 -10
- package/dist/index.cjs.js +718 -628
- package/dist/index.esm.d.ts +11 -10
- package/dist/index.esm.js +718 -628
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.cjs.d.ts
CHANGED
|
@@ -1879,28 +1879,29 @@ interface NavigationHeaderPrimaryNavProps<T extends string> {
|
|
|
1879
1879
|
topOffset?: number;
|
|
1880
1880
|
onClose?: () => void;
|
|
1881
1881
|
}
|
|
1882
|
-
interface
|
|
1883
|
-
|
|
1882
|
+
interface BaseNavigationHeaderSecondaryNavItem<T extends string> extends Record<string, unknown> {
|
|
1883
|
+
key: T;
|
|
1884
|
+
label: ReactNode;
|
|
1885
|
+
onClick?: (e: React.SyntheticEvent) => void;
|
|
1886
|
+
}
|
|
1887
|
+
interface TextNavigationHeaderSecondaryNavItem<T extends string> extends BaseNavigationHeaderSecondaryNavItem<T> {
|
|
1884
1888
|
itemType: "text";
|
|
1885
1889
|
tag?: string;
|
|
1886
1890
|
tagColor?: SdsTagColorType;
|
|
1887
1891
|
}
|
|
1888
|
-
interface
|
|
1889
|
-
label: string;
|
|
1892
|
+
interface DropdownNavigationHeaderSecondaryNavItem<T extends string> extends BaseNavigationHeaderSecondaryNavItem<T> {
|
|
1890
1893
|
itemType: "dropdown";
|
|
1891
1894
|
items: DropdownItem[];
|
|
1892
1895
|
sectionProps?: Record<string, SectionProps>;
|
|
1893
|
-
tag?: string;
|
|
1894
|
-
tagColor?: SdsTagColorType;
|
|
1895
1896
|
defaultUrl?: string;
|
|
1896
1897
|
component?: React.ElementType;
|
|
1897
1898
|
target?: string;
|
|
1898
1899
|
rel?: string;
|
|
1899
1900
|
}
|
|
1900
|
-
type NavigationHeaderSecondaryNavItem =
|
|
1901
|
-
interface NavigationHeaderSecondaryNavProps {
|
|
1901
|
+
type NavigationHeaderSecondaryNavItem<T extends string> = TextNavigationHeaderSecondaryNavItem<T> | DropdownNavigationHeaderSecondaryNavItem<T>;
|
|
1902
|
+
interface NavigationHeaderSecondaryNavProps<T extends string> {
|
|
1902
1903
|
menuProps?: Partial<MenuProps$0>;
|
|
1903
|
-
items: NavigationHeaderSecondaryNavItem[];
|
|
1904
|
+
items: NavigationHeaderSecondaryNavItem<T>[];
|
|
1904
1905
|
hasInvertedStyle?: boolean;
|
|
1905
1906
|
isNarrow?: boolean;
|
|
1906
1907
|
sdsStyle?: "dropdown" | "drawer";
|
|
@@ -1924,7 +1925,7 @@ interface NavigationHeaderProps<T extends string = string> extends Omit<AppBarPr
|
|
|
1924
1925
|
primaryNavItems?: NavigationHeaderPrimaryNavItem<T>[];
|
|
1925
1926
|
primaryNavPosition?: "left" | "right";
|
|
1926
1927
|
searchProps?: Partial<InputSearchProps>;
|
|
1927
|
-
secondaryNavItems?: NavigationHeaderSecondaryNavItem[];
|
|
1928
|
+
secondaryNavItems?: NavigationHeaderSecondaryNavItem<T>[];
|
|
1928
1929
|
setActivePrimaryNavKey?(key: string): void;
|
|
1929
1930
|
showSearch?: boolean;
|
|
1930
1931
|
tag?: string;
|