@atlaskit/smart-card 33.4.0 → 34.0.1
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 +14 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/styled.js +1 -0
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/utils.js +3 -3
- package/dist/cjs/view/InlineCard/ErroredView/index.js +6 -2
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +40 -15
- package/dist/cjs/view/InlineCard/Frame/index.js +3 -1
- package/dist/cjs/view/InlineCard/Frame/styled-emotion.js +137 -0
- package/dist/cjs/view/InlineCard/Frame/styled.compiled.css +53 -0
- package/dist/cjs/view/InlineCard/Frame/styled.js +49 -124
- package/dist/cjs/view/InlineCard/Icon-emotion.js +58 -0
- package/dist/cjs/view/InlineCard/Icon.compiled.css +10 -0
- package/dist/cjs/view/InlineCard/Icon.js +39 -18
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.compiled.css +6 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +99 -25
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled-emotion.js +95 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.compiled.css +36 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +128 -45
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +30 -12
- package/dist/cjs/view/InlineCard/ResolvingView/styled-emotion.js +16 -0
- package/dist/cjs/view/InlineCard/ResolvingView/styled.compiled.css +5 -0
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +26 -8
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +42 -16
- package/dist/cjs/view/InlineCard/styled-emotion.js +55 -0
- package/dist/cjs/view/InlineCard/styled.compiled.css +21 -0
- package/dist/cjs/view/InlineCard/styled.js +25 -45
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/styled.js +1 -0
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/utils.js +3 -3
- package/dist/es2019/view/InlineCard/ErroredView/index.js +6 -2
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +40 -15
- package/dist/es2019/view/InlineCard/Frame/index.js +3 -1
- package/dist/es2019/view/InlineCard/Frame/styled-emotion.js +143 -0
- package/dist/es2019/view/InlineCard/Frame/styled.compiled.css +53 -0
- package/dist/es2019/view/InlineCard/Frame/styled.js +44 -136
- package/dist/es2019/view/InlineCard/Icon-emotion.js +52 -0
- package/dist/es2019/view/InlineCard/Icon.compiled.css +10 -0
- package/dist/es2019/view/InlineCard/Icon.js +31 -15
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.compiled.css +6 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +87 -18
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled-emotion.js +114 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.compiled.css +36 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +115 -43
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +30 -12
- package/dist/es2019/view/InlineCard/ResolvingView/styled-emotion.js +9 -0
- package/dist/es2019/view/InlineCard/ResolvingView/styled.compiled.css +5 -0
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +20 -6
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +42 -16
- package/dist/es2019/view/InlineCard/styled-emotion.js +47 -0
- package/dist/es2019/view/InlineCard/styled.compiled.css +21 -0
- package/dist/es2019/view/InlineCard/styled.js +19 -43
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/styled.js +1 -0
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +2 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -0
- package/dist/esm/view/FlexibleCard/components/utils.js +3 -3
- package/dist/esm/view/InlineCard/ErroredView/index.js +6 -2
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +40 -15
- package/dist/esm/view/InlineCard/Frame/index.js +3 -1
- package/dist/esm/view/InlineCard/Frame/styled-emotion.js +131 -0
- package/dist/esm/view/InlineCard/Frame/styled.compiled.css +53 -0
- package/dist/esm/view/InlineCard/Frame/styled.js +46 -125
- package/dist/esm/view/InlineCard/Icon-emotion.js +51 -0
- package/dist/esm/view/InlineCard/Icon.compiled.css +10 -0
- package/dist/esm/view/InlineCard/Icon.js +36 -17
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.compiled.css +6 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +90 -18
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled-emotion.js +87 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.compiled.css +36 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +124 -43
- package/dist/esm/view/InlineCard/ResolvingView/index.js +30 -12
- package/dist/esm/view/InlineCard/ResolvingView/styled-emotion.js +9 -0
- package/dist/esm/view/InlineCard/ResolvingView/styled.compiled.css +5 -0
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +22 -6
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +42 -16
- package/dist/esm/view/InlineCard/styled-emotion.js +47 -0
- package/dist/esm/view/InlineCard/styled.compiled.css +21 -0
- package/dist/esm/view/InlineCard/styled.js +21 -43
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/HoverCard/components/HoverCardComponent.d.ts +1 -1
- package/dist/types/view/InlineCard/Frame/styled-emotion.d.ts +17 -0
- package/dist/types/view/InlineCard/Frame/styled.d.ts +8 -10
- package/dist/types/view/InlineCard/Icon-emotion.d.ts +12 -0
- package/dist/types/view/InlineCard/Icon.d.ts +2 -8
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled-emotion.d.ts +36 -0
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +8 -34
- package/dist/types/view/InlineCard/ResolvingView/styled-emotion.d.ts +9 -0
- package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +1 -8
- package/dist/types/view/InlineCard/styled-emotion.d.ts +13 -0
- package/dist/types/view/InlineCard/styled.d.ts +1 -12
- package/dist/types-ts4.5/view/HoverCard/components/HoverCardComponent.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/Frame/styled-emotion.d.ts +17 -0
- package/dist/types-ts4.5/view/InlineCard/Frame/styled.d.ts +8 -10
- package/dist/types-ts4.5/view/InlineCard/Icon-emotion.d.ts +12 -0
- package/dist/types-ts4.5/view/InlineCard/Icon.d.ts +2 -8
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled-emotion.d.ts +36 -0
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled.d.ts +8 -34
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled-emotion.d.ts +9 -0
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled.d.ts +1 -8
- package/dist/types-ts4.5/view/InlineCard/styled-emotion.d.ts +13 -0
- package/dist/types-ts4.5/view/InlineCard/styled.d.ts +1 -12
- package/hooks/package.json +3 -1
- package/hover-card/package.json +3 -1
- package/link-url/package.json +3 -1
- package/package.json +17 -7
- package/ssr/package.json +3 -1
- package/types/package.json +3 -1
|
@@ -1,55 +1,35 @@
|
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
|
-
exports.
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
exports.IconStyledButton = 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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
|
+
var _excluded = ["as", "style"];
|
|
17
|
+
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); }
|
|
18
|
+
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; }
|
|
12
19
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
13
20
|
// This basically turns the button back into inline content
|
|
14
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
15
|
-
var IconStyledButton = exports.IconStyledButton =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
backgroundClip: 'padding-box',
|
|
26
|
-
boxDecorationBreak: 'clone'
|
|
27
|
-
},
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
|
-
'> span': {
|
|
30
|
-
display: 'inline',
|
|
31
|
-
overflow: 'initial',
|
|
32
|
-
textOverflow: 'initial',
|
|
33
|
-
whiteSpace: 'initial',
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
|
-
'> span': {
|
|
36
|
-
overflow: 'initial',
|
|
37
|
-
textOverflow: 'initial',
|
|
38
|
-
whiteSpace: 'initial'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
|
-
var NoLinkAppearance = exports.NoLinkAppearance = _styled.default.span({
|
|
45
|
-
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
46
|
-
marginLeft: "var(--ds-space-050, 4px)"
|
|
22
|
+
var IconStyledButton = exports.IconStyledButton = (0, _react.forwardRef)(function (_ref, __cmplr) {
|
|
23
|
+
var _ref$as = _ref.as,
|
|
24
|
+
C = _ref$as === void 0 ? "span" : _ref$as,
|
|
25
|
+
__cmpls = _ref.style,
|
|
26
|
+
__cmplp = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
27
|
+
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmplp, {
|
|
28
|
+
style: __cmpls,
|
|
29
|
+
ref: __cmplr,
|
|
30
|
+
className: (0, _runtime.ax)(["_i3j7iti9 _uqpc18uv _1ilx1nu9 _18v918uv _1t1midpf _jinwidpf _1695v77o _1pns12x7 _vktqv77o _1byq12x7 _k1fv1u8q _5x9bqvcn _ju3g18uv _mt1t18uv _12rl18uv _1wge18uv _1nr3zryt _1a8r4jg8 _1xdi1nu9 _1t21zryt _1jjh4jg8", __cmplp.className])
|
|
31
|
+
}));
|
|
47
32
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
color: "var(--ds-link, ".concat(_colors.B400, ")"),
|
|
52
|
-
'&:hover': {
|
|
53
|
-
textDecoration: 'none'
|
|
54
|
-
}
|
|
55
|
-
});
|
|
33
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
34
|
+
IconStyledButton.displayName = 'IconStyledButton';
|
|
35
|
+
}
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "
|
|
23
|
+
packageVersion: "34.0.1",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card",
|
|
5
|
-
packageVersion: "
|
|
5
|
+
packageVersion: "34.0.1"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -15,6 +15,7 @@ export const metadataBlockCss = css({
|
|
|
15
15
|
},
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
17
|
'[data-smart-element-group]': {
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
18
19
|
lineHeight: '1rem'
|
|
19
20
|
}
|
|
20
21
|
});
|
|
@@ -54,9 +54,11 @@ export const actionCss = css({
|
|
|
54
54
|
display: 'flex',
|
|
55
55
|
flex: '0 0 auto',
|
|
56
56
|
gap: "var(--ds-space-050, 4px)",
|
|
57
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
57
58
|
lineHeight: height,
|
|
58
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
59
60
|
span: {
|
|
61
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
60
62
|
lineHeight: height
|
|
61
63
|
},
|
|
62
64
|
'@media only screen and (max-width: 980px)': {
|
|
@@ -29,6 +29,7 @@ const getButtonStyle = (size, iconOnly) => {
|
|
|
29
29
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
30
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
31
|
'button, button:hover, button:focus, button:active': [{
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
32
33
|
lineHeight: 'inherit'
|
|
33
34
|
}, iconOnly ? `
|
|
34
35
|
padding: 0.125rem;
|
|
@@ -26,15 +26,18 @@ const stackItemIconSizeStyles = getIconSizeStyles('20px');
|
|
|
26
26
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
27
|
const stackItemIconStyles = css(stackItemIconSizeStyles, {
|
|
28
28
|
display: 'inline-block',
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
29
30
|
lineHeight: 0,
|
|
30
31
|
padding: "var(--ds-space-025, 2px)",
|
|
31
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
33
|
'span,svg,img': {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
33
35
|
lineHeight: 0
|
|
34
36
|
}
|
|
35
37
|
});
|
|
36
38
|
const newStackItemIconStyles = css({
|
|
37
39
|
display: 'inline-block',
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
38
41
|
lineHeight: 0
|
|
39
42
|
});
|
|
40
43
|
const ActionIcon = ({
|
|
@@ -7,6 +7,7 @@ const containerStyles = xcss({
|
|
|
7
7
|
borderRadius: 'border.radius',
|
|
8
8
|
margin: 'space.100',
|
|
9
9
|
marginBottom: 'space.0',
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
10
11
|
lineHeight: '20px',
|
|
11
12
|
padding: 'space.075',
|
|
12
13
|
paddingInline: 'space.100',
|
|
@@ -22,6 +22,7 @@ import { filterActionItems } from '../utils';
|
|
|
22
22
|
import ActionGroupItem from './action-group-item';
|
|
23
23
|
const styles = css({
|
|
24
24
|
display: 'inline-flex',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
25
26
|
lineHeight: '1rem',
|
|
26
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
28
|
'> div': {
|
|
@@ -18,7 +18,7 @@ const getElementGroupStyles = (size, maxLines) => {
|
|
|
18
18
|
// sides so they line up nicely.
|
|
19
19
|
const lineHeight = getMaxLineHeight(size);
|
|
20
20
|
return css({
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
22
22
|
lineHeight: `${lineHeight}rem`
|
|
23
23
|
},
|
|
24
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -86,6 +86,7 @@ export const getBaseStyles = (direction, size) => css({
|
|
|
86
86
|
display: 'flex',
|
|
87
87
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
88
88
|
gap: `${getGapSize(size)}rem`,
|
|
89
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
89
90
|
lineHeight: '1rem',
|
|
90
91
|
minWidth: 0,
|
|
91
92
|
overflow: 'hidden'
|
|
@@ -24,7 +24,7 @@ export const MotionWrapper = ({
|
|
|
24
24
|
style: {
|
|
25
25
|
height,
|
|
26
26
|
minHeight,
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
28
28
|
lineHeight: 0,
|
|
29
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
30
30
|
overflow: 'hidden',
|
|
@@ -31,7 +31,7 @@ css(getPositionStyles(position), getIconSizeStyles(width));
|
|
|
31
31
|
const getCustomRenderStyles = value =>
|
|
32
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
33
|
css(getTruncateStyles(1, value), {
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
35
35
|
lineHeight: value,
|
|
36
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
37
|
fontSize: value,
|
|
@@ -9,6 +9,7 @@ import { useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-con
|
|
|
9
9
|
import LozengeAction from './lozenge-action';
|
|
10
10
|
const styles = css({
|
|
11
11
|
display: 'inline-flex',
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
12
13
|
lineHeight: 'inherit'
|
|
13
14
|
});
|
|
14
15
|
|
|
@@ -17,6 +17,7 @@ export const dropdownItemGroupStyles = css({
|
|
|
17
17
|
const sharedBlockStyles = css({
|
|
18
18
|
display: 'flex',
|
|
19
19
|
gap: "var(--ds-space-100, 0.5rem)",
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
20
21
|
lineHeight: '1rem',
|
|
21
22
|
minWidth: 0,
|
|
22
23
|
overflow: 'hidden',
|
|
@@ -44,6 +45,7 @@ export const linkStyles = css(sharedBlockStyles, {
|
|
|
44
45
|
marginBottom: "var(--ds-space-025, 2px)"
|
|
45
46
|
});
|
|
46
47
|
export const textStyles = maxLines => css({
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
47
49
|
lineHeight: '1rem',
|
|
48
50
|
whiteSpace: 'normal'
|
|
49
51
|
},
|
|
@@ -6,11 +6,14 @@ export const triggerButtonStyles = css({
|
|
|
6
6
|
backgroundColor: 'transparent',
|
|
7
7
|
color: 'unset',
|
|
8
8
|
cursor: 'pointer',
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
9
10
|
fontFamily: 'unset',
|
|
10
11
|
fontSize: 'unset',
|
|
11
12
|
fontStyle: 'unset',
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
12
14
|
fontWeight: 'unset',
|
|
13
15
|
fontVariant: 'unset',
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
14
17
|
lineHeight: 0,
|
|
15
18
|
padding: 0,
|
|
16
19
|
textTransform: 'unset',
|
|
@@ -97,7 +97,7 @@ export const getLinkSizeStyles = size => {
|
|
|
97
97
|
return css({
|
|
98
98
|
font: "var(--ds-font-heading-medium, normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
99
99
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
100
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
100
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
101
101
|
lineHeight: getLinkLineHeight(size)
|
|
102
102
|
});
|
|
103
103
|
case SmartLinkSize.Large:
|
|
@@ -105,7 +105,7 @@ export const getLinkSizeStyles = size => {
|
|
|
105
105
|
return css({
|
|
106
106
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
107
107
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
108
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
108
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
109
109
|
lineHeight: getLinkLineHeight(size)
|
|
110
110
|
});
|
|
111
111
|
case SmartLinkSize.Small:
|
|
@@ -113,7 +113,7 @@ export const getLinkSizeStyles = size => {
|
|
|
113
113
|
return css({
|
|
114
114
|
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)",
|
|
115
115
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
116
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
116
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
117
117
|
lineHeight: getLinkLineHeight(size)
|
|
118
118
|
});
|
|
119
119
|
}
|
|
@@ -3,13 +3,16 @@ import React from 'react';
|
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
5
|
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { R300 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { messages } from '../../../messages';
|
|
8
9
|
import { HoverCard } from '../../HoverCard';
|
|
9
10
|
import { Frame } from '../Frame';
|
|
10
11
|
import { AKIconWrapper } from '../Icon';
|
|
12
|
+
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
11
13
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
12
14
|
import { IconStyledButton } from '../styled';
|
|
15
|
+
import { IconStyledButton as IconStyledButtonOld } from '../styled-emotion';
|
|
13
16
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
14
17
|
export class InlineCardErroredView extends React.Component {
|
|
15
18
|
constructor(...args) {
|
|
@@ -32,7 +35,7 @@ export class InlineCardErroredView extends React.Component {
|
|
|
32
35
|
const ActionButton = withFrameStyleControl(Button, this.frameRef);
|
|
33
36
|
return onRetry && /*#__PURE__*/React.createElement(ActionButton, {
|
|
34
37
|
spacing: "none",
|
|
35
|
-
component: IconStyledButton,
|
|
38
|
+
component: fg('bandicoots-compiled-migration-smartcard') ? IconStyledButton : IconStyledButtonOld,
|
|
36
39
|
onClick: this.handleRetry,
|
|
37
40
|
role: "button"
|
|
38
41
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again));
|
|
@@ -48,13 +51,14 @@ export class InlineCardErroredView extends React.Component {
|
|
|
48
51
|
message,
|
|
49
52
|
truncateInline
|
|
50
53
|
} = this.props;
|
|
54
|
+
const Wrapper = fg('bandicoots-compiled-migration-smartcard') ? AKIconWrapper : AKIconWrapperOld;
|
|
51
55
|
const content = /*#__PURE__*/React.createElement(Frame, {
|
|
52
56
|
testId: testId,
|
|
53
57
|
isSelected: isSelected,
|
|
54
58
|
ref: this.frameRef,
|
|
55
59
|
truncateInline: truncateInline
|
|
56
60
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
57
|
-
icon: icon || /*#__PURE__*/React.createElement(
|
|
61
|
+
icon: icon || /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
58
62
|
label: "error",
|
|
59
63
|
LEGACY_size: "small",
|
|
60
64
|
color: `var(--ds-icon-danger, ${R300})`,
|
|
@@ -5,21 +5,35 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
5
5
|
import Button from '@atlaskit/button';
|
|
6
6
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
7
7
|
import Lozenge from '@atlaskit/lozenge';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
9
10
|
import { messages } from '../../../messages';
|
|
10
11
|
import { HoverCard } from '../../HoverCard';
|
|
11
12
|
import { Frame } from '../Frame';
|
|
12
13
|
import { AKIconWrapper } from '../Icon';
|
|
14
|
+
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
13
15
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
14
16
|
import { LozengeWrapper } from '../IconAndTitleLayout/styled';
|
|
15
17
|
import { IconStyledButton } from '../styled';
|
|
18
|
+
import { IconStyledButton as IconStyledButtonOld } from '../styled-emotion';
|
|
16
19
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})
|
|
20
|
+
const fallbackForbiddenIcon = () => {
|
|
21
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
22
|
+
return /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
23
|
+
label: "error",
|
|
24
|
+
size: "small",
|
|
25
|
+
primaryColor: `var(--ds-icon-danger, ${R400})`,
|
|
26
|
+
testId: "forbidden-view-fallback-icon"
|
|
27
|
+
}));
|
|
28
|
+
} else {
|
|
29
|
+
return /*#__PURE__*/React.createElement(AKIconWrapperOld, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
30
|
+
label: "error",
|
|
31
|
+
size: "small",
|
|
32
|
+
primaryColor: `var(--ds-icon-danger, ${R400})`,
|
|
33
|
+
testId: "forbidden-view-fallback-icon"
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
};
|
|
23
37
|
export class InlineCardForbiddenView extends React.Component {
|
|
24
38
|
constructor(...args) {
|
|
25
39
|
var _this$props, _this$props$requestAc;
|
|
@@ -65,14 +79,25 @@ export class InlineCardForbiddenView extends React.Component {
|
|
|
65
79
|
const ActionButton = withFrameStyleControl(Button, this.frameRef);
|
|
66
80
|
const accessType = (_this$props$requestAc2 = this.props.requestAccessContext) === null || _this$props$requestAc2 === void 0 ? void 0 : _this$props$requestAc2.accessType;
|
|
67
81
|
if (this.state.hasRequestAccessContextMessage) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
83
|
+
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
84
|
+
spacing: "none",
|
|
85
|
+
onClick: this.handleRetry,
|
|
86
|
+
component: IconStyledButton,
|
|
87
|
+
testId: "button-connect-other-account",
|
|
88
|
+
role: "button",
|
|
89
|
+
isDisabled: accessType === 'PENDING_REQUEST_EXISTS'
|
|
90
|
+
}, this.renderForbiddenAccessMessage());
|
|
91
|
+
} else {
|
|
92
|
+
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
93
|
+
spacing: "none",
|
|
94
|
+
onClick: this.handleRetry,
|
|
95
|
+
component: IconStyledButtonOld,
|
|
96
|
+
testId: "button-connect-other-account",
|
|
97
|
+
role: "button",
|
|
98
|
+
isDisabled: accessType === 'PENDING_REQUEST_EXISTS'
|
|
99
|
+
}, this.renderForbiddenAccessMessage());
|
|
100
|
+
}
|
|
76
101
|
}
|
|
77
102
|
if (onAuthorise) {
|
|
78
103
|
return /*#__PURE__*/React.createElement(Button, {
|
|
@@ -103,7 +128,7 @@ export class InlineCardForbiddenView extends React.Component {
|
|
|
103
128
|
ref: this.frameRef,
|
|
104
129
|
truncateInline: truncateInline
|
|
105
130
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
106
|
-
icon: icon ? icon :
|
|
131
|
+
icon: icon ? icon : fallbackForbiddenIcon(),
|
|
107
132
|
link: url,
|
|
108
133
|
title: url,
|
|
109
134
|
onClick: onClick,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { forwardRef, useCallback } from 'react';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { useMouseDownEvent } from '../../../state/analytics/useLinkClicked';
|
|
3
4
|
import { WrapperAnchor, WrapperSpan } from './styled';
|
|
5
|
+
import { WrapperAnchor as WrapperAnchorOld, WrapperSpan as WrapperSpanOld } from './styled-emotion';
|
|
4
6
|
export const Frame = /*#__PURE__*/forwardRef((props, ref) => {
|
|
5
7
|
const {
|
|
6
8
|
isSelected,
|
|
@@ -35,7 +37,7 @@ export const Frame = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
35
37
|
const isAnchor = Boolean(link || onClick);
|
|
36
38
|
|
|
37
39
|
// Depending on whenever Frame was given onClick or link itself we display span or anchor elements
|
|
38
|
-
const Wrapper = isAnchor ? WrapperAnchor : WrapperSpan;
|
|
40
|
+
const Wrapper = fg('bandicoots-compiled-migration-smartcard') ? isAnchor ? WrapperAnchor : WrapperSpan : isAnchor ? WrapperAnchorOld : WrapperSpanOld;
|
|
39
41
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
40
42
|
href: link,
|
|
41
43
|
withoutBackground: withoutBackground,
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { B100, B200, B400, B50, N40 } from '@atlaskit/theme/colors';
|
|
4
|
+
const lineHeight = 22;
|
|
5
|
+
const selectedStyles = {
|
|
6
|
+
cursor: 'pointer',
|
|
7
|
+
boxShadow: `0 0 0 2px ${`var(--ds-border-selected, ${B100})`}`,
|
|
8
|
+
outline: 'none',
|
|
9
|
+
userSelect: 'none',
|
|
10
|
+
'&, :hover, :focus, :active': {
|
|
11
|
+
textDecoration: 'none'
|
|
12
|
+
},
|
|
13
|
+
'&:hover': {
|
|
14
|
+
border: `1px solid ${`var(--ds-border, ${N40})`}`
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const isInteractive = ({
|
|
18
|
+
isInteractive
|
|
19
|
+
}) => {
|
|
20
|
+
if (isInteractive) {
|
|
21
|
+
return {
|
|
22
|
+
':active': {
|
|
23
|
+
backgroundColor: `var(--ds-background-selected, ${B50})`
|
|
24
|
+
},
|
|
25
|
+
':focus': selectedStyles
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
};
|
|
30
|
+
const isSelected = ({
|
|
31
|
+
isSelected
|
|
32
|
+
}) => {
|
|
33
|
+
if (isSelected) {
|
|
34
|
+
return selectedStyles;
|
|
35
|
+
} else {
|
|
36
|
+
return {
|
|
37
|
+
userSelect: 'text'
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const hoveredStyles = {
|
|
42
|
+
borderColor: `var(--ds-border-accent-blue, ${B200})`
|
|
43
|
+
};
|
|
44
|
+
const activeHoveredFocusedStyles = props => {
|
|
45
|
+
if (props.withoutBackground) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
textDecoration: 'none'
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
const hoveredWihBorderStyles = props => ({
|
|
53
|
+
...hoveredStyles,
|
|
54
|
+
...activeHoveredFocusedStyles(props)
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
/*
|
|
58
|
+
Inline smart cards should have the following layout:
|
|
59
|
+
------------------------------------
|
|
60
|
+
| icon | title | action OR lozenge |
|
|
61
|
+
------------------------------------
|
|
62
|
+
The aim is to ensure (1) all children are
|
|
63
|
+
in line with each other, (2) are vertically
|
|
64
|
+
centered.
|
|
65
|
+
*/
|
|
66
|
+
// NB: `padding` consistent with @mentions.
|
|
67
|
+
// NB: `display: inline` required for `box-decoration-break` to work.
|
|
68
|
+
// NB: `box-decoration-break` required for retaining properties (border-radius) on wrap.
|
|
69
|
+
const baseWrapperStyles = props => ({
|
|
70
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
71
|
+
lineHeight: `${lineHeight}px`,
|
|
72
|
+
padding: `${"var(--ds-space-025, 2px)"} 0px`,
|
|
73
|
+
...(props.withoutBackground ? {
|
|
74
|
+
paddingLeft: 0,
|
|
75
|
+
marginLeft: "var(--ds-space-negative-025, -2px)"
|
|
76
|
+
} : undefined),
|
|
77
|
+
display: 'inline',
|
|
78
|
+
boxDecorationBreak: 'clone',
|
|
79
|
+
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
80
|
+
color: `var(--ds-link, ${B400})`,
|
|
81
|
+
...(props.withoutBackground ? undefined : {
|
|
82
|
+
backgroundColor: "var(--ds-surface-raised, white)"
|
|
83
|
+
}),
|
|
84
|
+
...isSelected(props),
|
|
85
|
+
...(props.withoutBackground ? undefined : {
|
|
86
|
+
border: `1px solid ${`var(--ds-border, ${N40})`}`
|
|
87
|
+
}),
|
|
88
|
+
'&:hover': hoveredStyles,
|
|
89
|
+
'&, :hover, :focus, :active': activeHoveredFocusedStyles(props),
|
|
90
|
+
transition: '0.1s all ease-in-out',
|
|
91
|
+
MozUserSelect: 'none',
|
|
92
|
+
// -moz-user-select
|
|
93
|
+
|
|
94
|
+
...(props.isHovered ? hoveredWihBorderStyles(props) : undefined)
|
|
95
|
+
});
|
|
96
|
+
const truncateStyles = {
|
|
97
|
+
overflow: 'hidden',
|
|
98
|
+
textOverflow: 'ellipsis',
|
|
99
|
+
wordBreak: 'break-all',
|
|
100
|
+
// The height of a truncated card is 1px higher than that of a non-truncated card, so we subtract 1px from the line height.
|
|
101
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
102
|
+
lineHeight: `${lineHeight - 1}px`,
|
|
103
|
+
display: '-webkit-inline-box',
|
|
104
|
+
WebkitLineClamp: 1,
|
|
105
|
+
WebkitBoxOrient: 'vertical',
|
|
106
|
+
// We need to remove the padding because display: -webkit-inline-box will cause any padding to be
|
|
107
|
+
// added to the total height, causing truncated cards to have greater height than non-truncated cards which use display: inline.
|
|
108
|
+
padding: 0,
|
|
109
|
+
'@supports not (-webkit-line-clamp: 1)': {
|
|
110
|
+
display: 'inline-block',
|
|
111
|
+
maxHeight: `${lineHeight}px`,
|
|
112
|
+
// If the browser does not support webkit, we don't need to remove the padding
|
|
113
|
+
padding: `${"var(--ds-space-025, 2px)"} 0px`
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
const isTruncated = ({
|
|
117
|
+
truncateInline
|
|
118
|
+
}) => {
|
|
119
|
+
if (truncateInline) {
|
|
120
|
+
return truncateStyles;
|
|
121
|
+
}
|
|
122
|
+
return undefined;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
// 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
|
|
126
|
+
export const WrapperAnchor = styled.a(props => ({
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
128
|
+
...baseWrapperStyles(props),
|
|
129
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
130
|
+
...isInteractive(props),
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
132
|
+
...isTruncated(props)
|
|
133
|
+
}));
|
|
134
|
+
WrapperAnchor.displayName = 'WrapperAnchor';
|
|
135
|
+
|
|
136
|
+
// 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
|
|
137
|
+
export const WrapperSpan = styled.span(props => ({
|
|
138
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
139
|
+
...baseWrapperStyles(props),
|
|
140
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
141
|
+
...isTruncated(props)
|
|
142
|
+
}));
|
|
143
|
+
WrapperSpan.displayName = 'WrapperSpan';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
|
|
2
|
+
._19ith6cr{border:1px solid var(--ds-border,#dfe1e6)}
|
|
3
|
+
._1yt4x7n9{padding:var(--ds-space-025,2px) 0}
|
|
4
|
+
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
5
|
+
._v56415x0{transition:all .1s ease-in-out}
|
|
6
|
+
._1h6dmr28{border-color:var(--ds-border-accent-blue,#2684ff)}._12ji1r31{outline-color:currentColor}
|
|
7
|
+
._12y31o36{outline-width:medium}
|
|
8
|
+
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
9
|
+
._16qscw00{box-shadow:0 0 0 2px var(--ds-border-selected,#4c9aff)}
|
|
10
|
+
._18m915vq{overflow-y:hidden}
|
|
11
|
+
._18u01i6y{margin-left:var(--ds-space-negative-025,-2px)}
|
|
12
|
+
._19bvidpf{padding-left:0}
|
|
13
|
+
._1bto1l2s{text-overflow:ellipsis}
|
|
14
|
+
._1e0c1abx{display:-webkit-inline-box}
|
|
15
|
+
._1e0c1nu9{display:inline}
|
|
16
|
+
._1hmsglyw{text-decoration-line:none}
|
|
17
|
+
._1nmz9jpi{word-break:break-all}
|
|
18
|
+
._1qu2glyw{outline-style:none}
|
|
19
|
+
._1reo15vq{overflow-x:hidden}
|
|
20
|
+
._1rkwglyw{-moz-user-select:none}
|
|
21
|
+
._1yyjkb7n{-webkit-line-clamp:1}
|
|
22
|
+
._4bfu18uv{text-decoration-color:initial}
|
|
23
|
+
._80omtlke{cursor:pointer}
|
|
24
|
+
._ajmmnqa1{text-decoration-style:solid}
|
|
25
|
+
._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
|
|
26
|
+
._ca0qidpf{padding-top:0}
|
|
27
|
+
._n3tdidpf{padding-bottom:0}
|
|
28
|
+
._sudp1e54{-webkit-box-orient:vertical}
|
|
29
|
+
._syaz1y58{color:var(--ds-link,#0052cc)}
|
|
30
|
+
._u5f3idpf{padding-right:0}
|
|
31
|
+
._uizt1kdv{-webkit-user-select:text;-ms-user-select:text;user-select:text}
|
|
32
|
+
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
33
|
+
._vwz4183y{line-height:21px}
|
|
34
|
+
._vwz4qslr{line-height:22px}
|
|
35
|
+
._1372tlke:focus{cursor:pointer}
|
|
36
|
+
._1a3b18uv:focus{text-decoration-color:initial}
|
|
37
|
+
._1hvw1o36:focus{outline-width:medium}
|
|
38
|
+
._1j5pglyw:focus{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
39
|
+
._49pcglyw:focus{outline-style:none}
|
|
40
|
+
._4fprglyw:focus{text-decoration-line:none}
|
|
41
|
+
._5goinqa1:focus{text-decoration-style:solid}
|
|
42
|
+
._7ehicw00:focus{box-shadow:0 0 0 2px var(--ds-border-selected,#4c9aff)}
|
|
43
|
+
._nt751r31:focus{outline-color:currentColor}
|
|
44
|
+
._bfw7h6cr:hover{border:1px solid var(--ds-border,#dfe1e6)}
|
|
45
|
+
._4cvxmr28:hover{border-color:var(--ds-border-accent-blue,#2684ff)}
|
|
46
|
+
._1bnxglyw:hover{text-decoration-line:none}
|
|
47
|
+
._9oik18uv:hover{text-decoration-color:initial}
|
|
48
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
49
|
+
._1di629zg:active{background-color:var(--ds-background-selected,#deebff)}
|
|
50
|
+
._1iohnqa1:active{text-decoration-style:solid}
|
|
51
|
+
._1nrm18uv:active{text-decoration-color:initial}
|
|
52
|
+
._c2waglyw:active{text-decoration-line:none}
|
|
53
|
+
@supports not (-webkit-line-clamp:1){._17bix7n9{padding:var(--ds-space-025,2px) 0}._nr8z1o8l{display:inline-block}._102kqslr{max-height:22px}}
|