@atlaskit/atlassian-navigation 2.6.2 → 2.6.4
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 +12 -0
- package/dist/cjs/components/ProductHome/custom-product-home.js +4 -5
- package/dist/cjs/components/ProductHome/product-home.js +3 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/ProductHome/custom-product-home.js +4 -5
- package/dist/es2019/components/ProductHome/product-home.js +3 -5
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/ProductHome/custom-product-home.js +4 -5
- package/dist/esm/components/ProductHome/product-home.js +3 -5
- package/dist/esm/version.json +1 -1
- package/package.json +3 -3
- package/tmp/api-report-tmp.d.ts +325 -0
package/CHANGELOG.md
CHANGED
|
@@ -89,11 +89,10 @@ var siteTitleStyles = (0, _react2.css)({
|
|
|
89
89
|
paddingRight: "var(--ds-space-200, 16px)",
|
|
90
90
|
alignItems: 'center'
|
|
91
91
|
});
|
|
92
|
-
|
|
93
|
-
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
94
|
-
var featureFlaggedHideSiteTitleStyles = (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
92
|
+
var hideSiteTitleStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
95
93
|
display: 'none'
|
|
96
|
-
}))
|
|
94
|
+
}));
|
|
95
|
+
|
|
97
96
|
/**
|
|
98
97
|
* __Custom product home__
|
|
99
98
|
*
|
|
@@ -152,7 +151,7 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
152
151
|
style: {
|
|
153
152
|
borderRight: theme.mode.productHome.borderRight
|
|
154
153
|
},
|
|
155
|
-
css: [siteTitleStyles,
|
|
154
|
+
css: [siteTitleStyles, (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
|
|
156
155
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
157
156
|
}, siteTitle));
|
|
158
157
|
};
|
|
@@ -103,11 +103,9 @@ var siteTitleStyles = (0, _react2.css)({
|
|
|
103
103
|
paddingRight: "var(--ds-space-200, 16px)",
|
|
104
104
|
alignItems: 'center'
|
|
105
105
|
});
|
|
106
|
-
|
|
107
|
-
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
108
|
-
var featureFlaggedHideSiteTitleStyles = (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
106
|
+
var hideSiteTitleStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
109
107
|
display: 'none'
|
|
110
|
-
}))
|
|
108
|
+
}));
|
|
111
109
|
|
|
112
110
|
/**
|
|
113
111
|
* __Product home__
|
|
@@ -176,7 +174,7 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
176
174
|
style: {
|
|
177
175
|
borderRight: theme.mode.productHome.borderRight
|
|
178
176
|
},
|
|
179
|
-
css: [siteTitleStyles,
|
|
177
|
+
css: [siteTitleStyles, (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
|
|
180
178
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
181
179
|
}, siteTitle));
|
|
182
180
|
};
|
package/dist/cjs/version.json
CHANGED
|
@@ -86,14 +86,13 @@ const siteTitleStyles = css({
|
|
|
86
86
|
paddingRight: "var(--ds-space-200, 16px)",
|
|
87
87
|
alignItems: 'center'
|
|
88
88
|
});
|
|
89
|
-
|
|
90
|
-
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
91
|
-
const featureFlaggedHideSiteTitleStyles = getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? css({
|
|
89
|
+
const hideSiteTitleStyles = css({
|
|
92
90
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
93
91
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
94
92
|
display: 'none'
|
|
95
93
|
}
|
|
96
|
-
})
|
|
94
|
+
});
|
|
95
|
+
|
|
97
96
|
/**
|
|
98
97
|
* __Custom product home__
|
|
99
98
|
*
|
|
@@ -162,7 +161,7 @@ const CustomProductHome = props => {
|
|
|
162
161
|
style: {
|
|
163
162
|
borderRight: theme.mode.productHome.borderRight
|
|
164
163
|
},
|
|
165
|
-
css: [siteTitleStyles,
|
|
164
|
+
css: [siteTitleStyles, getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
|
|
166
165
|
"data-testid": testId && `${testId}-site-title`
|
|
167
166
|
}, siteTitle));
|
|
168
167
|
};
|
|
@@ -100,14 +100,12 @@ const siteTitleStyles = css({
|
|
|
100
100
|
paddingRight: "var(--ds-space-200, 16px)",
|
|
101
101
|
alignItems: 'center'
|
|
102
102
|
});
|
|
103
|
-
|
|
104
|
-
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
105
|
-
const featureFlaggedHideSiteTitleStyles = getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? css({
|
|
103
|
+
const hideSiteTitleStyles = css({
|
|
106
104
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
107
105
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
108
106
|
display: 'none'
|
|
109
107
|
}
|
|
110
|
-
})
|
|
108
|
+
});
|
|
111
109
|
|
|
112
110
|
/**
|
|
113
111
|
* __Product home__
|
|
@@ -183,7 +181,7 @@ const ProductHome = ({
|
|
|
183
181
|
style: {
|
|
184
182
|
borderRight: theme.mode.productHome.borderRight
|
|
185
183
|
},
|
|
186
|
-
css: [siteTitleStyles,
|
|
184
|
+
css: [siteTitleStyles, getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
|
|
187
185
|
"data-testid": testId && `${testId}-site-title`
|
|
188
186
|
}, siteTitle));
|
|
189
187
|
};
|
package/dist/es2019/version.json
CHANGED
|
@@ -82,11 +82,10 @@ var siteTitleStyles = css({
|
|
|
82
82
|
paddingRight: "var(--ds-space-200, 16px)",
|
|
83
83
|
alignItems: 'center'
|
|
84
84
|
});
|
|
85
|
-
|
|
86
|
-
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
87
|
-
var featureFlaggedHideSiteTitleStyles = getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? css(_defineProperty({}, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
85
|
+
var hideSiteTitleStyles = css(_defineProperty({}, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
88
86
|
display: 'none'
|
|
89
|
-
}))
|
|
87
|
+
}));
|
|
88
|
+
|
|
90
89
|
/**
|
|
91
90
|
* __Custom product home__
|
|
92
91
|
*
|
|
@@ -145,7 +144,7 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
145
144
|
style: {
|
|
146
145
|
borderRight: theme.mode.productHome.borderRight
|
|
147
146
|
},
|
|
148
|
-
css: [siteTitleStyles,
|
|
147
|
+
css: [siteTitleStyles, getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
|
|
149
148
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
150
149
|
}, siteTitle));
|
|
151
150
|
};
|
|
@@ -96,11 +96,9 @@ var siteTitleStyles = css({
|
|
|
96
96
|
paddingRight: "var(--ds-space-200, 16px)",
|
|
97
97
|
alignItems: 'center'
|
|
98
98
|
});
|
|
99
|
-
|
|
100
|
-
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
101
|
-
var featureFlaggedHideSiteTitleStyles = getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') ? css(_defineProperty({}, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
99
|
+
var hideSiteTitleStyles = css(_defineProperty({}, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
102
100
|
display: 'none'
|
|
103
|
-
}))
|
|
101
|
+
}));
|
|
104
102
|
|
|
105
103
|
/**
|
|
106
104
|
* __Product home__
|
|
@@ -169,7 +167,7 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
169
167
|
style: {
|
|
170
168
|
borderRight: theme.mode.productHome.borderRight
|
|
171
169
|
},
|
|
172
|
-
css: [siteTitleStyles,
|
|
170
|
+
css: [siteTitleStyles, getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
|
|
173
171
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
174
172
|
}, siteTitle));
|
|
175
173
|
};
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.4",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"atlassian": {
|
|
26
26
|
"team": "Design System Team",
|
|
27
27
|
"deprecatedAutoEntryPoints": true,
|
|
28
|
-
"releaseModel": "
|
|
28
|
+
"releaseModel": "continuous",
|
|
29
29
|
"website": {
|
|
30
30
|
"name": "Atlassian navigation",
|
|
31
31
|
"category": "Components"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/logo": "*",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
41
41
|
"@atlaskit/popup": "^1.6.0",
|
|
42
|
-
"@atlaskit/primitives": "^0.
|
|
42
|
+
"@atlaskit/primitives": "^0.11.0",
|
|
43
43
|
"@atlaskit/theme": "^12.5.0",
|
|
44
44
|
"@atlaskit/tokens": "^1.5.0",
|
|
45
45
|
"@atlaskit/tooltip": "^17.8.0",
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/atlassian-navigation"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="lodash" />
|
|
8
|
+
/// <reference types="react" />
|
|
9
|
+
|
|
10
|
+
import { AllHTMLAttributes } from 'react';
|
|
11
|
+
import { ComponentType } from 'react';
|
|
12
|
+
import { CSSObject } from '@emotion/react';
|
|
13
|
+
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
14
|
+
import { CustomThemeButtonProps as CustomThemeButtonProps_2 } from '@atlaskit/button/custom-theme-button';
|
|
15
|
+
import { ElementType } from 'react';
|
|
16
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
17
|
+
import { jsx } from '@emotion/react';
|
|
18
|
+
import { LogoProps } from '@atlaskit/logo';
|
|
19
|
+
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
20
|
+
import noop from '@atlaskit/ds-lib/noop';
|
|
21
|
+
import { Provider } from 'react';
|
|
22
|
+
import { default as React_2 } from 'react';
|
|
23
|
+
import { ReactChild } from 'react';
|
|
24
|
+
import { ReactNode } from 'react';
|
|
25
|
+
import { ReactNodeArray } from 'react';
|
|
26
|
+
import { RefAttributes } from 'react';
|
|
27
|
+
import { ThemeProps } from '@atlaskit/button/custom-theme-button';
|
|
28
|
+
import { ThemeProps as ThemeProps_2 } from '@atlaskit/button';
|
|
29
|
+
import { ThemeTokens } from '@atlaskit/button/custom-theme-button';
|
|
30
|
+
import { ThemeTokens as ThemeTokens_2 } from '@atlaskit/button';
|
|
31
|
+
|
|
32
|
+
// @public
|
|
33
|
+
export const AppSwitcher: React_2.ForwardRefExoticComponent<BaseIconButtonProps & React_2.RefAttributes<any>>;
|
|
34
|
+
|
|
35
|
+
// @public (undocumented)
|
|
36
|
+
export type AppSwitcherProps = BaseIconButtonProps;
|
|
37
|
+
|
|
38
|
+
// @public
|
|
39
|
+
export const AtlassianNavigation: (props: AtlassianNavigationProps) => jsx.JSX.Element;
|
|
40
|
+
|
|
41
|
+
// @public (undocumented)
|
|
42
|
+
export interface AtlassianNavigationProps {
|
|
43
|
+
label: string;
|
|
44
|
+
moreLabel?: ReactNode;
|
|
45
|
+
primaryItems: ReactNodeArray;
|
|
46
|
+
renderAppSwitcher?: React_2.ComponentType<{}>;
|
|
47
|
+
renderCreate?: React_2.ComponentType<{}>;
|
|
48
|
+
renderHelp?: React_2.ComponentType<{}>;
|
|
49
|
+
renderNotifications?: React_2.ComponentType<{}>;
|
|
50
|
+
renderProductHome: React_2.ComponentType<{}>;
|
|
51
|
+
renderProfile?: React_2.ComponentType<{}>;
|
|
52
|
+
renderSearch?: React_2.ComponentType<{}>;
|
|
53
|
+
renderSettings?: React_2.ComponentType<{}>;
|
|
54
|
+
renderSignIn?: React_2.ComponentType<{}>;
|
|
55
|
+
testId?: string;
|
|
56
|
+
theme?: NavigationTheme;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// @public (undocumented)
|
|
60
|
+
export const atlassianTheme: NavigationTheme;
|
|
61
|
+
|
|
62
|
+
// @public
|
|
63
|
+
interface BaseIconButtonProps {
|
|
64
|
+
component?: CustomThemeButtonProps['component'];
|
|
65
|
+
href?: string;
|
|
66
|
+
id?: string;
|
|
67
|
+
isDisabled?: boolean;
|
|
68
|
+
isSelected?: boolean;
|
|
69
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
70
|
+
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
71
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
72
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
73
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
|
74
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
|
75
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement>;
|
|
76
|
+
target?: string;
|
|
77
|
+
testId?: string;
|
|
78
|
+
tooltip: React.ReactNode;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// @public (undocumented)
|
|
82
|
+
type ButtonCSSContext = {
|
|
83
|
+
default: ButtonCSSProperties;
|
|
84
|
+
hover: ButtonCSSProperties;
|
|
85
|
+
focus: ButtonCSSProperties;
|
|
86
|
+
active: ButtonCSSProperties;
|
|
87
|
+
selected: ButtonCSSProperties;
|
|
88
|
+
selectedHover?: ButtonCSSProperties;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// @public (undocumented)
|
|
92
|
+
type ButtonCSSProperties = CSSProperties & {
|
|
93
|
+
boxShadow: string;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// @public (undocumented)
|
|
97
|
+
export type Colors = {
|
|
98
|
+
backgroundColor: string;
|
|
99
|
+
color: string;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// @public
|
|
103
|
+
export const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, }: CreateProps) => jsx.JSX.Element;
|
|
104
|
+
|
|
105
|
+
// @public (undocumented)
|
|
106
|
+
export type CreateCSS = ButtonCSSContext;
|
|
107
|
+
|
|
108
|
+
// @public (undocumented)
|
|
109
|
+
export interface CreateProps {
|
|
110
|
+
buttonTooltip?: React_2.ReactNode;
|
|
111
|
+
href?: string;
|
|
112
|
+
iconButtonTooltip?: React_2.ReactNode;
|
|
113
|
+
onClick?: (e: React_2.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
114
|
+
testId?: string;
|
|
115
|
+
text: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// @public (undocumented)
|
|
119
|
+
type CSSProperties = CSSObject & {
|
|
120
|
+
backgroundColor: string;
|
|
121
|
+
color: string;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// @public
|
|
125
|
+
export const CustomProductHome: (props: CustomProductHomeProps) => jsx.JSX.Element;
|
|
126
|
+
|
|
127
|
+
// @public (undocumented)
|
|
128
|
+
export interface CustomProductHomeProps {
|
|
129
|
+
href?: string;
|
|
130
|
+
iconAlt: string;
|
|
131
|
+
iconUrl: string;
|
|
132
|
+
logoAlt: string;
|
|
133
|
+
logoMaxWidth?: number;
|
|
134
|
+
logoUrl: string;
|
|
135
|
+
onClick?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
136
|
+
onMouseDown?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
137
|
+
siteTitle?: string;
|
|
138
|
+
testId?: string;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// @public (undocumented)
|
|
142
|
+
export const generateTheme: (themeColors: GenerateThemeArgs) => NavigationTheme;
|
|
143
|
+
|
|
144
|
+
// @public (undocumented)
|
|
145
|
+
export type GenerateThemeArgs = {
|
|
146
|
+
name?: string;
|
|
147
|
+
backgroundColor: string;
|
|
148
|
+
highlightColor: string;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
// @public
|
|
152
|
+
export const Help: React_2.ForwardRefExoticComponent<BaseIconButtonProps & {
|
|
153
|
+
badge?: React_2.ComponentType<{}> | undefined;
|
|
154
|
+
} & React_2.RefAttributes<any>>;
|
|
155
|
+
|
|
156
|
+
// @public (undocumented)
|
|
157
|
+
export type HelpProps = BaseIconButtonProps & {
|
|
158
|
+
badge?: ComponentType<{}>;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
// @public (undocumented)
|
|
162
|
+
export const HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
|
|
163
|
+
|
|
164
|
+
// @public
|
|
165
|
+
export const IconButton: React_2.ForwardRefExoticComponent<BaseIconButtonProps & {
|
|
166
|
+
icon: React_2.ReactChild | undefined;
|
|
167
|
+
theme?: ((current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens) | undefined;
|
|
168
|
+
} & React_2.RefAttributes<HTMLElement>>;
|
|
169
|
+
|
|
170
|
+
// @public (undocumented)
|
|
171
|
+
export type IconButtonCSS = ButtonCSSContext;
|
|
172
|
+
|
|
173
|
+
// @public (undocumented)
|
|
174
|
+
export type IconButtonProps = BaseIconButtonProps & {
|
|
175
|
+
icon: CustomThemeButtonProps['iconBefore'];
|
|
176
|
+
theme?: CustomThemeButtonProps['theme'];
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
// @public (undocumented)
|
|
180
|
+
type LogoStyleProps = {
|
|
181
|
+
iconGradientStart?: string;
|
|
182
|
+
iconGradientStop?: string;
|
|
183
|
+
iconColor?: string;
|
|
184
|
+
textColor?: string;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
// @public (undocumented)
|
|
188
|
+
export type Mode = {
|
|
189
|
+
create: CreateCSS;
|
|
190
|
+
iconButton: IconButtonCSS;
|
|
191
|
+
navigation: NavigationCSS;
|
|
192
|
+
primaryButton: PrimaryButtonCSS;
|
|
193
|
+
productHome: ProductHomeCSS;
|
|
194
|
+
search: SearchCSS;
|
|
195
|
+
skeleton: SkeletonCSS;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// @public (undocumented)
|
|
199
|
+
export type NavigationCSS = CSSProperties;
|
|
200
|
+
|
|
201
|
+
// @public (undocumented)
|
|
202
|
+
export type NavigationTheme = {
|
|
203
|
+
mode: Mode;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
// @public
|
|
207
|
+
export const Notifications: React_2.ForwardRefExoticComponent<BaseIconButtonProps & {
|
|
208
|
+
badge: React_2.ComponentType<{}>;
|
|
209
|
+
} & React_2.RefAttributes<any>>;
|
|
210
|
+
|
|
211
|
+
// @public (undocumented)
|
|
212
|
+
export type NotificationsProps = BaseIconButtonProps & {
|
|
213
|
+
badge: ComponentType<{}>;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
// @public
|
|
217
|
+
export const PrimaryButton: ForwardRefExoticComponent<Omit<CustomThemeButtonProps_2, "appearance" | "onClick"> & {
|
|
218
|
+
component?: ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any> | undefined;
|
|
219
|
+
isHighlighted?: boolean | undefined;
|
|
220
|
+
testId?: string | undefined;
|
|
221
|
+
tooltip?: ReactNode;
|
|
222
|
+
onClick?: ((event: MouseEvent_2<HTMLElement, MouseEvent>, analyticsEvent: any) => void) | undefined;
|
|
223
|
+
} & RefAttributes<HTMLElement>>;
|
|
224
|
+
|
|
225
|
+
// @public (undocumented)
|
|
226
|
+
export type PrimaryButtonCSS = ButtonCSSContext;
|
|
227
|
+
|
|
228
|
+
// @public (undocumented)
|
|
229
|
+
export type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
|
|
230
|
+
component?: ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any>;
|
|
231
|
+
isHighlighted?: boolean;
|
|
232
|
+
testId?: string;
|
|
233
|
+
tooltip?: React.ReactNode;
|
|
234
|
+
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
// @public
|
|
238
|
+
export const PrimaryDropdownButton: ForwardRefExoticComponent<Omit<PrimaryButtonProps, "iconAfter"> & {
|
|
239
|
+
isHighlighted?: boolean | undefined;
|
|
240
|
+
testId?: string | undefined;
|
|
241
|
+
tooltip?: ReactNode;
|
|
242
|
+
} & RefAttributes<HTMLElement>>;
|
|
243
|
+
|
|
244
|
+
// @public (undocumented)
|
|
245
|
+
export type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
|
|
246
|
+
isHighlighted?: boolean;
|
|
247
|
+
testId?: string;
|
|
248
|
+
tooltip?: React.ReactNode;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
// @public
|
|
252
|
+
export const ProductHome: ({ icon: Icon, logo: Logo, siteTitle, onClick, href, onMouseDown, testId, logoMaxWidth, ...rest }: ProductHomeProps) => jsx.JSX.Element;
|
|
253
|
+
|
|
254
|
+
// @public (undocumented)
|
|
255
|
+
type ProductHomeCSS = CSSProperties & LogoStyleProps;
|
|
256
|
+
|
|
257
|
+
// @public (undocumented)
|
|
258
|
+
export interface ProductHomeProps {
|
|
259
|
+
href?: string;
|
|
260
|
+
icon: ComponentType<Partial<LogoProps>>;
|
|
261
|
+
logo: ComponentType<Partial<LogoProps>>;
|
|
262
|
+
logoMaxWidth?: number;
|
|
263
|
+
onClick?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
264
|
+
onMouseDown?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
265
|
+
siteTitle?: string;
|
|
266
|
+
testId?: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// @public
|
|
270
|
+
export const Profile: ForwardRefExoticComponent<BaseIconButtonProps & {
|
|
271
|
+
icon: ReactChild | undefined;
|
|
272
|
+
theme?: ((current: (props: ThemeProps_2) => ThemeTokens_2, props: ThemeProps_2) => ThemeTokens_2) | undefined;
|
|
273
|
+
} & RefAttributes<HTMLElement>>;
|
|
274
|
+
|
|
275
|
+
// @public (undocumented)
|
|
276
|
+
export type ProfileProps = IconButtonProps;
|
|
277
|
+
|
|
278
|
+
// @public
|
|
279
|
+
export const Search: (props: SearchProps) => jsx.JSX.Element;
|
|
280
|
+
|
|
281
|
+
// @public (undocumented)
|
|
282
|
+
export type SearchCSS = {
|
|
283
|
+
default: CSSProperties;
|
|
284
|
+
focus: CSSObject;
|
|
285
|
+
hover: CSSObject;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
// @public (undocumented)
|
|
289
|
+
export type SearchProps = BaseIconButtonProps & {
|
|
290
|
+
placeholder: string;
|
|
291
|
+
label: string;
|
|
292
|
+
value?: string;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
// @public
|
|
296
|
+
export const Settings: React_2.ForwardRefExoticComponent<BaseIconButtonProps & React_2.RefAttributes<any>>;
|
|
297
|
+
|
|
298
|
+
// @public (undocumented)
|
|
299
|
+
export type SettingsProps = BaseIconButtonProps;
|
|
300
|
+
|
|
301
|
+
// @public
|
|
302
|
+
export const SignIn: (props: SignInProps) => JSX.Element;
|
|
303
|
+
|
|
304
|
+
// @public (undocumented)
|
|
305
|
+
export type SignInProps = BaseIconButtonProps;
|
|
306
|
+
|
|
307
|
+
// @public (undocumented)
|
|
308
|
+
export type SkeletonCSS = CSSObject & {
|
|
309
|
+
backgroundColor: string;
|
|
310
|
+
opacity: number;
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
// @public
|
|
314
|
+
export const ThemeProvider: Provider<NavigationTheme>;
|
|
315
|
+
|
|
316
|
+
// @public
|
|
317
|
+
export const useOverflowStatus: () => {
|
|
318
|
+
isVisible: boolean;
|
|
319
|
+
openOverflowMenu: typeof noop;
|
|
320
|
+
closeOverflowMenu: typeof noop;
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
// (No @packageDocumentation comment for this package)
|
|
324
|
+
|
|
325
|
+
```
|