@atlaskit/smart-card 34.10.12 → 34.10.13

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 (149) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/FlexibleCard/components/actions/action/ActionOld.js +2 -2
  4. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +138 -5
  5. package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -1
  6. package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -4
  7. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +2 -0
  8. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +6 -4
  9. package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +2 -2
  10. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -0
  11. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +22 -0
  12. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  13. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +4 -1
  14. package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +5 -2
  15. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.compiled.css +14 -1
  16. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +14 -3
  17. package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.compiled.css +9 -10
  18. package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +24 -15
  19. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +13 -7
  20. package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -1
  21. package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +9 -3
  22. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
  23. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +4 -2
  24. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -1
  25. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -1
  26. package/dist/cjs/view/FlexibleCard/components/common/with-override-css/index.js +25 -0
  27. package/dist/cjs/view/FlexibleCard/components/container/index.js +5 -5
  28. package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.compiled.css +1 -0
  29. package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +6 -4
  30. package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.compiled.css +2 -1
  31. package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +9 -8
  32. package/dist/cjs/view/FlexibleCard/components/elements/badge/index.compiled.css +9 -0
  33. package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +78 -10
  34. package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.compiled.css +2 -1
  35. package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +1 -1
  36. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.compiled.css +1 -0
  37. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +5 -4
  38. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.compiled.css +1 -0
  39. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +6 -4
  40. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.compiled.css +1 -1
  41. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +2 -2
  42. package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.compiled.css +1 -0
  43. package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +1 -1
  44. package/dist/cjs/view/FlexibleCard/components/elements/text/index.compiled.css +1 -0
  45. package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +1 -1
  46. package/dist/cjs/view/LinkUrl/index.js +1 -1
  47. package/dist/cjs/view/common/ai-summary/index.js +1 -1
  48. package/dist/es2019/utils/analytics/analytics.js +1 -1
  49. package/dist/es2019/view/FlexibleCard/components/actions/action/ActionOld.js +2 -2
  50. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +127 -3
  51. package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -1
  52. package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -4
  53. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +2 -0
  54. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +6 -4
  55. package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +2 -2
  56. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -0
  57. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +22 -0
  58. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  59. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +5 -1
  60. package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +5 -2
  61. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.compiled.css +14 -1
  62. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +15 -3
  63. package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.compiled.css +9 -10
  64. package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +24 -15
  65. package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +13 -7
  66. package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -1
  67. package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +9 -3
  68. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
  69. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +4 -2
  70. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -1
  71. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -1
  72. package/dist/es2019/view/FlexibleCard/components/common/with-override-css/index.js +15 -0
  73. package/dist/es2019/view/FlexibleCard/components/container/index.js +5 -5
  74. package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.compiled.css +1 -0
  75. package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +7 -4
  76. package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.compiled.css +2 -1
  77. package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +11 -8
  78. package/dist/es2019/view/FlexibleCard/components/elements/badge/index.compiled.css +9 -0
  79. package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +75 -9
  80. package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.compiled.css +2 -1
  81. package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -1
  82. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.compiled.css +1 -0
  83. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +6 -4
  84. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.compiled.css +1 -0
  85. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +7 -4
  86. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.compiled.css +1 -1
  87. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +2 -2
  88. package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.compiled.css +1 -0
  89. package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +1 -1
  90. package/dist/es2019/view/FlexibleCard/components/elements/text/index.compiled.css +1 -0
  91. package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -1
  92. package/dist/es2019/view/LinkUrl/index.js +1 -1
  93. package/dist/es2019/view/common/ai-summary/index.js +1 -1
  94. package/dist/esm/utils/analytics/analytics.js +1 -1
  95. package/dist/esm/view/FlexibleCard/components/actions/action/ActionOld.js +2 -2
  96. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +139 -6
  97. package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -1
  98. package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -4
  99. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +2 -0
  100. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +6 -4
  101. package/dist/esm/view/FlexibleCard/components/actions/action/index.js +2 -2
  102. package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -0
  103. package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +22 -0
  104. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  105. package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +5 -1
  106. package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +5 -2
  107. package/dist/esm/view/FlexibleCard/components/blocks/block/index.compiled.css +14 -1
  108. package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +15 -3
  109. package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.compiled.css +9 -10
  110. package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +24 -15
  111. package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +13 -7
  112. package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -1
  113. package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +9 -3
  114. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
  115. package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +4 -2
  116. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -1
  117. package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -1
  118. package/dist/esm/view/FlexibleCard/components/common/with-override-css/index.js +15 -0
  119. package/dist/esm/view/FlexibleCard/components/container/index.js +5 -5
  120. package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.compiled.css +1 -0
  121. package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +6 -4
  122. package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.compiled.css +2 -1
  123. package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +9 -8
  124. package/dist/esm/view/FlexibleCard/components/elements/badge/index.compiled.css +9 -0
  125. package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +75 -10
  126. package/dist/esm/view/FlexibleCard/components/elements/date-time/index.compiled.css +2 -1
  127. package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +1 -1
  128. package/dist/esm/view/FlexibleCard/components/elements/icon/index.compiled.css +1 -0
  129. package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +5 -4
  130. package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.compiled.css +1 -0
  131. package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +6 -4
  132. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.compiled.css +1 -1
  133. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +2 -2
  134. package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.compiled.css +1 -0
  135. package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +1 -1
  136. package/dist/esm/view/FlexibleCard/components/elements/text/index.compiled.css +1 -0
  137. package/dist/esm/view/FlexibleCard/components/elements/text/index.js +1 -1
  138. package/dist/esm/view/LinkUrl/index.js +1 -1
  139. package/dist/esm/view/common/ai-summary/index.js +1 -1
  140. package/dist/types/view/FlexibleCard/components/actions/action/action-button/types.d.ts +3 -3
  141. package/dist/types/view/FlexibleCard/components/common/with-override-css/index.d.ts +6 -0
  142. package/dist/types/view/FlexibleCard/components/elements/badge/types.d.ts +4 -0
  143. package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-button/types.d.ts +3 -3
  144. package/dist/types-ts4.5/view/FlexibleCard/components/common/with-override-css/index.d.ts +6 -0
  145. package/dist/types-ts4.5/view/FlexibleCard/components/elements/badge/types.d.ts +4 -0
  146. package/package.json +3 -3
  147. package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
  148. package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
  149. package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
@@ -40,7 +40,7 @@ const LozengeActionErrorNew = ({
40
40
  const dynamicCss = null;
41
41
  const content = useMemo(() => {
42
42
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
43
- className: ax(["_zulpcxkx _11c81doa _1reo15vq _18m915vq _1e0c1txw _1ul9idpf _2lx2vrvc _19pkv77o _4cvr1y6m _pqme1oud _102e1oud _ngc01fxt _1t4p1fxt"])
43
+ className: ax(["_zulpu2gc _11c81doa _1reo15vq _18m915vq _1e0c1txw _1ul9idpf _2lx2vrvc _19pkv77o _4cvr1y6m _pqme1oud _102e1oud _ngc01fxt _1t4p1fxt"])
44
44
  }, /*#__PURE__*/React.createElement(ErrorIcon, {
45
45
  testId: `${testId}-icon`,
46
46
  LEGACY_size: "medium",
@@ -55,7 +55,7 @@ const LozengeActionErrorNew = ({
55
55
  "--_t4prqe": ix(maxLineNumber)
56
56
  }
57
57
  }, typeof errorMessage === 'string' ? errorMessage : getFormattedMessage(errorMessage))), isPreviewAvailable ? /*#__PURE__*/React.createElement("div", {
58
- className: ax(["_zulpcxkx _1reo15vq _18m915vq _11c81oud _1e0c1txw _1ul9idpf _2lx2vrvc _4cvr1h6o _80omtlke _19pku2gc _18u0xy5q _otyrv77o"])
58
+ className: ax(["_zulpu2gc _1reo15vq _18m915vq _11c81oud _1e0c1txw _1ul9idpf _2lx2vrvc _4cvr1h6o _80omtlke _19pku2gc _18u0xy5q _otyrv77o"])
59
59
  }, /*#__PURE__*/React.createElement("a", {
60
60
  target: "_blank",
61
61
  "data-testid": `${testId}-open-embed`,
@@ -1,5 +1,6 @@
1
1
  ._181u1kdv{-webkit-user-select:text}
2
2
  ._1rkw1kdv{-moz-user-select:text}
3
+ ._1ul9idpf{min-width:0}
3
4
  ._syaz1fxt{color:var(--ds-text,#172b4d)}
4
5
  ._te171kdv{-ms-user-select:text}
5
6
  ._uizt1kdv{-webkit-user-select:text;-ms-user-select:text;user-select:text}
@@ -24,7 +24,7 @@ const SnippetElementNew = ({
24
24
  content: overrideContent !== null && overrideContent !== void 0 ? overrideContent : context === null || context === void 0 ? void 0 : context.snippet,
25
25
  maxLines: maxLines,
26
26
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
27
- className: ax([fg('platform-linking-visual-refresh-v1') ? "_syaz1fxt _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv" : "_syaz1fxt _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", className])
27
+ className: ax([!fg('platform-linking-visual-refresh-v1') && "_syaz1fxt _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", fg('platform-linking-visual-refresh-v1') && "_syaz1fxt _1ul9idpf _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", className])
28
28
  }, props));
29
29
  };
30
30
  const SnippetElement = (props = {}) => {
@@ -5,6 +5,7 @@
5
5
  ._1e0ccj1k{display:-webkit-box}
6
6
  ._1nmz1hna{word-break:break-word}
7
7
  ._1reo15vq{overflow-x:hidden}
8
+ ._1ul9idpf{min-width:0}
8
9
  ._1yyjr31u{-webkit-line-clamp:var(--_1erfju8)}
9
10
  ._o5724jg8{white-space:normal}
10
11
  ._sudp1e54{-webkit-box-orient:vertical}
@@ -34,7 +34,7 @@ const TextNew = ({
34
34
  "data-testid": testId
35
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
36
36
  ,
37
- className: ax([fg('platform-linking-visual-refresh-v1') ? "_11c81vlj _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1bto1l2s _1nmz1hna _sudp1e54" : "_11c8qk37 _1reo15vq _18m915vq _syaz131l _o5724jg8 _1e0ccj1k _1bto1l2s _1nmz1hna _sudp1e54", "_1yyjr31u _102k1dud", className]),
37
+ className: ax([!fg('platform-linking-visual-refresh-v1') && "_11c8qk37 _1reo15vq _18m915vq _syaz131l _o5724jg8 _1e0ccj1k _1bto1l2s _1nmz1hna _sudp1e54", fg('platform-linking-visual-refresh-v1') && "_11c81vlj _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", "_1yyjr31u _102k1dud", className]),
38
38
  style: {
39
39
  "--_1erfju8": ix(maxLines)
40
40
  }
@@ -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: "34.10.12",
13
+ packageVersion: "34.10.13",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');
@@ -31,7 +31,7 @@ const AISummaryNew = ({
31
31
  "data-testid": testId
32
32
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
33
33
  ,
34
- className: ax([fg('platform-linking-visual-refresh-v1') ? "_11c81vlj _syaz1gjq _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv" : "_11c8qk37 _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", className]),
34
+ className: ax([!fg('platform-linking-visual-refresh-v1') && "_11c8qk37 _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", fg('platform-linking-visual-refresh-v1') && "_11c81vlj _syaz1gjq _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", className]),
35
35
  children: content,
36
36
  options: {
37
37
  forceWrapper: true,
@@ -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: "34.10.12"
7
+ packageVersion: "34.10.13"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -46,13 +46,13 @@ var ActionOld = function ActionOld(_ref) {
46
46
  }
47
47
  var isStackItem = as === 'stack-item';
48
48
  var isDropdownItem = as === 'dropdown-item' || asDropDownItem;
49
- var actionIcon = icon && jsx(ActionIcon, {
49
+ var actionIcon = icon ? jsx(ActionIcon, {
50
50
  asStackItemIcon: isStackItem,
51
51
  isDisabled: isDisabled,
52
52
  icon: icon,
53
53
  size: size,
54
54
  testId: testId
55
- });
55
+ }) : undefined;
56
56
  var iconBefore = icon && iconPosition === 'before' ? actionIcon : undefined;
57
57
  var iconAfter = icon && iconPosition === 'after' ? actionIcon : undefined;
58
58
  if (isStackItem) {
@@ -1,19 +1,51 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./index.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
- import React, { useCallback } from 'react';
4
+ import React, { forwardRef, useCallback, useMemo } from 'react';
5
5
  import { LoadingButton } from '@atlaskit/button';
6
+ import Button, { IconButton, LinkButton, LinkIconButton } from '@atlaskit/button/new';
6
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { Box } from '@atlaskit/primitives/compiled';
7
9
  import Tooltip from '@atlaskit/tooltip';
8
10
  import { SmartLinkSize } from '../../../../../../constants';
11
+ import { withOverrideCss } from '../../../common/with-override-css';
9
12
  import { sizeToButtonSpacing } from '../../../utils';
10
13
  import ActionButtonOld from './ActionButtonOld';
14
+ // TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
11
15
  var IconOnlyLarge = null;
16
+
17
+ // TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
12
18
  var SizeSmall = null;
19
+
20
+ // TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
13
21
  var SizeSmallIconOnly = null;
22
+
23
+ // TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
14
24
  var SizeSmallNotIconOnly = null;
15
- var ActionButtonNew = function ActionButtonNew(_ref) {
16
- var appearance = _ref.appearance,
25
+ var IconButtonAppearanceMap = {
26
+ default: 'default',
27
+ danger: undefined,
28
+ link: 'default',
29
+ primary: 'primary',
30
+ subtle: 'subtle',
31
+ 'subtle-link': 'subtle',
32
+ warning: undefined
33
+ };
34
+ var ButtonAppearanceMap = {
35
+ default: 'default',
36
+ danger: 'danger',
37
+ link: 'default',
38
+ primary: 'primary',
39
+ subtle: 'subtle',
40
+ 'subtle-link': 'subtle',
41
+ warning: 'warning'
42
+ };
43
+ var tooltipOptions = {
44
+ hideTooltipOnClick: true
45
+ };
46
+ var ActionButtonRefreshNew = /*#__PURE__*/forwardRef(function (_ref, ref) {
47
+ var _ref$appearance = _ref.appearance,
48
+ appearance = _ref$appearance === void 0 ? 'default' : _ref$appearance,
17
49
  content = _ref.content,
18
50
  iconAfter = _ref.iconAfter,
19
51
  iconBefore = _ref.iconBefore,
@@ -24,8 +56,106 @@ var ActionButtonNew = function ActionButtonNew(_ref) {
24
56
  tooltipMessage = _ref.tooltipMessage,
25
57
  isDisabled = _ref.isDisabled,
26
58
  href = _ref.href,
27
- ariaLabel = _ref.ariaLabel,
28
- className = _ref.className;
59
+ ariaLabel = _ref.ariaLabel;
60
+ var iconOnly = !content;
61
+ var onButtonClick = useCallback(function (handler) {
62
+ return function (e) {
63
+ e.preventDefault();
64
+ handler();
65
+ };
66
+ }, []);
67
+ var button = useMemo(function () {
68
+ var isLinkButton = !!href;
69
+ var spacing = size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'default' : 'compact';
70
+ if (iconOnly) {
71
+ var icon = iconBefore || iconAfter;
72
+ var iconFn = function iconFn() {
73
+ return icon || null;
74
+ };
75
+ if (isLinkButton) {
76
+ return /*#__PURE__*/React.createElement(LinkIconButton, {
77
+ appearance: IconButtonAppearanceMap[appearance],
78
+ icon: iconFn,
79
+ href: href,
80
+ isDisabled: isDisabled,
81
+ isTooltipDisabled: false,
82
+ label: tooltipMessage,
83
+ onClick: onButtonClick(onClick),
84
+ spacing: spacing,
85
+ testId: testId,
86
+ tooltip: tooltipOptions
87
+ });
88
+ }
89
+ return /*#__PURE__*/React.createElement(IconButton, {
90
+ appearance: IconButtonAppearanceMap[appearance],
91
+ icon: iconFn,
92
+ isDisabled: isDisabled,
93
+ isLoading: isLoading,
94
+ isTooltipDisabled: false,
95
+ label: tooltipMessage,
96
+ onClick: onButtonClick(onClick),
97
+ spacing: spacing,
98
+ testId: testId,
99
+ tooltip: tooltipOptions
100
+ });
101
+ }
102
+ var iconBeforeFn = function iconBeforeFn() {
103
+ return iconBefore || null;
104
+ };
105
+ var iconAfterFn = function iconAfterFn() {
106
+ return iconAfter || null;
107
+ };
108
+ if (isLinkButton) {
109
+ return /*#__PURE__*/React.createElement(LinkButton, {
110
+ appearance: ButtonAppearanceMap[appearance],
111
+ "aria-label": ariaLabel,
112
+ iconAfter: iconAfterFn,
113
+ iconBefore: iconBeforeFn,
114
+ isDisabled: isDisabled,
115
+ href: href,
116
+ onClick: onButtonClick(onClick),
117
+ spacing: spacing,
118
+ testId: testId
119
+ }, content);
120
+ }
121
+ return /*#__PURE__*/React.createElement(Button, {
122
+ appearance: ButtonAppearanceMap[appearance],
123
+ "aria-label": ariaLabel,
124
+ iconAfter: iconAfterFn,
125
+ iconBefore: iconBeforeFn,
126
+ isDisabled: isDisabled,
127
+ isLoading: isLoading,
128
+ onClick: onButtonClick(onClick),
129
+ spacing: spacing,
130
+ testId: testId
131
+ }, content);
132
+ }, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading, onButtonClick, onClick, size, testId, tooltipMessage]);
133
+ return /*#__PURE__*/React.createElement(Box, {
134
+ testId: "".concat(testId, "-button-wrapper"),
135
+ ref: ref
136
+ }, button);
137
+ });
138
+
139
+ // On cleanup of platform-linking-visual-refresh-v1, this should become
140
+ // export default withOverrideCss(ActionButton);
141
+ var ActionButtonRefreshNewWithOverrideCss = withOverrideCss(ActionButtonRefreshNew);
142
+
143
+ // TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
144
+ var ActionButtonNew = function ActionButtonNew(_ref2) {
145
+ var _ref2$appearance = _ref2.appearance,
146
+ appearance = _ref2$appearance === void 0 ? 'default' : _ref2$appearance,
147
+ content = _ref2.content,
148
+ iconAfter = _ref2.iconAfter,
149
+ iconBefore = _ref2.iconBefore,
150
+ isLoading = _ref2.isLoading,
151
+ onClick = _ref2.onClick,
152
+ size = _ref2.size,
153
+ testId = _ref2.testId,
154
+ tooltipMessage = _ref2.tooltipMessage,
155
+ isDisabled = _ref2.isDisabled,
156
+ href = _ref2.href,
157
+ ariaLabel = _ref2.ariaLabel,
158
+ className = _ref2.className;
29
159
  var iconOnly = !content;
30
160
  var onButtonClick = useCallback(function (handler) {
31
161
  return function (e) {
@@ -55,6 +185,9 @@ var ActionButtonNew = function ActionButtonNew(_ref) {
55
185
  }, content)));
56
186
  };
57
187
  var ActionButton = function ActionButton(props) {
58
- return fg('bandicoots-compiled-migration-smartcard') ? /*#__PURE__*/React.createElement(ActionButtonNew, props) : /*#__PURE__*/React.createElement(ActionButtonOld, props);
188
+ if (fg('bandicoots-compiled-migration-smartcard')) {
189
+ return fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(ActionButtonRefreshNewWithOverrideCss, props) : /*#__PURE__*/React.createElement(ActionButtonNew, props);
190
+ }
191
+ return /*#__PURE__*/React.createElement(ActionButtonOld, props);
59
192
  };
60
193
  export default ActionButton;
@@ -6,7 +6,6 @@
6
6
  ._1bsb1j6v{width:1rem}
7
7
  ._1bsb1k8s{width:1.5rem}
8
8
  ._1bsbgktf{width:20px}
9
- ._1e0c116y{display:inline-flex}
10
9
  ._1e0c1o8l{display:inline-block}
11
10
  ._1o9zidpf{flex-shrink:0}
12
11
  ._1rg21j6v img, ._q7cv1j6v span, ._xwbj1j6v svg{min-width:1rem}
@@ -16,16 +16,19 @@ var getIconWidth = function getIconWidth(size) {
16
16
  return '1rem';
17
17
  }
18
18
  };
19
+
20
+ // TODO: Remove on fg cleanup: platform-visual-refresh-icons
19
21
  var iconSizeStyleMap = {
20
22
  '1.5rem': "_16jlidpf _1o9zidpf _i0dl1wug _4t3i1k8s _1tke1k8s _c71l1k8s _1bsb1k8s _1ul91k8s _p12f1k8s _i2i3idpf _uhasidpf _5jw9idpf _7wy9idpf _bna71k8s _1xjx1k8s _17521k8s _qci81k8s _15iz1k8s _erub1k8s _19l31k8s _1pr21k8s _1u5t1k8s _mezj1k8s _e2oo1k8s _w8l51k8s _1rg21k8s _q7cv1k8s _xwbj1k8s _rtys1k8s _b8nk1k8s _4x201k8s",
21
23
  '1rem': "_16jlidpf _1o9zidpf _i0dl1wug _4t3i1j6v _1tke1j6v _c71l1j6v _1bsb1j6v _1ul91j6v _p12f1j6v _i2i3idpf _uhasidpf _5jw9idpf _7wy9idpf _bna71j6v _1xjx1j6v _17521j6v _qci81j6v _15iz1j6v _erub1j6v _19l31j6v _1pr21j6v _1u5t1j6v _mezj1j6v _e2oo1j6v _w8l51j6v _1rg21j6v _q7cv1j6v _xwbj1j6v _rtys1j6v _b8nk1j6v _4x201j6v",
22
24
  '20px': "_16jlidpf _1o9zidpf _i0dl1wug _4t3igktf _1tkegktf _c71lgktf _1bsbgktf _1ul9gktf _p12fgktf _i2i3idpf _uhasidpf _5jw9idpf _7wy9idpf _bna7gktf _1xjxgktf _1752gktf _qci8gktf _15izgktf _erubgktf _19l3gktf _1pr2gktf _1u5tgktf _mezjgktf _e2oogktf _w8l5gktf _1rg2gktf _q7cvgktf _xwbjgktf _rtysgktf _b8nkgktf _4x20gktf"
23
25
  };
24
26
 
25
- // TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
27
+ // TODO: Remove on fg cleanup: platform-visual-refresh-icons
26
28
  var stackItemIconStylesOld = null;
27
29
  var stackItemIconStylesCompiled = null;
28
- var stackItemIconStyles = null;
30
+
31
+ // TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
29
32
  var iconStyleMap = {
30
33
  true: "_syaz2oi6",
31
34
  false: "_syazwdcn"
@@ -39,12 +42,12 @@ var ActionIconNew = function ActionIconNew(_ref) {
39
42
  if (!fg('platform-visual-refresh-icons')) {
40
43
  return /*#__PURE__*/React.createElement("span", {
41
44
  "data-testid": "".concat(testId, "-icon"),
42
- className: ax([iconStyleMap[isDisabled ? 'true' : 'false'], asStackItemIcon && "_1e0c1o8l _ca0qv77o _u5f3v77o _n3tdv77o _19bvv77o", asStackItemIcon && iconSizeStyleMap['20px'], !asStackItemIcon && iconSizeStyleMap[getIconWidth(size)]])
45
+ className: ax([!fg('platform-linking-visual-refresh-v1') && iconStyleMap[isDisabled ? 'true' : 'false'], asStackItemIcon && "_1e0c1o8l _ca0qv77o _u5f3v77o _n3tdv77o _19bvv77o", asStackItemIcon && iconSizeStyleMap['20px'], !asStackItemIcon && iconSizeStyleMap[getIconWidth(size)]])
43
46
  }, icon);
44
47
  }
45
48
  return /*#__PURE__*/React.createElement("span", {
46
49
  "data-testid": "".concat(testId, "-icon"),
47
- className: ax([iconStyleMap[isDisabled ? 'true' : 'false'], fg('platform-linking-visual-refresh-v1') ? "_1e0c116y" : "_1e0c1o8l"])
50
+ className: ax([!fg('platform-linking-visual-refresh-v1') && iconStyleMap[isDisabled ? 'true' : 'false'], "_1e0c1o8l"])
48
51
  }, icon);
49
52
  };
50
53
  var ActionIcon = function ActionIcon(props) {
@@ -3,9 +3,11 @@
3
3
  ._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
4
4
  ._19bv1b66{padding-left:var(--ds-space-050,4px)}
5
5
  ._1bsb1osq{width:100%}
6
+ ._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
6
7
  ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
7
8
  ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
8
9
  ._syaz1fxt{color:var(--ds-text,#172b4d)}
9
10
  ._u5f31b66{padding-right:var(--ds-space-050,4px)}
11
+ ._1ah31i6y:focus-visible{outline-offset:var(--ds-space-negative-025,-2px)}
10
12
  ._irr3166n:hover{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
11
13
  ._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
@@ -4,17 +4,19 @@ import "./action-button.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { useCallback } from 'react';
7
+ import { cx } from '@atlaskit/css';
7
8
  import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { Box, Inline, Pressable } from '@atlaskit/primitives/compiled';
9
10
  import Spinner from '@atlaskit/spinner';
10
11
  import { getPrimitivesInlineSpaceBySize } from '../../../utils';
11
12
  import ActionIcon from '../action-icon';
12
13
  import ActionButtonOld from './action-buttonOld';
13
- var styles = {
14
+ var stylesOld = {
14
15
  button: "_kkk2n7od _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _1bsb1osq _irr3166n _1di61dty",
15
16
  content: "_11c8qk37 _syaz1fxt"
16
17
  };
17
- var contentStyles = {
18
+ var styles = {
19
+ button: "_bfhksm61 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _1bsb1osq _1ah31i6y _irr3166n _1di61dty",
18
20
  content: "_11c81vlj _syaz1fxt"
19
21
  };
20
22
  var ActionButtonNew = function ActionButtonNew(_ref) {
@@ -42,7 +44,7 @@ var ActionButtonNew = function ActionButtonNew(_ref) {
42
44
  size: size
43
45
  }) : iconOption;
44
46
  return /*#__PURE__*/React.createElement(Pressable, _extends({
45
- xcss: styles.button
47
+ xcss: cx(!fg('platform-linking-visual-refresh-v1') && stylesOld.button, fg('platform-linking-visual-refresh-v1') && styles.button)
46
48
  }, tooltipProps, {
47
49
  onClick: onClick,
48
50
  testId: testId
@@ -54,7 +56,7 @@ var ActionButtonNew = function ActionButtonNew(_ref) {
54
56
  grow: "fill",
55
57
  space: space
56
58
  }, icon, /*#__PURE__*/React.createElement(Box, {
57
- xcss: fg('platform-linking-visual-refresh-v1') ? contentStyles.content : styles.content
59
+ xcss: cx(!fg('platform-linking-visual-refresh-v1') && stylesOld.content, fg('platform-linking-visual-refresh-v1') && styles.content)
58
60
  }, content)));
59
61
  };
60
62
  var ActionButton = function ActionButton(props) {
@@ -43,13 +43,13 @@ var ActionNew = function ActionNew(_ref) {
43
43
  }
44
44
  var isStackItem = as === 'stack-item';
45
45
  var isDropdownItem = as === 'dropdown-item' || asDropDownItem;
46
- var actionIcon = icon && /*#__PURE__*/React.createElement(ActionIcon, {
46
+ var actionIcon = icon ? /*#__PURE__*/React.createElement(ActionIcon, {
47
47
  asStackItemIcon: isStackItem,
48
48
  isDisabled: isDisabled,
49
49
  icon: icon,
50
50
  size: size,
51
51
  testId: testId
52
- });
52
+ }) : undefined;
53
53
  var iconBefore = icon && iconPosition === 'before' ? actionIcon : undefined;
54
54
  var iconAfter = icon && iconPosition === 'after' ? actionIcon : undefined;
55
55
  if (isStackItem) {
@@ -3,6 +3,7 @@
3
3
  ._1yt412x7{padding:var(--ds-space-075,6px)}
4
4
  ._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
5
5
  ._18zru2gc{padding-inline:var(--ds-space-100,8px)}
6
+ ._1rjc12x7{padding-block:var(--ds-space-075,6px)}
6
7
  ._18u0u2gc{margin-left:var(--ds-space-100,8px)}
7
8
  ._19pku2gc{margin-top:var(--ds-space-100,8px)}
8
9
  ._1bsb1osq{width:100%}
@@ -10,6 +10,7 @@ import { ActionFooterOld } from './ActionFooterOld';
10
10
  var containerStyles = null;
11
11
  var errorStyles = null;
12
12
  var styles = {
13
+ containerStyles: "_kkk2n7od _2rkoglpi _1rjc12x7 _18zru2gc _19pku2gc _2hwxu2gc _otyrze3t _18u0u2gc _1bsb1osq _fiawglyw",
13
14
  errorContentStyles: "_bozgv77o",
14
15
  titleStyles: "_11c8qk37 _syaz1gjq"
15
16
  };
@@ -34,6 +35,27 @@ var ActionFooterNew = function ActionFooterNew(_ref) {
34
35
  if (!message) {
35
36
  return null;
36
37
  }
38
+ if (fg('platform-linking-visual-refresh-v1')) {
39
+ return /*#__PURE__*/React.createElement(Box, {
40
+ backgroundColor: message.appearance === 'error' ? 'color.background.danger' : undefined,
41
+ testId: "".concat(testId, "-footer"),
42
+ style: {
43
+ width: "calc(100% - var(--container-padding-left) - var(--container-padding-right))"
44
+ },
45
+ xcss: styles.containerStyles
46
+ }, /*#__PURE__*/React.createElement(MotionWrapper, {
47
+ isFadeIn: true,
48
+ show: true,
49
+ showTransition: true
50
+ }, /*#__PURE__*/React.createElement(Inline, {
51
+ alignBlock: "start",
52
+ grow: "fill",
53
+ space: "space.075",
54
+ xcss: styles.errorContentStyles
55
+ }, message.icon || getIcon(message.appearance), /*#__PURE__*/React.createElement(Box, {
56
+ xcss: styles.titleStyles
57
+ }, message.title))));
58
+ }
37
59
  return /*#__PURE__*/React.createElement("div", {
38
60
  "data-testId": "".concat(testId, "-footer"),
39
61
  className: ax(["_kkk2n7od _2rkoglpi _1yt412x7 _18zru2gc _19pku2gc _2hwxu2gc _otyrze3t _18u0u2gc _vwz4gktf _1bsb1osq _fiawglyw", message.appearance === 'error' && "_bfhk1gly"])
@@ -102,7 +102,7 @@ var ActionBlockNew = function ActionBlockNew(_ref) {
102
102
  return actions ? /*#__PURE__*/React.createElement("div", {
103
103
  ref: blockRef,
104
104
  "data-testid": testId,
105
- className: ax([fg('platform-linking-visual-refresh-v1') ? "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb129b _18u01ivi _2hwxc10g" : "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb1osq _18u01ivi _2hwxc10g"])
105
+ className: ax([!fg('platform-linking-visual-refresh-v1') && "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb1osq _18u01ivi _2hwxc10g", fg('platform-linking-visual-refresh-v1') && "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb129b _18u01ivi _2hwxc10g"])
106
106
  }, actions, /*#__PURE__*/React.createElement(ActionFooter, {
107
107
  message: message,
108
108
  testId: testId
@@ -6,6 +6,8 @@ var _excluded = ["triggerRef"];
6
6
  import "./index.compiled.css";
7
7
  import * as React from 'react';
8
8
  import { ax, ix } from "@compiled/react/runtime";
9
+ /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
10
+
9
11
  import { useCallback, useMemo, useState } from 'react';
10
12
  import { FormattedMessage } from 'react-intl-next';
11
13
  import { di } from 'react-magnetic-di';
@@ -22,6 +24,8 @@ import { sizeToButtonSpacing } from '../../utils';
22
24
  import { filterActionItems } from '../utils';
23
25
  import ActionGroupItem from './action-group-item';
24
26
  import ActionGroupOld from './ActionGroupOld';
27
+ // TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
28
+ var stylesOld = null;
25
29
  var styles = null;
26
30
  var renderActionItems = function renderActionItems() {
27
31
  var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
@@ -119,7 +123,7 @@ var ActionGroupNew = function ActionGroupNew(_ref) {
119
123
  }, [appearance, isMoreThenTwoItems, isOpen, onActionItemClick, onOpenChange, renderableActionItems, size, ui === null || ui === void 0 ? void 0 : ui.zIndex, visibleButtonsNum]);
120
124
  return renderableActionItems.length > 0 ? /*#__PURE__*/React.createElement("div", {
121
125
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
122
- className: ax(["_1e0c116y _vwz41j6v _dzc21h6o _1ilq1i6y", "actions-button-group"]),
126
+ className: ax([!fg('platform-linking-visual-refresh-v1') && "_1e0c116y _vwz41j6v _dzc21h6o _1ilq1i6y", fg('platform-linking-visual-refresh-v1') && "_1e0c116y _dzc21h6o _1ilq1i6y", "actions-button-group"]),
123
127
  "data-action-open": isOpen
124
128
  }, /*#__PURE__*/React.createElement(ButtonGroup, null, actionButtons, moreActionDropdown)) : null;
125
129
  };
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
3
4
  import { InternalActionName } from '../../../../../../constants';
4
5
  import { useFlexibleUiContext } from '../../../../../../state/flexible-ui-context';
5
6
  import { Provider } from '../../../elements';
@@ -12,9 +13,11 @@ var AIFooterBlockResolvedView = function AIFooterBlockResolvedView(props) {
12
13
  var testId = props.testId;
13
14
  return /*#__PURE__*/React.createElement(Block, _extends({}, props, {
14
15
  testId: "".concat(testId, "-resolved-view")
15
- }), /*#__PURE__*/React.createElement(Provider, {
16
+ }), /*#__PURE__*/React.createElement(Provider, _extends({}, fg('platform-linking-visual-refresh-v1') ? {
17
+ appearance: 'subtle'
18
+ } : {}, {
16
19
  testId: "".concat(testId, "-provider")
17
- }), actionData ? /*#__PURE__*/React.createElement(AIFooterMetadata, _extends({}, actionData, {
20
+ })), actionData ? /*#__PURE__*/React.createElement(AIFooterMetadata, _extends({}, actionData, {
18
21
  testId: "".concat(testId, "-ai-metadata")
19
22
  })) : null);
20
23
  };
@@ -1,20 +1,30 @@
1
1
 
2
+ ._zulp1b66{gap:var(--ds-space-050,4px)}
2
3
  ._zulp1j6v{gap:1rem}
3
4
  ._zulp1k92{gap:1.25rem}
4
5
  ._zulp1kwk{gap:.5rem}
5
- ._zulp6mu8{gap:.25rem}._12ji1kw7{outline-color:inherit}
6
+ ._zulp6mu8{gap:.25rem}
7
+ ._zulppxbi{gap:var(--ds-space-200,1pc)}
8
+ ._zulpu2gc{gap:var(--ds-space-100,8px)}
9
+ ._zulpv47k{gap:var(--ds-space-250,20px)}._12ji1kw7{outline-color:inherit}
6
10
  ._12ji1snc{outline-color:currentColor!important}
7
11
  ._12y310yn{outline-width:medium!important}
12
+ ._17ae1oju [data-separator][data-smart-element=TargetBranch]+[data-separator][data-smart-element=SourceBranch]:before{color:var(--ds-icon-subtle,#626f86)}
8
13
  ._181uglyw{-webkit-user-select:none}
9
14
  ._18m915vq{overflow-y:hidden}
10
15
  ._18ql1j28{-webkit-tap-highlight-color:transparent}
11
16
  ._1bah1y6m{justify-content:flex-start}
12
17
  ._1e0c1txw{display:flex}
18
+ ._1gu21oju [data-separator][data-smart-element=SourceBranch]+[data-separator][data-smart-element=TargetBranch]:before{color:var(--ds-icon-subtle,#626f86)}
13
19
  ._1ifmglyw{-webkit-touch-callout:none}
20
+ ._1ljq1b66 [data-separator]+[data-separator]:before{margin-right:var(--ds-space-050,4px)}
14
21
  ._1ljq1j6v [data-separator]+[data-separator]:before{margin-right:1rem}
15
22
  ._1ljq1k92 [data-separator]+[data-separator]:before{margin-right:1.25rem}
16
23
  ._1ljq1kwk [data-separator]+[data-separator]:before{margin-right:.5rem}
17
24
  ._1ljq6mu8 [data-separator]+[data-separator]:before{margin-right:.25rem}
25
+ ._1ljqpxbi [data-separator]+[data-separator]:before{margin-right:var(--ds-space-200,1pc)}
26
+ ._1ljqu2gc [data-separator]+[data-separator]:before{margin-right:var(--ds-space-100,8px)}
27
+ ._1ljqv47k [data-separator]+[data-separator]:before{margin-right:var(--ds-space-250,20px)}
18
28
  ._1ouwidpf>*{min-width:0}
19
29
  ._1qu2agmp{outline-style:none!important}
20
30
  ._1reo15vq{overflow-x:hidden}
@@ -25,7 +35,10 @@
25
35
  ._2lx2vrvc{flex-direction:row}
26
36
  ._4cvr1h6o{align-items:center}
27
37
  ._4cvr1y6m{align-items:flex-start}
38
+ ._5b7tuxlv [data-separator][data-smart-element=TargetBranch]+[data-separator][data-smart-element=SourceBranch]:before{content:"←"}
39
+ ._a6bxmuej [data-separator]+[data-separator]:before{color:var(--ds-border,#091e4224)}
28
40
  ._a7e8uxlv [data-smart-element=TargetBranch]+[data-smart-element=SourceBranch]:before{content:"←"}
41
+ ._e4i5bjq5 [data-separator][data-smart-element=SourceBranch]+[data-separator][data-smart-element=TargetBranch]:before{content:"→"}
29
42
  ._f6ju1ns9>[data-fit-to-content]{min-width:-moz-fit-content;min-width:fit-content}
30
43
  ._fiawglyw:empty{display:none}
31
44
  ._syaz1kw7{color:inherit}
@@ -1,4 +1,5 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
2
3
  import "./index.compiled.css";
3
4
  import * as React from 'react';
4
5
  import { ax, ix } from "@compiled/react/runtime";
@@ -7,14 +8,25 @@ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
8
9
  import { renderChildren } from '../utils';
9
10
  import BlockOld from './indexOld';
10
- var BaseBlockStyles = null;
11
+
12
+ // TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
13
+ var BaseBlockStylesOld = null;
14
+ var baseBlockStyles = null;
11
15
  var highlightRemoveStyles = null;
12
- var gapsStyles = {
16
+
17
+ // TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
18
+ var gapsStylesOld = {
13
19
  xlarge: "_zulp1k92 _1ljq1k92",
14
20
  large: "_zulp1j6v _1ljq1j6v",
15
21
  medium: "_zulp1kwk _1ljq1kwk",
16
22
  small: "_zulp6mu8 _1ljq6mu8"
17
23
  };
24
+ var gapStyles = {
25
+ xlarge: "_zulpv47k _1ljqv47k",
26
+ large: "_zulppxbi _1ljqpxbi",
27
+ medium: "_zulpu2gc _1ljqu2gc",
28
+ small: "_zulp1b66 _1ljq1b66"
29
+ };
18
30
  var directionStyles = {
19
31
  vertical: "_2lx21bp4 _4cvr1y6m",
20
32
  horizontal: "_2lx2vrvc _4cvr1h6o"
@@ -45,7 +57,7 @@ var BlockNew = function BlockNew(_ref) {
45
57
  }, [onRender]);
46
58
  return /*#__PURE__*/React.createElement("div", {
47
59
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
48
- className: ax(["_1reo15vq _18m915vq _4cvr1h6o _vwz41j6v _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]),
60
+ className: ax([!fg('platform-linking-visual-refresh-v1') && "_1reo15vq _18m915vq _4cvr1h6o _vwz41j6v _1e0c1txw _1ul9idpf _1bah1y6m _fiawglyw _1ouwidpf _f6ju1ns9 _1uzp1mp2 _ytq1bjq5 _a7e8uxlv", fg('platform-linking-visual-refresh-v1') && "_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _1bah1y6m _fiawglyw _1uzp1mp2 _a6bxmuej _e4i5bjq5 _1gu21oju _5b7tuxlv _17ae1oju", "_12ji1snc _1qu2agmp _12y310yn _12ji1kw7 _syaz1kw7 _18ql1j28 _1ifmglyw _181uglyw _1rkwglyw _te17glyw _uiztglyw", directionStyles[direction], !fg('platform-linking-visual-refresh-v1') && gapsStylesOld[size], fg('platform-linking-visual-refresh-v1') && gapStyles[size], className]),
49
61
  "data-smart-block": true,
50
62
  "data-testid": testId,
51
63
  onTransitionEnd: onTransitionEnd,
@@ -26,19 +26,19 @@
26
26
  ._1ul9idpf{min-width:0}
27
27
  ._1wpz1y6m{align-self:flex-start}
28
28
  ._1yyjkb7n{-webkit-line-clamp:1}
29
- ._24rc147b >span{margin-left:var(--ds-space-250,1.25rem)}
30
- ._24rc1e9d >span{margin-left:var(--ds-space-200,1rem)}
31
- ._24rccxkx >span{margin-left:var(--ds-space-100,.5rem)}
32
- ._24rcpdf9 >span{margin-left:var(--ds-space-050,.25rem)}
29
+ ._24rc1b66 >span{margin-left:var(--ds-space-050,4px)}
30
+ ._24rcpxbi >span{margin-left:var(--ds-space-200,1pc)}
31
+ ._24rcu2gc >span{margin-left:var(--ds-space-100,8px)}
32
+ ._24rcv47k >span{margin-left:var(--ds-space-250,20px)}
33
33
  ._2lx21bp4{flex-direction:column}
34
34
  ._2lx2vrvc{flex-direction:row}
35
35
  ._3dveidpf >span:first-of-type{margin-left:0}
36
36
  ._4cvr1h6o{align-items:center}
37
37
  ._4cvr1y6m{align-items:flex-start}
38
- ._7yhb147b >span{margin-right:var(--ds-space-250,1.25rem)}
39
- ._7yhb1e9d >span{margin-right:var(--ds-space-200,1rem)}
40
- ._7yhbcxkx >span{margin-right:var(--ds-space-100,.5rem)}
41
- ._7yhbpdf9 >span{margin-right:var(--ds-space-050,.25rem)}
38
+ ._7yhb1b66 >span{margin-right:var(--ds-space-050,4px)}
39
+ ._7yhbpxbi >span{margin-right:var(--ds-space-200,1pc)}
40
+ ._7yhbu2gc >span{margin-right:var(--ds-space-100,8px)}
41
+ ._7yhbv47k >span{margin-right:var(--ds-space-250,20px)}
42
42
  ._f6ju1ns9>[data-fit-to-content]{min-width:-moz-fit-content;min-width:fit-content}
43
43
  ._fiawglyw:empty{display:none}
44
44
  ._i0dlf1ug{flex-basis:0%}
@@ -48,7 +48,6 @@
48
48
  ._s7n4nkob{vertical-align:middle}
49
49
  ._sudp1e54{-webkit-box-orient:vertical}
50
50
  ._vwz41j6v{line-height:1rem}
51
- ._vwz47vkz{line-height:1pc}
52
51
  ._y3gn1e5h{text-align:left}
53
52
  ._y3gnusic{text-align:right}
54
- @supports not (-webkit-line-clamp:1){._102k1k8s{max-height:1.5rem}._102k1m1q{max-height:1.75rem}}
53
+ @supports not (-webkit-line-clamp:1){._102k125z{max-height:calc(var(--ds-space-400, 2pc)*1)}._102k1k8s{max-height:1.5rem}._102k1m1q{max-height:1.75rem}._102kz42d{max-height:calc(var(--ds-space-300, 24px)*1)}}