@leonardaustin/ui 0.25.0 → 0.26.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 (279) hide show
  1. package/README.md +11 -0
  2. package/dist/components/app-shell/AppShell.d.ts +3 -3
  3. package/dist/components/app-shell/AppShell.js +82 -0
  4. package/dist/components/app-shell/AuthLayout.d.ts +3 -3
  5. package/dist/components/app-shell/AuthLayout.js +16 -0
  6. package/dist/components/app-shell/BackLink.d.ts +3 -3
  7. package/dist/components/app-shell/BackLink.js +19 -0
  8. package/dist/components/app-shell/BottomNav.d.ts +3 -2
  9. package/dist/components/app-shell/BottomNav.js +37 -0
  10. package/dist/components/app-shell/Breadcrumbs.d.ts +3 -2
  11. package/dist/components/app-shell/Breadcrumbs.js +46 -0
  12. package/dist/components/app-shell/CommandPalette.d.ts +3 -2
  13. package/dist/components/app-shell/CommandPalette.js +119 -0
  14. package/dist/components/app-shell/MobileDrawer.d.ts +3 -3
  15. package/dist/components/app-shell/MobileDrawer.js +128 -0
  16. package/dist/components/app-shell/Sidebar.d.ts +3 -3
  17. package/dist/components/app-shell/Sidebar.js +355 -0
  18. package/dist/components/app-shell/ThemeMenu.d.ts +3 -2
  19. package/dist/components/app-shell/ThemeMenu.js +273 -0
  20. package/dist/components/app-shell/TopBar.d.ts +3 -3
  21. package/dist/components/app-shell/TopBar.js +129 -0
  22. package/dist/components/app-shell/commandPaletteEvents.js +16 -0
  23. package/dist/components/app-shell/navigation.js +21 -0
  24. package/dist/components/app-shell/themeMenuEvents.js +7 -0
  25. package/dist/components/charts/AreaChart.d.ts +4 -3
  26. package/dist/components/charts/AreaChart.js +217 -0
  27. package/dist/components/charts/BarChart.d.ts +4 -3
  28. package/dist/components/charts/BarChart.js +91 -0
  29. package/dist/components/charts/DonutChart.d.ts +4 -3
  30. package/dist/components/charts/DonutChart.js +172 -0
  31. package/dist/components/charts/RadarChart.d.ts +4 -3
  32. package/dist/components/charts/RadarChart.js +142 -0
  33. package/dist/components/charts/RadialBarChart.d.ts +4 -3
  34. package/dist/components/charts/RadialBarChart.js +219 -0
  35. package/dist/components/charts/SparkLine.d.ts +4 -3
  36. package/dist/components/charts/SparkLine.js +39 -0
  37. package/dist/components/charts/StackedBarChart.d.ts +4 -3
  38. package/dist/components/charts/StackedBarChart.js +249 -0
  39. package/dist/components/charts/VerticalBarChart.d.ts +4 -3
  40. package/dist/components/charts/VerticalBarChart.js +143 -0
  41. package/dist/components/charts/chartUtils.js +68 -0
  42. package/dist/components/tables/ColumnPicker.d.ts +3 -3
  43. package/dist/components/tables/ColumnPicker.js +59 -0
  44. package/dist/components/tables/Pagination.d.ts +3 -3
  45. package/dist/components/tables/Pagination.js +56 -0
  46. package/dist/components/tables/ResourceTable.d.ts +3 -3
  47. package/dist/components/tables/ResourceTable.js +88 -0
  48. package/dist/components/tables/Table.js +95 -0
  49. package/dist/components/tables/sortRows.js +11 -0
  50. package/dist/components/ui/Accordion.d.ts +2 -1
  51. package/dist/components/ui/Accordion.js +35 -0
  52. package/dist/components/ui/Alert.d.ts +3 -2
  53. package/dist/components/ui/Alert.js +51 -0
  54. package/dist/components/ui/AttachmentList.d.ts +5 -5
  55. package/dist/components/ui/AttachmentList.js +90 -0
  56. package/dist/components/ui/AudioPlayer.d.ts +5 -2
  57. package/dist/components/ui/AudioPlayer.js +447 -0
  58. package/dist/components/ui/AuthCard.d.ts +3 -3
  59. package/dist/components/ui/AuthCard.js +39 -0
  60. package/dist/components/ui/AuthorByline.d.ts +3 -3
  61. package/dist/components/ui/AuthorByline.js +23 -0
  62. package/dist/components/ui/Avatar.d.ts +3 -2
  63. package/dist/components/ui/Avatar.js +36 -0
  64. package/dist/components/ui/Badge.d.ts +3 -2
  65. package/dist/components/ui/Badge.js +47 -0
  66. package/dist/components/ui/Button.d.ts +3 -3
  67. package/dist/components/ui/Button.js +83 -0
  68. package/dist/components/ui/Calendar.d.ts +3 -3
  69. package/dist/components/ui/Calendar.js +344 -0
  70. package/dist/components/ui/CalendarGrid.d.ts +3 -2
  71. package/dist/components/ui/CalendarGrid.js +136 -0
  72. package/dist/components/ui/Card.d.ts +6 -5
  73. package/dist/components/ui/Card.js +53 -0
  74. package/dist/components/ui/CharacterCount.d.ts +3 -3
  75. package/dist/components/ui/CharacterCount.js +27 -0
  76. package/dist/components/ui/Checkbox.d.ts +10 -8
  77. package/dist/components/ui/Checkbox.js +52 -0
  78. package/dist/components/ui/CodeInput.d.ts +7 -4
  79. package/dist/components/ui/CodeInput.js +96 -0
  80. package/dist/components/ui/Combobox.d.ts +8 -6
  81. package/dist/components/ui/Combobox.js +213 -0
  82. package/dist/components/ui/CopyButton.d.ts +1 -1
  83. package/dist/components/ui/CopyButton.js +57 -0
  84. package/dist/components/ui/DangerZone.d.ts +3 -3
  85. package/dist/components/ui/DangerZone.js +23 -0
  86. package/dist/components/ui/DatePartsInput.d.ts +6 -4
  87. package/dist/components/ui/DatePartsInput.js +138 -0
  88. package/dist/components/ui/DatePicker.d.ts +9 -4
  89. package/dist/components/ui/DatePicker.js +84 -0
  90. package/dist/components/ui/DateRangePicker.d.ts +7 -4
  91. package/dist/components/ui/DateRangePicker.js +143 -0
  92. package/dist/components/ui/DateTimePicker.d.ts +7 -4
  93. package/dist/components/ui/DateTimePicker.js +267 -0
  94. package/dist/components/ui/DetailPanel.d.ts +3 -3
  95. package/dist/components/ui/DetailPanel.js +183 -0
  96. package/dist/components/ui/Dialog.d.ts +3 -3
  97. package/dist/components/ui/Dialog.js +411 -0
  98. package/dist/components/ui/DialogActions.d.ts +3 -3
  99. package/dist/components/ui/DialogActions.js +35 -0
  100. package/dist/components/ui/Disclosure.d.ts +3 -3
  101. package/dist/components/ui/Disclosure.js +45 -0
  102. package/dist/components/ui/DividerLabel.d.ts +3 -3
  103. package/dist/components/ui/DividerLabel.js +20 -0
  104. package/dist/components/ui/DropdownMenu.d.ts +3 -3
  105. package/dist/components/ui/DropdownMenu.js +229 -0
  106. package/dist/components/ui/EmptyState.d.ts +3 -3
  107. package/dist/components/ui/EmptyState.js +31 -0
  108. package/dist/components/ui/ErrorBoundary.js +46 -0
  109. package/dist/components/ui/FieldContext.js +8 -0
  110. package/dist/components/ui/Fieldset.d.ts +2 -2
  111. package/dist/components/ui/Fieldset.js +39 -0
  112. package/dist/components/ui/FilterButton.d.ts +4 -7
  113. package/dist/components/ui/FilterButton.js +17 -0
  114. package/dist/components/ui/FilterDropdown.d.ts +4 -4
  115. package/dist/components/ui/FilterDropdown.js +18 -0
  116. package/dist/components/ui/FormField.d.ts +4 -4
  117. package/dist/components/ui/FormField.js +68 -0
  118. package/dist/components/ui/Grid.d.ts +1 -1
  119. package/dist/components/ui/Grid.js +19 -0
  120. package/dist/components/ui/GridItem.d.ts +1 -1
  121. package/dist/components/ui/GridItem.js +16 -0
  122. package/dist/components/ui/Inline.d.ts +1 -1
  123. package/dist/components/ui/Inline.js +24 -0
  124. package/dist/components/ui/Kbd.d.ts +3 -2
  125. package/dist/components/ui/Kbd.js +13 -0
  126. package/dist/components/ui/ListItemLink.d.ts +3 -3
  127. package/dist/components/ui/ListItemLink.js +44 -0
  128. package/dist/components/ui/LoadingSpinner.d.ts +3 -2
  129. package/dist/components/ui/LoadingSpinner.js +19 -0
  130. package/dist/components/ui/MessageBubble.d.ts +2 -2
  131. package/dist/components/ui/MessageBubble.js +41 -0
  132. package/dist/components/ui/MetadataGrid.d.ts +5 -3
  133. package/dist/components/ui/MetadataGrid.js +76 -0
  134. package/dist/components/ui/MetricCard.d.ts +3 -3
  135. package/dist/components/ui/MetricCard.js +51 -0
  136. package/dist/components/ui/NavTabs.d.ts +2 -2
  137. package/dist/components/ui/NavTabs.js +29 -0
  138. package/dist/components/ui/OAuthButton.d.ts +2 -2
  139. package/dist/components/ui/OAuthButton.js +55 -0
  140. package/dist/components/ui/OverlineLabel.d.ts +3 -3
  141. package/dist/components/ui/OverlineLabel.js +13 -0
  142. package/dist/components/ui/PageHeader.d.ts +3 -3
  143. package/dist/components/ui/PageHeader.js +33 -0
  144. package/dist/components/ui/PageSection.d.ts +3 -3
  145. package/dist/components/ui/PageSection.js +31 -0
  146. package/dist/components/ui/PaginationBar.d.ts +3 -3
  147. package/dist/components/ui/PaginationBar.js +62 -0
  148. package/dist/components/ui/PasswordInput.d.ts +3 -3
  149. package/dist/components/ui/PasswordInput.js +62 -0
  150. package/dist/components/ui/PasswordRequirements.d.ts +3 -2
  151. package/dist/components/ui/PasswordRequirements.js +34 -0
  152. package/dist/components/ui/Popover.d.ts +3 -3
  153. package/dist/components/ui/Popover.js +53 -0
  154. package/dist/components/ui/ProfileHeader.d.ts +3 -3
  155. package/dist/components/ui/ProfileHeader.js +54 -0
  156. package/dist/components/ui/ProgressBar.d.ts +3 -3
  157. package/dist/components/ui/ProgressBar.js +42 -0
  158. package/dist/components/ui/ProseContent.d.ts +3 -3
  159. package/dist/components/ui/ProseContent.js +13 -0
  160. package/dist/components/ui/QrCode.d.ts +3 -3
  161. package/dist/components/ui/QrCode.js +47 -0
  162. package/dist/components/ui/Radio.d.ts +9 -6
  163. package/dist/components/ui/Radio.js +58 -0
  164. package/dist/components/ui/RadioPill.d.ts +7 -4
  165. package/dist/components/ui/RadioPill.js +53 -0
  166. package/dist/components/ui/ReorderList.d.ts +3 -3
  167. package/dist/components/ui/ReorderList.js +123 -0
  168. package/dist/components/ui/SearchInput.d.ts +7 -5
  169. package/dist/components/ui/SearchInput.js +49 -0
  170. package/dist/components/ui/SectionHeader.d.ts +3 -3
  171. package/dist/components/ui/SectionHeader.js +13 -0
  172. package/dist/components/ui/Select.d.ts +4 -4
  173. package/dist/components/ui/Select.js +117 -0
  174. package/dist/components/ui/SelectDropdown.d.ts +8 -3
  175. package/dist/components/ui/SelectDropdown.js +206 -0
  176. package/dist/components/ui/SettingRow.d.ts +5 -5
  177. package/dist/components/ui/SettingRow.js +25 -0
  178. package/dist/components/ui/SideSheet.d.ts +3 -3
  179. package/dist/components/ui/SideSheet.js +164 -0
  180. package/dist/components/ui/Skeleton.d.ts +3 -3
  181. package/dist/components/ui/Skeleton.js +18 -0
  182. package/dist/components/ui/Slider.d.ts +11 -6
  183. package/dist/components/ui/Slider.js +58 -0
  184. package/dist/components/ui/SplitPaneLayout.d.ts +5 -5
  185. package/dist/components/ui/SplitPaneLayout.js +22 -0
  186. package/dist/components/ui/Stack.d.ts +1 -1
  187. package/dist/components/ui/Stack.js +18 -0
  188. package/dist/components/ui/StatusDot.d.ts +3 -2
  189. package/dist/components/ui/StatusDot.js +24 -0
  190. package/dist/components/ui/StepProgress.d.ts +3 -2
  191. package/dist/components/ui/StepProgress.js +33 -0
  192. package/dist/components/ui/Tabs.d.ts +5 -5
  193. package/dist/components/ui/Tabs.js +63 -0
  194. package/dist/components/ui/TextInput.d.ts +3 -3
  195. package/dist/components/ui/TextInput.js +57 -0
  196. package/dist/components/ui/Textarea.d.ts +3 -3
  197. package/dist/components/ui/Textarea.js +59 -0
  198. package/dist/components/ui/ThemePreview.d.ts +3 -3
  199. package/dist/components/ui/ThemePreview.js +28 -0
  200. package/dist/components/ui/TimeInput.d.ts +7 -6
  201. package/dist/components/ui/TimeInput.js +22 -0
  202. package/dist/components/ui/Timeline.d.ts +3 -2
  203. package/dist/components/ui/Timeline.js +29 -0
  204. package/dist/components/ui/Toast.js +121 -0
  205. package/dist/components/ui/Toggle.d.ts +5 -3
  206. package/dist/components/ui/Toggle.js +34 -0
  207. package/dist/components/ui/Toolbar.d.ts +3 -3
  208. package/dist/components/ui/Toolbar.js +70 -0
  209. package/dist/components/ui/Tooltip.js +91 -0
  210. package/dist/components/ui/TranscriptLine.d.ts +3 -3
  211. package/dist/components/ui/TranscriptLine.js +40 -0
  212. package/dist/components/ui/UploadDropzone.d.ts +3 -5
  213. package/dist/components/ui/UploadDropzone.js +55 -0
  214. package/dist/components/ui/badgeColors.js +5 -0
  215. package/dist/components/ui/calendar/AgendaView.js +140 -0
  216. package/dist/components/ui/calendar/MonthView.js +321 -0
  217. package/dist/components/ui/calendar/TimeGrid.js +501 -0
  218. package/dist/components/ui/calendar/TimelineView.js +311 -0
  219. package/dist/components/ui/calendar/context.js +10 -0
  220. package/dist/components/ui/calendar/items.js +152 -0
  221. package/dist/components/ui/calendar/types.js +38 -0
  222. package/dist/components/ui/calendar/useGridInteraction.js +393 -0
  223. package/dist/components/ui/useFieldControl.d.ts +1 -1
  224. package/dist/components/ui/useFieldControl.js +17 -0
  225. package/dist/config/theme.js +219 -0
  226. package/dist/core.css +2933 -0
  227. package/dist/hooks/useAnchoredPopup.js +162 -0
  228. package/dist/hooks/useApplyTheme.js +16 -0
  229. package/dist/hooks/useControllableState.d.ts +14 -0
  230. package/dist/hooks/useControllableState.js +10 -0
  231. package/dist/hooks/useDismiss.js +24 -0
  232. package/dist/hooks/useFocusTrap.js +42 -0
  233. package/dist/hooks/useOverlayStack.js +23 -0
  234. package/dist/hooks/usePopover.js +47 -0
  235. package/dist/hooks/usePortalContainer.js +14 -0
  236. package/dist/hooks/useSettings.js +8 -0
  237. package/dist/hooks/useTheme.js +8 -0
  238. package/dist/hooks/useTypeahead.js +19 -0
  239. package/dist/index.js +133 -12884
  240. package/dist/lib/anchorPlacement.js +75 -0
  241. package/dist/lib/calendar.js +666 -0
  242. package/dist/lib/cn.js +228 -0
  243. package/dist/lib/codeInput.js +51 -0
  244. package/dist/lib/dateParts.js +31 -0
  245. package/dist/lib/dialogDrag.js +45 -0
  246. package/dist/lib/dialogResize.js +47 -0
  247. package/dist/lib/formatDate.js +29 -0
  248. package/dist/lib/formatMediaTime.js +7 -0
  249. package/dist/lib/layout.js +29 -0
  250. package/dist/lib/math.js +6 -0
  251. package/dist/lib/mergeRefs.d.ts +6 -0
  252. package/dist/lib/mergeRefs.js +17 -0
  253. package/dist/lib/months.js +30 -0
  254. package/dist/lib/overlayStack.js +47 -0
  255. package/dist/lib/panelResize.js +8 -0
  256. package/dist/lib/passwordRequirements.js +23 -0
  257. package/dist/lib/qrCode.js +570 -0
  258. package/dist/lib/tones.js +104 -0
  259. package/dist/lib/typeahead.js +31 -0
  260. package/dist/providers/ControlSizeContext.js +9 -0
  261. package/dist/providers/ControlSizeProvider.js +11 -0
  262. package/dist/providers/SettingsContext.js +53 -0
  263. package/dist/providers/SettingsProvider.js +249 -0
  264. package/dist/providers/ThemeContext.js +5 -0
  265. package/dist/providers/ThemeProvider.js +17 -0
  266. package/dist/providers/accentColors.js +75 -0
  267. package/dist/providers/themeClasses.d.ts +1 -0
  268. package/dist/providers/themeClasses.js +20 -0
  269. package/dist/styles.css +228 -176
  270. package/dist/themes/cyber-brutal-dark.css +53 -0
  271. package/dist/themes/cyber-brutal-light.css +75 -0
  272. package/dist/themes/glass-dark.css +217 -0
  273. package/dist/themes/glass-light.css +215 -0
  274. package/dist/themes/hashi.css +66 -0
  275. package/dist/themes/light-inverted.css +32 -0
  276. package/dist/themes/light.css +1 -0
  277. package/dist/themes/monokai.css +51 -0
  278. package/dist/themes/solarized.css +55 -0
  279. package/package.json +3 -1
@@ -0,0 +1,13 @@
1
+ import { cn as e } from "../../lib/cn.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ //#region src/components/ui/Kbd.tsx
4
+ function n({ children: n, className: r, ref: i, ...a }) {
5
+ return /* @__PURE__ */ t("kbd", {
6
+ ...a,
7
+ ref: i,
8
+ className: e("text-2xs inline-flex items-center px-1.5 py-0.5 font-mono font-medium", "bg-bg-tertiary text-text-secondary border-border rounded border", r),
9
+ children: n
10
+ });
11
+ }
12
+ //#endregion
13
+ export { n as Kbd };
@@ -1,4 +1,4 @@
1
- import type { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from "react";
1
+ import type { ComponentPropsWithRef, ReactNode } from "react";
2
2
  interface ListItemLinkBase {
3
3
  /** Primary content of the row. */
4
4
  title: ReactNode;
@@ -12,14 +12,14 @@ interface ListItemLinkBase {
12
12
  active?: boolean;
13
13
  className?: string;
14
14
  }
15
- type LinkAttributes = AnchorHTMLAttributes<HTMLAnchorElement> & {
15
+ type LinkAttributes = ComponentPropsWithRef<"a"> & {
16
16
  href: string;
17
17
  };
18
18
  export type ListItemLinkProps = ListItemLinkBase & ((Omit<LinkAttributes, "children" | "title"> & {
19
19
  as?: "a";
20
20
  /** Router adapters must render an anchor and forward the supplied props. */
21
21
  renderLink?: (props: LinkAttributes) => ReactNode;
22
- }) | (Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "title"> & {
22
+ }) | (Omit<ComponentPropsWithRef<"button">, "children" | "title"> & {
23
23
  as: "button";
24
24
  renderLink?: never;
25
25
  }));
@@ -0,0 +1,44 @@
1
+ import { cn as e } from "../../lib/cn.js";
2
+ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ //#region src/components/ui/ListItemLink.tsx
4
+ function i({ title: i, icon: a, meta: o, trailing: s, active: c, className: l, ...u }) {
5
+ let d = e("group hover:bg-bg-hover flex min-w-0 items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs transition-colors duration-[100ms] focus-visible:outline-accent focus-visible:outline-2 focus-visible:outline-offset-2", c && "bg-accent-muted", l), f = /* @__PURE__ */ r(t, { children: [
6
+ a != null && /* @__PURE__ */ n("span", {
7
+ className: "shrink-0",
8
+ children: a
9
+ }),
10
+ /* @__PURE__ */ r("span", {
11
+ className: e("min-w-0 flex-1", u.as !== "button" && "truncate"),
12
+ children: [/* @__PURE__ */ n("span", {
13
+ className: e("text-text-primary", u.as !== "button" && "group-hover:underline"),
14
+ children: i
15
+ }), o != null && /* @__PURE__ */ n("span", {
16
+ className: e("text-text-disabled text-2xs", u.as !== "button" && "ml-2"),
17
+ children: o
18
+ })]
19
+ }),
20
+ s != null && /* @__PURE__ */ n("span", {
21
+ className: "text-text-tertiary text-2xs shrink-0",
22
+ children: s
23
+ })
24
+ ] });
25
+ if (u.as === "button") {
26
+ let { as: e, ...t } = u;
27
+ return /* @__PURE__ */ n(e, {
28
+ type: "button",
29
+ ...t,
30
+ "aria-pressed": c ?? t["aria-pressed"],
31
+ className: d,
32
+ children: f
33
+ });
34
+ }
35
+ let { as: p = "a", renderLink: m, ...h } = u, g = {
36
+ ...h,
37
+ "aria-current": c ? "page" : h["aria-current"],
38
+ className: d,
39
+ children: f
40
+ };
41
+ return m ? m(g) : /* @__PURE__ */ n(p, { ...g });
42
+ }
43
+ //#endregion
44
+ export { i as ListItemLink };
@@ -1,8 +1,9 @@
1
+ import type { ComponentPropsWithRef } from "react";
1
2
  export type LoadingSpinnerSize = "sm" | "md" | "lg";
2
- export interface LoadingSpinnerProps {
3
+ export interface LoadingSpinnerProps extends Omit<ComponentPropsWithRef<"div">, "children"> {
3
4
  /** Additional utility classes appended to the centering wrapper. */
4
5
  className?: string;
5
6
  /** Size of the spinner icon. Defaults to `md`. */
6
7
  size?: LoadingSpinnerSize;
7
8
  }
8
- export declare function LoadingSpinner({ className, size, }: LoadingSpinnerProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function LoadingSpinner({ className, size, ref, ...rest }: LoadingSpinnerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { cn as e } from "../../lib/cn.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { Loader2 as n } from "lucide-react";
4
+ //#region src/components/ui/LoadingSpinner.tsx
5
+ var r = {
6
+ sm: "w-4 h-4",
7
+ md: "w-6 h-6",
8
+ lg: "w-8 h-8"
9
+ };
10
+ function i({ className: i, size: a = "md", ref: o, ...s }) {
11
+ return /* @__PURE__ */ t("div", {
12
+ ...s,
13
+ ref: o,
14
+ className: e("flex min-h-[200px] items-center justify-center", i),
15
+ children: /* @__PURE__ */ t(n, { className: e("text-accent animate-spin", r[a]) })
16
+ });
17
+ }
18
+ //#endregion
19
+ export { i as LoadingSpinner };
@@ -1,5 +1,5 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface MessageBubbleProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentPropsWithRef, ReactNode } from "react";
2
+ export interface MessageBubbleProps extends ComponentPropsWithRef<"div"> {
3
3
  /** Which side of the conversation sent the message. */
4
4
  direction: "inbound" | "outbound";
5
5
  /** Sender name displayed above the message. */
@@ -0,0 +1,41 @@
1
+ import { cn as e } from "../../lib/cn.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ //#region src/components/ui/MessageBubble.tsx
4
+ function r({ direction: r, author: i, timestamp: a, status: o, actions: s, children: c, className: l, ...u }) {
5
+ let d = r === "outbound";
6
+ return /* @__PURE__ */ t("div", {
7
+ role: "group",
8
+ "aria-label": `${d ? "Outbound" : "Inbound"} message`,
9
+ ...u,
10
+ "data-direction": r,
11
+ className: e("flex", d && "justify-end", l),
12
+ children: /* @__PURE__ */ n("div", {
13
+ className: e("min-w-0 rounded-md px-4 py-3", d ? "bg-accent text-text-on-accent" : "border-border bg-bg-secondary text-text-primary border"),
14
+ style: { maxWidth: "min(36rem, 85%)" },
15
+ children: [
16
+ i != null && /* @__PURE__ */ t("div", {
17
+ className: "mb-1 text-xs font-medium",
18
+ children: i
19
+ }),
20
+ /* @__PURE__ */ t("div", {
21
+ className: "text-xs whitespace-pre-wrap",
22
+ style: { overflowWrap: "anywhere" },
23
+ children: c
24
+ }),
25
+ (a != null || o != null || s != null) && /* @__PURE__ */ n("div", {
26
+ className: "mt-2 flex flex-wrap items-center gap-2 text-2xs",
27
+ children: [
28
+ a != null && /* @__PURE__ */ t("span", { children: a }),
29
+ o != null && /* @__PURE__ */ t("span", { children: o }),
30
+ s != null && /* @__PURE__ */ t("span", {
31
+ className: "inline-flex items-center gap-1",
32
+ children: s
33
+ })
34
+ ]
35
+ })
36
+ ]
37
+ })
38
+ });
39
+ }
40
+ //#endregion
41
+ export { r as MessageBubble };
@@ -26,7 +26,7 @@
26
26
  * <MetadataGrid striped items={items} />
27
27
  * ```
28
28
  */
29
- import { type ReactNode } from "react";
29
+ import { type HTMLAttributes, type ReactNode, type Ref } from "react";
30
30
  import { type LayoutGap, type LayoutResponsive } from "../../lib/layout";
31
31
  interface MetadataItem {
32
32
  /** The label displayed in the left column. */
@@ -34,7 +34,9 @@ interface MetadataItem {
34
34
  /** The value displayed in the right column — can be a string or JSX. */
35
35
  value: ReactNode;
36
36
  }
37
- export interface MetadataGridProps {
37
+ export interface MetadataGridProps extends Omit<HTMLAttributes<HTMLElement>, "children"> {
38
+ /** Ref to the root element: a `dl` when stacked, otherwise a `div`. */
39
+ ref?: Ref<HTMLElement>;
38
40
  /** Inline preserves the original two-column markup (unless `striped`); stacked places labels above values. */
39
41
  layout?: "inline" | "stacked";
40
42
  /** Stacked layout columns at mobile-first breakpoints. */
@@ -63,5 +65,5 @@ export interface MetadataGridProps {
63
65
  /** Additional utility classes for the root container. */
64
66
  className?: string;
65
67
  }
66
- export declare function MetadataGrid({ items, labelWidth, layout, columns, gap, striped, className, }: MetadataGridProps): import("react/jsx-runtime").JSX.Element;
68
+ export declare function MetadataGrid({ items, labelWidth, layout, columns, gap, striped, className, ref, style, ...rest }: MetadataGridProps): import("react/jsx-runtime").JSX.Element;
67
69
  export {};
@@ -0,0 +1,76 @@
1
+ import { cn as e } from "../../lib/cn.js";
2
+ import { columnTemplate as t, responsiveStyle as n, spacingStyle as r } from "../../lib/layout.js";
3
+ import { Fragment as i } from "react";
4
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
+ //#region src/components/ui/MetadataGrid.tsx
6
+ var s = "ui-metadata-stripe rounded-md px-2 py-1.5";
7
+ function c(e, t) {
8
+ return n("stripe", t, (t) => Math.floor(e / t) % 2 == 0 ? "var(--ui-metadata-stripe-color, var(--bg-tertiary))" : "transparent", 1);
9
+ }
10
+ function l({ items: l, labelWidth: u = "100px", layout: d = "inline", columns: f = 1, gap: p = 3, striped: m = !1, className: h, ref: g, style: _, ...v }) {
11
+ let y = g, b = g;
12
+ return d === "stacked" ? /* @__PURE__ */ a("dl", {
13
+ ...v,
14
+ ref: y,
15
+ className: e("ui-grid text-xs", h),
16
+ style: {
17
+ ...n("columns", f, t, 1),
18
+ ...m ? r(p, void 0, 0) : r(p),
19
+ ..._
20
+ },
21
+ children: l.map((t, n) => /* @__PURE__ */ o("div", {
22
+ className: m ? s : void 0,
23
+ style: m ? c(n, f) : void 0,
24
+ children: [/* @__PURE__ */ a("dt", {
25
+ className: "text-text-tertiary font-label",
26
+ children: t.label
27
+ }), /* @__PURE__ */ a("dd", {
28
+ className: e((typeof t.value == "string" || typeof t.value == "number") && "text-text-primary font-data"),
29
+ children: t.value
30
+ })]
31
+ }, t.label))
32
+ }) : m ? /* @__PURE__ */ a("div", {
33
+ ...v,
34
+ ref: b,
35
+ className: e("gap-x-3 text-xs", h),
36
+ style: {
37
+ display: "grid",
38
+ gridTemplateColumns: `${u} 1fr`,
39
+ ..._
40
+ },
41
+ children: l.map((e, t) => /* @__PURE__ */ o("div", {
42
+ className: s,
43
+ style: {
44
+ ...c(t, 1),
45
+ display: "grid",
46
+ gridColumn: "1 / -1",
47
+ gridTemplateColumns: "subgrid"
48
+ },
49
+ children: [/* @__PURE__ */ a("span", {
50
+ className: "text-text-tertiary font-label",
51
+ children: e.label
52
+ }), typeof e.value == "string" || typeof e.value == "number" ? /* @__PURE__ */ a("span", {
53
+ className: "text-text-primary font-data",
54
+ children: e.value
55
+ }) : /* @__PURE__ */ a("span", { children: e.value })]
56
+ }, e.label))
57
+ }) : /* @__PURE__ */ a("div", {
58
+ ...v,
59
+ ref: b,
60
+ className: e("gap-x-3 gap-y-2 text-xs", h),
61
+ style: {
62
+ display: "grid",
63
+ gridTemplateColumns: `${u} 1fr`,
64
+ ..._
65
+ },
66
+ children: l.map((e) => /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a("span", {
67
+ className: "text-text-tertiary font-label",
68
+ children: e.label
69
+ }), typeof e.value == "string" || typeof e.value == "number" ? /* @__PURE__ */ a("span", {
70
+ className: "text-text-primary font-data",
71
+ children: e.value
72
+ }) : /* @__PURE__ */ a("span", { children: e.value })] }, e.label))
73
+ });
74
+ }
75
+ //#endregion
76
+ export { l as MetadataGrid };
@@ -1,5 +1,5 @@
1
- import type { ElementType } from "react";
2
- export interface MetricCardProps {
1
+ import type { ComponentPropsWithRef, ElementType } from "react";
2
+ export interface MetricCardProps extends Omit<ComponentPropsWithRef<"div">, "children"> {
3
3
  /** Small uppercase caption naming the metric. */
4
4
  label: string;
5
5
  /** The headline figure. */
@@ -26,4 +26,4 @@ export interface MetricCardProps {
26
26
  /** Additional utility classes appended to the root element. */
27
27
  className?: string;
28
28
  }
29
- export declare function MetricCard({ label, value, sub, trend, bar, icon: Icon, iconColor, className, }: MetricCardProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function MetricCard({ label, value, sub, trend, bar, icon: Icon, iconColor, className, ref, ...rest }: MetricCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,51 @@
1
+ import { cn as e } from "../../lib/cn.js";
2
+ import { isTone as t, toneClasses as n } from "../../lib/tones.js";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ //#region src/components/ui/MetricCard.tsx
5
+ var a = {
6
+ positive: "success",
7
+ negative: "danger",
8
+ neutral: "neutral"
9
+ };
10
+ function o({ label: o, value: s, sub: c, trend: l, bar: u, icon: d, iconColor: f, className: p, ref: m, ...h }) {
11
+ let g = l && a[l.tone], _ = n(t(g) ? g : "neutral").text;
12
+ return /* @__PURE__ */ i("div", {
13
+ ...h,
14
+ ref: m,
15
+ className: e("ui-glass bg-bg-card border-border relative overflow-hidden rounded-md border p-3", p),
16
+ children: [
17
+ d && /* @__PURE__ */ r(d, { className: e("absolute -right-9 -bottom-9 h-44 w-44 -rotate-45 opacity-[0.06]", f) }),
18
+ /* @__PURE__ */ r("p", {
19
+ className: "text-2xs-f text-text-tertiary font-label mb-1 font-medium tracking-wider uppercase",
20
+ children: o
21
+ }),
22
+ /* @__PURE__ */ r("p", {
23
+ className: "text-text-primary font-data text-xl font-bold tabular-nums",
24
+ children: s
25
+ }),
26
+ c && /* @__PURE__ */ r("p", {
27
+ className: "text-2xs text-text-tertiary font-label mt-0.5",
28
+ children: c
29
+ }),
30
+ l && /* @__PURE__ */ i("p", {
31
+ className: "text-2xs font-label mt-1 flex items-center gap-1",
32
+ children: [/* @__PURE__ */ r("span", {
33
+ className: e("font-medium tabular-nums", _),
34
+ children: l.value
35
+ }), /* @__PURE__ */ r("span", {
36
+ className: "text-text-tertiary",
37
+ children: l.label
38
+ })]
39
+ }),
40
+ u !== void 0 && /* @__PURE__ */ r("div", {
41
+ className: "bg-bg-tertiary mt-2 h-[3px] overflow-hidden rounded-md",
42
+ children: /* @__PURE__ */ r("div", {
43
+ className: "bg-accent h-full rounded-md transition-all duration-[250ms] ease-out",
44
+ style: { width: `${Math.min(100, Math.max(0, u))}%` }
45
+ })
46
+ })
47
+ ]
48
+ });
49
+ }
50
+ //#endregion
51
+ export { o as MetricCard };
@@ -1,4 +1,4 @@
1
- import type { AnchorHTMLAttributes, HTMLAttributes, ReactNode } from "react";
1
+ import type { AnchorHTMLAttributes, ComponentPropsWithRef, ReactNode } from "react";
2
2
  export interface NavTab extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children"> {
3
3
  /** Unique identifier, matched against `activeKey` and used as the list key. */
4
4
  key: string;
@@ -9,7 +9,7 @@ export interface NavTab extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "c
9
9
  /** Small pill shown after the label, such as a count. */
10
10
  badge?: ReactNode;
11
11
  }
12
- export interface NavTabsProps extends HTMLAttributes<HTMLElement> {
12
+ export interface NavTabsProps extends ComponentPropsWithRef<"nav"> {
13
13
  /** The tabs to render, in order. */
14
14
  items: NavTab[];
15
15
  /** Key of the current tab; it is styled as active and given `aria-current="page"`. */
@@ -0,0 +1,29 @@
1
+ import { cn as e } from "../../lib/cn.js";
2
+ import { Badge as t } from "./Badge.js";
3
+ import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ //#region src/components/ui/NavTabs.tsx
5
+ function a({ items: a, activeKey: o, renderLink: s, className: c, "aria-label": l = "Sections", ...u }) {
6
+ return /* @__PURE__ */ r("nav", {
7
+ ...u,
8
+ "aria-label": l,
9
+ className: e("ui-nav-tabs border-border border-b", c),
10
+ children: /* @__PURE__ */ r("ul", {
11
+ className: "ui-nav-tabs-list",
12
+ children: a.map((a) => {
13
+ let { key: c, label: l, badge: u, ...d } = a, f = {
14
+ ...d,
15
+ "aria-current": c === o ? "page" : void 0,
16
+ className: e("ui-nav-tab px-3 py-2 text-xs font-medium", c === o ? "text-accent-fg" : "text-text-secondary", a.className),
17
+ children: /* @__PURE__ */ i(n, { children: [l, u !== void 0 && /* @__PURE__ */ r(t, {
18
+ size: "xs",
19
+ className: "bg-bg-tertiary font-inherit text-inherit",
20
+ children: u
21
+ })] })
22
+ };
23
+ return /* @__PURE__ */ r("li", { children: s ? s(f, a) : /* @__PURE__ */ r("a", { ...f }) }, c);
24
+ })
25
+ })
26
+ });
27
+ }
28
+ //#endregion
29
+ export { a as NavTabs };
@@ -1,6 +1,6 @@
1
- import type { ButtonHTMLAttributes } from "react";
1
+ import type { ComponentPropsWithRef } from "react";
2
2
  type OAuthProvider = "github" | "google";
3
- export interface OAuthButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ export interface OAuthButtonProps extends ComponentPropsWithRef<"button"> {
4
4
  /** Identity provider; selects the icon and default label (`github` or `google`). */
5
5
  provider: OAuthProvider;
6
6
  }
@@ -0,0 +1,55 @@
1
+ import { Button as e } from "./Button.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ //#region src/components/ui/OAuthButton.tsx
4
+ function r() {
5
+ return /* @__PURE__ */ n("svg", {
6
+ className: "h-3.5 w-3.5",
7
+ viewBox: "0 0 24 24",
8
+ "aria-hidden": "true",
9
+ children: [
10
+ /* @__PURE__ */ t("path", {
11
+ fill: "currentColor",
12
+ d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z"
13
+ }),
14
+ /* @__PURE__ */ t("path", {
15
+ fill: "currentColor",
16
+ d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
17
+ }),
18
+ /* @__PURE__ */ t("path", {
19
+ fill: "currentColor",
20
+ d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
21
+ }),
22
+ /* @__PURE__ */ t("path", {
23
+ fill: "currentColor",
24
+ d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
25
+ })
26
+ ]
27
+ });
28
+ }
29
+ function i() {
30
+ return /* @__PURE__ */ t("svg", {
31
+ className: "h-3.5 w-3.5",
32
+ viewBox: "0 0 24 24",
33
+ fill: "currentColor",
34
+ "aria-hidden": "true",
35
+ children: /* @__PURE__ */ t("path", { d: "M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" })
36
+ });
37
+ }
38
+ var a = {
39
+ github: "GitHub",
40
+ google: "Google"
41
+ }, o = {
42
+ github: i,
43
+ google: r
44
+ };
45
+ function s({ provider: r, children: i, ...s }) {
46
+ let c = o[r];
47
+ return /* @__PURE__ */ n(e, {
48
+ variant: "secondary",
49
+ size: "md",
50
+ ...s,
51
+ children: [/* @__PURE__ */ t(c, {}), i ?? a[r]]
52
+ });
53
+ }
54
+ //#endregion
55
+ export { s as OAuthButton };
@@ -1,9 +1,9 @@
1
- import type { ElementType, ReactNode } from "react";
2
- export interface OverlineLabelProps {
1
+ import type { ComponentPropsWithRef, ElementType, ReactNode } from "react";
2
+ export interface OverlineLabelProps extends ComponentPropsWithRef<"span"> {
3
3
  /** Short label above a group of related content. */
4
4
  children: ReactNode;
5
5
  /** Semantic element; defaults to span. */
6
6
  as?: ElementType;
7
7
  className?: string;
8
8
  }
9
- export declare function OverlineLabel({ children, as: Tag, className, }: OverlineLabelProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function OverlineLabel({ children, as: Tag, className, ref, ...rest }: OverlineLabelProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { cn as e } from "../../lib/cn.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ //#region src/components/ui/OverlineLabel.tsx
4
+ function n({ children: n, as: r = "span", className: i, ref: a, ...o }) {
5
+ return /* @__PURE__ */ t(r, {
6
+ ...o,
7
+ ref: a,
8
+ className: e("text-2xs text-text-tertiary font-label font-medium tracking-wider uppercase", i),
9
+ children: n
10
+ });
11
+ }
12
+ //#endregion
13
+ export { n as OverlineLabel };
@@ -24,8 +24,8 @@
24
24
  * />
25
25
  * ```
26
26
  */
27
- import type { ReactNode } from "react";
28
- export interface PageHeaderProps {
27
+ import type { ComponentPropsWithRef, ReactNode } from "react";
28
+ export interface PageHeaderProps extends Omit<ComponentPropsWithRef<"div">, "title"> {
29
29
  /** The page title, rendered as an h1 unless headingLevel changes it. */
30
30
  title: ReactNode;
31
31
  /** Optional subtitle displayed below the title in a smaller, muted style. */
@@ -45,4 +45,4 @@ export interface PageHeaderProps {
45
45
  /** Additional utility classes appended to the root element. */
46
46
  className?: string;
47
47
  }
48
- export declare function PageHeader({ title, subtitle, actions, className, eyebrow, headingLevel, wrap, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
48
+ export declare function PageHeader({ title, subtitle, actions, className, eyebrow, headingLevel, wrap, ref, ...rest }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { cn as e } from "../../lib/cn.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ //#region src/components/ui/PageHeader.tsx
4
+ function r({ title: r, subtitle: i, actions: a, className: o, eyebrow: s, headingLevel: c = 1, wrap: l = !1, ref: u, ...d }) {
5
+ let f = `h${c}`;
6
+ return /* @__PURE__ */ n("div", {
7
+ ...d,
8
+ ref: u,
9
+ className: e("flex items-center justify-between gap-3", l && "flex-wrap", o),
10
+ children: [/* @__PURE__ */ n("div", {
11
+ className: "min-w-0",
12
+ children: [
13
+ s && /* @__PURE__ */ t("p", {
14
+ className: "text-text-tertiary text-2xs",
15
+ children: s
16
+ }),
17
+ /* @__PURE__ */ t(f, {
18
+ className: "text-text-primary font-heading text-sm font-semibold",
19
+ children: r
20
+ }),
21
+ i && /* @__PURE__ */ t("p", {
22
+ className: "text-text-tertiary text-xs",
23
+ children: i
24
+ })
25
+ ]
26
+ }), a && /* @__PURE__ */ t("div", {
27
+ className: e("flex items-center gap-2", l && "flex-wrap"),
28
+ children: a
29
+ })]
30
+ });
31
+ }
32
+ //#endregion
33
+ export { r as PageHeader };
@@ -1,5 +1,5 @@
1
- import type { ElementType, ReactNode } from "react";
2
- export interface PageSectionProps {
1
+ import type { ComponentPropsWithRef, ElementType, ReactNode } from "react";
2
+ export interface PageSectionProps extends Omit<ComponentPropsWithRef<"section">, "title"> {
3
3
  /** Section heading, rendered with the `as` element. */
4
4
  title?: ReactNode;
5
5
  /** Muted text below the title. */
@@ -17,4 +17,4 @@ export interface PageSectionProps {
17
17
  /** Additional utility classes for the wrapper around `children`. */
18
18
  contentClassName?: string;
19
19
  }
20
- export declare function PageSection({ title, description, actions, children, as: Tag, className, headerClassName, contentClassName, }: PageSectionProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function PageSection({ title, description, actions, children, as: Tag, className, headerClassName, contentClassName, ref, ...rest }: PageSectionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,31 @@
1
+ import { cn as e } from "../../lib/cn.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ //#region src/components/ui/PageSection.tsx
4
+ function r({ title: r, description: i, actions: a, children: o, as: s = "h2", className: c, headerClassName: l, contentClassName: u, ref: d, ...f }) {
5
+ return /* @__PURE__ */ n("section", {
6
+ ...f,
7
+ ref: d,
8
+ className: e("space-y-4", c),
9
+ children: [(r || i || a) && /* @__PURE__ */ n("div", {
10
+ className: e("border-border flex items-end justify-between gap-3 border-b pb-2", l),
11
+ children: [/* @__PURE__ */ n("div", {
12
+ className: "min-w-0",
13
+ children: [r && /* @__PURE__ */ t(s, {
14
+ className: "text-text-primary font-heading text-xs font-semibold",
15
+ children: r
16
+ }), i && /* @__PURE__ */ t("p", {
17
+ className: "text-text-secondary mt-1 text-xs",
18
+ children: i
19
+ })]
20
+ }), a && /* @__PURE__ */ t("div", {
21
+ className: "flex items-center gap-2",
22
+ children: a
23
+ })]
24
+ }), /* @__PURE__ */ t("div", {
25
+ className: u,
26
+ children: o
27
+ })]
28
+ });
29
+ }
30
+ //#endregion
31
+ export { r as PageSection };
@@ -26,12 +26,12 @@
26
26
  * />
27
27
  * ```
28
28
  */
29
- import type { ReactNode } from "react";
29
+ import type { ComponentPropsWithRef, ReactNode } from "react";
30
30
  export interface PageSizeOption {
31
31
  value: string;
32
32
  label: string;
33
33
  }
34
- export interface PaginationBarProps {
34
+ export interface PaginationBarProps extends Omit<ComponentPropsWithRef<"div">, "children"> {
35
35
  /** Current page number (1-indexed). */
36
36
  page: number;
37
37
  /** Number of items per page. */
@@ -61,4 +61,4 @@ export interface PaginationBarProps {
61
61
  /** Additional utility classes for the root container. */
62
62
  className?: string;
63
63
  }
64
- export declare function PaginationBar({ page, pageSize, total, summary, showTotal, loading, pageSizeOptions, onPageChange, onPageSizeChange, className, }: PaginationBarProps): import("react/jsx-runtime").JSX.Element;
64
+ export declare function PaginationBar({ page, pageSize, total, summary, showTotal, loading, pageSizeOptions, onPageChange, onPageSizeChange, className, ref, ...rest }: PaginationBarProps): import("react/jsx-runtime").JSX.Element;