@nxgt/material 3.60.0 → 3.63.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 +44 -0
- package/README.md +3 -2
- package/dist/alert-dialog-RHm6WtQj.js +189 -0
- package/dist/{async-slice-HJY_VJjD.js → async-slice-DmX59NyA.js} +3 -4
- package/dist/{button-7BuUCGRm.js → button-DfS_amfQ.js} +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-kQOrHlDX.js → chip-Cbndukko.js} +2 -2
- package/dist/{code-editor-Ckc9TTCM.js → code-editor-B0tN8Ha_.js} +11 -11
- package/dist/code-editor.js +54 -37
- package/dist/{code-language-items-rCPB0Xee.js → code-language-items-andgHKrM.js} +2 -2
- package/dist/components/ui/layout/sidebar/sidebar-tokens.css +13 -1
- package/dist/{components-BSM-h5IQ.js → components-Cm2doOJS.js} +13090 -12957
- package/dist/components.js +28 -26
- package/dist/dialog-Bd7Hid2L.js +219 -0
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-CiobN1wi.js → dropdown-menu-_SyVmSuy.js} +1 -1
- package/dist/editor.js +707 -706
- package/dist/{empty-state-DA517HAb.js → empty-state-D-2ZMXXJ.js} +2 -2
- package/dist/escape-owner-DpaP0lm1.js +19 -0
- package/dist/{field-blur-DdvY0NQQ.js → field-blur-DyOByjzw.js} +1 -1
- package/dist/{field-blur-context-DbJQZkEB.js → field-blur-context-DPe5_Nv5.js} +1 -1
- package/dist/hooks-a7_exKWS.js +329 -0
- package/dist/hooks.js +8 -102
- package/dist/{hover-card-DPs9huSs.js → hover-card-D_0smKBQ.js} +2 -2
- package/dist/i18n.js +8 -10
- package/dist/{icon-badge-C646JTOI.js → icon-badge-CBCU3ySF.js} +14 -14
- package/dist/{icon-button-DvP0Gy3j.js → icon-button-hKHsWTAt.js} +1 -1
- package/dist/illustrations-game.js +2 -0
- package/dist/lib/components/ui/display/list-tile/list-tile.d.ts +6 -0
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-classes.d.ts +3 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-line.d.ts +1 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-toggle.d.ts +1 -1
- package/dist/lib/components/ui/feedback/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/unsaved-dialog/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/unsaved-dialog/unsaved-dialog.d.ts +20 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/textarea-field/textarea-footer.d.ts +2 -1
- package/dist/lib/components/ui/layout/app-shell/activity-layout.types.d.ts +6 -3
- package/dist/lib/components/ui/layout/app-shell/index.d.ts +1 -1
- package/dist/lib/components/ui/layout/app-shell/route-transition.d.ts +20 -2
- package/dist/lib/components/ui/layout/app-shell/shapes-clear-content.d.ts +2 -1
- package/dist/lib/components/ui/widgets/code-editor/configure-monaco.d.ts +2 -0
- package/dist/lib/components/ui/widgets/education/questions/index.d.ts +3 -1
- package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/partials/question-top.d.ts +6 -0
- package/dist/lib/components/ui/widgets/education/questions/question-long-text.d.ts +5 -0
- package/dist/lib/components/ui/widgets/education/questions/question-media-content.d.ts +24 -0
- package/dist/lib/components/ui/widgets/education/questions/question-media-helpers.d.ts +11 -0
- package/dist/lib/components/ui/widgets/education/questions/question-media-view.d.ts +18 -0
- package/dist/lib/components/ui/widgets/education/questions/question-media-view.types.d.ts +32 -0
- package/dist/lib/components/ui/widgets/education/questions/question-options.d.ts +2 -2
- package/dist/lib/components/ui/widgets/education/questions/question-text.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/types.d.ts +38 -1
- package/dist/lib/components/ui/widgets/education/questions/use-reload-focus.d.ts +13 -0
- package/dist/lib/hooks/drafts-store.d.ts +4 -0
- package/dist/lib/hooks/index.d.ts +4 -0
- package/dist/lib/hooks/unsaved-guard-rules.d.ts +30 -0
- package/dist/lib/hooks/use-drafts.d.ts +75 -0
- package/dist/lib/hooks/use-react-router-block.d.ts +11 -0
- package/dist/lib/hooks/use-unsaved-guard/guard-core.d.ts +30 -0
- package/dist/lib/hooks/use-unsaved-guard/index.d.ts +3 -0
- package/dist/lib/hooks/use-unsaved-guard/types.d.ts +63 -0
- package/dist/lib/hooks/use-unsaved-guard/use-discard-guard.d.ts +15 -0
- package/dist/lib/hooks/use-unsaved-guard/use-unsaved-guard.d.ts +19 -0
- package/dist/lib/i18n/resources/en/en.d.ts +20 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +21 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +20 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +21 -1
- package/dist/lib/i18n/resources/resources.d.ts +40 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/illustrations-game/index.d.ts +17 -0
- package/dist/lib.js +1 -1
- package/dist/main.js +42 -43
- package/dist/map.js +63 -63
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +1 -2
- package/dist/{public-BYsrhyPW.js → public-D8JGp3PH.js} +823 -822
- package/dist/{rich-code-block-WJxDWPPY.js → rich-code-block-0R3bidsM.js} +5 -5
- package/dist/{sortable-provider-oPjlhlZo.js → sortable-provider-B75v53sB.js} +2 -2
- package/dist/{spinner-C5lObWXT.js → spinner-CAnpF3RK.js} +1 -1
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-CPEq5JG-.js → theme-toggle-pQ5F602V.js} +1 -1
- package/dist/{toolbar-items-ByvXcMHm.js → toolbar-items-_ezD5B0r.js} +4 -4
- package/dist/translate-material-CvZK8_S6.js +96 -0
- package/dist/{stored-language-B-tiWZU2.js → translator-Caf-d96e.js} +2497 -8
- package/dist/{escape-owner-r57kuPjn.js → typography-CEK19bj8.js} +17 -34
- package/dist/{use-chat-composer-CzOVaIed.js → use-chat-composer-Dpvi_-CR.js} +5164 -5338
- package/dist/{use-heading-spy-BOtygPFu.js → use-heading-spy-mmcyEGmm.js} +186 -71
- package/dist/{use-material-translation-B5j3jZs7.js → use-material-translation-C_1cWRzW.js} +1 -2
- package/dist/use-return-focus-1ZIchrBM.js +269 -0
- package/docs/components/data-display.md +1 -0
- package/docs/components/feedback-and-status.md +23 -0
- package/docs/components/navigation-and-layout.md +5 -4
- package/docs/components/rich-widgets.md +73 -1
- package/docs/guides/app-shell.md +17 -0
- package/docs/guides/code-editor.md +8 -0
- package/docs/guides/csp.md +4 -0
- package/docs/guides/helpers.md +120 -0
- package/docs/guides/icon-motifs.md +3 -1
- package/docs/guides/illustrations.md +33 -1
- package/docs/guides/migrating-to-3.md +4 -2
- package/docs/guides/theming.md +13 -3
- package/docs/previews/feedback-status-illustration-game.webp +0 -0
- package/docs/previews/feedback-status-unsaveddialog.webp +0 -0
- package/docs/roadmap.md +1 -1
- package/docs/troubleshooting.md +9 -6
- package/lib/components/ui/layout/sidebar/sidebar-tokens.css +13 -1
- package/package.json +7 -2
- package/dist/dialog-yfPkLqUQ.js +0 -482
- package/dist/i18n-provider-BehR6cU7.js +0 -79
- package/dist/translate-material-tUaLZUmT.js +0 -20
- package/dist/translator-B9XjUDRu.js +0 -2451
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { t } from "./dist-DVRQkaTK.js";
|
|
3
|
-
import { n } from "./spinner-
|
|
4
|
-
import {
|
|
5
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { n } from "./spinner-CAnpF3RK.js";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
5
|
//#region lib/components/ui/primitives/typography/typography.variants.ts
|
|
7
|
-
var
|
|
6
|
+
var i = [
|
|
8
7
|
"display",
|
|
9
8
|
"headline",
|
|
10
9
|
"title",
|
|
11
10
|
"body",
|
|
12
11
|
"label"
|
|
13
|
-
],
|
|
12
|
+
], a = [
|
|
14
13
|
"lg",
|
|
15
14
|
"md",
|
|
16
15
|
"sm"
|
|
17
|
-
],
|
|
16
|
+
], o = i.flatMap((e) => a.map((t) => `${e}-${t}`)), s = {
|
|
18
17
|
normal: "body-md",
|
|
19
18
|
"huge-larger": "display-lg-em",
|
|
20
19
|
"huge-large": "display-lg-em",
|
|
@@ -30,7 +29,7 @@ var a = [
|
|
|
30
29
|
"body-medium": "body-md",
|
|
31
30
|
"body-small": "body-sm",
|
|
32
31
|
caption: "label-sm"
|
|
33
|
-
},
|
|
32
|
+
}, c = {
|
|
34
33
|
"display-lg": ["text-display-lg", "text-display-lg-em"],
|
|
35
34
|
"display-md": ["text-display-md", "text-display-md-em"],
|
|
36
35
|
"display-sm": ["text-display-sm", "text-display-sm-em"],
|
|
@@ -46,20 +45,20 @@ var a = [
|
|
|
46
45
|
"label-lg": ["text-label-lg", "text-label-lg-em"],
|
|
47
46
|
"label-md": ["text-label-md", "text-label-md-em"],
|
|
48
47
|
"label-sm": ["text-label-sm", "text-label-sm-em"]
|
|
49
|
-
},
|
|
50
|
-
let [n, r] =
|
|
48
|
+
}, l = [...o.map((e) => [e, e]), ...Object.entries(s).map(([e, t]) => [e, t.replace(/-em$/, "")])].flatMap(([e, t]) => {
|
|
49
|
+
let [n, r] = c[t];
|
|
51
50
|
return [{
|
|
52
51
|
variant: e,
|
|
53
52
|
emphasized: !1,
|
|
54
|
-
class: e in
|
|
53
|
+
class: e in s && s[e].endsWith("-em") ? r : n
|
|
55
54
|
}, {
|
|
56
55
|
variant: e,
|
|
57
56
|
emphasized: !0,
|
|
58
57
|
class: r
|
|
59
58
|
}];
|
|
60
|
-
}),
|
|
59
|
+
}), u = n("", {
|
|
61
60
|
variants: {
|
|
62
|
-
variant: Object.fromEntries([...
|
|
61
|
+
variant: Object.fromEntries([...o, ...Object.keys(s)].map((e) => [e, ""])),
|
|
63
62
|
emphasized: {
|
|
64
63
|
true: "",
|
|
65
64
|
false: ""
|
|
@@ -71,7 +70,7 @@ var a = [
|
|
|
71
70
|
error: "text-error-text"
|
|
72
71
|
}
|
|
73
72
|
},
|
|
74
|
-
compoundVariants: [...
|
|
73
|
+
compoundVariants: [...l, {
|
|
75
74
|
variant: "caption",
|
|
76
75
|
tone: "default",
|
|
77
76
|
class: "text-muted-foreground"
|
|
@@ -84,11 +83,11 @@ var a = [
|
|
|
84
83
|
});
|
|
85
84
|
//#endregion
|
|
86
85
|
//#region lib/components/ui/primitives/typography/typography.tsx
|
|
87
|
-
function
|
|
88
|
-
return /* @__PURE__ */
|
|
86
|
+
function d({ className: n, variant: i, emphasized: a, tone: o, as: s = "div", asChild: c = !1, ...l }) {
|
|
87
|
+
return /* @__PURE__ */ r(c ? t : s, {
|
|
89
88
|
"data-test": "typography",
|
|
90
|
-
className: e(
|
|
91
|
-
variant:
|
|
89
|
+
className: e(u({
|
|
90
|
+
variant: i ?? "body-md",
|
|
92
91
|
emphasized: a ?? !1,
|
|
93
92
|
tone: o ?? "default",
|
|
94
93
|
className: n
|
|
@@ -97,20 +96,4 @@ function f({ className: n, variant: r, emphasized: a, tone: o, as: s = "div", as
|
|
|
97
96
|
});
|
|
98
97
|
}
|
|
99
98
|
//#endregion
|
|
100
|
-
|
|
101
|
-
function p({ children: e }) {
|
|
102
|
-
return /* @__PURE__ */ i(r, {
|
|
103
|
-
value: void 0,
|
|
104
|
-
children: e
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region lib/components/ui/overlays/dialog/escape-owner.ts
|
|
109
|
-
var m = /* @__PURE__ */ new WeakSet(), h = "data-escape-owner";
|
|
110
|
-
function g(e, t) {
|
|
111
|
-
let n = e.target?.closest?.(`[${h}]`);
|
|
112
|
-
!n || n === t || !t?.contains(n) || (m.add(e), e.preventDefault());
|
|
113
|
-
}
|
|
114
|
-
var _ = (e) => m.has(e);
|
|
115
|
-
//#endregion
|
|
116
|
-
export { f as a, p as i, _ as n, d as o, g as r, h as t };
|
|
99
|
+
export { u as n, d as t };
|