@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
@@ -0,0 +1,52 @@
1
+ import type { ReactNode } from "react";
2
+ import { type CalendarNavigationIcons, type CalendarNavigationLabels } from "./calendar-navigation.tsx";
3
+ import { type CalendarRootProps, type RangeCalendarRootProps } from "./calendar-parts.tsx";
4
+ /** The copy a calendar popup announces: its month steppers and its month and year lists. */
5
+ export type CalendarLabels = CalendarNavigationLabels & Readonly<{
6
+ /** Accessible name of the button that shows the previous month. */
7
+ previousMonthLabel: string;
8
+ /** Accessible name of the button that shows the next month. */
9
+ nextMonthLabel: string;
10
+ }>;
11
+ /** The icons a calendar popup shows: its month steppers and its month and year lists. */
12
+ export type CalendarIcons = CalendarNavigationIcons & Readonly<{
13
+ /** The icon of the button that shows the previous month. */
14
+ previousIcon: ReactNode;
15
+ /** The icon of the button that shows the next month. */
16
+ nextIcon: ReactNode;
17
+ }>;
18
+ /**
19
+ * A calendar's header: the month steppers around the month and year pickers.
20
+ *
21
+ * @example
22
+ * <StandardCalendarHeader {...calendarLabels} {...calendarIcons} />
23
+ */
24
+ export declare const StandardCalendarHeader: ({ previousMonthLabel, nextMonthLabel, monthLabel, yearLabel, noMatchingYearLabel, previousIcon, nextIcon, checkIcon, expandIcon, }: CalendarLabels & CalendarIcons) => ReactNode;
25
+ /**
26
+ * One month's grid: the weekday names over the days.
27
+ *
28
+ * @example
29
+ * <StandardCalendarGrid monthOffset={1} />
30
+ */
31
+ export declare const StandardCalendarGrid: ({ monthOffset, }: Readonly<{
32
+ /** Months after the first visible one this grid shows. */
33
+ monthOffset?: number;
34
+ }>) => ReactNode;
35
+ export type TemporalCalendarProps = Omit<CalendarRootProps, "children"> & CalendarLabels & CalendarIcons;
36
+ /**
37
+ * A calendar with its month steppers, month and year pickers and grid, built
38
+ * from the calendar parts.
39
+ *
40
+ * @example
41
+ * <TemporalCalendar {...calendarLabels} {...calendarIcons} />
42
+ */
43
+ export declare const TemporalCalendar: ({ previousMonthLabel, nextMonthLabel, monthLabel, yearLabel, noMatchingYearLabel, previousIcon, nextIcon, checkIcon, expandIcon, ...props }: TemporalCalendarProps) => ReactNode;
44
+ export type TemporalRangeCalendarProps = Omit<RangeCalendarRootProps, "children"> & CalendarLabels & CalendarIcons;
45
+ /**
46
+ * A range calendar with its month steppers, month and year pickers and a grid
47
+ * per visible month, built from the calendar parts.
48
+ *
49
+ * @example
50
+ * <TemporalRangeCalendar visibleMonths={2} {...calendarLabels} {...calendarIcons} />
51
+ */
52
+ export declare const TemporalRangeCalendar: ({ visibleMonths, previousMonthLabel, nextMonthLabel, monthLabel, yearLabel, noMatchingYearLabel, previousIcon, nextIcon, checkIcon, expandIcon, ...props }: TemporalRangeCalendarProps) => ReactNode;
@@ -0,0 +1,311 @@
1
+ import { IconButton } from "../../components/button/button.js";
2
+ import { CalendarMonthPicker, CalendarPickers, CalendarYearPicker } from "./calendar-navigation.js";
3
+ import { CalendarCell, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeader, CalendarHeaderCell, CalendarMonths, CalendarNext, CalendarPrevious, CalendarRoot, RangeCalendarRoot } from "./calendar-parts.js";
4
+ import { c } from "react/compiler-runtime";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ // src/lib/calendar/calendar-prefab.tsx
7
+ /**
8
+ * A calendar's header: the month steppers around the month and year pickers.
9
+ *
10
+ * @example
11
+ * <StandardCalendarHeader {...calendarLabels} {...calendarIcons} />
12
+ */
13
+ var StandardCalendarHeader = (t0) => {
14
+ const $ = c(22);
15
+ const { previousMonthLabel, nextMonthLabel, monthLabel, yearLabel, noMatchingYearLabel, previousIcon, nextIcon, checkIcon, expandIcon } = t0;
16
+ let t1;
17
+ if ($[0] !== previousIcon || $[1] !== previousMonthLabel) {
18
+ t1 = /* @__PURE__ */ jsx(CalendarPrevious, { render: /* @__PURE__ */ jsx(IconButton, {
19
+ label: previousMonthLabel,
20
+ variant: "tertiary",
21
+ size: "md",
22
+ children: previousIcon
23
+ }) });
24
+ $[0] = previousIcon;
25
+ $[1] = previousMonthLabel;
26
+ $[2] = t1;
27
+ } else t1 = $[2];
28
+ let t2;
29
+ if ($[3] !== checkIcon || $[4] !== expandIcon || $[5] !== monthLabel) {
30
+ t2 = /* @__PURE__ */ jsx(CalendarMonthPicker, {
31
+ label: monthLabel,
32
+ checkIcon,
33
+ expandIcon
34
+ });
35
+ $[3] = checkIcon;
36
+ $[4] = expandIcon;
37
+ $[5] = monthLabel;
38
+ $[6] = t2;
39
+ } else t2 = $[6];
40
+ let t3;
41
+ if ($[7] !== checkIcon || $[8] !== expandIcon || $[9] !== noMatchingYearLabel || $[10] !== yearLabel) {
42
+ t3 = /* @__PURE__ */ jsx(CalendarYearPicker, {
43
+ label: yearLabel,
44
+ noMatchingYearLabel,
45
+ checkIcon,
46
+ expandIcon
47
+ });
48
+ $[7] = checkIcon;
49
+ $[8] = expandIcon;
50
+ $[9] = noMatchingYearLabel;
51
+ $[10] = yearLabel;
52
+ $[11] = t3;
53
+ } else t3 = $[11];
54
+ let t4;
55
+ if ($[12] !== t2 || $[13] !== t3) {
56
+ t4 = /* @__PURE__ */ jsxs(CalendarPickers, { children: [t2, t3] });
57
+ $[12] = t2;
58
+ $[13] = t3;
59
+ $[14] = t4;
60
+ } else t4 = $[14];
61
+ let t5;
62
+ if ($[15] !== nextIcon || $[16] !== nextMonthLabel) {
63
+ t5 = /* @__PURE__ */ jsx(CalendarNext, { render: /* @__PURE__ */ jsx(IconButton, {
64
+ label: nextMonthLabel,
65
+ variant: "tertiary",
66
+ size: "md",
67
+ children: nextIcon
68
+ }) });
69
+ $[15] = nextIcon;
70
+ $[16] = nextMonthLabel;
71
+ $[17] = t5;
72
+ } else t5 = $[17];
73
+ let t6;
74
+ if ($[18] !== t1 || $[19] !== t4 || $[20] !== t5) {
75
+ t6 = /* @__PURE__ */ jsxs(CalendarHeader, { children: [
76
+ t1,
77
+ t4,
78
+ t5
79
+ ] });
80
+ $[18] = t1;
81
+ $[19] = t4;
82
+ $[20] = t5;
83
+ $[21] = t6;
84
+ } else t6 = $[21];
85
+ return t6;
86
+ };
87
+ /**
88
+ * One month's grid: the weekday names over the days.
89
+ *
90
+ * @example
91
+ * <StandardCalendarGrid monthOffset={1} />
92
+ */
93
+ var StandardCalendarGrid = (t0) => {
94
+ const $ = c(6);
95
+ const { monthOffset } = t0;
96
+ let t1;
97
+ if ($[0] !== monthOffset) {
98
+ t1 = monthOffset === void 0 ? void 0 : { months: monthOffset };
99
+ $[0] = monthOffset;
100
+ $[1] = t1;
101
+ } else t1 = $[1];
102
+ let t2;
103
+ let t3;
104
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
105
+ t2 = /* @__PURE__ */ jsx(CalendarGridHeader, { children: _temp });
106
+ t3 = /* @__PURE__ */ jsx(CalendarGridBody, { children: _temp2 });
107
+ $[2] = t2;
108
+ $[3] = t3;
109
+ } else {
110
+ t2 = $[2];
111
+ t3 = $[3];
112
+ }
113
+ let t4;
114
+ if ($[4] !== t1) {
115
+ t4 = /* @__PURE__ */ jsxs(CalendarGrid, {
116
+ offset: t1,
117
+ children: [t2, t3]
118
+ });
119
+ $[4] = t1;
120
+ $[5] = t4;
121
+ } else t4 = $[5];
122
+ return t4;
123
+ };
124
+ /**
125
+ * A calendar with its month steppers, month and year pickers and grid, built
126
+ * from the calendar parts.
127
+ *
128
+ * @example
129
+ * <TemporalCalendar {...calendarLabels} {...calendarIcons} />
130
+ */
131
+ var TemporalCalendar = (t0) => {
132
+ const $ = c(25);
133
+ let checkIcon;
134
+ let expandIcon;
135
+ let monthLabel;
136
+ let nextIcon;
137
+ let nextMonthLabel;
138
+ let noMatchingYearLabel;
139
+ let previousIcon;
140
+ let previousMonthLabel;
141
+ let props;
142
+ let yearLabel;
143
+ if ($[0] !== t0) {
144
+ ({previousMonthLabel, nextMonthLabel, monthLabel, yearLabel, noMatchingYearLabel, previousIcon, nextIcon, checkIcon, expandIcon, ...props} = t0);
145
+ $[0] = t0;
146
+ $[1] = checkIcon;
147
+ $[2] = expandIcon;
148
+ $[3] = monthLabel;
149
+ $[4] = nextIcon;
150
+ $[5] = nextMonthLabel;
151
+ $[6] = noMatchingYearLabel;
152
+ $[7] = previousIcon;
153
+ $[8] = previousMonthLabel;
154
+ $[9] = props;
155
+ $[10] = yearLabel;
156
+ } else {
157
+ checkIcon = $[1];
158
+ expandIcon = $[2];
159
+ monthLabel = $[3];
160
+ nextIcon = $[4];
161
+ nextMonthLabel = $[5];
162
+ noMatchingYearLabel = $[6];
163
+ previousIcon = $[7];
164
+ previousMonthLabel = $[8];
165
+ props = $[9];
166
+ yearLabel = $[10];
167
+ }
168
+ let t1;
169
+ if ($[11] !== checkIcon || $[12] !== expandIcon || $[13] !== monthLabel || $[14] !== nextIcon || $[15] !== nextMonthLabel || $[16] !== noMatchingYearLabel || $[17] !== previousIcon || $[18] !== previousMonthLabel || $[19] !== yearLabel) {
170
+ t1 = /* @__PURE__ */ jsx(StandardCalendarHeader, {
171
+ previousMonthLabel,
172
+ nextMonthLabel,
173
+ monthLabel,
174
+ yearLabel,
175
+ noMatchingYearLabel,
176
+ previousIcon,
177
+ nextIcon,
178
+ checkIcon,
179
+ expandIcon
180
+ });
181
+ $[11] = checkIcon;
182
+ $[12] = expandIcon;
183
+ $[13] = monthLabel;
184
+ $[14] = nextIcon;
185
+ $[15] = nextMonthLabel;
186
+ $[16] = noMatchingYearLabel;
187
+ $[17] = previousIcon;
188
+ $[18] = previousMonthLabel;
189
+ $[19] = yearLabel;
190
+ $[20] = t1;
191
+ } else t1 = $[20];
192
+ let t2;
193
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
194
+ t2 = /* @__PURE__ */ jsx(StandardCalendarGrid, {});
195
+ $[21] = t2;
196
+ } else t2 = $[21];
197
+ let t3;
198
+ if ($[22] !== props || $[23] !== t1) {
199
+ t3 = /* @__PURE__ */ jsxs(CalendarRoot, {
200
+ ...props,
201
+ children: [t1, t2]
202
+ });
203
+ $[22] = props;
204
+ $[23] = t1;
205
+ $[24] = t3;
206
+ } else t3 = $[24];
207
+ return t3;
208
+ };
209
+ /**
210
+ * A range calendar with its month steppers, month and year pickers and a grid
211
+ * per visible month, built from the calendar parts.
212
+ *
213
+ * @example
214
+ * <TemporalRangeCalendar visibleMonths={2} {...calendarLabels} {...calendarIcons} />
215
+ */
216
+ var TemporalRangeCalendar = (t0) => {
217
+ const $ = c(29);
218
+ let checkIcon;
219
+ let expandIcon;
220
+ let monthLabel;
221
+ let nextIcon;
222
+ let nextMonthLabel;
223
+ let noMatchingYearLabel;
224
+ let previousIcon;
225
+ let previousMonthLabel;
226
+ let props;
227
+ let t1;
228
+ let yearLabel;
229
+ if ($[0] !== t0) {
230
+ ({visibleMonths: t1, previousMonthLabel, nextMonthLabel, monthLabel, yearLabel, noMatchingYearLabel, previousIcon, nextIcon, checkIcon, expandIcon, ...props} = t0);
231
+ $[0] = t0;
232
+ $[1] = checkIcon;
233
+ $[2] = expandIcon;
234
+ $[3] = monthLabel;
235
+ $[4] = nextIcon;
236
+ $[5] = nextMonthLabel;
237
+ $[6] = noMatchingYearLabel;
238
+ $[7] = previousIcon;
239
+ $[8] = previousMonthLabel;
240
+ $[9] = props;
241
+ $[10] = t1;
242
+ $[11] = yearLabel;
243
+ } else {
244
+ checkIcon = $[1];
245
+ expandIcon = $[2];
246
+ monthLabel = $[3];
247
+ nextIcon = $[4];
248
+ nextMonthLabel = $[5];
249
+ noMatchingYearLabel = $[6];
250
+ previousIcon = $[7];
251
+ previousMonthLabel = $[8];
252
+ props = $[9];
253
+ t1 = $[10];
254
+ yearLabel = $[11];
255
+ }
256
+ const visibleMonths = t1 === void 0 ? 1 : t1;
257
+ let t2;
258
+ if ($[12] !== checkIcon || $[13] !== expandIcon || $[14] !== monthLabel || $[15] !== nextIcon || $[16] !== nextMonthLabel || $[17] !== noMatchingYearLabel || $[18] !== previousIcon || $[19] !== previousMonthLabel || $[20] !== yearLabel) {
259
+ t2 = /* @__PURE__ */ jsx(StandardCalendarHeader, {
260
+ previousMonthLabel,
261
+ nextMonthLabel,
262
+ monthLabel,
263
+ yearLabel,
264
+ noMatchingYearLabel,
265
+ previousIcon,
266
+ nextIcon,
267
+ checkIcon,
268
+ expandIcon
269
+ });
270
+ $[12] = checkIcon;
271
+ $[13] = expandIcon;
272
+ $[14] = monthLabel;
273
+ $[15] = nextIcon;
274
+ $[16] = nextMonthLabel;
275
+ $[17] = noMatchingYearLabel;
276
+ $[18] = previousIcon;
277
+ $[19] = previousMonthLabel;
278
+ $[20] = yearLabel;
279
+ $[21] = t2;
280
+ } else t2 = $[21];
281
+ let t3;
282
+ if ($[22] !== visibleMonths) {
283
+ t3 = /* @__PURE__ */ jsx(CalendarMonths, { children: Array.from({ length: Math.max(1, visibleMonths) }, _temp3) });
284
+ $[22] = visibleMonths;
285
+ $[23] = t3;
286
+ } else t3 = $[23];
287
+ let t4;
288
+ if ($[24] !== props || $[25] !== t2 || $[26] !== t3 || $[27] !== visibleMonths) {
289
+ t4 = /* @__PURE__ */ jsxs(RangeCalendarRoot, {
290
+ visibleMonths,
291
+ ...props,
292
+ children: [t2, t3]
293
+ });
294
+ $[24] = props;
295
+ $[25] = t2;
296
+ $[26] = t3;
297
+ $[27] = visibleMonths;
298
+ $[28] = t4;
299
+ } else t4 = $[28];
300
+ return t4;
301
+ };
302
+ function _temp(day) {
303
+ return /* @__PURE__ */ jsx(CalendarHeaderCell, { children: day });
304
+ }
305
+ function _temp2(date) {
306
+ return /* @__PURE__ */ jsx(CalendarCell, { date });
307
+ }
308
+ function _temp3(_, month) {
309
+ return /* @__PURE__ */ jsx(StandardCalendarGrid, { monthOffset: month }, month);
310
+ }
311
+ export { StandardCalendarGrid, StandardCalendarHeader, TemporalCalendar, TemporalRangeCalendar };
@@ -9,6 +9,8 @@ export type CalendarYearProps = CalendarNavigationIcons & Readonly<{
9
9
  label: string;
10
10
  /** What the list says when no year matches the typed text. */
11
11
  noMatchLabel: string;
12
+ /** Applied to the year control. */
13
+ className?: string;
12
14
  }>;
13
15
  /**
14
16
  * The year control in a calendar header: every year in the focused date's era,
@@ -18,4 +20,4 @@ export type CalendarYearProps = CalendarNavigationIcons & Readonly<{
18
20
  * @example
19
21
  * <CalendarYear state={state} container={containerRef} label="Year" noMatchLabel="No matching year." checkIcon={<CheckIcon />} />
20
22
  */
21
- export declare const CalendarYear: ({ state, container, label, noMatchLabel, checkIcon, expandIcon, }: CalendarYearProps) => ReactNode;
23
+ export declare const CalendarYear: ({ state, container, label, noMatchLabel, checkIcon, expandIcon, className, }: CalendarYearProps) => ReactNode;