@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,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./styled.compiled.css";
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
3
7
|
// Wraps all icons represented in Inline Links. Icons have three sources/types:
|
|
4
8
|
// - JSON-LD: from the generator.icon property coming back from ORS.
|
|
5
9
|
// - @atlaskit/icon: for lock icons, unauthorized, etc.
|
|
@@ -9,7 +13,7 @@ import styled from '@emotion/styled';
|
|
|
9
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
10
14
|
|
|
11
15
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
12
|
-
|
|
16
|
+
const IconObjectOverrides = `
|
|
13
17
|
& > span {
|
|
14
18
|
height: 16px;
|
|
15
19
|
width: 16px;
|
|
@@ -26,7 +30,7 @@ export const IconObjectOverrides = `
|
|
|
26
30
|
`;
|
|
27
31
|
|
|
28
32
|
// TODO: remove this override behaviour for @atlaskit/icon
|
|
29
|
-
|
|
33
|
+
const IconOverrides = `
|
|
30
34
|
& > * > span {
|
|
31
35
|
height: 16px;
|
|
32
36
|
width: 16px;
|
|
@@ -42,73 +46,141 @@ export const IconOverrides = `
|
|
|
42
46
|
`;
|
|
43
47
|
|
|
44
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
45
|
-
export const IconWrapper =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
export const IconWrapper = forwardRef(({
|
|
50
|
+
as: C = "span",
|
|
51
|
+
style: __cmpls,
|
|
52
|
+
...__cmplp
|
|
53
|
+
}, __cmplr) => {
|
|
54
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
55
|
+
style: __cmpls,
|
|
56
|
+
ref: __cmplr,
|
|
57
|
+
className: ax(["_uiztglyw _17047vkz _iibf7vkz _lacastnw _1yg7idpf _15x0stnw _k9fw1ssb _1tr81ssb _q3v31ooe _1f027vkz _nbgx7vkz _4d7tstnw _o5fv1l7b _3g5ridpf _1fqgstnw _d1gw1ssb _1gx11ssb _18lx1ooe", __cmplp.className])
|
|
58
|
+
}));
|
|
59
|
+
});
|
|
52
60
|
|
|
53
61
|
// Wraps all emoji in Inline Links similar to icon
|
|
54
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
64
|
+
IconWrapper.displayName = 'IconWrapper';
|
|
65
|
+
}
|
|
66
|
+
export const EmojiWrapper = forwardRef(({
|
|
67
|
+
as: C = "span",
|
|
68
|
+
style: __cmpls,
|
|
69
|
+
...__cmplp
|
|
70
|
+
}, __cmplr) => {
|
|
71
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
72
|
+
style: __cmpls,
|
|
73
|
+
ref: __cmplr,
|
|
74
|
+
className: ax(["_1e0c1o8l _2hwxv77o _uiztglyw _17047vkz _iibf7vkz _lacastnw _1yg7idpf _15x0stnw _k9fw1ssb _1tr81ssb _q3v31ooe _1f027vkz _nbgx7vkz _4d7tstnw _o5fv1l7b _3g5ridpf _1fqgstnw _d1gw1ssb _1gx11ssb _18lx1ooe", __cmplp.className])
|
|
75
|
+
}));
|
|
76
|
+
});
|
|
64
77
|
|
|
65
78
|
// The main 'wrapping' element, title of the content.
|
|
66
79
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
67
80
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
68
81
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
82
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
83
|
+
EmojiWrapper.displayName = 'EmojiWrapper';
|
|
84
|
+
}
|
|
85
|
+
export const IconTitleWrapper = forwardRef(({
|
|
86
|
+
as: C = "span",
|
|
87
|
+
style: __cmpls,
|
|
88
|
+
...__cmplp
|
|
89
|
+
}, __cmplr) => {
|
|
90
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
91
|
+
style: __cmpls,
|
|
92
|
+
ref: __cmplr,
|
|
93
|
+
className: ax(["_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", __cmplp.className])
|
|
94
|
+
}));
|
|
74
95
|
});
|
|
75
96
|
|
|
76
97
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
77
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
99
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
100
|
+
IconTitleWrapper.displayName = 'IconTitleWrapper';
|
|
101
|
+
}
|
|
102
|
+
export const LozengeWrapper = forwardRef(({
|
|
103
|
+
as: C = "span",
|
|
104
|
+
style: __cmpls,
|
|
105
|
+
...__cmplp
|
|
106
|
+
}, __cmplr) => {
|
|
107
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
108
|
+
style: __cmpls,
|
|
109
|
+
ref: __cmplr,
|
|
110
|
+
className: ax(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o", __cmplp.className])
|
|
111
|
+
}));
|
|
82
112
|
});
|
|
83
113
|
|
|
84
114
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
115
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
116
|
+
LozengeWrapper.displayName = 'LozengeWrapper';
|
|
117
|
+
}
|
|
118
|
+
export const RightIconPositionWrapper = forwardRef(({
|
|
119
|
+
as: C = "span",
|
|
120
|
+
style: __cmpls,
|
|
121
|
+
...__cmplp
|
|
122
|
+
}, __cmplr) => {
|
|
123
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
124
|
+
style: __cmpls,
|
|
125
|
+
ref: __cmplr,
|
|
126
|
+
className: ax(["_18u0v77o _kqswh2mm _1e0c1o8l", __cmplp.className])
|
|
127
|
+
}));
|
|
89
128
|
});
|
|
90
129
|
|
|
91
130
|
// The following components are used to absolutely position icons in the vertical center.
|
|
92
131
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
93
132
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
94
133
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
134
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
135
|
+
RightIconPositionWrapper.displayName = 'RightIconPositionWrapper';
|
|
136
|
+
}
|
|
137
|
+
export const IconPositionWrapper = forwardRef(({
|
|
138
|
+
as: C = "span",
|
|
139
|
+
style: __cmpls,
|
|
140
|
+
...__cmplp
|
|
141
|
+
}, __cmplr) => {
|
|
142
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
143
|
+
style: __cmpls,
|
|
144
|
+
ref: __cmplr,
|
|
145
|
+
className: ax(["_2hwx1b66 _kqswh2mm _1e0c1o8l", __cmplp.className])
|
|
146
|
+
}));
|
|
99
147
|
});
|
|
100
148
|
|
|
101
149
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
150
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
151
|
+
IconPositionWrapper.displayName = 'IconPositionWrapper';
|
|
152
|
+
}
|
|
153
|
+
export const IconEmptyWrapper = forwardRef(({
|
|
154
|
+
as: C = "span",
|
|
155
|
+
style: __cmpls,
|
|
156
|
+
...__cmplp
|
|
157
|
+
}, __cmplr) => {
|
|
158
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
159
|
+
style: __cmpls,
|
|
160
|
+
ref: __cmplr,
|
|
161
|
+
className: ax(["_1bsb7vkz _4t3i1osq _1e0c1o8l _tzy4idpf", __cmplp.className])
|
|
162
|
+
}));
|
|
107
163
|
});
|
|
108
164
|
|
|
109
165
|
// With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
|
|
110
166
|
// To achieve same result we use classname instead.
|
|
167
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
168
|
+
IconEmptyWrapper.displayName = 'IconEmptyWrapper';
|
|
169
|
+
}
|
|
111
170
|
export const TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
112
171
|
|
|
113
172
|
// 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
|
|
114
|
-
export const TitleWrapper =
|
|
173
|
+
export const TitleWrapper = forwardRef(({
|
|
174
|
+
as: C = "span",
|
|
175
|
+
style: __cmpls,
|
|
176
|
+
...__cmplp
|
|
177
|
+
}, __cmplr) => {
|
|
178
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
179
|
+
style: __cmpls,
|
|
180
|
+
ref: __cmplr,
|
|
181
|
+
className: ax(["", __cmplp.className])
|
|
182
|
+
}));
|
|
183
|
+
});
|
|
184
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
185
|
+
TitleWrapper.displayName = 'TitleWrapper';
|
|
186
|
+
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import Spinner from '@atlaskit/spinner';
|
|
3
4
|
import { Frame } from '../Frame';
|
|
4
5
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
5
6
|
import { IconTitleWrapper, RightIconPositionWrapper } from '../IconAndTitleLayout/styled';
|
|
7
|
+
import { IconTitleWrapper as IconTitleWrapperOld, RightIconPositionWrapper as RightIconPositionWrapperOld } from '../IconAndTitleLayout/styled-emotion';
|
|
6
8
|
import { SpinnerWrapper } from './styled';
|
|
9
|
+
import { SpinnerWrapper as SpinnerWrapperOld } from './styled-emotion';
|
|
7
10
|
export class InlineCardResolvingView extends React.Component {
|
|
8
11
|
render() {
|
|
9
12
|
const {
|
|
@@ -16,18 +19,33 @@ export class InlineCardResolvingView extends React.Component {
|
|
|
16
19
|
resolvingPlaceholder,
|
|
17
20
|
truncateInline
|
|
18
21
|
} = this.props;
|
|
22
|
+
const SpinnerWrapperComponent = fg('bandicoots-compiled-migration-smartcard') ? SpinnerWrapper : SpinnerWrapperOld;
|
|
19
23
|
if (inlinePreloaderStyle === 'on-right-without-skeleton') {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
25
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
26
|
+
withoutBackground: true,
|
|
27
|
+
testId: testId,
|
|
28
|
+
onClick: onClick,
|
|
29
|
+
isSelected: isSelected,
|
|
30
|
+
truncateInline: truncateInline
|
|
31
|
+
}, /*#__PURE__*/React.createElement(IconTitleWrapper, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapper, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
32
|
+
className: "inline-resolving-spinner"
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
34
|
+
size: 14
|
|
35
|
+
})))));
|
|
36
|
+
} else {
|
|
37
|
+
return /*#__PURE__*/React.createElement(Frame, {
|
|
38
|
+
withoutBackground: true,
|
|
39
|
+
testId: testId,
|
|
40
|
+
onClick: onClick,
|
|
41
|
+
isSelected: isSelected,
|
|
42
|
+
truncateInline: truncateInline
|
|
43
|
+
}, /*#__PURE__*/React.createElement(IconTitleWrapperOld, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapperOld, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
44
|
+
className: "inline-resolving-spinner"
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
46
|
+
size: 14
|
|
47
|
+
})))));
|
|
48
|
+
}
|
|
31
49
|
} else {
|
|
32
50
|
return /*#__PURE__*/React.createElement(Frame, {
|
|
33
51
|
testId: testId,
|
|
@@ -38,7 +56,7 @@ export class InlineCardResolvingView extends React.Component {
|
|
|
38
56
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
39
57
|
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
40
58
|
titleTextColor: titleTextColor
|
|
41
|
-
}, /*#__PURE__*/React.createElement(
|
|
59
|
+
}, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
|
|
42
60
|
className: "inline-resolving-spinner"
|
|
43
61
|
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
44
62
|
size: 14
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { IconTitleWrapper } from '../IconAndTitleLayout/styled-emotion';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
|
+
export const SpinnerWrapper = styled(IconTitleWrapper)({
|
|
7
|
+
verticalAlign: 'text-bottom',
|
|
8
|
+
padding: '0px'
|
|
9
|
+
});
|
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./styled.compiled.css";
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
3
7
|
import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
|
|
4
8
|
|
|
5
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
|
-
export const SpinnerWrapper =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
export const SpinnerWrapper = forwardRef(({
|
|
11
|
+
as: C = IconTitleWrapper,
|
|
12
|
+
style: __cmpls,
|
|
13
|
+
...__cmplp
|
|
14
|
+
}, __cmplr) => {
|
|
15
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
16
|
+
style: __cmpls,
|
|
17
|
+
ref: __cmplr,
|
|
18
|
+
className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _s7n41ndm", __cmplp.className])
|
|
19
|
+
}));
|
|
20
|
+
});
|
|
21
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
22
|
+
SpinnerWrapper.displayName = 'SpinnerWrapper';
|
|
23
|
+
}
|
|
@@ -3,20 +3,33 @@ import React from 'react';
|
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
5
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
8
9
|
import { messages } from '../../../messages';
|
|
9
10
|
import { HoverCard } from '../../HoverCard';
|
|
10
11
|
import { Frame } from '../Frame';
|
|
11
12
|
import { AKIconWrapper } from '../Icon';
|
|
13
|
+
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
12
14
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
13
15
|
import { IconStyledButton } from '../styled';
|
|
16
|
+
import { IconStyledButton as IconStyledButtonOld } from '../styled-emotion';
|
|
14
17
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
const fallbackUnauthorizedIcon = () => {
|
|
19
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
20
|
+
return /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
21
|
+
label: "error",
|
|
22
|
+
size: "small",
|
|
23
|
+
primaryColor: `var(--ds-icon-danger, ${R400})`
|
|
24
|
+
}));
|
|
25
|
+
} else {
|
|
26
|
+
return /*#__PURE__*/React.createElement(AKIconWrapperOld, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
27
|
+
label: "error",
|
|
28
|
+
size: "small",
|
|
29
|
+
primaryColor: `var(--ds-icon-danger, ${R400})`
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
20
33
|
export const InlineCardUnauthorizedView = ({
|
|
21
34
|
url,
|
|
22
35
|
id,
|
|
@@ -43,16 +56,29 @@ export const InlineCardUnauthorizedView = ({
|
|
|
43
56
|
}, [fireEvent, onAuthorise]);
|
|
44
57
|
const renderActionButton = React.useCallback(() => {
|
|
45
58
|
const ActionButton = withFrameStyleControl(Button, frameRef);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
60
|
+
return onAuthorise ? /*#__PURE__*/React.createElement(ActionButton, {
|
|
61
|
+
spacing: "none",
|
|
62
|
+
component: IconStyledButton,
|
|
63
|
+
onClick: handleConnectAccount,
|
|
64
|
+
testId: "button-connect-account"
|
|
65
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
66
|
+
values: {
|
|
67
|
+
context
|
|
68
|
+
}
|
|
69
|
+
}))) : undefined;
|
|
70
|
+
} else {
|
|
71
|
+
return onAuthorise ? /*#__PURE__*/React.createElement(ActionButton, {
|
|
72
|
+
spacing: "none",
|
|
73
|
+
component: IconStyledButtonOld,
|
|
74
|
+
onClick: handleConnectAccount,
|
|
75
|
+
testId: "button-connect-account"
|
|
76
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
77
|
+
values: {
|
|
78
|
+
context
|
|
79
|
+
}
|
|
80
|
+
}))) : undefined;
|
|
81
|
+
}
|
|
56
82
|
}, [handleConnectAccount, onAuthorise, context]);
|
|
57
83
|
const inlineCardUnauthenticatedView = /*#__PURE__*/React.createElement(Frame, {
|
|
58
84
|
testId: testId,
|
|
@@ -60,7 +86,7 @@ export const InlineCardUnauthorizedView = ({
|
|
|
60
86
|
ref: frameRef,
|
|
61
87
|
truncateInline: truncateInline
|
|
62
88
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
63
|
-
icon: icon ? icon :
|
|
89
|
+
icon: icon ? icon : fallbackUnauthorizedIcon(),
|
|
64
90
|
title: url,
|
|
65
91
|
link: url,
|
|
66
92
|
onClick: onClick,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
4
|
+
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
5
|
+
// This basically turns the button back into inline content
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
|
+
export const IconStyledButton = styled.span({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
9
|
+
'&&&': {
|
|
10
|
+
textAlign: 'initial',
|
|
11
|
+
display: 'inline',
|
|
12
|
+
verticalAlign: 'baseline',
|
|
13
|
+
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
14
|
+
borderTopLeftRadius: '0px',
|
|
15
|
+
borderBottomLeftRadius: '0px',
|
|
16
|
+
padding: `${"var(--ds-space-025, 2px)"} ${"var(--ds-space-075, 6px)"}`,
|
|
17
|
+
backgroundClip: 'padding-box',
|
|
18
|
+
boxDecorationBreak: 'clone'
|
|
19
|
+
},
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
|
+
'> span': {
|
|
22
|
+
display: 'inline',
|
|
23
|
+
overflow: 'initial',
|
|
24
|
+
textOverflow: 'initial',
|
|
25
|
+
whiteSpace: 'initial',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
+
'> span': {
|
|
28
|
+
overflow: 'initial',
|
|
29
|
+
textOverflow: 'initial',
|
|
30
|
+
whiteSpace: 'initial'
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
36
|
+
export const NoLinkAppearance = styled.span({
|
|
37
|
+
color: `var(--ds-text-subtlest, ${N200})`,
|
|
38
|
+
marginLeft: "var(--ds-space-050, 4px)"
|
|
39
|
+
});
|
|
40
|
+
|
|
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 const LinkAppearance = styled.a({
|
|
43
|
+
color: `var(--ds-link, ${B400})`,
|
|
44
|
+
'&:hover': {
|
|
45
|
+
textDecoration: 'none'
|
|
46
|
+
}
|
|
47
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
._i3j7iti9._i3j7iti9._i3j7iti9{border-radius:var(--ds-border-radius-100,4px)}._12rl18uv >span>span{overflow-x:initial}
|
|
3
|
+
._1695v77o._1695v77o._1695v77o{padding-top:var(--ds-space-025,2px)}
|
|
4
|
+
._18v918uv._18v918uv._18v918uv{vertical-align:initial}
|
|
5
|
+
._1a8r4jg8 >span>span{white-space:normal}
|
|
6
|
+
._1byq12x7._1byq12x7._1byq12x7{padding-left:var(--ds-space-075,6px)}
|
|
7
|
+
._1ilx1nu9._1ilx1nu9._1ilx1nu9{display:inline}
|
|
8
|
+
._1jjh4jg8 >span{white-space:normal}
|
|
9
|
+
._1nr3zryt >span>span{text-overflow:clip}
|
|
10
|
+
._1pns12x7._1pns12x7._1pns12x7{padding-right:var(--ds-space-075,6px)}
|
|
11
|
+
._1t1midpf._1t1midpf._1t1midpf{border-top-left-radius:0}
|
|
12
|
+
._1t21zryt >span{text-overflow:clip}
|
|
13
|
+
._1wge18uv >span>span{overflow-y:initial}
|
|
14
|
+
._1xdi1nu9 >span{display:inline}
|
|
15
|
+
._5x9bqvcn._5x9bqvcn._5x9bqvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
16
|
+
._jinwidpf._jinwidpf._jinwidpf{border-bottom-left-radius:0}
|
|
17
|
+
._ju3g18uv >span{overflow-x:initial}
|
|
18
|
+
._k1fv1u8q._k1fv1u8q._k1fv1u8q{background-clip:padding-box}
|
|
19
|
+
._mt1t18uv >span{overflow-y:initial}
|
|
20
|
+
._uqpc18uv._uqpc18uv._uqpc18uv{text-align:initial}
|
|
21
|
+
._vktqv77o._vktqv77o._vktqv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
@@ -1,47 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./styled.compiled.css";
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
7
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
5
8
|
// This basically turns the button back into inline content
|
|
6
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
|
-
export const IconStyledButton =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
backgroundClip: 'padding-box',
|
|
18
|
-
boxDecorationBreak: 'clone'
|
|
19
|
-
},
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
|
-
'> span': {
|
|
22
|
-
display: 'inline',
|
|
23
|
-
overflow: 'initial',
|
|
24
|
-
textOverflow: 'initial',
|
|
25
|
-
whiteSpace: 'initial',
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
-
'> span': {
|
|
28
|
-
overflow: 'initial',
|
|
29
|
-
textOverflow: 'initial',
|
|
30
|
-
whiteSpace: 'initial'
|
|
31
|
-
}
|
|
32
|
-
}
|
|
10
|
+
export const IconStyledButton = forwardRef(({
|
|
11
|
+
as: C = "span",
|
|
12
|
+
style: __cmpls,
|
|
13
|
+
...__cmplp
|
|
14
|
+
}, __cmplr) => {
|
|
15
|
+
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
16
|
+
style: __cmpls,
|
|
17
|
+
ref: __cmplr,
|
|
18
|
+
className: ax(["_i3j7iti9 _uqpc18uv _1ilx1nu9 _18v918uv _1t1midpf _jinwidpf _1695v77o _1pns12x7 _vktqv77o _1byq12x7 _k1fv1u8q _5x9bqvcn _ju3g18uv _mt1t18uv _12rl18uv _1wge18uv _1nr3zryt _1a8r4jg8 _1xdi1nu9 _1t21zryt _1jjh4jg8", __cmplp.className])
|
|
19
|
+
}));
|
|
33
20
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
color: `var(--ds-text-subtlest, ${N200})`,
|
|
38
|
-
marginLeft: "var(--ds-space-050, 4px)"
|
|
39
|
-
});
|
|
40
|
-
|
|
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 const LinkAppearance = styled.a({
|
|
43
|
-
color: `var(--ds-link, ${B400})`,
|
|
44
|
-
'&:hover': {
|
|
45
|
-
textDecoration: 'none'
|
|
46
|
-
}
|
|
47
|
-
});
|
|
21
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
22
|
+
IconStyledButton.displayName = 'IconStyledButton';
|
|
23
|
+
}
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "
|
|
13
|
+
packageVersion: "34.0.1",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "
|
|
7
|
+
packageVersion: "34.0.1"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -15,6 +15,7 @@ export var 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 var 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 @@ var getButtonStyle = function 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 ? "\n padding: 0.125rem;\n " : "\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n "]
|
|
34
35
|
});
|
|
@@ -28,15 +28,18 @@ var stackItemIconSizeStyles = getIconSizeStyles('20px');
|
|
|
28
28
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
29
|
var stackItemIconStyles = css(stackItemIconSizeStyles, {
|
|
30
30
|
display: 'inline-block',
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
31
32
|
lineHeight: 0,
|
|
32
33
|
padding: "var(--ds-space-025, 2px)",
|
|
33
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
34
35
|
'span,svg,img': {
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
35
37
|
lineHeight: 0
|
|
36
38
|
}
|
|
37
39
|
});
|
|
38
40
|
var newStackItemIconStyles = css({
|
|
39
41
|
display: 'inline-block',
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
40
43
|
lineHeight: 0
|
|
41
44
|
});
|
|
42
45
|
var ActionIcon = function ActionIcon(_ref) {
|
|
@@ -7,6 +7,7 @@ var 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',
|
|
@@ -25,6 +25,7 @@ import { filterActionItems } from '../utils';
|
|
|
25
25
|
import ActionGroupItem from './action-group-item';
|
|
26
26
|
var styles = css({
|
|
27
27
|
display: 'inline-flex',
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
28
29
|
lineHeight: '1rem',
|
|
29
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
31
|
'> div': {
|