@atlaskit/user-picker 11.21.0 → 11.21.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/user-picker
2
2
 
3
+ ## 11.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 11.21.0
4
10
 
5
11
  ### Minor Changes
@@ -108,7 +108,7 @@ var UserPickerWithoutAnalytics = exports.UserPickerWithoutAnalytics = /*#__PURE_
108
108
  SelectComponent: SelectComponent
109
109
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
110
110
  ,
111
- styles: (0, _styles.getStyles)(width, isMulti, this.props.appearance === 'compact', this.props.styles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh'), false, (0, _platformFeatureFlags.fg)('jifjam_bulk_operations') ? this.props.height : undefined),
111
+ styles: (0, _styles.getStyles)(width, isMulti, this.props.appearance === 'compact', this.props.styles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh'), false, this.props.height),
112
112
  components: (0, _components.getComponents)(isMulti, anchor, showClearIndicator, (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
113
113
  pickerProps: pickerProps
114
114
  })))));
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
10
10
  var _colors = require("@atlaskit/theme/colors");
11
11
  var _memoizeOne = _interopRequireDefault(require("memoize-one"));
12
12
  var _select = require("@atlaskit/select");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _excluded = ["paddingTop", "paddingBottom", "paddingLeft", "paddingRight"],
15
14
  _excluded2 = ["paddingTop", "paddingBottom", "position"];
16
15
  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; }
@@ -46,9 +45,9 @@ var getStyles = exports.getStyles = (0, _memoizeOne.default)(function (width, is
46
45
  backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? "var(--ds-background-danger, ".concat(_colors.R50, ")") : state.isFocused ? css[':hover'] ? "var(--ds-background-input, ".concat(css[':hover'].backgroundColor, ")") : "var(--ds-background-input, ".concat(_colors.N0, ")") : state.isDisabled ? "var(--ds-background-disabled, ".concat(_colors.N10, ")") : "var(--ds-background-input-hovered, ".concat(_colors.N30, ")")
47
46
  }),
48
47
  padding: 0,
49
- minHeight: height && (0, _platformFeatureFlags.fg)('jifjam_bulk_operations') || isCompact ? 'none' : 44,
48
+ minHeight: height || isCompact ? 'none' : 44,
50
49
  /* IE 11 needs to set height explicitly to be vertical align when being in not compact mode */
51
- height: height && (0, _platformFeatureFlags.fg)('jifjam_bulk_operations') ? height : isCompact || isMulti ? '100%' : 44,
50
+ height: height ? height : isCompact || isMulti ? '100%' : 44,
52
51
  maxWidth: '100%'
53
52
  });
54
53
  },
@@ -85,7 +85,7 @@ export class UserPickerWithoutAnalytics extends React.Component {
85
85
  SelectComponent: SelectComponent
86
86
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
87
87
  ,
88
- styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, fg('platform-component-visual-refresh'), false, fg('jifjam_bulk_operations') ? this.props.height : undefined),
88
+ styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, fg('platform-component-visual-refresh'), false, this.props.height),
89
89
  components: getComponents(isMulti, anchor, showClearIndicator, (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.components ? this.props.components : {}),
90
90
  pickerProps: pickerProps
91
91
  })))));
@@ -1,7 +1,6 @@
1
1
  import { B100, N0, N10, N20, N30, N100, R50, R400, N90 } from '@atlaskit/theme/colors';
2
2
  import memoizeOne from 'memoize-one';
3
3
  import { mergeStyles } from '@atlaskit/select';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  export const BORDER_PADDING = "var(--ds-space-075, 6px)";
6
5
  export const AVATAR_PADDING = 6;
7
6
  export const INDICATOR_WIDTH = 39;
@@ -33,9 +32,9 @@ export const getStyles = memoizeOne((width, isMulti, isCompact, overrideStyles,
33
32
  backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? `var(--ds-background-danger, ${R50})` : state.isFocused ? css[':hover'] ? `var(--ds-background-input, ${css[':hover'].backgroundColor})` : `var(--ds-background-input, ${N0})` : state.isDisabled ? `var(--ds-background-disabled, ${N10})` : `var(--ds-background-input-hovered, ${N30})`
34
33
  },
35
34
  padding: 0,
36
- minHeight: height && fg('jifjam_bulk_operations') || isCompact ? 'none' : 44,
35
+ minHeight: height || isCompact ? 'none' : 44,
37
36
  /* IE 11 needs to set height explicitly to be vertical align when being in not compact mode */
38
- height: height && fg('jifjam_bulk_operations') ? height : isCompact || isMulti ? '100%' : 44,
37
+ height: height ? height : isCompact || isMulti ? '100%' : 44,
39
38
  maxWidth: '100%'
40
39
  };
41
40
  },
@@ -100,7 +100,7 @@ export var UserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component)
100
100
  SelectComponent: SelectComponent
101
101
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
102
102
  ,
103
- styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, fg('platform-component-visual-refresh'), false, fg('jifjam_bulk_operations') ? this.props.height : undefined),
103
+ styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, fg('platform-component-visual-refresh'), false, this.props.height),
104
104
  components: getComponents(isMulti, anchor, showClearIndicator, (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
105
105
  pickerProps: pickerProps
106
106
  })))));
@@ -7,7 +7,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { B100, N0, N10, N20, N30, N100, R50, R400, N90 } from '@atlaskit/theme/colors';
8
8
  import memoizeOne from 'memoize-one';
9
9
  import { mergeStyles } from '@atlaskit/select';
10
- import { fg } from '@atlaskit/platform-feature-flags';
11
10
  export var BORDER_PADDING = "var(--ds-space-075, 6px)";
12
11
  export var AVATAR_PADDING = 6;
13
12
  export var INDICATOR_WIDTH = 39;
@@ -39,9 +38,9 @@ export var getStyles = memoizeOne(function (width, isMulti, isCompact, overrideS
39
38
  backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? "var(--ds-background-danger, ".concat(R50, ")") : state.isFocused ? css[':hover'] ? "var(--ds-background-input, ".concat(css[':hover'].backgroundColor, ")") : "var(--ds-background-input, ".concat(N0, ")") : state.isDisabled ? "var(--ds-background-disabled, ".concat(N10, ")") : "var(--ds-background-input-hovered, ".concat(N30, ")")
40
39
  }),
41
40
  padding: 0,
42
- minHeight: height && fg('jifjam_bulk_operations') || isCompact ? 'none' : 44,
41
+ minHeight: height || isCompact ? 'none' : 44,
43
42
  /* IE 11 needs to set height explicitly to be vertical align when being in not compact mode */
44
- height: height && fg('jifjam_bulk_operations') ? height : isCompact || isMulti ? '100%' : 44,
43
+ height: height ? height : isCompact || isMulti ? '100%' : 44,
45
44
  maxWidth: '100%'
46
45
  });
47
46
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "11.21.0",
3
+ "version": "11.21.1",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -52,12 +52,12 @@
52
52
  "@atlaskit/people-teams-ui-public": "^3.7.0",
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
54
  "@atlaskit/popper": "^7.1.0",
55
- "@atlaskit/primitives": "^17.1.0",
55
+ "@atlaskit/primitives": "^18.0.0",
56
56
  "@atlaskit/select": "^21.7.0",
57
57
  "@atlaskit/spinner": "^19.0.0",
58
58
  "@atlaskit/teams-avatar": "^2.4.0",
59
59
  "@atlaskit/theme": "^21.0.0",
60
- "@atlaskit/tokens": "^10.1.0",
60
+ "@atlaskit/tokens": "^11.0.0",
61
61
  "@atlaskit/tooltip": "^20.14.0",
62
62
  "@atlaskit/ufo": "^0.4.0",
63
63
  "@babel/runtime": "^7.0.0",
@@ -110,9 +110,6 @@
110
110
  "platform_user_picker_firefox_tab_fix": {
111
111
  "type": "boolean"
112
112
  },
113
- "jifjam_bulk_operations": {
114
- "type": "boolean"
115
- },
116
113
  "twcg-444-invite-usd-improvements-m2-gate": {
117
114
  "type": "boolean"
118
115
  },