@atlaskit/smart-card 34.6.6 → 34.7.0

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 (97) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/BlockCard/views/ResolvedView.js +2 -1
  4. package/dist/cjs/view/EmbedCard/components/ErrorFrame.compiled.css +28 -0
  5. package/dist/cjs/view/EmbedCard/components/ErrorFrame.js +59 -63
  6. package/dist/cjs/view/EmbedCard/components/ErrorFrameOld.js +100 -0
  7. package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +24 -10
  8. package/dist/cjs/view/EmbedCard/components/ExpandedFrameOld.js +114 -0
  9. package/dist/cjs/view/EmbedCard/components/Frame.compiled.css +9 -0
  10. package/dist/cjs/view/EmbedCard/components/Frame.js +23 -23
  11. package/dist/cjs/view/EmbedCard/components/FrameOld.js +144 -0
  12. package/dist/cjs/view/EmbedCard/components/ImageIcon.js +20 -9
  13. package/dist/cjs/view/EmbedCard/components/styled.compiled.css +92 -0
  14. package/dist/cjs/view/EmbedCard/components/styled.js +197 -234
  15. package/dist/cjs/view/EmbedCard/components/styledOld.js +261 -0
  16. package/dist/cjs/view/EmbedCard/views/ErroredView.compiled.css +13 -0
  17. package/dist/cjs/view/EmbedCard/views/ErroredView.js +30 -38
  18. package/dist/cjs/view/EmbedCard/views/ErroredViewOld.js +69 -0
  19. package/dist/cjs/view/EmbedCard/views/ResolvedView.js +19 -13
  20. package/dist/cjs/view/EmbedCard/views/ResolvedViewOld.js +82 -0
  21. package/dist/cjs/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.js +129 -0
  22. package/dist/cjs/view/EmbedCard/views/unresolved-view/index.compiled.css +19 -0
  23. package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +36 -55
  24. package/dist/cjs/view/LinkUrl/index.js +1 -1
  25. package/dist/es2019/utils/analytics/analytics.js +1 -1
  26. package/dist/es2019/view/BlockCard/views/ResolvedView.js +2 -1
  27. package/dist/es2019/view/EmbedCard/components/ErrorFrame.compiled.css +28 -0
  28. package/dist/es2019/view/EmbedCard/components/ErrorFrame.js +48 -61
  29. package/dist/es2019/view/EmbedCard/components/ErrorFrameOld.js +91 -0
  30. package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +48 -32
  31. package/dist/es2019/view/EmbedCard/components/ExpandedFrameOld.js +96 -0
  32. package/dist/es2019/view/EmbedCard/components/Frame.compiled.css +9 -0
  33. package/dist/es2019/view/EmbedCard/components/Frame.js +23 -22
  34. package/dist/es2019/view/EmbedCard/components/FrameOld.js +114 -0
  35. package/dist/es2019/view/EmbedCard/components/ImageIcon.js +20 -9
  36. package/dist/es2019/view/EmbedCard/components/styled.compiled.css +92 -0
  37. package/dist/es2019/view/EmbedCard/components/styled.js +192 -343
  38. package/dist/es2019/view/EmbedCard/components/styledOld.js +362 -0
  39. package/dist/es2019/view/EmbedCard/views/ErroredView.compiled.css +13 -0
  40. package/dist/es2019/view/EmbedCard/views/ErroredView.js +27 -37
  41. package/dist/es2019/view/EmbedCard/views/ErroredViewOld.js +58 -0
  42. package/dist/es2019/view/EmbedCard/views/ResolvedView.js +19 -12
  43. package/dist/es2019/view/EmbedCard/views/ResolvedViewOld.js +72 -0
  44. package/dist/es2019/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.js +119 -0
  45. package/dist/es2019/view/EmbedCard/views/unresolved-view/index.compiled.css +19 -0
  46. package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +35 -53
  47. package/dist/es2019/view/LinkUrl/index.js +1 -1
  48. package/dist/esm/utils/analytics/analytics.js +1 -1
  49. package/dist/esm/view/BlockCard/views/ResolvedView.js +2 -1
  50. package/dist/esm/view/EmbedCard/components/ErrorFrame.compiled.css +28 -0
  51. package/dist/esm/view/EmbedCard/components/ErrorFrame.js +59 -62
  52. package/dist/esm/view/EmbedCard/components/ErrorFrameOld.js +92 -0
  53. package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +13 -2
  54. package/dist/esm/view/EmbedCard/components/ExpandedFrameOld.js +104 -0
  55. package/dist/esm/view/EmbedCard/components/Frame.compiled.css +9 -0
  56. package/dist/esm/view/EmbedCard/components/Frame.js +23 -22
  57. package/dist/esm/view/EmbedCard/components/FrameOld.js +133 -0
  58. package/dist/esm/view/EmbedCard/components/ImageIcon.js +20 -9
  59. package/dist/esm/view/EmbedCard/components/styled.compiled.css +92 -0
  60. package/dist/esm/view/EmbedCard/components/styled.js +197 -234
  61. package/dist/esm/view/EmbedCard/components/styledOld.js +252 -0
  62. package/dist/esm/view/EmbedCard/views/ErroredView.compiled.css +13 -0
  63. package/dist/esm/view/EmbedCard/views/ErroredView.js +27 -37
  64. package/dist/esm/view/EmbedCard/views/ErroredViewOld.js +61 -0
  65. package/dist/esm/view/EmbedCard/views/ResolvedView.js +19 -12
  66. package/dist/esm/view/EmbedCard/views/ResolvedViewOld.js +74 -0
  67. package/dist/esm/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.js +118 -0
  68. package/dist/esm/view/EmbedCard/views/unresolved-view/index.compiled.css +19 -0
  69. package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +35 -53
  70. package/dist/esm/view/LinkUrl/index.js +1 -1
  71. package/dist/types/view/EmbedCard/components/ErrorFrame.d.ts +3 -4
  72. package/dist/types/view/EmbedCard/components/ErrorFrameOld.d.ts +19 -0
  73. package/dist/types/view/EmbedCard/components/ExpandedFrame.d.ts +2 -2
  74. package/dist/types/view/EmbedCard/components/ExpandedFrameOld.d.ts +40 -0
  75. package/dist/types/view/EmbedCard/components/FrameOld.d.ts +14 -0
  76. package/dist/types/view/EmbedCard/components/styled.d.ts +15 -77
  77. package/dist/types/view/EmbedCard/components/styledOld.d.ts +109 -0
  78. package/dist/types/view/EmbedCard/views/ErroredView.d.ts +2 -2
  79. package/dist/types/view/EmbedCard/views/ErroredViewOld.d.ts +12 -0
  80. package/dist/types/view/EmbedCard/views/ResolvedView.d.ts +0 -4
  81. package/dist/types/view/EmbedCard/views/ResolvedViewOld.d.ts +36 -0
  82. package/dist/types/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.d.ts +4 -0
  83. package/dist/types/view/EmbedCard/views/unresolved-view/index.d.ts +3 -3
  84. package/dist/types-ts4.5/view/EmbedCard/components/ErrorFrame.d.ts +3 -4
  85. package/dist/types-ts4.5/view/EmbedCard/components/ErrorFrameOld.d.ts +19 -0
  86. package/dist/types-ts4.5/view/EmbedCard/components/ExpandedFrame.d.ts +2 -2
  87. package/dist/types-ts4.5/view/EmbedCard/components/ExpandedFrameOld.d.ts +40 -0
  88. package/dist/types-ts4.5/view/EmbedCard/components/FrameOld.d.ts +14 -0
  89. package/dist/types-ts4.5/view/EmbedCard/components/styled.d.ts +15 -77
  90. package/dist/types-ts4.5/view/EmbedCard/components/styledOld.d.ts +109 -0
  91. package/dist/types-ts4.5/view/EmbedCard/views/ErroredView.d.ts +2 -2
  92. package/dist/types-ts4.5/view/EmbedCard/views/ErroredViewOld.d.ts +12 -0
  93. package/dist/types-ts4.5/view/EmbedCard/views/ResolvedView.d.ts +0 -4
  94. package/dist/types-ts4.5/view/EmbedCard/views/ResolvedViewOld.d.ts +36 -0
  95. package/dist/types-ts4.5/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.d.ts +4 -0
  96. package/dist/types-ts4.5/view/EmbedCard/views/unresolved-view/index.d.ts +3 -3
  97. package/package.json +2 -2
@@ -1,362 +1,211 @@
1
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
- import styled from '@emotion/styled';
3
- import * as colors from '@atlaskit/theme/colors';
4
- import { N40 } from '@atlaskit/theme/colors';
5
- import { gs as gridSize } from '../../common/utils';
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.0 */
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import "./styled.compiled.css";
4
+ import { forwardRef } from 'react';
5
+ import * as React from 'react';
6
+ import { ax, ix } from "@compiled/react/runtime";
7
+ /* eslint-disable @atlaskit/ui-styling-standard/no-dynamic-styles */
8
+
9
+ import { B100, B50, N30, N300, N40 } from '@atlaskit/theme/colors';
6
10
  export const className = 'media-card-frame';
7
- export const borderRadius = `
8
- border-radius: ${"var(--ds-border-radius, 3px)"};
9
- `;
10
- const wrapperBorderRadius = `
11
- border-radius: ${"var(--ds-border-radius-200, 8px)"};
12
- `;
13
- const contentBorderRadius = `
14
- border-radius: ${"var(--ds-border-radius-100, 4px)"};
15
- `;
16
- export const ellipsis = (maxWidth = '100%') => {
17
- const unit = typeof maxWidth === 'number' ? 'px' : '';
18
- return `
19
- max-width: ${maxWidth}${unit};
20
- overflow: hidden;
21
- text-overflow: ellipsis;
22
- white-space: nowrap;
23
- `;
24
- };
25
- export const csssize = (value = '100%') => {
26
- const unit = typeof value === 'number' ? 'px' : '';
27
- return `
28
- width: ${value}${unit};
29
- height: ${value}${unit};
30
- `;
31
- };
32
- function minWidth({
33
- minWidth
34
- }) {
35
- if (minWidth) {
36
- return `min-width: ${minWidth}px;`;
37
- } else {
38
- return '';
39
- }
40
- }
41
- function maxWidth({
42
- maxWidth
43
- }) {
44
- if (maxWidth) {
45
- return `max-width: ${maxWidth}px; margin: 0 auto;`;
46
- } else {
47
- return 'margin: 0 auto;';
48
- }
49
- }
50
- function getInteractiveStyles({
51
- isInteractive,
52
- frameStyle
53
- }) {
54
- return isInteractive ? `
55
- &:hover {
56
- ${frameStyle !== 'hide' && visibleStyles}
57
-
58
- }
59
- &:active {
60
- background-color: ${`var(--ds-background-selected, ${colors.B50})`};
61
- }
62
- ` : '';
63
- }
64
- function selected({
65
- isSelected,
66
- frameStyle
67
- }) {
68
- return isSelected && frameStyle !== 'hide' ? `
69
- ${visibleStyles}
70
- &::after {
71
- cursor: pointer;
72
- box-shadow: 0 0 0 3px ${`var(--ds-border-selected, ${colors.B100})`};
73
- content: '';
74
- border: none;
75
- position: absolute;
76
- height: 100%;
77
- width: 100%;
78
- left: 0;
79
- ${wrapperBorderRadius}
80
- }
81
- ` : isSelected && frameStyle === 'hide' ? contentBorderRadius : '';
82
- }
83
- const height = ({
84
- inheritDimensions
85
- }) => inheritDimensions ? 'height: 100%;' : `height: ${gridSize(54)}`;
86
- const wrapperStyles = props => `
87
- ${wrapperBorderRadius}
88
- ${minWidth(props)}
89
- ${maxWidth(props)}
90
- ${getInteractiveStyles(props)}
91
- ${visible(props)}
92
- display: inline-flex;
93
- flex-direction: column;
94
- box-sizing: border-box;
95
- font-family: ${"var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"};
96
- width: 100%;
97
- user-select: none;
98
- line-height: initial;
99
- transition: background 0.3s;
100
- position: relative;
101
- ${height(props)};
102
- ${selected(props)}
103
-
104
- &:after {
105
- content: '';
106
- transition: background 0.3s, box-shadow 0.3s;
107
- position: absolute;
108
- height: calc(100% + ${"var(--ds-space-100, 8px)"});
109
- ${wrapperBorderRadius}
110
-
111
- ${wrapperSizing(props)}
112
- }
113
- `;
114
-
115
- // if frameStyle !== 'show' then set the width of the frame to be
116
- // 100% of the content +16px and position it left -8px to make it appear
117
- // outside the container
118
- const wrapperSizing = ({
119
- frameStyle
120
- }) => frameStyle === 'show' ? `
121
- box-sizing: border-box;
122
- width: 100%;` : `
123
- width: calc(100% + ${"var(--ds-space-200, 16px)"});
124
- left: ${"var(--ds-space-negative-100, -8px)"};`;
125
- const visibleStyles = `
126
- &:after {
127
- border: 1px solid ${`var(--ds-border, ${N40})`};
128
- background-color: ${"var(--ds-surface-raised, white)"};
129
- }
130
- .embed-header {
131
- opacity: 1;
132
- }`;
133
- function visible({
134
- frameStyle
135
- }) {
136
- return frameStyle === 'show' ? visibleStyles : '';
137
- }
138
-
139
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
140
- export const LinkWrapper = styled.div`
141
- ${props => wrapperStyles(props)} &:hover {
142
- text-decoration: none;
143
- }
144
- `;
145
-
146
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
147
- export const Wrapper = styled.div(props => wrapperStyles(props), {
148
- // We are keeping this margin as a hardcoded variable as it is not a standard token size and needs
149
- // to be thoroughly checked with a designer so that we do not miss an unintended visual change
150
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
151
- marginTop: '10px'
152
- });
153
11
  export const embedHeaderHeight = 32;
154
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
155
- export const Header = styled.div({
156
- height: `${embedHeaderHeight}px`,
157
- position: 'absolute',
158
- zIndex: 1,
159
- width: '100%',
160
- display: 'flex',
161
- alignItems: 'center',
162
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
163
- color: `var(--ds-icon, ${colors.N300})`,
164
- opacity: 0,
165
- transition: '300ms opacity cubic-bezier(0.15, 1, 0.3, 1)'
166
- },
167
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
168
- ({
169
- frameStyle
170
- }) => frameStyle === 'show' ? `
171
- box-sizing: border-box;
172
- padding: 0 ${"var(--ds-space-100, 8px)"};
173
- ` : '');
174
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
175
- export const IconWrapper = styled.div(
176
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
177
- borderRadius,
178
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
179
- csssize(16),
180
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
181
- ({
182
- isPlaceholder
183
- }) => {
184
- if (isPlaceholder) {
185
- return `
186
- ${/* eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766 */''}
187
- background-color: ${`var(--ds-skeleton, ${colors.N30})`};
188
- `;
189
- } else {
190
- return '';
191
- }
192
- }, {
193
- marginRight: "var(--ds-space-050, 4px)"
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
13
+ export const LinkWrapper = forwardRef(({
14
+ as: C = "div",
15
+ style: __cmpls,
16
+ ...__cmplp
17
+ }, __cmplr) => {
18
+ const {
19
+ isSelected,
20
+ frameStyle,
21
+ minWidth,
22
+ maxWidth,
23
+ isInteractive,
24
+ inheritDimensions,
25
+ ...__cmpldp
26
+ } = __cmplp;
27
+ return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
28
+ style: {
29
+ ...__cmpls,
30
+ "--_10q0298": ix(__cmplp.minWidth, "px"),
31
+ "--_1et2rhb": ix(__cmplp.maxWidth, "px")
32
+ },
33
+ ref: __cmplr,
34
+ className: ax(["_19pkidpf _2hwx1wug _otyridpf _18u01wug _v5641y8x _1e0c116y _2lx21bp4 _vchhusvi _ect41sbm _1bsb1osq _uiztglyw _vwz44jg8 _kqswh2mm _qc5o94zs _14mjpd34 _aetrb3bt _18postnw _1qdg1rgy _9oik18uv _1bnxglyw _jf4cnqa1", __cmplp.isSelected && __cmplp.frameStyle === 'hide' ? "_2rkoiti9" : "_2rkopd34", __cmplp.minWidth && "_1ul91pd6", __cmplp.maxWidth && "_p12f1ayu", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' && "_1u3rh6cr", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' && "_4tpuhp5a", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' ? "_x148kb7n" : "_x148idpf", __cmplp.isInteractive && "_1di629zg", __cmplp.frameStyle === 'show' || __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_1ifikb7n" : "_1ifiidpf", __cmplp.inheritDimensions ? "_4t3i1osq" : "_4t3ik5xz", __cmplp.frameStyle === 'show' && "_631ousvi", __cmplp.frameStyle === 'show' ? "_z0ai1osq" : "_z0aie9lw", __cmplp.frameStyle !== 'show' ? "_19dox0bf" : __cmplp.isSelected ? "_19doidpf" : "_19do1kw7", __cmplp.frameStyle === 'show' || __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_eq43h6cr" : "_eq431kw7", __cmplp.frameStyle === 'show' || __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_1hfkhp5a" : "_1hfk1kw7", __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_6syztlke" : "_6syz1kw7", __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_8x3umqxb" : "_8x3u1kw7", __cmplp.className])
35
+ }));
194
36
  });
195
37
 
196
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
197
- export const TextWrapper = styled.div(
198
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
199
- ({
200
- isPlaceholder
201
- }) => {
202
- if (isPlaceholder) {
203
- return `
204
- ${borderRadius}
205
- width: 125px;
206
- height: 12px;
207
- ${/* eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766 */''}
208
- background-color: ${`var(--ds-skeleton, ${colors.N30})`};
209
- `;
210
- } else {
211
- return '';
212
- }
213
- }, {
214
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
215
- color: `var(--ds-text-subtlest, ${colors.N300})`,
216
- font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
217
- },
218
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
219
- ellipsis('none'));
220
-
221
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
222
- export const TooltipWrapper = styled.div({
223
- overflow: 'hidden'
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
39
+ if (process.env.NODE_ENV !== 'production') {
40
+ LinkWrapper.displayName = 'LinkWrapper';
41
+ }
42
+ export const Wrapper = forwardRef(({
43
+ as: C = "div",
44
+ style: __cmpls,
45
+ ...__cmplp
46
+ }, __cmplr) => {
47
+ const {
48
+ isSelected,
49
+ frameStyle,
50
+ minWidth,
51
+ maxWidth,
52
+ isInteractive,
53
+ inheritDimensions,
54
+ ...__cmpldp
55
+ } = __cmplp;
56
+ return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
57
+ style: {
58
+ ...__cmpls,
59
+ "--_10q0298": ix(__cmplp.minWidth, "px"),
60
+ "--_1et2rhb": ix(__cmplp.maxWidth, "px")
61
+ },
62
+ ref: __cmplr,
63
+ className: ax(["_19pkidpf _2hwx1wug _otyridpf _18u01wug _v5641y8x _1e0c116y _2lx21bp4 _vchhusvi _ect41sbm _1bsb1osq _uiztglyw _vwz44jg8 _kqswh2mm _19pk19bv _qc5o94zs _14mjpd34 _aetrb3bt _18postnw _1qdg1rgy", __cmplp.isSelected && __cmplp.frameStyle === 'hide' ? "_2rkoiti9" : "_2rkopd34", __cmplp.minWidth && "_1ul91pd6", __cmplp.maxWidth && "_p12f1ayu", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' && "_1u3rh6cr", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' && "_4tpuhp5a", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' ? "_x148kb7n" : "_x148idpf", __cmplp.isInteractive && "_1di629zg", __cmplp.frameStyle === 'show' || __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_1ifikb7n" : "_1ifiidpf", __cmplp.inheritDimensions ? "_4t3i1osq" : "_4t3ik5xz", __cmplp.frameStyle === 'show' && "_631ousvi", __cmplp.frameStyle === 'show' ? "_z0ai1osq" : "_z0aie9lw", __cmplp.frameStyle !== 'show' ? "_19dox0bf" : __cmplp.isSelected ? "_19doidpf" : "_19do1kw7", __cmplp.frameStyle === 'show' || __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_eq43h6cr" : "_eq431kw7", __cmplp.frameStyle === 'show' ? "_1hfkhp5a" : "_1hfk1kw7", __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_6syztlke" : "_6syz1kw7", __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_8x3umqxb" : "_8x3u1kw7", __cmplp.className])
64
+ }));
224
65
  });
225
- // NB: `overflow` is kept as `hidden` since
226
- // the internal contents of the `iframe` should
227
- // manage scrolling behaviour.
228
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
229
- export const Content = styled.div`
230
- ${contentBorderRadius};
231
- border: 1px solid ${`var(--ds-border, ${N40})`};
232
- background-color: ${"var(--ds-surface-raised, white)"};
233
- position: absolute;
234
- z-index: 1;
235
- width: 100%;
236
- transition: box-shadow 0.3s;
237
-
238
- > .calc-height > div > div {
239
- left: unset !important;
240
- width: unset !important;
241
- height: unset !important;
242
- position: initial !important;
243
- padding-bottom: unset !important;
244
- }
245
- > .embed-preview > div {
246
- margin: 0 auto;
247
- }
248
-
249
- ${({
250
- allowScrollBar,
251
- removeOverflow
252
- }) => {
253
- if (removeOverflow) {
254
- return '';
255
- }
256
- return allowScrollBar ? 'overflow: auto;' : 'overflow: hidden;';
257
- }}
258
66
 
259
- ${({
260
- frameStyle
261
- }) => frameStyle === 'show' ? `
262
- width: calc(100% - ${"var(--ds-space-200, 16px)"} - 2px);
263
- margin: 0 ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"};
264
- ` : ''}
265
-
266
- ${({
267
- frameStyle
268
- }) => frameStyle === 'hide' ? 'height: 100%;' : `
269
- height: calc(100% - ${"var(--ds-space-400, 32px)"});
270
- top: ${"var(--ds-space-400, 32px)"};
271
- `}
272
- `;
273
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
274
- export const Image = styled.img(({
275
- size
276
- }) => csssize(size), borderRadius, {
277
- overflow: 'hidden'
67
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
68
+ if (process.env.NODE_ENV !== 'production') {
69
+ Wrapper.displayName = 'Wrapper';
70
+ }
71
+ export const Header = forwardRef(({
72
+ as: C = "div",
73
+ style: __cmpls,
74
+ ...__cmplp
75
+ }, __cmplr) => {
76
+ const {
77
+ frameStyle,
78
+ ...__cmpldp
79
+ } = __cmplp;
80
+ return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
81
+ style: __cmpls,
82
+ ref: __cmplr,
83
+ className: ax(["_v564ojwh _4t3izwfg _kqswstnw _1pbykb7n _1bsb1osq _1e0c1txw _4cvr1h6o _syazqjbk _tzy4idpf", __cmplp.frameStyle === 'show' && "_vchhusvi", __cmplp.frameStyle === 'show' && "_1yt4h8dc", __cmplp.className])
84
+ }));
278
85
  });
279
- export const maxAvatarCount = 6;
280
86
 
281
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
282
- export const ContentWrapper = styled.div({
283
- display: 'flex',
284
- flexDirection: 'row',
285
- boxSizing: 'border-box',
286
- padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"}`
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
88
+ if (process.env.NODE_ENV !== 'production') {
89
+ Header.displayName = 'Header';
90
+ }
91
+ export const IconWrapper = forwardRef(({
92
+ as: C = "div",
93
+ style: __cmpls,
94
+ ...__cmplp
95
+ }, __cmplr) => {
96
+ const {
97
+ isPlaceholder,
98
+ ...__cmpldp
99
+ } = __cmplp;
100
+ return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
101
+ style: __cmpls,
102
+ ref: __cmplr,
103
+ className: ax(["_2rko1sit _1bsb7vkz _4t3i7vkz _2hwx1b66", __cmplp.isPlaceholder && "_bfhkqrzy", __cmplp.className])
104
+ }));
287
105
  });
288
106
 
289
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
290
- export const Title = styled.div({
291
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
292
- color: `var(--ds-text, ${colors.N900})`,
293
- font: "var(--ds-font-heading-small, normal 600 16px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
294
- maxHeight: `${20 * 4}px`,
295
- overflow: 'hidden'
107
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
108
+ if (process.env.NODE_ENV !== 'production') {
109
+ IconWrapper.displayName = 'IconWrapper';
110
+ }
111
+ export const TextWrapper = forwardRef(({
112
+ as: C = "div",
113
+ style: __cmpls,
114
+ ...__cmplp
115
+ }, __cmplr) => {
116
+ const {
117
+ isPlaceholder,
118
+ ...__cmpldp
119
+ } = __cmplp;
120
+ return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
121
+ style: __cmpls,
122
+ ref: __cmplr,
123
+ className: ax(["_11c8qk37 _1reo15vq _18m915vq _syaz1rc1 _1bto1l2s _o5721q9c", __cmplp.isPlaceholder && "_2rko1sit", __cmplp.isPlaceholder && "_1bsb176v", __cmplp.isPlaceholder && "_4t3i1crf", __cmplp.isPlaceholder && "_bfhkqrzy", __cmplp.className])
124
+ }));
296
125
  });
297
126
 
298
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
299
- export const Byline = styled.div({
300
- marginTop: "var(--ds-space-050, 4px)",
301
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
302
- color: `var(--ds-text-subtlest, ${colors.N300})`,
303
- font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
304
- },
305
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
306
- ellipsis('100%'));
307
-
308
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
309
- export const Description = styled.div({
310
- marginTop: `calc(${"var(--ds-space-100, 8px)"} - 1px)`,
311
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
312
- color: `var(--ds-text, ${colors.N800})`,
313
- font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
314
- maxHeight: `${18 * 3}px`,
315
- overflow: 'hidden'
127
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
128
+ if (process.env.NODE_ENV !== 'production') {
129
+ TextWrapper.displayName = 'TextWrapper';
130
+ }
131
+ export const TooltipWrapper = forwardRef(({
132
+ as: C = "div",
133
+ style: __cmpls,
134
+ ...__cmplp
135
+ }, __cmplr) => {
136
+ return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
137
+ style: __cmpls,
138
+ ref: __cmplr,
139
+ className: ax(["_1reo15vq _18m915vq", __cmplp.className])
140
+ }));
316
141
  });
317
142
 
318
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
319
- export const ResolvedViewIconWrapper = styled.div({
320
- marginTop: "var(--ds-space-050, 4px)"
143
+ // NB: `overflow` is kept as `hidden` since
144
+ // the internal contents of the `iframe` should
145
+ // manage scrolling behaviour.
146
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
147
+ if (process.env.NODE_ENV !== 'production') {
148
+ TooltipWrapper.displayName = 'TooltipWrapper';
149
+ }
150
+ export const Content = forwardRef(({
151
+ as: C = "div",
152
+ style: __cmpls,
153
+ ...__cmplp
154
+ }, __cmplr) => {
155
+ const {
156
+ removeOverflow,
157
+ allowScrollBar,
158
+ frameStyle,
159
+ ...__cmpldp
160
+ } = __cmplp;
161
+ return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
162
+ style: __cmpls,
163
+ ref: __cmplr,
164
+ className: ax(["_2rkoiti9 _19ith6cr _v56414ba _bfhkhp5a _kqswstnw _1pbykb7n _hlq8idpf _rd9b1wug _1g4jidpf _jk3p1wug", !__cmplp.removeOverflow && (__cmplp.allowScrollBar ? "_1reo1wug _18m91wug" : "_1reo15vq _18m915vq"), __cmplp.frameStyle === 'show' ? "_1bsbwgg2" : "_1bsb1osq", __cmplp.frameStyle === 'show' && "_18s81xf9", __cmplp.frameStyle === 'hide' ? "_4t3i1osq" : "_4t3i1j2a", __cmplp.frameStyle !== 'hide' && "_154ixy5q", __cmplp.className])
165
+ }));
321
166
  });
322
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
323
- export const Thumbnail = styled.div(borderRadius, csssize(48), props => ({
324
- float: 'right',
325
- margin: `${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"}`,
326
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
327
- backgroundColor: `var(--ds-skeleton, ${colors.N30})`,
328
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
329
- backgroundImage: `url(${props.src})`,
330
- backgroundSize: 'cover'
331
- }));
167
+ if (process.env.NODE_ENV !== 'production') {
168
+ Content.displayName = 'Content';
169
+ }
170
+ const getSizeWithUnit = (value = '100%') => {
171
+ const unit = typeof value === 'number' ? 'px' : '';
172
+ return `${value}${unit}`;
173
+ };
332
174
 
333
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
334
- export const UsersWrapper = styled.div({
335
- marginTop: "var(--ds-space-100, 8px)"
175
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
176
+ export const Image = forwardRef(({
177
+ as: C = "img",
178
+ style: __cmpls,
179
+ ...__cmplp
180
+ }, __cmplr) => {
181
+ return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
182
+ style: {
183
+ ...__cmpls,
184
+ "--_rcxkve": ix(getSizeWithUnit(__cmplp.size))
185
+ },
186
+ ref: __cmplr,
187
+ className: ax(["_2rko1sit _1reo15vq _18m915vq _1bsb17ym _4t3i17ym", __cmplp.className])
188
+ }));
336
189
  });
337
190
 
338
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
339
- export const ActionsWrapper = styled.div({
340
- marginTop: "var(--ds-space-100, 8px)",
341
- textAlign: 'right',
342
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
343
- '> *': {
344
- marginTop: "var(--ds-space-050, 4px)"
345
- },
346
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
347
- '> * + *': {
348
- marginLeft: "var(--ds-space-050, 4px)"
349
- }
191
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
192
+ if (process.env.NODE_ENV !== 'production') {
193
+ Image.displayName = 'Image';
194
+ }
195
+ export const Thumbnail = forwardRef(({
196
+ as: C = "div",
197
+ style: __cmpls,
198
+ ...__cmplp
199
+ }, __cmplr) => {
200
+ return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
201
+ style: {
202
+ ...__cmpls,
203
+ "--_13orr8u": ix(`url(${__cmplp.src})`)
204
+ },
205
+ ref: __cmplr,
206
+ className: ax(["_2rko1sit _18s81cq1 _1bsbckbl _4t3ickbl _1aaxusic _bfhkqrzy _1lrw1dfr _1itk2pcs", __cmplp.className])
207
+ }));
350
208
  });
351
-
352
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
353
- export const AlertWrapper = styled.div({
354
- position: 'absolute',
355
- top: 0,
356
- right: 0,
357
- bottom: 0,
358
- left: 0,
359
- overflow: 'hidden',
360
- pointerEvents: 'none',
361
- zIndex: maxAvatarCount + 1
362
- });
209
+ if (process.env.NODE_ENV !== 'production') {
210
+ Thumbnail.displayName = 'Thumbnail';
211
+ }