@react-form-builder/components-rsuite 7.1.0 → 7.3.0

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/dist/index.d.ts CHANGED
@@ -1,14 +1,63 @@
1
+ import type { AutoCompleteProps } from 'rsuite';
2
+ import type { BreadcrumbProps } from 'rsuite';
1
3
  import { BuilderView } from '@react-form-builder/core';
4
+ import type { ButtonProps } from 'rsuite';
5
+ import type { CalendarProps } from 'rsuite/esm/Calendar/Calendar';
6
+ import type { CheckboxProps } from 'rsuite';
7
+ import { ClassAttributes } from 'react';
8
+ import type { ComponentProps } from 'react';
9
+ import type { CSSProperties } from 'react';
10
+ import type { DatePickerProps } from 'rsuite';
2
11
  import { Definer } from '@react-form-builder/core';
12
+ import { DividerProps } from 'rsuite';
13
+ import { ElementType } from 'react';
3
14
  import { ErrorWrapperProps } from '@react-form-builder/core';
4
15
  import type { FormViewerWrapperComponentProps } from '@react-form-builder/core';
16
+ import { HTMLAttributes } from 'react';
17
+ import type { InputPickerProps } from 'rsuite';
18
+ import type { InputProps } from 'rsuite';
19
+ import type { ItemDataType } from 'rsuite/esm/internals/types';
5
20
  import { JSX } from '@emotion/react/jsx-runtime';
21
+ import { JSX as JSX_2 } from 'react';
22
+ import { LabeledValue } from '@react-form-builder/core';
23
+ import { MessageProps } from 'rsuite';
24
+ import type { ModalProps } from 'rsuite';
6
25
  import { Model } from '@react-form-builder/core';
26
+ import type { NavProps } from 'rsuite';
27
+ import type { NumericFormatProps } from 'react-number-format';
28
+ import { Omit as Omit_2 } from 'rsuite/esm/internals/types/utils';
7
29
  import type { OverlayTriggerType } from 'rsuite/esm/internals/Overlay/OverlayTrigger';
30
+ import type { PanelProps } from 'rsuite';
31
+ import type { PatternFormatProps } from 'react-number-format';
32
+ import { PlaceholderGraphProps } from 'rsuite';
33
+ import { PlaceholderGridProps } from 'rsuite';
34
+ import { PlaceholderParagraphProps } from 'rsuite';
35
+ import { ProgressCircleProps } from 'rsuite';
36
+ import { ProgressLineProps } from 'rsuite';
37
+ import { PropsWithChildren } from 'react';
38
+ import type { RadioGroupProps } from 'rsuite';
39
+ import { ReactNode } from 'react';
40
+ import { ReplaceProps } from 'rsuite/esm/internals/types/utils';
41
+ import type { SyntheticEvent } from 'react';
42
+ import type { TagPickerProps } from 'rsuite';
43
+ import { Theme } from '@emotion/react';
44
+ import { ToggleProps } from 'rsuite';
8
45
  import type { TypeAttributes } from 'rsuite/esm/internals/types';
46
+ import type { UploaderProps } from 'rsuite';
9
47
  import { View } from '@react-form-builder/core';
48
+ import { WithAsProps } from 'rsuite/esm/internals/types';
10
49
  import { WrapperProps } from '@react-form-builder/core';
11
50
 
51
+ /**
52
+ * Common CSS block properties.
53
+ */
54
+ declare interface AreaProps {
55
+ /**
56
+ * The background color.
57
+ */
58
+ backgroundColor?: string;
59
+ }
60
+
12
61
  /**
13
62
  * An assembled set of rSuite components metadata, ready to be passed as a property to the FormBuilder.
14
63
  * This view contains CSS loaders.
@@ -21,17 +70,222 @@ export declare const builderViewWithCss: BuilderView;
21
70
  */
22
71
  export declare const formEngineRsuiteCssLoader: () => Promise<void>;
23
72
 
73
+ /**
74
+ * The callback function for loading data into the component.
75
+ * @param newData the new data to be loaded into the component.
76
+ */
77
+ export declare type LoadCallback = (newData: ItemDataType[]) => void;
78
+
79
+ /**
80
+ * Describes a function that is called when data is to be loaded into the component.
81
+ * @param searchKeyword the current search value.
82
+ * @param loadCallback the callback function called to set the data in the component.
83
+ * @param currentDataLength the length of the data already loaded.
84
+ */
85
+ export declare type LoadDataHandler = (searchKeyword: string, loadCallback: LoadCallback, currentDataLength: number) => {};
86
+
87
+ /**
88
+ * Interface for load data props.
89
+ */
90
+ declare interface LoadDataProps {
91
+ /**
92
+ * The callback function called when data should be load.
93
+ */
94
+ onLoadData?: LoadDataHandler;
95
+ /**
96
+ * Flag, if true, the data will be loaded in advance, before opening the dropdown, false otherwise.
97
+ */
98
+ preload?: boolean;
99
+ /**
100
+ * Flag, if true, the virtualized will be disabled, false otherwise.
101
+ */
102
+ disableVirtualized?: boolean;
103
+ }
104
+
24
105
  /**
25
106
  * Loads the Left-To-Right (LTR) CSS for the "rsuite" library.
26
107
  * @returns the Promise that resolves when the LTR CSS has been loaded successfully.
27
108
  */
28
109
  export declare const ltrCssLoader: () => Promise<void>;
29
110
 
111
+ /**
112
+ * Menu item for RsMenu component.
113
+ */
114
+ export declare type MenuItem = {
115
+ /**
116
+ * The href for the menu item.
117
+ */
118
+ href?: string;
119
+ /**
120
+ * The title for the menu item.
121
+ */
122
+ title?: string;
123
+ };
124
+
30
125
  /**
31
126
  * An array of rSuite component metadata for use in FormViewer.
32
127
  */
33
128
  export declare const models: Model<any>[];
34
129
 
130
+ export declare const rsAutoComplete: Definer<RsAutoCompleteProps>;
131
+
132
+ /**
133
+ * The properties of the RsAutoComplete component.
134
+ */
135
+ export declare interface RsAutoCompleteProps extends AutoCompleteProps {
136
+ /**
137
+ * The component label.
138
+ */
139
+ label?: string;
140
+ /**
141
+ * The component class name.
142
+ */
143
+ className?: string;
144
+ /**
145
+ * The component styles.
146
+ */
147
+ style?: CSSProperties;
148
+ /**
149
+ * Called after the value has been changed.
150
+ * @param value the value.
151
+ */
152
+ onChange?: (value: string) => void;
153
+ }
154
+
155
+ export declare const rsBreadcrumb: Definer<RsBreadcrumbProps>;
156
+
157
+ /**
158
+ * Props for a single breadcrumb item.
159
+ */
160
+ export declare interface RsBreadcrumbItemProps {
161
+ /**
162
+ * Whether the breadcrumb item is active.
163
+ */
164
+ active?: boolean;
165
+ /**
166
+ * URL for the breadcrumb item.
167
+ */
168
+ href?: string;
169
+ /**
170
+ * Title text for the breadcrumb item.
171
+ */
172
+ title?: string;
173
+ }
174
+
175
+ /**
176
+ * Props for the RsBreadcrumb component.
177
+ */
178
+ export declare interface RsBreadcrumbProps extends BreadcrumbProps {
179
+ /**
180
+ * Array of breadcrumb items to display.
181
+ */
182
+ items: RsBreadcrumbItemProps[];
183
+ /**
184
+ * Callback function when a breadcrumb item is clicked.
185
+ */
186
+ onItemClick: (item: RsBreadcrumbItemProps) => {};
187
+ }
188
+
189
+ export declare const rsButton: Definer<ButtonProps>;
190
+
191
+ export declare const rsCalendar: Definer<RsCalendarProps>;
192
+
193
+ /**
194
+ * Props for the RsCalendar component.
195
+ */
196
+ export declare interface RsCalendarProps extends CalendarProps {
197
+ /**
198
+ * Whether the calendar is read only.
199
+ */
200
+ readOnly: boolean;
201
+ /**
202
+ * Label for the calendar.
203
+ */
204
+ label?: string;
205
+ }
206
+
207
+ export declare const rsCard: Definer<RsCardProps>;
208
+
209
+ /**
210
+ * Props for the RsCard component.
211
+ */
212
+ export declare interface RsCardProps extends PanelProps {
213
+ /**
214
+ * Title for the card.
215
+ */
216
+ title?: string;
217
+ /**
218
+ * Header size for the card.
219
+ */
220
+ headerSize: string;
221
+ }
222
+
223
+ export declare const rsCheckbox: Definer<CheckboxProps<any>>;
224
+
225
+ export declare const rsContainer: Definer<RsContainerProps>;
226
+
227
+ /**
228
+ * Props for the RsContainer component.
229
+ */
230
+ export declare interface RsContainerProps {
231
+ /**
232
+ * Whether the container is disabled.
233
+ */
234
+ disabled?: boolean;
235
+ /**
236
+ * Whether the container is read only.
237
+ */
238
+ readOnly?: boolean;
239
+ /**
240
+ * Children elements of the container.
241
+ */
242
+ children?: ReactNode;
243
+ }
244
+
245
+ export declare const rsDatePicker: Definer<RsDatePickerProps>;
246
+
247
+ /**
248
+ * Props for the RsDatePicker component.
249
+ */
250
+ export declare interface RsDatePickerProps extends DatePickerProps {
251
+ /**
252
+ * Label for the date picker.
253
+ */
254
+ label: string;
255
+ /**
256
+ * Called after the value has been changed.
257
+ * @param value the value.
258
+ */
259
+ onChange?: (value: Date | null) => void;
260
+ /**
261
+ * @deprecated
262
+ */
263
+ inline?: boolean;
264
+ }
265
+
266
+ export declare const rsDivider: Definer<PropsWithChildren<ReplaceProps<ElementType<any, keyof JSX_2.IntrinsicElements>, WithAsProps<ElementType<any, keyof JSX_2.IntrinsicElements>> & DividerProps>>>;
267
+
268
+ export declare const rsDropdown: Definer<RsDropdownProps>;
269
+
270
+ /**
271
+ * Props for the RsDropdown component.
272
+ */
273
+ export declare interface RsDropdownProps extends InputPickerProps, LoadDataProps {
274
+ /**
275
+ * The label for the dropdown.
276
+ */
277
+ label: string;
278
+ /**
279
+ * The htmlSize attribute defines the width of the &laquo;input> element.
280
+ */
281
+ htmlSize?: number;
282
+ /**
283
+ * Called after the value has been changed.
284
+ * @param value the value.
285
+ */
286
+ onChange?: (value: any) => void;
287
+ }
288
+
35
289
  /**
36
290
  * Metadata builder for rSuite-based error display component.
37
291
  */
@@ -47,6 +301,90 @@ export declare interface RsErrorMessageProps extends ErrorWrapperProps {
47
301
  placement?: TypeAttributes.Placement8;
48
302
  }
49
303
 
304
+ export declare const rsHeader: Definer<RsHeaderProps>;
305
+
306
+ /**
307
+ * Props for the RsHeader component.
308
+ */
309
+ export declare interface RsHeaderProps extends TextProps {
310
+ /**
311
+ * The content of the header.
312
+ */
313
+ content?: string;
314
+ /**
315
+ * The size of the header.
316
+ */
317
+ headerSize: string;
318
+ }
319
+
320
+ export declare const rsImage: Definer<RsImageProps>;
321
+
322
+ /**
323
+ * Props for the RsImage component.
324
+ */
325
+ export declare interface RsImageProps extends ComponentProps<'img'>, AreaProps {
326
+ }
327
+
328
+ export declare const rsInput: Definer<RsInputProps>;
329
+
330
+ /**
331
+ * Props for the RsInput component.
332
+ */
333
+ export declare interface RsInputProps extends InputProps {
334
+ /**
335
+ * The label for the input.
336
+ */
337
+ label: string;
338
+ /**
339
+ * Whether to show password mask.
340
+ */
341
+ passwordMask?: boolean;
342
+ /**
343
+ * The aria label for the show password button.
344
+ */
345
+ showPasswordAriaLabel: string;
346
+ /**
347
+ * The type of the input.
348
+ */
349
+ type?: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url' | 'time';
350
+ /**
351
+ * The htmlSize attribute defines the width of the &laquo;input> element.
352
+ */
353
+ htmlSize?: number;
354
+ }
355
+
356
+ export declare const rsLabel: Definer<RsLabelProps>;
357
+
358
+ /**
359
+ * Props for the RsLabel component.
360
+ */
361
+ export declare interface RsLabelProps extends TextProps {
362
+ /**
363
+ * The label text content.
364
+ */
365
+ text: string;
366
+ }
367
+
368
+ export declare const rsLink: Definer<RsLinkProps>;
369
+
370
+ /**
371
+ * Props for the RsLink component.
372
+ */
373
+ export declare interface RsLinkProps extends ComponentProps<'a'>, TextProps {
374
+ /**
375
+ * The link text content.
376
+ */
377
+ text: string;
378
+ /**
379
+ * The filename for download when download is enabled.
380
+ */
381
+ downloadFilename: string;
382
+ /**
383
+ * The content type (text or custom).
384
+ */
385
+ content: string;
386
+ }
387
+
50
388
  /**
51
389
  * Wrapper component for RSuite components localization.
52
390
  * @param props the component props.
@@ -56,6 +394,269 @@ export declare interface RsErrorMessageProps extends ErrorWrapperProps {
56
394
  */
57
395
  export declare const RsLocalizationWrapper: ({ language, children }: FormViewerWrapperComponentProps) => JSX.Element;
58
396
 
397
+ export declare const rsMenu: Definer<RsMenuProps>;
398
+
399
+ /**
400
+ * Props for the RsMenu component.
401
+ */
402
+ export declare interface RsMenuProps extends NavProps {
403
+ /**
404
+ * The items for the menu.
405
+ */
406
+ items?: MenuItem[];
407
+ /**
408
+ * The element type for menu items.
409
+ */
410
+ itemsAs: ElementType;
411
+ }
412
+
413
+ export declare const rsMessage: Definer<Omit_2<any, WithAsProps<ElementType<any, keyof JSX_2.IntrinsicElements>> & MessageProps> & WithAsProps<ElementType<any, keyof JSX_2.IntrinsicElements>> & MessageProps & {
414
+ children?: ReactNode;
415
+ } & {
416
+ theme?: Theme | undefined;
417
+ }>;
418
+
419
+ export declare const rsModal: Definer<RsModalProps>;
420
+
421
+ export declare const rsModalLayout: Definer<RsModalLayoutProps>;
422
+
423
+ /**
424
+ * Props for the RsModalLayout component.
425
+ */
426
+ export declare interface RsModalLayoutProps {
427
+ /**
428
+ * Whether to show the close button.
429
+ */
430
+ closeButton: boolean;
431
+ /**
432
+ * The title for the modal header.
433
+ */
434
+ headerTitle: ReactNode;
435
+ /**
436
+ * The content for the modal body.
437
+ */
438
+ body: ReactNode;
439
+ /**
440
+ * The content for the modal footer.
441
+ */
442
+ footer: ReactNode;
443
+ }
444
+
445
+ /**
446
+ * Props for the RsModal component.
447
+ */
448
+ export declare interface RsModalProps extends ModalProps {
449
+ /**
450
+ * Custom close handler function.
451
+ */
452
+ handleClose?: () => void;
453
+ }
454
+
455
+ export declare const rsNumberFormat: Definer<RsNumberFormatProps>;
456
+
457
+ /**
458
+ * Props for the RsNumberFormat component.
459
+ */
460
+ export declare interface RsNumberFormatProps extends NumericFormatProps<InputProps> {
461
+ /**
462
+ * The label for the number input.
463
+ */
464
+ label: string;
465
+ /**
466
+ * The callback function called when the value changes.
467
+ */
468
+ onChange: (value: any) => void;
469
+ /**
470
+ * The htmlSize attribute defines the width of the &laquo;input> element.
471
+ */
472
+ htmlSize?: number;
473
+ }
474
+
475
+ export declare const rsPatternFormat: Definer<RsPatternFormatProps>;
476
+
477
+ /**
478
+ * Props for the RsPatternFormat component.
479
+ */
480
+ export declare interface RsPatternFormatProps extends PatternFormatProps<InputProps> {
481
+ /**
482
+ * The label for the pattern format input.
483
+ */
484
+ label: string;
485
+ /**
486
+ * The callback when value changes.
487
+ */
488
+ onChange: (value: any) => void;
489
+ /**
490
+ * The htmlSize attribute defines the width of the &laquo;input> element.
491
+ */
492
+ htmlSize?: number;
493
+ }
494
+
495
+ export declare const rsPlaceholderGraph: Definer<PropsWithChildren<ReplaceProps<ElementType<any, keyof JSX_2.IntrinsicElements>, WithAsProps<ElementType<any, keyof JSX_2.IntrinsicElements>> & PlaceholderGraphProps>>>;
496
+
497
+ export declare const rsPlaceholderGrid: Definer<PropsWithChildren<ReplaceProps<ElementType<any, keyof JSX_2.IntrinsicElements>, WithAsProps<ElementType<any, keyof JSX_2.IntrinsicElements>> & PlaceholderGridProps>>>;
498
+
499
+ export declare const rsPlaceholderParagraph: Definer<PropsWithChildren<ReplaceProps<ElementType<any, keyof JSX_2.IntrinsicElements>, WithAsProps<ElementType<any, keyof JSX_2.IntrinsicElements>> & PlaceholderParagraphProps>>>;
500
+
501
+ export declare const rsProgressCircle: Definer<PropsWithChildren<ReplaceProps<ElementType<any, keyof JSX_2.IntrinsicElements>, WithAsProps<ElementType<any, keyof JSX_2.IntrinsicElements>> & ProgressCircleProps>>>;
502
+
503
+ export declare const rsProgressLine: Definer<PropsWithChildren<ReplaceProps<ElementType<any, keyof JSX_2.IntrinsicElements>, WithAsProps<ElementType<any, keyof JSX_2.IntrinsicElements>> & ProgressLineProps>>>;
504
+
505
+ export declare const rsRadioGroup: Definer<RsRadioGroupProps>;
506
+
507
+ /**
508
+ * Props for the RsRadioGroup component.
509
+ */
510
+ export declare interface RsRadioGroupProps extends RadioGroupProps<string> {
511
+ /**
512
+ * The items for the radio group.
513
+ */
514
+ items: LabeledValue[];
515
+ /**
516
+ * The label for the radio group.
517
+ */
518
+ label?: string;
519
+ /**
520
+ * Called after the value has been changed.
521
+ * @param value the value.
522
+ */
523
+ onChange?: (value: string) => void;
524
+ }
525
+
526
+ export declare const rsSearch: Definer<RsSearchProps>;
527
+
528
+ /**
529
+ * Props for the RsSearch component.
530
+ */
531
+ export declare interface RsSearchProps extends InputPickerProps, LoadDataProps {
532
+ /**
533
+ * The label for the search input.
534
+ */
535
+ label: string;
536
+ /**
537
+ * Called after the value has been changed.
538
+ * @param value the value.
539
+ */
540
+ onChange?: (value: any) => void;
541
+ }
542
+
543
+ export declare const rsStaticContent: Definer<RsStaticContentProps>;
544
+
545
+ /**
546
+ * Props for the RsStaticContent component.
547
+ */
548
+ export declare interface RsStaticContentProps {
549
+ /**
550
+ * The content to display.
551
+ */
552
+ content: string;
553
+ /**
554
+ * Whether to allow HTML content.
555
+ */
556
+ allowHtml: boolean;
557
+ }
558
+
559
+ export declare const rsTab: Definer<RsTabProps>;
560
+
561
+ /**
562
+ * Tab item for RsTab component.
563
+ */
564
+ export declare type RsTabItem = {
565
+ /**
566
+ * Label for the tab item.
567
+ */
568
+ label: string;
569
+ /**
570
+ * Value for the tab item.
571
+ */
572
+ value: string;
573
+ };
574
+
575
+ /**
576
+ * Props for the RsTab component.
577
+ */
578
+ export declare interface RsTabProps extends NavProps {
579
+ /**
580
+ * Items for the tab.
581
+ */
582
+ items?: RsTabItem[];
583
+ /**
584
+ * Whether to show navigation.
585
+ */
586
+ showNavigation?: boolean;
587
+ /**
588
+ * Pane content for the tab.
589
+ */
590
+ pane: ReactNode;
591
+ }
592
+
593
+ export declare const rsTagPicker: Definer<RsTagPickerProps>;
594
+
595
+ /**
596
+ * Props for the RsTagPicker component.
597
+ */
598
+ export declare interface RsTagPickerProps extends TagPickerProps {
599
+ /**
600
+ * Label for the tag picker.
601
+ */
602
+ label: string;
603
+ /**
604
+ * Called after the value has been changed.
605
+ * @param value the value.
606
+ */
607
+ onChange?: (value: any) => void;
608
+ }
609
+
610
+ export declare const rsTextArea: Definer<RsTextAreaProps>;
611
+
612
+ /**
613
+ * Props for the RsTextArea component.
614
+ */
615
+ export declare interface RsTextAreaProps extends InputProps {
616
+ /**
617
+ * The label for the text area.
618
+ */
619
+ label: string;
620
+ /**
621
+ * The number of visible text lines.
622
+ */
623
+ rows: number;
624
+ /**
625
+ * The htmlSize attribute defines the width of the &laquo;input> element.
626
+ */
627
+ htmlSize?: number;
628
+ }
629
+
630
+ export declare const rsTimePicker: Definer<RsTimePickerProps>;
631
+
632
+ /**
633
+ * Props for the RsTimePicker component.
634
+ */
635
+ export declare interface RsTimePickerProps extends Omit<DatePickerProps, 'value' | 'onChange'> {
636
+ /**
637
+ * Value of the time picker.
638
+ */
639
+ value?: string;
640
+ /**
641
+ * Callback when value changes.
642
+ */
643
+ onChange?: (value: string | null, event: SyntheticEvent) => void;
644
+ /**
645
+ * Label for the time picker.
646
+ */
647
+ label: string;
648
+ /**
649
+ * @deprecated
650
+ */
651
+ inline?: boolean;
652
+ }
653
+
654
+ export declare const rsToggle: Definer<Omit_2<any, WithAsProps<ElementType<any, keyof JSX_2.IntrinsicElements>> & ToggleProps> & WithAsProps<ElementType<any, keyof JSX_2.IntrinsicElements>> & ToggleProps & {
655
+ children?: ReactNode;
656
+ } & {
657
+ theme?: Theme | undefined;
658
+ }>;
659
+
59
660
  /**
60
661
  * Metadata builder for rSuite-based tooltip display component.
61
662
  */
@@ -84,12 +685,129 @@ export declare interface RsTooltipProps extends WrapperProps {
84
685
  */
85
686
  export declare const rSuiteComponents: Definer<any>[];
86
687
 
688
+ export declare const rsUploader: Definer<RsUploaderProps>;
689
+
690
+ /**
691
+ * Props for the RsUploader component.
692
+ */
693
+ export declare interface RsUploaderProps extends UploaderProps {
694
+ /**
695
+ * Whether to use a custom element for the uploader.
696
+ */
697
+ customElement: boolean;
698
+ /**
699
+ * The label for the uploader.
700
+ */
701
+ label?: string;
702
+ }
703
+
704
+ export declare const rsWizard: Definer<RsWizardProps>;
705
+
706
+ /**
707
+ * Props for the RsWizard component.
708
+ */
709
+ export declare interface RsWizardProps extends PropsWithChildren<any> {
710
+ /**
711
+ * Whether to show steps.
712
+ */
713
+ showSteps?: boolean;
714
+ /**
715
+ * Whether to show step labels.
716
+ */
717
+ showStepsLabels?: boolean;
718
+ /**
719
+ * Whether steps are vertical.
720
+ */
721
+ verticalSteps?: boolean;
722
+ /**
723
+ * Navigation mode for steps.
724
+ */
725
+ stepsNavigation?: 'disable' | 'onlyVisited' | 'any';
726
+ /**
727
+ * Active step index.
728
+ */
729
+ activeIndex?: number;
730
+ /**
731
+ * Label for previous button.
732
+ */
733
+ prevButtonLabel?: string;
734
+ /**
735
+ * Label for next button.
736
+ */
737
+ nextButtonLabel?: string;
738
+ /**
739
+ * Label for finish button.
740
+ */
741
+ finishButtonLabel?: string;
742
+ /**
743
+ * Whether to validate on next.
744
+ */
745
+ validateOnNext: boolean;
746
+ /**
747
+ * Whether to validate on finish.
748
+ */
749
+ validateOnFinish: boolean;
750
+ /**
751
+ * Callback when step changes.
752
+ */
753
+ onChange?: (activeIndex?: number) => void;
754
+ /**
755
+ * Callback when next button is clicked.
756
+ */
757
+ onNext?: () => void;
758
+ /**
759
+ * Callback when previous button is clicked.
760
+ */
761
+ onPrev?: () => void;
762
+ /**
763
+ * Callback when finish button is clicked.
764
+ */
765
+ onFinish?: () => void;
766
+ }
767
+
768
+ export declare const rsWizardStep: Definer<{
769
+ theme?: Theme | undefined;
770
+ as?: ElementType<any, keyof JSX_2.IntrinsicElements> | undefined;
771
+ } & RsWizardStepProps & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>>;
772
+
773
+ /**
774
+ * Props for the RsWizardStep component.
775
+ */
776
+ export declare interface RsWizardStepProps {
777
+ /**
778
+ * Label for the wizard step.
779
+ */
780
+ label?: string;
781
+ }
782
+
87
783
  /**
88
784
  * Loads the Right-to-Left (RTL) CSS for the "rsuite" library.
89
785
  * @returns the Promise that resolves when the RTL CSS has been loaded successfully.
90
786
  */
91
787
  export declare const rtlCssLoader: () => Promise<void>;
92
788
 
789
+ /**
790
+ * Common CSS text properties.
791
+ */
792
+ declare interface TextProps extends AreaProps {
793
+ /**
794
+ * The text alignment.
795
+ */
796
+ alignment?: string;
797
+ /**
798
+ * The font size.
799
+ */
800
+ fontSize?: number;
801
+ /**
802
+ * The font weight.
803
+ */
804
+ fontWeight?: string;
805
+ /**
806
+ * The color.
807
+ */
808
+ color?: string;
809
+ }
810
+
93
811
  /**
94
812
  * An assembled set of rSuite components, ready to be passed as a property to the FormViewer.
95
813
  */