@ai-matrx/records-ui 0.116.49 → 0.116.50
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/{chunk-6TDTSMLU.js → chunk-4DIA5TP6.js} +9 -5
- package/dist/chunk-4DIA5TP6.js.map +1 -0
- package/dist/{chunk-FMJ2ULGP.js → chunk-O5K6Y3N3.js} +1 -1
- package/dist/chunk-O5K6Y3N3.js.map +1 -0
- package/dist/html-frame.cjs.map +1 -1
- package/dist/html-frame.js +1 -1
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/pickers.cjs +7 -3
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-6TDTSMLU.js.map +0 -1
- package/dist/chunk-FMJ2ULGP.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
withoutAddition,
|
|
183
183
|
withoutLeadingBlank,
|
|
184
184
|
workedOutErrorFor
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-4DIA5TP6.js";
|
|
186
186
|
import {
|
|
187
187
|
CHART_PLOT_PX,
|
|
188
188
|
EMBEDDED_ROW_PX,
|
|
@@ -234,7 +234,7 @@ import {
|
|
|
234
234
|
HtmlSampleTokensProvider,
|
|
235
235
|
SAMPLE_TOKEN_NAMES,
|
|
236
236
|
sampleDocument
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-O5K6Y3N3.js";
|
|
238
238
|
import {
|
|
239
239
|
ArchiveItemMenu,
|
|
240
240
|
ArchivedBuiltOn,
|
package/dist/pickers.cjs
CHANGED
|
@@ -6982,7 +6982,7 @@ function MeasureMini({ px, kind }) {
|
|
|
6982
6982
|
] });
|
|
6983
6983
|
}
|
|
6984
6984
|
if (kind === "border") {
|
|
6985
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("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)` } });
|
|
6985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("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))` } });
|
|
6986
6986
|
}
|
|
6987
6987
|
if (kind === "radius") {
|
|
6988
6988
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
@@ -7032,7 +7032,7 @@ function MeasurePreview({ value, format }) {
|
|
|
7032
7032
|
const px = pixels(n, unitOf(format));
|
|
7033
7033
|
if (px === null) return null;
|
|
7034
7034
|
const clamped = Math.max(0, Math.min(px, 160));
|
|
7035
|
-
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]";
|
|
7035
|
+
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]";
|
|
7036
7036
|
if (kind === "spacing") {
|
|
7037
7037
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: dotted, "data-records-measure-preview": "spacing", children: [
|
|
7038
7038
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "h-14 w-11 rounded-md border border-border bg-card" }),
|
|
@@ -7556,6 +7556,7 @@ function htmlSampleChecks(value, _format) {
|
|
|
7556
7556
|
message: "fixed colors, not the theme's",
|
|
7557
7557
|
fix: {
|
|
7558
7558
|
label: "Use tokens",
|
|
7559
|
+
// bare-hsl-ok: prose naming the frame's variables, not a colour
|
|
7559
7560
|
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."
|
|
7560
7561
|
}
|
|
7561
7562
|
});
|
|
@@ -7569,7 +7570,10 @@ var HTML_SAMPLE_LOOK = {
|
|
|
7569
7570
|
Editor: HtmlSampleEditor,
|
|
7570
7571
|
Preview: HtmlSampleView,
|
|
7571
7572
|
checks: htmlSampleChecks,
|
|
7572
|
-
starter: () =>
|
|
7573
|
+
starter: () => (
|
|
7574
|
+
// bare-hsl-ok: sample HTML for the frame, whose :root holds full colours
|
|
7575
|
+
'<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>'
|
|
7576
|
+
)
|
|
7573
7577
|
};
|
|
7574
7578
|
|
|
7575
7579
|
// src/looks/jsonLook.tsx
|