@monospaced/set-core 0.18.0 → 0.19.1

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,20 +3,22 @@ import type { SetComponentSpec } from "../../spec";
3
3
  import type { SetAlign, SetHeadingLevel } from "../../types";
4
4
  export type SetHeadingSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl";
5
5
  export interface SetHeadingProps {
6
+ /** Heading content. */
7
+ children: string;
6
8
  /** Text alignment. @default "start" */
7
9
  align?: SetAlign;
8
10
  /** DOM id. */
9
11
  id?: string;
10
12
  /** Semantic heading level; omit to render a `span`. */
11
13
  level?: SetHeadingLevel;
14
+ /** Enables visited-state styling for links inside the heading. @default true */
15
+ linkVisited?: boolean;
12
16
  /** Enables optical alignment for left sidebearing-heavy glyphs. @default false */
13
17
  opticalAlign?: boolean;
14
18
  /** Enables breakpoint-responsive heading scale. @default false */
15
19
  responsive?: boolean;
16
20
  /** Heading size. @default "md" */
17
21
  size?: SetHeadingSize;
18
- /** Heading text content (escaped before render). */
19
- text: string;
20
22
  }
21
23
  /**
22
24
  * Builds the IR tree for the Set heading component.
@@ -24,7 +26,7 @@ export interface SetHeadingProps {
24
26
  * @param props - Heading component props.
25
27
  * @returns IR node for a heading element (`h1`..`h6`) or `span`.
26
28
  */
27
- export declare function buildSetHeading({ align, id, level, opticalAlign, responsive, size, text, }: SetHeadingProps): SetNode;
29
+ export declare function buildSetHeading({ align, children, id, level, linkVisited, opticalAlign, responsive, size, }: SetHeadingProps): SetNode;
28
30
  /**
29
31
  * SSR renderer for the Set heading component.
30
32
  *
@@ -1 +1 @@
1
- {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../src/components/heading/heading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACn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