@ai-matrx/records-ui 0.116.66 → 0.116.68

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +73 -42
  2. package/dist/{SaveToTable-OYJH3OKN.js → SaveToTable-GU4RF65M.js} +3 -3
  3. package/dist/{chunk-O5K6Y3N3.js → chunk-4CI2HLX3.js} +1 -1
  4. package/dist/chunk-4CI2HLX3.js.map +1 -0
  5. package/dist/{chunk-NBL26U5K.js → chunk-6BTGCYPK.js} +2 -2
  6. package/dist/{chunk-EACZUXJO.js → chunk-6Q2RJEN5.js} +2 -2
  7. package/dist/{chunk-57CGHFPO.js → chunk-BWVNQYNC.js} +9 -9
  8. package/dist/chunk-BWVNQYNC.js.map +1 -0
  9. package/dist/{chunk-TEYXG4XD.js → chunk-K7OX6RG6.js} +1 -1
  10. package/dist/chunk-K7OX6RG6.js.map +1 -0
  11. package/dist/{chunk-W6FX3XVF.js → chunk-QNI75ZHU.js} +2 -2
  12. package/dist/helpers.cjs.map +1 -1
  13. package/dist/helpers.js.map +1 -1
  14. package/dist/html-frame.cjs.map +1 -1
  15. package/dist/html-frame.js +1 -1
  16. package/dist/index.cjs +64 -51
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +9 -3
  19. package/dist/index.d.ts +9 -3
  20. package/dist/index.js +73 -60
  21. package/dist/index.js.map +1 -1
  22. package/dist/pickers.cjs +4 -4
  23. package/dist/pickers.cjs.map +1 -1
  24. package/dist/pickers.js +4 -4
  25. package/dist/skeleton.js +3 -3
  26. package/package.json +5 -5
  27. package/dist/chunk-57CGHFPO.js.map +0 -1
  28. package/dist/chunk-O5K6Y3N3.js.map +0 -1
  29. package/dist/chunk-TEYXG4XD.js.map +0 -1
  30. /package/dist/{SaveToTable-OYJH3OKN.js.map → SaveToTable-GU4RF65M.js.map} +0 -0
  31. /package/dist/{chunk-NBL26U5K.js.map → chunk-6BTGCYPK.js.map} +0 -0
  32. /package/dist/{chunk-EACZUXJO.js.map → chunk-6Q2RJEN5.js.map} +0 -0
  33. /package/dist/{chunk-W6FX3XVF.js.map → chunk-QNI75ZHU.js.map} +0 -0
package/dist/pickers.cjs CHANGED
@@ -7646,19 +7646,19 @@ function HtmlSampleEditor({ value, onChange, disabled, id, label }) {
7646
7646
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_design_system18.Button, { type: "button", variant: "outline", onClick: done, children: "Done" }) })
7647
7647
  ] });
7648
7648
  }
7649
- var FIXED_COLOUR = /#[0-9a-f]{3,8}\b|\brgba?\(|\bhsla?\(/i;
7649
+ var FIXED_COLOR = /#[0-9a-f]{3,8}\b|\brgba?\(|\bhsla?\(/i;
7650
7650
  function htmlSampleChecks(value, _format) {
7651
7651
  const html = htmlOf(value);
7652
7652
  if (!html.trim()) return [];
7653
7653
  const out = [];
7654
7654
  const styles = [...html.matchAll(/<style[^>]*>([\s\S]*?)<\/style>|style\s*=\s*"([^"]*)"/gi)].map((m) => m[1] ?? m[2] ?? "").join("\n");
7655
7655
  const outsideFallbacks = styles.replace(/var\([^()]*(\([^()]*\))?[^()]*\)/g, "");
7656
- if (FIXED_COLOUR.test(outsideFallbacks)) {
7656
+ if (FIXED_COLOR.test(outsideFallbacks)) {
7657
7657
  out.push({
7658
7658
  message: "fixed colors, not the theme's",
7659
7659
  fix: {
7660
7660
  label: "Use tokens",
7661
- // bare-hsl-ok: prose naming the frame's variables, not a colour
7661
+ // bare-hsl-ok: prose naming the frame's variables, not a color
7662
7662
  ask: "Rewrite this HTML sample so every color is one of the design system's CSS variables (var(--background), var(--foreground), var(--primary), var(--border)\u2026), keeping the markup and the look the same, so it follows light and dark."
7663
7663
  }
7664
7664
  });
@@ -7673,7 +7673,7 @@ var HTML_SAMPLE_LOOK = {
7673
7673
  Preview: HtmlSampleView,
7674
7674
  checks: htmlSampleChecks,
7675
7675
  starter: () => (
7676
- // bare-hsl-ok: sample HTML for the frame, whose :root holds full colours
7676
+ // bare-hsl-ok: sample HTML for the frame, whose :root holds full colors
7677
7677
  '<style>.b{font:inherit;padding:6px 12px;border-radius:var(--radius);border:1px solid transparent;background:var(--primary);color:var(--primary-foreground)}</style>\n<button class="b">Button</button>'
7678
7678
  )
7679
7679
  };