@efolusi/meridian 1.16.0 → 1.17.0
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/feedback/Dialog.d.ts +3 -0
- package/feedback/Dialog.js +2 -1
- package/overlay/Drawer.d.ts +3 -0
- package/overlay/Drawer.js +2 -1
- package/package.json +1 -1
package/feedback/Dialog.d.ts
CHANGED
|
@@ -2,6 +2,9 @@ export interface DialogProps {
|
|
|
2
2
|
open: boolean;
|
|
3
3
|
/** Called on ✕, ESC, or overlay click; omit to hide ✕ */
|
|
4
4
|
onClose?: () => void;
|
|
5
|
+
/** Accessible name of the ✕ button. Pass a translated string in a
|
|
6
|
+
* non-English UI. @default 'Close' */
|
|
7
|
+
closeLabel?: string;
|
|
5
8
|
title: React.ReactNode;
|
|
6
9
|
description?: React.ReactNode;
|
|
7
10
|
/** Right-aligned action row on sunken strip */
|
package/feedback/Dialog.js
CHANGED
|
@@ -7,6 +7,7 @@ const FOCUSABLE = 'button,[href],input,select,textarea,[tabindex]:not([tabindex=
|
|
|
7
7
|
export const Dialog = /*#__PURE__*/React.forwardRef(function Dialog({
|
|
8
8
|
open,
|
|
9
9
|
onClose,
|
|
10
|
+
closeLabel = 'Close',
|
|
10
11
|
title,
|
|
11
12
|
description,
|
|
12
13
|
footer,
|
|
@@ -86,7 +87,7 @@ export const Dialog = /*#__PURE__*/React.forwardRef(function Dialog({
|
|
|
86
87
|
id: descId
|
|
87
88
|
}, description) : null), onClose ? /*#__PURE__*/React.createElement(IconButton, {
|
|
88
89
|
icon: "x",
|
|
89
|
-
label:
|
|
90
|
+
label: closeLabel,
|
|
90
91
|
size: "sm",
|
|
91
92
|
onClick: onClose
|
|
92
93
|
}) : null), /*#__PURE__*/React.createElement("div", {
|
package/overlay/Drawer.d.ts
CHANGED
|
@@ -2,6 +2,9 @@ export interface DrawerProps {
|
|
|
2
2
|
open: boolean;
|
|
3
3
|
/** Called on ✕, ESC, or overlay click */
|
|
4
4
|
onClose?: () => void;
|
|
5
|
+
/** Accessible name of the ✕ button. Pass a translated string in a
|
|
6
|
+
* non-English UI. @default 'Close' */
|
|
7
|
+
closeLabel?: string;
|
|
5
8
|
title: React.ReactNode;
|
|
6
9
|
/** Right-aligned action row on sunken strip */
|
|
7
10
|
footer?: React.ReactNode;
|
package/overlay/Drawer.js
CHANGED
|
@@ -7,6 +7,7 @@ const FOCUSABLE = 'button,[href],input,select,textarea,[tabindex]:not([tabindex=
|
|
|
7
7
|
export const Drawer = /*#__PURE__*/React.forwardRef(function Drawer({
|
|
8
8
|
open,
|
|
9
9
|
onClose,
|
|
10
|
+
closeLabel = 'Close',
|
|
10
11
|
title,
|
|
11
12
|
footer,
|
|
12
13
|
width = 400,
|
|
@@ -77,7 +78,7 @@ export const Drawer = /*#__PURE__*/React.forwardRef(function Drawer({
|
|
|
77
78
|
id: titleId
|
|
78
79
|
}, title), onClose ? /*#__PURE__*/React.createElement(IconButton, {
|
|
79
80
|
icon: "x",
|
|
80
|
-
label:
|
|
81
|
+
label: closeLabel,
|
|
81
82
|
size: "sm",
|
|
82
83
|
onClick: onClose
|
|
83
84
|
}) : null), /*#__PURE__*/React.createElement("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@efolusi/meridian",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "A general-purpose open-source design system by Efolusi: accessible React components, design tokens, blocks and example apps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://meridian.efolusi.com",
|