@nxgt/material 3.87.0 → 3.88.1
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 +20 -0
- package/README.md +1 -0
- package/dist/{alert-dialog-DC_9MW49.js → alert-dialog-CEGs7LMN.js} +1 -1
- package/dist/{async-slice-C6XbESai.js → async-slice-CR0M95Jq.js} +1 -1
- package/dist/{button-BksHtogl.js → button-DuTNpo28.js} +3 -3
- package/dist/{calculator-C_dTrMWE.js → calculator-DsGk_fCw.js} +10 -10
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-segment-FOUl66f6.js → calculator-segment-DMFptsDf.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-BWaC87zs.js → chip-C-RAjar5.js} +2 -2
- package/dist/{code-editor-ddbQ0pEc.js → code-editor-DApeIOZ3.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-jRlQfjAm.js → code-language-items-CGtYfc1l.js} +2 -2
- package/dist/components/ui/dates/duration-field/duration-field-expressive.css +1 -1
- package/dist/components/ui/dates/picker-trigger/typed-box-expressive.css +5 -24
- package/dist/{components-B5p3JKhQ.js → components-DiEY0nrG.js} +11936 -11736
- package/dist/components.js +37 -37
- package/dist/{conversion-variant-Cauk0BMS.js → conversion-variant-DfQiOwYC.js} +3 -3
- package/dist/{currency-field-Dy2e9kSr.js → currency-field-cwC7cqUE.js} +4 -4
- package/dist/{dialog-DNDT81SC.js → dialog-Bul68q8u.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-DtVC2xQW.js → dropdown-menu-xUUE5X6T.js} +1 -1
- package/dist/editor.js +7 -7
- package/dist/{empty-state-Dfsp5UF4.js → empty-state-D7ofGDU_.js} +8 -7
- package/dist/{financial-variant-0fJAMale.js → financial-variant-CYgRZzKT.js} +5 -5
- package/dist/{hooks-kPRle6lM.js → hooks-CpvvZCs7.js} +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-CsxW7S7D.js → hover-card-CZLFQwZv.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-8CPy2xAU.js → icon-badge-0Xo9q7Ey.js} +1 -1
- package/dist/{icon-button-caFcCpXV.js → icon-button-DE1EcO2-.js} +1 -1
- package/dist/lib/components/ui/collections/server-table/server-table-classes.d.ts +5 -2
- package/dist/lib/components/ui/dates/half-day-range-field/half-day-end.d.ts +21 -0
- package/dist/lib/components/ui/dates/half-day-range-field/half-day-ends.d.ts +11 -0
- package/dist/lib/components/ui/dates/half-day-range-field/half-day-range-field.d.ts +39 -0
- package/dist/lib/components/ui/dates/half-day-range-field/half-day-range-form-field.d.ts +3 -0
- package/dist/lib/components/ui/dates/half-day-range-field/half-day-range.d.ts +25 -0
- package/dist/lib/components/ui/dates/half-day-range-field/index.d.ts +3 -0
- package/dist/lib/components/ui/dates/half-day-range-field/use-half-day-draft.d.ts +30 -0
- package/dist/lib/components/ui/dates/index.d.ts +1 -0
- package/dist/lib/components/ui/dates/picker-trigger/typed-box.d.ts +1 -1
- package/dist/lib/components/ui/display/list-tile/list-tile.d.ts +2 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-line.d.ts +1 -1
- package/dist/lib/components/ui/display/list-tile/partials/list-tile-row.d.ts +3 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/i18n/resources/en/en.d.ts +7 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +7 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
- package/dist/lib/i18n/resources/resources.d.ts +14 -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-B6mJfY_p.js → percent-field-BFwxazf1.js} +1 -1
- package/dist/{picker-surface-CVAW0t-r.js → picker-surface-DkfTv_ft.js} +4 -4
- package/dist/{popover-DhRPftzZ.js → popover-BM6xApJd.js} +1 -1
- package/dist/{pos-types-QcM9WTr0.js → pos-types-CpTpT4vE.js} +1 -1
- package/dist/{pos-variant-BeON2e_Q.js → pos-variant-Bs5BUB1L.js} +4 -4
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-3cEMiII7.js → programmer-variant-B1eI1fd0.js} +2 -2
- package/dist/{public-DezkDXv3.js → public-CzLMnSsS.js} +9 -9
- package/dist/{rich-code-block-DloPqrFQ.js → rich-code-block-CdVtxD75.js} +5 -5
- package/dist/{scientific-variant-0Fq8HLiY.js → scientific-variant-rfvJKxB4.js} +2 -2
- package/dist/{sortable-provider-OB35mdNh.js → sortable-provider-BopzsciJ.js} +2 -2
- package/dist/{spinner-CngjH5-n.js → spinner-DcW21pN1.js} +1 -1
- package/dist/{tabs-C0CPqX5U.js → tabs-CdoBFtWx.js} +1 -1
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-BfXRbCwj.js → theme-toggle-Ch3GkDDU.js} +1 -1
- package/dist/{toolbar-items-BU5_H3UA.js → toolbar-items-CZ1lJXZZ.js} +4 -4
- package/dist/{translate-material-B1wzg7uX.js → translate-material-BrYBBZ66.js} +1 -1
- package/dist/{translator-BwUYrek9.js → translator-DoVsjUff.js} +14 -0
- package/dist/{use-chat-composer-Bsc1gCRQ.js → use-chat-composer-C9DG7O1Z.js} +15 -15
- package/dist/{use-heading-spy-BpeWvZ2y.js → use-heading-spy-kyOSe9rb.js} +4 -4
- package/dist/{use-material-translation-BDVGF7-Z.js → use-material-translation-BdrItuwY.js} +1 -1
- package/dist/{use-return-focus-BttT8j1o.js → use-return-focus-Cqzvj9R0.js} +1 -1
- package/docs/components/README.md +2 -1
- package/docs/components/data-table-filter-and-lists.md +1 -1
- package/docs/components/date-and-time.md +111 -0
- package/docs/guides/forms.md +1 -0
- package/docs/guides/i18n.md +7 -0
- package/docs/previews/date-time-halfdayrangefield.webp +0 -0
- package/lib/components/ui/dates/duration-field/duration-field-expressive.css +1 -1
- package/lib/components/ui/dates/picker-trigger/typed-box-expressive.css +5 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @nxgt/material
|
|
2
2
|
|
|
3
|
+
## 3.88.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2567](https://github.com/softistx/nxgt-material/pull/2567) [`cc14ef7`](https://github.com/softistx/nxgt-material/commit/cc14ef7254e85f4be7f53f10e8f50d247d45b26d) Thanks [@SteveGT96](https://github.com/SteveGT96)! - fix(button): `<Button asChild>` on an anchor keeps the button look in every variant: no link underline at rest, and `ghost` takes the foreground text colour instead of the link colour ([#2566](https://github.com/softistx/nxgt-material/issues/2566)).
|
|
8
|
+
|
|
9
|
+
- [#2560](https://github.com/softistx/nxgt-material/pull/2560) [`18cf4dd`](https://github.com/softistx/nxgt-material/commit/18cf4ddafba5c0183e2bc2b37da2e627ed5060a5) Thanks [@SteveGT96](https://github.com/SteveGT96)! - An `EmptyState`, `ListEmpty` or `ServerTable` scene (`illustration: 'no-results'`, `true`, a registered id) no longer shows an empty box while its chunk loads: the reserved box holds the built-in art until the scene replaces it, so the first paint (and a screenshot taken at once, at any width) is never blank.
|
|
10
|
+
|
|
11
|
+
- [#2562](https://github.com/softistx/nxgt-material/pull/2562) [`8a68ae9`](https://github.com/softistx/nxgt-material/commit/8a68ae9b25174a8ee8b9821ce04ec2b12a60d415) Thanks [@SteveGT96](https://github.com/SteveGT96)! - fix(list-tile): a button tile without `selected` no longer renders `aria-pressed="false"`; it is a toggle only once `selected` is given.
|
|
12
|
+
|
|
13
|
+
- [#2572](https://github.com/softistx/nxgt-material/pull/2572) [`873b344`](https://github.com/softistx/nxgt-material/commit/873b344bd297255fc46de850d3f9fa24f7179c02) Thanks [@SteveGT96](https://github.com/SteveGT96)! - fix(server-table): `surface="none"` now lines the table up flush with its container's other content: the `Table` wrapper's 4px padding is zeroed, so the header band no longer sits inset inside a Card ([#2570](https://github.com/softistx/nxgt-material/issues/2570)). The default card surface is unchanged.
|
|
14
|
+
|
|
15
|
+
- [#2561](https://github.com/softistx/nxgt-material/pull/2561) [`bc2f21a`](https://github.com/softistx/nxgt-material/commit/bc2f21aeb647840997b795e43b9589441ba34f77) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Date-type fields (date, time, duration, date range, half-day range) share the bordered field box; an invalid field no longer tints its fill.
|
|
16
|
+
|
|
17
|
+
## 3.88.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [#2556](https://github.com/softistx/nxgt-material/pull/2556) [`e04413f`](https://github.com/softistx/nxgt-material/commit/e04413ff7214dd57d0972bfd487c0996ec67bb31) Thanks [@SteveGT96](https://github.com/SteveGT96)! - New `HalfDayRangeField` and `HalfDayRangeFormField` (React Hook Form), exported from `@nxgt/material/components`: a range whose two ends are each a day plus a half, morning or afternoon, for absences and closures counted to the half day. The value is `{ start: { date, half }, end: { date, half } }` (`half` is `'morning' | 'afternoon'`, `date` the local midnight of the day), ordered on the half. `onValueChange` gets `undefined` while a day is missing and the range as soon as both days are set, even when the end is before the start (the field shows "The end cannot be before the start.", marks the halves `aria-invalid` and announces it; `HalfDayRangeFormField` adds a `validate` rule so the form refuses it, without a resolver: with zod, use `z.custom<HalfDayRange>().refine(isHalfDayRangeOrdered, …)`; a `rules.validate` of your own is kept beside it). Controlled (`value`) or uncontrolled (`defaultValue`); a reset of `value` to `undefined` empties the days unless the emitted value was already `undefined` (then give the field a `key` that changes). `minDate`, `maxDate` and `disabledDays` apply to both ends, and the end's calendar starts at the start's day. Labels come from `material.half-day-range.*` and `material.dates.start` / `end` (en and fr). `compareHalfDays`, `isHalfDayRangeOrdered`, `halfDaysIn` and `HALF_DAYS` are exported with the `HalfDay`, `HalfDayEnd` and `HalfDayRange` types. Not available in `@nxgt/material-vue` yet ([#2555](https://github.com/softistx/nxgt-material/issues/2555)). Fixes [#2546](https://github.com/softistx/nxgt-material/issues/2546).
|
|
22
|
+
|
|
3
23
|
## 3.87.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -702,6 +702,7 @@ Not components: what the stylesheet gives any element.
|
|
|
702
702
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-timefield.webp" width="120" alt="TimeField"> | [`TimeField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#timefield), `TimeStringField`, `TimeFormField` | A time typed in segments, with a button that opens a `TimePicker` in a popover, or in a bottom sheet on a phone. A tonal box; `size="sm"` is compact, `TimeStringField` takes an `HH:mm` string. | `TimeField`, `TimeFormField`; `TimeStringField`: — (later) |
|
|
703
703
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-timepicker.webp" width="120" alt="TimePicker"> | [`TimePicker`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#timepicker) | Hours and minutes as big tiles with steppers, an AM / PM pair and quick minutes (columns with `variant="columns"`), 12- or 24-hour by language. | `TimePicker` |
|
|
704
704
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-durationfield.webp" width="120" alt="DurationField"> | [`DurationField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#durationfield) · `DurationFormField` | Hours and minutes combined into a total in minutes, typed on one line, "1 h 29 min", with one −/+ pair for the focused part (`variant="fields"` for the two number fields). | `DurationField`, `DurationFormField` |
|
|
705
|
+
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-halfdayrangefield.webp" width="120" alt="HalfDayRangeField"> | [`HalfDayRangeField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#halfdayrangefield) · `HalfDayRangeFormField` | A range whose two ends are each a day plus morning or afternoon, ordered on the half, for absences and closures counted to the half day. | — (later, #2555) |
|
|
705
706
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-minimonth.webp" width="120" alt="MiniMonth"> | [`MiniMonth`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#minimonth) | Compact month navigator: today ringed, a week band, event dots, a keyboard date grid. | — |
|
|
706
707
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-nowindicator.webp" width="120" alt="NowIndicator"> | [`NowIndicator`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#nowindicator) | The current-time line of a day schedule, moving each minute. CSP-safe. | — |
|
|
707
708
|
|
|
@@ -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-Cqzvj9R0.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-DoVsjUff.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-DcW21pN1.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";
|
|
@@ -88,7 +88,7 @@ var w = [
|
|
|
88
88
|
{
|
|
89
89
|
variant: "ghost",
|
|
90
90
|
color: "default",
|
|
91
|
-
class:
|
|
91
|
+
class: `${s.default} ${c.default} hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
variant: "ghost",
|
|
@@ -185,7 +185,7 @@ var w = [
|
|
|
185
185
|
color: "default",
|
|
186
186
|
class: `${s.default} ${c.default} hover:bg-foreground/10 active:bg-muted focus:bg-foreground/10`
|
|
187
187
|
}
|
|
188
|
-
], T = a("nxgt-btn nxgt-morph-fill inline-flex center gap-[var(--btn-gap,0.5rem)] h-min cursor-pointer whitespace-nowrap disabled:pointer-events-none aria-busy:cursor-progress [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-[var(--btn-ic,1rem)] shrink-0 [&_svg]:shrink-0 aria-invalid:[--btn-focus:var(--color-error)] aria-invalid:[--btn-line:var(--color-error)] px-[calc(var(--btn-px,1rem)+var(--btn-dx,0px))] py-2 has-[>svg]:px-[calc(var(--btn-px,1rem)-var(--btn-pxi,0.25rem)+var(--btn-dx,0px))]", {
|
|
188
|
+
], T = a("nxgt-btn nxgt-morph-fill no-underline inline-flex center gap-[var(--btn-gap,0.5rem)] h-min cursor-pointer whitespace-nowrap disabled:pointer-events-none aria-busy:cursor-progress [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-[var(--btn-ic,1rem)] shrink-0 [&_svg]:shrink-0 aria-invalid:[--btn-focus:var(--color-error)] aria-invalid:[--btn-line:var(--color-error)] px-[calc(var(--btn-px,1rem)+var(--btn-dx,0px))] py-2 has-[>svg]:px-[calc(var(--btn-px,1rem)-var(--btn-pxi,0.25rem)+var(--btn-dx,0px))]", {
|
|
189
189
|
variants: {
|
|
190
190
|
variant: {
|
|
191
191
|
filled: "",
|
|
@@ -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-CdoBFtWx.js";
|
|
3
|
+
import { t as a } from "./button-DuTNpo28.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-BdrItuwY.js";
|
|
5
|
+
import { t as s } from "./icon-button-DE1EcO2-.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-CpTpT4vE.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-rfvJKxB4.js"),
|
|
283
|
+
pos: () => import("./pos-variant-Bs5BUB1L.js"),
|
|
284
|
+
programmer: () => import("./programmer-variant-B1eI1fd0.js"),
|
|
285
|
+
financial: () => import("./financial-variant-CYgRZzKT.js"),
|
|
286
|
+
conversion: () => import("./conversion-variant-DfQiOwYC.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-DuTNpo28.js";
|
|
3
|
+
import { t as n } from "./use-material-translation-BdrItuwY.js";
|
|
4
|
+
import { t as r } from "./icon-button-DE1EcO2-.js";
|
|
5
|
+
import { a as i, i as a, n as o, r as s, t as c } from "./picker-surface-DkfTv_ft.js";
|
|
6
|
+
import { r as l, t as u } from "./currency-field-cwC7cqUE.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-DsGk_fCw.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-BdrItuwY.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-DsGk_fCw.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-DuTNpo28.js";
|
|
5
|
+
import { t as i } from "./use-material-translation-BdrItuwY.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-C-RAjar5.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-DcW21pN1.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-BdrItuwY.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-xUUE5X6T.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-CZ1lJXZZ.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-BdrItuwY.js";
|
|
9
|
+
import { i as v, n as y, o as b, t as x } from "./code-language-items-CGtYfc1l.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-CZ1lJXZZ.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-BdrItuwY.js";
|
|
5
|
+
import { i as s, n as c, o as l } from "./code-language-items-CGtYfc1l.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-DApeIOZ3.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-xUUE5X6T.js";
|
|
2
|
+
import { t as n } from "./use-material-translation-BdrItuwY.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* DurationField's one-line field (`variant="segments"`, the default), over
|
|
2
|
-
* the date fields'
|
|
2
|
+
* the date fields' shared bordered box (typed-box-expressive.css) and its segments
|
|
3
3
|
* (segmented-input-expressive.css): "1 h 29 min", each amount followed by
|
|
4
4
|
* its muted unit, then one −/+ pair. Every focus ring is drawn inside the
|
|
5
5
|
* field (an inset outline), never clipped. The box keeps its focus boundary
|
|
@@ -1,41 +1,23 @@
|
|
|
1
|
-
/* The date, range and time fields' box, over the field box.
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
1
|
+
/* The date, range and time fields' box, over the field box. The same box at
|
|
2
|
+
* rest as a text field (surface, hairline border, radius, hover and filled
|
|
3
|
+
* tint: the shared bordered box, #2406), with a 2px primary boundary
|
|
4
|
+
* while a segment has focus or the picker is open and an error boundary when
|
|
5
|
+
* invalid. The segments are in segmented-input-expressive.css.
|
|
5
6
|
* `data-tonal` belongs to the date and time fields: the typed box and
|
|
6
7
|
* the sheet entry box. No other field sets it. */
|
|
7
8
|
@layer components {
|
|
8
9
|
.nxgt-field-box.nxgt-field-box[data-tonal] {
|
|
9
|
-
--_fx-fill: color-mix(in oklab, var(--primary) 7%, var(--background));
|
|
10
|
-
--_fx-fill-hover: color-mix(
|
|
11
|
-
in oklab,
|
|
12
|
-
var(--primary) 11%,
|
|
13
|
-
var(--background)
|
|
14
|
-
);
|
|
15
10
|
--_fx-tint: color-mix(in oklab, var(--primary) 14%, var(--background));
|
|
16
11
|
--_fx-pill: var(--primary);
|
|
17
12
|
--_fx-pill-fg: var(--primary-foreground);
|
|
18
13
|
--_fx-line: var(--primary-text);
|
|
19
14
|
--_fx-err: var(--error);
|
|
20
|
-
border-color: transparent;
|
|
21
|
-
background-color: var(--_fx-fill);
|
|
22
15
|
}
|
|
23
16
|
:is(.dark, [data-theme="dark"]) .nxgt-field-box.nxgt-field-box[data-tonal] {
|
|
24
|
-
--_fx-fill: color-mix(in oklab, var(--primary) 18%, var(--background));
|
|
25
|
-
--_fx-fill-hover: color-mix(
|
|
26
|
-
in oklab,
|
|
27
|
-
var(--primary) 22%,
|
|
28
|
-
var(--background)
|
|
29
|
-
);
|
|
30
17
|
--_fx-tint: color-mix(in oklab, var(--primary) 34%, var(--background));
|
|
31
18
|
--_fx-pill: var(--primary-text);
|
|
32
19
|
--_fx-pill-fg: var(--background);
|
|
33
20
|
}
|
|
34
|
-
/* Hover: the fill steps up, and the field box's hover border stays away. */
|
|
35
|
-
.nxgt-field-box.nxgt-field-box[data-tonal]:hover {
|
|
36
|
-
border-color: transparent;
|
|
37
|
-
background-color: var(--_fx-fill-hover);
|
|
38
|
-
}
|
|
39
21
|
.nxgt-field-box.nxgt-field-box[data-tonal]:is(
|
|
40
22
|
[data-focused],
|
|
41
23
|
[data-open]:not([data-open="false"])
|
|
@@ -48,7 +30,6 @@
|
|
|
48
30
|
[data-invalid="false"]
|
|
49
31
|
) {
|
|
50
32
|
border-color: var(--_fx-err);
|
|
51
|
-
background-color: color-mix(in oklab, var(--error) 7%, var(--background));
|
|
52
33
|
}
|
|
53
34
|
.nxgt-field-box.nxgt-field-box.nxgt-field-box[data-tonal][data-invalid]:not(
|
|
54
35
|
[data-invalid="false"]
|