@slipstream-ui/core 0.11.9 → 0.11.10

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 (237) hide show
  1. package/dist/index.d.mts +117 -2
  2. package/dist/index.d.ts +117 -2
  3. package/dist/index.js +1084 -827
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1082 -827
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/manifests/accordion.manifest.json +1 -1
  8. package/dist/manifests/alert.manifest.json +1 -1
  9. package/dist/manifests/announcement-bar.manifest.json +1 -1
  10. package/dist/manifests/app-shell.manifest.json +1 -1
  11. package/dist/manifests/applied-filters.manifest.json +1 -1
  12. package/dist/manifests/article-card.manifest.json +1 -1
  13. package/dist/manifests/auth-layout.manifest.json +1 -1
  14. package/dist/manifests/autocomplete.manifest.json +1 -1
  15. package/dist/manifests/avatar.manifest.json +1 -1
  16. package/dist/manifests/badge.manifest.json +1 -1
  17. package/dist/manifests/block.manifest.json +1 -1
  18. package/dist/manifests/bottom-nav.manifest.json +1 -1
  19. package/dist/manifests/breadcrumb.manifest.json +1 -1
  20. package/dist/manifests/button-group.manifest.json +1 -1
  21. package/dist/manifests/button.manifest.json +1 -1
  22. package/dist/manifests/calendar.manifest.json +1 -1
  23. package/dist/manifests/card.manifest.json +1 -1
  24. package/dist/manifests/checkbox.manifest.json +1 -1
  25. package/dist/manifests/comparison-table.manifest.json +1 -1
  26. package/dist/manifests/confirm-dialog.manifest.json +1 -1
  27. package/dist/manifests/contact-strip.manifest.json +1 -1
  28. package/dist/manifests/container.manifest.json +1 -1
  29. package/dist/manifests/cover-image.manifest.json +1 -1
  30. package/dist/manifests/cta-section.manifest.json +1 -1
  31. package/dist/manifests/data-table.manifest.json +1 -1
  32. package/dist/manifests/date-picker-popover.manifest.json +1 -1
  33. package/dist/manifests/date-picker.manifest.json +1 -1
  34. package/dist/manifests/date-range-picker.manifest.json +1 -1
  35. package/dist/manifests/deal-card.manifest.json +1 -1
  36. package/dist/manifests/dialog.manifest.json +1 -1
  37. package/dist/manifests/document-card.manifest.json +1 -1
  38. package/dist/manifests/drawer.manifest.json +1 -1
  39. package/dist/manifests/empty-state.manifest.json +1 -1
  40. package/dist/manifests/entity-card.manifest.json +1 -1
  41. package/dist/manifests/feature-grid.manifest.json +1 -1
  42. package/dist/manifests/feature-row.manifest.json +1 -1
  43. package/dist/manifests/fieldset.manifest.json +1 -1
  44. package/dist/manifests/file-upload.manifest.json +1 -1
  45. package/dist/manifests/filter-bar.manifest.json +1 -1
  46. package/dist/manifests/filter-chips.manifest.json +1 -1
  47. package/dist/manifests/filter-panel.manifest.json +1 -1
  48. package/dist/manifests/flex.manifest.json +1 -1
  49. package/dist/manifests/form-field.manifest.json +1 -1
  50. package/dist/manifests/form-layout.manifest.json +1 -1
  51. package/dist/manifests/form.manifest.json +1 -1
  52. package/dist/manifests/grid.manifest.json +1 -1
  53. package/dist/manifests/heading.manifest.json +1 -1
  54. package/dist/manifests/hero.manifest.json +1 -1
  55. package/dist/manifests/image.manifest.json +1 -1
  56. package/dist/manifests/input-group.manifest.json +1 -1
  57. package/dist/manifests/input.manifest.json +1 -1
  58. package/dist/manifests/label.manifest.json +1 -1
  59. package/dist/manifests/link-tabs.manifest.json +1 -1
  60. package/dist/manifests/link.manifest.json +1 -1
  61. package/dist/manifests/list-toolbar.manifest.json +1 -1
  62. package/dist/manifests/list.manifest.json +1 -1
  63. package/dist/manifests/load-more.manifest.json +1 -1
  64. package/dist/manifests/logo-cloud.manifest.json +1 -1
  65. package/dist/manifests/media-card.manifest.json +161 -0
  66. package/dist/manifests/menu.manifest.json +1 -1
  67. package/dist/manifests/metric-card.manifest.json +1 -1
  68. package/dist/manifests/month-schedule.manifest.json +217 -0
  69. package/dist/manifests/multi-select.manifest.json +1 -1
  70. package/dist/manifests/newsletter.manifest.json +1 -1
  71. package/dist/manifests/page-header.manifest.json +1 -1
  72. package/dist/manifests/pagination.manifest.json +1 -1
  73. package/dist/manifests/password-input.manifest.json +1 -1
  74. package/dist/manifests/popover.manifest.json +1 -1
  75. package/dist/manifests/process-steps.manifest.json +1 -1
  76. package/dist/manifests/progress.manifest.json +1 -1
  77. package/dist/manifests/prose.manifest.json +1 -1
  78. package/dist/manifests/radio.manifest.json +1 -1
  79. package/dist/manifests/range-slider.manifest.json +1 -1
  80. package/dist/manifests/search.manifest.json +1 -1
  81. package/dist/manifests/section-heading.manifest.json +1 -1
  82. package/dist/manifests/section.manifest.json +1 -1
  83. package/dist/manifests/segmented-control.manifest.json +1 -1
  84. package/dist/manifests/select-menu.manifest.json +1 -1
  85. package/dist/manifests/select.manifest.json +1 -1
  86. package/dist/manifests/separator.manifest.json +1 -1
  87. package/dist/manifests/site-footer.manifest.json +1 -1
  88. package/dist/manifests/site-header.manifest.json +1 -1
  89. package/dist/manifests/skeleton.manifest.json +1 -1
  90. package/dist/manifests/spinner.manifest.json +1 -1
  91. package/dist/manifests/stat-band.manifest.json +1 -1
  92. package/dist/manifests/stepper.manifest.json +1 -1
  93. package/dist/manifests/switch.manifest.json +1 -1
  94. package/dist/manifests/table-card.manifest.json +1 -1
  95. package/dist/manifests/table-of-contents.manifest.json +1 -1
  96. package/dist/manifests/table.manifest.json +1 -1
  97. package/dist/manifests/tabs.manifest.json +1 -1
  98. package/dist/manifests/testimonial.manifest.json +1 -1
  99. package/dist/manifests/text.manifest.json +1 -1
  100. package/dist/manifests/textarea.manifest.json +1 -1
  101. package/dist/manifests/theme-toggle.manifest.json +1 -1
  102. package/dist/manifests/time-picker.manifest.json +1 -1
  103. package/dist/manifests/timeline.manifest.json +1 -1
  104. package/dist/manifests/toast.manifest.json +1 -1
  105. package/dist/manifests/tombstone-card.manifest.json +1 -1
  106. package/dist/manifests/tooltip.manifest.json +1 -1
  107. package/dist/src/components/media-card/MediaCard.d.ts +61 -0
  108. package/dist/src/components/media-card/MediaCard.js +88 -0
  109. package/dist/src/components/media-card/MediaCard.js.map +1 -0
  110. package/dist/src/components/media-card/MediaCard.mjs +54 -0
  111. package/dist/src/components/media-card/MediaCard.mjs.map +1 -0
  112. package/dist/src/components/media-card/index.d.ts +1 -0
  113. package/dist/src/components/media-card/index.js +23 -0
  114. package/dist/src/components/media-card/index.js.map +1 -0
  115. package/dist/src/components/media-card/index.mjs +2 -0
  116. package/dist/src/components/media-card/index.mjs.map +1 -0
  117. package/dist/src/components/month-schedule/MonthSchedule.d.ts +56 -0
  118. package/dist/src/components/month-schedule/MonthSchedule.js +245 -0
  119. package/dist/src/components/month-schedule/MonthSchedule.js.map +1 -0
  120. package/dist/src/components/month-schedule/MonthSchedule.mjs +219 -0
  121. package/dist/src/components/month-schedule/MonthSchedule.mjs.map +1 -0
  122. package/dist/src/components/month-schedule/index.d.ts +1 -0
  123. package/dist/src/components/month-schedule/index.js +23 -0
  124. package/dist/src/components/month-schedule/index.js.map +1 -0
  125. package/dist/src/components/month-schedule/index.mjs +2 -0
  126. package/dist/src/components/month-schedule/index.mjs.map +1 -0
  127. package/dist/src/index.d.ts +2 -0
  128. package/dist/styles-full.css +1 -1
  129. package/dist/styles.css +1 -1
  130. package/package.json +1 -1
  131. package/src/components/media-card/MediaCard.test.tsx +97 -0
  132. package/src/components/media-card/MediaCard.tsx +116 -0
  133. package/src/components/media-card/index.ts +1 -0
  134. package/src/components/month-schedule/MonthSchedule.test.tsx +137 -0
  135. package/src/components/month-schedule/MonthSchedule.tsx +332 -0
  136. package/src/components/month-schedule/index.ts +1 -0
  137. package/src/index.ts +2 -0
  138. package/src/manifests/accordion.manifest.json +1 -1
  139. package/src/manifests/alert.manifest.json +1 -1
  140. package/src/manifests/announcement-bar.manifest.json +1 -1
  141. package/src/manifests/app-shell.manifest.json +1 -1
  142. package/src/manifests/applied-filters.manifest.json +1 -1
  143. package/src/manifests/article-card.manifest.json +1 -1
  144. package/src/manifests/auth-layout.manifest.json +1 -1
  145. package/src/manifests/autocomplete.manifest.json +1 -1
  146. package/src/manifests/avatar.manifest.json +1 -1
  147. package/src/manifests/badge.manifest.json +1 -1
  148. package/src/manifests/block.manifest.json +1 -1
  149. package/src/manifests/bottom-nav.manifest.json +1 -1
  150. package/src/manifests/breadcrumb.manifest.json +1 -1
  151. package/src/manifests/button-group.manifest.json +1 -1
  152. package/src/manifests/button.manifest.json +1 -1
  153. package/src/manifests/calendar.manifest.json +1 -1
  154. package/src/manifests/card.manifest.json +1 -1
  155. package/src/manifests/checkbox.manifest.json +1 -1
  156. package/src/manifests/comparison-table.manifest.json +1 -1
  157. package/src/manifests/confirm-dialog.manifest.json +1 -1
  158. package/src/manifests/contact-strip.manifest.json +1 -1
  159. package/src/manifests/container.manifest.json +1 -1
  160. package/src/manifests/cover-image.manifest.json +1 -1
  161. package/src/manifests/cta-section.manifest.json +1 -1
  162. package/src/manifests/data-table.manifest.json +1 -1
  163. package/src/manifests/date-picker-popover.manifest.json +1 -1
  164. package/src/manifests/date-picker.manifest.json +1 -1
  165. package/src/manifests/date-range-picker.manifest.json +1 -1
  166. package/src/manifests/deal-card.manifest.json +1 -1
  167. package/src/manifests/dialog.manifest.json +1 -1
  168. package/src/manifests/document-card.manifest.json +1 -1
  169. package/src/manifests/drawer.manifest.json +1 -1
  170. package/src/manifests/empty-state.manifest.json +1 -1
  171. package/src/manifests/entity-card.manifest.json +1 -1
  172. package/src/manifests/feature-grid.manifest.json +1 -1
  173. package/src/manifests/feature-row.manifest.json +1 -1
  174. package/src/manifests/fieldset.manifest.json +1 -1
  175. package/src/manifests/file-upload.manifest.json +1 -1
  176. package/src/manifests/filter-bar.manifest.json +1 -1
  177. package/src/manifests/filter-chips.manifest.json +1 -1
  178. package/src/manifests/filter-panel.manifest.json +1 -1
  179. package/src/manifests/flex.manifest.json +1 -1
  180. package/src/manifests/form-field.manifest.json +1 -1
  181. package/src/manifests/form-layout.manifest.json +1 -1
  182. package/src/manifests/form.manifest.json +1 -1
  183. package/src/manifests/grid.manifest.json +1 -1
  184. package/src/manifests/heading.manifest.json +1 -1
  185. package/src/manifests/hero.manifest.json +1 -1
  186. package/src/manifests/image.manifest.json +1 -1
  187. package/src/manifests/input-group.manifest.json +1 -1
  188. package/src/manifests/input.manifest.json +1 -1
  189. package/src/manifests/label.manifest.json +1 -1
  190. package/src/manifests/link-tabs.manifest.json +1 -1
  191. package/src/manifests/link.manifest.json +1 -1
  192. package/src/manifests/list-toolbar.manifest.json +1 -1
  193. package/src/manifests/list.manifest.json +1 -1
  194. package/src/manifests/load-more.manifest.json +1 -1
  195. package/src/manifests/logo-cloud.manifest.json +1 -1
  196. package/src/manifests/media-card.manifest.json +161 -0
  197. package/src/manifests/menu.manifest.json +1 -1
  198. package/src/manifests/metric-card.manifest.json +1 -1
  199. package/src/manifests/month-schedule.manifest.json +217 -0
  200. package/src/manifests/multi-select.manifest.json +1 -1
  201. package/src/manifests/newsletter.manifest.json +1 -1
  202. package/src/manifests/page-header.manifest.json +1 -1
  203. package/src/manifests/pagination.manifest.json +1 -1
  204. package/src/manifests/password-input.manifest.json +1 -1
  205. package/src/manifests/popover.manifest.json +1 -1
  206. package/src/manifests/process-steps.manifest.json +1 -1
  207. package/src/manifests/progress.manifest.json +1 -1
  208. package/src/manifests/prose.manifest.json +1 -1
  209. package/src/manifests/radio.manifest.json +1 -1
  210. package/src/manifests/range-slider.manifest.json +1 -1
  211. package/src/manifests/search.manifest.json +1 -1
  212. package/src/manifests/section-heading.manifest.json +1 -1
  213. package/src/manifests/section.manifest.json +1 -1
  214. package/src/manifests/segmented-control.manifest.json +1 -1
  215. package/src/manifests/select-menu.manifest.json +1 -1
  216. package/src/manifests/select.manifest.json +1 -1
  217. package/src/manifests/separator.manifest.json +1 -1
  218. package/src/manifests/site-footer.manifest.json +1 -1
  219. package/src/manifests/site-header.manifest.json +1 -1
  220. package/src/manifests/skeleton.manifest.json +1 -1
  221. package/src/manifests/spinner.manifest.json +1 -1
  222. package/src/manifests/stat-band.manifest.json +1 -1
  223. package/src/manifests/stepper.manifest.json +1 -1
  224. package/src/manifests/switch.manifest.json +1 -1
  225. package/src/manifests/table-card.manifest.json +1 -1
  226. package/src/manifests/table-of-contents.manifest.json +1 -1
  227. package/src/manifests/table.manifest.json +1 -1
  228. package/src/manifests/tabs.manifest.json +1 -1
  229. package/src/manifests/testimonial.manifest.json +1 -1
  230. package/src/manifests/text.manifest.json +1 -1
  231. package/src/manifests/textarea.manifest.json +1 -1
  232. package/src/manifests/theme-toggle.manifest.json +1 -1
  233. package/src/manifests/time-picker.manifest.json +1 -1
  234. package/src/manifests/timeline.manifest.json +1 -1
  235. package/src/manifests/toast.manifest.json +1 -1
  236. package/src/manifests/tombstone-card.manifest.json +1 -1
  237. package/src/manifests/tooltip.manifest.json +1 -1
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.9",
7
+ "version": "0.11.10",
8
8
  "sourceDir": "table-card",
9
9
  "exportName": "TableCard",
10
10
  "description": "Table shell with title/description, header actions, optional toolbar, edge-to-edge body and a footer row.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.9",
7
+ "version": "0.11.10",
8
8
  "sourceDir": "table-of-contents",
9
9
  "exportName": "TableOfContents",
10
10
  "description": "Sticky 'On this page' navigation with real anchor links, nested levels and aria-current, plus a useScrollSpy hook for the active heading.",
@@ -78,7 +78,7 @@
78
78
  ],
79
79
  "package": "@slipstream-ui/core",
80
80
  "importPath": "@slipstream-ui/core",
81
- "version": "0.11.9",
81
+ "version": "0.11.10",
82
82
  "sourceDir": "table",
83
83
  "exportName": "Table"
84
84
  }
@@ -138,7 +138,7 @@
138
138
  ],
139
139
  "package": "@slipstream-ui/core",
140
140
  "importPath": "@slipstream-ui/core",
141
- "version": "0.11.9",
141
+ "version": "0.11.10",
142
142
  "sourceDir": "tabs",
143
143
  "exportName": "Tabs"
144
144
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.9",
7
+ "version": "0.11.10",
8
8
  "sourceDir": "testimonial",
9
9
  "exportName": "Testimonial",
10
10
  "description": "Semantic written testimonial with quote, person, role, company, avatar and logo slots.",
@@ -107,7 +107,7 @@
107
107
  ],
108
108
  "package": "@slipstream-ui/core",
109
109
  "importPath": "@slipstream-ui/core",
110
- "version": "0.11.9",
110
+ "version": "0.11.10",
111
111
  "sourceDir": "text",
112
112
  "exportName": "Text"
113
113
  }
@@ -102,7 +102,7 @@
102
102
  ],
103
103
  "package": "@slipstream-ui/core",
104
104
  "importPath": "@slipstream-ui/core",
105
- "version": "0.11.9",
105
+ "version": "0.11.10",
106
106
  "sourceDir": "textarea",
107
107
  "exportName": "Textarea"
108
108
  }
@@ -112,7 +112,7 @@
112
112
  ],
113
113
  "package": "@slipstream-ui/core",
114
114
  "importPath": "@slipstream-ui/core",
115
- "version": "0.11.9",
115
+ "version": "0.11.10",
116
116
  "sourceDir": "theme-toggle",
117
117
  "exportName": "ThemeToggle"
118
118
  }
@@ -87,7 +87,7 @@
87
87
  ],
88
88
  "package": "@slipstream-ui/core",
89
89
  "importPath": "@slipstream-ui/core",
90
- "version": "0.11.9",
90
+ "version": "0.11.10",
91
91
  "sourceDir": "time-picker",
92
92
  "exportName": "TimePicker"
93
93
  }
@@ -63,7 +63,7 @@
63
63
  ],
64
64
  "package": "@slipstream-ui/core",
65
65
  "importPath": "@slipstream-ui/core",
66
- "version": "0.11.9",
66
+ "version": "0.11.10",
67
67
  "sourceDir": "timeline",
68
68
  "exportName": "Timeline"
69
69
  }
@@ -161,7 +161,7 @@
161
161
  ],
162
162
  "package": "@slipstream-ui/core",
163
163
  "importPath": "@slipstream-ui/core",
164
- "version": "0.11.9",
164
+ "version": "0.11.10",
165
165
  "sourceDir": "toast",
166
166
  "exportName": "ToastProvider"
167
167
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.9",
7
+ "version": "0.11.10",
8
8
  "sourceDir": "tombstone-card",
9
9
  "exportName": "TombstoneCard",
10
10
  "description": "Placeholder card for archived, closed or unavailable marketplace items.",
@@ -120,7 +120,7 @@
120
120
  ],
121
121
  "package": "@slipstream-ui/core",
122
122
  "importPath": "@slipstream-ui/core",
123
- "version": "0.11.9",
123
+ "version": "0.11.10",
124
124
  "sourceDir": "tooltip",
125
125
  "exportName": "Tooltip"
126
126
  }
@@ -0,0 +1,61 @@
1
+ import * as React from 'react';
2
+ import { type BadgeProps } from '../badge/Badge';
3
+ import { type CoverImageProps } from '../cover-image/CoverImage';
4
+ export type MediaCardChip = {
5
+ label: string;
6
+ /** Badge variant; quiet outline tones fit status metadata best. */
7
+ variant?: BadgeProps['variant'];
8
+ /** Leading status dot. */
9
+ dot?: boolean;
10
+ };
11
+ export type MediaCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {
12
+ /** Card title. */
13
+ title: string;
14
+ /** Supporting copy under the title. */
15
+ description?: React.ReactNode;
16
+ /** Destination URL; the whole card becomes one link when set. */
17
+ href?: string;
18
+ /** Cover art rendered through CoverImage (seeded gradient fallback included). */
19
+ cover?: Omit<CoverImageProps, 'className'>;
20
+ /** Metadata line under the description (date, location, deadline). */
21
+ meta?: React.ReactNode;
22
+ /** Status/category chips rendered as Badges. */
23
+ chips?: MediaCardChip[];
24
+ /** Bottom slot for a details affordance or secondary text. Non-interactive when the card is a link. */
25
+ footer?: React.ReactNode;
26
+ /** 'vertical' stacks cover over content; 'row' puts a fixed-width cover beside it. */
27
+ layout?: 'vertical' | 'row';
28
+ /** Custom link element for routers (Next Link, react-router). */
29
+ linkComponent?: React.ElementType;
30
+ /** Prop used to pass the destination to linkComponent ('href' or 'to'). */
31
+ linkHrefProp?: 'href' | 'to';
32
+ };
33
+ /**
34
+ * Media card for event, article and listing grids: CoverImage on top (or
35
+ * beside in `layout="row"`), title, description, metadata line, status chips
36
+ * and an optional footer. With `href` the entire card is a single link —
37
+ * one target, one hover state, one focus ring — so keep `footer` free of
38
+ * nested interactive elements.
39
+ */
40
+ export declare const MediaCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
41
+ /** Card title. */
42
+ title: string;
43
+ /** Supporting copy under the title. */
44
+ description?: React.ReactNode;
45
+ /** Destination URL; the whole card becomes one link when set. */
46
+ href?: string;
47
+ /** Cover art rendered through CoverImage (seeded gradient fallback included). */
48
+ cover?: Omit<CoverImageProps, "className">;
49
+ /** Metadata line under the description (date, location, deadline). */
50
+ meta?: React.ReactNode;
51
+ /** Status/category chips rendered as Badges. */
52
+ chips?: MediaCardChip[];
53
+ /** Bottom slot for a details affordance or secondary text. Non-interactive when the card is a link. */
54
+ footer?: React.ReactNode;
55
+ /** 'vertical' stacks cover over content; 'row' puts a fixed-width cover beside it. */
56
+ layout?: "vertical" | "row";
57
+ /** Custom link element for routers (Next Link, react-router). */
58
+ linkComponent?: React.ElementType;
59
+ /** Prop used to pass the destination to linkComponent ('href' or 'to'). */
60
+ linkHrefProp?: "href" | "to";
61
+ } & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var MediaCard_exports = {};
30
+ __export(MediaCard_exports, {
31
+ MediaCard: () => MediaCard
32
+ });
33
+ module.exports = __toCommonJS(MediaCard_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var React = __toESM(require("react"));
36
+ var import_cn = require("../../utils/cn.js");
37
+ var import_Badge = require("../badge/Badge.js");
38
+ var import_CoverImage = require("../cover-image/CoverImage.js");
39
+ const MediaCard = React.forwardRef(function MediaCard2({
40
+ title,
41
+ description,
42
+ href,
43
+ cover,
44
+ meta,
45
+ chips,
46
+ footer,
47
+ layout = "vertical",
48
+ linkComponent,
49
+ linkHrefProp = "href",
50
+ className,
51
+ ...props
52
+ }, ref) {
53
+ const Link = linkComponent ?? "a";
54
+ const destination = href ? linkHrefProp === "to" ? { to: href } : { href } : void 0;
55
+ const row = layout === "row";
56
+ const body = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
57
+ cover && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
58
+ import_CoverImage.CoverImage,
59
+ {
60
+ ...cover,
61
+ className: (0, import_cn.cn)(
62
+ row ? "w-36 shrink-0 sm:w-44" : "w-full",
63
+ !row && "rounded-none border-b border-border"
64
+ )
65
+ }
66
+ ),
67
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_cn.cn)("flex min-w-0 flex-1 flex-col gap-2", row ? "p-4" : "p-5"), children: [
68
+ chips && chips.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-wrap gap-1.5", children: chips.map((chip) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Badge.Badge, { variant: chip.variant ?? "outline", size: "sm", dot: chip.dot, children: chip.label }, chip.label)) }),
69
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "font-semibold tracking-tight transition-colors group-hover:text-primary-ink", children: title }),
70
+ description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
71
+ meta && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-xs text-muted-foreground", children: meta }),
72
+ footer && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: footer })
73
+ ] })
74
+ ] });
75
+ const cardClass = (0, import_cn.cn)(
76
+ "group flex h-full overflow-hidden rounded-xl border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
77
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
78
+ row ? "flex-row" : "flex-col",
79
+ className
80
+ );
81
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("article", { ref, className: "h-full", ...props, children: href && destination ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, { ...destination, className: cardClass, children: body }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cardClass, children: body }) });
82
+ });
83
+ MediaCard.displayName = "MediaCard";
84
+ // Annotate the CommonJS export names for ESM import in node:
85
+ 0 && (module.exports = {
86
+ MediaCard
87
+ });
88
+ //# sourceMappingURL=MediaCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/media-card/MediaCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Badge, type BadgeProps } from '../badge/Badge';\nimport { CoverImage, type CoverImageProps } from '../cover-image/CoverImage';\n\nexport type MediaCardChip = {\n label: string;\n /** Badge variant; quiet outline tones fit status metadata best. */\n variant?: BadgeProps['variant'];\n /** Leading status dot. */\n dot?: boolean;\n};\n\nexport type MediaCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {\n /** Card title. */\n title: string;\n /** Supporting copy under the title. */\n description?: React.ReactNode;\n /** Destination URL; the whole card becomes one link when set. */\n href?: string;\n /** Cover art rendered through CoverImage (seeded gradient fallback included). */\n cover?: Omit<CoverImageProps, 'className'>;\n /** Metadata line under the description (date, location, deadline). */\n meta?: React.ReactNode;\n /** Status/category chips rendered as Badges. */\n chips?: MediaCardChip[];\n /** Bottom slot for a details affordance or secondary text. Non-interactive when the card is a link. */\n footer?: React.ReactNode;\n /** 'vertical' stacks cover over content; 'row' puts a fixed-width cover beside it. */\n layout?: 'vertical' | 'row';\n /** Custom link element for routers (Next Link, react-router). */\n linkComponent?: React.ElementType;\n /** Prop used to pass the destination to linkComponent ('href' or 'to'). */\n linkHrefProp?: 'href' | 'to';\n};\n\n/**\n * Media card for event, article and listing grids: CoverImage on top (or\n * beside in `layout=\"row\"`), title, description, metadata line, status chips\n * and an optional footer. With `href` the entire card is a single link —\n * one target, one hover state, one focus ring — so keep `footer` free of\n * nested interactive elements.\n */\nexport const MediaCard = React.forwardRef<HTMLElement, MediaCardProps>(function MediaCard(\n {\n title,\n description,\n href,\n cover,\n meta,\n chips,\n footer,\n layout = 'vertical',\n linkComponent,\n linkHrefProp = 'href',\n className,\n ...props\n },\n ref\n) {\n const Link = linkComponent ?? 'a';\n const destination = href ? (linkHrefProp === 'to' ? { to: href } : { href }) : undefined;\n const row = layout === 'row';\n\n const body = (\n <>\n {cover && (\n <CoverImage\n {...cover}\n className={cn(\n row ? 'w-36 shrink-0 sm:w-44' : 'w-full',\n !row && 'rounded-none border-b border-border'\n )}\n />\n )}\n <div className={cn('flex min-w-0 flex-1 flex-col gap-2', row ? 'p-4' : 'p-5')}>\n {chips && chips.length > 0 && (\n <div className=\"flex flex-wrap gap-1.5\">\n {chips.map((chip) => (\n <Badge key={chip.label} variant={chip.variant ?? 'outline'} size=\"sm\" dot={chip.dot}>\n {chip.label}\n </Badge>\n ))}\n </div>\n )}\n <h3 className=\"font-semibold tracking-tight transition-colors group-hover:text-primary-ink\">{title}</h3>\n {description && (\n <div className=\"line-clamp-3 text-sm leading-relaxed text-muted-foreground\">{description}</div>\n )}\n {meta && <div className=\"text-xs text-muted-foreground\">{meta}</div>}\n {footer && <div className=\"mt-auto pt-2 text-xs text-muted-foreground\">{footer}</div>}\n </div>\n </>\n );\n\n const cardClass = cn(\n 'group flex h-full overflow-hidden rounded-xl border border-border bg-card shadow-sm transition-colors hover:border-primary/40',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background',\n row ? 'flex-row' : 'flex-col',\n className\n );\n\n return (\n <article ref={ref as never} className=\"h-full\" {...props}>\n {href && destination ? (\n <Link {...destination} className={cardClass}>\n {body}\n </Link>\n ) : (\n <div className={cardClass}>{body}</div>\n )}\n </article>\n );\n});\n\nMediaCard.displayName = 'MediaCard';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiEI;AAjEJ,YAAuB;AACvB,gBAAmB;AACnB,mBAAuC;AACvC,wBAAiD;AAwC1C,MAAM,YAAY,MAAM,WAAwC,SAASA,WAC9E;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,QAAM,OAAO,iBAAiB;AAC9B,QAAM,cAAc,OAAQ,iBAAiB,OAAO,EAAE,IAAI,KAAK,IAAI,EAAE,KAAK,IAAK;AAC/E,QAAM,MAAM,WAAW;AAEvB,QAAM,OACJ,4EACG;AAAA,aACC;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,eAAW;AAAA,UACT,MAAM,0BAA0B;AAAA,UAChC,CAAC,OAAO;AAAA,QACV;AAAA;AAAA,IACF;AAAA,IAEF,6CAAC,SAAI,eAAW,cAAG,sCAAsC,MAAM,QAAQ,KAAK,GACzE;AAAA,eAAS,MAAM,SAAS,KACvB,4CAAC,SAAI,WAAU,0BACZ,gBAAM,IAAI,CAAC,SACV,4CAAC,sBAAuB,SAAS,KAAK,WAAW,WAAW,MAAK,MAAK,KAAK,KAAK,KAC7E,eAAK,SADI,KAAK,KAEjB,CACD,GACH;AAAA,MAEF,4CAAC,QAAG,WAAU,+EAA+E,iBAAM;AAAA,MAClG,eACC,4CAAC,SAAI,WAAU,8DAA8D,uBAAY;AAAA,MAE1F,QAAQ,4CAAC,SAAI,WAAU,iCAAiC,gBAAK;AAAA,MAC7D,UAAU,4CAAC,SAAI,WAAU,8CAA8C,kBAAO;AAAA,OACjF;AAAA,KACF;AAGF,QAAM,gBAAY;AAAA,IAChB;AAAA,IACA;AAAA,IACA,MAAM,aAAa;AAAA,IACnB;AAAA,EACF;AAEA,SACE,4CAAC,aAAQ,KAAmB,WAAU,UAAU,GAAG,OAChD,kBAAQ,cACP,4CAAC,QAAM,GAAG,aAAa,WAAW,WAC/B,gBACH,IAEA,4CAAC,SAAI,WAAW,WAAY,gBAAK,GAErC;AAEJ,CAAC;AAED,UAAU,cAAc;","names":["MediaCard"]}
@@ -0,0 +1,54 @@
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../../utils/cn.mjs";
4
+ import { Badge } from "../badge/Badge.mjs";
5
+ import { CoverImage } from "../cover-image/CoverImage.mjs";
6
+ const MediaCard = React.forwardRef(function MediaCard2({
7
+ title,
8
+ description,
9
+ href,
10
+ cover,
11
+ meta,
12
+ chips,
13
+ footer,
14
+ layout = "vertical",
15
+ linkComponent,
16
+ linkHrefProp = "href",
17
+ className,
18
+ ...props
19
+ }, ref) {
20
+ const Link = linkComponent ?? "a";
21
+ const destination = href ? linkHrefProp === "to" ? { to: href } : { href } : void 0;
22
+ const row = layout === "row";
23
+ const body = /* @__PURE__ */ jsxs(Fragment, { children: [
24
+ cover && /* @__PURE__ */ jsx(
25
+ CoverImage,
26
+ {
27
+ ...cover,
28
+ className: cn(
29
+ row ? "w-36 shrink-0 sm:w-44" : "w-full",
30
+ !row && "rounded-none border-b border-border"
31
+ )
32
+ }
33
+ ),
34
+ /* @__PURE__ */ jsxs("div", { className: cn("flex min-w-0 flex-1 flex-col gap-2", row ? "p-4" : "p-5"), children: [
35
+ chips && chips.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1.5", children: chips.map((chip) => /* @__PURE__ */ jsx(Badge, { variant: chip.variant ?? "outline", size: "sm", dot: chip.dot, children: chip.label }, chip.label)) }),
36
+ /* @__PURE__ */ jsx("h3", { className: "font-semibold tracking-tight transition-colors group-hover:text-primary-ink", children: title }),
37
+ description && /* @__PURE__ */ jsx("div", { className: "line-clamp-3 text-sm leading-relaxed text-muted-foreground", children: description }),
38
+ meta && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: meta }),
39
+ footer && /* @__PURE__ */ jsx("div", { className: "mt-auto pt-2 text-xs text-muted-foreground", children: footer })
40
+ ] })
41
+ ] });
42
+ const cardClass = cn(
43
+ "group flex h-full overflow-hidden rounded-xl border border-border bg-card shadow-sm transition-colors hover:border-primary/40",
44
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
45
+ row ? "flex-row" : "flex-col",
46
+ className
47
+ );
48
+ return /* @__PURE__ */ jsx("article", { ref, className: "h-full", ...props, children: href && destination ? /* @__PURE__ */ jsx(Link, { ...destination, className: cardClass, children: body }) : /* @__PURE__ */ jsx("div", { className: cardClass, children: body }) });
49
+ });
50
+ MediaCard.displayName = "MediaCard";
51
+ export {
52
+ MediaCard
53
+ };
54
+ //# sourceMappingURL=MediaCard.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/media-card/MediaCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Badge, type BadgeProps } from '../badge/Badge';\nimport { CoverImage, type CoverImageProps } from '../cover-image/CoverImage';\n\nexport type MediaCardChip = {\n label: string;\n /** Badge variant; quiet outline tones fit status metadata best. */\n variant?: BadgeProps['variant'];\n /** Leading status dot. */\n dot?: boolean;\n};\n\nexport type MediaCardProps = Omit<React.HTMLAttributes<HTMLElement>, 'title'> & {\n /** Card title. */\n title: string;\n /** Supporting copy under the title. */\n description?: React.ReactNode;\n /** Destination URL; the whole card becomes one link when set. */\n href?: string;\n /** Cover art rendered through CoverImage (seeded gradient fallback included). */\n cover?: Omit<CoverImageProps, 'className'>;\n /** Metadata line under the description (date, location, deadline). */\n meta?: React.ReactNode;\n /** Status/category chips rendered as Badges. */\n chips?: MediaCardChip[];\n /** Bottom slot for a details affordance or secondary text. Non-interactive when the card is a link. */\n footer?: React.ReactNode;\n /** 'vertical' stacks cover over content; 'row' puts a fixed-width cover beside it. */\n layout?: 'vertical' | 'row';\n /** Custom link element for routers (Next Link, react-router). */\n linkComponent?: React.ElementType;\n /** Prop used to pass the destination to linkComponent ('href' or 'to'). */\n linkHrefProp?: 'href' | 'to';\n};\n\n/**\n * Media card for event, article and listing grids: CoverImage on top (or\n * beside in `layout=\"row\"`), title, description, metadata line, status chips\n * and an optional footer. With `href` the entire card is a single link —\n * one target, one hover state, one focus ring — so keep `footer` free of\n * nested interactive elements.\n */\nexport const MediaCard = React.forwardRef<HTMLElement, MediaCardProps>(function MediaCard(\n {\n title,\n description,\n href,\n cover,\n meta,\n chips,\n footer,\n layout = 'vertical',\n linkComponent,\n linkHrefProp = 'href',\n className,\n ...props\n },\n ref\n) {\n const Link = linkComponent ?? 'a';\n const destination = href ? (linkHrefProp === 'to' ? { to: href } : { href }) : undefined;\n const row = layout === 'row';\n\n const body = (\n <>\n {cover && (\n <CoverImage\n {...cover}\n className={cn(\n row ? 'w-36 shrink-0 sm:w-44' : 'w-full',\n !row && 'rounded-none border-b border-border'\n )}\n />\n )}\n <div className={cn('flex min-w-0 flex-1 flex-col gap-2', row ? 'p-4' : 'p-5')}>\n {chips && chips.length > 0 && (\n <div className=\"flex flex-wrap gap-1.5\">\n {chips.map((chip) => (\n <Badge key={chip.label} variant={chip.variant ?? 'outline'} size=\"sm\" dot={chip.dot}>\n {chip.label}\n </Badge>\n ))}\n </div>\n )}\n <h3 className=\"font-semibold tracking-tight transition-colors group-hover:text-primary-ink\">{title}</h3>\n {description && (\n <div className=\"line-clamp-3 text-sm leading-relaxed text-muted-foreground\">{description}</div>\n )}\n {meta && <div className=\"text-xs text-muted-foreground\">{meta}</div>}\n {footer && <div className=\"mt-auto pt-2 text-xs text-muted-foreground\">{footer}</div>}\n </div>\n </>\n );\n\n const cardClass = cn(\n 'group flex h-full overflow-hidden rounded-xl border border-border bg-card shadow-sm transition-colors hover:border-primary/40',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background',\n row ? 'flex-row' : 'flex-col',\n className\n );\n\n return (\n <article ref={ref as never} className=\"h-full\" {...props}>\n {href && destination ? (\n <Link {...destination} className={cardClass}>\n {body}\n </Link>\n ) : (\n <div className={cardClass}>{body}</div>\n )}\n </article>\n );\n});\n\nMediaCard.displayName = 'MediaCard';\n"],"mappings":"AAiEI,mBAEI,KAQF,YAVF;AAjEJ,YAAY,WAAW;AACvB,SAAS,UAAU;AACnB,SAAS,aAA8B;AACvC,SAAS,kBAAwC;AAwC1C,MAAM,YAAY,MAAM,WAAwC,SAASA,WAC9E;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,QAAM,OAAO,iBAAiB;AAC9B,QAAM,cAAc,OAAQ,iBAAiB,OAAO,EAAE,IAAI,KAAK,IAAI,EAAE,KAAK,IAAK;AAC/E,QAAM,MAAM,WAAW;AAEvB,QAAM,OACJ,iCACG;AAAA,aACC;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,WAAW;AAAA,UACT,MAAM,0BAA0B;AAAA,UAChC,CAAC,OAAO;AAAA,QACV;AAAA;AAAA,IACF;AAAA,IAEF,qBAAC,SAAI,WAAW,GAAG,sCAAsC,MAAM,QAAQ,KAAK,GACzE;AAAA,eAAS,MAAM,SAAS,KACvB,oBAAC,SAAI,WAAU,0BACZ,gBAAM,IAAI,CAAC,SACV,oBAAC,SAAuB,SAAS,KAAK,WAAW,WAAW,MAAK,MAAK,KAAK,KAAK,KAC7E,eAAK,SADI,KAAK,KAEjB,CACD,GACH;AAAA,MAEF,oBAAC,QAAG,WAAU,+EAA+E,iBAAM;AAAA,MAClG,eACC,oBAAC,SAAI,WAAU,8DAA8D,uBAAY;AAAA,MAE1F,QAAQ,oBAAC,SAAI,WAAU,iCAAiC,gBAAK;AAAA,MAC7D,UAAU,oBAAC,SAAI,WAAU,8CAA8C,kBAAO;AAAA,OACjF;AAAA,KACF;AAGF,QAAM,YAAY;AAAA,IAChB;AAAA,IACA;AAAA,IACA,MAAM,aAAa;AAAA,IACnB;AAAA,EACF;AAEA,SACE,oBAAC,aAAQ,KAAmB,WAAU,UAAU,GAAG,OAChD,kBAAQ,cACP,oBAAC,QAAM,GAAG,aAAa,WAAW,WAC/B,gBACH,IAEA,oBAAC,SAAI,WAAW,WAAY,gBAAK,GAErC;AAEJ,CAAC;AAED,UAAU,cAAc;","names":["MediaCard"]}
@@ -0,0 +1 @@
1
+ export * from './MediaCard';
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+ var media_card_exports = {};
17
+ module.exports = __toCommonJS(media_card_exports);
18
+ __reExport(media_card_exports, require("./MediaCard.js"), module.exports);
19
+ // Annotate the CommonJS export names for ESM import in node:
20
+ 0 && (module.exports = {
21
+ ...require("./MediaCard.js")
22
+ });
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/media-card/index.ts"],"sourcesContent":["export * from './MediaCard';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,wBAAd;","names":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./MediaCard.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/media-card/index.ts"],"sourcesContent":["export * from './MediaCard';\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -0,0 +1,56 @@
1
+ import * as React from 'react';
2
+ export type MonthScheduleLegendItem = {
3
+ /** Type key returned by getType. */
4
+ type: string;
5
+ /** Human-readable label shown in the legend. */
6
+ label: string;
7
+ };
8
+ export type MonthScheduleProps<T> = {
9
+ /** Events to place inside days; each is dated via getDate. */
10
+ events: T[];
11
+ /** ISO date key (YYYY-MM-DD) for an event. */
12
+ getDate: (event: T) => string;
13
+ /** Short label shown on the day chip and in the agenda. */
14
+ getLabel: (event: T) => string;
15
+ /** Optional type key used for chip color and the legend. */
16
+ getType?: (event: T) => string | undefined;
17
+ /** Optional destination per event. */
18
+ getHref?: (event: T) => string | undefined;
19
+ /** Controlled month as YYYY-MM. Falls back to defaultMonth, then today. */
20
+ month?: string;
21
+ /** Uncontrolled initial month (YYYY-MM). */
22
+ defaultMonth?: string;
23
+ /** Called with the new YYYY-MM when paging. */
24
+ onMonthChange?: (month: string) => void;
25
+ /** Override "today" for deterministic server rendering and tests. */
26
+ today?: string;
27
+ /** BCP-47 locale for month, weekday and agenda labels. */
28
+ locale?: string;
29
+ /** 0 starts the week on Sunday, 1 on Monday. */
30
+ weekStartsOn?: 0 | 1;
31
+ /** Maximum event chips per day before collapsing into "+N more". */
32
+ maxPerDay?: number;
33
+ /** Type key → label/color entries rendered as a legend under the grid. */
34
+ legend?: MonthScheduleLegendItem[];
35
+ /**
36
+ * Below this breakpoint an agenda list replaces the day grid:
37
+ * 'sm' swaps under 640px, 'md' under 768px.
38
+ */
39
+ agendaBreakpoint?: 'sm' | 'md';
40
+ /** Custom link element for event hrefs (Next Link, react-router). */
41
+ linkComponent?: React.ElementType;
42
+ /** Prop used to pass the destination to linkComponent ('href' or 'to'). */
43
+ linkHrefProp?: 'href' | 'to';
44
+ 'aria-label'?: string;
45
+ className?: string;
46
+ };
47
+ /**
48
+ * Month schedule: a month grid with dated events rendered inside each day,
49
+ * plus a legend and a small-screen agenda. Built on the same date utilities
50
+ * as Calendar; `today` stays explicit so server-rendered pages never read the
51
+ * server clock.
52
+ */
53
+ export declare function MonthSchedule<T>({ events, getDate, getLabel, getType, getHref, month, defaultMonth, onMonthChange, today, locale, weekStartsOn, maxPerDay, legend, agendaBreakpoint, linkComponent, linkHrefProp, 'aria-label': ariaLabel, className, }: MonthScheduleProps<T>): React.JSX.Element;
54
+ export declare namespace MonthSchedule {
55
+ var displayName: string;
56
+ }