@atlaskit/blanket 12.2.1 → 12.2.5
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 +25 -0
- package/__perf__/hideBlanket.tsx +5 -1
- package/__perf__/showBlanket.tsx +5 -1
- package/dist/cjs/blanket.js +3 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/blanket.js +3 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/blanket.js +3 -4
- package/dist/esm/version.json +1 -1
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/blanket
|
|
2
2
|
|
|
3
|
+
## 12.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 12.2.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 12.2.3
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`34282240102`](https://bitbucket.org/atlassian/atlassian-frontend/commits/34282240102) - Adds explicit type to button usages components.
|
|
21
|
+
|
|
22
|
+
## 12.2.2
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 12.2.1
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/__perf__/hideBlanket.tsx
CHANGED
|
@@ -18,7 +18,11 @@ const BlanketPerformance = () => {
|
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
20
|
<>
|
|
21
|
-
<button
|
|
21
|
+
<button
|
|
22
|
+
type="button"
|
|
23
|
+
onClick={toggleBlanketVisibility}
|
|
24
|
+
data-testid="toggleButton"
|
|
25
|
+
>
|
|
22
26
|
Toggle blanket
|
|
23
27
|
</button>
|
|
24
28
|
|
package/__perf__/showBlanket.tsx
CHANGED
|
@@ -18,7 +18,11 @@ const BlanketPerformance = () => {
|
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
20
|
<>
|
|
21
|
-
<button
|
|
21
|
+
<button
|
|
22
|
+
type="button"
|
|
23
|
+
onClick={toggleBlanketVisibility}
|
|
24
|
+
data-testid="toggleButton"
|
|
25
|
+
>
|
|
22
26
|
Toggle blanket
|
|
23
27
|
</button>
|
|
24
28
|
<Blanket isTinted={isBlanketVisible} shouldAllowClickThrough={true} />
|
package/dist/cjs/blanket.js
CHANGED
|
@@ -25,8 +25,6 @@ var _components = require("@atlaskit/theme/components");
|
|
|
25
25
|
|
|
26
26
|
var _constants = require("@atlaskit/theme/constants");
|
|
27
27
|
|
|
28
|
-
var _tokens = require("@atlaskit/tokens");
|
|
29
|
-
|
|
30
28
|
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); }
|
|
31
29
|
|
|
32
30
|
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; }
|
|
@@ -36,7 +34,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
36
34
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
37
35
|
|
|
38
36
|
var packageName = "@atlaskit/blanket";
|
|
39
|
-
var packageVersion = "12.2.
|
|
37
|
+
var packageVersion = "12.2.5";
|
|
40
38
|
var analyticsAttributes = {
|
|
41
39
|
componentName: 'blanket',
|
|
42
40
|
packageName: packageName,
|
|
@@ -59,10 +57,10 @@ var invisibleStyles = (0, _core.css)({
|
|
|
59
57
|
backgroundColor: 'transparent'
|
|
60
58
|
});
|
|
61
59
|
var lightBgStyles = (0, _core.css)({
|
|
62
|
-
backgroundColor: (
|
|
60
|
+
backgroundColor: "var(--ds-background-blanket, ".concat(_colors.N100A, ")")
|
|
63
61
|
});
|
|
64
62
|
var darkBgStyles = (0, _core.css)({
|
|
65
|
-
backgroundColor: (
|
|
63
|
+
backgroundColor: "var(--ds-background-blanket, ".concat(_colors.DN90A, ")")
|
|
66
64
|
});
|
|
67
65
|
var backgroundStyle = {
|
|
68
66
|
light: lightBgStyles,
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/blanket.js
CHANGED
|
@@ -6,9 +6,8 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
6
6
|
import { DN90A, N100A } from '@atlaskit/theme/colors';
|
|
7
7
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
8
8
|
import { layers } from '@atlaskit/theme/constants';
|
|
9
|
-
import { token } from '@atlaskit/tokens';
|
|
10
9
|
const packageName = "@atlaskit/blanket";
|
|
11
|
-
const packageVersion = "12.2.
|
|
10
|
+
const packageVersion = "12.2.5";
|
|
12
11
|
const analyticsAttributes = {
|
|
13
12
|
componentName: 'blanket',
|
|
14
13
|
packageName,
|
|
@@ -31,10 +30,10 @@ const invisibleStyles = css({
|
|
|
31
30
|
backgroundColor: 'transparent'
|
|
32
31
|
});
|
|
33
32
|
const lightBgStyles = css({
|
|
34
|
-
backgroundColor:
|
|
33
|
+
backgroundColor: `var(--ds-background-blanket, ${N100A})`
|
|
35
34
|
});
|
|
36
35
|
const darkBgStyles = css({
|
|
37
|
-
backgroundColor:
|
|
36
|
+
backgroundColor: `var(--ds-background-blanket, ${DN90A})`
|
|
38
37
|
});
|
|
39
38
|
const backgroundStyle = {
|
|
40
39
|
light: lightBgStyles,
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/blanket.js
CHANGED
|
@@ -12,9 +12,8 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
12
12
|
import { DN90A, N100A } from '@atlaskit/theme/colors';
|
|
13
13
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
14
14
|
import { layers } from '@atlaskit/theme/constants';
|
|
15
|
-
import { token } from '@atlaskit/tokens';
|
|
16
15
|
var packageName = "@atlaskit/blanket";
|
|
17
|
-
var packageVersion = "12.2.
|
|
16
|
+
var packageVersion = "12.2.5";
|
|
18
17
|
var analyticsAttributes = {
|
|
19
18
|
componentName: 'blanket',
|
|
20
19
|
packageName: packageName,
|
|
@@ -37,10 +36,10 @@ var invisibleStyles = css({
|
|
|
37
36
|
backgroundColor: 'transparent'
|
|
38
37
|
});
|
|
39
38
|
var lightBgStyles = css({
|
|
40
|
-
backgroundColor:
|
|
39
|
+
backgroundColor: "var(--ds-background-blanket, ".concat(N100A, ")")
|
|
41
40
|
});
|
|
42
41
|
var darkBgStyles = css({
|
|
43
|
-
backgroundColor:
|
|
42
|
+
backgroundColor: "var(--ds-background-blanket, ".concat(DN90A, ")")
|
|
44
43
|
});
|
|
45
44
|
var backgroundStyle = {
|
|
46
45
|
light: lightBgStyles,
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/blanket",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.5",
|
|
4
4
|
"description": "A React component that covers the underlying UI for a layered component.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
32
|
-
"@atlaskit/codemod-utils": "^3.
|
|
32
|
+
"@atlaskit/codemod-utils": "^3.4.0",
|
|
33
33
|
"@atlaskit/ds-lib": "^1.3.0",
|
|
34
|
-
"@atlaskit/theme": "^
|
|
35
|
-
"@atlaskit/tokens": "^0.
|
|
34
|
+
"@atlaskit/theme": "^12.0.0",
|
|
35
|
+
"@atlaskit/tokens": "^0.4.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
37
37
|
"@emotion/core": "^10.0.9"
|
|
38
38
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/button": "^16.1.0",
|
|
46
46
|
"@atlaskit/docs": "*",
|
|
47
47
|
"@atlaskit/ssr": "*",
|
|
48
|
-
"@atlaskit/toggle": "^12.
|
|
48
|
+
"@atlaskit/toggle": "^12.3.0",
|
|
49
49
|
"@atlaskit/visual-regression": "*",
|
|
50
50
|
"@atlaskit/webdriver-runner": "*",
|
|
51
51
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -69,7 +69,10 @@
|
|
|
69
69
|
},
|
|
70
70
|
"@repo/internal": {
|
|
71
71
|
"design-system": "v1",
|
|
72
|
-
"styling":
|
|
72
|
+
"styling": [
|
|
73
|
+
"static",
|
|
74
|
+
"emotion"
|
|
75
|
+
],
|
|
73
76
|
"ui-components": "lite-mode",
|
|
74
77
|
"analytics": "analytics-next",
|
|
75
78
|
"theming": "tokens",
|