@atlaskit/atlassian-navigation 3.3.2 → 3.3.4

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 3.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+
9
+ ## 3.3.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#82544](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/82544) [`c0002528c07e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c0002528c07e) - Refactor border width style to make it work in SSR
14
+
3
15
  ## 3.3.2
4
16
 
5
17
  ### Patch Changes
@@ -34,13 +34,19 @@ var searchInputIconStyles = (0, _react2.css)({
34
34
  left: '10px',
35
35
  pointerEvents: 'none'
36
36
  });
37
+ var newSearchBorderStyles = (0, _react2.css)({
38
+ border: "var(--ds-border-width, 1px)".concat(" solid"),
39
+ '&:focus': {
40
+ boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " var(", _constants.varSearchFocusBorderColor, ")")
41
+ }
42
+ });
37
43
  var searchInputStyles = (0, _react2.css)({
38
44
  boxSizing: 'border-box',
39
45
  width: '220px',
40
46
  height: "var(--ds-space-400, 32px)",
41
47
  padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
42
48
  backgroundColor: "var(".concat(_constants.varSearchBackgroundColor, ")"),
43
- border: "".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : '2px', " solid"),
49
+ border: '2px solid',
44
50
  borderColor: "var(".concat(_constants.varSearchBorderColor, ")"),
45
51
  borderRadius: "var(--ds-border-radius-200, 6px)",
46
52
  color: "var(".concat(_constants.varSearchColor, ")"),
@@ -50,8 +56,7 @@ var searchInputStyles = (0, _react2.css)({
50
56
  color: 'inherit'
51
57
  },
52
58
  '&:focus': {
53
- borderColor: "var(".concat(_constants.varSearchFocusBorderColor, ")"),
54
- boxShadow: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " var(", _constants.varSearchFocusBorderColor, ")") : undefined
59
+ borderColor: "var(".concat(_constants.varSearchFocusBorderColor, ")")
55
60
  },
56
61
  '&:hover': {
57
62
  backgroundColor: "var(".concat(_constants.varSearchHoverBackgroundColor, ")")
@@ -86,7 +91,7 @@ var SearchComponent = function SearchComponent(props) {
86
91
  label: ""
87
92
  })), (0, _react2.jsx)("input", {
88
93
  style: searchInputDynamicStyles,
89
- css: searchInputStyles,
94
+ css: [searchInputStyles, (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') && newSearchBorderStyles],
90
95
  "aria-label": label,
91
96
  placeholder: placeholder,
92
97
  onChange: onChange,
@@ -26,13 +26,19 @@ const searchInputIconStyles = css({
26
26
  left: '10px',
27
27
  pointerEvents: 'none'
28
28
  });
29
+ const newSearchBorderStyles = css({
30
+ border: `${"var(--ds-border-width, 1px)"} solid`,
31
+ '&:focus': {
32
+ boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} var(${varSearchFocusBorderColor})`
33
+ }
34
+ });
29
35
  const searchInputStyles = css({
30
36
  boxSizing: 'border-box',
31
37
  width: '220px',
32
38
  height: "var(--ds-space-400, 32px)",
33
39
  padding: `0 ${"var(--ds-space-100, 8px)"} 0 ${"var(--ds-space-500, 40px)"}`,
34
40
  backgroundColor: `var(${varSearchBackgroundColor})`,
35
- border: `${getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : '2px'} solid`,
41
+ border: '2px solid',
36
42
  borderColor: `var(${varSearchBorderColor})`,
37
43
  borderRadius: "var(--ds-border-radius-200, 6px)",
38
44
  color: `var(${varSearchColor})`,
@@ -42,8 +48,7 @@ const searchInputStyles = css({
42
48
  color: 'inherit'
43
49
  },
44
50
  '&:focus': {
45
- borderColor: `var(${varSearchFocusBorderColor})`,
46
- boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? `inset 0 0 0 ${"var(--ds-border-width, 1px)"} var(${varSearchFocusBorderColor})` : undefined
51
+ borderColor: `var(${varSearchFocusBorderColor})`
47
52
  },
48
53
  '&:hover': {
49
54
  backgroundColor: `var(${varSearchHoverBackgroundColor})`
@@ -88,7 +93,7 @@ const SearchComponent = props => {
88
93
  label: ""
89
94
  })), jsx("input", {
90
95
  style: searchInputDynamicStyles,
91
- css: searchInputStyles,
96
+ css: [searchInputStyles, getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') && newSearchBorderStyles],
92
97
  "aria-label": label,
93
98
  placeholder: placeholder,
94
99
  onChange: onChange,
@@ -27,13 +27,19 @@ var searchInputIconStyles = css({
27
27
  left: '10px',
28
28
  pointerEvents: 'none'
29
29
  });
30
+ var newSearchBorderStyles = css({
31
+ border: "var(--ds-border-width, 1px)".concat(" solid"),
32
+ '&:focus': {
33
+ boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " var(", varSearchFocusBorderColor, ")")
34
+ }
35
+ });
30
36
  var searchInputStyles = css({
31
37
  boxSizing: 'border-box',
32
38
  width: '220px',
33
39
  height: "var(--ds-space-400, 32px)",
34
40
  padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
35
41
  backgroundColor: "var(".concat(varSearchBackgroundColor, ")"),
36
- border: "".concat(getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : '2px', " solid"),
42
+ border: '2px solid',
37
43
  borderColor: "var(".concat(varSearchBorderColor, ")"),
38
44
  borderRadius: "var(--ds-border-radius-200, 6px)",
39
45
  color: "var(".concat(varSearchColor, ")"),
@@ -43,8 +49,7 @@ var searchInputStyles = css({
43
49
  color: 'inherit'
44
50
  },
45
51
  '&:focus': {
46
- borderColor: "var(".concat(varSearchFocusBorderColor, ")"),
47
- boxShadow: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " var(", varSearchFocusBorderColor, ")") : undefined
52
+ borderColor: "var(".concat(varSearchFocusBorderColor, ")")
48
53
  },
49
54
  '&:hover': {
50
55
  backgroundColor: "var(".concat(varSearchHoverBackgroundColor, ")")
@@ -79,7 +84,7 @@ var SearchComponent = function SearchComponent(props) {
79
84
  label: ""
80
85
  })), jsx("input", {
81
86
  style: searchInputDynamicStyles,
82
- css: searchInputStyles,
87
+ css: [searchInputStyles, getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') && newSearchBorderStyles],
83
88
  "aria-label": label,
84
89
  placeholder: placeholder,
85
90
  onChange: onChange,
@@ -1,10 +1,10 @@
1
1
  export declare const actionSectionDesktopCSS: {
2
- [x: string]: {
2
+ "@media (max-width: 1129px)": {
3
3
  display: string;
4
4
  };
5
5
  };
6
6
  export declare const actionSectionMobileCSS: {
7
- [x: string]: {
7
+ "@media (min-width: 1130px)": {
8
8
  display: string;
9
9
  };
10
10
  };
@@ -1,10 +1,10 @@
1
1
  export declare const actionSectionDesktopCSS: {
2
- [x: string]: {
2
+ "@media (max-width: 1129px)": {
3
3
  display: string;
4
4
  };
5
5
  };
6
6
  export declare const actionSectionMobileCSS: {
7
- [x: string]: {
7
+ "@media (min-width: 1130px)": {
8
8
  display: string;
9
9
  };
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "3.3.2",
3
+ "version": "3.3.4",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,9 +49,9 @@
49
49
  "@atlaskit/logo": "*",
50
50
  "@atlaskit/platform-feature-flags": "^0.2.0",
51
51
  "@atlaskit/popup": "^1.13.0",
52
- "@atlaskit/primitives": "^5.0.0",
52
+ "@atlaskit/primitives": "^5.1.0",
53
53
  "@atlaskit/theme": "^12.6.0",
54
- "@atlaskit/tokens": "^1.41.0",
54
+ "@atlaskit/tokens": "^1.42.0",
55
55
  "@atlaskit/tooltip": "^18.1.0",
56
56
  "@atlaskit/width-detector": "^4.1.0",
57
57
  "@babel/runtime": "^7.0.0",
@@ -78,7 +78,7 @@
78
78
  "react": "^16.8.0",
79
79
  "react-dom": "^16.8.0",
80
80
  "react-intl-next": "npm:react-intl@^5.18.1",
81
- "typescript": "~4.9.5"
81
+ "typescript": "~5.4.2"
82
82
  },
83
83
  "techstack": {
84
84
  "@atlassian/frontend": {
@@ -113,4 +113,4 @@
113
113
  "type": "boolean"
114
114
  }
115
115
  }
116
- }
116
+ }
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/skeleton.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/skeleton.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/skeleton-help-button.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/skeleton-help-button.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/skeleton-notification-button.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/skeleton-notification-button.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/skeleton-settings-button.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/skeleton-settings-button.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/skeleton-switcher-button.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/skeleton-switcher-button.d.ts"
12
12
  ]