@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,3 +1,4 @@
|
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -5,257 +6,219 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
6
|
Object.defineProperty(exports, "__esModule", {
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
8
|
-
exports.
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
9
|
+
exports.embedHeaderHeight = exports.className = exports.Wrapper = exports.TooltipWrapper = exports.Thumbnail = exports.TextWrapper = exports.LinkWrapper = exports.Image = exports.IconWrapper = exports.Header = exports.Content = void 0;
|
|
10
|
+
require("./styled.compiled.css");
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var React = _react;
|
|
13
|
+
var _runtime = require("@compiled/react/runtime");
|
|
14
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
18
|
+
var _excluded = ["as", "style"],
|
|
19
|
+
_excluded2 = ["isSelected", "frameStyle", "minWidth", "maxWidth", "isInteractive", "inheritDimensions"],
|
|
20
|
+
_excluded3 = ["as", "style"],
|
|
21
|
+
_excluded4 = ["isSelected", "frameStyle", "minWidth", "maxWidth", "isInteractive", "inheritDimensions"],
|
|
22
|
+
_excluded5 = ["as", "style"],
|
|
23
|
+
_excluded6 = ["frameStyle"],
|
|
24
|
+
_excluded7 = ["as", "style"],
|
|
25
|
+
_excluded8 = ["isPlaceholder"],
|
|
26
|
+
_excluded9 = ["as", "style"],
|
|
27
|
+
_excluded10 = ["isPlaceholder"],
|
|
28
|
+
_excluded11 = ["as", "style"],
|
|
29
|
+
_excluded12 = ["as", "style"],
|
|
30
|
+
_excluded13 = ["removeOverflow", "allowScrollBar", "frameStyle"],
|
|
31
|
+
_excluded14 = ["as", "style"],
|
|
32
|
+
_excluded15 = ["as", "style"];
|
|
33
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-dynamic-styles */
|
|
15
34
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
35
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
36
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
37
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
38
|
var className = exports.className = 'media-card-frame';
|
|
18
|
-
var borderRadius = exports.borderRadius = "\n border-radius: ".concat("var(--ds-border-radius, 3px)", ";\n");
|
|
19
|
-
var wrapperBorderRadius = "\n border-radius: ".concat("var(--ds-border-radius-200, 8px)", ";\n");
|
|
20
|
-
var contentBorderRadius = "\n border-radius: ".concat("var(--ds-border-radius-100, 4px)", ";\n");
|
|
21
|
-
var ellipsis = exports.ellipsis = function ellipsis() {
|
|
22
|
-
var maxWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '100%';
|
|
23
|
-
var unit = typeof maxWidth === 'number' ? 'px' : '';
|
|
24
|
-
return "\n max-width: ".concat(maxWidth).concat(unit, ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n ");
|
|
25
|
-
};
|
|
26
|
-
var csssize = exports.csssize = function csssize() {
|
|
27
|
-
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '100%';
|
|
28
|
-
var unit = typeof value === 'number' ? 'px' : '';
|
|
29
|
-
return "\n width: ".concat(value).concat(unit, ";\n height: ").concat(value).concat(unit, ";\n ");
|
|
30
|
-
};
|
|
31
|
-
function minWidth(_ref) {
|
|
32
|
-
var minWidth = _ref.minWidth;
|
|
33
|
-
if (minWidth) {
|
|
34
|
-
return "min-width: ".concat(minWidth, "px;");
|
|
35
|
-
} else {
|
|
36
|
-
return '';
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function maxWidth(_ref2) {
|
|
40
|
-
var maxWidth = _ref2.maxWidth;
|
|
41
|
-
if (maxWidth) {
|
|
42
|
-
return "max-width: ".concat(maxWidth, "px; margin: 0 auto;");
|
|
43
|
-
} else {
|
|
44
|
-
return 'margin: 0 auto;';
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function getInteractiveStyles(_ref3) {
|
|
48
|
-
var isInteractive = _ref3.isInteractive,
|
|
49
|
-
frameStyle = _ref3.frameStyle;
|
|
50
|
-
return isInteractive ? "\n &:hover {\n ".concat(frameStyle !== 'hide' && visibleStyles, "\n\n }\n &:active {\n background-color: ", "var(--ds-background-selected, ".concat(colors.B50, ")"), ";\n }\n ") : '';
|
|
51
|
-
}
|
|
52
|
-
function selected(_ref4) {
|
|
53
|
-
var isSelected = _ref4.isSelected,
|
|
54
|
-
frameStyle = _ref4.frameStyle;
|
|
55
|
-
return isSelected && frameStyle !== 'hide' ? "\n ".concat(visibleStyles, "\n &::after {\n cursor: pointer;\n box-shadow: 0 0 0 3px ", "var(--ds-border-selected, ".concat(colors.B100, ")"), ";\n content: '';\n border: none;\n position: absolute;\n height: 100%;\n width: 100%;\n left: 0;\n ").concat(wrapperBorderRadius, "\n }\n ") : isSelected && frameStyle === 'hide' ? contentBorderRadius : '';
|
|
56
|
-
}
|
|
57
|
-
var height = function height(_ref5) {
|
|
58
|
-
var inheritDimensions = _ref5.inheritDimensions;
|
|
59
|
-
return inheritDimensions ? 'height: 100%;' : "height: ".concat((0, _utils.gs)(54));
|
|
60
|
-
};
|
|
61
|
-
var wrapperStyles = function wrapperStyles(props) {
|
|
62
|
-
return "\n ".concat(wrapperBorderRadius, "\n ").concat(minWidth(props), "\n ").concat(maxWidth(props), "\n ").concat(getInteractiveStyles(props), "\n ").concat(visible(props), "\n display: inline-flex;\n flex-direction: column;\n box-sizing: border-box;\n font-family: ", "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)", ";\n width: 100%;\n user-select: none;\n line-height: initial;\n transition: background 0.3s;\n position: relative;\n ").concat(height(props), ";\n ").concat(selected(props), "\n\n &:after {\n content: '';\n transition: background 0.3s, box-shadow 0.3s;\n position: absolute;\n height: calc(100% + ", "var(--ds-space-100, 8px)", ");\n ").concat(wrapperBorderRadius, "\n\n ").concat(wrapperSizing(props), "\n }\n");
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// if frameStyle !== 'show' then set the width of the frame to be
|
|
66
|
-
// 100% of the content +16px and position it left -8px to make it appear
|
|
67
|
-
// outside the container
|
|
68
|
-
var wrapperSizing = function wrapperSizing(_ref6) {
|
|
69
|
-
var frameStyle = _ref6.frameStyle;
|
|
70
|
-
return frameStyle === 'show' ? "\n box-sizing: border-box;\n width: 100%;" : "\n width: calc(100% + ".concat("var(--ds-space-200, 16px)", ");\n left: ", "var(--ds-space-negative-100, -8px)", ";");
|
|
71
|
-
};
|
|
72
|
-
var visibleStyles = "\n &:after {\n border: 1px solid ".concat("var(--ds-border, ".concat(_colors.N40, ")"), ";\n background-color: ", "var(--ds-surface-raised, white)", ";\n }\n .embed-header {\n opacity: 1;\n }");
|
|
73
|
-
function visible(_ref7) {
|
|
74
|
-
var frameStyle = _ref7.frameStyle;
|
|
75
|
-
return frameStyle === 'show' ? visibleStyles : '';
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// 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
|
|
79
|
-
var LinkWrapper = exports.LinkWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", " &:hover {\n\t\ttext-decoration: none;\n\t}\n"])), function (props) {
|
|
80
|
-
return wrapperStyles(props);
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
// 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
|
|
84
|
-
var Wrapper = exports.Wrapper = _styled.default.div(function (props) {
|
|
85
|
-
return wrapperStyles(props);
|
|
86
|
-
}, {
|
|
87
|
-
// We are keeping this margin as a hardcoded variable as it is not a standard token size and needs
|
|
88
|
-
// to be thoroughly checked with a designer so that we do not miss an unintended visual change
|
|
89
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
90
|
-
marginTop: '10px'
|
|
91
|
-
});
|
|
92
39
|
var embedHeaderHeight = exports.embedHeaderHeight = 32;
|
|
93
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
borderRadius,
|
|
115
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
116
|
-
csssize(16),
|
|
117
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
118
|
-
function (_ref9) {
|
|
119
|
-
var isPlaceholder = _ref9.isPlaceholder;
|
|
120
|
-
if (isPlaceholder) {
|
|
121
|
-
return "\n\t\t\t".concat("\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
122
|
-
} else {
|
|
123
|
-
return '';
|
|
124
|
-
}
|
|
125
|
-
}, {
|
|
126
|
-
marginRight: "var(--ds-space-050, 4px)"
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
41
|
+
var LinkWrapper = exports.LinkWrapper = (0, _react.forwardRef)(function (_ref, __cmplr) {
|
|
42
|
+
var _ref$as = _ref.as,
|
|
43
|
+
C = _ref$as === void 0 ? "div" : _ref$as,
|
|
44
|
+
__cmpls = _ref.style,
|
|
45
|
+
__cmplp = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
46
|
+
var isSelected = __cmplp.isSelected,
|
|
47
|
+
frameStyle = __cmplp.frameStyle,
|
|
48
|
+
minWidth = __cmplp.minWidth,
|
|
49
|
+
maxWidth = __cmplp.maxWidth,
|
|
50
|
+
isInteractive = __cmplp.isInteractive,
|
|
51
|
+
inheritDimensions = __cmplp.inheritDimensions,
|
|
52
|
+
__cmpldp = (0, _objectWithoutProperties2.default)(__cmplp, _excluded2);
|
|
53
|
+
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmpldp, {
|
|
54
|
+
style: _objectSpread(_objectSpread({}, __cmpls), {}, {
|
|
55
|
+
"--_10q0298": (0, _runtime.ix)(__cmplp.minWidth, "px"),
|
|
56
|
+
"--_1et2rhb": (0, _runtime.ix)(__cmplp.maxWidth, "px")
|
|
57
|
+
}),
|
|
58
|
+
ref: __cmplr,
|
|
59
|
+
className: (0, _runtime.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])
|
|
60
|
+
}));
|
|
127
61
|
});
|
|
128
62
|
|
|
129
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
// manage scrolling behaviour.
|
|
154
|
-
// 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
|
|
155
|
-
var Content = exports.Content = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t", ";\n\tborder: 1px solid ", ";\n\tbackground-color: ", ";\n\tposition: absolute;\n\tz-index: 1;\n\twidth: 100%;\n\ttransition: box-shadow 0.3s;\n\n\t> .calc-height > div > div {\n\t\tleft: unset !important;\n\t\twidth: unset !important;\n\t\theight: unset !important;\n\t\tposition: initial !important;\n\t\tpadding-bottom: unset !important;\n\t}\n\t> .embed-preview > div {\n\t\tmargin: 0 auto;\n\t}\n\n\t", "\n\n\t", "\n\n ", "\n"])), contentBorderRadius, "var(--ds-border, ".concat(_colors.N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
|
|
156
|
-
var allowScrollBar = _ref11.allowScrollBar,
|
|
157
|
-
removeOverflow = _ref11.removeOverflow;
|
|
158
|
-
if (removeOverflow) {
|
|
159
|
-
return '';
|
|
160
|
-
}
|
|
161
|
-
return allowScrollBar ? 'overflow: auto;' : 'overflow: hidden;';
|
|
162
|
-
}, function (_ref12) {
|
|
163
|
-
var frameStyle = _ref12.frameStyle;
|
|
164
|
-
return frameStyle === 'show' ? "\n width: calc(100% - ".concat("var(--ds-space-200, 16px)", " - 2px);\n margin: 0 ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)", ";\n ") : '';
|
|
165
|
-
}, function (_ref13) {
|
|
166
|
-
var frameStyle = _ref13.frameStyle;
|
|
167
|
-
return frameStyle === 'hide' ? 'height: 100%;' : "\n height: calc(100% - ".concat("var(--ds-space-400, 32px)", ");\n top: ", "var(--ds-space-400, 32px)", ";\n ");
|
|
168
|
-
});
|
|
169
|
-
// 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
|
|
170
|
-
var Image = exports.Image = _styled.default.img(function (_ref14) {
|
|
171
|
-
var size = _ref14.size;
|
|
172
|
-
return csssize(size);
|
|
173
|
-
}, borderRadius, {
|
|
174
|
-
overflow: 'hidden'
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
64
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
65
|
+
LinkWrapper.displayName = 'LinkWrapper';
|
|
66
|
+
}
|
|
67
|
+
var Wrapper = exports.Wrapper = (0, _react.forwardRef)(function (_ref2, __cmplr) {
|
|
68
|
+
var _ref2$as = _ref2.as,
|
|
69
|
+
C = _ref2$as === void 0 ? "div" : _ref2$as,
|
|
70
|
+
__cmpls = _ref2.style,
|
|
71
|
+
__cmplp = (0, _objectWithoutProperties2.default)(_ref2, _excluded3);
|
|
72
|
+
var isSelected = __cmplp.isSelected,
|
|
73
|
+
frameStyle = __cmplp.frameStyle,
|
|
74
|
+
minWidth = __cmplp.minWidth,
|
|
75
|
+
maxWidth = __cmplp.maxWidth,
|
|
76
|
+
isInteractive = __cmplp.isInteractive,
|
|
77
|
+
inheritDimensions = __cmplp.inheritDimensions,
|
|
78
|
+
__cmpldp = (0, _objectWithoutProperties2.default)(__cmplp, _excluded4);
|
|
79
|
+
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmpldp, {
|
|
80
|
+
style: _objectSpread(_objectSpread({}, __cmpls), {}, {
|
|
81
|
+
"--_10q0298": (0, _runtime.ix)(__cmplp.minWidth, "px"),
|
|
82
|
+
"--_1et2rhb": (0, _runtime.ix)(__cmplp.maxWidth, "px")
|
|
83
|
+
}),
|
|
84
|
+
ref: __cmplr,
|
|
85
|
+
className: (0, _runtime.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])
|
|
86
|
+
}));
|
|
175
87
|
});
|
|
176
|
-
var maxAvatarCount = exports.maxAvatarCount = 6;
|
|
177
88
|
|
|
178
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
90
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
91
|
+
Wrapper.displayName = 'Wrapper';
|
|
92
|
+
}
|
|
93
|
+
var Header = exports.Header = (0, _react.forwardRef)(function (_ref3, __cmplr) {
|
|
94
|
+
var _ref3$as = _ref3.as,
|
|
95
|
+
C = _ref3$as === void 0 ? "div" : _ref3$as,
|
|
96
|
+
__cmpls = _ref3.style,
|
|
97
|
+
__cmplp = (0, _objectWithoutProperties2.default)(_ref3, _excluded5);
|
|
98
|
+
var frameStyle = __cmplp.frameStyle,
|
|
99
|
+
__cmpldp = (0, _objectWithoutProperties2.default)(__cmplp, _excluded6);
|
|
100
|
+
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmpldp, {
|
|
101
|
+
style: __cmpls,
|
|
102
|
+
ref: __cmplr,
|
|
103
|
+
className: (0, _runtime.ax)(["_v564ojwh _4t3izwfg _kqswstnw _1pbykb7n _1bsb1osq _1e0c1txw _4cvr1h6o _syazqjbk _tzy4idpf", __cmplp.frameStyle === 'show' && "_vchhusvi", __cmplp.frameStyle === 'show' && "_1yt4h8dc", __cmplp.className])
|
|
104
|
+
}));
|
|
184
105
|
});
|
|
185
106
|
|
|
186
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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
|
+
Header.displayName = 'Header';
|
|
110
|
+
}
|
|
111
|
+
var IconWrapper = exports.IconWrapper = (0, _react.forwardRef)(function (_ref4, __cmplr) {
|
|
112
|
+
var _ref4$as = _ref4.as,
|
|
113
|
+
C = _ref4$as === void 0 ? "div" : _ref4$as,
|
|
114
|
+
__cmpls = _ref4.style,
|
|
115
|
+
__cmplp = (0, _objectWithoutProperties2.default)(_ref4, _excluded7);
|
|
116
|
+
var isPlaceholder = __cmplp.isPlaceholder,
|
|
117
|
+
__cmpldp = (0, _objectWithoutProperties2.default)(__cmplp, _excluded8);
|
|
118
|
+
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmpldp, {
|
|
119
|
+
style: __cmpls,
|
|
120
|
+
ref: __cmplr,
|
|
121
|
+
className: (0, _runtime.ax)(["_2rko1sit _1bsb7vkz _4t3i7vkz _2hwx1b66", __cmplp.isPlaceholder && "_bfhkqrzy", __cmplp.className])
|
|
122
|
+
}));
|
|
193
123
|
});
|
|
194
124
|
|
|
195
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
maxHeight: "".concat(18 * 3, "px"),
|
|
212
|
-
overflow: 'hidden'
|
|
125
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
126
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
127
|
+
IconWrapper.displayName = 'IconWrapper';
|
|
128
|
+
}
|
|
129
|
+
var TextWrapper = exports.TextWrapper = (0, _react.forwardRef)(function (_ref5, __cmplr) {
|
|
130
|
+
var _ref5$as = _ref5.as,
|
|
131
|
+
C = _ref5$as === void 0 ? "div" : _ref5$as,
|
|
132
|
+
__cmpls = _ref5.style,
|
|
133
|
+
__cmplp = (0, _objectWithoutProperties2.default)(_ref5, _excluded9);
|
|
134
|
+
var isPlaceholder = __cmplp.isPlaceholder,
|
|
135
|
+
__cmpldp = (0, _objectWithoutProperties2.default)(__cmplp, _excluded10);
|
|
136
|
+
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmpldp, {
|
|
137
|
+
style: __cmpls,
|
|
138
|
+
ref: __cmplr,
|
|
139
|
+
className: (0, _runtime.ax)(["_11c8qk37 _1reo15vq _18m915vq _syaz1rc1 _1bto1l2s _o5721q9c", __cmplp.isPlaceholder && "_2rko1sit", __cmplp.isPlaceholder && "_1bsb176v", __cmplp.isPlaceholder && "_4t3i1crf", __cmplp.isPlaceholder && "_bfhkqrzy", __cmplp.className])
|
|
140
|
+
}));
|
|
213
141
|
});
|
|
214
142
|
|
|
215
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
var
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
};
|
|
143
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
144
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
145
|
+
TextWrapper.displayName = 'TextWrapper';
|
|
146
|
+
}
|
|
147
|
+
var TooltipWrapper = exports.TooltipWrapper = (0, _react.forwardRef)(function (_ref6, __cmplr) {
|
|
148
|
+
var _ref6$as = _ref6.as,
|
|
149
|
+
C = _ref6$as === void 0 ? "div" : _ref6$as,
|
|
150
|
+
__cmpls = _ref6.style,
|
|
151
|
+
__cmplp = (0, _objectWithoutProperties2.default)(_ref6, _excluded11);
|
|
152
|
+
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmplp, {
|
|
153
|
+
style: __cmpls,
|
|
154
|
+
ref: __cmplr,
|
|
155
|
+
className: (0, _runtime.ax)(["_1reo15vq _18m915vq", __cmplp.className])
|
|
156
|
+
}));
|
|
230
157
|
});
|
|
231
158
|
|
|
232
|
-
//
|
|
233
|
-
|
|
234
|
-
|
|
159
|
+
// NB: `overflow` is kept as `hidden` since
|
|
160
|
+
// the internal contents of the `iframe` should
|
|
161
|
+
// manage scrolling behaviour.
|
|
162
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
163
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
164
|
+
TooltipWrapper.displayName = 'TooltipWrapper';
|
|
165
|
+
}
|
|
166
|
+
var Content = exports.Content = (0, _react.forwardRef)(function (_ref7, __cmplr) {
|
|
167
|
+
var _ref7$as = _ref7.as,
|
|
168
|
+
C = _ref7$as === void 0 ? "div" : _ref7$as,
|
|
169
|
+
__cmpls = _ref7.style,
|
|
170
|
+
__cmplp = (0, _objectWithoutProperties2.default)(_ref7, _excluded12);
|
|
171
|
+
var removeOverflow = __cmplp.removeOverflow,
|
|
172
|
+
allowScrollBar = __cmplp.allowScrollBar,
|
|
173
|
+
frameStyle = __cmplp.frameStyle,
|
|
174
|
+
__cmpldp = (0, _objectWithoutProperties2.default)(__cmplp, _excluded13);
|
|
175
|
+
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmpldp, {
|
|
176
|
+
style: __cmpls,
|
|
177
|
+
ref: __cmplr,
|
|
178
|
+
className: (0, _runtime.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])
|
|
179
|
+
}));
|
|
235
180
|
});
|
|
181
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
182
|
+
Content.displayName = 'Content';
|
|
183
|
+
}
|
|
184
|
+
var getSizeWithUnit = function getSizeWithUnit() {
|
|
185
|
+
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '100%';
|
|
186
|
+
var unit = typeof value === 'number' ? 'px' : '';
|
|
187
|
+
return "".concat(value).concat(unit);
|
|
188
|
+
};
|
|
236
189
|
|
|
237
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
238
|
-
var
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
190
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
191
|
+
var Image = exports.Image = (0, _react.forwardRef)(function (_ref8, __cmplr) {
|
|
192
|
+
var _ref8$as = _ref8.as,
|
|
193
|
+
C = _ref8$as === void 0 ? "img" : _ref8$as,
|
|
194
|
+
__cmpls = _ref8.style,
|
|
195
|
+
__cmplp = (0, _objectWithoutProperties2.default)(_ref8, _excluded14);
|
|
196
|
+
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmplp, {
|
|
197
|
+
style: _objectSpread(_objectSpread({}, __cmpls), {}, {
|
|
198
|
+
"--_rcxkve": (0, _runtime.ix)(getSizeWithUnit(__cmplp.size))
|
|
199
|
+
}),
|
|
200
|
+
ref: __cmplr,
|
|
201
|
+
className: (0, _runtime.ax)(["_2rko1sit _1reo15vq _18m915vq _1bsb17ym _4t3i17ym", __cmplp.className])
|
|
202
|
+
}));
|
|
249
203
|
});
|
|
250
204
|
|
|
251
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
})
|
|
205
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
206
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
207
|
+
Image.displayName = 'Image';
|
|
208
|
+
}
|
|
209
|
+
var Thumbnail = exports.Thumbnail = (0, _react.forwardRef)(function (_ref9, __cmplr) {
|
|
210
|
+
var _ref9$as = _ref9.as,
|
|
211
|
+
C = _ref9$as === void 0 ? "div" : _ref9$as,
|
|
212
|
+
__cmpls = _ref9.style,
|
|
213
|
+
__cmplp = (0, _objectWithoutProperties2.default)(_ref9, _excluded15);
|
|
214
|
+
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmplp, {
|
|
215
|
+
style: _objectSpread(_objectSpread({}, __cmpls), {}, {
|
|
216
|
+
"--_13orr8u": (0, _runtime.ix)("url(".concat(__cmplp.src, ")"))
|
|
217
|
+
}),
|
|
218
|
+
ref: __cmplr,
|
|
219
|
+
className: (0, _runtime.ax)(["_2rko1sit _18s81cq1 _1bsbckbl _4t3ickbl _1aaxusic _bfhkqrzy _1lrw1dfr _1itk2pcs", __cmplp.className])
|
|
220
|
+
}));
|
|
221
|
+
});
|
|
222
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
223
|
+
Thumbnail.displayName = 'Thumbnail';
|
|
224
|
+
}
|