@nxgt/material 3.25.1 → 3.26.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 +18 -0
- package/README.md +1 -0
- package/dist/{async-slice-nTRgm_ct.js → async-slice-gAbGnQT8.js} +2 -2
- package/dist/{button-rdIhY2BT.js → button-Cr9GIIj4.js} +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-CEau88ZV.js → chip-s11lOfxB.js} +1 -1
- package/dist/{code-editor-DHB5ytUz.js → code-editor-DGIjL8Hr.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-Dww9amx_.js → code-language-items-DCOQnaCo.js} +2 -2
- package/dist/{components-wLKi88Su.js → components-BEN2FVD-.js} +12019 -11384
- package/dist/components.js +26 -26
- package/dist/{dialog-B2GXKBp3.js → dialog-Crvg-MN5.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-mTDyFwbQ.js → dropdown-menu-B71aggp0.js} +1 -1
- package/dist/editor.js +7 -7
- package/dist/{empty-state-lj7vjYWG.js → empty-state-8LddxMU4.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{i18n-provider-BpZOKh7U.js → i18n-provider-BDi9-6DO.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-CiWXvKCs.js → icon-badge-DG7wLnHh.js} +1 -1
- package/dist/lib/components/ui/display/change-history/change-history.d.ts +16 -0
- package/dist/lib/components/ui/display/change-history/change-history.test-data.d.ts +8 -0
- package/dist/lib/components/ui/display/change-history/change-history.utils.d.ts +16 -0
- package/dist/lib/components/ui/display/change-history/index.d.ts +2 -0
- package/dist/lib/components/ui/display/change-history/kinds.d.ts +9 -0
- package/dist/lib/components/ui/display/change-history/partials/card-changes.d.ts +7 -0
- package/dist/lib/components/ui/display/change-history/partials/card-entry.d.ts +3 -0
- package/dist/lib/components/ui/display/change-history/partials/changes-collapse.d.ts +22 -0
- package/dist/lib/components/ui/display/change-history/partials/day-heading.d.ts +11 -0
- package/dist/lib/components/ui/display/change-history/partials/entry-list.d.ts +12 -0
- package/dist/lib/components/ui/display/change-history/partials/entry-time.d.ts +8 -0
- package/dist/lib/components/ui/display/change-history/partials/footer.d.ts +9 -0
- package/dist/lib/components/ui/display/change-history/partials/history-body.d.ts +8 -0
- package/dist/lib/components/ui/display/change-history/partials/rail-changes.d.ts +9 -0
- package/dist/lib/components/ui/display/change-history/partials/rail-entry.d.ts +5 -0
- package/dist/lib/components/ui/display/change-history/partials/skeleton.d.ts +6 -0
- package/dist/lib/components/ui/display/change-history/partials/use-load-more-focus.d.ts +12 -0
- package/dist/lib/components/ui/display/change-history/partials/values.d.ts +4 -0
- package/dist/lib/components/ui/display/change-history/types.d.ts +95 -0
- package/dist/lib/components/ui/display/change-history/use-entry-summary.d.ts +8 -0
- package/dist/lib/components/ui/display/change-history/zoned.d.ts +12 -0
- package/dist/lib/components/ui/display/day-separator/day-separator.d.ts +6 -1
- package/dist/lib/components/ui/display/index.d.ts +1 -0
- package/dist/lib/components/ui/display/timeline/relative-time.d.ts +12 -1
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-list.d.ts +6 -1
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-scroll-buttons.d.ts +12 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-overflow-classes.d.ts +6 -0
- package/dist/lib/components/ui/primitives/tabs/use-tabs-overflow.d.ts +25 -0
- package/dist/lib/i18n/resources/en/en.d.ts +40 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +40 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +40 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +40 -0
- package/dist/lib/i18n/resources/resources.d.ts +80 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +43 -43
- package/dist/map.js +4 -4
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +2 -2
- package/dist/{public-DAF5SCWH.js → public-QUiFLEoj.js} +6 -6
- package/dist/{rich-code-block-CLkufAhI.js → rich-code-block-CjD54THr.js} +4 -4
- package/dist/{sortable-provider-BofwO9zZ.js → sortable-provider-DYnyzfgR.js} +1 -1
- package/dist/{spinner-B7HCQMFr.js → spinner-CJtTRNAX.js} +1 -1
- package/dist/{stored-language-CJn_iWwG.js → stored-language-ClkfkueV.js} +80 -0
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-mQzIR1hw.js → theme-toggle-ufQL3SO6.js} +1 -1
- package/dist/{toolbar-items-Tn3MMu-s.js → toolbar-items-DlioFgpM.js} +2 -2
- package/dist/{translate-material-CCyVEi_f.js → translate-material-O-uasx3u.js} +2 -2
- package/dist/{translator-1THr41fc.js → translator-C0uxN1Nh.js} +1 -1
- package/dist/{use-chat-composer-B0ze1cU9.js → use-chat-composer-DzVO5mwz.js} +1762 -1640
- package/dist/{use-heading-spy-DNFfHQJs.js → use-heading-spy-BHCVdJfr.js} +1 -1
- package/dist/{use-material-translation-BFQODuQz.js → use-material-translation-B4Frk3vC.js} +2 -2
- package/docs/components/data-display.md +102 -2
- package/docs/components/primitives.md +6 -1
- package/docs/guides/i18n.md +2 -1
- package/docs/previews/data-display-changehistory.webp +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @nxgt/material
|
|
2
2
|
|
|
3
|
+
## 3.26.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1649](https://github.com/softistx/nxgt-material/pull/1649) [`344f911`](https://github.com/softistx/nxgt-material/commit/344f9119b10d32db542e1f875a5c89234c8ee560) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Tabs: a `TabsList` that overflows (a phone, a narrow card) now fades the side or sides that have hidden tabs and shows a scroll button on each ("Scroll tabs left" / "Scroll tabs right", `material.tabs.*` in en and fr, 44px on a coarse pointer, out of the tab order). The selected tab and the focused tab are scrolled into view without moving the page, instantly under reduced motion. A list that fits keeps its markup, and the server markup has no button. Fixes [#1643](https://github.com/softistx/nxgt-material/issues/1643).
|
|
8
|
+
|
|
9
|
+
## 3.26.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#1627](https://github.com/softistx/nxgt-material/pull/1627) [`ba65c4e`](https://github.com/softistx/nxgt-material/commit/ba65c4e9aaaa9cf58bd3bd9036b93931227d2974) Thanks [@SteveGT96](https://github.com/SteveGT96)! - New `ChangeHistory` (`Data display/ChangeHistory`): a history of the changes made to anything (a document, a project's settings, a file), with who changed what and when and the values before and after. Nothing in its API names a domain: `entries`, `kinds`, `author`.
|
|
14
|
+
|
|
15
|
+
- `variant="rail"` (default): a thin rail of toned dot icons, one row per entry with the avatar, a sentence, the relative time (exact time on hover and on focus), and the changes as a description list (old value struck through, an arrow, the new value in a tinted pill). `variant="cards"`: a card tinted by kind with an icon chip, the kind word and a Before / After block that spells its words.
|
|
16
|
+
- `kinds` merges over the built-ins (`created` success, `updated` neutral, `archived` and `restored` warning, `purged` and `deleted` error); an app overrides a part or adds its own kinds. `groupBy` (`day` | `none`), `collapseAfter` (default 3, "N fields changed" / "N fields set" with a preview of the names), `filter` slot, `loading`, `hasMore` / `onLoadMore` / `total` ("Showing X of Y", announced politely; the focus moves to the first new entry when Load more takes the last page), `empty`, `now` and `timeZone` (pass both from the server so the grouping and labels match on hydration), `headingLevel` (day headings, default 3).
|
|
17
|
+
- A `redacted` change shows "Hidden" and never renders its values; a `created` entry shows values only. Each entry is an `article` in an `ol` labelled "{kind} by {author}, {date and time}"; day headings are real headings.
|
|
18
|
+
- Small, additive upstream changes with unchanged defaults: `DaySeparator` takes `as` (`h2` to `h6` for a real heading), `RelativeTime` takes `focusable`, `tooltip` and `now` and forwards its `ref`.
|
|
19
|
+
- i18n: `material.history.*` in en and fr (React only; the Vue twin is a `vue` issue).
|
|
20
|
+
|
|
3
21
|
## 3.25.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -611,6 +611,7 @@ Not components: what the stylesheet gives any element.
|
|
|
611
611
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-listtile.webp" width="120" alt="ListTile"> | [`ListTile`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#listtile) | Row with leading / trailing slots, title and subtitle; becomes a link (with a decorative chevron; `selected` sets `aria-current="page"`), a button, or with `toggle` a switch row where the whole row toggles. `size="sm"` is the dense row; `chips` and `variant="divided"` make it a compact record row, `as="li"` puts it in a list. | `ListTile` |
|
|
612
612
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-accordioncard.webp" width="120" alt="AccordionCard"> | [`AccordionCard`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#accordioncard) | Renders `items` (title, content) as a styled accordion. | `AccordionCard` |
|
|
613
613
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-timeline.webp" width="120" alt="Timeline"> | [`Timeline`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#timeline), `TimelineItem`, `RelativeTime` | Vertical event timeline with toned icons and relative times. | `Timeline`, `TimelineItem`, `RelativeTime` |
|
|
614
|
+
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-changehistory.webp" width="120" alt="ChangeHistory"> | [`ChangeHistory`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#changehistory) | History of the changes made to anything (a document, a project's settings, a file): a rail of toned dots or tinted cards with a Before / After block, a heading per day (sticky on the rail), long entries collapsed behind "N fields changed", redacted values shown as "Hidden", the exact time on hover and focus, load more. | — (later, #1626) |
|
|
614
615
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-eventchip.webp" width="120" alt="EventChip"> | [`EventChip`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#eventchip) | Calendar event pill — soft, solid or outlined — with its times, all-day and continuation edges. | `EventChip` |
|
|
615
616
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-codeblock.webp" width="120" alt="CodeBlock"> | [`CodeBlock`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#codeblock), `JsonViewer`, `CodeGroup` | Highlighted code with line numbers and copy, a collapsible JSON tree, and tabbed samples (`Tabs`, underlined). `CodeDiff` is under Rich widgets. | `CodeBlock`, `JsonViewer`, `CodeGroup` |
|
|
616
617
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-markdown.webp" width="120" alt="Markdown"> | [`Markdown`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#markdown), `MermaidDiagram` | GFM markdown with KaTeX math and mermaid diagrams (`clientOnly`). Fences reuse `CodeBlock`. `ChatMarkdown` renders through it. | `Markdown`, `MermaidDiagram` |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, r as t, t as n } from "./stored-language-
|
|
2
|
-
import { r } from "./translator-
|
|
1
|
+
import { i as e, r as t, t as n } from "./stored-language-ClkfkueV.js";
|
|
2
|
+
import { r } from "./translator-C0uxN1Nh.js";
|
|
3
3
|
import { t as i } from "./_baseIsEqual-C6ksIHya.js";
|
|
4
4
|
import { useMemo as a } from "react";
|
|
5
5
|
import { asyncThunkCreator as o, buildCreateSlice as s } from "@reduxjs/toolkit";
|
|
@@ -2,7 +2,7 @@ import { t as e } from "./utils-BLfntITJ.js";
|
|
|
2
2
|
import { n as t, t as n } from "./dist-DVRQkaTK.js";
|
|
3
3
|
import { o as r, t as i } from "./tooltip-CkttDIab.js";
|
|
4
4
|
import { t as a } from "./is-production-GLw59WU8.js";
|
|
5
|
-
import { t as o } from "./spinner-
|
|
5
|
+
import { t as o } from "./spinner-CJtTRNAX.js";
|
|
6
6
|
import { a as s, i as c, r as l, t as u } from "./button-tones-BwuVvAmd.js";
|
|
7
7
|
import { t as d } from "./button-group-context-CaP0X5p_.js";
|
|
8
8
|
import { t as f } from "./has-text-content-Ds2dkHX_.js";
|
package/dist/charts.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./ui.utils-CAnKTCw5.js";
|
|
2
2
|
import { t } from "./utils-BLfntITJ.js";
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
4
|
-
import { t as r } from "./button-
|
|
3
|
+
import { t as n } from "./use-material-translation-B4Frk3vC.js";
|
|
4
|
+
import { t as r } from "./button-Cr9GIIj4.js";
|
|
5
5
|
import { t as i } from "./use-ssr-media-query-C6M5m8sf.js";
|
|
6
6
|
import { i as a, n as o, r as s, t as c } from "./util-4heV2LPI.js";
|
|
7
7
|
import { t as l } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
|
|
8
8
|
import { t as u } from "./warn-once-C_e47JM8.js";
|
|
9
|
-
import { t as d } from "./chip-
|
|
9
|
+
import { t as d } from "./chip-s11lOfxB.js";
|
|
10
10
|
import { c as f, d as p, f as m, i as h, o as g, p as _, s as v, t as y } from "./line-path-C5pZGC49.js";
|
|
11
11
|
import { t as b } from "./live-status-BGPaN8r8.js";
|
|
12
12
|
import { t as x } from "./linear-G97mfnKF.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { t } from "./tooltip-CkttDIab.js";
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
3
|
+
import { t as n } from "./use-material-translation-B4Frk3vC.js";
|
|
4
4
|
import { a as r } from "./button-tones-BwuVvAmd.js";
|
|
5
5
|
import { t as i } from "./react-node-text-Crkpfpco.js";
|
|
6
6
|
import { Check as a, X as o } from "lucide-react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-BFFgcFxR.js";
|
|
2
2
|
import { t } from "./utils-BLfntITJ.js";
|
|
3
3
|
import { a as n } from "./dist-lmHmz_bu.js";
|
|
4
|
-
import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-
|
|
4
|
+
import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-B71aggp0.js";
|
|
5
5
|
import { a as c, i as l, n as u } from "./field-blur-context-Cft9s7Hg.js";
|
|
6
|
-
import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-
|
|
6
|
+
import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-DlioFgpM.js";
|
|
7
7
|
import { t as g } from "./is-production-GLw59WU8.js";
|
|
8
|
-
import { t as _ } from "./use-material-translation-
|
|
9
|
-
import { i as v, n as y, o as b, t as x } from "./code-language-items-
|
|
8
|
+
import { t as _ } from "./use-material-translation-B4Frk3vC.js";
|
|
9
|
+
import { i as v, n as y, o as b, t as x } from "./code-language-items-DCOQnaCo.js";
|
|
10
10
|
import { t as S } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
|
|
11
11
|
import { n as C, t as w } from "./escape-owner-C4W_sOAU.js";
|
|
12
12
|
import { t as T } from "./skeleton-DSdtr2qc.js";
|
package/dist/code-editor.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { a as t } from "./dist-lmHmz_bu.js";
|
|
3
|
-
import { d as n, r, t as i, u as a } from "./toolbar-items-
|
|
4
|
-
import { t as o } from "./use-material-translation-
|
|
5
|
-
import { i as s, n as c, o as l } from "./code-language-items-
|
|
3
|
+
import { d as n, r, t as i, u as a } from "./toolbar-items-DlioFgpM.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-B4Frk3vC.js";
|
|
5
|
+
import { i as s, n as c, o as l } from "./code-language-items-DCOQnaCo.js";
|
|
6
6
|
import { r as u, t as d } from "./field-blur-CJHzVSh9.js";
|
|
7
7
|
import { t as f } from "./skeleton-DSdtr2qc.js";
|
|
8
8
|
import { t as p } from "./live-status-BGPaN8r8.js";
|
|
9
9
|
import { t as m } from "./use-mobile-BDro060N.js";
|
|
10
10
|
import { t as h } from "./react-node-text-Crkpfpco.js";
|
|
11
|
-
import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-
|
|
11
|
+
import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-DGIjL8Hr.js";
|
|
12
12
|
import { ChevronDown as k, ChevronUp as A, Columns2 as j } from "lucide-react";
|
|
13
13
|
import { useEffect as M, useRef as N, useState as P } from "react";
|
|
14
14
|
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e, f as t } from "./dropdown-menu-
|
|
2
|
-
import { t as n } from "./use-material-translation-
|
|
1
|
+
import { d as e, f as t } from "./dropdown-menu-B71aggp0.js";
|
|
2
|
+
import { t as n } from "./use-material-translation-B4Frk3vC.js";
|
|
3
3
|
import { t as r } from "./live-status-BGPaN8r8.js";
|
|
4
4
|
import { useEffect as i, useRef as a, useState as o } from "react";
|
|
5
5
|
import { jsx as s } from "react/jsx-runtime";
|