@nxgt/material 3.101.0 → 3.103.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 +38 -0
- package/README.md +32 -2
- package/dist/{alert-dialog-DYzxchiS.js → alert-dialog-NFyAiSqc.js} +1 -1
- package/dist/{async-slice-drJyPvuM.js → async-slice-D35bX79S.js} +1 -1
- package/dist/{bubble-input-CQwVSoU3.js → bubble-input-BxI1WmNs.js} +17 -5
- package/dist/{button-GeIsUekU.js → button-Be7GZzF9.js} +2 -2
- package/dist/{calculator-BS4PAm6l.js → calculator-BGy1Q7rn.js} +261 -460
- package/dist/calculator-field.js +7 -7
- package/dist/{calculator-segment-CEdwE24M.js → calculator-segment-uixk6lBg.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-BdEtFQ85.js → chip-3rWebZEM.js} +2 -2
- package/dist/{code-editor-BByXZOGy.js → code-editor-BqSVMfy-.js} +178 -177
- package/dist/code-editor.js +5 -5
- package/dist/{code-language-items-CSZX5zxD.js → code-language-items-Cf2LJVg2.js} +14 -5
- package/dist/components/ui/actions/action-card/action-card-tile.css +47 -0
- package/dist/components/ui/display/code/code-moonlight.css +10 -10
- package/dist/{components-DQ4MljCr.js → components-D2liJ9Yu.js} +17725 -17287
- package/dist/components.js +38 -37
- package/dist/{conversion-variant-DTQqAyDt.js → conversion-variant-clFZ6ZMJ.js} +5 -5
- package/dist/{currency-field-Dnju7ss2.js → currency-field-CBFEVNM1.js} +24 -23
- package/dist/{dialog-5_2__tu8.js → dialog-CrIIINTk.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-FdGC5kIP.js → dropdown-menu-BnfLWu8n.js} +1 -1
- package/dist/editor.js +9 -9
- package/dist/{empty-state-BoepPG5v.js → empty-state-CuUaCPY7.js} +1 -1
- package/dist/{field-blur-DkiZOVNV.js → field-blur-DMJwPLsg.js} +9 -9
- package/dist/field-blur-context-3rKussBQ.js +29 -0
- package/dist/{financial-variant-BhqJp5C-.js → financial-variant-BY_VCUuk.js} +5 -5
- package/dist/{hooks-DjcbJZiO.js → hooks-hHoZbL-4.js} +106 -61
- package/dist/hooks.js +3 -3
- package/dist/{hover-card-CmHJeBeY.js → hover-card-Do2-uzlF.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-LGUPQh_c.js → icon-badge-CHaVNEmb.js} +1 -1
- package/dist/{icon-button-BSVpO1jP.js → icon-button-BIAubLeJ.js} +1 -1
- package/dist/key-layout-D2goCDkD.js +31 -0
- package/dist/keypad.js +551 -0
- package/dist/label-DR-zZyGQ.js +47 -0
- package/dist/lib/components/ui/display/code/code-block-parts.d.ts +1 -1
- package/dist/lib/components/ui/display/code/code-block.d.ts +4 -1
- package/dist/lib/components/ui/display/code/languages.d.ts +2 -0
- package/dist/lib/components/ui/display/code/moonlight-tokens.d.ts +10 -10
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog-props.d.ts +73 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog-rules.d.ts +12 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog.d.ts +5 -61
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-footer.d.ts +12 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-phrase.d.ts +26 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/use-confirm-action.d.ts +1 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/layout/index.d.ts +1 -0
- package/dist/lib/components/ui/layout/panel-card/index.d.ts +1 -0
- package/dist/lib/components/ui/layout/panel-card/panel-card.d.ts +21 -0
- package/dist/lib/components/ui/selection/index.d.ts +1 -0
- package/dist/lib/components/ui/selection/status-menu/index.d.ts +3 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-confirm.d.ts +12 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-icon.d.ts +6 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-items.d.ts +18 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-menu-list.d.ts +14 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-sheet-row.d.ts +11 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-sheet.d.ts +21 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-trigger.d.ts +18 -0
- package/dist/lib/components/ui/selection/status-menu/status-menu-data.d.ts +12 -0
- package/dist/lib/components/ui/selection/status-menu/status-menu-form-field.d.ts +20 -0
- package/dist/lib/components/ui/selection/status-menu/status-menu.d.ts +13 -0
- package/dist/lib/components/ui/selection/status-menu/types.d.ts +76 -0
- package/dist/lib/components/ui/selection/status-menu/use-status-change.d.ts +18 -0
- package/dist/lib/components/ui/selection/status-menu/use-status-menu.d.ts +30 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-keypad.d.ts +1 -5
- package/dist/lib/components/ui/widgets/calculator/variants/key-layout.d.ts +3 -49
- package/dist/lib/components/ui/widgets/keypad/cash-model.d.ts +16 -0
- package/dist/lib/components/ui/widgets/keypad/index.d.ts +5 -0
- package/dist/lib/components/ui/widgets/keypad/key-layout.d.ts +56 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-binding.d.ts +32 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-cash.d.ts +28 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-display.d.ts +11 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-entry.d.ts +39 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-grid.d.ts +27 -0
- package/dist/lib/components/ui/widgets/{calculator/partials/calculator-key.d.ts → keypad/keypad-key.d.ts} +6 -3
- package/dist/lib/components/ui/widgets/keypad/keypad-layout.d.ts +19 -0
- package/dist/lib/components/ui/widgets/{calculator/partials → keypad}/keypad-navigation.d.ts +1 -1
- package/dist/lib/components/ui/widgets/keypad/keypad.d.ts +9 -0
- package/dist/lib/components/ui/widgets/keypad/keypad.types.d.ts +91 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-cash.d.ts +14 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-keyboard.d.ts +7 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-number.d.ts +10 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-quantity.d.ts +16 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-value.d.ts +17 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad.d.ts +23 -0
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/use-barcode-scanner.d.ts +39 -0
- package/dist/lib/i18n/resources/en/en.d.ts +25 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +26 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +25 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +26 -1
- package/dist/lib/i18n/resources/resources.d.ts +50 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/keypad/index.d.ts +20 -0
- package/dist/lib.js +1 -1
- package/dist/main.js +54 -53
- package/dist/map.js +9 -9
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{percent-field-DGlU_xii.js → percent-field-DU8eIMD3.js} +15 -14
- package/dist/{picker-surface-CGhqNR8a.js → picker-surface-XmA--JVI.js} +4 -4
- package/dist/{popover-ZxL7ktKk.js → popover-D8iHiAbl.js} +1 -1
- package/dist/{pos-types-BQ0QpYMp.js → pos-types-BEAY27Rm.js} +1 -1
- package/dist/{pos-variant-CKy8h_5i.js → pos-variant-ClGI92Lt.js} +25 -25
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-CbHstE28.js → programmer-variant-Boq2O8hB.js} +30 -30
- package/dist/{public-D-tdOz4b.js → public-DOrXKmcL.js} +9 -9
- package/dist/{rich-code-block-CTPj1LuD.js → rich-code-block-Djj2XE_u.js} +18 -18
- package/dist/{scientific-variant-B8U9h3II.js → scientific-variant-BzF_aMQP.js} +8 -8
- package/dist/{sortable-provider-CSoWE7Ce.js → sortable-provider-DCZjsIIH.js} +2 -2
- package/dist/{spinner-ffuwBXHl.js → spinner-Cg0y_E_K.js} +1 -1
- package/dist/standard-layout-DTr9yy8Z.js +48 -0
- package/dist/{tabs-JgRq6ZJx.js → tabs-DpessV5s.js} +1 -1
- package/dist/{text-field-DURkIP-v.js → text-field-Dxk9lAKM.js} +16 -15
- package/dist/theme-picker.js +13 -13
- package/dist/{theme-toggle-n_Zg7JAA.js → theme-toggle-B6Jl5Kfn.js} +1 -1
- package/dist/{toolbar-items-IANZdcw4.js → toolbar-items-Cs1XrZsH.js} +4 -4
- package/dist/{translate-material-CMHUH5Ha.js → translate-material-Du0j0t97.js} +1 -1
- package/dist/{translator-9zA-Um3W.js → translator-BVs4n0Fz.js} +52 -2
- package/dist/use-calculator-keyboard-BZ1CA4Ut.js +222 -0
- package/dist/{use-chat-composer-BoIN7RCA.js → use-chat-composer-B4m3OEm1.js} +241 -240
- package/dist/{use-heading-spy-Ciw9GBHL.js → use-heading-spy-CO3_AtY9.js} +235 -154
- package/dist/{use-material-translation-CLNaMhUf.js → use-material-translation-uNc1FyC8.js} +1 -1
- package/dist/{use-return-focus-DWhbTGVe.js → use-return-focus-AfLRrUm-.js} +1 -1
- package/docs/README.md +1 -0
- package/docs/components/README.md +1 -0
- package/docs/components/buttons-and-actions.md +34 -2
- package/docs/components/data-display.md +4 -1
- package/docs/components/feedback-and-status.md +20 -0
- package/docs/components/navigation-and-layout.md +28 -0
- package/docs/components/rich-widgets.md +28 -0
- package/docs/components/selection-and-choice.md +120 -0
- package/docs/guides/calculator.md +1 -1
- package/docs/guides/cards-and-tiles.md +21 -24
- package/docs/guides/forms.md +1 -0
- package/docs/guides/helpers.md +49 -0
- package/docs/guides/keypad.md +225 -0
- package/docs/previews/data-display-codeblock.webp +0 -0
- package/docs/previews/data-display-codegroup.webp +0 -0
- package/docs/previews/data-display-jsonviewer.webp +0 -0
- package/docs/previews/navigation-layout-panelcard.webp +0 -0
- package/docs/previews/rich-widgets-keypad.webp +0 -0
- package/docs/previews/selection-choice-statusmenu.webp +0 -0
- package/docs/roadmap.md +21 -0
- package/docs/troubleshooting.md +63 -0
- package/lib/components/ui/actions/action-card/action-card-tile.css +47 -0
- package/lib/components/ui/display/code/code-moonlight.css +10 -10
- package/lib/components/ui/widgets/calculator/calculator.css +87 -0
- package/package.json +7 -2
- package/dist/field-blur-context-BLGgf_3z.js +0 -73
- package/dist/key-layout-cR79xfGE.js +0 -38
- package/dist/standard-layout-BuSRr3TY.js +0 -40
package/dist/code-editor.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { t } from "./dist-DWZXlCZR.js";
|
|
3
|
-
import { o as n, r, s as i, t as a } from "./toolbar-items-
|
|
4
|
-
import { t as o } from "./use-material-translation-
|
|
5
|
-
import { i as s, n as c,
|
|
3
|
+
import { o as n, r, s as i, t as a } from "./toolbar-items-Cs1XrZsH.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-uNc1FyC8.js";
|
|
5
|
+
import { i as s, n as c, s as l } from "./code-language-items-Cf2LJVg2.js";
|
|
6
6
|
import { t as u } from "./skeleton-DSdtr2qc.js";
|
|
7
7
|
import { t as d } from "./live-status-BGPaN8r8.js";
|
|
8
8
|
import { t as f } from "./use-mobile-BDro060N.js";
|
|
9
9
|
import { t as p } from "./react-node-text-Crkpfpco.js";
|
|
10
|
-
import { a as m, c as h, d as g, f as _, i as v, l as y, m as b, o as x, p as S, r as C, s as w, t as T, u as E } from "./code-editor-
|
|
11
|
-
import { r as D, t as O } from "./field-blur-
|
|
10
|
+
import { a as m, c as h, d as g, f as _, i as v, l as y, m as b, o as x, p as S, r as C, s as w, t as T, u as E } from "./code-editor-BqSVMfy-.js";
|
|
11
|
+
import { r as D, t as O } from "./field-blur-DMJwPLsg.js";
|
|
12
12
|
import { useEffect as k, useRef as A, useState as j } from "react";
|
|
13
13
|
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
14
14
|
import { getCspNonce as F } from "@nxgt/material-core/csp-nonce";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e, f as t } from "./dropdown-menu-
|
|
2
|
-
import { t as n } from "./use-material-translation-
|
|
1
|
+
import { d as e, f as t } from "./dropdown-menu-BnfLWu8n.js";
|
|
2
|
+
import { t as n } from "./use-material-translation-uNc1FyC8.js";
|
|
3
3
|
import { t as r } from "./copy-to-clipboard-Be5Ffvs_.js";
|
|
4
4
|
import { t as i } from "./live-status-BGPaN8r8.js";
|
|
5
5
|
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
@@ -115,9 +115,18 @@ function p(e) {
|
|
|
115
115
|
let t = e.toLowerCase();
|
|
116
116
|
return d.find((e) => e.id === t || e.aliases?.includes(t))?.label ?? e;
|
|
117
117
|
}
|
|
118
|
+
var m = [
|
|
119
|
+
"text",
|
|
120
|
+
"plaintext",
|
|
121
|
+
"plain",
|
|
122
|
+
"txt"
|
|
123
|
+
];
|
|
124
|
+
function h(e) {
|
|
125
|
+
return e !== void 0 && m.includes(e.toLowerCase());
|
|
126
|
+
}
|
|
118
127
|
//#endregion
|
|
119
128
|
//#region lib/components/ui/widgets/code-editor/toolbar/code-copy-status.tsx
|
|
120
|
-
function
|
|
129
|
+
function g({ slot: e, status: t }) {
|
|
121
130
|
let { t: r } = n();
|
|
122
131
|
return /* @__PURE__ */ c(i, {
|
|
123
132
|
slot: e,
|
|
@@ -126,7 +135,7 @@ function m({ slot: e, status: t }) {
|
|
|
126
135
|
}
|
|
127
136
|
//#endregion
|
|
128
137
|
//#region lib/components/ui/widgets/code-editor/toolbar/code-language-items.tsx
|
|
129
|
-
function
|
|
138
|
+
function _({ language: n, onChange: r }) {
|
|
130
139
|
return /* @__PURE__ */ c(e, {
|
|
131
140
|
value: n ? f(n) : "",
|
|
132
141
|
onValueChange: r,
|
|
@@ -137,4 +146,4 @@ function h({ language: n, onChange: r }) {
|
|
|
137
146
|
});
|
|
138
147
|
}
|
|
139
148
|
//#endregion
|
|
140
|
-
export {
|
|
149
|
+
export { h as a, p as i, g as n, f as o, d as r, u as s, _ as t };
|
|
@@ -133,6 +133,53 @@
|
|
|
133
133
|
align-self: start;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
/* A tile with an action wraps instead of overflowing: a flex line holds the
|
|
137
|
+
* icon, the title and the action; the title may shrink to --ac-title-min
|
|
138
|
+
* (4.5rem), so an action that does not fit beside it (a StatusMenu chip in
|
|
139
|
+
* a narrow tile) drops under the title, where an icon button still fits
|
|
140
|
+
* beside it. The status, description, meta and footer are full-width lines.
|
|
141
|
+
* No query, no measuring. */
|
|
142
|
+
.nxgt-action-card[data-size="tile"][data-has-action] {
|
|
143
|
+
--ac-icon-offset: 0px;
|
|
144
|
+
display: flex;
|
|
145
|
+
flex-wrap: wrap;
|
|
146
|
+
align-items: flex-start;
|
|
147
|
+
align-content: flex-start;
|
|
148
|
+
}
|
|
149
|
+
.nxgt-action-card[data-size="tile"][data-has-action][data-icon] {
|
|
150
|
+
--ac-icon-offset: 44px;
|
|
151
|
+
}
|
|
152
|
+
.nxgt-action-card[data-size="tile"][data-has-action]
|
|
153
|
+
> .nxgt-action-card-icon {
|
|
154
|
+
flex: none;
|
|
155
|
+
}
|
|
156
|
+
.nxgt-action-card[data-size="tile"][data-has-action] .nxgt-action-card-title {
|
|
157
|
+
order: 1;
|
|
158
|
+
flex: 1 1 var(--ac-title-min, 4.5rem);
|
|
159
|
+
}
|
|
160
|
+
.nxgt-action-card[data-size="tile"][data-has-action]
|
|
161
|
+
> .nxgt-action-card-action {
|
|
162
|
+
order: 2;
|
|
163
|
+
flex: none;
|
|
164
|
+
max-inline-size: 100%;
|
|
165
|
+
}
|
|
166
|
+
.nxgt-action-card[data-size="tile"][data-has-action]
|
|
167
|
+
> .nxgt-action-card-indicator {
|
|
168
|
+
order: 3;
|
|
169
|
+
flex: none;
|
|
170
|
+
margin-inline-start: auto;
|
|
171
|
+
}
|
|
172
|
+
.nxgt-action-card[data-size="tile"][data-has-action] .nxgt-action-card-status,
|
|
173
|
+
.nxgt-action-card[data-size="tile"][data-has-action]
|
|
174
|
+
.nxgt-action-card-description,
|
|
175
|
+
.nxgt-action-card[data-size="tile"][data-has-action] .nxgt-action-card-meta,
|
|
176
|
+
.nxgt-action-card[data-size="tile"][data-has-action]
|
|
177
|
+
.nxgt-action-card-footer {
|
|
178
|
+
order: 4;
|
|
179
|
+
flex: 0 0 calc(100% - var(--ac-icon-offset));
|
|
180
|
+
margin-inline-start: var(--ac-icon-offset);
|
|
181
|
+
}
|
|
182
|
+
|
|
136
183
|
@media (forced-colors: active) {
|
|
137
184
|
.nxgt-action-card:has(.nxgt-action-card-button:focus-visible) {
|
|
138
185
|
outline: 3px solid CanvasText;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[data-slot="code-block"][data-scheme="dark"] {
|
|
5
5
|
--code-bg: #222436;
|
|
6
6
|
--code-fg: #c8d3f5;
|
|
7
|
-
--code-comment: #
|
|
7
|
+
--code-comment: #8f9ad6;
|
|
8
8
|
--code-blue: #82aaff;
|
|
9
9
|
--code-cyan: #86e1fc;
|
|
10
10
|
--code-green: #c3e88d;
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
[data-slot="code-block"][data-scheme="light"] {
|
|
20
20
|
--code-bg: #f5f7ff;
|
|
21
21
|
--code-fg: #383a51;
|
|
22
|
-
--code-comment: #
|
|
23
|
-
--code-blue: #
|
|
24
|
-
--code-cyan: #
|
|
25
|
-
--code-green: #
|
|
26
|
-
--code-orange: #
|
|
27
|
-
--code-yellow: #
|
|
28
|
-
--code-red: #
|
|
29
|
-
--code-magenta: #
|
|
30
|
-
--code-pink: #
|
|
22
|
+
--code-comment: #4356ba;
|
|
23
|
+
--code-blue: #2a56ca;
|
|
24
|
+
--code-cyan: #08658a;
|
|
25
|
+
--code-green: #2d6a4c;
|
|
26
|
+
--code-orange: #a33f1c;
|
|
27
|
+
--code-yellow: #765a00;
|
|
28
|
+
--code-red: #ac3337;
|
|
29
|
+
--code-magenta: #5d36f3;
|
|
30
|
+
--code-pink: #924080;
|
|
31
31
|
--code-selection: #d4daf0;
|
|
32
32
|
}
|
|
33
33
|
|