@czi-sds/components 22.14.0 → 22.15.1
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 +76 -6
- package/dist/index.cjs.js +2156 -1194
- package/dist/index.esm.d.ts +76 -6
- package/dist/index.esm.js +2156 -1194
- package/dist/tailwind.json +122 -66
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/variables.css +136 -78
- package/dist/variables.scss +136 -78
- package/package.json +2 -2
package/dist/index.cjs.d.ts
CHANGED
|
@@ -77,52 +77,72 @@ interface AccentColor {
|
|
|
77
77
|
}
|
|
78
78
|
interface BaseColor {
|
|
79
79
|
backgroundPrimary: string;
|
|
80
|
+
backgroundPrimaryDark: string;
|
|
80
81
|
backgroundPrimaryInverse: string;
|
|
81
82
|
backgroundSecondary: string;
|
|
83
|
+
backgroundSecondaryOnDark: string;
|
|
82
84
|
backgroundSecondaryInverse: string;
|
|
83
85
|
backgroundTertiary: string;
|
|
84
86
|
surface: string;
|
|
87
|
+
surfaceOnDark: string;
|
|
85
88
|
surfaceInverse: string;
|
|
86
89
|
textPrimary: string;
|
|
90
|
+
textPrimaryOnDark: string;
|
|
87
91
|
textPrimaryInverse: string;
|
|
88
92
|
textSecondary: string;
|
|
93
|
+
textSecondaryOnDark: string;
|
|
89
94
|
textSecondaryInverse: string;
|
|
90
95
|
textTertiary: string;
|
|
96
|
+
textTertiaryOnDark: string;
|
|
91
97
|
textTertiaryInverse: string;
|
|
92
98
|
textDisabled: string;
|
|
99
|
+
textDisabledOnDark: string;
|
|
93
100
|
textDisabledInverse: string;
|
|
94
101
|
textOnFill: string;
|
|
95
102
|
fillHover: string;
|
|
103
|
+
fillHoverOnDark: string;
|
|
96
104
|
fillHoverInverse: string;
|
|
97
105
|
fillPressed: string;
|
|
106
|
+
fillPressedOnDark: string;
|
|
98
107
|
fillPressedInverse: string;
|
|
99
108
|
fillPrimary: string;
|
|
100
109
|
fillOpen: string;
|
|
110
|
+
fillOpenOnDark: string;
|
|
101
111
|
fillOpenInverse: string;
|
|
102
112
|
fillSelected: string;
|
|
103
113
|
fillDisabled: string;
|
|
104
114
|
divider: string;
|
|
115
|
+
dividerOnDark: string;
|
|
105
116
|
dividerInverse: string;
|
|
106
117
|
borderPrimary: string;
|
|
118
|
+
borderPrimaryOnDark: string;
|
|
107
119
|
borderPrimaryInverse: string;
|
|
108
120
|
borderSecondary: string;
|
|
109
121
|
borderPrimaryHover: string;
|
|
122
|
+
borderPrimaryHoverOnDark: string;
|
|
110
123
|
borderPrimaryHoverInverse: string;
|
|
111
124
|
borderOnFill: string;
|
|
112
125
|
borderPrimaryPressed: string;
|
|
126
|
+
borderPrimaryPressedOnDark: string;
|
|
113
127
|
borderPrimaryPressedInverse: string;
|
|
114
128
|
borderPrimaryDisabled: string;
|
|
129
|
+
borderPrimaryDisabledOnDark: string;
|
|
115
130
|
borderPrimaryDisabledInverse: string;
|
|
116
131
|
ornamentDisabled: string;
|
|
132
|
+
ornamentDisabledOnDark: string;
|
|
117
133
|
ornamentDisabledInverse: string;
|
|
118
134
|
ornamentOnFill: string;
|
|
119
135
|
ornamentPrimary: string;
|
|
136
|
+
ornamentPrimaryOnDark: string;
|
|
120
137
|
ornamentPrimaryInverse: string;
|
|
121
138
|
ornamentSecondary: string;
|
|
139
|
+
ornamentSecondaryOnDark: string;
|
|
122
140
|
ornamentSecondaryInverse: string;
|
|
123
141
|
ornamentSecondaryHover: string;
|
|
142
|
+
ornamentSecondaryHoverOnDark: string;
|
|
124
143
|
ornamentSecondaryHoverInverse: string;
|
|
125
144
|
ornamentSecondaryPressed: string;
|
|
145
|
+
ornamentSecondaryPressedOnDark: string;
|
|
126
146
|
ornamentSecondaryPressedInverse: string;
|
|
127
147
|
}
|
|
128
148
|
interface IntentColor {
|
|
@@ -374,6 +394,7 @@ interface Color {
|
|
|
374
394
|
interface Colors {
|
|
375
395
|
blue: Color;
|
|
376
396
|
gray: Color;
|
|
397
|
+
indigo: Color;
|
|
377
398
|
green: Color;
|
|
378
399
|
purple: Color;
|
|
379
400
|
red: Color;
|
|
@@ -688,7 +709,7 @@ declare const Alert: (props: AlertProps) => JSX.Element;
|
|
|
688
709
|
interface IconNameToSizes {
|
|
689
710
|
Bacteria: "xs" | "s" | "l" | "xl";
|
|
690
711
|
BarChartHorizontal3: "xs" | "s";
|
|
691
|
-
BarChartVertical3: "xs" | "s";
|
|
712
|
+
BarChartVertical3: "xs" | "s" | "l" | "xl";
|
|
692
713
|
BarChartVertical4: "xs" | "s";
|
|
693
714
|
Book: "xs" | "s" | "l" | "xl";
|
|
694
715
|
Check: "xs" | "s";
|
|
@@ -702,6 +723,7 @@ interface IconNameToSizes {
|
|
|
702
723
|
ChevronUp: "xs" | "s" | "l" | "xl";
|
|
703
724
|
ChevronUp2: "xs" | "s";
|
|
704
725
|
CirclesOverlap2: "xs" | "s" | "l" | "xl";
|
|
726
|
+
Cli: "l" | "xl";
|
|
705
727
|
Code: "xs" | "s" | "l" | "xl";
|
|
706
728
|
Compass: "l" | "xl";
|
|
707
729
|
Copy: "xs" | "s" | "l" | "xl";
|
|
@@ -747,6 +769,7 @@ interface IconNameToSizes {
|
|
|
747
769
|
LockCircle: "xs" | "s";
|
|
748
770
|
Minus: "xs" | "s";
|
|
749
771
|
Open: "xs" | "s";
|
|
772
|
+
Package: "l" | "xl";
|
|
750
773
|
Pause: "l" | "xl";
|
|
751
774
|
People: "xs" | "s" | "l" | "xl";
|
|
752
775
|
Percentage: "xs" | "s";
|
|
@@ -809,7 +832,7 @@ interface IconExtraProps<IconName extends keyof IconNameToSizes> extends CommonT
|
|
|
809
832
|
sdsIcon: IconName;
|
|
810
833
|
sdsSize: IconNameToSizes[IconName];
|
|
811
834
|
}
|
|
812
|
-
type SdsIconColorType = "blue" | "gray" | "green" | "purple" | "red" | "yellow";
|
|
835
|
+
type SdsIconColorType = "blue" | "gray" | "green" | "purple" | "indigo" | "red" | "yellow";
|
|
813
836
|
interface SdsIconWithColor$0 {
|
|
814
837
|
color?: SdsIconColorType;
|
|
815
838
|
shade?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
|
|
@@ -1774,7 +1797,7 @@ interface FooterImage {
|
|
|
1774
1797
|
linkProps?: Record<string, unknown>;
|
|
1775
1798
|
}
|
|
1776
1799
|
interface NavigationFooterProps {
|
|
1777
|
-
|
|
1800
|
+
backgroundAppearance?: "matchBackground" | "dark";
|
|
1778
1801
|
images?: FooterImage[];
|
|
1779
1802
|
logo?: ReactNode;
|
|
1780
1803
|
logoUrl?: string;
|
|
@@ -1796,7 +1819,7 @@ interface FooterLinkProps {
|
|
|
1796
1819
|
showDivider: boolean;
|
|
1797
1820
|
hasInvertedStyle?: boolean;
|
|
1798
1821
|
}
|
|
1799
|
-
declare function NavigationFooter({
|
|
1822
|
+
declare function NavigationFooter({ backgroundAppearance, images, logo, logoUrl, logoComponent, logoLinkProps, navItems, navLinks, tag, tagColor, title, ...rest }: NavigationFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
1800
1823
|
interface BaseNavigationHeaderPrimaryNavItem<T extends string> extends Record<string, unknown> {
|
|
1801
1824
|
key: T;
|
|
1802
1825
|
label: ReactNode;
|
|
@@ -1809,6 +1832,8 @@ interface TextNavigationHeaderPrimaryNavItem<T extends string> extends BaseNavig
|
|
|
1809
1832
|
}
|
|
1810
1833
|
interface DropdownItem {
|
|
1811
1834
|
label: ReactNode;
|
|
1835
|
+
details?: string;
|
|
1836
|
+
icon?: keyof IconNameToSizes | React.ReactElement<CustomSVGProps>;
|
|
1812
1837
|
section?: string;
|
|
1813
1838
|
onClick?: (event: React.MouseEvent) => void;
|
|
1814
1839
|
component?: React.ElementType;
|
|
@@ -1816,9 +1841,26 @@ interface DropdownItem {
|
|
|
1816
1841
|
rel?: string;
|
|
1817
1842
|
target?: string;
|
|
1818
1843
|
}
|
|
1844
|
+
interface ActionItem {
|
|
1845
|
+
label: ReactNode;
|
|
1846
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
1847
|
+
href?: string;
|
|
1848
|
+
component?: React.ElementType;
|
|
1849
|
+
target?: string;
|
|
1850
|
+
rel?: string;
|
|
1851
|
+
}
|
|
1852
|
+
interface SectionProps {
|
|
1853
|
+
actions?: ActionItem[];
|
|
1854
|
+
colSpan?: number;
|
|
1855
|
+
}
|
|
1819
1856
|
interface DropdownNavigationHeaderPrimaryNavItem<T extends string> extends BaseNavigationHeaderPrimaryNavItem<T> {
|
|
1820
1857
|
itemType: "dropdown";
|
|
1821
1858
|
items: DropdownItem[];
|
|
1859
|
+
sectionProps?: Record<string, SectionProps>;
|
|
1860
|
+
defaultUrl?: string;
|
|
1861
|
+
component?: React.ElementType;
|
|
1862
|
+
target?: string;
|
|
1863
|
+
rel?: string;
|
|
1822
1864
|
}
|
|
1823
1865
|
type NavigationHeaderPrimaryNavItem<T extends string> = TextNavigationHeaderPrimaryNavItem<T> | DropdownNavigationHeaderPrimaryNavItem<T>;
|
|
1824
1866
|
interface NavigationHeaderPrimaryNavProps<T extends string> {
|
|
@@ -1828,15 +1870,32 @@ interface NavigationHeaderPrimaryNavProps<T extends string> {
|
|
|
1828
1870
|
items: NavigationHeaderPrimaryNavItem<T>[];
|
|
1829
1871
|
onChange(value: T): void;
|
|
1830
1872
|
value: T;
|
|
1873
|
+
sdsStyle?: "dropdown" | "drawer";
|
|
1874
|
+
expandedAccordion: string | null;
|
|
1875
|
+
setExpandedAccordion: (value: string | null) => void;
|
|
1876
|
+
accordionRefs: React.MutableRefObject<Map<string, HTMLDivElement>>;
|
|
1877
|
+
scrollToAccordion?: (accordionId: string) => void;
|
|
1878
|
+
onDrawerStateChange?: (isOpen: boolean) => void;
|
|
1879
|
+
topOffset?: number;
|
|
1880
|
+
onClose?: () => void;
|
|
1831
1881
|
}
|
|
1832
1882
|
interface TextHeaderSecondaryNavItem extends Partial<SdsMinimalButtonProps> {
|
|
1833
1883
|
label: string;
|
|
1834
1884
|
itemType: "text";
|
|
1885
|
+
tag?: string;
|
|
1886
|
+
tagColor?: SdsTagColorType;
|
|
1835
1887
|
}
|
|
1836
1888
|
interface DropdownHeaderSecondaryNavItem extends Partial<SdsMinimalButtonProps> {
|
|
1837
1889
|
label: string;
|
|
1838
1890
|
itemType: "dropdown";
|
|
1839
1891
|
items: DropdownItem[];
|
|
1892
|
+
sectionProps?: Record<string, SectionProps>;
|
|
1893
|
+
tag?: string;
|
|
1894
|
+
tagColor?: SdsTagColorType;
|
|
1895
|
+
defaultUrl?: string;
|
|
1896
|
+
component?: React.ElementType;
|
|
1897
|
+
target?: string;
|
|
1898
|
+
rel?: string;
|
|
1840
1899
|
}
|
|
1841
1900
|
type NavigationHeaderSecondaryNavItem = TextHeaderSecondaryNavItem | DropdownHeaderSecondaryNavItem;
|
|
1842
1901
|
interface NavigationHeaderSecondaryNavProps {
|
|
@@ -1844,11 +1903,19 @@ interface NavigationHeaderSecondaryNavProps {
|
|
|
1844
1903
|
items: NavigationHeaderSecondaryNavItem[];
|
|
1845
1904
|
hasInvertedStyle?: boolean;
|
|
1846
1905
|
isNarrow?: boolean;
|
|
1906
|
+
sdsStyle?: "dropdown" | "drawer";
|
|
1907
|
+
expandedAccordion: string | null;
|
|
1908
|
+
setExpandedAccordion: (value: string | null) => void;
|
|
1909
|
+
accordionRefs: React.MutableRefObject<Map<string, HTMLDivElement>>;
|
|
1910
|
+
scrollToAccordion?: (accordionId: string) => void;
|
|
1911
|
+
onDrawerStateChange?: (isOpen: boolean) => void;
|
|
1912
|
+
topOffset?: number;
|
|
1913
|
+
onClose?: () => void;
|
|
1847
1914
|
}
|
|
1848
|
-
interface NavigationHeaderProps<T extends string = string> extends AppBarProps {
|
|
1915
|
+
interface NavigationHeaderProps<T extends string = string> extends Omit<AppBarProps, "position"> {
|
|
1849
1916
|
activePrimaryNavKey?: string;
|
|
1850
1917
|
buttons?: Partial<SdsProps$0 & ButtonProps$0>[] | React.ReactNode[];
|
|
1851
|
-
|
|
1918
|
+
backgroundAppearance?: "matchBackground" | "dark";
|
|
1852
1919
|
logo?: ReactNode;
|
|
1853
1920
|
logoUrl?: string;
|
|
1854
1921
|
logoLinkComponent?: ElementType;
|
|
@@ -1866,6 +1933,9 @@ interface NavigationHeaderProps<T extends string = string> extends AppBarProps {
|
|
|
1866
1933
|
drawerOpen?: boolean;
|
|
1867
1934
|
setDrawerOpen?: (open: boolean) => void;
|
|
1868
1935
|
menuProps?: Partial<MenuProps$0>;
|
|
1936
|
+
sdsStyle?: "dropdown" | "drawer";
|
|
1937
|
+
isSticky?: boolean;
|
|
1938
|
+
topComponentSlot?: ReactNode;
|
|
1869
1939
|
}
|
|
1870
1940
|
type IconButtonProps = SdsIconButtonProps & {
|
|
1871
1941
|
children?: string;
|