@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
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
|
+
import { SpanSkeleton } from '@atlaskit/linking-common';
|
|
6
|
+
// TODO: Figure out a more scalable/responsive solution
|
|
7
|
+
// for vertical alignment.
|
|
8
|
+
// Current rationale: vertically positioned at the top of
|
|
9
|
+
// the smart card container (when set to 0). Offset this
|
|
10
|
+
// to position it with appropriate whitespace from the top.
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
|
+
export var Icon = styled.img({
|
|
13
|
+
height: '16px',
|
|
14
|
+
width: '16px',
|
|
15
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
16
|
+
borderRadius: '2px',
|
|
17
|
+
userSelect: 'none',
|
|
18
|
+
position: 'absolute',
|
|
19
|
+
top: '50%',
|
|
20
|
+
left: '50%',
|
|
21
|
+
transform: 'translate(-50%, -50%)'
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// Used for 'untrue' icons which claim to be 16x16 but
|
|
25
|
+
// are less than that in height/width.
|
|
26
|
+
// TODO: Replace this override with proper AtlasKit solution.
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
|
+
export var AKIconWrapper = styled.span({
|
|
29
|
+
marginRight: "var(--ds-space-negative-025, -2px)"
|
|
30
|
+
});
|
|
31
|
+
export var Shimmer = function Shimmer(_ref) {
|
|
32
|
+
var testId = _ref.testId;
|
|
33
|
+
var skeletonCustomStyles = {
|
|
34
|
+
position: 'absolute',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
36
|
+
top: '50%',
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
38
|
+
left: '50%',
|
|
39
|
+
transform: 'translate(-50%, -50%)',
|
|
40
|
+
marginRight: "var(--ds-space-050, 4px)"
|
|
41
|
+
};
|
|
42
|
+
return /*#__PURE__*/React.createElement(SpanSkeleton, {
|
|
43
|
+
width: 16,
|
|
44
|
+
height: 16,
|
|
45
|
+
borderRadius: 2,
|
|
46
|
+
testId: testId
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
48
|
+
,
|
|
49
|
+
style: skeletonCustomStyles
|
|
50
|
+
});
|
|
51
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkoyh40{border-radius:2px}._154i1ssb{top:50%}
|
|
3
|
+
._1bsb7vkz{width:1pc}
|
|
4
|
+
._1ltv1ssb{left:50%}
|
|
5
|
+
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
6
|
+
._2hwx1i6y{margin-right:var(--ds-space-negative-025,-2px)}
|
|
7
|
+
._4t3i7vkz{height:1pc}
|
|
8
|
+
._kqswstnw{position:absolute}
|
|
9
|
+
._t9ec1ooe{transform:translate(-50%,-50%)}
|
|
10
|
+
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
/* Icon.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["as", "style"],
|
|
5
|
+
_excluded2 = ["as", "style"];
|
|
6
|
+
import "./Icon.compiled.css";
|
|
7
|
+
import { forwardRef } from 'react';
|
|
8
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
1
9
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
-
import styled from '@emotion/styled';
|
|
5
10
|
import { SpanSkeleton } from '@atlaskit/linking-common';
|
|
6
11
|
// TODO: Figure out a more scalable/responsive solution
|
|
7
12
|
// for vertical alignment.
|
|
@@ -9,27 +14,41 @@ import { SpanSkeleton } from '@atlaskit/linking-common';
|
|
|
9
14
|
// the smart card container (when set to 0). Offset this
|
|
10
15
|
// to position it with appropriate whitespace from the top.
|
|
11
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
|
-
export var Icon =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
export var Icon = forwardRef(function (_ref, __cmplr) {
|
|
18
|
+
var _ref$as = _ref.as,
|
|
19
|
+
C = _ref$as === void 0 ? "img" : _ref$as,
|
|
20
|
+
__cmpls = _ref.style,
|
|
21
|
+
__cmplp = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
23
|
+
style: __cmpls,
|
|
24
|
+
ref: __cmplr,
|
|
25
|
+
className: ax(["_2rkoyh40 _4t3i7vkz _1bsb7vkz _2hwx1b66 _uiztglyw _kqswstnw _154i1ssb _1ltv1ssb _t9ec1ooe", __cmplp.className])
|
|
26
|
+
}));
|
|
22
27
|
});
|
|
23
28
|
|
|
24
29
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
25
30
|
// are less than that in height/width.
|
|
26
31
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
27
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
34
|
+
Icon.displayName = 'Icon';
|
|
35
|
+
}
|
|
36
|
+
export var AKIconWrapper = forwardRef(function (_ref2, __cmplr) {
|
|
37
|
+
var _ref2$as = _ref2.as,
|
|
38
|
+
C = _ref2$as === void 0 ? "span" : _ref2$as,
|
|
39
|
+
__cmpls = _ref2.style,
|
|
40
|
+
__cmplp = _objectWithoutProperties(_ref2, _excluded2);
|
|
41
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
42
|
+
style: __cmpls,
|
|
43
|
+
ref: __cmplr,
|
|
44
|
+
className: ax(["_2hwx1i6y", __cmplp.className])
|
|
45
|
+
}));
|
|
30
46
|
});
|
|
31
|
-
|
|
32
|
-
|
|
47
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
48
|
+
AKIconWrapper.displayName = 'AKIconWrapper';
|
|
49
|
+
}
|
|
50
|
+
export var Shimmer = function Shimmer(_ref3) {
|
|
51
|
+
var testId = _ref3.testId;
|
|
33
52
|
var skeletonCustomStyles = {
|
|
34
53
|
position: 'absolute',
|
|
35
54
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
2
|
+
._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
|
|
3
|
+
._syaz1y58{color:var(--ds-link,#0052cc)}
|
|
4
|
+
._1bnxglyw:hover{text-decoration-line:none}
|
|
5
|
+
._9oik18uv:hover{text-decoration-color:initial}
|
|
6
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
@@ -1,17 +1,59 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
1
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
4
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
6
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
9
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
10
|
+
var _excluded = ["as", "style"],
|
|
11
|
+
_excluded2 = ["as", "style"];
|
|
12
|
+
import "./index.compiled.css";
|
|
13
|
+
import { forwardRef } from 'react';
|
|
14
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
7
15
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
16
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
17
|
import React from 'react';
|
|
10
18
|
import ImageLoader from 'react-render-image';
|
|
11
19
|
import LinkIcon from '@atlaskit/icon/core/migration/link';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
|
+
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
12
22
|
import { Icon, Shimmer } from '../Icon';
|
|
13
|
-
import { LinkAppearance, NoLinkAppearance } from '../styled';
|
|
23
|
+
import { LinkAppearance as LinkAppearanceOld, NoLinkAppearance as NoLinkAppearanceOld } from '../styled-emotion';
|
|
14
24
|
import { EmojiWrapper, IconEmptyWrapper, IconPositionWrapper, IconTitleWrapper, IconWrapper, TitleWrapper, TitleWrapperClassName } from './styled';
|
|
25
|
+
import { EmojiWrapper as EmojiWrapperOld, IconEmptyWrapper as IconEmptyWrapperOld, IconPositionWrapper as IconPositionWrapperOld, IconTitleWrapper as IconTitleWrapperOld, IconWrapper as IconWrapperOld, TitleWrapper as TitleWrapperOld } from './styled-emotion';
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
27
|
+
var NoLinkAppearance = forwardRef(function (_ref, __cmplr) {
|
|
28
|
+
var _ref$as = _ref.as,
|
|
29
|
+
C = _ref$as === void 0 ? "span" : _ref$as,
|
|
30
|
+
__cmpls = _ref.style,
|
|
31
|
+
__cmplp = _objectWithoutProperties(_ref, _excluded);
|
|
32
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
33
|
+
style: __cmpls,
|
|
34
|
+
ref: __cmplr,
|
|
35
|
+
className: ax(["_syaz1wmz _18u01b66", __cmplp.className])
|
|
36
|
+
}));
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
40
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
41
|
+
NoLinkAppearance.displayName = 'NoLinkAppearance';
|
|
42
|
+
}
|
|
43
|
+
var LinkAppearance = forwardRef(function (_ref2, __cmplr) {
|
|
44
|
+
var _ref2$as = _ref2.as,
|
|
45
|
+
C = _ref2$as === void 0 ? "a" : _ref2$as,
|
|
46
|
+
__cmpls = _ref2.style,
|
|
47
|
+
__cmplp = _objectWithoutProperties(_ref2, _excluded2);
|
|
48
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
49
|
+
style: __cmpls,
|
|
50
|
+
ref: __cmplr,
|
|
51
|
+
className: ax(["_syaz1y58 _9oik18uv _1bnxglyw _jf4cnqa1", __cmplp.className])
|
|
52
|
+
}));
|
|
53
|
+
});
|
|
54
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
55
|
+
LinkAppearance.displayName = 'LinkAppearance';
|
|
56
|
+
}
|
|
15
57
|
export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
16
58
|
function IconAndTitleLayout() {
|
|
17
59
|
var _this;
|
|
@@ -49,12 +91,12 @@ export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
49
91
|
icon = _this$props.icon,
|
|
50
92
|
emoji = _this$props.emoji;
|
|
51
93
|
if (emoji) {
|
|
52
|
-
return /*#__PURE__*/React.createElement(EmojiWrapper, null, emoji);
|
|
94
|
+
return fg('bandicoots-compiled-migration-smartcard') ? /*#__PURE__*/React.createElement(EmojiWrapper, null, emoji) : /*#__PURE__*/React.createElement(EmojiWrapperOld, null, emoji);
|
|
53
95
|
}
|
|
54
96
|
if (!icon || typeof icon === 'string') {
|
|
55
97
|
return null;
|
|
56
98
|
}
|
|
57
|
-
return /*#__PURE__*/React.createElement(IconWrapper, null, icon);
|
|
99
|
+
return fg('bandicoots-compiled-migration-smartcard') ? /*#__PURE__*/React.createElement(IconWrapper, null, icon) : /*#__PURE__*/React.createElement(IconWrapperOld, null, icon);
|
|
58
100
|
}
|
|
59
101
|
}, {
|
|
60
102
|
key: "renderImageIcon",
|
|
@@ -119,12 +161,25 @@ export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
119
161
|
rightSide = _this$props2.rightSide,
|
|
120
162
|
_this$props2$testId = _this$props2.testId,
|
|
121
163
|
testId = _this$props2$testId === void 0 ? 'inline-card-icon-and-title' : _this$props2$testId;
|
|
122
|
-
var titlePart = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconPositionWrapper, {
|
|
164
|
+
var titlePart = fg('bandicoots-compiled-migration-smartcard') ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconPositionWrapper, {
|
|
123
165
|
"data-testid": "icon-position-wrapper"
|
|
124
166
|
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapper, {
|
|
125
167
|
"data-testid": "icon-empty-wrapper"
|
|
126
168
|
}), this.renderIcon(testId))), /*#__PURE__*/React.createElement(TitleWrapper
|
|
127
169
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
170
|
+
, {
|
|
171
|
+
style: {
|
|
172
|
+
color: titleTextColor
|
|
173
|
+
}
|
|
174
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
175
|
+
,
|
|
176
|
+
className: TitleWrapperClassName
|
|
177
|
+
}, title)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconPositionWrapperOld, {
|
|
178
|
+
"data-testid": "icon-position-wrapper"
|
|
179
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapperOld, {
|
|
180
|
+
"data-testid": "icon-empty-wrapper"
|
|
181
|
+
}), this.renderIcon(testId))), /*#__PURE__*/React.createElement(TitleWrapperOld
|
|
182
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
128
183
|
, {
|
|
129
184
|
style: {
|
|
130
185
|
color: titleTextColor
|
|
@@ -133,20 +188,37 @@ export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
133
188
|
,
|
|
134
189
|
className: TitleWrapperClassName
|
|
135
190
|
}, title));
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
191
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
192
|
+
return (
|
|
193
|
+
/*#__PURE__*/
|
|
194
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
195
|
+
React.createElement(IconTitleWrapper, {
|
|
196
|
+
style: {
|
|
197
|
+
color: titleColor
|
|
198
|
+
},
|
|
199
|
+
"data-testid": testId
|
|
200
|
+
}, link ? /*#__PURE__*/React.createElement(LinkAppearance, {
|
|
201
|
+
href: link,
|
|
202
|
+
onClick: this.handleClick,
|
|
203
|
+
onKeyPress: this.handleKeyPress
|
|
204
|
+
}, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(NoLinkAppearance, null, rightSide) : null)
|
|
205
|
+
);
|
|
206
|
+
} else {
|
|
207
|
+
return (
|
|
208
|
+
/*#__PURE__*/
|
|
209
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
210
|
+
React.createElement(IconTitleWrapperOld, {
|
|
211
|
+
style: {
|
|
212
|
+
color: titleColor
|
|
213
|
+
},
|
|
214
|
+
"data-testid": testId
|
|
215
|
+
}, link ? /*#__PURE__*/React.createElement(LinkAppearanceOld, {
|
|
216
|
+
href: link,
|
|
217
|
+
onClick: this.handleClick,
|
|
218
|
+
onKeyPress: this.handleKeyPress
|
|
219
|
+
}, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(NoLinkAppearanceOld, null, rightSide) : null)
|
|
220
|
+
);
|
|
221
|
+
}
|
|
150
222
|
}
|
|
151
223
|
}]);
|
|
152
224
|
}(React.Component);
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
// Wraps all icons represented in Inline Links. Icons have three sources/types:
|
|
4
|
+
// - JSON-LD: from the generator.icon property coming back from ORS.
|
|
5
|
+
// - @atlaskit/icon: for lock icons, unauthorized, etc.
|
|
6
|
+
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
7
|
+
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
8
|
+
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
10
|
+
|
|
11
|
+
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
12
|
+
export var IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 16px;\n position: absolute;\n top: 3px;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
13
|
+
|
|
14
|
+
// TODO: remove this override behaviour for @atlaskit/icon
|
|
15
|
+
export var IconOverrides = "\n & > * > span {\n height: 16px;\n width: 16px;\n position: absolute;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
|
+
export var IconWrapper = styled.span({
|
|
19
|
+
userSelect: 'none'
|
|
20
|
+
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
+
IconOverrides,
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
|
+
IconObjectOverrides);
|
|
25
|
+
|
|
26
|
+
// Wraps all emoji in Inline Links similar to icon
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
|
+
export var EmojiWrapper = styled.span({
|
|
29
|
+
display: 'inline-block',
|
|
30
|
+
marginRight: "var(--ds-space-025, 2px)",
|
|
31
|
+
userSelect: 'none'
|
|
32
|
+
},
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
34
|
+
IconOverrides,
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
|
+
IconObjectOverrides);
|
|
37
|
+
|
|
38
|
+
// The main 'wrapping' element, title of the content.
|
|
39
|
+
// NB: `white-space` adds little whitespace before wrapping.
|
|
40
|
+
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
|
+
export var IconTitleWrapper = styled.span({
|
|
43
|
+
whiteSpace: 'pre-wrap',
|
|
44
|
+
wordBreak: 'break-all',
|
|
45
|
+
boxDecorationBreak: 'clone',
|
|
46
|
+
padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)")
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// TODO: Replace overrides with proper AtlasKit solution.
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
51
|
+
export var LozengeWrapper = styled.span({
|
|
52
|
+
display: 'inline-block',
|
|
53
|
+
verticalAlign: '1px',
|
|
54
|
+
margin: "0 ".concat("var(--ds-space-050, 4px)", " 0 ", "var(--ds-space-025, 2px)")
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
58
|
+
export var RightIconPositionWrapper = styled.span({
|
|
59
|
+
marginLeft: "var(--ds-space-025, 2px)",
|
|
60
|
+
position: 'relative',
|
|
61
|
+
display: 'inline-block'
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// The following components are used to absolutely position icons in the vertical center.
|
|
65
|
+
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
66
|
+
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
68
|
+
export var IconPositionWrapper = styled.span({
|
|
69
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
70
|
+
position: 'relative',
|
|
71
|
+
display: 'inline-block'
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
75
|
+
export var IconEmptyWrapper = styled.span({
|
|
76
|
+
width: '16px',
|
|
77
|
+
height: '100%',
|
|
78
|
+
display: 'inline-block',
|
|
79
|
+
opacity: 0
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
// With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
|
|
83
|
+
// To achieve same result we use classname instead.
|
|
84
|
+
export var TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
85
|
+
|
|
86
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-empty-styled-expression -- Ignored via go/DSP-18766
|
|
87
|
+
export var TitleWrapper = styled.span({});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
._15x0stnw>*>span>svg{position:absolute}
|
|
2
|
+
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
3
|
+
._17047vkz>*>span{height:1pc}
|
|
4
|
+
._18lx1ooe>span>svg{transform:translate(-50%,-50%)}
|
|
5
|
+
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
6
|
+
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
7
|
+
._19pkidpf{margin-top:0}
|
|
8
|
+
._1bsb7vkz{width:1pc}
|
|
9
|
+
._1e0c1o8l{display:inline-block}
|
|
10
|
+
._1f027vkz>span{height:1pc}
|
|
11
|
+
._1fqgstnw>span>svg{position:absolute}
|
|
12
|
+
._1gx11ssb>span>svg{left:50%}
|
|
13
|
+
._1nmz9jpi{word-break:break-all}
|
|
14
|
+
._1tr81ssb>*>span>svg{left:50%}
|
|
15
|
+
._1yg7idpf>*>span{left:0}
|
|
16
|
+
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
17
|
+
._2hwxv77o{margin-right:var(--ds-space-025,2px)}
|
|
18
|
+
._3g5ridpf>span{left:0}
|
|
19
|
+
._4d7tstnw>span{position:absolute}
|
|
20
|
+
._4t3i1osq{height:100%}
|
|
21
|
+
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
22
|
+
._d1gw1ssb>span>svg{top:50%}
|
|
23
|
+
._iibf7vkz>*>span{width:1pc}
|
|
24
|
+
._k9fw1ssb>*>span>svg{top:50%}
|
|
25
|
+
._kqswh2mm{position:relative}
|
|
26
|
+
._lacastnw>*>span{position:absolute}
|
|
27
|
+
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
28
|
+
._nbgx7vkz>span{width:1pc}
|
|
29
|
+
._o5721jtm{white-space:pre-wrap}
|
|
30
|
+
._o5fv1l7b>span{top:3px}
|
|
31
|
+
._otyridpf{margin-bottom:0}
|
|
32
|
+
._q3v31ooe>*>span>svg{transform:translate(-50%,-50%)}
|
|
33
|
+
._s7n4t94y{vertical-align:1px}
|
|
34
|
+
._tzy4idpf{opacity:0}
|
|
35
|
+
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
36
|
+
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["as", "style"],
|
|
5
|
+
_excluded2 = ["as", "style"],
|
|
6
|
+
_excluded3 = ["as", "style"],
|
|
7
|
+
_excluded4 = ["as", "style"],
|
|
8
|
+
_excluded5 = ["as", "style"],
|
|
9
|
+
_excluded6 = ["as", "style"],
|
|
10
|
+
_excluded7 = ["as", "style"],
|
|
11
|
+
_excluded8 = ["as", "style"];
|
|
12
|
+
import "./styled.compiled.css";
|
|
13
|
+
import { forwardRef } from 'react';
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
3
16
|
// Wraps all icons represented in Inline Links. Icons have three sources/types:
|
|
4
17
|
// - JSON-LD: from the generator.icon property coming back from ORS.
|
|
5
18
|
// - @atlaskit/icon: for lock icons, unauthorized, etc.
|
|
@@ -9,79 +22,147 @@ import styled from '@emotion/styled';
|
|
|
9
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
10
23
|
|
|
11
24
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
12
|
-
|
|
25
|
+
var IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 16px;\n position: absolute;\n top: 3px;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
13
26
|
|
|
14
27
|
// TODO: remove this override behaviour for @atlaskit/icon
|
|
15
|
-
|
|
28
|
+
var IconOverrides = "\n & > * > span {\n height: 16px;\n width: 16px;\n position: absolute;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
16
29
|
|
|
17
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
|
-
export var IconWrapper =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
export var IconWrapper = forwardRef(function (_ref, __cmplr) {
|
|
32
|
+
var _ref$as = _ref.as,
|
|
33
|
+
C = _ref$as === void 0 ? "span" : _ref$as,
|
|
34
|
+
__cmpls = _ref.style,
|
|
35
|
+
__cmplp = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
37
|
+
style: __cmpls,
|
|
38
|
+
ref: __cmplr,
|
|
39
|
+
className: ax(["_uiztglyw _17047vkz _iibf7vkz _lacastnw _1yg7idpf _15x0stnw _k9fw1ssb _1tr81ssb _q3v31ooe _1f027vkz _nbgx7vkz _4d7tstnw _o5fv1l7b _3g5ridpf _1fqgstnw _d1gw1ssb _1gx11ssb _18lx1ooe", __cmplp.className])
|
|
40
|
+
}));
|
|
41
|
+
});
|
|
25
42
|
|
|
26
43
|
// Wraps all emoji in Inline Links similar to icon
|
|
27
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
46
|
+
IconWrapper.displayName = 'IconWrapper';
|
|
47
|
+
}
|
|
48
|
+
export var EmojiWrapper = forwardRef(function (_ref2, __cmplr) {
|
|
49
|
+
var _ref2$as = _ref2.as,
|
|
50
|
+
C = _ref2$as === void 0 ? "span" : _ref2$as,
|
|
51
|
+
__cmpls = _ref2.style,
|
|
52
|
+
__cmplp = _objectWithoutProperties(_ref2, _excluded2);
|
|
53
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
54
|
+
style: __cmpls,
|
|
55
|
+
ref: __cmplr,
|
|
56
|
+
className: ax(["_1e0c1o8l _2hwxv77o _uiztglyw _17047vkz _iibf7vkz _lacastnw _1yg7idpf _15x0stnw _k9fw1ssb _1tr81ssb _q3v31ooe _1f027vkz _nbgx7vkz _4d7tstnw _o5fv1l7b _3g5ridpf _1fqgstnw _d1gw1ssb _1gx11ssb _18lx1ooe", __cmplp.className])
|
|
57
|
+
}));
|
|
58
|
+
});
|
|
37
59
|
|
|
38
60
|
// The main 'wrapping' element, title of the content.
|
|
39
61
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
40
62
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
41
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
64
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
65
|
+
EmojiWrapper.displayName = 'EmojiWrapper';
|
|
66
|
+
}
|
|
67
|
+
export var IconTitleWrapper = forwardRef(function (_ref3, __cmplr) {
|
|
68
|
+
var _ref3$as = _ref3.as,
|
|
69
|
+
C = _ref3$as === void 0 ? "span" : _ref3$as,
|
|
70
|
+
__cmpls = _ref3.style,
|
|
71
|
+
__cmplp = _objectWithoutProperties(_ref3, _excluded3);
|
|
72
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
73
|
+
style: __cmpls,
|
|
74
|
+
ref: __cmplr,
|
|
75
|
+
className: ax(["_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", __cmplp.className])
|
|
76
|
+
}));
|
|
47
77
|
});
|
|
48
78
|
|
|
49
79
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
50
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
81
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
82
|
+
IconTitleWrapper.displayName = 'IconTitleWrapper';
|
|
83
|
+
}
|
|
84
|
+
export var LozengeWrapper = forwardRef(function (_ref4, __cmplr) {
|
|
85
|
+
var _ref4$as = _ref4.as,
|
|
86
|
+
C = _ref4$as === void 0 ? "span" : _ref4$as,
|
|
87
|
+
__cmpls = _ref4.style,
|
|
88
|
+
__cmplp = _objectWithoutProperties(_ref4, _excluded4);
|
|
89
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
90
|
+
style: __cmpls,
|
|
91
|
+
ref: __cmplr,
|
|
92
|
+
className: ax(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o", __cmplp.className])
|
|
93
|
+
}));
|
|
55
94
|
});
|
|
56
95
|
|
|
57
96
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
97
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
98
|
+
LozengeWrapper.displayName = 'LozengeWrapper';
|
|
99
|
+
}
|
|
100
|
+
export var RightIconPositionWrapper = forwardRef(function (_ref5, __cmplr) {
|
|
101
|
+
var _ref5$as = _ref5.as,
|
|
102
|
+
C = _ref5$as === void 0 ? "span" : _ref5$as,
|
|
103
|
+
__cmpls = _ref5.style,
|
|
104
|
+
__cmplp = _objectWithoutProperties(_ref5, _excluded5);
|
|
105
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
106
|
+
style: __cmpls,
|
|
107
|
+
ref: __cmplr,
|
|
108
|
+
className: ax(["_18u0v77o _kqswh2mm _1e0c1o8l", __cmplp.className])
|
|
109
|
+
}));
|
|
62
110
|
});
|
|
63
111
|
|
|
64
112
|
// The following components are used to absolutely position icons in the vertical center.
|
|
65
113
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
66
114
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
67
115
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
116
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
117
|
+
RightIconPositionWrapper.displayName = 'RightIconPositionWrapper';
|
|
118
|
+
}
|
|
119
|
+
export var IconPositionWrapper = forwardRef(function (_ref6, __cmplr) {
|
|
120
|
+
var _ref6$as = _ref6.as,
|
|
121
|
+
C = _ref6$as === void 0 ? "span" : _ref6$as,
|
|
122
|
+
__cmpls = _ref6.style,
|
|
123
|
+
__cmplp = _objectWithoutProperties(_ref6, _excluded6);
|
|
124
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
125
|
+
style: __cmpls,
|
|
126
|
+
ref: __cmplr,
|
|
127
|
+
className: ax(["_2hwx1b66 _kqswh2mm _1e0c1o8l", __cmplp.className])
|
|
128
|
+
}));
|
|
72
129
|
});
|
|
73
130
|
|
|
74
131
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
132
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
133
|
+
IconPositionWrapper.displayName = 'IconPositionWrapper';
|
|
134
|
+
}
|
|
135
|
+
export var IconEmptyWrapper = forwardRef(function (_ref7, __cmplr) {
|
|
136
|
+
var _ref7$as = _ref7.as,
|
|
137
|
+
C = _ref7$as === void 0 ? "span" : _ref7$as,
|
|
138
|
+
__cmpls = _ref7.style,
|
|
139
|
+
__cmplp = _objectWithoutProperties(_ref7, _excluded7);
|
|
140
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
141
|
+
style: __cmpls,
|
|
142
|
+
ref: __cmplr,
|
|
143
|
+
className: ax(["_1bsb7vkz _4t3i1osq _1e0c1o8l _tzy4idpf", __cmplp.className])
|
|
144
|
+
}));
|
|
80
145
|
});
|
|
81
146
|
|
|
82
147
|
// With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
|
|
83
148
|
// To achieve same result we use classname instead.
|
|
149
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
150
|
+
IconEmptyWrapper.displayName = 'IconEmptyWrapper';
|
|
151
|
+
}
|
|
84
152
|
export var TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
85
153
|
|
|
86
154
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-empty-styled-expression -- Ignored via go/DSP-18766
|
|
87
|
-
export var TitleWrapper =
|
|
155
|
+
export var TitleWrapper = forwardRef(function (_ref8, __cmplr) {
|
|
156
|
+
var _ref8$as = _ref8.as,
|
|
157
|
+
C = _ref8$as === void 0 ? "span" : _ref8$as,
|
|
158
|
+
__cmpls = _ref8.style,
|
|
159
|
+
__cmplp = _objectWithoutProperties(_ref8, _excluded8);
|
|
160
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
161
|
+
style: __cmpls,
|
|
162
|
+
ref: __cmplr,
|
|
163
|
+
className: ax(["", __cmplp.className])
|
|
164
|
+
}));
|
|
165
|
+
});
|
|
166
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
167
|
+
TitleWrapper.displayName = 'TitleWrapper';
|
|
168
|
+
}
|