@npm-questionpro/wick-ui-lib 2.0.0-next.24 → 2.0.0-next.26

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.
@@ -1,20 +1,80 @@
1
1
  import React from 'react';
2
2
  import type { IWuIcons } from './iconTypes';
3
- export declare const WuText: React.FC<React.HTMLAttributes<HTMLParagraphElement> & {
3
+ export interface IWuTextProps extends React.HTMLAttributes<HTMLParagraphElement> {
4
+ /** Body text scale. @default 'lg' */
4
5
  size?: 'sm' | 'md' | 'lg';
6
+ /** Underlying HTML element. @default 'div' */
5
7
  as?: 'p' | 'div' | 'span';
6
- }>;
7
- export declare const WuHeading: React.FC<React.HTMLAttributes<HTMLHeadingElement> & {
8
+ }
9
+ /**
10
+ * Body text for paragraphs and general content.
11
+ *
12
+ * @summary default text primitive — reach for it for any non-heading copy
13
+ */
14
+ export declare const WuText: React.FC<IWuTextProps>;
15
+ export interface IWuHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
16
+ /** Heading scale; also picks the semantic tag (xl→h1 … sm→h4). @default 'xl' */
8
17
  size?: 'sm' | 'md' | 'lg' | 'xl';
9
- }>;
10
- export declare const WuSubtext: React.FC<React.HTMLAttributes<HTMLParagraphElement> & {
18
+ }
19
+ /**
20
+ * Section and page headings with matching semantic levels.
21
+ *
22
+ * @summary heading primitive — size drives both visual scale and h1–h4 tag
23
+ */
24
+ export declare const WuHeading: React.FC<IWuHeadingProps>;
25
+ export interface IWuSubtextProps extends React.HTMLAttributes<HTMLParagraphElement> {
26
+ /** Subtitle scale. @default 'lg' */
11
27
  size?: 'sm' | 'md' | 'lg';
28
+ /** Underlying HTML element. @default 'div' */
12
29
  as?: 'p' | 'div' | 'span';
13
- }>;
14
- export declare const WuDisplay: React.FC<React.HTMLAttributes<HTMLHeadingElement> & {
30
+ }
31
+ /**
32
+ * Secondary text for captions, labels, and metadata.
33
+ *
34
+ * @summary muted supporting text — use beneath or beside primary content
35
+ */
36
+ export declare const WuSubtext: React.FC<IWuSubtextProps>;
37
+ export interface IWuDisplayProps extends React.HTMLAttributes<HTMLHeadingElement> {
38
+ /** Display scale. @default 'lg' */
15
39
  size?: 'md' | 'lg';
40
+ /** Underlying HTML element. @default 'h1' */
16
41
  as?: 'h1' | 'h2' | 'h3' | 'h4' | 'div';
17
- }>;
18
- export declare const WuIcon: React.FC<React.BaseHTMLAttributes<HTMLBaseElement> & {
42
+ }
43
+ /**
44
+ * Oversized text for hero sections and page intros.
45
+ *
46
+ * @summary largest type ramp — sparing, attention-grabbing display copy
47
+ */
48
+ export declare const WuDisplay: React.FC<IWuDisplayProps>;
49
+ export interface IWuIconProps extends React.BaseHTMLAttributes<HTMLBaseElement> {
50
+ /** Icon-font identifier to render. */
19
51
  icon: IWuIcons;
20
- }>;
52
+ }
53
+ /**
54
+ * Renders an icon-font glyph as a decorative, accessible span.
55
+ *
56
+ * @summary icon-font primitive — size/color via text utilities
57
+ */
58
+ export declare const WuIcon: React.FC<IWuIconProps>;
59
+ /** Typography components WuNumber can render its value into via the `as` prop. */
60
+ declare const numberTagMap: {
61
+ readonly WuText: React.FC<IWuTextProps>;
62
+ readonly WuHeading: React.FC<IWuHeadingProps>;
63
+ readonly WuSubtext: React.FC<IWuSubtextProps>;
64
+ readonly WuDisplay: React.FC<IWuDisplayProps>;
65
+ };
66
+ export interface IWuNumberProps extends React.HTMLAttributes<HTMLSpanElement> {
67
+ /** Intl.NumberFormat options — style, currency, notation, fraction digits, etc. */
68
+ format?: Intl.NumberFormatOptions;
69
+ /** BCP-47 locale tag. @default browser locale */
70
+ locale?: string;
71
+ /** Render the value inside a typography component instead of a bare span. @default 'span' */
72
+ as?: keyof typeof numberTagMap;
73
+ }
74
+ /**
75
+ * Formats a numeric value with `Intl.NumberFormat` and renders it in a styled span.
76
+ *
77
+ * @summary locale-aware number/currency/percent formatter — Intl options in, formatted text out
78
+ */
79
+ export declare function WuNumber({ children, className, format, locale, as, ...rest }: IWuNumberProps): React.JSX.Element;
80
+ export {};