@atlaskit/smart-card 33.3.0 → 34.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/BlockCard/views/styled.js +1 -0
  4. package/dist/cjs/view/EmbedModal/components/link-info/styled.js +2 -0
  5. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -0
  6. package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -0
  7. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -0
  8. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +1 -0
  9. package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
  10. package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -0
  11. package/dist/cjs/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
  12. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +1 -1
  13. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
  14. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -0
  15. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -0
  16. package/dist/cjs/view/FlexibleCard/components/utils.js +3 -3
  17. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +8 -2
  18. package/dist/cjs/view/InlineCard/ErroredView/index.js +6 -2
  19. package/dist/cjs/view/InlineCard/ForbiddenView/index.js +40 -15
  20. package/dist/cjs/view/InlineCard/Frame/index.js +3 -1
  21. package/dist/cjs/view/InlineCard/Frame/styled-emotion.js +137 -0
  22. package/dist/cjs/view/InlineCard/Frame/styled.compiled.css +53 -0
  23. package/dist/cjs/view/InlineCard/Frame/styled.js +49 -124
  24. package/dist/cjs/view/InlineCard/Icon-emotion.js +58 -0
  25. package/dist/cjs/view/InlineCard/Icon.compiled.css +10 -0
  26. package/dist/cjs/view/InlineCard/Icon.js +39 -18
  27. package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.compiled.css +6 -0
  28. package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +99 -25
  29. package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled-emotion.js +95 -0
  30. package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.compiled.css +36 -0
  31. package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +128 -45
  32. package/dist/cjs/view/InlineCard/ResolvingView/index.js +30 -12
  33. package/dist/cjs/view/InlineCard/ResolvingView/styled-emotion.js +16 -0
  34. package/dist/cjs/view/InlineCard/ResolvingView/styled.compiled.css +5 -0
  35. package/dist/cjs/view/InlineCard/ResolvingView/styled.js +26 -8
  36. package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +42 -16
  37. package/dist/cjs/view/InlineCard/styled-emotion.js +55 -0
  38. package/dist/cjs/view/InlineCard/styled.compiled.css +21 -0
  39. package/dist/cjs/view/InlineCard/styled.js +25 -45
  40. package/dist/cjs/view/LinkUrl/index.js +1 -1
  41. package/dist/es2019/utils/analytics/analytics.js +1 -1
  42. package/dist/es2019/view/BlockCard/views/styled.js +1 -0
  43. package/dist/es2019/view/EmbedModal/components/link-info/styled.js +2 -0
  44. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -0
  45. package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -0
  46. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -0
  47. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -0
  48. package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
  49. package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -0
  50. package/dist/es2019/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
  51. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +1 -1
  52. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
  53. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -0
  54. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -0
  55. package/dist/es2019/view/FlexibleCard/components/utils.js +3 -3
  56. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +8 -2
  57. package/dist/es2019/view/InlineCard/ErroredView/index.js +6 -2
  58. package/dist/es2019/view/InlineCard/ForbiddenView/index.js +40 -15
  59. package/dist/es2019/view/InlineCard/Frame/index.js +3 -1
  60. package/dist/es2019/view/InlineCard/Frame/styled-emotion.js +143 -0
  61. package/dist/es2019/view/InlineCard/Frame/styled.compiled.css +53 -0
  62. package/dist/es2019/view/InlineCard/Frame/styled.js +44 -136
  63. package/dist/es2019/view/InlineCard/Icon-emotion.js +52 -0
  64. package/dist/es2019/view/InlineCard/Icon.compiled.css +10 -0
  65. package/dist/es2019/view/InlineCard/Icon.js +31 -15
  66. package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.compiled.css +6 -0
  67. package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +87 -18
  68. package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled-emotion.js +114 -0
  69. package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.compiled.css +36 -0
  70. package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +115 -43
  71. package/dist/es2019/view/InlineCard/ResolvingView/index.js +30 -12
  72. package/dist/es2019/view/InlineCard/ResolvingView/styled-emotion.js +9 -0
  73. package/dist/es2019/view/InlineCard/ResolvingView/styled.compiled.css +5 -0
  74. package/dist/es2019/view/InlineCard/ResolvingView/styled.js +20 -6
  75. package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +42 -16
  76. package/dist/es2019/view/InlineCard/styled-emotion.js +47 -0
  77. package/dist/es2019/view/InlineCard/styled.compiled.css +21 -0
  78. package/dist/es2019/view/InlineCard/styled.js +19 -43
  79. package/dist/es2019/view/LinkUrl/index.js +1 -1
  80. package/dist/esm/utils/analytics/analytics.js +1 -1
  81. package/dist/esm/view/BlockCard/views/styled.js +1 -0
  82. package/dist/esm/view/EmbedModal/components/link-info/styled.js +2 -0
  83. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -0
  84. package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -0
  85. package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -0
  86. package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -0
  87. package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
  88. package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -0
  89. package/dist/esm/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
  90. package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +1 -1
  91. package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
  92. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -0
  93. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -0
  94. package/dist/esm/view/FlexibleCard/components/utils.js +3 -3
  95. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +8 -2
  96. package/dist/esm/view/InlineCard/ErroredView/index.js +6 -2
  97. package/dist/esm/view/InlineCard/ForbiddenView/index.js +40 -15
  98. package/dist/esm/view/InlineCard/Frame/index.js +3 -1
  99. package/dist/esm/view/InlineCard/Frame/styled-emotion.js +131 -0
  100. package/dist/esm/view/InlineCard/Frame/styled.compiled.css +53 -0
  101. package/dist/esm/view/InlineCard/Frame/styled.js +46 -125
  102. package/dist/esm/view/InlineCard/Icon-emotion.js +51 -0
  103. package/dist/esm/view/InlineCard/Icon.compiled.css +10 -0
  104. package/dist/esm/view/InlineCard/Icon.js +36 -17
  105. package/dist/esm/view/InlineCard/IconAndTitleLayout/index.compiled.css +6 -0
  106. package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +90 -18
  107. package/dist/esm/view/InlineCard/IconAndTitleLayout/styled-emotion.js +87 -0
  108. package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.compiled.css +36 -0
  109. package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +124 -43
  110. package/dist/esm/view/InlineCard/ResolvingView/index.js +30 -12
  111. package/dist/esm/view/InlineCard/ResolvingView/styled-emotion.js +9 -0
  112. package/dist/esm/view/InlineCard/ResolvingView/styled.compiled.css +5 -0
  113. package/dist/esm/view/InlineCard/ResolvingView/styled.js +22 -6
  114. package/dist/esm/view/InlineCard/UnauthorisedView/index.js +42 -16
  115. package/dist/esm/view/InlineCard/styled-emotion.js +47 -0
  116. package/dist/esm/view/InlineCard/styled.compiled.css +21 -0
  117. package/dist/esm/view/InlineCard/styled.js +21 -43
  118. package/dist/esm/view/LinkUrl/index.js +1 -1
  119. package/dist/types/view/HoverCard/components/HoverCardComponent.d.ts +1 -1
  120. package/dist/types/view/HoverCard/types.d.ts +15 -0
  121. package/dist/types/view/InlineCard/Frame/styled-emotion.d.ts +17 -0
  122. package/dist/types/view/InlineCard/Frame/styled.d.ts +8 -10
  123. package/dist/types/view/InlineCard/Icon-emotion.d.ts +12 -0
  124. package/dist/types/view/InlineCard/Icon.d.ts +2 -8
  125. package/dist/types/view/InlineCard/IconAndTitleLayout/styled-emotion.d.ts +36 -0
  126. package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +8 -34
  127. package/dist/types/view/InlineCard/ResolvingView/styled-emotion.d.ts +9 -0
  128. package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +1 -8
  129. package/dist/types/view/InlineCard/styled-emotion.d.ts +13 -0
  130. package/dist/types/view/InlineCard/styled.d.ts +1 -12
  131. package/dist/types-ts4.5/view/HoverCard/components/HoverCardComponent.d.ts +1 -1
  132. package/dist/types-ts4.5/view/HoverCard/types.d.ts +15 -0
  133. package/dist/types-ts4.5/view/InlineCard/Frame/styled-emotion.d.ts +17 -0
  134. package/dist/types-ts4.5/view/InlineCard/Frame/styled.d.ts +8 -10
  135. package/dist/types-ts4.5/view/InlineCard/Icon-emotion.d.ts +12 -0
  136. package/dist/types-ts4.5/view/InlineCard/Icon.d.ts +2 -8
  137. package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled-emotion.d.ts +36 -0
  138. package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled.d.ts +8 -34
  139. package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled-emotion.d.ts +9 -0
  140. package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled.d.ts +1 -8
  141. package/dist/types-ts4.5/view/InlineCard/styled-emotion.d.ts +13 -0
  142. package/dist/types-ts4.5/view/InlineCard/styled.d.ts +1 -12
  143. package/hooks/package.json +3 -1
  144. package/hover-card/package.json +3 -1
  145. package/link-url/package.json +3 -1
  146. package/package.json +14 -4
  147. package/ssr/package.json +3 -1
  148. package/types/package.json +3 -1
@@ -1,5 +1,18 @@
1
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
- import styled from '@emotion/styled';
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
- 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";
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
- 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";
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 = 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);
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
- 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);
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
- 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)")
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
- 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)")
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
- export var RightIconPositionWrapper = styled.span({
59
- marginLeft: "var(--ds-space-025, 2px)",
60
- position: 'relative',
61
- display: 'inline-block'
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
- export var IconPositionWrapper = styled.span({
69
- marginRight: "var(--ds-space-050, 4px)",
70
- position: 'relative',
71
- display: 'inline-block'
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
- export var IconEmptyWrapper = styled.span({
76
- width: '16px',
77
- height: '100%',
78
- display: 'inline-block',
79
- opacity: 0
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 = styled.span({});
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
+ }
@@ -6,11 +6,14 @@ import _inherits from "@babel/runtime/helpers/inherits";
6
6
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
7
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React from 'react';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import Spinner from '@atlaskit/spinner';
10
11
  import { Frame } from '../Frame';
11
12
  import { IconAndTitleLayout } from '../IconAndTitleLayout';
12
13
  import { IconTitleWrapper, RightIconPositionWrapper } from '../IconAndTitleLayout/styled';
14
+ import { IconTitleWrapper as IconTitleWrapperOld, RightIconPositionWrapper as RightIconPositionWrapperOld } from '../IconAndTitleLayout/styled-emotion';
13
15
  import { SpinnerWrapper } from './styled';
16
+ import { SpinnerWrapper as SpinnerWrapperOld } from './styled-emotion';
14
17
  export var InlineCardResolvingView = /*#__PURE__*/function (_React$Component) {
15
18
  function InlineCardResolvingView() {
16
19
  _classCallCheck(this, InlineCardResolvingView);
@@ -30,18 +33,33 @@ export var InlineCardResolvingView = /*#__PURE__*/function (_React$Component) {
30
33
  titleTextColor = _this$props.titleTextColor,
31
34
  resolvingPlaceholder = _this$props.resolvingPlaceholder,
32
35
  truncateInline = _this$props.truncateInline;
36
+ var SpinnerWrapperComponent = fg('bandicoots-compiled-migration-smartcard') ? SpinnerWrapper : SpinnerWrapperOld;
33
37
  if (inlinePreloaderStyle === 'on-right-without-skeleton') {
34
- return /*#__PURE__*/React.createElement(Frame, {
35
- withoutBackground: true,
36
- testId: testId,
37
- onClick: onClick,
38
- isSelected: isSelected,
39
- truncateInline: truncateInline
40
- }, /*#__PURE__*/React.createElement(IconTitleWrapper, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapper, null, /*#__PURE__*/React.createElement(SpinnerWrapper, {
41
- className: "inline-resolving-spinner"
42
- }, /*#__PURE__*/React.createElement(Spinner, {
43
- size: 14
44
- })))));
38
+ if (fg('bandicoots-compiled-migration-smartcard')) {
39
+ return /*#__PURE__*/React.createElement(Frame, {
40
+ withoutBackground: true,
41
+ testId: testId,
42
+ onClick: onClick,
43
+ isSelected: isSelected,
44
+ truncateInline: truncateInline
45
+ }, /*#__PURE__*/React.createElement(IconTitleWrapper, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapper, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
46
+ className: "inline-resolving-spinner"
47
+ }, /*#__PURE__*/React.createElement(Spinner, {
48
+ size: 14
49
+ })))));
50
+ } else {
51
+ return /*#__PURE__*/React.createElement(Frame, {
52
+ withoutBackground: true,
53
+ testId: testId,
54
+ onClick: onClick,
55
+ isSelected: isSelected,
56
+ truncateInline: truncateInline
57
+ }, /*#__PURE__*/React.createElement(IconTitleWrapperOld, null, url, /*#__PURE__*/React.createElement(RightIconPositionWrapperOld, null, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
58
+ className: "inline-resolving-spinner"
59
+ }, /*#__PURE__*/React.createElement(Spinner, {
60
+ size: 14
61
+ })))));
62
+ }
45
63
  } else {
46
64
  return /*#__PURE__*/React.createElement(Frame, {
47
65
  testId: testId,
@@ -52,7 +70,7 @@ export var InlineCardResolvingView = /*#__PURE__*/function (_React$Component) {
52
70
  }, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
53
71
  title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
54
72
  titleTextColor: titleTextColor
55
- }, /*#__PURE__*/React.createElement(SpinnerWrapper, {
73
+ }, /*#__PURE__*/React.createElement(SpinnerWrapperComponent, {
56
74
  className: "inline-resolving-spinner"
57
75
  }, /*#__PURE__*/React.createElement(Spinner, {
58
76
  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 var SpinnerWrapper = styled(IconTitleWrapper)({
7
+ verticalAlign: 'text-bottom',
8
+ padding: '0px'
9
+ });
@@ -0,0 +1,5 @@
1
+ ._19bvidpf{padding-left:0}
2
+ ._ca0qidpf{padding-top:0}
3
+ ._n3tdidpf{padding-bottom:0}
4
+ ._s7n41ndm{vertical-align:text-bottom}
5
+ ._u5f3idpf{padding-right:0}
@@ -1,9 +1,25 @@
1
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
- import styled from '@emotion/styled';
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
+ import "./styled.compiled.css";
6
+ import { forwardRef } from 'react';
7
+ import * as React from 'react';
8
+ import { ax, ix } from "@compiled/react/runtime";
3
9
  import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
4
10
 
5
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
6
- export var SpinnerWrapper = styled(IconTitleWrapper)({
7
- verticalAlign: 'text-bottom',
8
- padding: '0px'
9
- });
12
+ export var SpinnerWrapper = forwardRef(function (_ref, __cmplr) {
13
+ var _ref$as = _ref.as,
14
+ C = _ref$as === void 0 ? IconTitleWrapper : _ref$as,
15
+ __cmpls = _ref.style,
16
+ __cmplp = _objectWithoutProperties(_ref, _excluded);
17
+ return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
18
+ style: __cmpls,
19
+ ref: __cmplr,
20
+ className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _s7n41ndm", __cmplp.className])
21
+ }));
22
+ });
23
+ if (process.env.NODE_ENV !== 'production') {
24
+ SpinnerWrapper.displayName = 'SpinnerWrapper';
25
+ }
@@ -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
- var FallbackUnauthorizedIcon = /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LockIcon, {
16
- label: "error",
17
- size: "small",
18
- primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
19
- }));
18
+ var fallbackUnauthorizedIcon = function 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, ".concat(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, ".concat(R400, ")")
30
+ }));
31
+ }
32
+ };
20
33
  export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref) {
21
34
  var url = _ref.url,
22
35
  id = _ref.id,
@@ -43,16 +56,29 @@ export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref
43
56
  }, [fireEvent, onAuthorise]);
44
57
  var renderActionButton = React.useCallback(function () {
45
58
  var ActionButton = withFrameStyleControl(Button, frameRef);
46
- return onAuthorise ? /*#__PURE__*/React.createElement(ActionButton, {
47
- spacing: "none",
48
- component: IconStyledButton,
49
- onClick: handleConnectAccount,
50
- testId: "button-connect-account"
51
- }, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
52
- values: {
53
- context: context
54
- }
55
- }))) : undefined;
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: 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: context
79
+ }
80
+ }))) : undefined;
81
+ }
56
82
  }, [handleConnectAccount, onAuthorise, context]);
57
83
  var inlineCardUnauthenticatedView = /*#__PURE__*/React.createElement(Frame, {
58
84
  testId: testId,
@@ -60,7 +86,7 @@ export var InlineCardUnauthorizedView = function InlineCardUnauthorizedView(_ref
60
86
  ref: frameRef,
61
87
  truncateInline: truncateInline
62
88
  }, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
63
- icon: icon ? icon : FallbackUnauthorizedIcon,
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 var 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)".concat(" ", "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 var NoLinkAppearance = styled.span({
37
+ color: "var(--ds-text-subtlest, ".concat(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 var LinkAppearance = styled.a({
43
+ color: "var(--ds-link, ".concat(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,25 @@
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';
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
+ import "./styled.compiled.css";
6
+ import { forwardRef } from 'react';
7
+ import * as React from 'react';
8
+ import { ax, ix } from "@compiled/react/runtime";
4
9
  // By default buttons will hide overflow and ellipsis content instead of wrapping.
5
10
  // This basically turns the button back into inline content
6
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
7
- export var 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)".concat(" ", "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
- }
12
+ export var IconStyledButton = forwardRef(function (_ref, __cmplr) {
13
+ var _ref$as = _ref.as,
14
+ C = _ref$as === void 0 ? "span" : _ref$as,
15
+ __cmpls = _ref.style,
16
+ __cmplp = _objectWithoutProperties(_ref, _excluded);
17
+ return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
18
+ style: __cmpls,
19
+ ref: __cmplr,
20
+ 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])
21
+ }));
33
22
  });
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 var NoLinkAppearance = styled.span({
37
- color: "var(--ds-text-subtlest, ".concat(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 var LinkAppearance = styled.a({
43
- color: "var(--ds-link, ".concat(B400, ")"),
44
- '&:hover': {
45
- textDecoration: 'none'
46
- }
47
- });
23
+ if (process.env.NODE_ENV !== 'production') {
24
+ IconStyledButton.displayName = 'IconStyledButton';
25
+ }
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
13
13
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
14
14
  var PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/smart-card",
16
- packageVersion: "33.3.0",
16
+ packageVersion: "34.0.0",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -1,4 +1,4 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import { type HoverCardComponentProps } from '../types';
3
3
  export declare const HOVER_CARD_SOURCE = "smartLinkPreviewHoverCard";
4
- export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, }: HoverCardComponentProps) => jsx.JSX.Element;
4
+ export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, role, label, titleId, }: HoverCardComponentProps) => jsx.JSX.Element;
@@ -42,6 +42,21 @@ export interface HoverCardProps extends WithAnalyticsEventsProps {
42
42
  * Additional configurations for hover card.
43
43
  */
44
44
  hoverPreviewOptions?: HoverPreviewOptions;
45
+ /**
46
+ * Use this to set the accessibility role for the hover card.
47
+ * Should be used along with `label` or `titleId` for supported roles.
48
+ */
49
+ role?: string;
50
+ /**
51
+ * Refers to an `aria-label` attribute. Sets an accessible name for the hover card to announce it to users of assistive technology.
52
+ * Usage of either this, or the `titleId` attribute is strongly recommended.
53
+ */
54
+ label?: string;
55
+ /**
56
+ * Id referenced by the hover card `aria-labelledby` attribute.
57
+ * Usage of either this, or the `label` attribute is strongly recommended.
58
+ */
59
+ titleId?: string;
45
60
  }
46
61
  /**
47
62
  * An internal props that internal smart-card components can use to configure
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ export interface WrapperProps {
3
+ href?: string;
4
+ isSelected?: boolean;
5
+ isInteractive?: boolean;
6
+ withoutBackground?: boolean;
7
+ isHovered?: boolean;
8
+ truncateInline?: boolean;
9
+ }
10
+ export declare const WrapperAnchor: import("@emotion/styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & WrapperProps, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
14
+ export declare const WrapperSpan: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
+ } & WrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;