@atlaskit/flag 15.2.14 → 15.2.16
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 +13 -0
- package/dist/cjs/auto-dismiss-flag.js +1 -1
- package/dist/cjs/flag-actions.js +1 -1
- package/dist/cjs/flag-group.js +5 -1
- package/dist/cjs/flag.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/auto-dismiss-flag.js +1 -1
- package/dist/es2019/flag-actions.js +1 -1
- package/dist/es2019/flag-group.js +5 -1
- package/dist/es2019/flag.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/auto-dismiss-flag.js +1 -1
- package/dist/esm/flag-actions.js +1 -1
- package/dist/esm/flag-group.js +5 -1
- package/dist/esm/flag.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/theme.d.ts +2 -2
- package/dist/types-ts4.5/theme.d.ts +2 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/flag
|
|
2
2
|
|
|
3
|
+
## 15.2.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated dependencies
|
|
8
|
+
- [`95401cac781`](https://bitbucket.org/atlassian/atlassian-frontend/commits/95401cac781) - Internal change to component composition. There is no expected change.
|
|
9
|
+
|
|
10
|
+
## 15.2.15
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
15
|
+
|
|
3
16
|
## 15.2.14
|
|
4
17
|
|
|
5
18
|
### 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.2.
|
|
18
|
+
var packageVersion = "15.2.16";
|
|
19
19
|
var AUTO_DISMISS_SECONDS = 8;
|
|
20
20
|
|
|
21
21
|
/**
|
package/dist/cjs/flag-actions.js
CHANGED
|
@@ -11,7 +11,7 @@ var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom
|
|
|
11
11
|
var _inline = _interopRequireDefault(require("@atlaskit/primitives/inline"));
|
|
12
12
|
var _constants = require("./constants");
|
|
13
13
|
var _theme = require("./theme");
|
|
14
|
-
/* eslint-disable @
|
|
14
|
+
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
15
15
|
/** @jsx jsx */
|
|
16
16
|
|
|
17
17
|
var buttonStyles = (0, _react.css)({
|
package/dist/cjs/flag-group.js
CHANGED
|
@@ -44,6 +44,8 @@ var baseStyles = (0, _react2.css)({
|
|
|
44
44
|
position: 'absolute',
|
|
45
45
|
bottom: 0,
|
|
46
46
|
transition: "transform ".concat(flagAnimationTime, "ms ease-in-out"),
|
|
47
|
+
// TODO: Use new breakpoints
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
47
49
|
'@media (max-width: 560px)': {
|
|
48
50
|
width: '100vw'
|
|
49
51
|
},
|
|
@@ -69,7 +71,7 @@ var baseStyles = (0, _react2.css)({
|
|
|
69
71
|
// Transform needed to push up while 1st flag is leaving
|
|
70
72
|
// Exiting time should match the exiting time of motion so is halved
|
|
71
73
|
var dismissAllowedStyles = (0, _react2.css)({
|
|
72
|
-
// eslint-disable-next-line @
|
|
74
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
73
75
|
'&& + *': {
|
|
74
76
|
transform: "translate(0, 0)",
|
|
75
77
|
transitionDuration: "".concat(flagAnimationTime / 2, "ms")
|
|
@@ -80,6 +82,8 @@ var flagGroupContainerStyles = (0, _react2.css)({
|
|
|
80
82
|
zIndex: 'flag',
|
|
81
83
|
bottom: "var(--ds-space-600, 48px)",
|
|
82
84
|
left: "var(--ds-space-1000, 80px)",
|
|
85
|
+
// TODO: Use new breakpoints
|
|
86
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
83
87
|
'@media (max-width: 560px)': {
|
|
84
88
|
bottom: 0,
|
|
85
89
|
left: 0
|
package/dist/cjs/flag.js
CHANGED
package/dist/cjs/version.json
CHANGED
|
@@ -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.2.
|
|
8
|
+
const packageVersion = "15.2.16";
|
|
9
9
|
export const AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -31,6 +31,8 @@ const baseStyles = css({
|
|
|
31
31
|
position: 'absolute',
|
|
32
32
|
bottom: 0,
|
|
33
33
|
transition: `transform ${flagAnimationTime}ms ease-in-out`,
|
|
34
|
+
// TODO: Use new breakpoints
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
34
36
|
'@media (max-width: 560px)': {
|
|
35
37
|
width: '100vw'
|
|
36
38
|
},
|
|
@@ -56,7 +58,7 @@ const baseStyles = css({
|
|
|
56
58
|
// Transform needed to push up while 1st flag is leaving
|
|
57
59
|
// Exiting time should match the exiting time of motion so is halved
|
|
58
60
|
const dismissAllowedStyles = css({
|
|
59
|
-
// eslint-disable-next-line @
|
|
61
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
60
62
|
'&& + *': {
|
|
61
63
|
transform: `translate(0, 0)`,
|
|
62
64
|
transitionDuration: `${flagAnimationTime / 2}ms`
|
|
@@ -67,6 +69,8 @@ const flagGroupContainerStyles = css({
|
|
|
67
69
|
zIndex: 'flag',
|
|
68
70
|
bottom: "var(--ds-space-600, 48px)",
|
|
69
71
|
left: "var(--ds-space-1000, 80px)",
|
|
72
|
+
// TODO: Use new breakpoints
|
|
73
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
70
74
|
'@media (max-width: 560px)': {
|
|
71
75
|
bottom: 0,
|
|
72
76
|
left: 0
|
package/dist/es2019/flag.js
CHANGED
package/dist/es2019/version.json
CHANGED
|
@@ -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.2.
|
|
8
|
+
var packageVersion = "15.2.16";
|
|
9
9
|
export var AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/esm/flag-actions.js
CHANGED
package/dist/esm/flag-group.js
CHANGED
|
@@ -32,6 +32,8 @@ var baseStyles = css({
|
|
|
32
32
|
position: 'absolute',
|
|
33
33
|
bottom: 0,
|
|
34
34
|
transition: "transform ".concat(flagAnimationTime, "ms ease-in-out"),
|
|
35
|
+
// TODO: Use new breakpoints
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
35
37
|
'@media (max-width: 560px)': {
|
|
36
38
|
width: '100vw'
|
|
37
39
|
},
|
|
@@ -57,7 +59,7 @@ var baseStyles = css({
|
|
|
57
59
|
// Transform needed to push up while 1st flag is leaving
|
|
58
60
|
// Exiting time should match the exiting time of motion so is halved
|
|
59
61
|
var dismissAllowedStyles = css({
|
|
60
|
-
// eslint-disable-next-line @
|
|
62
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
61
63
|
'&& + *': {
|
|
62
64
|
transform: "translate(0, 0)",
|
|
63
65
|
transitionDuration: "".concat(flagAnimationTime / 2, "ms")
|
|
@@ -68,6 +70,8 @@ var flagGroupContainerStyles = css({
|
|
|
68
70
|
zIndex: 'flag',
|
|
69
71
|
bottom: "var(--ds-space-600, 48px)",
|
|
70
72
|
left: "var(--ds-space-1000, 80px)",
|
|
73
|
+
// TODO: Use new breakpoints
|
|
74
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
71
75
|
'@media (max-width: 560px)': {
|
|
72
76
|
bottom: 0,
|
|
73
77
|
left: 0
|
package/dist/esm/flag.js
CHANGED
package/dist/esm/version.json
CHANGED
package/dist/types/theme.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UNSAFE_TextProps as TextProps } from '@atlaskit/ds-explorations';
|
|
2
|
-
import {
|
|
2
|
+
import { BackgroundColor } from '@atlaskit/primitives';
|
|
3
3
|
import { AppearanceTypes } from './types';
|
|
4
|
-
export declare const flagBackgroundColor: Record<AppearanceTypes,
|
|
4
|
+
export declare const flagBackgroundColor: Record<AppearanceTypes, BackgroundColor>;
|
|
5
5
|
export declare const flagIconColor: Record<AppearanceTypes, string>;
|
|
6
6
|
export declare const flagTextColor: Record<AppearanceTypes, TextProps['color']>;
|
|
7
7
|
export declare const flagTextColorToken: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UNSAFE_TextProps as TextProps } from '@atlaskit/ds-explorations';
|
|
2
|
-
import {
|
|
2
|
+
import { BackgroundColor } from '@atlaskit/primitives';
|
|
3
3
|
import { AppearanceTypes } from './types';
|
|
4
|
-
export declare const flagBackgroundColor: Record<AppearanceTypes,
|
|
4
|
+
export declare const flagBackgroundColor: Record<AppearanceTypes, BackgroundColor>;
|
|
5
5
|
export declare const flagIconColor: Record<AppearanceTypes, string>;
|
|
6
6
|
export declare const flagTextColor: Record<AppearanceTypes, TextProps['color']>;
|
|
7
7
|
export declare const flagTextColorToken: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/flag",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.16",
|
|
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/"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"atlaskit:src": "src/index.tsx",
|
|
25
25
|
"atlassian": {
|
|
26
|
-
"team": "Design System
|
|
26
|
+
"team": "Design System Fundamentals",
|
|
27
27
|
"releaseModel": "continuous",
|
|
28
28
|
"website": {
|
|
29
29
|
"name": "Flag",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@atlaskit/icon": "^21.12.0",
|
|
51
51
|
"@atlaskit/motion": "^1.4.0",
|
|
52
52
|
"@atlaskit/portal": "^4.3.0",
|
|
53
|
-
"@atlaskit/primitives": "^1.0.
|
|
53
|
+
"@atlaskit/primitives": "^1.0.6",
|
|
54
54
|
"@atlaskit/theme": "^12.5.0",
|
|
55
|
-
"@atlaskit/tokens": "^1.
|
|
55
|
+
"@atlaskit/tokens": "^1.13.0",
|
|
56
56
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"@emotion/react": "^11.7.1"
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"react": "^16.8.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
+
"@af/accessibility-testing": "*",
|
|
64
65
|
"@atlaskit/ssr": "*",
|
|
65
66
|
"@atlaskit/theme": "^12.5.0",
|
|
66
67
|
"@atlaskit/visual-regression": "*",
|
|
@@ -68,7 +69,6 @@
|
|
|
68
69
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
69
70
|
"@emotion/jest": "^11.8.0",
|
|
70
71
|
"@testing-library/react": "^12.1.5",
|
|
71
|
-
"jest-axe": "^4.0.0",
|
|
72
72
|
"jest-emotion": "^10.0.32",
|
|
73
73
|
"react-dom": "^16.8.0",
|
|
74
74
|
"storybook-addon-performance": "^0.16.0",
|
|
@@ -106,4 +106,4 @@
|
|
|
106
106
|
},
|
|
107
107
|
"homepage": "https://atlassian.design/components/flag/",
|
|
108
108
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
109
|
-
}
|
|
109
|
+
}
|