@igne-agency/react-web-ui 0.5.0 → 0.6.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 (254) hide show
  1. package/dist/components/accordion/accordion.css +21 -21
  2. package/dist/components/accordion/accordion.d.ts +17 -4
  3. package/dist/components/accordion/accordion.js +83 -36
  4. package/dist/components/accordion/accordion.module.js +6 -6
  5. package/dist/components/attachment-tile/attachment-preview.d.ts +56 -13
  6. package/dist/components/attachment-tile/attachment-preview.js +388 -119
  7. package/dist/components/attachment-tile/attachment-tile.css +31 -25
  8. package/dist/components/attachment-tile/attachment-tile.d.ts +32 -10
  9. package/dist/components/attachment-tile/attachment-tile.js +160 -43
  10. package/dist/components/attachment-tile/attachment-tile.module.js +8 -8
  11. package/dist/components/attachment-tile/index.d.ts +1 -1
  12. package/dist/components/avatar/avatar.css +9 -9
  13. package/dist/components/avatar/avatar.d.ts +50 -5
  14. package/dist/components/avatar/avatar.js +178 -64
  15. package/dist/components/avatar/avatar.module.js +3 -3
  16. package/dist/components/avatar-group/avatar-group-context.d.ts +2 -4
  17. package/dist/components/avatar-group/avatar-group-context.js +2 -2
  18. package/dist/components/avatar-group/avatar-group.css +26 -20
  19. package/dist/components/avatar-group/avatar-group.d.ts +85 -27
  20. package/dist/components/avatar-group/avatar-group.js +400 -246
  21. package/dist/components/avatar-group/avatar-group.module.js +8 -8
  22. package/dist/components/breadcrumbs/breadcrumbs.css +12 -12
  23. package/dist/components/breadcrumbs/breadcrumbs.d.ts +69 -23
  24. package/dist/components/breadcrumbs/breadcrumbs.js +299 -248
  25. package/dist/components/breadcrumbs/breadcrumbs.module.js +8 -8
  26. package/dist/components/button/button.css +29 -31
  27. package/dist/components/button/button.d.ts +20 -16
  28. package/dist/components/button/button.js +140 -145
  29. package/dist/components/button/button.module.js +1 -1
  30. package/dist/components/button/index.js +1 -1
  31. package/dist/components/checkbox-field/checkbox-field.js +63 -49
  32. package/dist/components/checkbox-field/checkbox.css +105 -56
  33. package/dist/components/checkbox-field/checkbox.d.ts +3 -2
  34. package/dist/components/checkbox-field/checkbox.js +12 -9
  35. package/dist/components/checkbox-field/checkbox.module.js +4 -4
  36. package/dist/components/checkbox-group-field/checkbox-group-field.js +78 -72
  37. package/dist/components/checkbox-group-field/checkbox-group.css +14 -10
  38. package/dist/components/checkbox-group-field/checkbox-group.d.ts +2 -2
  39. package/dist/components/checkbox-group-field/checkbox-group.js +2 -2
  40. package/dist/components/checkbox-group-field/checkbox-group.module.js +2 -2
  41. package/dist/components/collapsible/collapsible.css +20 -20
  42. package/dist/components/collapsible/collapsible.d.ts +17 -4
  43. package/dist/components/collapsible/collapsible.js +83 -36
  44. package/dist/components/collapsible/collapsible.module.js +5 -5
  45. package/dist/components/combobox-field/combobox-field.js +206 -158
  46. package/dist/components/combobox-field/combobox.css +492 -277
  47. package/dist/components/combobox-field/combobox.d.ts +148 -39
  48. package/dist/components/combobox-field/combobox.js +506 -206
  49. package/dist/components/combobox-field/combobox.module.js +21 -21
  50. package/dist/components/combobox-field/value-state-view.css +5 -5
  51. package/dist/components/combobox-field/value-state-view.module.js +4 -4
  52. package/dist/components/composer/composer-attachments.d.ts +30 -11
  53. package/dist/components/composer/composer-attachments.js +45 -40
  54. package/dist/components/composer/composer-editor.css +40 -35
  55. package/dist/components/composer/composer-editor.d.ts +14 -4
  56. package/dist/components/composer/composer-editor.js +134 -44
  57. package/dist/components/composer/composer-editor.module.js +5 -5
  58. package/dist/components/composer/composer.css +22 -22
  59. package/dist/components/composer/composer.d.ts +13 -2
  60. package/dist/components/composer/composer.js +78 -63
  61. package/dist/components/composer/composer.module.js +5 -5
  62. package/dist/components/composer/index.d.ts +2 -2
  63. package/dist/components/composer/mention-text.css +5 -5
  64. package/dist/components/composer/mention-text.module.js +1 -1
  65. package/dist/components/confirm-dialog/confirm-dialog.css +29 -29
  66. package/dist/components/confirm-dialog/confirm-dialog.d.ts +57 -3
  67. package/dist/components/confirm-dialog/confirm-dialog.js +266 -108
  68. package/dist/components/confirm-dialog/confirm-dialog.module.js +5 -5
  69. package/dist/components/conversation/conversation.css +52 -52
  70. package/dist/components/conversation/conversation.d.ts +43 -18
  71. package/dist/components/conversation/conversation.js +120 -78
  72. package/dist/components/conversation/conversation.module.js +15 -15
  73. package/dist/components/date-field/date-field.d.ts +1 -1
  74. package/dist/components/date-field/date-field.js +202 -100
  75. package/dist/components/date-field/date-input.d.ts +73 -37
  76. package/dist/components/date-field/date-input.js +72 -45
  77. package/dist/components/date-field/index.d.ts +1 -1
  78. package/dist/components/date-range-field/date-range-field.d.ts +1 -1
  79. package/dist/components/date-range-field/date-range-field.js +219 -107
  80. package/dist/components/date-range-field/date-range-input.d.ts +84 -40
  81. package/dist/components/date-range-field/date-range-input.js +83 -48
  82. package/dist/components/dialog/dialog.css +32 -32
  83. package/dist/components/dialog/dialog.d.ts +8 -7
  84. package/dist/components/dialog/dialog.js +8 -26
  85. package/dist/components/dialog/dialog.module.js +6 -6
  86. package/dist/components/divider/divider.css +6 -6
  87. package/dist/components/divider/divider.d.ts +36 -2
  88. package/dist/components/divider/divider.js +195 -29
  89. package/dist/components/divider/divider.module.js +3 -3
  90. package/dist/components/drawer/drawer.css +55 -56
  91. package/dist/components/drawer/drawer.d.ts +8 -7
  92. package/dist/components/drawer/drawer.js +8 -26
  93. package/dist/components/drawer/drawer.module.js +6 -6
  94. package/dist/components/field/field.css +34 -24
  95. package/dist/components/field/field.d.ts +60 -37
  96. package/dist/components/field/field.js +242 -157
  97. package/dist/components/field/field.module.js +12 -10
  98. package/dist/components/field/input-parts.d.ts +11 -13
  99. package/dist/components/field/input-parts.js +23 -42
  100. package/dist/components/field-placeholder/field-placeholder.css +6 -6
  101. package/dist/components/field-placeholder/field-placeholder.module.js +4 -4
  102. package/dist/components/fieldset/field-group.d.ts +1 -1
  103. package/dist/components/fieldset/field-group.js +48 -42
  104. package/dist/components/fieldset/fieldset-root.d.ts +1 -1
  105. package/dist/components/fieldset/fieldset-root.js +19 -17
  106. package/dist/components/fieldset/fieldset.d.ts +2 -2
  107. package/dist/components/fieldset/fieldset.js +2 -2
  108. package/dist/components/file-field/file-field.css +126 -60
  109. package/dist/components/file-field/file-field.js +201 -109
  110. package/dist/components/file-field/file-field.module.js +4 -4
  111. package/dist/components/file-field/file-input.d.ts +66 -40
  112. package/dist/components/file-field/file-input.js +188 -132
  113. package/dist/components/filter-bar/filter-bar.css +8 -8
  114. package/dist/components/filter-bar/filter-bar.d.ts +12 -3
  115. package/dist/components/filter-bar/filter-bar.js +23 -25
  116. package/dist/components/filter-bar/filter-bar.module.js +5 -5
  117. package/dist/components/form/form.d.ts +19 -7
  118. package/dist/components/form/form.js +80 -29
  119. package/dist/components/icon/icon.css +2 -2
  120. package/dist/components/icon/icon.module.js +1 -1
  121. package/dist/components/link/link.css +6 -5
  122. package/dist/components/link/link.module.js +1 -1
  123. package/dist/components/menu/menu.css +52 -47
  124. package/dist/components/menu/menu.d.ts +32 -25
  125. package/dist/components/menu/menu.js +75 -124
  126. package/dist/components/menu/menu.module.js +8 -8
  127. package/dist/components/nav/nav-context.d.ts +1 -1
  128. package/dist/components/nav/nav-item-view.d.ts +10 -13
  129. package/dist/components/nav/nav-item-view.js +42 -54
  130. package/dist/components/nav/nav.css +150 -119
  131. package/dist/components/nav/nav.d.ts +61 -17
  132. package/dist/components/nav/nav.js +271 -176
  133. package/dist/components/nav/nav.module.js +17 -15
  134. package/dist/components/number-field/number-field.css +153 -64
  135. package/dist/components/number-field/number-field.d.ts +2 -2
  136. package/dist/components/number-field/number-field.js +112 -91
  137. package/dist/components/number-field/number-field.module.js +6 -6
  138. package/dist/components/number-field/number-input.d.ts +43 -23
  139. package/dist/components/number-field/number-input.js +179 -125
  140. package/dist/components/otp-field/otp-field.css +153 -60
  141. package/dist/components/otp-field/otp-field.d.ts +2 -2
  142. package/dist/components/otp-field/otp-field.js +62 -46
  143. package/dist/components/otp-field/otp-field.module.js +4 -4
  144. package/dist/components/otp-field/otp-input.d.ts +8 -6
  145. package/dist/components/otp-field/otp-input.js +92 -92
  146. package/dist/components/pagination/pagination.d.ts +46 -15
  147. package/dist/components/pagination/pagination.js +217 -224
  148. package/dist/components/password-field/password-field.css +23 -23
  149. package/dist/components/password-field/password-field.js +107 -85
  150. package/dist/components/password-field/password-field.module.js +8 -8
  151. package/dist/components/password-field/password-strength.d.ts +107 -3
  152. package/dist/components/password-field/password-strength.js +569 -92
  153. package/dist/components/photo-field/photo-field.js +137 -112
  154. package/dist/components/photo-field/photo-input.css +67 -44
  155. package/dist/components/photo-field/photo-input.d.ts +59 -15
  156. package/dist/components/photo-field/photo-input.js +173 -86
  157. package/dist/components/photo-field/photo-input.module.js +10 -8
  158. package/dist/components/popover/popover.css +41 -41
  159. package/dist/components/popover/popover.d.ts +66 -25
  160. package/dist/components/popover/popover.js +332 -217
  161. package/dist/components/popover/popover.module.js +15 -19
  162. package/dist/components/radio-group-field/radio-group-field.js +80 -71
  163. package/dist/components/radio-group-field/radio-group.css +112 -60
  164. package/dist/components/radio-group-field/radio-group.d.ts +19 -3
  165. package/dist/components/radio-group-field/radio-group.js +66 -23
  166. package/dist/components/radio-group-field/radio-group.module.js +4 -4
  167. package/dist/components/segmented-control-field/segmented-control-field.d.ts +1 -1
  168. package/dist/components/segmented-control-field/segmented-control-field.js +111 -96
  169. package/dist/components/segmented-control-field/segmented-control.css +132 -79
  170. package/dist/components/segmented-control-field/segmented-control.d.ts +39 -15
  171. package/dist/components/segmented-control-field/segmented-control.js +124 -41
  172. package/dist/components/segmented-control-field/segmented-control.module.js +4 -4
  173. package/dist/components/select-field/select.css +214 -101
  174. package/dist/components/select-field/select.d.ts +43 -11
  175. package/dist/components/select-field/select.js +194 -109
  176. package/dist/components/select-field/select.module.js +14 -14
  177. package/dist/components/skeleton/skeleton.css +4 -4
  178. package/dist/components/skeleton/skeleton.module.js +3 -3
  179. package/dist/components/stale/stale.css +15 -15
  180. package/dist/components/stale/stale.d.ts +27 -3
  181. package/dist/components/stale/stale.js +147 -66
  182. package/dist/components/stale/stale.module.js +6 -6
  183. package/dist/components/status-message/status-message.css +22 -22
  184. package/dist/components/status-message/status-message.module.js +6 -6
  185. package/dist/components/switch-field/switch-field.js +77 -57
  186. package/dist/components/switch-field/switch.css +112 -63
  187. package/dist/components/switch-field/switch.d.ts +20 -3
  188. package/dist/components/switch-field/switch.js +70 -27
  189. package/dist/components/switch-field/switch.module.js +4 -4
  190. package/dist/components/tabs/tabs.css +32 -32
  191. package/dist/components/tabs/tabs.d.ts +21 -7
  192. package/dist/components/tabs/tabs.js +73 -14
  193. package/dist/components/tabs/tabs.module.js +7 -7
  194. package/dist/components/tag/tag.css +84 -84
  195. package/dist/components/tag/tag.module.js +3 -3
  196. package/dist/components/tag-group/tag-group.css +94 -94
  197. package/dist/components/tag-group/tag-group.module.js +4 -4
  198. package/dist/components/text-field/text-field.css +159 -82
  199. package/dist/components/text-field/text-field.d.ts +1 -1
  200. package/dist/components/text-field/text-field.js +139 -110
  201. package/dist/components/text-field/text-field.module.js +9 -9
  202. package/dist/components/text-field/text-input.d.ts +81 -45
  203. package/dist/components/text-field/text-input.js +366 -217
  204. package/dist/components/textarea-field/textarea-field.css +7 -2
  205. package/dist/components/textarea-field/textarea-field.js +72 -56
  206. package/dist/components/textarea-field/textarea-field.module.js +2 -2
  207. package/dist/components/time-field/time-field.js +153 -60
  208. package/dist/components/time-field/time-input.d.ts +21 -10
  209. package/dist/components/time-field/time-input.js +22 -11
  210. package/dist/components/toast/toast-provider.css +34 -31
  211. package/dist/components/toast/toast-provider.d.ts +63 -14
  212. package/dist/components/toast/toast-provider.js +174 -111
  213. package/dist/components/toast/toast-provider.module.js +7 -7
  214. package/dist/components/toggle-group-field/toggle-group-field.d.ts +1 -1
  215. package/dist/components/toggle-group-field/toggle-group-field.js +95 -89
  216. package/dist/components/toggle-group-field/toggle-group.css +117 -67
  217. package/dist/components/toggle-group-field/toggle-group.d.ts +2 -2
  218. package/dist/components/toggle-group-field/toggle-group.js +2 -2
  219. package/dist/components/toggle-group-field/toggle-group.module.js +2 -2
  220. package/dist/components/tooltip/tooltip.css +4 -4
  221. package/dist/components/tooltip/tooltip.module.js +1 -1
  222. package/dist/data-table/data-table-content.js +6 -5
  223. package/dist/data-table/data-table-parts.d.ts +41 -13
  224. package/dist/data-table/data-table-parts.js +213 -172
  225. package/dist/data-table/data-table-selection.d.ts +105 -3
  226. package/dist/data-table/data-table-selection.js +654 -145
  227. package/dist/data-table/data-table.css +125 -128
  228. package/dist/data-table/data-table.d.ts +21 -26
  229. package/dist/data-table/data-table.js +20 -23
  230. package/dist/data-table/data-table.module.js +32 -34
  231. package/dist/data-table/index.d.ts +2 -2
  232. package/dist/index.js +3 -3
  233. package/dist/lib/calendar/calendar-navigation.d.ts +39 -5
  234. package/dist/lib/calendar/calendar-navigation.js +185 -118
  235. package/dist/lib/calendar/calendar-parts.d.ts +143 -0
  236. package/dist/lib/calendar/calendar-parts.js +540 -0
  237. package/dist/lib/calendar/calendar-prefab.d.ts +52 -0
  238. package/dist/lib/calendar/calendar-prefab.js +311 -0
  239. package/dist/lib/calendar/calendar-year.d.ts +3 -1
  240. package/dist/lib/calendar/calendar-year.js +139 -131
  241. package/dist/lib/calendar/temporal.css +325 -232
  242. package/dist/lib/calendar/temporal.d.ts +67 -82
  243. package/dist/lib/calendar/temporal.js +258 -569
  244. package/dist/lib/calendar/temporal.module.js +38 -38
  245. package/dist/lib/forms/use-connected-field.d.ts +1 -1
  246. package/dist/lib/forms/use-connected-field.js +1 -1
  247. package/dist/lib/render-as.d.ts +13 -0
  248. package/dist/lib/render-as.js +46 -0
  249. package/dist/tokens.css +6 -3
  250. package/package.json +1 -1
  251. package/tokens/dark.tokens.json +6 -0
  252. package/tokens/sys.tokens.json +7 -0
  253. package/dist/components/button/close-button.d.ts +0 -16
  254. package/dist/components/button/close-button.js +0 -30
@@ -1,26 +1,20 @@
1
- import type { CalendarDate } from "@internationalized/date";
2
- import { type ReactNode, type Ref } from "react";
3
- import { type DateInputProps as AriaDateInputProps, type CalendarProps as AriaCalendarProps, type DateSegmentProps as AriaDateSegmentProps, type DialogProps as AriaDialogProps, type GroupProps as AriaGroupProps, type PopoverProps as AriaPopoverProps, type RangeCalendarProps as AriaRangeCalendarProps } from "react-aria-components";
4
- import { type FieldProps, type FieldState } from "../../components/field/index.ts";
5
- import { type CalendarNavigationIcons, type CalendarNavigationLabels } from "./calendar-navigation.tsx";
6
- /** The copy a calendar popup announces: its month steppers and its month and year lists. */
7
- export type CalendarLabels = CalendarNavigationLabels & Readonly<{
8
- /** Accessible name of the button that shows the previous month. */
9
- previousMonthLabel: string;
10
- /** Accessible name of the button that shows the next month. */
11
- nextMonthLabel: string;
12
- }>;
13
- /** The icons a calendar popup shows: its month steppers and its month and year lists. */
14
- export type CalendarIcons = CalendarNavigationIcons & Readonly<{
15
- /** The icon of the button that shows the previous month. */
16
- previousIcon: ReactNode;
17
- /** The icon of the button that shows the next month. */
18
- nextIcon: ReactNode;
19
- }>;
1
+ import { useRender } from "@base-ui/react/use-render";
2
+ import type { ComponentProps, ComponentPropsWithRef, ReactNode } from "react";
3
+ import { DateInput as AriaDateInput, DateSegment as AriaDateSegment, Dialog as AriaDialog, type GroupProps as AriaGroupProps, Popover as AriaPopover } from "react-aria-components";
4
+ import { type FieldLabelProps, type FieldState } from "../../components/field/index.ts";
20
5
  export type TemporalStateProps = Readonly<{
21
6
  /** Projected onto the element as presence-style `data-*` attributes. */
22
7
  state?: FieldState;
23
8
  }>;
9
+ export type TemporalLabelProps = FieldLabelProps;
10
+ /**
11
+ * The visible label of a date or time control: a `span` its `Root` names
12
+ * itself by through `aria-labelledby`. Renders nothing without children.
13
+ *
14
+ * @example
15
+ * <DateInput.Label id={labelId}>Service date <Field.Requiredness optionalLabel="optional" /></DateInput.Label>
16
+ */
17
+ export declare const TemporalLabel: (props: TemporalLabelProps) => ReactNode;
24
18
  export type TemporalGroupProps = Omit<AriaGroupProps, "children"> & TemporalStateProps & Readonly<{
25
19
  children?: ReactNode;
26
20
  }>;
@@ -28,113 +22,104 @@ export type TemporalGroupProps = Omit<AriaGroupProps, "children"> & TemporalStat
28
22
  * The shell carrying the border, the ring and the inlay row.
29
23
  *
30
24
  * @example
31
- * <TemporalGroup state={state}><TemporalInput /></TemporalGroup>
25
+ * <DateInput.Group state={state}><DateInput.Input>…</DateInput.Input></DateInput.Group>
32
26
  */
33
27
  export declare const TemporalGroup: ({ state, className, children, ...props }: TemporalGroupProps) => ReactNode;
28
+ export type TemporalSegmentProps = Omit<ComponentProps<typeof AriaDateSegment>, "className"> & Readonly<{
29
+ className?: string;
30
+ }>;
34
31
  /**
35
- * One editable unit of a date or time.
32
+ * One editable unit of a date or time, which an `Input` renders per segment.
36
33
  *
37
34
  * @example
38
- * {segment => <TemporalSegment segment={segment} />}
35
+ * <DateInput.Input>{segment => <DateInput.Segment segment={segment} />}</DateInput.Input>
39
36
  */
40
- export declare const TemporalSegment: ({ className, ...props }: AriaDateSegmentProps) => ReactNode;
41
- export type TemporalInputProps = Omit<AriaDateInputProps, "children">;
37
+ export declare const TemporalSegment: ({ className, ...props }: TemporalSegmentProps) => ReactNode;
38
+ export type TemporalInputProps = Omit<ComponentProps<typeof AriaDateInput>, "className"> & Readonly<{
39
+ className?: string;
40
+ }>;
42
41
  /**
43
- * The segments of one date or time, bare inside a `TemporalGroup`.
42
+ * The segments of one date or time, bare inside a `Group`. Its children render
43
+ * each segment.
44
44
  *
45
45
  * @example
46
- * <TemporalInput />
46
+ * <DateInput.Input>{segment => <DateInput.Segment segment={segment} />}</DateInput.Input>
47
47
  */
48
48
  export declare const TemporalInput: ({ className, ...props }: TemporalInputProps) => ReactNode;
49
+ export type TemporalRangeInputProps = Omit<TemporalInputProps, "slot"> & Readonly<{
50
+ /** The end of the range the segments edit. */
51
+ slot: "start" | "end";
52
+ }>;
49
53
  /**
50
54
  * The segments of one end of a date range, sized to its content.
51
55
  *
52
56
  * @example
53
- * <TemporalRangeInput slot="start" />
57
+ * <DateRangeInput.Input slot="start">{segment => <DateRangeInput.Segment segment={segment} />}</DateRangeInput.Input>
54
58
  */
55
- export declare const TemporalRangeInput: ({ className, ...props }: Omit<AriaDateInputProps, "children" | "slot"> & Readonly<{
56
- slot: "start" | "end";
57
- }>) => ReactNode;
59
+ export declare const TemporalRangeInput: ({ className, ...props }: TemporalRangeInputProps) => ReactNode;
60
+ export type TemporalRangeSeparatorProps = useRender.ComponentProps<"span">;
58
61
  /**
59
- * The dash between a range's start and end.
62
+ * The mark between a range's start and end, such as a dash. Decoration only.
60
63
  *
61
64
  * @example
62
- * <TemporalRangeSeparator />
65
+ * <DateRangeInput.Separator>–</DateRangeInput.Separator>
63
66
  */
64
- export declare const TemporalRangeSeparator: () => ReactNode;
67
+ export declare const TemporalRangeSeparator: ({ render, className, ref, ...props }: TemporalRangeSeparatorProps) => ReactNode;
68
+ export type TemporalRangeSpacerProps = useRender.ComponentProps<"span">;
65
69
  /**
66
70
  * The space that pushes a range's inlays to the end of its group.
67
71
  *
68
72
  * @example
69
- * <TemporalRangeSpacer />
73
+ * <DateRangeInput.Spacer />
70
74
  */
71
- export declare const TemporalRangeSpacer: () => ReactNode;
72
- export type TemporalTriggerProps = Readonly<{
73
- /** Accessible name, surfaced as the tooltip hint and the `aria-label`. */
74
- label: string;
75
- /** The button itself, for the popup to align to. */
76
- ref?: Ref<HTMLButtonElement>;
77
- /** The icon the button shows. */
78
- children: ReactNode;
75
+ export declare const TemporalRangeSpacer: ({ render, className, ref, ...props }: TemporalRangeSpacerProps) => ReactNode;
76
+ export type TemporalButtonProps = Omit<ComponentPropsWithRef<"button">, "type" | "children"> & Readonly<{
77
+ /** The button to render, a kit `Button` or `IconButton`, which renders react-aria's button underneath. */
78
+ render: useRender.RenderProp;
79
79
  }>;
80
80
  /**
81
- * The icon-only button that opens the calendar.
81
+ * The button that opens the calendar. It renders whichever button it is given.
82
82
  *
83
83
  * @example
84
- * <TemporalTrigger label="Open calendar" ref={triggerRef}><CalendarIcon /></TemporalTrigger>
84
+ * <DateInput.Trigger
85
+ * ref={triggerRef}
86
+ * render={
87
+ * <IconButton label="Open calendar" variant="tertiary" size="sm">
88
+ * <CalendarTodayIcon />
89
+ * </IconButton>
90
+ * }
91
+ * />
85
92
  */
86
- export declare const TemporalTrigger: ({ label, ref, children, }: TemporalTriggerProps) => ReactNode;
87
- export type TemporalPopupProps = Omit<AriaPopoverProps, "children"> & Readonly<{
88
- children: AriaDialogProps["children"];
93
+ export declare const TemporalTrigger: ({ render, className, ref, ...props }: TemporalButtonProps) => ReactNode;
94
+ export type TemporalPopoverProps = Omit<ComponentProps<typeof AriaPopover>, "className"> & Readonly<{
95
+ className?: string;
89
96
  }>;
90
97
  /**
91
98
  * The floating surface the calendar lands on, aligned to whatever `triggerRef`
92
99
  * names: the calendar button, rather than the whole field.
93
100
  *
94
101
  * @example
95
- * <TemporalPopup triggerRef={triggerRef}><TemporalCalendar {...labels} /></TemporalPopup>
96
- */
97
- export declare const TemporalPopup: ({ children, placement, ...props }: TemporalPopupProps) => ReactNode;
98
- export type TemporalCalendarProps = Omit<AriaCalendarProps<CalendarDate>, "children"> & CalendarLabels & CalendarIcons;
99
- /**
100
- * A month of days, selecting one. Today, and the month it opens on without a
101
- * value, are read in the `TimeZoneProvider`'s zone.
102
- *
103
- * @example
104
- * <TemporalCalendar {...calendarLabels} {...calendarIcons} />
102
+ * <DateInput.Popover triggerRef={triggerRef}><DateInput.Dialog>…</DateInput.Dialog></DateInput.Popover>
105
103
  */
106
- export declare const TemporalCalendar: ({ className, previousMonthLabel, nextMonthLabel, monthLabel, yearLabel, noMatchingYearLabel, previousIcon, nextIcon, checkIcon, expandIcon, ...props }: TemporalCalendarProps) => ReactNode;
107
- export type TemporalRangeCalendarProps = Omit<AriaRangeCalendarProps<CalendarDate>, "children" | "visibleDuration"> & CalendarLabels & CalendarIcons & Readonly<{
108
- /** Months shown side by side. @default 1 */
109
- visibleMonths?: number;
104
+ export declare const TemporalPopover: ({ className, placement, ...props }: TemporalPopoverProps) => ReactNode;
105
+ export type TemporalDialogProps = Omit<ComponentProps<typeof AriaDialog>, "className"> & Readonly<{
106
+ className?: string;
110
107
  }>;
111
108
  /**
112
- * Days of one or more adjacent months, selecting a continuous range. Today,
113
- * and the month it opens on without a value, are read in the
114
- * `TimeZoneProvider`'s zone.
109
+ * The dialog inside the popover, which holds the calendar and its focus.
115
110
  *
116
111
  * @example
117
- * <TemporalRangeCalendar visibleMonths={2} {...calendarLabels} {...calendarIcons} />
112
+ * <DateInput.Dialog><DateInput.Calendar>…</DateInput.Calendar></DateInput.Dialog>
118
113
  */
119
- export declare const TemporalRangeCalendar: ({ visibleMonths, className, previousMonthLabel, nextMonthLabel, monthLabel, yearLabel, noMatchingYearLabel, previousIcon, nextIcon, checkIcon, expandIcon, ...props }: TemporalRangeCalendarProps) => ReactNode;
120
- export type TemporalFrameIds = Readonly<{
121
- labelId: string;
122
- describedBy?: string;
123
- /** A stable id and name for the control. */
124
- controlId: string;
125
- }>;
126
- export type TemporalFrameProps = Omit<FieldProps, "pending"> & Readonly<{
127
- className?: string;
128
- children: (ids: TemporalFrameIds) => ReactNode;
114
+ export declare const TemporalDialog: ({ className, ...props }: TemporalDialogProps) => ReactNode;
115
+ export type TemporalPopupProps = Omit<TemporalPopoverProps, "children"> & Readonly<{
116
+ /** The calendar the dialog holds. */
117
+ children: TemporalDialogProps["children"];
129
118
  }>;
130
119
  /**
131
- * The label, description and error frame every temporal control shares,
132
- * handing the control the ids it wires `aria-labelledby` and
133
- * `aria-describedby` to.
120
+ * The `Popover` with its `Dialog`, in one part.
134
121
  *
135
122
  * @example
136
- * <TemporalFrame label="Period" optionalLabel="optional">
137
- * {({ labelId }) => <DateInput.Root aria-labelledby={labelId} />}
138
- * </TemporalFrame>
123
+ * <DateInput.Popup triggerRef={triggerRef}><DateInput.Calendar>…</DateInput.Calendar></DateInput.Popup>
139
124
  */
140
- export declare const TemporalFrame: ({ label, description, errors, requiredness, optionalLabel, dirty, touched, className, children, }: TemporalFrameProps) => ReactNode;
125
+ export declare const TemporalPopup: ({ children, ...props }: TemporalPopupProps) => ReactNode;