@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
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { Fragment } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import { CREATE_BREAKPOINT } from '../../common/constants';
|
|
6
11
|
import { useTheme } from '../../theme';
|
|
7
12
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
8
13
|
var searchInputContainerStyles = css(_defineProperty({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
9
15
|
marginRight: "var(--ds-space-100, 8px)",
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
10
17
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
11
18
|
position: 'relative'
|
|
12
19
|
}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
13
21
|
display: 'none !important'
|
|
14
22
|
}));
|
|
15
23
|
var searchInputSkeletonStyles = css({
|
|
@@ -21,6 +29,7 @@ var searchInputSkeletonStyles = css({
|
|
|
21
29
|
opacity: 0.15
|
|
22
30
|
});
|
|
23
31
|
var searchIconStyles = css(_defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
24
33
|
display: 'none !important'
|
|
25
34
|
}));
|
|
26
35
|
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
6
|
import { css, jsx } from '@emotion/react';
|
|
3
7
|
import { useTheme } from '../../theme';
|
|
4
8
|
var skeletonCreateButtonStyles = css({
|
|
@@ -10,12 +14,13 @@ var skeletonCreateButtonStyles = css({
|
|
|
10
14
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
11
15
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
12
16
|
pointerEvents: 'none',
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
13
18
|
':focus, :active, :hover': {
|
|
14
19
|
appearance: 'none',
|
|
15
20
|
border: 0,
|
|
16
21
|
outline: 0
|
|
17
22
|
},
|
|
18
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
19
24
|
'&&': {
|
|
20
25
|
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
21
26
|
}
|
|
@@ -1,26 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
6
|
import { css, jsx } from '@emotion/react';
|
|
3
7
|
import { useTheme } from '../../theme';
|
|
4
8
|
var skeletonIconButtonStyles = css({
|
|
5
9
|
margin: 0,
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
6
11
|
marginRight: "var(--ds-space-050, 4px)",
|
|
7
12
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-075, 6px)"),
|
|
8
13
|
border: 0,
|
|
9
14
|
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
10
15
|
pointerEvents: 'none',
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
11
17
|
':focus, :active, :hover': {
|
|
12
18
|
appearance: 'none',
|
|
13
19
|
border: 0,
|
|
14
20
|
outline: 0
|
|
15
21
|
},
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
16
23
|
'&:only-of-type': {
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
17
25
|
marginRight: 0
|
|
18
26
|
},
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
28
|
'& > span': {
|
|
21
29
|
lineHeight: 'normal'
|
|
22
30
|
},
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
32
|
'& > img': {
|
|
25
33
|
width: 24,
|
|
26
34
|
height: 24,
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
*/
|
|
4
7
|
/** @jsx jsx */
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
9
|
import { css, jsx } from '@emotion/react';
|
|
6
10
|
import { useTheme } from '../../theme';
|
|
7
11
|
var VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
|
|
@@ -15,16 +19,19 @@ var primaryButtonSkeletonStyles = css({
|
|
|
15
19
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
16
20
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
17
21
|
pointerEvents: 'none',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
18
23
|
':focus, :active, :hover': {
|
|
19
24
|
appearance: 'none',
|
|
20
25
|
border: 0,
|
|
21
26
|
outline: 0
|
|
22
27
|
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
23
29
|
'::-moz-focus-inner': {
|
|
24
30
|
border: 0
|
|
25
31
|
}
|
|
26
32
|
});
|
|
27
33
|
var isHighlightedStyles = css({
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
28
35
|
'&:before': {
|
|
29
36
|
height: 3,
|
|
30
37
|
position: 'absolute',
|
|
@@ -37,12 +44,14 @@ var isHighlightedStyles = css({
|
|
|
37
44
|
}
|
|
38
45
|
});
|
|
39
46
|
var isHighlightedAndDropdownButtonStyles = css({
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
40
48
|
'&:before': {
|
|
41
49
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
42
50
|
insetInlineEnd: -10
|
|
43
51
|
}
|
|
44
52
|
});
|
|
45
53
|
var isHighlightedNotDropdownButtonStyles = css({
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
46
55
|
'&:before': {
|
|
47
56
|
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
48
57
|
}
|
|
@@ -50,6 +59,7 @@ var isHighlightedNotDropdownButtonStyles = css({
|
|
|
50
59
|
var isDropdownButtonStyles = css({
|
|
51
60
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
52
61
|
marginInlineEnd: 18,
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
53
63
|
'&:after': {
|
|
54
64
|
display: 'inline-block',
|
|
55
65
|
width: 4,
|
|
@@ -55,18 +55,18 @@ export interface AtlassianNavigationProps {
|
|
|
55
55
|
*/
|
|
56
56
|
theme?: NavigationTheme;
|
|
57
57
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
A `testId` prop is provided for specified elements,
|
|
59
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
60
|
+
serving as a hook for automated tests.
|
|
61
|
+
|
|
62
|
+
Will set these elements when defined:
|
|
63
|
+
|
|
64
|
+
- Header element - `{testId}-header`
|
|
65
|
+
- Primary actions container - `{testId}-primary-actions`
|
|
66
|
+
- Secondary actions container - `{testId}-secondary-actions`
|
|
67
|
+
- Overflow menu popup - `{testId}-overflow-menu-popup`
|
|
68
|
+
- Overflow menu button - `{testId}-overflow-menu-trigger`
|
|
69
|
+
*/
|
|
70
70
|
testId?: string;
|
|
71
71
|
}
|
|
72
72
|
export interface NavigationSkeletonProps {
|
|
@@ -91,17 +91,17 @@ export interface NavigationSkeletonProps {
|
|
|
91
91
|
*/
|
|
92
92
|
theme?: NavigationTheme;
|
|
93
93
|
/**
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
A `testId` prop is provided for specified elements,
|
|
95
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
96
|
+
serving as a hook for automated tests.
|
|
97
|
+
|
|
98
|
+
Will set these elements when defined:
|
|
99
|
+
|
|
100
|
+
- Header element - `{testId}-header`
|
|
101
|
+
- Primary actions container - `{testId}-primary-actions`
|
|
102
|
+
- Secondary actions container - `{testId}-secondary-actions`
|
|
103
|
+
- Overflow menu popup - `{testId}-overflow-menu-popup`
|
|
104
|
+
- Overflow menu button - `{testId}-overflow-menu-trigger`
|
|
105
|
+
*/
|
|
106
106
|
testId?: string;
|
|
107
107
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
export declare const ProductHomeSkeleton: ({ showSiteName
|
|
6
|
+
export declare const ProductHomeSkeleton: ({ showSiteName }: {
|
|
4
7
|
showSiteName: boolean;
|
|
5
8
|
}) => jsx.JSX.Element;
|
|
@@ -33,17 +33,17 @@ export interface ProductHomeProps {
|
|
|
33
33
|
*/
|
|
34
34
|
siteTitle?: string;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
36
|
+
A `testId` prop is provided for specified elements,
|
|
37
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
38
|
+
serving as a hook for automated tests.
|
|
39
|
+
|
|
40
|
+
Will set these elements when defined:
|
|
41
|
+
|
|
42
|
+
- Root element of the component - `{testId}-container`
|
|
43
|
+
- Product logo shown at large screen sizes - `{testId}-logo`
|
|
44
|
+
- Product icon shown at small screen sizes - `{testId}-icon`
|
|
45
|
+
- Site title - `{testId}-site-title`
|
|
46
|
+
*/
|
|
47
47
|
testId?: string;
|
|
48
48
|
}
|
|
49
49
|
export interface CustomProductHomeProps {
|
|
@@ -85,16 +85,16 @@ export interface CustomProductHomeProps {
|
|
|
85
85
|
*/
|
|
86
86
|
siteTitle?: string;
|
|
87
87
|
/**
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
A `testId` prop is provided for specified elements,
|
|
89
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
90
|
+
serving as a hook for automated tests.
|
|
91
|
+
|
|
92
|
+
Will set these elements when defined:
|
|
93
|
+
|
|
94
|
+
- Root element of the component - `{testId}-container`
|
|
95
|
+
- Product logo shown at large screen sizes - `{testId}-logo`
|
|
96
|
+
- Product icon shown at small screen sizes - `{testId}-icon`
|
|
97
|
+
- Site title - `{testId}-site-title`
|
|
98
|
+
*/
|
|
99
99
|
testId?: string;
|
|
100
100
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
6
|
import { type SkeletonCreateButtonProps } from './types';
|
|
@@ -11,4 +14,4 @@ import { type SkeletonCreateButtonProps } from './types';
|
|
|
11
14
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
12
15
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
13
16
|
*/
|
|
14
|
-
export declare const SkeletonCreateButton: ({ text, testId
|
|
17
|
+
export declare const SkeletonCreateButton: ({ text, testId }: SkeletonCreateButtonProps) => jsx.JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
6
|
import { type SkeletonIconButtonProps } from './types';
|
|
@@ -11,4 +14,4 @@ import { type SkeletonIconButtonProps } from './types';
|
|
|
11
14
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
12
15
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
13
16
|
*/
|
|
14
|
-
export declare const SkeletonIconButton: ({ children, testId
|
|
17
|
+
export declare const SkeletonIconButton: ({ children, testId }: SkeletonIconButtonProps) => jsx.JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type { PrimaryDropdownButtonProps } from './components/PrimaryDropdownBut
|
|
|
15
15
|
export { IconButton } from './components/IconButton';
|
|
16
16
|
export type { IconButtonProps } from './components/IconButton/types';
|
|
17
17
|
export { CustomProductHome, ProductHome } from './components/ProductHome';
|
|
18
|
-
export type { CustomProductHomeProps, ProductHomeProps
|
|
18
|
+
export type { CustomProductHomeProps, ProductHomeProps } from './components/ProductHome/types';
|
|
19
19
|
export { Profile } from './components/Profile';
|
|
20
20
|
export type { ProfileProps } from './components/Profile/types';
|
|
21
21
|
export { Search } from './components/Search';
|
|
@@ -16,4 +16,4 @@ export type SkeletonNotificationButtonProps = {
|
|
|
16
16
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
|
-
export declare const SkeletonNotificationButton: ({ label
|
|
19
|
+
export declare const SkeletonNotificationButton: ({ label }: SkeletonNotificationButtonProps) => JSX.Element;
|
|
@@ -16,4 +16,4 @@ export type SkeletonSettingsButtonProps = {
|
|
|
16
16
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
|
-
export declare const SkeletonSettingsButton: ({ label
|
|
19
|
+
export declare const SkeletonSettingsButton: ({ label }: SkeletonSettingsButtonProps) => JSX.Element;
|
|
@@ -16,4 +16,4 @@ export type SkeletonSwitcherButtonProps = {
|
|
|
16
16
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
|
-
export declare const SkeletonSwitcherButton: ({ label
|
|
19
|
+
export declare const SkeletonSwitcherButton: ({ label }: SkeletonSwitcherButtonProps) => JSX.Element;
|
|
@@ -55,18 +55,18 @@ export interface AtlassianNavigationProps {
|
|
|
55
55
|
*/
|
|
56
56
|
theme?: NavigationTheme;
|
|
57
57
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
A `testId` prop is provided for specified elements,
|
|
59
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
60
|
+
serving as a hook for automated tests.
|
|
61
|
+
|
|
62
|
+
Will set these elements when defined:
|
|
63
|
+
|
|
64
|
+
- Header element - `{testId}-header`
|
|
65
|
+
- Primary actions container - `{testId}-primary-actions`
|
|
66
|
+
- Secondary actions container - `{testId}-secondary-actions`
|
|
67
|
+
- Overflow menu popup - `{testId}-overflow-menu-popup`
|
|
68
|
+
- Overflow menu button - `{testId}-overflow-menu-trigger`
|
|
69
|
+
*/
|
|
70
70
|
testId?: string;
|
|
71
71
|
}
|
|
72
72
|
export interface NavigationSkeletonProps {
|
|
@@ -91,17 +91,17 @@ export interface NavigationSkeletonProps {
|
|
|
91
91
|
*/
|
|
92
92
|
theme?: NavigationTheme;
|
|
93
93
|
/**
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
A `testId` prop is provided for specified elements,
|
|
95
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
96
|
+
serving as a hook for automated tests.
|
|
97
|
+
|
|
98
|
+
Will set these elements when defined:
|
|
99
|
+
|
|
100
|
+
- Header element - `{testId}-header`
|
|
101
|
+
- Primary actions container - `{testId}-primary-actions`
|
|
102
|
+
- Secondary actions container - `{testId}-secondary-actions`
|
|
103
|
+
- Overflow menu popup - `{testId}-overflow-menu-popup`
|
|
104
|
+
- Overflow menu button - `{testId}-overflow-menu-trigger`
|
|
105
|
+
*/
|
|
106
106
|
testId?: string;
|
|
107
107
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
export declare const ProductHomeSkeleton: ({ showSiteName
|
|
6
|
+
export declare const ProductHomeSkeleton: ({ showSiteName }: {
|
|
4
7
|
showSiteName: boolean;
|
|
5
8
|
}) => jsx.JSX.Element;
|
|
@@ -33,17 +33,17 @@ export interface ProductHomeProps {
|
|
|
33
33
|
*/
|
|
34
34
|
siteTitle?: string;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
36
|
+
A `testId` prop is provided for specified elements,
|
|
37
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
38
|
+
serving as a hook for automated tests.
|
|
39
|
+
|
|
40
|
+
Will set these elements when defined:
|
|
41
|
+
|
|
42
|
+
- Root element of the component - `{testId}-container`
|
|
43
|
+
- Product logo shown at large screen sizes - `{testId}-logo`
|
|
44
|
+
- Product icon shown at small screen sizes - `{testId}-icon`
|
|
45
|
+
- Site title - `{testId}-site-title`
|
|
46
|
+
*/
|
|
47
47
|
testId?: string;
|
|
48
48
|
}
|
|
49
49
|
export interface CustomProductHomeProps {
|
|
@@ -85,16 +85,16 @@ export interface CustomProductHomeProps {
|
|
|
85
85
|
*/
|
|
86
86
|
siteTitle?: string;
|
|
87
87
|
/**
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
A `testId` prop is provided for specified elements,
|
|
89
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
90
|
+
serving as a hook for automated tests.
|
|
91
|
+
|
|
92
|
+
Will set these elements when defined:
|
|
93
|
+
|
|
94
|
+
- Root element of the component - `{testId}-container`
|
|
95
|
+
- Product logo shown at large screen sizes - `{testId}-logo`
|
|
96
|
+
- Product icon shown at small screen sizes - `{testId}-icon`
|
|
97
|
+
- Site title - `{testId}-site-title`
|
|
98
|
+
*/
|
|
99
99
|
testId?: string;
|
|
100
100
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
6
|
import { type SkeletonCreateButtonProps } from './types';
|
|
@@ -11,4 +14,4 @@ import { type SkeletonCreateButtonProps } from './types';
|
|
|
11
14
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
12
15
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
13
16
|
*/
|
|
14
|
-
export declare const SkeletonCreateButton: ({ text, testId
|
|
17
|
+
export declare const SkeletonCreateButton: ({ text, testId }: SkeletonCreateButtonProps) => jsx.JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
6
|
import { type SkeletonIconButtonProps } from './types';
|
|
@@ -11,4 +14,4 @@ import { type SkeletonIconButtonProps } from './types';
|
|
|
11
14
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
12
15
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
13
16
|
*/
|
|
14
|
-
export declare const SkeletonIconButton: ({ children, testId
|
|
17
|
+
export declare const SkeletonIconButton: ({ children, testId }: SkeletonIconButtonProps) => jsx.JSX.Element;
|
|
@@ -15,7 +15,7 @@ export type { PrimaryDropdownButtonProps } from './components/PrimaryDropdownBut
|
|
|
15
15
|
export { IconButton } from './components/IconButton';
|
|
16
16
|
export type { IconButtonProps } from './components/IconButton/types';
|
|
17
17
|
export { CustomProductHome, ProductHome } from './components/ProductHome';
|
|
18
|
-
export type { CustomProductHomeProps, ProductHomeProps
|
|
18
|
+
export type { CustomProductHomeProps, ProductHomeProps } from './components/ProductHome/types';
|
|
19
19
|
export { Profile } from './components/Profile';
|
|
20
20
|
export type { ProfileProps } from './components/Profile/types';
|
|
21
21
|
export { Search } from './components/Search';
|
|
@@ -16,4 +16,4 @@ export type SkeletonNotificationButtonProps = {
|
|
|
16
16
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
|
-
export declare const SkeletonNotificationButton: ({ label
|
|
19
|
+
export declare const SkeletonNotificationButton: ({ label }: SkeletonNotificationButtonProps) => JSX.Element;
|
|
@@ -16,4 +16,4 @@ export type SkeletonSettingsButtonProps = {
|
|
|
16
16
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
|
-
export declare const SkeletonSettingsButton: ({ label
|
|
19
|
+
export declare const SkeletonSettingsButton: ({ label }: SkeletonSettingsButtonProps) => JSX.Element;
|
|
@@ -16,4 +16,4 @@ export type SkeletonSwitcherButtonProps = {
|
|
|
16
16
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
|
-
export declare const SkeletonSwitcherButton: ({ label
|
|
19
|
+
export declare const SkeletonSwitcherButton: ({ label }: SkeletonSwitcherButtonProps) => JSX.Element;
|