@nxgt/material 3.63.0 → 3.65.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/{alert-dialog-RHm6WtQj.js → alert-dialog-C0nGUSCP.js} +1 -1
  3. package/dist/{async-slice-DmX59NyA.js → async-slice-CyansBvD.js} +1 -1
  4. package/dist/{button-DfS_amfQ.js → button-D5k3K-gM.js} +1 -1
  5. package/dist/charts.js +818 -807
  6. package/dist/{chip-Cbndukko.js → chip-lWXIJkqo.js} +2 -2
  7. package/dist/{code-editor-B0tN8Ha_.js → code-editor-aXG4CdY-.js} +403 -393
  8. package/dist/code-editor.js +5 -5
  9. package/dist/{code-language-items-andgHKrM.js → code-language-items-CsaXyApg.js} +2 -2
  10. package/dist/components/ui/display/chip/chip-soft.css +19 -5
  11. package/dist/{components-Cm2doOJS.js → components-DNcTvjlv.js} +15083 -14933
  12. package/dist/components.js +21 -21
  13. package/dist/{dialog-Bd7Hid2L.js → dialog-DWNaxpa-.js} +4 -4
  14. package/dist/dnd.js +1 -1
  15. package/dist/{dropdown-menu-_SyVmSuy.js → dropdown-menu-ChvAIQIW.js} +1 -1
  16. package/dist/editor.js +10 -10
  17. package/dist/{empty-state-D-2ZMXXJ.js → empty-state-CFLcVzKL.js} +2 -2
  18. package/dist/{field-blur-DyOByjzw.js → field-blur-CV9orzdJ.js} +1 -1
  19. package/dist/{field-blur-context-DPe5_Nv5.js → field-blur-context-C8BX8IBy.js} +1 -1
  20. package/dist/{hooks-a7_exKWS.js → hooks-DilW-3jc.js} +2 -2
  21. package/dist/hooks.js +2 -2
  22. package/dist/{hover-card-D_0smKBQ.js → hover-card-IeS_1RPH.js} +1 -1
  23. package/dist/i18n.js +3 -3
  24. package/dist/{icon-badge-CBCU3ySF.js → icon-badge-Bf4SoA2i.js} +3 -3
  25. package/dist/{icon-button-hKHsWTAt.js → icon-button-l3dQTRrC.js} +1 -1
  26. package/dist/lib/components/ui/actions/load-more-footer/load-more-footer.d.ts +11 -2
  27. package/dist/lib/components/ui/actions/load-more-footer/use-footer-focus.d.ts +15 -0
  28. package/dist/lib/components/ui/actions/load-more-footer/use-last-page.d.ts +9 -0
  29. package/dist/lib/components/ui/collections/filter/bar/partials/filter-inline-chips.d.ts +11 -0
  30. package/dist/lib/components/ui/collections/filter/bar/partials/filter-inline-list.d.ts +6 -0
  31. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +1 -0
  32. package/dist/lib/components/ui/collections/server-table/partials/server-table-grid-paging.d.ts +9 -0
  33. package/dist/lib/components/ui/collections/server-table/partials/server-table-load-more.d.ts +17 -0
  34. package/dist/lib/components/ui/collections/server-table/past-end.d.ts +3 -0
  35. package/dist/lib/components/ui/collections/server-table/types-paging.d.ts +10 -0
  36. package/dist/lib/components/ui/collections/server-table/types.d.ts +2 -2
  37. package/dist/lib/components/ui/collections/server-table/use-table-answer.d.ts +1 -1
  38. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  39. package/dist/lib/components/ui/widgets/code-editor/code-editor-field.d.ts +7 -6
  40. package/dist/lib/components/ui/widgets/code-editor/code-editor-types.d.ts +6 -0
  41. package/dist/lib/components/ui/widgets/code-editor/use-code-editor-instance.d.ts +12 -1
  42. package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +1 -1
  43. package/dist/lib/components/ui/widgets/education/questions/question-long-text.d.ts +2 -2
  44. package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
  45. package/dist/lib/components/ui/widgets/education/questions/types.d.ts +14 -0
  46. package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +16 -2
  47. package/dist/lib/i18n/resources/en/en.d.ts +1 -0
  48. package/dist/lib/i18n/resources/en/material.json.d.ts +1 -0
  49. package/dist/lib/i18n/resources/fr/fr.d.ts +1 -0
  50. package/dist/lib/i18n/resources/fr/material.json.d.ts +1 -0
  51. package/dist/lib/i18n/resources/resources.d.ts +2 -0
  52. package/dist/lib/i18n/translator.d.ts +1 -1
  53. package/dist/lib.js +1 -1
  54. package/dist/main.js +25 -25
  55. package/dist/map.js +8 -8
  56. package/dist/material.css +1 -1
  57. package/dist/pdf-reader.js +1 -1
  58. package/dist/print.js +1 -1
  59. package/dist/{public-D8JGp3PH.js → public-B-greXGt.js} +9 -9
  60. package/dist/{rich-code-block-0R3bidsM.js → rich-code-block-Cv6s59vB.js} +5 -5
  61. package/dist/{sortable-provider-B75v53sB.js → sortable-provider-DVmZcglU.js} +2 -2
  62. package/dist/{spinner-CAnpF3RK.js → spinner-OQAweH2r.js} +1 -1
  63. package/dist/theme-picker.js +2 -2
  64. package/dist/{theme-toggle-pQ5F602V.js → theme-toggle-DPx44p6a.js} +1 -1
  65. package/dist/{toolbar-items-_ezD5B0r.js → toolbar-items-CQ3S_XZw.js} +3 -3
  66. package/dist/{translate-material-CvZK8_S6.js → translate-material-BHL4g2UB.js} +1 -1
  67. package/dist/{translator-Caf-d96e.js → translator-BJsjXcAp.js} +2 -0
  68. package/dist/{typography-CEK19bj8.js → typography-CwhEwPay.js} +1 -1
  69. package/dist/{use-chat-composer-Dpvi_-CR.js → use-chat-composer-R0vng5RU.js} +16 -16
  70. package/dist/{use-heading-spy-mmcyEGmm.js → use-heading-spy-Brcn0l_J.js} +4 -4
  71. package/dist/{use-material-translation-C_1cWRzW.js → use-material-translation-mY3U83TV.js} +1 -1
  72. package/dist/{use-return-focus-1ZIchrBM.js → use-return-focus-BQ413TNG.js} +1 -1
  73. package/docs/components/buttons-and-actions.md +2 -2
  74. package/docs/components/data-table-filter-and-lists.md +111 -2
  75. package/docs/components/navigation-and-layout.md +9 -5
  76. package/docs/components/rich-widgets.md +4 -1
  77. package/docs/guides/charts.md +1 -1
  78. package/docs/guides/code-editor.md +14 -0
  79. package/docs/guides/i18n.md +3 -1
  80. package/docs/roadmap.md +4 -0
  81. package/docs/troubleshooting.md +9 -7
  82. package/lib/components/ui/display/chip/chip-soft.css +19 -5
  83. package/package.json +2 -2
@@ -1,6 +1,10 @@
1
1
  /* Chip `tonal` and `filled`, "soft": no outline at all. A low tonal fill that reads as a
2
2
  * chip on any surface; selected = the library's primary tint, a hairline
3
- * ring in primary-text and a check (the ≥3:1 cue), the label unchanged. */
3
+ * ring in primary-text and a check (the ≥3:1 cue), the label unchanged. In
4
+ * dark the tint is mixed from --primary-text, the light end of the primary,
5
+ * 56 % at rest and 58 % on hover, and the label is white: in all 14 themes
6
+ * the fill is ≥3:1 over the surface and the label ≥4.5:1 (#2044); the deep
7
+ * --primary gave 1.3:1. */
4
8
  @layer components {
5
9
  .nxgt-chip[data-look="soft"] {
6
10
  --chip-bg: color-mix(in oklab, var(--foreground) 6.5%, var(--background));
@@ -9,8 +13,8 @@
9
13
  var(--foreground) 10%,
10
14
  var(--background)
11
15
  );
12
- --chip-on: color-mix(in oklab, var(--primary) 12%, var(--background));
13
- --chip-on-hover: color-mix(in oklab, var(--primary) 17%, var(--background));
16
+ --chip-on: color-mix(in oklab, var(--primary) 20%, var(--background));
17
+ --chip-on-hover: color-mix(in oklab, var(--primary) 25%, var(--background));
14
18
  --chip-on-ring: color-mix(
15
19
  in oklab,
16
20
  var(--primary-text) 75%,
@@ -25,8 +29,13 @@
25
29
  var(--foreground) 14%,
26
30
  var(--background)
27
31
  );
28
- --chip-on: color-mix(in oklab, var(--primary) 42%, var(--background));
29
- --chip-on-hover: color-mix(in oklab, var(--primary) 52%, var(--background));
32
+ --chip-on: color-mix(in oklab, var(--primary-text) 56%, var(--background));
33
+ --chip-on-hover: color-mix(
34
+ in oklab,
35
+ var(--primary-text) 58%,
36
+ var(--background)
37
+ );
38
+ --chip-on-text: white;
30
39
  --chip-on-ring: color-mix(
31
40
  in oklab,
32
41
  var(--primary-text) 80%,
@@ -43,6 +52,11 @@
43
52
  background: var(--chip-on);
44
53
  box-shadow: inset 0 0 0 1px var(--chip-on-ring);
45
54
  }
55
+ /* Dark: the label on the lighter fill is white (the foreground fell under
56
+ * 4.5:1 on some themes' hover). Light keeps the foreground. */
57
+ .nxgt-chip[data-look="soft"][data-selected] {
58
+ color: var(--chip-on-text, var(--foreground));
59
+ }
46
60
  .nxgt-chip[data-look="soft"][data-selected]:is(
47
61
  button:hover,
48
62
  :has(> button[data-slot="chip-body"]:hover)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/material",
3
- "version": "3.63.0",
3
+ "version": "3.65.0",
4
4
  "license": "MIT",
5
5
  "bugs": {
6
6
  "email": "stevegires@gmail.com"
@@ -372,7 +372,7 @@
372
372
  "docs:previews": "rm -rf node_modules/.cache/nxgt-preview-free/missing && NXGT_PREVIEW_FREE=1 vitest run --project previews && bun .storybook/preview-free-report.ts"
373
373
  },
374
374
  "dependencies": {
375
- "@nxgt/material-core": "^0.44.0",
375
+ "@nxgt/material-core": "^0.45.1",
376
376
  "@base-ui/react": "^1.6.0",
377
377
  "@dnd-kit/core": "^6.3.1",
378
378
  "@dnd-kit/sortable": "^10.0.0",