@brightlocal/ui-components 2.26.0 → 3.0.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 (284) hide show
  1. package/README.md +9 -2
  2. package/component-meta.json +4010 -255
  3. package/deprecations.json +189 -2
  4. package/dist/accordion.cjs +1 -1
  5. package/dist/accordion.js +2 -2
  6. package/dist/alert-dialog.cjs +1 -1
  7. package/dist/alert-dialog.js +18 -18
  8. package/dist/alert.cjs +1 -1
  9. package/dist/alert.d.ts +11 -1
  10. package/dist/alert.d.ts.map +1 -1
  11. package/dist/alert.js +31 -28
  12. package/dist/avatar.cjs +1 -1
  13. package/dist/avatar.js +4 -4
  14. package/dist/badge.cjs +1 -1
  15. package/dist/badge.d.ts.map +1 -1
  16. package/dist/badge.js +15 -11
  17. package/dist/blocks/empty-state.cjs +1 -0
  18. package/dist/blocks/empty-state.d.ts +172 -0
  19. package/dist/blocks/empty-state.d.ts.map +1 -0
  20. package/dist/blocks/empty-state.js +155 -0
  21. package/dist/blocks/input-list.cjs +2 -2
  22. package/dist/blocks/input-list.d.ts.map +1 -1
  23. package/dist/blocks/input-list.js +124 -108
  24. package/dist/blocks/progress-state.cjs +1 -0
  25. package/dist/blocks/progress-state.d.ts +121 -0
  26. package/dist/blocks/progress-state.d.ts.map +1 -0
  27. package/dist/blocks/progress-state.js +368 -0
  28. package/dist/blocks/sidebar.cjs +1 -1
  29. package/dist/blocks/sidebar.d.ts.map +1 -1
  30. package/dist/blocks/sidebar.js +297 -296
  31. package/dist/brand-illustration-motif.d.ts +1 -1
  32. package/dist/breadcrumb.cjs +1 -1
  33. package/dist/breadcrumb.d.ts.map +1 -1
  34. package/dist/breadcrumb.js +44 -40
  35. package/dist/button.cjs +1 -1
  36. package/dist/button.d.ts.map +1 -1
  37. package/dist/button.js +23 -23
  38. package/dist/calendar.cjs +1 -1
  39. package/dist/calendar.d.ts.map +1 -1
  40. package/dist/calendar.js +37 -38
  41. package/dist/callout.cjs +1 -1
  42. package/dist/callout.d.ts +24 -2
  43. package/dist/callout.d.ts.map +1 -1
  44. package/dist/callout.js +57 -55
  45. package/dist/card.cjs +1 -1
  46. package/dist/card.d.ts +23 -2
  47. package/dist/card.d.ts.map +1 -1
  48. package/dist/card.js +94 -91
  49. package/dist/chart-empty.cjs +1 -0
  50. package/dist/chart-empty.d.ts +59 -0
  51. package/dist/chart-empty.d.ts.map +1 -0
  52. package/dist/chart-empty.js +29 -0
  53. package/dist/chart.cjs +6 -6
  54. package/dist/chart.d.ts +6 -1
  55. package/dist/chart.d.ts.map +1 -1
  56. package/dist/chart.js +183 -183
  57. package/dist/chip.cjs +1 -1
  58. package/dist/chip.d.ts +1 -1
  59. package/dist/chip.d.ts.map +1 -1
  60. package/dist/chip.js +47 -44
  61. package/dist/combobox.cjs +3 -3
  62. package/dist/combobox.d.ts +4 -2
  63. package/dist/combobox.d.ts.map +1 -1
  64. package/dist/combobox.js +143 -141
  65. package/dist/command.cjs +1 -1
  66. package/dist/command.d.ts.map +1 -1
  67. package/dist/command.js +74 -77
  68. package/dist/context-menu.cjs +1 -1
  69. package/dist/context-menu.d.ts.map +1 -1
  70. package/dist/context-menu.js +26 -29
  71. package/dist/data-table.cjs +1 -1
  72. package/dist/data-table.d.ts +182 -13
  73. package/dist/data-table.d.ts.map +1 -1
  74. package/dist/data-table.js +462 -314
  75. package/dist/description.cjs +1 -1
  76. package/dist/description.js +5 -5
  77. package/dist/dialog.cjs +1 -1
  78. package/dist/dialog.js +20 -20
  79. package/dist/drawer.cjs +1 -1
  80. package/dist/drawer.d.ts.map +1 -1
  81. package/dist/drawer.js +8 -11
  82. package/dist/dropdown-menu.cjs +1 -1
  83. package/dist/dropdown-menu.d.ts.map +1 -1
  84. package/dist/dropdown-menu.js +17 -20
  85. package/dist/field.cjs +1 -1
  86. package/dist/field.d.ts.map +1 -1
  87. package/dist/field.js +29 -25
  88. package/dist/global-layout.cjs +1 -1
  89. package/dist/global-layout.d.ts +58 -6
  90. package/dist/global-layout.d.ts.map +1 -1
  91. package/dist/global-layout.js +278 -194
  92. package/dist/grid.cjs +1 -0
  93. package/dist/grid.d.ts +56 -0
  94. package/dist/grid.d.ts.map +1 -0
  95. package/dist/grid.js +32 -0
  96. package/dist/header.d.ts +13 -0
  97. package/dist/header.d.ts.map +1 -1
  98. package/dist/hooks/use-delayed-pending.cjs +1 -0
  99. package/dist/hooks/use-delayed-pending.d.ts +34 -0
  100. package/dist/hooks/use-delayed-pending.d.ts.map +1 -0
  101. package/dist/hooks/use-delayed-pending.js +17 -0
  102. package/dist/hover-card.cjs +1 -1
  103. package/dist/hover-card.js +13 -13
  104. package/dist/index.cjs +1 -1
  105. package/dist/index.d.ts +10 -0
  106. package/dist/index.d.ts.map +1 -1
  107. package/dist/index.js +523 -494
  108. package/dist/input-chip.cjs +1 -1
  109. package/dist/input-chip.js +25 -25
  110. package/dist/input-group.cjs +1 -1
  111. package/dist/input-group.js +9 -9
  112. package/dist/input-otp.cjs +1 -1
  113. package/dist/input-otp.js +9 -9
  114. package/dist/input-password.cjs +1 -1
  115. package/dist/input-password.js +51 -51
  116. package/dist/input.cjs +1 -1
  117. package/dist/input.js +9 -9
  118. package/dist/label.cjs +1 -1
  119. package/dist/label.d.ts.map +1 -1
  120. package/dist/label.js +25 -28
  121. package/dist/lib/block-illustration.cjs +1 -0
  122. package/dist/lib/block-illustration.d.ts +28 -0
  123. package/dist/lib/block-illustration.d.ts.map +1 -0
  124. package/dist/lib/block-illustration.js +21 -0
  125. package/dist/lib/empty-canvas.cjs +1 -0
  126. package/dist/lib/empty-canvas.d.ts +27 -0
  127. package/dist/lib/empty-canvas.d.ts.map +1 -0
  128. package/dist/lib/empty-canvas.js +62 -0
  129. package/dist/lib/motion.cjs +1 -1
  130. package/dist/lib/motion.js +10 -8
  131. package/dist/lib/optical-center.cjs +1 -0
  132. package/dist/lib/optical-center.d.ts +12 -0
  133. package/dist/lib/optical-center.d.ts.map +1 -0
  134. package/dist/lib/optical-center.js +11 -0
  135. package/dist/lib/utils.cjs +1 -1
  136. package/dist/lib/utils.d.ts.map +1 -1
  137. package/dist/lib/utils.js +28 -5
  138. package/dist/link.cjs +1 -1
  139. package/dist/link.d.ts +8 -6
  140. package/dist/link.d.ts.map +1 -1
  141. package/dist/link.js +52 -20
  142. package/dist/list.cjs +1 -1
  143. package/dist/list.d.ts.map +1 -1
  144. package/dist/list.js +87 -81
  145. package/dist/map.cjs +1 -1
  146. package/dist/map.d.ts +60 -2
  147. package/dist/map.d.ts.map +1 -1
  148. package/dist/map.js +187 -164
  149. package/dist/media-empty.cjs +1 -0
  150. package/dist/media-empty.d.ts +72 -0
  151. package/dist/media-empty.d.ts.map +1 -0
  152. package/dist/media-empty.js +45 -0
  153. package/dist/menubar.cjs +1 -1
  154. package/dist/menubar.d.ts.map +1 -1
  155. package/dist/menubar.js +17 -20
  156. package/dist/navigation-menu.cjs +1 -1
  157. package/dist/navigation-menu.js +7 -7
  158. package/dist/pagination.cjs +1 -1
  159. package/dist/pagination.d.ts +127 -1
  160. package/dist/pagination.d.ts.map +1 -1
  161. package/dist/pagination.js +189 -98
  162. package/dist/progress.cjs +1 -1
  163. package/dist/progress.d.ts +37 -3
  164. package/dist/progress.d.ts.map +1 -1
  165. package/dist/progress.js +102 -64
  166. package/dist/route-progress.cjs +1 -0
  167. package/dist/route-progress.d.ts +103 -0
  168. package/dist/route-progress.d.ts.map +1 -0
  169. package/dist/route-progress.js +106 -0
  170. package/dist/select.cjs +2 -2
  171. package/dist/select.d.ts.map +1 -1
  172. package/dist/select.js +19 -18
  173. package/dist/separator.cjs +1 -1
  174. package/dist/separator.js +8 -8
  175. package/dist/sheet.cjs +1 -1
  176. package/dist/sheet.d.ts +35 -2
  177. package/dist/sheet.d.ts.map +1 -1
  178. package/dist/sheet.js +103 -66
  179. package/dist/skeleton.cjs +1 -1
  180. package/dist/skeleton.d.ts +38 -3
  181. package/dist/skeleton.d.ts.map +1 -1
  182. package/dist/skeleton.js +43 -20
  183. package/dist/sonner.cjs +1 -1
  184. package/dist/sonner.d.ts.map +1 -1
  185. package/dist/sonner.js +32 -36
  186. package/dist/spinner.cjs +1 -0
  187. package/dist/spinner.d.ts +57 -0
  188. package/dist/spinner.d.ts.map +1 -0
  189. package/dist/spinner.js +35 -0
  190. package/dist/stepper.cjs +1 -1
  191. package/dist/stepper.d.ts.map +1 -1
  192. package/dist/stepper.js +23 -22
  193. package/dist/table.cjs +1 -1
  194. package/dist/table.d.ts +1 -1
  195. package/dist/table.d.ts.map +1 -1
  196. package/dist/table.js +36 -29
  197. package/dist/tabs.cjs +1 -1
  198. package/dist/tabs.js +1 -1
  199. package/dist/text-reveal-motion.d.ts +10 -0
  200. package/dist/text-reveal-motion.d.ts.map +1 -1
  201. package/dist/textarea.cjs +1 -1
  202. package/dist/textarea.js +11 -11
  203. package/dist/toggle.cjs +1 -1
  204. package/dist/toggle.js +8 -8
  205. package/dist/tooltip.cjs +1 -1
  206. package/dist/tooltip.js +8 -8
  207. package/dist/typography-heading.cjs +1 -0
  208. package/dist/typography-heading.d.ts +116 -0
  209. package/dist/typography-heading.d.ts.map +1 -0
  210. package/dist/typography-heading.js +84 -0
  211. package/dist/typography-text.cjs +1 -0
  212. package/dist/typography-text.d.ts +113 -0
  213. package/dist/typography-text.d.ts.map +1 -0
  214. package/dist/typography-text.js +81 -0
  215. package/dist/typography.d.ts +13 -0
  216. package/dist/typography.d.ts.map +1 -1
  217. package/package.json +42 -2
  218. package/src/blocks/empty-state.tsx +424 -0
  219. package/src/blocks/input-list.tsx +66 -36
  220. package/src/blocks/progress-state.tsx +542 -0
  221. package/src/blocks/sidebar.tsx +46 -40
  222. package/src/components/accordion.tsx +2 -2
  223. package/src/components/alert-dialog.tsx +2 -2
  224. package/src/components/alert.tsx +27 -13
  225. package/src/components/avatar.tsx +1 -1
  226. package/src/components/badge.tsx +8 -4
  227. package/src/components/breadcrumb.tsx +9 -4
  228. package/src/components/button.tsx +5 -8
  229. package/src/components/calendar.tsx +5 -6
  230. package/src/components/callout.tsx +48 -15
  231. package/src/components/card.tsx +52 -17
  232. package/src/components/chart-empty.tsx +116 -0
  233. package/src/components/chart.tsx +43 -17
  234. package/src/components/chip.tsx +9 -6
  235. package/src/components/combobox.tsx +21 -12
  236. package/src/components/command.tsx +9 -10
  237. package/src/components/context-menu.tsx +6 -9
  238. package/src/components/data-table.tsx +405 -31
  239. package/src/components/description.tsx +1 -1
  240. package/src/components/dialog.tsx +2 -2
  241. package/src/components/drawer.tsx +2 -5
  242. package/src/components/dropdown-menu.tsx +8 -11
  243. package/src/components/field.tsx +8 -4
  244. package/src/components/global-layout.tsx +264 -65
  245. package/src/components/grid.tsx +130 -0
  246. package/src/components/header.tsx +13 -0
  247. package/src/components/hover-card.tsx +1 -1
  248. package/src/components/input-chip.tsx +1 -1
  249. package/src/components/input-group.tsx +1 -1
  250. package/src/components/input-otp.tsx +1 -1
  251. package/src/components/input-password.tsx +1 -1
  252. package/src/components/input.tsx +1 -1
  253. package/src/components/label.tsx +10 -13
  254. package/src/components/link.tsx +39 -5
  255. package/src/components/list.tsx +18 -14
  256. package/src/components/map.tsx +101 -5
  257. package/src/components/media-empty.tsx +156 -0
  258. package/src/components/menubar.tsx +7 -10
  259. package/src/components/navigation-menu.tsx +1 -1
  260. package/src/components/pagination.tsx +279 -1
  261. package/src/components/progress.tsx +120 -11
  262. package/src/components/route-progress.tsx +354 -0
  263. package/src/components/select.tsx +5 -4
  264. package/src/components/separator.tsx +1 -1
  265. package/src/components/sheet.tsx +89 -7
  266. package/src/components/skeleton.tsx +78 -7
  267. package/src/components/sonner.tsx +5 -14
  268. package/src/components/spinner.tsx +94 -0
  269. package/src/components/stepper.tsx +6 -7
  270. package/src/components/table.tsx +11 -4
  271. package/src/components/tabs.tsx +1 -1
  272. package/src/components/text-reveal-motion.tsx +10 -0
  273. package/src/components/textarea.tsx +1 -1
  274. package/src/components/toggle.tsx +1 -1
  275. package/src/components/tooltip.tsx +1 -1
  276. package/src/components/typography-heading.tsx +229 -0
  277. package/src/components/typography-text.tsx +225 -0
  278. package/src/components/typography.tsx +13 -0
  279. package/src/hooks/use-delayed-pending.ts +60 -0
  280. package/src/index.ts +12 -0
  281. package/src/lib/block-illustration.tsx +88 -0
  282. package/src/lib/empty-canvas.tsx +128 -0
  283. package/src/lib/optical-center.tsx +45 -0
  284. package/src/lib/utils.ts +26 -0
@@ -177,11 +177,13 @@ export enum SidebarCollapseIconType {
177
177
 
178
178
  const SIDEBAR_COOKIE_NAME = "sidebar:state";
179
179
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
180
- // Outer wrapper width: the designed 224px content (full-bleed menu buttons)
181
- // plus the ScrollArea viewport's 4px padding per side, which keeps the 3px
182
- // focus ring and the 4px overlay scrollbar from being clipped at the edges.
183
- const SIDEBAR_WIDTH = "232px";
184
- const SIDEBAR_WIDTH_MOBILE = "336px";
180
+ // Outer wrapper width per DS-860 — 288px, matching the Figma binding to
181
+ // `width/w-72`, so nav labels fit without truncation on small desktop
182
+ // screens. SidebarContent's viewport insets live inside this width: 8px on
183
+ // the left (Figma edge inset) and 12px on the right (8px clearance plus the
184
+ // 4px overlay scrollbar lane), so menu buttons render 268px wide with the
185
+ // 3px focus ring unclipped.
186
+ const SIDEBAR_WIDTH = "288px";
185
187
  const SIDEBAR_WIDTH_ICON = "48px";
186
188
  const SIDEBAR_KEYBOARD_SHORTCUT = "b";
187
189
 
@@ -455,16 +457,12 @@ const Sidebar = React.forwardRef<HTMLDivElement, SidebarProps>(
455
457
  return (
456
458
  <Sheet open={openMobile} onOpenChange={setOpenMobile}>
457
459
  <SheetContent
458
- className="bg-sidebar-background text-sidebar-foreground w-(--sidebar-width) p-6"
460
+ className="bg-sidebar-background text-sidebar-foreground p-6"
459
461
  data-hook={`${dataHook}-mobile-content`}
460
462
  data-mobile="true"
461
463
  data-sidebar="sidebar"
462
464
  side="left"
463
- style={
464
- {
465
- "--sidebar-width": `min(${SIDEBAR_WIDTH_MOBILE}, calc(100vw - 40px))`,
466
- } as React.CSSProperties
467
- }
465
+ size="sm"
468
466
  >
469
467
  <SheetTitle className="sr-only">
470
468
  {mobileTitle ?? "Navigation"}
@@ -688,7 +686,10 @@ const SidebarHeader = React.forwardRef<HTMLElement, SidebarHeaderProps>(
688
686
  <header
689
687
  ref={ref}
690
688
  className={cn(
691
- "pr-section-xs flex shrink-0 flex-col gap-2 pt-2 pb-9 pl-8",
689
+ // DS-860 Figma: logo sits 24px from the left and 24px from the
690
+ // top; pb-5 plus the ScrollArea viewport's 4px top inset gives the
691
+ // 24px gap to the first nav item.
692
+ "pr-section-xs flex shrink-0 flex-col gap-2 pt-6 pb-5 pl-6",
692
693
  className
693
694
  )}
694
695
  data-hook={dataHook}
@@ -812,8 +813,12 @@ const SidebarContent = React.forwardRef<HTMLDivElement, SidebarContentProps>(
812
813
  return (
813
814
  <ScrollArea
814
815
  ref={scrollAreaRef}
816
+ // DS-860 Figma insets: menu buttons sit 8px from the left edge
817
+ // (pl-2), and the right padding grows to 12px (4px scrollbar lane +
818
+ // 8px clearance) so buttons stop short of the overlay scrollbar
819
+ // instead of running flush into it.
815
820
  className={cn(
816
- "min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden **:data-[slot=scroll-area-scrollbar]:w-1 **:data-[slot=scroll-area-scrollbar]:border-l-0 **:data-[slot=scroll-area-scrollbar]:p-0 [&_[data-slot=scroll-area-viewport]>div]:flex! [&_[data-slot=scroll-area-viewport]>div]:min-h-full [&_[data-slot=scroll-area-viewport]>div]:flex-col",
821
+ "min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden **:data-[slot=scroll-area-scrollbar]:w-1 **:data-[slot=scroll-area-scrollbar]:border-l-0 **:data-[slot=scroll-area-scrollbar]:p-0 [&_[data-slot=scroll-area-viewport]]:pr-3! [&_[data-slot=scroll-area-viewport]]:pl-2! [&_[data-slot=scroll-area-viewport]>div]:flex! [&_[data-slot=scroll-area-viewport]>div]:min-h-full [&_[data-slot=scroll-area-viewport]>div]:flex-col",
817
822
  className
818
823
  )}
819
824
  dataHook={dataHook ?? "sidebar-content-scroll"}
@@ -859,15 +864,15 @@ SidebarGroup.displayName = "SidebarGroup";
859
864
 
860
865
  const sidebarGroupLabelVariants = cva(
861
866
  [
862
- "flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 outline-none transition-[margin,opacity] duration-base ease-linear [&>svg]:shrink-0 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
867
+ "flex h-8 shrink-0 items-center rounded-md px-2 text-sidebar-foreground/70 outline-none transition-[margin,opacity] duration-base ease-linear [&>svg]:shrink-0 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
863
868
  SIDEBAR_FOCUS_RING,
864
869
  ],
865
870
  {
866
871
  variants: {
867
872
  size: {
868
- default: "text-sm",
869
- sm: "text-sm",
870
- xs: "text-xs",
873
+ default: "text-label",
874
+ sm: "text-label",
875
+ xs: "text-label-sm",
871
876
  },
872
877
  variant: {
873
878
  default: "",
@@ -1045,7 +1050,7 @@ const SidebarGroupContent = React.forwardRef<
1045
1050
  >(({ className, dataHook, ...props }, ref) => (
1046
1051
  <div
1047
1052
  ref={ref}
1048
- className={cn("w-full text-sm", className)}
1053
+ className={cn("text-body-sm w-full", className)}
1049
1054
  data-hook={dataHook}
1050
1055
  data-slot="sidebar-group-content"
1051
1056
  {...props}
@@ -1155,7 +1160,7 @@ SidebarCollapseIcon.displayName = "SidebarCollapseIcon";
1155
1160
 
1156
1161
  const sidebarMenuButtonVariants = cva(
1157
1162
  [
1158
- "peer/menu-button flex w-full items-center gap-3 overflow-hidden rounded-full px-6 py-2 text-left text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-base ease-in-out hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:rounded-md [&>span:not([data-slot])]:truncate [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>div]:hidden",
1163
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-full px-4 py-2 text-left text-label outline-none transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-base ease-in-out hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:rounded-md [&>span:not([data-slot])]:truncate [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>div]:hidden",
1159
1164
  SIDEBAR_FOCUS_RING,
1160
1165
  ],
1161
1166
  {
@@ -1178,9 +1183,9 @@ const sidebarMenuButtonVariants = cva(
1178
1183
  "px-3 [&>[data-checkbox]]:size-4 [&>[data-checkbox]]:shrink-0 [&>[data-checkbox]]:rounded [&>[data-checkbox]]:border [&>[data-checkbox]]:border-sidebar-foreground/30 data-[checked=true]:[&>[data-checkbox]]:bg-primary data-[checked=true]:[&>[data-checkbox]]:border-primary data-[checked=true]:[&>[data-checkbox]]:text-primary-foreground",
1179
1184
  },
1180
1185
  size: {
1181
- default: "h-12 text-sm/4",
1182
- sm: "h-7 text-xs/4",
1183
- lg: "h-12 text-sm/4 group-data-[collapsible=icon]:!p-0",
1186
+ default: "h-12",
1187
+ sm: "h-7 text-label-sm",
1188
+ lg: "h-12 group-data-[collapsible=icon]:!p-0",
1184
1189
  },
1185
1190
  },
1186
1191
  defaultVariants: {
@@ -1344,7 +1349,7 @@ const SidebarMenuBadge = React.forwardRef<
1344
1349
  <div
1345
1350
  ref={ref}
1346
1351
  className={cn(
1347
- "text-sidebar-foreground pointer-events-none absolute inset-y-0 right-4 my-auto flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
1352
+ "text-sidebar-foreground text-label-sm pointer-events-none absolute inset-y-0 right-4 my-auto flex h-5 min-w-5 items-center justify-center rounded-md px-1 tabular-nums select-none",
1348
1353
  "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
1349
1354
  "group-data-[collapsible=icon]:hidden",
1350
1355
  className
@@ -1395,7 +1400,7 @@ const SidebarMenuSkeleton = React.forwardRef<
1395
1400
  />
1396
1401
  )}
1397
1402
  <Skeleton
1398
- className="h-4 max-w-[--skeleton-width] flex-1"
1403
+ className="h-4 max-w-(--skeleton-width) flex-1"
1399
1404
  data-slot="sidebar-menu-skeleton-text"
1400
1405
  style={
1401
1406
  {
@@ -1519,11 +1524,10 @@ const SidebarMenuSubButton = React.forwardRef<
1519
1524
  <Comp
1520
1525
  ref={ref}
1521
1526
  className={cn(
1522
- "text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-foreground duration-fast flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 transition-[color,background-color,box-shadow,opacity] ease-out outline-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:not([data-slot])]:truncate [&>svg]:shrink-0",
1527
+ "text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-foreground text-label duration-fast flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 transition-[color,background-color,box-shadow,opacity] ease-out outline-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:not([data-slot])]:truncate [&>svg]:shrink-0",
1523
1528
  SIDEBAR_FOCUS_RING,
1524
1529
  "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
1525
- size === SidebarMenuSubButtonSize.SM && "text-xs",
1526
- size === SidebarMenuSubButtonSize.MD && "text-sm",
1530
+ size === SidebarMenuSubButtonSize.SM && "text-label-sm",
1527
1531
  "group-data-[collapsible=icon]:hidden",
1528
1532
  className
1529
1533
  )}
@@ -1811,7 +1815,7 @@ const SidebarPopoverTrigger = React.forwardRef<
1811
1815
  ref={ref}
1812
1816
  aria-label={triggerAriaLabel ?? "Switch workspace"}
1813
1817
  className={cn(
1814
- "text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground duration-fast flex items-center gap-2 rounded-md px-1.5 py-2 text-sm font-semibold transition-colors ease-out outline-none",
1818
+ "text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground duration-fast text-heading-compact flex items-center gap-2 rounded-md px-1.5 py-2 transition-colors ease-out outline-none",
1815
1819
  SIDEBAR_FOCUS_RING,
1816
1820
  className
1817
1821
  )}
@@ -1863,7 +1867,7 @@ const SidebarPopoverMenuItem = React.forwardRef<
1863
1867
  <button
1864
1868
  ref={ref}
1865
1869
  className={cn(
1866
- "text-popover-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground duration-fast flex h-10 w-full items-center gap-2 rounded-xs p-2 text-sm transition-colors ease-out outline-none",
1870
+ "text-popover-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground duration-fast text-label flex h-10 w-full items-center gap-2 rounded-xs p-2 transition-colors ease-out outline-none",
1867
1871
  SIDEBAR_FOCUS_RING,
1868
1872
  className
1869
1873
  )}
@@ -1879,7 +1883,7 @@ const SidebarPopoverMenuItem = React.forwardRef<
1879
1883
  )}
1880
1884
  <span className="min-w-px flex-1 truncate text-left">{children}</span>
1881
1885
  {shortcut && (
1882
- <span className="text-popover-foreground/60 shrink-0 text-xs">
1886
+ <span className="text-popover-foreground/60 text-body-xs shrink-0">
1883
1887
  {shortcut}
1884
1888
  </span>
1885
1889
  )}
@@ -1961,7 +1965,7 @@ const SidebarPopoverMenu = React.forwardRef<
1961
1965
  <div className="flex flex-col items-start p-1">
1962
1966
  {groupTitle && (
1963
1967
  <div className="flex w-full items-center px-2 py-1.5">
1964
- <span className="text-muted-foreground flex-1 text-xs font-medium">
1968
+ <span className="text-muted-foreground text-label-sm flex-1">
1965
1969
  {groupTitle}
1966
1970
  </span>
1967
1971
  </div>
@@ -2139,10 +2143,12 @@ function SidebarAccountDropdown({
2139
2143
  size={SidebarMenuButtonSize.LG}
2140
2144
  >
2141
2145
  {avatar}
2142
- <div className="flex min-w-0 flex-1 flex-col gap-0.5 leading-none">
2143
- <span className="truncate text-sm font-semibold">{name}</span>
2144
- <span className="truncate text-xs font-normal">{email}</span>
2146
+ <div className="flex min-w-0 flex-1 flex-col gap-0.5">
2147
+ <span className="text-heading-compact truncate">{name}</span>
2148
+ <span className="text-body-xs truncate">{email}</span>
2145
2149
  </div>
2150
+ {/* Dropdown affordance per the DS-860 Figma account row */}
2151
+ <ChevronsUpDown className="shrink-0" />
2146
2152
  </SidebarMenuButton>
2147
2153
  </DropdownMenuTrigger>
2148
2154
  <DropdownMenuContent
@@ -2156,9 +2162,9 @@ function SidebarAccountDropdown({
2156
2162
  <>
2157
2163
  <DropdownMenuLabel className="flex items-center gap-2 px-1 py-1.5">
2158
2164
  {avatar}
2159
- <div className="flex min-w-0 flex-1 flex-col gap-0.5 leading-none">
2160
- <span className="truncate text-sm font-semibold">{name}</span>
2161
- <span className="truncate text-xs font-normal">{email}</span>
2165
+ <div className="flex min-w-0 flex-1 flex-col gap-0.5">
2166
+ <span className="text-heading-compact truncate">{name}</span>
2167
+ <span className="text-body-xs truncate">{email}</span>
2162
2168
  </div>
2163
2169
  </DropdownMenuLabel>
2164
2170
  {menuGroups?.map((group, groupIndex) => (
@@ -2239,13 +2245,13 @@ const SidebarInboxItem = React.forwardRef<
2239
2245
  type="button"
2240
2246
  {...props}
2241
2247
  >
2242
- <div className="flex w-full items-center justify-between text-sm">
2248
+ <div className="text-body-sm flex w-full items-center justify-between">
2243
2249
  <span>{senderName}</span>
2244
2250
  {timestamp && <span>{timestamp}</span>}
2245
2251
  </div>
2246
- <p className="w-full text-sm font-medium">{title}</p>
2252
+ <p className="text-heading-compact w-full">{title}</p>
2247
2253
  {description && (
2248
- <p className="w-full truncate text-xs">{description}</p>
2254
+ <p className="text-body-xs w-full truncate">{description}</p>
2249
2255
  )}
2250
2256
  </button>
2251
2257
  );
@@ -178,7 +178,7 @@ const AccordionTrigger = React.forwardRef<
178
178
  <AccordionPrimitive.Trigger
179
179
  ref={ref}
180
180
  className={cn(
181
- "focus-visible:border-ring focus-visible:shadow-default duration-fast flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-shadow ease-out outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
181
+ "focus-visible:border-ring focus-visible:shadow-default duration-fast text-label flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left transition-shadow ease-out outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
182
182
  className
183
183
  )}
184
184
  data-slot="accordion-trigger"
@@ -215,7 +215,7 @@ const AccordionContent = React.forwardRef<
215
215
  >(({ className, children, ...props }, ref) => (
216
216
  <AccordionPrimitive.Content
217
217
  ref={ref}
218
- className="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
218
+ className="text-body-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden"
219
219
  data-slot="accordion-content"
220
220
  {...props}
221
221
  >
@@ -156,7 +156,7 @@ const AlertDialogTitle = React.forwardRef<
156
156
  >(({ className, dataHook, ...props }, ref) => (
157
157
  <AlertDialogPrimitive.Title
158
158
  ref={ref}
159
- className={cn("text-lg font-semibold", className)}
159
+ className={cn("text-heading-section", className)}
160
160
  data-hook={dataHook}
161
161
  data-slot="alert-dialog-title"
162
162
  {...props}
@@ -184,7 +184,7 @@ const AlertDialogDescription = React.forwardRef<
184
184
  >(({ className, dataHook, ...props }, ref) => (
185
185
  <AlertDialogPrimitive.Description
186
186
  ref={ref}
187
- className={cn("text-muted-foreground text-sm", className)}
187
+ className={cn("text-body-sm text-muted-foreground", className)}
188
188
  data-hook={dataHook}
189
189
  data-slot="alert-dialog-description"
190
190
  {...props}
@@ -1,11 +1,12 @@
1
1
  import * as React from "react";
2
+ import { Slot } from "@radix-ui/react-slot";
2
3
  import { cva, type VariantProps } from "class-variance-authority";
3
4
  import { CircleCheck, Info, CircleX, TriangleAlert } from "@brightlocal/icons";
4
5
 
5
6
  import { cn } from "@brightlocal/ui-components/lib/utils";
6
7
 
7
8
  const alertVariants = cva(
8
- "relative w-full rounded-lg px-4 py-3 text-sm flex gap-3 items-start",
9
+ "relative w-full rounded-lg px-4 py-3 flex gap-3 items-start",
9
10
  {
10
11
  variants: {
11
12
  variant: {
@@ -37,17 +38,29 @@ const Alert = React.forwardRef<
37
38
  ));
38
39
  Alert.displayName = "Alert";
39
40
 
40
- const AlertTitle = React.forwardRef<
41
- HTMLDivElement,
42
- React.HTMLAttributes<HTMLDivElement>
43
- >(({ className, ...props }, ref) => (
44
- <div
45
- ref={ref}
46
- className={cn("leading-5 font-medium break-words", className)}
47
- data-slot="alert-title"
48
- {...props}
49
- />
50
- ));
41
+ interface AlertTitleProps extends React.HTMLAttributes<HTMLDivElement> {
42
+ /**
43
+ * Render the title as its child element (e.g. an `h2`–`h6`) so consumers
44
+ * can opt the alert title into the document outline at the level their
45
+ * page calls for.
46
+ * @default false
47
+ */
48
+ asChild?: boolean;
49
+ }
50
+
51
+ const AlertTitle = React.forwardRef<HTMLDivElement, AlertTitleProps>(
52
+ ({ className, asChild = false, ...props }, ref) => {
53
+ const Comp = asChild ? Slot : "div";
54
+ return (
55
+ <Comp
56
+ ref={ref}
57
+ className={cn("text-heading-compact break-words", className)}
58
+ data-slot="alert-title"
59
+ {...props}
60
+ />
61
+ );
62
+ }
63
+ );
51
64
  AlertTitle.displayName = "AlertTitle";
52
65
 
53
66
  const AlertDescription = React.forwardRef<
@@ -56,7 +69,7 @@ const AlertDescription = React.forwardRef<
56
69
  >(({ className, ...props }, ref) => (
57
70
  <div
58
71
  ref={ref}
59
- className={cn("text-sm leading-5 font-normal [&_p]:leading-5", className)}
72
+ className={cn("text-body-sm [&_p]:leading-5", className)}
60
73
  data-slot="alert-description"
61
74
  {...props}
62
75
  />
@@ -247,3 +260,4 @@ export {
247
260
  AlertDestructive,
248
261
  AlertWarning,
249
262
  };
263
+ export type { AlertTitleProps };
@@ -91,7 +91,7 @@ const AvatarFallback = React.forwardRef<
91
91
  <AvatarPrimitive.Fallback
92
92
  ref={ref}
93
93
  className={cn(
94
- "bg-muted text-foreground flex size-full items-center justify-center rounded-full text-sm",
94
+ "text-body-sm bg-muted text-foreground flex size-full items-center justify-center rounded-full",
95
95
  className
96
96
  )}
97
97
  data-slot="avatar-fallback"
@@ -8,10 +8,14 @@ const badgeVariants = cva(
8
8
  [
9
9
  // Layout
10
10
  "inline-flex items-center justify-center gap-1 w-fit shrink-0 overflow-hidden",
11
- // Spacing & shape
12
- "rounded-full border px-2 py-1",
13
- // Typography
14
- "text-xs font-semibold whitespace-nowrap leading-none",
11
+ // Spacing & shape — 2px vertical padding around the 16px line box keeps the
12
+ // content box 20px, matching the Figma frame (its stroke sits inside); the
13
+ // 1px border makes the rendered box 22px, unchanged from the pre-scale
14
+ // `leading-none` + py-1 stack (DS-925)
15
+ "rounded-full border px-2 py-0.5",
16
+ // Typography — type-scale role for badges (12/16 Figma 500; the weight
17
+ // drop from the old semibold is intentional, DS-925)
18
+ "text-label-sm whitespace-nowrap",
15
19
  // Icons
16
20
  "[&>svg]:size-3 [&>svg]:pointer-events-none",
17
21
  // Transition
@@ -57,8 +57,11 @@ const BreadcrumbList = React.forwardRef<
57
57
  >(({ className, ...props }, ref) => (
58
58
  <ol
59
59
  ref={ref}
60
+ // Trails never wrap (NP breadcrumb spec) — a wrapped trail reads as two
61
+ // trails. Overflow is handled by collapsing the middle behind an
62
+ // ellipsis and truncating the location crumb, not by wrapping.
60
63
  className={cn(
61
- "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
64
+ "text-body-sm text-muted-foreground flex min-w-0 flex-nowrap items-center gap-1.5 whitespace-nowrap sm:gap-2.5",
62
65
  className
63
66
  )}
64
67
  data-slot="breadcrumb-list"
@@ -178,18 +181,20 @@ const BreadcrumbEllipsis = React.forwardRef<
178
181
  BreadcrumbEllipsisProps
179
182
  >(({ className, srLabel = "More", ...props }, ref) => {
180
183
  return (
184
+ // aria-hidden sits on the icon, not the wrapper — hiding the wrapper
185
+ // would also silence the sr-only label, and the ellipsis must stay
186
+ // announceable when wrapped in a DropdownMenuTrigger to reveal the
187
+ // collapsed pages.
181
188
  <span
182
189
  ref={ref}
183
- aria-hidden="true"
184
190
  className={cn(
185
191
  "relative flex size-9 items-center justify-center",
186
192
  className
187
193
  )}
188
194
  data-slot="breadcrumb-ellipsis"
189
- role="presentation"
190
195
  {...props}
191
196
  >
192
- <MoreHorizontal />
197
+ <MoreHorizontal aria-hidden="true" />
193
198
  <span className="sr-only">{srLabel}</span>
194
199
  </span>
195
200
  );
@@ -1,12 +1,9 @@
1
1
  import * as React from "react";
2
2
  import { Slot } from "@radix-ui/react-slot";
3
3
  import { cva } from "class-variance-authority";
4
- import { Loader2 } from "@brightlocal/icons";
5
4
 
6
5
  import { cn } from "@brightlocal/ui-components/lib/utils";
7
-
8
- // Shared constants
9
- const BUTTON_SPINNER_SIZE = 16;
6
+ import { Spinner } from "@brightlocal/ui-components/spinner";
10
7
 
11
8
  /**
12
9
  * Variant props for CVA button styling
@@ -113,9 +110,9 @@ const ButtonVariants = cva(
113
110
  ],
114
111
  },
115
112
  size: {
116
- default: "px-4 py-2 h-9 text-sm",
117
- sm: "py-2 px-3 h-8 text-xs",
118
- lg: "py-2 px-8 h-10 text-sm [&_svg:not([class*='size-'])]:size-5",
113
+ default: "px-4 py-2 h-9 text-label",
114
+ sm: "py-2 px-3 h-8 text-label-sm",
115
+ lg: "py-2 px-8 h-10 text-label [&_svg:not([class*='size-'])]:size-5",
119
116
  },
120
117
  state: {
121
118
  default: "",
@@ -269,7 +266,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
269
266
  className="pointer-events-none flex items-center justify-center"
270
267
  data-slot="button-loading-icon"
271
268
  >
272
- <Loader2 className="animate-spin" size={BUTTON_SPINNER_SIZE} />
269
+ <Spinner size="md" />
273
270
  </div>
274
271
  )}
275
272
  {children}
@@ -63,7 +63,7 @@ const CalendarDayButton = ({
63
63
  <button
64
64
  ref={ref}
65
65
  className={cn(
66
- "text-foreground h-8 w-8 rounded-md p-0 font-sans text-sm leading-5 font-normal",
66
+ "text-foreground text-label h-8 w-8 rounded-md p-0",
67
67
  "hover:bg-accent hover:text-accent-foreground",
68
68
  "focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:outline-none",
69
69
  "group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10",
@@ -128,14 +128,13 @@ function Calendar({
128
128
  defaultClassNames.month_caption
129
129
  ),
130
130
  caption_label: cn(
131
- "text-sm font-sans leading-5 text-foreground select-none",
132
- captionLayout === "dropdown" ? "font-normal" : "font-medium",
131
+ "text-label text-foreground select-none",
133
132
  "[&>svg]:text-muted-foreground",
134
133
  "flex h-[34px] items-center gap-1 rounded-md pl-2 pr-1",
135
134
  defaultClassNames.caption_label
136
135
  ),
137
136
  dropdowns: cn(
138
- "flex w-full items-center justify-center gap-1.5 text-sm font-normal",
137
+ "flex w-full items-center justify-center gap-1.5 text-label",
139
138
  defaultClassNames.dropdowns
140
139
  ),
141
140
  dropdown_root: cn(
@@ -161,12 +160,12 @@ function Calendar({
161
160
  ),
162
161
  weekdays: cn("flex", defaultClassNames.weekdays),
163
162
  weekday: cn(
164
- "text-muted-foreground rounded-md w-8 h-5 flex items-center justify-center font-normal font-sans text-xs leading-4",
163
+ "text-muted-foreground rounded-md w-8 h-5 flex items-center justify-center text-body-xs",
165
164
  defaultClassNames.weekday
166
165
  ),
167
166
  week: cn(defaultClassNames.week, "flex w-full mt-2"),
168
167
  day: cn(
169
- "relative w-full h-full p-0 text-center text-sm focus-within:relative focus-within:z-20 group/day select-none",
168
+ "relative w-full h-full p-0 text-center text-label focus-within:relative focus-within:z-20 group/day select-none",
170
169
  "[&:first-child[data-selected=true]_button]:!rounded-l-md",
171
170
  "[&:last-child[data-selected=true]_button]:!rounded-r-md",
172
171
  defaultClassNames.day
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { Slot } from "@radix-ui/react-slot";
2
3
  import { cva } from "class-variance-authority";
3
4
 
4
5
  import { cn } from "@brightlocal/ui-components/lib/utils";
@@ -123,23 +124,58 @@ const Callout = React.forwardRef<HTMLElement, CalloutProps>(
123
124
 
124
125
  Callout.displayName = "Callout";
125
126
 
127
+ /**
128
+ * Document outline level for the CalloutHeading — renders the corresponding
129
+ * `h1`–`h6` tag. Level 1 is allowed: an onboarding welcome callout can
130
+ * legitimately be the page's own heading.
131
+ */
132
+ type CalloutHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
133
+
126
134
  /** Props for the CalloutHeading sub-component */
127
135
  interface CalloutHeadingProps extends React.ComponentPropsWithoutRef<"div"> {
128
136
  /** Optional test hook identifier */
129
137
  dataHook?: string;
138
+ /**
139
+ * Document outline level — renders the statement as the corresponding
140
+ * heading element (`h1`–`h6`) while the display typography stays ours.
141
+ * The DS never guesses a level: with no `level` the statement renders a
142
+ * `div` and stays out of the outline, which is right for a decorative
143
+ * pull-quote. Ignored when `asChild` is set.
144
+ * @example <CalloutHeading level={2}>Let's get you set up.</CalloutHeading>
145
+ */
146
+ level?: CalloutHeadingLevel;
147
+ /**
148
+ * Render the statement as its child element, for the rare case neither a
149
+ * `div` nor a heading fits (a `blockquote`, say). Takes precedence over
150
+ * `level`; the display typography is applied either way.
151
+ * @default false
152
+ */
153
+ asChild?: boolean;
130
154
  }
131
155
 
132
156
  /** Main heading/statement content for a Callout */
133
- const CalloutHeading = React.forwardRef<HTMLDivElement, CalloutHeadingProps>(
134
- ({ className, dataHook, ...props }, ref) => (
135
- <div
136
- ref={ref}
137
- className={cn("font-display text-4xl font-semibold", className)}
138
- data-hook={dataHook}
139
- data-slot="callout-heading"
140
- {...props}
141
- />
142
- )
157
+ // HTMLElement, not HTMLDivElement: `level` renders h1–h6 and `asChild` an
158
+ // arbitrary element, so heading refs must type-check too.
159
+ const CalloutHeading = React.forwardRef<HTMLElement, CalloutHeadingProps>(
160
+ ({ className, dataHook, level, asChild = false, ...props }, ref) => {
161
+ const sharedProps = {
162
+ className: cn("text-display", className),
163
+ "data-hook": dataHook,
164
+ "data-slot": "callout-heading",
165
+ ...props,
166
+ };
167
+
168
+ if (asChild) {
169
+ return <Slot ref={ref} {...sharedProps} />;
170
+ }
171
+ if (level) {
172
+ const Heading = `h${level}` as const;
173
+ return (
174
+ <Heading ref={ref as React.Ref<HTMLHeadingElement>} {...sharedProps} />
175
+ );
176
+ }
177
+ return <div ref={ref as React.Ref<HTMLDivElement>} {...sharedProps} />;
178
+ }
143
179
  );
144
180
 
145
181
  CalloutHeading.displayName = "CalloutHeading";
@@ -158,11 +194,7 @@ const CalloutCitation = React.forwardRef<HTMLDivElement, CalloutCitationProps>(
158
194
  return (
159
195
  <div
160
196
  ref={ref}
161
- className={cn(
162
- "text-xs font-medium",
163
- citationColorMap[variant],
164
- className
165
- )}
197
+ className={cn("text-label-sm", citationColorMap[variant], className)}
166
198
  data-hook={dataHook}
167
199
  data-slot="callout-citation"
168
200
  {...props}
@@ -177,6 +209,7 @@ export { Callout, CalloutHeading, CalloutCitation, calloutVariants };
177
209
  export type {
178
210
  CalloutProps,
179
211
  CalloutHeadingProps,
212
+ CalloutHeadingLevel,
180
213
  CalloutCitationProps,
181
214
  CalloutVariant,
182
215
  CalloutPointer,