uilint-react 0.1.44 → 0.1.45
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/{ElementBadges-OQC6YCQD.js → ElementBadges-RV7I6QXS.js} +1 -1
- package/dist/{InspectionPanel-UW5UBZIK.js → InspectionPanel-QC6WR5IG.js} +2 -2
- package/dist/{LocatorOverlay-RMU6JIFI.js → LocatorOverlay-Z24VU27L.js} +2 -2
- package/dist/{UILintToolbar-G5AVKNXA.js → UILintToolbar-5NK77IQJ.js} +2 -2
- package/dist/{chunk-HECINZHM.js → chunk-BJD2V2LF.js} +4 -4
- package/dist/{chunk-RULQAXE4.js → chunk-EQKEHJI4.js} +45 -1
- package/dist/{chunk-GCZ53K35.js → chunk-YLTHKMTO.js} +1 -1
- package/dist/{chunk-X4PRYONL.js → chunk-ZZOKTGSU.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +2 -2
|
@@ -1063,10 +1063,10 @@ function UILintUI() {
|
|
|
1063
1063
|
const [components, setComponents] = useState(null);
|
|
1064
1064
|
useEffect2(() => {
|
|
1065
1065
|
Promise.all([
|
|
1066
|
-
import("./UILintToolbar-
|
|
1067
|
-
import("./InspectionPanel-
|
|
1068
|
-
import("./LocatorOverlay-
|
|
1069
|
-
import("./ElementBadges-
|
|
1066
|
+
import("./UILintToolbar-5NK77IQJ.js"),
|
|
1067
|
+
import("./InspectionPanel-QC6WR5IG.js"),
|
|
1068
|
+
import("./LocatorOverlay-Z24VU27L.js"),
|
|
1069
|
+
import("./ElementBadges-RV7I6QXS.js")
|
|
1070
1070
|
]).then(([toolbar, panel, locator, badges]) => {
|
|
1071
1071
|
setComponents({
|
|
1072
1072
|
Toolbar: toolbar.UILintToolbar,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
groupBySourceFile,
|
|
8
8
|
useUILintContext,
|
|
9
9
|
useUILintStore
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BJD2V2LF.js";
|
|
11
11
|
|
|
12
12
|
// src/components/ui-lint/UILintToolbar.tsx
|
|
13
13
|
import { useState as useState2, useRef as useRef2, useEffect as useEffect2, useCallback as useCallback2 } from "react";
|
|
@@ -1312,6 +1312,50 @@ var globalStyles = `
|
|
|
1312
1312
|
.uilint-popover--closing {
|
|
1313
1313
|
animation: uilint-fade-out ${TOKENS.transitionBase} forwards;
|
|
1314
1314
|
}
|
|
1315
|
+
|
|
1316
|
+
/* Custom scrollbar styling for dark mode - scoped to uilint components */
|
|
1317
|
+
[data-ui-lint] *,
|
|
1318
|
+
[data-ui-lint] {
|
|
1319
|
+
/* Firefox */
|
|
1320
|
+
scrollbar-width: thin;
|
|
1321
|
+
scrollbar-color: rgba(255, 255, 255, 0.15) rgba(15, 15, 15, 0.3);
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
/* WebKit browsers (Chrome, Safari, Edge) */
|
|
1325
|
+
[data-ui-lint] *::-webkit-scrollbar,
|
|
1326
|
+
[data-ui-lint]::-webkit-scrollbar {
|
|
1327
|
+
width: 8px;
|
|
1328
|
+
height: 8px;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
[data-ui-lint] *::-webkit-scrollbar-track,
|
|
1332
|
+
[data-ui-lint]::-webkit-scrollbar-track {
|
|
1333
|
+
background: rgba(15, 15, 15, 0.3);
|
|
1334
|
+
border-radius: 4px;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
[data-ui-lint] *::-webkit-scrollbar-thumb,
|
|
1338
|
+
[data-ui-lint]::-webkit-scrollbar-thumb {
|
|
1339
|
+
background: rgba(255, 255, 255, 0.15);
|
|
1340
|
+
border-radius: 4px;
|
|
1341
|
+
border: 1px solid rgba(15, 15, 15, 0.2);
|
|
1342
|
+
transition: background ${TOKENS.transitionFast};
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
[data-ui-lint] *::-webkit-scrollbar-thumb:hover,
|
|
1346
|
+
[data-ui-lint]::-webkit-scrollbar-thumb:hover {
|
|
1347
|
+
background: rgba(255, 255, 255, 0.25);
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
[data-ui-lint] *::-webkit-scrollbar-thumb:active,
|
|
1351
|
+
[data-ui-lint]::-webkit-scrollbar-thumb:active {
|
|
1352
|
+
background: rgba(255, 255, 255, 0.35);
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
[data-ui-lint] *::-webkit-scrollbar-corner,
|
|
1356
|
+
[data-ui-lint]::-webkit-scrollbar-corner {
|
|
1357
|
+
background: rgba(15, 15, 15, 0.3);
|
|
1358
|
+
}
|
|
1315
1359
|
`;
|
|
1316
1360
|
function ToolbarButton({
|
|
1317
1361
|
onClick,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
buildEditorUrl,
|
|
7
7
|
useUILintContext,
|
|
8
8
|
useUILintStore
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BJD2V2LF.js";
|
|
10
10
|
|
|
11
11
|
// src/components/ui-lint/InspectionPanel.tsx
|
|
12
12
|
import React, {
|
|
@@ -246,7 +246,7 @@ var STYLES = {
|
|
|
246
246
|
font: 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
247
247
|
fontMono: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace'
|
|
248
248
|
};
|
|
249
|
-
var POPOVER_WIDTH =
|
|
249
|
+
var POPOVER_WIDTH = 450;
|
|
250
250
|
var POPOVER_MAX_HEIGHT = 450;
|
|
251
251
|
function InspectionPanel() {
|
|
252
252
|
const {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
UILintToolbar
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EQKEHJI4.js";
|
|
5
5
|
import {
|
|
6
6
|
InspectionPanel,
|
|
7
7
|
clearSourceCache,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
fetchSourceWithContext,
|
|
10
10
|
getCachedSource,
|
|
11
11
|
prefetchSources
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZZOKTGSU.js";
|
|
13
13
|
import "./chunk-W42PI2OF.js";
|
|
14
14
|
import {
|
|
15
15
|
LocatorOverlay
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YLTHKMTO.js";
|
|
17
17
|
import {
|
|
18
18
|
DATA_UILINT_ID,
|
|
19
19
|
DEFAULT_SETTINGS,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
scanDOMForSources,
|
|
30
30
|
updateElementRects,
|
|
31
31
|
useUILintContext
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BJD2V2LF.js";
|
|
33
33
|
|
|
34
34
|
// src/consistency/snapshot.ts
|
|
35
35
|
var DATA_ELEMENTS_ATTR = "data-elements";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uilint-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
4
4
|
"description": "React component for AI-powered UI consistency checking",
|
|
5
5
|
"author": "Peter Suggate",
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"node": ">=20.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"uilint-core": "^0.1.
|
|
37
|
+
"uilint-core": "^0.1.45",
|
|
38
38
|
"zustand": "^5.0.5"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|