@nxgt/material 3.88.1 → 3.90.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 +8 -5
- package/dist/{alert-dialog-CEGs7LMN.js → alert-dialog-BFk4ye-3.js} +1 -1
- package/dist/{async-slice-CR0M95Jq.js → async-slice-gGyfyUw2.js} +1 -1
- package/dist/{button-DuTNpo28.js → button-C5OEq9bi.js} +1 -1
- package/dist/{calculator-DsGk_fCw.js → calculator-Dg_L6d3R.js} +16 -16
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-segment-DMFptsDf.js → calculator-segment-CvAaDqKf.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-C-RAjar5.js → chip-DOxFA4BI.js} +2 -2
- package/dist/{code-editor-DApeIOZ3.js → code-editor-tiAjhXW-.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-CGtYfc1l.js → code-language-items-CcdzQvLT.js} +2 -2
- package/dist/{components-DiEY0nrG.js → components-HQy9UW9D.js} +19870 -19548
- package/dist/components.js +38 -37
- package/dist/{conversion-variant-DfQiOwYC.js → conversion-variant-4gCdFWV-.js} +3 -3
- package/dist/currency-field-CIqe7Wg4.js +289 -0
- package/dist/{dialog-Bul68q8u.js → dialog-d6Kdf5wc.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-xUUE5X6T.js → dropdown-menu-DO5kUvof.js} +1 -1
- package/dist/editor.js +139 -139
- package/dist/{empty-state-D7ofGDU_.js → empty-state-DQnICuun.js} +1 -1
- package/dist/{financial-variant-CYgRZzKT.js → financial-variant-D80C1hVD.js} +14 -14
- package/dist/{hooks-CpvvZCs7.js → hooks-C-yLDF39.js} +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-CZLFQwZv.js → hover-card-DU3TAME4.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-0Xo9q7Ey.js → icon-badge-BGczZ4Hc.js} +1 -1
- package/dist/{icon-button-DE1EcO2-.js → icon-button-D0xjBCst.js} +1 -1
- package/dist/input-group-CSlXMFxu.js +70 -0
- package/dist/lib/components/ui/actions/back-link/back-link.d.ts +10 -2
- package/dist/lib/components/ui/collections/data-grid/grid-cell-tone.d.ts +12 -0
- package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-access.d.ts +4 -3
- package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-flags.d.ts +12 -0
- package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-value.d.ts +4 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-cell-content.d.ts +11 -0
- package/dist/lib/components/ui/collections/data-table/table-meta.d.ts +50 -2
- package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +1 -0
- package/dist/lib/components/ui/collections/list-pane/list-pane-item.d.ts +3 -1
- package/dist/lib/components/ui/collections/list-pane/partials/list-pane-item-content.d.ts +2 -1
- package/dist/lib/components/ui/dates/age-field/age-field.d.ts +8 -0
- package/dist/lib/components/ui/dates/age-field/age-form-field.d.ts +8 -0
- package/dist/lib/components/ui/dates/age-field/age-reading.d.ts +11 -0
- package/dist/lib/components/ui/dates/age-field/age-value.d.ts +9 -0
- package/dist/lib/components/ui/dates/age-field/index.d.ts +4 -0
- package/dist/lib/components/ui/dates/age-field/types.d.ts +40 -0
- package/dist/lib/components/ui/dates/index.d.ts +1 -0
- package/dist/lib/components/ui/display/badge/badge.d.ts +4 -1
- package/dist/lib/components/ui/display/entity-header/entity-header.d.ts +8 -1
- package/dist/lib/components/ui/display/index.d.ts +2 -0
- package/dist/lib/components/ui/display/person-cell/index.d.ts +1 -0
- package/dist/lib/components/ui/display/person-cell/person-cell.d.ts +23 -0
- package/dist/lib/components/ui/display/tone-value/index.d.ts +2 -0
- package/dist/lib/components/ui/display/tone-value/tone-value.d.ts +23 -0
- package/dist/lib/components/ui/feedback/error-state/partials/error-state-actions.d.ts +6 -1
- package/dist/lib/components/ui/feedback/page-load-failed/page-load-failed.d.ts +8 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/number-field/number-control.d.ts +2 -2
- package/dist/lib/components/ui/fields/switch/partials/switch-row.d.ts +4 -2
- package/dist/lib/components/ui/fields/switch/switch.d.ts +7 -1
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside-parts.d.ts +68 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside-toggle.d.ts +22 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside.d.ts +5 -2
- package/dist/lib/components/ui/layout/app-shell/activity-content-aside.types.d.ts +13 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content.d.ts +3 -2
- package/dist/lib/components/ui/layout/app-shell/app-shell.utils.d.ts +3 -1
- package/dist/lib/components/ui/layout/app-shell/app-sidebar-entries.d.ts +5 -2
- package/dist/lib/components/ui/layout/app-shell/app-sidebar-icon-item.d.ts +2 -1
- package/dist/lib/components/ui/layout/app-shell/app-sidebar.d.ts +3 -1
- package/dist/lib/components/ui/layout/app-shell/types.d.ts +14 -5
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-list.d.ts +8 -2
- package/dist/lib/components/ui/primitives/tabs/tabs-nav.d.ts +5 -1
- package/dist/lib/components/ui/primitives/tabs/tabs-overflow-classes.d.ts +3 -0
- package/dist/lib/components/ui/selection/sortable-list/index.d.ts +1 -1
- package/dist/lib/components/ui/selection/sortable-list/sortable-list-context.d.ts +3 -1
- package/dist/lib/components/ui/selection/sortable-list/sortable-list.d.ts +6 -2
- package/dist/lib/components/ui/selection/sortable-list/types.d.ts +1 -0
- package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-labels.d.ts +3 -0
- package/dist/lib/i18n/resources/en/en.d.ts +11 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +12 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +11 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +12 -1
- package/dist/lib/i18n/resources/resources.d.ts +22 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +54 -53
- package/dist/map.js +7 -7
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{percent-field-BFwxazf1.js → percent-field-DyJ2yOH4.js} +1 -1
- package/dist/{picker-surface-DkfTv_ft.js → picker-surface-CnlOKQ3D.js} +4 -4
- package/dist/{popover-BM6xApJd.js → popover-BevReSHi.js} +1 -1
- package/dist/{pos-types-CpTpT4vE.js → pos-types-BrZBX0Zg.js} +1 -1
- package/dist/{pos-variant-Bs5BUB1L.js → pos-variant-G12HCSfQ.js} +4 -4
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-B1eI1fd0.js → programmer-variant-WWLwTGRF.js} +2 -2
- package/dist/{public-CzLMnSsS.js → public-C1a6wQ6o.js} +19 -19
- package/dist/{rich-code-block-CdVtxD75.js → rich-code-block-Dh9J-VZ8.js} +5 -5
- package/dist/{scientific-variant-rfvJKxB4.js → scientific-variant-BvutlF8a.js} +2 -2
- package/dist/{sortable-provider-BopzsciJ.js → sortable-provider-BrA5tfJX.js} +2 -2
- package/dist/{spinner-DcW21pN1.js → spinner-JnLLiLIO.js} +1 -1
- package/dist/{tabs-CdoBFtWx.js → tabs-dXCZGShv.js} +63 -61
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-Ch3GkDDU.js → theme-toggle-BmcK6mXV.js} +1 -1
- package/dist/{toolbar-items-CZ1lJXZZ.js → toolbar-items-B-kMYsDT.js} +4 -4
- package/dist/{translate-material-BrYBBZ66.js → translate-material-BmpcP1p1.js} +1 -1
- package/dist/{translator-DoVsjUff.js → translator-CfoXTrZd.js} +24 -2
- package/dist/{use-chat-composer-C9DG7O1Z.js → use-chat-composer-DFD_eF-r.js} +4197 -4246
- package/dist/{use-heading-spy-kyOSe9rb.js → use-heading-spy-BcNK1qvq.js} +4 -4
- package/dist/{use-material-translation-BdrItuwY.js → use-material-translation-DoymV6IP.js} +1 -1
- package/dist/{use-return-focus-Cqzvj9R0.js → use-return-focus-CLEnhfka.js} +1 -1
- package/docs/components/README.md +2 -1
- package/docs/components/buttons-and-actions.md +10 -1
- package/docs/components/data-display.md +80 -4
- package/docs/components/data-table-filter-and-lists.md +56 -3
- package/docs/components/date-and-time.md +53 -1
- package/docs/components/feedback-and-status.md +11 -2
- package/docs/components/form-fields.md +11 -2
- package/docs/components/navigation-and-layout.md +2 -2
- package/docs/components/primitives.md +7 -0
- package/docs/components/selection-and-choice.md +4 -2
- package/docs/guides/app-shell.md +46 -11
- package/docs/guides/data-grid.md +12 -0
- package/docs/guides/forms.md +1 -0
- package/docs/guides/i18n.md +1 -1
- package/docs/previews/data-display-personcell.webp +0 -0
- package/docs/previews/data-display-tonevalue.webp +0 -0
- package/docs/previews/date-time-agefield.webp +0 -0
- package/docs/roadmap.md +23 -0
- package/package.json +2 -2
- package/dist/currency-field-cwC7cqUE.js +0 -286
package/dist/pdf-reader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "./currency-field-
|
|
1
|
+
import { r as e } from "./currency-field-CIqe7Wg4.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
//#region lib/components/ui/fields/percent-field/percent-field.tsx
|
|
4
4
|
function n({ min: n = 0, max: r = 100, step: i = 1, ...a }) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { r as t, t as n } from "./in-dialog-D61Yeaol.js";
|
|
3
|
-
import { a as r, c as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./use-return-focus-
|
|
4
|
-
import { i as p, o as m, r as h, t as g } from "./popover-
|
|
5
|
-
import { t as _ } from "./use-material-translation-
|
|
6
|
-
import { n as v, t as y } from "./icon-button-
|
|
3
|
+
import { a as r, c as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./use-return-focus-CLEnhfka.js";
|
|
4
|
+
import { i as p, o as m, r as h, t as g } from "./popover-BevReSHi.js";
|
|
5
|
+
import { t as _ } from "./use-material-translation-DoymV6IP.js";
|
|
6
|
+
import { n as v, t as y } from "./icon-button-D0xjBCst.js";
|
|
7
7
|
import { t as b } from "./use-ssr-media-query-C6M5m8sf.js";
|
|
8
8
|
import { i as x } from "./escape-owner-DpaP0lm1.js";
|
|
9
9
|
import * as S from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { o as t, r as n } from "./dist-DVRQkaTK.js";
|
|
3
3
|
import { i as r, r as i, t as a } from "./dist-DWZXlCZR.js";
|
|
4
|
-
import { S as o, d as s, f as c, l, p as u, u as d, x as f } from "./spinner-
|
|
4
|
+
import { S as o, d as s, f as c, l, p as u, u as d, x as f } from "./spinner-JnLLiLIO.js";
|
|
5
5
|
import { a as p, i as m, r as h } from "./dist-DHdUUM1w.js";
|
|
6
6
|
import { a as g, c as _, l as v, o as y, r as b, s as x, t as S } from "./in-dialog-D61Yeaol.js";
|
|
7
7
|
import { i as C } from "./escape-owner-DpaP0lm1.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-DoymV6IP.js";
|
|
2
2
|
import { n as t } from "./calculator-context-BugcKuVG.js";
|
|
3
3
|
import { t as n } from "./calculator-announce-DRd2c6Dq.js";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { t } from "./use-material-translation-
|
|
3
|
-
import { t as n } from "./icon-button-
|
|
2
|
+
import { t } from "./use-material-translation-DoymV6IP.js";
|
|
3
|
+
import { t as n } from "./icon-button-D0xjBCst.js";
|
|
4
4
|
import { n as r } from "./calculator-context-BugcKuVG.js";
|
|
5
|
-
import { a as i, n as a, r as o, t as s } from "./pos-types-
|
|
5
|
+
import { a as i, n as a, r as o, t as s } from "./pos-types-BrZBX0Zg.js";
|
|
6
6
|
import { i as c, n as l, s as u } from "./key-layout-cR79xfGE.js";
|
|
7
7
|
import { n as d, t as f } from "./currency-B-r3ig11.js";
|
|
8
|
-
import { t as p } from "./calculator-segment-
|
|
8
|
+
import { t as p } from "./calculator-segment-CvAaDqKf.js";
|
|
9
9
|
import { useId as m, useState as h } from "react";
|
|
10
10
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
11
11
|
import { ChevronDown as y, X as b } from "lucide-react";
|
package/dist/print.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, t } from "./translate-material-
|
|
1
|
+
import { i as e, t } from "./translate-material-BmpcP1p1.js";
|
|
2
2
|
import { Children as n, createContext as r, isValidElement as i, useCallback as a, useContext as o, useEffect as s, useMemo as c, useState as l } from "react";
|
|
3
3
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
4
4
|
import { resolvePdfFileName as f } from "@nxgt/material-core/pdf-file-name";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-DoymV6IP.js";
|
|
2
2
|
import { t } from "./toggle-FeCCJqbg.js";
|
|
3
3
|
import { n } from "./calculator-context-BugcKuVG.js";
|
|
4
4
|
import { i as r, n as i, s as a } from "./key-layout-cR79xfGE.js";
|
|
5
5
|
import { t as o } from "./programmer-word-CNCF7DJF.js";
|
|
6
|
-
import { t as s } from "./calculator-segment-
|
|
6
|
+
import { t as s } from "./calculator-segment-CvAaDqKf.js";
|
|
7
7
|
import { useId as c, useState as l } from "react";
|
|
8
8
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
9
|
import { calculate as f, formatExpression as p, sessionOptions as m, toCanonical as h, tokenize as g } from "@nxgt/material-core/calculator";
|
|
@@ -3,25 +3,25 @@ import { n as t } from "./ui.utils-CAnKTCw5.js";
|
|
|
3
3
|
import { t as n } from "./utils-BLfntITJ.js";
|
|
4
4
|
import { o as r } from "./dist-DVRQkaTK.js";
|
|
5
5
|
import { i, n as a, r as o } from "./dist-DWZXlCZR.js";
|
|
6
|
-
import { o as s } from "./spinner-
|
|
6
|
+
import { o as s } from "./spinner-JnLLiLIO.js";
|
|
7
7
|
import { a as c, i as l, n as u } from "./dist-DHdUUM1w.js";
|
|
8
8
|
import { i as d } from "./dist-DOK3zo5C.js";
|
|
9
9
|
import { r as f, t as p } from "./in-dialog-D61Yeaol.js";
|
|
10
|
-
import { a as m, c as h, i as g, l as _, n as v, o as ee, r as y, s as b, t as te, u as ne } from "./use-return-focus-
|
|
11
|
-
import { c as x, d as S, f as C, i as w, l as T, n as E, o as D, t as re, u as O } from "./dropdown-menu-
|
|
12
|
-
import { a as k, b as ie, d as ae, f as oe, i as se, n as A, o as ce, r as le, s as j, t as M, u as ue, v as de } from "./toolbar-items-
|
|
10
|
+
import { a as m, c as h, i as g, l as _, n as v, o as ee, r as y, s as b, t as te, u as ne } from "./use-return-focus-CLEnhfka.js";
|
|
11
|
+
import { c as x, d as S, f as C, i as w, l as T, n as E, o as D, t as re, u as O } from "./dropdown-menu-DO5kUvof.js";
|
|
12
|
+
import { a as k, b as ie, d as ae, f as oe, i as se, n as A, o as ce, r as le, s as j, t as M, u as ue, v as de } from "./toolbar-items-B-kMYsDT.js";
|
|
13
13
|
import { t as fe } from "./dist-DkQbkF9T.js";
|
|
14
|
-
import { t as pe } from "./button-
|
|
15
|
-
import { t as N } from "./use-material-translation-
|
|
16
|
-
import { n as me, t as he } from "./icon-button-
|
|
14
|
+
import { t as pe } from "./button-C5OEq9bi.js";
|
|
15
|
+
import { t as N } from "./use-material-translation-DoymV6IP.js";
|
|
16
|
+
import { n as me, t as he } from "./icon-button-D0xjBCst.js";
|
|
17
17
|
import { t as ge } from "./useEvent-2fKq-6w8.js";
|
|
18
18
|
import { n as _e, t as ve } from "./toggle-group-CVMxEpWi.js";
|
|
19
19
|
import { i as ye } from "./escape-owner-DpaP0lm1.js";
|
|
20
20
|
import { n as be } from "./use-slice-reducer-BGkeGtML.js";
|
|
21
21
|
import { t as xe } from "./input-CC2joTjB.js";
|
|
22
22
|
import { r as Se } from "./use-csp-nonce-ZKs9k-ov.js";
|
|
23
|
-
import { n as Ce, t as we } from "./empty-state-
|
|
24
|
-
import { r as Te, t as Ee, u as De } from "./dialog-
|
|
23
|
+
import { n as Ce, t as we } from "./empty-state-DQnICuun.js";
|
|
24
|
+
import { r as Te, t as Ee, u as De } from "./dialog-d6Kdf5wc.js";
|
|
25
25
|
import { t as Oe } from "./client-only.utils-3nHNzCki.js";
|
|
26
26
|
import { t as ke } from "./use-scroll-away-PQRFZkT2.js";
|
|
27
27
|
import * as P from "react";
|
|
@@ -787,22 +787,22 @@ function or({ className: e, orientation: t = "vertical", ...r }) {
|
|
|
787
787
|
}
|
|
788
788
|
//#endregion
|
|
789
789
|
//#region lib/components/ui/feedback/error-state/partials/error-state-actions.tsx
|
|
790
|
-
function sr({ onRetry: e, retrying: t, retryLabel: n, action: r }) {
|
|
791
|
-
let { t:
|
|
790
|
+
function sr({ onRetry: e, retrying: t, retryLabel: n, action: r, retryVariant: i = "outlined", retrySlot: a = "error-state-retry" }) {
|
|
791
|
+
let { t: o } = N(), [s, c] = B(!1);
|
|
792
792
|
return /* @__PURE__ */ U(V, { children: [e && /* @__PURE__ */ H(pe, {
|
|
793
|
-
variant:
|
|
794
|
-
className: "text-foreground",
|
|
795
|
-
"data-slot":
|
|
796
|
-
loading: t ??
|
|
793
|
+
variant: i,
|
|
794
|
+
className: i === "outlined" ? "text-foreground" : void 0,
|
|
795
|
+
"data-slot": a,
|
|
796
|
+
loading: t ?? s,
|
|
797
797
|
onClick: () => {
|
|
798
798
|
let t = e?.();
|
|
799
799
|
if (t && typeof t.then == "function") {
|
|
800
|
-
|
|
801
|
-
let e = () =>
|
|
800
|
+
c(!0);
|
|
801
|
+
let e = () => c(!1);
|
|
802
802
|
t.then(e, e);
|
|
803
803
|
}
|
|
804
804
|
},
|
|
805
|
-
children: n ??
|
|
805
|
+
children: n ?? o(xt.retry.key, xt.retry.fallback)
|
|
806
806
|
}), r] });
|
|
807
807
|
}
|
|
808
808
|
//#endregion
|
|
@@ -3600,4 +3600,4 @@ function Xa(e) {
|
|
|
3600
3600
|
return /* @__PURE__ */ H(Ka, { ...Ya(e) });
|
|
3601
3601
|
}
|
|
3602
3602
|
//#endregion
|
|
3603
|
-
export {
|
|
3603
|
+
export { qn as _, ar as a, on as b, tr as c, Qn as d, Xn as f, Kn as g, Gn as h, sr as i, ir as l, Zn as m, qa as n, or as o, Yn as p, ur as r, $n as s, Xa as t, er as u, Un as v, Wn as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e } from "./spinner-
|
|
2
|
-
import { c as t, n, t as r } from "./dropdown-menu-
|
|
3
|
-
import { t as i } from "./use-material-translation-
|
|
4
|
-
import { a, i as o, n as s, o as c, t as l } from "./code-language-items-
|
|
1
|
+
import { n as e } from "./spinner-JnLLiLIO.js";
|
|
2
|
+
import { c as t, n, t as r } from "./dropdown-menu-DO5kUvof.js";
|
|
3
|
+
import { t as i } from "./use-material-translation-DoymV6IP.js";
|
|
4
|
+
import { a, i as o, n as s, o as c, t as l } from "./code-language-items-CcdzQvLT.js";
|
|
5
5
|
import { i as u, n as d, r as f, s as p } from "./dist-C3GR7kJd.js";
|
|
6
6
|
import { t as m } from "./code-block-spec-CGLKRhwD.js";
|
|
7
7
|
import { Suspense as h, lazy as g, useEffect as _, useRef as v, useState as y } from "react";
|
|
@@ -143,7 +143,7 @@ function M({ node: e, editor: t, updateAttributes: n, editable: r, wrap: a, onWr
|
|
|
143
143
|
}
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region lib/components/ui/widgets/editor/extensions/code/code-block-open.tsx
|
|
146
|
-
var N = g(() => import("./code-editor-
|
|
146
|
+
var N = g(() => import("./code-editor-tiAjhXW-.js").then((e) => e.n).then((e) => ({ default: e.CodeEditor })));
|
|
147
147
|
function P() {
|
|
148
148
|
let { t: e } = i();
|
|
149
149
|
return /* @__PURE__ */ b("div", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-DoymV6IP.js";
|
|
2
2
|
import { t } from "./toggle-FeCCJqbg.js";
|
|
3
3
|
import { n } from "./calculator-context-BugcKuVG.js";
|
|
4
4
|
import { i as r, o as i } from "./key-layout-cR79xfGE.js";
|
|
5
5
|
import { t as a } from "./standard-layout-BuSRr3TY.js";
|
|
6
|
-
import { t as o } from "./calculator-segment-
|
|
6
|
+
import { t as o } from "./calculator-segment-CvAaDqKf.js";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
import { scientificOptions as l } from "@nxgt/material-core/calculator/scientific";
|
|
9
9
|
//#region lib/components/ui/widgets/calculator/variants/scientific/scientific-layout.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { t } from "./dist-DVRQkaTK.js";
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
4
|
-
import { t as r } from "./icon-button-
|
|
3
|
+
import { t as n } from "./use-material-translation-DoymV6IP.js";
|
|
4
|
+
import { t as r } from "./icon-button-D0xjBCst.js";
|
|
5
5
|
import { t as i } from "./compose-refs-G4J4kaUA.js";
|
|
6
6
|
import a, { cloneElement as o, createContext as s, forwardRef as c, memo as l, useCallback as u, useContext as d, useEffect as f, useId as p, useLayoutEffect as m, useMemo as h, useReducer as g, useRef as _, useState as v } from "react";
|
|
7
7
|
import { jsx as y } from "react/jsx-runtime";
|
|
@@ -5,7 +5,7 @@ import { a as i, i as a, n as o, r as s, t as c } from "./dist-DWZXlCZR.js";
|
|
|
5
5
|
import { a as l, i as u, n as d, r as f, t as p } from "./dist-DHdUUM1w.js";
|
|
6
6
|
import { a as m, c as h, d as g, i as _, l as v, o as y, r as b, t as x, u as S } from "./floating-ui.dom-KkZSW8_E.js";
|
|
7
7
|
import { t as C } from "./dist-DkQbkF9T.js";
|
|
8
|
-
import { t as w } from "./use-material-translation-
|
|
8
|
+
import { t as w } from "./use-material-translation-DoymV6IP.js";
|
|
9
9
|
import * as T from "react";
|
|
10
10
|
import { useLayoutEffect as E, useRef as D, useSyncExternalStore as O } from "react";
|
|
11
11
|
import { jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
@@ -3,7 +3,7 @@ import { n as t } from "./dist-DVRQkaTK.js";
|
|
|
3
3
|
import { i as n, r, t as i } from "./dist-DWZXlCZR.js";
|
|
4
4
|
import { a, i as o, r as s } from "./dist-DHdUUM1w.js";
|
|
5
5
|
import { i as c, n as l, r as u, t as d } from "./dist-DOK3zo5C.js";
|
|
6
|
-
import { t as f } from "./use-material-translation-
|
|
6
|
+
import { t as f } from "./use-material-translation-DoymV6IP.js";
|
|
7
7
|
import * as p from "react";
|
|
8
8
|
import { createContext as m, useCallback as h, useContext as g, useEffect as ee, useLayoutEffect as _, useRef as v, useState as te } from "react";
|
|
9
9
|
import { Fragment as ne, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
@@ -49,8 +49,8 @@ var ae = Object.defineProperty, x = (e, t) => ae(e, "name", {
|
|
|
49
49
|
ref: t
|
|
50
50
|
})
|
|
51
51
|
});
|
|
52
|
-
}, "TabsList")), fe = "TabsTrigger",
|
|
53
|
-
let { __scopeTabs: i, value: a, disabled: o = !1, ...s } = e, c = w(fe, i), l = C(i), u =
|
|
52
|
+
}, "TabsList")), fe = "TabsTrigger", pe = /* @__PURE__ */ p.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
53
|
+
let { __scopeTabs: i, value: a, disabled: o = !1, ...s } = e, c = w(fe, i), l = C(i), u = E(c.baseId, a), f = D(c.baseId, a), p = a === c.value;
|
|
54
54
|
return /* @__PURE__ */ y(d, {
|
|
55
55
|
asChild: !0,
|
|
56
56
|
...l,
|
|
@@ -79,8 +79,8 @@ var ae = Object.defineProperty, x = (e, t) => ae(e, "name", {
|
|
|
79
79
|
})
|
|
80
80
|
})
|
|
81
81
|
});
|
|
82
|
-
}, "TabsTrigger")),
|
|
83
|
-
let { __scopeTabs: r, value: i, forceMount: a, children: s, ...c } = e, l = w(
|
|
82
|
+
}, "TabsTrigger")), T = "TabsContent", me = /* @__PURE__ */ p.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
83
|
+
let { __scopeTabs: r, value: i, forceMount: a, children: s, ...c } = e, l = w(T, r), u = E(l.baseId, i), d = D(l.baseId, i), f = i === l.value, m = p.useRef(f);
|
|
84
84
|
return p.useEffect(() => {
|
|
85
85
|
let e = requestAnimationFrame(() => m.current = !1);
|
|
86
86
|
return () => cancelAnimationFrame(e);
|
|
@@ -104,56 +104,57 @@ var ae = Object.defineProperty, x = (e, t) => ae(e, "name", {
|
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
}, "TabsContent"));
|
|
107
|
-
function
|
|
107
|
+
function E(e, t) {
|
|
108
108
|
return `${e}-trigger-${t}`;
|
|
109
109
|
}
|
|
110
|
-
x(
|
|
111
|
-
function
|
|
110
|
+
x(E, "makeTriggerId");
|
|
111
|
+
function D(e, t) {
|
|
112
112
|
return `${e}-content-${t}`;
|
|
113
113
|
}
|
|
114
|
-
x(
|
|
115
|
-
var
|
|
114
|
+
x(D, "makeContentId");
|
|
115
|
+
var he = le, ge = de, _e = pe, ve = me;
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region lib/components/ui/primitives/tabs/tabs-classes.ts
|
|
118
|
-
function
|
|
118
|
+
function O(e) {
|
|
119
119
|
return e === "segmented" || e === "line" ? "segmented" : "underline";
|
|
120
120
|
}
|
|
121
|
-
var
|
|
121
|
+
var k = "aria-[orientation=vertical]:flex-col", ye = {
|
|
122
122
|
underline: "flex min-w-0 flex-col gap-2 items-stretch data-[orientation=vertical]:flex-row",
|
|
123
123
|
segmented: "flex min-w-0 flex-col gap-2 items-start data-[orientation=vertical]:flex-row"
|
|
124
|
-
},
|
|
125
|
-
underline: `group/tabs-list relative flex gap-1 border-b border-border overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden ${
|
|
126
|
-
segmented: `group/tabs-list relative inline-flex max-w-full rounded-full bg-muted p-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden ${
|
|
127
|
-
},
|
|
128
|
-
underline: `${
|
|
129
|
-
segmented: `${
|
|
130
|
-
},
|
|
131
|
-
underline: `${
|
|
132
|
-
segmented: `${
|
|
133
|
-
},
|
|
124
|
+
}, A = {
|
|
125
|
+
underline: `group/tabs-list relative flex gap-1 border-b border-border overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden ${k} aria-[orientation=vertical]:border-b-0 aria-[orientation=vertical]:border-l aria-[orientation=vertical]:overflow-x-visible aria-[orientation=vertical]:overflow-y-auto`,
|
|
126
|
+
segmented: `group/tabs-list relative inline-flex max-w-full rounded-full bg-muted p-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden ${k} aria-[orientation=vertical]:rounded-3xl aria-[orientation=vertical]:overflow-x-visible aria-[orientation=vertical]:overflow-y-auto`
|
|
127
|
+
}, j = "relative inline-flex shrink-0 cursor-pointer select-none items-center justify-center gap-2 whitespace-nowrap text-sm font-medium text-muted-foreground transition-colors disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4 focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-primary dark:focus-visible:outline-track-fill", M = "group-data-[indicator=ready]/tabs-list:after:hidden", N = {
|
|
128
|
+
underline: `${j} h-10 px-4 rounded-t-md hover:bg-primary/5 data-[state=inactive]:hover:text-foreground data-[state=active]:text-primary-text data-[orientation=vertical]:justify-start data-[orientation=vertical]:rounded-t-none data-[orientation=vertical]:rounded-r-md after:pointer-events-none after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 after:rounded-full data-[state=active]:after:bg-primary dark:data-[state=active]:after:bg-track-fill data-[orientation=vertical]:after:inset-x-auto data-[orientation=vertical]:after:left-0 data-[orientation=vertical]:after:inset-y-0 data-[orientation=vertical]:after:h-auto data-[orientation=vertical]:after:w-0.5 ${M}`,
|
|
129
|
+
segmented: `${j} z-10 h-8 px-4 rounded-full data-[state=inactive]:hover:text-foreground data-[state=active]:text-foreground data-[state=active]:font-semibold after:pointer-events-none after:absolute after:inset-0 after:-z-10 after:rounded-full data-[state=active]:after:bg-background data-[state=active]:after:shadow-sm data-[state=active]:after:border data-[state=active]:after:border-muted-foreground dark:data-[state=active]:after:bg-card ${M}`
|
|
130
|
+
}, P = "pointer-events-none absolute left-0 invisible group-data-[indicator=ready]/tabs-list:visible group-data-[indicator=ready]/tabs-list:motion-safe:transition-[translate,width,height] duration-300 ease-out", be = {
|
|
131
|
+
underline: `${P} bottom-0 h-0.5 rounded-full bg-primary dark:bg-track-fill w-(--tabs-indicator-w) translate-x-(--tabs-indicator-x) group-aria-[orientation=vertical]/tabs-list:bottom-auto group-aria-[orientation=vertical]/tabs-list:top-0 group-aria-[orientation=vertical]/tabs-list:w-0.5 group-aria-[orientation=vertical]/tabs-list:h-(--tabs-indicator-w) group-aria-[orientation=vertical]/tabs-list:translate-x-0 group-aria-[orientation=vertical]/tabs-list:translate-y-(--tabs-indicator-x)`,
|
|
132
|
+
segmented: `${P} inset-y-1 rounded-full bg-background shadow-sm border border-muted-foreground dark:bg-card w-(--tabs-indicator-w) translate-x-(--tabs-indicator-x) group-aria-[orientation=vertical]/tabs-list:inset-y-auto group-aria-[orientation=vertical]/tabs-list:inset-x-1 group-aria-[orientation=vertical]/tabs-list:top-0 group-aria-[orientation=vertical]/tabs-list:w-auto group-aria-[orientation=vertical]/tabs-list:h-(--tabs-indicator-w) group-aria-[orientation=vertical]/tabs-list:translate-x-0 group-aria-[orientation=vertical]/tabs-list:translate-y-(--tabs-indicator-x)`
|
|
133
|
+
}, xe = "inline-flex items-center gap-2", F = "flex justify-center", Se = "w-full flex-1 outline-none";
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region lib/components/ui/primitives/tabs/partials/tabs-content.tsx
|
|
136
|
-
function
|
|
137
|
-
return /* @__PURE__ */ y(
|
|
136
|
+
function Ce({ className: t, ...n }) {
|
|
137
|
+
return /* @__PURE__ */ y(ve, {
|
|
138
138
|
"data-slot": "tabs-content",
|
|
139
|
-
className: e(
|
|
139
|
+
className: e(Se, t),
|
|
140
140
|
...n
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region lib/components/ui/primitives/tabs/tabs-overflow-classes.ts
|
|
145
|
-
var
|
|
145
|
+
var I = "[--tabs-cue:2rem] pointer-coarse:[--tabs-cue:3rem] data-[overflow-left]:[--tabs-inset-left:var(--tabs-cue)] data-[overflow-right]:[--tabs-inset-right:var(--tabs-cue)] data-[overflow-left]:[mask-image:linear-gradient(to_right,transparent_var(--tabs-inset-left,0px),#000_var(--tabs-inset-left,0px),#000_calc(100%_-_var(--tabs-inset-right,0px)),transparent_calc(100%_-_var(--tabs-inset-right,0px)))] data-[overflow-right]:[mask-image:linear-gradient(to_right,transparent_var(--tabs-inset-left,0px),#000_var(--tabs-inset-left,0px),#000_calc(100%_-_var(--tabs-inset-right,0px)),transparent_calc(100%_-_var(--tabs-inset-right,0px)))] [&_[data-clipped]]:opacity-0", we = "pointer-events-none absolute z-20 overflow-hidden", L = "pointer-events-auto absolute top-1/2 inline-flex size-7 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border border-border bg-background text-foreground shadow-sm transition-colors hover:bg-muted pointer-coarse:h-full pointer-coarse:max-h-11 pointer-coarse:w-11 focus-visible:outline-2 focus-visible:outline-offset-[-3px] focus-visible:outline-primary dark:focus-visible:outline-track-fill [&_svg]:size-4", Te = `${L} left-1`, Ee = `${L} right-1`, R = "[--tabs-cue:0px] data-[overflow-left]:[--tabs-inset-left:1.5rem] data-[overflow-right]:[--tabs-inset-right:1.5rem] data-[overflow-left]:[mask-image:linear-gradient(to_right,transparent,#000_var(--tabs-inset-left,0px),#000_calc(100%_-_var(--tabs-inset-right,0px)),transparent)] data-[overflow-right]:[mask-image:linear-gradient(to_right,transparent,#000_var(--tabs-inset-left,0px),#000_calc(100%_-_var(--tabs-inset-right,0px)),transparent)]", z = m("underline");
|
|
146
146
|
function B() {
|
|
147
147
|
return g(z);
|
|
148
148
|
}
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region lib/components/ui/primitives/tabs/tabs-clipped.ts
|
|
151
|
-
function
|
|
151
|
+
function De(e) {
|
|
152
152
|
let t = getComputedStyle(e).getPropertyValue("--tabs-cue").trim(), n = Number.parseFloat(t);
|
|
153
153
|
return Number.isFinite(n) ? t.endsWith("rem") ? n * Number.parseFloat(getComputedStyle(document.documentElement).fontSize) : n : 0;
|
|
154
154
|
}
|
|
155
155
|
function V(e, t, n, r) {
|
|
156
|
-
|
|
156
|
+
e.getAttribute("data-scroll-buttons") === "none" && (n = !1, r = !1);
|
|
157
|
+
let i = e.getBoundingClientRect(), a = De(e), o = i.left + (n ? a : 0), s = i.right - (r ? a : 0);
|
|
157
158
|
for (let a of e.querySelectorAll(t.tab)) {
|
|
158
159
|
let e = a.getBoundingClientRect(), c = n && e.left < o - 1 && e.right > i.left || r && e.right > s + 1 && e.left < i.right, l = a.matches(t.active) || a === document.activeElement, u = c && !l;
|
|
159
160
|
u !== a.hasAttribute("data-clipped") && a.toggleAttribute("data-clipped", u);
|
|
@@ -162,10 +163,10 @@ function V(e, t, n, r) {
|
|
|
162
163
|
//#endregion
|
|
163
164
|
//#region lib/components/ui/primitives/tabs/tabs-manual-scroll.ts
|
|
164
165
|
var H = "tabs-manual-scroll";
|
|
165
|
-
function
|
|
166
|
+
function Oe(e) {
|
|
166
167
|
e.dispatchEvent(new Event(H));
|
|
167
168
|
}
|
|
168
|
-
function
|
|
169
|
+
function ke(e, t) {
|
|
169
170
|
let n = 0, r = 0, i = "", a = () => `${e.clientWidth}/${e.scrollWidth}`, o = { follow: !0 }, s = () => {
|
|
170
171
|
o.follow = !1;
|
|
171
172
|
}, c = (e) => {
|
|
@@ -196,7 +197,7 @@ var U = {
|
|
|
196
197
|
}, W = (e, t) => e.left === t.left && e.right === t.right && e.top === t.top && e.x === t.x && e.width === t.width && e.height === t.height;
|
|
197
198
|
//#endregion
|
|
198
199
|
//#region lib/components/ui/primitives/tabs/tabs-press.ts
|
|
199
|
-
function
|
|
200
|
+
function Ae(e, t, n) {
|
|
200
201
|
let r = !1, i = e.ownerDocument, a = i.defaultView, o = () => {
|
|
201
202
|
r = !1, i.removeEventListener("pointerup", o, !0), i.removeEventListener("pointercancel", o, !0), a?.removeEventListener("blur", o);
|
|
202
203
|
}, s = () => {
|
|
@@ -234,7 +235,7 @@ function X(e, t = J) {
|
|
|
234
235
|
height: e.offsetHeight
|
|
235
236
|
};
|
|
236
237
|
}
|
|
237
|
-
function
|
|
238
|
+
function je(e, t, n = Y()) {
|
|
238
239
|
if (e.scrollWidth <= e.clientWidth) return 0;
|
|
239
240
|
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = 0;
|
|
240
241
|
return i.left < r.left + q ? a = i.left - r.left - q : i.right > r.right - q && (a = i.right - r.right + q), a && e.scrollBy({
|
|
@@ -252,7 +253,7 @@ function Z(e, t = J) {
|
|
|
252
253
|
let e = X(n, t);
|
|
253
254
|
r((t) => W(t, e) ? t : e);
|
|
254
255
|
});
|
|
255
|
-
}, o = () => n.querySelector(t.active), s =
|
|
256
|
+
}, o = () => n.querySelector(t.active), s = ke(n, je), { state: c, reveal: l } = s, u = Ae(n, t.tab, l), d = new ResizeObserver(() => {
|
|
256
257
|
a();
|
|
257
258
|
let e = c.follow ? o() : null;
|
|
258
259
|
e && l(e, "instant");
|
|
@@ -280,9 +281,9 @@ function Z(e, t = J) {
|
|
|
280
281
|
return h && l(h, "instant"), r(X(n, t)), () => {
|
|
281
282
|
cancelAnimationFrame(i), d.disconnect(), p.disconnect(), n.removeEventListener("focusin", m), u.dispose(), s.dispose();
|
|
282
283
|
};
|
|
283
|
-
}, [e, t]),
|
|
284
|
+
}, [e, t]), Me(e, n.left || n.right, r, t), n;
|
|
284
285
|
}
|
|
285
|
-
function
|
|
286
|
+
function Me(e, t, n, r) {
|
|
286
287
|
ee(() => {
|
|
287
288
|
let i = e.current;
|
|
288
289
|
if (!i || !t) return;
|
|
@@ -338,7 +339,7 @@ function Q({ look: t }) {
|
|
|
338
339
|
ref: n,
|
|
339
340
|
"aria-hidden": !0,
|
|
340
341
|
"data-slot": "tabs-indicator",
|
|
341
|
-
className: e(
|
|
342
|
+
className: e(be[t])
|
|
342
343
|
});
|
|
343
344
|
}
|
|
344
345
|
//#endregion
|
|
@@ -349,7 +350,7 @@ function $({ list: e, overflow: t }) {
|
|
|
349
350
|
let r = (t) => {
|
|
350
351
|
let n = e.current;
|
|
351
352
|
if (!n) return;
|
|
352
|
-
|
|
353
|
+
Oe(n);
|
|
353
354
|
let r = Math.max(96, n.clientWidth * .75);
|
|
354
355
|
n.scrollBy({
|
|
355
356
|
left: t * r,
|
|
@@ -362,7 +363,7 @@ function $({ list: e, overflow: t }) {
|
|
|
362
363
|
};
|
|
363
364
|
return /* @__PURE__ */ b("div", {
|
|
364
365
|
"data-slot": "tabs-scroll",
|
|
365
|
-
className:
|
|
366
|
+
className: we,
|
|
366
367
|
style: {
|
|
367
368
|
top: t.top,
|
|
368
369
|
left: t.x,
|
|
@@ -373,14 +374,14 @@ function $({ list: e, overflow: t }) {
|
|
|
373
374
|
...i,
|
|
374
375
|
"data-slot": "tabs-scroll-left",
|
|
375
376
|
"aria-label": n("material.tabs.scroll-left", "Scroll tabs left"),
|
|
376
|
-
className:
|
|
377
|
+
className: Te,
|
|
377
378
|
onClick: () => r(-1),
|
|
378
379
|
children: /* @__PURE__ */ y(re, { "aria-hidden": !0 })
|
|
379
380
|
}), t.right && /* @__PURE__ */ y("button", {
|
|
380
381
|
...i,
|
|
381
382
|
"data-slot": "tabs-scroll-right",
|
|
382
383
|
"aria-label": n("material.tabs.scroll-right", "Scroll tabs right"),
|
|
383
|
-
className:
|
|
384
|
+
className: Ee,
|
|
384
385
|
onClick: () => r(1),
|
|
385
386
|
children: /* @__PURE__ */ y(ie, { "aria-hidden": !0 })
|
|
386
387
|
})]
|
|
@@ -388,30 +389,31 @@ function $({ list: e, overflow: t }) {
|
|
|
388
389
|
}
|
|
389
390
|
//#endregion
|
|
390
391
|
//#region lib/components/ui/primitives/tabs/partials/tabs-list.tsx
|
|
391
|
-
function
|
|
392
|
-
let
|
|
393
|
-
return /* @__PURE__ */ b(ne, { children: [/* @__PURE__ */ b(
|
|
392
|
+
function Ne({ scrollButtons: n = "auto", className: r, children: i, ref: a, ...o }) {
|
|
393
|
+
let s = n !== "none", c = B(), l = v(null), u = Z(l);
|
|
394
|
+
return /* @__PURE__ */ b(ne, { children: [/* @__PURE__ */ b(ge, {
|
|
394
395
|
ref: h((e) => {
|
|
395
|
-
|
|
396
|
-
}, [
|
|
396
|
+
l.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
|
|
397
|
+
}, [a]),
|
|
397
398
|
"data-slot": "tabs-list",
|
|
398
399
|
"data-pw": "tabs-list",
|
|
399
|
-
"data-
|
|
400
|
-
"data-overflow-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
400
|
+
"data-scroll-buttons": s ? void 0 : "none",
|
|
401
|
+
"data-overflow-left": u.left ? "" : void 0,
|
|
402
|
+
"data-overflow-right": u.right ? "" : void 0,
|
|
403
|
+
className: e(A[c], s ? I : R, r),
|
|
404
|
+
...o,
|
|
405
|
+
children: [/* @__PURE__ */ y(t, { children: i }), /* @__PURE__ */ y(Q, { look: c })]
|
|
406
|
+
}), s && /* @__PURE__ */ y($, {
|
|
407
|
+
list: l,
|
|
408
|
+
overflow: u
|
|
407
409
|
})] });
|
|
408
410
|
}
|
|
409
411
|
//#endregion
|
|
410
412
|
//#region lib/components/ui/primitives/tabs/partials/tabs-trigger.tsx
|
|
411
|
-
function
|
|
412
|
-
return /* @__PURE__ */ b(
|
|
413
|
+
function Pe({ className: n, children: r, icon: i, ...a }) {
|
|
414
|
+
return /* @__PURE__ */ b(_e, {
|
|
413
415
|
"data-slot": "tabs-trigger",
|
|
414
|
-
className: e(
|
|
416
|
+
className: e(N[B()], n),
|
|
415
417
|
...a,
|
|
416
418
|
children: [i && /* @__PURE__ */ y("span", {
|
|
417
419
|
"data-slot": "tabs-trigger-icon",
|
|
@@ -428,17 +430,17 @@ function Ne({ className: n, children: r, icon: i, ...a }) {
|
|
|
428
430
|
}
|
|
429
431
|
//#endregion
|
|
430
432
|
//#region lib/components/ui/primitives/tabs/tabs.tsx
|
|
431
|
-
function
|
|
432
|
-
let i =
|
|
433
|
+
function Fe({ className: t, variant: n = "underline", ...r }) {
|
|
434
|
+
let i = O(n);
|
|
433
435
|
return /* @__PURE__ */ y(z.Provider, {
|
|
434
436
|
value: i,
|
|
435
|
-
children: /* @__PURE__ */ y(
|
|
437
|
+
children: /* @__PURE__ */ y(he, {
|
|
436
438
|
"data-slot": "tabs",
|
|
437
439
|
"data-variant": n,
|
|
438
|
-
className: e(
|
|
440
|
+
className: e(ye[i], t),
|
|
439
441
|
...r
|
|
440
442
|
})
|
|
441
443
|
});
|
|
442
444
|
}
|
|
443
445
|
//#endregion
|
|
444
|
-
export { Q as a, B as c,
|
|
446
|
+
export { Q as a, B as c, Ce as d, F as f, O as g, N as h, $ as i, I as l, A as m, Pe as n, Z as o, xe as p, Ne as r, z as s, Fe as t, R as u };
|
package/dist/theme-picker.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { a as t, i as n, n as r, o as i, r as a, t as o } from "./bubble-input-CQwVSoU3.js";
|
|
3
3
|
import { a as s, r as c } from "./icon-sprites-CaYXzOL4.js";
|
|
4
|
-
import { t as l } from "./use-material-translation-
|
|
4
|
+
import { t as l } from "./use-material-translation-DoymV6IP.js";
|
|
5
5
|
import { t as u } from "./use-theme-BCLireTd.js";
|
|
6
6
|
import { a as d, r as f } from "./theme-context-Cofk6vgs.js";
|
|
7
|
-
import { t as p } from "./theme-toggle-
|
|
7
|
+
import { t as p } from "./theme-toggle-BmcK6mXV.js";
|
|
8
8
|
import { n as m, t as h } from "./nxgt-theme-DA1IQe0O.js";
|
|
9
9
|
import { useContext as g } from "react";
|
|
10
10
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-DoymV6IP.js";
|
|
2
2
|
import { i as t } from "./theme-store-BdPp43cV.js";
|
|
3
3
|
import { n, t as r } from "./use-theme-BCLireTd.js";
|
|
4
4
|
import { r as i } from "./theme-context-Cofk6vgs.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { o as t, t as n } from "./dist-DVRQkaTK.js";
|
|
3
3
|
import { i as r, r as i } from "./dist-DWZXlCZR.js";
|
|
4
|
-
import { n as a } from "./spinner-
|
|
4
|
+
import { n as a } from "./spinner-JnLLiLIO.js";
|
|
5
5
|
import { a as o } from "./dist-DHdUUM1w.js";
|
|
6
6
|
import { i as s, n as c, r as l, t as u } from "./dist-DOK3zo5C.js";
|
|
7
7
|
import { t as d } from "./in-dialog-D61Yeaol.js";
|
|
8
|
-
import { A as f, M as p, N as m, b as h, d as g, f as _, i as v, j as y, l as b, n as x, o as S, r as C, t as w, u as T, y as ee } from "./dropdown-menu-
|
|
9
|
-
import { a as te, n as ne } from "./popover-
|
|
8
|
+
import { A as f, M as p, N as m, b as h, d as g, f as _, i as v, j as y, l as b, n as x, o as S, r as C, t as w, u as T, y as ee } from "./dropdown-menu-DO5kUvof.js";
|
|
9
|
+
import { a as te, n as ne } from "./popover-BevReSHi.js";
|
|
10
10
|
import { i as re, n as ie, r as ae, t as oe } from "./dist-BZe2evxL.js";
|
|
11
11
|
import { t as se } from "./warn-once-C_e47JM8.js";
|
|
12
|
-
import { t as ce } from "./use-material-translation-
|
|
12
|
+
import { t as ce } from "./use-material-translation-DoymV6IP.js";
|
|
13
13
|
import * as E from "react";
|
|
14
14
|
import { createContext as D, useCallback as le, useContext as O, useEffect as k, useId as ue, useLayoutEffect as A, useMemo as j, useReducer as de, useRef as M, useState as N } from "react";
|
|
15
15
|
import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, l as t, r as n, s as r, t as i, u as a } from "./translator-
|
|
1
|
+
import { a as e, l as t, r as n, s as r, t as i, u as a } from "./translator-CfoXTrZd.js";
|
|
2
2
|
import { createContext as o, useCallback as s, useContext as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
3
3
|
import { jsx as p } from "react/jsx-runtime";
|
|
4
4
|
//#region lib/i18n/material-resources-registry.ts
|
|
@@ -1448,6 +1448,14 @@ var r = {
|
|
|
1448
1448
|
hidden: "Secret hidden"
|
|
1449
1449
|
},
|
|
1450
1450
|
"country-field": { placeholder: "Country" },
|
|
1451
|
+
"age-field": {
|
|
1452
|
+
"unit-day": "{count, plural, one {day} other {days}}",
|
|
1453
|
+
"unit-week": "{count, plural, one {week} other {weeks}}",
|
|
1454
|
+
"unit-month": "{count, plural, one {month} other {months}}",
|
|
1455
|
+
"unit-year": "{count, plural, one {year} other {years}}",
|
|
1456
|
+
unit: "Age unit",
|
|
1457
|
+
reading: "{value} {unit}"
|
|
1458
|
+
},
|
|
1451
1459
|
"duration-field": {
|
|
1452
1460
|
hours: "h",
|
|
1453
1461
|
minutes: "min",
|
|
@@ -1479,7 +1487,10 @@ var r = {
|
|
|
1479
1487
|
"open-menu": "Open menu",
|
|
1480
1488
|
navigation: "Navigation",
|
|
1481
1489
|
badge: "{count} new",
|
|
1482
|
-
"badge-dot": "new activity"
|
|
1490
|
+
"badge-dot": "new activity",
|
|
1491
|
+
"aside-main": "Content",
|
|
1492
|
+
"aside-preview": "Preview",
|
|
1493
|
+
"aside-toggle": "View"
|
|
1483
1494
|
},
|
|
1484
1495
|
"top-app-bar": {
|
|
1485
1496
|
account: "Account menu",
|
|
@@ -4914,6 +4925,14 @@ var r = {
|
|
|
4914
4925
|
hidden: "Secret masqué"
|
|
4915
4926
|
},
|
|
4916
4927
|
"country-field": { placeholder: "Pays" },
|
|
4928
|
+
"age-field": {
|
|
4929
|
+
"unit-day": "{count, plural, one {jour} other {jours}}",
|
|
4930
|
+
"unit-week": "{count, plural, one {semaine} other {semaines}}",
|
|
4931
|
+
"unit-month": "{count, plural, one {mois} other {mois}}",
|
|
4932
|
+
"unit-year": "{count, plural, one {an} other {ans}}",
|
|
4933
|
+
unit: "Unité d'âge",
|
|
4934
|
+
reading: "{value} {unit}"
|
|
4935
|
+
},
|
|
4917
4936
|
"duration-field": {
|
|
4918
4937
|
hours: "h",
|
|
4919
4938
|
minutes: "min",
|
|
@@ -4945,7 +4964,10 @@ var r = {
|
|
|
4945
4964
|
"open-menu": "Ouvrir le menu",
|
|
4946
4965
|
navigation: "Navigation",
|
|
4947
4966
|
badge: "{count, plural, one {# nouveauté} other {# nouveautés}}",
|
|
4948
|
-
"badge-dot": "nouveauté"
|
|
4967
|
+
"badge-dot": "nouveauté",
|
|
4968
|
+
"aside-main": "Contenu",
|
|
4969
|
+
"aside-preview": "Aperçu",
|
|
4970
|
+
"aside-toggle": "Affichage"
|
|
4949
4971
|
},
|
|
4950
4972
|
"top-app-bar": {
|
|
4951
4973
|
account: "Menu du compte",
|