idea-react 3.0.0-alpha.1 → 3.0.0-beta.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/ReadMe.md CHANGED
@@ -19,55 +19,82 @@ A **[React][1] advanced components library** based on [TypeScript][2] & [Bootstr
19
19
 
20
20
  ## Content
21
21
 
22
- ### Components
22
+ ### Basic components
23
23
 
24
- 1. [Button](source/Button.tsx)
24
+ 1. [Avatar](source/Avatar.tsx)
25
25
  2. [Badge](source/Badge.tsx)
26
- 3. [Navbar](source/Navbar.tsx)
27
- 4. [Menu](source/Menu.tsx)
28
- 5. [Native Dialog](source/NativeDialog/index.tsx)
29
- 6. [Nav](source/Nav.tsx)
30
- 7. [Card](source/Card.tsx)
26
+ 3. [Button](source/Button.tsx)
27
+ 4. [Button Group](source/ButtonGroup.tsx)
28
+ 5. [Card](source/Card.tsx)
29
+ 6. [Close Button](source/CloseButton.tsx)
30
+ 7. [Drawer](source/Drawer.tsx)
31
31
  8. [Grid](source/Grid.tsx)
32
32
  9. [Image](source/Image.tsx)
33
- 10. [Table](source/Table.tsx)
34
- 11. [Popover](source/Popover.tsx)
35
- 12. [Tooltip](source/Tooltip.tsx)
36
- 13. [Time](source/Time.tsx)
37
- 14. [Time Distance](source/TimeDistance.tsx)
38
- 15. [Timeline](source/Timeline/)
39
- 16. [Countdown](source/Countdown.tsx)
40
- 17. [Icon](source/Icon.tsx)
41
- 18. [Avatar](source/Avatar.tsx)
42
- 19. [Nameplate](source/Nameplate.tsx)
33
+ 10. [List Group](source/ListGroup.tsx)
34
+ 11. [Menu](source/Menu.tsx)
35
+ 12. [Native Dialog](source/NativeDialog/)
36
+ 13. [Nav](source/Nav.tsx)
37
+ 14. [Navbar](source/Navbar.tsx)
38
+ 15. [Popover](source/Popover.tsx)
39
+ 16. [Spinner](source/Spinner.tsx)
40
+ 17. [Table](source/Table.tsx)
41
+ 18. [Toast](source/Toast.tsx)
42
+ 19. [Toggle Button](source/ToggleButton.tsx)
43
+ 20. [Tooltip](source/Tooltip.tsx)
44
+
45
+ ### Form components
46
+
47
+ 1. [Form, Fieldset, Field, Group, Field Content & Label](source/Form/Primitives.tsx)
48
+ 2. [Form Control, Text Area & Select](source/Form/Control.tsx)
49
+ 3. [Checkbox](source/Form/Checkbox.tsx)
50
+ 4. [Radio & Form Check](source/Form/Radio.tsx)
51
+ 5. [Switch](source/Form/Switch.tsx)
52
+ 6. [Range](source/Form/Range.tsx)
53
+ 7. [Input Group](source/Form/InputGroup.tsx)
54
+ 8. [Floating Label](source/Form/FloatingLabel.tsx)
55
+ 9. [Form Adornment & Ghost](source/Form/Adorn.tsx)
56
+ 10. [Chip & Chip Input](source/Form/Chips.tsx)
57
+ 11. [Combobox](source/Form/Combobox.tsx)
58
+ 12. [Date Picker](source/Form/DatePicker.tsx)
59
+ 13. [OTP Input](source/Form/OTP.tsx)
60
+ 14. [Password Strength](source/Form/PasswordStrength.tsx)
61
+ 15. [Form Feedback & Text](source/Form/Feedback.tsx)
62
+
63
+ ### Advanced components
64
+
65
+ 1. [Click Boundary](source/ClickBoundary.tsx)
66
+ 2. [Code Block](source/CodeBlock.tsx)
67
+ 3. [Countdown](source/Countdown.tsx)
68
+ 4. [Dialog](source/Dialog.tsx)
69
+ 5. [Editor](source/Editor.tsx)
70
+ 6. [Editor HTML](source/EditorHTML.tsx)
71
+ 7. [Horizontal Marquee](source/HorizontalMarquee/)
72
+ 8. [Icon](source/Icon.tsx)
73
+ 9. [Live TSX](source/LiveTSX.tsx)
74
+ 10. [Loading](source/Loading.tsx)
75
+ 11. [Month Calendar](source/MonthCalendar.tsx)
76
+ 12. [Nameplate](source/Nameplate.tsx)
77
+ 13. [Overlay Box](source/OverlayBox.tsx)
78
+ 14. [Page Nav](source/PageNav.tsx)
79
+ 15. [Scroll Nav](source/ScrollNav/)
80
+ 16. [Select](source/Select.tsx)
81
+ 17. [Share Box](source/ShareBox.tsx)
82
+ 18. [Spinner Button](source/SpinnerButton.tsx)
83
+ 19. [Table Spinner](source/TableSpinner.tsx)
43
84
  20. [Text Truncate](source/TextTruncate/)
44
- 21. [Type Echo](source/TypeEcho/)
45
- 22. [Horizontal Marquee](source/HorizontalMarquee/)
46
- 23. [Vertical Marquee](source/VerticalMarquee/)
47
- 24. [Click Boundary](source/ClickBoundary.tsx)
48
- 25. [Spinner Button](source/SpinnerButton.tsx)
49
- 26. [Select](source/Select.tsx)
50
- 27. [Month Calendar](source/MonthCalendar.tsx)
51
- 28. [Code Block](source/CodeBlock.tsx)
52
- 29. [Live TSX](source/LiveTSX.tsx)
53
- 30. [Scroll Nav](source/ScrollNav/)
54
- 31. [Page Nav](source/PageNav.tsx)
55
- 32. [Editor](source/Editor.tsx)
56
- 33. [Editor HTML](source/EditorHTML.tsx)
57
- 34. [Table Spinner](source/TableSpinner.tsx)
58
- 35. [Loading](source/Loading.tsx)
59
- 36. [Share Box](source/ShareBox.tsx)
60
- 37. [Overlay Box](source/OverlayBox.tsx)
61
- 38. [Dialog](source/Dialog.tsx)
62
- 39. [Toast](source/Toast.tsx)
63
- 40. [User Rank](source/UserRank/)
64
- 41. [Zodiac Bar](source/ZodiacBar.tsx)
65
-
66
- #### Data components
85
+ 21. [Time](source/Time.tsx)
86
+ 22. [Time Distance](source/TimeDistance.tsx)
87
+ 23. [Timeline](source/Timeline/)
88
+ 24. [Type Echo](source/TypeEcho/)
89
+ 25. [User Rank](source/UserRank/)
90
+ 26. [Vertical Marquee](source/VerticalMarquee/)
91
+ 27. [Zodiac Bar](source/ZodiacBar.tsx)
92
+
93
+ ### Data components
67
94
 
68
95
  Table, List & Form components around Data models, have been migrated to https://github.com/idea2app/MobX-RESTful-table, since Idea-React v1.0.0.
69
96
 
70
- #### Map components
97
+ ### Map components
71
98
 
72
99
  Open Map component & model, have been migrated to https://github.com/idea2app/OpenReactMap, since Idea-React v1.0.0.
73
100
 
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { ButtonHTMLAttributes, Component, ComponentPropsWithRef, DetailedHTMLProps, DialogHTMLAttributes, FC, FocusEvent, HTMLAttributes, InputHTMLAttributes, KeyboardEvent, MouseEvent as MouseEvent$1, PropsWithChildren, PropsWithRef, PropsWithoutRef, PureComponent, ReactElement, ReactNode, RefCallback, SyntheticEvent, TimeHTMLAttributes } from "react";
1
+ import { ButtonHTMLAttributes, Component, ComponentPropsWithRef, ComponentPropsWithoutRef, DetailedHTMLProps, DialogHTMLAttributes, FC, FocusEvent, HTMLAttributes, InputHTMLAttributes, KeyboardEvent, MouseEvent as MouseEvent$1, PropsWithChildren, PropsWithRef, PropsWithoutRef, PureComponent, ReactElement, ReactNode, RefCallback, SyntheticEvent, TimeHTMLAttributes } from "react";
2
2
  import { ObservedComponent } from "mobx-react-helper";
3
3
  import { TimeData, Timestamp } from "web-utility";
4
4
  import { Defer } from "iterable-observer";
@@ -63,6 +63,8 @@ export interface ButtonGroupProps extends ComponentPropsWithRef<'div'> {
63
63
  export declare const ButtonGroup: FC<ButtonGroupProps>;
64
64
  export declare const ButtonToolbar: FC<ComponentPropsWithRef<'div'>>;
65
65
  export declare const Card: FC<ComponentPropsWithRef<'div'>>;
66
+ export declare const CardGroup: FC<ComponentPropsWithRef<'div'>>;
67
+ export declare const CardImageOverlay: FC<ComponentPropsWithRef<'div'>>;
66
68
  export declare const CardHeader: FC<ComponentPropsWithRef<'div'>>;
67
69
  export declare const CardBody: FC<ComponentPropsWithRef<'div'>>;
68
70
  export declare const CardFooter: FC<ComponentPropsWithRef<'div'>>;
@@ -188,6 +190,149 @@ export interface EditorHTMLProps extends HTMLAttributes<HTMLDivElement> {
188
190
  data: OutputData;
189
191
  }
190
192
  export declare const EditorHTML: FC<EditorHTMLProps>;
193
+ export type FormAdornmentProps = Omit<ComponentPropsWithRef<'label'>, 'htmlFor'> & {
194
+ end?: boolean;
195
+ size?: 'sm' | 'lg';
196
+ htmlFor?: string;
197
+ };
198
+ export declare const FormAdornment: FC<FormAdornmentProps>;
199
+ export type FormAdornmentTextProps = ComponentPropsWithRef<'span'>;
200
+ export declare const FormAdornmentText: FC<FormAdornmentTextProps>;
201
+ export type FormGhostProps = ComponentPropsWithRef<'input'>;
202
+ export declare const FormGhost: FC<FormGhostProps>;
203
+ export type CheckboxProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'size'> & {
204
+ size?: 'sm' | 'lg';
205
+ theme?: ComponentTheme;
206
+ indeterminate?: boolean;
207
+ };
208
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "type"> & {
209
+ size?: "sm" | "lg";
210
+ theme?: ComponentTheme;
211
+ indeterminate?: boolean;
212
+ } & import("react").RefAttributes<HTMLInputElement>>;
213
+ export type ChipProps = ComponentPropsWithRef<'button'> & {
214
+ active?: boolean;
215
+ theme?: ComponentTheme;
216
+ };
217
+ export declare const Chip: FC<ChipProps>;
218
+ export type ChipInputProps = ComponentPropsWithRef<'div'> & {
219
+ theme?: ComponentTheme;
220
+ separator?: string;
221
+ allowDuplicates?: boolean;
222
+ maxChips?: number;
223
+ createOnBlur?: boolean;
224
+ };
225
+ export declare const ChipInput: FC<ChipInputProps>;
226
+ export interface ComboboxOptionProps extends ComponentPropsWithRef<'button'> {
227
+ value: string;
228
+ }
229
+ export declare const ComboboxOption: FC<ComboboxOptionProps>;
230
+ export interface ComboboxProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'> {
231
+ name: string;
232
+ value: string | string[];
233
+ placeholder?: string;
234
+ multiple?: boolean;
235
+ menuClassName?: string;
236
+ disabled?: boolean;
237
+ onChange?: (value: string | string[]) => unknown;
238
+ }
239
+ export declare const Combobox: FC<ComboboxProps>;
240
+ export type FormControlProps = ComponentPropsWithRef<'input'> & {
241
+ plaintext?: boolean;
242
+ ghost?: boolean;
243
+ caret?: boolean;
244
+ color?: boolean;
245
+ controlSize?: 'sm' | 'lg';
246
+ };
247
+ export declare const FormControl: FC<FormControlProps>;
248
+ export type FormTextAreaProps = ComponentPropsWithRef<'textarea'>;
249
+ export declare const FormTextArea: FC<FormTextAreaProps>;
250
+ export type FormSelectProps = ComponentPropsWithRef<'select'> & {
251
+ controlSize?: 'sm' | 'lg';
252
+ };
253
+ export declare const FormSelect: FC<FormSelectProps>;
254
+ export type DatePickerProps = Omit<ComponentPropsWithoutRef<'input'>, 'type'> & {
255
+ enhanced?: boolean;
256
+ inline?: boolean;
257
+ selectionMode?: 'single' | 'multiple' | 'multiple-ranged';
258
+ };
259
+ export declare const DatePicker: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & {
260
+ enhanced?: boolean;
261
+ inline?: boolean;
262
+ selectionMode?: "single" | "multiple" | "multiple-ranged";
263
+ } & import("react").RefAttributes<HTMLInputElement>>;
264
+ export type FormTextProps = ComponentPropsWithRef<'small'>;
265
+ export declare const FormText: FC<FormTextProps>;
266
+ export type FormFeedbackProps = Omit<ComponentPropsWithRef<'div'>, 'type'> & {
267
+ type?: 'valid' | 'invalid';
268
+ tooltip?: boolean;
269
+ };
270
+ export declare const FormFeedback: FC<FormFeedbackProps>;
271
+ export type FormFloatingLabelProps = ComponentPropsWithRef<'div'> & {
272
+ always?: boolean;
273
+ };
274
+ export declare const FormFloatingLabel: FC<FormFloatingLabelProps>;
275
+ export type InputGroupProps = ComponentPropsWithRef<'div'> & {
276
+ size?: 'sm' | 'lg';
277
+ };
278
+ export declare const InputGroup: FC<InputGroupProps>;
279
+ export type InputGroupTextProps = ComponentPropsWithRef<'span'>;
280
+ export declare const InputGroupText: FC<InputGroupTextProps>;
281
+ export type OTPInputProps = Omit<ComponentPropsWithRef<'input'>, 'type' | 'maxLength'> & {
282
+ length: number;
283
+ type?: 'numeric' | 'alphanumeric' | 'alpha';
284
+ mask?: boolean;
285
+ groups?: number[];
286
+ separator?: string;
287
+ connected?: boolean;
288
+ size?: 'sm' | 'lg';
289
+ };
290
+ export declare const OTPInput: FC<OTPInputProps>;
291
+ export type PasswordStrengthLevel = 'weak' | 'fair' | 'good' | 'strong';
292
+ export interface PasswordStrengthProps extends ComponentPropsWithoutRef<'div'> {
293
+ input?: string | HTMLInputElement | null;
294
+ variant?: 'segments' | 'bar';
295
+ minLength?: number;
296
+ messages?: Partial<Record<PasswordStrengthLevel, string>>;
297
+ weights?: Record<string, number>;
298
+ thresholds?: number[];
299
+ scorer?: (password: string) => number;
300
+ }
301
+ export declare const PasswordStrength: import("react").ForwardRefExoticComponent<PasswordStrengthProps & import("react").RefAttributes<HTMLDivElement>>;
302
+ export type FormProps = ComponentPropsWithRef<'form'>;
303
+ export declare const Form: FC<FormProps>;
304
+ export type FormFieldsetProps = ComponentPropsWithRef<'fieldset'>;
305
+ export declare const FormFieldset: FC<FormFieldsetProps>;
306
+ export type FormFieldProps = ComponentPropsWithRef<'div'>;
307
+ export declare const FormField: FC<FormFieldProps>;
308
+ export type FormGroupProps = ComponentPropsWithRef<'div'>;
309
+ export declare const FormGroup: FC<FormGroupProps>;
310
+ export type FormFieldContentProps = ComponentPropsWithRef<'div'>;
311
+ export declare const FormFieldContent: FC<FormFieldContentProps>;
312
+ export type FormLabelProps = ComponentPropsWithRef<'label'>;
313
+ export declare const FormLabel: FC<FormLabelProps>;
314
+ export type RadioProps = Omit<ComponentPropsWithRef<'input'>, 'type' | 'size'> & {
315
+ size?: 'sm' | 'lg';
316
+ theme?: ComponentTheme;
317
+ };
318
+ export declare const Radio: FC<RadioProps>;
319
+ export type FormCheckProps = Omit<ComponentPropsWithRef<'input'>, 'type' | 'size'> & {
320
+ type?: 'checkbox' | 'radio';
321
+ size?: 'sm' | 'lg';
322
+ theme?: ComponentTheme;
323
+ };
324
+ export declare const FormCheck: FC<FormCheckProps>;
325
+ export type FormRangeProps = Omit<ComponentPropsWithRef<'input'>, 'type'> & {
326
+ bubble?: boolean;
327
+ theme?: ComponentTheme;
328
+ };
329
+ export declare const FormRange: FC<FormRangeProps>;
330
+ export type FormSwitchProps = Omit<ComponentPropsWithRef<'label'>, 'children'> & PropsWithChildren<{
331
+ inputProps?: Omit<ComponentPropsWithRef<'input'>, 'type'>;
332
+ size?: 'sm' | 'lg';
333
+ theme?: ComponentTheme;
334
+ }>;
335
+ export declare const FormSwitch: FC<FormSwitchProps>;
191
336
  export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
192
337
  export type ColSize = number | 'auto';
193
338
  export type BreakpointColSize = ColSize | true;
@@ -354,7 +499,12 @@ export interface NavbarProps extends ComponentPropsWithRef<'nav'> {
354
499
  expand?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
355
500
  }
356
501
  export declare const Navbar: FC<NavbarProps>;
357
- export declare const NavbarBrand: FC<ComponentPropsWithRef<'a'>>;
502
+ export type NavbarBrandProps = (ComponentPropsWithRef<'a'> & {
503
+ as?: 'a';
504
+ }) | (ComponentPropsWithRef<'span'> & {
505
+ as: 'span';
506
+ });
507
+ export declare const NavbarBrand: FC<NavbarBrandProps>;
358
508
  export declare const NavbarNav: FC<ComponentPropsWithRef<'ul'>>;
359
509
  export declare const NavbarText: FC<ComponentPropsWithRef<'span'>>;
360
510
  export interface NavbarTogglerProps extends Omit<ComponentPropsWithRef<'button'>, 'children' | 'type'> {
@@ -533,7 +683,7 @@ interface ToastEntry extends ToastMessage {
533
683
  resolve?: (value: ToastEntry) => void;
534
684
  }
535
685
  export interface ToastContainerProps extends ComponentPropsWithRef<'div'> {
536
- position?: ToastPosition;
686
+ position?: ToastPosition | 'static';
537
687
  }
538
688
  export declare const ToastContainer: FC<ToastContainerProps>;
539
689
  export interface ToastItemProps extends ComponentPropsWithRef<'div'> {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ButtonHTMLAttributes, Component, ComponentPropsWithRef, DetailedHTMLProps, DialogHTMLAttributes, FC, FocusEvent, HTMLAttributes, InputHTMLAttributes, KeyboardEvent, MouseEvent as MouseEvent$1, PropsWithChildren, PropsWithRef, PropsWithoutRef, PureComponent, ReactElement, ReactNode, RefCallback, SyntheticEvent, TimeHTMLAttributes } from "react";
1
+ import { ButtonHTMLAttributes, Component, ComponentPropsWithRef, ComponentPropsWithoutRef, DetailedHTMLProps, DialogHTMLAttributes, FC, FocusEvent, HTMLAttributes, InputHTMLAttributes, KeyboardEvent, MouseEvent as MouseEvent$1, PropsWithChildren, PropsWithRef, PropsWithoutRef, PureComponent, ReactElement, ReactNode, RefCallback, SyntheticEvent, TimeHTMLAttributes } from "react";
2
2
  import { ObservedComponent } from "mobx-react-helper";
3
3
  import { TimeData, Timestamp } from "web-utility";
4
4
  import { Defer } from "iterable-observer";
@@ -63,6 +63,8 @@ export interface ButtonGroupProps extends ComponentPropsWithRef<'div'> {
63
63
  export declare const ButtonGroup: FC<ButtonGroupProps>;
64
64
  export declare const ButtonToolbar: FC<ComponentPropsWithRef<'div'>>;
65
65
  export declare const Card: FC<ComponentPropsWithRef<'div'>>;
66
+ export declare const CardGroup: FC<ComponentPropsWithRef<'div'>>;
67
+ export declare const CardImageOverlay: FC<ComponentPropsWithRef<'div'>>;
66
68
  export declare const CardHeader: FC<ComponentPropsWithRef<'div'>>;
67
69
  export declare const CardBody: FC<ComponentPropsWithRef<'div'>>;
68
70
  export declare const CardFooter: FC<ComponentPropsWithRef<'div'>>;
@@ -188,6 +190,149 @@ export interface EditorHTMLProps extends HTMLAttributes<HTMLDivElement> {
188
190
  data: OutputData;
189
191
  }
190
192
  export declare const EditorHTML: FC<EditorHTMLProps>;
193
+ export type FormAdornmentProps = Omit<ComponentPropsWithRef<'label'>, 'htmlFor'> & {
194
+ end?: boolean;
195
+ size?: 'sm' | 'lg';
196
+ htmlFor?: string;
197
+ };
198
+ export declare const FormAdornment: FC<FormAdornmentProps>;
199
+ export type FormAdornmentTextProps = ComponentPropsWithRef<'span'>;
200
+ export declare const FormAdornmentText: FC<FormAdornmentTextProps>;
201
+ export type FormGhostProps = ComponentPropsWithRef<'input'>;
202
+ export declare const FormGhost: FC<FormGhostProps>;
203
+ export type CheckboxProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'size'> & {
204
+ size?: 'sm' | 'lg';
205
+ theme?: ComponentTheme;
206
+ indeterminate?: boolean;
207
+ };
208
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "type"> & {
209
+ size?: "sm" | "lg";
210
+ theme?: ComponentTheme;
211
+ indeterminate?: boolean;
212
+ } & import("react").RefAttributes<HTMLInputElement>>;
213
+ export type ChipProps = ComponentPropsWithRef<'button'> & {
214
+ active?: boolean;
215
+ theme?: ComponentTheme;
216
+ };
217
+ export declare const Chip: FC<ChipProps>;
218
+ export type ChipInputProps = ComponentPropsWithRef<'div'> & {
219
+ theme?: ComponentTheme;
220
+ separator?: string;
221
+ allowDuplicates?: boolean;
222
+ maxChips?: number;
223
+ createOnBlur?: boolean;
224
+ };
225
+ export declare const ChipInput: FC<ChipInputProps>;
226
+ export interface ComboboxOptionProps extends ComponentPropsWithRef<'button'> {
227
+ value: string;
228
+ }
229
+ export declare const ComboboxOption: FC<ComboboxOptionProps>;
230
+ export interface ComboboxProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'> {
231
+ name: string;
232
+ value: string | string[];
233
+ placeholder?: string;
234
+ multiple?: boolean;
235
+ menuClassName?: string;
236
+ disabled?: boolean;
237
+ onChange?: (value: string | string[]) => unknown;
238
+ }
239
+ export declare const Combobox: FC<ComboboxProps>;
240
+ export type FormControlProps = ComponentPropsWithRef<'input'> & {
241
+ plaintext?: boolean;
242
+ ghost?: boolean;
243
+ caret?: boolean;
244
+ color?: boolean;
245
+ controlSize?: 'sm' | 'lg';
246
+ };
247
+ export declare const FormControl: FC<FormControlProps>;
248
+ export type FormTextAreaProps = ComponentPropsWithRef<'textarea'>;
249
+ export declare const FormTextArea: FC<FormTextAreaProps>;
250
+ export type FormSelectProps = ComponentPropsWithRef<'select'> & {
251
+ controlSize?: 'sm' | 'lg';
252
+ };
253
+ export declare const FormSelect: FC<FormSelectProps>;
254
+ export type DatePickerProps = Omit<ComponentPropsWithoutRef<'input'>, 'type'> & {
255
+ enhanced?: boolean;
256
+ inline?: boolean;
257
+ selectionMode?: 'single' | 'multiple' | 'multiple-ranged';
258
+ };
259
+ export declare const DatePicker: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & {
260
+ enhanced?: boolean;
261
+ inline?: boolean;
262
+ selectionMode?: "single" | "multiple" | "multiple-ranged";
263
+ } & import("react").RefAttributes<HTMLInputElement>>;
264
+ export type FormTextProps = ComponentPropsWithRef<'small'>;
265
+ export declare const FormText: FC<FormTextProps>;
266
+ export type FormFeedbackProps = Omit<ComponentPropsWithRef<'div'>, 'type'> & {
267
+ type?: 'valid' | 'invalid';
268
+ tooltip?: boolean;
269
+ };
270
+ export declare const FormFeedback: FC<FormFeedbackProps>;
271
+ export type FormFloatingLabelProps = ComponentPropsWithRef<'div'> & {
272
+ always?: boolean;
273
+ };
274
+ export declare const FormFloatingLabel: FC<FormFloatingLabelProps>;
275
+ export type InputGroupProps = ComponentPropsWithRef<'div'> & {
276
+ size?: 'sm' | 'lg';
277
+ };
278
+ export declare const InputGroup: FC<InputGroupProps>;
279
+ export type InputGroupTextProps = ComponentPropsWithRef<'span'>;
280
+ export declare const InputGroupText: FC<InputGroupTextProps>;
281
+ export type OTPInputProps = Omit<ComponentPropsWithRef<'input'>, 'type' | 'maxLength'> & {
282
+ length: number;
283
+ type?: 'numeric' | 'alphanumeric' | 'alpha';
284
+ mask?: boolean;
285
+ groups?: number[];
286
+ separator?: string;
287
+ connected?: boolean;
288
+ size?: 'sm' | 'lg';
289
+ };
290
+ export declare const OTPInput: FC<OTPInputProps>;
291
+ export type PasswordStrengthLevel = 'weak' | 'fair' | 'good' | 'strong';
292
+ export interface PasswordStrengthProps extends ComponentPropsWithoutRef<'div'> {
293
+ input?: string | HTMLInputElement | null;
294
+ variant?: 'segments' | 'bar';
295
+ minLength?: number;
296
+ messages?: Partial<Record<PasswordStrengthLevel, string>>;
297
+ weights?: Record<string, number>;
298
+ thresholds?: number[];
299
+ scorer?: (password: string) => number;
300
+ }
301
+ export declare const PasswordStrength: import("react").ForwardRefExoticComponent<PasswordStrengthProps & import("react").RefAttributes<HTMLDivElement>>;
302
+ export type FormProps = ComponentPropsWithRef<'form'>;
303
+ export declare const Form: FC<FormProps>;
304
+ export type FormFieldsetProps = ComponentPropsWithRef<'fieldset'>;
305
+ export declare const FormFieldset: FC<FormFieldsetProps>;
306
+ export type FormFieldProps = ComponentPropsWithRef<'div'>;
307
+ export declare const FormField: FC<FormFieldProps>;
308
+ export type FormGroupProps = ComponentPropsWithRef<'div'>;
309
+ export declare const FormGroup: FC<FormGroupProps>;
310
+ export type FormFieldContentProps = ComponentPropsWithRef<'div'>;
311
+ export declare const FormFieldContent: FC<FormFieldContentProps>;
312
+ export type FormLabelProps = ComponentPropsWithRef<'label'>;
313
+ export declare const FormLabel: FC<FormLabelProps>;
314
+ export type RadioProps = Omit<ComponentPropsWithRef<'input'>, 'type' | 'size'> & {
315
+ size?: 'sm' | 'lg';
316
+ theme?: ComponentTheme;
317
+ };
318
+ export declare const Radio: FC<RadioProps>;
319
+ export type FormCheckProps = Omit<ComponentPropsWithRef<'input'>, 'type' | 'size'> & {
320
+ type?: 'checkbox' | 'radio';
321
+ size?: 'sm' | 'lg';
322
+ theme?: ComponentTheme;
323
+ };
324
+ export declare const FormCheck: FC<FormCheckProps>;
325
+ export type FormRangeProps = Omit<ComponentPropsWithRef<'input'>, 'type'> & {
326
+ bubble?: boolean;
327
+ theme?: ComponentTheme;
328
+ };
329
+ export declare const FormRange: FC<FormRangeProps>;
330
+ export type FormSwitchProps = Omit<ComponentPropsWithRef<'label'>, 'children'> & PropsWithChildren<{
331
+ inputProps?: Omit<ComponentPropsWithRef<'input'>, 'type'>;
332
+ size?: 'sm' | 'lg';
333
+ theme?: ComponentTheme;
334
+ }>;
335
+ export declare const FormSwitch: FC<FormSwitchProps>;
191
336
  export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
192
337
  export type ColSize = number | 'auto';
193
338
  export type BreakpointColSize = ColSize | true;
@@ -354,7 +499,12 @@ export interface NavbarProps extends ComponentPropsWithRef<'nav'> {
354
499
  expand?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
355
500
  }
356
501
  export declare const Navbar: FC<NavbarProps>;
357
- export declare const NavbarBrand: FC<ComponentPropsWithRef<'a'>>;
502
+ export type NavbarBrandProps = (ComponentPropsWithRef<'a'> & {
503
+ as?: 'a';
504
+ }) | (ComponentPropsWithRef<'span'> & {
505
+ as: 'span';
506
+ });
507
+ export declare const NavbarBrand: FC<NavbarBrandProps>;
358
508
  export declare const NavbarNav: FC<ComponentPropsWithRef<'ul'>>;
359
509
  export declare const NavbarText: FC<ComponentPropsWithRef<'span'>>;
360
510
  export interface NavbarTogglerProps extends Omit<ComponentPropsWithRef<'button'>, 'children' | 'type'> {
@@ -533,7 +683,7 @@ interface ToastEntry extends ToastMessage {
533
683
  resolve?: (value: ToastEntry) => void;
534
684
  }
535
685
  export interface ToastContainerProps extends ComponentPropsWithRef<'div'> {
536
- position?: ToastPosition;
686
+ position?: ToastPosition | 'static';
537
687
  }
538
688
  export declare const ToastContainer: FC<ToastContainerProps>;
539
689
  export interface ToastItemProps extends ComponentPropsWithRef<'div'> {