@galaxy-io/dls 2.13.7 → 2.14.0

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.
@@ -10,6 +10,16 @@ export declare const INTERACTIVE_RESET = "appearance: none; background: none; bo
10
10
  * draws one edge or subtracts its border in `calc()`.
11
11
  */
12
12
  export declare const HAIRLINE_WIDTH = "1px";
13
+ /**
14
+ * The DLS text underline, shared by every line drawn under text (`Link`, `isUnderlined`,
15
+ * `hasTooltip`, `EditableText`): `HAIRLINE_WIDTH` thick, so it never thickens with the font's own
16
+ * underline metric on large steps, and `0.25em` below the baseline, so it drops with the type step
17
+ * (2.5px at caption, 3px at body_sm, 3.5px at body_lg, 4px at heading_sm) and clears descenders.
18
+ * `em`, not a space token: a `Span` inherits its step and cannot pick a px value per size.
19
+ * Interpolate it first, then set `text-decoration-style` (solid link and emphasis, dashed
20
+ * editable, dotted tooltip trigger) and `text-decoration-color`.
21
+ */
22
+ export declare const UNDERLINE = "text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em;";
13
23
  /** The DLS hairline: a `HAIRLINE_WIDTH` `border.primary` border on every side. */
14
24
  export declare const HAIRLINE_BORDER: string;
15
25
  /**
@@ -30,6 +30,16 @@ var INTERACTIVE_RESET = `appearance: none; background: none; border: 0; padding:
30
30
  * draws one edge or subtracts its border in `calc()`.
31
31
  */
32
32
  var HAIRLINE_WIDTH = "1px";
33
+ /**
34
+ * The DLS text underline, shared by every line drawn under text (`Link`, `isUnderlined`,
35
+ * `hasTooltip`, `EditableText`): `HAIRLINE_WIDTH` thick, so it never thickens with the font's own
36
+ * underline metric on large steps, and `0.25em` below the baseline, so it drops with the type step
37
+ * (2.5px at caption, 3px at body_sm, 3.5px at body_lg, 4px at heading_sm) and clears descenders.
38
+ * `em`, not a space token: a `Span` inherits its step and cannot pick a px value per size.
39
+ * Interpolate it first, then set `text-decoration-style` (solid link and emphasis, dashed
40
+ * editable, dotted tooltip trigger) and `text-decoration-color`.
41
+ */
42
+ var UNDERLINE = `text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em;`;
33
43
  /** The DLS hairline: a `HAIRLINE_WIDTH` `border.primary` border on every side. */
34
44
  var HAIRLINE_BORDER = `border: 1px solid ${t.color.border.primary};`;
35
45
  /**
@@ -64,4 +74,4 @@ var VISUALLY_HIDDEN = `position: absolute; width: 1px; height: 1px; padding: 0;
64
74
  */
65
75
  var REDUCED_MOTION = `@media (prefers-reduced-motion: reduce) { transition: none !important; animation: none !important; }`;
66
76
  //#endregion
67
- export { FIELD_FOCUS, FOCUS_RING, HAIRLINE_BORDER, HAIRLINE_WIDTH, INTERACTIVE_RESET, REDUCED_MOTION, TRUNCATE, VISUALLY_HIDDEN };
77
+ export { FIELD_FOCUS, FOCUS_RING, HAIRLINE_BORDER, HAIRLINE_WIDTH, INTERACTIVE_RESET, REDUCED_MOTION, TRUNCATE, UNDERLINE, VISUALLY_HIDDEN };