@dodopayments/ui 1.3.0 → 1.5.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 (304) hide show
  1. package/ai/component-registry.json +642 -99
  2. package/ai/component-registry.md +4 -0
  3. package/ai/components/activity-timeline.md +3 -1
  4. package/ai/components/area-chart.md +4 -4
  5. package/ai/components/avatar.md +1 -1
  6. package/ai/components/bar-chart.md +18 -18
  7. package/ai/components/brand-logos.md +1 -1
  8. package/ai/components/button-group.md +65 -0
  9. package/ai/components/chart-tooltip.md +3 -3
  10. package/ai/components/chart.md +6 -6
  11. package/ai/components/checkout-page.md +1 -1
  12. package/ai/components/collapsible.md +1 -1
  13. package/ai/components/color-input.md +56 -0
  14. package/ai/components/composed-chart.md +7 -7
  15. package/ai/components/copyable-id.md +1 -0
  16. package/ai/components/data-grid.md +8 -5
  17. package/ai/components/file-upload.md +25 -1
  18. package/ai/components/filter-grid.md +4 -7
  19. package/ai/components/funnel-chart.md +14 -12
  20. package/ai/components/gauge-chart.md +9 -11
  21. package/ai/components/line-chart.md +2 -2
  22. package/ai/components/list-toolbar.md +3 -3
  23. package/ai/components/logo.md +3 -1
  24. package/ai/components/money.md +3 -3
  25. package/ai/components/pagination.md +1 -0
  26. package/ai/components/pie-chart.md +11 -2
  27. package/ai/components/product-card.md +2 -1
  28. package/ai/components/radio-group.md +85 -6
  29. package/ai/components/reorder-list.md +1 -1
  30. package/ai/components/ring-chart.md +17 -8
  31. package/ai/components/sale-share-card.md +48 -0
  32. package/ai/components/sankey-chart.md +23 -23
  33. package/ai/components/scaled-frame.md +41 -0
  34. package/ai/components/skeleton.md +1 -1
  35. package/ai/components/stat-card.md +32 -5
  36. package/ai/components/sunburst-chart.md +7 -4
  37. package/ai/components/test-mode-banner.md +3 -3
  38. package/ai/skills/dodo-charts/SKILL.md +12 -7
  39. package/ai/skills/dodo-design/SKILL.md +4 -2
  40. package/dist/components/activity-timeline/activity-timeline.d.ts +22 -2
  41. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -1
  42. package/dist/components/activity-timeline/activity-timeline.js +11 -5
  43. package/dist/components/activity-timeline/activity-timeline.js.map +1 -1
  44. package/dist/components/avatar/avatar.d.ts +9 -7
  45. package/dist/components/avatar/avatar.d.ts.map +1 -1
  46. package/dist/components/avatar/avatar.js +9 -7
  47. package/dist/components/avatar/avatar.js.map +1 -1
  48. package/dist/components/brand-logos/brand-artwork.d.ts +16 -1
  49. package/dist/components/brand-logos/brand-artwork.d.ts.map +1 -1
  50. package/dist/components/brand-logos/brand-artwork.js +16 -1
  51. package/dist/components/brand-logos/brand-artwork.js.map +1 -1
  52. package/dist/components/brand-logos/brand-logos.d.ts +2 -2
  53. package/dist/components/brand-logos/brand-logos.d.ts.map +1 -1
  54. package/dist/components/brand-logos/brand-logos.js +7 -1
  55. package/dist/components/brand-logos/brand-logos.js.map +1 -1
  56. package/dist/components/button-group/button-group.d.ts +21 -0
  57. package/dist/components/button-group/button-group.d.ts.map +1 -0
  58. package/dist/components/button-group/button-group.js +16 -0
  59. package/dist/components/button-group/button-group.js.map +1 -0
  60. package/dist/components/button-group/index.d.ts +2 -0
  61. package/dist/components/button-group/index.d.ts.map +1 -0
  62. package/dist/components/button-group/index.js +2 -0
  63. package/dist/components/button-group/index.js.map +1 -0
  64. package/dist/components/color-input/color-input.d.ts +21 -0
  65. package/dist/components/color-input/color-input.d.ts.map +1 -0
  66. package/dist/components/color-input/color-input.js +28 -0
  67. package/dist/components/color-input/color-input.js.map +1 -0
  68. package/dist/components/color-input/index.d.ts +2 -0
  69. package/dist/components/color-input/index.d.ts.map +1 -0
  70. package/dist/components/color-input/index.js +2 -0
  71. package/dist/components/color-input/index.js.map +1 -0
  72. package/dist/components/copyable-id/copyable-id.d.ts +7 -1
  73. package/dist/components/copyable-id/copyable-id.d.ts.map +1 -1
  74. package/dist/components/copyable-id/copyable-id.js +21 -3
  75. package/dist/components/copyable-id/copyable-id.js.map +1 -1
  76. package/dist/components/data-grid/bulk-actions.d.ts +4 -2
  77. package/dist/components/data-grid/bulk-actions.d.ts.map +1 -1
  78. package/dist/components/data-grid/bulk-actions.js +65 -4
  79. package/dist/components/data-grid/bulk-actions.js.map +1 -1
  80. package/dist/components/data-grid/data-grid.d.ts +15 -4
  81. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  82. package/dist/components/data-grid/data-grid.js +57 -16
  83. package/dist/components/data-grid/data-grid.js.map +1 -1
  84. package/dist/components/data-grid/table.d.ts +1 -1
  85. package/dist/components/data-grid/table.d.ts.map +1 -1
  86. package/dist/components/data-grid/table.js +6 -1
  87. package/dist/components/data-grid/table.js.map +1 -1
  88. package/dist/components/file-upload/file-upload.d.ts +21 -0
  89. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  90. package/dist/components/file-upload/file-upload.js +42 -20
  91. package/dist/components/file-upload/file-upload.js.map +1 -1
  92. package/dist/components/file-upload/index.d.ts +1 -1
  93. package/dist/components/file-upload/index.d.ts.map +1 -1
  94. package/dist/components/file-upload/index.js +1 -1
  95. package/dist/components/file-upload/index.js.map +1 -1
  96. package/dist/components/filter-grid/filter-grid.d.ts +7 -2
  97. package/dist/components/filter-grid/filter-grid.d.ts.map +1 -1
  98. package/dist/components/filter-grid/filter-grid.js +3 -2
  99. package/dist/components/filter-grid/filter-grid.js.map +1 -1
  100. package/dist/components/funnel-chart/funnel-chart.d.ts +3 -2
  101. package/dist/components/funnel-chart/funnel-chart.d.ts.map +1 -1
  102. package/dist/components/funnel-chart/funnel-chart.js +3 -2
  103. package/dist/components/funnel-chart/funnel-chart.js.map +1 -1
  104. package/dist/components/gauge-chart/gauge-chart.d.ts +3 -4
  105. package/dist/components/gauge-chart/gauge-chart.d.ts.map +1 -1
  106. package/dist/components/gauge-chart/gauge-chart.js +3 -4
  107. package/dist/components/gauge-chart/gauge-chart.js.map +1 -1
  108. package/dist/components/list-toolbar/list-toolbar.d.ts +3 -3
  109. package/dist/components/list-toolbar/list-toolbar.js +4 -4
  110. package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
  111. package/dist/components/live-activity/live-activity.d.ts.map +1 -1
  112. package/dist/components/live-activity/live-activity.js +8 -3
  113. package/dist/components/live-activity/live-activity.js.map +1 -1
  114. package/dist/components/logo/logo.d.ts +5 -1
  115. package/dist/components/logo/logo.d.ts.map +1 -1
  116. package/dist/components/logo/logo.js +6 -2
  117. package/dist/components/logo/logo.js.map +1 -1
  118. package/dist/components/page-header/page-header.d.ts.map +1 -1
  119. package/dist/components/page-header/page-header.js +4 -2
  120. package/dist/components/page-header/page-header.js.map +1 -1
  121. package/dist/components/pagination/pagination.d.ts +7 -1
  122. package/dist/components/pagination/pagination.d.ts.map +1 -1
  123. package/dist/components/pagination/pagination.js +7 -4
  124. package/dist/components/pagination/pagination.js.map +1 -1
  125. package/dist/components/payment-method-list/payment-method-list.d.ts.map +1 -1
  126. package/dist/components/payment-method-list/payment-method-list.js +4 -1
  127. package/dist/components/payment-method-list/payment-method-list.js.map +1 -1
  128. package/dist/components/product-card/product-card.d.ts +8 -2
  129. package/dist/components/product-card/product-card.d.ts.map +1 -1
  130. package/dist/components/product-card/product-card.js +2 -2
  131. package/dist/components/product-card/product-card.js.map +1 -1
  132. package/dist/components/radio-group/radio-group.d.ts +28 -6
  133. package/dist/components/radio-group/radio-group.d.ts.map +1 -1
  134. package/dist/components/radio-group/radio-group.js +37 -4
  135. package/dist/components/radio-group/radio-group.js.map +1 -1
  136. package/dist/components/sale-share-card/index.d.ts +2 -0
  137. package/dist/components/sale-share-card/index.d.ts.map +1 -0
  138. package/dist/components/sale-share-card/index.js +2 -0
  139. package/dist/components/sale-share-card/index.js.map +1 -0
  140. package/dist/components/sale-share-card/sale-share-card.d.ts +27 -0
  141. package/dist/components/sale-share-card/sale-share-card.d.ts.map +1 -0
  142. package/dist/components/sale-share-card/sale-share-card.js +46 -0
  143. package/dist/components/sale-share-card/sale-share-card.js.map +1 -0
  144. package/dist/components/sankey-chart/sankey-chart.d.ts +4 -4
  145. package/dist/components/sankey-chart/sankey-chart.js +4 -4
  146. package/dist/components/scaled-frame/index.d.ts +2 -0
  147. package/dist/components/scaled-frame/index.d.ts.map +1 -0
  148. package/dist/components/scaled-frame/index.js +2 -0
  149. package/dist/components/scaled-frame/index.js.map +1 -0
  150. package/dist/components/scaled-frame/scaled-frame.d.ts +17 -0
  151. package/dist/components/scaled-frame/scaled-frame.d.ts.map +1 -0
  152. package/dist/components/scaled-frame/scaled-frame.js +43 -0
  153. package/dist/components/scaled-frame/scaled-frame.js.map +1 -0
  154. package/dist/components/skeleton/skeleton.d.ts +1 -1
  155. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  156. package/dist/components/skeleton/skeleton.js +13 -9
  157. package/dist/components/skeleton/skeleton.js.map +1 -1
  158. package/dist/components/slider/slider-thumb.d.ts +2 -2
  159. package/dist/components/slider/slider-thumb.d.ts.map +1 -1
  160. package/dist/components/slider/slider-thumb.js +2 -2
  161. package/dist/components/slider/slider-thumb.js.map +1 -1
  162. package/dist/components/slider/slider.js +1 -1
  163. package/dist/components/slider/slider.js.map +1 -1
  164. package/dist/components/stat-card/index.d.ts +1 -1
  165. package/dist/components/stat-card/index.d.ts.map +1 -1
  166. package/dist/components/stat-card/index.js +1 -1
  167. package/dist/components/stat-card/index.js.map +1 -1
  168. package/dist/components/stat-card/stat-card.d.ts +47 -7
  169. package/dist/components/stat-card/stat-card.d.ts.map +1 -1
  170. package/dist/components/stat-card/stat-card.js +72 -12
  171. package/dist/components/stat-card/stat-card.js.map +1 -1
  172. package/dist/components/sunburst-chart/sunburst-chart.d.ts +2 -1
  173. package/dist/components/sunburst-chart/sunburst-chart.d.ts.map +1 -1
  174. package/dist/components/sunburst-chart/sunburst-chart.js +2 -1
  175. package/dist/components/sunburst-chart/sunburst-chart.js.map +1 -1
  176. package/dist/components/timestamp/timestamp.js +1 -1
  177. package/dist/components/timestamp/timestamp.js.map +1 -1
  178. package/dist/icons/index.d.ts +5 -2
  179. package/dist/icons/index.js +5 -2
  180. package/dist/icons/ui/coins.d.ts +3 -0
  181. package/dist/icons/ui/coins.js +5 -0
  182. package/dist/icons/ui/report.d.ts +3 -0
  183. package/dist/icons/ui/report.js +5 -0
  184. package/dist/icons/ui/ticket.d.ts +3 -0
  185. package/dist/icons/ui/ticket.js +5 -0
  186. package/dist/index.d.ts +1 -0
  187. package/dist/index.d.ts.map +1 -1
  188. package/dist/index.js +1 -0
  189. package/dist/index.js.map +1 -1
  190. package/dist/lib/cn-tables.js +5 -5
  191. package/dist/lib/cn-tables.js.map +1 -1
  192. package/dist/primitives/charts/area-chart.js +1 -1
  193. package/dist/primitives/charts/area-chart.js.map +1 -1
  194. package/dist/primitives/charts/area.d.ts +1 -1
  195. package/dist/primitives/charts/area.d.ts.map +1 -1
  196. package/dist/primitives/charts/bar-chart.js +1 -1
  197. package/dist/primitives/charts/bar-chart.js.map +1 -1
  198. package/dist/primitives/charts/bar-squares.d.ts +1 -1
  199. package/dist/primitives/charts/bar-squares.d.ts.map +1 -1
  200. package/dist/primitives/charts/bar.d.ts +6 -5
  201. package/dist/primitives/charts/bar.d.ts.map +1 -1
  202. package/dist/primitives/charts/bar.js +1 -1
  203. package/dist/primitives/charts/bar.js.map +1 -1
  204. package/dist/primitives/charts/chart-context.js +2 -2
  205. package/dist/primitives/charts/chart-context.js.map +1 -1
  206. package/dist/primitives/charts/composed-chart.js +3 -3
  207. package/dist/primitives/charts/composed-chart.js.map +1 -1
  208. package/dist/primitives/charts/funnel-chart.d.ts +12 -8
  209. package/dist/primitives/charts/funnel-chart.d.ts.map +1 -1
  210. package/dist/primitives/charts/funnel-chart.js +38 -9
  211. package/dist/primitives/charts/funnel-chart.js.map +1 -1
  212. package/dist/primitives/charts/gauge.d.ts +4 -4
  213. package/dist/primitives/charts/gauge.js +7 -7
  214. package/dist/primitives/charts/gauge.js.map +1 -1
  215. package/dist/primitives/charts/line-chart.js +1 -1
  216. package/dist/primitives/charts/line-chart.js.map +1 -1
  217. package/dist/primitives/charts/line-series-terminal-marker.d.ts.map +1 -1
  218. package/dist/primitives/charts/line-series-terminal-marker.js +1 -1
  219. package/dist/primitives/charts/line-series-terminal-marker.js.map +1 -1
  220. package/dist/primitives/charts/line.d.ts +1 -1
  221. package/dist/primitives/charts/line.d.ts.map +1 -1
  222. package/dist/primitives/charts/notch-gauge-shared.d.ts.map +1 -1
  223. package/dist/primitives/charts/notch-gauge-shared.js +4 -3
  224. package/dist/primitives/charts/notch-gauge-shared.js.map +1 -1
  225. package/dist/primitives/charts/pie-context.d.ts +3 -2
  226. package/dist/primitives/charts/pie-context.d.ts.map +1 -1
  227. package/dist/primitives/charts/pie-context.js +7 -6
  228. package/dist/primitives/charts/pie-context.js.map +1 -1
  229. package/dist/primitives/charts/pie-slice.d.ts +2 -2
  230. package/dist/primitives/charts/pie-slice.js +1 -1
  231. package/dist/primitives/charts/pie-slice.js.map +1 -1
  232. package/dist/primitives/charts/ring-context.d.ts +4 -2
  233. package/dist/primitives/charts/ring-context.d.ts.map +1 -1
  234. package/dist/primitives/charts/ring-context.js +8 -6
  235. package/dist/primitives/charts/ring-context.js.map +1 -1
  236. package/dist/primitives/charts/ring.d.ts +8 -8
  237. package/dist/primitives/charts/ring.d.ts.map +1 -1
  238. package/dist/primitives/charts/ring.js +4 -4
  239. package/dist/primitives/charts/ring.js.map +1 -1
  240. package/dist/primitives/charts/sankey/sankey-link.d.ts +9 -10
  241. package/dist/primitives/charts/sankey/sankey-link.d.ts.map +1 -1
  242. package/dist/primitives/charts/sankey/sankey-link.js +14 -9
  243. package/dist/primitives/charts/sankey/sankey-link.js.map +1 -1
  244. package/dist/primitives/charts/sankey/sankey-node.d.ts +5 -5
  245. package/dist/primitives/charts/sankey/sankey-node.d.ts.map +1 -1
  246. package/dist/primitives/charts/sankey/sankey-node.js +6 -6
  247. package/dist/primitives/charts/sankey/sankey-node.js.map +1 -1
  248. package/dist/primitives/charts/series-bar.d.ts +4 -4
  249. package/dist/primitives/charts/series-bar.d.ts.map +1 -1
  250. package/dist/primitives/charts/series-bar.js +1 -1
  251. package/dist/primitives/charts/series-bar.js.map +1 -1
  252. package/dist/primitives/charts/sunburst-context.d.ts +3 -2
  253. package/dist/primitives/charts/sunburst-context.d.ts.map +1 -1
  254. package/dist/primitives/charts/sunburst-context.js +6 -5
  255. package/dist/primitives/charts/sunburst-context.js.map +1 -1
  256. package/dist/primitives/charts/sunburst-legend.d.ts +7 -2
  257. package/dist/primitives/charts/sunburst-legend.d.ts.map +1 -1
  258. package/dist/primitives/charts/sunburst-legend.js +8 -6
  259. package/dist/primitives/charts/sunburst-legend.js.map +1 -1
  260. package/dist/primitives/charts/sunburst-segment.d.ts +3 -3
  261. package/dist/primitives/charts/sunburst-segment.js +2 -2
  262. package/dist/primitives/charts/sunburst-segment.js.map +1 -1
  263. package/dist/primitives/charts/tooltip/date-ticker.js +2 -2
  264. package/dist/primitives/charts/tooltip/date-ticker.js.map +1 -1
  265. package/dist/primitives/charts/tooltip/tooltip-box.js +1 -1
  266. package/dist/primitives/charts/tooltip/tooltip-box.js.map +1 -1
  267. package/dist/primitives/ui/alert-dialog.js +1 -1
  268. package/dist/primitives/ui/alert-dialog.js.map +1 -1
  269. package/dist/primitives/ui/autocomplete.js +1 -1
  270. package/dist/primitives/ui/autocomplete.js.map +1 -1
  271. package/dist/primitives/ui/dialog.js +1 -1
  272. package/dist/primitives/ui/dialog.js.map +1 -1
  273. package/dist/primitives/ui/drawer.js +1 -1
  274. package/dist/primitives/ui/drawer.js.map +1 -1
  275. package/dist/primitives/ui/popover.js +1 -1
  276. package/dist/primitives/ui/popover.js.map +1 -1
  277. package/dist/primitives/ui/preview-card.js +1 -1
  278. package/dist/primitives/ui/preview-card.js.map +1 -1
  279. package/dist/primitives/ui/sheet.js +2 -2
  280. package/dist/primitives/ui/sheet.js.map +1 -1
  281. package/dist/primitives/ui/slider.js +1 -1
  282. package/dist/primitives/ui/slider.js.map +1 -1
  283. package/dist/primitives/ui/switch.d.ts +1 -1
  284. package/dist/primitives/ui/switch.d.ts.map +1 -1
  285. package/dist/primitives/ui/switch.js +1 -1
  286. package/dist/primitives/ui/switch.js.map +1 -1
  287. package/dist/primitives/ui/table.js +2 -2
  288. package/dist/primitives/ui/table.js.map +1 -1
  289. package/dist/primitives/ui/toast.js +2 -2
  290. package/dist/primitives/ui/toast.js.map +1 -1
  291. package/dist/primitives/ui/tooltip.js +1 -1
  292. package/dist/primitives/ui/tooltip.js.map +1 -1
  293. package/dist/styles/theme.css +9 -0
  294. package/dist/styles/tokens.css +96 -36
  295. package/dist/styles/tokens.test.tsx +20 -2
  296. package/dist/theme/color.d.ts +5 -0
  297. package/dist/theme/color.d.ts.map +1 -1
  298. package/dist/theme/color.js +22 -0
  299. package/dist/theme/color.js.map +1 -1
  300. package/dist/theme/css.d.ts +3 -3
  301. package/dist/theme/css.d.ts.map +1 -1
  302. package/dist/theme/css.js +29 -11
  303. package/dist/theme/css.js.map +1 -1
  304. package/package.json +1 -1
@@ -5,10 +5,10 @@ band as wide as its value. Use it to show where an amount goes, e.g. gross volum
5
5
  refunds and payouts. Compose it from children: `SankeyLink` (the bands), `SankeyNode` (the bars
6
6
  and their labels) and `SankeyTooltip`. `data` is `{ nodes, links }`: each node has a `name`, each
7
7
  link a `source` and `target` node index and a `value`. Nodes and bands grow in on mount over
8
- `animationDuration`. Nodes and bands use the tint look of the other charts by default (nodes a 20%
9
- wash with a solid edge on their label side, bands a lighter 12% wash in their source node's colour, 24% while
10
- highlighted); set
11
- `variant="solid"` on `SankeyLink` / `SankeyNode` for full colour. The chart is as wide as its container; height comes from `aspectRatio`
8
+ `animationDuration`. Nodes and bands are solid by default: nodes in full colour, each band its source node's
9
+ colour at 35% opacity, so crossing bands blend; set `useGradient` on `SankeyLink` for a source-to-target gradient.
10
+ `variant="tint"` on `SankeyLink` / `SankeyNode` gives the tint look of the other charts (nodes a 20% wash with a
11
+ solid edge on their label side, bands a 12% wash, 24% while highlighted). The chart is as wide as its container; height comes from `aspectRatio`
12
12
  (default `"2 / 1"`). The default `margin` keeps 180px on each side for node labels.
13
13
 
14
14
  ```tsx
@@ -22,10 +22,10 @@ band as wide as its value. Use it to show where an amount goes, e.g. gross volum
22
22
  refunds and payouts. Compose it from children: `SankeyLink` (the bands), `SankeyNode` (the bars
23
23
  and their labels) and `SankeyTooltip`. `data` is `{ nodes, links }`: each node has a `name`, each
24
24
  link a `source` and `target` node index and a `value`. Nodes and bands grow in on mount over
25
- `animationDuration`. Nodes and bands use the tint look of the other charts by default (nodes a 20%
26
- wash with a solid edge on their label side, bands a lighter 12% wash in their source node's colour, 24% while
27
- highlighted); set
28
- `variant="solid"` on `SankeyLink` / `SankeyNode` for full colour. The chart is as wide as its container; height comes from `aspectRatio`
25
+ `animationDuration`. Nodes and bands are solid by default: nodes in full colour, each band its source node's
26
+ colour at 35% opacity, so crossing bands blend; set `useGradient` on `SankeyLink` for a source-to-target gradient.
27
+ `variant="tint"` on `SankeyLink` / `SankeyNode` gives the tint look of the other charts (nodes a 20% wash with a
28
+ solid edge on their label side, bands a 12% wash, 24% while highlighted). The chart is as wide as its container; height comes from `aspectRatio`
29
29
  (default `"2 / 1"`). The default `margin` keeps 180px on each side for node labels.
30
30
 
31
31
  | Prop | Type | Default | Description |
@@ -46,8 +46,8 @@ highlighted); set
46
46
  ## SankeyLink
47
47
 
48
48
  The flow bands of a Sankey diagram, one per link, drawn from left to right on mount. By default
49
- (`variant="tint"`) each band is a soft wash of its source node's colour; `variant="solid"` draws a
50
- gradient from the source colour to the target colour. Hovering a band highlights it and feeds
49
+ (`variant="solid"`) each band is its source node's colour at 35% opacity; `useGradient` runs it
50
+ from the source colour to the target colour, and `variant="tint"` draws an opaque soft wash. Hovering a band highlights it and feeds
51
51
  `SankeyTooltip`.
52
52
 
53
53
  | Prop | Type | Default | Description |
@@ -57,29 +57,29 @@ gradient from the source colour to the target colour. Hovering a band highlights
57
57
  | `getLinkPattern` | `((link: SankeyLink<SankeyNodeDatum, SankeyLinkDatum>, index: number) => string \| null \| undefined)` | - | Return pattern ID for a link, or null/undefined to use gradient/solid color |
58
58
  | `getNodeColor` | `((node: SankeyNode<SankeyNodeDatum, SankeyLinkDatum>, index: number) => string)` | - | Custom function to get node color (for gradient) |
59
59
  | `patterns` | `ReactNode` | - | Pattern definitions to render in defs. Use |
60
- | `stroke` | `string` | - | Stroke color for links (overrides gradient). Default: uses gradient |
61
- | `strokeOpacity` | `number` | - | Stroke opacity of the `"solid"` look. Default: 0.5 |
62
- | `useGradient` | `boolean` | - | Use gradient from source to target color. Default: true |
63
- | `variant` | `"tint" \| "solid"` | - | `"tint"`: the radar look of the other charts, each band an opaque 12% wash of one colour (its source node's, or `stroke` / `getLinkColor`), 24% while highlighted, lighter than the 20% nodes so they stand out; no gradient between two hues. `"solid"`: the full colour at `strokeOpacity`, a source-to-target gradient by default. A pattern from `getLinkPattern` stays as it is. Default: "tint" |
60
+ | `stroke` | `string` | - | Stroke color for every link (overrides the source colour and the gradient). |
61
+ | `strokeOpacity` | `number` | - | Stroke opacity of the `"solid"` look. Default: 0.35 |
62
+ | `useGradient` | `boolean` | - | `"solid"` only: a gradient from the source to the target colour instead of the source colour. Default: false |
63
+ | `variant` | `"tint" \| "solid"` | - | `"solid"`: each band its source node's colour (or `stroke` / `getLinkColor`) at `strokeOpacity`, translucent so crossing bands blend, as the bar, pie and ring charts' solid look. `"tint"`: each band an opaque 12% wash of that colour, 24% while highlighted. A pattern from `getLinkPattern` stays as it is. Default: "solid" |
64
64
 
65
65
  ## SankeyNode
66
66
 
67
67
  The node bars of a Sankey diagram, with a name and a value label beside each. Nodes on the left
68
- half label to their left, the others to their right. By default (`variant="tint"`) each node is a
69
- soft wash of its colour with a solid edge on its label side; `variant="solid"` fills it fully. Hovering a node highlights its links and
68
+ half label to their left, the others to their right. By default (`variant="solid"`) each node is
69
+ its full colour; `variant="tint"` draws a soft wash with a solid edge on its label side. Hovering a node highlights its links and
70
70
  feeds `SankeyTooltip`.
71
71
 
72
72
  | Prop | Type | Default | Description |
73
73
  | --- | --- | --- | --- |
74
74
  | `fadedOpacity` | `number` | - | Opacity when another node/link is hovered. Default: 0.4 |
75
- | `fill` | `string` | - | Fill color for nodes. Default: uses theme colors |
75
+ | `fill` | `string` | - | Fill color for every node. Default: `--chart-solid-1` to `--chart-solid-3`, then `--chart-4` and `--chart-5`, by node |
76
76
  | `formatValue` | `((value: number) => string)` | - | Formats the value label under each node name. Default: integer with thousands separators. |
77
77
  | `getNodeColor` | `((node: SankeyNode<SankeyNodeDatum, SankeyLinkDatum>, index: number) => string)` | - | Custom node color function |
78
78
  | `labelOrientation` | `SankeyLabelOrientation` | - | Label reading direction for outside node labels. - "horizontal": labels sit left/right of nodes (default). - "vertical": labels rotate 90° and read along the node edge. |
79
79
  | `lineCap` | `number` | - | Corner radius for nodes. Default: 4 |
80
80
  | `showLabels` | `boolean` | - | Show node labels. Default: true |
81
81
  | `showValueLabels` | `boolean` | - | Show value labels under node names. Default: true |
82
- | `variant` | `"tint" \| "solid"` | - | `"tint"`: the radar look of the other charts, each node an opaque 20% wash of its colour with a solid 3px edge on its label side. `"solid"`: the full colour. Default: "tint" |
82
+ | `variant` | `"tint" \| "solid"` | - | `"solid"`: the full colour, as the bar, pie and ring charts. `"tint"`: an opaque 20% wash of the colour with a solid 3px edge on its label side. Default: "solid" |
83
83
 
84
84
  ## SankeyTooltip
85
85
 
@@ -147,8 +147,8 @@ export default function SankeyChartCheckout() {
147
147
  aspectRatio="16 / 9"
148
148
  margin={{ top: 16, right: 96, bottom: 16, left: 96 }}
149
149
  >
150
- <SankeyLink stroke="var(--chart-1)" />
151
- <SankeyNode fill="var(--chart-1)" />
150
+ <SankeyLink stroke="var(--chart-solid-1)" />
151
+ <SankeyNode fill="var(--chart-solid-1)" />
152
152
  <SankeyTooltip nodeValueLabel="Sessions" linkValueLabel="Sessions" />
153
153
  </SankeyChart>
154
154
  );
@@ -192,13 +192,13 @@ const data: SankeyData = {
192
192
  };
193
193
 
194
194
  const COLORS: Record<string, string> = {
195
- "Gross volume": "var(--chart-1)",
195
+ "Gross volume": "var(--chart-solid-1)",
196
196
  "Processing fees": "var(--muted-foreground)",
197
197
  Refunds: "var(--chart-negative)",
198
- "Net volume": "var(--chart-2)",
198
+ "Net volume": "var(--chart-solid-2)",
199
199
  };
200
200
 
201
- const nodeColor = (node: { name: string }) => COLORS[node.name] ?? "var(--chart-3)";
201
+ const nodeColor = (node: { name: string }) => COLORS[node.name] ?? "var(--chart-solid-3)";
202
202
 
203
203
  const usdCompact = new Intl.NumberFormat("en-US", {
204
204
  style: "currency",
@@ -0,0 +1,41 @@
1
+ # Scaled frame
2
+
3
+ Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout
4
+ page in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales
5
+ it up. The content stays a live page; put a cover over it when it should not take clicks.
6
+
7
+ ```tsx
8
+ import { ScaledFrame } from "@dodopayments/ui/scaled-frame";
9
+ ```
10
+
11
+ ## ScaledFrame
12
+
13
+ Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout
14
+ page in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales
15
+ it up. The content stays a live page; put a cover over it when it should not take clicks.
16
+
17
+ | Prop | Type | Default | Description |
18
+ | --- | --- | --- | --- |
19
+ | `height` (required) | `number` | - | The height the content is laid out at, in px. |
20
+ | `width` (required) | `number` | - | The width the content is laid out at, in px, e.g. 1280 for a desktop page. |
21
+
22
+ ## Examples
23
+
24
+ ### scaled-frame/preview
25
+
26
+ ```tsx
27
+ import { ScaledFrame } from "@dodopayments/ui/scaled-frame";
28
+
29
+ export default function ScaledFramePreview() {
30
+ return (
31
+ <div className="w-full max-w-xl rounded-lg border border-border">
32
+ <ScaledFrame width={1280} height={720}>
33
+ <div className="flex size-full items-center justify-center bg-muted text-heading-primary text-foreground">
34
+ A 1280 by 720 page, scaled to fit
35
+ </div>
36
+ </ScaledFrame>
37
+ </div>
38
+ );
39
+ }
40
+ ```
41
+
@@ -35,7 +35,7 @@ Preset: a circular skeleton sized like an avatar.
35
35
  Loading region that swaps a skeleton for its content, after interior.dev's skeleton swap. The
36
36
  skeleton and `children` share one grid cell, so the region keeps its height and the layout does
37
37
  not jump. The skeleton waits `delay` before it shows (a fast load shows no skeleton), stays for at
38
- least `minDuration`, then fades out quickly while the content sharpens from a small blur.
38
+ least `minDuration`, then fades out while the content fades in, sharpens and settles to full size.
39
39
  The region is `aria-busy` while loading, and the content is inert while the skeleton covers it.
40
40
 
41
41
  | Prop | Type | Default | Description |
@@ -3,8 +3,9 @@
3
3
  A static metric (Dodo Nest Stat card): the label on a grey strip, the number in a white panel, and an optional
4
4
  trend chip and comparison under it. Put a `StatCardBreakdown` inside for the parts of the number (Payout balance).
5
5
  `loading` shows Skeleton lines, `empty` shows "-" and a reason, and `error` (with `onRetry`) a retry; what replaces
6
- the loading skeletons fades in. Cards in a CSS grid row (`StatGrid`) stretch to one height. Renders a `<section>`
7
- labelled by the label.
6
+ the loading skeletons fades in. Cards in a CSS grid row (`StatGrid`) stretch to one height. `layout="inline"`
7
+ drops the tray for a bare stat; a grouped `StatGrid` makes every card in it inline. Renders a `<section>` labelled by the
8
+ label.
8
9
 
9
10
  ```tsx
10
11
  import { StatCard, StatCardBreakdown, StatCardBreakdownRow, StatGrid } from "@dodopayments/ui/stat-card";
@@ -15,8 +16,9 @@ import { StatCard, StatCardBreakdown, StatCardBreakdownRow, StatGrid } from "@do
15
16
  A static metric (Dodo Nest Stat card): the label on a grey strip, the number in a white panel, and an optional
16
17
  trend chip and comparison under it. Put a `StatCardBreakdown` inside for the parts of the number (Payout balance).
17
18
  `loading` shows Skeleton lines, `empty` shows "-" and a reason, and `error` (with `onRetry`) a retry; what replaces
18
- the loading skeletons fades in. Cards in a CSS grid row (`StatGrid`) stretch to one height. Renders a `<section>`
19
- labelled by the label.
19
+ the loading skeletons fades in. Cards in a CSS grid row (`StatGrid`) stretch to one height. `layout="inline"`
20
+ drops the tray for a bare stat; a grouped `StatGrid` makes every card in it inline. Renders a `<section>` labelled by the
21
+ label.
20
22
 
21
23
  | Prop | Type | Default | Description |
22
24
  | --- | --- | --- | --- |
@@ -30,6 +32,7 @@ labelled by the label.
30
32
  | `help` | `ReactNode` | - | Explains the metric in a Tooltip on a help icon next to the label. |
31
33
  | `labelAs` | `"h2" \| "h3" \| "h4" \| "p"` | `"h3"` | Element used for the label. |
32
34
  | `labels` | `StatCardLabels` | - | Replaces some or all of the default texts. |
35
+ | `layout` | `"card" \| "inline"` | `"card"` | `card`: The Stat card: the label on a grey strip, the number in a white panel, in its own tray.<br>`inline`: A bare stat: the label (Body/Primary, Content/Secondary) over the number, with no tray or panel. For a grouped StatGrid. |
33
36
  | `loading` | `boolean` | `false` | Replace the value and the comparison with Skeleton lines and mark the card busy. |
34
37
  | `onRetry` | `(() => void)` | - | Shows a retry button in the error state. |
35
38
  | `trend` | `StatCardTrend` | - | The change: a success (up) or error (down) chip before the comparison. Show it only with a comparison. |
@@ -53,12 +56,17 @@ One label / value row of a `StatCardBreakdown`, the value at the end.
53
56
  ## StatGrid
54
57
 
55
58
  A responsive row of `StatCard`s: a `Grid` of 2, 3 or 4 equal columns, 16 apart, that stacks the cards 12 apart
56
- when narrow. Cards in a row stretch to the same height, so their panels line up.
59
+ when narrow. Cards in a row stretch to the same height, so their panels line up. `layout="group"` puts the stats
60
+ in one `Card` instead (the page summary under a page header): its cards turn inline, side by side with dividers
61
+ between them, stacked with dividers between rows when narrow.
57
62
 
58
63
  | Prop | Type | Default | Description |
59
64
  | --- | --- | --- | --- |
60
65
  | `columns` | `"2" \| "3" \| "4"` | `"3"` | `2`: Two cards per row once the grid is 28rem (448px) wide, one below.<br>`3`: Up to three cards per row: two from 28rem (448px), three from 42rem (672px).<br>`4`: Up to four cards per row: two from 28rem (448px), three from 42rem (672px), four from 56rem (896px). |
61
66
  | `gap` | `"sm" \| "md" \| "xl" \| "2xl" \| "none" \| "xs" \| "lg" \| null` | - | |
67
+ | `heading` | `ReactNode` | - | With `layout="group"`: the title on the card's strip, e.g. "Last 30 days". |
68
+ | `help` | `ReactNode` | - | With `layout="group"` and a `heading`: help text behind an info icon after it. |
69
+ | `layout` | `"cards" \| "group"` | `"cards"` | `cards`: Separate Stat cards, 16 apart (12 apart when they stack).<br>`group`: One Card tray (with an optional `heading`) whose panel lines the stats up as inline stats with dividers between them; they stack with dividers between rows when narrow. |
62
70
 
63
71
  Also accepts Base UI props: `render`.
64
72
 
@@ -100,6 +108,25 @@ export default function StatCardBasic() {
100
108
  }
101
109
  ```
102
110
 
111
+ ### stat-card/grouped
112
+
113
+ ```tsx
114
+ "use client";
115
+
116
+ import { StatCard, StatGrid } from "@dodopayments/ui/stat-card";
117
+
118
+ /** The page summary under a page header: one card, three stats side by side. */
119
+ export default function StatCardGrouped() {
120
+ return (
121
+ <StatGrid layout="group" heading="Last 30 days" className="w-full">
122
+ <StatCard label="Successful payments" value="2.2K" />
123
+ <StatCard label="Payment volume" value="$8.4M" />
124
+ <StatCard label="Failed payments" value="154" />
125
+ </StatGrid>
126
+ );
127
+ }
128
+ ```
129
+
103
130
  ### stat-card/master
104
131
 
105
132
  ```tsx
@@ -5,7 +5,8 @@ children: one `SunburstSegment` per arc of `buildArcs(data).arcs`, plus `Sunburs
5
5
  the focused total with `formatValue`, and a click zooms out), `SunburstLabels`, `SunburstBreadcrumb`
6
6
  (drill-down path, above), `SunburstLegend` (branches with value and share, beside the rings) and
7
7
  `SunburstHint` (live hint, below). `data` is a `SunburstNode` tree; leaves carry `value`. Segments are
8
- tinted washes with a solid rim, like the bar and pie charts. Click a segment with children to zoom in.
8
+ solid by default (full colour, fading by ring), like the bar and pie charts; `variant="tint"` on
9
+ `SunburstSegment` gives the wash with a solid rim. Click a segment with children to zoom in.
9
10
  The SVG is decorative and pointer-only: `SunburstLegend` rows zoom in and `SunburstBreadcrumb` buttons
10
11
  zoom out by keyboard, so keep both in the chart when focus can change. Rings reveal on mount;
11
12
  there is no loading or empty state. `size` (default 520) is the largest diameter; the chart never
@@ -22,7 +23,8 @@ children: one `SunburstSegment` per arc of `buildArcs(data).arcs`, plus `Sunburs
22
23
  the focused total with `formatValue`, and a click zooms out), `SunburstLabels`, `SunburstBreadcrumb`
23
24
  (drill-down path, above), `SunburstLegend` (branches with value and share, beside the rings) and
24
25
  `SunburstHint` (live hint, below). `data` is a `SunburstNode` tree; leaves carry `value`. Segments are
25
- tinted washes with a solid rim, like the bar and pie charts. Click a segment with children to zoom in.
26
+ solid by default (full colour, fading by ring), like the bar and pie charts; `variant="tint"` on
27
+ `SunburstSegment` gives the wash with a solid rim. Click a segment with children to zoom in.
26
28
  The SVG is decorative and pointer-only: `SunburstLegend` rows zoom in and `SunburstBreadcrumb` buttons
27
29
  zoom out by keyboard, so keep both in the chart when focus can change. Rings reveal on mount;
28
30
  there is no loading or empty state. `size` (default 520) is the largest diameter; the chart never
@@ -55,7 +57,7 @@ zooms in on click when it has children, and grows outward on hover with its ance
55
57
  | `color` | `string` | - | Optional color override |
56
58
  | `fill` | `string` | - | Optional fill override (patterns/gradients) |
57
59
  | `fillOpacity` | `number` | - | Optional fill opacity override |
58
- | `variant` | `"tint" \| "solid"` | - | `"tint"`: the bar and pie charts' look, the branch colour washed 20% into the card on every ring (35% while hovered) with a solid 3px rim on the outer edge. `"solid"`: the full colour, fading by ring. A gradient or pattern `fill` stays solid. Default: "tint" |
60
+ | `variant` | `"tint" \| "solid"` | - | `"solid"`: the full colour, fading by ring, as the bar, pie and ring charts. `"tint"`: the branch colour washed 20% into the card on every ring (35% while hovered) with a solid 3px rim on the outer edge. A gradient or pattern `fill` stays solid. Default: "solid" |
59
61
 
60
62
  ## SunburstCenter
61
63
 
@@ -83,7 +85,7 @@ hidden for unrelated branches while one is hovered. They fade in after the enter
83
85
 
84
86
  ## SunburstLegend
85
87
 
86
- The branches of a `SunburstChart` as a list beside it: a marker in the ring's tint, the name, the value and its share.
88
+ The branches of a `SunburstChart` as a list beside it: a marker in the branch colour, the name, the value and its share.
87
89
  It follows the drill-down (the focused node's children) and the hover, both ways. A row with children is a button
88
90
  that zooms in, so it is also the keyboard way into the hierarchy. Put it inside `SunburstChart`; the chart places it
89
91
  beside the rings, or under them when there is no room.
@@ -93,6 +95,7 @@ beside the rings, or under them when there is no room.
93
95
  | `className` | `string` | - | Class name of the list. |
94
96
  | `formatValue` | `((value: number) => string)` | - | Formats each row's value. Default: a whole number in the locale. |
95
97
  | `showPercentage` | `boolean` | - | Show each row's share of the focused node. Default: true |
98
+ | `variant` | `"tint" \| "solid"` | - | The marker, to match the segments: `"solid"` fills it with the branch colour; `"tint"` is a 20% wash with a solid 2px top edge. Default: "solid" |
96
99
  | `zoomInLabel` | `string` | - | Ends the accessible name of a row that zooms in ("Subscriptions, $683K, 66%, zoom in"). Default: "zoom in" |
97
100
 
98
101
  ## SunburstHint
@@ -54,13 +54,13 @@ import { TestModeBadge, TestModeBanner } from "@dodopayments/ui/test-mode-banner
54
54
 
55
55
  export default function TestModeBannerBasic() {
56
56
  return (
57
- <div className="w-full overflow-hidden rounded-xl border">
57
+ <div className="w-full overflow-hidden rounded-xl border border-border bg-background">
58
58
  <TestModeBanner
59
59
  onSwitchToLive={() => undefined}
60
60
  learnMoreHref="https://docs.dodopayments.com/miscellaneous/test-mode-vs-live-mode"
61
61
  />
62
- <div className="flex items-center gap-2 p-4 text-sm">
63
- <span className="font-medium">pay_2IjeQm4hqU6RA4Z4kwDee</span>
62
+ <div className="flex items-center gap-2 p-4">
63
+ <span className="text-label-primary text-foreground">pay_2IjeQm4hqU6RA4Z4kwDee</span>
64
64
  <TestModeBadge />
65
65
  </div>
66
66
  </div>
@@ -115,7 +115,11 @@ for the shape of the other charts (`FunnelStage`, `HeatmapColumn`, `SankeyData`)
115
115
 
116
116
  ### 3. Colour series with the chart tokens, in order
117
117
 
118
- Use `var(--chart-1)` for the first series, `var(--chart-2)` for the second, up to `var(--chart-5)`.
118
+ Bars, lines and areas use `var(--chart-solid-1)` (Pulse 400, the brand lime) for the first series and
119
+ `var(--chart-solid-2)` (Blue 400) for the second and `var(--chart-solid-3)` (Violet 500, 400 in dark) for a third.
120
+ `--chart-solid-1` is their default colour. Bars are solid. Pie slices, rings, sunburst branches, gauge notches, funnel stages and sankey nodes are solid too and default to
121
+ `--chart-solid-1` to `--chart-solid-3`, then `--chart-4` and `--chart-5`.
122
+ Other series and the other charts use `var(--chart-1)`, `var(--chart-2)` and so on, up to `var(--chart-5)`.
119
123
  The tokens switch with the theme and come from the Dodo Nest ramps (`--chart-1` is the brand lime).
120
124
  Use `var(--chart-positive)` and `var(--chart-negative)` only for gain and loss. In JavaScript, `chartCssVars` (from `@dodopayments/ui/chart`) gives the other chart colours
121
125
  (`chartCssVars.grid`, `chartCssVars.crosshair`). Heatmaps and maps use the sequential scale
@@ -123,8 +127,8 @@ Use `var(--chart-positive)` and `var(--chart-negative)` only for gain and loss.
123
127
 
124
128
  ```tsx
125
129
  // Good
126
- <Bar dataKey="gross" fill="var(--chart-1)" />
127
- <Bar dataKey="net" fill="var(--chart-2)" />
130
+ <Bar dataKey="gross" fill="var(--chart-solid-1)" />
131
+ <Bar dataKey="net" fill="var(--chart-solid-2)" />
128
132
  ```
129
133
 
130
134
  ```tsx
@@ -163,8 +167,8 @@ const usd = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD",
163
167
 
164
168
  <ChartTooltip
165
169
  rows={(point) => [
166
- { color: "var(--chart-1)", label: "Gross", value: usd.format(point.gross as number) },
167
- { color: "var(--chart-2)", label: "Net", value: usd.format(point.net as number) },
170
+ { color: "var(--chart-solid-1)", label: "Gross", value: usd.format(point.gross as number) },
171
+ { color: "var(--chart-solid-2)", label: "Net", value: usd.format(point.net as number) },
168
172
  ]}
169
173
  />
170
174
  ```
@@ -279,7 +283,7 @@ Some roots need their own parts:
279
283
  <ComposedChart data={rows} label="Orders and revenue, September 2026">
280
284
  <ChartGrid horizontal />
281
285
  <SeriesBar dataKey="orders" fill="var(--chart-3)" />
282
- <Line dataKey="revenue" stroke="var(--chart-1)" />
286
+ <Line dataKey="revenue" stroke="var(--chart-solid-1)" />
283
287
  <XAxis />
284
288
  </ComposedChart>
285
289
  ```
@@ -315,7 +319,8 @@ tooltip of the marker, not in a paragraph under the chart.
315
319
  - [ ] The chart type matches the question (see "Choose the chart").
316
320
  - [ ] `label` names the metric and the period.
317
321
  - [ ] Each part comes from its subpath and is directly inside the root.
318
- - [ ] Series use `var(--chart-1)` to `var(--chart-5)` in order, with the same colour in the tooltip
322
+ - [ ] Series use `var(--chart-solid-1)` to `var(--chart-solid-3)` on bars, lines and areas, then `var(--chart-1)` to
323
+ `var(--chart-5)` in order, with the same colour in the tooltip
319
324
  and the legend. No literal colours.
320
325
  - [ ] Tooltip rows have human labels and formatted values.
321
326
  - [ ] Axis values are compact, and the y-axis label is not cut off.
@@ -83,7 +83,7 @@ another component library.
83
83
  | A record's fields grouped in sections (payment, customer, billing) | `DetailsPanel` | A two-column Data table |
84
84
  | The title row at the top of every page (title, back or breadcrumb, status, up to two buttons) | `PageHeader` with `title`, `description`, `back` (one level up) or `breadcrumb` (2+ levels), `meta` (Badge, Copyable ID), `help` and `actions` (two `Button size="lg"`, one primary at most) | A text back link (‹ Products) above the title, or a Page header for an in-page section heading (use a `Card` header) |
85
85
  | The top of a record page: amount or name, status, IDs, actions | `RecordHeader` (`PageHeader` stays the page title) | A second `h1` with ad hoc badges |
86
- | The bar at the top of every dashboard page: search, Games, Milestones (Setup guide while setting up), Dodo AI, chat, theme, notifications, account | `AppTopBar` (`notifications` fills its lg Popover, `account` its Menu; `showSetupGuide` swaps Milestones for Setup guide; it collapses itself below 672px) | Page actions or a count on the bell in the top bar; a hand-built header row |
86
+ | The bar at the top of every dashboard page: search, Games, Milestones (Setup guide while setting up), Dodo AI, chat, theme, notifications, account | `AppTopBar` (`notifications` fills its lg Popover, `account` its Menu; `showSetupGuide` swaps Milestones for Setup guide; it collapses itself below 672px). The page content starts 32 below it (`pt-8`), and Sentra opens from its Dodo AI button, not from the Sidebar | Page actions or a count on the bell in the top bar; a hand-built header row; a Sentra item in the Sidebar nav |
87
87
  | A formatted description in a form (product, collection) | `RichTextEditor` in a `Field` (markdown value; text style, bold, italic, underline, text colour) | A bare `Input type="textarea"` with markdown hints, or link / code buttons in its toolbar |
88
88
  | Showing a saved description (product, invoice) | `RichTextContent` from `@dodopayments/ui/rich-text-editor` (formatted prose); `RichTextPreview` for one plain-text line in a table cell or card | Raw markdown on screen, or the value through `dangerouslySetInnerHTML` |
89
89
  | A section of a page (a form section, a list, a summary) | `Card`: the grey tray with a `CardHeader` strip (`CardTitle`, optional `help`, `CardDescription`, a small `CardAction`), the white `CardContent` panel and an optional `CardFooter` note, or the header as props (`<Card title description action>`, `layout="full-bleed"` for a list or table); `tone="error"` only for a problem to act on or the Danger zone. Stack cards 24 apart | A white bordered `div`, a card nested in a card, page actions or a page title on the strip, status shown as coloured text instead of a `Badge` |
@@ -97,6 +97,7 @@ another component library.
97
97
  | Cancelling a subscription with explicit timing | A `Sheet` with a `RadioGroup` of card radios (period end by default) and a destructive confirm | An unconfirmed destructive action |
98
98
  | A self-service billing page | Compose the Customer Portal block from `SubscriptionCard`, `PlanPicker`, `ProrationPreview`, `PaymentMethodList` and a cancel `Sheet` | A new monolithic billing component |
99
99
  | A KPI with a trend | `StatCard` (label, value, `trend`, `comparison`) in a `StatGrid` | A `Card` with a coloured arrow, or actions and links inside the card |
100
+ | The page summary under a page header (a few headline numbers) | `StatGrid layout="group"` with a `heading` ("Last 30 days") and `StatCard`s: one card, stats side by side with dividers | A `Card` with a hand-built row of label and value pairs, or separate Stat cards when the numbers belong together |
100
101
  | Top customers by spend (a ranking with a podium) | `Leaderboard items={…}` inside a `Card` titled "Top customers by spend" | Gradient tiles or rank circles drawn by hand, or recoloured medals and glows |
101
102
  | The Milestones page: targets close to done, reached milestones, the shared image | `MilestoneCard state="progress"` for targets and `MilestoneCard` (reached, `onShare`) in `Card` trays; `MilestoneShareCard` inside a Dialog to share; `MilestoneToast` when one is reached; `MilestoneEmpty` before the first; `MilestoneGem` for the gem alone | Gem or card gradients drawn by hand, raw hex colours, a Toast or Empty state standing in for the milestone notice or wall, a Progress bar or percent rebuilt by hand |
102
103
  | The setup checklist of a new business (from the top bar's Setup guide button) | `SetupGuide items={…}`: groups with `tasks` and their states, link rows, a `locked` Go live row; pin it to the bottom-right; collapse it when a task is picked | A hand-built checklist panel, status shown only by colour, a second progress number that disagrees with the top bar's ring |
@@ -581,7 +582,8 @@ placement).
581
582
  ### 16. The logo comes from `Logo`
582
583
 
583
584
  `Logo` sets the artwork, its colours, the size steps and the clear space. Choose `variant`,
584
- `tone` (by the surface behind it) and `size`. Use `className` for layout only. `Logo` is an image
585
+ `tone` (by the surface behind it) and `size` (`xs` only inside a line of small text, such as
586
+ "Secure checkout by" under a pay button). Use `className` for layout only. `Logo` is an image
585
587
  with the name "Dodo Payments", so a home link needs no extra label. Use the raw SVGs in
586
588
  `@dodopayments/ui/assets/*` only where React cannot render (emails, OG images).
587
589
 
@@ -28,6 +28,10 @@ export declare const DODO_ACTIVITY_TIMELINE_ITEM_VARIANTS: {
28
28
  readonly classes: "";
29
29
  readonly description: "A plain step with no outcome. Glyph circle-minus; give it a specific `icon`, e.g. a credit card for Payment started.";
30
30
  };
31
+ readonly step: {
32
+ readonly classes: "before:size-3.5 before:rounded-full before:border-3 before:border-brand before:bg-background";
33
+ readonly description: "A step of a log: a brand ring, joined to the next step by a brand line, e.g. the notes on a blocklist entry.";
34
+ };
31
35
  readonly none: {
32
36
  readonly classes: "before:size-1.5 before:rounded-full before:bg-tertiary";
33
37
  readonly description: "A minor event with no icon: a bare 6px dot, e.g. a status not set or a blocklist entry.";
@@ -61,6 +65,10 @@ export declare const activityTimelineItemVariants: import("../../index.ts").Vari
61
65
  readonly classes: "";
62
66
  readonly description: "A plain step with no outcome. Glyph circle-minus; give it a specific `icon`, e.g. a credit card for Payment started.";
63
67
  };
68
+ readonly step: {
69
+ readonly classes: "before:size-3.5 before:rounded-full before:border-3 before:border-brand before:bg-background";
70
+ readonly description: "A step of a log: a brand ring, joined to the next step by a brand line, e.g. the notes on a blocklist entry.";
71
+ };
64
72
  readonly none: {
65
73
  readonly classes: "before:size-1.5 before:rounded-full before:bg-tertiary";
66
74
  readonly description: "A minor event with no icon: a bare 6px dot, e.g. a status not set or a blocklist entry.";
@@ -114,6 +122,12 @@ export interface ActivityTimelineItemProps extends Omit<React.ComponentProps<"li
114
122
  * @default "datetime"
115
123
  */
116
124
  timestampFormat?: TimestampFormat;
125
+ /**
126
+ * Where the time sits: `end` at the trailing end of the title's line, `below` on its own line
127
+ * under the title and description, for a log read top to bottom.
128
+ * @default "end"
129
+ */
130
+ timestampPlacement?: "end" | "below";
117
131
  /** IANA time zone of the timestamp, e.g. "Asia/Kolkata". Defaults to UTC. */
118
132
  timeZone?: string;
119
133
  }
@@ -124,7 +138,7 @@ export interface ActivityTimelineItemProps extends Omit<React.ComponentProps<"li
124
138
  * 20 above the next event. Below a 28rem row the date sits over the time, right-aligned (Figma
125
139
  * Breakpoint mobile). Use it inside an `ol`; `ActivityTimeline` does this for you.
126
140
  */
127
- export declare function ActivityTimelineItem({ title, description, timestamp, icon, tone, connector, timestampFormat, timeZone, onSelect, href, current, className, ...props }: ActivityTimelineItemProps): React.JSX.Element;
141
+ export declare function ActivityTimelineItem({ title, description, timestamp, icon, tone, connector, timestampFormat, timestampPlacement, timeZone, onSelect, href, current, className, ...props }: ActivityTimelineItemProps): React.JSX.Element;
128
142
  /** Texts of `ActivityTimeline`, for translation. */
129
143
  export interface ActivityTimelineLabels {
130
144
  /** Announced while `loading`. @default "Loading activity" */
@@ -195,6 +209,12 @@ export interface ActivityTimelineProps extends Omit<React.ComponentProps<"div">,
195
209
  * @default "datetime"
196
210
  */
197
211
  timestampFormat?: TimestampFormat;
212
+ /**
213
+ * Where the time sits: `end` at the trailing end of the title's line, `below` on its own line
214
+ * under the title and description, for a log read top to bottom.
215
+ * @default "end"
216
+ */
217
+ timestampPlacement?: "end" | "below";
198
218
  /** IANA time zone of the timestamps, e.g. "Asia/Kolkata". Defaults to UTC. */
199
219
  timeZone?: string;
200
220
  /** Replaces some or all of the default texts. */
@@ -209,5 +229,5 @@ export interface ActivityTimelineProps extends Omit<React.ComponentProps<"div">,
209
229
  * button under the list. It holds no data: fetch, sort and word the events in your app. Put it in a
210
230
  * `Card` titled "Activity log".
211
231
  */
212
- export declare function ActivityTimeline({ items, label, loading, loadingRows, error, onRetry, hasMore, onLoadMore, autoLoadMore, onLoadMoreError, timestampFormat, timeZone, labels, className, ...props }: ActivityTimelineProps): React.JSX.Element;
232
+ export declare function ActivityTimeline({ items, label, loading, loadingRows, error, onRetry, hasMore, onLoadMore, autoLoadMore, onLoadMoreError, timestampFormat, timestampPlacement, timeZone, labels, className, ...props }: ActivityTimelineProps): React.JSX.Element;
213
233
  //# sourceMappingURL=activity-timeline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"activity-timeline.d.ts","sourceRoot":"","sources":["../../../src/components/activity-timeline/activity-timeline.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG7E;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCvC,CAAC;AAEX,yHAAyH;AACzH,eAAO,MAAM,4CAA4C;;CAA+B,CAAC;AAEzF,+EAA+E;AAC/E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIvC,CAAC;AAEH,yCAAyC;AACzC,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,oCAAoC,CAAC,IAAI,CAAC;AAU1F,uGAAuG;AACvG,MAAM,WAAW,qBAAqB;IACpC,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,qHAAqH;IACrH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,C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Ae,EACf,UAAU,EACV,YAAoB,EACpB,eAAe,EACf,eAA4B,EAC5B,QAAQ,EACR,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EAAE,qBAAqB,qBAkKvB"}
1
+ {"version":3,"file":"activity-timeline.d.ts","sourceRoot":"","sources":["../../../src/components/activity-timeline/activity-timeline.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG7E;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCvC,CAAC;AAEX,yHAAyH;AACzH,eAAO,MAAM,4CAA4C;;CAA+B,CAAC;AAEzF,+EAA+E;AAC/E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIvC,CAAC;AAEH,yCAAyC;AACzC,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,oCAAoC,CAAC,IAAI,CAAC;AAU1F,uGAAuG;AACvG,MAAM,WAAW,qBAAqB;IACpC,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,qHAAqH;IACrH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,oGAAoG;IACpG,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gHAAgH;IAChH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,uCAAuC;AACvC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description: "A plain step with no outcome. Glyph circle-minus; give it a specific `icon`, e.g. a credit card for Payment started.",
48
48
  },
49
+ step: {
50
+ classes: "before:size-3.5 before:rounded-full before:border-3 before:border-brand before:bg-background",
51
+ description: "A step of a log: a brand ring, joined to the next step by a brand line, e.g. the notes on a blocklist entry.",
52
+ },
49
53
  none: {
50
54
  classes: "before:size-1.5 before:rounded-full before:bg-tertiary",
51
55
  description: "A minor event with no icon: a bare 6px dot, e.g. a status not set or a blocklist entry.",
@@ -74,18 +78,20 @@ const TONE_GLYPHS = {
74
78
  * 20 above the next event. Below a 28rem row the date sits over the time, right-aligned (Figma
75
79
  * Breakpoint mobile). Use it inside an `ol`; `ActivityTimeline` does this for you.
76
80
  */
77
- export function ActivityTimelineItem({ title, description, timestamp, icon, tone, connector = "auto", timestampFormat = "datetime", timeZone, onSelect, href, current = false, className, ...props }) {
81
+ export function ActivityTimelineItem({ title, description, timestamp, icon, tone, connector = "auto", timestampFormat = "datetime", timestampPlacement = "end", timeZone, onSelect, href, current = false, className, ...props }) {
78
82
  const resolvedTone = tone ?? (icon ? "neutral" : "none");
79
83
  const interactive = Boolean(onSelect || href);
80
84
  const text = (_jsxs(_Fragment, { children: [_jsx("span", { "data-slot": "activity-timeline-title", className: cn("text-foreground", current ? "text-label-primary" : "text-body-primary", interactive && "group-hover/activity-item:underline"), children: title }), description ? (_jsx("span", { "data-slot": "activity-timeline-description", className: "text-body-secondary text-muted-foreground", children: description })) : null] }));
81
85
  // A clickable row: the title's button or link stretches over the whole row (`after:inset-0`), so the icon and
82
86
  // the description are part of the hit area while the accessible name stays the title and description.
83
87
  const target = cn("flex min-w-0 flex-col gap-0.5 rounded-sm text-start outline-none after:absolute after:inset-0 after:rounded-md focus-visible:after:ring-2 focus-visible:after:ring-brand-subtle focus-visible:after:inset-ring focus-visible:after:inset-ring-brand-border");
84
- return (_jsxs("li", { "data-slot": "activity-timeline-item", "data-tone": resolvedTone, "data-current": current || undefined, "aria-current": current && !interactive ? "step" : undefined, className: cn("group/activity-item @container flex gap-3", interactive && "relative cursor-pointer", className), ...props, children: [_jsxs("div", { "data-slot": "activity-timeline-rail", "aria-hidden": "true", className: "flex w-5 shrink-0 flex-col items-center", children: [_jsx("span", { "data-slot": "activity-timeline-marker", className: activityTimelineItemVariants({ tone: resolvedTone }), children: resolvedTone === "none" ? null : (_jsx(FeaturedIcon, { size: "sm", tone: resolvedTone, icon: icon ?? TONE_GLYPHS[resolvedTone] })) }), _jsx("span", { "data-slot": "activity-timeline-connector", "data-connector": connector, className: cn(
88
+ return (_jsxs("li", { "data-slot": "activity-timeline-item", "data-tone": resolvedTone, "data-current": current || undefined, "aria-current": current && !interactive ? "step" : undefined, className: cn("group/activity-item @container flex gap-3", interactive && "relative cursor-pointer", className), ...props, children: [_jsxs("div", { "data-slot": "activity-timeline-rail", "aria-hidden": "true", className: "flex w-5 shrink-0 flex-col items-center", children: [_jsx("span", { "data-slot": "activity-timeline-marker", className: activityTimelineItemVariants({ tone: resolvedTone }), children: resolvedTone === "none" || resolvedTone === "step" ? null : (_jsx(FeaturedIcon, { size: "sm", tone: resolvedTone, icon: icon ?? TONE_GLYPHS[resolvedTone] })) }), _jsx("span", { "data-slot": "activity-timeline-connector", "data-connector": connector, className: cn(
85
89
  // Figma: 10 from the box's left edge, not centred on its 20px (9.5).
86
90
  "ms-2.5 mt-0.5 flex-1 self-start", connector === "dashed"
87
91
  ? "min-h-4 w-0 border-border border-s border-dashed"
88
- : "w-px bg-border group-last/activity-item:hidden") })] }), _jsxs("div", { "data-slot": "activity-timeline-body", className: cn("flex min-w-0 flex-1 items-start gap-3 pb-5", connector === "auto" && "group-last/activity-item:pb-0"), children: [_jsx("div", { "data-slot": "activity-timeline-content", className: "flex min-w-0 flex-1 flex-col gap-0.5", children: href ? (_jsx("a", { href: href, "aria-current": current ? "step" : undefined, className: target, children: text })) : onSelect ? (_jsx("button", { type: "button", onClick: onSelect, "aria-current": current ? "step" : undefined, className: target, children: text })) : (text) }), timestamp !== undefined ? (_jsx(Timestamp, { "data-slot": "activity-timeline-timestamp", value: timestamp, format: timestampFormat, timeZone: timeZone, className: "min-w-0 shrink-0 justify-end py-0.5 text-end text-body-secondary text-muted-foreground tabular-nums @max-md:[&_time]:flex @max-md:[&_time]:flex-col @max-md:[&_time]:items-end @max-md:**:data-[slot=timestamp-separator]:hidden" })) : null] })] }));
92
+ : "w-px bg-border group-last/activity-item:hidden", resolvedTone === "step" &&
93
+ connector === "auto" &&
94
+ "ms-0 mt-0 w-0.5 self-center bg-brand") })] }), _jsxs("div", { "data-slot": "activity-timeline-body", className: cn("flex min-w-0 flex-1 items-start gap-3 pb-5", connector === "auto" && "group-last/activity-item:pb-0"), children: [_jsxs("div", { "data-slot": "activity-timeline-content", className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [href ? (_jsx("a", { href: href, "aria-current": current ? "step" : undefined, className: target, children: text })) : onSelect ? (_jsx("button", { type: "button", onClick: onSelect, "aria-current": current ? "step" : undefined, className: target, children: text })) : (text), timestamp !== undefined && timestampPlacement === "below" ? (_jsx(Timestamp, { "data-slot": "activity-timeline-timestamp", value: timestamp, format: timestampFormat, timeZone: timeZone, className: "min-w-0 text-body-secondary text-muted-foreground tabular-nums" })) : null] }), timestamp !== undefined && timestampPlacement === "end" ? (_jsx(Timestamp, { "data-slot": "activity-timeline-timestamp", value: timestamp, format: timestampFormat, timeZone: timeZone, className: "min-w-0 shrink-0 justify-end py-0.5 text-end text-body-secondary text-muted-foreground tabular-nums @max-md:[&_time]:flex @max-md:[&_time]:flex-col @max-md:[&_time]:items-end @max-md:**:data-[slot=timestamp-separator]:hidden" })) : null] })] }));
89
95
  }
90
96
  // The empty and error states sit 32 from the top and bottom of their card (Figma State=empty).
91
97
  const STATE_CLASSES = "py-8";
@@ -107,7 +113,7 @@ function ActivityTimelineSkeleton({ rows, label }) {
107
113
  * button under the list. It holds no data: fetch, sort and word the events in your app. Put it in a
108
114
  * `Card` titled "Activity log".
109
115
  */
110
- export function ActivityTimeline({ items, label, loading = false, loadingRows = 3, error, onRetry, hasMore = false, onLoadMore, autoLoadMore = false, onLoadMoreError, timestampFormat = "datetime", timeZone, labels, className, ...props }) {
116
+ export function ActivityTimeline({ items, label, loading = false, loadingRows = 3, error, onRetry, hasMore = false, onLoadMore, autoLoadMore = false, onLoadMoreError, timestampFormat = "datetime", timestampPlacement = "end", timeZone, labels, className, ...props }) {
111
117
  const { messages } = useLocale();
112
118
  const text = {
113
119
  loading: messages.activityTimelineLoading,
@@ -186,7 +192,7 @@ export function ActivityTimeline({ items, label, loading = false, loadingRows =
186
192
  content = (_jsx(Empty, { "data-slot": "activity-timeline-empty", icon: _jsx(ClockIcon, {}), title: text.emptyTitle, titleAs: "p", description: text.emptyDescription, className: cn(STATE_CLASSES, reveal) }, "empty"));
187
193
  }
188
194
  else {
189
- content = (_jsxs(_Fragment, { children: [_jsx("ol", { "data-slot": "activity-timeline-list", "aria-label": label, className: cn("flex flex-col", reveal), children: items.map(({ id, ...event }, index) => (_jsx(ActivityTimelineItem, { ...event, connector: hasMore && index === items.length - 1 ? "dashed" : "auto", timestampFormat: timestampFormat, timeZone: timeZone, className: entrance.entering.has(id) ? ITEM_ENTER : undefined, style: entrance.entering.has(id)
195
+ content = (_jsxs(_Fragment, { children: [_jsx("ol", { "data-slot": "activity-timeline-list", "aria-label": label, className: cn("flex flex-col", reveal), children: items.map(({ id, ...event }, index) => (_jsx(ActivityTimelineItem, { ...event, connector: hasMore && index === items.length - 1 ? "dashed" : "auto", timestampFormat: timestampFormat, timestampPlacement: timestampPlacement, timeZone: timeZone, className: entrance.entering.has(id) ? ITEM_ENTER : undefined, style: entrance.entering.has(id)
190
196
  ? { transitionDelay: `${String(entrance.entering.get(id) ?? 0)}ms` }
191
197
  : undefined }, id))) }), onLoadMore && (hasMore || paged) ? (_jsx(LoadMore, { onLoad: handleLoadMore, hasMore: hasMore, auto: autoLoadMore, onError: onLoadMoreError, labels: {
192
198
  idle: text.loadMore,
@@ -1 +1 @@
1
- {"version":3,"file":"activity-timeline.js","sourceRoot":"","sources":["../../../src/components/activity-timeline/activity-timeline.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAsB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAoB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAoC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA4B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAA0B,CAAC;AACpD,OAAO,EAAE,SAAS,EAAwB,MAAM,2BAA4B,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAsB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,OAAO,EAAE,EAAE;YACX,WAAW,EACT,8FAA8F;SACjG;QACD,OAAO,EAAE;YACP,OAAO,EAAE,EAAE;YACX,WAAW,EACT,0GAA0G;SAC7G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,CAAC,CAAC,CAAC,CAClC,KAAC,QAAQ,IACP,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE;wBACN,IAAI,EAAE,IAAI,CAAC,QAAQ;wBACnB,OAAO,EAAE,IAAI,CAAC,WAAW;wBACzB,KAAK,EAAE,IAAI,CAAC,aAAa;wBACzB,GAAG,EAAE,IAAI,CAAC,GAAG;qBACd,GACD,CACH,CAAC,CAAC,CAAC,IAAI,IACP,CACJ,CAAC;IACJ,CAAC;IAED,OAAO,CACL,2BACY,mBAAmB,gBACjB,KAAK,EACjB,SAAS,EAAE,EAAE,CAAC,8BAA8B,EAAE,SAAS,CAAC,KACpD,KAAK,YAER,OAAO,GACJ,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"activity-timeline.js","sourceRoot":"","sources":["../../../src/components/activity-timeline/activity-timeline.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAsB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