@atlaskit/atlassian-navigation 2.2.10 → 2.3.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 +16 -0
- package/dist/cjs/common/styles.js +2 -16
- package/dist/cjs/components/AtlassianNavigation/index.js +11 -11
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +14 -14
- package/dist/cjs/components/BadgeContainer/index.js +6 -6
- package/dist/cjs/components/Create/index.js +9 -9
- package/dist/cjs/components/Create/skeleton.js +5 -5
- package/dist/cjs/components/IconButton/skeleton.js +3 -3
- package/dist/cjs/components/PrimaryButton/index.js +6 -6
- package/dist/cjs/components/PrimaryButton/skeleton.js +3 -3
- package/dist/cjs/components/PrimaryDropdownButton/index.js +5 -5
- package/dist/cjs/components/PrimaryItemsContainer/index.js +10 -10
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +4 -4
- package/dist/cjs/components/ProductHome/custom-product-home.js +10 -10
- package/dist/cjs/components/ProductHome/product-home.js +12 -12
- package/dist/cjs/components/ProductHome/skeleton.js +9 -9
- package/dist/cjs/components/Search/index.js +13 -12
- package/dist/cjs/components/Search/skeleton.js +7 -7
- package/dist/cjs/components/SkeletonCreateButton/index.js +3 -3
- package/dist/cjs/components/SkeletonIconButton/index.js +3 -3
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +7 -7
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/common/styles.js +1 -10
- package/dist/es2019/components/AtlassianNavigation/index.js +1 -1
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +1 -1
- package/dist/es2019/components/BadgeContainer/index.js +1 -1
- package/dist/es2019/components/Create/index.js +1 -1
- package/dist/es2019/components/Create/skeleton.js +1 -1
- package/dist/es2019/components/IconButton/skeleton.js +1 -1
- package/dist/es2019/components/PrimaryButton/index.js +1 -1
- package/dist/es2019/components/PrimaryButton/skeleton.js +1 -1
- package/dist/es2019/components/PrimaryDropdownButton/index.js +1 -1
- package/dist/es2019/components/PrimaryItemsContainer/index.js +1 -1
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +1 -1
- package/dist/es2019/components/ProductHome/custom-product-home.js +1 -1
- package/dist/es2019/components/ProductHome/product-home.js +1 -1
- package/dist/es2019/components/ProductHome/skeleton.js +1 -1
- package/dist/es2019/components/Search/index.js +3 -2
- package/dist/es2019/components/Search/skeleton.js +1 -1
- package/dist/es2019/components/SkeletonCreateButton/index.js +1 -1
- package/dist/es2019/components/SkeletonIconButton/index.js +1 -1
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/common/styles.js +1 -13
- package/dist/esm/components/AtlassianNavigation/index.js +1 -1
- package/dist/esm/components/AtlassianNavigation/skeleton.js +1 -1
- package/dist/esm/components/BadgeContainer/index.js +1 -1
- package/dist/esm/components/Create/index.js +1 -1
- package/dist/esm/components/Create/skeleton.js +1 -1
- package/dist/esm/components/IconButton/skeleton.js +1 -1
- package/dist/esm/components/PrimaryButton/index.js +1 -1
- package/dist/esm/components/PrimaryButton/skeleton.js +1 -1
- package/dist/esm/components/PrimaryDropdownButton/index.js +1 -1
- package/dist/esm/components/PrimaryItemsContainer/index.js +1 -1
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +1 -1
- package/dist/esm/components/ProductHome/custom-product-home.js +1 -1
- package/dist/esm/components/ProductHome/product-home.js +1 -1
- package/dist/esm/components/ProductHome/skeleton.js +1 -1
- package/dist/esm/components/Search/index.js +3 -2
- package/dist/esm/components/Search/skeleton.js +1 -1
- package/dist/esm/components/SkeletonCreateButton/index.js +1 -1
- package/dist/esm/components/SkeletonIconButton/index.js +1 -1
- package/dist/esm/components/SkeletonPrimaryButton/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/common/styles.d.ts +0 -914
- package/dist/types/components/AtlassianNavigation/index.d.ts +3 -2
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +3 -2
- package/dist/types/components/BadgeContainer/index.d.ts +3 -2
- package/dist/types/components/Create/index.d.ts +2 -2
- package/dist/types/components/Create/skeleton.d.ts +2 -2
- package/dist/types/components/IconButton/skeleton.d.ts +3 -2
- package/dist/types/components/IconButton/styles.d.ts +1 -1
- package/dist/types/components/PrimaryButton/skeleton.d.ts +2 -2
- package/dist/types/components/PrimaryButton/styles.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainer/index.d.ts +2 -2
- package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +2 -2
- package/dist/types/components/ProductHome/custom-product-home.d.ts +2 -2
- package/dist/types/components/ProductHome/product-home.d.ts +2 -2
- package/dist/types/components/ProductHome/skeleton.d.ts +2 -2
- package/dist/types/components/Search/index.d.ts +2 -2
- package/dist/types/components/Search/skeleton.d.ts +2 -2
- package/dist/types/components/SkeletonCreateButton/index.d.ts +3 -2
- package/dist/types/components/SkeletonIconButton/index.d.ts +3 -2
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +3 -2
- package/dist/types/theme/types.d.ts +1 -1
- package/package.json +4 -12
- package/report.api.md +136 -513
- package/dist/types-ts4.0/common/constants.d.ts +0 -6
- package/dist/types-ts4.0/common/styles.d.ts +0 -924
- package/dist/types-ts4.0/components/AppSwitcher/index.d.ts +0 -14
- package/dist/types-ts4.0/components/AppSwitcher/types.d.ts +0 -2
- package/dist/types-ts4.0/components/AtlassianNavigation/index.d.ts +0 -12
- package/dist/types-ts4.0/components/AtlassianNavigation/skeleton.d.ts +0 -17
- package/dist/types-ts4.0/components/AtlassianNavigation/types.d.ts +0 -107
- package/dist/types-ts4.0/components/BadgeContainer/index.d.ts +0 -3
- package/dist/types-ts4.0/components/BadgeContainer/types.d.ts +0 -6
- package/dist/types-ts4.0/components/Create/index.d.ts +0 -13
- package/dist/types-ts4.0/components/Create/skeleton.d.ts +0 -2
- package/dist/types-ts4.0/components/Create/styles.d.ts +0 -3
- package/dist/types-ts4.0/components/Create/types.d.ts +0 -35
- package/dist/types-ts4.0/components/Help/index.d.ts +0 -13
- package/dist/types-ts4.0/components/Help/types.d.ts +0 -9
- package/dist/types-ts4.0/components/IconButton/index.d.ts +0 -14
- package/dist/types-ts4.0/components/IconButton/skeleton.d.ts +0 -3
- package/dist/types-ts4.0/components/IconButton/styles.d.ts +0 -3
- package/dist/types-ts4.0/components/IconButton/types.d.ts +0 -100
- package/dist/types-ts4.0/components/Notifications/index.d.ts +0 -14
- package/dist/types-ts4.0/components/Notifications/types.d.ts +0 -9
- package/dist/types-ts4.0/components/PrimaryButton/index.d.ts +0 -18
- package/dist/types-ts4.0/components/PrimaryButton/skeleton.d.ts +0 -4
- package/dist/types-ts4.0/components/PrimaryButton/styles.d.ts +0 -3
- package/dist/types-ts4.0/components/PrimaryButton/types.d.ts +0 -43
- package/dist/types-ts4.0/components/PrimaryDropdownButton/index.d.ts +0 -16
- package/dist/types-ts4.0/components/PrimaryDropdownButton/types.d.ts +0 -18
- package/dist/types-ts4.0/components/PrimaryItemsContainer/index.d.ts +0 -6
- package/dist/types-ts4.0/components/PrimaryItemsContainer/skeleton.d.ts +0 -3
- package/dist/types-ts4.0/components/PrimaryItemsContainer/types.d.ts +0 -10
- package/dist/types-ts4.0/components/ProductHome/custom-product-home.d.ts +0 -12
- package/dist/types-ts4.0/components/ProductHome/index.d.ts +0 -2
- package/dist/types-ts4.0/components/ProductHome/product-home.d.ts +0 -15
- package/dist/types-ts4.0/components/ProductHome/skeleton.d.ts +0 -5
- package/dist/types-ts4.0/components/ProductHome/types.d.ts +0 -100
- package/dist/types-ts4.0/components/ProductHome/utils.d.ts +0 -1
- package/dist/types-ts4.0/components/Profile/index.d.ts +0 -17
- package/dist/types-ts4.0/components/Profile/skeleton.d.ts +0 -2
- package/dist/types-ts4.0/components/Profile/types.d.ts +0 -2
- package/dist/types-ts4.0/components/Search/index.d.ts +0 -12
- package/dist/types-ts4.0/components/Search/skeleton.d.ts +0 -2
- package/dist/types-ts4.0/components/Search/types.d.ts +0 -16
- package/dist/types-ts4.0/components/Settings/index.d.ts +0 -11
- package/dist/types-ts4.0/components/Settings/types.d.ts +0 -2
- package/dist/types-ts4.0/components/SignIn/index.d.ts +0 -12
- package/dist/types-ts4.0/components/SignIn/skeleton.d.ts +0 -2
- package/dist/types-ts4.0/components/SignIn/types.d.ts +0 -2
- package/dist/types-ts4.0/components/SkeletonCreateButton/index.d.ts +0 -13
- package/dist/types-ts4.0/components/SkeletonCreateButton/types.d.ts +0 -12
- package/dist/types-ts4.0/components/SkeletonIconButton/index.d.ts +0 -13
- package/dist/types-ts4.0/components/SkeletonIconButton/types.d.ts +0 -18
- package/dist/types-ts4.0/components/SkeletonPrimaryButton/index.d.ts +0 -13
- package/dist/types-ts4.0/components/SkeletonPrimaryButton/types.d.ts +0 -25
- package/dist/types-ts4.0/controllers/overflow/index.d.ts +0 -44
- package/dist/types-ts4.0/controllers/overflow/types.d.ts +0 -7
- package/dist/types-ts4.0/index.d.ts +0 -30
- package/dist/types-ts4.0/skeleton-help-button.d.ts +0 -19
- package/dist/types-ts4.0/skeleton-notification-button.d.ts +0 -19
- package/dist/types-ts4.0/skeleton-settings-button.d.ts +0 -19
- package/dist/types-ts4.0/skeleton-switcher-button.d.ts +0 -19
- package/dist/types-ts4.0/skeleton.d.ts +0 -5
- package/dist/types-ts4.0/theme/default-theme.d.ts +0 -6
- package/dist/types-ts4.0/theme/index.d.ts +0 -6
- package/dist/types-ts4.0/theme/theme-generator.d.ts +0 -3
- package/dist/types-ts4.0/theme/theme-helpers.d.ts +0 -5
- package/dist/types-ts4.0/theme/theme-provider.d.ts +0 -8
- package/dist/types-ts4.0/theme/themes.d.ts +0 -3
- package/dist/types-ts4.0/theme/types.d.ts +0 -74
- package/dist/types-ts4.0/theme/use-theme.d.ts +0 -1
|
@@ -15,7 +15,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
15
|
|
|
16
16
|
var _react = require("react");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
20
|
var _constants = require("../../common/constants");
|
|
21
21
|
|
|
@@ -36,24 +36,24 @@ var VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS = '--product-home-box-shadow-focus';
|
|
|
36
36
|
var VAR_PRODUCT_HOME_COLOR_HOVER = '--product-home-color-hover';
|
|
37
37
|
var VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER = '--product-home-bg-color-hover';
|
|
38
38
|
var VAR_PRODUCT_HOME_BOX_SHADOW_HOVER = '--product-home-box-shadow-hover';
|
|
39
|
-
var productLogoStyles = (0,
|
|
39
|
+
var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
40
40
|
// Ensure anything passed into
|
|
41
41
|
// productHome is aligned correctly
|
|
42
42
|
display: 'flex'
|
|
43
43
|
}, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
44
44
|
display: 'none'
|
|
45
45
|
}));
|
|
46
|
-
var customMaxHeightStyles = (0,
|
|
46
|
+
var customMaxHeightStyles = (0, _react2.css)({
|
|
47
47
|
maxHeight: 28
|
|
48
48
|
});
|
|
49
|
-
var productIconStyles = (0,
|
|
49
|
+
var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
50
50
|
// Ensure anything passed into
|
|
51
51
|
// productHome is aligned correctly
|
|
52
52
|
display: 'flex'
|
|
53
53
|
}, "@media (min-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT, "px)"), {
|
|
54
54
|
display: 'none'
|
|
55
55
|
}));
|
|
56
|
-
var productHomeButtonStyles = (0,
|
|
56
|
+
var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
57
57
|
display: 'flex',
|
|
58
58
|
padding: _constants.gridSize / 2,
|
|
59
59
|
alignItems: 'center',
|
|
@@ -93,7 +93,7 @@ var productHomeButtonStyles = (0, _core.css)((_css3 = {
|
|
|
93
93
|
}), (0, _defineProperty2.default)(_css3, "@media (min-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT, "px)"), {
|
|
94
94
|
margin: "0 ".concat(_constants.gridSize * 2, "px")
|
|
95
95
|
}), _css3));
|
|
96
|
-
var siteTitleStyles = (0,
|
|
96
|
+
var siteTitleStyles = (0, _react2.css)({
|
|
97
97
|
display: 'flex',
|
|
98
98
|
marginRight: _constants.gridSize / 2,
|
|
99
99
|
marginLeft: _constants.gridSize * 0.5,
|
|
@@ -134,7 +134,7 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
134
134
|
};
|
|
135
135
|
|
|
136
136
|
var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _productHomeButtonDyn);
|
|
137
|
-
return (0,
|
|
137
|
+
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(Tag, (0, _extends2.default)({
|
|
138
138
|
href: href,
|
|
139
139
|
style: productHomeButtonDynamicStyles,
|
|
140
140
|
css: productHomeButtonStyles,
|
|
@@ -142,7 +142,7 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
142
142
|
onMouseDown: preventFocusRing,
|
|
143
143
|
"data-testid": testId && "".concat(testId, "-container") // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
144
144
|
|
|
145
|
-
}, rest), logoUrl && (0,
|
|
145
|
+
}, rest), logoUrl && (0, _react2.jsx)("img", {
|
|
146
146
|
style: {
|
|
147
147
|
maxWidth: logoMaxWidth
|
|
148
148
|
},
|
|
@@ -150,7 +150,7 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
150
150
|
src: logoUrl,
|
|
151
151
|
alt: logoAlt,
|
|
152
152
|
"data-testid": testId && "".concat(testId, "-logo")
|
|
153
|
-
}), iconUrl && (0,
|
|
153
|
+
}), iconUrl && (0, _react2.jsx)("img", {
|
|
154
154
|
style: {
|
|
155
155
|
maxWidth: logoMaxWidth
|
|
156
156
|
},
|
|
@@ -158,7 +158,7 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
158
158
|
src: iconUrl,
|
|
159
159
|
alt: iconAlt,
|
|
160
160
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
161
|
-
})), siteTitle && (0,
|
|
161
|
+
})), siteTitle && (0, _react2.jsx)("div", {
|
|
162
162
|
style: {
|
|
163
163
|
borderRight: theme.mode.productHome.borderRight
|
|
164
164
|
},
|
|
@@ -15,7 +15,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
15
|
|
|
16
16
|
var _react = require("react");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
20
|
var _constants = require("../../common/constants");
|
|
21
21
|
|
|
@@ -37,7 +37,7 @@ var VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS = '--product-home-box-shadow-focus';
|
|
|
37
37
|
var VAR_PRODUCT_HOME_COLOR_HOVER = '--product-home-color-hover';
|
|
38
38
|
var VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER = '--product-home-bg-color-hover';
|
|
39
39
|
var VAR_PRODUCT_HOME_BOX_SHADOW_HOVER = '--product-home-box-shadow-hover';
|
|
40
|
-
var productHomeButtonStyles = (0,
|
|
40
|
+
var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
41
41
|
display: 'flex',
|
|
42
42
|
padding: _constants.gridSize / 2,
|
|
43
43
|
alignItems: 'center',
|
|
@@ -77,7 +77,7 @@ var productHomeButtonStyles = (0, _core.css)((_css = {
|
|
|
77
77
|
}), (0, _defineProperty2.default)(_css, "@media (min-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT, "px)"), {
|
|
78
78
|
margin: "0 ".concat(_constants.gridSize * 2, "px")
|
|
79
79
|
}), _css));
|
|
80
|
-
var productLogoStyles = (0,
|
|
80
|
+
var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
81
81
|
// Ensure anything passed into
|
|
82
82
|
// productHome is aligned correctly
|
|
83
83
|
display: 'flex',
|
|
@@ -93,10 +93,10 @@ var productLogoStyles = (0, _core.css)((0, _defineProperty2.default)({
|
|
|
93
93
|
}, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
94
94
|
display: 'none'
|
|
95
95
|
}));
|
|
96
|
-
var customMaxHeightStyles = (0,
|
|
96
|
+
var customMaxHeightStyles = (0, _react2.css)({
|
|
97
97
|
maxHeight: 28
|
|
98
98
|
});
|
|
99
|
-
var productIconStyles = (0,
|
|
99
|
+
var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
100
100
|
// Ensure anything passed into
|
|
101
101
|
// productHome is aligned correctly
|
|
102
102
|
display: 'flex',
|
|
@@ -107,7 +107,7 @@ var productIconStyles = (0, _core.css)((0, _defineProperty2.default)({
|
|
|
107
107
|
}, "@media (min-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT, "px)"), {
|
|
108
108
|
display: 'none'
|
|
109
109
|
}));
|
|
110
|
-
var siteTitleStyles = (0,
|
|
110
|
+
var siteTitleStyles = (0, _react2.css)({
|
|
111
111
|
display: 'flex',
|
|
112
112
|
marginRight: _constants.gridSize / 2,
|
|
113
113
|
marginLeft: _constants.gridSize * 0.5,
|
|
@@ -158,7 +158,7 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_LOGO_MAX_WIDTH, "".concat(logoMaxWidth, "px")), _productHomeButtonDyn);
|
|
161
|
-
return (0,
|
|
161
|
+
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(Tag, (0, _extends2.default)({
|
|
162
162
|
style: productHomeButtonDynamicStyles,
|
|
163
163
|
css: productHomeButtonStyles,
|
|
164
164
|
href: href,
|
|
@@ -166,22 +166,22 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
166
166
|
onMouseDown: preventFocusRing,
|
|
167
167
|
"data-testid": testId && "".concat(testId, "-container") // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
168
168
|
|
|
169
|
-
}, rest), (0,
|
|
169
|
+
}, rest), (0, _react2.jsx)("div", {
|
|
170
170
|
css: [customMaxHeightStyles, productLogoStyles],
|
|
171
171
|
"data-testid": testId && "".concat(testId, "-logo")
|
|
172
|
-
}, (0,
|
|
172
|
+
}, (0, _react2.jsx)(Logo, {
|
|
173
173
|
iconGradientStart: iconGradientStart,
|
|
174
174
|
iconGradientStop: iconGradientStop,
|
|
175
175
|
iconColor: iconColor,
|
|
176
176
|
textColor: textColor
|
|
177
|
-
})), (0,
|
|
177
|
+
})), (0, _react2.jsx)("div", {
|
|
178
178
|
css: [customMaxHeightStyles, productIconStyles],
|
|
179
179
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
180
|
-
}, (0,
|
|
180
|
+
}, (0, _react2.jsx)(Icon, {
|
|
181
181
|
iconGradientStart: iconGradientStart,
|
|
182
182
|
iconGradientStop: iconGradientStop,
|
|
183
183
|
iconColor: iconColor
|
|
184
|
-
}))), siteTitle && (0,
|
|
184
|
+
}))), siteTitle && (0, _react2.jsx)("div", {
|
|
185
185
|
style: {
|
|
186
186
|
borderRight: theme.mode.productHome.borderRight
|
|
187
187
|
},
|
|
@@ -11,7 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
var _constants = require("../../common/constants");
|
|
17
17
|
|
|
@@ -29,7 +29,7 @@ var VAR_PRODUCT_HOME_COLOR_HOVER = '--product-home-color-hover';
|
|
|
29
29
|
var VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER = '--product-home-bg-color-hover';
|
|
30
30
|
var VAR_PRODUCT_HOME_BOX_SHADOW_HOVER = '--product-home-box-shadow-hover';
|
|
31
31
|
var VAR_SITE_TITLE_BG_COLOR_AFTER = '--site-title-bg-color-after';
|
|
32
|
-
var productHomeButtonStyles = (0,
|
|
32
|
+
var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
33
33
|
display: 'flex',
|
|
34
34
|
padding: _constants.gridSize / 2,
|
|
35
35
|
alignItems: 'center',
|
|
@@ -69,7 +69,7 @@ var productHomeButtonStyles = (0, _core.css)((_css = {
|
|
|
69
69
|
}), (0, _defineProperty2.default)(_css, "@media (min-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT, "px)"), {
|
|
70
70
|
margin: "0 ".concat(_constants.gridSize * 2, "px")
|
|
71
71
|
}), _css));
|
|
72
|
-
var productLogoStyles = (0,
|
|
72
|
+
var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
73
73
|
display: 'flex',
|
|
74
74
|
width: 120,
|
|
75
75
|
maxWidth: 120,
|
|
@@ -83,7 +83,7 @@ var productLogoStyles = (0, _core.css)((0, _defineProperty2.default)({
|
|
|
83
83
|
}, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
84
84
|
display: 'none'
|
|
85
85
|
}));
|
|
86
|
-
var productIconStyles = (0,
|
|
86
|
+
var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
87
87
|
display: 'flex',
|
|
88
88
|
width: 28,
|
|
89
89
|
height: 28,
|
|
@@ -96,7 +96,7 @@ var productIconStyles = (0, _core.css)((0, _defineProperty2.default)({
|
|
|
96
96
|
}, "@media (min-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT, "px)"), {
|
|
97
97
|
display: 'none'
|
|
98
98
|
}));
|
|
99
|
-
var siteTitleStyles = (0,
|
|
99
|
+
var siteTitleStyles = (0, _react2.css)({
|
|
100
100
|
display: 'flex',
|
|
101
101
|
width: _constants.gridSize * 5,
|
|
102
102
|
marginRight: _constants.gridSize / 2,
|
|
@@ -125,16 +125,16 @@ var ProductHomeSkeleton = function ProductHomeSkeleton(_ref) {
|
|
|
125
125
|
borderRight: theme.mode.productHome.borderRight,
|
|
126
126
|
opacity: theme.mode.skeleton.opacity
|
|
127
127
|
}, VAR_SITE_TITLE_BG_COLOR_AFTER, theme.mode.skeleton.backgroundColor);
|
|
128
|
-
return (0,
|
|
128
|
+
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", {
|
|
129
129
|
style: productHomeButtonDynamicStyles,
|
|
130
130
|
css: productHomeButtonStyles
|
|
131
|
-
}, (0,
|
|
131
|
+
}, (0, _react2.jsx)("div", {
|
|
132
132
|
style: theme.mode.skeleton,
|
|
133
133
|
css: productLogoStyles
|
|
134
|
-
}), (0,
|
|
134
|
+
}), (0, _react2.jsx)("div", {
|
|
135
135
|
style: theme.mode.skeleton,
|
|
136
136
|
css: productIconStyles
|
|
137
|
-
})), showSiteName && (0,
|
|
137
|
+
})), showSiteName && (0, _react2.jsx)("div", {
|
|
138
138
|
style: siteTitleDynamicStyles,
|
|
139
139
|
css: siteTitleStyles
|
|
140
140
|
}));
|
|
@@ -15,7 +15,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
15
|
|
|
16
16
|
var _react = require("react");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
20
|
var _search = _interopRequireDefault(require("@atlaskit/icon/glyph/search"));
|
|
21
21
|
|
|
@@ -31,14 +31,14 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
31
31
|
|
|
32
32
|
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) { (0, _defineProperty2.default)(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; }
|
|
33
33
|
|
|
34
|
-
var searchInputContainerStyles = (0,
|
|
34
|
+
var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
35
35
|
marginRight: _constants.gridSize,
|
|
36
36
|
marginLeft: 20,
|
|
37
37
|
position: 'relative'
|
|
38
38
|
}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
39
39
|
display: 'none !important'
|
|
40
40
|
}));
|
|
41
|
-
var searchInputIconStyles = (0,
|
|
41
|
+
var searchInputIconStyles = (0, _react2.css)({
|
|
42
42
|
width: '20px',
|
|
43
43
|
height: '20px',
|
|
44
44
|
position: 'absolute',
|
|
@@ -46,7 +46,7 @@ var searchInputIconStyles = (0, _core.css)({
|
|
|
46
46
|
left: '10px',
|
|
47
47
|
pointerEvents: 'none'
|
|
48
48
|
});
|
|
49
|
-
var searchInputStyles = (0,
|
|
49
|
+
var searchInputStyles = (0, _react2.css)({
|
|
50
50
|
boxSizing: 'border-box',
|
|
51
51
|
width: '220px',
|
|
52
52
|
height: "".concat(_constants.gridSize * 4, "px"),
|
|
@@ -59,7 +59,7 @@ var searchInputStyles = (0, _core.css)({
|
|
|
59
59
|
color: 'inherit'
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
var searchIconStyles = (0,
|
|
62
|
+
var searchIconStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (min-width: ".concat(_constants.CREATE_BREAKPOINT, "px)"), {
|
|
63
63
|
display: 'none !important'
|
|
64
64
|
}));
|
|
65
65
|
|
|
@@ -85,14 +85,14 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
85
85
|
':focus': search.focus
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
-
return (0,
|
|
88
|
+
return (0, _react2.jsx)("div", {
|
|
89
89
|
css: searchInputContainerStyles,
|
|
90
90
|
role: "search"
|
|
91
|
-
}, (0,
|
|
91
|
+
}, (0, _react2.jsx)("div", {
|
|
92
92
|
css: searchInputIconStyles
|
|
93
|
-
}, (0,
|
|
93
|
+
}, (0, _react2.jsx)(_search.default, {
|
|
94
94
|
label: ""
|
|
95
|
-
})), (0,
|
|
95
|
+
})), (0, _react2.jsx)("input", {
|
|
96
96
|
style: searchInputDynamicStyles,
|
|
97
97
|
css: searchInputStyles,
|
|
98
98
|
"aria-label": label,
|
|
@@ -118,14 +118,15 @@ var Search = function Search(props) {
|
|
|
118
118
|
label = props.label,
|
|
119
119
|
value = props.value,
|
|
120
120
|
iconButtonProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
121
|
-
return (0,
|
|
121
|
+
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(SearchComponent, {
|
|
122
122
|
onClick: iconButtonProps.onClick,
|
|
123
123
|
placeholder: placeholder,
|
|
124
124
|
label: label,
|
|
125
125
|
value: value || ''
|
|
126
|
-
}), (0,
|
|
126
|
+
}), (0, _react2.jsx)(_IconButton.IconButton // @ts-ignore Overriding styles is not supported.
|
|
127
|
+
, (0, _extends2.default)({
|
|
127
128
|
css: searchIconStyles,
|
|
128
|
-
icon: (0,
|
|
129
|
+
icon: (0, _react2.jsx)(_search.default, {
|
|
129
130
|
label: label
|
|
130
131
|
}),
|
|
131
132
|
tooltip: tooltip // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -11,7 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
var _constants = require("../../common/constants");
|
|
17
17
|
|
|
@@ -20,14 +20,14 @@ var _theme = require("../../theme");
|
|
|
20
20
|
var _skeleton = require("../IconButton/skeleton");
|
|
21
21
|
|
|
22
22
|
/** @jsx jsx */
|
|
23
|
-
var searchInputContainerStyles = (0,
|
|
23
|
+
var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
24
24
|
marginRight: _constants.gridSize,
|
|
25
25
|
marginLeft: 20,
|
|
26
26
|
position: 'relative'
|
|
27
27
|
}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
28
28
|
display: 'none !important'
|
|
29
29
|
}));
|
|
30
|
-
var searchInputSkeletonStyles = (0,
|
|
30
|
+
var searchInputSkeletonStyles = (0, _react2.css)({
|
|
31
31
|
boxSizing: 'border-box',
|
|
32
32
|
width: '220px',
|
|
33
33
|
height: "".concat(_constants.gridSize * 4, "px"),
|
|
@@ -35,19 +35,19 @@ var searchInputSkeletonStyles = (0, _core.css)({
|
|
|
35
35
|
borderRadius: 6,
|
|
36
36
|
opacity: 0.15
|
|
37
37
|
});
|
|
38
|
-
var searchIconStyles = (0,
|
|
38
|
+
var searchIconStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (min-width: ".concat(_constants.CREATE_BREAKPOINT, "px)"), {
|
|
39
39
|
display: 'none !important'
|
|
40
40
|
})); // Not exported to consumers, only used in NavigationSkeleton
|
|
41
41
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
42
42
|
|
|
43
43
|
var SearchSkeleton = function SearchSkeleton() {
|
|
44
44
|
var theme = (0, _theme.useTheme)();
|
|
45
|
-
return (0,
|
|
45
|
+
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", {
|
|
46
46
|
css: searchInputContainerStyles
|
|
47
|
-
}, (0,
|
|
47
|
+
}, (0, _react2.jsx)("div", {
|
|
48
48
|
style: theme.mode.skeleton,
|
|
49
49
|
css: searchInputSkeletonStyles
|
|
50
|
-
})), (0,
|
|
50
|
+
})), (0, _react2.jsx)(_skeleton.IconButtonSkeleton, {
|
|
51
51
|
css: searchIconStyles,
|
|
52
52
|
marginRight: 5,
|
|
53
53
|
size: _constants.gridSize * 3.25
|
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.SkeletonCreateButton = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
9
|
|
|
10
10
|
var _theme = require("../../theme");
|
|
11
11
|
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
-
var skeletonCreateButtonStyles = (0,
|
|
13
|
+
var skeletonCreateButtonStyles = (0, _react.css)({
|
|
14
14
|
height: 32,
|
|
15
15
|
padding: '0 12px',
|
|
16
16
|
alignSelf: 'center',
|
|
@@ -45,7 +45,7 @@ var SkeletonCreateButton = function SkeletonCreateButton(_ref) {
|
|
|
45
45
|
var text = _ref.text,
|
|
46
46
|
testId = _ref.testId;
|
|
47
47
|
var theme = (0, _theme.useTheme)();
|
|
48
|
-
return (0,
|
|
48
|
+
return (0, _react.jsx)("button", {
|
|
49
49
|
style: theme.mode.create.default,
|
|
50
50
|
css: skeletonCreateButtonStyles,
|
|
51
51
|
"data-testid": testId,
|
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.SkeletonIconButton = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
9
|
|
|
10
10
|
var _theme = require("../../theme");
|
|
11
11
|
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
-
var skeletonIconButtonStyles = (0,
|
|
13
|
+
var skeletonIconButtonStyles = (0, _react.css)({
|
|
14
14
|
margin: 0,
|
|
15
15
|
marginRight: 4,
|
|
16
16
|
padding: '4px 6px',
|
|
@@ -52,7 +52,7 @@ var SkeletonIconButton = function SkeletonIconButton(_ref) {
|
|
|
52
52
|
var children = _ref.children,
|
|
53
53
|
testId = _ref.testId;
|
|
54
54
|
var theme = (0, _theme.useTheme)();
|
|
55
|
-
return (0,
|
|
55
|
+
return (0, _react.jsx)("button", {
|
|
56
56
|
style: theme.mode.iconButton.default,
|
|
57
57
|
"data-testid": testId,
|
|
58
58
|
css: skeletonIconButtonStyles,
|
|
@@ -9,7 +9,7 @@ exports.SkeletonPrimaryButton = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _react = require("@emotion/react");
|
|
13
13
|
|
|
14
14
|
var _theme = require("../../theme");
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
19
19
|
|
|
20
20
|
var VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
|
|
21
21
|
var VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
|
|
22
|
-
var primaryButtonSkeletonStyles = (0,
|
|
22
|
+
var primaryButtonSkeletonStyles = (0, _react.css)({
|
|
23
23
|
margin: '0 6px',
|
|
24
24
|
padding: '0 4px',
|
|
25
25
|
position: 'relative',
|
|
@@ -38,7 +38,7 @@ var primaryButtonSkeletonStyles = (0, _core.css)({
|
|
|
38
38
|
border: 0
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
-
var isHighlightedStyles = (0,
|
|
41
|
+
var isHighlightedStyles = (0, _react.css)({
|
|
42
42
|
'&:before': {
|
|
43
43
|
height: 3,
|
|
44
44
|
position: 'absolute',
|
|
@@ -50,17 +50,17 @@ var isHighlightedStyles = (0, _core.css)({
|
|
|
50
50
|
content: '""'
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
var isHighlightedAndDropdownButtonStyles = (0,
|
|
53
|
+
var isHighlightedAndDropdownButtonStyles = (0, _react.css)({
|
|
54
54
|
'&:before': {
|
|
55
55
|
right: -10
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
var isHighlightedNotDropdownButtonStyles = (0,
|
|
58
|
+
var isHighlightedNotDropdownButtonStyles = (0, _react.css)({
|
|
59
59
|
'&:before': {
|
|
60
60
|
right: 2
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
|
-
var isDropdownButtonStyles = (0,
|
|
63
|
+
var isDropdownButtonStyles = (0, _react.css)({
|
|
64
64
|
marginRight: 18,
|
|
65
65
|
'&:after': {
|
|
66
66
|
display: 'inline-block',
|
|
@@ -108,7 +108,7 @@ var SkeletonPrimaryButton = function SkeletonPrimaryButton(_ref) {
|
|
|
108
108
|
color: primaryButton.selected.color
|
|
109
109
|
}), {}, (_objectSpread2 = {}, (0, _defineProperty2.default)(_objectSpread2, VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, primaryButton.selected.borderColor), (0, _defineProperty2.default)(_objectSpread2, VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, isHighlighted ? primaryButton.default.borderColor : primaryButton.default.color), _objectSpread2));
|
|
110
110
|
|
|
111
|
-
return (0,
|
|
111
|
+
return (0, _react.jsx)("button", {
|
|
112
112
|
type: "button",
|
|
113
113
|
style: dynamicStyles,
|
|
114
114
|
css: [primaryButtonSkeletonStyles, isHighlighted && isHighlightedStyles, isDropdownButton && isDropdownButtonStyles, isHighlighted && (isDropdownButton ? isHighlightedAndDropdownButtonStyles : isHighlightedNotDropdownButtonStyles)],
|
package/dist/cjs/version.json
CHANGED
|
@@ -8,13 +8,4 @@ export const actionSectionMobileCSS = {
|
|
|
8
8
|
[`@media (min-width: ${CREATE_BREAKPOINT}px)`]: {
|
|
9
9
|
display: 'none !important'
|
|
10
10
|
}
|
|
11
|
-
};
|
|
12
|
-
export const skeletonCSS = ({
|
|
13
|
-
mode: {
|
|
14
|
-
skeleton
|
|
15
|
-
}
|
|
16
|
-
}) => ({
|
|
17
|
-
//@ts-expect-error TODO Fix legit TypeScript 3.9.6 improved inference error
|
|
18
|
-
opacity: 0.15,
|
|
19
|
-
...skeleton
|
|
20
|
-
});
|
|
11
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
4
4
|
import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { gridSize, HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
|
|
4
4
|
import { gridSize, HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
5
5
|
import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
5
|
import AddIcon from '@atlaskit/icon/glyph/editor/add';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { CREATE_BREAKPOINT, gridSize } from '../../common/constants';
|
|
5
5
|
import { useTheme } from '../../theme';
|
|
6
6
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
7
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
8
|
import { gridSize } from '../../common/constants';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
7
7
|
import { PrimaryButton } from '../PrimaryButton';
|
|
8
8
|
const chevronIconStyles = css({
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { useCallback, useState } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import Popup from '@atlaskit/popup';
|
|
7
7
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
8
8
|
import { gridSize } from '../../common/constants';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { gridSize } from '../../common/constants';
|
|
5
5
|
import { PrimaryButtonSkeleton } from '../PrimaryButton/skeleton';
|
|
6
6
|
const primaryButtonSkeletonStyles = css({
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { Fragment } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
7
7
|
import { useTheme } from '../../theme';
|
|
8
8
|
import { getTag } from './utils';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { Fragment } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
7
7
|
import { useTheme } from '../../theme';
|
|
8
8
|
import { getTag } from './utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
5
5
|
import { useTheme } from '../../theme';
|
|
6
6
|
const VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { Fragment } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
7
7
|
import { CREATE_BREAKPOINT, fontSize, gridSize } from '../../common/constants';
|
|
8
8
|
import { useTheme } from '../../theme';
|
|
@@ -107,7 +107,8 @@ export const Search = props => {
|
|
|
107
107
|
placeholder: placeholder,
|
|
108
108
|
label: label,
|
|
109
109
|
value: value || ''
|
|
110
|
-
}), jsx(IconButton
|
|
110
|
+
}), jsx(IconButton // @ts-ignore Overriding styles is not supported.
|
|
111
|
+
, _extends({
|
|
111
112
|
css: searchIconStyles,
|
|
112
113
|
icon: jsx(SearchIcon, {
|
|
113
114
|
label: label
|