@atlaskit/atlassian-navigation 2.1.0 → 2.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 +7 -0
- package/dist/cjs/common/constants.js +10 -1
- package/dist/cjs/components/AtlassianNavigation/index.js +61 -5
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +67 -10
- package/dist/cjs/components/BadgeContainer/index.js +12 -4
- package/dist/cjs/components/Create/index.js +21 -12
- package/dist/cjs/components/Create/skeleton.js +21 -6
- package/dist/cjs/components/Create/styles.js +1 -25
- package/dist/cjs/components/IconButton/skeleton.js +31 -5
- package/dist/cjs/components/IconButton/styles.js +2 -32
- package/dist/cjs/components/PrimaryButton/index.js +35 -1
- package/dist/cjs/components/PrimaryButton/skeleton.js +15 -5
- package/dist/cjs/components/PrimaryButton/styles.js +2 -58
- package/dist/cjs/components/PrimaryDropdownButton/index.js +6 -3
- package/dist/cjs/components/PrimaryItemsContainer/index.js +26 -4
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +8 -3
- package/dist/cjs/components/ProductHome/custom-product-home.js +104 -6
- package/dist/cjs/components/ProductHome/product-home.js +104 -6
- package/dist/cjs/components/ProductHome/skeleton.js +117 -6
- package/dist/cjs/components/Search/index.js +50 -6
- package/dist/cjs/components/Search/skeleton.js +29 -7
- package/dist/cjs/components/SkeletonCreateButton/index.js +23 -5
- package/dist/cjs/components/SkeletonIconButton/index.js +30 -5
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +79 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/common/constants.js +4 -0
- package/dist/es2019/components/AtlassianNavigation/index.js +61 -6
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +67 -11
- package/dist/es2019/components/BadgeContainer/index.js +12 -4
- package/dist/es2019/components/Create/index.js +26 -13
- package/dist/es2019/components/Create/skeleton.js +20 -6
- package/dist/es2019/components/Create/styles.js +0 -15
- package/dist/es2019/components/IconButton/skeleton.js +23 -5
- package/dist/es2019/components/IconButton/styles.js +1 -23
- package/dist/es2019/components/PrimaryButton/index.js +35 -3
- package/dist/es2019/components/PrimaryButton/skeleton.js +14 -5
- package/dist/es2019/components/PrimaryButton/styles.js +1 -46
- package/dist/es2019/components/PrimaryDropdownButton/index.js +7 -3
- package/dist/es2019/components/PrimaryItemsContainer/index.js +25 -4
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +7 -3
- package/dist/es2019/components/ProductHome/custom-product-home.js +119 -6
- package/dist/es2019/components/ProductHome/product-home.js +119 -6
- package/dist/es2019/components/ProductHome/skeleton.js +129 -6
- package/dist/es2019/components/Search/index.js +47 -6
- package/dist/es2019/components/Search/skeleton.js +30 -7
- package/dist/es2019/components/SkeletonCreateButton/index.js +23 -3
- package/dist/es2019/components/SkeletonIconButton/index.js +30 -3
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +74 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/common/constants.js +4 -0
- package/dist/esm/components/AtlassianNavigation/index.js +61 -6
- package/dist/esm/components/AtlassianNavigation/skeleton.js +67 -11
- package/dist/esm/components/BadgeContainer/index.js +12 -4
- package/dist/esm/components/Create/index.js +22 -13
- package/dist/esm/components/Create/skeleton.js +19 -6
- package/dist/esm/components/Create/styles.js +0 -15
- package/dist/esm/components/IconButton/skeleton.js +29 -5
- package/dist/esm/components/IconButton/styles.js +0 -22
- package/dist/esm/components/PrimaryButton/index.js +35 -3
- package/dist/esm/components/PrimaryButton/skeleton.js +14 -5
- package/dist/esm/components/PrimaryButton/styles.js +0 -44
- package/dist/esm/components/PrimaryDropdownButton/index.js +7 -3
- package/dist/esm/components/PrimaryItemsContainer/index.js +25 -4
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +7 -3
- package/dist/esm/components/ProductHome/custom-product-home.js +102 -6
- package/dist/esm/components/ProductHome/product-home.js +102 -6
- package/dist/esm/components/ProductHome/skeleton.js +117 -6
- package/dist/esm/components/Search/index.js +48 -6
- package/dist/esm/components/Search/skeleton.js +27 -7
- package/dist/esm/components/SkeletonCreateButton/index.js +23 -3
- package/dist/esm/components/SkeletonIconButton/index.js +30 -3
- package/dist/esm/components/SkeletonPrimaryButton/index.js +80 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/common/constants.d.ts +3 -0
- package/dist/types/common/styles.d.ts +143 -143
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +1 -1
- package/dist/types/components/AtlassianNavigation/types.d.ts +1 -0
- package/dist/types/components/Create/styles.d.ts +0 -923
- package/dist/types/components/IconButton/skeleton.d.ts +1 -1
- package/dist/types/components/IconButton/styles.d.ts +0 -915
- package/dist/types/components/PrimaryButton/index.d.ts +1 -1
- package/dist/types/components/PrimaryButton/skeleton.d.ts +1 -0
- package/dist/types/components/PrimaryButton/styles.d.ts +0 -917
- package/dist/types/components/PrimaryDropdownButton/index.d.ts +1 -1
- package/docs/99-migrating-from-navigation-next.tsx +31 -32
- package/package.json +7 -3
- package/dist/cjs/components/AtlassianNavigation/styles.js +0 -82
- package/dist/cjs/components/BadgeContainer/styles.js +0 -17
- package/dist/cjs/components/PrimaryDropdownButton/styles.js +0 -13
- package/dist/cjs/components/PrimaryItemsContainer/styles.js +0 -42
- package/dist/cjs/components/ProductHome/styles.js +0 -152
- package/dist/cjs/components/Search/styles.js +0 -70
- package/dist/cjs/components/SkeletonCreateButton/styles.js +0 -39
- package/dist/cjs/components/SkeletonIconButton/styles.js +0 -46
- package/dist/cjs/components/SkeletonPrimaryButton/styles.js +0 -74
- package/dist/es2019/components/AtlassianNavigation/styles.js +0 -60
- package/dist/es2019/components/BadgeContainer/styles.js +0 -9
- package/dist/es2019/components/PrimaryDropdownButton/styles.js +0 -6
- package/dist/es2019/components/PrimaryItemsContainer/styles.js +0 -30
- package/dist/es2019/components/ProductHome/styles.js +0 -117
- package/dist/es2019/components/Search/styles.js +0 -43
- package/dist/es2019/components/SkeletonCreateButton/styles.js +0 -25
- package/dist/es2019/components/SkeletonIconButton/styles.js +0 -32
- package/dist/es2019/components/SkeletonPrimaryButton/styles.js +0 -60
- package/dist/esm/components/AtlassianNavigation/styles.js +0 -64
- package/dist/esm/components/BadgeContainer/styles.js +0 -9
- package/dist/esm/components/PrimaryDropdownButton/styles.js +0 -6
- package/dist/esm/components/PrimaryItemsContainer/styles.js +0 -29
- package/dist/esm/components/ProductHome/styles.js +0 -114
- package/dist/esm/components/Search/styles.js +0 -47
- package/dist/esm/components/SkeletonCreateButton/styles.js +0 -28
- package/dist/esm/components/SkeletonIconButton/styles.js +0 -35
- package/dist/esm/components/SkeletonPrimaryButton/styles.js +0 -63
- package/dist/types/components/AtlassianNavigation/styles.d.ts +0 -22
- package/dist/types/components/BadgeContainer/styles.d.ts +0 -9
- package/dist/types/components/PrimaryDropdownButton/styles.d.ts +0 -5
- package/dist/types/components/PrimaryItemsContainer/styles.d.ts +0 -9
- package/dist/types/components/ProductHome/styles.d.ts +0 -2791
- package/dist/types/components/Search/styles.d.ts +0 -1842
- package/dist/types/components/SkeletonCreateButton/styles.d.ts +0 -4
- package/dist/types/components/SkeletonIconButton/styles.d.ts +0 -4
- package/dist/types/components/SkeletonPrimaryButton/styles.d.ts +0 -4
|
@@ -1,9 +1,63 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/core';
|
|
2
|
+
import { css, jsx } from '@emotion/core';
|
|
3
3
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
4
|
-
import {
|
|
4
|
+
import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
|
|
5
|
+
import { gridSize, HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
6
|
+
import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
|
|
5
7
|
import { PrimaryItemsContainer } from '../PrimaryItemsContainer';
|
|
6
|
-
|
|
8
|
+
var containerStyles = css({
|
|
9
|
+
display: 'flex',
|
|
10
|
+
boxSizing: 'border-box',
|
|
11
|
+
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
12
|
+
paddingRight: gridSize * 1.5,
|
|
13
|
+
paddingLeft: gridSize * 1.5,
|
|
14
|
+
position: 'relative',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
justifyContent: 'space-between',
|
|
17
|
+
flexShrink: 0,
|
|
18
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
19
|
+
'[data-theme="light"] &, [data-theme="dark"] &': {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
21
|
+
borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
|
|
22
|
+
// TODO: (DSP-2087) Remove the below once tokens have launched
|
|
23
|
+
'&::after': {
|
|
24
|
+
content: 'none'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
// TODO: (DSP-2087) Remove the below once tokens have launched
|
|
28
|
+
'&::after': {
|
|
29
|
+
height: gridSize / 2,
|
|
30
|
+
position: 'absolute',
|
|
31
|
+
top: '100%',
|
|
32
|
+
right: 0,
|
|
33
|
+
left: 0,
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
35
|
+
background: "linear-gradient(180deg, ".concat(N40A, " 0, ").concat(N40A, " 1px, ").concat(N30A, " 1px, ").concat(hexToRGBA( // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
36
|
+
N900, 0), " 4px)"),
|
|
37
|
+
content: '""'
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
var leftStyles = css({
|
|
41
|
+
display: 'flex',
|
|
42
|
+
minWidth: 0,
|
|
43
|
+
height: 'inherit',
|
|
44
|
+
alignItems: 'center',
|
|
45
|
+
flexGrow: 1,
|
|
46
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
47
|
+
'& > *': {
|
|
48
|
+
flexShrink: 0
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
var rightStyles = css({
|
|
52
|
+
display: 'flex',
|
|
53
|
+
alignItems: 'center',
|
|
54
|
+
flexShrink: 0,
|
|
55
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
56
|
+
'& > *': {
|
|
57
|
+
marginRight: gridSize / 2,
|
|
58
|
+
flexShrink: 0
|
|
59
|
+
}
|
|
60
|
+
});
|
|
7
61
|
var analyticsData = {
|
|
8
62
|
attributes: {
|
|
9
63
|
navigationLayer: 'global'
|
|
@@ -33,11 +87,12 @@ export var AtlassianNavigation = function AtlassianNavigation(props) {
|
|
|
33
87
|
}, jsx(NavigationAnalyticsContext, {
|
|
34
88
|
data: analyticsData
|
|
35
89
|
}, jsx("header", {
|
|
36
|
-
|
|
90
|
+
style: theme.mode.navigation,
|
|
91
|
+
css: containerStyles,
|
|
37
92
|
"data-testid": testId && "".concat(testId, "-header"),
|
|
38
93
|
role: "banner"
|
|
39
94
|
}, jsx("nav", {
|
|
40
|
-
css:
|
|
95
|
+
css: leftStyles,
|
|
41
96
|
"aria-label": label
|
|
42
97
|
}, AppSwitcher && jsx(AppSwitcher, null), ProductHome && jsx(ProductHome, null), jsx(PrimaryItemsContainer, {
|
|
43
98
|
testId: testId,
|
|
@@ -46,7 +101,7 @@ export var AtlassianNavigation = function AtlassianNavigation(props) {
|
|
|
46
101
|
create: create,
|
|
47
102
|
theme: theme
|
|
48
103
|
})), jsx("div", {
|
|
49
|
-
css:
|
|
104
|
+
css: rightStyles,
|
|
50
105
|
"data-testid": testId && "".concat(testId, "-secondary-actions")
|
|
51
106
|
}, Search && jsx(Search, null), Notifications && jsx(Notifications, null), Help && jsx(Help, null), Settings && jsx(Settings, null), SignIn && jsx(SignIn, null), Profile && jsx(Profile, null)))));
|
|
52
107
|
};
|
|
@@ -1,13 +1,66 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { css, jsx } from '@emotion/core';
|
|
3
|
+
import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
|
|
4
|
+
import { gridSize, HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
5
|
+
import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
|
|
5
6
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
6
7
|
import { PrimaryItemsContainerSkeleton } from '../PrimaryItemsContainer/skeleton';
|
|
7
8
|
import { ProductHomeSkeleton } from '../ProductHome/skeleton';
|
|
8
9
|
import { ProfileSkeleton } from '../Profile/skeleton';
|
|
9
10
|
import { SearchSkeleton } from '../Search/skeleton';
|
|
10
|
-
|
|
11
|
+
var containerStyles = css({
|
|
12
|
+
display: 'flex',
|
|
13
|
+
boxSizing: 'border-box',
|
|
14
|
+
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
15
|
+
paddingRight: gridSize * 1.5,
|
|
16
|
+
paddingLeft: gridSize * 1.5,
|
|
17
|
+
position: 'relative',
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
justifyContent: 'space-between',
|
|
20
|
+
flexShrink: 0,
|
|
21
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
22
|
+
'[data-theme="light"] &, [data-theme="dark"] &': {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
24
|
+
borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
|
|
25
|
+
// TODO: (DSP-2087) Remove the below once tokens have launched
|
|
26
|
+
'&::after': {
|
|
27
|
+
content: 'none'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
// TODO: (DSP-2087) Remove the below once tokens have launched
|
|
31
|
+
'&::after': {
|
|
32
|
+
height: gridSize / 2,
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
top: '100%',
|
|
35
|
+
right: 0,
|
|
36
|
+
left: 0,
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
38
|
+
background: "linear-gradient(180deg, ".concat(N40A, " 0, ").concat(N40A, " 1px, ").concat(N30A, " 1px, ").concat(hexToRGBA( // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
39
|
+
N900, 0), " 4px)"),
|
|
40
|
+
content: '""'
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
var leftStyles = css({
|
|
44
|
+
display: 'flex',
|
|
45
|
+
minWidth: 0,
|
|
46
|
+
height: 'inherit',
|
|
47
|
+
alignItems: 'center',
|
|
48
|
+
flexGrow: 1,
|
|
49
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
50
|
+
'& > *': {
|
|
51
|
+
flexShrink: 0
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
var rightStyles = css({
|
|
55
|
+
display: 'flex',
|
|
56
|
+
alignItems: 'center',
|
|
57
|
+
flexShrink: 0,
|
|
58
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
59
|
+
'& > *': {
|
|
60
|
+
marginRight: gridSize / 2,
|
|
61
|
+
flexShrink: 0
|
|
62
|
+
}
|
|
63
|
+
});
|
|
11
64
|
export var NavigationSkeleton = function NavigationSkeleton(_ref) {
|
|
12
65
|
var _ref$primaryItemsCoun = _ref.primaryItemsCount,
|
|
13
66
|
primaryItemsCount = _ref$primaryItemsCoun === void 0 ? 4 : _ref$primaryItemsCoun,
|
|
@@ -18,31 +71,34 @@ export var NavigationSkeleton = function NavigationSkeleton(_ref) {
|
|
|
18
71
|
_ref$showSiteName = _ref.showSiteName,
|
|
19
72
|
showSiteName = _ref$showSiteName === void 0 ? false : _ref$showSiteName,
|
|
20
73
|
_ref$shouldShowSearch = _ref.shouldShowSearch,
|
|
21
|
-
shouldShowSearch = _ref$shouldShowSearch === void 0 ? true : _ref$shouldShowSearch
|
|
74
|
+
shouldShowSearch = _ref$shouldShowSearch === void 0 ? true : _ref$shouldShowSearch,
|
|
75
|
+
testId = _ref.testId;
|
|
22
76
|
return jsx(ThemeProvider, {
|
|
23
77
|
value: theme
|
|
24
78
|
}, jsx("div", {
|
|
25
|
-
|
|
79
|
+
style: theme.mode.navigation,
|
|
80
|
+
css: containerStyles,
|
|
81
|
+
"data-testid": testId
|
|
26
82
|
}, jsx("div", {
|
|
27
|
-
css:
|
|
83
|
+
css: leftStyles
|
|
28
84
|
}, jsx(IconButtonSkeleton, {
|
|
29
85
|
marginLeft: 0,
|
|
30
86
|
marginRight: 5,
|
|
31
|
-
size: gridSize
|
|
87
|
+
size: gridSize * 3.25
|
|
32
88
|
}), jsx(ProductHomeSkeleton, {
|
|
33
89
|
showSiteName: showSiteName
|
|
34
90
|
}), jsx(PrimaryItemsContainerSkeleton, {
|
|
35
91
|
count: primaryItemsCount
|
|
36
92
|
})), jsx("div", {
|
|
37
|
-
css:
|
|
93
|
+
css: rightStyles
|
|
38
94
|
}, shouldShowSearch && jsx(SearchSkeleton, null), Array.from({
|
|
39
95
|
length: secondaryItemsCount
|
|
40
96
|
}, function (_, index) {
|
|
41
97
|
return jsx(IconButtonSkeleton, {
|
|
42
98
|
key: index,
|
|
43
99
|
marginLeft: 0,
|
|
44
|
-
marginRight:
|
|
45
|
-
size: gridSize
|
|
100
|
+
marginRight: gridSize / 2,
|
|
101
|
+
size: gridSize * 3.25
|
|
46
102
|
});
|
|
47
103
|
}), jsx(ProfileSkeleton, null))));
|
|
48
104
|
};
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/core';
|
|
3
|
-
|
|
2
|
+
import { css, jsx } from '@emotion/core';
|
|
3
|
+
var badgeContainerStyles = css({
|
|
4
|
+
position: 'absolute',
|
|
5
|
+
top: '-4px',
|
|
6
|
+
right: '-2px',
|
|
7
|
+
pointerEvents: 'none'
|
|
8
|
+
});
|
|
9
|
+
var containerStyles = css({
|
|
10
|
+
position: 'relative'
|
|
11
|
+
});
|
|
4
12
|
export var BadgeContainer = function BadgeContainer(props) {
|
|
5
13
|
var badgeId = props.id,
|
|
6
14
|
Badge = props.badge,
|
|
7
15
|
children = props.children;
|
|
8
16
|
return jsx("div", {
|
|
9
|
-
css:
|
|
17
|
+
css: containerStyles
|
|
10
18
|
}, children, jsx("div", {
|
|
11
|
-
css:
|
|
19
|
+
css: badgeContainerStyles,
|
|
12
20
|
id: badgeId,
|
|
13
21
|
"aria-hidden": true
|
|
14
22
|
}, jsx(Badge, null)));
|
|
@@ -1,14 +1,31 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
|
|
1
3
|
/** @jsx jsx */
|
|
2
4
|
import { Fragment } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/core';
|
|
5
|
+
import { css, jsx } from '@emotion/core';
|
|
4
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
7
|
import AddIcon from '@atlaskit/icon/glyph/editor/add';
|
|
6
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
7
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
|
+
import { CREATE_BREAKPOINT, gridSize } from '../../common/constants';
|
|
8
10
|
import { useTheme } from '../../theme';
|
|
9
11
|
import { IconButton } from '../IconButton';
|
|
10
|
-
import {
|
|
11
|
-
var
|
|
12
|
+
import { getCreateButtonTheme } from './styles';
|
|
13
|
+
var wrapperStyles = css({
|
|
14
|
+
display: 'flex',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
17
|
+
'& [data-hide-on-smallscreens]': _defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
18
|
+
display: 'none !important'
|
|
19
|
+
}),
|
|
20
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
21
|
+
'& [data-hide-on-largescreens]': _defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
|
|
22
|
+
display: 'none !important'
|
|
23
|
+
}),
|
|
24
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
25
|
+
'&&': {
|
|
26
|
+
marginLeft: gridSize * 1.5
|
|
27
|
+
}
|
|
28
|
+
});
|
|
12
29
|
|
|
13
30
|
var TooltipSwitch = function TooltipSwitch(_ref) {
|
|
14
31
|
var buttonTooltip = _ref.buttonTooltip,
|
|
@@ -28,15 +45,7 @@ export var Create = function Create(_ref2) {
|
|
|
28
45
|
testId = _ref2.testId;
|
|
29
46
|
var theme = useTheme();
|
|
30
47
|
return jsx("div", {
|
|
31
|
-
css:
|
|
32
|
-
display: 'flex',
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
'&&': {
|
|
35
|
-
marginLeft: grid * 1.5
|
|
36
|
-
},
|
|
37
|
-
'& [data-hide-on-smallscreens]': createButtonCSS,
|
|
38
|
-
'& [data-hide-on-largescreens]': createIconCSS
|
|
39
|
-
},
|
|
48
|
+
css: wrapperStyles,
|
|
40
49
|
"data-testid": "create-button-wrapper"
|
|
41
50
|
}, jsx(TooltipSwitch, {
|
|
42
51
|
buttonTooltip: buttonTooltip
|
|
@@ -1,16 +1,29 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
|
|
1
3
|
/** @jsx jsx */
|
|
2
4
|
import { Fragment } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/core';
|
|
4
|
-
import { gridSize } from '
|
|
5
|
+
import { css, jsx } from '@emotion/core';
|
|
6
|
+
import { CREATE_BREAKPOINT, gridSize } from '../../common/constants';
|
|
5
7
|
import { useTheme } from '../../theme';
|
|
6
8
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
7
|
-
|
|
9
|
+
var buttonHeight = gridSize * 4;
|
|
10
|
+
var skeletonStyles = css({
|
|
11
|
+
width: 68,
|
|
12
|
+
height: buttonHeight,
|
|
13
|
+
marginLeft: 12,
|
|
14
|
+
borderRadius: 3,
|
|
15
|
+
opacity: 0.15
|
|
16
|
+
});
|
|
17
|
+
var mobileStyles = css(_defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
18
|
+
display: 'none !important'
|
|
19
|
+
}));
|
|
8
20
|
export var CreateSkeleton = function CreateSkeleton() {
|
|
9
21
|
var theme = useTheme();
|
|
10
22
|
return jsx(Fragment, null, jsx("div", {
|
|
11
|
-
|
|
23
|
+
style: theme.mode.skeleton,
|
|
24
|
+
css: [skeletonStyles, mobileStyles]
|
|
12
25
|
}), jsx(IconButtonSkeleton, {
|
|
13
|
-
css:
|
|
14
|
-
size: gridSize
|
|
26
|
+
css: mobileStyles,
|
|
27
|
+
size: gridSize * 3.25
|
|
15
28
|
}));
|
|
16
29
|
};
|
|
@@ -4,21 +4,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
4
4
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
|
-
import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
8
|
-
import { actionSectionDesktopCSS, actionSectionMobileCSS, skeletonCSS } from '../../common/styles';
|
|
9
|
-
var gridSize = gridSizeFn();
|
|
10
|
-
var buttonHeight = gridSize * 4;
|
|
11
|
-
export var createButtonCSS = actionSectionDesktopCSS;
|
|
12
|
-
export var createButtonSkeletonCSS = function createButtonSkeletonCSS(theme) {
|
|
13
|
-
return _objectSpread(_objectSpread({
|
|
14
|
-
height: "".concat(buttonHeight, "px"),
|
|
15
|
-
width: '68px',
|
|
16
|
-
borderRadius: '3px',
|
|
17
|
-
marginLeft: 12
|
|
18
|
-
}, createButtonCSS), skeletonCSS(theme));
|
|
19
|
-
};
|
|
20
|
-
export var createIconCSS = actionSectionMobileCSS;
|
|
21
|
-
export var createIconSkeletonCSS = createIconCSS;
|
|
22
7
|
export var getCreateButtonTheme = function getCreateButtonTheme(_ref) {
|
|
23
8
|
var create = _ref.mode.create;
|
|
24
9
|
return function (current, props) {
|
|
@@ -1,11 +1,35 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
|
|
1
7
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/core';
|
|
8
|
+
import { css, jsx } from '@emotion/core';
|
|
9
|
+
import { gridSize } from '../../common/constants';
|
|
3
10
|
import { useTheme } from '../../theme';
|
|
4
|
-
|
|
5
|
-
|
|
11
|
+
var buttonHeight = gridSize * 4;
|
|
12
|
+
var skeletonStyles = css({
|
|
13
|
+
borderRadius: '50%',
|
|
14
|
+
opacity: 0.15
|
|
15
|
+
});
|
|
16
|
+
export var IconButtonSkeleton = function IconButtonSkeleton(_ref) {
|
|
17
|
+
var className = _ref.className,
|
|
18
|
+
marginLeft = _ref.marginLeft,
|
|
19
|
+
marginRight = _ref.marginRight,
|
|
20
|
+
size = _ref.size;
|
|
6
21
|
var theme = useTheme();
|
|
22
|
+
|
|
23
|
+
var dynamicStyles = _objectSpread({
|
|
24
|
+
marginLeft: typeof marginLeft === 'number' ? marginLeft : gridSize / 2,
|
|
25
|
+
marginRight: typeof marginRight === 'number' ? marginRight : 0,
|
|
26
|
+
width: typeof size === 'number' ? size : buttonHeight,
|
|
27
|
+
height: typeof size === 'number' ? size : buttonHeight
|
|
28
|
+
}, theme.mode.skeleton);
|
|
29
|
+
|
|
7
30
|
return jsx("div", {
|
|
8
|
-
className:
|
|
9
|
-
|
|
31
|
+
className: className,
|
|
32
|
+
style: dynamicStyles,
|
|
33
|
+
css: skeletonStyles
|
|
10
34
|
});
|
|
11
35
|
};
|
|
@@ -4,15 +4,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
4
4
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
|
-
import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
8
|
-
import { skeletonCSS } from '../../common/styles';
|
|
9
|
-
var gridSize = gridSizeFn();
|
|
10
|
-
export var margin = {
|
|
11
|
-
left: gridSize / 2
|
|
12
|
-
};
|
|
13
|
-
export var padding = {
|
|
14
|
-
all: gridSize / 2
|
|
15
|
-
};
|
|
16
7
|
export var getIconButtonTheme = function getIconButtonTheme(_ref) {
|
|
17
8
|
var iconButton = _ref.mode.iconButton;
|
|
18
9
|
return function (current, props) {
|
|
@@ -45,17 +36,4 @@ export var getIconButtonTheme = function getIconButtonTheme(_ref) {
|
|
|
45
36
|
spinnerStyles: spinnerStyles
|
|
46
37
|
};
|
|
47
38
|
};
|
|
48
|
-
};
|
|
49
|
-
var buttonHeight = gridSize * 4;
|
|
50
|
-
export var iconButtonSkeletonCSS = function iconButtonSkeletonCSS(theme, _ref2) {
|
|
51
|
-
var marginLeft = _ref2.marginLeft,
|
|
52
|
-
marginRight = _ref2.marginRight,
|
|
53
|
-
size = _ref2.size;
|
|
54
|
-
return _objectSpread({
|
|
55
|
-
borderRadius: '50%',
|
|
56
|
-
marginLeft: typeof marginLeft === 'number' ? marginLeft : margin.left,
|
|
57
|
-
marginRight: typeof marginRight === 'number' ? marginRight : 0,
|
|
58
|
-
width: typeof size === 'number' ? size : buttonHeight,
|
|
59
|
-
height: typeof size === 'number' ? size : buttonHeight
|
|
60
|
-
}, skeletonCSS(theme));
|
|
61
39
|
};
|
|
@@ -1,15 +1,46 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
4
|
var _excluded = ["children", "testId", "tooltip", "isSelected", "isHighlighted"];
|
|
4
5
|
|
|
5
6
|
/** @jsx jsx */
|
|
6
7
|
import { forwardRef } from 'react';
|
|
7
|
-
import { jsx } from '@emotion/core';
|
|
8
|
+
import { css, jsx } from '@emotion/core';
|
|
8
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
9
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
|
+
import { gridSize } from '../../common/constants';
|
|
10
12
|
import { useTheme } from '../../theme';
|
|
11
|
-
import { getPrimaryButtonTheme
|
|
13
|
+
import { getPrimaryButtonTheme } from './styles';
|
|
14
|
+
var VAR_BUTTON_SELECTED_COLOR = '--button-selected-color';
|
|
15
|
+
var VAR_BUTTON_SELECTED_BORDER_COLOR = '--button-selected-border-color';
|
|
16
|
+
var buttonBaseStyles = css({
|
|
17
|
+
display: 'flex',
|
|
18
|
+
height: '100%',
|
|
19
|
+
position: 'relative',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
justifyContent: 'center',
|
|
22
|
+
flexDirection: 'column'
|
|
23
|
+
});
|
|
24
|
+
var buttonHighlightedStyles = css({
|
|
25
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
26
|
+
'&& > *': {
|
|
27
|
+
color: "var(".concat(VAR_BUTTON_SELECTED_COLOR, ")")
|
|
28
|
+
},
|
|
29
|
+
'&:after': {
|
|
30
|
+
height: 3,
|
|
31
|
+
position: 'absolute',
|
|
32
|
+
right: gridSize / 2,
|
|
33
|
+
bottom: 0,
|
|
34
|
+
left: gridSize / 2,
|
|
35
|
+
backgroundColor: "var(".concat(VAR_BUTTON_SELECTED_BORDER_COLOR, ")"),
|
|
36
|
+
borderTopLeftRadius: 1,
|
|
37
|
+
borderTopRightRadius: 1,
|
|
38
|
+
content: '""'
|
|
39
|
+
}
|
|
40
|
+
});
|
|
12
41
|
export var PrimaryButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
42
|
+
var _ref;
|
|
43
|
+
|
|
13
44
|
var children = props.children,
|
|
14
45
|
testId = props.testId,
|
|
15
46
|
tooltip = props.tooltip,
|
|
@@ -19,7 +50,8 @@ export var PrimaryButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
19
50
|
|
|
20
51
|
var theme = useTheme();
|
|
21
52
|
var button = jsx("div", {
|
|
22
|
-
|
|
53
|
+
style: (_ref = {}, _defineProperty(_ref, VAR_BUTTON_SELECTED_COLOR, theme.mode.primaryButton.selected.color), _defineProperty(_ref, VAR_BUTTON_SELECTED_BORDER_COLOR, theme.mode.primaryButton.selected.borderColor), _ref),
|
|
54
|
+
css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles]
|
|
23
55
|
}, jsx(Button, _extends({
|
|
24
56
|
appearance: "primary",
|
|
25
57
|
testId: testId,
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { jsx } from '@emotion/core';
|
|
4
|
+
import { css, jsx } from '@emotion/core';
|
|
5
|
+
import { buttonHeight, gridSize } from '../../common/constants';
|
|
5
6
|
import { useTheme } from '../../theme';
|
|
6
|
-
|
|
7
|
+
var paddingAll = gridSize / 2;
|
|
8
|
+
var skeletonStyles = css({
|
|
9
|
+
display: 'inline-flex',
|
|
10
|
+
width: '68px',
|
|
11
|
+
height: "".concat(buttonHeight - paddingAll * 2.5, "px"),
|
|
12
|
+
borderRadius: "".concat(gridSize / 2, "px"),
|
|
13
|
+
opacity: 0.15
|
|
14
|
+
});
|
|
7
15
|
export var PrimaryButtonSkeleton = function PrimaryButtonSkeleton(props) {
|
|
8
16
|
var theme = useTheme();
|
|
9
|
-
return jsx("div", _extends({
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
return jsx("div", _extends({
|
|
18
|
+
style: theme.mode.skeleton,
|
|
19
|
+
css: skeletonStyles
|
|
20
|
+
}, props));
|
|
12
21
|
};
|
|
@@ -4,16 +4,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
4
4
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
|
-
import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
|
|
8
|
-
import { skeletonCSS } from '../../common/styles';
|
|
9
|
-
var gridSize = gridSizeFn();
|
|
10
|
-
export var buttonHeight = gridSize * 4;
|
|
11
|
-
export var margin = {
|
|
12
|
-
left: gridSize / 2
|
|
13
|
-
};
|
|
14
|
-
export var padding = {
|
|
15
|
-
all: gridSize / 2
|
|
16
|
-
};
|
|
17
7
|
export var getPrimaryButtonTheme = function getPrimaryButtonTheme(_ref) {
|
|
18
8
|
var primaryButton = _ref.mode.primaryButton;
|
|
19
9
|
return function (current, props) {
|
|
@@ -39,38 +29,4 @@ export var getPrimaryButtonTheme = function getPrimaryButtonTheme(_ref) {
|
|
|
39
29
|
spinnerStyles: spinnerStyles
|
|
40
30
|
};
|
|
41
31
|
};
|
|
42
|
-
};
|
|
43
|
-
export var primaryButtonSkeletonCSS = function primaryButtonSkeletonCSS(theme) {
|
|
44
|
-
return _objectSpread({
|
|
45
|
-
borderRadius: "".concat(gridSize / 2, "px"),
|
|
46
|
-
display: 'inline-flex',
|
|
47
|
-
height: "".concat(buttonHeight - padding.all * 2.5, "px"),
|
|
48
|
-
width: '68px'
|
|
49
|
-
}, skeletonCSS(theme));
|
|
50
|
-
};
|
|
51
|
-
export var isHighlightedCSS = function isHighlightedCSS(_ref2, isHighlighted) {
|
|
52
|
-
var primaryButton = _ref2.mode.primaryButton;
|
|
53
|
-
return _objectSpread({
|
|
54
|
-
display: 'flex',
|
|
55
|
-
flexDirection: 'column',
|
|
56
|
-
justifyContent: 'center',
|
|
57
|
-
alignItems: 'center',
|
|
58
|
-
height: '100%',
|
|
59
|
-
position: 'relative'
|
|
60
|
-
}, isHighlighted && {
|
|
61
|
-
'&& > *': {
|
|
62
|
-
color: primaryButton.selected.color
|
|
63
|
-
},
|
|
64
|
-
'&:after': {
|
|
65
|
-
position: 'absolute',
|
|
66
|
-
bottom: 0,
|
|
67
|
-
left: gridSize / 2,
|
|
68
|
-
right: gridSize / 2,
|
|
69
|
-
content: '""',
|
|
70
|
-
height: 3,
|
|
71
|
-
backgroundColor: primaryButton.selected.borderColor,
|
|
72
|
-
borderTopLeftRadius: 1,
|
|
73
|
-
borderTopRightRadius: 1
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
32
|
};
|
|
@@ -2,14 +2,18 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { jsx } from '@emotion/core';
|
|
5
|
+
import { css, jsx } from '@emotion/core';
|
|
6
6
|
import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
7
7
|
import { PrimaryButton } from '../PrimaryButton';
|
|
8
|
-
|
|
8
|
+
var chevronIconStyles = css({
|
|
9
|
+
marginRight: '-8px',
|
|
10
|
+
marginLeft: '-8px',
|
|
11
|
+
opacity: 0.51
|
|
12
|
+
});
|
|
9
13
|
export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10
14
|
return jsx(PrimaryButton, _extends({
|
|
11
15
|
iconAfter: jsx("span", {
|
|
12
|
-
css:
|
|
16
|
+
css: chevronIconStyles
|
|
13
17
|
}, jsx(ChevronIcon, {
|
|
14
18
|
label: ""
|
|
15
19
|
})),
|
|
@@ -3,12 +3,33 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { useCallback, useState } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/core';
|
|
6
|
+
import { css, jsx } from '@emotion/core';
|
|
7
7
|
import Popup from '@atlaskit/popup';
|
|
8
8
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
9
|
+
import { gridSize } from '../../common/constants';
|
|
9
10
|
import { OverflowProvider, useOverflowController } from '../../controllers/overflow';
|
|
10
11
|
import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
|
|
11
|
-
|
|
12
|
+
var containerStyles = css({
|
|
13
|
+
display: 'flex',
|
|
14
|
+
height: '100%',
|
|
15
|
+
position: 'relative',
|
|
16
|
+
alignItems: 'stretch',
|
|
17
|
+
flexBasis: 0,
|
|
18
|
+
flexGrow: 1,
|
|
19
|
+
flexShrink: 0,
|
|
20
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
21
|
+
'& > *': {
|
|
22
|
+
margin: "0 ".concat(gridSize / 2, "px"),
|
|
23
|
+
flexShrink: 0
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
var widthObserverContainerStyles = css({
|
|
27
|
+
width: '100%',
|
|
28
|
+
minWidth: '1px',
|
|
29
|
+
margin: '0px',
|
|
30
|
+
position: 'relative',
|
|
31
|
+
flexShrink: 1
|
|
32
|
+
});
|
|
12
33
|
export var PrimaryItemsContainer = function PrimaryItemsContainer(_ref) {
|
|
13
34
|
var moreLabel = _ref.moreLabel,
|
|
14
35
|
items = _ref.items,
|
|
@@ -53,7 +74,7 @@ export var PrimaryItemsContainer = function PrimaryItemsContainer(_ref) {
|
|
|
53
74
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
54
75
|
[overflowItems.length, openOverflowMenu, onMoreClose]);
|
|
55
76
|
return jsx("div", {
|
|
56
|
-
css:
|
|
77
|
+
css: containerStyles,
|
|
57
78
|
"data-testid": testId && "".concat(testId, "-primary-actions")
|
|
58
79
|
}, jsx(OverflowProvider, {
|
|
59
80
|
isVisible: true,
|
|
@@ -67,7 +88,7 @@ export var PrimaryItemsContainer = function PrimaryItemsContainer(_ref) {
|
|
|
67
88
|
trigger: trigger,
|
|
68
89
|
testId: testId ? "".concat(testId, "-overflow-menu-popup") : 'overflow-menu-popup'
|
|
69
90
|
}), Create && jsx(Create, null), jsx("div", {
|
|
70
|
-
|
|
91
|
+
css: widthObserverContainerStyles
|
|
71
92
|
}, jsx(WidthObserver, {
|
|
72
93
|
offscreen: true,
|
|
73
94
|
setWidth: updateWidth
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/core';
|
|
3
|
+
import { css, jsx } from '@emotion/core';
|
|
4
|
+
import { gridSize } from '../../common/constants';
|
|
4
5
|
import { PrimaryButtonSkeleton } from '../PrimaryButton/skeleton';
|
|
5
|
-
|
|
6
|
+
var primaryButtonSkeletonStyles = css({
|
|
7
|
+
marginRight: gridSize * 1.5,
|
|
8
|
+
marginLeft: gridSize * 1.5
|
|
9
|
+
});
|
|
6
10
|
export var PrimaryItemsContainerSkeleton = function PrimaryItemsContainerSkeleton(_ref) {
|
|
7
11
|
var count = _ref.count;
|
|
8
12
|
return jsx(Fragment, null, Array.from({
|
|
@@ -10,7 +14,7 @@ export var PrimaryItemsContainerSkeleton = function PrimaryItemsContainerSkeleto
|
|
|
10
14
|
}, function (_, index) {
|
|
11
15
|
return jsx(PrimaryButtonSkeleton, {
|
|
12
16
|
key: index,
|
|
13
|
-
css:
|
|
17
|
+
css: primaryButtonSkeletonStyles
|
|
14
18
|
});
|
|
15
19
|
}));
|
|
16
20
|
};
|