@atlaskit/flag 15.3.0 → 15.4.1
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 +12 -0
- package/__perf__/with-flag-group.tsx +1 -2
- package/dist/cjs/auto-dismiss-flag.js +1 -1
- package/dist/cjs/flag.js +21 -17
- package/dist/cjs/theme.js +5 -5
- package/dist/es2019/auto-dismiss-flag.js +1 -1
- package/dist/es2019/flag.js +22 -18
- package/dist/es2019/theme.js +5 -5
- package/dist/esm/auto-dismiss-flag.js +1 -1
- package/dist/esm/flag.js +22 -18
- package/dist/esm/theme.js +5 -5
- package/dist/types/theme.d.ts +1 -2
- package/dist/types-ts4.5/theme.d.ts +1 -2
- package/package.json +10 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/flag
|
|
2
2
|
|
|
3
|
+
## 15.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#87978](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87978) [`23eb450d6c2b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/23eb450d6c2b) - Internal change only: update to use new typography system.
|
|
8
|
+
|
|
9
|
+
## 15.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#91526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91526) [`3f7f99daae4a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3f7f99daae4a) - Add support for React 18.
|
|
14
|
+
|
|
3
15
|
## 15.3.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import noop from '@atlaskit/ds-lib/noop';
|
|
4
4
|
import SuccessIcon from '@atlaskit/icon/glyph/check-circle';
|
|
5
|
-
import { G400 } from '@atlaskit/theme/colors';
|
|
6
5
|
import { token } from '@atlaskit/tokens';
|
|
7
6
|
|
|
8
7
|
import Flag, { FlagGroup } from '../src';
|
|
@@ -14,7 +13,7 @@ export default () => (
|
|
|
14
13
|
icon={
|
|
15
14
|
<SuccessIcon
|
|
16
15
|
label="Success"
|
|
17
|
-
secondaryColor={token('color.background.success.bold'
|
|
16
|
+
secondaryColor={token('color.background.success.bold')}
|
|
18
17
|
/>
|
|
19
18
|
}
|
|
20
19
|
id="success"
|
|
@@ -15,7 +15,7 @@ var _flagGroup = require("./flag-group");
|
|
|
15
15
|
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); }
|
|
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 packageName = "@atlaskit/flag";
|
|
18
|
-
var packageVersion = "15.
|
|
18
|
+
var packageVersion = "15.4.1";
|
|
19
19
|
var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
|
|
20
20
|
|
|
21
21
|
/**
|
package/dist/cjs/flag.js
CHANGED
|
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
|
-
var _dsExplorations = require("@atlaskit/ds-explorations");
|
|
14
13
|
var _primitives = require("@atlaskit/primitives");
|
|
15
14
|
var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
|
|
16
15
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
@@ -22,6 +21,17 @@ var _internal = require("./internal");
|
|
|
22
21
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
|
|
24
23
|
var CSS_VAR_ICON_COLOR = '--flag-icon-color';
|
|
24
|
+
|
|
25
|
+
// For cases where a single word is longer than the container (e.g. filenames)
|
|
26
|
+
var overflowWrapStyles = (0, _primitives.xcss)({
|
|
27
|
+
overflowWrap: 'anywhere'
|
|
28
|
+
});
|
|
29
|
+
var descriptionStyles = (0, _react2.css)({
|
|
30
|
+
maxHeight: 100,
|
|
31
|
+
// height is defined as 5 lines maximum by design
|
|
32
|
+
overflow: 'auto',
|
|
33
|
+
overflowWrap: 'anywhere' // For cases where a single word is longer than the container (e.g. filenames)
|
|
34
|
+
});
|
|
25
35
|
var iconWrapperStyles = (0, _react2.css)({
|
|
26
36
|
display: 'flex',
|
|
27
37
|
alignItems: 'start',
|
|
@@ -42,7 +52,7 @@ var flagWrapperStyles = (0, _react2.css)({
|
|
|
42
52
|
var analyticsAttributes = {
|
|
43
53
|
componentName: 'flag',
|
|
44
54
|
packageName: "@atlaskit/flag",
|
|
45
|
-
packageVersion: "15.
|
|
55
|
+
packageVersion: "15.4.1"
|
|
46
56
|
};
|
|
47
57
|
var transitionStyles = (0, _react2.css)({
|
|
48
58
|
flexGrow: 1,
|
|
@@ -155,13 +165,11 @@ var Flag = function Flag(props) {
|
|
|
155
165
|
space: "space.100",
|
|
156
166
|
spread: "space-between"
|
|
157
167
|
}, (0, _react2.jsx)(_primitives.Box, {
|
|
158
|
-
paddingBlockStart: "space.025"
|
|
159
|
-
|
|
168
|
+
paddingBlockStart: "space.025",
|
|
169
|
+
xcss: overflowWrapStyles
|
|
170
|
+
}, (0, _react2.jsx)(_primitives.Text, {
|
|
160
171
|
color: textColor,
|
|
161
|
-
|
|
162
|
-
UNSAFE_style: {
|
|
163
|
-
overflowWrap: 'anywhere' // For cases where a single word is longer than the container (e.g. filenames)
|
|
164
|
-
}
|
|
172
|
+
weight: "semibold"
|
|
165
173
|
}, title)), isDismissable ? !(isBold && !description && !actions.length) && (0, _react2.jsx)(_internal.DismissButton, {
|
|
166
174
|
testId: testId,
|
|
167
175
|
appearance: appearance,
|
|
@@ -171,16 +179,12 @@ var Flag = function Flag(props) {
|
|
|
171
179
|
}) : null), (0, _react2.jsx)(_internal.Expander, {
|
|
172
180
|
isExpanded: !isBold || isExpanded,
|
|
173
181
|
testId: testId
|
|
174
|
-
}, description && (0, _react2.jsx)(
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
UNSAFE_style: {
|
|
178
|
-
maxHeight: 100,
|
|
179
|
-
// height is defined as 5 lines maximum by design
|
|
180
|
-
overflow: 'auto',
|
|
181
|
-
overflowWrap: 'anywhere' // For cases where a single word is longer than the container (e.g. filenames)
|
|
182
|
+
}, description && (0, _react2.jsx)("div", {
|
|
183
|
+
style: {
|
|
184
|
+
color: _theme.flagTextColorToken[appearance]
|
|
182
185
|
},
|
|
183
|
-
|
|
186
|
+
css: descriptionStyles,
|
|
187
|
+
"data-testid": testId && "".concat(testId, "-description")
|
|
184
188
|
}, description), (0, _react2.jsx)(_flagActions.default, {
|
|
185
189
|
actions: actions,
|
|
186
190
|
appearance: appearance,
|
package/dist/cjs/theme.js
CHANGED
|
@@ -24,11 +24,11 @@ var flagIconColor = exports.flagIconColor = {
|
|
|
24
24
|
|
|
25
25
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
26
26
|
var flagTextColor = exports.flagTextColor = {
|
|
27
|
-
error: 'inverse',
|
|
28
|
-
info: 'inverse',
|
|
29
|
-
normal: 'subtle',
|
|
30
|
-
success: 'inverse',
|
|
31
|
-
warning: 'warning.inverse'
|
|
27
|
+
error: 'color.text.inverse',
|
|
28
|
+
info: 'color.text.inverse',
|
|
29
|
+
normal: 'color.text.subtle',
|
|
30
|
+
success: 'color.text.inverse',
|
|
31
|
+
warning: 'color.text.warning.inverse'
|
|
32
32
|
};
|
|
33
33
|
var flagTextColorToken = exports.flagTextColorToken = {
|
|
34
34
|
error: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
@@ -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.
|
|
8
|
+
const packageVersion = "15.4.1";
|
|
9
9
|
export const AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/es2019/flag.js
CHANGED
|
@@ -2,16 +2,26 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { useCallback, useEffect, useState } from 'react';
|
|
4
4
|
import { jsx, css } from '@emotion/react';
|
|
5
|
-
import {
|
|
6
|
-
import { Inline, Stack, Box, xcss } from '@atlaskit/primitives';
|
|
5
|
+
import { Inline, Stack, Box, xcss, Text } from '@atlaskit/primitives';
|
|
7
6
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
8
7
|
import noop from '@atlaskit/ds-lib/noop';
|
|
9
8
|
import { DEFAULT_APPEARANCE } from './constants';
|
|
10
|
-
import { flagTextColor, flagBackgroundColor, flagIconColor } from './theme';
|
|
9
|
+
import { flagTextColor, flagBackgroundColor, flagIconColor, flagTextColorToken } from './theme';
|
|
11
10
|
import Actions from './flag-actions';
|
|
12
11
|
import { useFlagGroup } from './flag-group';
|
|
13
12
|
import { Expander, DismissButton } from './internal';
|
|
14
13
|
const CSS_VAR_ICON_COLOR = '--flag-icon-color';
|
|
14
|
+
|
|
15
|
+
// For cases where a single word is longer than the container (e.g. filenames)
|
|
16
|
+
const overflowWrapStyles = xcss({
|
|
17
|
+
overflowWrap: 'anywhere'
|
|
18
|
+
});
|
|
19
|
+
const descriptionStyles = css({
|
|
20
|
+
maxHeight: 100,
|
|
21
|
+
// height is defined as 5 lines maximum by design
|
|
22
|
+
overflow: 'auto',
|
|
23
|
+
overflowWrap: 'anywhere' // For cases where a single word is longer than the container (e.g. filenames)
|
|
24
|
+
});
|
|
15
25
|
const iconWrapperStyles = css({
|
|
16
26
|
display: 'flex',
|
|
17
27
|
alignItems: 'start',
|
|
@@ -32,7 +42,7 @@ const flagWrapperStyles = css({
|
|
|
32
42
|
const analyticsAttributes = {
|
|
33
43
|
componentName: 'flag',
|
|
34
44
|
packageName: "@atlaskit/flag",
|
|
35
|
-
packageVersion: "15.
|
|
45
|
+
packageVersion: "15.4.1"
|
|
36
46
|
};
|
|
37
47
|
const transitionStyles = css({
|
|
38
48
|
flexGrow: 1,
|
|
@@ -143,13 +153,11 @@ const Flag = props => {
|
|
|
143
153
|
space: "space.100",
|
|
144
154
|
spread: "space-between"
|
|
145
155
|
}, jsx(Box, {
|
|
146
|
-
paddingBlockStart: "space.025"
|
|
156
|
+
paddingBlockStart: "space.025",
|
|
157
|
+
xcss: overflowWrapStyles
|
|
147
158
|
}, jsx(Text, {
|
|
148
159
|
color: textColor,
|
|
149
|
-
|
|
150
|
-
UNSAFE_style: {
|
|
151
|
-
overflowWrap: 'anywhere' // For cases where a single word is longer than the container (e.g. filenames)
|
|
152
|
-
}
|
|
160
|
+
weight: "semibold"
|
|
153
161
|
}, title)), isDismissable ? !(isBold && !description && !actions.length) && jsx(DismissButton, {
|
|
154
162
|
testId: testId,
|
|
155
163
|
appearance: appearance,
|
|
@@ -159,16 +167,12 @@ const Flag = props => {
|
|
|
159
167
|
}) : null), jsx(Expander, {
|
|
160
168
|
isExpanded: !isBold || isExpanded,
|
|
161
169
|
testId: testId
|
|
162
|
-
}, description && jsx(
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
UNSAFE_style: {
|
|
166
|
-
maxHeight: 100,
|
|
167
|
-
// height is defined as 5 lines maximum by design
|
|
168
|
-
overflow: 'auto',
|
|
169
|
-
overflowWrap: 'anywhere' // For cases where a single word is longer than the container (e.g. filenames)
|
|
170
|
+
}, description && jsx("div", {
|
|
171
|
+
style: {
|
|
172
|
+
color: flagTextColorToken[appearance]
|
|
170
173
|
},
|
|
171
|
-
|
|
174
|
+
css: descriptionStyles,
|
|
175
|
+
"data-testid": testId && `${testId}-description`
|
|
172
176
|
}, description), jsx(Actions, {
|
|
173
177
|
actions: actions,
|
|
174
178
|
appearance: appearance,
|
package/dist/es2019/theme.js
CHANGED
|
@@ -18,11 +18,11 @@ export const flagIconColor = {
|
|
|
18
18
|
|
|
19
19
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
20
20
|
export const flagTextColor = {
|
|
21
|
-
error: 'inverse',
|
|
22
|
-
info: 'inverse',
|
|
23
|
-
normal: 'subtle',
|
|
24
|
-
success: 'inverse',
|
|
25
|
-
warning: 'warning.inverse'
|
|
21
|
+
error: 'color.text.inverse',
|
|
22
|
+
info: 'color.text.inverse',
|
|
23
|
+
normal: 'color.text.subtle',
|
|
24
|
+
success: 'color.text.inverse',
|
|
25
|
+
warning: 'color.text.warning.inverse'
|
|
26
26
|
};
|
|
27
27
|
export const flagTextColorToken = {
|
|
28
28
|
error: `var(--ds-text-inverse, ${N0})`,
|
|
@@ -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.
|
|
8
|
+
var packageVersion = "15.4.1";
|
|
9
9
|
export var AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/esm/flag.js
CHANGED
|
@@ -6,16 +6,26 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { useCallback, useEffect, useState } from 'react';
|
|
8
8
|
import { jsx, css } from '@emotion/react';
|
|
9
|
-
import {
|
|
10
|
-
import { Inline, Stack, Box, xcss } from '@atlaskit/primitives';
|
|
9
|
+
import { Inline, Stack, Box, xcss, Text } from '@atlaskit/primitives';
|
|
11
10
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
12
11
|
import noop from '@atlaskit/ds-lib/noop';
|
|
13
12
|
import { DEFAULT_APPEARANCE } from './constants';
|
|
14
|
-
import { flagTextColor, flagBackgroundColor, flagIconColor } from './theme';
|
|
13
|
+
import { flagTextColor, flagBackgroundColor, flagIconColor, flagTextColorToken } from './theme';
|
|
15
14
|
import Actions from './flag-actions';
|
|
16
15
|
import { useFlagGroup } from './flag-group';
|
|
17
16
|
import { Expander, DismissButton } from './internal';
|
|
18
17
|
var CSS_VAR_ICON_COLOR = '--flag-icon-color';
|
|
18
|
+
|
|
19
|
+
// For cases where a single word is longer than the container (e.g. filenames)
|
|
20
|
+
var overflowWrapStyles = xcss({
|
|
21
|
+
overflowWrap: 'anywhere'
|
|
22
|
+
});
|
|
23
|
+
var descriptionStyles = css({
|
|
24
|
+
maxHeight: 100,
|
|
25
|
+
// height is defined as 5 lines maximum by design
|
|
26
|
+
overflow: 'auto',
|
|
27
|
+
overflowWrap: 'anywhere' // For cases where a single word is longer than the container (e.g. filenames)
|
|
28
|
+
});
|
|
19
29
|
var iconWrapperStyles = css({
|
|
20
30
|
display: 'flex',
|
|
21
31
|
alignItems: 'start',
|
|
@@ -36,7 +46,7 @@ var flagWrapperStyles = css({
|
|
|
36
46
|
var analyticsAttributes = {
|
|
37
47
|
componentName: 'flag',
|
|
38
48
|
packageName: "@atlaskit/flag",
|
|
39
|
-
packageVersion: "15.
|
|
49
|
+
packageVersion: "15.4.1"
|
|
40
50
|
};
|
|
41
51
|
var transitionStyles = css({
|
|
42
52
|
flexGrow: 1,
|
|
@@ -149,13 +159,11 @@ var Flag = function Flag(props) {
|
|
|
149
159
|
space: "space.100",
|
|
150
160
|
spread: "space-between"
|
|
151
161
|
}, jsx(Box, {
|
|
152
|
-
paddingBlockStart: "space.025"
|
|
162
|
+
paddingBlockStart: "space.025",
|
|
163
|
+
xcss: overflowWrapStyles
|
|
153
164
|
}, jsx(Text, {
|
|
154
165
|
color: textColor,
|
|
155
|
-
|
|
156
|
-
UNSAFE_style: {
|
|
157
|
-
overflowWrap: 'anywhere' // For cases where a single word is longer than the container (e.g. filenames)
|
|
158
|
-
}
|
|
166
|
+
weight: "semibold"
|
|
159
167
|
}, title)), isDismissable ? !(isBold && !description && !actions.length) && jsx(DismissButton, {
|
|
160
168
|
testId: testId,
|
|
161
169
|
appearance: appearance,
|
|
@@ -165,16 +173,12 @@ var Flag = function Flag(props) {
|
|
|
165
173
|
}) : null), jsx(Expander, {
|
|
166
174
|
isExpanded: !isBold || isExpanded,
|
|
167
175
|
testId: testId
|
|
168
|
-
}, description && jsx(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
UNSAFE_style: {
|
|
172
|
-
maxHeight: 100,
|
|
173
|
-
// height is defined as 5 lines maximum by design
|
|
174
|
-
overflow: 'auto',
|
|
175
|
-
overflowWrap: 'anywhere' // For cases where a single word is longer than the container (e.g. filenames)
|
|
176
|
+
}, description && jsx("div", {
|
|
177
|
+
style: {
|
|
178
|
+
color: flagTextColorToken[appearance]
|
|
176
179
|
},
|
|
177
|
-
|
|
180
|
+
css: descriptionStyles,
|
|
181
|
+
"data-testid": testId && "".concat(testId, "-description")
|
|
178
182
|
}, description), jsx(Actions, {
|
|
179
183
|
actions: actions,
|
|
180
184
|
appearance: appearance,
|
package/dist/esm/theme.js
CHANGED
|
@@ -18,11 +18,11 @@ export var flagIconColor = {
|
|
|
18
18
|
|
|
19
19
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
20
20
|
export var flagTextColor = {
|
|
21
|
-
error: 'inverse',
|
|
22
|
-
info: 'inverse',
|
|
23
|
-
normal: 'subtle',
|
|
24
|
-
success: 'inverse',
|
|
25
|
-
warning: 'warning.inverse'
|
|
21
|
+
error: 'color.text.inverse',
|
|
22
|
+
info: 'color.text.inverse',
|
|
23
|
+
normal: 'color.text.subtle',
|
|
24
|
+
success: 'color.text.inverse',
|
|
25
|
+
warning: 'color.text.warning.inverse'
|
|
26
26
|
};
|
|
27
27
|
export var flagTextColorToken = {
|
|
28
28
|
error: "var(--ds-text-inverse, ".concat(N0, ")"),
|
package/dist/types/theme.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BackgroundColor } from '@atlaskit/primitives';
|
|
1
|
+
import { BackgroundColor, TextProps } from '@atlaskit/primitives';
|
|
3
2
|
import { AppearanceTypes } from './types';
|
|
4
3
|
export declare const flagBackgroundColor: Record<AppearanceTypes, BackgroundColor>;
|
|
5
4
|
export declare const flagIconColor: Record<AppearanceTypes, string>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BackgroundColor } from '@atlaskit/primitives';
|
|
1
|
+
import { BackgroundColor, TextProps } from '@atlaskit/primitives';
|
|
3
2
|
import { AppearanceTypes } from './types';
|
|
4
3
|
export declare const flagBackgroundColor: Record<AppearanceTypes, BackgroundColor>;
|
|
5
4
|
export declare const flagIconColor: Record<AppearanceTypes, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/flag",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.4.1",
|
|
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/"
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"website": {
|
|
32
32
|
"name": "Flag",
|
|
33
33
|
"category": "Components"
|
|
34
|
-
}
|
|
34
|
+
},
|
|
35
|
+
"runReact18": true
|
|
35
36
|
},
|
|
36
37
|
"af:exports": {
|
|
37
38
|
".": "./src/index.tsx",
|
|
@@ -45,27 +46,27 @@
|
|
|
45
46
|
"./types": "./src/types.tsx"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"@atlaskit/analytics-next": "^9.
|
|
49
|
-
"@atlaskit/button": "^17.
|
|
50
|
-
"@atlaskit/ds-
|
|
51
|
-
"@atlaskit/ds-lib": "^2.2.0",
|
|
49
|
+
"@atlaskit/analytics-next": "^9.3.0",
|
|
50
|
+
"@atlaskit/button": "^17.14.0",
|
|
51
|
+
"@atlaskit/ds-lib": "^2.3.0",
|
|
52
52
|
"@atlaskit/focus-ring": "^1.3.0",
|
|
53
53
|
"@atlaskit/icon": "^22.1.0",
|
|
54
54
|
"@atlaskit/motion": "^1.5.0",
|
|
55
55
|
"@atlaskit/portal": "^4.4.0",
|
|
56
|
-
"@atlaskit/primitives": "^5.
|
|
56
|
+
"@atlaskit/primitives": "^5.6.0",
|
|
57
57
|
"@atlaskit/theme": "^12.7.0",
|
|
58
|
-
"@atlaskit/tokens": "^1.
|
|
58
|
+
"@atlaskit/tokens": "^1.44.0",
|
|
59
59
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
61
61
|
"@emotion/react": "^11.7.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"react": "^16.8.0"
|
|
64
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@af/accessibility-testing": "*",
|
|
68
68
|
"@af/integration-testing": "*",
|
|
69
|
+
"@atlaskit/radio": "^6.1.3",
|
|
69
70
|
"@atlaskit/ssr": "*",
|
|
70
71
|
"@atlaskit/visual-regression": "*",
|
|
71
72
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|