@atlaskit/smart-card 34.2.2 → 34.4.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 (193) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/utils/index.js +201 -263
  4. package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +8 -13
  5. package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +5 -8
  6. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
  7. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +33 -18
  8. package/dist/cjs/view/FlexibleCard/components/blocks/block/indexOld.js +56 -0
  9. package/dist/cjs/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.js +115 -0
  10. package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.compiled.css +46 -0
  11. package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +58 -81
  12. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
  13. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/indexOld.js +37 -0
  14. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
  15. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +18 -52
  16. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +104 -0
  17. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.js +135 -0
  18. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.js +108 -0
  19. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +10 -57
  20. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.compiled.css +2 -0
  21. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +38 -37
  22. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.js +58 -0
  23. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -0
  24. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +24 -16
  25. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +48 -0
  26. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +55 -0
  27. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +23 -19
  28. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +14 -9
  29. package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +4 -9
  30. package/dist/cjs/view/LinkUrl/index.js +1 -1
  31. package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +15 -14
  32. package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.js +63 -0
  33. package/dist/cjs/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.js +61 -0
  34. package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +20 -19
  35. package/dist/cjs/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.js +51 -0
  36. package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +24 -24
  37. package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.js +66 -0
  38. package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/index.compiled.css +6 -0
  39. package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/index.js +31 -25
  40. package/dist/cjs/view/RelatedLinksModal/views/resolved/ResolvedOld.js +45 -0
  41. package/dist/cjs/view/RelatedLinksModal/views/resolved/index.js +16 -14
  42. package/dist/cjs/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.js +141 -0
  43. package/dist/cjs/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.compiled.css +6 -0
  44. package/dist/cjs/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +56 -50
  45. package/dist/es2019/utils/analytics/analytics.js +1 -1
  46. package/dist/es2019/utils/index.js +69 -55
  47. package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +1 -3
  48. package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -4
  49. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
  50. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +32 -35
  51. package/dist/es2019/view/FlexibleCard/components/blocks/block/indexOld.js +62 -0
  52. package/dist/es2019/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.js +113 -0
  53. package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.compiled.css +46 -0
  54. package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +60 -95
  55. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
  56. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/indexOld.js +28 -0
  57. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
  58. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +14 -62
  59. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +106 -0
  60. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.js +118 -0
  61. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.js +102 -0
  62. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +11 -57
  63. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.compiled.css +2 -0
  64. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +35 -36
  65. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.js +50 -0
  66. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -0
  67. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.js +15 -11
  68. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +42 -0
  69. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +55 -0
  70. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +20 -18
  71. package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +9 -2
  72. package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -3
  73. package/dist/es2019/view/LinkUrl/index.js +1 -1
  74. package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +15 -14
  75. package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.js +55 -0
  76. package/dist/es2019/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.js +55 -0
  77. package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +19 -18
  78. package/dist/es2019/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.js +42 -0
  79. package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +23 -22
  80. package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.js +58 -0
  81. package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/index.compiled.css +6 -0
  82. package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/index.js +28 -24
  83. package/dist/es2019/view/RelatedLinksModal/views/resolved/ResolvedOld.js +36 -0
  84. package/dist/es2019/view/RelatedLinksModal/views/resolved/index.js +16 -13
  85. package/dist/es2019/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.js +133 -0
  86. package/dist/es2019/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.compiled.css +6 -0
  87. package/dist/es2019/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +53 -49
  88. package/dist/esm/utils/analytics/analytics.js +1 -1
  89. package/dist/esm/utils/index.js +116 -162
  90. package/dist/esm/view/FlexibleCard/components/actions/action/index.js +1 -3
  91. package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -4
  92. package/dist/esm/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
  93. package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +31 -20
  94. package/dist/esm/view/FlexibleCard/components/blocks/block/indexOld.js +50 -0
  95. package/dist/esm/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.js +108 -0
  96. package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.compiled.css +46 -0
  97. package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +54 -79
  98. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
  99. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/indexOld.js +30 -0
  100. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
  101. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +15 -53
  102. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +98 -0
  103. package/dist/esm/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.js +127 -0
  104. package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.js +101 -0
  105. package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +11 -56
  106. package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.compiled.css +2 -0
  107. package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +36 -37
  108. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.js +53 -0
  109. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -0
  110. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.js +15 -11
  111. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +42 -0
  112. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +55 -0
  113. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +20 -18
  114. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +14 -9
  115. package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -3
  116. package/dist/esm/view/LinkUrl/index.js +1 -1
  117. package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +15 -14
  118. package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.js +53 -0
  119. package/dist/esm/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.js +54 -0
  120. package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +19 -18
  121. package/dist/esm/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.js +43 -0
  122. package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +24 -23
  123. package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.js +58 -0
  124. package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/index.compiled.css +6 -0
  125. package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/index.js +28 -24
  126. package/dist/esm/view/RelatedLinksModal/views/resolved/ResolvedOld.js +37 -0
  127. package/dist/esm/view/RelatedLinksModal/views/resolved/index.js +16 -13
  128. package/dist/esm/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.js +133 -0
  129. package/dist/esm/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.compiled.css +6 -0
  130. package/dist/esm/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +53 -49
  131. package/dist/types/utils/index.d.ts +2 -0
  132. package/dist/types/view/FlexibleCard/components/blocks/block/index.d.ts +3 -10
  133. package/dist/types/view/FlexibleCard/components/blocks/block/indexOld.d.ts +11 -0
  134. package/dist/types/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.d.ts +17 -0
  135. package/dist/types/view/FlexibleCard/components/blocks/element-group/index.d.ts +5 -9
  136. package/dist/types/view/FlexibleCard/components/blocks/element-group/types.d.ts +1 -0
  137. package/dist/types/view/FlexibleCard/components/blocks/preview-block/index.d.ts +3 -13
  138. package/dist/types/view/FlexibleCard/components/blocks/preview-block/indexOld.d.ts +14 -0
  139. package/dist/types/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts +2 -2
  140. package/dist/types/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.d.ts +10 -0
  141. package/dist/types/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.d.ts +16 -0
  142. package/dist/types/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.d.ts +15 -0
  143. package/dist/types/view/FlexibleCard/components/blocks/title-block/errored/index.d.ts +5 -7
  144. package/dist/types/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -13
  145. package/dist/types/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.d.ts +9 -0
  146. package/dist/types/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +8 -2
  147. package/dist/types/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.d.ts +14 -0
  148. package/dist/types/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +5 -3
  149. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +2 -0
  150. package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +3 -7
  151. package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.d.ts +8 -0
  152. package/dist/types/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.d.ts +8 -0
  153. package/dist/types/view/RelatedLinksModal/components/related-link-item/index.d.ts +3 -7
  154. package/dist/types/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.d.ts +8 -0
  155. package/dist/types/view/RelatedLinksModal/components/related-links-list/index.d.ts +3 -7
  156. package/dist/types/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.d.ts +6 -0
  157. package/dist/types/view/RelatedLinksModal/views/errored/error-svg/index.d.ts +2 -6
  158. package/dist/types/view/RelatedLinksModal/views/resolved/ResolvedOld.d.ts +8 -0
  159. package/dist/types/view/RelatedLinksModal/views/resolved/index.d.ts +3 -7
  160. package/dist/types/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.d.ts +6 -0
  161. package/dist/types/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.d.ts +2 -6
  162. package/dist/types-ts4.5/utils/index.d.ts +2 -0
  163. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/block/index.d.ts +3 -10
  164. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/block/indexOld.d.ts +11 -0
  165. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.d.ts +17 -0
  166. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/index.d.ts +5 -9
  167. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/types.d.ts +1 -0
  168. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/index.d.ts +3 -13
  169. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/indexOld.d.ts +14 -0
  170. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts +2 -2
  171. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.d.ts +10 -0
  172. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.d.ts +16 -0
  173. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.d.ts +15 -0
  174. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/errored/index.d.ts +5 -7
  175. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -13
  176. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.d.ts +9 -0
  177. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +8 -2
  178. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.d.ts +14 -0
  179. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +5 -3
  180. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +2 -0
  181. package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +3 -7
  182. package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.d.ts +8 -0
  183. package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.d.ts +8 -0
  184. package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/index.d.ts +3 -7
  185. package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.d.ts +8 -0
  186. package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/index.d.ts +3 -7
  187. package/dist/types-ts4.5/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.d.ts +6 -0
  188. package/dist/types-ts4.5/view/RelatedLinksModal/views/errored/error-svg/index.d.ts +2 -6
  189. package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/ResolvedOld.d.ts +8 -0
  190. package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/index.d.ts +3 -7
  191. package/dist/types-ts4.5/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.d.ts +6 -0
  192. package/dist/types-ts4.5/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.d.ts +2 -6
  193. package/package.json +4 -4
@@ -1,6 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
2
- import * as React from 'react';
3
- import { ax, ix } from "@compiled/react/runtime";
1
+ import React from 'react';
4
2
  import { fg } from '@atlaskit/platform-feature-flags';
5
3
  import { SmartLinkSize } from '../../../../../constants';
6
4
  import ActionButton from './action-button';
@@ -1,8 +1,5 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
2
1
  import _extends from "@babel/runtime/helpers/extends";
3
- import * as React from 'react';
4
- import { ax, ix } from "@compiled/react/runtime";
5
- import { lazy, useCallback } from 'react';
2
+ import React, { lazy, useCallback } from 'react';
6
3
  import { FormattedMessage } from 'react-intl-next';
7
4
  import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
8
5
  import { messages } from '../../../../../messages';
@@ -0,0 +1,34 @@
1
+
2
+ ._zulp1j6v{gap:1rem}
3
+ ._zulp1k92{gap:1.25rem}
4
+ ._zulp1kwk{gap:.5rem}
5
+ ._zulp6mu8{gap:.25rem}._12ji1kw7{outline-color:inherit}
6
+ ._12ji1snc{outline-color:currentColor!important}
7
+ ._12y310yn{outline-width:medium!important}
8
+ ._181uglyw{-webkit-user-select:none}
9
+ ._18m915vq{overflow-y:hidden}
10
+ ._18ql1j28{-webkit-tap-highlight-color:transparent}
11
+ ._1bah1y6m{justify-content:flex-start}
12
+ ._1e0c1txw{display:flex}
13
+ ._1ifmglyw{-webkit-touch-callout:none}
14
+ ._1ljq1j6v [data-separator]+[data-separator]:before{margin-right:1rem}
15
+ ._1ljq1k92 [data-separator]+[data-separator]:before{margin-right:1.25rem}
16
+ ._1ljq1kwk [data-separator]+[data-separator]:before{margin-right:.5rem}
17
+ ._1ljq6mu8 [data-separator]+[data-separator]:before{margin-right:.25rem}
18
+ ._1ouwidpf>*{min-width:0}
19
+ ._1qu2agmp{outline-style:none!important}
20
+ ._1reo15vq{overflow-x:hidden}
21
+ ._1rkwglyw{-moz-user-select:none}
22
+ ._1ul9idpf{min-width:0}
23
+ ._1uzp1mp2 [data-separator]+[data-separator]:before{content:"•"}
24
+ ._2lx21bp4{flex-direction:column}
25
+ ._2lx2vrvc{flex-direction:row}
26
+ ._4cvr1h6o{align-items:center}
27
+ ._4cvr1y6m{align-items:flex-start}
28
+ ._a7e8uxlv [data-smart-element=TargetBranch]+[data-smart-element=SourceBranch]:before{content:"←"}
29
+ ._f6ju1ns9>[data-fit-to-content]{min-width:-moz-fit-content;min-width:fit-content}
30
+ ._fiawglyw:empty{display:none}
31
+ ._syaz1kw7{color:inherit}
32
+ ._te17glyw{-ms-user-select:none}
33
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
34
+ ._ytq1bjq5 [data-smart-element=SourceBranch]+[data-smart-element=TargetBranch]:before{content:"→"}
@@ -1,34 +1,24 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useEffect } from 'react';
6
-
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
9
- import { ElementName, SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
10
- import { getBaseStyles, getGapSize, highlightRemoveStyles, renderChildren } from '../utils';
11
- const getBlockStyles = (direction, size
12
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
13
- ) => css`
14
- ${getBaseStyles(direction, size)}
15
- ${highlightRemoveStyles}
16
- justify-content: flex-start;
17
- [data-separator] + [data-separator]:before {
18
- content: '•';
19
- margin-right: ${getGapSize(size)}rem;
20
- }
21
- // Pull request elements: source branch → target branch
22
- [data-smart-element='${ElementName.SourceBranch}']
23
- + [data-smart-element='${ElementName.TargetBranch}']:before {
24
- content: '→';
25
- }
26
- // Pull request elements: target branch ← source branch
27
- [data-smart-element='${ElementName.TargetBranch}']
28
- + [data-smart-element='${ElementName.SourceBranch}']:before {
29
- content: '←';
30
- }
31
- `;
6
+ import { fg } from '@atlaskit/platform-feature-flags';
7
+ import { SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
8
+ import { renderChildren } from '../utils';
9
+ import BlockOld from './indexOld';
10
+ const BaseBlockStyles = null;
11
+ const highlightRemoveStyles = null;
12
+ const gapsStyles = {
13
+ xlarge: "_zulp1k92 _1ljq1k92",
14
+ large: "_zulp1j6v _1ljq1j6v",
15
+ medium: "_zulp1kwk _1ljq1kwk",
16
+ small: "_zulp6mu8 _1ljq6mu8"
17
+ };
18
+ const directionStyles = {
19
+ vertical: "_2lx21bp4 _4cvr1y6m",
20
+ horizontal: "_2lx2vrvc _4cvr1h6o"
21
+ };
32
22
 
33
23
  /**
34
24
  * A block represents a collection of elements and actions that are arranged
@@ -42,7 +32,7 @@ const Block = ({
42
32
  direction = SmartLinkDirection.Horizontal,
43
33
  size = SmartLinkSize.Medium,
44
34
  testId = 'smart-block',
45
- overrideCss,
35
+ className,
46
36
  blockRef,
47
37
  onRender,
48
38
  onTransitionEnd
@@ -50,13 +40,20 @@ const Block = ({
50
40
  useEffect(() => {
51
41
  onRender && onRender();
52
42
  }, [onRender]);
53
- return jsx("div", {
54
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
55
- css: [getBlockStyles(direction, size), overrideCss],
43
+ return /*#__PURE__*/React.createElement("div", {
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
45
+ className: ax(["_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _1bah1y6m _fiawglyw _1ouwidpf _f6ju1ns9 _1uzp1mp2 _ytq1bjq5 _a7e8uxlv", "_12ji1snc _1qu2agmp _12y310yn _12ji1kw7 _syaz1kw7 _18ql1j28 _1ifmglyw _181uglyw _1rkwglyw _te17glyw _uiztglyw", directionStyles[direction], gapsStyles[size], className]),
56
46
  "data-smart-block": true,
57
47
  "data-testid": testId,
58
48
  onTransitionEnd: onTransitionEnd,
59
49
  ref: blockRef
60
50
  }, renderChildren(children, size));
61
51
  };
62
- export default Block;
52
+ const Exported = props => {
53
+ if (fg('bandicoots-compiled-migration-smartcard')) {
54
+ return /*#__PURE__*/React.createElement(Block, props);
55
+ } else {
56
+ return /*#__PURE__*/React.createElement(BlockOld, props);
57
+ }
58
+ };
59
+ export default Exported;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { useEffect } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ import { css, jsx } from '@emotion/react';
9
+ import { ElementName, SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
10
+ import { getBaseStyles, getGapSize, highlightRemoveStyles, renderChildren } from '../utils';
11
+ const getBlockStyles = (direction, size
12
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
13
+ ) => css`
14
+ ${getBaseStyles(direction, size)}
15
+ ${highlightRemoveStyles}
16
+ justify-content: flex-start;
17
+ [data-separator] + [data-separator]:before {
18
+ content: '•';
19
+ margin-right: ${getGapSize(size)}rem;
20
+ }
21
+ // Pull request elements: source branch → target branch
22
+ [data-smart-element='${ElementName.SourceBranch}']
23
+ + [data-smart-element='${ElementName.TargetBranch}']:before {
24
+ content: '→';
25
+ }
26
+ // Pull request elements: target branch ← source branch
27
+ [data-smart-element='${ElementName.TargetBranch}']
28
+ + [data-smart-element='${ElementName.SourceBranch}']:before {
29
+ content: '←';
30
+ }
31
+ `;
32
+
33
+ /**
34
+ * A block represents a collection of elements and actions that are arranged
35
+ * in a row. All elements and actions should be contained within a Block.
36
+ * @internal
37
+ * @param {ActionGroupProps} ActionGroupProps
38
+ * @see Action
39
+ */
40
+ const Block = ({
41
+ children,
42
+ direction = SmartLinkDirection.Horizontal,
43
+ size = SmartLinkSize.Medium,
44
+ testId = 'smart-block',
45
+ overrideCss,
46
+ blockRef,
47
+ onRender,
48
+ onTransitionEnd
49
+ }) => {
50
+ useEffect(() => {
51
+ onRender && onRender();
52
+ }, [onRender]);
53
+ return jsx("div", {
54
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
55
+ css: [getBlockStyles(direction, size), overrideCss],
56
+ "data-smart-block": true,
57
+ "data-testid": testId,
58
+ onTransitionEnd: onTransitionEnd,
59
+ ref: blockRef
60
+ }, renderChildren(children, size));
61
+ };
62
+ export default Block;
@@ -0,0 +1,113 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ import { css, jsx } from '@emotion/react';
7
+ import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
8
+ import { getMaxLineHeight, getTruncateStyles } from '../../utils';
9
+ import { getBaseStyles, getGapSize, renderChildren } from '../utils';
10
+ const getAlignmentStyles = align => {
11
+ switch (align) {
12
+ case SmartLinkAlignment.Right:
13
+ return css({
14
+ WebkitBoxAlign: 'end',
15
+ MsFlexAlign: 'end',
16
+ justifyContent: 'flex-end',
17
+ textAlign: 'right'
18
+ });
19
+ case SmartLinkAlignment.Left:
20
+ default:
21
+ return css({
22
+ WebkitBoxAlign: 'start',
23
+ MsFlexAlign: 'start',
24
+ justifyContent: 'flex-start',
25
+ textAlign: 'left'
26
+ });
27
+ }
28
+ };
29
+ const getGapStyles = (size, align) => {
30
+ const gap = getGapSize(size);
31
+ if (align === SmartLinkAlignment.Right) {
32
+ return css({
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
34
+ '> span': {
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
36
+ marginLeft: `${gap}rem`
37
+ },
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
39
+ '> span:first-child': {
40
+ marginLeft: 'initial'
41
+ }
42
+ });
43
+ }
44
+ return css({
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
46
+ '> span': {
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
48
+ marginRight: `${gap}rem`,
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
50
+ '&:last-child': {
51
+ marginRight: 'initial'
52
+ }
53
+ }
54
+ });
55
+ };
56
+ const getHorizontalDirectionStyles = (size, align) => {
57
+ const lineHeight = getMaxLineHeight(size);
58
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
59
+ return css`
60
+ display: block;
61
+ vertical-align: middle;
62
+ ${getTruncateStyles(1, lineHeight + 'rem')}
63
+
64
+ > span, > div {
65
+ vertical-align: middle;
66
+
67
+ &[data-smart-element-date-time],
68
+ &[data-smart-element-text] {
69
+ // Show all/wrapped/truncated
70
+ display: inline;
71
+ }
72
+ }
73
+
74
+ ${getGapStyles(size, align)}
75
+ `;
76
+ };
77
+ export const getElementGroupStyles = (direction, size, align, width, position) => css(
78
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
79
+ getBaseStyles(direction, size),
80
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
81
+ getAlignmentStyles(align), {
82
+ minWidth: '10%'
83
+ },
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
85
+ width === SmartLinkWidth.Flexible ? `flex: 1 3;` : '',
86
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
87
+ direction === SmartLinkDirection.Horizontal ? getHorizontalDirectionStyles(size, align) : '',
88
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
89
+ position === SmartLinkPosition.Top ? 'align-self: flex-start;' : '');
90
+
91
+ /**
92
+ * Creates a group of Action components. Accepts an array of Actions, in addition to some styling
93
+ * preferences.
94
+ * @internal
95
+ * @param {ActionGroupProps} ActionGroupProps
96
+ * @see Action
97
+ */
98
+ const ElementGroup = ({
99
+ align = SmartLinkAlignment.Left,
100
+ children,
101
+ overrideCss,
102
+ direction = SmartLinkDirection.Horizontal,
103
+ size = SmartLinkSize.Medium,
104
+ testId = 'smart-element-group',
105
+ width = SmartLinkWidth.FitToContent,
106
+ position = SmartLinkPosition.Center
107
+ }) => jsx("div", {
108
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
109
+ css: [getElementGroupStyles(direction, size, align, width, position), overrideCss],
110
+ "data-smart-element-group": true,
111
+ "data-testid": testId
112
+ }, renderChildren(children, size));
113
+ export default ElementGroup;
@@ -0,0 +1,46 @@
1
+
2
+ ._zulp147b{gap:var(--ds-space-250,1.25rem)}
3
+ ._zulp1e9d{gap:var(--ds-space-200,1rem)}
4
+ ._zulpcxkx{gap:var(--ds-space-100,.5rem)}
5
+ ._zulppdf9{gap:var(--ds-space-050,.25rem)}._16jlkb7n{flex-grow:1}
6
+ ._18m915vq{overflow-y:hidden}
7
+ ._1aaynkob >div, ._15tynkob >span{vertical-align:middle}
8
+ ._1bah1y6m{justify-content:flex-start}
9
+ ._1bahesu3{justify-content:flex-end}
10
+ ._1bto1l2s{text-overflow:ellipsis}
11
+ ._1dthh9n0{-webkit-box-align:end}
12
+ ._1dthv2br{-webkit-box-align:start}
13
+ ._1e0c1txw{display:flex}
14
+ ._1e0c1ule{display:block}
15
+ ._1iu61nu9 >div[data-smart-element-date-time], ._166k1nu9 >div[data-smart-element-text], ._1div1nu9 >span[data-smart-element-date-time], ._bmfb1nu9 >span[data-smart-element-text]{display:inline}
16
+ ._1nmz1hna{word-break:break-word}
17
+ ._1o9z11wp{flex-shrink:3}
18
+ ._1ouwidpf>*{min-width:0}
19
+ ._1reo15vq{overflow-x:hidden}
20
+ ._1ul99by0{min-width:10%}
21
+ ._1ul9idpf{min-width:0}
22
+ ._1wpz1y6m{align-self:flex-start}
23
+ ._1yyjkb7n{-webkit-line-clamp:1}
24
+ ._24rc147b >span{margin-left:var(--ds-space-250,1.25rem)}
25
+ ._24rc1e9d >span{margin-left:var(--ds-space-200,1rem)}
26
+ ._24rccxkx >span{margin-left:var(--ds-space-100,.5rem)}
27
+ ._24rcpdf9 >span{margin-left:var(--ds-space-050,.25rem)}
28
+ ._2lx21bp4{flex-direction:column}
29
+ ._2lx2vrvc{flex-direction:row}
30
+ ._3dveidpf >span:first-of-type{margin-left:0}
31
+ ._4cvr1h6o{align-items:center}
32
+ ._4cvr1y6m{align-items:flex-start}
33
+ ._7yhb147b >span{margin-right:var(--ds-space-250,1.25rem)}
34
+ ._7yhb1e9d >span{margin-right:var(--ds-space-200,1rem)}
35
+ ._7yhbcxkx >span{margin-right:var(--ds-space-100,.5rem)}
36
+ ._7yhbpdf9 >span{margin-right:var(--ds-space-050,.25rem)}
37
+ ._f6ju1ns9>[data-fit-to-content]{min-width:-moz-fit-content;min-width:fit-content}
38
+ ._fiawglyw:empty{display:none}
39
+ ._i0dlf1ug{flex-basis:0%}
40
+ ._m6ukidpf >span:last-child{margin-right:0}
41
+ ._r291h9n0{-ms-flex-align:end}
42
+ ._r291v2br{-ms-flex-align:start}
43
+ ._s7n4nkob{vertical-align:middle}
44
+ ._sudp1e54{-webkit-box-orient:vertical}
45
+ ._y3gn1e5h{text-align:left}
46
+ ._y3gnusic{text-align:right}
@@ -1,92 +1,52 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import { css, jsx } from '@emotion/react';
1
+ /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
7
5
  import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
8
- import { getMaxLineHeight, getTruncateStyles } from '../../utils';
9
- import { getBaseStyles, getGapSize, renderChildren } from '../utils';
10
- const getAlignmentStyles = align => {
11
- switch (align) {
12
- case SmartLinkAlignment.Right:
13
- return css({
14
- WebkitBoxAlign: 'end',
15
- MsFlexAlign: 'end',
16
- justifyContent: 'flex-end',
17
- textAlign: 'right'
18
- });
19
- case SmartLinkAlignment.Left:
20
- default:
21
- return css({
22
- WebkitBoxAlign: 'start',
23
- MsFlexAlign: 'start',
24
- justifyContent: 'flex-start',
25
- textAlign: 'left'
26
- });
27
- }
6
+ import { renderChildren } from '../utils';
7
+ import ElementGroupOld from './ElementGroupOld';
8
+ const alignmentStyleMap = {
9
+ right: "_1dthh9n0 _r291h9n0 _1bahesu3 _y3gnusic",
10
+ left: "_1dthv2br _r291v2br _1bah1y6m _y3gn1e5h"
28
11
  };
29
- const getGapStyles = (size, align) => {
30
- const gap = getGapSize(size);
31
- if (align === SmartLinkAlignment.Right) {
32
- return css({
33
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
34
- '> span': {
35
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
36
- marginLeft: `${gap}rem`
37
- },
38
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
39
- '> span:first-child': {
40
- marginLeft: 'initial'
41
- }
42
- });
43
- }
44
- return css({
45
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
46
- '> span': {
47
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
48
- marginRight: `${gap}rem`,
49
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
50
- '&:last-child': {
51
- marginRight: 'initial'
52
- }
53
- }
54
- });
12
+ const baseStyleBySize = {
13
+ xlarge: "_zulp147b _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf",
14
+ large: "_zulp1e9d _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf",
15
+ medium: "_zulpcxkx _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf",
16
+ small: "_zulppdf9 _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf"
55
17
  };
56
- const getHorizontalDirectionStyles = (size, align) => {
57
- const lineHeight = getMaxLineHeight(size);
58
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
59
- return css`
60
- display: block;
61
- vertical-align: middle;
62
- ${getTruncateStyles(1, lineHeight + 'rem')}
63
-
64
- > span, > div {
65
- vertical-align: middle;
66
-
67
- &[data-smart-element-date-time],
68
- &[data-smart-element-text] {
69
- // Show all/wrapped/truncated
70
- display: inline;
71
- }
72
- }
73
-
74
- ${getGapStyles(size, align)}
75
- `;
18
+ const baseStyleByDirection = {
19
+ horizontal: "_2lx2vrvc _4cvr1h6o",
20
+ vertical: "_2lx21bp4 _4cvr1y6m"
21
+ };
22
+ const baseStyle = null;
23
+ const widthStyle = {
24
+ flexible: "_16jlkb7n _1o9z11wp _i0dlf1ug",
25
+ 'fit-to-content': ""
26
+ };
27
+ const positionStyle = {
28
+ top: "_1wpz1y6m",
29
+ center: ""
30
+ };
31
+ const horizontalStyleBase = null;
32
+ const horizontalStyleByHeight = {
33
+ 'xlarge': "_1e0ccj1k _102k1m1q",
34
+ 'large': "_1e0ccj1k _102k1m1q",
35
+ 'medium': "_1e0ccj1k _102k1k8s",
36
+ 'small': "_1e0ccj1k _102k1k8s"
37
+ };
38
+ const gapStylesLeft = {
39
+ 'xlarge': "_7yhb147b _m6ukidpf",
40
+ 'large': "_7yhb1e9d _m6ukidpf",
41
+ 'medium': "_7yhbcxkx _m6ukidpf",
42
+ 'small': "_7yhbpdf9 _m6ukidpf"
43
+ };
44
+ const gapStylesRight = {
45
+ 'xlarge': "_24rc147b _3dveidpf",
46
+ 'large': "_24rc1e9d _3dveidpf",
47
+ 'medium': "_24rccxkx _3dveidpf",
48
+ 'small': "_24rcpdf9 _3dveidpf"
76
49
  };
77
- export const getElementGroupStyles = (direction, size, align, width, position) => css(
78
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
79
- getBaseStyles(direction, size),
80
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
81
- getAlignmentStyles(align), {
82
- minWidth: '10%'
83
- },
84
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
85
- width === SmartLinkWidth.Flexible ? `flex: 1 3;` : '',
86
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
87
- direction === SmartLinkDirection.Horizontal ? getHorizontalDirectionStyles(size, align) : '',
88
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
89
- position === SmartLinkPosition.Top ? 'align-self: flex-start;' : '');
90
50
 
91
51
  /**
92
52
  * Creates a group of Action components. Accepts an array of Actions, in addition to some styling
@@ -95,19 +55,24 @@ position === SmartLinkPosition.Top ? 'align-self: flex-start;' : '');
95
55
  * @param {ActionGroupProps} ActionGroupProps
96
56
  * @see Action
97
57
  */
98
- const ElementGroup = ({
58
+ const ElementGroupNew = ({
99
59
  align = SmartLinkAlignment.Left,
100
60
  children,
101
- overrideCss,
102
61
  direction = SmartLinkDirection.Horizontal,
103
62
  size = SmartLinkSize.Medium,
104
63
  testId = 'smart-element-group',
105
64
  width = SmartLinkWidth.FitToContent,
106
- position = SmartLinkPosition.Center
107
- }) => jsx("div", {
108
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
109
- css: [getElementGroupStyles(direction, size, align, width, position), overrideCss],
110
- "data-smart-element-group": true,
111
- "data-testid": testId
112
- }, renderChildren(children, size));
113
- export default ElementGroup;
65
+ position = SmartLinkPosition.Center,
66
+ className
67
+ }) => {
68
+ const totalCss = [baseStyleBySize[size], baseStyleByDirection[direction], baseStyle, alignmentStyleMap[align], null, widthStyle[width], direction === SmartLinkDirection.Horizontal ? horizontalStyleBase : {}, direction === SmartLinkDirection.Horizontal ? horizontalStyleByHeight[size] : {}, direction === SmartLinkDirection.Horizontal ? SmartLinkAlignment.Left ? gapStylesLeft[size] : gapStylesRight[size] : {}, positionStyle[position]];
69
+ return /*#__PURE__*/React.createElement("div", {
70
+ "data-smart-element-group": true,
71
+ "data-testid": testId
72
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
73
+ ,
74
+ className: ax([baseStyleBySize[size], baseStyleByDirection[direction], "_fiawglyw _1ouwidpf _f6ju1ns9", alignmentStyleMap[align], "_1ul99by0", widthStyle[width], direction === SmartLinkDirection.Horizontal && "_1reo15vq _18m915vq _1e0c1ule _s7n4nkob _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _1aaynkob _15tynkob _1iu61nu9 _166k1nu9 _1div1nu9 _bmfb1nu9", direction === SmartLinkDirection.Horizontal && "", SmartLinkAlignment.Left ? gapStylesLeft[size] : gapStylesRight[size], positionStyle[position], className])
75
+ }, renderChildren(children, size));
76
+ };
77
+ export default ElementGroupOld;
78
+ export { ElementGroupNew };
@@ -1,11 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { jsx } from '@emotion/react';
2
+ import React from 'react';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
8
4
  import { SmartLinkStatus } from '../../../../../constants';
5
+ import PreviewBlockOld from './indexOld';
9
6
  import PreviewBlockResolvedView from './resolved';
10
7
  /**
11
8
  * Represents a PreviewBlock, which typically contains media or other large format content.
@@ -20,9 +17,16 @@ const PreviewBlock = ({
20
17
  overrideUrl,
21
18
  ...blockProps
22
19
  }) => {
23
- return jsx(PreviewBlockResolvedView, _extends({}, blockProps, {
20
+ return /*#__PURE__*/React.createElement(PreviewBlockResolvedView, _extends({}, blockProps, {
24
21
  testId: testId,
25
22
  overrideUrl: overrideUrl
26
23
  }));
27
24
  };
28
- export default PreviewBlock;
25
+ const Exported = props => {
26
+ if (fg('bandicoots-compiled-migration-smartcard')) {
27
+ return /*#__PURE__*/React.createElement(PreviewBlock, props);
28
+ } else {
29
+ return /*#__PURE__*/React.createElement(PreviewBlockOld, props);
30
+ }
31
+ };
32
+ export default Exported;
@@ -0,0 +1,28 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
+ import { jsx } from '@emotion/react';
8
+ import { SmartLinkStatus } from '../../../../../constants';
9
+ import PreviewBlockResolvedView from './resolved/indexOld';
10
+ /**
11
+ * Represents a PreviewBlock, which typically contains media or other large format content.
12
+ * @public
13
+ * @param {PreviewBlockProps} PreviewBlock
14
+ * @see Block
15
+ */
16
+ const PreviewBlock = ({
17
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
18
+ status = SmartLinkStatus.Fallback,
19
+ testId = 'smart-block-preview',
20
+ overrideUrl,
21
+ ...blockProps
22
+ }) => {
23
+ return jsx(PreviewBlockResolvedView, _extends({}, blockProps, {
24
+ testId: testId,
25
+ overrideUrl: overrideUrl
26
+ }));
27
+ };
28
+ export default PreviewBlock;
@@ -0,0 +1,15 @@
1
+ ._10aa1osq [data-smart-element-media=image]{width:100%}
2
+ ._154iidpf{top:0}
3
+ ._18u01ivi{margin-left:calc(var(--container-gap-left)*-1)}
4
+ ._1bsb795p{width:calc(var(--preview-block-width))}
5
+ ._1ltvidpf{left:0}
6
+ ._1t26n7od [data-smart-element-media=image]{aspect-ratio:unset}
7
+ ._1xi2idpf{right:0}
8
+ ._2hwxc10g{margin-right:calc(var(--container-gap-right)*-1)}
9
+ ._94n5idpf{bottom:0}
10
+ ._dmhj1ya9:last-of-type{margin-bottom:calc(var(--container-padding)*-1)}
11
+ ._e0oi1ya9:first-of-type{margin-top:calc(var(--container-padding)*-1)}
12
+ ._kqswstnw{position:absolute}
13
+ ._mr051dfr [data-smart-element-media=image]{object-fit:cover}
14
+ ._rjuj1osq [data-smart-element-media=image]{height:100%}
15
+ ._ze72n7od [data-smart-element-media=image]{padding-top:unset}