@nxgt/material 2.9.0 → 2.10.1
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 +22 -0
- package/dist/{blockDiagram-BEXU5L5S-BOsyK4E_.js → blockDiagram-BEXU5L5S-CJLOORWK.js} +1 -1
- package/dist/{chunk-3FUC2YCW-BCsKm3ZT.js → chunk-3FUC2YCW-ClO5Q7A1.js} +1 -1
- package/dist/{chunk-7M6MHVWA-C3qpW8zM.js → chunk-7M6MHVWA-DsMPzivr.js} +1 -1
- package/dist/{chunk-GNY47TPC-CzPNLW5k.js → chunk-GNY47TPC-CFItyjGy.js} +4 -4
- package/dist/{chunk-NETBCI7D-tNinefdn.js → chunk-NETBCI7D-Bll4gy0a.js} +1 -1
- package/dist/{chunk-Z7XXMR3K-C9P-XjM2.js → chunk-Z7XXMR3K-CwcuZpJa.js} +1 -1
- package/dist/{classDiagram-v2-NBCMYWYE-D00ZobEC.js → classDiagram-v2-NBCMYWYE-BAvo2puZ.js} +2 -2
- package/dist/components/theme-tokens.css +2 -2
- package/dist/{components-km60bAdr.js → components-N_PpCQjB.js} +21320 -21294
- package/dist/components.js +4 -4
- package/dist/{dagre-6A5THRUB-D_F3_LlW.js → dagre-6A5THRUB-C70bzAEw.js} +3 -3
- package/dist/{diagram-22UHCM2B-CsxOExpW.js → diagram-22UHCM2B-BtBii6xG.js} +2 -2
- package/dist/{diagram-3UASUU5V-Dl7AETV1.js → diagram-3UASUU5V-DMDUtIe2.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/{elk-276RUBZZ-BK-NMLiI.js → elk-276RUBZZ-D2kPrlDF.js} +3 -3
- package/dist/{erDiagram-OPXOYQCR-DC1GgS4l.js → erDiagram-OPXOYQCR-CItUoDJi.js} +2 -2
- package/dist/{field-blur--x_n3oMy.js → field-blur-DbgP3nv0.js} +6 -6
- package/dist/{flowDiagram-KWPJA3E3-BUSlDNQP.js → flowDiagram-KWPJA3E3-BF73zGqG.js} +3 -3
- package/dist/{ganttDiagram-FUAMR5RP-DOp1p_x0.js → ganttDiagram-FUAMR5RP-DWnIg8g9.js} +1 -1
- package/dist/{icon-button-G9zdQ3Ix.js → icon-button-B1nN3J6B.js} +5 -5
- package/dist/{journeyDiagram-ZHPQQLJL-DuQ9Th0y.js → journeyDiagram-ZHPQQLJL-C1G4q1sS.js} +1 -1
- package/dist/lib/components/ui/feedback/toast/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/toast/partials/toast-actions.d.ts +12 -2
- package/dist/lib/components/ui/feedback/toast/toast-data.d.ts +26 -0
- package/dist/lib/components/ui/feedback/toast/toast.d.ts +6 -3
- package/dist/lib/components/ui/feedback/toast/toasts.d.ts +18 -6
- package/dist/main.js +4 -4
- package/dist/map.js +2 -2
- package/dist/material.css +1 -1
- package/dist/{mermaid.core-Dfr4zfuP.js → mermaid.core-C74WUE6C.js} +21 -21
- package/dist/{mindmap-definition-NLK3R4M7-_qKWGSrk.js → mindmap-definition-NLK3R4M7-CFOfIsM7.js} +2 -2
- package/dist/{pieDiagram-5QR66LMP-B6at48Bd.js → pieDiagram-5QR66LMP-B26Y_url.js} +1 -1
- package/dist/{quadrantDiagram-O4NWA36T-Cr9bA0xJ.js → quadrantDiagram-O4NWA36T-vIoMpSWW.js} +1 -1
- package/dist/{requirementDiagram-PLB6GJNP-BBs-lByV.js → requirementDiagram-PLB6GJNP-CL3H5GL7.js} +2 -2
- package/dist/{sankeyDiagram-IPEJSGJF-BzX37jGY.js → sankeyDiagram-IPEJSGJF-Wksiclao.js} +1 -1
- package/dist/{sortable-provider-WZT5I34N.js → sortable-provider-D4S-mqLP.js} +1 -1
- package/dist/{stateDiagram-v2-GCMORJYK-Chc9Z6Mr.js → stateDiagram-v2-GCMORJYK-oLPhH1yQ.js} +2 -2
- package/dist/{swimlanes-2SLR337P-D0yLvfot.js → swimlanes-2SLR337P-C6I2boWI.js} +3 -3
- package/dist/{swimlanesDiagram-TC7HE7FX-BOd0Czfs.js → swimlanesDiagram-TC7HE7FX-zAPI0RjB.js} +3 -3
- package/dist/{timeline-definition-EJHVYXUP-nDNR-Dt-.js → timeline-definition-EJHVYXUP-Dpsxn1Fj.js} +1 -1
- package/dist/{usecaseDiagram-POWQR4AR-Bwen99ay.js → usecaseDiagram-POWQR4AR-DLZ1ULxe.js} +2 -2
- package/dist/{xychartDiagram-PMCCYNJV-b-Quuxoi.js → xychartDiagram-PMCCYNJV-HJtnH7o5.js} +1 -1
- package/docs/components/feedback-and-status.md +35 -6
- package/docs/roadmap.md +5 -0
- package/docs/troubleshooting.md +49 -2
- package/lib/components/theme-tokens.css +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @nxgt/material
|
|
2
2
|
|
|
3
|
+
## 2.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#484](https://github.com/softistx/nxgt-material/pull/484) [`a97ec69`](https://github.com/softistx/nxgt-material/commit/a97ec695491dc0660ef62d88f326f4c36de234b3) Thanks [@SteveGT96](https://github.com/SteveGT96)! - A filled `Button` and `IconButton` keep an opaque fill in every state, focus included (softistx/nxgt-material#483). The `default` colour faded to 80 % of the foreground on focus (and 90 % on hover, 70 % on press), and the `secondary`, `success`, `info` and `warning` colours were translucent in the dark theme; the label's contrast then depended on what sat behind the button and could fall under 4.5:1 (WCAG 1.4.3). Those states are now opaque mixes toward the page background, and focus is shown by the ring. Apps can remove an axe exclusion for `[data-slot="button"][data-variant="filled"]:focus`.
|
|
8
|
+
|
|
9
|
+
## 2.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#475](https://github.com/softistx/nxgt-material/pull/475) [`2fcfa35`](https://github.com/softistx/nxgt-material/commit/2fcfa35d5bff9d46392247440a82f0bc3638f104) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Toasts: every preset takes sonner's own call, and an action that opens a dialog keeps the focus in it ([#472](https://github.com/softistx/nxgt-material/issues/472), [#473](https://github.com/softistx/nxgt-material/issues/473)).
|
|
14
|
+
|
|
15
|
+
- **`toasts.*(message, data)`.** `toasts.custom`, `success`, `info`, `warning`, `error` and `loading` also take sonner's (vue-sonner's) `(message, data)`: the message is the title, `data.description` and `data.action` are shown, and the rest of `data` (`id`, `duration`, `onDismiss`…) is passed as the options. Before, `toasts.success('Staff member restored', { action })` showed the preset's "Success" title and "Close" button, and dropped the message, the description and the action. `data` is typed `ToastData` (exported with `ToastArgs`): sonner's `ExternalToast` without `icon` (a preset draws its own) and `cancel` (the X button stands for it). The props object (`toasts.success({ title, action })`) works as before.
|
|
16
|
+
- **An action that opens a dialog keeps the focus there.** A click on a toast's action first gives the focus back to the control that had it before the toast, then runs `onClick`, then closes the toast; a function action's `dismiss` does the same. In `@nxgt/material`, sonner used to focus that control again as soon as the focus left the `Toaster`, which pulled it out of the dialog the action had just opened (WCAG 2.4.3); in both packages, the dialog gave the focus back, once closed, to the toast's button, gone with its toast, so to `document.body`. Now the dialog keeps the control it focused, and returns the focus to the control that had it before the toast. `ToastAction`'s `onClick` now receives the click event, optional so code that calls it directly still compiles (`() => void` handlers still fit). A toast reached by Tab from another toast hands the focus back to the same control. In `@nxgt/material-vue`, the message of `(message, data)` and a `ToastAction`'s `label` may also be a component, as in vue-sonner.
|
|
17
|
+
- **Migration.** `Parameters<typeof toasts.success>[0]` (and `warning`, `info`, `error`) is now the union of both call forms: use the exported `PresetProps` (or `CustomToastProps` for `custom`) for the props. Search for a blur of `document.activeElement` followed by `requestAnimationFrame` (or a `setTimeout`) around a toast action that opens a dialog, and for `toasts.custom` calls standing in for `toasts.success` only to keep an `action`: both can go. A button rendered by a function action that opens a dialog should call the `dismiss` it is given first.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#476](https://github.com/softistx/nxgt-material/pull/476) [`464883e`](https://github.com/softistx/nxgt-material/commit/464883e825e4601f17395c9586d0ac01dd392162) Thanks [@SteveGT96](https://github.com/SteveGT96)! - The roadmap names the release that ships the toast action and focus fixes.
|
|
22
|
+
- Updated dependencies [[`2fcfa35`](https://github.com/softistx/nxgt-material/commit/2fcfa35d5bff9d46392247440a82f0bc3638f104), [`464883e`](https://github.com/softistx/nxgt-material/commit/464883e825e4601f17395c9586d0ac01dd392162)]:
|
|
23
|
+
- @nxgt/material-core@0.7.0
|
|
24
|
+
|
|
3
25
|
## 2.9.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -12,7 +12,7 @@ import "./chunk-7PRAP22T-0C6_H8Li.js";
|
|
|
12
12
|
import { i as se, n as ce, o as le, r as ue, s as de } from "./chunk-J5ZVWO5B-DmRRmhon.js";
|
|
13
13
|
import "./chunk-7INBJB4K-k-I67NSP.js";
|
|
14
14
|
import { i as fe, r as pe } from "./chunk-5DYCD2WN-Cd1zazNp.js";
|
|
15
|
-
import { a as me, c as he, i as ge, l as _e } from "./chunk-Z7XXMR3K-
|
|
15
|
+
import { a as me, c as he, i as ge, l as _e } from "./chunk-Z7XXMR3K-CwcuZpJa.js";
|
|
16
16
|
//#region ../../node_modules/es-toolkit/dist/compat/predicate/isArray.mjs
|
|
17
17
|
function ve(e) {
|
|
18
18
|
return Array.isArray(e);
|
|
@@ -5,7 +5,7 @@ import { n as r } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
|
5
5
|
import { b as i, x as a } from "./chunk-O7XYJQB3-BChweQ_V.js";
|
|
6
6
|
import { o } from "./chunk-7INBJB4K-k-I67NSP.js";
|
|
7
7
|
import { i as s, n as c, r as l, t as u } from "./chunk-5DYCD2WN-Cd1zazNp.js";
|
|
8
|
-
import { a as d, c as f, i as p, n as m, r as h, t as g, u as _ } from "./chunk-Z7XXMR3K-
|
|
8
|
+
import { a as d, c as f, i as p, n as m, r as h, t as g, u as _ } from "./chunk-Z7XXMR3K-CwcuZpJa.js";
|
|
9
9
|
import { r as v, t as y } from "./chunk-UA2S7LBM-ChuksCDg.js";
|
|
10
10
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-3FUC2YCW.mjs
|
|
11
11
|
function b(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
|
|
@@ -9,7 +9,7 @@ import { a as b } from "./chunk-7INBJB4K-k-I67NSP.js";
|
|
|
9
9
|
import { t as x } from "./chunk-GWA4HPMP-B8jXI0Tl.js";
|
|
10
10
|
import { t as S } from "./chunk-XXDRQBXY-dKXxu_aj.js";
|
|
11
11
|
import { t as C } from "./chunk-WEXAMYUT-CbFOhEve.js";
|
|
12
|
-
import { r as w, t as T } from "./chunk-GNY47TPC-
|
|
12
|
+
import { r as w, t as T } from "./chunk-GNY47TPC-CFItyjGy.js";
|
|
13
13
|
import { n as E, t as D } from "./chunk-LNGE3PJU-DJjGTS7O.js";
|
|
14
14
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-7M6MHVWA.mjs
|
|
15
15
|
var ie = "flowchart-", ae = class {
|
|
@@ -5,7 +5,7 @@ import { b as r, s as i } from "./chunk-O7XYJQB3-BChweQ_V.js";
|
|
|
5
5
|
import { t as a } from "./chunk-DUW6YSOI-9R-v-IIp.js";
|
|
6
6
|
import { o } from "./chunk-7INBJB4K-k-I67NSP.js";
|
|
7
7
|
import { r as s } from "./chunk-5DYCD2WN-Cd1zazNp.js";
|
|
8
|
-
import { a as c, c as l, i as u, l as d } from "./chunk-Z7XXMR3K-
|
|
8
|
+
import { a as c, c as l, i as u, l as d } from "./chunk-Z7XXMR3K-CwcuZpJa.js";
|
|
9
9
|
import { r as f } from "./chunk-UA2S7LBM-ChuksCDg.js";
|
|
10
10
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-GNY47TPC.mjs
|
|
11
11
|
var p = {
|
|
@@ -30,7 +30,7 @@ var p = {
|
|
|
30
30
|
], h = /* @__PURE__ */ Object.create(null), g = /* @__PURE__ */ n((e) => {
|
|
31
31
|
for (let t of e) h[t.name] = t;
|
|
32
32
|
}, "registerLayoutLoaders"), _ = /* @__PURE__ */ n(() => {
|
|
33
|
-
let e = /* @__PURE__ */ n(async () => await import("./elk-276RUBZZ-
|
|
33
|
+
let e = /* @__PURE__ */ n(async () => await import("./elk-276RUBZZ-D2kPrlDF.js"), "loader");
|
|
34
34
|
return [{
|
|
35
35
|
name: "elk",
|
|
36
36
|
loader: e,
|
|
@@ -45,11 +45,11 @@ var p = {
|
|
|
45
45
|
g([
|
|
46
46
|
{
|
|
47
47
|
name: "dagre",
|
|
48
|
-
loader: /* @__PURE__ */ n(async () => await import("./dagre-6A5THRUB-
|
|
48
|
+
loader: /* @__PURE__ */ n(async () => await import("./dagre-6A5THRUB-C70bzAEw.js"), "loader")
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
name: "swimlane",
|
|
52
|
-
loader: /* @__PURE__ */ n(async () => await import("./swimlanes-2SLR337P-
|
|
52
|
+
loader: /* @__PURE__ */ n(async () => await import("./swimlanes-2SLR337P-C6I2boWI.js"), "loader")
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
name: "cose-bilkent",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
2
|
-
import { o as t } from "./chunk-Z7XXMR3K-
|
|
2
|
+
import { o as t } from "./chunk-Z7XXMR3K-CwcuZpJa.js";
|
|
3
3
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-NETBCI7D.mjs
|
|
4
4
|
var n = 5, r = 1e-5, i = 2, a = .6, o = 1e-6;
|
|
5
5
|
function s(e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { st as e } from "./components-
|
|
1
|
+
import { st as e } from "./components-N_PpCQjB.js";
|
|
2
2
|
import { n as t, t as n } from "./src-CsLQInsN.js";
|
|
3
3
|
import { _ as r, a as i, i as a, n as o, o as s, p as c, r as l, t as u, u as d, v as f } from "./step-Dt43c9X4.js";
|
|
4
4
|
import { K as p, g as m, q as h, u as g } from "./chunk-ZIGJFQKS-9VXArDKF.js";
|
|
@@ -9,12 +9,12 @@ import "./chunk-7PRAP22T-0C6_H8Li.js";
|
|
|
9
9
|
import { i as v, n as y, o as b, r as x } from "./chunk-J5ZVWO5B-DmRRmhon.js";
|
|
10
10
|
import "./chunk-7INBJB4K-k-I67NSP.js";
|
|
11
11
|
import "./chunk-5DYCD2WN-Cd1zazNp.js";
|
|
12
|
-
import "./chunk-Z7XXMR3K-
|
|
12
|
+
import "./chunk-Z7XXMR3K-CwcuZpJa.js";
|
|
13
13
|
import { t as S } from "./chunk-GWA4HPMP-B8jXI0Tl.js";
|
|
14
14
|
import { t as C } from "./chunk-XXDRQBXY-dKXxu_aj.js";
|
|
15
15
|
import { t as w } from "./chunk-WEXAMYUT-CbFOhEve.js";
|
|
16
16
|
import "./chunk-UA2S7LBM-ChuksCDg.js";
|
|
17
|
-
import { r as T, t as E } from "./chunk-GNY47TPC-
|
|
17
|
+
import { r as T, t as E } from "./chunk-GNY47TPC-CFItyjGy.js";
|
|
18
18
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-NBCMYWYE.mjs
|
|
19
19
|
var D = (function() {
|
|
20
20
|
var e = /* @__PURE__ */ i(function(e, t, n, r) {
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
--primary: oklch(46% 0.1135 276.35);
|
|
71
71
|
--primary-foreground: oklch(0.984 0.003 247.858);
|
|
72
72
|
/* Brighter than the light one: it is read as text on the dark surfaces (6.5:1
|
|
73
|
-
on --background, 5.8:1 on --card); a filled secondary surface
|
|
74
|
-
(
|
|
73
|
+
on --background, 5.8:1 on --card); a filled secondary surface mixes it toward --background
|
|
74
|
+
(the opaque 70 % mix) to keep 5.2:1 under its near-white text. */
|
|
75
75
|
--secondary: oklch(0.66 0.1135 245.65);
|
|
76
76
|
--secondary-foreground: oklch(0.984 0.003 247.858);
|
|
77
77
|
--muted: oklch(0.279 0.041 260.031);
|