@dodopayments/ui 1.0.1 → 1.0.3

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 (295) hide show
  1. package/ai/AGENTS.snippet.md +2 -0
  2. package/ai/USAGE.md +4 -0
  3. package/ai/component-registry.json +432 -89
  4. package/ai/components/app-top-bar.md +18 -10
  5. package/ai/components/auth-card.md +1 -1
  6. package/ai/components/bar-chart.md +5 -3
  7. package/ai/components/button.md +1 -1
  8. package/ai/components/chart-legend.md +3 -1
  9. package/ai/components/chart-tooltip.md +2 -2
  10. package/ai/components/composed-chart.md +5 -6
  11. package/ai/components/data-grid.md +11 -23
  12. package/ai/components/date-picker.md +1 -1
  13. package/ai/components/details-panel.md +1 -1
  14. package/ai/components/funnel-chart.md +12 -5
  15. package/ai/components/gauge-chart.md +9 -4
  16. package/ai/components/line-chart.md +1 -0
  17. package/ai/components/list-item.md +146 -6
  18. package/ai/components/pie-chart.md +1 -0
  19. package/ai/components/quantity-stepper.md +34 -2
  20. package/ai/components/radio-group.md +2 -2
  21. package/ai/components/retention-matrix.md +20 -5
  22. package/ai/components/ring-chart.md +7 -4
  23. package/ai/components/sankey-chart.md +18 -8
  24. package/ai/components/scatter-chart.md +4 -2
  25. package/ai/components/settings-section.md +1 -62
  26. package/ai/components/setup-guide.md +114 -118
  27. package/ai/components/sidebar.md +5 -0
  28. package/ai/components/stat-card.md +13 -14
  29. package/ai/components/sunburst-chart.md +138 -18
  30. package/ai/components/value-flash.md +74 -15
  31. package/ai/skills/dodo-charts/SKILL.md +3 -2
  32. package/ai/skills/dodo-design/SKILL.md +2 -2
  33. package/dist/components/auth-card/auth-card.d.ts +1 -1
  34. package/dist/components/auth-card/auth-card.d.ts.map +1 -1
  35. package/dist/components/auth-card/auth-card.js +1 -1
  36. package/dist/components/auth-card/auth-card.js.map +1 -1
  37. package/dist/components/button/button.d.ts +1 -1
  38. package/dist/components/button/button.d.ts.map +1 -1
  39. package/dist/components/button/button.js +5 -3
  40. package/dist/components/button/button.js.map +1 -1
  41. package/dist/components/data-grid/data-grid.d.ts +16 -13
  42. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  43. package/dist/components/data-grid/data-grid.js +17 -110
  44. package/dist/components/data-grid/data-grid.js.map +1 -1
  45. package/dist/components/data-grid/index.d.ts.map +1 -1
  46. package/dist/components/data-grid/index.js +1 -0
  47. package/dist/components/data-grid/index.js.map +1 -1
  48. package/dist/components/data-grid/table.d.ts +3 -6
  49. package/dist/components/data-grid/table.d.ts.map +1 -1
  50. package/dist/components/data-grid/table.js +10 -12
  51. package/dist/components/data-grid/table.js.map +1 -1
  52. package/dist/components/funnel-chart/funnel-chart.d.ts +3 -1
  53. package/dist/components/funnel-chart/funnel-chart.d.ts.map +1 -1
  54. package/dist/components/funnel-chart/funnel-chart.js +3 -1
  55. package/dist/components/funnel-chart/funnel-chart.js.map +1 -1
  56. package/dist/components/gauge-chart/gauge-chart.d.ts +3 -1
  57. package/dist/components/gauge-chart/gauge-chart.d.ts.map +1 -1
  58. package/dist/components/gauge-chart/gauge-chart.js +3 -1
  59. package/dist/components/gauge-chart/gauge-chart.js.map +1 -1
  60. package/dist/components/icon-morph/icon-morph.d.ts.map +1 -1
  61. package/dist/components/icon-morph/icon-morph.js +7 -4
  62. package/dist/components/icon-morph/icon-morph.js.map +1 -1
  63. package/dist/components/list-item/list-item.d.ts +21 -2
  64. package/dist/components/list-item/list-item.d.ts.map +1 -1
  65. package/dist/components/list-item/list-item.js +18 -4
  66. package/dist/components/list-item/list-item.js.map +1 -1
  67. package/dist/components/plan-picker/plan-picker.js +1 -1
  68. package/dist/components/plan-picker/plan-picker.js.map +1 -1
  69. package/dist/components/product-card/product-card.d.ts.map +1 -1
  70. package/dist/components/product-card/product-card.js +10 -3
  71. package/dist/components/product-card/product-card.js.map +1 -1
  72. package/dist/components/quantity-stepper/index.d.ts +1 -1
  73. package/dist/components/quantity-stepper/index.d.ts.map +1 -1
  74. package/dist/components/quantity-stepper/index.js +1 -1
  75. package/dist/components/quantity-stepper/index.js.map +1 -1
  76. package/dist/components/quantity-stepper/quantity-stepper.d.ts +33 -3
  77. package/dist/components/quantity-stepper/quantity-stepper.d.ts.map +1 -1
  78. package/dist/components/quantity-stepper/quantity-stepper.js +41 -8
  79. package/dist/components/quantity-stepper/quantity-stepper.js.map +1 -1
  80. package/dist/components/radio-group/radio-group.d.ts +6 -6
  81. package/dist/components/radio-group/radio-group.d.ts.map +1 -1
  82. package/dist/components/radio-group/radio-group.js +11 -10
  83. package/dist/components/radio-group/radio-group.js.map +1 -1
  84. package/dist/components/retention-matrix/index.d.ts +1 -1
  85. package/dist/components/retention-matrix/index.d.ts.map +1 -1
  86. package/dist/components/retention-matrix/index.js +1 -1
  87. package/dist/components/retention-matrix/index.js.map +1 -1
  88. package/dist/components/retention-matrix/retention-matrix.d.ts +32 -16
  89. package/dist/components/retention-matrix/retention-matrix.d.ts.map +1 -1
  90. package/dist/components/retention-matrix/retention-matrix.js +42 -19
  91. package/dist/components/retention-matrix/retention-matrix.js.map +1 -1
  92. package/dist/components/sankey-chart/sankey-chart.d.ts +4 -1
  93. package/dist/components/sankey-chart/sankey-chart.d.ts.map +1 -1
  94. package/dist/components/sankey-chart/sankey-chart.js +4 -1
  95. package/dist/components/sankey-chart/sankey-chart.js.map +1 -1
  96. package/dist/components/settings-section/index.d.ts.map +1 -1
  97. package/dist/components/settings-section/index.js +1 -0
  98. package/dist/components/settings-section/index.js.map +1 -1
  99. package/dist/components/settings-section/settings-section.d.ts +8 -5
  100. package/dist/components/settings-section/settings-section.d.ts.map +1 -1
  101. package/dist/components/settings-section/settings-section.js +8 -11
  102. package/dist/components/settings-section/settings-section.js.map +1 -1
  103. package/dist/components/setup-guide/index.d.ts +1 -1
  104. package/dist/components/setup-guide/index.d.ts.map +1 -1
  105. package/dist/components/setup-guide/index.js +1 -1
  106. package/dist/components/setup-guide/index.js.map +1 -1
  107. package/dist/components/setup-guide/setup-guide.d.ts +41 -16
  108. package/dist/components/setup-guide/setup-guide.d.ts.map +1 -1
  109. package/dist/components/setup-guide/setup-guide.js +53 -30
  110. package/dist/components/setup-guide/setup-guide.js.map +1 -1
  111. package/dist/components/sidebar/sidebar.d.ts +12 -5
  112. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  113. package/dist/components/sidebar/sidebar.js +127 -16
  114. package/dist/components/sidebar/sidebar.js.map +1 -1
  115. package/dist/components/stat-card/stat-card.d.ts +18 -11
  116. package/dist/components/stat-card/stat-card.d.ts.map +1 -1
  117. package/dist/components/stat-card/stat-card.js +18 -12
  118. package/dist/components/stat-card/stat-card.js.map +1 -1
  119. package/dist/components/sunburst-chart/index.d.ts +1 -0
  120. package/dist/components/sunburst-chart/index.d.ts.map +1 -1
  121. package/dist/components/sunburst-chart/index.js +1 -0
  122. package/dist/components/sunburst-chart/index.js.map +1 -1
  123. package/dist/components/sunburst-chart/sunburst-chart.d.ts +7 -5
  124. package/dist/components/sunburst-chart/sunburst-chart.d.ts.map +1 -1
  125. package/dist/components/sunburst-chart/sunburst-chart.js +7 -5
  126. package/dist/components/sunburst-chart/sunburst-chart.js.map +1 -1
  127. package/dist/components/value-flash/index.d.ts +1 -1
  128. package/dist/components/value-flash/index.d.ts.map +1 -1
  129. package/dist/components/value-flash/index.js +1 -1
  130. package/dist/components/value-flash/index.js.map +1 -1
  131. package/dist/components/value-flash/value-flash.d.ts +52 -0
  132. package/dist/components/value-flash/value-flash.d.ts.map +1 -1
  133. package/dist/components/value-flash/value-flash.js +37 -1
  134. package/dist/components/value-flash/value-flash.js.map +1 -1
  135. package/dist/icons/index.d.ts +6 -0
  136. package/dist/icons/index.js +6 -0
  137. package/dist/icons/ui/arrow-door-out-3.d.ts +3 -0
  138. package/dist/icons/ui/arrow-door-out-3.js +5 -0
  139. package/dist/icons/ui/circle-check-outline-duo.d.ts +3 -0
  140. package/dist/icons/ui/circle-check-outline-duo.d.ts.map +1 -0
  141. package/dist/icons/ui/circle-check-outline-duo.js +5 -0
  142. package/dist/icons/ui/circle-check-outline-duo.js.map +1 -0
  143. package/dist/icons/ui/circle-dashed-outline-duo.d.ts +3 -0
  144. package/dist/icons/ui/circle-dashed-outline-duo.d.ts.map +1 -0
  145. package/dist/icons/ui/circle-dashed-outline-duo.js +5 -0
  146. package/dist/icons/ui/circle-dashed-outline-duo.js.map +1 -0
  147. package/dist/icons/ui/circle-warning-outline-duo.d.ts +3 -0
  148. package/dist/icons/ui/circle-warning-outline-duo.d.ts.map +1 -0
  149. package/dist/icons/ui/circle-warning-outline-duo.js +5 -0
  150. package/dist/icons/ui/circle-warning-outline-duo.js.map +1 -0
  151. package/dist/icons/ui/circle-xmark-outline-duo.d.ts +3 -0
  152. package/dist/icons/ui/circle-xmark-outline-duo.d.ts.map +1 -0
  153. package/dist/icons/ui/circle-xmark-outline-duo.js +5 -0
  154. package/dist/icons/ui/circle-xmark-outline-duo.js.map +1 -0
  155. package/dist/icons/ui/clock-outline-duo.d.ts +3 -0
  156. package/dist/icons/ui/clock-outline-duo.d.ts.map +1 -0
  157. package/dist/icons/ui/clock-outline-duo.js +5 -0
  158. package/dist/icons/ui/clock-outline-duo.js.map +1 -0
  159. package/dist/lib/cn-tables.js +5 -5
  160. package/dist/lib/cn-tables.js.map +1 -1
  161. package/dist/lib/locale-messages.d.ts +6 -3
  162. package/dist/lib/locale-messages.d.ts.map +1 -1
  163. package/dist/lib/locale-messages.js +6 -3
  164. package/dist/lib/locale-messages.js.map +1 -1
  165. package/dist/lib/money.d.ts +4 -3
  166. package/dist/lib/money.d.ts.map +1 -1
  167. package/dist/lib/money.js +4 -3
  168. package/dist/lib/money.js.map +1 -1
  169. package/dist/locales/ar.d.ts.map +1 -1
  170. package/dist/locales/ar.js +1 -0
  171. package/dist/locales/ar.js.map +1 -1
  172. package/dist/locales/de.d.ts.map +1 -1
  173. package/dist/locales/de.js +1 -0
  174. package/dist/locales/de.js.map +1 -1
  175. package/dist/locales/es.d.ts.map +1 -1
  176. package/dist/locales/es.js +1 -0
  177. package/dist/locales/es.js.map +1 -1
  178. package/dist/locales/fr.d.ts.map +1 -1
  179. package/dist/locales/fr.js +1 -0
  180. package/dist/locales/fr.js.map +1 -1
  181. package/dist/locales/he.d.ts.map +1 -1
  182. package/dist/locales/he.js +1 -0
  183. package/dist/locales/he.js.map +1 -1
  184. package/dist/locales/hi.d.ts.map +1 -1
  185. package/dist/locales/hi.js +1 -0
  186. package/dist/locales/hi.js.map +1 -1
  187. package/dist/locales/ja.d.ts.map +1 -1
  188. package/dist/locales/ja.js +1 -0
  189. package/dist/locales/ja.js.map +1 -1
  190. package/dist/locales/pt-BR.d.ts.map +1 -1
  191. package/dist/locales/pt-BR.js +1 -0
  192. package/dist/locales/pt-BR.js.map +1 -1
  193. package/dist/locales/zh-CN.d.ts.map +1 -1
  194. package/dist/locales/zh-CN.js +1 -0
  195. package/dist/locales/zh-CN.js.map +1 -1
  196. package/dist/primitives/charts/bar.d.ts +11 -0
  197. package/dist/primitives/charts/bar.d.ts.map +1 -1
  198. package/dist/primitives/charts/bar.js +65 -11
  199. package/dist/primitives/charts/bar.js.map +1 -1
  200. package/dist/primitives/charts/funnel-chart.d.ts +22 -3
  201. package/dist/primitives/charts/funnel-chart.d.ts.map +1 -1
  202. package/dist/primitives/charts/funnel-chart.js +122 -110
  203. package/dist/primitives/charts/funnel-chart.js.map +1 -1
  204. package/dist/primitives/charts/gauge.d.ts +7 -0
  205. package/dist/primitives/charts/gauge.d.ts.map +1 -1
  206. package/dist/primitives/charts/gauge.js +37 -9
  207. package/dist/primitives/charts/gauge.js.map +1 -1
  208. package/dist/primitives/charts/index.d.ts +1 -0
  209. package/dist/primitives/charts/index.d.ts.map +1 -1
  210. package/dist/primitives/charts/index.js +1 -0
  211. package/dist/primitives/charts/index.js.map +1 -1
  212. package/dist/primitives/charts/legend/legend-marker.d.ts +7 -2
  213. package/dist/primitives/charts/legend/legend-marker.d.ts.map +1 -1
  214. package/dist/primitives/charts/legend/legend-marker.js +9 -3
  215. package/dist/primitives/charts/legend/legend-marker.js.map +1 -1
  216. package/dist/primitives/charts/legend/legend-progress.d.ts +6 -1
  217. package/dist/primitives/charts/legend/legend-progress.d.ts.map +1 -1
  218. package/dist/primitives/charts/legend/legend-progress.js +7 -2
  219. package/dist/primitives/charts/legend/legend-progress.js.map +1 -1
  220. package/dist/primitives/charts/loading-sweep.d.ts.map +1 -1
  221. package/dist/primitives/charts/loading-sweep.js +11 -2
  222. package/dist/primitives/charts/loading-sweep.js.map +1 -1
  223. package/dist/primitives/charts/pie-slice.d.ts +6 -1
  224. package/dist/primitives/charts/pie-slice.d.ts.map +1 -1
  225. package/dist/primitives/charts/pie-slice.js +26 -16
  226. package/dist/primitives/charts/pie-slice.js.map +1 -1
  227. package/dist/primitives/charts/ring.d.ts +12 -3
  228. package/dist/primitives/charts/ring.d.ts.map +1 -1
  229. package/dist/primitives/charts/ring.js +46 -9
  230. package/dist/primitives/charts/ring.js.map +1 -1
  231. package/dist/primitives/charts/sankey/sankey-link.d.ts +14 -5
  232. package/dist/primitives/charts/sankey/sankey-link.d.ts.map +1 -1
  233. package/dist/primitives/charts/sankey/sankey-link.js +34 -10
  234. package/dist/primitives/charts/sankey/sankey-link.js.map +1 -1
  235. package/dist/primitives/charts/sankey/sankey-node.d.ts +8 -2
  236. package/dist/primitives/charts/sankey/sankey-node.d.ts.map +1 -1
  237. package/dist/primitives/charts/sankey/sankey-node.js +13 -7
  238. package/dist/primitives/charts/sankey/sankey-node.js.map +1 -1
  239. package/dist/primitives/charts/scatter-chart.d.ts.map +1 -1
  240. package/dist/primitives/charts/scatter-chart.js +22 -8
  241. package/dist/primitives/charts/scatter-chart.js.map +1 -1
  242. package/dist/primitives/charts/scatter.d.ts +8 -3
  243. package/dist/primitives/charts/scatter.d.ts.map +1 -1
  244. package/dist/primitives/charts/scatter.js +9 -4
  245. package/dist/primitives/charts/scatter.js.map +1 -1
  246. package/dist/primitives/charts/series-bar.d.ts +5 -1
  247. package/dist/primitives/charts/series-bar.d.ts.map +1 -1
  248. package/dist/primitives/charts/series-bar.js +30 -11
  249. package/dist/primitives/charts/series-bar.js.map +1 -1
  250. package/dist/primitives/charts/series-markers.d.ts +6 -1
  251. package/dist/primitives/charts/series-markers.d.ts.map +1 -1
  252. package/dist/primitives/charts/series-markers.js +19 -8
  253. package/dist/primitives/charts/series-markers.js.map +1 -1
  254. package/dist/primitives/charts/sunburst-center.d.ts +10 -3
  255. package/dist/primitives/charts/sunburst-center.d.ts.map +1 -1
  256. package/dist/primitives/charts/sunburst-center.js +20 -12
  257. package/dist/primitives/charts/sunburst-center.js.map +1 -1
  258. package/dist/primitives/charts/sunburst-chart.d.ts +1 -1
  259. package/dist/primitives/charts/sunburst-chart.d.ts.map +1 -1
  260. package/dist/primitives/charts/sunburst-chart.js +27 -7
  261. package/dist/primitives/charts/sunburst-chart.js.map +1 -1
  262. package/dist/primitives/charts/sunburst-context.d.ts +2 -0
  263. package/dist/primitives/charts/sunburst-context.d.ts.map +1 -1
  264. package/dist/primitives/charts/sunburst-context.js +2 -0
  265. package/dist/primitives/charts/sunburst-context.js.map +1 -1
  266. package/dist/primitives/charts/sunburst-labels.d.ts.map +1 -1
  267. package/dist/primitives/charts/sunburst-labels.js +2 -2
  268. package/dist/primitives/charts/sunburst-labels.js.map +1 -1
  269. package/dist/primitives/charts/sunburst-legend.d.ts +19 -0
  270. package/dist/primitives/charts/sunburst-legend.d.ts.map +1 -0
  271. package/dist/primitives/charts/sunburst-legend.js +52 -0
  272. package/dist/primitives/charts/sunburst-legend.js.map +1 -0
  273. package/dist/primitives/charts/sunburst-segment.d.ts +7 -1
  274. package/dist/primitives/charts/sunburst-segment.d.ts.map +1 -1
  275. package/dist/primitives/charts/sunburst-segment.js +35 -10
  276. package/dist/primitives/charts/sunburst-segment.js.map +1 -1
  277. package/dist/primitives/charts/sunburst.d.ts +7 -5
  278. package/dist/primitives/charts/sunburst.d.ts.map +1 -1
  279. package/dist/primitives/charts/sunburst.js +24 -25
  280. package/dist/primitives/charts/sunburst.js.map +1 -1
  281. package/dist/primitives/ui/button.d.ts.map +1 -1
  282. package/dist/primitives/ui/button.js +3 -1
  283. package/dist/primitives/ui/button.js.map +1 -1
  284. package/dist/primitives/ui/sheet.js +1 -1
  285. package/dist/primitives/ui/sheet.js.map +1 -1
  286. package/dist/primitives/ui/sidebar.d.ts.map +1 -1
  287. package/dist/primitives/ui/sidebar.js +4 -2
  288. package/dist/primitives/ui/sidebar.js.map +1 -1
  289. package/dist/styles/theme.css +4 -0
  290. package/dist/styles/tokens.css +3 -1
  291. package/dist/styles/tokens.test.tsx +5 -2
  292. package/eslint/restricted-classes.js +46 -5
  293. package/package.json +1 -2
  294. package/dist/icons/ui/refresh-clockwise.d.ts.map +0 -1
  295. package/dist/icons/ui/refresh-clockwise.js.map +0 -1
@@ -4,7 +4,7 @@ import type { RadioGroup as BaseRadioGroup } from "@base-ui/react/radio-group";
4
4
  import { type VariantSelection } from "../../lib/variants.ts";
5
5
  /**
6
6
  * `variant` is the Figma radio: `default` is the 16px radio, optionally with a label and description beside it, for
7
- * lists; `card` is a card with a title, a description and a 12px radio at the top right, for choices such as pricing
7
+ * lists; `card` is a card with a 12px radio before its title and a description, for choices such as pricing
8
8
  * type. `size` is a Dodo addition: the primitives have one radio size (18px, 16px from `sm`), used as `default`, and
9
9
  * `lg` is composed with classes on the radio and its indicator (the primitive does not expose the indicator, so it is
10
10
  * targeted by `data-slot`).
@@ -16,9 +16,9 @@ export declare const DODO_RADIO_VARIANTS: {
16
16
  readonly primitive: {};
17
17
  };
18
18
  readonly card: {
19
- readonly description: "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.";
19
+ readonly description: "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.";
20
20
  readonly primitive: {};
21
- readonly classes: "size-3 sm:size-3 *:data-[slot=radio-indicator]:size-3 sm:*:data-[slot=radio-indicator]:size-3 *:data-[slot=radio-indicator]:before:size-1 sm:*:data-[slot=radio-indicator]:before:size-1 focus-visible:border-input focus-visible:ring-0";
21
+ readonly classes: "mt-1 size-3 sm:size-3 *:data-[slot=radio-indicator]:size-3 sm:*:data-[slot=radio-indicator]:size-3 *:data-[slot=radio-indicator]:before:size-1 sm:*:data-[slot=radio-indicator]:before:size-1 focus-visible:border-input focus-visible:ring-0";
22
22
  };
23
23
  };
24
24
  readonly size: {
@@ -48,9 +48,9 @@ export declare const radioVariants: import("../../index.ts").VariantFn<{
48
48
  readonly primitive: {};
49
49
  };
50
50
  readonly card: {
51
- readonly description: "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
+ readonly description: "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
  readonly primitive: {};
53
- readonly classes: "size-3 sm:size-3 *:data-[slot=radio-indicator]:size-3 sm:*:data-[slot=radio-indicator]:size-3 *:data-[slot=radio-indicator]:before:size-1 sm:*:data-[slot=radio-indicator]:before:size-1 focus-visible:border-input focus-visible:ring-0";
53
+ readonly classes: "mt-1 size-3 sm:size-3 *:data-[slot=radio-indicator]:size-3 sm:*:data-[slot=radio-indicator]:size-3 *:data-[slot=radio-indicator]:before:size-1 sm:*:data-[slot=radio-indicator]:before:size-1 focus-visible:border-input focus-visible:ring-0";
54
54
  };
55
55
  };
56
56
  readonly size: {
@@ -112,7 +112,7 @@ export type RadioProps<Value = unknown> = Omit<BaseRadio.Root.Props<Value>, "cla
112
112
  * One option in a `RadioGroup`, identified by `value`. Renders the `Radio` primitive: a `<span role="radio">` plus a
113
113
  * hidden `<input>`. On its own it is the bare radio: label it by wrapping it and its text in a `<label>`. With `label`
114
114
  * (and `description`) it renders the whole option, a `<label>` with the text beside the radio, and
115
- * `variant="card"` makes that a card with the radio at the top right. It presses in while held; an option that is
115
+ * `variant="card"` makes that a card with the radio before the title. It presses in while held; an option that is
116
116
  * selected when it mounts does not animate.
117
117
  */
118
118
  export declare function Radio<Value = unknown>({ className, size, variant, label, description, logo, note, disabledReason, content, disabled, ...props }: RadioProps<Value>): React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/radio-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAM/E,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9E;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;CA8BtB,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;CAAmD,CAAC;AAE5F;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;EAIxB,CAAC;AAEH,MAAM,MAAM,eAAe,CAAC,KAAK,GAAG,OAAO,IAAI,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,GAAG;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AASF;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,KAAK,GAAG,OAAO,EAAE,EAC1C,SAAS,EACT,KAAK,EACL,YAAY,EACZ,aAAa,EACb,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,KAAK,CAAC,qBAgCxB;AAED,MAAM,MAAM,UAAU,CAAC,KAAK,GAAG,OAAO,IAAI,IAAI,CAC5C,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAC3B,WAAW,GAAG,UAAU,GAAG,SAAS,CACrC,GACC,gBAAgB,CAAC,OAAO,mBAAmB,CAAC,GAAG;IAC7C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wGAAwG;IAC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7
  /**
8
8
  * `variant` is the Figma radio: `default` is the 16px radio, optionally with a label and description beside it, for
9
- * lists; `card` is a card with a title, a description and a 12px radio at the top right, for choices such as pricing
9
+ * lists; `card` is a card with a 12px radio before its title and a description, for choices such as pricing
10
10
  * type. `size` is a Dodo addition: the primitives have one radio size (18px, 16px from `sm`), used as `default`, and
11
11
  * `lg` is composed with classes on the radio and its indicator (the primitive does not expose the indicator, so it is
12
12
  * targeted by `data-slot`).
@@ -18,11 +18,11 @@ export const DODO_RADIO_VARIANTS = {
18
18
  primitive: {},
19
19
  },
20
20
  card: {
21
- description: "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.",
21
+ description: "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.",
22
22
  primitive: {},
23
- // The radio inside the card is 12px with a 4px dot (an even inset keeps it centred on every screen), and takes
24
- // no focus ring of its own: the card shows it.
25
- classes: "size-3 sm:size-3 *:data-[slot=radio-indicator]:size-3 sm:*:data-[slot=radio-indicator]:size-3 *:data-[slot=radio-indicator]:before:size-1 sm:*:data-[slot=radio-indicator]:before:size-1 focus-visible:border-input focus-visible:ring-0",
23
+ // The radio inside the card is 12px with a 4px dot (an even inset keeps it centred on every screen), leads the
24
+ // title (4 down, centred on its 20px line, as on Plan picker) and takes no focus ring of its own: the card shows it.
25
+ classes: "mt-1 size-3 sm:size-3 *:data-[slot=radio-indicator]:size-3 sm:*:data-[slot=radio-indicator]:size-3 *:data-[slot=radio-indicator]:before:size-1 sm:*:data-[slot=radio-indicator]:before:size-1 focus-visible:border-input focus-visible:ring-0",
26
26
  },
27
27
  },
28
28
  size: {
@@ -84,15 +84,16 @@ export function RadioGroup({ className, value, defaultValue, onValueChange, ...p
84
84
  const OPTION_ROW = "flex w-fit cursor-pointer items-start gap-2 text-body-secondary text-foreground has-data-disabled:cursor-not-allowed";
85
85
  /**
86
86
  * The card: 240 wide by default (`w-full` in a grid), Radius/Large, 12px of padding. A selected card is
87
- * Surface/Brand-secondary with a Border/Brand edge; a focused one shows the same edge and a 2px halo. An unselected
87
+ * Surface/Primary with a 2px edge in the radio's own lime (`--brand`, the border and a 1px inset ring, as on Plan
88
+ * picker); a focused one shows the same edge and a 2px halo. An unselected
88
89
  * card turns Surface/Hover under a pointer that can hover. The card fades between them in `duration-quick`.
89
90
  */
90
- const OPTION_CARD = "relative flex w-60 max-w-full cursor-pointer items-start gap-2 rounded-xl border border-border bg-background p-3 text-start text-foreground shadow-xs/5 ring-brand-subtle transition-[background-color,border-color,box-shadow] duration-quick ease-smooth-out not-has-data-checked:not-has-data-disabled:hover:bg-accent has-data-checked:border-brand-edge has-data-checked:bg-brand-subtle has-focus-visible:border-brand-edge has-focus-visible:shadow-none has-focus-visible:ring-2 has-data-disabled:cursor-not-allowed has-data-disabled:opacity-64";
91
+ const OPTION_CARD = "relative flex w-60 max-w-full cursor-pointer items-start gap-2 rounded-xl border border-border bg-background p-3 text-start text-foreground shadow-xs/5 ring-brand-subtle transition-[background-color,border-color,box-shadow] duration-quick ease-smooth-out not-has-data-checked:not-has-data-disabled:hover:bg-accent has-data-checked:border-brand has-data-checked:inset-ring has-data-checked:inset-ring-brand has-focus-visible:border-brand-edge has-focus-visible:shadow-none has-focus-visible:ring-2 has-data-disabled:cursor-not-allowed has-data-disabled:opacity-64";
91
92
  /**
92
93
  * One option in a `RadioGroup`, identified by `value`. Renders the `Radio` primitive: a `<span role="radio">` plus a
93
94
  * hidden `<input>`. On its own it is the bare radio: label it by wrapping it and its text in a `<label>`. With `label`
94
95
  * (and `description`) it renders the whole option, a `<label>` with the text beside the radio, and
95
- * `variant="card"` makes that a card with the radio at the top right. It presses in while held; an option that is
96
+ * `variant="card"` makes that a card with the radio before the title. It presses in while held; an option that is
96
97
  * selected when it mounts does not animate.
97
98
  */
98
99
  export function Radio({ className, size, variant, label, description, logo, note, disabledReason, content, disabled, ...props }) {
@@ -120,8 +121,8 @@ export function Radio({ className, size, variant, label, description, logo, note
120
121
  if (isCard && present(content)) {
121
122
  // The card holds the clickable label row and, while selected, the content under a divider: the content stays out
122
123
  // of the `<label>` so its inputs and buttons do not select the option.
123
- return (_jsxs("div", { "data-slot": "radio-card", "data-open": open ? "" : undefined, className: cn(OPTION_CARD, "flex-col items-stretch gap-0 p-0", className), children: [_jsxs("label", { className: "flex cursor-pointer items-start gap-2 p-3 in-data-disabled:cursor-not-allowed has-data-disabled:cursor-not-allowed", children: [logoNode, text, radio] }), open ? (_jsx("div", { id: contentId, "data-slot": "radio-content", className: "cursor-auto border-t border-border p-3", children: content })) : null] }));
124
+ return (_jsxs("div", { "data-slot": "radio-card", "data-open": open ? "" : undefined, className: cn(OPTION_CARD, "flex-col items-stretch gap-0 p-0", className), children: [_jsxs("label", { className: "flex cursor-pointer items-start gap-2 p-3 in-data-disabled:cursor-not-allowed has-data-disabled:cursor-not-allowed", children: [radio, logoNode, text] }), open ? (_jsx("div", { id: contentId, "data-slot": "radio-content", className: "cursor-auto border-t border-border p-3", children: content })) : null] }));
124
125
  }
125
- return (_jsx("label", { "data-slot": isCard ? "radio-card" : "radio-option", className: cn(isCard ? OPTION_CARD : OPTION_ROW, className), children: isCard ? (_jsxs(_Fragment, { children: [logoNode, text, radio] })) : (_jsxs(_Fragment, { children: [radio, text] })) }));
126
+ return (_jsxs("label", { "data-slot": isCard ? "radio-card" : "radio-option", className: cn(isCard ? OPTION_CARD : OPTION_ROW, className), children: [radio, logoNode, text] }));
126
127
  }
127
128
  //# sourceMappingURL=radio-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../src/components/radio-group/radio-group.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,KAAK,IAAI,cAAc,EACvB,UAAU,IAAI,mBAAmB,GAClC,MAAM,oCAAqC,CAAC;AAC7C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAA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,uEAAuE;QACvE,OAAO,CACL,4BACY,YAAY,eACX,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAChC,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,kCAAkC,EAAE,SAAS,CAAC,aAEzE,iBAAO,SAAS,EAAC,oHAAoH,aAClI,QAAQ,EACR,IAAI,EACJ,KAAK,IACA,EACP,IAAI,CAAC,CAAC,CAAC,CACN,cACE,EAAE,EAAE,SAAS,eACH,eAAe,EACzB,SAAS,EAAC,wCAAwC,YAEjD,OAAO,GACJ,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;IACJ,CAAC;IACD,OAAO,CACL,6BACa,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,EACjD,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,YAE1D,MAAM,CAAC,CAAC,CAAC,CACR,8BACG,QAAQ,EACR,IAAI,EACJ,KAAK,IACL,CACJ,CAAC,CAAC,CAAC,CACF,8BACG,KAAK,EACL,IAAI,IACJ,CACJ,GACK,CACT,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../src/components/radio-group/radio-group.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,KAAK,IAAI,cAAc,EACvB,UAAU,IAAI,mBAAmB,GAClC,MAAM,oCAAqC,CAAC;AAC7C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAyB,MAAM,uBAAuB,CAAC;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE;QACP,OAAO,EAAE;YACP,WAAW,EACT,uFAAuF;YACzF,SAAS,EAAE,EA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C,oHAAoH,aAClI,KAAK,EACL,QAAQ,EACR,IAAI,IACC,EACP,IAAI,CAAC,CAAC,CAAC,CACN,cACE,EAAE,EAAE,SAAS,eACH,eAAe,EACzB,SAAS,EAAC,wCAAwC,YAEjD,OAAO,GACJ,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;IACJ,CAAC;IACD,OAAO,CACL,8BACa,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,EACjD,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,aAE1D,KAAK,EACL,QAAQ,EACR,IAAI,IACC,CACT,CAAC;AACJ,CAAC"}
@@ -1,2 +1,2 @@
1
- export { DODO_RETENTION_CELL_DEFAULT_VARIANTS, DODO_RETENTION_CELL_VARIANTS, type RetentionCohort, RetentionMatrix, type RetentionMatrixLabels, type RetentionMatrixProps, retentionCellVariants, retentionLevel, } from "./retention-matrix.tsx";
1
+ export { DODO_RETENTION_CELL_DEFAULT_VARIANTS, DODO_RETENTION_CELL_VARIANTS, type RetentionCohort, RetentionMatrix, type RetentionMatrixLabels, type RetentionMatrixProps, retentionCellVariants, retentionLevel, type RetentionThresholds, retentionThresholds, } from "./retention-matrix.tsx";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/retention-matrix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,4BAA4B,EAC5B,KAAK,eAAe,EACpB,eAAe,EACf,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,cAAc,GACf,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/retention-matrix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,4BAA4B,EAC5B,KAAK,eAAe,EACpB,eAAe,EACf,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,cAAc,EACd,KAAK,mBAAmB,EACxB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC"}
@@ -1,2 +1,2 @@
1
- export { DODO_RETENTION_CELL_DEFAULT_VARIANTS, DODO_RETENTION_CELL_VARIANTS, RetentionMatrix, retentionCellVariants, retentionLevel, } from "./retention-matrix.js";
1
+ export { DODO_RETENTION_CELL_DEFAULT_VARIANTS, DODO_RETENTION_CELL_VARIANTS, RetentionMatrix, retentionCellVariants, retentionLevel, retentionThresholds, } from "./retention-matrix.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/retention-matrix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,4BAA4B,EAE5B,eAAe,EAGf,qBAAqB,EACrB,cAAc,GACf,MAAM,uBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/retention-matrix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,4BAA4B,EAE5B,eAAe,EAGf,qBAAqB,EACrB,cAAc,EAEd,mBAAmB,GACpB,MAAM,uBAAwB,CAAC"}
@@ -1,30 +1,32 @@
1
1
  import * as React from "react";
2
2
  /**
3
- * The five heatmap levels of a retention cell (Dodo Nest 2.0 › Retention matrix, drawn like the Heatmap chart):
4
- * `--chart-scale-01` (0%) to `--chart-scale-05` (75% and more). Text is Content/Primary on the two lightest steps and
5
- * `--brand-foreground` (Grey 950 in both themes) on the three lime steps, so it keeps 4.5:1 in dark mode.
3
+ * The levels of a retention cell, drawn like the Heatmap chart: grey (`--chart-scale-01`) only for 0%, as the heatmap
4
+ * keeps grey for "nothing", and four lime steps (`--chart-scale-02` to `--chart-scale-05`) for every value above 0%,
5
+ * split across the matrix's own values (see {@link retentionThresholds}), so 100% is always the darkest. Text is
6
+ * Content/Primary on the two lightest steps and `--brand-foreground` (Grey 950 in both themes) on the three darker
7
+ * lime steps, so it keeps 4.5:1 in dark mode.
6
8
  */
7
9
  export declare const DODO_RETENTION_CELL_VARIANTS: {
8
10
  readonly level: {
9
11
  readonly "0": {
10
12
  readonly classes: "bg-chart-scale-01 text-muted-foreground";
11
- readonly description: "0% of the cohort is still active: the empty grey step, the value still shown.";
13
+ readonly description: "0%: nobody of the cohort is still active. The grey step, the value still shown.";
12
14
  };
13
15
  readonly "1": {
14
16
  readonly classes: "bg-chart-scale-02 text-foreground";
15
- readonly description: "Below 25%.";
17
+ readonly description: "The lowest quarter of the values above 0%: the lightest lime.";
16
18
  };
17
19
  readonly "2": {
18
20
  readonly classes: "bg-chart-scale-03 text-brand-foreground";
19
- readonly description: "25% to 49%.";
21
+ readonly description: "The second quarter.";
20
22
  };
21
23
  readonly "3": {
22
24
  readonly classes: "bg-chart-scale-04 text-brand-foreground";
23
- readonly description: "50% to 74%.";
25
+ readonly description: "The third quarter.";
24
26
  };
25
27
  readonly "4": {
26
28
  readonly classes: "bg-chart-scale-05 text-brand-foreground";
27
- readonly description: "75% and more, Month 0 included.";
29
+ readonly description: "The highest quarter, and 100% (Month 0) always: the darkest lime.";
28
30
  };
29
31
  };
30
32
  };
@@ -36,28 +38,41 @@ export declare const retentionCellVariants: import("../../index.ts").VariantFn<{
36
38
  readonly level: {
37
39
  readonly "0": {
38
40
  readonly classes: "bg-chart-scale-01 text-muted-foreground";
39
- readonly description: "0% of the cohort is still active: the empty grey step, the value still shown.";
41
+ readonly description: "0%: nobody of the cohort is still active. The grey step, the value still shown.";
40
42
  };
41
43
  readonly "1": {
42
44
  readonly classes: "bg-chart-scale-02 text-foreground";
43
- readonly description: "Below 25%.";
45
+ readonly description: "The lowest quarter of the values above 0%: the lightest lime.";
44
46
  };
45
47
  readonly "2": {
46
48
  readonly classes: "bg-chart-scale-03 text-brand-foreground";
47
- readonly description: "25% to 49%.";
49
+ readonly description: "The second quarter.";
48
50
  };
49
51
  readonly "3": {
50
52
  readonly classes: "bg-chart-scale-04 text-brand-foreground";
51
- readonly description: "50% to 74%.";
53
+ readonly description: "The third quarter.";
52
54
  };
53
55
  readonly "4": {
54
56
  readonly classes: "bg-chart-scale-05 text-brand-foreground";
55
- readonly description: "75% and more, Month 0 included.";
57
+ readonly description: "The highest quarter, and 100% (Month 0) always: the darkest lime.";
56
58
  };
57
59
  };
58
60
  }>;
59
- /** The level (0 to 4) of a retention percentage, as the legend bins it. */
60
- export declare function retentionLevel(percent: number): "0" | "1" | "2" | "3" | "4";
61
+ /** The three cut points between the four lime levels: a value at or above a cut point moves up one level. */
62
+ export type RetentionThresholds = readonly [number, number, number];
63
+ /**
64
+ * Splits the distinct retention values above 0% of Month 1 onward into four groups, one per lime level, as the
65
+ * Heatmap chart spreads its counts over its lime levels, so every shade is used and close values still differ. The
66
+ * cut points are always distinct, so repeated values never collapse two levels. Month 0
67
+ * 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
68
+ * (25, 50, 75%).
69
+ */
70
+ export declare function retentionThresholds(cohorts: readonly RetentionCohort[]): RetentionThresholds;
71
+ /**
72
+ * The level of a retention percentage: 0 (grey) for 0%, otherwise 1 to 4 (lightest to darkest lime) by how many of the
73
+ * `thresholds` it reaches. Without `thresholds` it uses fixed quarters (below 25%, 25–49%, 50–74%, 75% and more).
74
+ */
75
+ export declare function retentionLevel(percent: number, thresholds?: RetentionThresholds): "0" | "1" | "2" | "3" | "4";
61
76
  /** One monthly cohort of a {@link RetentionMatrix}: the customers who joined in that month. */
62
77
  export interface RetentionCohort {
63
78
  /** Stable key. Falls back to the index. */
@@ -125,7 +140,8 @@ export interface RetentionMatrixProps extends Omit<React.ComponentProps<"div">,
125
140
  /**
126
141
  * How many customers of each monthly cohort are still active in the months after they joined, drawn the way the
127
142
  * Heatmap chart draws its cells. One row per cohort (cohort, size, Month 0 to Month 6); each cell writes its
128
- * retention % and is shaded on one of five lime levels (`--chart-scale-01..05`). Hovering a cell fades the others
143
+ * retention % and is shaded on one of four lime levels (`--chart-scale-02..05`), split across the matrix's own values
144
+ * 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
129
145
  * and shows the cohort, the month and how many customers that is. Months a cohort has not reached are blank.
130
146
  * The matrix keeps a 560px minimum width and scrolls sideways in a narrower parent. Put it in a `Card` titled
131
147
  * "User retention".
@@ -1 +1 @@
1
- {"version":3,"file":"retention-matrix.d.ts","sourceRoot":"","sources":["../../../src/components/retention-matrix/retention-matrix.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;CAuB/B,CAAC;AAEX,eAAO,MAAM,oCAAoC;;CAA0B,CAAC;AAE5E,wDAAwD;AACxD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;EAIhC,CAAC;AAEH,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAM3E;AAED,+FAA+F;AAC/F,MAAM,WAAW,eAAe;IAC9B,2CAA2C;IAC3C,EAAE,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;IACf,oDAAoD;IACpD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;CACvC;AAED,2DAA2D;AAC3D,MAAM,WAAW,qBAAqB;IACpC,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wGAAwG;IACxG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wCAAwC;AACxC,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IACzF,gDAAgD;IAChD,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wDAAwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAqBD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,MAAM,EACN,aAA8B,EAC9B,WAAgC,EAChC,UAAiB,EACjB,OAAe,EACf,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,qBAsJtB"}
1
+ {"version":3,"file":"retention-matrix.d.ts","sourceRoot":"","sources":["../../../src/components/retention-matrix/retention-matrix.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;A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;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wCAAwC;AACxC,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IACzF,gDAAgD;IAChD,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wDAAwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAqBD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,MAAM,EACN,aAA8B,EAC9B,WAAgC,EAChC,UAAiB,EACjB,OAAe,EACf,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,qBAwJtB"}
@@ -9,31 +9,33 @@ import { Empty } from "../empty/empty.js";
9
9
  import { Skeleton } from "../skeleton/skeleton.js";
10
10
  import { TooltipGroup, TooltipGroupTrigger } from "../tooltip/tooltip.js";
11
11
  /**
12
- * The five heatmap levels of a retention cell (Dodo Nest 2.0 › Retention matrix, drawn like the Heatmap chart):
13
- * `--chart-scale-01` (0%) to `--chart-scale-05` (75% and more). Text is Content/Primary on the two lightest steps and
14
- * `--brand-foreground` (Grey 950 in both themes) on the three lime steps, so it keeps 4.5:1 in dark mode.
12
+ * The levels of a retention cell, drawn like the Heatmap chart: grey (`--chart-scale-01`) only for 0%, as the heatmap
13
+ * keeps grey for "nothing", and four lime steps (`--chart-scale-02` to `--chart-scale-05`) for every value above 0%,
14
+ * split across the matrix's own values (see {@link retentionThresholds}), so 100% is always the darkest. Text is
15
+ * Content/Primary on the two lightest steps and `--brand-foreground` (Grey 950 in both themes) on the three darker
16
+ * lime steps, so it keeps 4.5:1 in dark mode.
15
17
  */
16
18
  export const DODO_RETENTION_CELL_VARIANTS = {
17
19
  level: {
18
20
  "0": {
19
21
  classes: "bg-chart-scale-01 text-muted-foreground",
20
- description: "0% of the cohort is still active: the empty grey step, the value still shown.",
22
+ description: "0%: nobody of the cohort is still active. The grey step, the value still shown.",
21
23
  },
22
24
  "1": {
23
25
  classes: "bg-chart-scale-02 text-foreground",
24
- description: "Below 25%.",
26
+ description: "The lowest quarter of the values above 0%: the lightest lime.",
25
27
  },
26
28
  "2": {
27
29
  classes: "bg-chart-scale-03 text-brand-foreground",
28
- description: "25% to 49%.",
30
+ description: "The second quarter.",
29
31
  },
30
32
  "3": {
31
33
  classes: "bg-chart-scale-04 text-brand-foreground",
32
- description: "50% to 74%.",
34
+ description: "The third quarter.",
33
35
  },
34
36
  "4": {
35
37
  classes: "bg-chart-scale-05 text-brand-foreground",
36
- description: "75% and more, Month 0 included.",
38
+ description: "The highest quarter, and 100% (Month 0) always: the darkest lime.",
37
39
  },
38
40
  },
39
41
  };
@@ -44,17 +46,35 @@ export const retentionCellVariants = createVariants({
44
46
  variants: DODO_RETENTION_CELL_VARIANTS,
45
47
  defaultVariants: DODO_RETENTION_CELL_DEFAULT_VARIANTS,
46
48
  });
47
- /** The level (0 to 4) of a retention percentage, as the legend bins it. */
48
- export function retentionLevel(percent) {
49
+ /** Fixed quarters, for a matrix with too few values to split: below 25%, 25–49%, 50–74%, 75% and more. */
50
+ const FIXED_THRESHOLDS = [25, 50, 75];
51
+ /**
52
+ * Splits the distinct retention values above 0% of Month 1 onward into four groups, one per lime level, as the
53
+ * Heatmap chart spreads its counts over its lime levels, so every shade is used and close values still differ. The
54
+ * cut points are always distinct, so repeated values never collapse two levels. Month 0
55
+ * 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
56
+ * (25, 50, 75%).
57
+ */
58
+ export function retentionThresholds(cohorts) {
59
+ const values = cohorts
60
+ .flatMap((cohort) => cohort.retention.slice(1))
61
+ .filter((value) => value != null && Number.isFinite(value) && value > 0)
62
+ .sort((a, b) => a - b);
63
+ // Cut on the distinct values, so repeated values (ten cells at 10%) cannot collapse two cut points into one.
64
+ const distinct = [...new Set(values)];
65
+ if (distinct.length < 4)
66
+ return FIXED_THRESHOLDS;
67
+ const at = (quarter) => distinct[Math.ceil((quarter * distinct.length) / 4)];
68
+ return [at(1), at(2), at(3)];
69
+ }
70
+ /**
71
+ * The level of a retention percentage: 0 (grey) for 0%, otherwise 1 to 4 (lightest to darkest lime) by how many of the
72
+ * `thresholds` it reaches. Without `thresholds` it uses fixed quarters (below 25%, 25–49%, 50–74%, 75% and more).
73
+ */
74
+ export function retentionLevel(percent, thresholds = FIXED_THRESHOLDS) {
49
75
  if (!(percent > 0))
50
76
  return "0";
51
- if (percent < 25)
52
- return "1";
53
- if (percent < 50)
54
- return "2";
55
- if (percent < 75)
56
- return "3";
57
- return "4";
77
+ return String(1 + thresholds.filter((cut) => percent >= cut).length);
58
78
  }
59
79
  const DEFAULT_LABELS = {
60
80
  cohort: "Cohort",
@@ -76,7 +96,8 @@ const LEVELS = ["0", "1", "2", "3", "4"];
76
96
  /**
77
97
  * How many customers of each monthly cohort are still active in the months after they joined, drawn the way the
78
98
  * Heatmap chart draws its cells. One row per cohort (cohort, size, Month 0 to Month 6); each cell writes its
79
- * retention % and is shaded on one of five lime levels (`--chart-scale-01..05`). Hovering a cell fades the others
99
+ * retention % and is shaded on one of four lime levels (`--chart-scale-02..05`), split across the matrix's own values
100
+ * 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
80
101
  * and shows the cohort, the month and how many customers that is. Months a cohort has not reached are blank.
81
102
  * The matrix keeps a 560px minimum width and scrolls sideways in a narrower parent. Put it in a `Card` titled
82
103
  * "User retention".
@@ -90,13 +111,15 @@ export function RetentionMatrix({ cohorts, months, formatPercent = defaultPercen
90
111
  const state = loading ? "loading" : cohorts.length === 0 ? "empty" : "default";
91
112
  const scroller = React.useRef(null);
92
113
  const scrollable = useScrollable(scroller, `${state}:${cohorts.length}:${columnCount}`);
114
+ const thresholds = React.useMemo(() => retentionThresholds(cohorts), [cohorts]);
93
115
  return (_jsxs("div", { "data-slot": "retention-matrix", "data-state": state, className: cn("flex w-full min-w-0 flex-col gap-3", className), ...props, children: [_jsx(TooltipGroup, { children: _jsxs("div", { ref: scroller, "data-slot": "retention-matrix-scroller", className: "relative -mx-0.5 overflow-x-auto rounded-lg outline-none focus-visible:inset-ring focus-visible:inset-ring-brand-border focus-visible:ring-2 focus-visible:ring-brand-subtle", ...(scrollable ? { tabIndex: 0, role: "region", "aria-label": text.region } : {}), children: [_jsxs("table", { className: "w-full min-w-140 border-separate border-spacing-0.5", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { scope: "col", className: "w-24 pb-2 text-start text-body-secondary text-muted-foreground", children: text.cohort }), _jsx("th", { scope: "col", className: "w-20 pe-3 pb-2 text-end text-body-secondary text-muted-foreground", children: text.size }), monthIndexes.map((month) => (_jsx("th", { scope: "col", className: "pb-2 text-center text-body-secondary text-muted-foreground", children: text.month(month) }, month)))] }) }), state === "default" ? (_jsx("tbody", { onPointerLeave: () => setHovered(null), children: cohorts.map((cohort, row) => (_jsxs("tr", { "data-slot": "retention-matrix-row", children: [_jsx("th", { scope: "row", className: "max-w-24 truncate pe-3 text-start text-foreground text-label-primary", children: cohort.label }), _jsx("td", { className: "pe-3 text-end text-body-primary text-muted-foreground tabular-nums", children: formatCount(cohort.size) }), monthIndexes.map((month) => {
94
116
  const percent = cohort.retention[month];
95
117
  if (percent == null || !Number.isFinite(percent))
96
118
  return _jsx("td", { "data-slot": "retention-matrix-blank" }, month);
97
119
  const key = `${String(cohort.id ?? row)}:${month}`;
98
120
  const active = Math.round((cohort.size * percent) / 100);
99
- return (_jsx("td", { className: "p-0", children: _jsx(TooltipGroupTrigger, { label: _jsxs("span", { className: "flex flex-col", children: [_jsxs("span", { children: [cohort.label, " \u00B7 ", text.month(month)] }), _jsxs("span", { className: "text-muted-foreground tabular-nums", children: [formatPercent(percent), " \u00B7 ", formatCount(active), " of", " ", formatCount(cohort.size)] })] }), render: _jsx("div", {}), "data-slot": "retention-matrix-cell", "data-level": retentionLevel(percent), "data-dimmed": hovered !== null && hovered !== key ? "" : undefined, className: retentionCellVariants({ level: retentionLevel(percent) }), onPointerEnter: () => setHovered(key), onPointerLeave: () => setHovered((current) => (current === key ? null : current)), children: formatPercent(percent) }) }, month));
121
+ const level = retentionLevel(percent, thresholds);
122
+ return (_jsx("td", { className: "p-0", children: _jsx(TooltipGroupTrigger, { label: _jsxs("span", { className: "flex flex-col", children: [_jsxs("span", { children: [cohort.label, " \u00B7 ", text.month(month)] }), _jsxs("span", { className: "text-muted-foreground tabular-nums", children: [formatPercent(percent), " \u00B7 ", formatCount(active), " of", " ", formatCount(cohort.size)] })] }), render: _jsx("div", {}), "data-slot": "retention-matrix-cell", "data-level": level, "data-dimmed": hovered !== null && hovered !== key ? "" : undefined, className: retentionCellVariants({ level }), onPointerEnter: () => setHovered(key), onPointerLeave: () => setHovered((current) => (current === key ? null : current)), children: formatPercent(percent) }) }, month));
100
123
  })] }, cohort.id ?? row))) })) : null, state === "loading" ? (_jsx("tbody", { "aria-hidden": "true", children: Array.from({ length: LOADING_ROWS }, (_, row) => (_jsx("tr", { children: _jsx("td", { colSpan: columnCount + 2, className: "py-1", children: _jsx(Skeleton, { shape: "line", className: "w-full" }) }) }, row))) })) : null] }), state === "loading" ? (_jsx("span", { className: "sr-only", role: "status", children: text.loading })) : null] }) }), state === "empty" ? (_jsx(Empty, { className: "py-8", icon: _jsx(CalendarIcon, { "aria-hidden": "true" }), title: text.emptyTitle, description: text.emptyDescription, titleAs: "p" })) : null, state === "default" && showLegend ? (_jsxs("div", { "data-slot": "retention-matrix-legend", "aria-hidden": "true", className: "flex items-center justify-end gap-1 text-body-secondary text-muted-foreground", children: [_jsx("span", { className: "me-1", children: text.less }), LEVELS.map((level) => (_jsx("span", { className: cn(retentionCellVariants({ level }), "size-3 min-w-0 px-0") }, level))), _jsx("span", { className: "ms-1", children: text.more })] })) : null] }));
101
124
  }
102
125
  //# sourceMappingURL=retention-matrix.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"retention-matrix.js","sourceRoot":"","sources":["../../../src/components/retention-matrix/retention-matrix.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAoB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAA0B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAwB,CAAC;AAE3E;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,yCAAyC;YAClD,WAAW,EAAE,+EAA+E;SAC7F;QACD,GAAG,EAAE;YACH,OAAO,EAAE,mCAAmC;YAC5C,WAAW,EAAE,YAAY;SAC1B;QACD,GAAG,EAAE;YACH,OAAO,EAAE,yCAAyC;YAClD,WAAW,EAAE,aAAa;SAC3B;QACD,GAAG,EAAE;YACH,OAAO,EA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AAQ,EACxC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACrB,eAEE,SAAS,EAAE,EAAE,CAAC,qBAAqB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,qBAAqB,CAAC,IADjE,KAAK,CAEV,CACH,CAAC,EACF,eAAM,SAAS,EAAC,MAAM,YAAE,IAAI,CAAC,IAAI,GAAQ,IACrC,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"retention-matrix.js","sourceRoot":"","sources":["../../../src/components/retention-matrix/retention-matrix.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAoB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAA0B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAwB,CAAC;AAE3E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,yCAAyC;YAClD,WAAW,EACT,iFAAiF;SACpF;QACD,GAAG,EAAE;YACH,OAAO,EAAE,mCAAmC;YAC5C,WAAW,EAAE,+DAA+D;SAC7E;QACD,GAAG,EAAE;YACH,OAAO,EAAE,yCAAyC;YAClD,WAAW,EAAE,qBAAqB;SACnC;QACD,GAAG,EAAE;YACH,OAAO,EAAE,yCAAyC;YAClD,WAAW,EAAE,oBAAoB;SAClC;QACD,GAAG,EAAE;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AAS,EAAC,MAAM,YAAE,IAAI,CAAC,IAAI,GAAQ,IACrC,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
@@ -13,7 +13,10 @@ export interface SankeyChartProps extends PrimitiveSankeyChartProps {
13
13
  * refunds and payouts. Compose it from children: `SankeyLink` (the bands), `SankeyNode` (the bars
14
14
  * and their labels) and `SankeyTooltip`. `data` is `{ nodes, links }`: each node has a `name`, each
15
15
  * link a `source` and `target` node index and a `value`. Nodes and bands grow in on mount over
16
- * `animationDuration`. The chart is as wide as its container; height comes from `aspectRatio`
16
+ * `animationDuration`. Nodes and bands use the tint look of the other charts by default (nodes a 20%
17
+ * wash with a solid edge on their label side, bands a lighter 12% wash in their source node's colour, 24% while
18
+ * highlighted); set
19
+ * `variant="solid"` on `SankeyLink` / `SankeyNode` for full colour. The chart is as wide as its container; height comes from `aspectRatio`
17
20
  * (default `"2 / 1"`). The default `margin` keeps 180px on each side for node labels.
18
21
  */
19
22
  export declare function SankeyChart({ label, className, ...props }: SankeyChartProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"sankey-chart.d.ts","sourceRoot":"","sources":["../../../src/components/sankey-chart/sankey-chart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,gBAAgB,IAAI,yBAAyB,EACnD,MAAM,iDAAiD,CAAC;AAGzD,8BAA8B;AAC9B,MAAM,WAAW,gBAAiB,SAAQ,yBAAyB;IACjE;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAM3E"}
1
+ {"version":3,"file":"sankey-chart.d.ts","sourceRoot":"","sources":["../../../src/components/sankey-chart/sankey-chart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,gBAAgB,IAAI,yBAAyB,EACnD,MAAM,iDAAiD,CAAC;AAGzD,8BAA8B;AAC9B,MAAM,WAAW,gBAAiB,SAAQ,yBAAyB;IACjE;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAM3E"}
@@ -8,7 +8,10 @@ import { ChartFigure } from "../chart/chart.js";
8
8
  * refunds and payouts. Compose it from children: `SankeyLink` (the bands), `SankeyNode` (the bars
9
9
  * and their labels) and `SankeyTooltip`. `data` is `{ nodes, links }`: each node has a `name`, each
10
10
  * link a `source` and `target` node index and a `value`. Nodes and bands grow in on mount over
11
- * `animationDuration`. The chart is as wide as its container; height comes from `aspectRatio`
11
+ * `animationDuration`. Nodes and bands use the tint look of the other charts by default (nodes a 20%
12
+ * wash with a solid edge on their label side, bands a lighter 12% wash in their source node's colour, 24% while
13
+ * highlighted); set
14
+ * `variant="solid"` on `SankeyLink` / `SankeyNode` for full colour. The chart is as wide as its container; height comes from `aspectRatio`
12
15
  * (default `"2 / 1"`). The default `margin` keeps 180px on each side for node labels.
13
16
  */
14
17
  export function SankeyChart({ label, className, ...props }) {
@@ -1 +1 @@
1
- {"version":3,"file":"sankey-chart.js","sourceRoot":"","sources":["../../../src/components/sankey-chart/sankey-chart.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,WAAW,IAAI,oBAAoB,GAEpC,MAAM,gDAAiD,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAoB,CAAC;AAWjD;;;;;;;;GAQG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAoB;IAC1E,OAAO,CACL,KAAC,WAAW,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,eAAY,cAAc,YACvE,KAAC,oBAAoB,OAAK,KAAK,GAAI,GACvB,CACf,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"sankey-chart.js","sourceRoot":"","sources":["../../../src/components/sankey-chart/sankey-chart.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,WAAW,IAAI,oBAAoB,GAEpC,MAAM,gDAAiD,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAoB,CAAC;AAWjD;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAoB;IAC1E,OAAO,CACL,KAAC,WAAW,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,eAAY,cAAc,YACvE,KAAC,oBAAoB,OAAK,KAAK,GAAI,GACvB,CACf,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/settings-section/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,eAAe,EACf,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/settings-section/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,eAAe,EACf,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,wBAAwB,CAAC"}
@@ -1,2 +1,3 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated -- re-exports deprecated API until 2.0 so 1.x callers keep compiling */
1
2
  export { SettingRow, SettingsLinkCard, SettingsSection, SettingToggleRow, } from "./settings-section.js";
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/settings-section/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEV,gBAAgB,EAEhB,eAAe,EAEf,gBAAgB,GAEjB,MAAM,uBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/settings-section/index.ts"],"names":[],"mappings":"AAAA,0HAA0H;AAC1H,OAAO,EACL,UAAU,EAEV,gBAAgB,EAEhB,eAAe,EAEf,gBAAgB,GAEjB,MAAM,uBAAwB,CAAC"}
@@ -67,7 +67,10 @@ export type SettingToggleRowProps = Omit<SettingRowProps, "control" | "controlId
67
67
  * label (clicking it toggles the switch) and the description is its accessible description.
68
68
  */
69
69
  export declare function SettingToggleRow({ checked, defaultChecked, onCheckedChange, disabled, name, switchProps, description, ...props }: SettingToggleRowProps): React.JSX.Element;
70
- /** Props of {@link SettingsLinkCard}. */
70
+ /**
71
+ * Props of {@link SettingsLinkCard}.
72
+ * @deprecated Use `ListItem` with `layout="tile"`. Removed in 2.0.
73
+ */
71
74
  export interface SettingsLinkCardProps extends Omit<ListItemProps, "title" | "description" | "layout" | "leading" | "trailing" | "corner" | "divider"> {
72
75
  /** Name of the settings page, e.g. "Payouts". */
73
76
  title: React.ReactNode;
@@ -84,9 +87,9 @@ export interface SettingsLinkCardProps extends Omit<ListItemProps, "title" | "de
84
87
  disabled?: boolean;
85
88
  }
86
89
  /**
87
- * A navigation tile for a settings index page, ported from the dashboard's settings cards: an icon
88
- * tile, a title and a description with a trailing chevron, built on a `ListItem` row. Pass `href` for a plain
89
- * link or `render={<Link href="/settings/payouts" />}` for a router link.
90
+ * A navigation tile for a settings index page: an icon tile, a title and a description with a trailing chevron.
91
+ * @deprecated Use `<ListItem layout="tile" leading={<FeaturedIcon icon={icon} />} title description href />`, which
92
+ * draws the same tile. This wrapper renders exactly that and is removed in 2.0.
90
93
  */
91
- export declare function SettingsLinkCard({ title, description, icon, href, render, disabled, className, ...props }: SettingsLinkCardProps): React.JSX.Element;
94
+ export declare function SettingsLinkCard({ icon, ...props }: SettingsLinkCardProps): React.JSX.Element;
92
95
  //# sourceMappingURL=settings-section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-section.d.ts","sourceRoot":"","sources":["../../../src/components/settings-section/settings-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAOL,KAAK,aAAa,EAEnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGhE,wCAAwC;AACxC,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,QAAQ,CAAC;IACnF,wCAAwC;IACxC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,yEAAyE;IACzE,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,uEAAuE;IACvE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7B,kFAAkF;IAClF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,WAAW,EACX,MAAM,EACN,MAAM,EACN,OAAO,EAAE,KAAY,EACrB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,qBA0CtB;AAED,mCAAmC;AACnC,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACjF,4CAA4C;IAC5C,KAAK,EAAE,KAAK,CAAC,S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GAAG,aAAa,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CACnF;IACD,iDAAiD;IACjD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,0FAA0F;IAC1F,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,0FAA0F;IAC1F,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,qBAAqB,qBA6BvB"}
1
+ {"version":3,"file":"settings-section.d.ts","sourceRoot":"","sources":["../../../src/components/settings-section/settings-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAOL,KAAK,aAAa,EAEnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGhE,wCAAwC;AACxC,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,QAAQ,CAAC;IACnF,wCAAwC;IACxC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,yEAAyE;IACzE,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,uEAAuE;IACvE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,IAA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AiB,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG;IAC1F,8DAA8D;IAC9D,WAAW,CAAC,EAAE,IAAI,CAChB,WAAW,EACX,SAAS,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,UAAU,GAAG,MAAM,GAAG,IAAI,CAC9E,CAAC;CACH,CAAC;AAEJ;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,cAAc,EACd,eAAe,EACf,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,WAAW,EACX,GAAG,KAAK,EACT,EAAE,qBAAqB,qBA0BvB;AAED;;;GAGG;AACH,MAAM,WAAW,qBACf,SAAQ,IAAI,CACV,aAAa,EACb,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CACnF;IACD,iDAAiD;IACjD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,0FAA0F;IAC1F,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,0FAA0F;IAC1F,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AAEH,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,qBAazE"}
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
- import { ChevronRightIcon } from "../../icons/ui/chevron-right.js";
5
4
  import { CircleInfoIcon } from "../../icons/ui/circle-info.js";
6
5
  import { cn } from "../../lib/cn.js";
6
+ import { warnDeprecated } from "../../lib/deprecation.js";
7
7
  import { hasContent } from "../../lib/has-content.js";
8
8
  import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "../card/card.js";
9
9
  import { FeaturedIcon } from "../featured-icon/featured-icon.js";
@@ -42,16 +42,13 @@ export function SettingToggleRow({ checked, defaultChecked, onCheckedChange, dis
42
42
  return (_jsx(SettingRow, { "data-slot": "setting-toggle-row", "data-disabled": disabled || undefined, description: description, controlId: switchId, descriptionId: described ? descriptionId : undefined, control: _jsx(Switch, { ...switchProps, id: switchId, checked: checked, defaultChecked: defaultChecked, onCheckedChange: onCheckedChange, disabled: disabled, name: name, "aria-describedby": described ? descriptionId : undefined }), ...props }));
43
43
  }
44
44
  /**
45
- * A navigation tile for a settings index page, ported from the dashboard's settings cards: an icon
46
- * tile, a title and a description with a trailing chevron, built on a `ListItem` row. Pass `href` for a plain
47
- * link or `render={<Link href="/settings/payouts" />}` for a router link.
45
+ * A navigation tile for a settings index page: an icon tile, a title and a description with a trailing chevron.
46
+ * @deprecated Use `<ListItem layout="tile" leading={<FeaturedIcon icon={icon} />} title description href />`, which
47
+ * draws the same tile. This wrapper renders exactly that and is removed in 2.0.
48
48
  */
49
- export function SettingsLinkCard({ title, description, icon, href, render, disabled = false, className, ...props }) {
50
- // ListItem renders the title and description into the link, so the anchor is created without children.
51
- const anchor = href === undefined ? undefined : React.createElement("a", { href });
52
- const link = disabled ? undefined : (render ?? anchor);
53
- // A List item row (Dodo Nest Dashboard rows: the settings link, chevron trailing, the whole row opens the page) in
54
- // a tile of its own. Like every List item it has no hover state.
55
- return (_jsx(ListItem, { render: link, "data-slot": "settings-link-card", "data-disabled": disabled || undefined, divider: false, className: cn("rounded-xl border border-border bg-card px-4 outline-none focus-visible:border-brand-border focus-visible:ring-2 focus-visible:ring-brand-subtle", className), leading: hasContent(icon) ? _jsx(FeaturedIcon, { icon: icon }) : undefined, title: title, description: description, trailing: link === undefined ? undefined : (_jsx("span", { "data-slot": "settings-link-card-chevron", className: "flex text-muted-foreground", children: _jsx(ChevronRightIcon, { "aria-hidden": "true", className: "size-4 rtl:rotate-180" }) })), ...props }));
49
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- the deprecated wrapper takes its deprecated props
50
+ export function SettingsLinkCard({ icon, ...props }) {
51
+ warnDeprecated("SettingsLinkCard", 'Use <ListItem layout="tile"> with the icon in a FeaturedIcon as `leading`. It is removed in 2.0.');
52
+ return (_jsx(ListItem, { layout: "tile", "data-slot": "settings-link-card", leading: hasContent(icon) ? _jsx(FeaturedIcon, { icon: icon }) : undefined, ...props }));
56
53
  }
57
54
  //# sourceMappingURL=settings-section.js.map