@atlaskit/atlassian-navigation 2.6.12 → 2.6.14
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/IconButton/styles.js +3 -2
- package/dist/cjs/components/PrimaryButton/styles.js +1 -1
- package/dist/cjs/components/ProductHome/custom-product-home.js +2 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/IconButton/styles.js +3 -2
- package/dist/es2019/components/PrimaryButton/styles.js +1 -1
- package/dist/es2019/components/PrimaryItemsContainerV2/index.js +0 -3
- package/dist/es2019/components/ProductHome/custom-product-home.js +2 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/IconButton/styles.js +3 -2
- package/dist/esm/components/PrimaryButton/styles.js +1 -1
- package/dist/esm/components/ProductHome/custom-product-home.js +2 -1
- package/dist/esm/version.json +1 -1
- package/package.json +4 -14
- package/tmp/api-report-tmp.d.ts +0 -325
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 2.6.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9b8eb462cf4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9b8eb462cf4) - [ux] update color.border.focused fallback to B200
|
|
8
|
+
|
|
9
|
+
## 2.6.13
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 2.6.12
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -18,8 +18,9 @@ var getIconButtonTheme = function getIconButtonTheme(_ref) {
|
|
|
18
18
|
buttonStyles: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, buttonStyles), {}, {
|
|
19
19
|
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
20
20
|
display: 'flex',
|
|
21
|
-
margin:
|
|
22
|
-
|
|
21
|
+
margin: "0 ".concat("var(--ds-space-025, 2px)"),
|
|
22
|
+
// TODO Delete this comment after verifying space token -> previous value `4`
|
|
23
|
+
padding: "var(--ds-space-050, 4px)",
|
|
23
24
|
height: 'auto',
|
|
24
25
|
fontWeight: 500
|
|
25
26
|
}, iconButton.default), {}, {
|
|
@@ -17,7 +17,7 @@ var getPrimaryButtonTheme = function getPrimaryButtonTheme(_ref) {
|
|
|
17
17
|
return {
|
|
18
18
|
buttonStyles: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, buttonStyles), primaryButton.default), props.isSelected && primaryButton.selected), {}, {
|
|
19
19
|
fontWeight: 500,
|
|
20
|
-
padding:
|
|
20
|
+
padding: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
21
21
|
marginLeft: 0,
|
|
22
22
|
marginRight: 0,
|
|
23
23
|
':hover': props.isSelected ? primaryButton.selectedHover : primaryButton.hover,
|
|
@@ -11,6 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
14
15
|
var _constants = require("../../common/constants");
|
|
15
16
|
var _theme = require("../../theme");
|
|
16
17
|
var _utils = require("./utils");
|
|
@@ -71,7 +72,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
|
71
72
|
'&:focus-visible': {
|
|
72
73
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
|
|
73
74
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
74
|
-
outline: "2px solid ".concat("var(--ds-border-focused,
|
|
75
|
+
outline: "2px solid ".concat("var(--ds-border-focused, ".concat(_colors.B200, ")"))
|
|
75
76
|
},
|
|
76
77
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
77
78
|
'div&': {
|
package/dist/cjs/version.json
CHANGED
|
@@ -12,8 +12,9 @@ export const getIconButtonTheme = ({
|
|
|
12
12
|
...buttonStyles,
|
|
13
13
|
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
14
14
|
display: 'flex',
|
|
15
|
-
margin:
|
|
16
|
-
|
|
15
|
+
margin: `0 ${"var(--ds-space-025, 2px)"}`,
|
|
16
|
+
// TODO Delete this comment after verifying space token -> previous value `4`
|
|
17
|
+
padding: "var(--ds-space-050, 4px)",
|
|
17
18
|
height: 'auto',
|
|
18
19
|
fontWeight: 500,
|
|
19
20
|
...iconButton.default,
|
|
@@ -13,7 +13,7 @@ export const getPrimaryButtonTheme = ({
|
|
|
13
13
|
...primaryButton.default,
|
|
14
14
|
...(props.isSelected && primaryButton.selected),
|
|
15
15
|
fontWeight: 500,
|
|
16
|
-
padding:
|
|
16
|
+
padding: `0 ${"var(--ds-space-050, 4px)"}`,
|
|
17
17
|
marginLeft: 0,
|
|
18
18
|
marginRight: 0,
|
|
19
19
|
':hover': props.isSelected ? primaryButton.selectedHover : primaryButton.hover,
|
|
@@ -23,17 +23,14 @@ const smallContainerStyles = css({
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
const mediumContainerStyles = css({
|
|
26
|
-
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
27
26
|
[media.above.sm]: {
|
|
28
27
|
display: 'flex'
|
|
29
28
|
},
|
|
30
|
-
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
31
29
|
[media.above.lg]: {
|
|
32
30
|
display: 'none'
|
|
33
31
|
}
|
|
34
32
|
});
|
|
35
33
|
const largeContainerStyles = css({
|
|
36
|
-
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
37
34
|
[media.above.lg]: {
|
|
38
35
|
display: 'flex'
|
|
39
36
|
}
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import { Fragment } from 'react';
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { B200 } from '@atlaskit/theme/colors';
|
|
6
7
|
import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
7
8
|
import { useTheme } from '../../theme';
|
|
8
9
|
import { getTag } from './utils';
|
|
@@ -64,7 +65,7 @@ const productHomeButtonStyles = css({
|
|
|
64
65
|
'&:focus-visible': {
|
|
65
66
|
backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS})`,
|
|
66
67
|
color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
|
|
67
|
-
outline: `2px solid ${
|
|
68
|
+
outline: `2px solid ${`var(--ds-border-focused, ${B200})`}`
|
|
68
69
|
},
|
|
69
70
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
70
71
|
'div&': {
|
package/dist/es2019/version.json
CHANGED
|
@@ -11,8 +11,9 @@ export var getIconButtonTheme = function getIconButtonTheme(_ref) {
|
|
|
11
11
|
buttonStyles: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, buttonStyles), {}, {
|
|
12
12
|
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
13
13
|
display: 'flex',
|
|
14
|
-
margin:
|
|
15
|
-
|
|
14
|
+
margin: "0 ".concat("var(--ds-space-025, 2px)"),
|
|
15
|
+
// TODO Delete this comment after verifying space token -> previous value `4`
|
|
16
|
+
padding: "var(--ds-space-050, 4px)",
|
|
16
17
|
height: 'auto',
|
|
17
18
|
fontWeight: 500
|
|
18
19
|
}, iconButton.default), {}, {
|
|
@@ -10,7 +10,7 @@ export var getPrimaryButtonTheme = function getPrimaryButtonTheme(_ref) {
|
|
|
10
10
|
return {
|
|
11
11
|
buttonStyles: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, buttonStyles), primaryButton.default), props.isSelected && primaryButton.selected), {}, {
|
|
12
12
|
fontWeight: 500,
|
|
13
|
-
padding:
|
|
13
|
+
padding: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
14
14
|
marginLeft: 0,
|
|
15
15
|
marginRight: 0,
|
|
16
16
|
':hover': props.isSelected ? primaryButton.selectedHover : primaryButton.hover,
|
|
@@ -7,6 +7,7 @@ var _css3;
|
|
|
7
7
|
import { Fragment } from 'react';
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { B200 } from '@atlaskit/theme/colors';
|
|
10
11
|
import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
11
12
|
import { useTheme } from '../../theme';
|
|
12
13
|
import { getTag } from './utils';
|
|
@@ -64,7 +65,7 @@ var productHomeButtonStyles = css((_css3 = {
|
|
|
64
65
|
'&:focus-visible': {
|
|
65
66
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
|
|
66
67
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
67
|
-
outline: "2px solid ".concat("var(--ds-border-focused,
|
|
68
|
+
outline: "2px solid ".concat("var(--ds-border-focused, ".concat(B200, ")"))
|
|
68
69
|
},
|
|
69
70
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
70
71
|
'div&': {
|
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.14",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@atlaskit/logo": "*",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
41
41
|
"@atlaskit/popup": "^1.8.0",
|
|
42
|
-
"@atlaskit/primitives": "^0.
|
|
42
|
+
"@atlaskit/primitives": "^1.0.0",
|
|
43
43
|
"@atlaskit/theme": "^12.5.0",
|
|
44
|
-
"@atlaskit/tokens": "^1.
|
|
44
|
+
"@atlaskit/tokens": "^1.13.0",
|
|
45
45
|
"@atlaskit/tooltip": "^17.8.0",
|
|
46
46
|
"@atlaskit/width-detector": "^4.1.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
@@ -54,24 +54,14 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@af/visual-regression": "*",
|
|
57
|
-
"@atlaskit/analytics-next": "*",
|
|
58
|
-
"@atlaskit/atlassian-notifications": "*",
|
|
59
|
-
"@atlaskit/avatar": "*",
|
|
60
|
-
"@atlaskit/badge": "*",
|
|
61
|
-
"@atlaskit/docs": "*",
|
|
62
|
-
"@atlaskit/drawer": "*",
|
|
63
|
-
"@atlaskit/menu": "*",
|
|
64
57
|
"@atlaskit/notification-indicator": "*",
|
|
65
58
|
"@atlaskit/notification-log-client": "*",
|
|
66
|
-
"@atlaskit/spinner": "*",
|
|
67
59
|
"@atlaskit/visual-regression": "*",
|
|
68
60
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
69
61
|
"@atlassian/feature-flags-test-utils": "^0.1.1",
|
|
70
|
-
"@atlassian/switcher": "*",
|
|
71
|
-
"@atlassian/switcher-test-utils": "*",
|
|
72
62
|
"@testing-library/react": "^12.1.5",
|
|
73
63
|
"@testing-library/react-hooks": "^8.0.1",
|
|
74
|
-
"jest-axe": "^
|
|
64
|
+
"jest-axe": "^8.0.0",
|
|
75
65
|
"jest-emotion": "^10.0.32",
|
|
76
66
|
"react": "^16.8.0",
|
|
77
67
|
"react-dom": "^16.8.0",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,325 +0,0 @@
|
|
|
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
|
-
```
|