@atlaskit/flag 15.0.7 → 15.0.8

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/flag
2
2
 
3
+ ## 15.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`842bb999a85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/842bb999a85) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
8
+
3
9
  ## 15.0.7
4
10
 
5
11
  ### Patch Changes
@@ -15,7 +15,7 @@ var _flagGroup = require("./flag-group");
15
15
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
  var packageName = "@atlaskit/flag";
18
- var packageVersion = "15.0.7";
18
+ var packageVersion = "15.0.8";
19
19
  var AUTO_DISMISS_SECONDS = 8;
20
20
 
21
21
  /**
@@ -8,7 +8,7 @@ exports.default = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
11
- var _dsExplorations = require("@atlaskit/ds-explorations");
11
+ var _inline = _interopRequireDefault(require("@atlaskit/primitives/inline"));
12
12
  var _constants = require("@atlaskit/theme/constants");
13
13
  var _constants2 = require("./constants");
14
14
  var _theme = require("./theme");
@@ -43,6 +43,11 @@ var appearanceNormalButtonStyles = (0, _react.css)({
43
43
  padding: '0 !important'
44
44
  }
45
45
  });
46
+ var appearanceNormalActionsContainerStyles = (0, _react.css)({
47
+ '&&, a&&': {
48
+ transform: 'translateX(-2px)'
49
+ }
50
+ });
46
51
  var FlagActions = function FlagActions(props) {
47
52
  var _props$appearance = props.appearance,
48
53
  appearance = _props$appearance === void 0 ? _constants2.DEFAULT_APPEARANCE : _props$appearance,
@@ -54,14 +59,13 @@ var FlagActions = function FlagActions(props) {
54
59
  return null;
55
60
  }
56
61
  var isBold = appearance !== _constants2.DEFAULT_APPEARANCE;
57
- return (0, _react.jsx)(_dsExplorations.UNSAFE_Inline, {
58
- gap: "space.100",
59
- flexWrap: "wrap",
60
- alignItems: "center",
61
- divider: isBold ? null : '·',
62
- UNSAFE_style: isBold ? undefined : {
63
- transform: "translateX(-2px)"
64
- },
62
+ return (0, _react.jsx)("span", {
63
+ css: !isBold && appearanceNormalActionsContainerStyles
64
+ }, (0, _react.jsx)(_inline.default, {
65
+ space: "100",
66
+ shouldWrap: true,
67
+ alignBlock: "center",
68
+ separator: isBold ? undefined : '·',
65
69
  testId: testId && "".concat(testId, "-actions")
66
70
  }, actions.map(function (action, index) {
67
71
  var _ref;
@@ -75,9 +79,9 @@ var FlagActions = function FlagActions(props) {
75
79
  testId: action.testId,
76
80
  key: index,
77
81
  style: (_ref = {}, (0, _defineProperty2.default)(_ref, _constants2.VAR_COLOR, _theme.actionTextColor[appearance]), (0, _defineProperty2.default)(_ref, _constants2.VAR_BG_COLOR, _theme.actionBackgroundColor[appearance].default), (0, _defineProperty2.default)(_ref, _constants2.VAR_BG_COLOR_HOVER, _theme.actionBackgroundColor[appearance].pressed), (0, _defineProperty2.default)(_ref, _constants2.VAR_BG_COLOR_ACTIVE, _theme.actionBackgroundColor[appearance].active), (0, _defineProperty2.default)(_ref, _constants2.VAR_FOCUS_COLOR, _theme.flagFocusRingColor[appearance]), _ref),
78
- css: [buttonStyles, appearance === 'normal' && appearanceNormalButtonStyles]
82
+ css: [buttonStyles, appearance === _constants2.DEFAULT_APPEARANCE && appearanceNormalButtonStyles]
79
83
  }, action.content);
80
- }));
84
+ })));
81
85
  };
82
86
 
83
87
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
package/dist/cjs/flag.js CHANGED
@@ -11,6 +11,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _dsExplorations = require("@atlaskit/ds-explorations");
14
+ var _inline = _interopRequireDefault(require("@atlaskit/primitives/inline"));
15
+ var _stack = _interopRequireDefault(require("@atlaskit/primitives/stack"));
14
16
  var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
15
17
  var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
16
18
  var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
@@ -24,8 +26,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
24
26
  var analyticsAttributes = {
25
27
  componentName: 'flag',
26
28
  packageName: "@atlaskit/flag",
27
- packageVersion: "15.0.7"
29
+ packageVersion: "15.0.8"
28
30
  };
31
+ var transitionStyles = (0, _react2.css)({
32
+ flexGrow: 1,
33
+ transition: "gap 0.3s"
34
+ });
29
35
 
30
36
  /**
31
37
  * __Flag__
@@ -125,24 +131,21 @@ var Flag = function Flag(props) {
125
131
  role: "alert",
126
132
  tabIndex: 0,
127
133
  testId: testId
128
- }, autoDismissProps), (0, _react2.jsx)(_dsExplorations.UNSAFE_Inline, {
129
- gap: "space.200"
134
+ }, autoDismissProps), (0, _react2.jsx)(_inline.default, {
135
+ space: "200"
130
136
  }, (0, _react2.jsx)(_dsExplorations.UNSAFE_Box, {
131
137
  alignItems: "start",
132
138
  UNSAFE_style: {
133
139
  color: iconColor,
134
140
  flexShrink: 0
135
141
  }
136
- }, icon), (0, _react2.jsx)(_dsExplorations.UNSAFE_Stack, {
137
- gap: shouldRenderGap ? 'space.100' : 'space.0' // Gap exists even when not expanded due to Expander internals always being in the DOM
138
- ,
139
- UNSAFE_style: {
140
- flexGrow: 1,
141
- transition: "gap 0.3s"
142
- }
143
- }, (0, _react2.jsx)(_dsExplorations.UNSAFE_Inline, {
144
- gap: "space.100",
145
- justifyContent: "spaceBetween"
142
+ }, icon), (0, _react2.jsx)("span", {
143
+ css: transitionStyles
144
+ }, (0, _react2.jsx)(_stack.default, {
145
+ space: shouldRenderGap ? '100' : '0' // Gap exists even when not expanded due to Expander internals always being in the DOM
146
+ }, (0, _react2.jsx)(_inline.default, {
147
+ space: "100",
148
+ spread: "space-between"
146
149
  }, (0, _react2.jsx)(_dsExplorations.UNSAFE_Box, {
147
150
  display: "block",
148
151
  UNSAFE_style: {
@@ -179,7 +182,7 @@ var Flag = function Flag(props) {
179
182
  appearance: appearance,
180
183
  linkComponent: linkComponent,
181
184
  testId: testId
182
- }))))));
185
+ })))))));
183
186
  };
184
187
  var _default = Flag;
185
188
  exports.default = _default;
@@ -8,6 +8,7 @@ exports.default = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _dsExplorations = require("@atlaskit/ds-explorations");
11
+ var _stack = _interopRequireDefault(require("@atlaskit/primitives/stack"));
11
12
  var _motion = require("@atlaskit/motion");
12
13
  var Expander = function Expander(_ref) {
13
14
  var children = _ref.children,
@@ -34,8 +35,8 @@ var Expander = function Expander(_ref) {
34
35
  UNSAFE_style: {
35
36
  width: '100%'
36
37
  }
37
- }, props), /*#__PURE__*/_react.default.createElement(_dsExplorations.UNSAFE_Stack, {
38
- gap: "space.100"
38
+ }, props), /*#__PURE__*/_react.default.createElement(_stack.default, {
39
+ space: "100"
39
40
  }, children));
40
41
  })));
41
42
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/flag",
3
- "version": "15.0.7",
3
+ "version": "15.0.8",
4
4
  "sideEffects": false
5
5
  }
@@ -5,7 +5,7 @@ import noop from '@atlaskit/ds-lib/noop';
5
5
  import Flag from './flag';
6
6
  import { useFlagGroup } from './flag-group';
7
7
  const packageName = "@atlaskit/flag";
8
- const packageVersion = "15.0.7";
8
+ const packageVersion = "15.0.8";
9
9
  export const AUTO_DISMISS_SECONDS = 8;
10
10
 
11
11
  /**
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import Button from '@atlaskit/button/custom-theme-button';
6
- import { UNSAFE_Inline as Inline } from '@atlaskit/ds-explorations';
6
+ import Inline from '@atlaskit/primitives/inline';
7
7
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
8
8
  import { DEFAULT_APPEARANCE, VAR_COLOR, VAR_BG_COLOR, VAR_BG_COLOR_HOVER, VAR_BG_COLOR_ACTIVE, VAR_FOCUS_COLOR } from './constants';
9
9
  import { flagFocusRingColor, actionBackgroundColor, actionTextColor } from './theme';
@@ -35,6 +35,11 @@ const appearanceNormalButtonStyles = css({
35
35
  padding: '0 !important'
36
36
  }
37
37
  });
38
+ const appearanceNormalActionsContainerStyles = css({
39
+ '&&, a&&': {
40
+ transform: 'translateX(-2px)'
41
+ }
42
+ });
38
43
  const FlagActions = props => {
39
44
  const {
40
45
  appearance = DEFAULT_APPEARANCE,
@@ -46,14 +51,13 @@ const FlagActions = props => {
46
51
  return null;
47
52
  }
48
53
  const isBold = appearance !== DEFAULT_APPEARANCE;
49
- return jsx(Inline, {
50
- gap: "space.100",
51
- flexWrap: "wrap",
52
- alignItems: "center",
53
- divider: isBold ? null : '·',
54
- UNSAFE_style: isBold ? undefined : {
55
- transform: `translateX(-2px)`
56
- },
54
+ return jsx("span", {
55
+ css: !isBold && appearanceNormalActionsContainerStyles
56
+ }, jsx(Inline, {
57
+ space: "100",
58
+ shouldWrap: true,
59
+ alignBlock: "center",
60
+ separator: isBold ? undefined : '·',
57
61
  testId: testId && `${testId}-actions`
58
62
  }, actions.map((action, index) => jsx(Button, {
59
63
  onClick: action.onClick,
@@ -71,8 +75,8 @@ const FlagActions = props => {
71
75
  [VAR_BG_COLOR_ACTIVE]: actionBackgroundColor[appearance].active,
72
76
  [VAR_FOCUS_COLOR]: flagFocusRingColor[appearance]
73
77
  },
74
- css: [buttonStyles, appearance === 'normal' && appearanceNormalButtonStyles]
75
- }, action.content)));
78
+ css: [buttonStyles, appearance === DEFAULT_APPEARANCE && appearanceNormalButtonStyles]
79
+ }, action.content))));
76
80
  };
77
81
 
78
82
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
@@ -1,8 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
3
  import { useCallback, useEffect, useState } from 'react';
4
- import { jsx } from '@emotion/react';
5
- import { UNSAFE_Box as Box, UNSAFE_Inline as Inline, UNSAFE_Stack as Stack, UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
4
+ import { jsx, css } from '@emotion/react';
5
+ import { UNSAFE_Box as Box, UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
6
+ import Inline from '@atlaskit/primitives/inline';
7
+ import Stack from '@atlaskit/primitives/stack';
6
8
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
7
9
  import noop from '@atlaskit/ds-lib/noop';
8
10
  import FocusRing from '@atlaskit/focus-ring';
@@ -14,8 +16,12 @@ import { Expander, DismissButton } from './internal';
14
16
  const analyticsAttributes = {
15
17
  componentName: 'flag',
16
18
  packageName: "@atlaskit/flag",
17
- packageVersion: "15.0.7"
19
+ packageVersion: "15.0.8"
18
20
  };
21
+ const transitionStyles = css({
22
+ flexGrow: 1,
23
+ transition: `gap 0.3s`
24
+ });
19
25
 
20
26
  /**
21
27
  * __Flag__
@@ -112,23 +118,20 @@ const Flag = props => {
112
118
  tabIndex: 0,
113
119
  testId: testId
114
120
  }, autoDismissProps), jsx(Inline, {
115
- gap: "space.200"
121
+ space: "200"
116
122
  }, jsx(Box, {
117
123
  alignItems: "start",
118
124
  UNSAFE_style: {
119
125
  color: iconColor,
120
126
  flexShrink: 0
121
127
  }
122
- }, icon), jsx(Stack, {
123
- gap: shouldRenderGap ? 'space.100' : 'space.0' // Gap exists even when not expanded due to Expander internals always being in the DOM
124
- ,
125
- UNSAFE_style: {
126
- flexGrow: 1,
127
- transition: `gap 0.3s`
128
- }
128
+ }, icon), jsx("span", {
129
+ css: transitionStyles
130
+ }, jsx(Stack, {
131
+ space: shouldRenderGap ? '100' : '0' // Gap exists even when not expanded due to Expander internals always being in the DOM
129
132
  }, jsx(Inline, {
130
- gap: "space.100",
131
- justifyContent: "spaceBetween"
133
+ space: "100",
134
+ spread: "space-between"
132
135
  }, jsx(Box, {
133
136
  display: "block",
134
137
  UNSAFE_style: {
@@ -165,6 +168,6 @@ const Flag = props => {
165
168
  appearance: appearance,
166
169
  linkComponent: linkComponent,
167
170
  testId: testId
168
- }))))));
171
+ })))))));
169
172
  };
170
173
  export default Flag;
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { UNSAFE_Box as Box, UNSAFE_Stack as Stack } from '@atlaskit/ds-explorations';
3
+ import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
4
+ import Stack from '@atlaskit/primitives/stack';
4
5
  import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
5
6
  const Expander = ({
6
7
  children,
@@ -28,7 +29,7 @@ const Expander = ({
28
29
  width: '100%'
29
30
  }
30
31
  }, props), /*#__PURE__*/React.createElement(Stack, {
31
- gap: "space.100"
32
+ space: "100"
32
33
  }, children)))));
33
34
  };
34
35
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/flag",
3
- "version": "15.0.7",
3
+ "version": "15.0.8",
4
4
  "sideEffects": false
5
5
  }
@@ -5,7 +5,7 @@ import noop from '@atlaskit/ds-lib/noop';
5
5
  import Flag from './flag';
6
6
  import { useFlagGroup } from './flag-group';
7
7
  var packageName = "@atlaskit/flag";
8
- var packageVersion = "15.0.7";
8
+ var packageVersion = "15.0.8";
9
9
  export var AUTO_DISMISS_SECONDS = 8;
10
10
 
11
11
  /**
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
 
5
5
  import { css, jsx } from '@emotion/react';
6
6
  import Button from '@atlaskit/button/custom-theme-button';
7
- import { UNSAFE_Inline as Inline } from '@atlaskit/ds-explorations';
7
+ import Inline from '@atlaskit/primitives/inline';
8
8
  import { gridSize as getGridSize } from '@atlaskit/theme/constants';
9
9
  import { DEFAULT_APPEARANCE, VAR_COLOR, VAR_BG_COLOR, VAR_BG_COLOR_HOVER, VAR_BG_COLOR_ACTIVE, VAR_FOCUS_COLOR } from './constants';
10
10
  import { flagFocusRingColor, actionBackgroundColor, actionTextColor } from './theme';
@@ -36,6 +36,11 @@ var appearanceNormalButtonStyles = css({
36
36
  padding: '0 !important'
37
37
  }
38
38
  });
39
+ var appearanceNormalActionsContainerStyles = css({
40
+ '&&, a&&': {
41
+ transform: 'translateX(-2px)'
42
+ }
43
+ });
39
44
  var FlagActions = function FlagActions(props) {
40
45
  var _props$appearance = props.appearance,
41
46
  appearance = _props$appearance === void 0 ? DEFAULT_APPEARANCE : _props$appearance,
@@ -47,14 +52,13 @@ var FlagActions = function FlagActions(props) {
47
52
  return null;
48
53
  }
49
54
  var isBold = appearance !== DEFAULT_APPEARANCE;
50
- return jsx(Inline, {
51
- gap: "space.100",
52
- flexWrap: "wrap",
53
- alignItems: "center",
54
- divider: isBold ? null : '·',
55
- UNSAFE_style: isBold ? undefined : {
56
- transform: "translateX(-2px)"
57
- },
55
+ return jsx("span", {
56
+ css: !isBold && appearanceNormalActionsContainerStyles
57
+ }, jsx(Inline, {
58
+ space: "100",
59
+ shouldWrap: true,
60
+ alignBlock: "center",
61
+ separator: isBold ? undefined : '·',
58
62
  testId: testId && "".concat(testId, "-actions")
59
63
  }, actions.map(function (action, index) {
60
64
  var _ref;
@@ -68,9 +72,9 @@ var FlagActions = function FlagActions(props) {
68
72
  testId: action.testId,
69
73
  key: index,
70
74
  style: (_ref = {}, _defineProperty(_ref, VAR_COLOR, actionTextColor[appearance]), _defineProperty(_ref, VAR_BG_COLOR, actionBackgroundColor[appearance].default), _defineProperty(_ref, VAR_BG_COLOR_HOVER, actionBackgroundColor[appearance].pressed), _defineProperty(_ref, VAR_BG_COLOR_ACTIVE, actionBackgroundColor[appearance].active), _defineProperty(_ref, VAR_FOCUS_COLOR, flagFocusRingColor[appearance]), _ref),
71
- css: [buttonStyles, appearance === 'normal' && appearanceNormalButtonStyles]
75
+ css: [buttonStyles, appearance === DEFAULT_APPEARANCE && appearanceNormalButtonStyles]
72
76
  }, action.content);
73
- }));
77
+ })));
74
78
  };
75
79
 
76
80
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
package/dist/esm/flag.js CHANGED
@@ -5,8 +5,10 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
6
  /** @jsx jsx */
7
7
  import { useCallback, useEffect, useState } from 'react';
8
- import { jsx } from '@emotion/react';
9
- import { UNSAFE_Box as Box, UNSAFE_Inline as Inline, UNSAFE_Stack as Stack, UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
8
+ import { jsx, css } from '@emotion/react';
9
+ import { UNSAFE_Box as Box, UNSAFE_Text as Text } from '@atlaskit/ds-explorations';
10
+ import Inline from '@atlaskit/primitives/inline';
11
+ import Stack from '@atlaskit/primitives/stack';
10
12
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
11
13
  import noop from '@atlaskit/ds-lib/noop';
12
14
  import FocusRing from '@atlaskit/focus-ring';
@@ -18,8 +20,12 @@ import { Expander, DismissButton } from './internal';
18
20
  var analyticsAttributes = {
19
21
  componentName: 'flag',
20
22
  packageName: "@atlaskit/flag",
21
- packageVersion: "15.0.7"
23
+ packageVersion: "15.0.8"
22
24
  };
25
+ var transitionStyles = css({
26
+ flexGrow: 1,
27
+ transition: "gap 0.3s"
28
+ });
23
29
 
24
30
  /**
25
31
  * __Flag__
@@ -120,23 +126,20 @@ var Flag = function Flag(props) {
120
126
  tabIndex: 0,
121
127
  testId: testId
122
128
  }, autoDismissProps), jsx(Inline, {
123
- gap: "space.200"
129
+ space: "200"
124
130
  }, jsx(Box, {
125
131
  alignItems: "start",
126
132
  UNSAFE_style: {
127
133
  color: iconColor,
128
134
  flexShrink: 0
129
135
  }
130
- }, icon), jsx(Stack, {
131
- gap: shouldRenderGap ? 'space.100' : 'space.0' // Gap exists even when not expanded due to Expander internals always being in the DOM
132
- ,
133
- UNSAFE_style: {
134
- flexGrow: 1,
135
- transition: "gap 0.3s"
136
- }
136
+ }, icon), jsx("span", {
137
+ css: transitionStyles
138
+ }, jsx(Stack, {
139
+ space: shouldRenderGap ? '100' : '0' // Gap exists even when not expanded due to Expander internals always being in the DOM
137
140
  }, jsx(Inline, {
138
- gap: "space.100",
139
- justifyContent: "spaceBetween"
141
+ space: "100",
142
+ spread: "space-between"
140
143
  }, jsx(Box, {
141
144
  display: "block",
142
145
  UNSAFE_style: {
@@ -173,6 +176,6 @@ var Flag = function Flag(props) {
173
176
  appearance: appearance,
174
177
  linkComponent: linkComponent,
175
178
  testId: testId
176
- }))))));
179
+ })))))));
177
180
  };
178
181
  export default Flag;
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { UNSAFE_Box as Box, UNSAFE_Stack as Stack } from '@atlaskit/ds-explorations';
3
+ import { UNSAFE_Box as Box } from '@atlaskit/ds-explorations';
4
+ import Stack from '@atlaskit/primitives/stack';
4
5
  import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
5
6
  var Expander = function Expander(_ref) {
6
7
  var children = _ref.children,
@@ -28,7 +29,7 @@ var Expander = function Expander(_ref) {
28
29
  width: '100%'
29
30
  }
30
31
  }, props), /*#__PURE__*/React.createElement(Stack, {
31
- gap: "space.100"
32
+ space: "100"
32
33
  }, children));
33
34
  })));
34
35
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/flag",
3
- "version": "15.0.7",
3
+ "version": "15.0.8",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/flag",
3
- "version": "15.0.7",
3
+ "version": "15.0.8",
4
4
  "description": "A flag is used for confirmations, alerts, and acknowledgments that require minimal user interaction, often displayed using a flag group.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -15,7 +15,6 @@
15
15
  "sideEffects": false,
16
16
  "atlaskit:src": "src/index.tsx",
17
17
  "atlassian": {
18
- "disableProductCI": true,
19
18
  "team": "Design System Team",
20
19
  "releaseModel": "scheduled",
21
20
  "website": {
@@ -43,6 +42,7 @@
43
42
  "@atlaskit/icon": "^21.11.0",
44
43
  "@atlaskit/motion": "^1.3.0",
45
44
  "@atlaskit/portal": "^4.0.0",
45
+ "@atlaskit/primitives": "^0.3.0",
46
46
  "@atlaskit/theme": "^12.2.0",
47
47
  "@atlaskit/tokens": "^1.2.0",
48
48
  "@atlaskit/visually-hidden": "^1.1.0",