@dodopayments/ui 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (718) hide show
  1. package/ai/component-registry.json +1595 -133
  2. package/ai/component-registry.md +6 -1
  3. package/ai/components/activity-timeline.md +1 -1
  4. package/ai/components/alert.md +1 -1
  5. package/ai/components/app-top-bar.md +51 -1
  6. package/ai/components/auth-card.md +2 -0
  7. package/ai/components/badge.md +24 -0
  8. package/ai/components/bar-chart.md +4 -2
  9. package/ai/components/brand-logos.md +1 -1
  10. package/ai/components/button.md +110 -12
  11. package/ai/components/card.md +6 -3
  12. package/ai/components/chart-share-card.md +25 -0
  13. package/ai/components/chart.md +27 -1
  14. package/ai/components/code-block.md +1 -1
  15. package/ai/components/collapsible.md +3 -3
  16. package/ai/components/color-input.md +1 -1
  17. package/ai/components/command.md +4 -1
  18. package/ai/components/comparison-bars.md +1 -0
  19. package/ai/components/country-select.md +1 -0
  20. package/ai/components/currency-select.md +1 -0
  21. package/ai/components/data-grid.md +94 -3
  22. package/ai/components/date-picker.md +1 -1
  23. package/ai/components/details-panel.md +5 -3
  24. package/ai/components/dialog.md +5 -2
  25. package/ai/components/drawer.md +292 -0
  26. package/ai/components/empty.md +1 -1
  27. package/ai/components/featured-icon.md +1 -0
  28. package/ai/components/field.md +15 -5
  29. package/ai/components/file-upload.md +1 -1
  30. package/ai/components/icon-morph.md +1 -1
  31. package/ai/components/image-crop.md +89 -0
  32. package/ai/components/input-group.md +1 -1
  33. package/ai/components/input.md +72 -6
  34. package/ai/components/invoice-document.md +182 -0
  35. package/ai/components/leaderboard.md +5 -2
  36. package/ai/components/link.md +1 -1
  37. package/ai/components/list-item.md +5 -4
  38. package/ai/components/load-more.md +1 -1
  39. package/ai/components/logo.md +1 -1
  40. package/ai/components/menu.md +10 -9
  41. package/ai/components/milestone.md +1 -1
  42. package/ai/components/navigation-progress.md +55 -0
  43. package/ai/components/new-items-pill.md +1 -1
  44. package/ai/components/page-header.md +4 -4
  45. package/ai/components/payment-logos.md +1 -1
  46. package/ai/components/popover.md +4 -1
  47. package/ai/components/quantity-stepper.md +3 -3
  48. package/ai/components/record-header.md +5 -5
  49. package/ai/components/reorder-list.md +45 -0
  50. package/ai/components/rich-text-editor.md +2 -0
  51. package/ai/components/scaled-frame.md +5 -3
  52. package/ai/components/select.md +33 -3
  53. package/ai/components/settings-section.md +3 -0
  54. package/ai/components/setup-guide.md +1 -1
  55. package/ai/components/sheet.md +10 -10
  56. package/ai/components/sidebar.md +15 -7
  57. package/ai/components/stat-card.md +7 -6
  58. package/ai/components/tabs.md +54 -4
  59. package/ai/components/test-mode-banner.md +4 -1
  60. package/ai/components/timestamp.md +11 -2
  61. package/ai/components/timezone-select.md +1 -0
  62. package/ai/skills/dodo-design/SKILL.md +15 -6
  63. package/dist/components/activity-timeline/activity-timeline.d.ts +1 -1
  64. package/dist/components/activity-timeline/activity-timeline.js +2 -2
  65. package/dist/components/activity-timeline/activity-timeline.js.map +1 -1
  66. package/dist/components/alert/alert.d.ts +2 -1
  67. package/dist/components/alert/alert.d.ts.map +1 -1
  68. package/dist/components/alert/alert.js +1 -1
  69. package/dist/components/alert/alert.js.map +1 -1
  70. package/dist/components/app-top-bar/app-top-bar.d.ts +27 -1
  71. package/dist/components/app-top-bar/app-top-bar.d.ts.map +1 -1
  72. package/dist/components/app-top-bar/app-top-bar.js +37 -11
  73. package/dist/components/app-top-bar/app-top-bar.js.map +1 -1
  74. package/dist/components/app-top-bar/index.d.ts +1 -1
  75. package/dist/components/app-top-bar/index.d.ts.map +1 -1
  76. package/dist/components/app-top-bar/index.js +1 -1
  77. package/dist/components/app-top-bar/index.js.map +1 -1
  78. package/dist/components/auth-card/auth-card.d.ts +13 -1
  79. package/dist/components/auth-card/auth-card.d.ts.map +1 -1
  80. package/dist/components/auth-card/auth-card.js +5 -5
  81. package/dist/components/auth-card/auth-card.js.map +1 -1
  82. package/dist/components/badge/badge-status.d.ts +3 -3
  83. package/dist/components/badge/badge-status.js +3 -3
  84. package/dist/components/badge/badge-status.js.map +1 -1
  85. package/dist/components/badge/badge.d.ts +12 -0
  86. package/dist/components/badge/badge.d.ts.map +1 -1
  87. package/dist/components/badge/badge.js +23 -4
  88. package/dist/components/badge/badge.js.map +1 -1
  89. package/dist/components/bar-chart/bar-chart.d.ts +2 -1
  90. package/dist/components/bar-chart/bar-chart.d.ts.map +1 -1
  91. package/dist/components/bar-chart/bar-chart.js +2 -1
  92. package/dist/components/bar-chart/bar-chart.js.map +1 -1
  93. package/dist/components/brand-logos/brand-artwork.d.ts +116 -1
  94. package/dist/components/brand-logos/brand-artwork.d.ts.map +1 -1
  95. package/dist/components/brand-logos/brand-artwork.js +116 -1
  96. package/dist/components/brand-logos/brand-artwork.js.map +1 -1
  97. package/dist/components/brand-logos/brand-logos.d.ts +5 -2
  98. package/dist/components/brand-logos/brand-logos.d.ts.map +1 -1
  99. package/dist/components/brand-logos/brand-logos.js +52 -2
  100. package/dist/components/brand-logos/brand-logos.js.map +1 -1
  101. package/dist/components/button/button-narrow-label.d.ts +11 -0
  102. package/dist/components/button/button-narrow-label.d.ts.map +1 -0
  103. package/dist/components/button/button-narrow-label.js +22 -0
  104. package/dist/components/button/button-narrow-label.js.map +1 -0
  105. package/dist/components/button/button.d.ts +41 -6
  106. package/dist/components/button/button.d.ts.map +1 -1
  107. package/dist/components/button/button.js +79 -14
  108. package/dist/components/button/button.js.map +1 -1
  109. package/dist/components/button/index.d.ts +1 -1
  110. package/dist/components/button/index.d.ts.map +1 -1
  111. package/dist/components/button/index.js +1 -1
  112. package/dist/components/button/index.js.map +1 -1
  113. package/dist/components/card/card-notice.d.ts.map +1 -1
  114. package/dist/components/card/card-notice.js +1 -1
  115. package/dist/components/card/card-notice.js.map +1 -1
  116. package/dist/components/card/card.d.ts +16 -5
  117. package/dist/components/card/card.d.ts.map +1 -1
  118. package/dist/components/card/card.js +13 -4
  119. package/dist/components/card/card.js.map +1 -1
  120. package/dist/components/chart-share-card/chart-share-card.d.ts +31 -0
  121. package/dist/components/chart-share-card/chart-share-card.d.ts.map +1 -0
  122. package/dist/components/chart-share-card/chart-share-card.js +15 -0
  123. package/dist/components/chart-share-card/chart-share-card.js.map +1 -0
  124. package/dist/components/chart-share-card/index.d.ts +2 -0
  125. package/dist/components/chart-share-card/index.d.ts.map +1 -0
  126. package/dist/components/chart-share-card/index.js +2 -0
  127. package/dist/components/chart-share-card/index.js.map +1 -0
  128. package/dist/components/code-block/code-block.d.ts +1 -1
  129. package/dist/components/code-block/code-block.d.ts.map +1 -1
  130. package/dist/components/code-block/code-block.js +23 -4
  131. package/dist/components/code-block/code-block.js.map +1 -1
  132. package/dist/components/code-block/highlight-shell.d.ts +9 -0
  133. package/dist/components/code-block/highlight-shell.d.ts.map +1 -0
  134. package/dist/components/code-block/highlight-shell.js +53 -0
  135. package/dist/components/code-block/highlight-shell.js.map +1 -0
  136. package/dist/components/collapsible/collapsible.d.ts +2 -2
  137. package/dist/components/collapsible/collapsible.js +4 -4
  138. package/dist/components/collapsible/collapsible.js.map +1 -1
  139. package/dist/components/command/command-palette.d.ts +15 -2
  140. package/dist/components/command/command-palette.d.ts.map +1 -1
  141. package/dist/components/command/command-palette.js +8 -5
  142. package/dist/components/command/command-palette.js.map +1 -1
  143. package/dist/components/comparison-bars/comparison-bars.d.ts +13 -2
  144. package/dist/components/comparison-bars/comparison-bars.d.ts.map +1 -1
  145. package/dist/components/comparison-bars/comparison-bars.js +3 -3
  146. package/dist/components/comparison-bars/comparison-bars.js.map +1 -1
  147. package/dist/components/country-select/country-select.d.ts +6 -1
  148. package/dist/components/country-select/country-select.d.ts.map +1 -1
  149. package/dist/components/country-select/country-select.js +2 -2
  150. package/dist/components/country-select/country-select.js.map +1 -1
  151. package/dist/components/currency-select/currency-select.d.ts +6 -1
  152. package/dist/components/currency-select/currency-select.d.ts.map +1 -1
  153. package/dist/components/currency-select/currency-select.js +2 -2
  154. package/dist/components/currency-select/currency-select.js.map +1 -1
  155. package/dist/components/data-grid/bulk-actions.js +2 -2
  156. package/dist/components/data-grid/bulk-actions.js.map +1 -1
  157. package/dist/components/data-grid/data-grid.d.ts +32 -2
  158. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  159. package/dist/components/data-grid/data-grid.js +193 -13
  160. package/dist/components/data-grid/data-grid.js.map +1 -1
  161. package/dist/components/date-picker/date-picker.d.ts +5 -0
  162. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  163. package/dist/components/date-picker/date-picker.js +4 -4
  164. package/dist/components/date-picker/date-picker.js.map +1 -1
  165. package/dist/components/details-panel/details-panel.d.ts +11 -4
  166. package/dist/components/details-panel/details-panel.d.ts.map +1 -1
  167. package/dist/components/details-panel/details-panel.js +13 -12
  168. package/dist/components/details-panel/details-panel.js.map +1 -1
  169. package/dist/components/dialog/dialog.d.ts +12 -4
  170. package/dist/components/dialog/dialog.d.ts.map +1 -1
  171. package/dist/components/dialog/dialog.js +46 -7
  172. package/dist/components/dialog/dialog.js.map +1 -1
  173. package/dist/components/drawer/drawer.d.ts +73 -0
  174. package/dist/components/drawer/drawer.d.ts.map +1 -0
  175. package/dist/components/drawer/drawer.js +56 -0
  176. package/dist/components/drawer/drawer.js.map +1 -0
  177. package/dist/components/drawer/index.d.ts +2 -0
  178. package/dist/components/drawer/index.d.ts.map +1 -0
  179. package/dist/components/drawer/index.js +2 -0
  180. package/dist/components/drawer/index.js.map +1 -0
  181. package/dist/components/empty/empty.d.ts +3 -2
  182. package/dist/components/empty/empty.d.ts.map +1 -1
  183. package/dist/components/empty/empty.js.map +1 -1
  184. package/dist/components/featured-icon/featured-icon.d.ts +103 -1
  185. package/dist/components/featured-icon/featured-icon.d.ts.map +1 -1
  186. package/dist/components/featured-icon/featured-icon.js +61 -3
  187. package/dist/components/featured-icon/featured-icon.js.map +1 -1
  188. package/dist/components/featured-icon/index.d.ts +1 -1
  189. package/dist/components/featured-icon/index.d.ts.map +1 -1
  190. package/dist/components/featured-icon/index.js +1 -1
  191. package/dist/components/featured-icon/index.js.map +1 -1
  192. package/dist/components/featured-icon/sphere.d.ts +7 -0
  193. package/dist/components/featured-icon/sphere.d.ts.map +1 -0
  194. package/dist/components/featured-icon/sphere.js +29 -0
  195. package/dist/components/featured-icon/sphere.js.map +1 -0
  196. package/dist/components/field/field.d.ts +8 -6
  197. package/dist/components/field/field.d.ts.map +1 -1
  198. package/dist/components/field/field.js +15 -7
  199. package/dist/components/field/field.js.map +1 -1
  200. package/dist/components/field/index.d.ts +1 -0
  201. package/dist/components/field/index.d.ts.map +1 -1
  202. package/dist/components/field/index.js +1 -0
  203. package/dist/components/field/index.js.map +1 -1
  204. package/dist/components/field/label.d.ts +2 -1
  205. package/dist/components/field/label.d.ts.map +1 -1
  206. package/dist/components/field/label.js +2 -1
  207. package/dist/components/field/label.js.map +1 -1
  208. package/dist/components/file-upload/file-upload.d.ts +1 -1
  209. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  210. package/dist/components/file-upload/file-upload.js +1 -1
  211. package/dist/components/file-upload/file-upload.js.map +1 -1
  212. package/dist/components/icon-morph/icon-morph.d.ts +1 -1
  213. package/dist/components/icon-morph/icon-morph.d.ts.map +1 -1
  214. package/dist/components/icon-morph/icon-morph.js.map +1 -1
  215. package/dist/components/image-crop/crop-math.d.ts +28 -0
  216. package/dist/components/image-crop/crop-math.d.ts.map +1 -0
  217. package/dist/components/image-crop/crop-math.js +53 -0
  218. package/dist/components/image-crop/crop-math.js.map +1 -0
  219. package/dist/components/image-crop/image-crop.d.ts +31 -0
  220. package/dist/components/image-crop/image-crop.d.ts.map +1 -0
  221. package/dist/components/image-crop/image-crop.js +165 -0
  222. package/dist/components/image-crop/image-crop.js.map +1 -0
  223. package/dist/components/image-crop/index.d.ts +2 -0
  224. package/dist/components/image-crop/index.d.ts.map +1 -0
  225. package/dist/components/image-crop/index.js +2 -0
  226. package/dist/components/image-crop/index.js.map +1 -0
  227. package/dist/components/input/input-suggestions.d.ts +1 -1
  228. package/dist/components/input/input-suggestions.d.ts.map +1 -1
  229. package/dist/components/input/input-suggestions.js +21 -4
  230. package/dist/components/input/input-suggestions.js.map +1 -1
  231. package/dist/components/input/input.d.ts +27 -8
  232. package/dist/components/input/input.d.ts.map +1 -1
  233. package/dist/components/input/input.js +28 -9
  234. package/dist/components/input/input.js.map +1 -1
  235. package/dist/components/input-group/input-group.d.ts +2 -2
  236. package/dist/components/input-group/input-group.d.ts.map +1 -1
  237. package/dist/components/input-group/input-group.js +1 -1
  238. package/dist/components/input-group/input-group.js.map +1 -1
  239. package/dist/components/invoice-document/index.d.ts +2 -0
  240. package/dist/components/invoice-document/index.d.ts.map +1 -0
  241. package/dist/components/invoice-document/index.js +2 -0
  242. package/dist/components/invoice-document/index.js.map +1 -0
  243. package/dist/components/invoice-document/invoice-document.d.ts +180 -0
  244. package/dist/components/invoice-document/invoice-document.d.ts.map +1 -0
  245. package/dist/components/invoice-document/invoice-document.js +58 -0
  246. package/dist/components/invoice-document/invoice-document.js.map +1 -0
  247. package/dist/components/leaderboard/leaderboard.d.ts +3 -1
  248. package/dist/components/leaderboard/leaderboard.d.ts.map +1 -1
  249. package/dist/components/leaderboard/leaderboard.js +7 -5
  250. package/dist/components/leaderboard/leaderboard.js.map +1 -1
  251. package/dist/components/link/link.d.ts +4 -3
  252. package/dist/components/link/link.d.ts.map +1 -1
  253. package/dist/components/link/link.js +21 -2
  254. package/dist/components/link/link.js.map +1 -1
  255. package/dist/components/list-item/list-item.d.ts +12 -6
  256. package/dist/components/list-item/list-item.d.ts.map +1 -1
  257. package/dist/components/list-item/list-item.js +5 -5
  258. package/dist/components/list-item/list-item.js.map +1 -1
  259. package/dist/components/list-toolbar/list-toolbar-date-range.js +1 -1
  260. package/dist/components/list-toolbar/list-toolbar-date-range.js.map +1 -1
  261. package/dist/components/list-toolbar/list-toolbar.js +1 -1
  262. package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
  263. package/dist/components/logo/logo.d.ts +5 -1
  264. package/dist/components/logo/logo.d.ts.map +1 -1
  265. package/dist/components/logo/logo.js +7 -3
  266. package/dist/components/logo/logo.js.map +1 -1
  267. package/dist/components/menu/menu.d.ts +10 -9
  268. package/dist/components/menu/menu.d.ts.map +1 -1
  269. package/dist/components/menu/menu.js +5 -4
  270. package/dist/components/menu/menu.js.map +1 -1
  271. package/dist/components/milestone/milestone.js +1 -1
  272. package/dist/components/milestone/milestone.js.map +1 -1
  273. package/dist/components/money/money.d.ts.map +1 -1
  274. package/dist/components/money/money.js +3 -3
  275. package/dist/components/money/money.js.map +1 -1
  276. package/dist/components/navigation-progress/index.d.ts +2 -0
  277. package/dist/components/navigation-progress/index.d.ts.map +1 -0
  278. package/dist/components/navigation-progress/index.js +2 -0
  279. package/dist/components/navigation-progress/index.js.map +1 -0
  280. package/dist/components/navigation-progress/navigation-progress.d.ts +23 -0
  281. package/dist/components/navigation-progress/navigation-progress.d.ts.map +1 -0
  282. package/dist/components/navigation-progress/navigation-progress.js +53 -0
  283. package/dist/components/navigation-progress/navigation-progress.js.map +1 -0
  284. package/dist/components/page-header/page-header.d.ts +3 -3
  285. package/dist/components/page-header/page-header.d.ts.map +1 -1
  286. package/dist/components/page-header/page-header.js +9 -13
  287. package/dist/components/page-header/page-header.js.map +1 -1
  288. package/dist/components/pagination/pagination.d.ts.map +1 -1
  289. package/dist/components/pagination/pagination.js +4 -2
  290. package/dist/components/pagination/pagination.js.map +1 -1
  291. package/dist/components/payment-logos/artwork/link.d.ts +2 -0
  292. package/dist/components/payment-logos/artwork/link.d.ts.map +1 -0
  293. package/dist/components/payment-logos/artwork/link.js +5 -0
  294. package/dist/components/payment-logos/artwork/link.js.map +1 -0
  295. package/dist/components/payment-logos/payment-logos.d.ts +1 -1
  296. package/dist/components/payment-logos/payment-logos.d.ts.map +1 -1
  297. package/dist/components/payment-logos/payment-logos.js +3 -0
  298. package/dist/components/payment-logos/payment-logos.js.map +1 -1
  299. package/dist/components/popover/popover.d.ts +12 -1
  300. package/dist/components/popover/popover.d.ts.map +1 -1
  301. package/dist/components/popover/popover.js +4 -2
  302. package/dist/components/popover/popover.js.map +1 -1
  303. package/dist/components/quantity-stepper/quantity-stepper.d.ts +3 -3
  304. package/dist/components/quantity-stepper/quantity-stepper.js +3 -3
  305. package/dist/components/quantity-stepper/quantity-stepper.js.map +1 -1
  306. package/dist/components/radio-group/radio-group.d.ts.map +1 -1
  307. package/dist/components/radio-group/radio-group.js +7 -5
  308. package/dist/components/radio-group/radio-group.js.map +1 -1
  309. package/dist/components/record-header/record-header.d.ts +7 -3
  310. package/dist/components/record-header/record-header.d.ts.map +1 -1
  311. package/dist/components/record-header/record-header.js +11 -3
  312. package/dist/components/record-header/record-header.js.map +1 -1
  313. package/dist/components/reorder-list/reorder-list.d.ts +11 -2
  314. package/dist/components/reorder-list/reorder-list.d.ts.map +1 -1
  315. package/dist/components/reorder-list/reorder-list.js +39 -16
  316. package/dist/components/reorder-list/reorder-list.js.map +1 -1
  317. package/dist/components/rich-text-editor/rich-text-editor.d.ts +13 -1
  318. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  319. package/dist/components/rich-text-editor/rich-text-editor.js +17 -9
  320. package/dist/components/rich-text-editor/rich-text-editor.js.map +1 -1
  321. package/dist/components/rich-text-editor/rich-text-extensions.d.ts +5 -2
  322. package/dist/components/rich-text-editor/rich-text-extensions.d.ts.map +1 -1
  323. package/dist/components/rich-text-editor/rich-text-extensions.js +43 -5
  324. package/dist/components/rich-text-editor/rich-text-extensions.js.map +1 -1
  325. package/dist/components/rich-text-editor/rich-text-markdown.d.ts +9 -3
  326. package/dist/components/rich-text-editor/rich-text-markdown.d.ts.map +1 -1
  327. package/dist/components/rich-text-editor/rich-text-markdown.js +134 -44
  328. package/dist/components/rich-text-editor/rich-text-markdown.js.map +1 -1
  329. package/dist/components/scaled-frame/scaled-frame.d.ts +8 -3
  330. package/dist/components/scaled-frame/scaled-frame.d.ts.map +1 -1
  331. package/dist/components/scaled-frame/scaled-frame.js +27 -2
  332. package/dist/components/scaled-frame/scaled-frame.js.map +1 -1
  333. package/dist/components/segmented-control/segmented-control.d.ts +2 -2
  334. package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
  335. package/dist/components/segmented-control/segmented-control.js +10 -2
  336. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  337. package/dist/components/select/select.d.ts +25 -4
  338. package/dist/components/select/select.d.ts.map +1 -1
  339. package/dist/components/select/select.js +34 -14
  340. package/dist/components/select/select.js.map +1 -1
  341. package/dist/components/settings-section/settings-section.d.ts +8 -1
  342. package/dist/components/settings-section/settings-section.d.ts.map +1 -1
  343. package/dist/components/settings-section/settings-section.js +8 -8
  344. package/dist/components/settings-section/settings-section.js.map +1 -1
  345. package/dist/components/setup-guide/setup-guide.d.ts +2 -2
  346. package/dist/components/setup-guide/setup-guide.js +2 -2
  347. package/dist/components/setup-guide/setup-guide.js.map +1 -1
  348. package/dist/components/sheet/sheet.d.ts +16 -5
  349. package/dist/components/sheet/sheet.d.ts.map +1 -1
  350. package/dist/components/sheet/sheet.js +9 -5
  351. package/dist/components/sheet/sheet.js.map +1 -1
  352. package/dist/components/sidebar/sidebar.d.ts +32 -12
  353. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  354. package/dist/components/sidebar/sidebar.js +38 -19
  355. package/dist/components/sidebar/sidebar.js.map +1 -1
  356. package/dist/components/skeleton/page-skeleton.js +1 -1
  357. package/dist/components/skeleton/page-skeleton.js.map +1 -1
  358. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  359. package/dist/components/skeleton/skeleton.js +7 -7
  360. package/dist/components/skeleton/skeleton.js.map +1 -1
  361. package/dist/components/stat-card/stat-card.d.ts +24 -10
  362. package/dist/components/stat-card/stat-card.d.ts.map +1 -1
  363. package/dist/components/stat-card/stat-card.js +27 -18
  364. package/dist/components/stat-card/stat-card.js.map +1 -1
  365. package/dist/components/subscription-card/subscription-card.js +1 -1
  366. package/dist/components/subscription-card/subscription-card.js.map +1 -1
  367. package/dist/components/tabs/index.d.ts +1 -1
  368. package/dist/components/tabs/index.d.ts.map +1 -1
  369. package/dist/components/tabs/index.js +1 -1
  370. package/dist/components/tabs/index.js.map +1 -1
  371. package/dist/components/tabs/tabs.d.ts +47 -6
  372. package/dist/components/tabs/tabs.d.ts.map +1 -1
  373. package/dist/components/tabs/tabs.js +108 -9
  374. package/dist/components/tabs/tabs.js.map +1 -1
  375. package/dist/components/test-mode-banner/test-mode-banner.d.ts.map +1 -1
  376. package/dist/components/test-mode-banner/test-mode-banner.js +3 -2
  377. package/dist/components/test-mode-banner/test-mode-banner.js.map +1 -1
  378. package/dist/components/timestamp/index.d.ts +1 -1
  379. package/dist/components/timestamp/index.d.ts.map +1 -1
  380. package/dist/components/timestamp/index.js +1 -1
  381. package/dist/components/timestamp/index.js.map +1 -1
  382. package/dist/components/timestamp/timestamp.d.ts +12 -2
  383. package/dist/components/timestamp/timestamp.d.ts.map +1 -1
  384. package/dist/components/timestamp/timestamp.js +11 -1
  385. package/dist/components/timestamp/timestamp.js.map +1 -1
  386. package/dist/components/timezone-select/timezone-select.d.ts +6 -1
  387. package/dist/components/timezone-select/timezone-select.d.ts.map +1 -1
  388. package/dist/components/timezone-select/timezone-select.js +2 -2
  389. package/dist/components/timezone-select/timezone-select.js.map +1 -1
  390. package/dist/components/tooltip/tooltip.js +1 -1
  391. package/dist/components/tooltip/tooltip.js.map +1 -1
  392. package/dist/icons/flags/basque.d.ts.map +1 -0
  393. package/dist/icons/flags/basque.js.map +1 -0
  394. package/dist/icons/flags/canary-islands.d.ts.map +1 -0
  395. package/dist/icons/flags/canary-islands.js.map +1 -0
  396. package/dist/icons/flags/england.d.ts.map +1 -0
  397. package/dist/icons/flags/england.js.map +1 -0
  398. package/dist/icons/flags/hawaii.d.ts.map +1 -0
  399. package/dist/icons/flags/hawaii.js.map +1 -0
  400. package/dist/icons/flags/kurdistan.d.ts.map +1 -0
  401. package/dist/icons/flags/kurdistan.js.map +1 -0
  402. package/dist/icons/flags/netherlands-antilles.d.ts.map +1 -0
  403. package/dist/icons/flags/netherlands-antilles.js.map +1 -0
  404. package/dist/icons/flags/northen-ireland.d.ts.map +1 -0
  405. package/dist/icons/flags/northen-ireland.js.map +1 -0
  406. package/dist/icons/flags/scotland.d.ts.map +1 -0
  407. package/dist/icons/flags/scotland.js.map +1 -0
  408. package/dist/icons/flags/wales.d.ts.map +1 -0
  409. package/dist/icons/flags/wales.js.map +1 -0
  410. package/dist/icons/index.d.ts +21 -0
  411. package/dist/icons/index.d.ts.map +1 -0
  412. package/dist/icons/index.js +21 -0
  413. package/dist/icons/index.js.map +1 -0
  414. package/dist/icons/ui/ai-agents.d.ts +3 -0
  415. package/dist/icons/ui/ai-agents.d.ts.map +1 -0
  416. package/dist/icons/ui/ai-agents.js +5 -0
  417. package/dist/icons/ui/ai-agents.js.map +1 -0
  418. package/dist/icons/ui/archive.d.ts.map +1 -0
  419. package/dist/icons/ui/archive.js.map +1 -0
  420. package/dist/icons/ui/arrow-door-out-3.d.ts.map +1 -0
  421. package/dist/icons/ui/arrow-door-out-3.js.map +1 -0
  422. package/dist/icons/ui/arrow-door-out.d.ts.map +1 -0
  423. package/dist/icons/ui/arrow-door-out.js.map +1 -0
  424. package/dist/icons/ui/arrow-left.d.ts.map +1 -0
  425. package/dist/icons/ui/arrow-left.js.map +1 -0
  426. package/dist/icons/ui/arrow-turn-right.d.ts +3 -0
  427. package/dist/icons/ui/arrow-turn-right.d.ts.map +1 -0
  428. package/dist/icons/ui/arrow-turn-right.js +5 -0
  429. package/dist/icons/ui/arrow-turn-right.js.map +1 -0
  430. package/dist/icons/ui/arrows-transaction.d.ts.map +1 -0
  431. package/dist/icons/ui/arrows-transaction.js.map +1 -0
  432. package/dist/icons/ui/bell-outline-duo.d.ts.map +1 -0
  433. package/dist/icons/ui/bell-outline-duo.js.map +1 -0
  434. package/dist/icons/ui/bolt.d.ts.map +1 -0
  435. package/dist/icons/ui/bolt.js.map +1 -0
  436. package/dist/icons/ui/book-open.d.ts +3 -0
  437. package/dist/icons/ui/book-open.d.ts.map +1 -0
  438. package/dist/icons/ui/book-open.js +5 -0
  439. package/dist/icons/ui/book-open.js.map +1 -0
  440. package/dist/icons/ui/box-glyph.d.ts +3 -0
  441. package/dist/icons/ui/box-glyph.d.ts.map +1 -0
  442. package/dist/icons/ui/box-glyph.js +5 -0
  443. package/dist/icons/ui/box-glyph.js.map +1 -0
  444. package/dist/icons/ui/box-plus.d.ts.map +1 -0
  445. package/dist/icons/ui/box-plus.js.map +1 -0
  446. package/dist/icons/ui/chart-pie.d.ts.map +1 -0
  447. package/dist/icons/ui/chart-pie.js.map +1 -0
  448. package/dist/icons/ui/chat-bubble-writing.d.ts +3 -0
  449. package/dist/icons/ui/chat-bubble-writing.d.ts.map +1 -0
  450. package/dist/icons/ui/chat-bubble-writing.js +5 -0
  451. package/dist/icons/ui/chat-bubble-writing.js.map +1 -0
  452. package/dist/icons/ui/check-glyph-12.d.ts.map +1 -0
  453. package/dist/icons/ui/check-glyph-12.js.map +1 -0
  454. package/dist/icons/ui/circle-check-glyph.d.ts +3 -0
  455. package/dist/icons/ui/circle-check-glyph.d.ts.map +1 -0
  456. package/dist/icons/ui/circle-check-glyph.js +5 -0
  457. package/dist/icons/ui/circle-check-glyph.js.map +1 -0
  458. package/dist/icons/ui/circle-user-check.d.ts.map +1 -0
  459. package/dist/icons/ui/circle-user-check.js.map +1 -0
  460. package/dist/icons/ui/coins.d.ts.map +1 -0
  461. package/dist/icons/ui/coins.js.map +1 -0
  462. package/dist/icons/ui/crop.d.ts +3 -0
  463. package/dist/icons/ui/crop.d.ts.map +1 -0
  464. package/dist/icons/ui/crop.js +5 -0
  465. package/dist/icons/ui/crop.js.map +1 -0
  466. package/dist/icons/ui/dots-vertical.d.ts.map +1 -0
  467. package/dist/icons/ui/dots-vertical.js.map +1 -0
  468. package/dist/icons/ui/fingerprint.d.ts.map +1 -0
  469. package/dist/icons/ui/fingerprint.js.map +1 -0
  470. package/dist/icons/ui/flask.d.ts.map +1 -0
  471. package/dist/icons/ui/flask.js.map +1 -0
  472. package/dist/icons/ui/gear.d.ts.map +1 -0
  473. package/dist/icons/ui/gear.js.map +1 -0
  474. package/dist/icons/ui/greek-temple-glyph.d.ts +3 -0
  475. package/dist/icons/ui/greek-temple-glyph.d.ts.map +1 -0
  476. package/dist/icons/ui/greek-temple-glyph.js +5 -0
  477. package/dist/icons/ui/greek-temple-glyph.js.map +1 -0
  478. package/dist/icons/ui/greek-temple.d.ts.map +1 -0
  479. package/dist/icons/ui/greek-temple.js.map +1 -0
  480. package/dist/icons/ui/grid.d.ts +3 -0
  481. package/dist/icons/ui/grid.d.ts.map +1 -0
  482. package/dist/icons/ui/grid.js +5 -0
  483. package/dist/icons/ui/grid.js.map +1 -0
  484. package/dist/icons/ui/heart-glyph.d.ts.map +1 -0
  485. package/dist/icons/ui/heart-glyph.js.map +1 -0
  486. package/dist/icons/ui/heart.d.ts.map +1 -0
  487. package/dist/icons/ui/heart.js.map +1 -0
  488. package/dist/icons/ui/hourglass-glyph.d.ts +3 -0
  489. package/dist/icons/ui/hourglass-glyph.d.ts.map +1 -0
  490. package/dist/icons/ui/hourglass-glyph.js +5 -0
  491. package/dist/icons/ui/hourglass-glyph.js.map +1 -0
  492. package/dist/icons/ui/house.d.ts.map +1 -0
  493. package/dist/icons/ui/house.js.map +1 -0
  494. package/dist/icons/ui/key.d.ts.map +1 -0
  495. package/dist/icons/ui/key.js.map +1 -0
  496. package/dist/icons/ui/lightbulb.d.ts +3 -0
  497. package/dist/icons/ui/lightbulb.d.ts.map +1 -0
  498. package/dist/icons/ui/lightbulb.js +5 -0
  499. package/dist/icons/ui/lightbulb.js.map +1 -0
  500. package/dist/icons/ui/link.d.ts +3 -0
  501. package/dist/icons/ui/link.d.ts.map +1 -0
  502. package/dist/icons/ui/link.js +5 -0
  503. package/dist/icons/ui/link.js.map +1 -0
  504. package/dist/icons/ui/media-pause.d.ts +3 -0
  505. package/dist/icons/ui/media-pause.d.ts.map +1 -0
  506. package/dist/icons/ui/media-pause.js +5 -0
  507. package/dist/icons/ui/media-pause.js.map +1 -0
  508. package/dist/icons/ui/media-play.d.ts +3 -0
  509. package/dist/icons/ui/media-play.d.ts.map +1 -0
  510. package/dist/icons/ui/media-play.js +5 -0
  511. package/dist/icons/ui/media-play.js.map +1 -0
  512. package/dist/icons/ui/money-bill.d.ts.map +1 -0
  513. package/dist/icons/ui/money-bill.js.map +1 -0
  514. package/dist/icons/ui/money-bills.d.ts.map +1 -0
  515. package/dist/icons/ui/money-bills.js.map +1 -0
  516. package/dist/icons/ui/money-refund.d.ts.map +1 -0
  517. package/dist/icons/ui/money-refund.js.map +1 -0
  518. package/dist/icons/ui/monitor.d.ts.map +1 -0
  519. package/dist/icons/ui/monitor.js.map +1 -0
  520. package/dist/icons/ui/moon.d.ts.map +1 -0
  521. package/dist/icons/ui/moon.js.map +1 -0
  522. package/dist/icons/ui/paper-plane.d.ts +3 -0
  523. package/dist/icons/ui/paper-plane.d.ts.map +1 -0
  524. package/dist/icons/ui/paper-plane.js +5 -0
  525. package/dist/icons/ui/paper-plane.js.map +1 -0
  526. package/dist/icons/ui/pencil.d.ts.map +1 -0
  527. package/dist/icons/ui/pencil.js.map +1 -0
  528. package/dist/icons/ui/print.d.ts +3 -0
  529. package/dist/icons/ui/print.d.ts.map +1 -0
  530. package/dist/icons/ui/print.js +5 -0
  531. package/dist/icons/ui/print.js.map +1 -0
  532. package/dist/icons/ui/refresh-clockwise.d.ts.map +1 -0
  533. package/dist/icons/ui/refresh-clockwise.js.map +1 -0
  534. package/dist/icons/ui/report.d.ts.map +1 -0
  535. package/dist/icons/ui/report.js.map +1 -0
  536. package/dist/icons/ui/shield-check.d.ts.map +1 -0
  537. package/dist/icons/ui/shield-check.js.map +1 -0
  538. package/dist/icons/ui/shop-glyph.d.ts +3 -0
  539. package/dist/icons/ui/shop-glyph.d.ts.map +1 -0
  540. package/dist/icons/ui/shop-glyph.js +5 -0
  541. package/dist/icons/ui/shop-glyph.js.map +1 -0
  542. package/dist/icons/ui/sliders.d.ts.map +1 -0
  543. package/dist/icons/ui/sliders.js.map +1 -0
  544. package/dist/icons/ui/star-glyph-duo.d.ts.map +1 -0
  545. package/dist/icons/ui/star-glyph-duo.js.map +1 -0
  546. package/dist/icons/ui/star-glyph.d.ts.map +1 -0
  547. package/dist/icons/ui/star-glyph.js.map +1 -0
  548. package/dist/icons/ui/star-outline-duo.d.ts.map +1 -0
  549. package/dist/icons/ui/star-outline-duo.js.map +1 -0
  550. package/dist/icons/ui/star.d.ts.map +1 -0
  551. package/dist/icons/ui/star.js.map +1 -0
  552. package/dist/icons/ui/sun.d.ts.map +1 -0
  553. package/dist/icons/ui/sun.js.map +1 -0
  554. package/dist/icons/ui/terminal.d.ts.map +1 -0
  555. package/dist/icons/ui/terminal.js.map +1 -0
  556. package/dist/icons/ui/text-align-center.d.ts.map +1 -0
  557. package/dist/icons/ui/text-align-center.js.map +1 -0
  558. package/dist/icons/ui/text-align-left.d.ts.map +1 -0
  559. package/dist/icons/ui/text-align-left.js.map +1 -0
  560. package/dist/icons/ui/text-align-right.d.ts.map +1 -0
  561. package/dist/icons/ui/text-align-right.js.map +1 -0
  562. package/dist/icons/ui/ticket.d.ts.map +1 -0
  563. package/dist/icons/ui/ticket.js.map +1 -0
  564. package/dist/icons/ui/trash-2.d.ts.map +1 -0
  565. package/dist/icons/ui/trash-2.js.map +1 -0
  566. package/dist/icons/ui/triangle-warning-glyph.d.ts +3 -0
  567. package/dist/icons/ui/triangle-warning-glyph.d.ts.map +1 -0
  568. package/dist/icons/ui/triangle-warning-glyph.js +5 -0
  569. package/dist/icons/ui/triangle-warning-glyph.js.map +1 -0
  570. package/dist/icons/ui/user-glyph.d.ts +3 -0
  571. package/dist/icons/ui/user-glyph.d.ts.map +1 -0
  572. package/dist/icons/ui/user-glyph.js +5 -0
  573. package/dist/icons/ui/user-glyph.js.map +1 -0
  574. package/dist/icons/ui/user-plus.d.ts +3 -0
  575. package/dist/icons/ui/user-plus.d.ts.map +1 -0
  576. package/dist/icons/ui/user-plus.js +5 -0
  577. package/dist/icons/ui/user-plus.js.map +1 -0
  578. package/dist/icons/ui/users.d.ts.map +1 -0
  579. package/dist/icons/ui/users.js.map +1 -0
  580. package/dist/icons/ui/wallet-outline-duo.d.ts.map +1 -0
  581. package/dist/icons/ui/wallet-outline-duo.js.map +1 -0
  582. package/dist/icons/ui/wallet.d.ts.map +1 -0
  583. package/dist/icons/ui/wallet.js.map +1 -0
  584. package/dist/icons/ui/wand-sparkle.d.ts.map +1 -0
  585. package/dist/icons/ui/wand-sparkle.js.map +1 -0
  586. package/dist/icons/ui/wifi-off.d.ts +3 -0
  587. package/dist/icons/ui/wifi-off.d.ts.map +1 -0
  588. package/dist/icons/ui/wifi-off.js +5 -0
  589. package/dist/icons/ui/wifi-off.js.map +1 -0
  590. package/dist/index.d.ts +4 -0
  591. package/dist/index.d.ts.map +1 -1
  592. package/dist/index.js +4 -0
  593. package/dist/index.js.map +1 -1
  594. package/dist/lib/locale-messages.d.ts +8 -0
  595. package/dist/lib/locale-messages.d.ts.map +1 -1
  596. package/dist/lib/locale-messages.js +9 -0
  597. package/dist/lib/locale-messages.js.map +1 -1
  598. package/dist/locales/ar.d.ts.map +1 -1
  599. package/dist/locales/ar.js +6 -0
  600. package/dist/locales/ar.js.map +1 -1
  601. package/dist/locales/de.d.ts.map +1 -1
  602. package/dist/locales/de.js +6 -0
  603. package/dist/locales/de.js.map +1 -1
  604. package/dist/locales/es.d.ts.map +1 -1
  605. package/dist/locales/es.js +6 -0
  606. package/dist/locales/es.js.map +1 -1
  607. package/dist/locales/fr.d.ts.map +1 -1
  608. package/dist/locales/fr.js +6 -0
  609. package/dist/locales/fr.js.map +1 -1
  610. package/dist/locales/he.d.ts.map +1 -1
  611. package/dist/locales/he.js +6 -0
  612. package/dist/locales/he.js.map +1 -1
  613. package/dist/locales/hi.d.ts.map +1 -1
  614. package/dist/locales/hi.js +6 -0
  615. package/dist/locales/hi.js.map +1 -1
  616. package/dist/locales/ja.d.ts.map +1 -1
  617. package/dist/locales/ja.js +6 -0
  618. package/dist/locales/ja.js.map +1 -1
  619. package/dist/locales/pt-BR.d.ts.map +1 -1
  620. package/dist/locales/pt-BR.js +6 -0
  621. package/dist/locales/pt-BR.js.map +1 -1
  622. package/dist/locales/zh-CN.d.ts.map +1 -1
  623. package/dist/locales/zh-CN.js +6 -0
  624. package/dist/locales/zh-CN.js.map +1 -1
  625. package/dist/primitives/charts/bar-chart.d.ts.map +1 -1
  626. package/dist/primitives/charts/bar-chart.js +33 -3
  627. package/dist/primitives/charts/bar-chart.js.map +1 -1
  628. package/dist/primitives/charts/gauge.js +1 -1
  629. package/dist/primitives/charts/line.d.ts.map +1 -1
  630. package/dist/primitives/charts/line.js +14 -11
  631. package/dist/primitives/charts/line.js.map +1 -1
  632. package/dist/primitives/charts/x-axis.d.ts +12 -1
  633. package/dist/primitives/charts/x-axis.d.ts.map +1 -1
  634. package/dist/primitives/charts/x-axis.js +96 -20
  635. package/dist/primitives/charts/x-axis.js.map +1 -1
  636. package/dist/primitives/charts/y-axis-scales.d.ts +3 -1
  637. package/dist/primitives/charts/y-axis-scales.d.ts.map +1 -1
  638. package/dist/primitives/charts/y-axis-scales.js +2 -2
  639. package/dist/primitives/charts/y-axis-scales.js.map +1 -1
  640. package/dist/primitives/charts/y-axis.d.ts +5 -0
  641. package/dist/primitives/charts/y-axis.d.ts.map +1 -1
  642. package/dist/primitives/charts/y-axis.js +6 -2
  643. package/dist/primitives/charts/y-axis.js.map +1 -1
  644. package/dist/primitives/hooks/use-media-query.d.ts +1 -1
  645. package/dist/primitives/hooks/use-media-query.js +1 -1
  646. package/dist/primitives/lib/mobile-sheet.d.ts +25 -0
  647. package/dist/primitives/lib/mobile-sheet.d.ts.map +1 -0
  648. package/dist/primitives/lib/mobile-sheet.js +28 -0
  649. package/dist/primitives/lib/mobile-sheet.js.map +1 -0
  650. package/dist/primitives/lib/segmented-control.d.ts +8 -2
  651. package/dist/primitives/lib/segmented-control.d.ts.map +1 -1
  652. package/dist/primitives/lib/segmented-control.js +8 -2
  653. package/dist/primitives/lib/segmented-control.js.map +1 -1
  654. package/dist/primitives/ui/button.d.ts +1 -1
  655. package/dist/primitives/ui/button.d.ts.map +1 -1
  656. package/dist/primitives/ui/button.js +7 -3
  657. package/dist/primitives/ui/button.js.map +1 -1
  658. package/dist/primitives/ui/calendar.d.ts.map +1 -1
  659. package/dist/primitives/ui/calendar.js +4 -2
  660. package/dist/primitives/ui/calendar.js.map +1 -1
  661. package/dist/primitives/ui/card.d.ts.map +1 -1
  662. package/dist/primitives/ui/card.js +9 -7
  663. package/dist/primitives/ui/card.js.map +1 -1
  664. package/dist/primitives/ui/checkbox.d.ts.map +1 -1
  665. package/dist/primitives/ui/checkbox.js +3 -1
  666. package/dist/primitives/ui/checkbox.js.map +1 -1
  667. package/dist/primitives/ui/combobox.js +2 -2
  668. package/dist/primitives/ui/combobox.js.map +1 -1
  669. package/dist/primitives/ui/dialog.d.ts +10 -1
  670. package/dist/primitives/ui/dialog.d.ts.map +1 -1
  671. package/dist/primitives/ui/dialog.js +14 -3
  672. package/dist/primitives/ui/dialog.js.map +1 -1
  673. package/dist/primitives/ui/drawer.d.ts +1 -2
  674. package/dist/primitives/ui/drawer.d.ts.map +1 -1
  675. package/dist/primitives/ui/drawer.js +30 -14
  676. package/dist/primitives/ui/drawer.js.map +1 -1
  677. package/dist/primitives/ui/input-group.d.ts.map +1 -1
  678. package/dist/primitives/ui/input-group.js +4 -1
  679. package/dist/primitives/ui/input-group.js.map +1 -1
  680. package/dist/primitives/ui/input.js +2 -2
  681. package/dist/primitives/ui/input.js.map +1 -1
  682. package/dist/primitives/ui/menu.d.ts.map +1 -1
  683. package/dist/primitives/ui/menu.js +15 -16
  684. package/dist/primitives/ui/menu.js.map +1 -1
  685. package/dist/primitives/ui/number-field.js +1 -1
  686. package/dist/primitives/ui/number-field.js.map +1 -1
  687. package/dist/primitives/ui/otp-field.js +2 -2
  688. package/dist/primitives/ui/otp-field.js.map +1 -1
  689. package/dist/primitives/ui/popover.d.ts +3 -1
  690. package/dist/primitives/ui/popover.d.ts.map +1 -1
  691. package/dist/primitives/ui/popover.js +11 -5
  692. package/dist/primitives/ui/popover.js.map +1 -1
  693. package/dist/primitives/ui/radio-group.js +1 -1
  694. package/dist/primitives/ui/radio-group.js.map +1 -1
  695. package/dist/primitives/ui/select.d.ts +7 -3
  696. package/dist/primitives/ui/select.d.ts.map +1 -1
  697. package/dist/primitives/ui/select.js +16 -7
  698. package/dist/primitives/ui/select.js.map +1 -1
  699. package/dist/primitives/ui/sheet.d.ts.map +1 -1
  700. package/dist/primitives/ui/sheet.js +4 -3
  701. package/dist/primitives/ui/sheet.js.map +1 -1
  702. package/dist/primitives/ui/sidebar.js +1 -1
  703. package/dist/primitives/ui/switch.d.ts +2 -2
  704. package/dist/primitives/ui/switch.d.ts.map +1 -1
  705. package/dist/primitives/ui/switch.js +2 -2
  706. package/dist/primitives/ui/switch.js.map +1 -1
  707. package/dist/primitives/ui/tabs.d.ts.map +1 -1
  708. package/dist/primitives/ui/tabs.js +1 -1
  709. package/dist/primitives/ui/tabs.js.map +1 -1
  710. package/dist/primitives/ui/textarea.js +2 -2
  711. package/dist/primitives/ui/textarea.js.map +1 -1
  712. package/dist/styles/motion.test.tsx +15 -0
  713. package/dist/styles/theme.css +5 -1
  714. package/dist/styles/tokens.css +72 -39
  715. package/dist/styles/tokens.test.tsx +137 -7
  716. package/dist/theme/css.js +4 -4
  717. package/dist/theme/css.js.map +1 -1
  718. package/package.json +1 -1
@@ -18,7 +18,7 @@ after the brand unless `decorative`. Each logo loads on first use; until then it
18
18
 
19
19
  | Prop | Type | Default | Description |
20
20
  | --- | --- | --- | --- |
21
- | `brand` (required) | `"card" \| "visa" \| "mastercard" \| "amex" \| "discover" \| "diners" \| "jcb" \| "unionpay" \| "maestro" \| "rupay" \| "cartes-bancaires" \| "apple-pay" \| "gpay" \| "amazon-pay" \| "cash-app" \| "paypal" \| "revolut-pay" \| "satispay" \| "wechat-pay" \| "alipay-hk" \| "kakao-pay" \| "naver-pay" \| "payco" \| "gcash" \| "touch-n-go" \| "twint" \| "bizum" \| "upi" \| "ideal" \| "bancontact" \| "eps" \| "multibanco" \| "pix" \| "blik" \| "przelewy24" \| "fps" \| "ach" \| "sepa" \| "bacs" \| "klarna" \| "afterpay" \| "affirm" \| "zip" \| "billie" \| "stablecoins" \| "unknown"` | - | The payment method. `unknown` draws a credit card icon for methods without artwork. |
21
+ | `brand` (required) | `"link" \| "card" \| "visa" \| "mastercard" \| "amex" \| "discover" \| "diners" \| "jcb" \| "unionpay" \| "maestro" \| "rupay" \| "cartes-bancaires" \| "apple-pay" \| "gpay" \| "amazon-pay" \| "cash-app" \| "paypal" \| "revolut-pay" \| "satispay" \| "wechat-pay" \| "alipay-hk" \| "kakao-pay" \| "naver-pay" \| "payco" \| "gcash" \| "touch-n-go" \| "twint" \| "bizum" \| "upi" \| "ideal" \| "bancontact" \| "eps" \| "multibanco" \| "pix" \| "blik" \| "przelewy24" \| "fps" \| "ach" \| "sepa" \| "bacs" \| "klarna" \| "afterpay" \| "affirm" \| "zip" \| "billie" \| "stablecoins" \| "unknown"` | - | The payment method. `unknown` draws a credit card icon for methods without artwork. |
22
22
  | `decorative` | `boolean` | - | Hide from assistive technology when the text next to it already names the method. |
23
23
 
24
24
  ## Flag
@@ -24,6 +24,7 @@ name. It rises from the trigger side as it opens.
24
24
  | `className` | `string` | - | Additional Tailwind classes, merged last. |
25
25
  | `collisionAvoidance` | `CollisionAvoidance` | - | How the popover avoids the viewport edges (Base UI). Pass `{ side: "none" }` to never flip. |
26
26
  | `collisionPadding` | `Padding` | `5` | Space in px to keep between the popover and the edges of the viewport. When the popover does not fit on `side`, it flips to the opposite side and then shifts along the edge. |
27
+ | `mobileSheet` | `boolean` | `false` | Below 640px, open as a bottom sheet over a scrim, full width, as Menu and Select can. Off by default: turn it on for a panel without text fields (notifications, a list of choices). A sheet sits at the bottom edge, where the software keyboard would cover a field; for a form on a phone, use a `Dialog` or a `Drawer`. |
27
28
  | `portalProps` | `PopoverPortalProps` | - | Props of the portal, e.g. `container` to render the popover inside an element. |
28
29
  | `positionMethod` | `"fixed" \| "absolute"` | - | How the popover is positioned: `absolute` (default) or `fixed` (Base UI). |
29
30
  | `side` | `Side` | `"bottom"` | |
@@ -87,8 +88,10 @@ time, and an unread dot (Surface/Accent-primary). Rows are divided by Border/Pri
87
88
  | --- | --- | --- | --- |
88
89
  | `title` (required) | `ReactNode` | - | What happened (Labels/Primary). |
89
90
  | `className` | `string` | - | Additional Tailwind classes, merged last. |
91
+ | `description` | `ReactNode` | - | The notice's body under the title, up to two lines (Body/Secondary). |
90
92
  | `icon` | `ReactNode` | - | Leading 16px Nucleo icon in Content/Secondary. |
91
93
  | `id` | `ReactNode` | - | The object ID (Mono/Primary). |
94
+ | `onClick` | `(() => void)` | - | Makes the whole row a button, e.g. to open what the notice is about. |
92
95
  | `time` | `ReactNode` | - | When it happened (Body/Secondary). |
93
96
  | `unread` | `boolean` | `false` | Shows the blue unread dot. |
94
97
  | `unreadLabel` | `string` | `"Unread"` | Accessible text for the unread dot. |
@@ -253,7 +256,7 @@ export default function PopoverNotifications() {
253
256
  >
254
257
  <BellIcon aria-hidden="true" />
255
258
  </PopoverTrigger>
256
- <PopoverContent size="lg">
259
+ <PopoverContent size="lg" mobileSheet>
257
260
  <PopoverHeader
258
261
  actions={
259
262
  <>
@@ -1,7 +1,7 @@
1
1
  # Quantity stepper
2
2
 
3
3
  A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).
4
- Two sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36, 40 below `sm`,
4
+ Two sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36,
5
5
  shorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.
6
6
  Built on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`
7
7
  "Number field") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to
@@ -19,7 +19,7 @@ import { QuantityStepper } from "@dodopayments/ui/quantity-stepper";
19
19
  ## QuantityStepper
20
20
 
21
21
  A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).
22
- Two sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36, 40 below `sm`,
22
+ Two sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36,
23
23
  shorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.
24
24
  Built on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`
25
25
  "Number field") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to
@@ -40,7 +40,7 @@ input shows instead, so typing and arrow-key steps never animate. The animated c
40
40
  | `incrementLabel` | `string` | `"Increase"` | Accessible name of the + button. |
41
41
  | `max` | `number` | - | Largest quantity; the + button is disabled at it. |
42
42
  | `min` | `number` | `0` | Smallest quantity; the − button is disabled at it. |
43
- | `size` | `"default" \| "lg"` | `"default"` | `default`: 24 high (28 below `sm`), like Button xs: buttons 20 (24), value Labels/Secondary. Carts, line items, plan pickers.<br>`lg`: The height of Button lg (`--control-height-lg`: 36, 40 below `sm`, less in compact density), with Button icon (`--control-height-md`) − and + 2px inside, Button icon sizes and the value in Labels/Primary. Next to a lg button, such as Buy now on a Product card. |
43
+ | `size` | `"default" \| "lg"` | `"default"` | `default`: 24 high (28 below `sm`), like Button xs: buttons 20 (24), value Labels/Secondary. Carts, line items, plan pickers.<br>`lg`: The height of Button lg (`--control-height-lg`: 36, less in compact density), with Button icon (`--control-height-md`) − and + 2px inside, Button icon sizes and the value in Labels/Primary. Next to a lg button, such as Buy now on a Product card. |
44
44
  | `step` | `number` | `1` | Amount each − / + press or ArrowUp / ArrowDown adds or removes. |
45
45
 
46
46
  Also accepts Base UI props: `allowOutOfRange`, `allowWheelScrub`, `defaultValue`, `disabled`, `form`, `id`, `inputRef`, `largeStep`, `name`, `onValueChange`, `onValueCommitted`, `readOnly`, `required`, `value`.
@@ -4,8 +4,8 @@ Hero of a record's detail page (a payment, customer or subscription), not the pa
4
4
  `<section>` labelled by the title around a `Card`. It shows optional media, the title (an
5
5
  amount or a name) with its status and a subtitle, icon + text facts (`meta`), labelled `chips`
6
6
  such as a `CopyableId` and a `Timestamp`, and a `notice` (`CardNotice`) tucked under the card. The actions sit
7
- beside the heading once the card is at least 32rem wide and wrap under it in narrower containers. The media lines up
8
- with the title row.
7
+ beside the heading while the heading keeps its own width up to 12rem, even in a narrow pane, and wrap under it when
8
+ they do not fit. The media lines up with the title row.
9
9
 
10
10
  ```tsx
11
11
  import { RecordHeader } from "@dodopayments/ui/record-header";
@@ -17,13 +17,13 @@ Hero of a record's detail page (a payment, customer or subscription), not the pa
17
17
  `<section>` labelled by the title around a `Card`. It shows optional media, the title (an
18
18
  amount or a name) with its status and a subtitle, icon + text facts (`meta`), labelled `chips`
19
19
  such as a `CopyableId` and a `Timestamp`, and a `notice` (`CardNotice`) tucked under the card. The actions sit
20
- beside the heading once the card is at least 32rem wide and wrap under it in narrower containers. The media lines up
21
- with the title row.
20
+ beside the heading while the heading keeps its own width up to 12rem, even in a narrow pane, and wrap under it when
21
+ they do not fit. The media lines up with the title row.
22
22
 
23
23
  | Prop | Type | Default | Description |
24
24
  | --- | --- | --- | --- |
25
25
  | `title` (required) | `ReactNode` | - | Name of the record, preformatted: the amount of a payment ("$1,240.00") or the name of a customer or product. Also labels the section. |
26
- | `actions` | `ReactNode` | - | Record actions on the trailing side, e.g. "Invoice" and "Refund" `Button`s. |
26
+ | `actions` | `ReactNode` | - | Record actions on the trailing side, e.g. "Invoice" and "Refund" `Button`s. The header is a size container, so a `Button` with `labelHidden="narrow"` shows only its icon below 24rem of the header (a phone), its label in a tooltip. Beside a detail page's panel on a desktop it keeps its label. |
27
27
  | `chips` | `readonly RecordHeaderChipEntry[]` | - | Labelled pills under the facts, e.g. `{ label: "Payment ID", value: <CopyableId value="pay_…" /> }` and a `Timestamp`. `false`, `null` and `undefined` entries are skipped. |
28
28
  | `media` | `ReactNode` | - | Leading visual before the title, e.g. an `Avatar` or a product image. |
29
29
  | `meta` | `readonly RecordHeaderMetaEntry[]` | - | Short icon + text facts under the heading, e.g. the payment method and the country. `false`, `null` and `undefined` entries are skipped. |
@@ -29,6 +29,7 @@ move without animation.
29
29
  | `value` (required) | `readonly T[]` | - | The items in their current order. |
30
30
  | `className` | `string` | - | Additional Tailwind classes, merged last. |
31
31
  | `disabled` | `boolean` | - | Turns off dragging and keyboard moves. |
32
+ | `interactive` | `boolean` | - | Rows hold their own controls, such as a switch or a menu. Their content stays readable by assistive technology, a key pressed on a control does not grab the row, and a row drags only from its handle, so a click on a control never starts a drag. |
32
33
  | `onValueCommitted` | `((next: T[]) => void)` | - | Called with the final order when a drag or a keyboard move ends. |
33
34
 
34
35
  ## useReorderList
@@ -144,3 +145,47 @@ export default function ReorderListCommit() {
144
145
  }
145
146
  ```
146
147
 
148
+ ### reorder-list/interactive
149
+
150
+ ```tsx
151
+ "use client";
152
+
153
+ import { ReorderList } from "@dodopayments/ui/reorder-list";
154
+ import { Switch } from "@dodopayments/ui/switch";
155
+ import { useState } from "react";
156
+
157
+ const PLANS = [
158
+ { id: "monthly", name: "Pro monthly", on: true },
159
+ { id: "annual", name: "Pro annual", on: true },
160
+ { id: "lifetime", name: "Lifetime", on: false },
161
+ ];
162
+
163
+ export default function ReorderListInteractive() {
164
+ const [plans, setPlans] = useState(PLANS);
165
+
166
+ return (
167
+ <ReorderList
168
+ aria-label="Plans at checkout"
169
+ className="max-w-sm"
170
+ interactive
171
+ value={plans}
172
+ getKey={(p) => p.id}
173
+ getLabel={(p) => p.name}
174
+ onValueChange={setPlans}
175
+ >
176
+ {(p) => (
177
+ <label className="flex items-center justify-between gap-3">
178
+ <span className="text-label-primary">{p.name}</span>
179
+ <Switch
180
+ checked={p.on}
181
+ onCheckedChange={(on) => {
182
+ setPlans((all) => all.map((x) => (x.id === p.id ? { ...x, on } : x)));
183
+ }}
184
+ />
185
+ </label>
186
+ )}
187
+ </ReorderList>
188
+ );
189
+ }
190
+ ```
191
+
@@ -34,7 +34,9 @@ renders it. Put it in a `Field`: the label focuses it and the description and er
34
34
  | `className` | `string` | - | Class names for the frame. |
35
35
  | `defaultValue` | `string` | - | Initial markdown when uncontrolled. |
36
36
  | `disabled` | `boolean` | - | Turns editing and the toolbar off and dims the editor to 64%. |
37
+ | `hiddenTools` | `readonly RichTextEditorTool[]` | - | Tools to leave out of the strip, e.g. `["strikethrough"]` when the text is shown where strikethrough is not. |
37
38
  | `id` | `string` | - | The textbox id. Inside a `Field` the field sets it, so its label focuses the editor. |
39
+ | `input` | `"editor" \| "markdown"` | `"editor"` | What `value` is written in. `"editor"` is markdown with the editor's inline HTML for underline and text colour, which `RichTextContent` renders. `"markdown"` is plain markdown, for a renderer that shows no HTML (an app description): the strip has no underline or colour, inline HTML stays literal text, and inline code, fenced code blocks and single line breaks are kept as written. Read when the editor mounts. |
38
40
  | `labels` | `Partial<RichTextEditorLabels>` | - | Override any of the built-in English labels. |
39
41
  | `name` | `string` | - | Submits the markdown with a form, through a hidden input of this name. |
40
42
  | `onBlur` | `FocusEventHandler<HTMLDivElement>` | - | Focus left the body. The event's `currentTarget` is the body wrapper (`rich-text-editor-content`). |
@@ -2,7 +2,8 @@
2
2
 
3
3
  Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout
4
4
  page in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales
5
- it up. The content stays a live page; put a cover over it when it should not take clicks.
5
+ it up: content narrower than the frame sits in its middle. The content stays a live page; put a
6
+ cover over it when it should not take clicks.
6
7
 
7
8
  ```tsx
8
9
  import { ScaledFrame } from "@dodopayments/ui/scaled-frame";
@@ -12,12 +13,13 @@ import { ScaledFrame } from "@dodopayments/ui/scaled-frame";
12
13
 
13
14
  Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout
14
15
  page in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales
15
- it up. The content stays a live page; put a cover over it when it should not take clicks.
16
+ it up: content narrower than the frame sits in its middle. The content stays a live page; put a
17
+ cover over it when it should not take clicks.
16
18
 
17
19
  | Prop | Type | Default | Description |
18
20
  | --- | --- | --- | --- |
19
- | `height` (required) | `number` | - | The height the content is laid out at, in px. |
20
21
  | `width` (required) | `number` | - | The width the content is laid out at, in px, e.g. 1280 for a desktop page. |
22
+ | `height` | `number` | - | The height the content is laid out at, in px. Leave it out for content that sets its own height, such as a document page that grows with its lines: the frame then follows it, scaled. The height is measured in the browser, so server-rendered HTML has a 0 tall frame until it hydrates. |
21
23
 
22
24
  ## Examples
23
25
 
@@ -1,6 +1,6 @@
1
1
  # Select
2
2
 
3
- The field (Figma `container`) that opens the list: put a `SelectValue` inside. One size, 36; the caret turns up
3
+ The field (Figma `container`) that opens the list: put a `SelectValue` inside. 36 tall, or 28 with `size="sm"`; the caret turns up
4
4
  while the list is open; `aria-invalid` (or an invalid `Field`) shows the error border. `variant="compact"` is a
5
5
  borderless 32 trigger that hugs its value, for a language or currency switcher (with an `icon` or a flag).
6
6
 
@@ -10,7 +10,7 @@ import { SelectTrigger, Select, SelectContent, SelectGroup, SelectGroupLabel, Se
10
10
 
11
11
  ## SelectTrigger
12
12
 
13
- The field (Figma `container`) that opens the list: put a `SelectValue` inside. One size, 36; the caret turns up
13
+ The field (Figma `container`) that opens the list: put a `SelectValue` inside. 36 tall, or 28 with `size="sm"`; the caret turns up
14
14
  while the list is open; `aria-invalid` (or an invalid `Field`) shows the error border. `variant="compact"` is a
15
15
  borderless 32 trigger that hugs its value, for a language or currency switcher (with an `icon` or a flag).
16
16
 
@@ -18,6 +18,7 @@ borderless 32 trigger that hugs its value, for a language or currency switcher (
18
18
  | --- | --- | --- | --- |
19
19
  | `className` | `string` | - | With `multiple` the trigger is the chips field (a box, not a button): `ref`, handlers and data props go to it, and `render` / `nativeButton` do not apply. |
20
20
  | `icon` | `ReactNode` | - | An icon before the value (Figma "Show leading icon"), e.g. a Nucleo icon for an integration select, a globe for a language switcher or a `Flag` for a currency (a Flag keeps its 20 × 14). |
21
+ | `size` | `"default" \| "sm"` | `"default"` | `default`: 36 tall, as in Figma. The default.<br>`sm`: 28 tall: a compact trigger in a dense toolbar or a table filter row, next to an `sm` Input or Button. Not a Figma size. The chips field of `multiple` and the `compact` variant keep their height. |
21
22
  | `variant` | `"default" \| "compact"` | `"default"` | `default`: The field: 36 tall, full width, Border/Primary. The default.<br>`compact`: A borderless trigger that hugs a short value, 32 tall: a flag and "USD", a globe and "EN", for language and currency switchers in a header or footer. Labels/Secondary, a 12px caret, Surface/Hover on hover and while open. |
22
23
 
23
24
  Also accepts Base UI props: `disabled`, `nativeButton`, `render`.
@@ -28,6 +29,8 @@ The Dodo Nest Select (Figma ↳ Select): one field, 36 tall, that opens a list i
28
29
  value, or several with `multiple` (chips in the field, extras as "+N"); `searchable` adds a search field to the
29
30
  list. Pass `items` (`{ value, label }[]`) so `SelectValue` shows the label. A plain Select renders the primitives /
30
31
  Base UI `Select`; `searchable` or `multiple` run the Combobox under the same parts, with the same string values.
32
+ A `multiple` field sizes its chips to its own width, so give it a definite width (the default full width, or a
33
+ fixed one); sized to its content (`w-fit`) it would collapse.
31
34
 
32
35
  | Prop | Type | Default | Description |
33
36
  | --- | --- | --- | --- |
@@ -47,6 +50,7 @@ at most 320 tall, then it scrolls. Holds `SelectItem`, `SelectGroup`, `SelectGro
47
50
  | `alignItemWithTrigger` | `boolean` | `false` | Overlap the selected item with the trigger, as the primitive does. Off by default: the list opens below the field. |
48
51
  | `className` | `string` | - | Classes for the scrolling list. |
49
52
  | `emptyLabel` | `ReactNode` | `"No options"` | The disabled row shown when no option matches. |
53
+ | `mobileSheet` | `boolean` | `false` | Below 640px, open the list as a bottom sheet over a scrim, full width. Off by default: the list stays under the trigger at every width. A `searchable` or `multiple` list always stays under its field, where the software keyboard cannot cover it. |
50
54
  | `portalProps` | `SelectPortalProps` | - | Props of the portal, e.g. `container` to render the list inside an element. |
51
55
  | `positionerProps` | `SelectPositionerOptions` | - | Side, offset, alignment and anchor of the list. Default: below the field, 8 apart, start-aligned. |
52
56
  | `searchPlaceholder` | `string` | `"Search"` | Placeholder and accessible name of the search field (`searchable`). |
@@ -104,7 +108,8 @@ Also accepts Base UI props: `orientation`, `render`.
104
108
  ## SelectValue
105
109
 
106
110
  Shows the selected item's label, or `placeholder` (Content/Tertiary) when empty. With `multiple` it shows the
107
- chosen options as chips (`.Chip`, with a remove button each) and the rest as "+N".
111
+ chosen options as chips (`.Chip`, with a remove button each) and the rest as "+N", on one line, or wrapped to more
112
+ rows in a field under 18rem.
108
113
 
109
114
  | Prop | Type | Default | Description |
110
115
  | --- | --- | --- | --- |
@@ -418,3 +423,28 @@ export default function SelectSearchable() {
418
423
  }
419
424
  ```
420
425
 
426
+ ### select/small
427
+
428
+ ```tsx
429
+ "use client";
430
+
431
+ import { Select, SelectContent, SelectTrigger, SelectValue } from "@dodopayments/ui/select";
432
+
433
+ const RANGES = [
434
+ { value: "7d", label: "Last 7 days" },
435
+ { value: "30d", label: "Last 30 days" },
436
+ { value: "90d", label: "Last 90 days" },
437
+ ];
438
+
439
+ export default function SelectSmall() {
440
+ return (
441
+ <Select items={RANGES} defaultValue="30d">
442
+ <SelectTrigger size="sm" aria-label="Date range" className="w-44">
443
+ <SelectValue />
444
+ </SelectTrigger>
445
+ <SelectContent />
446
+ </Select>
447
+ );
448
+ }
449
+ ```
450
+
@@ -20,6 +20,8 @@ dividers, and an optional footer. Renders a `<section>` labelled by its heading.
20
20
  | `action` | `ReactNode` | - | Control at the top-right of the header, e.g. an "Edit" `Button`. |
21
21
  | `description` | `ReactNode` | - | One line under the heading explaining what the section configures. |
22
22
  | `footer` | `ReactNode` | - | Row under the settings, e.g. a "Save changes" `Button` for a section that holds a form. |
23
+ | `help` | `ReactNode` | - | A secondary description in a Tooltip on an info icon after the heading, instead of a line under it. See `CardTitle`'s `help`. |
24
+ | `helpLabel` | `string` | `"More information"` | With `help`: accessible name of the info icon button. |
23
25
  | `titleAs` | `"h2" \| "h3" \| "h4"` | `"h2"` | Element used for the heading. |
24
26
  | `tone` | `"error" \| "neutral" \| null` | - | |
25
27
 
@@ -50,6 +52,7 @@ A navigation tile for a settings index page: an icon tile, a title and a descrip
50
52
  | `disabled` | `boolean` | `false` | Render a non-interactive tile without the chevron, e.g. for a page that is not available yet. |
51
53
  | `href` | `string` | - | Where the card links to: renders an `<a href>`. Pass `render` instead for a router link. |
52
54
  | `icon` | `ReactNode` | - | Icon in a tile before the title, e.g. a `WalletIcon` from `@dodopayments/ui/icons`. |
55
+ | `wrap` | `boolean` | `false` | Wrap the title and description to more lines instead of cutting them with an ellipsis, for text that must read whole (a settings index or a report tile). |
53
56
 
54
57
  Also accepts Base UI props: `render`.
55
58
 
@@ -142,7 +142,7 @@ export default function SetupGuideMaster() {
142
142
  ];
143
143
 
144
144
  return (
145
- <div className="flex min-h-130 flex-col items-center justify-end gap-2">
145
+ <div className="flex min-h-130 w-full flex-col items-center justify-end gap-2">
146
146
  {open && intro ? <SetupGuideIntro onDismiss={() => setIntro(false)} /> : null}
147
147
  {open ? (
148
148
  <SetupGuide items={items} defaultOpenItem="verify" onClose={() => setOpen(false)} />
@@ -2,10 +2,10 @@
2
2
 
3
3
  The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading
4
4
  direction (the right in LTR). `type="side"` (default) is a grey tray 8 from the screen edges, 400 wide (`size="lg"`:
5
- 560), with the title and close on the grey chin, the body in a white panel that scrolls, and the actions on the grey
6
- strip; below 400 it fills the screen minus 8 on every side. `type="full"` covers the screen. Always include a
7
- `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over a sheet, and use
8
- a Dialog for a yes / no confirm.
5
+ 560, `size="xl"`: 768), with the title and close on the grey chin, the body in a white panel that scrolls, and the
6
+ actions on the grey strip; below 400 it fills the screen minus 8 on every side. `type="full"` covers the screen.
7
+ Always include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over
8
+ a sheet, and use a Dialog for a yes / no confirm.
9
9
 
10
10
  ```tsx
11
11
  import { SheetContent, Sheet, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPanel, SheetPortal, SheetTitle, SheetTrigger } from "@dodopayments/ui/sheet";
@@ -15,10 +15,10 @@ import { SheetContent, Sheet, SheetClose, SheetDescription, SheetFooter, SheetHe
15
15
 
16
16
  The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading
17
17
  direction (the right in LTR). `type="side"` (default) is a grey tray 8 from the screen edges, 400 wide (`size="lg"`:
18
- 560), with the title and close on the grey chin, the body in a white panel that scrolls, and the actions on the grey
19
- strip; below 400 it fills the screen minus 8 on every side. `type="full"` covers the screen. Always include a
20
- `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over a sheet, and use
21
- a Dialog for a yes / no confirm.
18
+ 560, `size="xl"`: 768), with the title and close on the grey chin, the body in a white panel that scrolls, and the
19
+ actions on the grey strip; below 400 it fills the screen minus 8 on every side. `type="full"` covers the screen.
20
+ Always include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`. Don't stack a sheet over
21
+ a sheet, and use a Dialog for a yes / no confirm.
22
22
 
23
23
  | Prop | Type | Default | Description |
24
24
  | --- | --- | --- | --- |
@@ -26,7 +26,7 @@ a Dialog for a yes / no confirm.
26
26
  | `closeLabel` | `string` | `"Close"` | Accessible label for the close button. |
27
27
  | `hideCloseButton` | `boolean` | `false` | Hide the close button. Keep a visible way to close the sheet, e.g. a `SheetClose`. |
28
28
  | `portalProps` | `DialogPortalProps` | - | Props for the portal, e.g. a `container` to render the sheet into instead of `document.body`. |
29
- | `size` | `"md" \| "lg"` | `"md"` | `md`: 400 wide: short forms and details. The default.<br>`lg`: 560 wide: longer forms. Side sheets only. |
29
+ | `size` | `"md" \| "lg" \| "xl"` | `"md"` | `md`: 400 wide: short forms and details. The default.<br>`lg`: 560 wide: longer forms. Side sheets only.<br>`xl`: 768 wide: a form with a code editor or a long checklist, such as a webhook endpoint. Side sheets only. |
30
30
  | `type` | `"side" \| "full"` | `"side"` | `side`: A side panel for a task or record that keeps the page in view: refund, dispute, edit customer, new API key.<br>`full`: 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. |
31
31
 
32
32
  Also accepts Base UI props: `finalFocus`, `initialFocus`, `render`.
@@ -76,7 +76,7 @@ title (Heading/Tertiary), `progress` and the close button on one row above a rul
76
76
  | --- | --- | --- | --- |
77
77
  | `backLabel` | `string` | `"Back"` | Accessible label of the back button. |
78
78
  | `onBack` | `(() => void)` | - | Full screen only: shows a back button before the title and calls this when it is pressed. |
79
- | `progress` | `number` | - | Full screen only: how far along the flow is (0–100), drawn as a 120 wide Progress bar before the close button. |
79
+ | `progress` | `number` | - | Full screen only: how far along the flow is (0–100), drawn as a 120 wide Progress bar before the close button. Hidden below `sm`, so the title and description get the row on a phone. |
80
80
 
81
81
  Also accepts Base UI props: `render`.
82
82
 
@@ -23,12 +23,13 @@ menus) and `SidebarFooter` (Developer, Settings and a `SidebarModeSwitch`), insi
23
23
  ## SidebarBusinessSwitcher
24
24
 
25
25
  The business switcher at the top of the sidebar (Figma `.Business switcher`): a 44px white row with a 24px
26
- avatar, the name (truncates) and an up-down chevron; the same 24px avatar alone on the icon rail. Opens the business Menu
26
+ avatar, the name (truncates), an optional `badge` and an up-down chevron; the same 24px avatar alone on the icon rail. Opens the business Menu
27
27
  (`children`) 8px below. Put it in `SidebarHeader`.
28
28
 
29
29
  | Prop | Type | Default | Description |
30
30
  | --- | --- | --- | --- |
31
31
  | `name` (required) | `string` | - | Name of the current business. Its initials fill the avatar when there is no `logoUrl`. |
32
+ | `badge` | `ReactNode` | - | After the name, e.g. the member's role as a neutral `Badge`. Hidden on the icon rail. |
32
33
  | `logoUrl` | `string` | - | Logo of the current business. |
33
34
  | `menuClassName` | `string` | `240 wide` | Extra classes for the menu. |
34
35
  | `menuContentProps` | `Omit<MenuContentProps, "className" \| "children">` | - | Props for the `MenuContent`, e.g. `finalFocus`. |
@@ -68,11 +69,12 @@ List of navigation items. Renders `<ul>`.
68
69
 
69
70
  The clickable row of a menu item (primitive `SidebarMenuButton`, Figma `.Nav item`): a 20px icon + Body/Primary
70
71
  label, 32px tall; a 32px tile on the icon rail. Renders a `<button>`; for navigation pass
71
- `render={<a href="/payments" />}` (or your router's link).
72
+ `render={<a href="/payments" />}` (or your router's link). `tag` adds a badge at the end of the row, a dot on the rail.
72
73
 
73
74
  | Prop | Type | Default | Description |
74
75
  | --- | --- | --- | --- |
75
76
  | `isActive` | `boolean` | `false` | Marks the item as the current page: Surface/Tertiary with a Border/Secondary ring, a Content/Primary icon and `aria-current="page"`. |
77
+ | `tag` | `ReactNode` | - | A tag at the end of the row, such as a violet sm `Badge` "New". On the icon rail it leaves the screen (it stays in the item's accessible name) and a 6px violet dot marks the tile's corner instead. |
76
78
  | `tooltip` | `ReactNode` | - | Tooltip shown 8px to the side on hover and focus while the sidebar is the icon rail (desktop only). Pass the label. |
77
79
 
78
80
  Also accepts Base UI props: `render`.
@@ -84,10 +86,12 @@ A menu item that expands to show a sub-menu. Renders `<li>`; compose it from a
84
86
  The primitives have no sidebar collapsible part; built from the `Collapsible` primitive.
85
87
 
86
88
  Inside a `SidebarProvider` only one sub-menu is open at a time: opening one closes the one that was open.
87
- `defaultOpen` sets the first state. Pass `open` to control it yourself; a controlled sub-menu is left out of this.
89
+ `defaultOpen` sets the first state, and `active` opens the one that holds the current page whenever it becomes
90
+ active. Pass `open` to control it yourself; a controlled sub-menu is left out of this.
88
91
 
89
92
  | Prop | Type | Default | Description |
90
93
  | --- | --- | --- | --- |
94
+ | `active` | `boolean` | `false` | The sub-menu holds the current page. It opens (closing the others) when it becomes active, also when the page changes from outside the sidebar, and the merchant can still close it. |
91
95
  | `className` | `string` | - | Additional Tailwind classes, merged last. |
92
96
 
93
97
  Also accepts Base UI props: `defaultOpen`, `disabled`, `onOpenChange`, `open`.
@@ -107,12 +111,14 @@ Also accepts Base UI props: `hiddenUntilFound`, `keepMounted`, `render`.
107
111
  ## SidebarMenuCollapsibleTrigger
108
112
 
109
113
  The row that opens and closes a sub-menu: a `SidebarMenuButton` primitive rendered as a `CollapsibleTrigger`
110
- primitive, with a 12px chevron. The parent stays default while its group is open.
114
+ primitive, with a 12px chevron. The parent stays default while its group is open. `tag` adds a badge before the
115
+ chevron, a dot on the rail.
111
116
 
112
117
  | Prop | Type | Default | Description |
113
118
  | --- | --- | --- | --- |
114
119
  | `className` | `string` | - | Additional Tailwind classes, merged last. |
115
120
  | `isActive` | `boolean` | `false` | Highlights the row, e.g. when the current page is inside the sub-menu. |
121
+ | `tag` | `ReactNode` | - | A tag before the chevron, such as a violet sm `Badge` "New"; a 6px violet dot on the icon rail. |
116
122
  | `tooltip` | `ReactNode` | - | Tooltip shown on hover and focus while the sidebar is the icon rail (desktop only). Pass the label. |
117
123
 
118
124
  Also accepts Base UI props: `nativeButton`, `render`.
@@ -128,11 +134,13 @@ Nested list under a menu item, 6px below it. Hidden on the icon rail. One level
128
134
  ## SidebarMenuSubButton
129
135
 
130
136
  Link row of a sub-menu (primitive `SidebarMenuSubButton`, Figma `.Nav item` sub): a Content/Secondary label
131
- indented to line up with the parent's label. Renders `<a>`; pass `render` for your router's link.
137
+ indented to line up with the parent's label. Renders `<a>`; pass `render` for your router's link. `tag` adds a badge
138
+ at the end of the row.
132
139
 
133
140
  | Prop | Type | Default | Description |
134
141
  | --- | --- | --- | --- |
135
142
  | `isActive` | `boolean` | `false` | Marks the sub-item as the current page: Surface/Tertiary, Content/Primary label and `aria-current="page"`. |
143
+ | `tag` | `ReactNode` | - | A tag at the end of the row, such as a violet sm `Badge` "New". Wrap the label in a `<span>` so it truncates. |
136
144
 
137
145
  Also accepts Base UI props: `render`.
138
146
 
@@ -160,8 +168,8 @@ Holds the sidebar state and lays out `Sidebar` next to `SidebarInset` on the gre
160
168
  once. The docked sidebar starts collapsed to the 68px icon rail; below 1024px it becomes a sheet. Cmd/Ctrl+B
161
169
  toggles it.
162
170
 
163
- Replaces the `SidebarProvider` primitive (it switches to the sheet at 800px, always writes a
164
- `cookieStore` cookie and has a fixed shortcut) but feeds the `SidebarContext` primitive, so every primitive
171
+ Replaces the `SidebarProvider` primitive (it always writes a `cookieStore` cookie and has a fixed
172
+ shortcut) but feeds the `SidebarContext` primitive, so every primitive
165
173
  sidebar part reads this state.
166
174
 
167
175
  | Prop | Type | Default | Description |
@@ -22,10 +22,11 @@ label.
22
22
 
23
23
  | Prop | Type | Default | Description |
24
24
  | --- | --- | --- | --- |
25
- | `label` (required) | `ReactNode` | - | What the number measures, e.g. "Successful payments". It sits on the grey strip and truncates. |
25
+ | `label` (required) | `ReactNode` | - | What the number measures, e.g. "Successful payments". It sits on the grey strip in Heading/Tertiary (16px, a step above body text), with `help` right after it. On a narrow card it wraps onto more lines, so it reads whole and `action` keeps its row. |
26
+ | `action` | `ReactNode` | - | Small controls at the end of the label strip, e.g. a ghost `icon-xs` Share button or a compact select. They stay on the label's row: the label wraps to make room (keeping at least a third of the strip), and controls that still do not fit wrap among themselves at the end, never under the label. |
26
27
  | `comparison` | `ReactNode` | - | The line under the value, e.g. "vs last 30 days", "+3 added this month" or "Next payout on Oct 21". Without it (and without a trend) the row disappears and the card hugs. |
27
- | `empty` | `ReactNode` | - | Show the empty state: "-" for the value and the reason under it. `true` shows `labels.empty` ("No data yet"); text or a node is the reason ("Live mode only"). Ignored while `loading` or with an `error`. |
28
- | `error` | `ReactNode` | - | Show the error state instead of the value: a small left-aligned heading with an error icon, and "Try again" with `onRetry`. `true` shows the default heading; text or a node is the reason, read to screen readers after the heading. Ignored while `loading`. |
28
+ | `empty` | `ReactNode` | - | Show the empty state: "-" for the value and the reason under it, centred in the panel, with no trend chip. `true` shows `labels.empty` ("No data yet"); text or a node is the reason ("Live mode only"). Ignored while `loading` or with an `error`. |
29
+ | `error` | `ReactNode` | - | Show the error state instead of the value: a small heading with an error icon, and "Try again" with `onRetry`, centred in the panel. `true` shows the default heading; text or a node is the reason, read to screen readers after the heading. Ignored while `loading`. |
29
30
  | `flash` | `boolean` | `false` | Flash each change of a number `value` with `ValueFlash`: the new number rolls in and tints success (up) or destructive (down). For live balances and counters. |
30
31
  | `footer` | `ReactNode` | - | A quiet line on the grey under the panel, e.g. `<ChartUpdated updatedAt={…} onRefresh={…} />` from `@dodopayments/ui/chart` ("Updated 40 minutes ago" and a refresh button). |
31
32
  | `format` | `((value: number) => string)` | - | Formats a number `value` for display, e.g. as currency. Defaults to `String(value)`. |
@@ -35,7 +36,7 @@ label.
35
36
  | `layout` | `"card" \| "inline"` | `"card"` | `card`: The Stat card: the label on a grey strip, the number in a white panel, in its own tray.<br>`inline`: A bare stat: the label (Body/Primary, Content/Secondary) over the number, with no tray or panel. For a grouped StatGrid. |
36
37
  | `loading` | `boolean` | `false` | Replace the value and the comparison with Skeleton lines and mark the card busy. |
37
38
  | `onRetry` | `(() => void)` | - | Shows a retry button in the error state. |
38
- | `trend` | `StatCardTrend` | - | The change: a success (up) or error (down) chip before the comparison. Show it only with a comparison. |
39
+ | `trend` | `StatCardTrend` | - | The change: a success (up) or error (down) chip before the comparison. Show it only with a comparison. Not shown while `loading`, `empty` or `error`: a change of nothing is noise. |
39
40
  | `value` | `ReactNode` | - | The number, formatted in full ("$84,320.50"); the card never abbreviates. Pass a number with `format` so `flash` can animate its changes. Without `flash`, a changed string or number swaps in place: the old value rises out and the new one rises in. An element swaps only with a `valueKey`. |
40
41
  | `valueKey` | `string \| number` | - | Identifies an element `value`, such as `<Money amount={x} />`: the value swaps in place when the key changes. An element without a key updates without motion, because it is a new object on every render. String and number values are their own key. |
41
42
 
@@ -58,7 +59,7 @@ One label / value row of a `StatCardBreakdown`, the value at the end.
58
59
  A responsive row of `StatCard`s: a `Grid` of 2, 3 or 4 equal columns, 16 apart, that stacks the cards 12 apart
59
60
  when narrow. Cards in a row stretch to the same height, so their panels line up. `layout="group"` puts the stats
60
61
  in one `Card` instead (the page summary under a page header): its cards turn inline, side by side with dividers
61
- between them, stacked with dividers between rows when narrow.
62
+ between them, staying side by side and turning compact when narrow.
62
63
 
63
64
  | Prop | Type | Default | Description |
64
65
  | --- | --- | --- | --- |
@@ -66,7 +67,7 @@ between them, stacked with dividers between rows when narrow.
66
67
  | `gap` | `"sm" \| "md" \| "xl" \| "2xl" \| "none" \| "xs" \| "lg" \| null` | - | |
67
68
  | `heading` | `ReactNode` | - | With `layout="group"`: the title on the card's strip, e.g. "Last 30 days". |
68
69
  | `help` | `ReactNode` | - | With `layout="group"` and a `heading`: help text behind an info icon after it. |
69
- | `layout` | `"cards" \| "group"` | `"cards"` | `cards`: Separate Stat cards, 16 apart (12 apart when they stack).<br>`group`: One Card tray (with an optional `heading`) whose panel lines the stats up as inline stats with dividers between them; they stack with dividers between rows when narrow. |
70
+ | `layout` | `"cards" \| "group"` | `"cards"` | `cards`: Separate Stat cards, 16 apart (12 apart when they stack).<br>`group`: One Card tray (with an optional `heading`) whose panel lines the stats up as inline stats with dividers between them; on a narrow card they stay side by side and turn compact, labels wrapping and numbers on one line; under 16rem (256px) they stack as rows. |
70
71
 
71
72
  Also accepts Base UI props: `render`.
72
73
 
@@ -5,7 +5,7 @@ Pair it with `TabsList`, `TabsTrigger` and `TabsContent`; each `TabsTrigger` sho
5
5
  `TabsContent` with the same `value`. Renders the `Tabs` primitive (Base UI `Tabs`).
6
6
 
7
7
  ```tsx
8
- import { Tabs, TabsContent, TabsList, TabsTrigger } from "@dodopayments/ui/tabs";
8
+ import { Tabs, TabsContent, TabsList, TabsPanels, TabsTrigger } from "@dodopayments/ui/tabs";
9
9
  ```
10
10
 
11
11
  ## Tabs
@@ -33,18 +33,30 @@ Also accepts Base UI props: `value`, `keepMounted`, `render`.
33
33
 
34
34
  ## TabsList
35
35
 
36
- Row of `TabsTrigger`s on the `TabsList` primitive, with its animated active-tab indicator. Scrolls
37
- horizontally (scrollbar hidden) when the tabs do not fit, so it stays usable on narrow screens.
38
- Give it an `aria-label` describing the set of tabs.
36
+ Row of `TabsTrigger`s on the `TabsList` primitive, with its animated active-tab indicator. When the tabs do not
37
+ fit it scrolls horizontally (scrollbar hidden), fades the side that has more tabs, and keeps the active tab in
38
+ view on mount and on every change, so it stays usable on narrow screens. Give it an `aria-label` describing the
39
+ set of tabs.
39
40
 
40
41
  | Prop | Type | Default | Description |
41
42
  | --- | --- | --- | --- |
42
43
  | `activateOnFocus` | `boolean` | `true` | Activate a tab as soon as the arrow keys move focus to it, as the dashboard tabs do. Set to `false` to only move focus and activate with Enter or Space. |
43
44
  | `className` | `string` | - | Additional Tailwind classes, merged last. |
45
+ | `size` | `"default" \| "sm"` | `"default"` | `default`: Underline tabs 36 tall, pill tabs 28, as in Figma. The default.<br>`sm`: Underline tabs 32 tall, pill tabs 24: a compact row inside a card header or a dense toolbar. Not a Figma size. Vertical tabs keep 28. |
44
46
  | `variant` | `"underline" \| "pill"` | `"underline"` | `underline`: Full-width bar with a 1px rule under the tabs and a 2px lime indicator under the active tab, fading at both ends; for page sections. Vertical lists (`orientation="vertical"`) get a 1px rail on the start side and the same fading lime bar, 2px wide.<br>`pill`: Grey track with a white active pill, for switching a range or view inside a card (7 / 30 / 90 days). |
45
47
 
46
48
  Also accepts Base UI props: `loopFocus`, `render`.
47
49
 
50
+ ## TabsPanels
51
+
52
+ Wraps the `TabsContent`s of tabs whose panels differ in height: it follows the shown panel's height with the fast
53
+ motion (`duration-fast`, `ease-smooth-out`), so whatever sits under the tabs glides instead of jumping. Without
54
+ reduced motion only; the first height is set at once.
55
+
56
+ | Prop | Type | Default | Description |
57
+ | --- | --- | --- | --- |
58
+ | `className` | `string` | - | Additional Tailwind classes, merged last. |
59
+
48
60
  ## TabsTrigger
49
61
 
50
62
  A tab (primitive `TabsTab`): an optional leading `icon`, the label (truncates at 180px) and an optional `count`.
@@ -107,6 +119,44 @@ export default function TabsBasic() {
107
119
  }
108
120
  ```
109
121
 
122
+ ### tabs/compact
123
+
124
+ ```tsx
125
+ "use client";
126
+
127
+ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@dodopayments/ui/tabs";
128
+
129
+ export default function TabsCompact() {
130
+ return (
131
+ <div className="flex w-full max-w-md flex-col gap-6">
132
+ <Tabs defaultValue="all">
133
+ <TabsList size="sm" aria-label="Payments">
134
+ <TabsTrigger value="all">All</TabsTrigger>
135
+ <TabsTrigger value="succeeded">Succeeded</TabsTrigger>
136
+ <TabsTrigger value="failed">Failed</TabsTrigger>
137
+ </TabsList>
138
+ <TabsContent value="all" className="text-body-primary text-muted-foreground">
139
+ Every payment.
140
+ </TabsContent>
141
+ <TabsContent value="succeeded" className="text-body-primary text-muted-foreground">
142
+ Payments that went through.
143
+ </TabsContent>
144
+ <TabsContent value="failed" className="text-body-primary text-muted-foreground">
145
+ Payments that failed.
146
+ </TabsContent>
147
+ </Tabs>
148
+ <Tabs defaultValue="7d">
149
+ <TabsList variant="pill" size="sm" aria-label="Period">
150
+ <TabsTrigger value="7d">7 days</TabsTrigger>
151
+ <TabsTrigger value="30d">30 days</TabsTrigger>
152
+ <TabsTrigger value="90d">90 days</TabsTrigger>
153
+ </TabsList>
154
+ </Tabs>
155
+ </div>
156
+ );
157
+ }
158
+ ```
159
+
110
160
  ### tabs/icon-count
111
161
 
112
162
  ```tsx
@@ -37,6 +37,7 @@ tables and detail headers; use `TestModeBanner` for the page-wide notice.
37
37
  | `labels` | `Readonly<Record<string, string \| undefined>>` | - | Labels keyed by raw status, e.g. translations: `{ succeeded: "Erfolgreich" }`. Only with `status`. |
38
38
  | `layout` | `"default" \| "icon" \| null` | - | |
39
39
  | `leadingIcon` | `ReactNode` | - | An icon before the label (Figma "Show leading icon"), 12px, e.g. a clock on a session timer or a card on a payment method chip. Decorative: the label names the badge. Replaces the `dot`. |
40
+ | `size` | `"sm" \| "md" \| null` | - | |
40
41
  | `status` | `"succeeded" \| "failed" \| "cancelled" \| "expired" \| "processing" \| "requires_customer_action" \| "requires_payment_method" \| "requires_merchant_action" \| "requires_confirmation" \| "requires_capture" \| "partially_captured" \| "partially_captured_and_capturable" \| "active" \| "pending" \| "on_hold" \| "paused" \| "scheduled_for_cancellation" \| "review" \| "partial" \| "full" \| "pre_dispute" \| "dispute" \| "pre_arbitration" \| "dispute_opened" \| "dispute_expired" \| "dispute_accepted" \| "dispute_cancelled" \| "dispute_challenged" \| "dispute_won" \| "dispute_lost" \| (string & Record<never, never>) \| null` | - | Raw status from the Dodo Payments API, e.g. `succeeded`, `on_hold` or `partial`. Picks the tone and the label (`children` replaces the label, e.g. with a translation). Unknown statuses render neutral with a readable label; `null`, `""` and a passed `undefined` (`status={row.status}` with no status yet) render "No status". When it changes, the tone crossfades and the new label swaps in. |
41
42
  | `tone` | `"info" \| "success" \| "warning" \| "error" \| "violet" \| "neutral" \| "pink" \| "orange" \| null` | - | |
42
43
  | `trailingIcon` | `"info"` | - | An icon after the label. `info` is a circle-info icon; wrap the badge in a `Tooltip` to explain it. |
@@ -60,7 +61,9 @@ export default function TestModeBannerBasic() {
60
61
  learnMoreHref="https://docs.dodopayments.com/miscellaneous/test-mode-vs-live-mode"
61
62
  />
62
63
  <div className="flex items-center gap-2 p-4">
63
- <span className="text-label-primary text-foreground">pay_2IjeQm4hqU6RA4Z4kwDee</span>
64
+ <span className="min-w-0 truncate text-label-primary text-foreground">
65
+ pay_2IjeQm4hqU6RA4Z4kwDee
66
+ </span>
64
67
  <TestModeBadge />
65
68
  </div>
66
69
  </div>