@dodopayments/ui 1.7.2 → 1.8.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 (417) hide show
  1. package/ai/component-registry.json +1453 -236
  2. package/ai/component-registry.md +42 -38
  3. package/ai/components/app-top-bar.md +17 -5
  4. package/ai/components/area-chart.md +2 -0
  5. package/ai/components/bar-chart.md +2 -0
  6. package/ai/components/breadcrumb.md +2 -0
  7. package/ai/components/button-group.md +2 -0
  8. package/ai/components/chart-legend.md +2 -0
  9. package/ai/components/checkout-page.md +2 -0
  10. package/ai/components/color-input.md +2 -0
  11. package/ai/components/combobox.md +199 -0
  12. package/ai/components/composed-chart.md +2 -0
  13. package/ai/components/container.md +2 -0
  14. package/ai/components/context-menu.md +2 -0
  15. package/ai/components/dialog.md +1 -0
  16. package/ai/components/direction-provider.md +2 -0
  17. package/ai/components/drawer.md +2 -0
  18. package/ai/components/field.md +2 -0
  19. package/ai/components/filter-grid.md +2 -0
  20. package/ai/components/flag.md +22 -0
  21. package/ai/components/funnel-chart.md +2 -0
  22. package/ai/components/fx-conversion.md +2 -0
  23. package/ai/components/gauge-chart.md +2 -0
  24. package/ai/components/heatmap-chart.md +2 -0
  25. package/ai/components/invoice-document.md +2 -0
  26. package/ai/components/link.md +3 -3
  27. package/ai/components/live-activity.md +2 -0
  28. package/ai/components/new-items-pill.md +2 -0
  29. package/ai/components/payment-result.md +2 -0
  30. package/ai/components/pie-chart.md +2 -0
  31. package/ai/components/plan-picker.md +2 -0
  32. package/ai/components/product-card.md +2 -0
  33. package/ai/components/proration-preview.md +2 -0
  34. package/ai/components/radar-chart.md +2 -0
  35. package/ai/components/reorder-list.md +3 -0
  36. package/ai/components/required-mark.md +22 -0
  37. package/ai/components/ring-chart.md +2 -0
  38. package/ai/components/sale-share-card.md +2 -0
  39. package/ai/components/sankey-chart.md +2 -0
  40. package/ai/components/scatter-chart.md +2 -0
  41. package/ai/components/settings-section.md +2 -0
  42. package/ai/components/sheet.md +8 -4
  43. package/ai/components/slider.md +2 -0
  44. package/ai/components/sunburst-chart.md +2 -0
  45. package/ai/components/switch-transition.md +91 -0
  46. package/ai/components/task-steps.md +2 -0
  47. package/ai/components/test-mode-banner.md +2 -2
  48. package/ai/components/timestamp.md +8 -8
  49. package/ai/components/timezone-select.md +2 -0
  50. package/ai/components/typing-indicator.md +2 -0
  51. package/ai/components/wallet-buttons.md +2 -0
  52. package/ai/components/wizard-steps.md +2 -0
  53. package/ai/skills/dodo-charts/SKILL.md +21 -12
  54. package/ai/skills/dodo-design/SKILL.md +21 -10
  55. package/bin/registry.js +15 -4
  56. package/bin/scan.d.ts +3 -2
  57. package/bin/scan.js +4 -4
  58. package/dist/components/app-top-bar/app-top-bar.d.ts +17 -3
  59. package/dist/components/app-top-bar/app-top-bar.d.ts.map +1 -1
  60. package/dist/components/app-top-bar/app-top-bar.js +25 -9
  61. package/dist/components/app-top-bar/app-top-bar.js.map +1 -1
  62. package/dist/components/app-top-bar/index.d.ts +1 -1
  63. package/dist/components/app-top-bar/index.d.ts.map +1 -1
  64. package/dist/components/app-top-bar/index.js +1 -1
  65. package/dist/components/app-top-bar/index.js.map +1 -1
  66. package/dist/components/card/card.d.ts +1 -1
  67. package/dist/components/card/card.d.ts.map +1 -1
  68. package/dist/components/card/card.js +11 -2
  69. package/dist/components/card/card.js.map +1 -1
  70. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  71. package/dist/components/checkbox/checkbox.js +7 -3
  72. package/dist/components/checkbox/checkbox.js.map +1 -1
  73. package/dist/components/{select/select-combobox.d.ts → combobox/combobox.d.ts} +1 -1
  74. package/dist/components/combobox/combobox.d.ts.map +1 -0
  75. package/dist/components/{select/select-combobox.js → combobox/combobox.js} +1 -1
  76. package/dist/components/combobox/combobox.js.map +1 -0
  77. package/dist/components/combobox/index.d.ts +2 -0
  78. package/dist/components/combobox/index.d.ts.map +1 -0
  79. package/dist/components/combobox/index.js +2 -0
  80. package/dist/components/combobox/index.js.map +1 -0
  81. package/dist/components/country-select/country-select.js +1 -1
  82. package/dist/components/country-select/country-select.js.map +1 -1
  83. package/dist/components/currency-select/currency-select.js +1 -1
  84. package/dist/components/currency-select/currency-select.js.map +1 -1
  85. package/dist/components/data-grid/data-grid.js +2 -2
  86. package/dist/components/data-grid/data-grid.js.map +1 -1
  87. package/dist/components/date-picker/date-picker.d.ts +1 -1
  88. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  89. package/dist/components/date-picker/date-picker.js +8 -7
  90. package/dist/components/date-picker/date-picker.js.map +1 -1
  91. package/dist/components/date-picker/index.d.ts +1 -1
  92. package/dist/components/date-picker/index.d.ts.map +1 -1
  93. package/dist/components/date-picker/index.js +1 -1
  94. package/dist/components/date-picker/index.js.map +1 -1
  95. package/dist/components/dialog/confirm-dialog.d.ts +7 -1
  96. package/dist/components/dialog/confirm-dialog.d.ts.map +1 -1
  97. package/dist/components/dialog/confirm-dialog.js +2 -2
  98. package/dist/components/dialog/confirm-dialog.js.map +1 -1
  99. package/dist/components/field/field.d.ts +0 -19
  100. package/dist/components/field/field.d.ts.map +1 -1
  101. package/dist/components/field/field.js +2 -13
  102. package/dist/components/field/field.js.map +1 -1
  103. package/dist/components/field/index.d.ts +1 -1
  104. package/dist/components/field/index.d.ts.map +1 -1
  105. package/dist/components/field/index.js +1 -1
  106. package/dist/components/field/index.js.map +1 -1
  107. package/dist/components/field/label.d.ts +0 -8
  108. package/dist/components/field/label.d.ts.map +1 -1
  109. package/dist/components/field/label.js +1 -9
  110. package/dist/components/field/label.js.map +1 -1
  111. package/dist/components/filter-grid/filter-grid.js +1 -1
  112. package/dist/components/filter-grid/filter-grid.js.map +1 -1
  113. package/dist/components/flag/country-flag.d.ts.map +1 -0
  114. package/dist/components/flag/country-flag.js.map +1 -0
  115. package/dist/components/flag/flag.d.ts.map +1 -0
  116. package/dist/components/{payment-logos → flag}/flag.js +1 -1
  117. package/dist/components/flag/flag.js.map +1 -0
  118. package/dist/components/flag/index.d.ts +2 -0
  119. package/dist/components/flag/index.d.ts.map +1 -0
  120. package/dist/components/flag/index.js +2 -0
  121. package/dist/components/flag/index.js.map +1 -0
  122. package/dist/components/form/form.js +1 -1
  123. package/dist/components/form/form.js.map +1 -1
  124. package/dist/components/form-field/form-field.d.ts.map +1 -1
  125. package/dist/components/form-field/form-field.js +2 -1
  126. package/dist/components/form-field/form-field.js.map +1 -1
  127. package/dist/components/input/chips-field.d.ts +6 -0
  128. package/dist/components/input/chips-field.d.ts.map +1 -1
  129. package/dist/components/input/chips-field.js +3 -1
  130. package/dist/components/input/chips-field.js.map +1 -1
  131. package/dist/components/input/input-chips-suggestions.js +1 -1
  132. package/dist/components/input/input-chips-suggestions.js.map +1 -1
  133. package/dist/components/input/input-phone.js +1 -1
  134. package/dist/components/input/input-phone.js.map +1 -1
  135. package/dist/components/input/input.d.ts +15 -0
  136. package/dist/components/input/input.d.ts.map +1 -1
  137. package/dist/components/input/input.js +9 -4
  138. package/dist/components/input/input.js.map +1 -1
  139. package/dist/components/link/link.d.ts +5 -5
  140. package/dist/components/link/link.js +5 -5
  141. package/dist/components/link/link.js.map +1 -1
  142. package/dist/components/list-toolbar/list-toolbar-date-range.d.ts +1 -1
  143. package/dist/components/list-toolbar/list-toolbar-date-range.js +3 -3
  144. package/dist/components/list-toolbar/list-toolbar-date-range.js.map +1 -1
  145. package/dist/components/list-toolbar/list-toolbar.js +1 -1
  146. package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
  147. package/dist/components/payment-logos/index.d.ts +1 -1
  148. package/dist/components/payment-logos/index.d.ts.map +1 -1
  149. package/dist/components/payment-logos/index.js +1 -1
  150. package/dist/components/payment-logos/index.js.map +1 -1
  151. package/dist/components/record-header/record-header.js +1 -1
  152. package/dist/components/record-header/record-header.js.map +1 -1
  153. package/dist/components/reorder-list/reorder-list.d.ts +7 -1
  154. package/dist/components/reorder-list/reorder-list.d.ts.map +1 -1
  155. package/dist/components/reorder-list/reorder-list.js +11 -5
  156. package/dist/components/reorder-list/reorder-list.js.map +1 -1
  157. package/dist/components/required-mark/index.d.ts +2 -0
  158. package/dist/components/required-mark/index.d.ts.map +1 -0
  159. package/dist/components/required-mark/index.js +2 -0
  160. package/dist/components/required-mark/index.js.map +1 -0
  161. package/dist/components/required-mark/required-mark.d.ts +9 -0
  162. package/dist/components/required-mark/required-mark.d.ts.map +1 -0
  163. package/dist/components/required-mark/required-mark.js +11 -0
  164. package/dist/components/required-mark/required-mark.js.map +1 -0
  165. package/dist/components/select/select.d.ts +1 -1
  166. package/dist/components/select/select.js +2 -2
  167. package/dist/components/select/select.js.map +1 -1
  168. package/dist/components/settings-section/settings-section.d.ts +3 -1
  169. package/dist/components/settings-section/settings-section.d.ts.map +1 -1
  170. package/dist/components/settings-section/settings-section.js +6 -5
  171. package/dist/components/settings-section/settings-section.js.map +1 -1
  172. package/dist/components/sheet/sheet.d.ts +6 -4
  173. package/dist/components/sheet/sheet.d.ts.map +1 -1
  174. package/dist/components/sheet/sheet.js +4 -2
  175. package/dist/components/sheet/sheet.js.map +1 -1
  176. package/dist/components/sidebar/sidebar.js +1 -1
  177. package/dist/components/sidebar/sidebar.js.map +1 -1
  178. package/dist/components/switch-transition/index.d.ts +2 -0
  179. package/dist/components/switch-transition/index.d.ts.map +1 -0
  180. package/dist/components/switch-transition/index.js +2 -0
  181. package/dist/components/switch-transition/index.js.map +1 -0
  182. package/dist/components/switch-transition/switch-transition.d.ts +30 -0
  183. package/dist/components/switch-transition/switch-transition.d.ts.map +1 -0
  184. package/dist/components/switch-transition/switch-transition.js +80 -0
  185. package/dist/components/switch-transition/switch-transition.js.map +1 -0
  186. package/dist/components/test-mode-banner/test-mode-banner.d.ts +1 -1
  187. package/dist/components/test-mode-banner/test-mode-banner.js +2 -2
  188. package/dist/components/test-mode-banner/test-mode-banner.js.map +1 -1
  189. package/dist/components/timestamp/timestamp.d.ts +5 -7
  190. package/dist/components/timestamp/timestamp.d.ts.map +1 -1
  191. package/dist/components/timestamp/timestamp.js +18 -14
  192. package/dist/components/timestamp/timestamp.js.map +1 -1
  193. package/dist/icons/index.d.ts +22 -0
  194. package/dist/icons/index.d.ts.map +1 -1
  195. package/dist/icons/index.js +22 -0
  196. package/dist/icons/index.js.map +1 -1
  197. package/dist/icons/ui/ai-agents.d.ts +3 -1
  198. package/dist/icons/ui/ai-agents.d.ts.map +1 -1
  199. package/dist/icons/ui/ai-agents.js +3 -1
  200. package/dist/icons/ui/ai-agents.js.map +1 -1
  201. package/dist/icons/ui/badge-check-2-outline-duo.d.ts +3 -0
  202. package/dist/icons/ui/badge-check-2-outline-duo.d.ts.map +1 -0
  203. package/dist/icons/ui/badge-check-2-outline-duo.js +5 -0
  204. package/dist/icons/ui/badge-check-2-outline-duo.js.map +1 -0
  205. package/dist/icons/ui/ban-outline-duo.d.ts +3 -0
  206. package/dist/icons/ui/ban-outline-duo.d.ts.map +1 -0
  207. package/dist/icons/ui/ban-outline-duo.js +5 -0
  208. package/dist/icons/ui/ban-outline-duo.js.map +1 -0
  209. package/dist/icons/ui/chart-column-outline-duo.d.ts +3 -0
  210. package/dist/icons/ui/chart-column-outline-duo.d.ts.map +1 -0
  211. package/dist/icons/ui/chart-column-outline-duo.js +5 -0
  212. package/dist/icons/ui/chart-column-outline-duo.js.map +1 -0
  213. package/dist/icons/ui/check-glyph-12.d.ts +3 -1
  214. package/dist/icons/ui/check-glyph-12.d.ts.map +1 -1
  215. package/dist/icons/ui/check-glyph-12.js +3 -1
  216. package/dist/icons/ui/check-glyph-12.js.map +1 -1
  217. package/dist/icons/ui/circle-user-outline-duo.d.ts +3 -0
  218. package/dist/icons/ui/circle-user-outline-duo.d.ts.map +1 -0
  219. package/dist/icons/ui/circle-user-outline-duo.js +5 -0
  220. package/dist/icons/ui/circle-user-outline-duo.js.map +1 -0
  221. package/dist/icons/ui/credit-card-outline-duo.d.ts +3 -0
  222. package/dist/icons/ui/credit-card-outline-duo.d.ts.map +1 -0
  223. package/dist/icons/ui/credit-card-outline-duo.js +5 -0
  224. package/dist/icons/ui/credit-card-outline-duo.js.map +1 -0
  225. package/dist/icons/ui/crown.d.ts +3 -0
  226. package/dist/icons/ui/crown.d.ts.map +1 -0
  227. package/dist/icons/ui/crown.js +5 -0
  228. package/dist/icons/ui/crown.js.map +1 -0
  229. package/dist/icons/ui/envelope-outline-duo.d.ts +3 -0
  230. package/dist/icons/ui/envelope-outline-duo.d.ts.map +1 -0
  231. package/dist/icons/ui/envelope-outline-duo.js +5 -0
  232. package/dist/icons/ui/envelope-outline-duo.js.map +1 -0
  233. package/dist/icons/ui/gear-outline-duo.d.ts +3 -0
  234. package/dist/icons/ui/gear-outline-duo.d.ts.map +1 -0
  235. package/dist/icons/ui/gear-outline-duo.js +5 -0
  236. package/dist/icons/ui/gear-outline-duo.js.map +1 -0
  237. package/dist/icons/ui/greek-temple-2-outline-duo.d.ts +3 -0
  238. package/dist/icons/ui/greek-temple-2-outline-duo.d.ts.map +1 -0
  239. package/dist/icons/ui/greek-temple-2-outline-duo.js +5 -0
  240. package/dist/icons/ui/greek-temple-2-outline-duo.js.map +1 -0
  241. package/dist/icons/ui/heart-glyph.d.ts +3 -1
  242. package/dist/icons/ui/heart-glyph.d.ts.map +1 -1
  243. package/dist/icons/ui/heart-glyph.js +3 -1
  244. package/dist/icons/ui/heart-glyph.js.map +1 -1
  245. package/dist/icons/ui/heart.d.ts +3 -1
  246. package/dist/icons/ui/heart.d.ts.map +1 -1
  247. package/dist/icons/ui/heart.js +3 -1
  248. package/dist/icons/ui/heart.js.map +1 -1
  249. package/dist/icons/ui/laptop-2.d.ts +3 -0
  250. package/dist/icons/ui/laptop-2.d.ts.map +1 -0
  251. package/dist/icons/ui/laptop-2.js +5 -0
  252. package/dist/icons/ui/laptop-2.js.map +1 -0
  253. package/dist/icons/ui/life-ring-outline-duo.d.ts +3 -0
  254. package/dist/icons/ui/life-ring-outline-duo.d.ts.map +1 -0
  255. package/dist/icons/ui/life-ring-outline-duo.js +5 -0
  256. package/dist/icons/ui/life-ring-outline-duo.js.map +1 -0
  257. package/dist/icons/ui/mobile.d.ts +3 -0
  258. package/dist/icons/ui/mobile.d.ts.map +1 -0
  259. package/dist/icons/ui/mobile.js +5 -0
  260. package/dist/icons/ui/mobile.js.map +1 -0
  261. package/dist/icons/ui/office-3-outline-duo.d.ts +3 -0
  262. package/dist/icons/ui/office-3-outline-duo.d.ts.map +1 -0
  263. package/dist/icons/ui/office-3-outline-duo.js +5 -0
  264. package/dist/icons/ui/office-3-outline-duo.js.map +1 -0
  265. package/dist/icons/ui/palette-2-outline-duo.d.ts +3 -0
  266. package/dist/icons/ui/palette-2-outline-duo.d.ts.map +1 -0
  267. package/dist/icons/ui/palette-2-outline-duo.js +5 -0
  268. package/dist/icons/ui/palette-2-outline-duo.js.map +1 -0
  269. package/dist/icons/ui/plug-2-outline-duo.d.ts +3 -0
  270. package/dist/icons/ui/plug-2-outline-duo.d.ts.map +1 -0
  271. package/dist/icons/ui/plug-2-outline-duo.js +5 -0
  272. package/dist/icons/ui/plug-2-outline-duo.js.map +1 -0
  273. package/dist/icons/ui/plug-sparkle-outline-duo.d.ts +3 -0
  274. package/dist/icons/ui/plug-sparkle-outline-duo.d.ts.map +1 -0
  275. package/dist/icons/ui/plug-sparkle-outline-duo.js +5 -0
  276. package/dist/icons/ui/plug-sparkle-outline-duo.js.map +1 -0
  277. package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts +3 -0
  278. package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts.map +1 -0
  279. package/dist/icons/ui/refresh-clockwise-outline-duo.js +5 -0
  280. package/dist/icons/ui/refresh-clockwise-outline-duo.js.map +1 -0
  281. package/dist/icons/ui/scale-outline-duo.d.ts +3 -0
  282. package/dist/icons/ui/scale-outline-duo.d.ts.map +1 -0
  283. package/dist/icons/ui/scale-outline-duo.js +5 -0
  284. package/dist/icons/ui/scale-outline-duo.js.map +1 -0
  285. package/dist/icons/ui/shop-outline-duo.d.ts +3 -0
  286. package/dist/icons/ui/shop-outline-duo.d.ts.map +1 -0
  287. package/dist/icons/ui/shop-outline-duo.js +5 -0
  288. package/dist/icons/ui/shop-outline-duo.js.map +1 -0
  289. package/dist/icons/ui/tag-outline-duo.d.ts +3 -0
  290. package/dist/icons/ui/tag-outline-duo.d.ts.map +1 -0
  291. package/dist/icons/ui/tag-outline-duo.js +5 -0
  292. package/dist/icons/ui/tag-outline-duo.js.map +1 -0
  293. package/dist/icons/ui/ticket-outline-duo.d.ts +3 -0
  294. package/dist/icons/ui/ticket-outline-duo.d.ts.map +1 -0
  295. package/dist/icons/ui/ticket-outline-duo.js +5 -0
  296. package/dist/icons/ui/ticket-outline-duo.js.map +1 -0
  297. package/dist/icons/ui/trash-2.d.ts +3 -1
  298. package/dist/icons/ui/trash-2.d.ts.map +1 -1
  299. package/dist/icons/ui/trash-2.js +3 -1
  300. package/dist/icons/ui/trash-2.js.map +1 -1
  301. package/dist/icons/ui/users-6-outline-duo.d.ts +3 -0
  302. package/dist/icons/ui/users-6-outline-duo.d.ts.map +1 -0
  303. package/dist/icons/ui/users-6-outline-duo.js +5 -0
  304. package/dist/icons/ui/users-6-outline-duo.js.map +1 -0
  305. package/dist/index.d.ts +4 -0
  306. package/dist/index.d.ts.map +1 -1
  307. package/dist/index.js +4 -0
  308. package/dist/index.js.map +1 -1
  309. package/dist/{components/date-picker/day-label.d.ts → lib/calendar-day.d.ts} +1 -1
  310. package/dist/lib/calendar-day.d.ts.map +1 -0
  311. package/dist/{components/date-picker/day-label.js → lib/calendar-day.js} +1 -1
  312. package/dist/lib/calendar-day.js.map +1 -0
  313. package/dist/lib/cn-tables.js +5 -5
  314. package/dist/lib/cn-tables.js.map +1 -1
  315. package/dist/lib/column-title.d.ts.map +1 -0
  316. package/dist/lib/column-title.js.map +1 -0
  317. package/dist/{components/date-picker/presets.d.ts → lib/date-presets.d.ts} +2 -2
  318. package/dist/lib/date-presets.d.ts.map +1 -0
  319. package/dist/{components/date-picker/presets.js → lib/date-presets.js} +2 -2
  320. package/dist/lib/date-presets.js.map +1 -0
  321. package/dist/lib/field-context.d.ts +21 -0
  322. package/dist/lib/field-context.d.ts.map +1 -0
  323. package/dist/lib/field-context.js +14 -0
  324. package/dist/lib/field-context.js.map +1 -0
  325. package/dist/lib/motion.d.ts +4 -2
  326. package/dist/lib/motion.d.ts.map +1 -1
  327. package/dist/lib/motion.js +4 -2
  328. package/dist/lib/motion.js.map +1 -1
  329. package/dist/lib/use-animated-height.d.ts +6 -0
  330. package/dist/lib/use-animated-height.d.ts.map +1 -0
  331. package/dist/lib/use-animated-height.js +67 -0
  332. package/dist/lib/use-animated-height.js.map +1 -0
  333. package/dist/primitives/ui/autocomplete.js +1 -1
  334. package/dist/primitives/ui/autocomplete.js.map +1 -1
  335. package/dist/primitives/ui/button.js +6 -6
  336. package/dist/primitives/ui/button.js.map +1 -1
  337. package/dist/primitives/ui/card.js +1 -1
  338. package/dist/primitives/ui/card.js.map +1 -1
  339. package/dist/primitives/ui/checkbox.js +1 -1
  340. package/dist/primitives/ui/checkbox.js.map +1 -1
  341. package/dist/primitives/ui/combobox.js +3 -3
  342. package/dist/primitives/ui/combobox.js.map +1 -1
  343. package/dist/primitives/ui/drawer.js +1 -1
  344. package/dist/primitives/ui/drawer.js.map +1 -1
  345. package/dist/primitives/ui/empty.js +2 -2
  346. package/dist/primitives/ui/empty.js.map +1 -1
  347. package/dist/primitives/ui/group.js +2 -2
  348. package/dist/primitives/ui/group.js.map +1 -1
  349. package/dist/primitives/ui/input-group.js +1 -1
  350. package/dist/primitives/ui/input-group.js.map +1 -1
  351. package/dist/primitives/ui/input.js +2 -2
  352. package/dist/primitives/ui/input.js.map +1 -1
  353. package/dist/primitives/ui/menu.d.ts +1 -1
  354. package/dist/primitives/ui/menu.d.ts.map +1 -1
  355. package/dist/primitives/ui/menu.js +1 -1
  356. package/dist/primitives/ui/menu.js.map +1 -1
  357. package/dist/primitives/ui/number-field.js +1 -1
  358. package/dist/primitives/ui/number-field.js.map +1 -1
  359. package/dist/primitives/ui/otp-field.js +1 -1
  360. package/dist/primitives/ui/otp-field.js.map +1 -1
  361. package/dist/primitives/ui/popover.js +1 -1
  362. package/dist/primitives/ui/popover.js.map +1 -1
  363. package/dist/primitives/ui/preview-card.js +1 -1
  364. package/dist/primitives/ui/preview-card.js.map +1 -1
  365. package/dist/primitives/ui/radio-group.js +1 -1
  366. package/dist/primitives/ui/radio-group.js.map +1 -1
  367. package/dist/primitives/ui/select.js +2 -2
  368. package/dist/primitives/ui/select.js.map +1 -1
  369. package/dist/primitives/ui/sheet.d.ts +4 -3
  370. package/dist/primitives/ui/sheet.d.ts.map +1 -1
  371. package/dist/primitives/ui/sheet.js +112 -6
  372. package/dist/primitives/ui/sheet.js.map +1 -1
  373. package/dist/primitives/ui/skeleton.js +1 -1
  374. package/dist/primitives/ui/skeleton.js.map +1 -1
  375. package/dist/primitives/ui/textarea.js +2 -2
  376. package/dist/primitives/ui/textarea.js.map +1 -1
  377. package/dist/primitives/ui/toast.js +2 -2
  378. package/dist/primitives/ui/toast.js.map +1 -1
  379. package/dist/primitives/ui/toggle-group.js +1 -1
  380. package/dist/primitives/ui/toggle-group.js.map +1 -1
  381. package/dist/primitives/ui/toggle.js +1 -1
  382. package/dist/primitives/ui/toggle.js.map +1 -1
  383. package/dist/primitives/ui/toolbar.js +1 -1
  384. package/dist/primitives/ui/toolbar.js.map +1 -1
  385. package/dist/primitives/ui/tooltip.js +1 -1
  386. package/dist/primitives/ui/tooltip.js.map +1 -1
  387. package/dist/styles/extensions.css +5 -0
  388. package/dist/styles/hover.test.tsx +154 -0
  389. package/dist/styles/rtl.test.tsx +1 -1
  390. package/dist/styles/theme-switch-tokens.test.tsx +96 -0
  391. package/dist/styles/theme.css +23 -10
  392. package/dist/styles/tokens-artwork.css +115 -0
  393. package/dist/styles/tokens-charts.css +81 -0
  394. package/dist/styles/tokens-motion.css +60 -0
  395. package/dist/styles/tokens.css +81 -340
  396. package/dist/styles/tokens.test.tsx +40 -4
  397. package/eslint/restricted-classes.js +6 -0
  398. package/package.json +5 -1
  399. package/stylelint/index.d.ts +1 -1
  400. package/stylelint/index.js +9 -2
  401. package/dist/components/country-select/country-flag.d.ts.map +0 -1
  402. package/dist/components/country-select/country-flag.js.map +0 -1
  403. package/dist/components/data-grid/column-title.d.ts.map +0 -1
  404. package/dist/components/data-grid/column-title.js.map +0 -1
  405. package/dist/components/date-picker/day-label.d.ts.map +0 -1
  406. package/dist/components/date-picker/day-label.js.map +0 -1
  407. package/dist/components/date-picker/presets.d.ts.map +0 -1
  408. package/dist/components/date-picker/presets.js.map +0 -1
  409. package/dist/components/payment-logos/flag.d.ts.map +0 -1
  410. package/dist/components/payment-logos/flag.js.map +0 -1
  411. package/dist/components/select/select-combobox.d.ts.map +0 -1
  412. package/dist/components/select/select-combobox.js.map +0 -1
  413. /package/dist/components/{country-select → flag}/country-flag.d.ts +0 -0
  414. /package/dist/components/{country-select → flag}/country-flag.js +0 -0
  415. /package/dist/components/{payment-logos → flag}/flag.d.ts +0 -0
  416. /package/dist/{components/data-grid → lib}/column-title.d.ts +0 -0
  417. /package/dist/{components/data-grid → lib}/column-title.js +0 -0
@@ -1,5 +1,7 @@
1
1
  # Heatmap Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A calendar heatmap on the bklit `HeatmapChart` primitive (visx): one column per week, one row per
4
6
  weekday, each cell filled by its level on the `--chart-scale-01..05` tokens. Compose it from
5
7
  children: `HeatmapCells`, `HeatmapXAxis` (months), `HeatmapYAxis` (weekdays), `HeatmapSeparator`
@@ -1,5 +1,7 @@
1
1
  # Invoice Document
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  An invoice as its PDF prints, ported from the dashboard's invoice preview: A4 at 72 dpi (595 wide,
4
6
  at least 842 tall) with the title, status and merchant on a grey strip, the parties, the amount due,
5
7
  the details, the lines and the totals, then Dodo's footer. It always draws light, as the PDF does.
@@ -3,7 +3,7 @@
3
3
  Navigates somewhere (Dodo Nest Link). `inline` underlines words inside a sentence and wraps with it;
4
4
  `entity` has no underline and a trailing arrow, for “View all” and IDs, and truncates on one line.
5
5
  Blue (`accent`) by default, red (`error`) next to a destructive or warning message. An inline link takes
6
- the size of its sentence; an entity link is always 14. Keep the full stop outside the link.
6
+ the size of its sentence; an entity link is always 12. Keep the full stop outside the link.
7
7
 
8
8
  Renders an `<a>`; pass a router link through `render` (`render={<NextLink href="/payments" />}`) to
9
9
  keep client-side navigation.
@@ -17,7 +17,7 @@ import { Link } from "@dodopayments/ui/link";
17
17
  Navigates somewhere (Dodo Nest Link). `inline` underlines words inside a sentence and wraps with it;
18
18
  `entity` has no underline and a trailing arrow, for “View all” and IDs, and truncates on one line.
19
19
  Blue (`accent`) by default, red (`error`) next to a destructive or warning message. An inline link takes
20
- the size of its sentence; an entity link is always 14. Keep the full stop outside the link.
20
+ the size of its sentence; an entity link is always 12. Keep the full stop outside the link.
21
21
 
22
22
  Renders an `<a>`; pass a router link through `render` (`render={<NextLink href="/payments" />}`) to
23
23
  keep client-side navigation.
@@ -27,7 +27,7 @@ keep client-side navigation.
27
27
  | `external` | `boolean` | `false` | Open the link in a new tab (`target="_blank"`, `rel="noopener noreferrer"`), end it with an up-right arrow (it replaces the entity arrow; in running text it wraps with the last word, never alone) and append `externalLabel` for screen readers (also appended to `aria-label` when set). |
28
28
  | `externalLabel` | `string` | `"(opens in a new tab)"` | Visually hidden text appended to external links. |
29
29
  | `tone` | `"accent" \| "error"` | `"accent"` | `accent`: Content/Accent (Blue 600, Blue 400 in dark). The default.<br>`error`: Content/Error (Red 600, Red 400 in dark), only next to a destructive or warning message. |
30
- | `variant` | `"inline" \| "entity"` | `"inline"` | `inline`: Underlined words inside a sentence. Takes the sentence's size and line height (Link/Primary in 14, Link/Secondary in 12) and wraps with it. The underline is the link colour at 40% and turns solid on hover.<br>`entity`: Labels/Primary (14) and a 16 trailing arrow, for “View all” and IDs that open a page. No underline until hover, when it fades in under the label. Keeps one line and truncates. |
30
+ | `variant` | `"inline" \| "entity"` | `"inline"` | `inline`: Underlined words inside a sentence. Takes the sentence's size and line height (Link/Primary in 14, Link/Secondary in 12) and wraps with it. The underline is the link colour at 40% and turns solid on hover.<br>`entity`: Labels/Secondary (12) and a 12 trailing arrow, for “View all” and IDs that open a page. No underline until hover, when it fades in under the label. Keeps one line and truncates. |
31
31
 
32
32
  Also accepts Base UI props: `render`.
33
33
 
@@ -1,5 +1,7 @@
1
1
  # Live Activity
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A small pod that reports one background task, like a phone's live activity, after interior.dev's
4
6
  live activity. Compact it shows a spinner and the percentage; hover, focus, a new task or a phase
5
7
  change opens it to show the title, detail and a progress bar. The pod springs between the two
@@ -1,5 +1,7 @@
1
1
  # New Items Pill
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A floating "3 new items" pill for feeds and chats, after interior.dev's new items pill
4
6
  (https://www.interior.dev/docs/new-items-pill). Place it in a `relative` wrapper around the scroll
5
7
  container and feed it from {@link useNewItems}. It springs in from its edge, and a live region
@@ -1,5 +1,7 @@
1
1
  # Payment Result
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Receipt card for the page a customer lands on after paying, ported from the checkout status page:
4
6
  a merchant pill, a toned icon with the outcome title, a status `Badge` and date row, the decline
5
7
  reason, then the purchased items, the totals with an optional `Alert` notice and the invoice
@@ -1,5 +1,7 @@
1
1
  # Pie Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Parts of a whole as pie or donut slices, on the bklit `PieChart` primitive (visx). Compose it from
4
6
  children: one `PieSlice` per row of `data` (`index`), and a `PieCenter` for a donut
5
7
  (`innerRadius > 0`) that shows the total, or the hovered slice. Rows are `{ label, value, color? }`
@@ -1,5 +1,7 @@
1
1
  # Plan Picker
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Plan chooser for checkout and change-plan flows, ported from the checkout product collection and
4
6
  the customer portal's change-plan sheet. Plans are cards in a `RadioGroup`: a label row with the
5
7
  radio, name, badges and price, then under a divider the description, feature chips, an `extra`
@@ -1,5 +1,7 @@
1
1
  # Product Card
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Storefront product card, ported from the Dodo store front: a square blur-up photo (or
4
6
  `imageFallback`) with an optional `badge` and an info button that slides `description` up over
5
7
  the image, then the name, `compareAtPrice` struck through, `price` and `interval`. Purchase turns
@@ -1,5 +1,7 @@
1
1
  # Proration Preview
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  What a plan change costs, ported from the customer portal's change-plan sheet: the current and
4
6
  new plan side by side, a sentence on when the change applies, then plain rows (credit for unused
5
7
  time, charge for the new plan, the amount due today and the next invoice). Amounts are integer
@@ -1,5 +1,7 @@
1
1
  # Radar Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Several series compared over the same metrics, as polygons on a radar (spider) grid, on the bklit
4
6
  `RadarChart` primitive (visx). Compose it from children: `RadarGrid`, `RadarAxis`, `RadarLabels`
5
7
  and one `RadarArea` per series (`index` into `data`). `metrics` is a list of `{ key, label }`;
@@ -1,5 +1,7 @@
1
1
  # Reorder List
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A vertical list the user can reorder by dragging or with the keyboard, after interior.dev's reorder
4
6
  list (https://www.interior.dev/docs/reorder-list). It uses `motion`'s `Reorder`: the dragged row
5
7
  lifts and the other rows spring out of its way. With the keyboard, Space grabs a row, the arrow
@@ -31,6 +33,7 @@ move without animation.
31
33
  | `disabled` | `boolean` | - | Turns off dragging and keyboard moves. |
32
34
  | `interactive` | `boolean` | - | Rows hold their own controls, such as a switch or a menu. Their content stays readable by assistive technology, a key pressed on a control does not grab the row, and a row drags only from its handle, so a click on a control never starts a drag. |
33
35
  | `onValueCommitted` | `((next: T[]) => void)` | - | Called with the final order when a drag or a keyboard move ends. |
36
+ | `variant` | `"card" \| "plain"` | `"card"` | `card` boxes each row; `plain` divides the rows with a line, for a list inside a card of its own. A dragged row lifts with a fill and a shadow either way. |
34
37
 
35
38
  ## useReorderList
36
39
 
@@ -0,0 +1,22 @@
1
+ # Required mark
2
+
3
+ > **Beta**: the API may still change in a minor release.
4
+
5
+ Decorative required marker shared by `Label` and `FieldLabel`. Hidden from assistive
6
+ technology: the control's own `required` attribute is what gets announced. Exported for a
7
+ heading over a required group of fields; give it `className="ms-1"` there.
8
+
9
+ ```tsx
10
+ import { LabelRequiredIndicator } from "@dodopayments/ui/required-mark";
11
+ ```
12
+
13
+ ## LabelRequiredIndicator
14
+
15
+ Decorative required marker shared by `Label` and `FieldLabel`. Hidden from assistive
16
+ technology: the control's own `required` attribute is what gets announced. Exported for a
17
+ heading over a required group of fields; give it `className="ms-1"` there.
18
+
19
+ | Prop | Type | Default | Description |
20
+ | --- | --- | --- | --- |
21
+ | `className` | `string` | - | Additional Tailwind classes, merged last. |
22
+
@@ -1,5 +1,7 @@
1
1
  # Ring Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Progress toward several targets as concentric rings, on the bklit `RingChart` primitive (visx).
4
6
  Compose it from children: one `Ring` per row of `data` (`index`, 0 = innermost) and an optional
5
7
  `RingCenter` that shows the sum of the values, or the hovered ring. Rows are
@@ -1,5 +1,7 @@
1
1
  # Sale share card
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the
4
6
  business chip, a headline and the amount in the brand lime with a dark outline. Always light, whatever the theme,
5
7
  so the saved picture looks the same. Capture this element at its own size, and preview it in a `ScaledFrame`.
@@ -1,5 +1,7 @@
1
1
  # Sankey Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A Sankey diagram on the bklit `SankeyChart` primitive (visx, d3-sankey): flows between nodes, each
4
6
  band as wide as its value. Use it to show where an amount goes, e.g. gross volume into fees,
5
7
  refunds and payouts. Compose it from children: `SankeyLink` (the bands), `SankeyNode` (the bars
@@ -1,5 +1,7 @@
1
1
  # Scatter Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Values over time as dots, on the bklit `ScatterChart` primitive (visx). Compose it from
4
6
  children: one `Scatter` per series (`dataKey`), `ChartGrid` or `Background`, `XAxis`, `YAxis`,
5
7
  `ChartTooltip`. Rows need a `Date` under `xDataKey` (default `"date"`) and a number under each
@@ -38,6 +38,7 @@ control on the trailing side, and optional content underneath. Ported from the d
38
38
  | `controlId` | `string` | - | `id` of the form control in `control`: the title becomes its `<label>`. |
39
39
  | `description` | `ReactNode` | - | What the setting does or its current state, under the title. |
40
40
  | `descriptionId` | `string` | - | `id` given to the description, so the control can reference it with `aria-describedby`. |
41
+ | `icon` | `ReactNode` | - | A leading icon tile before the title, e.g. `<FeaturedIcon icon={<KeyIcon />} />`. |
41
42
  | `tooltip` | `ReactNode` | - | Longer help in a tooltip on an info button next to the title. |
42
43
  | `tooltipLabel` | `string` | `"More information"` | Accessible name of the info button. |
43
44
 
@@ -65,6 +66,7 @@ label (clicking it toggles the switch) and the description is its accessible des
65
66
  | --- | --- | --- | --- |
66
67
  | `title` (required) | `ReactNode` | - | What the setting is, e.g. "Password". |
67
68
  | `description` | `ReactNode` | - | What the setting does or its current state, under the title. |
69
+ | `icon` | `ReactNode` | - | A leading icon tile before the title, e.g. `<FeaturedIcon icon={<KeyIcon />} />`. |
68
70
  | `switchProps` | `Omit<SwitchProps, "defaultChecked" \| "id" \| "disabled" \| "name" \| "checked" \| "onCheckedChange">` | - | Other props of the `Switch`, e.g. `size` or `inputRef`. |
69
71
  | `tooltip` | `ReactNode` | - | Longer help in a tooltip on an info button next to the title. |
70
72
  | `tooltipLabel` | `string` | `"More information"` | Accessible name of the info button. |
@@ -4,8 +4,10 @@ The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in f
4
4
  direction (the right in LTR). `type="side"` (default) is a grey tray 8 from the screen edges, 400 wide (`size="lg"`:
5
5
  560, `size="xl"`: 768), with the title and close on the grey chin, the body in a white panel that scrolls, and the
6
6
  actions on the grey strip; below 400 it fills the screen minus 8 on every side. `type="full"` covers the screen.
7
- Always include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over
8
- a sheet, and use a Dialog for a yes / no confirm.
7
+ Always include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`, and use a Dialog for a
8
+ yes / no confirm. A sheet can open over another, nested in its tree or not: the one behind steps back, smaller and
9
+ faded under the scrim's colour and blur, over a single scrim, and Escape or a click away closes only the top one. A sheet is at least as wide as the
10
+ one it covers, so only a sliver of that one shows.
9
11
 
10
12
  ```tsx
11
13
  import { SheetContent, Sheet, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPanel, SheetPortal, SheetTitle, SheetTrigger } from "@dodopayments/ui/sheet";
@@ -17,8 +19,10 @@ The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in f
17
19
  direction (the right in LTR). `type="side"` (default) is a grey tray 8 from the screen edges, 400 wide (`size="lg"`:
18
20
  560, `size="xl"`: 768), with the title and close on the grey chin, the body in a white panel that scrolls, and the
19
21
  actions on the grey strip; below 400 it fills the screen minus 8 on every side. `type="full"` covers the screen.
20
- Always include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over
21
- a sheet, and use a Dialog for a yes / no confirm.
22
+ Always include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`, and use a Dialog for a
23
+ yes / no confirm. A sheet can open over another, nested in its tree or not: the one behind steps back, smaller and
24
+ faded under the scrim's colour and blur, over a single scrim, and Escape or a click away closes only the top one. A sheet is at least as wide as the
25
+ one it covers, so only a sliver of that one shows.
22
26
 
23
27
  | Prop | Type | Default | Description |
24
28
  | --- | --- | --- | --- |
@@ -1,5 +1,7 @@
1
1
  # Slider
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Picks a number, or a range with two thumbs, by dragging or with the keyboard: the Dodo Nest Slider. A 4px
4
6
  track in `--tertiary`, the range in the brand colour with the Progress bar's glossy rim, and a 16px Thumb
5
7
  (Surface/Primary, a 1px gradient rim and a soft shadow) that stays inside the track at both ends. Renders
@@ -1,5 +1,7 @@
1
1
  # Sunburst Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A hierarchy as rings around a center, on the bklit `SunburstChart` primitive. Compose it from
4
6
  children: one `SunburstSegment` per arc of `buildArcs(data).arcs`, plus `SunburstCenter` (the hub:
5
7
  the focused total with `formatValue`, and a click zooms out), `SunburstLabels`, `SunburstBreadcrumb`
@@ -0,0 +1,91 @@
1
+ # Switch transition
2
+
3
+ The screen a switch of mode or business shows while the dashboard reloads its data: a slow Paper mesh
4
+ gradient in the tone's colour (green for live mode, amber for test mode, blue for a business) over the page, and the
5
+ message shimmering in the middle at heading size. It covers the whole viewport (portalled, above
6
+ sheets and dialogs), fades in, and fades out once `active` clears. The gradient stands still under
7
+ reduced motion, and is left out where WebGL 2 is unavailable.
8
+
9
+ ```tsx
10
+ import { SwitchTransition } from "@dodopayments/ui/switch-transition";
11
+ ```
12
+
13
+ ## SwitchTransition
14
+
15
+ The screen a switch of mode or business shows while the dashboard reloads its data: a slow Paper mesh
16
+ gradient in the tone's colour (green for live mode, amber for test mode, blue for a business) over the page, and the
17
+ message shimmering in the middle at heading size. It covers the whole viewport (portalled, above
18
+ sheets and dialogs), fades in, and fades out once `active` clears. The gradient stands still under
19
+ reduced motion, and is left out where WebGL 2 is unavailable.
20
+
21
+ | Prop | Type | Default | Description |
22
+ | --- | --- | --- | --- |
23
+ | `active` (required) | `boolean` | - | A switch is running. Clear it once the new mode or business has loaded. |
24
+ | `message` (required) | `string` | - | What is happening, such as "Switching to test mode". Announced politely. |
25
+ | `inline` | `boolean` | `false` | Render in place, still covering the viewport, instead of in a portal: for a page that is only this screen (a sign-in callback), so it renders on the server too. |
26
+ | `tone` | `SwitchTransitionTone` | `"brand"` | The gradient's colour: `brand` for live mode, `warning` for test mode, `info` for a business. |
27
+
28
+ ## Examples
29
+
30
+ ### switch-transition/default
31
+
32
+ ```tsx
33
+ "use client";
34
+
35
+ import { Button } from "@dodopayments/ui/button";
36
+ import { SwitchTransition } from "@dodopayments/ui/switch-transition";
37
+ import * as React from "react";
38
+
39
+ export default function SwitchTransitionDefault() {
40
+ const [active, setActive] = React.useState(false);
41
+
42
+ return (
43
+ <div className="flex flex-col items-center gap-4">
44
+ <div className="relative h-60 w-full overflow-hidden rounded-xl border border-border">
45
+ <SwitchTransition
46
+ active={active}
47
+ className="absolute"
48
+ inline
49
+ message="Switching to live mode"
50
+ />
51
+ </div>
52
+ <Button
53
+ onClick={() => {
54
+ setActive(true);
55
+ setTimeout(() => setActive(false), 2000);
56
+ }}
57
+ variant="secondary"
58
+ >
59
+ Switch mode
60
+ </Button>
61
+ </div>
62
+ );
63
+ }
64
+ ```
65
+
66
+ ### switch-transition/tones
67
+
68
+ ```tsx
69
+ "use client";
70
+
71
+ import { SwitchTransition } from "@dodopayments/ui/switch-transition";
72
+
73
+ export default function SwitchTransitionTones() {
74
+ return (
75
+ <div className="grid w-full grid-cols-1 gap-4 sm:grid-cols-3">
76
+ {(["brand", "warning", "info"] as const).map((tone) => (
77
+ <div className="relative h-40 overflow-hidden rounded-xl border border-border" key={tone}>
78
+ <SwitchTransition
79
+ active
80
+ className="absolute"
81
+ inline
82
+ message={`Tone: ${tone}`}
83
+ tone={tone}
84
+ />
85
+ </div>
86
+ ))}
87
+ </div>
88
+ );
89
+ }
90
+ ```
91
+
@@ -1,5 +1,7 @@
1
1
  # Task Steps
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A vertical checklist for a multi-step job, such as a deploy or an import, after interior.dev's task
4
6
  steps (https://www.interior.dev/docs/task-steps). Steps before `value` show a check, the step at
5
7
  `value` spins and shimmers, and later steps wait as dots. Set `failed` to mark the step at `value`
@@ -2,7 +2,7 @@
2
2
 
3
3
  Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes
4
4
  test data for live data. It is the app shell's own strip (not an Alert): a centred 12px (Body/Secondary)
5
- message on a dark strip (`bg-test-banner`: Grey 900, Grey 800 in dark mode), sticky by
5
+ message on a 36px dark strip (`bg-test-banner`: Grey 950, the Surface/Inverted fill, and Grey 800 in dark mode), sticky by
6
6
  default, with an optional underlined "Switch to live mode" link button and a "Learn more" link. It slides in from above on mount. Pair it with
7
7
  `TestModeBadge` next to test-mode records.
8
8
 
@@ -14,7 +14,7 @@ import { TestModeBanner, TestModeBadge } from "@dodopayments/ui/test-mode-banner
14
14
 
15
15
  Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes
16
16
  test data for live data. It is the app shell's own strip (not an Alert): a centred 12px (Body/Secondary)
17
- message on a dark strip (`bg-test-banner`: Grey 900, Grey 800 in dark mode), sticky by
17
+ message on a 36px dark strip (`bg-test-banner`: Grey 950, the Surface/Inverted fill, and Grey 800 in dark mode), sticky by
18
18
  default, with an optional underlined "Switch to live mode" link button and a "Learn more" link. It slides in from above on mount. Pair it with
19
19
  `TestModeBadge` next to test-mode records.
20
20
 
@@ -1,9 +1,10 @@
1
1
  # Timestamp
2
2
 
3
3
  A timestamp that reveals the exact time on hover, focus or tap: the trigger shows the time in
4
- `format`, the tooltip lists it in the preferred (or device) zone, in UTC, relative to now and as
5
- epoch milliseconds. Relative times refresh every 30 seconds. Built on the `Tooltip` primitive; on
6
- touch (coarse pointer) devices a tap toggles it, since primitive tooltips open on hover and focus only.
4
+ `format`, the card lists it in the preferred (or device) zone, in UTC, relative to now and as
5
+ epoch milliseconds. Relative times refresh every 30 seconds. Built on the `PreviewCard` primitive; on
6
+ touch (coarse pointer) devices a tap toggles it. The card is not in the tab order, so each row's copy
7
+ button is for a pointer; keyboard and screen-reader users get every zone from the trigger's own text.
7
8
 
8
9
  ```tsx
9
10
  import { Timestamp, TimeZoneProvider } from "@dodopayments/ui/timestamp";
@@ -12,9 +13,10 @@ import { Timestamp, TimeZoneProvider } from "@dodopayments/ui/timestamp";
12
13
  ## Timestamp
13
14
 
14
15
  A timestamp that reveals the exact time on hover, focus or tap: the trigger shows the time in
15
- `format`, the tooltip lists it in the preferred (or device) zone, in UTC, relative to now and as
16
- epoch milliseconds. Relative times refresh every 30 seconds. Built on the `Tooltip` primitive; on
17
- touch (coarse pointer) devices a tap toggles it, since primitive tooltips open on hover and focus only.
16
+ `format`, the card lists it in the preferred (or device) zone, in UTC, relative to now and as
17
+ epoch milliseconds. Relative times refresh every 30 seconds. Built on the `PreviewCard` primitive; on
18
+ touch (coarse pointer) devices a tap toggles it. The card is not in the tab order, so each row's copy
19
+ button is for a pointer; keyboard and screen-reader users get every zone from the trigger's own text.
18
20
 
19
21
  | Prop | Type | Default | Description |
20
22
  | --- | --- | --- | --- |
@@ -23,8 +25,6 @@ touch (coarse pointer) devices a tap toggles it, since primitive tooltips open o
23
25
  | `labels` | `TimestampLabels` | - | Labels of the UTC, relative and timestamp rows. |
24
26
  | `timeZone` | `string` | - | IANA time zone (e.g. "Asia/Kolkata") for the trigger and the first tooltip row, over the nearest `TimeZoneProvider`'s. When neither is set or valid, the trigger uses UTC and the first row uses the device's zone. |
25
27
 
26
- Also accepts Base UI props: `className`, `closeDelay`, `closeOnClick`, `delay`, `disabled`, `handle`, `payload`.
27
-
28
28
  ## TimeZoneProvider
29
29
 
30
30
  Sets the time zone of every `Timestamp` inside it (and the components built on it, such as the
@@ -1,5 +1,7 @@
1
1
  # Time zone select
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Searchable IANA time zone picker. Each option shows the zone and its current GMT offset; typing
4
6
  filters by either (underscores match spaces). The value is the IANA identifier.
5
7
 
@@ -1,5 +1,7 @@
1
1
  # Typing Indicator
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A chat bubble with three dots that ripple while someone types, and an "is typing" label, after
4
6
  interior.dev's typing indicator (https://www.interior.dev/docs/typing-indicator). The bubble grows in
5
7
  from its bottom corner and shrinks away on send. The label slides between rosters. A polite live region
@@ -1,5 +1,7 @@
1
1
  # Wallet Buttons
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Express checkout buttons for Apple Pay, Google Pay and Amazon Pay in the brands' black (white in dark mode) style,
4
6
  shown only for the wallets in `available`, with an "Or pay another way" divider before the other
5
7
  payment methods.
@@ -1,5 +1,7 @@
1
1
  # Wizard Steps
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A multi-step form with a numbered rail, a sliding panel and Back / Next buttons, after interior.dev's
4
6
  wizard steps (https://www.interior.dev/docs/wizard-steps). The panel slides in the direction of travel.
5
7
  As a step finishes its connector fills (`duration-slow`) and its check draws (`duration-very-slow`
@@ -46,24 +46,33 @@ Import each part from its subpath:
46
46
  A chart root finds its children by component type. Put the parts directly inside the root (you can
47
47
  use a fragment). Do not wrap them in your own components.
48
48
 
49
+ ## Deprecated charts
50
+
51
+ Since 1.8.0 these are deprecated, because the Dodo products use them on fewer than three features: Area, Bar,
52
+ Composed, Scatter, Pie, Ring, Sunburst, Radar, Gauge, Funnel, Heatmap and Sankey charts, and Chart legend. They
53
+ still work, but do not choose them for new UI; the table below marks them "(deprecated)". Prefer `LineChart`,
54
+ `ChoroplethChart`, `RetentionMatrix` and `ComparisonBars`, and the compact `Legend` parts for a legend. If a screen
55
+ needs one of the deprecated charts, check with the design system owners first. `npx dodo-ui doc <Chart>` shows the
56
+ current status.
57
+
49
58
  ## Choose the chart
50
59
 
51
60
  | You need to show | Use | Not |
52
61
  | --- | --- | --- |
53
- | One or a few metrics over time, with volume | `AreaChart` | `BarChart` with 90 thin bars |
62
+ | One or a few metrics over time, with volume | `AreaChart` (deprecated) | `BarChart` with 90 thin bars |
54
63
  | Several metrics over time, to compare trends | `LineChart` | Stacked areas that hide each other |
55
64
  | Gain and loss over time around zero | `LineChart` with `ProfitLossLine` | Two separate series |
56
- | Values per category or per month | `BarChart` (`orientation="horizontal"` for long labels) | `PieChart` |
57
- | Different kinds of series on one time axis (orders as columns, revenue as a line) | `ComposedChart` | Two charts stacked on top of each other |
58
- | The relation between two values per day | `ScatterChart` | `LineChart` |
59
- | Parts of one total, 5 parts or fewer | `PieChart` (donut with `innerRadius`) | A pie with 12 slices |
60
- | Progress of several items toward their own target | `RingChart` | A pie |
61
- | A hierarchy (region, then country, then method) | `SunburstChart` | Nested pies |
62
- | Several series over the same set of metrics | `RadarChart` | A bar chart with many groups |
63
- | One value against a limit (usage of a plan cap) | `GaugeChart` | A pie with two slices |
64
- | How many reach each step of a flow (checkout) | `FunnelChart` | A bar chart |
65
- | A daily count over weeks or months | `HeatmapChart` | A 180-bar chart |
66
- | Where an amount goes (gross volume into fees, refunds, payouts) | `SankeyChart` | A stacked bar |
65
+ | Values per category or per month | `BarChart` (deprecated) (`orientation="horizontal"` for long labels) | `PieChart` |
66
+ | Different kinds of series on one time axis (orders as columns, revenue as a line) | `ComposedChart` (deprecated) | Two charts stacked on top of each other |
67
+ | The relation between two values per day | `ScatterChart` (deprecated) | `LineChart` |
68
+ | Parts of one total, 5 parts or fewer | `PieChart` (deprecated) (donut with `innerRadius`) | A pie with 12 slices |
69
+ | Progress of several items toward their own target | `RingChart` (deprecated) | A pie |
70
+ | A hierarchy (region, then country, then method) | `SunburstChart` (deprecated) | Nested pies |
71
+ | Several series over the same set of metrics | `RadarChart` (deprecated) | A bar chart with many groups |
72
+ | One value against a limit (usage of a plan cap) | `GaugeChart` (deprecated) | A pie with two slices |
73
+ | How many reach each step of a flow (checkout) | `FunnelChart` (deprecated) | A bar chart |
74
+ | A daily count over weeks or months | `HeatmapChart` (deprecated) | A 180-bar chart |
75
+ | Where an amount goes (gross volume into fees, refunds, payouts) | `SankeyChart` (deprecated) | A stacked bar |
67
76
  | A value per country or region | `ChoroplethChart` | A table of 200 rows only |
68
77
  | How many customers of each monthly cohort stay active (user retention) | `RetentionMatrix` | A `HeatmapChart` with cohorts as weekdays |
69
78
  | Categories against the previous period (payments by outcome, revenue by product) | `ComparisonBars` | A grouped `BarChart` of two periods |
@@ -22,6 +22,17 @@ The components use [coss ui](https://coss.com/ui) (with Base UI underneath) and
22
22
  If no listed component fits the job, compose native elements with the tokens below. Do not pull in
23
23
  another component library.
24
24
 
25
+ ## Deprecated components
26
+
27
+ 38 components are deprecated since 1.8.0 because the Dodo products use them on fewer than three features (the
28
+ inclusion rule). They still work, but do not choose them for new UI. `npx dodo-ui doc <Component>` shows the
29
+ status; the tables below mark them "(deprecated)". Use the replacement the registry names (Menu for Context menu,
30
+ Sheet for Drawer). With none, compose the screen from components that are not deprecated, or keep the piece in
31
+ feature code. They are Breadcrumb, Button group, Checkout page, Color input, Container, Context menu, Direction
32
+ provider, Drawer, Filter grid, FX conversion, Invoice document, Live activity, New items pill, Payment result, Plan
33
+ picker, Product card, Proration preview, Reorder list, Sale share card, Slider, Task steps, Time zone select, Typing
34
+ indicator, Wallet buttons and Wizard steps, plus twelve charts and Chart legend (listed in `dodo-charts`).
35
+
25
36
  ## Choose the component
26
37
 
27
38
  | You need | Use | Not |
@@ -57,7 +68,7 @@ another component library.
57
68
  | Many hints on a row of icon buttons | `TooltipGroup` (one shared tooltip) | A `Tooltip` on each button with its own delay |
58
69
  | The dashboard search palette (jump to a page; opens on `/` or the top bar search) | `CommandPalette` with `groups` of `{ title, description, icon, tag, href }`; the `Command` parts for a custom palette or a list on the page | A searchable `Select`; actions, settings toggles or forms in the palette; item shortcut keys |
59
70
  | One line of a list or one small card (order lines, add-ons, saved payment methods, sessions, settings links) | `ListItem` (`layout` row / card / tile / add) with `leading`, `title`, `description`, `trailing` (`ListItemPrice`, a Badge, a Button), `ListItemThumbnail` for products; rows in a `<ul>` with `render={<li />}`; side-by-side tiles that read in one line (add-ons with a quantity) are `layout="tile"`; settings index tiles add `href` and a `FeaturedIcon tone="info"` as `leading` | Hand-built flex rows, a hover or selected state on a row (choices use a Radio card), a List item for tables or label/value pairs |
60
- | Actions on right-click | `ContextMenu` + `ContextMenuTrigger` + `ContextMenuContent` holding the Menu parts (`MenuItem`, `MenuSub` with `ContextMenuSubContent`), each action repeated in a visible `Menu` | A `Menu` opened from `onContextMenu`, or `ContextMenuItem`-style row names (removed) |
71
+ | Actions on right-click | `ContextMenu` (deprecated) + `ContextMenuTrigger` + `ContextMenuContent` holding the Menu parts (`MenuItem`, `MenuSub` with `ContextMenuSubContent`), each action repeated in a visible `Menu` | A `Menu` opened from `onContextMenu`, or `ContextMenuItem`-style row names (removed) |
61
72
  | Stacked sections that expand (FAQ, settings) | Stacked `Collapsible`s (`variant="card"` for settings sections) | A hand-built disclosure with `useState` and a chevron |
62
73
  | A checkbox option with its text, help, error or settings revealed when ticked (consents, opt-ins) | `Checkbox` with `label` (+ `description`, `error`, `reveal`); several consents in a `fieldset` | A `<label>` and paragraphs hand-built around a bare `Checkbox` |
63
74
  | Free-form values such as emails or tags | `Input type="chips"` in a `Field` | An `Input` that splits on commas |
@@ -66,7 +77,7 @@ another component library.
66
77
  | A password field with rules | `PasswordStrength` under the `Input` | A custom strength bar |
67
78
  | Paged lists | `LoadMore` | A hand-rolled `IntersectionObserver` |
68
79
  | Long text that is cut | `ShowMore` from `@dodopayments/ui/collapsible` | `line-clamp` with a custom toggle |
69
- | Progress of a background job | `TaskSteps` | `WizardSteps` (use it for forms the user moves through) |
80
+ | Progress of a background job | `TaskSteps` (deprecated) | `WizardSteps` (use it for forms the user moves through) |
70
81
  | Content that loads | `SkeletonSwap` | A ternary between `Skeleton` and content |
71
82
  | Live numbers (balances, counts) | `ValueFlash` | A colour class toggled by a timer |
72
83
  | Few choices shown side by side (2–3 views or values: 7 / 30 / 90 days, None / Read / Write) | `SegmentedControl` with `items` and a string `value`; `variant="ghost"` / `"outline"` for toolbar toggles (`multiple`) | `Tabs` without panels; `tone` test / live outside the mode switch |
@@ -79,7 +90,7 @@ another component library.
79
90
  | An amount of money (price, balance, refund) | `Money` with integer minor units and the ISO code (`formatMoney` for strings) | `toFixed`, dividing by 100, or a red negative amount |
80
91
  | Entering an amount (price, refund, payout) | `Input type="money"` with `currency` (emits minor units; `onCurrencyChange` joins a currency picker; `max` + `maxLabel` adds a Max button for refundable amounts) | `QuantityStepper` or `Input type="number"` with float math |
81
92
  | Picking how many of something (seats, add-ons) next to a price | `QuantityStepper` (`value`, `min` (default 0), `max`, `onValueChange`; whole numbers, 0 shows 0 with − disabled); `size="lg"` (36) in a row with a lg Button, such as Buy now | A single + button that expands into a stepper, or `Input type="number"` |
82
- | A currency conversion (settlement amount, rate, rate lock) | `FxConversion` | Two amounts and a hand-written "1 USD = ..." line |
93
+ | A currency conversion (settlement amount, rate, rate lock) | `FxConversion` (deprecated) | Two amounts and a hand-written "1 USD = ..." line |
83
94
  | A record's fields grouped in sections (payment, customer, billing) | `DetailsPanel` | A two-column Data table |
84
95
  | 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). It starts the content area, 40 under the `AppTopBar` on desktop (`pt-6 sm:pt-10`), 24 on mobile | A text back link (‹ Products) above the title, or a Page header for an in-page section heading (use a `Card` header) |
85
96
  | 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 |
@@ -87,15 +98,15 @@ another component library.
87
98
  | 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
99
  | 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
100
  | 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` |
90
- | A payment receipt or result screen | `PaymentResultCard` | A `Card` with its own status colours |
101
+ | A payment receipt or result screen | `PaymentResultCard` (deprecated) | A `Card` with its own status colours |
91
102
  | A customer's subscription (portal) with price, status and renewal dates | `SubscriptionCard` with `status`, `meta` chips and a `notice` (`CardNotice`: Retry payment for past due / on hold, a trial, a plan change, a cancellation, a pause, a missing payment method) | A `Card` with a hand-placed `Badge`, or a status message written inside the card |
92
103
  | Saved cards or bank accounts | `PaymentMethodList` | Hand-built rows with custom logo tiles |
93
- | Choosing a plan (radio cards, optional groups and quantity) | `PlanPicker` | `Select` |
104
+ | Choosing a plan (radio cards, optional groups and quantity) | `PlanPicker` (deprecated) | `Select` |
94
105
  | A status note that belongs to one card (a failed renewal with Retry payment, a paused subscription, a scheduled plan change, a discount) | `CardNotice` right after the `Card`, with a `tone` and an `action` (Button secondary `xs`); several notices join into one tab | An `Alert` placed under the card, or a hand-built tinted strip |
95
106
  | Picking a payment method at checkout or in the portal | A `RadioGroup` of `Radio variant="card"` with `logo` (a `PaymentLogo`), `note` for fees, `disabledReason`, and `content` for the method's form (it opens when selected) | Inputs inside the card's label, or a hand-built expanding card |
96
- | Explaining the cost of a plan change | `ProrationPreview` with server-provided minor-unit amounts | Client-side proration arithmetic or a custom summary |
107
+ | Explaining the cost of a plan change | `ProrationPreview` (deprecated) with server-provided minor-unit amounts | Client-side proration arithmetic or a custom summary |
97
108
  | 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
- | A self-service billing page | Compose the Customer Portal block from `SubscriptionCard`, `PlanPicker`, `ProrationPreview`, `PaymentMethodList` and a cancel `Sheet` | A new monolithic billing component |
109
+ | A self-service billing page | Compose the Customer Portal block from `SubscriptionCard`, `PlanPicker` (deprecated), `ProrationPreview` (deprecated), `PaymentMethodList` and a cancel `Sheet` | A new monolithic billing component |
99
110
  | 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
111
  | 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 |
101
112
  | 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 |
@@ -113,14 +124,14 @@ another component library.
113
124
  | A 3-D Secure bank challenge | `Dialog` (`hideCloseButton`, `disablePointerDismissal`) whose content follows the payment: the bank's sandboxed `https:` iframe in a focusable region with a countdown, a `Spinner` while verifying, then a success or error `DialogIcon` with Done or Try again | Closing the dialog automatically, or trusting the dialog instead of your provider's webhook |
114
125
  | A security audit trail with event details | `DataGrid` of events, with a row opening a `Sheet` that shows the metadata in a JSON `CodeBlock` | `ActivityTimeline` with JSON pasted into descriptions |
115
126
  | Sign-in with Google/GitHub, password, a code or a magic link | `AuthCard` (`lastUsedProvider` puts a "Last used" chip on the provider, `"password"` or `"otp"` used last) | A `Card` holding a form, provider buttons and `OtpField` |
116
- | Products for sale (storefront) | `ProductCard` in a `ProductGrid`, under a `StoreHero` | A `Card` grid with its own buy flow |
127
+ | Products for sale (storefront) | `ProductCard` (deprecated) in a `ProductGrid`, under a `StoreHero` | A `Card` grid with its own buy flow |
117
128
  | A merchant-branded surface (checkout, portal, preview) | `ThemeProvider` from `@dodopayments/ui/theme` with the merchant `appearance` (or `fromCheckoutTheme(theme)`) | Hand-set `--primary` styles or palette classes per merchant |
118
129
  | Checking a merchant colour is readable | `contrastRatio` / `ensureContrast` from `@dodopayments/ui/theme` | A hard-coded white or black label |
119
- | A component whose registry `status` is `deprecated` (docs badge, dev console warning) | Its `deprecated.replacement` | The deprecated component in new code |
130
+ | A component whose registry `status` is `deprecated` (a docs badge and notice; some also warn in the dev console, the 38 deprecated in 1.8.0 do not) | Its `deprecated.replacement`, or, with none, other components that are not deprecated | The deprecated component in new code |
120
131
  | A page title, heading, caption or big number in new UI | A text style: `font-heading text-heading-secondary sm:text-heading-primary` (page title: 20/28 on mobile, 24/32 on desktop), `text-heading-tertiary` (section title), `text-body-secondary` (caption), `font-heading text-heading-primary` (key figure), plus `text-numeric` for amounts | `text-2xl font-semibold tracking-tight` assembled by hand |
121
132
  | Lift on a raised surface or a control's 1px edge | `shadow-xs/5` (resting), `shadow-lg/5` (floating), `before:shadow-highlight` (edge) | `shadow-[...]` |
122
133
  | A denser table, toolbar or settings panel | `data-density="compact"` on the area (`comfortable` restores); `size="sm"` on Button, Input, `SelectTrigger`, `TabsList` and Badge for one compact row in a regular page | `size="sm"` on every control of a whole area, or `h-7` overrides |
123
- | A short task on a phone that keeps the page in view (a confirm, a few fields, a list to pick from) | `Drawer` (`DrawerContent` with `DrawerHeader`, `DrawerPanel`, `DrawerFooter`): a bottom panel that closes with a swipe down, the scrim, Escape or its close button; `snapPoints` for a list that can grow | A `Drawer` on a wide screen (use a `Dialog` or a `Sheet`), or a swipe as the only way to close |
134
+ | A short task on a phone that keeps the page in view (a confirm, a few fields, a list to pick from) | `Drawer` (deprecated) (`DrawerContent` with `DrawerHeader`, `DrawerPanel`, `DrawerFooter`): a bottom panel that closes with a swipe down, the scrim, Escape or its close button; `snapPoints` for a list that can grow | A `Drawer` on a wide screen (use a `Dialog` or a `Sheet`), or a swipe as the only way to close |
124
135
  | A menu, a list of options or a small panel on a phone | Nothing extra: they stay popups on their trigger. For a bottom sheet below 640px, add `mobileSheet` to `MenuContent`, a plain `SelectContent` or a `PopoverContent` without text fields | A hand-built bottom sheet, or `mobileSheet` on a popover that holds a form (the keyboard covers it; use a `Dialog` or `Drawer`) |
125
136
  | A custom control that sits next to buttons and inputs | `h-(--control-height-md)` (`-sm`, `-lg`) | A fixed `h-8` that ignores density |
126
137
  | An in-app high-contrast setting | `.high-contrast` on `<html>` or a subtree; `high-contrast:` for extra styles | `contrast-more:` alone (misses the in-app setting) |