@dodopayments/ui 1.7.1 → 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 (475) hide show
  1. package/ai/component-registry.json +1579 -219
  2. package/ai/component-registry.md +43 -39
  3. package/ai/components/app-top-bar.md +17 -5
  4. package/ai/components/area-chart.md +2 -0
  5. package/ai/components/avatar.md +3 -0
  6. package/ai/components/bar-chart.md +2 -0
  7. package/ai/components/breadcrumb.md +2 -0
  8. package/ai/components/button-group.md +2 -0
  9. package/ai/components/chart-legend.md +2 -0
  10. package/ai/components/checkout-page.md +2 -0
  11. package/ai/components/color-input.md +2 -0
  12. package/ai/components/combobox.md +199 -0
  13. package/ai/components/composed-chart.md +2 -0
  14. package/ai/components/container.md +2 -0
  15. package/ai/components/context-menu.md +2 -0
  16. package/ai/components/data-grid.md +1 -1
  17. package/ai/components/dialog.md +1 -0
  18. package/ai/components/direction-provider.md +2 -0
  19. package/ai/components/drawer.md +2 -0
  20. package/ai/components/field.md +2 -0
  21. package/ai/components/filter-grid.md +2 -0
  22. package/ai/components/flag.md +22 -0
  23. package/ai/components/funnel-chart.md +2 -0
  24. package/ai/components/fx-conversion.md +2 -0
  25. package/ai/components/gauge-chart.md +2 -0
  26. package/ai/components/heatmap-chart.md +2 -0
  27. package/ai/components/invoice-document.md +2 -0
  28. package/ai/components/link.md +3 -3
  29. package/ai/components/list-toolbar.md +3 -1
  30. package/ai/components/live-activity.md +2 -0
  31. package/ai/components/new-items-pill.md +2 -0
  32. package/ai/components/page-header.md +13 -11
  33. package/ai/components/payment-logos.md +5 -4
  34. package/ai/components/payment-result.md +2 -0
  35. package/ai/components/pie-chart.md +2 -0
  36. package/ai/components/plan-picker.md +2 -0
  37. package/ai/components/product-card.md +2 -0
  38. package/ai/components/proration-preview.md +2 -0
  39. package/ai/components/radar-chart.md +2 -0
  40. package/ai/components/reorder-list.md +3 -0
  41. package/ai/components/required-mark.md +22 -0
  42. package/ai/components/ring-chart.md +2 -0
  43. package/ai/components/sale-share-card.md +2 -0
  44. package/ai/components/sankey-chart.md +2 -0
  45. package/ai/components/scatter-chart.md +2 -0
  46. package/ai/components/segmented-control.md +14 -1
  47. package/ai/components/settings-section.md +2 -0
  48. package/ai/components/sheet.md +8 -4
  49. package/ai/components/sidebar.md +13 -2
  50. package/ai/components/slider.md +2 -0
  51. package/ai/components/spinner.md +2 -0
  52. package/ai/components/sunburst-chart.md +2 -0
  53. package/ai/components/switch-transition.md +91 -0
  54. package/ai/components/task-steps.md +2 -0
  55. package/ai/components/test-mode-banner.md +2 -2
  56. package/ai/components/timestamp.md +8 -8
  57. package/ai/components/timezone-select.md +2 -0
  58. package/ai/components/typing-indicator.md +2 -0
  59. package/ai/components/wallet-buttons.md +2 -0
  60. package/ai/components/wizard-steps.md +2 -0
  61. package/ai/skills/dodo-charts/SKILL.md +21 -12
  62. package/ai/skills/dodo-design/SKILL.md +32 -16
  63. package/bin/registry.js +15 -4
  64. package/bin/scan.d.ts +3 -2
  65. package/bin/scan.js +4 -4
  66. package/dist/components/app-top-bar/app-top-bar.d.ts +17 -3
  67. package/dist/components/app-top-bar/app-top-bar.d.ts.map +1 -1
  68. package/dist/components/app-top-bar/app-top-bar.js +37 -16
  69. package/dist/components/app-top-bar/app-top-bar.js.map +1 -1
  70. package/dist/components/app-top-bar/index.d.ts +1 -1
  71. package/dist/components/app-top-bar/index.d.ts.map +1 -1
  72. package/dist/components/app-top-bar/index.js +1 -1
  73. package/dist/components/app-top-bar/index.js.map +1 -1
  74. package/dist/components/avatar/avatar.d.ts +22 -1
  75. package/dist/components/avatar/avatar.d.ts.map +1 -1
  76. package/dist/components/avatar/avatar.js +13 -3
  77. package/dist/components/avatar/avatar.js.map +1 -1
  78. package/dist/components/card/card.d.ts +1 -1
  79. package/dist/components/card/card.d.ts.map +1 -1
  80. package/dist/components/card/card.js +11 -2
  81. package/dist/components/card/card.js.map +1 -1
  82. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  83. package/dist/components/checkbox/checkbox.js +7 -3
  84. package/dist/components/checkbox/checkbox.js.map +1 -1
  85. package/dist/components/{select/select-combobox.d.ts → combobox/combobox.d.ts} +1 -1
  86. package/dist/components/combobox/combobox.d.ts.map +1 -0
  87. package/dist/components/{select/select-combobox.js → combobox/combobox.js} +1 -1
  88. package/dist/components/combobox/combobox.js.map +1 -0
  89. package/dist/components/combobox/index.d.ts +2 -0
  90. package/dist/components/combobox/index.d.ts.map +1 -0
  91. package/dist/components/combobox/index.js +2 -0
  92. package/dist/components/combobox/index.js.map +1 -0
  93. package/dist/components/country-select/country-select.js +1 -1
  94. package/dist/components/country-select/country-select.js.map +1 -1
  95. package/dist/components/currency-select/currency-select.js +1 -1
  96. package/dist/components/currency-select/currency-select.js.map +1 -1
  97. package/dist/components/data-grid/data-grid.d.ts +1 -1
  98. package/dist/components/data-grid/data-grid.js +4 -4
  99. package/dist/components/data-grid/data-grid.js.map +1 -1
  100. package/dist/components/date-picker/date-picker.d.ts +1 -1
  101. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  102. package/dist/components/date-picker/date-picker.js +8 -7
  103. package/dist/components/date-picker/date-picker.js.map +1 -1
  104. package/dist/components/date-picker/index.d.ts +1 -1
  105. package/dist/components/date-picker/index.d.ts.map +1 -1
  106. package/dist/components/date-picker/index.js +1 -1
  107. package/dist/components/date-picker/index.js.map +1 -1
  108. package/dist/components/dialog/confirm-dialog.d.ts +7 -1
  109. package/dist/components/dialog/confirm-dialog.d.ts.map +1 -1
  110. package/dist/components/dialog/confirm-dialog.js +2 -2
  111. package/dist/components/dialog/confirm-dialog.js.map +1 -1
  112. package/dist/components/field/field.d.ts +0 -19
  113. package/dist/components/field/field.d.ts.map +1 -1
  114. package/dist/components/field/field.js +2 -13
  115. package/dist/components/field/field.js.map +1 -1
  116. package/dist/components/field/index.d.ts +1 -1
  117. package/dist/components/field/index.d.ts.map +1 -1
  118. package/dist/components/field/index.js +1 -1
  119. package/dist/components/field/index.js.map +1 -1
  120. package/dist/components/field/label.d.ts +0 -8
  121. package/dist/components/field/label.d.ts.map +1 -1
  122. package/dist/components/field/label.js +1 -9
  123. package/dist/components/field/label.js.map +1 -1
  124. package/dist/components/filter-grid/filter-grid.js +1 -1
  125. package/dist/components/filter-grid/filter-grid.js.map +1 -1
  126. package/dist/components/flag/country-flag.d.ts.map +1 -0
  127. package/dist/components/flag/country-flag.js.map +1 -0
  128. package/dist/components/flag/flag.d.ts.map +1 -0
  129. package/dist/components/{payment-logos → flag}/flag.js +1 -1
  130. package/dist/components/flag/flag.js.map +1 -0
  131. package/dist/components/flag/index.d.ts +2 -0
  132. package/dist/components/flag/index.d.ts.map +1 -0
  133. package/dist/components/flag/index.js +2 -0
  134. package/dist/components/flag/index.js.map +1 -0
  135. package/dist/components/form/form.js +1 -1
  136. package/dist/components/form/form.js.map +1 -1
  137. package/dist/components/form-field/form-field.d.ts.map +1 -1
  138. package/dist/components/form-field/form-field.js +2 -1
  139. package/dist/components/form-field/form-field.js.map +1 -1
  140. package/dist/components/input/chips-field.d.ts +6 -0
  141. package/dist/components/input/chips-field.d.ts.map +1 -1
  142. package/dist/components/input/chips-field.js +3 -1
  143. package/dist/components/input/chips-field.js.map +1 -1
  144. package/dist/components/input/input-chips-suggestions.js +1 -1
  145. package/dist/components/input/input-chips-suggestions.js.map +1 -1
  146. package/dist/components/input/input-phone.js +1 -1
  147. package/dist/components/input/input-phone.js.map +1 -1
  148. package/dist/components/input/input.d.ts +15 -0
  149. package/dist/components/input/input.d.ts.map +1 -1
  150. package/dist/components/input/input.js +9 -4
  151. package/dist/components/input/input.js.map +1 -1
  152. package/dist/components/link/link.d.ts +5 -5
  153. package/dist/components/link/link.js +5 -5
  154. package/dist/components/link/link.js.map +1 -1
  155. package/dist/components/list-toolbar/list-toolbar-date-range.d.ts +1 -1
  156. package/dist/components/list-toolbar/list-toolbar-date-range.js +3 -3
  157. package/dist/components/list-toolbar/list-toolbar-date-range.js.map +1 -1
  158. package/dist/components/list-toolbar/list-toolbar.d.ts +3 -1
  159. package/dist/components/list-toolbar/list-toolbar.d.ts.map +1 -1
  160. package/dist/components/list-toolbar/list-toolbar.js +14 -3
  161. package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
  162. package/dist/components/page-header/page-header.d.ts +11 -7
  163. package/dist/components/page-header/page-header.d.ts.map +1 -1
  164. package/dist/components/page-header/page-header.js +34 -11
  165. package/dist/components/page-header/page-header.js.map +1 -1
  166. package/dist/components/payment-logos/index.d.ts +1 -1
  167. package/dist/components/payment-logos/index.d.ts.map +1 -1
  168. package/dist/components/payment-logos/index.js +1 -1
  169. package/dist/components/payment-logos/index.js.map +1 -1
  170. package/dist/components/payment-logos/payment-logos.d.ts +8 -3
  171. package/dist/components/payment-logos/payment-logos.d.ts.map +1 -1
  172. package/dist/components/payment-logos/payment-logos.js +5 -5
  173. package/dist/components/payment-logos/payment-logos.js.map +1 -1
  174. package/dist/components/radio-group/radio-group.d.ts +2 -2
  175. package/dist/components/radio-group/radio-group.js +5 -5
  176. package/dist/components/radio-group/radio-group.js.map +1 -1
  177. package/dist/components/record-header/record-header.js +1 -1
  178. package/dist/components/record-header/record-header.js.map +1 -1
  179. package/dist/components/reorder-list/reorder-list.d.ts +7 -1
  180. package/dist/components/reorder-list/reorder-list.d.ts.map +1 -1
  181. package/dist/components/reorder-list/reorder-list.js +11 -5
  182. package/dist/components/reorder-list/reorder-list.js.map +1 -1
  183. package/dist/components/required-mark/index.d.ts +2 -0
  184. package/dist/components/required-mark/index.d.ts.map +1 -0
  185. package/dist/components/required-mark/index.js +2 -0
  186. package/dist/components/required-mark/index.js.map +1 -0
  187. package/dist/components/required-mark/required-mark.d.ts +9 -0
  188. package/dist/components/required-mark/required-mark.d.ts.map +1 -0
  189. package/dist/components/required-mark/required-mark.js +11 -0
  190. package/dist/components/required-mark/required-mark.js.map +1 -0
  191. package/dist/components/segmented-control/index.d.ts +1 -1
  192. package/dist/components/segmented-control/index.d.ts.map +1 -1
  193. package/dist/components/segmented-control/index.js +1 -1
  194. package/dist/components/segmented-control/index.js.map +1 -1
  195. package/dist/components/segmented-control/segmented-control.d.ts +19 -0
  196. package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
  197. package/dist/components/segmented-control/segmented-control.js +28 -7
  198. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  199. package/dist/components/select/select.d.ts +1 -1
  200. package/dist/components/select/select.d.ts.map +1 -1
  201. package/dist/components/select/select.js +10 -4
  202. package/dist/components/select/select.js.map +1 -1
  203. package/dist/components/settings-section/settings-section.d.ts +3 -1
  204. package/dist/components/settings-section/settings-section.d.ts.map +1 -1
  205. package/dist/components/settings-section/settings-section.js +6 -5
  206. package/dist/components/settings-section/settings-section.js.map +1 -1
  207. package/dist/components/sheet/sheet.d.ts +6 -4
  208. package/dist/components/sheet/sheet.d.ts.map +1 -1
  209. package/dist/components/sheet/sheet.js +4 -2
  210. package/dist/components/sheet/sheet.js.map +1 -1
  211. package/dist/components/sidebar/index.d.ts +1 -1
  212. package/dist/components/sidebar/index.d.ts.map +1 -1
  213. package/dist/components/sidebar/index.js +1 -1
  214. package/dist/components/sidebar/index.js.map +1 -1
  215. package/dist/components/sidebar/sidebar.d.ts +22 -3
  216. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  217. package/dist/components/sidebar/sidebar.js +28 -12
  218. package/dist/components/sidebar/sidebar.js.map +1 -1
  219. package/dist/components/spinner/spinner.d.ts +12 -1
  220. package/dist/components/spinner/spinner.d.ts.map +1 -1
  221. package/dist/components/spinner/spinner.js +2 -2
  222. package/dist/components/spinner/spinner.js.map +1 -1
  223. package/dist/components/switch-transition/index.d.ts +2 -0
  224. package/dist/components/switch-transition/index.d.ts.map +1 -0
  225. package/dist/components/switch-transition/index.js +2 -0
  226. package/dist/components/switch-transition/index.js.map +1 -0
  227. package/dist/components/switch-transition/switch-transition.d.ts +30 -0
  228. package/dist/components/switch-transition/switch-transition.d.ts.map +1 -0
  229. package/dist/components/switch-transition/switch-transition.js +80 -0
  230. package/dist/components/switch-transition/switch-transition.js.map +1 -0
  231. package/dist/components/test-mode-banner/test-mode-banner.d.ts +1 -1
  232. package/dist/components/test-mode-banner/test-mode-banner.js +2 -2
  233. package/dist/components/test-mode-banner/test-mode-banner.js.map +1 -1
  234. package/dist/components/timestamp/timestamp.d.ts +5 -7
  235. package/dist/components/timestamp/timestamp.d.ts.map +1 -1
  236. package/dist/components/timestamp/timestamp.js +18 -14
  237. package/dist/components/timestamp/timestamp.js.map +1 -1
  238. package/dist/icons/index.d.ts +22 -0
  239. package/dist/icons/index.d.ts.map +1 -1
  240. package/dist/icons/index.js +22 -0
  241. package/dist/icons/index.js.map +1 -1
  242. package/dist/icons/ui/ai-agents.d.ts +3 -1
  243. package/dist/icons/ui/ai-agents.d.ts.map +1 -1
  244. package/dist/icons/ui/ai-agents.js +3 -1
  245. package/dist/icons/ui/ai-agents.js.map +1 -1
  246. package/dist/icons/ui/badge-check-2-outline-duo.d.ts +3 -0
  247. package/dist/icons/ui/badge-check-2-outline-duo.d.ts.map +1 -0
  248. package/dist/icons/ui/badge-check-2-outline-duo.js +5 -0
  249. package/dist/icons/ui/badge-check-2-outline-duo.js.map +1 -0
  250. package/dist/icons/ui/ban-outline-duo.d.ts +3 -0
  251. package/dist/icons/ui/ban-outline-duo.d.ts.map +1 -0
  252. package/dist/icons/ui/ban-outline-duo.js +5 -0
  253. package/dist/icons/ui/ban-outline-duo.js.map +1 -0
  254. package/dist/icons/ui/chart-column-outline-duo.d.ts +3 -0
  255. package/dist/icons/ui/chart-column-outline-duo.d.ts.map +1 -0
  256. package/dist/icons/ui/chart-column-outline-duo.js +5 -0
  257. package/dist/icons/ui/chart-column-outline-duo.js.map +1 -0
  258. package/dist/icons/ui/check-glyph-12.d.ts +3 -1
  259. package/dist/icons/ui/check-glyph-12.d.ts.map +1 -1
  260. package/dist/icons/ui/check-glyph-12.js +3 -1
  261. package/dist/icons/ui/check-glyph-12.js.map +1 -1
  262. package/dist/icons/ui/circle-user-outline-duo.d.ts +3 -0
  263. package/dist/icons/ui/circle-user-outline-duo.d.ts.map +1 -0
  264. package/dist/icons/ui/circle-user-outline-duo.js +5 -0
  265. package/dist/icons/ui/circle-user-outline-duo.js.map +1 -0
  266. package/dist/icons/ui/credit-card-outline-duo.d.ts +3 -0
  267. package/dist/icons/ui/credit-card-outline-duo.d.ts.map +1 -0
  268. package/dist/icons/ui/credit-card-outline-duo.js +5 -0
  269. package/dist/icons/ui/credit-card-outline-duo.js.map +1 -0
  270. package/dist/icons/ui/crown.d.ts +3 -0
  271. package/dist/icons/ui/crown.d.ts.map +1 -0
  272. package/dist/icons/ui/crown.js +5 -0
  273. package/dist/icons/ui/crown.js.map +1 -0
  274. package/dist/icons/ui/envelope-outline-duo.d.ts +3 -0
  275. package/dist/icons/ui/envelope-outline-duo.d.ts.map +1 -0
  276. package/dist/icons/ui/envelope-outline-duo.js +5 -0
  277. package/dist/icons/ui/envelope-outline-duo.js.map +1 -0
  278. package/dist/icons/ui/gear-outline-duo.d.ts +3 -0
  279. package/dist/icons/ui/gear-outline-duo.d.ts.map +1 -0
  280. package/dist/icons/ui/gear-outline-duo.js +5 -0
  281. package/dist/icons/ui/gear-outline-duo.js.map +1 -0
  282. package/dist/icons/ui/greek-temple-2-outline-duo.d.ts +3 -0
  283. package/dist/icons/ui/greek-temple-2-outline-duo.d.ts.map +1 -0
  284. package/dist/icons/ui/greek-temple-2-outline-duo.js +5 -0
  285. package/dist/icons/ui/greek-temple-2-outline-duo.js.map +1 -0
  286. package/dist/icons/ui/heart-glyph.d.ts +3 -1
  287. package/dist/icons/ui/heart-glyph.d.ts.map +1 -1
  288. package/dist/icons/ui/heart-glyph.js +3 -1
  289. package/dist/icons/ui/heart-glyph.js.map +1 -1
  290. package/dist/icons/ui/heart.d.ts +3 -1
  291. package/dist/icons/ui/heart.d.ts.map +1 -1
  292. package/dist/icons/ui/heart.js +3 -1
  293. package/dist/icons/ui/heart.js.map +1 -1
  294. package/dist/icons/ui/laptop-2.d.ts +3 -0
  295. package/dist/icons/ui/laptop-2.d.ts.map +1 -0
  296. package/dist/icons/ui/laptop-2.js +5 -0
  297. package/dist/icons/ui/laptop-2.js.map +1 -0
  298. package/dist/icons/ui/life-ring-outline-duo.d.ts +3 -0
  299. package/dist/icons/ui/life-ring-outline-duo.d.ts.map +1 -0
  300. package/dist/icons/ui/life-ring-outline-duo.js +5 -0
  301. package/dist/icons/ui/life-ring-outline-duo.js.map +1 -0
  302. package/dist/icons/ui/mobile.d.ts +3 -0
  303. package/dist/icons/ui/mobile.d.ts.map +1 -0
  304. package/dist/icons/ui/mobile.js +5 -0
  305. package/dist/icons/ui/mobile.js.map +1 -0
  306. package/dist/icons/ui/office-3-outline-duo.d.ts +3 -0
  307. package/dist/icons/ui/office-3-outline-duo.d.ts.map +1 -0
  308. package/dist/icons/ui/office-3-outline-duo.js +5 -0
  309. package/dist/icons/ui/office-3-outline-duo.js.map +1 -0
  310. package/dist/icons/ui/palette-2-outline-duo.d.ts +3 -0
  311. package/dist/icons/ui/palette-2-outline-duo.d.ts.map +1 -0
  312. package/dist/icons/ui/palette-2-outline-duo.js +5 -0
  313. package/dist/icons/ui/palette-2-outline-duo.js.map +1 -0
  314. package/dist/icons/ui/plug-2-outline-duo.d.ts +3 -0
  315. package/dist/icons/ui/plug-2-outline-duo.d.ts.map +1 -0
  316. package/dist/icons/ui/plug-2-outline-duo.js +5 -0
  317. package/dist/icons/ui/plug-2-outline-duo.js.map +1 -0
  318. package/dist/icons/ui/plug-sparkle-outline-duo.d.ts +3 -0
  319. package/dist/icons/ui/plug-sparkle-outline-duo.d.ts.map +1 -0
  320. package/dist/icons/ui/plug-sparkle-outline-duo.js +5 -0
  321. package/dist/icons/ui/plug-sparkle-outline-duo.js.map +1 -0
  322. package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts +3 -0
  323. package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts.map +1 -0
  324. package/dist/icons/ui/refresh-clockwise-outline-duo.js +5 -0
  325. package/dist/icons/ui/refresh-clockwise-outline-duo.js.map +1 -0
  326. package/dist/icons/ui/scale-outline-duo.d.ts +3 -0
  327. package/dist/icons/ui/scale-outline-duo.d.ts.map +1 -0
  328. package/dist/icons/ui/scale-outline-duo.js +5 -0
  329. package/dist/icons/ui/scale-outline-duo.js.map +1 -0
  330. package/dist/icons/ui/shop-outline-duo.d.ts +3 -0
  331. package/dist/icons/ui/shop-outline-duo.d.ts.map +1 -0
  332. package/dist/icons/ui/shop-outline-duo.js +5 -0
  333. package/dist/icons/ui/shop-outline-duo.js.map +1 -0
  334. package/dist/icons/ui/tag-outline-duo.d.ts +3 -0
  335. package/dist/icons/ui/tag-outline-duo.d.ts.map +1 -0
  336. package/dist/icons/ui/tag-outline-duo.js +5 -0
  337. package/dist/icons/ui/tag-outline-duo.js.map +1 -0
  338. package/dist/icons/ui/ticket-outline-duo.d.ts +3 -0
  339. package/dist/icons/ui/ticket-outline-duo.d.ts.map +1 -0
  340. package/dist/icons/ui/ticket-outline-duo.js +5 -0
  341. package/dist/icons/ui/ticket-outline-duo.js.map +1 -0
  342. package/dist/icons/ui/trash-2.d.ts +3 -1
  343. package/dist/icons/ui/trash-2.d.ts.map +1 -1
  344. package/dist/icons/ui/trash-2.js +3 -1
  345. package/dist/icons/ui/trash-2.js.map +1 -1
  346. package/dist/icons/ui/users-6-outline-duo.d.ts +3 -0
  347. package/dist/icons/ui/users-6-outline-duo.d.ts.map +1 -0
  348. package/dist/icons/ui/users-6-outline-duo.js +5 -0
  349. package/dist/icons/ui/users-6-outline-duo.js.map +1 -0
  350. package/dist/index.d.ts +4 -0
  351. package/dist/index.d.ts.map +1 -1
  352. package/dist/index.js +4 -0
  353. package/dist/index.js.map +1 -1
  354. package/dist/{components/date-picker/day-label.d.ts → lib/calendar-day.d.ts} +1 -1
  355. package/dist/lib/calendar-day.d.ts.map +1 -0
  356. package/dist/{components/date-picker/day-label.js → lib/calendar-day.js} +1 -1
  357. package/dist/lib/calendar-day.js.map +1 -0
  358. package/dist/lib/cn-tables.js +5 -5
  359. package/dist/lib/cn-tables.js.map +1 -1
  360. package/dist/lib/column-title.d.ts.map +1 -0
  361. package/dist/lib/column-title.js.map +1 -0
  362. package/dist/{components/date-picker/presets.d.ts → lib/date-presets.d.ts} +2 -2
  363. package/dist/lib/date-presets.d.ts.map +1 -0
  364. package/dist/{components/date-picker/presets.js → lib/date-presets.js} +2 -2
  365. package/dist/lib/date-presets.js.map +1 -0
  366. package/dist/lib/field-context.d.ts +21 -0
  367. package/dist/lib/field-context.d.ts.map +1 -0
  368. package/dist/lib/field-context.js +14 -0
  369. package/dist/lib/field-context.js.map +1 -0
  370. package/dist/lib/motion.d.ts +4 -2
  371. package/dist/lib/motion.d.ts.map +1 -1
  372. package/dist/lib/motion.js +4 -2
  373. package/dist/lib/motion.js.map +1 -1
  374. package/dist/lib/use-animated-height.d.ts +6 -0
  375. package/dist/lib/use-animated-height.d.ts.map +1 -0
  376. package/dist/lib/use-animated-height.js +67 -0
  377. package/dist/lib/use-animated-height.js.map +1 -0
  378. package/dist/primitives/lib/segmented-control.js +2 -2
  379. package/dist/primitives/lib/segmented-control.js.map +1 -1
  380. package/dist/primitives/ui/autocomplete.js +1 -1
  381. package/dist/primitives/ui/autocomplete.js.map +1 -1
  382. package/dist/primitives/ui/button.js +6 -6
  383. package/dist/primitives/ui/button.js.map +1 -1
  384. package/dist/primitives/ui/card.js +1 -1
  385. package/dist/primitives/ui/card.js.map +1 -1
  386. package/dist/primitives/ui/checkbox.js +1 -1
  387. package/dist/primitives/ui/checkbox.js.map +1 -1
  388. package/dist/primitives/ui/combobox.js +3 -3
  389. package/dist/primitives/ui/combobox.js.map +1 -1
  390. package/dist/primitives/ui/dialog.d.ts.map +1 -1
  391. package/dist/primitives/ui/dialog.js +4 -2
  392. package/dist/primitives/ui/dialog.js.map +1 -1
  393. package/dist/primitives/ui/drawer.js +1 -1
  394. package/dist/primitives/ui/drawer.js.map +1 -1
  395. package/dist/primitives/ui/empty.js +2 -2
  396. package/dist/primitives/ui/empty.js.map +1 -1
  397. package/dist/primitives/ui/group.js +2 -2
  398. package/dist/primitives/ui/group.js.map +1 -1
  399. package/dist/primitives/ui/input-group.js +1 -1
  400. package/dist/primitives/ui/input-group.js.map +1 -1
  401. package/dist/primitives/ui/input.js +2 -2
  402. package/dist/primitives/ui/input.js.map +1 -1
  403. package/dist/primitives/ui/menu.d.ts +1 -1
  404. package/dist/primitives/ui/menu.d.ts.map +1 -1
  405. package/dist/primitives/ui/menu.js +1 -1
  406. package/dist/primitives/ui/menu.js.map +1 -1
  407. package/dist/primitives/ui/number-field.js +1 -1
  408. package/dist/primitives/ui/number-field.js.map +1 -1
  409. package/dist/primitives/ui/otp-field.js +1 -1
  410. package/dist/primitives/ui/otp-field.js.map +1 -1
  411. package/dist/primitives/ui/popover.js +1 -1
  412. package/dist/primitives/ui/popover.js.map +1 -1
  413. package/dist/primitives/ui/preview-card.js +1 -1
  414. package/dist/primitives/ui/preview-card.js.map +1 -1
  415. package/dist/primitives/ui/radio-group.js +1 -1
  416. package/dist/primitives/ui/radio-group.js.map +1 -1
  417. package/dist/primitives/ui/select.js +2 -2
  418. package/dist/primitives/ui/select.js.map +1 -1
  419. package/dist/primitives/ui/sheet.d.ts +4 -3
  420. package/dist/primitives/ui/sheet.d.ts.map +1 -1
  421. package/dist/primitives/ui/sheet.js +113 -7
  422. package/dist/primitives/ui/sheet.js.map +1 -1
  423. package/dist/primitives/ui/sidebar.js +2 -2
  424. package/dist/primitives/ui/sidebar.js.map +1 -1
  425. package/dist/primitives/ui/skeleton.js +1 -1
  426. package/dist/primitives/ui/skeleton.js.map +1 -1
  427. package/dist/primitives/ui/switch.d.ts +2 -2
  428. package/dist/primitives/ui/switch.d.ts.map +1 -1
  429. package/dist/primitives/ui/switch.js +2 -2
  430. package/dist/primitives/ui/switch.js.map +1 -1
  431. package/dist/primitives/ui/table.js +4 -4
  432. package/dist/primitives/ui/table.js.map +1 -1
  433. package/dist/primitives/ui/textarea.js +2 -2
  434. package/dist/primitives/ui/textarea.js.map +1 -1
  435. package/dist/primitives/ui/toast.js +2 -2
  436. package/dist/primitives/ui/toast.js.map +1 -1
  437. package/dist/primitives/ui/toggle-group.js +1 -1
  438. package/dist/primitives/ui/toggle-group.js.map +1 -1
  439. package/dist/primitives/ui/toggle.js +1 -1
  440. package/dist/primitives/ui/toggle.js.map +1 -1
  441. package/dist/primitives/ui/toolbar.js +1 -1
  442. package/dist/primitives/ui/toolbar.js.map +1 -1
  443. package/dist/primitives/ui/tooltip.js +1 -1
  444. package/dist/primitives/ui/tooltip.js.map +1 -1
  445. package/dist/styles/extensions.css +5 -0
  446. package/dist/styles/hover.test.tsx +154 -0
  447. package/dist/styles/rtl.test.tsx +1 -1
  448. package/dist/styles/theme-switch-tokens.test.tsx +96 -0
  449. package/dist/styles/theme.css +90 -10
  450. package/dist/styles/tokens-artwork.css +115 -0
  451. package/dist/styles/tokens-charts.css +81 -0
  452. package/dist/styles/tokens-motion.css +60 -0
  453. package/dist/styles/tokens.css +113 -342
  454. package/dist/styles/tokens.test.tsx +187 -4
  455. package/eslint/restricted-classes.js +6 -0
  456. package/package.json +5 -1
  457. package/stylelint/index.d.ts +1 -1
  458. package/stylelint/index.js +9 -2
  459. package/dist/components/country-select/country-flag.d.ts.map +0 -1
  460. package/dist/components/country-select/country-flag.js.map +0 -1
  461. package/dist/components/data-grid/column-title.d.ts.map +0 -1
  462. package/dist/components/data-grid/column-title.js.map +0 -1
  463. package/dist/components/date-picker/day-label.d.ts.map +0 -1
  464. package/dist/components/date-picker/day-label.js.map +0 -1
  465. package/dist/components/date-picker/presets.d.ts.map +0 -1
  466. package/dist/components/date-picker/presets.js.map +0 -1
  467. package/dist/components/payment-logos/flag.d.ts.map +0 -1
  468. package/dist/components/payment-logos/flag.js.map +0 -1
  469. package/dist/components/select/select-combobox.d.ts.map +0 -1
  470. package/dist/components/select/select-combobox.js.map +0 -1
  471. /package/dist/components/{country-select → flag}/country-flag.d.ts +0 -0
  472. /package/dist/components/{country-select → flag}/country-flag.js +0 -0
  473. /package/dist/components/{payment-logos → flag}/flag.d.ts +0 -0
  474. /package/dist/{components/data-grid → lib}/column-title.d.ts +0 -0
  475. /package/dist/{components/data-grid → lib}/column-title.js +0 -0
@@ -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,23 +90,23 @@ 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
- | The title row at the top of every page (title, back or breadcrumb, status, up to two buttons) | `PageHeader` with `title`, `description`, `back` (one level up) or `breadcrumb` (2+ levels), `meta` (Badge, Copyable ID), `help` and `actions` (two `Button size="lg"`, one primary at most) | A text back link (‹ Products) above the title, or a Page header for an in-page section heading (use a `Card` header) |
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 |
86
- | The bar at the top of every dashboard page: search, Games, Milestones (Setup guide while setting up), Dodo AI, chat, theme, notifications, account | `AppTopBar` (`notifications` fills its lg Popover, `account` its Menu; `showSetupGuide` swaps Milestones for Setup guide; it collapses itself below 672px). The page content starts 32 below it (`pt-8`), and Sentra opens from its Dodo AI button, not from the Sidebar | Page actions or a count on the bell in the top bar; a hand-built header row; a Sentra item in the Sidebar nav |
97
+ | The bar at the top of every dashboard page: search, Games, Milestones (Setup guide while setting up), Dodo AI, chat, theme, notifications, account | `AppTopBar` (`notifications` fills its lg Popover, `account` its Menu; `showSetupGuide` swaps Milestones for Setup guide; it collapses itself below 672px). The page content starts 40 below it on desktop and 24 on mobile (`pt-6 sm:pt-10`), and Sentra opens from its Dodo AI button, not from the Sidebar | Page actions or a count on the bell in the top bar; a hand-built header row; a Sentra item in the Sidebar nav |
87
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 |
120
- | A page title, heading, caption or big number in new UI | A text style: `font-heading text-heading-secondary` (page title), `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 |
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 |
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) |
@@ -502,8 +513,8 @@ pass `suggestions` to the same `Input` (it loads the list on demand) instead of
502
513
 
503
514
  Use the Dodo Nest text styles. Each style sets the size, line height, letter spacing and weight:
504
515
 
505
- - `text-heading-primary`: key figures
506
- - `text-heading-secondary`: page titles
516
+ - `text-heading-primary`: page titles on desktop, key figures
517
+ - `text-heading-secondary`: page titles on mobile
507
518
  - `text-heading-tertiary`: section and dialog titles
508
519
  - `text-heading-quaternary`: card titles
509
520
  - `text-body-primary`: body copy, table cells
@@ -525,7 +536,7 @@ paragraph that is a `div` or `span`.
525
536
 
526
537
  ```tsx
527
538
  // Good
528
- <h1 className="font-heading text-heading-secondary text-foreground">Payments</h1>
539
+ <h1 className="font-heading text-heading-secondary text-foreground sm:text-heading-primary">Payments</h1>
529
540
  <p className="text-body-primary text-muted-foreground">Every payment in the last 30 days.</p>
530
541
  <td className="text-right tabular-nums">$1,240.00</td>
531
542
  <td className="font-mono text-xs text-muted-foreground">pay_0NxJ7c2e</td>
@@ -661,6 +672,11 @@ The semantic tokens use shadcn-style names. Each `X` has an `X-foreground` for c
661
672
  | Radius | `rounded-lg` controls, `rounded-xl` / `rounded-2xl` cards, dialogs and popovers, `rounded-md` menu items, `rounded-sm` badges |
662
673
  | Shadow | `shadow-xs` inputs and secondary buttons, `shadow-lg` popovers, menus and dialogs |
663
674
 
675
+ - Use-case names are also available and paint the same colours: `bg-surface-secondary` (`bg-muted`),
676
+ `bg-surface-hover` (`bg-accent`), `text-content-primary` (`text-foreground`), `text-content-secondary`
677
+ (`text-muted-foreground`), `border-border-primary` (`border-border`); `rounded-control`, `rounded-panel`,
678
+ `rounded-tray`; `duration-open`, `duration-close`. Keep `bg-background`, `bg-card` and `bg-popover` for
679
+ those three fills: theme rules select them by class name.
664
680
  - The logo keeps its brand tokens (`--logo-*`). Use them only for `Logo`.
665
681
  - Solid `variant="destructive"` (white on `bg-destructive`) is below WCAG AA for normal-size text
666
682
  (about 3.8:1). Where that is important, use `destructive-outline`.
package/bin/registry.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // Loaders shared by the dodo-ui CLI (bin/dodo-ui.js) and its MCP server (bin/mcp.js). They read the
2
2
  // docs bundled in this package's ai/ folder and the shipped tokens.css. Node built-ins only.
3
3
  import { existsSync, readFileSync } from "node:fs";
4
- import { fileURLToPath } from "node:url";
4
+ import { fileURLToPath, pathToFileURL } from "node:url";
5
5
 
6
6
  /** @param {string} file Path inside ai/ (keep a trailing slash for a directory). */
7
7
  export const aiPath = (file) => fileURLToPath(new URL(`../ai/${file}`, import.meta.url));
@@ -67,12 +67,23 @@ export function tokensPath() {
67
67
  }
68
68
 
69
69
  /**
70
- * Every custom property declared in tokens.css, with its value in each context it is set in
71
- * (`:root` for light, `.dark`, `@media (prefers-contrast: more) > .dark`, `[data-density="compact"]`...).
70
+ * tokens.css with the token files it imports (`@import "./tokens-charts.css";`) put in place of each import.
71
+ * @param {string} file
72
+ * @returns {string}
73
+ */
74
+ function readTokensCss(file) {
75
+ return readFileSync(file, "utf8").replace(/@import\s+"(\.\/[^"]+\.css)";/g, (_, relative) =>
76
+ readTokensCss(fileURLToPath(new URL(relative, pathToFileURL(file)))),
77
+ );
78
+ }
79
+
80
+ /**
81
+ * Every custom property declared in tokens.css and the token files it imports, with its value in each
82
+ * context it is set in (`:root` for light, `.dark`, `@media (prefers-contrast: more) > .dark`, `[data-density="compact"]`...).
72
83
  * @returns {{ name: string, values: Record<string, string> }[]}
73
84
  */
74
85
  export function readTokens() {
75
- const css = readFileSync(tokensPath(), "utf8").replace(/\/\*[\s\S]*?\*\//g, "");
86
+ const css = readTokensCss(tokensPath()).replace(/\/\*[\s\S]*?\*\//g, "");
76
87
  /** @type {Map<string, Record<string, string>>} */
77
88
  const tokens = new Map();
78
89
  /** @type {string[]} */
package/bin/scan.d.ts CHANGED
@@ -6,7 +6,7 @@ export interface ScanRegistryComponent {
6
6
  title: string;
7
7
  exports: string[];
8
8
  status?: string;
9
- deprecated?: { since: string; replacement?: string; removeIn: string };
9
+ deprecated?: { since: string; replacement?: string; removeIn?: string };
10
10
  }
11
11
 
12
12
  export interface ScanRegistry {
@@ -33,7 +33,8 @@ export interface ScanReport {
33
33
  component: string;
34
34
  replacement: string | null;
35
35
  since: string;
36
- removeIn: string;
36
+ /** Null while the removal is not scheduled. */
37
+ removeIn: string | null;
37
38
  }[];
38
39
  files: { file: string; ds: number; competing: number; raw: number; nonDs: number }[];
39
40
  threshold: { minAdoption: number | null; pass: boolean };
package/bin/scan.js CHANGED
@@ -65,7 +65,7 @@ const RAW_EQUIVALENTS = /** @type {const} */ ({
65
65
  * @property {string} title
66
66
  * @property {string[]} exports
67
67
  * @property {string} [status]
68
- * @property {{ since: string, replacement?: string, removeIn: string }} [deprecated]
68
+ * @property {{ since: string, replacement?: string, removeIn?: string }} [deprecated]
69
69
  */
70
70
 
71
71
  /**
@@ -209,7 +209,7 @@ function lineIndex(text) {
209
209
  * @property {string} component
210
210
  * @property {string | null} replacement
211
211
  * @property {string} since
212
- * @property {string} removeIn
212
+ * @property {string | null} removeIn Null while the removal is not scheduled.
213
213
  */
214
214
 
215
215
  /**
@@ -246,7 +246,7 @@ function scanSource(file, text, deprecated) {
246
246
  component: component.title,
247
247
  replacement: component.deprecated.replacement ?? null,
248
248
  since: component.deprecated.since,
249
- removeIn: component.deprecated.removeIn,
249
+ removeIn: component.deprecated.removeIn ?? null,
250
250
  });
251
251
  };
252
252
 
@@ -450,7 +450,7 @@ export function formatReport(report, top = 10) {
450
450
  `${d.file}:${d.line}`,
451
451
  d.name,
452
452
  d.replacement ? `use ${d.replacement}` : "no replacement",
453
- `removed in ${d.removeIn}`,
453
+ d.removeIn ? `removed in ${d.removeIn}` : "removal not scheduled",
454
454
  ]),
455
455
  "None.",
456
456
  );
@@ -48,7 +48,7 @@ export interface AppTopBarLabels {
48
48
  account?: string;
49
49
  /** The mobile menu button that opens the sidebar. @default "Open sidebar" */
50
50
  menu?: string;
51
- /** The mobile ••• button. @default "More" */
51
+ /** @deprecated The phone row no longer has a ••• menu; this label is unused. */
52
52
  more?: string;
53
53
  }
54
54
  /** The two themes the top bar toggle switches between. */
@@ -156,11 +156,25 @@ export interface AppTopBarSupportItemProps {
156
156
  * `href` row opens its page in a new tab and leaves the panel open, as the dashboard's does.
157
157
  */
158
158
  export declare function AppTopBarSupportItem({ icon, children, href, onClick, className, }: AppTopBarSupportItemProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
159
+ export interface AppTopBarThemeItemProps {
160
+ /** @default { dark: "Dark mode", light: "Light mode" } */
161
+ labels?: {
162
+ dark?: string;
163
+ light?: string;
164
+ };
165
+ }
166
+ /**
167
+ * Old-main's theme item for the account menu on the mobile row, where the bar has no theme toggle: a moon and
168
+ * "Dark mode" in light, a sun and "Light mode" in dark. Put it in `account` where it belongs; it renders nothing
169
+ * on desktop.
170
+ */
171
+ export declare function AppTopBarThemeItem({ labels }: AppTopBarThemeItemProps): React.JSX.Element | null;
159
172
  /**
160
173
  * The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command
161
174
  * palette), Dodo Games, Milestones (Setup guide while the business is setting up), Dodo AI, chat, theme,
162
- * notifications and the account on the right. Below a 672px bar it collapses: a menu button opens the sidebar,
163
- * search becomes an icon and Games, Milestones or Setup guide, Dodo AI, chat and theme move into a ••• Menu. It has no fill: put it first in the main panel.
175
+ * notifications and the account on the right. Below a 672px bar it collapses as old-main's phone bar: a menu button opens the sidebar,
176
+ * search becomes an icon, Setup guide, Dodo AI and chat stay as buttons, Games and Milestones leave the bar and the
177
+ * theme moves into the account menu (`AppTopBarThemeItem`). It has no fill: put it first in the main panel.
164
178
  */
165
179
  export declare function AppTopBar({ className, breakpoint, onSearch, searchShortcut, showGames, onOpenGames, showMilestones, milestonesProgress, onOpenMilestones, showSetupGuide, setupGuideProgress, onOpenSetupGuide, showAi, onOpenAi, onOpenChat, theme, defaultTheme, onToggleTheme, notifications, notificationsCount, onOpenNotifications, support, account, onOpenAccount, user, onOpenSidebar, labels, ...props }: AppTopBarProps): React.JSX.Element;
166
180
  //# sourceMappingURL=app-top-bar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-top-bar.d.ts","sourceRoot":"","sources":["../../../src/components/app-top-bar/app-top-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAcpC,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAQ9E;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;CAkB5B,CAAC;AAEX,eAAO,MAAM,iCAAiC;;CAAkC,CAAC;AAQjF,MAAM,WAAW,eAAe;IAC9B,mGAAmG;IACnG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,aAAa,CAAC,EAAE,MA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AK,CAAC,SAAS,CAAC;IAC1B,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,SAAS,GACV,EAAE,yBAAyB,0EA2B3B;AA0FD;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,UAAU,EACV,QAAQ,EACR,cAAqB,EACrB,SAAgB,EAChB,WAAW,EACX,cAAqB,EACrB,kBAAsB,EACtB,gBAAgB,EAChB,cAAsB,EACtB,kBAAsB,EACtB,gBAAgB,EAChB,MAAa,EACb,QAAQ,EACR,UAAU,EACV,KAAK,EACL,YAAsB,EACtB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,OAAO,EACP,aAAa,EACb,IAAI,EACJ,aAAa,EACb,MAAM,EACN,GAAG,KAAK,EACT,EAAE,cAAc,qBAoLhB"}
1
+ {"version":3,"file":"app-top-bar.d.ts","sourceRoot":"","sources":["../../../src/components/app-top-bar/app-top-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAcpC,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAQ9E;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;CAkB5B,CAAC;AAEX,eAAO,MAAM,iCAAiC;;CAAkC,CAAC;AAQjF,MAAM,WAAW,eAAe;IAC9B,mGAAmG;IACnG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,UAAU,CAAC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  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { useRender } from "@base-ui/react/use-render";
4
- import { useEffect, useState } from "react";
4
+ import { createContext, useContext, useEffect, useState } from "react";
5
5
  import { BellIcon } from "../../icons/ui/bell.js";
6
6
  import { ChatBubbleIcon } from "../../icons/ui/chat-bubble.js";
7
- import { ChatBubbleWritingIcon } from "../../icons/ui/chat-bubble-writing.js";
8
- import { DotsIcon } from "../../icons/ui/dots.js";
9
7
  import { GamepadIcon } from "../../icons/ui/gamepad.js";
10
8
  import { MagnifierIcon } from "../../icons/ui/magnifier.js";
11
9
  import { MenuBarsIcon } from "../../icons/ui/menu-bars.js";
10
+ import { MoonIcon } from "../../icons/ui/moon.js";
11
+ import { SunIcon } from "../../icons/ui/sun.js";
12
12
  import { AddMagicIcon } from "../../icons/ui/add-magic.js";
13
13
  import { UserIcon } from "../../icons/ui/user.js";
14
14
  import { cn } from "../../lib/cn.js";
@@ -18,7 +18,7 @@ import { Avatar, AvatarFallback, AvatarImage } from "../avatar/avatar.js";
18
18
  import { Button, buttonVariants } from "../button/button.js";
19
19
  import { IconMorph } from "../icon-morph/icon-morph.js";
20
20
  import { Kbd } from "../kbd/kbd.js";
21
- import { Menu, MenuCheckboxItem, MenuContent, MenuItem, MenuTrigger } from "../menu/menu.js";
21
+ import { Menu, MenuContent, MenuItem, MenuTrigger } from "../menu/menu.js";
22
22
  import { Popover, PopoverClose, PopoverContent, PopoverTrigger } from "../popover/popover.js";
23
23
  /**
24
24
  * App top bar breakpoints (Dodo Nest 2.0 › App top bar). `auto` switches with the width of the bar itself:
@@ -73,8 +73,12 @@ function isTyping(target) {
73
73
  */
74
74
  export function AppTopBarMilestonesRing({ progress, className }) {
75
75
  const value = Math.min(Math.max(progress, 0), 1);
76
- const length = 2 * Math.PI * 6.75;
77
- return (_jsxs("svg", { "aria-hidden": "true", "data-slot": "app-top-bar-milestones-ring", viewBox: "0 0 16 16", className: cn("size-4 shrink-0 -rotate-90", className), children: [_jsx("circle", { cx: "8", cy: "8", r: "6.75", fill: "none", strokeWidth: "1.5", className: "stroke-border" }), _jsx("circle", { cx: "8", cy: "8", r: "6.75", fill: "none", strokeWidth: "1.5", strokeDasharray: `${value * length} ${length}`, className: "stroke-foreground" })] }));
76
+ const width = 3;
77
+ const radius = 8 - width / 2;
78
+ const length = 2 * Math.PI * radius;
79
+ // Round caps add half the stroke at each end: shorten the dash by one width and start it half a width in.
80
+ const dash = Math.max(value * length - width, 0);
81
+ return (_jsxs("svg", { "aria-hidden": "true", "data-slot": "app-top-bar-milestones-ring", viewBox: "0 0 16 16", className: cn("size-4 shrink-0 -rotate-90", className), children: [_jsx("circle", { cx: "8", cy: "8", r: radius, fill: "none", strokeWidth: width, className: "stroke-border" }), value > 0 ? (_jsx("circle", { cx: "8", cy: "8", r: radius, fill: "none", strokeWidth: width, strokeLinecap: "round", strokeDasharray: `${dash} ${length}`, strokeDashoffset: -width / 2, className: "stroke-foreground" })) : null] }));
78
82
  }
79
83
  /**
80
84
  * The lime Dodo Games entry (Figma local atom `.Games button`): 36px, Surface/Brand-secondary with a
@@ -94,7 +98,7 @@ function IconButton({ label, onClick, children, ...props }) {
94
98
  const MAX_SHOWN_COUNT = 99;
95
99
  function NotificationsButton({ label, unseenLabel, count = 0, content, onOpen, }) {
96
100
  const name = count > 0 ? `${label}, ${count} ${unseenLabel}` : label;
97
- const face = (_jsxs(_Fragment, { children: [_jsx(BellIcon, { "aria-hidden": "true" }), count > 0 ? (_jsx("span", { "aria-hidden": "true", "data-slot": "app-top-bar-notifications-count", className: "absolute -end-1 -top-1 flex h-4.5 min-w-4.5 items-center justify-center rounded-full bg-destructive px-1 text-label-secondary text-white tabular-nums leading-none", children: count > MAX_SHOWN_COUNT ? `${MAX_SHOWN_COUNT}+` : count })) : null] }));
101
+ const face = (_jsxs(_Fragment, { children: [_jsx(BellIcon, { "aria-hidden": "true" }), count > 0 ? (_jsx("span", { "aria-hidden": "true", "data-slot": "app-top-bar-notifications-count", className: "absolute -end-1.5 -top-1.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-destructive px-1 text-label-secondary text-white tabular-nums leading-none ring-2 ring-background", children: count > MAX_SHOWN_COUNT ? `${MAX_SHOWN_COUNT}+` : count })) : null] }));
98
102
  if (!content) {
99
103
  return (_jsx(IconButton, { label: name, onClick: onOpen, className: "relative", children: face }));
100
104
  }
@@ -111,26 +115,41 @@ export function AppTopBarSupportItem({ icon, children, href, onClick, className,
111
115
  props: {
112
116
  "data-slot": "app-top-bar-support-item",
113
117
  onClick,
114
- className: buttonVariants({ variant: "secondary" }, cn("h-auto w-full justify-start gap-1 rounded-xl px-4 py-3 text-body-primary font-normal [&_svg]:size-5", className)),
118
+ className: buttonVariants({ variant: "secondary" }, cn("h-auto w-full justify-start gap-1 rounded-xl px-4 py-3 text-body-primary font-normal [&>svg]:size-5", className)),
115
119
  },
116
120
  });
117
121
  }
118
122
  function SupportButton({ label, content }) {
119
- return (_jsxs(Popover, { children: [_jsx(PopoverTrigger, { render: _jsx(Button, { variant: "secondary", size: "icon-lg", "aria-label": label, "data-slot": "app-top-bar-help" }), children: _jsx(ChatBubbleWritingIcon, { "aria-hidden": "true" }) }), _jsxs(PopoverContent, { align: "end", sideOffset: 12, "data-slot": "app-top-bar-support", "aria-label": label, className: "w-75 overflow-hidden rounded-xl bg-background *:data-[slot=popover-viewport]:p-0", children: [_jsx("div", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 opacity-50 bg-(image:--support-art-dots) bg-size-[5px_5px] mask-(--support-art-mask)" }), _jsx("div", { className: "relative flex flex-col gap-4 px-4 py-6", children: content })] })] }));
123
+ return (_jsxs(Popover, { children: [_jsx(PopoverTrigger, { render: _jsx(Button, { variant: "secondary", size: "icon-lg", "aria-label": label, "data-slot": "app-top-bar-help" }), children: _jsx(ChatBubbleIcon, { "aria-hidden": "true" }) }), _jsxs(PopoverContent, { align: "end", sideOffset: 12, "data-slot": "app-top-bar-support", "aria-label": label, className: "w-75 overflow-hidden rounded-xl bg-background *:data-[slot=popover-viewport]:p-0", children: [_jsx("div", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 opacity-50 bg-(image:--support-art-dots) bg-size-[5px_5px] mask-(--support-art-mask)" }), _jsx("div", { className: "relative flex flex-col gap-4 px-4 py-6", children: content })] })] }));
124
+ }
125
+ const AccountRowContext = createContext(null);
126
+ /**
127
+ * Old-main's theme item for the account menu on the mobile row, where the bar has no theme toggle: a moon and
128
+ * "Dark mode" in light, a sun and "Light mode" in dark. Put it in `account` where it belongs; it renders nothing
129
+ * on desktop.
130
+ */
131
+ export function AppTopBarThemeItem({ labels }) {
132
+ const row = useContext(AccountRowContext);
133
+ if (row?.row !== "mobile")
134
+ return null;
135
+ return (_jsxs(MenuItem, { onClick: row.toggleTheme, children: [row.dark ? _jsx(SunIcon, { "aria-hidden": "true" }) : _jsx(MoonIcon, { "aria-hidden": "true" }), row.dark ? (labels?.light ?? "Light mode") : (labels?.dark ?? "Dark mode")] }));
120
136
  }
121
137
  function AccountButton({ label, user, content, onOpen, }) {
122
- const face = user ? (_jsxs(Avatar, { className: "size-9 rounded-lg after:rounded-lg", children: [user.imageUrl ? _jsx(AvatarImage, { src: user.imageUrl, alt: "" }) : null, _jsx(AvatarFallback, { name: user.name })] })) : (_jsx(UserIcon, { "aria-hidden": "true" }));
123
- const trigger = user ? (_jsx("button", { type: "button", "aria-label": label, "data-slot": "app-top-bar-account", className: "rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-brand-subtle" })) : (_jsx(Button, { variant: "secondary", size: "icon-lg", "aria-label": label, "data-slot": "app-top-bar-account" }));
138
+ const [failedUrl, setFailedUrl] = useState();
139
+ const photo = user?.imageUrl && user.imageUrl !== failedUrl ? user.imageUrl : undefined;
140
+ const face = photo ? (_jsxs(Avatar, { className: "size-9 rounded-lg after:rounded-lg", children: [_jsx(AvatarImage, { src: photo, alt: "", onLoadingStatusChange: (status) => status === "error" && setFailedUrl(photo) }), _jsx(AvatarFallback, { name: user?.name, color: "neutral", children: _jsx(UserIcon, { "aria-hidden": "true" }) })] })) : (_jsx(UserIcon, { "aria-hidden": "true" }));
141
+ const trigger = photo ? (_jsx("button", { type: "button", "aria-label": label, "data-slot": "app-top-bar-account", className: "rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-brand-subtle" })) : (_jsx(Button, { variant: "secondary", size: "icon-lg", "aria-label": label, "data-slot": "app-top-bar-account" }));
124
142
  if (!content) {
125
- return user ? (_jsx("button", { type: "button", "aria-label": label, "data-slot": "app-top-bar-account", className: "rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-brand-subtle", onClick: onOpen, children: face })) : (_jsx(IconButton, { label: label, onClick: onOpen, children: face }));
143
+ return photo ? (_jsx("button", { type: "button", "aria-label": label, "data-slot": "app-top-bar-account", className: "rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-brand-subtle", onClick: onOpen, children: face })) : (_jsx(IconButton, { label: label, onClick: onOpen, children: face }));
126
144
  }
127
145
  return (_jsxs(Menu, { onOpenChange: (open) => open && onOpen?.(), children: [_jsx(MenuTrigger, { render: trigger, children: face }), _jsx(MenuContent, { align: "end", sideOffset: 8, className: "w-50", children: content })] }));
128
146
  }
129
147
  /**
130
148
  * The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command
131
149
  * palette), Dodo Games, Milestones (Setup guide while the business is setting up), Dodo AI, chat, theme,
132
- * notifications and the account on the right. Below a 672px bar it collapses: a menu button opens the sidebar,
133
- * search becomes an icon and Games, Milestones or Setup guide, Dodo AI, chat and theme move into a ••• Menu. It has no fill: put it first in the main panel.
150
+ * notifications and the account on the right. Below a 672px bar it collapses as old-main's phone bar: a menu button opens the sidebar,
151
+ * search becomes an icon, Setup guide, Dodo AI and chat stay as buttons, Games and Milestones leave the bar and the
152
+ * theme moves into the account menu (`AppTopBarThemeItem`). It has no fill: put it first in the main panel.
134
153
  */
135
154
  export function AppTopBar({ className, breakpoint, onSearch, searchShortcut = true, showGames = true, onOpenGames, showMilestones = true, milestonesProgress = 0, onOpenMilestones, showSetupGuide = false, setupGuideProgress = 0, onOpenSetupGuide, showAi = true, onOpenAi, onOpenChat, theme, defaultTheme = "light", onToggleTheme, notifications, notificationsCount, onOpenNotifications, support, account, onOpenAccount, user, onOpenSidebar, labels, ...props }) {
136
155
  const text = { ...DEFAULT_LABELS, ...labels };
@@ -180,7 +199,9 @@ export function AppTopBar({ className, breakpoint, onSearch, searchShortcut = tr
180
199
  }
181
200
  : null;
182
201
  const aiIcon = _jsx(AddMagicIcon, { "aria-hidden": "true", className: "text-violet" });
183
- const accountButton = (_jsx(AccountButton, { label: text.account, user: user, content: account, onOpen: onOpenAccount }));
184
- return (_jsxs("header", { "data-slot": "app-top-bar", "data-breakpoint": bp, className: appTopBarVariants({ breakpoint: bp }, className), ...props, children: [_jsxs("div", { "data-slot": "app-top-bar-desktop", className: cn("flex items-center justify-between gap-4 px-8 pt-4", bp === "auto" && "@max-2xl:hidden", bp === "mobile" && "hidden"), children: [_jsx(SearchField, { label: text.search, onSearch: onSearch, shortcut: searchShortcut }), _jsxs("div", { "data-slot": "app-top-bar-actions", className: "flex shrink-0 items-center gap-2", children: [showGames ? (_jsx(AppTopBarGamesButton, { "aria-label": text.games, onClick: onOpenGames })) : null, progressEntry ? (_jsxs(Button, { variant: "secondary", size: "lg", "data-slot": progressEntry.slot, onClick: progressEntry.onOpen, children: [_jsx(AppTopBarMilestonesRing, { progress: progressEntry.progress }), progressEntry.label] })) : null, showAi ? (_jsx(IconButton, { label: text.ai, onClick: onOpenAi, "data-slot": "app-top-bar-ai", children: aiIcon })) : null, help ?? (_jsx(IconButton, { label: text.chat, onClick: onOpenChat, children: _jsx(ChatBubbleIcon, { "aria-hidden": "true" }) })), _jsx(IconMorph, { preset: "sun-moon", variant: "secondary", size: "icon-lg", semantics: "pressed", "aria-label": text.theme, "data-slot": "app-top-bar-theme", value: dark, onValueChange: toggleTheme }), bell, accountButton] })] }), _jsxs("div", { "data-slot": "app-top-bar-mobile", className: cn("flex items-center justify-between gap-4 px-4 pt-4", bp === "auto" && "@2xl:hidden", bp === "desktop" && "hidden"), children: [_jsx(IconButton, { label: text.menu, onClick: onOpenSidebar, children: _jsx(MenuBarsIcon, { "aria-hidden": "true" }) }), _jsxs("div", { "data-slot": "app-top-bar-actions", className: "flex shrink-0 items-center gap-2", children: [_jsx(IconButton, { label: text.search, onClick: onSearch, children: _jsx(MagnifierIcon, { "aria-hidden": "true" }) }), help, bell, _jsxs(Menu, { children: [_jsx(MenuTrigger, { render: _jsx(Button, { variant: "secondary", size: "icon-lg", "aria-label": text.more }), children: _jsx(DotsIcon, { "aria-hidden": "true" }) }), _jsxs(MenuContent, { align: "end", sideOffset: 8, className: "w-50", children: [showGames ? (_jsxs(MenuItem, { onClick: onOpenGames, children: [_jsx(GamepadIcon, { "aria-hidden": "true" }), text.games] })) : null, progressEntry ? (_jsxs(MenuItem, { onClick: progressEntry.onOpen, children: [_jsx(AppTopBarMilestonesRing, { progress: progressEntry.progress }), progressEntry.label] })) : null, showAi ? (_jsxs(MenuItem, { onClick: onOpenAi, children: [aiIcon, text.ai] })) : null, help ? null : (_jsxs(MenuItem, { onClick: onOpenChat, children: [_jsx(ChatBubbleIcon, { "aria-hidden": "true" }), text.chat] })), _jsx(MenuCheckboxItem, { variant: "switch", checked: dark, onCheckedChange: toggleTheme, closeOnClick: false, children: text.theme })] })] }), accountButton] })] })] }));
202
+ const accountButton = (row) => (_jsx(AccountRowContext.Provider, { value: { dark, row, toggleTheme }, children: _jsx(AccountButton, { label: text.account, user: user, content: account, onOpen: onOpenAccount }) }));
203
+ return (_jsxs("header", { "data-slot": "app-top-bar", "data-breakpoint": bp, className: appTopBarVariants({ breakpoint: bp }, className), ...props, children: [_jsxs("div", { "data-slot": "app-top-bar-desktop", className: cn("flex items-center justify-between gap-4 px-6 pt-4", bp === "auto" && "@max-2xl:hidden", bp === "mobile" && "hidden"), children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(IconButton, { label: text.menu, onClick: onOpenSidebar, className: "lg:hidden", children: _jsx(MenuBarsIcon, { "aria-hidden": "true" }) }), _jsx(SearchField, { label: text.search, onSearch: onSearch, shortcut: searchShortcut })] }), _jsxs("div", { "data-slot": "app-top-bar-actions", className: "flex shrink-0 items-center gap-2", children: [showGames ? (_jsx(AppTopBarGamesButton, { "aria-label": text.games, onClick: onOpenGames })) : null, progressEntry ? (_jsxs(Button, { variant: "secondary", size: "lg", "data-slot": progressEntry.slot, onClick: progressEntry.onOpen, children: [_jsx(AppTopBarMilestonesRing, { progress: progressEntry.progress }), progressEntry.label] })) : null, showAi ? (_jsx(IconButton, { label: text.ai, onClick: onOpenAi, "data-slot": "app-top-bar-ai", children: aiIcon })) : null, help ?? (_jsx(IconButton, { label: text.chat, onClick: onOpenChat, children: _jsx(ChatBubbleIcon, { "aria-hidden": "true" }) })), _jsx(IconMorph, { preset: "sun-moon", variant: "secondary", size: "icon-lg", semantics: "pressed", "aria-label": text.theme, "data-slot": "app-top-bar-theme", value: dark, onValueChange: toggleTheme }), bell, accountButton("desktop")] })] }), _jsxs("div", { "data-slot": "app-top-bar-mobile", className: cn(
204
+ // Seven buttons need the tighter spacing to fit a 320px phone.
205
+ "flex items-center justify-between gap-2 px-4 pt-4 @min-[360px]:gap-4 @min-[360px]:px-6", bp === "auto" && "@2xl:hidden", bp === "desktop" && "hidden"), children: [_jsx(IconButton, { label: text.menu, onClick: onOpenSidebar, children: _jsx(MenuBarsIcon, { "aria-hidden": "true" }) }), _jsxs("div", { "data-slot": "app-top-bar-actions", className: "flex shrink-0 items-center gap-1 @min-[360px]:gap-2", children: [_jsx(IconButton, { label: text.search, onClick: onSearch, children: _jsx(MagnifierIcon, { "aria-hidden": "true" }) }), showSetupGuide ? (_jsx(IconButton, { label: text.setupGuide, onClick: onOpenSetupGuide, "data-slot": "app-top-bar-setup-guide", children: _jsx(AppTopBarMilestonesRing, { progress: setupGuideProgress }) })) : null, showAi ? (_jsx(IconButton, { label: text.ai, onClick: onOpenAi, "data-slot": "app-top-bar-ai", children: aiIcon })) : null, help ?? (_jsx(IconButton, { label: text.chat, onClick: onOpenChat, children: _jsx(ChatBubbleIcon, { "aria-hidden": "true" }) })), bell, accountButton("mobile")] })] })] }));
185
206
  }
186
207
  //# sourceMappingURL=app-top-bar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-top-bar.js","sourceRoot":"","sources":["../../../src/components/app-top-bar/app-top-bar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAyB,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qBAAsB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,qBAAsB,CAAC;AAC9D,OAAO,EAAE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