@dodopayments/ui 1.6.0 → 1.7.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 (476) hide show
  1. package/ai/component-registry.json +667 -65
  2. package/ai/component-registry.md +2 -0
  3. package/ai/components/activity-timeline.md +1 -1
  4. package/ai/components/alert.md +1 -1
  5. package/ai/components/app-top-bar.md +51 -1
  6. package/ai/components/auth-card.md +2 -0
  7. package/ai/components/bar-chart.md +4 -2
  8. package/ai/components/brand-logos.md +1 -1
  9. package/ai/components/button.md +86 -11
  10. package/ai/components/card.md +6 -3
  11. package/ai/components/chart-share-card.md +25 -0
  12. package/ai/components/chart.md +27 -1
  13. package/ai/components/code-block.md +1 -1
  14. package/ai/components/collapsible.md +2 -2
  15. package/ai/components/command.md +4 -1
  16. package/ai/components/comparison-bars.md +1 -0
  17. package/ai/components/data-grid.md +2 -1
  18. package/ai/components/details-panel.md +5 -3
  19. package/ai/components/dialog.md +1 -0
  20. package/ai/components/empty.md +1 -1
  21. package/ai/components/field.md +15 -5
  22. package/ai/components/input.md +31 -6
  23. package/ai/components/leaderboard.md +5 -2
  24. package/ai/components/link.md +1 -1
  25. package/ai/components/list-item.md +5 -4
  26. package/ai/components/navigation-progress.md +55 -0
  27. package/ai/components/page-header.md +4 -4
  28. package/ai/components/popover.md +2 -0
  29. package/ai/components/quantity-stepper.md +3 -3
  30. package/ai/components/record-header.md +5 -5
  31. package/ai/components/rich-text-editor.md +2 -0
  32. package/ai/components/scaled-frame.md +4 -2
  33. package/ai/components/select.md +5 -2
  34. package/ai/components/settings-section.md +3 -0
  35. package/ai/components/sheet.md +10 -10
  36. package/ai/components/sidebar.md +13 -5
  37. package/ai/components/stat-card.md +7 -6
  38. package/ai/components/tabs.md +15 -4
  39. package/dist/components/activity-timeline/activity-timeline.d.ts +1 -1
  40. package/dist/components/activity-timeline/activity-timeline.js +2 -2
  41. package/dist/components/activity-timeline/activity-timeline.js.map +1 -1
  42. package/dist/components/alert/alert.d.ts +2 -1
  43. package/dist/components/alert/alert.d.ts.map +1 -1
  44. package/dist/components/alert/alert.js +1 -1
  45. package/dist/components/alert/alert.js.map +1 -1
  46. package/dist/components/app-top-bar/app-top-bar.d.ts +27 -1
  47. package/dist/components/app-top-bar/app-top-bar.d.ts.map +1 -1
  48. package/dist/components/app-top-bar/app-top-bar.js +37 -11
  49. package/dist/components/app-top-bar/app-top-bar.js.map +1 -1
  50. package/dist/components/app-top-bar/index.d.ts +1 -1
  51. package/dist/components/app-top-bar/index.d.ts.map +1 -1
  52. package/dist/components/app-top-bar/index.js +1 -1
  53. package/dist/components/app-top-bar/index.js.map +1 -1
  54. package/dist/components/auth-card/auth-card.d.ts +13 -1
  55. package/dist/components/auth-card/auth-card.d.ts.map +1 -1
  56. package/dist/components/auth-card/auth-card.js +5 -5
  57. package/dist/components/auth-card/auth-card.js.map +1 -1
  58. package/dist/components/badge/badge-status.d.ts +3 -3
  59. package/dist/components/badge/badge-status.js +3 -3
  60. package/dist/components/badge/badge-status.js.map +1 -1
  61. package/dist/components/bar-chart/bar-chart.d.ts +2 -1
  62. package/dist/components/bar-chart/bar-chart.d.ts.map +1 -1
  63. package/dist/components/bar-chart/bar-chart.js +2 -1
  64. package/dist/components/bar-chart/bar-chart.js.map +1 -1
  65. package/dist/components/brand-logos/brand-artwork.d.ts +89 -3
  66. package/dist/components/brand-logos/brand-artwork.d.ts.map +1 -1
  67. package/dist/components/brand-logos/brand-artwork.js +89 -3
  68. package/dist/components/brand-logos/brand-artwork.js.map +1 -1
  69. package/dist/components/brand-logos/brand-logos.d.ts +5 -2
  70. package/dist/components/brand-logos/brand-logos.d.ts.map +1 -1
  71. package/dist/components/brand-logos/brand-logos.js +42 -2
  72. package/dist/components/brand-logos/brand-logos.js.map +1 -1
  73. package/dist/components/button/button-narrow-label.d.ts +11 -0
  74. package/dist/components/button/button-narrow-label.d.ts.map +1 -0
  75. package/dist/components/button/button-narrow-label.js +22 -0
  76. package/dist/components/button/button-narrow-label.js.map +1 -0
  77. package/dist/components/button/button.d.ts +29 -6
  78. package/dist/components/button/button.d.ts.map +1 -1
  79. package/dist/components/button/button.js +71 -14
  80. package/dist/components/button/button.js.map +1 -1
  81. package/dist/components/button/index.d.ts +1 -1
  82. package/dist/components/button/index.d.ts.map +1 -1
  83. package/dist/components/button/index.js +1 -1
  84. package/dist/components/button/index.js.map +1 -1
  85. package/dist/components/card/card.d.ts +16 -5
  86. package/dist/components/card/card.d.ts.map +1 -1
  87. package/dist/components/card/card.js +13 -4
  88. package/dist/components/card/card.js.map +1 -1
  89. package/dist/components/chart-share-card/chart-share-card.d.ts +31 -0
  90. package/dist/components/chart-share-card/chart-share-card.d.ts.map +1 -0
  91. package/dist/components/chart-share-card/chart-share-card.js +15 -0
  92. package/dist/components/chart-share-card/chart-share-card.js.map +1 -0
  93. package/dist/components/chart-share-card/index.d.ts +2 -0
  94. package/dist/components/chart-share-card/index.d.ts.map +1 -0
  95. package/dist/components/chart-share-card/index.js +2 -0
  96. package/dist/components/chart-share-card/index.js.map +1 -0
  97. package/dist/components/code-block/code-block.d.ts +1 -1
  98. package/dist/components/code-block/code-block.d.ts.map +1 -1
  99. package/dist/components/code-block/code-block.js +20 -3
  100. package/dist/components/code-block/code-block.js.map +1 -1
  101. package/dist/components/code-block/highlight-shell.d.ts +9 -0
  102. package/dist/components/code-block/highlight-shell.d.ts.map +1 -0
  103. package/dist/components/code-block/highlight-shell.js +53 -0
  104. package/dist/components/code-block/highlight-shell.js.map +1 -0
  105. package/dist/components/collapsible/collapsible.d.ts +2 -2
  106. package/dist/components/collapsible/collapsible.js +4 -4
  107. package/dist/components/collapsible/collapsible.js.map +1 -1
  108. package/dist/components/command/command-palette.d.ts +15 -2
  109. package/dist/components/command/command-palette.d.ts.map +1 -1
  110. package/dist/components/command/command-palette.js +8 -5
  111. package/dist/components/command/command-palette.js.map +1 -1
  112. package/dist/components/comparison-bars/comparison-bars.d.ts +13 -2
  113. package/dist/components/comparison-bars/comparison-bars.d.ts.map +1 -1
  114. package/dist/components/comparison-bars/comparison-bars.js +3 -3
  115. package/dist/components/comparison-bars/comparison-bars.js.map +1 -1
  116. package/dist/components/data-grid/data-grid.d.ts +16 -1
  117. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  118. package/dist/components/data-grid/data-grid.js +94 -4
  119. package/dist/components/data-grid/data-grid.js.map +1 -1
  120. package/dist/components/date-picker/date-picker.d.ts +5 -0
  121. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  122. package/dist/components/date-picker/date-picker.js +2 -2
  123. package/dist/components/date-picker/date-picker.js.map +1 -1
  124. package/dist/components/details-panel/details-panel.d.ts +11 -4
  125. package/dist/components/details-panel/details-panel.d.ts.map +1 -1
  126. package/dist/components/details-panel/details-panel.js +13 -12
  127. package/dist/components/details-panel/details-panel.js.map +1 -1
  128. package/dist/components/empty/empty.d.ts +3 -2
  129. package/dist/components/empty/empty.d.ts.map +1 -1
  130. package/dist/components/empty/empty.js.map +1 -1
  131. package/dist/components/field/field.d.ts +8 -6
  132. package/dist/components/field/field.d.ts.map +1 -1
  133. package/dist/components/field/field.js +15 -7
  134. package/dist/components/field/field.js.map +1 -1
  135. package/dist/components/field/index.d.ts +1 -0
  136. package/dist/components/field/index.d.ts.map +1 -1
  137. package/dist/components/field/index.js +1 -0
  138. package/dist/components/field/index.js.map +1 -1
  139. package/dist/components/field/label.d.ts +2 -1
  140. package/dist/components/field/label.d.ts.map +1 -1
  141. package/dist/components/field/label.js +2 -1
  142. package/dist/components/field/label.js.map +1 -1
  143. package/dist/components/file-upload/file-upload.d.ts +1 -1
  144. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  145. package/dist/components/icon-morph/icon-morph.d.ts +1 -1
  146. package/dist/components/icon-morph/icon-morph.d.ts.map +1 -1
  147. package/dist/components/icon-morph/icon-morph.js.map +1 -1
  148. package/dist/components/input/input-suggestions.d.ts +1 -1
  149. package/dist/components/input/input-suggestions.d.ts.map +1 -1
  150. package/dist/components/input/input-suggestions.js +21 -4
  151. package/dist/components/input/input-suggestions.js.map +1 -1
  152. package/dist/components/input/input.d.ts +21 -8
  153. package/dist/components/input/input.d.ts.map +1 -1
  154. package/dist/components/input/input.js +18 -8
  155. package/dist/components/input/input.js.map +1 -1
  156. package/dist/components/input-group/input-group.d.ts +1 -1
  157. package/dist/components/input-group/input-group.d.ts.map +1 -1
  158. package/dist/components/leaderboard/leaderboard.d.ts +3 -1
  159. package/dist/components/leaderboard/leaderboard.d.ts.map +1 -1
  160. package/dist/components/leaderboard/leaderboard.js +7 -5
  161. package/dist/components/leaderboard/leaderboard.js.map +1 -1
  162. package/dist/components/link/link.d.ts +4 -3
  163. package/dist/components/link/link.d.ts.map +1 -1
  164. package/dist/components/link/link.js +21 -2
  165. package/dist/components/link/link.js.map +1 -1
  166. package/dist/components/list-item/list-item.d.ts +10 -4
  167. package/dist/components/list-item/list-item.d.ts.map +1 -1
  168. package/dist/components/list-item/list-item.js +4 -4
  169. package/dist/components/list-item/list-item.js.map +1 -1
  170. package/dist/components/list-toolbar/list-toolbar.js +1 -1
  171. package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
  172. package/dist/components/milestone/milestone.js +1 -1
  173. package/dist/components/milestone/milestone.js.map +1 -1
  174. package/dist/components/money/money.d.ts.map +1 -1
  175. package/dist/components/money/money.js +3 -3
  176. package/dist/components/money/money.js.map +1 -1
  177. package/dist/components/navigation-progress/index.d.ts +2 -0
  178. package/dist/components/navigation-progress/index.d.ts.map +1 -0
  179. package/dist/components/navigation-progress/index.js +2 -0
  180. package/dist/components/navigation-progress/index.js.map +1 -0
  181. package/dist/components/navigation-progress/navigation-progress.d.ts +23 -0
  182. package/dist/components/navigation-progress/navigation-progress.d.ts.map +1 -0
  183. package/dist/components/navigation-progress/navigation-progress.js +53 -0
  184. package/dist/components/navigation-progress/navigation-progress.js.map +1 -0
  185. package/dist/components/page-header/page-header.d.ts +3 -3
  186. package/dist/components/page-header/page-header.d.ts.map +1 -1
  187. package/dist/components/page-header/page-header.js +5 -8
  188. package/dist/components/page-header/page-header.js.map +1 -1
  189. package/dist/components/popover/popover.d.ts +5 -1
  190. package/dist/components/popover/popover.d.ts.map +1 -1
  191. package/dist/components/popover/popover.js +4 -2
  192. package/dist/components/popover/popover.js.map +1 -1
  193. package/dist/components/quantity-stepper/quantity-stepper.d.ts +3 -3
  194. package/dist/components/quantity-stepper/quantity-stepper.js +2 -2
  195. package/dist/components/quantity-stepper/quantity-stepper.js.map +1 -1
  196. package/dist/components/radio-group/radio-group.d.ts.map +1 -1
  197. package/dist/components/radio-group/radio-group.js +6 -4
  198. package/dist/components/radio-group/radio-group.js.map +1 -1
  199. package/dist/components/record-header/record-header.d.ts +7 -3
  200. package/dist/components/record-header/record-header.d.ts.map +1 -1
  201. package/dist/components/record-header/record-header.js +11 -3
  202. package/dist/components/record-header/record-header.js.map +1 -1
  203. package/dist/components/rich-text-editor/rich-text-editor.d.ts +13 -1
  204. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  205. package/dist/components/rich-text-editor/rich-text-editor.js +17 -9
  206. package/dist/components/rich-text-editor/rich-text-editor.js.map +1 -1
  207. package/dist/components/rich-text-editor/rich-text-extensions.d.ts +5 -2
  208. package/dist/components/rich-text-editor/rich-text-extensions.d.ts.map +1 -1
  209. package/dist/components/rich-text-editor/rich-text-extensions.js +43 -5
  210. package/dist/components/rich-text-editor/rich-text-extensions.js.map +1 -1
  211. package/dist/components/rich-text-editor/rich-text-markdown.d.ts +9 -3
  212. package/dist/components/rich-text-editor/rich-text-markdown.d.ts.map +1 -1
  213. package/dist/components/rich-text-editor/rich-text-markdown.js +134 -44
  214. package/dist/components/rich-text-editor/rich-text-markdown.js.map +1 -1
  215. package/dist/components/scaled-frame/scaled-frame.d.ts +2 -1
  216. package/dist/components/scaled-frame/scaled-frame.d.ts.map +1 -1
  217. package/dist/components/scaled-frame/scaled-frame.js +8 -2
  218. package/dist/components/scaled-frame/scaled-frame.js.map +1 -1
  219. package/dist/components/select/select.d.ts +6 -3
  220. package/dist/components/select/select.d.ts.map +1 -1
  221. package/dist/components/select/select.js +12 -7
  222. package/dist/components/select/select.js.map +1 -1
  223. package/dist/components/settings-section/settings-section.d.ts +8 -1
  224. package/dist/components/settings-section/settings-section.d.ts.map +1 -1
  225. package/dist/components/settings-section/settings-section.js +8 -8
  226. package/dist/components/settings-section/settings-section.js.map +1 -1
  227. package/dist/components/setup-guide/setup-guide.d.ts +2 -2
  228. package/dist/components/setup-guide/setup-guide.js +2 -2
  229. package/dist/components/setup-guide/setup-guide.js.map +1 -1
  230. package/dist/components/sheet/sheet.d.ts +16 -5
  231. package/dist/components/sheet/sheet.d.ts.map +1 -1
  232. package/dist/components/sheet/sheet.js +9 -5
  233. package/dist/components/sheet/sheet.js.map +1 -1
  234. package/dist/components/sidebar/sidebar.d.ts +30 -10
  235. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  236. package/dist/components/sidebar/sidebar.js +36 -17
  237. package/dist/components/sidebar/sidebar.js.map +1 -1
  238. package/dist/components/skeleton/page-skeleton.js +1 -1
  239. package/dist/components/skeleton/page-skeleton.js.map +1 -1
  240. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  241. package/dist/components/skeleton/skeleton.js +1 -1
  242. package/dist/components/skeleton/skeleton.js.map +1 -1
  243. package/dist/components/stat-card/stat-card.d.ts +24 -10
  244. package/dist/components/stat-card/stat-card.d.ts.map +1 -1
  245. package/dist/components/stat-card/stat-card.js +27 -18
  246. package/dist/components/stat-card/stat-card.js.map +1 -1
  247. package/dist/components/tabs/index.d.ts +1 -1
  248. package/dist/components/tabs/index.d.ts.map +1 -1
  249. package/dist/components/tabs/index.js +1 -1
  250. package/dist/components/tabs/index.js.map +1 -1
  251. package/dist/components/tabs/tabs.d.ts +18 -6
  252. package/dist/components/tabs/tabs.d.ts.map +1 -1
  253. package/dist/components/tabs/tabs.js +96 -7
  254. package/dist/components/tabs/tabs.js.map +1 -1
  255. package/dist/icons/flags/basque.d.ts.map +1 -0
  256. package/dist/icons/flags/basque.js.map +1 -0
  257. package/dist/icons/flags/canary-islands.d.ts.map +1 -0
  258. package/dist/icons/flags/canary-islands.js.map +1 -0
  259. package/dist/icons/flags/england.d.ts.map +1 -0
  260. package/dist/icons/flags/england.js.map +1 -0
  261. package/dist/icons/flags/hawaii.d.ts.map +1 -0
  262. package/dist/icons/flags/hawaii.js.map +1 -0
  263. package/dist/icons/flags/kurdistan.d.ts.map +1 -0
  264. package/dist/icons/flags/kurdistan.js.map +1 -0
  265. package/dist/icons/flags/netherlands-antilles.d.ts.map +1 -0
  266. package/dist/icons/flags/netherlands-antilles.js.map +1 -0
  267. package/dist/icons/flags/northen-ireland.d.ts.map +1 -0
  268. package/dist/icons/flags/northen-ireland.js.map +1 -0
  269. package/dist/icons/flags/scotland.d.ts.map +1 -0
  270. package/dist/icons/flags/scotland.js.map +1 -0
  271. package/dist/icons/flags/wales.d.ts.map +1 -0
  272. package/dist/icons/flags/wales.js.map +1 -0
  273. package/dist/icons/index.d.ts +12 -0
  274. package/dist/icons/index.d.ts.map +1 -0
  275. package/dist/icons/index.js +12 -0
  276. package/dist/icons/index.js.map +1 -0
  277. package/dist/icons/ui/ai-agents.d.ts +3 -0
  278. package/dist/icons/ui/ai-agents.d.ts.map +1 -0
  279. package/dist/icons/ui/ai-agents.js +5 -0
  280. package/dist/icons/ui/ai-agents.js.map +1 -0
  281. package/dist/icons/ui/archive.d.ts.map +1 -0
  282. package/dist/icons/ui/archive.js.map +1 -0
  283. package/dist/icons/ui/arrow-door-out-3.d.ts.map +1 -0
  284. package/dist/icons/ui/arrow-door-out-3.js.map +1 -0
  285. package/dist/icons/ui/arrow-door-out.d.ts.map +1 -0
  286. package/dist/icons/ui/arrow-door-out.js.map +1 -0
  287. package/dist/icons/ui/arrow-left.d.ts.map +1 -0
  288. package/dist/icons/ui/arrow-left.js.map +1 -0
  289. package/dist/icons/ui/arrows-transaction.d.ts.map +1 -0
  290. package/dist/icons/ui/arrows-transaction.js.map +1 -0
  291. package/dist/icons/ui/bell-outline-duo.d.ts.map +1 -0
  292. package/dist/icons/ui/bell-outline-duo.js.map +1 -0
  293. package/dist/icons/ui/bolt.d.ts.map +1 -0
  294. package/dist/icons/ui/bolt.js.map +1 -0
  295. package/dist/icons/ui/book-open.d.ts +3 -0
  296. package/dist/icons/ui/book-open.d.ts.map +1 -0
  297. package/dist/icons/ui/book-open.js +5 -0
  298. package/dist/icons/ui/book-open.js.map +1 -0
  299. package/dist/icons/ui/box-glyph.d.ts.map +1 -0
  300. package/dist/icons/ui/box-glyph.js.map +1 -0
  301. package/dist/icons/ui/box-plus.d.ts.map +1 -0
  302. package/dist/icons/ui/box-plus.js.map +1 -0
  303. package/dist/icons/ui/chart-pie.d.ts.map +1 -0
  304. package/dist/icons/ui/chart-pie.js.map +1 -0
  305. package/dist/icons/ui/chat-bubble-writing.d.ts +3 -0
  306. package/dist/icons/ui/chat-bubble-writing.d.ts.map +1 -0
  307. package/dist/icons/ui/chat-bubble-writing.js +5 -0
  308. package/dist/icons/ui/chat-bubble-writing.js.map +1 -0
  309. package/dist/icons/ui/check-glyph-12.d.ts.map +1 -0
  310. package/dist/icons/ui/check-glyph-12.js.map +1 -0
  311. package/dist/icons/ui/circle-check-glyph.d.ts.map +1 -0
  312. package/dist/icons/ui/circle-check-glyph.js.map +1 -0
  313. package/dist/icons/ui/circle-user-check.d.ts.map +1 -0
  314. package/dist/icons/ui/circle-user-check.js.map +1 -0
  315. package/dist/icons/ui/coins.d.ts.map +1 -0
  316. package/dist/icons/ui/coins.js.map +1 -0
  317. package/dist/icons/ui/dots-vertical.d.ts.map +1 -0
  318. package/dist/icons/ui/dots-vertical.js.map +1 -0
  319. package/dist/icons/ui/fingerprint.d.ts.map +1 -0
  320. package/dist/icons/ui/fingerprint.js.map +1 -0
  321. package/dist/icons/ui/flask.d.ts.map +1 -0
  322. package/dist/icons/ui/flask.js.map +1 -0
  323. package/dist/icons/ui/gear.d.ts.map +1 -0
  324. package/dist/icons/ui/gear.js.map +1 -0
  325. package/dist/icons/ui/greek-temple-glyph.d.ts.map +1 -0
  326. package/dist/icons/ui/greek-temple-glyph.js.map +1 -0
  327. package/dist/icons/ui/greek-temple.d.ts.map +1 -0
  328. package/dist/icons/ui/greek-temple.js.map +1 -0
  329. package/dist/icons/ui/grid.d.ts +3 -0
  330. package/dist/icons/ui/grid.d.ts.map +1 -0
  331. package/dist/icons/ui/grid.js +5 -0
  332. package/dist/icons/ui/grid.js.map +1 -0
  333. package/dist/icons/ui/heart-glyph.d.ts.map +1 -0
  334. package/dist/icons/ui/heart-glyph.js.map +1 -0
  335. package/dist/icons/ui/heart.d.ts.map +1 -0
  336. package/dist/icons/ui/heart.js.map +1 -0
  337. package/dist/icons/ui/hourglass-glyph.d.ts.map +1 -0
  338. package/dist/icons/ui/hourglass-glyph.js.map +1 -0
  339. package/dist/icons/ui/house.d.ts.map +1 -0
  340. package/dist/icons/ui/house.js.map +1 -0
  341. package/dist/icons/ui/key.d.ts.map +1 -0
  342. package/dist/icons/ui/key.js.map +1 -0
  343. package/dist/icons/ui/lightbulb.d.ts +3 -0
  344. package/dist/icons/ui/lightbulb.d.ts.map +1 -0
  345. package/dist/icons/ui/lightbulb.js +5 -0
  346. package/dist/icons/ui/lightbulb.js.map +1 -0
  347. package/dist/icons/ui/link.d.ts +3 -0
  348. package/dist/icons/ui/link.d.ts.map +1 -0
  349. package/dist/icons/ui/link.js +5 -0
  350. package/dist/icons/ui/link.js.map +1 -0
  351. package/dist/icons/ui/media-pause.d.ts +3 -0
  352. package/dist/icons/ui/media-pause.d.ts.map +1 -0
  353. package/dist/icons/ui/media-pause.js +5 -0
  354. package/dist/icons/ui/media-pause.js.map +1 -0
  355. package/dist/icons/ui/media-play.d.ts +3 -0
  356. package/dist/icons/ui/media-play.d.ts.map +1 -0
  357. package/dist/icons/ui/media-play.js +5 -0
  358. package/dist/icons/ui/media-play.js.map +1 -0
  359. package/dist/icons/ui/money-bill.d.ts.map +1 -0
  360. package/dist/icons/ui/money-bill.js.map +1 -0
  361. package/dist/icons/ui/money-bills.d.ts.map +1 -0
  362. package/dist/icons/ui/money-bills.js.map +1 -0
  363. package/dist/icons/ui/money-refund.d.ts.map +1 -0
  364. package/dist/icons/ui/money-refund.js.map +1 -0
  365. package/dist/icons/ui/monitor.d.ts.map +1 -0
  366. package/dist/icons/ui/monitor.js.map +1 -0
  367. package/dist/icons/ui/moon.d.ts.map +1 -0
  368. package/dist/icons/ui/moon.js.map +1 -0
  369. package/dist/icons/ui/paper-plane.d.ts +3 -0
  370. package/dist/icons/ui/paper-plane.d.ts.map +1 -0
  371. package/dist/icons/ui/paper-plane.js +5 -0
  372. package/dist/icons/ui/paper-plane.js.map +1 -0
  373. package/dist/icons/ui/pencil.d.ts.map +1 -0
  374. package/dist/icons/ui/pencil.js.map +1 -0
  375. package/dist/icons/ui/print.d.ts +3 -0
  376. package/dist/icons/ui/print.d.ts.map +1 -0
  377. package/dist/icons/ui/print.js +5 -0
  378. package/dist/icons/ui/print.js.map +1 -0
  379. package/dist/icons/ui/refresh-clockwise.d.ts.map +1 -0
  380. package/dist/icons/ui/refresh-clockwise.js.map +1 -0
  381. package/dist/icons/ui/report.d.ts.map +1 -0
  382. package/dist/icons/ui/report.js.map +1 -0
  383. package/dist/icons/ui/shield-check.d.ts.map +1 -0
  384. package/dist/icons/ui/shield-check.js.map +1 -0
  385. package/dist/icons/ui/shop-glyph.d.ts.map +1 -0
  386. package/dist/icons/ui/shop-glyph.js.map +1 -0
  387. package/dist/icons/ui/sliders.d.ts.map +1 -0
  388. package/dist/icons/ui/sliders.js.map +1 -0
  389. package/dist/icons/ui/star-glyph-duo.d.ts.map +1 -0
  390. package/dist/icons/ui/star-glyph-duo.js.map +1 -0
  391. package/dist/icons/ui/star-glyph.d.ts.map +1 -0
  392. package/dist/icons/ui/star-glyph.js.map +1 -0
  393. package/dist/icons/ui/star-outline-duo.d.ts.map +1 -0
  394. package/dist/icons/ui/star-outline-duo.js.map +1 -0
  395. package/dist/icons/ui/star.d.ts.map +1 -0
  396. package/dist/icons/ui/star.js.map +1 -0
  397. package/dist/icons/ui/sun.d.ts.map +1 -0
  398. package/dist/icons/ui/sun.js.map +1 -0
  399. package/dist/icons/ui/terminal.d.ts.map +1 -0
  400. package/dist/icons/ui/terminal.js.map +1 -0
  401. package/dist/icons/ui/text-align-center.d.ts.map +1 -0
  402. package/dist/icons/ui/text-align-center.js.map +1 -0
  403. package/dist/icons/ui/text-align-left.d.ts.map +1 -0
  404. package/dist/icons/ui/text-align-left.js.map +1 -0
  405. package/dist/icons/ui/text-align-right.d.ts.map +1 -0
  406. package/dist/icons/ui/text-align-right.js.map +1 -0
  407. package/dist/icons/ui/ticket.d.ts.map +1 -0
  408. package/dist/icons/ui/ticket.js.map +1 -0
  409. package/dist/icons/ui/trash-2.d.ts.map +1 -0
  410. package/dist/icons/ui/trash-2.js.map +1 -0
  411. package/dist/icons/ui/triangle-warning-glyph.d.ts.map +1 -0
  412. package/dist/icons/ui/triangle-warning-glyph.js.map +1 -0
  413. package/dist/icons/ui/user-glyph.d.ts.map +1 -0
  414. package/dist/icons/ui/user-glyph.js.map +1 -0
  415. package/dist/icons/ui/user-plus.d.ts +3 -0
  416. package/dist/icons/ui/user-plus.d.ts.map +1 -0
  417. package/dist/icons/ui/user-plus.js +5 -0
  418. package/dist/icons/ui/user-plus.js.map +1 -0
  419. package/dist/icons/ui/users.d.ts.map +1 -0
  420. package/dist/icons/ui/users.js.map +1 -0
  421. package/dist/icons/ui/wallet-outline-duo.d.ts.map +1 -0
  422. package/dist/icons/ui/wallet-outline-duo.js.map +1 -0
  423. package/dist/icons/ui/wallet.d.ts.map +1 -0
  424. package/dist/icons/ui/wallet.js.map +1 -0
  425. package/dist/icons/ui/wand-sparkle.d.ts.map +1 -0
  426. package/dist/icons/ui/wand-sparkle.js.map +1 -0
  427. package/dist/icons/ui/wifi-off.d.ts +3 -0
  428. package/dist/icons/ui/wifi-off.d.ts.map +1 -0
  429. package/dist/icons/ui/wifi-off.js +5 -0
  430. package/dist/icons/ui/wifi-off.js.map +1 -0
  431. package/dist/index.d.ts +1 -0
  432. package/dist/index.d.ts.map +1 -1
  433. package/dist/index.js +1 -0
  434. package/dist/index.js.map +1 -1
  435. package/dist/primitives/charts/bar-chart.d.ts.map +1 -1
  436. package/dist/primitives/charts/bar-chart.js +33 -3
  437. package/dist/primitives/charts/bar-chart.js.map +1 -1
  438. package/dist/primitives/charts/line.d.ts.map +1 -1
  439. package/dist/primitives/charts/line.js +14 -11
  440. package/dist/primitives/charts/line.js.map +1 -1
  441. package/dist/primitives/charts/x-axis.d.ts +12 -1
  442. package/dist/primitives/charts/x-axis.d.ts.map +1 -1
  443. package/dist/primitives/charts/x-axis.js +96 -20
  444. package/dist/primitives/charts/x-axis.js.map +1 -1
  445. package/dist/primitives/charts/y-axis-scales.d.ts +3 -1
  446. package/dist/primitives/charts/y-axis-scales.d.ts.map +1 -1
  447. package/dist/primitives/charts/y-axis-scales.js +2 -2
  448. package/dist/primitives/charts/y-axis-scales.js.map +1 -1
  449. package/dist/primitives/charts/y-axis.d.ts +5 -0
  450. package/dist/primitives/charts/y-axis.d.ts.map +1 -1
  451. package/dist/primitives/charts/y-axis.js +6 -2
  452. package/dist/primitives/charts/y-axis.js.map +1 -1
  453. package/dist/primitives/ui/button.d.ts.map +1 -1
  454. package/dist/primitives/ui/button.js +4 -2
  455. package/dist/primitives/ui/button.js.map +1 -1
  456. package/dist/primitives/ui/card.d.ts.map +1 -1
  457. package/dist/primitives/ui/card.js +9 -7
  458. package/dist/primitives/ui/card.js.map +1 -1
  459. package/dist/primitives/ui/dialog.d.ts +3 -1
  460. package/dist/primitives/ui/dialog.d.ts.map +1 -1
  461. package/dist/primitives/ui/dialog.js +3 -3
  462. package/dist/primitives/ui/dialog.js.map +1 -1
  463. package/dist/primitives/ui/input.js +1 -1
  464. package/dist/primitives/ui/input.js.map +1 -1
  465. package/dist/primitives/ui/select.js +3 -3
  466. package/dist/primitives/ui/select.js.map +1 -1
  467. package/dist/primitives/ui/switch.d.ts +2 -2
  468. package/dist/primitives/ui/switch.d.ts.map +1 -1
  469. package/dist/primitives/ui/switch.js +2 -2
  470. package/dist/primitives/ui/switch.js.map +1 -1
  471. package/dist/primitives/ui/textarea.js +1 -1
  472. package/dist/primitives/ui/textarea.js.map +1 -1
  473. package/dist/styles/theme.css +1 -1
  474. package/dist/styles/tokens.css +16 -26
  475. package/dist/styles/tokens.test.tsx +0 -3
  476. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://dodo-ui.dev/schema/component-registry.json",
3
3
  "name": "@dodopayments/ui",
4
- "version": "1.6.0",
4
+ "version": "1.7.0",
5
5
  "components": [
6
6
  {
7
7
  "slug": "alert",
@@ -26,7 +26,7 @@
26
26
  "name": "action",
27
27
  "type": "ReactNode",
28
28
  "required": false,
29
- "description": "The action: an inline `Link` for inline and page alerts, a secondary `Button` (size `xs`) for the\nbanner. It stays on the first line when the message wraps.",
29
+ "description": "The action: an inline `Link` for inline and page alerts, a secondary `Button` (size `xs`) for the\nbanner. It stays on the first line when the message wraps; when the message would get less than 12rem beside\nit (an inline or page alert in a narrow card), it moves under the message.",
30
30
  "source": "dodo"
31
31
  },
32
32
  {
@@ -1372,7 +1372,7 @@
1372
1372
  "title": "Bar Chart",
1373
1373
  "category": "Charts",
1374
1374
  "status": "stable",
1375
- "description": "Values per category as bars, on the bklit `BarChart` primitive (visx). Compose it from children:\none `Bar` per series (`dataKey`), `BarXAxis` (vertical) or `BarYAxis` (horizontal), `ChartGrid`,\n`ChartTooltip`. Several `Bar`s group side by side; `stacked` stacks them. `orientation=\"horizontal\"`\nputs the categories on the y-axis. `BarSquares` draws a series as square cells, and\n`BarDepthBack` / `BarDepthFront` add a 3D glass look. Rows are objects with a category under\n`xDataKey` (default `\"name\"`) and a number under each `dataKey`. Bars grow from the baseline on\nmount. `status=\"loading\"` draws a shimmer skeleton (no data needed) and sets `aria-busy` on the\nfigure. The chart is as wide as its container; height comes from `aspectRatio` (default `\"2 / 1\"`)\nor a height class.",
1375
+ "description": "Values per category as bars, on the bklit `BarChart` primitive (visx). Compose it from children:\none `Bar` per series (`dataKey`), `BarXAxis` (vertical) or `BarYAxis` (horizontal), `ChartGrid`,\n`ChartTooltip`. A vertical chart rounds its value axis up to the `YAxis` `numTicks` (else the `ChartGrid` rows),\nso the top of the plot is a labelled line. Several `Bar`s group side by side; `stacked` stacks them. `orientation=\"horizontal\"`\nputs the categories on the y-axis. `BarSquares` draws a series as square cells, and\n`BarDepthBack` / `BarDepthFront` add a 3D glass look. Rows are objects with a category under\n`xDataKey` (default `\"name\"`) and a number under each `dataKey`. Bars grow from the baseline on\nmount. `status=\"loading\"` draws a shimmer skeleton (no data needed) and sets `aria-busy` on the\nfigure. The chart is as wide as its container; height comes from `aspectRatio` (default `\"2 / 1\"`)\nor a height class.",
1376
1376
  "importPath": "@dodopayments/ui/bar-chart",
1377
1377
  "exports": [
1378
1378
  "Bar",
@@ -1412,7 +1412,7 @@
1412
1412
  "parts": [
1413
1413
  {
1414
1414
  "name": "BarChart",
1415
- "description": "Values per category as bars, on the bklit `BarChart` primitive (visx). Compose it from children:\none `Bar` per series (`dataKey`), `BarXAxis` (vertical) or `BarYAxis` (horizontal), `ChartGrid`,\n`ChartTooltip`. Several `Bar`s group side by side; `stacked` stacks them. `orientation=\"horizontal\"`\nputs the categories on the y-axis. `BarSquares` draws a series as square cells, and\n`BarDepthBack` / `BarDepthFront` add a 3D glass look. Rows are objects with a category under\n`xDataKey` (default `\"name\"`) and a number under each `dataKey`. Bars grow from the baseline on\nmount. `status=\"loading\"` draws a shimmer skeleton (no data needed) and sets `aria-busy` on the\nfigure. The chart is as wide as its container; height comes from `aspectRatio` (default `\"2 / 1\"`)\nor a height class.",
1415
+ "description": "Values per category as bars, on the bklit `BarChart` primitive (visx). Compose it from children:\none `Bar` per series (`dataKey`), `BarXAxis` (vertical) or `BarYAxis` (horizontal), `ChartGrid`,\n`ChartTooltip`. A vertical chart rounds its value axis up to the `YAxis` `numTicks` (else the `ChartGrid` rows),\nso the top of the plot is a labelled line. Several `Bar`s group side by side; `stacked` stacks them. `orientation=\"horizontal\"`\nputs the categories on the y-axis. `BarSquares` draws a series as square cells, and\n`BarDepthBack` / `BarDepthFront` add a 3D glass look. Rows are objects with a category under\n`xDataKey` (default `\"name\"`) and a number under each `dataKey`. Bars grow from the baseline on\nmount. `status=\"loading\"` draws a shimmer skeleton (no data needed) and sets `aria-busy` on the\nfigure. The chart is as wide as its container; height comes from `aspectRatio` (default `\"2 / 1\"`)\nor a height class.",
1416
1416
  "props": [
1417
1417
  {
1418
1418
  "name": "data",
@@ -7112,6 +7112,14 @@
7112
7112
  "description": "The rows, in the order to show them (usually the largest first).",
7113
7113
  "source": "dodo"
7114
7114
  },
7115
+ {
7116
+ "name": "fill",
7117
+ "type": "boolean",
7118
+ "required": false,
7119
+ "default": "false",
7120
+ "description": "Fill a taller parent, such as a card its row neighbour stretched: the rows spread out evenly and the legend\nsits at the bottom. The parent must be a flex column.",
7121
+ "source": "dodo"
7122
+ },
7115
7123
  {
7116
7124
  "name": "format",
7117
7125
  "type": "((value: number) => string)",
@@ -7169,10 +7177,12 @@
7169
7177
  "title": "Button",
7170
7178
  "category": "Actions",
7171
7179
  "status": "stable",
7172
- "description": "Triggers an action. Renders the `Button` primitive on Base UI `Button`, which always has button\nsemantics. For navigation, do not render a link through `Button`; style the link itself with\n`buttonVariants()`: `<Link href=\"/x\" className={buttonVariants({ variant: \"secondary\" })}>`.\nWhile `loading`, the label and the spinner face cross-fade in place on a spring (after interior.dev's\nloading button) and the button keeps focus. `result` swaps in a success or error face the same way\nand announces it.",
7180
+ "description": "Triggers an action. Renders the `Button` primitive on Base UI `Button`, which always has button\nsemantics. For navigation, do not render a link through `Button`; use `ButtonLink`, or style the\nlink itself with `buttonVariants()`: `<Link href=\"/x\" className={buttonVariants({ variant: \"secondary\" })}>`.\nWhile `loading`, the label and the spinner face cross-fade in place on a spring (after interior.dev's\nloading button) and the button keeps focus. `result` swaps in a success or error face the same way\nand announces it. With `labelHidden=\"narrow\"`, a page header, list toolbar or record header action\nshows only its icon on a phone, with its label in a tooltip.",
7173
7181
  "importPath": "@dodopayments/ui/button",
7174
7182
  "exports": [
7175
7183
  "Button",
7184
+ "ButtonLink",
7185
+ "ButtonLinkProps",
7176
7186
  "ButtonProps",
7177
7187
  "DODO_BUTTON_DEFAULT_VARIANTS",
7178
7188
  "DODO_BUTTON_VARIANTS",
@@ -7181,7 +7191,7 @@
7181
7191
  "parts": [
7182
7192
  {
7183
7193
  "name": "Button",
7184
- "description": "Triggers an action. Renders the `Button` primitive on Base UI `Button`, which always has button\nsemantics. For navigation, do not render a link through `Button`; style the link itself with\n`buttonVariants()`: `<Link href=\"/x\" className={buttonVariants({ variant: \"secondary\" })}>`.\nWhile `loading`, the label and the spinner face cross-fade in place on a spring (after interior.dev's\nloading button) and the button keeps focus. `result` swaps in a success or error face the same way\nand announces it.",
7194
+ "description": "Triggers an action. Renders the `Button` primitive on Base UI `Button`, which always has button\nsemantics. For navigation, do not render a link through `Button`; use `ButtonLink`, or style the\nlink itself with `buttonVariants()`: `<Link href=\"/x\" className={buttonVariants({ variant: \"secondary\" })}>`.\nWhile `loading`, the label and the spinner face cross-fade in place on a spring (after interior.dev's\nloading button) and the button keeps focus. `result` swaps in a success or error face the same way\nand announces it. With `labelHidden=\"narrow\"`, a page header, list toolbar or record header action\nshows only its icon on a phone, with its label in a tooltip.",
7185
7195
  "props": [
7186
7196
  {
7187
7197
  "name": "className",
@@ -7212,6 +7222,13 @@
7212
7222
  "description": "Which side of the label the icon is placed on.",
7213
7223
  "source": "dodo"
7214
7224
  },
7225
+ {
7226
+ "name": "labelHidden",
7227
+ "type": "\"narrow\"",
7228
+ "required": false,
7229
+ "description": "`\"narrow\"`: below 42rem of the nearest size container (the `@max-2xl` query of a `PageHeader` or\n`ListToolbar`; 24rem in a `RecordHeader`), so on a phone, only the icon shows, at the same height. The label stays\nthe button's accessible name, and a tooltip shows it on hover and focus while it is hidden. Outside a\nsize container the label always shows.",
7230
+ "source": "dodo"
7231
+ },
7215
7232
  {
7216
7233
  "name": "loading",
7217
7234
  "type": "boolean",
@@ -7356,12 +7373,137 @@
7356
7373
  "source": "base-ui"
7357
7374
  }
7358
7375
  ]
7376
+ },
7377
+ {
7378
+ "name": "ButtonLink",
7379
+ "description": "A link that looks like a `Button`: `buttonVariants()` on an `<a>`, with Button's `icon`,\n`iconPlacement` and `labelHidden`. It stays a link (no `role=\"button\"`), so Ctrl, Cmd or the middle\nbutton open it in a new tab. Pass a router link through `render`\n(`render={<NextLink href=\"/products/create\" />}`). With `labelHidden=\"narrow\"` it shows only its icon\nin a narrow container, its label stays the accessible name and a tooltip shows it while it is hidden.",
7380
+ "props": [
7381
+ {
7382
+ "name": "className",
7383
+ "type": "string",
7384
+ "required": false,
7385
+ "description": "Additional Tailwind classes, merged last.",
7386
+ "source": "dodo"
7387
+ },
7388
+ {
7389
+ "name": "icon",
7390
+ "type": "ReactNode",
7391
+ "required": false,
7392
+ "description": "Icon element (e.g. one from `@dodopayments/ui/icons`) rendered beside the label.",
7393
+ "source": "dodo"
7394
+ },
7395
+ {
7396
+ "name": "iconPlacement",
7397
+ "type": "\"left\" | \"right\"",
7398
+ "required": false,
7399
+ "description": "Which side of the label the icon is placed on.",
7400
+ "source": "dodo"
7401
+ },
7402
+ {
7403
+ "name": "labelHidden",
7404
+ "type": "\"narrow\"",
7405
+ "required": false,
7406
+ "description": "`\"narrow\"`: below 42rem of the nearest size container (the `@max-2xl` query of a `PageHeader` or\n`ListToolbar`; 24rem in a `RecordHeader`), so on a phone, only the icon shows, at the same height. The label stays\nthe button's accessible name, and a tooltip shows it on hover and focus while it is hidden. Outside a\nsize container the label always shows.",
7407
+ "source": "dodo"
7408
+ },
7409
+ {
7410
+ "name": "size",
7411
+ "type": "\"xs\" | \"sm\" | \"default\" | \"lg\" | \"icon\" | \"icon-sm\" | \"icon-xs\" | \"icon-lg\"",
7412
+ "required": false,
7413
+ "description": "",
7414
+ "source": "dodo",
7415
+ "values": [
7416
+ {
7417
+ "value": "xs",
7418
+ "description": "28px tall (24px from `sm`), Figma `sm`: dense toolbars, strip actions and inline actions."
7419
+ },
7420
+ {
7421
+ "value": "sm",
7422
+ "description": "32px tall (28px from `sm`): a compact action in a dense toolbar, a table filter row or next to an `sm` Input. Not a Figma size."
7423
+ },
7424
+ {
7425
+ "value": "default",
7426
+ "description": "36px tall (32px from `sm`): a compact control when a design asks for one. Not a Figma size; prefer `lg`."
7427
+ },
7428
+ {
7429
+ "value": "lg",
7430
+ "description": "40px tall (36px from `sm`), Figma `lg`, the default: page, form, dialog and card actions, next to an Input."
7431
+ },
7432
+ {
7433
+ "value": "icon",
7434
+ "description": "Square icon-only button at the default height. Requires `aria-label`."
7435
+ },
7436
+ {
7437
+ "value": "icon-sm",
7438
+ "description": "Square icon-only button at `sm` height. Requires `aria-label`."
7439
+ },
7440
+ {
7441
+ "value": "icon-xs",
7442
+ "description": "Square icon-only button at `xs` height. Requires `aria-label`."
7443
+ },
7444
+ {
7445
+ "value": "icon-lg",
7446
+ "description": "Square icon-only button at `lg` height. Requires `aria-label`."
7447
+ }
7448
+ ],
7449
+ "default": "\"lg\""
7450
+ },
7451
+ {
7452
+ "name": "variant",
7453
+ "type": "\"default\" | \"secondary\" | \"ghost\" | \"destructive\" | \"warning\" | \"wallet\" | \"destructive-outline\" | \"link\"",
7454
+ "required": false,
7455
+ "description": "",
7456
+ "source": "dodo",
7457
+ "values": [
7458
+ {
7459
+ "value": "default",
7460
+ "description": "Primary action (Figma Button primary): a dark gradient with white text, white in dark mode. Use it for the one main action of a view, form or dialog."
7461
+ },
7462
+ {
7463
+ "value": "secondary",
7464
+ "description": "Tactile light button (Figma Button secondary). The default for most actions in forms, toolbars and dialogs."
7465
+ },
7466
+ {
7467
+ "value": "ghost",
7468
+ "description": "No chrome until hover (Figma Button ghost). Use for icon buttons and dense UI."
7469
+ },
7470
+ {
7471
+ "value": "destructive",
7472
+ "description": "Irreversible or dangerous actions such as delete or revoke (Figma Button destructive): a red gradient with white text."
7473
+ },
7474
+ {
7475
+ "value": "warning",
7476
+ "description": "Confirms an action that needs attention but can be undone, such as pause (Figma Button warning): an amber gradient with white text."
7477
+ },
7478
+ {
7479
+ "value": "wallet",
7480
+ "description": "Express checkout (Apple Pay, Google Pay): the wallet brands' black button, white in dark mode, holding the wallet's `WalletLogo` (20 tall). Name it with `aria-label` (\"Pay with Apple Pay\"). `WalletButtons` lays out a row of them."
7481
+ },
7482
+ {
7483
+ "value": "destructive-outline",
7484
+ "description": "Bordered destructive action where a solid red button is too loud, e.g. in a row of actions."
7485
+ },
7486
+ {
7487
+ "value": "link",
7488
+ "description": "Looks like an inline link (link colour, underlined; the underline turns solid on hover) but behaves as a button."
7489
+ }
7490
+ ],
7491
+ "default": "\"default\""
7492
+ },
7493
+ {
7494
+ "name": "render",
7495
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>",
7496
+ "required": false,
7497
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
7498
+ "source": "base-ui"
7499
+ }
7500
+ ]
7359
7501
  }
7360
7502
  ],
7361
7503
  "examples": [
7362
7504
  {
7363
7505
  "name": "button/as-link",
7364
- "code": "\"use client\";\n\nimport { buttonVariants } from \"@dodopayments/ui/button\";\nimport Link from \"next/link\";\n\nexport default function ButtonAsLink() {\n return (\n <Link href=\"#as-link\" className={buttonVariants({ variant: \"secondary\" })}>\n Styled Next.js link\n </Link>\n );\n}"
7506
+ "code": "\"use client\";\n\nimport { ButtonLink, buttonVariants } from \"@dodopayments/ui/button\";\nimport { PlusIcon } from \"@dodopayments/ui/icons\";\nimport Link from \"next/link\";\n\nexport default function ButtonAsLink() {\n return (\n <div className=\"flex w-full flex-col gap-4\">\n <Link href=\"#as-link\" className={buttonVariants({ variant: \"secondary\" })}>\n Styled Next.js link\n </Link>\n <div className=\"@container w-80 max-w-full\">\n <ButtonLink\n render={<Link href=\"#as-link\" />}\n icon={<PlusIcon aria-hidden=\"true\" />}\n iconPlacement=\"left\"\n labelHidden=\"narrow\"\n >\n Add product\n </ButtonLink>\n </div>\n </div>\n );\n}"
7365
7507
  },
7366
7508
  {
7367
7509
  "name": "button/compact",
@@ -7375,6 +7517,10 @@
7375
7517
  "name": "button/copy",
7376
7518
  "code": "\"use client\";\n\nimport { CopyButton } from \"@dodopayments/ui/copy-button\";\n\nexport default function CopyButtonVariants() {\n return (\n <>\n <CopyButton content=\"pay_2ZsQh0r6UVSjAhEGg4Wq3\" />\n <CopyButton variant=\"secondary\" content=\"pay_2ZsQh0r6UVSjAhEGg4Wq3\" />\n <CopyButton variant=\"muted\" content=\"pay_2ZsQh0r6UVSjAhEGg4Wq3\" />\n <CopyButton variant=\"secondary\" content=\"pay_2ZsQh0r6UVSjAhEGg4Wq3\" />\n <CopyButton variant=\"ghost\" content=\"pay_2ZsQh0r6UVSjAhEGg4Wq3\" />\n </>\n );\n}"
7377
7519
  },
7520
+ {
7521
+ "name": "button/label-hidden",
7522
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { DownloadIcon, PlusIcon } from \"@dodopayments/ui/icons\";\n\nfunction Actions() {\n return (\n <div className=\"flex flex-wrap items-center gap-2\">\n <Button\n variant=\"secondary\"\n icon={<DownloadIcon aria-hidden=\"true\" />}\n iconPlacement=\"left\"\n labelHidden=\"narrow\"\n >\n Export\n </Button>\n <Button icon={<PlusIcon aria-hidden=\"true\" />} iconPlacement=\"left\" labelHidden=\"narrow\">\n Add product\n </Button>\n </div>\n );\n}\n\nexport default function ButtonLabelHidden() {\n return (\n <div className=\"flex w-full flex-col gap-4\">\n <div className=\"@container w-full\">\n <Actions />\n </div>\n <div className=\"@container w-80 max-w-full\">\n <Actions />\n </div>\n </div>\n );\n}"
7523
+ },
7378
7524
  {
7379
7525
  "name": "button/loading",
7380
7526
  "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { useEffect, useRef, useState } from \"react\";\n\nexport default function ButtonLoading() {\n const [saving, setSaving] = useState(false);\n const [result, setResult] = useState<\"success\" | \"error\" | null>(null);\n const [progress, setProgress] = useState(0);\n const attempts = useRef(0);\n const timers = useRef<ReturnType<typeof setTimeout>[]>([]);\n\n useEffect(() => {\n const pending = timers.current;\n const id = setInterval(() => setProgress((p) => (p >= 100 ? 0 : p + 10)), 600);\n return () => {\n clearInterval(id);\n for (const timer of pending) clearTimeout(timer);\n };\n }, []);\n\n const save = () => {\n setResult(null);\n setSaving(true);\n attempts.current += 1;\n // Every third save fails, to show the error face.\n const failed = attempts.current % 3 === 0;\n timers.current.push(\n setTimeout(() => {\n setSaving(false);\n setResult(failed ? \"error\" : \"success\");\n timers.current.push(setTimeout(() => setResult(null), 1400));\n }, 1000),\n );\n };\n\n return (\n <>\n <Button\n variant=\"secondary\"\n loading={saving}\n loadingText=\"Saving…\"\n result={result}\n successText=\"Saved\"\n errorText=\"Try again\"\n onClick={save}\n >\n Save changes\n </Button>\n <Button progress={progress} loadingText=\"Uploading\">\n Upload\n </Button>\n </>\n );\n}"
@@ -8468,6 +8614,88 @@
8468
8614
  "source": "dodo"
8469
8615
  }
8470
8616
  ]
8617
+ },
8618
+ {
8619
+ "name": "XAxis",
8620
+ "description": "The date or category labels under the plot. It picks evenly spaced ticks that fit the width and\nhighlights the hovered label while a tooltip is open.",
8621
+ "props": [
8622
+ {
8623
+ "name": "formatLabel",
8624
+ "type": "((row: Record<string, unknown>) => string)",
8625
+ "required": false,
8626
+ "description": "The label of a tick from its data row, in place of the date: e.g. \"Sep 1\" for a whole week, or an hour.\nTicks are picked and told apart by this label, so a same-day chart labelled by time keeps a tick\nper time. An empty label leaves that tick out.",
8627
+ "source": "dodo"
8628
+ },
8629
+ {
8630
+ "name": "numTicks",
8631
+ "type": "number",
8632
+ "required": false,
8633
+ "description": "Number of ticks to show (including first and last). Default: 5. A narrow chart shows fewer, so no\ntwo labels collide; it always keeps the first and last.",
8634
+ "source": "dodo"
8635
+ },
8636
+ {
8637
+ "name": "tickMode",
8638
+ "type": "\"data\" | \"domain\"",
8639
+ "required": false,
8640
+ "description": "`\"data\"` - tick labels snap to data rows so crosshair and tooltip stay aligned (default).\n`\"domain\"` - evenly spaced ticks across the time domain (may not align with hover).",
8641
+ "source": "dodo"
8642
+ },
8643
+ {
8644
+ "name": "tickerHalfWidth",
8645
+ "type": "number",
8646
+ "required": false,
8647
+ "description": "Width of the date ticker box for fade calculation. Default: 50",
8648
+ "source": "dodo"
8649
+ }
8650
+ ]
8651
+ },
8652
+ {
8653
+ "name": "YAxis",
8654
+ "description": "The value labels at the left or right edge of the plot, at the same ticks as `ChartGrid`. Pass\n`formatValue` for currency or percentages, and `yAxisId` for a second axis.",
8655
+ "props": [
8656
+ {
8657
+ "name": "formatLargeNumbers",
8658
+ "type": "boolean",
8659
+ "required": false,
8660
+ "description": "Format large numbers (e.g. 1000 as \"1k\"). Default: true",
8661
+ "source": "dodo"
8662
+ },
8663
+ {
8664
+ "name": "formatValue",
8665
+ "type": "((value: number) => string)",
8666
+ "required": false,
8667
+ "description": "Custom formatter for tick labels (e.g. USD). Overrides formatLargeNumbers when set.",
8668
+ "source": "dodo"
8669
+ },
8670
+ {
8671
+ "name": "numTicks",
8672
+ "type": "number",
8673
+ "required": false,
8674
+ "description": "Approximate tick count hint for `scale.ticks()` (d3). Actual label count may differ.\nClamped to {@link Y_AXIS_MIN_TICK_COUNT }–{@link Y_AXIS_MAX_TICK_COUNT }. Default: 5.",
8675
+ "source": "dodo"
8676
+ },
8677
+ {
8678
+ "name": "orientation",
8679
+ "type": "YAxisOrientation",
8680
+ "required": false,
8681
+ "description": "Which side of the chart to render labels. Default: `\"left\"`.",
8682
+ "source": "dodo"
8683
+ },
8684
+ {
8685
+ "name": "tickValues",
8686
+ "type": "number[]",
8687
+ "required": false,
8688
+ "description": "The exact values to label, such as the ones passed to `ChartGrid` `rowTickValues`, in place of\nthe scale's own; any outside the plot's domain is left out.",
8689
+ "source": "dodo"
8690
+ },
8691
+ {
8692
+ "name": "yAxisId",
8693
+ "type": "string | number",
8694
+ "required": false,
8695
+ "description": "Scale group id (Recharts `yAxisId`). Default: `\"left\"`.",
8696
+ "source": "dodo"
8697
+ }
8698
+ ]
8471
8699
  }
8472
8700
  ],
8473
8701
  "api": [
@@ -9499,7 +9727,15 @@
9499
9727
  "name": "help",
9500
9728
  "type": "ReactNode",
9501
9729
  "required": false,
9502
- "description": "With `title`: help text behind a 12px info icon after the title, in a Tooltip.",
9730
+ "description": "With `title`: a secondary description in a Tooltip on a 12px info icon after the title, instead of a line\nunder it (see `CardTitle`). An existing `description` still renders as a line.",
9731
+ "source": "dodo"
9732
+ },
9733
+ {
9734
+ "name": "helpLabel",
9735
+ "type": "string",
9736
+ "required": false,
9737
+ "default": "\"More information\"",
9738
+ "description": "With `help`: accessible name of the info icon button.",
9503
9739
  "source": "dodo"
9504
9740
  },
9505
9741
  {
@@ -9611,13 +9847,13 @@
9611
9847
  },
9612
9848
  {
9613
9849
  "name": "CardTitle",
9614
- "description": "Card heading (Heading/Quaternary, Content/Primary; Content/Error on the error tone). Renders a `<div>`; pass\n`render={<h2 />}` (or the level that fits the page outline). `help` adds the info icon with a Tooltip.",
9850
+ "description": "Card heading (Heading/Quaternary, Content/Primary; Content/Error on the error tone). Renders a `<div>`; pass\n`render={<h2 />}` (or the level that fits the page outline). `help` adds the info icon with a Tooltip; it\nfollows the title's last word when the title wraps, and the heading's name stays the title (its text is\n`${id}-text` when the title has an `id`, for a section's `aria-labelledby`).",
9615
9851
  "props": [
9616
9852
  {
9617
9853
  "name": "help",
9618
9854
  "type": "ReactNode",
9619
9855
  "required": false,
9620
- "description": "Short help text: shows a 12px info icon after the title with this text in a Tooltip.",
9856
+ "description": "A secondary description, shown in a Tooltip on a 12px info icon after the title instead of a line under it.\nUse it for text that helps but that the title and content already imply; keep `CardDescription` for what\nthe reader must see (a consequence, a requirement, a limit). It is also the icon's accessible description.",
9621
9857
  "source": "dodo"
9622
9858
  },
9623
9859
  {
@@ -9937,7 +10173,7 @@
9937
10173
  "name": "language",
9938
10174
  "type": "string",
9939
10175
  "required": false,
9940
- "description": "Language name, exposed as `data-language` on the root. `json` is coloured with the syntax tokens.",
10176
+ "description": "Language name, exposed as `data-language` on the root. `json` and the shells (`bash`, `sh`, `zsh`) are coloured.",
9941
10177
  "source": "dodo"
9942
10178
  },
9943
10179
  {
@@ -10400,11 +10636,15 @@
10400
10636
  },
10401
10637
  {
10402
10638
  "name": "size",
10403
- "type": "\"md\" | \"lg\"",
10639
+ "type": "\"sm\" | \"md\" | \"lg\"",
10404
10640
  "required": false,
10405
10641
  "description": "",
10406
10642
  "source": "dodo",
10407
10643
  "values": [
10644
+ {
10645
+ "value": "sm",
10646
+ "description": "36 rows in Body/Secondary with 12 padding, for a table in a narrow side panel such as Dodo AI's."
10647
+ },
10408
10648
  {
10409
10649
  "value": "md",
10410
10650
  "description": "48 rows, for one-line cells (the default)."
@@ -10415,6 +10655,13 @@
10415
10655
  }
10416
10656
  ],
10417
10657
  "default": "\"md\""
10658
+ },
10659
+ {
10660
+ "name": "storageKey",
10661
+ "type": "string",
10662
+ "required": false,
10663
+ "description": "Remembers the columns the user chose, in this browser: their visibility (an Edit columns menu), their order and\ntheir widths (`columnSizing`) are saved in localStorage under `dodo-ui:data-grid:<storageKey>` and restored on\nthe next visit, before the first paint. Give each table its own key. A saved order that no longer names every\ncolumn is ignored, and saved entries for removed columns are dropped. Sorting, selection and pages are not saved.",
10664
+ "source": "dodo"
10418
10665
  }
10419
10666
  ]
10420
10667
  },
@@ -11720,7 +11967,7 @@
11720
11967
  },
11721
11968
  {
11722
11969
  "name": "CollapsibleTrigger",
11723
- "description": "The header that opens and closes the content. In the card variant, put a `CollapsibleTitle` and an optional\n`CollapsibleDescription` in it. Only put phrasing content (text, spans, icons, badges) inside it, never another\nbutton or link.",
11970
+ "description": "The header that opens and closes the content. In the card variant, put a `CollapsibleTitle` and an optional\n`CollapsibleDescription` in it; a `Badge` there sits under the title at its own width. Only put phrasing content\n(text, spans, icons, badges) inside it, never another button or link.",
11724
11971
  "props": [
11725
11972
  {
11726
11973
  "name": "className",
@@ -11939,7 +12186,7 @@
11939
12186
  "title": "Scaled frame",
11940
12187
  "category": "Layout",
11941
12188
  "status": "stable",
11942
- "description": "Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout\npage in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales\nit up. The content stays a live page; put a cover over it when it should not take clicks.",
12189
+ "description": "Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout\npage in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales\nit up: content narrower than the frame sits in its middle. The content stays a live page; put a\ncover over it when it should not take clicks.",
11943
12190
  "importPath": "@dodopayments/ui/scaled-frame",
11944
12191
  "exports": [
11945
12192
  "ScaledFrame",
@@ -11948,7 +12195,7 @@
11948
12195
  "parts": [
11949
12196
  {
11950
12197
  "name": "ScaledFrame",
11951
- "description": "Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout\npage in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales\nit up. The content stays a live page; put a cover over it when it should not take clicks.",
12198
+ "description": "Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout\npage in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales\nit up: content narrower than the frame sits in its middle. The content stays a live page; put a\ncover over it when it should not take clicks.",
11952
12199
  "props": [
11953
12200
  {
11954
12201
  "name": "width",
@@ -12307,6 +12554,13 @@
12307
12554
  "name": "DialogPanel",
12308
12555
  "description": "The body of the white panel, 24 under the header (primitive `DialogPanel`). It scrolls inside the panel when\nthe dialog reaches its maximum height; the header and the footer strip stay.",
12309
12556
  "props": [
12557
+ {
12558
+ "name": "fill",
12559
+ "type": "boolean",
12560
+ "required": false,
12561
+ "description": "Fill the panel's height (a fixed-height dialog), so a short body can centre itself with `m-auto`.",
12562
+ "source": "dodo"
12563
+ },
12310
12564
  {
12311
12565
  "name": "scrollFade",
12312
12566
  "type": "boolean",
@@ -13072,10 +13326,10 @@
13072
13326
  },
13073
13327
  {
13074
13328
  "name": "titleAs",
13075
- "type": "\"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\"",
13329
+ "type": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\"",
13076
13330
  "required": false,
13077
13331
  "default": "\"h2\"",
13078
- "description": "Element used for the title. Match the heading outline of the page, or use `\"p\"` when it must not be a heading.",
13332
+ "description": "Element used for the title. Match the heading outline of the page (`\"h1\"` when the empty state is the whole page,\ne.g. a lost connection), or use `\"p\"` when it must not be a heading.",
13079
13333
  "source": "dodo"
13080
13334
  },
13081
13335
  {
@@ -13128,6 +13382,7 @@
13128
13382
  "FieldLabel",
13129
13383
  "FieldLabelProps",
13130
13384
  "FieldProps",
13385
+ "LabelRequiredIndicator",
13131
13386
  "fieldVariants"
13132
13387
  ],
13133
13388
  "parts": [
@@ -13167,7 +13422,7 @@
13167
13422
  "name": "expanded",
13168
13423
  "type": "ReactNode",
13169
13424
  "required": false,
13170
- "description": "Content under the description in the horizontal layout, 12 below it, in a row 8 apart: what a\nswitch reveals when it is on (an Input and an Edit button), or a row with no switch that edits a\nvalue. With a row control (`children`), the expanded controls get their own Field, so give them an\n`aria-label`; without one, the expanded control is the field's control. Horizontal layout only.",
13425
+ "description": "Content in the horizontal layout, 12 below the text, in a row 8 apart: what a switch reveals when\nit is on (an Input and an Edit button), or a row with no switch that edits a value. With a row\ncontrol (`children`), it spans the whole row under the text and the control (under the control on\na phone), and the expanded controls get their own Field, so give them an `aria-label`; without\none, it sits under the description and the expanded control is the field's control. Horizontal\nlayout only.",
13171
13426
  "source": "dodo"
13172
13427
  },
13173
13428
  {
@@ -13205,7 +13460,7 @@
13205
13460
  },
13206
13461
  {
13207
13462
  "value": "horizontal",
13208
- "description": "Text block (label row, description, expanded content, error) on the leading side, the control on the trailing side, 16 apart. For settings that apply on their own. Stacks below 640px."
13463
+ "description": "Text block (label row, description, error) on the leading side, the control on the trailing side, 16 apart; expanded content under them, across the row. For settings that apply on their own. Stacks below 640px."
13209
13464
  }
13210
13465
  ],
13211
13466
  "default": "\"vertical\""
@@ -13395,7 +13650,7 @@
13395
13650
  },
13396
13651
  {
13397
13652
  "name": "size",
13398
- "type": "\"sm\" | \"lg\" | null",
13653
+ "type": "\"code\" | \"sm\" | \"lg\" | null",
13399
13654
  "required": false,
13400
13655
  "description": "",
13401
13656
  "source": "dodo"
@@ -13425,7 +13680,7 @@
13425
13680
  "name": "suggestionsEmpty",
13426
13681
  "type": "ReactNode",
13427
13682
  "required": false,
13428
- "description": "Text shown in the list when no suggestion matches, announced politely. Without it the list hides instead.",
13683
+ "description": "Text shown in the list when no suggestion matches, announced politely. Without it the list closes instead.",
13429
13684
  "source": "dodo"
13430
13685
  },
13431
13686
  {
@@ -13585,6 +13840,19 @@
13585
13840
  "source": "base-ui"
13586
13841
  }
13587
13842
  ]
13843
+ },
13844
+ {
13845
+ "name": "LabelRequiredIndicator",
13846
+ "description": "Decorative required marker shared by `Label` and `FieldLabel`. Hidden from assistive\ntechnology: the control's own `required` attribute is what gets announced. Exported for a\nheading over a required group of fields; give it `className=\"ms-1\"` there.",
13847
+ "props": [
13848
+ {
13849
+ "name": "className",
13850
+ "type": "string",
13851
+ "required": false,
13852
+ "description": "Additional Tailwind classes, merged last.",
13853
+ "source": "dodo"
13854
+ }
13855
+ ]
13588
13856
  }
13589
13857
  ],
13590
13858
  "examples": [
@@ -14751,7 +15019,7 @@
14751
15019
  "title": "Input",
14752
15020
  "category": "Forms",
14753
15021
  "status": "stable",
14754
- "description": "The Dodo Nest Input. Lets the merchant type a value: one line (text, search, URLs, phone), several lines\n(`type=\"textarea\"`), a list of chips (`type=\"chips\"`, typed, or picked from `suggestions`), an amount in minor\nunits (`type=\"money\"`), a phone number with a country picker (`type=\"phone\"`) or a GSTIN / ABN (`type=\"tax-id\"`). A flat field on the panel: 1px Border/Primary, Radius/Medium,\na brand ring on focus, a red ring and placeholder when invalid, grey (Surface/Secondary) when read-only. Every Input\nis 36 tall; a one-line input can be the compact `size=\"sm\"` (28). A one-line input takes icons, an inline `prefix` / `suffix`,\na boxed `addon`, `prefixSelect` / `suffixSelect` and a `shortcut`; read-only shows a copy button. With\n`suggestions` it suggests values in a list while the user types (an autocomplete; the value stays free text). Inside\na `Field` it picks up the label, description and validation state.",
15022
+ "description": "The Dodo Nest Input. Lets the merchant type a value: one line (text, search, URLs, phone), several lines\n(`type=\"textarea\"`), a list of chips (`type=\"chips\"`, typed, or picked from `suggestions`), an amount in minor\nunits (`type=\"money\"`), a phone number with a country picker (`type=\"phone\"`) or a GSTIN / ABN (`type=\"tax-id\"`). A flat field on the panel: 1px Border/Primary, Radius/Medium,\na brand ring on focus, a red ring when invalid (the placeholder stays muted), grey (Surface/Secondary) when read-only. Every Input\nis 36 tall; a one-line input can be the compact `size=\"sm\"` (28), or `size=\"code\"` (56, large centred monospace) for one code read off another screen. A one-line input takes icons, an inline `prefix` / `suffix`,\na boxed `addon`, `prefixSelect` / `suffixSelect` and a `shortcut`; read-only shows a copy button (`copyable={false}` hides it,\nwhen the page already offers its own copy action). With\n`suggestions` it suggests values in a list while the user types (an autocomplete; the value stays free text). Inside\na `Field` it picks up the label, description and validation state.",
14755
15023
  "importPath": "@dodopayments/ui/input",
14756
15024
  "exports": [
14757
15025
  "DODO_INPUT_DEFAULT_VARIANTS",
@@ -14784,7 +15052,7 @@
14784
15052
  "parts": [
14785
15053
  {
14786
15054
  "name": "Input",
14787
- "description": "The Dodo Nest Input. Lets the merchant type a value: one line (text, search, URLs, phone), several lines\n(`type=\"textarea\"`), a list of chips (`type=\"chips\"`, typed, or picked from `suggestions`), an amount in minor\nunits (`type=\"money\"`), a phone number with a country picker (`type=\"phone\"`) or a GSTIN / ABN (`type=\"tax-id\"`). A flat field on the panel: 1px Border/Primary, Radius/Medium,\na brand ring on focus, a red ring and placeholder when invalid, grey (Surface/Secondary) when read-only. Every Input\nis 36 tall; a one-line input can be the compact `size=\"sm\"` (28). A one-line input takes icons, an inline `prefix` / `suffix`,\na boxed `addon`, `prefixSelect` / `suffixSelect` and a `shortcut`; read-only shows a copy button. With\n`suggestions` it suggests values in a list while the user types (an autocomplete; the value stays free text). Inside\na `Field` it picks up the label, description and validation state.",
15055
+ "description": "The Dodo Nest Input. Lets the merchant type a value: one line (text, search, URLs, phone), several lines\n(`type=\"textarea\"`), a list of chips (`type=\"chips\"`, typed, or picked from `suggestions`), an amount in minor\nunits (`type=\"money\"`), a phone number with a country picker (`type=\"phone\"`) or a GSTIN / ABN (`type=\"tax-id\"`). A flat field on the panel: 1px Border/Primary, Radius/Medium,\na brand ring on focus, a red ring when invalid (the placeholder stays muted), grey (Surface/Secondary) when read-only. Every Input\nis 36 tall; a one-line input can be the compact `size=\"sm\"` (28), or `size=\"code\"` (56, large centred monospace) for one code read off another screen. A one-line input takes icons, an inline `prefix` / `suffix`,\na boxed `addon`, `prefixSelect` / `suffixSelect` and a `shortcut`; read-only shows a copy button (`copyable={false}` hides it,\nwhen the page already offers its own copy action). With\n`suggestions` it suggests values in a list while the user types (an autocomplete; the value stays free text). Inside\na `Field` it picks up the label, description and validation state.",
14788
15056
  "props": [
14789
15057
  {
14790
15058
  "name": "aria-label",
@@ -14917,6 +15185,10 @@
14917
15185
  "name": "input/async-suggestions",
14918
15186
  "code": "\"use client\";\n\nimport { Field } from \"@dodopayments/ui/field\";\nimport { Input, type InputSuggestionItem } from \"@dodopayments/ui/input\";\nimport { useEffect, useRef, useState } from \"react\";\n\nconst products = [\n { value: \"pdt_01\", label: \"Framer Template\", description: \"One-time · $49.00\" },\n { value: \"pdt_02\", label: \"Pro plan\", description: \"Subscription · $29.00 / month\" },\n { value: \"pdt_03\", label: \"Team plan\", description: \"Subscription · $99.00 / month\" },\n { value: \"pdt_04\", label: \"Icon pack\", description: \"One-time · $19.00\" },\n { value: \"pdt_05\", label: \"API credits\", description: \"Usage based · $0.002 / call\" },\n] satisfies InputSuggestionItem[];\n\n/** Stands in for a product search request: answers after 600 ms. */\nfunction searchProducts(query: string, signal: AbortSignal): Promise<InputSuggestionItem[]> {\n return new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n const needle = query.trim().toLowerCase();\n resolve(\n products.filter((product) =>\n `${product.label} ${product.description}`.toLowerCase().includes(needle),\n ),\n );\n }, 600);\n signal.addEventListener(\"abort\", () => {\n clearTimeout(timer);\n reject(new Error(\"Search cancelled\"));\n });\n });\n}\n\nexport default function InputAsyncSuggestions() {\n const [query, setQuery] = useState(\"\");\n const [results, setResults] = useState<InputSuggestionItem[]>([]);\n const [loading, setLoading] = useState(false);\n const request = useRef<AbortController | null>(null);\n useEffect(() => () => request.current?.abort(), []);\n\n const search = (next: string) => {\n setQuery(next);\n request.current?.abort();\n if (next.trim() === \"\") {\n setResults([]);\n setLoading(false);\n return;\n }\n const controller = new AbortController();\n request.current = controller;\n setLoading(true);\n searchProducts(next, controller.signal)\n .then((found) => {\n setResults(found);\n setLoading(false);\n })\n .catch(() => undefined);\n };\n\n return (\n <Field\n label=\"Product\"\n description=\"Results come from the server as you type.\"\n className=\"w-full max-w-sm\"\n >\n <Input\n placeholder=\"Search products\"\n value={query}\n onValueChange={search}\n // The server already matched these, so the Input shows them as they are.\n suggestions={loading ? [] : results}\n filterSuggestions={false}\n suggestionsLoading={loading}\n suggestionsLoadingText=\"Searching products\"\n suggestionsEmpty={query.trim() === \"\" ? undefined : \"No products found.\"}\n clearable\n />\n </Field>\n );\n}"
14919
15187
  },
15188
+ {
15189
+ "name": "input/code",
15190
+ "code": "\"use client\";\n\nimport { Input } from \"@dodopayments/ui/input\";\n\nexport default function InputCode() {\n return (\n <div className=\"w-full max-w-sm\">\n <Input\n size=\"code\"\n aria-label=\"Device code\"\n placeholder=\"XXXX-XXXX\"\n autoCapitalize=\"characters\"\n autoComplete=\"off\"\n spellCheck={false}\n />\n </div>\n );\n}"
15191
+ },
14920
15192
  {
14921
15193
  "name": "input/compact",
14922
15194
  "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { MagnifierIcon } from \"@dodopayments/ui/icons\";\nimport { Input } from \"@dodopayments/ui/input\";\nimport { Select, SelectContent, SelectTrigger, SelectValue } from \"@dodopayments/ui/select\";\n\nconst STATUSES = [\n { value: \"all\", label: \"All statuses\" },\n { value: \"succeeded\", label: \"Succeeded\" },\n { value: \"failed\", label: \"Failed\" },\n];\n\nexport default function InputCompact() {\n return (\n <div className=\"flex w-full max-w-xl flex-wrap items-center gap-2\">\n <Input\n size=\"sm\"\n type=\"search\"\n aria-label=\"Search payments\"\n placeholder=\"Search payments\"\n leadingIcon={<MagnifierIcon />}\n className=\"min-w-40 flex-1\"\n />\n <Select items={STATUSES} defaultValue=\"all\">\n <SelectTrigger size=\"sm\" aria-label=\"Status\" className=\"w-40\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent />\n </Select>\n <Button size=\"sm\" variant=\"secondary\">\n Reset\n </Button>\n </div>\n );\n}"
@@ -16894,6 +17166,13 @@
16894
17166
  "description": "Additional Tailwind classes, merged last.",
16895
17167
  "source": "dodo"
16896
17168
  },
17169
+ {
17170
+ "name": "description",
17171
+ "type": "ReactNode",
17172
+ "required": false,
17173
+ "description": "The notice's body under the title, up to two lines (Body/Secondary).",
17174
+ "source": "dodo"
17175
+ },
16897
17176
  {
16898
17177
  "name": "icon",
16899
17178
  "type": "ReactNode",
@@ -16908,6 +17187,13 @@
16908
17187
  "description": "The object ID (Mono/Primary).",
16909
17188
  "source": "dodo"
16910
17189
  },
17190
+ {
17191
+ "name": "onClick",
17192
+ "type": "(() => void)",
17193
+ "required": false,
17194
+ "description": "Makes the whole row a button, e.g. to open what the notice is about.",
17195
+ "source": "dodo"
17196
+ },
16911
17197
  {
16912
17198
  "name": "time",
16913
17199
  "type": "ReactNode",
@@ -17260,7 +17546,7 @@
17260
17546
  "title": "Quantity stepper",
17261
17547
  "category": "Forms",
17262
17548
  "status": "stable",
17263
- "description": "A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).\nTwo sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36, 40 below `sm`,\nshorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.\nBuilt on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`\n\"Number field\") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to\n`min` / `max`, and the − / + buttons disable at the bounds. `onValueChange` reports `null` while the\nvalue is cleared. `id` lands on the value, so a `<label htmlFor>` names it; otherwise pass `aria-label`.\n\nA press on − / + (or the mouse wheel with `allowWheelScrub`) spins the digits with NumberFlow over\n`duration-slow`; holding a button repeats without spinning. While the user edits the value, the plain\ninput shows instead, so typing and arrow-key steps never animate. The animated copy is `aria-hidden`.",
17549
+ "description": "A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).\nTwo sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36,\nshorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.\nBuilt on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`\n\"Number field\") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to\n`min` / `max`, and the − / + buttons disable at the bounds. `onValueChange` reports `null` while the\nvalue is cleared. `id` lands on the value, so a `<label htmlFor>` names it; otherwise pass `aria-label`.\n\nA press on − / + (or the mouse wheel with `allowWheelScrub`) spins the digits with NumberFlow over\n`duration-slow`; holding a button repeats without spinning. While the user edits the value, the plain\ninput shows instead, so typing and arrow-key steps never animate. The animated copy is `aria-hidden`.",
17264
17550
  "importPath": "@dodopayments/ui/quantity-stepper",
17265
17551
  "exports": [
17266
17552
  "DODO_QUANTITY_STEPPER_DEFAULT_VARIANTS",
@@ -17272,7 +17558,7 @@
17272
17558
  "parts": [
17273
17559
  {
17274
17560
  "name": "QuantityStepper",
17275
- "description": "A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).\nTwo sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36, 40 below `sm`,\nshorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.\nBuilt on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`\n\"Number field\") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to\n`min` / `max`, and the − / + buttons disable at the bounds. `onValueChange` reports `null` while the\nvalue is cleared. `id` lands on the value, so a `<label htmlFor>` names it; otherwise pass `aria-label`.\n\nA press on − / + (or the mouse wheel with `allowWheelScrub`) spins the digits with NumberFlow over\n`duration-slow`; holding a button repeats without spinning. While the user edits the value, the plain\ninput shows instead, so typing and arrow-key steps never animate. The animated copy is `aria-hidden`.",
17561
+ "description": "A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).\nTwo sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36,\nshorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.\nBuilt on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`\n\"Number field\") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to\n`min` / `max`, and the − / + buttons disable at the bounds. `onValueChange` reports `null` while the\nvalue is cleared. `id` lands on the value, so a `<label htmlFor>` names it; otherwise pass `aria-label`.\n\nA press on − / + (or the mouse wheel with `allowWheelScrub`) spins the digits with NumberFlow over\n`duration-slow`; holding a button repeats without spinning. While the user edits the value, the plain\ninput shows instead, so typing and arrow-key steps never animate. The animated copy is `aria-hidden`.",
17276
17562
  "props": [
17277
17563
  {
17278
17564
  "name": "aria-describedby",
@@ -17346,7 +17632,7 @@
17346
17632
  },
17347
17633
  {
17348
17634
  "value": "lg",
17349
- "description": "The height of Button lg (`--control-height-lg`: 36, 40 below `sm`, less in compact density), with Button icon (`--control-height-md`) − and + 2px inside, Button icon sizes and the value in Labels/Primary. Next to a lg button, such as Buy now on a Product card."
17635
+ "description": "The height of Button lg (`--control-height-lg`: 36, less in compact density), with Button icon (`--control-height-md`) − and + 2px inside, Button icon sizes and the value in Labels/Primary. Next to a lg button, such as Buy now on a Product card."
17350
17636
  }
17351
17637
  ],
17352
17638
  "default": "\"default\""
@@ -17510,7 +17796,7 @@
17510
17796
  "type": "boolean",
17511
17797
  "required": false,
17512
17798
  "default": "false",
17513
- "description": "Open the link in a new tab (`target=\"_blank\"`, `rel=\"noopener noreferrer\"`), end it with an\nup-right arrow (it replaces the entity arrow) and append `externalLabel` for screen readers (also\nappended to `aria-label` when set).",
17799
+ "description": "Open the link in a new tab (`target=\"_blank\"`, `rel=\"noopener noreferrer\"`), end it with an\nup-right arrow (it replaces the entity arrow; in running text it wraps with the last word, never\nalone) and append `externalLabel` for screen readers (also appended to `aria-label` when set).",
17514
17800
  "source": "dodo"
17515
17801
  },
17516
17802
  {
@@ -17796,6 +18082,13 @@
17796
18082
  "description": "Turns editing and the toolbar off and dims the editor to 64%.",
17797
18083
  "source": "dodo"
17798
18084
  },
18085
+ {
18086
+ "name": "hiddenTools",
18087
+ "type": "readonly RichTextEditorTool[]",
18088
+ "required": false,
18089
+ "description": "Tools to leave out of the strip, e.g. `[\"strikethrough\"]` when the text is shown where strikethrough is not.",
18090
+ "source": "dodo"
18091
+ },
17799
18092
  {
17800
18093
  "name": "id",
17801
18094
  "type": "string",
@@ -17803,6 +18096,14 @@
17803
18096
  "description": "The textbox id. Inside a `Field` the field sets it, so its label focuses the editor.",
17804
18097
  "source": "dodo"
17805
18098
  },
18099
+ {
18100
+ "name": "input",
18101
+ "type": "\"editor\" | \"markdown\"",
18102
+ "required": false,
18103
+ "default": "\"editor\"",
18104
+ "description": "What `value` is written in. `\"editor\"` is markdown with the editor's inline HTML for underline and text colour,\nwhich `RichTextContent` renders. `\"markdown\"` is plain markdown, for a renderer that shows no HTML (an app\ndescription): the strip has no underline or colour, inline HTML stays literal text, and inline code, fenced code\nblocks and single line breaks are kept as written. Read when the editor mounts.",
18105
+ "source": "dodo"
18106
+ },
17806
18107
  {
17807
18108
  "name": "labels",
17808
18109
  "type": "Partial<RichTextEditorLabels>",
@@ -18092,6 +18393,8 @@
18092
18393
  "AppTopBarMilestonesRing",
18093
18394
  "AppTopBarMilestonesRingProps",
18094
18395
  "AppTopBarProps",
18396
+ "AppTopBarSupportItem",
18397
+ "AppTopBarSupportItemProps",
18095
18398
  "AppTopBarUser",
18096
18399
  "DODO_APP_TOP_BAR_DEFAULT_VARIANTS",
18097
18400
  "DODO_APP_TOP_BAR_VARIANTS"
@@ -18167,6 +18470,13 @@
18167
18470
  "description": "What the bell opens: the children of a `size=\"lg\"` `PopoverContent` (a `PopoverHeader`, then a\n`PopoverPanel`), 8 below the bell with right edges aligned. Without it the bell calls `onOpenNotifications`.",
18168
18471
  "source": "dodo"
18169
18472
  },
18473
+ {
18474
+ "name": "notificationsCount",
18475
+ "type": "number",
18476
+ "required": false,
18477
+ "description": "Unseen notifications, shown on the bell (99+ past 99) and named in its label. Hidden at 0.",
18478
+ "source": "dodo"
18479
+ },
18170
18480
  {
18171
18481
  "name": "onOpenAccount",
18172
18482
  "type": "(() => void)",
@@ -18285,6 +18595,13 @@
18285
18595
  "description": "Show the Setup guide button in the Milestones slot, for a business that has not finished setting up. It takes\nthe place of Milestones (never both).",
18286
18596
  "source": "dodo"
18287
18597
  },
18598
+ {
18599
+ "name": "support",
18600
+ "type": "ReactNode",
18601
+ "required": false,
18602
+ "description": "The dashboard's help panel: `AppTopBarSupportItem` rows (Discord, chat, feature requests, docs) in a 300 wide\npopover over a dot field, 12 below its button with right edges aligned. It replaces the chat button, and stays in\nthe bar on a phone. Without it the chat button calls `onOpenChat`.",
18603
+ "source": "dodo"
18604
+ },
18288
18605
  {
18289
18606
  "name": "theme",
18290
18607
  "type": "AppTopBarTheme",
@@ -18333,6 +18650,40 @@
18333
18650
  "source": "dodo"
18334
18651
  }
18335
18652
  ]
18653
+ },
18654
+ {
18655
+ "name": "AppTopBarSupportItem",
18656
+ "description": "One row of the help panel: a bordered secondary row with an icon and a label. A button row closes the panel; an\n`href` row opens its page in a new tab and leaves the panel open, as the dashboard's does.",
18657
+ "props": [
18658
+ {
18659
+ "name": "icon",
18660
+ "type": "ReactNode",
18661
+ "required": true,
18662
+ "description": "Leading 20px Nucleo icon.",
18663
+ "source": "dodo"
18664
+ },
18665
+ {
18666
+ "name": "className",
18667
+ "type": "string",
18668
+ "required": false,
18669
+ "description": "Additional Tailwind classes, merged last.",
18670
+ "source": "dodo"
18671
+ },
18672
+ {
18673
+ "name": "href",
18674
+ "type": "string",
18675
+ "required": false,
18676
+ "description": "Makes the row a link that opens in a new tab, e.g. the docs or the Discord server.",
18677
+ "source": "dodo"
18678
+ },
18679
+ {
18680
+ "name": "onClick",
18681
+ "type": "(() => void)",
18682
+ "required": false,
18683
+ "description": "",
18684
+ "source": "dodo"
18685
+ }
18686
+ ]
18336
18687
  }
18337
18688
  ],
18338
18689
  "examples": [
@@ -18347,6 +18698,10 @@
18347
18698
  {
18348
18699
  "name": "app-top-bar/setup-guide",
18349
18700
  "code": "\"use client\";\n\nimport { AppTopBar } from \"@dodopayments/ui/app-top-bar\";\nimport { useState } from \"react\";\n\nconst STEPS = 11;\n\nexport default function AppTopBarSetupGuide() {\n const [done, setDone] = useState(3);\n const finished = done >= STEPS;\n\n return (\n <div className=\"w-full\">\n <AppTopBar\n // The hero above owns the / key on this page.\n searchShortcut={false}\n showSetupGuide={!finished}\n setupGuideProgress={done / STEPS}\n // Each press finishes a step; once setup is done, Milestones takes the slot.\n onOpenSetupGuide={() => setDone((value) => Math.min(STEPS, value + 2))}\n milestonesProgress={0.2}\n onOpenMilestones={() => setDone(3)}\n />\n </div>\n );\n}"
18701
+ },
18702
+ {
18703
+ "name": "app-top-bar/support",
18704
+ "code": "\"use client\";\n\nimport { AppTopBar, AppTopBarSupportItem } from \"@dodopayments/ui/app-top-bar\";\nimport { BrandLogo } from \"@dodopayments/ui/brand-logos\";\nimport { BookOpenIcon, ChatBubbleIcon, LightbulbIcon } from \"@dodopayments/ui/icons\";\n\nexport default function AppTopBarSupport() {\n return (\n <div className=\"w-full\">\n <AppTopBar\n // The hero above owns the / key on this page.\n searchShortcut={false}\n support={\n <>\n <AppTopBarSupportItem\n icon={<BrandLogo brand=\"discord\" />}\n href=\"https://discord.gg/bYqAp4ayYh\"\n >\n Join Our Discord Community\n </AppTopBarSupportItem>\n <AppTopBarSupportItem icon={<ChatBubbleIcon />}>Chat Support</AppTopBarSupportItem>\n <AppTopBarSupportItem icon={<LightbulbIcon />}>Feature Requests</AppTopBarSupportItem>\n <AppTopBarSupportItem icon={<BookOpenIcon />} href=\"https://docs.dodopayments.com\">\n Visit Docs\n </AppTopBarSupportItem>\n </>\n }\n />\n </div>\n );\n}"
18350
18705
  }
18351
18706
  ],
18352
18707
  "docsUrl": "/components/app-top-bar"
@@ -18711,11 +19066,11 @@
18711
19066
  "values": [
18712
19067
  {
18713
19068
  "value": "default",
18714
- "description": "36 tall (40 below `sm`), as in Figma. The default."
19069
+ "description": "36 tall, as in Figma. The default."
18715
19070
  },
18716
19071
  {
18717
19072
  "value": "sm",
18718
- "description": "28 tall (32 below `sm`): a compact trigger in a dense toolbar or a table filter row, next to an `sm` Input or Button. Not a Figma size. The chips field of `multiple` and the `compact` variant keep their height."
19073
+ "description": "28 tall: a compact trigger in a dense toolbar or a table filter row, next to an `sm` Input or Button. Not a Figma size. The chips field of `multiple` and the `compact` variant keep their height."
18719
19074
  }
18720
19075
  ],
18721
19076
  "default": "\"default\""
@@ -18764,7 +19119,7 @@
18764
19119
  },
18765
19120
  {
18766
19121
  "name": "Select",
18767
- "description": "The Dodo Nest Select (Figma ↳ Select): one field, 36 tall, that opens a list in the Menu look 8 below it. Pick one\nvalue, or several with `multiple` (chips in the field, extras as \"+N\"); `searchable` adds a search field to the\nlist. Pass `items` (`{ value, label }[]`) so `SelectValue` shows the label. A plain Select renders the primitives /\nBase UI `Select`; `searchable` or `multiple` run the Combobox under the same parts, with the same string values.",
19122
+ "description": "The Dodo Nest Select (Figma ↳ Select): one field, 36 tall, that opens a list in the Menu look 8 below it. Pick one\nvalue, or several with `multiple` (chips in the field, extras as \"+N\"); `searchable` adds a search field to the\nlist. Pass `items` (`{ value, label }[]`) so `SelectValue` shows the label. A plain Select renders the primitives /\nBase UI `Select`; `searchable` or `multiple` run the Combobox under the same parts, with the same string values.\nA `multiple` field sizes its chips to its own width, so give it a definite width (the default full width, or a\nfixed one); sized to its content (`w-fit`) it would collapse.",
18768
19123
  "props": [
18769
19124
  {
18770
19125
  "name": "maxChips",
@@ -19173,7 +19528,7 @@
19173
19528
  },
19174
19529
  {
19175
19530
  "name": "SelectValue",
19176
- "description": "Shows the selected item's label, or `placeholder` (Content/Tertiary) when empty. With `multiple` it shows the\nchosen options as chips (`.Chip`, with a remove button each) and the rest as \"+N\".",
19531
+ "description": "Shows the selected item's label, or `placeholder` (Content/Tertiary) when empty. With `multiple` it shows the\nchosen options as chips (`.Chip`, with a remove button each) and the rest as \"+N\", on one line, or wrapped to more\nrows in a field under 18rem.",
19177
19532
  "props": [
19178
19533
  {
19179
19534
  "name": "className",
@@ -19236,7 +19591,7 @@
19236
19591
  "title": "Sheet",
19237
19592
  "category": "Overlays",
19238
19593
  "status": "stable",
19239
- "description": "The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading\ndirection (the right in LTR). `type=\"side\"` (default) is a grey tray 8 from the screen edges, 400 wide (`size=\"lg\"`:\n560), with the title and close on the grey chin, the body in a white panel that scrolls, and the actions on the grey\nstrip; below 400 it fills the screen minus 8 on every side. `type=\"full\"` covers the screen. Always include a\n`SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over a sheet, and use\na Dialog for a yes / no confirm.",
19594
+ "description": "The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading\ndirection (the right in LTR). `type=\"side\"` (default) is a grey tray 8 from the screen edges, 400 wide (`size=\"lg\"`:\n560, `size=\"xl\"`: 768), with the title and close on the grey chin, the body in a white panel that scrolls, and the\nactions on the grey strip; below 400 it fills the screen minus 8 on every side. `type=\"full\"` covers the screen.\nAlways include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over\na sheet, and use a Dialog for a yes / no confirm.",
19240
19595
  "importPath": "@dodopayments/ui/sheet",
19241
19596
  "exports": [
19242
19597
  "DODO_SHEET_DEFAULT_VARIANTS",
@@ -19267,7 +19622,7 @@
19267
19622
  "parts": [
19268
19623
  {
19269
19624
  "name": "SheetContent",
19270
- "description": "The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading\ndirection (the right in LTR). `type=\"side\"` (default) is a grey tray 8 from the screen edges, 400 wide (`size=\"lg\"`:\n560), with the title and close on the grey chin, the body in a white panel that scrolls, and the actions on the grey\nstrip; below 400 it fills the screen minus 8 on every side. `type=\"full\"` covers the screen. Always include a\n`SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over a sheet, and use\na Dialog for a yes / no confirm.",
19625
+ "description": "The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading\ndirection (the right in LTR). `type=\"side\"` (default) is a grey tray 8 from the screen edges, 400 wide (`size=\"lg\"`:\n560, `size=\"xl\"`: 768), with the title and close on the grey chin, the body in a white panel that scrolls, and the\nactions on the grey strip; below 400 it fills the screen minus 8 on every side. `type=\"full\"` covers the screen.\nAlways include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over\na sheet, and use a Dialog for a yes / no confirm.",
19271
19626
  "props": [
19272
19627
  {
19273
19628
  "name": "className",
@@ -19301,7 +19656,7 @@
19301
19656
  },
19302
19657
  {
19303
19658
  "name": "size",
19304
- "type": "\"md\" | \"lg\"",
19659
+ "type": "\"md\" | \"lg\" | \"xl\"",
19305
19660
  "required": false,
19306
19661
  "description": "",
19307
19662
  "source": "dodo",
@@ -19313,6 +19668,10 @@
19313
19668
  {
19314
19669
  "value": "lg",
19315
19670
  "description": "560 wide: longer forms. Side sheets only."
19671
+ },
19672
+ {
19673
+ "value": "xl",
19674
+ "description": "768 wide: a form with a code editor or a long checklist, such as a webhook endpoint. Side sheets only."
19316
19675
  }
19317
19676
  ],
19318
19677
  "default": "\"md\""
@@ -19521,7 +19880,7 @@
19521
19880
  "name": "progress",
19522
19881
  "type": "number",
19523
19882
  "required": false,
19524
- "description": "Full screen only: how far along the flow is (0–100), drawn as a 120 wide Progress bar before the close button.",
19883
+ "description": "Full screen only: how far along the flow is (0–100), drawn as a 120 wide Progress bar before the close button.\nHidden below `sm`, so the title and description get the row on a phone.",
19525
19884
  "source": "dodo"
19526
19885
  },
19527
19886
  {
@@ -19761,7 +20120,7 @@
19761
20120
  },
19762
20121
  {
19763
20122
  "name": "SidebarBusinessSwitcher",
19764
- "description": "The business switcher at the top of the sidebar (Figma `.Business switcher`): a 44px white row with a 24px\navatar, the name (truncates) and an up-down chevron; the same 24px avatar alone on the icon rail. Opens the business Menu\n(`children`) 8px below. Put it in `SidebarHeader`.",
20123
+ "description": "The business switcher at the top of the sidebar (Figma `.Business switcher`): a 44px white row with a 24px\navatar, the name (truncates), an optional `badge` and an up-down chevron; the same 24px avatar alone on the icon rail. Opens the business Menu\n(`children`) 8px below. Put it in `SidebarHeader`.",
19765
20124
  "props": [
19766
20125
  {
19767
20126
  "name": "name",
@@ -19770,6 +20129,13 @@
19770
20129
  "description": "Name of the current business. Its initials fill the avatar when there is no `logoUrl`.",
19771
20130
  "source": "dodo"
19772
20131
  },
20132
+ {
20133
+ "name": "badge",
20134
+ "type": "ReactNode",
20135
+ "required": false,
20136
+ "description": "After the name, e.g. the member's role as a neutral `Badge`. Hidden on the icon rail.",
20137
+ "source": "dodo"
20138
+ },
19773
20139
  {
19774
20140
  "name": "logoUrl",
19775
20141
  "type": "string",
@@ -19838,7 +20204,7 @@
19838
20204
  },
19839
20205
  {
19840
20206
  "name": "SidebarMenuButton",
19841
- "description": "The clickable row of a menu item (primitive `SidebarMenuButton`, Figma `.Nav item`): a 20px icon + Body/Primary\nlabel, 32px tall; a 32px tile on the icon rail. Renders a `<button>`; for navigation pass\n`render={<a href=\"/payments\" />}` (or your router's link).",
20207
+ "description": "The clickable row of a menu item (primitive `SidebarMenuButton`, Figma `.Nav item`): a 20px icon + Body/Primary\nlabel, 32px tall; a 32px tile on the icon rail. Renders a `<button>`; for navigation pass\n`render={<a href=\"/payments\" />}` (or your router's link). `tag` adds a badge at the end of the row, a dot on the rail.",
19842
20208
  "props": [
19843
20209
  {
19844
20210
  "name": "isActive",
@@ -19848,6 +20214,13 @@
19848
20214
  "description": "Marks the item as the current page: Surface/Tertiary with a Border/Secondary ring, a Content/Primary icon\nand `aria-current=\"page\"`.",
19849
20215
  "source": "dodo"
19850
20216
  },
20217
+ {
20218
+ "name": "tag",
20219
+ "type": "ReactNode",
20220
+ "required": false,
20221
+ "description": "A tag at the end of the row, such as a violet sm `Badge` \"New\". On the icon rail it leaves the screen (it stays in\nthe item's accessible name) and a 6px violet dot marks the tile's corner instead.",
20222
+ "source": "dodo"
20223
+ },
19851
20224
  {
19852
20225
  "name": "tooltip",
19853
20226
  "type": "ReactNode",
@@ -19866,8 +20239,16 @@
19866
20239
  },
19867
20240
  {
19868
20241
  "name": "SidebarMenuCollapsible",
19869
- "description": "A menu item that expands to show a sub-menu. Renders `<li>`; compose it from a\n`SidebarMenuCollapsibleTrigger` and a `SidebarMenuCollapsibleContent` holding a `SidebarMenuSub`.\nThe primitives have no sidebar collapsible part; built from the `Collapsible` primitive.\n\nInside a `SidebarProvider` only one sub-menu is open at a time: opening one closes the one that was open.\n`defaultOpen` sets the first state. Pass `open` to control it yourself; a controlled sub-menu is left out of this.",
20242
+ "description": "A menu item that expands to show a sub-menu. Renders `<li>`; compose it from a\n`SidebarMenuCollapsibleTrigger` and a `SidebarMenuCollapsibleContent` holding a `SidebarMenuSub`.\nThe primitives have no sidebar collapsible part; built from the `Collapsible` primitive.\n\nInside a `SidebarProvider` only one sub-menu is open at a time: opening one closes the one that was open.\n`defaultOpen` sets the first state, and `active` opens the one that holds the current page whenever it becomes\nactive. Pass `open` to control it yourself; a controlled sub-menu is left out of this.",
19870
20243
  "props": [
20244
+ {
20245
+ "name": "active",
20246
+ "type": "boolean",
20247
+ "required": false,
20248
+ "default": "false",
20249
+ "description": "The sub-menu holds the current page. It opens (closing the others) when it becomes active, also when the page\nchanges from outside the sidebar, and the merchant can still close it.",
20250
+ "source": "dodo"
20251
+ },
19871
20252
  {
19872
20253
  "name": "className",
19873
20254
  "type": "string",
@@ -19945,7 +20326,7 @@
19945
20326
  },
19946
20327
  {
19947
20328
  "name": "SidebarMenuCollapsibleTrigger",
19948
- "description": "The row that opens and closes a sub-menu: a `SidebarMenuButton` primitive rendered as a `CollapsibleTrigger`\nprimitive, with a 12px chevron. The parent stays default while its group is open.",
20329
+ "description": "The row that opens and closes a sub-menu: a `SidebarMenuButton` primitive rendered as a `CollapsibleTrigger`\nprimitive, with a 12px chevron. The parent stays default while its group is open. `tag` adds a badge before the\nchevron, a dot on the rail.",
19949
20330
  "props": [
19950
20331
  {
19951
20332
  "name": "className",
@@ -19962,6 +20343,13 @@
19962
20343
  "description": "Highlights the row, e.g. when the current page is inside the sub-menu.",
19963
20344
  "source": "dodo"
19964
20345
  },
20346
+ {
20347
+ "name": "tag",
20348
+ "type": "ReactNode",
20349
+ "required": false,
20350
+ "description": "A tag before the chevron, such as a violet sm `Badge` \"New\"; a 6px violet dot on the icon rail.",
20351
+ "source": "dodo"
20352
+ },
19965
20353
  {
19966
20354
  "name": "tooltip",
19967
20355
  "type": "ReactNode",
@@ -19998,7 +20386,7 @@
19998
20386
  },
19999
20387
  {
20000
20388
  "name": "SidebarMenuSubButton",
20001
- "description": "Link row of a sub-menu (primitive `SidebarMenuSubButton`, Figma `.Nav item` sub): a Content/Secondary label\nindented to line up with the parent's label. Renders `<a>`; pass `render` for your router's link.",
20389
+ "description": "Link row of a sub-menu (primitive `SidebarMenuSubButton`, Figma `.Nav item` sub): a Content/Secondary label\nindented to line up with the parent's label. Renders `<a>`; pass `render` for your router's link. `tag` adds a badge\nat the end of the row.",
20002
20390
  "props": [
20003
20391
  {
20004
20392
  "name": "isActive",
@@ -20008,6 +20396,13 @@
20008
20396
  "description": "Marks the sub-item as the current page: Surface/Tertiary, Content/Primary label and `aria-current=\"page\"`.",
20009
20397
  "source": "dodo"
20010
20398
  },
20399
+ {
20400
+ "name": "tag",
20401
+ "type": "ReactNode",
20402
+ "required": false,
20403
+ "description": "A tag at the end of the row, such as a violet sm `Badge` \"New\". Wrap the label in a `<span>` so it truncates.",
20404
+ "source": "dodo"
20405
+ },
20011
20406
  {
20012
20407
  "name": "render",
20013
20408
  "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>",
@@ -20926,6 +21321,48 @@
20926
21321
  ],
20927
21322
  "docsUrl": "/components/spinner"
20928
21323
  },
21324
+ {
21325
+ "slug": "navigation-progress",
21326
+ "title": "Navigation progress",
21327
+ "category": "Feedback",
21328
+ "status": "stable",
21329
+ "description": "Navigation progress: a 2px bar in the brand green (Content/Brand-primary) fixed across the very top\nof the viewport, above the sidebar, the top bar and any overlay, that tells the user a page is on its\nway. Mount it once in the app shell and drive `active` from the router. It shows only after `delay`,\ncreeps towards the end while the page loads, then fills the track and fades out. It is decorative\n(`aria-hidden`), takes no pointer events and never takes focus; under reduced motion it is a still,\nfull-width bar.",
21330
+ "importPath": "@dodopayments/ui/navigation-progress",
21331
+ "exports": [
21332
+ "NavigationProgress",
21333
+ "NavigationProgressProps"
21334
+ ],
21335
+ "parts": [
21336
+ {
21337
+ "name": "NavigationProgress",
21338
+ "description": "Navigation progress: a 2px bar in the brand green (Content/Brand-primary) fixed across the very top\nof the viewport, above the sidebar, the top bar and any overlay, that tells the user a page is on its\nway. Mount it once in the app shell and drive `active` from the router. It shows only after `delay`,\ncreeps towards the end while the page loads, then fills the track and fades out. It is decorative\n(`aria-hidden`), takes no pointer events and never takes focus; under reduced motion it is a still,\nfull-width bar.",
21339
+ "props": [
21340
+ {
21341
+ "name": "active",
21342
+ "type": "boolean",
21343
+ "required": true,
21344
+ "description": "A navigation is in flight. Set it when one starts (a link click, a router push, back or forward)\nand clear it when the new page has rendered.",
21345
+ "source": "dodo"
21346
+ },
21347
+ {
21348
+ "name": "delay",
21349
+ "type": "number",
21350
+ "required": false,
21351
+ "default": "150",
21352
+ "description": "Milliseconds a navigation must run before the bar shows, so an instant one never flashes.",
21353
+ "source": "dodo"
21354
+ }
21355
+ ]
21356
+ }
21357
+ ],
21358
+ "examples": [
21359
+ {
21360
+ "name": "navigation-progress/basic",
21361
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { NavigationProgress } from \"@dodopayments/ui/navigation-progress\";\nimport { useState } from \"react\";\n\n/** Start a navigation to see the bar at the top of the window; finish it to see it fill and fade. */\nexport default function NavigationProgressBasic() {\n const [active, setActive] = useState(false);\n return (\n <div className=\"flex flex-wrap gap-2\">\n <NavigationProgress active={active} />\n <Button variant=\"secondary\" disabled={active} onClick={() => setActive(true)}>\n Start navigation\n </Button>\n <Button variant=\"secondary\" disabled={!active} onClick={() => setActive(false)}>\n Finish navigation\n </Button>\n </div>\n );\n}"
21362
+ }
21363
+ ],
21364
+ "docsUrl": "/components/navigation-progress"
21365
+ },
20929
21366
  {
20930
21367
  "slug": "text-shimmer",
20931
21368
  "title": "Text Shimmer",
@@ -21880,6 +22317,8 @@
21880
22317
  "TabsContentProps",
21881
22318
  "TabsList",
21882
22319
  "TabsListProps",
22320
+ "TabsPanels",
22321
+ "TabsPanelsProps",
21883
22322
  "TabsProps",
21884
22323
  "TabsTrigger",
21885
22324
  "TabsTriggerProps",
@@ -21973,7 +22412,7 @@
21973
22412
  },
21974
22413
  {
21975
22414
  "name": "TabsList",
21976
- "description": "Row of `TabsTrigger`s on the `TabsList` primitive, with its animated active-tab indicator. Scrolls\nhorizontally (scrollbar hidden) when the tabs do not fit, so it stays usable on narrow screens.\nGive it an `aria-label` describing the set of tabs.",
22415
+ "description": "Row of `TabsTrigger`s on the `TabsList` primitive, with its animated active-tab indicator. When the tabs do not\nfit it scrolls horizontally (scrollbar hidden), fades the side that has more tabs, and keeps the active tab in\nview on mount and on every change, so it stays usable on narrow screens. Give it an `aria-label` describing the\nset of tabs.",
21977
22416
  "props": [
21978
22417
  {
21979
22418
  "name": "activateOnFocus",
@@ -22043,6 +22482,19 @@
22043
22482
  }
22044
22483
  ]
22045
22484
  },
22485
+ {
22486
+ "name": "TabsPanels",
22487
+ "description": "Wraps the `TabsContent`s of tabs whose panels differ in height: it follows the shown panel's height with the fast\nmotion (`duration-fast`, `ease-smooth-out`), so whatever sits under the tabs glides instead of jumping. Without\nreduced motion only; the first height is set at once.",
22488
+ "props": [
22489
+ {
22490
+ "name": "className",
22491
+ "type": "string",
22492
+ "required": false,
22493
+ "description": "Additional Tailwind classes, merged last.",
22494
+ "source": "dodo"
22495
+ }
22496
+ ]
22497
+ },
22046
22498
  {
22047
22499
  "name": "TabsTrigger",
22048
22500
  "description": "A tab (primitive `TabsTab`): an optional leading `icon`, the label (truncates at 180px) and an optional `count`.\nThe active tab gets Content/Primary text and the list's indicator.",
@@ -23189,7 +23641,7 @@
23189
23641
  },
23190
23642
  {
23191
23643
  "name": "CommandPalette",
23192
- "description": "The command palette of the dashboard (Dodo Nest Command palette): search the dashboard and jump to a page.\nA 640 wide tray on Surface/Scrim near the top of the screen: the search row with `esc`, the grouped results\n(neutral Featured icon, title, description and a tag, 56 tall, the first selected) or an Empty state, and the\nkey hints on the grey strip. `/` opens it; ↑ ↓ move, ↵ opens, esc closes. Built from the `Command` parts.",
23644
+ "description": "The command palette of the dashboard (Dodo Nest Command palette): search the dashboard and jump to a page.\nA 640 wide tray on Surface/Scrim near the top of the screen: the search row with `esc`, the grouped results\n(neutral Featured icon, title, description and a tag, 56 tall, the first selected) or an Empty state, and the\nkey hints on the grey strip. `/` opens it; ↑ ↓ move, ↵ opens, esc closes. Built from the `Command` parts. For\nresults a server searches, pass `shouldFilter={false}` and `loading` while they load.",
23193
23645
  "props": [
23194
23646
  {
23195
23647
  "name": "groups",
@@ -23228,6 +23680,14 @@
23228
23680
  "description": "",
23229
23681
  "source": "dodo"
23230
23682
  },
23683
+ {
23684
+ "name": "loading",
23685
+ "type": "boolean",
23686
+ "required": false,
23687
+ "default": "false",
23688
+ "description": "Results are on their way: a spinner in the search row, and `labels.loading` in place of the empty state.",
23689
+ "source": "dodo"
23690
+ },
23231
23691
  {
23232
23692
  "name": "onOpenChange",
23233
23693
  "type": "((open: boolean) => void)",
@@ -23271,6 +23731,14 @@
23271
23731
  "description": "The key that opens the palette when no field has focus; `false` binds nothing.",
23272
23732
  "source": "dodo"
23273
23733
  },
23734
+ {
23735
+ "name": "shouldFilter",
23736
+ "type": "boolean",
23737
+ "required": false,
23738
+ "default": "true",
23739
+ "description": "`false` shows `groups` as given, in their order, for results the server already matched and ranked to the query.",
23740
+ "source": "dodo"
23741
+ },
23274
23742
  {
23275
23743
  "name": "showFooter",
23276
23744
  "type": "boolean",
@@ -23581,7 +24049,7 @@
23581
24049
  "title": "List item",
23582
24050
  "category": "Data display",
23583
24051
  "status": "stable",
23584
- "description": "One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line\neach, with an ellipsis) and a trailing part. `layout` is `row` (order lines, settings rows, sessions, saved\npayment methods inside a panel; a divider under every row but the last), `card` (side-by-side portal cards, 12\napart), `tile` (a bordered row tile: add-ons with a quantity, or with `href` / `render` a link with a chevron for a settings index) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with\n`render={<li />}`, a link with `render={<a href=\"…\" />}`); the add tile renders a `<button>`. It has no hover or\nselected state: for a choice, use a Radio card.",
24052
+ "description": "One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line\neach, with an ellipsis, or whole with `wrap`) and a trailing part. `layout` is `row` (order lines, settings rows, sessions, saved\npayment methods inside a panel; a divider under every row but the last), `card` (side-by-side portal cards, 12\napart), `tile` (a bordered row tile: add-ons with a quantity, or with `href` / `render` a link with a chevron for a settings index) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with\n`render={<li />}`, a link with `render={<a href=\"…\" />}`); the add tile renders a `<button>`. It has no hover or\nselected state: for a choice, use a Radio card.",
23585
24053
  "importPath": "@dodopayments/ui/list-item",
23586
24054
  "exports": [
23587
24055
  "DODO_LIST_ITEM_DEFAULT_VARIANTS",
@@ -23597,13 +24065,13 @@
23597
24065
  "parts": [
23598
24066
  {
23599
24067
  "name": "ListItem",
23600
- "description": "One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line\neach, with an ellipsis) and a trailing part. `layout` is `row` (order lines, settings rows, sessions, saved\npayment methods inside a panel; a divider under every row but the last), `card` (side-by-side portal cards, 12\napart), `tile` (a bordered row tile: add-ons with a quantity, or with `href` / `render` a link with a chevron for a settings index) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with\n`render={<li />}`, a link with `render={<a href=\"…\" />}`); the add tile renders a `<button>`. It has no hover or\nselected state: for a choice, use a Radio card.",
24068
+ "description": "One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line\neach, with an ellipsis, or whole with `wrap`) and a trailing part. `layout` is `row` (order lines, settings rows, sessions, saved\npayment methods inside a panel; a divider under every row but the last), `card` (side-by-side portal cards, 12\napart), `tile` (a bordered row tile: add-ons with a quantity, or with `href` / `render` a link with a chevron for a settings index) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with\n`render={<li />}`, a link with `render={<a href=\"…\" />}`); the add tile renders a `<button>`. It has no hover or\nselected state: for a choice, use a Radio card.",
23601
24069
  "props": [
23602
24070
  {
23603
24071
  "name": "title",
23604
24072
  "type": "ReactNode",
23605
24073
  "required": true,
23606
- "description": "The title, one line with an ellipsis (Labels/Primary). With `layout=\"add\"`, the tile's label.",
24074
+ "description": "The title, one line with an ellipsis (Labels/Primary), or whole with `wrap`. With `layout=\"add\"`, the tile's label.",
23607
24075
  "source": "dodo"
23608
24076
  },
23609
24077
  {
@@ -23617,7 +24085,7 @@
23617
24085
  "name": "description",
23618
24086
  "type": "ReactNode",
23619
24087
  "required": false,
23620
- "description": "One line under the title with an ellipsis (Body/Secondary, Content/Secondary).",
24088
+ "description": "One line under the title with an ellipsis (Body/Secondary, Content/Secondary), or whole with `wrap`.",
23621
24089
  "source": "dodo"
23622
24090
  },
23623
24091
  {
@@ -23683,6 +24151,14 @@
23683
24151
  "description": "The trailing part: a `ListItemPrice`, a quantity stepper, a `Badge`, a `Button` or a chevron, 8 apart. In a card\nit spreads across the bottom (e.g. the price and an Add button).",
23684
24152
  "source": "dodo"
23685
24153
  },
24154
+ {
24155
+ "name": "wrap",
24156
+ "type": "boolean",
24157
+ "required": false,
24158
+ "default": "false",
24159
+ "description": "Wrap the title and description to more lines instead of cutting them with an ellipsis, for text that must read\nwhole (a settings index or a report tile).",
24160
+ "source": "dodo"
24161
+ },
23686
24162
  {
23687
24163
  "name": "render",
23688
24164
  "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>",
@@ -24071,7 +24547,7 @@
24071
24547
  "title": "Leaderboard",
24072
24548
  "category": "Data display",
24073
24549
  "status": "stable",
24074
- "description": "Top customers by spend (Dodo Nest Leaderboard): a podium of the top three (one joined block of white cells\nwith a gold, silver or bronze glow and a ribbon medal, in rank order 1 · 2 · 3), then a ranked list from 4\ndown, 12 below. With two customers the third cell is hidden and there is no list; with none it shows the\nempty state; `loading` shows the skeleton. Put it in a `Card`. Compose `LeaderboardPodium`,\n`LeaderboardPodiumCell`, `LeaderboardList` and `LeaderboardRow` for a custom layout.",
24550
+ "description": "Top customers by spend (Dodo Nest Leaderboard): a podium of the top three (one joined block of white cells\nwith a gold, silver or bronze glow and a ribbon medal, in rank order 1 · 2 · 3), then a ranked list from 4\ndown, 12 below. Under 24rem (384px) wide the podium stacks, each place a row with its medal beside the text, so\nthe amounts and names read whole. With two customers the third cell is hidden and there is no list; with none it shows the\nempty state; `loading` shows the skeleton. Put it in a `Card`. Compose `LeaderboardPodium`,\n`LeaderboardPodiumCell`, `LeaderboardList` and `LeaderboardRow` for a custom layout.",
24075
24551
  "importPath": "@dodopayments/ui/leaderboard",
24076
24552
  "exports": [
24077
24553
  "DODO_LEADERBOARD_PODIUM_CELL_DEFAULT_VARIANTS",
@@ -24094,7 +24570,7 @@
24094
24570
  "parts": [
24095
24571
  {
24096
24572
  "name": "Leaderboard",
24097
- "description": "Top customers by spend (Dodo Nest Leaderboard): a podium of the top three (one joined block of white cells\nwith a gold, silver or bronze glow and a ribbon medal, in rank order 1 · 2 · 3), then a ranked list from 4\ndown, 12 below. With two customers the third cell is hidden and there is no list; with none it shows the\nempty state; `loading` shows the skeleton. Put it in a `Card`. Compose `LeaderboardPodium`,\n`LeaderboardPodiumCell`, `LeaderboardList` and `LeaderboardRow` for a custom layout.",
24573
+ "description": "Top customers by spend (Dodo Nest Leaderboard): a podium of the top three (one joined block of white cells\nwith a gold, silver or bronze glow and a ribbon medal, in rank order 1 · 2 · 3), then a ranked list from 4\ndown, 12 below. Under 24rem (384px) wide the podium stacks, each place a row with its medal beside the text, so\nthe amounts and names read whole. With two customers the third cell is hidden and there is no list; with none it shows the\nempty state; `loading` shows the skeleton. Put it in a `Card`. Compose `LeaderboardPodium`,\n`LeaderboardPodiumCell`, `LeaderboardList` and `LeaderboardRow` for a custom layout.",
24098
24574
  "props": [
24099
24575
  {
24100
24576
  "name": "items",
@@ -24158,7 +24634,7 @@
24158
24634
  },
24159
24635
  {
24160
24636
  "name": "LeaderboardPodium",
24161
- "description": "The podium block: one `<ol>` with a 1px Border/Primary ring and Radius/Large that clips its\n`LeaderboardPodiumCell`s, equal width, with 1px dividers between them. Put two or three cells in rank order.",
24637
+ "description": "The podium block: one `<ol>` with a 1px Border/Primary ring and Radius/Large that clips its\n`LeaderboardPodiumCell`s, equal width, with 1px dividers between them. Put two or three cells in rank order.\nIn a `Leaderboard` under 24rem (384px) wide the cells stack, each a row with its medal beside the text.",
24162
24638
  "props": []
24163
24639
  },
24164
24640
  {
@@ -24638,6 +25114,71 @@
24638
25114
  ],
24639
25115
  "docsUrl": "/components/sale-share-card"
24640
25116
  },
25117
+ {
25118
+ "slug": "chart-share-card",
25119
+ "title": "Chart share card",
25120
+ "category": "Data display",
25121
+ "status": "stable",
25122
+ "description": "An analytics card as an image to share (the dashboard's Analytics and Home, Share): the card at a fixed design\nwidth on artwork, the business chip above it and the Dodo Payments lockup with a verified badge below. The card\nfollows the theme. Capture this element at its own size, and preview it in a `ScaledFrame`.",
25123
+ "importPath": "@dodopayments/ui/chart-share-card",
25124
+ "exports": [
25125
+ "ChartShareBusiness",
25126
+ "ChartShareCard",
25127
+ "ChartShareCardProps"
25128
+ ],
25129
+ "parts": [
25130
+ {
25131
+ "name": "ChartShareCard",
25132
+ "description": "An analytics card as an image to share (the dashboard's Analytics and Home, Share): the card at a fixed design\nwidth on artwork, the business chip above it and the Dodo Payments lockup with a verified badge below. The card\nfollows the theme. Capture this element at its own size, and preview it in a `ScaledFrame`.",
25133
+ "props": [
25134
+ {
25135
+ "name": "background",
25136
+ "type": "string",
25137
+ "required": true,
25138
+ "description": "The artwork behind the card, an image URL. Decorative.",
25139
+ "source": "dodo"
25140
+ },
25141
+ {
25142
+ "name": "verified",
25143
+ "type": "ReactNode",
25144
+ "required": true,
25145
+ "description": "The word beside the badge under the card, e.g. \"Verified\".",
25146
+ "source": "dodo"
25147
+ },
25148
+ {
25149
+ "name": "backgroundTone",
25150
+ "type": "\"light\" | \"dark\"",
25151
+ "required": false,
25152
+ "description": "Whether the foot of the artwork is light (a near-black lockup) or dark (a white one), so the lockup stays legible.\nDefault: `\"light\"`.",
25153
+ "source": "dodo"
25154
+ },
25155
+ {
25156
+ "name": "business",
25157
+ "type": "ChartShareBusiness",
25158
+ "required": false,
25159
+ "description": "The business chip above the card. Leave it out when the merchant turns off \"Include business & logo\".",
25160
+ "source": "dodo"
25161
+ },
25162
+ {
25163
+ "name": "className",
25164
+ "type": "string",
25165
+ "required": false,
25166
+ "description": "Additional Tailwind classes, merged last.",
25167
+ "source": "dodo"
25168
+ },
25169
+ {
25170
+ "name": "wide",
25171
+ "type": "boolean",
25172
+ "required": false,
25173
+ "description": "860px for a card whose body is a wide pairing (a map beside its rows); 550px otherwise.",
25174
+ "source": "dodo"
25175
+ }
25176
+ ]
25177
+ }
25178
+ ],
25179
+ "examples": [],
25180
+ "docsUrl": "/components/chart-share-card"
25181
+ },
24641
25182
  {
24642
25183
  "slug": "setup-guide",
24643
25184
  "title": "Setup guide",
@@ -26981,7 +27522,7 @@
26981
27522
  "title": "Page header",
26982
27523
  "category": "Navigation",
26983
27524
  "status": "stable",
26984
- "description": "The title row at the top of every dashboard page (Dodo Nest Page header). `size=\"sm\"` shrinks the title and\nraises the description for list and settings pages. Navigation is none (top-level pages),\n`back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above\nthe title). The title is Heading/Secondary with an optional `help` question icon and a `meta` slot for a status\nBadge or Copyable ID; `actions` holds up to two large Buttons on the right; the `description` sits under the title,\nindented past the back button. Rows are 4 apart. Below 576px (or with `breakpoint=\"mobile\"`) the back button gets\nits own row, the title the full width, and the actions move 8 below the description. No fill: put it first on the\nmain panel, 24 above the first section.",
27525
+ "description": "The title row at the top of every dashboard page (Dodo Nest Page header). `size=\"sm\"` shrinks the title and\nraises the description for list and settings pages. Navigation is none (top-level pages),\n`back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above\nthe title). The title is Heading/Secondary with an optional `help` question icon and a `meta` slot for a status\nBadge or Copyable ID; `actions` holds up to two large Buttons on the right; the `description` sits under the title,\nindented past the back button. Rows are 4 apart. Below 576px (or with `breakpoint=\"mobile\"`) the back button stays\nbeside the title and the actions move 8 below the description. No fill: put it first on the\nmain panel, 24 above the first section.",
26985
27526
  "importPath": "@dodopayments/ui/page-header",
26986
27527
  "exports": [
26987
27528
  "PageHeader",
@@ -26990,7 +27531,7 @@
26990
27531
  "parts": [
26991
27532
  {
26992
27533
  "name": "PageHeader",
26993
- "description": "The title row at the top of every dashboard page (Dodo Nest Page header). `size=\"sm\"` shrinks the title and\nraises the description for list and settings pages. Navigation is none (top-level pages),\n`back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above\nthe title). The title is Heading/Secondary with an optional `help` question icon and a `meta` slot for a status\nBadge or Copyable ID; `actions` holds up to two large Buttons on the right; the `description` sits under the title,\nindented past the back button. Rows are 4 apart. Below 576px (or with `breakpoint=\"mobile\"`) the back button gets\nits own row, the title the full width, and the actions move 8 below the description. No fill: put it first on the\nmain panel, 24 above the first section.",
27534
+ "description": "The title row at the top of every dashboard page (Dodo Nest Page header). `size=\"sm\"` shrinks the title and\nraises the description for list and settings pages. Navigation is none (top-level pages),\n`back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above\nthe title). The title is Heading/Secondary with an optional `help` question icon and a `meta` slot for a status\nBadge or Copyable ID; `actions` holds up to two large Buttons on the right; the `description` sits under the title,\nindented past the back button. Rows are 4 apart. Below 576px (or with `breakpoint=\"mobile\"`) the back button stays\nbeside the title and the actions move 8 below the description. No fill: put it first on the\nmain panel, 24 above the first section.",
26994
27535
  "props": [
26995
27536
  {
26996
27537
  "name": "title",
@@ -27443,7 +27984,7 @@
27443
27984
  "title": "Details Panel",
27444
27985
  "category": "Blocks",
27445
27986
  "status": "stable",
27446
- "description": "Read-only facts of a record as labelled values grouped in sections, ported from the dashboard's\npayment details panel and payout schedule card: a `Card` with the title, description and action on\nits grey strip and the sections and footer in the white panel, separated by rules, each section a description list (`<dl>`). `layout=\"grid\"` stacks label over\nvalue in 2 columns (3 when the panel is at least 28rem wide); `layout=\"rows\"` puts label and value\non one divided row. Values are preformatted nodes; empty ones show `emptyValue`, and `hidden`\nitems are left out.",
27987
+ "description": "Read-only facts of a record as labelled values grouped in sections, ported from the dashboard's\npayment details panel and payout schedule card: a `Card` with the title, description and action on\nits grey strip and the sections and footer in the white panel, separated by rules, each section a description list (`<dl>`). `layout=\"grid\"` stacks label over\nvalue in 2 columns (1 under 20rem, 3 from 28rem); `layout=\"rows\"` puts label and value\non one divided row. Values are preformatted nodes; empty ones show `emptyValue`, and `hidden`\nitems are left out.",
27447
27988
  "importPath": "@dodopayments/ui/details-panel",
27448
27989
  "exports": [
27449
27990
  "DetailsPanel",
@@ -27455,7 +27996,7 @@
27455
27996
  "parts": [
27456
27997
  {
27457
27998
  "name": "DetailsPanel",
27458
- "description": "Read-only facts of a record as labelled values grouped in sections, ported from the dashboard's\npayment details panel and payout schedule card: a `Card` with the title, description and action on\nits grey strip and the sections and footer in the white panel, separated by rules, each section a description list (`<dl>`). `layout=\"grid\"` stacks label over\nvalue in 2 columns (3 when the panel is at least 28rem wide); `layout=\"rows\"` puts label and value\non one divided row. Values are preformatted nodes; empty ones show `emptyValue`, and `hidden`\nitems are left out.",
27999
+ "description": "Read-only facts of a record as labelled values grouped in sections, ported from the dashboard's\npayment details panel and payout schedule card: a `Card` with the title, description and action on\nits grey strip and the sections and footer in the white panel, separated by rules, each section a description list (`<dl>`). `layout=\"grid\"` stacks label over\nvalue in 2 columns (1 under 20rem, 3 from 28rem); `layout=\"rows\"` puts label and value\non one divided row. Values are preformatted nodes; empty ones show `emptyValue`, and `hidden`\nitems are left out.",
27459
28000
  "props": [
27460
28001
  {
27461
28002
  "name": "sections",
@@ -27493,12 +28034,27 @@
27493
28034
  "description": "Content of the row below the sections, e.g. an \"Edit billing details\" button.",
27494
28035
  "source": "dodo"
27495
28036
  },
28037
+ {
28038
+ "name": "help",
28039
+ "type": "ReactNode",
28040
+ "required": false,
28041
+ "description": "With `title`: a secondary description in a Tooltip on an info icon after the heading, instead of a line\nunder it. See `CardTitle`'s `help`.",
28042
+ "source": "dodo"
28043
+ },
28044
+ {
28045
+ "name": "helpLabel",
28046
+ "type": "string",
28047
+ "required": false,
28048
+ "default": "\"More information\"",
28049
+ "description": "With `help`: accessible name of the info icon button.",
28050
+ "source": "dodo"
28051
+ },
27496
28052
  {
27497
28053
  "name": "layout",
27498
28054
  "type": "DetailsPanelLayout",
27499
28055
  "required": false,
27500
28056
  "default": "\"grid\"",
27501
- "description": "`grid` stacks each label above its value, 2 items per row and 3 once the panel is at least\n28rem wide (an `@md` container query on the panel). `rows` puts one item per row, the label at\nthe start and the value at the end, divided by rules.",
28057
+ "description": "`grid` stacks each label above its value, 1 item per row in a panel under 20rem (a phone), 2 from\n20rem and 3 once the panel is at least 28rem wide (container queries on the panel). `rows` puts one item per row, the label at\nthe start and the value at the end, divided by rules.",
27502
28058
  "source": "dodo"
27503
28059
  },
27504
28060
  {
@@ -28698,7 +29254,14 @@
28698
29254
  "name": "label",
28699
29255
  "type": "ReactNode",
28700
29256
  "required": true,
28701
- "description": "What the number measures, e.g. \"Successful payments\". It sits on the grey strip and truncates.",
29257
+ "description": "What the number measures, e.g. \"Successful payments\". It sits on the grey strip in Heading/Tertiary (16px, a step\nabove body text), with `help` right after it. On a narrow card it wraps onto more lines, so it reads whole and\n`action` keeps its row.",
29258
+ "source": "dodo"
29259
+ },
29260
+ {
29261
+ "name": "action",
29262
+ "type": "ReactNode",
29263
+ "required": false,
29264
+ "description": "Small controls at the end of the label strip, e.g. a ghost `icon-xs` Share button or a compact select. They stay\non the label's row: the label wraps to make room (keeping at least a third of the strip), and controls that\nstill do not fit wrap among themselves at the end, never under the label.",
28702
29265
  "source": "dodo"
28703
29266
  },
28704
29267
  {
@@ -28712,14 +29275,14 @@
28712
29275
  "name": "empty",
28713
29276
  "type": "ReactNode",
28714
29277
  "required": false,
28715
- "description": "Show the empty state: \"-\" for the value and the reason under it. `true` shows `labels.empty` (\"No data yet\");\ntext or a node is the reason (\"Live mode only\"). Ignored while `loading` or with an `error`.",
29278
+ "description": "Show the empty state: \"-\" for the value and the reason under it, centred in the panel, with no trend chip. `true`\nshows `labels.empty` (\"No data yet\"); text or a node is the reason (\"Live mode only\"). Ignored while `loading` or\nwith an `error`.",
28716
29279
  "source": "dodo"
28717
29280
  },
28718
29281
  {
28719
29282
  "name": "error",
28720
29283
  "type": "ReactNode",
28721
29284
  "required": false,
28722
- "description": "Show the error state instead of the value: a small left-aligned heading with an error icon, and \"Try again\" with\n`onRetry`. `true` shows the default heading; text or a node is the reason, read to screen readers after the\nheading. Ignored while `loading`.",
29285
+ "description": "Show the error state instead of the value: a small heading with an error icon, and \"Try again\" with `onRetry`,\ncentred in the panel. `true` shows the default heading; text or a node is the reason, read to screen readers\nafter the heading. Ignored while `loading`.",
28723
29286
  "source": "dodo"
28724
29287
  },
28725
29288
  {
@@ -28803,7 +29366,7 @@
28803
29366
  "name": "trend",
28804
29367
  "type": "StatCardTrend",
28805
29368
  "required": false,
28806
- "description": "The change: a success (up) or error (down) chip before the comparison. Show it only with a comparison.",
29369
+ "description": "The change: a success (up) or error (down) chip before the comparison. Show it only with a comparison. Not shown\nwhile `loading`, `empty` or `error`: a change of nothing is noise.",
28807
29370
  "source": "dodo"
28808
29371
  },
28809
29372
  {
@@ -28849,7 +29412,7 @@
28849
29412
  },
28850
29413
  {
28851
29414
  "name": "StatGrid",
28852
- "description": "A responsive row of `StatCard`s: a `Grid` of 2, 3 or 4 equal columns, 16 apart, that stacks the cards 12 apart\nwhen narrow. Cards in a row stretch to the same height, so their panels line up. `layout=\"group\"` puts the stats\nin one `Card` instead (the page summary under a page header): its cards turn inline, side by side with dividers\nbetween them, stacked with dividers between rows when narrow.",
29415
+ "description": "A responsive row of `StatCard`s: a `Grid` of 2, 3 or 4 equal columns, 16 apart, that stacks the cards 12 apart\nwhen narrow. Cards in a row stretch to the same height, so their panels line up. `layout=\"group\"` puts the stats\nin one `Card` instead (the page summary under a page header): its cards turn inline, side by side with dividers\nbetween them, staying side by side and turning compact when narrow.",
28853
29416
  "props": [
28854
29417
  {
28855
29418
  "name": "columns",
@@ -28907,7 +29470,7 @@
28907
29470
  },
28908
29471
  {
28909
29472
  "value": "group",
28910
- "description": "One Card tray (with an optional `heading`) whose panel lines the stats up as inline stats with dividers between them; they stack with dividers between rows when narrow."
29473
+ "description": "One Card tray (with an optional `heading`) whose panel lines the stats up as inline stats with dividers between them; on a narrow card they stay side by side and turn compact, labels wrapping and numbers on one line; under 16rem (256px) they stack as rows."
28911
29474
  }
28912
29475
  ],
28913
29476
  "default": "\"cards\""
@@ -28996,6 +29559,21 @@
28996
29559
  "description": "Row under the settings, e.g. a \"Save changes\" `Button` for a section that holds a form.",
28997
29560
  "source": "dodo"
28998
29561
  },
29562
+ {
29563
+ "name": "help",
29564
+ "type": "ReactNode",
29565
+ "required": false,
29566
+ "description": "A secondary description in a Tooltip on an info icon after the heading, instead of a line under it. See\n`CardTitle`'s `help`.",
29567
+ "source": "dodo"
29568
+ },
29569
+ {
29570
+ "name": "helpLabel",
29571
+ "type": "string",
29572
+ "required": false,
29573
+ "default": "\"More information\"",
29574
+ "description": "With `help`: accessible name of the info icon button.",
29575
+ "source": "dodo"
29576
+ },
28999
29577
  {
29000
29578
  "name": "titleAs",
29001
29579
  "type": "\"h2\" | \"h3\" | \"h4\"",
@@ -29109,6 +29687,14 @@
29109
29687
  "description": "Icon in a tile before the title, e.g. a `WalletIcon` from `@dodopayments/ui/icons`.",
29110
29688
  "source": "dodo"
29111
29689
  },
29690
+ {
29691
+ "name": "wrap",
29692
+ "type": "boolean",
29693
+ "required": false,
29694
+ "default": "false",
29695
+ "description": "Wrap the title and description to more lines instead of cutting them with an ellipsis, for text that must read\nwhole (a settings index or a report tile).",
29696
+ "source": "dodo"
29697
+ },
29112
29698
  {
29113
29699
  "name": "render",
29114
29700
  "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>",
@@ -29338,7 +29924,7 @@
29338
29924
  },
29339
29925
  {
29340
29926
  "name": "ActivityTimelineItem",
29341
- "description": "One event of an `ActivityTimeline` (Figma `.Timeline event`), rendered as an `li`: the icon slot\n(a 20px Featured icon in the tone, or a dot) with a 1px line to the next event, the title and\ndescription, and a `Timestamp` at the trailing end, all starting on the title's line, 12 apart and\n20 above the next event. Below a 28rem row the date sits over the time, right-aligned (Figma\nBreakpoint mobile). Use it inside an `ol`; `ActivityTimeline` does this for you.",
29927
+ "description": "One event of an `ActivityTimeline` (Figma `.Timeline event`), rendered as an `li`: the icon slot\n(a 20px Featured icon in the tone, or a dot) with a 1px line to the next event, the title and\ndescription, and a `Timestamp` at the trailing end, all starting on the title's line, 12 apart and\n20 above the next event. Below a 28rem row the date sits over the time, right-aligned (Figma\nBreakpoint mobile); below an 18rem row (a phone) the time goes under the title and description. Use it inside an `ol`; `ActivityTimeline` does this for you.",
29342
29928
  "props": [
29343
29929
  {
29344
29930
  "name": "title",
@@ -29514,6 +30100,14 @@
29514
30100
  "description": "More ways to sign in as secondary buttons at the end of the email and password steps, after\n\"Log in with OTP\", e.g. `{ id: \"passkey\", label: \"Sign in with passkey\", icon: <KeyIcon /> }`.\nThe `id` is passed to `onActionSelect` and matched against `lastUsedProvider`.",
29515
30101
  "source": "dodo"
29516
30102
  },
30103
+ {
30104
+ "name": "autoFocus",
30105
+ "type": "boolean",
30106
+ "required": false,
30107
+ "default": "false",
30108
+ "description": "Focus the step's field when the card mounts (the email field on the email step), for a page whose\none task is signing in. The card always moves focus when the step changes.",
30109
+ "source": "dodo"
30110
+ },
29517
30111
  {
29518
30112
  "name": "backLabel",
29519
30113
  "type": "ReactNode",
@@ -29584,6 +30178,14 @@
29584
30178
  "description": "Email address (controlled). It persists across steps and is quoted on the code and sent steps.",
29585
30179
  "source": "dodo"
29586
30180
  },
30181
+ {
30182
+ "name": "emailAutoComplete",
30183
+ "type": "string",
30184
+ "required": false,
30185
+ "default": "\"email\" on the email step, \"username\" on the password step",
30186
+ "description": "`autocomplete` of the email field, e.g. `\"username webauthn\"` to list saved passkeys in its autofill\n(with a conditional WebAuthn request started on load).",
30187
+ "source": "dodo"
30188
+ },
29587
30189
  {
29588
30190
  "name": "emailLabel",
29589
30191
  "type": "ReactNode",
@@ -30190,7 +30792,7 @@
30190
30792
  "title": "Record Header",
30191
30793
  "category": "Blocks",
30192
30794
  "status": "stable",
30193
- "description": "Hero of a record's detail page (a payment, customer or subscription), not the page title: a\n`<section>` labelled by the title around a `Card`. It shows optional media, the title (an\namount or a name) with its status and a subtitle, icon + text facts (`meta`), labelled `chips`\nsuch as a `CopyableId` and a `Timestamp`, and a `notice` (`CardNotice`) tucked under the card. The actions sit\nbeside the heading once the card is at least 32rem wide and wrap under it in narrower containers. The media lines up\nwith the title row.",
30795
+ "description": "Hero of a record's detail page (a payment, customer or subscription), not the page title: a\n`<section>` labelled by the title around a `Card`. It shows optional media, the title (an\namount or a name) with its status and a subtitle, icon + text facts (`meta`), labelled `chips`\nsuch as a `CopyableId` and a `Timestamp`, and a `notice` (`CardNotice`) tucked under the card. The actions sit\nbeside the heading while the heading keeps its own width up to 12rem, even in a narrow pane, and wrap under it when\nthey do not fit. The media lines up with the title row.",
30194
30796
  "importPath": "@dodopayments/ui/record-header",
30195
30797
  "exports": [
30196
30798
  "RecordHeader",
@@ -30201,7 +30803,7 @@
30201
30803
  "parts": [
30202
30804
  {
30203
30805
  "name": "RecordHeader",
30204
- "description": "Hero of a record's detail page (a payment, customer or subscription), not the page title: a\n`<section>` labelled by the title around a `Card`. It shows optional media, the title (an\namount or a name) with its status and a subtitle, icon + text facts (`meta`), labelled `chips`\nsuch as a `CopyableId` and a `Timestamp`, and a `notice` (`CardNotice`) tucked under the card. The actions sit\nbeside the heading once the card is at least 32rem wide and wrap under it in narrower containers. The media lines up\nwith the title row.",
30806
+ "description": "Hero of a record's detail page (a payment, customer or subscription), not the page title: a\n`<section>` labelled by the title around a `Card`. It shows optional media, the title (an\namount or a name) with its status and a subtitle, icon + text facts (`meta`), labelled `chips`\nsuch as a `CopyableId` and a `Timestamp`, and a `notice` (`CardNotice`) tucked under the card. The actions sit\nbeside the heading while the heading keeps its own width up to 12rem, even in a narrow pane, and wrap under it when\nthey do not fit. The media lines up with the title row.",
30205
30807
  "props": [
30206
30808
  {
30207
30809
  "name": "title",
@@ -30214,7 +30816,7 @@
30214
30816
  "name": "actions",
30215
30817
  "type": "ReactNode",
30216
30818
  "required": false,
30217
- "description": "Record actions on the trailing side, e.g. \"Invoice\" and \"Refund\" `Button`s.",
30819
+ "description": "Record actions on the trailing side, e.g. \"Invoice\" and \"Refund\" `Button`s. The header is a size container, so\na `Button` with `labelHidden=\"narrow\"` shows only its icon below 24rem of the header (a phone), its label in a\ntooltip. Beside a detail page's panel on a desktop it keeps its label.",
30218
30820
  "source": "dodo"
30219
30821
  },
30220
30822
  {
@@ -30303,7 +30905,7 @@
30303
30905
  "props": [
30304
30906
  {
30305
30907
  "name": "brand",
30306
- "type": "\"meta\" | \"github\" | \"gitlab\" | \"terraform\" | \"vercel\" | \"google-cloud\" | \"aws\" | \"kubernetes\" | \"google-analytics\" | \"google-tag-manager\" | \"stripe\" | \"adyen\" | \"dodo-payments\" | \"discord\" | \"telegram\" | \"notion\" | \"framer\" | \"figma\"",
30908
+ "type": "\"meta\" | \"cursor\" | \"close\" | \"github\" | \"gitlab\" | \"terraform\" | \"vercel\" | \"google-cloud\" | \"aws\" | \"kubernetes\" | \"google-analytics\" | \"google-tag-manager\" | \"stripe\" | \"adyen\" | \"dodo-payments\" | \"discord\" | \"telegram\" | \"notion\" | \"framer\" | \"figma\" | \"claude\" | \"openai\" | \"opencode\" | \"slack\" | \"microsoft-teams\" | \"hubspot\" | \"salesforce\" | \"resend\" | \"sendgrid\" | \"loops\" | \"customer-io\" | \"segment\" | \"opentelemetry\" | \"zapier\" | \"windmill\"",
30307
30909
  "required": true,
30308
30910
  "description": "Which brand's mark to draw.",
30309
30911
  "source": "dodo"