@nxgt/material 3.47.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.
- package/CHANGELOG.md +24 -0
- package/README.md +3 -3
- package/dist/{button-yaltbQmC.js → button-DJgaQbBD.js} +49 -49
- package/dist/charts.js +144 -144
- package/dist/{chip-BqWbbr1b.js → chip-DN44R1vW.js} +56 -56
- package/dist/{code-editor-C9qBNoYb.js → code-editor-BJ9ewxSC.js} +307 -307
- package/dist/code-editor.js +46 -46
- package/dist/{code-language-items-DAHtfQ7W.js → code-language-items-BJE3VuQg.js} +1 -1
- package/dist/components/components.css +1 -0
- package/dist/components/ui/actions/action-card/action-card-indicator.css +48 -0
- package/dist/components/ui/actions/action-card/action-card-modes.css +4 -1
- package/dist/components/ui/actions/action-card/action-card-tile.css +141 -0
- package/dist/components/ui/actions/action-card/action-card.css +33 -3
- package/dist/{components-DFPy96C3.js → components-AtBccCir.js} +15714 -15755
- package/dist/components.js +23 -23
- package/dist/{dialog-CCCcnTIx.js → dialog-ODql4vH7.js} +15 -15
- package/dist/{tooltip-CkttDIab.js → dist-B61_o9Mg.js} +69 -66
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-Df8785nt.js → dropdown-menu-DRXYP9ta.js} +274 -274
- package/dist/editor.js +1027 -1027
- package/dist/{empty-state-DcF4TBzi.js → empty-state-C9QqvBU1.js} +36 -36
- package/dist/{escape-owner-C4W_sOAU.js → escape-owner-DCrlERLM.js} +1 -1
- package/dist/{field-blur-CJHzVSh9.js → field-blur-DYGyIdfD.js} +1 -1
- package/dist/{field-blur-context-Cft9s7Hg.js → field-blur-context-B-fSpl1H.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-C0fw2kLK.js → hover-card-EO_CckIx.js} +19 -19
- package/dist/{icon-badge-aJ22mKGh.js → icon-badge-BQYj_LE6.js} +3 -3
- package/dist/{icon-button-CN9r5TNE.js → icon-button-B481L2TP.js} +20 -20
- package/dist/lib/components/ui/actions/action-card/action-card-semantics.d.ts +25 -2
- package/dist/lib/components/ui/actions/action-card/action-card.d.ts +18 -2
- package/dist/lib/components/ui/actions/action-card/partials/action-card-icon.d.ts +6 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-meta.d.ts +15 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-status.d.ts +6 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-text.d.ts +20 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-title-button.d.ts +14 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-trail.d.ts +6 -0
- package/dist/lib/components/ui/actions/action-card/use-action-card-names.d.ts +22 -0
- package/dist/lib/components/ui/actions/action-card/use-reveal.d.ts +23 -0
- package/dist/lib/components/ui/actions/button/button.variants.d.ts +1 -1
- package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/query/filter-query-context.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/query/filter-query-model.d.ts +49 -0
- package/dist/lib/components/ui/collections/filter/query/types.d.ts +8 -0
- package/dist/lib/components/ui/collections/filter/query/use-filter-query-options.d.ts +2 -1
- package/dist/lib/components/ui/collections/filter/query/use-filter-query-value.d.ts +1 -0
- package/dist/lib/components/ui/collections/filter/query/use-filter-query.d.ts +3 -47
- package/dist/lib/components/ui/collections/filter/sections/filter-form-error.d.ts +16 -4
- package/dist/lib/components/ui/collections/row-menu/row-menu.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/types.d.ts +5 -0
- package/dist/lib/components/ui/dates/duration-field/partials/use-duration-box.d.ts +1 -1
- package/dist/lib/components/ui/display/badge/badge.d.ts +1 -1
- package/dist/lib/components/ui/display/day-separator/day-separator.d.ts +1 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/opening-hours/logic/status.d.ts +13 -2
- package/dist/lib/components/ui/fields/opening-hours/opening-hours-summary.d.ts +7 -3
- package/dist/lib/components/ui/fields/slider/split-slider-props.d.ts +20 -20
- package/dist/lib/components/ui/fields/slider/use-slider-control.d.ts +20 -20
- package/dist/lib/components/ui/layout/app-shell/route-transition.d.ts +1 -1
- package/dist/lib/components/ui/media/carousel/use-carousel-engine.d.ts +1 -1
- package/dist/lib/components/ui/media/media-player/engine/use-queue-actions.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-reader/pdf-reader.slice.d.ts +1 -1
- package/dist/lib/components/ui/selection/choice-group/use-choice-group-field.d.ts +34 -34
- package/dist/lib/components/ui/widgets/chat/chat-message.variants.d.ts +2 -2
- package/dist/lib/components/ui/widgets/event-calendar/use-event-calendar.d.ts +1 -1
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/main.js +30 -30
- package/dist/map.js +78 -78
- package/dist/material.css +1 -1
- package/dist/nxgt-theme-ivgNca3z.js +37 -0
- package/dist/pdf-reader.js +1 -1
- package/dist/{public-zVb_Nq_D.js → public-CZBz4JVu.js} +70 -70
- package/dist/{rich-code-block-DMWZZJma.js → rich-code-block-597e0_Qm.js} +51 -51
- package/dist/{sortable-provider-DstbgMVf.js → sortable-provider-CK_xAk2H.js} +217 -217
- package/dist/{spinner-C4CgDEYm.js → spinner-BhuZuHK1.js} +1 -1
- package/dist/theme-picker.js +45 -45
- package/dist/{theme-store-CSl51uNH.js → theme-store-BdPp43cV.js} +13 -13
- package/dist/{theme-toggle-CGW2_K54.js → theme-toggle-Dnjn83TJ.js} +15 -15
- package/dist/themes.js +17 -17
- package/dist/{toggle-group-BMJNcFAC.js → toggle-group-BkH23Jk4.js} +11 -11
- package/dist/{toolbar-items-CsLGJMEJ.js → toolbar-items-CCwIu7fE.js} +426 -426
- package/dist/{use-chat-composer-Brcb5f7r.js → use-chat-composer-Ot5XUbdn.js} +5138 -4908
- package/dist/{use-theme-DMcyJ52N.js → use-theme-BCLireTd.js} +1 -1
- package/docs/components/buttons-and-actions.md +62 -4
- package/docs/components/data-table-filter-and-lists.md +29 -2
- package/docs/components/form-fields.md +1 -1
- package/docs/guides/cards-and-tiles.md +60 -0
- package/docs/previews/data-table-filter-lists-filter.webp +0 -0
- package/docs/roadmap.md +21 -0
- package/docs/troubleshooting.md +24 -0
- package/lib/components/components.css +1 -0
- package/lib/components/ui/actions/action-card/action-card-indicator.css +48 -0
- package/lib/components/ui/actions/action-card/action-card-modes.css +4 -1
- package/lib/components/ui/actions/action-card/action-card-tile.css +141 -0
- package/lib/components/ui/actions/action-card/action-card.css +33 -3
- package/package.json +1 -1
- package/dist/lib/components/ui/fields/opening-hours/logic/zoned.d.ts +0 -10
- 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 "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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
|
|
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:
|
|
38
|
-
let
|
|
39
|
-
return e ?
|
|
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 ?
|
|
43
|
+
}) : t ? o = /* @__PURE__ */ c("span", {
|
|
44
44
|
"data-slot": "chip-lead",
|
|
45
45
|
children: t
|
|
46
|
-
}) : i ?
|
|
46
|
+
}) : i ? o = /* @__PURE__ */ c("span", {
|
|
47
47
|
"data-slot": "chip-check",
|
|
48
48
|
"aria-hidden": "true",
|
|
49
|
-
children: /* @__PURE__ */ u
|
|
50
|
-
}) :
|
|
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__ */
|
|
54
|
-
|
|
55
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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:
|
|
68
|
-
let { t:
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
-
content:
|
|
71
|
-
children: /* @__PURE__ */
|
|
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
|
|
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(),
|
|
77
|
+
e.stopPropagation(), o();
|
|
78
78
|
},
|
|
79
|
-
children: /* @__PURE__ */
|
|
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:
|
|
89
|
-
let h = p.onClick ? /* @__PURE__ */
|
|
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:
|
|
91
|
+
disabled: u,
|
|
92
92
|
...p,
|
|
93
93
|
"data-slot": "chip-body",
|
|
94
94
|
ref: m,
|
|
95
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ c(n, {
|
|
96
96
|
value: !0,
|
|
97
97
|
children: i
|
|
98
98
|
})
|
|
99
|
-
}) : /* @__PURE__ */
|
|
100
|
-
tabIndex:
|
|
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__ */
|
|
107
|
-
...
|
|
106
|
+
return /* @__PURE__ */ l("span", {
|
|
107
|
+
...r,
|
|
108
108
|
"data-dismissible": "",
|
|
109
|
-
"data-disabled":
|
|
109
|
+
"data-disabled": u ? "" : void 0,
|
|
110
110
|
className: e("nxgt-chip", f),
|
|
111
|
-
children: [
|
|
112
|
-
content:
|
|
111
|
+
children: [d ? /* @__PURE__ */ c(t, {
|
|
112
|
+
content: d,
|
|
113
113
|
children: h
|
|
114
|
-
}) : h, /* @__PURE__ */
|
|
114
|
+
}) : h, /* @__PURE__ */ c(_, {
|
|
115
115
|
label: a,
|
|
116
116
|
dismissLabel: o,
|
|
117
|
-
disabled:
|
|
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:
|
|
125
|
-
let d =
|
|
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
|
-
...
|
|
127
|
+
...r,
|
|
128
128
|
disabled: a,
|
|
129
|
-
...
|
|
130
|
-
ref:
|
|
129
|
+
...l,
|
|
130
|
+
ref: u,
|
|
131
131
|
className: e("nxgt-chip", s),
|
|
132
|
-
children: /* @__PURE__ */
|
|
132
|
+
children: /* @__PURE__ */ c(n, {
|
|
133
133
|
value: !0,
|
|
134
134
|
children: i
|
|
135
135
|
})
|
|
136
|
-
}) : /* @__PURE__ */
|
|
137
|
-
...
|
|
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
|
-
...
|
|
142
|
-
ref:
|
|
141
|
+
...l,
|
|
142
|
+
ref: u,
|
|
143
143
|
className: e("nxgt-chip", s),
|
|
144
144
|
children: i
|
|
145
145
|
});
|
|
146
|
-
return o ? /* @__PURE__ */
|
|
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:
|
|
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:
|
|
160
|
+
size: u,
|
|
161
161
|
color: d,
|
|
162
162
|
selected: a || S
|
|
163
|
-
}), w = C.attributes, T = /* @__PURE__ */
|
|
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__ */
|
|
171
|
+
return s ? /* @__PURE__ */ c(v, {
|
|
172
172
|
shared: w,
|
|
173
173
|
body: T,
|
|
174
174
|
label: e,
|
|
175
|
-
dismissLabel:
|
|
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__ */
|
|
182
|
+
}) : /* @__PURE__ */ c(y, {
|
|
183
183
|
shared: w,
|
|
184
184
|
body: T,
|
|
185
185
|
disabled: h,
|