@atlaskit/blanket 15.0.26 → 15.0.28

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/blanket
2
2
 
3
+ ## 15.0.28
4
+
5
+ ### Patch Changes
6
+
7
+ - [`22bf79dbdcdca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22bf79dbdcdca) -
8
+ Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
9
+
10
+ ## 15.0.27
11
+
12
+ ### Patch Changes
13
+
14
+ - [`7aef1e49e90ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7aef1e49e90ea) -
15
+ Removes redundant fallback color values via @atlaskit/theme
16
+ - Updated dependencies
17
+
3
18
  ## 15.0.26
4
19
 
5
20
  ### Patch Changes
@@ -0,0 +1,46 @@
1
+ import path from 'path';
2
+
3
+ import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
4
+
5
+ const documentation: ComponentStructuredContentSource[] = [
6
+ {
7
+ name: 'Blanket',
8
+ description:
9
+ 'A component for creating overlay backgrounds behind modals and other layered content.',
10
+ status: 'general-availability',
11
+ import: {
12
+ name: 'Blanket',
13
+ package: '@atlaskit/blanket',
14
+ type: 'default',
15
+ packagePath: path.resolve(__dirname),
16
+ packageJson: require('./package.json'),
17
+ },
18
+ usageGuidelines: [
19
+ 'Use behind modals and overlays',
20
+ 'Consider click-to-dismiss behavior',
21
+ 'Use appropriate tinting for context',
22
+ 'Ensure proper z-index layering',
23
+ ],
24
+ contentGuidelines: [
25
+ 'Use consistently across similar overlay contexts',
26
+ 'Consider visual hierarchy with overlays',
27
+ 'Ensure appropriate contrast with content',
28
+ ],
29
+ accessibilityGuidelines: [
30
+ "Ensure blanket doesn't interfere with focus management",
31
+ 'Provide appropriate click handling for dismissal',
32
+ 'Consider screen reader experience with overlays',
33
+ ],
34
+ examples: [
35
+ {
36
+ name: 'Blanket',
37
+ description: 'Blanket example',
38
+ source: path.resolve(__dirname, './examples/ai/blanket.tsx'),
39
+ },
40
+ ],
41
+ keywords: ['blanket', 'overlay', 'backdrop', 'modal', 'layer'],
42
+ categories: ['overlay'],
43
+ },
44
+ ];
45
+
46
+ export default documentation;
@@ -1,8 +1,8 @@
1
1
 
2
2
  ._1r04idpf{inset:0}._18m91wug{overflow-y:auto}
3
3
  ._1pbybfng{z-index:500}
4
+ ._bfhk1i5c{background-color:var(--ds-blanket,#050c1f75)}
4
5
  ._bfhk1j28{background-color:transparent}
5
- ._bfhk705f{background-color:var(--_10avjlk)}
6
6
  ._kqsw1n9t{position:fixed}
7
7
  ._lcxv1wug{pointer-events:auto}
8
8
  ._lcxvglyw{pointer-events:none}
@@ -14,13 +14,12 @@ var _runtime = require("@compiled/react/runtime");
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
16
16
  var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
17
- var _colors = require("@atlaskit/theme/colors");
18
17
  var _constants = require("@atlaskit/theme/constants");
19
18
  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); }
20
19
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
20
  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; }
22
21
  var packageName = "@atlaskit/blanket";
23
- var packageVersion = "0.0.0-development";
22
+ var packageVersion = "15.0.27";
24
23
  var analyticsAttributes = {
25
24
  componentName: 'blanket',
26
25
  packageName: packageName,
@@ -66,10 +65,7 @@ var Blanket = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)
66
65
  onMouseDown: onMouseDown,
67
66
  "data-testid": testId,
68
67
  ref: ref,
69
- className: (0, _runtime.ax)(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk705f _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk1j28"]),
70
- style: {
71
- "--_10avjlk": (0, _runtime.ix)("var(--ds-blanket, ".concat(_colors.N100A, ")"))
72
- }
68
+ className: (0, _runtime.ax)(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk1i5c _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk1j28"])
73
69
  }, children);
74
70
  }));
75
71
  Blanket.displayName = 'Blanket';
@@ -1,7 +1,7 @@
1
1
 
2
2
  ._1r04idpf{inset:0}._18m91wug{overflow-y:auto}
3
3
  ._1pbybfng{z-index:500}
4
- ._bfhk10ak{background-color:var(--ds-blanket,rgba(9,30,66,.54))}
4
+ ._bfhk1i5c{background-color:var(--ds-blanket,#050c1f75)}
5
5
  ._bfhk1j28{background-color:transparent}
6
6
  ._kqsw1n9t{position:fixed}
7
7
  ._lcxv1wug{pointer-events:auto}
@@ -5,10 +5,9 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { forwardRef, memo, useCallback, useRef } from 'react';
6
6
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
7
7
  import noop from '@atlaskit/ds-lib/noop';
8
- import { N100A } from '@atlaskit/theme/colors';
9
8
  import { layers } from '@atlaskit/theme/constants';
10
9
  const packageName = "@atlaskit/blanket";
11
- const packageVersion = "0.0.0-development";
10
+ const packageVersion = "15.0.27";
12
11
  const analyticsAttributes = {
13
12
  componentName: 'blanket',
14
13
  packageName,
@@ -51,7 +50,7 @@ const Blanket = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Blanket({
51
50
  onMouseDown: onMouseDown,
52
51
  "data-testid": testId,
53
52
  ref: ref,
54
- className: ax(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk10ak _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk1j28"])
53
+ className: ax(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk1i5c _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk1j28"])
55
54
  }, children);
56
55
  }));
57
56
  Blanket.displayName = 'Blanket';
@@ -1,8 +1,8 @@
1
1
 
2
2
  ._1r04idpf{inset:0}._18m91wug{overflow-y:auto}
3
3
  ._1pbybfng{z-index:500}
4
+ ._bfhk1i5c{background-color:var(--ds-blanket,#050c1f75)}
4
5
  ._bfhk1j28{background-color:transparent}
5
- ._bfhk705f{background-color:var(--_10avjlk)}
6
6
  ._kqsw1n9t{position:fixed}
7
7
  ._lcxv1wug{pointer-events:auto}
8
8
  ._lcxvglyw{pointer-events:none}
@@ -8,10 +8,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
8
8
  import { forwardRef, memo, useCallback, useRef } from 'react';
9
9
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
10
10
  import noop from '@atlaskit/ds-lib/noop';
11
- import { N100A } from '@atlaskit/theme/colors';
12
11
  import { layers } from '@atlaskit/theme/constants';
13
12
  var packageName = "@atlaskit/blanket";
14
- var packageVersion = "0.0.0-development";
13
+ var packageVersion = "15.0.27";
15
14
  var analyticsAttributes = {
16
15
  componentName: 'blanket',
17
16
  packageName: packageName,
@@ -57,10 +56,7 @@ var Blanket = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Blanket(_ref,
57
56
  onMouseDown: onMouseDown,
58
57
  "data-testid": testId,
59
58
  ref: ref,
60
- className: ax(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk705f _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk1j28"]),
61
- style: {
62
- "--_10avjlk": ix("var(--ds-blanket, ".concat(N100A, ")"))
63
- }
59
+ className: ax(["_1r04idpf _kqsw1n9t _1pbybfng _bfhk1i5c _18m91wug _lcxv1wug", shouldAllowClickThrough && "_lcxvglyw", !isTinted && "_bfhk1j28"])
64
60
  }, children);
65
61
  }));
66
62
  Blanket.displayName = 'Blanket';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/blanket",
3
- "version": "15.0.26",
3
+ "version": "15.0.28",
4
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/"
@@ -33,11 +33,11 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/analytics-next": "^11.1.0",
36
+ "@atlaskit/analytics-next": "^11.2.0",
37
37
  "@atlaskit/css": "^0.19.0",
38
38
  "@atlaskit/ds-lib": "^6.0.0",
39
39
  "@atlaskit/theme": "^22.0.0",
40
- "@atlaskit/tokens": "^11.1.0",
40
+ "@atlaskit/tokens": "^11.4.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@compiled/react": "^0.20.0"
43
43
  },
@@ -49,14 +49,15 @@
49
49
  "@af/integration-testing": "workspace:^",
50
50
  "@atlaskit/badge": "^18.4.0",
51
51
  "@atlaskit/button": "^23.10.0",
52
- "@atlaskit/docs": "^11.6.0",
52
+ "@atlaskit/docs": "^11.7.0",
53
53
  "@atlaskit/heading": "^5.3.0",
54
54
  "@atlaskit/layering": "^3.6.0",
55
55
  "@atlaskit/link": "^3.3.0",
56
- "@atlaskit/primitives": "^18.0.0",
56
+ "@atlaskit/primitives": "^18.1.0",
57
57
  "@atlaskit/section-message": "^8.12.0",
58
58
  "@atlaskit/toggle": "^15.2.0",
59
59
  "@atlassian/ssr-tests": "workspace:^",
60
+ "@atlassian/structured-docs-types": "workspace:^",
60
61
  "@testing-library/dom": "^10.1.0",
61
62
  "@testing-library/react": "^16.3.0",
62
63
  "@testing-library/user-event": "^14.4.3",