@dodopayments/ui 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (718) hide show
  1. package/ai/component-registry.json +1595 -133
  2. package/ai/component-registry.md +6 -1
  3. package/ai/components/activity-timeline.md +1 -1
  4. package/ai/components/alert.md +1 -1
  5. package/ai/components/app-top-bar.md +51 -1
  6. package/ai/components/auth-card.md +2 -0
  7. package/ai/components/badge.md +24 -0
  8. package/ai/components/bar-chart.md +4 -2
  9. package/ai/components/brand-logos.md +1 -1
  10. package/ai/components/button.md +110 -12
  11. package/ai/components/card.md +6 -3
  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 +1 -1
  15. package/ai/components/collapsible.md +3 -3
  16. package/ai/components/color-input.md +1 -1
  17. package/ai/components/command.md +4 -1
  18. package/ai/components/comparison-bars.md +1 -0
  19. package/ai/components/country-select.md +1 -0
  20. package/ai/components/currency-select.md +1 -0
  21. package/ai/components/data-grid.md +94 -3
  22. package/ai/components/date-picker.md +1 -1
  23. package/ai/components/details-panel.md +5 -3
  24. package/ai/components/dialog.md +5 -2
  25. package/ai/components/drawer.md +292 -0
  26. package/ai/components/empty.md +1 -1
  27. package/ai/components/featured-icon.md +1 -0
  28. package/ai/components/field.md +15 -5
  29. package/ai/components/file-upload.md +1 -1
  30. package/ai/components/icon-morph.md +1 -1
  31. package/ai/components/image-crop.md +89 -0
  32. package/ai/components/input-group.md +1 -1
  33. package/ai/components/input.md +72 -6
  34. package/ai/components/invoice-document.md +182 -0
  35. package/ai/components/leaderboard.md +5 -2
  36. package/ai/components/link.md +1 -1
  37. package/ai/components/list-item.md +5 -4
  38. package/ai/components/load-more.md +1 -1
  39. package/ai/components/logo.md +1 -1
  40. package/ai/components/menu.md +10 -9
  41. package/ai/components/milestone.md +1 -1
  42. package/ai/components/navigation-progress.md +55 -0
  43. package/ai/components/new-items-pill.md +1 -1
  44. package/ai/components/page-header.md +4 -4
  45. package/ai/components/payment-logos.md +1 -1
  46. package/ai/components/popover.md +4 -1
  47. package/ai/components/quantity-stepper.md +3 -3
  48. package/ai/components/record-header.md +5 -5
  49. package/ai/components/reorder-list.md +45 -0
  50. package/ai/components/rich-text-editor.md +2 -0
  51. package/ai/components/scaled-frame.md +5 -3
  52. package/ai/components/select.md +33 -3
  53. package/ai/components/settings-section.md +3 -0
  54. package/ai/components/setup-guide.md +1 -1
  55. package/ai/components/sheet.md +10 -10
  56. package/ai/components/sidebar.md +15 -7
  57. package/ai/components/stat-card.md +7 -6
  58. package/ai/components/tabs.md +54 -4
  59. package/ai/components/test-mode-banner.md +4 -1
  60. package/ai/components/timestamp.md +11 -2
  61. package/ai/components/timezone-select.md +1 -0
  62. package/ai/skills/dodo-design/SKILL.md +15 -6
  63. package/dist/components/activity-timeline/activity-timeline.d.ts +1 -1
  64. package/dist/components/activity-timeline/activity-timeline.js +2 -2
  65. package/dist/components/activity-timeline/activity-timeline.js.map +1 -1
  66. package/dist/components/alert/alert.d.ts +2 -1
  67. package/dist/components/alert/alert.d.ts.map +1 -1
  68. package/dist/components/alert/alert.js +1 -1
  69. package/dist/components/alert/alert.js.map +1 -1
  70. package/dist/components/app-top-bar/app-top-bar.d.ts +27 -1
  71. package/dist/components/app-top-bar/app-top-bar.d.ts.map +1 -1
  72. package/dist/components/app-top-bar/app-top-bar.js +37 -11
  73. package/dist/components/app-top-bar/app-top-bar.js.map +1 -1
  74. package/dist/components/app-top-bar/index.d.ts +1 -1
  75. package/dist/components/app-top-bar/index.d.ts.map +1 -1
  76. package/dist/components/app-top-bar/index.js +1 -1
  77. package/dist/components/app-top-bar/index.js.map +1 -1
  78. package/dist/components/auth-card/auth-card.d.ts +13 -1
  79. package/dist/components/auth-card/auth-card.d.ts.map +1 -1
  80. package/dist/components/auth-card/auth-card.js +5 -5
  81. package/dist/components/auth-card/auth-card.js.map +1 -1
  82. package/dist/components/badge/badge-status.d.ts +3 -3
  83. package/dist/components/badge/badge-status.js +3 -3
  84. package/dist/components/badge/badge-status.js.map +1 -1
  85. package/dist/components/badge/badge.d.ts +12 -0
  86. package/dist/components/badge/badge.d.ts.map +1 -1
  87. package/dist/components/badge/badge.js +23 -4
  88. package/dist/components/badge/badge.js.map +1 -1
  89. package/dist/components/bar-chart/bar-chart.d.ts +2 -1
  90. package/dist/components/bar-chart/bar-chart.d.ts.map +1 -1
  91. package/dist/components/bar-chart/bar-chart.js +2 -1
  92. package/dist/components/bar-chart/bar-chart.js.map +1 -1
  93. package/dist/components/brand-logos/brand-artwork.d.ts +116 -1
  94. package/dist/components/brand-logos/brand-artwork.d.ts.map +1 -1
  95. package/dist/components/brand-logos/brand-artwork.js +116 -1
  96. package/dist/components/brand-logos/brand-artwork.js.map +1 -1
  97. package/dist/components/brand-logos/brand-logos.d.ts +5 -2
  98. package/dist/components/brand-logos/brand-logos.d.ts.map +1 -1
  99. package/dist/components/brand-logos/brand-logos.js +52 -2
  100. package/dist/components/brand-logos/brand-logos.js.map +1 -1
  101. package/dist/components/button/button-narrow-label.d.ts +11 -0
  102. package/dist/components/button/button-narrow-label.d.ts.map +1 -0
  103. package/dist/components/button/button-narrow-label.js +22 -0
  104. package/dist/components/button/button-narrow-label.js.map +1 -0
  105. package/dist/components/button/button.d.ts +41 -6
  106. package/dist/components/button/button.d.ts.map +1 -1
  107. package/dist/components/button/button.js +79 -14
  108. package/dist/components/button/button.js.map +1 -1
  109. package/dist/components/button/index.d.ts +1 -1
  110. package/dist/components/button/index.d.ts.map +1 -1
  111. package/dist/components/button/index.js +1 -1
  112. package/dist/components/button/index.js.map +1 -1
  113. package/dist/components/card/card-notice.d.ts.map +1 -1
  114. package/dist/components/card/card-notice.js +1 -1
  115. package/dist/components/card/card-notice.js.map +1 -1
  116. package/dist/components/card/card.d.ts +16 -5
  117. package/dist/components/card/card.d.ts.map +1 -1
  118. package/dist/components/card/card.js +13 -4
  119. package/dist/components/card/card.js.map +1 -1
  120. package/dist/components/chart-share-card/chart-share-card.d.ts +31 -0
  121. package/dist/components/chart-share-card/chart-share-card.d.ts.map +1 -0
  122. package/dist/components/chart-share-card/chart-share-card.js +15 -0
  123. package/dist/components/chart-share-card/chart-share-card.js.map +1 -0
  124. package/dist/components/chart-share-card/index.d.ts +2 -0
  125. package/dist/components/chart-share-card/index.d.ts.map +1 -0
  126. package/dist/components/chart-share-card/index.js +2 -0
  127. package/dist/components/chart-share-card/index.js.map +1 -0
  128. package/dist/components/code-block/code-block.d.ts +1 -1
  129. package/dist/components/code-block/code-block.d.ts.map +1 -1
  130. package/dist/components/code-block/code-block.js +23 -4
  131. package/dist/components/code-block/code-block.js.map +1 -1
  132. package/dist/components/code-block/highlight-shell.d.ts +9 -0
  133. package/dist/components/code-block/highlight-shell.d.ts.map +1 -0
  134. package/dist/components/code-block/highlight-shell.js +53 -0
  135. package/dist/components/code-block/highlight-shell.js.map +1 -0
  136. package/dist/components/collapsible/collapsible.d.ts +2 -2
  137. package/dist/components/collapsible/collapsible.js +4 -4
  138. package/dist/components/collapsible/collapsible.js.map +1 -1
  139. package/dist/components/command/command-palette.d.ts +15 -2
  140. package/dist/components/command/command-palette.d.ts.map +1 -1
  141. package/dist/components/command/command-palette.js +8 -5
  142. package/dist/components/command/command-palette.js.map +1 -1
  143. package/dist/components/comparison-bars/comparison-bars.d.ts +13 -2
  144. package/dist/components/comparison-bars/comparison-bars.d.ts.map +1 -1
  145. package/dist/components/comparison-bars/comparison-bars.js +3 -3
  146. package/dist/components/comparison-bars/comparison-bars.js.map +1 -1
  147. package/dist/components/country-select/country-select.d.ts +6 -1
  148. package/dist/components/country-select/country-select.d.ts.map +1 -1
  149. package/dist/components/country-select/country-select.js +2 -2
  150. package/dist/components/country-select/country-select.js.map +1 -1
  151. package/dist/components/currency-select/currency-select.d.ts +6 -1
  152. package/dist/components/currency-select/currency-select.d.ts.map +1 -1
  153. package/dist/components/currency-select/currency-select.js +2 -2
  154. package/dist/components/currency-select/currency-select.js.map +1 -1
  155. package/dist/components/data-grid/bulk-actions.js +2 -2
  156. package/dist/components/data-grid/bulk-actions.js.map +1 -1
  157. package/dist/components/data-grid/data-grid.d.ts +32 -2
  158. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  159. package/dist/components/data-grid/data-grid.js +193 -13
  160. package/dist/components/data-grid/data-grid.js.map +1 -1
  161. package/dist/components/date-picker/date-picker.d.ts +5 -0
  162. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  163. package/dist/components/date-picker/date-picker.js +4 -4
  164. package/dist/components/date-picker/date-picker.js.map +1 -1
  165. package/dist/components/details-panel/details-panel.d.ts +11 -4
  166. package/dist/components/details-panel/details-panel.d.ts.map +1 -1
  167. package/dist/components/details-panel/details-panel.js +13 -12
  168. package/dist/components/details-panel/details-panel.js.map +1 -1
  169. package/dist/components/dialog/dialog.d.ts +12 -4
  170. package/dist/components/dialog/dialog.d.ts.map +1 -1
  171. package/dist/components/dialog/dialog.js +46 -7
  172. package/dist/components/dialog/dialog.js.map +1 -1
  173. package/dist/components/drawer/drawer.d.ts +73 -0
  174. package/dist/components/drawer/drawer.d.ts.map +1 -0
  175. package/dist/components/drawer/drawer.js +56 -0
  176. package/dist/components/drawer/drawer.js.map +1 -0
  177. package/dist/components/drawer/index.d.ts +2 -0
  178. package/dist/components/drawer/index.d.ts.map +1 -0
  179. package/dist/components/drawer/index.js +2 -0
  180. package/dist/components/drawer/index.js.map +1 -0
  181. package/dist/components/empty/empty.d.ts +3 -2
  182. package/dist/components/empty/empty.d.ts.map +1 -1
  183. package/dist/components/empty/empty.js.map +1 -1
  184. package/dist/components/featured-icon/featured-icon.d.ts +103 -1
  185. package/dist/components/featured-icon/featured-icon.d.ts.map +1 -1
  186. package/dist/components/featured-icon/featured-icon.js +61 -3
  187. package/dist/components/featured-icon/featured-icon.js.map +1 -1
  188. package/dist/components/featured-icon/index.d.ts +1 -1
  189. package/dist/components/featured-icon/index.d.ts.map +1 -1
  190. package/dist/components/featured-icon/index.js +1 -1
  191. package/dist/components/featured-icon/index.js.map +1 -1
  192. package/dist/components/featured-icon/sphere.d.ts +7 -0
  193. package/dist/components/featured-icon/sphere.d.ts.map +1 -0
  194. package/dist/components/featured-icon/sphere.js +29 -0
  195. package/dist/components/featured-icon/sphere.js.map +1 -0
  196. package/dist/components/field/field.d.ts +8 -6
  197. package/dist/components/field/field.d.ts.map +1 -1
  198. package/dist/components/field/field.js +15 -7
  199. package/dist/components/field/field.js.map +1 -1
  200. package/dist/components/field/index.d.ts +1 -0
  201. package/dist/components/field/index.d.ts.map +1 -1
  202. package/dist/components/field/index.js +1 -0
  203. package/dist/components/field/index.js.map +1 -1
  204. package/dist/components/field/label.d.ts +2 -1
  205. package/dist/components/field/label.d.ts.map +1 -1
  206. package/dist/components/field/label.js +2 -1
  207. package/dist/components/field/label.js.map +1 -1
  208. package/dist/components/file-upload/file-upload.d.ts +1 -1
  209. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  210. package/dist/components/file-upload/file-upload.js +1 -1
  211. package/dist/components/file-upload/file-upload.js.map +1 -1
  212. package/dist/components/icon-morph/icon-morph.d.ts +1 -1
  213. package/dist/components/icon-morph/icon-morph.d.ts.map +1 -1
  214. package/dist/components/icon-morph/icon-morph.js.map +1 -1
  215. package/dist/components/image-crop/crop-math.d.ts +28 -0
  216. package/dist/components/image-crop/crop-math.d.ts.map +1 -0
  217. package/dist/components/image-crop/crop-math.js +53 -0
  218. package/dist/components/image-crop/crop-math.js.map +1 -0
  219. package/dist/components/image-crop/image-crop.d.ts +31 -0
  220. package/dist/components/image-crop/image-crop.d.ts.map +1 -0
  221. package/dist/components/image-crop/image-crop.js +165 -0
  222. package/dist/components/image-crop/image-crop.js.map +1 -0
  223. package/dist/components/image-crop/index.d.ts +2 -0
  224. package/dist/components/image-crop/index.d.ts.map +1 -0
  225. package/dist/components/image-crop/index.js +2 -0
  226. package/dist/components/image-crop/index.js.map +1 -0
  227. package/dist/components/input/input-suggestions.d.ts +1 -1
  228. package/dist/components/input/input-suggestions.d.ts.map +1 -1
  229. package/dist/components/input/input-suggestions.js +21 -4
  230. package/dist/components/input/input-suggestions.js.map +1 -1
  231. package/dist/components/input/input.d.ts +27 -8
  232. package/dist/components/input/input.d.ts.map +1 -1
  233. package/dist/components/input/input.js +28 -9
  234. package/dist/components/input/input.js.map +1 -1
  235. package/dist/components/input-group/input-group.d.ts +2 -2
  236. package/dist/components/input-group/input-group.d.ts.map +1 -1
  237. package/dist/components/input-group/input-group.js +1 -1
  238. package/dist/components/input-group/input-group.js.map +1 -1
  239. package/dist/components/invoice-document/index.d.ts +2 -0
  240. package/dist/components/invoice-document/index.d.ts.map +1 -0
  241. package/dist/components/invoice-document/index.js +2 -0
  242. package/dist/components/invoice-document/index.js.map +1 -0
  243. package/dist/components/invoice-document/invoice-document.d.ts +180 -0
  244. package/dist/components/invoice-document/invoice-document.d.ts.map +1 -0
  245. package/dist/components/invoice-document/invoice-document.js +58 -0
  246. package/dist/components/invoice-document/invoice-document.js.map +1 -0
  247. package/dist/components/leaderboard/leaderboard.d.ts +3 -1
  248. package/dist/components/leaderboard/leaderboard.d.ts.map +1 -1
  249. package/dist/components/leaderboard/leaderboard.js +7 -5
  250. package/dist/components/leaderboard/leaderboard.js.map +1 -1
  251. package/dist/components/link/link.d.ts +4 -3
  252. package/dist/components/link/link.d.ts.map +1 -1
  253. package/dist/components/link/link.js +21 -2
  254. package/dist/components/link/link.js.map +1 -1
  255. package/dist/components/list-item/list-item.d.ts +12 -6
  256. package/dist/components/list-item/list-item.d.ts.map +1 -1
  257. package/dist/components/list-item/list-item.js +5 -5
  258. package/dist/components/list-item/list-item.js.map +1 -1
  259. package/dist/components/list-toolbar/list-toolbar-date-range.js +1 -1
  260. package/dist/components/list-toolbar/list-toolbar-date-range.js.map +1 -1
  261. package/dist/components/list-toolbar/list-toolbar.js +1 -1
  262. package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
  263. package/dist/components/logo/logo.d.ts +5 -1
  264. package/dist/components/logo/logo.d.ts.map +1 -1
  265. package/dist/components/logo/logo.js +7 -3
  266. package/dist/components/logo/logo.js.map +1 -1
  267. package/dist/components/menu/menu.d.ts +10 -9
  268. package/dist/components/menu/menu.d.ts.map +1 -1
  269. package/dist/components/menu/menu.js +5 -4
  270. package/dist/components/menu/menu.js.map +1 -1
  271. package/dist/components/milestone/milestone.js +1 -1
  272. package/dist/components/milestone/milestone.js.map +1 -1
  273. package/dist/components/money/money.d.ts.map +1 -1
  274. package/dist/components/money/money.js +3 -3
  275. package/dist/components/money/money.js.map +1 -1
  276. package/dist/components/navigation-progress/index.d.ts +2 -0
  277. package/dist/components/navigation-progress/index.d.ts.map +1 -0
  278. package/dist/components/navigation-progress/index.js +2 -0
  279. package/dist/components/navigation-progress/index.js.map +1 -0
  280. package/dist/components/navigation-progress/navigation-progress.d.ts +23 -0
  281. package/dist/components/navigation-progress/navigation-progress.d.ts.map +1 -0
  282. package/dist/components/navigation-progress/navigation-progress.js +53 -0
  283. package/dist/components/navigation-progress/navigation-progress.js.map +1 -0
  284. package/dist/components/page-header/page-header.d.ts +3 -3
  285. package/dist/components/page-header/page-header.d.ts.map +1 -1
  286. package/dist/components/page-header/page-header.js +9 -13
  287. package/dist/components/page-header/page-header.js.map +1 -1
  288. package/dist/components/pagination/pagination.d.ts.map +1 -1
  289. package/dist/components/pagination/pagination.js +4 -2
  290. package/dist/components/pagination/pagination.js.map +1 -1
  291. package/dist/components/payment-logos/artwork/link.d.ts +2 -0
  292. package/dist/components/payment-logos/artwork/link.d.ts.map +1 -0
  293. package/dist/components/payment-logos/artwork/link.js +5 -0
  294. package/dist/components/payment-logos/artwork/link.js.map +1 -0
  295. package/dist/components/payment-logos/payment-logos.d.ts +1 -1
  296. package/dist/components/payment-logos/payment-logos.d.ts.map +1 -1
  297. package/dist/components/payment-logos/payment-logos.js +3 -0
  298. package/dist/components/payment-logos/payment-logos.js.map +1 -1
  299. package/dist/components/popover/popover.d.ts +12 -1
  300. package/dist/components/popover/popover.d.ts.map +1 -1
  301. package/dist/components/popover/popover.js +4 -2
  302. package/dist/components/popover/popover.js.map +1 -1
  303. package/dist/components/quantity-stepper/quantity-stepper.d.ts +3 -3
  304. package/dist/components/quantity-stepper/quantity-stepper.js +3 -3
  305. package/dist/components/quantity-stepper/quantity-stepper.js.map +1 -1
  306. package/dist/components/radio-group/radio-group.d.ts.map +1 -1
  307. package/dist/components/radio-group/radio-group.js +7 -5
  308. package/dist/components/radio-group/radio-group.js.map +1 -1
  309. package/dist/components/record-header/record-header.d.ts +7 -3
  310. package/dist/components/record-header/record-header.d.ts.map +1 -1
  311. package/dist/components/record-header/record-header.js +11 -3
  312. package/dist/components/record-header/record-header.js.map +1 -1
  313. package/dist/components/reorder-list/reorder-list.d.ts +11 -2
  314. package/dist/components/reorder-list/reorder-list.d.ts.map +1 -1
  315. package/dist/components/reorder-list/reorder-list.js +39 -16
  316. package/dist/components/reorder-list/reorder-list.js.map +1 -1
  317. package/dist/components/rich-text-editor/rich-text-editor.d.ts +13 -1
  318. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  319. package/dist/components/rich-text-editor/rich-text-editor.js +17 -9
  320. package/dist/components/rich-text-editor/rich-text-editor.js.map +1 -1
  321. package/dist/components/rich-text-editor/rich-text-extensions.d.ts +5 -2
  322. package/dist/components/rich-text-editor/rich-text-extensions.d.ts.map +1 -1
  323. package/dist/components/rich-text-editor/rich-text-extensions.js +43 -5
  324. package/dist/components/rich-text-editor/rich-text-extensions.js.map +1 -1
  325. package/dist/components/rich-text-editor/rich-text-markdown.d.ts +9 -3
  326. package/dist/components/rich-text-editor/rich-text-markdown.d.ts.map +1 -1
  327. package/dist/components/rich-text-editor/rich-text-markdown.js +134 -44
  328. package/dist/components/rich-text-editor/rich-text-markdown.js.map +1 -1
  329. package/dist/components/scaled-frame/scaled-frame.d.ts +8 -3
  330. package/dist/components/scaled-frame/scaled-frame.d.ts.map +1 -1
  331. package/dist/components/scaled-frame/scaled-frame.js +27 -2
  332. package/dist/components/scaled-frame/scaled-frame.js.map +1 -1
  333. package/dist/components/segmented-control/segmented-control.d.ts +2 -2
  334. package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
  335. package/dist/components/segmented-control/segmented-control.js +10 -2
  336. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  337. package/dist/components/select/select.d.ts +25 -4
  338. package/dist/components/select/select.d.ts.map +1 -1
  339. package/dist/components/select/select.js +34 -14
  340. package/dist/components/select/select.js.map +1 -1
  341. package/dist/components/settings-section/settings-section.d.ts +8 -1
  342. package/dist/components/settings-section/settings-section.d.ts.map +1 -1
  343. package/dist/components/settings-section/settings-section.js +8 -8
  344. package/dist/components/settings-section/settings-section.js.map +1 -1
  345. package/dist/components/setup-guide/setup-guide.d.ts +2 -2
  346. package/dist/components/setup-guide/setup-guide.js +2 -2
  347. package/dist/components/setup-guide/setup-guide.js.map +1 -1
  348. package/dist/components/sheet/sheet.d.ts +16 -5
  349. package/dist/components/sheet/sheet.d.ts.map +1 -1
  350. package/dist/components/sheet/sheet.js +9 -5
  351. package/dist/components/sheet/sheet.js.map +1 -1
  352. package/dist/components/sidebar/sidebar.d.ts +32 -12
  353. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  354. package/dist/components/sidebar/sidebar.js +38 -19
  355. package/dist/components/sidebar/sidebar.js.map +1 -1
  356. package/dist/components/skeleton/page-skeleton.js +1 -1
  357. package/dist/components/skeleton/page-skeleton.js.map +1 -1
  358. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  359. package/dist/components/skeleton/skeleton.js +7 -7
  360. package/dist/components/skeleton/skeleton.js.map +1 -1
  361. package/dist/components/stat-card/stat-card.d.ts +24 -10
  362. package/dist/components/stat-card/stat-card.d.ts.map +1 -1
  363. package/dist/components/stat-card/stat-card.js +27 -18
  364. package/dist/components/stat-card/stat-card.js.map +1 -1
  365. package/dist/components/subscription-card/subscription-card.js +1 -1
  366. package/dist/components/subscription-card/subscription-card.js.map +1 -1
  367. package/dist/components/tabs/index.d.ts +1 -1
  368. package/dist/components/tabs/index.d.ts.map +1 -1
  369. package/dist/components/tabs/index.js +1 -1
  370. package/dist/components/tabs/index.js.map +1 -1
  371. package/dist/components/tabs/tabs.d.ts +47 -6
  372. package/dist/components/tabs/tabs.d.ts.map +1 -1
  373. package/dist/components/tabs/tabs.js +108 -9
  374. package/dist/components/tabs/tabs.js.map +1 -1
  375. package/dist/components/test-mode-banner/test-mode-banner.d.ts.map +1 -1
  376. package/dist/components/test-mode-banner/test-mode-banner.js +3 -2
  377. package/dist/components/test-mode-banner/test-mode-banner.js.map +1 -1
  378. package/dist/components/timestamp/index.d.ts +1 -1
  379. package/dist/components/timestamp/index.d.ts.map +1 -1
  380. package/dist/components/timestamp/index.js +1 -1
  381. package/dist/components/timestamp/index.js.map +1 -1
  382. package/dist/components/timestamp/timestamp.d.ts +12 -2
  383. package/dist/components/timestamp/timestamp.d.ts.map +1 -1
  384. package/dist/components/timestamp/timestamp.js +11 -1
  385. package/dist/components/timestamp/timestamp.js.map +1 -1
  386. package/dist/components/timezone-select/timezone-select.d.ts +6 -1
  387. package/dist/components/timezone-select/timezone-select.d.ts.map +1 -1
  388. package/dist/components/timezone-select/timezone-select.js +2 -2
  389. package/dist/components/timezone-select/timezone-select.js.map +1 -1
  390. package/dist/components/tooltip/tooltip.js +1 -1
  391. package/dist/components/tooltip/tooltip.js.map +1 -1
  392. package/dist/icons/flags/basque.d.ts.map +1 -0
  393. package/dist/icons/flags/basque.js.map +1 -0
  394. package/dist/icons/flags/canary-islands.d.ts.map +1 -0
  395. package/dist/icons/flags/canary-islands.js.map +1 -0
  396. package/dist/icons/flags/england.d.ts.map +1 -0
  397. package/dist/icons/flags/england.js.map +1 -0
  398. package/dist/icons/flags/hawaii.d.ts.map +1 -0
  399. package/dist/icons/flags/hawaii.js.map +1 -0
  400. package/dist/icons/flags/kurdistan.d.ts.map +1 -0
  401. package/dist/icons/flags/kurdistan.js.map +1 -0
  402. package/dist/icons/flags/netherlands-antilles.d.ts.map +1 -0
  403. package/dist/icons/flags/netherlands-antilles.js.map +1 -0
  404. package/dist/icons/flags/northen-ireland.d.ts.map +1 -0
  405. package/dist/icons/flags/northen-ireland.js.map +1 -0
  406. package/dist/icons/flags/scotland.d.ts.map +1 -0
  407. package/dist/icons/flags/scotland.js.map +1 -0
  408. package/dist/icons/flags/wales.d.ts.map +1 -0
  409. package/dist/icons/flags/wales.js.map +1 -0
  410. package/dist/icons/index.d.ts +21 -0
  411. package/dist/icons/index.d.ts.map +1 -0
  412. package/dist/icons/index.js +21 -0
  413. package/dist/icons/index.js.map +1 -0
  414. package/dist/icons/ui/ai-agents.d.ts +3 -0
  415. package/dist/icons/ui/ai-agents.d.ts.map +1 -0
  416. package/dist/icons/ui/ai-agents.js +5 -0
  417. package/dist/icons/ui/ai-agents.js.map +1 -0
  418. package/dist/icons/ui/archive.d.ts.map +1 -0
  419. package/dist/icons/ui/archive.js.map +1 -0
  420. package/dist/icons/ui/arrow-door-out-3.d.ts.map +1 -0
  421. package/dist/icons/ui/arrow-door-out-3.js.map +1 -0
  422. package/dist/icons/ui/arrow-door-out.d.ts.map +1 -0
  423. package/dist/icons/ui/arrow-door-out.js.map +1 -0
  424. package/dist/icons/ui/arrow-left.d.ts.map +1 -0
  425. package/dist/icons/ui/arrow-left.js.map +1 -0
  426. package/dist/icons/ui/arrow-turn-right.d.ts +3 -0
  427. package/dist/icons/ui/arrow-turn-right.d.ts.map +1 -0
  428. package/dist/icons/ui/arrow-turn-right.js +5 -0
  429. package/dist/icons/ui/arrow-turn-right.js.map +1 -0
  430. package/dist/icons/ui/arrows-transaction.d.ts.map +1 -0
  431. package/dist/icons/ui/arrows-transaction.js.map +1 -0
  432. package/dist/icons/ui/bell-outline-duo.d.ts.map +1 -0
  433. package/dist/icons/ui/bell-outline-duo.js.map +1 -0
  434. package/dist/icons/ui/bolt.d.ts.map +1 -0
  435. package/dist/icons/ui/bolt.js.map +1 -0
  436. package/dist/icons/ui/book-open.d.ts +3 -0
  437. package/dist/icons/ui/book-open.d.ts.map +1 -0
  438. package/dist/icons/ui/book-open.js +5 -0
  439. package/dist/icons/ui/book-open.js.map +1 -0
  440. package/dist/icons/ui/box-glyph.d.ts +3 -0
  441. package/dist/icons/ui/box-glyph.d.ts.map +1 -0
  442. package/dist/icons/ui/box-glyph.js +5 -0
  443. package/dist/icons/ui/box-glyph.js.map +1 -0
  444. package/dist/icons/ui/box-plus.d.ts.map +1 -0
  445. package/dist/icons/ui/box-plus.js.map +1 -0
  446. package/dist/icons/ui/chart-pie.d.ts.map +1 -0
  447. package/dist/icons/ui/chart-pie.js.map +1 -0
  448. package/dist/icons/ui/chat-bubble-writing.d.ts +3 -0
  449. package/dist/icons/ui/chat-bubble-writing.d.ts.map +1 -0
  450. package/dist/icons/ui/chat-bubble-writing.js +5 -0
  451. package/dist/icons/ui/chat-bubble-writing.js.map +1 -0
  452. package/dist/icons/ui/check-glyph-12.d.ts.map +1 -0
  453. package/dist/icons/ui/check-glyph-12.js.map +1 -0
  454. package/dist/icons/ui/circle-check-glyph.d.ts +3 -0
  455. package/dist/icons/ui/circle-check-glyph.d.ts.map +1 -0
  456. package/dist/icons/ui/circle-check-glyph.js +5 -0
  457. package/dist/icons/ui/circle-check-glyph.js.map +1 -0
  458. package/dist/icons/ui/circle-user-check.d.ts.map +1 -0
  459. package/dist/icons/ui/circle-user-check.js.map +1 -0
  460. package/dist/icons/ui/coins.d.ts.map +1 -0
  461. package/dist/icons/ui/coins.js.map +1 -0
  462. package/dist/icons/ui/crop.d.ts +3 -0
  463. package/dist/icons/ui/crop.d.ts.map +1 -0
  464. package/dist/icons/ui/crop.js +5 -0
  465. package/dist/icons/ui/crop.js.map +1 -0
  466. package/dist/icons/ui/dots-vertical.d.ts.map +1 -0
  467. package/dist/icons/ui/dots-vertical.js.map +1 -0
  468. package/dist/icons/ui/fingerprint.d.ts.map +1 -0
  469. package/dist/icons/ui/fingerprint.js.map +1 -0
  470. package/dist/icons/ui/flask.d.ts.map +1 -0
  471. package/dist/icons/ui/flask.js.map +1 -0
  472. package/dist/icons/ui/gear.d.ts.map +1 -0
  473. package/dist/icons/ui/gear.js.map +1 -0
  474. package/dist/icons/ui/greek-temple-glyph.d.ts +3 -0
  475. package/dist/icons/ui/greek-temple-glyph.d.ts.map +1 -0
  476. package/dist/icons/ui/greek-temple-glyph.js +5 -0
  477. package/dist/icons/ui/greek-temple-glyph.js.map +1 -0
  478. package/dist/icons/ui/greek-temple.d.ts.map +1 -0
  479. package/dist/icons/ui/greek-temple.js.map +1 -0
  480. package/dist/icons/ui/grid.d.ts +3 -0
  481. package/dist/icons/ui/grid.d.ts.map +1 -0
  482. package/dist/icons/ui/grid.js +5 -0
  483. package/dist/icons/ui/grid.js.map +1 -0
  484. package/dist/icons/ui/heart-glyph.d.ts.map +1 -0
  485. package/dist/icons/ui/heart-glyph.js.map +1 -0
  486. package/dist/icons/ui/heart.d.ts.map +1 -0
  487. package/dist/icons/ui/heart.js.map +1 -0
  488. package/dist/icons/ui/hourglass-glyph.d.ts +3 -0
  489. package/dist/icons/ui/hourglass-glyph.d.ts.map +1 -0
  490. package/dist/icons/ui/hourglass-glyph.js +5 -0
  491. package/dist/icons/ui/hourglass-glyph.js.map +1 -0
  492. package/dist/icons/ui/house.d.ts.map +1 -0
  493. package/dist/icons/ui/house.js.map +1 -0
  494. package/dist/icons/ui/key.d.ts.map +1 -0
  495. package/dist/icons/ui/key.js.map +1 -0
  496. package/dist/icons/ui/lightbulb.d.ts +3 -0
  497. package/dist/icons/ui/lightbulb.d.ts.map +1 -0
  498. package/dist/icons/ui/lightbulb.js +5 -0
  499. package/dist/icons/ui/lightbulb.js.map +1 -0
  500. package/dist/icons/ui/link.d.ts +3 -0
  501. package/dist/icons/ui/link.d.ts.map +1 -0
  502. package/dist/icons/ui/link.js +5 -0
  503. package/dist/icons/ui/link.js.map +1 -0
  504. package/dist/icons/ui/media-pause.d.ts +3 -0
  505. package/dist/icons/ui/media-pause.d.ts.map +1 -0
  506. package/dist/icons/ui/media-pause.js +5 -0
  507. package/dist/icons/ui/media-pause.js.map +1 -0
  508. package/dist/icons/ui/media-play.d.ts +3 -0
  509. package/dist/icons/ui/media-play.d.ts.map +1 -0
  510. package/dist/icons/ui/media-play.js +5 -0
  511. package/dist/icons/ui/media-play.js.map +1 -0
  512. package/dist/icons/ui/money-bill.d.ts.map +1 -0
  513. package/dist/icons/ui/money-bill.js.map +1 -0
  514. package/dist/icons/ui/money-bills.d.ts.map +1 -0
  515. package/dist/icons/ui/money-bills.js.map +1 -0
  516. package/dist/icons/ui/money-refund.d.ts.map +1 -0
  517. package/dist/icons/ui/money-refund.js.map +1 -0
  518. package/dist/icons/ui/monitor.d.ts.map +1 -0
  519. package/dist/icons/ui/monitor.js.map +1 -0
  520. package/dist/icons/ui/moon.d.ts.map +1 -0
  521. package/dist/icons/ui/moon.js.map +1 -0
  522. package/dist/icons/ui/paper-plane.d.ts +3 -0
  523. package/dist/icons/ui/paper-plane.d.ts.map +1 -0
  524. package/dist/icons/ui/paper-plane.js +5 -0
  525. package/dist/icons/ui/paper-plane.js.map +1 -0
  526. package/dist/icons/ui/pencil.d.ts.map +1 -0
  527. package/dist/icons/ui/pencil.js.map +1 -0
  528. package/dist/icons/ui/print.d.ts +3 -0
  529. package/dist/icons/ui/print.d.ts.map +1 -0
  530. package/dist/icons/ui/print.js +5 -0
  531. package/dist/icons/ui/print.js.map +1 -0
  532. package/dist/icons/ui/refresh-clockwise.d.ts.map +1 -0
  533. package/dist/icons/ui/refresh-clockwise.js.map +1 -0
  534. package/dist/icons/ui/report.d.ts.map +1 -0
  535. package/dist/icons/ui/report.js.map +1 -0
  536. package/dist/icons/ui/shield-check.d.ts.map +1 -0
  537. package/dist/icons/ui/shield-check.js.map +1 -0
  538. package/dist/icons/ui/shop-glyph.d.ts +3 -0
  539. package/dist/icons/ui/shop-glyph.d.ts.map +1 -0
  540. package/dist/icons/ui/shop-glyph.js +5 -0
  541. package/dist/icons/ui/shop-glyph.js.map +1 -0
  542. package/dist/icons/ui/sliders.d.ts.map +1 -0
  543. package/dist/icons/ui/sliders.js.map +1 -0
  544. package/dist/icons/ui/star-glyph-duo.d.ts.map +1 -0
  545. package/dist/icons/ui/star-glyph-duo.js.map +1 -0
  546. package/dist/icons/ui/star-glyph.d.ts.map +1 -0
  547. package/dist/icons/ui/star-glyph.js.map +1 -0
  548. package/dist/icons/ui/star-outline-duo.d.ts.map +1 -0
  549. package/dist/icons/ui/star-outline-duo.js.map +1 -0
  550. package/dist/icons/ui/star.d.ts.map +1 -0
  551. package/dist/icons/ui/star.js.map +1 -0
  552. package/dist/icons/ui/sun.d.ts.map +1 -0
  553. package/dist/icons/ui/sun.js.map +1 -0
  554. package/dist/icons/ui/terminal.d.ts.map +1 -0
  555. package/dist/icons/ui/terminal.js.map +1 -0
  556. package/dist/icons/ui/text-align-center.d.ts.map +1 -0
  557. package/dist/icons/ui/text-align-center.js.map +1 -0
  558. package/dist/icons/ui/text-align-left.d.ts.map +1 -0
  559. package/dist/icons/ui/text-align-left.js.map +1 -0
  560. package/dist/icons/ui/text-align-right.d.ts.map +1 -0
  561. package/dist/icons/ui/text-align-right.js.map +1 -0
  562. package/dist/icons/ui/ticket.d.ts.map +1 -0
  563. package/dist/icons/ui/ticket.js.map +1 -0
  564. package/dist/icons/ui/trash-2.d.ts.map +1 -0
  565. package/dist/icons/ui/trash-2.js.map +1 -0
  566. package/dist/icons/ui/triangle-warning-glyph.d.ts +3 -0
  567. package/dist/icons/ui/triangle-warning-glyph.d.ts.map +1 -0
  568. package/dist/icons/ui/triangle-warning-glyph.js +5 -0
  569. package/dist/icons/ui/triangle-warning-glyph.js.map +1 -0
  570. package/dist/icons/ui/user-glyph.d.ts +3 -0
  571. package/dist/icons/ui/user-glyph.d.ts.map +1 -0
  572. package/dist/icons/ui/user-glyph.js +5 -0
  573. package/dist/icons/ui/user-glyph.js.map +1 -0
  574. package/dist/icons/ui/user-plus.d.ts +3 -0
  575. package/dist/icons/ui/user-plus.d.ts.map +1 -0
  576. package/dist/icons/ui/user-plus.js +5 -0
  577. package/dist/icons/ui/user-plus.js.map +1 -0
  578. package/dist/icons/ui/users.d.ts.map +1 -0
  579. package/dist/icons/ui/users.js.map +1 -0
  580. package/dist/icons/ui/wallet-outline-duo.d.ts.map +1 -0
  581. package/dist/icons/ui/wallet-outline-duo.js.map +1 -0
  582. package/dist/icons/ui/wallet.d.ts.map +1 -0
  583. package/dist/icons/ui/wallet.js.map +1 -0
  584. package/dist/icons/ui/wand-sparkle.d.ts.map +1 -0
  585. package/dist/icons/ui/wand-sparkle.js.map +1 -0
  586. package/dist/icons/ui/wifi-off.d.ts +3 -0
  587. package/dist/icons/ui/wifi-off.d.ts.map +1 -0
  588. package/dist/icons/ui/wifi-off.js +5 -0
  589. package/dist/icons/ui/wifi-off.js.map +1 -0
  590. package/dist/index.d.ts +4 -0
  591. package/dist/index.d.ts.map +1 -1
  592. package/dist/index.js +4 -0
  593. package/dist/index.js.map +1 -1
  594. package/dist/lib/locale-messages.d.ts +8 -0
  595. package/dist/lib/locale-messages.d.ts.map +1 -1
  596. package/dist/lib/locale-messages.js +9 -0
  597. package/dist/lib/locale-messages.js.map +1 -1
  598. package/dist/locales/ar.d.ts.map +1 -1
  599. package/dist/locales/ar.js +6 -0
  600. package/dist/locales/ar.js.map +1 -1
  601. package/dist/locales/de.d.ts.map +1 -1
  602. package/dist/locales/de.js +6 -0
  603. package/dist/locales/de.js.map +1 -1
  604. package/dist/locales/es.d.ts.map +1 -1
  605. package/dist/locales/es.js +6 -0
  606. package/dist/locales/es.js.map +1 -1
  607. package/dist/locales/fr.d.ts.map +1 -1
  608. package/dist/locales/fr.js +6 -0
  609. package/dist/locales/fr.js.map +1 -1
  610. package/dist/locales/he.d.ts.map +1 -1
  611. package/dist/locales/he.js +6 -0
  612. package/dist/locales/he.js.map +1 -1
  613. package/dist/locales/hi.d.ts.map +1 -1
  614. package/dist/locales/hi.js +6 -0
  615. package/dist/locales/hi.js.map +1 -1
  616. package/dist/locales/ja.d.ts.map +1 -1
  617. package/dist/locales/ja.js +6 -0
  618. package/dist/locales/ja.js.map +1 -1
  619. package/dist/locales/pt-BR.d.ts.map +1 -1
  620. package/dist/locales/pt-BR.js +6 -0
  621. package/dist/locales/pt-BR.js.map +1 -1
  622. package/dist/locales/zh-CN.d.ts.map +1 -1
  623. package/dist/locales/zh-CN.js +6 -0
  624. package/dist/locales/zh-CN.js.map +1 -1
  625. package/dist/primitives/charts/bar-chart.d.ts.map +1 -1
  626. package/dist/primitives/charts/bar-chart.js +33 -3
  627. package/dist/primitives/charts/bar-chart.js.map +1 -1
  628. package/dist/primitives/charts/gauge.js +1 -1
  629. package/dist/primitives/charts/line.d.ts.map +1 -1
  630. package/dist/primitives/charts/line.js +14 -11
  631. package/dist/primitives/charts/line.js.map +1 -1
  632. package/dist/primitives/charts/x-axis.d.ts +12 -1
  633. package/dist/primitives/charts/x-axis.d.ts.map +1 -1
  634. package/dist/primitives/charts/x-axis.js +96 -20
  635. package/dist/primitives/charts/x-axis.js.map +1 -1
  636. package/dist/primitives/charts/y-axis-scales.d.ts +3 -1
  637. package/dist/primitives/charts/y-axis-scales.d.ts.map +1 -1
  638. package/dist/primitives/charts/y-axis-scales.js +2 -2
  639. package/dist/primitives/charts/y-axis-scales.js.map +1 -1
  640. package/dist/primitives/charts/y-axis.d.ts +5 -0
  641. package/dist/primitives/charts/y-axis.d.ts.map +1 -1
  642. package/dist/primitives/charts/y-axis.js +6 -2
  643. package/dist/primitives/charts/y-axis.js.map +1 -1
  644. package/dist/primitives/hooks/use-media-query.d.ts +1 -1
  645. package/dist/primitives/hooks/use-media-query.js +1 -1
  646. package/dist/primitives/lib/mobile-sheet.d.ts +25 -0
  647. package/dist/primitives/lib/mobile-sheet.d.ts.map +1 -0
  648. package/dist/primitives/lib/mobile-sheet.js +28 -0
  649. package/dist/primitives/lib/mobile-sheet.js.map +1 -0
  650. package/dist/primitives/lib/segmented-control.d.ts +8 -2
  651. package/dist/primitives/lib/segmented-control.d.ts.map +1 -1
  652. package/dist/primitives/lib/segmented-control.js +8 -2
  653. package/dist/primitives/lib/segmented-control.js.map +1 -1
  654. package/dist/primitives/ui/button.d.ts +1 -1
  655. package/dist/primitives/ui/button.d.ts.map +1 -1
  656. package/dist/primitives/ui/button.js +7 -3
  657. package/dist/primitives/ui/button.js.map +1 -1
  658. package/dist/primitives/ui/calendar.d.ts.map +1 -1
  659. package/dist/primitives/ui/calendar.js +4 -2
  660. package/dist/primitives/ui/calendar.js.map +1 -1
  661. package/dist/primitives/ui/card.d.ts.map +1 -1
  662. package/dist/primitives/ui/card.js +9 -7
  663. package/dist/primitives/ui/card.js.map +1 -1
  664. package/dist/primitives/ui/checkbox.d.ts.map +1 -1
  665. package/dist/primitives/ui/checkbox.js +3 -1
  666. package/dist/primitives/ui/checkbox.js.map +1 -1
  667. package/dist/primitives/ui/combobox.js +2 -2
  668. package/dist/primitives/ui/combobox.js.map +1 -1
  669. package/dist/primitives/ui/dialog.d.ts +10 -1
  670. package/dist/primitives/ui/dialog.d.ts.map +1 -1
  671. package/dist/primitives/ui/dialog.js +14 -3
  672. package/dist/primitives/ui/dialog.js.map +1 -1
  673. package/dist/primitives/ui/drawer.d.ts +1 -2
  674. package/dist/primitives/ui/drawer.d.ts.map +1 -1
  675. package/dist/primitives/ui/drawer.js +30 -14
  676. package/dist/primitives/ui/drawer.js.map +1 -1
  677. package/dist/primitives/ui/input-group.d.ts.map +1 -1
  678. package/dist/primitives/ui/input-group.js +4 -1
  679. package/dist/primitives/ui/input-group.js.map +1 -1
  680. package/dist/primitives/ui/input.js +2 -2
  681. package/dist/primitives/ui/input.js.map +1 -1
  682. package/dist/primitives/ui/menu.d.ts.map +1 -1
  683. package/dist/primitives/ui/menu.js +15 -16
  684. package/dist/primitives/ui/menu.js.map +1 -1
  685. package/dist/primitives/ui/number-field.js +1 -1
  686. package/dist/primitives/ui/number-field.js.map +1 -1
  687. package/dist/primitives/ui/otp-field.js +2 -2
  688. package/dist/primitives/ui/otp-field.js.map +1 -1
  689. package/dist/primitives/ui/popover.d.ts +3 -1
  690. package/dist/primitives/ui/popover.d.ts.map +1 -1
  691. package/dist/primitives/ui/popover.js +11 -5
  692. package/dist/primitives/ui/popover.js.map +1 -1
  693. package/dist/primitives/ui/radio-group.js +1 -1
  694. package/dist/primitives/ui/radio-group.js.map +1 -1
  695. package/dist/primitives/ui/select.d.ts +7 -3
  696. package/dist/primitives/ui/select.d.ts.map +1 -1
  697. package/dist/primitives/ui/select.js +16 -7
  698. package/dist/primitives/ui/select.js.map +1 -1
  699. package/dist/primitives/ui/sheet.d.ts.map +1 -1
  700. package/dist/primitives/ui/sheet.js +4 -3
  701. package/dist/primitives/ui/sheet.js.map +1 -1
  702. package/dist/primitives/ui/sidebar.js +1 -1
  703. package/dist/primitives/ui/switch.d.ts +2 -2
  704. package/dist/primitives/ui/switch.d.ts.map +1 -1
  705. package/dist/primitives/ui/switch.js +2 -2
  706. package/dist/primitives/ui/switch.js.map +1 -1
  707. package/dist/primitives/ui/tabs.d.ts.map +1 -1
  708. package/dist/primitives/ui/tabs.js +1 -1
  709. package/dist/primitives/ui/tabs.js.map +1 -1
  710. package/dist/primitives/ui/textarea.js +2 -2
  711. package/dist/primitives/ui/textarea.js.map +1 -1
  712. package/dist/styles/motion.test.tsx +15 -0
  713. package/dist/styles/theme.css +5 -1
  714. package/dist/styles/tokens.css +72 -39
  715. package/dist/styles/tokens.test.tsx +137 -7
  716. package/dist/theme/css.js +4 -4
  717. package/dist/theme/css.js.map +1 -1
  718. 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.5.0",
4
+ "version": "1.7.0",
5
5
  "components": [
6
6
  {
7
7
  "slug": "alert",
@@ -26,7 +26,7 @@
26
26
  "name": "action",
27
27
  "type": "ReactNode",
28
28
  "required": false,
29
- "description": "The action: an inline `Link` for inline and page alerts, a secondary `Button` (size `xs`) for the\nbanner. It stays on the first line when the message wraps.",
29
+ "description": "The action: an inline `Link` for inline and page alerts, a secondary `Button` (size `xs`) for the\nbanner. It stays on the first line when the message wraps; when the message would get less than 12rem beside\nit (an inline or page alert in a narrow card), it moves under the message.",
30
30
  "source": "dodo"
31
31
  },
32
32
  {
@@ -1014,6 +1014,24 @@
1014
1014
  "description": "An icon before the label (Figma \"Show leading icon\"), 12px, e.g. a clock on a session timer or a card on a\npayment method chip. Decorative: the label names the badge. Replaces the `dot`.",
1015
1015
  "source": "dodo"
1016
1016
  },
1017
+ {
1018
+ "name": "size",
1019
+ "type": "\"md\" | \"sm\"",
1020
+ "required": false,
1021
+ "description": "",
1022
+ "source": "dodo",
1023
+ "values": [
1024
+ {
1025
+ "value": "md",
1026
+ "description": "22px tall, as in Figma. The default."
1027
+ },
1028
+ {
1029
+ "value": "sm",
1030
+ "description": "18px tall with 6px inline padding: a compact pill for a dense table row or next to `sm` controls. Not a Figma size."
1031
+ }
1032
+ ],
1033
+ "default": "\"md\""
1034
+ },
1017
1035
  {
1018
1036
  "name": "status",
1019
1037
  "type": "\"succeeded\" | \"failed\" | \"cancelled\" | \"expired\" | \"processing\" | \"requires_customer_action\" | \"requires_payment_method\" | \"requires_merchant_action\" | \"requires_confirmation\" | \"requires_capture\" | \"partially_captured\" | \"partially_captured_and_capturable\" | \"active\" | \"pending\" | \"on_hold\" | \"paused\" | \"scheduled_for_cancellation\" | \"review\" | \"partial\" | \"full\" | \"pre_dispute\" | \"dispute\" | \"pre_arbitration\" | \"dispute_opened\" | \"dispute_expired\" | \"dispute_accepted\" | \"dispute_cancelled\" | \"dispute_challenged\" | \"dispute_won\" | \"dispute_lost\" | (string & Record<never, never>) | null",
@@ -1123,6 +1141,10 @@
1123
1141
  }
1124
1142
  ],
1125
1143
  "examples": [
1144
+ {
1145
+ "name": "badge/compact",
1146
+ "code": "\"use client\";\n\nimport { Badge } from \"@dodopayments/ui/badge\";\n\nexport default function BadgeCompact() {\n return (\n <>\n <Badge size=\"sm\" tone=\"success\">\n Active\n </Badge>\n <Badge size=\"sm\" tone=\"warning\" dot>\n Past due\n </Badge>\n <Badge size=\"sm\">Test mode</Badge>\n <Badge tone=\"success\">Active</Badge>\n </>\n );\n}"
1147
+ },
1126
1148
  {
1127
1149
  "name": "badge/icon",
1128
1150
  "code": "\"use client\";\n\nimport { Badge } from \"@dodopayments/ui/badge\";\nimport { CircleCheckIcon } from \"@dodopayments/ui/icons\";\n\nexport default function BadgeIcon() {\n return (\n <Badge layout=\"icon\" tone=\"success\">\n <CircleCheckIcon aria-hidden />\n <span className=\"sr-only\">Paid</span>\n </Badge>\n );\n}"
@@ -1151,9 +1173,11 @@
1151
1173
  "importPath": "@dodopayments/ui/featured-icon",
1152
1174
  "exports": [
1153
1175
  "DODO_FEATURED_ICON_DEFAULT_VARIANTS",
1176
+ "DODO_FEATURED_ICON_SPHERE_VARIANTS",
1154
1177
  "DODO_FEATURED_ICON_VARIANTS",
1155
1178
  "FeaturedIcon",
1156
1179
  "FeaturedIconProps",
1180
+ "featuredIconSphereVariants",
1157
1181
  "featuredIconVariants"
1158
1182
  ],
1159
1183
  "parts": [
@@ -1168,6 +1192,13 @@
1168
1192
  "description": "The icon in the tile, a Nucleo icon (16px at `md`, 12px at `sm`): `<FeaturedIcon icon={<KeyIcon />} />`.",
1169
1193
  "source": "dodo"
1170
1194
  },
1195
+ {
1196
+ "name": "look",
1197
+ "type": "\"tile\" | \"sphere\"",
1198
+ "required": false,
1199
+ "description": "`tile`: The rounded square with a soft fill and two borders (the default).\n`sphere`: The dashboard's glossy round badge in the tone, a white icon on it (44px at `md`, 28px at `sm`), as the\nverification checklist shows each step.",
1200
+ "source": "dodo"
1201
+ },
1171
1202
  {
1172
1203
  "name": "size",
1173
1204
  "type": "\"md\" | \"sm\"",
@@ -1341,7 +1372,7 @@
1341
1372
  "title": "Bar Chart",
1342
1373
  "category": "Charts",
1343
1374
  "status": "stable",
1344
- "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.",
1345
1376
  "importPath": "@dodopayments/ui/bar-chart",
1346
1377
  "exports": [
1347
1378
  "Bar",
@@ -1381,7 +1412,7 @@
1381
1412
  "parts": [
1382
1413
  {
1383
1414
  "name": "BarChart",
1384
- "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.",
1385
1416
  "props": [
1386
1417
  {
1387
1418
  "name": "data",
@@ -7081,6 +7112,14 @@
7081
7112
  "description": "The rows, in the order to show them (usually the largest first).",
7082
7113
  "source": "dodo"
7083
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
+ },
7084
7123
  {
7085
7124
  "name": "format",
7086
7125
  "type": "((value: number) => string)",
@@ -7138,10 +7177,12 @@
7138
7177
  "title": "Button",
7139
7178
  "category": "Actions",
7140
7179
  "status": "stable",
7141
- "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.",
7142
7181
  "importPath": "@dodopayments/ui/button",
7143
7182
  "exports": [
7144
7183
  "Button",
7184
+ "ButtonLink",
7185
+ "ButtonLinkProps",
7145
7186
  "ButtonProps",
7146
7187
  "DODO_BUTTON_DEFAULT_VARIANTS",
7147
7188
  "DODO_BUTTON_VARIANTS",
@@ -7150,7 +7191,7 @@
7150
7191
  "parts": [
7151
7192
  {
7152
7193
  "name": "Button",
7153
- "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.",
7154
7195
  "props": [
7155
7196
  {
7156
7197
  "name": "className",
@@ -7181,6 +7222,13 @@
7181
7222
  "description": "Which side of the label the icon is placed on.",
7182
7223
  "source": "dodo"
7183
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
+ },
7184
7232
  {
7185
7233
  "name": "loading",
7186
7234
  "type": "boolean",
@@ -7211,7 +7259,7 @@
7211
7259
  },
7212
7260
  {
7213
7261
  "name": "size",
7214
- "type": "\"xs\" | \"default\" | \"lg\" | \"icon\" | \"icon-xs\" | \"icon-lg\"",
7262
+ "type": "\"xs\" | \"sm\" | \"default\" | \"lg\" | \"icon\" | \"icon-sm\" | \"icon-xs\" | \"icon-lg\"",
7215
7263
  "required": false,
7216
7264
  "description": "",
7217
7265
  "source": "dodo",
@@ -7220,6 +7268,10 @@
7220
7268
  "value": "xs",
7221
7269
  "description": "28px tall (24px from `sm`), Figma `sm`: dense toolbars, strip actions and inline actions."
7222
7270
  },
7271
+ {
7272
+ "value": "sm",
7273
+ "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."
7274
+ },
7223
7275
  {
7224
7276
  "value": "default",
7225
7277
  "description": "36px tall (32px from `sm`): a compact control when a design asks for one. Not a Figma size; prefer `lg`."
@@ -7232,6 +7284,10 @@
7232
7284
  "value": "icon",
7233
7285
  "description": "Square icon-only button at the default height. Requires `aria-label`."
7234
7286
  },
7287
+ {
7288
+ "value": "icon-sm",
7289
+ "description": "Square icon-only button at `sm` height. Requires `aria-label`."
7290
+ },
7235
7291
  {
7236
7292
  "value": "icon-xs",
7237
7293
  "description": "Square icon-only button at `xs` height. Requires `aria-label`."
@@ -7317,12 +7373,141 @@
7317
7373
  "source": "base-ui"
7318
7374
  }
7319
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
+ ]
7320
7501
  }
7321
7502
  ],
7322
7503
  "examples": [
7323
7504
  {
7324
7505
  "name": "button/as-link",
7325
- "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}"
7507
+ },
7508
+ {
7509
+ "name": "button/compact",
7510
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { FilterIcon, PlusIcon } from \"@dodopayments/ui/icons\";\n\nexport default function ButtonCompact() {\n return (\n <div className=\"flex flex-wrap items-center gap-2\">\n <Button size=\"sm\" variant=\"secondary\" icon={<FilterIcon aria-hidden />} iconPlacement=\"left\">\n Filter\n </Button>\n <Button size=\"sm\">Export</Button>\n <Button size=\"icon-sm\" variant=\"secondary\" aria-label=\"Add a column\">\n <PlusIcon />\n </Button>\n </div>\n );\n}"
7326
7511
  },
7327
7512
  {
7328
7513
  "name": "button/copy-with-text",
@@ -7332,6 +7517,10 @@
7332
7517
  "name": "button/copy",
7333
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}"
7334
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
+ },
7335
7524
  {
7336
7525
  "name": "button/loading",
7337
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}"
@@ -8425,6 +8614,88 @@
8425
8614
  "source": "dodo"
8426
8615
  }
8427
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
+ ]
8428
8699
  }
8429
8700
  ],
8430
8701
  "api": [
@@ -9456,7 +9727,15 @@
9456
9727
  "name": "help",
9457
9728
  "type": "ReactNode",
9458
9729
  "required": false,
9459
- "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.",
9460
9739
  "source": "dodo"
9461
9740
  },
9462
9741
  {
@@ -9568,13 +9847,13 @@
9568
9847
  },
9569
9848
  {
9570
9849
  "name": "CardTitle",
9571
- "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`).",
9572
9851
  "props": [
9573
9852
  {
9574
9853
  "name": "help",
9575
9854
  "type": "ReactNode",
9576
9855
  "required": false,
9577
- "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.",
9578
9857
  "source": "dodo"
9579
9858
  },
9580
9859
  {
@@ -9817,7 +10096,7 @@
9817
10096
  },
9818
10097
  {
9819
10098
  "name": "messageKey",
9820
- "type": "\"search\" | \"clear\" | \"loading\" | \"next\" | \"cardFieldLabel\" | \"cardFieldNumber\" | \"cardFieldExpiry\" | \"cardFieldCvc\" | \"cardFieldName\" | \"cardFieldNumberError\" | \"cardFieldExpiryError\" | \"cardFieldCvcError\" | \"cardFieldNameError\" | \"billingActionFailed\" | \"close\" | \"dismiss\" | \"spinnerLabel\" | \"remove\" | \"removeItem\" | \"confirm\" | \"cancel\" | \"retry\" | \"tryAgain\" | \"back\" | \"more\" | \"showMore\" | \"showLess\" | \"selectEmpty\" | \"copied\" | \"copyFailed\" | \"copyToClipboard\" | \"loadMoreError\" | \"activityTimelineLoading\" | \"activityTimelineEmptyTitle\" | \"activityTimelineEmptyDescription\" | \"activityTimelineErrorTitle\" | \"activityTimelineErrorDescription\" | \"activityTimelineEnd\" | \"autocompleteShowSuggestions\" | \"comboboxShowOptions\" | \"breadcrumbLabel\" | \"codeBlockCopy\" | \"codeBlockLabel\" | \"dataGridSelectRow\" | \"dataGridSelectAll\" | \"dataGridSortBy\" | \"dataGridSortAscending\" | \"dataGridSortDescending\" | \"dataGridTime\" | \"datePresetToday\" | \"datePresetYesterday\" | \"datePresetLast7Days\" | \"datePresetLast30Days\" | \"datePresetThisWeek\" | \"datePresetThisMonth\" | \"datePresetLastMonth\" | \"datePresetMonthToDate\" | \"datePresetYearToDate\" | \"datePresetLastYear\" | \"dateRangeTitle\" | \"dateRangePresets\" | \"datePickerTitle\" | \"datePickerReset\" | \"datePickerApply\" | \"datePickerStartDate\" | \"datePickerEndDate\" | \"dateFilterPlaceholder\" | \"dateFilterClear\" | \"loadMore\" | \"loadMoreEnd\" | \"paginationLabel\" | \"paginationPrevious\" | \"paginationNext\" | \"paginationFirst\" | \"paginationLast\" | \"paginationPage\" | \"tablePaginationRowsPerPage\" | \"tablePaginationViewing\" | \"secretFieldReveal\" | \"secretFieldCopy\" | \"secretFieldRemasked\" | \"showMoreLabel\" | \"sidebarTitle\" | \"sidebarToggle\" | \"sidebarCollapse\" | \"sidebarExpand\" | \"sidebarMode\" | \"sidebarModeTest\" | \"sidebarModeLive\" | \"sidebarSwitchToLive\" | \"sidebarSwitchToTest\" | \"inputCopy\" | \"sheetProgress\" | \"statCardIncreased\" | \"statCardDecreased\" | \"statCardInfo\" | \"statCardError\" | \"statCardEmpty\" | \"statCardNoChange\" | \"timestampUtc\" | \"timestampRelative\" | \"timestampTimestamp\" | \"wizardStepsLabel\" | \"wizardStepsPosition\" | \"progressStep\" | \"wizardStepsFinish\" | \"wizardStepsComplete\" | \"wizardStepsCompleteHint\" | \"prorationPreviewLabel\" | \"prorationPreviewCurrentPlan\" | \"prorationPreviewNewPlan\" | \"prorationPreviewCredit\" | \"prorationPreviewCharge\" | \"prorationPreviewDueToday\" | \"prorationPreviewNextInvoice\" | \"prorationPreviewEffectiveNow\" | \"prorationPreviewEffectivePeriodEnd\" | \"codeTabsLabel\" | \"walletButtonsPayWith\" | \"walletButtonsDivider\"",
10099
+ "type": "\"search\" | \"clear\" | \"loading\" | \"next\" | \"cardFieldLabel\" | \"cardFieldNumber\" | \"cardFieldExpiry\" | \"cardFieldCvc\" | \"cardFieldName\" | \"cardFieldNumberError\" | \"cardFieldExpiryError\" | \"cardFieldCvcError\" | \"cardFieldNameError\" | \"billingActionFailed\" | \"close\" | \"dismiss\" | \"spinnerLabel\" | \"remove\" | \"removeItem\" | \"confirm\" | \"cancel\" | \"retry\" | \"tryAgain\" | \"back\" | \"more\" | \"showMore\" | \"showLess\" | \"selectEmpty\" | \"copied\" | \"copyFailed\" | \"copyToClipboard\" | \"loadMoreError\" | \"activityTimelineLoading\" | \"activityTimelineEmptyTitle\" | \"activityTimelineEmptyDescription\" | \"activityTimelineErrorTitle\" | \"activityTimelineErrorDescription\" | \"activityTimelineEnd\" | \"autocompleteShowSuggestions\" | \"comboboxShowOptions\" | \"breadcrumbLabel\" | \"codeBlockCopy\" | \"codeBlockLabel\" | \"dataGridSelectRow\" | \"dataGridSelectAll\" | \"dataGridSortBy\" | \"dataGridSortAscending\" | \"dataGridSortDescending\" | \"dataGridTime\" | \"datePresetToday\" | \"datePresetYesterday\" | \"datePresetLast7Days\" | \"datePresetLast30Days\" | \"datePresetThisWeek\" | \"datePresetThisMonth\" | \"datePresetLastMonth\" | \"datePresetMonthToDate\" | \"datePresetYearToDate\" | \"datePresetLastYear\" | \"dateRangeTitle\" | \"dateRangePresets\" | \"datePickerTitle\" | \"datePickerReset\" | \"datePickerApply\" | \"datePickerStartDate\" | \"datePickerEndDate\" | \"dateFilterPlaceholder\" | \"dateFilterClear\" | \"loadMore\" | \"loadMoreEnd\" | \"paginationLabel\" | \"paginationPrevious\" | \"paginationNext\" | \"paginationFirst\" | \"paginationLast\" | \"paginationPage\" | \"tablePaginationRowsPerPage\" | \"tablePaginationViewing\" | \"secretFieldReveal\" | \"secretFieldCopy\" | \"secretFieldRemasked\" | \"showMoreLabel\" | \"sidebarTitle\" | \"sidebarToggle\" | \"sidebarCollapse\" | \"sidebarExpand\" | \"sidebarMode\" | \"sidebarModeTest\" | \"sidebarModeLive\" | \"sidebarSwitchToLive\" | \"sidebarSwitchToTest\" | \"imageCropTitle\" | \"imageCropArea\" | \"imageCropApply\" | \"imageCropKeyboardHint\" | \"imageCropFailed\" | \"imageCropUnreadable\" | \"inputCopy\" | \"sheetProgress\" | \"statCardIncreased\" | \"statCardDecreased\" | \"statCardInfo\" | \"statCardError\" | \"statCardEmpty\" | \"statCardNoChange\" | \"timestampUtc\" | \"timestampRelative\" | \"timestampTimestamp\" | \"wizardStepsLabel\" | \"wizardStepsPosition\" | \"progressStep\" | \"wizardStepsFinish\" | \"wizardStepsComplete\" | \"wizardStepsCompleteHint\" | \"prorationPreviewLabel\" | \"prorationPreviewCurrentPlan\" | \"prorationPreviewNewPlan\" | \"prorationPreviewCredit\" | \"prorationPreviewCharge\" | \"prorationPreviewDueToday\" | \"prorationPreviewNextInvoice\" | \"prorationPreviewEffectiveNow\" | \"prorationPreviewEffectivePeriodEnd\" | \"codeTabsLabel\" | \"walletButtonsPayWith\" | \"walletButtonsDivider\"",
9821
10100
  "required": false,
9822
10101
  "description": "Built-in message that translates `label` under a `LocaleProvider` while `label` is still that\nmessage's English default. Custom presets leave it out and show `label` as given; a built-in\npreset you relabel (`{ ...preset, label: \"Past week\" }`) shows its new `label` too.",
9823
10102
  "source": "dodo"
@@ -9894,7 +10173,7 @@
9894
10173
  "name": "language",
9895
10174
  "type": "string",
9896
10175
  "required": false,
9897
- "description": "Language name, exposed as `data-language` on the root. `json` is coloured with the syntax tokens.",
10176
+ "description": "Language name, exposed as `data-language` on the root. `json` and the shells (`bash`, `sh`, `zsh`) are coloured.",
9898
10177
  "source": "dodo"
9899
10178
  },
9900
10179
  {
@@ -10207,7 +10486,7 @@
10207
10486
  "title": "Data table",
10208
10487
  "category": "Data display",
10209
10488
  "status": "stable",
10210
- "description": "The Dodo Nest Data table, driven by a TanStack Table v8 instance: the column headers on a grey tray,\nthe rows (`size` md 48 / lg 64) on the white panel inside it, skeleton rows while `isLoading`, and\n`emptyMessage` centred in the panel when there are no rows. It keeps the table layout at every width:\na table wider than its container scrolls sideways (the container is then a tab stop). It sets\n`aria-sort` on sortable headers and marks selected rows `data-state=\"selected\"`, tinted\nSurface/Secondary as on hover. Sorting, selection and pagination stay in the table\ninstance; pair it with `DataGridColumnHeader`, `DataGridRowSelect(All)` and `DataGridPagination`\n(16 below). After a sort change, the rows glide to their new positions (`animateSort`) and a polite\nlive region announces the new sort. `bulkActions` adds a sticky \"N selected\" bar with actions for\nthe selected rows.",
10489
+ "description": "The Dodo Nest Data table, driven by a TanStack Table v8 instance: the column headers on a grey tray,\nthe rows (`size` md 48 / lg 64) on the white panel inside it, skeleton rows while `isLoading`, and\n`emptyMessage` centred in the panel when there are no rows. It keeps the table layout at every width:\na table wider than its container scrolls sideways (the container is then a tab stop). For a phone, give the\nless important columns `meta.priority` 2 or 3 so they hide while the table is narrow, and set `pinFirstColumn`\nto keep the first column in view. It sets\n`aria-sort` on sortable headers and marks selected rows `data-state=\"selected\"`, tinted\nSurface/Secondary as on hover. Sorting, selection and pagination stay in the table\ninstance; pair it with `DataGridColumnHeader`, `DataGridRowSelect(All)` and `DataGridPagination`\n(16 below). After a sort change, the rows glide to their new positions (`animateSort`) and a polite\nlive region announces the new sort. `bulkActions` adds a sticky \"N selected\" bar with actions for\nthe selected rows.",
10211
10490
  "importPath": "@dodopayments/ui/data-grid",
10212
10491
  "exports": [
10213
10492
  "DEFAULT_DATA_GRID_BULK_ACTION_LABELS",
@@ -10241,7 +10520,7 @@
10241
10520
  "parts": [
10242
10521
  {
10243
10522
  "name": "DataGrid",
10244
- "description": "The Dodo Nest Data table, driven by a TanStack Table v8 instance: the column headers on a grey tray,\nthe rows (`size` md 48 / lg 64) on the white panel inside it, skeleton rows while `isLoading`, and\n`emptyMessage` centred in the panel when there are no rows. It keeps the table layout at every width:\na table wider than its container scrolls sideways (the container is then a tab stop). It sets\n`aria-sort` on sortable headers and marks selected rows `data-state=\"selected\"`, tinted\nSurface/Secondary as on hover. Sorting, selection and pagination stay in the table\ninstance; pair it with `DataGridColumnHeader`, `DataGridRowSelect(All)` and `DataGridPagination`\n(16 below). After a sort change, the rows glide to their new positions (`animateSort`) and a polite\nlive region announces the new sort. `bulkActions` adds a sticky \"N selected\" bar with actions for\nthe selected rows.",
10523
+ "description": "The Dodo Nest Data table, driven by a TanStack Table v8 instance: the column headers on a grey tray,\nthe rows (`size` md 48 / lg 64) on the white panel inside it, skeleton rows while `isLoading`, and\n`emptyMessage` centred in the panel when there are no rows. It keeps the table layout at every width:\na table wider than its container scrolls sideways (the container is then a tab stop). For a phone, give the\nless important columns `meta.priority` 2 or 3 so they hide while the table is narrow, and set `pinFirstColumn`\nto keep the first column in view. It sets\n`aria-sort` on sortable headers and marks selected rows `data-state=\"selected\"`, tinted\nSurface/Secondary as on hover. Sorting, selection and pagination stay in the table\ninstance; pair it with `DataGridColumnHeader`, `DataGridRowSelect(All)` and `DataGridPagination`\n(16 below). After a sort change, the rows glide to their new positions (`animateSort`) and a polite\nlive region announces the new sort. `bulkActions` adds a sticky \"N selected\" bar with actions for\nthe selected rows.",
10245
10524
  "props": [
10246
10525
  {
10247
10526
  "name": "table",
@@ -10347,13 +10626,25 @@
10347
10626
  "description": "Follows a row's link in the same tab, e.g. `(href) => router.push(href)` for client-side routing.",
10348
10627
  "source": "dodo"
10349
10628
  },
10629
+ {
10630
+ "name": "pinFirstColumn",
10631
+ "type": "boolean",
10632
+ "required": false,
10633
+ "default": "false",
10634
+ "description": "Keep the first data column in view while a wide table scrolls sideways, next to the checkboxes if there are\nany, so each row stays identifiable on a phone. The columns passing under it fade.",
10635
+ "source": "dodo"
10636
+ },
10350
10637
  {
10351
10638
  "name": "size",
10352
- "type": "\"md\" | \"lg\"",
10639
+ "type": "\"sm\" | \"md\" | \"lg\"",
10353
10640
  "required": false,
10354
10641
  "description": "",
10355
10642
  "source": "dodo",
10356
10643
  "values": [
10644
+ {
10645
+ "value": "sm",
10646
+ "description": "36 rows in Body/Secondary with 12 padding, for a table in a narrow side panel such as Dodo AI's."
10647
+ },
10357
10648
  {
10358
10649
  "value": "md",
10359
10650
  "description": "48 rows, for one-line cells (the default)."
@@ -10364,6 +10655,13 @@
10364
10655
  }
10365
10656
  ],
10366
10657
  "default": "\"md\""
10658
+ },
10659
+ {
10660
+ "name": "storageKey",
10661
+ "type": "string",
10662
+ "required": false,
10663
+ "description": "Remembers the columns the user chose, in this browser: their visibility (an Edit columns menu), their order and\ntheir widths (`columnSizing`) are saved in localStorage under `dodo-ui:data-grid:<storageKey>` and restored on\nthe next visit, before the first paint. Give each table its own key. A saved order that no longer names every\ncolumn is ignored, and saved entries for removed columns are dropped. Sorting, selection and pages are not saved.",
10664
+ "source": "dodo"
10367
10665
  }
10368
10666
  ]
10369
10667
  },
@@ -10629,6 +10927,10 @@
10629
10927
  "name": "data-grid/loading-empty",
10630
10928
  "code": "\"use client\";\n\nimport { DataGrid, DataGridColumnHeader } from \"@dodopayments/ui/data-grid\";\nimport { Empty } from \"@dodopayments/ui/empty\";\nimport { ReceiptIcon } from \"@dodopayments/ui/icons\";\nimport { SegmentedControl } from \"@dodopayments/ui/segmented-control\";\nimport { type ColumnDef, getCoreRowModel, useReactTable } from \"@tanstack/react-table\";\nimport { useState } from \"react\";\n\ninterface Payout {\n id: string;\n date: string;\n amount: string;\n}\n\nconst columns: ColumnDef<Payout>[] = [\n {\n accessorKey: \"id\",\n header: ({ column }) => <DataGridColumnHeader column={column} title=\"Payout ID\" />,\n enableSorting: false,\n meta: { cellClassName: \"font-mono\" },\n },\n { accessorKey: \"date\", header: \"Date\" },\n { accessorKey: \"amount\", header: \"Amount\", meta: { cellClassName: \"tabular-nums\" } },\n];\n\ntype Mode = \"loading\" | \"empty\";\n\n// One array for every render: a new `[]` each time would make TanStack reset the page on every render.\nconst NO_PAYOUTS: Payout[] = [];\n\nexport default function DataGridLoadingEmpty() {\n const [mode, setMode] = useState<Mode>(\"loading\");\n // eslint-disable-next-line react-hooks/incompatible-library -- TanStack Table returns a mutable instance by design.\n const table = useReactTable({\n data: NO_PAYOUTS,\n columns,\n getCoreRowModel: getCoreRowModel(),\n initialState: { pagination: { pageIndex: 0, pageSize: 4 } },\n });\n\n return (\n <div className=\"flex w-full min-w-0 flex-col gap-2.5\">\n <SegmentedControl\n aria-label=\"Table state\"\n className=\"self-start\"\n value={mode}\n onValueChange={(value) => setMode(value as Mode)}\n items={[\n { value: \"loading\", label: \"Loading\" },\n { value: \"empty\", label: \"Empty\" },\n ]}\n />\n <DataGrid\n table={table}\n aria-label=\"Payouts\"\n isLoading={mode === \"loading\"}\n emptyMessage={\n <Empty\n className=\"py-10\"\n icon={<ReceiptIcon />}\n title=\"No payouts yet\"\n description=\"Payouts appear here once your balance is settled.\"\n />\n }\n />\n </div>\n );\n}"
10631
10929
  },
10930
+ {
10931
+ "name": "data-grid/phone",
10932
+ "code": "\"use client\";\n\nimport { Badge } from \"@dodopayments/ui/badge\";\nimport { DataGrid } from \"@dodopayments/ui/data-grid\";\nimport { type ColumnDef, getCoreRowModel, useReactTable } from \"@tanstack/react-table\";\n\ninterface Payment {\n id: string;\n customer: string;\n method: string;\n created: string;\n status: \"succeeded\" | \"failed\" | \"processing\";\n amount: string;\n}\n\nconst payments: Payment[] = [\n {\n id: \"pay_8Hq2Xa\",\n customer: \"ada@lovelace.dev\",\n method: \"Visa •••• 4242\",\n created: \"Nov 26, 09:14\",\n status: \"succeeded\",\n amount: \"$49.00\",\n },\n {\n id: \"pay_3Kd9Pm\",\n customer: \"grace@hopper.io\",\n method: \"UPI\",\n created: \"Nov 26, 08:51\",\n status: \"processing\",\n amount: \"$120.00\",\n },\n {\n id: \"pay_7Tn4Ws\",\n customer: \"alan@turing.org\",\n method: \"Mastercard •••• 4444\",\n created: \"Nov 25, 22:07\",\n status: \"failed\",\n amount: \"$19.00\",\n },\n {\n id: \"pay_1Bz6Lc\",\n customer: \"katherine@johnson.space\",\n method: \"Apple Pay\",\n created: \"Nov 25, 18:30\",\n status: \"succeeded\",\n amount: \"$240.00\",\n },\n];\n\nconst columns: ColumnDef<Payment>[] = [\n { accessorKey: \"id\", header: \"Payment\", meta: { cellClassName: \"font-mono\" } },\n {\n accessorKey: \"status\",\n header: \"Status\",\n cell: ({ row }) => <Badge status={row.original.status} kind=\"payment\" />,\n },\n { accessorKey: \"amount\", header: \"Amount\", meta: { cellClassName: \"tabular-nums\" } },\n // Hidden while the table is under 448px wide: a phone.\n { accessorKey: \"customer\", header: \"Customer\", meta: { priority: 2 } },\n // Hidden while it is under 672px wide: a phone or a narrow panel.\n { accessorKey: \"method\", header: \"Method\", meta: { priority: 3 } },\n { accessorKey: \"created\", header: \"Created\", meta: { priority: 3 } },\n];\n\nexport default function DataGridPhone() {\n // eslint-disable-next-line react-hooks/incompatible-library -- TanStack Table returns a mutable instance by design.\n const table = useReactTable({\n data: payments,\n columns,\n getRowId: (row) => row.id,\n getCoreRowModel: getCoreRowModel(),\n });\n\n return (\n <div className=\"w-full min-w-0\">\n <DataGrid table={table} aria-label=\"Payments\" pinFirstColumn />\n </div>\n );\n}"
10933
+ },
10632
10934
  {
10633
10935
  "name": "data-grid/row-hover",
10634
10936
  "code": "\"use client\";\n\nimport { DataGrid, DataGridPagination } from \"@dodopayments/ui/data-grid\";\nimport {\n type ColumnDef,\n getCoreRowModel,\n getPaginationRowModel,\n useReactTable,\n} from \"@tanstack/react-table\";\n\ninterface Customer {\n id: string;\n name: string;\n email: string;\n}\n\nconst customers: Customer[] = Array.from({ length: 14 }, (_, i) => ({\n id: `cus_${(9100 + i * 13).toString(36)}`,\n name: `Customer ${i + 1}`,\n email: `customer${i + 1}@example.com`,\n}));\n\nconst columns: ColumnDef<Customer>[] = [\n { accessorKey: \"name\", header: \"Name\" },\n { accessorKey: \"email\", header: \"Email\" },\n { accessorKey: \"id\", header: \"Customer ID\", meta: { cellClassName: \"font-mono\" } },\n];\n\nexport default function DataGridRowHover() {\n // eslint-disable-next-line react-hooks/incompatible-library -- TanStack Table returns a mutable instance by design.\n const table = useReactTable({\n data: customers,\n columns,\n getRowId: (row) => row.id,\n getCoreRowModel: getCoreRowModel(),\n getPaginationRowModel: getPaginationRowModel(),\n initialState: { pagination: { pageIndex: 0, pageSize: 5 } },\n });\n\n return (\n <div className=\"flex w-full min-w-0 flex-col gap-2.5\">\n <DataGrid table={table} aria-label=\"Customers\" />\n <DataGridPagination table={table} showRowsPerPage={false} />\n </div>\n );\n}"
@@ -11072,6 +11374,14 @@
11072
11374
  "description": "Placeholder and accessible name of the search input in the popup.",
11073
11375
  "source": "dodo"
11074
11376
  },
11377
+ {
11378
+ "name": "size",
11379
+ "type": "\"default\" | \"sm\"",
11380
+ "required": false,
11381
+ "default": "\"default\"",
11382
+ "description": "Trigger height: 36, or the compact 28 of `SelectTrigger` `size=\"sm\"`.",
11383
+ "source": "dodo"
11384
+ },
11075
11385
  {
11076
11386
  "name": "value",
11077
11387
  "type": "string | null",
@@ -11249,10 +11559,18 @@
11249
11559
  "source": "dodo"
11250
11560
  },
11251
11561
  {
11252
- "name": "value",
11253
- "type": "string | null",
11562
+ "name": "size",
11563
+ "type": "\"default\" | \"sm\"",
11254
11564
  "required": false,
11255
- "description": "Selected ISO 4217 code (controlled). `null` clears the selection.",
11565
+ "default": "\"default\"",
11566
+ "description": "Trigger height: 36, or the compact 28 of `SelectTrigger` `size=\"sm\"`.",
11567
+ "source": "dodo"
11568
+ },
11569
+ {
11570
+ "name": "value",
11571
+ "type": "string | null",
11572
+ "required": false,
11573
+ "description": "Selected ISO 4217 code (controlled). `null` clears the selection.",
11256
11574
  "source": "dodo"
11257
11575
  }
11258
11576
  ]
@@ -11321,10 +11639,10 @@
11321
11639
  },
11322
11640
  {
11323
11641
  "name": "size",
11324
- "type": "\"lg\"",
11642
+ "type": "\"sm\" | \"lg\"",
11325
11643
  "required": false,
11326
11644
  "default": "\"lg\"",
11327
- "description": "Input height, as `Input` (`DODO_INPUT_VARIANTS`): one size, `lg` 36.",
11645
+ "description": "Input height, as `Input` (`DODO_INPUT_VARIANTS`): `lg` 36 or the compact `sm` 28.",
11328
11646
  "source": "dodo"
11329
11647
  },
11330
11648
  {
@@ -11477,6 +11795,14 @@
11477
11795
  "description": "Placeholder and accessible name of the search input in the popup.",
11478
11796
  "source": "dodo"
11479
11797
  },
11798
+ {
11799
+ "name": "size",
11800
+ "type": "\"default\" | \"sm\"",
11801
+ "required": false,
11802
+ "default": "\"default\"",
11803
+ "description": "Trigger height: 36, or the compact 28 of `SelectTrigger` `size=\"sm\"`.",
11804
+ "source": "dodo"
11805
+ },
11480
11806
  {
11481
11807
  "name": "timeZones",
11482
11808
  "type": "readonly string[]",
@@ -11641,7 +11967,7 @@
11641
11967
  },
11642
11968
  {
11643
11969
  "name": "CollapsibleTrigger",
11644
- "description": "The header that opens and closes the content. In the card variant, put a `CollapsibleTitle` and an optional\n`CollapsibleDescription` in it. Only put phrasing content (text, spans, icons, badges) inside it, never another\nbutton or link.",
11970
+ "description": "The header that opens and closes the content. In the card variant, put a `CollapsibleTitle` and an optional\n`CollapsibleDescription` in it; a `Badge` there sits under the title at its own width. Only put phrasing content\n(text, spans, icons, badges) inside it, never another button or link.",
11645
11971
  "props": [
11646
11972
  {
11647
11973
  "name": "className",
@@ -11758,7 +12084,7 @@
11758
12084
  },
11759
12085
  {
11760
12086
  "name": "size",
11761
- "type": "\"default\" | \"icon\" | \"xs\" | \"lg\" | \"icon-xs\" | \"icon-lg\" | null",
12087
+ "type": "\"default\" | \"sm\" | \"icon\" | \"xs\" | \"lg\" | \"icon-sm\" | \"icon-xs\" | \"icon-lg\" | null",
11762
12088
  "required": false,
11763
12089
  "description": "",
11764
12090
  "source": "dodo"
@@ -11860,7 +12186,7 @@
11860
12186
  "title": "Scaled frame",
11861
12187
  "category": "Layout",
11862
12188
  "status": "stable",
11863
- "description": "Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout\npage in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales\nit up. The content stays a live page; put a cover over it when it should not take clicks.",
12189
+ "description": "Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout\npage in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales\nit up: content narrower than the frame sits in its middle. The content stays a live page; put a\ncover over it when it should not take clicks.",
11864
12190
  "importPath": "@dodopayments/ui/scaled-frame",
11865
12191
  "exports": [
11866
12192
  "ScaledFrame",
@@ -11869,20 +12195,20 @@
11869
12195
  "parts": [
11870
12196
  {
11871
12197
  "name": "ScaledFrame",
11872
- "description": "Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout\npage in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales\nit up. The content stays a live page; put a cover over it when it should not take clicks.",
12198
+ "description": "Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout\npage in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales\nit up: content narrower than the frame sits in its middle. The content stays a live page; put a\ncover over it when it should not take clicks.",
11873
12199
  "props": [
11874
12200
  {
11875
- "name": "height",
12201
+ "name": "width",
11876
12202
  "type": "number",
11877
12203
  "required": true,
11878
- "description": "The height the content is laid out at, in px.",
12204
+ "description": "The width the content is laid out at, in px, e.g. 1280 for a desktop page.",
11879
12205
  "source": "dodo"
11880
12206
  },
11881
12207
  {
11882
- "name": "width",
12208
+ "name": "height",
11883
12209
  "type": "number",
11884
- "required": true,
11885
- "description": "The width the content is laid out at, in px, e.g. 1280 for a desktop page.",
12210
+ "required": false,
12211
+ "description": "The height the content is laid out at, in px. Leave it out for content that sets its own height,\nsuch as a document page that grows with its lines: the frame then follows it, scaled. The height\nis measured in the browser, so server-rendered HTML has a 0 tall frame until it hydrates.",
11886
12212
  "source": "dodo"
11887
12213
  }
11888
12214
  ]
@@ -11995,7 +12321,7 @@
11995
12321
  },
11996
12322
  {
11997
12323
  "name": "Dialog",
11998
- "description": "Root of a modal dialog, centred on the screen. Controls open state (`open`/`onOpenChange` or `defaultOpen`).\n`alert` makes it an alert dialog for confirmations.",
12324
+ "description": "Root of a modal dialog, centred on the screen; with `mobileSheet` it is a bottom drawer on a phone. Controls open\nstate (`open`/`onOpenChange` or `defaultOpen`). `alert` makes it an alert dialog for confirmations.",
11999
12325
  "props": [
12000
12326
  {
12001
12327
  "name": "alert",
@@ -12005,6 +12331,14 @@
12005
12331
  "description": "An alert dialog: it interrupts to confirm or acknowledge something (`role=\"alertdialog\"`). Clicking the backdrop\ndoes not close it and `DialogContent` has no close button, so always offer an explicit Cancel in the footer.\nEscape still closes it. `ConfirmDialog` is a ready-made one.",
12006
12332
  "source": "dodo"
12007
12333
  },
12334
+ {
12335
+ "name": "mobileSheet",
12336
+ "type": "boolean",
12337
+ "required": false,
12338
+ "default": "false",
12339
+ "description": "Below 640px, show the dialog as a bottom drawer: docked to the bottom edge at full width, closed with a swipe\ndown as well as the scrim, Escape and the close button, with the actions sharing the footer row. Off by default:\nthe dialog stays centred at every width. Do not set it when the body has its own drag gesture. An alert dialog\nis always centred.",
12340
+ "source": "dodo"
12341
+ },
12008
12342
  {
12009
12343
  "name": "actionsRef",
12010
12344
  "type": "RefObject<DialogRootActions | null>",
@@ -12165,6 +12499,13 @@
12165
12499
  "description": "The icon in the tile, a Nucleo icon (16px at `md`, 12px at `sm`): `<FeaturedIcon icon={<KeyIcon />} />`.",
12166
12500
  "source": "dodo"
12167
12501
  },
12502
+ {
12503
+ "name": "look",
12504
+ "type": "\"tile\" | \"sphere\"",
12505
+ "required": false,
12506
+ "description": "`tile`: The rounded square with a soft fill and two borders (the default).\n`sphere`: The dashboard's glossy round badge in the tone, a white icon on it (44px at `md`, 28px at `sm`), as the\nverification checklist shows each step.",
12507
+ "source": "dodo"
12508
+ },
12168
12509
  {
12169
12510
  "name": "size",
12170
12511
  "type": "\"sm\" | \"md\" | null",
@@ -12213,6 +12554,13 @@
12213
12554
  "name": "DialogPanel",
12214
12555
  "description": "The body of the white panel, 24 under the header (primitive `DialogPanel`). It scrolls inside the panel when\nthe dialog reaches its maximum height; the header and the footer strip stay.",
12215
12556
  "props": [
12557
+ {
12558
+ "name": "fill",
12559
+ "type": "boolean",
12560
+ "required": false,
12561
+ "description": "Fill the panel's height (a fixed-height dialog), so a short body can centre itself with `m-auto`.",
12562
+ "source": "dodo"
12563
+ },
12216
12564
  {
12217
12565
  "name": "scrollFade",
12218
12566
  "type": "boolean",
@@ -12489,6 +12837,376 @@
12489
12837
  ],
12490
12838
  "docsUrl": "/components/dialog"
12491
12839
  },
12840
+ {
12841
+ "slug": "drawer",
12842
+ "title": "Drawer",
12843
+ "category": "Overlays",
12844
+ "status": "stable",
12845
+ "description": "The drawer: portal + scrim + popup, docked to the bottom edge with a drag handle and a close button. A grey tray\nwith rounded top corners, like Dialog: the title and body in a white panel, the actions on the grey strip. It is\nas tall as its content, up to the screen minus 48, and pads the bottom safe area; a focused field stays above the\nsoftware keyboard. Always include a `DrawerTitle`; lay it out as `DrawerHeader`, `DrawerPanel` and `DrawerFooter`.",
12846
+ "importPath": "@dodopayments/ui/drawer",
12847
+ "exports": [
12848
+ "Drawer",
12849
+ "DrawerClose",
12850
+ "DrawerCloseProps",
12851
+ "DrawerContent",
12852
+ "DrawerContentProps",
12853
+ "DrawerDescription",
12854
+ "DrawerDescriptionProps",
12855
+ "DrawerFooter",
12856
+ "DrawerFooterProps",
12857
+ "DrawerHeader",
12858
+ "DrawerHeaderProps",
12859
+ "DrawerPanel",
12860
+ "DrawerPanelProps",
12861
+ "DrawerProps",
12862
+ "DrawerTitle",
12863
+ "DrawerTitleProps",
12864
+ "DrawerTrigger",
12865
+ "DrawerTriggerProps"
12866
+ ],
12867
+ "parts": [
12868
+ {
12869
+ "name": "DrawerContent",
12870
+ "description": "The drawer: portal + scrim + popup, docked to the bottom edge with a drag handle and a close button. A grey tray\nwith rounded top corners, like Dialog: the title and body in a white panel, the actions on the grey strip. It is\nas tall as its content, up to the screen minus 48, and pads the bottom safe area; a focused field stays above the\nsoftware keyboard. Always include a `DrawerTitle`; lay it out as `DrawerHeader`, `DrawerPanel` and `DrawerFooter`.",
12871
+ "props": [
12872
+ {
12873
+ "name": "className",
12874
+ "type": "string",
12875
+ "required": false,
12876
+ "description": "Additional Tailwind classes, merged last.",
12877
+ "source": "dodo"
12878
+ },
12879
+ {
12880
+ "name": "closeLabel",
12881
+ "type": "string",
12882
+ "required": false,
12883
+ "default": "\"Close\"",
12884
+ "description": "Accessible label for the close button.",
12885
+ "source": "dodo"
12886
+ },
12887
+ {
12888
+ "name": "hideCloseButton",
12889
+ "type": "boolean",
12890
+ "required": false,
12891
+ "default": "false",
12892
+ "description": "Hide the close button. The scrim, Escape and a swipe down still close the drawer.",
12893
+ "source": "dodo"
12894
+ },
12895
+ {
12896
+ "name": "hideHandle",
12897
+ "type": "boolean",
12898
+ "required": false,
12899
+ "default": "false",
12900
+ "description": "Hide the drag handle on top. The drawer still closes with a swipe down.",
12901
+ "source": "dodo"
12902
+ },
12903
+ {
12904
+ "name": "portalProps",
12905
+ "type": "DrawerPortalProps",
12906
+ "required": false,
12907
+ "description": "Props for the portal, e.g. a `container` to render the drawer into instead of `document.body`.",
12908
+ "source": "dodo"
12909
+ },
12910
+ {
12911
+ "name": "finalFocus",
12912
+ "type": "boolean | RefObject<HTMLElement | null> | ((closeType: InteractionType) => boolean | void | HTMLElement | null)",
12913
+ "required": false,
12914
+ "description": "Determines the element to focus when the drawer is closed.\n\n- `false`: Do not move focus.\n- `true`: Move focus based on the default behavior (trigger or previously focused element).\n- `RefObject`: Move focus to the ref element.\n- `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).\n Return an element to focus, `true` to use the default behavior, or `false`/`undefined` to do nothing.",
12915
+ "source": "base-ui"
12916
+ },
12917
+ {
12918
+ "name": "initialFocus",
12919
+ "type": "boolean | RefObject<HTMLElement | null> | ((openType: InteractionType) => boolean | void | HTMLElement | null)",
12920
+ "required": false,
12921
+ "description": "Determines the element to focus when the drawer is opened.\n\n- `false`: Do not move focus.\n- `true`: Move focus based on the default behavior (first tabbable element or popup).\n- `RefObject`: Move focus to the ref element.\n- `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).\n Return an element to focus, `true` to use the default behavior, or `false`/`undefined` to do nothing.",
12922
+ "source": "base-ui"
12923
+ },
12924
+ {
12925
+ "name": "render",
12926
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, DrawerPopupState>",
12927
+ "required": false,
12928
+ "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.",
12929
+ "source": "base-ui"
12930
+ }
12931
+ ]
12932
+ },
12933
+ {
12934
+ "name": "Drawer",
12935
+ "description": "Root of a drawer: a modal panel that slides up from the bottom edge and closes with a swipe down, a tap on the\nscrim or Escape (the `Drawer` primitive on Base UI Drawer). Controls open state (`open` / `onOpenChange` or\n`defaultOpen`). `snapPoints` (fractions of the viewport, or px / rem lengths) let it rest at several heights.\nBuilt for phones: on wide screens use a `Dialog` or a `Sheet`.",
12936
+ "props": [
12937
+ {
12938
+ "name": "actionsRef",
12939
+ "type": "RefObject<DrawerRootActions | null>",
12940
+ "required": false,
12941
+ "description": "A ref to imperative actions.\n- `unmount`: Manually unmounts the drawer.\nCall this after any externally controlled closing animation finishes.\n- `close`: Closes the drawer imperatively when called.",
12942
+ "source": "base-ui"
12943
+ },
12944
+ {
12945
+ "name": "defaultOpen",
12946
+ "type": "boolean",
12947
+ "required": false,
12948
+ "default": "false",
12949
+ "description": "Whether the drawer is initially open.\n\nTo render a controlled drawer, use the `open` prop instead.",
12950
+ "source": "base-ui"
12951
+ },
12952
+ {
12953
+ "name": "defaultSnapPoint",
12954
+ "type": "DrawerSnapPoint | null",
12955
+ "required": false,
12956
+ "description": "The initial snap point value when uncontrolled.",
12957
+ "source": "base-ui"
12958
+ },
12959
+ {
12960
+ "name": "defaultTriggerId",
12961
+ "type": "string | null",
12962
+ "required": false,
12963
+ "description": "ID of the trigger that the drawer is associated with.\nThis is useful in conjunction with the `defaultOpen` prop to create an initially open drawer.",
12964
+ "source": "base-ui"
12965
+ },
12966
+ {
12967
+ "name": "disablePointerDismissal",
12968
+ "type": "boolean",
12969
+ "required": false,
12970
+ "default": "false",
12971
+ "description": "Whether to prevent the drawer from closing on outside presses.\nFor non-modal drawers, this also prevents the drawer from closing when focus moves outside of it.",
12972
+ "source": "base-ui"
12973
+ },
12974
+ {
12975
+ "name": "handle",
12976
+ "type": "DrawerHandle<unknown>",
12977
+ "required": false,
12978
+ "description": "A handle to associate the drawer with a trigger.\nIf specified, allows detached triggers to control the drawer's open state.\nCan be created with the Drawer.createHandle() method.",
12979
+ "source": "base-ui"
12980
+ },
12981
+ {
12982
+ "name": "modal",
12983
+ "type": "boolean | \"trap-focus\"",
12984
+ "required": false,
12985
+ "default": "true",
12986
+ "description": "Determines if the drawer enters a modal state when open.\n- `true`: user interaction is limited to just the drawer: focus is trapped, document page scroll is locked, and pointer interactions on outside elements are disabled.\n- `false`: user interaction with the rest of the document is allowed.\n- `'trap-focus'`: focus is trapped inside the drawer, but document page scroll is not locked and pointer interactions outside of it remain enabled.",
12987
+ "source": "base-ui"
12988
+ },
12989
+ {
12990
+ "name": "onOpenChange",
12991
+ "type": "((open: boolean, eventDetails: DrawerRootChangeEventDetails) => void)",
12992
+ "required": false,
12993
+ "description": "Event handler called when the drawer is opened or closed.",
12994
+ "source": "base-ui"
12995
+ },
12996
+ {
12997
+ "name": "onOpenChangeComplete",
12998
+ "type": "((open: boolean) => void)",
12999
+ "required": false,
13000
+ "description": "Event handler called after any animations complete when the drawer is opened or closed.",
13001
+ "source": "base-ui"
13002
+ },
13003
+ {
13004
+ "name": "onSnapPointChange",
13005
+ "type": "((snapPoint: DrawerSnapPoint | null, eventDetails: DrawerRootSnapPointChangeEventDetails) => void)",
13006
+ "required": false,
13007
+ "description": "Callback fired when the snap point changes.",
13008
+ "source": "base-ui"
13009
+ },
13010
+ {
13011
+ "name": "open",
13012
+ "type": "boolean",
13013
+ "required": false,
13014
+ "description": "Whether the drawer is currently open.",
13015
+ "source": "base-ui"
13016
+ },
13017
+ {
13018
+ "name": "snapPoint",
13019
+ "type": "DrawerSnapPoint | null",
13020
+ "required": false,
13021
+ "description": "The currently active snap point. Use with `onSnapPointChange` to control the snap point.",
13022
+ "source": "base-ui"
13023
+ },
13024
+ {
13025
+ "name": "snapPoints",
13026
+ "type": "DrawerSnapPoint[]",
13027
+ "required": false,
13028
+ "description": "Snap points used to position the drawer.\nUse numbers between 0 and 1 to represent fractions of the viewport height,\nnumbers greater than 1 as pixel values, or strings in `px`/`rem` units\n(for example, `'148px'` or `'30rem'`).",
13029
+ "source": "base-ui"
13030
+ },
13031
+ {
13032
+ "name": "snapToSequentialPoints",
13033
+ "type": "boolean",
13034
+ "required": false,
13035
+ "default": "false",
13036
+ "description": "Disables velocity-based snap skipping so drag distance determines the next snap point.",
13037
+ "source": "base-ui"
13038
+ },
13039
+ {
13040
+ "name": "triggerId",
13041
+ "type": "string | null",
13042
+ "required": false,
13043
+ "description": "ID of the trigger that the drawer is associated with.\nThis is useful in conjunction with the `open` prop to create a controlled drawer.\nThere's no need to specify this prop when the drawer is uncontrolled (that is, when the `open` prop is not set).",
13044
+ "source": "base-ui"
13045
+ }
13046
+ ]
13047
+ },
13048
+ {
13049
+ "name": "DrawerClose",
13050
+ "description": "Closes the drawer. Use `render={<Button variant=\"secondary\" />}` for a footer action.",
13051
+ "props": [
13052
+ {
13053
+ "name": "className",
13054
+ "type": "string",
13055
+ "required": false,
13056
+ "description": "Additional Tailwind classes, merged last.",
13057
+ "source": "dodo"
13058
+ },
13059
+ {
13060
+ "name": "nativeButton",
13061
+ "type": "boolean",
13062
+ "required": false,
13063
+ "default": "true",
13064
+ "description": "Whether the component renders a native `<button>` element when replacing it\nvia the `render` prop.\nSet to `false` if the rendered element is not a button (for example, `<div>`).",
13065
+ "source": "base-ui"
13066
+ },
13067
+ {
13068
+ "name": "render",
13069
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, DrawerCloseState>",
13070
+ "required": false,
13071
+ "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.",
13072
+ "source": "base-ui"
13073
+ }
13074
+ ]
13075
+ },
13076
+ {
13077
+ "name": "DrawerDescription",
13078
+ "description": "One or two lines under the title; becomes the drawer's accessible description.",
13079
+ "props": [
13080
+ {
13081
+ "name": "className",
13082
+ "type": "string",
13083
+ "required": false,
13084
+ "description": "Additional Tailwind classes, merged last.",
13085
+ "source": "dodo"
13086
+ },
13087
+ {
13088
+ "name": "render",
13089
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, DrawerDescriptionState>",
13090
+ "required": false,
13091
+ "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.",
13092
+ "source": "base-ui"
13093
+ }
13094
+ ]
13095
+ },
13096
+ {
13097
+ "name": "DrawerFooter",
13098
+ "description": "The actions, on the grey strip under the panel. They share the row: cancel first, the primary action last.",
13099
+ "props": []
13100
+ },
13101
+ {
13102
+ "name": "DrawerHeader",
13103
+ "description": "The top of the white panel: `DrawerTitle` and an optional `DrawerDescription`.",
13104
+ "props": []
13105
+ },
13106
+ {
13107
+ "name": "DrawerPanel",
13108
+ "description": "The body of the white panel. It scrolls inside the drawer, under the header and above the footer.",
13109
+ "props": [
13110
+ {
13111
+ "name": "scrollFade",
13112
+ "type": "boolean",
13113
+ "required": false,
13114
+ "default": "true",
13115
+ "description": "Fade the content at the edges it scrolls under.",
13116
+ "source": "dodo"
13117
+ }
13118
+ ]
13119
+ },
13120
+ {
13121
+ "name": "DrawerTitle",
13122
+ "description": "The drawer's accessible name. Required.",
13123
+ "props": [
13124
+ {
13125
+ "name": "className",
13126
+ "type": "string",
13127
+ "required": false,
13128
+ "description": "Additional Tailwind classes, merged last.",
13129
+ "source": "dodo"
13130
+ },
13131
+ {
13132
+ "name": "render",
13133
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, DrawerTitleState>",
13134
+ "required": false,
13135
+ "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.",
13136
+ "source": "base-ui"
13137
+ }
13138
+ ]
13139
+ },
13140
+ {
13141
+ "name": "DrawerTrigger",
13142
+ "description": "Opens the drawer. Use `render={<Button />}` to style it as a Dodo button.",
13143
+ "props": [
13144
+ {
13145
+ "name": "className",
13146
+ "type": "string",
13147
+ "required": false,
13148
+ "description": "Additional Tailwind classes, merged last.",
13149
+ "source": "dodo"
13150
+ },
13151
+ {
13152
+ "name": "handle",
13153
+ "type": "DrawerHandle<unknown>",
13154
+ "required": false,
13155
+ "description": "A handle to associate the trigger with a drawer.\nCan be created with the Drawer.createHandle() method.",
13156
+ "source": "base-ui"
13157
+ },
13158
+ {
13159
+ "name": "id",
13160
+ "type": "string",
13161
+ "required": false,
13162
+ "description": "ID of the trigger. In addition to being forwarded to the rendered element,\nit is also used to specify the active trigger for drawers in controlled mode (with the Drawer.Root `triggerId` prop).",
13163
+ "source": "base-ui"
13164
+ },
13165
+ {
13166
+ "name": "nativeButton",
13167
+ "type": "boolean",
13168
+ "required": false,
13169
+ "default": "true",
13170
+ "description": "Whether the component renders a native `<button>` element when replacing it\nvia the `render` prop.\nSet to `false` if the rendered element is not a button (for example, `<div>`).",
13171
+ "source": "base-ui"
13172
+ },
13173
+ {
13174
+ "name": "payload",
13175
+ "type": "unknown",
13176
+ "required": false,
13177
+ "description": "A payload to pass to the drawer when it is opened.",
13178
+ "source": "base-ui"
13179
+ },
13180
+ {
13181
+ "name": "render",
13182
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, DrawerTriggerState>",
13183
+ "required": false,
13184
+ "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.",
13185
+ "source": "base-ui"
13186
+ }
13187
+ ]
13188
+ }
13189
+ ],
13190
+ "examples": [
13191
+ {
13192
+ "name": "drawer/basic",
13193
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerPanel,\n DrawerTitle,\n DrawerTrigger,\n} from \"@dodopayments/ui/drawer\";\nimport { Field, FieldDescription, FieldLabel } from \"@dodopayments/ui/field\";\nimport { Input } from \"@dodopayments/ui/input\";\n\nexport default function DrawerBasic() {\n return (\n <Drawer>\n <DrawerTrigger render={<Button variant=\"secondary\" />}>Initiate refund</DrawerTrigger>\n <DrawerContent>\n <DrawerHeader>\n <DrawerTitle>Initiate refund</DrawerTitle>\n <DrawerDescription>Payment pay_7Hq2Xa…Lm3d · $49.00 · Visa •••• 4242</DrawerDescription>\n </DrawerHeader>\n <DrawerPanel>\n <div className=\"flex flex-col gap-4\">\n <Field>\n <FieldLabel>Amount</FieldLabel>\n <Input type=\"money\" currency=\"USD\" defaultValue={4900} />\n </Field>\n <Field>\n <FieldLabel>Reason</FieldLabel>\n <FieldDescription>Shown to the customer on the refund receipt.</FieldDescription>\n <Input placeholder=\"Duplicate charge\" />\n </Field>\n </div>\n </DrawerPanel>\n <DrawerFooter>\n <DrawerClose render={<Button variant=\"secondary\" />}>Cancel</DrawerClose>\n <DrawerClose render={<Button />}>Refund $49.00</DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n </Drawer>\n );\n}"
13194
+ },
13195
+ {
13196
+ "name": "drawer/master",
13197
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@dodopayments/ui/drawer\";\n\nexport default function DrawerMaster() {\n return (\n <Drawer>\n <DrawerTrigger render={<Button variant=\"secondary\" />}>Open drawer</DrawerTrigger>\n <DrawerContent>\n <DrawerHeader>\n <DrawerTitle>Pause subscription?</DrawerTitle>\n <DrawerDescription>\n Billing stops today. The customer keeps access until 14 December.\n </DrawerDescription>\n </DrawerHeader>\n <DrawerFooter>\n <DrawerClose render={<Button variant=\"secondary\" />}>Cancel</DrawerClose>\n <DrawerClose render={<Button variant=\"warning\" />}>Pause</DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n </Drawer>\n );\n}"
13198
+ },
13199
+ {
13200
+ "name": "drawer/nested",
13201
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@dodopayments/ui/drawer\";\n\nexport default function DrawerNested() {\n return (\n <Drawer>\n <DrawerTrigger render={<Button variant=\"secondary\" />}>Cancel subscription</DrawerTrigger>\n <DrawerContent>\n <DrawerHeader>\n <DrawerTitle>Cancel subscription</DrawerTitle>\n <DrawerDescription>\n Pro plan · $49.00 a month. The customer keeps access until 14 December.\n </DrawerDescription>\n </DrawerHeader>\n <DrawerFooter>\n <DrawerClose render={<Button variant=\"secondary\" />}>Keep it</DrawerClose>\n <Drawer>\n <DrawerTrigger render={<Button variant=\"destructive\" />}>Cancel now</DrawerTrigger>\n <DrawerContent>\n <DrawerHeader>\n <DrawerTitle>Cancel right away?</DrawerTitle>\n <DrawerDescription>\n Access ends now and the unused days are not refunded.\n </DrawerDescription>\n </DrawerHeader>\n <DrawerFooter>\n <DrawerClose render={<Button variant=\"secondary\" />}>Back</DrawerClose>\n <DrawerClose render={<Button variant=\"destructive\" />}>Cancel now</DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n </Drawer>\n </DrawerFooter>\n </DrawerContent>\n </Drawer>\n );\n}"
13202
+ },
13203
+ {
13204
+ "name": "drawer/snap-points",
13205
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport {\n Drawer,\n DrawerContent,\n DrawerDescription,\n DrawerHeader,\n DrawerPanel,\n DrawerTitle,\n DrawerTrigger,\n} from \"@dodopayments/ui/drawer\";\n\nconst EVENTS = [\n \"payment.succeeded\",\n \"payment.failed\",\n \"refund.succeeded\",\n \"subscription.active\",\n \"subscription.on_hold\",\n \"subscription.renewed\",\n \"subscription.cancelled\",\n \"dispute.opened\",\n \"dispute.won\",\n \"dispute.lost\",\n \"license_key.created\",\n \"payout.succeeded\",\n];\n\nexport default function DrawerSnapPoints() {\n return (\n <Drawer snapPoints={[0.5, 1]}>\n <DrawerTrigger render={<Button variant=\"secondary\" />}>Webhook events</DrawerTrigger>\n <DrawerContent>\n <DrawerHeader>\n <DrawerTitle>Webhook events</DrawerTitle>\n <DrawerDescription>Drag up to see the full list.</DrawerDescription>\n </DrawerHeader>\n <DrawerPanel>\n <ul className=\"flex flex-col gap-3\">\n {EVENTS.map((event) => (\n <li key={event} className=\"text-mono-primary text-foreground\">\n {event}\n </li>\n ))}\n </ul>\n </DrawerPanel>\n </DrawerContent>\n </Drawer>\n );\n}"
13206
+ }
13207
+ ],
13208
+ "docsUrl": "/components/drawer"
13209
+ },
12492
13210
  {
12493
13211
  "slug": "direction-provider",
12494
13212
  "title": "Direction Provider",
@@ -12608,10 +13326,10 @@
12608
13326
  },
12609
13327
  {
12610
13328
  "name": "titleAs",
12611
- "type": "\"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\"",
13329
+ "type": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\"",
12612
13330
  "required": false,
12613
13331
  "default": "\"h2\"",
12614
- "description": "Element used for the title. Match the heading outline of the page, or use `\"p\"` when it must not be a heading.",
13332
+ "description": "Element used for the title. Match the heading outline of the page (`\"h1\"` when the empty state is the whole page,\ne.g. a lost connection), or use `\"p\"` when it must not be a heading.",
12615
13333
  "source": "dodo"
12616
13334
  },
12617
13335
  {
@@ -12664,6 +13382,7 @@
12664
13382
  "FieldLabel",
12665
13383
  "FieldLabelProps",
12666
13384
  "FieldProps",
13385
+ "LabelRequiredIndicator",
12667
13386
  "fieldVariants"
12668
13387
  ],
12669
13388
  "parts": [
@@ -12703,7 +13422,7 @@
12703
13422
  "name": "expanded",
12704
13423
  "type": "ReactNode",
12705
13424
  "required": false,
12706
- "description": "Content under the description in the horizontal layout, 12 below it, in a row 8 apart: what a\nswitch reveals when it is on (an Input and an Edit button), or a row with no switch that edits a\nvalue. With a row control (`children`), the expanded controls get their own Field, so give them an\n`aria-label`; without one, the expanded control is the field's control. Horizontal layout only.",
13425
+ "description": "Content in the horizontal layout, 12 below the text, in a row 8 apart: what a switch reveals when\nit is on (an Input and an Edit button), or a row with no switch that edits a value. With a row\ncontrol (`children`), it spans the whole row under the text and the control (under the control on\na phone), and the expanded controls get their own Field, so give them an `aria-label`; without\none, it sits under the description and the expanded control is the field's control. Horizontal\nlayout only.",
12707
13426
  "source": "dodo"
12708
13427
  },
12709
13428
  {
@@ -12741,7 +13460,7 @@
12741
13460
  },
12742
13461
  {
12743
13462
  "value": "horizontal",
12744
- "description": "Text block (label row, description, expanded content, error) on the leading side, the control on the trailing side, 16 apart. For settings that apply on their own. Stacks below 640px."
13463
+ "description": "Text block (label row, description, error) on the leading side, the control on the trailing side, 16 apart; expanded content under them, across the row. For settings that apply on their own. Stacks below 640px."
12745
13464
  }
12746
13465
  ],
12747
13466
  "default": "\"vertical\""
@@ -12931,7 +13650,7 @@
12931
13650
  },
12932
13651
  {
12933
13652
  "name": "size",
12934
- "type": "\"lg\" | null",
13653
+ "type": "\"code\" | \"sm\" | \"lg\" | null",
12935
13654
  "required": false,
12936
13655
  "description": "",
12937
13656
  "source": "dodo"
@@ -12961,7 +13680,7 @@
12961
13680
  "name": "suggestionsEmpty",
12962
13681
  "type": "ReactNode",
12963
13682
  "required": false,
12964
- "description": "Text shown in the list when no suggestion matches, announced politely. Without it the list hides instead.",
13683
+ "description": "Text shown in the list when no suggestion matches, announced politely. Without it the list closes instead.",
12965
13684
  "source": "dodo"
12966
13685
  },
12967
13686
  {
@@ -13121,6 +13840,19 @@
13121
13840
  "source": "base-ui"
13122
13841
  }
13123
13842
  ]
13843
+ },
13844
+ {
13845
+ "name": "LabelRequiredIndicator",
13846
+ "description": "Decorative required marker shared by `Label` and `FieldLabel`. Hidden from assistive\ntechnology: the control's own `required` attribute is what gets announced. Exported for a\nheading over a required group of fields; give it `className=\"ms-1\"` there.",
13847
+ "props": [
13848
+ {
13849
+ "name": "className",
13850
+ "type": "string",
13851
+ "required": false,
13852
+ "description": "Additional Tailwind classes, merged last.",
13853
+ "source": "dodo"
13854
+ }
13855
+ ]
13124
13856
  }
13125
13857
  ],
13126
13858
  "examples": [
@@ -13508,7 +14240,7 @@
13508
14240
  },
13509
14241
  {
13510
14242
  "name": "size",
13511
- "type": "\"default\" | \"icon\" | \"xs\" | \"lg\" | \"icon-xs\" | \"icon-lg\" | null",
14243
+ "type": "\"default\" | \"sm\" | \"icon\" | \"xs\" | \"lg\" | \"icon-sm\" | \"icon-xs\" | \"icon-lg\" | null",
13512
14244
  "required": false,
13513
14245
  "description": "",
13514
14246
  "source": "dodo"
@@ -13740,6 +14472,85 @@
13740
14472
  ],
13741
14473
  "docsUrl": "/components/file-upload"
13742
14474
  },
14475
+ {
14476
+ "slug": "image-crop",
14477
+ "title": "Image Crop",
14478
+ "category": "Forms",
14479
+ "status": "stable",
14480
+ "description": "Crops a picked image before it is uploaded, as the dashboard's image fields do (main's ImageUpload): the\nwhole image with a box of `aspect` over it, 90% of the image and centred to start. Drag the box to move it,\na corner to resize it, or move it with the arrow keys. Crop draws the boxed area to a canvas, shrinks it so\nits longer side is at most `maxDimension`, and calls `onCrop` with the new file. Put it beside a\n`FileUpload`: open it with the picked file, and upload what `onCrop` returns. It stays mounted and toggles\n`open`; its state starts fresh for every file.",
14481
+ "importPath": "@dodopayments/ui/image-crop",
14482
+ "exports": [
14483
+ "ImageCropDialog",
14484
+ "ImageCropDialogProps"
14485
+ ],
14486
+ "parts": [
14487
+ {
14488
+ "name": "ImageCropDialog",
14489
+ "description": "Crops a picked image before it is uploaded, as the dashboard's image fields do (main's ImageUpload): the\nwhole image with a box of `aspect` over it, 90% of the image and centred to start. Drag the box to move it,\na corner to resize it, or move it with the arrow keys. Crop draws the boxed area to a canvas, shrinks it so\nits longer side is at most `maxDimension`, and calls `onCrop` with the new file. Put it beside a\n`FileUpload`: open it with the picked file, and upload what `onCrop` returns. It stays mounted and toggles\n`open`; its state starts fresh for every file.",
14490
+ "props": [
14491
+ {
14492
+ "name": "file",
14493
+ "type": "File | null",
14494
+ "required": true,
14495
+ "description": "The picked image. The dialog shows it while `open`.",
14496
+ "source": "dodo"
14497
+ },
14498
+ {
14499
+ "name": "onCrop",
14500
+ "type": "(file: File) => void",
14501
+ "required": true,
14502
+ "description": "Called with the cropped image: the same name, and the same type when it is JPEG, PNG or WebP (else PNG).",
14503
+ "source": "dodo"
14504
+ },
14505
+ {
14506
+ "name": "onOpenChange",
14507
+ "type": "(open: boolean) => void",
14508
+ "required": true,
14509
+ "description": "",
14510
+ "source": "dodo"
14511
+ },
14512
+ {
14513
+ "name": "open",
14514
+ "type": "boolean",
14515
+ "required": true,
14516
+ "description": "",
14517
+ "source": "dodo"
14518
+ },
14519
+ {
14520
+ "name": "aspect",
14521
+ "type": "number",
14522
+ "required": false,
14523
+ "default": "1",
14524
+ "description": "Width over height of the crop, e.g. `1` for a product image or `16 / 9` for a banner.",
14525
+ "source": "dodo"
14526
+ },
14527
+ {
14528
+ "name": "maxDimension",
14529
+ "type": "number",
14530
+ "required": false,
14531
+ "default": "1920",
14532
+ "description": "The longest side of the output in pixels; a larger crop is shrunk to it, a smaller one kept.",
14533
+ "source": "dodo"
14534
+ },
14535
+ {
14536
+ "name": "title",
14537
+ "type": "string",
14538
+ "required": false,
14539
+ "default": "the locale's `imageCropTitle` (\"Crop image\")",
14540
+ "description": "Accessible title.",
14541
+ "source": "dodo"
14542
+ }
14543
+ ]
14544
+ }
14545
+ ],
14546
+ "examples": [
14547
+ {
14548
+ "name": "image-crop/master",
14549
+ "code": "\"use client\";\n\nimport { FileUpload } from \"@dodopayments/ui/file-upload\";\nimport { ImageCropDialog } from \"@dodopayments/ui/image-crop\";\nimport { useEffect, useState } from \"react\";\n\nexport default function ImageCropMaster() {\n const [picked, setPicked] = useState<File | null>(null);\n const [open, setOpen] = useState(false);\n const [preview, setPreview] = useState<string | null>(null);\n\n useEffect(\n () => () => {\n if (preview) URL.revokeObjectURL(preview);\n },\n [preview],\n );\n\n return (\n <div className=\"flex w-full max-w-120 flex-col gap-4\">\n <FileUpload\n accept=\"image/png,image/jpeg,image/webp\"\n description=\"PNG, JPG or WebP, up to 3 MB. Cropped to a square.\"\n maxSize={3 * 1024 * 1024}\n onFilesAdded={([file]) => {\n if (!file) return;\n setPicked(file);\n setOpen(true);\n }}\n />\n {preview ? (\n // biome-ignore lint/performance/noImgElement: a local object URL in a demo.\n <img\n alt=\"Cropped\"\n className=\"size-24 rounded-lg border border-border object-cover\"\n src={preview}\n />\n ) : null}\n <ImageCropDialog\n file={picked}\n open={open}\n onOpenChange={setOpen}\n onCrop={(file: File) => {\n setPreview(URL.createObjectURL(file));\n setOpen(false);\n }}\n />\n </div>\n );\n}"
14550
+ }
14551
+ ],
14552
+ "docsUrl": "/components/image-crop"
14553
+ },
13743
14554
  {
13744
14555
  "slug": "grid",
13745
14556
  "title": "Grid",
@@ -14208,7 +15019,7 @@
14208
15019
  "title": "Input",
14209
15020
  "category": "Forms",
14210
15021
  "status": "stable",
14211
- "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 (one size). A one-line input takes icons, an inline `prefix` / `suffix`,\na boxed `addon`, `prefixSelect` / `suffixSelect` and a `shortcut`; read-only shows a copy button. With\n`suggestions` it suggests values in a list while the user types (an autocomplete; the value stays free text). Inside\na `Field` it picks up the label, description and validation state.",
15022
+ "description": "The Dodo Nest Input. Lets the merchant type a value: one line (text, search, URLs, phone), several lines\n(`type=\"textarea\"`), a list of chips (`type=\"chips\"`, typed, or picked from `suggestions`), an amount in minor\nunits (`type=\"money\"`), a phone number with a country picker (`type=\"phone\"`) or a GSTIN / ABN (`type=\"tax-id\"`). A flat field on the panel: 1px Border/Primary, Radius/Medium,\na brand ring on focus, a red ring when invalid (the placeholder stays muted), grey (Surface/Secondary) when read-only. Every Input\nis 36 tall; a one-line input can be the compact `size=\"sm\"` (28), or `size=\"code\"` (56, large centred monospace) for one code read off another screen. A one-line input takes icons, an inline `prefix` / `suffix`,\na boxed `addon`, `prefixSelect` / `suffixSelect` and a `shortcut`; read-only shows a copy button (`copyable={false}` hides it,\nwhen the page already offers its own copy action). With\n`suggestions` it suggests values in a list while the user types (an autocomplete; the value stays free text). Inside\na `Field` it picks up the label, description and validation state.",
14212
15023
  "importPath": "@dodopayments/ui/input",
14213
15024
  "exports": [
14214
15025
  "DODO_INPUT_DEFAULT_VARIANTS",
@@ -14241,7 +15052,7 @@
14241
15052
  "parts": [
14242
15053
  {
14243
15054
  "name": "Input",
14244
- "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 (one size). A one-line input takes icons, an inline `prefix` / `suffix`,\na boxed `addon`, `prefixSelect` / `suffixSelect` and a `shortcut`; read-only shows a copy button. With\n`suggestions` it suggests values in a list while the user types (an autocomplete; the value stays free text). Inside\na `Field` it picks up the label, description and validation state.",
15055
+ "description": "The Dodo Nest Input. Lets the merchant type a value: one line (text, search, URLs, phone), several lines\n(`type=\"textarea\"`), a list of chips (`type=\"chips\"`, typed, or picked from `suggestions`), an amount in minor\nunits (`type=\"money\"`), a phone number with a country picker (`type=\"phone\"`) or a GSTIN / ABN (`type=\"tax-id\"`). A flat field on the panel: 1px Border/Primary, Radius/Medium,\na brand ring on focus, a red ring when invalid (the placeholder stays muted), grey (Surface/Secondary) when read-only. Every Input\nis 36 tall; a one-line input can be the compact `size=\"sm\"` (28), or `size=\"code\"` (56, large centred monospace) for one code read off another screen. A one-line input takes icons, an inline `prefix` / `suffix`,\na boxed `addon`, `prefixSelect` / `suffixSelect` and a `shortcut`; read-only shows a copy button (`copyable={false}` hides it,\nwhen the page already offers its own copy action). With\n`suggestions` it suggests values in a list while the user types (an autocomplete; the value stays free text). Inside\na `Field` it picks up the label, description and validation state.",
14245
15056
  "props": [
14246
15057
  {
14247
15058
  "name": "aria-label",
@@ -14374,6 +15185,14 @@
14374
15185
  "name": "input/async-suggestions",
14375
15186
  "code": "\"use client\";\n\nimport { Field } from \"@dodopayments/ui/field\";\nimport { Input, type InputSuggestionItem } from \"@dodopayments/ui/input\";\nimport { useEffect, useRef, useState } from \"react\";\n\nconst products = [\n { value: \"pdt_01\", label: \"Framer Template\", description: \"One-time · $49.00\" },\n { value: \"pdt_02\", label: \"Pro plan\", description: \"Subscription · $29.00 / month\" },\n { value: \"pdt_03\", label: \"Team plan\", description: \"Subscription · $99.00 / month\" },\n { value: \"pdt_04\", label: \"Icon pack\", description: \"One-time · $19.00\" },\n { value: \"pdt_05\", label: \"API credits\", description: \"Usage based · $0.002 / call\" },\n] satisfies InputSuggestionItem[];\n\n/** Stands in for a product search request: answers after 600 ms. */\nfunction searchProducts(query: string, signal: AbortSignal): Promise<InputSuggestionItem[]> {\n return new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n const needle = query.trim().toLowerCase();\n resolve(\n products.filter((product) =>\n `${product.label} ${product.description}`.toLowerCase().includes(needle),\n ),\n );\n }, 600);\n signal.addEventListener(\"abort\", () => {\n clearTimeout(timer);\n reject(new Error(\"Search cancelled\"));\n });\n });\n}\n\nexport default function InputAsyncSuggestions() {\n const [query, setQuery] = useState(\"\");\n const [results, setResults] = useState<InputSuggestionItem[]>([]);\n const [loading, setLoading] = useState(false);\n const request = useRef<AbortController | null>(null);\n useEffect(() => () => request.current?.abort(), []);\n\n const search = (next: string) => {\n setQuery(next);\n request.current?.abort();\n if (next.trim() === \"\") {\n setResults([]);\n setLoading(false);\n return;\n }\n const controller = new AbortController();\n request.current = controller;\n setLoading(true);\n searchProducts(next, controller.signal)\n .then((found) => {\n setResults(found);\n setLoading(false);\n })\n .catch(() => undefined);\n };\n\n return (\n <Field\n label=\"Product\"\n description=\"Results come from the server as you type.\"\n className=\"w-full max-w-sm\"\n >\n <Input\n placeholder=\"Search products\"\n value={query}\n onValueChange={search}\n // The server already matched these, so the Input shows them as they are.\n suggestions={loading ? [] : results}\n filterSuggestions={false}\n suggestionsLoading={loading}\n suggestionsLoadingText=\"Searching products\"\n suggestionsEmpty={query.trim() === \"\" ? undefined : \"No products found.\"}\n clearable\n />\n </Field>\n );\n}"
14376
15187
  },
15188
+ {
15189
+ "name": "input/code",
15190
+ "code": "\"use client\";\n\nimport { Input } from \"@dodopayments/ui/input\";\n\nexport default function InputCode() {\n return (\n <div className=\"w-full max-w-sm\">\n <Input\n size=\"code\"\n aria-label=\"Device code\"\n placeholder=\"XXXX-XXXX\"\n autoCapitalize=\"characters\"\n autoComplete=\"off\"\n spellCheck={false}\n />\n </div>\n );\n}"
15191
+ },
15192
+ {
15193
+ "name": "input/compact",
15194
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { MagnifierIcon } from \"@dodopayments/ui/icons\";\nimport { Input } from \"@dodopayments/ui/input\";\nimport { Select, SelectContent, SelectTrigger, SelectValue } from \"@dodopayments/ui/select\";\n\nconst STATUSES = [\n { value: \"all\", label: \"All statuses\" },\n { value: \"succeeded\", label: \"Succeeded\" },\n { value: \"failed\", label: \"Failed\" },\n];\n\nexport default function InputCompact() {\n return (\n <div className=\"flex w-full max-w-xl flex-wrap items-center gap-2\">\n <Input\n size=\"sm\"\n type=\"search\"\n aria-label=\"Search payments\"\n placeholder=\"Search payments\"\n leadingIcon={<MagnifierIcon />}\n className=\"min-w-40 flex-1\"\n />\n <Select items={STATUSES} defaultValue=\"all\">\n <SelectTrigger size=\"sm\" aria-label=\"Status\" className=\"w-40\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent />\n </Select>\n <Button size=\"sm\" variant=\"secondary\">\n Reset\n </Button>\n </div>\n );\n}"
15195
+ },
14377
15196
  {
14378
15197
  "name": "input/country-lookup",
14379
15198
  "code": "\"use client\";\n\nimport { Field } from \"@dodopayments/ui/field\";\nimport { Flag } from \"@dodopayments/ui/payment-logos\";\nimport { Input, type InputSuggestion } from \"@dodopayments/ui/input\";\n\nconst countries = [\n { value: \"IN\", label: \"India\", description: \"INR · Indian rupee\", icon: <Flag country=\"IN\" /> },\n {\n value: \"US\",\n label: \"United States\",\n description: \"USD · US dollar\",\n icon: <Flag country=\"US\" />,\n },\n {\n value: \"GB\",\n label: \"United Kingdom\",\n description: \"GBP · Pound sterling\",\n icon: <Flag country=\"GB\" />,\n },\n { value: \"DE\", label: \"Germany\", description: \"EUR · Euro\", icon: <Flag country=\"DE\" /> },\n { value: \"FR\", label: \"France\", description: \"EUR · Euro\", icon: <Flag country=\"FR\" /> },\n { value: \"JP\", label: \"Japan\", description: \"JPY · Japanese yen\", icon: <Flag country=\"JP\" /> },\n {\n value: \"SG\",\n label: \"Singapore\",\n description: \"SGD · Singapore dollar\",\n icon: <Flag country=\"SG\" />,\n },\n {\n value: \"AU\",\n label: \"Australia\",\n description: \"AUD · Australian dollar\",\n icon: <Flag country=\"AU\" />,\n },\n {\n value: \"CA\",\n label: \"Canada\",\n description: \"CAD · Canadian dollar\",\n icon: <Flag country=\"CA\" />,\n },\n {\n value: \"BR\",\n label: \"Brazil\",\n description: \"BRL · Brazilian real\",\n icon: <Flag country=\"BR\" />,\n },\n];\n\n/** Matches the country name, its ISO code or its currency code, so \"eur\" finds Germany and France. */\nfunction matchCountry(suggestion: InputSuggestion, query: string) {\n if (typeof suggestion === \"string\") return false;\n const country = countries.find((item) => item.value === suggestion.value);\n const text = `${suggestion.label} ${suggestion.value} ${country?.description ?? \"\"}`;\n return text.toLowerCase().includes(query.trim().toLowerCase());\n}\n\nexport default function InputCountryLookup() {\n return (\n <Field\n label=\"Country or currency\"\n description=\"Type a name, an ISO code (IN) or a currency (EUR).\"\n className=\"w-full max-w-sm\"\n >\n <Input\n placeholder=\"e.g. India or EUR\"\n suggestions={countries}\n filterSuggestions={matchCountry}\n suggestionsEmpty=\"No country or currency matches.\"\n openSuggestionsOnClick\n suggestionsTrigger\n />\n </Field>\n );\n}"
@@ -14560,10 +15379,10 @@
14560
15379
  },
14561
15380
  {
14562
15381
  "name": "size",
14563
- "type": "\"lg\"",
15382
+ "type": "\"sm\" | \"lg\"",
14564
15383
  "required": false,
14565
15384
  "default": "\"lg\"",
14566
- "description": "Input height, as `Input` (`DODO_INPUT_VARIANTS`): one size, `lg` 36.",
15385
+ "description": "Input height, as `Input` (`DODO_INPUT_VARIANTS`): `lg` 36 or the compact `sm` 28.",
14567
15386
  "source": "dodo"
14568
15387
  },
14569
15388
  {
@@ -14670,7 +15489,7 @@
14670
15489
  "title": "Menu",
14671
15490
  "category": "Overlays",
14672
15491
  "status": "stable",
14673
- "description": "The floating list of actions (the `MenuPopup` primitive: portal + positioner + popup): Surface/Overlay,\nRadius/Large, 160 to 320 wide, scrolls past 320 tall. Below 640px it opens as a bottom sheet over a scrim,\nfull width, with the same items. Holds `MenuItem`, `MenuLinkItem`, `MenuCheckboxItem`, `MenuRadioGroup`,\n`MenuGroup`, `MenuSeparator` and `MenuSub`.",
15492
+ "description": "The floating list of actions (the `MenuPopup` primitive: portal + positioner + popup): Surface/Overlay,\nRadius/Large, 160 to 320 wide, scrolls past 320 tall. With `mobileSheet` it opens below 640px as a bottom sheet\nover a scrim, full width, with the same items. Holds `MenuItem`, `MenuLinkItem`, `MenuCheckboxItem`, `MenuRadioGroup`,\n`MenuGroup`, `MenuSeparator` and `MenuSub`.",
14674
15493
  "importPath": "@dodopayments/ui/menu",
14675
15494
  "exports": [
14676
15495
  "Menu",
@@ -14706,7 +15525,7 @@
14706
15525
  "parts": [
14707
15526
  {
14708
15527
  "name": "MenuContent",
14709
- "description": "The floating list of actions (the `MenuPopup` primitive: portal + positioner + popup): Surface/Overlay,\nRadius/Large, 160 to 320 wide, scrolls past 320 tall. Below 640px it opens as a bottom sheet over a scrim,\nfull width, with the same items. Holds `MenuItem`, `MenuLinkItem`, `MenuCheckboxItem`, `MenuRadioGroup`,\n`MenuGroup`, `MenuSeparator` and `MenuSub`.",
15528
+ "description": "The floating list of actions (the `MenuPopup` primitive: portal + positioner + popup): Surface/Overlay,\nRadius/Large, 160 to 320 wide, scrolls past 320 tall. With `mobileSheet` it opens below 640px as a bottom sheet\nover a scrim, full width, with the same items. Holds `MenuItem`, `MenuLinkItem`, `MenuCheckboxItem`, `MenuRadioGroup`,\n`MenuGroup`, `MenuSeparator` and `MenuSub`.",
14710
15529
  "props": [
14711
15530
  {
14712
15531
  "name": "align",
@@ -14748,8 +15567,8 @@
14748
15567
  "name": "mobileSheet",
14749
15568
  "type": "boolean",
14750
15569
  "required": false,
14751
- "default": "true",
14752
- "description": "Below 640px the menu opens as a bottom sheet (Figma Menu › Responsive). Set `false` to keep the popover,\ne.g. for a menu inside a sheet.",
15570
+ "default": "false",
15571
+ "description": "Below 640px, open the menu as a bottom sheet over a scrim, full width (Figma Menu › Responsive). Off by\ndefault: the menu stays a popover on its trigger at every width.",
14753
15572
  "source": "dodo"
14754
15573
  },
14755
15574
  {
@@ -15442,7 +16261,7 @@
15442
16261
  },
15443
16262
  {
15444
16263
  "name": "MenuSubContent",
15445
- "description": "The nested list. Opens beside its `MenuSubTrigger`, aligned with the trigger row. Below 640px it opens as a bottom\nsheet over its parent, with a Back row (`backLabel`) that closes only the submenu.",
16264
+ "description": "The nested list. Opens beside its `MenuSubTrigger`, aligned with the trigger row. With `mobileSheet` (set it on the\nparent `MenuContent` too) it opens below 640px as a bottom sheet over its parent, with a Back row (`backLabel`)\nthat closes only the submenu.",
15446
16265
  "props": [
15447
16266
  {
15448
16267
  "name": "align",
@@ -15470,7 +16289,7 @@
15470
16289
  "name": "backLabel",
15471
16290
  "type": "string",
15472
16291
  "required": false,
15473
- "description": "Text of the row that returns to the parent menu. Below 640px the submenu opens as a bottom sheet over its parent\nand starts with this row. Defaults to the `back` message of the `LocaleProvider` (\"Back\" in English).",
16292
+ "description": "Text of the row that returns to the parent menu. With `mobileSheet`, the submenu opens below 640px as a bottom\nsheet over its parent and starts with this row. Defaults to the `back` message of the `LocaleProvider` (\"Back\" in English).",
15474
16293
  "source": "dodo"
15475
16294
  },
15476
16295
  {
@@ -15491,8 +16310,8 @@
15491
16310
  "name": "mobileSheet",
15492
16311
  "type": "boolean",
15493
16312
  "required": false,
15494
- "default": "true",
15495
- "description": "Below 640px the menu opens as a bottom sheet (Figma Menu › Responsive). Set `false` to keep the popover,\ne.g. for a menu inside a sheet.",
16313
+ "default": "false",
16314
+ "description": "Below 640px, open the menu as a bottom sheet over a scrim, full width (Figma Menu › Responsive). Off by\ndefault: the menu stays a popover on its trigger at every width.",
15496
16315
  "source": "dodo"
15497
16316
  },
15498
16317
  {
@@ -16082,6 +16901,14 @@
16082
16901
  "description": "Space in px to keep between the popover and the edges of the viewport. When the popover does\nnot fit on `side`, it flips to the opposite side and then shifts along the edge.",
16083
16902
  "source": "dodo"
16084
16903
  },
16904
+ {
16905
+ "name": "mobileSheet",
16906
+ "type": "boolean",
16907
+ "required": false,
16908
+ "default": "false",
16909
+ "description": "Below 640px, open as a bottom sheet over a scrim, full width, as Menu and Select can. Off by default: turn it\non for a panel without text fields (notifications, a list of choices). A sheet sits at the bottom edge, where\nthe software keyboard would cover a field; for a form on a phone, use a `Dialog` or a `Drawer`.",
16910
+ "source": "dodo"
16911
+ },
16085
16912
  {
16086
16913
  "name": "portalProps",
16087
16914
  "type": "PopoverPortalProps",
@@ -16339,6 +17166,13 @@
16339
17166
  "description": "Additional Tailwind classes, merged last.",
16340
17167
  "source": "dodo"
16341
17168
  },
17169
+ {
17170
+ "name": "description",
17171
+ "type": "ReactNode",
17172
+ "required": false,
17173
+ "description": "The notice's body under the title, up to two lines (Body/Secondary).",
17174
+ "source": "dodo"
17175
+ },
16342
17176
  {
16343
17177
  "name": "icon",
16344
17178
  "type": "ReactNode",
@@ -16350,7 +17184,14 @@
16350
17184
  "name": "id",
16351
17185
  "type": "ReactNode",
16352
17186
  "required": false,
16353
- "description": "The object ID (Mono/Primary).",
17187
+ "description": "The object ID (Mono/Primary).",
17188
+ "source": "dodo"
17189
+ },
17190
+ {
17191
+ "name": "onClick",
17192
+ "type": "(() => void)",
17193
+ "required": false,
17194
+ "description": "Makes the whole row a button, e.g. to open what the notice is about.",
16354
17195
  "source": "dodo"
16355
17196
  },
16356
17197
  {
@@ -16496,7 +17337,7 @@
16496
17337
  },
16497
17338
  {
16498
17339
  "name": "popover/notifications",
16499
- "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { BellIcon, CreditCardIcon, DotsIcon, GearIcon, UserIcon } from \"@dodopayments/ui/icons\";\nimport {\n Popover,\n PopoverContent,\n PopoverHeader,\n PopoverNotificationItem,\n PopoverPanel,\n PopoverTitle,\n PopoverTrigger,\n} from \"@dodopayments/ui/popover\";\nimport { Tabs, TabsList, TabsTrigger } from \"@dodopayments/ui/tabs\";\n\nconst NOTIFICATIONS = [\n { title: \"Payment succeeded\", id: \"pay_0NlZbY…k09c\", time: \"2 min ago\", unread: true },\n { title: \"Refund processed\", id: \"rfd_0NmQ8x…T2aP\", time: \"1 hr ago\", unread: true },\n { title: \"Dispute opened\", id: \"dsp_0NkR4c…9WqL\", time: \"Yesterday\", unread: false },\n];\n\nexport default function PopoverNotifications() {\n return (\n <Popover>\n <PopoverTrigger\n render={<Button variant=\"secondary\" size=\"icon-lg\" aria-label=\"Notifications\" />}\n >\n <BellIcon aria-hidden=\"true\" />\n </PopoverTrigger>\n <PopoverContent size=\"lg\">\n <PopoverHeader\n actions={\n <>\n <Button variant=\"ghost\" size=\"icon-xs\" aria-label=\"Notification settings\">\n <GearIcon aria-hidden=\"true\" />\n </Button>\n <Button variant=\"ghost\" size=\"icon-xs\" aria-label=\"More\">\n <DotsIcon aria-hidden=\"true\" />\n </Button>\n </>\n }\n >\n <PopoverTitle>Notifications</PopoverTitle>\n </PopoverHeader>\n <PopoverPanel>\n <Tabs defaultValue=\"all\">\n <TabsList aria-label=\"Notification type\" className=\"px-1\">\n <TabsTrigger value=\"all\" icon={<BellIcon aria-hidden=\"true\" />} count={19}>\n All\n </TabsTrigger>\n <TabsTrigger\n value=\"transactions\"\n icon={<CreditCardIcon aria-hidden=\"true\" />}\n count={19}\n >\n Transactions\n </TabsTrigger>\n <TabsTrigger value=\"business\" icon={<UserIcon aria-hidden=\"true\" />}>\n Business\n </TabsTrigger>\n </TabsList>\n </Tabs>\n {NOTIFICATIONS.map((item) => (\n <PopoverNotificationItem\n key={item.id}\n icon={<CreditCardIcon />}\n title={item.title}\n id={item.id}\n time={item.time}\n unread={item.unread}\n />\n ))}\n </PopoverPanel>\n </PopoverContent>\n </Popover>\n );\n}"
17340
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { BellIcon, CreditCardIcon, DotsIcon, GearIcon, UserIcon } from \"@dodopayments/ui/icons\";\nimport {\n Popover,\n PopoverContent,\n PopoverHeader,\n PopoverNotificationItem,\n PopoverPanel,\n PopoverTitle,\n PopoverTrigger,\n} from \"@dodopayments/ui/popover\";\nimport { Tabs, TabsList, TabsTrigger } from \"@dodopayments/ui/tabs\";\n\nconst NOTIFICATIONS = [\n { title: \"Payment succeeded\", id: \"pay_0NlZbY…k09c\", time: \"2 min ago\", unread: true },\n { title: \"Refund processed\", id: \"rfd_0NmQ8x…T2aP\", time: \"1 hr ago\", unread: true },\n { title: \"Dispute opened\", id: \"dsp_0NkR4c…9WqL\", time: \"Yesterday\", unread: false },\n];\n\nexport default function PopoverNotifications() {\n return (\n <Popover>\n <PopoverTrigger\n render={<Button variant=\"secondary\" size=\"icon-lg\" aria-label=\"Notifications\" />}\n >\n <BellIcon aria-hidden=\"true\" />\n </PopoverTrigger>\n <PopoverContent size=\"lg\" mobileSheet>\n <PopoverHeader\n actions={\n <>\n <Button variant=\"ghost\" size=\"icon-xs\" aria-label=\"Notification settings\">\n <GearIcon aria-hidden=\"true\" />\n </Button>\n <Button variant=\"ghost\" size=\"icon-xs\" aria-label=\"More\">\n <DotsIcon aria-hidden=\"true\" />\n </Button>\n </>\n }\n >\n <PopoverTitle>Notifications</PopoverTitle>\n </PopoverHeader>\n <PopoverPanel>\n <Tabs defaultValue=\"all\">\n <TabsList aria-label=\"Notification type\" className=\"px-1\">\n <TabsTrigger value=\"all\" icon={<BellIcon aria-hidden=\"true\" />} count={19}>\n All\n </TabsTrigger>\n <TabsTrigger\n value=\"transactions\"\n icon={<CreditCardIcon aria-hidden=\"true\" />}\n count={19}\n >\n Transactions\n </TabsTrigger>\n <TabsTrigger value=\"business\" icon={<UserIcon aria-hidden=\"true\" />}>\n Business\n </TabsTrigger>\n </TabsList>\n </Tabs>\n {NOTIFICATIONS.map((item) => (\n <PopoverNotificationItem\n key={item.id}\n icon={<CreditCardIcon />}\n title={item.title}\n id={item.id}\n time={item.time}\n unread={item.unread}\n />\n ))}\n </PopoverPanel>\n </PopoverContent>\n </Popover>\n );\n}"
16500
17341
  }
16501
17342
  ],
16502
17343
  "docsUrl": "/components/popover"
@@ -16705,7 +17546,7 @@
16705
17546
  "title": "Quantity stepper",
16706
17547
  "category": "Forms",
16707
17548
  "status": "stable",
16708
- "description": "A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).\nTwo sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36, 40 below `sm`,\nshorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.\nBuilt on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`\n\"Number field\") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to\n`min` / `max`, and the − / + buttons disable at the bounds. `onValueChange` reports `null` while the\nvalue is cleared. `id` lands on the value, so a `<label htmlFor>` names it; otherwise pass `aria-label`.\n\nA press on − / + (or the mouse wheel with `allowWheelScrub`) spins the digits with NumberFlow over\n`duration-slow`; holding a button repeats without spinning. While the user edits the value, the plain\ninput shows instead, so typing and arrow-key steps never animate. The animated copy is `aria-hidden`.",
17549
+ "description": "A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).\nTwo sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36,\nshorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.\nBuilt on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`\n\"Number field\") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to\n`min` / `max`, and the − / + buttons disable at the bounds. `onValueChange` reports `null` while the\nvalue is cleared. `id` lands on the value, so a `<label htmlFor>` names it; otherwise pass `aria-label`.\n\nA press on − / + (or the mouse wheel with `allowWheelScrub`) spins the digits with NumberFlow over\n`duration-slow`; holding a button repeats without spinning. While the user edits the value, the plain\ninput shows instead, so typing and arrow-key steps never animate. The animated copy is `aria-hidden`.",
16709
17550
  "importPath": "@dodopayments/ui/quantity-stepper",
16710
17551
  "exports": [
16711
17552
  "DODO_QUANTITY_STEPPER_DEFAULT_VARIANTS",
@@ -16717,7 +17558,7 @@
16717
17558
  "parts": [
16718
17559
  {
16719
17560
  "name": "QuantityStepper",
16720
- "description": "A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).\nTwo sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36, 40 below `sm`,\nshorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.\nBuilt on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`\n\"Number field\") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to\n`min` / `max`, and the − / + buttons disable at the bounds. `onValueChange` reports `null` while the\nvalue is cleared. `id` lands on the value, so a `<label htmlFor>` names it; otherwise pass `aria-label`.\n\nA press on − / + (or the mouse wheel with `allowWheelScrub`) spins the digits with NumberFlow over\n`duration-slow`; holding a button repeats without spinning. While the user edits the value, the plain\ninput shows instead, so typing and arrow-key steps never animate. The animated copy is `aria-hidden`.",
17561
+ "description": "A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).\nTwo sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36,\nshorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.\nBuilt on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`\n\"Number field\") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to\n`min` / `max`, and the − / + buttons disable at the bounds. `onValueChange` reports `null` while the\nvalue is cleared. `id` lands on the value, so a `<label htmlFor>` names it; otherwise pass `aria-label`.\n\nA press on − / + (or the mouse wheel with `allowWheelScrub`) spins the digits with NumberFlow over\n`duration-slow`; holding a button repeats without spinning. While the user edits the value, the plain\ninput shows instead, so typing and arrow-key steps never animate. The animated copy is `aria-hidden`.",
16721
17562
  "props": [
16722
17563
  {
16723
17564
  "name": "aria-describedby",
@@ -16791,7 +17632,7 @@
16791
17632
  },
16792
17633
  {
16793
17634
  "value": "lg",
16794
- "description": "The height of Button lg (`--control-height-lg`: 36, 40 below `sm`, less in compact density), with Button icon (`--control-height-md`) − and + 2px inside, Button icon sizes and the value in Labels/Primary. Next to a lg button, such as Buy now on a Product card."
17635
+ "description": "The height of Button lg (`--control-height-lg`: 36, less in compact density), with Button icon (`--control-height-md`) − and + 2px inside, Button icon sizes and the value in Labels/Primary. Next to a lg button, such as Buy now on a Product card."
16795
17636
  }
16796
17637
  ],
16797
17638
  "default": "\"default\""
@@ -16955,7 +17796,7 @@
16955
17796
  "type": "boolean",
16956
17797
  "required": false,
16957
17798
  "default": "false",
16958
- "description": "Open the link in a new tab (`target=\"_blank\"`, `rel=\"noopener noreferrer\"`), end it with an\nup-right arrow (it replaces the entity arrow) and append `externalLabel` for screen readers (also\nappended to `aria-label` when set).",
17799
+ "description": "Open the link in a new tab (`target=\"_blank\"`, `rel=\"noopener noreferrer\"`), end it with an\nup-right arrow (it replaces the entity arrow; in running text it wraps with the last word, never\nalone) and append `externalLabel` for screen readers (also appended to `aria-label` when set).",
16959
17800
  "source": "dodo"
16960
17801
  },
16961
17802
  {
@@ -17067,14 +17908,18 @@
17067
17908
  },
17068
17909
  {
17069
17910
  "name": "size",
17070
- "type": "\"xs\" | \"sm\" | \"md\" | \"lg\"",
17911
+ "type": "\"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\"",
17071
17912
  "required": false,
17072
17913
  "description": "",
17073
17914
  "source": "dodo",
17074
17915
  "values": [
17916
+ {
17917
+ "value": "2xs",
17918
+ "description": "12px tall artwork with 2px clear space on every side. Only for print-sized text, such as an invoice footer."
17919
+ },
17075
17920
  {
17076
17921
  "value": "xs",
17077
- "description": "16px tall artwork with 4px clear space on every side. The smallest size, for a line of small text such as \"Secure checkout by\"."
17922
+ "description": "16px tall artwork with 4px clear space on every side. For a line of small text such as \"Secure checkout by\"."
17078
17923
  },
17079
17924
  {
17080
17925
  "value": "sm",
@@ -17237,6 +18082,13 @@
17237
18082
  "description": "Turns editing and the toolbar off and dims the editor to 64%.",
17238
18083
  "source": "dodo"
17239
18084
  },
18085
+ {
18086
+ "name": "hiddenTools",
18087
+ "type": "readonly RichTextEditorTool[]",
18088
+ "required": false,
18089
+ "description": "Tools to leave out of the strip, e.g. `[\"strikethrough\"]` when the text is shown where strikethrough is not.",
18090
+ "source": "dodo"
18091
+ },
17240
18092
  {
17241
18093
  "name": "id",
17242
18094
  "type": "string",
@@ -17244,6 +18096,14 @@
17244
18096
  "description": "The textbox id. Inside a `Field` the field sets it, so its label focuses the editor.",
17245
18097
  "source": "dodo"
17246
18098
  },
18099
+ {
18100
+ "name": "input",
18101
+ "type": "\"editor\" | \"markdown\"",
18102
+ "required": false,
18103
+ "default": "\"editor\"",
18104
+ "description": "What `value` is written in. `\"editor\"` is markdown with the editor's inline HTML for underline and text colour,\nwhich `RichTextContent` renders. `\"markdown\"` is plain markdown, for a renderer that shows no HTML (an app\ndescription): the strip has no underline or colour, inline HTML stays literal text, and inline code, fenced code\nblocks and single line breaks are kept as written. Read when the editor mounts.",
18105
+ "source": "dodo"
18106
+ },
17247
18107
  {
17248
18108
  "name": "labels",
17249
18109
  "type": "Partial<RichTextEditorLabels>",
@@ -17533,6 +18393,8 @@
17533
18393
  "AppTopBarMilestonesRing",
17534
18394
  "AppTopBarMilestonesRingProps",
17535
18395
  "AppTopBarProps",
18396
+ "AppTopBarSupportItem",
18397
+ "AppTopBarSupportItemProps",
17536
18398
  "AppTopBarUser",
17537
18399
  "DODO_APP_TOP_BAR_DEFAULT_VARIANTS",
17538
18400
  "DODO_APP_TOP_BAR_VARIANTS"
@@ -17608,6 +18470,13 @@
17608
18470
  "description": "What the bell opens: the children of a `size=\"lg\"` `PopoverContent` (a `PopoverHeader`, then a\n`PopoverPanel`), 8 below the bell with right edges aligned. Without it the bell calls `onOpenNotifications`.",
17609
18471
  "source": "dodo"
17610
18472
  },
18473
+ {
18474
+ "name": "notificationsCount",
18475
+ "type": "number",
18476
+ "required": false,
18477
+ "description": "Unseen notifications, shown on the bell (99+ past 99) and named in its label. Hidden at 0.",
18478
+ "source": "dodo"
18479
+ },
17611
18480
  {
17612
18481
  "name": "onOpenAccount",
17613
18482
  "type": "(() => void)",
@@ -17726,6 +18595,13 @@
17726
18595
  "description": "Show the Setup guide button in the Milestones slot, for a business that has not finished setting up. It takes\nthe place of Milestones (never both).",
17727
18596
  "source": "dodo"
17728
18597
  },
18598
+ {
18599
+ "name": "support",
18600
+ "type": "ReactNode",
18601
+ "required": false,
18602
+ "description": "The dashboard's help panel: `AppTopBarSupportItem` rows (Discord, chat, feature requests, docs) in a 300 wide\npopover over a dot field, 12 below its button with right edges aligned. It replaces the chat button, and stays in\nthe bar on a phone. Without it the chat button calls `onOpenChat`.",
18603
+ "source": "dodo"
18604
+ },
17729
18605
  {
17730
18606
  "name": "theme",
17731
18607
  "type": "AppTopBarTheme",
@@ -17774,6 +18650,40 @@
17774
18650
  "source": "dodo"
17775
18651
  }
17776
18652
  ]
18653
+ },
18654
+ {
18655
+ "name": "AppTopBarSupportItem",
18656
+ "description": "One row of the help panel: a bordered secondary row with an icon and a label. A button row closes the panel; an\n`href` row opens its page in a new tab and leaves the panel open, as the dashboard's does.",
18657
+ "props": [
18658
+ {
18659
+ "name": "icon",
18660
+ "type": "ReactNode",
18661
+ "required": true,
18662
+ "description": "Leading 20px Nucleo icon.",
18663
+ "source": "dodo"
18664
+ },
18665
+ {
18666
+ "name": "className",
18667
+ "type": "string",
18668
+ "required": false,
18669
+ "description": "Additional Tailwind classes, merged last.",
18670
+ "source": "dodo"
18671
+ },
18672
+ {
18673
+ "name": "href",
18674
+ "type": "string",
18675
+ "required": false,
18676
+ "description": "Makes the row a link that opens in a new tab, e.g. the docs or the Discord server.",
18677
+ "source": "dodo"
18678
+ },
18679
+ {
18680
+ "name": "onClick",
18681
+ "type": "(() => void)",
18682
+ "required": false,
18683
+ "description": "",
18684
+ "source": "dodo"
18685
+ }
18686
+ ]
17777
18687
  }
17778
18688
  ],
17779
18689
  "examples": [
@@ -17788,6 +18698,10 @@
17788
18698
  {
17789
18699
  "name": "app-top-bar/setup-guide",
17790
18700
  "code": "\"use client\";\n\nimport { AppTopBar } from \"@dodopayments/ui/app-top-bar\";\nimport { useState } from \"react\";\n\nconst STEPS = 11;\n\nexport default function AppTopBarSetupGuide() {\n const [done, setDone] = useState(3);\n const finished = done >= STEPS;\n\n return (\n <div className=\"w-full\">\n <AppTopBar\n // The hero above owns the / key on this page.\n searchShortcut={false}\n showSetupGuide={!finished}\n setupGuideProgress={done / STEPS}\n // Each press finishes a step; once setup is done, Milestones takes the slot.\n onOpenSetupGuide={() => setDone((value) => Math.min(STEPS, value + 2))}\n milestonesProgress={0.2}\n onOpenMilestones={() => setDone(3)}\n />\n </div>\n );\n}"
18701
+ },
18702
+ {
18703
+ "name": "app-top-bar/support",
18704
+ "code": "\"use client\";\n\nimport { AppTopBar, AppTopBarSupportItem } from \"@dodopayments/ui/app-top-bar\";\nimport { BrandLogo } from \"@dodopayments/ui/brand-logos\";\nimport { BookOpenIcon, ChatBubbleIcon, LightbulbIcon } from \"@dodopayments/ui/icons\";\n\nexport default function AppTopBarSupport() {\n return (\n <div className=\"w-full\">\n <AppTopBar\n // The hero above owns the / key on this page.\n searchShortcut={false}\n support={\n <>\n <AppTopBarSupportItem\n icon={<BrandLogo brand=\"discord\" />}\n href=\"https://discord.gg/bYqAp4ayYh\"\n >\n Join Our Discord Community\n </AppTopBarSupportItem>\n <AppTopBarSupportItem icon={<ChatBubbleIcon />}>Chat Support</AppTopBarSupportItem>\n <AppTopBarSupportItem icon={<LightbulbIcon />}>Feature Requests</AppTopBarSupportItem>\n <AppTopBarSupportItem icon={<BookOpenIcon />} href=\"https://docs.dodopayments.com\">\n Visit Docs\n </AppTopBarSupportItem>\n </>\n }\n />\n </div>\n );\n}"
17791
18705
  }
17792
18706
  ],
17793
18707
  "docsUrl": "/components/app-top-bar"
@@ -18100,7 +19014,7 @@
18100
19014
  "title": "Select",
18101
19015
  "category": "Forms",
18102
19016
  "status": "stable",
18103
- "description": "The field (Figma `container`) that opens the list: put a `SelectValue` inside. One size, 36; the caret turns up\nwhile the list is open; `aria-invalid` (or an invalid `Field`) shows the error border. `variant=\"compact\"` is a\nborderless 32 trigger that hugs its value, for a language or currency switcher (with an `icon` or a flag).",
19017
+ "description": "The field (Figma `container`) that opens the list: put a `SelectValue` inside. 36 tall, or 28 with `size=\"sm\"`; the caret turns up\nwhile the list is open; `aria-invalid` (or an invalid `Field`) shows the error border. `variant=\"compact\"` is a\nborderless 32 trigger that hugs its value, for a language or currency switcher (with an `icon` or a flag).",
18104
19018
  "importPath": "@dodopayments/ui/select",
18105
19019
  "exports": [
18106
19020
  "DODO_SELECT_TRIGGER_DEFAULT_VARIANTS",
@@ -18127,7 +19041,7 @@
18127
19041
  "parts": [
18128
19042
  {
18129
19043
  "name": "SelectTrigger",
18130
- "description": "The field (Figma `container`) that opens the list: put a `SelectValue` inside. One size, 36; the caret turns up\nwhile the list is open; `aria-invalid` (or an invalid `Field`) shows the error border. `variant=\"compact\"` is a\nborderless 32 trigger that hugs its value, for a language or currency switcher (with an `icon` or a flag).",
19044
+ "description": "The field (Figma `container`) that opens the list: put a `SelectValue` inside. 36 tall, or 28 with `size=\"sm\"`; the caret turns up\nwhile the list is open; `aria-invalid` (or an invalid `Field`) shows the error border. `variant=\"compact\"` is a\nborderless 32 trigger that hugs its value, for a language or currency switcher (with an `icon` or a flag).",
18131
19045
  "props": [
18132
19046
  {
18133
19047
  "name": "className",
@@ -18143,6 +19057,24 @@
18143
19057
  "description": "An icon before the value (Figma \"Show leading icon\"), e.g. a Nucleo icon for an integration select, a globe for a\nlanguage switcher or a `Flag` for a currency (a Flag keeps its 20 × 14).",
18144
19058
  "source": "dodo"
18145
19059
  },
19060
+ {
19061
+ "name": "size",
19062
+ "type": "\"default\" | \"sm\"",
19063
+ "required": false,
19064
+ "description": "",
19065
+ "source": "dodo",
19066
+ "values": [
19067
+ {
19068
+ "value": "default",
19069
+ "description": "36 tall, as in Figma. The default."
19070
+ },
19071
+ {
19072
+ "value": "sm",
19073
+ "description": "28 tall: a compact trigger in a dense toolbar or a table filter row, next to an `sm` Input or Button. Not a Figma size. The chips field of `multiple` and the `compact` variant keep their height."
19074
+ }
19075
+ ],
19076
+ "default": "\"default\""
19077
+ },
18146
19078
  {
18147
19079
  "name": "variant",
18148
19080
  "type": "\"default\" | \"compact\"",
@@ -18187,7 +19119,7 @@
18187
19119
  },
18188
19120
  {
18189
19121
  "name": "Select",
18190
- "description": "The Dodo Nest Select (Figma ↳ Select): one field, 36 tall, that opens a list in the Menu look 8 below it. Pick one\nvalue, or several with `multiple` (chips in the field, extras as \"+N\"); `searchable` adds a search field to the\nlist. Pass `items` (`{ value, label }[]`) so `SelectValue` shows the label. A plain Select renders the primitives /\nBase UI `Select`; `searchable` or `multiple` run the Combobox under the same parts, with the same string values.",
19122
+ "description": "The Dodo Nest Select (Figma ↳ Select): one field, 36 tall, that opens a list in the Menu look 8 below it. Pick one\nvalue, or several with `multiple` (chips in the field, extras as \"+N\"); `searchable` adds a search field to the\nlist. Pass `items` (`{ value, label }[]`) so `SelectValue` shows the label. A plain Select renders the primitives /\nBase UI `Select`; `searchable` or `multiple` run the Combobox under the same parts, with the same string values.\nA `multiple` field sizes its chips to its own width, so give it a definite width (the default full width, or a\nfixed one); sized to its content (`w-fit`) it would collapse.",
18191
19123
  "props": [
18192
19124
  {
18193
19125
  "name": "maxChips",
@@ -18402,6 +19334,14 @@
18402
19334
  "description": "The disabled row shown when no option matches.",
18403
19335
  "source": "dodo"
18404
19336
  },
19337
+ {
19338
+ "name": "mobileSheet",
19339
+ "type": "boolean",
19340
+ "required": false,
19341
+ "default": "false",
19342
+ "description": "Below 640px, open the list as a bottom sheet over a scrim, full width. Off by default: the list stays under\nthe trigger at every width. A `searchable` or `multiple` list always stays under its field, where the software\nkeyboard cannot cover it.",
19343
+ "source": "dodo"
19344
+ },
18405
19345
  {
18406
19346
  "name": "portalProps",
18407
19347
  "type": "SelectPortalProps",
@@ -18588,7 +19528,7 @@
18588
19528
  },
18589
19529
  {
18590
19530
  "name": "SelectValue",
18591
- "description": "Shows the selected item's label, or `placeholder` (Content/Tertiary) when empty. With `multiple` it shows the\nchosen options as chips (`.Chip`, with a remove button each) and the rest as \"+N\".",
19531
+ "description": "Shows the selected item's label, or `placeholder` (Content/Tertiary) when empty. With `multiple` it shows the\nchosen options as chips (`.Chip`, with a remove button each) and the rest as \"+N\", on one line, or wrapped to more\nrows in a field under 18rem.",
18592
19532
  "props": [
18593
19533
  {
18594
19534
  "name": "className",
@@ -18638,6 +19578,10 @@
18638
19578
  {
18639
19579
  "name": "select/searchable",
18640
19580
  "code": "\"use client\";\n\nimport { Field } from \"@dodopayments/ui/field\";\nimport { Select, SelectContent, SelectTrigger, SelectValue } from \"@dodopayments/ui/select\";\n\nconst brands = [\n \"Dodo Payments\",\n \"Acme Studio\",\n \"Northwind Labs\",\n \"Orbit Labs\",\n \"Globex\",\n \"Initech\",\n \"Umbrella\",\n \"Hooli\",\n \"Pied Piper\",\n \"Stark Industries\",\n].map((name) => ({ value: name.toLowerCase().replaceAll(\" \", \"-\"), label: name }));\n\n/** A long list: `searchable` puts a search field on top of the list. */\nexport default function SelectSearchable() {\n return (\n <Field\n label=\"Brand\"\n description=\"Select the brand that will be associated with your product.\"\n className=\"w-full max-w-sm\"\n >\n <Select items={brands} searchable>\n <SelectTrigger>\n <SelectValue placeholder=\"Select a brand\" />\n </SelectTrigger>\n <SelectContent />\n </Select>\n </Field>\n );\n}"
19581
+ },
19582
+ {
19583
+ "name": "select/small",
19584
+ "code": "\"use client\";\n\nimport { Select, SelectContent, SelectTrigger, SelectValue } from \"@dodopayments/ui/select\";\n\nconst RANGES = [\n { value: \"7d\", label: \"Last 7 days\" },\n { value: \"30d\", label: \"Last 30 days\" },\n { value: \"90d\", label: \"Last 90 days\" },\n];\n\nexport default function SelectSmall() {\n return (\n <Select items={RANGES} defaultValue=\"30d\">\n <SelectTrigger size=\"sm\" aria-label=\"Date range\" className=\"w-44\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent />\n </Select>\n );\n}"
18641
19585
  }
18642
19586
  ],
18643
19587
  "docsUrl": "/components/select"
@@ -18647,7 +19591,7 @@
18647
19591
  "title": "Sheet",
18648
19592
  "category": "Overlays",
18649
19593
  "status": "stable",
18650
- "description": "The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading\ndirection (the right in LTR). `type=\"side\"` (default) is a grey tray 8 from the screen edges, 400 wide (`size=\"lg\"`:\n560), with the title and close on the grey chin, the body in a white panel that scrolls, and the actions on the grey\nstrip; below 400 it fills the screen minus 8 on every side. `type=\"full\"` covers the screen. Always include a\n`SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over a sheet, and use\na Dialog for a yes / no confirm.",
19594
+ "description": "The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading\ndirection (the right in LTR). `type=\"side\"` (default) is a grey tray 8 from the screen edges, 400 wide (`size=\"lg\"`:\n560, `size=\"xl\"`: 768), with the title and close on the grey chin, the body in a white panel that scrolls, and the\nactions on the grey strip; below 400 it fills the screen minus 8 on every side. `type=\"full\"` covers the screen.\nAlways include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over\na sheet, and use a Dialog for a yes / no confirm.",
18651
19595
  "importPath": "@dodopayments/ui/sheet",
18652
19596
  "exports": [
18653
19597
  "DODO_SHEET_DEFAULT_VARIANTS",
@@ -18678,7 +19622,7 @@
18678
19622
  "parts": [
18679
19623
  {
18680
19624
  "name": "SheetContent",
18681
- "description": "The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading\ndirection (the right in LTR). `type=\"side\"` (default) is a grey tray 8 from the screen edges, 400 wide (`size=\"lg\"`:\n560), with the title and close on the grey chin, the body in a white panel that scrolls, and the actions on the grey\nstrip; below 400 it fills the screen minus 8 on every side. `type=\"full\"` covers the screen. Always include a\n`SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over a sheet, and use\na Dialog for a yes / no confirm.",
19625
+ "description": "The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading\ndirection (the right in LTR). `type=\"side\"` (default) is a grey tray 8 from the screen edges, 400 wide (`size=\"lg\"`:\n560, `size=\"xl\"`: 768), with the title and close on the grey chin, the body in a white panel that scrolls, and the\nactions on the grey strip; below 400 it fills the screen minus 8 on every side. `type=\"full\"` covers the screen.\nAlways include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over\na sheet, and use a Dialog for a yes / no confirm.",
18682
19626
  "props": [
18683
19627
  {
18684
19628
  "name": "className",
@@ -18712,7 +19656,7 @@
18712
19656
  },
18713
19657
  {
18714
19658
  "name": "size",
18715
- "type": "\"md\" | \"lg\"",
19659
+ "type": "\"md\" | \"lg\" | \"xl\"",
18716
19660
  "required": false,
18717
19661
  "description": "",
18718
19662
  "source": "dodo",
@@ -18724,6 +19668,10 @@
18724
19668
  {
18725
19669
  "value": "lg",
18726
19670
  "description": "560 wide: longer forms. Side sheets only."
19671
+ },
19672
+ {
19673
+ "value": "xl",
19674
+ "description": "768 wide: a form with a code editor or a long checklist, such as a webhook endpoint. Side sheets only."
18727
19675
  }
18728
19676
  ],
18729
19677
  "default": "\"md\""
@@ -18932,7 +19880,7 @@
18932
19880
  "name": "progress",
18933
19881
  "type": "number",
18934
19882
  "required": false,
18935
- "description": "Full screen only: how far along the flow is (0–100), drawn as a 120 wide Progress bar before the close button.",
19883
+ "description": "Full screen only: how far along the flow is (0–100), drawn as a 120 wide Progress bar before the close button.\nHidden below `sm`, so the title and description get the row on a phone.",
18936
19884
  "source": "dodo"
18937
19885
  },
18938
19886
  {
@@ -19172,7 +20120,7 @@
19172
20120
  },
19173
20121
  {
19174
20122
  "name": "SidebarBusinessSwitcher",
19175
- "description": "The business switcher at the top of the sidebar (Figma `.Business switcher`): a 44px white row with a 24px\navatar, the name (truncates) and an up-down chevron; the same 24px avatar alone on the icon rail. Opens the business Menu\n(`children`) 8px below. Put it in `SidebarHeader`.",
20123
+ "description": "The business switcher at the top of the sidebar (Figma `.Business switcher`): a 44px white row with a 24px\navatar, the name (truncates), an optional `badge` and an up-down chevron; the same 24px avatar alone on the icon rail. Opens the business Menu\n(`children`) 8px below. Put it in `SidebarHeader`.",
19176
20124
  "props": [
19177
20125
  {
19178
20126
  "name": "name",
@@ -19181,6 +20129,13 @@
19181
20129
  "description": "Name of the current business. Its initials fill the avatar when there is no `logoUrl`.",
19182
20130
  "source": "dodo"
19183
20131
  },
20132
+ {
20133
+ "name": "badge",
20134
+ "type": "ReactNode",
20135
+ "required": false,
20136
+ "description": "After the name, e.g. the member's role as a neutral `Badge`. Hidden on the icon rail.",
20137
+ "source": "dodo"
20138
+ },
19184
20139
  {
19185
20140
  "name": "logoUrl",
19186
20141
  "type": "string",
@@ -19249,7 +20204,7 @@
19249
20204
  },
19250
20205
  {
19251
20206
  "name": "SidebarMenuButton",
19252
- "description": "The clickable row of a menu item (primitive `SidebarMenuButton`, Figma `.Nav item`): a 20px icon + Body/Primary\nlabel, 32px tall; a 32px tile on the icon rail. Renders a `<button>`; for navigation pass\n`render={<a href=\"/payments\" />}` (or your router's link).",
20207
+ "description": "The clickable row of a menu item (primitive `SidebarMenuButton`, Figma `.Nav item`): a 20px icon + Body/Primary\nlabel, 32px tall; a 32px tile on the icon rail. Renders a `<button>`; for navigation pass\n`render={<a href=\"/payments\" />}` (or your router's link). `tag` adds a badge at the end of the row, a dot on the rail.",
19253
20208
  "props": [
19254
20209
  {
19255
20210
  "name": "isActive",
@@ -19259,6 +20214,13 @@
19259
20214
  "description": "Marks the item as the current page: Surface/Tertiary with a Border/Secondary ring, a Content/Primary icon\nand `aria-current=\"page\"`.",
19260
20215
  "source": "dodo"
19261
20216
  },
20217
+ {
20218
+ "name": "tag",
20219
+ "type": "ReactNode",
20220
+ "required": false,
20221
+ "description": "A tag at the end of the row, such as a violet sm `Badge` \"New\". On the icon rail it leaves the screen (it stays in\nthe item's accessible name) and a 6px violet dot marks the tile's corner instead.",
20222
+ "source": "dodo"
20223
+ },
19262
20224
  {
19263
20225
  "name": "tooltip",
19264
20226
  "type": "ReactNode",
@@ -19277,8 +20239,16 @@
19277
20239
  },
19278
20240
  {
19279
20241
  "name": "SidebarMenuCollapsible",
19280
- "description": "A menu item that expands to show a sub-menu. Renders `<li>`; compose it from a\n`SidebarMenuCollapsibleTrigger` and a `SidebarMenuCollapsibleContent` holding a `SidebarMenuSub`.\nThe primitives have no sidebar collapsible part; built from the `Collapsible` primitive.\n\nInside a `SidebarProvider` only one sub-menu is open at a time: opening one closes the one that was open.\n`defaultOpen` sets the first state. Pass `open` to control it yourself; a controlled sub-menu is left out of this.",
20242
+ "description": "A menu item that expands to show a sub-menu. Renders `<li>`; compose it from a\n`SidebarMenuCollapsibleTrigger` and a `SidebarMenuCollapsibleContent` holding a `SidebarMenuSub`.\nThe primitives have no sidebar collapsible part; built from the `Collapsible` primitive.\n\nInside a `SidebarProvider` only one sub-menu is open at a time: opening one closes the one that was open.\n`defaultOpen` sets the first state, and `active` opens the one that holds the current page whenever it becomes\nactive. Pass `open` to control it yourself; a controlled sub-menu is left out of this.",
19281
20243
  "props": [
20244
+ {
20245
+ "name": "active",
20246
+ "type": "boolean",
20247
+ "required": false,
20248
+ "default": "false",
20249
+ "description": "The sub-menu holds the current page. It opens (closing the others) when it becomes active, also when the page\nchanges from outside the sidebar, and the merchant can still close it.",
20250
+ "source": "dodo"
20251
+ },
19282
20252
  {
19283
20253
  "name": "className",
19284
20254
  "type": "string",
@@ -19356,7 +20326,7 @@
19356
20326
  },
19357
20327
  {
19358
20328
  "name": "SidebarMenuCollapsibleTrigger",
19359
- "description": "The row that opens and closes a sub-menu: a `SidebarMenuButton` primitive rendered as a `CollapsibleTrigger`\nprimitive, with a 12px chevron. The parent stays default while its group is open.",
20329
+ "description": "The row that opens and closes a sub-menu: a `SidebarMenuButton` primitive rendered as a `CollapsibleTrigger`\nprimitive, with a 12px chevron. The parent stays default while its group is open. `tag` adds a badge before the\nchevron, a dot on the rail.",
19360
20330
  "props": [
19361
20331
  {
19362
20332
  "name": "className",
@@ -19373,6 +20343,13 @@
19373
20343
  "description": "Highlights the row, e.g. when the current page is inside the sub-menu.",
19374
20344
  "source": "dodo"
19375
20345
  },
20346
+ {
20347
+ "name": "tag",
20348
+ "type": "ReactNode",
20349
+ "required": false,
20350
+ "description": "A tag before the chevron, such as a violet sm `Badge` \"New\"; a 6px violet dot on the icon rail.",
20351
+ "source": "dodo"
20352
+ },
19376
20353
  {
19377
20354
  "name": "tooltip",
19378
20355
  "type": "ReactNode",
@@ -19409,7 +20386,7 @@
19409
20386
  },
19410
20387
  {
19411
20388
  "name": "SidebarMenuSubButton",
19412
- "description": "Link row of a sub-menu (primitive `SidebarMenuSubButton`, Figma `.Nav item` sub): a Content/Secondary label\nindented to line up with the parent's label. Renders `<a>`; pass `render` for your router's link.",
20389
+ "description": "Link row of a sub-menu (primitive `SidebarMenuSubButton`, Figma `.Nav item` sub): a Content/Secondary label\nindented to line up with the parent's label. Renders `<a>`; pass `render` for your router's link. `tag` adds a badge\nat the end of the row.",
19413
20390
  "props": [
19414
20391
  {
19415
20392
  "name": "isActive",
@@ -19419,6 +20396,13 @@
19419
20396
  "description": "Marks the sub-item as the current page: Surface/Tertiary, Content/Primary label and `aria-current=\"page\"`.",
19420
20397
  "source": "dodo"
19421
20398
  },
20399
+ {
20400
+ "name": "tag",
20401
+ "type": "ReactNode",
20402
+ "required": false,
20403
+ "description": "A tag at the end of the row, such as a violet sm `Badge` \"New\". Wrap the label in a `<span>` so it truncates.",
20404
+ "source": "dodo"
20405
+ },
19422
20406
  {
19423
20407
  "name": "render",
19424
20408
  "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>",
@@ -19470,7 +20454,7 @@
19470
20454
  },
19471
20455
  {
19472
20456
  "name": "SidebarProvider",
19473
- "description": "Holds the sidebar state and lays out `Sidebar` next to `SidebarInset` on the grey app shell. Wrap the app shell\nonce. The docked sidebar starts collapsed to the 68px icon rail; below 1024px it becomes a sheet. Cmd/Ctrl+B\ntoggles it.\n\nReplaces the `SidebarProvider` primitive (it switches to the sheet at 800px, always writes a\n`cookieStore` cookie and has a fixed shortcut) but feeds the `SidebarContext` primitive, so every primitive\nsidebar part reads this state.",
20457
+ "description": "Holds the sidebar state and lays out `Sidebar` next to `SidebarInset` on the grey app shell. Wrap the app shell\nonce. The docked sidebar starts collapsed to the 68px icon rail; below 1024px it becomes a sheet. Cmd/Ctrl+B\ntoggles it.\n\nReplaces the `SidebarProvider` primitive (it always writes a `cookieStore` cookie and has a fixed\nshortcut) but feeds the `SidebarContext` primitive, so every primitive\nsidebar part reads this state.",
19474
20458
  "props": [
19475
20459
  {
19476
20460
  "name": "defaultOpen",
@@ -20337,6 +21321,48 @@
20337
21321
  ],
20338
21322
  "docsUrl": "/components/spinner"
20339
21323
  },
21324
+ {
21325
+ "slug": "navigation-progress",
21326
+ "title": "Navigation progress",
21327
+ "category": "Feedback",
21328
+ "status": "stable",
21329
+ "description": "Navigation progress: a 2px bar in the brand green (Content/Brand-primary) fixed across the very top\nof the viewport, above the sidebar, the top bar and any overlay, that tells the user a page is on its\nway. Mount it once in the app shell and drive `active` from the router. It shows only after `delay`,\ncreeps towards the end while the page loads, then fills the track and fades out. It is decorative\n(`aria-hidden`), takes no pointer events and never takes focus; under reduced motion it is a still,\nfull-width bar.",
21330
+ "importPath": "@dodopayments/ui/navigation-progress",
21331
+ "exports": [
21332
+ "NavigationProgress",
21333
+ "NavigationProgressProps"
21334
+ ],
21335
+ "parts": [
21336
+ {
21337
+ "name": "NavigationProgress",
21338
+ "description": "Navigation progress: a 2px bar in the brand green (Content/Brand-primary) fixed across the very top\nof the viewport, above the sidebar, the top bar and any overlay, that tells the user a page is on its\nway. Mount it once in the app shell and drive `active` from the router. It shows only after `delay`,\ncreeps towards the end while the page loads, then fills the track and fades out. It is decorative\n(`aria-hidden`), takes no pointer events and never takes focus; under reduced motion it is a still,\nfull-width bar.",
21339
+ "props": [
21340
+ {
21341
+ "name": "active",
21342
+ "type": "boolean",
21343
+ "required": true,
21344
+ "description": "A navigation is in flight. Set it when one starts (a link click, a router push, back or forward)\nand clear it when the new page has rendered.",
21345
+ "source": "dodo"
21346
+ },
21347
+ {
21348
+ "name": "delay",
21349
+ "type": "number",
21350
+ "required": false,
21351
+ "default": "150",
21352
+ "description": "Milliseconds a navigation must run before the bar shows, so an instant one never flashes.",
21353
+ "source": "dodo"
21354
+ }
21355
+ ]
21356
+ }
21357
+ ],
21358
+ "examples": [
21359
+ {
21360
+ "name": "navigation-progress/basic",
21361
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { NavigationProgress } from \"@dodopayments/ui/navigation-progress\";\nimport { useState } from \"react\";\n\n/** Start a navigation to see the bar at the top of the window; finish it to see it fill and fade. */\nexport default function NavigationProgressBasic() {\n const [active, setActive] = useState(false);\n return (\n <div className=\"flex flex-wrap gap-2\">\n <NavigationProgress active={active} />\n <Button variant=\"secondary\" disabled={active} onClick={() => setActive(true)}>\n Start navigation\n </Button>\n <Button variant=\"secondary\" disabled={!active} onClick={() => setActive(false)}>\n Finish navigation\n </Button>\n </div>\n );\n}"
21362
+ }
21363
+ ],
21364
+ "docsUrl": "/components/navigation-progress"
21365
+ },
20340
21366
  {
20341
21367
  "slug": "text-shimmer",
20342
21368
  "title": "Text Shimmer",
@@ -21291,6 +22317,8 @@
21291
22317
  "TabsContentProps",
21292
22318
  "TabsList",
21293
22319
  "TabsListProps",
22320
+ "TabsPanels",
22321
+ "TabsPanelsProps",
21294
22322
  "TabsProps",
21295
22323
  "TabsTrigger",
21296
22324
  "TabsTriggerProps",
@@ -21384,7 +22412,7 @@
21384
22412
  },
21385
22413
  {
21386
22414
  "name": "TabsList",
21387
- "description": "Row of `TabsTrigger`s on the `TabsList` primitive, with its animated active-tab indicator. Scrolls\nhorizontally (scrollbar hidden) when the tabs do not fit, so it stays usable on narrow screens.\nGive it an `aria-label` describing the set of tabs.",
22415
+ "description": "Row of `TabsTrigger`s on the `TabsList` primitive, with its animated active-tab indicator. When the tabs do not\nfit it scrolls horizontally (scrollbar hidden), fades the side that has more tabs, and keeps the active tab in\nview on mount and on every change, so it stays usable on narrow screens. Give it an `aria-label` describing the\nset of tabs.",
21388
22416
  "props": [
21389
22417
  {
21390
22418
  "name": "activateOnFocus",
@@ -21401,6 +22429,24 @@
21401
22429
  "description": "Additional Tailwind classes, merged last.",
21402
22430
  "source": "dodo"
21403
22431
  },
22432
+ {
22433
+ "name": "size",
22434
+ "type": "\"default\" | \"sm\"",
22435
+ "required": false,
22436
+ "description": "",
22437
+ "source": "dodo",
22438
+ "values": [
22439
+ {
22440
+ "value": "default",
22441
+ "description": "Underline tabs 36 tall, pill tabs 28, as in Figma. The default."
22442
+ },
22443
+ {
22444
+ "value": "sm",
22445
+ "description": "Underline tabs 32 tall, pill tabs 24: a compact row inside a card header or a dense toolbar. Not a Figma size. Vertical tabs keep 28."
22446
+ }
22447
+ ],
22448
+ "default": "\"default\""
22449
+ },
21404
22450
  {
21405
22451
  "name": "variant",
21406
22452
  "type": "\"underline\" | \"pill\"",
@@ -21436,6 +22482,19 @@
21436
22482
  }
21437
22483
  ]
21438
22484
  },
22485
+ {
22486
+ "name": "TabsPanels",
22487
+ "description": "Wraps the `TabsContent`s of tabs whose panels differ in height: it follows the shown panel's height with the fast\nmotion (`duration-fast`, `ease-smooth-out`), so whatever sits under the tabs glides instead of jumping. Without\nreduced motion only; the first height is set at once.",
22488
+ "props": [
22489
+ {
22490
+ "name": "className",
22491
+ "type": "string",
22492
+ "required": false,
22493
+ "description": "Additional Tailwind classes, merged last.",
22494
+ "source": "dodo"
22495
+ }
22496
+ ]
22497
+ },
21439
22498
  {
21440
22499
  "name": "TabsTrigger",
21441
22500
  "description": "A tab (primitive `TabsTab`): an optional leading `icon`, the label (truncates at 180px) and an optional `count`.\nThe active tab gets Content/Primary text and the list's indicator.",
@@ -21498,6 +22557,10 @@
21498
22557
  "name": "tabs/basic",
21499
22558
  "code": "\"use client\";\n\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@dodopayments/ui/tabs\";\n\nconst SECTIONS = [\n { value: \"overview\", label: \"Overview\", body: \"Lifetime value, last payment and open invoices.\" },\n {\n value: \"payments\",\n label: \"Payments\",\n body: \"Every payment this customer has made, newest first.\",\n },\n {\n value: \"subscriptions\",\n label: \"Subscriptions\",\n body: \"Active plans, renewals and cancellations.\",\n },\n { value: \"refunds\", label: \"Refunds\", body: \"Refunds issued and their current status.\" },\n { value: \"entitlements\", label: \"Entitlements\", body: \"License keys and digital deliveries.\" },\n] as const;\n\nexport default function TabsBasic() {\n return (\n <Tabs defaultValue=\"overview\" className=\"max-w-2xl\">\n <TabsList aria-label=\"Customer sections\">\n {SECTIONS.map((section) => (\n <TabsTrigger key={section.value} value={section.value}>\n {section.label}\n </TabsTrigger>\n ))}\n </TabsList>\n {SECTIONS.map((section) => (\n <TabsContent\n key={section.value}\n value={section.value}\n className=\"p-1 text-body-primary text-muted-foreground\"\n >\n {section.body}\n </TabsContent>\n ))}\n </Tabs>\n );\n}"
21500
22559
  },
22560
+ {
22561
+ "name": "tabs/compact",
22562
+ "code": "\"use client\";\n\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@dodopayments/ui/tabs\";\n\nexport default function TabsCompact() {\n return (\n <div className=\"flex w-full max-w-md flex-col gap-6\">\n <Tabs defaultValue=\"all\">\n <TabsList size=\"sm\" aria-label=\"Payments\">\n <TabsTrigger value=\"all\">All</TabsTrigger>\n <TabsTrigger value=\"succeeded\">Succeeded</TabsTrigger>\n <TabsTrigger value=\"failed\">Failed</TabsTrigger>\n </TabsList>\n <TabsContent value=\"all\" className=\"text-body-primary text-muted-foreground\">\n Every payment.\n </TabsContent>\n <TabsContent value=\"succeeded\" className=\"text-body-primary text-muted-foreground\">\n Payments that went through.\n </TabsContent>\n <TabsContent value=\"failed\" className=\"text-body-primary text-muted-foreground\">\n Payments that failed.\n </TabsContent>\n </Tabs>\n <Tabs defaultValue=\"7d\">\n <TabsList variant=\"pill\" size=\"sm\" aria-label=\"Period\">\n <TabsTrigger value=\"7d\">7 days</TabsTrigger>\n <TabsTrigger value=\"30d\">30 days</TabsTrigger>\n <TabsTrigger value=\"90d\">90 days</TabsTrigger>\n </TabsList>\n </Tabs>\n </div>\n );\n}"
22563
+ },
21501
22564
  {
21502
22565
  "name": "tabs/icon-count",
21503
22566
  "code": "\"use client\";\n\nimport { BellIcon, CreditCardIcon, UserIcon } from \"@dodopayments/ui/icons\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@dodopayments/ui/tabs\";\n\nexport default function TabsIconCount() {\n return (\n <Tabs defaultValue=\"all\" className=\"max-w-md\">\n <TabsList aria-label=\"Notifications\">\n <TabsTrigger value=\"all\" icon={<BellIcon aria-hidden=\"true\" />} count={19}>\n All\n </TabsTrigger>\n <TabsTrigger value=\"transactions\" icon={<CreditCardIcon aria-hidden=\"true\" />} count={4}>\n Transactions\n </TabsTrigger>\n <TabsTrigger value=\"business\" icon={<UserIcon aria-hidden=\"true\" />}>\n Business\n </TabsTrigger>\n </TabsList>\n <TabsContent value=\"all\" className=\"pt-3 text-body-secondary text-muted-foreground\">\n 19 unread notifications.\n </TabsContent>\n <TabsContent value=\"transactions\" className=\"pt-3 text-body-secondary text-muted-foreground\">\n 4 payments need a look.\n </TabsContent>\n <TabsContent value=\"business\" className=\"pt-3 text-body-secondary text-muted-foreground\">\n No new notifications.\n </TabsContent>\n </Tabs>\n );\n}"
@@ -21607,6 +22670,13 @@
21607
22670
  "description": "An icon before the label (Figma \"Show leading icon\"), 12px, e.g. a clock on a session timer or a card on a\npayment method chip. Decorative: the label names the badge. Replaces the `dot`.",
21608
22671
  "source": "dodo"
21609
22672
  },
22673
+ {
22674
+ "name": "size",
22675
+ "type": "\"sm\" | \"md\" | null",
22676
+ "required": false,
22677
+ "description": "",
22678
+ "source": "dodo"
22679
+ },
21610
22680
  {
21611
22681
  "name": "status",
21612
22682
  "type": "\"succeeded\" | \"failed\" | \"cancelled\" | \"expired\" | \"processing\" | \"requires_customer_action\" | \"requires_payment_method\" | \"requires_merchant_action\" | \"requires_confirmation\" | \"requires_capture\" | \"partially_captured\" | \"partially_captured_and_capturable\" | \"active\" | \"pending\" | \"on_hold\" | \"paused\" | \"scheduled_for_cancellation\" | \"review\" | \"partial\" | \"full\" | \"pre_dispute\" | \"dispute\" | \"pre_arbitration\" | \"dispute_opened\" | \"dispute_expired\" | \"dispute_accepted\" | \"dispute_cancelled\" | \"dispute_challenged\" | \"dispute_won\" | \"dispute_lost\" | (string & Record<never, never>) | null",
@@ -21641,7 +22711,7 @@
21641
22711
  "examples": [
21642
22712
  {
21643
22713
  "name": "test-mode-banner/basic",
21644
- "code": "\"use client\";\n\nimport { TestModeBadge, TestModeBanner } from \"@dodopayments/ui/test-mode-banner\";\n\nexport default function TestModeBannerBasic() {\n return (\n <div className=\"w-full overflow-hidden rounded-xl border border-border bg-background\">\n <TestModeBanner\n onSwitchToLive={() => undefined}\n learnMoreHref=\"https://docs.dodopayments.com/miscellaneous/test-mode-vs-live-mode\"\n />\n <div className=\"flex items-center gap-2 p-4\">\n <span className=\"text-label-primary text-foreground\">pay_2IjeQm4hqU6RA4Z4kwDee</span>\n <TestModeBadge />\n </div>\n </div>\n );\n}"
22714
+ "code": "\"use client\";\n\nimport { TestModeBadge, TestModeBanner } from \"@dodopayments/ui/test-mode-banner\";\n\nexport default function TestModeBannerBasic() {\n return (\n <div className=\"w-full overflow-hidden rounded-xl border border-border bg-background\">\n <TestModeBanner\n onSwitchToLive={() => undefined}\n learnMoreHref=\"https://docs.dodopayments.com/miscellaneous/test-mode-vs-live-mode\"\n />\n <div className=\"flex items-center gap-2 p-4\">\n <span className=\"min-w-0 truncate text-label-primary text-foreground\">\n pay_2IjeQm4hqU6RA4Z4kwDee\n </span>\n <TestModeBadge />\n </div>\n </div>\n );\n}"
21645
22715
  }
21646
22716
  ],
21647
22717
  "docsUrl": "/components/test-mode-banner"
@@ -21751,7 +22821,7 @@
21751
22821
  },
21752
22822
  {
21753
22823
  "name": "size",
21754
- "type": "\"default\" | \"icon\" | \"xs\" | \"lg\" | \"icon-xs\" | \"icon-lg\" | null",
22824
+ "type": "\"default\" | \"sm\" | \"icon\" | \"xs\" | \"lg\" | \"icon-sm\" | \"icon-xs\" | \"icon-lg\" | null",
21755
22825
  "required": false,
21756
22826
  "description": "",
21757
22827
  "source": "dodo"
@@ -22571,7 +23641,7 @@
22571
23641
  },
22572
23642
  {
22573
23643
  "name": "CommandPalette",
22574
- "description": "The command palette of the dashboard (Dodo Nest Command palette): search the dashboard and jump to a page.\nA 640 wide tray on Surface/Scrim near the top of the screen: the search row with `esc`, the grouped results\n(neutral Featured icon, title, description and a tag, 56 tall, the first selected) or an Empty state, and the\nkey hints on the grey strip. `/` opens it; ↑ ↓ move, ↵ opens, esc closes. Built from the `Command` parts.",
23644
+ "description": "The command palette of the dashboard (Dodo Nest Command palette): search the dashboard and jump to a page.\nA 640 wide tray on Surface/Scrim near the top of the screen: the search row with `esc`, the grouped results\n(neutral Featured icon, title, description and a tag, 56 tall, the first selected) or an Empty state, and the\nkey hints on the grey strip. `/` opens it; ↑ ↓ move, ↵ opens, esc closes. Built from the `Command` parts. For\nresults a server searches, pass `shouldFilter={false}` and `loading` while they load.",
22575
23645
  "props": [
22576
23646
  {
22577
23647
  "name": "groups",
@@ -22610,6 +23680,14 @@
22610
23680
  "description": "",
22611
23681
  "source": "dodo"
22612
23682
  },
23683
+ {
23684
+ "name": "loading",
23685
+ "type": "boolean",
23686
+ "required": false,
23687
+ "default": "false",
23688
+ "description": "Results are on their way: a spinner in the search row, and `labels.loading` in place of the empty state.",
23689
+ "source": "dodo"
23690
+ },
22613
23691
  {
22614
23692
  "name": "onOpenChange",
22615
23693
  "type": "((open: boolean) => void)",
@@ -22653,6 +23731,14 @@
22653
23731
  "description": "The key that opens the palette when no field has focus; `false` binds nothing.",
22654
23732
  "source": "dodo"
22655
23733
  },
23734
+ {
23735
+ "name": "shouldFilter",
23736
+ "type": "boolean",
23737
+ "required": false,
23738
+ "default": "true",
23739
+ "description": "`false` shows `groups` as given, in their order, for results the server already matched and ranked to the query.",
23740
+ "source": "dodo"
23741
+ },
22656
23742
  {
22657
23743
  "name": "showFooter",
22658
23744
  "type": "boolean",
@@ -22963,7 +24049,7 @@
22963
24049
  "title": "List item",
22964
24050
  "category": "Data display",
22965
24051
  "status": "stable",
22966
- "description": "One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line\neach, with an ellipsis) and a trailing part. `layout` is `row` (order lines, settings rows, sessions, saved\npayment methods inside a panel; a divider under every row but the last), `card` (side-by-side portal cards, 12\napart), `tile` (a bordered row tile: add-ons with a quantity, or with `href` / `render` a link with a chevron for a settings index) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with\n`render={<li />}`, a link with `render={<a href=\"…\" />}`); the add tile renders a `<button>`. It has no hover or\nselected state: for a choice, use a Radio card.",
24052
+ "description": "One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line\neach, with an ellipsis, or whole with `wrap`) and a trailing part. `layout` is `row` (order lines, settings rows, sessions, saved\npayment methods inside a panel; a divider under every row but the last), `card` (side-by-side portal cards, 12\napart), `tile` (a bordered row tile: add-ons with a quantity, or with `href` / `render` a link with a chevron for a settings index) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with\n`render={<li />}`, a link with `render={<a href=\"…\" />}`); the add tile renders a `<button>`. It has no hover or\nselected state: for a choice, use a Radio card.",
22967
24053
  "importPath": "@dodopayments/ui/list-item",
22968
24054
  "exports": [
22969
24055
  "DODO_LIST_ITEM_DEFAULT_VARIANTS",
@@ -22979,13 +24065,13 @@
22979
24065
  "parts": [
22980
24066
  {
22981
24067
  "name": "ListItem",
22982
- "description": "One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line\neach, with an ellipsis) and a trailing part. `layout` is `row` (order lines, settings rows, sessions, saved\npayment methods inside a panel; a divider under every row but the last), `card` (side-by-side portal cards, 12\napart), `tile` (a bordered row tile: add-ons with a quantity, or with `href` / `render` a link with a chevron for a settings index) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with\n`render={<li />}`, a link with `render={<a href=\"…\" />}`); the add tile renders a `<button>`. It has no hover or\nselected state: for a choice, use a Radio card.",
24068
+ "description": "One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line\neach, with an ellipsis, or whole with `wrap`) and a trailing part. `layout` is `row` (order lines, settings rows, sessions, saved\npayment methods inside a panel; a divider under every row but the last), `card` (side-by-side portal cards, 12\napart), `tile` (a bordered row tile: add-ons with a quantity, or with `href` / `render` a link with a chevron for a settings index) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with\n`render={<li />}`, a link with `render={<a href=\"…\" />}`); the add tile renders a `<button>`. It has no hover or\nselected state: for a choice, use a Radio card.",
22983
24069
  "props": [
22984
24070
  {
22985
24071
  "name": "title",
22986
24072
  "type": "ReactNode",
22987
24073
  "required": true,
22988
- "description": "The title, one line with an ellipsis (Labels/Primary). With `layout=\"add\"`, the tile's label.",
24074
+ "description": "The title, one line with an ellipsis (Labels/Primary), or whole with `wrap`. With `layout=\"add\"`, the tile's label.",
22989
24075
  "source": "dodo"
22990
24076
  },
22991
24077
  {
@@ -22999,7 +24085,7 @@
22999
24085
  "name": "description",
23000
24086
  "type": "ReactNode",
23001
24087
  "required": false,
23002
- "description": "One line under the title with an ellipsis (Body/Secondary, Content/Secondary).",
24088
+ "description": "One line under the title with an ellipsis (Body/Secondary, Content/Secondary), or whole with `wrap`.",
23003
24089
  "source": "dodo"
23004
24090
  },
23005
24091
  {
@@ -23065,6 +24151,14 @@
23065
24151
  "description": "The trailing part: a `ListItemPrice`, a quantity stepper, a `Badge`, a `Button` or a chevron, 8 apart. In a card\nit spreads across the bottom (e.g. the price and an Add button).",
23066
24152
  "source": "dodo"
23067
24153
  },
24154
+ {
24155
+ "name": "wrap",
24156
+ "type": "boolean",
24157
+ "required": false,
24158
+ "default": "false",
24159
+ "description": "Wrap the title and description to more lines instead of cutting them with an ellipsis, for text that must read\nwhole (a settings index or a report tile).",
24160
+ "source": "dodo"
24161
+ },
23068
24162
  {
23069
24163
  "name": "render",
23070
24164
  "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>",
@@ -23453,7 +24547,7 @@
23453
24547
  "title": "Leaderboard",
23454
24548
  "category": "Data display",
23455
24549
  "status": "stable",
23456
- "description": "Top customers by spend (Dodo Nest Leaderboard): a podium of the top three (one joined block of white cells\nwith a gold, silver or bronze glow and a ribbon medal, in rank order 1 · 2 · 3), then a ranked list from 4\ndown, 12 below. With two customers the third cell is hidden and there is no list; with none it shows the\nempty state; `loading` shows the skeleton. Put it in a `Card`. Compose `LeaderboardPodium`,\n`LeaderboardPodiumCell`, `LeaderboardList` and `LeaderboardRow` for a custom layout.",
24550
+ "description": "Top customers by spend (Dodo Nest Leaderboard): a podium of the top three (one joined block of white cells\nwith a gold, silver or bronze glow and a ribbon medal, in rank order 1 · 2 · 3), then a ranked list from 4\ndown, 12 below. Under 24rem (384px) wide the podium stacks, each place a row with its medal beside the text, so\nthe amounts and names read whole. With two customers the third cell is hidden and there is no list; with none it shows the\nempty state; `loading` shows the skeleton. Put it in a `Card`. Compose `LeaderboardPodium`,\n`LeaderboardPodiumCell`, `LeaderboardList` and `LeaderboardRow` for a custom layout.",
23457
24551
  "importPath": "@dodopayments/ui/leaderboard",
23458
24552
  "exports": [
23459
24553
  "DODO_LEADERBOARD_PODIUM_CELL_DEFAULT_VARIANTS",
@@ -23476,7 +24570,7 @@
23476
24570
  "parts": [
23477
24571
  {
23478
24572
  "name": "Leaderboard",
23479
- "description": "Top customers by spend (Dodo Nest Leaderboard): a podium of the top three (one joined block of white cells\nwith a gold, silver or bronze glow and a ribbon medal, in rank order 1 · 2 · 3), then a ranked list from 4\ndown, 12 below. With two customers the third cell is hidden and there is no list; with none it shows the\nempty state; `loading` shows the skeleton. Put it in a `Card`. Compose `LeaderboardPodium`,\n`LeaderboardPodiumCell`, `LeaderboardList` and `LeaderboardRow` for a custom layout.",
24573
+ "description": "Top customers by spend (Dodo Nest Leaderboard): a podium of the top three (one joined block of white cells\nwith a gold, silver or bronze glow and a ribbon medal, in rank order 1 · 2 · 3), then a ranked list from 4\ndown, 12 below. Under 24rem (384px) wide the podium stacks, each place a row with its medal beside the text, so\nthe amounts and names read whole. With two customers the third cell is hidden and there is no list; with none it shows the\nempty state; `loading` shows the skeleton. Put it in a `Card`. Compose `LeaderboardPodium`,\n`LeaderboardPodiumCell`, `LeaderboardList` and `LeaderboardRow` for a custom layout.",
23480
24574
  "props": [
23481
24575
  {
23482
24576
  "name": "items",
@@ -23540,7 +24634,7 @@
23540
24634
  },
23541
24635
  {
23542
24636
  "name": "LeaderboardPodium",
23543
- "description": "The podium block: one `<ol>` with a 1px Border/Primary ring and Radius/Large that clips its\n`LeaderboardPodiumCell`s, equal width, with 1px dividers between them. Put two or three cells in rank order.",
24637
+ "description": "The podium block: one `<ol>` with a 1px Border/Primary ring and Radius/Large that clips its\n`LeaderboardPodiumCell`s, equal width, with 1px dividers between them. Put two or three cells in rank order.\nIn a `Leaderboard` under 24rem (384px) wide the cells stack, each a row with its medal beside the text.",
23544
24638
  "props": []
23545
24639
  },
23546
24640
  {
@@ -23932,7 +25026,7 @@
23932
25026
  "examples": [
23933
25027
  {
23934
25028
  "name": "milestone/celebration",
23935
- "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { type MilestoneCategory, MilestoneToast } from \"@dodopayments/ui/milestone\";\nimport { SegmentedControl } from \"@dodopayments/ui/segmented-control\";\nimport { useState } from \"react\";\n\nconst NOTICES: Record<MilestoneCategory, { title: string; description: string }> = {\n customers: {\n title: \"100 customers, and counting\",\n description: \"You've officially got product-market fit. Let the world know.\",\n },\n geography: {\n title: \"Your business has no borders\",\n description: \"You've made sales in 23 countries. Most founders never leave their home market.\",\n },\n revenue: {\n title: \"Crossed $10,000\",\n description:\n \"From zero to $10,000 that's real money, from people who believed in what you built.\",\n },\n growth: {\n title: \"3x growth this month\",\n description: \"Month over month, you didn't just grow, you multiplied.\",\n },\n};\n\nexport default function MilestoneCelebration() {\n const [category, setCategory] = useState<MilestoneCategory>(\"customers\");\n const [open, setOpen] = useState(true);\n\n return (\n <div className=\"flex flex-col items-center gap-6\">\n <SegmentedControl\n aria-label=\"Milestone category\"\n value={category}\n onValueChange={(value) => {\n setCategory(value as MilestoneCategory);\n setOpen(true);\n }}\n items={[\n { value: \"customers\", label: \"Customers\" },\n { value: \"geography\", label: \"Geography\" },\n { value: \"revenue\", label: \"Revenue\" },\n { value: \"growth\", label: \"Growth\" },\n ]}\n />\n {open ? (\n <MilestoneToast\n category={category}\n {...NOTICES[category]}\n onShare={() => setOpen(false)}\n onDismiss={() => setOpen(false)}\n />\n ) : (\n <Button variant=\"secondary\" onClick={() => setOpen(true)}>\n Show the notice again\n </Button>\n )}\n </div>\n );\n}"
25029
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { type MilestoneCategory, MilestoneToast } from \"@dodopayments/ui/milestone\";\nimport { SegmentedControl } from \"@dodopayments/ui/segmented-control\";\nimport { useState } from \"react\";\n\nconst NOTICES: Record<MilestoneCategory, { title: string; description: string }> = {\n customers: {\n title: \"100 customers, and counting\",\n description: \"You've officially got product-market fit. Let the world know.\",\n },\n geography: {\n title: \"Your business has no borders\",\n description: \"You've made sales in 23 countries. Most founders never leave their home market.\",\n },\n revenue: {\n title: \"Crossed $10,000\",\n description:\n \"From zero to $10,000 that's real money, from people who believed in what you built.\",\n },\n growth: {\n title: \"3x growth this month\",\n description: \"Month over month, you didn't just grow, you multiplied.\",\n },\n};\n\nexport default function MilestoneCelebration() {\n const [category, setCategory] = useState<MilestoneCategory>(\"customers\");\n const [open, setOpen] = useState(true);\n\n return (\n <div className=\"flex w-full flex-col items-center gap-6\">\n <SegmentedControl\n aria-label=\"Milestone category\"\n value={category}\n onValueChange={(value) => {\n setCategory(value as MilestoneCategory);\n setOpen(true);\n }}\n items={[\n { value: \"customers\", label: \"Customers\" },\n { value: \"geography\", label: \"Geography\" },\n { value: \"revenue\", label: \"Revenue\" },\n { value: \"growth\", label: \"Growth\" },\n ]}\n />\n {open ? (\n <MilestoneToast\n category={category}\n {...NOTICES[category]}\n onShare={() => setOpen(false)}\n onDismiss={() => setOpen(false)}\n />\n ) : (\n <Button variant=\"secondary\" onClick={() => setOpen(true)}>\n Show the notice again\n </Button>\n )}\n </div>\n );\n}"
23936
25030
  },
23937
25031
  {
23938
25032
  "name": "milestone/empty",
@@ -23955,32 +25049,88 @@
23955
25049
  "code": "\"use client\";\n\nimport { AppTopBarMilestonesRing } from \"@dodopayments/ui/app-top-bar\";\nimport { Button } from \"@dodopayments/ui/button\";\nimport {\n Popover,\n PopoverContent,\n PopoverHeader,\n PopoverPanel,\n PopoverTitle,\n PopoverTrigger,\n} from \"@dodopayments/ui/popover\";\nimport { Progress } from \"@dodopayments/ui/progress\";\n\nconst NEXT = [\n { title: \"40 countries\", progress: 60 },\n { title: \"$50,000 processed\", progress: 70 },\n { title: \"2,000 customers\", progress: 50 },\n];\n\nexport default function MilestoneUpNext() {\n return (\n <Popover>\n <PopoverTrigger render={<Button variant=\"secondary\" />}>\n <AppTopBarMilestonesRing progress={0.4} />\n Milestones\n </PopoverTrigger>\n <PopoverContent size=\"sm\" align=\"end\" sideOffset={8}>\n <PopoverHeader>\n <PopoverTitle>Up next</PopoverTitle>\n </PopoverHeader>\n <PopoverPanel>\n <ul className=\"flex flex-col divide-y divide-border\">\n {NEXT.map((item) => (\n <li key={item.title} className=\"flex flex-col gap-2 py-3 first:pt-0 last:pb-0\">\n <span className=\"text-label-primary text-foreground\">{item.title}</span>\n <div className=\"flex items-center gap-3\">\n <Progress\n value={item.progress}\n aria-label={item.title}\n className=\"min-w-0 flex-1\"\n />\n <span className=\"shrink-0 text-label-secondary text-muted-foreground tabular-nums\">\n {item.progress}%\n </span>\n </div>\n </li>\n ))}\n </ul>\n </PopoverPanel>\n </PopoverContent>\n </Popover>\n );\n}"
23956
25050
  }
23957
25051
  ],
23958
- "docsUrl": "/components/milestone"
25052
+ "docsUrl": "/components/milestone"
25053
+ },
25054
+ {
25055
+ "slug": "sale-share-card",
25056
+ "title": "Sale share card",
25057
+ "category": "Data display",
25058
+ "status": "stable",
25059
+ "description": "A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the\nbusiness chip, a headline and the amount in the brand lime with a dark outline. Always light, whatever the theme,\nso the saved picture looks the same. Capture this element at its own size, and preview it in a `ScaledFrame`.",
25060
+ "importPath": "@dodopayments/ui/sale-share-card",
25061
+ "exports": [
25062
+ "SaleShareBusiness",
25063
+ "SaleShareCard",
25064
+ "SaleShareCardProps"
25065
+ ],
25066
+ "parts": [
25067
+ {
25068
+ "name": "SaleShareCard",
25069
+ "description": "A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the\nbusiness chip, a headline and the amount in the brand lime with a dark outline. Always light, whatever the theme,\nso the saved picture looks the same. Capture this element at its own size, and preview it in a `ScaledFrame`.",
25070
+ "props": [
25071
+ {
25072
+ "name": "amount",
25073
+ "type": "string",
25074
+ "required": true,
25075
+ "description": "The sale, formatted, e.g. \"$1,234.56\". It shrinks to fit the card.",
25076
+ "source": "dodo"
25077
+ },
25078
+ {
25079
+ "name": "background",
25080
+ "type": "string",
25081
+ "required": true,
25082
+ "description": "The artwork behind the card, an image URL. Decorative.",
25083
+ "source": "dodo"
25084
+ },
25085
+ {
25086
+ "name": "headline",
25087
+ "type": "ReactNode",
25088
+ "required": true,
25089
+ "description": "The line above the amount, e.g. \"Cha-ching! A new sale is in\".",
25090
+ "source": "dodo"
25091
+ },
25092
+ {
25093
+ "name": "business",
25094
+ "type": "SaleShareBusiness",
25095
+ "required": false,
25096
+ "description": "The business chip at the top. Leave it out when the merchant turns off \"Include business and logo\"; the card\nkeeps its size so the shared image is always 720 by 400.",
25097
+ "source": "dodo"
25098
+ },
25099
+ {
25100
+ "name": "className",
25101
+ "type": "string",
25102
+ "required": false,
25103
+ "description": "Additional Tailwind classes, merged last.",
25104
+ "source": "dodo"
25105
+ }
25106
+ ]
25107
+ }
25108
+ ],
25109
+ "examples": [
25110
+ {
25111
+ "name": "sale-share-card/master",
25112
+ "code": "\"use client\";\n\nimport { SaleShareCard } from \"@dodopayments/ui/sale-share-card\";\nimport { ScaledFrame } from \"@dodopayments/ui/scaled-frame\";\n\nexport default function SaleShareCardDemo() {\n return (\n <ScaledFrame width={720} height={400} className=\"max-w-180\">\n <SaleShareCard\n amount=\"$1,234.56\"\n headline=\"Cha-ching! A new sale is in\"\n background=\"/samples/sale-share-lagoon.webp\"\n business={{ name: \"Incubix\" }}\n />\n </ScaledFrame>\n );\n}"
25113
+ }
25114
+ ],
25115
+ "docsUrl": "/components/sale-share-card"
23959
25116
  },
23960
25117
  {
23961
- "slug": "sale-share-card",
23962
- "title": "Sale share card",
25118
+ "slug": "chart-share-card",
25119
+ "title": "Chart share card",
23963
25120
  "category": "Data display",
23964
25121
  "status": "stable",
23965
- "description": "A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the\nbusiness chip, a headline and the amount in the brand lime with a dark outline. Always light, whatever the theme,\nso the saved picture looks the same. Capture this element at its own size, and preview it in a `ScaledFrame`.",
23966
- "importPath": "@dodopayments/ui/sale-share-card",
25122
+ "description": "An analytics card as an image to share (the dashboard's Analytics and Home, Share): the card at a fixed design\nwidth on artwork, the business chip above it and the Dodo Payments lockup with a verified badge below. The card\nfollows the theme. Capture this element at its own size, and preview it in a `ScaledFrame`.",
25123
+ "importPath": "@dodopayments/ui/chart-share-card",
23967
25124
  "exports": [
23968
- "SaleShareBusiness",
23969
- "SaleShareCard",
23970
- "SaleShareCardProps"
25125
+ "ChartShareBusiness",
25126
+ "ChartShareCard",
25127
+ "ChartShareCardProps"
23971
25128
  ],
23972
25129
  "parts": [
23973
25130
  {
23974
- "name": "SaleShareCard",
23975
- "description": "A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the\nbusiness chip, a headline and the amount in the brand lime with a dark outline. Always light, whatever the theme,\nso the saved picture looks the same. Capture this element at its own size, and preview it in a `ScaledFrame`.",
25131
+ "name": "ChartShareCard",
25132
+ "description": "An analytics card as an image to share (the dashboard's Analytics and Home, Share): the card at a fixed design\nwidth on artwork, the business chip above it and the Dodo Payments lockup with a verified badge below. The card\nfollows the theme. Capture this element at its own size, and preview it in a `ScaledFrame`.",
23976
25133
  "props": [
23977
- {
23978
- "name": "amount",
23979
- "type": "string",
23980
- "required": true,
23981
- "description": "The sale, formatted, e.g. \"$1,234.56\". It shrinks to fit the card.",
23982
- "source": "dodo"
23983
- },
23984
25134
  {
23985
25135
  "name": "background",
23986
25136
  "type": "string",
@@ -23989,17 +25139,24 @@
23989
25139
  "source": "dodo"
23990
25140
  },
23991
25141
  {
23992
- "name": "headline",
25142
+ "name": "verified",
23993
25143
  "type": "ReactNode",
23994
25144
  "required": true,
23995
- "description": "The line above the amount, e.g. \"Cha-ching! A new sale is in\".",
25145
+ "description": "The word beside the badge under the card, e.g. \"Verified\".",
25146
+ "source": "dodo"
25147
+ },
25148
+ {
25149
+ "name": "backgroundTone",
25150
+ "type": "\"light\" | \"dark\"",
25151
+ "required": false,
25152
+ "description": "Whether the foot of the artwork is light (a near-black lockup) or dark (a white one), so the lockup stays legible.\nDefault: `\"light\"`.",
23996
25153
  "source": "dodo"
23997
25154
  },
23998
25155
  {
23999
25156
  "name": "business",
24000
- "type": "SaleShareBusiness",
25157
+ "type": "ChartShareBusiness",
24001
25158
  "required": false,
24002
- "description": "The business chip at the top. Leave it out when the merchant turns off \"Include business and logo\"; the card\nkeeps its size so the shared image is always 720 by 400.",
25159
+ "description": "The business chip above the card. Leave it out when the merchant turns off \"Include business & logo\".",
24003
25160
  "source": "dodo"
24004
25161
  },
24005
25162
  {
@@ -24008,17 +25165,19 @@
24008
25165
  "required": false,
24009
25166
  "description": "Additional Tailwind classes, merged last.",
24010
25167
  "source": "dodo"
25168
+ },
25169
+ {
25170
+ "name": "wide",
25171
+ "type": "boolean",
25172
+ "required": false,
25173
+ "description": "860px for a card whose body is a wide pairing (a map beside its rows); 550px otherwise.",
25174
+ "source": "dodo"
24011
25175
  }
24012
25176
  ]
24013
25177
  }
24014
25178
  ],
24015
- "examples": [
24016
- {
24017
- "name": "sale-share-card/master",
24018
- "code": "\"use client\";\n\nimport { SaleShareCard } from \"@dodopayments/ui/sale-share-card\";\nimport { ScaledFrame } from \"@dodopayments/ui/scaled-frame\";\n\nexport default function SaleShareCardDemo() {\n return (\n <ScaledFrame width={720} height={400} className=\"max-w-180\">\n <SaleShareCard\n amount=\"$1,234.56\"\n headline=\"Cha-ching! A new sale is in\"\n background=\"/samples/sale-share-lagoon.webp\"\n business={{ name: \"Incubix\" }}\n />\n </ScaledFrame>\n );\n}"
24019
- }
24020
- ],
24021
- "docsUrl": "/components/sale-share-card"
25179
+ "examples": [],
25180
+ "docsUrl": "/components/chart-share-card"
24022
25181
  },
24023
25182
  {
24024
25183
  "slug": "setup-guide",
@@ -24158,7 +25317,7 @@
24158
25317
  "examples": [
24159
25318
  {
24160
25319
  "name": "setup-guide/master",
24161
- "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport {\n SetupGuide,\n SetupGuideIntro,\n type SetupGuideItem,\n type SetupGuideTaskState,\n} from \"@dodopayments/ui/setup-guide\";\nimport { useState } from \"react\";\n\nconst VERIFY = [\n [\"product\", \"Product Verification\"],\n [\"identity\", \"Personal identity\"],\n [\"business\", \"Business Information\"],\n [\"bank\", \"Bank Details\"],\n] as const;\nconst TEST = [\n [\"test-product\", \"Create a product\"],\n [\"test-integrate\", \"Integrate\"],\n [\"test-payment\", \"Make first test payment\"],\n] as const;\nconst LIVE = [\n [\"live-products\", \"Create products in Live mode\", false],\n [\"live-integrate\", \"Integrate (live)\", true],\n [\"branding\", \"Set up branding\", true],\n [\"zero-payment\", \"Make a $0 payment\", false],\n] as const;\n\ntype TaskId = (typeof VERIFY)[number][0] | (typeof TEST)[number][0] | (typeof LIVE)[number][0];\n\nconst INITIAL = Object.fromEntries(\n [...VERIFY, ...TEST, ...LIVE].map(([id]) => [id, \"pending\"]),\n) as Record<TaskId, SetupGuideTaskState>;\n\n/**\n * The Setup guide with the Design File's content: press a verification task to submit it (In review), press a test\n * or live task to finish it or use Mark as done, open the steps, collapse the guide, dismiss the intro, and close and\n * reopen the guide.\n */\nexport default function SetupGuideMaster() {\n const [states, setStates] = useState(INITIAL);\n const [intro, setIntro] = useState(true);\n const [open, setOpen] = useState(true);\n const set = (id: TaskId, state: SetupGuideTaskState) =>\n setStates((current) => ({ ...current, [id]: state }));\n\n const items: SetupGuideItem[] = [\n {\n id: \"verify\",\n title: \"Verify your account\",\n tasks: VERIFY.map(([id, label]) => ({\n id,\n label,\n state: states[id],\n // A pending form opens; submitting it puts it in review.\n onSelect: states[id] === \"pending\" ? () => set(id, \"in-review\") : undefined,\n })),\n },\n {\n id: \"test\",\n title: \"Test mode integration\",\n tasks: TEST.map(([id, label]) => ({\n id,\n label,\n state: states[id],\n onSelect: states[id] === \"done\" ? undefined : () => set(id, \"done\"),\n })),\n },\n {\n id: \"live\",\n title: \"Live mode integration\",\n tasks: LIVE.map(([id, label, manual]) => ({\n id,\n label,\n state: states[id],\n onSelect: manual || states[id] === \"done\" ? undefined : () => set(id, \"done\"),\n onMarkDone: manual ? () => set(id, \"done\") : undefined,\n })),\n },\n {\n id: \"go-live\",\n title: \"Go live\",\n hint: \"Unlocks once verification is approved\",\n locked: true,\n },\n ];\n\n return (\n <div className=\"flex min-h-130 flex-col items-center justify-end gap-2\">\n {open && intro ? <SetupGuideIntro onDismiss={() => setIntro(false)} /> : null}\n {open ? (\n <SetupGuide items={items} defaultOpenItem=\"verify\" onClose={() => setOpen(false)} />\n ) : (\n <Button variant=\"secondary\" onClick={() => setOpen(true)}>\n Open the setup guide\n </Button>\n )}\n </div>\n );\n}"
25320
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport {\n SetupGuide,\n SetupGuideIntro,\n type SetupGuideItem,\n type SetupGuideTaskState,\n} from \"@dodopayments/ui/setup-guide\";\nimport { useState } from \"react\";\n\nconst VERIFY = [\n [\"product\", \"Product Verification\"],\n [\"identity\", \"Personal identity\"],\n [\"business\", \"Business Information\"],\n [\"bank\", \"Bank Details\"],\n] as const;\nconst TEST = [\n [\"test-product\", \"Create a product\"],\n [\"test-integrate\", \"Integrate\"],\n [\"test-payment\", \"Make first test payment\"],\n] as const;\nconst LIVE = [\n [\"live-products\", \"Create products in Live mode\", false],\n [\"live-integrate\", \"Integrate (live)\", true],\n [\"branding\", \"Set up branding\", true],\n [\"zero-payment\", \"Make a $0 payment\", false],\n] as const;\n\ntype TaskId = (typeof VERIFY)[number][0] | (typeof TEST)[number][0] | (typeof LIVE)[number][0];\n\nconst INITIAL = Object.fromEntries(\n [...VERIFY, ...TEST, ...LIVE].map(([id]) => [id, \"pending\"]),\n) as Record<TaskId, SetupGuideTaskState>;\n\n/**\n * The Setup guide with the Design File's content: press a verification task to submit it (In review), press a test\n * or live task to finish it or use Mark as done, open the steps, collapse the guide, dismiss the intro, and close and\n * reopen the guide.\n */\nexport default function SetupGuideMaster() {\n const [states, setStates] = useState(INITIAL);\n const [intro, setIntro] = useState(true);\n const [open, setOpen] = useState(true);\n const set = (id: TaskId, state: SetupGuideTaskState) =>\n setStates((current) => ({ ...current, [id]: state }));\n\n const items: SetupGuideItem[] = [\n {\n id: \"verify\",\n title: \"Verify your account\",\n tasks: VERIFY.map(([id, label]) => ({\n id,\n label,\n state: states[id],\n // A pending form opens; submitting it puts it in review.\n onSelect: states[id] === \"pending\" ? () => set(id, \"in-review\") : undefined,\n })),\n },\n {\n id: \"test\",\n title: \"Test mode integration\",\n tasks: TEST.map(([id, label]) => ({\n id,\n label,\n state: states[id],\n onSelect: states[id] === \"done\" ? undefined : () => set(id, \"done\"),\n })),\n },\n {\n id: \"live\",\n title: \"Live mode integration\",\n tasks: LIVE.map(([id, label, manual]) => ({\n id,\n label,\n state: states[id],\n onSelect: manual || states[id] === \"done\" ? undefined : () => set(id, \"done\"),\n onMarkDone: manual ? () => set(id, \"done\") : undefined,\n })),\n },\n {\n id: \"go-live\",\n title: \"Go live\",\n hint: \"Unlocks once verification is approved\",\n locked: true,\n },\n ];\n\n return (\n <div className=\"flex min-h-130 w-full flex-col items-center justify-end gap-2\">\n {open && intro ? <SetupGuideIntro onDismiss={() => setIntro(false)} /> : null}\n {open ? (\n <SetupGuide items={items} defaultOpenItem=\"verify\" onClose={() => setOpen(false)} />\n ) : (\n <Button variant=\"secondary\" onClick={() => setOpen(true)}>\n Open the setup guide\n </Button>\n )}\n </div>\n );\n}"
24162
25321
  },
24163
25322
  {
24164
25323
  "name": "setup-guide/with-top-bar",
@@ -24562,7 +25721,7 @@
24562
25721
  },
24563
25722
  {
24564
25723
  "name": "size",
24565
- "type": "\"default\" | \"icon\" | \"xs\" | \"lg\" | \"icon-xs\" | \"icon-lg\" | null",
25724
+ "type": "\"default\" | \"sm\" | \"icon\" | \"xs\" | \"lg\" | \"icon-sm\" | \"icon-xs\" | \"icon-lg\" | null",
24566
25725
  "required": false,
24567
25726
  "description": "",
24568
25727
  "source": "dodo"
@@ -24733,7 +25892,7 @@
24733
25892
  },
24734
25893
  {
24735
25894
  "name": "size",
24736
- "type": "\"default\" | \"icon\" | \"xs\" | \"lg\" | \"icon-xs\" | \"icon-lg\" | null",
25895
+ "type": "\"default\" | \"sm\" | \"icon\" | \"xs\" | \"lg\" | \"icon-sm\" | \"icon-xs\" | \"icon-lg\" | null",
24737
25896
  "required": false,
24738
25897
  "description": "",
24739
25898
  "source": "dodo"
@@ -25014,6 +26173,13 @@
25014
26173
  "description": "Turns off dragging and keyboard moves.",
25015
26174
  "source": "dodo"
25016
26175
  },
26176
+ {
26177
+ "name": "interactive",
26178
+ "type": "boolean",
26179
+ "required": false,
26180
+ "description": "Rows hold their own controls, such as a switch or a menu. Their content stays readable by assistive\ntechnology, a key pressed on a control does not grab the row, and a row drags only from its handle, so a\nclick on a control never starts a drag.",
26181
+ "source": "dodo"
26182
+ },
25017
26183
  {
25018
26184
  "name": "onValueCommitted",
25019
26185
  "type": "((next: T[]) => void)",
@@ -25094,6 +26260,10 @@
25094
26260
  {
25095
26261
  "name": "reorder-list/commit",
25096
26262
  "code": "\"use client\";\n\nimport { ReorderList } from \"@dodopayments/ui/reorder-list\";\nimport { useState } from \"react\";\n\nconst STEPS = [\n \"Verify email\",\n \"Add a payment method\",\n \"Create a product\",\n \"Share the checkout link\",\n];\n\nexport default function ReorderListCommit() {\n const [steps, setSteps] = useState(STEPS);\n const [saved, setSaved] = useState(0);\n\n return (\n <div className=\"flex w-full max-w-sm flex-col gap-3\">\n <ReorderList\n aria-label=\"Onboarding steps\"\n value={steps}\n getKey={(s) => s}\n getLabel={(s) => s}\n onValueChange={setSteps}\n onValueCommitted={() => {\n setSaved((n) => n + 1);\n }}\n >\n {(s) => s}\n </ReorderList>\n <p className=\"text-body-primary text-muted-foreground\">\n Saved {saved} times. A save runs once per drop.\n </p>\n </div>\n );\n}"
26263
+ },
26264
+ {
26265
+ "name": "reorder-list/interactive",
26266
+ "code": "\"use client\";\n\nimport { ReorderList } from \"@dodopayments/ui/reorder-list\";\nimport { Switch } from \"@dodopayments/ui/switch\";\nimport { useState } from \"react\";\n\nconst PLANS = [\n { id: \"monthly\", name: \"Pro monthly\", on: true },\n { id: \"annual\", name: \"Pro annual\", on: true },\n { id: \"lifetime\", name: \"Lifetime\", on: false },\n];\n\nexport default function ReorderListInteractive() {\n const [plans, setPlans] = useState(PLANS);\n\n return (\n <ReorderList\n aria-label=\"Plans at checkout\"\n className=\"max-w-sm\"\n interactive\n value={plans}\n getKey={(p) => p.id}\n getLabel={(p) => p.name}\n onValueChange={setPlans}\n >\n {(p) => (\n <label className=\"flex items-center justify-between gap-3\">\n <span className=\"text-label-primary\">{p.name}</span>\n <Switch\n checked={p.on}\n onCheckedChange={(on) => {\n setPlans((all) => all.map((x) => (x.id === p.id ? { ...x, on } : x)));\n }}\n />\n </label>\n )}\n </ReorderList>\n );\n}"
25097
26267
  }
25098
26268
  ],
25099
26269
  "docsUrl": "/components/reorder-list"
@@ -25732,6 +26902,8 @@
25732
26902
  "description": "A timestamp that reveals the exact time on hover, focus or tap: the trigger shows the time in\n`format`, the tooltip lists it in the preferred (or device) zone, in UTC, relative to now and as\nepoch milliseconds. Relative times refresh every 30 seconds. Built on the `Tooltip` primitive; on\ntouch (coarse pointer) devices a tap toggles it, since primitive tooltips open on hover and focus only.",
25733
26903
  "importPath": "@dodopayments/ui/timestamp",
25734
26904
  "exports": [
26905
+ "TimeZoneProvider",
26906
+ "TimeZoneProviderProps",
25735
26907
  "Timestamp",
25736
26908
  "TimestampFormat",
25737
26909
  "TimestampLabels",
@@ -25768,7 +26940,7 @@
25768
26940
  "name": "timeZone",
25769
26941
  "type": "string",
25770
26942
  "required": false,
25771
- "description": "IANA time zone (e.g. \"Asia/Kolkata\") for the trigger and the first tooltip row. When unset or\ninvalid, the trigger uses UTC and the first row uses the device's zone.",
26943
+ "description": "IANA time zone (e.g. \"Asia/Kolkata\") for the trigger and the first tooltip row, over the\nnearest `TimeZoneProvider`'s. When neither is set or valid, the trigger uses UTC and the first row uses the device's zone.",
25772
26944
  "source": "dodo"
25773
26945
  },
25774
26946
  {
@@ -25825,6 +26997,19 @@
25825
26997
  "source": "base-ui"
25826
26998
  }
25827
26999
  ]
27000
+ },
27001
+ {
27002
+ "name": "TimeZoneProvider",
27003
+ "description": "Sets the time zone of every `Timestamp` inside it (and the components built on it, such as the\nActivity timeline), e.g. a business's preferred zone. A `timeZone` prop on a Timestamp still wins.",
27004
+ "props": [
27005
+ {
27006
+ "name": "timeZone",
27007
+ "type": "string",
27008
+ "required": true,
27009
+ "description": "IANA time zone every `Timestamp` inside uses when it has no `timeZone` of its own.",
27010
+ "source": "dodo"
27011
+ }
27012
+ ]
25828
27013
  }
25829
27014
  ],
25830
27015
  "examples": [
@@ -26337,7 +27522,7 @@
26337
27522
  "title": "Page header",
26338
27523
  "category": "Navigation",
26339
27524
  "status": "stable",
26340
- "description": "The title row at the top of every dashboard page (Dodo Nest Page header). `size=\"sm\"` shrinks the title and\nraises the description for list and settings pages. Navigation is none (top-level pages),\n`back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above\nthe title). The title is Heading/Secondary with an optional `help` question icon and a `meta` slot for a status\nBadge or Copyable ID; `actions` holds up to two large Buttons on the right; the `description` sits under the title,\nindented past the back button. Rows are 4 apart. Below 576px (or with `breakpoint=\"mobile\"`) the back button gets\nits own row, the title the full width, and the actions move 8 below the description. No fill: put it first on the\nmain panel, 24 above the first section.",
27525
+ "description": "The title row at the top of every dashboard page (Dodo Nest Page header). `size=\"sm\"` shrinks the title and\nraises the description for list and settings pages. Navigation is none (top-level pages),\n`back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above\nthe title). The title is Heading/Secondary with an optional `help` question icon and a `meta` slot for a status\nBadge or Copyable ID; `actions` holds up to two large Buttons on the right; the `description` sits under the title,\nindented past the back button. Rows are 4 apart. Below 576px (or with `breakpoint=\"mobile\"`) the back button stays\nbeside the title and the actions move 8 below the description. No fill: put it first on the\nmain panel, 24 above the first section.",
26341
27526
  "importPath": "@dodopayments/ui/page-header",
26342
27527
  "exports": [
26343
27528
  "PageHeader",
@@ -26346,7 +27531,7 @@
26346
27531
  "parts": [
26347
27532
  {
26348
27533
  "name": "PageHeader",
26349
- "description": "The title row at the top of every dashboard page (Dodo Nest Page header). `size=\"sm\"` shrinks the title and\nraises the description for list and settings pages. Navigation is none (top-level pages),\n`back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above\nthe title). The title is Heading/Secondary with an optional `help` question icon and a `meta` slot for a status\nBadge or Copyable ID; `actions` holds up to two large Buttons on the right; the `description` sits under the title,\nindented past the back button. Rows are 4 apart. Below 576px (or with `breakpoint=\"mobile\"`) the back button gets\nits own row, the title the full width, and the actions move 8 below the description. No fill: put it first on the\nmain panel, 24 above the first section.",
27534
+ "description": "The title row at the top of every dashboard page (Dodo Nest Page header). `size=\"sm\"` shrinks the title and\nraises the description for list and settings pages. Navigation is none (top-level pages),\n`back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above\nthe title). The title is Heading/Secondary with an optional `help` question icon and a `meta` slot for a status\nBadge or Copyable ID; `actions` holds up to two large Buttons on the right; the `description` sits under the title,\nindented past the back button. Rows are 4 apart. Below 576px (or with `breakpoint=\"mobile\"`) the back button stays\nbeside the title and the actions move 8 below the description. No fill: put it first on the\nmain panel, 24 above the first section.",
26350
27535
  "props": [
26351
27536
  {
26352
27537
  "name": "title",
@@ -26799,7 +27984,7 @@
26799
27984
  "title": "Details Panel",
26800
27985
  "category": "Blocks",
26801
27986
  "status": "stable",
26802
- "description": "Read-only facts of a record as labelled values grouped in sections, ported from the dashboard's\npayment details panel and payout schedule card: a `Card` with the title, description and action on\nits grey strip and the sections and footer in the white panel, separated by rules, each section a description list (`<dl>`). `layout=\"grid\"` stacks label over\nvalue in 2 columns (3 when the panel is at least 28rem wide); `layout=\"rows\"` puts label and value\non one divided row. Values are preformatted nodes; empty ones show `emptyValue`, and `hidden`\nitems are left out.",
27987
+ "description": "Read-only facts of a record as labelled values grouped in sections, ported from the dashboard's\npayment details panel and payout schedule card: a `Card` with the title, description and action on\nits grey strip and the sections and footer in the white panel, separated by rules, each section a description list (`<dl>`). `layout=\"grid\"` stacks label over\nvalue in 2 columns (1 under 20rem, 3 from 28rem); `layout=\"rows\"` puts label and value\non one divided row. Values are preformatted nodes; empty ones show `emptyValue`, and `hidden`\nitems are left out.",
26803
27988
  "importPath": "@dodopayments/ui/details-panel",
26804
27989
  "exports": [
26805
27990
  "DetailsPanel",
@@ -26811,7 +27996,7 @@
26811
27996
  "parts": [
26812
27997
  {
26813
27998
  "name": "DetailsPanel",
26814
- "description": "Read-only facts of a record as labelled values grouped in sections, ported from the dashboard's\npayment details panel and payout schedule card: a `Card` with the title, description and action on\nits grey strip and the sections and footer in the white panel, separated by rules, each section a description list (`<dl>`). `layout=\"grid\"` stacks label over\nvalue in 2 columns (3 when the panel is at least 28rem wide); `layout=\"rows\"` puts label and value\non one divided row. Values are preformatted nodes; empty ones show `emptyValue`, and `hidden`\nitems are left out.",
27999
+ "description": "Read-only facts of a record as labelled values grouped in sections, ported from the dashboard's\npayment details panel and payout schedule card: a `Card` with the title, description and action on\nits grey strip and the sections and footer in the white panel, separated by rules, each section a description list (`<dl>`). `layout=\"grid\"` stacks label over\nvalue in 2 columns (1 under 20rem, 3 from 28rem); `layout=\"rows\"` puts label and value\non one divided row. Values are preformatted nodes; empty ones show `emptyValue`, and `hidden`\nitems are left out.",
26815
28000
  "props": [
26816
28001
  {
26817
28002
  "name": "sections",
@@ -26849,12 +28034,27 @@
26849
28034
  "description": "Content of the row below the sections, e.g. an \"Edit billing details\" button.",
26850
28035
  "source": "dodo"
26851
28036
  },
28037
+ {
28038
+ "name": "help",
28039
+ "type": "ReactNode",
28040
+ "required": false,
28041
+ "description": "With `title`: a secondary description in a Tooltip on an info icon after the heading, instead of a line\nunder it. See `CardTitle`'s `help`.",
28042
+ "source": "dodo"
28043
+ },
28044
+ {
28045
+ "name": "helpLabel",
28046
+ "type": "string",
28047
+ "required": false,
28048
+ "default": "\"More information\"",
28049
+ "description": "With `help`: accessible name of the info icon button.",
28050
+ "source": "dodo"
28051
+ },
26852
28052
  {
26853
28053
  "name": "layout",
26854
28054
  "type": "DetailsPanelLayout",
26855
28055
  "required": false,
26856
28056
  "default": "\"grid\"",
26857
- "description": "`grid` stacks each label above its value, 2 items per row and 3 once the panel is at least\n28rem wide (an `@md` container query on the panel). `rows` puts one item per row, the label at\nthe start and the value at the end, divided by rules.",
28057
+ "description": "`grid` stacks each label above its value, 1 item per row in a panel under 20rem (a phone), 2 from\n20rem and 3 once the panel is at least 28rem wide (container queries on the panel). `rows` puts one item per row, the label at\nthe start and the value at the end, divided by rules.",
26858
28058
  "source": "dodo"
26859
28059
  },
26860
28060
  {
@@ -26898,6 +28098,222 @@
26898
28098
  ],
26899
28099
  "docsUrl": "/blocks/details-panel"
26900
28100
  },
28101
+ {
28102
+ "slug": "invoice-document",
28103
+ "title": "Invoice Document",
28104
+ "category": "Blocks",
28105
+ "status": "stable",
28106
+ "description": "An invoice as its PDF prints, ported from the dashboard's invoice preview: A4 at 72 dpi (595 wide,\nat least 842 tall) with the title, status and merchant on a grey strip, the parties, the amount due,\nthe details, the lines and the totals, then Dodo's footer. It always draws light, as the PDF does.\nPut it in a `ScaledFrame` with `width={595}` to fit it to a column.",
28107
+ "importPath": "@dodopayments/ui/invoice-document",
28108
+ "exports": [
28109
+ "InvoiceDocument",
28110
+ "InvoiceDocumentCustomer",
28111
+ "InvoiceDocumentFact",
28112
+ "InvoiceDocumentIssuer",
28113
+ "InvoiceDocumentLabels",
28114
+ "InvoiceDocumentMerchant",
28115
+ "InvoiceDocumentProps",
28116
+ "InvoiceDocumentRow",
28117
+ "InvoiceDocumentTotal",
28118
+ "InvoiceOnlineLabels",
28119
+ "InvoiceOnlinePage",
28120
+ "InvoiceOnlinePageProps",
28121
+ "InvoiceOnlineRow"
28122
+ ],
28123
+ "parts": [
28124
+ {
28125
+ "name": "InvoiceDocument",
28126
+ "description": "An invoice as its PDF prints, ported from the dashboard's invoice preview: A4 at 72 dpi (595 wide,\nat least 842 tall) with the title, status and merchant on a grey strip, the parties, the amount due,\nthe details, the lines and the totals, then Dodo's footer. It always draws light, as the PDF does.\nPut it in a `ScaledFrame` with `width={595}` to fit it to a column.",
28127
+ "props": [
28128
+ {
28129
+ "name": "customer",
28130
+ "type": "InvoiceDocumentCustomer",
28131
+ "required": true,
28132
+ "description": "",
28133
+ "source": "dodo"
28134
+ },
28135
+ {
28136
+ "name": "details",
28137
+ "type": "readonly [readonly InvoiceDocumentFact[], readonly InvoiceDocumentFact[]]",
28138
+ "required": true,
28139
+ "description": "Invoice details in two columns: the number (and payment), then the date and currency.",
28140
+ "source": "dodo"
28141
+ },
28142
+ {
28143
+ "name": "footer",
28144
+ "type": "{ disclaimer: ReactNode; copyright: ReactNode; }",
28145
+ "required": true,
28146
+ "description": "The disclaimer and copyright in the footer.",
28147
+ "source": "dodo"
28148
+ },
28149
+ {
28150
+ "name": "headline",
28151
+ "type": "ReactNode",
28152
+ "required": true,
28153
+ "description": "The amount line above the details, e.g. \"$40.00 due on Nov 26, 2026\".",
28154
+ "source": "dodo"
28155
+ },
28156
+ {
28157
+ "name": "issuer",
28158
+ "type": "InvoiceDocumentIssuer",
28159
+ "required": true,
28160
+ "description": "",
28161
+ "source": "dodo"
28162
+ },
28163
+ {
28164
+ "name": "merchant",
28165
+ "type": "InvoiceDocumentMerchant",
28166
+ "required": true,
28167
+ "description": "",
28168
+ "source": "dodo"
28169
+ },
28170
+ {
28171
+ "name": "rows",
28172
+ "type": "readonly InvoiceDocumentRow[]",
28173
+ "required": true,
28174
+ "description": "",
28175
+ "source": "dodo"
28176
+ },
28177
+ {
28178
+ "name": "status",
28179
+ "type": "{ label: ReactNode; tone: \"success\" | \"error\" | \"neutral\"; }",
28180
+ "required": true,
28181
+ "description": "The status pill beside the title, e.g. Unpaid in red or Paid in green.",
28182
+ "source": "dodo"
28183
+ },
28184
+ {
28185
+ "name": "totals",
28186
+ "type": "readonly InvoiceDocumentTotal[]",
28187
+ "required": true,
28188
+ "description": "",
28189
+ "source": "dodo"
28190
+ },
28191
+ {
28192
+ "name": "discount",
28193
+ "type": "{ label: ReactNode; amount: ReactNode; }",
28194
+ "required": false,
28195
+ "description": "The discount row under the lines, e.g. \"Discounts Applied “WELCOME10”\" and its amount.",
28196
+ "source": "dodo"
28197
+ },
28198
+ {
28199
+ "name": "labels",
28200
+ "type": "Partial<InvoiceDocumentLabels>",
28201
+ "required": false,
28202
+ "description": "",
28203
+ "source": "dodo"
28204
+ },
28205
+ {
28206
+ "name": "payOnline",
28207
+ "type": "ReactNode",
28208
+ "required": false,
28209
+ "description": "The \"Pay Online\" link text under the headline. Leave it out on a paid invoice.",
28210
+ "source": "dodo"
28211
+ }
28212
+ ]
28213
+ },
28214
+ {
28215
+ "name": "InvoiceOnlinePage",
28216
+ "description": "The invoice email or the hosted invoice page, ported from the dashboard's invoice preview: the\nmerchant over a 480-wide card with the amount due, the customer (email) or the parties (hosted), a\nPay button, the order summary and the contact line. It always draws light. Put it in a\n`ScaledFrame` with `width={480}` to fit it to a column.",
28217
+ "props": [
28218
+ {
28219
+ "name": "amount",
28220
+ "type": "ReactNode",
28221
+ "required": true,
28222
+ "description": "The amount due, large.",
28223
+ "source": "dodo"
28224
+ },
28225
+ {
28226
+ "name": "due",
28227
+ "type": "ReactNode",
28228
+ "required": true,
28229
+ "description": "The line under the amount, e.g. \"Due Nov 26, 2026\".",
28230
+ "source": "dodo"
28231
+ },
28232
+ {
28233
+ "name": "merchant",
28234
+ "type": "InvoiceDocumentMerchant",
28235
+ "required": true,
28236
+ "description": "",
28237
+ "source": "dodo"
28238
+ },
28239
+ {
28240
+ "name": "rows",
28241
+ "type": "readonly InvoiceOnlineRow[]",
28242
+ "required": true,
28243
+ "description": "",
28244
+ "source": "dodo"
28245
+ },
28246
+ {
28247
+ "name": "supportEmail",
28248
+ "type": "ReactNode",
28249
+ "required": true,
28250
+ "description": "The address after `labels.contact`.",
28251
+ "source": "dodo"
28252
+ },
28253
+ {
28254
+ "name": "total",
28255
+ "type": "{ label: ReactNode; value: ReactNode; }",
28256
+ "required": true,
28257
+ "description": "The last line of the summary, e.g. \"Total Due\" and its amount.",
28258
+ "source": "dodo"
28259
+ },
28260
+ {
28261
+ "name": "variant",
28262
+ "type": "\"email\" | \"hosted\"",
28263
+ "required": true,
28264
+ "description": "`email` is the email the customer gets; `hosted` the page where they pay.",
28265
+ "source": "dodo"
28266
+ },
28267
+ {
28268
+ "name": "customer",
28269
+ "type": "InvoiceDocumentCustomer",
28270
+ "required": false,
28271
+ "description": "Email only: the customer block, as on the PDF.",
28272
+ "source": "dodo"
28273
+ },
28274
+ {
28275
+ "name": "discount",
28276
+ "type": "{ label: ReactNode; amount: ReactNode; }",
28277
+ "required": false,
28278
+ "description": "",
28279
+ "source": "dodo"
28280
+ },
28281
+ {
28282
+ "name": "facts",
28283
+ "type": "readonly InvoiceDocumentFact[]",
28284
+ "required": false,
28285
+ "description": "Hosted page only: label / value lines such as \"Invoice to :\" and \"From :\".",
28286
+ "source": "dodo"
28287
+ },
28288
+ {
28289
+ "name": "from",
28290
+ "type": "ReactNode",
28291
+ "required": false,
28292
+ "description": "The email's line above the amount, e.g. \"Invoice from Acme\". Email only.",
28293
+ "source": "dodo"
28294
+ },
28295
+ {
28296
+ "name": "labels",
28297
+ "type": "Partial<InvoiceOnlineLabels>",
28298
+ "required": false,
28299
+ "description": "",
28300
+ "source": "dodo"
28301
+ }
28302
+ ]
28303
+ }
28304
+ ],
28305
+ "examples": [
28306
+ {
28307
+ "name": "invoice-document/online",
28308
+ "code": "\"use client\";\n\nimport { InvoiceOnlinePage } from \"@dodopayments/ui/invoice-document\";\nimport { ScaledFrame } from \"@dodopayments/ui/scaled-frame\";\n\nconst rows = [\n { amount: \"$100.00 / mo\", id: \"plan\", name: \"Growth plan\", quantity: \"Qty : 1\" },\n { amount: \"$25.00\", id: \"seat\", name: \"Extra seat\", quantity: \"Qty : 1\" },\n];\n\nexport default function InvoiceDocumentOnline() {\n return (\n <div className=\"light grid w-full max-w-3xl gap-4 rounded-xl bg-muted px-4 py-8 sm:grid-cols-2\">\n <ScaledFrame width={480}>\n <InvoiceOnlinePage\n amount=\"$125.00\"\n customer={{ address: [\"Berlin\", \"DE\"], email: \"ada@example.com\", name: \"Ada Lovelace\" }}\n due=\"Due Nov 16, 2026\"\n from=\"Invoice from Acme Labs\"\n merchant={{ name: \"Acme Labs\" }}\n rows={rows}\n supportEmail=\"support@dodopayments.com\"\n total={{ label: \"Total Due\", value: \"$125.00\" }}\n variant=\"email\"\n />\n </ScaledFrame>\n <ScaledFrame width={480}>\n <InvoiceOnlinePage\n amount=\"$125.00\"\n due=\"Due Nov 16, 2026\"\n facts={[\n { label: \"Invoice to :\", value: \"Ada Lovelace\" },\n { label: \"From :\", value: \"Acme Labs\" },\n { label: \"Invoice Number :\", value: \"inv_0NrmhsTUbGRG\" },\n ]}\n merchant={{ name: \"Acme Labs\" }}\n rows={rows}\n supportEmail=\"support@dodopayments.com\"\n total={{ label: \"Total Due\", value: \"$125.00\" }}\n variant=\"hosted\"\n />\n </ScaledFrame>\n </div>\n );\n}"
28309
+ },
28310
+ {
28311
+ "name": "invoice-document/pdf",
28312
+ "code": "\"use client\";\n\nimport { InvoiceDocument } from \"@dodopayments/ui/invoice-document\";\nimport { ScaledFrame } from \"@dodopayments/ui/scaled-frame\";\n\nexport default function InvoiceDocumentPdf() {\n return (\n <div className=\"w-full max-w-xl\">\n <ScaledFrame width={595}>\n <InvoiceDocument\n customer={{\n address: [\"Main St 1, Berlin, 10115\", \"DE\"],\n email: \"ada@example.com\",\n name: \"Ada Lovelace\",\n }}\n details={[\n [{ label: \"Invoice Number :\", value: \"inv_0NrmhsTUbGRG\" }],\n [\n { label: \"Invoice Date :\", value: \"Nov 2, 2026\" },\n { label: \"Currency Code :\", value: \"USD\" },\n ],\n ]}\n discount={{ amount: \"$10.00\", label: \"Discounts Applied “WELCOME10”\" }}\n footer={{\n copyright: \"© 2026 Dodo Payments Inc. All rights reserved.\",\n disclaimer:\n \"If you have a problem with your order (example: don’t recognize the charge, suspect a fraudulent transaction, etc,) please visit dodopayments.com\",\n }}\n headline=\"$115.00 due on Nov 16, 2026\"\n issuer={{\n address: \"8 The Green, STE A, Dover, Country of Kent, Delaware, 19901 United States\",\n name: \"Dodo Payments Inc\",\n taxId: \"993486577\",\n }}\n merchant={{ name: \"Acme Labs\" }}\n payOnline=\"Pay Online\"\n rows={[\n {\n amount: \"$100.00\",\n details: [\"Nov 2 - Dec 2, 2026\"],\n id: \"plan\",\n name: \"Growth plan\",\n quantity: 1,\n tax: \"$0.00\",\n taxPercent: \"-\",\n unitPrice: \"$100.00 / mo\",\n },\n {\n addOn: true,\n amount: \"$25.00\",\n id: \"seat\",\n name: \"Extra seat\",\n quantity: 1,\n tax: \"$0.00\",\n taxPercent: \"-\",\n unitPrice: \"$25.00\",\n },\n ]}\n status={{ label: \"Unpaid\", tone: \"error\" }}\n totals={[\n { label: \"Subtotal\", value: \"$115.00\" },\n { label: \"Total Tax\", value: \"$0.00\" },\n { label: \"Total\", value: \"$115.00\" },\n { label: \"Amount Due\", strong: true, value: \"$115.00\" },\n ]}\n />\n </ScaledFrame>\n </div>\n );\n}"
28313
+ }
28314
+ ],
28315
+ "docsUrl": "/blocks/invoice-document"
28316
+ },
26901
28317
  {
26902
28318
  "slug": "payment-result",
26903
28319
  "title": "Payment Result",
@@ -27838,7 +29254,14 @@
27838
29254
  "name": "label",
27839
29255
  "type": "ReactNode",
27840
29256
  "required": true,
27841
- "description": "What the number measures, e.g. \"Successful payments\". It sits on the grey strip and truncates.",
29257
+ "description": "What the number measures, e.g. \"Successful payments\". It sits on the grey strip in Heading/Tertiary (16px, a step\nabove body text), with `help` right after it. On a narrow card it wraps onto more lines, so it reads whole and\n`action` keeps its row.",
29258
+ "source": "dodo"
29259
+ },
29260
+ {
29261
+ "name": "action",
29262
+ "type": "ReactNode",
29263
+ "required": false,
29264
+ "description": "Small controls at the end of the label strip, e.g. a ghost `icon-xs` Share button or a compact select. They stay\non the label's row: the label wraps to make room (keeping at least a third of the strip), and controls that\nstill do not fit wrap among themselves at the end, never under the label.",
27842
29265
  "source": "dodo"
27843
29266
  },
27844
29267
  {
@@ -27852,14 +29275,14 @@
27852
29275
  "name": "empty",
27853
29276
  "type": "ReactNode",
27854
29277
  "required": false,
27855
- "description": "Show the empty state: \"-\" for the value and the reason under it. `true` shows `labels.empty` (\"No data yet\");\ntext or a node is the reason (\"Live mode only\"). Ignored while `loading` or with an `error`.",
29278
+ "description": "Show the empty state: \"-\" for the value and the reason under it, centred in the panel, with no trend chip. `true`\nshows `labels.empty` (\"No data yet\"); text or a node is the reason (\"Live mode only\"). Ignored while `loading` or\nwith an `error`.",
27856
29279
  "source": "dodo"
27857
29280
  },
27858
29281
  {
27859
29282
  "name": "error",
27860
29283
  "type": "ReactNode",
27861
29284
  "required": false,
27862
- "description": "Show the error state instead of the value: a small left-aligned heading with an error icon, and \"Try again\" with\n`onRetry`. `true` shows the default heading; text or a node is the reason, read to screen readers after the\nheading. Ignored while `loading`.",
29285
+ "description": "Show the error state instead of the value: a small heading with an error icon, and \"Try again\" with `onRetry`,\ncentred in the panel. `true` shows the default heading; text or a node is the reason, read to screen readers\nafter the heading. Ignored while `loading`.",
27863
29286
  "source": "dodo"
27864
29287
  },
27865
29288
  {
@@ -27943,7 +29366,7 @@
27943
29366
  "name": "trend",
27944
29367
  "type": "StatCardTrend",
27945
29368
  "required": false,
27946
- "description": "The change: a success (up) or error (down) chip before the comparison. Show it only with a comparison.",
29369
+ "description": "The change: a success (up) or error (down) chip before the comparison. Show it only with a comparison. Not shown\nwhile `loading`, `empty` or `error`: a change of nothing is noise.",
27947
29370
  "source": "dodo"
27948
29371
  },
27949
29372
  {
@@ -27989,7 +29412,7 @@
27989
29412
  },
27990
29413
  {
27991
29414
  "name": "StatGrid",
27992
- "description": "A responsive row of `StatCard`s: a `Grid` of 2, 3 or 4 equal columns, 16 apart, that stacks the cards 12 apart\nwhen narrow. Cards in a row stretch to the same height, so their panels line up. `layout=\"group\"` puts the stats\nin one `Card` instead (the page summary under a page header): its cards turn inline, side by side with dividers\nbetween them, stacked with dividers between rows when narrow.",
29415
+ "description": "A responsive row of `StatCard`s: a `Grid` of 2, 3 or 4 equal columns, 16 apart, that stacks the cards 12 apart\nwhen narrow. Cards in a row stretch to the same height, so their panels line up. `layout=\"group\"` puts the stats\nin one `Card` instead (the page summary under a page header): its cards turn inline, side by side with dividers\nbetween them, staying side by side and turning compact when narrow.",
27993
29416
  "props": [
27994
29417
  {
27995
29418
  "name": "columns",
@@ -28047,7 +29470,7 @@
28047
29470
  },
28048
29471
  {
28049
29472
  "value": "group",
28050
- "description": "One Card tray (with an optional `heading`) whose panel lines the stats up as inline stats with dividers between them; they stack with dividers between rows when narrow."
29473
+ "description": "One Card tray (with an optional `heading`) whose panel lines the stats up as inline stats with dividers between them; on a narrow card they stay side by side and turn compact, labels wrapping and numbers on one line; under 16rem (256px) they stack as rows."
28051
29474
  }
28052
29475
  ],
28053
29476
  "default": "\"cards\""
@@ -28136,6 +29559,21 @@
28136
29559
  "description": "Row under the settings, e.g. a \"Save changes\" `Button` for a section that holds a form.",
28137
29560
  "source": "dodo"
28138
29561
  },
29562
+ {
29563
+ "name": "help",
29564
+ "type": "ReactNode",
29565
+ "required": false,
29566
+ "description": "A secondary description in a Tooltip on an info icon after the heading, instead of a line under it. See\n`CardTitle`'s `help`.",
29567
+ "source": "dodo"
29568
+ },
29569
+ {
29570
+ "name": "helpLabel",
29571
+ "type": "string",
29572
+ "required": false,
29573
+ "default": "\"More information\"",
29574
+ "description": "With `help`: accessible name of the info icon button.",
29575
+ "source": "dodo"
29576
+ },
28139
29577
  {
28140
29578
  "name": "titleAs",
28141
29579
  "type": "\"h2\" | \"h3\" | \"h4\"",
@@ -28249,6 +29687,14 @@
28249
29687
  "description": "Icon in a tile before the title, e.g. a `WalletIcon` from `@dodopayments/ui/icons`.",
28250
29688
  "source": "dodo"
28251
29689
  },
29690
+ {
29691
+ "name": "wrap",
29692
+ "type": "boolean",
29693
+ "required": false,
29694
+ "default": "false",
29695
+ "description": "Wrap the title and description to more lines instead of cutting them with an ellipsis, for text that must read\nwhole (a settings index or a report tile).",
29696
+ "source": "dodo"
29697
+ },
28252
29698
  {
28253
29699
  "name": "render",
28254
29700
  "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>",
@@ -28478,7 +29924,7 @@
28478
29924
  },
28479
29925
  {
28480
29926
  "name": "ActivityTimelineItem",
28481
- "description": "One event of an `ActivityTimeline` (Figma `.Timeline event`), rendered as an `li`: the icon slot\n(a 20px Featured icon in the tone, or a dot) with a 1px line to the next event, the title and\ndescription, and a `Timestamp` at the trailing end, all starting on the title's line, 12 apart and\n20 above the next event. Below a 28rem row the date sits over the time, right-aligned (Figma\nBreakpoint mobile). Use it inside an `ol`; `ActivityTimeline` does this for you.",
29927
+ "description": "One event of an `ActivityTimeline` (Figma `.Timeline event`), rendered as an `li`: the icon slot\n(a 20px Featured icon in the tone, or a dot) with a 1px line to the next event, the title and\ndescription, and a `Timestamp` at the trailing end, all starting on the title's line, 12 apart and\n20 above the next event. Below a 28rem row the date sits over the time, right-aligned (Figma\nBreakpoint mobile); below an 18rem row (a phone) the time goes under the title and description. Use it inside an `ol`; `ActivityTimeline` does this for you.",
28482
29928
  "props": [
28483
29929
  {
28484
29930
  "name": "title",
@@ -28654,6 +30100,14 @@
28654
30100
  "description": "More ways to sign in as secondary buttons at the end of the email and password steps, after\n\"Log in with OTP\", e.g. `{ id: \"passkey\", label: \"Sign in with passkey\", icon: <KeyIcon /> }`.\nThe `id` is passed to `onActionSelect` and matched against `lastUsedProvider`.",
28655
30101
  "source": "dodo"
28656
30102
  },
30103
+ {
30104
+ "name": "autoFocus",
30105
+ "type": "boolean",
30106
+ "required": false,
30107
+ "default": "false",
30108
+ "description": "Focus the step's field when the card mounts (the email field on the email step), for a page whose\none task is signing in. The card always moves focus when the step changes.",
30109
+ "source": "dodo"
30110
+ },
28657
30111
  {
28658
30112
  "name": "backLabel",
28659
30113
  "type": "ReactNode",
@@ -28724,6 +30178,14 @@
28724
30178
  "description": "Email address (controlled). It persists across steps and is quoted on the code and sent steps.",
28725
30179
  "source": "dodo"
28726
30180
  },
30181
+ {
30182
+ "name": "emailAutoComplete",
30183
+ "type": "string",
30184
+ "required": false,
30185
+ "default": "\"email\" on the email step, \"username\" on the password step",
30186
+ "description": "`autocomplete` of the email field, e.g. `\"username webauthn\"` to list saved passkeys in its autofill\n(with a conditional WebAuthn request started on load).",
30187
+ "source": "dodo"
30188
+ },
28727
30189
  {
28728
30190
  "name": "emailLabel",
28729
30191
  "type": "ReactNode",
@@ -29330,7 +30792,7 @@
29330
30792
  "title": "Record Header",
29331
30793
  "category": "Blocks",
29332
30794
  "status": "stable",
29333
- "description": "Hero of a record's detail page (a payment, customer or subscription), not the page title: a\n`<section>` labelled by the title around a `Card`. It shows optional media, the title (an\namount or a name) with its status and a subtitle, icon + text facts (`meta`), labelled `chips`\nsuch as a `CopyableId` and a `Timestamp`, and a `notice` (`CardNotice`) tucked under the card. The actions sit\nbeside the heading once the card is at least 32rem wide and wrap under it in narrower containers. The media lines up\nwith the title row.",
30795
+ "description": "Hero of a record's detail page (a payment, customer or subscription), not the page title: a\n`<section>` labelled by the title around a `Card`. It shows optional media, the title (an\namount or a name) with its status and a subtitle, icon + text facts (`meta`), labelled `chips`\nsuch as a `CopyableId` and a `Timestamp`, and a `notice` (`CardNotice`) tucked under the card. The actions sit\nbeside the heading while the heading keeps its own width up to 12rem, even in a narrow pane, and wrap under it when\nthey do not fit. The media lines up with the title row.",
29334
30796
  "importPath": "@dodopayments/ui/record-header",
29335
30797
  "exports": [
29336
30798
  "RecordHeader",
@@ -29341,7 +30803,7 @@
29341
30803
  "parts": [
29342
30804
  {
29343
30805
  "name": "RecordHeader",
29344
- "description": "Hero of a record's detail page (a payment, customer or subscription), not the page title: a\n`<section>` labelled by the title around a `Card`. It shows optional media, the title (an\namount or a name) with its status and a subtitle, icon + text facts (`meta`), labelled `chips`\nsuch as a `CopyableId` and a `Timestamp`, and a `notice` (`CardNotice`) tucked under the card. The actions sit\nbeside the heading once the card is at least 32rem wide and wrap under it in narrower containers. The media lines up\nwith the title row.",
30806
+ "description": "Hero of a record's detail page (a payment, customer or subscription), not the page title: a\n`<section>` labelled by the title around a `Card`. It shows optional media, the title (an\namount or a name) with its status and a subtitle, icon + text facts (`meta`), labelled `chips`\nsuch as a `CopyableId` and a `Timestamp`, and a `notice` (`CardNotice`) tucked under the card. The actions sit\nbeside the heading while the heading keeps its own width up to 12rem, even in a narrow pane, and wrap under it when\nthey do not fit. The media lines up with the title row.",
29345
30807
  "props": [
29346
30808
  {
29347
30809
  "name": "title",
@@ -29354,7 +30816,7 @@
29354
30816
  "name": "actions",
29355
30817
  "type": "ReactNode",
29356
30818
  "required": false,
29357
- "description": "Record actions on the trailing side, e.g. \"Invoice\" and \"Refund\" `Button`s.",
30819
+ "description": "Record actions on the trailing side, e.g. \"Invoice\" and \"Refund\" `Button`s. The header is a size container, so\na `Button` with `labelHidden=\"narrow\"` shows only its icon below 24rem of the header (a phone), its label in a\ntooltip. Beside a detail page's panel on a desktop it keeps its label.",
29358
30820
  "source": "dodo"
29359
30821
  },
29360
30822
  {
@@ -29443,7 +30905,7 @@
29443
30905
  "props": [
29444
30906
  {
29445
30907
  "name": "brand",
29446
- "type": "\"meta\" | \"github\" | \"gitlab\" | \"terraform\" | \"vercel\" | \"google-cloud\" | \"aws\" | \"kubernetes\" | \"google-analytics\" | \"google-tag-manager\" | \"stripe\" | \"adyen\" | \"dodo-payments\"",
30908
+ "type": "\"meta\" | \"cursor\" | \"close\" | \"github\" | \"gitlab\" | \"terraform\" | \"vercel\" | \"google-cloud\" | \"aws\" | \"kubernetes\" | \"google-analytics\" | \"google-tag-manager\" | \"stripe\" | \"adyen\" | \"dodo-payments\" | \"discord\" | \"telegram\" | \"notion\" | \"framer\" | \"figma\" | \"claude\" | \"openai\" | \"opencode\" | \"slack\" | \"microsoft-teams\" | \"hubspot\" | \"salesforce\" | \"resend\" | \"sendgrid\" | \"loops\" | \"customer-io\" | \"segment\" | \"opentelemetry\" | \"zapier\" | \"windmill\"",
29447
30909
  "required": true,
29448
30910
  "description": "Which brand's mark to draw.",
29449
30911
  "source": "dodo"
@@ -29495,7 +30957,7 @@
29495
30957
  "props": [
29496
30958
  {
29497
30959
  "name": "brand",
29498
- "type": "\"card\" | \"visa\" | \"mastercard\" | \"amex\" | \"discover\" | \"diners\" | \"jcb\" | \"unionpay\" | \"maestro\" | \"rupay\" | \"cartes-bancaires\" | \"apple-pay\" | \"gpay\" | \"amazon-pay\" | \"cash-app\" | \"paypal\" | \"revolut-pay\" | \"satispay\" | \"wechat-pay\" | \"alipay-hk\" | \"kakao-pay\" | \"naver-pay\" | \"payco\" | \"gcash\" | \"touch-n-go\" | \"twint\" | \"bizum\" | \"upi\" | \"ideal\" | \"bancontact\" | \"eps\" | \"multibanco\" | \"pix\" | \"blik\" | \"przelewy24\" | \"fps\" | \"ach\" | \"sepa\" | \"bacs\" | \"klarna\" | \"afterpay\" | \"affirm\" | \"zip\" | \"billie\" | \"stablecoins\" | \"unknown\"",
30960
+ "type": "\"link\" | \"card\" | \"visa\" | \"mastercard\" | \"amex\" | \"discover\" | \"diners\" | \"jcb\" | \"unionpay\" | \"maestro\" | \"rupay\" | \"cartes-bancaires\" | \"apple-pay\" | \"gpay\" | \"amazon-pay\" | \"cash-app\" | \"paypal\" | \"revolut-pay\" | \"satispay\" | \"wechat-pay\" | \"alipay-hk\" | \"kakao-pay\" | \"naver-pay\" | \"payco\" | \"gcash\" | \"touch-n-go\" | \"twint\" | \"bizum\" | \"upi\" | \"ideal\" | \"bancontact\" | \"eps\" | \"multibanco\" | \"pix\" | \"blik\" | \"przelewy24\" | \"fps\" | \"ach\" | \"sepa\" | \"bacs\" | \"klarna\" | \"afterpay\" | \"affirm\" | \"zip\" | \"billie\" | \"stablecoins\" | \"unknown\"",
29499
30961
  "required": true,
29500
30962
  "description": "The payment method. `unknown` draws a credit card icon for methods without artwork.",
29501
30963
  "source": "dodo"