@atlaskit/blanket 12.4.1 → 12.4.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 +6 -0
- package/dist/cjs/blanket.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/blanket.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/blanket.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.5/blanket.d.ts +11 -0
- package/dist/types-ts4.5/entry-points/types.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +2 -0
- package/dist/types-ts4.5/types.d.ts +30 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cjs/blanket.js
CHANGED
|
@@ -16,7 +16,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
16
16
|
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; }
|
|
17
17
|
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; } /** @jsx jsx */
|
|
18
18
|
var packageName = "@atlaskit/blanket";
|
|
19
|
-
var packageVersion = "12.4.
|
|
19
|
+
var packageVersion = "12.4.2";
|
|
20
20
|
var analyticsAttributes = {
|
|
21
21
|
componentName: 'blanket',
|
|
22
22
|
packageName: packageName,
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/blanket.js
CHANGED
|
@@ -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.4.
|
|
10
|
+
const packageVersion = "12.4.2";
|
|
11
11
|
const analyticsAttributes = {
|
|
12
12
|
componentName: 'blanket',
|
|
13
13
|
packageName,
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/blanket.js
CHANGED
|
@@ -10,7 +10,7 @@ import { DN90A, N100A } from '@atlaskit/theme/colors';
|
|
|
10
10
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
11
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
12
12
|
var packageName = "@atlaskit/blanket";
|
|
13
|
-
var packageVersion = "12.4.
|
|
13
|
+
var packageVersion = "12.4.2";
|
|
14
14
|
var analyticsAttributes = {
|
|
15
15
|
componentName: 'blanket',
|
|
16
16
|
packageName: packageName,
|
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BlanketProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* __Blanket__
|
|
5
|
+
*
|
|
6
|
+
* A Blanket provides the overlay layer for components such as a modal dialog or a tooltip
|
|
7
|
+
*
|
|
8
|
+
* - [Examples](https://atlaskit.atlassian.com/examples/design-system/blanket/basic-usage)
|
|
9
|
+
*/
|
|
10
|
+
declare const Blanket: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<BlanketProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
11
|
+
export default Blanket;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { BlanketProps } from '../types';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
3
|
+
export interface BlanketProps {
|
|
4
|
+
/**
|
|
5
|
+
* Whether mouse events can pierce the blanket. If true, onBlanketClicked will not be fired.
|
|
6
|
+
*/
|
|
7
|
+
shouldAllowClickThrough?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the blanket has a tinted background color.
|
|
10
|
+
*/
|
|
11
|
+
isTinted?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Handler function to be called when the blanket is clicked.
|
|
14
|
+
*/
|
|
15
|
+
onBlanketClicked?: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Additional information to be included in the `context` of analytics events.
|
|
18
|
+
*/
|
|
19
|
+
analyticsContext?: Record<string, any>;
|
|
20
|
+
/**
|
|
21
|
+
* A `testId` prop is provided for specified elements,
|
|
22
|
+
* which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
23
|
+
* serving as a hook for automated tests.
|
|
24
|
+
*/
|
|
25
|
+
testId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The children to be rendered within Blanket.
|
|
28
|
+
*/
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
}
|
package/package.json
CHANGED