mado-ui 0.5.5 → 0.5.7

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.
Files changed (60) hide show
  1. package/css/index.css +100 -13
  2. package/dist/components/drop-down.d.ts +12 -12
  3. package/dist/components/drop-down.d.ts.map +1 -1
  4. package/dist/components/form/human-verification.d.ts +15 -0
  5. package/dist/components/form/human-verification.d.ts.map +1 -0
  6. package/dist/components/form/index.d.ts +0 -1
  7. package/dist/components/form/index.d.ts.map +1 -1
  8. package/dist/components/form/input/date/index.d.ts +16 -36
  9. package/dist/components/form/input/date/index.d.ts.map +1 -1
  10. package/dist/components/form/input/index.d.ts +91 -8
  11. package/dist/components/form/input/index.d.ts.map +1 -1
  12. package/dist/components/link.d.ts +14 -13
  13. package/dist/components/link.d.ts.map +1 -1
  14. package/dist/components/tooltip.d.ts +7 -7
  15. package/dist/components/tooltip.d.ts.map +1 -1
  16. package/dist/components/video.d.ts +6 -6
  17. package/dist/components/video.d.ts.map +1 -1
  18. package/dist/components.d.ts +96 -194
  19. package/dist/components.esm.js +624 -782
  20. package/dist/components.esm.js.map +1 -1
  21. package/dist/components.js +621 -779
  22. package/dist/components.js.map +1 -1
  23. package/dist/graphics.esm.js +2 -2
  24. package/dist/graphics.esm.js.map +1 -1
  25. package/dist/graphics.js +2 -2
  26. package/dist/graphics.js.map +1 -1
  27. package/dist/hooks/use-fieldset-context.d.ts.map +1 -1
  28. package/dist/hooks/use-form-context.d.ts +5 -5
  29. package/dist/hooks/use-form-context.d.ts.map +1 -1
  30. package/dist/hooks.d.ts +5 -5
  31. package/dist/hooks.esm.js.map +1 -1
  32. package/dist/hooks.js.map +1 -1
  33. package/dist/icons/index.d.ts +142 -143
  34. package/dist/icons/index.d.ts.map +1 -1
  35. package/dist/icons/square-and-arrow-up-right.d.ts +3 -0
  36. package/dist/icons/square-and-arrow-up-right.d.ts.map +1 -0
  37. package/dist/icons/square-and-pencil.d.ts +2 -2
  38. package/dist/icons/square-and-pencil.d.ts.map +1 -1
  39. package/dist/icons.d.ts +2 -4
  40. package/dist/icons.esm.js +2 -6
  41. package/dist/icons.esm.js.map +1 -1
  42. package/dist/icons.js +1 -6
  43. package/dist/icons.js.map +1 -1
  44. package/dist/index.d.ts +96 -194
  45. package/dist/index.esm.js +624 -782
  46. package/dist/index.esm.js.map +1 -1
  47. package/dist/index.js +621 -779
  48. package/dist/index.js.map +1 -1
  49. package/dist/utils/get-date.d.ts +20 -32
  50. package/dist/utils/get-date.d.ts.map +1 -1
  51. package/dist/utils.d.ts +22 -34
  52. package/dist/utils.esm.js +40 -1064
  53. package/dist/utils.esm.js.map +1 -1
  54. package/dist/utils.js +41 -1067
  55. package/dist/utils.js.map +1 -1
  56. package/package.json +88 -100
  57. package/dist/components/form/input/date/views/index.d.ts +0 -5
  58. package/dist/components/form/input/date/views/index.d.ts.map +0 -1
  59. package/dist/icons/square-and-pencil-fill.d.ts +0 -3
  60. package/dist/icons/square-and-pencil-fill.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { Url, UrlObject } from 'node:url';
3
- import { ElementType, ComponentPropsWithRef, ReactElement, ReactNode, RefObject, FormEvent, FormEventHandler, HTMLAttributes } from 'react';
4
- import { Button as Button$1, DisclosurePanelProps, DisclosureProps, DisclosureButtonProps, MenuButtonProps, MenuItemProps, MenuItemsProps, MenuProps, MenuSectionProps, MenuHeadingProps, MenuSeparatorProps, FieldsetProps as FieldsetProps$1, LegendProps, InputProps as InputProps$1, DescriptionProps, FieldProps, LabelProps, ListboxProps, ListboxSelectedOptionProps, TextareaProps as TextareaProps$1, DialogTitleProps } from '@headlessui/react';
3
+ import { ElementType, ComponentPropsWithRef, ReactElement, ReactNode, HTMLInputTypeAttribute, RefObject, FormEvent, FormEventHandler, HTMLAttributes } from 'react';
4
+ import { Button as Button$1, DisclosurePanelProps, DisclosureProps, DisclosureButtonProps, MenuButtonProps, MenuItemProps, MenuItemsProps, MenuProps, MenuSectionProps, MenuHeadingProps, MenuSeparatorProps, FieldsetProps as FieldsetProps$1, LegendProps, InputProps as InputProps$1, DescriptionProps, FieldProps, LabelProps, TextareaProps as TextareaProps$1, DialogTitleProps } from '@headlessui/react';
5
5
  import { Placement } from '@floating-ui/react-dom';
6
6
 
7
7
  type AnyElementProps<TTag extends ElementType, Props extends {
@@ -40,10 +40,10 @@ type OnlyFirst<F, L> = F & {
40
40
  [Key in keyof Omit<L, keyof F>]?: never;
41
41
  };
42
42
 
43
- type AnchorProps<TTag extends ElementType = 'a'> = AnyElementProps<TTag> & {
43
+ type AnchorProps<TTag extends ElementType = "a"> = AnyElementProps<TTag> & {
44
44
  disabled?: boolean;
45
45
  };
46
- declare function Anchor<TTag extends ElementType = 'a'>({ as, className, disabled, href, onClick, target, rel, ...props }: AnchorProps<TTag>): ReactElement;
46
+ declare function Anchor<TTag extends ElementType = "a">({ as, className, disabled, href, onClick, target, rel, ...props }: AnchorProps<TTag>): ReactElement;
47
47
  type ThemeColorOrClasses = OneOf<[
48
48
  {
49
49
  /**
@@ -59,12 +59,13 @@ type ThemeColorOrClasses = OneOf<[
59
59
  ]>;
60
60
  type LinkProps<TTag extends ElementType = typeof Anchor> = AnyElementProps<TTag, OneOf<[
61
61
  {
62
- type?: 'center' | 'lift' | 'ltr' | 'multiline' | 'multiline-center' | 'multiline-lift' | 'multiline-ltr' | 'multiline-rtl' | 'multiline-static' | 'normal' | 'rtl' | 'static';
62
+ type?: "center" | "lift" | "ltr" | "multiline" | "multiline-center" | "multiline-lift" | "multiline-ltr" | "multiline-rtl" | "multiline-static" | "normal" | "rtl" | "static";
63
63
  },
64
64
  {
65
- type?: 'fill' | 'fill-lift' | 'fill-ltr' | 'fill-rtl' | 'multiline-fill' | 'multiline-fill-center' | 'multiline-fill-ltr' | 'multiline-fill-lift' | 'multiline-fill-rtl';
65
+ type?: "fill" | "fill-lift" | "fill-ltr" | "fill-rtl" | "multiline-fill" | "multiline-fill-center" | "multiline-fill-ltr" | "multiline-fill-lift" | "multiline-fill-rtl";
66
66
  } & ColorTheme
67
67
  ]>>;
68
+ declare function getLinkClasses({ customTheme, theme, type }: Pick<LinkProps, "customTheme" | "theme" | "type">): string;
68
69
  /**
69
70
  * # Link
70
71
  *
@@ -101,14 +102,14 @@ type ExtendedLinkConfig = {
101
102
  /** Adds default classes. */
102
103
  className?: string;
103
104
  /** Sets the default theme. */
104
- defaultTheme?: ColorTheme['theme'] | string;
105
+ defaultTheme?: ColorTheme["theme"] | string;
105
106
  /** Sets the default for the `type` prop. */
106
- type?: LinkProps['type'];
107
+ type?: LinkProps["type"];
107
108
  /** Add more theme options. */
108
109
  theme?: {
109
110
  [themeName: string]: {
110
111
  /** Custom theme configuration - supports both multiline and regular link theme formats */
111
- customTheme: Omit<ThemeColorOrClasses, 'themeColor'> & {
112
+ customTheme: Omit<ThemeColorOrClasses, "themeColor"> & {
112
113
  themeColor?: {
113
114
  /** Example: `'after:[--theme-color:var(--color-blue-500)]'` */
114
115
  fill: string;
@@ -121,10 +122,10 @@ type ExtendedLinkConfig = {
121
122
  };
122
123
  };
123
124
  };
124
- type ExtendedThemeNames$1<T extends ExtendedLinkConfig> = T['theme'] extends Record<string, unknown> ? keyof T['theme'] : never;
125
- type ExtendedLinkProps<TExtendedConfig extends ExtendedLinkConfig, TTag extends ElementType = typeof Anchor> = Omit<LinkProps<TTag>, 'theme' | 'customTheme'> & {
126
- theme?: LinkProps<TTag>['theme'] | ExtendedThemeNames$1<TExtendedConfig>;
127
- customTheme?: LinkProps<TTag>['customTheme'];
125
+ type ExtendedThemeNames$1<T extends ExtendedLinkConfig> = T["theme"] extends Record<string, unknown> ? keyof T["theme"] : never;
126
+ type ExtendedLinkProps<TExtendedConfig extends ExtendedLinkConfig, TTag extends ElementType = typeof Anchor> = Omit<LinkProps<TTag>, "theme" | "customTheme"> & {
127
+ theme?: LinkProps<TTag>["theme"] | ExtendedThemeNames$1<TExtendedConfig>;
128
+ customTheme?: LinkProps<TTag>["customTheme"];
128
129
  };
129
130
  /**
130
131
  * # createLink
@@ -252,38 +253,40 @@ declare function DetailsSummary<TTag extends ElementType = typeof Button>({ arro
252
253
  declare function DetailsBody<TTag extends ElementType = 'div'>({ children, className, ...props }: DetailsBodyProps<TTag>): ReactElement;
253
254
  declare function Details<TTag extends ElementType = 'div'>({ as, className, ...props }: DetailsProps<TTag>): ReactElement;
254
255
 
255
- type DropDownButtonProps<TTag extends ElementType = 'button'> = Omit<MenuButtonProps<TTag>, 'as' | 'className'> & {
256
+ type DropDownButtonProps<TTag extends ElementType = "button"> = Omit<MenuButtonProps<TTag>, "as" | "className"> & {
256
257
  arrow?: boolean | ReactNode;
257
258
  as?: TTag | ElementType;
258
259
  className?: string;
259
260
  };
260
- type DropDownItemProps<TTag extends ElementType = 'div'> = Omit<MenuItemProps<TTag>, 'as'> & AnyElementProps<TTag>;
261
- type DropDownItemsProps = Omit<MenuItemsProps, 'className' | 'transition'> & {
261
+ type DropDownItemProps<TTag extends ElementType = "div"> = Omit<MenuItemProps<TTag>, "as"> & AnyElementProps<TTag>;
262
+ type DropDownItemsProps = Omit<MenuItemsProps, "className" | "transition"> & {
262
263
  className?: string;
263
264
  containerClassName?: string;
264
265
  };
265
266
  type DropDownProps = MenuProps;
266
267
  type DropDownSectionProps = MenuSectionProps & {
267
- label?: string;
268
- labelProps?: Omit<MenuHeadingProps, 'children'> & {
268
+ label?: ReactNode;
269
+ labelProps?: Omit<MenuHeadingProps, "children"> & {
269
270
  /** @deprecated Use `label` instead. */
270
271
  children?: never;
271
272
  };
272
273
  separatorAbove?: boolean;
273
274
  separatorBelow?: boolean;
274
275
  };
275
- type DropDownSeparatorProps<TTag extends ElementType = 'div'> = Omit<MenuSeparatorProps<TTag>, 'as'> & AnyElementProps<TTag>;
276
+ type DropDownSeparatorProps<TTag extends ElementType = "div"> = Omit<MenuSeparatorProps<TTag>, "as"> & AnyElementProps<TTag>;
276
277
 
277
- declare function DropDownButton<TTag extends ElementType = 'button'>({ arrow, as, children, className, ...props }: DropDownButtonProps<TTag>): ReactElement;
278
- declare function DropDownItem<TTag extends ElementType = 'div'>({ as, ...props }: DropDownItemProps<TTag>): ReactElement;
278
+ declare function DropDownButton<TTag extends ElementType = "button">({ arrow, as, children, className, ...props }: DropDownButtonProps<TTag>): ReactElement;
279
+ declare function DropDownItem<TTag extends ElementType = "div">({ as, ...props }: DropDownItemProps<TTag>): ReactElement;
279
280
  declare function DropDownItems({ anchor, children, className, containerClassName, style, ...props }: DropDownItemsProps): ReactElement;
280
281
  declare function DropDownSection({ children, label, labelProps, separatorAbove, separatorBelow, ...props }: DropDownSectionProps): ReactElement;
281
- declare function DropDownSeparator<TTag extends ElementType = 'div'>({ as, className, ...props }: DropDownSeparatorProps<TTag>): ReactElement;
282
+ declare function DropDownSeparator<TTag extends ElementType = "div">({ as, className, ...props }: DropDownSeparatorProps<TTag>): ReactElement;
282
283
  declare function DropDown(props: DropDownProps): ReactElement;
283
284
 
284
285
  type StringField = {
285
286
  type: 'email' | 'file' | 'number' | 'string' | 'tel' | 'textarea' | 'url';
286
287
  value: string;
288
+ required?: boolean;
289
+ invalid?: boolean;
287
290
  };
288
291
  type ObjectField = {
289
292
  type: 'object';
@@ -291,14 +294,12 @@ type ObjectField = {
291
294
  };
292
295
  type ArrayField = {
293
296
  type: 'array';
294
- of: ArrayObjectOrNormalField[];
297
+ of: ArrayObjectOrNormalField;
295
298
  };
296
299
  type ArrayObjectOrNormalField = StringField | ArrayField | ObjectField;
297
- type Field<T extends StringField | ArrayField | ObjectField = ArrayObjectOrNormalField> = T & {
300
+ type Field = ArrayObjectOrNormalField & {
298
301
  id: string;
299
302
  name: string;
300
- required?: boolean;
301
- invalid?: boolean;
302
303
  };
303
304
  type FormContext = Field[];
304
305
 
@@ -356,38 +357,70 @@ type MonthNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
356
357
  type SecondNumber = MinuteNumber;
357
358
  type WeekNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53;
358
359
 
359
- type DateMinMax = Date | [number, DateTimeObject['month'], DateTimeObject['day']] | Pick<DateTimeObject, 'day' | 'month' | 'year'>;
360
- type DateOrTimeSelectorType = 'dropdown' | 'rotary';
361
- type DateSelectorType = DateOrTimeSelectorType | 'calendar';
360
+ type DateMinMax = Date | [number, DateTimeObject["month"], DateTimeObject["day"]] | Pick<DateTimeObject, "day" | "month" | "year">;
362
361
  type DateTimeMinMax = Date | [
363
362
  number,
364
- DateTimeObject['month'],
365
- DateTimeObject['day'],
366
- DateTimeObject['hour'],
367
- DateTimeObject['minute'],
368
- DateTimeObject['second']
363
+ DateTimeObject["month"],
364
+ DateTimeObject["day"],
365
+ DateTimeObject["hour"],
366
+ DateTimeObject["minute"],
367
+ DateTimeObject["second"]
369
368
  ] | DateTimeObject;
370
- type DateTimeUIOption = {
371
- date: DateSelectorType | DateSelectorType[] | {
372
- desktop: DateSelectorType | DateSelectorType[];
373
- mobile: DateSelectorType | DateSelectorType[];
369
+ type TimeMinMax = [DateTimeObject["hour"], DateTimeObject["minute"], DateTimeObject["second"]] | Pick<DateTimeObject, "hour" | "minute" | "second">;
370
+ type WeekMinMax = [number, WeekNumber];
371
+ type InputType = OneOf<[
372
+ {
373
+ type?: "date";
374
+ min?: DateMinMax;
375
+ max?: DateMinMax;
376
+ },
377
+ {
378
+ type?: "datetime" | "datetime-local";
379
+ min?: DateTimeMinMax;
380
+ max?: DateTimeMinMax;
381
+ },
382
+ {
383
+ type?: "number";
384
+ max?: number;
385
+ min?: number;
386
+ },
387
+ {
388
+ type?: "password";
389
+ options?: Partial<PasswordOptions>;
390
+ },
391
+ {
392
+ type?: "tel";
393
+ options?: Partial<PhoneOptions>;
394
+ },
395
+ {
396
+ type?: "time";
397
+ min?: TimeMinMax;
398
+ max?: TimeMinMax;
399
+ },
400
+ {
401
+ type?: "week";
402
+ min?: WeekMinMax;
403
+ max?: WeekMinMax;
404
+ },
405
+ {
406
+ type?: Exclude<HTMLInputTypeAttribute, "date" | "datetime" | "datetime-local" | "number" | "password" | "tel" | "time" | "week">;
407
+ }
408
+ ]>;
409
+ type InputProps = Omit<InputProps$1, "max" | "min" | "name" | "type"> & InputType & {
410
+ description?: ReactNode;
411
+ descriptionProps?: Omit<DescriptionProps, "children"> & {
412
+ /** @deprecated Use the `description` prop instead. */
413
+ children?: never;
374
414
  };
375
- time: TimeSelectorType | TimeSelectorType[] | {
376
- desktop: TimeSelectorType | TimeSelectorType[];
377
- mobile: TimeSelectorType | TimeSelectorType[];
415
+ fieldProps?: Omit<FieldProps, "children" | "disabled">;
416
+ label?: ReactNode;
417
+ labelProps?: Omit<LabelProps, "children"> & {
418
+ /** @deprecated Use the `label` prop instead. */
419
+ children?: never;
378
420
  };
421
+ name: string;
422
+ ref?: RefObject<HTMLInputElement | null>;
379
423
  };
380
- type DateUIOption = DateSelectorType | DateSelectorType[] | {
381
- desktop: DateSelectorType | DateSelectorType[];
382
- mobile: DateSelectorType | DateSelectorType[];
383
- };
384
- type TimeMinMax = Date | [DateTimeObject['hour'], DateTimeObject['minute'], DateTimeObject['second']] | Pick<DateTimeObject, 'hour' | 'minute' | 'second'>;
385
- type TimeSelectorType = DateOrTimeSelectorType | 'clock';
386
- type TimeUIOption = TimeSelectorType | TimeSelectorType[] | {
387
- desktop: TimeSelectorType | TimeSelectorType[];
388
- mobile: TimeSelectorType | TimeSelectorType[];
389
- };
390
-
391
424
  type PasswordOptions = {
392
425
  matchPreviousInput: boolean;
393
426
  requireLowercaseCharacter: boolean;
@@ -418,141 +451,10 @@ type PhoneOptions = {
418
451
  * format: 'standard' (default)
419
452
  * returns: (555) 555-5555
420
453
  */
421
- format: 'continuous' | 'dot' | 'hyphenated' | 'none' | 'space' | 'standard';
422
- };
423
-
424
- type InputType = 'button' | 'checkbox' | 'color' | 'date' | 'datetime' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'list' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | 'year';
425
- type DateTimeTypeProps = {
426
- type: 'datetime' | 'datetime-local';
427
- min?: DateTimeMinMax;
428
- max?: DateTimeMinMax;
429
- options?: Partial<{
430
- ui: DateTimeUIOption;
431
- }>;
432
- };
433
- type DateTypeProps = {
434
- type: 'date';
435
- min?: DateMinMax;
436
- max?: DateMinMax;
437
- options?: Partial<{
438
- ui: DateUIOption;
439
- }>;
440
- };
441
- type MonthTypeProps = {
442
- type: 'month';
443
- min?: MonthNumber;
444
- max?: MonthNumber;
445
- options?: Partial<{
446
- ui: DateUIOption;
447
- }>;
448
- };
449
- type NumberTypeProps = {
450
- type: 'number';
451
- max?: number;
452
- min?: number;
453
- };
454
- type PasswordTypeProps = {
455
- type: 'password';
456
- options?: Partial<PasswordOptions>;
457
- };
458
- type PhoneTypeProps = {
459
- type: 'tel';
460
- options?: Partial<PhoneOptions>;
461
- };
462
- type TimeTypeProps = {
463
- type: 'time';
464
- min?: TimeMinMax;
465
- max?: TimeMinMax;
466
- options?: {
467
- ui: TimeUIOption;
468
- };
469
- };
470
- type WeekTypeProps = {
471
- type: 'week';
472
- min?: WeekNumber;
473
- max?: WeekNumber;
474
- options?: {
475
- ui: DateUIOption;
476
- };
477
- };
478
- type YearTypeProps = {
479
- type: 'year';
480
- min?: number;
481
- max?: number;
482
- options?: Partial<{
483
- ui: DateUIOption;
484
- }>;
485
- };
486
- type InputTypeProps = OneOf<[
487
- DateTypeProps,
488
- DateTimeTypeProps,
489
- MonthTypeProps,
490
- NumberTypeProps,
491
- PasswordTypeProps,
492
- PhoneTypeProps,
493
- TimeTypeProps,
494
- WeekTypeProps,
495
- YearTypeProps,
496
- {
497
- type?: Exclude<InputType, 'date' | 'datetime' | 'datetime-local' | 'month' | 'number' | 'password' | 'tel' | 'time' | 'week' | 'year'>;
498
- }
499
- ]>;
500
-
501
- type InputProps = Omit<InputProps$1, 'max' | 'min' | 'name' | 'type'> & InputTypeProps & {
502
- description?: ReactNode;
503
- descriptionProps?: Omit<DescriptionProps, 'children'> & {
504
- /** @deprecated Use the `description` prop instead. */
505
- children?: never;
506
- };
507
- fieldProps?: Omit<FieldProps, 'children' | 'disabled'>;
508
- label?: ReactNode;
509
- labelProps?: Omit<LabelProps, 'children'> & {
510
- /** @deprecated Use the `label` prop instead. */
511
- children?: never;
512
- };
513
- name: string;
514
- ref?: RefObject<HTMLInputElement | null>;
515
- };
516
-
517
- declare function Input({ as, checked, className, defaultValue, description, descriptionProps, disabled, fieldProps, invalid, label, labelProps, max, min, name, onBlur, onChange, options, placeholder, ref, required, type, value, ...props }: InputProps): ReactElement;
518
-
519
- type IsolatedValue<T extends ValueOption | ValueOption[]> = {
520
- defaultValue?: T;
521
- } | {
522
- value?: T;
523
- };
524
- type MultipleOrSingleValue = OneOf<[
525
- {
526
- multiple: true;
527
- } & IsolatedValue<ValueOption[]>,
528
- {
529
- multiple?: false;
530
- } & IsolatedValue<ValueOption>
531
- ]>;
532
- type SelectProps = Omit<ListboxProps, 'defaultValue' | 'multiple' | 'name' | 'value'> & Pick<FieldProps, 'disabled'> & MultipleOrSingleValue & {
533
- description?: ReactNode;
534
- descriptionProps?: Omit<DescriptionProps, 'children'> & {
535
- /** @deprecated Use the `description` prop instead. */
536
- children?: never;
537
- };
538
- fieldProps?: Omit<FieldProps, 'children' | 'disabled'>;
539
- label?: ReactNode;
540
- labelProps?: Omit<LabelProps, 'children'> & {
541
- /** @deprecated Use the `label` prop instead. */
542
- children?: never;
543
- };
544
- name: string;
545
- optionList: ListboxSelectedOptionProps['options'];
546
- ref?: RefObject<HTMLInputElement | null>;
547
- required?: boolean;
548
- };
549
- type ValueOption = string | {
550
- id: string;
551
- render?: ReactNode;
552
- value: string;
454
+ format: "continuous" | "dot" | "hyphenated" | "none" | "space" | "standard";
553
455
  };
554
456
 
555
- declare function Select({ defaultValue, description, descriptionProps, disabled, fieldProps, invalid, label, labelProps, multiple, name, onChange, optionList, required, value, ...props }: SelectProps): ReactElement;
457
+ declare function Input({ checked, className, defaultValue, description, descriptionProps, disabled, fieldProps, invalid, label, labelProps, max, min, name, onBlur, onChange, options, placeholder, ref, required, type, value, ...props }: InputProps): ReactElement;
556
458
 
557
459
  type SubmitButtonProps = Omit<ButtonProps, 'as' | 'customTheme' | 'href' | 'theme'> & {
558
460
  /** This doesn't do much by default, because we use built-in colors for different form states. You'll have to modify a good bit to make this do anything. */
@@ -722,19 +624,19 @@ type TooltipProps = {
722
624
  portal?: boolean;
723
625
  maxWidth?: number;
724
626
  };
725
- type TooltipTriggerProps<T extends ElementType = 'button'> = AnyElementProps<T> & {
627
+ type TooltipTriggerProps<T extends ElementType = "button"> = AnyElementProps<T> & {
726
628
  asChild?: boolean;
727
629
  };
728
- type TooltipPanelProps<T extends ElementType = 'div'> = AnyElementProps<T>;
630
+ type TooltipPanelProps<T extends ElementType = "div"> = AnyElementProps<T>;
729
631
 
730
632
  declare function TooltipTrigger<T extends ElementType = typeof Button$1>({ as, asChild, children, ...props }: TooltipTriggerProps<T>): ReactElement;
731
- declare function TooltipPanel<T extends ElementType = 'div'>({ as, children, className, style, ...props }: TooltipPanelProps<T>): ReactElement;
633
+ declare function TooltipPanel<T extends ElementType = "div">({ as, children, className, style, ...props }: TooltipPanelProps<T>): ReactElement;
732
634
  declare function Tooltip({ anchor, arrow, arrowClassName, children, delay, offset, onClose, onOpen, portal, }: TooltipProps): ReactElement;
733
635
 
734
- type VideoControl = 'download' | 'fullscreen' | 'playbackrate' | 'pause' | 'remoteplayback' | 'seeking' | 'volume';
636
+ type VideoControl = "download" | "fullscreen" | "playbackrate" | "pause" | "remoteplayback" | "seeking" | "volume";
735
637
  type Source = {
736
638
  src: string;
737
- type: 'video/avi' | 'video/flv' | 'video/mkv' | 'video/mov' | 'video/mp4' | 'video/ogg' | 'video/webm';
639
+ type: "video/avi" | "video/flv" | "video/mkv" | "video/mov" | "video/mp4" | "video/ogg" | "video/webm";
738
640
  };
739
641
  type SourceOrSourceGroup = OneOf<[
740
642
  Source,
@@ -742,12 +644,12 @@ type SourceOrSourceGroup = OneOf<[
742
644
  srcGroup: Source[];
743
645
  }
744
646
  ]>;
745
- type VideoProps = Omit<ComponentPropsWithRef<'video'>, 'controls' | 'controlList' | 'poster' | 'src' | 'title'> & {
647
+ type VideoProps = Omit<ComponentPropsWithRef<"video">, "controls" | "controlList" | "poster" | "src" | "title"> & {
746
648
  controls?: boolean | VideoControl | VideoControl[];
747
649
  poster?: {
748
650
  primary?: boolean;
749
651
  src: string;
750
- type: 'image/apng' | 'image/avif' | 'image/gif' | 'image/jpeg' | 'image/png' | 'image/svg+xml' | 'image/webp';
652
+ type: "image/apng" | "image/avif" | "image/gif" | "image/jpeg" | "image/png" | "image/svg+xml" | "image/webp";
751
653
  width: number;
752
654
  }[];
753
655
  /** @deprecated Even if you only have on source file, please use srcSet. */
@@ -760,5 +662,5 @@ type VideoProps = Omit<ComponentPropsWithRef<'video'>, 'controls' | 'controlList
760
662
 
761
663
  declare function Video({ autoPlay, className, controls, poster, ref, srcSet, title, ...props }: VideoProps): ReactElement;
762
664
 
763
- export { Anchor, Button, Details, DetailsBody, DetailsSummary, DropDown, DropDownButton, DropDownItem, DropDownItems, DropDownSection, DropDownSeparator, Fieldset, Form, Ghost, Heading, IFrame, Input, Link, Modal, ModalClose, ModalDialog, ModalTitle, ModalTrigger, Select, SubmitButton, Textarea, Time, Tooltip, TooltipPanel, TooltipTrigger, Video, createButton, createLink };
764
- export type { AnchorProps, ButtonBorderRadius, ButtonPadding, ButtonProps, DetailsBodyProps, DetailsProps, DetailsSummaryProps, DropDownButtonProps, DropDownItemProps, DropDownItemsProps, DropDownProps, DropDownSectionProps, DropDownSeparatorProps, ExtendedButtonConfig, ExtendedButtonProps, ExtendedLinkConfig, ExtendedLinkProps, FieldsetProps, FormProps, FormSubmitArgs, GhostProps, HeadingProps, IFrameAllowAttribute, IFrameProps, IFrameReferrerPolicyAttribute, IFrameSandboxAttribute, InputProps, LinkProps, ModalProps, SelectProps, SubmitButtonProps, TextareaProps, TooltipPanelProps, TooltipProps, TooltipTriggerProps, VideoControl, VideoProps };
665
+ export { Anchor, Button, Details, DetailsBody, DetailsSummary, DropDown, DropDownButton, DropDownItem, DropDownItems, DropDownSection, DropDownSeparator, Fieldset, Form, Ghost, Heading, IFrame, Input, Link, Modal, ModalClose, ModalDialog, ModalTitle, ModalTrigger, SubmitButton, Textarea, Time, Tooltip, TooltipPanel, TooltipTrigger, Video, createButton, createLink, getLinkClasses };
666
+ export type { AnchorProps, ButtonBorderRadius, ButtonPadding, ButtonProps, DetailsBodyProps, DetailsProps, DetailsSummaryProps, DropDownButtonProps, DropDownItemProps, DropDownItemsProps, DropDownProps, DropDownSectionProps, DropDownSeparatorProps, ExtendedButtonConfig, ExtendedButtonProps, ExtendedLinkConfig, ExtendedLinkProps, FieldsetProps, FormProps, FormSubmitArgs, GhostProps, HeadingProps, IFrameAllowAttribute, IFrameProps, IFrameReferrerPolicyAttribute, IFrameSandboxAttribute, InputProps, LinkProps, ModalProps, SubmitButtonProps, TextareaProps, TooltipPanelProps, TooltipProps, TooltipTriggerProps, VideoControl, VideoProps };