@dodopayments/ui 1.4.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 (205) hide show
  1. package/ai/component-registry.json +209 -68
  2. package/ai/component-registry.md +1 -0
  3. package/ai/components/area-chart.md +4 -4
  4. package/ai/components/avatar.md +1 -1
  5. package/ai/components/bar-chart.md +18 -18
  6. package/ai/components/chart-tooltip.md +3 -3
  7. package/ai/components/chart.md +6 -6
  8. package/ai/components/checkout-page.md +1 -1
  9. package/ai/components/composed-chart.md +7 -7
  10. package/ai/components/copyable-id.md +1 -0
  11. package/ai/components/filter-grid.md +4 -7
  12. package/ai/components/funnel-chart.md +14 -12
  13. package/ai/components/gauge-chart.md +9 -11
  14. package/ai/components/line-chart.md +2 -2
  15. package/ai/components/money.md +3 -3
  16. package/ai/components/pie-chart.md +11 -2
  17. package/ai/components/reorder-list.md +1 -1
  18. package/ai/components/ring-chart.md +17 -8
  19. package/ai/components/sale-share-card.md +48 -0
  20. package/ai/components/sankey-chart.md +23 -23
  21. package/ai/components/stat-card.md +32 -5
  22. package/ai/components/sunburst-chart.md +7 -4
  23. package/ai/components/test-mode-banner.md +3 -3
  24. package/ai/skills/dodo-charts/SKILL.md +12 -7
  25. package/ai/skills/dodo-design/SKILL.md +2 -1
  26. package/dist/components/avatar/avatar.d.ts +9 -7
  27. package/dist/components/avatar/avatar.d.ts.map +1 -1
  28. package/dist/components/avatar/avatar.js +9 -7
  29. package/dist/components/avatar/avatar.js.map +1 -1
  30. package/dist/components/copyable-id/copyable-id.d.ts +7 -1
  31. package/dist/components/copyable-id/copyable-id.d.ts.map +1 -1
  32. package/dist/components/copyable-id/copyable-id.js +21 -3
  33. package/dist/components/copyable-id/copyable-id.js.map +1 -1
  34. package/dist/components/data-grid/bulk-actions.js +1 -1
  35. package/dist/components/data-grid/bulk-actions.js.map +1 -1
  36. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  37. package/dist/components/data-grid/data-grid.js +15 -3
  38. package/dist/components/data-grid/data-grid.js.map +1 -1
  39. package/dist/components/data-grid/table.d.ts.map +1 -1
  40. package/dist/components/data-grid/table.js +5 -0
  41. package/dist/components/data-grid/table.js.map +1 -1
  42. package/dist/components/filter-grid/filter-grid.d.ts +7 -2
  43. package/dist/components/filter-grid/filter-grid.d.ts.map +1 -1
  44. package/dist/components/filter-grid/filter-grid.js +3 -2
  45. package/dist/components/filter-grid/filter-grid.js.map +1 -1
  46. package/dist/components/funnel-chart/funnel-chart.d.ts +3 -2
  47. package/dist/components/funnel-chart/funnel-chart.d.ts.map +1 -1
  48. package/dist/components/funnel-chart/funnel-chart.js +3 -2
  49. package/dist/components/funnel-chart/funnel-chart.js.map +1 -1
  50. package/dist/components/gauge-chart/gauge-chart.d.ts +3 -4
  51. package/dist/components/gauge-chart/gauge-chart.d.ts.map +1 -1
  52. package/dist/components/gauge-chart/gauge-chart.js +3 -4
  53. package/dist/components/gauge-chart/gauge-chart.js.map +1 -1
  54. package/dist/components/live-activity/live-activity.d.ts.map +1 -1
  55. package/dist/components/live-activity/live-activity.js +8 -3
  56. package/dist/components/live-activity/live-activity.js.map +1 -1
  57. package/dist/components/page-header/page-header.d.ts.map +1 -1
  58. package/dist/components/page-header/page-header.js +3 -2
  59. package/dist/components/page-header/page-header.js.map +1 -1
  60. package/dist/components/payment-method-list/payment-method-list.d.ts.map +1 -1
  61. package/dist/components/payment-method-list/payment-method-list.js +4 -1
  62. package/dist/components/payment-method-list/payment-method-list.js.map +1 -1
  63. package/dist/components/sale-share-card/index.d.ts +2 -0
  64. package/dist/components/sale-share-card/index.d.ts.map +1 -0
  65. package/dist/components/sale-share-card/index.js +2 -0
  66. package/dist/components/sale-share-card/index.js.map +1 -0
  67. package/dist/components/sale-share-card/sale-share-card.d.ts +27 -0
  68. package/dist/components/sale-share-card/sale-share-card.d.ts.map +1 -0
  69. package/dist/components/sale-share-card/sale-share-card.js +46 -0
  70. package/dist/components/sale-share-card/sale-share-card.js.map +1 -0
  71. package/dist/components/sankey-chart/sankey-chart.d.ts +4 -4
  72. package/dist/components/sankey-chart/sankey-chart.js +4 -4
  73. package/dist/components/slider/slider-thumb.d.ts +2 -2
  74. package/dist/components/slider/slider-thumb.d.ts.map +1 -1
  75. package/dist/components/slider/slider-thumb.js +2 -2
  76. package/dist/components/slider/slider-thumb.js.map +1 -1
  77. package/dist/components/slider/slider.js +1 -1
  78. package/dist/components/slider/slider.js.map +1 -1
  79. package/dist/components/stat-card/index.d.ts +1 -1
  80. package/dist/components/stat-card/index.d.ts.map +1 -1
  81. package/dist/components/stat-card/index.js +1 -1
  82. package/dist/components/stat-card/index.js.map +1 -1
  83. package/dist/components/stat-card/stat-card.d.ts +47 -7
  84. package/dist/components/stat-card/stat-card.d.ts.map +1 -1
  85. package/dist/components/stat-card/stat-card.js +72 -12
  86. package/dist/components/stat-card/stat-card.js.map +1 -1
  87. package/dist/components/sunburst-chart/sunburst-chart.d.ts +2 -1
  88. package/dist/components/sunburst-chart/sunburst-chart.d.ts.map +1 -1
  89. package/dist/components/sunburst-chart/sunburst-chart.js +2 -1
  90. package/dist/components/sunburst-chart/sunburst-chart.js.map +1 -1
  91. package/dist/components/timestamp/timestamp.js +1 -1
  92. package/dist/components/timestamp/timestamp.js.map +1 -1
  93. package/dist/lib/cn-tables.js +5 -5
  94. package/dist/lib/cn-tables.js.map +1 -1
  95. package/dist/primitives/charts/area-chart.js +1 -1
  96. package/dist/primitives/charts/area-chart.js.map +1 -1
  97. package/dist/primitives/charts/area.d.ts +1 -1
  98. package/dist/primitives/charts/area.d.ts.map +1 -1
  99. package/dist/primitives/charts/bar-chart.js +1 -1
  100. package/dist/primitives/charts/bar-chart.js.map +1 -1
  101. package/dist/primitives/charts/bar-squares.d.ts +1 -1
  102. package/dist/primitives/charts/bar-squares.d.ts.map +1 -1
  103. package/dist/primitives/charts/bar.d.ts +6 -5
  104. package/dist/primitives/charts/bar.d.ts.map +1 -1
  105. package/dist/primitives/charts/bar.js +1 -1
  106. package/dist/primitives/charts/bar.js.map +1 -1
  107. package/dist/primitives/charts/chart-context.js +2 -2
  108. package/dist/primitives/charts/chart-context.js.map +1 -1
  109. package/dist/primitives/charts/composed-chart.js +3 -3
  110. package/dist/primitives/charts/composed-chart.js.map +1 -1
  111. package/dist/primitives/charts/funnel-chart.d.ts +12 -8
  112. package/dist/primitives/charts/funnel-chart.d.ts.map +1 -1
  113. package/dist/primitives/charts/funnel-chart.js +38 -9
  114. package/dist/primitives/charts/funnel-chart.js.map +1 -1
  115. package/dist/primitives/charts/gauge.d.ts +4 -4
  116. package/dist/primitives/charts/gauge.js +7 -7
  117. package/dist/primitives/charts/gauge.js.map +1 -1
  118. package/dist/primitives/charts/line-chart.js +1 -1
  119. package/dist/primitives/charts/line-chart.js.map +1 -1
  120. package/dist/primitives/charts/line-series-terminal-marker.d.ts.map +1 -1
  121. package/dist/primitives/charts/line-series-terminal-marker.js +1 -1
  122. package/dist/primitives/charts/line-series-terminal-marker.js.map +1 -1
  123. package/dist/primitives/charts/line.d.ts +1 -1
  124. package/dist/primitives/charts/line.d.ts.map +1 -1
  125. package/dist/primitives/charts/notch-gauge-shared.d.ts.map +1 -1
  126. package/dist/primitives/charts/notch-gauge-shared.js +4 -3
  127. package/dist/primitives/charts/notch-gauge-shared.js.map +1 -1
  128. package/dist/primitives/charts/pie-context.d.ts +3 -2
  129. package/dist/primitives/charts/pie-context.d.ts.map +1 -1
  130. package/dist/primitives/charts/pie-context.js +7 -6
  131. package/dist/primitives/charts/pie-context.js.map +1 -1
  132. package/dist/primitives/charts/pie-slice.d.ts +2 -2
  133. package/dist/primitives/charts/pie-slice.js +1 -1
  134. package/dist/primitives/charts/pie-slice.js.map +1 -1
  135. package/dist/primitives/charts/ring-context.d.ts +4 -2
  136. package/dist/primitives/charts/ring-context.d.ts.map +1 -1
  137. package/dist/primitives/charts/ring-context.js +8 -6
  138. package/dist/primitives/charts/ring-context.js.map +1 -1
  139. package/dist/primitives/charts/ring.d.ts +8 -8
  140. package/dist/primitives/charts/ring.d.ts.map +1 -1
  141. package/dist/primitives/charts/ring.js +4 -4
  142. package/dist/primitives/charts/ring.js.map +1 -1
  143. package/dist/primitives/charts/sankey/sankey-link.d.ts +9 -10
  144. package/dist/primitives/charts/sankey/sankey-link.d.ts.map +1 -1
  145. package/dist/primitives/charts/sankey/sankey-link.js +14 -9
  146. package/dist/primitives/charts/sankey/sankey-link.js.map +1 -1
  147. package/dist/primitives/charts/sankey/sankey-node.d.ts +5 -5
  148. package/dist/primitives/charts/sankey/sankey-node.d.ts.map +1 -1
  149. package/dist/primitives/charts/sankey/sankey-node.js +6 -6
  150. package/dist/primitives/charts/sankey/sankey-node.js.map +1 -1
  151. package/dist/primitives/charts/series-bar.d.ts +4 -4
  152. package/dist/primitives/charts/series-bar.d.ts.map +1 -1
  153. package/dist/primitives/charts/series-bar.js +1 -1
  154. package/dist/primitives/charts/series-bar.js.map +1 -1
  155. package/dist/primitives/charts/sunburst-context.d.ts +3 -2
  156. package/dist/primitives/charts/sunburst-context.d.ts.map +1 -1
  157. package/dist/primitives/charts/sunburst-context.js +6 -5
  158. package/dist/primitives/charts/sunburst-context.js.map +1 -1
  159. package/dist/primitives/charts/sunburst-legend.d.ts +7 -2
  160. package/dist/primitives/charts/sunburst-legend.d.ts.map +1 -1
  161. package/dist/primitives/charts/sunburst-legend.js +8 -6
  162. package/dist/primitives/charts/sunburst-legend.js.map +1 -1
  163. package/dist/primitives/charts/sunburst-segment.d.ts +3 -3
  164. package/dist/primitives/charts/sunburst-segment.js +2 -2
  165. package/dist/primitives/charts/sunburst-segment.js.map +1 -1
  166. package/dist/primitives/charts/tooltip/date-ticker.js +2 -2
  167. package/dist/primitives/charts/tooltip/date-ticker.js.map +1 -1
  168. package/dist/primitives/charts/tooltip/tooltip-box.js +1 -1
  169. package/dist/primitives/charts/tooltip/tooltip-box.js.map +1 -1
  170. package/dist/primitives/ui/alert-dialog.js +1 -1
  171. package/dist/primitives/ui/alert-dialog.js.map +1 -1
  172. package/dist/primitives/ui/autocomplete.js +1 -1
  173. package/dist/primitives/ui/autocomplete.js.map +1 -1
  174. package/dist/primitives/ui/dialog.js +1 -1
  175. package/dist/primitives/ui/dialog.js.map +1 -1
  176. package/dist/primitives/ui/drawer.js +1 -1
  177. package/dist/primitives/ui/drawer.js.map +1 -1
  178. package/dist/primitives/ui/popover.js +1 -1
  179. package/dist/primitives/ui/popover.js.map +1 -1
  180. package/dist/primitives/ui/preview-card.js +1 -1
  181. package/dist/primitives/ui/preview-card.js.map +1 -1
  182. package/dist/primitives/ui/sheet.js +2 -2
  183. package/dist/primitives/ui/sheet.js.map +1 -1
  184. package/dist/primitives/ui/slider.js +1 -1
  185. package/dist/primitives/ui/slider.js.map +1 -1
  186. package/dist/primitives/ui/switch.d.ts +1 -1
  187. package/dist/primitives/ui/switch.d.ts.map +1 -1
  188. package/dist/primitives/ui/switch.js +1 -1
  189. package/dist/primitives/ui/switch.js.map +1 -1
  190. package/dist/primitives/ui/toast.js +2 -2
  191. package/dist/primitives/ui/toast.js.map +1 -1
  192. package/dist/primitives/ui/tooltip.js +1 -1
  193. package/dist/primitives/ui/tooltip.js.map +1 -1
  194. package/dist/styles/theme.css +9 -0
  195. package/dist/styles/tokens.css +96 -36
  196. package/dist/styles/tokens.test.tsx +20 -2
  197. package/dist/theme/color.d.ts +5 -0
  198. package/dist/theme/color.d.ts.map +1 -1
  199. package/dist/theme/color.js +22 -0
  200. package/dist/theme/color.js.map +1 -1
  201. package/dist/theme/css.d.ts +3 -3
  202. package/dist/theme/css.d.ts.map +1 -1
  203. package/dist/theme/css.js +29 -11
  204. package/dist/theme/css.js.map +1 -1
  205. package/package.json +1 -1
@@ -42,9 +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 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
45
+ One ring of a `RingChart`: a grey track and a progress arc for the data row at `index` (by default a `--border`
46
+ track and a solid arc, as the bars; `variant="tint"` for a light `--muted` track and a 25% wash of the ring's colour
47
+ with a solid end cap). The
48
48
  track scales in, then the arc fills. On hover the ring grows a little, the outer rings move out and
49
49
  the other rings fade; the hover index drives `RingCenter` and a linked `Legend`.
50
50
 
@@ -52,10 +52,10 @@ the other rings fade; the hover index drives `RingCenter` and a linked `Legend`.
52
52
  | --- | --- | --- | --- |
53
53
  | `index` (required) | `number` | - | Index of the ring in the `RingChart` data, 0 = innermost. |
54
54
  | `animate` | `boolean` | - | Animate the ring on mount. Default: true |
55
- | `color` | `string` | - | Color override. Falls back to the row's `color`, then to `--chart-1..5`. |
55
+ | `color` | `string` | - | Color override. Falls back to the row's `color`, then to `--chart-solid-1..3` and `--chart-4..5`. |
56
56
  | `lineCap` | `RingLineCap` | - | End cap of the progress arc (`variant="solid"`). Default: "round" |
57
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" |
58
+ | `variant` | `"tint" \| "solid"` | - | `"solid"`: a `--border` track and a solid arc, as the bars. `"tint"`: 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. Default: "solid" |
59
59
 
60
60
  ## RingCenter
61
61
 
@@ -191,11 +191,20 @@ const countries: RingData[] = [
191
191
 
192
192
  const usd = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD", notation: "compact" });
193
193
 
194
+ // The ring's default colours, in order: the bars' solid series, then the chart palette.
195
+ const ringColors = [
196
+ "var(--chart-solid-1)",
197
+ "var(--chart-solid-2)",
198
+ "var(--chart-solid-3)",
199
+ "var(--chart-4)",
200
+ "var(--chart-5)",
201
+ ];
202
+
194
203
  const legendItems: LegendItemData[] = countries.map((row, index) => ({
195
204
  label: row.label,
196
205
  value: row.value,
197
206
  maxValue: row.maxValue,
198
- color: `var(--chart-${index + 1})`,
207
+ color: ringColors[index % ringColors.length] ?? "var(--chart-solid-1)",
199
208
  }));
200
209
 
201
210
  export default function RingChartLegend() {
@@ -224,11 +233,11 @@ export default function RingChartLegend() {
224
233
  className="w-full max-w-64"
225
234
  >
226
235
  <LegendItem className="grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-1">
227
- <LegendMarker variant="bar" />
236
+ <LegendMarker />
228
237
  <LegendLabel />
229
238
  <LegendValue formatValue={(value) => usd.format(value)} showPercentage />
230
239
  <div className="col-span-full">
231
- <LegendProgress variant="tint" />
240
+ <LegendProgress />
232
241
  </div>
233
242
  </LegendItem>
234
243
  </Legend>
@@ -0,0 +1,48 @@
1
+ # Sale share card
2
+
3
+ A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the
4
+ business chip, a headline and the amount in the brand lime with a dark outline. Always light, whatever the theme,
5
+ so the saved picture looks the same. Capture this element at its own size, and preview it in a `ScaledFrame`.
6
+
7
+ ```tsx
8
+ import { SaleShareCard } from "@dodopayments/ui/sale-share-card";
9
+ ```
10
+
11
+ ## SaleShareCard
12
+
13
+ A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the
14
+ business chip, a headline and the amount in the brand lime with a dark outline. Always light, whatever the theme,
15
+ so the saved picture looks the same. Capture this element at its own size, and preview it in a `ScaledFrame`.
16
+
17
+ | Prop | Type | Default | Description |
18
+ | --- | --- | --- | --- |
19
+ | `amount` (required) | `string` | - | The sale, formatted, e.g. "$1,234.56". It shrinks to fit the card. |
20
+ | `background` (required) | `string` | - | The artwork behind the card, an image URL. Decorative. |
21
+ | `headline` (required) | `ReactNode` | - | The line above the amount, e.g. "Cha-ching! A new sale is in". |
22
+ | `business` | `SaleShareBusiness` | - | The business chip at the top. Leave it out when the merchant turns off "Include business and logo"; the card keeps its size so the shared image is always 720 by 400. |
23
+ | `className` | `string` | - | Additional Tailwind classes, merged last. |
24
+
25
+ ## Examples
26
+
27
+ ### sale-share-card/master
28
+
29
+ ```tsx
30
+ "use client";
31
+
32
+ import { SaleShareCard } from "@dodopayments/ui/sale-share-card";
33
+ import { ScaledFrame } from "@dodopayments/ui/scaled-frame";
34
+
35
+ export default function SaleShareCardDemo() {
36
+ return (
37
+ <ScaledFrame width={720} height={400} className="max-w-180">
38
+ <SaleShareCard
39
+ amount="$1,234.56"
40
+ headline="Cha-ching! A new sale is in"
41
+ background="/samples/sale-share-lagoon.webp"
42
+ business={{ name: "Incubix" }}
43
+ />
44
+ </ScaledFrame>
45
+ );
46
+ }
47
+ ```
48
+
@@ -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",
@@ -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 |
@@ -56,7 +56,9 @@ export declare const avatarVariants: import("../../index.ts").VariantFn<{
56
56
  }>;
57
57
  /**
58
58
  * Fallback colours. The primitives have no avatar palette, so the dodo colour names map onto the soft tones
59
- * (Surface/<Tone>-secondary fill with the Content/<Tone> initials) via classes. `neutral` is the grey circle.
59
+ * (Surface/<Tone>-secondary fill with the Content/<Tone> initials) via classes: `blue` and `lime` on the info and
60
+ * success tones, `purple` and `pink` on the violet and pink category tones, so no avatar reads as a warning or an
61
+ * error. `neutral` is the grey circle.
60
62
  */
61
63
  export declare const DODO_AVATAR_FALLBACK_VARIANTS: {
62
64
  readonly color: {
@@ -69,19 +71,19 @@ export declare const DODO_AVATAR_FALLBACK_VARIANTS: {
69
71
  readonly description: "Grey: Surface/Tertiary with Content/Primary initials. Never picked by `auto`; set it where colour would distract.";
70
72
  };
71
73
  readonly blue: {
72
- readonly classes: "bg-info-subtle text-info-foreground";
74
+ readonly classes: "bg-avatar-blue text-info-foreground";
73
75
  readonly description: "The `info` tone: a soft blue fill with blue initials.";
74
76
  };
75
77
  readonly purple: {
76
- readonly classes: "bg-warning-subtle text-warning-foreground";
77
- readonly description: "The `warning` tone: a soft amber fill with amber initials.";
78
+ readonly classes: "bg-avatar-violet text-violet-foreground";
79
+ readonly description: "The violet category tone: a soft violet fill with violet initials.";
78
80
  };
79
81
  readonly pink: {
80
- readonly classes: "bg-destructive-subtle text-destructive-foreground";
81
- readonly description: "The `error` tone: a soft red fill with red initials.";
82
+ readonly classes: "bg-avatar-pink text-pink-foreground";
83
+ readonly description: "The pink category tone: a soft pink fill with pink initials.";
82
84
  };
83
85
  readonly lime: {
84
- readonly classes: "bg-success-subtle text-success-foreground";
86
+ readonly classes: "bg-avatar-green text-success-foreground";
85
87
  readonly description: "The `success` tone: a soft green fill with green initials.";
86
88
  };
87
89
  };
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,MAAM,IAAI,eAAe,EACzB,cAAc,IAAI,uBAAuB,EACzC,WAAW,IAAI,oBAAoB,EACpC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9E;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;CAmBvB,CAAC;AAEX,eAAO,MAAM,4BAA4B;;CAA0B,CAAC;AAEpE;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;EAIzB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BhC,CAAC;AAEX,eAAO,MAAM,qCAAqC;;CAA6B,CAAC;AAgChF,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;AACzE,KAAK,yBAAyB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACnF,KAAK,4BAA4B,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzF,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAC,EAC7C,gBAAgB,CAAC,OAAO,oBAAoB,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,qBAShE;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,yBAAyB,EAAE,WAAW,GAAG,KAAK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AAmB,CAAC,EAClC,MAAM,EACN,IAAI,EACJ,GAAO,EACP,eAAe,EACf,mBAA0C,EAC1C,aAAsC,EACtC,aAAmB,EACnB,SAAS,EACT,YAAY,EAAE,SAAyB,EACvC,GAAG,KAAK,EACT,EAAE,wBAAwB,qBAyH1B"}
@@ -45,7 +45,9 @@ export const avatarVariants = createVariants({
45
45
  });
46
46
  /**
47
47
  * Fallback colours. The primitives have no avatar palette, so the dodo colour names map onto the soft tones
48
- * (Surface/<Tone>-secondary fill with the Content/<Tone> initials) via classes. `neutral` is the grey circle.
48
+ * (Surface/<Tone>-secondary fill with the Content/<Tone> initials) via classes: `blue` and `lime` on the info and
49
+ * success tones, `purple` and `pink` on the violet and pink category tones, so no avatar reads as a warning or an
50
+ * error. `neutral` is the grey circle.
49
51
  */
50
52
  export const DODO_AVATAR_FALLBACK_VARIANTS = {
51
53
  color: {
@@ -58,19 +60,19 @@ export const DODO_AVATAR_FALLBACK_VARIANTS = {
58
60
  description: "Grey: Surface/Tertiary with Content/Primary initials. Never picked by `auto`; set it where colour would distract.",
59
61
  },
60
62
  blue: {
61
- classes: "bg-info-subtle text-info-foreground",
63
+ classes: "bg-avatar-blue text-info-foreground",
62
64
  description: "The `info` tone: a soft blue fill with blue initials.",
63
65
  },
64
66
  purple: {
65
- classes: "bg-warning-subtle text-warning-foreground",
66
- description: "The `warning` tone: a soft amber fill with amber initials.",
67
+ classes: "bg-avatar-violet text-violet-foreground",
68
+ description: "The violet category tone: a soft violet fill with violet initials.",
67
69
  },
68
70
  pink: {
69
- classes: "bg-destructive-subtle text-destructive-foreground",
70
- description: "The `error` tone: a soft red fill with red initials.",
71
+ classes: "bg-avatar-pink text-pink-foreground",
72
+ description: "The pink category tone: a soft pink fill with pink initials.",
71
73
  },
72
74
  lime: {
73
- classes: "bg-success-subtle text-success-foreground",
75
+ classes: "bg-avatar-green text-success-foreground",
74
76
  description: "The `success` tone: a soft green fill with green initials.",
75
77
  },
76
78
  },
@@ -1 +1 @@
1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OP,CACV,CACF,CAAC,CAAC,CAAC,IAAI,IACQ,GACZ,GACG,EACb,0BAAc,uBAAuB,EAAC,SAAS,EAAC,SAAS,YACtD,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,uBAAqB,MAAM,CAAC,IAAI,IAAvB,MAAM,CAAC,EAAE,CAAoB,CACvC,CAAC,GACC,EACL,4BACY,wBAAwB,EAClC,IAAI,EAAC,QAAQ,eACH,QAAQ,iBACN,MAAM,EAClB,SAAS,EAAC,SAAS,YAElB,YAAY,GACR,IACH,CACP,CAAC;AACJ,CAAC"}
@@ -87,6 +87,12 @@ export interface CopyableIdProps extends Omit<TooltipTriggerProps, "children" |
87
87
  onCopy?: (value: string) => void;
88
88
  /** Called when the clipboard write fails (e.g. permission denied or insecure context). */
89
89
  onCopyError?: (error: unknown) => void;
90
+ /**
91
+ * Renders the value as this link, e.g. `<NextLink href="/payments/pay_…" />`, for an ID that opens its record. The
92
+ * value keeps its middle truncation and underlines on hover; the copy button stays beside it, outside the link.
93
+ * `inline` and `chip` only.
94
+ */
95
+ link?: React.ReactElement<Record<string, unknown>>;
90
96
  }
91
97
  /**
92
98
  * An ID or secret the merchant can copy, in Geist Mono 12: the Dodo Nest Copyable ID. `inline` (default) for rails,
@@ -95,6 +101,6 @@ export interface CopyableIdProps extends Omit<TooltipTriggerProps, "children" |
95
101
  * `Button` copies it, turning into a green check for 2 s. Clicks on the buttons do not bubble to a clickable parent
96
102
  * row. An empty `value` renders a dash.
97
103
  */
98
- export declare function CopyableId({ value, variant, label, copyLabel, prefixVisible, revealed: revealedProp, defaultRevealed, onRevealedChange, remaskAfterMs, onCopy, onCopyError, className, style, ...props }: CopyableIdProps): React.JSX.Element;
104
+ export declare function CopyableId({ value, variant, label, copyLabel, prefixVisible, revealed: revealedProp, defaultRevealed, onRevealedChange, remaskAfterMs, onCopy, onCopyError, link, className, style, ...props }: CopyableIdProps): React.JSX.Element;
99
105
  export {};
100
106
  //# sourceMappingURL=copyable-id.d.ts.map