lutra 0.1.17 → 0.1.19
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.
@@ -16,14 +16,14 @@
|
|
16
16
|
|
17
17
|
/* Very subtle, near-white surface (code, table headers) */
|
18
18
|
--theme-surface-subtlest: light-dark(
|
19
|
-
oklch(from var(--lutra-primary-color) calc(l * 1.
|
20
|
-
oklch(from var(--lutra-primary-color) calc(l * 0.
|
19
|
+
oklch(from var(--lutra-primary-color) calc(l * 1.93) calc(c * 0.025) h),
|
20
|
+
oklch(from var(--lutra-primary-color) calc(l * 0.55) calc(c * 0.025) h)
|
21
21
|
);
|
22
22
|
|
23
23
|
/* Subtle surface for slight differentiation */
|
24
24
|
--theme-surface-subtle: light-dark(
|
25
|
-
oklch(from var(--lutra-primary-color) calc(l * 1.
|
26
|
-
oklch(from var(--lutra-primary-color) calc(l * 0.
|
25
|
+
oklch(from var(--lutra-primary-color) calc(l * 1.9) calc(c * 0.025) h),
|
26
|
+
oklch(from var(--lutra-primary-color) calc(l * 0.6) calc(c * 0.025) h)
|
27
27
|
);
|
28
28
|
|
29
29
|
/* Interactive surface (hover states) */
|
@@ -227,10 +227,10 @@
|
|
227
227
|
*/
|
228
228
|
|
229
229
|
--table-border-color: var(--border-color);
|
230
|
-
--table-header-background: var(--theme-surface-
|
230
|
+
--table-header-background: var(--theme-surface-subtle);
|
231
231
|
--table-header-color: var(--text-color-heading);
|
232
232
|
--table-row-background: transparent;
|
233
|
-
--table-row-background-even:
|
233
|
+
--table-row-background-even: transparent;
|
234
234
|
--table-row-background-hover: color-mix(in srgb, var(--theme-surface-interactive) 60%, transparent);
|
235
235
|
--table-cell-color: var(--text-color-p);
|
236
236
|
|
@@ -137,8 +137,13 @@ export function matchOnType(el, e) {
|
|
137
137
|
const contentEl = el.querySelector("span.Content, label");
|
138
138
|
if (!contentEl)
|
139
139
|
return;
|
140
|
-
// Find all text nodes within contentEl
|
141
|
-
const walker = document.createTreeWalker(contentEl, NodeFilter.SHOW_TEXT,
|
140
|
+
// Find all text nodes within contentEl, excluding whitespace-only nodes
|
141
|
+
const walker = document.createTreeWalker(contentEl, NodeFilter.SHOW_TEXT, {
|
142
|
+
acceptNode: (node) => {
|
143
|
+
// Skip whitespace-only text nodes
|
144
|
+
return node.textContent?.trim() ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
|
145
|
+
}
|
146
|
+
});
|
142
147
|
let textNode;
|
143
148
|
let fullText = "";
|
144
149
|
const textNodes = [];
|