@atlaskit/atlassian-navigation 1.1.3 → 1.3.0
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 +55 -0
- package/dist/cjs/common/constants.js +1 -1
- package/dist/cjs/components/AtlassianNavigation/styles.js +25 -17
- package/dist/cjs/components/IconButton/styles.js +3 -3
- package/dist/cjs/components/PrimaryButton/styles.js +3 -3
- package/dist/cjs/components/PrimaryItemsContainer/index.js +6 -11
- package/dist/cjs/components/PrimaryItemsContainer/styles.js +1 -12
- package/dist/cjs/components/ProductHome/index.js +4 -4
- package/dist/cjs/components/ProductHome/styles.js +1 -1
- package/dist/cjs/components/Search/styles.js +1 -1
- package/dist/cjs/controllers/overflow/index.js +1 -1
- package/dist/cjs/index.js +26 -26
- package/dist/cjs/theme/defaultTheme.js +52 -48
- package/dist/cjs/theme/index.js +8 -8
- package/dist/cjs/theme/themeGenerator.js +1 -1
- package/dist/cjs/theme/themeHelpers.js +1 -1
- package/dist/cjs/theme/themes.js +2 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/AtlassianNavigation/styles.js +20 -12
- package/dist/es2019/components/IconButton/styles.js +2 -2
- package/dist/es2019/components/PrimaryButton/styles.js +2 -2
- package/dist/es2019/components/PrimaryItemsContainer/index.js +6 -11
- package/dist/es2019/components/PrimaryItemsContainer/styles.js +0 -10
- package/dist/es2019/theme/defaultTheme.js +52 -48
- package/dist/es2019/theme/themes.js +2 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/AtlassianNavigation/styles.js +23 -14
- package/dist/esm/components/IconButton/styles.js +2 -2
- package/dist/esm/components/PrimaryButton/styles.js +2 -2
- package/dist/esm/components/PrimaryItemsContainer/index.js +6 -11
- package/dist/esm/components/PrimaryItemsContainer/styles.js +0 -10
- package/dist/esm/theme/defaultTheme.js +52 -48
- package/dist/esm/theme/themes.js +2 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/components/AtlassianNavigation/styles.d.ts +0 -11
- package/dist/types/components/IconButton/types.d.ts +21 -0
- package/package.json +6 -13
|
@@ -20,14 +20,3 @@ export declare const rightCSS: {
|
|
|
20
20
|
marginRight: number;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
export declare const bottomShadow: {
|
|
24
|
-
'&::after': {
|
|
25
|
-
content: string;
|
|
26
|
-
position: string;
|
|
27
|
-
left: number;
|
|
28
|
-
right: number;
|
|
29
|
-
top: string;
|
|
30
|
-
height: number;
|
|
31
|
-
background: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
@@ -58,6 +58,23 @@ export interface BaseIconButtonProps {
|
|
|
58
58
|
* If defining `href` you may want to define `target` as well.
|
|
59
59
|
*/
|
|
60
60
|
target?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Allows for overriding the component used to render the button.
|
|
63
|
+
*
|
|
64
|
+
* This is primarily intended for compatibility with custom
|
|
65
|
+
* routing libraries when using the `href` prop.
|
|
66
|
+
*
|
|
67
|
+
* For further usage information, refer to the [documentation for button](https://atlassian.design/components/button/code).
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```tsx
|
|
71
|
+
* <Settings
|
|
72
|
+
* component={CustomRouterLink}
|
|
73
|
+
* href="/path/to/url"
|
|
74
|
+
* />
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
component?: CustomThemeButtonProps['component'];
|
|
61
78
|
/**
|
|
62
79
|
* Handler for the mouse up event.
|
|
63
80
|
*/
|
|
@@ -66,6 +83,10 @@ export interface BaseIconButtonProps {
|
|
|
66
83
|
* Handler called when the button gains focus.
|
|
67
84
|
*/
|
|
68
85
|
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
86
|
+
/**
|
|
87
|
+
* Handler called when the button loses focus.
|
|
88
|
+
*/
|
|
89
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
69
90
|
/**
|
|
70
91
|
* Makes the element appear selected.
|
|
71
92
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"@atlaskit/logo": "*",
|
|
30
30
|
"@atlaskit/popup": "^1.1.0",
|
|
31
31
|
"@atlaskit/theme": "^12.0.0",
|
|
32
|
+
"@atlaskit/tokens": "^0.4.0",
|
|
32
33
|
"@atlaskit/tooltip": "^17.5.0",
|
|
33
34
|
"@atlaskit/width-detector": "^3.0.0",
|
|
34
35
|
"@babel/runtime": "^7.0.0",
|
|
@@ -65,18 +66,10 @@
|
|
|
65
66
|
"import-structure": "atlassian-conventions"
|
|
66
67
|
},
|
|
67
68
|
"@repo/internal": {
|
|
68
|
-
"ui-components":
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"analytics-next"
|
|
73
|
-
],
|
|
74
|
-
"theming": [
|
|
75
|
-
"new-theming-api"
|
|
76
|
-
],
|
|
77
|
-
"deprecation": [
|
|
78
|
-
"no-deprecated-imports"
|
|
79
|
-
]
|
|
69
|
+
"ui-components": "lite-mode",
|
|
70
|
+
"analytics": "analytics-next",
|
|
71
|
+
"theming": "tokens",
|
|
72
|
+
"deprecation": "no-deprecated-imports"
|
|
80
73
|
}
|
|
81
74
|
},
|
|
82
75
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|