strata-react 2.1.20 → 2.1.21

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/UPGRADING.md CHANGED
@@ -11,6 +11,10 @@ time. While the version is 0.x, any release may break.
11
11
 
12
12
  Every PR that changes what an app sees adds a line here (see `CLAUDE.md`, "Changelog").
13
13
 
14
+ ## 2026-12-01 (PartialDateField)
15
+
16
+ - `PartialDateField` no longer sets `inputMode="numeric"` on its text input, so touch keyboards expose `-` for `YYYY-MM` and `YYYY-MM-DD` entry. `parsePartialDate` now accepts full calendar dates in years `0001`–`0099` (previously rejected due to `Date.UTC` mapping them to `1901`–`1999`).
17
+
14
18
  ## 2026-11-30 (coin roles)
15
19
 
16
20
  - An app on `strata.bare.css` that draws `Money` sets `--coin-copper`, `--coin-silver`, `--coin-gold` and `--coin-ink` in its theme, as it sets the status roles; `strata.css` sets them.
package/dist/index.js CHANGED
@@ -26160,7 +26160,8 @@ function parsePartialDate(raw, circa = false) {
26160
26160
  inferred = "month";
26161
26161
  if (m[3] !== void 0) {
26162
26162
  const day = Number(m[3]);
26163
- const check = new Date(Date.UTC(year, month - 1, day));
26163
+ const check = /* @__PURE__ */ new Date(0);
26164
+ check.setUTCFullYear(year, month - 1, day);
26164
26165
  if (check.getUTCFullYear() !== year || check.getUTCMonth() !== month - 1 || check.getUTCDate() !== day) return {
26165
26166
  ok: false,
26166
26167
  error: `${trimmed} is not a valid calendar date.`
@@ -26208,7 +26209,6 @@ function PartialDateField({ value, onChange, placeholder = "YYYY, YYYY-MM or YYY
26208
26209
  value: draft,
26209
26210
  disabled,
26210
26211
  placeholder,
26211
- inputMode: "numeric",
26212
26212
  className: "min-w-44 flex-1 tabular-nums",
26213
26213
  onChange: (e) => {
26214
26214
  const next = e.target.value;