@nxgt/material 3.48.0 → 3.49.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 +10 -0
  2. package/README.md +2 -2
  3. package/dist/{button-yaltbQmC.js → button-DJgaQbBD.js} +49 -49
  4. package/dist/charts.js +144 -144
  5. package/dist/{chip-BqWbbr1b.js → chip-DN44R1vW.js} +56 -56
  6. package/dist/{code-editor-C9qBNoYb.js → code-editor-BJ9ewxSC.js} +307 -307
  7. package/dist/code-editor.js +46 -46
  8. package/dist/{code-language-items-DAHtfQ7W.js → code-language-items-BJE3VuQg.js} +1 -1
  9. package/dist/components/components.css +1 -0
  10. package/dist/components/ui/actions/action-card/action-card-indicator.css +48 -0
  11. package/dist/components/ui/actions/action-card/action-card-modes.css +4 -1
  12. package/dist/components/ui/actions/action-card/action-card-tile.css +141 -0
  13. package/dist/components/ui/actions/action-card/action-card.css +33 -3
  14. package/dist/{components-Ox6FHmpx.js → components-AtBccCir.js} +17842 -17879
  15. package/dist/components.js +23 -23
  16. package/dist/{dialog-CCCcnTIx.js → dialog-ODql4vH7.js} +15 -15
  17. package/dist/{tooltip-CkttDIab.js → dist-B61_o9Mg.js} +69 -66
  18. package/dist/dnd.js +1 -1
  19. package/dist/{dropdown-menu-Df8785nt.js → dropdown-menu-DRXYP9ta.js} +274 -274
  20. package/dist/editor.js +1027 -1027
  21. package/dist/{empty-state-DcF4TBzi.js → empty-state-C9QqvBU1.js} +36 -36
  22. package/dist/{escape-owner-C4W_sOAU.js → escape-owner-DCrlERLM.js} +1 -1
  23. package/dist/{field-blur-CJHzVSh9.js → field-blur-DYGyIdfD.js} +1 -1
  24. package/dist/{field-blur-context-Cft9s7Hg.js → field-blur-context-B-fSpl1H.js} +1 -1
  25. package/dist/hooks.js +2 -2
  26. package/dist/{hover-card-C0fw2kLK.js → hover-card-EO_CckIx.js} +19 -19
  27. package/dist/{icon-badge-aJ22mKGh.js → icon-badge-BQYj_LE6.js} +3 -3
  28. package/dist/{icon-button-CN9r5TNE.js → icon-button-B481L2TP.js} +20 -20
  29. package/dist/lib/components/ui/actions/action-card/action-card-semantics.d.ts +25 -2
  30. package/dist/lib/components/ui/actions/action-card/action-card.d.ts +18 -2
  31. package/dist/lib/components/ui/actions/action-card/partials/action-card-icon.d.ts +6 -0
  32. package/dist/lib/components/ui/actions/action-card/partials/action-card-meta.d.ts +15 -0
  33. package/dist/lib/components/ui/actions/action-card/partials/action-card-status.d.ts +6 -0
  34. package/dist/lib/components/ui/actions/action-card/partials/action-card-text.d.ts +20 -0
  35. package/dist/lib/components/ui/actions/action-card/partials/action-card-title-button.d.ts +14 -0
  36. package/dist/lib/components/ui/actions/action-card/partials/action-card-trail.d.ts +6 -0
  37. package/dist/lib/components/ui/actions/action-card/use-action-card-names.d.ts +22 -0
  38. package/dist/lib/components/ui/actions/action-card/use-reveal.d.ts +23 -0
  39. package/dist/lib/components/ui/actions/button/button.variants.d.ts +1 -1
  40. package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +1 -1
  41. package/dist/lib/components/ui/collections/row-menu/row-menu.d.ts +1 -1
  42. package/dist/lib/components/ui/dates/duration-field/partials/use-duration-box.d.ts +1 -1
  43. package/dist/lib/components/ui/display/badge/badge.d.ts +1 -1
  44. package/dist/lib/components/ui/display/day-separator/day-separator.d.ts +1 -1
  45. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  46. package/dist/lib/components/ui/fields/slider/split-slider-props.d.ts +20 -20
  47. package/dist/lib/components/ui/fields/slider/use-slider-control.d.ts +20 -20
  48. package/dist/lib/components/ui/layout/app-shell/route-transition.d.ts +1 -1
  49. package/dist/lib/components/ui/media/carousel/use-carousel-engine.d.ts +1 -1
  50. package/dist/lib/components/ui/media/media-player/engine/use-queue-actions.d.ts +1 -1
  51. package/dist/lib/components/ui/media/pdf-reader/pdf-reader.slice.d.ts +1 -1
  52. package/dist/lib/components/ui/selection/choice-group/use-choice-group-field.d.ts +34 -34
  53. package/dist/lib/components/ui/widgets/chat/chat-message.variants.d.ts +2 -2
  54. package/dist/lib/components/ui/widgets/event-calendar/use-event-calendar.d.ts +1 -1
  55. package/dist/lib/i18n/translator.d.ts +1 -1
  56. package/dist/main.js +30 -30
  57. package/dist/map.js +78 -78
  58. package/dist/material.css +1 -1
  59. package/dist/nxgt-theme-ivgNca3z.js +37 -0
  60. package/dist/pdf-reader.js +1 -1
  61. package/dist/{public-zVb_Nq_D.js → public-CZBz4JVu.js} +70 -70
  62. package/dist/{rich-code-block-DMWZZJma.js → rich-code-block-597e0_Qm.js} +51 -51
  63. package/dist/{sortable-provider-DstbgMVf.js → sortable-provider-CK_xAk2H.js} +217 -217
  64. package/dist/{spinner-C4CgDEYm.js → spinner-BhuZuHK1.js} +1 -1
  65. package/dist/theme-picker.js +45 -45
  66. package/dist/{theme-store-CSl51uNH.js → theme-store-BdPp43cV.js} +13 -13
  67. package/dist/{theme-toggle-CGW2_K54.js → theme-toggle-Dnjn83TJ.js} +15 -15
  68. package/dist/themes.js +17 -17
  69. package/dist/{toggle-group-BMJNcFAC.js → toggle-group-BkH23Jk4.js} +11 -11
  70. package/dist/{toolbar-items-CsLGJMEJ.js → toolbar-items-CCwIu7fE.js} +426 -426
  71. package/dist/{use-chat-composer-Brcb5f7r.js → use-chat-composer-Ot5XUbdn.js} +5138 -4908
  72. package/dist/{use-theme-DMcyJ52N.js → use-theme-BCLireTd.js} +1 -1
  73. package/docs/components/buttons-and-actions.md +62 -4
  74. package/docs/components/data-table-filter-and-lists.md +1 -1
  75. package/docs/guides/cards-and-tiles.md +60 -0
  76. package/docs/roadmap.md +11 -0
  77. package/lib/components/components.css +1 -0
  78. package/lib/components/ui/actions/action-card/action-card-indicator.css +48 -0
  79. package/lib/components/ui/actions/action-card/action-card-modes.css +4 -1
  80. package/lib/components/ui/actions/action-card/action-card-tile.css +141 -0
  81. package/lib/components/ui/actions/action-card/action-card.css +33 -3
  82. package/package.json +1 -1
  83. package/dist/nxgt-theme-ZS945iMP.js +0 -37
@@ -1,11 +1,11 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
- import { t } from "./tooltip-CkttDIab.js";
3
- import { t as n } from "./use-material-translation-DOkTaWK_.js";
4
- import { a as r } from "./button-tones-BwuVvAmd.js";
2
+ import { n as t } from "./dist-B61_o9Mg.js";
3
+ import { a as n } from "./button-tones-BwuVvAmd.js";
4
+ import { t as r } from "./use-material-translation-DOkTaWK_.js";
5
5
  import { t as i } from "./react-node-text-Crkpfpco.js";
6
- import { Check as a, X as o } from "lucide-react";
7
- import { cloneElement as s, isValidElement as c } from "react";
8
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
6
+ import { cloneElement as a, isValidElement as o } from "react";
7
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
8
+ import { Check as u, X as d } from "lucide-react";
9
9
  //#region lib/components/ui/display/chip/chip.variants.ts
10
10
  function f(e) {
11
11
  return e === "tag" ? "tag" : e === "tonal" || e === "filled" || e === "ghost" ? "soft" : "hairline";
@@ -32,31 +32,31 @@ function m({ variant: e, size: t, color: n, selected: r }) {
32
32
  //#endregion
33
33
  //#region lib/components/ui/display/chip/partials/chip-body.tsx
34
34
  function h(t) {
35
- return c(t) ? s(t, { className: e("size-(--chip-avatar)", t.props.className) }) : t;
35
+ return o(t) ? a(t, { className: e("size-(--chip-avatar)", t.props.className) }) : t;
36
36
  }
37
- function g({ avatar: e, leading: t, label: n, trailing: r, check: i, dot: o }) {
38
- let s = null;
39
- return e ? s = /* @__PURE__ */ u("span", {
37
+ function g({ avatar: e, leading: t, label: n, trailing: r, check: i, dot: a }) {
38
+ let o = null;
39
+ return e ? o = /* @__PURE__ */ c("span", {
40
40
  "data-slot": "chip-avatar",
41
41
  "aria-hidden": n ? "true" : void 0,
42
42
  children: h(e)
43
- }) : t ? s = /* @__PURE__ */ u("span", {
43
+ }) : t ? o = /* @__PURE__ */ c("span", {
44
44
  "data-slot": "chip-lead",
45
45
  children: t
46
- }) : i ? s = /* @__PURE__ */ u("span", {
46
+ }) : i ? o = /* @__PURE__ */ c("span", {
47
47
  "data-slot": "chip-check",
48
48
  "aria-hidden": "true",
49
- children: /* @__PURE__ */ u(a, { strokeWidth: 2.75 })
50
- }) : o && (s = /* @__PURE__ */ u("span", {
49
+ children: /* @__PURE__ */ c(u, { strokeWidth: 2.75 })
50
+ }) : a && (o = /* @__PURE__ */ c("span", {
51
51
  "data-slot": "chip-dot",
52
52
  "aria-hidden": "true"
53
- })), /* @__PURE__ */ d(l, { children: [
54
- s,
55
- /* @__PURE__ */ u("span", {
53
+ })), /* @__PURE__ */ l(s, { children: [
54
+ o,
55
+ /* @__PURE__ */ c("span", {
56
56
  "data-slot": "chip-label",
57
57
  children: n
58
58
  }),
59
- r ? /* @__PURE__ */ u("span", {
59
+ r ? /* @__PURE__ */ c("span", {
60
60
  "data-slot": "chip-trail",
61
61
  children: r
62
62
  }) : null
@@ -64,19 +64,19 @@ function g({ avatar: e, leading: t, label: n, trailing: r, check: i, dot: o }) {
64
64
  }
65
65
  //#endregion
66
66
  //#region lib/components/ui/display/chip/partials/chip-dismiss-button.tsx
67
- function _({ label: e, dismissLabel: r, disabled: a, onDismiss: s }) {
68
- let { t: c } = n(), l = i(e).replace(/\s+/g, " ").trim(), d = c("material.chip.dismiss", "Remove");
69
- return /* @__PURE__ */ u(t, {
70
- content: d,
71
- children: /* @__PURE__ */ u("button", {
67
+ function _({ label: e, dismissLabel: n, disabled: a, onDismiss: o }) {
68
+ let { t: s } = r(), l = i(e).replace(/\s+/g, " ").trim(), u = s("material.chip.dismiss", "Remove");
69
+ return /* @__PURE__ */ c(t, {
70
+ content: u,
71
+ children: /* @__PURE__ */ c("button", {
72
72
  type: "button",
73
73
  "data-slot": "chip-dismiss",
74
- "aria-label": typeof r == "function" ? r(l) : r ?? (l ? c("material.chip.dismiss-label", "Remove {label}", { label: l }) : d),
74
+ "aria-label": typeof n == "function" ? n(l) : n ?? (l ? s("material.chip.dismiss-label", "Remove {label}", { label: l }) : u),
75
75
  disabled: a,
76
76
  onClick: (e) => {
77
- e.stopPropagation(), s();
77
+ e.stopPropagation(), o();
78
78
  },
79
- children: /* @__PURE__ */ u(o, {
79
+ children: /* @__PURE__ */ c(d, {
80
80
  strokeWidth: 2.5,
81
81
  "aria-hidden": "true"
82
82
  })
@@ -85,65 +85,65 @@ function _({ label: e, dismissLabel: r, disabled: a, onDismiss: s }) {
85
85
  }
86
86
  //#endregion
87
87
  //#region lib/components/ui/display/chip/partials/chip-dismissible.tsx
88
- function v({ shared: n, body: i, label: a, dismissLabel: o, onDismiss: s, disabled: c, tooltip: l, className: f, bodyProps: p, ref: m }) {
89
- let h = p.onClick ? /* @__PURE__ */ u("button", {
88
+ function v({ shared: r, body: i, label: a, dismissLabel: o, onDismiss: s, disabled: u, tooltip: d, className: f, bodyProps: p, ref: m }) {
89
+ let h = p.onClick ? /* @__PURE__ */ c("button", {
90
90
  type: "button",
91
- disabled: c,
91
+ disabled: u,
92
92
  ...p,
93
93
  "data-slot": "chip-body",
94
94
  ref: m,
95
- children: /* @__PURE__ */ u(r, {
95
+ children: /* @__PURE__ */ c(n, {
96
96
  value: !0,
97
97
  children: i
98
98
  })
99
- }) : /* @__PURE__ */ u("span", {
100
- tabIndex: l ? 0 : -1,
99
+ }) : /* @__PURE__ */ c("span", {
100
+ tabIndex: d ? 0 : -1,
101
101
  ...p,
102
102
  "data-slot": "chip-body",
103
103
  ref: m,
104
104
  children: i
105
105
  });
106
- return /* @__PURE__ */ d("span", {
107
- ...n,
106
+ return /* @__PURE__ */ l("span", {
107
+ ...r,
108
108
  "data-dismissible": "",
109
- "data-disabled": c ? "" : void 0,
109
+ "data-disabled": u ? "" : void 0,
110
110
  className: e("nxgt-chip", f),
111
- children: [l ? /* @__PURE__ */ u(t, {
112
- content: l,
111
+ children: [d ? /* @__PURE__ */ c(t, {
112
+ content: d,
113
113
  children: h
114
- }) : h, /* @__PURE__ */ u(_, {
114
+ }) : h, /* @__PURE__ */ c(_, {
115
115
  label: a,
116
116
  dismissLabel: o,
117
- disabled: c,
117
+ disabled: u,
118
118
  onDismiss: s
119
119
  })]
120
120
  });
121
121
  }
122
122
  //#endregion
123
123
  //#region lib/components/ui/display/chip/partials/chip-plain.tsx
124
- function y({ shared: n, body: i, disabled: a, tooltip: o, className: s, rootProps: c, ref: l }) {
125
- let d = c.onClick ? /* @__PURE__ */ u("button", {
124
+ function y({ shared: r, body: i, disabled: a, tooltip: o, className: s, rootProps: l, ref: u }) {
125
+ let d = l.onClick ? /* @__PURE__ */ c("button", {
126
126
  type: "button",
127
- ...n,
127
+ ...r,
128
128
  disabled: a,
129
- ...c,
130
- ref: l,
129
+ ...l,
130
+ ref: u,
131
131
  className: e("nxgt-chip", s),
132
- children: /* @__PURE__ */ u(r, {
132
+ children: /* @__PURE__ */ c(n, {
133
133
  value: !0,
134
134
  children: i
135
135
  })
136
- }) : /* @__PURE__ */ u("span", {
137
- ...n,
136
+ }) : /* @__PURE__ */ c("span", {
137
+ ...r,
138
138
  "data-disabled": a ? "" : void 0,
139
139
  "aria-disabled": a || void 0,
140
140
  tabIndex: o ? 0 : void 0,
141
- ...c,
142
- ref: l,
141
+ ...l,
142
+ ref: u,
143
143
  className: e("nxgt-chip", s),
144
144
  children: i
145
145
  });
146
- return o ? /* @__PURE__ */ u(t, {
146
+ return o ? /* @__PURE__ */ c(t, {
147
147
  content: o,
148
148
  children: d
149
149
  }) : d;
@@ -154,13 +154,13 @@ function b(e) {
154
154
  let { loading: t, lockOnClick: n, spinnerVariant: r, wrap: i, asChild: a, ...o } = e;
155
155
  return o;
156
156
  }
157
- function x({ label: e, leading: t, trailing: n, avatar: r, className: i, active: a, variant: o = "outlined", onDismiss: s, dismissLabel: c, size: l = "default", color: d, tooltip: f, ref: p, disabled: h, ..._ }) {
157
+ function x({ label: e, leading: t, trailing: n, avatar: r, className: i, active: a, variant: o = "outlined", onDismiss: s, dismissLabel: l, size: u = "default", color: d, tooltip: f, ref: p, disabled: h, ..._ }) {
158
158
  let x = b(_), S = x["aria-pressed"] === !0 || x["aria-pressed"] === "true" || x["aria-checked"] === !0 || x["aria-checked"] === "true", C = m({
159
159
  variant: o,
160
- size: l,
160
+ size: u,
161
161
  color: d,
162
162
  selected: a || S
163
- }), w = C.attributes, T = /* @__PURE__ */ u(g, {
163
+ }), w = C.attributes, T = /* @__PURE__ */ c(g, {
164
164
  avatar: r,
165
165
  leading: t,
166
166
  label: e,
@@ -168,18 +168,18 @@ function x({ label: e, leading: t, trailing: n, avatar: r, className: i, active:
168
168
  check: S,
169
169
  dot: C.look === "tag" && C.tone !== "neutral"
170
170
  });
171
- return s ? /* @__PURE__ */ u(v, {
171
+ return s ? /* @__PURE__ */ c(v, {
172
172
  shared: w,
173
173
  body: T,
174
174
  label: e,
175
- dismissLabel: c,
175
+ dismissLabel: l,
176
176
  onDismiss: s,
177
177
  disabled: h,
178
178
  tooltip: f,
179
179
  className: i,
180
180
  bodyProps: x,
181
181
  ref: p
182
- }) : /* @__PURE__ */ u(y, {
182
+ }) : /* @__PURE__ */ c(y, {
183
183
  shared: w,
184
184
  body: T,
185
185
  disabled: h,