@atlaskit/modal-dialog 15.0.0 → 15.0.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.
@@ -14,11 +14,9 @@ export type { ModalFooterProps } from './modal-footer';
14
14
  export type { ModalAttributes } from './internal/context';
15
15
  export interface ModalDialogProps {
16
16
  /**
17
- * Focus is moved to the first interactive element inside the modal dialog
18
- * when `true`. It is not recommended to set to `false` as this creates
19
- * accessibility regressions. Pass an element `ref` to focus on a specific element.
20
- *
21
- * Default value is `true`.
17
+ * Pass an element `ref` to focus on a specific element on load. Default
18
+ * behavior is focus is moved to the first interactive element inside the
19
+ * modal dialog.
22
20
  */
23
21
  autoFocus?: RefObject<HTMLElement | null | undefined>;
24
22
  /**
@@ -2,6 +2,9 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
+ import type { ModalDialogProps } from '../../types';
5
6
  import type { InternalModalDialogProps } from '../types';
7
+ export declare const dialogWidth: (input?: ModalDialogProps["width"]) => string;
8
+ export declare const dialogHeight: (input?: ModalDialogProps["height"]) => string;
6
9
  declare const ModalDialog: (props: InternalModalDialogProps) => JSX.Element;
7
10
  export default ModalDialog;
@@ -14,11 +14,9 @@ export type { ModalFooterProps } from './modal-footer';
14
14
  export type { ModalAttributes } from './internal/context';
15
15
  export interface ModalDialogProps {
16
16
  /**
17
- * Focus is moved to the first interactive element inside the modal dialog
18
- * when `true`. It is not recommended to set to `false` as this creates
19
- * accessibility regressions. Pass an element `ref` to focus on a specific element.
20
- *
21
- * Default value is `true`.
17
+ * Pass an element `ref` to focus on a specific element on load. Default
18
+ * behavior is focus is moved to the first interactive element inside the
19
+ * modal dialog.
22
20
  */
23
21
  autoFocus?: RefObject<HTMLElement | null | undefined>;
24
22
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "15.0.0",
3
+ "version": "15.0.2",
4
4
  "description": "A modal dialog displays content that requires user interaction, in a layer above the page.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/button": "^23.11.0",
40
40
  "@atlaskit/css": "^0.19.0",
41
41
  "@atlaskit/ds-lib": "^7.0.0",
42
- "@atlaskit/icon": "^34.4.0",
42
+ "@atlaskit/icon": "^34.5.0",
43
43
  "@atlaskit/layering": "^3.7.0",
44
44
  "@atlaskit/motion": "^6.2.0",
45
45
  "@atlaskit/platform-feature-flags": "^1.1.0",
@@ -48,6 +48,7 @@
48
48
  "@atlaskit/primitives": "^19.0.0",
49
49
  "@atlaskit/theme": "^23.2.0",
50
50
  "@atlaskit/tokens": "^13.0.0",
51
+ "@atlaskit/top-layer": "^0.6.0",
51
52
  "@babel/runtime": "^7.0.0",
52
53
  "@compiled/react": "^0.20.0",
53
54
  "bind-event-listener": "^3.0.0",
@@ -63,7 +64,7 @@
63
64
  "@af/integration-testing": "workspace:^",
64
65
  "@af/visual-regression": "workspace:^",
65
66
  "@atlaskit/avatar": "^25.14.0",
66
- "@atlaskit/avatar-group": "^12.7.0",
67
+ "@atlaskit/avatar-group": "^12.9.0",
67
68
  "@atlaskit/banner": "^14.1.0",
68
69
  "@atlaskit/breadcrumbs": "^16.1.0",
69
70
  "@atlaskit/checkbox": "^17.3.0",
@@ -75,14 +76,14 @@
75
76
  "@atlaskit/form": "^15.5.0",
76
77
  "@atlaskit/heading": "^5.4.0",
77
78
  "@atlaskit/link": "^3.4.0",
78
- "@atlaskit/popup": "^4.17.0",
79
+ "@atlaskit/popup": "^4.19.0",
79
80
  "@atlaskit/radio": "^8.6.0",
80
81
  "@atlaskit/section-message": "^8.12.0",
81
- "@atlaskit/select": "^21.10.0",
82
+ "@atlaskit/select": "^21.12.0",
82
83
  "@atlaskit/spotlight": "^0.14.0",
83
84
  "@atlaskit/textfield": "^8.3.0",
84
- "@atlaskit/tooltip": "^22.0.0",
85
- "@atlassian/feature-flags-test-utils": "^1.0.0",
85
+ "@atlaskit/tooltip": "^22.2.0",
86
+ "@atlassian/feature-flags-test-utils": "^1.1.0",
86
87
  "@atlassian/react-compiler-gating": "workspace:^",
87
88
  "@atlassian/ssr-tests": "workspace:^",
88
89
  "@atlassian/structured-docs-types": "workspace:^",
@@ -140,6 +141,9 @@
140
141
  },
141
142
  "platform-dst-motion-uplift-modal": {
142
143
  "type": "boolean"
144
+ },
145
+ "platform-dst-top-layer": {
146
+ "type": "boolean"
143
147
  }
144
148
  },
145
149
  "homepage": "https://atlassian.design/components/modal-dialog/"