@dodopayments/ui 1.6.0 → 1.7.1

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 (496) hide show
  1. package/ai/component-registry.json +766 -67
  2. package/ai/component-registry.md +3 -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 +53 -3
  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/celebration-dialog.md +66 -0
  12. package/ai/components/chart-share-card.md +25 -0
  13. package/ai/components/chart.md +27 -1
  14. package/ai/components/code-block.md +2 -1
  15. package/ai/components/collapsible.md +2 -2
  16. package/ai/components/command.md +4 -1
  17. package/ai/components/comparison-bars.md +1 -0
  18. package/ai/components/data-grid.md +2 -1
  19. package/ai/components/details-panel.md +5 -3
  20. package/ai/components/dialog.md +1 -0
  21. package/ai/components/empty.md +1 -1
  22. package/ai/components/field.md +15 -5
  23. package/ai/components/input.md +31 -6
  24. package/ai/components/leaderboard.md +5 -2
  25. package/ai/components/link.md +1 -1
  26. package/ai/components/list-item.md +5 -4
  27. package/ai/components/navigation-progress.md +55 -0
  28. package/ai/components/page-header.md +4 -4
  29. package/ai/components/popover.md +2 -0
  30. package/ai/components/quantity-stepper.md +3 -3
  31. package/ai/components/record-header.md +5 -5
  32. package/ai/components/rich-text-editor.md +2 -0
  33. package/ai/components/scaled-frame.md +4 -2
  34. package/ai/components/select.md +5 -2
  35. package/ai/components/settings-section.md +3 -0
  36. package/ai/components/sheet.md +10 -10
  37. package/ai/components/sidebar.md +21 -6
  38. package/ai/components/stat-card.md +7 -6
  39. package/ai/components/tabs.md +15 -4
  40. package/dist/components/activity-timeline/activity-timeline.d.ts +1 -1
  41. package/dist/components/activity-timeline/activity-timeline.js +2 -2
  42. package/dist/components/activity-timeline/activity-timeline.js.map +1 -1
  43. package/dist/components/alert/alert.d.ts +2 -1
  44. package/dist/components/alert/alert.d.ts.map +1 -1
  45. package/dist/components/alert/alert.js +1 -1
  46. package/dist/components/alert/alert.js.map +1 -1
  47. package/dist/components/app-top-bar/app-top-bar.d.ts +29 -3
  48. package/dist/components/app-top-bar/app-top-bar.d.ts.map +1 -1
  49. package/dist/components/app-top-bar/app-top-bar.js +38 -12
  50. package/dist/components/app-top-bar/app-top-bar.js.map +1 -1
  51. package/dist/components/app-top-bar/index.d.ts +1 -1
  52. package/dist/components/app-top-bar/index.d.ts.map +1 -1
  53. package/dist/components/app-top-bar/index.js +1 -1
  54. package/dist/components/app-top-bar/index.js.map +1 -1
  55. package/dist/components/auth-card/auth-card.d.ts +13 -1
  56. package/dist/components/auth-card/auth-card.d.ts.map +1 -1
  57. package/dist/components/auth-card/auth-card.js +5 -5
  58. package/dist/components/auth-card/auth-card.js.map +1 -1
  59. package/dist/components/badge/badge-status.d.ts +3 -3
  60. package/dist/components/badge/badge-status.js +3 -3
  61. package/dist/components/badge/badge-status.js.map +1 -1
  62. package/dist/components/bar-chart/bar-chart.d.ts +2 -1
  63. package/dist/components/bar-chart/bar-chart.d.ts.map +1 -1
  64. package/dist/components/bar-chart/bar-chart.js +2 -1
  65. package/dist/components/bar-chart/bar-chart.js.map +1 -1
  66. package/dist/components/brand-logos/brand-artwork.d.ts +99 -3
  67. package/dist/components/brand-logos/brand-artwork.d.ts.map +1 -1
  68. package/dist/components/brand-logos/brand-artwork.js +99 -3
  69. package/dist/components/brand-logos/brand-artwork.js.map +1 -1
  70. package/dist/components/brand-logos/brand-logos.d.ts +5 -2
  71. package/dist/components/brand-logos/brand-logos.d.ts.map +1 -1
  72. package/dist/components/brand-logos/brand-logos.js +46 -2
  73. package/dist/components/brand-logos/brand-logos.js.map +1 -1
  74. package/dist/components/button/button-narrow-label.d.ts +11 -0
  75. package/dist/components/button/button-narrow-label.d.ts.map +1 -0
  76. package/dist/components/button/button-narrow-label.js +22 -0
  77. package/dist/components/button/button-narrow-label.js.map +1 -0
  78. package/dist/components/button/button.d.ts +29 -6
  79. package/dist/components/button/button.d.ts.map +1 -1
  80. package/dist/components/button/button.js +71 -14
  81. package/dist/components/button/button.js.map +1 -1
  82. package/dist/components/button/index.d.ts +1 -1
  83. package/dist/components/button/index.d.ts.map +1 -1
  84. package/dist/components/button/index.js +1 -1
  85. package/dist/components/button/index.js.map +1 -1
  86. package/dist/components/card/card.d.ts +16 -5
  87. package/dist/components/card/card.d.ts.map +1 -1
  88. package/dist/components/card/card.js +13 -4
  89. package/dist/components/card/card.js.map +1 -1
  90. package/dist/components/celebration-dialog/celebration-dialog.d.ts +23 -0
  91. package/dist/components/celebration-dialog/celebration-dialog.d.ts.map +1 -0
  92. package/dist/components/celebration-dialog/celebration-dialog.js +158 -0
  93. package/dist/components/celebration-dialog/celebration-dialog.js.map +1 -0
  94. package/dist/components/celebration-dialog/index.d.ts +2 -0
  95. package/dist/components/celebration-dialog/index.d.ts.map +1 -0
  96. package/dist/components/celebration-dialog/index.js +2 -0
  97. package/dist/components/celebration-dialog/index.js.map +1 -0
  98. package/dist/components/chart-share-card/chart-share-card.d.ts +31 -0
  99. package/dist/components/chart-share-card/chart-share-card.d.ts.map +1 -0
  100. package/dist/components/chart-share-card/chart-share-card.js +15 -0
  101. package/dist/components/chart-share-card/chart-share-card.js.map +1 -0
  102. package/dist/components/chart-share-card/index.d.ts +2 -0
  103. package/dist/components/chart-share-card/index.d.ts.map +1 -0
  104. package/dist/components/chart-share-card/index.js +2 -0
  105. package/dist/components/chart-share-card/index.js.map +1 -0
  106. package/dist/components/code-block/code-block.d.ts +7 -2
  107. package/dist/components/code-block/code-block.d.ts.map +1 -1
  108. package/dist/components/code-block/code-block.js +49 -6
  109. package/dist/components/code-block/code-block.js.map +1 -1
  110. package/dist/components/code-block/highlight-code.d.ts +10 -0
  111. package/dist/components/code-block/highlight-code.d.ts.map +1 -0
  112. package/dist/components/code-block/highlight-code.js +45 -0
  113. package/dist/components/code-block/highlight-code.js.map +1 -0
  114. package/dist/components/code-block/highlight-shell.d.ts +9 -0
  115. package/dist/components/code-block/highlight-shell.d.ts.map +1 -0
  116. package/dist/components/code-block/highlight-shell.js +53 -0
  117. package/dist/components/code-block/highlight-shell.js.map +1 -0
  118. package/dist/components/collapsible/collapsible.d.ts +2 -2
  119. package/dist/components/collapsible/collapsible.js +4 -4
  120. package/dist/components/collapsible/collapsible.js.map +1 -1
  121. package/dist/components/command/command-palette.d.ts +15 -2
  122. package/dist/components/command/command-palette.d.ts.map +1 -1
  123. package/dist/components/command/command-palette.js +8 -5
  124. package/dist/components/command/command-palette.js.map +1 -1
  125. package/dist/components/comparison-bars/comparison-bars.d.ts +13 -2
  126. package/dist/components/comparison-bars/comparison-bars.d.ts.map +1 -1
  127. package/dist/components/comparison-bars/comparison-bars.js +3 -3
  128. package/dist/components/comparison-bars/comparison-bars.js.map +1 -1
  129. package/dist/components/data-grid/data-grid.d.ts +16 -1
  130. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  131. package/dist/components/data-grid/data-grid.js +94 -4
  132. package/dist/components/data-grid/data-grid.js.map +1 -1
  133. package/dist/components/date-picker/date-picker.d.ts +5 -0
  134. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  135. package/dist/components/date-picker/date-picker.js +2 -2
  136. package/dist/components/date-picker/date-picker.js.map +1 -1
  137. package/dist/components/details-panel/details-panel.d.ts +11 -4
  138. package/dist/components/details-panel/details-panel.d.ts.map +1 -1
  139. package/dist/components/details-panel/details-panel.js +13 -12
  140. package/dist/components/details-panel/details-panel.js.map +1 -1
  141. package/dist/components/empty/empty.d.ts +3 -2
  142. package/dist/components/empty/empty.d.ts.map +1 -1
  143. package/dist/components/empty/empty.js.map +1 -1
  144. package/dist/components/field/field.d.ts +8 -6
  145. package/dist/components/field/field.d.ts.map +1 -1
  146. package/dist/components/field/field.js +15 -7
  147. package/dist/components/field/field.js.map +1 -1
  148. package/dist/components/field/index.d.ts +1 -0
  149. package/dist/components/field/index.d.ts.map +1 -1
  150. package/dist/components/field/index.js +1 -0
  151. package/dist/components/field/index.js.map +1 -1
  152. package/dist/components/field/label.d.ts +2 -1
  153. package/dist/components/field/label.d.ts.map +1 -1
  154. package/dist/components/field/label.js +2 -1
  155. package/dist/components/field/label.js.map +1 -1
  156. package/dist/components/file-upload/file-upload.d.ts +1 -1
  157. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  158. package/dist/components/icon-morph/icon-morph.d.ts +1 -1
  159. package/dist/components/icon-morph/icon-morph.d.ts.map +1 -1
  160. package/dist/components/icon-morph/icon-morph.js.map +1 -1
  161. package/dist/components/input/input-suggestions.d.ts +1 -1
  162. package/dist/components/input/input-suggestions.d.ts.map +1 -1
  163. package/dist/components/input/input-suggestions.js +21 -4
  164. package/dist/components/input/input-suggestions.js.map +1 -1
  165. package/dist/components/input/input.d.ts +21 -8
  166. package/dist/components/input/input.d.ts.map +1 -1
  167. package/dist/components/input/input.js +18 -8
  168. package/dist/components/input/input.js.map +1 -1
  169. package/dist/components/input-group/input-group.d.ts +1 -1
  170. package/dist/components/input-group/input-group.d.ts.map +1 -1
  171. package/dist/components/leaderboard/leaderboard.d.ts +3 -1
  172. package/dist/components/leaderboard/leaderboard.d.ts.map +1 -1
  173. package/dist/components/leaderboard/leaderboard.js +7 -5
  174. package/dist/components/leaderboard/leaderboard.js.map +1 -1
  175. package/dist/components/link/link.d.ts +4 -3
  176. package/dist/components/link/link.d.ts.map +1 -1
  177. package/dist/components/link/link.js +21 -2
  178. package/dist/components/link/link.js.map +1 -1
  179. package/dist/components/list-item/list-item.d.ts +10 -4
  180. package/dist/components/list-item/list-item.d.ts.map +1 -1
  181. package/dist/components/list-item/list-item.js +4 -4
  182. package/dist/components/list-item/list-item.js.map +1 -1
  183. package/dist/components/list-toolbar/list-toolbar.js +1 -1
  184. package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
  185. package/dist/components/milestone/milestone.js +1 -1
  186. package/dist/components/milestone/milestone.js.map +1 -1
  187. package/dist/components/money/money.d.ts.map +1 -1
  188. package/dist/components/money/money.js +3 -3
  189. package/dist/components/money/money.js.map +1 -1
  190. package/dist/components/navigation-progress/index.d.ts +2 -0
  191. package/dist/components/navigation-progress/index.d.ts.map +1 -0
  192. package/dist/components/navigation-progress/index.js +2 -0
  193. package/dist/components/navigation-progress/index.js.map +1 -0
  194. package/dist/components/navigation-progress/navigation-progress.d.ts +23 -0
  195. package/dist/components/navigation-progress/navigation-progress.d.ts.map +1 -0
  196. package/dist/components/navigation-progress/navigation-progress.js +53 -0
  197. package/dist/components/navigation-progress/navigation-progress.js.map +1 -0
  198. package/dist/components/page-header/page-header.d.ts +3 -3
  199. package/dist/components/page-header/page-header.d.ts.map +1 -1
  200. package/dist/components/page-header/page-header.js +5 -8
  201. package/dist/components/page-header/page-header.js.map +1 -1
  202. package/dist/components/popover/popover.d.ts +5 -1
  203. package/dist/components/popover/popover.d.ts.map +1 -1
  204. package/dist/components/popover/popover.js +4 -2
  205. package/dist/components/popover/popover.js.map +1 -1
  206. package/dist/components/quantity-stepper/quantity-stepper.d.ts +3 -3
  207. package/dist/components/quantity-stepper/quantity-stepper.js +2 -2
  208. package/dist/components/quantity-stepper/quantity-stepper.js.map +1 -1
  209. package/dist/components/radio-group/radio-group.d.ts.map +1 -1
  210. package/dist/components/radio-group/radio-group.js +6 -4
  211. package/dist/components/radio-group/radio-group.js.map +1 -1
  212. package/dist/components/record-header/record-header.d.ts +7 -3
  213. package/dist/components/record-header/record-header.d.ts.map +1 -1
  214. package/dist/components/record-header/record-header.js +11 -3
  215. package/dist/components/record-header/record-header.js.map +1 -1
  216. package/dist/components/rich-text-editor/rich-text-editor.d.ts +13 -1
  217. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  218. package/dist/components/rich-text-editor/rich-text-editor.js +17 -9
  219. package/dist/components/rich-text-editor/rich-text-editor.js.map +1 -1
  220. package/dist/components/rich-text-editor/rich-text-extensions.d.ts +5 -2
  221. package/dist/components/rich-text-editor/rich-text-extensions.d.ts.map +1 -1
  222. package/dist/components/rich-text-editor/rich-text-extensions.js +43 -5
  223. package/dist/components/rich-text-editor/rich-text-extensions.js.map +1 -1
  224. package/dist/components/rich-text-editor/rich-text-markdown.d.ts +9 -3
  225. package/dist/components/rich-text-editor/rich-text-markdown.d.ts.map +1 -1
  226. package/dist/components/rich-text-editor/rich-text-markdown.js +134 -44
  227. package/dist/components/rich-text-editor/rich-text-markdown.js.map +1 -1
  228. package/dist/components/scaled-frame/scaled-frame.d.ts +2 -1
  229. package/dist/components/scaled-frame/scaled-frame.d.ts.map +1 -1
  230. package/dist/components/scaled-frame/scaled-frame.js +8 -2
  231. package/dist/components/scaled-frame/scaled-frame.js.map +1 -1
  232. package/dist/components/select/select.d.ts +6 -3
  233. package/dist/components/select/select.d.ts.map +1 -1
  234. package/dist/components/select/select.js +12 -7
  235. package/dist/components/select/select.js.map +1 -1
  236. package/dist/components/settings-section/settings-section.d.ts +8 -1
  237. package/dist/components/settings-section/settings-section.d.ts.map +1 -1
  238. package/dist/components/settings-section/settings-section.js +8 -8
  239. package/dist/components/settings-section/settings-section.js.map +1 -1
  240. package/dist/components/setup-guide/setup-guide.d.ts +2 -2
  241. package/dist/components/setup-guide/setup-guide.js +2 -2
  242. package/dist/components/setup-guide/setup-guide.js.map +1 -1
  243. package/dist/components/sheet/sheet.d.ts +16 -5
  244. package/dist/components/sheet/sheet.d.ts.map +1 -1
  245. package/dist/components/sheet/sheet.js +9 -5
  246. package/dist/components/sheet/sheet.js.map +1 -1
  247. package/dist/components/sidebar/index.d.ts +1 -1
  248. package/dist/components/sidebar/index.d.ts.map +1 -1
  249. package/dist/components/sidebar/index.js +1 -1
  250. package/dist/components/sidebar/index.js.map +1 -1
  251. package/dist/components/sidebar/sidebar.d.ts +37 -10
  252. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  253. package/dist/components/sidebar/sidebar.js +75 -27
  254. package/dist/components/sidebar/sidebar.js.map +1 -1
  255. package/dist/components/skeleton/page-skeleton.js +1 -1
  256. package/dist/components/skeleton/page-skeleton.js.map +1 -1
  257. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  258. package/dist/components/skeleton/skeleton.js +1 -1
  259. package/dist/components/skeleton/skeleton.js.map +1 -1
  260. package/dist/components/stat-card/stat-card.d.ts +24 -10
  261. package/dist/components/stat-card/stat-card.d.ts.map +1 -1
  262. package/dist/components/stat-card/stat-card.js +27 -18
  263. package/dist/components/stat-card/stat-card.js.map +1 -1
  264. package/dist/components/tabs/index.d.ts +1 -1
  265. package/dist/components/tabs/index.d.ts.map +1 -1
  266. package/dist/components/tabs/index.js +1 -1
  267. package/dist/components/tabs/index.js.map +1 -1
  268. package/dist/components/tabs/tabs.d.ts +18 -6
  269. package/dist/components/tabs/tabs.d.ts.map +1 -1
  270. package/dist/components/tabs/tabs.js +96 -7
  271. package/dist/components/tabs/tabs.js.map +1 -1
  272. package/dist/icons/flags/basque.d.ts.map +1 -0
  273. package/dist/icons/flags/basque.js.map +1 -0
  274. package/dist/icons/flags/canary-islands.d.ts.map +1 -0
  275. package/dist/icons/flags/canary-islands.js.map +1 -0
  276. package/dist/icons/flags/england.d.ts.map +1 -0
  277. package/dist/icons/flags/england.js.map +1 -0
  278. package/dist/icons/flags/hawaii.d.ts.map +1 -0
  279. package/dist/icons/flags/hawaii.js.map +1 -0
  280. package/dist/icons/flags/kurdistan.d.ts.map +1 -0
  281. package/dist/icons/flags/kurdistan.js.map +1 -0
  282. package/dist/icons/flags/netherlands-antilles.d.ts.map +1 -0
  283. package/dist/icons/flags/netherlands-antilles.js.map +1 -0
  284. package/dist/icons/flags/northen-ireland.d.ts.map +1 -0
  285. package/dist/icons/flags/northen-ireland.js.map +1 -0
  286. package/dist/icons/flags/scotland.d.ts.map +1 -0
  287. package/dist/icons/flags/scotland.js.map +1 -0
  288. package/dist/icons/flags/wales.d.ts.map +1 -0
  289. package/dist/icons/flags/wales.js.map +1 -0
  290. package/dist/icons/index.d.ts +12 -0
  291. package/dist/icons/index.d.ts.map +1 -0
  292. package/dist/icons/index.js +12 -0
  293. package/dist/icons/index.js.map +1 -0
  294. package/dist/icons/ui/ai-agents.d.ts +3 -0
  295. package/dist/icons/ui/ai-agents.d.ts.map +1 -0
  296. package/dist/icons/ui/ai-agents.js +5 -0
  297. package/dist/icons/ui/ai-agents.js.map +1 -0
  298. package/dist/icons/ui/archive.d.ts.map +1 -0
  299. package/dist/icons/ui/archive.js.map +1 -0
  300. package/dist/icons/ui/arrow-door-out-3.d.ts.map +1 -0
  301. package/dist/icons/ui/arrow-door-out-3.js.map +1 -0
  302. package/dist/icons/ui/arrow-door-out.d.ts.map +1 -0
  303. package/dist/icons/ui/arrow-door-out.js.map +1 -0
  304. package/dist/icons/ui/arrow-left.d.ts.map +1 -0
  305. package/dist/icons/ui/arrow-left.js.map +1 -0
  306. package/dist/icons/ui/arrows-transaction.d.ts.map +1 -0
  307. package/dist/icons/ui/arrows-transaction.js.map +1 -0
  308. package/dist/icons/ui/bell-outline-duo.d.ts.map +1 -0
  309. package/dist/icons/ui/bell-outline-duo.js.map +1 -0
  310. package/dist/icons/ui/bolt.d.ts.map +1 -0
  311. package/dist/icons/ui/bolt.js.map +1 -0
  312. package/dist/icons/ui/book-open.d.ts +3 -0
  313. package/dist/icons/ui/book-open.d.ts.map +1 -0
  314. package/dist/icons/ui/book-open.js +5 -0
  315. package/dist/icons/ui/book-open.js.map +1 -0
  316. package/dist/icons/ui/box-glyph.d.ts.map +1 -0
  317. package/dist/icons/ui/box-glyph.js.map +1 -0
  318. package/dist/icons/ui/box-plus.d.ts.map +1 -0
  319. package/dist/icons/ui/box-plus.js.map +1 -0
  320. package/dist/icons/ui/chart-pie.d.ts.map +1 -0
  321. package/dist/icons/ui/chart-pie.js.map +1 -0
  322. package/dist/icons/ui/chat-bubble-writing.d.ts +3 -0
  323. package/dist/icons/ui/chat-bubble-writing.d.ts.map +1 -0
  324. package/dist/icons/ui/chat-bubble-writing.js +5 -0
  325. package/dist/icons/ui/chat-bubble-writing.js.map +1 -0
  326. package/dist/icons/ui/check-glyph-12.d.ts.map +1 -0
  327. package/dist/icons/ui/check-glyph-12.js.map +1 -0
  328. package/dist/icons/ui/circle-check-glyph.d.ts.map +1 -0
  329. package/dist/icons/ui/circle-check-glyph.js.map +1 -0
  330. package/dist/icons/ui/circle-user-check.d.ts.map +1 -0
  331. package/dist/icons/ui/circle-user-check.js.map +1 -0
  332. package/dist/icons/ui/coins.d.ts.map +1 -0
  333. package/dist/icons/ui/coins.js.map +1 -0
  334. package/dist/icons/ui/dots-vertical.d.ts.map +1 -0
  335. package/dist/icons/ui/dots-vertical.js.map +1 -0
  336. package/dist/icons/ui/fingerprint.d.ts.map +1 -0
  337. package/dist/icons/ui/fingerprint.js.map +1 -0
  338. package/dist/icons/ui/flask.d.ts.map +1 -0
  339. package/dist/icons/ui/flask.js.map +1 -0
  340. package/dist/icons/ui/gear.d.ts.map +1 -0
  341. package/dist/icons/ui/gear.js.map +1 -0
  342. package/dist/icons/ui/greek-temple-glyph.d.ts.map +1 -0
  343. package/dist/icons/ui/greek-temple-glyph.js.map +1 -0
  344. package/dist/icons/ui/greek-temple.d.ts.map +1 -0
  345. package/dist/icons/ui/greek-temple.js.map +1 -0
  346. package/dist/icons/ui/grid.d.ts +3 -0
  347. package/dist/icons/ui/grid.d.ts.map +1 -0
  348. package/dist/icons/ui/grid.js +5 -0
  349. package/dist/icons/ui/grid.js.map +1 -0
  350. package/dist/icons/ui/heart-glyph.d.ts.map +1 -0
  351. package/dist/icons/ui/heart-glyph.js.map +1 -0
  352. package/dist/icons/ui/heart.d.ts.map +1 -0
  353. package/dist/icons/ui/heart.js.map +1 -0
  354. package/dist/icons/ui/hourglass-glyph.d.ts.map +1 -0
  355. package/dist/icons/ui/hourglass-glyph.js.map +1 -0
  356. package/dist/icons/ui/house.d.ts.map +1 -0
  357. package/dist/icons/ui/house.js.map +1 -0
  358. package/dist/icons/ui/key.d.ts.map +1 -0
  359. package/dist/icons/ui/key.js.map +1 -0
  360. package/dist/icons/ui/lightbulb.d.ts +3 -0
  361. package/dist/icons/ui/lightbulb.d.ts.map +1 -0
  362. package/dist/icons/ui/lightbulb.js +5 -0
  363. package/dist/icons/ui/lightbulb.js.map +1 -0
  364. package/dist/icons/ui/link.d.ts +3 -0
  365. package/dist/icons/ui/link.d.ts.map +1 -0
  366. package/dist/icons/ui/link.js +5 -0
  367. package/dist/icons/ui/link.js.map +1 -0
  368. package/dist/icons/ui/media-pause.d.ts +3 -0
  369. package/dist/icons/ui/media-pause.d.ts.map +1 -0
  370. package/dist/icons/ui/media-pause.js +5 -0
  371. package/dist/icons/ui/media-pause.js.map +1 -0
  372. package/dist/icons/ui/media-play.d.ts +3 -0
  373. package/dist/icons/ui/media-play.d.ts.map +1 -0
  374. package/dist/icons/ui/media-play.js +5 -0
  375. package/dist/icons/ui/media-play.js.map +1 -0
  376. package/dist/icons/ui/money-bill.d.ts.map +1 -0
  377. package/dist/icons/ui/money-bill.js.map +1 -0
  378. package/dist/icons/ui/money-bills.d.ts.map +1 -0
  379. package/dist/icons/ui/money-bills.js.map +1 -0
  380. package/dist/icons/ui/money-refund.d.ts.map +1 -0
  381. package/dist/icons/ui/money-refund.js.map +1 -0
  382. package/dist/icons/ui/monitor.d.ts.map +1 -0
  383. package/dist/icons/ui/monitor.js.map +1 -0
  384. package/dist/icons/ui/moon.d.ts.map +1 -0
  385. package/dist/icons/ui/moon.js.map +1 -0
  386. package/dist/icons/ui/paper-plane.d.ts +3 -0
  387. package/dist/icons/ui/paper-plane.d.ts.map +1 -0
  388. package/dist/icons/ui/paper-plane.js +5 -0
  389. package/dist/icons/ui/paper-plane.js.map +1 -0
  390. package/dist/icons/ui/pencil.d.ts.map +1 -0
  391. package/dist/icons/ui/pencil.js.map +1 -0
  392. package/dist/icons/ui/print.d.ts +3 -0
  393. package/dist/icons/ui/print.d.ts.map +1 -0
  394. package/dist/icons/ui/print.js +5 -0
  395. package/dist/icons/ui/print.js.map +1 -0
  396. package/dist/icons/ui/refresh-clockwise.d.ts.map +1 -0
  397. package/dist/icons/ui/refresh-clockwise.js.map +1 -0
  398. package/dist/icons/ui/report.d.ts.map +1 -0
  399. package/dist/icons/ui/report.js.map +1 -0
  400. package/dist/icons/ui/shield-check.d.ts.map +1 -0
  401. package/dist/icons/ui/shield-check.js.map +1 -0
  402. package/dist/icons/ui/shop-glyph.d.ts.map +1 -0
  403. package/dist/icons/ui/shop-glyph.js.map +1 -0
  404. package/dist/icons/ui/sliders.d.ts.map +1 -0
  405. package/dist/icons/ui/sliders.js.map +1 -0
  406. package/dist/icons/ui/star-glyph-duo.d.ts.map +1 -0
  407. package/dist/icons/ui/star-glyph-duo.js.map +1 -0
  408. package/dist/icons/ui/star-glyph.d.ts.map +1 -0
  409. package/dist/icons/ui/star-glyph.js.map +1 -0
  410. package/dist/icons/ui/star-outline-duo.d.ts.map +1 -0
  411. package/dist/icons/ui/star-outline-duo.js.map +1 -0
  412. package/dist/icons/ui/star.d.ts.map +1 -0
  413. package/dist/icons/ui/star.js.map +1 -0
  414. package/dist/icons/ui/sun.d.ts.map +1 -0
  415. package/dist/icons/ui/sun.js.map +1 -0
  416. package/dist/icons/ui/terminal.d.ts.map +1 -0
  417. package/dist/icons/ui/terminal.js.map +1 -0
  418. package/dist/icons/ui/text-align-center.d.ts.map +1 -0
  419. package/dist/icons/ui/text-align-center.js.map +1 -0
  420. package/dist/icons/ui/text-align-left.d.ts.map +1 -0
  421. package/dist/icons/ui/text-align-left.js.map +1 -0
  422. package/dist/icons/ui/text-align-right.d.ts.map +1 -0
  423. package/dist/icons/ui/text-align-right.js.map +1 -0
  424. package/dist/icons/ui/ticket.d.ts.map +1 -0
  425. package/dist/icons/ui/ticket.js.map +1 -0
  426. package/dist/icons/ui/trash-2.d.ts.map +1 -0
  427. package/dist/icons/ui/trash-2.js.map +1 -0
  428. package/dist/icons/ui/triangle-warning-glyph.d.ts.map +1 -0
  429. package/dist/icons/ui/triangle-warning-glyph.js.map +1 -0
  430. package/dist/icons/ui/user-glyph.d.ts.map +1 -0
  431. package/dist/icons/ui/user-glyph.js.map +1 -0
  432. package/dist/icons/ui/user-plus.d.ts +3 -0
  433. package/dist/icons/ui/user-plus.d.ts.map +1 -0
  434. package/dist/icons/ui/user-plus.js +5 -0
  435. package/dist/icons/ui/user-plus.js.map +1 -0
  436. package/dist/icons/ui/users.d.ts.map +1 -0
  437. package/dist/icons/ui/users.js.map +1 -0
  438. package/dist/icons/ui/wallet-outline-duo.d.ts.map +1 -0
  439. package/dist/icons/ui/wallet-outline-duo.js.map +1 -0
  440. package/dist/icons/ui/wallet.d.ts.map +1 -0
  441. package/dist/icons/ui/wallet.js.map +1 -0
  442. package/dist/icons/ui/wand-sparkle.d.ts.map +1 -0
  443. package/dist/icons/ui/wand-sparkle.js.map +1 -0
  444. package/dist/icons/ui/wifi-off.d.ts +3 -0
  445. package/dist/icons/ui/wifi-off.d.ts.map +1 -0
  446. package/dist/icons/ui/wifi-off.js +5 -0
  447. package/dist/icons/ui/wifi-off.js.map +1 -0
  448. package/dist/index.d.ts +2 -0
  449. package/dist/index.d.ts.map +1 -1
  450. package/dist/index.js +2 -0
  451. package/dist/index.js.map +1 -1
  452. package/dist/primitives/charts/bar-chart.d.ts.map +1 -1
  453. package/dist/primitives/charts/bar-chart.js +33 -3
  454. package/dist/primitives/charts/bar-chart.js.map +1 -1
  455. package/dist/primitives/charts/line.d.ts.map +1 -1
  456. package/dist/primitives/charts/line.js +14 -11
  457. package/dist/primitives/charts/line.js.map +1 -1
  458. package/dist/primitives/charts/x-axis.d.ts +12 -1
  459. package/dist/primitives/charts/x-axis.d.ts.map +1 -1
  460. package/dist/primitives/charts/x-axis.js +96 -20
  461. package/dist/primitives/charts/x-axis.js.map +1 -1
  462. package/dist/primitives/charts/y-axis-scales.d.ts +3 -1
  463. package/dist/primitives/charts/y-axis-scales.d.ts.map +1 -1
  464. package/dist/primitives/charts/y-axis-scales.js +2 -2
  465. package/dist/primitives/charts/y-axis-scales.js.map +1 -1
  466. package/dist/primitives/charts/y-axis.d.ts +5 -0
  467. package/dist/primitives/charts/y-axis.d.ts.map +1 -1
  468. package/dist/primitives/charts/y-axis.js +6 -2
  469. package/dist/primitives/charts/y-axis.js.map +1 -1
  470. package/dist/primitives/ui/alert-dialog.js +1 -1
  471. package/dist/primitives/ui/alert-dialog.js.map +1 -1
  472. package/dist/primitives/ui/button.d.ts.map +1 -1
  473. package/dist/primitives/ui/button.js +4 -2
  474. package/dist/primitives/ui/button.js.map +1 -1
  475. package/dist/primitives/ui/card.d.ts.map +1 -1
  476. package/dist/primitives/ui/card.js +9 -7
  477. package/dist/primitives/ui/card.js.map +1 -1
  478. package/dist/primitives/ui/dialog.d.ts +3 -1
  479. package/dist/primitives/ui/dialog.d.ts.map +1 -1
  480. package/dist/primitives/ui/dialog.js +5 -4
  481. package/dist/primitives/ui/dialog.js.map +1 -1
  482. package/dist/primitives/ui/input.js +1 -1
  483. package/dist/primitives/ui/input.js.map +1 -1
  484. package/dist/primitives/ui/select.js +3 -3
  485. package/dist/primitives/ui/select.js.map +1 -1
  486. package/dist/primitives/ui/switch.d.ts +2 -2
  487. package/dist/primitives/ui/switch.d.ts.map +1 -1
  488. package/dist/primitives/ui/switch.js +2 -2
  489. package/dist/primitives/ui/switch.js.map +1 -1
  490. package/dist/primitives/ui/textarea.js +1 -1
  491. package/dist/primitives/ui/textarea.js.map +1 -1
  492. package/dist/styles/extensions.css +9 -0
  493. package/dist/styles/theme.css +1 -1
  494. package/dist/styles/tokens.css +16 -26
  495. package/dist/styles/tokens.test.tsx +0 -3
  496. 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.1",
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`, the shells (`bash`, `sh`, `zsh`), JavaScript, TypeScript and Python are coloured.",
9941
10177
  "source": "dodo"
9942
10178
  },
9943
10179
  {
@@ -9980,6 +10216,13 @@
9980
10216
  "description": "Shown in Content/Tertiary when `code` is empty.",
9981
10217
  "source": "dodo"
9982
10218
  },
10219
+ {
10220
+ "name": "sensitive",
10221
+ "type": "boolean",
10222
+ "required": false,
10223
+ "description": "`code` is a secret, e.g. an API key shown once: the copy button never puts it in a hidden textarea page scripts\ncould read, as CopyButton's `sensitive`.",
10224
+ "source": "dodo"
10225
+ },
9983
10226
  {
9984
10227
  "name": "showHeader",
9985
10228
  "type": "boolean",
@@ -10400,11 +10643,15 @@
10400
10643
  },
10401
10644
  {
10402
10645
  "name": "size",
10403
- "type": "\"md\" | \"lg\"",
10646
+ "type": "\"sm\" | \"md\" | \"lg\"",
10404
10647
  "required": false,
10405
10648
  "description": "",
10406
10649
  "source": "dodo",
10407
10650
  "values": [
10651
+ {
10652
+ "value": "sm",
10653
+ "description": "36 rows in Body/Secondary with 12 padding, for a table in a narrow side panel such as Dodo AI's."
10654
+ },
10408
10655
  {
10409
10656
  "value": "md",
10410
10657
  "description": "48 rows, for one-line cells (the default)."
@@ -10415,6 +10662,13 @@
10415
10662
  }
10416
10663
  ],
10417
10664
  "default": "\"md\""
10665
+ },
10666
+ {
10667
+ "name": "storageKey",
10668
+ "type": "string",
10669
+ "required": false,
10670
+ "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.",
10671
+ "source": "dodo"
10418
10672
  }
10419
10673
  ]
10420
10674
  },
@@ -11720,7 +11974,7 @@
11720
11974
  },
11721
11975
  {
11722
11976
  "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.",
11977
+ "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
11978
  "props": [
11725
11979
  {
11726
11980
  "name": "className",
@@ -11939,7 +12193,7 @@
11939
12193
  "title": "Scaled frame",
11940
12194
  "category": "Layout",
11941
12195
  "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.",
12196
+ "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
12197
  "importPath": "@dodopayments/ui/scaled-frame",
11944
12198
  "exports": [
11945
12199
  "ScaledFrame",
@@ -11948,7 +12202,7 @@
11948
12202
  "parts": [
11949
12203
  {
11950
12204
  "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.",
12205
+ "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
12206
  "props": [
11953
12207
  {
11954
12208
  "name": "width",
@@ -12307,6 +12561,13 @@
12307
12561
  "name": "DialogPanel",
12308
12562
  "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
12563
  "props": [
12564
+ {
12565
+ "name": "fill",
12566
+ "type": "boolean",
12567
+ "required": false,
12568
+ "description": "Fill the panel's height (a fixed-height dialog), so a short body can centre itself with `m-auto`.",
12569
+ "source": "dodo"
12570
+ },
12310
12571
  {
12311
12572
  "name": "scrollFade",
12312
12573
  "type": "boolean",
@@ -13072,10 +13333,10 @@
13072
13333
  },
13073
13334
  {
13074
13335
  "name": "titleAs",
13075
- "type": "\"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\"",
13336
+ "type": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\"",
13076
13337
  "required": false,
13077
13338
  "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.",
13339
+ "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
13340
  "source": "dodo"
13080
13341
  },
13081
13342
  {
@@ -13128,6 +13389,7 @@
13128
13389
  "FieldLabel",
13129
13390
  "FieldLabelProps",
13130
13391
  "FieldProps",
13392
+ "LabelRequiredIndicator",
13131
13393
  "fieldVariants"
13132
13394
  ],
13133
13395
  "parts": [
@@ -13167,7 +13429,7 @@
13167
13429
  "name": "expanded",
13168
13430
  "type": "ReactNode",
13169
13431
  "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.",
13432
+ "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
13433
  "source": "dodo"
13172
13434
  },
13173
13435
  {
@@ -13205,7 +13467,7 @@
13205
13467
  },
13206
13468
  {
13207
13469
  "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."
13470
+ "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
13471
  }
13210
13472
  ],
13211
13473
  "default": "\"vertical\""
@@ -13395,7 +13657,7 @@
13395
13657
  },
13396
13658
  {
13397
13659
  "name": "size",
13398
- "type": "\"sm\" | \"lg\" | null",
13660
+ "type": "\"code\" | \"sm\" | \"lg\" | null",
13399
13661
  "required": false,
13400
13662
  "description": "",
13401
13663
  "source": "dodo"
@@ -13425,7 +13687,7 @@
13425
13687
  "name": "suggestionsEmpty",
13426
13688
  "type": "ReactNode",
13427
13689
  "required": false,
13428
- "description": "Text shown in the list when no suggestion matches, announced politely. Without it the list hides instead.",
13690
+ "description": "Text shown in the list when no suggestion matches, announced politely. Without it the list closes instead.",
13429
13691
  "source": "dodo"
13430
13692
  },
13431
13693
  {
@@ -13585,6 +13847,19 @@
13585
13847
  "source": "base-ui"
13586
13848
  }
13587
13849
  ]
13850
+ },
13851
+ {
13852
+ "name": "LabelRequiredIndicator",
13853
+ "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.",
13854
+ "props": [
13855
+ {
13856
+ "name": "className",
13857
+ "type": "string",
13858
+ "required": false,
13859
+ "description": "Additional Tailwind classes, merged last.",
13860
+ "source": "dodo"
13861
+ }
13862
+ ]
13588
13863
  }
13589
13864
  ],
13590
13865
  "examples": [
@@ -14751,7 +15026,7 @@
14751
15026
  "title": "Input",
14752
15027
  "category": "Forms",
14753
15028
  "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.",
15029
+ "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
15030
  "importPath": "@dodopayments/ui/input",
14756
15031
  "exports": [
14757
15032
  "DODO_INPUT_DEFAULT_VARIANTS",
@@ -14784,7 +15059,7 @@
14784
15059
  "parts": [
14785
15060
  {
14786
15061
  "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.",
15062
+ "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
15063
  "props": [
14789
15064
  {
14790
15065
  "name": "aria-label",
@@ -14917,6 +15192,10 @@
14917
15192
  "name": "input/async-suggestions",
14918
15193
  "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
15194
  },
15195
+ {
15196
+ "name": "input/code",
15197
+ "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}"
15198
+ },
14920
15199
  {
14921
15200
  "name": "input/compact",
14922
15201
  "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 +17173,13 @@
16894
17173
  "description": "Additional Tailwind classes, merged last.",
16895
17174
  "source": "dodo"
16896
17175
  },
17176
+ {
17177
+ "name": "description",
17178
+ "type": "ReactNode",
17179
+ "required": false,
17180
+ "description": "The notice's body under the title, up to two lines (Body/Secondary).",
17181
+ "source": "dodo"
17182
+ },
16897
17183
  {
16898
17184
  "name": "icon",
16899
17185
  "type": "ReactNode",
@@ -16908,6 +17194,13 @@
16908
17194
  "description": "The object ID (Mono/Primary).",
16909
17195
  "source": "dodo"
16910
17196
  },
17197
+ {
17198
+ "name": "onClick",
17199
+ "type": "(() => void)",
17200
+ "required": false,
17201
+ "description": "Makes the whole row a button, e.g. to open what the notice is about.",
17202
+ "source": "dodo"
17203
+ },
16911
17204
  {
16912
17205
  "name": "time",
16913
17206
  "type": "ReactNode",
@@ -17260,7 +17553,7 @@
17260
17553
  "title": "Quantity stepper",
17261
17554
  "category": "Forms",
17262
17555
  "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`.",
17556
+ "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
17557
  "importPath": "@dodopayments/ui/quantity-stepper",
17265
17558
  "exports": [
17266
17559
  "DODO_QUANTITY_STEPPER_DEFAULT_VARIANTS",
@@ -17272,7 +17565,7 @@
17272
17565
  "parts": [
17273
17566
  {
17274
17567
  "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`.",
17568
+ "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
17569
  "props": [
17277
17570
  {
17278
17571
  "name": "aria-describedby",
@@ -17346,7 +17639,7 @@
17346
17639
  },
17347
17640
  {
17348
17641
  "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."
17642
+ "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
17643
  }
17351
17644
  ],
17352
17645
  "default": "\"default\""
@@ -17510,7 +17803,7 @@
17510
17803
  "type": "boolean",
17511
17804
  "required": false,
17512
17805
  "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).",
17806
+ "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
17807
  "source": "dodo"
17515
17808
  },
17516
17809
  {
@@ -17796,6 +18089,13 @@
17796
18089
  "description": "Turns editing and the toolbar off and dims the editor to 64%.",
17797
18090
  "source": "dodo"
17798
18091
  },
18092
+ {
18093
+ "name": "hiddenTools",
18094
+ "type": "readonly RichTextEditorTool[]",
18095
+ "required": false,
18096
+ "description": "Tools to leave out of the strip, e.g. `[\"strikethrough\"]` when the text is shown where strikethrough is not.",
18097
+ "source": "dodo"
18098
+ },
17799
18099
  {
17800
18100
  "name": "id",
17801
18101
  "type": "string",
@@ -17803,6 +18103,14 @@
17803
18103
  "description": "The textbox id. Inside a `Field` the field sets it, so its label focuses the editor.",
17804
18104
  "source": "dodo"
17805
18105
  },
18106
+ {
18107
+ "name": "input",
18108
+ "type": "\"editor\" | \"markdown\"",
18109
+ "required": false,
18110
+ "default": "\"editor\"",
18111
+ "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.",
18112
+ "source": "dodo"
18113
+ },
17806
18114
  {
17807
18115
  "name": "labels",
17808
18116
  "type": "Partial<RichTextEditorLabels>",
@@ -18092,6 +18400,8 @@
18092
18400
  "AppTopBarMilestonesRing",
18093
18401
  "AppTopBarMilestonesRingProps",
18094
18402
  "AppTopBarProps",
18403
+ "AppTopBarSupportItem",
18404
+ "AppTopBarSupportItemProps",
18095
18405
  "AppTopBarUser",
18096
18406
  "DODO_APP_TOP_BAR_DEFAULT_VARIANTS",
18097
18407
  "DODO_APP_TOP_BAR_VARIANTS"
@@ -18167,6 +18477,13 @@
18167
18477
  "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
18478
  "source": "dodo"
18169
18479
  },
18480
+ {
18481
+ "name": "notificationsCount",
18482
+ "type": "number",
18483
+ "required": false,
18484
+ "description": "Unseen notifications, shown on the bell (99+ past 99) and named in its label. Hidden at 0.",
18485
+ "source": "dodo"
18486
+ },
18170
18487
  {
18171
18488
  "name": "onOpenAccount",
18172
18489
  "type": "(() => void)",
@@ -18258,7 +18575,7 @@
18258
18575
  "type": "boolean",
18259
18576
  "required": false,
18260
18577
  "default": "true",
18261
- "description": "Show the Dodo AI button (violet magic icon, Nucleo add-magic).",
18578
+ "description": "Show the Dodo AI button (violet sparkle, Nucleo `add-magic`).",
18262
18579
  "source": "dodo"
18263
18580
  },
18264
18581
  {
@@ -18285,6 +18602,13 @@
18285
18602
  "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
18603
  "source": "dodo"
18287
18604
  },
18605
+ {
18606
+ "name": "support",
18607
+ "type": "ReactNode",
18608
+ "required": false,
18609
+ "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`.",
18610
+ "source": "dodo"
18611
+ },
18288
18612
  {
18289
18613
  "name": "theme",
18290
18614
  "type": "AppTopBarTheme",
@@ -18296,7 +18620,7 @@
18296
18620
  "name": "user",
18297
18621
  "type": "AppTopBarUser",
18298
18622
  "required": false,
18299
- "description": "Shows the user's avatar instead of the user icon on the account button.",
18623
+ "description": "Shows the user's avatar instead of the user icon on the account button: a 36px rounded square, as tall as the icon buttons beside it.",
18300
18624
  "source": "dodo"
18301
18625
  }
18302
18626
  ]
@@ -18333,6 +18657,40 @@
18333
18657
  "source": "dodo"
18334
18658
  }
18335
18659
  ]
18660
+ },
18661
+ {
18662
+ "name": "AppTopBarSupportItem",
18663
+ "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.",
18664
+ "props": [
18665
+ {
18666
+ "name": "icon",
18667
+ "type": "ReactNode",
18668
+ "required": true,
18669
+ "description": "Leading 20px Nucleo icon.",
18670
+ "source": "dodo"
18671
+ },
18672
+ {
18673
+ "name": "className",
18674
+ "type": "string",
18675
+ "required": false,
18676
+ "description": "Additional Tailwind classes, merged last.",
18677
+ "source": "dodo"
18678
+ },
18679
+ {
18680
+ "name": "href",
18681
+ "type": "string",
18682
+ "required": false,
18683
+ "description": "Makes the row a link that opens in a new tab, e.g. the docs or the Discord server.",
18684
+ "source": "dodo"
18685
+ },
18686
+ {
18687
+ "name": "onClick",
18688
+ "type": "(() => void)",
18689
+ "required": false,
18690
+ "description": "",
18691
+ "source": "dodo"
18692
+ }
18693
+ ]
18336
18694
  }
18337
18695
  ],
18338
18696
  "examples": [
@@ -18347,6 +18705,10 @@
18347
18705
  {
18348
18706
  "name": "app-top-bar/setup-guide",
18349
18707
  "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}"
18708
+ },
18709
+ {
18710
+ "name": "app-top-bar/support",
18711
+ "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
18712
  }
18351
18713
  ],
18352
18714
  "docsUrl": "/components/app-top-bar"
@@ -18711,11 +19073,11 @@
18711
19073
  "values": [
18712
19074
  {
18713
19075
  "value": "default",
18714
- "description": "36 tall (40 below `sm`), as in Figma. The default."
19076
+ "description": "36 tall, as in Figma. The default."
18715
19077
  },
18716
19078
  {
18717
19079
  "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."
19080
+ "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
19081
  }
18720
19082
  ],
18721
19083
  "default": "\"default\""
@@ -18764,7 +19126,7 @@
18764
19126
  },
18765
19127
  {
18766
19128
  "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.",
19129
+ "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
19130
  "props": [
18769
19131
  {
18770
19132
  "name": "maxChips",
@@ -19173,7 +19535,7 @@
19173
19535
  },
19174
19536
  {
19175
19537
  "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\".",
19538
+ "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
19539
  "props": [
19178
19540
  {
19179
19541
  "name": "className",
@@ -19236,7 +19598,7 @@
19236
19598
  "title": "Sheet",
19237
19599
  "category": "Overlays",
19238
19600
  "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.",
19601
+ "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
19602
  "importPath": "@dodopayments/ui/sheet",
19241
19603
  "exports": [
19242
19604
  "DODO_SHEET_DEFAULT_VARIANTS",
@@ -19267,7 +19629,7 @@
19267
19629
  "parts": [
19268
19630
  {
19269
19631
  "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.",
19632
+ "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
19633
  "props": [
19272
19634
  {
19273
19635
  "name": "className",
@@ -19301,7 +19663,7 @@
19301
19663
  },
19302
19664
  {
19303
19665
  "name": "size",
19304
- "type": "\"md\" | \"lg\"",
19666
+ "type": "\"md\" | \"lg\" | \"xl\"",
19305
19667
  "required": false,
19306
19668
  "description": "",
19307
19669
  "source": "dodo",
@@ -19313,6 +19675,10 @@
19313
19675
  {
19314
19676
  "value": "lg",
19315
19677
  "description": "560 wide: longer forms. Side sheets only."
19678
+ },
19679
+ {
19680
+ "value": "xl",
19681
+ "description": "768 wide: a form with a code editor or a long checklist, such as a webhook endpoint. Side sheets only."
19316
19682
  }
19317
19683
  ],
19318
19684
  "default": "\"md\""
@@ -19521,7 +19887,7 @@
19521
19887
  "name": "progress",
19522
19888
  "type": "number",
19523
19889
  "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.",
19890
+ "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
19891
  "source": "dodo"
19526
19892
  },
19527
19893
  {
@@ -19711,6 +20077,7 @@
19711
20077
  "importPath": "@dodopayments/ui/sidebar",
19712
20078
  "exports": [
19713
20079
  "Sidebar",
20080
+ "SidebarBanner",
19714
20081
  "SidebarBusinessSwitcher",
19715
20082
  "SidebarBusinessSwitcherProps",
19716
20083
  "SidebarContent",
@@ -19759,9 +20126,14 @@
19759
20126
  }
19760
20127
  ]
19761
20128
  },
20129
+ {
20130
+ "name": "SidebarBanner",
20131
+ "description": "Full-width strips above the whole app shell (a `TestModeBanner`, an impersonation or action strip). Place it first\ninside `SidebarProvider`. From 1024px it is fixed to the top of the window and the docked sidebar and the inset\nstart below it (its height is `--sidebar-top` on the provider, for a page that sizes itself to the window); below\nthat it sits at the top of the page, above the inset. With nothing in it, it takes no space.",
20132
+ "props": []
20133
+ },
19762
20134
  {
19763
20135
  "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`.",
20136
+ "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
20137
  "props": [
19766
20138
  {
19767
20139
  "name": "name",
@@ -19770,6 +20142,13 @@
19770
20142
  "description": "Name of the current business. Its initials fill the avatar when there is no `logoUrl`.",
19771
20143
  "source": "dodo"
19772
20144
  },
20145
+ {
20146
+ "name": "badge",
20147
+ "type": "ReactNode",
20148
+ "required": false,
20149
+ "description": "After the name, e.g. the member's role as a neutral `Badge`. Hidden on the icon rail.",
20150
+ "source": "dodo"
20151
+ },
19773
20152
  {
19774
20153
  "name": "logoUrl",
19775
20154
  "type": "string",
@@ -19838,7 +20217,7 @@
19838
20217
  },
19839
20218
  {
19840
20219
  "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).",
20220
+ "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
20221
  "props": [
19843
20222
  {
19844
20223
  "name": "isActive",
@@ -19848,6 +20227,13 @@
19848
20227
  "description": "Marks the item as the current page: Surface/Tertiary with a Border/Secondary ring, a Content/Primary icon\nand `aria-current=\"page\"`.",
19849
20228
  "source": "dodo"
19850
20229
  },
20230
+ {
20231
+ "name": "tag",
20232
+ "type": "ReactNode",
20233
+ "required": false,
20234
+ "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.",
20235
+ "source": "dodo"
20236
+ },
19851
20237
  {
19852
20238
  "name": "tooltip",
19853
20239
  "type": "ReactNode",
@@ -19866,8 +20252,16 @@
19866
20252
  },
19867
20253
  {
19868
20254
  "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.",
20255
+ "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
20256
  "props": [
20257
+ {
20258
+ "name": "active",
20259
+ "type": "boolean",
20260
+ "required": false,
20261
+ "default": "false",
20262
+ "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.",
20263
+ "source": "dodo"
20264
+ },
19871
20265
  {
19872
20266
  "name": "className",
19873
20267
  "type": "string",
@@ -19945,7 +20339,7 @@
19945
20339
  },
19946
20340
  {
19947
20341
  "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.",
20342
+ "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
20343
  "props": [
19950
20344
  {
19951
20345
  "name": "className",
@@ -19962,6 +20356,13 @@
19962
20356
  "description": "Highlights the row, e.g. when the current page is inside the sub-menu.",
19963
20357
  "source": "dodo"
19964
20358
  },
20359
+ {
20360
+ "name": "tag",
20361
+ "type": "ReactNode",
20362
+ "required": false,
20363
+ "description": "A tag before the chevron, such as a violet sm `Badge` \"New\"; a 6px violet dot on the icon rail.",
20364
+ "source": "dodo"
20365
+ },
19965
20366
  {
19966
20367
  "name": "tooltip",
19967
20368
  "type": "ReactNode",
@@ -19998,7 +20399,7 @@
19998
20399
  },
19999
20400
  {
20000
20401
  "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.",
20402
+ "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
20403
  "props": [
20003
20404
  {
20004
20405
  "name": "isActive",
@@ -20008,6 +20409,13 @@
20008
20409
  "description": "Marks the sub-item as the current page: Surface/Tertiary, Content/Primary label and `aria-current=\"page\"`.",
20009
20410
  "source": "dodo"
20010
20411
  },
20412
+ {
20413
+ "name": "tag",
20414
+ "type": "ReactNode",
20415
+ "required": false,
20416
+ "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.",
20417
+ "source": "dodo"
20418
+ },
20011
20419
  {
20012
20420
  "name": "render",
20013
20421
  "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>",
@@ -20926,6 +21334,48 @@
20926
21334
  ],
20927
21335
  "docsUrl": "/components/spinner"
20928
21336
  },
21337
+ {
21338
+ "slug": "navigation-progress",
21339
+ "title": "Navigation progress",
21340
+ "category": "Feedback",
21341
+ "status": "stable",
21342
+ "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.",
21343
+ "importPath": "@dodopayments/ui/navigation-progress",
21344
+ "exports": [
21345
+ "NavigationProgress",
21346
+ "NavigationProgressProps"
21347
+ ],
21348
+ "parts": [
21349
+ {
21350
+ "name": "NavigationProgress",
21351
+ "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.",
21352
+ "props": [
21353
+ {
21354
+ "name": "active",
21355
+ "type": "boolean",
21356
+ "required": true,
21357
+ "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.",
21358
+ "source": "dodo"
21359
+ },
21360
+ {
21361
+ "name": "delay",
21362
+ "type": "number",
21363
+ "required": false,
21364
+ "default": "150",
21365
+ "description": "Milliseconds a navigation must run before the bar shows, so an instant one never flashes.",
21366
+ "source": "dodo"
21367
+ }
21368
+ ]
21369
+ }
21370
+ ],
21371
+ "examples": [
21372
+ {
21373
+ "name": "navigation-progress/basic",
21374
+ "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}"
21375
+ }
21376
+ ],
21377
+ "docsUrl": "/components/navigation-progress"
21378
+ },
20929
21379
  {
20930
21380
  "slug": "text-shimmer",
20931
21381
  "title": "Text Shimmer",
@@ -21880,6 +22330,8 @@
21880
22330
  "TabsContentProps",
21881
22331
  "TabsList",
21882
22332
  "TabsListProps",
22333
+ "TabsPanels",
22334
+ "TabsPanelsProps",
21883
22335
  "TabsProps",
21884
22336
  "TabsTrigger",
21885
22337
  "TabsTriggerProps",
@@ -21973,7 +22425,7 @@
21973
22425
  },
21974
22426
  {
21975
22427
  "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.",
22428
+ "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
22429
  "props": [
21978
22430
  {
21979
22431
  "name": "activateOnFocus",
@@ -22043,6 +22495,19 @@
22043
22495
  }
22044
22496
  ]
22045
22497
  },
22498
+ {
22499
+ "name": "TabsPanels",
22500
+ "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.",
22501
+ "props": [
22502
+ {
22503
+ "name": "className",
22504
+ "type": "string",
22505
+ "required": false,
22506
+ "description": "Additional Tailwind classes, merged last.",
22507
+ "source": "dodo"
22508
+ }
22509
+ ]
22510
+ },
22046
22511
  {
22047
22512
  "name": "TabsTrigger",
22048
22513
  "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 +23654,7 @@
23189
23654
  },
23190
23655
  {
23191
23656
  "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.",
23657
+ "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
23658
  "props": [
23194
23659
  {
23195
23660
  "name": "groups",
@@ -23228,6 +23693,14 @@
23228
23693
  "description": "",
23229
23694
  "source": "dodo"
23230
23695
  },
23696
+ {
23697
+ "name": "loading",
23698
+ "type": "boolean",
23699
+ "required": false,
23700
+ "default": "false",
23701
+ "description": "Results are on their way: a spinner in the search row, and `labels.loading` in place of the empty state.",
23702
+ "source": "dodo"
23703
+ },
23231
23704
  {
23232
23705
  "name": "onOpenChange",
23233
23706
  "type": "((open: boolean) => void)",
@@ -23271,6 +23744,14 @@
23271
23744
  "description": "The key that opens the palette when no field has focus; `false` binds nothing.",
23272
23745
  "source": "dodo"
23273
23746
  },
23747
+ {
23748
+ "name": "shouldFilter",
23749
+ "type": "boolean",
23750
+ "required": false,
23751
+ "default": "true",
23752
+ "description": "`false` shows `groups` as given, in their order, for results the server already matched and ranked to the query.",
23753
+ "source": "dodo"
23754
+ },
23274
23755
  {
23275
23756
  "name": "showFooter",
23276
23757
  "type": "boolean",
@@ -23581,7 +24062,7 @@
23581
24062
  "title": "List item",
23582
24063
  "category": "Data display",
23583
24064
  "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.",
24065
+ "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
24066
  "importPath": "@dodopayments/ui/list-item",
23586
24067
  "exports": [
23587
24068
  "DODO_LIST_ITEM_DEFAULT_VARIANTS",
@@ -23597,13 +24078,13 @@
23597
24078
  "parts": [
23598
24079
  {
23599
24080
  "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.",
24081
+ "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
24082
  "props": [
23602
24083
  {
23603
24084
  "name": "title",
23604
24085
  "type": "ReactNode",
23605
24086
  "required": true,
23606
- "description": "The title, one line with an ellipsis (Labels/Primary). With `layout=\"add\"`, the tile's label.",
24087
+ "description": "The title, one line with an ellipsis (Labels/Primary), or whole with `wrap`. With `layout=\"add\"`, the tile's label.",
23607
24088
  "source": "dodo"
23608
24089
  },
23609
24090
  {
@@ -23617,7 +24098,7 @@
23617
24098
  "name": "description",
23618
24099
  "type": "ReactNode",
23619
24100
  "required": false,
23620
- "description": "One line under the title with an ellipsis (Body/Secondary, Content/Secondary).",
24101
+ "description": "One line under the title with an ellipsis (Body/Secondary, Content/Secondary), or whole with `wrap`.",
23621
24102
  "source": "dodo"
23622
24103
  },
23623
24104
  {
@@ -23683,6 +24164,14 @@
23683
24164
  "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
24165
  "source": "dodo"
23685
24166
  },
24167
+ {
24168
+ "name": "wrap",
24169
+ "type": "boolean",
24170
+ "required": false,
24171
+ "default": "false",
24172
+ "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).",
24173
+ "source": "dodo"
24174
+ },
23686
24175
  {
23687
24176
  "name": "render",
23688
24177
  "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>",
@@ -24071,7 +24560,7 @@
24071
24560
  "title": "Leaderboard",
24072
24561
  "category": "Data display",
24073
24562
  "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.",
24563
+ "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
24564
  "importPath": "@dodopayments/ui/leaderboard",
24076
24565
  "exports": [
24077
24566
  "DODO_LEADERBOARD_PODIUM_CELL_DEFAULT_VARIANTS",
@@ -24094,7 +24583,7 @@
24094
24583
  "parts": [
24095
24584
  {
24096
24585
  "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.",
24586
+ "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
24587
  "props": [
24099
24588
  {
24100
24589
  "name": "items",
@@ -24158,7 +24647,7 @@
24158
24647
  },
24159
24648
  {
24160
24649
  "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.",
24650
+ "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
24651
  "props": []
24163
24652
  },
24164
24653
  {
@@ -24638,6 +25127,71 @@
24638
25127
  ],
24639
25128
  "docsUrl": "/components/sale-share-card"
24640
25129
  },
25130
+ {
25131
+ "slug": "chart-share-card",
25132
+ "title": "Chart share card",
25133
+ "category": "Data display",
25134
+ "status": "stable",
25135
+ "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`.",
25136
+ "importPath": "@dodopayments/ui/chart-share-card",
25137
+ "exports": [
25138
+ "ChartShareBusiness",
25139
+ "ChartShareCard",
25140
+ "ChartShareCardProps"
25141
+ ],
25142
+ "parts": [
25143
+ {
25144
+ "name": "ChartShareCard",
25145
+ "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`.",
25146
+ "props": [
25147
+ {
25148
+ "name": "background",
25149
+ "type": "string",
25150
+ "required": true,
25151
+ "description": "The artwork behind the card, an image URL. Decorative.",
25152
+ "source": "dodo"
25153
+ },
25154
+ {
25155
+ "name": "verified",
25156
+ "type": "ReactNode",
25157
+ "required": true,
25158
+ "description": "The word beside the badge under the card, e.g. \"Verified\".",
25159
+ "source": "dodo"
25160
+ },
25161
+ {
25162
+ "name": "backgroundTone",
25163
+ "type": "\"light\" | \"dark\"",
25164
+ "required": false,
25165
+ "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\"`.",
25166
+ "source": "dodo"
25167
+ },
25168
+ {
25169
+ "name": "business",
25170
+ "type": "ChartShareBusiness",
25171
+ "required": false,
25172
+ "description": "The business chip above the card. Leave it out when the merchant turns off \"Include business & logo\".",
25173
+ "source": "dodo"
25174
+ },
25175
+ {
25176
+ "name": "className",
25177
+ "type": "string",
25178
+ "required": false,
25179
+ "description": "Additional Tailwind classes, merged last.",
25180
+ "source": "dodo"
25181
+ },
25182
+ {
25183
+ "name": "wide",
25184
+ "type": "boolean",
25185
+ "required": false,
25186
+ "description": "860px for a card whose body is a wide pairing (a map beside its rows); 550px otherwise.",
25187
+ "source": "dodo"
25188
+ }
25189
+ ]
25190
+ }
25191
+ ],
25192
+ "examples": [],
25193
+ "docsUrl": "/components/chart-share-card"
25194
+ },
24641
25195
  {
24642
25196
  "slug": "setup-guide",
24643
25197
  "title": "Setup guide",
@@ -26981,7 +27535,7 @@
26981
27535
  "title": "Page header",
26982
27536
  "category": "Navigation",
26983
27537
  "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.",
27538
+ "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
27539
  "importPath": "@dodopayments/ui/page-header",
26986
27540
  "exports": [
26987
27541
  "PageHeader",
@@ -26990,7 +27544,7 @@
26990
27544
  "parts": [
26991
27545
  {
26992
27546
  "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.",
27547
+ "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
27548
  "props": [
26995
27549
  {
26996
27550
  "name": "title",
@@ -27443,7 +27997,7 @@
27443
27997
  "title": "Details Panel",
27444
27998
  "category": "Blocks",
27445
27999
  "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.",
28000
+ "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
28001
  "importPath": "@dodopayments/ui/details-panel",
27448
28002
  "exports": [
27449
28003
  "DetailsPanel",
@@ -27455,7 +28009,7 @@
27455
28009
  "parts": [
27456
28010
  {
27457
28011
  "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.",
28012
+ "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
28013
  "props": [
27460
28014
  {
27461
28015
  "name": "sections",
@@ -27493,12 +28047,27 @@
27493
28047
  "description": "Content of the row below the sections, e.g. an \"Edit billing details\" button.",
27494
28048
  "source": "dodo"
27495
28049
  },
28050
+ {
28051
+ "name": "help",
28052
+ "type": "ReactNode",
28053
+ "required": false,
28054
+ "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`.",
28055
+ "source": "dodo"
28056
+ },
28057
+ {
28058
+ "name": "helpLabel",
28059
+ "type": "string",
28060
+ "required": false,
28061
+ "default": "\"More information\"",
28062
+ "description": "With `help`: accessible name of the info icon button.",
28063
+ "source": "dodo"
28064
+ },
27496
28065
  {
27497
28066
  "name": "layout",
27498
28067
  "type": "DetailsPanelLayout",
27499
28068
  "required": false,
27500
28069
  "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.",
28070
+ "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
28071
  "source": "dodo"
27503
28072
  },
27504
28073
  {
@@ -27936,6 +28505,90 @@
27936
28505
  ],
27937
28506
  "docsUrl": "/blocks/payment-result"
27938
28507
  },
28508
+ {
28509
+ "slug": "celebration-dialog",
28510
+ "title": "Celebration Dialog",
28511
+ "category": "Blocks",
28512
+ "status": "stable",
28513
+ "description": "The dialog that marks a milestone, as the dashboard shows when setup reaches 100% in live mode: a 296px hero of\nmoving green silk with `media` over it, confetti falling across the window behind the card, then the title, the\ndescription and one `action`. No close button: the action, Escape and the scrim all close it. The silk and the\nconfetti stop under `prefers-reduced-motion`. Load it lazily where it rarely opens: it ships a WebGL shader.",
28514
+ "importPath": "@dodopayments/ui/celebration-dialog",
28515
+ "exports": [
28516
+ "CelebrationDialog",
28517
+ "CelebrationDialogProps"
28518
+ ],
28519
+ "parts": [
28520
+ {
28521
+ "name": "CelebrationDialog",
28522
+ "description": "The dialog that marks a milestone, as the dashboard shows when setup reaches 100% in live mode: a 296px hero of\nmoving green silk with `media` over it, confetti falling across the window behind the card, then the title, the\ndescription and one `action`. No close button: the action, Escape and the scrim all close it. The silk and the\nconfetti stop under `prefers-reduced-motion`. Load it lazily where it rarely opens: it ships a WebGL shader.",
28523
+ "props": [
28524
+ {
28525
+ "name": "title",
28526
+ "type": "ReactNode",
28527
+ "required": true,
28528
+ "description": "The heading, e.g. \"You're all set, Ada\". Names the dialog.",
28529
+ "source": "dodo"
28530
+ },
28531
+ {
28532
+ "name": "action",
28533
+ "type": "ReactNode",
28534
+ "required": false,
28535
+ "description": "The one way out, e.g. a `Button size=\"lg\"`. It fills the width.",
28536
+ "source": "dodo"
28537
+ },
28538
+ {
28539
+ "name": "className",
28540
+ "type": "string",
28541
+ "required": false,
28542
+ "description": "Classes for the card.",
28543
+ "source": "dodo"
28544
+ },
28545
+ {
28546
+ "name": "description",
28547
+ "type": "ReactNode",
28548
+ "required": false,
28549
+ "description": "One or two sentences under the title, announced with it.",
28550
+ "source": "dodo"
28551
+ },
28552
+ {
28553
+ "name": "media",
28554
+ "type": "ReactNode",
28555
+ "required": false,
28556
+ "description": "Centred over the hero, e.g. a looping seal animation (a muted `<video>`) or a Featured icon. Decorative.",
28557
+ "source": "dodo"
28558
+ },
28559
+ {
28560
+ "name": "defaultOpen",
28561
+ "type": "boolean",
28562
+ "required": false,
28563
+ "default": "false",
28564
+ "description": "Whether the dialog is initially open.\n\nTo render a controlled dialog, use the `open` prop instead.",
28565
+ "source": "base-ui"
28566
+ },
28567
+ {
28568
+ "name": "onOpenChange",
28569
+ "type": "((open: boolean, eventDetails: DialogRootChangeEventDetails) => void)",
28570
+ "required": false,
28571
+ "description": "Event handler called when the dialog is opened or closed.",
28572
+ "source": "base-ui"
28573
+ },
28574
+ {
28575
+ "name": "open",
28576
+ "type": "boolean",
28577
+ "required": false,
28578
+ "description": "Whether the dialog is currently open.",
28579
+ "source": "base-ui"
28580
+ }
28581
+ ]
28582
+ }
28583
+ ],
28584
+ "examples": [
28585
+ {
28586
+ "name": "celebration-dialog/basic",
28587
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { CelebrationDialog } from \"@dodopayments/ui/celebration-dialog\";\nimport { FeaturedIcon } from \"@dodopayments/ui/featured-icon\";\nimport { CircleCheckIcon } from \"@dodopayments/ui/icons\";\nimport { useState } from \"react\";\n\nexport default function CelebrationDialogBasic() {\n const [open, setOpen] = useState(false);\n\n return (\n <>\n <Button variant=\"secondary\" onClick={() => setOpen(true)}>\n Finish setup\n </Button>\n <CelebrationDialog\n open={open}\n onOpenChange={setOpen}\n title=\"You're all set, Ada!\"\n description=\"You've completed every setup step. You're live and ready to grow.\"\n media={<FeaturedIcon look=\"sphere\" tone=\"success\" icon={<CircleCheckIcon />} />}\n action={\n <Button size=\"lg\" onClick={() => setOpen(false)}>\n Let's get started\n </Button>\n }\n />\n </>\n );\n}"
28588
+ }
28589
+ ],
28590
+ "docsUrl": "/blocks/celebration-dialog"
28591
+ },
27939
28592
  {
27940
28593
  "slug": "subscription-card",
27941
28594
  "title": "Subscription Card",
@@ -28698,7 +29351,14 @@
28698
29351
  "name": "label",
28699
29352
  "type": "ReactNode",
28700
29353
  "required": true,
28701
- "description": "What the number measures, e.g. \"Successful payments\". It sits on the grey strip and truncates.",
29354
+ "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.",
29355
+ "source": "dodo"
29356
+ },
29357
+ {
29358
+ "name": "action",
29359
+ "type": "ReactNode",
29360
+ "required": false,
29361
+ "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
29362
  "source": "dodo"
28703
29363
  },
28704
29364
  {
@@ -28712,14 +29372,14 @@
28712
29372
  "name": "empty",
28713
29373
  "type": "ReactNode",
28714
29374
  "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`.",
29375
+ "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
29376
  "source": "dodo"
28717
29377
  },
28718
29378
  {
28719
29379
  "name": "error",
28720
29380
  "type": "ReactNode",
28721
29381
  "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`.",
29382
+ "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
29383
  "source": "dodo"
28724
29384
  },
28725
29385
  {
@@ -28803,7 +29463,7 @@
28803
29463
  "name": "trend",
28804
29464
  "type": "StatCardTrend",
28805
29465
  "required": false,
28806
- "description": "The change: a success (up) or error (down) chip before the comparison. Show it only with a comparison.",
29466
+ "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
29467
  "source": "dodo"
28808
29468
  },
28809
29469
  {
@@ -28849,7 +29509,7 @@
28849
29509
  },
28850
29510
  {
28851
29511
  "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.",
29512
+ "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
29513
  "props": [
28854
29514
  {
28855
29515
  "name": "columns",
@@ -28907,7 +29567,7 @@
28907
29567
  },
28908
29568
  {
28909
29569
  "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."
29570
+ "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
29571
  }
28912
29572
  ],
28913
29573
  "default": "\"cards\""
@@ -28996,6 +29656,21 @@
28996
29656
  "description": "Row under the settings, e.g. a \"Save changes\" `Button` for a section that holds a form.",
28997
29657
  "source": "dodo"
28998
29658
  },
29659
+ {
29660
+ "name": "help",
29661
+ "type": "ReactNode",
29662
+ "required": false,
29663
+ "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`.",
29664
+ "source": "dodo"
29665
+ },
29666
+ {
29667
+ "name": "helpLabel",
29668
+ "type": "string",
29669
+ "required": false,
29670
+ "default": "\"More information\"",
29671
+ "description": "With `help`: accessible name of the info icon button.",
29672
+ "source": "dodo"
29673
+ },
28999
29674
  {
29000
29675
  "name": "titleAs",
29001
29676
  "type": "\"h2\" | \"h3\" | \"h4\"",
@@ -29109,6 +29784,14 @@
29109
29784
  "description": "Icon in a tile before the title, e.g. a `WalletIcon` from `@dodopayments/ui/icons`.",
29110
29785
  "source": "dodo"
29111
29786
  },
29787
+ {
29788
+ "name": "wrap",
29789
+ "type": "boolean",
29790
+ "required": false,
29791
+ "default": "false",
29792
+ "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).",
29793
+ "source": "dodo"
29794
+ },
29112
29795
  {
29113
29796
  "name": "render",
29114
29797
  "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>",
@@ -29338,7 +30021,7 @@
29338
30021
  },
29339
30022
  {
29340
30023
  "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.",
30024
+ "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
30025
  "props": [
29343
30026
  {
29344
30027
  "name": "title",
@@ -29514,6 +30197,14 @@
29514
30197
  "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
30198
  "source": "dodo"
29516
30199
  },
30200
+ {
30201
+ "name": "autoFocus",
30202
+ "type": "boolean",
30203
+ "required": false,
30204
+ "default": "false",
30205
+ "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.",
30206
+ "source": "dodo"
30207
+ },
29517
30208
  {
29518
30209
  "name": "backLabel",
29519
30210
  "type": "ReactNode",
@@ -29584,6 +30275,14 @@
29584
30275
  "description": "Email address (controlled). It persists across steps and is quoted on the code and sent steps.",
29585
30276
  "source": "dodo"
29586
30277
  },
30278
+ {
30279
+ "name": "emailAutoComplete",
30280
+ "type": "string",
30281
+ "required": false,
30282
+ "default": "\"email\" on the email step, \"username\" on the password step",
30283
+ "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).",
30284
+ "source": "dodo"
30285
+ },
29587
30286
  {
29588
30287
  "name": "emailLabel",
29589
30288
  "type": "ReactNode",
@@ -30190,7 +30889,7 @@
30190
30889
  "title": "Record Header",
30191
30890
  "category": "Blocks",
30192
30891
  "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.",
30892
+ "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
30893
  "importPath": "@dodopayments/ui/record-header",
30195
30894
  "exports": [
30196
30895
  "RecordHeader",
@@ -30201,7 +30900,7 @@
30201
30900
  "parts": [
30202
30901
  {
30203
30902
  "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.",
30903
+ "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
30904
  "props": [
30206
30905
  {
30207
30906
  "name": "title",
@@ -30214,7 +30913,7 @@
30214
30913
  "name": "actions",
30215
30914
  "type": "ReactNode",
30216
30915
  "required": false,
30217
- "description": "Record actions on the trailing side, e.g. \"Invoice\" and \"Refund\" `Button`s.",
30916
+ "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
30917
  "source": "dodo"
30219
30918
  },
30220
30919
  {
@@ -30303,7 +31002,7 @@
30303
31002
  "props": [
30304
31003
  {
30305
31004
  "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\"",
31005
+ "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\" | \"vscode\" | \"windsurf\" | \"slack\" | \"microsoft-teams\" | \"hubspot\" | \"salesforce\" | \"resend\" | \"sendgrid\" | \"loops\" | \"customer-io\" | \"segment\" | \"opentelemetry\" | \"zapier\" | \"windmill\"",
30307
31006
  "required": true,
30308
31007
  "description": "Which brand's mark to draw.",
30309
31008
  "source": "dodo"