@atlaskit/inline-dialog 13.4.1 → 13.4.3
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 +12 -0
- package/dist/cjs/InlineDialog/index.js +1 -1
- package/dist/cjs/InlineDialog/styled/container.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/InlineDialog/index.js +1 -1
- package/dist/es2019/InlineDialog/styled/container.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/InlineDialog/index.js +1 -1
- package/dist/esm/InlineDialog/styled/container.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +9 -14
- package/report.api.md +15 -37
- package/dist/types-ts4.0/InlineDialog/index.d.ts +0 -7
- package/dist/types-ts4.0/InlineDialog/styled/container.d.ts +0 -19
- package/dist/types-ts4.0/index.d.ts +0 -2
- package/dist/types-ts4.0/types.d.ts +0 -49
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/inline-dialog
|
|
2
2
|
|
|
3
|
+
## 13.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.4.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
|
|
14
|
+
|
|
3
15
|
## 13.4.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -31,7 +31,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
31
31
|
|
|
32
32
|
/** @jsx jsx */
|
|
33
33
|
var packageName = "@atlaskit/inline-dialog";
|
|
34
|
-
var packageVersion = "13.4.
|
|
34
|
+
var packageVersion = "13.4.3";
|
|
35
35
|
|
|
36
36
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
37
37
|
if (!node) {
|
|
@@ -50,7 +50,7 @@ var containerStyles = (0, _react2.css)({
|
|
|
50
50
|
boxSizing: 'content-box',
|
|
51
51
|
maxWidth: "".concat(gridSize * 56, "px"),
|
|
52
52
|
maxHeight: "".concat(gridSize * 56, "px"),
|
|
53
|
-
padding: "".concat(
|
|
53
|
+
padding: "var(--ds-scale-200, 16px)".concat(" ", "var(--ds-scale-300, 24px)"),
|
|
54
54
|
zIndex: _constants.layers.dialog(),
|
|
55
55
|
background: "var(".concat(CSS_THEME_BACKGROUND, ")"),
|
|
56
56
|
borderRadius: "".concat(borderRadius, "px"),
|
package/dist/cjs/version.json
CHANGED
|
@@ -8,7 +8,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
8
8
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
9
9
|
import { Container } from './styled/container';
|
|
10
10
|
const packageName = "@atlaskit/inline-dialog";
|
|
11
|
-
const packageVersion = "13.4.
|
|
11
|
+
const packageVersion = "13.4.3";
|
|
12
12
|
|
|
13
13
|
const checkIsChildOfPortal = node => {
|
|
14
14
|
if (!node) {
|
|
@@ -29,7 +29,7 @@ const containerStyles = css({
|
|
|
29
29
|
boxSizing: 'content-box',
|
|
30
30
|
maxWidth: `${gridSize * 56}px`,
|
|
31
31
|
maxHeight: `${gridSize * 56}px`,
|
|
32
|
-
padding: `${
|
|
32
|
+
padding: `${"var(--ds-scale-200, 16px)"} ${"var(--ds-scale-300, 24px)"}`,
|
|
33
33
|
zIndex: layers.dialog(),
|
|
34
34
|
background: `var(${CSS_THEME_BACKGROUND})`,
|
|
35
35
|
borderRadius: `${borderRadius}px`,
|
package/dist/es2019/version.json
CHANGED
|
@@ -8,7 +8,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
8
8
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
9
9
|
import { Container } from './styled/container';
|
|
10
10
|
var packageName = "@atlaskit/inline-dialog";
|
|
11
|
-
var packageVersion = "13.4.
|
|
11
|
+
var packageVersion = "13.4.3";
|
|
12
12
|
|
|
13
13
|
var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
|
|
14
14
|
if (!node) {
|
|
@@ -35,7 +35,7 @@ var containerStyles = css({
|
|
|
35
35
|
boxSizing: 'content-box',
|
|
36
36
|
maxWidth: "".concat(gridSize * 56, "px"),
|
|
37
37
|
maxHeight: "".concat(gridSize * 56, "px"),
|
|
38
|
-
padding: "".concat(
|
|
38
|
+
padding: "var(--ds-scale-200, 16px)".concat(" ", "var(--ds-scale-300, 24px)"),
|
|
39
39
|
zIndex: layers.dialog(),
|
|
40
40
|
background: "var(".concat(CSS_THEME_BACKGROUND, ")"),
|
|
41
41
|
borderRadius: "".concat(borderRadius, "px"),
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-dialog",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.3",
|
|
4
4
|
"description": "An inline dialog is a pop-up container for small amounts of information. It can also contain controls.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,16 +12,10 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"typesVersions": {
|
|
16
|
-
">=4.0 <4.5": {
|
|
17
|
-
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
15
|
"sideEffects": false,
|
|
23
16
|
"atlaskit:src": "src/index.tsx",
|
|
24
17
|
"atlassian": {
|
|
18
|
+
"disableProductCI": true,
|
|
25
19
|
"team": "Design System Team",
|
|
26
20
|
"deprecatedAutoEntryPoints": true,
|
|
27
21
|
"releaseModel": "scheduled",
|
|
@@ -43,7 +37,7 @@
|
|
|
43
37
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
44
38
|
"@atlaskit/popper": "^5.0.0",
|
|
45
39
|
"@atlaskit/theme": "^12.2.0",
|
|
46
|
-
"@atlaskit/tokens": "^0.
|
|
40
|
+
"@atlaskit/tokens": "^0.11.0",
|
|
47
41
|
"@babel/runtime": "^7.0.0",
|
|
48
42
|
"@emotion/react": "^11.7.1",
|
|
49
43
|
"bind-event-listener": "^2.1.1",
|
|
@@ -53,12 +47,12 @@
|
|
|
53
47
|
"react": "^16.8.0"
|
|
54
48
|
},
|
|
55
49
|
"devDependencies": {
|
|
56
|
-
"@atlaskit/button": "^16.
|
|
57
|
-
"@atlaskit/datetime-picker": "^12.
|
|
50
|
+
"@atlaskit/button": "^16.4.0",
|
|
51
|
+
"@atlaskit/datetime-picker": "^12.3.0",
|
|
58
52
|
"@atlaskit/docs": "*",
|
|
59
|
-
"@atlaskit/icon": "^21.
|
|
60
|
-
"@atlaskit/modal-dialog": "^12.
|
|
61
|
-
"@atlaskit/section-message": "^6.
|
|
53
|
+
"@atlaskit/icon": "^21.11.0",
|
|
54
|
+
"@atlaskit/modal-dialog": "^12.4.0",
|
|
55
|
+
"@atlaskit/section-message": "^6.3.0",
|
|
62
56
|
"@atlaskit/select": "^15.7.0",
|
|
63
57
|
"@atlaskit/ssr": "*",
|
|
64
58
|
"@atlaskit/visual-regression": "*",
|
|
@@ -90,6 +84,7 @@
|
|
|
90
84
|
"static",
|
|
91
85
|
"emotion"
|
|
92
86
|
],
|
|
87
|
+
"design-tokens": "spacing",
|
|
93
88
|
"design-system": "v1",
|
|
94
89
|
"deprecation": "no-deprecated-imports"
|
|
95
90
|
}
|
package/report.api.md
CHANGED
|
@@ -2,13 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
4
|
|
|
5
|
+
<!--
|
|
6
|
+
Generated API Report version: 2.0
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
10
|
+
|
|
5
11
|
```ts
|
|
6
12
|
import { default as React_2 } from 'react';
|
|
7
13
|
import { ReactNode } from 'react';
|
|
8
14
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
9
15
|
import { WithContextProps } from '@atlaskit/analytics-next';
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
// @public (undocumented)
|
|
18
|
+
const _default: React_2.ForwardRefExoticComponent<
|
|
12
19
|
Pick<
|
|
13
20
|
Omit<
|
|
14
21
|
React_2.PropsWithChildren<InlineDialogProps>,
|
|
@@ -19,6 +26,7 @@ declare const _default: React_2.ForwardRefExoticComponent<
|
|
|
19
26
|
| 'content'
|
|
20
27
|
| 'children'
|
|
21
28
|
| 'testId'
|
|
29
|
+
| 'key'
|
|
22
30
|
| 'isOpen'
|
|
23
31
|
| 'onContentBlur'
|
|
24
32
|
| 'onContentClick'
|
|
@@ -26,58 +34,28 @@ declare const _default: React_2.ForwardRefExoticComponent<
|
|
|
26
34
|
| 'onClose'
|
|
27
35
|
| 'placement'
|
|
28
36
|
| 'strategy'
|
|
29
|
-
| 'key'
|
|
30
37
|
| 'analyticsContext'
|
|
31
38
|
> &
|
|
32
39
|
React_2.RefAttributes<any>
|
|
33
40
|
>;
|
|
34
41
|
export default _default;
|
|
35
42
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
* The elements that the InlineDialog will be positioned relative to.
|
|
39
|
-
*/
|
|
43
|
+
// @public (undocumented)
|
|
44
|
+
interface InlineDialogProps extends WithAnalyticsEventsProps {
|
|
40
45
|
children: ReactNode;
|
|
41
|
-
/**
|
|
42
|
-
* The elements to be displayed within the InlineDialog.
|
|
43
|
-
*/
|
|
44
46
|
content: ReactNode;
|
|
45
|
-
/**
|
|
46
|
-
* Sets whether to show or hide the dialog.
|
|
47
|
-
*/
|
|
48
47
|
isOpen?: boolean;
|
|
49
|
-
|
|
50
|
-
* Function called when you lose focus on the object.
|
|
51
|
-
*/
|
|
48
|
+
onClose?: (obj: { isOpen: boolean; event: Event }) => void;
|
|
52
49
|
onContentBlur?: () => void;
|
|
53
|
-
/**
|
|
54
|
-
* Function called when user clicks on the open dialog.
|
|
55
|
-
*/
|
|
56
50
|
onContentClick?: () => void;
|
|
57
|
-
/**
|
|
58
|
-
* Function called when user focuses on the open dialog.
|
|
59
|
-
*/
|
|
60
51
|
onContentFocus?: () => void;
|
|
61
|
-
/**
|
|
62
|
-
* Function called when the dialog is open and a click occurs anywhere outside
|
|
63
|
-
* the dialog.
|
|
64
|
-
*/
|
|
65
|
-
onClose?: (obj: { isOpen: boolean; event: Event }) => void;
|
|
66
|
-
/**
|
|
67
|
-
* Where the dialog should appear, relative to the contents of the children.
|
|
68
|
-
*/
|
|
69
52
|
placement?: Placement;
|
|
70
|
-
/**
|
|
71
|
-
* Placement strategy used. Can be 'fixed' or 'absolute'. Defaults to 'fixed'.
|
|
72
|
-
*/
|
|
73
53
|
strategy?: 'fixed' | 'absolute';
|
|
74
|
-
/**
|
|
75
|
-
* A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
|
|
76
|
-
*/
|
|
77
54
|
testId?: string;
|
|
78
55
|
}
|
|
79
56
|
|
|
80
|
-
|
|
57
|
+
// @public (undocumented)
|
|
58
|
+
export type Placement =
|
|
81
59
|
| 'auto-start'
|
|
82
60
|
| 'auto'
|
|
83
61
|
| 'auto-end'
|
|
@@ -94,5 +72,5 @@ export declare type Placement =
|
|
|
94
72
|
| 'left'
|
|
95
73
|
| 'left-start';
|
|
96
74
|
|
|
97
|
-
|
|
75
|
+
// (No @packageDocumentation comment for this package)
|
|
98
76
|
```
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React, { FC } from 'react';
|
|
3
|
-
import type { InlineDialogProps } from '../types';
|
|
4
|
-
declare const InlineDialog: FC<InlineDialogProps>;
|
|
5
|
-
export { InlineDialog as InlineDialogWithoutAnalytics };
|
|
6
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<InlineDialogProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "children" | "content" | "isOpen" | "onContentBlur" | "onContentClick" | "onContentFocus" | "onClose" | "placement" | "strategy" | "testId" | "key" | "analyticsContext"> & React.RefAttributes<any>>;
|
|
7
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface ContainerProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
6
|
-
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
7
|
-
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
8
|
-
style: React.CSSProperties;
|
|
9
|
-
testId?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* __Container__
|
|
13
|
-
*
|
|
14
|
-
* A container is used as a styled wrapper around the contents of an inline dialog.
|
|
15
|
-
* Note that the styles here are merged with the style prop that comes from the popper.js library.
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
export declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
export {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
export declare type Placement = 'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
|
|
4
|
-
export interface InlineDialogProps extends WithAnalyticsEventsProps {
|
|
5
|
-
/**
|
|
6
|
-
* The elements that the InlineDialog will be positioned relative to.
|
|
7
|
-
*/
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* The elements to be displayed within the InlineDialog.
|
|
11
|
-
*/
|
|
12
|
-
content: ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Sets whether to show or hide the dialog.
|
|
15
|
-
*/
|
|
16
|
-
isOpen?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Function called when you lose focus on the object.
|
|
19
|
-
*/
|
|
20
|
-
onContentBlur?: () => void;
|
|
21
|
-
/**
|
|
22
|
-
* Function called when user clicks on the open dialog.
|
|
23
|
-
*/
|
|
24
|
-
onContentClick?: () => void;
|
|
25
|
-
/**
|
|
26
|
-
* Function called when user focuses on the open dialog.
|
|
27
|
-
*/
|
|
28
|
-
onContentFocus?: () => void;
|
|
29
|
-
/**
|
|
30
|
-
* Function called when the dialog is open and a click occurs anywhere outside
|
|
31
|
-
* the dialog.
|
|
32
|
-
*/
|
|
33
|
-
onClose?: (obj: {
|
|
34
|
-
isOpen: boolean;
|
|
35
|
-
event: Event;
|
|
36
|
-
}) => void;
|
|
37
|
-
/**
|
|
38
|
-
* Where the dialog should appear, relative to the contents of the children.
|
|
39
|
-
*/
|
|
40
|
-
placement?: Placement;
|
|
41
|
-
/**
|
|
42
|
-
* Placement strategy used. Can be 'fixed' or 'absolute'. Defaults to 'fixed'.
|
|
43
|
-
*/
|
|
44
|
-
strategy?: 'fixed' | 'absolute';
|
|
45
|
-
/**
|
|
46
|
-
* A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
|
|
47
|
-
*/
|
|
48
|
-
testId?: string;
|
|
49
|
-
}
|