@atlaskit/smart-card 27.6.1 → 27.6.3

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 (26) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/EmbedCard/components/styled.js +2 -2
  4. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -15
  5. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  6. package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +5 -3
  7. package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +3 -1
  8. package/dist/cjs/view/LinkUrl/index.js +1 -1
  9. package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +6 -2
  10. package/dist/es2019/utils/analytics/analytics.js +1 -1
  11. package/dist/es2019/view/EmbedCard/components/styled.js +2 -2
  12. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -16
  13. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  14. package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +6 -4
  15. package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +3 -1
  16. package/dist/es2019/view/LinkUrl/index.js +1 -1
  17. package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +6 -2
  18. package/dist/esm/utils/analytics/analytics.js +1 -1
  19. package/dist/esm/view/EmbedCard/components/styled.js +2 -2
  20. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -16
  21. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  22. package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +6 -4
  23. package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +3 -1
  24. package/dist/esm/view/LinkUrl/index.js +1 -1
  25. package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +6 -2
  26. package/package.json +20 -20
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 27.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 27.6.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#112295](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112295)
14
+ [`e8037887d2086`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e8037887d2086) -
15
+ Migration of Box button primitives to the Pressable primitive.
16
+ - Updated dependencies
17
+
3
18
  ## 27.6.1
4
19
 
5
20
  ### Patch Changes
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
22
22
  var context = exports.context = {
23
23
  componentName: 'smart-cards',
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "27.6.1"
25
+ packageVersion: "27.6.3"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -119,7 +119,7 @@ csssize(16),
119
119
  function (_ref9) {
120
120
  var isPlaceholder = _ref9.isPlaceholder;
121
121
  if (isPlaceholder) {
122
- return "\n// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766\n background-color: ".concat("var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
122
+ return "\n\t\t\t".concat("\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
123
123
  } else {
124
124
  return '';
125
125
  }
@@ -133,7 +133,7 @@ var TextWrapper = exports.TextWrapper = _styled.default.div(
133
133
  function (_ref10) {
134
134
  var isPlaceholder = _ref10.isPlaceholder;
135
135
  if (isPlaceholder) {
136
- return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
136
+ return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n", "\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
137
137
  } else {
138
138
  return '';
139
139
  }
@@ -16,21 +16,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
16
16
  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 && Object.prototype.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; }
17
17
  var buttonStyles = (0, _primitives.xcss)({
18
18
  all: 'unset',
19
- cursor: 'pointer',
20
19
  padding: 'space.050',
21
20
  width: '100%',
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
23
- ':focus:not(:focus-visible)': {
24
- outline: 'none'
25
- },
26
- ':focus': {
27
- outlineColor: 'color.border.focused',
28
- // xcss outlineOffset does not support space.negative.025
29
- // @ts-ignore-next-line TS2322: Type "var(--ds-space-negative-025)" is not assignable to type
30
- outlineOffset: "var(--ds-space-negative-025, -2px)",
31
- outlineStyle: 'solid',
32
- outlineWidth: 'border.width.outline'
33
- },
34
21
  ':hover': {
35
22
  backgroundColor: 'color.background.neutral.subtle.hovered'
36
23
  },
@@ -71,8 +58,7 @@ var ActionButton = function ActionButton(_ref) {
71
58
  }),
72
59
  size: size
73
60
  }) : iconOption;
74
- return /*#__PURE__*/_react.default.createElement(_primitives.Box, (0, _extends2.default)({
75
- as: "button",
61
+ return /*#__PURE__*/_react.default.createElement(_primitives.Pressable, (0, _extends2.default)({
76
62
  xcss: [buttonStyles, xcss]
77
63
  }, tooltipProps, {
78
64
  onClick: onClick,
@@ -90,7 +90,7 @@ var ActionBlock = function ActionBlock(_ref) {
90
90
  onError: onError,
91
91
  onLoadingChange: onLoadingChange,
92
92
  size: size
93
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
93
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
94
94
  ,
95
95
  xcss: (0, _primitives.xcss)({
96
96
  paddingInline: padding
@@ -36,15 +36,17 @@ var RelatedUrlList = function RelatedUrlList(_ref) {
36
36
  }, [isOpen]);
37
37
  var ChevronComponent = isOpen ? _chevronUp.default : _chevronDown.default;
38
38
  var intl = (0, _reactIntlNext.useIntl)();
39
- return resolvedResults.length > 0 ? /*#__PURE__*/_react.default.createElement(_primitives.Stack, {
39
+ return resolvedResults.length > 0 ?
40
+ /*#__PURE__*/
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
42
+ _react.default.createElement(_primitives.Stack, {
40
43
  testId: testId,
41
44
  xcss: (0, _primitives.xcss)({
42
45
  width: '100%'
43
46
  })
44
- }, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
47
+ }, /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
45
48
  onClick: chevronClickHandler,
46
49
  testId: "".concat(testId, "-expand-title"),
47
- as: "button",
48
50
  backgroundColor: "color.background.neutral.subtle",
49
51
  "aria-expanded": !!isOpen,
50
52
  padding: "space.0"
@@ -28,7 +28,9 @@ var ResolvedResultsStack = function ResolvedResultsStack(_ref) {
28
28
  return /*#__PURE__*/_react.default.createElement(_primitives.Stack, {
29
29
  space: "space.050",
30
30
  testId: "".concat(testId, "-items-wrapper"),
31
- as: "ul",
31
+ as: "ul"
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
33
+ ,
32
34
  xcss: (0, _primitives.xcss)({
33
35
  paddingLeft: 'space.0',
34
36
  marginTop: 'space.0'
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
17
17
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
18
18
  var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "27.6.1",
20
+ packageVersion: "27.6.3",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -21,7 +21,9 @@ var RelatedLinksList = function RelatedLinksList(_ref) {
21
21
  return (0, _react.jsx)(_primitives.Stack, {
22
22
  testId: testId
23
23
  }, (0, _react.jsx)(_primitives.Box, {
24
- paddingBlockStart: "space.050",
24
+ paddingBlockStart: "space.050"
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
26
+ ,
25
27
  xcss: (0, _primitives.xcss)({
26
28
  font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
27
29
  textTransform: 'uppercase'
@@ -33,7 +35,9 @@ var RelatedLinksList = function RelatedLinksList(_ref) {
33
35
  url: url,
34
36
  testId: "".concat(testId, "-item-").concat(idx)
35
37
  }));
36
- })), urls.length === 0 && (0, _react.jsx)(_primitives.Box, {
38
+ })), urls.length === 0 &&
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
40
+ (0, _react.jsx)(_primitives.Box, {
37
41
  paddingBlock: "space.100",
38
42
  xcss: (0, _primitives.xcss)({
39
43
  font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "27.6.1"
7
+ packageVersion: "27.6.3"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -184,7 +184,7 @@ csssize(16),
184
184
  }) => {
185
185
  if (isPlaceholder) {
186
186
  return `
187
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
187
+ ${/* eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766 */''}
188
188
  background-color: ${`var(--ds-skeleton, ${colors.N30})`};
189
189
  `;
190
190
  } else {
@@ -205,7 +205,7 @@ export const TextWrapper = styled.div(
205
205
  ${borderRadius}
206
206
  width: 125px;
207
207
  height: 12px;
208
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
208
+ ${/* eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766 */''}
209
209
  background-color: ${`var(--ds-skeleton, ${colors.N30})`};
210
210
  `;
211
211
  } else {
@@ -1,27 +1,14 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import { xcss } from '@atlaskit/primitives';
3
- import { Box, Inline } from '@atlaskit/primitives';
3
+ import { Box, Inline, Pressable } from '@atlaskit/primitives';
4
4
  import Spinner from '@atlaskit/spinner';
5
5
  import React, { useCallback } from 'react';
6
6
  import { getPrimitivesInlineSpaceBySize } from '../../../utils';
7
7
  import ActionIcon from '../action-icon';
8
8
  const buttonStyles = xcss({
9
9
  all: 'unset',
10
- cursor: 'pointer',
11
10
  padding: 'space.050',
12
11
  width: '100%',
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
14
- ':focus:not(:focus-visible)': {
15
- outline: 'none'
16
- },
17
- ':focus': {
18
- outlineColor: 'color.border.focused',
19
- // xcss outlineOffset does not support space.negative.025
20
- // @ts-ignore-next-line TS2322: Type "var(--ds-space-negative-025)" is not assignable to type
21
- outlineOffset: "var(--ds-space-negative-025, -2px)",
22
- outlineStyle: 'solid',
23
- outlineWidth: 'border.width.outline'
24
- },
25
12
  ':hover': {
26
13
  backgroundColor: 'color.background.neutral.subtle.hovered'
27
14
  },
@@ -63,8 +50,7 @@ const ActionButton = ({
63
50
  }),
64
51
  size: size
65
52
  }) : iconOption;
66
- return /*#__PURE__*/React.createElement(Box, _extends({
67
- as: "button",
53
+ return /*#__PURE__*/React.createElement(Pressable, _extends({
68
54
  xcss: [buttonStyles, xcss]
69
55
  }, tooltipProps, {
70
56
  onClick: onClick,
@@ -70,7 +70,7 @@ const ActionBlock = ({
70
70
  onError: onError,
71
71
  onLoadingChange: onLoadingChange,
72
72
  size: size
73
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
74
74
  ,
75
75
  xcss: xcss({
76
76
  paddingInline: padding
@@ -2,7 +2,7 @@ import React, { useCallback, useState } from 'react';
2
2
  import { useIntl } from 'react-intl-next';
3
3
  import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
4
4
  import ChevronUpIcon from '@atlaskit/icon/glyph/chevron-up';
5
- import { Box, Inline, Stack, xcss } from '@atlaskit/primitives';
5
+ import { Inline, Pressable, Stack, xcss } from '@atlaskit/primitives';
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css } from '@emotion/react';
8
8
  import { messages } from '../../../../../../../messages';
@@ -20,15 +20,17 @@ const RelatedUrlList = ({
20
20
  const chevronClickHandler = useCallback(() => setIsOpen(!isOpen), [isOpen]);
21
21
  const ChevronComponent = isOpen ? ChevronUpIcon : ChevronDownIcon;
22
22
  const intl = useIntl();
23
- return resolvedResults.length > 0 ? /*#__PURE__*/React.createElement(Stack, {
23
+ return resolvedResults.length > 0 ?
24
+ /*#__PURE__*/
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
26
+ React.createElement(Stack, {
24
27
  testId: testId,
25
28
  xcss: xcss({
26
29
  width: '100%'
27
30
  })
28
- }, /*#__PURE__*/React.createElement(Box, {
31
+ }, /*#__PURE__*/React.createElement(Pressable, {
29
32
  onClick: chevronClickHandler,
30
33
  testId: `${testId}-expand-title`,
31
- as: "button",
32
34
  backgroundColor: "color.background.neutral.subtle",
33
35
  "aria-expanded": !!isOpen,
34
36
  padding: "space.0"
@@ -20,7 +20,9 @@ const ResolvedResultsStack = ({
20
20
  return /*#__PURE__*/React.createElement(Stack, {
21
21
  space: "space.050",
22
22
  testId: `${testId}-items-wrapper`,
23
- as: "ul",
23
+ as: "ul"
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
25
+ ,
24
26
  xcss: xcss({
25
27
  paddingLeft: 'space.0',
26
28
  marginTop: 'space.0'
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
7
7
  import LinkWarningModal from './LinkWarningModal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "27.6.1",
10
+ packageVersion: "27.6.3",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -14,7 +14,9 @@ const RelatedLinksList = ({
14
14
  return jsx(Stack, {
15
15
  testId: testId
16
16
  }, jsx(Box, {
17
- paddingBlockStart: "space.050",
17
+ paddingBlockStart: "space.050"
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
19
+ ,
18
20
  xcss: xcss({
19
21
  font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
20
22
  textTransform: 'uppercase'
@@ -24,7 +26,9 @@ const RelatedLinksList = ({
24
26
  }, jsx(RelatedLinkItem, {
25
27
  url: url,
26
28
  testId: `${testId}-item-${idx}`
27
- })))), urls.length === 0 && jsx(Box, {
29
+ })))), urls.length === 0 &&
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
31
+ jsx(Box, {
28
32
  paddingBlock: "space.100",
29
33
  xcss: xcss({
30
34
  font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "27.6.1"
18
+ packageVersion: "27.6.3"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -110,7 +110,7 @@ csssize(16),
110
110
  function (_ref9) {
111
111
  var isPlaceholder = _ref9.isPlaceholder;
112
112
  if (isPlaceholder) {
113
- return "\n// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766\n background-color: ".concat("var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
113
+ return "\n\t\t\t".concat("\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
114
114
  } else {
115
115
  return '';
116
116
  }
@@ -124,7 +124,7 @@ export var TextWrapper = styled.div(
124
124
  function (_ref10) {
125
125
  var isPlaceholder = _ref10.isPlaceholder;
126
126
  if (isPlaceholder) {
127
- return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
127
+ return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n", "\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
128
128
  } else {
129
129
  return '';
130
130
  }
@@ -1,27 +1,14 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import { xcss } from '@atlaskit/primitives';
3
- import { Box, Inline } from '@atlaskit/primitives';
3
+ import { Box, Inline, Pressable } from '@atlaskit/primitives';
4
4
  import Spinner from '@atlaskit/spinner';
5
5
  import React, { useCallback } from 'react';
6
6
  import { getPrimitivesInlineSpaceBySize } from '../../../utils';
7
7
  import ActionIcon from '../action-icon';
8
8
  var buttonStyles = xcss({
9
9
  all: 'unset',
10
- cursor: 'pointer',
11
10
  padding: 'space.050',
12
11
  width: '100%',
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
14
- ':focus:not(:focus-visible)': {
15
- outline: 'none'
16
- },
17
- ':focus': {
18
- outlineColor: 'color.border.focused',
19
- // xcss outlineOffset does not support space.negative.025
20
- // @ts-ignore-next-line TS2322: Type "var(--ds-space-negative-025)" is not assignable to type
21
- outlineOffset: "var(--ds-space-negative-025, -2px)",
22
- outlineStyle: 'solid',
23
- outlineWidth: 'border.width.outline'
24
- },
25
12
  ':hover': {
26
13
  backgroundColor: 'color.background.neutral.subtle.hovered'
27
14
  },
@@ -62,8 +49,7 @@ var ActionButton = function ActionButton(_ref) {
62
49
  }),
63
50
  size: size
64
51
  }) : iconOption;
65
- return /*#__PURE__*/React.createElement(Box, _extends({
66
- as: "button",
52
+ return /*#__PURE__*/React.createElement(Pressable, _extends({
67
53
  xcss: [buttonStyles, xcss]
68
54
  }, tooltipProps, {
69
55
  onClick: onClick,
@@ -79,7 +79,7 @@ var ActionBlock = function ActionBlock(_ref) {
79
79
  onError: onError,
80
80
  onLoadingChange: onLoadingChange,
81
81
  size: size
82
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
82
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
83
83
  ,
84
84
  xcss: xcss({
85
85
  paddingInline: padding
@@ -3,7 +3,7 @@ import React, { useCallback, useState } from 'react';
3
3
  import { useIntl } from 'react-intl-next';
4
4
  import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
5
5
  import ChevronUpIcon from '@atlaskit/icon/glyph/chevron-up';
6
- import { Box, Inline, Stack, xcss } from '@atlaskit/primitives';
6
+ import { Inline, Pressable, Stack, xcss } from '@atlaskit/primitives';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css } from '@emotion/react';
9
9
  import { messages } from '../../../../../../../messages';
@@ -25,15 +25,17 @@ var RelatedUrlList = function RelatedUrlList(_ref) {
25
25
  }, [isOpen]);
26
26
  var ChevronComponent = isOpen ? ChevronUpIcon : ChevronDownIcon;
27
27
  var intl = useIntl();
28
- return resolvedResults.length > 0 ? /*#__PURE__*/React.createElement(Stack, {
28
+ return resolvedResults.length > 0 ?
29
+ /*#__PURE__*/
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
31
+ React.createElement(Stack, {
29
32
  testId: testId,
30
33
  xcss: xcss({
31
34
  width: '100%'
32
35
  })
33
- }, /*#__PURE__*/React.createElement(Box, {
36
+ }, /*#__PURE__*/React.createElement(Pressable, {
34
37
  onClick: chevronClickHandler,
35
38
  testId: "".concat(testId, "-expand-title"),
36
- as: "button",
37
39
  backgroundColor: "color.background.neutral.subtle",
38
40
  "aria-expanded": !!isOpen,
39
41
  padding: "space.0"
@@ -18,7 +18,9 @@ var ResolvedResultsStack = function ResolvedResultsStack(_ref) {
18
18
  return /*#__PURE__*/React.createElement(Stack, {
19
19
  space: "space.050",
20
20
  testId: "".concat(testId, "-items-wrapper"),
21
- as: "ul",
21
+ as: "ul"
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
23
+ ,
22
24
  xcss: xcss({
23
25
  paddingLeft: 'space.0',
24
26
  marginTop: 'space.0'
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
10
10
  import LinkWarningModal from './LinkWarningModal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "27.6.1",
13
+ packageVersion: "27.6.3",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
@@ -13,7 +13,9 @@ var RelatedLinksList = function RelatedLinksList(_ref) {
13
13
  return jsx(Stack, {
14
14
  testId: testId
15
15
  }, jsx(Box, {
16
- paddingBlockStart: "space.050",
16
+ paddingBlockStart: "space.050"
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
18
+ ,
17
19
  xcss: xcss({
18
20
  font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
19
21
  textTransform: 'uppercase'
@@ -25,7 +27,9 @@ var RelatedLinksList = function RelatedLinksList(_ref) {
25
27
  url: url,
26
28
  testId: "".concat(testId, "-item-").concat(idx)
27
29
  }));
28
- })), urls.length === 0 && jsx(Box, {
30
+ })), urls.length === 0 &&
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
32
+ jsx(Box, {
29
33
  paddingBlock: "space.100",
30
34
  xcss: xcss({
31
35
  font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "27.6.1",
3
+ "version": "27.6.3",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -33,13 +33,13 @@
33
33
  "@atlaskit/avatar": "^21.10.0",
34
34
  "@atlaskit/avatar-group": "^9.7.0",
35
35
  "@atlaskit/badge": "^16.2.0",
36
- "@atlaskit/button": "^17.17.0",
37
- "@atlaskit/checkbox": "^13.4.0",
38
- "@atlaskit/dropdown-menu": "^12.12.0",
39
- "@atlaskit/form": "^10.3.0",
36
+ "@atlaskit/button": "^17.22.0",
37
+ "@atlaskit/checkbox": "^13.5.0",
38
+ "@atlaskit/dropdown-menu": "^12.13.0",
39
+ "@atlaskit/form": "^10.4.0",
40
40
  "@atlaskit/frontend-utilities": "^2.7.0",
41
- "@atlaskit/heading": "^2.3.0",
42
- "@atlaskit/icon": "^22.3.0",
41
+ "@atlaskit/heading": "^2.4.0",
42
+ "@atlaskit/icon": "^22.4.0",
43
43
  "@atlaskit/icon-file-type": "^6.4.0",
44
44
  "@atlaskit/icon-object": "^6.4.0",
45
45
  "@atlaskit/icon-priority": "^6.3.0",
@@ -48,22 +48,22 @@
48
48
  "@atlaskit/link-extractors": "^1.5.0",
49
49
  "@atlaskit/linking-common": "^5.7.0",
50
50
  "@atlaskit/linking-types": "^8.9.0",
51
- "@atlaskit/logo": "^14.0.0",
52
- "@atlaskit/lozenge": "^11.7.0",
53
- "@atlaskit/menu": "^2.4.0",
54
- "@atlaskit/modal-dialog": "^12.13.0",
51
+ "@atlaskit/logo": "^14.1.0",
52
+ "@atlaskit/lozenge": "^11.8.0",
53
+ "@atlaskit/menu": "^2.5.0",
54
+ "@atlaskit/modal-dialog": "^12.14.0",
55
55
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
56
56
  "@atlaskit/platform-feature-flags": "^0.2.1",
57
- "@atlaskit/popup": "^1.18.0",
58
- "@atlaskit/primitives": "^7.3.0",
57
+ "@atlaskit/popup": "^1.19.0",
58
+ "@atlaskit/primitives": "^8.0.0",
59
59
  "@atlaskit/section-message": "^6.5.0",
60
- "@atlaskit/select": "^17.10.0",
61
- "@atlaskit/spinner": "^16.1.0",
62
- "@atlaskit/textarea": "^5.4.0",
63
- "@atlaskit/textfield": "^6.3.0",
64
- "@atlaskit/theme": "^12.9.0",
65
- "@atlaskit/tokens": "^1.50.0",
66
- "@atlaskit/tooltip": "^18.4.0",
60
+ "@atlaskit/select": "^17.11.0",
61
+ "@atlaskit/spinner": "^16.2.0",
62
+ "@atlaskit/textarea": "^5.5.0",
63
+ "@atlaskit/textfield": "^6.4.0",
64
+ "@atlaskit/theme": "^12.10.0",
65
+ "@atlaskit/tokens": "^1.51.0",
66
+ "@atlaskit/tooltip": "^18.5.0",
67
67
  "@atlaskit/ufo": "^0.2.0",
68
68
  "@babel/runtime": "^7.0.0",
69
69
  "@emotion/react": "^11.7.1",