@nxgt/material 3.86.2 → 3.87.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 +1 -0
- package/dist/{alert-dialog-DZnt8PYE.js → alert-dialog-DC_9MW49.js} +1 -1
- package/dist/{async-slice-D3OdV2BS.js → async-slice-C6XbESai.js} +1 -1
- package/dist/{button-MAL5an7L.js → button-BksHtogl.js} +1 -1
- package/dist/{calculator-C3a8YMwl.js → calculator-C_dTrMWE.js} +10 -10
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-segment-BigMpjhn.js → calculator-segment-FOUl66f6.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-DKAKoNxq.js → chip-BWaC87zs.js} +2 -2
- package/dist/{code-editor-B6dFQSUJ.js → code-editor-ddbQ0pEc.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-CXEMiWoF.js → code-language-items-jRlQfjAm.js} +2 -2
- package/dist/components/components.css +2 -0
- package/dist/components/ui/collections/marking-list/marking-list.css +16 -0
- package/dist/components/ui/primitives/toggle-group/toggle-group-connected.css +1 -1
- package/dist/components/ui/primitives/toggle-group/toggle-group-segmented.css +1 -1
- package/dist/components/ui/primitives/toggle-group/toggle-group-separate.css +1 -1
- package/dist/components/ui/primitives/toggle-group/toggle-group.css +12 -1
- package/dist/{components-BTukNsPn.js → components-B5p3JKhQ.js} +15864 -15487
- package/dist/components.js +37 -37
- package/dist/{conversion-variant-BT5n4-jm.js → conversion-variant-Cauk0BMS.js} +3 -3
- package/dist/{currency-field-t41sFYg_.js → currency-field-Dy2e9kSr.js} +4 -4
- package/dist/{dialog-BjKiRXJg.js → dialog-DNDT81SC.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-IRFp4CH9.js → dropdown-menu-DtVC2xQW.js} +1 -1
- package/dist/editor.js +7 -7
- package/dist/{empty-state-C70prDDr.js → empty-state-Dfsp5UF4.js} +1 -1
- package/dist/{financial-variant-BIpzs8IL.js → financial-variant-0fJAMale.js} +5 -5
- package/dist/{hooks-CjO11MS7.js → hooks-kPRle6lM.js} +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-cU_aJa18.js → hover-card-CsxW7S7D.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-D3KO6uEQ.js → icon-badge-8CPy2xAU.js} +1 -1
- package/dist/{icon-button-DrqNk1Ww.js → icon-button-caFcCpXV.js} +1 -1
- package/dist/lib/components/ui/collections/filter/sections/filter-sections-classes.d.ts +4 -3
- package/dist/lib/components/ui/collections/index.d.ts +1 -0
- package/dist/lib/components/ui/collections/marking-list/index.d.ts +2 -0
- package/dist/lib/components/ui/collections/marking-list/marking-list.d.ts +11 -0
- package/dist/lib/components/ui/collections/marking-list/marking-list.utils.d.ts +18 -0
- package/dist/lib/components/ui/collections/marking-list/partials/marking-row-item.d.ts +16 -0
- package/dist/lib/components/ui/collections/marking-list/partials/marking-segments.d.ts +20 -0
- package/dist/lib/components/ui/collections/marking-list/partials/marking-set-remaining.d.ts +11 -0
- package/dist/lib/components/ui/collections/marking-list/partials/marking-tally.d.ts +14 -0
- package/dist/lib/components/ui/collections/marking-list/types.d.ts +74 -0
- package/dist/lib/components/ui/collections/marking-list/use-marking-expanded.d.ts +9 -0
- package/dist/lib/components/ui/collections/marking-list/use-marking-focus.d.ts +22 -0
- package/dist/lib/components/ui/collections/marking-list/use-marking-handlers.d.ts +11 -0
- package/dist/lib/components/ui/collections/marking-list/use-tally-speech.d.ts +16 -0
- package/dist/lib/components/ui/collections/page-footer/page-footer.d.ts +5 -1
- package/dist/lib/components/ui/collections/server-table/index.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/server-table-paging.d.ts +8 -0
- package/dist/lib/components/ui/collections/server-table/types-paging.d.ts +6 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/i18n/resources/en/en.d.ts +10 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +10 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +10 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +10 -0
- package/dist/lib/i18n/resources/resources.d.ts +20 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +53 -53
- package/dist/map.js +7 -7
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{percent-field-D47IlaPF.js → percent-field-B6mJfY_p.js} +1 -1
- package/dist/{picker-surface-Cg4V4-E0.js → picker-surface-CVAW0t-r.js} +4 -4
- package/dist/{popover-Dzk4-l9U.js → popover-DhRPftzZ.js} +1 -1
- package/dist/{pos-types-JOXMY4Y2.js → pos-types-QcM9WTr0.js} +1 -1
- package/dist/{pos-variant-B2mS8bMB.js → pos-variant-BeON2e_Q.js} +4 -4
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-C_Tl0P4_.js → programmer-variant-3cEMiII7.js} +2 -2
- package/dist/{public-ByAsqBOf.js → public-DezkDXv3.js} +10 -10
- package/dist/{rich-code-block-CJAfqk6b.js → rich-code-block-DloPqrFQ.js} +5 -5
- package/dist/{scientific-variant-CskM4MLV.js → scientific-variant-0Fq8HLiY.js} +2 -2
- package/dist/{sortable-provider-ICS_vkLA.js → sortable-provider-OB35mdNh.js} +2 -2
- package/dist/{spinner-CweqX5A9.js → spinner-CngjH5-n.js} +1 -1
- package/dist/{tabs-95Y2LmnV.js → tabs-C0CPqX5U.js} +1 -1
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-WAFkncYx.js → theme-toggle-BfXRbCwj.js} +1 -1
- package/dist/{toolbar-items-BsgzHSNf.js → toolbar-items-BU5_H3UA.js} +4 -4
- package/dist/{translate-material-DTIAPmlU.js → translate-material-B1wzg7uX.js} +1 -1
- package/dist/{translator-BRZNhsy5.js → translator-BwUYrek9.js} +20 -0
- package/dist/{use-chat-composer-CleSUh_y.js → use-chat-composer-Bsc1gCRQ.js} +15 -15
- package/dist/{use-heading-spy-D8WbHJuK.js → use-heading-spy-BpeWvZ2y.js} +4 -4
- package/dist/{use-material-translation-CCy1Me0h.js → use-material-translation-BDVGF7-Z.js} +1 -1
- package/dist/{use-return-focus-BA8G1qVU.js → use-return-focus-BttT8j1o.js} +1 -1
- package/docs/components/data-table-filter-and-lists.md +103 -0
- package/docs/components/primitives.md +4 -1
- package/docs/guides/theming.md +1 -1
- package/docs/previews/data-table-filter-lists-markinglist.webp +0 -0
- package/docs/roadmap.md +7 -2
- package/lib/components/components.css +2 -0
- package/lib/components/ui/collections/marking-list/marking-list.css +16 -0
- package/lib/components/ui/primitives/toggle-group/toggle-group-connected.css +1 -1
- package/lib/components/ui/primitives/toggle-group/toggle-group-segmented.css +1 -1
- package/lib/components/ui/primitives/toggle-group/toggle-group-separate.css +1 -1
- package/lib/components/ui/primitives/toggle-group/toggle-group.css +12 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @nxgt/material
|
|
2
2
|
|
|
3
|
+
## 3.87.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#2548](https://github.com/softistx/nxgt-material/pull/2548) [`ee28df1`](https://github.com/softistx/nxgt-material/commit/ee28df144cd88f74549b8b622815e7b5be232077) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Cap the cursor trail. `table-url`'s `readCursor`, `nextPage`, `previousPage` and `serverPagination` take a `maxTrail` option (unbounded by default); past it the oldest cursors collapse into a counted cut mark (`trail=~3,c4,c5`, `CUT_MARK`), so the URL stays short and the page offset stays exact (`pageIndex`, `pageOffset`). Previous from the cut goes to the first page; URLs without a cut mark read as before. `ServerTable` and `PageFooter` take a `maxTrail` prop, `20` by default.
|
|
8
|
+
|
|
9
|
+
- [#2551](https://github.com/softistx/nxgt-material/pull/2551) [`ce86bd3`](https://github.com/softistx/nxgt-material/commit/ce86bd3a33cb6acfdbc44eed7b387dacf5866544) Thanks [@SteveGT96](https://github.com/SteveGT96)! - New `MarkingList`, for marking many people quickly (a roll call, a grade-sheet-like screen): rows of a person, each with the same app-defined segmented choice (`choices`: id, label, tone, icon; controlled `value`, `onValueChange`), an on-demand detail (`renderDetail`, with `defaultExpanded` or controlled `expanded` / `onExpandedChange`), `locked` rows with their reason (focusable, `aria-disabled`, described by the reason), one tab stop with arrow-key navigation across segments, rows and the expand button, `onSetRemaining` (with `setRemainingChoices`) to apply a choice to every unmarked row, a tally that counts locked rows apart and speaks only on bulk changes or once marking pauses, a check on the chosen segment and forced-colours styles, and 48px targets in one column on a phone. Adds the `marking-list.*` i18n keys (en, fr). Fixes [#2547](https://github.com/softistx/nxgt-material/issues/2547).
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#2552](https://github.com/softistx/nxgt-material/pull/2552) [`5f4f40a`](https://github.com/softistx/nxgt-material/commit/5f4f40a954ad4b49c78999b0429559c980b5e2e2) Thanks [@SteveGT96](https://github.com/SteveGT96)! - On a coarse pointer, `AppBreadcrumb`/`BreadcrumbLink` crumbs, the filter bar's search input (the `ServerTable` search, at both densities) and the `RepeatableGroup`/`ChoiceListFormField` move up/down buttons are 44x44 at every width (they were 76x28, 196x40 and 36x36 from 768px). A mouse keeps the same layout. Fixes [#2550](https://github.com/softistx/nxgt-material/issues/2550).
|
|
14
|
+
|
|
15
|
+
- [#2558](https://github.com/softistx/nxgt-material/pull/2558) [`98c753d`](https://github.com/softistx/nxgt-material/commit/98c753dba068c500d530d38c29d42beb031b3736) Thanks [@SteveGT96](https://github.com/SteveGT96)! - On a coarse pointer, every `ToggleGroup` item (connected, segmented and separate, single and multiple, every size, icon-only ones included) is at least 44x44. A mouse keeps the same sizes. Fixes [#2557](https://github.com/softistx/nxgt-material/issues/2557).
|
|
16
|
+
- Updated dependencies [[`ee28df1`](https://github.com/softistx/nxgt-material/commit/ee28df144cd88f74549b8b622815e7b5be232077)]:
|
|
17
|
+
- @nxgt/material-core@0.52.0
|
|
18
|
+
|
|
3
19
|
## 3.86.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -792,6 +792,7 @@ Not components: what the stylesheet gives any element.
|
|
|
792
792
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-table-filter-lists-pagination.webp" width="120" alt="Pagination"> | [`Pagination`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-table-filter-and-lists.md#pagination), `PaginationContent`, `PaginationItem`, `PaginationFirst`, `PaginationLast`, `PaginationLink`, `PaginationBar`, `paginationItems`… | Pagination primitives, with first / last links. `PaginationBar` adds a sibling window with ellipses. | `Pagination` (parts), `PaginationFirst`, `PaginationLast`, `PaginationLink`, `PaginationBar`, `paginationItems` |
|
|
793
793
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-table-filter-lists-tree.webp" width="120" alt="Tree"> | [`Tree`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-table-filter-and-lists.md#tree), `TreeItem`, `useTree` | Expandable tree with none, single or multiple selection and keyboard navigation. | `Tree`, `TreeItem`, `useTree` |
|
|
794
794
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-table-filter-lists-listpane.webp" width="120" alt="ListPane"> | [`ListPane`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-table-filter-and-lists.md#listpane), `ListPaneItem` | A card for a list: select-all, title, count pill, filter, a scrolling body and a footer; `ListPaneItem` is its row (media, description, badge, trailing buttons, `compact` density, `card` appearance). | — (later) |
|
|
795
|
+
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-table-filter-lists-markinglist.webp" width="120" alt="MarkingList"> | [`MarkingList`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-table-filter-and-lists.md#markinglist) | People in rows with a shared app-defined segmented choice (present, absent, late), an on-demand detail, locked rows with their reason, arrow-key navigation, "set remaining to" and a tally; 48px targets on a phone. | — (later, #2549) |
|
|
795
796
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-table-filter-lists-drag-and-drop.webp" width="120" alt="DndProvider"> | [`DndProvider`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-table-filter-and-lists.md#drag-and-drop), `Draggable`, `Droppable`, `Sortable`, `DragHandle`… | Drag-and-drop primitives; see [dnd](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/helpers.md#nxgtmaterialdnd). | `DndProvider`, `Draggable`, `Droppable`, `Sortable`, `DragHandle` |
|
|
796
797
|
|
|
797
798
|
### Navigation & layout
|
|
@@ -4,7 +4,7 @@ import { o as n } from "./dist-DVRQkaTK.js";
|
|
|
4
4
|
import { r } from "./dist-DWZXlCZR.js";
|
|
5
5
|
import { a as i } from "./dist-DHdUUM1w.js";
|
|
6
6
|
import { t as a } from "./in-dialog-D61Yeaol.js";
|
|
7
|
-
import { a as o, c as s, d as c, i as l, l as u, n as d, o as f, r as p, s as m, t as h, u as g } from "./use-return-focus-
|
|
7
|
+
import { a as o, c as s, d as c, i as l, l as u, n as d, o as f, r as p, s as m, t as h, u as g } from "./use-return-focus-BttT8j1o.js";
|
|
8
8
|
import { i as _ } from "./escape-owner-DpaP0lm1.js";
|
|
9
9
|
import * as v from "react";
|
|
10
10
|
import { Fragment as y, isValidElement as b } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as e, r as t, s as n, u as r } from "./translator-
|
|
1
|
+
import { l as e, r as t, s as n, u as r } from "./translator-BwUYrek9.js";
|
|
2
2
|
import { t as i } from "./_baseIsEqual-C6ksIHya.js";
|
|
3
3
|
import { useMemo as a } from "react";
|
|
4
4
|
import { asyncThunkCreator as o, buildCreateSlice as s } from "@reduxjs/toolkit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { n as t, t as n } from "./dist-DVRQkaTK.js";
|
|
3
|
-
import { n as r, t as i } from "./spinner-
|
|
3
|
+
import { n as r, t as i } from "./spinner-CngjH5-n.js";
|
|
4
4
|
import { t as a } from "./dist-DkQbkF9T.js";
|
|
5
5
|
import { a as o, i as s, n as c, o as l, s as u, t as d } from "./use-click-lock-Bwg_caHO.js";
|
|
6
6
|
import { t as f } from "./is-production-GLw59WU8.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { n as t, r as n, t as r, u as i } from "./tabs-
|
|
3
|
-
import { t as a } from "./button-
|
|
4
|
-
import { t as o } from "./use-material-translation-
|
|
5
|
-
import { t as s } from "./icon-button-
|
|
2
|
+
import { n as t, r as n, t as r, u as i } from "./tabs-C0CPqX5U.js";
|
|
3
|
+
import { t as a } from "./button-BksHtogl.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-BDVGF7-Z.js";
|
|
5
|
+
import { t as s } from "./icon-button-caFcCpXV.js";
|
|
6
6
|
import { t as c } from "./copy-to-clipboard-Be5Ffvs_.js";
|
|
7
7
|
import { t as l } from "./useEvent-2fKq-6w8.js";
|
|
8
8
|
import { t as u } from "./useLatest-C2PnQEeD.js";
|
|
@@ -11,7 +11,7 @@ import { t as f } from "./skeleton-DSdtr2qc.js";
|
|
|
11
11
|
import { t as p } from "./live-status-BGPaN8r8.js";
|
|
12
12
|
import { n as m, t as h } from "./calculator-context-BugcKuVG.js";
|
|
13
13
|
import { a as g, c as _, i as v, l as y, n as b, o as ee, r as te, s as ne } from "./calculator-announce-DRd2c6Dq.js";
|
|
14
|
-
import { i as re, t as ie } from "./pos-types-
|
|
14
|
+
import { i as re, t as ie } from "./pos-types-QcM9WTr0.js";
|
|
15
15
|
import { a as ae, r as oe } from "./key-layout-cR79xfGE.js";
|
|
16
16
|
import { n as x, r as se, t as ce } from "./programmer-word-CNCF7DJF.js";
|
|
17
17
|
import { t as le } from "./standard-layout-BuSRr3TY.js";
|
|
@@ -279,11 +279,11 @@ function Le({ helpId: e }) {
|
|
|
279
279
|
//#endregion
|
|
280
280
|
//#region lib/components/ui/widgets/calculator/variants/variant-loader.ts
|
|
281
281
|
var Re = {
|
|
282
|
-
scientific: () => import("./scientific-variant-
|
|
283
|
-
pos: () => import("./pos-variant-
|
|
284
|
-
programmer: () => import("./programmer-variant-
|
|
285
|
-
financial: () => import("./financial-variant-
|
|
286
|
-
conversion: () => import("./conversion-variant-
|
|
282
|
+
scientific: () => import("./scientific-variant-0Fq8HLiY.js"),
|
|
283
|
+
pos: () => import("./pos-variant-BeON2e_Q.js"),
|
|
284
|
+
programmer: () => import("./programmer-variant-3cEMiII7.js"),
|
|
285
|
+
financial: () => import("./financial-variant-0fJAMale.js"),
|
|
286
|
+
conversion: () => import("./conversion-variant-Cauk0BMS.js")
|
|
287
287
|
}, B = "failed", V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Set(), W = () => {
|
|
288
288
|
for (let e of U) e();
|
|
289
289
|
};
|
package/dist/calculator-field.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { t } from "./button-
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
4
|
-
import { t as r } from "./icon-button-
|
|
5
|
-
import { a as i, i as a, n as o, r as s, t as c } from "./picker-surface-
|
|
6
|
-
import { r as l, t as u } from "./currency-field-
|
|
2
|
+
import { t } from "./button-BksHtogl.js";
|
|
3
|
+
import { t as n } from "./use-material-translation-BDVGF7-Z.js";
|
|
4
|
+
import { t as r } from "./icon-button-caFcCpXV.js";
|
|
5
|
+
import { a as i, i as a, n as o, r as s, t as c } from "./picker-surface-CVAW0t-r.js";
|
|
6
|
+
import { r as l, t as u } from "./currency-field-Dy2e9kSr.js";
|
|
7
7
|
import { r as d, t as f } from "./field-blur-DkiZOVNV.js";
|
|
8
|
-
import { t as p } from "./calculator-
|
|
8
|
+
import { t as p } from "./calculator-C_dTrMWE.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 { Calculator as y } from "lucide-react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-BDVGF7-Z.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
//#region lib/components/ui/widgets/calculator/partials/calculator-segment.tsx
|
|
4
4
|
function n({ label: n, choices: r, value: i, nameKey: a, onChange: o }) {
|
package/dist/calculator.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./calculator-
|
|
1
|
+
import { n as e, t } from "./calculator-C_dTrMWE.js";
|
|
2
2
|
export { e as CALCULATOR_VARIANTS, t as Calculator };
|
package/dist/charts.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./ui.utils-CAnKTCw5.js";
|
|
2
2
|
import { t } from "./utils-BLfntITJ.js";
|
|
3
3
|
import { t as n } from "./warn-once-C_e47JM8.js";
|
|
4
|
-
import { t as r } from "./button-
|
|
5
|
-
import { t as i } from "./use-material-translation-
|
|
4
|
+
import { t as r } from "./button-BksHtogl.js";
|
|
5
|
+
import { t as i } from "./use-material-translation-BDVGF7-Z.js";
|
|
6
6
|
import { t as a } from "./use-ssr-media-query-C6M5m8sf.js";
|
|
7
7
|
import { i as o, n as s, r as c, t as l } from "./util-4heV2LPI.js";
|
|
8
8
|
import { t as u } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
|
|
9
|
-
import { t as d } from "./chip-
|
|
9
|
+
import { t as d } from "./chip-BWaC87zs.js";
|
|
10
10
|
import { c as f, d as p, f as m, i as h, o as g, p as _, s as v, t as y } from "./line-path-C5pZGC49.js";
|
|
11
11
|
import { t as b } from "./live-status-BGPaN8r8.js";
|
|
12
12
|
import { t as x } from "./linear-G97mfnKF.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { n as t } from "./spinner-
|
|
2
|
+
import { n as t } from "./spinner-CngjH5-n.js";
|
|
3
3
|
import { s as n } from "./use-click-lock-Bwg_caHO.js";
|
|
4
|
-
import { t as r } from "./use-material-translation-
|
|
4
|
+
import { t as r } from "./use-material-translation-BDVGF7-Z.js";
|
|
5
5
|
import { t as i } from "./react-node-text-Crkpfpco.js";
|
|
6
6
|
import { cloneElement as a, isValidElement as o } from "react";
|
|
7
7
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-BFFgcFxR.js";
|
|
2
2
|
import { t } from "./utils-BLfntITJ.js";
|
|
3
3
|
import { t as n } from "./dist-DWZXlCZR.js";
|
|
4
|
-
import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-
|
|
4
|
+
import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-DtVC2xQW.js";
|
|
5
5
|
import { a as c, i as l, n as u } from "./field-blur-context-BLGgf_3z.js";
|
|
6
|
-
import { a as d, o as f, r as p, s as m, t as h } from "./toolbar-items-
|
|
6
|
+
import { a as d, o as f, r as p, s as m, t as h } from "./toolbar-items-BU5_H3UA.js";
|
|
7
7
|
import { t as g } from "./is-production-GLw59WU8.js";
|
|
8
|
-
import { t as _ } from "./use-material-translation-
|
|
9
|
-
import { i as v, n as y, o as b, t as x } from "./code-language-items-
|
|
8
|
+
import { t as _ } from "./use-material-translation-BDVGF7-Z.js";
|
|
9
|
+
import { i as v, n as y, o as b, t as x } from "./code-language-items-jRlQfjAm.js";
|
|
10
10
|
import { t as S } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
|
|
11
11
|
import { n as C, t as w } from "./escape-owner-DpaP0lm1.js";
|
|
12
12
|
import { t as T } from "./skeleton-DSdtr2qc.js";
|
package/dist/code-editor.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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, o as l } from "./code-language-items-
|
|
3
|
+
import { o as n, r, s as i, t as a } from "./toolbar-items-BU5_H3UA.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-BDVGF7-Z.js";
|
|
5
|
+
import { i as s, n as c, o as l } from "./code-language-items-jRlQfjAm.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-
|
|
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-ddbQ0pEc.js";
|
|
11
11
|
import { r as D, t as O } from "./field-blur-DkiZOVNV.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";
|
|
@@ -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-DtVC2xQW.js";
|
|
2
|
+
import { t as n } from "./use-material-translation-BDVGF7-Z.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";
|
|
@@ -148,6 +148,8 @@
|
|
|
148
148
|
@import "./ui/display/vote-tally/vote-tally.css";
|
|
149
149
|
/* TubeCap: a specimen tube chip, cap colours fixed by the tube convention. */
|
|
150
150
|
@import "./ui/display/tube-cap/tube-cap.css";
|
|
151
|
+
/* MarkingList: forced-colours rules for the chosen segment. */
|
|
152
|
+
@import "./ui/collections/marking-list/marking-list.css";
|
|
151
153
|
/* SecretCard: a face that is not rendered until it is revealed. */
|
|
152
154
|
@import "./ui/display/secret-card/secret-card.css";
|
|
153
155
|
/* Alert and Banner span the row in the form grids (#1497). */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* MarkingList: the chosen segment is also a check and a border; in forced
|
|
2
|
+
* colours it takes the system's selected colours, as the toggle group does. */
|
|
3
|
+
@media (forced-colors: active) {
|
|
4
|
+
.nxgt-marking-segment {
|
|
5
|
+
border: 1px solid ButtonText;
|
|
6
|
+
}
|
|
7
|
+
.nxgt-marking-segment[aria-pressed="true"] {
|
|
8
|
+
forced-color-adjust: none;
|
|
9
|
+
background: SelectedItem;
|
|
10
|
+
color: SelectedItemText;
|
|
11
|
+
}
|
|
12
|
+
.nxgt-marking-segment:focus-visible {
|
|
13
|
+
outline: 2px solid Highlight;
|
|
14
|
+
outline-offset: 2px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
box-shadow 160ms ease-out;
|
|
44
44
|
}
|
|
45
45
|
[data-variant="connected"] > .nxgt-toggle-group-item[data-icon-only] {
|
|
46
|
-
width: calc(var(--tg-iw) + 2 * var(--sq));
|
|
46
|
+
width: max(var(--tg-touch), calc(var(--tg-iw) + 2 * var(--sq)));
|
|
47
47
|
padding-inline: 0;
|
|
48
48
|
}
|
|
49
49
|
/* Outer corners: the row's start and end, a column's top and bottom; a
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
border-radius: var(--tg-inner);
|
|
56
56
|
}
|
|
57
57
|
[data-variant="segmented"] > .nxgt-toggle-group-item[data-icon-only] {
|
|
58
|
-
min-width: calc(var(--tg-h) + 0.25rem);
|
|
58
|
+
min-width: max(var(--tg-touch), calc(var(--tg-h) + 0.25rem));
|
|
59
59
|
}
|
|
60
60
|
[data-variant="segmented"]
|
|
61
61
|
> .nxgt-toggle-group-item:hover:not(
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
scale var(--tg-fast) var(--tg-spring-fast);
|
|
66
66
|
}
|
|
67
67
|
[data-variant="separate"] > .nxgt-toggle-group-item[data-icon-only] {
|
|
68
|
-
width: calc(var(--tg-h) + 0.25rem);
|
|
68
|
+
width: max(var(--tg-touch), calc(var(--tg-h) + 0.25rem));
|
|
69
69
|
padding-inline-start: 0.25rem;
|
|
70
70
|
}
|
|
71
71
|
[data-variant="separate"] > .nxgt-toggle-group-item:hover:not(:disabled) {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
--tg-spring: var(--nxgt-spring);
|
|
14
14
|
--tg-fast: var(--nxgt-spring-fast-duration);
|
|
15
15
|
--tg-slow: var(--nxgt-spring-duration);
|
|
16
|
+
--tg-touch: 0px;
|
|
16
17
|
--tg-h: 2.25rem;
|
|
17
18
|
--tg-pad: 1rem;
|
|
18
19
|
--tg-font: 0.875rem;
|
|
@@ -63,7 +64,8 @@
|
|
|
63
64
|
justify-content: center;
|
|
64
65
|
gap: var(--tg-lead-gap);
|
|
65
66
|
box-sizing: border-box;
|
|
66
|
-
min-width: var(--tg-h);
|
|
67
|
+
min-width: max(var(--tg-touch), var(--tg-h));
|
|
68
|
+
min-height: var(--tg-touch);
|
|
67
69
|
height: var(--tg-h);
|
|
68
70
|
padding-inline: var(--tg-pad);
|
|
69
71
|
border: 0;
|
|
@@ -104,6 +106,15 @@
|
|
|
104
106
|
cursor: not-allowed;
|
|
105
107
|
opacity: 0.45;
|
|
106
108
|
}
|
|
109
|
+
/* Touch: every item is a 44x44 box on a coarse pointer (a size sm item is
|
|
110
|
+
* 32px, an icon-only one about 36 to 42px wide). --tg-touch is the floor
|
|
111
|
+
* the item's min-width and min-height, and the variants' icon-only widths,
|
|
112
|
+
* take through max(); a fine pointer keeps the sizes above. */
|
|
113
|
+
@media (pointer: coarse) {
|
|
114
|
+
.nxgt-toggle-group {
|
|
115
|
+
--tg-touch: 2.75rem;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
107
118
|
|
|
108
119
|
/* The check a selected label-only item draws in (connected only). At rest
|
|
109
120
|
* it takes no room: no width, and a margin that cancels the gap. */
|