@nxgt/material 2.8.0 → 2.9.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/CHANGELOG.md +27 -0
- package/README.md +2 -2
- package/dist/{_Uint8Array-CALbCR7W.js → _Uint8Array-azThpjEP.js} +1 -1
- package/dist/{_overRest-BQ8agsDH.js → _overRest-DMn4Dt71.js} +1 -1
- package/dist/{async-slice-BHMdvnqm.js → async-slice-DhZDjEtw.js} +2 -2
- package/dist/{blockDiagram-BEXU5L5S-D4gI6nqs.js → blockDiagram-BEXU5L5S-BOsyK4E_.js} +2 -2
- package/dist/{chunk-3FUC2YCW-BLMCnCFE.js → chunk-3FUC2YCW-BCsKm3ZT.js} +2 -2
- package/dist/{chunk-7M6MHVWA-CUtKEeuL.js → chunk-7M6MHVWA-C3qpW8zM.js} +1 -1
- package/dist/{chunk-GNY47TPC-CB_83G7J.js → chunk-GNY47TPC-CzPNLW5k.js} +4 -4
- package/dist/{chunk-NETBCI7D-Cywmx0rz.js → chunk-NETBCI7D-tNinefdn.js} +1 -1
- package/dist/{chunk-Z7XXMR3K-Ccb3Rfjl.js → chunk-Z7XXMR3K-C9P-XjM2.js} +1 -1
- package/dist/{classDiagram-v2-NBCMYWYE-CRgxPgLD.js → classDiagram-v2-NBCMYWYE-D00ZobEC.js} +2 -2
- package/dist/{components-Bg1bqGbc.js → components-km60bAdr.js} +21874 -21826
- package/dist/components.js +5 -5
- package/dist/{dagre-6A5THRUB-c8yG3_vh.js → dagre-6A5THRUB-D_F3_LlW.js} +11 -11
- package/dist/{diagram-22UHCM2B-C3Xcfy6D.js → diagram-22UHCM2B-CsxOExpW.js} +2 -2
- package/dist/{diagram-3UASUU5V-maEO61Bh.js → diagram-3UASUU5V-Dl7AETV1.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/{elk-276RUBZZ-BoWoJr6K.js → elk-276RUBZZ-BK-NMLiI.js} +3 -3
- package/dist/{erDiagram-OPXOYQCR-CVvgZCSJ.js → erDiagram-OPXOYQCR-DC1GgS4l.js} +2 -2
- package/dist/{field-blur-Bwa48QBk.js → field-blur--x_n3oMy.js} +1 -1
- package/dist/{flowDiagram-KWPJA3E3-RdU0csul.js → flowDiagram-KWPJA3E3-BUSlDNQP.js} +3 -3
- package/dist/{ganttDiagram-FUAMR5RP-DPLDPJtJ.js → ganttDiagram-FUAMR5RP-DOp1p_x0.js} +1 -1
- package/dist/{graphlib-DHgEBs83.js → graphlib-DLjE3QPd.js} +6 -6
- package/dist/hooks.js +2 -2
- package/dist/{i18n-provider-CA8YAlje.js → i18n-provider-CQL7fqLy.js} +1 -1
- package/dist/i18n.js +6 -6
- package/dist/{isArrayLikeObject-BSfDsA7T.js → isArrayLikeObject-CO-5KAzG.js} +3 -3
- package/dist/{isEmpty-BEe-nNXw.js → isEmpty-Bl1drJE7.js} +3 -3
- package/dist/{journeyDiagram-ZHPQQLJL-CTGnr-JY.js → journeyDiagram-ZHPQQLJL-DuQ9Th0y.js} +1 -1
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-content.d.ts +3 -0
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-indicator.d.ts +13 -0
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-list.d.ts +3 -0
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-trigger.d.ts +6 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-classes.d.ts +27 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-variant.d.ts +5 -0
- package/dist/lib/components/ui/primitives/tabs/tabs.d.ts +11 -7
- package/dist/lib/components/ui/widgets/emoji/types.d.ts +1 -6
- package/dist/lib/i18n/resources/en/en.d.ts +14 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +15 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +14 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +15 -1
- package/dist/lib/i18n/resources/resources.d.ts +28 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +3 -3
- package/dist/main.js +11 -11
- package/dist/map.js +2 -2
- package/dist/material.css +1 -1
- package/dist/{merge-CRXQ4NSv.js → merge-CwwtONfp.js} +4 -4
- package/dist/{mermaid.core-C_JPRVNa.js → mermaid.core-Dfr4zfuP.js} +21 -21
- package/dist/{mindmap-definition-NLK3R4M7-OTZIWZah.js → mindmap-definition-NLK3R4M7-_qKWGSrk.js} +2 -2
- package/dist/{pieDiagram-5QR66LMP-BpmwlCYh.js → pieDiagram-5QR66LMP-B6at48Bd.js} +1 -1
- package/dist/print.js +2 -2
- package/dist/{quadrantDiagram-O4NWA36T-CIFt4MgA.js → quadrantDiagram-O4NWA36T-Cr9bA0xJ.js} +1 -1
- package/dist/{requirementDiagram-PLB6GJNP-BJaiDsKj.js → requirementDiagram-PLB6GJNP-BBs-lByV.js} +2 -2
- package/dist/{sankeyDiagram-IPEJSGJF-XDAIB5as.js → sankeyDiagram-IPEJSGJF-BzX37jGY.js} +1 -1
- package/dist/{sortable-provider-MCgOzfRp.js → sortable-provider-WZT5I34N.js} +1 -1
- package/dist/{stateDiagram-v2-GCMORJYK-CGo16q99.js → stateDiagram-v2-GCMORJYK-Chc9Z6Mr.js} +2 -2
- package/dist/{stored-language-Cz89IYZX.js → stored-language-BW32owje.js} +30 -2
- package/dist/{swimlanes-2SLR337P-DXZt0zyd.js → swimlanes-2SLR337P-D0yLvfot.js} +3 -3
- package/dist/{swimlanesDiagram-TC7HE7FX-Cno6MSMH.js → swimlanesDiagram-TC7HE7FX-BOd0Czfs.js} +3 -3
- package/dist/{timeline-definition-EJHVYXUP-CbPIZcT7.js → timeline-definition-EJHVYXUP-nDNR-Dt-.js} +1 -1
- package/dist/{translate-material-Caxsy0bp.js → translate-material-ZEzF-LKH.js} +2 -2
- package/dist/{translator-B85Q_O55.js → translator-BfqVlNGW.js} +1 -1
- package/dist/{use-heading-spy-C4yWEr5c.js → use-heading-spy-DvZVu15k.js} +2 -2
- package/dist/{use-material-translation-Cm3Ej3bT.js → use-material-translation-B2GUtxUY.js} +2 -2
- package/dist/{usecaseDiagram-POWQR4AR-D_gyFA3m.js → usecaseDiagram-POWQR4AR-Bwen99ay.js} +2 -2
- package/dist/{xychartDiagram-PMCCYNJV-W-fXV6iN.js → xychartDiagram-PMCCYNJV-b-Quuxoi.js} +1 -1
- package/docs/components/data-display.md +1 -1
- package/docs/components/primitives.md +80 -5
- package/docs/components/rich-widgets.md +10 -0
- package/docs/guides/i18n.md +19 -2
- package/docs/guides/theming.md +17 -3
- package/docs/previews/data-display-codegroup.webp +0 -0
- package/docs/previews/primitives-tabs.webp +0 -0
- package/docs/previews/rich-widgets-emojipicker.webp +0 -0
- package/docs/roadmap.md +7 -0
- package/docs/troubleshooting.md +35 -0
- package/package.json +2 -2
- package/dist/lib/components/ui/widgets/emoji/emoji.groups.d.ts +0 -6
package/docs/roadmap.md
CHANGED
|
@@ -88,6 +88,13 @@ Nothing in progress right now; see Next.
|
|
|
88
88
|
|
|
89
89
|
## Shipped
|
|
90
90
|
|
|
91
|
+
- **Tabs in two looks** — `underline`, the new default, whose bar slides to
|
|
92
|
+
the active tab, and a neutral `segmented` pill; a list that scrolls
|
|
93
|
+
sideways on a phone instead of widening the page, right-to-left, a visible
|
|
94
|
+
focus ring, labels that read 4.5:1 in both themes, and an indicator that
|
|
95
|
+
stops sliding under `prefers-reduced-motion`. `bar` and `line` still work,
|
|
96
|
+
as deprecated aliases of `underline` and `segmented`. 2.9.0.
|
|
97
|
+
|
|
91
98
|
- **Accessible by default** — error text in its own `--error-text` colour that
|
|
92
99
|
reads 4.5:1 in both themes, the empty part of sliders and meters in a
|
|
93
100
|
`--track` colour that reads 3:1, buttons, badges and status colours that
|
package/docs/troubleshooting.md
CHANGED
|
@@ -39,6 +39,8 @@ words in your error.
|
|
|
39
39
|
|
|
40
40
|
- [A `ListTile` link reloads the whole page](#a-listtile-link-reloads-the-whole-page)
|
|
41
41
|
- [The phone menu needs two Escapes to close, or a tooltip shows over it](#the-phone-menu-needs-two-escapes-to-close-or-a-tooltip-shows-over-it)
|
|
42
|
+
- [`Tabs` look different after upgrading](#tabs-look-different-after-upgrading)
|
|
43
|
+
- [A screen reader announces an icon-only tab as "tab", with no name](#a-screen-reader-announces-an-icon-only-tab-as-tab-with-no-name)
|
|
42
44
|
|
|
43
45
|
**SSR & build**
|
|
44
46
|
|
|
@@ -754,6 +756,39 @@ the tooltip's own layer takes the first Escape.
|
|
|
754
756
|
tooltip, since it shows its label; a collapsed one keeps it, and an explicit
|
|
755
757
|
`tooltip` is always shown. A `SidebarMenuItem` of your own needs no change.
|
|
756
758
|
|
|
759
|
+
### `Tabs` look different after upgrading
|
|
760
|
+
|
|
761
|
+
**When:** a `Tabs` with no `variant`, or with `variant="bar"`, renders a row of
|
|
762
|
+
tabs over a border with a bar under the active one, where it rendered
|
|
763
|
+
boxed tabs, a primary ring around the active one;
|
|
764
|
+
one with `variant="line"` renders a rounded pill.
|
|
765
|
+
**Why:** `underline` is now the default look. `bar` and `line` are deprecated
|
|
766
|
+
aliases: `bar` renders as `underline`, `line` as `segmented`.
|
|
767
|
+
**Fix:** write the look you want. `underline` needs no `variant`; for a pill,
|
|
768
|
+
set `segmented`:
|
|
769
|
+
|
|
770
|
+
```tsx
|
|
771
|
+
<Tabs defaultValue="week" variant="segmented">
|
|
772
|
+
```
|
|
773
|
+
|
|
774
|
+
A test that queried the old classes should query the state instead:
|
|
775
|
+
`getByRole('tab', { selected: true })`, and `data-variant` on
|
|
776
|
+
`[data-slot="tabs"]` for the look.
|
|
777
|
+
|
|
778
|
+
### A screen reader announces an icon-only tab as "tab", with no name
|
|
779
|
+
|
|
780
|
+
**When:** a `TabsTrigger` holds only an icon; an accessibility audit reports a
|
|
781
|
+
tab with no accessible name.
|
|
782
|
+
**Why:** a tab is named by its text, and an icon has none.
|
|
783
|
+
**Fix:** give the trigger `aria-label`, and `title` for a hover hint:
|
|
784
|
+
|
|
785
|
+
```tsx
|
|
786
|
+
<TabsTrigger value="recent" icon={<Clock />} aria-label="Recent" title="Recent" />
|
|
787
|
+
```
|
|
788
|
+
|
|
789
|
+
`EmojiList` and `EmojiPicker` name their group tabs themselves; update
|
|
790
|
+
`@nxgt/material` if yours read "tab" only.
|
|
791
|
+
|
|
757
792
|
## SSR & build
|
|
758
793
|
|
|
759
794
|
### `ReferenceError: window is not defined`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/material",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "stevegires@gmail.com"
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"docs:previews": "vitest run --project previews"
|
|
115
115
|
},
|
|
116
116
|
"dependencies": {
|
|
117
|
-
"@nxgt/material-core": "^0.
|
|
117
|
+
"@nxgt/material-core": "^0.6.0",
|
|
118
118
|
"@base-ui/react": "^1.6.0",
|
|
119
119
|
"@dnd-kit/core": "^6.3.1",
|
|
120
120
|
"@dnd-kit/sortable": "^10.0.0",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { EmojiItem } from './types';
|
|
2
|
-
export declare function groupKey(group?: string | null): string;
|
|
3
|
-
export declare function groupEmojis(emojis: EmojiItem[], recent: string[]): {
|
|
4
|
-
[k: string]: EmojiItem[];
|
|
5
|
-
};
|
|
6
|
-
export declare function searchEmojis(emojis: EmojiItem[], query: string): EmojiItem[] | null;
|