@nxgt/material 3.93.0 → 3.94.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 +16 -0
- package/README.md +2 -1
- package/dist/{alert-dialog-D37eph4I.js → alert-dialog-BaqK-rmd.js} +1 -1
- package/dist/{async-slice-BSqwhAj-.js → async-slice-BfNpIJAH.js} +1 -1
- package/dist/{button-CG9SBAT-.js → button-CozGHXAv.js} +1 -1
- package/dist/{calculator-YD3I3y-I.js → calculator-BIx6cwgU.js} +10 -10
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-segment-Cjec9zi7.js → calculator-segment-BsaxUtzL.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-BbUSBl3i.js → chip-DMEUGYdC.js} +2 -2
- package/dist/{code-editor-ZEM7AAcs.js → code-editor-BWfky-aN.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-CAuHPrHd.js → code-language-items-BUaNYJuw.js} +2 -2
- package/dist/{components-CuFTrmGy.js → components-CZpdAQMh.js} +19525 -19105
- package/dist/components.js +38 -38
- package/dist/{conversion-variant-DmEtTCSP.js → conversion-variant-aIBhul_U.js} +3 -3
- package/dist/{currency-field-CabGnVO9.js → currency-field-IcEMAcAw.js} +5 -5
- package/dist/{dialog-Jhpx6ulb.js → dialog-H40HjqXN.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-nl0Q3tQ2.js → dropdown-menu-CawkIlW8.js} +1 -1
- package/dist/editor.js +442 -442
- package/dist/{empty-state-mrJuqph3.js → empty-state-sRVjgCis.js} +1 -1
- package/dist/{financial-variant-P8gFA9aI.js → financial-variant-Bqo9-swy.js} +5 -5
- package/dist/{hooks-CjSpziWf.js → hooks-BTj_WJm9.js} +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-BNb1M8ij.js → hover-card-BZU1DWGY.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-CVMHwdFm.js → icon-badge-CXgvqMsM.js} +1 -1
- package/dist/{icon-button-Ch0PThsa.js → icon-button-B9WjQ3RO.js} +1 -1
- package/dist/{input-group-CPMSQcBx.js → input-group-Df9vp2EZ.js} +1 -1
- package/dist/lib/components/ui/display/entity-header/entity-metadata.d.ts +0 -7
- package/dist/lib/components/ui/display/entity-header/entity-stats.d.ts +2 -1
- package/dist/lib/components/ui/display/markdown/markdown.d.ts +2 -2
- package/dist/lib/components/ui/display/markdown/rehype-katex-classes.d.ts +21 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/index.d.ts +1 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/index.d.ts +2 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-preview.d.ts +6 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-syntax-help.d.ts +4 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-tabs.d.ts +13 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-textarea-field.d.ts +23 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-textarea-form-field.d.ts +3 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/use-text-value.d.ts +6 -0
- package/dist/lib/components/ui/widgets/education/questions/index.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/partials/question-hints.d.ts +9 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/question-reveal.d.ts +13 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/rich-text.d.ts +17 -0
- package/dist/lib/components/ui/widgets/education/questions/types.d.ts +40 -1
- package/dist/lib/i18n/resources/en/en.d.ts +24 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +24 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +24 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +24 -0
- package/dist/lib/i18n/resources/resources.d.ts +48 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +54 -54
- package/dist/map.js +7 -7
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{percent-field-TWyupyr_.js → percent-field-DrI4_J7x.js} +1 -1
- package/dist/{picker-surface-CoNsDWxX.js → picker-surface-D2aYI4v7.js} +4 -4
- package/dist/{popover-BA1U82Wk.js → popover-QQYPWzw6.js} +1 -1
- package/dist/{pos-types-BQqv-kb6.js → pos-types-BIeZGGAs.js} +1 -1
- package/dist/{pos-variant-D043n5y8.js → pos-variant-Cdn1AVoA.js} +4 -4
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-jneMqtLs.js → programmer-variant-CMBybkqw.js} +2 -2
- package/dist/{public-DgrbdeZj.js → public-CPxFxbi4.js} +9 -9
- package/dist/{rich-code-block-CGNjHawR.js → rich-code-block-DKJ8eKzL.js} +5 -5
- package/dist/{scientific-variant-1L7brNNT.js → scientific-variant-CXL1ayb7.js} +2 -2
- package/dist/{sortable-provider-DZLV_svg.js → sortable-provider-BYqwwyr1.js} +2 -2
- package/dist/{spinner-CQqRWxAW.js → spinner-D7ol2n_-.js} +1 -1
- package/dist/{tabs-DQTx3C8e.js → tabs-DyiFTy5g.js} +1 -1
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-3NQ3VmJH.js → theme-toggle-QZ0bIrg9.js} +1 -1
- package/dist/{toolbar-items-BYCdJGUf.js → toolbar-items-BpOEBsSt.js} +4 -4
- package/dist/{translate-material-jxfcGlD5.js → translate-material-DlMetRSJ.js} +1 -1
- package/dist/{translator-6XuDmqUJ.js → translator-VtzVrnLm.js} +48 -0
- package/dist/{use-chat-composer-1eb4I1kM.js → use-chat-composer-DQ2rTD_q.js} +17 -17
- package/dist/{use-heading-spy-CzPujlKr.js → use-heading-spy-17B5xa7B.js} +4 -4
- package/dist/{use-material-translation-BUPqNmAg.js → use-material-translation-Cx5u36V5.js} +1 -1
- package/dist/{use-return-focus-B_enQxp5.js → use-return-focus-S7g7q_Yn.js} +1 -1
- package/docs/components/data-display.md +7 -6
- package/docs/components/form-fields.md +39 -0
- package/docs/components/rich-widgets.md +29 -0
- package/docs/guides/csp.md +20 -8
- package/docs/guides/forms.md +1 -0
- package/docs/guides/i18n.md +1 -1
- package/docs/previews/data-display-entityheader.webp +0 -0
- package/docs/previews/form-fields-markdowntextareafield.webp +0 -0
- package/docs/troubleshooting.md +22 -6
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { t } from "./use-material-translation-
|
|
2
|
+
import { t } from "./use-material-translation-Cx5u36V5.js";
|
|
3
3
|
import { t as n } from "./typography-CYEquVeb.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
5
|
import { Suspense as d } from "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { d as e, n as t, r as n, t as r } from "./tabs-
|
|
2
|
-
import { t as i } from "./use-material-translation-
|
|
3
|
-
import { r as a, t as o } from "./currency-field-
|
|
4
|
-
import { t as s } from "./percent-field-
|
|
1
|
+
import { d as e, n as t, r as n, t as r } from "./tabs-DyiFTy5g.js";
|
|
2
|
+
import { t as i } from "./use-material-translation-Cx5u36V5.js";
|
|
3
|
+
import { r as a, t as o } from "./currency-field-IcEMAcAw.js";
|
|
4
|
+
import { t as s } from "./percent-field-DrI4_J7x.js";
|
|
5
5
|
import { n as c } from "./calculator-context-BugcKuVG.js";
|
|
6
6
|
import { t as l } from "./calculator-announce-DRd2c6Dq.js";
|
|
7
7
|
import { n as u, t as d } from "./calculator-panel-announce-AZSnZUSr.js";
|
|
8
8
|
import { t as f } from "./currency-B-r3ig11.js";
|
|
9
|
-
import { t as p } from "./calculator-segment-
|
|
9
|
+
import { t as p } from "./calculator-segment-BsaxUtzL.js";
|
|
10
10
|
import { useId as m, useMemo as h, useState as g } from "react";
|
|
11
11
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
12
12
|
import { currencyFractionDigits as y } from "@nxgt/material-core/currency-digits";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e } from "./translate-material-
|
|
2
|
-
import { n as t } from "./use-heading-spy-
|
|
1
|
+
import { i as e } from "./translate-material-DlMetRSJ.js";
|
|
2
|
+
import { n as t } from "./use-heading-spy-17B5xa7B.js";
|
|
3
3
|
import { t as n } from "./number.utils-CSueQZcv.js";
|
|
4
4
|
import { useCallback as r, useEffect as i, useLayoutEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
5
5
|
import { jsx as l } from "react/jsx-runtime";
|
package/dist/hooks.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./use-ssr-media-query-C6M5m8sf.js";
|
|
2
2
|
import { a as t, i as n, o as r, r as i, s as a } from "./theme-store-BdPp43cV.js";
|
|
3
3
|
import { n as o, t as s } from "./use-theme-BCLireTd.js";
|
|
4
|
-
import { a as c, i as l, m as u, o as d, r as f, s as p, t as m } from "./use-heading-spy-
|
|
4
|
+
import { a as c, i as l, m as u, o as d, r as f, s as p, t as m } from "./use-heading-spy-17B5xa7B.js";
|
|
5
5
|
import { r as h } from "./use-csp-nonce-ZKs9k-ov.js";
|
|
6
6
|
import { t as g } from "./use-mobile-BDro060N.js";
|
|
7
7
|
import { t as _ } from "./use-scroll-away-PQRFZkT2.js";
|
|
8
|
-
import { _ as v, a as y, c as b, d as x, f as S, g as C, h as w, i as T, l as E, m as D, n as O, o as k, p as A, r as j, s as M, t as N, u as P, v as F } from "./hooks-
|
|
8
|
+
import { _ as v, a as y, c as b, d as x, f as S, g as C, h as w, i as T, l as E, m as D, n as O, o as k, p as A, r as j, s as M, t as N, u as P, v as F } from "./hooks-BTj_WJm9.js";
|
|
9
9
|
export { i as DEFAULT_THEME, n as applyResolvedTheme, t as applyThemeName, M as buildOptions, l as busySettler, D as clearDrafts, c as createSubmitGuard, b as extractNode, v as isLeaving, r as resolveTheme, a as resolveThemeName, F as shouldBlockNavigation, k as startPoll, C as useAllowedTransitions, f as useCountdown, h as useCspNonce, O as useDiscardGuard, w as useDrafts, p as useFocusOnMount, A as useFormatters, m as useHeadingSpy, o as useIsClient, g as useIsMobile, u as useLocalizedDate, x as useNavigationHandler, S as useNavigationHandlers, P as useNumberFormatter, E as useOptions, y as usePoll, T as useReactRouterBlock, _ as useScrollAway, j as useSearchParam, e as useSsrMediaQuery, d as useSubmitOnce, s as useTheme, N as useUnsavedGuard };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { o as t } from "./dist-DVRQkaTK.js";
|
|
3
3
|
import { i as n, r, t as i } from "./dist-DWZXlCZR.js";
|
|
4
|
-
import { S as a, d as o, f as s, l as c, p as l, x as u } from "./spinner-
|
|
4
|
+
import { S as a, d as o, f as s, l as c, p as l, x as u } from "./spinner-D7ol2n_-.js";
|
|
5
5
|
import { a as d, i as f } from "./dist-DHdUUM1w.js";
|
|
6
6
|
import { t as p } from "./in-dialog-D61Yeaol.js";
|
|
7
7
|
import { i as m } from "./escape-owner-DpaP0lm1.js";
|
package/dist/i18n.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./is-production-GLw59WU8.js";
|
|
2
|
-
import { c as t, d as n, i as r, l as i, n as a, o, r as s, t as c, u as l } from "./translator-
|
|
3
|
-
import { i as u, n as d, r as f, t as p } from "./translate-material-
|
|
2
|
+
import { c as t, d as n, i as r, l as i, n as a, o, r as s, t as c, u as l } from "./translator-VtzVrnLm.js";
|
|
3
|
+
import { i as u, n as d, r as f, t as p } from "./translate-material-DlMetRSJ.js";
|
|
4
4
|
import { o as m, t as h } from "./merge-BCZE6HGq.js";
|
|
5
|
-
import { t as g } from "./use-material-translation-
|
|
5
|
+
import { t as g } from "./use-material-translation-Cx5u36V5.js";
|
|
6
6
|
import { useCallback as _ } from "react";
|
|
7
7
|
//#region lib/i18n/merge-resources.ts
|
|
8
8
|
function v(e, t, n = "") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { t } from "./icon-button-
|
|
2
|
+
import { t } from "./icon-button-B9WjQ3RO.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region lib/components/ui/actions/icon-button/icon-badge.tsx
|
|
5
5
|
function r({ children: r, className: i, ...a }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { n as t } from "./use-shape-morph-BKA_R5P5.js";
|
|
3
3
|
import { n, t as r } from "./dist-DVRQkaTK.js";
|
|
4
|
-
import { n as i, t as a } from "./spinner-
|
|
4
|
+
import { n as i, t as a } from "./spinner-D7ol2n_-.js";
|
|
5
5
|
import { t as o } from "./dist-DkQbkF9T.js";
|
|
6
6
|
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./use-click-lock-Bwg_caHO.js";
|
|
7
7
|
import { t as m } from "./is-production-GLw59WU8.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { t } from "./dist-DkQbkF9T.js";
|
|
3
|
-
import { t as n } from "./icon-button-
|
|
3
|
+
import { t as n } from "./icon-button-B9WjQ3RO.js";
|
|
4
4
|
import { a as r, o as i } from "./input-CC2joTjB.js";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
6
|
//#region lib/components/ui/primitives/input-group/input-group.tsx
|
|
@@ -4,12 +4,5 @@ type EntityMetadataProps = {
|
|
|
4
4
|
value: React.ReactNode;
|
|
5
5
|
}[];
|
|
6
6
|
};
|
|
7
|
-
/**
|
|
8
|
-
* The facts under an EntityHeader's title: a quiet label beside its value, in
|
|
9
|
-
* a description list so assistive tech reads the pairs. Empty values drop out.
|
|
10
|
-
* A link in a value takes the primary text colour, not the prose link's info.
|
|
11
|
-
* Each label sits on its value's first baseline, so a taller value (a link with
|
|
12
|
-
* a touch target) does not drop below it.
|
|
13
|
-
*/
|
|
14
7
|
export declare function EntityMetadata({ data }: EntityMetadataProps): import("react").JSX.Element | null;
|
|
15
8
|
export {};
|
|
@@ -11,6 +11,7 @@ export declare const hasStatValue: (stat: EntityStat) => boolean;
|
|
|
11
11
|
* The figures of an EntityHeader (counts, a mean) as compact StatCard tiles in
|
|
12
12
|
* a StatCardGroup: 2×2 on a phone, a row that wraps beside. A tile with a `tone` is tonal; without one it is outlined.
|
|
13
13
|
*/
|
|
14
|
-
export declare function EntityStats({ data }: {
|
|
14
|
+
export declare function EntityStats({ data, className, }: {
|
|
15
15
|
data: EntityStat[];
|
|
16
|
+
className?: string;
|
|
16
17
|
}): import("react").JSX.Element | null;
|
|
@@ -5,8 +5,8 @@ export type MarkdownProps = {
|
|
|
5
5
|
emojis?: EmojiItem[];
|
|
6
6
|
/**
|
|
7
7
|
* Render `$...$` and `$$...$$` with KaTeX. Default `true`. Under a strict CSP
|
|
8
|
-
* it needs
|
|
9
|
-
*
|
|
8
|
+
* it needs no `style-src-attr`: KaTeX's inline styles become classes and one
|
|
9
|
+
* `<style>` that takes the `NonceProvider` nonce (csp.md).
|
|
10
10
|
*/
|
|
11
11
|
math?: boolean;
|
|
12
12
|
/**
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Root } from 'hast';
|
|
2
|
+
/**
|
|
3
|
+
* Replaces the inline `style="…"` attributes KaTeX puts on its markup with
|
|
4
|
+
* classes, and appends one `<style>` (given the CSP nonce) holding their
|
|
5
|
+
* rules. A `style` attribute needs `style-src-attr 'unsafe-inline'`, which a
|
|
6
|
+
* server-rendered page cannot avoid otherwise (hydration does not rewrite it);
|
|
7
|
+
* a nonce'd `<style>` element is allowed by `style-src-elem 'nonce-…'`.
|
|
8
|
+
*
|
|
9
|
+
* Runs after `rehype-katex`. A class names one declaration list, by hash, so
|
|
10
|
+
* the server and the client render the same markup. A declaration that is not
|
|
11
|
+
* a plain `property:value` (a quote, a brace, `url(`, a backslash, `@`) is
|
|
12
|
+
* dropped, so no markup can smuggle a rule out of the sheet.
|
|
13
|
+
*/
|
|
14
|
+
export type RehypeKatexClassesOptions = {
|
|
15
|
+
nonce?: string;
|
|
16
|
+
};
|
|
17
|
+
/** FNV-1a, base 36: short and stable between server and client. */
|
|
18
|
+
export declare function hashDeclarations(text: string): string;
|
|
19
|
+
/** The declarations of a `style` value that are safe to put in a sheet. */
|
|
20
|
+
export declare function safeDeclarations(style: string): string[];
|
|
21
|
+
export declare function rehypeKatexClasses(options?: RehypeKatexClassesOptions): (tree: Root) => void;
|