@jfrader/ui 0.1.2 → 0.2.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.
Files changed (144) hide show
  1. package/README.md +1 -1
  2. package/dist/accordion-CkOZ-tvs.js +178 -0
  3. package/dist/accordion.js +1 -1
  4. package/dist/alert-Dsjx14UW.js +131 -0
  5. package/dist/alert.js +1 -1
  6. package/dist/avatar-BRGKkoSr.js +127 -0
  7. package/dist/avatar.js +1 -1
  8. package/dist/badge-DLxUMsCx.js +104 -0
  9. package/dist/badge.js +1 -1
  10. package/dist/breadcrumbs-694hF_hm.js +131 -0
  11. package/dist/breadcrumbs.js +1 -1
  12. package/dist/button-CoaIcykB.js +190 -0
  13. package/dist/button.js +1 -1
  14. package/dist/calendar-Doj7PTdG.js +379 -0
  15. package/dist/calendar.js +1 -1
  16. package/dist/card-2IM71XZj.js +134 -0
  17. package/dist/card.js +1 -1
  18. package/dist/checkbox-B7xGNFzp.js +136 -0
  19. package/dist/checkbox.js +1 -1
  20. package/dist/combobox-Bjhxv5U3.js +311 -0
  21. package/dist/combobox.js +1 -1
  22. package/dist/{command-palette-6c158eH1.js → command-palette-BhJwm6cS.js} +144 -129
  23. package/dist/command-palette.js +1 -1
  24. package/dist/container-BhnrGPu-.js +36 -0
  25. package/dist/container.js +1 -1
  26. package/dist/date-picker-Jk8SpoiO.js +245 -0
  27. package/dist/date-picker.js +1 -1
  28. package/dist/dialog-fhS07G41.js +187 -0
  29. package/dist/dialog.js +1 -1
  30. package/dist/divider-v_78HYF5.js +79 -0
  31. package/dist/divider.js +1 -1
  32. package/dist/flex-COZzFqI8.js +22 -0
  33. package/dist/flex.js +1 -1
  34. package/dist/index.js +36 -36
  35. package/dist/kbd-CeP8Kfvp.js +61 -0
  36. package/dist/kbd.js +1 -1
  37. package/dist/menu-B6KCbLCr.js +196 -0
  38. package/dist/menu.js +1 -1
  39. package/dist/navigation-BDht6S2-.js +182 -0
  40. package/dist/navigation.js +1 -1
  41. package/dist/{pagination-BIKYsxK1.js → pagination-B50PCaDU.js} +58 -56
  42. package/dist/pagination.js +1 -1
  43. package/dist/pill-2_XzBdkD.js +51 -0
  44. package/dist/pill.js +1 -1
  45. package/dist/popover-DRHbeIVq.js +103 -0
  46. package/dist/popover.js +1 -1
  47. package/dist/{progress-C8bgujFI.js → progress-CpsskKTD.js} +37 -36
  48. package/dist/progress.js +1 -1
  49. package/dist/radio-group-DPI5KUCj.js +136 -0
  50. package/dist/radio-group.js +1 -1
  51. package/dist/select-C1xGrOhT.js +266 -0
  52. package/dist/select.js +1 -1
  53. package/dist/skeleton-DitdP-yz.js +49 -0
  54. package/dist/skeleton.js +1 -1
  55. package/dist/{spinner-CSFiP0Oi.js → spinner-CFq5HPoo.js} +24 -23
  56. package/dist/spinner.js +1 -1
  57. package/dist/stack-D_g6NJzo.js +21 -0
  58. package/dist/stack.js +1 -1
  59. package/dist/switch-B5TTU-oJ.js +138 -0
  60. package/dist/switch.js +1 -1
  61. package/dist/tabs-C26PWl2c.js +183 -0
  62. package/dist/tabs.js +1 -1
  63. package/dist/text-field-8PQAqRpM.js +75 -0
  64. package/dist/text-field.js +1 -1
  65. package/dist/textarea-CcGWuntL.js +85 -0
  66. package/dist/textarea.js +1 -1
  67. package/dist/theme-root-BRLIA4eb.js +22 -0
  68. package/dist/theme-root.js +1 -1
  69. package/dist/toast-B1PXuwZ4.js +277 -0
  70. package/dist/toast.js +1 -1
  71. package/dist/toggle-group-N_owicT0.js +156 -0
  72. package/dist/toggle-group.js +1 -1
  73. package/dist/tooltip-BJPisf60.js +98 -0
  74. package/dist/tooltip.js +1 -1
  75. package/dist/types/components/accordion/accordion.d.ts +13 -9
  76. package/dist/types/components/alert/alert.d.ts +6 -3
  77. package/dist/types/components/avatar/avatar.d.ts +6 -3
  78. package/dist/types/components/badge/badge.d.ts +6 -3
  79. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +8 -5
  80. package/dist/types/components/button/button.d.ts +6 -3
  81. package/dist/types/components/calendar/calendar.d.ts +11 -7
  82. package/dist/types/components/card/card.d.ts +20 -13
  83. package/dist/types/components/checkbox/checkbox.d.ts +6 -3
  84. package/dist/types/components/combobox/combobox.d.ts +12 -8
  85. package/dist/types/components/command-palette/command-palette.d.ts +22 -15
  86. package/dist/types/components/container/container.d.ts +6 -3
  87. package/dist/types/components/date-picker/date-picker.d.ts +6 -4
  88. package/dist/types/components/dialog/dialog.d.ts +16 -11
  89. package/dist/types/components/divider/divider.d.ts +6 -3
  90. package/dist/types/components/flex/flex.d.ts +6 -3
  91. package/dist/types/components/kbd/kbd.d.ts +8 -5
  92. package/dist/types/components/menu/menu.d.ts +13 -9
  93. package/dist/types/components/navigation/navigation.d.ts +11 -7
  94. package/dist/types/components/pagination/pagination.d.ts +6 -3
  95. package/dist/types/components/pill/pill.d.ts +6 -3
  96. package/dist/types/components/popover/popover.d.ts +7 -5
  97. package/dist/types/components/progress/progress.d.ts +6 -3
  98. package/dist/types/components/radio-group/radio-group.d.ts +8 -5
  99. package/dist/types/components/select/select.d.ts +13 -9
  100. package/dist/types/components/skeleton/skeleton.d.ts +6 -3
  101. package/dist/types/components/spinner/spinner.d.ts +6 -3
  102. package/dist/types/components/stack/stack.d.ts +4 -1
  103. package/dist/types/components/switch/switch.d.ts +6 -3
  104. package/dist/types/components/tabs/tabs.d.ts +14 -9
  105. package/dist/types/components/text-field/text-field.d.ts +6 -3
  106. package/dist/types/components/textarea/textarea.d.ts +6 -3
  107. package/dist/types/components/theme-root/theme-root.d.ts +6 -3
  108. package/dist/types/components/toast/toast.d.ts +6 -4
  109. package/dist/types/components/toggle-group/toggle-group.d.ts +7 -5
  110. package/dist/types/components/tooltip/tooltip.d.ts +7 -5
  111. package/dist/types/overlay/use-native-dialog.d.ts +2 -2
  112. package/package.json +4 -4
  113. package/dist/accordion-C3YbYFBi.js +0 -169
  114. package/dist/alert-CA9ZlIZp.js +0 -130
  115. package/dist/avatar-IUW4yJl0.js +0 -125
  116. package/dist/badge-Bru30HEn.js +0 -103
  117. package/dist/breadcrumbs-CQaviWRc.js +0 -126
  118. package/dist/button-Cmixur4Q.js +0 -188
  119. package/dist/calendar-DUgS0xmp.js +0 -373
  120. package/dist/card-D9CHtouU.js +0 -121
  121. package/dist/checkbox-DKa5BCdy.js +0 -135
  122. package/dist/combobox-Dq3V88Zt.js +0 -302
  123. package/dist/container-xUEIoZzj.js +0 -35
  124. package/dist/date-picker-DrHJMt2p.js +0 -240
  125. package/dist/dialog-C2NSOOP-.js +0 -176
  126. package/dist/divider-yF5EmhhT.js +0 -77
  127. package/dist/flex-5-NI5SSy.js +0 -22
  128. package/dist/kbd-B03_qIwQ.js +0 -56
  129. package/dist/menu-bvKRJOhJ.js +0 -187
  130. package/dist/navigation-xPoqh_Iz.js +0 -175
  131. package/dist/pill-CrVqffKM.js +0 -50
  132. package/dist/popover-CVAZ_C1a.js +0 -98
  133. package/dist/radio-group-CvQ4x8ii.js +0 -131
  134. package/dist/select-CNNiUhKB.js +0 -257
  135. package/dist/skeleton-gJ4ImO5u.js +0 -48
  136. package/dist/stack-mEAryjKz.js +0 -21
  137. package/dist/switch-2hm2WnWt.js +0 -136
  138. package/dist/tabs-GBppQabg.js +0 -174
  139. package/dist/text-field-DDPqQu29.js +0 -74
  140. package/dist/textarea-OP8_3IUR.js +0 -84
  141. package/dist/theme-root-eLka0ZP1.js +0 -21
  142. package/dist/toast-D3Y6OAsg.js +0 -271
  143. package/dist/toggle-group-BxzJ-6Cp.js +0 -151
  144. package/dist/tooltip-CVl8HS4S.js +0 -93
@@ -1,4 +1,4 @@
1
- import { type ButtonHTMLAttributes, type ReactNode, type RefCallback } from 'react';
1
+ import { type ButtonHTMLAttributes, type ComponentPropsWithRef, type ReactNode, type RefCallback } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
3
  export type ButtonVariant = 'solid' | 'soft' | 'outline' | 'ghost';
4
4
  export type ButtonTone = 'neutral' | 'accent' | 'danger';
@@ -9,7 +9,7 @@ export interface ButtonRenderProps extends Omit<ButtonHTMLAttributes<HTMLElement
9
9
  css: Interpolation<Theme>;
10
10
  'data-ui': string;
11
11
  }
12
- export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
12
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'color'> {
13
13
  variant?: ButtonVariant;
14
14
  tone?: ButtonTone;
15
15
  size?: ButtonSize;
@@ -31,4 +31,7 @@ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
31
31
  */
32
32
  render?: (props: ButtonRenderProps) => ReactNode;
33
33
  }
34
- export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
34
+ export declare function Button({ ref, variant, tone, size, loading, startIcon, endIcon, type, children, onClick, css: cssProp, render, ...props }: ButtonProps): string | number | bigint | boolean | import("@emotion/react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
35
+ export declare namespace Button {
36
+ var displayName: string;
37
+ }
@@ -1,7 +1,7 @@
1
- import { type HTMLAttributes } from 'react';
1
+ import { type ComponentPropsWithRef } from 'react';
2
2
  /** Day of the week as counted by `Date#getUTCDay`: 0 is Sunday, 6 is Saturday. */
3
3
  export type CalendarWeekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
4
- export interface CalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> {
4
+ export interface CalendarProps extends Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'onChange'> {
5
5
  /** Selected date, 'YYYY-MM-DD'. */
6
6
  value?: string;
7
7
  defaultValue?: string;
@@ -20,9 +20,13 @@ export interface CalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'def
20
20
  firstDayOfWeek?: CalendarWeekday;
21
21
  }
22
22
  /** The header renders its own month buttons and label. */
23
- export type CalendarHeaderProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
24
- export type CalendarGridProps = HTMLAttributes<HTMLTableElement>;
25
- export declare const Calendar: import("react").ForwardRefExoticComponent<CalendarProps & import("react").RefAttributes<HTMLDivElement>> & {
26
- Header: import("react").ForwardRefExoticComponent<CalendarHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
27
- Grid: import("react").ForwardRefExoticComponent<CalendarGridProps & import("react").RefAttributes<HTMLTableElement>>;
23
+ export type CalendarHeaderProps = Omit<ComponentPropsWithRef<'div'>, 'children'>;
24
+ export type CalendarGridProps = ComponentPropsWithRef<'table'>;
25
+ declare function CalendarRoot({ ref, value: valueProp, defaultValue, onValueChange, visibleMonth: visibleMonthProp, defaultVisibleMonth, onVisibleMonthChange, min: minProp, max: maxProp, locale: localeProp, firstDayOfWeek: firstDayOfWeekProp, ...rest }: CalendarProps): import("@emotion/react/jsx-runtime").JSX.Element;
26
+ declare function CalendarHeader({ ref, ...props }: CalendarHeaderProps): import("@emotion/react/jsx-runtime").JSX.Element;
27
+ declare function CalendarGrid({ ref, onKeyDown, 'aria-labelledby': ariaLabelledByProp, 'aria-label': ariaLabelProp, ...rest }: CalendarGridProps): import("@emotion/react/jsx-runtime").JSX.Element;
28
+ export declare const Calendar: typeof CalendarRoot & {
29
+ Header: typeof CalendarHeader;
30
+ Grid: typeof CalendarGrid;
28
31
  };
32
+ export {};
@@ -1,4 +1,4 @@
1
- import { type HTMLAttributes } from 'react';
1
+ import { type ComponentPropsWithRef } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
3
  export type CardVariant = 'flat' | 'raised';
4
4
  export type CardHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
@@ -14,21 +14,28 @@ export interface CardSlotProps {
14
14
  content?: CardPartProps;
15
15
  footer?: CardPartProps;
16
16
  }
17
- export interface CardProps extends HTMLAttributes<HTMLDivElement> {
17
+ export interface CardProps extends ComponentPropsWithRef<'div'> {
18
18
  variant?: CardVariant;
19
19
  slotProps?: CardSlotProps;
20
20
  }
21
- export type CardHeaderProps = HTMLAttributes<HTMLDivElement>;
22
- export interface CardTitleProps extends HTMLAttributes<HTMLHeadingElement> {
21
+ export type CardHeaderProps = ComponentPropsWithRef<'div'>;
22
+ export interface CardTitleProps extends ComponentPropsWithRef<'h3'> {
23
23
  level?: CardHeadingLevel;
24
24
  }
25
- export type CardDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
26
- export type CardContentProps = HTMLAttributes<HTMLDivElement>;
27
- export type CardFooterProps = HTMLAttributes<HTMLDivElement>;
28
- export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>> & {
29
- Header: import("react").ForwardRefExoticComponent<CardHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
30
- Title: import("react").ForwardRefExoticComponent<CardTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
31
- Description: import("react").ForwardRefExoticComponent<CardDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
32
- Content: import("react").ForwardRefExoticComponent<CardContentProps & import("react").RefAttributes<HTMLDivElement>>;
33
- Footer: import("react").ForwardRefExoticComponent<CardFooterProps & import("react").RefAttributes<HTMLDivElement>>;
25
+ export type CardDescriptionProps = ComponentPropsWithRef<'p'>;
26
+ export type CardContentProps = ComponentPropsWithRef<'div'>;
27
+ export type CardFooterProps = ComponentPropsWithRef<'div'>;
28
+ declare function CardRoot({ ref, variant, slotProps, className, ...rest }: CardProps): import("@emotion/react/jsx-runtime").JSX.Element;
29
+ declare function CardHeader({ ref, className, ...rest }: CardHeaderProps): import("@emotion/react/jsx-runtime").JSX.Element;
30
+ declare function CardTitle({ ref, level, className, ...rest }: CardTitleProps): import("@emotion/react/jsx-runtime").JSX.Element;
31
+ declare function CardDescription({ ref, className, ...rest }: CardDescriptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
32
+ declare function CardContent({ ref, className, ...rest }: CardContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
33
+ declare function CardFooter({ ref, className, ...rest }: CardFooterProps): import("@emotion/react/jsx-runtime").JSX.Element;
34
+ export declare const Card: typeof CardRoot & {
35
+ Header: typeof CardHeader;
36
+ Title: typeof CardTitle;
37
+ Description: typeof CardDescription;
38
+ Content: typeof CardContent;
39
+ Footer: typeof CardFooter;
34
40
  };
41
+ export {};
@@ -1,11 +1,11 @@
1
- import { type InputHTMLAttributes, type ReactNode } from 'react';
1
+ import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
3
  export type CheckboxSize = 'sm' | 'md';
4
4
  export interface CheckboxPartProps {
5
5
  className?: string;
6
6
  css?: Interpolation<Theme>;
7
7
  }
8
- export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
8
+ export interface CheckboxProps extends Omit<ComponentPropsWithRef<'input'>, 'size' | 'type'> {
9
9
  label?: ReactNode;
10
10
  description?: ReactNode;
11
11
  indeterminate?: boolean;
@@ -18,4 +18,7 @@ export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement
18
18
  description?: CheckboxPartProps;
19
19
  };
20
20
  }
21
- export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
21
+ export declare function Checkbox({ ref, label, description, indeterminate, size, onChange, onCheckedChange, slotProps, className, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, ...rest }: CheckboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
22
+ export declare namespace Checkbox {
23
+ var displayName: string;
24
+ }
@@ -1,4 +1,4 @@
1
- import { type HTMLAttributes, type ReactNode } from 'react';
1
+ import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
2
  import { type TextFieldProps } from '../text-field';
3
3
  export interface ComboboxProps {
4
4
  /** `null` is the controlled "nothing selected" state. */
@@ -25,20 +25,24 @@ export interface ComboboxInputProps extends Omit<TextFieldProps, 'value' | 'defa
25
25
  /** Initial input text; when set, it filters the options from the first render. */
26
26
  defaultInputValue?: string;
27
27
  }
28
- export interface ComboboxListProps extends HTMLAttributes<HTMLDivElement> {
28
+ export interface ComboboxListProps extends ComponentPropsWithRef<'div'> {
29
29
  }
30
- export interface ComboboxItemProps extends HTMLAttributes<HTMLDivElement> {
30
+ export interface ComboboxItemProps extends ComponentPropsWithRef<'div'> {
31
31
  /** Unique within the combobox. */
32
32
  value: string;
33
33
  disabled?: boolean;
34
34
  }
35
- export interface ComboboxEmptyProps extends HTMLAttributes<HTMLDivElement> {
35
+ export interface ComboboxEmptyProps extends ComponentPropsWithRef<'div'> {
36
36
  }
37
37
  declare function ComboboxRoot({ value: valueProp, defaultValue, onValueChange, open: openProp, defaultOpen, onOpenChange, name, filter, onInputChange, children, }: ComboboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
38
+ declare function ComboboxInput({ ref, inputValue, defaultInputValue, label, description, error, size, slotProps, className, id: idProp, onChange, onKeyDown, onBlur, disabled, ...rest }: ComboboxInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
39
+ declare function ComboboxList({ ref, id: idProp, style, onMouseDown, children, ...rest }: ComboboxListProps): import("@emotion/react/jsx-runtime").JSX.Element;
40
+ declare function ComboboxItem({ ref, value, disabled, onClick, children, ...rest }: ComboboxItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
41
+ declare function ComboboxEmpty({ ref, children, ...rest }: ComboboxEmptyProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
38
42
  export declare const Combobox: typeof ComboboxRoot & {
39
- Input: import("react").ForwardRefExoticComponent<ComboboxInputProps & import("react").RefAttributes<HTMLInputElement>>;
40
- List: import("react").ForwardRefExoticComponent<ComboboxListProps & import("react").RefAttributes<HTMLDivElement>>;
41
- Item: import("react").ForwardRefExoticComponent<ComboboxItemProps & import("react").RefAttributes<HTMLDivElement>>;
42
- Empty: import("react").ForwardRefExoticComponent<ComboboxEmptyProps & import("react").RefAttributes<HTMLDivElement>>;
43
+ Input: typeof ComboboxInput;
44
+ List: typeof ComboboxList;
45
+ Item: typeof ComboboxItem;
46
+ Empty: typeof ComboboxEmpty;
43
47
  };
44
48
  export {};
@@ -1,4 +1,4 @@
1
- import { type ButtonHTMLAttributes, type DialogHTMLAttributes, type HTMLAttributes, type InputHTMLAttributes, type ReactNode } from 'react';
1
+ import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
2
  export interface CommandPaletteProps {
3
3
  open?: boolean;
4
4
  defaultOpen?: boolean;
@@ -13,21 +13,21 @@ export interface CommandPaletteProps {
13
13
  formatResultCount?: (count: number) => string;
14
14
  children?: ReactNode;
15
15
  }
16
- export interface CommandPaletteTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
16
+ export interface CommandPaletteTriggerProps extends ComponentPropsWithRef<'button'> {
17
17
  }
18
- export interface CommandPaletteContentProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'open'> {
18
+ export interface CommandPaletteContentProps extends Omit<ComponentPropsWithRef<'dialog'>, 'open'> {
19
19
  }
20
- export interface CommandPaletteInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'type'> {
20
+ export interface CommandPaletteInputProps extends Omit<ComponentPropsWithRef<'input'>, 'value' | 'defaultValue' | 'type'> {
21
21
  }
22
- export interface CommandPaletteListProps extends HTMLAttributes<HTMLDivElement> {
22
+ export interface CommandPaletteListProps extends ComponentPropsWithRef<'div'> {
23
23
  }
24
- export interface CommandPaletteEmptyProps extends HTMLAttributes<HTMLDivElement> {
24
+ export interface CommandPaletteEmptyProps extends ComponentPropsWithRef<'div'> {
25
25
  }
26
- export interface CommandPaletteGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
26
+ export interface CommandPaletteGroupProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
27
27
  label: ReactNode;
28
28
  children?: ReactNode;
29
29
  }
30
- export interface CommandPaletteItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
30
+ export interface CommandPaletteItemProps extends Omit<ComponentPropsWithRef<'div'>, 'onSelect'> {
31
31
  /** Unique within the palette. */
32
32
  value: string;
33
33
  onSelect?: () => void;
@@ -35,13 +35,20 @@ export interface CommandPaletteItemProps extends Omit<HTMLAttributes<HTMLDivElem
35
35
  keywords?: string;
36
36
  }
37
37
  declare function CommandPaletteRoot({ open: openProp, defaultOpen, onOpenChange, label, filter, emptyMessage, formatResultCount, children, }: CommandPaletteProps): import("@emotion/react/jsx-runtime").JSX.Element;
38
+ declare function CommandPaletteTrigger({ ref, onClick, ...rest }: CommandPaletteTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
39
+ declare function CommandPaletteContent({ ref, ...props }: CommandPaletteContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
40
+ declare function CommandPaletteInput({ ref, onChange, onKeyDown, ...rest }: CommandPaletteInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
41
+ declare function CommandPaletteList({ ref, onMouseDown, children, ...rest }: CommandPaletteListProps): import("@emotion/react/jsx-runtime").JSX.Element;
42
+ declare function CommandPaletteEmpty({ ref, children, ...rest }: CommandPaletteEmptyProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
43
+ declare function CommandPaletteGroup({ ref, label, children, 'aria-labelledby': externalLabelledBy, ...rest }: CommandPaletteGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
44
+ declare function CommandPaletteItem({ ref, value, onSelect, keywords, onClick, children, ...rest }: CommandPaletteItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
38
45
  export declare const CommandPalette: typeof CommandPaletteRoot & {
39
- Trigger: import("react").ForwardRefExoticComponent<CommandPaletteTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
40
- Content: import("react").ForwardRefExoticComponent<CommandPaletteContentProps & import("react").RefAttributes<HTMLDialogElement>>;
41
- Input: import("react").ForwardRefExoticComponent<CommandPaletteInputProps & import("react").RefAttributes<HTMLInputElement>>;
42
- List: import("react").ForwardRefExoticComponent<CommandPaletteListProps & import("react").RefAttributes<HTMLDivElement>>;
43
- Empty: import("react").ForwardRefExoticComponent<CommandPaletteEmptyProps & import("react").RefAttributes<HTMLDivElement>>;
44
- Group: import("react").ForwardRefExoticComponent<CommandPaletteGroupProps & import("react").RefAttributes<HTMLDivElement>>;
45
- Item: import("react").ForwardRefExoticComponent<CommandPaletteItemProps & import("react").RefAttributes<HTMLDivElement>>;
46
+ Trigger: typeof CommandPaletteTrigger;
47
+ Content: typeof CommandPaletteContent;
48
+ Input: typeof CommandPaletteInput;
49
+ List: typeof CommandPaletteList;
50
+ Empty: typeof CommandPaletteEmpty;
51
+ Group: typeof CommandPaletteGroup;
52
+ Item: typeof CommandPaletteItem;
46
53
  };
47
54
  export {};
@@ -1,7 +1,7 @@
1
- import { type HTMLAttributes } from 'react';
1
+ import type { ComponentPropsWithRef } from 'react';
2
2
  import { type LayoutSpace } from '../../styling/layout-style';
3
3
  export type ContainerSize = 'sm' | 'md' | 'lg' | 'xl';
4
- export interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
4
+ export interface ContainerProps extends ComponentPropsWithRef<'div'> {
5
5
  size?: ContainerSize;
6
6
  paddingInline?: LayoutSpace;
7
7
  }
@@ -11,4 +11,7 @@ export declare const CONTAINER_MAX_INLINE_SIZE: {
11
11
  readonly lg: '1024px';
12
12
  readonly xl: '1280px';
13
13
  };
14
- export declare const Container: import("react").ForwardRefExoticComponent<ContainerProps & import("react").RefAttributes<HTMLDivElement>>;
14
+ export declare function Container({ ref, size, paddingInline, ...rest }: ContainerProps): import("@emotion/react/jsx-runtime").JSX.Element;
15
+ export declare namespace Container {
16
+ var displayName: string;
17
+ }
@@ -1,4 +1,4 @@
1
- import { type HTMLAttributes, type ReactNode } from 'react';
1
+ import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
2
  import { type CalendarWeekday } from '../calendar';
3
3
  import { type TextFieldProps } from '../text-field';
4
4
  export interface DatePickerProps {
@@ -30,10 +30,12 @@ export interface DatePickerProps {
30
30
  export interface DatePickerInputProps extends Omit<TextFieldProps, 'value' | 'defaultValue' | 'onValueChange' | 'onChange' | 'readOnly' | 'placeholder' | 'name' | 'type'> {
31
31
  }
32
32
  /** The popup renders its own calendar. */
33
- export type DatePickerPopupProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
33
+ export type DatePickerPopupProps = Omit<ComponentPropsWithRef<'div'>, 'children'>;
34
34
  declare function DatePickerRoot({ value: valueProp, defaultValue, onValueChange, open: openProp, defaultOpen, onOpenChange, min: minProp, max: maxProp, locale: localeProp, firstDayOfWeek, disabled: disabledProp, name, placeholder: placeholderProp, children, }: DatePickerProps): import("@emotion/react/jsx-runtime").JSX.Element;
35
+ declare function DatePickerInput({ ref, label, id: idProp, disabled: disabledProp, slotProps, onKeyDown, onKeyUp, ...rest }: DatePickerInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
36
+ declare function DatePickerPopup({ ref, style, ...rest }: DatePickerPopupProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
35
37
  export declare const DatePicker: typeof DatePickerRoot & {
36
- Input: import("react").ForwardRefExoticComponent<DatePickerInputProps & import("react").RefAttributes<HTMLInputElement>>;
37
- Popup: import("react").ForwardRefExoticComponent<DatePickerPopupProps & import("react").RefAttributes<HTMLDivElement>>;
38
+ Input: typeof DatePickerInput;
39
+ Popup: typeof DatePickerPopup;
38
40
  };
39
41
  export {};
@@ -1,4 +1,4 @@
1
- import { type ButtonHTMLAttributes, type DialogHTMLAttributes, type HTMLAttributes, type ReactNode, type Ref } from 'react';
1
+ import { type ButtonHTMLAttributes, type ComponentPropsWithRef, type ReactNode, type Ref } from 'react';
2
2
  export interface DialogProps {
3
3
  open?: boolean;
4
4
  defaultOpen?: boolean;
@@ -10,7 +10,7 @@ export interface DialogPartRenderProps extends ButtonHTMLAttributes<HTMLButtonEl
10
10
  ref: Ref<HTMLButtonElement>;
11
11
  'data-ui': string;
12
12
  }
13
- export interface DialogTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
13
+ export interface DialogTriggerProps extends ComponentPropsWithRef<'button'> {
14
14
  /**
15
15
  * Replaces the default button. Spread ALL supplied props onto the operative element and attach
16
16
  * the supplied ref, including when composing through Button. The forwarded and callback refs
@@ -26,15 +26,15 @@ export interface DialogTriggerProps extends ButtonHTMLAttributes<HTMLButtonEleme
26
26
  */
27
27
  render?: (props: DialogPartRenderProps) => ReactNode;
28
28
  }
29
- export interface DialogContentProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'open'> {
29
+ export interface DialogContentProps extends Omit<ComponentPropsWithRef<'dialog'>, 'open'> {
30
30
  /** Set false to keep structured content out of the dialog's accessible description. */
31
31
  withDescription?: boolean;
32
32
  }
33
- export interface DialogTitleProps extends HTMLAttributes<HTMLHeadingElement> {
33
+ export interface DialogTitleProps extends ComponentPropsWithRef<'h2'> {
34
34
  }
35
- export interface DialogDescriptionProps extends HTMLAttributes<HTMLParagraphElement> {
35
+ export interface DialogDescriptionProps extends ComponentPropsWithRef<'p'> {
36
36
  }
37
- export interface DialogCloseProps extends ButtonHTMLAttributes<HTMLButtonElement> {
37
+ export interface DialogCloseProps extends ComponentPropsWithRef<'button'> {
38
38
  /**
39
39
  * Replaces the default button. Spread ALL supplied props onto the operative element and attach
40
40
  * the supplied ref, including when composing through Button. The forwarded and callback refs
@@ -51,11 +51,16 @@ export interface DialogCloseProps extends ButtonHTMLAttributes<HTMLButtonElement
51
51
  render?: (props: DialogPartRenderProps) => ReactNode;
52
52
  }
53
53
  declare function DialogRoot({ open: openProp, defaultOpen, onOpenChange, children }: DialogProps): import("@emotion/react/jsx-runtime").JSX.Element;
54
+ declare function DialogTrigger({ ref, onClick, render, ...rest }: DialogTriggerProps): string | number | bigint | boolean | import("@emotion/react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
55
+ declare function DialogContent({ ref, ...props }: DialogContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
56
+ declare function DialogTitle({ ref, ...props }: DialogTitleProps): import("@emotion/react/jsx-runtime").JSX.Element;
57
+ declare function DialogDescription({ ref, ...props }: DialogDescriptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
58
+ declare function DialogClose({ ref, onClick, render, ...rest }: DialogCloseProps): string | number | bigint | boolean | import("@emotion/react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
54
59
  export declare const Dialog: typeof DialogRoot & {
55
- Trigger: import("react").ForwardRefExoticComponent<DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
56
- Content: import("react").ForwardRefExoticComponent<DialogContentProps & import("react").RefAttributes<HTMLDialogElement>>;
57
- Title: import("react").ForwardRefExoticComponent<DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
58
- Description: import("react").ForwardRefExoticComponent<DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
59
- Close: import("react").ForwardRefExoticComponent<DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
60
+ Trigger: typeof DialogTrigger;
61
+ Content: typeof DialogContent;
62
+ Title: typeof DialogTitle;
63
+ Description: typeof DialogDescription;
64
+ Close: typeof DialogClose;
60
65
  };
61
66
  export {};
@@ -1,6 +1,6 @@
1
- import { type HTMLAttributes, type ReactNode } from 'react';
1
+ import { type HTMLAttributes, type ReactNode, type RefAttributes } from 'react';
2
2
  export type DividerOrientation = 'horizontal' | 'vertical';
3
- type DividerBaseProps = Omit<HTMLAttributes<HTMLElement>, 'children' | 'role' | 'aria-orientation'>;
3
+ type DividerBaseProps = Omit<HTMLAttributes<HTMLElement>, 'children' | 'role' | 'aria-orientation'> & RefAttributes<HTMLElement>;
4
4
  export interface DividerHorizontalProps extends DividerBaseProps {
5
5
  orientation?: 'horizontal';
6
6
  label?: ReactNode;
@@ -10,5 +10,8 @@ export interface DividerVerticalProps extends DividerBaseProps {
10
10
  label?: never;
11
11
  }
12
12
  export type DividerProps = DividerHorizontalProps | DividerVerticalProps;
13
- export declare const Divider: import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<HTMLElement>>;
13
+ export declare function Divider({ ref, orientation, label, 'aria-labelledby': ariaLabelledBy, ...rest }: DividerProps): import("@emotion/react/jsx-runtime").JSX.Element;
14
+ export declare namespace Divider {
15
+ var displayName: string;
16
+ }
14
17
  export {};
@@ -1,4 +1,7 @@
1
- import { type HTMLAttributes } from 'react';
1
+ import type { ComponentPropsWithRef } from 'react';
2
2
  import { type LayoutProps } from '../../styling/layout-style';
3
- export type FlexProps = HTMLAttributes<HTMLDivElement> & LayoutProps;
4
- export declare const Flex: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & LayoutProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export type FlexProps = ComponentPropsWithRef<'div'> & LayoutProps;
4
+ export declare function Flex({ ref, direction, wrap, inline, align, justify, gap, ...rest }: FlexProps): import("@emotion/react/jsx-runtime").JSX.Element;
5
+ export declare namespace Flex {
6
+ var displayName: string;
7
+ }
@@ -1,6 +1,9 @@
1
- import { type HTMLAttributes } from 'react';
2
- export type KbdProps = HTMLAttributes<HTMLElement>;
3
- export type KbdGroupProps = HTMLAttributes<HTMLSpanElement>;
4
- export declare const Kbd: import("react").ForwardRefExoticComponent<KbdProps & import("react").RefAttributes<HTMLElement>> & {
5
- Group: import("react").ForwardRefExoticComponent<KbdGroupProps & import("react").RefAttributes<HTMLSpanElement>>;
1
+ import { type ComponentPropsWithRef } from 'react';
2
+ export type KbdProps = ComponentPropsWithRef<'kbd'>;
3
+ export type KbdGroupProps = ComponentPropsWithRef<'span'>;
4
+ declare function KbdRoot({ ref, ...props }: KbdProps): import("@emotion/react/jsx-runtime").JSX.Element;
5
+ declare function KbdGroup({ ref, children, ...rest }: KbdGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export declare const Kbd: typeof KbdRoot & {
7
+ Group: typeof KbdGroup;
6
8
  };
9
+ export {};
@@ -1,4 +1,4 @@
1
- import { type ButtonHTMLAttributes, type HTMLAttributes, type ReactNode } from 'react';
1
+ import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
2
  import { type Placement } from '@floating-ui/react';
3
3
  export interface MenuProps {
4
4
  open?: boolean;
@@ -7,23 +7,27 @@ export interface MenuProps {
7
7
  placement?: Placement;
8
8
  children?: ReactNode;
9
9
  }
10
- export interface MenuTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
10
+ export interface MenuTriggerProps extends ComponentPropsWithRef<'button'> {
11
11
  }
12
- export interface MenuContentProps extends HTMLAttributes<HTMLDivElement> {
12
+ export interface MenuContentProps extends ComponentPropsWithRef<'div'> {
13
13
  }
14
- export interface MenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onSelect'> {
14
+ export interface MenuItemProps extends Omit<ComponentPropsWithRef<'button'>, 'onSelect'> {
15
15
  /** Called when the item is activated. The menu then closes unless a click handler called
16
16
  * `event.preventDefault()`. */
17
17
  onSelect?: () => void;
18
18
  disabled?: boolean;
19
19
  }
20
- export interface MenuSeparatorProps extends HTMLAttributes<HTMLDivElement> {
20
+ export interface MenuSeparatorProps extends ComponentPropsWithRef<'div'> {
21
21
  }
22
22
  declare function MenuRoot({ open: openProp, defaultOpen, onOpenChange, placement, children, }: MenuProps): import("@emotion/react/jsx-runtime").JSX.Element;
23
+ declare function MenuTrigger({ ref, ...props }: MenuTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
24
+ declare function MenuContent({ ref, style, children, ...rest }: MenuContentProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
25
+ declare function MenuItem({ ref, onSelect, disabled, onClick, ...rest }: MenuItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
26
+ declare function MenuSeparator({ ref, ...props }: MenuSeparatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
23
27
  export declare const Menu: typeof MenuRoot & {
24
- Trigger: import("react").ForwardRefExoticComponent<MenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
25
- Content: import("react").ForwardRefExoticComponent<MenuContentProps & import("react").RefAttributes<HTMLDivElement>>;
26
- Item: import("react").ForwardRefExoticComponent<MenuItemProps & import("react").RefAttributes<HTMLButtonElement>>;
27
- Separator: import("react").ForwardRefExoticComponent<MenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>>;
28
+ Trigger: typeof MenuTrigger;
29
+ Content: typeof MenuContent;
30
+ Item: typeof MenuItem;
31
+ Separator: typeof MenuSeparator;
28
32
  };
29
33
  export {};
@@ -1,16 +1,16 @@
1
- import { type AnchorHTMLAttributes, type HTMLAttributes, type ReactNode } from 'react';
2
- export interface NavigationProps extends HTMLAttributes<HTMLElement> {
1
+ import { type AnchorHTMLAttributes, type ComponentPropsWithRef, type ReactNode, type RefAttributes } from 'react';
2
+ export interface NavigationProps extends ComponentPropsWithRef<'nav'> {
3
3
  /** Accessible name of the navigation landmark. */
4
4
  label?: string;
5
5
  }
6
- export interface NavigationGroupProps extends HTMLAttributes<HTMLElement> {
6
+ export interface NavigationGroupProps extends ComponentPropsWithRef<'section'> {
7
7
  label?: ReactNode;
8
8
  /** Render as a native <details> disclosure; the label becomes its <summary>. */
9
9
  collapsible?: boolean;
10
10
  /** Initial `open` attribute of a collapsible group. The browser owns the state afterwards. */
11
11
  defaultOpen?: boolean;
12
12
  }
13
- export interface NavigationItemProps extends AnchorHTMLAttributes<HTMLElement> {
13
+ export interface NavigationItemProps extends AnchorHTMLAttributes<HTMLElement>, RefAttributes<HTMLElement> {
14
14
  href?: string;
15
15
  /** Marks the current page (aria-current="page"). */
16
16
  active?: boolean;
@@ -18,7 +18,11 @@ export interface NavigationItemProps extends AnchorHTMLAttributes<HTMLElement> {
18
18
  /** Decorative leading icon, hidden from assistive tech. */
19
19
  icon?: ReactNode;
20
20
  }
21
- export declare const Navigation: import("react").ForwardRefExoticComponent<NavigationProps & import("react").RefAttributes<HTMLElement>> & {
22
- Group: import("react").ForwardRefExoticComponent<NavigationGroupProps & import("react").RefAttributes<HTMLElement>>;
23
- Item: import("react").ForwardRefExoticComponent<NavigationItemProps & import("react").RefAttributes<HTMLElement>>;
21
+ declare function NavigationRoot({ ref, label, ...rest }: NavigationProps): import("@emotion/react/jsx-runtime").JSX.Element;
22
+ declare function NavigationGroup({ ref, label, collapsible, defaultOpen, children, ...rest }: NavigationGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
23
+ declare function NavigationItem({ ref, href, active, disabled, icon, children, ...rest }: NavigationItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
24
+ export declare const Navigation: typeof NavigationRoot & {
25
+ Group: typeof NavigationGroup;
26
+ Item: typeof NavigationItem;
24
27
  };
28
+ export {};
@@ -1,5 +1,5 @@
1
- import { type HTMLAttributes } from 'react';
2
- export interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange'> {
1
+ import { type ComponentPropsWithRef } from 'react';
2
+ export interface PaginationProps extends Omit<ComponentPropsWithRef<'nav'>, 'onChange'> {
3
3
  page: number;
4
4
  totalPages: number;
5
5
  onPageChange?: (page: number) => void;
@@ -11,4 +11,7 @@ export interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onCh
11
11
  nextLabel?: string;
12
12
  locale?: string;
13
13
  }
14
- export declare const Pagination: import("react").ForwardRefExoticComponent<PaginationProps & import("react").RefAttributes<HTMLElement>>;
14
+ export declare function Pagination({ ref, page, totalPages, onPageChange, siblingCount, label, previousLabel, nextLabel, locale, ...rest }: PaginationProps): import("@emotion/react/jsx-runtime").JSX.Element;
15
+ export declare namespace Pagination {
16
+ var displayName: string;
17
+ }
@@ -1,6 +1,9 @@
1
- import { type HTMLAttributes } from 'react';
1
+ import type { ComponentPropsWithRef } from 'react';
2
2
  export type PillTone = 'neutral' | 'accent' | 'success' | 'warning' | 'danger';
3
- export interface PillProps extends HTMLAttributes<HTMLSpanElement> {
3
+ export interface PillProps extends ComponentPropsWithRef<'span'> {
4
4
  tone?: PillTone;
5
5
  }
6
- export declare const Pill: import("react").ForwardRefExoticComponent<PillProps & import("react").RefAttributes<HTMLSpanElement>>;
6
+ export declare function Pill({ ref, tone, ...rest }: PillProps): import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export declare namespace Pill {
8
+ var displayName: string;
9
+ }
@@ -1,4 +1,4 @@
1
- import { type ButtonHTMLAttributes, type HTMLAttributes, type ReactNode } from 'react';
1
+ import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
2
  import { type Placement } from '@floating-ui/react';
3
3
  export interface PopoverProps {
4
4
  open?: boolean;
@@ -7,13 +7,15 @@ export interface PopoverProps {
7
7
  placement?: Placement;
8
8
  children?: ReactNode;
9
9
  }
10
- export interface PopoverTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
10
+ export interface PopoverTriggerProps extends ComponentPropsWithRef<'button'> {
11
11
  }
12
- export interface PopoverContentProps extends HTMLAttributes<HTMLDivElement> {
12
+ export interface PopoverContentProps extends ComponentPropsWithRef<'div'> {
13
13
  }
14
14
  declare function PopoverRoot({ open: openProp, defaultOpen, onOpenChange, placement, children, }: PopoverProps): import("@emotion/react/jsx-runtime").JSX.Element;
15
+ declare function PopoverTrigger({ ref, ...props }: PopoverTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
16
+ declare function PopoverContent({ ref, style, ...rest }: PopoverContentProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
15
17
  export declare const Popover: typeof PopoverRoot & {
16
- Trigger: import("react").ForwardRefExoticComponent<PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
17
- Content: import("react").ForwardRefExoticComponent<PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>;
18
+ Trigger: typeof PopoverTrigger;
19
+ Content: typeof PopoverContent;
18
20
  };
19
21
  export {};
@@ -1,10 +1,10 @@
1
- import { type HTMLAttributes, type ReactNode } from 'react';
1
+ import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
3
  export interface ProgressPartProps {
4
4
  className?: string;
5
5
  css?: Interpolation<Theme>;
6
6
  }
7
- export interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
7
+ export interface ProgressProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
8
8
  /** Current value in `0..max`; leave undefined for indeterminate progress. */
9
9
  value?: number;
10
10
  max?: number;
@@ -16,4 +16,7 @@ export interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chi
16
16
  indicator?: ProgressPartProps;
17
17
  };
18
18
  }
19
- export declare const Progress: import("react").ForwardRefExoticComponent<ProgressProps & import("react").RefAttributes<HTMLDivElement>>;
19
+ export declare function Progress({ ref, value, max, label, getValueLabel, slotProps, 'aria-labelledby': ariaLabelledByProp, ...rest }: ProgressProps): import("@emotion/react/jsx-runtime").JSX.Element;
20
+ export declare namespace Progress {
21
+ var displayName: string;
22
+ }
@@ -1,7 +1,7 @@
1
- import { type HTMLAttributes, type InputHTMLAttributes, type ReactNode } from 'react';
1
+ import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
3
  export type RadioGroupOrientation = 'vertical' | 'horizontal';
4
- export interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
4
+ export interface RadioGroupProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'defaultValue'> {
5
5
  value?: string;
6
6
  defaultValue?: string;
7
7
  onValueChange?: (value: string) => void;
@@ -13,7 +13,7 @@ export interface RadioGroupRadioPartProps {
13
13
  className?: string;
14
14
  css?: Interpolation<Theme>;
15
15
  }
16
- export interface RadioGroupRadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'name' | 'checked' | 'defaultChecked' | 'size'> {
16
+ export interface RadioGroupRadioProps extends Omit<ComponentPropsWithRef<'input'>, 'type' | 'value' | 'name' | 'checked' | 'defaultChecked' | 'size'> {
17
17
  value: string;
18
18
  label?: ReactNode;
19
19
  description?: ReactNode;
@@ -24,6 +24,9 @@ export interface RadioGroupRadioProps extends Omit<InputHTMLAttributes<HTMLInput
24
24
  description?: RadioGroupRadioPartProps;
25
25
  };
26
26
  }
27
- export declare const RadioGroup: import("react").ForwardRefExoticComponent<RadioGroupProps & import("react").RefAttributes<HTMLDivElement>> & {
28
- Radio: import("react").ForwardRefExoticComponent<RadioGroupRadioProps & import("react").RefAttributes<HTMLInputElement>>;
27
+ declare function RadioGroupRoot({ ref, value: valueProp, defaultValue, onValueChange, name: nameProp, disabled, orientation, ...rest }: RadioGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
28
+ declare function RadioGroupRadio({ ref, value, label, description, disabled: disabledProp, onChange, slotProps, className, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, ...rest }: RadioGroupRadioProps): import("@emotion/react/jsx-runtime").JSX.Element;
29
+ export declare const RadioGroup: typeof RadioGroupRoot & {
30
+ Radio: typeof RadioGroupRadio;
29
31
  };
32
+ export {};