@atlaskit/atlassian-navigation 4.1.0 → 4.1.2

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/afm-jira/tsconfig.json +2 -3
  3. package/dist/cjs/components/AtlassianNavigation/index.js +1 -0
  4. package/dist/cjs/components/AtlassianNavigation/skeleton.js +1 -0
  5. package/dist/cjs/components/BadgeContainer/index.js +1 -0
  6. package/dist/cjs/components/Create/index.js +2 -0
  7. package/dist/cjs/components/Create/skeleton.js +2 -0
  8. package/dist/cjs/components/IconButton/skeleton.js +1 -1
  9. package/dist/cjs/components/PrimaryButton/index.js +1 -0
  10. package/dist/cjs/components/PrimaryButton/skeleton.js +2 -0
  11. package/dist/cjs/components/PrimaryDropdownButton/index.js +2 -0
  12. package/dist/cjs/components/PrimaryItemsContainer/index.js +2 -0
  13. package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +4 -2
  14. package/dist/cjs/components/ProductHome/custom-product-home.js +1 -0
  15. package/dist/cjs/components/ProductHome/product-home.js +6 -4
  16. package/dist/cjs/components/ProductHome/skeleton.js +4 -2
  17. package/dist/cjs/components/Search/index.js +4 -2
  18. package/dist/cjs/components/Search/skeleton.js +2 -0
  19. package/dist/cjs/components/SkeletonCreateButton/index.js +1 -0
  20. package/dist/cjs/components/SkeletonIconButton/index.js +1 -0
  21. package/dist/cjs/components/SkeletonPrimaryButton/index.js +4 -3
  22. package/dist/cjs/utils.js +28 -0
  23. package/dist/es2019/components/AtlassianNavigation/index.js +1 -0
  24. package/dist/es2019/components/AtlassianNavigation/skeleton.js +1 -0
  25. package/dist/es2019/components/BadgeContainer/index.js +1 -0
  26. package/dist/es2019/components/Create/index.js +2 -0
  27. package/dist/es2019/components/Create/skeleton.js +2 -0
  28. package/dist/es2019/components/IconButton/skeleton.js +1 -0
  29. package/dist/es2019/components/PrimaryButton/index.js +2 -0
  30. package/dist/es2019/components/PrimaryButton/skeleton.js +1 -0
  31. package/dist/es2019/components/PrimaryDropdownButton/index.js +2 -0
  32. package/dist/es2019/components/PrimaryItemsContainer/index.js +2 -0
  33. package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +4 -2
  34. package/dist/es2019/components/ProductHome/custom-product-home.js +2 -0
  35. package/dist/es2019/components/ProductHome/product-home.js +5 -2
  36. package/dist/es2019/components/ProductHome/skeleton.js +5 -2
  37. package/dist/es2019/components/Search/index.js +5 -2
  38. package/dist/es2019/components/Search/skeleton.js +2 -0
  39. package/dist/es2019/components/SkeletonCreateButton/index.js +1 -0
  40. package/dist/es2019/components/SkeletonIconButton/index.js +1 -0
  41. package/dist/es2019/components/SkeletonPrimaryButton/index.js +4 -2
  42. package/dist/es2019/utils.js +17 -0
  43. package/dist/esm/components/AtlassianNavigation/index.js +1 -0
  44. package/dist/esm/components/AtlassianNavigation/skeleton.js +1 -0
  45. package/dist/esm/components/BadgeContainer/index.js +1 -0
  46. package/dist/esm/components/Create/index.js +2 -0
  47. package/dist/esm/components/Create/skeleton.js +2 -0
  48. package/dist/esm/components/IconButton/skeleton.js +1 -0
  49. package/dist/esm/components/PrimaryButton/index.js +2 -0
  50. package/dist/esm/components/PrimaryButton/skeleton.js +1 -0
  51. package/dist/esm/components/PrimaryDropdownButton/index.js +2 -0
  52. package/dist/esm/components/PrimaryItemsContainer/index.js +2 -0
  53. package/dist/esm/components/PrimaryItemsContainer/skeleton.js +4 -2
  54. package/dist/esm/components/ProductHome/custom-product-home.js +2 -0
  55. package/dist/esm/components/ProductHome/product-home.js +5 -2
  56. package/dist/esm/components/ProductHome/skeleton.js +5 -2
  57. package/dist/esm/components/Search/index.js +5 -2
  58. package/dist/esm/components/Search/skeleton.js +2 -0
  59. package/dist/esm/components/SkeletonCreateButton/index.js +1 -0
  60. package/dist/esm/components/SkeletonIconButton/index.js +1 -0
  61. package/dist/esm/components/SkeletonPrimaryButton/index.js +4 -2
  62. package/dist/esm/utils.js +21 -0
  63. package/dist/types/utils.d.ts +10 -0
  64. package/dist/types-ts4.5/utils.d.ts +10 -0
  65. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 4.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#113632](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113632)
8
+ [`821abfcb39199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/821abfcb39199) -
9
+ Strip empty style properties to reduce SSR hydration warnings
10
+
11
+ ## 4.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 4.1.0
4
18
 
5
19
  ### Minor Changes
@@ -1,12 +1,11 @@
1
1
  {
2
- "extends": "../../../../tsconfig.products.json",
2
+ "extends": "../../../../tsconfig.entry-points.jira.json",
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "target": "es5",
6
6
  "outDir": "../../../../../tsDist/@atlaskit__atlassian-navigation/app",
7
7
  "composite": true,
8
- "rootDir": "../",
9
- "baseUrl": "../"
8
+ "rootDir": "../"
10
9
  },
11
10
  "include": [
12
11
  "../src/**/*.ts",
@@ -16,6 +16,7 @@ var _PrimaryItemsContainerV = require("../PrimaryItemsContainerV2");
16
16
  * @jsxRuntime classic
17
17
  */
18
18
  /** @jsx jsx */
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
20
 
20
21
  var containerStyles = (0, _react.css)({
21
22
  display: 'flex',
@@ -17,6 +17,7 @@ var _skeleton5 = require("../Search/skeleton");
17
17
  * @jsxRuntime classic
18
18
  */
19
19
  /** @jsx jsx */
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
21
 
21
22
  var containerStyles = (0, _react.css)({
22
23
  display: 'flex',
@@ -9,6 +9,7 @@ var _react = require("@emotion/react");
9
9
  * @jsxRuntime classic
10
10
  */
11
11
  /** @jsx jsx */
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
13
 
13
14
  var badgeContainerStyles = (0, _react.css)({
14
15
  position: 'absolute',
@@ -20,6 +20,8 @@ var _styles = require("./styles");
20
20
  */
21
21
  /** @jsx jsx */
22
22
 
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
+
23
25
  var wrapperStyles = (0, _react2.css)({
24
26
  display: 'flex',
25
27
  alignItems: 'center',
@@ -16,6 +16,8 @@ var _skeleton = require("../IconButton/skeleton");
16
16
  */
17
17
  /** @jsx jsx */
18
18
 
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
+
19
21
  var buttonHeight = "var(--ds-space-400, 32px)";
20
22
  var skeletonStyles = (0, _react2.css)({
21
23
  width: 68,
@@ -11,7 +11,7 @@ var _theme = require("../../theme");
11
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
13
13
  * @jsxRuntime classic
14
- */ /** @jsx jsx */
14
+ */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
15
  var buttonHeight = "var(--ds-space-400, 32px)";
16
16
  var skeletonStyles = (0, _react.css)({
17
17
  borderRadius: "var(--ds-border-radius-circle, 50%)",
@@ -19,6 +19,7 @@ var _excluded = ["children", "testId", "tooltip", "isSelected", "isHighlighted"]
19
19
  * @jsxRuntime classic
20
20
  */
21
21
  /** @jsx jsx */
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
23
  var VAR_BUTTON_SELECTED_COLOR = '--button-selected-color';
23
24
  var VAR_BUTTON_SELECTED_BORDER_COLOR = '--button-selected-border-color';
24
25
  var buttonBaseStyles = (0, _react2.css)({
@@ -11,6 +11,8 @@ var _theme = require("../../theme");
11
11
  */
12
12
  /** @jsx jsx */
13
13
 
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
+
14
16
  var paddingAll = 4;
15
17
  var buttonHeight = 32;
16
18
  var skeletonStyles = (0, _react.css)({
@@ -16,6 +16,8 @@ var _PrimaryButton = require("../PrimaryButton");
16
16
  */
17
17
  /** @jsx jsx */
18
18
 
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
+
19
21
  var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
20
22
  marginInlineEnd: 'space.negative.050'
21
23
  });
@@ -19,6 +19,8 @@ var _PrimaryDropdownButton = require("../PrimaryDropdownButton");
19
19
  */
20
20
  /** @jsx jsx */
21
21
 
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
23
+
22
24
  var containerStyles = (0, _react2.css)({
23
25
  display: 'flex',
24
26
  height: '100%',
@@ -12,9 +12,11 @@ var _skeleton = require("../PrimaryButton/skeleton");
12
12
  */
13
13
  /** @jsx jsx */
14
14
 
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
+
15
17
  var primaryButtonSkeletonStyles = (0, _react2.css)({
16
- marginRight: "var(--ds-space-150, 12px)",
17
- marginLeft: "var(--ds-space-150, 12px)"
18
+ marginInlineEnd: "var(--ds-space-150, 12px)",
19
+ marginInlineStart: "var(--ds-space-150, 12px)"
18
20
  });
19
21
 
20
22
  // Internal only
@@ -21,6 +21,7 @@ var _css3;
21
21
  * @jsxRuntime classic
22
22
  */
23
23
  /** @jsx jsx */
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
25
  var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
25
26
  var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
26
27
  var VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE = '--product-home-box-shadow-active';
@@ -13,13 +13,15 @@ var _react2 = require("@emotion/react");
13
13
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
14
  var _constants = require("../../common/constants");
15
15
  var _theme = require("../../theme");
16
- var _utils = require("./utils");
16
+ var _utils = require("../../utils");
17
+ var _utils2 = require("./utils");
17
18
  var _excluded = ["icon", "logo", "siteTitle", "onClick", "href", "onMouseDown", "testId", "logoMaxWidth"];
18
19
  var _css;
19
20
  /**
20
21
  * @jsxRuntime classic
21
22
  */
22
23
  /** @jsx jsx */
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
23
25
  var VAR_LOGO_MAX_WIDTH = '--logo-max-width';
24
26
  var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
25
27
  var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
@@ -131,7 +133,7 @@ var featureFlaggedSiteTitleStyles = (0, _react2.css)((0, _defineProperty2.defaul
131
133
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
132
134
  */
133
135
  var ProductHome = function ProductHome(_ref) {
134
- var _productHomeButtonDyn;
136
+ var _stripEmptyProperties;
135
137
  var Icon = _ref.icon,
136
138
  Logo = _ref.logo,
137
139
  siteTitle = _ref.siteTitle,
@@ -149,12 +151,12 @@ var ProductHome = function ProductHome(_ref) {
149
151
  iconColor = _theme$mode$productHo2 === void 0 ? 'inherit' : _theme$mode$productHo2,
150
152
  _theme$mode$productHo3 = _theme$mode$productHo.textColor,
151
153
  textColor = _theme$mode$productHo3 === void 0 ? theme.mode.productHome.color : _theme$mode$productHo3;
152
- var Tag = (0, _utils.getTag)(onClick, href);
154
+ var Tag = (0, _utils2.getTag)(onClick, href);
153
155
  var preventFocusRing = function preventFocusRing(e) {
154
156
  e.preventDefault();
155
157
  onMouseDown && onMouseDown(e);
156
158
  };
157
- 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);
159
+ var productHomeButtonDynamicStyles = (0, _utils.stripEmptyProperties)((_stripEmptyProperties = {}, (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_LOGO_MAX_WIDTH, "".concat(logoMaxWidth, "px")), _stripEmptyProperties));
158
160
  return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(Tag
159
161
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
160
162
  , (0, _extends2.default)({
@@ -10,11 +10,13 @@ var _react = require("react");
10
10
  var _react2 = require("@emotion/react");
11
11
  var _constants = require("../../common/constants");
12
12
  var _theme = require("../../theme");
13
+ var _utils = require("../../utils");
13
14
  var _css;
14
15
  /**
15
16
  * @jsxRuntime classic
16
17
  */
17
18
  /** @jsx jsx */
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
20
  var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
19
21
  var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
20
22
  var VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE = '--product-home-box-shadow-active';
@@ -115,11 +117,11 @@ var siteTitleStyles = (0, _react2.css)({
115
117
  // Not exported to consumers, only used in NavigationSkeleton
116
118
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
117
119
  var ProductHomeSkeleton = exports.ProductHomeSkeleton = function ProductHomeSkeleton(_ref) {
118
- var _productHomeButtonDyn;
120
+ var _stripEmptyProperties;
119
121
  var showSiteName = _ref.showSiteName;
120
122
  var theme = (0, _theme.useTheme)();
121
123
  var primaryButton = theme.mode.primaryButton;
122
- 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_SITE_TITLE_BG_COLOR_AFTER, theme.mode.skeleton.backgroundColor), _productHomeButtonDyn);
124
+ var productHomeButtonDynamicStyles = (0, _utils.stripEmptyProperties)((_stripEmptyProperties = {}, (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), (0, _defineProperty2.default)(_stripEmptyProperties, VAR_SITE_TITLE_BG_COLOR_AFTER, theme.mode.skeleton.backgroundColor), _stripEmptyProperties));
123
125
  var siteTitleDynamicStyles = (0, _defineProperty2.default)({
124
126
  borderRight: theme.mode.productHome.borderRight,
125
127
  opacity: theme.mode.skeleton.opacity
@@ -13,12 +13,14 @@ var _react2 = require("@emotion/react");
13
13
  var _search = _interopRequireDefault(require("@atlaskit/icon/glyph/search"));
14
14
  var _constants = require("../../common/constants");
15
15
  var _theme = require("../../theme");
16
+ var _utils = require("../../utils");
16
17
  var _IconButton = require("../IconButton");
17
18
  var _excluded = ["placeholder", "tooltip", "label", "value"];
18
19
  /**
19
20
  * @jsxRuntime classic
20
21
  */
21
22
  /** @jsx jsx */
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
24
  var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
23
25
  position: 'relative',
24
26
  marginInlineEnd: "var(--ds-space-100, 8px)",
@@ -75,7 +77,7 @@ var searchIconStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@medi
75
77
  display: 'none !important'
76
78
  }));
77
79
  var SearchComponent = function SearchComponent(props) {
78
- var _searchInputDynamicSt;
80
+ var _stripEmptyProperties;
79
81
  var onClick = props.onClick,
80
82
  placeholder = props.placeholder,
81
83
  label = props.label,
@@ -90,7 +92,7 @@ var SearchComponent = function SearchComponent(props) {
90
92
  // @ts-expect-error
91
93
  onClick && onClick.apply(void 0, arguments);
92
94
  };
93
- var searchInputDynamicStyles = (_searchInputDynamicSt = {}, (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchBackgroundColor, search.default.backgroundColor), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchColor, search.default.color), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchBorderColor, search.default.borderColor), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchFocusBorderColor, search.focus.borderColor), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchHoverBackgroundColor, search.hover.backgroundColor), _searchInputDynamicSt);
95
+ var searchInputDynamicStyles = (0, _utils.stripEmptyProperties)((_stripEmptyProperties = {}, (0, _defineProperty2.default)(_stripEmptyProperties, _constants.varSearchBackgroundColor, search.default.backgroundColor), (0, _defineProperty2.default)(_stripEmptyProperties, _constants.varSearchColor, search.default.color), (0, _defineProperty2.default)(_stripEmptyProperties, _constants.varSearchBorderColor, search.default.borderColor), (0, _defineProperty2.default)(_stripEmptyProperties, _constants.varSearchFocusBorderColor, search.focus.borderColor), (0, _defineProperty2.default)(_stripEmptyProperties, _constants.varSearchHoverBackgroundColor, search.hover.backgroundColor), _stripEmptyProperties));
94
96
  return (0, _react2.jsx)("div", {
95
97
  css: searchInputContainerStyles,
96
98
  role: "search"
@@ -16,6 +16,8 @@ var _skeleton = require("../IconButton/skeleton");
16
16
  */
17
17
  /** @jsx jsx */
18
18
 
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
+
19
21
  var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
20
22
  // eslint-disable-next-line @atlaskit/design-system/no-physical-properties
21
23
  marginRight: "var(--ds-space-100, 8px)",
@@ -10,6 +10,7 @@ var _theme = require("../../theme");
10
10
  * @jsxRuntime classic
11
11
  */
12
12
  /** @jsx jsx */
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
14
 
14
15
  var skeletonCreateButtonStyles = (0, _react.css)({
15
16
  height: 32,
@@ -10,6 +10,7 @@ var _theme = require("../../theme");
10
10
  * @jsxRuntime classic
11
11
  */
12
12
  /** @jsx jsx */
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
14
 
14
15
  var skeletonIconButtonStyles = (0, _react.css)({
15
16
  margin: 0,
@@ -8,10 +8,11 @@ exports.SkeletonPrimaryButton = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _theme = require("../../theme");
11
+ var _utils = require("../../utils");
11
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
13
14
  * @jsxRuntime classic
14
- */ /** @jsx jsx */
15
+ */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
16
  var VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
16
17
  var VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
17
18
  var primaryButtonSkeletonStyles = (0, _react.css)({
@@ -103,9 +104,9 @@ var SkeletonPrimaryButton = exports.SkeletonPrimaryButton = function SkeletonPri
103
104
  testId = _ref.testId;
104
105
  var theme = (0, _theme.useTheme)();
105
106
  var primaryButton = theme.mode.primaryButton;
106
- var dynamicStyles = _objectSpread(_objectSpread(_objectSpread({}, primaryButton.default), isHighlighted && {
107
+ var dynamicStyles = (0, _utils.stripEmptyProperties)(_objectSpread(_objectSpread(_objectSpread({}, primaryButton.default), isHighlighted && {
107
108
  color: primaryButton.selected.color
108
- }), {}, (_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));
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)));
109
110
  return (0, _react.jsx)("button", {
110
111
  type: "button"
111
112
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.stripEmptyProperties = stripEmptyProperties;
8
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
+ /**
10
+ * Returns a new object with only non-empty properties of the input object.
11
+ *
12
+ * In this context, "empty" refers to properties with `null`, `undefined`, or `""`
13
+ * (empty string) values.
14
+ *
15
+ * @param obj - The input object.
16
+ * @returns A new object with non-empty properties of the input object.
17
+ */
18
+ function stripEmptyProperties(obj) {
19
+ return Object.entries(obj).reduce(function (acc, _ref) {
20
+ var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
21
+ key = _ref2[0],
22
+ value = _ref2[1];
23
+ if (value !== null && value !== undefined && value !== '') {
24
+ acc[key] = value;
25
+ }
26
+ return acc;
27
+ }, {});
28
+ }
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
7
8
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { N30 } from '@atlaskit/theme/colors';
7
8
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  const badgeContainerStyles = css({
7
8
  position: 'absolute',
@@ -3,6 +3,8 @@
3
3
  */
4
4
  /** @jsx jsx */
5
5
  import { Fragment } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
8
  import { css, jsx } from '@emotion/react';
7
9
  import Button from '@atlaskit/button/custom-theme-button';
8
10
  import AddIcon from '@atlaskit/icon/glyph/editor/add';
@@ -3,6 +3,8 @@
3
3
  */
4
4
  /** @jsx jsx */
5
5
  import { Fragment } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
8
  import { css, jsx } from '@emotion/react';
7
9
  import { CREATE_BREAKPOINT } from '../../common/constants';
8
10
  import { useTheme } from '../../theme';
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { useTheme } from '../../theme';
7
8
  const buttonHeight = "var(--ds-space-400, 32px)";
@@ -4,6 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  */
5
5
  /** @jsx jsx */
6
6
  import { forwardRef } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
9
  import { css, jsx } from '@emotion/react';
8
10
  import Button from '@atlaskit/button/custom-theme-button';
9
11
  import Tooltip from '@atlaskit/tooltip';
@@ -3,6 +3,7 @@
3
3
  */
4
4
  /** @jsx jsx */
5
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
7
  import { css, jsx } from '@emotion/react';
7
8
  import { useTheme } from '../../theme';
8
9
  const paddingAll = 4;
@@ -4,6 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  */
5
5
  /** @jsx jsx */
6
6
  import { forwardRef } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
9
  import { jsx } from '@emotion/react';
8
10
  import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
9
11
  import { Bleed, xcss } from '@atlaskit/primitives';
@@ -4,6 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  */
5
5
  /** @jsx jsx */
6
6
  import { useCallback, useState } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
9
  import { css, jsx } from '@emotion/react';
8
10
  import Popup from '@atlaskit/popup';
9
11
  import { N700 } from '@atlaskit/theme/colors';
@@ -3,11 +3,13 @@
3
3
  */
4
4
  /** @jsx jsx */
5
5
  import { Fragment, memo } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
8
  import { css, jsx } from '@emotion/react';
7
9
  import { PrimaryButtonSkeleton } from '../PrimaryButton/skeleton';
8
10
  const primaryButtonSkeletonStyles = css({
9
- marginRight: "var(--ds-space-150, 12px)",
10
- marginLeft: "var(--ds-space-150, 12px)"
11
+ marginInlineEnd: "var(--ds-space-150, 12px)",
12
+ marginInlineStart: "var(--ds-space-150, 12px)"
11
13
  });
12
14
 
13
15
  // Internal only
@@ -4,6 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  */
5
5
  /** @jsx jsx */
6
6
  import { Fragment } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
9
  import { css, jsx } from '@emotion/react';
8
10
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
11
  import { B200 } from '@atlaskit/theme/colors';
@@ -4,10 +4,13 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  */
5
5
  /** @jsx jsx */
6
6
  import { Fragment } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
9
  import { css, jsx } from '@emotion/react';
8
10
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
11
  import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
10
12
  import { useTheme } from '../../theme';
13
+ import { stripEmptyProperties } from '../../utils';
11
14
  import { getTag } from './utils';
12
15
  const VAR_LOGO_MAX_WIDTH = '--logo-max-width';
13
16
  const VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
@@ -151,7 +154,7 @@ const ProductHome = ({
151
154
  e.preventDefault();
152
155
  onMouseDown && onMouseDown(e);
153
156
  };
154
- const productHomeButtonDynamicStyles = {
157
+ const productHomeButtonDynamicStyles = stripEmptyProperties({
155
158
  [VAR_PRODUCT_HOME_COLOR_ACTIVE]: primaryButton.active.color,
156
159
  [VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE]: primaryButton.active.backgroundColor,
157
160
  [VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE]: primaryButton.active.boxShadow,
@@ -162,7 +165,7 @@ const ProductHome = ({
162
165
  [VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER]: primaryButton.hover.backgroundColor,
163
166
  [VAR_PRODUCT_HOME_BOX_SHADOW_HOVER]: primaryButton.hover.boxShadow,
164
167
  [VAR_LOGO_MAX_WIDTH]: `${logoMaxWidth}px`
165
- };
168
+ });
166
169
  return jsx(Fragment, null, jsx(Tag
167
170
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
168
171
  , _extends({
@@ -4,9 +4,12 @@
4
4
  /** @jsx jsx */
5
5
 
6
6
  import { Fragment } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
9
  import { css, jsx } from '@emotion/react';
8
10
  import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
9
11
  import { useTheme } from '../../theme';
12
+ import { stripEmptyProperties } from '../../utils';
10
13
  const VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
11
14
  const VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
12
15
  const VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE = '--product-home-box-shadow-active';
@@ -119,7 +122,7 @@ export const ProductHomeSkeleton = ({
119
122
  }) => {
120
123
  const theme = useTheme();
121
124
  const primaryButton = theme.mode.primaryButton;
122
- const productHomeButtonDynamicStyles = {
125
+ const productHomeButtonDynamicStyles = stripEmptyProperties({
123
126
  [VAR_PRODUCT_HOME_COLOR_ACTIVE]: primaryButton.active.color,
124
127
  [VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE]: primaryButton.active.backgroundColor,
125
128
  [VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE]: primaryButton.active.boxShadow,
@@ -130,7 +133,7 @@ export const ProductHomeSkeleton = ({
130
133
  [VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER]: primaryButton.hover.backgroundColor,
131
134
  [VAR_PRODUCT_HOME_BOX_SHADOW_HOVER]: primaryButton.hover.boxShadow,
132
135
  [VAR_SITE_TITLE_BG_COLOR_AFTER]: theme.mode.skeleton.backgroundColor
133
- };
136
+ });
134
137
  const siteTitleDynamicStyles = {
135
138
  borderRight: theme.mode.productHome.borderRight,
136
139
  opacity: theme.mode.skeleton.opacity,
@@ -4,10 +4,13 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  */
5
5
  /** @jsx jsx */
6
6
  import { Fragment } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
9
  import { css, jsx } from '@emotion/react';
8
10
  import SearchIcon from '@atlaskit/icon/glyph/search';
9
11
  import { CREATE_BREAKPOINT, varSearchBackgroundColor, varSearchBorderColor, varSearchColor, varSearchFocusBorderColor, varSearchHoverBackgroundColor } from '../../common/constants';
10
12
  import { useTheme } from '../../theme';
13
+ import { stripEmptyProperties } from '../../utils';
11
14
  import { IconButton } from '../IconButton';
12
15
  const searchInputContainerStyles = css({
13
16
  position: 'relative',
@@ -86,13 +89,13 @@ const SearchComponent = props => {
86
89
  // @ts-expect-error
87
90
  onClick && onClick(...args);
88
91
  };
89
- const searchInputDynamicStyles = {
92
+ const searchInputDynamicStyles = stripEmptyProperties({
90
93
  [varSearchBackgroundColor]: search.default.backgroundColor,
91
94
  [varSearchColor]: search.default.color,
92
95
  [varSearchBorderColor]: search.default.borderColor,
93
96
  [varSearchFocusBorderColor]: search.focus.borderColor,
94
97
  [varSearchHoverBackgroundColor]: search.hover.backgroundColor
95
- };
98
+ });
96
99
  return jsx("div", {
97
100
  css: searchInputContainerStyles,
98
101
  role: "search"
@@ -3,6 +3,8 @@
3
3
  */
4
4
  /** @jsx jsx */
5
5
  import { Fragment } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
8
  import { css, jsx } from '@emotion/react';
7
9
  import { CREATE_BREAKPOINT } from '../../common/constants';
8
10
  import { useTheme } from '../../theme';
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { useTheme } from '../../theme';
7
8
  const skeletonCreateButtonStyles = css({
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { useTheme } from '../../theme';
7
8
  const skeletonIconButtonStyles = css({
@@ -2,8 +2,10 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { useTheme } from '../../theme';
8
+ import { stripEmptyProperties } from '../../utils';
7
9
  const VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
8
10
  const VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
9
11
  const primaryButtonSkeletonStyles = css({
@@ -93,14 +95,14 @@ export const SkeletonPrimaryButton = ({
93
95
  }) => {
94
96
  const theme = useTheme();
95
97
  const primaryButton = theme.mode.primaryButton;
96
- const dynamicStyles = {
98
+ const dynamicStyles = stripEmptyProperties({
97
99
  ...primaryButton.default,
98
100
  ...(isHighlighted && {
99
101
  color: primaryButton.selected.color
100
102
  }),
101
103
  [VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR]: primaryButton.selected.borderColor,
102
104
  [VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR]: isHighlighted ? primaryButton.default.borderColor : primaryButton.default.color
103
- };
105
+ });
104
106
  return jsx("button", {
105
107
  type: "button"
106
108
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Returns a new object with only non-empty properties of the input object.
3
+ *
4
+ * In this context, "empty" refers to properties with `null`, `undefined`, or `""`
5
+ * (empty string) values.
6
+ *
7
+ * @param obj - The input object.
8
+ * @returns A new object with non-empty properties of the input object.
9
+ */
10
+ export function stripEmptyProperties(obj) {
11
+ return Object.entries(obj).reduce((acc, [key, value]) => {
12
+ if (value !== null && value !== undefined && value !== '') {
13
+ acc[key] = value;
14
+ }
15
+ return acc;
16
+ }, {});
17
+ }
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
7
8
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { N30 } from '@atlaskit/theme/colors';
7
8
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  var badgeContainerStyles = css({
7
8
  position: 'absolute',
@@ -4,6 +4,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  */
5
5
  /** @jsx jsx */
6
6
  import { Fragment } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
9
  import { css, jsx } from '@emotion/react';
8
10
  import Button from '@atlaskit/button/custom-theme-button';
9
11
  import AddIcon from '@atlaskit/icon/glyph/editor/add';
@@ -4,6 +4,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  */
5
5
  /** @jsx jsx */
6
6
  import { Fragment } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
9
  import { css, jsx } from '@emotion/react';
8
10
  import { CREATE_BREAKPOINT } from '../../common/constants';
9
11
  import { useTheme } from '../../theme';
@@ -5,6 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  * @jsxRuntime classic
6
6
  */
7
7
  /** @jsx jsx */
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
9
  import { css, jsx } from '@emotion/react';
9
10
  import { useTheme } from '../../theme';
10
11
  var buttonHeight = "var(--ds-space-400, 32px)";
@@ -7,6 +7,8 @@ var _excluded = ["children", "testId", "tooltip", "isSelected", "isHighlighted"]
7
7
  */
8
8
  /** @jsx jsx */
9
9
  import { forwardRef } from 'react';
10
+
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
12
  import { css, jsx } from '@emotion/react';
11
13
  import Button from '@atlaskit/button/custom-theme-button';
12
14
  import Tooltip from '@atlaskit/tooltip';
@@ -3,6 +3,7 @@
3
3
  */
4
4
  /** @jsx jsx */
5
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
7
  import { css, jsx } from '@emotion/react';
7
8
  import { useTheme } from '../../theme';
8
9
  var paddingAll = 4;
@@ -4,6 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  */
5
5
  /** @jsx jsx */
6
6
  import { forwardRef } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
9
  import { jsx } from '@emotion/react';
8
10
  import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
9
11
  import { Bleed, xcss } from '@atlaskit/primitives';
@@ -5,6 +5,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
5
  */
6
6
  /** @jsx jsx */
7
7
  import { useCallback, useState } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
10
  import { css, jsx } from '@emotion/react';
9
11
  import Popup from '@atlaskit/popup';
10
12
  import { N700 } from '@atlaskit/theme/colors';
@@ -3,11 +3,13 @@
3
3
  */
4
4
  /** @jsx jsx */
5
5
  import { Fragment, memo } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
8
  import { css, jsx } from '@emotion/react';
7
9
  import { PrimaryButtonSkeleton } from '../PrimaryButton/skeleton';
8
10
  var primaryButtonSkeletonStyles = css({
9
- marginRight: "var(--ds-space-150, 12px)",
10
- marginLeft: "var(--ds-space-150, 12px)"
11
+ marginInlineEnd: "var(--ds-space-150, 12px)",
12
+ marginInlineStart: "var(--ds-space-150, 12px)"
11
13
  });
12
14
 
13
15
  // Internal only
@@ -8,6 +8,8 @@ var _css3;
8
8
  */
9
9
  /** @jsx jsx */
10
10
  import { Fragment } from 'react';
11
+
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
13
  import { css, jsx } from '@emotion/react';
12
14
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
13
15
  import { B200 } from '@atlaskit/theme/colors';
@@ -8,10 +8,13 @@ var _css;
8
8
  */
9
9
  /** @jsx jsx */
10
10
  import { Fragment } from 'react';
11
+
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
13
  import { css, jsx } from '@emotion/react';
12
14
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
13
15
  import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
14
16
  import { useTheme } from '../../theme';
17
+ import { stripEmptyProperties } from '../../utils';
15
18
  import { getTag } from './utils';
16
19
  var VAR_LOGO_MAX_WIDTH = '--logo-max-width';
17
20
  var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
@@ -124,7 +127,7 @@ var featureFlaggedSiteTitleStyles = css(_defineProperty({
124
127
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
125
128
  */
126
129
  var ProductHome = function ProductHome(_ref) {
127
- var _productHomeButtonDyn;
130
+ var _stripEmptyProperties;
128
131
  var Icon = _ref.icon,
129
132
  Logo = _ref.logo,
130
133
  siteTitle = _ref.siteTitle,
@@ -147,7 +150,7 @@ var ProductHome = function ProductHome(_ref) {
147
150
  e.preventDefault();
148
151
  onMouseDown && onMouseDown(e);
149
152
  };
150
- 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);
153
+ var productHomeButtonDynamicStyles = stripEmptyProperties((_stripEmptyProperties = {}, _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _defineProperty(_stripEmptyProperties, VAR_LOGO_MAX_WIDTH, "".concat(logoMaxWidth, "px")), _stripEmptyProperties));
151
154
  return jsx(Fragment, null, jsx(Tag
152
155
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
153
156
  , _extends({
@@ -6,9 +6,12 @@ var _css;
6
6
  /** @jsx jsx */
7
7
 
8
8
  import { Fragment } from 'react';
9
+
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
11
  import { css, jsx } from '@emotion/react';
10
12
  import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
11
13
  import { useTheme } from '../../theme';
14
+ import { stripEmptyProperties } from '../../utils';
12
15
  var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
13
16
  var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
14
17
  var VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE = '--product-home-box-shadow-active';
@@ -109,11 +112,11 @@ var siteTitleStyles = css({
109
112
  // Not exported to consumers, only used in NavigationSkeleton
110
113
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
111
114
  export var ProductHomeSkeleton = function ProductHomeSkeleton(_ref) {
112
- var _productHomeButtonDyn;
115
+ var _stripEmptyProperties;
113
116
  var showSiteName = _ref.showSiteName;
114
117
  var theme = useTheme();
115
118
  var primaryButton = theme.mode.primaryButton;
116
- 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_SITE_TITLE_BG_COLOR_AFTER, theme.mode.skeleton.backgroundColor), _productHomeButtonDyn);
119
+ var productHomeButtonDynamicStyles = stripEmptyProperties((_stripEmptyProperties = {}, _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), _defineProperty(_stripEmptyProperties, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _defineProperty(_stripEmptyProperties, VAR_SITE_TITLE_BG_COLOR_AFTER, theme.mode.skeleton.backgroundColor), _stripEmptyProperties));
117
120
  var siteTitleDynamicStyles = _defineProperty({
118
121
  borderRight: theme.mode.productHome.borderRight,
119
122
  opacity: theme.mode.skeleton.opacity
@@ -7,10 +7,13 @@ var _excluded = ["placeholder", "tooltip", "label", "value"];
7
7
  */
8
8
  /** @jsx jsx */
9
9
  import { Fragment } from 'react';
10
+
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
12
  import { css, jsx } from '@emotion/react';
11
13
  import SearchIcon from '@atlaskit/icon/glyph/search';
12
14
  import { CREATE_BREAKPOINT, varSearchBackgroundColor, varSearchBorderColor, varSearchColor, varSearchFocusBorderColor, varSearchHoverBackgroundColor } from '../../common/constants';
13
15
  import { useTheme } from '../../theme';
16
+ import { stripEmptyProperties } from '../../utils';
14
17
  import { IconButton } from '../IconButton';
15
18
  var searchInputContainerStyles = css(_defineProperty({
16
19
  position: 'relative',
@@ -68,7 +71,7 @@ var searchIconStyles = css(_defineProperty({}, "@media (min-width: ".concat(CREA
68
71
  display: 'none !important'
69
72
  }));
70
73
  var SearchComponent = function SearchComponent(props) {
71
- var _searchInputDynamicSt;
74
+ var _stripEmptyProperties;
72
75
  var onClick = props.onClick,
73
76
  placeholder = props.placeholder,
74
77
  label = props.label,
@@ -83,7 +86,7 @@ var SearchComponent = function SearchComponent(props) {
83
86
  // @ts-expect-error
84
87
  onClick && onClick.apply(void 0, arguments);
85
88
  };
86
- var searchInputDynamicStyles = (_searchInputDynamicSt = {}, _defineProperty(_searchInputDynamicSt, varSearchBackgroundColor, search.default.backgroundColor), _defineProperty(_searchInputDynamicSt, varSearchColor, search.default.color), _defineProperty(_searchInputDynamicSt, varSearchBorderColor, search.default.borderColor), _defineProperty(_searchInputDynamicSt, varSearchFocusBorderColor, search.focus.borderColor), _defineProperty(_searchInputDynamicSt, varSearchHoverBackgroundColor, search.hover.backgroundColor), _searchInputDynamicSt);
89
+ var searchInputDynamicStyles = stripEmptyProperties((_stripEmptyProperties = {}, _defineProperty(_stripEmptyProperties, varSearchBackgroundColor, search.default.backgroundColor), _defineProperty(_stripEmptyProperties, varSearchColor, search.default.color), _defineProperty(_stripEmptyProperties, varSearchBorderColor, search.default.borderColor), _defineProperty(_stripEmptyProperties, varSearchFocusBorderColor, search.focus.borderColor), _defineProperty(_stripEmptyProperties, varSearchHoverBackgroundColor, search.hover.backgroundColor), _stripEmptyProperties));
87
90
  return jsx("div", {
88
91
  css: searchInputContainerStyles,
89
92
  role: "search"
@@ -4,6 +4,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  */
5
5
  /** @jsx jsx */
6
6
  import { Fragment } from 'react';
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
9
  import { css, jsx } from '@emotion/react';
8
10
  import { CREATE_BREAKPOINT } from '../../common/constants';
9
11
  import { useTheme } from '../../theme';
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { useTheme } from '../../theme';
7
8
  var skeletonCreateButtonStyles = css({
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  */
4
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { css, jsx } from '@emotion/react';
6
7
  import { useTheme } from '../../theme';
7
8
  var skeletonIconButtonStyles = css({
@@ -5,8 +5,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  * @jsxRuntime classic
6
6
  */
7
7
  /** @jsx jsx */
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
9
  import { css, jsx } from '@emotion/react';
9
10
  import { useTheme } from '../../theme';
11
+ import { stripEmptyProperties } from '../../utils';
10
12
  var VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
11
13
  var VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
12
14
  var primaryButtonSkeletonStyles = css({
@@ -98,9 +100,9 @@ export var SkeletonPrimaryButton = function SkeletonPrimaryButton(_ref) {
98
100
  testId = _ref.testId;
99
101
  var theme = useTheme();
100
102
  var primaryButton = theme.mode.primaryButton;
101
- var dynamicStyles = _objectSpread(_objectSpread(_objectSpread({}, primaryButton.default), isHighlighted && {
103
+ var dynamicStyles = stripEmptyProperties(_objectSpread(_objectSpread(_objectSpread({}, primaryButton.default), isHighlighted && {
102
104
  color: primaryButton.selected.color
103
- }), {}, (_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));
105
+ }), {}, (_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)));
104
106
  return jsx("button", {
105
107
  type: "button"
106
108
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -0,0 +1,21 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ /**
3
+ * Returns a new object with only non-empty properties of the input object.
4
+ *
5
+ * In this context, "empty" refers to properties with `null`, `undefined`, or `""`
6
+ * (empty string) values.
7
+ *
8
+ * @param obj - The input object.
9
+ * @returns A new object with non-empty properties of the input object.
10
+ */
11
+ export function stripEmptyProperties(obj) {
12
+ return Object.entries(obj).reduce(function (acc, _ref) {
13
+ var _ref2 = _slicedToArray(_ref, 2),
14
+ key = _ref2[0],
15
+ value = _ref2[1];
16
+ if (value !== null && value !== undefined && value !== '') {
17
+ acc[key] = value;
18
+ }
19
+ return acc;
20
+ }, {});
21
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns a new object with only non-empty properties of the input object.
3
+ *
4
+ * In this context, "empty" refers to properties with `null`, `undefined`, or `""`
5
+ * (empty string) values.
6
+ *
7
+ * @param obj - The input object.
8
+ * @returns A new object with non-empty properties of the input object.
9
+ */
10
+ export declare function stripEmptyProperties<T extends object>(obj: T): Partial<T>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns a new object with only non-empty properties of the input object.
3
+ *
4
+ * In this context, "empty" refers to properties with `null`, `undefined`, or `""`
5
+ * (empty string) values.
6
+ *
7
+ * @param obj - The input object.
8
+ * @returns A new object with non-empty properties of the input object.
9
+ */
10
+ export declare function stripEmptyProperties<T extends object>(obj: T): Partial<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,16 +44,16 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@atlaskit/analytics-namespaced-context": "^6.10.0",
47
- "@atlaskit/button": "^17.17.0",
47
+ "@atlaskit/button": "^17.23.0",
48
48
  "@atlaskit/ds-lib": "^2.3.0",
49
- "@atlaskit/icon": "^22.3.0",
49
+ "@atlaskit/icon": "^22.4.0",
50
50
  "@atlaskit/logo": "*",
51
51
  "@atlaskit/platform-feature-flags": "^0.2.0",
52
- "@atlaskit/popup": "^1.18.0",
53
- "@atlaskit/primitives": "^7.3.0",
54
- "@atlaskit/theme": "^12.9.0",
55
- "@atlaskit/tokens": "^1.50.0",
56
- "@atlaskit/tooltip": "^18.4.0",
52
+ "@atlaskit/popup": "^1.19.0",
53
+ "@atlaskit/primitives": "^8.0.0",
54
+ "@atlaskit/theme": "^12.11.0",
55
+ "@atlaskit/tokens": "^1.52.0",
56
+ "@atlaskit/tooltip": "^18.5.0",
57
57
  "@atlaskit/width-detector": "^4.2.0",
58
58
  "@babel/runtime": "^7.0.0",
59
59
  "@emotion/react": "^11.7.1",
@@ -66,7 +66,7 @@
66
66
  "devDependencies": {
67
67
  "@af/accessibility-testing": "*",
68
68
  "@af/visual-regression": "*",
69
- "@atlaskit/dropdown-menu": "^12.11.0",
69
+ "@atlaskit/dropdown-menu": "^12.13.0",
70
70
  "@atlaskit/notification-indicator": "*",
71
71
  "@atlaskit/notification-log-client": "*",
72
72
  "@atlaskit/visual-regression": "*",