@atlaskit/flag 17.5.9 → 17.6.0
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 +11 -0
- package/dist/cjs/auto-dismiss-flag.js +1 -1
- package/dist/cjs/flag.compiled.css +1 -0
- package/dist/cjs/flag.js +6 -3
- package/dist/es2019/auto-dismiss-flag.js +1 -1
- package/dist/es2019/flag.compiled.css +1 -0
- package/dist/es2019/flag.js +6 -3
- package/dist/esm/auto-dismiss-flag.js +1 -1
- package/dist/esm/flag.compiled.css +1 -0
- package/dist/esm/flag.js +6 -3
- package/package.json +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/flag
|
|
2
2
|
|
|
3
|
+
## 17.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b867e641d818d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b867e641d818d) -
|
|
8
|
+
Updated border radius values behind a feature gate `platform-dst-shape-theme-default`.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 17.5.9
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -14,7 +14,7 @@ var _flag = _interopRequireDefault(require("./flag"));
|
|
|
14
14
|
var _flagGroup = require("./flag-group");
|
|
15
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
16
|
var packageName = "@atlaskit/flag";
|
|
17
|
-
var packageVersion = "17.5.
|
|
17
|
+
var packageVersion = "17.5.9";
|
|
18
18
|
var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
2
3
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
3
4
|
._v5641hdc{transition:gap .3s}
|
|
4
5
|
._v564z97a{transition:background-color .2s}
|
package/dist/cjs/flag.js
CHANGED
|
@@ -15,8 +15,10 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
17
|
var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
|
|
18
|
+
var _css = require("@atlaskit/css");
|
|
18
19
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
19
20
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
21
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
21
23
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
22
24
|
var _constants = require("./constants");
|
|
@@ -29,7 +31,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
29
31
|
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; }
|
|
30
32
|
var styles = {
|
|
31
33
|
overflowWrap: "_1i4qfg65",
|
|
32
|
-
flag: "_2rkofajl _1reo15vq _18m915vq _v564z97a _16qs8sq4 _1pbyni7l _1bsb1osq"
|
|
34
|
+
flag: "_2rkofajl _1reo15vq _18m915vq _v564z97a _16qs8sq4 _1pbyni7l _1bsb1osq",
|
|
35
|
+
flagT26Shape: "_2rko1mok"
|
|
33
36
|
};
|
|
34
37
|
var CSS_VAR_ICON_COLOR = '--flag-icon-color';
|
|
35
38
|
var descriptionStyles = null;
|
|
@@ -38,7 +41,7 @@ var flagWrapperStyles = null;
|
|
|
38
41
|
var analyticsAttributes = {
|
|
39
42
|
componentName: 'flag',
|
|
40
43
|
packageName: "@atlaskit/flag",
|
|
41
|
-
packageVersion: "17.5.
|
|
44
|
+
packageVersion: "17.5.9"
|
|
42
45
|
};
|
|
43
46
|
var transitionStyles = null;
|
|
44
47
|
|
|
@@ -151,7 +154,7 @@ var Flag = function Flag(props) {
|
|
|
151
154
|
}), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
152
155
|
padding: "space.200",
|
|
153
156
|
backgroundColor: _theme.flagBackgroundColor[appearance],
|
|
154
|
-
xcss: styles.flag
|
|
157
|
+
xcss: (0, _css.cx)(styles.flag, (0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default') && styles.flagT26Shape)
|
|
155
158
|
}, /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
156
159
|
alignBlock: "start",
|
|
157
160
|
space: "space.200"
|
|
@@ -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 = "17.5.
|
|
8
|
+
const packageVersion = "17.5.9";
|
|
9
9
|
export const AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
2
3
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
3
4
|
._v5641hdc{transition:gap .3s}
|
|
4
5
|
._v564z97a{transition:background-color .2s}
|
package/dist/es2019/flag.js
CHANGED
|
@@ -5,8 +5,10 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useCallback, useEffect, useState } from 'react';
|
|
7
7
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
8
|
+
import { cx } from '@atlaskit/css';
|
|
8
9
|
import noop from '@atlaskit/ds-lib/noop';
|
|
9
10
|
import Heading from '@atlaskit/heading';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
12
|
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
11
13
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
12
14
|
import { DEFAULT_APPEARANCE } from './constants';
|
|
@@ -16,7 +18,8 @@ import { DismissButton, Expander } from './internal';
|
|
|
16
18
|
import { flagBackgroundColor, flagIconColor, flagIconGlyph, flagTextColor, flagTextColorToken } from './theme';
|
|
17
19
|
const styles = {
|
|
18
20
|
overflowWrap: "_1i4qfg65",
|
|
19
|
-
flag: "_2rkofajl _1reo15vq _18m915vq _v564z97a _16qs8sq4 _1pbyni7l _1bsb1osq"
|
|
21
|
+
flag: "_2rkofajl _1reo15vq _18m915vq _v564z97a _16qs8sq4 _1pbyni7l _1bsb1osq",
|
|
22
|
+
flagT26Shape: "_2rko1mok"
|
|
20
23
|
};
|
|
21
24
|
const CSS_VAR_ICON_COLOR = '--flag-icon-color';
|
|
22
25
|
const descriptionStyles = null;
|
|
@@ -25,7 +28,7 @@ const flagWrapperStyles = null;
|
|
|
25
28
|
const analyticsAttributes = {
|
|
26
29
|
componentName: 'flag',
|
|
27
30
|
packageName: "@atlaskit/flag",
|
|
28
|
-
packageVersion: "17.5.
|
|
31
|
+
packageVersion: "17.5.9"
|
|
29
32
|
};
|
|
30
33
|
const transitionStyles = null;
|
|
31
34
|
|
|
@@ -130,7 +133,7 @@ const Flag = props => {
|
|
|
130
133
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
131
134
|
padding: "space.200",
|
|
132
135
|
backgroundColor: flagBackgroundColor[appearance],
|
|
133
|
-
xcss: styles.flag
|
|
136
|
+
xcss: cx(styles.flag, fg('platform-dst-shape-theme-default') && styles.flagT26Shape)
|
|
134
137
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
135
138
|
alignBlock: "start",
|
|
136
139
|
space: "space.200"
|
|
@@ -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 = "17.5.
|
|
8
|
+
var packageVersion = "17.5.9";
|
|
9
9
|
export var AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
2
3
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
3
4
|
._v5641hdc{transition:gap .3s}
|
|
4
5
|
._v564z97a{transition:background-color .2s}
|
package/dist/esm/flag.js
CHANGED
|
@@ -9,8 +9,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
9
9
|
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) { _defineProperty(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; }
|
|
10
10
|
import { useCallback, useEffect, useState } from 'react';
|
|
11
11
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
12
|
+
import { cx } from '@atlaskit/css';
|
|
12
13
|
import noop from '@atlaskit/ds-lib/noop';
|
|
13
14
|
import Heading from '@atlaskit/heading';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
16
|
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
15
17
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
16
18
|
import { DEFAULT_APPEARANCE } from './constants';
|
|
@@ -20,7 +22,8 @@ import { DismissButton, Expander } from './internal';
|
|
|
20
22
|
import { flagBackgroundColor, flagIconColor, flagIconGlyph, flagTextColor, flagTextColorToken } from './theme';
|
|
21
23
|
var styles = {
|
|
22
24
|
overflowWrap: "_1i4qfg65",
|
|
23
|
-
flag: "_2rkofajl _1reo15vq _18m915vq _v564z97a _16qs8sq4 _1pbyni7l _1bsb1osq"
|
|
25
|
+
flag: "_2rkofajl _1reo15vq _18m915vq _v564z97a _16qs8sq4 _1pbyni7l _1bsb1osq",
|
|
26
|
+
flagT26Shape: "_2rko1mok"
|
|
24
27
|
};
|
|
25
28
|
var CSS_VAR_ICON_COLOR = '--flag-icon-color';
|
|
26
29
|
var descriptionStyles = null;
|
|
@@ -29,7 +32,7 @@ var flagWrapperStyles = null;
|
|
|
29
32
|
var analyticsAttributes = {
|
|
30
33
|
componentName: 'flag',
|
|
31
34
|
packageName: "@atlaskit/flag",
|
|
32
|
-
packageVersion: "17.5.
|
|
35
|
+
packageVersion: "17.5.9"
|
|
33
36
|
};
|
|
34
37
|
var transitionStyles = null;
|
|
35
38
|
|
|
@@ -142,7 +145,7 @@ var Flag = function Flag(props) {
|
|
|
142
145
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
143
146
|
padding: "space.200",
|
|
144
147
|
backgroundColor: flagBackgroundColor[appearance],
|
|
145
|
-
xcss: styles.flag
|
|
148
|
+
xcss: cx(styles.flag, fg('platform-dst-shape-theme-default') && styles.flagT26Shape)
|
|
146
149
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
147
150
|
alignBlock: "start",
|
|
148
151
|
space: "space.200"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/flag",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.6.0",
|
|
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/"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
36
|
-
"@atlaskit/button": "^23.
|
|
36
|
+
"@atlaskit/button": "^23.7.0",
|
|
37
37
|
"@atlaskit/css": "^0.17.0",
|
|
38
38
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
39
39
|
"@atlaskit/heading": "^5.2.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/drawer": "^11.0.0",
|
|
59
59
|
"@atlaskit/link": "^3.2.0",
|
|
60
60
|
"@atlaskit/radio": "^8.3.0",
|
|
61
|
-
"@atlaskit/section-message": "^8.
|
|
61
|
+
"@atlaskit/section-message": "^8.10.0",
|
|
62
62
|
"@atlaskit/spinner": "^19.0.0",
|
|
63
63
|
"@atlassian/ssr-tests": "workspace:^",
|
|
64
64
|
"@testing-library/react": "^13.4.0",
|
|
@@ -93,5 +93,9 @@
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
"homepage": "https://atlassian.design/components/flag/",
|
|
96
|
-
"platform-feature-flags": {
|
|
96
|
+
"platform-feature-flags": {
|
|
97
|
+
"platform-dst-shape-theme-default": {
|
|
98
|
+
"type": "boolean"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
97
101
|
}
|