@molecule/app-ui-react 4.15.0 → 4.15.2

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.
Files changed (52) hide show
  1. package/README.md +728 -386
  2. package/dist/components/Badge.d.ts +40 -3
  3. package/dist/components/Badge.d.ts.map +1 -1
  4. package/dist/components/Badge.js.map +1 -1
  5. package/dist/components/Button.d.ts +48 -3
  6. package/dist/components/Button.d.ts.map +1 -1
  7. package/dist/components/Button.js +1 -1
  8. package/dist/components/Button.js.map +1 -1
  9. package/dist/components/Card.d.ts +235 -9
  10. package/dist/components/Card.d.ts.map +1 -1
  11. package/dist/components/Card.js +2 -3
  12. package/dist/components/Card.js.map +1 -1
  13. package/dist/components/EmptyState.d.ts +11 -3
  14. package/dist/components/EmptyState.d.ts.map +1 -1
  15. package/dist/components/EmptyState.js.map +1 -1
  16. package/dist/components/Form.d.ts +44 -3
  17. package/dist/components/Form.d.ts.map +1 -1
  18. package/dist/components/Form.js +34 -36
  19. package/dist/components/Form.js.map +1 -1
  20. package/dist/components/Input.d.ts +61 -3
  21. package/dist/components/Input.d.ts.map +1 -1
  22. package/dist/components/Input.js +5 -4
  23. package/dist/components/Input.js.map +1 -1
  24. package/dist/components/Layout.d.ts +123 -6
  25. package/dist/components/Layout.d.ts.map +1 -1
  26. package/dist/components/Layout.js +25 -21
  27. package/dist/components/Layout.js.map +1 -1
  28. package/dist/components/OptimisticToggleButton.d.ts +1 -1
  29. package/dist/components/OptimisticToggleButton.d.ts.map +1 -1
  30. package/dist/components/PageHeader.d.ts +14 -2
  31. package/dist/components/PageHeader.d.ts.map +1 -1
  32. package/dist/components/PageHeader.js.map +1 -1
  33. package/dist/components/PageShell.d.ts +12 -3
  34. package/dist/components/PageShell.d.ts.map +1 -1
  35. package/dist/components/PageShell.js.map +1 -1
  36. package/dist/kit.native.d.ts.map +1 -1
  37. package/dist/kit.native.js +2 -1
  38. package/dist/kit.native.js.map +1 -1
  39. package/dist/kit.web.d.ts.map +1 -1
  40. package/dist/kit.web.js +2 -1
  41. package/dist/kit.web.js.map +1 -1
  42. package/dist/types.d.ts +34 -1
  43. package/dist/types.d.ts.map +1 -1
  44. package/dist/utilities/accessibleKit.d.ts +4 -0
  45. package/dist/utilities/accessibleKit.d.ts.map +1 -0
  46. package/dist/utilities/accessibleKit.js +31 -0
  47. package/dist/utilities/accessibleKit.js.map +1 -0
  48. package/dist/utilities/fieldAttributes.d.ts +10 -0
  49. package/dist/utilities/fieldAttributes.d.ts.map +1 -0
  50. package/dist/utilities/fieldAttributes.js +21 -0
  51. package/dist/utilities/fieldAttributes.js.map +1 -0
  52. package/package.json +4 -4
@@ -3,10 +3,47 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import React from 'react';
7
- import type { BadgeProps } from '@molecule/app-ui';
8
6
  /**
9
7
  * Badge component.
10
8
  */
11
- export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
9
+ export declare const Badge: import("react").ForwardRefExoticComponent<{
10
+ children?: import("react").ReactNode;
11
+ color?: import("@molecule/app-ui").ColorVariant | undefined;
12
+ variant?: "solid" | "outline" | "subtle" | undefined;
13
+ size?: import("@molecule/app-ui").Size | undefined;
14
+ rounded?: boolean | undefined;
15
+ id?: string | undefined;
16
+ title?: string | undefined;
17
+ tabIndex?: number | undefined;
18
+ role?: import("@molecule/app-ui").ElementRole | undefined;
19
+ 'aria-label'?: string | undefined;
20
+ 'aria-labelledby'?: string | undefined;
21
+ 'aria-describedby'?: string | undefined;
22
+ 'aria-hidden'?: boolean | undefined;
23
+ 'aria-disabled'?: boolean | undefined;
24
+ 'aria-expanded'?: boolean | undefined;
25
+ 'aria-selected'?: boolean | undefined;
26
+ 'aria-checked'?: boolean | "mixed" | undefined;
27
+ 'aria-pressed'?: boolean | "mixed" | undefined;
28
+ 'aria-invalid'?: boolean | undefined;
29
+ 'aria-required'?: boolean | undefined;
30
+ 'aria-readonly'?: boolean | undefined;
31
+ 'aria-busy'?: boolean | undefined;
32
+ 'aria-live'?: "off" | "polite" | "assertive" | undefined;
33
+ onClick?: import("@molecule/app-ui").MouseEventHandler | undefined;
34
+ onDoubleClick?: import("@molecule/app-ui").MouseEventHandler | undefined;
35
+ onMouseEnter?: import("@molecule/app-ui").MouseEventHandler | undefined;
36
+ onMouseLeave?: import("@molecule/app-ui").MouseEventHandler | undefined;
37
+ onFocus?: import("@molecule/app-ui").FocusEventHandler | undefined;
38
+ onBlur?: import("@molecule/app-ui").FocusEventHandler | undefined;
39
+ onKeyDown?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
40
+ onKeyUp?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
41
+ onKeyPress?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
42
+ className?: string | undefined;
43
+ style?: import("@molecule/app-ui").CSSProperties | undefined;
44
+ testId?: string | undefined;
45
+ automationId?: string | undefined;
46
+ disabled?: boolean | undefined;
47
+ lang?: string | undefined;
48
+ } & import("react").RefAttributes<HTMLSpanElement>>;
12
49
  //# sourceMappingURL=Badge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/components/Badge.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAMlD;;GAEG;AACH,eAAO,MAAM,KAAK,oFAsCjB,CAAA"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/components/Badge.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAsCjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../src/components/Badge.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAc,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,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGrE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAC7B,CACE,EACE,QAAQ,EACR,KAAK,GAAG,SAAS,EACjB,OAAO,EAAE,QAAQ,GAAG,OAAO,EAC3B,IAAI,EACJ,OAAO,GAAG,IAAI,EACd,SAAS,EACT,KAAK,EACL,MAAM,EACN,GAAG,IAAI,EACR,EACD,GAAG,EACH,EAAE;IACF,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IAExB,MAAM,YAAY,GAAG,EAAE,CAAC,EAAE,CACxB,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAClC,CAAC,OAAO,IAAI,EAAE,CAAC,WAAW,EAC1B,SAAS,CACV,CAAA;IAED,OAAO,CAGL,KAAC,GAAG,IACF,EAAE,EAAC,MAAM,EACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,YAAY,EACvB,QAAQ,EAAE,KAAK,iBACF,MAAM,KACf,SAAS,CAAC,IAAI,CAAC,YAElB,QAAQ,GACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,KAAK,CAAC,WAAW,GAAG,OAAO,CAAA;AAE3B,0EAA0E;AAC1E,cAAc,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAA"}
@@ -3,8 +3,6 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import React from 'react';
7
- import type { ButtonProps } from '@molecule/app-ui';
8
6
  /**
9
7
  * Button component.
10
8
  *
@@ -14,5 +12,52 @@ import type { ButtonProps } from '@molecule/app-ui';
14
12
  * does not queue clicks; an app that must preserve every intent needs its own
15
13
  * serial action queue.
16
14
  */
17
- export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
15
+ export declare const Button: import("react").ForwardRefExoticComponent<{
16
+ children?: import("react").ReactNode;
17
+ variant?: import("@molecule/app-ui").ButtonVariant | undefined;
18
+ color?: import("@molecule/app-ui").ColorVariant | undefined;
19
+ size?: import("@molecule/app-ui").ButtonSize | undefined;
20
+ loading?: boolean | undefined;
21
+ loadingText?: string | undefined;
22
+ fullWidth?: boolean | undefined;
23
+ leftIcon?: import("react").ReactNode;
24
+ rightIcon?: import("react").ReactNode;
25
+ type?: "button" | "submit" | "reset" | undefined;
26
+ name?: string | undefined;
27
+ value?: string | undefined;
28
+ form?: string | undefined;
29
+ id?: string | undefined;
30
+ title?: string | undefined;
31
+ tabIndex?: number | undefined;
32
+ role?: import("@molecule/app-ui").ElementRole | undefined;
33
+ 'aria-label'?: string | undefined;
34
+ 'aria-labelledby'?: string | undefined;
35
+ 'aria-describedby'?: string | undefined;
36
+ 'aria-hidden'?: boolean | undefined;
37
+ 'aria-disabled'?: boolean | undefined;
38
+ 'aria-expanded'?: boolean | undefined;
39
+ 'aria-selected'?: boolean | undefined;
40
+ 'aria-checked'?: boolean | "mixed" | undefined;
41
+ 'aria-pressed'?: boolean | "mixed" | undefined;
42
+ 'aria-invalid'?: boolean | undefined;
43
+ 'aria-required'?: boolean | undefined;
44
+ 'aria-readonly'?: boolean | undefined;
45
+ 'aria-busy'?: boolean | undefined;
46
+ 'aria-live'?: "off" | "polite" | "assertive" | undefined;
47
+ onClick?: import("@molecule/app-ui").MouseEventHandler | undefined;
48
+ onDoubleClick?: import("@molecule/app-ui").MouseEventHandler | undefined;
49
+ onMouseEnter?: import("@molecule/app-ui").MouseEventHandler | undefined;
50
+ onMouseLeave?: import("@molecule/app-ui").MouseEventHandler | undefined;
51
+ onFocus?: import("@molecule/app-ui").FocusEventHandler | undefined;
52
+ onBlur?: import("@molecule/app-ui").FocusEventHandler | undefined;
53
+ onKeyDown?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
54
+ onKeyUp?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
55
+ onKeyPress?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
56
+ className?: string | undefined;
57
+ style?: import("@molecule/app-ui").CSSProperties | undefined;
58
+ testId?: string | undefined;
59
+ automationId?: string | undefined;
60
+ disabled?: boolean | undefined;
61
+ lang?: string | undefined;
62
+ } & import("react").RefAttributes<HTMLButtonElement>>;
18
63
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAqB,MAAM,OAAO,CAAA;AAGzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAOnD;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,uFAuDlB,CAAA"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAYH;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qDAuDlB,CAAA"}
@@ -24,7 +24,7 @@ export const Button = forwardRef(({ children, variant = 'solid', color = 'primar
24
24
  const rightIcon = slot(rightIconProp);
25
25
  const cm = getClassMap();
26
26
  const classes = cm.cn(cm.button({ variant, color, size, fullWidth }), className);
27
- return (_jsxs(Pressable, { as: "button", ref: ref, type: type, className: classes, webStyle: style, "data-testid": testId, disabled: disabled || loading, onClick: onClick, "aria-busy": loading, ...rootProps(rest), children: [loading && _jsx(Spinner, { size: "sm", className: cm.buttonIconLeft }), !loading && !!leftIcon && (_jsx(Box, { as: "span", className: cm.buttonIconLeft, children: leftIcon })), loading && loadingText ? loadingText : children, !loading && !!rightIcon && (_jsx(Box, { as: "span", className: cm.buttonIconRight, children: rightIcon }))] }));
27
+ return (_jsxs(Pressable, { as: "button", ref: ref, type: type, className: classes, webStyle: style, "data-testid": testId, disabled: disabled || loading, onClick: onClick, ...rootProps(rest), "aria-busy": loading || rest['aria-busy'] || false, children: [loading && _jsx(Spinner, { size: "sm", className: cm.buttonIconLeft }), !loading && !!leftIcon && (_jsx(Box, { as: "span", className: cm.buttonIconLeft, children: leftIcon })), loading && loadingText ? loadingText : children, !loading && !!rightIcon && (_jsx(Box, { as: "span", className: cm.buttonIconRight, children: rightIcon }))] }));
28
28
  });
29
29
  Button.displayName = 'Button';
30
30
  registerInline(Button, () => 'box');
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAA;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAC9B,CACE,EACE,QAAQ,EACR,OAAO,GAAG,OAAO,EACjB,KAAK,GAAG,SAAS,EACjB,IAAI,GAAG,IAAI,EACX,OAAO,GAAG,KAAK,EACf,WAAW,EACX,SAAS,GAAG,KAAK,EACjB,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,aAAa,EACxB,SAAS,EACT,KAAK,EACL,MAAM,EACN,QAAQ,EACR,IAAI,GAAG,QAAQ,EACf,OAAO,EACP,GAAG,IAAI,EACR,EACD,GAAG,EACH,EAAE;IACF,MAAM,QAAQ,GAAG,IAAI,CAAC,YAA+B,CAAC,CAAA;IACtD,MAAM,SAAS,GAAG,IAAI,CAAC,aAAgC,CAAC,CAAA;IACxD,MAAM,EAAE,GAAG,WAAW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E/C,OAAO,IAAI,KAAC,OAAO,IAAC,IAAI,EAAC,IAAI,EAAC,SAAS,EAAE,EAAE,CAAC,cAAc,GAAI,EAC9D,CAAC,OAAO,IAAI,CAAC,CAAC,QAAQ,IAAI,CACzB,KAAC,GAAG,IAAC,EAAE,EAAC,MAAM,EAAC,SAAS,EAAE,EAAE,CAAC,cAAc,YACxC,QAAQ,GACL,CACP,EACA,OAAO,IAAI,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,EAC/C,CAAC,OAAO,IAAI,CAAC,CAAC,SAAS,IAAI,CAC1B,KAAC,GAAG,IAAC,EAAE,EAAC,MAAM,EAAC,SAAS,EAAE,EAAE,CAAC,eAAe,YACzC,SAAS,GACN,CACP,IACS,CACb,CAAA;AACH,CAAC,CACF,CAAA;AAED,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAA;AAE7B,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAA"}
@@ -3,32 +3,258 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import React from 'react';
7
- import type { CardProps, CardSectionProps } from '@molecule/app-ui';
8
6
  /**
9
7
  * Card component.
10
8
  */
11
- export declare const Card: React.ForwardRefExoticComponent<CardProps & {
9
+ export declare const Card: import("react").ForwardRefExoticComponent<{
10
+ children?: import("react").ReactNode;
11
+ variant?: "elevated" | "outlined" | "filled" | undefined;
12
+ interactive?: boolean | undefined;
13
+ padding?: (import("@molecule/app-ui").Size | "none") | undefined;
14
+ id?: string | undefined;
15
+ title?: string | undefined;
16
+ tabIndex?: number | undefined;
17
+ role?: import("@molecule/app-ui").ElementRole | undefined;
18
+ 'aria-label'?: string | undefined;
19
+ 'aria-labelledby'?: string | undefined;
20
+ 'aria-describedby'?: string | undefined;
21
+ 'aria-hidden'?: boolean | undefined;
22
+ 'aria-disabled'?: boolean | undefined;
23
+ 'aria-expanded'?: boolean | undefined;
24
+ 'aria-selected'?: boolean | undefined;
25
+ 'aria-checked'?: boolean | "mixed" | undefined;
26
+ 'aria-pressed'?: boolean | "mixed" | undefined;
27
+ 'aria-invalid'?: boolean | undefined;
28
+ 'aria-required'?: boolean | undefined;
29
+ 'aria-readonly'?: boolean | undefined;
30
+ 'aria-busy'?: boolean | undefined;
31
+ 'aria-live'?: "off" | "polite" | "assertive" | undefined;
32
+ onClick?: import("@molecule/app-ui").MouseEventHandler | undefined;
33
+ onDoubleClick?: import("@molecule/app-ui").MouseEventHandler | undefined;
34
+ onMouseEnter?: import("@molecule/app-ui").MouseEventHandler | undefined;
35
+ onMouseLeave?: import("@molecule/app-ui").MouseEventHandler | undefined;
36
+ onFocus?: import("@molecule/app-ui").FocusEventHandler | undefined;
37
+ onBlur?: import("@molecule/app-ui").FocusEventHandler | undefined;
38
+ onKeyDown?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
39
+ onKeyUp?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
40
+ onKeyPress?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
41
+ className?: string | undefined;
42
+ style?: import("@molecule/app-ui").CSSProperties | undefined;
43
+ testId?: string | undefined;
44
+ automationId?: string | undefined;
45
+ disabled?: boolean | undefined;
46
+ lang?: string | undefined;
47
+ } & {
12
48
  'data-mol-id'?: string;
13
- } & React.RefAttributes<HTMLDivElement>>;
49
+ } & import("react").RefAttributes<HTMLDivElement>>;
14
50
  /**
15
51
  * Card header component.
16
52
  */
17
- export declare const CardHeader: React.ForwardRefExoticComponent<CardSectionProps & React.RefAttributes<HTMLDivElement>>;
53
+ export declare const CardHeader: import("react").ForwardRefExoticComponent<{
54
+ [x: `data-${string}`]: string | number | boolean | undefined;
55
+ title?: string | undefined;
56
+ style?: import("@molecule/app-ui").CSSProperties | undefined;
57
+ children?: import("react").ReactNode;
58
+ id?: string | undefined;
59
+ lang?: string | undefined;
60
+ className?: string | undefined;
61
+ role?: import("@molecule/app-ui").ElementRole | undefined;
62
+ 'aria-label'?: string | undefined;
63
+ 'aria-labelledby'?: string | undefined;
64
+ 'aria-describedby'?: string | undefined;
65
+ 'aria-hidden'?: import("@molecule/app-ui").AriaBoolean | undefined;
66
+ 'aria-disabled'?: import("@molecule/app-ui").AriaBoolean | undefined;
67
+ 'aria-expanded'?: import("@molecule/app-ui").AriaBoolean | undefined;
68
+ 'aria-selected'?: import("@molecule/app-ui").AriaBoolean | undefined;
69
+ 'aria-checked'?: (import("@molecule/app-ui").AriaBoolean | "mixed") | undefined;
70
+ 'aria-pressed'?: (import("@molecule/app-ui").AriaBoolean | "mixed") | undefined;
71
+ 'aria-busy'?: import("@molecule/app-ui").AriaBoolean | undefined;
72
+ 'aria-live'?: "off" | "polite" | "assertive" | undefined;
73
+ 'aria-valuenow'?: number | undefined;
74
+ 'aria-valuemin'?: number | undefined;
75
+ 'aria-valuemax'?: number | undefined;
76
+ 'aria-valuetext'?: string | undefined;
77
+ 'aria-current'?: (import("@molecule/app-ui").AriaBoolean | "page" | "step" | "location" | "date" | "time") | undefined;
78
+ 'aria-controls'?: string | undefined;
79
+ 'aria-haspopup'?: (import("@molecule/app-ui").AriaBoolean | "menu" | "listbox" | "tree" | "grid" | "dialog") | undefined;
80
+ 'aria-modal'?: import("@molecule/app-ui").AriaBoolean | undefined;
81
+ 'aria-invalid'?: import("@molecule/app-ui").AriaBoolean | undefined;
82
+ 'aria-required'?: import("@molecule/app-ui").AriaBoolean | undefined;
83
+ 'aria-readonly'?: import("@molecule/app-ui").AriaBoolean | undefined;
84
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
85
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
86
+ 'aria-level'?: number | undefined;
87
+ 'aria-rowcount'?: number | undefined;
88
+ 'aria-colcount'?: number | undefined;
89
+ 'aria-rowindex'?: number | undefined;
90
+ 'aria-colindex'?: number | undefined;
91
+ } & import("react").RefAttributes<HTMLDivElement>>;
18
92
  /**
19
93
  * Card title component.
20
94
  */
21
- export declare const CardTitle: React.ForwardRefExoticComponent<CardSectionProps & React.RefAttributes<HTMLHeadingElement>>;
95
+ export declare const CardTitle: import("react").ForwardRefExoticComponent<{
96
+ [x: `data-${string}`]: string | number | boolean | undefined;
97
+ title?: string | undefined;
98
+ style?: import("@molecule/app-ui").CSSProperties | undefined;
99
+ children?: import("react").ReactNode;
100
+ id?: string | undefined;
101
+ lang?: string | undefined;
102
+ className?: string | undefined;
103
+ role?: import("@molecule/app-ui").ElementRole | undefined;
104
+ 'aria-label'?: string | undefined;
105
+ 'aria-labelledby'?: string | undefined;
106
+ 'aria-describedby'?: string | undefined;
107
+ 'aria-hidden'?: import("@molecule/app-ui").AriaBoolean | undefined;
108
+ 'aria-disabled'?: import("@molecule/app-ui").AriaBoolean | undefined;
109
+ 'aria-expanded'?: import("@molecule/app-ui").AriaBoolean | undefined;
110
+ 'aria-selected'?: import("@molecule/app-ui").AriaBoolean | undefined;
111
+ 'aria-checked'?: (import("@molecule/app-ui").AriaBoolean | "mixed") | undefined;
112
+ 'aria-pressed'?: (import("@molecule/app-ui").AriaBoolean | "mixed") | undefined;
113
+ 'aria-busy'?: import("@molecule/app-ui").AriaBoolean | undefined;
114
+ 'aria-live'?: "off" | "polite" | "assertive" | undefined;
115
+ 'aria-valuenow'?: number | undefined;
116
+ 'aria-valuemin'?: number | undefined;
117
+ 'aria-valuemax'?: number | undefined;
118
+ 'aria-valuetext'?: string | undefined;
119
+ 'aria-current'?: (import("@molecule/app-ui").AriaBoolean | "page" | "step" | "location" | "date" | "time") | undefined;
120
+ 'aria-controls'?: string | undefined;
121
+ 'aria-haspopup'?: (import("@molecule/app-ui").AriaBoolean | "menu" | "listbox" | "tree" | "grid" | "dialog") | undefined;
122
+ 'aria-modal'?: import("@molecule/app-ui").AriaBoolean | undefined;
123
+ 'aria-invalid'?: import("@molecule/app-ui").AriaBoolean | undefined;
124
+ 'aria-required'?: import("@molecule/app-ui").AriaBoolean | undefined;
125
+ 'aria-readonly'?: import("@molecule/app-ui").AriaBoolean | undefined;
126
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
127
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
128
+ 'aria-level'?: number | undefined;
129
+ 'aria-rowcount'?: number | undefined;
130
+ 'aria-colcount'?: number | undefined;
131
+ 'aria-rowindex'?: number | undefined;
132
+ 'aria-colindex'?: number | undefined;
133
+ } & import("react").RefAttributes<HTMLHeadingElement>>;
22
134
  /**
23
135
  * Card description component.
24
136
  */
25
- export declare const CardDescription: React.ForwardRefExoticComponent<CardSectionProps & React.RefAttributes<HTMLParagraphElement>>;
137
+ export declare const CardDescription: import("react").ForwardRefExoticComponent<{
138
+ [x: `data-${string}`]: string | number | boolean | undefined;
139
+ title?: string | undefined;
140
+ style?: import("@molecule/app-ui").CSSProperties | undefined;
141
+ children?: import("react").ReactNode;
142
+ id?: string | undefined;
143
+ lang?: string | undefined;
144
+ className?: string | undefined;
145
+ role?: import("@molecule/app-ui").ElementRole | undefined;
146
+ 'aria-label'?: string | undefined;
147
+ 'aria-labelledby'?: string | undefined;
148
+ 'aria-describedby'?: string | undefined;
149
+ 'aria-hidden'?: import("@molecule/app-ui").AriaBoolean | undefined;
150
+ 'aria-disabled'?: import("@molecule/app-ui").AriaBoolean | undefined;
151
+ 'aria-expanded'?: import("@molecule/app-ui").AriaBoolean | undefined;
152
+ 'aria-selected'?: import("@molecule/app-ui").AriaBoolean | undefined;
153
+ 'aria-checked'?: (import("@molecule/app-ui").AriaBoolean | "mixed") | undefined;
154
+ 'aria-pressed'?: (import("@molecule/app-ui").AriaBoolean | "mixed") | undefined;
155
+ 'aria-busy'?: import("@molecule/app-ui").AriaBoolean | undefined;
156
+ 'aria-live'?: "off" | "polite" | "assertive" | undefined;
157
+ 'aria-valuenow'?: number | undefined;
158
+ 'aria-valuemin'?: number | undefined;
159
+ 'aria-valuemax'?: number | undefined;
160
+ 'aria-valuetext'?: string | undefined;
161
+ 'aria-current'?: (import("@molecule/app-ui").AriaBoolean | "page" | "step" | "location" | "date" | "time") | undefined;
162
+ 'aria-controls'?: string | undefined;
163
+ 'aria-haspopup'?: (import("@molecule/app-ui").AriaBoolean | "menu" | "listbox" | "tree" | "grid" | "dialog") | undefined;
164
+ 'aria-modal'?: import("@molecule/app-ui").AriaBoolean | undefined;
165
+ 'aria-invalid'?: import("@molecule/app-ui").AriaBoolean | undefined;
166
+ 'aria-required'?: import("@molecule/app-ui").AriaBoolean | undefined;
167
+ 'aria-readonly'?: import("@molecule/app-ui").AriaBoolean | undefined;
168
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
169
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
170
+ 'aria-level'?: number | undefined;
171
+ 'aria-rowcount'?: number | undefined;
172
+ 'aria-colcount'?: number | undefined;
173
+ 'aria-rowindex'?: number | undefined;
174
+ 'aria-colindex'?: number | undefined;
175
+ } & import("react").RefAttributes<HTMLParagraphElement>>;
26
176
  /**
27
177
  * Card content component.
28
178
  */
29
- export declare const CardContent: React.ForwardRefExoticComponent<CardSectionProps & React.RefAttributes<HTMLDivElement>>;
179
+ export declare const CardContent: import("react").ForwardRefExoticComponent<{
180
+ [x: `data-${string}`]: string | number | boolean | undefined;
181
+ title?: string | undefined;
182
+ style?: import("@molecule/app-ui").CSSProperties | undefined;
183
+ children?: import("react").ReactNode;
184
+ id?: string | undefined;
185
+ lang?: string | undefined;
186
+ className?: string | undefined;
187
+ role?: import("@molecule/app-ui").ElementRole | undefined;
188
+ 'aria-label'?: string | undefined;
189
+ 'aria-labelledby'?: string | undefined;
190
+ 'aria-describedby'?: string | undefined;
191
+ 'aria-hidden'?: import("@molecule/app-ui").AriaBoolean | undefined;
192
+ 'aria-disabled'?: import("@molecule/app-ui").AriaBoolean | undefined;
193
+ 'aria-expanded'?: import("@molecule/app-ui").AriaBoolean | undefined;
194
+ 'aria-selected'?: import("@molecule/app-ui").AriaBoolean | undefined;
195
+ 'aria-checked'?: (import("@molecule/app-ui").AriaBoolean | "mixed") | undefined;
196
+ 'aria-pressed'?: (import("@molecule/app-ui").AriaBoolean | "mixed") | undefined;
197
+ 'aria-busy'?: import("@molecule/app-ui").AriaBoolean | undefined;
198
+ 'aria-live'?: "off" | "polite" | "assertive" | undefined;
199
+ 'aria-valuenow'?: number | undefined;
200
+ 'aria-valuemin'?: number | undefined;
201
+ 'aria-valuemax'?: number | undefined;
202
+ 'aria-valuetext'?: string | undefined;
203
+ 'aria-current'?: (import("@molecule/app-ui").AriaBoolean | "page" | "step" | "location" | "date" | "time") | undefined;
204
+ 'aria-controls'?: string | undefined;
205
+ 'aria-haspopup'?: (import("@molecule/app-ui").AriaBoolean | "menu" | "listbox" | "tree" | "grid" | "dialog") | undefined;
206
+ 'aria-modal'?: import("@molecule/app-ui").AriaBoolean | undefined;
207
+ 'aria-invalid'?: import("@molecule/app-ui").AriaBoolean | undefined;
208
+ 'aria-required'?: import("@molecule/app-ui").AriaBoolean | undefined;
209
+ 'aria-readonly'?: import("@molecule/app-ui").AriaBoolean | undefined;
210
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
211
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
212
+ 'aria-level'?: number | undefined;
213
+ 'aria-rowcount'?: number | undefined;
214
+ 'aria-colcount'?: number | undefined;
215
+ 'aria-rowindex'?: number | undefined;
216
+ 'aria-colindex'?: number | undefined;
217
+ } & import("react").RefAttributes<HTMLDivElement>>;
30
218
  /**
31
219
  * Card footer component.
32
220
  */
33
- export declare const CardFooter: React.ForwardRefExoticComponent<CardSectionProps & React.RefAttributes<HTMLDivElement>>;
221
+ export declare const CardFooter: import("react").ForwardRefExoticComponent<{
222
+ [x: `data-${string}`]: string | number | boolean | undefined;
223
+ title?: string | undefined;
224
+ style?: import("@molecule/app-ui").CSSProperties | undefined;
225
+ children?: import("react").ReactNode;
226
+ id?: string | undefined;
227
+ lang?: string | undefined;
228
+ className?: string | undefined;
229
+ role?: import("@molecule/app-ui").ElementRole | undefined;
230
+ 'aria-label'?: string | undefined;
231
+ 'aria-labelledby'?: string | undefined;
232
+ 'aria-describedby'?: string | undefined;
233
+ 'aria-hidden'?: import("@molecule/app-ui").AriaBoolean | undefined;
234
+ 'aria-disabled'?: import("@molecule/app-ui").AriaBoolean | undefined;
235
+ 'aria-expanded'?: import("@molecule/app-ui").AriaBoolean | undefined;
236
+ 'aria-selected'?: import("@molecule/app-ui").AriaBoolean | undefined;
237
+ 'aria-checked'?: (import("@molecule/app-ui").AriaBoolean | "mixed") | undefined;
238
+ 'aria-pressed'?: (import("@molecule/app-ui").AriaBoolean | "mixed") | undefined;
239
+ 'aria-busy'?: import("@molecule/app-ui").AriaBoolean | undefined;
240
+ 'aria-live'?: "off" | "polite" | "assertive" | undefined;
241
+ 'aria-valuenow'?: number | undefined;
242
+ 'aria-valuemin'?: number | undefined;
243
+ 'aria-valuemax'?: number | undefined;
244
+ 'aria-valuetext'?: string | undefined;
245
+ 'aria-current'?: (import("@molecule/app-ui").AriaBoolean | "page" | "step" | "location" | "date" | "time") | undefined;
246
+ 'aria-controls'?: string | undefined;
247
+ 'aria-haspopup'?: (import("@molecule/app-ui").AriaBoolean | "menu" | "listbox" | "tree" | "grid" | "dialog") | undefined;
248
+ 'aria-modal'?: import("@molecule/app-ui").AriaBoolean | undefined;
249
+ 'aria-invalid'?: import("@molecule/app-ui").AriaBoolean | undefined;
250
+ 'aria-required'?: import("@molecule/app-ui").AriaBoolean | undefined;
251
+ 'aria-readonly'?: import("@molecule/app-ui").AriaBoolean | undefined;
252
+ 'aria-orientation'?: "horizontal" | "vertical" | undefined;
253
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
254
+ 'aria-level'?: number | undefined;
255
+ 'aria-rowcount'?: number | undefined;
256
+ 'aria-colcount'?: number | undefined;
257
+ 'aria-rowindex'?: number | undefined;
258
+ 'aria-colindex'?: number | undefined;
259
+ } & import("react").RefAttributes<HTMLDivElement>>;
34
260
  //# sourceMappingURL=Card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/components/Card.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAoB,MAAM,kBAAkB,CAAA;AAYrF;;GAEG;AACH,eAAO,MAAM,IAAI;oBAA4D,MAAM;wCA8FlF,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,UAAU,yFAgBtB,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,SAAS,6FAgBrB,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,eAAe,+FAgB3B,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,WAAW,yFAgBvB,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,UAAU,yFAgBtB,CAAA"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/components/Card.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAiBH;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA4D,MAAM;kDA6FlF,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAgBtB,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAgBrB,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wDAgB3B,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAgBvB,CAAA;AAID;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAgBtB,CAAA"}
@@ -21,7 +21,6 @@ export const Card = forwardRef(({ children, variant = 'elevated', interactive, p
21
21
  const paddingClass = padding === 'none' ? '' : cm.cardPadding(padding);
22
22
  const cardVariant = variantMap[variant] || 'default';
23
23
  const cardClasses = cm.cn(cm.card({ variant: cardVariant }), paddingClass, interactive && cm.cardInteractive, className);
24
- const content = children;
25
24
  // Every handler and the caller's own props reach the card. A disabled card never calls
26
25
  // onClick; on a device a card with a handler or a tab stop is pressable.
27
26
  const common = {
@@ -41,7 +40,7 @@ export const Card = forwardRef(({ children, variant = 'elevated', interactive, p
41
40
  onKeyPress,
42
41
  };
43
42
  if (!interactive) {
44
- return (_jsx(Box, { ...common, role: role, tabIndex: tabIndex, onKeyDown: onKeyDown, children: content }));
43
+ return (_jsx(Box, { ...common, role: role, tabIndex: tabIndex, onKeyDown: onKeyDown, children: children }));
45
44
  }
46
45
  // An interactive card is announced as a button and sits in the tab order, so
47
46
  // Enter and Space activate it the way they activate a native button: by
@@ -65,7 +64,7 @@ export const Card = forwardRef(({ children, variant = 'elevated', interactive, p
65
64
  };
66
65
  return (_jsx(Pressable, { ...common,
67
66
  // A caller's role or tabIndex replaces the interactive default.
68
- role: role ?? 'button', tabIndex: tabIndex ?? (disabled ? -1 : 0), "aria-disabled": disabled ? true : undefined, onKeyDown: handleKeyDown, children: content }));
67
+ role: role ?? 'button', tabIndex: tabIndex ?? (disabled ? -1 : 0), "aria-disabled": disabled ? true : undefined, onKeyDown: handleKeyDown, children: children }));
69
68
  });
70
69
  Card.displayName = 'Card';
71
70
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../src/components/Card.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAA;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AA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AAC,CACF,CAAA;AAED,UAAU,CAAC,WAAW,GAAG,YAAY,CAAA"}
@@ -3,13 +3,21 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import React from 'react';
7
- import type { EmptyStateProps } from '@molecule/app-ui';
8
6
  /**
9
7
  * EmptyState component.
10
8
  *
11
9
  * Displays a centered placeholder with an optional icon, title, description,
12
10
  * and a primary action when a list or section has no content.
13
11
  */
14
- export declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const EmptyState: import("react").ForwardRefExoticComponent<{
13
+ icon?: import("react").ReactNode;
14
+ title: string;
15
+ description?: string | undefined;
16
+ action?: import("react").ReactNode;
17
+ className?: string | undefined;
18
+ style?: import("@molecule/app-ui").CSSProperties | undefined;
19
+ testId?: string | undefined;
20
+ automationId?: string | undefined;
21
+ disabled?: boolean | undefined;
22
+ } & import("react").RefAttributes<HTMLDivElement>>;
15
23
  //# sourceMappingURL=EmptyState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../src/components/EmptyState.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAqB,MAAM,OAAO,CAAA;AAGzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAIvD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,wFAgDtB,CAAA"}
1
+ {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../src/components/EmptyState.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;kDAgDtB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.js","sourceRoot":"","sources":["../../src/components/EmptyState.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,IAAI,EAAE,MA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AC,CAAC,CAAC,CACb,KAAC,IAAI,IAAC,EAAE,EAAC,GAAG,EAAC,SAAS,EAAE,EAAE,CAAC,qBAAqB,YAC7C,WAAW,GACP,CACR,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,CACR,KAAC,GAAG,IAAC,EAAE,EAAC,KAAK,EAAC,SAAS,EAAE,EAAE,CAAC,gBAAgB,YACzC,MAAM,GACH,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,UAAU,CAAC,WAAW,GAAG,YAAY,CAAA"}
@@ -4,7 +4,8 @@
4
4
  * @module
5
5
  */
6
6
  import React from 'react';
7
- import type { AriaBoolean, ElementRole, FormFieldProps, FormProps } from '@molecule/app-ui';
7
+ import type { AriaBoolean, ElementRole } from '@molecule/app-ui';
8
+ import type { FormProps } from '../types.js';
8
9
  /** Props for the React form, including a failure managed by an external form controller. */
9
10
  export interface ReactFormProps extends FormProps {
10
11
  /** A rejected submission, for example useForm().formState.submitError. */
@@ -18,7 +19,47 @@ export declare const Form: React.ForwardRefExoticComponent<ReactFormProps & Reac
18
19
  /**
19
20
  * Form field wrapper component.
20
21
  */
21
- export declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & React.RefAttributes<HTMLDivElement>>;
22
+ export declare const FormField: React.ForwardRefExoticComponent<{
23
+ children?: React.ReactNode;
24
+ label?: string | undefined;
25
+ name?: string | undefined;
26
+ error?: string | undefined;
27
+ hint?: string | undefined;
28
+ required?: boolean | undefined;
29
+ id?: string | undefined;
30
+ title?: string | undefined;
31
+ tabIndex?: number | undefined;
32
+ role?: ElementRole | undefined;
33
+ 'aria-label'?: string | undefined;
34
+ 'aria-labelledby'?: string | undefined;
35
+ 'aria-describedby'?: string | undefined;
36
+ 'aria-hidden'?: boolean | undefined;
37
+ 'aria-disabled'?: boolean | undefined;
38
+ 'aria-expanded'?: boolean | undefined;
39
+ 'aria-selected'?: boolean | undefined;
40
+ 'aria-checked'?: boolean | "mixed" | undefined;
41
+ 'aria-pressed'?: boolean | "mixed" | undefined;
42
+ 'aria-invalid'?: boolean | undefined;
43
+ 'aria-required'?: boolean | undefined;
44
+ 'aria-readonly'?: boolean | undefined;
45
+ 'aria-busy'?: boolean | undefined;
46
+ 'aria-live'?: "off" | "polite" | "assertive" | undefined;
47
+ onClick?: import("@molecule/app-ui").MouseEventHandler | undefined;
48
+ onDoubleClick?: import("@molecule/app-ui").MouseEventHandler | undefined;
49
+ onMouseEnter?: import("@molecule/app-ui").MouseEventHandler | undefined;
50
+ onMouseLeave?: import("@molecule/app-ui").MouseEventHandler | undefined;
51
+ onFocus?: import("@molecule/app-ui").FocusEventHandler | undefined;
52
+ onBlur?: import("@molecule/app-ui").FocusEventHandler | undefined;
53
+ onKeyDown?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
54
+ onKeyUp?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
55
+ onKeyPress?: import("@molecule/app-ui").KeyboardEventHandler | undefined;
56
+ className?: string | undefined;
57
+ style?: import("@molecule/app-ui").CSSProperties | undefined;
58
+ testId?: string | undefined;
59
+ automationId?: string | undefined;
60
+ disabled?: boolean | undefined;
61
+ lang?: string | undefined;
62
+ } & React.RefAttributes<HTMLDivElement>>;
22
63
  /**
23
64
  * Label component.
24
65
  *
@@ -26,7 +67,7 @@ export declare const FormField: React.ForwardRefExoticComponent<FormFieldProps &
26
67
  * `role` and `aria-invalid` take the types that element takes (the ones every kit component's
27
68
  * props declare); the other attributes reach the element as given.
28
69
  */
29
- export declare const Label: React.ForwardRefExoticComponent<Omit<React.LabelHTMLAttributes<HTMLLabelElement>, "role" | "aria-invalid"> & {
70
+ export declare const Label: React.ForwardRefExoticComponent<Omit<React.LabelHTMLAttributes<HTMLLabelElement>, "aria-invalid" | "role"> & {
30
71
  /** The accessibility role (a listed role). */
31
72
  role?: ElementRole;
32
73
  /** Whether the labelled value is invalid. */
@@ -1 +1 @@
1
- {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../src/components/Form.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAyD,MAAM,OAAO,CAAA;AAG7E,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EAEX,cAAc,EACd,SAAS,EAEV,MAAM,kBAAkB,CAAA;AAUzB,4FAA4F;AAC5F,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,0EAA0E;IAC1E,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,wFAoGf,CAAA;AAIF;;GAEG;AACH,eAAO,MAAM,SAAS,uFA2ErB,CAAA;AAID;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;IAGd,8CAA8C;WACvC,WAAW;IAClB,6CAA6C;qBAC5B,WAAW;IAC5B,qDAAqD;eAC1C,OAAO;0CAkBpB,CAAA"}
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../src/components/Form.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAyD,MAAM,OAAO,CAAA;AAG7E,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAyB,MAAM,kBAAkB,CAAA;AAIvF,OAAO,KAAK,EAAkB,SAAS,EAAE,MAAM,aAAa,CAAA;AAQ5D,4FAA4F;AAC5F,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,0EAA0E;IAC1E,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,wFAoGf,CAAA;AA0CF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAgDrB,CAAA;AAID;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;IAGd,8CAA8C;WACvC,WAAW;IAClB,6CAA6C;qBAC5B,WAAW;IAC5B,qDAAqD;eAC1C,OAAO;0CAkBpB,CAAA"}