@atlaskit/blanket 12.2.6 → 12.2.9
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 +19 -0
- package/README.md +2 -2
- package/dist/cjs/blanket.js +4 -10
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/blanket.js +4 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/blanket.js +4 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/blanket.d.ts +2 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/blanket
|
|
2
2
|
|
|
3
|
+
## 12.2.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a0b4a3db79c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a0b4a3db79c) - Change internal type syntax to work with extract-react-types
|
|
8
|
+
|
|
9
|
+
## 12.2.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 12.2.7
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 12.2.6
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Blanket
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A blanket covers the underlying UI for a layered component, such as a modal dialog or a tooltip.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -8,4 +8,4 @@ yarn add @atlaskit/blanket
|
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
[View documentation](https://atlassian.design/components/blanket).
|
package/dist/cjs/blanket.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
@@ -11,7 +9,7 @@ exports.default = void 0;
|
|
|
11
9
|
|
|
12
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
11
|
|
|
14
|
-
var _react =
|
|
12
|
+
var _react = require("react");
|
|
15
13
|
|
|
16
14
|
var _core = require("@emotion/core");
|
|
17
15
|
|
|
@@ -25,16 +23,12 @@ var _components = require("@atlaskit/theme/components");
|
|
|
25
23
|
|
|
26
24
|
var _constants = require("@atlaskit/theme/constants");
|
|
27
25
|
|
|
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); }
|
|
29
|
-
|
|
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; }
|
|
31
|
-
|
|
32
26
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
33
27
|
|
|
34
28
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
35
29
|
|
|
36
30
|
var packageName = "@atlaskit/blanket";
|
|
37
|
-
var packageVersion = "12.2.
|
|
31
|
+
var packageVersion = "12.2.9";
|
|
38
32
|
var analyticsAttributes = {
|
|
39
33
|
componentName: 'blanket',
|
|
40
34
|
packageName: packageName,
|
|
@@ -57,10 +51,10 @@ var invisibleStyles = (0, _core.css)({
|
|
|
57
51
|
backgroundColor: 'transparent'
|
|
58
52
|
});
|
|
59
53
|
var lightBgStyles = (0, _core.css)({
|
|
60
|
-
backgroundColor: "var(--ds-
|
|
54
|
+
backgroundColor: "var(--ds-blanket, ".concat(_colors.N100A, ")")
|
|
61
55
|
});
|
|
62
56
|
var darkBgStyles = (0, _core.css)({
|
|
63
|
-
backgroundColor: "var(--ds-
|
|
57
|
+
backgroundColor: "var(--ds-blanket, ".concat(_colors.DN90A, ")")
|
|
64
58
|
});
|
|
65
59
|
var backgroundStyle = {
|
|
66
60
|
light: lightBgStyles,
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/blanket.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import
|
|
2
|
+
import { forwardRef, memo, useCallback } from 'react';
|
|
3
3
|
import { css, jsx } from '@emotion/core';
|
|
4
4
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
5
5
|
import noop from '@atlaskit/ds-lib/noop';
|
|
@@ -7,7 +7,7 @@ import { DN90A, N100A } from '@atlaskit/theme/colors';
|
|
|
7
7
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
8
8
|
import { layers } from '@atlaskit/theme/constants';
|
|
9
9
|
const packageName = "@atlaskit/blanket";
|
|
10
|
-
const packageVersion = "12.2.
|
|
10
|
+
const packageVersion = "12.2.9";
|
|
11
11
|
const analyticsAttributes = {
|
|
12
12
|
componentName: 'blanket',
|
|
13
13
|
packageName,
|
|
@@ -30,10 +30,10 @@ const invisibleStyles = css({
|
|
|
30
30
|
backgroundColor: 'transparent'
|
|
31
31
|
});
|
|
32
32
|
const lightBgStyles = css({
|
|
33
|
-
backgroundColor: `var(--ds-
|
|
33
|
+
backgroundColor: `var(--ds-blanket, ${N100A})`
|
|
34
34
|
});
|
|
35
35
|
const darkBgStyles = css({
|
|
36
|
-
backgroundColor: `var(--ds-
|
|
36
|
+
backgroundColor: `var(--ds-blanket, ${DN90A})`
|
|
37
37
|
});
|
|
38
38
|
const backgroundStyle = {
|
|
39
39
|
light: lightBgStyles,
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/blanket.js
CHANGED
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
|
-
import
|
|
8
|
+
import { forwardRef, memo, useCallback } from 'react';
|
|
9
9
|
import { css, jsx } from '@emotion/core';
|
|
10
10
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
11
11
|
import noop from '@atlaskit/ds-lib/noop';
|
|
@@ -13,7 +13,7 @@ import { DN90A, N100A } from '@atlaskit/theme/colors';
|
|
|
13
13
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
14
14
|
import { layers } from '@atlaskit/theme/constants';
|
|
15
15
|
var packageName = "@atlaskit/blanket";
|
|
16
|
-
var packageVersion = "12.2.
|
|
16
|
+
var packageVersion = "12.2.9";
|
|
17
17
|
var analyticsAttributes = {
|
|
18
18
|
componentName: 'blanket',
|
|
19
19
|
packageName: packageName,
|
|
@@ -36,10 +36,10 @@ var invisibleStyles = css({
|
|
|
36
36
|
backgroundColor: 'transparent'
|
|
37
37
|
});
|
|
38
38
|
var lightBgStyles = css({
|
|
39
|
-
backgroundColor: "var(--ds-
|
|
39
|
+
backgroundColor: "var(--ds-blanket, ".concat(N100A, ")")
|
|
40
40
|
});
|
|
41
41
|
var darkBgStyles = css({
|
|
42
|
-
backgroundColor: "var(--ds-
|
|
42
|
+
backgroundColor: "var(--ds-blanket, ".concat(DN90A, ")")
|
|
43
43
|
});
|
|
44
44
|
var backgroundStyle = {
|
|
45
45
|
light: lightBgStyles,
|
package/dist/esm/version.json
CHANGED
package/dist/types/blanket.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import React from 'react';
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
import type { BlanketProps } from './types';
|
|
4
3
|
/**
|
|
5
4
|
* __Blanket__
|
|
@@ -8,5 +7,5 @@ import type { BlanketProps } from './types';
|
|
|
8
7
|
*
|
|
9
8
|
* - [Examples](https://atlaskit.atlassian.com/examples/design-system/blanket/basic-usage)
|
|
10
9
|
*/
|
|
11
|
-
declare const Blanket:
|
|
10
|
+
declare const Blanket: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<BlanketProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
12
11
|
export default Blanket;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/blanket",
|
|
3
|
-
"version": "12.2.
|
|
4
|
-
"description": "A
|
|
3
|
+
"version": "12.2.9",
|
|
4
|
+
"description": "A blanket covers the underlying UI for a layered component, such as a modal dialog or a tooltip.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"atlaskit:src": "src/index.tsx",
|
|
17
|
-
"
|
|
17
|
+
"homepage": "https://atlassian.design/components/blanket",
|
|
18
18
|
"atlassian": {
|
|
19
19
|
"team": "Design System Team",
|
|
20
20
|
"releaseModel": "scheduled",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
31
31
|
"@atlaskit/codemod-utils": "^3.4.0",
|
|
32
|
-
"@atlaskit/ds-lib": "^1.
|
|
32
|
+
"@atlaskit/ds-lib": "^1.4.0",
|
|
33
33
|
"@atlaskit/theme": "^12.1.0",
|
|
34
|
-
"@atlaskit/tokens": "^0.
|
|
34
|
+
"@atlaskit/tokens": "^0.7.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"@emotion/core": "^10.0.9"
|
|
37
37
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@atlaskit/badge": "^15.0.0",
|
|
43
|
-
"@atlaskit/button": "^16.
|
|
43
|
+
"@atlaskit/button": "^16.2.0",
|
|
44
44
|
"@atlaskit/docs": "*",
|
|
45
45
|
"@atlaskit/ssr": "*",
|
|
46
46
|
"@atlaskit/toggle": "^12.4.0",
|