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.
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  useUILintContext,
5
5
  useUILintStore
6
- } from "./chunk-HECINZHM.js";
6
+ } from "./chunk-BJD2V2LF.js";
7
7
 
8
8
  // src/components/ui-lint/ElementBadges.tsx
9
9
  import React, { useState, useEffect, useCallback, useMemo } from "react";
@@ -2,9 +2,9 @@
2
2
  "use client";
3
3
  import {
4
4
  InspectionPanel
5
- } from "./chunk-X4PRYONL.js";
5
+ } from "./chunk-ZZOKTGSU.js";
6
6
  import "./chunk-W42PI2OF.js";
7
- import "./chunk-HECINZHM.js";
7
+ import "./chunk-BJD2V2LF.js";
8
8
  export {
9
9
  InspectionPanel
10
10
  };
@@ -3,8 +3,8 @@
3
3
  import {
4
4
  InspectedElementHighlight,
5
5
  LocatorOverlay
6
- } from "./chunk-GCZ53K35.js";
7
- import "./chunk-HECINZHM.js";
6
+ } from "./chunk-YLTHKMTO.js";
7
+ import "./chunk-BJD2V2LF.js";
8
8
  export {
9
9
  InspectedElementHighlight,
10
10
  LocatorOverlay
@@ -2,9 +2,9 @@
2
2
  "use client";
3
3
  import {
4
4
  UILintToolbar
5
- } from "./chunk-RULQAXE4.js";
5
+ } from "./chunk-EQKEHJI4.js";
6
6
  import "./chunk-W42PI2OF.js";
7
- import "./chunk-HECINZHM.js";
7
+ import "./chunk-BJD2V2LF.js";
8
8
  export {
9
9
  UILintToolbar
10
10
  };
@@ -1063,10 +1063,10 @@ function UILintUI() {
1063
1063
  const [components, setComponents] = useState(null);
1064
1064
  useEffect2(() => {
1065
1065
  Promise.all([
1066
- import("./UILintToolbar-G5AVKNXA.js"),
1067
- import("./InspectionPanel-UW5UBZIK.js"),
1068
- import("./LocatorOverlay-RMU6JIFI.js"),
1069
- import("./ElementBadges-OQC6YCQD.js")
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-HECINZHM.js";
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,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useUILintContext
4
- } from "./chunk-HECINZHM.js";
4
+ } from "./chunk-BJD2V2LF.js";
5
5
 
6
6
  // src/components/ui-lint/LocatorOverlay.tsx
7
7
  import { useState, useEffect, useMemo } from "react";
@@ -6,7 +6,7 @@ import {
6
6
  buildEditorUrl,
7
7
  useUILintContext,
8
8
  useUILintStore
9
- } from "./chunk-HECINZHM.js";
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 = 380;
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-RULQAXE4.js";
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-X4PRYONL.js";
12
+ } from "./chunk-ZZOKTGSU.js";
13
13
  import "./chunk-W42PI2OF.js";
14
14
  import {
15
15
  LocatorOverlay
16
- } from "./chunk-GCZ53K35.js";
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-HECINZHM.js";
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.44",
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.44",
37
+ "uilint-core": "^0.1.45",
38
38
  "zustand": "^5.0.5"
39
39
  },
40
40
  "peerDependencies": {