@dodopayments/ui 1.0.1 → 1.0.2

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 (282) hide show
  1. package/ai/component-registry.json +431 -88
  2. package/ai/components/app-top-bar.md +18 -10
  3. package/ai/components/bar-chart.md +5 -3
  4. package/ai/components/button.md +1 -1
  5. package/ai/components/chart-legend.md +3 -1
  6. package/ai/components/chart-tooltip.md +2 -2
  7. package/ai/components/composed-chart.md +5 -6
  8. package/ai/components/data-grid.md +11 -23
  9. package/ai/components/date-picker.md +1 -1
  10. package/ai/components/details-panel.md +1 -1
  11. package/ai/components/funnel-chart.md +12 -5
  12. package/ai/components/gauge-chart.md +9 -4
  13. package/ai/components/line-chart.md +1 -0
  14. package/ai/components/list-item.md +146 -6
  15. package/ai/components/pie-chart.md +1 -0
  16. package/ai/components/quantity-stepper.md +34 -2
  17. package/ai/components/radio-group.md +2 -2
  18. package/ai/components/retention-matrix.md +20 -5
  19. package/ai/components/ring-chart.md +7 -4
  20. package/ai/components/sankey-chart.md +18 -8
  21. package/ai/components/scatter-chart.md +4 -2
  22. package/ai/components/settings-section.md +1 -62
  23. package/ai/components/setup-guide.md +114 -118
  24. package/ai/components/sidebar.md +5 -0
  25. package/ai/components/stat-card.md +13 -14
  26. package/ai/components/sunburst-chart.md +138 -18
  27. package/ai/components/value-flash.md +74 -15
  28. package/ai/skills/dodo-charts/SKILL.md +3 -2
  29. package/ai/skills/dodo-design/SKILL.md +2 -2
  30. package/dist/components/button/button.d.ts +1 -1
  31. package/dist/components/button/button.d.ts.map +1 -1
  32. package/dist/components/button/button.js +5 -3
  33. package/dist/components/button/button.js.map +1 -1
  34. package/dist/components/data-grid/data-grid.d.ts +16 -13
  35. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  36. package/dist/components/data-grid/data-grid.js +17 -110
  37. package/dist/components/data-grid/data-grid.js.map +1 -1
  38. package/dist/components/data-grid/index.d.ts.map +1 -1
  39. package/dist/components/data-grid/index.js +1 -0
  40. package/dist/components/data-grid/index.js.map +1 -1
  41. package/dist/components/data-grid/table.d.ts +3 -6
  42. package/dist/components/data-grid/table.d.ts.map +1 -1
  43. package/dist/components/data-grid/table.js +10 -12
  44. package/dist/components/data-grid/table.js.map +1 -1
  45. package/dist/components/funnel-chart/funnel-chart.d.ts +3 -1
  46. package/dist/components/funnel-chart/funnel-chart.d.ts.map +1 -1
  47. package/dist/components/funnel-chart/funnel-chart.js +3 -1
  48. package/dist/components/funnel-chart/funnel-chart.js.map +1 -1
  49. package/dist/components/gauge-chart/gauge-chart.d.ts +3 -1
  50. package/dist/components/gauge-chart/gauge-chart.d.ts.map +1 -1
  51. package/dist/components/gauge-chart/gauge-chart.js +3 -1
  52. package/dist/components/gauge-chart/gauge-chart.js.map +1 -1
  53. package/dist/components/icon-morph/icon-morph.d.ts.map +1 -1
  54. package/dist/components/icon-morph/icon-morph.js +7 -4
  55. package/dist/components/icon-morph/icon-morph.js.map +1 -1
  56. package/dist/components/list-item/list-item.d.ts +21 -2
  57. package/dist/components/list-item/list-item.d.ts.map +1 -1
  58. package/dist/components/list-item/list-item.js +18 -4
  59. package/dist/components/list-item/list-item.js.map +1 -1
  60. package/dist/components/plan-picker/plan-picker.js +1 -1
  61. package/dist/components/plan-picker/plan-picker.js.map +1 -1
  62. package/dist/components/product-card/product-card.d.ts.map +1 -1
  63. package/dist/components/product-card/product-card.js +10 -3
  64. package/dist/components/product-card/product-card.js.map +1 -1
  65. package/dist/components/quantity-stepper/index.d.ts +1 -1
  66. package/dist/components/quantity-stepper/index.d.ts.map +1 -1
  67. package/dist/components/quantity-stepper/index.js +1 -1
  68. package/dist/components/quantity-stepper/index.js.map +1 -1
  69. package/dist/components/quantity-stepper/quantity-stepper.d.ts +33 -3
  70. package/dist/components/quantity-stepper/quantity-stepper.d.ts.map +1 -1
  71. package/dist/components/quantity-stepper/quantity-stepper.js +41 -8
  72. package/dist/components/quantity-stepper/quantity-stepper.js.map +1 -1
  73. package/dist/components/radio-group/radio-group.d.ts +6 -6
  74. package/dist/components/radio-group/radio-group.d.ts.map +1 -1
  75. package/dist/components/radio-group/radio-group.js +11 -10
  76. package/dist/components/radio-group/radio-group.js.map +1 -1
  77. package/dist/components/retention-matrix/index.d.ts +1 -1
  78. package/dist/components/retention-matrix/index.d.ts.map +1 -1
  79. package/dist/components/retention-matrix/index.js +1 -1
  80. package/dist/components/retention-matrix/index.js.map +1 -1
  81. package/dist/components/retention-matrix/retention-matrix.d.ts +32 -16
  82. package/dist/components/retention-matrix/retention-matrix.d.ts.map +1 -1
  83. package/dist/components/retention-matrix/retention-matrix.js +42 -19
  84. package/dist/components/retention-matrix/retention-matrix.js.map +1 -1
  85. package/dist/components/sankey-chart/sankey-chart.d.ts +4 -1
  86. package/dist/components/sankey-chart/sankey-chart.d.ts.map +1 -1
  87. package/dist/components/sankey-chart/sankey-chart.js +4 -1
  88. package/dist/components/sankey-chart/sankey-chart.js.map +1 -1
  89. package/dist/components/settings-section/index.d.ts.map +1 -1
  90. package/dist/components/settings-section/index.js +1 -0
  91. package/dist/components/settings-section/index.js.map +1 -1
  92. package/dist/components/settings-section/settings-section.d.ts +8 -5
  93. package/dist/components/settings-section/settings-section.d.ts.map +1 -1
  94. package/dist/components/settings-section/settings-section.js +8 -11
  95. package/dist/components/settings-section/settings-section.js.map +1 -1
  96. package/dist/components/setup-guide/index.d.ts +1 -1
  97. package/dist/components/setup-guide/index.d.ts.map +1 -1
  98. package/dist/components/setup-guide/index.js +1 -1
  99. package/dist/components/setup-guide/index.js.map +1 -1
  100. package/dist/components/setup-guide/setup-guide.d.ts +41 -16
  101. package/dist/components/setup-guide/setup-guide.d.ts.map +1 -1
  102. package/dist/components/setup-guide/setup-guide.js +53 -30
  103. package/dist/components/setup-guide/setup-guide.js.map +1 -1
  104. package/dist/components/sidebar/sidebar.d.ts +12 -5
  105. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  106. package/dist/components/sidebar/sidebar.js +127 -16
  107. package/dist/components/sidebar/sidebar.js.map +1 -1
  108. package/dist/components/stat-card/stat-card.d.ts +18 -11
  109. package/dist/components/stat-card/stat-card.d.ts.map +1 -1
  110. package/dist/components/stat-card/stat-card.js +18 -12
  111. package/dist/components/stat-card/stat-card.js.map +1 -1
  112. package/dist/components/sunburst-chart/index.d.ts +1 -0
  113. package/dist/components/sunburst-chart/index.d.ts.map +1 -1
  114. package/dist/components/sunburst-chart/index.js +1 -0
  115. package/dist/components/sunburst-chart/index.js.map +1 -1
  116. package/dist/components/sunburst-chart/sunburst-chart.d.ts +7 -5
  117. package/dist/components/sunburst-chart/sunburst-chart.d.ts.map +1 -1
  118. package/dist/components/sunburst-chart/sunburst-chart.js +7 -5
  119. package/dist/components/sunburst-chart/sunburst-chart.js.map +1 -1
  120. package/dist/components/value-flash/index.d.ts +1 -1
  121. package/dist/components/value-flash/index.d.ts.map +1 -1
  122. package/dist/components/value-flash/index.js +1 -1
  123. package/dist/components/value-flash/index.js.map +1 -1
  124. package/dist/components/value-flash/value-flash.d.ts +52 -0
  125. package/dist/components/value-flash/value-flash.d.ts.map +1 -1
  126. package/dist/components/value-flash/value-flash.js +37 -1
  127. package/dist/components/value-flash/value-flash.js.map +1 -1
  128. package/dist/icons/index.d.ts +6 -0
  129. package/dist/icons/index.js +6 -0
  130. package/dist/icons/ui/arrow-door-out-3.d.ts +3 -0
  131. package/dist/icons/ui/arrow-door-out-3.js +5 -0
  132. package/dist/icons/ui/circle-check-outline-duo.d.ts +3 -0
  133. package/dist/icons/ui/circle-check-outline-duo.d.ts.map +1 -0
  134. package/dist/icons/ui/circle-check-outline-duo.js +5 -0
  135. package/dist/icons/ui/circle-check-outline-duo.js.map +1 -0
  136. package/dist/icons/ui/circle-dashed-outline-duo.d.ts +3 -0
  137. package/dist/icons/ui/circle-dashed-outline-duo.d.ts.map +1 -0
  138. package/dist/icons/ui/circle-dashed-outline-duo.js +5 -0
  139. package/dist/icons/ui/circle-dashed-outline-duo.js.map +1 -0
  140. package/dist/icons/ui/circle-warning-outline-duo.d.ts +3 -0
  141. package/dist/icons/ui/circle-warning-outline-duo.d.ts.map +1 -0
  142. package/dist/icons/ui/circle-warning-outline-duo.js +5 -0
  143. package/dist/icons/ui/circle-warning-outline-duo.js.map +1 -0
  144. package/dist/icons/ui/circle-xmark-outline-duo.d.ts +3 -0
  145. package/dist/icons/ui/circle-xmark-outline-duo.d.ts.map +1 -0
  146. package/dist/icons/ui/circle-xmark-outline-duo.js +5 -0
  147. package/dist/icons/ui/circle-xmark-outline-duo.js.map +1 -0
  148. package/dist/icons/ui/clock-outline-duo.d.ts +3 -0
  149. package/dist/icons/ui/clock-outline-duo.d.ts.map +1 -0
  150. package/dist/icons/ui/clock-outline-duo.js +5 -0
  151. package/dist/icons/ui/clock-outline-duo.js.map +1 -0
  152. package/dist/lib/cn-tables.js +5 -5
  153. package/dist/lib/cn-tables.js.map +1 -1
  154. package/dist/lib/locale-messages.d.ts +6 -3
  155. package/dist/lib/locale-messages.d.ts.map +1 -1
  156. package/dist/lib/locale-messages.js +6 -3
  157. package/dist/lib/locale-messages.js.map +1 -1
  158. package/dist/locales/ar.d.ts.map +1 -1
  159. package/dist/locales/ar.js +1 -0
  160. package/dist/locales/ar.js.map +1 -1
  161. package/dist/locales/de.d.ts.map +1 -1
  162. package/dist/locales/de.js +1 -0
  163. package/dist/locales/de.js.map +1 -1
  164. package/dist/locales/es.d.ts.map +1 -1
  165. package/dist/locales/es.js +1 -0
  166. package/dist/locales/es.js.map +1 -1
  167. package/dist/locales/fr.d.ts.map +1 -1
  168. package/dist/locales/fr.js +1 -0
  169. package/dist/locales/fr.js.map +1 -1
  170. package/dist/locales/he.d.ts.map +1 -1
  171. package/dist/locales/he.js +1 -0
  172. package/dist/locales/he.js.map +1 -1
  173. package/dist/locales/hi.d.ts.map +1 -1
  174. package/dist/locales/hi.js +1 -0
  175. package/dist/locales/hi.js.map +1 -1
  176. package/dist/locales/ja.d.ts.map +1 -1
  177. package/dist/locales/ja.js +1 -0
  178. package/dist/locales/ja.js.map +1 -1
  179. package/dist/locales/pt-BR.d.ts.map +1 -1
  180. package/dist/locales/pt-BR.js +1 -0
  181. package/dist/locales/pt-BR.js.map +1 -1
  182. package/dist/locales/zh-CN.d.ts.map +1 -1
  183. package/dist/locales/zh-CN.js +1 -0
  184. package/dist/locales/zh-CN.js.map +1 -1
  185. package/dist/primitives/charts/bar.d.ts +11 -0
  186. package/dist/primitives/charts/bar.d.ts.map +1 -1
  187. package/dist/primitives/charts/bar.js +65 -11
  188. package/dist/primitives/charts/bar.js.map +1 -1
  189. package/dist/primitives/charts/funnel-chart.d.ts +22 -3
  190. package/dist/primitives/charts/funnel-chart.d.ts.map +1 -1
  191. package/dist/primitives/charts/funnel-chart.js +122 -110
  192. package/dist/primitives/charts/funnel-chart.js.map +1 -1
  193. package/dist/primitives/charts/gauge.d.ts +7 -0
  194. package/dist/primitives/charts/gauge.d.ts.map +1 -1
  195. package/dist/primitives/charts/gauge.js +37 -9
  196. package/dist/primitives/charts/gauge.js.map +1 -1
  197. package/dist/primitives/charts/index.d.ts +1 -0
  198. package/dist/primitives/charts/index.d.ts.map +1 -1
  199. package/dist/primitives/charts/index.js +1 -0
  200. package/dist/primitives/charts/index.js.map +1 -1
  201. package/dist/primitives/charts/legend/legend-marker.d.ts +7 -2
  202. package/dist/primitives/charts/legend/legend-marker.d.ts.map +1 -1
  203. package/dist/primitives/charts/legend/legend-marker.js +9 -3
  204. package/dist/primitives/charts/legend/legend-marker.js.map +1 -1
  205. package/dist/primitives/charts/legend/legend-progress.d.ts +6 -1
  206. package/dist/primitives/charts/legend/legend-progress.d.ts.map +1 -1
  207. package/dist/primitives/charts/legend/legend-progress.js +7 -2
  208. package/dist/primitives/charts/legend/legend-progress.js.map +1 -1
  209. package/dist/primitives/charts/loading-sweep.d.ts.map +1 -1
  210. package/dist/primitives/charts/loading-sweep.js +11 -2
  211. package/dist/primitives/charts/loading-sweep.js.map +1 -1
  212. package/dist/primitives/charts/pie-slice.d.ts +6 -1
  213. package/dist/primitives/charts/pie-slice.d.ts.map +1 -1
  214. package/dist/primitives/charts/pie-slice.js +26 -16
  215. package/dist/primitives/charts/pie-slice.js.map +1 -1
  216. package/dist/primitives/charts/ring.d.ts +12 -3
  217. package/dist/primitives/charts/ring.d.ts.map +1 -1
  218. package/dist/primitives/charts/ring.js +46 -9
  219. package/dist/primitives/charts/ring.js.map +1 -1
  220. package/dist/primitives/charts/sankey/sankey-link.d.ts +14 -5
  221. package/dist/primitives/charts/sankey/sankey-link.d.ts.map +1 -1
  222. package/dist/primitives/charts/sankey/sankey-link.js +34 -10
  223. package/dist/primitives/charts/sankey/sankey-link.js.map +1 -1
  224. package/dist/primitives/charts/sankey/sankey-node.d.ts +8 -2
  225. package/dist/primitives/charts/sankey/sankey-node.d.ts.map +1 -1
  226. package/dist/primitives/charts/sankey/sankey-node.js +13 -7
  227. package/dist/primitives/charts/sankey/sankey-node.js.map +1 -1
  228. package/dist/primitives/charts/scatter-chart.d.ts.map +1 -1
  229. package/dist/primitives/charts/scatter-chart.js +22 -8
  230. package/dist/primitives/charts/scatter-chart.js.map +1 -1
  231. package/dist/primitives/charts/scatter.d.ts +8 -3
  232. package/dist/primitives/charts/scatter.d.ts.map +1 -1
  233. package/dist/primitives/charts/scatter.js +9 -4
  234. package/dist/primitives/charts/scatter.js.map +1 -1
  235. package/dist/primitives/charts/series-bar.d.ts +5 -1
  236. package/dist/primitives/charts/series-bar.d.ts.map +1 -1
  237. package/dist/primitives/charts/series-bar.js +30 -11
  238. package/dist/primitives/charts/series-bar.js.map +1 -1
  239. package/dist/primitives/charts/series-markers.d.ts +6 -1
  240. package/dist/primitives/charts/series-markers.d.ts.map +1 -1
  241. package/dist/primitives/charts/series-markers.js +19 -8
  242. package/dist/primitives/charts/series-markers.js.map +1 -1
  243. package/dist/primitives/charts/sunburst-center.d.ts +10 -3
  244. package/dist/primitives/charts/sunburst-center.d.ts.map +1 -1
  245. package/dist/primitives/charts/sunburst-center.js +20 -12
  246. package/dist/primitives/charts/sunburst-center.js.map +1 -1
  247. package/dist/primitives/charts/sunburst-chart.d.ts +1 -1
  248. package/dist/primitives/charts/sunburst-chart.d.ts.map +1 -1
  249. package/dist/primitives/charts/sunburst-chart.js +27 -7
  250. package/dist/primitives/charts/sunburst-chart.js.map +1 -1
  251. package/dist/primitives/charts/sunburst-context.d.ts +2 -0
  252. package/dist/primitives/charts/sunburst-context.d.ts.map +1 -1
  253. package/dist/primitives/charts/sunburst-context.js +2 -0
  254. package/dist/primitives/charts/sunburst-context.js.map +1 -1
  255. package/dist/primitives/charts/sunburst-labels.d.ts.map +1 -1
  256. package/dist/primitives/charts/sunburst-labels.js +2 -2
  257. package/dist/primitives/charts/sunburst-labels.js.map +1 -1
  258. package/dist/primitives/charts/sunburst-legend.d.ts +19 -0
  259. package/dist/primitives/charts/sunburst-legend.d.ts.map +1 -0
  260. package/dist/primitives/charts/sunburst-legend.js +52 -0
  261. package/dist/primitives/charts/sunburst-legend.js.map +1 -0
  262. package/dist/primitives/charts/sunburst-segment.d.ts +7 -1
  263. package/dist/primitives/charts/sunburst-segment.d.ts.map +1 -1
  264. package/dist/primitives/charts/sunburst-segment.js +35 -10
  265. package/dist/primitives/charts/sunburst-segment.js.map +1 -1
  266. package/dist/primitives/charts/sunburst.d.ts +7 -5
  267. package/dist/primitives/charts/sunburst.d.ts.map +1 -1
  268. package/dist/primitives/charts/sunburst.js +24 -25
  269. package/dist/primitives/charts/sunburst.js.map +1 -1
  270. package/dist/primitives/ui/button.d.ts.map +1 -1
  271. package/dist/primitives/ui/button.js +3 -1
  272. package/dist/primitives/ui/button.js.map +1 -1
  273. package/dist/primitives/ui/sidebar.d.ts.map +1 -1
  274. package/dist/primitives/ui/sidebar.js +4 -2
  275. package/dist/primitives/ui/sidebar.js.map +1 -1
  276. package/dist/styles/theme.css +4 -0
  277. package/dist/styles/tokens.css +3 -1
  278. package/dist/styles/tokens.test.tsx +5 -2
  279. package/eslint/restricted-classes.js +46 -5
  280. package/package.json +1 -2
  281. package/dist/icons/ui/refresh-clockwise.d.ts.map +0 -1
  282. package/dist/icons/ui/refresh-clockwise.js.map +0 -1
@@ -3,7 +3,7 @@
3
3
  One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line
4
4
  each, with an ellipsis) and a trailing part. `layout` is `row` (order lines, settings rows, sessions, saved
5
5
  payment methods inside a panel; a divider under every row but the last), `card` (side-by-side portal cards, 12
6
- apart) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with
6
+ apart), `tile` (a bordered row tile: add-ons with a quantity, or with `href` / `render` a link with a chevron for a settings index) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with
7
7
  `render={<li />}`, a link with `render={<a href="…" />}`); the add tile renders a `<button>`. It has no hover or
8
8
  selected state: for a choice, use a Radio card.
9
9
 
@@ -16,7 +16,7 @@ import { ListItem, ListItemPrice, ListItemThumbnail } from "@dodopayments/ui/lis
16
16
  One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line
17
17
  each, with an ellipsis) and a trailing part. `layout` is `row` (order lines, settings rows, sessions, saved
18
18
  payment methods inside a panel; a divider under every row but the last), `card` (side-by-side portal cards, 12
19
- apart) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with
19
+ apart), `tile` (a bordered row tile: add-ons with a quantity, or with `href` / `render` a link with a chevron for a settings index) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with
20
20
  `render={<li />}`, a link with `render={<a href="…" />}`); the add tile renders a `<button>`. It has no hover or
21
21
  selected state: for a choice, use a Radio card.
22
22
 
@@ -25,8 +25,10 @@ selected state: for a choice, use a Radio card.
25
25
  | `title` (required) | `ReactNode` | - | The title, one line with an ellipsis (Labels/Primary). With `layout="add"`, the tile's label. |
26
26
  | `corner` | `ReactNode` | - | Card only: a `Badge` or a small `Button` at the top right, opposite the leading part. |
27
27
  | `description` | `ReactNode` | - | One line under the title with an ellipsis (Body/Secondary, Content/Secondary). |
28
+ | `disabled` | `boolean` | `false` | Tile only: drop the link and the chevron and render a plain `<div>` tile, e.g. for a page that is not available yet. Say why in the description. |
28
29
  | `divider` | `boolean` | `true` | Row only: the 1px Border/Primary line under the row. It is always hidden on the last row of its list. |
29
- | `layout` | `"row" \| "card" \| "add"` | `"row"` | `row`: One line of a list inside a panel or order card: leading · title and description · trailing, padding 12 top and bottom, a divider under it (off on the last row, also when the row sits inside the last `<li>`, e.g. a link row).<br>`card`: A small card for side-by-side portal cards (add-on, saved payment method, offer): leading and corner on top, the text, then the trailing part spread across the bottom.<br>`add`: A dashed “Add …” tile next to cards: a plus icon over the label, the whole tile a button. |
30
+ | `href` | `string` | - | Tile only: where the tile links to; renders an `<a href>` and adds the chevron. Pass `render` instead for a router link (on a tile, `render` is always the link). |
31
+ | `layout` | `"row" \| "card" \| "tile" \| "add"` | `"row"` | `row`: One line of a list inside a panel or order card: leading · title and description · trailing, padding 12 top and bottom, a divider under it (off on the last row, also when the row sits inside the last `<li>`, e.g. a link row).<br>`card`: A small card for side-by-side portal cards (add-on, saved payment method, offer): leading and corner on top, the text, then the trailing part spread across the bottom.<br>`tile`: A bordered tile laid out as a row: leading · title and description · trailing (add-ons with a quantity). With `href` or `render` the whole tile is one link and ends with a chevron (a settings index); with `disabled` it stays a plain tile.<br>`add`: A dashed “Add …” tile next to cards: a plus icon over the label, the whole tile a button. |
30
32
  | `leading` | `ReactNode` | - | The leading part: a `ListItemThumbnail`, a `FeaturedIcon`, an `Avatar` or a payment logo. In a card it sits top left. |
31
33
  | `trailing` | `ReactNode` | - | The trailing part: a `ListItemPrice`, a quantity stepper, a `Badge`, a `Button` or a chevron, 8 apart. In a card it spreads across the bottom (e.g. the price and an Add button). |
32
34
 
@@ -58,17 +60,68 @@ a Border/Primary line, a box glyph when there is no image, and an optional quant
58
60
 
59
61
  ## Examples
60
62
 
63
+ ### list-item/add-ons
64
+
65
+ ```tsx
66
+ "use client";
67
+
68
+ import { Avatar, AvatarImage } from "@dodopayments/ui/avatar";
69
+ import { ListItem } from "@dodopayments/ui/list-item";
70
+
71
+ const ADD_ONS = [
72
+ {
73
+ id: "seats",
74
+ title: "Extra seats",
75
+ description: "Five more teammates on the plan.",
76
+ quantity: 2,
77
+ },
78
+ { id: "support", title: "Priority support", description: "Replies within 4 hours.", quantity: 1 },
79
+ { id: "storage", title: "Storage pack", description: "100 GB for file uploads.", quantity: 3 },
80
+ ] as const;
81
+
82
+ /** The add-ons of a subscription: static tiles with an image and the quantity on the trailing side. */
83
+ export default function ListItemAddOns() {
84
+ return (
85
+ <ul className="grid w-full max-w-3xl grid-cols-1 gap-3 sm:grid-cols-3">
86
+ {ADD_ONS.map((addOn) => (
87
+ // On a tile `render` is the link, so the list item wraps it.
88
+ <li key={addOn.id} className="flex">
89
+ <ListItem
90
+ className="flex-1"
91
+ layout="tile"
92
+ leading={
93
+ <Avatar size="md">
94
+ <AvatarImage src="/samples/product-hero-image.svg" alt="" />
95
+ </Avatar>
96
+ }
97
+ title={addOn.title}
98
+ description={addOn.description}
99
+ trailing={
100
+ <span className="text-body-secondary text-muted-foreground">
101
+ Qty: {addOn.quantity}
102
+ </span>
103
+ }
104
+ />
105
+ </li>
106
+ ))}
107
+ </ul>
108
+ );
109
+ }
110
+ ```
111
+
61
112
  ### list-item/add-tile
62
113
 
63
114
  ```tsx
64
115
  "use client";
65
116
 
66
117
  import { Badge } from "@dodopayments/ui/badge";
118
+ import { Button } from "@dodopayments/ui/button";
119
+ import { XmarkIcon } from "@dodopayments/ui/icons";
67
120
  import { ListItem } from "@dodopayments/ui/list-item";
68
121
  import { PaymentLogo } from "@dodopayments/ui/payment-logos";
69
122
  import { useState } from "react";
70
123
 
71
- /** Saved cards next to the dashed add tile; the tile is a button. */
124
+ /** Saved cards next to the dashed add tile; the tile is a button and every card but the default can be removed. */
72
125
  export default function ListItemAddTile() {
73
126
  const [cards, setCards] = useState(["4242"]);
74
127
  return (
@@ -78,7 +131,20 @@ export default function ListItemAddTile() {
78
131
  key={last4}
79
132
  layout="card"
80
133
  leading={<PaymentLogo brand="visa" />}
81
- corner={index === 0 ? <Badge>Default</Badge> : undefined}
134
+ corner={
135
+ index === 0 ? (
136
+ <Badge>Default</Badge>
137
+ ) : (
138
+ <Button
139
+ variant="ghost"
140
+ size="icon-xs"
141
+ aria-label={`Remove Visa card ending ${last4}`}
142
+ onClick={() => setCards((list) => list.filter((card) => card !== last4))}
143
+ >
144
+ <XmarkIcon />
145
+ </Button>
146
+ )
147
+ }
82
148
  title={`Visa •••• ${last4}`}
83
149
  description="Expires 04/28"
84
150
  />
@@ -100,7 +166,7 @@ export default function ListItemAddTile() {
100
166
 
101
167
  import { Button } from "@dodopayments/ui/button";
102
168
  import { FeaturedIcon } from "@dodopayments/ui/featured-icon";
103
- import { BoxIcon } from "@dodopayments/ui/icons";
169
+ import { BoxIcon, GreekTempleIcon } from "@dodopayments/ui/icons";
104
170
  import { ListItem, ListItemPrice, ListItemThumbnail } from "@dodopayments/ui/list-item";
105
171
 
106
172
  export default function ListItemMaster() {
@@ -129,6 +195,13 @@ export default function ListItemMaster() {
129
195
  />
130
196
  <ListItem layout="add" title="Add payment method" />
131
197
  </div>
198
+ <ListItem
199
+ layout="tile"
200
+ href="/settings/payouts"
201
+ leading={<FeaturedIcon tone="info" icon={<GreekTempleIcon />} />}
202
+ title="Payouts"
203
+ description="Bank accounts, payout schedule and minimum payout."
204
+ />
132
205
  </div>
133
206
  );
134
207
  }
@@ -171,3 +244,70 @@ export default function ListItemOrderLines() {
171
244
  }
172
245
  ```
173
246
 
247
+ ### list-item/settings-index
248
+
249
+ ```tsx
250
+ "use client";
251
+
252
+ import { FeaturedIcon } from "@dodopayments/ui/featured-icon";
253
+ import {
254
+ BellIcon,
255
+ GreekTempleIcon,
256
+ HouseIcon,
257
+ KeyIcon,
258
+ ReceiptIcon,
259
+ UsersIcon,
260
+ } from "@dodopayments/ui/icons";
261
+ import { ListItem } from "@dodopayments/ui/list-item";
262
+
263
+ /** A settings index: tiles that link, with an info-tone icon; a page that is not available yet is a plain tile. */
264
+ export default function ListItemSettingsIndex() {
265
+ return (
266
+ <div className="grid w-full max-w-3xl grid-cols-1 gap-3 sm:grid-cols-2">
267
+ <ListItem
268
+ layout="tile"
269
+ href="#business"
270
+ leading={<FeaturedIcon tone="info" icon={<HouseIcon />} />}
271
+ title="Business profile"
272
+ description="Legal name, address and support email."
273
+ />
274
+ <ListItem
275
+ layout="tile"
276
+ href="#payouts"
277
+ leading={<FeaturedIcon tone="info" icon={<GreekTempleIcon />} />}
278
+ title="Payouts"
279
+ description="Bank accounts, payout schedule and minimum payout."
280
+ />
281
+ <ListItem
282
+ layout="tile"
283
+ href="#team"
284
+ leading={<FeaturedIcon tone="info" icon={<UsersIcon />} />}
285
+ title="Team"
286
+ description="Invite teammates and choose what they can do."
287
+ />
288
+ <ListItem
289
+ layout="tile"
290
+ href="#notifications"
291
+ leading={<FeaturedIcon tone="info" icon={<BellIcon />} />}
292
+ title="Notifications"
293
+ description="Emails for payments, disputes and payouts."
294
+ />
295
+ <ListItem
296
+ layout="tile"
297
+ href="#developers"
298
+ leading={<FeaturedIcon tone="info" icon={<KeyIcon />} />}
299
+ title="API keys"
300
+ description="Keys and webhooks for your integration."
301
+ />
302
+ <ListItem
303
+ layout="tile"
304
+ disabled
305
+ leading={<FeaturedIcon tone="info" icon={<ReceiptIcon />} />}
306
+ title="Tax forms"
307
+ description="Available once your business is verified."
308
+ />
309
+ </div>
310
+ );
311
+ }
312
+ ```
313
+
@@ -56,6 +56,7 @@ fade. The hover index drives `PieCenter` and a linked `Legend`.
56
56
  | `hoverEffect` | `PieSliceHoverEffect` | - | Hover effect type. Default: "translate" - "translate": Slice moves outward along its radial axis - "grow": Slice extends its outer radius (gets longer) - "none": No hover animation |
57
57
  | `hoverOffset` | `number` | - | Distance in pixels for hover effect (translate distance or grow amount). Defaults to PieChart's hoverOffset |
58
58
  | `showGlow` | `boolean` | - | Show glow effect on hover. Default: true |
59
+ | `variant` | `"tint" \| "solid"` | - | `"tint"`: the bar charts' look, an opaque 20% wash of the colour (mixed into the card) with a solid 3px arc on the outer rim. `"solid"`: the full colour. A gradient or pattern `fill` stays solid. Default: "tint" |
59
60
 
60
61
  ## PieCenter
61
62
 
@@ -1,7 +1,8 @@
1
1
  # Quantity stepper
2
2
 
3
3
  A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).
4
- One size, 24 high like Button xs (28 below `sm`); the value hugs its digits, and at 0 it shows 0.
4
+ Two sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36, 40 below `sm`,
5
+ shorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.
5
6
  Built on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`
6
7
  "Number field") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to
7
8
  `min` / `max`, and the − / + buttons disable at the bounds. `onValueChange` reports `null` while the
@@ -18,7 +19,8 @@ import { QuantityStepper } from "@dodopayments/ui/quantity-stepper";
18
19
  ## QuantityStepper
19
20
 
20
21
  A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).
21
- One size, 24 high like Button xs (28 below `sm`); the value hugs its digits, and at 0 it shows 0.
22
+ Two sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36, 40 below `sm`,
23
+ shorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.
22
24
  Built on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`
23
25
  "Number field") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to
24
26
  `min` / `max`, and the − / + buttons disable at the bounds. `onValueChange` reports `null` while the
@@ -38,6 +40,7 @@ input shows instead, so typing and arrow-key steps never animate. The animated c
38
40
  | `incrementLabel` | `string` | `"Increase"` | Accessible name of the + button. |
39
41
  | `max` | `number` | - | Largest quantity; the + button is disabled at it. |
40
42
  | `min` | `number` | `0` | Smallest quantity; the − button is disabled at it. |
43
+ | `size` | `"default" \| "lg"` | `"default"` | `default`: 24 high (28 below `sm`), like Button xs: buttons 20 (24), value Labels/Secondary. Carts, line items, plan pickers.<br>`lg`: The height of Button lg (`--control-height-lg`: 36, 40 below `sm`, less in compact density), with Button icon (`--control-height-md`) − and + 2px inside, Button icon sizes and the value in Labels/Primary. Next to a lg button, such as Buy now on a Product card. |
41
44
  | `step` | `number` | `1` | Amount each − / + press or ArrowUp / ArrowDown adds or removes. |
42
45
 
43
46
  Also accepts Base UI props: `allowOutOfRange`, `allowWheelScrub`, `defaultValue`, `disabled`, `form`, `id`, `inputRef`, `largeStep`, `name`, `onValueChange`, `onValueCommitted`, `readOnly`, `required`, `value`.
@@ -139,6 +142,35 @@ export default function QuantityStepperForm() {
139
142
  }
140
143
  ```
141
144
 
145
+ ### quantity-stepper/large
146
+
147
+ ```tsx
148
+ "use client";
149
+
150
+ import { Button } from "@dodopayments/ui/button";
151
+ import { QuantityStepper } from "@dodopayments/ui/quantity-stepper";
152
+ import { useState } from "react";
153
+
154
+ export default function QuantityStepperLarge() {
155
+ const [quantity, setQuantity] = useState<number | null>(1);
156
+ return (
157
+ <div className="flex w-full max-w-72 items-center gap-2">
158
+ <QuantityStepper
159
+ aria-label="Quantity"
160
+ size="lg"
161
+ value={quantity}
162
+ min={0}
163
+ max={10}
164
+ onValueChange={setQuantity}
165
+ />
166
+ <Button className="flex-1" disabled={quantity === null || quantity < 1}>
167
+ Buy now
168
+ </Button>
169
+ </div>
170
+ );
171
+ }
172
+ ```
173
+
142
174
  ### quantity-stepper/master
143
175
 
144
176
  ```tsx
@@ -35,7 +35,7 @@ Also accepts Base UI props: `defaultValue`, `disabled`, `form`, `inputRef`, `nam
35
35
  One option in a `RadioGroup`, identified by `value`. Renders the `Radio` primitive: a `<span role="radio">` plus a
36
36
  hidden `<input>`. On its own it is the bare radio: label it by wrapping it and its text in a `<label>`. With `label`
37
37
  (and `description`) it renders the whole option, a `<label>` with the text beside the radio, and
38
- `variant="card"` makes that a card with the radio at the top right. It presses in while held; an option that is
38
+ `variant="card"` makes that a card with the radio before the title. It presses in while held; an option that is
39
39
  selected when it mounts does not animate.
40
40
 
41
41
  | Prop | Type | Default | Description |
@@ -48,7 +48,7 @@ selected when it mounts does not animate.
48
48
  | `logo` | `ReactNode` | - | Card only: a logo before the text, e.g. a `PaymentLogo` for a payment method. Decorative: the label names the option. |
49
49
  | `note` | `ReactNode` | - | Card only: a fee or discount line under the description (Body/Secondary, Content/Primary), e.g. "+2% fee". |
50
50
  | `size` | `"default" \| "lg"` | `"default"` | `default`: 18px circle (16px from `sm`), the default.<br>`lg`: 20px circle with an 8px dot for prominent choices such as plans or payout methods. |
51
- | `variant` | `"default" \| "card"` | `"default"` | `default`: A 16px radio, with an optional label and description beside it. For lists of options.<br>`card`: A card with a title, a description and a 12px radio at the top right. Needs a `label`. For choices that each need a short explanation, such as pricing type. |
51
+ | `variant` | `"default" \| "card"` | `"default"` | `default`: A 16px radio, with an optional label and description beside it. For lists of options.<br>`card`: A card with a 12px radio before its title and a description. Needs a `label`. For choices that each need a short explanation, such as pricing type. |
52
52
 
53
53
  Also accepts Base UI props: `value`, `disabled`, `inputRef`, `nativeButton`, `readOnly`, `render`, `required`.
54
54
 
@@ -2,20 +2,22 @@
2
2
 
3
3
  How many customers of each monthly cohort are still active in the months after they joined, drawn the way the
4
4
  Heatmap chart draws its cells. One row per cohort (cohort, size, Month 0 to Month 6); each cell writes its
5
- retention % and is shaded on one of five lime levels (`--chart-scale-01..05`). Hovering a cell fades the others
5
+ retention % and is shaded on one of four lime levels (`--chart-scale-02..05`), split across the matrix's own values
6
+ like the heatmap's (see {@link retentionThresholds}); only 0% is grey and 100% (Month 0) is the darkest lime. Hovering a cell fades the others
6
7
  and shows the cohort, the month and how many customers that is. Months a cohort has not reached are blank.
7
8
  The matrix keeps a 560px minimum width and scrolls sideways in a narrower parent. Put it in a `Card` titled
8
9
  "User retention".
9
10
 
10
11
  ```tsx
11
- import { RetentionMatrix, retentionLevel } from "@dodopayments/ui/retention-matrix";
12
+ import { RetentionMatrix, retentionLevel, retentionThresholds } from "@dodopayments/ui/retention-matrix";
12
13
  ```
13
14
 
14
15
  ## RetentionMatrix
15
16
 
16
17
  How many customers of each monthly cohort are still active in the months after they joined, drawn the way the
17
18
  Heatmap chart draws its cells. One row per cohort (cohort, size, Month 0 to Month 6); each cell writes its
18
- retention % and is shaded on one of five lime levels (`--chart-scale-01..05`). Hovering a cell fades the others
19
+ retention % and is shaded on one of four lime levels (`--chart-scale-02..05`), split across the matrix's own values
20
+ like the heatmap's (see {@link retentionThresholds}); only 0% is grey and 100% (Month 0) is the darkest lime. Hovering a cell fades the others
19
21
  and shows the cohort, the month and how many customers that is. Months a cohort has not reached are blank.
20
22
  The matrix keeps a 560px minimum width and scrolls sideways in a narrower parent. Put it in a `Card` titled
21
23
  "User retention".
@@ -32,11 +34,24 @@ The matrix keeps a 560px minimum width and scrolls sideways in a narrower parent
32
34
 
33
35
  ## retentionLevel
34
36
 
35
- The level (0 to 4) of a retention percentage, as the legend bins it.
37
+ The level of a retention percentage: 0 (grey) for 0%, otherwise 1 to 4 (lightest to darkest lime) by how many of the
38
+ `thresholds` it reaches. Without `thresholds` it uses fixed quarters (below 25%, 25–49%, 50–74%, 75% and more).
36
39
 
37
40
  | Call | Description |
38
41
  | --- | --- |
39
- | `retentionLevel(percent: number): "0" \| "1" \| "2" \| "3" \| "4"` | The level (0 to 4) of a retention percentage, as the legend bins it. |
42
+ | `retentionLevel(percent: number, thresholds?: RetentionThresholds): "0" \| "1" \| "2" \| "3" \| "4"` | The level of a retention percentage: 0 (grey) for 0%, otherwise 1 to 4 (lightest to darkest lime) by how many of the `thresholds` it reaches. Without `thresholds` it uses fixed quarters (below 25%, 25–49%, 50–74%, 75% and more). |
43
+
44
+ ## retentionThresholds
45
+
46
+ Splits the distinct retention values above 0% of Month 1 onward into four groups, one per lime level, as the
47
+ Heatmap chart spreads its counts over its lime levels, so every shade is used and close values still differ. The
48
+ cut points are always distinct, so repeated values never collapse two levels. Month 0
49
+ is left out (it is always 100%, the darkest level, and would push the cut points up). With fewer than four distinct values it falls back to fixed quarters
50
+ (25, 50, 75%).
51
+
52
+ | Call | Description |
53
+ | --- | --- |
54
+ | `retentionThresholds(cohorts: readonly RetentionCohort[]): RetentionThresholds` | Splits the distinct retention values above 0% of Month 1 onward into four groups, one per lime level, as the Heatmap chart spreads its counts over its lime levels, so every shade is used and close values still differ. The cut points are always distinct, so repeated values never collapse two levels. Month 0 is left out (it is always 100%, the darkest level, and would push the cut points up). With fewer than four distinct values it falls back to fixed quarters (25, 50, 75%). |
40
55
 
41
56
  ## Examples
42
57
 
@@ -42,7 +42,9 @@ loads. Without `size` the chart is a square as wide as its container. Link a `Le
42
42
 
43
43
  ## Ring
44
44
 
45
- One ring of a `RingChart`: a `--border` track and a progress arc for the data row at `index`. The
45
+ One ring of a `RingChart`: a grey track and a progress arc for the data row at `index` (by default a light `--muted`
46
+ track and a 25% wash of the ring's colour with a solid end cap; `variant="solid"` for a `--border` track and a solid
47
+ arc). The
46
48
  track scales in, then the arc fills. On hover the ring grows a little, the outer rings move out and
47
49
  the other rings fade; the hover index drives `RingCenter` and a linked `Legend`.
48
50
 
@@ -51,8 +53,9 @@ the other rings fade; the hover index drives `RingCenter` and a linked `Legend`.
51
53
  | `index` (required) | `number` | - | Index of the ring in the `RingChart` data, 0 = innermost. |
52
54
  | `animate` | `boolean` | - | Animate the ring on mount. Default: true |
53
55
  | `color` | `string` | - | Color override. Falls back to the row's `color`, then to `--chart-1..5`. |
54
- | `lineCap` | `RingLineCap` | - | End cap of the progress arc. Default: "round" |
56
+ | `lineCap` | `RingLineCap` | - | End cap of the progress arc (`variant="solid"`). Default: "round" |
55
57
  | `showGlow` | `boolean` | - | Show a glow in the ring color on hover. Default: true |
58
+ | `variant` | `"tint" \| "solid"` | - | `"tint"`: the toned-down look of the other charts, a light grey `--muted` track for what is not covered yet, the progress as a 25% wash of the ring's colour (mixed into the card) and a solid 3px cap where it ends. `"solid"`: a `--border` track and a solid arc. Default: "tint" |
56
59
 
57
60
  ## RingCenter
58
61
 
@@ -221,11 +224,11 @@ export default function RingChartLegend() {
221
224
  className="w-full max-w-64"
222
225
  >
223
226
  <LegendItem className="grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-1">
224
- <LegendMarker />
227
+ <LegendMarker variant="bar" />
225
228
  <LegendLabel />
226
229
  <LegendValue formatValue={(value) => usd.format(value)} showPercentage />
227
230
  <div className="col-span-full">
228
- <LegendProgress />
231
+ <LegendProgress variant="tint" />
229
232
  </div>
230
233
  </LegendItem>
231
234
  </Legend>
@@ -5,7 +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`. The chart is as wide as its container; height comes from `aspectRatio`
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`
9
12
  (default `"2 / 1"`). The default `margin` keeps 180px on each side for node labels.
10
13
 
11
14
  ```tsx
@@ -19,7 +22,10 @@ band as wide as its value. Use it to show where an amount goes, e.g. gross volum
19
22
  refunds and payouts. Compose it from children: `SankeyLink` (the bands), `SankeyNode` (the bars
20
23
  and their labels) and `SankeyTooltip`. `data` is `{ nodes, links }`: each node has a `name`, each
21
24
  link a `source` and `target` node index and a `value`. Nodes and bands grow in on mount over
22
- `animationDuration`. The chart is as wide as its container; height comes from `aspectRatio`
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`
23
29
  (default `"2 / 1"`). The default `margin` keeps 180px on each side for node labels.
24
30
 
25
31
  | Prop | Type | Default | Description |
@@ -39,9 +45,10 @@ link a `source` and `target` node index and a `value`. Nodes and bands grow in o
39
45
 
40
46
  ## SankeyLink
41
47
 
42
- The flow bands of a Sankey diagram, one per link, drawn from left to right on mount. Each band is
43
- a gradient from its source colour to its target colour by default. Hovering a band highlights it
44
- and feeds `SankeyTooltip`.
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
51
+ `SankeyTooltip`.
45
52
 
46
53
  | Prop | Type | Default | Description |
47
54
  | --- | --- | --- | --- |
@@ -51,13 +58,15 @@ and feeds `SankeyTooltip`.
51
58
  | `getNodeColor` | `((node: SankeyNode<SankeyNodeDatum, SankeyLinkDatum>, index: number) => string)` | - | Custom function to get node color (for gradient) |
52
59
  | `patterns` | `ReactNode` | - | Pattern definitions to render in defs. Use |
53
60
  | `stroke` | `string` | - | Stroke color for links (overrides gradient). Default: uses gradient |
54
- | `strokeOpacity` | `number` | - | Stroke opacity. Default: 0.5 |
61
+ | `strokeOpacity` | `number` | - | Stroke opacity of the `"solid"` look. Default: 0.5 |
55
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" |
56
64
 
57
65
  ## SankeyNode
58
66
 
59
67
  The node bars of a Sankey diagram, with a name and a value label beside each. Nodes on the left
60
- half label to their left, the others to their right. Hovering a node highlights its links and
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
61
70
  feeds `SankeyTooltip`.
62
71
 
63
72
  | Prop | Type | Default | Description |
@@ -70,6 +79,7 @@ feeds `SankeyTooltip`.
70
79
  | `lineCap` | `number` | - | Corner radius for nodes. Default: 4 |
71
80
  | `showLabels` | `boolean` | - | Show node labels. Default: true |
72
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" |
73
83
 
74
84
  ## SankeyTooltip
75
85
 
@@ -137,7 +147,7 @@ export default function SankeyChartCheckout() {
137
147
  aspectRatio="16 / 9"
138
148
  margin={{ top: 16, right: 96, bottom: 16, left: 96 }}
139
149
  >
140
- <SankeyLink stroke="var(--chart-1)" strokeOpacity={0.35} />
150
+ <SankeyLink stroke="var(--chart-1)" />
141
151
  <SankeyNode fill="var(--chart-1)" />
142
152
  <SankeyTooltip nodeValueLabel="Sessions" linkValueLabel="Sessions" />
143
153
  </SankeyChart>
@@ -38,8 +38,8 @@ height class.
38
38
 
39
39
  ## Scatter
40
40
 
41
- One series of dots inside a `ScatterChart`, read from `dataKey` on each row. Each dot is an inner
42
- fill plus an outer ring (`ringGap`, `strokeWidth`). Series colours default to `--chart-1` ..
41
+ One series of dots inside a `ScatterChart`, read from `dataKey` on each row. Each dot is an opaque wash of its colour
42
+ inside a solid ring (`variant="tint"`), or an inner fill plus an outer ring (`variant="ring"`, `ringGap`, `strokeWidth`). Series colours default to `--chart-1` ..
43
43
  `--chart-5` in child order. While the crosshair is active, the other dots fade and blur
44
44
  (`fadeOnHover`). `yGradient` colours each dot by its height, from `--chart-negative` to `--chart-positive`.
45
45
 
@@ -60,6 +60,8 @@ fill plus an outer ring (`ringGap`, `strokeWidth`). Series colours default to `-
60
60
  | `showActiveHighlight` | `boolean` | - | Enlarge the active point while hovering. Default: true |
61
61
  | `stroke` | `string` | - | Outer ring stroke color. Default: same as `fill` |
62
62
  | `strokeWidth` | `number` | - | Outer ring stroke width in px. Default: 2. Set to 0 to disable. |
63
+ | `tint` | `boolean` | - | Paint each marker as an opaque wash of its colour (20%, mixed into the card) inside a solid ring, with no gap: the look of the tint bars. `fill` (or the series colour) is the colour; `stroke` overrides the ring. Default: false |
64
+ | `variant` | `"tint" \| "ring"` | - | `"tint"`: an opaque 20% wash of the colour inside a solid 1.5px ring, the look of the tint bars. `"ring"`: a solid dot with a gap and an outer ring. A dot with `strokeWidth={0}` stays solid. Default: "tint" |
63
65
  | `yAxisId` | `string \| number` | - | Y-scale group id (Recharts `yAxisId`). Default: `"left"`. |
64
66
  | `yGradient` | `boolean \| { from?: string \| undefined; to?: string \| undefined; }` | - | Color each dot by its vertical position using a chart-space linear gradient. Lower values use `from`; higher values use `to`. Default stops: red (bottom) → green (top). |
65
67
 
@@ -41,9 +41,7 @@ control on the trailing side, and optional content underneath. Ported from the d
41
41
 
42
42
  ## SettingsLinkCard
43
43
 
44
- A navigation tile for a settings index page, ported from the dashboard's settings cards: an icon
45
- tile, a title and a description with a trailing chevron, built on a `ListItem` row. Pass `href` for a plain
46
- link or `render={<Link href="/settings/payouts" />}` for a router link.
44
+ A navigation tile for a settings index page: an icon tile, a title and a description with a trailing chevron.
47
45
 
48
46
  | Prop | Type | Default | Description |
49
47
  | --- | --- | --- | --- |
@@ -121,62 +119,3 @@ export default function SettingsSectionBasic() {
121
119
  }
122
120
  ```
123
121
 
124
- ### settings-section/links
125
-
126
- ```tsx
127
- "use client";
128
-
129
- import {
130
- BellIcon,
131
- GreekTempleIcon,
132
- HouseIcon,
133
- KeyIcon,
134
- ReceiptIcon,
135
- UsersIcon,
136
- } from "@dodopayments/ui/icons";
137
- import { SettingsLinkCard } from "@dodopayments/ui/settings-section";
138
-
139
- export default function SettingsSectionLinks() {
140
- return (
141
- <div className="grid w-full max-w-3xl gap-3 sm:grid-cols-2">
142
- <SettingsLinkCard
143
- href="#business"
144
- icon={<HouseIcon />}
145
- title="Business profile"
146
- description="Legal name, address and support email."
147
- />
148
- <SettingsLinkCard
149
- href="#payouts"
150
- icon={<GreekTempleIcon />}
151
- title="Payouts"
152
- description="Bank accounts, payout schedule and minimum payout."
153
- />
154
- <SettingsLinkCard
155
- href="#team"
156
- icon={<UsersIcon />}
157
- title="Team"
158
- description="Invite teammates and choose what they can do."
159
- />
160
- <SettingsLinkCard
161
- href="#notifications"
162
- icon={<BellIcon />}
163
- title="Notifications"
164
- description="Emails for payments, disputes and payouts."
165
- />
166
- <SettingsLinkCard
167
- href="#developers"
168
- icon={<KeyIcon />}
169
- title="API keys"
170
- description="Keys and webhooks for your integration."
171
- />
172
- <SettingsLinkCard
173
- disabled
174
- icon={<ReceiptIcon />}
175
- title="Tax forms"
176
- description="Available once your business is verified."
177
- />
178
- </div>
179
- );
180
- }
181
- ```
182
-