@atlaskit/flag 17.7.0 → 17.7.2
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 +14 -0
- package/dist/cjs/auto-dismiss-flag.js +1 -1
- package/dist/cjs/flag.js +1 -1
- package/dist/cjs/internal/dismiss-button.js +3 -3
- package/dist/cjs/theme.js +9 -9
- package/dist/es2019/auto-dismiss-flag.js +1 -1
- package/dist/es2019/flag.js +1 -1
- package/dist/es2019/internal/dismiss-button.js +2 -2
- package/dist/es2019/theme.js +4 -4
- package/dist/esm/auto-dismiss-flag.js +1 -1
- package/dist/esm/flag.js +1 -1
- package/dist/esm/internal/dismiss-button.js +2 -2
- package/dist/esm/theme.js +4 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/flag
|
|
2
2
|
|
|
3
|
+
## 17.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.7.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`d14ea5f60b689`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d14ea5f60b689) -
|
|
14
|
+
chore: migrate platform UI & component libraries icon imports from migration paths to core
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 17.7.0
|
|
4
18
|
|
|
5
19
|
### Minor 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
|
+
var packageVersion = "0.0.0-development";
|
|
18
18
|
var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
|
|
19
19
|
|
|
20
20
|
/**
|
package/dist/cjs/flag.js
CHANGED
|
@@ -9,8 +9,8 @@ exports.default = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _new = require("@atlaskit/button/new");
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
13
|
+
var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/core/chevron-up"));
|
|
14
14
|
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross"));
|
|
15
15
|
var _theme = require("../theme");
|
|
16
16
|
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); }
|
|
@@ -25,7 +25,7 @@ var DismissButtonComponent = function DismissButtonComponent(_ref) {
|
|
|
25
25
|
var size = 'small';
|
|
26
26
|
var buttonTestId = testId && "".concat(testId, "-dismiss");
|
|
27
27
|
if (isBold) {
|
|
28
|
-
ButtonIcon = isExpanded ?
|
|
28
|
+
ButtonIcon = isExpanded ? _chevronUp.default : _chevronDown.default;
|
|
29
29
|
buttonLabel = isExpanded ? 'Collapse' : 'Expand';
|
|
30
30
|
size = 'medium';
|
|
31
31
|
buttonTestId = testId && "".concat(testId, "-toggle");
|
package/dist/cjs/theme.js
CHANGED
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.flagTextColorToken = exports.flagTextColor = exports.flagIconGlyph = exports.flagIconColor = exports.flagBackgroundColor = exports.actionTextColor = exports.actionBackgroundColor = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
9
|
+
var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
|
|
10
|
+
var _statusInformation = _interopRequireDefault(require("@atlaskit/icon/core/status-information"));
|
|
11
|
+
var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
|
|
12
|
+
var _statusWarning = _interopRequireDefault(require("@atlaskit/icon/core/status-warning"));
|
|
13
13
|
var _colors = require("@atlaskit/theme/colors");
|
|
14
14
|
var flagBackgroundColor = exports.flagBackgroundColor = {
|
|
15
15
|
error: 'color.background.danger.bold',
|
|
@@ -26,27 +26,27 @@ var flagIconColor = exports.flagIconColor = {
|
|
|
26
26
|
warning: "var(--ds-icon-warning-inverse, #292A2E)"
|
|
27
27
|
};
|
|
28
28
|
var flagIconGlyph = exports.flagIconGlyph = {
|
|
29
|
-
error: /*#__PURE__*/_react.default.createElement(
|
|
29
|
+
error: /*#__PURE__*/_react.default.createElement(_statusError.default, {
|
|
30
30
|
label: "",
|
|
31
31
|
LEGACY_primaryColor: "var(--ds-icon-inverse, ".concat(_colors.N0, ")"),
|
|
32
32
|
LEGACY_secondaryColor: "var(--ds-background-danger-bold, #C9372C)"
|
|
33
33
|
}),
|
|
34
|
-
info: /*#__PURE__*/_react.default.createElement(
|
|
34
|
+
info: /*#__PURE__*/_react.default.createElement(_statusInformation.default, {
|
|
35
35
|
label: "",
|
|
36
36
|
LEGACY_primaryColor: "var(--ds-icon-inverse, ".concat(_colors.N0, ")"),
|
|
37
37
|
LEGACY_secondaryColor: "var(--ds-background-neutral-bold, #292A2E)"
|
|
38
38
|
}),
|
|
39
|
-
normal: /*#__PURE__*/_react.default.createElement(
|
|
39
|
+
normal: /*#__PURE__*/_react.default.createElement(_statusInformation.default, {
|
|
40
40
|
label: "",
|
|
41
41
|
LEGACY_primaryColor: "var(--ds-icon-subtle, ".concat(_colors.N500, ")"),
|
|
42
42
|
LEGACY_secondaryColor: "var(--ds-surface-overlay, #FFFFFF)"
|
|
43
43
|
}),
|
|
44
|
-
success: /*#__PURE__*/_react.default.createElement(
|
|
44
|
+
success: /*#__PURE__*/_react.default.createElement(_statusSuccess.default, {
|
|
45
45
|
label: "",
|
|
46
46
|
LEGACY_primaryColor: "var(--ds-icon-inverse, ".concat(_colors.N0, ")"),
|
|
47
47
|
LEGACY_secondaryColor: "var(--ds-background-success-bold, #5B7F24)"
|
|
48
48
|
}),
|
|
49
|
-
warning: /*#__PURE__*/_react.default.createElement(
|
|
49
|
+
warning: /*#__PURE__*/_react.default.createElement(_statusWarning.default, {
|
|
50
50
|
label: "",
|
|
51
51
|
LEGACY_primaryColor: "var(--ds-icon-warning-inverse, ".concat(_colors.N700, ")"),
|
|
52
52
|
LEGACY_secondaryColor: "var(--ds-background-warning-bold, #FBC828)"
|
|
@@ -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 = "
|
|
8
|
+
const packageVersion = "0.0.0-development";
|
|
9
9
|
export const AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/es2019/flag.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
3
|
import { IconButton } from '@atlaskit/button/new';
|
|
4
|
-
import ChevronDownIcon from '@atlaskit/icon/core/
|
|
5
|
-
import ChevronUpIcon from '@atlaskit/icon/core/
|
|
4
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
5
|
+
import ChevronUpIcon from '@atlaskit/icon/core/chevron-up';
|
|
6
6
|
import CrossIcon from '@atlaskit/icon/core/migration/cross';
|
|
7
7
|
import { flagTextColorToken } from '../theme';
|
|
8
8
|
const DismissButtonComponent = ({
|
package/dist/es2019/theme.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import ErrorIcon from '@atlaskit/icon/core/
|
|
3
|
-
import InformationIcon from '@atlaskit/icon/core/
|
|
4
|
-
import SuccessIcon from '@atlaskit/icon/core/
|
|
5
|
-
import WarningIcon from '@atlaskit/icon/core/
|
|
2
|
+
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
3
|
+
import InformationIcon from '@atlaskit/icon/core/status-information';
|
|
4
|
+
import SuccessIcon from '@atlaskit/icon/core/status-success';
|
|
5
|
+
import WarningIcon from '@atlaskit/icon/core/status-warning';
|
|
6
6
|
import { B400, N0, N30A, N500, N700, N800 } from '@atlaskit/theme/colors';
|
|
7
7
|
export const flagBackgroundColor = {
|
|
8
8
|
error: 'color.background.danger.bold',
|
|
@@ -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 = "
|
|
8
|
+
var packageVersion = "0.0.0-development";
|
|
9
9
|
export var AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/esm/flag.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
3
|
import { IconButton } from '@atlaskit/button/new';
|
|
4
|
-
import ChevronDownIcon from '@atlaskit/icon/core/
|
|
5
|
-
import ChevronUpIcon from '@atlaskit/icon/core/
|
|
4
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
5
|
+
import ChevronUpIcon from '@atlaskit/icon/core/chevron-up';
|
|
6
6
|
import CrossIcon from '@atlaskit/icon/core/migration/cross';
|
|
7
7
|
import { flagTextColorToken } from '../theme';
|
|
8
8
|
var DismissButtonComponent = function DismissButtonComponent(_ref) {
|
package/dist/esm/theme.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import ErrorIcon from '@atlaskit/icon/core/
|
|
3
|
-
import InformationIcon from '@atlaskit/icon/core/
|
|
4
|
-
import SuccessIcon from '@atlaskit/icon/core/
|
|
5
|
-
import WarningIcon from '@atlaskit/icon/core/
|
|
2
|
+
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
3
|
+
import InformationIcon from '@atlaskit/icon/core/status-information';
|
|
4
|
+
import SuccessIcon from '@atlaskit/icon/core/status-success';
|
|
5
|
+
import WarningIcon from '@atlaskit/icon/core/status-warning';
|
|
6
6
|
import { B400, N0, N30A, N500, N700, N800 } from '@atlaskit/theme/colors';
|
|
7
7
|
export var flagBackgroundColor = {
|
|
8
8
|
error: 'color.background.danger.bold',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/flag",
|
|
3
|
-
"version": "17.7.
|
|
3
|
+
"version": "17.7.2",
|
|
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,16 +33,16 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
36
|
-
"@atlaskit/button": "^23.
|
|
37
|
-
"@atlaskit/css": "^0.
|
|
36
|
+
"@atlaskit/button": "^23.9.0",
|
|
37
|
+
"@atlaskit/css": "^0.19.0",
|
|
38
38
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
39
39
|
"@atlaskit/heading": "^5.2.0",
|
|
40
|
-
"@atlaskit/icon": "^29.
|
|
40
|
+
"@atlaskit/icon": "^29.3.0",
|
|
41
41
|
"@atlaskit/motion": "^5.3.0",
|
|
42
42
|
"@atlaskit/portal": "^5.1.0",
|
|
43
|
-
"@atlaskit/primitives": "^
|
|
43
|
+
"@atlaskit/primitives": "^17.0.0",
|
|
44
44
|
"@atlaskit/theme": "^21.0.0",
|
|
45
|
-
"@atlaskit/tokens": "^
|
|
45
|
+
"@atlaskit/tokens": "^9.0.0",
|
|
46
46
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@compiled/react": "^0.18.6"
|