@atlaskit/select 17.3.0 → 17.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 17.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#81644](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81644) [`8ab7a816dca7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8ab7a816dca7) - Revert input border change from the previous version
8
+
3
9
  ## 17.3.0
4
10
 
5
11
  ### Minor Changes
@@ -9,7 +9,7 @@ var _reactSelect = _interopRequireDefault(require("react-select"));
9
9
  var _analyticsNext = require("@atlaskit/analytics-next");
10
10
  var _createSelect = _interopRequireDefault(require("./createSelect"));
11
11
  var packageName = "@atlaskit/select";
12
- var packageVersion = "17.3.0";
12
+ var packageVersion = "17.3.1";
13
13
  var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
14
14
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
15
15
  var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
@@ -17,6 +17,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
17
17
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
18
  var _react = require("@emotion/react");
19
19
  var _react2 = require("react");
20
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
21
  var _radio = _interopRequireDefault(require("@atlaskit/icon/glyph/radio"));
21
22
  var _checkbox = _interopRequireDefault(require("@atlaskit/icon/glyph/checkbox"));
22
23
  var _colors = require("@atlaskit/theme/colors");
@@ -136,7 +137,7 @@ var baseIconStyles = (0, _react.css)({
136
137
  // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
137
138
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
138
139
  '& svg rect, & svg circle:first-of-type': {
139
- strokeWidth: "var(--ds-border-width, 1px)",
140
+ strokeWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : "var(--ds-border-width-outline, 2px)",
140
141
  strokeLinejoin: 'round'
141
142
  }
142
143
  });
@@ -68,18 +68,20 @@ function baseStyles(validationState) {
68
68
  backgroundColorHover = 'transparent';
69
69
  borderColorHover = 'transparent';
70
70
  }
71
- return _objectSpread(_objectSpread({}, css), {}, {
71
+ return _objectSpread(_objectSpread(_objectSpread({}, css), {}, {
72
72
  // Turn pointer events off when disabled - this makes it so hover etc don't work.
73
73
  pointerEvents: isDisabled ? 'none' : undefined,
74
74
  backgroundColor: backgroundColor,
75
75
  borderColor: borderColor,
76
76
  borderStyle: 'solid',
77
77
  borderRadius: "var(--ds-border-radius-100, 3px)",
78
- borderWidth: "var(--ds-border-width, 1px)",
79
- boxShadow: 'none',
78
+ borderWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : "var(--ds-border-width-outline, 2px)",
79
+ boxShadow: 'none'
80
+ }, (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') && {
80
81
  '&:focus-within': {
81
82
  boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", borderColor)
82
- },
83
+ }
84
+ }), {}, {
83
85
  minHeight: isCompact ? (0, _constants.gridSize)() * 4 : (0, _constants.gridSize)() * 5,
84
86
  padding: 0,
85
87
  transition: "background-color ".concat(transitionDuration, " ease-in-out,\n border-color ").concat(transitionDuration, " ease-in-out"),
@@ -2,7 +2,7 @@ import Select from 'react-select';
2
2
  import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
3
3
  import createSelect from './createSelect';
4
4
  const packageName = "@atlaskit/select";
5
- const packageVersion = "17.3.0";
5
+ const packageVersion = "17.3.1";
6
6
  export const SelectWithoutAnalytics = createSelect(Select);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -3,6 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  /** @jsx jsx */
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import { Component } from 'react';
6
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
6
7
  import RadioIcon from '@atlaskit/icon/glyph/radio';
7
8
  import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
8
9
  import { B300, B400, B75, N20A, N0, N100, N20, N30, N70 } from '@atlaskit/theme/colors';
@@ -125,7 +126,7 @@ const baseIconStyles = css({
125
126
  // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
126
127
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
127
128
  '& svg rect, & svg circle:first-of-type': {
128
- strokeWidth: "var(--ds-border-width, 1px)",
129
+ strokeWidth: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : "var(--ds-border-width-outline, 2px)",
129
130
  strokeLinejoin: 'round'
130
131
  }
131
132
  });
@@ -65,11 +65,13 @@ export default function baseStyles(validationState, isCompact = false, appearanc
65
65
  borderColor,
66
66
  borderStyle: 'solid',
67
67
  borderRadius: "var(--ds-border-radius-100, 3px)",
68
- borderWidth: "var(--ds-border-width, 1px)",
68
+ borderWidth: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : "var(--ds-border-width-outline, 2px)",
69
69
  boxShadow: 'none',
70
- '&:focus-within': {
71
- boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${borderColor}`
72
- },
70
+ ...(getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') && {
71
+ '&:focus-within': {
72
+ boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${borderColor}`
73
+ }
74
+ }),
73
75
  minHeight: isCompact ? gridSize() * 4 : gridSize() * 5,
74
76
  padding: 0,
75
77
  transition: `background-color ${transitionDuration} ease-in-out,
@@ -2,7 +2,7 @@ import Select from 'react-select';
2
2
  import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
3
3
  import createSelect from './createSelect';
4
4
  var packageName = "@atlaskit/select";
5
- var packageVersion = "17.3.0";
5
+ var packageVersion = "17.3.1";
6
6
  export var SelectWithoutAnalytics = createSelect(Select);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -16,6 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  /** @jsx jsx */
17
17
  import { css, jsx } from '@emotion/react';
18
18
  import { Component } from 'react';
19
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
19
20
  import RadioIcon from '@atlaskit/icon/glyph/radio';
20
21
  import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
21
22
  import { B300, B400, B75, N20A, N0, N100, N20, N30, N70 } from '@atlaskit/theme/colors';
@@ -130,7 +131,7 @@ var baseIconStyles = css({
130
131
  // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
131
132
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
132
133
  '& svg rect, & svg circle:first-of-type': {
133
- strokeWidth: "var(--ds-border-width, 1px)",
134
+ strokeWidth: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : "var(--ds-border-width-outline, 2px)",
134
135
  strokeLinejoin: 'round'
135
136
  }
136
137
  });
@@ -62,18 +62,20 @@ export default function baseStyles(validationState) {
62
62
  backgroundColorHover = 'transparent';
63
63
  borderColorHover = 'transparent';
64
64
  }
65
- return _objectSpread(_objectSpread({}, css), {}, {
65
+ return _objectSpread(_objectSpread(_objectSpread({}, css), {}, {
66
66
  // Turn pointer events off when disabled - this makes it so hover etc don't work.
67
67
  pointerEvents: isDisabled ? 'none' : undefined,
68
68
  backgroundColor: backgroundColor,
69
69
  borderColor: borderColor,
70
70
  borderStyle: 'solid',
71
71
  borderRadius: "var(--ds-border-radius-100, 3px)",
72
- borderWidth: "var(--ds-border-width, 1px)",
73
- boxShadow: 'none',
72
+ borderWidth: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)" : "var(--ds-border-width-outline, 2px)",
73
+ boxShadow: 'none'
74
+ }, getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') && {
74
75
  '&:focus-within': {
75
76
  boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", borderColor)
76
- },
77
+ }
78
+ }), {}, {
77
79
  minHeight: isCompact ? gridSize() * 4 : gridSize() * 5,
78
80
  padding: 0,
79
81
  transition: "background-color ".concat(transitionDuration, " ease-in-out,\n border-color ").concat(transitionDuration, " ease-in-out"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "17.3.0",
3
+ "version": "17.3.1",
4
4
  "description": "Select allows users to make a single selection or multiple selections from a list of options.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -101,6 +101,9 @@
101
101
  "platform.design-system-team.border-checkbox_nyoiu": {
102
102
  "type": "boolean"
103
103
  },
104
+ "platform.design-system-team.update-input-border-wdith_5abwv": {
105
+ "type": "boolean"
106
+ },
104
107
  "platform.design-system-team.popup-select-close_8h15h": {
105
108
  "type": "boolean"
106
109
  }