@atlaskit/user-picker 9.3.4 → 9.3.5

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
+ ## 9.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`45da4e093b9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/45da4e093b9) - [ux] User picker now shows the "X" clear indicator on mobile, which previously wasn't working because hover was required which doesn't work on mobile.
8
+
3
9
  ## 9.3.4
4
10
 
5
11
  ### Patch Changes
@@ -76,7 +76,12 @@ var getStyles = (0, _memoizeOne.default)(function (width, isMulti, isCompact, ov
76
76
  paddingRight = _ref.paddingRight,
77
77
  css = (0, _objectWithoutProperties2.default)(_ref, _excluded);
78
78
  return _objectSpread(_objectSpread({}, css), {}, {
79
- opacity: 0,
79
+ // By default show clear indicator, except for on devices where "hover" is supported.
80
+ // This means mobile devices (which do not support hover) will be able to see the clear indicator.
81
+ opacity: 1,
82
+ '@media (hover: hover) and (pointer: fine)': {
83
+ opacity: 0
84
+ },
80
85
  transition: css.transition + ', opacity 150ms',
81
86
  paddingTop: 0,
82
87
  padding: 0,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.3.4",
3
+ "version": "9.3.5",
4
4
  "sideEffects": false
5
5
  }
@@ -44,7 +44,12 @@ export const getStyles = memoizeOne((width, isMulti, isCompact, overrideStyles)
44
44
  paddingRight,
45
45
  ...css
46
46
  }) => ({ ...css,
47
- opacity: 0,
47
+ // By default show clear indicator, except for on devices where "hover" is supported.
48
+ // This means mobile devices (which do not support hover) will be able to see the clear indicator.
49
+ opacity: 1,
50
+ '@media (hover: hover) and (pointer: fine)': {
51
+ opacity: 0
52
+ },
48
53
  transition: css.transition + ', opacity 150ms',
49
54
  paddingTop: 0,
50
55
  padding: 0,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.3.4",
3
+ "version": "9.3.5",
4
4
  "sideEffects": false
5
5
  }
@@ -57,7 +57,12 @@ export var getStyles = memoizeOne(function (width, isMulti, isCompact, overrideS
57
57
  css = _objectWithoutProperties(_ref, _excluded);
58
58
 
59
59
  return _objectSpread(_objectSpread({}, css), {}, {
60
- opacity: 0,
60
+ // By default show clear indicator, except for on devices where "hover" is supported.
61
+ // This means mobile devices (which do not support hover) will be able to see the clear indicator.
62
+ opacity: 1,
63
+ '@media (hover: hover) and (pointer: fine)': {
64
+ opacity: 0
65
+ },
61
66
  transition: css.transition + ', opacity 150ms',
62
67
  paddingTop: 0,
63
68
  padding: 0,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.3.4",
3
+ "version": "9.3.5",
4
4
  "sideEffects": false
5
5
  }
@@ -27,7 +27,7 @@ export declare class PopupUserPickerWithoutAnalytics extends React.Component<Pop
27
27
  };
28
28
  render(): JSX.Element;
29
29
  }
30
- export declare const PopupUserPicker: React.ForwardRefExoticComponent<Pick<Omit<PopupUserPickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "target" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "inputId" | "isClearable" | "isDisabled" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "options" | "placeholder" | "styles" | "value" | "defaultValue" | "fieldId" | "menuMinWidth" | "maxPickerHeight" | "textFieldBackgroundColor" | "loadOptions" | "loadUserSource" | "search" | "anchor" | "open" | "onSelection" | "onClear" | "onClose" | "appearance" | "subtle" | "noBorder" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabelledBy" | "ariaLive" | "popupTitle"> & Partial<Pick<Omit<PopupUserPickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "isMulti" | "width" | "offset" | "boundariesElement" | "placement" | "rootBoundary" | "shouldFlip">> & Partial<Pick<{
30
+ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Pick<Omit<PopupUserPickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "target" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "inputId" | "isClearable" | "isDisabled" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "options" | "placeholder" | "styles" | "value" | "defaultValue" | "fieldId" | "menuMinWidth" | "maxPickerHeight" | "textFieldBackgroundColor" | "loadOptions" | "loadUserSource" | "search" | "anchor" | "open" | "onSelection" | "onClear" | "onClose" | "appearance" | "subtle" | "noBorder" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabelledBy" | "ariaLive" | "popupTitle"> & Partial<Pick<Omit<PopupUserPickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "offset" | "isMulti" | "width" | "boundariesElement" | "placement" | "rootBoundary" | "shouldFlip">> & Partial<Pick<{
31
31
  boundariesElement: string;
32
32
  width: number;
33
33
  isMulti: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.3.4",
3
+ "version": "9.3.5",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,12 +29,12 @@
29
29
  "@atlaskit/analytics-next": "^8.2.0",
30
30
  "@atlaskit/avatar": "^21.0.0",
31
31
  "@atlaskit/icon": "^21.10.0",
32
- "@atlaskit/logo": "^13.8.0",
33
- "@atlaskit/lozenge": "^11.0.0",
32
+ "@atlaskit/logo": "^13.9.0",
33
+ "@atlaskit/lozenge": "^11.2.0",
34
34
  "@atlaskit/popper": "^5.0.0",
35
- "@atlaskit/select": "^15.6.0",
35
+ "@atlaskit/select": "^15.7.0",
36
36
  "@atlaskit/spinner": "^15.1.4",
37
- "@atlaskit/theme": "^12.1.0",
37
+ "@atlaskit/theme": "^12.2.0",
38
38
  "@atlaskit/tokens": "^0.10.0",
39
39
  "@atlaskit/tooltip": "^17.5.0",
40
40
  "@atlaskit/ufo": "^0.1.0",
@@ -54,19 +54,19 @@
54
54
  "@atlaskit/button": "^16.3.0",
55
55
  "@atlaskit/docs": "*",
56
56
  "@atlaskit/elements-test-helpers": "^0.7.0",
57
- "@atlaskit/modal-dialog": "^12.2.0",
58
- "@atlaskit/radio": "^5.3.4",
57
+ "@atlaskit/modal-dialog": "^12.3.0",
58
+ "@atlaskit/radio": "^5.4.0",
59
59
  "@atlaskit/range": "^6.0.0",
60
- "@atlaskit/section-message": "^6.0.0",
61
- "@atlaskit/textfield": "^5.0.0",
60
+ "@atlaskit/section-message": "^6.2.0",
61
+ "@atlaskit/textfield": "^5.2.0",
62
62
  "@atlaskit/util-data-test": "^17.5.0",
63
63
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
64
64
  "@emotion/styled": "^10.0.7",
65
- "@testing-library/dom": "^7.7.3",
66
- "@testing-library/jest-dom": "^4.1.0",
67
- "@testing-library/react": "^8.0.1",
68
- "@testing-library/react-hooks": "^1.0.4",
69
- "@testing-library/user-event": "10.4.0",
65
+ "@testing-library/dom": "^8.17.1",
66
+ "@testing-library/jest-dom": "^5.16.5",
67
+ "@testing-library/react": "^12.1.5",
68
+ "@testing-library/react-hooks": "^1.1.0",
69
+ "@testing-library/user-event": "^13.5.0",
70
70
  "@types/uuid": "^3.4.4",
71
71
  "enzyme": "^3.10.0",
72
72
  "enzyme-react-intl": "^2.0.6",
package/report.api.md CHANGED
@@ -211,9 +211,9 @@ export declare const PopupUserPicker: React_2.ForwardRefExoticComponent<
211
211
  Partial<
212
212
  Pick<
213
213
  Omit<PopupUserPickerProps, keyof WithAnalyticsEventsProps>,
214
+ | 'offset'
214
215
  | 'isMulti'
215
216
  | 'width'
216
- | 'offset'
217
217
  | 'boundariesElement'
218
218
  | 'placement'
219
219
  | 'rootBoundary'