@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.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/ActionOld.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +138 -5
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -4
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +2 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +6 -4
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +22 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +5 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.compiled.css +14 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +14 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.compiled.css +9 -10
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +24 -15
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +13 -7
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +9 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +4 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/with-override-css/index.js +25 -0
- package/dist/cjs/view/FlexibleCard/components/container/index.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +6 -4
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.compiled.css +2 -1
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +9 -8
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.compiled.css +9 -0
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +78 -10
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.compiled.css +2 -1
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +5 -4
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +6 -4
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.compiled.css +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/ai-summary/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/ActionOld.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +127 -3
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -4
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +2 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +6 -4
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +22 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +5 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +5 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.compiled.css +14 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +15 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.compiled.css +9 -10
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +24 -15
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +13 -7
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +9 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +4 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/with-override-css/index.js +15 -0
- package/dist/es2019/view/FlexibleCard/components/container/index.js +5 -5
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +7 -4
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.compiled.css +2 -1
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +11 -8
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.compiled.css +9 -0
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +75 -9
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.compiled.css +2 -1
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +6 -4
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +7 -4
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.compiled.css +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/ai-summary/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/ActionOld.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +139 -6
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +7 -4
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +2 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +6 -4
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +22 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +5 -1
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +5 -2
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.compiled.css +14 -1
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +15 -3
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.compiled.css +9 -10
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +24 -15
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +13 -7
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +9 -3
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +4 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/with-override-css/index.js +15 -0
- package/dist/esm/view/FlexibleCard/components/container/index.js +5 -5
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +6 -4
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.compiled.css +2 -1
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +9 -8
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.compiled.css +9 -0
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +75 -10
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.compiled.css +2 -1
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +5 -4
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +6 -4
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.compiled.css +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/text/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/ai-summary/index.js +1 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-button/types.d.ts +3 -3
- package/dist/types/view/FlexibleCard/components/common/with-override-css/index.d.ts +6 -0
- package/dist/types/view/FlexibleCard/components/elements/badge/types.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-button/types.d.ts +3 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/common/with-override-css/index.d.ts +6 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/badge/types.d.ts +4 -0
- package/package.json +3 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 34.10.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#115421](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115421)
|
|
8
|
+
[`b75daad50944f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b75daad50944f) -
|
|
9
|
+
[ux] Migrate flexible card action button to the new DS button, update badge token
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 34.10.12
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "34.10.
|
|
14
|
+
packageVersion: "34.10.13"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -54,13 +54,13 @@ var ActionOld = function ActionOld(_ref) {
|
|
|
54
54
|
}
|
|
55
55
|
var isStackItem = as === 'stack-item';
|
|
56
56
|
var isDropdownItem = as === 'dropdown-item' || asDropDownItem;
|
|
57
|
-
var actionIcon = icon
|
|
57
|
+
var actionIcon = icon ? (0, _react.jsx)(_actionIcon.default, {
|
|
58
58
|
asStackItemIcon: isStackItem,
|
|
59
59
|
isDisabled: isDisabled,
|
|
60
60
|
icon: icon,
|
|
61
61
|
size: size,
|
|
62
62
|
testId: testId
|
|
63
|
-
});
|
|
63
|
+
}) : undefined;
|
|
64
64
|
var iconBefore = icon && iconPosition === 'before' ? actionIcon : undefined;
|
|
65
65
|
var iconAfter = icon && iconPosition === 'after' ? actionIcon : undefined;
|
|
66
66
|
if (isStackItem) {
|
|
@@ -11,19 +11,51 @@ require("./index.compiled.css");
|
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _button = require("@atlaskit/button");
|
|
14
|
+
var _new = _interopRequireWildcard(require("@atlaskit/button/new"));
|
|
14
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
17
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
16
18
|
var _constants = require("../../../../../../constants");
|
|
19
|
+
var _withOverrideCss = require("../../../common/with-override-css");
|
|
17
20
|
var _utils = require("../../../utils");
|
|
18
21
|
var _ActionButtonOld = _interopRequireDefault(require("./ActionButtonOld"));
|
|
19
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
21
25
|
var IconOnlyLarge = null;
|
|
26
|
+
|
|
27
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
22
28
|
var SizeSmall = null;
|
|
29
|
+
|
|
30
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
23
31
|
var SizeSmallIconOnly = null;
|
|
32
|
+
|
|
33
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
24
34
|
var SizeSmallNotIconOnly = null;
|
|
25
|
-
var
|
|
26
|
-
|
|
35
|
+
var IconButtonAppearanceMap = {
|
|
36
|
+
default: 'default',
|
|
37
|
+
danger: undefined,
|
|
38
|
+
link: 'default',
|
|
39
|
+
primary: 'primary',
|
|
40
|
+
subtle: 'subtle',
|
|
41
|
+
'subtle-link': 'subtle',
|
|
42
|
+
warning: undefined
|
|
43
|
+
};
|
|
44
|
+
var ButtonAppearanceMap = {
|
|
45
|
+
default: 'default',
|
|
46
|
+
danger: 'danger',
|
|
47
|
+
link: 'default',
|
|
48
|
+
primary: 'primary',
|
|
49
|
+
subtle: 'subtle',
|
|
50
|
+
'subtle-link': 'subtle',
|
|
51
|
+
warning: 'warning'
|
|
52
|
+
};
|
|
53
|
+
var tooltipOptions = {
|
|
54
|
+
hideTooltipOnClick: true
|
|
55
|
+
};
|
|
56
|
+
var ActionButtonRefreshNew = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
57
|
+
var _ref$appearance = _ref.appearance,
|
|
58
|
+
appearance = _ref$appearance === void 0 ? 'default' : _ref$appearance,
|
|
27
59
|
content = _ref.content,
|
|
28
60
|
iconAfter = _ref.iconAfter,
|
|
29
61
|
iconBefore = _ref.iconBefore,
|
|
@@ -34,8 +66,106 @@ var ActionButtonNew = function ActionButtonNew(_ref) {
|
|
|
34
66
|
tooltipMessage = _ref.tooltipMessage,
|
|
35
67
|
isDisabled = _ref.isDisabled,
|
|
36
68
|
href = _ref.href,
|
|
37
|
-
ariaLabel = _ref.ariaLabel
|
|
38
|
-
|
|
69
|
+
ariaLabel = _ref.ariaLabel;
|
|
70
|
+
var iconOnly = !content;
|
|
71
|
+
var onButtonClick = (0, _react.useCallback)(function (handler) {
|
|
72
|
+
return function (e) {
|
|
73
|
+
e.preventDefault();
|
|
74
|
+
handler();
|
|
75
|
+
};
|
|
76
|
+
}, []);
|
|
77
|
+
var button = (0, _react.useMemo)(function () {
|
|
78
|
+
var isLinkButton = !!href;
|
|
79
|
+
var spacing = size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'default' : 'compact';
|
|
80
|
+
if (iconOnly) {
|
|
81
|
+
var icon = iconBefore || iconAfter;
|
|
82
|
+
var iconFn = function iconFn() {
|
|
83
|
+
return icon || null;
|
|
84
|
+
};
|
|
85
|
+
if (isLinkButton) {
|
|
86
|
+
return /*#__PURE__*/_react.default.createElement(_new.LinkIconButton, {
|
|
87
|
+
appearance: IconButtonAppearanceMap[appearance],
|
|
88
|
+
icon: iconFn,
|
|
89
|
+
href: href,
|
|
90
|
+
isDisabled: isDisabled,
|
|
91
|
+
isTooltipDisabled: false,
|
|
92
|
+
label: tooltipMessage,
|
|
93
|
+
onClick: onButtonClick(onClick),
|
|
94
|
+
spacing: spacing,
|
|
95
|
+
testId: testId,
|
|
96
|
+
tooltip: tooltipOptions
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
return /*#__PURE__*/_react.default.createElement(_new.IconButton, {
|
|
100
|
+
appearance: IconButtonAppearanceMap[appearance],
|
|
101
|
+
icon: iconFn,
|
|
102
|
+
isDisabled: isDisabled,
|
|
103
|
+
isLoading: isLoading,
|
|
104
|
+
isTooltipDisabled: false,
|
|
105
|
+
label: tooltipMessage,
|
|
106
|
+
onClick: onButtonClick(onClick),
|
|
107
|
+
spacing: spacing,
|
|
108
|
+
testId: testId,
|
|
109
|
+
tooltip: tooltipOptions
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
var iconBeforeFn = function iconBeforeFn() {
|
|
113
|
+
return iconBefore || null;
|
|
114
|
+
};
|
|
115
|
+
var iconAfterFn = function iconAfterFn() {
|
|
116
|
+
return iconAfter || null;
|
|
117
|
+
};
|
|
118
|
+
if (isLinkButton) {
|
|
119
|
+
return /*#__PURE__*/_react.default.createElement(_new.LinkButton, {
|
|
120
|
+
appearance: ButtonAppearanceMap[appearance],
|
|
121
|
+
"aria-label": ariaLabel,
|
|
122
|
+
iconAfter: iconAfterFn,
|
|
123
|
+
iconBefore: iconBeforeFn,
|
|
124
|
+
isDisabled: isDisabled,
|
|
125
|
+
href: href,
|
|
126
|
+
onClick: onButtonClick(onClick),
|
|
127
|
+
spacing: spacing,
|
|
128
|
+
testId: testId
|
|
129
|
+
}, content);
|
|
130
|
+
}
|
|
131
|
+
return /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
132
|
+
appearance: ButtonAppearanceMap[appearance],
|
|
133
|
+
"aria-label": ariaLabel,
|
|
134
|
+
iconAfter: iconAfterFn,
|
|
135
|
+
iconBefore: iconBeforeFn,
|
|
136
|
+
isDisabled: isDisabled,
|
|
137
|
+
isLoading: isLoading,
|
|
138
|
+
onClick: onButtonClick(onClick),
|
|
139
|
+
spacing: spacing,
|
|
140
|
+
testId: testId
|
|
141
|
+
}, content);
|
|
142
|
+
}, [appearance, ariaLabel, content, href, iconAfter, iconBefore, iconOnly, isDisabled, isLoading, onButtonClick, onClick, size, testId, tooltipMessage]);
|
|
143
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
144
|
+
testId: "".concat(testId, "-button-wrapper"),
|
|
145
|
+
ref: ref
|
|
146
|
+
}, button);
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// On cleanup of platform-linking-visual-refresh-v1, this should become
|
|
150
|
+
// export default withOverrideCss(ActionButton);
|
|
151
|
+
var ActionButtonRefreshNewWithOverrideCss = (0, _withOverrideCss.withOverrideCss)(ActionButtonRefreshNew);
|
|
152
|
+
|
|
153
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
154
|
+
var ActionButtonNew = function ActionButtonNew(_ref2) {
|
|
155
|
+
var _ref2$appearance = _ref2.appearance,
|
|
156
|
+
appearance = _ref2$appearance === void 0 ? 'default' : _ref2$appearance,
|
|
157
|
+
content = _ref2.content,
|
|
158
|
+
iconAfter = _ref2.iconAfter,
|
|
159
|
+
iconBefore = _ref2.iconBefore,
|
|
160
|
+
isLoading = _ref2.isLoading,
|
|
161
|
+
onClick = _ref2.onClick,
|
|
162
|
+
size = _ref2.size,
|
|
163
|
+
testId = _ref2.testId,
|
|
164
|
+
tooltipMessage = _ref2.tooltipMessage,
|
|
165
|
+
isDisabled = _ref2.isDisabled,
|
|
166
|
+
href = _ref2.href,
|
|
167
|
+
ariaLabel = _ref2.ariaLabel,
|
|
168
|
+
className = _ref2.className;
|
|
39
169
|
var iconOnly = !content;
|
|
40
170
|
var onButtonClick = (0, _react.useCallback)(function (handler) {
|
|
41
171
|
return function (e) {
|
|
@@ -65,6 +195,9 @@ var ActionButtonNew = function ActionButtonNew(_ref) {
|
|
|
65
195
|
}, content)));
|
|
66
196
|
};
|
|
67
197
|
var ActionButton = function ActionButton(props) {
|
|
68
|
-
|
|
198
|
+
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
199
|
+
return (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? /*#__PURE__*/_react.default.createElement(ActionButtonRefreshNewWithOverrideCss, props) : /*#__PURE__*/_react.default.createElement(ActionButtonNew, props);
|
|
200
|
+
}
|
|
201
|
+
return /*#__PURE__*/_react.default.createElement(_ActionButtonOld.default, props);
|
|
69
202
|
};
|
|
70
203
|
var _default = exports.default = ActionButton;
|
|
@@ -26,16 +26,19 @@ var getIconWidth = function getIconWidth(size) {
|
|
|
26
26
|
return '1rem';
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
+
|
|
30
|
+
// TODO: Remove on fg cleanup: platform-visual-refresh-icons
|
|
29
31
|
var iconSizeStyleMap = {
|
|
30
32
|
'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",
|
|
31
33
|
'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",
|
|
32
34
|
'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"
|
|
33
35
|
};
|
|
34
36
|
|
|
35
|
-
// TODO: Remove on fg cleanup: platform-
|
|
37
|
+
// TODO: Remove on fg cleanup: platform-visual-refresh-icons
|
|
36
38
|
var stackItemIconStylesOld = null;
|
|
37
39
|
var stackItemIconStylesCompiled = null;
|
|
38
|
-
|
|
40
|
+
|
|
41
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
39
42
|
var iconStyleMap = {
|
|
40
43
|
true: "_syaz2oi6",
|
|
41
44
|
false: "_syazwdcn"
|
|
@@ -49,12 +52,12 @@ var ActionIconNew = function ActionIconNew(_ref) {
|
|
|
49
52
|
if (!(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
|
|
50
53
|
return /*#__PURE__*/React.createElement("span", {
|
|
51
54
|
"data-testid": "".concat(testId, "-icon"),
|
|
52
|
-
className: (0, _runtime.ax)([iconStyleMap[isDisabled ? 'true' : 'false'], asStackItemIcon && "_1e0c1o8l _ca0qv77o _u5f3v77o _n3tdv77o _19bvv77o", asStackItemIcon && iconSizeStyleMap['20px'], !asStackItemIcon && iconSizeStyleMap[getIconWidth(size)]])
|
|
55
|
+
className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && iconStyleMap[isDisabled ? 'true' : 'false'], asStackItemIcon && "_1e0c1o8l _ca0qv77o _u5f3v77o _n3tdv77o _19bvv77o", asStackItemIcon && iconSizeStyleMap['20px'], !asStackItemIcon && iconSizeStyleMap[getIconWidth(size)]])
|
|
53
56
|
}, icon);
|
|
54
57
|
}
|
|
55
58
|
return /*#__PURE__*/React.createElement("span", {
|
|
56
59
|
"data-testid": "".concat(testId, "-icon"),
|
|
57
|
-
className: (0, _runtime.ax)([
|
|
60
|
+
className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && iconStyleMap[isDisabled ? 'true' : 'false'], "_1e0c1o8l"])
|
|
58
61
|
}, icon);
|
|
59
62
|
};
|
|
60
63
|
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)}
|
package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -12,6 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
+
var _css = require("@atlaskit/css");
|
|
15
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
18
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
@@ -20,11 +21,12 @@ var _actionIcon = _interopRequireDefault(require("../action-icon"));
|
|
|
20
21
|
var _actionButtonOld = _interopRequireDefault(require("./action-buttonOld"));
|
|
21
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
-
var
|
|
24
|
+
var stylesOld = {
|
|
24
25
|
button: "_kkk2n7od _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _1bsb1osq _irr3166n _1di61dty",
|
|
25
26
|
content: "_11c8qk37 _syaz1fxt"
|
|
26
27
|
};
|
|
27
|
-
var
|
|
28
|
+
var styles = {
|
|
29
|
+
button: "_bfhksm61 _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _1bsb1osq _1ah31i6y _irr3166n _1di61dty",
|
|
28
30
|
content: "_11c81vlj _syaz1fxt"
|
|
29
31
|
};
|
|
30
32
|
var ActionButtonNew = function ActionButtonNew(_ref) {
|
|
@@ -52,7 +54,7 @@ var ActionButtonNew = function ActionButtonNew(_ref) {
|
|
|
52
54
|
size: size
|
|
53
55
|
}) : iconOption;
|
|
54
56
|
return /*#__PURE__*/React.createElement(_compiled.Pressable, (0, _extends2.default)({
|
|
55
|
-
xcss: styles.button
|
|
57
|
+
xcss: (0, _css.cx)(!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && stylesOld.button, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && styles.button)
|
|
56
58
|
}, tooltipProps, {
|
|
57
59
|
onClick: onClick,
|
|
58
60
|
testId: testId
|
|
@@ -64,7 +66,7 @@ var ActionButtonNew = function ActionButtonNew(_ref) {
|
|
|
64
66
|
grow: "fill",
|
|
65
67
|
space: space
|
|
66
68
|
}, icon, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
67
|
-
xcss: (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')
|
|
69
|
+
xcss: (0, _css.cx)(!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && stylesOld.content, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && styles.content)
|
|
68
70
|
}, content)));
|
|
69
71
|
};
|
|
70
72
|
var ActionButton = function ActionButton(props) {
|
|
@@ -50,13 +50,13 @@ var ActionNew = function ActionNew(_ref) {
|
|
|
50
50
|
}
|
|
51
51
|
var isStackItem = as === 'stack-item';
|
|
52
52
|
var isDropdownItem = as === 'dropdown-item' || asDropDownItem;
|
|
53
|
-
var actionIcon = icon
|
|
53
|
+
var actionIcon = icon ? /*#__PURE__*/_react.default.createElement(_actionIcon.default, {
|
|
54
54
|
asStackItemIcon: isStackItem,
|
|
55
55
|
isDisabled: isDisabled,
|
|
56
56
|
icon: icon,
|
|
57
57
|
size: size,
|
|
58
58
|
testId: testId
|
|
59
|
-
});
|
|
59
|
+
}) : undefined;
|
|
60
60
|
var iconBefore = icon && iconPosition === 'before' ? actionIcon : undefined;
|
|
61
61
|
var iconAfter = icon && iconPosition === 'after' ? actionIcon : undefined;
|
|
62
62
|
if (isStackItem) {
|
package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css
CHANGED
|
@@ -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%}
|
|
@@ -20,6 +20,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
20
20
|
var containerStyles = null;
|
|
21
21
|
var errorStyles = null;
|
|
22
22
|
var styles = {
|
|
23
|
+
containerStyles: "_kkk2n7od _2rkoglpi _1rjc12x7 _18zru2gc _19pku2gc _2hwxu2gc _otyrze3t _18u0u2gc _1bsb1osq _fiawglyw",
|
|
23
24
|
errorContentStyles: "_bozgv77o",
|
|
24
25
|
titleStyles: "_11c8qk37 _syaz1gjq"
|
|
25
26
|
};
|
|
@@ -44,6 +45,27 @@ var ActionFooterNew = function ActionFooterNew(_ref) {
|
|
|
44
45
|
if (!message) {
|
|
45
46
|
return null;
|
|
46
47
|
}
|
|
48
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
49
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
50
|
+
backgroundColor: message.appearance === 'error' ? 'color.background.danger' : undefined,
|
|
51
|
+
testId: "".concat(testId, "-footer"),
|
|
52
|
+
style: {
|
|
53
|
+
width: "calc(100% - var(--container-padding-left) - var(--container-padding-right))"
|
|
54
|
+
},
|
|
55
|
+
xcss: styles.containerStyles
|
|
56
|
+
}, /*#__PURE__*/React.createElement(_motionWrapper.default, {
|
|
57
|
+
isFadeIn: true,
|
|
58
|
+
show: true,
|
|
59
|
+
showTransition: true
|
|
60
|
+
}, /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
61
|
+
alignBlock: "start",
|
|
62
|
+
grow: "fill",
|
|
63
|
+
space: "space.075",
|
|
64
|
+
xcss: styles.errorContentStyles
|
|
65
|
+
}, message.icon || getIcon(message.appearance), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
66
|
+
xcss: styles.titleStyles
|
|
67
|
+
}, message.title))));
|
|
68
|
+
}
|
|
47
69
|
return /*#__PURE__*/React.createElement("div", {
|
|
48
70
|
"data-testId": "".concat(testId, "-footer"),
|
|
49
71
|
className: (0, _runtime.ax)(["_kkk2n7od _2rkoglpi _1yt412x7 _18zru2gc _19pku2gc _2hwxu2gc _otyrze3t _18u0u2gc _vwz4gktf _1bsb1osq _fiawglyw", message.appearance === 'error' && "_bfhk1gly"])
|
|
@@ -112,7 +112,7 @@ var ActionBlockNew = function ActionBlockNew(_ref) {
|
|
|
112
112
|
return actions ? /*#__PURE__*/React.createElement("div", {
|
|
113
113
|
ref: blockRef,
|
|
114
114
|
"data-testid": testId,
|
|
115
|
-
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')
|
|
115
|
+
className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb1osq _18u01ivi _2hwxc10g", (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb129b _18u01ivi _2hwxc10g"])
|
|
116
116
|
}, actions, /*#__PURE__*/React.createElement(_actionFooter.ActionFooter, {
|
|
117
117
|
message: message,
|
|
118
118
|
testId: testId
|
|
@@ -30,8 +30,11 @@ var _utils2 = require("../utils");
|
|
|
30
30
|
var _actionGroupItem = _interopRequireDefault(require("./action-group-item"));
|
|
31
31
|
var _ActionGroupOld = _interopRequireDefault(require("./ActionGroupOld"));
|
|
32
32
|
var _excluded = ["triggerRef"];
|
|
33
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
|
|
33
34
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
34
35
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
36
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
37
|
+
var stylesOld = null;
|
|
35
38
|
var styles = null;
|
|
36
39
|
var renderActionItems = function renderActionItems() {
|
|
37
40
|
var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -129,7 +132,7 @@ var ActionGroupNew = function ActionGroupNew(_ref) {
|
|
|
129
132
|
}, [appearance, isMoreThenTwoItems, isOpen, onActionItemClick, onOpenChange, renderableActionItems, size, ui === null || ui === void 0 ? void 0 : ui.zIndex, visibleButtonsNum]);
|
|
130
133
|
return renderableActionItems.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
131
134
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
132
|
-
className: (0, _runtime.ax)(["_1e0c116y _vwz41j6v _dzc21h6o _1ilq1i6y", "actions-button-group"]),
|
|
135
|
+
className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_1e0c116y _vwz41j6v _dzc21h6o _1ilq1i6y", (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_1e0c116y _dzc21h6o _1ilq1i6y", "actions-button-group"]),
|
|
133
136
|
"data-action-open": isOpen
|
|
134
137
|
}, /*#__PURE__*/React.createElement(_buttonGroup.default, null, actionButtons, moreActionDropdown)) : null;
|
|
135
138
|
};
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
11
|
var _constants = require("../../../../../../constants");
|
|
11
12
|
var _flexibleUiContext = require("../../../../../../state/flexible-ui-context");
|
|
12
13
|
var _elements = require("../../../elements");
|
|
@@ -19,9 +20,11 @@ var AIFooterBlockResolvedView = function AIFooterBlockResolvedView(props) {
|
|
|
19
20
|
var testId = props.testId;
|
|
20
21
|
return /*#__PURE__*/_react.default.createElement(_block.default, (0, _extends2.default)({}, props, {
|
|
21
22
|
testId: "".concat(testId, "-resolved-view")
|
|
22
|
-
}), /*#__PURE__*/_react.default.createElement(_elements.Provider, {
|
|
23
|
+
}), /*#__PURE__*/_react.default.createElement(_elements.Provider, (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? {
|
|
24
|
+
appearance: 'subtle'
|
|
25
|
+
} : {}, {
|
|
23
26
|
testId: "".concat(testId, "-provider")
|
|
24
|
-
}), actionData ? /*#__PURE__*/_react.default.createElement(_aiFooterMetadata.AIFooterMetadata, (0, _extends2.default)({}, actionData, {
|
|
27
|
+
})), actionData ? /*#__PURE__*/_react.default.createElement(_aiFooterMetadata.AIFooterMetadata, (0, _extends2.default)({}, actionData, {
|
|
25
28
|
testId: "".concat(testId, "-ai-metadata")
|
|
26
29
|
})) : null);
|
|
27
30
|
};
|
|
@@ -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}
|
|
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
|
"use strict";
|
|
3
4
|
|
|
4
5
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -17,14 +18,24 @@ var _utils = require("../utils");
|
|
|
17
18
|
var _indexOld = _interopRequireDefault(require("./indexOld"));
|
|
18
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
-
|
|
21
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
22
|
+
var BaseBlockStylesOld = null;
|
|
23
|
+
var baseBlockStyles = null;
|
|
21
24
|
var highlightRemoveStyles = null;
|
|
22
|
-
|
|
25
|
+
|
|
26
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
27
|
+
var gapsStylesOld = {
|
|
23
28
|
xlarge: "_zulp1k92 _1ljq1k92",
|
|
24
29
|
large: "_zulp1j6v _1ljq1j6v",
|
|
25
30
|
medium: "_zulp1kwk _1ljq1kwk",
|
|
26
31
|
small: "_zulp6mu8 _1ljq6mu8"
|
|
27
32
|
};
|
|
33
|
+
var gapStyles = {
|
|
34
|
+
xlarge: "_zulpv47k _1ljqv47k",
|
|
35
|
+
large: "_zulppxbi _1ljqpxbi",
|
|
36
|
+
medium: "_zulpu2gc _1ljqu2gc",
|
|
37
|
+
small: "_zulp1b66 _1ljq1b66"
|
|
38
|
+
};
|
|
28
39
|
var directionStyles = {
|
|
29
40
|
vertical: "_2lx21bp4 _4cvr1y6m",
|
|
30
41
|
horizontal: "_2lx2vrvc _4cvr1h6o"
|
|
@@ -55,7 +66,7 @@ var BlockNew = function BlockNew(_ref) {
|
|
|
55
66
|
}, [onRender]);
|
|
56
67
|
return /*#__PURE__*/React.createElement("div", {
|
|
57
68
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
58
|
-
className: (0, _runtime.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],
|
|
69
|
+
className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_1reo15vq _18m915vq _4cvr1h6o _vwz41j6v _1e0c1txw _1ul9idpf _1bah1y6m _fiawglyw _1ouwidpf _f6ju1ns9 _1uzp1mp2 _ytq1bjq5 _a7e8uxlv", (0, _platformFeatureFlags.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], !(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && gapsStylesOld[size], (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && gapStyles[size], className]),
|
|
59
70
|
"data-smart-block": true,
|
|
60
71
|
"data-testid": testId,
|
|
61
72
|
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
|
-
.
|
|
30
|
-
.
|
|
31
|
-
.
|
|
32
|
-
.
|
|
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
|
-
.
|
|
39
|
-
.
|
|
40
|
-
.
|
|
41
|
-
.
|
|
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)}}
|
|
@@ -30,16 +30,17 @@ var baseStyleBySizeOld = {
|
|
|
30
30
|
small: "_zulppdf9 _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz41j6v"
|
|
31
31
|
};
|
|
32
32
|
var baseStyleBySize = {
|
|
33
|
-
xlarge: "_zulpv47k _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf
|
|
34
|
-
large: "_zulppxbi _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf
|
|
35
|
-
medium: "_zulpu2gc _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf
|
|
36
|
-
small: "_zulp1b66 _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf
|
|
33
|
+
xlarge: "_zulpv47k _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf",
|
|
34
|
+
large: "_zulppxbi _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf",
|
|
35
|
+
medium: "_zulpu2gc _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf",
|
|
36
|
+
small: "_zulp1b66 _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf"
|
|
37
37
|
};
|
|
38
38
|
var baseStyleByDirection = {
|
|
39
39
|
horizontal: "_2lx2vrvc _4cvr1h6o",
|
|
40
40
|
vertical: "_2lx21bp4 _4cvr1y6m"
|
|
41
41
|
};
|
|
42
|
-
var
|
|
42
|
+
var baseStyleOld = null;
|
|
43
|
+
var baseStyles = null;
|
|
43
44
|
var widthStyle = {
|
|
44
45
|
flexible: "_16jlkb7n _1o9z11wp _i0dlf1ug",
|
|
45
46
|
'fit-to-content': ""
|
|
@@ -49,23 +50,31 @@ var positionStyle = {
|
|
|
49
50
|
center: ""
|
|
50
51
|
};
|
|
51
52
|
var horizontalStyleBase = null;
|
|
52
|
-
|
|
53
|
+
|
|
54
|
+
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
55
|
+
var horizontalStyleByHeightOld = {
|
|
53
56
|
xlarge: "_1e0ccj1k _102k1m1q",
|
|
54
57
|
large: "_1e0ccj1k _102k1m1q",
|
|
55
58
|
medium: "_1e0ccj1k _102k1k8s",
|
|
56
59
|
small: "_1e0ccj1k _102k1k8s"
|
|
57
60
|
};
|
|
61
|
+
var horizontalStyleByHeight = {
|
|
62
|
+
xlarge: "_1e0ccj1k _102k125z",
|
|
63
|
+
large: "_1e0ccj1k _102k125z",
|
|
64
|
+
medium: "_1e0ccj1k _102kz42d",
|
|
65
|
+
small: "_1e0ccj1k _102kz42d"
|
|
66
|
+
};
|
|
58
67
|
var gapStylesLeft = {
|
|
59
|
-
xlarge: "
|
|
60
|
-
large: "
|
|
61
|
-
medium: "
|
|
62
|
-
small: "
|
|
68
|
+
xlarge: "_7yhbv47k _m6ukidpf",
|
|
69
|
+
large: "_7yhbpxbi _m6ukidpf",
|
|
70
|
+
medium: "_7yhbu2gc _m6ukidpf",
|
|
71
|
+
small: "_7yhb1b66 _m6ukidpf"
|
|
63
72
|
};
|
|
64
73
|
var gapStylesRight = {
|
|
65
|
-
xlarge: "
|
|
66
|
-
large: "
|
|
67
|
-
medium: "
|
|
68
|
-
small: "
|
|
74
|
+
xlarge: "_24rcv47k _3dveidpf",
|
|
75
|
+
large: "_24rcpxbi _3dveidpf",
|
|
76
|
+
medium: "_24rcu2gc _3dveidpf",
|
|
77
|
+
small: "_24rc1b66 _3dveidpf"
|
|
69
78
|
};
|
|
70
79
|
var minWidthStyle = null;
|
|
71
80
|
|
|
@@ -97,7 +106,7 @@ var ElementGroupNew = function ElementGroupNew(_ref) {
|
|
|
97
106
|
"data-testid": testId
|
|
98
107
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
99
108
|
,
|
|
100
|
-
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')
|
|
109
|
+
className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && baseStyleBySizeOld[size], (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && baseStyleBySize[size], baseStyleByDirection[direction], !(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_fiawglyw _1ouwidpf _f6ju1ns9", (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_fiawglyw", alignmentStyleMap[align], "_1ul99by0", widthStyle[width], isHorizontal && "_1reo15vq _18m915vq _1e0c1ule _s7n4nkob _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _1aaynkob _15tynkob _1iu61nu9 _166k1nu9 _1div1nu9 _bmfb1nu9", isHorizontal && !(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && horizontalStyleByHeightOld[size], isHorizontal && (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && horizontalStyleByHeight[size], isHorizontal && align === _constants.SmartLinkAlignment.Left && gapStylesLeft[size], isHorizontal && align === _constants.SmartLinkAlignment.Right && gapStylesRight[size], positionStyle[position], className])
|
|
101
110
|
}, (0, _utils.renderChildren)(children, size));
|
|
102
111
|
};
|
|
103
112
|
var ElementGroup = function ElementGroup(props) {
|