@jfrader/ui 0.2.0 → 0.4.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 (167) hide show
  1. package/dist/accordion-Bd-j04hW.js +198 -0
  2. package/dist/accordion.js +1 -1
  3. package/dist/alert-BBqaKI4k.js +135 -0
  4. package/dist/alert.js +1 -1
  5. package/dist/avatar-BahDVO9t.js +132 -0
  6. package/dist/avatar.js +1 -1
  7. package/dist/badge-B_sLygxU.js +108 -0
  8. package/dist/badge.js +1 -1
  9. package/dist/breadcrumbs-DVAOxfvL.js +141 -0
  10. package/dist/breadcrumbs.js +1 -1
  11. package/dist/button-P2e7_44z.js +200 -0
  12. package/dist/button.js +1 -1
  13. package/dist/calendar-C9Yad_-w.js +394 -0
  14. package/dist/calendar.js +1 -1
  15. package/dist/card-D-aI2QHx.js +158 -0
  16. package/dist/card.js +1 -1
  17. package/dist/checkbox-COYG6L7d.js +140 -0
  18. package/dist/checkbox.js +1 -1
  19. package/dist/{choice-control-ByFogYcT.js → choice-control-5kJkLXgv.js} +1 -1
  20. package/dist/{collection-registry-1l9f3XJZ.js → collection-registry-BTYi6zGh.js} +1 -1
  21. package/dist/combobox-DiMC2g_u.js +327 -0
  22. package/dist/combobox.js +1 -1
  23. package/dist/command-palette-V_2pEay7.js +379 -0
  24. package/dist/command-palette.js +1 -1
  25. package/dist/container-BOaSptJa.js +41 -0
  26. package/dist/container.js +1 -1
  27. package/dist/date-picker-C29Uo4Tx.js +250 -0
  28. package/dist/date-picker.js +1 -1
  29. package/dist/dialog-xaydbXl2.js +218 -0
  30. package/dist/dialog.js +1 -1
  31. package/dist/divider-DYoJf0I_.js +84 -0
  32. package/dist/divider.js +1 -1
  33. package/dist/field-anatomy-D2ToMeRa.js +109 -0
  34. package/dist/flex-Dh-_J5-U.js +28 -0
  35. package/dist/flex.js +1 -1
  36. package/dist/{icon-wrapper-CFWzew5m.js → icon-wrapper-stN8sD7R.js} +1 -1
  37. package/dist/index.js +38 -37
  38. package/dist/kbd-C3ACoMoE.js +71 -0
  39. package/dist/kbd.js +1 -1
  40. package/dist/{layout-style-7ZTOiWGR.js → layout-style-Cbd1Vilw.js} +1 -1
  41. package/dist/{loading-ring-BpdB0aFi.js → loading-ring-B8-30Dl1.js} +1 -1
  42. package/dist/menu-CGPTNRnF.js +216 -0
  43. package/dist/menu.js +1 -1
  44. package/dist/navigation-DhnKriOp.js +197 -0
  45. package/dist/navigation.js +1 -1
  46. package/dist/pagination-DYdwsxwe.js +156 -0
  47. package/dist/pagination.js +1 -1
  48. package/dist/pill-DO2gHzMb.js +56 -0
  49. package/dist/pill.js +1 -1
  50. package/dist/popover-CdRXjQqI.js +113 -0
  51. package/dist/popover.js +1 -1
  52. package/dist/progress-BpJswTG4.js +90 -0
  53. package/dist/progress.js +1 -1
  54. package/dist/radio-group-Ce0_IWQr.js +145 -0
  55. package/dist/radio-group.js +1 -1
  56. package/dist/select-BgG7WgSh.js +286 -0
  57. package/dist/select.js +1 -1
  58. package/dist/skeleton-OoFlOEXO.js +54 -0
  59. package/dist/skeleton.js +1 -1
  60. package/dist/spinner-C2YDoiMn.js +56 -0
  61. package/dist/spinner.js +1 -1
  62. package/dist/stack-DC3IbtWk.js +27 -0
  63. package/dist/stack.js +1 -1
  64. package/dist/switch-Dr-qjmT4.js +142 -0
  65. package/dist/switch.js +1 -1
  66. package/dist/sx-Dx9JUKp5.js +23 -0
  67. package/dist/tabs-CK_g1RKa.js +203 -0
  68. package/dist/tabs.js +1 -1
  69. package/dist/{text-field-8PQAqRpM.js → text-field-D60ok14S.js} +19 -18
  70. package/dist/text-field.js +1 -1
  71. package/dist/{textarea-CcGWuntL.js → textarea-DyfjtP0A.js} +19 -18
  72. package/dist/textarea.js +1 -1
  73. package/dist/theme-root-BbTBuLMQ.js +46 -0
  74. package/dist/theme-root.js +1 -1
  75. package/dist/theme-scope-t7nAKc2c.js +27 -0
  76. package/dist/toast-CjmELMZZ.js +283 -0
  77. package/dist/toast.js +1 -1
  78. package/dist/toggle-group-CI0e7hFm.js +166 -0
  79. package/dist/toggle-group.js +1 -1
  80. package/dist/tooltip-CaL3rKbV.js +108 -0
  81. package/dist/tooltip.js +1 -1
  82. package/dist/{trigger-style-B1GFmH7M.js → trigger-style-B1KVC8O1.js} +1 -1
  83. package/dist/types/components/accordion/accordion.d.ts +9 -8
  84. package/dist/types/components/alert/alert.d.ts +3 -2
  85. package/dist/types/components/avatar/avatar.d.ts +3 -2
  86. package/dist/types/components/badge/badge.d.ts +3 -2
  87. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +5 -4
  88. package/dist/types/components/button/button.d.ts +3 -2
  89. package/dist/types/components/calendar/calendar.d.ts +7 -6
  90. package/dist/types/components/card/card.d.ts +13 -12
  91. package/dist/types/components/checkbox/checkbox.d.ts +3 -2
  92. package/dist/types/components/combobox/combobox.d.ts +8 -7
  93. package/dist/types/components/command-palette/command-palette.d.ts +15 -14
  94. package/dist/types/components/container/container.d.ts +3 -2
  95. package/dist/types/components/date-picker/date-picker.d.ts +3 -2
  96. package/dist/types/components/dialog/dialog.d.ts +11 -10
  97. package/dist/types/components/divider/divider.d.ts +3 -2
  98. package/dist/types/components/field/field-anatomy.d.ts +3 -2
  99. package/dist/types/components/flex/flex.d.ts +3 -2
  100. package/dist/types/components/kbd/kbd.d.ts +5 -4
  101. package/dist/types/components/menu/menu.d.ts +9 -8
  102. package/dist/types/components/navigation/navigation.d.ts +7 -6
  103. package/dist/types/components/pagination/pagination.d.ts +3 -2
  104. package/dist/types/components/pill/pill.d.ts +3 -2
  105. package/dist/types/components/popover/popover.d.ts +5 -4
  106. package/dist/types/components/progress/progress.d.ts +3 -2
  107. package/dist/types/components/radio-group/radio-group.d.ts +5 -4
  108. package/dist/types/components/select/select.d.ts +9 -8
  109. package/dist/types/components/skeleton/skeleton.d.ts +3 -2
  110. package/dist/types/components/spinner/spinner.d.ts +3 -2
  111. package/dist/types/components/stack/stack.d.ts +1 -1
  112. package/dist/types/components/switch/switch.d.ts +3 -2
  113. package/dist/types/components/tabs/tabs.d.ts +9 -8
  114. package/dist/types/components/text-field/text-field.d.ts +3 -2
  115. package/dist/types/components/textarea/textarea.d.ts +3 -2
  116. package/dist/types/components/theme-provider/theme-provider.d.ts +11 -0
  117. package/dist/types/components/theme-root/theme-root.d.ts +11 -4
  118. package/dist/types/components/toast/toast.d.ts +3 -2
  119. package/dist/types/components/toggle-group/toggle-group.d.ts +5 -4
  120. package/dist/types/components/tooltip/tooltip.d.ts +5 -4
  121. package/dist/types/index.d.ts +4 -0
  122. package/dist/types/overlay/overlay-portal.d.ts +7 -0
  123. package/dist/types/styling/css.d.ts +3 -2
  124. package/dist/types/styling/styled.d.ts +1 -0
  125. package/dist/types/styling/sx.d.ts +16 -0
  126. package/dist/types/styling/theme-scope.d.ts +19 -0
  127. package/dist/types/styling/theme.d.ts +98 -0
  128. package/dist/use-overlay-floating-Bit-f0FU.js +31 -0
  129. package/dist/{visually-hidden-DCWhf0Cb.js → visually-hidden-BJdvqqvn.js} +1 -1
  130. package/package.json +3 -2
  131. package/dist/accordion-CkOZ-tvs.js +0 -178
  132. package/dist/alert-Dsjx14UW.js +0 -131
  133. package/dist/avatar-BRGKkoSr.js +0 -127
  134. package/dist/badge-DLxUMsCx.js +0 -104
  135. package/dist/breadcrumbs-694hF_hm.js +0 -131
  136. package/dist/button-CoaIcykB.js +0 -190
  137. package/dist/calendar-Doj7PTdG.js +0 -379
  138. package/dist/card-2IM71XZj.js +0 -134
  139. package/dist/checkbox-B7xGNFzp.js +0 -136
  140. package/dist/combobox-Bjhxv5U3.js +0 -311
  141. package/dist/command-palette-BhJwm6cS.js +0 -344
  142. package/dist/container-BhnrGPu-.js +0 -36
  143. package/dist/css-Cgj6sCHn.js +0 -2
  144. package/dist/date-picker-Jk8SpoiO.js +0 -245
  145. package/dist/dialog-fhS07G41.js +0 -187
  146. package/dist/divider-v_78HYF5.js +0 -79
  147. package/dist/field-anatomy-BzGw1Ch9.js +0 -105
  148. package/dist/flex-COZzFqI8.js +0 -22
  149. package/dist/kbd-CeP8Kfvp.js +0 -61
  150. package/dist/menu-B6KCbLCr.js +0 -196
  151. package/dist/navigation-BDht6S2-.js +0 -182
  152. package/dist/pagination-B50PCaDU.js +0 -151
  153. package/dist/pill-2_XzBdkD.js +0 -51
  154. package/dist/popover-DRHbeIVq.js +0 -103
  155. package/dist/progress-CpsskKTD.js +0 -85
  156. package/dist/radio-group-DPI5KUCj.js +0 -136
  157. package/dist/select-C1xGrOhT.js +0 -266
  158. package/dist/skeleton-DitdP-yz.js +0 -49
  159. package/dist/spinner-CFq5HPoo.js +0 -51
  160. package/dist/stack-D_g6NJzo.js +0 -21
  161. package/dist/switch-B5TTU-oJ.js +0 -138
  162. package/dist/tabs-C26PWl2c.js +0 -183
  163. package/dist/theme-root-BRLIA4eb.js +0 -22
  164. package/dist/toast-B1PXuwZ4.js +0 -277
  165. package/dist/toggle-group-N_owicT0.js +0 -156
  166. package/dist/tooltip-BJPisf60.js +0 -98
  167. package/dist/use-overlay-floating-efeqppiw.js +0 -19
@@ -1,7 +1,8 @@
1
1
  import { type ComponentPropsWithRef } from 'react';
2
+ import { type SxProps } from '../../styling/sx';
2
3
  export type AccordionType = 'single' | 'multiple';
3
4
  export type AccordionValue = string | string[];
4
- interface AccordionBaseProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'defaultValue'> {
5
+ interface AccordionBaseProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'defaultValue'>, SxProps {
5
6
  /** Allow closing the last open panel. */
6
7
  collapsible?: boolean;
7
8
  }
@@ -19,16 +20,16 @@ export interface AccordionMultipleProps extends AccordionBaseProps {
19
20
  onValueChange?: (value: string[]) => void;
20
21
  }
21
22
  export type AccordionProps = AccordionSingleProps | AccordionMultipleProps;
22
- export interface AccordionItemProps extends ComponentPropsWithRef<'div'> {
23
+ export interface AccordionItemProps extends ComponentPropsWithRef<'div'>, SxProps {
23
24
  value: string;
24
25
  disabled?: boolean;
25
26
  }
26
- export type AccordionTriggerProps = ComponentPropsWithRef<'button'>;
27
- export type AccordionPanelProps = ComponentPropsWithRef<'div'>;
28
- declare function AccordionRoot({ ref, value: valueProp, defaultValue, onValueChange, type, collapsible, onKeyDown, ...rest }: AccordionProps): import("@emotion/react/jsx-runtime").JSX.Element;
29
- declare function AccordionItem({ ref, value, disabled, ...rest }: AccordionItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
30
- declare function AccordionTrigger({ ref, onClick, disabled: disabledProp, ...rest }: AccordionTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
31
- declare function AccordionPanel({ ref, 'aria-labelledby': ariaLabelledByProp, ...rest }: AccordionPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
27
+ export type AccordionTriggerProps = ComponentPropsWithRef<'button'> & SxProps;
28
+ export type AccordionPanelProps = ComponentPropsWithRef<'div'> & SxProps;
29
+ declare function AccordionRoot({ ref, value: valueProp, defaultValue, onValueChange, type, collapsible, onKeyDown, className, sx, ...rest }: AccordionProps): import("@emotion/react/jsx-runtime").JSX.Element;
30
+ declare function AccordionItem({ ref, value, disabled, className, sx, ...rest }: AccordionItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
31
+ declare function AccordionTrigger({ ref, onClick, disabled: disabledProp, className, sx, ...rest }: AccordionTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
32
+ declare function AccordionPanel({ ref, 'aria-labelledby': ariaLabelledByProp, className, sx, ...rest }: AccordionPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
32
33
  export declare const Accordion: typeof AccordionRoot & {
33
34
  Item: typeof AccordionItem;
34
35
  Trigger: typeof AccordionTrigger;
@@ -1,11 +1,12 @@
1
1
  import type { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
+ import { type SxProps } from '../../styling/sx';
3
4
  export type AlertTone = 'info' | 'success' | 'warning' | 'danger';
4
5
  export interface AlertPartProps {
5
6
  className?: string;
6
7
  css?: Interpolation<Theme>;
7
8
  }
8
- export interface AlertProps extends Omit<ComponentPropsWithRef<'div'>, 'title' | 'role'> {
9
+ export interface AlertProps extends Omit<ComponentPropsWithRef<'div'>, 'title' | 'role'>, SxProps {
9
10
  tone?: AlertTone;
10
11
  /** Announced tone word. Put visible meaning in the title text. */
11
12
  toneLabel?: string;
@@ -20,7 +21,7 @@ export interface AlertProps extends Omit<ComponentPropsWithRef<'div'>, 'title' |
20
21
  dismiss?: AlertPartProps;
21
22
  };
22
23
  }
23
- export declare function Alert({ ref, tone, toneLabel, title, children, onDismiss, dismissLabel, slotProps, className, ...rest }: AlertProps): import("@emotion/react/jsx-runtime").JSX.Element;
24
+ export declare function Alert({ ref, tone, toneLabel, title, children, onDismiss, dismissLabel, slotProps, className, sx, ...rest }: AlertProps): import("@emotion/react/jsx-runtime").JSX.Element;
24
25
  export declare namespace Alert {
25
26
  var displayName: string;
26
27
  }
@@ -1,12 +1,13 @@
1
1
  import { type ComponentPropsWithRef } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
+ import { type SxProps } from '../../styling/sx';
3
4
  export type AvatarSize = 'sm' | 'md' | 'lg';
4
5
  export type AvatarStatus = 'online' | 'away' | 'busy' | 'offline';
5
6
  export interface AvatarPartProps {
6
7
  className?: string;
7
8
  css?: Interpolation<Theme>;
8
9
  }
9
- export interface AvatarProps extends Omit<ComponentPropsWithRef<'span'>, 'children' | 'role' | 'aria-label'> {
10
+ export interface AvatarProps extends Omit<ComponentPropsWithRef<'span'>, 'children' | 'role' | 'aria-label'>, SxProps {
10
11
  /** Used for the accessible name and the initials fallback. */
11
12
  name: string;
12
13
  src?: string;
@@ -20,7 +21,7 @@ export interface AvatarProps extends Omit<ComponentPropsWithRef<'span'>, 'childr
20
21
  status?: AvatarPartProps;
21
22
  };
22
23
  }
23
- export declare function Avatar({ ref, name, src, size, status, statusLabel, slotProps, ...rest }: AvatarProps): import("@emotion/react/jsx-runtime").JSX.Element;
24
+ export declare function Avatar({ ref, name, src, size, status, statusLabel, slotProps, className, sx, ...rest }: AvatarProps): import("@emotion/react/jsx-runtime").JSX.Element;
24
25
  export declare namespace Avatar {
25
26
  var displayName: string;
26
27
  }
@@ -1,5 +1,6 @@
1
1
  import type { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
+ import { type SxProps } from '../../styling/sx';
3
4
  export type BadgeVariant = 'standard' | 'dot';
4
5
  export type BadgeTone = 'accent' | 'danger' | 'neutral';
5
6
  export type BadgeOverlap = 'rectangular' | 'circular';
@@ -11,7 +12,7 @@ export interface BadgePartProps {
11
12
  className?: string;
12
13
  css?: Interpolation<Theme>;
13
14
  }
14
- export interface BadgeProps extends ComponentPropsWithRef<'span'> {
15
+ export interface BadgeProps extends ComponentPropsWithRef<'span'>, SxProps {
15
16
  children: ReactNode;
16
17
  badgeContent?: ReactNode;
17
18
  /** Numbers above `max` render as `max+`. */
@@ -33,7 +34,7 @@ export interface BadgeProps extends ComponentPropsWithRef<'span'> {
33
34
  * - Control with an explicit `aria-label`: put the count in the label (`aria-label="Inbox, 3 unread"`).
34
35
  * - Control named by its visible text: the count is read right after the control's name.
35
36
  */
36
- export declare function Badge({ ref, children, badgeContent, max, showZero, invisible, variant, tone, anchor, overlap, slotProps, className, ...rest }: BadgeProps): import("@emotion/react/jsx-runtime").JSX.Element;
37
+ export declare function Badge({ ref, children, badgeContent, max, showZero, invisible, variant, tone, anchor, overlap, slotProps, className, sx, ...rest }: BadgeProps): import("@emotion/react/jsx-runtime").JSX.Element;
37
38
  export declare namespace Badge {
38
39
  var displayName: string;
39
40
  }
@@ -1,17 +1,18 @@
1
1
  import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
- export interface BreadcrumbsProps extends ComponentPropsWithRef<'nav'> {
2
+ import { type SxProps } from '../../styling/sx';
3
+ export interface BreadcrumbsProps extends ComponentPropsWithRef<'nav'>, SxProps {
3
4
  /** Accessible name of the navigation landmark. */
4
5
  label?: string;
5
6
  /** Rendered (aria-hidden) between items. */
6
7
  separator?: ReactNode;
7
8
  }
8
- export interface BreadcrumbsItemProps extends ComponentPropsWithRef<'li'> {
9
+ export interface BreadcrumbsItemProps extends ComponentPropsWithRef<'li'>, SxProps {
9
10
  href?: string;
10
11
  /** Marks the current page. Defaults to the last item when no item sets it. */
11
12
  current?: boolean;
12
13
  }
13
- declare function BreadcrumbsRoot({ ref, label, separator, children, ...rest }: BreadcrumbsProps): import("@emotion/react/jsx-runtime").JSX.Element;
14
- declare function BreadcrumbsItem({ ref, href, current, children, ...rest }: BreadcrumbsItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
14
+ declare function BreadcrumbsRoot({ ref, label, separator, children, className, sx, ...rest }: BreadcrumbsProps): import("@emotion/react/jsx-runtime").JSX.Element;
15
+ declare function BreadcrumbsItem({ ref, href, current, children, className, sx, ...rest }: BreadcrumbsItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
15
16
  export declare const Breadcrumbs: typeof BreadcrumbsRoot & {
16
17
  Item: typeof BreadcrumbsItem;
17
18
  };
@@ -1,5 +1,6 @@
1
1
  import { type ButtonHTMLAttributes, type ComponentPropsWithRef, type ReactNode, type RefCallback } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
+ import { type SxProps } from '../../styling/sx';
3
4
  export type ButtonVariant = 'solid' | 'soft' | 'outline' | 'ghost';
4
5
  export type ButtonTone = 'neutral' | 'accent' | 'danger';
5
6
  export type ButtonSize = 'sm' | 'md' | 'lg';
@@ -9,7 +10,7 @@ export interface ButtonRenderProps extends Omit<ButtonHTMLAttributes<HTMLElement
9
10
  css: Interpolation<Theme>;
10
11
  'data-ui': string;
11
12
  }
12
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'color'> {
13
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'color'>, SxProps {
13
14
  variant?: ButtonVariant;
14
15
  tone?: ButtonTone;
15
16
  size?: ButtonSize;
@@ -31,7 +32,7 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'colo
31
32
  */
32
33
  render?: (props: ButtonRenderProps) => ReactNode;
33
34
  }
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 function Button({ ref, variant, tone, size, loading, startIcon, endIcon, type, children, onClick, className, css: cssProp, sx, render, ...props }: ButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
35
36
  export declare namespace Button {
36
37
  var displayName: string;
37
38
  }
@@ -1,7 +1,8 @@
1
1
  import { type ComponentPropsWithRef } from 'react';
2
+ import { type SxProps } from '../../styling/sx';
2
3
  /** Day of the week as counted by `Date#getUTCDay`: 0 is Sunday, 6 is Saturday. */
3
4
  export type CalendarWeekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
4
- export interface CalendarProps extends Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'onChange'> {
5
+ export interface CalendarProps extends Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'onChange'>, SxProps {
5
6
  /** Selected date, 'YYYY-MM-DD'. */
6
7
  value?: string;
7
8
  defaultValue?: string;
@@ -20,11 +21,11 @@ export interface CalendarProps extends Omit<ComponentPropsWithRef<'div'>, 'defau
20
21
  firstDayOfWeek?: CalendarWeekday;
21
22
  }
22
23
  /** The header renders its own month buttons and label. */
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;
24
+ export type CalendarHeaderProps = Omit<ComponentPropsWithRef<'div'>, 'children'> & SxProps;
25
+ export type CalendarGridProps = ComponentPropsWithRef<'table'> & SxProps;
26
+ declare function CalendarRoot({ ref, value: valueProp, defaultValue, onValueChange, visibleMonth: visibleMonthProp, defaultVisibleMonth, onVisibleMonthChange, min: minProp, max: maxProp, locale: localeProp, firstDayOfWeek: firstDayOfWeekProp, className, sx, ...rest }: CalendarProps): import("@emotion/react/jsx-runtime").JSX.Element;
27
+ declare function CalendarHeader({ ref, className, sx, ...props }: CalendarHeaderProps): import("@emotion/react/jsx-runtime").JSX.Element;
28
+ declare function CalendarGrid({ ref, onKeyDown, 'aria-labelledby': ariaLabelledByProp, 'aria-label': ariaLabelProp, className, sx, ...rest }: CalendarGridProps): import("@emotion/react/jsx-runtime").JSX.Element;
28
29
  export declare const Calendar: typeof CalendarRoot & {
29
30
  Header: typeof CalendarHeader;
30
31
  Grid: typeof CalendarGrid;
@@ -1,5 +1,6 @@
1
1
  import { type ComponentPropsWithRef } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
+ import { type SxProps } from '../../styling/sx';
3
4
  export type CardVariant = 'flat' | 'raised';
4
5
  export type CardHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
5
6
  export interface CardPartProps {
@@ -14,23 +15,23 @@ export interface CardSlotProps {
14
15
  content?: CardPartProps;
15
16
  footer?: CardPartProps;
16
17
  }
17
- export interface CardProps extends ComponentPropsWithRef<'div'> {
18
+ export interface CardProps extends ComponentPropsWithRef<'div'>, SxProps {
18
19
  variant?: CardVariant;
19
20
  slotProps?: CardSlotProps;
20
21
  }
21
- export type CardHeaderProps = ComponentPropsWithRef<'div'>;
22
- export interface CardTitleProps extends ComponentPropsWithRef<'h3'> {
22
+ export type CardHeaderProps = ComponentPropsWithRef<'div'> & SxProps;
23
+ export interface CardTitleProps extends ComponentPropsWithRef<'h3'>, SxProps {
23
24
  level?: CardHeadingLevel;
24
25
  }
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;
26
+ export type CardDescriptionProps = ComponentPropsWithRef<'p'> & SxProps;
27
+ export type CardContentProps = ComponentPropsWithRef<'div'> & SxProps;
28
+ export type CardFooterProps = ComponentPropsWithRef<'div'> & SxProps;
29
+ declare function CardRoot({ ref, variant, slotProps, className, sx, ...rest }: CardProps): import("@emotion/react/jsx-runtime").JSX.Element;
30
+ declare function CardHeader({ ref, className, sx, ...rest }: CardHeaderProps): import("@emotion/react/jsx-runtime").JSX.Element;
31
+ declare function CardTitle({ ref, level, className, sx, ...rest }: CardTitleProps): import("@emotion/react/jsx-runtime").JSX.Element;
32
+ declare function CardDescription({ ref, className, sx, ...rest }: CardDescriptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
33
+ declare function CardContent({ ref, className, sx, ...rest }: CardContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
34
+ declare function CardFooter({ ref, className, sx, ...rest }: CardFooterProps): import("@emotion/react/jsx-runtime").JSX.Element;
34
35
  export declare const Card: typeof CardRoot & {
35
36
  Header: typeof CardHeader;
36
37
  Title: typeof CardTitle;
@@ -1,11 +1,12 @@
1
1
  import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
+ import { type SxProps } from '../../styling/sx';
3
4
  export type CheckboxSize = 'sm' | 'md';
4
5
  export interface CheckboxPartProps {
5
6
  className?: string;
6
7
  css?: Interpolation<Theme>;
7
8
  }
8
- export interface CheckboxProps extends Omit<ComponentPropsWithRef<'input'>, 'size' | 'type'> {
9
+ export interface CheckboxProps extends Omit<ComponentPropsWithRef<'input'>, 'size' | 'type'>, SxProps {
9
10
  label?: ReactNode;
10
11
  description?: ReactNode;
11
12
  indeterminate?: boolean;
@@ -18,7 +19,7 @@ export interface CheckboxProps extends Omit<ComponentPropsWithRef<'input'>, 'siz
18
19
  description?: CheckboxPartProps;
19
20
  };
20
21
  }
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 function Checkbox({ ref, label, description, indeterminate, size, onChange, onCheckedChange, slotProps, className, sx, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, ...rest }: CheckboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
22
23
  export declare namespace Checkbox {
23
24
  var displayName: string;
24
25
  }
@@ -1,4 +1,5 @@
1
1
  import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
+ import { type SxProps } from '../../styling/sx';
2
3
  import { type TextFieldProps } from '../text-field';
3
4
  export interface ComboboxProps {
4
5
  /** `null` is the controlled "nothing selected" state. */
@@ -25,20 +26,20 @@ export interface ComboboxInputProps extends Omit<TextFieldProps, 'value' | 'defa
25
26
  /** Initial input text; when set, it filters the options from the first render. */
26
27
  defaultInputValue?: string;
27
28
  }
28
- export interface ComboboxListProps extends ComponentPropsWithRef<'div'> {
29
+ export interface ComboboxListProps extends ComponentPropsWithRef<'div'>, SxProps {
29
30
  }
30
- export interface ComboboxItemProps extends ComponentPropsWithRef<'div'> {
31
+ export interface ComboboxItemProps extends ComponentPropsWithRef<'div'>, SxProps {
31
32
  /** Unique within the combobox. */
32
33
  value: string;
33
34
  disabled?: boolean;
34
35
  }
35
- export interface ComboboxEmptyProps extends ComponentPropsWithRef<'div'> {
36
+ export interface ComboboxEmptyProps extends ComponentPropsWithRef<'div'>, SxProps {
36
37
  }
37
38
  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;
39
+ declare function ComboboxInput({ ref, inputValue, defaultInputValue, label, description, error, size, slotProps, className, sx, id: idProp, onChange, onKeyDown, onBlur, disabled, ...rest }: ComboboxInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
40
+ declare function ComboboxList({ ref, id: idProp, style, onMouseDown, children, className, sx, ...rest }: ComboboxListProps): import("@emotion/react/jsx-runtime").JSX.Element;
41
+ declare function ComboboxItem({ ref, value, disabled, onClick, children, className, sx, ...rest }: ComboboxItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
42
+ declare function ComboboxEmpty({ ref, children, className, sx, ...rest }: ComboboxEmptyProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
42
43
  export declare const Combobox: typeof ComboboxRoot & {
43
44
  Input: typeof ComboboxInput;
44
45
  List: typeof ComboboxList;
@@ -1,4 +1,5 @@
1
1
  import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
+ import { type SxProps } from '../../styling/sx';
2
3
  export interface CommandPaletteProps {
3
4
  open?: boolean;
4
5
  defaultOpen?: boolean;
@@ -13,21 +14,21 @@ export interface CommandPaletteProps {
13
14
  formatResultCount?: (count: number) => string;
14
15
  children?: ReactNode;
15
16
  }
16
- export interface CommandPaletteTriggerProps extends ComponentPropsWithRef<'button'> {
17
+ export interface CommandPaletteTriggerProps extends ComponentPropsWithRef<'button'>, SxProps {
17
18
  }
18
- export interface CommandPaletteContentProps extends Omit<ComponentPropsWithRef<'dialog'>, 'open'> {
19
+ export interface CommandPaletteContentProps extends Omit<ComponentPropsWithRef<'dialog'>, 'open'>, SxProps {
19
20
  }
20
- export interface CommandPaletteInputProps extends Omit<ComponentPropsWithRef<'input'>, 'value' | 'defaultValue' | 'type'> {
21
+ export interface CommandPaletteInputProps extends Omit<ComponentPropsWithRef<'input'>, 'value' | 'defaultValue' | 'type'>, SxProps {
21
22
  }
22
- export interface CommandPaletteListProps extends ComponentPropsWithRef<'div'> {
23
+ export interface CommandPaletteListProps extends ComponentPropsWithRef<'div'>, SxProps {
23
24
  }
24
- export interface CommandPaletteEmptyProps extends ComponentPropsWithRef<'div'> {
25
+ export interface CommandPaletteEmptyProps extends ComponentPropsWithRef<'div'>, SxProps {
25
26
  }
26
- export interface CommandPaletteGroupProps extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
27
+ export interface CommandPaletteGroupProps extends Omit<ComponentPropsWithRef<'div'>, 'children'>, SxProps {
27
28
  label: ReactNode;
28
29
  children?: ReactNode;
29
30
  }
30
- export interface CommandPaletteItemProps extends Omit<ComponentPropsWithRef<'div'>, 'onSelect'> {
31
+ export interface CommandPaletteItemProps extends Omit<ComponentPropsWithRef<'div'>, 'onSelect'>, SxProps {
31
32
  /** Unique within the palette. */
32
33
  value: string;
33
34
  onSelect?: () => void;
@@ -35,13 +36,13 @@ export interface CommandPaletteItemProps extends Omit<ComponentPropsWithRef<'div
35
36
  keywords?: string;
36
37
  }
37
38
  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;
39
+ declare function CommandPaletteTrigger({ ref, onClick, className, sx, ...rest }: CommandPaletteTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
40
+ declare function CommandPaletteContent({ ref, className, sx, ...props }: CommandPaletteContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
41
+ declare function CommandPaletteInput({ ref, onChange, onKeyDown, className, sx, ...rest }: CommandPaletteInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
42
+ declare function CommandPaletteList({ ref, onMouseDown, children, className, sx, ...rest }: CommandPaletteListProps): import("@emotion/react/jsx-runtime").JSX.Element;
43
+ declare function CommandPaletteEmpty({ ref, children, className, sx, ...rest }: CommandPaletteEmptyProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
44
+ declare function CommandPaletteGroup({ ref, label, children, 'aria-labelledby': externalLabelledBy, className, sx, ...rest }: CommandPaletteGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
45
+ declare function CommandPaletteItem({ ref, value, onSelect, keywords, onClick, children, className, sx, ...rest }: CommandPaletteItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
45
46
  export declare const CommandPalette: typeof CommandPaletteRoot & {
46
47
  Trigger: typeof CommandPaletteTrigger;
47
48
  Content: typeof CommandPaletteContent;
@@ -1,7 +1,8 @@
1
1
  import type { ComponentPropsWithRef } from 'react';
2
2
  import { type LayoutSpace } from '../../styling/layout-style';
3
+ import { type SxProps } from '../../styling/sx';
3
4
  export type ContainerSize = 'sm' | 'md' | 'lg' | 'xl';
4
- export interface ContainerProps extends ComponentPropsWithRef<'div'> {
5
+ export interface ContainerProps extends ComponentPropsWithRef<'div'>, SxProps {
5
6
  size?: ContainerSize;
6
7
  paddingInline?: LayoutSpace;
7
8
  }
@@ -11,7 +12,7 @@ export declare const CONTAINER_MAX_INLINE_SIZE: {
11
12
  readonly lg: '1024px';
12
13
  readonly xl: '1280px';
13
14
  };
14
- export declare function Container({ ref, size, paddingInline, ...rest }: ContainerProps): import("@emotion/react/jsx-runtime").JSX.Element;
15
+ export declare function Container({ ref, size, paddingInline, className, sx, ...rest }: ContainerProps): import("@emotion/react/jsx-runtime").JSX.Element;
15
16
  export declare namespace Container {
16
17
  var displayName: string;
17
18
  }
@@ -1,4 +1,5 @@
1
1
  import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
+ import { type SxProps } from '../../styling/sx';
2
3
  import { type CalendarWeekday } from '../calendar';
3
4
  import { type TextFieldProps } from '../text-field';
4
5
  export interface DatePickerProps {
@@ -30,10 +31,10 @@ export interface DatePickerProps {
30
31
  export interface DatePickerInputProps extends Omit<TextFieldProps, 'value' | 'defaultValue' | 'onValueChange' | 'onChange' | 'readOnly' | 'placeholder' | 'name' | 'type'> {
31
32
  }
32
33
  /** The popup renders its own calendar. */
33
- export type DatePickerPopupProps = Omit<ComponentPropsWithRef<'div'>, 'children'>;
34
+ export type DatePickerPopupProps = Omit<ComponentPropsWithRef<'div'>, 'children'> & SxProps;
34
35
  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
36
  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;
37
+ declare function DatePickerPopup({ ref, style, className, sx, ...rest }: DatePickerPopupProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
37
38
  export declare const DatePicker: typeof DatePickerRoot & {
38
39
  Input: typeof DatePickerInput;
39
40
  Popup: typeof DatePickerPopup;
@@ -1,4 +1,5 @@
1
1
  import { type ButtonHTMLAttributes, type ComponentPropsWithRef, type ReactNode, type Ref } from 'react';
2
+ import { type SxProps } from '../../styling/sx';
2
3
  export interface DialogProps {
3
4
  open?: boolean;
4
5
  defaultOpen?: boolean;
@@ -10,7 +11,7 @@ export interface DialogPartRenderProps extends ButtonHTMLAttributes<HTMLButtonEl
10
11
  ref: Ref<HTMLButtonElement>;
11
12
  'data-ui': string;
12
13
  }
13
- export interface DialogTriggerProps extends ComponentPropsWithRef<'button'> {
14
+ export interface DialogTriggerProps extends ComponentPropsWithRef<'button'>, SxProps {
14
15
  /**
15
16
  * Replaces the default button. Spread ALL supplied props onto the operative element and attach
16
17
  * the supplied ref, including when composing through Button. The forwarded and callback refs
@@ -26,15 +27,15 @@ export interface DialogTriggerProps extends ComponentPropsWithRef<'button'> {
26
27
  */
27
28
  render?: (props: DialogPartRenderProps) => ReactNode;
28
29
  }
29
- export interface DialogContentProps extends Omit<ComponentPropsWithRef<'dialog'>, 'open'> {
30
+ export interface DialogContentProps extends Omit<ComponentPropsWithRef<'dialog'>, 'open'>, SxProps {
30
31
  /** Set false to keep structured content out of the dialog's accessible description. */
31
32
  withDescription?: boolean;
32
33
  }
33
- export interface DialogTitleProps extends ComponentPropsWithRef<'h2'> {
34
+ export interface DialogTitleProps extends ComponentPropsWithRef<'h2'>, SxProps {
34
35
  }
35
- export interface DialogDescriptionProps extends ComponentPropsWithRef<'p'> {
36
+ export interface DialogDescriptionProps extends ComponentPropsWithRef<'p'>, SxProps {
36
37
  }
37
- export interface DialogCloseProps extends ComponentPropsWithRef<'button'> {
38
+ export interface DialogCloseProps extends ComponentPropsWithRef<'button'>, SxProps {
38
39
  /**
39
40
  * Replaces the default button. Spread ALL supplied props onto the operative element and attach
40
41
  * the supplied ref, including when composing through Button. The forwarded and callback refs
@@ -51,11 +52,11 @@ export interface DialogCloseProps extends ComponentPropsWithRef<'button'> {
51
52
  render?: (props: DialogPartRenderProps) => ReactNode;
52
53
  }
53
54
  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;
55
+ declare function DialogTrigger({ ref, onClick, render, className, sx, ...rest }: DialogTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
56
+ declare function DialogContent({ ref, className, sx, ...props }: DialogContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
57
+ declare function DialogTitle({ ref, className, sx, ...props }: DialogTitleProps): import("@emotion/react/jsx-runtime").JSX.Element;
58
+ declare function DialogDescription({ ref, className, sx, ...props }: DialogDescriptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
59
+ declare function DialogClose({ ref, onClick, render, className, sx, ...rest }: DialogCloseProps): import("@emotion/react/jsx-runtime").JSX.Element;
59
60
  export declare const Dialog: typeof DialogRoot & {
60
61
  Trigger: typeof DialogTrigger;
61
62
  Content: typeof DialogContent;
@@ -1,6 +1,7 @@
1
1
  import { type HTMLAttributes, type ReactNode, type RefAttributes } from 'react';
2
+ import { type SxProps } from '../../styling/sx';
2
3
  export type DividerOrientation = 'horizontal' | 'vertical';
3
- type DividerBaseProps = Omit<HTMLAttributes<HTMLElement>, 'children' | 'role' | 'aria-orientation'> & RefAttributes<HTMLElement>;
4
+ type DividerBaseProps = Omit<HTMLAttributes<HTMLElement>, 'children' | 'role' | 'aria-orientation'> & RefAttributes<HTMLElement> & SxProps;
4
5
  export interface DividerHorizontalProps extends DividerBaseProps {
5
6
  orientation?: 'horizontal';
6
7
  label?: ReactNode;
@@ -10,7 +11,7 @@ export interface DividerVerticalProps extends DividerBaseProps {
10
11
  label?: never;
11
12
  }
12
13
  export type DividerProps = DividerHorizontalProps | DividerVerticalProps;
13
- export declare function Divider({ ref, orientation, label, 'aria-labelledby': ariaLabelledBy, ...rest }: DividerProps): import("@emotion/react/jsx-runtime").JSX.Element;
14
+ export declare function Divider({ ref, orientation, label, 'aria-labelledby': ariaLabelledBy, className, sx, ...rest }: DividerProps): import("@emotion/react/jsx-runtime").JSX.Element;
14
15
  export declare namespace Divider {
15
16
  var displayName: string;
16
17
  }
@@ -1,5 +1,6 @@
1
1
  import { type AriaAttributes, type ReactNode } from 'react';
2
2
  import { type Interpolation, type Theme } from '../../styling/css';
3
+ import { type SxProps } from '../../styling/sx';
3
4
  export interface FieldPartProps {
4
5
  className?: string;
5
6
  css?: Interpolation<Theme>;
@@ -25,13 +26,13 @@ export declare function useFieldAnatomy({ id: idProp, description, error, 'aria-
25
26
  describedBy: string | undefined;
26
27
  ariaInvalid: "false" | "grammar" | "spelling" | "true" | boolean | undefined;
27
28
  };
28
- interface FieldRootProps {
29
+ interface FieldRootProps extends SxProps {
29
30
  'data-ui': string;
30
31
  className?: string;
31
32
  part?: FieldPartProps;
32
33
  children: ReactNode;
33
34
  }
34
- export declare function FieldRoot({ 'data-ui': dataUi, className, part, children }: FieldRootProps): import("@emotion/react/jsx-runtime").JSX.Element;
35
+ export declare function FieldRoot({ 'data-ui': dataUi, className, sx, part, children }: FieldRootProps): import("@emotion/react/jsx-runtime").JSX.Element;
35
36
  interface FieldLabelProps {
36
37
  htmlFor: string;
37
38
  required?: boolean;
@@ -1,7 +1,8 @@
1
1
  import type { ComponentPropsWithRef } from 'react';
2
2
  import { type LayoutProps } from '../../styling/layout-style';
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;
3
+ import { type SxProps } from '../../styling/sx';
4
+ export type FlexProps = ComponentPropsWithRef<'div'> & LayoutProps & SxProps;
5
+ export declare function Flex({ ref, direction, wrap, inline, align, justify, gap, className, sx, ...rest }: FlexProps): import("@emotion/react/jsx-runtime").JSX.Element;
5
6
  export declare namespace Flex {
6
7
  var displayName: string;
7
8
  }
@@ -1,8 +1,9 @@
1
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;
2
+ import { type SxProps } from '../../styling/sx';
3
+ export type KbdProps = ComponentPropsWithRef<'kbd'> & SxProps;
4
+ export type KbdGroupProps = ComponentPropsWithRef<'span'> & SxProps;
5
+ declare function KbdRoot({ ref, className, sx, ...props }: KbdProps): import("@emotion/react/jsx-runtime").JSX.Element;
6
+ declare function KbdGroup({ ref, children, className, sx, ...rest }: KbdGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
6
7
  export declare const Kbd: typeof KbdRoot & {
7
8
  Group: typeof KbdGroup;
8
9
  };
@@ -1,5 +1,6 @@
1
1
  import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
2
  import { type Placement } from '@floating-ui/react';
3
+ import { type SxProps } from '../../styling/sx';
3
4
  export interface MenuProps {
4
5
  open?: boolean;
5
6
  defaultOpen?: boolean;
@@ -7,23 +8,23 @@ export interface MenuProps {
7
8
  placement?: Placement;
8
9
  children?: ReactNode;
9
10
  }
10
- export interface MenuTriggerProps extends ComponentPropsWithRef<'button'> {
11
+ export interface MenuTriggerProps extends ComponentPropsWithRef<'button'>, SxProps {
11
12
  }
12
- export interface MenuContentProps extends ComponentPropsWithRef<'div'> {
13
+ export interface MenuContentProps extends ComponentPropsWithRef<'div'>, SxProps {
13
14
  }
14
- export interface MenuItemProps extends Omit<ComponentPropsWithRef<'button'>, 'onSelect'> {
15
+ export interface MenuItemProps extends Omit<ComponentPropsWithRef<'button'>, 'onSelect'>, SxProps {
15
16
  /** Called when the item is activated. The menu then closes unless a click handler called
16
17
  * `event.preventDefault()`. */
17
18
  onSelect?: () => void;
18
19
  disabled?: boolean;
19
20
  }
20
- export interface MenuSeparatorProps extends ComponentPropsWithRef<'div'> {
21
+ export interface MenuSeparatorProps extends ComponentPropsWithRef<'div'>, SxProps {
21
22
  }
22
23
  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;
24
+ declare function MenuTrigger({ ref, className, sx, ...props }: MenuTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
25
+ declare function MenuContent({ ref, style, children, className, sx, ...rest }: MenuContentProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
26
+ declare function MenuItem({ ref, onSelect, disabled, onClick, className, sx, ...rest }: MenuItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
27
+ declare function MenuSeparator({ ref, className, sx, ...props }: MenuSeparatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
27
28
  export declare const Menu: typeof MenuRoot & {
28
29
  Trigger: typeof MenuTrigger;
29
30
  Content: typeof MenuContent;
@@ -1,16 +1,17 @@
1
1
  import { type AnchorHTMLAttributes, type ComponentPropsWithRef, type ReactNode, type RefAttributes } from 'react';
2
- export interface NavigationProps extends ComponentPropsWithRef<'nav'> {
2
+ import { type SxProps } from '../../styling/sx';
3
+ export interface NavigationProps extends ComponentPropsWithRef<'nav'>, SxProps {
3
4
  /** Accessible name of the navigation landmark. */
4
5
  label?: string;
5
6
  }
6
- export interface NavigationGroupProps extends ComponentPropsWithRef<'section'> {
7
+ export interface NavigationGroupProps extends ComponentPropsWithRef<'section'>, SxProps {
7
8
  label?: ReactNode;
8
9
  /** Render as a native <details> disclosure; the label becomes its <summary>. */
9
10
  collapsible?: boolean;
10
11
  /** Initial `open` attribute of a collapsible group. The browser owns the state afterwards. */
11
12
  defaultOpen?: boolean;
12
13
  }
13
- export interface NavigationItemProps extends AnchorHTMLAttributes<HTMLElement>, RefAttributes<HTMLElement> {
14
+ export interface NavigationItemProps extends AnchorHTMLAttributes<HTMLElement>, RefAttributes<HTMLElement>, SxProps {
14
15
  href?: string;
15
16
  /** Marks the current page (aria-current="page"). */
16
17
  active?: boolean;
@@ -18,9 +19,9 @@ export interface NavigationItemProps extends AnchorHTMLAttributes<HTMLElement>,
18
19
  /** Decorative leading icon, hidden from assistive tech. */
19
20
  icon?: ReactNode;
20
21
  }
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;
22
+ declare function NavigationRoot({ ref, label, className, sx, ...rest }: NavigationProps): import("@emotion/react/jsx-runtime").JSX.Element;
23
+ declare function NavigationGroup({ ref, label, collapsible, defaultOpen, children, className, sx, ...rest }: NavigationGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
24
+ declare function NavigationItem({ ref, href, active, disabled, icon, children, className, sx, ...rest }: NavigationItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
24
25
  export declare const Navigation: typeof NavigationRoot & {
25
26
  Group: typeof NavigationGroup;
26
27
  Item: typeof NavigationItem;
@@ -1,5 +1,6 @@
1
1
  import { type ComponentPropsWithRef } from 'react';
2
- export interface PaginationProps extends Omit<ComponentPropsWithRef<'nav'>, 'onChange'> {
2
+ import { type SxProps } from '../../styling/sx';
3
+ export interface PaginationProps extends Omit<ComponentPropsWithRef<'nav'>, 'onChange'>, SxProps {
3
4
  page: number;
4
5
  totalPages: number;
5
6
  onPageChange?: (page: number) => void;
@@ -11,7 +12,7 @@ export interface PaginationProps extends Omit<ComponentPropsWithRef<'nav'>, 'onC
11
12
  nextLabel?: string;
12
13
  locale?: string;
13
14
  }
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 function Pagination({ ref, page, totalPages, onPageChange, siblingCount, label, previousLabel, nextLabel, locale, className, sx, ...rest }: PaginationProps): import("@emotion/react/jsx-runtime").JSX.Element;
15
16
  export declare namespace Pagination {
16
17
  var displayName: string;
17
18
  }