@atlaskit/media-avatar-picker 24.6.5 → 24.6.7

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 (70) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/compass.yml +3 -2
  3. package/dist/cjs/avatar-list/index.js +4 -1
  4. package/dist/cjs/avatar-list/styles.js +6 -0
  5. package/dist/cjs/avatar-picker-dialog/SubmitErrorDialog.js +17 -13
  6. package/dist/cjs/avatar-picker-dialog/index.js +9 -6
  7. package/dist/cjs/avatar-picker-dialog/styles.js +10 -0
  8. package/dist/cjs/image-cropper/index.js +36 -36
  9. package/dist/cjs/image-navigator/dragZone.js +2 -0
  10. package/dist/cjs/image-navigator/index.js +24 -18
  11. package/dist/cjs/image-navigator/slider.js +30 -27
  12. package/dist/cjs/image-navigator/styles.js +32 -2
  13. package/dist/cjs/image-placer/containerWrapper.js +4 -0
  14. package/dist/cjs/image-placer/imagePlacerErrorWrapper.js +7 -3
  15. package/dist/cjs/image-placer/imageWrapper.js +12 -8
  16. package/dist/cjs/image-placer/index.js +29 -26
  17. package/dist/cjs/image-placer/margin.js +3 -1
  18. package/dist/cjs/image-placer/styles.js +20 -0
  19. package/dist/cjs/predefined-avatar-list/index.js +24 -20
  20. package/dist/cjs/predefined-avatar-list/styles.js +2 -2
  21. package/dist/cjs/predefined-avatar-view/index.js +27 -23
  22. package/dist/cjs/predefined-avatar-view/styles.js +13 -0
  23. package/dist/cjs/styles.js +9 -0
  24. package/dist/es2019/avatar-list/index.js +4 -1
  25. package/dist/es2019/avatar-list/styles.js +6 -0
  26. package/dist/es2019/avatar-picker-dialog/SubmitErrorDialog.js +17 -13
  27. package/dist/es2019/avatar-picker-dialog/index.js +9 -5
  28. package/dist/es2019/avatar-picker-dialog/styles.js +10 -0
  29. package/dist/es2019/image-cropper/index.js +31 -35
  30. package/dist/es2019/image-navigator/dragZone.js +2 -0
  31. package/dist/es2019/image-navigator/index.js +24 -17
  32. package/dist/es2019/image-navigator/slider.js +26 -22
  33. package/dist/es2019/image-navigator/styles.js +32 -2
  34. package/dist/es2019/image-placer/containerWrapper.js +4 -0
  35. package/dist/es2019/image-placer/imagePlacerErrorWrapper.js +4 -1
  36. package/dist/es2019/image-placer/imageWrapper.js +4 -1
  37. package/dist/es2019/image-placer/index.js +29 -25
  38. package/dist/es2019/image-placer/margin.js +3 -0
  39. package/dist/es2019/image-placer/styles.js +19 -0
  40. package/dist/es2019/predefined-avatar-list/index.js +24 -20
  41. package/dist/es2019/predefined-avatar-list/styles.js +2 -1
  42. package/dist/es2019/predefined-avatar-view/index.js +27 -23
  43. package/dist/es2019/predefined-avatar-view/styles.js +13 -0
  44. package/dist/es2019/styles.js +9 -0
  45. package/dist/esm/avatar-list/index.js +4 -1
  46. package/dist/esm/avatar-list/styles.js +6 -0
  47. package/dist/esm/avatar-picker-dialog/SubmitErrorDialog.js +17 -13
  48. package/dist/esm/avatar-picker-dialog/index.js +9 -5
  49. package/dist/esm/avatar-picker-dialog/styles.js +10 -0
  50. package/dist/esm/image-cropper/index.js +33 -35
  51. package/dist/esm/image-navigator/dragZone.js +2 -0
  52. package/dist/esm/image-navigator/index.js +24 -17
  53. package/dist/esm/image-navigator/slider.js +30 -26
  54. package/dist/esm/image-navigator/styles.js +32 -2
  55. package/dist/esm/image-placer/containerWrapper.js +4 -0
  56. package/dist/esm/image-placer/imagePlacerErrorWrapper.js +7 -3
  57. package/dist/esm/image-placer/imageWrapper.js +12 -8
  58. package/dist/esm/image-placer/index.js +29 -25
  59. package/dist/esm/image-placer/margin.js +3 -0
  60. package/dist/esm/image-placer/styles.js +19 -0
  61. package/dist/esm/predefined-avatar-list/index.js +24 -20
  62. package/dist/esm/predefined-avatar-list/styles.js +2 -1
  63. package/dist/esm/predefined-avatar-view/index.js +27 -23
  64. package/dist/esm/predefined-avatar-view/styles.js +13 -0
  65. package/dist/esm/styles.js +9 -0
  66. package/dist/types/image-cropper/index.d.ts +1 -3
  67. package/dist/types-ts4.5/image-cropper/index.d.ts +1 -3
  68. package/example-helpers/StatefulAvatarPickerDialog.tsx +2 -0
  69. package/example-helpers/styles.ts +9 -0
  70. package/package.json +77 -77
@@ -1,38 +1,52 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css, keyframes } from '@emotion/react';
2
3
  import { N200 } from '@atlaskit/theme/colors';
3
4
  import { checkeredBg } from './images';
4
5
  import { AVATAR_DIALOG_WIDTH } from '../avatar-picker-dialog/layout-const';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
5
8
  export var imageBgStyles = css({
6
9
  position: 'absolute',
7
10
  top: 0,
8
11
  left: 0,
9
12
  width: '256px',
10
13
  height: '256px',
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
11
15
  background: "url('".concat(checkeredBg, "')"),
12
16
  borderRadius: "var(--ds-border-radius, 3px)"
13
17
  });
18
+
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
14
20
  export var containerStyles = css({
15
21
  boxSizing: 'border-box',
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
16
23
  '*, *::before, *::after': {
17
24
  boxSizing: 'border-box'
18
25
  },
19
26
  position: 'relative'
20
27
  });
28
+
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
21
30
  export var sliderContainerStyles = css({
22
31
  alignItems: 'center',
23
32
  justifyContent: 'center',
24
33
  display: 'flex',
25
34
  flexDirection: 'row',
26
35
  marginTop: "var(--ds-space-100, 8px)",
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
27
37
  input: {
28
38
  boxSizing: 'content-box',
29
39
  padding: 0
30
40
  },
31
41
  backgroundColor: "var(--ds-surface-overlay, #fff)"
32
42
  });
43
+
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
33
45
  export var fileInputStyles = css({
34
46
  display: 'none'
35
47
  });
48
+
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
36
50
  export var imageUploaderStyles = css({
37
51
  display: 'flex',
38
52
  flexDirection: 'column',
@@ -58,6 +72,7 @@ var getBorder = function getBorder(showBorder) {
58
72
  var getDroppingAnimation = function getDroppingAnimation(isDroppingFile) {
59
73
  return isDroppingFile ? css({
60
74
  backgroundColor: "var(--ds-background-information-hovered, #ddecfe)",
75
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
61
76
  '&:after': droppingAnimation
62
77
  }) : '';
63
78
  };
@@ -75,6 +90,7 @@ export var dragZoneStyles = function dragZoneStyles(props) {
75
90
  transition: 'background-color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1)',
76
91
  '&::after': {
77
92
  content: "''",
93
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
78
94
  border: getBorder(props.showBorder),
79
95
  borderRadius: '100%',
80
96
  position: 'absolute',
@@ -84,9 +100,13 @@ export var dragZoneStyles = function dragZoneStyles(props) {
84
100
  height: '100%',
85
101
  transition: 'border-color 0.3s cubic-bezier(0.19, 1, 0.22, 1)'
86
102
  }
87
- }, getDroppingAnimation(props.isDroppingFile));
103
+ },
104
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
105
+ getDroppingAnimation(props.isDroppingFile));
88
106
  };
89
107
  dragZoneStyles.displayName = 'DragZone';
108
+
109
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
90
110
  export var dragZoneImageStyles = css({
91
111
  width: '100px'
92
112
  });
@@ -97,8 +117,12 @@ export var dragZoneTextStyles = function dragZoneTextStyles(props) {
97
117
  return css({
98
118
  textAlign: 'center',
99
119
  color: "var(--ds-text-subtlest, ".concat(N200, ")")
100
- }, getWidth(props.isFullSize));
120
+ },
121
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
122
+ getWidth(props.isFullSize));
101
123
  };
124
+
125
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
102
126
  export var selectionBlockerStyles = css({
103
127
  position: 'fixed',
104
128
  left: 0,
@@ -108,15 +132,21 @@ export var selectionBlockerStyles = css({
108
132
  backgroundColor: 'transparent',
109
133
  userSelect: 'none'
110
134
  });
135
+
136
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
111
137
  export var paddedBreakStyles = css({
138
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
112
139
  marginTop: "var(--ds-space-100, 10px)".concat(" !important"),
113
140
  marginBottom: "var(--ds-space-100, 10px)",
114
141
  textAlign: 'center'
115
142
  });
143
+
144
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
116
145
  export var sliderWrapperStyles = css({
117
146
  display: 'flex',
118
147
  alignItems: 'center',
119
148
  width: '100%',
149
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
120
150
  '.zoom_button svg': {
121
151
  position: 'relative',
122
152
  left: "var(--ds-space-negative-025, -2px)"
@@ -2,10 +2,12 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["width", "height", "margin", "children"];
4
4
  /**@jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { jsx } from '@emotion/react';
6
7
  import { Box, xcss } from '@atlaskit/primitives';
7
8
  import { checkeredBg } from './styles';
8
9
  var containerWrapperStyles = xcss({
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
9
11
  background: "url('".concat(checkeredBg, "')"),
10
12
  position: "relative",
11
13
  cursor: "move",
@@ -19,7 +21,9 @@ export var ContainerWrapper = function ContainerWrapper(_ref) {
19
21
  children = _ref.children,
20
22
  props = _objectWithoutProperties(_ref, _excluded);
21
23
  var containerWrapperDimensions = xcss({
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
22
25
  width: "".concat(width !== undefined ? width + margin * 2 : 0, "px"),
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
27
  height: "".concat(height !== undefined ? height + margin * 2 : 0, "px")
24
28
  });
25
29
  return jsx(Box, _extends({
@@ -1,9 +1,13 @@
1
1
  /**@jsx jsx */
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import { jsx } from '@emotion/react';
3
4
  import { imagePlacerErrorWrapperStyles } from './styles';
4
5
  export var ImagePlacerErrorWrapper = function ImagePlacerErrorWrapper(_ref) {
5
6
  var children = _ref.children;
6
- return jsx("div", {
7
- css: imagePlacerErrorWrapperStyles
8
- }, children);
7
+ return (
8
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
9
+ jsx("div", {
10
+ css: imagePlacerErrorWrapperStyles
11
+ }, children)
12
+ );
9
13
  };
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["x", "y", "width", "height"];
4
4
  /**@jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
6
  import { jsx } from '@emotion/react';
6
7
  import { imageWrapperStyles } from './styles';
7
8
  export var ImageWrapper = function ImageWrapper(_ref) {
@@ -10,12 +11,15 @@ export var ImageWrapper = function ImageWrapper(_ref) {
10
11
  width = _ref.width,
11
12
  height = _ref.height,
12
13
  props = _objectWithoutProperties(_ref, _excluded);
13
- return jsx("img", _extends({
14
- css: imageWrapperStyles({
15
- x: x,
16
- y: y,
17
- width: width,
18
- height: height
19
- })
20
- }, props));
14
+ return (
15
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
16
+ jsx("img", _extends({
17
+ css: imageWrapperStyles({
18
+ x: x,
19
+ y: y,
20
+ width: width,
21
+ height: height
22
+ })
23
+ }, props))
24
+ );
21
25
  };
@@ -11,6 +11,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
13
  /**@jsx jsx */
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
15
  import { jsx } from '@emotion/react';
15
16
  import React from 'react';
16
17
  import { Rectangle, Vector2, Bounds, dataURItoFile, getFileInfo, getFileInfoFromSrc } from '@atlaskit/media-ui';
@@ -503,31 +504,34 @@ export var ImagePlacer = /*#__PURE__*/function (_React$Component) {
503
504
  src = _this$state6.src;
504
505
  var imageBounds = this.imageBounds;
505
506
  var imgSrc = typeof src === 'string' ? src : undefined;
506
- return jsx("div", {
507
- css: imagePlacerWrapperStyles({
508
- backgroundColor: backgroundColor
509
- })
510
- }, jsx(ImagePlacerContainer, {
511
- width: containerWidth,
512
- height: containerHeight,
513
- margin: margin,
514
- onDragStart: this.onDragStart,
515
- onDragMove: this.onDragMove,
516
- onWheel: this.onWheel
517
- }, errorMessage ? jsx(ImagePlacerErrorWrapper, null, onRenderError ? onRenderError(errorMessage) : errorMessage) : jsx("div", null, jsx(ImagePlacerImage, {
518
- src: imgSrc,
519
- x: imageBounds.x,
520
- y: imageBounds.y,
521
- width: imageBounds.width,
522
- height: imageBounds.height,
523
- onLoad: this.onImageLoad,
524
- onError: this.onImageError
525
- }), jsx(Margin, {
526
- width: containerWidth,
527
- height: containerHeight,
528
- circular: isCircular,
529
- size: margin
530
- }))));
507
+ return (
508
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
509
+ jsx("div", {
510
+ css: imagePlacerWrapperStyles({
511
+ backgroundColor: backgroundColor
512
+ })
513
+ }, jsx(ImagePlacerContainer, {
514
+ width: containerWidth,
515
+ height: containerHeight,
516
+ margin: margin,
517
+ onDragStart: this.onDragStart,
518
+ onDragMove: this.onDragMove,
519
+ onWheel: this.onWheel
520
+ }, errorMessage ? jsx(ImagePlacerErrorWrapper, null, onRenderError ? onRenderError(errorMessage) : errorMessage) : jsx("div", null, jsx(ImagePlacerImage, {
521
+ src: imgSrc,
522
+ x: imageBounds.x,
523
+ y: imageBounds.y,
524
+ width: imageBounds.width,
525
+ height: imageBounds.height,
526
+ onLoad: this.onImageLoad,
527
+ onError: this.onImageError
528
+ }), jsx(Margin, {
529
+ width: containerWidth,
530
+ height: containerHeight,
531
+ circular: isCircular,
532
+ size: margin
533
+ }))))
534
+ );
531
535
  }
532
536
  }]);
533
537
  return ImagePlacer;
@@ -7,6 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  /**@jsx jsx */
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
11
  import { jsx } from '@emotion/react';
11
12
  import React from 'react';
12
13
  import { marginWrapperSquareStyles, marginWrapperCircleStyles } from './styles';
@@ -29,6 +30,8 @@ export var Margin = /*#__PURE__*/function (_React$Component) {
29
30
  _ref2 = _slicedToArray(_ref, 2),
30
31
  id = _ref2[0],
31
32
  styles = _ref2[1];
33
+
34
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
32
35
  return jsx("div", {
33
36
  css: styles({
34
37
  width: width,
@@ -1,12 +1,16 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
2
3
  import { R500 } from '@atlaskit/theme/colors';
3
4
  export var checkeredBg = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAA6hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOC0xMC0zMFQxMjoxMDo5MjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+UGl4ZWxtYXRvciAzLjcuNTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpDb21wcmVzc2lvbj4wPC90aWZmOkNvbXByZXNzaW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj4xMDwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOkNvbG9yU3BhY2U+MTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MTA8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KX+XPjwAAACtJREFUGBljPHv27H8GNGBsbMyIJsTAhC6Aiz+ACjEcDXIjNg8OoBuJthoAzy0HeT3Qcc0AAAAASUVORK5CYII=';
4
5
  export var imagePlacerWrapperStyles = function imagePlacerWrapperStyles(props) {
5
6
  return css({
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
6
8
  backgroundColor: props.backgroundColor,
7
9
  display: 'inline-block'
8
10
  });
9
11
  };
12
+
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
10
14
  export var imagePlacerErrorWrapperStyles = css({
11
15
  backgroundColor: "var(--ds-background-danger-bold, ".concat(R500, ")"),
12
16
  color: "var(--ds-text-inverse, white)",
@@ -24,10 +28,15 @@ export var imageWrapperStyles = function imageWrapperStyles(_ref) {
24
28
  height = _ref.height,
25
29
  transform = _ref.transform;
26
30
  return css({
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
27
32
  left: "".concat(x, "px"),
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
28
34
  top: "".concat(y, "px"),
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
36
  width: "".concat(width, "px"),
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
30
38
  height: "".concat(height, "px"),
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
31
40
  transform: transform,
32
41
  position: 'absolute',
33
42
  transition: "margin-left ".concat(EASING, "s ease-out, margin-top ").concat(EASING, "s ease-out, left ").concat(EASING, "s ease-out, top ").concat(EASING, "s ease-out, width ").concat(EASING, "s ease-out, height ").concat(EASING, "s ease-out"),
@@ -45,8 +54,11 @@ export var marginWrapperSquareStyles = function marginWrapperSquareStyles(_ref2)
45
54
  top: 0,
46
55
  borderStyle: 'solid',
47
56
  borderColor: "var(--ds-surface-overlay, rgba(255, 255, 255))",
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
48
58
  borderWidth: "".concat(size, "px"),
59
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
49
60
  width: "".concat(width, "px"),
61
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
50
62
  height: "".concat(height, "px"),
51
63
  opacity: "var(--ds-opacity-disabled, 0.3)"
52
64
  });
@@ -60,15 +72,22 @@ export var marginWrapperCircleStyles = function marginWrapperCircleStyles(_ref3)
60
72
  overflow: 'hidden',
61
73
  left: '0px',
62
74
  top: '0px',
75
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
63
76
  width: "".concat(width + size * 2, "px"),
77
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
64
78
  height: "".concat(height + size * 2, "px"),
79
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
65
80
  '&:after': {
66
81
  content: "''",
67
82
  position: 'absolute',
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
68
84
  left: "".concat(size, "px"),
85
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
69
86
  top: "".concat(size, "px"),
70
87
  borderRadius: '100%',
88
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
71
89
  width: "".concat(width, "px"),
90
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
72
91
  height: "".concat(height, "px"),
73
92
  boxShadow: "0px 0px 0px ".concat(Math.max(width, height), "px ", "var(--ds-surface-overlay, rgba(255, 255, 255))"),
74
93
  opacity: "var(--ds-opacity-disabled, 0.3)"
@@ -1,4 +1,5 @@
1
1
  /**@jsx jsx */
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import { jsx } from '@emotion/react';
3
4
  import { AvatarList } from '../avatar-list';
4
5
  import EditorMoreIcon from '@atlaskit/icon/glyph/editor/more';
@@ -15,24 +16,27 @@ export var PredefinedAvatarList = function PredefinedAvatarList(_ref) {
15
16
  selectAvatarLabel = _ref.selectAvatarLabel,
16
17
  showMoreAvatarsButtonLabel = _ref.showMoreAvatarsButtonLabel;
17
18
  var intl = useIntl();
18
- return jsx("div", {
19
- css: predefinedAvatarsWrapperStyles,
20
- id: "predefined-avatar-wrapper"
21
- }, jsx(AvatarList, {
22
- avatars: avatars,
23
- selectedAvatar: selectedAvatar,
24
- onItemClick: onAvatarSelected,
25
- selectAvatarLabel: selectAvatarLabel
26
- }), jsx(Button, {
27
- "aria-label": showMoreAvatarsButtonLabel || intl.formatMessage(messages.show_more_avatars_btn_label)
28
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
29
- ,
30
- className: "show-more-button",
31
- appearance: "subtle",
32
- iconAfter: jsx(EditorMoreIcon, {
33
- label: "",
34
- size: "large"
35
- }),
36
- onClick: onShowMore
37
- }));
19
+ return (
20
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
21
+ jsx("div", {
22
+ css: predefinedAvatarsWrapperStyles,
23
+ id: "predefined-avatar-wrapper"
24
+ }, jsx(AvatarList, {
25
+ avatars: avatars,
26
+ selectedAvatar: selectedAvatar,
27
+ onItemClick: onAvatarSelected,
28
+ selectAvatarLabel: selectAvatarLabel
29
+ }), jsx(Button, {
30
+ "aria-label": showMoreAvatarsButtonLabel || intl.formatMessage(messages.show_more_avatars_btn_label)
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
32
+ ,
33
+ className: "show-more-button",
34
+ appearance: "subtle",
35
+ iconAfter: jsx(EditorMoreIcon, {
36
+ label: "",
37
+ size: "large"
38
+ }),
39
+ onClick: onShowMore
40
+ }))
41
+ );
38
42
  };
@@ -1,7 +1,8 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
4
  import { css } from '@emotion/react';
4
5
  import { visuallyHiddenRadioStyles, selectedShadow, focusedShadow } from '../styles';
5
6
 
6
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
7
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
7
8
  export var predefinedAvatarsWrapperStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tdisplay: flex;\n\n\tinput {\n\t\t", "\n\t}\n\n\tinput:checked + img {\n\t\t", "\n\t}\n\n\tinput:focus + img {\n\t\t", "\n\t}\n\n\t.show-more-button {\n\t\twidth: 40px;\n\t\theight: 40px;\n\t\tborder-radius: ", ";\n\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n"])), visuallyHiddenRadioStyles, selectedShadow, focusedShadow, "var(--ds-border-radius-circle, 50%)");
@@ -1,4 +1,5 @@
1
1
  /**@jsx jsx */
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import { jsx } from '@emotion/react';
3
4
  import { FormattedMessage, useIntl } from 'react-intl-next';
4
5
  import { messages } from '@atlaskit/media-ui';
@@ -38,27 +39,30 @@ export var PredefinedAvatarView = function PredefinedAvatarView(_ref) {
38
39
  alt: ""
39
40
  }));
40
41
  });
41
- return jsx("div", {
42
- css: predefinedAvatarViewWrapperStyles,
43
- id: "predefined-avatar-view-wrapper"
44
- }, jsx("div", {
45
- className: "header"
46
- }, jsx(Button, {
47
- "aria-label": intl.formatMessage(messages.avatar_picker_back_btn_label)
48
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
49
- ,
50
- className: "back-button",
51
- iconAfter: jsx(ArrowLeftIcon, {
52
- label: ""
53
- }),
54
- onClick: onGoBack
55
- }), jsx("h2", {
56
- className: "description"
57
- }, predefinedAvatarsText || jsx(FormattedMessage, messages.default_avatars))), jsx("div", {
58
- role: "radiogroup",
59
- "aria-label": selectAvatarLabel || intl.formatMessage(messages.select_an_avatar)
60
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
61
- ,
62
- className: "body"
63
- }, cards));
42
+ return (
43
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
44
+ jsx("div", {
45
+ css: predefinedAvatarViewWrapperStyles,
46
+ id: "predefined-avatar-view-wrapper"
47
+ }, jsx("div", {
48
+ className: "header"
49
+ }, jsx(Button, {
50
+ "aria-label": intl.formatMessage(messages.avatar_picker_back_btn_label)
51
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
52
+ ,
53
+ className: "back-button",
54
+ iconAfter: jsx(ArrowLeftIcon, {
55
+ label: ""
56
+ }),
57
+ onClick: onGoBack
58
+ }), jsx("h2", {
59
+ className: "description"
60
+ }, predefinedAvatarsText || jsx(FormattedMessage, messages.default_avatars))), jsx("div", {
61
+ role: "radiogroup",
62
+ "aria-label": selectAvatarLabel || intl.formatMessage(messages.select_an_avatar)
63
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
64
+ ,
65
+ className: "body"
66
+ }, cards))
67
+ );
64
68
  };
@@ -1,10 +1,16 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
2
3
  import { visuallyHiddenRadioStyles, selectedShadow, focusedShadow, avatarImageStyles } from '../styles';
4
+
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
3
6
  export var largeAvatarImageStyles = css(avatarImageStyles, {
4
7
  width: '72px',
5
8
  height: '72px'
6
9
  });
10
+
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
7
12
  export var predefinedAvatarViewWrapperStyles = css({
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
8
14
  '.body': {
9
15
  display: 'flex',
10
16
  flexFlow: 'row wrap',
@@ -14,26 +20,33 @@ export var predefinedAvatarViewWrapperStyles = css({
14
20
  padding: "var(--ds-space-100, 8px)".concat(" 0 0"),
15
21
  margin: 0
16
22
  },
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
17
24
  input: visuallyHiddenRadioStyles,
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
18
26
  'input:checked + img': selectedShadow,
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
19
28
  'input:focus + img': focusedShadow,
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
20
30
  label: {
21
31
  paddingRight: "var(--ds-space-050, 4px)",
22
32
  paddingLeft: "var(--ds-space-050, 4px)",
23
33
  paddingBottom: "var(--ds-space-100, 8px)",
24
34
  display: 'inline-flex'
25
35
  },
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
26
37
  '.header': {
27
38
  display: 'flex',
28
39
  alignItems: 'center',
29
40
  paddingTop: "var(--ds-space-050, 4px)",
30
41
  paddingBottom: "var(--ds-space-100, 8px)",
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
31
43
  '.description': {
32
44
  paddingLeft: "var(--ds-space-100, 8px)",
33
45
  margin: 0,
34
46
  fontSize: '14px',
35
47
  fontWeight: 400
36
48
  },
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
37
50
  '.back-button': {
38
51
  width: '32px',
39
52
  height: '32px',
@@ -1,9 +1,14 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
2
3
  import { B200, B100 } from '@atlaskit/theme/colors';
4
+
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
3
6
  export var avatarImageStyles = css({
4
7
  borderRadius: "var(--ds-border-radius-100, 3px)",
5
8
  cursor: 'pointer'
6
9
  });
10
+
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
7
12
  export var visuallyHiddenRadioStyles = css({
8
13
  width: '1px',
9
14
  height: '1px',
@@ -14,9 +19,13 @@ export var visuallyHiddenRadioStyles = css({
14
19
  overflow: 'hidden',
15
20
  whiteSpace: 'nowrap'
16
21
  });
22
+
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
17
24
  export var selectedShadow = css({
18
25
  boxShadow: "0px 0px 0px 1px ".concat("var(--ds-border-inverse, white)", ", 0px 0px 0px 3px ", "var(--ds-border-selected, ".concat(B200, ")"))
19
26
  });
27
+
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
20
29
  export var focusedShadow = css({
21
30
  boxShadow: "0px 0px 0px 1px ".concat("var(--ds-border-inverse, white)", ", 0px 0px 0px 3px ", "var(--ds-border-focused, ".concat(B100, ")"))
22
31
  });
@@ -1,5 +1,3 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
1
  import React from 'react';
4
2
  import { Component } from 'react';
5
3
  import { type WrappedComponentProps } from 'react-intl-next';
@@ -27,7 +25,7 @@ export declare class ImageCropper extends Component<ImageCropperProp & WrappedCo
27
25
  componentDidMount(): void;
28
26
  onDragStarted: (e: React.MouseEvent<{}>) => void;
29
27
  onImageError: () => void;
30
- render(): jsx.JSX.Element | null;
28
+ render(): JSX.Element | null;
31
29
  }
32
30
  declare const _default: React.FC<ImageCropperProp>;
33
31
  export default _default;
@@ -1,5 +1,3 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
1
  import React from 'react';
4
2
  import { Component } from 'react';
5
3
  import { type WrappedComponentProps } from 'react-intl-next';
@@ -27,7 +25,7 @@ export declare class ImageCropper extends Component<ImageCropperProp & WrappedCo
27
25
  componentDidMount(): void;
28
26
  onDragStarted: (e: React.MouseEvent<{}>) => void;
29
27
  onImageError: () => void;
30
- render(): jsx.JSX.Element | null;
28
+ render(): JSX.Element | null;
31
29
  }
32
30
  declare const _default: React.FC<ImageCropperProp>;
33
31
  export default _default;
@@ -1,6 +1,7 @@
1
1
  /**@jsx jsx */
2
2
  /* eslint-disable no-console */
3
3
  import React, { type ReactNode } from 'react';
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
5
  import { jsx } from '@emotion/react';
5
6
  import Button from '@atlaskit/button/standard-button';
6
7
  import { ModalTransition } from '@atlaskit/modal-dialog';
@@ -162,6 +163,7 @@ export default class StatefulAvatarPickerDialog extends React.Component<
162
163
  const { requireAltText } = this.props;
163
164
 
164
165
  return (
166
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
165
167
  <div css={layoutStyles}>
166
168
  <Button appearance="primary" onClick={this.openPicker}>
167
169
  Open sesame!