@nxgt/material 3.48.0 → 3.50.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 +32 -0
- package/README.md +3 -3
- package/dist/{async-slice-DlvKCKAa.js → async-slice-3loEtzUY.js} +2 -2
- package/dist/{button-yaltbQmC.js → button-BRUaHD8z.js} +81 -112
- package/dist/charts.js +144 -144
- package/dist/{chip-BqWbbr1b.js → chip-DneTrtNj.js} +56 -56
- package/dist/{code-editor-C9qBNoYb.js → code-editor-R_nPN_-d.js} +308 -308
- package/dist/code-editor.js +47 -47
- package/dist/{code-language-items-DAHtfQ7W.js → code-language-items-BKEUhQlF.js} +2 -2
- 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-Ox6FHmpx.js → components-D6xFLcoE.js} +17646 -17567
- package/dist/components.js +26 -27
- package/dist/{dialog-CCCcnTIx.js → dialog-S7dLsYRZ.js} +16 -16
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-Df8785nt.js → dropdown-menu-XLlxfDgq.js} +271 -272
- package/dist/editor.js +1028 -1028
- package/dist/{empty-state-DcF4TBzi.js → empty-state-Dsf6R-Zo.js} +37 -37
- package/dist/{escape-owner-C4W_sOAU.js → escape-owner-B9eCwjLw.js} +1 -1
- package/dist/{field-blur-CJHzVSh9.js → field-blur-5uRDFHvB.js} +1 -1
- package/dist/{field-blur-context-Cft9s7Hg.js → field-blur-context-Cwt4TuBq.js} +1 -1
- package/dist/hooks.js +4 -4
- package/dist/{hover-card-C0fw2kLK.js → hover-card-PHUgRSjJ.js} +24 -24
- package/dist/{i18n-provider-C0fB0sEL.js → i18n-provider-DPM_ALQ4.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-aJ22mKGh.js → icon-badge-Dh6-FNOF.js} +3 -3
- package/dist/{icon-button-CN9r5TNE.js → icon-button-DSC2-IAG.js} +118 -86
- 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-busy.d.ts +22 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button-shape.d.ts +2 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button.d.ts +7 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/bar/partials/filter-quick-toggle.d.ts +3 -2
- package/dist/lib/components/ui/collections/filter/sections/filter-sections-classes.d.ts +7 -1
- package/dist/lib/components/ui/collections/page-footer/page-footer.d.ts +6 -1
- package/dist/lib/components/ui/collections/row-menu/row-menu-trigger.d.ts +5 -2
- package/dist/lib/components/ui/collections/row-menu/row-menu.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/index.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-empty-chips.d.ts +5 -3
- package/dist/lib/components/ui/collections/server-table/types-paging.d.ts +17 -0
- package/dist/lib/components/ui/collections/server-table/types.d.ts +3 -10
- 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/feedback/step-up-dialog/partials/step-up-body.d.ts +5 -3
- package/dist/lib/components/ui/feedback/step-up-dialog/partials/step-up-request-error.d.ts +15 -0
- package/dist/lib/components/ui/feedback/step-up-dialog/step-up-dialog.d.ts +6 -3
- package/dist/lib/components/ui/feedback/step-up-dialog/types.d.ts +12 -1
- package/dist/lib/components/ui/feedback/step-up-dialog/use-retry-focus.d.ts +27 -0
- package/dist/lib/components/ui/feedback/step-up-dialog/use-retry.d.ts +11 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- 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/fields/verification-code/use-settled-focus.d.ts +10 -0
- 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/resources/en/en.d.ts +1 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +2 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +1 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +2 -1
- package/dist/lib/i18n/resources/resources.d.ts +2 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +43 -44
- package/dist/map.js +79 -79
- package/dist/material.css +1 -1
- package/dist/nxgt-theme-ivgNca3z.js +37 -0
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +2 -2
- package/dist/{public-zVb_Nq_D.js → public-vxiijIJF.js} +82 -82
- package/dist/{rich-code-block-DMWZZJma.js → rich-code-block-BwvCXPqq.js} +52 -52
- package/dist/{sortable-provider-DstbgMVf.js → sortable-provider-D2pAFWQB.js} +218 -218
- package/dist/{tooltip-CkttDIab.js → spinner-BpVwI1ps.js} +503 -278
- package/dist/{stored-language-IaL1Ftn_.js → stored-language-Beyj2ult.js} +4 -2
- 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-BTYRPkP4.js} +16 -16
- 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-CIMo4F9q.js} +421 -421
- package/dist/{translate-material-v9u-e7Kd.js → translate-material-DEUlaL_1.js} +2 -2
- package/dist/{translator-Dk4_qE6U.js → translator-CBgIb3zP.js} +1 -1
- package/dist/{use-chat-composer-Brcb5f7r.js → use-chat-composer-D8UAsX0f.js} +6228 -5999
- package/dist/{button-tones-BwuVvAmd.js → use-click-lock-BZYtTmVt.js} +37 -7
- package/dist/{use-heading-spy-DjKixjLm.js → use-heading-spy-C5LXtA8Z.js} +1 -1
- package/dist/{use-material-translation-DOkTaWK_.js → use-material-translation-DWWeeg-B.js} +2 -2
- package/dist/{use-theme-DMcyJ52N.js → use-theme-BCLireTd.js} +1 -1
- package/docs/components/buttons-and-actions.md +64 -5
- package/docs/components/data-table-filter-and-lists.md +30 -10
- package/docs/components/feedback-and-status.md +22 -3
- package/docs/components/form-fields.md +7 -0
- package/docs/guides/cards-and-tiles.md +60 -0
- package/docs/guides/server-lists-url.md +3 -2
- package/docs/roadmap.md +11 -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/nxgt-theme-ZS945iMP.js +0 -37
- package/dist/spinner-C4CgDEYm.js +0 -229
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { t } from "./use-material-translation-
|
|
3
|
-
import { i as n } from "./escape-owner-
|
|
2
|
+
import { t } from "./use-material-translation-DWWeeg-B.js";
|
|
3
|
+
import { i as n } from "./escape-owner-B9eCwjLw.js";
|
|
4
4
|
import { a as r, c as i, i as a, n as o, o as s, r as c, t as l, u } from "./state-scenes-BX03WmSu.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Suspense as d } from "react";
|
|
6
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
|
+
import { AlertCircle as m, Construction as h, FileQuestion as g, PackageOpen as _, Search as v, ShieldAlert as y, WifiOff as b } from "lucide-react";
|
|
8
8
|
import { STATE_ACCENT as x, STATE_ICON as S, stateCopy as C } from "@nxgt/material-core/states";
|
|
9
9
|
//#region lib/components/ui/feedback/state-frame/state-icon.tsx
|
|
10
10
|
var w = {
|
|
11
|
-
"package-open":
|
|
12
|
-
search:
|
|
13
|
-
"file-question":
|
|
14
|
-
"shield-alert":
|
|
15
|
-
"alert-circle":
|
|
16
|
-
"wifi-off":
|
|
17
|
-
construction:
|
|
11
|
+
"package-open": _,
|
|
12
|
+
search: v,
|
|
13
|
+
"file-question": g,
|
|
14
|
+
"shield-alert": y,
|
|
15
|
+
"alert-circle": m,
|
|
16
|
+
"wifi-off": b,
|
|
17
|
+
construction: h
|
|
18
18
|
};
|
|
19
19
|
function T({ kind: e }) {
|
|
20
20
|
let t = w[S[e]];
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ f(t, { "aria-hidden": "true" });
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region lib/components/ui/feedback/state-frame/state-scene-illustration.tsx
|
|
25
25
|
function E({ scene: e, size: t }) {
|
|
26
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ f("div", {
|
|
27
27
|
"data-slot": "illustration",
|
|
28
28
|
"data-scene": e,
|
|
29
29
|
"data-size": t,
|
|
30
30
|
"data-fallback": "",
|
|
31
31
|
"aria-hidden": "true",
|
|
32
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ f(r, {
|
|
33
33
|
kind: l[e] ?? "empty",
|
|
34
34
|
className: "h-full w-full"
|
|
35
35
|
})
|
|
@@ -37,19 +37,19 @@ function E({ scene: e, size: t }) {
|
|
|
37
37
|
}
|
|
38
38
|
var D = a("illustration", async () => {
|
|
39
39
|
let { Illustration: e } = await import("./illustration-B4_W-OUS.js").then((e) => e.n);
|
|
40
|
-
return ({ scene: t, size: n }) => /* @__PURE__ */
|
|
40
|
+
return ({ scene: t, size: n }) => /* @__PURE__ */ f(e, {
|
|
41
41
|
scene: t,
|
|
42
42
|
size: n
|
|
43
43
|
});
|
|
44
44
|
}, E);
|
|
45
45
|
function O({ scene: e, size: t }) {
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
fallback: /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ f(d, {
|
|
47
|
+
fallback: /* @__PURE__ */ f("div", {
|
|
48
48
|
"data-slot": "illustration",
|
|
49
49
|
"data-size": t,
|
|
50
50
|
"aria-hidden": "true"
|
|
51
51
|
}),
|
|
52
|
-
children: /* @__PURE__ */
|
|
52
|
+
children: /* @__PURE__ */ f(D, {
|
|
53
53
|
scene: e,
|
|
54
54
|
size: t
|
|
55
55
|
})
|
|
@@ -57,41 +57,41 @@ function O({ scene: e, size: t }) {
|
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region lib/components/ui/feedback/state-frame/state-frame.tsx
|
|
60
|
-
function k({ kind: t, size: a = "default", illustration: l, icon: d, title:
|
|
60
|
+
function k({ kind: t, size: a = "default", illustration: l, icon: d, title: m, headingLevel: h, description: g, actions: _, className: v, children: y, ...b }) {
|
|
61
61
|
let S = a === "inline", C = a === "compact" || S, w = e("flex shrink-0 items-center justify-center rounded", s[x[t]], S ? "size-8 rounded-full [&_svg]:size-4" : C ? "size-10 [&_svg]:size-5" : "size-16 [&_svg]:size-7"), E = u(), D = l === !0 || c(l, E?.sets) ? c(l, E?.sets) ? l : o[t] : null, k = l == null && d == null && a === "default" ? i(E, o[t]) : void 0, A = S ? null : D ?? (k ? o[t] : null), j = null;
|
|
62
|
-
return j = l === !1 ? null : A ? /* @__PURE__ */
|
|
62
|
+
return j = l === !1 ? null : A ? /* @__PURE__ */ f(O, {
|
|
63
63
|
scene: A,
|
|
64
64
|
size: C ? "sm" : "md"
|
|
65
|
-
}) : l != null && l !== !0 && !c(l, E?.sets) ? l : d == null ? C ? /* @__PURE__ */
|
|
65
|
+
}) : l != null && l !== !0 && !c(l, E?.sets) ? l : d == null ? C ? /* @__PURE__ */ f("div", {
|
|
66
66
|
className: w,
|
|
67
|
-
children: /* @__PURE__ */
|
|
68
|
-
}) : /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ f(T, { kind: t })
|
|
68
|
+
}) : /* @__PURE__ */ f(r, { kind: t }) : /* @__PURE__ */ f("div", {
|
|
69
69
|
className: w,
|
|
70
70
|
children: d
|
|
71
|
-
}), /* @__PURE__ */
|
|
71
|
+
}), /* @__PURE__ */ p("div", {
|
|
72
72
|
"data-kind": t,
|
|
73
73
|
"data-size": a,
|
|
74
|
-
className: e("flex text-foreground", S ? "flex-row items-center gap-3 px-3 py-2.5 text-start" : "flex-col items-center justify-center text-center", !S && (C ? "gap-3 px-4 py-6" : "min-h-[22rem] gap-5 p-8"),
|
|
75
|
-
...
|
|
74
|
+
className: e("flex text-foreground", S ? "flex-row items-center gap-3 px-3 py-2.5 text-start" : "flex-col items-center justify-center text-center", !S && (C ? "gap-3 px-4 py-6" : "min-h-[22rem] gap-5 p-8"), v),
|
|
75
|
+
...b,
|
|
76
76
|
children: [
|
|
77
77
|
j,
|
|
78
|
-
(
|
|
78
|
+
(m != null || g != null) && /* @__PURE__ */ p("div", {
|
|
79
79
|
className: e("flex flex-col", S ? "min-w-0 flex-1 gap-0.5" : "max-w-sm gap-2"),
|
|
80
|
-
children: [
|
|
81
|
-
as:
|
|
80
|
+
children: [m != null && /* @__PURE__ */ f(n, {
|
|
81
|
+
as: h ? `h${h}` : void 0,
|
|
82
82
|
variant: S ? "normal" : C ? "title-medium" : "headline-small",
|
|
83
83
|
className: e("tracking-tight text-balance", S && "font-medium"),
|
|
84
|
-
children:
|
|
85
|
-
}),
|
|
84
|
+
children: m
|
|
85
|
+
}), g != null && /* @__PURE__ */ f(n, {
|
|
86
86
|
variant: S ? "body-small" : "body-medium",
|
|
87
87
|
className: "text-pretty",
|
|
88
|
-
children:
|
|
88
|
+
children: g
|
|
89
89
|
})]
|
|
90
90
|
}),
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
y,
|
|
92
|
+
_ != null && /* @__PURE__ */ f("div", {
|
|
93
93
|
className: e("flex flex-wrap items-center gap-2", S ? "shrink-0" : "mt-1 justify-center"),
|
|
94
|
-
children:
|
|
94
|
+
children: _
|
|
95
95
|
})
|
|
96
96
|
]
|
|
97
97
|
});
|
|
@@ -100,7 +100,7 @@ function k({ kind: t, size: a = "default", illustration: l, icon: d, title: f, h
|
|
|
100
100
|
//#region lib/components/ui/feedback/empty-state/empty-state.tsx
|
|
101
101
|
function A({ kind: e = "empty", size: n = "default", illustration: r, icon: i, title: a, description: o, action: s, ...c }) {
|
|
102
102
|
let l = C(e, "empty-state"), { t: u } = t(), d = o ?? (a == null ? u(l.descriptionKey, l.description) : void 0);
|
|
103
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ f(k, {
|
|
104
104
|
"data-slot": "empty-state",
|
|
105
105
|
"data-variant": e,
|
|
106
106
|
kind: e,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { t } from "./dist-DVRQkaTK.js";
|
|
3
|
-
import {
|
|
3
|
+
import { n } from "./spinner-BpVwI1ps.js";
|
|
4
4
|
import { t as r } from "./button-group-context-CaP0X5p_.js";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
6
|
//#region lib/components/ui/actions/button-group/button-group-reset.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./field-blur-context-
|
|
1
|
+
import { t as e } from "./field-blur-context-Cwt4TuBq.js";
|
|
2
2
|
import { t } from "./useEvent-2fKq-6w8.js";
|
|
3
3
|
import n, { useCallback as r, useEffect as i, useRef as a } from "react";
|
|
4
4
|
import { jsx as o } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { l as t } from "./dist-lmHmz_bu.js";
|
|
3
|
-
import { i as n } from "./escape-owner-
|
|
3
|
+
import { i as n } from "./escape-owner-B9eCwjLw.js";
|
|
4
4
|
import * as r from "react";
|
|
5
5
|
import { createContext as i, use as a, useMemo as o } from "react";
|
|
6
6
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
package/dist/hooks.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as e } from "./i18n-provider-
|
|
2
|
-
import { a as t, i as n, o as r, r as i, s as a } from "./theme-store-
|
|
3
|
-
import { n as o, t as s } from "./use-theme-
|
|
1
|
+
import { r as e } from "./i18n-provider-DPM_ALQ4.js";
|
|
2
|
+
import { a as t, i as n, o as r, r as i, s as a } from "./theme-store-BdPp43cV.js";
|
|
3
|
+
import { n as o, t as s } from "./use-theme-BCLireTd.js";
|
|
4
4
|
import { t as c } from "./number.utils-BG_eEt5g.js";
|
|
5
|
-
import { a as l, i as u, n as d, o as f, r as p, t as m } from "./use-heading-spy-
|
|
5
|
+
import { a as l, i as u, n as d, o as f, r as p, t as m } from "./use-heading-spy-C5LXtA8Z.js";
|
|
6
6
|
import { r as h } from "./use-csp-nonce-ZKs9k-ov.js";
|
|
7
7
|
import { t as g } from "./use-mobile-BDro060N.js";
|
|
8
8
|
import { t as _ } from "./use-scroll-away-PQRFZkT2.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { o as t } from "./dist-DVRQkaTK.js";
|
|
3
3
|
import { a as n, c as r, i, l as a, s as o } from "./dist-lmHmz_bu.js";
|
|
4
|
-
import {
|
|
4
|
+
import { C as s, S as c, f as l, m as u, p as d, u as f } from "./spinner-BpVwI1ps.js";
|
|
5
5
|
import { t as p } from "./in-dialog-Vwkyp-M5.js";
|
|
6
|
-
import { o as m } from "./escape-owner-
|
|
6
|
+
import { o as m } from "./escape-owner-B9eCwjLw.js";
|
|
7
7
|
import * as h from "react";
|
|
8
8
|
import { Activity as g } from "react";
|
|
9
9
|
import { jsx as _ } from "react/jsx-runtime";
|
|
@@ -12,18 +12,18 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
12
12
|
value: t,
|
|
13
13
|
configurable: !0
|
|
14
14
|
}), b, x = "HoverCard", [S, C] = r(x, [u]), w = u(), [T, E] = S(x), D = /* @__PURE__ */ y((e) => {
|
|
15
|
-
let { __scopeHoverCard: t, children: r, open: i, defaultOpen: a, onOpenChange: o, openDelay: s = 700, closeDelay: c = 300 } = e,
|
|
15
|
+
let { __scopeHoverCard: t, children: r, open: i, defaultOpen: a, onOpenChange: o, openDelay: s = 700, closeDelay: c = 300 } = e, l = w(t), u = h.useRef(0), f = h.useRef(0), p = h.useRef(!1), m = h.useRef(!1), [g, v] = n({
|
|
16
16
|
prop: i,
|
|
17
17
|
defaultProp: a ?? !1,
|
|
18
18
|
onChange: o,
|
|
19
19
|
caller: x
|
|
20
20
|
}), y = h.useCallback(() => {
|
|
21
|
-
clearTimeout(f.current),
|
|
21
|
+
clearTimeout(f.current), u.current = window.setTimeout(() => v(!0), s);
|
|
22
22
|
}, [s, v]), b = h.useCallback(() => {
|
|
23
|
-
clearTimeout(
|
|
23
|
+
clearTimeout(u.current), !p.current && !m.current && (f.current = window.setTimeout(() => v(!1), c));
|
|
24
24
|
}, [c, v]), S = h.useCallback(() => v(!1), [v]);
|
|
25
25
|
return h.useEffect(() => () => {
|
|
26
|
-
clearTimeout(
|
|
26
|
+
clearTimeout(u.current), clearTimeout(f.current);
|
|
27
27
|
}, []), /* @__PURE__ */ _(T, {
|
|
28
28
|
scope: t,
|
|
29
29
|
open: g,
|
|
@@ -33,14 +33,14 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
33
33
|
onDismiss: S,
|
|
34
34
|
hasSelectionRef: p,
|
|
35
35
|
isPointerDownOnContentRef: m,
|
|
36
|
-
children: /* @__PURE__ */ _(
|
|
37
|
-
...
|
|
36
|
+
children: /* @__PURE__ */ _(d, {
|
|
37
|
+
...l,
|
|
38
38
|
children: r
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
41
|
}, "HoverCard"), O = "HoverCardTrigger", k = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
42
42
|
let { __scopeHoverCard: n, ...r } = e, i = E(O, n);
|
|
43
|
-
return /* @__PURE__ */ _(
|
|
43
|
+
return /* @__PURE__ */ _(f, {
|
|
44
44
|
asChild: !0,
|
|
45
45
|
...w(n),
|
|
46
46
|
children: /* @__PURE__ */ _(a.a, {
|
|
@@ -61,7 +61,7 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
61
61
|
forceMount: n,
|
|
62
62
|
children: /* @__PURE__ */ _(i, {
|
|
63
63
|
present: n || o.open,
|
|
64
|
-
children: /* @__PURE__ */ _(
|
|
64
|
+
children: /* @__PURE__ */ _(c, {
|
|
65
65
|
asChild: !0,
|
|
66
66
|
container: a,
|
|
67
67
|
children: r
|
|
@@ -81,7 +81,7 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
83
|
}, "HoverCardContent")), I = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, n) {
|
|
84
|
-
let { __scopeHoverCard: r, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside:
|
|
84
|
+
let { __scopeHoverCard: r, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: c, onInteractOutside: u, ...d } = e, f = E(P, r), p = w(r), m = h.useRef(null), g = t(n, m), [v, x] = h.useState(!1);
|
|
85
85
|
return h.useEffect(() => {
|
|
86
86
|
if (v) {
|
|
87
87
|
let e = document.body;
|
|
@@ -92,35 +92,35 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
92
92
|
}, [v]), h.useEffect(() => {
|
|
93
93
|
if (m.current) {
|
|
94
94
|
let e = /* @__PURE__ */ y(() => {
|
|
95
|
-
x(!1),
|
|
96
|
-
document.getSelection()?.toString() !== "" && (
|
|
95
|
+
x(!1), f.isPointerDownOnContentRef.current = !1, setTimeout(() => {
|
|
96
|
+
document.getSelection()?.toString() !== "" && (f.hasSelectionRef.current = !0);
|
|
97
97
|
});
|
|
98
98
|
}, "handlePointerUp");
|
|
99
99
|
return document.addEventListener("pointerup", e), () => {
|
|
100
|
-
document.removeEventListener("pointerup", e),
|
|
100
|
+
document.removeEventListener("pointerup", e), f.hasSelectionRef.current = !1, f.isPointerDownOnContentRef.current = !1;
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
}, [
|
|
103
|
+
}, [f.isPointerDownOnContentRef, f.hasSelectionRef]), h.useEffect(() => {
|
|
104
104
|
m.current && R(m.current).forEach((e) => e.setAttribute("tabindex", "-1"));
|
|
105
|
-
}), /* @__PURE__ */ _(
|
|
105
|
+
}), /* @__PURE__ */ _(s, {
|
|
106
106
|
asChild: !0,
|
|
107
107
|
disableOutsidePointerEvents: !1,
|
|
108
|
-
onInteractOutside:
|
|
108
|
+
onInteractOutside: u,
|
|
109
109
|
onEscapeKeyDown: i,
|
|
110
110
|
onPointerDownOutside: a,
|
|
111
|
-
onFocusOutside: o(
|
|
111
|
+
onFocusOutside: o(c, (e) => {
|
|
112
112
|
e.preventDefault();
|
|
113
113
|
}),
|
|
114
|
-
onDismiss:
|
|
115
|
-
children: /* @__PURE__ */ _(
|
|
114
|
+
onDismiss: f.onDismiss,
|
|
115
|
+
children: /* @__PURE__ */ _(l, {
|
|
116
116
|
...p,
|
|
117
|
-
...
|
|
118
|
-
onPointerDown: o(
|
|
119
|
-
e.currentTarget.contains(e.target) && x(!0),
|
|
117
|
+
...d,
|
|
118
|
+
onPointerDown: o(d.onPointerDown, (e) => {
|
|
119
|
+
e.currentTarget.contains(e.target) && x(!0), f.hasSelectionRef.current = !1, f.isPointerDownOnContentRef.current = !0;
|
|
120
120
|
}),
|
|
121
121
|
ref: g,
|
|
122
122
|
style: {
|
|
123
|
-
...
|
|
123
|
+
...d.style,
|
|
124
124
|
userSelect: v ? "text" : void 0,
|
|
125
125
|
WebkitUserSelect: v ? "text" : void 0,
|
|
126
126
|
"--radix-hover-card-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, r as t, t as n } from "./stored-language-
|
|
1
|
+
import { i as e, r as t, t as n } from "./stored-language-Beyj2ult.js";
|
|
2
2
|
import { createContext as r, useCallback as i, useContext as a, useMemo as o, useState as s } from "react";
|
|
3
3
|
import { jsx as c } from "react/jsx-runtime";
|
|
4
4
|
//#region lib/i18n/i18n-provider.tsx
|
package/dist/i18n.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./is-production-GLw59WU8.js";
|
|
2
|
-
import { a as t, i as n, n as r, r as i } from "./stored-language-
|
|
3
|
-
import { n as a, r as o, t as s } from "./i18n-provider-
|
|
4
|
-
import { i as c, n as l, o as u, r as d, t as f } from "./translator-
|
|
2
|
+
import { a as t, i as n, n as r, r as i } from "./stored-language-Beyj2ult.js";
|
|
3
|
+
import { n as a, r as o, t as s } from "./i18n-provider-DPM_ALQ4.js";
|
|
4
|
+
import { i as c, n as l, o as u, r as d, t as f } from "./translator-CBgIb3zP.js";
|
|
5
5
|
import { o as p, t as m } from "./merge-BCZE6HGq.js";
|
|
6
|
-
import { t as h } from "./translate-material-
|
|
7
|
-
import { t as g } from "./use-material-translation-
|
|
6
|
+
import { t as h } from "./translate-material-DEUlaL_1.js";
|
|
7
|
+
import { t as g } from "./use-material-translation-DWWeeg-B.js";
|
|
8
8
|
import { useCallback as _ } from "react";
|
|
9
9
|
//#region lib/i18n/merge-resources.ts
|
|
10
10
|
function v(e, t, n = "") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { f as t } from "./dialog-
|
|
3
|
-
import { a as n, i as r, n as i } from "./field-blur-context-
|
|
4
|
-
import { t as a } from "./icon-button-
|
|
2
|
+
import { f as t } from "./dialog-S7dLsYRZ.js";
|
|
3
|
+
import { a as n, i as r, n as i } from "./field-blur-context-Cwt4TuBq.js";
|
|
4
|
+
import { t as a } from "./icon-button-DSC2-IAG.js";
|
|
5
5
|
import { isValidElement as o, useId as s } from "react";
|
|
6
6
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
7
7
|
import { describedBy as u } from "@nxgt/material-core/described-by";
|