@molecule/app-ui-react-native 1.0.3 → 1.0.5
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 +145 -5
- package/package.json +3 -12
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-11-08T06:24:54.101Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-ui-react-native
|
|
@@ -73,14 +73,17 @@ interface BaseProps {
|
|
|
73
73
|
* Additional CSS class name(s).
|
|
74
74
|
*/
|
|
75
75
|
className?: string
|
|
76
|
+
|
|
76
77
|
/**
|
|
77
78
|
* Inline styles.
|
|
78
79
|
*/
|
|
79
80
|
style?: CSSProperties
|
|
81
|
+
|
|
80
82
|
/**
|
|
81
83
|
* Test ID for automated testing.
|
|
82
84
|
*/
|
|
83
85
|
testId?: string
|
|
86
|
+
|
|
84
87
|
/**
|
|
85
88
|
* Automation ID for AI agents and E2E tests. Maps to the `data-mol-id`
|
|
86
89
|
* HTML attribute. Use `molId()` from `./automation.js` to generate
|
|
@@ -88,6 +91,7 @@ interface BaseProps {
|
|
|
88
91
|
* attributes; accessible names come from labels/`aria-*`.)
|
|
89
92
|
*/
|
|
90
93
|
automationId?: string
|
|
94
|
+
|
|
91
95
|
/**
|
|
92
96
|
* Whether the component is disabled.
|
|
93
97
|
*/
|
|
@@ -105,34 +109,42 @@ interface ButtonProps extends ButtonElementProps {
|
|
|
105
109
|
* Button content.
|
|
106
110
|
*/
|
|
107
111
|
children?: Children
|
|
112
|
+
|
|
108
113
|
/**
|
|
109
114
|
* Visual variant.
|
|
110
115
|
*/
|
|
111
116
|
variant?: ButtonVariant
|
|
117
|
+
|
|
112
118
|
/**
|
|
113
119
|
* Color scheme.
|
|
114
120
|
*/
|
|
115
121
|
color?: ColorVariant
|
|
122
|
+
|
|
116
123
|
/**
|
|
117
124
|
* Button size.
|
|
118
125
|
*/
|
|
119
126
|
size?: ButtonSize
|
|
127
|
+
|
|
120
128
|
/**
|
|
121
129
|
* Whether the button is in a loading state.
|
|
122
130
|
*/
|
|
123
131
|
loading?: boolean
|
|
132
|
+
|
|
124
133
|
/**
|
|
125
134
|
* Loading text to display.
|
|
126
135
|
*/
|
|
127
136
|
loadingText?: string
|
|
137
|
+
|
|
128
138
|
/**
|
|
129
139
|
* Whether the button takes full width.
|
|
130
140
|
*/
|
|
131
141
|
fullWidth?: boolean
|
|
142
|
+
|
|
132
143
|
/**
|
|
133
144
|
* Icon to display before the label.
|
|
134
145
|
*/
|
|
135
146
|
leftIcon?: Children
|
|
147
|
+
|
|
136
148
|
/**
|
|
137
149
|
* Icon to display after the label.
|
|
138
150
|
*/
|
|
@@ -150,43 +162,53 @@ interface InputProps extends InputElementProps {
|
|
|
150
162
|
* Input type.
|
|
151
163
|
*/
|
|
152
164
|
type?: InputType
|
|
165
|
+
|
|
153
166
|
/**
|
|
154
167
|
* Input size.
|
|
155
168
|
*/
|
|
156
169
|
size?: Size
|
|
170
|
+
|
|
157
171
|
/**
|
|
158
172
|
* Horizontal text alignment inside the input (see
|
|
159
173
|
* {@link InputClassOptions.align}). Defaults to the bond's own style.
|
|
160
174
|
*/
|
|
161
175
|
align?: 'left' | 'center'
|
|
176
|
+
|
|
162
177
|
/**
|
|
163
178
|
* Label text.
|
|
164
179
|
*/
|
|
165
180
|
label?: string
|
|
181
|
+
|
|
166
182
|
/**
|
|
167
183
|
* Error message.
|
|
168
184
|
*/
|
|
169
185
|
error?: string
|
|
186
|
+
|
|
170
187
|
/**
|
|
171
188
|
* Hint/help text.
|
|
172
189
|
*/
|
|
173
190
|
hint?: string
|
|
191
|
+
|
|
174
192
|
/**
|
|
175
193
|
* Element to display on the left.
|
|
176
194
|
*/
|
|
177
195
|
leftElement?: Children
|
|
196
|
+
|
|
178
197
|
/**
|
|
179
198
|
* Element to display on the right.
|
|
180
199
|
*/
|
|
181
200
|
rightElement?: Children
|
|
201
|
+
|
|
182
202
|
/**
|
|
183
203
|
* Whether to show a clear button.
|
|
184
204
|
*/
|
|
185
205
|
clearable?: boolean
|
|
206
|
+
|
|
186
207
|
/**
|
|
187
208
|
* Called when the clear button is clicked.
|
|
188
209
|
*/
|
|
189
210
|
onClear?: () => void
|
|
211
|
+
|
|
190
212
|
/**
|
|
191
213
|
* Accessible label for the clear button.
|
|
192
214
|
* @default 'Clear'
|
|
@@ -206,26 +228,32 @@ interface TextareaProps extends TextareaElementProps {
|
|
|
206
228
|
* `size` as a neighboring Input for identical font sizes.
|
|
207
229
|
*/
|
|
208
230
|
size?: Size
|
|
231
|
+
|
|
209
232
|
/**
|
|
210
233
|
* Label text.
|
|
211
234
|
*/
|
|
212
235
|
label?: string
|
|
236
|
+
|
|
213
237
|
/**
|
|
214
238
|
* Error message.
|
|
215
239
|
*/
|
|
216
240
|
error?: string
|
|
241
|
+
|
|
217
242
|
/**
|
|
218
243
|
* Hint/help text.
|
|
219
244
|
*/
|
|
220
245
|
hint?: string
|
|
246
|
+
|
|
221
247
|
/**
|
|
222
248
|
* Whether the textarea auto-resizes.
|
|
223
249
|
*/
|
|
224
250
|
autoResize?: boolean
|
|
251
|
+
|
|
225
252
|
/**
|
|
226
253
|
* Minimum number of rows.
|
|
227
254
|
*/
|
|
228
255
|
minRows?: number
|
|
256
|
+
|
|
229
257
|
/**
|
|
230
258
|
* Maximum number of rows.
|
|
231
259
|
*/
|
|
@@ -243,34 +271,42 @@ interface SelectProps<T = string> extends SelectElementProps {
|
|
|
243
271
|
* Select options.
|
|
244
272
|
*/
|
|
245
273
|
options: SelectOption<T>[]
|
|
274
|
+
|
|
246
275
|
/**
|
|
247
276
|
* Current value.
|
|
248
277
|
*/
|
|
249
278
|
value?: T
|
|
279
|
+
|
|
250
280
|
/**
|
|
251
281
|
* Change handler (with typed value).
|
|
252
282
|
*/
|
|
253
283
|
onValueChange?: (value: T) => void
|
|
284
|
+
|
|
254
285
|
/**
|
|
255
286
|
* Select size.
|
|
256
287
|
*/
|
|
257
288
|
size?: Size
|
|
289
|
+
|
|
258
290
|
/**
|
|
259
291
|
* Label text.
|
|
260
292
|
*/
|
|
261
293
|
label?: string
|
|
294
|
+
|
|
262
295
|
/**
|
|
263
296
|
* Placeholder text.
|
|
264
297
|
*/
|
|
265
298
|
placeholder?: string
|
|
299
|
+
|
|
266
300
|
/**
|
|
267
301
|
* Error message.
|
|
268
302
|
*/
|
|
269
303
|
error?: string
|
|
304
|
+
|
|
270
305
|
/**
|
|
271
306
|
* Hint/help text.
|
|
272
307
|
*/
|
|
273
308
|
hint?: string
|
|
309
|
+
|
|
274
310
|
/**
|
|
275
311
|
* Whether to allow clearing the selection.
|
|
276
312
|
*/
|
|
@@ -288,18 +324,22 @@ interface CheckboxProps extends InputElementProps {
|
|
|
288
324
|
* Checkbox label.
|
|
289
325
|
*/
|
|
290
326
|
label?: Children
|
|
327
|
+
|
|
291
328
|
/**
|
|
292
329
|
* Whether the checkbox is checked.
|
|
293
330
|
*/
|
|
294
331
|
checked?: boolean
|
|
332
|
+
|
|
295
333
|
/**
|
|
296
334
|
* Whether the checkbox is in an indeterminate state.
|
|
297
335
|
*/
|
|
298
336
|
indeterminate?: boolean
|
|
337
|
+
|
|
299
338
|
/**
|
|
300
339
|
* Checkbox size.
|
|
301
340
|
*/
|
|
302
341
|
size?: Size
|
|
342
|
+
|
|
303
343
|
/**
|
|
304
344
|
* Error message.
|
|
305
345
|
*/
|
|
@@ -317,22 +357,27 @@ interface RadioGroupProps<T = string> extends BaseProps {
|
|
|
317
357
|
* Radio options.
|
|
318
358
|
*/
|
|
319
359
|
options: RadioOption<T>[]
|
|
360
|
+
|
|
320
361
|
/**
|
|
321
362
|
* Current value.
|
|
322
363
|
*/
|
|
323
364
|
value?: T
|
|
365
|
+
|
|
324
366
|
/**
|
|
325
367
|
* Change handler.
|
|
326
368
|
*/
|
|
327
369
|
onChange?: (value: T) => void
|
|
370
|
+
|
|
328
371
|
/**
|
|
329
372
|
* Radio size.
|
|
330
373
|
*/
|
|
331
374
|
size?: Size
|
|
375
|
+
|
|
332
376
|
/**
|
|
333
377
|
* Group label.
|
|
334
378
|
*/
|
|
335
379
|
label?: string
|
|
380
|
+
|
|
336
381
|
/**
|
|
337
382
|
* Shared `name` attribute for the group's radio inputs (used for native
|
|
338
383
|
* form submission). When omitted, a unique per-instance name is generated
|
|
@@ -342,10 +387,12 @@ interface RadioGroupProps<T = string> extends BaseProps {
|
|
|
342
387
|
* deselect each other.
|
|
343
388
|
*/
|
|
344
389
|
name?: string
|
|
390
|
+
|
|
345
391
|
/**
|
|
346
392
|
* Layout direction.
|
|
347
393
|
*/
|
|
348
394
|
direction?: 'horizontal' | 'vertical'
|
|
395
|
+
|
|
349
396
|
/**
|
|
350
397
|
* Error message.
|
|
351
398
|
*/
|
|
@@ -363,14 +410,17 @@ interface SwitchProps extends InputElementProps {
|
|
|
363
410
|
* Switch label.
|
|
364
411
|
*/
|
|
365
412
|
label?: Children
|
|
413
|
+
|
|
366
414
|
/**
|
|
367
415
|
* Whether the switch is on.
|
|
368
416
|
*/
|
|
369
417
|
checked?: boolean
|
|
418
|
+
|
|
370
419
|
/**
|
|
371
420
|
* Switch size.
|
|
372
421
|
*/
|
|
373
422
|
size?: Size
|
|
423
|
+
|
|
374
424
|
/**
|
|
375
425
|
* Color when on.
|
|
376
426
|
*/
|
|
@@ -388,46 +438,57 @@ interface ModalProps extends HTMLElementProps {
|
|
|
388
438
|
* Whether the modal is open.
|
|
389
439
|
*/
|
|
390
440
|
open: boolean
|
|
441
|
+
|
|
391
442
|
/**
|
|
392
443
|
* Called when the modal should close.
|
|
393
444
|
*/
|
|
394
445
|
onClose: () => void
|
|
446
|
+
|
|
395
447
|
/**
|
|
396
448
|
* Modal title.
|
|
397
449
|
*/
|
|
398
450
|
title?: string
|
|
451
|
+
|
|
399
452
|
/**
|
|
400
453
|
* Modal content.
|
|
401
454
|
*/
|
|
402
455
|
children?: Children
|
|
456
|
+
|
|
403
457
|
/**
|
|
404
458
|
* Modal size.
|
|
405
459
|
*/
|
|
406
460
|
size?: ModalSize
|
|
461
|
+
|
|
407
462
|
/**
|
|
408
463
|
* Whether to show a close button.
|
|
409
464
|
*/
|
|
410
465
|
showCloseButton?: boolean
|
|
466
|
+
|
|
411
467
|
/**
|
|
412
468
|
* Whether clicking the overlay closes the modal.
|
|
413
469
|
*/
|
|
414
470
|
closeOnOverlayClick?: boolean
|
|
471
|
+
|
|
415
472
|
/**
|
|
416
473
|
* Whether pressing Escape closes the modal.
|
|
417
474
|
*/
|
|
418
475
|
closeOnEscape?: boolean
|
|
476
|
+
|
|
419
477
|
/**
|
|
420
478
|
* Footer content (typically action buttons).
|
|
421
479
|
*/
|
|
422
480
|
footer?: Children
|
|
481
|
+
|
|
423
482
|
/**
|
|
424
483
|
* Whether the modal is centered vertically.
|
|
425
484
|
*/
|
|
426
485
|
centered?: boolean
|
|
486
|
+
|
|
427
487
|
/**
|
|
428
488
|
* Whether to prevent body scroll when open.
|
|
429
489
|
*/
|
|
430
490
|
preventScroll?: boolean
|
|
491
|
+
|
|
431
492
|
/**
|
|
432
493
|
* Accessible label for the close button.
|
|
433
494
|
* @default 'Close'
|
|
@@ -446,14 +507,17 @@ interface SpinnerProps extends BaseProps {
|
|
|
446
507
|
* Spinner size.
|
|
447
508
|
*/
|
|
448
509
|
size?: Size
|
|
510
|
+
|
|
449
511
|
/**
|
|
450
512
|
* Spinner color.
|
|
451
513
|
*/
|
|
452
514
|
color?: ColorVariant | string
|
|
515
|
+
|
|
453
516
|
/**
|
|
454
517
|
* Loading label (for accessibility).
|
|
455
518
|
*/
|
|
456
519
|
label?: string
|
|
520
|
+
|
|
457
521
|
/**
|
|
458
522
|
* Spinner thickness.
|
|
459
523
|
*/
|
|
@@ -471,22 +535,27 @@ interface AvatarProps extends HTMLElementProps {
|
|
|
471
535
|
* Image source URL.
|
|
472
536
|
*/
|
|
473
537
|
src?: string
|
|
538
|
+
|
|
474
539
|
/**
|
|
475
540
|
* Alt text for the image.
|
|
476
541
|
*/
|
|
477
542
|
alt?: string
|
|
543
|
+
|
|
478
544
|
/**
|
|
479
545
|
* Name for fallback initials.
|
|
480
546
|
*/
|
|
481
547
|
name?: string
|
|
548
|
+
|
|
482
549
|
/**
|
|
483
550
|
* Avatar size.
|
|
484
551
|
*/
|
|
485
552
|
size?: Size | number
|
|
553
|
+
|
|
486
554
|
/**
|
|
487
555
|
* Whether the avatar is rounded.
|
|
488
556
|
*/
|
|
489
557
|
rounded?: boolean
|
|
558
|
+
|
|
490
559
|
/**
|
|
491
560
|
* Fallback element when no image.
|
|
492
561
|
*/
|
|
@@ -504,18 +573,22 @@ interface BadgeProps extends HTMLElementProps {
|
|
|
504
573
|
* Badge content.
|
|
505
574
|
*/
|
|
506
575
|
children?: Children
|
|
576
|
+
|
|
507
577
|
/**
|
|
508
578
|
* Badge color.
|
|
509
579
|
*/
|
|
510
580
|
color?: ColorVariant
|
|
581
|
+
|
|
511
582
|
/**
|
|
512
583
|
* Badge variant.
|
|
513
584
|
*/
|
|
514
585
|
variant?: 'solid' | 'outline' | 'subtle'
|
|
586
|
+
|
|
515
587
|
/**
|
|
516
588
|
* Badge size.
|
|
517
589
|
*/
|
|
518
590
|
size?: Size
|
|
591
|
+
|
|
519
592
|
/**
|
|
520
593
|
* Whether the badge is rounded.
|
|
521
594
|
*/
|
|
@@ -533,18 +606,22 @@ interface TooltipProps extends HTMLElementProps {
|
|
|
533
606
|
* Tooltip content.
|
|
534
607
|
*/
|
|
535
608
|
content: Children
|
|
609
|
+
|
|
536
610
|
/**
|
|
537
611
|
* Element that triggers the tooltip.
|
|
538
612
|
*/
|
|
539
613
|
children: Children
|
|
614
|
+
|
|
540
615
|
/**
|
|
541
616
|
* Tooltip placement.
|
|
542
617
|
*/
|
|
543
618
|
placement?: TooltipPlacement
|
|
619
|
+
|
|
544
620
|
/**
|
|
545
621
|
* Delay before showing (ms).
|
|
546
622
|
*/
|
|
547
623
|
delay?: number
|
|
624
|
+
|
|
548
625
|
/**
|
|
549
626
|
* Whether the tooltip has an arrow.
|
|
550
627
|
*/
|
|
@@ -562,14 +639,17 @@ interface CardProps extends HTMLElementProps {
|
|
|
562
639
|
* Card content.
|
|
563
640
|
*/
|
|
564
641
|
children?: Children
|
|
642
|
+
|
|
565
643
|
/**
|
|
566
644
|
* Card variant.
|
|
567
645
|
*/
|
|
568
646
|
variant?: 'elevated' | 'outlined' | 'filled'
|
|
647
|
+
|
|
569
648
|
/**
|
|
570
649
|
* Whether the card is interactive (clickable).
|
|
571
650
|
*/
|
|
572
651
|
interactive?: boolean
|
|
652
|
+
|
|
573
653
|
/**
|
|
574
654
|
* Padding size.
|
|
575
655
|
*/
|
|
@@ -587,10 +667,12 @@ interface FormProps extends FormElementProps {
|
|
|
587
667
|
* Form content.
|
|
588
668
|
*/
|
|
589
669
|
children?: Children
|
|
670
|
+
|
|
590
671
|
/**
|
|
591
672
|
* Submit handler with form data.
|
|
592
673
|
*/
|
|
593
674
|
onFormSubmit?: (data: Record<string, unknown>) => void | Promise<void>
|
|
675
|
+
|
|
594
676
|
/**
|
|
595
677
|
* Whether the form is submitting.
|
|
596
678
|
*/
|
|
@@ -608,22 +690,27 @@ interface FormFieldProps extends HTMLElementProps {
|
|
|
608
690
|
* Field content.
|
|
609
691
|
*/
|
|
610
692
|
children?: Children
|
|
693
|
+
|
|
611
694
|
/**
|
|
612
695
|
* Field label.
|
|
613
696
|
*/
|
|
614
697
|
label?: string
|
|
698
|
+
|
|
615
699
|
/**
|
|
616
700
|
* Field name.
|
|
617
701
|
*/
|
|
618
702
|
name?: string
|
|
703
|
+
|
|
619
704
|
/**
|
|
620
705
|
* Error message.
|
|
621
706
|
*/
|
|
622
707
|
error?: string
|
|
708
|
+
|
|
623
709
|
/**
|
|
624
710
|
* Hint/help text.
|
|
625
711
|
*/
|
|
626
712
|
hint?: string
|
|
713
|
+
|
|
627
714
|
/**
|
|
628
715
|
* Whether the field is required.
|
|
629
716
|
*/
|
|
@@ -641,30 +728,37 @@ interface AlertProps extends HTMLElementProps {
|
|
|
641
728
|
* Alert content.
|
|
642
729
|
*/
|
|
643
730
|
children?: Children
|
|
731
|
+
|
|
644
732
|
/**
|
|
645
733
|
* Alert title.
|
|
646
734
|
*/
|
|
647
735
|
title?: string
|
|
736
|
+
|
|
648
737
|
/**
|
|
649
738
|
* Alert status/type.
|
|
650
739
|
*/
|
|
651
740
|
status?: ColorVariant
|
|
741
|
+
|
|
652
742
|
/**
|
|
653
743
|
* Alert variant.
|
|
654
744
|
*/
|
|
655
745
|
variant?: 'solid' | 'subtle' | 'outline' | 'left-accent'
|
|
746
|
+
|
|
656
747
|
/**
|
|
657
748
|
* Whether the alert is dismissible.
|
|
658
749
|
*/
|
|
659
750
|
dismissible?: boolean
|
|
751
|
+
|
|
660
752
|
/**
|
|
661
753
|
* Called when dismissed.
|
|
662
754
|
*/
|
|
663
755
|
onDismiss?: () => void
|
|
756
|
+
|
|
664
757
|
/**
|
|
665
758
|
* Icon to display.
|
|
666
759
|
*/
|
|
667
760
|
icon?: Children
|
|
761
|
+
|
|
668
762
|
/**
|
|
669
763
|
* Accessible label for the dismiss button.
|
|
670
764
|
* @default 'Dismiss'
|
|
@@ -683,34 +777,42 @@ interface ToastProps extends HTMLElementProps {
|
|
|
683
777
|
* Toast content.
|
|
684
778
|
*/
|
|
685
779
|
children?: Children
|
|
780
|
+
|
|
686
781
|
/**
|
|
687
782
|
* Toast title.
|
|
688
783
|
*/
|
|
689
784
|
title?: string
|
|
785
|
+
|
|
690
786
|
/**
|
|
691
787
|
* Toast description.
|
|
692
788
|
*/
|
|
693
789
|
description?: string
|
|
790
|
+
|
|
694
791
|
/**
|
|
695
792
|
* Toast status/type.
|
|
696
793
|
*/
|
|
697
794
|
status?: ColorVariant
|
|
795
|
+
|
|
698
796
|
/**
|
|
699
797
|
* Duration in milliseconds (0 for persistent).
|
|
700
798
|
*/
|
|
701
799
|
duration?: number
|
|
800
|
+
|
|
702
801
|
/**
|
|
703
802
|
* Whether the toast is dismissible.
|
|
704
803
|
*/
|
|
705
804
|
dismissible?: boolean
|
|
805
|
+
|
|
706
806
|
/**
|
|
707
807
|
* Called when dismissed.
|
|
708
808
|
*/
|
|
709
809
|
onDismiss?: () => void
|
|
810
|
+
|
|
710
811
|
/**
|
|
711
812
|
* Toast position.
|
|
712
813
|
*/
|
|
713
814
|
position?: 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left'
|
|
815
|
+
|
|
714
816
|
/**
|
|
715
817
|
* Accessible label for the close button.
|
|
716
818
|
* @default 'Close'
|
|
@@ -729,26 +831,32 @@ interface TabsProps<T = string> extends BaseProps {
|
|
|
729
831
|
* Tab items.
|
|
730
832
|
*/
|
|
731
833
|
items: TabItem<T>[]
|
|
834
|
+
|
|
732
835
|
/**
|
|
733
836
|
* Current active tab.
|
|
734
837
|
*/
|
|
735
838
|
value?: T
|
|
839
|
+
|
|
736
840
|
/**
|
|
737
841
|
* Default active tab.
|
|
738
842
|
*/
|
|
739
843
|
defaultValue?: T
|
|
844
|
+
|
|
740
845
|
/**
|
|
741
846
|
* Change handler.
|
|
742
847
|
*/
|
|
743
848
|
onChange?: (value: T) => void
|
|
849
|
+
|
|
744
850
|
/**
|
|
745
851
|
* Tab variant.
|
|
746
852
|
*/
|
|
747
853
|
variant?: 'line' | 'enclosed' | 'soft-rounded' | 'solid-rounded'
|
|
854
|
+
|
|
748
855
|
/**
|
|
749
856
|
* Tab size.
|
|
750
857
|
*/
|
|
751
858
|
size?: Size
|
|
859
|
+
|
|
752
860
|
/**
|
|
753
861
|
* Whether tabs are fitted (take full width).
|
|
754
862
|
*/
|
|
@@ -766,22 +874,27 @@ interface AccordionProps<T = string> extends BaseProps {
|
|
|
766
874
|
* Accordion items.
|
|
767
875
|
*/
|
|
768
876
|
items: AccordionItem<T>[]
|
|
877
|
+
|
|
769
878
|
/**
|
|
770
879
|
* Expanded item(s).
|
|
771
880
|
*/
|
|
772
881
|
value?: T | T[]
|
|
882
|
+
|
|
773
883
|
/**
|
|
774
884
|
* Default expanded item(s).
|
|
775
885
|
*/
|
|
776
886
|
defaultValue?: T | T[]
|
|
887
|
+
|
|
777
888
|
/**
|
|
778
889
|
* Change handler.
|
|
779
890
|
*/
|
|
780
891
|
onChange?: (value: T | T[]) => void
|
|
892
|
+
|
|
781
893
|
/**
|
|
782
894
|
* Whether multiple items can be expanded.
|
|
783
895
|
*/
|
|
784
896
|
multiple?: boolean
|
|
897
|
+
|
|
785
898
|
/**
|
|
786
899
|
* Whether items can be collapsed.
|
|
787
900
|
*/
|
|
@@ -799,49 +912,57 @@ interface TableProps<T> extends HTMLElementProps {
|
|
|
799
912
|
* Table data.
|
|
800
913
|
*/
|
|
801
914
|
data: T[]
|
|
915
|
+
|
|
802
916
|
/**
|
|
803
917
|
* Column definitions.
|
|
804
918
|
*/
|
|
805
919
|
columns: TableColumn<T>[]
|
|
920
|
+
|
|
806
921
|
/**
|
|
807
922
|
* Row key extractor.
|
|
808
923
|
*/
|
|
809
924
|
rowKey?: keyof T | ((row: T) => string | number)
|
|
925
|
+
|
|
810
926
|
/**
|
|
811
927
|
* Whether to show borders.
|
|
812
928
|
*/
|
|
813
929
|
bordered?: boolean
|
|
930
|
+
|
|
814
931
|
/**
|
|
815
932
|
* Whether rows are striped.
|
|
816
933
|
*/
|
|
817
934
|
striped?: boolean
|
|
935
|
+
|
|
818
936
|
/**
|
|
819
937
|
* Whether rows are hoverable.
|
|
820
938
|
*/
|
|
821
939
|
hoverable?: boolean
|
|
940
|
+
|
|
822
941
|
/**
|
|
823
942
|
* Table size.
|
|
824
943
|
*/
|
|
825
944
|
size?: Size
|
|
945
|
+
|
|
826
946
|
/**
|
|
827
947
|
* Empty state content.
|
|
828
948
|
*/
|
|
829
949
|
emptyContent?: Children
|
|
950
|
+
|
|
830
951
|
/**
|
|
831
952
|
* Loading state.
|
|
832
953
|
*/
|
|
833
954
|
loading?: boolean
|
|
955
|
+
|
|
834
956
|
/**
|
|
835
957
|
* Sort configuration.
|
|
836
958
|
*/
|
|
837
|
-
sort?: {
|
|
838
|
-
|
|
839
|
-
direction: 'asc' | 'desc'
|
|
840
|
-
}
|
|
959
|
+
sort?: { key: string; direction: 'asc' | 'desc' }
|
|
960
|
+
|
|
841
961
|
/**
|
|
842
962
|
* Sort change handler.
|
|
843
963
|
*/
|
|
844
964
|
onSort?: (key: string, direction: 'asc' | 'desc') => void
|
|
965
|
+
|
|
845
966
|
/**
|
|
846
967
|
* Row click handler.
|
|
847
968
|
*/
|
|
@@ -859,34 +980,42 @@ interface PaginationProps extends BaseProps {
|
|
|
859
980
|
* Current page (1-indexed).
|
|
860
981
|
*/
|
|
861
982
|
page: number
|
|
983
|
+
|
|
862
984
|
/**
|
|
863
985
|
* Total number of pages.
|
|
864
986
|
*/
|
|
865
987
|
totalPages: number
|
|
988
|
+
|
|
866
989
|
/**
|
|
867
990
|
* Page change handler.
|
|
868
991
|
*/
|
|
869
992
|
onChange: (page: number) => void
|
|
993
|
+
|
|
870
994
|
/**
|
|
871
995
|
* Number of sibling pages to show.
|
|
872
996
|
*/
|
|
873
997
|
siblings?: number
|
|
998
|
+
|
|
874
999
|
/**
|
|
875
1000
|
* Number of boundary pages to show.
|
|
876
1001
|
*/
|
|
877
1002
|
boundaries?: number
|
|
1003
|
+
|
|
878
1004
|
/**
|
|
879
1005
|
* Pagination size.
|
|
880
1006
|
*/
|
|
881
1007
|
size?: Size
|
|
1008
|
+
|
|
882
1009
|
/**
|
|
883
1010
|
* Whether to show first/last buttons.
|
|
884
1011
|
*/
|
|
885
1012
|
showFirstLast?: boolean
|
|
1013
|
+
|
|
886
1014
|
/**
|
|
887
1015
|
* Whether to show previous/next buttons.
|
|
888
1016
|
*/
|
|
889
1017
|
showPrevNext?: boolean
|
|
1018
|
+
|
|
890
1019
|
/**
|
|
891
1020
|
* Accessible labels for pagination controls.
|
|
892
1021
|
*/
|
|
@@ -911,18 +1040,22 @@ interface SkeletonProps extends BaseProps {
|
|
|
911
1040
|
* Skeleton width.
|
|
912
1041
|
*/
|
|
913
1042
|
width?: string | number
|
|
1043
|
+
|
|
914
1044
|
/**
|
|
915
1045
|
* Skeleton height.
|
|
916
1046
|
*/
|
|
917
1047
|
height?: string | number
|
|
1048
|
+
|
|
918
1049
|
/**
|
|
919
1050
|
* Whether the skeleton is circular.
|
|
920
1051
|
*/
|
|
921
1052
|
circle?: boolean
|
|
1053
|
+
|
|
922
1054
|
/**
|
|
923
1055
|
* Border radius.
|
|
924
1056
|
*/
|
|
925
1057
|
borderRadius?: string | number
|
|
1058
|
+
|
|
926
1059
|
/**
|
|
927
1060
|
* Animation type.
|
|
928
1061
|
*/
|
|
@@ -940,31 +1073,38 @@ interface DropdownProps<T = string> extends BaseProps {
|
|
|
940
1073
|
* Dropdown trigger element.
|
|
941
1074
|
*/
|
|
942
1075
|
trigger: Children
|
|
1076
|
+
|
|
943
1077
|
/**
|
|
944
1078
|
* Dropdown items.
|
|
945
1079
|
*/
|
|
946
1080
|
items: DropdownItem<T>[]
|
|
1081
|
+
|
|
947
1082
|
/**
|
|
948
1083
|
* Called when an item is selected.
|
|
949
1084
|
*/
|
|
950
1085
|
onSelect?: (value: T) => void
|
|
1086
|
+
|
|
951
1087
|
/**
|
|
952
1088
|
* Dropdown placement.
|
|
953
1089
|
*/
|
|
954
1090
|
placement?:
|
|
955
1091
|
'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'right'
|
|
1092
|
+
|
|
956
1093
|
/**
|
|
957
1094
|
* Whether the dropdown is open (controlled).
|
|
958
1095
|
*/
|
|
959
1096
|
open?: boolean
|
|
1097
|
+
|
|
960
1098
|
/**
|
|
961
1099
|
* Called when open state changes.
|
|
962
1100
|
*/
|
|
963
1101
|
onOpenChange?: (open: boolean) => void
|
|
1102
|
+
|
|
964
1103
|
/**
|
|
965
1104
|
* Menu alignment.
|
|
966
1105
|
*/
|
|
967
1106
|
align?: 'start' | 'center' | 'end'
|
|
1107
|
+
|
|
968
1108
|
/**
|
|
969
1109
|
* Menu width.
|
|
970
1110
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-ui-react-native",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "React Native UI component implementations for molecule.dev",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-ui-react-native",
|
|
6
6
|
"type": "module",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"directory": "packages/app/frameworks/react-native-ui"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@molecule/app-i18n": "1.
|
|
37
|
+
"@molecule/app-i18n": "1.1.2",
|
|
38
38
|
"@molecule/app-icons": "1.0.3",
|
|
39
|
-
"@molecule/app-ui": "1.3.
|
|
39
|
+
"@molecule/app-ui": "1.3.9",
|
|
40
40
|
"@types/node": "26.6.5",
|
|
41
41
|
"react": "19.3.1",
|
|
42
42
|
"typescript": "6.0.3",
|
|
@@ -50,18 +50,9 @@
|
|
|
50
50
|
"react-native": ">=0.72.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
|
-
"@molecule/app-i18n": {
|
|
54
|
-
"optional": true
|
|
55
|
-
},
|
|
56
53
|
"@molecule/app-icons": {
|
|
57
54
|
"optional": true
|
|
58
55
|
},
|
|
59
|
-
"@molecule/app-ui": {
|
|
60
|
-
"optional": true
|
|
61
|
-
},
|
|
62
|
-
"react": {
|
|
63
|
-
"optional": true
|
|
64
|
-
},
|
|
65
56
|
"react-native": {
|
|
66
57
|
"optional": true
|
|
67
58
|
}
|