@atlaskit/atlassian-navigation 3.6.2 → 4.0.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 +720 -714
- package/afm-jira/tsconfig.json +58 -0
- package/dist/cjs/components/AtlassianNavigation/index.js +1 -0
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +6 -5
- package/dist/cjs/components/Create/skeleton.js +1 -0
- package/dist/cjs/components/IconButton/skeleton.js +4 -1
- package/dist/cjs/components/PrimaryButton/index.js +1 -0
- package/dist/cjs/components/PrimaryButton/skeleton.js +4 -1
- package/dist/cjs/components/ProductHome/custom-product-home.js +9 -6
- package/dist/cjs/components/ProductHome/product-home.js +12 -18
- package/dist/cjs/components/ProductHome/skeleton.js +8 -4
- package/dist/cjs/components/Search/index.js +1 -0
- package/dist/cjs/components/Search/skeleton.js +1 -0
- package/dist/cjs/components/SkeletonCreateButton/index.js +2 -1
- package/dist/cjs/components/SkeletonIconButton/index.js +1 -0
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +3 -1
- package/dist/cjs/theme/default-theme.js +1 -7
- package/dist/es2019/components/AtlassianNavigation/index.js +1 -0
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +6 -5
- package/dist/es2019/components/Create/skeleton.js +1 -0
- package/dist/es2019/components/IconButton/skeleton.js +4 -1
- package/dist/es2019/components/PrimaryButton/index.js +1 -0
- package/dist/es2019/components/PrimaryButton/skeleton.js +4 -1
- package/dist/es2019/components/ProductHome/custom-product-home.js +9 -6
- package/dist/es2019/components/ProductHome/product-home.js +10 -14
- package/dist/es2019/components/ProductHome/skeleton.js +8 -4
- package/dist/es2019/components/Search/index.js +1 -0
- package/dist/es2019/components/Search/skeleton.js +1 -0
- package/dist/es2019/components/SkeletonCreateButton/index.js +2 -1
- package/dist/es2019/components/SkeletonIconButton/index.js +1 -0
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +3 -1
- package/dist/es2019/theme/default-theme.js +1 -7
- package/dist/esm/components/AtlassianNavigation/index.js +1 -0
- package/dist/esm/components/AtlassianNavigation/skeleton.js +6 -5
- package/dist/esm/components/Create/skeleton.js +1 -0
- package/dist/esm/components/IconButton/skeleton.js +4 -1
- package/dist/esm/components/PrimaryButton/index.js +1 -0
- package/dist/esm/components/PrimaryButton/skeleton.js +4 -1
- package/dist/esm/components/ProductHome/custom-product-home.js +9 -6
- package/dist/esm/components/ProductHome/product-home.js +12 -18
- package/dist/esm/components/ProductHome/skeleton.js +8 -4
- package/dist/esm/components/Search/index.js +1 -0
- package/dist/esm/components/Search/skeleton.js +1 -0
- package/dist/esm/components/SkeletonCreateButton/index.js +2 -1
- package/dist/esm/components/SkeletonIconButton/index.js +1 -0
- package/dist/esm/components/SkeletonPrimaryButton/index.js +3 -1
- package/dist/esm/theme/default-theme.js +1 -7
- package/dist/types/components/AppSwitcher/index.d.ts +1 -1
- package/dist/types/components/AppSwitcher/types.d.ts +1 -1
- package/dist/types/components/AtlassianNavigation/index.d.ts +1 -1
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +1 -1
- package/dist/types/components/AtlassianNavigation/types.d.ts +2 -2
- package/dist/types/components/BadgeContainer/index.d.ts +1 -1
- package/dist/types/components/BadgeContainer/types.d.ts +1 -1
- package/dist/types/components/Create/index.d.ts +1 -1
- package/dist/types/components/Create/styles.d.ts +2 -2
- package/dist/types/components/Create/types.d.ts +1 -1
- package/dist/types/components/Help/types.d.ts +2 -2
- package/dist/types/components/IconButton/skeleton.d.ts +1 -1
- package/dist/types/components/IconButton/styles.d.ts +2 -2
- package/dist/types/components/IconButton/types.d.ts +2 -5
- package/dist/types/components/Notifications/types.d.ts +2 -2
- package/dist/types/components/PrimaryButton/skeleton.d.ts +1 -1
- package/dist/types/components/PrimaryButton/styles.d.ts +2 -2
- package/dist/types/components/PrimaryButton/types.d.ts +4 -5
- package/dist/types/components/PrimaryDropdownButton/types.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainer/index.d.ts +2 -2
- package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainer/types.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainerV2/index.d.ts +2 -2
- package/dist/types/components/ProductHome/custom-product-home.d.ts +1 -1
- package/dist/types/components/ProductHome/product-home.d.ts +1 -1
- package/dist/types/components/ProductHome/types.d.ts +2 -2
- package/dist/types/components/Profile/index.d.ts +1 -1
- package/dist/types/components/Profile/types.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +1 -1
- package/dist/types/components/Search/types.d.ts +1 -1
- package/dist/types/components/Settings/types.d.ts +1 -1
- package/dist/types/components/SignIn/index.d.ts +1 -1
- package/dist/types/components/SignIn/types.d.ts +1 -1
- package/dist/types/components/SkeletonCreateButton/index.d.ts +1 -1
- package/dist/types/components/SkeletonIconButton/index.d.ts +1 -1
- package/dist/types/components/SkeletonIconButton/types.d.ts +1 -1
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +1 -1
- package/dist/types/components/SkeletonPrimaryButton/types.d.ts +1 -1
- package/dist/types/controllers/overflow/index.d.ts +2 -2
- package/dist/types/controllers/overflow/types.d.ts +1 -1
- package/dist/types/theme/default-theme.d.ts +1 -1
- package/dist/types/theme/theme-generator.d.ts +1 -1
- package/dist/types/theme/themes.d.ts +1 -1
- package/dist/types/theme/types.d.ts +1 -3
- package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +1 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +1 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +2 -2
- package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +1 -1
- package/dist/types-ts4.5/components/BadgeContainer/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Create/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Create/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/Create/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Help/types.d.ts +2 -2
- package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +1 -1
- package/dist/types-ts4.5/components/IconButton/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/IconButton/types.d.ts +2 -5
- package/dist/types-ts4.5/components/Notifications/types.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryButton/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryButton/types.d.ts +4 -5
- package/dist/types-ts4.5/components/PrimaryDropdownButton/types.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainer/index.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainer/types.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainerV2/index.d.ts +2 -2
- package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +1 -1
- package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +1 -1
- package/dist/types-ts4.5/components/ProductHome/types.d.ts +2 -2
- package/dist/types-ts4.5/components/Profile/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Profile/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Search/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Search/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Settings/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SignIn/index.d.ts +1 -1
- package/dist/types-ts4.5/components/SignIn/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +1 -1
- package/dist/types-ts4.5/controllers/overflow/index.d.ts +2 -2
- package/dist/types-ts4.5/controllers/overflow/types.d.ts +1 -1
- package/dist/types-ts4.5/theme/default-theme.d.ts +1 -1
- package/dist/types-ts4.5/theme/theme-generator.d.ts +1 -1
- package/dist/types-ts4.5/theme/themes.d.ts +1 -1
- package/dist/types-ts4.5/theme/types.d.ts +1 -3
- package/package.json +9 -14
|
@@ -89,6 +89,7 @@ const SearchComponent = props => {
|
|
|
89
89
|
}, jsx(SearchIcon, {
|
|
90
90
|
label: ""
|
|
91
91
|
})), jsx("input", {
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
92
93
|
style: searchInputDynamicStyles,
|
|
93
94
|
css: [searchInputStyles, newSearchBorderStyles],
|
|
94
95
|
"aria-label": label,
|
|
@@ -35,6 +35,7 @@ export const SearchSkeleton = () => {
|
|
|
35
35
|
return jsx(Fragment, null, jsx("div", {
|
|
36
36
|
css: searchInputContainerStyles
|
|
37
37
|
}, jsx("div", {
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
38
39
|
style: theme.mode.skeleton,
|
|
39
40
|
css: searchInputSkeletonStyles
|
|
40
41
|
})), jsx(IconButtonSkeleton, {
|
|
@@ -17,7 +17,7 @@ const skeletonCreateButtonStyles = css({
|
|
|
17
17
|
},
|
|
18
18
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
19
19
|
'&&': {
|
|
20
|
-
|
|
20
|
+
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -37,6 +37,7 @@ export const SkeletonCreateButton = ({
|
|
|
37
37
|
}) => {
|
|
38
38
|
const theme = useTheme();
|
|
39
39
|
return jsx("button", {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
40
41
|
style: theme.mode.create.default,
|
|
41
42
|
css: skeletonCreateButtonStyles,
|
|
42
43
|
"data-testid": testId,
|
|
@@ -45,6 +45,7 @@ export const SkeletonIconButton = ({
|
|
|
45
45
|
}) => {
|
|
46
46
|
const theme = useTheme();
|
|
47
47
|
return jsx("button", {
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
48
49
|
style: theme.mode.iconButton.default,
|
|
49
50
|
"data-testid": testId,
|
|
50
51
|
css: skeletonIconButtonStyles,
|
|
@@ -93,7 +93,9 @@ export const SkeletonPrimaryButton = ({
|
|
|
93
93
|
[VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR]: isHighlighted ? primaryButton.default.borderColor : primaryButton.default.color
|
|
94
94
|
};
|
|
95
95
|
return jsx("button", {
|
|
96
|
-
type: "button"
|
|
96
|
+
type: "button"
|
|
97
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
98
|
+
,
|
|
97
99
|
style: dynamicStyles,
|
|
98
100
|
css: [primaryButtonSkeletonStyles, isHighlighted && isHighlightedStyles, isDropdownButton && isDropdownButtonStyles, isHighlighted && (isDropdownButton ? isHighlightedAndDropdownButtonStyles : isHighlightedNotDropdownButtonStyles)],
|
|
99
101
|
"data-testid": testId
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { B200, B400, B50, N0, N100, N20, N200, N600, N700 } from '@atlaskit/theme/colors';
|
|
3
2
|
import { hexToRGBA } from './theme-helpers';
|
|
4
3
|
const defaultTheme = {
|
|
@@ -70,13 +69,8 @@ const defaultTheme = {
|
|
|
70
69
|
backgroundColor: `var(--ds-text-brand, ${B400})`,
|
|
71
70
|
color: `var(--ds-text, ${N700})`,
|
|
72
71
|
borderRight: `1px solid ${`var(--ds-border, ${hexToRGBA(N200, 0.3)})`}`,
|
|
73
|
-
// TODO: (DSP-1256) These colors should be moved into the Logo package
|
|
74
72
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
75
|
-
|
|
76
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
77
|
-
iconGradientStop: B200,
|
|
78
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
79
|
-
iconColor: getBooleanFF('platform.design-system-team.brand-refresh-update-product-logos_q7coo') ? '#357DE8' : B200
|
|
73
|
+
iconColor: '#357DE8' // TODO: replace with token after brand refresh
|
|
80
74
|
},
|
|
81
75
|
primaryButton: {
|
|
82
76
|
active: {
|
|
@@ -81,6 +81,7 @@ export var AtlassianNavigation = function AtlassianNavigation(props) {
|
|
|
81
81
|
}, jsx(NavigationAnalyticsContext, {
|
|
82
82
|
data: analyticsData
|
|
83
83
|
}, jsx("header", {
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
84
85
|
style: theme.mode.navigation,
|
|
85
86
|
css: containerStyles,
|
|
86
87
|
"data-testid": testId && "".concat(testId, "-header"),
|
|
@@ -12,13 +12,13 @@ var containerStyles = css({
|
|
|
12
12
|
display: 'flex',
|
|
13
13
|
boxSizing: 'border-box',
|
|
14
14
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
15
|
-
paddingRight: "var(--ds-space-150, 12px)",
|
|
16
|
-
paddingLeft: "var(--ds-space-150, 12px)",
|
|
17
15
|
position: 'relative',
|
|
18
16
|
alignItems: 'center',
|
|
19
17
|
justifyContent: 'space-between',
|
|
20
18
|
flexShrink: 0,
|
|
21
|
-
|
|
19
|
+
borderBlockEnd: "1px solid ".concat("var(--ds-border, ".concat(N30, ")")),
|
|
20
|
+
paddingInlineEnd: "var(--ds-space-150, 12px)",
|
|
21
|
+
paddingInlineStart: "var(--ds-space-150, 12px)"
|
|
22
22
|
});
|
|
23
23
|
var leftStyles = css({
|
|
24
24
|
display: 'flex',
|
|
@@ -37,8 +37,8 @@ var rightStyles = css({
|
|
|
37
37
|
flexShrink: 0,
|
|
38
38
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
39
39
|
'& > *': {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
flexShrink: 0,
|
|
41
|
+
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -70,6 +70,7 @@ export var NavigationSkeleton = function NavigationSkeleton(_ref) {
|
|
|
70
70
|
return jsx(ThemeProvider, {
|
|
71
71
|
value: theme
|
|
72
72
|
}, jsx("div", {
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
73
74
|
style: theme.mode.navigation,
|
|
74
75
|
css: containerStyles,
|
|
75
76
|
"data-testid": testId
|
|
@@ -22,6 +22,7 @@ var mobileStyles = css(_defineProperty({}, "@media (max-width: ".concat(CREATE_B
|
|
|
22
22
|
export var CreateSkeleton = function CreateSkeleton() {
|
|
23
23
|
var theme = useTheme();
|
|
24
24
|
return jsx(Fragment, null, jsx("div", {
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
25
26
|
style: theme.mode.skeleton,
|
|
26
27
|
css: [skeletonStyles, mobileStyles]
|
|
27
28
|
}), jsx(IconButtonSkeleton, {
|
|
@@ -25,7 +25,10 @@ export var IconButtonSkeleton = function IconButtonSkeleton(_ref) {
|
|
|
25
25
|
height: typeof size === 'number' ? size : buttonHeight
|
|
26
26
|
}, theme.mode.skeleton);
|
|
27
27
|
return jsx("div", {
|
|
28
|
-
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
29
|
+
className: className
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
31
|
+
,
|
|
29
32
|
style: dynamicStyles,
|
|
30
33
|
css: skeletonStyles
|
|
31
34
|
});
|
|
@@ -56,6 +56,7 @@ export var PrimaryButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
56
56
|
buttonProps = _objectWithoutProperties(props, _excluded);
|
|
57
57
|
var theme = useTheme();
|
|
58
58
|
var button = jsx("div", {
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
59
60
|
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),
|
|
60
61
|
css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles],
|
|
61
62
|
role: "listitem"
|
|
@@ -17,8 +17,11 @@ var skeletonStyles = css({
|
|
|
17
17
|
export var PrimaryButtonSkeleton = function PrimaryButtonSkeleton(props) {
|
|
18
18
|
var theme = useTheme();
|
|
19
19
|
return jsx("div", {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
20
21
|
style: theme.mode.skeleton,
|
|
21
|
-
css: skeletonStyles
|
|
22
|
+
css: skeletonStyles
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
24
|
+
,
|
|
22
25
|
className: props.className
|
|
23
26
|
});
|
|
24
27
|
};
|
|
@@ -50,7 +50,7 @@ var productHomeButtonStyles = css((_css3 = {
|
|
|
50
50
|
border: 0
|
|
51
51
|
},
|
|
52
52
|
'&:first-of-type': {
|
|
53
|
-
|
|
53
|
+
marginInlineStart: 0
|
|
54
54
|
},
|
|
55
55
|
'&:hover': {
|
|
56
56
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, ")"),
|
|
@@ -78,10 +78,10 @@ var productHomeButtonStyles = css((_css3 = {
|
|
|
78
78
|
}), _css3));
|
|
79
79
|
var siteTitleStyles = css({
|
|
80
80
|
display: 'flex',
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
alignItems: 'center',
|
|
82
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
83
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
84
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
85
85
|
});
|
|
86
86
|
var hideSiteTitleStyles = css(_defineProperty({}, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
87
87
|
display: 'none'
|
|
@@ -118,7 +118,9 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
118
118
|
};
|
|
119
119
|
var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _productHomeButtonDyn);
|
|
120
120
|
return jsx(Fragment, null, jsx(Tag, _extends({
|
|
121
|
-
href: href
|
|
121
|
+
href: href
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
123
|
+
,
|
|
122
124
|
style: productHomeButtonDynamicStyles,
|
|
123
125
|
css: productHomeButtonStyles,
|
|
124
126
|
onClick: onClick,
|
|
@@ -142,6 +144,7 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
142
144
|
alt: iconAlt,
|
|
143
145
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
144
146
|
})), siteTitle && jsx("div", {
|
|
147
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
145
148
|
style: {
|
|
146
149
|
borderRight: theme.mode.productHome.borderRight
|
|
147
150
|
},
|
|
@@ -33,7 +33,7 @@ var productHomeButtonStyles = css((_css = {
|
|
|
33
33
|
border: 0
|
|
34
34
|
},
|
|
35
35
|
'&:first-of-type': {
|
|
36
|
-
|
|
36
|
+
marginInlineStart: 0
|
|
37
37
|
},
|
|
38
38
|
'&:hover': {
|
|
39
39
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, ")"),
|
|
@@ -91,11 +91,10 @@ var productIconStyles = css(_defineProperty({
|
|
|
91
91
|
}));
|
|
92
92
|
var siteTitleStyles = css({
|
|
93
93
|
display: 'flex',
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
alignItems: 'center'
|
|
94
|
+
alignItems: 'center',
|
|
95
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
96
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
97
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
99
98
|
});
|
|
100
99
|
|
|
101
100
|
// When cleaning up feature flag, these styles can be moved into the above block
|
|
@@ -103,7 +102,7 @@ var featureFlaggedSiteTitleStyles = css(_defineProperty({
|
|
|
103
102
|
// Under the FF, we've made the site title handle it's spacing, with the
|
|
104
103
|
// PrimaryItemsContainer not needing to worry about its paddingInlineStart.
|
|
105
104
|
// This makes it cleaner for the title styles to appear and disappear with mq's
|
|
106
|
-
|
|
105
|
+
marginInlineEnd: "var(--ds-space-100, 8px)"
|
|
107
106
|
}, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
108
107
|
display: 'none'
|
|
109
108
|
}));
|
|
@@ -136,19 +135,17 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
136
135
|
var _theme$mode$productHo = theme.mode.productHome,
|
|
137
136
|
_theme$mode$productHo2 = _theme$mode$productHo.iconColor,
|
|
138
137
|
iconColor = _theme$mode$productHo2 === void 0 ? 'inherit' : _theme$mode$productHo2,
|
|
139
|
-
_theme$mode$productHo3 = _theme$mode$productHo.
|
|
140
|
-
|
|
141
|
-
_theme$mode$productHo4 = _theme$mode$productHo.iconGradientStop,
|
|
142
|
-
iconGradientStop = _theme$mode$productHo4 === void 0 ? 'inherit' : _theme$mode$productHo4,
|
|
143
|
-
_theme$mode$productHo5 = _theme$mode$productHo.textColor,
|
|
144
|
-
textColor = _theme$mode$productHo5 === void 0 ? theme.mode.productHome.color : _theme$mode$productHo5;
|
|
138
|
+
_theme$mode$productHo3 = _theme$mode$productHo.textColor,
|
|
139
|
+
textColor = _theme$mode$productHo3 === void 0 ? theme.mode.productHome.color : _theme$mode$productHo3;
|
|
145
140
|
var Tag = getTag(onClick, href);
|
|
146
141
|
var preventFocusRing = function preventFocusRing(e) {
|
|
147
142
|
e.preventDefault();
|
|
148
143
|
onMouseDown && onMouseDown(e);
|
|
149
144
|
};
|
|
150
145
|
var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_LOGO_MAX_WIDTH, "".concat(logoMaxWidth, "px")), _productHomeButtonDyn);
|
|
151
|
-
return jsx(Fragment, null, jsx(Tag
|
|
146
|
+
return jsx(Fragment, null, jsx(Tag
|
|
147
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
148
|
+
, _extends({
|
|
152
149
|
style: productHomeButtonDynamicStyles,
|
|
153
150
|
css: productHomeButtonStyles,
|
|
154
151
|
href: href,
|
|
@@ -160,18 +157,15 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
160
157
|
css: [customMaxHeightStyles, productLogoStyles],
|
|
161
158
|
"data-testid": testId && "".concat(testId, "-logo")
|
|
162
159
|
}, jsx(Logo, {
|
|
163
|
-
iconGradientStart: iconGradientStart,
|
|
164
|
-
iconGradientStop: iconGradientStop,
|
|
165
160
|
iconColor: iconColor,
|
|
166
161
|
textColor: textColor
|
|
167
162
|
})), jsx("div", {
|
|
168
163
|
css: [customMaxHeightStyles, productIconStyles],
|
|
169
164
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
170
165
|
}, jsx(Icon, {
|
|
171
|
-
iconGradientStart: iconGradientStart,
|
|
172
|
-
iconGradientStop: iconGradientStop,
|
|
173
166
|
iconColor: iconColor
|
|
174
167
|
}))), siteTitle && jsx("div", {
|
|
168
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
175
169
|
style: {
|
|
176
170
|
borderRight: theme.mode.productHome.borderRight
|
|
177
171
|
},
|
|
@@ -29,7 +29,7 @@ var productHomeButtonStyles = css((_css = {
|
|
|
29
29
|
border: 0
|
|
30
30
|
},
|
|
31
31
|
'&:first-of-type': {
|
|
32
|
-
|
|
32
|
+
marginInlineStart: 0
|
|
33
33
|
},
|
|
34
34
|
'&:active': {
|
|
35
35
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, ")"),
|
|
@@ -86,11 +86,11 @@ var productIconStyles = css(_defineProperty({
|
|
|
86
86
|
var siteTitleStyles = css({
|
|
87
87
|
display: 'flex',
|
|
88
88
|
width: "var(--ds-space-500, 40px)",
|
|
89
|
-
marginRight: "var(--ds-space-050, 4px)",
|
|
90
|
-
marginLeft: "var(--ds-space-050, 4px)",
|
|
91
|
-
paddingRight: "var(--ds-space-200, 16px)",
|
|
92
89
|
alignItems: 'center',
|
|
93
90
|
backgroundColor: 'transparent',
|
|
91
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
92
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
93
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)",
|
|
94
94
|
'&:after': {
|
|
95
95
|
width: '100%',
|
|
96
96
|
height: 14,
|
|
@@ -113,15 +113,19 @@ export var ProductHomeSkeleton = function ProductHomeSkeleton(_ref) {
|
|
|
113
113
|
opacity: theme.mode.skeleton.opacity
|
|
114
114
|
}, VAR_SITE_TITLE_BG_COLOR_AFTER, theme.mode.skeleton.backgroundColor);
|
|
115
115
|
return jsx(Fragment, null, jsx("div", {
|
|
116
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
116
117
|
style: productHomeButtonDynamicStyles,
|
|
117
118
|
css: productHomeButtonStyles
|
|
118
119
|
}, jsx("div", {
|
|
120
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
119
121
|
style: theme.mode.skeleton,
|
|
120
122
|
css: productLogoStyles
|
|
121
123
|
}), jsx("div", {
|
|
124
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
122
125
|
style: theme.mode.skeleton,
|
|
123
126
|
css: productIconStyles
|
|
124
127
|
})), showSiteName && jsx("div", {
|
|
128
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
125
129
|
style: siteTitleDynamicStyles,
|
|
126
130
|
css: siteTitleStyles
|
|
127
131
|
}));
|
|
@@ -80,6 +80,7 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
80
80
|
}, jsx(SearchIcon, {
|
|
81
81
|
label: ""
|
|
82
82
|
})), jsx("input", {
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
83
84
|
style: searchInputDynamicStyles,
|
|
84
85
|
css: [searchInputStyles, newSearchBorderStyles],
|
|
85
86
|
"aria-label": label,
|
|
@@ -31,6 +31,7 @@ export var SearchSkeleton = function SearchSkeleton() {
|
|
|
31
31
|
return jsx(Fragment, null, jsx("div", {
|
|
32
32
|
css: searchInputContainerStyles
|
|
33
33
|
}, jsx("div", {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
34
35
|
style: theme.mode.skeleton,
|
|
35
36
|
css: searchInputSkeletonStyles
|
|
36
37
|
})), jsx(IconButtonSkeleton, {
|
|
@@ -17,7 +17,7 @@ var skeletonCreateButtonStyles = css({
|
|
|
17
17
|
},
|
|
18
18
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
19
19
|
'&&': {
|
|
20
|
-
|
|
20
|
+
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -36,6 +36,7 @@ export var SkeletonCreateButton = function SkeletonCreateButton(_ref) {
|
|
|
36
36
|
testId = _ref.testId;
|
|
37
37
|
var theme = useTheme();
|
|
38
38
|
return jsx("button", {
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
39
40
|
style: theme.mode.create.default,
|
|
40
41
|
css: skeletonCreateButtonStyles,
|
|
41
42
|
"data-testid": testId,
|
|
@@ -44,6 +44,7 @@ export var SkeletonIconButton = function SkeletonIconButton(_ref) {
|
|
|
44
44
|
testId = _ref.testId;
|
|
45
45
|
var theme = useTheme();
|
|
46
46
|
return jsx("button", {
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
47
48
|
style: theme.mode.iconButton.default,
|
|
48
49
|
"data-testid": testId,
|
|
49
50
|
css: skeletonIconButtonStyles,
|
|
@@ -93,7 +93,9 @@ export var SkeletonPrimaryButton = function SkeletonPrimaryButton(_ref) {
|
|
|
93
93
|
color: primaryButton.selected.color
|
|
94
94
|
}), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, primaryButton.selected.borderColor), _defineProperty(_objectSpread2, VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, isHighlighted ? primaryButton.default.borderColor : primaryButton.default.color), _objectSpread2));
|
|
95
95
|
return jsx("button", {
|
|
96
|
-
type: "button"
|
|
96
|
+
type: "button"
|
|
97
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
98
|
+
,
|
|
97
99
|
style: dynamicStyles,
|
|
98
100
|
css: [primaryButtonSkeletonStyles, isHighlighted && isHighlightedStyles, isDropdownButton && isDropdownButtonStyles, isHighlighted && (isDropdownButton ? isHighlightedAndDropdownButtonStyles : isHighlightedNotDropdownButtonStyles)],
|
|
99
101
|
"data-testid": testId
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { B200, B400, B50, N0, N100, N20, N200, N600, N700 } from '@atlaskit/theme/colors';
|
|
3
2
|
import { hexToRGBA } from './theme-helpers';
|
|
4
3
|
var defaultTheme = {
|
|
@@ -70,13 +69,8 @@ var defaultTheme = {
|
|
|
70
69
|
backgroundColor: "var(--ds-text-brand, ".concat(B400, ")"),
|
|
71
70
|
color: "var(--ds-text, ".concat(N700, ")"),
|
|
72
71
|
borderRight: "1px solid ".concat("var(--ds-border, ".concat(hexToRGBA(N200, 0.3), ")")),
|
|
73
|
-
// TODO: (DSP-1256) These colors should be moved into the Logo package
|
|
74
72
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
75
|
-
|
|
76
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
77
|
-
iconGradientStop: B200,
|
|
78
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
79
|
-
iconColor: getBooleanFF('platform.design-system-team.brand-refresh-update-product-logos_q7coo') ? '#357DE8' : B200
|
|
73
|
+
iconColor: '#357DE8' // TODO: replace with token after brand refresh
|
|
80
74
|
},
|
|
81
75
|
primaryButton: {
|
|
82
76
|
active: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
2
2
|
export type AppSwitcherProps = BaseIconButtonProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type default as React, type ReactNode, type ReactNodeArray } from 'react';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export interface AtlassianNavigationProps {
|
|
4
4
|
/**
|
|
5
5
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export declare const getCreateButtonTheme: ({ mode: { create } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
3
3
|
export type HelpProps = BaseIconButtonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Component to be used for the badge.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { IconButtonSkeletonProps } from './types';
|
|
3
|
+
import { type IconButtonSkeletonProps } from './types';
|
|
4
4
|
export declare const IconButtonSkeleton: ({ className, marginLeft, marginRight, size, }: IconButtonSkeletonProps) => jsx.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export declare const getIconButtonTheme: ({ mode: { iconButton } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
2
|
+
import { type CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
3
|
export type IconButtonProps = BaseIconButtonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Icon for the button.
|
|
@@ -60,12 +60,9 @@ export interface BaseIconButtonProps {
|
|
|
60
60
|
target?: string;
|
|
61
61
|
/**
|
|
62
62
|
* Allows for overriding the component used to render the button.
|
|
63
|
-
*
|
|
64
63
|
* This is primarily intended for compatibility with custom
|
|
65
64
|
* 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
|
-
*
|
|
65
|
+
* For further usage information, refer to the [documentation for button](/components/button/code).
|
|
69
66
|
* @example
|
|
70
67
|
* ```tsx
|
|
71
68
|
* <Settings
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
3
3
|
export type NotificationsProps = BaseIconButtonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Component to be used for the badge.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { PrimaryButtonSkeletonProps } from './types';
|
|
3
|
+
import { type PrimaryButtonSkeletonProps } from './types';
|
|
4
4
|
export declare const PrimaryButtonSkeleton: (props: PrimaryButtonSkeletonProps) => jsx.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export declare const getPrimaryButtonTheme: ({ mode: { primaryButton } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { AllHTMLAttributes, ComponentType, ElementType } from 'react';
|
|
2
|
-
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
1
|
+
import { type AllHTMLAttributes, type ComponentType, type ElementType } from 'react';
|
|
2
|
+
import { type CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
3
|
export type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Allows for overriding the component used to render the button.
|
|
6
|
-
*
|
|
7
|
-
* This is primarily intended for compatibility with custom
|
|
6
|
+
* This is primarily intended for compatibility with custom
|
|
8
7
|
* routing libraries when using the `href` prop.
|
|
9
8
|
*
|
|
10
|
-
*
|
|
9
|
+
* For further usage information, refer to the [documentation for button](https://atlassian.design/components/button/button-legacy/code).
|
|
11
10
|
*
|
|
12
11
|
* @example
|
|
13
12
|
* ```tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PrimaryButtonProps } from '../PrimaryButton/types';
|
|
2
|
+
import { type PrimaryButtonProps } from '../PrimaryButton/types';
|
|
3
3
|
export type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Will set the appearance of the button to look highlighted.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
3
|
-
import { PrimaryItemsContainerProps } from './types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
|
+
import { type PrimaryItemsContainerProps } from './types';
|
|
4
4
|
export declare const PrimaryItemsContainer: ({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
|
|
5
5
|
theme: NavigationTheme;
|
|
6
6
|
}) => jsx.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { PrimaryItemsContainerSkeletonProps } from './types';
|
|
3
|
+
import { type PrimaryItemsContainerSkeletonProps } from './types';
|
|
4
4
|
export declare const PrimaryItemsContainerSkeleton: import("react").MemoExoticComponent<({ count }: PrimaryItemsContainerSkeletonProps) => jsx.JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
3
|
-
import { PrimaryItemsContainerProps } from '../PrimaryItemsContainer/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
|
+
import { type PrimaryItemsContainerProps } from '../PrimaryItemsContainer/types';
|
|
4
4
|
export declare const PrimaryItemsContainer: React.MemoExoticComponent<({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
|
|
5
5
|
theme: NavigationTheme;
|
|
6
6
|
}) => JSX.Element>;
|