@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.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +2 -1
- package/dist/cjs/view/EmbedCard/components/ErrorFrame.compiled.css +28 -0
- package/dist/cjs/view/EmbedCard/components/ErrorFrame.js +59 -63
- package/dist/cjs/view/EmbedCard/components/ErrorFrameOld.js +100 -0
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +24 -10
- package/dist/cjs/view/EmbedCard/components/ExpandedFrameOld.js +114 -0
- package/dist/cjs/view/EmbedCard/components/Frame.compiled.css +9 -0
- package/dist/cjs/view/EmbedCard/components/Frame.js +23 -23
- package/dist/cjs/view/EmbedCard/components/FrameOld.js +144 -0
- package/dist/cjs/view/EmbedCard/components/ImageIcon.js +20 -9
- package/dist/cjs/view/EmbedCard/components/styled.compiled.css +92 -0
- package/dist/cjs/view/EmbedCard/components/styled.js +197 -234
- package/dist/cjs/view/EmbedCard/components/styledOld.js +261 -0
- package/dist/cjs/view/EmbedCard/views/ErroredView.compiled.css +13 -0
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +30 -38
- package/dist/cjs/view/EmbedCard/views/ErroredViewOld.js +69 -0
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +19 -13
- package/dist/cjs/view/EmbedCard/views/ResolvedViewOld.js +82 -0
- package/dist/cjs/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.js +129 -0
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.compiled.css +19 -0
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +36 -55
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +2 -1
- package/dist/es2019/view/EmbedCard/components/ErrorFrame.compiled.css +28 -0
- package/dist/es2019/view/EmbedCard/components/ErrorFrame.js +48 -61
- package/dist/es2019/view/EmbedCard/components/ErrorFrameOld.js +91 -0
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +48 -32
- package/dist/es2019/view/EmbedCard/components/ExpandedFrameOld.js +96 -0
- package/dist/es2019/view/EmbedCard/components/Frame.compiled.css +9 -0
- package/dist/es2019/view/EmbedCard/components/Frame.js +23 -22
- package/dist/es2019/view/EmbedCard/components/FrameOld.js +114 -0
- package/dist/es2019/view/EmbedCard/components/ImageIcon.js +20 -9
- package/dist/es2019/view/EmbedCard/components/styled.compiled.css +92 -0
- package/dist/es2019/view/EmbedCard/components/styled.js +192 -343
- package/dist/es2019/view/EmbedCard/components/styledOld.js +362 -0
- package/dist/es2019/view/EmbedCard/views/ErroredView.compiled.css +13 -0
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +27 -37
- package/dist/es2019/view/EmbedCard/views/ErroredViewOld.js +58 -0
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +19 -12
- package/dist/es2019/view/EmbedCard/views/ResolvedViewOld.js +72 -0
- package/dist/es2019/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.js +119 -0
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.compiled.css +19 -0
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +35 -53
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvedView.js +2 -1
- package/dist/esm/view/EmbedCard/components/ErrorFrame.compiled.css +28 -0
- package/dist/esm/view/EmbedCard/components/ErrorFrame.js +59 -62
- package/dist/esm/view/EmbedCard/components/ErrorFrameOld.js +92 -0
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +13 -2
- package/dist/esm/view/EmbedCard/components/ExpandedFrameOld.js +104 -0
- package/dist/esm/view/EmbedCard/components/Frame.compiled.css +9 -0
- package/dist/esm/view/EmbedCard/components/Frame.js +23 -22
- package/dist/esm/view/EmbedCard/components/FrameOld.js +133 -0
- package/dist/esm/view/EmbedCard/components/ImageIcon.js +20 -9
- package/dist/esm/view/EmbedCard/components/styled.compiled.css +92 -0
- package/dist/esm/view/EmbedCard/components/styled.js +197 -234
- package/dist/esm/view/EmbedCard/components/styledOld.js +252 -0
- package/dist/esm/view/EmbedCard/views/ErroredView.compiled.css +13 -0
- package/dist/esm/view/EmbedCard/views/ErroredView.js +27 -37
- package/dist/esm/view/EmbedCard/views/ErroredViewOld.js +61 -0
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +19 -12
- package/dist/esm/view/EmbedCard/views/ResolvedViewOld.js +74 -0
- package/dist/esm/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.js +118 -0
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.compiled.css +19 -0
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +35 -53
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/EmbedCard/components/ErrorFrame.d.ts +3 -4
- package/dist/types/view/EmbedCard/components/ErrorFrameOld.d.ts +19 -0
- package/dist/types/view/EmbedCard/components/ExpandedFrame.d.ts +2 -2
- package/dist/types/view/EmbedCard/components/ExpandedFrameOld.d.ts +40 -0
- package/dist/types/view/EmbedCard/components/FrameOld.d.ts +14 -0
- package/dist/types/view/EmbedCard/components/styled.d.ts +15 -77
- package/dist/types/view/EmbedCard/components/styledOld.d.ts +109 -0
- package/dist/types/view/EmbedCard/views/ErroredView.d.ts +2 -2
- package/dist/types/view/EmbedCard/views/ErroredViewOld.d.ts +12 -0
- package/dist/types/view/EmbedCard/views/ResolvedView.d.ts +0 -4
- package/dist/types/view/EmbedCard/views/ResolvedViewOld.d.ts +36 -0
- package/dist/types/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.d.ts +4 -0
- package/dist/types/view/EmbedCard/views/unresolved-view/index.d.ts +3 -3
- package/dist/types-ts4.5/view/EmbedCard/components/ErrorFrame.d.ts +3 -4
- package/dist/types-ts4.5/view/EmbedCard/components/ErrorFrameOld.d.ts +19 -0
- package/dist/types-ts4.5/view/EmbedCard/components/ExpandedFrame.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/components/ExpandedFrameOld.d.ts +40 -0
- package/dist/types-ts4.5/view/EmbedCard/components/FrameOld.d.ts +14 -0
- package/dist/types-ts4.5/view/EmbedCard/components/styled.d.ts +15 -77
- package/dist/types-ts4.5/view/EmbedCard/components/styledOld.d.ts +109 -0
- package/dist/types-ts4.5/view/EmbedCard/views/ErroredView.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/views/ErroredViewOld.d.ts +12 -0
- package/dist/types-ts4.5/view/EmbedCard/views/ResolvedView.d.ts +0 -4
- package/dist/types-ts4.5/view/EmbedCard/views/ResolvedViewOld.d.ts +36 -0
- package/dist/types-ts4.5/view/EmbedCard/views/unresolved-view/UnresolvedViewOld.d.ts +4 -0
- package/dist/types-ts4.5/view/EmbedCard/views/unresolved-view/index.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1,362 +1,211 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
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
|
|
155
|
-
export const
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
})
|
|
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
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
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
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
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
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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
|
-
//
|
|
319
|
-
|
|
320
|
-
|
|
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
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
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
|
|
334
|
-
export const
|
|
335
|
-
|
|
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
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
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
|
-
|
|
353
|
-
|
|
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
|
+
}
|