@yuneta/gobj-ui 7.23.89 → 7.23.90

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.
@@ -59213,7 +59213,7 @@ function build_node_innerHTML(color, theme, icon, label, topic_name, structural,
59213
59213
  border = dark ? "#7c8694" : "#94a3b8";
59214
59214
  border_style = "dashed";
59215
59215
  } else {
59216
- bg = dark ? `color-mix(in srgb, ${color} 30%, #2c3542)` : `color-mix(in srgb, ${color} 10%, ${surface})`;
59216
+ bg = dark ? `color-mix(in srgb, ${color} 25%, #2c3542)` : `color-mix(in srgb, ${color} 10%, ${surface})`;
59217
59217
  border = dark ? `color-mix(in srgb, ${color} 85%, #ffffff)` : color;
59218
59218
  border_style = "solid";
59219
59219
  }
@@ -59222,7 +59222,7 @@ function build_node_innerHTML(color, theme, icon, label, topic_name, structural,
59222
59222
  border_style = "solid";
59223
59223
  }
59224
59224
  let title_color = dark ? "#e8eaed" : "#0f172a";
59225
- let sub_color = dark ? "#9aa4b2" : "#64748b";
59225
+ let sub_color = dark ? "#ccd3dd" : "#556173";
59226
59226
  let shadow = dark ? "0 1px 3px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.30)" : "0 1px 3px rgba(15,23,42,0.12), 0 1px 2px rgba(15,23,42,0.06)";
59227
59227
  let icon_html = "";
59228
59228
  if (icon) icon_html = `
@@ -60054,7 +60054,7 @@ function pill_colors(color, theme) {
60054
60054
  let dark = theme === "dark";
60055
60055
  return {
60056
60056
  bg: dark ? `color-mix(in srgb, ${color} 45%, #1b2230)` : `color-mix(in srgb, ${color} 22%, #ffffff)`,
60057
- fg: dark ? `color-mix(in srgb, ${color} 35%, #ffffff)` : `color-mix(in srgb, ${color} 55%, #0f172a)`,
60057
+ fg: dark ? `color-mix(in srgb, ${color} 25%, #ffffff)` : `color-mix(in srgb, ${color} 45%, #0f172a)`,
60058
60058
  border: dark ? `color-mix(in srgb, ${color} 80%, #ffffff)` : color
60059
60059
  };
60060
60060
  }
@@ -60077,7 +60077,7 @@ function build_pill_html(pill, color, theme) {
60077
60077
  font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap;
60078
60078
  overflow: hidden; text-overflow: ellipsis;
60079
60079
  cursor: pointer; user-select: none;
60080
- "><span style="font-size: 9px;">${glyph}</span>${(0, _yuneta_gobj_js.escapeHtml)(pill.hook)}<span style="opacity: .75; font-weight: 600;">${count}</span></span>`;
60080
+ "><span style="font-size: 9px;">${glyph}</span>${(0, _yuneta_gobj_js.escapeHtml)(pill.hook)}<span style="font-weight: 600;">${count}</span></span>`;
60081
60081
  }
60082
60082
  /************************************************************
60083
60083
  * The pill row of one node, as html; "" when it has nothing to
@@ -59208,7 +59208,7 @@ function build_node_innerHTML(color, theme, icon, label, topic_name, structural,
59208
59208
  border = dark ? "#7c8694" : "#94a3b8";
59209
59209
  border_style = "dashed";
59210
59210
  } else {
59211
- bg = dark ? `color-mix(in srgb, ${color} 30%, #2c3542)` : `color-mix(in srgb, ${color} 10%, ${surface})`;
59211
+ bg = dark ? `color-mix(in srgb, ${color} 25%, #2c3542)` : `color-mix(in srgb, ${color} 10%, ${surface})`;
59212
59212
  border = dark ? `color-mix(in srgb, ${color} 85%, #ffffff)` : color;
59213
59213
  border_style = "solid";
59214
59214
  }
@@ -59217,7 +59217,7 @@ function build_node_innerHTML(color, theme, icon, label, topic_name, structural,
59217
59217
  border_style = "solid";
59218
59218
  }
59219
59219
  let title_color = dark ? "#e8eaed" : "#0f172a";
59220
- let sub_color = dark ? "#9aa4b2" : "#64748b";
59220
+ let sub_color = dark ? "#ccd3dd" : "#556173";
59221
59221
  let shadow = dark ? "0 1px 3px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.30)" : "0 1px 3px rgba(15,23,42,0.12), 0 1px 2px rgba(15,23,42,0.06)";
59222
59222
  let icon_html = "";
59223
59223
  if (icon) icon_html = `
@@ -60049,7 +60049,7 @@ function pill_colors(color, theme) {
60049
60049
  let dark = theme === "dark";
60050
60050
  return {
60051
60051
  bg: dark ? `color-mix(in srgb, ${color} 45%, #1b2230)` : `color-mix(in srgb, ${color} 22%, #ffffff)`,
60052
- fg: dark ? `color-mix(in srgb, ${color} 35%, #ffffff)` : `color-mix(in srgb, ${color} 55%, #0f172a)`,
60052
+ fg: dark ? `color-mix(in srgb, ${color} 25%, #ffffff)` : `color-mix(in srgb, ${color} 45%, #0f172a)`,
60053
60053
  border: dark ? `color-mix(in srgb, ${color} 80%, #ffffff)` : color
60054
60054
  };
60055
60055
  }
@@ -60072,7 +60072,7 @@ function build_pill_html(pill, color, theme) {
60072
60072
  font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap;
60073
60073
  overflow: hidden; text-overflow: ellipsis;
60074
60074
  cursor: pointer; user-select: none;
60075
- "><span style="font-size: 9px;">${glyph}</span>${escapeHtml(pill.hook)}<span style="opacity: .75; font-weight: 600;">${count}</span></span>`;
60075
+ "><span style="font-size: 9px;">${glyph}</span>${escapeHtml(pill.hook)}<span style="font-weight: 600;">${count}</span></span>`;
60076
60076
  }
60077
60077
  /************************************************************
60078
60078
  * The pill row of one node, as html; "" when it has nothing to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.23.89",
3
+ "version": "7.23.90",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -7297,8 +7297,14 @@ function build_node_innerHTML(color, theme, icon, label, topic_name, structural,
7297
7297
  // On dark, lift the card off the (near-black) canvas with a
7298
7298
  // clearly-lighter slate base + a vivid border, or the cards
7299
7299
  // become invisible.
7300
+ /* 25% and not 30% in dark: the tint is what says WHICH topic
7301
+ * a card belongs to, and it is also the ground everything on
7302
+ * the card is written on. At 30% the yellow of the palette
7303
+ * left the record's name at 5.17:1 and the topic under it at
7304
+ * 2.47 -- unreadable at 11px. Five points of tint buy the
7305
+ * name 5.80 and cost the colour almost nothing. */
7300
7306
  bg = dark
7301
- ? `color-mix(in srgb, ${color} 30%, #2c3542)`
7307
+ ? `color-mix(in srgb, ${color} 25%, #2c3542)`
7302
7308
  : `color-mix(in srgb, ${color} 10%, ${surface})`;
7303
7309
  border = dark
7304
7310
  ? `color-mix(in srgb, ${color} 85%, #ffffff)`
@@ -7310,7 +7316,12 @@ function build_node_innerHTML(color, theme, icon, label, topic_name, structural,
7310
7316
  border_style = "solid";
7311
7317
  }
7312
7318
  let title_color = dark ? "#e8eaed" : "#0f172a";
7313
- let sub_color = dark ? "#9aa4b2" : "#64748b";
7319
+ /* The topic name under the record's, at 11px, so it needs the
7320
+ * 4.5:1 of small text on the WORST tint of the palette: the old
7321
+ * greys gave 2.47 in dark and 4.28 in light. These give 4.64 and
7322
+ * 5.65, and the hierarchy stays where it belongs -- in the size
7323
+ * and the weight, not in a grey nobody can read. */
7324
+ let sub_color = dark ? "#ccd3dd" : "#556173";
7314
7325
  let shadow = dark
7315
7326
  ? "0 1px 3px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.30)"
7316
7327
  : "0 1px 3px rgba(15,23,42,0.12), 0 1px 2px rgba(15,23,42,0.06)";
@@ -8605,9 +8616,14 @@ function pill_colors(color, theme)
8605
8616
  bg: dark
8606
8617
  ? `color-mix(in srgb, ${color} 45%, #1b2230)`
8607
8618
  : `color-mix(in srgb, ${color} 22%, #ffffff)`,
8619
+ /* The INK of a pill, a leaf chip and a `+N`: it carries the
8620
+ * topic's hue, and it is 10-12px text on the same hue. At
8621
+ * 35/55 the palette's yellow read 4.36 in dark and 3.89 in
8622
+ * light; at 25/45 the worst of the seven is 4.57 and 5.07,
8623
+ * and the hue is still plainly there. */
8608
8624
  fg: dark
8609
- ? `color-mix(in srgb, ${color} 35%, #ffffff)`
8610
- : `color-mix(in srgb, ${color} 55%, #0f172a)`,
8625
+ ? `color-mix(in srgb, ${color} 25%, #ffffff)`
8626
+ : `color-mix(in srgb, ${color} 45%, #0f172a)`,
8611
8627
  border: dark
8612
8628
  ? `color-mix(in srgb, ${color} 80%, #ffffff)`
8613
8629
  : color,
@@ -8637,7 +8653,7 @@ function build_pill_html(pill, color, theme)
8637
8653
  font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap;
8638
8654
  overflow: hidden; text-overflow: ellipsis;
8639
8655
  cursor: pointer; user-select: none;
8640
- "><span style="font-size: 9px;">${glyph}</span>${escapeHtml(pill.hook)}<span style="opacity: .75; font-weight: 600;">${count}</span></span>`;
8656
+ "><span style="font-size: 9px;">${glyph}</span>${escapeHtml(pill.hook)}<span style="font-weight: 600;">${count}</span></span>`;
8641
8657
  }
8642
8658
 
8643
8659
  /************************************************************