@molecule/app-ui-react 4.15.0 → 4.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -5
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
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-
|
|
6
|
+
Generated: 2026-12-01T11:02:34.312Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-ui-react
|
|
@@ -86,6 +86,19 @@ npm install -D @types/react @types/react-dom
|
|
|
86
86
|
|
|
87
87
|
### Interfaces
|
|
88
88
|
|
|
89
|
+
#### `KitFieldChangeEvent`
|
|
90
|
+
|
|
91
|
+
Both targets expose the field's string value during the callback.
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
interface KitFieldChangeEvent extends KitEvent {
|
|
95
|
+
/** The edited field, or its value snapshot on a device. */
|
|
96
|
+
readonly target: EventTarget & { value: string }
|
|
97
|
+
/** The field handling the change. */
|
|
98
|
+
readonly currentTarget: KitFieldChangeEvent['target']
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
89
102
|
#### `CSSProperties`
|
|
90
103
|
|
|
91
104
|
Framework-agnostic CSS properties.
|
|
@@ -109,7 +122,7 @@ both satisfy this type. A handler that needs a member only one of them has (`nat
|
|
|
109
122
|
|
|
110
123
|
```typescript
|
|
111
124
|
interface KitEvent {
|
|
112
|
-
/** The element the event started on
|
|
125
|
+
/** The element the event started on. */
|
|
113
126
|
readonly target: EventTarget | null
|
|
114
127
|
/** The element of the component the handler was passed to. */
|
|
115
128
|
readonly currentTarget: EventTarget | null
|
|
@@ -333,7 +346,7 @@ interface TextareaElementProps extends HTMLElementProps {
|
|
|
333
346
|
minLength?: number
|
|
334
347
|
wrap?: 'hard' | 'soft' | 'off'
|
|
335
348
|
/** Web change event. {@link TextareaProps.onValueChange} also works on native. */
|
|
336
|
-
onChange?:
|
|
349
|
+
onChange?: EventHandler<KitFieldChangeEvent>
|
|
337
350
|
onInput?: FormEventHandler
|
|
338
351
|
}
|
|
339
352
|
```
|
|
@@ -349,7 +362,7 @@ interface SelectElementProps extends HTMLElementProps {
|
|
|
349
362
|
autoFocus?: boolean
|
|
350
363
|
multiple?: boolean
|
|
351
364
|
/** Web change event. {@link SelectProps.onValueChange} also works on native. */
|
|
352
|
-
onChange?:
|
|
365
|
+
onChange?: EventHandler<KitFieldChangeEvent>
|
|
353
366
|
}
|
|
354
367
|
```
|
|
355
368
|
|
|
@@ -431,6 +444,9 @@ Ref element: the native `<input>`.
|
|
|
431
444
|
|
|
432
445
|
```typescript
|
|
433
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
|
+
|
|
434
450
|
/**
|
|
435
451
|
* Input type.
|
|
436
452
|
*/
|
|
@@ -3470,7 +3486,7 @@ Peer dependencies:
|
|
|
3470
3486
|
- `@molecule/app-i18n` ^1.3.0
|
|
3471
3487
|
- `@molecule/app-icons` ^1.0.1
|
|
3472
3488
|
- `@molecule/app-react` ^4.17.0 || ^5.0.0
|
|
3473
|
-
- `@molecule/app-ui` ^1.
|
|
3489
|
+
- `@molecule/app-ui` ^1.18.0
|
|
3474
3490
|
- `@molecule/app-ui-react-native` ^2.3.0 _(optional)_
|
|
3475
3491
|
- `react` ^18.0.0 || ^19.0.0
|
|
3476
3492
|
- `react-dom` ^18.0.0 || ^19.0.0
|
package/dist/types.d.ts
CHANGED
|
@@ -21,5 +21,5 @@ export interface TooltipProps extends OverlayRootProps, Omit<CoreTooltipProps, k
|
|
|
21
21
|
/** The trigger whose focus or hover reveals the tooltip. */
|
|
22
22
|
children: ReactNode;
|
|
23
23
|
}
|
|
24
|
-
export type { AccordionItem, AccordionProps, AlertProps, AvatarProps, BadgeProps, BaseProps, ButtonElementProps, ButtonProps, ButtonVariant, CardProps, ChangeEventHandler, CheckboxProps, Children, ColorVariant, ContainerProps, CSSProperties, EventHandler, FlexProps, FocusEventHandler, FormElementProps, FormEventHandler, FormFieldProps, FormProps, GridProps, HTMLElementProps, InputElementProps, InputProps, InputType, KeyboardEventHandler, KitEvent, KitFocusEvent, KitKeyboardEvent, KitModifierKeys, KitMouseEvent, ModalProps, ModalSize, MouseEventHandler, PaginationProps, RadioGroupProps, RadioOption, SelectElementProps, SelectOption, SelectProps, Size, SkeletonProps, SpacerProps, SpinnerProps, SwitchProps, TabItem, TableColumn, TableProps, TabsProps, TextareaElementProps, TextareaProps, TooltipPlacement, } from '@molecule/app-ui';
|
|
24
|
+
export type { AccordionItem, AccordionProps, AlertProps, AvatarProps, BadgeProps, BaseProps, ButtonElementProps, ButtonProps, ButtonVariant, CardProps, ChangeEventHandler, CheckboxProps, Children, ColorVariant, ContainerProps, CSSProperties, EventHandler, FlexProps, FocusEventHandler, FormElementProps, FormEventHandler, FormFieldProps, FormProps, GridProps, HTMLElementProps, InputElementProps, InputProps, InputType, KeyboardEventHandler, KitEvent, KitFieldChangeEvent, KitFocusEvent, KitKeyboardEvent, KitModifierKeys, KitMouseEvent, ModalProps, ModalSize, MouseEventHandler, PaginationProps, RadioGroupProps, RadioOption, SelectElementProps, SelectOption, SelectProps, Size, SkeletonProps, SpacerProps, SpinnerProps, SwitchProps, TabItem, TableColumn, TableProps, TabsProps, TextareaElementProps, TextareaProps, TooltipPlacement, } from '@molecule/app-ui';
|
|
25
25
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
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1",
|
|
4
4
|
"description": "React UI primitive bundle for molecule.dev — Button, Modal, Tooltip, Toast, Alert, Card, Badge, Avatar, Tabs, Accordion, Dropdown, Select, Checkbox, Switch, Input, Table, Spinner, Skeleton, Progress and more. Import these primitives; do not rebuild them.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@molecule/app-i18n": "^1.3.0",
|
|
86
86
|
"@molecule/app-icons": "^1.0.1",
|
|
87
87
|
"@molecule/app-react": "^4.17.0 || ^5.0.0",
|
|
88
|
-
"@molecule/app-ui": "^1.
|
|
88
|
+
"@molecule/app-ui": "^1.18.0",
|
|
89
89
|
"@molecule/app-ui-react-native": "^2.3.0",
|
|
90
90
|
"react": "^18.0.0 || ^19.0.0",
|
|
91
91
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
"@molecule/app-filesystem": "1.1.1",
|
|
95
95
|
"@molecule/app-i18n": "1.4.0",
|
|
96
96
|
"@molecule/app-icons": "1.0.4",
|
|
97
|
-
"@molecule/app-react": "5.0.
|
|
97
|
+
"@molecule/app-react": "5.0.1",
|
|
98
98
|
"@molecule/app-routing": "1.5.3",
|
|
99
|
-
"@molecule/app-ui-react-native": "2.4.
|
|
99
|
+
"@molecule/app-ui-react-native": "2.4.1",
|
|
100
100
|
"@testing-library/react": "16.3.3",
|
|
101
101
|
"@types/node": "26.6.5",
|
|
102
102
|
"@types/react": "19.3.0",
|