@ai-matrx/records-ui 0.116.93 → 0.116.95

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/dist/index.cjs CHANGED
@@ -898,7 +898,7 @@ function carriesTimeOfDay(field2, value) {
898
898
  function timeOfDayWords(value) {
899
899
  if (!hasTimePart(value)) return null;
900
900
  const at = value instanceof Date ? value : new Date(value);
901
- return Number.isNaN(at.getTime()) ? null : at.toLocaleTimeString(void 0, { hour: "numeric", minute: "2-digit", ...(0, import_field_formats3.momentZoneOptions)(at) });
901
+ return Number.isNaN(at.getTime()) ? null : at.toLocaleTimeString(void 0, { hour: "numeric", minute: "2-digit", ...(0, import_field_formats2.momentZoneOptions)(at) });
902
902
  }
903
903
  function hasTimePart(value) {
904
904
  if (value instanceof Date || typeof value === "number") return true;
@@ -921,7 +921,7 @@ function dateFormatFor(field2, value) {
921
921
  function dateText(field2, value) {
922
922
  const format = dateFormatFor(field2, value) ?? (isDateLike(value) ? { id: hasTimePart(value) ? "datetime" : "date" } : void 0);
923
923
  if (!format) return null;
924
- const result = (0, import_field_formats2.formatFieldValue)(value, format);
924
+ const result = (0, import_field_formats.formatFieldValue)(value, format);
925
925
  return result.ok && !result.empty ? result.text : null;
926
926
  }
927
927
  function isDateLike(value) {
@@ -965,12 +965,12 @@ function addDays(day2, n) {
965
965
  function daysBetween(from, to) {
966
966
  return Math.round((dayAt(to).getTime() - dayAt(from).getTime()) / 864e5);
967
967
  }
968
- var import_field_formats2, import_field_formats3, BARE_CALENDAR_DATE;
968
+ var import_field_formats, import_field_formats2, BARE_CALENDAR_DATE;
969
969
  var init_dates = __esm({
970
970
  "src/dates.ts"() {
971
971
  "use strict";
972
+ import_field_formats = require("@ai-matrx/design-system/field-formats");
972
973
  import_field_formats2 = require("@ai-matrx/design-system/field-formats");
973
- import_field_formats3 = require("@ai-matrx/design-system/field-formats");
974
974
  init_personZone();
975
975
  BARE_CALENDAR_DATE = /^(\d{4})-(\d{2})-(\d{2})(?:[T ]00:00(?::00(?:\.0+)?)?)?$/;
976
976
  }
@@ -9814,11 +9814,14 @@ function encodeAt(canvas, type, maxWidth, quality) {
9814
9814
  return out.toDataURL(type, quality);
9815
9815
  }
9816
9816
 
9817
+ // src/labels.tsx
9818
+ init_dates();
9819
+
9817
9820
  // src/looks/designLooks.tsx
9818
9821
  var import_react7 = require("react");
9819
9822
  var import_icons = require("@ai-matrx/design-system/icons");
9820
9823
  var import_design_system2 = require("@ai-matrx/design-system");
9821
- var import_field_formats = require("@ai-matrx/design-system/field-formats");
9824
+ var import_field_formats3 = require("@ai-matrx/design-system/field-formats");
9822
9825
  var import_jsx_runtime3 = require("react/jsx-runtime");
9823
9826
  var TYPE_SAMPLE = "The quick brown fox jumps over the lazy dog";
9824
9827
  var HEX_6 = /^#[0-9a-f]{6}$/i;
@@ -9845,17 +9848,17 @@ function colorPairContrast(pair, format, context) {
9845
9848
  if (!ground) return {};
9846
9849
  const out = {};
9847
9850
  if (ground.light) {
9848
- const r = (0, import_field_formats.contrastRatio)(pair.light, ground.light);
9851
+ const r = (0, import_field_formats3.contrastRatio)(pair.light, ground.light);
9849
9852
  if (r !== null) out.light = r;
9850
9853
  }
9851
9854
  if (ground.dark) {
9852
- const r = (0, import_field_formats.contrastRatio)(pair.dark ?? pair.light, ground.dark);
9855
+ const r = (0, import_field_formats3.contrastRatio)(pair.dark ?? pair.light, ground.dark);
9853
9856
  if (r !== null) out.dark = r;
9854
9857
  }
9855
9858
  return out;
9856
9859
  }
9857
9860
  function ContrastMark({ ratio, min }) {
9858
- const level = (0, import_field_formats.contrastLevel)(ratio, min);
9861
+ const level = (0, import_field_formats3.contrastLevel)(ratio, min);
9859
9862
  const said2 = `${ratio}:1`;
9860
9863
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
9861
9864
  "span",
@@ -9871,7 +9874,7 @@ function ContrastMark({ ratio, min }) {
9871
9874
  );
9872
9875
  }
9873
9876
  function ColorPairView({ value, format }) {
9874
- const pair = (0, import_field_formats.readColorPair)(value);
9877
+ const pair = (0, import_field_formats3.readColorPair)(value);
9875
9878
  if (!pair) return null;
9876
9879
  const contrast = colorPairContrast(pair, format);
9877
9880
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { "data-records-look": "color_pair", className: "inline-flex min-w-0 items-center gap-3", children: [
@@ -9940,7 +9943,7 @@ function ColorWell({
9940
9943
  ] });
9941
9944
  }
9942
9945
  function ColorPairEditor({ value, onChange, disabled, id, label }) {
9943
- const pair = (0, import_field_formats.readColorPair)(value) ?? { light: "" };
9946
+ const pair = (0, import_field_formats3.readColorPair)(value) ?? { light: "" };
9944
9947
  const write = (next) => onChange(next.light ? JSON.stringify(next) : null);
9945
9948
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "grid grid-cols-[auto_1fr] items-center gap-x-2 gap-y-1.5", children: [
9946
9949
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-xs text-muted-foreground", children: "Light" }),
@@ -9970,7 +9973,7 @@ function ColorPairEditor({ value, onChange, disabled, id, label }) {
9970
9973
  ] });
9971
9974
  }
9972
9975
  function ColorPairPreview({ value }) {
9973
- const pair = (0, import_field_formats.readColorPair)(value);
9976
+ const pair = (0, import_field_formats3.readColorPair)(value);
9974
9977
  if (!pair) return null;
9975
9978
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "grid h-24 w-full grid-cols-2 overflow-hidden rounded-lg border border-border", children: [
9976
9979
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "flex items-end p-2", style: { backgroundColor: pair.light }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "rounded bg-background px-1.5 py-0.5 text-xs text-foreground", children: "Light" }) }),
@@ -9978,16 +9981,16 @@ function ColorPairPreview({ value }) {
9978
9981
  ] });
9979
9982
  }
9980
9983
  function colorPairChecks(value, format, context) {
9981
- const pair = (0, import_field_formats.readColorPair)(value);
9984
+ const pair = (0, import_field_formats3.readColorPair)(value);
9982
9985
  if (!pair) return [];
9983
9986
  const contrast = colorPairContrast(pair, format, context);
9984
9987
  const ground = colorPairGround(format, context)?.label ?? "its background";
9985
9988
  const out = [];
9986
9989
  for (const part of ["light", "dark"]) {
9987
9990
  const ratio = contrast[part];
9988
- if (ratio === void 0 || (0, import_field_formats.contrastLevel)(ratio, pair.min) === "pass") continue;
9991
+ if (ratio === void 0 || (0, import_field_formats3.contrastLevel)(ratio, pair.min) === "pass") continue;
9989
9992
  const color = part === "light" ? pair.light : pair.dark ?? pair.light;
9990
- const need = pair.min ?? import_field_formats.TEXT_CONTRAST;
9993
+ const need = pair.min ?? import_field_formats3.TEXT_CONTRAST;
9991
9994
  out.push({
9992
9995
  part,
9993
9996
  message: `hard to read on ${ground}`,
@@ -10115,16 +10118,16 @@ function MeasurePreview({ value, format }) {
10115
10118
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: dotted, "data-records-measure-preview": "size", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "h-3 rounded-full bg-primary", style: { width: Math.max(2, clamped) } }) });
10116
10119
  }
10117
10120
  function TypeStyleView({ value }) {
10118
- const style = (0, import_field_formats.readTypeStyle)(value);
10121
+ const style = (0, import_field_formats3.readTypeStyle)(value);
10119
10122
  if (!style) return null;
10120
10123
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { "data-records-look": "type_style", className: "flex min-w-0 flex-col items-start gap-1", children: [
10121
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "block max-w-full truncate text-foreground", style: (0, import_field_formats.typeStyleCss)(style), children: TYPE_SAMPLE }),
10122
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "rounded-md border border-border bg-muted px-1.5 py-0.5 text-xs text-muted-foreground", children: (0, import_field_formats.typeStyleText)(style) })
10124
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "block max-w-full truncate text-foreground", style: (0, import_field_formats3.typeStyleCss)(style), children: TYPE_SAMPLE }),
10125
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "rounded-md border border-border bg-muted px-1.5 py-0.5 text-xs text-muted-foreground", children: (0, import_field_formats3.typeStyleText)(style) })
10123
10126
  ] });
10124
10127
  }
10125
10128
  var FIELD = "grid grid-cols-[6rem_1fr] items-center gap-2";
10126
10129
  function TypeStyleEditor({ value, onChange, disabled, id, label }) {
10127
- const style = (0, import_field_formats.readTypeStyle)(value) ?? { font: "", weight: 400, size: 13, lineHeight: 20, letterSpacing: 0 };
10130
+ const style = (0, import_field_formats3.readTypeStyle)(value) ?? { font: "", weight: 400, size: 13, lineHeight: 20, letterSpacing: 0 };
10128
10131
  const write = (next) => {
10129
10132
  const merged = { ...style };
10130
10133
  for (const [k, v] of Object.entries(next)) {
@@ -10150,7 +10153,7 @@ function TypeStyleEditor({ value, onChange, disabled, id, label }) {
10150
10153
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "grid grid-cols-[1fr_6rem] gap-2", children: [
10151
10154
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_design_system2.Select, { value: String(clampWeight(style.weight)), disabled: disabled ?? false, onValueChange: (v) => write({ weight: clampWeight(Number(v)) }), children: [
10152
10155
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectTrigger, { "aria-label": `${label} weight`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectValue, {}) }),
10153
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectContent, { children: import_field_formats.TYPE_WEIGHTS.map((w) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectItem, { value: String(w.value), children: w.label }, w.value)) })
10156
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectContent, { children: import_field_formats3.TYPE_WEIGHTS.map((w) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectItem, { value: String(w.value), children: w.label }, w.value)) })
10154
10157
  ] }),
10155
10158
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(UnitInput, { label: `${label} size`, unit: "px", value: style.size, disabled, onChange: (n) => n !== null && write({ size: clampSize(n) }) })
10156
10159
  ] })
@@ -10174,8 +10177,8 @@ function UnitInput({
10174
10177
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberBox, { label, unit, value, disabled, onChange });
10175
10178
  }
10176
10179
  function TypeStylePreview({ value }) {
10177
- const style = (0, import_field_formats.readTypeStyle)(value);
10178
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "flex h-28 w-full items-center justify-center overflow-hidden rounded-lg border border-border bg-muted px-4", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "truncate text-foreground", style: style ? (0, import_field_formats.typeStyleCss)(style) : void 0, children: style ? TYPE_SAMPLE : "Aa" }) });
10180
+ const style = (0, import_field_formats3.readTypeStyle)(value);
10181
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "flex h-28 w-full items-center justify-center overflow-hidden rounded-lg border border-border bg-muted px-4", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "truncate text-foreground", style: style ? (0, import_field_formats3.typeStyleCss)(style) : void 0, children: style ? TYPE_SAMPLE : "Aa" }) });
10179
10182
  }
10180
10183
  var THEME_GROUNDS = { light: { ground: "#f4f4f5", card: "#ffffff" }, dark: { ground: "#0b0c0e", card: "#18191c" } };
10181
10184
  function ShadowSwatch({ layers, theme, size = "sm" }) {
@@ -10187,13 +10190,13 @@ function ShadowSwatch({ layers, theme, size = "sm" }) {
10187
10190
  "data-records-shadow-swatch": theme,
10188
10191
  className: (0, import_design_system2.cn)("flex shrink-0 items-center justify-center rounded-md", size === "lg" ? "h-24 w-full" : "h-7 w-11"),
10189
10192
  style: { backgroundColor: g.ground },
10190
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: (0, import_design_system2.cn)("rounded", size === "lg" ? "h-12 w-20" : "h-3.5 w-6"), style: { backgroundColor: g.card, boxShadow: (0, import_field_formats.shadowCss)(layers) } })
10193
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: (0, import_design_system2.cn)("rounded", size === "lg" ? "h-12 w-20" : "h-3.5 w-6"), style: { backgroundColor: g.card, boxShadow: (0, import_field_formats3.shadowCss)(layers) } })
10191
10194
  }
10192
10195
  );
10193
10196
  }
10194
- var layersWords = import_field_formats.shadowWords;
10197
+ var layersWords = import_field_formats3.shadowWords;
10195
10198
  function ShadowView({ value }) {
10196
- const pair = (0, import_field_formats.readShadowPair)(value);
10199
+ const pair = (0, import_field_formats3.readShadowPair)(value);
10197
10200
  if (!pair) return null;
10198
10201
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { "data-records-look": "shadow", className: "inline-flex min-w-0 items-center gap-2", children: [
10199
10202
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ShadowSwatch, { layers: pair.light, theme: "light" }),
@@ -10230,7 +10233,7 @@ function ShadowLayersEditor({
10230
10233
  ] });
10231
10234
  }
10232
10235
  function ShadowEditor({ value, onChange, disabled, id, label }) {
10233
- const pair = (0, import_field_formats.readShadowPair)(value) ?? { light: [NEW_LAYER], dark: [NEW_LAYER] };
10236
+ const pair = (0, import_field_formats3.readShadowPair)(value) ?? { light: [NEW_LAYER], dark: [NEW_LAYER] };
10234
10237
  const own3 = (() => {
10235
10238
  const raw = typeof value === "string" && value.trim().startsWith("{") ? value : null;
10236
10239
  return raw !== null && raw.includes('"dark"');
@@ -10267,7 +10270,7 @@ function ShadowEditor({ value, onChange, disabled, id, label }) {
10267
10270
  ] });
10268
10271
  }
10269
10272
  function ShadowPreview({ value }) {
10270
- const pair = (0, import_field_formats.readShadowPair)(value) ?? { light: [NEW_LAYER], dark: [NEW_LAYER] };
10273
+ const pair = (0, import_field_formats3.readShadowPair)(value) ?? { light: [NEW_LAYER], dark: [NEW_LAYER] };
10271
10274
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "grid w-full grid-cols-2 gap-2", children: [
10272
10275
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ShadowSwatch, { layers: pair.light, theme: "light", size: "lg" }),
10273
10276
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ShadowSwatch, { layers: pair.dark, theme: "dark", size: "lg" })
@@ -10278,7 +10281,7 @@ function OpacitySwatch({ opacity, size = "sm" }) {
10278
10281
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { "aria-hidden": true, className: (0, import_design_system2.cn)("relative inline-block shrink-0 overflow-hidden rounded border border-border", size === "lg" ? "h-24 w-full" : "h-5 w-5"), style: { background: CHECKER }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "absolute inset-0 bg-foreground", style: { opacity } }) });
10279
10282
  }
10280
10283
  function OpacityView({ value }) {
10281
- const o = (0, import_field_formats.readOpacity)(value);
10284
+ const o = (0, import_field_formats3.readOpacity)(value);
10282
10285
  if (o === null) return null;
10283
10286
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { "data-records-look": "opacity", className: "inline-flex items-center gap-2 tabular-nums", children: [
10284
10287
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(OpacitySwatch, { opacity: o }),
@@ -10287,7 +10290,7 @@ function OpacityView({ value }) {
10287
10290
  ] });
10288
10291
  }
10289
10292
  function OpacityEditor({ value, onChange, disabled, id, label }) {
10290
- const o = (0, import_field_formats.readOpacity)(value);
10293
+ const o = (0, import_field_formats3.readOpacity)(value);
10291
10294
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "flex items-center gap-2", children: [
10292
10295
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberBox, { id, label, value: o, unit: "", disabled, className: "w-full max-w-28", onChange: (n) => onChange(n === null ? null : Math.min(1, Math.max(0, n))) }),
10293
10296
  o !== null ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(OpacitySwatch, { opacity: o }) : null,
@@ -10298,7 +10301,7 @@ function OpacityEditor({ value, onChange, disabled, id, label }) {
10298
10301
  ] });
10299
10302
  }
10300
10303
  function OpacityPreview({ value }) {
10301
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(OpacitySwatch, { opacity: (0, import_field_formats.readOpacity)(value) ?? 0.5, size: "lg" });
10304
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(OpacitySwatch, { opacity: (0, import_field_formats3.readOpacity)(value) ?? 0.5, size: "lg" });
10302
10305
  }
10303
10306
  function MotionTrack({ motion, size = "sm" }) {
10304
10307
  const id = `m${Math.round(motion.duration)}-${motion.easing.replace(/[^a-z0-9]/gi, "")}`;
@@ -10320,27 +10323,27 @@ function MotionTrack({ motion, size = "sm" }) {
10320
10323
  ] });
10321
10324
  }
10322
10325
  function MotionView({ value }) {
10323
- const m = (0, import_field_formats.readMotion)(value);
10326
+ const m = (0, import_field_formats3.readMotion)(value);
10324
10327
  if (!m) return null;
10325
10328
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { "data-records-look": "motion", className: "inline-flex items-center gap-2", children: [
10326
10329
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(MotionTrack, { motion: m }),
10327
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "tabular-nums", children: (0, import_field_formats.motionText)(m) })
10330
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "tabular-nums", children: (0, import_field_formats3.motionText)(m) })
10328
10331
  ] });
10329
10332
  }
10330
10333
  function MotionEditor({ value, onChange, disabled, id, label }) {
10331
- const m = (0, import_field_formats.readMotion)(value) ?? { duration: 200, easing: "ease-out" };
10334
+ const m = (0, import_field_formats3.readMotion)(value) ?? { duration: 200, easing: "ease-out" };
10332
10335
  const write = (next) => onChange(JSON.stringify({ ...m, ...next }));
10333
10336
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "flex flex-wrap items-center gap-2", children: [
10334
10337
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NumberBox, { id, label: `${label} duration`, value: m.duration, unit: "ms", disabled, className: "w-24", onChange: (n) => n !== null && n >= 0 && write({ duration: n }) }),
10335
10338
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_design_system2.Select, { value: m.easing, disabled: disabled ?? false, onValueChange: (v) => write({ easing: v }), children: [
10336
10339
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectTrigger, { "aria-label": `${label} easing`, className: "h-7 w-36 text-xs", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectValue, {}) }),
10337
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectContent, { children: import_field_formats.MOTION_EASINGS.map((e) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectItem, { value: e.value, children: e.label }, e.value)) })
10340
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectContent, { children: import_field_formats3.MOTION_EASINGS.map((e) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system2.SelectItem, { value: e.value, children: e.label }, e.value)) })
10338
10341
  ] }),
10339
10342
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(MotionTrack, { motion: m })
10340
10343
  ] });
10341
10344
  }
10342
10345
  function MotionPreview({ value }) {
10343
- const m = (0, import_field_formats.readMotion)(value) ?? { duration: 200, easing: "ease-out" };
10346
+ const m = (0, import_field_formats3.readMotion)(value) ?? { duration: 200, easing: "ease-out" };
10344
10347
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "flex h-24 w-full items-center rounded-lg border border-border bg-muted px-4", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(MotionTrack, { motion: m, size: "lg" }) });
10345
10348
  }
10346
10349
  var DESIGN_LOOKS = [
@@ -11206,7 +11209,7 @@ function isId(value) {
11206
11209
  return typeof value === "string" && (0, import_uuid2.isUuidShape)(value);
11207
11210
  }
11208
11211
  function copiesAsWords(field2) {
11209
- return pointsAtRecords(field2) || isSignatureField(field2) || (0, import_records2.autonumberPrefixOf)(field2) !== "";
11212
+ return pointsAtRecords(field2) || isSignatureField(field2) || (0, import_records2.autonumberPrefixOf)(field2) !== "" || isDateField(field2);
11210
11213
  }
11211
11214
  function pointsAtRecords(field2) {
11212
11215
  return field2.type === "list" || field2.type === "relation";
@@ -11214,6 +11217,8 @@ function pointsAtRecords(field2) {
11214
11217
  function shownValue(field2, value, labels) {
11215
11218
  if (isSignatureField(field2)) return signatureWords(value);
11216
11219
  if ((0, import_records2.autonumberPrefixOf)(field2)) return (0, import_records2.autonumberWords)(field2, value) ?? value;
11220
+ const dateWords2 = isDateField(field2) ? dateText(field2, value) : null;
11221
+ if (dateWords2 !== null) return dateWords2;
11217
11222
  const newerWords = value === null || value === void 0 ? null : (0, import_records3.newerKindExportWords)(field2, value);
11218
11223
  if (newerWords !== null) return newerWords;
11219
11224
  const look = value === null || value === void 0 ? void 0 : registeredLook(shownAsOf(field2));