@dodopayments/ui 1.7.2 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (433) hide show
  1. package/ai/component-registry.json +1469 -238
  2. package/ai/component-registry.md +42 -38
  3. package/ai/components/app-top-bar.md +17 -5
  4. package/ai/components/area-chart.md +2 -0
  5. package/ai/components/bar-chart.md +2 -0
  6. package/ai/components/breadcrumb.md +2 -0
  7. package/ai/components/button-group.md +2 -0
  8. package/ai/components/chart-legend.md +2 -0
  9. package/ai/components/checkout-page.md +2 -0
  10. package/ai/components/color-input.md +2 -0
  11. package/ai/components/combobox.md +199 -0
  12. package/ai/components/composed-chart.md +2 -0
  13. package/ai/components/container.md +2 -0
  14. package/ai/components/context-menu.md +2 -0
  15. package/ai/components/dialog.md +1 -0
  16. package/ai/components/direction-provider.md +2 -0
  17. package/ai/components/drawer.md +2 -0
  18. package/ai/components/field.md +2 -0
  19. package/ai/components/filter-grid.md +2 -0
  20. package/ai/components/flag.md +22 -0
  21. package/ai/components/funnel-chart.md +2 -0
  22. package/ai/components/fx-conversion.md +2 -0
  23. package/ai/components/gauge-chart.md +2 -0
  24. package/ai/components/heatmap-chart.md +2 -0
  25. package/ai/components/invoice-document.md +2 -0
  26. package/ai/components/link.md +3 -3
  27. package/ai/components/list-item.md +4 -4
  28. package/ai/components/live-activity.md +2 -0
  29. package/ai/components/new-items-pill.md +2 -0
  30. package/ai/components/page-header.md +1 -0
  31. package/ai/components/payment-result.md +2 -0
  32. package/ai/components/pie-chart.md +2 -0
  33. package/ai/components/plan-picker.md +2 -0
  34. package/ai/components/product-card.md +2 -0
  35. package/ai/components/proration-preview.md +2 -0
  36. package/ai/components/radar-chart.md +2 -0
  37. package/ai/components/reorder-list.md +4 -0
  38. package/ai/components/required-mark.md +22 -0
  39. package/ai/components/ring-chart.md +2 -0
  40. package/ai/components/sale-share-card.md +2 -0
  41. package/ai/components/sankey-chart.md +2 -0
  42. package/ai/components/scatter-chart.md +2 -0
  43. package/ai/components/settings-section.md +2 -0
  44. package/ai/components/sheet.md +8 -4
  45. package/ai/components/slider.md +2 -0
  46. package/ai/components/sunburst-chart.md +2 -0
  47. package/ai/components/switch-transition.md +91 -0
  48. package/ai/components/task-steps.md +2 -0
  49. package/ai/components/test-mode-banner.md +2 -2
  50. package/ai/components/timestamp.md +8 -8
  51. package/ai/components/timezone-select.md +2 -0
  52. package/ai/components/typing-indicator.md +2 -0
  53. package/ai/components/wallet-buttons.md +2 -0
  54. package/ai/components/wizard-steps.md +2 -0
  55. package/ai/skills/dodo-charts/SKILL.md +21 -12
  56. package/ai/skills/dodo-design/SKILL.md +21 -10
  57. package/bin/registry.js +15 -4
  58. package/bin/scan.d.ts +3 -2
  59. package/bin/scan.js +4 -4
  60. package/dist/components/app-top-bar/app-top-bar.d.ts +17 -3
  61. package/dist/components/app-top-bar/app-top-bar.d.ts.map +1 -1
  62. package/dist/components/app-top-bar/app-top-bar.js +25 -9
  63. package/dist/components/app-top-bar/app-top-bar.js.map +1 -1
  64. package/dist/components/app-top-bar/index.d.ts +1 -1
  65. package/dist/components/app-top-bar/index.d.ts.map +1 -1
  66. package/dist/components/app-top-bar/index.js +1 -1
  67. package/dist/components/app-top-bar/index.js.map +1 -1
  68. package/dist/components/card/card.d.ts +1 -1
  69. package/dist/components/card/card.d.ts.map +1 -1
  70. package/dist/components/card/card.js +11 -2
  71. package/dist/components/card/card.js.map +1 -1
  72. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  73. package/dist/components/checkbox/checkbox.js +7 -3
  74. package/dist/components/checkbox/checkbox.js.map +1 -1
  75. package/dist/components/collapsible/collapsible.d.ts.map +1 -1
  76. package/dist/components/collapsible/collapsible.js +3 -1
  77. package/dist/components/collapsible/collapsible.js.map +1 -1
  78. package/dist/components/{select/select-combobox.d.ts → combobox/combobox.d.ts} +1 -1
  79. package/dist/components/combobox/combobox.d.ts.map +1 -0
  80. package/dist/components/{select/select-combobox.js → combobox/combobox.js} +1 -1
  81. package/dist/components/combobox/combobox.js.map +1 -0
  82. package/dist/components/combobox/index.d.ts +2 -0
  83. package/dist/components/combobox/index.d.ts.map +1 -0
  84. package/dist/components/combobox/index.js +2 -0
  85. package/dist/components/combobox/index.js.map +1 -0
  86. package/dist/components/country-select/country-select.js +1 -1
  87. package/dist/components/country-select/country-select.js.map +1 -1
  88. package/dist/components/currency-select/currency-select.js +1 -1
  89. package/dist/components/currency-select/currency-select.js.map +1 -1
  90. package/dist/components/data-grid/data-grid.js +2 -2
  91. package/dist/components/data-grid/data-grid.js.map +1 -1
  92. package/dist/components/date-picker/date-picker.d.ts +1 -1
  93. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  94. package/dist/components/date-picker/date-picker.js +8 -7
  95. package/dist/components/date-picker/date-picker.js.map +1 -1
  96. package/dist/components/date-picker/index.d.ts +1 -1
  97. package/dist/components/date-picker/index.d.ts.map +1 -1
  98. package/dist/components/date-picker/index.js +1 -1
  99. package/dist/components/date-picker/index.js.map +1 -1
  100. package/dist/components/dialog/confirm-dialog.d.ts +7 -1
  101. package/dist/components/dialog/confirm-dialog.d.ts.map +1 -1
  102. package/dist/components/dialog/confirm-dialog.js +2 -2
  103. package/dist/components/dialog/confirm-dialog.js.map +1 -1
  104. package/dist/components/field/field.d.ts +0 -19
  105. package/dist/components/field/field.d.ts.map +1 -1
  106. package/dist/components/field/field.js +2 -13
  107. package/dist/components/field/field.js.map +1 -1
  108. package/dist/components/field/index.d.ts +1 -1
  109. package/dist/components/field/index.d.ts.map +1 -1
  110. package/dist/components/field/index.js +1 -1
  111. package/dist/components/field/index.js.map +1 -1
  112. package/dist/components/field/label.d.ts +0 -8
  113. package/dist/components/field/label.d.ts.map +1 -1
  114. package/dist/components/field/label.js +1 -9
  115. package/dist/components/field/label.js.map +1 -1
  116. package/dist/components/filter-grid/filter-grid.js +1 -1
  117. package/dist/components/filter-grid/filter-grid.js.map +1 -1
  118. package/dist/components/flag/country-flag.d.ts.map +1 -0
  119. package/dist/components/flag/country-flag.js.map +1 -0
  120. package/dist/components/flag/flag.d.ts.map +1 -0
  121. package/dist/components/{payment-logos → flag}/flag.js +1 -1
  122. package/dist/components/flag/flag.js.map +1 -0
  123. package/dist/components/flag/index.d.ts +2 -0
  124. package/dist/components/flag/index.d.ts.map +1 -0
  125. package/dist/components/flag/index.js +2 -0
  126. package/dist/components/flag/index.js.map +1 -0
  127. package/dist/components/form/form.js +1 -1
  128. package/dist/components/form/form.js.map +1 -1
  129. package/dist/components/form-field/form-field.d.ts.map +1 -1
  130. package/dist/components/form-field/form-field.js +2 -1
  131. package/dist/components/form-field/form-field.js.map +1 -1
  132. package/dist/components/input/chips-field.d.ts +6 -0
  133. package/dist/components/input/chips-field.d.ts.map +1 -1
  134. package/dist/components/input/chips-field.js +3 -1
  135. package/dist/components/input/chips-field.js.map +1 -1
  136. package/dist/components/input/input-chips-suggestions.js +1 -1
  137. package/dist/components/input/input-chips-suggestions.js.map +1 -1
  138. package/dist/components/input/input-phone.js +1 -1
  139. package/dist/components/input/input-phone.js.map +1 -1
  140. package/dist/components/input/input.d.ts +15 -0
  141. package/dist/components/input/input.d.ts.map +1 -1
  142. package/dist/components/input/input.js +9 -4
  143. package/dist/components/input/input.js.map +1 -1
  144. package/dist/components/link/link.d.ts +5 -5
  145. package/dist/components/link/link.js +5 -5
  146. package/dist/components/link/link.js.map +1 -1
  147. package/dist/components/list-item/list-item.d.ts +6 -6
  148. package/dist/components/list-item/list-item.d.ts.map +1 -1
  149. package/dist/components/list-item/list-item.js +7 -6
  150. package/dist/components/list-item/list-item.js.map +1 -1
  151. package/dist/components/list-toolbar/list-toolbar-date-range.d.ts +1 -1
  152. package/dist/components/list-toolbar/list-toolbar-date-range.js +3 -3
  153. package/dist/components/list-toolbar/list-toolbar-date-range.js.map +1 -1
  154. package/dist/components/list-toolbar/list-toolbar.js +1 -1
  155. package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
  156. package/dist/components/page-header/page-header.d.ts +13 -2
  157. package/dist/components/page-header/page-header.d.ts.map +1 -1
  158. package/dist/components/page-header/page-header.js +14 -2
  159. package/dist/components/page-header/page-header.js.map +1 -1
  160. package/dist/components/payment-logos/index.d.ts +1 -1
  161. package/dist/components/payment-logos/index.d.ts.map +1 -1
  162. package/dist/components/payment-logos/index.js +1 -1
  163. package/dist/components/payment-logos/index.js.map +1 -1
  164. package/dist/components/record-header/record-header.js +1 -1
  165. package/dist/components/record-header/record-header.js.map +1 -1
  166. package/dist/components/reorder-list/reorder-list.d.ts +15 -1
  167. package/dist/components/reorder-list/reorder-list.d.ts.map +1 -1
  168. package/dist/components/reorder-list/reorder-list.js +13 -6
  169. package/dist/components/reorder-list/reorder-list.js.map +1 -1
  170. package/dist/components/required-mark/index.d.ts +2 -0
  171. package/dist/components/required-mark/index.d.ts.map +1 -0
  172. package/dist/components/required-mark/index.js +2 -0
  173. package/dist/components/required-mark/index.js.map +1 -0
  174. package/dist/components/required-mark/required-mark.d.ts +9 -0
  175. package/dist/components/required-mark/required-mark.d.ts.map +1 -0
  176. package/dist/components/required-mark/required-mark.js +11 -0
  177. package/dist/components/required-mark/required-mark.js.map +1 -0
  178. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  179. package/dist/components/rich-text-editor/rich-text-editor.js +18 -1
  180. package/dist/components/rich-text-editor/rich-text-editor.js.map +1 -1
  181. package/dist/components/select/select.d.ts +1 -1
  182. package/dist/components/select/select.js +2 -2
  183. package/dist/components/select/select.js.map +1 -1
  184. package/dist/components/settings-section/settings-section.d.ts +3 -1
  185. package/dist/components/settings-section/settings-section.d.ts.map +1 -1
  186. package/dist/components/settings-section/settings-section.js +6 -5
  187. package/dist/components/settings-section/settings-section.js.map +1 -1
  188. package/dist/components/sheet/sheet.d.ts +6 -4
  189. package/dist/components/sheet/sheet.d.ts.map +1 -1
  190. package/dist/components/sheet/sheet.js +4 -2
  191. package/dist/components/sheet/sheet.js.map +1 -1
  192. package/dist/components/sidebar/sidebar.js +1 -1
  193. package/dist/components/sidebar/sidebar.js.map +1 -1
  194. package/dist/components/switch-transition/index.d.ts +2 -0
  195. package/dist/components/switch-transition/index.d.ts.map +1 -0
  196. package/dist/components/switch-transition/index.js +2 -0
  197. package/dist/components/switch-transition/index.js.map +1 -0
  198. package/dist/components/switch-transition/switch-transition.d.ts +30 -0
  199. package/dist/components/switch-transition/switch-transition.d.ts.map +1 -0
  200. package/dist/components/switch-transition/switch-transition.js +80 -0
  201. package/dist/components/switch-transition/switch-transition.js.map +1 -0
  202. package/dist/components/test-mode-banner/test-mode-banner.d.ts +1 -1
  203. package/dist/components/test-mode-banner/test-mode-banner.js +2 -2
  204. package/dist/components/test-mode-banner/test-mode-banner.js.map +1 -1
  205. package/dist/components/timestamp/timestamp.d.ts +5 -7
  206. package/dist/components/timestamp/timestamp.d.ts.map +1 -1
  207. package/dist/components/timestamp/timestamp.js +18 -14
  208. package/dist/components/timestamp/timestamp.js.map +1 -1
  209. package/dist/icons/index.d.ts +22 -0
  210. package/dist/icons/index.d.ts.map +1 -1
  211. package/dist/icons/index.js +22 -0
  212. package/dist/icons/index.js.map +1 -1
  213. package/dist/icons/ui/ai-agents.d.ts +3 -1
  214. package/dist/icons/ui/ai-agents.d.ts.map +1 -1
  215. package/dist/icons/ui/ai-agents.js +3 -1
  216. package/dist/icons/ui/ai-agents.js.map +1 -1
  217. package/dist/icons/ui/badge-check-2-outline-duo.d.ts +3 -0
  218. package/dist/icons/ui/badge-check-2-outline-duo.d.ts.map +1 -0
  219. package/dist/icons/ui/badge-check-2-outline-duo.js +5 -0
  220. package/dist/icons/ui/badge-check-2-outline-duo.js.map +1 -0
  221. package/dist/icons/ui/ban-outline-duo.d.ts +3 -0
  222. package/dist/icons/ui/ban-outline-duo.d.ts.map +1 -0
  223. package/dist/icons/ui/ban-outline-duo.js +5 -0
  224. package/dist/icons/ui/ban-outline-duo.js.map +1 -0
  225. package/dist/icons/ui/chart-column-outline-duo.d.ts +3 -0
  226. package/dist/icons/ui/chart-column-outline-duo.d.ts.map +1 -0
  227. package/dist/icons/ui/chart-column-outline-duo.js +5 -0
  228. package/dist/icons/ui/chart-column-outline-duo.js.map +1 -0
  229. package/dist/icons/ui/check-glyph-12.d.ts +3 -1
  230. package/dist/icons/ui/check-glyph-12.d.ts.map +1 -1
  231. package/dist/icons/ui/check-glyph-12.js +3 -1
  232. package/dist/icons/ui/check-glyph-12.js.map +1 -1
  233. package/dist/icons/ui/circle-user-outline-duo.d.ts +3 -0
  234. package/dist/icons/ui/circle-user-outline-duo.d.ts.map +1 -0
  235. package/dist/icons/ui/circle-user-outline-duo.js +5 -0
  236. package/dist/icons/ui/circle-user-outline-duo.js.map +1 -0
  237. package/dist/icons/ui/credit-card-outline-duo.d.ts +3 -0
  238. package/dist/icons/ui/credit-card-outline-duo.d.ts.map +1 -0
  239. package/dist/icons/ui/credit-card-outline-duo.js +5 -0
  240. package/dist/icons/ui/credit-card-outline-duo.js.map +1 -0
  241. package/dist/icons/ui/crown.d.ts +3 -0
  242. package/dist/icons/ui/crown.d.ts.map +1 -0
  243. package/dist/icons/ui/crown.js +5 -0
  244. package/dist/icons/ui/crown.js.map +1 -0
  245. package/dist/icons/ui/envelope-outline-duo.d.ts +3 -0
  246. package/dist/icons/ui/envelope-outline-duo.d.ts.map +1 -0
  247. package/dist/icons/ui/envelope-outline-duo.js +5 -0
  248. package/dist/icons/ui/envelope-outline-duo.js.map +1 -0
  249. package/dist/icons/ui/gear-outline-duo.d.ts +3 -0
  250. package/dist/icons/ui/gear-outline-duo.d.ts.map +1 -0
  251. package/dist/icons/ui/gear-outline-duo.js +5 -0
  252. package/dist/icons/ui/gear-outline-duo.js.map +1 -0
  253. package/dist/icons/ui/greek-temple-2-outline-duo.d.ts +3 -0
  254. package/dist/icons/ui/greek-temple-2-outline-duo.d.ts.map +1 -0
  255. package/dist/icons/ui/greek-temple-2-outline-duo.js +5 -0
  256. package/dist/icons/ui/greek-temple-2-outline-duo.js.map +1 -0
  257. package/dist/icons/ui/heart-glyph.d.ts +3 -1
  258. package/dist/icons/ui/heart-glyph.d.ts.map +1 -1
  259. package/dist/icons/ui/heart-glyph.js +3 -1
  260. package/dist/icons/ui/heart-glyph.js.map +1 -1
  261. package/dist/icons/ui/heart.d.ts +3 -1
  262. package/dist/icons/ui/heart.d.ts.map +1 -1
  263. package/dist/icons/ui/heart.js +3 -1
  264. package/dist/icons/ui/heart.js.map +1 -1
  265. package/dist/icons/ui/laptop-2.d.ts +3 -0
  266. package/dist/icons/ui/laptop-2.d.ts.map +1 -0
  267. package/dist/icons/ui/laptop-2.js +5 -0
  268. package/dist/icons/ui/laptop-2.js.map +1 -0
  269. package/dist/icons/ui/life-ring-outline-duo.d.ts +3 -0
  270. package/dist/icons/ui/life-ring-outline-duo.d.ts.map +1 -0
  271. package/dist/icons/ui/life-ring-outline-duo.js +5 -0
  272. package/dist/icons/ui/life-ring-outline-duo.js.map +1 -0
  273. package/dist/icons/ui/mobile.d.ts +3 -0
  274. package/dist/icons/ui/mobile.d.ts.map +1 -0
  275. package/dist/icons/ui/mobile.js +5 -0
  276. package/dist/icons/ui/mobile.js.map +1 -0
  277. package/dist/icons/ui/office-3-outline-duo.d.ts +3 -0
  278. package/dist/icons/ui/office-3-outline-duo.d.ts.map +1 -0
  279. package/dist/icons/ui/office-3-outline-duo.js +5 -0
  280. package/dist/icons/ui/office-3-outline-duo.js.map +1 -0
  281. package/dist/icons/ui/palette-2-outline-duo.d.ts +3 -0
  282. package/dist/icons/ui/palette-2-outline-duo.d.ts.map +1 -0
  283. package/dist/icons/ui/palette-2-outline-duo.js +5 -0
  284. package/dist/icons/ui/palette-2-outline-duo.js.map +1 -0
  285. package/dist/icons/ui/plug-2-outline-duo.d.ts +3 -0
  286. package/dist/icons/ui/plug-2-outline-duo.d.ts.map +1 -0
  287. package/dist/icons/ui/plug-2-outline-duo.js +5 -0
  288. package/dist/icons/ui/plug-2-outline-duo.js.map +1 -0
  289. package/dist/icons/ui/plug-sparkle-outline-duo.d.ts +3 -0
  290. package/dist/icons/ui/plug-sparkle-outline-duo.d.ts.map +1 -0
  291. package/dist/icons/ui/plug-sparkle-outline-duo.js +5 -0
  292. package/dist/icons/ui/plug-sparkle-outline-duo.js.map +1 -0
  293. package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts +3 -0
  294. package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts.map +1 -0
  295. package/dist/icons/ui/refresh-clockwise-outline-duo.js +5 -0
  296. package/dist/icons/ui/refresh-clockwise-outline-duo.js.map +1 -0
  297. package/dist/icons/ui/scale-outline-duo.d.ts +3 -0
  298. package/dist/icons/ui/scale-outline-duo.d.ts.map +1 -0
  299. package/dist/icons/ui/scale-outline-duo.js +5 -0
  300. package/dist/icons/ui/scale-outline-duo.js.map +1 -0
  301. package/dist/icons/ui/shop-outline-duo.d.ts +3 -0
  302. package/dist/icons/ui/shop-outline-duo.d.ts.map +1 -0
  303. package/dist/icons/ui/shop-outline-duo.js +5 -0
  304. package/dist/icons/ui/shop-outline-duo.js.map +1 -0
  305. package/dist/icons/ui/tag-outline-duo.d.ts +3 -0
  306. package/dist/icons/ui/tag-outline-duo.d.ts.map +1 -0
  307. package/dist/icons/ui/tag-outline-duo.js +5 -0
  308. package/dist/icons/ui/tag-outline-duo.js.map +1 -0
  309. package/dist/icons/ui/ticket-outline-duo.d.ts +3 -0
  310. package/dist/icons/ui/ticket-outline-duo.d.ts.map +1 -0
  311. package/dist/icons/ui/ticket-outline-duo.js +5 -0
  312. package/dist/icons/ui/ticket-outline-duo.js.map +1 -0
  313. package/dist/icons/ui/trash-2.d.ts +3 -1
  314. package/dist/icons/ui/trash-2.d.ts.map +1 -1
  315. package/dist/icons/ui/trash-2.js +3 -1
  316. package/dist/icons/ui/trash-2.js.map +1 -1
  317. package/dist/icons/ui/users-6-outline-duo.d.ts +3 -0
  318. package/dist/icons/ui/users-6-outline-duo.d.ts.map +1 -0
  319. package/dist/icons/ui/users-6-outline-duo.js +5 -0
  320. package/dist/icons/ui/users-6-outline-duo.js.map +1 -0
  321. package/dist/index.d.ts +4 -0
  322. package/dist/index.d.ts.map +1 -1
  323. package/dist/index.js +4 -0
  324. package/dist/index.js.map +1 -1
  325. package/dist/{components/date-picker/day-label.d.ts → lib/calendar-day.d.ts} +1 -1
  326. package/dist/lib/calendar-day.d.ts.map +1 -0
  327. package/dist/{components/date-picker/day-label.js → lib/calendar-day.js} +1 -1
  328. package/dist/lib/calendar-day.js.map +1 -0
  329. package/dist/lib/cn-tables.js +5 -5
  330. package/dist/lib/cn-tables.js.map +1 -1
  331. package/dist/lib/column-title.d.ts.map +1 -0
  332. package/dist/lib/column-title.js.map +1 -0
  333. package/dist/{components/date-picker/presets.d.ts → lib/date-presets.d.ts} +2 -2
  334. package/dist/lib/date-presets.d.ts.map +1 -0
  335. package/dist/{components/date-picker/presets.js → lib/date-presets.js} +2 -2
  336. package/dist/lib/date-presets.js.map +1 -0
  337. package/dist/lib/field-context.d.ts +21 -0
  338. package/dist/lib/field-context.d.ts.map +1 -0
  339. package/dist/lib/field-context.js +14 -0
  340. package/dist/lib/field-context.js.map +1 -0
  341. package/dist/lib/motion.d.ts +4 -2
  342. package/dist/lib/motion.d.ts.map +1 -1
  343. package/dist/lib/motion.js +4 -2
  344. package/dist/lib/motion.js.map +1 -1
  345. package/dist/lib/use-animated-height.d.ts +6 -0
  346. package/dist/lib/use-animated-height.d.ts.map +1 -0
  347. package/dist/lib/use-animated-height.js +67 -0
  348. package/dist/lib/use-animated-height.js.map +1 -0
  349. package/dist/primitives/ui/autocomplete.js +1 -1
  350. package/dist/primitives/ui/autocomplete.js.map +1 -1
  351. package/dist/primitives/ui/button.js +6 -6
  352. package/dist/primitives/ui/button.js.map +1 -1
  353. package/dist/primitives/ui/card.js +1 -1
  354. package/dist/primitives/ui/card.js.map +1 -1
  355. package/dist/primitives/ui/checkbox.js +1 -1
  356. package/dist/primitives/ui/checkbox.js.map +1 -1
  357. package/dist/primitives/ui/combobox.js +3 -3
  358. package/dist/primitives/ui/combobox.js.map +1 -1
  359. package/dist/primitives/ui/drawer.js +1 -1
  360. package/dist/primitives/ui/drawer.js.map +1 -1
  361. package/dist/primitives/ui/empty.js +2 -2
  362. package/dist/primitives/ui/empty.js.map +1 -1
  363. package/dist/primitives/ui/group.js +2 -2
  364. package/dist/primitives/ui/group.js.map +1 -1
  365. package/dist/primitives/ui/input-group.js +1 -1
  366. package/dist/primitives/ui/input-group.js.map +1 -1
  367. package/dist/primitives/ui/input.js +2 -2
  368. package/dist/primitives/ui/input.js.map +1 -1
  369. package/dist/primitives/ui/menu.d.ts +1 -1
  370. package/dist/primitives/ui/menu.d.ts.map +1 -1
  371. package/dist/primitives/ui/menu.js +1 -1
  372. package/dist/primitives/ui/menu.js.map +1 -1
  373. package/dist/primitives/ui/number-field.js +1 -1
  374. package/dist/primitives/ui/number-field.js.map +1 -1
  375. package/dist/primitives/ui/otp-field.js +1 -1
  376. package/dist/primitives/ui/otp-field.js.map +1 -1
  377. package/dist/primitives/ui/popover.js +1 -1
  378. package/dist/primitives/ui/popover.js.map +1 -1
  379. package/dist/primitives/ui/preview-card.js +1 -1
  380. package/dist/primitives/ui/preview-card.js.map +1 -1
  381. package/dist/primitives/ui/radio-group.js +1 -1
  382. package/dist/primitives/ui/radio-group.js.map +1 -1
  383. package/dist/primitives/ui/select.js +2 -2
  384. package/dist/primitives/ui/select.js.map +1 -1
  385. package/dist/primitives/ui/sheet.d.ts +4 -3
  386. package/dist/primitives/ui/sheet.d.ts.map +1 -1
  387. package/dist/primitives/ui/sheet.js +112 -6
  388. package/dist/primitives/ui/sheet.js.map +1 -1
  389. package/dist/primitives/ui/skeleton.js +1 -1
  390. package/dist/primitives/ui/skeleton.js.map +1 -1
  391. package/dist/primitives/ui/textarea.js +2 -2
  392. package/dist/primitives/ui/textarea.js.map +1 -1
  393. package/dist/primitives/ui/toast.js +2 -2
  394. package/dist/primitives/ui/toast.js.map +1 -1
  395. package/dist/primitives/ui/toggle-group.js +1 -1
  396. package/dist/primitives/ui/toggle-group.js.map +1 -1
  397. package/dist/primitives/ui/toggle.js +1 -1
  398. package/dist/primitives/ui/toggle.js.map +1 -1
  399. package/dist/primitives/ui/toolbar.js +1 -1
  400. package/dist/primitives/ui/toolbar.js.map +1 -1
  401. package/dist/primitives/ui/tooltip.js +1 -1
  402. package/dist/primitives/ui/tooltip.js.map +1 -1
  403. package/dist/styles/extensions.css +5 -0
  404. package/dist/styles/hover.test.tsx +154 -0
  405. package/dist/styles/rtl.test.tsx +1 -1
  406. package/dist/styles/theme-switch-tokens.test.tsx +96 -0
  407. package/dist/styles/theme.css +23 -10
  408. package/dist/styles/tokens-artwork.css +115 -0
  409. package/dist/styles/tokens-charts.css +81 -0
  410. package/dist/styles/tokens-motion.css +60 -0
  411. package/dist/styles/tokens.css +81 -340
  412. package/dist/styles/tokens.test.tsx +40 -4
  413. package/eslint/restricted-classes.js +6 -0
  414. package/package.json +5 -1
  415. package/stylelint/index.d.ts +1 -1
  416. package/stylelint/index.js +9 -2
  417. package/dist/components/country-select/country-flag.d.ts.map +0 -1
  418. package/dist/components/country-select/country-flag.js.map +0 -1
  419. package/dist/components/data-grid/column-title.d.ts.map +0 -1
  420. package/dist/components/data-grid/column-title.js.map +0 -1
  421. package/dist/components/date-picker/day-label.d.ts.map +0 -1
  422. package/dist/components/date-picker/day-label.js.map +0 -1
  423. package/dist/components/date-picker/presets.d.ts.map +0 -1
  424. package/dist/components/date-picker/presets.js.map +0 -1
  425. package/dist/components/payment-logos/flag.d.ts.map +0 -1
  426. package/dist/components/payment-logos/flag.js.map +0 -1
  427. package/dist/components/select/select-combobox.d.ts.map +0 -1
  428. package/dist/components/select/select-combobox.js.map +0 -1
  429. /package/dist/components/{country-select → flag}/country-flag.d.ts +0 -0
  430. /package/dist/components/{country-select → flag}/country-flag.js +0 -0
  431. /package/dist/components/{payment-logos → flag}/flag.d.ts +0 -0
  432. /package/dist/{components/data-grid → lib}/column-title.d.ts +0 -0
  433. /package/dist/{components/data-grid → lib}/column-title.js +0 -0
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "$schema": "https://dodo-ui.dev/schema/component-registry.json",
3
3
  "name": "@dodopayments/ui",
4
- "version": "1.7.2",
4
+ "version": "1.8.1",
5
5
  "components": [
6
6
  {
7
7
  "slug": "alert",
8
8
  "title": "Alert",
9
9
  "category": "Feedback",
10
10
  "status": "stable",
11
+ "level": "organism",
11
12
  "description": "A message that stays on the page (Dodo Nest Alert), tinted by `tone`. `size=\"inline\"` is a note inside\ncontent, `size=\"banner\"` the status of a whole section (a tray with a white panel and a Featured icon),\nand `size=\"page\"` a full-width strip under the top bar. `children` is the message. Not a live region by\ndefault; pass `role=\"alert\"` when it appears in response to an error the user must hear about.",
12
13
  "importPath": "@dodopayments/ui/alert",
13
14
  "exports": [
@@ -140,7 +141,11 @@
140
141
  "slug": "area-chart",
141
142
  "title": "Area Chart",
142
143
  "category": "Charts",
143
- "status": "stable",
144
+ "status": "deprecated",
145
+ "deprecated": {
146
+ "since": "1.8.0"
147
+ },
148
+ "level": "molecule",
144
149
  "description": "A metric over time as a filled area, on the bklit `AreaChart` primitive (visx). Compose it from\nchildren: `ChartGrid`, one `Area` per series (`dataKey`), `XAxis`, `YAxis`, `ChartTooltip`,\n`ReferenceArea`, `ChartMarkers`. Series reveal from left to right on mount; `status=\"loading\"`\ndraws a pulsing placeholder with `loadingLabel`. Rows need a `Date` under `xDataKey` (default\n`\"date\"`), oldest first. The chart is as wide as its container; height comes from `aspectRatio`\n(default `\"2 / 1\"`) or a height class.",
145
150
  "importPath": "@dodopayments/ui/area-chart",
146
151
  "exports": [
@@ -604,6 +609,7 @@
604
609
  "title": "Avatar",
605
610
  "category": "Data display",
606
611
  "status": "stable",
612
+ "level": "atom",
607
613
  "description": "A round profile picture with an initials fallback, built on the `Avatar` primitive. Compose it from\n`AvatarImage` and `AvatarFallback`; inside an `AvatarGroup` it takes the group's size unless `size` is set.",
608
614
  "importPath": "@dodopayments/ui/avatar",
609
615
  "exports": [
@@ -995,6 +1001,7 @@
995
1001
  "title": "Badge",
996
1002
  "category": "Data display",
997
1003
  "status": "stable",
1004
+ "level": "atom",
998
1005
  "description": "A short status or label, one or two words, in eight tones: five for status and neutral labels, three (orange, pink,\nviolet) for categories. Not interactive. A fixed width truncates the label with an ellipsis. A tone change crossfades\nthe pill and its dot in `duration-quick`. With `status` (and `kind`) it shows a Dodo API status: the tone, label and\nicon come from the status map, and a later status change swaps the label in with a short blurred rise.",
999
1006
  "importPath": "@dodopayments/ui/badge",
1000
1007
  "exports": [
@@ -1223,6 +1230,7 @@
1223
1230
  "title": "Featured Icon",
1224
1231
  "category": "Data display",
1225
1232
  "status": "stable",
1233
+ "level": "atom",
1226
1234
  "description": "A 32px (or 20px at `size=\"sm\"`) tile that shows what a card, dialog or empty state is about, in eight tones. Not interactive, and\ndecorative by default (`aria-hidden`): the title next to it says what it is. To give the tile a name of its own,\npass `role=\"img\"`, `aria-label` and `aria-hidden={false}`.",
1227
1235
  "importPath": "@dodopayments/ui/featured-icon",
1228
1236
  "exports": [
@@ -1332,7 +1340,11 @@
1332
1340
  "slug": "breadcrumb",
1333
1341
  "title": "Breadcrumb",
1334
1342
  "category": "Navigation",
1335
- "status": "stable",
1343
+ "status": "deprecated",
1344
+ "deprecated": {
1345
+ "since": "1.8.0"
1346
+ },
1347
+ "level": "atom",
1336
1348
  "description": "Shows where the current page sits in the navigation hierarchy. Renders the `Breadcrumb` primitive:\na `<nav>` landmark labelled \"Breadcrumb\" (override with `aria-label`) that holds a `BreadcrumbList`.",
1337
1349
  "importPath": "@dodopayments/ui/breadcrumb",
1338
1350
  "exports": [
@@ -1425,7 +1437,11 @@
1425
1437
  "slug": "bar-chart",
1426
1438
  "title": "Bar Chart",
1427
1439
  "category": "Charts",
1428
- "status": "stable",
1440
+ "status": "deprecated",
1441
+ "deprecated": {
1442
+ "since": "1.8.0"
1443
+ },
1444
+ "level": "molecule",
1429
1445
  "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.",
1430
1446
  "importPath": "@dodopayments/ui/bar-chart",
1431
1447
  "exports": [
@@ -2183,6 +2199,7 @@
2183
2199
  "title": "Line Chart",
2184
2200
  "category": "Charts",
2185
2201
  "status": "stable",
2202
+ "level": "molecule",
2186
2203
  "description": "One or more metrics over time as lines, on the bklit `LineChart` primitive (visx). Compose it from\nchildren: `ChartGrid`, one `Line` per series (`dataKey`), `XAxis`, `YAxis`, `ChartTooltip`,\n`ReferenceArea`, `ChartMarkers`. For a series that crosses zero add `ProfitLossLine`; to extend a\nseries past today add `ProjectionLine` and `LineSeriesTerminalMarker`. Series reveal from left to\nright on mount, and new `data` tweens the y-domain without a new reveal. `status=\"loading\"` draws\na pulsing placeholder with `loadingLabel`. Rows need a `Date` under `xDataKey` (default `\"date\"`),\noldest first. The chart is as wide as its container; height comes from `aspectRatio` (default\n`\"2 / 1\"`) or a height class.",
2187
2204
  "importPath": "@dodopayments/ui/line-chart",
2188
2205
  "exports": [
@@ -3270,7 +3287,11 @@
3270
3287
  "slug": "composed-chart",
3271
3288
  "title": "Composed Chart",
3272
3289
  "category": "Charts",
3273
- "status": "stable",
3290
+ "status": "deprecated",
3291
+ "deprecated": {
3292
+ "since": "1.8.0"
3293
+ },
3294
+ "level": "molecule",
3274
3295
  "description": "Several kinds of series on one time axis, on the bklit `ComposedChart` primitive (visx): columns\nfor one metric with a line or an area for another. It exports only the root. Take the children\nfrom the other chart slugs: `SeriesBar` from `@dodopayments/ui/bar-chart`, `Line` from\n`@dodopayments/ui/line-chart`, `Area` from `@dodopayments/ui/area-chart`, and `ChartGrid`,\n`XAxis`, `YAxis` from `@dodopayments/ui/chart` and `ChartTooltip` from\n`@dodopayments/ui/chart-tooltip`. `barSize`, `maxBarSize`, `barGap`, `stacked` and `stackGap`\nlay out the columns; lines and areas are never stacked. Rows need a `Date` under `xDataKey`\n(default `\"date\"`), oldest first. The chart is as wide as its container; height comes from\n`aspectRatio` (default `\"2 / 1\"`) or a height class.",
3275
3296
  "importPath": "@dodopayments/ui/composed-chart",
3276
3297
  "exports": [
@@ -3413,7 +3434,11 @@
3413
3434
  "slug": "scatter-chart",
3414
3435
  "title": "Scatter Chart",
3415
3436
  "category": "Charts",
3416
- "status": "stable",
3437
+ "status": "deprecated",
3438
+ "deprecated": {
3439
+ "since": "1.8.0"
3440
+ },
3441
+ "level": "molecule",
3417
3442
  "description": "Values over time as dots, on the bklit `ScatterChart` primitive (visx). Compose it from\nchildren: one `Scatter` per series (`dataKey`), `ChartGrid` or `Background`, `XAxis`, `YAxis`,\n`ChartTooltip`. Rows need a `Date` under `xDataKey` (default `\"date\"`) and a number under each\nseries `dataKey`; the y-axis starts at 0. Dots reveal on mount over `animationDuration` (pass\n`0` to skip). There is no loading or empty state: render a placeholder until rows arrive. The\nchart is as wide as its container; height comes from `aspectRatio` (default `\"2 / 1\"`) or a\nheight class.",
3418
3443
  "importPath": "@dodopayments/ui/scatter-chart",
3419
3444
  "exports": [
@@ -3666,7 +3691,11 @@
3666
3691
  "slug": "radar-chart",
3667
3692
  "title": "Radar Chart",
3668
3693
  "category": "Charts",
3669
- "status": "stable",
3694
+ "status": "deprecated",
3695
+ "deprecated": {
3696
+ "since": "1.8.0"
3697
+ },
3698
+ "level": "molecule",
3670
3699
  "description": "Several series compared over the same metrics, as polygons on a radar (spider) grid, on the bklit\n`RadarChart` primitive (visx). Compose it from children: `RadarGrid`, `RadarAxis`, `RadarLabels`\nand one `RadarArea` per series (`index` into `data`). `metrics` is a list of `{ key, label }`;\neach `data` item is `{ label, color?, values: { [metric key]: 0-100 } }`, so normalise raw values\nto 0-100 first. Grid rings, axes, labels and polygons animate in on mount (`animate={false}` turns\nthis off). Hovering a polygon highlights it and dims the others. Without `size` the chart is a\nsquare as wide as its container. It has no loading or empty state: with no `data` it draws only\nthe grid.",
3671
3700
  "importPath": "@dodopayments/ui/radar-chart",
3672
3701
  "exports": [
@@ -3967,7 +3996,11 @@
3967
3996
  "slug": "gauge-chart",
3968
3997
  "title": "Gauge Chart",
3969
3998
  "category": "Charts",
3970
- "status": "stable",
3999
+ "status": "deprecated",
4000
+ "deprecated": {
4001
+ "since": "1.8.0"
4002
+ },
4003
+ "level": "molecule",
3971
4004
  "description": "One value from 0 to 100 as a row of notches, around an arc (default) or along a horizontal track\n(`orientation=\"linear\"`), on the bklit `Gauge` primitive. `value` sets how many notches fill.\n`centerValue` adds an optional animated statistic with a `defaultLabel` caption: in the arc\ncentre, or above / below the linear track (`labelPlacement`, `labelAlign`). Filled notches are the full\ncolour by default; `variant=\"tint\"` gives the tint look of the other charts (a 20% wash with a solid 3px outer\nedge). Set `useGradient` for a colour ramp across the notches (blue to violet unless `activeGradient` sets one), or pass `PatternLines` / `LinearGradient` children and point\n`activeFill` / `inactiveFill` at them with `url(#id)`. The plot is a `role=\"meter\"` with\n`aria-valuenow`. Notches pop in on mount (instant under reduced motion). It has no loading or\nempty state.",
3972
4005
  "importPath": "@dodopayments/ui/gauge-chart",
3973
4006
  "exports": [
@@ -4250,7 +4283,11 @@
4250
4283
  "slug": "funnel-chart",
4251
4284
  "title": "Funnel Chart",
4252
4285
  "category": "Charts",
4253
- "status": "stable",
4286
+ "status": "deprecated",
4287
+ "deprecated": {
4288
+ "since": "1.8.0"
4289
+ },
4290
+ "level": "molecule",
4254
4291
  "description": "Drop-off through the stages of a flow (visited, started checkout, paid), on the bklit\n`FunnelChart` primitive. `data` is a list of `{ label, value, displayValue?, color?, gradient? }`,\nfirst stage first; each segment is sized as a share of the first stage and shows its value, a\npercentage chip and the stage label, and each boundary shows the step conversion (\"→ 54%\") from the\nstage before. Segments are solid by default: a full-colour core inside faint halo bands (`layers` rings);\n`variant=\"tint\"` gives the wash of the tint look (20% with a solid 2px edge on the outer sides). Each stage takes the\nnext palette colour unless `color` sets one. Segments grow in with a stagger on mount; hovering one dims\nthe others. `orientation=\"vertical\"` stacks the stages top to bottom; `grid` adds background bands\nand divider lines. Height comes from the aspect ratio unless a class sets it. It has no loading\nstate and renders an empty frame when `data` is empty.",
4255
4292
  "importPath": "@dodopayments/ui/funnel-chart",
4256
4293
  "exports": [
@@ -4469,7 +4506,11 @@
4469
4506
  "slug": "pie-chart",
4470
4507
  "title": "Pie Chart",
4471
4508
  "category": "Charts",
4472
- "status": "stable",
4509
+ "status": "deprecated",
4510
+ "deprecated": {
4511
+ "since": "1.8.0"
4512
+ },
4513
+ "level": "molecule",
4473
4514
  "description": "Parts of a whole as pie or donut slices, on the bklit `PieChart` primitive (visx). Compose it from\nchildren: one `PieSlice` per row of `data` (`index`), and a `PieCenter` for a donut\n(`innerRadius > 0`) that shows the total, or the hovered slice. Rows are `{ label, value, color? }`\nin display order; slices go clockwise from 12 o'clock. Slices sweep in on mount; there is no\nloading or empty state, so render a placeholder while data loads and when every value is 0.\nWithout `size` the chart is a square as wide as its container. Link a `Legend` with `hoveredIndex`\nand `onHoverChange`.",
4474
4515
  "importPath": "@dodopayments/ui/pie-chart",
4475
4516
  "exports": [
@@ -4760,7 +4801,11 @@
4760
4801
  "slug": "ring-chart",
4761
4802
  "title": "Ring Chart",
4762
4803
  "category": "Charts",
4763
- "status": "stable",
4804
+ "status": "deprecated",
4805
+ "deprecated": {
4806
+ "since": "1.8.0"
4807
+ },
4808
+ "level": "molecule",
4764
4809
  "description": "Progress toward several targets as concentric rings, on the bklit `RingChart` primitive (visx).\nCompose it from children: one `Ring` per row of `data` (`index`, 0 = innermost) and an optional\n`RingCenter` that shows the sum of the values, or the hovered ring. Rows are\n`{ label, value, maxValue, color? }`; each ring fills `value / maxValue` of its track. Tracks scale\nin and arcs fill on mount; there is no loading or empty state, so render a placeholder while data\nloads. Without `size` the chart is a square as wide as its container. Link a `Legend` with\n`hoveredIndex` and `onHoverChange`.",
4765
4810
  "importPath": "@dodopayments/ui/ring-chart",
4766
4811
  "exports": [
@@ -5024,7 +5069,11 @@
5024
5069
  "slug": "sunburst-chart",
5025
5070
  "title": "Sunburst Chart",
5026
5071
  "category": "Charts",
5027
- "status": "stable",
5072
+ "status": "deprecated",
5073
+ "deprecated": {
5074
+ "since": "1.8.0"
5075
+ },
5076
+ "level": "molecule",
5028
5077
  "description": "A hierarchy as rings around a center, on the bklit `SunburstChart` primitive. Compose it from\nchildren: one `SunburstSegment` per arc of `buildArcs(data).arcs`, plus `SunburstCenter` (the hub:\nthe focused total with `formatValue`, and a click zooms out), `SunburstLabels`, `SunburstBreadcrumb`\n(drill-down path, above), `SunburstLegend` (branches with value and share, beside the rings) and\n`SunburstHint` (live hint, below). `data` is a `SunburstNode` tree; leaves carry `value`. Segments are\nsolid by default (full colour, fading by ring), like the bar and pie charts; `variant=\"tint\"` on\n`SunburstSegment` gives the wash with a solid rim. Click a segment with children to zoom in.\nThe SVG is decorative and pointer-only: `SunburstLegend` rows zoom in and `SunburstBreadcrumb` buttons\nzoom out by keyboard, so keep both in the chart when focus can change. Rings reveal on mount;\nthere is no loading or empty state. `size` (default 520) is the largest diameter; the chart never\ngets wider than its container.",
5029
5078
  "importPath": "@dodopayments/ui/sunburst-chart",
5030
5079
  "exports": [
@@ -5415,7 +5464,11 @@
5415
5464
  "slug": "heatmap-chart",
5416
5465
  "title": "Heatmap Chart",
5417
5466
  "category": "Charts",
5418
- "status": "stable",
5467
+ "status": "deprecated",
5468
+ "deprecated": {
5469
+ "since": "1.8.0"
5470
+ },
5471
+ "level": "molecule",
5419
5472
  "description": "A calendar heatmap on the bklit `HeatmapChart` primitive (visx): one column per week, one row per\nweekday, each cell filled by its level on the `--chart-scale-01..05` tokens. Compose it from\nchildren: `HeatmapCells`, `HeatmapXAxis` (months), `HeatmapYAxis` (weekdays), `HeatmapSeparator`\nand `HeatmapTooltip`. Put a `HeatmapLegend` next to it, and wrap both in a\n`HeatmapInteractionProvider` to link legend and cell hover. `data` is `HeatmapColumn[]`: each\ncolumn holds 7 `HeatmapBin`s, Sunday first, and each `count` is a level from 0 (none) to 4 (most).\nBin raw values into levels before you pass them. Cells fade in on mount; `status=\"loading\"`\nshimmers the cells and shows `loadingLabel`. With `layout=\"fluid\"` (default) the cells are square\nand the height follows the container width.",
5420
5473
  "importPath": "@dodopayments/ui/heatmap-chart",
5421
5474
  "exports": [
@@ -6177,7 +6230,11 @@
6177
6230
  "slug": "sankey-chart",
6178
6231
  "title": "Sankey Chart",
6179
6232
  "category": "Charts",
6180
- "status": "stable",
6233
+ "status": "deprecated",
6234
+ "deprecated": {
6235
+ "since": "1.8.0"
6236
+ },
6237
+ "level": "molecule",
6181
6238
  "description": "A Sankey diagram on the bklit `SankeyChart` primitive (visx, d3-sankey): flows between nodes, each\nband as wide as its value. Use it to show where an amount goes, e.g. gross volume into fees,\nrefunds and payouts. Compose it from children: `SankeyLink` (the bands), `SankeyNode` (the bars\nand their labels) and `SankeyTooltip`. `data` is `{ nodes, links }`: each node has a `name`, each\nlink a `source` and `target` node index and a `value`. Nodes and bands grow in on mount over\n`animationDuration`. Nodes and bands are solid by default: nodes in full colour, each band its source node's\ncolour at 35% opacity, so crossing bands blend; set `useGradient` on `SankeyLink` for a source-to-target gradient.\n`variant=\"tint\"` on `SankeyLink` / `SankeyNode` gives the tint look of the other charts (nodes a 20% wash with a\nsolid edge on their label side, bands a 12% wash, 24% while highlighted). The chart is as wide as its container; height comes from `aspectRatio`\n(default `\"2 / 1\"`). The default `margin` keeps 180px on each side for node labels.",
6182
6239
  "importPath": "@dodopayments/ui/sankey-chart",
6183
6240
  "exports": [
@@ -6505,6 +6562,7 @@
6505
6562
  "title": "Choropleth Chart",
6506
6563
  "category": "Charts",
6507
6564
  "status": "stable",
6565
+ "level": "molecule",
6508
6566
  "description": "A choropleth map on the bklit `ChoroplethChart` primitive (visx geo, Mercator projection): one\nregion per GeoJSON feature, each filled by its value. Compose it from children:\n`ChoroplethGraticule` (grid lines), `ChoroplethFeatureComponent` (the regions; colour them with\n`getFeatureColor` on the `--chart-scale-01..05` tokens) and `ChoroplethTooltip`. Other children,\nsuch as zoom buttons that call `useChoroplethZoom()`, render in an HTML overlay. `data` is a GeoJSON\n`FeatureCollection`; the library ships no map geometry, so load it yourself through\n`topojson-client`. For a world map, use one that draws India on its official boundary, not raw\n`world-atlas` / Natural Earth, which cuts off Jammu and Kashmir and Ladakh: download\nhttps://raw.githubusercontent.com/dodopayments/dodo-ui/main/apps/docs/lib/geo/world-countries-110m.json\nto `lib/geo/world-countries-110m.json` in your app (the examples import it as\n`@/lib/geo/world-countries-110m.json`). Regions carry `properties.name` and, except N. Cyprus,\nSomaliland and Kosovo, `properties.iso2`. Regions fade in on mount. `zoomEnabled` turns on wheel\nzoom and drag to pan. The chart is as wide as its container; height comes from `aspectRatio`\n(default `\"16 / 9\"`).",
6509
6567
  "importPath": "@dodopayments/ui/choropleth-chart",
6510
6568
  "exports": [
@@ -7033,6 +7091,7 @@
7033
7091
  "title": "Retention Matrix",
7034
7092
  "category": "Charts",
7035
7093
  "status": "stable",
7094
+ "level": "organism",
7036
7095
  "description": "How many customers of each monthly cohort are still active in the months after they joined, drawn the way the\nHeatmap chart draws its cells. One row per cohort (cohort, size, Month 0 to Month 6); each cell writes its\nretention % and is shaded on one of four lime levels (`--chart-scale-02..05`), split across the matrix's own values\nlike the heatmap's (see {@link retentionThresholds}); only 0% is grey and 100% (Month 0) is the darkest lime. Hovering a cell fades the others\nand shows the cohort, the month and how many customers that is. Months a cohort has not reached are blank.\nThe matrix keeps a 560px minimum width and scrolls sideways in a narrower parent. Put it in a `Card` titled\n\"User retention\".",
7037
7096
  "importPath": "@dodopayments/ui/retention-matrix",
7038
7097
  "exports": [
@@ -7145,6 +7204,7 @@
7145
7204
  "title": "Comparison Bars",
7146
7205
  "category": "Charts",
7147
7206
  "status": "stable",
7207
+ "level": "organism",
7148
7208
  "description": "Categories compared with the previous period, as the dashboard's analytics draw them (Payments breakdown,\nRevenue by product, Disputes, New vs returning, Revenue by country). Each row has a label, a pale lime bar for\nthe current value, a dark marker with a dot at the previous value and the current value on the right; when the\nvalue fell short of the previous one, the gap is hatched. All rows share one scale, set by the largest value of\neither period. Hovering a row highlights it and shows both periods. Put it in a `Card` (or, with a summary\nsuch as a total, in a `StatCard`) and pass `periods` for the legend.",
7149
7209
  "importPath": "@dodopayments/ui/comparison-bars",
7150
7210
  "exports": [
@@ -7231,6 +7291,7 @@
7231
7291
  "title": "Button",
7232
7292
  "category": "Actions",
7233
7293
  "status": "stable",
7294
+ "level": "molecule",
7234
7295
  "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.",
7235
7296
  "importPath": "@dodopayments/ui/button",
7236
7297
  "exports": [
@@ -7594,7 +7655,11 @@
7594
7655
  "slug": "button-group",
7595
7656
  "title": "Button group",
7596
7657
  "category": "Actions",
7597
- "status": "stable",
7658
+ "status": "deprecated",
7659
+ "deprecated": {
7660
+ "since": "1.8.0"
7661
+ },
7662
+ "level": "atom",
7598
7663
  "description": "Joins buttons into one control: a split button (a primary action beside a `Menu` of related ones,\ne.g. Save with Copy to live mode behind a `⋯`) or a row of related actions. The inner corners and\nborders meet. Name the group with `aria-label` when its buttons share one purpose.",
7599
7664
  "importPath": "@dodopayments/ui/button-group",
7600
7665
  "exports": [
@@ -7666,6 +7731,7 @@
7666
7731
  "title": "Chart",
7667
7732
  "category": "Charts",
7668
7733
  "status": "stable",
7734
+ "level": "organism",
7669
7735
  "description": "The frame every dodo chart renders around its plot: a `role=\"figure\"` box named by `label`, as wide\nas its container. Its height comes from the chart's `aspectRatio` or from a height class\n(`className=\"h-48\"`). Use it to give a custom visx chart the same accessible frame.",
7670
7736
  "importPath": "@dodopayments/ui/chart",
7671
7737
  "exports": [
@@ -8811,7 +8877,11 @@
8811
8877
  "slug": "chart-legend",
8812
8878
  "title": "Chart Legend",
8813
8879
  "category": "Charts",
8814
- "status": "stable",
8880
+ "status": "deprecated",
8881
+ "deprecated": {
8882
+ "since": "1.8.0"
8883
+ },
8884
+ "level": "atom",
8815
8885
  "description": "A list legend for a chart: one row per item with a colour dot, the label and the value. Set\n`showProgress` to draw each `value` against its `maxValue` as a progress bar with a percentage.\nRows report hover through `onHover`; pass `hoveredIndex` back to fade the other rows and to\nhighlight the matching series in the chart.",
8816
8886
  "importPath": "@dodopayments/ui/chart-legend",
8817
8887
  "exports": [
@@ -9161,6 +9231,7 @@
9161
9231
  "title": "Chart Tooltip",
9162
9232
  "category": "Charts",
9163
9233
  "status": "stable",
9234
+ "level": "atom",
9164
9235
  "description": "The hover layer of a chart: a vertical crosshair, a dot on each series, a floating panel with one\nrow per series and a date pill under the plot. Rows default to each series' colour, `dataKey` and\nvalue; pass `rows` to rename or format them, or `content` to render the whole panel.",
9165
9236
  "importPath": "@dodopayments/ui/chart-tooltip",
9166
9237
  "exports": [
@@ -9717,6 +9788,7 @@
9717
9788
  "title": "Card",
9718
9789
  "category": "Layout",
9719
9790
  "status": "stable",
9791
+ "level": "molecule",
9720
9792
  "description": "The section card (Dodo Nest Card): a grey tray around an optional `CardHeader` strip (`CardTitle` with an\noptional `help`, `CardDescription`, a small `CardAction`), the white `CardContent` panel and an optional\n`CardFooter` note on the grey. `tone=\"error\"` tints the tray red. For the common shape pass `title` (with\n`help`), `description` and `action` as props: the card draws the header and puts `children` in the panel (the\nheader renders only when one of them is set, the panel only with children). Renders a `<div>`; pass `render` to\noutput another element, e.g. `render={<section />}`. Stack cards 24 apart; never nest a card in a card.\nGive a card a definite width (a grid cell, `w-full`, a `max-w-*` column): below about 20rem the header moves\nits action under the title, and the header, a size container, does not widen a card that shrinks to fit.",
9721
9793
  "importPath": "@dodopayments/ui/card",
9722
9794
  "exports": [
@@ -10007,6 +10079,7 @@
10007
10079
  "title": "Date picker",
10008
10080
  "category": "Forms",
10009
10081
  "status": "stable",
10082
+ "level": "organism",
10010
10083
  "description": "The Dodo Nest Date picker: the calendar panel itself, without a trigger (put it in a `Popover` under a Button, or\ninline under a field). `type=\"range\"` (default) has presets (Today … Last year), two months, optional date fields\nand a Reset / Apply footer on a grey tray around the panel; under 640px it shows one month, the presets scroll in a\nrow above it and the footer buttons fill the width. `type=\"single\"` is one month with month and year selects, on\nthe same grey tray. Days are 32px; a picked day is the primary gradient, a range runs on a grey band, today has a\ndot and disabled days are greyed out. Arrow keys, Page Up / Down and Home / End move between days.",
10011
10084
  "importPath": "@dodopayments/ui/date-picker",
10012
10085
  "exports": [
@@ -10175,6 +10248,7 @@
10175
10248
  "title": "Code Block",
10176
10249
  "category": "Data display",
10177
10250
  "status": "stable",
10251
+ "level": "organism",
10178
10252
  "description": "Read-only monospace block for code, JSON payloads and commands, in Geist Mono, with an optional header and a copy\nbutton. Colours JSON with the syntax tokens. A scrollable code area is keyboard focusable. With `snippets` it shows\nthe same example in several languages (cURL, Node.js, Python, Go): the header holds a tab per language, the picked\nlanguage is shared through a `CodeBlockProvider` and, with `storageKey`, remembered in localStorage (read after\nmount, so server and client render the same first frame).",
10179
10253
  "importPath": "@dodopayments/ui/code-block",
10180
10254
  "exports": [
@@ -10370,6 +10444,7 @@
10370
10444
  "title": "Copy button",
10371
10445
  "category": "Actions",
10372
10446
  "status": "stable",
10447
+ "level": "atom",
10373
10448
  "description": "Button that copies `content` to the clipboard, composed on the `Button` primitive: icon-only, or with\ntext `children` that swap to \"Copied\" in place. The copy,\ncheck and error icons share one cell and cross-fade in place on a spring, so the button never\nchanges size; the check draws itself in. It falls back to a selection copy when the Clipboard API\nrefuses (to a `copy` event for `sensitive` content, which never enters the page), shows a failed\nstate when both fail, and announces `copiedLabel` or `errorLabel` through a polite live region\nwhile the accessible name stays `label`. Motion after interior.dev's copy button.",
10374
10449
  "importPath": "@dodopayments/ui/copy-button",
10375
10450
  "exports": [
@@ -10547,6 +10622,7 @@
10547
10622
  "title": "Data table",
10548
10623
  "category": "Data display",
10549
10624
  "status": "stable",
10625
+ "level": "organism",
10550
10626
  "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.",
10551
10627
  "importPath": "@dodopayments/ui/data-grid",
10552
10628
  "exports": [
@@ -11008,6 +11084,7 @@
11008
11084
  "title": "Checkbox",
11009
11085
  "category": "Forms",
11010
11086
  "status": "stable",
11087
+ "level": "molecule",
11011
11088
  "description": "A box the user ticks to turn an option on or off. Renders the `Checkbox` primitive on Base UI\n`Checkbox`: a `<span role=\"checkbox\">` plus a hidden `<input>` so it submits with forms.\n`indeterminate` shows a dash (`aria-checked=\"mixed\"`) for \"some selected\" parents. On its own it is\nthe bare box: name it by wrapping it in a `<label>` or with `aria-label`. With `label` it renders the\nwhole option: the label wraps the box (clicking it toggles the box), `description` and `error` are\nlinked with `aria-describedby`, `required` adds the asterisk, `disabled` disables the whole option,\nand `reveal` shows content below while the box is ticked.\nTicking fades the fill in and draws the check mark, the dash grows in from half width, and the box\npresses in while held (also when the label is pressed); content revealed by a tick fades in, and a\nbox that is already ticked when it mounts does not animate.",
11012
11089
  "importPath": "@dodopayments/ui/checkbox",
11013
11090
  "exports": [
@@ -11227,7 +11304,11 @@
11227
11304
  "slug": "container",
11228
11305
  "title": "Container",
11229
11306
  "category": "Layout",
11230
- "status": "stable",
11307
+ "status": "deprecated",
11308
+ "deprecated": {
11309
+ "since": "1.8.0"
11310
+ },
11311
+ "level": "atom",
11231
11312
  "description": "Composite (the primitives have no Container): layout only, on the Tailwind spacing scale.\nCentres page content at a max width with the responsive page gutter. Use one per page, around\nits sections. Renders a `div`; use `render={<main />}` when it is the page's main landmark.",
11232
11313
  "importPath": "@dodopayments/ui/container",
11233
11314
  "exports": [
@@ -11305,6 +11386,7 @@
11305
11386
  "title": "Country select",
11306
11387
  "category": "Forms",
11307
11388
  "status": "stable",
11389
+ "level": "molecule",
11308
11390
  "description": "Searchable country picker. Shows each country's flag and name; typing filters by name or exact\nISO code. The value is the upper-case ISO 3166-1 alpha-2 code.\n\nBuilt from primitive parts: a `Combobox` primitive whose trigger renders the `SelectButton` primitive (select-style\nfield), with the search `ComboboxInput` inside the `ComboboxPopup`.",
11309
11391
  "importPath": "@dodopayments/ui/country-select",
11310
11392
  "exports": [
@@ -11474,6 +11556,7 @@
11474
11556
  "title": "Currency select",
11475
11557
  "category": "Forms",
11476
11558
  "status": "stable",
11559
+ "level": "molecule",
11477
11560
  "description": "Searchable currency picker. Each option shows the issuing country's flag (the EU flag for EUR, a globe\nfor supranational codes such as XOF), the ISO 4217 code and its localized name; typing\nfilters by code prefix or name. The value is the upper-case currency code.\n\nBuilt from primitive parts: a `Combobox` primitive whose trigger renders the `SelectButton` primitive (select-style\nfield), with the search `ComboboxInput` inside the `ComboboxPopup`.",
11478
11561
  "importPath": "@dodopayments/ui/currency-select",
11479
11562
  "exports": [
@@ -11644,7 +11727,11 @@
11644
11727
  "slug": "color-input",
11645
11728
  "title": "Color input",
11646
11729
  "category": "Forms",
11647
- "status": "stable",
11730
+ "status": "deprecated",
11731
+ "deprecated": {
11732
+ "since": "1.8.0"
11733
+ },
11734
+ "level": "organism",
11648
11735
  "description": "A colour field: a swatch that opens the browser's colour picker, beside a text field for a hex.\nEither one changes the value, so a merchant can paste a brand colour or pick one. The swatch stays\nempty while the text is not a colour. With an empty value the browser's picker starts at black, so\npicking black from empty fires no change: type it instead.",
11649
11736
  "importPath": "@dodopayments/ui/color-input",
11650
11737
  "exports": [
@@ -11735,7 +11822,11 @@
11735
11822
  "slug": "timezone-select",
11736
11823
  "title": "Time zone select",
11737
11824
  "category": "Forms",
11738
- "status": "stable",
11825
+ "status": "deprecated",
11826
+ "deprecated": {
11827
+ "since": "1.8.0"
11828
+ },
11829
+ "level": "atom",
11739
11830
  "description": "Searchable IANA time zone picker. Each option shows the zone and its current GMT offset; typing\nfilters by either (underscores match spaces). The value is the IANA identifier.\n\nBuilt from primitive parts: a `Combobox` primitive whose trigger renders the `SelectButton` primitive (select-style\nfield), with the search `ComboboxInput` inside the `ComboboxPopup`.",
11740
11831
  "importPath": "@dodopayments/ui/timezone-select",
11741
11832
  "exports": [
@@ -11889,6 +11980,7 @@
11889
11980
  "title": "Collapsible",
11890
11981
  "category": "Layout",
11891
11982
  "status": "stable",
11983
+ "level": "molecule",
11892
11984
  "description": "Shows and hides a section of content: the `Collapsible` primitive on Base UI `Collapsible`. Compose it\nfrom a `CollapsibleTrigger` and a `CollapsibleContent`; `variant=\"card\"` is the Dodo Nest Collapsible section\ntray, with `CollapsibleTitle` and `CollapsibleDescription` in the trigger.",
11893
11985
  "importPath": "@dodopayments/ui/collapsible",
11894
11986
  "exports": [
@@ -12247,6 +12339,7 @@
12247
12339
  "title": "Scaled frame",
12248
12340
  "category": "Layout",
12249
12341
  "status": "stable",
12342
+ "level": "atom",
12250
12343
  "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.",
12251
12344
  "importPath": "@dodopayments/ui/scaled-frame",
12252
12345
  "exports": [
@@ -12288,6 +12381,7 @@
12288
12381
  "title": "Dialog",
12289
12382
  "category": "Overlays",
12290
12383
  "status": "stable",
12384
+ "level": "molecule",
12291
12385
  "description": "The dialog (Dodo Nest Dialog): portal + scrim + a grey tray around a white panel, with the close button\n(secondary, 24px) on the title row (primitive `DialogPopup`). Always include a `DialogTitle`. Lay it out as\n`DialogHeader` and `DialogPanel` (the white panel; the body scrolls) and `DialogFooter` (the strip on the\ntray). A confirm dialog starts its header with a `DialogIcon`; make it `<Dialog alert>`.",
12292
12386
  "importPath": "@dodopayments/ui/dialog",
12293
12387
  "exports": [
@@ -12813,6 +12907,13 @@
12813
12907
  "description": "Icon shown in a Featured icon tile above the title. Defaults to an info icon (a warning icon when\n`destructive`); pass `null` to hide it.",
12814
12908
  "source": "dodo"
12815
12909
  },
12910
+ {
12911
+ "name": "iconTone",
12912
+ "type": "\"info\" | \"success\" | \"warning\" | \"error\" | \"violet\" | \"neutral\" | \"pink\" | \"orange\" | null",
12913
+ "required": false,
12914
+ "description": "Tone of the icon tile, e.g. `warning` for a pause or `success` for a resume. Defaults to `error`\nwhen `destructive`, else `neutral`.",
12915
+ "source": "dodo"
12916
+ },
12816
12917
  {
12817
12918
  "name": "loading",
12818
12919
  "type": "boolean",
@@ -12902,7 +13003,12 @@
12902
13003
  "slug": "drawer",
12903
13004
  "title": "Drawer",
12904
13005
  "category": "Overlays",
12905
- "status": "stable",
13006
+ "status": "deprecated",
13007
+ "deprecated": {
13008
+ "since": "1.8.0",
13009
+ "replacement": "Sheet"
13010
+ },
13011
+ "level": "atom",
12906
13012
  "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`.",
12907
13013
  "importPath": "@dodopayments/ui/drawer",
12908
13014
  "exports": [
@@ -13272,7 +13378,11 @@
13272
13378
  "slug": "direction-provider",
13273
13379
  "title": "Direction Provider",
13274
13380
  "category": "Utilities",
13275
- "status": "stable",
13381
+ "status": "deprecated",
13382
+ "deprecated": {
13383
+ "since": "1.8.0"
13384
+ },
13385
+ "level": "atom",
13276
13386
  "description": "Sets the reading direction for every component inside: keyboard navigation (arrow keys in menus,\ntabs, sliders, radio groups and tree views follow the reading order), slider and scroll positions,\nand the `side=\"start\"` / `side=\"end\"` of Sheet, Sidebar and the `-start` / `-end` Toaster\npositions, which resolve to the physical edge. Wrap the app once, next to `<html dir=\"rtl\">`;\nwith `asWrapper` it also renders a `<div dir>` for a mirrored region inside the page.",
13277
13387
  "importPath": "@dodopayments/ui/direction-provider",
13278
13388
  "exports": [
@@ -13338,6 +13448,7 @@
13338
13448
  "title": "Empty",
13339
13449
  "category": "Feedback",
13340
13450
  "status": "stable",
13451
+ "level": "molecule",
13341
13452
  "description": "What a page, card or table shows when there is nothing yet (Dodo Nest Empty state): an optional Featured icon\n(neutral, or `iconTone=\"error\"` when loading failed), a title (Label/Primary), an optional description (Body/Primary, Content/Secondary) and an optional action,\nin a centred column up to 360 wide. It has no container or padding of its own: put it where the content would be.\nThe title, description and action rise in one after the other.",
13342
13453
  "importPath": "@dodopayments/ui/empty",
13343
13454
  "exports": [
@@ -13428,6 +13539,7 @@
13428
13539
  "title": "Field",
13429
13540
  "category": "Forms",
13430
13541
  "status": "stable",
13542
+ "level": "organism",
13431
13543
  "description": "Groups a label, description, control and error message and wires them together: the label and\nmessages are linked to the control (`htmlFor`, `aria-describedby`) and the control gets\n`aria-invalid` + `data-invalid` when validation fails, which switches `Input` to its destructive\nborder. When a submit of the surrounding `Form` (or `FormField`) fails while the field is invalid,\nits control shakes once (`animate-shake`); typing never shakes it. Renders the `Field` primitive\non Base UI `Field.Root`.\n\nPass `label` (and `description`, `required`, `help`, `action`, `error`) to get the Dodo Nest\nField: `layout=\"vertical\"` (default) for forms, `layout=\"horizontal\"` for settings rows with the\ncontrol (a Switch, a 160px Select, a Button) on the trailing side and optional `expanded` content.\n`children` is then the control. Without `label`, compose the parts as children.",
13432
13544
  "importPath": "@dodopayments/ui/field",
13433
13545
  "exports": [
@@ -13613,6 +13725,13 @@
13613
13725
  "name": "FieldControl",
13614
13726
  "description": "The field's control: the `Input` primitive (Base UI `Input`, i.e. `Field.Control`) with the same\n`size` scale as `Input`. Primitive exports `FieldControl` unstyled, so this renders the styled Input.\nAccepts Base UI's `render` prop to swap the rendered element.",
13615
13727
  "props": [
13728
+ {
13729
+ "name": "action",
13730
+ "type": "{ label: ReactNode; onClick: () => void; disabled?: boolean | undefined; }",
13731
+ "required": false,
13732
+ "description": "A boxed button at the end (Surface/Secondary with a divider), for one action on the value, such as\n\"Generate slug\".",
13733
+ "source": "dodo"
13734
+ },
13616
13735
  {
13617
13736
  "name": "addon",
13618
13737
  "type": "ReactNode",
@@ -13789,6 +13908,14 @@
13789
13908
  "description": "",
13790
13909
  "source": "dodo"
13791
13910
  },
13911
+ {
13912
+ "name": "variant",
13913
+ "type": "\"inline\" | \"field\"",
13914
+ "required": false,
13915
+ "default": "\"field\"",
13916
+ "description": "`field` is the bordered box. `inline` reads as text in a heading row, such as a checkout group's name: no box,\nthe value underlined, a focus ring when it is edited.",
13917
+ "source": "dodo"
13918
+ },
13792
13919
  {
13793
13920
  "name": "defaultValue",
13794
13921
  "type": "string | number | readonly string[]",
@@ -13936,11 +14063,41 @@
13936
14063
  ],
13937
14064
  "docsUrl": "/components/field"
13938
14065
  },
14066
+ {
14067
+ "slug": "required-mark",
14068
+ "title": "Required mark",
14069
+ "category": "Forms",
14070
+ "status": "beta",
14071
+ "level": "atom",
14072
+ "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.",
14073
+ "importPath": "@dodopayments/ui/required-mark",
14074
+ "exports": [
14075
+ "LabelRequiredIndicator"
14076
+ ],
14077
+ "parts": [
14078
+ {
14079
+ "name": "LabelRequiredIndicator",
14080
+ "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.",
14081
+ "props": [
14082
+ {
14083
+ "name": "className",
14084
+ "type": "string",
14085
+ "required": false,
14086
+ "description": "Additional Tailwind classes, merged last.",
14087
+ "source": "dodo"
14088
+ }
14089
+ ]
14090
+ }
14091
+ ],
14092
+ "examples": [],
14093
+ "docsUrl": "/components/field"
14094
+ },
13939
14095
  {
13940
14096
  "slug": "form",
13941
14097
  "title": "Form",
13942
14098
  "category": "Forms",
13943
14099
  "status": "stable",
14100
+ "level": "atom",
13944
14101
  "description": "Native `<form>` (the `Form` primitive on Base UI `Form`) that validates the `Field`s inside it on submit.\nWhen a field is invalid it cancels the submission, shows the errors, focuses the first invalid\ncontrol and shakes the invalid controls once. `onFormSubmit` receives the values as an object keyed\nby field `name`; `errors` (e.g. from your server) shows messages on the fields with matching names,\nand when they answer a submit those fields shake too: also when the response repeats the\nprevious submit's messages (pass a new `errors` object per response) and when a retry clears\n`errors` before the response arrives. A `render` element (not a function) keeps Base UI's own\nform handling and skips the shake. Stacks its children 16px apart.",
13945
14102
  "importPath": "@dodopayments/ui/form",
13946
14103
  "exports": [
@@ -14015,6 +14172,7 @@
14015
14172
  "title": "Form field",
14016
14173
  "category": "Forms",
14017
14174
  "status": "stable",
14175
+ "level": "organism",
14018
14176
  "description": "react-hook-form adapter for `Field`. Registers the field through RHF's `Controller` and renders\nthe output of `render` inside a `Field` that mirrors the controller state: `invalid`, `dirty`,\n`touched` and `disabled`. A `FieldError` without children shows `fieldState.error.message`\n(falling back to `error.root.message`). Like `Form`, a failed `handleSubmit` shakes the control\nonce while the field is invalid. Spread `field` onto the control:\n`render={({ field }) => <Input {...field} />}`. Import it from `@dodopayments/ui/form-field`;\nit needs the optional `react-hook-form` peer dependency.",
14019
14177
  "importPath": "@dodopayments/ui/form-field",
14020
14178
  "exports": [
@@ -14100,6 +14258,7 @@
14100
14258
  "title": "File Upload",
14101
14259
  "category": "Forms",
14102
14260
  "status": "stable",
14261
+ "level": "organism",
14103
14262
  "description": "Dropzone for picking files: click (or Enter / Space) opens the file picker, and files can be\ndragged onto it. Validates `accept`, `maxSize` and `multiple`, then reports accepted files through\n`onFilesAdded` and refused ones through `onFilesRejected`. It does not keep or upload files: list\nthem with `FileUploadList` / `FileUploadItem`, inside a `FileUploadTray` for several files.\n\nThe primitives have no dropzone, so this is a composite: a native `<button>` in the Dodo Nest look\n(Surface/Primary, 1px Border/Primary, Radius/Large, a neutral Featured icon) and a hidden\n`<input type=\"file\">`.",
14104
14263
  "importPath": "@dodopayments/ui/file-upload",
14105
14264
  "exports": [
@@ -14538,6 +14697,7 @@
14538
14697
  "title": "Image Crop",
14539
14698
  "category": "Forms",
14540
14699
  "status": "stable",
14700
+ "level": "organism",
14541
14701
  "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.",
14542
14702
  "importPath": "@dodopayments/ui/image-crop",
14543
14703
  "exports": [
@@ -14617,6 +14777,7 @@
14617
14777
  "title": "Grid",
14618
14778
  "category": "Layout",
14619
14779
  "status": "stable",
14780
+ "level": "atom",
14620
14781
  "description": "Composite (the primitives have no Grid): layout only, on the Tailwind spacing scale.\nEqual-width columns (1-4) with a gap from the spacing scale. Columns follow the width the grid\nis given (container queries), not the viewport, so one grid works in a page, a card or a sidebar.\nIt is wrapped in a full-width size container (`data-slot=\"grid-container\"`); `className`,\n`render` and other props go to the grid element itself.",
14621
14782
  "importPath": "@dodopayments/ui/grid",
14622
14783
  "exports": [
@@ -14718,6 +14879,7 @@
14718
14879
  "title": "Copyable ID",
14719
14880
  "category": "Data display",
14720
14881
  "status": "stable",
14882
+ "level": "organism",
14721
14883
  "description": "An ID or secret the merchant can copy, in Geist Mono 12: the Dodo Nest Copyable ID. `inline` (default) for rails,\ntables and headers, `field` for long references, `chip` with a `label` for an entity header, and `secret` masked\nwith a reveal button. A `Tooltip` primitive shows the full value (except for a secret) and a ghost icon copy\n`Button` copies it, turning into a green check for 2 s. Clicks on the buttons do not bubble to a clickable parent\nrow. An empty `value` renders a dash.",
14722
14884
  "importPath": "@dodopayments/ui/copyable-id",
14723
14885
  "exports": [
@@ -14885,6 +15047,7 @@
14885
15047
  "title": "Money",
14886
15048
  "category": "Data display",
14887
15049
  "status": "stable",
15050
+ "level": "molecule",
14888
15051
  "description": "A formatted amount from integer minor units and an ISO 4217 code: the decimals follow the\ncurrency's exponent (two for USD, none for JPY, three for KWD), digits are `tabular-nums` and\nnegatives use the true minus sign. Refunds and other negatives are muted, never red; red is only\nfor an explicit `status=\"failed\"`. `compact` shortens the amount and shows the full value in a\n`Tooltip`; `blur` hides it until hovered or focused, for balances on shared screens.\n\n`compact` and `blur` render a `<button>` (a tab stop, `aria-pressed` while a blurred amount is\npinned open), so do not place them inside a link, button or clickable row or card: use a plain\namount there.",
14889
15052
  "importPath": "@dodopayments/ui/money",
14890
15053
  "exports": [
@@ -14993,7 +15156,11 @@
14993
15156
  "slug": "fx-conversion",
14994
15157
  "title": "FX Conversion",
14995
15158
  "category": "Data display",
14996
- "status": "stable",
15159
+ "status": "deprecated",
15160
+ "deprecated": {
15161
+ "since": "1.8.0"
15162
+ },
15163
+ "level": "organism",
14997
15164
  "description": "A currency conversion with the settlement amount first: the converted `to` amount as the primary\nfigure, the `from` amount it came from, the rate (\"1 USD = 83.12 INR\") with the `Timestamp` it was\nquoted at, and an optional live countdown while the rate is locked (`lockedUntil`). Amounts are\ninteger minor units rendered by `Money`.",
14998
15165
  "importPath": "@dodopayments/ui/fx-conversion",
14999
15166
  "exports": [
@@ -15080,6 +15247,7 @@
15080
15247
  "title": "Input",
15081
15248
  "category": "Forms",
15082
15249
  "status": "stable",
15250
+ "level": "organism",
15083
15251
  "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.",
15084
15252
  "importPath": "@dodopayments/ui/input",
15085
15253
  "exports": [
@@ -15294,6 +15462,7 @@
15294
15462
  "title": "Input group",
15295
15463
  "category": "Forms",
15296
15464
  "status": "stable",
15465
+ "level": "organism",
15297
15466
  "description": "One bordered field holding inputs, text addons and buttons (primitive `InputGroup`): prefixes and\nsuffixes (`InputGroupAddon`), joined inputs (several `InputGroupInput`s) and attached actions\n(`InputGroupButton`). Renders a `<div role=\"group\">`; give it `aria-label` or `aria-labelledby`\nwhen the parts share one label.",
15298
15467
  "importPath": "@dodopayments/ui/input-group",
15299
15468
  "exports": [
@@ -15497,6 +15666,7 @@
15497
15666
  "title": "Kbd",
15498
15667
  "category": "Typography",
15499
15668
  "status": "stable",
15669
+ "level": "atom",
15500
15670
  "description": "A keyboard key, e.g. The `⌘K` hint next to a search field: the `Kbd` primitive. Renders a `<kbd>`;\nwrap the keys of a shortcut in `KbdGroup`. Purely visual: it does not register the shortcut.",
15501
15671
  "importPath": "@dodopayments/ui/kbd",
15502
15672
  "exports": [
@@ -15550,6 +15720,7 @@
15550
15720
  "title": "Menu",
15551
15721
  "category": "Overlays",
15552
15722
  "status": "stable",
15723
+ "level": "atom",
15553
15724
  "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`.",
15554
15725
  "importPath": "@dodopayments/ui/menu",
15555
15726
  "exports": [
@@ -16630,6 +16801,7 @@
16630
16801
  "title": "OTP Field",
16631
16802
  "category": "Forms",
16632
16803
  "status": "stable",
16804
+ "level": "atom",
16633
16805
  "description": "One-time code input split into single-character cells (email/SMS verification, 2FA), built on the `OTPField`\nprimitive: 48 × 48 cells, 8 apart, that shrink to 40 in a narrow column (Dodo Nest OTP input). Renders\n`length` cells unless you pass `OtpFieldInput` / `OtpFieldSeparator` children. Put `id` on the field and point a\n`<label htmlFor>` at it: the id lands on the first cell, and the other cells are labelled \"Character N of LEN\".\n\nMotion (Figma OTP input > Motion): a typed digit slides up into its cell and a deleted one falls out; the focused\ncell springs up to 1.06 with a blinking caret; a pasted code fills the cells one after the other; a refused code\n(`status=\"error\"`) flashes red, holds, then clears right to left; an accepted code (`status=\"success\"`) draws a\ngreen ring round every cell. Reduced motion keeps only the colour changes.",
16634
16806
  "importPath": "@dodopayments/ui/otp-field",
16635
16807
  "exports": [
@@ -16886,6 +17058,7 @@
16886
17058
  "title": "Popover",
16887
17059
  "category": "Overlays",
16888
17060
  "status": "stable",
17061
+ "level": "organism",
16889
17062
  "description": "The floating tray (the `PopoverPopup` primitive: portal + positioner + popup + viewport). Lay it out\nas `PopoverHeader` (title chin), `PopoverPanel` (the white content panel) and, for `sm`, an optional\n`PopoverFooter` (Clear / Filter on the grey). Add a `PopoverTitle` so the dialog has an accessible\nname. It rises from the trigger side as it opens.",
16890
17063
  "importPath": "@dodopayments/ui/popover",
16891
17064
  "exports": [
@@ -17408,6 +17581,7 @@
17408
17581
  "title": "Progress",
17409
17582
  "category": "Feedback",
17410
17583
  "status": "stable",
17584
+ "level": "atom",
17411
17585
  "description": "Shows how far something has got, built on the `Progress` primitive (Base UI, `role=\"progressbar\"`): a 6px,\nfull-radius bar that fills its container (Dodo Nest Progress bar). Pass `value={null}` for an indeterminate\nbar, `segments` for a segmented bar such as the Payouts balance, or `steps` for one bar per step of a flow. Name it with a `ProgressLabel` child or\n`aria-label`; `ProgressLabel` and `ProgressValue` children sit in a row above the track. The fill eases to each\nnew value (`--motion-duration-slow`, no motion with reduced motion), and `completeLabel` announces the end,\nafter interior.dev's progress bar (https://www.interior.dev/docs/progress-bar).",
17412
17586
  "importPath": "@dodopayments/ui/progress",
17413
17587
  "exports": [
@@ -17607,6 +17781,7 @@
17607
17781
  "title": "Quantity stepper",
17608
17782
  "category": "Forms",
17609
17783
  "status": "stable",
17784
+ "level": "atom",
17610
17785
  "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`.",
17611
17786
  "importPath": "@dodopayments/ui/quantity-stepper",
17612
17787
  "exports": [
@@ -17838,7 +18013,8 @@
17838
18013
  "title": "Link",
17839
18014
  "category": "Navigation",
17840
18015
  "status": "stable",
17841
- "description": "Navigates somewhere (Dodo Nest Link). `inline` underlines words inside a sentence and wraps with it;\n`entity` has no underline and a trailing arrow, for “View all” and IDs, and truncates on one line.\nBlue (`accent`) by default, red (`error`) next to a destructive or warning message. An inline link takes\nthe size of its sentence; an entity link is always 14. Keep the full stop outside the link.\n\nRenders an `<a>`; pass a router link through `render` (`render={<NextLink href=\"/payments\" />}`) to\nkeep client-side navigation.",
18016
+ "level": "atom",
18017
+ "description": "Navigates somewhere (Dodo Nest Link). `inline` underlines words inside a sentence and wraps with it;\n`entity` has no underline and a trailing arrow, for “View all” and IDs, and truncates on one line.\nBlue (`accent`) by default, red (`error`) next to a destructive or warning message. An inline link takes\nthe size of its sentence; an entity link is always 12. Keep the full stop outside the link.\n\nRenders an `<a>`; pass a router link through `render` (`render={<NextLink href=\"/payments\" />}`) to\nkeep client-side navigation.",
17842
18018
  "importPath": "@dodopayments/ui/link",
17843
18019
  "exports": [
17844
18020
  "DODO_LINK_DEFAULT_VARIANTS",
@@ -17850,7 +18026,7 @@
17850
18026
  "parts": [
17851
18027
  {
17852
18028
  "name": "Link",
17853
- "description": "Navigates somewhere (Dodo Nest Link). `inline` underlines words inside a sentence and wraps with it;\n`entity` has no underline and a trailing arrow, for “View all” and IDs, and truncates on one line.\nBlue (`accent`) by default, red (`error`) next to a destructive or warning message. An inline link takes\nthe size of its sentence; an entity link is always 14. Keep the full stop outside the link.\n\nRenders an `<a>`; pass a router link through `render` (`render={<NextLink href=\"/payments\" />}`) to\nkeep client-side navigation.",
18029
+ "description": "Navigates somewhere (Dodo Nest Link). `inline` underlines words inside a sentence and wraps with it;\n`entity` has no underline and a trailing arrow, for “View all” and IDs, and truncates on one line.\nBlue (`accent`) by default, red (`error`) next to a destructive or warning message. An inline link takes\nthe size of its sentence; an entity link is always 12. Keep the full stop outside the link.\n\nRenders an `<a>`; pass a router link through `render` (`render={<NextLink href=\"/payments\" />}`) to\nkeep client-side navigation.",
17854
18030
  "props": [
17855
18031
  {
17856
18032
  "name": "external",
@@ -17899,7 +18075,7 @@
17899
18075
  },
17900
18076
  {
17901
18077
  "value": "entity",
17902
- "description": "Labels/Primary (14) and a 16 trailing arrow, for “View all” and IDs that open a page. No underline until hover, when it fades in under the label. Keeps one line and truncates."
18078
+ "description": "Labels/Secondary (12) and a 12 trailing arrow, for “View all” and IDs that open a page. No underline until hover, when it fades in under the label. Keeps one line and truncates."
17903
18079
  }
17904
18080
  ],
17905
18081
  "default": "\"inline\""
@@ -17931,6 +18107,7 @@
17931
18107
  "title": "Logo",
17932
18108
  "category": "Brand",
17933
18109
  "status": "stable",
18110
+ "level": "atom",
17934
18111
  "description": "The Dodo Payments logo (mark, wordmark or lockup) drawn as inline SVG. Size steps, colours and\nclear space are built in, so the artwork cannot be stretched, recoloured or crowded. It is an\nimage named \"Dodo Payments\" unless `decorative` hides it from assistive technology.",
17935
18112
  "importPath": "@dodopayments/ui/logo",
17936
18113
  "exports": [
@@ -18069,6 +18246,7 @@
18069
18246
  "title": "Rich text editor",
18070
18247
  "category": "Forms",
18071
18248
  "status": "stable",
18249
+ "level": "molecule",
18072
18250
  "description": "Formatted text field for product and collection descriptions, stored as markdown (Dodo Nest Rich text editor).\nA Surface/Primary frame with a 1px Border/Primary and a 12px radius; the grey strip on top holds the text style\nmenu (Paragraph, Heading 1–3), bold, italic, underline and text colour, then strikethrough, lists and quote. The\nbody is a WYSIWYG editor (Tiptap): text shows formatted as you type, the toolbar formats the selection or the\ncurrent block, and Cmd/Ctrl+B, I, U and undo / redo work. It grows with its content (padding 12, at least 120\ntall). A format that is on at the selection shows pressed. Focus draws the Border/Brand-primary ring and the focus\nhalo. `value` stays markdown, with `<u>…</u>` underline and `<span data-color=\"…\">` colour, so `RichTextContent`\nrenders it. Put it in a `Field`: the label focuses it and the description and error describe it.",
18073
18251
  "importPath": "@dodopayments/ui/rich-text-editor",
18074
18252
  "exports": [
@@ -18316,6 +18494,7 @@
18316
18494
  "title": "Pagination",
18317
18495
  "category": "Navigation",
18318
18496
  "status": "stable",
18497
+ "level": "organism",
18319
18498
  "description": "Moves through the rows of a table (Dodo Nest Pagination): an optional \"Rows per page\" select, the\nrange label (\"Viewing (1 – 10)\", or \"Page 12\" where the total is unknown) and previous / next arrows, with\noptional first / last page buttons around them (`onFirst`, `onLast`).\nPlace it 16 below the table; it fills the table's width. The arrow that cannot go further is\ndisabled, not hidden. When the row is too narrow the range and arrows wrap under the select.\n\nIt holds no state: pass the range, `hasPrevious` / `hasNext` and the handlers. For TanStack tables use\n`DataGridPagination`, which works them out from the table.",
18320
18499
  "importPath": "@dodopayments/ui/pagination",
18321
18500
  "exports": [
@@ -18444,7 +18623,8 @@
18444
18623
  "title": "App top bar",
18445
18624
  "category": "Navigation",
18446
18625
  "status": "stable",
18447
- "description": "The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command\npalette), Dodo Games, Milestones (Setup guide while the business is setting up), Dodo AI, chat, theme,\nnotifications and the account on the right. Below a 672px bar it collapses: a menu button opens the sidebar,\nsearch becomes an icon and Games, Milestones or Setup guide, Dodo AI, chat and theme move into a ••• Menu. It has no fill: put it first in the main panel.",
18626
+ "level": "organism",
18627
+ "description": "The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command\npalette), Dodo Games, Milestones (Setup guide while the business is setting up), Dodo AI, chat, theme,\nnotifications and the account on the right. Below a 672px bar it collapses as old-main's phone bar: a menu button opens the sidebar,\nsearch becomes an icon, Setup guide, Dodo AI and chat stay as buttons, Games and Milestones leave the bar and the\ntheme moves into the account menu (`AppTopBarThemeItem`). It has no fill: put it first in the main panel.",
18448
18628
  "importPath": "@dodopayments/ui/app-top-bar",
18449
18629
  "exports": [
18450
18630
  "AppTopBar",
@@ -18456,6 +18636,8 @@
18456
18636
  "AppTopBarProps",
18457
18637
  "AppTopBarSupportItem",
18458
18638
  "AppTopBarSupportItemProps",
18639
+ "AppTopBarThemeItem",
18640
+ "AppTopBarThemeItemProps",
18459
18641
  "AppTopBarUser",
18460
18642
  "DODO_APP_TOP_BAR_DEFAULT_VARIANTS",
18461
18643
  "DODO_APP_TOP_BAR_VARIANTS"
@@ -18463,7 +18645,7 @@
18463
18645
  "parts": [
18464
18646
  {
18465
18647
  "name": "AppTopBar",
18466
- "description": "The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command\npalette), Dodo Games, Milestones (Setup guide while the business is setting up), Dodo AI, chat, theme,\nnotifications and the account on the right. Below a 672px bar it collapses: a menu button opens the sidebar,\nsearch becomes an icon and Games, Milestones or Setup guide, Dodo AI, chat and theme move into a ••• Menu. It has no fill: put it first in the main panel.",
18648
+ "description": "The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command\npalette), Dodo Games, Milestones (Setup guide while the business is setting up), Dodo AI, chat, theme,\nnotifications and the account on the right. Below a 672px bar it collapses as old-main's phone bar: a menu button opens the sidebar,\nsearch becomes an icon, Setup guide, Dodo AI and chat stay as buttons, Games and Milestones leave the bar and the\ntheme moves into the account menu (`AppTopBarThemeItem`). It has no fill: put it first in the main panel.",
18467
18649
  "props": [
18468
18650
  {
18469
18651
  "name": "account",
@@ -18745,6 +18927,20 @@
18745
18927
  "source": "dodo"
18746
18928
  }
18747
18929
  ]
18930
+ },
18931
+ {
18932
+ "name": "AppTopBarThemeItem",
18933
+ "description": "Old-main's theme item for the account menu on the mobile row, where the bar has no theme toggle: a moon and\n\"Dark mode\" in light, a sun and \"Light mode\" in dark. Put it in `account` where it belongs; it renders nothing\non desktop.",
18934
+ "props": [
18935
+ {
18936
+ "name": "labels",
18937
+ "type": "{ dark?: string | undefined; light?: string | undefined; }",
18938
+ "required": false,
18939
+ "default": "{ dark: \"Dark mode\", light: \"Light mode\" }",
18940
+ "description": "",
18941
+ "source": "dodo"
18942
+ }
18943
+ ]
18748
18944
  }
18749
18945
  ],
18750
18946
  "examples": [
@@ -18772,6 +18968,7 @@
18772
18968
  "title": "Radio Group",
18773
18969
  "category": "Forms",
18774
18970
  "status": "stable",
18971
+ "level": "atom",
18775
18972
  "description": "A set of mutually exclusive options: exactly one `Radio` can be selected. Built on the primitives\nRadioGroup (Base UI, `role=\"radiogroup\"`): Tab moves focus into the group and arrow keys move the\nselection. Name it with `aria-labelledby` or `aria-label`; with `name` the selected `value` is\nsubmitted with the surrounding form. Options stack in a column; pass `flex-row flex-wrap` to lay them\nout in a row. On coarse pointers (touch) the gap between options grows to 32px so the 44px touch\ntargets of neighbouring radios never overlap; override it with `pointer-coarse:gap-*`.\nA clicked option's dot springs in and the previous one fades out; selection with the keyboard\n(arrow keys, Space) switches the dot instantly.",
18776
18973
  "importPath": "@dodopayments/ui/radio-group",
18777
18974
  "exports": [
@@ -19075,6 +19272,7 @@
19075
19272
  "title": "Select",
19076
19273
  "category": "Forms",
19077
19274
  "status": "stable",
19275
+ "level": "molecule",
19078
19276
  "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).",
19079
19277
  "importPath": "@dodopayments/ui/select",
19080
19278
  "exports": [
@@ -19648,222 +19846,1072 @@
19648
19846
  "docsUrl": "/components/select"
19649
19847
  },
19650
19848
  {
19651
- "slug": "sheet",
19652
- "title": "Sheet",
19653
- "category": "Overlays",
19654
- "status": "stable",
19655
- "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.",
19656
- "importPath": "@dodopayments/ui/sheet",
19849
+ "slug": "combobox",
19850
+ "title": "Combobox",
19851
+ "category": "Forms",
19852
+ "status": "beta",
19853
+ "level": "atom",
19854
+ "description": "Internal: the engine of `Select` with `searchable` or `multiple`, and of `Input type=\"chips\"` with `suggestions`.\nRoot of a searchable select (primitive `Combobox`): users filter `items` by typing and pick one value,\nor several with `multiple`. Items shaped `{ value, label }` show their label in the input; for\nother shapes pass `itemToStringLabel`.",
19855
+ "importPath": "@dodopayments/ui/combobox",
19657
19856
  "exports": [
19658
- "DODO_SHEET_DEFAULT_VARIANTS",
19659
- "DODO_SHEET_SIZE_DEFAULT_VARIANTS",
19660
- "DODO_SHEET_SIZE_VARIANTS",
19661
- "DODO_SHEET_VARIANTS",
19662
- "Sheet",
19663
- "SheetClose",
19664
- "SheetCloseProps",
19665
- "SheetContent",
19666
- "SheetContentProps",
19667
- "SheetDescription",
19668
- "SheetDescriptionProps",
19669
- "SheetFooter",
19670
- "SheetHeader",
19671
- "SheetHeaderProps",
19672
- "SheetOverlay",
19673
- "SheetOverlayProps",
19674
- "SheetPanel",
19675
- "SheetPortal",
19676
- "SheetProps",
19677
- "SheetTitle",
19678
- "SheetTitleProps",
19679
- "SheetTrigger",
19680
- "SheetTriggerProps",
19681
- "sheetVariants"
19857
+ "Combobox",
19858
+ "ComboboxChip",
19859
+ "ComboboxChipProps",
19860
+ "ComboboxChips",
19861
+ "ComboboxChipsInput",
19862
+ "ComboboxChipsInputProps",
19863
+ "ComboboxChipsPresence",
19864
+ "ComboboxChipsPresenceProps",
19865
+ "ComboboxChipsProps",
19866
+ "ComboboxContent",
19867
+ "ComboboxContentProps",
19868
+ "ComboboxEmpty",
19869
+ "ComboboxEmptyProps",
19870
+ "ComboboxGroup",
19871
+ "ComboboxGroupLabel",
19872
+ "ComboboxGroupLabelProps",
19873
+ "ComboboxGroupProps",
19874
+ "ComboboxInput",
19875
+ "ComboboxInputProps",
19876
+ "ComboboxItem",
19877
+ "ComboboxItemProps",
19878
+ "ComboboxLabel",
19879
+ "ComboboxLabelProps",
19880
+ "ComboboxList",
19881
+ "ComboboxListProps",
19882
+ "ComboboxPositionerProps",
19883
+ "ComboboxProps",
19884
+ "ComboboxSeparator",
19885
+ "ComboboxSeparatorProps",
19886
+ "ComboboxTrigger",
19887
+ "ComboboxTriggerProps",
19888
+ "ComboboxValue"
19682
19889
  ],
19683
19890
  "parts": [
19684
19891
  {
19685
- "name": "SheetContent",
19686
- "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.",
19892
+ "name": "Combobox",
19893
+ "description": "Internal: the engine of `Select` with `searchable` or `multiple`, and of `Input type=\"chips\"` with `suggestions`.\nRoot of a searchable select (primitive `Combobox`): users filter `items` by typing and pick one value,\nor several with `multiple`. Items shaped `{ value, label }` show their label in the input; for\nother shapes pass `itemToStringLabel`.",
19687
19894
  "props": [
19688
19895
  {
19689
- "name": "className",
19690
- "type": "string",
19896
+ "name": "actionsRef",
19897
+ "type": "RefObject<Actions | null>",
19691
19898
  "required": false,
19692
- "description": "Additional Tailwind classes, merged last.",
19693
- "source": "dodo"
19899
+ "description": "A ref to imperative actions.\n- `unmount`: Manually unmounts the combobox.\nCall this after any externally controlled closing animation finishes.",
19900
+ "source": "base-ui"
19694
19901
  },
19695
19902
  {
19696
- "name": "closeLabel",
19903
+ "name": "autoComplete",
19697
19904
  "type": "string",
19698
19905
  "required": false,
19699
- "default": "\"Close\"",
19700
- "description": "Accessible label for the close button.",
19701
- "source": "dodo"
19906
+ "description": "Provides a hint to the browser for autofill.",
19907
+ "source": "base-ui"
19702
19908
  },
19703
19909
  {
19704
- "name": "hideCloseButton",
19910
+ "name": "autoHighlight",
19705
19911
  "type": "boolean",
19706
19912
  "required": false,
19707
19913
  "default": "false",
19708
- "description": "Hide the close button. Keep a visible way to close the sheet, e.g. a `SheetClose`.",
19709
- "source": "dodo"
19914
+ "description": "Whether the first matching item is highlighted automatically while filtering.",
19915
+ "source": "base-ui"
19710
19916
  },
19711
19917
  {
19712
- "name": "portalProps",
19713
- "type": "DialogPortalProps",
19918
+ "name": "defaultInputValue",
19919
+ "type": "string | number | readonly string[]",
19714
19920
  "required": false,
19715
- "description": "Props for the portal, e.g. a `container` to render the sheet into instead of `document.body`.",
19716
- "source": "dodo"
19921
+ "description": "The uncontrolled input value when initially rendered.\n\nTo render a controlled input, use the `inputValue` prop instead.",
19922
+ "source": "base-ui"
19717
19923
  },
19718
19924
  {
19719
- "name": "size",
19720
- "type": "\"md\" | \"lg\" | \"xl\"",
19925
+ "name": "defaultOpen",
19926
+ "type": "boolean",
19721
19927
  "required": false,
19722
- "description": "",
19723
- "source": "dodo",
19724
- "values": [
19725
- {
19726
- "value": "md",
19727
- "description": "400 wide: short forms and details. The default."
19728
- },
19729
- {
19730
- "value": "lg",
19731
- "description": "560 wide: longer forms. Side sheets only."
19732
- },
19733
- {
19734
- "value": "xl",
19735
- "description": "768 wide: a form with a code editor or a long checklist, such as a webhook endpoint. Side sheets only."
19736
- }
19737
- ],
19738
- "default": "\"md\""
19928
+ "default": "false",
19929
+ "description": "Whether the popup is initially open.\n\nTo render a controlled popup, use the `open` prop instead.",
19930
+ "source": "base-ui"
19739
19931
  },
19740
19932
  {
19741
- "name": "type",
19742
- "type": "\"side\" | \"full\"",
19933
+ "name": "defaultValue",
19934
+ "type": "ComboboxValueType<Value, Multiple> | null",
19743
19935
  "required": false,
19744
- "description": "",
19745
- "source": "dodo",
19746
- "values": [
19747
- {
19748
- "value": "side",
19749
- "description": "A side panel for a task or record that keeps the page in view: refund, dispute, edit customer, new API key."
19750
- },
19751
- {
19752
- "value": "full",
19753
- "description": "Full screen for long multi-step flows (add bank account, verification): back, title, progress and close on top, a 664 column of Card sections, the actions below."
19754
- }
19755
- ],
19756
- "default": "\"side\""
19936
+ "description": "The uncontrolled selected value of the combobox when it's initially rendered.\n\nTo render a controlled combobox, use the `value` prop instead.",
19937
+ "source": "base-ui"
19757
19938
  },
19758
19939
  {
19759
- "name": "finalFocus",
19760
- "type": "boolean | RefObject<HTMLElement | null> | ((closeType: InteractionType) => boolean | void | HTMLElement | null)",
19940
+ "name": "disabled",
19941
+ "type": "boolean",
19761
19942
  "required": false,
19762
- "description": "Determines the element to focus when the dialog 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, `null` to fall back to the default behavior, or `false`/`undefined` to do nothing.",
19943
+ "default": "false",
19944
+ "description": "Whether the component should ignore user interaction.",
19763
19945
  "source": "base-ui"
19764
19946
  },
19765
19947
  {
19766
- "name": "initialFocus",
19767
- "type": "boolean | RefObject<HTMLElement | null> | ((openType: InteractionType) => boolean | void | HTMLElement | null)",
19948
+ "name": "filter",
19949
+ "type": "((item: Item, query: string, itemToString?: ((item: Item) => string) | undefined) => boolean) | null",
19768
19950
  "required": false,
19769
- "description": "Determines the element to focus when the dialog is opened.\nBy default, focus moves to the first tabbable element inside the popup, except when the dialog\nis opened by touch, then the popup itself is focused to avoid opening the virtual keyboard.\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, `null` to fall back to the default behavior, or `false`/`undefined` to do nothing.",
19951
+ "description": "Filter function used to match items vs input query.\nReceives the source item, which is the derived value's item when `items` is a `createItems()`\ncollection, and the item itself otherwise.",
19770
19952
  "source": "base-ui"
19771
19953
  },
19772
19954
  {
19773
- "name": "render",
19774
- "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, DialogPopupState>",
19955
+ "name": "filteredItems",
19956
+ "type": "readonly Item[] | readonly Group<Item>[]",
19775
19957
  "required": false,
19776
- "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.",
19958
+ "description": "Filtered items to display in the list.\nWhen provided, the list uses these items instead of filtering the `items` prop internally.\nWhen `items` is also provided, this array must preserve its flat or grouped structure.\nWith a `createItems()` collection, pass source items rather than derived values.\nNullish entries are not supported, as in `items`.\nUse when you want to control filtering logic externally with the `useFilter()` hook.",
19777
19959
  "source": "base-ui"
19778
- }
19779
- ]
19780
- },
19781
- {
19782
- "name": "Sheet",
19783
- "description": "Root of a sheet: a modal side panel (the `Sheet` primitive on Base UI Dialog). Controls open state\n(`open`/`onOpenChange` or `defaultOpen`).",
19784
- "props": [
19960
+ },
19785
19961
  {
19786
- "name": "actionsRef",
19787
- "type": "RefObject<DialogRootActions | null>",
19962
+ "name": "form",
19963
+ "type": "string",
19788
19964
  "required": false,
19789
- "description": "A ref to imperative actions.\n- `unmount`: Manually unmounts the dialog.\nCall this after any externally controlled closing animation finishes.\n- `close`: Closes the dialog imperatively when called.",
19965
+ "description": "Identifies the form that owns the internal input.\nUseful when the combobox is rendered outside the form.",
19790
19966
  "source": "base-ui"
19791
19967
  },
19792
19968
  {
19793
- "name": "defaultOpen",
19969
+ "name": "grid",
19794
19970
  "type": "boolean",
19795
19971
  "required": false,
19796
19972
  "default": "false",
19797
- "description": "Whether the dialog is initially open.\n\nTo render a controlled dialog, use the `open` prop instead.",
19973
+ "description": "Whether list items are presented in a grid layout.\nWhen enabled, arrow keys navigate across rows and columns inferred from DOM rows.",
19798
19974
  "source": "base-ui"
19799
19975
  },
19800
19976
  {
19801
- "name": "defaultTriggerId",
19802
- "type": "string | null",
19977
+ "name": "highlightItemOnHover",
19978
+ "type": "boolean",
19803
19979
  "required": false,
19804
- "description": "ID of the trigger that the dialog is associated with.\nThis is useful in conjunction with the `defaultOpen` prop to create an initially open dialog.",
19980
+ "default": "true",
19981
+ "description": "Whether moving the pointer over items should highlight them.\nDisabling this prop allows CSS `:hover` to be differentiated from the `:focus` (`data-highlighted`) state.",
19805
19982
  "source": "base-ui"
19806
19983
  },
19807
19984
  {
19808
- "name": "disablePointerDismissal",
19985
+ "name": "id",
19986
+ "type": "string",
19987
+ "required": false,
19988
+ "description": "The id of the component.",
19989
+ "source": "base-ui"
19990
+ },
19991
+ {
19992
+ "name": "inline",
19809
19993
  "type": "boolean",
19810
19994
  "required": false,
19811
19995
  "default": "false",
19812
- "description": "Whether to prevent the dialog from closing on outside presses.\nFor non-modal dialogs, this also prevents the dialog from closing when focus moves outside of it.",
19996
+ "description": "Whether the list is rendered inline without using the component's own popup.\n\nSpecify `open` unconditionally in conjunction with this prop so the list is considered\nvisible: `<Combobox.Root inline open>`\n\nIn a `Combobox.Root` > `Dialog.Root` composition, bind the Combobox's `open` and\n`onOpenChange` props to the `Dialog`'s `open` and `onOpenChange` state instead so the\ncomponent resets its transient state (filter query, highlighted item, and input value) when\nthe dialog closes.",
19813
19997
  "source": "base-ui"
19814
19998
  },
19815
19999
  {
19816
- "name": "handle",
19817
- "type": "DialogHandle<Payload>",
20000
+ "name": "inputRef",
20001
+ "type": "Ref<HTMLInputElement>",
19818
20002
  "required": false,
19819
- "description": "A handle to associate the dialog with a trigger.\nIf specified, allows external triggers to control the dialog's open state.\nCan be created with the Dialog.createHandle() method.",
20003
+ "description": "A ref to the hidden input element.",
19820
20004
  "source": "base-ui"
19821
20005
  },
19822
20006
  {
19823
- "name": "modal",
19824
- "type": "boolean | \"trap-focus\"",
20007
+ "name": "inputValue",
20008
+ "type": "string | number | readonly string[]",
19825
20009
  "required": false,
19826
- "default": "true",
19827
- "description": "Determines if the dialog enters a modal state when open.\n- `true`: user interaction is limited to just the dialog: 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 dialog, but document page scroll is not locked and pointer interactions outside of it remain enabled.\n\nWhen `modal` is `true` or `'trap-focus'`, render `<Dialog.Close>` inside `<Dialog.Popup>` so\ntouch screen readers can escape the popup.",
20010
+ "description": "The input value of the combobox. Use when controlled.",
19828
20011
  "source": "base-ui"
19829
20012
  },
19830
20013
  {
19831
- "name": "onOpenChange",
19832
- "type": "((open: boolean, eventDetails: DialogRootChangeEventDetails) => void)",
20014
+ "name": "isItemEqualToValue",
20015
+ "type": "((itemValue: Value, value: Value) => boolean)",
19833
20016
  "required": false,
19834
- "description": "Event handler called when the dialog is opened or closed.",
20017
+ "description": "Custom comparison logic used to determine if a combobox item value matches the current selected value. Useful when item values are objects without matching referentially.\nWith a `createItems()` collection, both arguments are derived values.\nDefaults to `Object.is` comparison.",
19835
20018
  "source": "base-ui"
19836
20019
  },
19837
20020
  {
19838
- "name": "onOpenChangeComplete",
19839
- "type": "((open: boolean) => void)",
20021
+ "name": "itemToStringLabel",
20022
+ "type": "((itemValue: Value) => string)",
19840
20023
  "required": false,
19841
- "description": "Event handler called after any animations complete when the dialog is opened or closed.",
20024
+ "description": "When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for display in the input.\nIf the shape of the object is `{ value, label }`, the label will be used automatically without needing to specify this prop.\nWith a `createItems()` collection, this receives the derived value, and the collection's\n`getLabel` takes precedence for values it can resolve.",
19842
20025
  "source": "base-ui"
19843
20026
  },
19844
20027
  {
19845
- "name": "open",
19846
- "type": "boolean",
20028
+ "name": "itemToStringValue",
20029
+ "type": "((itemValue: Value) => string)",
19847
20030
  "required": false,
19848
- "description": "Whether the dialog is currently open.",
20031
+ "description": "When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for form submission.\nIf the shape of the object is `{ value, label }`, the value will be used automatically without needing to specify this prop.\nWith a `createItems()` collection, this receives the derived value.",
19849
20032
  "source": "base-ui"
19850
20033
  },
19851
20034
  {
19852
- "name": "triggerId",
19853
- "type": "string | null",
20035
+ "name": "items",
20036
+ "type": "readonly any[] | readonly Group<any>[] | ComboboxItemCollection<Item, Value>",
19854
20037
  "required": false,
19855
- "description": "ID of the trigger that the dialog is associated with.\nThis is useful in conjunction with the `open` prop to create a controlled dialog.\nThere's no need to specify this prop when the dialog is uncontrolled (that is, when the `open` prop is not set).",
20038
+ "description": "The items to be displayed in the list.\nCan be a flat array of items, an array of groups with items, or a collection created by\nthe `createItems()` function, which derives each item's selection value and label.\nNullish entries are not supported: remove them from the data before passing it.",
19856
20039
  "source": "base-ui"
19857
- }
19858
- ]
19859
- },
19860
- {
19861
- "name": "SheetClose",
19862
- "description": "Closes the sheet. Use `render={<Button variant=\"secondary\" />}` for a footer action.",
19863
- "props": [
20040
+ },
19864
20041
  {
19865
- "name": "className",
19866
- "type": "string",
20042
+ "name": "limit",
20043
+ "type": "number",
20044
+ "required": false,
20045
+ "default": "-1",
20046
+ "description": "The maximum number of items to display in the list.",
20047
+ "source": "base-ui"
20048
+ },
20049
+ {
20050
+ "name": "locale",
20051
+ "type": "LocalesArgument",
20052
+ "required": false,
20053
+ "description": "The locale to use for string comparison.\nDefaults to the user's runtime locale.",
20054
+ "source": "base-ui"
20055
+ },
20056
+ {
20057
+ "name": "loopFocus",
20058
+ "type": "boolean",
20059
+ "required": false,
20060
+ "default": "true",
20061
+ "description": "Whether to loop keyboard focus back to the input when the end of the list is reached while using the arrow keys. The first item can then be reached by pressing <kbd>ArrowDown</kbd> again from the input, or the last item can be reached by pressing <kbd>ArrowUp</kbd> from the input.\nThe input is always included in the focus loop per [ARIA Authoring Practices](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/).\nWhen disabled, focus does not move when on the last element and the user presses <kbd>ArrowDown</kbd>, or when on the first element and the user presses <kbd>ArrowUp</kbd>.",
20062
+ "source": "base-ui"
20063
+ },
20064
+ {
20065
+ "name": "modal",
20066
+ "type": "boolean",
20067
+ "required": false,
20068
+ "default": "false",
20069
+ "description": "Determines if the popup enters a modal state when open.\n- `true`: user interaction is limited to the popup: 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\nOn touch devices, a `true` modal blocks outside taps but leaves the page scrollable unless the popup spans nearly the full viewport width, matching native iOS behavior.",
20070
+ "source": "base-ui"
20071
+ },
20072
+ {
20073
+ "name": "multiple",
20074
+ "type": "Multiple",
20075
+ "required": false,
20076
+ "default": "false",
20077
+ "description": "Whether multiple items can be selected.",
20078
+ "source": "base-ui"
20079
+ },
20080
+ {
20081
+ "name": "name",
20082
+ "type": "string",
20083
+ "required": false,
20084
+ "description": "Identifies the field when a form is submitted.",
20085
+ "source": "base-ui"
20086
+ },
20087
+ {
20088
+ "name": "onInputValueChange",
20089
+ "type": "((inputValue: string, eventDetails: ChangeEventDetails) => void)",
20090
+ "required": false,
20091
+ "description": "Event handler called when the input value changes.",
20092
+ "source": "base-ui"
20093
+ },
20094
+ {
20095
+ "name": "onItemHighlighted",
20096
+ "type": "((highlightedValue: Value | undefined, eventDetails: HighlightEventDetails) => void)",
20097
+ "required": false,
20098
+ "description": "Callback fired when an item is highlighted or unhighlighted.\nReceives the highlighted item value (or `undefined` if no item is highlighted) and event details with a `reason` property describing why the highlight changed.\nThe `reason` can be:\n- `'keyboard'`: the highlight changed due to keyboard navigation.\n- `'pointer'`: the highlight changed due to pointer hovering.\n- `'none'`: the highlight changed programmatically.",
20099
+ "source": "base-ui"
20100
+ },
20101
+ {
20102
+ "name": "onOpenChange",
20103
+ "type": "((open: boolean, eventDetails: ChangeEventDetails) => void)",
20104
+ "required": false,
20105
+ "description": "Event handler called when the popup is opened or closed.",
20106
+ "source": "base-ui"
20107
+ },
20108
+ {
20109
+ "name": "onOpenChangeComplete",
20110
+ "type": "((open: boolean) => void)",
20111
+ "required": false,
20112
+ "description": "Event handler called after any animations complete when the popup is opened or closed.",
20113
+ "source": "base-ui"
20114
+ },
20115
+ {
20116
+ "name": "onValueChange",
20117
+ "type": "((value: ComboboxValueType<Value, Multiple> | (Multiple extends true ? never : null), eventDetails: ChangeEventDetails) => void)",
20118
+ "required": false,
20119
+ "description": "Event handler called when the selected value of the combobox changes.",
20120
+ "source": "base-ui"
20121
+ },
20122
+ {
20123
+ "name": "open",
20124
+ "type": "boolean",
20125
+ "required": false,
20126
+ "description": "Whether the popup is currently open. Use when controlled.",
20127
+ "source": "base-ui"
20128
+ },
20129
+ {
20130
+ "name": "openOnInputClick",
20131
+ "type": "boolean",
20132
+ "required": false,
20133
+ "default": "true",
20134
+ "description": "Whether the popup opens when clicking the input.",
20135
+ "source": "base-ui"
20136
+ },
20137
+ {
20138
+ "name": "readOnly",
20139
+ "type": "boolean",
20140
+ "required": false,
20141
+ "default": "false",
20142
+ "description": "Whether the user should be unable to choose a different option from the popup.",
20143
+ "source": "base-ui"
20144
+ },
20145
+ {
20146
+ "name": "required",
20147
+ "type": "boolean",
20148
+ "required": false,
20149
+ "default": "false",
20150
+ "description": "Whether the user must choose a value before submitting a form.",
20151
+ "source": "base-ui"
20152
+ },
20153
+ {
20154
+ "name": "value",
20155
+ "type": "ComboboxValueType<Value, Multiple> | null",
20156
+ "required": false,
20157
+ "description": "The selected value of the combobox. Use when controlled.",
20158
+ "source": "base-ui"
20159
+ },
20160
+ {
20161
+ "name": "virtualized",
20162
+ "type": "boolean",
20163
+ "required": false,
20164
+ "default": "false",
20165
+ "description": "Whether the items are being externally virtualized.",
20166
+ "source": "base-ui"
20167
+ }
20168
+ ]
20169
+ },
20170
+ {
20171
+ "name": "ComboboxChip",
20172
+ "description": "One selected value inside `ComboboxChips` (primitive `ComboboxChip`), with a remove button.",
20173
+ "props": [
20174
+ {
20175
+ "name": "className",
20176
+ "type": "string",
20177
+ "required": false,
20178
+ "description": "Additional Tailwind classes, merged last.",
20179
+ "source": "dodo"
20180
+ },
20181
+ {
20182
+ "name": "removeLabel",
20183
+ "type": "string",
20184
+ "required": false,
20185
+ "description": "Accessible name of the remove button. Defaults to `Remove <label>` for string labels, else `Remove`.",
20186
+ "source": "dodo"
20187
+ },
20188
+ {
20189
+ "name": "showRemove",
20190
+ "type": "boolean",
20191
+ "required": false,
20192
+ "default": "true",
20193
+ "description": "Render a remove button after the label.",
20194
+ "source": "dodo"
20195
+ },
20196
+ {
20197
+ "name": "render",
20198
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxChipState>",
20199
+ "required": false,
20200
+ "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.",
20201
+ "source": "base-ui"
20202
+ }
20203
+ ]
20204
+ },
20205
+ {
20206
+ "name": "ComboboxChips",
20207
+ "description": "Field for `multiple` selection (primitive `ComboboxChips`): wraps the selected `ComboboxChip`s and a\n`ComboboxChipsInput`, usually rendered from a `ComboboxValue` function. Rows wrap as chips are\nadded; the list is anchored to it. Chips animate like `TagInput`: a new chip scales in and the\nothers reflow. Wrap the chips in `ComboboxChipsPresence` so a removed chip also fades out.",
20208
+ "props": [
20209
+ {
20210
+ "name": "className",
20211
+ "type": "string",
20212
+ "required": false,
20213
+ "description": "Classes for the field-styled box around the chips and the input.",
20214
+ "source": "dodo"
20215
+ },
20216
+ {
20217
+ "name": "startAddon",
20218
+ "type": "ReactNode",
20219
+ "required": false,
20220
+ "description": "Icon or text shown before the chips.",
20221
+ "source": "dodo"
20222
+ },
20223
+ {
20224
+ "name": "render",
20225
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxChipsState>",
20226
+ "required": false,
20227
+ "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.",
20228
+ "source": "base-ui"
20229
+ }
20230
+ ]
20231
+ },
20232
+ {
20233
+ "name": "ComboboxChipsInput",
20234
+ "description": "The text input inside `ComboboxChips` (primitive `ComboboxChipsInput`). Fills the rest of the last row.",
20235
+ "props": [
20236
+ {
20237
+ "name": "className",
20238
+ "type": "string",
20239
+ "required": false,
20240
+ "description": "Additional Tailwind classes, merged last.",
20241
+ "source": "dodo"
20242
+ },
20243
+ {
20244
+ "name": "size",
20245
+ "type": "\"default\" | \"sm\" | \"lg\"",
20246
+ "required": false,
20247
+ "description": "Matches the chips box height, like `Input`.",
20248
+ "source": "dodo"
20249
+ },
20250
+ {
20251
+ "name": "disabled",
20252
+ "type": "boolean",
20253
+ "required": false,
20254
+ "default": "false",
20255
+ "description": "Whether the component should ignore user interaction.",
20256
+ "source": "base-ui"
20257
+ },
20258
+ {
20259
+ "name": "render",
20260
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxInputState>",
20261
+ "required": false,
20262
+ "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.",
20263
+ "source": "base-ui"
20264
+ }
20265
+ ]
20266
+ },
20267
+ {
20268
+ "name": "ComboboxChipsPresence",
20269
+ "description": "Keeps a removed `ComboboxChip` mounted while it fades out, so the other chips reflow around it (as in\n`TagInput`). Put it inside `ComboboxChips`, around the mapped chips only, not the input.",
20270
+ "props": []
20271
+ },
20272
+ {
20273
+ "name": "ComboboxContent",
20274
+ "description": "The floating panel (primitive `ComboboxPopup`). Holds `ComboboxEmpty` and `ComboboxList`, plus a\n`ComboboxInput` first when the input lives inside the popup. Anchored to the input group, the\nchips or the trigger by default.",
20275
+ "props": [
20276
+ {
20277
+ "name": "align",
20278
+ "type": "Align",
20279
+ "required": false,
20280
+ "description": "",
20281
+ "source": "dodo"
20282
+ },
20283
+ {
20284
+ "name": "alignOffset",
20285
+ "type": "number | OffsetFunction",
20286
+ "required": false,
20287
+ "description": "",
20288
+ "source": "dodo"
20289
+ },
20290
+ {
20291
+ "name": "anchor",
20292
+ "type": "Element | VirtualElement | RefObject<Element | null> | (() => Element | VirtualElement | null) | null",
20293
+ "required": false,
20294
+ "description": "",
20295
+ "source": "dodo"
20296
+ },
20297
+ {
20298
+ "name": "className",
20299
+ "type": "string",
20300
+ "required": false,
20301
+ "description": "Classes for the popup surface.",
20302
+ "source": "dodo"
20303
+ },
20304
+ {
20305
+ "name": "collisionAvoidance",
20306
+ "type": "CollisionAvoidance",
20307
+ "required": false,
20308
+ "description": "",
20309
+ "source": "dodo"
20310
+ },
20311
+ {
20312
+ "name": "portalProps",
20313
+ "type": "ComboboxPortalProps",
20314
+ "required": false,
20315
+ "description": "Props of the portal, e.g. `container` to render the list inside an element.",
20316
+ "source": "dodo"
20317
+ },
20318
+ {
20319
+ "name": "positionMethod",
20320
+ "type": "\"fixed\" | \"absolute\"",
20321
+ "required": false,
20322
+ "description": "",
20323
+ "source": "dodo"
20324
+ },
20325
+ {
20326
+ "name": "positionerProps",
20327
+ "type": "ComboboxPositionerProps",
20328
+ "required": false,
20329
+ "description": "Positioner options (side, align, offsets, anchor). Same as passing them directly.",
20330
+ "source": "dodo"
20331
+ },
20332
+ {
20333
+ "name": "side",
20334
+ "type": "Side",
20335
+ "required": false,
20336
+ "description": "",
20337
+ "source": "dodo"
20338
+ },
20339
+ {
20340
+ "name": "sideOffset",
20341
+ "type": "number | OffsetFunction",
20342
+ "required": false,
20343
+ "description": "",
20344
+ "source": "dodo"
20345
+ },
20346
+ {
20347
+ "name": "finalFocus",
20348
+ "type": "boolean | RefObject<HTMLElement | null> | ((closeType: InteractionType) => boolean | void | HTMLElement | null)",
20349
+ "required": false,
20350
+ "description": "Determines the element to focus when the popup 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.",
20351
+ "source": "base-ui"
20352
+ },
20353
+ {
20354
+ "name": "initialFocus",
20355
+ "type": "boolean | RefObject<HTMLElement | null> | ((openType: InteractionType) => boolean | void | HTMLElement | null)",
20356
+ "required": false,
20357
+ "description": "Determines the element to focus when the popup 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.",
20358
+ "source": "base-ui"
20359
+ },
20360
+ {
20361
+ "name": "render",
20362
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxPopupState>",
20363
+ "required": false,
20364
+ "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.",
20365
+ "source": "base-ui"
20366
+ }
20367
+ ]
20368
+ },
20369
+ {
20370
+ "name": "ComboboxEmpty",
20371
+ "description": "Message shown when filtering leaves no items (needs `items` on the root). The element stays\nmounted as a polite live region and renders its children only while the list is empty.",
20372
+ "props": [
20373
+ {
20374
+ "name": "className",
20375
+ "type": "string",
20376
+ "required": false,
20377
+ "description": "Additional Tailwind classes, merged last.",
20378
+ "source": "dodo"
20379
+ },
20380
+ {
20381
+ "name": "render",
20382
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxEmptyState>",
20383
+ "required": false,
20384
+ "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.",
20385
+ "source": "base-ui"
20386
+ }
20387
+ ]
20388
+ },
20389
+ {
20390
+ "name": "ComboboxGroup",
20391
+ "description": "A group of options. With grouped `items` (`{ value, items }[]`), pass the group's `items` here\nand render them with Base UI `Combobox.Collection`.",
20392
+ "props": [
20393
+ {
20394
+ "name": "className",
20395
+ "type": "string",
20396
+ "required": false,
20397
+ "description": "Additional Tailwind classes, merged last.",
20398
+ "source": "dodo"
20399
+ },
20400
+ {
20401
+ "name": "items",
20402
+ "type": "readonly any[]",
20403
+ "required": false,
20404
+ "description": "Items to be rendered within this group.\nWhen provided, child `Collection` components will use these items.",
20405
+ "source": "base-ui"
20406
+ },
20407
+ {
20408
+ "name": "render",
20409
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxGroupState>",
20410
+ "required": false,
20411
+ "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.",
20412
+ "source": "base-ui"
20413
+ }
20414
+ ]
20415
+ },
20416
+ {
20417
+ "name": "ComboboxGroupLabel",
20418
+ "description": "Heading for a `ComboboxGroup`.",
20419
+ "props": [
20420
+ {
20421
+ "name": "className",
20422
+ "type": "string",
20423
+ "required": false,
20424
+ "description": "Additional Tailwind classes, merged last.",
20425
+ "source": "dodo"
20426
+ },
20427
+ {
20428
+ "name": "render",
20429
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxGroupLabelState>",
20430
+ "required": false,
20431
+ "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.",
20432
+ "source": "base-ui"
20433
+ }
20434
+ ]
20435
+ },
20436
+ {
20437
+ "name": "ComboboxInput",
20438
+ "description": "The search field (primitive `ComboboxInput`): a text input with optional clear and caret buttons.\nOther props go to the `<input>`. The list is positioned against the whole group.",
20439
+ "props": [
20440
+ {
20441
+ "name": "className",
20442
+ "type": "string",
20443
+ "required": false,
20444
+ "description": "Classes for the field-styled control around the input (`data-slot=\"input-control\"`).",
20445
+ "source": "dodo"
20446
+ },
20447
+ {
20448
+ "name": "clearLabel",
20449
+ "type": "string",
20450
+ "required": false,
20451
+ "default": "\"Clear\"",
20452
+ "description": "Accessible name of the clear button.",
20453
+ "source": "dodo"
20454
+ },
20455
+ {
20456
+ "name": "showClear",
20457
+ "type": "boolean",
20458
+ "required": false,
20459
+ "default": "false",
20460
+ "description": "Show a button that clears the value. Base UI only mounts it while there is a value to clear.",
20461
+ "source": "dodo"
20462
+ },
20463
+ {
20464
+ "name": "showTrigger",
20465
+ "type": "boolean",
20466
+ "required": false,
20467
+ "default": "true",
20468
+ "description": "Show the caret button that opens and closes the list.",
20469
+ "source": "dodo"
20470
+ },
20471
+ {
20472
+ "name": "size",
20473
+ "type": "\"default\" | \"sm\" | \"lg\"",
20474
+ "required": false,
20475
+ "default": "\"default\"",
20476
+ "description": "Control height, like `Input`.",
20477
+ "source": "dodo"
20478
+ },
20479
+ {
20480
+ "name": "startAddon",
20481
+ "type": "ReactNode",
20482
+ "required": false,
20483
+ "description": "Icon or text shown inside the field before the input.",
20484
+ "source": "dodo"
20485
+ },
20486
+ {
20487
+ "name": "triggerLabel",
20488
+ "type": "string",
20489
+ "required": false,
20490
+ "default": "\"Show options\"",
20491
+ "description": "Accessible name of the caret button.",
20492
+ "source": "dodo"
20493
+ },
20494
+ {
20495
+ "name": "disabled",
20496
+ "type": "boolean",
20497
+ "required": false,
20498
+ "default": "false",
20499
+ "description": "Whether the component should ignore user interaction.",
20500
+ "source": "base-ui"
20501
+ },
20502
+ {
20503
+ "name": "render",
20504
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxInputState>",
20505
+ "required": false,
20506
+ "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.",
20507
+ "source": "base-ui"
20508
+ }
20509
+ ]
20510
+ },
20511
+ {
20512
+ "name": "ComboboxItem",
20513
+ "description": "One option (primitive `ComboboxItem`). `value` is what gets selected (usually the item object from\n`items`); children are the visible label. A check marks selected options.",
20514
+ "props": [
20515
+ {
20516
+ "name": "className",
20517
+ "type": "string",
20518
+ "required": false,
20519
+ "description": "Additional Tailwind classes, merged last.",
20520
+ "source": "dodo"
20521
+ },
20522
+ {
20523
+ "name": "description",
20524
+ "type": "ReactNode",
20525
+ "required": false,
20526
+ "description": "Secondary line shown under the label.",
20527
+ "source": "dodo"
20528
+ },
20529
+ {
20530
+ "name": "disabled",
20531
+ "type": "boolean",
20532
+ "required": false,
20533
+ "default": "false",
20534
+ "description": "Whether the component should ignore user interaction.",
20535
+ "source": "base-ui"
20536
+ },
20537
+ {
20538
+ "name": "index",
20539
+ "type": "number",
20540
+ "required": false,
20541
+ "description": "The index of the item in the list. Improves performance when specified by avoiding the need to calculate the index automatically from the DOM.",
20542
+ "source": "base-ui"
20543
+ },
20544
+ {
20545
+ "name": "nativeButton",
20546
+ "type": "boolean",
20547
+ "required": false,
20548
+ "default": "false",
20549
+ "description": "Whether the component renders a native `<button>` element when replacing it\nvia the `render` prop.\nSet to `true` if the rendered element is a native button.",
20550
+ "source": "base-ui"
20551
+ },
20552
+ {
20553
+ "name": "onClick",
20554
+ "type": "((event: BaseUIEvent<MouseEvent<HTMLDivElement, MouseEvent>>) => void)",
20555
+ "required": false,
20556
+ "description": "An optional click handler for the item when selected.\nIt fires when clicking the item with the pointer, as well as when pressing `Enter` with the keyboard if the item is highlighted when the `Input` or `List` element has focus.",
20557
+ "source": "base-ui"
20558
+ },
20559
+ {
20560
+ "name": "render",
20561
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxItemState>",
20562
+ "required": false,
20563
+ "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.",
20564
+ "source": "base-ui"
20565
+ },
20566
+ {
20567
+ "name": "value",
20568
+ "type": "any",
20569
+ "required": false,
20570
+ "default": "null",
20571
+ "description": "A unique value that identifies this item.",
20572
+ "source": "base-ui"
20573
+ }
20574
+ ]
20575
+ },
20576
+ {
20577
+ "name": "ComboboxLabel",
20578
+ "description": "Visible label for `ComboboxTrigger` (input-inside-popup pattern), styled as the `Label` primitive\n(the primitives have no combobox label). To label `ComboboxInput`, use a `<label htmlFor>` that points at the\ninput's `id`, or `aria-label`.",
20579
+ "props": [
20580
+ {
20581
+ "name": "className",
20582
+ "type": "string",
20583
+ "required": false,
20584
+ "description": "Additional Tailwind classes, merged last.",
20585
+ "source": "dodo"
20586
+ },
20587
+ {
20588
+ "name": "render",
20589
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxLabelState>",
20590
+ "required": false,
20591
+ "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.",
20592
+ "source": "base-ui"
20593
+ }
20594
+ ]
20595
+ },
20596
+ {
20597
+ "name": "ComboboxList",
20598
+ "description": "Scrollable list of options (primitive `ComboboxList`). Pass a render function,\n`(item) => <ComboboxItem …/>`, to render the root's `items` (filtered as the user types), or\nstatic children.",
20599
+ "props": [
20600
+ {
20601
+ "name": "className",
20602
+ "type": "string",
20603
+ "required": false,
20604
+ "description": "Additional Tailwind classes, merged last.",
20605
+ "source": "dodo"
20606
+ },
20607
+ {
20608
+ "name": "render",
20609
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxListState>",
20610
+ "required": false,
20611
+ "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.",
20612
+ "source": "base-ui"
20613
+ }
20614
+ ]
20615
+ },
20616
+ {
20617
+ "name": "ComboboxSeparator",
20618
+ "description": "Divider between groups.",
20619
+ "props": [
20620
+ {
20621
+ "name": "className",
20622
+ "type": "string",
20623
+ "required": false,
20624
+ "description": "Additional Tailwind classes, merged last.",
20625
+ "source": "dodo"
20626
+ },
20627
+ {
20628
+ "name": "orientation",
20629
+ "type": "Orientation",
20630
+ "required": false,
20631
+ "default": "'horizontal'",
20632
+ "description": "The orientation of the separator.",
20633
+ "source": "base-ui"
20634
+ },
20635
+ {
20636
+ "name": "render",
20637
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxSeparatorState>",
20638
+ "required": false,
20639
+ "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.",
20640
+ "source": "base-ui"
20641
+ }
20642
+ ]
20643
+ },
20644
+ {
20645
+ "name": "ComboboxTrigger",
20646
+ "description": "Select-like button for the input-inside-popup pattern: put a `ComboboxValue` inside and a\n`ComboboxInput` (with `showTrigger={false}`) at the top of `ComboboxContent`. Primitive leaves its\ntrigger unstyled; it is rendered as an outline primitive Button, the primitive pattern for this layout.",
20647
+ "props": [
20648
+ {
20649
+ "name": "className",
20650
+ "type": "string",
20651
+ "required": false,
20652
+ "description": "Additional Tailwind classes, merged last.",
20653
+ "source": "dodo"
20654
+ },
20655
+ {
20656
+ "name": "disabled",
20657
+ "type": "boolean",
20658
+ "required": false,
20659
+ "default": "false",
20660
+ "description": "Whether the component should ignore user interaction.",
20661
+ "source": "base-ui"
20662
+ },
20663
+ {
20664
+ "name": "nativeButton",
20665
+ "type": "boolean",
20666
+ "required": false,
20667
+ "default": "true",
20668
+ "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>`).",
20669
+ "source": "base-ui"
20670
+ },
20671
+ {
20672
+ "name": "render",
20673
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxTriggerState>",
20674
+ "required": false,
20675
+ "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.",
20676
+ "source": "base-ui"
20677
+ }
20678
+ ]
20679
+ },
20680
+ {
20681
+ "name": "ComboboxValue",
20682
+ "description": "Renders the selected value's label, or `placeholder` when empty. Pass a function as children to\nrender the value yourself (for example as `ComboboxChip`s with `multiple`).",
20683
+ "props": [
20684
+ {
20685
+ "name": "placeholder",
20686
+ "type": "ReactNode",
20687
+ "required": false,
20688
+ "description": "The placeholder value to display when no value is selected.\nThis is overridden by `children` if specified, or by a null item's label in `items`.",
20689
+ "source": "base-ui"
20690
+ }
20691
+ ]
20692
+ }
20693
+ ],
20694
+ "examples": [],
20695
+ "docsUrl": "/components/select#searchable"
20696
+ },
20697
+ {
20698
+ "slug": "sheet",
20699
+ "title": "Sheet",
20700
+ "category": "Overlays",
20701
+ "status": "stable",
20702
+ "level": "organism",
20703
+ "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`, and use a Dialog for a\nyes / no confirm. A sheet can open over another, nested in its tree or not: the one behind steps back, smaller and\nfaded under the scrim's colour and blur, over a single scrim, and Escape or a click away closes only the top one. A sheet is at least as wide as the\none it covers, so only a sliver of that one shows.",
20704
+ "importPath": "@dodopayments/ui/sheet",
20705
+ "exports": [
20706
+ "DODO_SHEET_DEFAULT_VARIANTS",
20707
+ "DODO_SHEET_SIZE_DEFAULT_VARIANTS",
20708
+ "DODO_SHEET_SIZE_VARIANTS",
20709
+ "DODO_SHEET_VARIANTS",
20710
+ "Sheet",
20711
+ "SheetClose",
20712
+ "SheetCloseProps",
20713
+ "SheetContent",
20714
+ "SheetContentProps",
20715
+ "SheetDescription",
20716
+ "SheetDescriptionProps",
20717
+ "SheetFooter",
20718
+ "SheetHeader",
20719
+ "SheetHeaderProps",
20720
+ "SheetOverlay",
20721
+ "SheetOverlayProps",
20722
+ "SheetPanel",
20723
+ "SheetPortal",
20724
+ "SheetProps",
20725
+ "SheetTitle",
20726
+ "SheetTitleProps",
20727
+ "SheetTrigger",
20728
+ "SheetTriggerProps",
20729
+ "sheetVariants"
20730
+ ],
20731
+ "parts": [
20732
+ {
20733
+ "name": "SheetContent",
20734
+ "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`, and use a Dialog for a\nyes / no confirm. A sheet can open over another, nested in its tree or not: the one behind steps back, smaller and\nfaded under the scrim's colour and blur, over a single scrim, and Escape or a click away closes only the top one. A sheet is at least as wide as the\none it covers, so only a sliver of that one shows.",
20735
+ "props": [
20736
+ {
20737
+ "name": "className",
20738
+ "type": "string",
20739
+ "required": false,
20740
+ "description": "Additional Tailwind classes, merged last.",
20741
+ "source": "dodo"
20742
+ },
20743
+ {
20744
+ "name": "closeLabel",
20745
+ "type": "string",
20746
+ "required": false,
20747
+ "default": "\"Close\"",
20748
+ "description": "Accessible label for the close button.",
20749
+ "source": "dodo"
20750
+ },
20751
+ {
20752
+ "name": "hideCloseButton",
20753
+ "type": "boolean",
20754
+ "required": false,
20755
+ "default": "false",
20756
+ "description": "Hide the close button. Keep a visible way to close the sheet, e.g. a `SheetClose`.",
20757
+ "source": "dodo"
20758
+ },
20759
+ {
20760
+ "name": "portalProps",
20761
+ "type": "DialogPortalProps",
20762
+ "required": false,
20763
+ "description": "Props for the portal, e.g. a `container` to render the sheet into instead of `document.body`.",
20764
+ "source": "dodo"
20765
+ },
20766
+ {
20767
+ "name": "size",
20768
+ "type": "\"md\" | \"lg\" | \"xl\"",
20769
+ "required": false,
20770
+ "description": "",
20771
+ "source": "dodo",
20772
+ "values": [
20773
+ {
20774
+ "value": "md",
20775
+ "description": "400 wide: short forms and details. The default."
20776
+ },
20777
+ {
20778
+ "value": "lg",
20779
+ "description": "560 wide: longer forms. Side sheets only."
20780
+ },
20781
+ {
20782
+ "value": "xl",
20783
+ "description": "768 wide: a form with a code editor or a long checklist, such as a webhook endpoint. Side sheets only."
20784
+ }
20785
+ ],
20786
+ "default": "\"md\""
20787
+ },
20788
+ {
20789
+ "name": "type",
20790
+ "type": "\"side\" | \"full\"",
20791
+ "required": false,
20792
+ "description": "",
20793
+ "source": "dodo",
20794
+ "values": [
20795
+ {
20796
+ "value": "side",
20797
+ "description": "A side panel for a task or record that keeps the page in view: refund, dispute, edit customer, new API key."
20798
+ },
20799
+ {
20800
+ "value": "full",
20801
+ "description": "Full screen for long multi-step flows (add bank account, verification): back, title, progress and close on top, a 664 column of Card sections, the actions below."
20802
+ }
20803
+ ],
20804
+ "default": "\"side\""
20805
+ },
20806
+ {
20807
+ "name": "finalFocus",
20808
+ "type": "boolean | RefObject<HTMLElement | null> | ((closeType: InteractionType) => boolean | void | HTMLElement | null)",
20809
+ "required": false,
20810
+ "description": "Determines the element to focus when the dialog 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, `null` to fall back to the default behavior, or `false`/`undefined` to do nothing.",
20811
+ "source": "base-ui"
20812
+ },
20813
+ {
20814
+ "name": "initialFocus",
20815
+ "type": "boolean | RefObject<HTMLElement | null> | ((openType: InteractionType) => boolean | void | HTMLElement | null)",
20816
+ "required": false,
20817
+ "description": "Determines the element to focus when the dialog is opened.\nBy default, focus moves to the first tabbable element inside the popup, except when the dialog\nis opened by touch, then the popup itself is focused to avoid opening the virtual keyboard.\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, `null` to fall back to the default behavior, or `false`/`undefined` to do nothing.",
20818
+ "source": "base-ui"
20819
+ },
20820
+ {
20821
+ "name": "render",
20822
+ "type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, DialogPopupState>",
20823
+ "required": false,
20824
+ "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.",
20825
+ "source": "base-ui"
20826
+ }
20827
+ ]
20828
+ },
20829
+ {
20830
+ "name": "Sheet",
20831
+ "description": "Root of a sheet: a modal side panel (the `Sheet` primitive on Base UI Dialog). Controls open state\n(`open`/`onOpenChange` or `defaultOpen`).",
20832
+ "props": [
20833
+ {
20834
+ "name": "actionsRef",
20835
+ "type": "RefObject<DialogRootActions | null>",
20836
+ "required": false,
20837
+ "description": "A ref to imperative actions.\n- `unmount`: Manually unmounts the dialog.\nCall this after any externally controlled closing animation finishes.\n- `close`: Closes the dialog imperatively when called.",
20838
+ "source": "base-ui"
20839
+ },
20840
+ {
20841
+ "name": "defaultOpen",
20842
+ "type": "boolean",
20843
+ "required": false,
20844
+ "default": "false",
20845
+ "description": "Whether the dialog is initially open.\n\nTo render a controlled dialog, use the `open` prop instead.",
20846
+ "source": "base-ui"
20847
+ },
20848
+ {
20849
+ "name": "defaultTriggerId",
20850
+ "type": "string | null",
20851
+ "required": false,
20852
+ "description": "ID of the trigger that the dialog is associated with.\nThis is useful in conjunction with the `defaultOpen` prop to create an initially open dialog.",
20853
+ "source": "base-ui"
20854
+ },
20855
+ {
20856
+ "name": "disablePointerDismissal",
20857
+ "type": "boolean",
20858
+ "required": false,
20859
+ "default": "false",
20860
+ "description": "Whether to prevent the dialog from closing on outside presses.\nFor non-modal dialogs, this also prevents the dialog from closing when focus moves outside of it.",
20861
+ "source": "base-ui"
20862
+ },
20863
+ {
20864
+ "name": "handle",
20865
+ "type": "DialogHandle<Payload>",
20866
+ "required": false,
20867
+ "description": "A handle to associate the dialog with a trigger.\nIf specified, allows external triggers to control the dialog's open state.\nCan be created with the Dialog.createHandle() method.",
20868
+ "source": "base-ui"
20869
+ },
20870
+ {
20871
+ "name": "modal",
20872
+ "type": "boolean | \"trap-focus\"",
20873
+ "required": false,
20874
+ "default": "true",
20875
+ "description": "Determines if the dialog enters a modal state when open.\n- `true`: user interaction is limited to just the dialog: 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 dialog, but document page scroll is not locked and pointer interactions outside of it remain enabled.\n\nWhen `modal` is `true` or `'trap-focus'`, render `<Dialog.Close>` inside `<Dialog.Popup>` so\ntouch screen readers can escape the popup.",
20876
+ "source": "base-ui"
20877
+ },
20878
+ {
20879
+ "name": "onOpenChange",
20880
+ "type": "((open: boolean, eventDetails: DialogRootChangeEventDetails) => void)",
20881
+ "required": false,
20882
+ "description": "Event handler called when the dialog is opened or closed.",
20883
+ "source": "base-ui"
20884
+ },
20885
+ {
20886
+ "name": "onOpenChangeComplete",
20887
+ "type": "((open: boolean) => void)",
20888
+ "required": false,
20889
+ "description": "Event handler called after any animations complete when the dialog is opened or closed.",
20890
+ "source": "base-ui"
20891
+ },
20892
+ {
20893
+ "name": "open",
20894
+ "type": "boolean",
20895
+ "required": false,
20896
+ "description": "Whether the dialog is currently open.",
20897
+ "source": "base-ui"
20898
+ },
20899
+ {
20900
+ "name": "triggerId",
20901
+ "type": "string | null",
20902
+ "required": false,
20903
+ "description": "ID of the trigger that the dialog is associated with.\nThis is useful in conjunction with the `open` prop to create a controlled dialog.\nThere's no need to specify this prop when the dialog is uncontrolled (that is, when the `open` prop is not set).",
20904
+ "source": "base-ui"
20905
+ }
20906
+ ]
20907
+ },
20908
+ {
20909
+ "name": "SheetClose",
20910
+ "description": "Closes the sheet. Use `render={<Button variant=\"secondary\" />}` for a footer action.",
20911
+ "props": [
20912
+ {
20913
+ "name": "className",
20914
+ "type": "string",
19867
20915
  "required": false,
19868
20916
  "description": "Additional Tailwind classes, merged last.",
19869
20917
  "source": "dodo"
@@ -20127,6 +21175,7 @@
20127
21175
  "title": "Sidebar",
20128
21176
  "category": "Navigation",
20129
21177
  "status": "stable",
21178
+ "level": "organism",
20130
21179
  "description": "The app sidebar (Dodo Nest Sidebar), on the `Sidebar` primitive. From 1024px it docks to the start edge (the\nleft in LTR, the right in RTL) and collapses to a 68px icon rail or expands to a 256px list; below that it opens\nas a 256px drawer. Compose it from `SidebarHeader` (a `SidebarBusinessSwitcher`), `SidebarContent` (groups and\nmenus) and `SidebarFooter` (Developer, Settings and a `SidebarModeSwitch`), inside a `SidebarProvider`.",
20131
21180
  "importPath": "@dodopayments/ui/sidebar",
20132
21181
  "exports": [
@@ -20669,6 +21718,7 @@
20669
21718
  "title": "Skeleton",
20670
21719
  "category": "Feedback",
20671
21720
  "status": "stable",
21721
+ "level": "atom",
20672
21722
  "description": "A grey placeholder shown while content loads (Dodo Nest Skeleton), sized like the thing it replaces: `shape=\"line\"`\nfor text, `\"block\"` (the default) for media, charts and controls, `\"circle\"` for avatars. Size it with `className`\n(e.g. `w-32`, `h-20 w-60`, `size-8`). It sits on white panels. Hidden from assistive tech (`aria-hidden`); mark the loading region\nwith `aria-busy` and announce the state elsewhere.",
20673
21723
  "importPath": "@dodopayments/ui/skeleton",
20674
21724
  "exports": [
@@ -21051,7 +22101,11 @@
21051
22101
  "slug": "slider",
21052
22102
  "title": "Slider",
21053
22103
  "category": "Forms",
21054
- "status": "stable",
22104
+ "status": "deprecated",
22105
+ "deprecated": {
22106
+ "since": "1.8.0"
22107
+ },
22108
+ "level": "atom",
21055
22109
  "description": "Picks a number, or a range with two thumbs, by dragging or with the keyboard: the Dodo Nest Slider. A 4px\ntrack in `--tertiary`, the range in the brand colour with the Progress bar's glossy rim, and a 16px Thumb\n(Surface/Primary, a 1px gradient rim and a soft shadow) that stays inside the track at both ends. Renders\none thumb per entry in `value`/`defaultValue` (one thumb for a plain number). Name it with `label`,\n`aria-label` or `getAriaLabel`.\n\nThe pressed or dragged thumb grows one size step (`duration-quick`). Its position follows the pointer and\nthe keyboard exactly, with no transition, so arrow-key steps never animate.\n\nComposed from the Base UI parts: the `Slider` primitive renders its thumbs itself and does not forward\nper-thumb props, so it cannot carry `aria-label`, `getAriaLabel`, `getAriaValueText` or the value tooltip.\nThe value readout uses the `SliderValue` primitive.",
21056
22110
  "importPath": "@dodopayments/ui/slider",
21057
22111
  "exports": [
@@ -21371,6 +22425,7 @@
21371
22425
  "title": "Spinner",
21372
22426
  "category": "Feedback",
21373
22427
  "status": "stable",
22428
+ "level": "atom",
21374
22429
  "description": "Loading indicator for a wait with no known layout or progress (Dodo Nest Spinner): a 20 × 20 ring,\na Border/Primary track with a Content/Brand-primary quarter arc turning on it. Centre it in a panel\nwith a short message 12 below, or put it before a status line. Announces `label` through\n`role=\"status\"`; the status role and label sit on a wrapping `<span>` (not on the primitive `<svg>`)\nso the label is real text that screen readers announce in every browser.",
21375
22430
  "importPath": "@dodopayments/ui/spinner",
21376
22431
  "exports": [
@@ -21438,6 +22493,7 @@
21438
22493
  "title": "Navigation progress",
21439
22494
  "category": "Feedback",
21440
22495
  "status": "stable",
22496
+ "level": "atom",
21441
22497
  "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.",
21442
22498
  "importPath": "@dodopayments/ui/navigation-progress",
21443
22499
  "exports": [
@@ -21480,6 +22536,7 @@
21480
22536
  "title": "Text Shimmer",
21481
22537
  "category": "Typography",
21482
22538
  "status": "stable",
22539
+ "level": "atom",
21483
22540
  "description": "Text with a highlight sweeping across it, for \"in progress\" labels such as \"Generating report...\".\nRenders a `<p>` by default (use `render` for another element). With reduced motion it renders as\nstatic `text-muted-foreground` text. Composite (the primitives have no shimmer): the `dodo-text-shimmer`\nutility sweeps the primitive `foreground` token over `muted-foreground`.",
21484
22541
  "importPath": "@dodopayments/ui/text-shimmer",
21485
22542
  "exports": [
@@ -21550,11 +22607,75 @@
21550
22607
  ],
21551
22608
  "docsUrl": "/components/text-shimmer"
21552
22609
  },
22610
+ {
22611
+ "slug": "switch-transition",
22612
+ "title": "Switch transition",
22613
+ "category": "Feedback",
22614
+ "status": "stable",
22615
+ "level": "molecule",
22616
+ "description": "The screen a switch of mode or business shows while the dashboard reloads its data: a slow Paper mesh\ngradient in the tone's colour (green for live mode, amber for test mode, blue for a business) over the page, and the\nmessage shimmering in the middle at heading size. It covers the whole viewport (portalled, above\nsheets and dialogs), fades in, and fades out once `active` clears. The gradient stands still under\nreduced motion, and is left out where WebGL 2 is unavailable.",
22617
+ "importPath": "@dodopayments/ui/switch-transition",
22618
+ "exports": [
22619
+ "SwitchTransition",
22620
+ "SwitchTransitionProps",
22621
+ "SwitchTransitionTone"
22622
+ ],
22623
+ "parts": [
22624
+ {
22625
+ "name": "SwitchTransition",
22626
+ "description": "The screen a switch of mode or business shows while the dashboard reloads its data: a slow Paper mesh\ngradient in the tone's colour (green for live mode, amber for test mode, blue for a business) over the page, and the\nmessage shimmering in the middle at heading size. It covers the whole viewport (portalled, above\nsheets and dialogs), fades in, and fades out once `active` clears. The gradient stands still under\nreduced motion, and is left out where WebGL 2 is unavailable.",
22627
+ "props": [
22628
+ {
22629
+ "name": "active",
22630
+ "type": "boolean",
22631
+ "required": true,
22632
+ "description": "A switch is running. Clear it once the new mode or business has loaded.",
22633
+ "source": "dodo"
22634
+ },
22635
+ {
22636
+ "name": "message",
22637
+ "type": "string",
22638
+ "required": true,
22639
+ "description": "What is happening, such as \"Switching to test mode\". Announced politely.",
22640
+ "source": "dodo"
22641
+ },
22642
+ {
22643
+ "name": "inline",
22644
+ "type": "boolean",
22645
+ "required": false,
22646
+ "default": "false",
22647
+ "description": "Render in place, still covering the viewport, instead of in a portal: for a page that is only this\nscreen (a sign-in callback), so it renders on the server too.",
22648
+ "source": "dodo"
22649
+ },
22650
+ {
22651
+ "name": "tone",
22652
+ "type": "SwitchTransitionTone",
22653
+ "required": false,
22654
+ "default": "\"brand\"",
22655
+ "description": "The gradient's colour: `brand` for live mode, `warning` for test mode, `info` for a business.",
22656
+ "source": "dodo"
22657
+ }
22658
+ ]
22659
+ }
22660
+ ],
22661
+ "examples": [
22662
+ {
22663
+ "name": "switch-transition/default",
22664
+ "code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { SwitchTransition } from \"@dodopayments/ui/switch-transition\";\nimport * as React from \"react\";\n\nexport default function SwitchTransitionDefault() {\n const [active, setActive] = React.useState(false);\n\n return (\n <div className=\"flex flex-col items-center gap-4\">\n <div className=\"relative h-60 w-full overflow-hidden rounded-xl border border-border\">\n <SwitchTransition\n active={active}\n className=\"absolute\"\n inline\n message=\"Switching to live mode\"\n />\n </div>\n <Button\n onClick={() => {\n setActive(true);\n setTimeout(() => setActive(false), 2000);\n }}\n variant=\"secondary\"\n >\n Switch mode\n </Button>\n </div>\n );\n}"
22665
+ },
22666
+ {
22667
+ "name": "switch-transition/tones",
22668
+ "code": "\"use client\";\n\nimport { SwitchTransition } from \"@dodopayments/ui/switch-transition\";\n\nexport default function SwitchTransitionTones() {\n return (\n <div className=\"grid w-full grid-cols-1 gap-4 sm:grid-cols-3\">\n {([\"brand\", \"warning\", \"info\"] as const).map((tone) => (\n <div className=\"relative h-40 overflow-hidden rounded-xl border border-border\" key={tone}>\n <SwitchTransition\n active\n className=\"absolute\"\n inline\n message={`Tone: ${tone}`}\n tone={tone}\n />\n </div>\n ))}\n </div>\n );\n}"
22669
+ }
22670
+ ],
22671
+ "docsUrl": "/components/switch-transition"
22672
+ },
21553
22673
  {
21554
22674
  "slug": "switch",
21555
22675
  "title": "Switch",
21556
22676
  "category": "Forms",
21557
22677
  "status": "stable",
22678
+ "level": "atom",
21558
22679
  "description": "An on/off toggle for settings that take effect immediately. Renders the `Switch` primitive (Base UI): a\n`<span role=\"switch\">` with `aria-checked` plus a hidden `<input>` so it submits with forms. Name it\nby wrapping it and its text in a `<label>`, or pass `aria-label`.",
21559
22680
  "importPath": "@dodopayments/ui/switch",
21560
22681
  "exports": [
@@ -21721,6 +22842,7 @@
21721
22842
  "title": "Segmented control",
21722
22843
  "category": "Actions",
21723
22844
  "status": "stable",
22845
+ "level": "molecule",
21724
22846
  "description": "Switches between 2–3 views or values of the same thing (Dodo Nest Segmented control): a chart range\n(7 / 30 / 90 days), Daily / Weekly, a permission level (None / Read / Write), the Test / Live mode. A grey track\nwhere a raised segment springs to the active one. Pass `items`, or `SegmentedControlItem` children. One segment\nis always active: `value` is a string, and pressing the active segment again keeps it. `variant=\"ghost\"` and\n`\"outline\"` are toolbar rows that also take `size` and `multiple` (`value` is then an array). Renders a group of\ntoggle buttons (`aria-pressed`); give it an `aria-label`. Don't use it for page navigation (use `Tabs`) or for\nmore than 3–4 options (use a `Select`).",
21725
22847
  "importPath": "@dodopayments/ui/segmented-control",
21726
22848
  "exports": [
@@ -22094,6 +23216,7 @@
22094
23216
  "title": "Toast",
22095
23217
  "category": "Feedback",
22096
23218
  "status": "stable",
23219
+ "level": "molecule",
22097
23220
  "description": "Renders the toasts queued with `toast.success()`, `toast.error()`, `toast.info()` and `toast.loading()` (and the\nprimitives `toastManager`). Mount exactly one, near the root of the app. Each toast is the Dodo Nest tray: a tone\ntinted tray around a white panel with a Featured icon (the Spinner while loading), the title, an optional\ndescription, a close button, an optional Dismiss + action row and an optional footer. Toasts are 360 wide (the full\nwidth minus 16 a side on phones), stack 8 apart up to `limit`, expand while hovered or focused, and can be swiped\ntoward the nearest edges. The default `top-end` corner is the top right in LTR and the top left in RTL.",
22098
23221
  "importPath": "@dodopayments/ui/toast",
22099
23222
  "exports": [
@@ -22455,6 +23578,7 @@
22455
23578
  "title": "Tabs",
22456
23579
  "category": "Navigation",
22457
23580
  "status": "stable",
23581
+ "level": "molecule",
22458
23582
  "description": "Switches between related views in the same context, such as the sections of a customer page.\nPair it with `TabsList`, `TabsTrigger` and `TabsContent`; each `TabsTrigger` shows the\n`TabsContent` with the same `value`. Renders the `Tabs` primitive (Base UI `Tabs`).",
22459
23583
  "importPath": "@dodopayments/ui/tabs",
22460
23584
  "exports": [
@@ -22733,7 +23857,8 @@
22733
23857
  "title": "Test Mode Banner",
22734
23858
  "category": "Feedback",
22735
23859
  "status": "stable",
22736
- "description": "Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes\ntest data for live data. It is the app shell's own strip (not an Alert): a centred 12px (Body/Secondary)\nmessage on a dark strip (`bg-test-banner`: Grey 900, Grey 800 in dark mode), sticky by\ndefault, with an optional underlined \"Switch to live mode\" link button and a \"Learn more\" link. It slides in from above on mount. Pair it with\n`TestModeBadge` next to test-mode records.",
23860
+ "level": "organism",
23861
+ "description": "Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes\ntest data for live data. It is the app shell's own strip (not an Alert): a centred 12px (Body/Secondary)\nmessage on a 36px dark strip (`bg-test-banner`: Grey 950, the Surface/Inverted fill, and Grey 800 in dark mode), sticky by\ndefault, with an optional underlined \"Switch to live mode\" link button and a \"Learn more\" link. It slides in from above on mount. Pair it with\n`TestModeBadge` next to test-mode records.",
22737
23862
  "importPath": "@dodopayments/ui/test-mode-banner",
22738
23863
  "exports": [
22739
23864
  "TestModeBadge",
@@ -22745,7 +23870,7 @@
22745
23870
  "parts": [
22746
23871
  {
22747
23872
  "name": "TestModeBanner",
22748
- "description": "Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes\ntest data for live data. It is the app shell's own strip (not an Alert): a centred 12px (Body/Secondary)\nmessage on a dark strip (`bg-test-banner`: Grey 900, Grey 800 in dark mode), sticky by\ndefault, with an optional underlined \"Switch to live mode\" link button and a \"Learn more\" link. It slides in from above on mount. Pair it with\n`TestModeBadge` next to test-mode records.",
23873
+ "description": "Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes\ntest data for live data. It is the app shell's own strip (not an Alert): a centred 12px (Body/Secondary)\nmessage on a 36px dark strip (`bg-test-banner`: Grey 950, the Surface/Inverted fill, and Grey 800 in dark mode), sticky by\ndefault, with an optional underlined \"Switch to live mode\" link button and a \"Learn more\" link. It slides in from above on mount. Pair it with\n`TestModeBadge` next to test-mode records.",
22749
23874
  "props": [
22750
23875
  {
22751
23876
  "name": "labels",
@@ -22869,6 +23994,7 @@
22869
23994
  "title": "Icon Morph",
22870
23995
  "category": "Actions",
22871
23996
  "status": "stable",
23997
+ "level": "organism",
22872
23998
  "description": "A button whose icon morphs between two or more states on press, e.g. sun / moon for a theme\ntoggle, menu / close, play / pause. After interior.dev's icon morph\n(https://www.interior.dev/docs/icon-morph): every state draws the same set of paths and `motion`\nsprings each `d` attribute, so one shape turns into the next. Composes `Button` (`variant` and\n`size` pass through; default `secondary` and `icon`). It only reports the state: wire `value` and\n`onValueChange` to whatever it controls. With reduced motion the swap is instant.",
22873
23999
  "importPath": "@dodopayments/ui/icon-morph",
22874
24000
  "exports": [
@@ -23059,6 +24185,7 @@
23059
24185
  "title": "Command palette",
23060
24186
  "category": "Overlays",
23061
24187
  "status": "stable",
24188
+ "level": "organism",
23062
24189
  "description": "A searchable list of commands: the `Command` primitive, an inline Base UI `Autocomplete` that is\nalways open. Put it in a `CommandDialogContent` for a palette that opens on a shortcut, or on the\npage. Compose it from `CommandInput`, `CommandList`, `CommandEmpty`, `CommandGroup` and\n`CommandItem`. With `items`, typing ranks them with a fuzzy match (see `fuzzy`), the first match\nstays highlighted, and Enter runs it.",
23063
24190
  "importPath": "@dodopayments/ui/command",
23064
24191
  "exports": [
@@ -23934,7 +25061,12 @@
23934
25061
  "slug": "context-menu",
23935
25062
  "title": "Context menu",
23936
25063
  "category": "Overlays",
23937
- "status": "stable",
25064
+ "status": "deprecated",
25065
+ "deprecated": {
25066
+ "since": "1.8.0",
25067
+ "replacement": "Menu"
25068
+ },
25069
+ "level": "atom",
23938
25070
  "description": "Root of a context menu: a menu that opens at the pointer on right-click, or on a long press with\ntouch. Controls open state (`open`/`onOpenChange` or `defaultOpen`). Holds one\n`ContextMenuTrigger` and one `ContextMenuContent` with the Menu parts.",
23939
25071
  "importPath": "@dodopayments/ui/context-menu",
23940
25072
  "exports": [
@@ -24197,7 +25329,8 @@
24197
25329
  "title": "List item",
24198
25330
  "category": "Data display",
24199
25331
  "status": "stable",
24200
- "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.",
25332
+ "level": "atom",
25333
+ "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>`. A linked tile fills\nand nudges its chevron on hover. It has no selected state: for a choice, use a Radio card.",
24201
25334
  "importPath": "@dodopayments/ui/list-item",
24202
25335
  "exports": [
24203
25336
  "DODO_LIST_ITEM_DEFAULT_VARIANTS",
@@ -24213,7 +25346,7 @@
24213
25346
  "parts": [
24214
25347
  {
24215
25348
  "name": "ListItem",
24216
- "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.",
25349
+ "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>`. A linked tile fills\nand nudges its chevron on hover. It has no selected state: for a choice, use a Radio card.",
24217
25350
  "props": [
24218
25351
  {
24219
25352
  "name": "title",
@@ -24416,6 +25549,7 @@
24416
25549
  "title": "List toolbar",
24417
25550
  "category": "Data display",
24418
25551
  "status": "stable",
25552
+ "level": "organism",
24419
25553
  "description": "The row above every Data table (Dodo Nest List toolbar): search, a count or a Refresh button on the left, every\nbutton on the right, the two sides 16 apart and the items in a side 8 apart, all 36 tall. It fills its column and\nhas no fill of its own. Below 42rem of its own width (a container query; Figma says ~700) it stacks: the left side\nfull width, then the right side spread from edge to edge. Put it 16 above the Data table, at the same width. Page\ntitles and tabs belong in the Page header, not here.",
24420
25554
  "importPath": "@dodopayments/ui/list-toolbar",
24421
25555
  "exports": [
@@ -24695,6 +25829,7 @@
24695
25829
  "title": "Leaderboard",
24696
25830
  "category": "Data display",
24697
25831
  "status": "stable",
25832
+ "level": "organism",
24698
25833
  "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.",
24699
25834
  "importPath": "@dodopayments/ui/leaderboard",
24700
25835
  "exports": [
@@ -24876,6 +26011,7 @@
24876
26011
  "title": "Milestone",
24877
26012
  "category": "Data display",
24878
26013
  "status": "stable",
26014
+ "level": "organism",
24879
26015
  "description": "A milestone on the Milestones page (Design File › Merchant Milestones). `state=\"achieved\"` is a reached milestone:\nthe category's colour fades from the top (blue geography, green revenue, indigo growth, violet customers), with\nits gem, title, description, date and a Share button. `state=\"progress\"` is the next target: a grey card with a\ngrey gem, the target and a Progress bar with its percent. Light and dark come from the `--milestone-*` tokens.",
24880
26016
  "importPath": "@dodopayments/ui/milestone",
24881
26017
  "exports": [
@@ -25203,7 +26339,11 @@
25203
26339
  "slug": "sale-share-card",
25204
26340
  "title": "Sale share card",
25205
26341
  "category": "Data display",
25206
- "status": "stable",
26342
+ "status": "deprecated",
26343
+ "deprecated": {
26344
+ "since": "1.8.0"
26345
+ },
26346
+ "level": "molecule",
25207
26347
  "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`.",
25208
26348
  "importPath": "@dodopayments/ui/sale-share-card",
25209
26349
  "exports": [
@@ -25267,6 +26407,7 @@
25267
26407
  "title": "Chart share card",
25268
26408
  "category": "Data display",
25269
26409
  "status": "stable",
26410
+ "level": "molecule",
25270
26411
  "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`.",
25271
26412
  "importPath": "@dodopayments/ui/chart-share-card",
25272
26413
  "exports": [
@@ -25332,6 +26473,7 @@
25332
26473
  "title": "Setup guide",
25333
26474
  "category": "Feedback",
25334
26475
  "status": "stable",
26476
+ "level": "organism",
25335
26477
  "description": "The setup guide a new business follows (the dashboard's Setup guide, opened from the top bar's Setup guide\nbutton): a 320 wide grey tray (Direction 1) with the title, the percent done and a progress bar on its strip, then\none white panel per step, 4 apart. A\ngroup row opens (one at a time) to its tasks, each with a status dot, a status Badge when submitted or blocked and an\noptional \"Mark as done\"; a link row goes straight to a page; a locked row waits behind a padlock; a finished row\nshows a green check. Collapsed, it keeps the header and bar and says what is up next. Place it yourself (the\ndashboard pins it to the bottom-right corner).",
25336
26478
  "importPath": "@dodopayments/ui/setup-guide",
25337
26479
  "exports": [
@@ -25478,7 +26620,11 @@
25478
26620
  "slug": "filter-grid",
25479
26621
  "title": "Filter Grid",
25480
26622
  "category": "Data display",
25481
- "status": "stable",
26623
+ "status": "deprecated",
26624
+ "deprecated": {
26625
+ "since": "1.8.0"
26626
+ },
26627
+ "level": "atom",
25482
26628
  "description": "Filter chips over a grid of cards, after interior.dev's filter grid\n(https://www.interior.dev/docs/filter-grid). The chips are a Base UI radio group: the arrow keys\nmove and select, and each chip shows its count. The active thumb slides between chips, cells that\nleave fade out, and the cells that stay glide to their new place. The grid keeps a fixed height,\nand focus inside a removed cell returns to the grid. With reduced motion everything changes in\nplace.",
25483
26629
  "importPath": "@dodopayments/ui/filter-grid",
25484
26630
  "exports": [
@@ -25678,7 +26824,11 @@
25678
26824
  "slug": "live-activity",
25679
26825
  "title": "Live Activity",
25680
26826
  "category": "Feedback",
25681
- "status": "stable",
26827
+ "status": "deprecated",
26828
+ "deprecated": {
26829
+ "since": "1.8.0"
26830
+ },
26831
+ "level": "organism",
25682
26832
  "description": "A small pod that reports one background task, like a phone's live activity, after interior.dev's\nlive activity. Compact it shows a spinner and the percentage; hover, focus, a new task or a phase\nchange opens it to show the title, detail and a progress bar. The pod springs between the two\nsizes, the spinner turns into a drawn check or a warning, and a failure stays open with an optional\naction. Phase changes are announced politely. Drive it with {@link useLiveActivity}. With reduced\nmotion every change is instant.",
25683
26833
  "importPath": "@dodopayments/ui/live-activity",
25684
26834
  "exports": [
@@ -25784,6 +26934,7 @@
25784
26934
  "title": "Load More",
25785
26935
  "category": "Navigation",
25786
26936
  "status": "stable",
26937
+ "level": "organism",
25787
26938
  "description": "The button at the end of a paged list, after interior.dev's load more\n(https://www.interior.dev/docs/load-more). It loads the next page on press and, with `auto`,\nwhen the end of the list comes near the viewport (at most `maxAutoLoads` times in a row). Its four\nfaces (load more, loading, error, end) share one cell and cross-fade on a spring, so the button\nkeeps its width. Composes `Button` (default `ghost`, `sm`). With reduced motion the faces swap\nwithout animation.",
25788
26939
  "importPath": "@dodopayments/ui/load-more",
25789
26940
  "exports": [
@@ -25977,7 +27128,11 @@
25977
27128
  "slug": "new-items-pill",
25978
27129
  "title": "New Items Pill",
25979
27130
  "category": "Feedback",
25980
- "status": "stable",
27131
+ "status": "deprecated",
27132
+ "deprecated": {
27133
+ "since": "1.8.0"
27134
+ },
27135
+ "level": "organism",
25981
27136
  "description": "A floating \"3 new items\" pill for feeds and chats, after interior.dev's new items pill\n(https://www.interior.dev/docs/new-items-pill). Place it in a `relative` wrapper around the scroll\ncontainer and feed it from {@link useNewItems}. It springs in from its edge, and a live region\nannounces the count once a burst of items settles. Composes `Button` (default `secondary`, `sm`).\nWith reduced motion it only fades.",
25982
27137
  "importPath": "@dodopayments/ui/new-items-pill",
25983
27138
  "exports": [
@@ -26115,6 +27270,7 @@
26115
27270
  "title": "Password Strength",
26116
27271
  "category": "Forms",
26117
27272
  "status": "stable",
27273
+ "level": "atom",
26118
27274
  "description": "A strength meter and a rule checklist for a password field, after interior.dev's password strength\n(https://www.interior.dev/docs/password-strength). The segments fill from the start edge one after another (`scale-x`,\n`duration-slow`, `ease-smooth-out`, staggered by `--motion-duration-stagger`) and change colour with the score (destructive, warning, success). The strength name cross-fades in\nplace, a warning shows for commonly guessed passwords, and each rule ticks when met. It renders the\n`Meter` primitive (Base UI `Meter`, `role=\"meter\"`) and announces a summary through a polite live\nregion after the user pauses. Put it below the password field and link it with `aria-describedby`\nwhen it helps. With reduced motion every change is instant.",
26119
27275
  "importPath": "@dodopayments/ui/password-strength",
26120
27276
  "exports": [
@@ -26258,7 +27414,11 @@
26258
27414
  "slug": "reorder-list",
26259
27415
  "title": "Reorder List",
26260
27416
  "category": "Data display",
26261
- "status": "stable",
27417
+ "status": "deprecated",
27418
+ "deprecated": {
27419
+ "since": "1.8.0"
27420
+ },
27421
+ "level": "atom",
26262
27422
  "description": "A vertical list the user can reorder by dragging or with the keyboard, after interior.dev's reorder\nlist (https://www.interior.dev/docs/reorder-list). It uses `motion`'s `Reorder`: the dragged row\nlifts and the other rows spring out of its way. With the keyboard, Space grabs a row, the arrow\nkeys move it, Space drops it and Escape restores the order. A live region reads each step. The list\nis controlled: keep `value` in state and update it from `onValueChange`. With reduced motion rows\nmove without animation.",
26263
27423
  "importPath": "@dodopayments/ui/reorder-list",
26264
27424
  "exports": [
@@ -26328,12 +27488,27 @@
26328
27488
  "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.",
26329
27489
  "source": "dodo"
26330
27490
  },
27491
+ {
27492
+ "name": "onDropAt",
27493
+ "type": "((item: T, point: { x: number; y: number; }) => void)",
27494
+ "required": false,
27495
+ "description": "Called when a drag ends, with the row and the pointer's viewport position (for `elementsFromPoint`), so a page\ncan move the row into another list it was dropped on, e.g. another checkout group.",
27496
+ "source": "dodo"
27497
+ },
26331
27498
  {
26332
27499
  "name": "onValueCommitted",
26333
27500
  "type": "((next: T[]) => void)",
26334
27501
  "required": false,
26335
27502
  "description": "Called with the final order when a drag or a keyboard move ends.",
26336
27503
  "source": "dodo"
27504
+ },
27505
+ {
27506
+ "name": "variant",
27507
+ "type": "\"card\" | \"plain\"",
27508
+ "required": false,
27509
+ "default": "\"card\"",
27510
+ "description": "`card` boxes each row; `plain` divides the rows with a line, for a list inside a card of its own. A dragged\nrow lifts with a fill and a shadow either way.",
27511
+ "source": "dodo"
26337
27512
  }
26338
27513
  ]
26339
27514
  }
@@ -26420,7 +27595,11 @@
26420
27595
  "slug": "task-steps",
26421
27596
  "title": "Task Steps",
26422
27597
  "category": "Feedback",
26423
- "status": "stable",
27598
+ "status": "deprecated",
27599
+ "deprecated": {
27600
+ "since": "1.8.0"
27601
+ },
27602
+ "level": "molecule",
26424
27603
  "description": "A vertical checklist for a multi-step job, such as a deploy or an import, after interior.dev's task\nsteps (https://www.interior.dev/docs/task-steps). Steps before `value` show a check, the step at\n`value` spins and shimmers, and later steps wait as dots. Set `failed` to mark the step at `value`\nwith a cross. When a step finishes its badge pops in and its check draws along its stroke\n(`duration-very-slow` after `delay-micro`); rows already done on mount do not animate. A `meta`\ntext, such as a duration, shows when its step is done. A polite live region reads the active step\nafter a short delay, and the end of the run. With reduced motion the badges appear without the pop\nor the draw, and the label does not shimmer. Composite: the primitive `Spinner` and `TextShimmer`.",
26425
27604
  "importPath": "@dodopayments/ui/task-steps",
26426
27605
  "exports": [
@@ -26528,7 +27707,11 @@
26528
27707
  "slug": "typing-indicator",
26529
27708
  "title": "Typing Indicator",
26530
27709
  "category": "Feedback",
26531
- "status": "stable",
27710
+ "status": "deprecated",
27711
+ "deprecated": {
27712
+ "since": "1.8.0"
27713
+ },
27714
+ "level": "atom",
26532
27715
  "description": "A chat bubble with three dots that ripple while someone types, and an \"is typing\" label, after\ninterior.dev's typing indicator (https://www.interior.dev/docs/typing-indicator). The bubble grows in\nfrom its bottom corner and shrinks away on send. The label slides between rosters. A polite live region\nreads the label after it holds still for `announceAfter`. With reduced motion the dots hold still and\neverything fades. Composite: motion only, on the `muted` tokens.",
26533
27716
  "importPath": "@dodopayments/ui/typing-indicator",
26534
27717
  "exports": [
@@ -26687,6 +27870,7 @@
26687
27870
  "title": "Value Flash",
26688
27871
  "category": "Data display",
26689
27872
  "status": "stable",
27873
+ "level": "atom",
26690
27874
  "description": "A number that flashes when it changes, for live prices, balances and counters. After\ninterior.dev's value flash (https://www.interior.dev/docs/value-flash): the new number rolls in\nfrom the direction of the change, the value tints success (up) or destructive (down), lifts\nslightly, and a caret pops in beside it. Changes are announced through a polite live region once\nthe value settles. With reduced motion the number cross-fades and nothing moves.",
26691
27875
  "importPath": "@dodopayments/ui/value-flash",
26692
27876
  "exports": [
@@ -26874,7 +28058,11 @@
26874
28058
  "slug": "wizard-steps",
26875
28059
  "title": "Wizard Steps",
26876
28060
  "category": "Navigation",
26877
- "status": "stable",
28061
+ "status": "deprecated",
28062
+ "deprecated": {
28063
+ "since": "1.8.0"
28064
+ },
28065
+ "level": "organism",
26878
28066
  "description": "A multi-step form with a numbered rail, a sliding panel and Back / Next buttons, after interior.dev's\nwizard steps (https://www.interior.dev/docs/wizard-steps). The panel slides in the direction of travel.\nAs a step finishes its connector fills (`duration-slow`) and its check draws (`duration-very-slow`\nafter `delay-micro`); steps finished on mount do not animate. Steps already visited stay\nselectable: click them, or use the arrow keys, Home and End on the rail. On the last step Next\nbecomes Finish and calls `onComplete`; set `complete` to show the done panel. With reduced motion\nthe panels cross-fade without travel.\nComposite: our `Button` for Back and Next.",
26879
28067
  "importPath": "@dodopayments/ui/wizard-steps",
26880
28068
  "exports": [
@@ -27047,7 +28235,8 @@
27047
28235
  "title": "Timestamp",
27048
28236
  "category": "Data display",
27049
28237
  "status": "stable",
27050
- "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.",
28238
+ "level": "molecule",
28239
+ "description": "A timestamp that reveals the exact time on hover, focus or tap: the trigger shows the time in\n`format`, the card 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 `PreviewCard` primitive; on\ntouch (coarse pointer) devices a tap toggles it. The card is not in the tab order, so each row's copy\nbutton is for a pointer; keyboard and screen-reader users get every zone from the trigger's own text.",
27051
28240
  "importPath": "@dodopayments/ui/timestamp",
27052
28241
  "exports": [
27053
28242
  "TimeZoneProvider",
@@ -27060,7 +28249,7 @@
27060
28249
  "parts": [
27061
28250
  {
27062
28251
  "name": "Timestamp",
27063
- "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.",
28252
+ "description": "A timestamp that reveals the exact time on hover, focus or tap: the trigger shows the time in\n`format`, the card 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 `PreviewCard` primitive; on\ntouch (coarse pointer) devices a tap toggles it. The card is not in the tab order, so each row's copy\nbutton is for a pointer; keyboard and screen-reader users get every zone from the trigger's own text.",
27064
28253
  "props": [
27065
28254
  {
27066
28255
  "name": "value",
@@ -27090,59 +28279,6 @@
27090
28279
  "required": false,
27091
28280
  "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.",
27092
28281
  "source": "dodo"
27093
- },
27094
- {
27095
- "name": "className",
27096
- "type": "string | ((state: TooltipTriggerState) => string | undefined)",
27097
- "required": false,
27098
- "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state.",
27099
- "source": "base-ui"
27100
- },
27101
- {
27102
- "name": "closeDelay",
27103
- "type": "number",
27104
- "required": false,
27105
- "default": "0",
27106
- "description": "How long to wait before closing the tooltip. Specified in milliseconds.",
27107
- "source": "base-ui"
27108
- },
27109
- {
27110
- "name": "closeOnClick",
27111
- "type": "boolean",
27112
- "required": false,
27113
- "default": "true",
27114
- "description": "Whether the tooltip should close when this trigger is clicked.",
27115
- "source": "base-ui"
27116
- },
27117
- {
27118
- "name": "delay",
27119
- "type": "number",
27120
- "required": false,
27121
- "default": "600",
27122
- "description": "How long to wait before opening the tooltip on hover. Specified in milliseconds.",
27123
- "source": "base-ui"
27124
- },
27125
- {
27126
- "name": "disabled",
27127
- "type": "boolean",
27128
- "required": false,
27129
- "default": "false",
27130
- "description": "If `true`, the tooltip will not open when interacting with this trigger.\nNote that this doesn't apply the `disabled` attribute to the trigger element.\nIf you want to disable the trigger element itself, you can pass the `disabled` prop to the trigger element via the `render` prop.",
27131
- "source": "base-ui"
27132
- },
27133
- {
27134
- "name": "handle",
27135
- "type": "TooltipHandle<unknown>",
27136
- "required": false,
27137
- "description": "A handle to associate the trigger with a tooltip.",
27138
- "source": "base-ui"
27139
- },
27140
- {
27141
- "name": "payload",
27142
- "type": "unknown",
27143
- "required": false,
27144
- "description": "A payload to pass to the tooltip when it is opened.",
27145
- "source": "base-ui"
27146
28282
  }
27147
28283
  ]
27148
28284
  },
@@ -27181,6 +28317,7 @@
27181
28317
  "title": "Tooltip",
27182
28318
  "category": "Overlays",
27183
28319
  "status": "stable",
28320
+ "level": "atom",
27184
28321
  "description": "The tooltip bubble (primitive `TooltipPopup`). Keep it to one short sentence; max width is 280px.",
27185
28322
  "importPath": "@dodopayments/ui/tooltip",
27186
28323
  "exports": [
@@ -27670,6 +28807,7 @@
27670
28807
  "title": "Page header",
27671
28808
  "category": "Navigation",
27672
28809
  "status": "stable",
28810
+ "level": "organism",
27673
28811
  "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/Primary (Heading/Secondary on the mobile layout) with an optional `help`\nquestion icon and a `meta` slot for a status Badge or Copyable ID; `actions` holds up to two large Buttons on the\nright; the `description` sits under the title, indented past the back button. Rows are 4 apart. Below 576px (or\nwith `breakpoint=\"mobile\"`) the back button stays beside the title and the actions move 8 below the description.\nNo fill: put it first on the main panel, 40 under the App top bar on desktop (24 on mobile) and 24 above the\nfirst section.",
27674
28812
  "importPath": "@dodopayments/ui/page-header",
27675
28813
  "exports": [
@@ -27745,6 +28883,13 @@
27745
28883
  "description": "Accessible name of the help icon.",
27746
28884
  "source": "dodo"
27747
28885
  },
28886
+ {
28887
+ "name": "media",
28888
+ "type": "ReactNode",
28889
+ "required": false,
28890
+ "description": "A leading visual before the title and description, centred on them, e.g. a 40px app logo or `Avatar` on a\nrecord's page. Decorative: the title names the page.",
28891
+ "source": "dodo"
28892
+ },
27748
28893
  {
27749
28894
  "name": "meta",
27750
28895
  "type": "ReactNode",
@@ -27791,6 +28936,7 @@
27791
28936
  "title": "Order Summary",
27792
28937
  "category": "Blocks",
27793
28938
  "status": "stable",
28939
+ "level": "organism",
27794
28940
  "description": "Checkout order summary, ported from the checkout and the customer portal: product rows\n(`OrderSummaryItem`), then amount lines (`OrderSummaryLine`) ending in the total, then an\noptional free-trial row. Every amount is passed in formatted. With `collapsible`, phones get an\n\"Order details\" toggle with the total; from `lg` up the summary always shows. Renders a\n`<section>` named by `title` or `aria-label`.",
27795
28941
  "importPath": "@dodopayments/ui/order-summary",
27796
28942
  "exports": [
@@ -28132,6 +29278,7 @@
28132
29278
  "title": "Details Panel",
28133
29279
  "category": "Blocks",
28134
29280
  "status": "stable",
29281
+ "level": "organism",
28135
29282
  "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.",
28136
29283
  "importPath": "@dodopayments/ui/details-panel",
28137
29284
  "exports": [
@@ -28250,7 +29397,11 @@
28250
29397
  "slug": "invoice-document",
28251
29398
  "title": "Invoice Document",
28252
29399
  "category": "Blocks",
28253
- "status": "stable",
29400
+ "status": "deprecated",
29401
+ "deprecated": {
29402
+ "since": "1.8.0"
29403
+ },
29404
+ "level": "molecule",
28254
29405
  "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.",
28255
29406
  "importPath": "@dodopayments/ui/invoice-document",
28256
29407
  "exports": [
@@ -28466,7 +29617,11 @@
28466
29617
  "slug": "payment-result",
28467
29618
  "title": "Payment Result",
28468
29619
  "category": "Blocks",
28469
- "status": "stable",
29620
+ "status": "deprecated",
29621
+ "deprecated": {
29622
+ "since": "1.8.0"
29623
+ },
29624
+ "level": "organism",
28470
29625
  "description": "Receipt card for the page a customer lands on after paying, ported from the checkout status page:\na merchant pill, a toned icon with the outcome title, a status `Badge` and date row, the decline\nreason, then the purchased items, the totals with an optional `Alert` notice and the invoice\nlink, each section after a dashed rule. Values are preformatted by the caller; sections without\ncontent are left out with their rule.",
28471
29626
  "importPath": "@dodopayments/ui/payment-result",
28472
29627
  "exports": [
@@ -28645,6 +29800,7 @@
28645
29800
  "title": "Celebration Dialog",
28646
29801
  "category": "Blocks",
28647
29802
  "status": "stable",
29803
+ "level": "atom",
28648
29804
  "description": "The dialog that marks a milestone, as the dashboard shows when setup reaches 100% in live mode: a 296px hero of\nmoving green silk with `media` over it, confetti falling across the window behind the card, then the title, the\ndescription and one `action`. No close button: the action, Escape and the scrim all close it. The silk and the\nconfetti stop under `prefers-reduced-motion`. Load it lazily where it rarely opens: it ships a WebGL shader.",
28649
29805
  "importPath": "@dodopayments/ui/celebration-dialog",
28650
29806
  "exports": [
@@ -28729,6 +29885,7 @@
28729
29885
  "title": "Subscription Card",
28730
29886
  "category": "Blocks",
28731
29887
  "status": "stable",
29888
+ "level": "organism",
28732
29889
  "description": "A customer's subscription in the customer portal: name, add-ons and business, the payment method in the top\ncorner, the price with an optional note, then \"Manage subscription\" and the status and date chips. A `notice`\n(`CardNotice`) tucks under the card for past due, on hold, trial, plan change, cancellation, pause or a missing\npayment method. The card is the Direction 1 tray around a white panel. Values are preformatted: it does no\ncurrency or date math. `children` render under the price, e.g. a usage `Progress`.",
28733
29890
  "importPath": "@dodopayments/ui/subscription-card",
28734
29891
  "exports": [
@@ -28886,6 +30043,7 @@
28886
30043
  "title": "Payment Method List",
28887
30044
  "category": "Blocks",
28888
30045
  "status": "stable",
30046
+ "level": "organism",
28889
30047
  "description": "Card listing saved payment methods or bank accounts, after the customer portal's payment methods\nsection and the dashboard's linked bank accounts: a `Card` with a heading, an optional add\nbutton and a list of `PaymentMethodItem`s, optionally split into `PaymentMethodGroup`s. With no\nitems it shows an empty state that holds the add button.",
28890
30048
  "importPath": "@dodopayments/ui/payment-method-list",
28891
30049
  "exports": [
@@ -29147,7 +30305,11 @@
29147
30305
  "slug": "plan-picker",
29148
30306
  "title": "Plan Picker",
29149
30307
  "category": "Blocks",
29150
- "status": "stable",
30308
+ "status": "deprecated",
30309
+ "deprecated": {
30310
+ "since": "1.8.0"
30311
+ },
30312
+ "level": "organism",
29151
30313
  "description": "Plan chooser for checkout and change-plan flows, ported from the checkout product collection and\nthe customer portal's change-plan sheet. Plans are cards in a `RadioGroup`: a label row with the\nradio, name, badges and price, then under a divider the description, feature chips, an `extra`\nslot and, on the selected plan, a `QuantityStepper`. A click anywhere on a card picks its\nplan and arrow keys move the selection. With more than one group, `Tabs` switch between the groups\n(e.g. Monthly and Yearly) while the selection is shared. `currentValue` marks the customer's plan\nwith a badge, and `footer` holds the follow-up action.",
29152
30314
  "importPath": "@dodopayments/ui/plan-picker",
29153
30315
  "exports": [
@@ -29328,7 +30490,11 @@
29328
30490
  "slug": "proration-preview",
29329
30491
  "title": "Proration Preview",
29330
30492
  "category": "Blocks",
29331
- "status": "stable",
30493
+ "status": "deprecated",
30494
+ "deprecated": {
30495
+ "since": "1.8.0"
30496
+ },
30497
+ "level": "organism",
29332
30498
  "description": "What a plan change costs, ported from the customer portal's change-plan sheet: the current and\nnew plan side by side, a sentence on when the change applies, then plain rows (credit for unused\ntime, charge for the new plan, the amount due today and the next invoice). Amounts are integer\nminor units rendered with `Money` (the credit as a muted negative with a true minus sign), the\ninvoice date with `Timestamp`. Rows are `OrderSummaryLine`s. Renders a `<section>` named by\n`title` or `aria-label` and described by the summary. The component does no proration maths:\npass the amounts from your billing API's preview.",
29333
30499
  "importPath": "@dodopayments/ui/proration-preview",
29334
30500
  "exports": [
@@ -29457,6 +30623,7 @@
29457
30623
  "title": "Stat Card",
29458
30624
  "category": "Blocks",
29459
30625
  "status": "stable",
30626
+ "level": "organism",
29460
30627
  "description": "A static metric (Dodo Nest Stat card): the label on a grey strip, the number in a white panel, and an optional\ntrend chip and comparison under it. Put a `StatCardBreakdown` inside for the parts of the number (Payout balance).\n`loading` shows Skeleton lines, `empty` shows \"-\" and a reason, and `error` (with `onRetry`) a retry; what replaces\nthe loading skeletons fades in. Cards in a CSS grid row (`StatGrid`) stretch to one height. `layout=\"inline\"`\ndrops the tray for a bare stat; a grouped `StatGrid` makes every card in it inline. Renders a `<section>` labelled by the\nlabel.",
29461
30628
  "importPath": "@dodopayments/ui/stat-card",
29462
30629
  "exports": [
@@ -29746,6 +30913,7 @@
29746
30913
  "title": "Settings Section",
29747
30914
  "category": "Blocks",
29748
30915
  "status": "stable",
30916
+ "level": "organism",
29749
30917
  "description": "A card of related settings, ported from the dashboard's settings pages: a heading with a\ndescription and an optional action, then rows (`SettingRow`, `SettingToggleRow`) separated by\ndividers, and an optional footer. Renders a `<section>` labelled by its heading.",
29750
30918
  "importPath": "@dodopayments/ui/settings-section",
29751
30919
  "exports": [
@@ -29862,6 +31030,13 @@
29862
31030
  "description": "`id` given to the description, so the control can reference it with `aria-describedby`.",
29863
31031
  "source": "dodo"
29864
31032
  },
31033
+ {
31034
+ "name": "icon",
31035
+ "type": "ReactNode",
31036
+ "required": false,
31037
+ "description": "A leading icon tile before the title, e.g. `<FeaturedIcon icon={<KeyIcon />} />`.",
31038
+ "source": "dodo"
31039
+ },
29865
31040
  {
29866
31041
  "name": "tooltip",
29867
31042
  "type": "ReactNode",
@@ -29954,6 +31129,13 @@
29954
31129
  "description": "What the setting does or its current state, under the title.",
29955
31130
  "source": "dodo"
29956
31131
  },
31132
+ {
31133
+ "name": "icon",
31134
+ "type": "ReactNode",
31135
+ "required": false,
31136
+ "description": "A leading icon tile before the title, e.g. `<FeaturedIcon icon={<KeyIcon />} />`.",
31137
+ "source": "dodo"
31138
+ },
29957
31139
  {
29958
31140
  "name": "switchProps",
29959
31141
  "type": "Omit<SwitchProps, \"defaultChecked\" | \"id\" | \"disabled\" | \"name\" | \"checked\" | \"onCheckedChange\">",
@@ -30029,6 +31211,7 @@
30029
31211
  "title": "Activity timeline",
30030
31212
  "category": "Blocks",
30031
31213
  "status": "stable",
31214
+ "level": "organism",
30032
31215
  "description": "Events over time on payment and customer detail pages and the blocklist log (Dodo Nest Activity\ntimeline): an `ol` of `ActivityTimelineItem`s, each with a tone icon (a 20px Featured icon, or a\ndot for `tone=\"none\"`), a line to the next event, a title, an optional description and a\n`Timestamp` on the right. Newest first. While `loading` it shows skeleton rows, with no events an\nempty state, on `error` an error state with an optional retry, and while `hasMore` a `LoadMore`\nbutton under the list. It holds no data: fetch, sort and word the events in your app. Put it in a\n`Card` titled \"Activity log\".",
30033
31216
  "importPath": "@dodopayments/ui/activity-timeline",
30034
31217
  "exports": [
@@ -30300,6 +31483,7 @@
30300
31483
  "title": "Auth Card",
30301
31484
  "category": "Blocks",
30302
31485
  "status": "stable",
31486
+ "level": "organism",
30303
31487
  "description": "Sign-in card, ported from the dashboard login page and the customer portal login: a logo, a\nheading and four steps. `\"email\"` shows optional social `providers` (the last used one says so\nat its end) with an \"Or\" divider and an email form; with `onPasswordContinue` its main button is\n\"Continue with password\" and a secondary \"Log in with OTP\" sends a code. `\"password\"` adds a\npassword field with a show/hide button and a forgot-password link (and keeps the providers with\n`providersOnPasswordStep`); `\"code\"` shows an `OtpField` that submits by itself once every slot\nis filled; `\"sent\"` tells the user to open the link in their email. You own `step` and switch it\nfrom your handlers; the card keeps the email, shows loading buttons for returned promises, moves\nfocus to the new step and shows `error` under the field it belongs to. Renders a `<section>`\nlabelled by the heading.",
30304
31488
  "importPath": "@dodopayments/ui/auth-card",
30305
31489
  "exports": [
@@ -30725,7 +31909,11 @@
30725
31909
  "slug": "product-card",
30726
31910
  "title": "Product Card",
30727
31911
  "category": "Blocks",
30728
- "status": "stable",
31912
+ "status": "deprecated",
31913
+ "deprecated": {
31914
+ "since": "1.8.0"
31915
+ },
31916
+ "level": "organism",
30729
31917
  "description": "Storefront product card, ported from the Dodo store front: a square blur-up photo (or\n`imageFallback`) with an optional `badge` and an info button that slides `description` up over\nthe image, then the name, `compareAtPrice` struck through, `price` and `interval`. Purchase turns\ninto a `QuantityStepper` and Buy now, which calls `onBuy(quantity)`; at 0 the stepper shows 0 and Buy\nnow is disabled, and focus follows the swap. Renders an `<article>` labelled by the name.",
30730
31918
  "importPath": "@dodopayments/ui/product-card",
30731
31919
  "exports": [
@@ -31024,6 +32212,7 @@
31024
32212
  "title": "Record Header",
31025
32213
  "category": "Blocks",
31026
32214
  "status": "stable",
32215
+ "level": "organism",
31027
32216
  "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.",
31028
32217
  "importPath": "@dodopayments/ui/record-header",
31029
32218
  "exports": [
@@ -31121,6 +32310,7 @@
31121
32310
  "title": "Brand logos",
31122
32311
  "category": "Brand",
31123
32312
  "status": "stable",
32313
+ "level": "atom",
31124
32314
  "description": "A brand's mark at 16px (size it with `size-*`), e.g. the provider type of a workload identity provider. Black or\nwhite marks (GitHub, Vercel, AWS's wordmark) use `currentColor`, so they follow the text in both themes; coloured\nmarks keep their brand colours.",
31125
32315
  "importPath": "@dodopayments/ui/brand-logos",
31126
32316
  "exports": [
@@ -31165,6 +32355,7 @@
31165
32355
  "title": "Payment logos & flags",
31166
32356
  "category": "Brand",
31167
32357
  "status": "stable",
32358
+ "level": "atom",
31168
32359
  "description": "The official logo of a card network, wallet, bank method, BNPL or crypto, 33 × 22 (detail pages, settings) or\n30 × 20 with `size=\"sm\"` (table rows), always 3:2 so the artwork is never cropped: the artwork itself with 4px corners and a hairline edge, so every corner reads the same on any\nbackground. Never recoloured; the same in dark mode. `unknown` is a neutral tile with a credit card icon. Named\nafter the brand unless `decorative`. Each logo loads on first use; until then its box holds the space.",
31169
32360
  "importPath": "@dodopayments/ui/payment-logos",
31170
32361
  "exports": [
@@ -31253,11 +32444,43 @@
31253
32444
  ],
31254
32445
  "docsUrl": "/components/payment-logos"
31255
32446
  },
32447
+ {
32448
+ "slug": "flag",
32449
+ "title": "Flag",
32450
+ "category": "Brand",
32451
+ "status": "beta",
32452
+ "level": "atom",
32453
+ "description": "A country flag for a currency or a country: the Nucleo flag, 20 × 14 with its corners clipped to 2, no\nborder, never recoloured. Decorative unless it gets an `aria-label` (give it one only when no country or\ncurrency name sits next to it). Each flag loads on first use; codes without a flag show a globe.",
32454
+ "importPath": "@dodopayments/ui/flag",
32455
+ "exports": [
32456
+ "FLAG_COUNTRIES",
32457
+ "Flag",
32458
+ "FlagProps"
32459
+ ],
32460
+ "parts": [
32461
+ {
32462
+ "name": "Flag",
32463
+ "description": "A country flag for a currency or a country: the Nucleo flag, 20 × 14 with its corners clipped to 2, no\nborder, never recoloured. Decorative unless it gets an `aria-label` (give it one only when no country or\ncurrency name sits next to it). Each flag loads on first use; codes without a flag show a globe.",
32464
+ "props": [
32465
+ {
32466
+ "name": "country",
32467
+ "type": "string",
32468
+ "required": true,
32469
+ "description": "ISO 3166-1 alpha-2 code, any case: `\"IN\"`, `\"us\"`. `\"EU\"` is the euro's flag.",
32470
+ "source": "dodo"
32471
+ }
32472
+ ]
32473
+ }
32474
+ ],
32475
+ "examples": [],
32476
+ "docsUrl": "/components/payment-logos"
32477
+ },
31256
32478
  {
31257
32479
  "slug": "card-field",
31258
32480
  "title": "Card Field",
31259
32481
  "category": "Forms",
31260
32482
  "status": "stable",
32483
+ "level": "organism",
31261
32484
  "description": "PCI-sensitive card form composing Input/InputGroup and Field errors. Use only when your integration permits raw card inputs, not as a substitute for PSP-hosted fields.",
31262
32485
  "importPath": "@dodopayments/ui/card-field",
31263
32486
  "exports": [
@@ -31332,7 +32555,11 @@
31332
32555
  "slug": "wallet-buttons",
31333
32556
  "title": "Wallet Buttons",
31334
32557
  "category": "Forms",
31335
- "status": "stable",
32558
+ "status": "deprecated",
32559
+ "deprecated": {
32560
+ "since": "1.8.0"
32561
+ },
32562
+ "level": "organism",
31336
32563
  "description": "Express checkout buttons for Apple Pay, Google Pay and Amazon Pay in the brands' black (white in dark mode) style,\nshown only for the wallets in `available`, with an \"Or pay another way\" divider before the other\npayment methods.",
31337
32564
  "importPath": "@dodopayments/ui/wallet-buttons",
31338
32565
  "exports": [
@@ -31395,7 +32622,11 @@
31395
32622
  "slug": "checkout-page",
31396
32623
  "title": "Checkout Page",
31397
32624
  "category": "Blocks",
31398
- "status": "stable",
32625
+ "status": "deprecated",
32626
+ "deprecated": {
32627
+ "since": "1.8.0"
32628
+ },
32629
+ "level": "atom",
31399
32630
  "description": "Two-column hosted checkout layout, after the Dodo checkout: the merchant brand and order summary on\nthe start side and the payment column on the end side, both pushed against the centre line and\nseparated by a soft seam, with no card around either. The columns stack (summary first) when the\nblock is narrower than 42rem; widths follow the page's own size, not the viewport, and a collapsible\n`OrderSummary` inside folds at the same width. Layout only:\ncompose it with `OrderSummary`, `WalletButtons`, `CardField`, consent `Checkbox`es and a trust footer (`footer`).\nIt renders no landmarks, so it can sit inside your app shell; wrap the page in `<main>` when it is\nthe page's main content.",
31400
32631
  "importPath": "@dodopayments/ui/checkout-page",
31401
32632
  "exports": [