@ai-matrx/records-ui 0.116.49 → 0.116.51
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 +17 -1
- package/dist/{SaveToTable-G7Y4H7SB.js → SaveToTable-EM2JT3OS.js} +3 -3
- package/dist/{chunk-P4P4IFM4.js → chunk-7LELV7UI.js} +7 -3
- package/dist/chunk-7LELV7UI.js.map +1 -0
- package/dist/{chunk-KDD2FZZR.js → chunk-BZ6PLCAR.js} +2 -2
- package/dist/{chunk-6TDTSMLU.js → chunk-HA7RICYJ.js} +11 -7
- package/dist/chunk-HA7RICYJ.js.map +1 -0
- package/dist/{chunk-FMJ2ULGP.js → chunk-O5K6Y3N3.js} +1 -1
- package/dist/chunk-O5K6Y3N3.js.map +1 -0
- package/dist/helpers.cjs +5 -1
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js +5 -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 +13 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/pickers.cjs +13 -5
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-6TDTSMLU.js.map +0 -1
- package/dist/chunk-FMJ2ULGP.js.map +0 -1
- package/dist/chunk-P4P4IFM4.js.map +0 -1
- /package/dist/{SaveToTable-G7Y4H7SB.js.map → SaveToTable-EM2JT3OS.js.map} +0 -0
- /package/dist/{chunk-KDD2FZZR.js.map → chunk-BZ6PLCAR.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
HtmlSampleFrame,
|
|
11
11
|
HtmlSampleTokensProvider
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-O5K6Y3N3.js";
|
|
13
13
|
import {
|
|
14
14
|
ABSENCE_WORD_LABEL,
|
|
15
15
|
CONTEXT_POLICY_LABEL,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
useRecordsUi,
|
|
55
55
|
useTableRights,
|
|
56
56
|
withoutInternalCodes
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-7LELV7UI.js";
|
|
58
58
|
import {
|
|
59
59
|
kindItemWords,
|
|
60
60
|
kindLabel,
|
|
@@ -679,7 +679,7 @@ function MeasureMini({ px, kind }) {
|
|
|
679
679
|
] });
|
|
680
680
|
}
|
|
681
681
|
if (kind === "border") {
|
|
682
|
-
return /* @__PURE__ */ jsx2("span", { "aria-hidden": true, "data-records-measure-mini": "border", className: "inline-block h-5 w-5 shrink-0 rounded-sm bg-card", style: { boxShadow: `inset 0 0 0 ${Math.max(0.5, Math.min(px, 6))}px var(--foreground)` } });
|
|
682
|
+
return /* @__PURE__ */ jsx2("span", { "aria-hidden": true, "data-records-measure-mini": "border", className: "inline-block h-5 w-5 shrink-0 rounded-sm bg-card", style: { boxShadow: `inset 0 0 0 ${Math.max(0.5, Math.min(px, 6))}px hsl(var(--foreground))` } });
|
|
683
683
|
}
|
|
684
684
|
if (kind === "radius") {
|
|
685
685
|
return /* @__PURE__ */ jsx2(
|
|
@@ -729,7 +729,7 @@ function MeasurePreview({ value, format }) {
|
|
|
729
729
|
const px = pixels(n, unitOf(format));
|
|
730
730
|
if (px === null) return null;
|
|
731
731
|
const clamped = Math.max(0, Math.min(px, 160));
|
|
732
|
-
const dotted = "flex h-24 w-full items-center justify-center rounded-lg border border-border bg-muted bg-[radial-gradient(var(--border)_1px,transparent_1px)] [background-size:12px_12px]";
|
|
732
|
+
const dotted = "flex h-24 w-full items-center justify-center rounded-lg border border-border bg-muted bg-[radial-gradient(hsl(var(--border))_1px,transparent_1px)] [background-size:12px_12px]";
|
|
733
733
|
if (kind === "spacing") {
|
|
734
734
|
return /* @__PURE__ */ jsxs2("span", { className: dotted, "data-records-measure-preview": "spacing", children: [
|
|
735
735
|
/* @__PURE__ */ jsx2("span", { className: "h-14 w-11 rounded-md border border-border bg-card" }),
|
|
@@ -1089,6 +1089,7 @@ function htmlSampleChecks(value, _format) {
|
|
|
1089
1089
|
message: "fixed colors, not the theme's",
|
|
1090
1090
|
fix: {
|
|
1091
1091
|
label: "Use tokens",
|
|
1092
|
+
// bare-hsl-ok: prose naming the frame's variables, not a colour
|
|
1092
1093
|
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."
|
|
1093
1094
|
}
|
|
1094
1095
|
});
|
|
@@ -1102,7 +1103,10 @@ var HTML_SAMPLE_LOOK = {
|
|
|
1102
1103
|
Editor: HtmlSampleEditor,
|
|
1103
1104
|
Preview: HtmlSampleView,
|
|
1104
1105
|
checks: htmlSampleChecks,
|
|
1105
|
-
starter: () =>
|
|
1106
|
+
starter: () => (
|
|
1107
|
+
// bare-hsl-ok: sample HTML for the frame, whose :root holds full colours
|
|
1108
|
+
'<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>'
|
|
1109
|
+
)
|
|
1106
1110
|
};
|
|
1107
1111
|
|
|
1108
1112
|
// src/looks/jsonLook.tsx
|
|
@@ -4786,7 +4790,7 @@ import { AlchemyMenu } from "@ai-matrx/alchemy/react";
|
|
|
4786
4790
|
import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
|
|
4787
4791
|
import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
|
|
4788
4792
|
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4789
|
-
var SaveToTable = lazy(() => import("./SaveToTable-
|
|
4793
|
+
var SaveToTable = lazy(() => import("./SaveToTable-EM2JT3OS.js").then((m) => ({ default: m.SaveToTable })));
|
|
4790
4794
|
var LONGEST_READ = 5e5;
|
|
4791
4795
|
var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
|
|
4792
4796
|
function isPlainObject(v) {
|
|
@@ -12328,4 +12332,4 @@ export {
|
|
|
12328
12332
|
RecordNameText,
|
|
12329
12333
|
HeldChangeDecision
|
|
12330
12334
|
};
|
|
12331
|
-
//# sourceMappingURL=chunk-
|
|
12335
|
+
//# sourceMappingURL=chunk-HA7RICYJ.js.map
|