@molecule/app-ui-react 4.15.1 → 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.
- package/README.md +711 -385
- package/dist/components/Badge.d.ts +40 -3
- package/dist/components/Badge.d.ts.map +1 -1
- package/dist/components/Badge.js.map +1 -1
- package/dist/components/Button.d.ts +48 -3
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Card.d.ts +235 -9
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/Card.js +2 -3
- package/dist/components/Card.js.map +1 -1
- package/dist/components/EmptyState.d.ts +11 -3
- package/dist/components/EmptyState.d.ts.map +1 -1
- package/dist/components/EmptyState.js.map +1 -1
- package/dist/components/Form.d.ts +44 -3
- package/dist/components/Form.d.ts.map +1 -1
- package/dist/components/Form.js +34 -36
- package/dist/components/Form.js.map +1 -1
- package/dist/components/Input.d.ts +61 -3
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +5 -4
- package/dist/components/Input.js.map +1 -1
- package/dist/components/Layout.d.ts +123 -6
- package/dist/components/Layout.d.ts.map +1 -1
- package/dist/components/Layout.js +25 -21
- package/dist/components/Layout.js.map +1 -1
- package/dist/components/OptimisticToggleButton.d.ts +1 -1
- package/dist/components/OptimisticToggleButton.d.ts.map +1 -1
- package/dist/components/PageHeader.d.ts +14 -2
- package/dist/components/PageHeader.d.ts.map +1 -1
- package/dist/components/PageHeader.js.map +1 -1
- package/dist/components/PageShell.d.ts +12 -3
- package/dist/components/PageShell.d.ts.map +1 -1
- package/dist/components/PageShell.js.map +1 -1
- package/dist/kit.native.d.ts.map +1 -1
- package/dist/kit.native.js +2 -1
- package/dist/kit.native.js.map +1 -1
- package/dist/kit.web.d.ts.map +1 -1
- package/dist/kit.web.js +2 -1
- package/dist/kit.web.js.map +1 -1
- package/dist/types.d.ts +34 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utilities/accessibleKit.d.ts +4 -0
- package/dist/utilities/accessibleKit.d.ts.map +1 -0
- package/dist/utilities/accessibleKit.js +31 -0
- package/dist/utilities/accessibleKit.js.map +1 -0
- package/dist/utilities/fieldAttributes.d.ts +10 -0
- package/dist/utilities/fieldAttributes.d.ts.map +1 -0
- package/dist/utilities/fieldAttributes.js +21 -0
- package/dist/utilities/fieldAttributes.js.map +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-12-
|
|
6
|
+
Generated: 2026-12-01T18:58:28.151Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-ui-react
|
|
@@ -383,129 +383,6 @@ interface FormElementProps extends HTMLElementProps {
|
|
|
383
383
|
}
|
|
384
384
|
```
|
|
385
385
|
|
|
386
|
-
#### `ButtonProps`
|
|
387
|
-
|
|
388
|
-
Props for the Button component.
|
|
389
|
-
|
|
390
|
-
```typescript
|
|
391
|
-
interface ButtonProps extends ButtonElementProps {
|
|
392
|
-
/**
|
|
393
|
-
* Button content.
|
|
394
|
-
*/
|
|
395
|
-
children?: Children
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* Visual variant.
|
|
399
|
-
*/
|
|
400
|
-
variant?: ButtonVariant
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* Color scheme.
|
|
404
|
-
*/
|
|
405
|
-
color?: ColorVariant
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* Button size.
|
|
409
|
-
*/
|
|
410
|
-
size?: ButtonSize
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* Whether the button is in a loading state.
|
|
414
|
-
*/
|
|
415
|
-
loading?: boolean
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* Loading text to display.
|
|
419
|
-
*/
|
|
420
|
-
loadingText?: string
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Whether the button takes full width.
|
|
424
|
-
*/
|
|
425
|
-
fullWidth?: boolean
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Icon to display before the label.
|
|
429
|
-
*/
|
|
430
|
-
leftIcon?: Children
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* Icon to display after the label.
|
|
434
|
-
*/
|
|
435
|
-
rightIcon?: Children
|
|
436
|
-
}
|
|
437
|
-
```
|
|
438
|
-
|
|
439
|
-
#### `InputProps`
|
|
440
|
-
|
|
441
|
-
Props for the Input component (text field, email, password, etc.).
|
|
442
|
-
|
|
443
|
-
Ref element: the native `<input>`.
|
|
444
|
-
|
|
445
|
-
```typescript
|
|
446
|
-
interface InputProps extends InputElementProps, Pick<TextFieldProps, 'onValueChange'> {
|
|
447
|
-
/** The edited field's text is available as `event.target.value`. */
|
|
448
|
-
onChange?: EventHandler<KitFieldChangeEvent>
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Input type.
|
|
452
|
-
*/
|
|
453
|
-
type?: InputType
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* Input size.
|
|
457
|
-
*/
|
|
458
|
-
size?: Size
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* Horizontal text alignment inside the input (see
|
|
462
|
-
* {@link InputClassOptions.align}). Defaults to the bond's own style.
|
|
463
|
-
*/
|
|
464
|
-
align?: 'left' | 'center'
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* Label text.
|
|
468
|
-
*/
|
|
469
|
-
label?: string
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Error message.
|
|
473
|
-
*/
|
|
474
|
-
error?: string
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* Hint/help text.
|
|
478
|
-
*/
|
|
479
|
-
hint?: string
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Element to display on the left.
|
|
483
|
-
*/
|
|
484
|
-
leftElement?: Children
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Element to display on the right.
|
|
488
|
-
*/
|
|
489
|
-
rightElement?: Children
|
|
490
|
-
|
|
491
|
-
/**
|
|
492
|
-
* Whether to show a clear button.
|
|
493
|
-
*/
|
|
494
|
-
clearable?: boolean
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Called when the clear button is clicked.
|
|
498
|
-
*/
|
|
499
|
-
onClear?: () => void
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Accessible label for the clear button.
|
|
503
|
-
* @default 'Clear'
|
|
504
|
-
*/
|
|
505
|
-
clearLabel?: string
|
|
506
|
-
}
|
|
507
|
-
```
|
|
508
|
-
|
|
509
386
|
#### `TextareaProps`
|
|
510
387
|
|
|
511
388
|
Props for the Textarea component.
|
|
@@ -921,171 +798,6 @@ interface AvatarProps extends HTMLElementProps {
|
|
|
921
798
|
}
|
|
922
799
|
```
|
|
923
800
|
|
|
924
|
-
#### `BadgeProps`
|
|
925
|
-
|
|
926
|
-
Props for the Badge component (status labels, counts, tags).
|
|
927
|
-
|
|
928
|
-
```typescript
|
|
929
|
-
interface BadgeProps extends HTMLElementProps {
|
|
930
|
-
/**
|
|
931
|
-
* Badge content.
|
|
932
|
-
*/
|
|
933
|
-
children?: Children
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
* Badge color.
|
|
937
|
-
*/
|
|
938
|
-
color?: ColorVariant
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
* Badge variant.
|
|
942
|
-
*/
|
|
943
|
-
variant?: 'solid' | 'outline' | 'subtle'
|
|
944
|
-
|
|
945
|
-
/**
|
|
946
|
-
* Badge size.
|
|
947
|
-
*/
|
|
948
|
-
size?: Size
|
|
949
|
-
|
|
950
|
-
/**
|
|
951
|
-
* Whether the badge is rounded.
|
|
952
|
-
*/
|
|
953
|
-
rounded?: boolean
|
|
954
|
-
}
|
|
955
|
-
```
|
|
956
|
-
|
|
957
|
-
#### `CardProps`
|
|
958
|
-
|
|
959
|
-
Props for the Card container component (elevated, outlined, or filled surface).
|
|
960
|
-
|
|
961
|
-
```typescript
|
|
962
|
-
interface CardProps extends HTMLElementProps {
|
|
963
|
-
/**
|
|
964
|
-
* Card content.
|
|
965
|
-
*/
|
|
966
|
-
children?: Children
|
|
967
|
-
|
|
968
|
-
/**
|
|
969
|
-
* Card variant.
|
|
970
|
-
*/
|
|
971
|
-
variant?: 'elevated' | 'outlined' | 'filled'
|
|
972
|
-
|
|
973
|
-
/**
|
|
974
|
-
* Whether the card is interactive (clickable).
|
|
975
|
-
*/
|
|
976
|
-
interactive?: boolean
|
|
977
|
-
|
|
978
|
-
/**
|
|
979
|
-
* Padding size.
|
|
980
|
-
*/
|
|
981
|
-
padding?: Size | 'none'
|
|
982
|
-
}
|
|
983
|
-
```
|
|
984
|
-
|
|
985
|
-
#### `ContainerProps`
|
|
986
|
-
|
|
987
|
-
Props for the Container layout component.
|
|
988
|
-
|
|
989
|
-
```typescript
|
|
990
|
-
interface ContainerProps extends HTMLElementProps {
|
|
991
|
-
/**
|
|
992
|
-
* Container content.
|
|
993
|
-
*/
|
|
994
|
-
children?: Children
|
|
995
|
-
|
|
996
|
-
/**
|
|
997
|
-
* Maximum width.
|
|
998
|
-
*/
|
|
999
|
-
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full' | string
|
|
1000
|
-
|
|
1001
|
-
/**
|
|
1002
|
-
* Whether to center the container.
|
|
1003
|
-
*/
|
|
1004
|
-
centered?: boolean
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* Horizontal padding.
|
|
1008
|
-
*/
|
|
1009
|
-
paddingX?: Size | string
|
|
1010
|
-
}
|
|
1011
|
-
```
|
|
1012
|
-
|
|
1013
|
-
#### `FlexProps`
|
|
1014
|
-
|
|
1015
|
-
Flex container props.
|
|
1016
|
-
|
|
1017
|
-
```typescript
|
|
1018
|
-
interface FlexProps extends HTMLElementProps {
|
|
1019
|
-
/**
|
|
1020
|
-
* Flex content.
|
|
1021
|
-
*/
|
|
1022
|
-
children?: Children
|
|
1023
|
-
|
|
1024
|
-
/**
|
|
1025
|
-
* Flex direction.
|
|
1026
|
-
*/
|
|
1027
|
-
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse'
|
|
1028
|
-
|
|
1029
|
-
/**
|
|
1030
|
-
* Justify content.
|
|
1031
|
-
*/
|
|
1032
|
-
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly'
|
|
1033
|
-
|
|
1034
|
-
/**
|
|
1035
|
-
* Align items.
|
|
1036
|
-
*/
|
|
1037
|
-
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch'
|
|
1038
|
-
|
|
1039
|
-
/**
|
|
1040
|
-
* Flex wrap.
|
|
1041
|
-
*/
|
|
1042
|
-
wrap?: 'wrap' | 'nowrap' | 'wrap-reverse'
|
|
1043
|
-
|
|
1044
|
-
/**
|
|
1045
|
-
* Gap between items.
|
|
1046
|
-
*/
|
|
1047
|
-
gap?: Size | string | number
|
|
1048
|
-
}
|
|
1049
|
-
```
|
|
1050
|
-
|
|
1051
|
-
#### `GridProps`
|
|
1052
|
-
|
|
1053
|
-
Grid container props.
|
|
1054
|
-
|
|
1055
|
-
```typescript
|
|
1056
|
-
interface GridProps extends HTMLElementProps {
|
|
1057
|
-
/**
|
|
1058
|
-
* Grid content.
|
|
1059
|
-
*/
|
|
1060
|
-
children?: Children
|
|
1061
|
-
|
|
1062
|
-
/**
|
|
1063
|
-
* Number of columns.
|
|
1064
|
-
*/
|
|
1065
|
-
columns?: number | string
|
|
1066
|
-
|
|
1067
|
-
/**
|
|
1068
|
-
* Number of rows.
|
|
1069
|
-
*/
|
|
1070
|
-
rows?: number | string
|
|
1071
|
-
|
|
1072
|
-
/**
|
|
1073
|
-
* Gap between items.
|
|
1074
|
-
*/
|
|
1075
|
-
gap?: Size | string | number
|
|
1076
|
-
|
|
1077
|
-
/**
|
|
1078
|
-
* Column gap.
|
|
1079
|
-
*/
|
|
1080
|
-
columnGap?: Size | string | number
|
|
1081
|
-
|
|
1082
|
-
/**
|
|
1083
|
-
* Row gap.
|
|
1084
|
-
*/
|
|
1085
|
-
rowGap?: Size | string | number
|
|
1086
|
-
}
|
|
1087
|
-
```
|
|
1088
|
-
|
|
1089
801
|
#### `SpacerProps`
|
|
1090
802
|
|
|
1091
803
|
Props for the Spacer layout component (adds whitespace between elements).
|
|
@@ -1104,67 +816,6 @@ interface SpacerProps extends BaseProps {
|
|
|
1104
816
|
}
|
|
1105
817
|
```
|
|
1106
818
|
|
|
1107
|
-
#### `FormProps`
|
|
1108
|
-
|
|
1109
|
-
Props for the Form component (wraps inputs with submission handling and validation).
|
|
1110
|
-
|
|
1111
|
-
```typescript
|
|
1112
|
-
interface FormProps extends FormElementProps {
|
|
1113
|
-
/**
|
|
1114
|
-
* Form content.
|
|
1115
|
-
*/
|
|
1116
|
-
children?: Children
|
|
1117
|
-
|
|
1118
|
-
/**
|
|
1119
|
-
* Submit handler with form data.
|
|
1120
|
-
*/
|
|
1121
|
-
onFormSubmit?: (data: Record<string, unknown>) => void | Promise<void>
|
|
1122
|
-
|
|
1123
|
-
/**
|
|
1124
|
-
* Whether the form is submitting.
|
|
1125
|
-
*/
|
|
1126
|
-
submitting?: boolean
|
|
1127
|
-
}
|
|
1128
|
-
```
|
|
1129
|
-
|
|
1130
|
-
#### `FormFieldProps`
|
|
1131
|
-
|
|
1132
|
-
Form field wrapper props.
|
|
1133
|
-
|
|
1134
|
-
```typescript
|
|
1135
|
-
interface FormFieldProps extends HTMLElementProps {
|
|
1136
|
-
/**
|
|
1137
|
-
* Field content.
|
|
1138
|
-
*/
|
|
1139
|
-
children?: Children
|
|
1140
|
-
|
|
1141
|
-
/**
|
|
1142
|
-
* Field label.
|
|
1143
|
-
*/
|
|
1144
|
-
label?: string
|
|
1145
|
-
|
|
1146
|
-
/**
|
|
1147
|
-
* Field name.
|
|
1148
|
-
*/
|
|
1149
|
-
name?: string
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
* Error message.
|
|
1153
|
-
*/
|
|
1154
|
-
error?: string
|
|
1155
|
-
|
|
1156
|
-
/**
|
|
1157
|
-
* Hint/help text.
|
|
1158
|
-
*/
|
|
1159
|
-
hint?: string
|
|
1160
|
-
|
|
1161
|
-
/**
|
|
1162
|
-
* Whether the field is required.
|
|
1163
|
-
*/
|
|
1164
|
-
required?: boolean
|
|
1165
|
-
}
|
|
1166
|
-
```
|
|
1167
|
-
|
|
1168
819
|
#### `AlertProps`
|
|
1169
820
|
|
|
1170
821
|
Props for the Alert component.
|
|
@@ -2312,15 +1963,6 @@ interface TooltipProps
|
|
|
2312
1963
|
|
|
2313
1964
|
### Types
|
|
2314
1965
|
|
|
2315
|
-
#### `Children`
|
|
2316
|
-
|
|
2317
|
-
Framework-agnostic child content.
|
|
2318
|
-
Use `unknown` to allow any framework's node type (ReactNode, VNode, etc.).
|
|
2319
|
-
|
|
2320
|
-
```typescript
|
|
2321
|
-
type Children = unknown
|
|
2322
|
-
```
|
|
2323
|
-
|
|
2324
1966
|
#### `EventHandler`
|
|
2325
1967
|
|
|
2326
1968
|
Framework-agnostic event handler. An unannotated handler's event is `E`. It is declared as a
|
|
@@ -2449,6 +2091,118 @@ as a token" case).
|
|
|
2449
2091
|
type ShellSidebarWidth = 'sm' | 'md' | 'lg' | number
|
|
2450
2092
|
```
|
|
2451
2093
|
|
|
2094
|
+
#### `Children`
|
|
2095
|
+
|
|
2096
|
+
Content accepted by the React renderer.
|
|
2097
|
+
|
|
2098
|
+
```typescript
|
|
2099
|
+
type Children = ReactNode
|
|
2100
|
+
```
|
|
2101
|
+
|
|
2102
|
+
#### `BadgeProps`
|
|
2103
|
+
|
|
2104
|
+
Badge with React children.
|
|
2105
|
+
|
|
2106
|
+
```typescript
|
|
2107
|
+
type BadgeProps = WithNodes<Core.BadgeProps, 'children'>
|
|
2108
|
+
```
|
|
2109
|
+
|
|
2110
|
+
#### `ButtonProps`
|
|
2111
|
+
|
|
2112
|
+
Button content, icons and shared activation handlers.
|
|
2113
|
+
|
|
2114
|
+
```typescript
|
|
2115
|
+
type ButtonProps = WithNodes<Core.ButtonProps, 'children' | 'leftIcon' | 'rightIcon'>
|
|
2116
|
+
```
|
|
2117
|
+
|
|
2118
|
+
#### `CardProps`
|
|
2119
|
+
|
|
2120
|
+
Card with React children.
|
|
2121
|
+
|
|
2122
|
+
```typescript
|
|
2123
|
+
type CardProps = WithNodes<Core.CardProps, 'children'>
|
|
2124
|
+
```
|
|
2125
|
+
|
|
2126
|
+
#### `CardSectionProps`
|
|
2127
|
+
|
|
2128
|
+
Content for a card header, title, description, body or footer.
|
|
2129
|
+
|
|
2130
|
+
```typescript
|
|
2131
|
+
type CardSectionProps = WithNodes<Core.CardSectionProps, 'children'>
|
|
2132
|
+
```
|
|
2133
|
+
|
|
2134
|
+
#### `ContainerProps`
|
|
2135
|
+
|
|
2136
|
+
Width-constrained container with React children.
|
|
2137
|
+
|
|
2138
|
+
```typescript
|
|
2139
|
+
type ContainerProps = WithNodes<Core.ContainerProps, 'children'>
|
|
2140
|
+
```
|
|
2141
|
+
|
|
2142
|
+
#### `EmptyStateProps`
|
|
2143
|
+
|
|
2144
|
+
Empty state with a React illustration and action.
|
|
2145
|
+
|
|
2146
|
+
```typescript
|
|
2147
|
+
type EmptyStateProps = WithNodes<Core.EmptyStateProps, 'icon' | 'action'>
|
|
2148
|
+
```
|
|
2149
|
+
|
|
2150
|
+
#### `FlexProps`
|
|
2151
|
+
|
|
2152
|
+
Flex layout with React children.
|
|
2153
|
+
|
|
2154
|
+
```typescript
|
|
2155
|
+
type FlexProps = WithNodes<Core.FlexProps, 'children'>
|
|
2156
|
+
```
|
|
2157
|
+
|
|
2158
|
+
#### `FormFieldProps`
|
|
2159
|
+
|
|
2160
|
+
Labeled wrapper for a field and its validation message.
|
|
2161
|
+
|
|
2162
|
+
```typescript
|
|
2163
|
+
type FormFieldProps = WithNodes<Core.FormFieldProps, 'children'>
|
|
2164
|
+
```
|
|
2165
|
+
|
|
2166
|
+
#### `FormProps`
|
|
2167
|
+
|
|
2168
|
+
Form with React children and shared submit handlers.
|
|
2169
|
+
|
|
2170
|
+
```typescript
|
|
2171
|
+
type FormProps = WithNodes<Core.FormProps, 'children'>
|
|
2172
|
+
```
|
|
2173
|
+
|
|
2174
|
+
#### `GridProps`
|
|
2175
|
+
|
|
2176
|
+
Grid layout with React children.
|
|
2177
|
+
|
|
2178
|
+
```typescript
|
|
2179
|
+
type GridProps = WithNodes<Core.GridProps, 'children'>
|
|
2180
|
+
```
|
|
2181
|
+
|
|
2182
|
+
#### `InputProps`
|
|
2183
|
+
|
|
2184
|
+
Text input with React adornments and typed field events.
|
|
2185
|
+
|
|
2186
|
+
```typescript
|
|
2187
|
+
type InputProps = WithNodes<Core.InputProps, 'leftElement' | 'rightElement'>
|
|
2188
|
+
```
|
|
2189
|
+
|
|
2190
|
+
#### `PageHeaderProps`
|
|
2191
|
+
|
|
2192
|
+
Page header with a React action slot.
|
|
2193
|
+
|
|
2194
|
+
```typescript
|
|
2195
|
+
type PageHeaderProps = WithNodes<Core.PageHeaderProps, 'actions'>
|
|
2196
|
+
```
|
|
2197
|
+
|
|
2198
|
+
#### `PageShellProps`
|
|
2199
|
+
|
|
2200
|
+
Page shell with sidebar, top bar and main content.
|
|
2201
|
+
|
|
2202
|
+
```typescript
|
|
2203
|
+
type PageShellProps = WithNodes<Core.PageShellProps, 'children' | 'sidebar' | 'topbar'>
|
|
2204
|
+
```
|
|
2205
|
+
|
|
2452
2206
|
### Functions
|
|
2453
2207
|
|
|
2454
2208
|
#### `AuthGuard(props)`
|
|
@@ -2983,7 +2737,48 @@ function cn(...inputs: (string | undefined | null | false)[]): string
|
|
|
2983
2737
|
Badge component.
|
|
2984
2738
|
|
|
2985
2739
|
```typescript
|
|
2986
|
-
const Badge:
|
|
2740
|
+
const Badge: ForwardRefExoticComponent<
|
|
2741
|
+
{
|
|
2742
|
+
children?: ReactNode
|
|
2743
|
+
color?: ColorVariant | undefined
|
|
2744
|
+
variant?: 'solid' | 'outline' | 'subtle' | undefined
|
|
2745
|
+
size?: Size | undefined
|
|
2746
|
+
rounded?: boolean | undefined
|
|
2747
|
+
id?: string | undefined
|
|
2748
|
+
title?: string | undefined
|
|
2749
|
+
tabIndex?: number | undefined
|
|
2750
|
+
role?: ElementRole | undefined
|
|
2751
|
+
'aria-label'?: string | undefined
|
|
2752
|
+
'aria-labelledby'?: string | undefined
|
|
2753
|
+
'aria-describedby'?: string | undefined
|
|
2754
|
+
'aria-hidden'?: boolean | undefined
|
|
2755
|
+
'aria-disabled'?: boolean | undefined
|
|
2756
|
+
'aria-expanded'?: boolean | undefined
|
|
2757
|
+
'aria-selected'?: boolean | undefined
|
|
2758
|
+
'aria-checked'?: boolean | 'mixed' | undefined
|
|
2759
|
+
'aria-pressed'?: boolean | 'mixed' | undefined
|
|
2760
|
+
'aria-invalid'?: boolean | undefined
|
|
2761
|
+
'aria-required'?: boolean | undefined
|
|
2762
|
+
'aria-readonly'?: boolean | undefined
|
|
2763
|
+
'aria-busy'?: boolean | undefined
|
|
2764
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
2765
|
+
onClick?: MouseEventHandler | undefined
|
|
2766
|
+
onDoubleClick?: MouseEventHandler | undefined
|
|
2767
|
+
onMouseEnter?: MouseEventHandler | undefined
|
|
2768
|
+
onMouseLeave?: MouseEventHandler | undefined
|
|
2769
|
+
onFocus?: FocusEventHandler | undefined
|
|
2770
|
+
onBlur?: FocusEventHandler | undefined
|
|
2771
|
+
onKeyDown?: KeyboardEventHandler | undefined
|
|
2772
|
+
onKeyUp?: KeyboardEventHandler | undefined
|
|
2773
|
+
onKeyPress?: KeyboardEventHandler | undefined
|
|
2774
|
+
className?: string | undefined
|
|
2775
|
+
style?: CSSProperties | undefined
|
|
2776
|
+
testId?: string | undefined
|
|
2777
|
+
automationId?: string | undefined
|
|
2778
|
+
disabled?: boolean | undefined
|
|
2779
|
+
lang?: string | undefined
|
|
2780
|
+
} & RefAttributes<HTMLSpanElement>
|
|
2781
|
+
>
|
|
2987
2782
|
```
|
|
2988
2783
|
|
|
2989
2784
|
#### `Button`
|
|
@@ -2997,7 +2792,56 @@ does not queue clicks; an app that must preserve every intent needs its own
|
|
|
2997
2792
|
serial action queue.
|
|
2998
2793
|
|
|
2999
2794
|
```typescript
|
|
3000
|
-
const Button:
|
|
2795
|
+
const Button: ForwardRefExoticComponent<
|
|
2796
|
+
{
|
|
2797
|
+
children?: ReactNode
|
|
2798
|
+
variant?: ButtonVariant | undefined
|
|
2799
|
+
color?: ColorVariant | undefined
|
|
2800
|
+
size?: ButtonSize | undefined
|
|
2801
|
+
loading?: boolean | undefined
|
|
2802
|
+
loadingText?: string | undefined
|
|
2803
|
+
fullWidth?: boolean | undefined
|
|
2804
|
+
leftIcon?: ReactNode
|
|
2805
|
+
rightIcon?: ReactNode
|
|
2806
|
+
type?: 'button' | 'submit' | 'reset' | undefined
|
|
2807
|
+
name?: string | undefined
|
|
2808
|
+
value?: string | undefined
|
|
2809
|
+
form?: string | undefined
|
|
2810
|
+
id?: string | undefined
|
|
2811
|
+
title?: string | undefined
|
|
2812
|
+
tabIndex?: number | undefined
|
|
2813
|
+
role?: ElementRole | undefined
|
|
2814
|
+
'aria-label'?: string | undefined
|
|
2815
|
+
'aria-labelledby'?: string | undefined
|
|
2816
|
+
'aria-describedby'?: string | undefined
|
|
2817
|
+
'aria-hidden'?: boolean | undefined
|
|
2818
|
+
'aria-disabled'?: boolean | undefined
|
|
2819
|
+
'aria-expanded'?: boolean | undefined
|
|
2820
|
+
'aria-selected'?: boolean | undefined
|
|
2821
|
+
'aria-checked'?: boolean | 'mixed' | undefined
|
|
2822
|
+
'aria-pressed'?: boolean | 'mixed' | undefined
|
|
2823
|
+
'aria-invalid'?: boolean | undefined
|
|
2824
|
+
'aria-required'?: boolean | undefined
|
|
2825
|
+
'aria-readonly'?: boolean | undefined
|
|
2826
|
+
'aria-busy'?: boolean | undefined
|
|
2827
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
2828
|
+
onClick?: MouseEventHandler | undefined
|
|
2829
|
+
onDoubleClick?: MouseEventHandler | undefined
|
|
2830
|
+
onMouseEnter?: MouseEventHandler | undefined
|
|
2831
|
+
onMouseLeave?: MouseEventHandler | undefined
|
|
2832
|
+
onFocus?: FocusEventHandler | undefined
|
|
2833
|
+
onBlur?: FocusEventHandler | undefined
|
|
2834
|
+
onKeyDown?: KeyboardEventHandler | undefined
|
|
2835
|
+
onKeyUp?: KeyboardEventHandler | undefined
|
|
2836
|
+
onKeyPress?: KeyboardEventHandler | undefined
|
|
2837
|
+
className?: string | undefined
|
|
2838
|
+
style?: CSSProperties | undefined
|
|
2839
|
+
testId?: string | undefined
|
|
2840
|
+
automationId?: string | undefined
|
|
2841
|
+
disabled?: boolean | undefined
|
|
2842
|
+
lang?: string | undefined
|
|
2843
|
+
} & RefAttributes<HTMLButtonElement>
|
|
2844
|
+
>
|
|
3001
2845
|
```
|
|
3002
2846
|
|
|
3003
2847
|
#### `Card`
|
|
@@ -3005,8 +2849,46 @@ const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<
|
|
|
3005
2849
|
Card component.
|
|
3006
2850
|
|
|
3007
2851
|
```typescript
|
|
3008
|
-
const Card:
|
|
3009
|
-
|
|
2852
|
+
const Card: ForwardRefExoticComponent<
|
|
2853
|
+
{
|
|
2854
|
+
children?: ReactNode
|
|
2855
|
+
variant?: 'elevated' | 'outlined' | 'filled' | undefined
|
|
2856
|
+
interactive?: boolean | undefined
|
|
2857
|
+
padding?: (Size | 'none') | undefined
|
|
2858
|
+
id?: string | undefined
|
|
2859
|
+
title?: string | undefined
|
|
2860
|
+
tabIndex?: number | undefined
|
|
2861
|
+
role?: ElementRole | undefined
|
|
2862
|
+
'aria-label'?: string | undefined
|
|
2863
|
+
'aria-labelledby'?: string | undefined
|
|
2864
|
+
'aria-describedby'?: string | undefined
|
|
2865
|
+
'aria-hidden'?: boolean | undefined
|
|
2866
|
+
'aria-disabled'?: boolean | undefined
|
|
2867
|
+
'aria-expanded'?: boolean | undefined
|
|
2868
|
+
'aria-selected'?: boolean | undefined
|
|
2869
|
+
'aria-checked'?: boolean | 'mixed' | undefined
|
|
2870
|
+
'aria-pressed'?: boolean | 'mixed' | undefined
|
|
2871
|
+
'aria-invalid'?: boolean | undefined
|
|
2872
|
+
'aria-required'?: boolean | undefined
|
|
2873
|
+
'aria-readonly'?: boolean | undefined
|
|
2874
|
+
'aria-busy'?: boolean | undefined
|
|
2875
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
2876
|
+
onClick?: MouseEventHandler | undefined
|
|
2877
|
+
onDoubleClick?: MouseEventHandler | undefined
|
|
2878
|
+
onMouseEnter?: MouseEventHandler | undefined
|
|
2879
|
+
onMouseLeave?: MouseEventHandler | undefined
|
|
2880
|
+
onFocus?: FocusEventHandler | undefined
|
|
2881
|
+
onBlur?: FocusEventHandler | undefined
|
|
2882
|
+
onKeyDown?: KeyboardEventHandler | undefined
|
|
2883
|
+
onKeyUp?: KeyboardEventHandler | undefined
|
|
2884
|
+
onKeyPress?: KeyboardEventHandler | undefined
|
|
2885
|
+
className?: string | undefined
|
|
2886
|
+
style?: CSSProperties | undefined
|
|
2887
|
+
testId?: string | undefined
|
|
2888
|
+
automationId?: string | undefined
|
|
2889
|
+
disabled?: boolean | undefined
|
|
2890
|
+
lang?: string | undefined
|
|
2891
|
+
} & { 'data-mol-id'?: string } & RefAttributes<HTMLDivElement>
|
|
3010
2892
|
>
|
|
3011
2893
|
```
|
|
3012
2894
|
|
|
@@ -3015,8 +2897,46 @@ const Card: React.ForwardRefExoticComponent<
|
|
|
3015
2897
|
Card header component.
|
|
3016
2898
|
|
|
3017
2899
|
```typescript
|
|
3018
|
-
const CardHeader:
|
|
3019
|
-
|
|
2900
|
+
const CardHeader: ForwardRefExoticComponent<
|
|
2901
|
+
{
|
|
2902
|
+
[x: `data-${string}`]: string | number | boolean | undefined
|
|
2903
|
+
title?: string | undefined
|
|
2904
|
+
style?: CSSProperties | undefined
|
|
2905
|
+
children?: ReactNode
|
|
2906
|
+
id?: string | undefined
|
|
2907
|
+
lang?: string | undefined
|
|
2908
|
+
className?: string | undefined
|
|
2909
|
+
role?: ElementRole | undefined
|
|
2910
|
+
'aria-label'?: string | undefined
|
|
2911
|
+
'aria-labelledby'?: string | undefined
|
|
2912
|
+
'aria-describedby'?: string | undefined
|
|
2913
|
+
'aria-hidden'?: AriaBoolean | undefined
|
|
2914
|
+
'aria-disabled'?: AriaBoolean | undefined
|
|
2915
|
+
'aria-expanded'?: AriaBoolean | undefined
|
|
2916
|
+
'aria-selected'?: AriaBoolean | undefined
|
|
2917
|
+
'aria-checked'?: (AriaBoolean | 'mixed') | undefined
|
|
2918
|
+
'aria-pressed'?: (AriaBoolean | 'mixed') | undefined
|
|
2919
|
+
'aria-busy'?: AriaBoolean | undefined
|
|
2920
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
2921
|
+
'aria-valuenow'?: number | undefined
|
|
2922
|
+
'aria-valuemin'?: number | undefined
|
|
2923
|
+
'aria-valuemax'?: number | undefined
|
|
2924
|
+
'aria-valuetext'?: string | undefined
|
|
2925
|
+
'aria-current'?: (AriaBoolean | 'page' | 'step' | 'location' | 'date' | 'time') | undefined
|
|
2926
|
+
'aria-controls'?: string | undefined
|
|
2927
|
+
'aria-haspopup'?: (AriaBoolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog') | undefined
|
|
2928
|
+
'aria-modal'?: AriaBoolean | undefined
|
|
2929
|
+
'aria-invalid'?: AriaBoolean | undefined
|
|
2930
|
+
'aria-required'?: AriaBoolean | undefined
|
|
2931
|
+
'aria-readonly'?: AriaBoolean | undefined
|
|
2932
|
+
'aria-orientation'?: 'horizontal' | 'vertical' | undefined
|
|
2933
|
+
'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined
|
|
2934
|
+
'aria-level'?: number | undefined
|
|
2935
|
+
'aria-rowcount'?: number | undefined
|
|
2936
|
+
'aria-colcount'?: number | undefined
|
|
2937
|
+
'aria-rowindex'?: number | undefined
|
|
2938
|
+
'aria-colindex'?: number | undefined
|
|
2939
|
+
} & RefAttributes<HTMLDivElement>
|
|
3020
2940
|
>
|
|
3021
2941
|
```
|
|
3022
2942
|
|
|
@@ -3025,8 +2945,46 @@ const CardHeader: React.ForwardRefExoticComponent<
|
|
|
3025
2945
|
Card title component.
|
|
3026
2946
|
|
|
3027
2947
|
```typescript
|
|
3028
|
-
const CardTitle:
|
|
3029
|
-
|
|
2948
|
+
const CardTitle: ForwardRefExoticComponent<
|
|
2949
|
+
{
|
|
2950
|
+
[x: `data-${string}`]: string | number | boolean | undefined
|
|
2951
|
+
title?: string | undefined
|
|
2952
|
+
style?: CSSProperties | undefined
|
|
2953
|
+
children?: ReactNode
|
|
2954
|
+
id?: string | undefined
|
|
2955
|
+
lang?: string | undefined
|
|
2956
|
+
className?: string | undefined
|
|
2957
|
+
role?: ElementRole | undefined
|
|
2958
|
+
'aria-label'?: string | undefined
|
|
2959
|
+
'aria-labelledby'?: string | undefined
|
|
2960
|
+
'aria-describedby'?: string | undefined
|
|
2961
|
+
'aria-hidden'?: AriaBoolean | undefined
|
|
2962
|
+
'aria-disabled'?: AriaBoolean | undefined
|
|
2963
|
+
'aria-expanded'?: AriaBoolean | undefined
|
|
2964
|
+
'aria-selected'?: AriaBoolean | undefined
|
|
2965
|
+
'aria-checked'?: (AriaBoolean | 'mixed') | undefined
|
|
2966
|
+
'aria-pressed'?: (AriaBoolean | 'mixed') | undefined
|
|
2967
|
+
'aria-busy'?: AriaBoolean | undefined
|
|
2968
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
2969
|
+
'aria-valuenow'?: number | undefined
|
|
2970
|
+
'aria-valuemin'?: number | undefined
|
|
2971
|
+
'aria-valuemax'?: number | undefined
|
|
2972
|
+
'aria-valuetext'?: string | undefined
|
|
2973
|
+
'aria-current'?: (AriaBoolean | 'page' | 'step' | 'location' | 'date' | 'time') | undefined
|
|
2974
|
+
'aria-controls'?: string | undefined
|
|
2975
|
+
'aria-haspopup'?: (AriaBoolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog') | undefined
|
|
2976
|
+
'aria-modal'?: AriaBoolean | undefined
|
|
2977
|
+
'aria-invalid'?: AriaBoolean | undefined
|
|
2978
|
+
'aria-required'?: AriaBoolean | undefined
|
|
2979
|
+
'aria-readonly'?: AriaBoolean | undefined
|
|
2980
|
+
'aria-orientation'?: 'horizontal' | 'vertical' | undefined
|
|
2981
|
+
'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined
|
|
2982
|
+
'aria-level'?: number | undefined
|
|
2983
|
+
'aria-rowcount'?: number | undefined
|
|
2984
|
+
'aria-colcount'?: number | undefined
|
|
2985
|
+
'aria-rowindex'?: number | undefined
|
|
2986
|
+
'aria-colindex'?: number | undefined
|
|
2987
|
+
} & RefAttributes<HTMLHeadingElement>
|
|
3030
2988
|
>
|
|
3031
2989
|
```
|
|
3032
2990
|
|
|
@@ -3035,8 +2993,46 @@ const CardTitle: React.ForwardRefExoticComponent<
|
|
|
3035
2993
|
Card description component.
|
|
3036
2994
|
|
|
3037
2995
|
```typescript
|
|
3038
|
-
const CardDescription:
|
|
3039
|
-
|
|
2996
|
+
const CardDescription: ForwardRefExoticComponent<
|
|
2997
|
+
{
|
|
2998
|
+
[x: `data-${string}`]: string | number | boolean | undefined
|
|
2999
|
+
title?: string | undefined
|
|
3000
|
+
style?: CSSProperties | undefined
|
|
3001
|
+
children?: ReactNode
|
|
3002
|
+
id?: string | undefined
|
|
3003
|
+
lang?: string | undefined
|
|
3004
|
+
className?: string | undefined
|
|
3005
|
+
role?: ElementRole | undefined
|
|
3006
|
+
'aria-label'?: string | undefined
|
|
3007
|
+
'aria-labelledby'?: string | undefined
|
|
3008
|
+
'aria-describedby'?: string | undefined
|
|
3009
|
+
'aria-hidden'?: AriaBoolean | undefined
|
|
3010
|
+
'aria-disabled'?: AriaBoolean | undefined
|
|
3011
|
+
'aria-expanded'?: AriaBoolean | undefined
|
|
3012
|
+
'aria-selected'?: AriaBoolean | undefined
|
|
3013
|
+
'aria-checked'?: (AriaBoolean | 'mixed') | undefined
|
|
3014
|
+
'aria-pressed'?: (AriaBoolean | 'mixed') | undefined
|
|
3015
|
+
'aria-busy'?: AriaBoolean | undefined
|
|
3016
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
3017
|
+
'aria-valuenow'?: number | undefined
|
|
3018
|
+
'aria-valuemin'?: number | undefined
|
|
3019
|
+
'aria-valuemax'?: number | undefined
|
|
3020
|
+
'aria-valuetext'?: string | undefined
|
|
3021
|
+
'aria-current'?: (AriaBoolean | 'page' | 'step' | 'location' | 'date' | 'time') | undefined
|
|
3022
|
+
'aria-controls'?: string | undefined
|
|
3023
|
+
'aria-haspopup'?: (AriaBoolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog') | undefined
|
|
3024
|
+
'aria-modal'?: AriaBoolean | undefined
|
|
3025
|
+
'aria-invalid'?: AriaBoolean | undefined
|
|
3026
|
+
'aria-required'?: AriaBoolean | undefined
|
|
3027
|
+
'aria-readonly'?: AriaBoolean | undefined
|
|
3028
|
+
'aria-orientation'?: 'horizontal' | 'vertical' | undefined
|
|
3029
|
+
'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined
|
|
3030
|
+
'aria-level'?: number | undefined
|
|
3031
|
+
'aria-rowcount'?: number | undefined
|
|
3032
|
+
'aria-colcount'?: number | undefined
|
|
3033
|
+
'aria-rowindex'?: number | undefined
|
|
3034
|
+
'aria-colindex'?: number | undefined
|
|
3035
|
+
} & RefAttributes<HTMLParagraphElement>
|
|
3040
3036
|
>
|
|
3041
3037
|
```
|
|
3042
3038
|
|
|
@@ -3045,8 +3041,46 @@ const CardDescription: React.ForwardRefExoticComponent<
|
|
|
3045
3041
|
Card content component.
|
|
3046
3042
|
|
|
3047
3043
|
```typescript
|
|
3048
|
-
const CardContent:
|
|
3049
|
-
|
|
3044
|
+
const CardContent: ForwardRefExoticComponent<
|
|
3045
|
+
{
|
|
3046
|
+
[x: `data-${string}`]: string | number | boolean | undefined
|
|
3047
|
+
title?: string | undefined
|
|
3048
|
+
style?: CSSProperties | undefined
|
|
3049
|
+
children?: ReactNode
|
|
3050
|
+
id?: string | undefined
|
|
3051
|
+
lang?: string | undefined
|
|
3052
|
+
className?: string | undefined
|
|
3053
|
+
role?: ElementRole | undefined
|
|
3054
|
+
'aria-label'?: string | undefined
|
|
3055
|
+
'aria-labelledby'?: string | undefined
|
|
3056
|
+
'aria-describedby'?: string | undefined
|
|
3057
|
+
'aria-hidden'?: AriaBoolean | undefined
|
|
3058
|
+
'aria-disabled'?: AriaBoolean | undefined
|
|
3059
|
+
'aria-expanded'?: AriaBoolean | undefined
|
|
3060
|
+
'aria-selected'?: AriaBoolean | undefined
|
|
3061
|
+
'aria-checked'?: (AriaBoolean | 'mixed') | undefined
|
|
3062
|
+
'aria-pressed'?: (AriaBoolean | 'mixed') | undefined
|
|
3063
|
+
'aria-busy'?: AriaBoolean | undefined
|
|
3064
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
3065
|
+
'aria-valuenow'?: number | undefined
|
|
3066
|
+
'aria-valuemin'?: number | undefined
|
|
3067
|
+
'aria-valuemax'?: number | undefined
|
|
3068
|
+
'aria-valuetext'?: string | undefined
|
|
3069
|
+
'aria-current'?: (AriaBoolean | 'page' | 'step' | 'location' | 'date' | 'time') | undefined
|
|
3070
|
+
'aria-controls'?: string | undefined
|
|
3071
|
+
'aria-haspopup'?: (AriaBoolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog') | undefined
|
|
3072
|
+
'aria-modal'?: AriaBoolean | undefined
|
|
3073
|
+
'aria-invalid'?: AriaBoolean | undefined
|
|
3074
|
+
'aria-required'?: AriaBoolean | undefined
|
|
3075
|
+
'aria-readonly'?: AriaBoolean | undefined
|
|
3076
|
+
'aria-orientation'?: 'horizontal' | 'vertical' | undefined
|
|
3077
|
+
'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined
|
|
3078
|
+
'aria-level'?: number | undefined
|
|
3079
|
+
'aria-rowcount'?: number | undefined
|
|
3080
|
+
'aria-colcount'?: number | undefined
|
|
3081
|
+
'aria-rowindex'?: number | undefined
|
|
3082
|
+
'aria-colindex'?: number | undefined
|
|
3083
|
+
} & RefAttributes<HTMLDivElement>
|
|
3050
3084
|
>
|
|
3051
3085
|
```
|
|
3052
3086
|
|
|
@@ -3055,8 +3089,46 @@ const CardContent: React.ForwardRefExoticComponent<
|
|
|
3055
3089
|
Card footer component.
|
|
3056
3090
|
|
|
3057
3091
|
```typescript
|
|
3058
|
-
const CardFooter:
|
|
3059
|
-
|
|
3092
|
+
const CardFooter: ForwardRefExoticComponent<
|
|
3093
|
+
{
|
|
3094
|
+
[x: `data-${string}`]: string | number | boolean | undefined
|
|
3095
|
+
title?: string | undefined
|
|
3096
|
+
style?: CSSProperties | undefined
|
|
3097
|
+
children?: ReactNode
|
|
3098
|
+
id?: string | undefined
|
|
3099
|
+
lang?: string | undefined
|
|
3100
|
+
className?: string | undefined
|
|
3101
|
+
role?: ElementRole | undefined
|
|
3102
|
+
'aria-label'?: string | undefined
|
|
3103
|
+
'aria-labelledby'?: string | undefined
|
|
3104
|
+
'aria-describedby'?: string | undefined
|
|
3105
|
+
'aria-hidden'?: AriaBoolean | undefined
|
|
3106
|
+
'aria-disabled'?: AriaBoolean | undefined
|
|
3107
|
+
'aria-expanded'?: AriaBoolean | undefined
|
|
3108
|
+
'aria-selected'?: AriaBoolean | undefined
|
|
3109
|
+
'aria-checked'?: (AriaBoolean | 'mixed') | undefined
|
|
3110
|
+
'aria-pressed'?: (AriaBoolean | 'mixed') | undefined
|
|
3111
|
+
'aria-busy'?: AriaBoolean | undefined
|
|
3112
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
3113
|
+
'aria-valuenow'?: number | undefined
|
|
3114
|
+
'aria-valuemin'?: number | undefined
|
|
3115
|
+
'aria-valuemax'?: number | undefined
|
|
3116
|
+
'aria-valuetext'?: string | undefined
|
|
3117
|
+
'aria-current'?: (AriaBoolean | 'page' | 'step' | 'location' | 'date' | 'time') | undefined
|
|
3118
|
+
'aria-controls'?: string | undefined
|
|
3119
|
+
'aria-haspopup'?: (AriaBoolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog') | undefined
|
|
3120
|
+
'aria-modal'?: AriaBoolean | undefined
|
|
3121
|
+
'aria-invalid'?: AriaBoolean | undefined
|
|
3122
|
+
'aria-required'?: AriaBoolean | undefined
|
|
3123
|
+
'aria-readonly'?: AriaBoolean | undefined
|
|
3124
|
+
'aria-orientation'?: 'horizontal' | 'vertical' | undefined
|
|
3125
|
+
'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined
|
|
3126
|
+
'aria-level'?: number | undefined
|
|
3127
|
+
'aria-rowcount'?: number | undefined
|
|
3128
|
+
'aria-colcount'?: number | undefined
|
|
3129
|
+
'aria-rowindex'?: number | undefined
|
|
3130
|
+
'aria-colindex'?: number | undefined
|
|
3131
|
+
} & RefAttributes<HTMLDivElement>
|
|
3060
3132
|
>
|
|
3061
3133
|
```
|
|
3062
3134
|
|
|
@@ -3104,8 +3176,18 @@ Displays a centered placeholder with an optional icon, title, description,
|
|
|
3104
3176
|
and a primary action when a list or section has no content.
|
|
3105
3177
|
|
|
3106
3178
|
```typescript
|
|
3107
|
-
const EmptyState:
|
|
3108
|
-
|
|
3179
|
+
const EmptyState: ForwardRefExoticComponent<
|
|
3180
|
+
{
|
|
3181
|
+
icon?: ReactNode
|
|
3182
|
+
title: string
|
|
3183
|
+
description?: string | undefined
|
|
3184
|
+
action?: ReactNode
|
|
3185
|
+
className?: string | undefined
|
|
3186
|
+
style?: CSSProperties | undefined
|
|
3187
|
+
testId?: string | undefined
|
|
3188
|
+
automationId?: string | undefined
|
|
3189
|
+
disabled?: boolean | undefined
|
|
3190
|
+
} & RefAttributes<HTMLDivElement>
|
|
3109
3191
|
>
|
|
3110
3192
|
```
|
|
3111
3193
|
|
|
@@ -3149,7 +3231,47 @@ Form field wrapper component.
|
|
|
3149
3231
|
|
|
3150
3232
|
```typescript
|
|
3151
3233
|
const FormField: React.ForwardRefExoticComponent<
|
|
3152
|
-
|
|
3234
|
+
{
|
|
3235
|
+
children?: React.ReactNode
|
|
3236
|
+
label?: string | undefined
|
|
3237
|
+
name?: string | undefined
|
|
3238
|
+
error?: string | undefined
|
|
3239
|
+
hint?: string | undefined
|
|
3240
|
+
required?: boolean | undefined
|
|
3241
|
+
id?: string | undefined
|
|
3242
|
+
title?: string | undefined
|
|
3243
|
+
tabIndex?: number | undefined
|
|
3244
|
+
role?: ElementRole | undefined
|
|
3245
|
+
'aria-label'?: string | undefined
|
|
3246
|
+
'aria-labelledby'?: string | undefined
|
|
3247
|
+
'aria-describedby'?: string | undefined
|
|
3248
|
+
'aria-hidden'?: boolean | undefined
|
|
3249
|
+
'aria-disabled'?: boolean | undefined
|
|
3250
|
+
'aria-expanded'?: boolean | undefined
|
|
3251
|
+
'aria-selected'?: boolean | undefined
|
|
3252
|
+
'aria-checked'?: boolean | 'mixed' | undefined
|
|
3253
|
+
'aria-pressed'?: boolean | 'mixed' | undefined
|
|
3254
|
+
'aria-invalid'?: boolean | undefined
|
|
3255
|
+
'aria-required'?: boolean | undefined
|
|
3256
|
+
'aria-readonly'?: boolean | undefined
|
|
3257
|
+
'aria-busy'?: boolean | undefined
|
|
3258
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
3259
|
+
onClick?: MouseEventHandler | undefined
|
|
3260
|
+
onDoubleClick?: MouseEventHandler | undefined
|
|
3261
|
+
onMouseEnter?: MouseEventHandler | undefined
|
|
3262
|
+
onMouseLeave?: MouseEventHandler | undefined
|
|
3263
|
+
onFocus?: FocusEventHandler | undefined
|
|
3264
|
+
onBlur?: FocusEventHandler | undefined
|
|
3265
|
+
onKeyDown?: KeyboardEventHandler | undefined
|
|
3266
|
+
onKeyUp?: KeyboardEventHandler | undefined
|
|
3267
|
+
onKeyPress?: KeyboardEventHandler | undefined
|
|
3268
|
+
className?: string | undefined
|
|
3269
|
+
style?: CSSProperties | undefined
|
|
3270
|
+
testId?: string | undefined
|
|
3271
|
+
automationId?: string | undefined
|
|
3272
|
+
disabled?: boolean | undefined
|
|
3273
|
+
lang?: string | undefined
|
|
3274
|
+
} & React.RefAttributes<HTMLDivElement>
|
|
3153
3275
|
>
|
|
3154
3276
|
```
|
|
3155
3277
|
|
|
@@ -3176,7 +3298,68 @@ const Label: React.ForwardRefExoticComponent<
|
|
|
3176
3298
|
Input component.
|
|
3177
3299
|
|
|
3178
3300
|
```typescript
|
|
3179
|
-
const Input:
|
|
3301
|
+
const Input: ForwardRefExoticComponent<
|
|
3302
|
+
{
|
|
3303
|
+
onChange?: EventHandler<KitFieldChangeEvent> | undefined
|
|
3304
|
+
type?: InputType | undefined
|
|
3305
|
+
size?: Size | undefined
|
|
3306
|
+
align?: 'left' | 'center' | undefined
|
|
3307
|
+
label?: string | undefined
|
|
3308
|
+
error?: string | undefined
|
|
3309
|
+
hint?: string | undefined
|
|
3310
|
+
leftElement?: ReactNode
|
|
3311
|
+
rightElement?: ReactNode
|
|
3312
|
+
clearable?: boolean | undefined
|
|
3313
|
+
onClear?: (() => void) | undefined
|
|
3314
|
+
clearLabel?: string | undefined
|
|
3315
|
+
name?: string | undefined
|
|
3316
|
+
value?: (string | number | readonly string[]) | undefined
|
|
3317
|
+
defaultValue?: (string | number | readonly string[]) | undefined
|
|
3318
|
+
placeholder?: string | undefined
|
|
3319
|
+
required?: boolean | undefined
|
|
3320
|
+
readOnly?: boolean | undefined
|
|
3321
|
+
autoFocus?: boolean | undefined
|
|
3322
|
+
autoComplete?: string | undefined
|
|
3323
|
+
maxLength?: number | undefined
|
|
3324
|
+
minLength?: number | undefined
|
|
3325
|
+
pattern?: string | undefined
|
|
3326
|
+
onInput?: FormEventHandler | undefined
|
|
3327
|
+
id?: string | undefined
|
|
3328
|
+
title?: string | undefined
|
|
3329
|
+
tabIndex?: number | undefined
|
|
3330
|
+
role?: ElementRole | undefined
|
|
3331
|
+
'aria-label'?: string | undefined
|
|
3332
|
+
'aria-labelledby'?: string | undefined
|
|
3333
|
+
'aria-describedby'?: string | undefined
|
|
3334
|
+
'aria-hidden'?: boolean | undefined
|
|
3335
|
+
'aria-disabled'?: boolean | undefined
|
|
3336
|
+
'aria-expanded'?: boolean | undefined
|
|
3337
|
+
'aria-selected'?: boolean | undefined
|
|
3338
|
+
'aria-checked'?: boolean | 'mixed' | undefined
|
|
3339
|
+
'aria-pressed'?: boolean | 'mixed' | undefined
|
|
3340
|
+
'aria-invalid'?: boolean | undefined
|
|
3341
|
+
'aria-required'?: boolean | undefined
|
|
3342
|
+
'aria-readonly'?: boolean | undefined
|
|
3343
|
+
'aria-busy'?: boolean | undefined
|
|
3344
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
3345
|
+
onClick?: MouseEventHandler | undefined
|
|
3346
|
+
onDoubleClick?: MouseEventHandler | undefined
|
|
3347
|
+
onMouseEnter?: MouseEventHandler | undefined
|
|
3348
|
+
onMouseLeave?: MouseEventHandler | undefined
|
|
3349
|
+
onFocus?: FocusEventHandler | undefined
|
|
3350
|
+
onBlur?: FocusEventHandler | undefined
|
|
3351
|
+
onKeyDown?: KeyboardEventHandler | undefined
|
|
3352
|
+
onKeyUp?: KeyboardEventHandler | undefined
|
|
3353
|
+
onKeyPress?: KeyboardEventHandler | undefined
|
|
3354
|
+
className?: string | undefined
|
|
3355
|
+
style?: CSSProperties | undefined
|
|
3356
|
+
testId?: string | undefined
|
|
3357
|
+
automationId?: string | undefined
|
|
3358
|
+
disabled?: boolean | undefined
|
|
3359
|
+
lang?: string | undefined
|
|
3360
|
+
onValueChange?: ((value: string) => void) | undefined
|
|
3361
|
+
} & RefAttributes<HTMLInputElement>
|
|
3362
|
+
>
|
|
3180
3363
|
```
|
|
3181
3364
|
|
|
3182
3365
|
#### `Container`
|
|
@@ -3184,8 +3367,46 @@ const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HT
|
|
|
3184
3367
|
Container component.
|
|
3185
3368
|
|
|
3186
3369
|
```typescript
|
|
3187
|
-
const Container:
|
|
3188
|
-
|
|
3370
|
+
const Container: ForwardRefExoticComponent<
|
|
3371
|
+
{
|
|
3372
|
+
children?: ReactNode
|
|
3373
|
+
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full' | string | undefined
|
|
3374
|
+
centered?: boolean | undefined
|
|
3375
|
+
paddingX?: (Size | string) | undefined
|
|
3376
|
+
id?: string | undefined
|
|
3377
|
+
title?: string | undefined
|
|
3378
|
+
tabIndex?: number | undefined
|
|
3379
|
+
role?: ElementRole | undefined
|
|
3380
|
+
'aria-label'?: string | undefined
|
|
3381
|
+
'aria-labelledby'?: string | undefined
|
|
3382
|
+
'aria-describedby'?: string | undefined
|
|
3383
|
+
'aria-hidden'?: boolean | undefined
|
|
3384
|
+
'aria-disabled'?: boolean | undefined
|
|
3385
|
+
'aria-expanded'?: boolean | undefined
|
|
3386
|
+
'aria-selected'?: boolean | undefined
|
|
3387
|
+
'aria-checked'?: boolean | 'mixed' | undefined
|
|
3388
|
+
'aria-pressed'?: boolean | 'mixed' | undefined
|
|
3389
|
+
'aria-invalid'?: boolean | undefined
|
|
3390
|
+
'aria-required'?: boolean | undefined
|
|
3391
|
+
'aria-readonly'?: boolean | undefined
|
|
3392
|
+
'aria-busy'?: boolean | undefined
|
|
3393
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
3394
|
+
onClick?: MouseEventHandler | undefined
|
|
3395
|
+
onDoubleClick?: MouseEventHandler | undefined
|
|
3396
|
+
onMouseEnter?: MouseEventHandler | undefined
|
|
3397
|
+
onMouseLeave?: MouseEventHandler | undefined
|
|
3398
|
+
onFocus?: FocusEventHandler | undefined
|
|
3399
|
+
onBlur?: FocusEventHandler | undefined
|
|
3400
|
+
onKeyDown?: KeyboardEventHandler | undefined
|
|
3401
|
+
onKeyUp?: KeyboardEventHandler | undefined
|
|
3402
|
+
onKeyPress?: KeyboardEventHandler | undefined
|
|
3403
|
+
className?: string | undefined
|
|
3404
|
+
style?: CSSProperties | undefined
|
|
3405
|
+
testId?: string | undefined
|
|
3406
|
+
automationId?: string | undefined
|
|
3407
|
+
disabled?: boolean | undefined
|
|
3408
|
+
lang?: string | undefined
|
|
3409
|
+
} & RefAttributes<HTMLDivElement>
|
|
3189
3410
|
>
|
|
3190
3411
|
```
|
|
3191
3412
|
|
|
@@ -3194,7 +3415,49 @@ const Container: React.ForwardRefExoticComponent<
|
|
|
3194
3415
|
Flex container component.
|
|
3195
3416
|
|
|
3196
3417
|
```typescript
|
|
3197
|
-
const Flex:
|
|
3418
|
+
const Flex: ForwardRefExoticComponent<
|
|
3419
|
+
{
|
|
3420
|
+
children?: ReactNode
|
|
3421
|
+
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse' | undefined
|
|
3422
|
+
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | undefined
|
|
3423
|
+
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch' | undefined
|
|
3424
|
+
wrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | undefined
|
|
3425
|
+
gap?: (Size | string | number) | undefined
|
|
3426
|
+
id?: string | undefined
|
|
3427
|
+
title?: string | undefined
|
|
3428
|
+
tabIndex?: number | undefined
|
|
3429
|
+
role?: ElementRole | undefined
|
|
3430
|
+
'aria-label'?: string | undefined
|
|
3431
|
+
'aria-labelledby'?: string | undefined
|
|
3432
|
+
'aria-describedby'?: string | undefined
|
|
3433
|
+
'aria-hidden'?: boolean | undefined
|
|
3434
|
+
'aria-disabled'?: boolean | undefined
|
|
3435
|
+
'aria-expanded'?: boolean | undefined
|
|
3436
|
+
'aria-selected'?: boolean | undefined
|
|
3437
|
+
'aria-checked'?: boolean | 'mixed' | undefined
|
|
3438
|
+
'aria-pressed'?: boolean | 'mixed' | undefined
|
|
3439
|
+
'aria-invalid'?: boolean | undefined
|
|
3440
|
+
'aria-required'?: boolean | undefined
|
|
3441
|
+
'aria-readonly'?: boolean | undefined
|
|
3442
|
+
'aria-busy'?: boolean | undefined
|
|
3443
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
3444
|
+
onClick?: MouseEventHandler | undefined
|
|
3445
|
+
onDoubleClick?: MouseEventHandler | undefined
|
|
3446
|
+
onMouseEnter?: MouseEventHandler | undefined
|
|
3447
|
+
onMouseLeave?: MouseEventHandler | undefined
|
|
3448
|
+
onFocus?: FocusEventHandler | undefined
|
|
3449
|
+
onBlur?: FocusEventHandler | undefined
|
|
3450
|
+
onKeyDown?: KeyboardEventHandler | undefined
|
|
3451
|
+
onKeyUp?: KeyboardEventHandler | undefined
|
|
3452
|
+
onKeyPress?: KeyboardEventHandler | undefined
|
|
3453
|
+
className?: string | undefined
|
|
3454
|
+
style?: CSSProperties | undefined
|
|
3455
|
+
testId?: string | undefined
|
|
3456
|
+
automationId?: string | undefined
|
|
3457
|
+
disabled?: boolean | undefined
|
|
3458
|
+
lang?: string | undefined
|
|
3459
|
+
} & RefAttributes<HTMLDivElement>
|
|
3460
|
+
>
|
|
3198
3461
|
```
|
|
3199
3462
|
|
|
3200
3463
|
#### `Grid`
|
|
@@ -3202,7 +3465,49 @@ const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTML
|
|
|
3202
3465
|
Grid container component.
|
|
3203
3466
|
|
|
3204
3467
|
```typescript
|
|
3205
|
-
const Grid:
|
|
3468
|
+
const Grid: ForwardRefExoticComponent<
|
|
3469
|
+
{
|
|
3470
|
+
children?: ReactNode
|
|
3471
|
+
columns?: number | string | undefined
|
|
3472
|
+
rows?: number | string | undefined
|
|
3473
|
+
gap?: (Size | string | number) | undefined
|
|
3474
|
+
columnGap?: (Size | string | number) | undefined
|
|
3475
|
+
rowGap?: (Size | string | number) | undefined
|
|
3476
|
+
id?: string | undefined
|
|
3477
|
+
title?: string | undefined
|
|
3478
|
+
tabIndex?: number | undefined
|
|
3479
|
+
role?: ElementRole | undefined
|
|
3480
|
+
'aria-label'?: string | undefined
|
|
3481
|
+
'aria-labelledby'?: string | undefined
|
|
3482
|
+
'aria-describedby'?: string | undefined
|
|
3483
|
+
'aria-hidden'?: boolean | undefined
|
|
3484
|
+
'aria-disabled'?: boolean | undefined
|
|
3485
|
+
'aria-expanded'?: boolean | undefined
|
|
3486
|
+
'aria-selected'?: boolean | undefined
|
|
3487
|
+
'aria-checked'?: boolean | 'mixed' | undefined
|
|
3488
|
+
'aria-pressed'?: boolean | 'mixed' | undefined
|
|
3489
|
+
'aria-invalid'?: boolean | undefined
|
|
3490
|
+
'aria-required'?: boolean | undefined
|
|
3491
|
+
'aria-readonly'?: boolean | undefined
|
|
3492
|
+
'aria-busy'?: boolean | undefined
|
|
3493
|
+
'aria-live'?: 'off' | 'polite' | 'assertive' | undefined
|
|
3494
|
+
onClick?: MouseEventHandler | undefined
|
|
3495
|
+
onDoubleClick?: MouseEventHandler | undefined
|
|
3496
|
+
onMouseEnter?: MouseEventHandler | undefined
|
|
3497
|
+
onMouseLeave?: MouseEventHandler | undefined
|
|
3498
|
+
onFocus?: FocusEventHandler | undefined
|
|
3499
|
+
onBlur?: FocusEventHandler | undefined
|
|
3500
|
+
onKeyDown?: KeyboardEventHandler | undefined
|
|
3501
|
+
onKeyUp?: KeyboardEventHandler | undefined
|
|
3502
|
+
onKeyPress?: KeyboardEventHandler | undefined
|
|
3503
|
+
className?: string | undefined
|
|
3504
|
+
style?: CSSProperties | undefined
|
|
3505
|
+
testId?: string | undefined
|
|
3506
|
+
automationId?: string | undefined
|
|
3507
|
+
disabled?: boolean | undefined
|
|
3508
|
+
lang?: string | undefined
|
|
3509
|
+
} & RefAttributes<HTMLDivElement>
|
|
3510
|
+
>
|
|
3206
3511
|
```
|
|
3207
3512
|
|
|
3208
3513
|
#### `Spacer`
|
|
@@ -3210,7 +3515,7 @@ const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTML
|
|
|
3210
3515
|
Spacer component.
|
|
3211
3516
|
|
|
3212
3517
|
```typescript
|
|
3213
|
-
const Spacer:
|
|
3518
|
+
const Spacer: ForwardRefExoticComponent<SpacerProps & RefAttributes<HTMLDivElement>>
|
|
3214
3519
|
```
|
|
3215
3520
|
|
|
3216
3521
|
#### `Modal`
|
|
@@ -3251,7 +3556,17 @@ action buttons for a consistent page heading area.
|
|
|
3251
3556
|
|
|
3252
3557
|
```typescript
|
|
3253
3558
|
const PageHeader: React.ForwardRefExoticComponent<
|
|
3254
|
-
|
|
3559
|
+
{
|
|
3560
|
+
title: string
|
|
3561
|
+
description?: string | undefined
|
|
3562
|
+
actions?: React.ReactNode
|
|
3563
|
+
breadcrumbs?: Array<{ label: string; href?: string }> | undefined
|
|
3564
|
+
className?: string | undefined
|
|
3565
|
+
style?: CSSProperties | undefined
|
|
3566
|
+
testId?: string | undefined
|
|
3567
|
+
automationId?: string | undefined
|
|
3568
|
+
disabled?: boolean | undefined
|
|
3569
|
+
} & React.RefAttributes<HTMLDivElement>
|
|
3255
3570
|
>
|
|
3256
3571
|
```
|
|
3257
3572
|
|
|
@@ -3263,8 +3578,19 @@ Provides the top-level layout for authenticated pages with an optional
|
|
|
3263
3578
|
collapsible sidebar, a top bar, and a scrollable main content area.
|
|
3264
3579
|
|
|
3265
3580
|
```typescript
|
|
3266
|
-
const PageShell:
|
|
3267
|
-
|
|
3581
|
+
const PageShell: ForwardRefExoticComponent<
|
|
3582
|
+
{
|
|
3583
|
+
sidebar?: ReactNode
|
|
3584
|
+
topbar?: ReactNode
|
|
3585
|
+
sidebarCollapsed?: boolean | undefined
|
|
3586
|
+
onSidebarToggle?: (() => void) | undefined
|
|
3587
|
+
children?: ReactNode
|
|
3588
|
+
className?: string | undefined
|
|
3589
|
+
style?: CSSProperties | undefined
|
|
3590
|
+
testId?: string | undefined
|
|
3591
|
+
automationId?: string | undefined
|
|
3592
|
+
disabled?: boolean | undefined
|
|
3593
|
+
} & RefAttributes<HTMLDivElement>
|
|
3268
3594
|
>
|
|
3269
3595
|
```
|
|
3270
3596
|
|