@imfusion/web-ui 0.8.1-dev.18.g2355b181 → 0.8.1-dev.20.g50b02289

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.
package/CHANGELOG.md CHANGED
@@ -28,6 +28,8 @@ workflows already ask for stay as they are. Say "change my profile" to answer ag
28
28
  - `Typo.Eyebrow` sets a short mono, uppercase label above a heading, in the quiet `support` color by default.
29
29
  - `Card.Status` marks a card's outcome with a tinted column or band and the `info`, `positive`, `warning`, or `negative`
30
30
  glyph that `Callout` uses for the same status.
31
+ - `Typo` body members (`P`, `Lead`, `Detail`, `Small`, `Blockquote`, `Highlight`, `Link`, and the lists) take an
32
+ optional `weight` of `regular`, `medium`, or `strong`, for short body text on cards that reads thin at the regular weight.
31
33
  - Components — Stephan Wenninger <wenninger@imfusion.com>
32
34
  - `Slider.Root` has a `variant="position"` that draws a scrollbar-like trough and bar thumb for picking one position in a
33
35
  range.
@@ -5,14 +5,18 @@ declare const typo: (props?: ({
5
5
  variant?: "primary" | "positive" | "negative" | "oncolor" | "main" | "support" | "minor" | "brand" | "warning" | "info" | "accent-1" | "accent-2" | "accent-3" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  type TypoProps = VariantProps<typeof typo>;
8
+ type WeightProps = {
9
+ /** Font weight. Omit to keep the member's default; `medium` firms up short body text on cards. */
10
+ weight?: "regular" | "medium" | "strong";
11
+ };
8
12
  type HeadingProps = useRender.ComponentProps<"h1"> & TypoProps;
9
13
  type LongHeadingProps = HeadingProps & {
10
14
  /** Whether lines after the first use a translucent text color. */
11
15
  fadeAfterFirstLine?: boolean;
12
16
  };
13
- type ParagraphProps = useRender.ComponentProps<"p"> & TypoProps;
17
+ type ParagraphProps = useRender.ComponentProps<"p"> & TypoProps & WeightProps;
14
18
  export type TypoLinkKind = "external" | "internal";
15
- type LinkProps = useRender.ComponentProps<"a"> & TypoProps & {
19
+ type LinkProps = useRender.ComponentProps<"a"> & TypoProps & WeightProps & {
16
20
  /** Link target scope. `"external"` (default) opens in a new tab; `"internal"` stays in the current tab. */
17
21
  kind?: TypoLinkKind;
18
22
  };
@@ -42,32 +46,32 @@ export declare namespace H4 {
42
46
  var displayName: string;
43
47
  }
44
48
  /** Typo.P — body paragraph. */
45
- export declare function P({ variant, render, ...props }: ParagraphProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
49
+ export declare function P({ variant, weight, render, ...props }: ParagraphProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
46
50
  export declare namespace P {
47
51
  var displayName: string;
48
52
  }
49
53
  /** Typo.Lead — emphasised intro paragraph. */
50
- export declare function Lead({ variant, render, ...props }: ParagraphProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
54
+ export declare function Lead({ variant, weight, render, ...props }: ParagraphProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
51
55
  export declare namespace Lead {
52
56
  var displayName: string;
53
57
  }
54
58
  /** Typo.Detail — compact UI text, between Small (12px) and P (16px). */
55
- export declare function Detail({ variant, render, ...props }: useRender.ComponentProps<"p"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
59
+ export declare function Detail({ variant, weight, render, ...props }: useRender.ComponentProps<"p"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
56
60
  export declare namespace Detail {
57
61
  var displayName: string;
58
62
  }
59
63
  /** Typo.Small — fine print. */
60
- export declare function Small({ variant, render, ...props }: useRender.ComponentProps<"small"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
64
+ export declare function Small({ variant, weight, render, ...props }: useRender.ComponentProps<"small"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
61
65
  export declare namespace Small {
62
66
  var displayName: string;
63
67
  }
64
68
  /** Typo.Eyebrow — short uppercase label above a heading. Also called a kicker or overline. */
65
- export declare function Eyebrow({ variant, render, ...props }: ParagraphProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
69
+ export declare function Eyebrow({ variant, render, ...props }: useRender.ComponentProps<"p"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
66
70
  export declare namespace Eyebrow {
67
71
  var displayName: string;
68
72
  }
69
73
  /** Typo.Blockquote — pulled quotation. */
70
- export declare function Blockquote({ variant, render, ...props }: useRender.ComponentProps<"blockquote"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
74
+ export declare function Blockquote({ variant, weight, render, ...props }: useRender.ComponentProps<"blockquote"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
71
75
  export declare namespace Blockquote {
72
76
  var displayName: string;
73
77
  }
@@ -80,22 +84,22 @@ export declare namespace InlineCode {
80
84
  var displayName: string;
81
85
  }
82
86
  /** Typo.Highlight — inline mark/highlight. */
83
- export declare function Highlight({ variant, render, ...props }: useRender.ComponentProps<"mark"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
87
+ export declare function Highlight({ variant, weight, render, ...props }: useRender.ComponentProps<"mark"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
84
88
  export declare namespace Highlight {
85
89
  var displayName: string;
86
90
  }
87
91
  /** Typo.Link — inline anchor with an optional local Web UI directional icon. */
88
- export declare function Link({ variant, kind, render, ...props }: LinkProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
92
+ export declare function Link({ variant, weight, kind, render, ...props }: LinkProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
89
93
  export declare namespace Link {
90
94
  var displayName: string;
91
95
  }
92
96
  /** Typo.OrderedList — numbered list. */
93
- export declare function OrderedList({ variant, render, ...props }: useRender.ComponentProps<"ol"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
97
+ export declare function OrderedList({ variant, weight, render, ...props }: useRender.ComponentProps<"ol"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
94
98
  export declare namespace OrderedList {
95
99
  var displayName: string;
96
100
  }
97
101
  /** Typo.UnorderedList — bulleted list. */
98
- export declare function UnorderedList({ variant, render, ...props }: useRender.ComponentProps<"ul"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
102
+ export declare function UnorderedList({ variant, weight, render, ...props }: useRender.ComponentProps<"ul"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
99
103
  export declare namespace UnorderedList {
100
104
  var displayName: string;
101
105
  }