@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.
- package/CHANGELOG.md +73 -42
- package/dist/{SaveToTable-OYJH3OKN.js → SaveToTable-GU4RF65M.js} +3 -3
- package/dist/{chunk-O5K6Y3N3.js → chunk-4CI2HLX3.js} +1 -1
- package/dist/chunk-4CI2HLX3.js.map +1 -0
- package/dist/{chunk-NBL26U5K.js → chunk-6BTGCYPK.js} +2 -2
- package/dist/{chunk-EACZUXJO.js → chunk-6Q2RJEN5.js} +2 -2
- package/dist/{chunk-57CGHFPO.js → chunk-BWVNQYNC.js} +9 -9
- package/dist/chunk-BWVNQYNC.js.map +1 -0
- package/dist/{chunk-TEYXG4XD.js → chunk-K7OX6RG6.js} +1 -1
- package/dist/chunk-K7OX6RG6.js.map +1 -0
- package/dist/{chunk-W6FX3XVF.js → chunk-QNI75ZHU.js} +2 -2
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js.map +1 -1
- package/dist/html-frame.cjs.map +1 -1
- package/dist/html-frame.js +1 -1
- package/dist/index.cjs +64 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +73 -60
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +4 -4
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +4 -4
- package/dist/skeleton.js +3 -3
- package/package.json +5 -5
- package/dist/chunk-57CGHFPO.js.map +0 -1
- package/dist/chunk-O5K6Y3N3.js.map +0 -1
- package/dist/chunk-TEYXG4XD.js.map +0 -1
- /package/dist/{SaveToTable-OYJH3OKN.js.map → SaveToTable-GU4RF65M.js.map} +0 -0
- /package/dist/{chunk-NBL26U5K.js.map → chunk-6BTGCYPK.js.map} +0 -0
- /package/dist/{chunk-EACZUXJO.js.map → chunk-6Q2RJEN5.js.map} +0 -0
- /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
|
|
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 (
|
|
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
|
|
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
|
|
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
|
};
|