@atlaskit/atlassian-navigation 4.0.0 → 4.1.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/CHANGELOG.md +20 -1
- package/README.md +7 -3
- package/dist/cjs/components/AtlassianNavigation/index.js +7 -2
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +7 -2
- package/dist/cjs/components/BadgeContainer/index.js +4 -0
- package/dist/cjs/components/Create/index.js +10 -3
- package/dist/cjs/components/Create/skeleton.js +6 -0
- package/dist/cjs/components/IconButton/skeleton.js +3 -1
- package/dist/cjs/components/PrimaryButton/index.js +6 -1
- package/dist/cjs/components/PrimaryButton/skeleton.js +5 -0
- package/dist/cjs/components/PrimaryDropdownButton/index.js +5 -0
- package/dist/cjs/components/PrimaryItemsContainer/index.js +6 -1
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +7 -2
- package/dist/cjs/components/ProductHome/custom-product-home.js +10 -2
- package/dist/cjs/components/ProductHome/product-home.js +13 -5
- package/dist/cjs/components/ProductHome/skeleton.js +10 -3
- package/dist/cjs/components/Search/index.js +13 -0
- package/dist/cjs/components/Search/skeleton.js +9 -0
- package/dist/cjs/components/SkeletonCreateButton/index.js +6 -1
- package/dist/cjs/components/SkeletonIconButton/index.js +10 -2
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +9 -1
- package/dist/es2019/components/AtlassianNavigation/index.js +7 -2
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +7 -2
- package/dist/es2019/components/BadgeContainer/index.js +4 -0
- package/dist/es2019/components/Create/index.js +12 -5
- package/dist/es2019/components/Create/skeleton.js +7 -1
- package/dist/es2019/components/IconButton/skeleton.js +4 -0
- package/dist/es2019/components/PrimaryButton/index.js +7 -1
- package/dist/es2019/components/PrimaryButton/skeleton.js +4 -0
- package/dist/es2019/components/PrimaryDropdownButton/index.js +5 -0
- package/dist/es2019/components/PrimaryItemsContainer/index.js +6 -1
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +7 -2
- package/dist/es2019/components/ProductHome/custom-product-home.js +16 -7
- package/dist/es2019/components/ProductHome/product-home.js +19 -10
- package/dist/es2019/components/ProductHome/skeleton.js +15 -7
- package/dist/es2019/components/Search/index.js +16 -2
- package/dist/es2019/components/Search/skeleton.js +11 -2
- package/dist/es2019/components/SkeletonCreateButton/index.js +6 -1
- package/dist/es2019/components/SkeletonIconButton/index.js +10 -2
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +10 -0
- package/dist/esm/components/AtlassianNavigation/index.js +7 -2
- package/dist/esm/components/AtlassianNavigation/skeleton.js +7 -2
- package/dist/esm/components/BadgeContainer/index.js +4 -0
- package/dist/esm/components/Create/index.js +10 -3
- package/dist/esm/components/Create/skeleton.js +6 -0
- package/dist/esm/components/IconButton/skeleton.js +4 -0
- package/dist/esm/components/PrimaryButton/index.js +7 -1
- package/dist/esm/components/PrimaryButton/skeleton.js +4 -0
- package/dist/esm/components/PrimaryDropdownButton/index.js +5 -0
- package/dist/esm/components/PrimaryItemsContainer/index.js +6 -1
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +7 -2
- package/dist/esm/components/ProductHome/custom-product-home.js +11 -2
- package/dist/esm/components/ProductHome/product-home.js +14 -5
- package/dist/esm/components/ProductHome/skeleton.js +11 -3
- package/dist/esm/components/Search/index.js +14 -0
- package/dist/esm/components/Search/skeleton.js +9 -0
- package/dist/esm/components/SkeletonCreateButton/index.js +6 -1
- package/dist/esm/components/SkeletonIconButton/index.js +10 -2
- package/dist/esm/components/SkeletonPrimaryButton/index.js +10 -0
- package/dist/types/components/AtlassianNavigation/index.d.ts +3 -0
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +3 -0
- package/dist/types/components/AtlassianNavigation/types.d.ts +24 -24
- package/dist/types/components/BadgeContainer/index.d.ts +3 -0
- package/dist/types/components/IconButton/skeleton.d.ts +3 -0
- package/dist/types/components/PrimaryButton/skeleton.d.ts +3 -0
- package/dist/types/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types/components/ProductHome/types.d.ts +22 -22
- package/dist/types/components/SkeletonCreateButton/index.d.ts +4 -1
- package/dist/types/components/SkeletonIconButton/index.d.ts +4 -1
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +3 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/skeleton-notification-button.d.ts +1 -1
- package/dist/types/skeleton-settings-button.d.ts +1 -1
- package/dist/types/skeleton-switcher-button.d.ts +1 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +3 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +3 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +24 -24
- package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +3 -0
- package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +3 -0
- package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +3 -0
- package/dist/types-ts4.5/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/ProductHome/types.d.ts +22 -22
- package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +4 -1
- package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +4 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +3 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-notification-button.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-settings-button.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-switcher-button.d.ts +1 -1
- package/package.json +108 -108
- package/report.api.md +162 -183
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/atlassian-navigation"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -42,33 +43,31 @@ import { ThemeTokens as ThemeTokens_2 } from '@atlaskit/button';
|
|
|
42
43
|
|
|
43
44
|
// @public
|
|
44
45
|
export const AppSwitcher: React_2.ForwardRefExoticComponent<
|
|
45
|
-
|
|
46
|
+
BaseIconButtonProps & React_2.RefAttributes<any>
|
|
46
47
|
>;
|
|
47
48
|
|
|
48
49
|
// @public (undocumented)
|
|
49
50
|
export type AppSwitcherProps = BaseIconButtonProps;
|
|
50
51
|
|
|
51
52
|
// @public
|
|
52
|
-
export const AtlassianNavigation: (
|
|
53
|
-
props: AtlassianNavigationProps,
|
|
54
|
-
) => jsx.JSX.Element;
|
|
53
|
+
export const AtlassianNavigation: (props: AtlassianNavigationProps) => jsx.JSX.Element;
|
|
55
54
|
|
|
56
55
|
// @public (undocumented)
|
|
57
56
|
export interface AtlassianNavigationProps {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
57
|
+
label: string;
|
|
58
|
+
moreLabel?: ReactNode;
|
|
59
|
+
primaryItems: ReactNodeArray;
|
|
60
|
+
renderAppSwitcher?: React_2.ComponentType<{}>;
|
|
61
|
+
renderCreate?: React_2.ComponentType<{}>;
|
|
62
|
+
renderHelp?: React_2.ComponentType<{}>;
|
|
63
|
+
renderNotifications?: React_2.ComponentType<{}>;
|
|
64
|
+
renderProductHome: React_2.ComponentType<{}>;
|
|
65
|
+
renderProfile?: React_2.ComponentType<{}>;
|
|
66
|
+
renderSearch?: React_2.ComponentType<{}>;
|
|
67
|
+
renderSettings?: React_2.ComponentType<{}>;
|
|
68
|
+
renderSignIn?: React_2.ComponentType<{}>;
|
|
69
|
+
testId?: string;
|
|
70
|
+
theme?: NavigationTheme;
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
// @public (undocumented)
|
|
@@ -76,52 +75,52 @@ export const atlassianTheme: NavigationTheme;
|
|
|
76
75
|
|
|
77
76
|
// @public
|
|
78
77
|
interface BaseIconButtonProps {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
78
|
+
component?: CustomThemeButtonProps['component'];
|
|
79
|
+
href?: string;
|
|
80
|
+
id?: string;
|
|
81
|
+
isDisabled?: boolean;
|
|
82
|
+
isSelected?: boolean;
|
|
83
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
84
|
+
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
85
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
86
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
87
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
|
88
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
|
89
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement>;
|
|
90
|
+
target?: string;
|
|
91
|
+
testId?: string;
|
|
92
|
+
tooltip: React.ReactNode;
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
// @public (undocumented)
|
|
97
96
|
type ButtonCSSContext = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
97
|
+
default: ButtonCSSProperties;
|
|
98
|
+
hover: ButtonCSSProperties;
|
|
99
|
+
focus: ButtonCSSProperties;
|
|
100
|
+
active: ButtonCSSProperties;
|
|
101
|
+
selected: ButtonCSSProperties;
|
|
102
|
+
selectedHover?: ButtonCSSProperties;
|
|
104
103
|
};
|
|
105
104
|
|
|
106
105
|
// @public (undocumented)
|
|
107
106
|
type ButtonCSSProperties = CSSProperties & {
|
|
108
|
-
|
|
107
|
+
boxShadow: string;
|
|
109
108
|
};
|
|
110
109
|
|
|
111
110
|
// @public (undocumented)
|
|
112
111
|
export type Colors = {
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
backgroundColor: string;
|
|
113
|
+
color: string;
|
|
115
114
|
};
|
|
116
115
|
|
|
117
116
|
// @public
|
|
118
117
|
export const Create: ({
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
118
|
+
onClick,
|
|
119
|
+
href,
|
|
120
|
+
text,
|
|
121
|
+
buttonTooltip,
|
|
122
|
+
iconButtonTooltip,
|
|
123
|
+
testId,
|
|
125
124
|
}: CreateProps) => jsx.JSX.Element;
|
|
126
125
|
|
|
127
126
|
// @public (undocumented)
|
|
@@ -129,37 +128,35 @@ export type CreateCSS = ButtonCSSContext;
|
|
|
129
128
|
|
|
130
129
|
// @public (undocumented)
|
|
131
130
|
export interface CreateProps {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
131
|
+
buttonTooltip?: React_2.ReactNode;
|
|
132
|
+
href?: string;
|
|
133
|
+
iconButtonTooltip?: React_2.ReactNode;
|
|
134
|
+
onClick?: (e: React_2.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
135
|
+
testId?: string;
|
|
136
|
+
text: string;
|
|
138
137
|
}
|
|
139
138
|
|
|
140
139
|
// @public (undocumented)
|
|
141
140
|
type CSSProperties = CSSObject & {
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
backgroundColor: string;
|
|
142
|
+
color: string;
|
|
144
143
|
};
|
|
145
144
|
|
|
146
145
|
// @public
|
|
147
|
-
export const CustomProductHome: (
|
|
148
|
-
props: CustomProductHomeProps,
|
|
149
|
-
) => jsx.JSX.Element;
|
|
146
|
+
export const CustomProductHome: (props: CustomProductHomeProps) => jsx.JSX.Element;
|
|
150
147
|
|
|
151
148
|
// @public (undocumented)
|
|
152
149
|
export interface CustomProductHomeProps {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
150
|
+
href?: string;
|
|
151
|
+
iconAlt: string;
|
|
152
|
+
iconUrl: string;
|
|
153
|
+
logoAlt: string;
|
|
154
|
+
logoMaxWidth?: number;
|
|
155
|
+
logoUrl: string;
|
|
156
|
+
onClick?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
157
|
+
onMouseDown?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
158
|
+
siteTitle?: string;
|
|
159
|
+
testId?: string;
|
|
163
160
|
}
|
|
164
161
|
|
|
165
162
|
// @public (undocumented)
|
|
@@ -167,21 +164,21 @@ export const generateTheme: (themeColors: GenerateThemeArgs) => NavigationTheme;
|
|
|
167
164
|
|
|
168
165
|
// @public (undocumented)
|
|
169
166
|
export type GenerateThemeArgs = {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
167
|
+
name?: string;
|
|
168
|
+
backgroundColor: string;
|
|
169
|
+
highlightColor: string;
|
|
173
170
|
};
|
|
174
171
|
|
|
175
172
|
// @public
|
|
176
173
|
export const Help: React_2.ForwardRefExoticComponent<
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
174
|
+
BaseIconButtonProps & {
|
|
175
|
+
badge?: React_2.ComponentType<{}> | undefined;
|
|
176
|
+
} & React_2.RefAttributes<any>
|
|
180
177
|
>;
|
|
181
178
|
|
|
182
179
|
// @public (undocumented)
|
|
183
180
|
export type HelpProps = BaseIconButtonProps & {
|
|
184
|
-
|
|
181
|
+
badge?: ComponentType<{}>;
|
|
185
182
|
};
|
|
186
183
|
|
|
187
184
|
// @public (undocumented)
|
|
@@ -189,15 +186,12 @@ export const HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
|
|
|
189
186
|
|
|
190
187
|
// @public
|
|
191
188
|
export const IconButton: React_2.ForwardRefExoticComponent<
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
) => ThemeTokens)
|
|
199
|
-
| undefined;
|
|
200
|
-
} & React_2.RefAttributes<HTMLElement>
|
|
189
|
+
BaseIconButtonProps & {
|
|
190
|
+
icon: React_2.ReactChild | undefined;
|
|
191
|
+
theme?:
|
|
192
|
+
| ((current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens)
|
|
193
|
+
| undefined;
|
|
194
|
+
} & React_2.RefAttributes<HTMLElement>
|
|
201
195
|
>;
|
|
202
196
|
|
|
203
197
|
// @public (undocumented)
|
|
@@ -205,27 +199,27 @@ export type IconButtonCSS = ButtonCSSContext;
|
|
|
205
199
|
|
|
206
200
|
// @public (undocumented)
|
|
207
201
|
export type IconButtonProps = BaseIconButtonProps & {
|
|
208
|
-
|
|
209
|
-
|
|
202
|
+
icon: CustomThemeButtonProps['iconBefore'];
|
|
203
|
+
theme?: CustomThemeButtonProps['theme'];
|
|
210
204
|
};
|
|
211
205
|
|
|
212
206
|
// @public (undocumented)
|
|
213
207
|
type LogoStyleProps = {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
208
|
+
iconGradientStart?: string;
|
|
209
|
+
iconGradientStop?: string;
|
|
210
|
+
iconColor?: string;
|
|
211
|
+
textColor?: string;
|
|
218
212
|
};
|
|
219
213
|
|
|
220
214
|
// @public (undocumented)
|
|
221
215
|
export type Mode = {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
216
|
+
create: CreateCSS;
|
|
217
|
+
iconButton: IconButtonCSS;
|
|
218
|
+
navigation: NavigationCSS;
|
|
219
|
+
primaryButton: PrimaryButtonCSS;
|
|
220
|
+
productHome: ProductHomeCSS;
|
|
221
|
+
search: SearchCSS;
|
|
222
|
+
skeleton: SkeletonCSS;
|
|
229
223
|
};
|
|
230
224
|
|
|
231
225
|
// @public (undocumented)
|
|
@@ -233,97 +227,85 @@ export type NavigationCSS = CSSProperties;
|
|
|
233
227
|
|
|
234
228
|
// @public (undocumented)
|
|
235
229
|
export type NavigationTheme = {
|
|
236
|
-
|
|
230
|
+
mode: Mode;
|
|
237
231
|
};
|
|
238
232
|
|
|
239
233
|
// @public
|
|
240
234
|
export const Notifications: React_2.ForwardRefExoticComponent<
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
235
|
+
BaseIconButtonProps & {
|
|
236
|
+
badge: React_2.ComponentType<{}>;
|
|
237
|
+
} & React_2.RefAttributes<any>
|
|
244
238
|
>;
|
|
245
239
|
|
|
246
240
|
// @public (undocumented)
|
|
247
241
|
export type NotificationsProps = BaseIconButtonProps & {
|
|
248
|
-
|
|
242
|
+
badge: ComponentType<{}>;
|
|
249
243
|
};
|
|
250
244
|
|
|
251
245
|
// @public
|
|
252
246
|
export const PrimaryButton: ForwardRefExoticComponent<
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
| ((
|
|
263
|
-
event: MouseEvent_2<HTMLElement, MouseEvent>,
|
|
264
|
-
analyticsEvent: any,
|
|
265
|
-
) => void)
|
|
266
|
-
| undefined;
|
|
267
|
-
} & RefAttributes<HTMLElement>
|
|
247
|
+
Omit<CustomThemeButtonProps_2, 'appearance' | 'onClick'> & {
|
|
248
|
+
component?: ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any> | undefined;
|
|
249
|
+
isHighlighted?: boolean | undefined;
|
|
250
|
+
testId?: string | undefined;
|
|
251
|
+
tooltip?: ReactNode;
|
|
252
|
+
onClick?:
|
|
253
|
+
| ((event: MouseEvent_2<HTMLElement, MouseEvent>, analyticsEvent: any) => void)
|
|
254
|
+
| undefined;
|
|
255
|
+
} & RefAttributes<HTMLElement>
|
|
268
256
|
>;
|
|
269
257
|
|
|
270
258
|
// @public (undocumented)
|
|
271
259
|
export type PrimaryButtonCSS = ButtonCSSContext;
|
|
272
260
|
|
|
273
261
|
// @public (undocumented)
|
|
274
|
-
export type PrimaryButtonProps = Omit<
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
testId?: string;
|
|
281
|
-
tooltip?: React.ReactNode;
|
|
282
|
-
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
262
|
+
export type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
|
|
263
|
+
component?: ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any>;
|
|
264
|
+
isHighlighted?: boolean;
|
|
265
|
+
testId?: string;
|
|
266
|
+
tooltip?: React.ReactNode;
|
|
267
|
+
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
283
268
|
};
|
|
284
269
|
|
|
285
270
|
// @public
|
|
286
271
|
export const PrimaryDropdownButton: ForwardRefExoticComponent<
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
272
|
+
Omit<PrimaryButtonProps, 'iconAfter'> & {
|
|
273
|
+
isHighlighted?: boolean | undefined;
|
|
274
|
+
testId?: string | undefined;
|
|
275
|
+
tooltip?: ReactNode;
|
|
276
|
+
} & RefAttributes<HTMLElement>
|
|
292
277
|
>;
|
|
293
278
|
|
|
294
279
|
// @public (undocumented)
|
|
295
|
-
export type PrimaryDropdownButtonProps = Omit<
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
isHighlighted?: boolean;
|
|
300
|
-
testId?: string;
|
|
301
|
-
tooltip?: React.ReactNode;
|
|
280
|
+
export type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
|
|
281
|
+
isHighlighted?: boolean;
|
|
282
|
+
testId?: string;
|
|
283
|
+
tooltip?: React.ReactNode;
|
|
302
284
|
};
|
|
303
285
|
|
|
304
286
|
// @public
|
|
305
287
|
export const PrimarySplitButton: ({
|
|
306
|
-
|
|
307
|
-
|
|
288
|
+
children,
|
|
289
|
+
isHighlighted,
|
|
308
290
|
}: PrimarySplitButtonProps) => jsx.JSX.Element;
|
|
309
291
|
|
|
310
292
|
// @public (undocumented)
|
|
311
293
|
type PrimarySplitButtonProps = {
|
|
312
|
-
|
|
313
|
-
|
|
294
|
+
children: ReactNode;
|
|
295
|
+
isHighlighted?: boolean;
|
|
314
296
|
};
|
|
315
297
|
|
|
316
298
|
// @public
|
|
317
299
|
export const ProductHome: ({
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
300
|
+
icon: Icon,
|
|
301
|
+
logo: Logo,
|
|
302
|
+
siteTitle,
|
|
303
|
+
onClick,
|
|
304
|
+
href,
|
|
305
|
+
onMouseDown,
|
|
306
|
+
testId,
|
|
307
|
+
logoMaxWidth,
|
|
308
|
+
...rest
|
|
327
309
|
}: ProductHomeProps) => jsx.JSX.Element;
|
|
328
310
|
|
|
329
311
|
// @public (undocumented)
|
|
@@ -331,27 +313,24 @@ type ProductHomeCSS = CSSProperties & LogoStyleProps;
|
|
|
331
313
|
|
|
332
314
|
// @public (undocumented)
|
|
333
315
|
export interface ProductHomeProps {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
316
|
+
href?: string;
|
|
317
|
+
icon: ComponentType<Partial<LogoProps>>;
|
|
318
|
+
logo: ComponentType<Partial<LogoProps>>;
|
|
319
|
+
logoMaxWidth?: number;
|
|
320
|
+
onClick?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
321
|
+
onMouseDown?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
322
|
+
siteTitle?: string;
|
|
323
|
+
testId?: string;
|
|
342
324
|
}
|
|
343
325
|
|
|
344
326
|
// @public
|
|
345
327
|
export const Profile: ForwardRefExoticComponent<
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
) => ThemeTokens_2)
|
|
353
|
-
| undefined;
|
|
354
|
-
} & RefAttributes<HTMLElement>
|
|
328
|
+
BaseIconButtonProps & {
|
|
329
|
+
icon: ReactChild | undefined;
|
|
330
|
+
theme?:
|
|
331
|
+
| ((current: (props: ThemeProps_2) => ThemeTokens_2, props: ThemeProps_2) => ThemeTokens_2)
|
|
332
|
+
| undefined;
|
|
333
|
+
} & RefAttributes<HTMLElement>
|
|
355
334
|
>;
|
|
356
335
|
|
|
357
336
|
// @public (undocumented)
|
|
@@ -362,21 +341,21 @@ export const Search: (props: SearchProps) => jsx.JSX.Element;
|
|
|
362
341
|
|
|
363
342
|
// @public (undocumented)
|
|
364
343
|
export type SearchCSS = {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
344
|
+
default: CSSProperties;
|
|
345
|
+
focus: CSSObject;
|
|
346
|
+
hover: CSSObject;
|
|
368
347
|
};
|
|
369
348
|
|
|
370
349
|
// @public (undocumented)
|
|
371
350
|
export type SearchProps = BaseIconButtonProps & {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
351
|
+
placeholder: string;
|
|
352
|
+
label: string;
|
|
353
|
+
value?: string;
|
|
375
354
|
};
|
|
376
355
|
|
|
377
356
|
// @public
|
|
378
357
|
export const Settings: React_2.ForwardRefExoticComponent<
|
|
379
|
-
|
|
358
|
+
BaseIconButtonProps & React_2.RefAttributes<any>
|
|
380
359
|
>;
|
|
381
360
|
|
|
382
361
|
// @public (undocumented)
|
|
@@ -390,8 +369,8 @@ export type SignInProps = BaseIconButtonProps;
|
|
|
390
369
|
|
|
391
370
|
// @public (undocumented)
|
|
392
371
|
export type SkeletonCSS = CSSObject & {
|
|
393
|
-
|
|
394
|
-
|
|
372
|
+
backgroundColor: string;
|
|
373
|
+
opacity: number;
|
|
395
374
|
};
|
|
396
375
|
|
|
397
376
|
// @public
|
|
@@ -399,9 +378,9 @@ export const ThemeProvider: Provider<NavigationTheme>;
|
|
|
399
378
|
|
|
400
379
|
// @public
|
|
401
380
|
export const useOverflowStatus: () => {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
381
|
+
isVisible: boolean;
|
|
382
|
+
openOverflowMenu: typeof noop;
|
|
383
|
+
closeOverflowMenu: typeof noop;
|
|
405
384
|
};
|
|
406
385
|
|
|
407
386
|
// (No @packageDocumentation comment for this package)
|
|
@@ -415,7 +394,7 @@ export const useOverflowStatus: () => {
|
|
|
415
394
|
|
|
416
395
|
```json
|
|
417
396
|
{
|
|
418
|
-
|
|
397
|
+
"react": "^16.8.0"
|
|
419
398
|
}
|
|
420
399
|
```
|
|
421
400
|
|