@dodopayments/ui 1.7.1 → 1.8.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 (475) hide show
  1. package/ai/component-registry.json +1579 -219
  2. package/ai/component-registry.md +43 -39
  3. package/ai/components/app-top-bar.md +17 -5
  4. package/ai/components/area-chart.md +2 -0
  5. package/ai/components/avatar.md +3 -0
  6. package/ai/components/bar-chart.md +2 -0
  7. package/ai/components/breadcrumb.md +2 -0
  8. package/ai/components/button-group.md +2 -0
  9. package/ai/components/chart-legend.md +2 -0
  10. package/ai/components/checkout-page.md +2 -0
  11. package/ai/components/color-input.md +2 -0
  12. package/ai/components/combobox.md +199 -0
  13. package/ai/components/composed-chart.md +2 -0
  14. package/ai/components/container.md +2 -0
  15. package/ai/components/context-menu.md +2 -0
  16. package/ai/components/data-grid.md +1 -1
  17. package/ai/components/dialog.md +1 -0
  18. package/ai/components/direction-provider.md +2 -0
  19. package/ai/components/drawer.md +2 -0
  20. package/ai/components/field.md +2 -0
  21. package/ai/components/filter-grid.md +2 -0
  22. package/ai/components/flag.md +22 -0
  23. package/ai/components/funnel-chart.md +2 -0
  24. package/ai/components/fx-conversion.md +2 -0
  25. package/ai/components/gauge-chart.md +2 -0
  26. package/ai/components/heatmap-chart.md +2 -0
  27. package/ai/components/invoice-document.md +2 -0
  28. package/ai/components/link.md +3 -3
  29. package/ai/components/list-toolbar.md +3 -1
  30. package/ai/components/live-activity.md +2 -0
  31. package/ai/components/new-items-pill.md +2 -0
  32. package/ai/components/page-header.md +13 -11
  33. package/ai/components/payment-logos.md +5 -4
  34. package/ai/components/payment-result.md +2 -0
  35. package/ai/components/pie-chart.md +2 -0
  36. package/ai/components/plan-picker.md +2 -0
  37. package/ai/components/product-card.md +2 -0
  38. package/ai/components/proration-preview.md +2 -0
  39. package/ai/components/radar-chart.md +2 -0
  40. package/ai/components/reorder-list.md +3 -0
  41. package/ai/components/required-mark.md +22 -0
  42. package/ai/components/ring-chart.md +2 -0
  43. package/ai/components/sale-share-card.md +2 -0
  44. package/ai/components/sankey-chart.md +2 -0
  45. package/ai/components/scatter-chart.md +2 -0
  46. package/ai/components/segmented-control.md +14 -1
  47. package/ai/components/settings-section.md +2 -0
  48. package/ai/components/sheet.md +8 -4
  49. package/ai/components/sidebar.md +13 -2
  50. package/ai/components/slider.md +2 -0
  51. package/ai/components/spinner.md +2 -0
  52. package/ai/components/sunburst-chart.md +2 -0
  53. package/ai/components/switch-transition.md +91 -0
  54. package/ai/components/task-steps.md +2 -0
  55. package/ai/components/test-mode-banner.md +2 -2
  56. package/ai/components/timestamp.md +8 -8
  57. package/ai/components/timezone-select.md +2 -0
  58. package/ai/components/typing-indicator.md +2 -0
  59. package/ai/components/wallet-buttons.md +2 -0
  60. package/ai/components/wizard-steps.md +2 -0
  61. package/ai/skills/dodo-charts/SKILL.md +21 -12
  62. package/ai/skills/dodo-design/SKILL.md +32 -16
  63. package/bin/registry.js +15 -4
  64. package/bin/scan.d.ts +3 -2
  65. package/bin/scan.js +4 -4
  66. package/dist/components/app-top-bar/app-top-bar.d.ts +17 -3
  67. package/dist/components/app-top-bar/app-top-bar.d.ts.map +1 -1
  68. package/dist/components/app-top-bar/app-top-bar.js +37 -16
  69. package/dist/components/app-top-bar/app-top-bar.js.map +1 -1
  70. package/dist/components/app-top-bar/index.d.ts +1 -1
  71. package/dist/components/app-top-bar/index.d.ts.map +1 -1
  72. package/dist/components/app-top-bar/index.js +1 -1
  73. package/dist/components/app-top-bar/index.js.map +1 -1
  74. package/dist/components/avatar/avatar.d.ts +22 -1
  75. package/dist/components/avatar/avatar.d.ts.map +1 -1
  76. package/dist/components/avatar/avatar.js +13 -3
  77. package/dist/components/avatar/avatar.js.map +1 -1
  78. package/dist/components/card/card.d.ts +1 -1
  79. package/dist/components/card/card.d.ts.map +1 -1
  80. package/dist/components/card/card.js +11 -2
  81. package/dist/components/card/card.js.map +1 -1
  82. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  83. package/dist/components/checkbox/checkbox.js +7 -3
  84. package/dist/components/checkbox/checkbox.js.map +1 -1
  85. package/dist/components/{select/select-combobox.d.ts → combobox/combobox.d.ts} +1 -1
  86. package/dist/components/combobox/combobox.d.ts.map +1 -0
  87. package/dist/components/{select/select-combobox.js → combobox/combobox.js} +1 -1
  88. package/dist/components/combobox/combobox.js.map +1 -0
  89. package/dist/components/combobox/index.d.ts +2 -0
  90. package/dist/components/combobox/index.d.ts.map +1 -0
  91. package/dist/components/combobox/index.js +2 -0
  92. package/dist/components/combobox/index.js.map +1 -0
  93. package/dist/components/country-select/country-select.js +1 -1
  94. package/dist/components/country-select/country-select.js.map +1 -1
  95. package/dist/components/currency-select/currency-select.js +1 -1
  96. package/dist/components/currency-select/currency-select.js.map +1 -1
  97. package/dist/components/data-grid/data-grid.d.ts +1 -1
  98. package/dist/components/data-grid/data-grid.js +4 -4
  99. package/dist/components/data-grid/data-grid.js.map +1 -1
  100. package/dist/components/date-picker/date-picker.d.ts +1 -1
  101. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  102. package/dist/components/date-picker/date-picker.js +8 -7
  103. package/dist/components/date-picker/date-picker.js.map +1 -1
  104. package/dist/components/date-picker/index.d.ts +1 -1
  105. package/dist/components/date-picker/index.d.ts.map +1 -1
  106. package/dist/components/date-picker/index.js +1 -1
  107. package/dist/components/date-picker/index.js.map +1 -1
  108. package/dist/components/dialog/confirm-dialog.d.ts +7 -1
  109. package/dist/components/dialog/confirm-dialog.d.ts.map +1 -1
  110. package/dist/components/dialog/confirm-dialog.js +2 -2
  111. package/dist/components/dialog/confirm-dialog.js.map +1 -1
  112. package/dist/components/field/field.d.ts +0 -19
  113. package/dist/components/field/field.d.ts.map +1 -1
  114. package/dist/components/field/field.js +2 -13
  115. package/dist/components/field/field.js.map +1 -1
  116. package/dist/components/field/index.d.ts +1 -1
  117. package/dist/components/field/index.d.ts.map +1 -1
  118. package/dist/components/field/index.js +1 -1
  119. package/dist/components/field/index.js.map +1 -1
  120. package/dist/components/field/label.d.ts +0 -8
  121. package/dist/components/field/label.d.ts.map +1 -1
  122. package/dist/components/field/label.js +1 -9
  123. package/dist/components/field/label.js.map +1 -1
  124. package/dist/components/filter-grid/filter-grid.js +1 -1
  125. package/dist/components/filter-grid/filter-grid.js.map +1 -1
  126. package/dist/components/flag/country-flag.d.ts.map +1 -0
  127. package/dist/components/flag/country-flag.js.map +1 -0
  128. package/dist/components/flag/flag.d.ts.map +1 -0
  129. package/dist/components/{payment-logos → flag}/flag.js +1 -1
  130. package/dist/components/flag/flag.js.map +1 -0
  131. package/dist/components/flag/index.d.ts +2 -0
  132. package/dist/components/flag/index.d.ts.map +1 -0
  133. package/dist/components/flag/index.js +2 -0
  134. package/dist/components/flag/index.js.map +1 -0
  135. package/dist/components/form/form.js +1 -1
  136. package/dist/components/form/form.js.map +1 -1
  137. package/dist/components/form-field/form-field.d.ts.map +1 -1
  138. package/dist/components/form-field/form-field.js +2 -1
  139. package/dist/components/form-field/form-field.js.map +1 -1
  140. package/dist/components/input/chips-field.d.ts +6 -0
  141. package/dist/components/input/chips-field.d.ts.map +1 -1
  142. package/dist/components/input/chips-field.js +3 -1
  143. package/dist/components/input/chips-field.js.map +1 -1
  144. package/dist/components/input/input-chips-suggestions.js +1 -1
  145. package/dist/components/input/input-chips-suggestions.js.map +1 -1
  146. package/dist/components/input/input-phone.js +1 -1
  147. package/dist/components/input/input-phone.js.map +1 -1
  148. package/dist/components/input/input.d.ts +15 -0
  149. package/dist/components/input/input.d.ts.map +1 -1
  150. package/dist/components/input/input.js +9 -4
  151. package/dist/components/input/input.js.map +1 -1
  152. package/dist/components/link/link.d.ts +5 -5
  153. package/dist/components/link/link.js +5 -5
  154. package/dist/components/link/link.js.map +1 -1
  155. package/dist/components/list-toolbar/list-toolbar-date-range.d.ts +1 -1
  156. package/dist/components/list-toolbar/list-toolbar-date-range.js +3 -3
  157. package/dist/components/list-toolbar/list-toolbar-date-range.js.map +1 -1
  158. package/dist/components/list-toolbar/list-toolbar.d.ts +3 -1
  159. package/dist/components/list-toolbar/list-toolbar.d.ts.map +1 -1
  160. package/dist/components/list-toolbar/list-toolbar.js +14 -3
  161. package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
  162. package/dist/components/page-header/page-header.d.ts +11 -7
  163. package/dist/components/page-header/page-header.d.ts.map +1 -1
  164. package/dist/components/page-header/page-header.js +34 -11
  165. package/dist/components/page-header/page-header.js.map +1 -1
  166. package/dist/components/payment-logos/index.d.ts +1 -1
  167. package/dist/components/payment-logos/index.d.ts.map +1 -1
  168. package/dist/components/payment-logos/index.js +1 -1
  169. package/dist/components/payment-logos/index.js.map +1 -1
  170. package/dist/components/payment-logos/payment-logos.d.ts +8 -3
  171. package/dist/components/payment-logos/payment-logos.d.ts.map +1 -1
  172. package/dist/components/payment-logos/payment-logos.js +5 -5
  173. package/dist/components/payment-logos/payment-logos.js.map +1 -1
  174. package/dist/components/radio-group/radio-group.d.ts +2 -2
  175. package/dist/components/radio-group/radio-group.js +5 -5
  176. package/dist/components/radio-group/radio-group.js.map +1 -1
  177. package/dist/components/record-header/record-header.js +1 -1
  178. package/dist/components/record-header/record-header.js.map +1 -1
  179. package/dist/components/reorder-list/reorder-list.d.ts +7 -1
  180. package/dist/components/reorder-list/reorder-list.d.ts.map +1 -1
  181. package/dist/components/reorder-list/reorder-list.js +11 -5
  182. package/dist/components/reorder-list/reorder-list.js.map +1 -1
  183. package/dist/components/required-mark/index.d.ts +2 -0
  184. package/dist/components/required-mark/index.d.ts.map +1 -0
  185. package/dist/components/required-mark/index.js +2 -0
  186. package/dist/components/required-mark/index.js.map +1 -0
  187. package/dist/components/required-mark/required-mark.d.ts +9 -0
  188. package/dist/components/required-mark/required-mark.d.ts.map +1 -0
  189. package/dist/components/required-mark/required-mark.js +11 -0
  190. package/dist/components/required-mark/required-mark.js.map +1 -0
  191. package/dist/components/segmented-control/index.d.ts +1 -1
  192. package/dist/components/segmented-control/index.d.ts.map +1 -1
  193. package/dist/components/segmented-control/index.js +1 -1
  194. package/dist/components/segmented-control/index.js.map +1 -1
  195. package/dist/components/segmented-control/segmented-control.d.ts +19 -0
  196. package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
  197. package/dist/components/segmented-control/segmented-control.js +28 -7
  198. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  199. package/dist/components/select/select.d.ts +1 -1
  200. package/dist/components/select/select.d.ts.map +1 -1
  201. package/dist/components/select/select.js +10 -4
  202. package/dist/components/select/select.js.map +1 -1
  203. package/dist/components/settings-section/settings-section.d.ts +3 -1
  204. package/dist/components/settings-section/settings-section.d.ts.map +1 -1
  205. package/dist/components/settings-section/settings-section.js +6 -5
  206. package/dist/components/settings-section/settings-section.js.map +1 -1
  207. package/dist/components/sheet/sheet.d.ts +6 -4
  208. package/dist/components/sheet/sheet.d.ts.map +1 -1
  209. package/dist/components/sheet/sheet.js +4 -2
  210. package/dist/components/sheet/sheet.js.map +1 -1
  211. package/dist/components/sidebar/index.d.ts +1 -1
  212. package/dist/components/sidebar/index.d.ts.map +1 -1
  213. package/dist/components/sidebar/index.js +1 -1
  214. package/dist/components/sidebar/index.js.map +1 -1
  215. package/dist/components/sidebar/sidebar.d.ts +22 -3
  216. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  217. package/dist/components/sidebar/sidebar.js +28 -12
  218. package/dist/components/sidebar/sidebar.js.map +1 -1
  219. package/dist/components/spinner/spinner.d.ts +12 -1
  220. package/dist/components/spinner/spinner.d.ts.map +1 -1
  221. package/dist/components/spinner/spinner.js +2 -2
  222. package/dist/components/spinner/spinner.js.map +1 -1
  223. package/dist/components/switch-transition/index.d.ts +2 -0
  224. package/dist/components/switch-transition/index.d.ts.map +1 -0
  225. package/dist/components/switch-transition/index.js +2 -0
  226. package/dist/components/switch-transition/index.js.map +1 -0
  227. package/dist/components/switch-transition/switch-transition.d.ts +30 -0
  228. package/dist/components/switch-transition/switch-transition.d.ts.map +1 -0
  229. package/dist/components/switch-transition/switch-transition.js +80 -0
  230. package/dist/components/switch-transition/switch-transition.js.map +1 -0
  231. package/dist/components/test-mode-banner/test-mode-banner.d.ts +1 -1
  232. package/dist/components/test-mode-banner/test-mode-banner.js +2 -2
  233. package/dist/components/test-mode-banner/test-mode-banner.js.map +1 -1
  234. package/dist/components/timestamp/timestamp.d.ts +5 -7
  235. package/dist/components/timestamp/timestamp.d.ts.map +1 -1
  236. package/dist/components/timestamp/timestamp.js +18 -14
  237. package/dist/components/timestamp/timestamp.js.map +1 -1
  238. package/dist/icons/index.d.ts +22 -0
  239. package/dist/icons/index.d.ts.map +1 -1
  240. package/dist/icons/index.js +22 -0
  241. package/dist/icons/index.js.map +1 -1
  242. package/dist/icons/ui/ai-agents.d.ts +3 -1
  243. package/dist/icons/ui/ai-agents.d.ts.map +1 -1
  244. package/dist/icons/ui/ai-agents.js +3 -1
  245. package/dist/icons/ui/ai-agents.js.map +1 -1
  246. package/dist/icons/ui/badge-check-2-outline-duo.d.ts +3 -0
  247. package/dist/icons/ui/badge-check-2-outline-duo.d.ts.map +1 -0
  248. package/dist/icons/ui/badge-check-2-outline-duo.js +5 -0
  249. package/dist/icons/ui/badge-check-2-outline-duo.js.map +1 -0
  250. package/dist/icons/ui/ban-outline-duo.d.ts +3 -0
  251. package/dist/icons/ui/ban-outline-duo.d.ts.map +1 -0
  252. package/dist/icons/ui/ban-outline-duo.js +5 -0
  253. package/dist/icons/ui/ban-outline-duo.js.map +1 -0
  254. package/dist/icons/ui/chart-column-outline-duo.d.ts +3 -0
  255. package/dist/icons/ui/chart-column-outline-duo.d.ts.map +1 -0
  256. package/dist/icons/ui/chart-column-outline-duo.js +5 -0
  257. package/dist/icons/ui/chart-column-outline-duo.js.map +1 -0
  258. package/dist/icons/ui/check-glyph-12.d.ts +3 -1
  259. package/dist/icons/ui/check-glyph-12.d.ts.map +1 -1
  260. package/dist/icons/ui/check-glyph-12.js +3 -1
  261. package/dist/icons/ui/check-glyph-12.js.map +1 -1
  262. package/dist/icons/ui/circle-user-outline-duo.d.ts +3 -0
  263. package/dist/icons/ui/circle-user-outline-duo.d.ts.map +1 -0
  264. package/dist/icons/ui/circle-user-outline-duo.js +5 -0
  265. package/dist/icons/ui/circle-user-outline-duo.js.map +1 -0
  266. package/dist/icons/ui/credit-card-outline-duo.d.ts +3 -0
  267. package/dist/icons/ui/credit-card-outline-duo.d.ts.map +1 -0
  268. package/dist/icons/ui/credit-card-outline-duo.js +5 -0
  269. package/dist/icons/ui/credit-card-outline-duo.js.map +1 -0
  270. package/dist/icons/ui/crown.d.ts +3 -0
  271. package/dist/icons/ui/crown.d.ts.map +1 -0
  272. package/dist/icons/ui/crown.js +5 -0
  273. package/dist/icons/ui/crown.js.map +1 -0
  274. package/dist/icons/ui/envelope-outline-duo.d.ts +3 -0
  275. package/dist/icons/ui/envelope-outline-duo.d.ts.map +1 -0
  276. package/dist/icons/ui/envelope-outline-duo.js +5 -0
  277. package/dist/icons/ui/envelope-outline-duo.js.map +1 -0
  278. package/dist/icons/ui/gear-outline-duo.d.ts +3 -0
  279. package/dist/icons/ui/gear-outline-duo.d.ts.map +1 -0
  280. package/dist/icons/ui/gear-outline-duo.js +5 -0
  281. package/dist/icons/ui/gear-outline-duo.js.map +1 -0
  282. package/dist/icons/ui/greek-temple-2-outline-duo.d.ts +3 -0
  283. package/dist/icons/ui/greek-temple-2-outline-duo.d.ts.map +1 -0
  284. package/dist/icons/ui/greek-temple-2-outline-duo.js +5 -0
  285. package/dist/icons/ui/greek-temple-2-outline-duo.js.map +1 -0
  286. package/dist/icons/ui/heart-glyph.d.ts +3 -1
  287. package/dist/icons/ui/heart-glyph.d.ts.map +1 -1
  288. package/dist/icons/ui/heart-glyph.js +3 -1
  289. package/dist/icons/ui/heart-glyph.js.map +1 -1
  290. package/dist/icons/ui/heart.d.ts +3 -1
  291. package/dist/icons/ui/heart.d.ts.map +1 -1
  292. package/dist/icons/ui/heart.js +3 -1
  293. package/dist/icons/ui/heart.js.map +1 -1
  294. package/dist/icons/ui/laptop-2.d.ts +3 -0
  295. package/dist/icons/ui/laptop-2.d.ts.map +1 -0
  296. package/dist/icons/ui/laptop-2.js +5 -0
  297. package/dist/icons/ui/laptop-2.js.map +1 -0
  298. package/dist/icons/ui/life-ring-outline-duo.d.ts +3 -0
  299. package/dist/icons/ui/life-ring-outline-duo.d.ts.map +1 -0
  300. package/dist/icons/ui/life-ring-outline-duo.js +5 -0
  301. package/dist/icons/ui/life-ring-outline-duo.js.map +1 -0
  302. package/dist/icons/ui/mobile.d.ts +3 -0
  303. package/dist/icons/ui/mobile.d.ts.map +1 -0
  304. package/dist/icons/ui/mobile.js +5 -0
  305. package/dist/icons/ui/mobile.js.map +1 -0
  306. package/dist/icons/ui/office-3-outline-duo.d.ts +3 -0
  307. package/dist/icons/ui/office-3-outline-duo.d.ts.map +1 -0
  308. package/dist/icons/ui/office-3-outline-duo.js +5 -0
  309. package/dist/icons/ui/office-3-outline-duo.js.map +1 -0
  310. package/dist/icons/ui/palette-2-outline-duo.d.ts +3 -0
  311. package/dist/icons/ui/palette-2-outline-duo.d.ts.map +1 -0
  312. package/dist/icons/ui/palette-2-outline-duo.js +5 -0
  313. package/dist/icons/ui/palette-2-outline-duo.js.map +1 -0
  314. package/dist/icons/ui/plug-2-outline-duo.d.ts +3 -0
  315. package/dist/icons/ui/plug-2-outline-duo.d.ts.map +1 -0
  316. package/dist/icons/ui/plug-2-outline-duo.js +5 -0
  317. package/dist/icons/ui/plug-2-outline-duo.js.map +1 -0
  318. package/dist/icons/ui/plug-sparkle-outline-duo.d.ts +3 -0
  319. package/dist/icons/ui/plug-sparkle-outline-duo.d.ts.map +1 -0
  320. package/dist/icons/ui/plug-sparkle-outline-duo.js +5 -0
  321. package/dist/icons/ui/plug-sparkle-outline-duo.js.map +1 -0
  322. package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts +3 -0
  323. package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts.map +1 -0
  324. package/dist/icons/ui/refresh-clockwise-outline-duo.js +5 -0
  325. package/dist/icons/ui/refresh-clockwise-outline-duo.js.map +1 -0
  326. package/dist/icons/ui/scale-outline-duo.d.ts +3 -0
  327. package/dist/icons/ui/scale-outline-duo.d.ts.map +1 -0
  328. package/dist/icons/ui/scale-outline-duo.js +5 -0
  329. package/dist/icons/ui/scale-outline-duo.js.map +1 -0
  330. package/dist/icons/ui/shop-outline-duo.d.ts +3 -0
  331. package/dist/icons/ui/shop-outline-duo.d.ts.map +1 -0
  332. package/dist/icons/ui/shop-outline-duo.js +5 -0
  333. package/dist/icons/ui/shop-outline-duo.js.map +1 -0
  334. package/dist/icons/ui/tag-outline-duo.d.ts +3 -0
  335. package/dist/icons/ui/tag-outline-duo.d.ts.map +1 -0
  336. package/dist/icons/ui/tag-outline-duo.js +5 -0
  337. package/dist/icons/ui/tag-outline-duo.js.map +1 -0
  338. package/dist/icons/ui/ticket-outline-duo.d.ts +3 -0
  339. package/dist/icons/ui/ticket-outline-duo.d.ts.map +1 -0
  340. package/dist/icons/ui/ticket-outline-duo.js +5 -0
  341. package/dist/icons/ui/ticket-outline-duo.js.map +1 -0
  342. package/dist/icons/ui/trash-2.d.ts +3 -1
  343. package/dist/icons/ui/trash-2.d.ts.map +1 -1
  344. package/dist/icons/ui/trash-2.js +3 -1
  345. package/dist/icons/ui/trash-2.js.map +1 -1
  346. package/dist/icons/ui/users-6-outline-duo.d.ts +3 -0
  347. package/dist/icons/ui/users-6-outline-duo.d.ts.map +1 -0
  348. package/dist/icons/ui/users-6-outline-duo.js +5 -0
  349. package/dist/icons/ui/users-6-outline-duo.js.map +1 -0
  350. package/dist/index.d.ts +4 -0
  351. package/dist/index.d.ts.map +1 -1
  352. package/dist/index.js +4 -0
  353. package/dist/index.js.map +1 -1
  354. package/dist/{components/date-picker/day-label.d.ts → lib/calendar-day.d.ts} +1 -1
  355. package/dist/lib/calendar-day.d.ts.map +1 -0
  356. package/dist/{components/date-picker/day-label.js → lib/calendar-day.js} +1 -1
  357. package/dist/lib/calendar-day.js.map +1 -0
  358. package/dist/lib/cn-tables.js +5 -5
  359. package/dist/lib/cn-tables.js.map +1 -1
  360. package/dist/lib/column-title.d.ts.map +1 -0
  361. package/dist/lib/column-title.js.map +1 -0
  362. package/dist/{components/date-picker/presets.d.ts → lib/date-presets.d.ts} +2 -2
  363. package/dist/lib/date-presets.d.ts.map +1 -0
  364. package/dist/{components/date-picker/presets.js → lib/date-presets.js} +2 -2
  365. package/dist/lib/date-presets.js.map +1 -0
  366. package/dist/lib/field-context.d.ts +21 -0
  367. package/dist/lib/field-context.d.ts.map +1 -0
  368. package/dist/lib/field-context.js +14 -0
  369. package/dist/lib/field-context.js.map +1 -0
  370. package/dist/lib/motion.d.ts +4 -2
  371. package/dist/lib/motion.d.ts.map +1 -1
  372. package/dist/lib/motion.js +4 -2
  373. package/dist/lib/motion.js.map +1 -1
  374. package/dist/lib/use-animated-height.d.ts +6 -0
  375. package/dist/lib/use-animated-height.d.ts.map +1 -0
  376. package/dist/lib/use-animated-height.js +67 -0
  377. package/dist/lib/use-animated-height.js.map +1 -0
  378. package/dist/primitives/lib/segmented-control.js +2 -2
  379. package/dist/primitives/lib/segmented-control.js.map +1 -1
  380. package/dist/primitives/ui/autocomplete.js +1 -1
  381. package/dist/primitives/ui/autocomplete.js.map +1 -1
  382. package/dist/primitives/ui/button.js +6 -6
  383. package/dist/primitives/ui/button.js.map +1 -1
  384. package/dist/primitives/ui/card.js +1 -1
  385. package/dist/primitives/ui/card.js.map +1 -1
  386. package/dist/primitives/ui/checkbox.js +1 -1
  387. package/dist/primitives/ui/checkbox.js.map +1 -1
  388. package/dist/primitives/ui/combobox.js +3 -3
  389. package/dist/primitives/ui/combobox.js.map +1 -1
  390. package/dist/primitives/ui/dialog.d.ts.map +1 -1
  391. package/dist/primitives/ui/dialog.js +4 -2
  392. package/dist/primitives/ui/dialog.js.map +1 -1
  393. package/dist/primitives/ui/drawer.js +1 -1
  394. package/dist/primitives/ui/drawer.js.map +1 -1
  395. package/dist/primitives/ui/empty.js +2 -2
  396. package/dist/primitives/ui/empty.js.map +1 -1
  397. package/dist/primitives/ui/group.js +2 -2
  398. package/dist/primitives/ui/group.js.map +1 -1
  399. package/dist/primitives/ui/input-group.js +1 -1
  400. package/dist/primitives/ui/input-group.js.map +1 -1
  401. package/dist/primitives/ui/input.js +2 -2
  402. package/dist/primitives/ui/input.js.map +1 -1
  403. package/dist/primitives/ui/menu.d.ts +1 -1
  404. package/dist/primitives/ui/menu.d.ts.map +1 -1
  405. package/dist/primitives/ui/menu.js +1 -1
  406. package/dist/primitives/ui/menu.js.map +1 -1
  407. package/dist/primitives/ui/number-field.js +1 -1
  408. package/dist/primitives/ui/number-field.js.map +1 -1
  409. package/dist/primitives/ui/otp-field.js +1 -1
  410. package/dist/primitives/ui/otp-field.js.map +1 -1
  411. package/dist/primitives/ui/popover.js +1 -1
  412. package/dist/primitives/ui/popover.js.map +1 -1
  413. package/dist/primitives/ui/preview-card.js +1 -1
  414. package/dist/primitives/ui/preview-card.js.map +1 -1
  415. package/dist/primitives/ui/radio-group.js +1 -1
  416. package/dist/primitives/ui/radio-group.js.map +1 -1
  417. package/dist/primitives/ui/select.js +2 -2
  418. package/dist/primitives/ui/select.js.map +1 -1
  419. package/dist/primitives/ui/sheet.d.ts +4 -3
  420. package/dist/primitives/ui/sheet.d.ts.map +1 -1
  421. package/dist/primitives/ui/sheet.js +113 -7
  422. package/dist/primitives/ui/sheet.js.map +1 -1
  423. package/dist/primitives/ui/sidebar.js +2 -2
  424. package/dist/primitives/ui/sidebar.js.map +1 -1
  425. package/dist/primitives/ui/skeleton.js +1 -1
  426. package/dist/primitives/ui/skeleton.js.map +1 -1
  427. package/dist/primitives/ui/switch.d.ts +2 -2
  428. package/dist/primitives/ui/switch.d.ts.map +1 -1
  429. package/dist/primitives/ui/switch.js +2 -2
  430. package/dist/primitives/ui/switch.js.map +1 -1
  431. package/dist/primitives/ui/table.js +4 -4
  432. package/dist/primitives/ui/table.js.map +1 -1
  433. package/dist/primitives/ui/textarea.js +2 -2
  434. package/dist/primitives/ui/textarea.js.map +1 -1
  435. package/dist/primitives/ui/toast.js +2 -2
  436. package/dist/primitives/ui/toast.js.map +1 -1
  437. package/dist/primitives/ui/toggle-group.js +1 -1
  438. package/dist/primitives/ui/toggle-group.js.map +1 -1
  439. package/dist/primitives/ui/toggle.js +1 -1
  440. package/dist/primitives/ui/toggle.js.map +1 -1
  441. package/dist/primitives/ui/toolbar.js +1 -1
  442. package/dist/primitives/ui/toolbar.js.map +1 -1
  443. package/dist/primitives/ui/tooltip.js +1 -1
  444. package/dist/primitives/ui/tooltip.js.map +1 -1
  445. package/dist/styles/extensions.css +5 -0
  446. package/dist/styles/hover.test.tsx +154 -0
  447. package/dist/styles/rtl.test.tsx +1 -1
  448. package/dist/styles/theme-switch-tokens.test.tsx +96 -0
  449. package/dist/styles/theme.css +90 -10
  450. package/dist/styles/tokens-artwork.css +115 -0
  451. package/dist/styles/tokens-charts.css +81 -0
  452. package/dist/styles/tokens-motion.css +60 -0
  453. package/dist/styles/tokens.css +113 -342
  454. package/dist/styles/tokens.test.tsx +187 -4
  455. package/eslint/restricted-classes.js +6 -0
  456. package/package.json +5 -1
  457. package/stylelint/index.d.ts +1 -1
  458. package/stylelint/index.js +9 -2
  459. package/dist/components/country-select/country-flag.d.ts.map +0 -1
  460. package/dist/components/country-select/country-flag.js.map +0 -1
  461. package/dist/components/data-grid/column-title.d.ts.map +0 -1
  462. package/dist/components/data-grid/column-title.js.map +0 -1
  463. package/dist/components/date-picker/day-label.d.ts.map +0 -1
  464. package/dist/components/date-picker/day-label.js.map +0 -1
  465. package/dist/components/date-picker/presets.d.ts.map +0 -1
  466. package/dist/components/date-picker/presets.js.map +0 -1
  467. package/dist/components/payment-logos/flag.d.ts.map +0 -1
  468. package/dist/components/payment-logos/flag.js.map +0 -1
  469. package/dist/components/select/select-combobox.d.ts.map +0 -1
  470. package/dist/components/select/select-combobox.js.map +0 -1
  471. /package/dist/components/{country-select → flag}/country-flag.d.ts +0 -0
  472. /package/dist/components/{country-select → flag}/country-flag.js +0 -0
  473. /package/dist/components/{payment-logos → flag}/flag.d.ts +0 -0
  474. /package/dist/{components/data-grid → lib}/column-title.d.ts +0 -0
  475. /package/dist/{components/data-grid → lib}/column-title.js +0 -0
@@ -0,0 +1,22 @@
1
+ # Flag
2
+
3
+ > **Beta**: the API may still change in a minor release.
4
+
5
+ A country flag for a currency or a country: the Nucleo flag, 20 × 14 with its corners clipped to 2, no
6
+ border, never recoloured. Decorative unless it gets an `aria-label` (give it one only when no country or
7
+ currency name sits next to it). Each flag loads on first use; codes without a flag show a globe.
8
+
9
+ ```tsx
10
+ import { Flag } from "@dodopayments/ui/flag";
11
+ ```
12
+
13
+ ## Flag
14
+
15
+ A country flag for a currency or a country: the Nucleo flag, 20 × 14 with its corners clipped to 2, no
16
+ border, never recoloured. Decorative unless it gets an `aria-label` (give it one only when no country or
17
+ currency name sits next to it). Each flag loads on first use; codes without a flag show a globe.
18
+
19
+ | Prop | Type | Default | Description |
20
+ | --- | --- | --- | --- |
21
+ | `country` (required) | `string` | - | ISO 3166-1 alpha-2 code, any case: `"IN"`, `"us"`. `"EU"` is the euro's flag. |
22
+
@@ -1,5 +1,7 @@
1
1
  # Funnel Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Drop-off through the stages of a flow (visited, started checkout, paid), on the bklit
4
6
  `FunnelChart` primitive. `data` is a list of `{ label, value, displayValue?, color?, gradient? }`,
5
7
  first stage first; each segment is sized as a share of the first stage and shows its value, a
@@ -1,5 +1,7 @@
1
1
  # FX Conversion
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A currency conversion with the settlement amount first: the converted `to` amount as the primary
4
6
  figure, the `from` amount it came from, the rate ("1 USD = 83.12 INR") with the `Timestamp` it was
5
7
  quoted at, and an optional live countdown while the rate is locked (`lockedUntil`). Amounts are
@@ -1,5 +1,7 @@
1
1
  # Gauge Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  One value from 0 to 100 as a row of notches, around an arc (default) or along a horizontal track
4
6
  (`orientation="linear"`), on the bklit `Gauge` primitive. `value` sets how many notches fill.
5
7
  `centerValue` adds an optional animated statistic with a `defaultLabel` caption: in the arc
@@ -1,5 +1,7 @@
1
1
  # Heatmap Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A calendar heatmap on the bklit `HeatmapChart` primitive (visx): one column per week, one row per
4
6
  weekday, each cell filled by its level on the `--chart-scale-01..05` tokens. Compose it from
5
7
  children: `HeatmapCells`, `HeatmapXAxis` (months), `HeatmapYAxis` (weekdays), `HeatmapSeparator`
@@ -1,5 +1,7 @@
1
1
  # Invoice Document
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  An invoice as its PDF prints, ported from the dashboard's invoice preview: A4 at 72 dpi (595 wide,
4
6
  at least 842 tall) with the title, status and merchant on a grey strip, the parties, the amount due,
5
7
  the details, the lines and the totals, then Dodo's footer. It always draws light, as the PDF does.
@@ -3,7 +3,7 @@
3
3
  Navigates somewhere (Dodo Nest Link). `inline` underlines words inside a sentence and wraps with it;
4
4
  `entity` has no underline and a trailing arrow, for “View all” and IDs, and truncates on one line.
5
5
  Blue (`accent`) by default, red (`error`) next to a destructive or warning message. An inline link takes
6
- the size of its sentence; an entity link is always 14. Keep the full stop outside the link.
6
+ the size of its sentence; an entity link is always 12. Keep the full stop outside the link.
7
7
 
8
8
  Renders an `<a>`; pass a router link through `render` (`render={<NextLink href="/payments" />}`) to
9
9
  keep client-side navigation.
@@ -17,7 +17,7 @@ import { Link } from "@dodopayments/ui/link";
17
17
  Navigates somewhere (Dodo Nest Link). `inline` underlines words inside a sentence and wraps with it;
18
18
  `entity` has no underline and a trailing arrow, for “View all” and IDs, and truncates on one line.
19
19
  Blue (`accent`) by default, red (`error`) next to a destructive or warning message. An inline link takes
20
- the size of its sentence; an entity link is always 14. Keep the full stop outside the link.
20
+ the size of its sentence; an entity link is always 12. Keep the full stop outside the link.
21
21
 
22
22
  Renders an `<a>`; pass a router link through `render` (`render={<NextLink href="/payments" />}`) to
23
23
  keep client-side navigation.
@@ -27,7 +27,7 @@ keep client-side navigation.
27
27
  | `external` | `boolean` | `false` | Open the link in a new tab (`target="_blank"`, `rel="noopener noreferrer"`), end it with an up-right arrow (it replaces the entity arrow; in running text it wraps with the last word, never alone) and append `externalLabel` for screen readers (also appended to `aria-label` when set). |
28
28
  | `externalLabel` | `string` | `"(opens in a new tab)"` | Visually hidden text appended to external links. |
29
29
  | `tone` | `"accent" \| "error"` | `"accent"` | `accent`: Content/Accent (Blue 600, Blue 400 in dark). The default.<br>`error`: Content/Error (Red 600, Red 400 in dark), only next to a destructive or warning message. |
30
- | `variant` | `"inline" \| "entity"` | `"inline"` | `inline`: Underlined words inside a sentence. Takes the sentence's size and line height (Link/Primary in 14, Link/Secondary in 12) and wraps with it. The underline is the link colour at 40% and turns solid on hover.<br>`entity`: 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. |
30
+ | `variant` | `"inline" \| "entity"` | `"inline"` | `inline`: Underlined words inside a sentence. Takes the sentence's size and line height (Link/Primary in 14, Link/Secondary in 12) and wraps with it. The underline is the link colour at 40% and turns solid on hover.<br>`entity`: 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. |
31
31
 
32
32
  Also accepts Base UI props: `render`.
33
33
 
@@ -40,7 +40,9 @@ only its icon; the label still names it.
40
40
 
41
41
  Filters (Figma: Button secondary lg with the filter icon) opening a `Popover` sm, 8 below and right-aligned: the
42
42
  "Filter by" header, your filters in the panel, and Clear / Filter on the strip when `onClear` / `onApply` are set.
43
- On mobile it holds every filter and the date range. `count` shows how many filters are applied.
43
+ Several filters (more than one child) sit two to a row, 12 apart, in a 464 wide popover, as Figma's Filter
44
+ popover; one filter keeps the 220 popover. On mobile it holds every filter and the date range. `count` shows how
45
+ many filters are applied.
44
46
 
45
47
  | Prop | Type | Default | Description |
46
48
  | --- | --- | --- | --- |
@@ -1,5 +1,7 @@
1
1
  # Live Activity
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A small pod that reports one background task, like a phone's live activity, after interior.dev's
4
6
  live activity. Compact it shows a spinner and the percentage; hover, focus, a new task or a phase
5
7
  change opens it to show the title, detail and a progress bar. The pod springs between the two
@@ -1,5 +1,7 @@
1
1
  # New Items Pill
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A floating "3 new items" pill for feeds and chats, after interior.dev's new items pill
4
6
  (https://www.interior.dev/docs/new-items-pill). Place it in a `relative` wrapper around the scroll
5
7
  container and feed it from {@link useNewItems}. It springs in from its edge, and a live region
@@ -3,11 +3,12 @@
3
3
  The title row at the top of every dashboard page (Dodo Nest Page header). `size="sm"` shrinks the title and
4
4
  raises the description for list and settings pages. Navigation is none (top-level pages),
5
5
  `back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above
6
- the title). The title is Heading/Secondary with an optional `help` question icon and a `meta` slot for a status
7
- Badge or Copyable ID; `actions` holds up to two large Buttons on the right; the `description` sits under the title,
8
- indented past the back button. Rows are 4 apart. Below 576px (or with `breakpoint="mobile"`) the back button stays
9
- beside the title and the actions move 8 below the description. No fill: put it first on the
10
- main panel, 24 above the first section.
6
+ the title). The title is Heading/Primary (Heading/Secondary on the mobile layout) with an optional `help`
7
+ question icon and a `meta` slot for a status Badge or Copyable ID; `actions` holds up to two large Buttons on the
8
+ right; the `description` sits under the title, indented past the back button. Rows are 4 apart. Below 576px (or
9
+ with `breakpoint="mobile"`) the back button stays beside the title and the actions move 8 below the description.
10
+ No fill: put it first on the main panel, 40 under the App top bar on desktop (24 on mobile) and 24 above the
11
+ first section.
11
12
 
12
13
  ```tsx
13
14
  import { PageHeader } from "@dodopayments/ui/page-header";
@@ -18,15 +19,16 @@ import { PageHeader } from "@dodopayments/ui/page-header";
18
19
  The title row at the top of every dashboard page (Dodo Nest Page header). `size="sm"` shrinks the title and
19
20
  raises the description for list and settings pages. Navigation is none (top-level pages),
20
21
  `back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above
21
- the title). The title is Heading/Secondary with an optional `help` question icon and a `meta` slot for a status
22
- Badge or Copyable ID; `actions` holds up to two large Buttons on the right; the `description` sits under the title,
23
- indented past the back button. Rows are 4 apart. Below 576px (or with `breakpoint="mobile"`) the back button stays
24
- beside the title and the actions move 8 below the description. No fill: put it first on the
25
- main panel, 24 above the first section.
22
+ the title). The title is Heading/Primary (Heading/Secondary on the mobile layout) with an optional `help`
23
+ question icon and a `meta` slot for a status Badge or Copyable ID; `actions` holds up to two large Buttons on the
24
+ right; the `description` sits under the title, indented past the back button. Rows are 4 apart. Below 576px (or
25
+ with `breakpoint="mobile"`) the back button stays beside the title and the actions move 8 below the description.
26
+ No fill: put it first on the main panel, 40 under the App top bar on desktop (24 on mobile) and 24 above the
27
+ first section.
26
28
 
27
29
  | Prop | Type | Default | Description |
28
30
  | --- | --- | --- | --- |
29
- | `title` (required) | `ReactNode` | - | Page title (Heading/Secondary), e.g. "Transaction details". Long titles and IDs wrap. |
31
+ | `title` (required) | `ReactNode` | - | Page title, e.g. "Transaction details": Heading/Primary on the desktop row, Heading/Secondary on the mobile layout (`size="sm"`: Heading/Tertiary). Long titles and IDs wrap. |
30
32
  | `actions` | `ReactNode` | - | Up to two `Button size="lg"` on the right, one primary at most: a secondary action, then the primary. On the mobile layout they move under the description. |
31
33
  | `back` | `PageHeaderBack` | - | |
32
34
  | `breadcrumb` | `readonly PageHeaderCrumb[]` | - | |
@@ -1,7 +1,7 @@
1
1
  # Payment logos & flags
2
2
 
3
- The official logo of a card network, wallet, bank method, BNPL or crypto, 32 × 22 everywhere (tables, detail
4
- pages, settings): the artwork itself with 4px corners and a hairline edge, so every corner reads the same on any
3
+ The official logo of a card network, wallet, bank method, BNPL or crypto, 33 × 22 (detail pages, settings) or
4
+ 30 × 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
5
5
  background. Never recoloured; the same in dark mode. `unknown` is a neutral tile with a credit card icon. Named
6
6
  after the brand unless `decorative`. Each logo loads on first use; until then its box holds the space.
7
7
 
@@ -11,8 +11,8 @@ import { PaymentLogo, Flag, WalletLogo } from "@dodopayments/ui/payment-logos";
11
11
 
12
12
  ## PaymentLogo
13
13
 
14
- The official logo of a card network, wallet, bank method, BNPL or crypto, 32 × 22 everywhere (tables, detail
15
- pages, settings): the artwork itself with 4px corners and a hairline edge, so every corner reads the same on any
14
+ The official logo of a card network, wallet, bank method, BNPL or crypto, 33 × 22 (detail pages, settings) or
15
+ 30 × 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
16
16
  background. Never recoloured; the same in dark mode. `unknown` is a neutral tile with a credit card icon. Named
17
17
  after the brand unless `decorative`. Each logo loads on first use; until then its box holds the space.
18
18
 
@@ -20,6 +20,7 @@ after the brand unless `decorative`. Each logo loads on first use; until then it
20
20
  | --- | --- | --- | --- |
21
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
+ | `size` | `"sm" \| "md"` | `"md"` | `md` 33 × 22 (detail pages, settings); `sm` 30 × 20, for table rows. Both 3:2, the artwork's own ratio. |
23
24
 
24
25
  ## Flag
25
26
 
@@ -1,5 +1,7 @@
1
1
  # Payment Result
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Receipt card for the page a customer lands on after paying, ported from the checkout status page:
4
6
  a merchant pill, a toned icon with the outcome title, a status `Badge` and date row, the decline
5
7
  reason, then the purchased items, the totals with an optional `Alert` notice and the invoice
@@ -1,5 +1,7 @@
1
1
  # Pie Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Parts of a whole as pie or donut slices, on the bklit `PieChart` primitive (visx). Compose it from
4
6
  children: one `PieSlice` per row of `data` (`index`), and a `PieCenter` for a donut
5
7
  (`innerRadius > 0`) that shows the total, or the hovered slice. Rows are `{ label, value, color? }`
@@ -1,5 +1,7 @@
1
1
  # Plan Picker
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Plan chooser for checkout and change-plan flows, ported from the checkout product collection and
4
6
  the customer portal's change-plan sheet. Plans are cards in a `RadioGroup`: a label row with the
5
7
  radio, name, badges and price, then under a divider the description, feature chips, an `extra`
@@ -1,5 +1,7 @@
1
1
  # Product Card
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Storefront product card, ported from the Dodo store front: a square blur-up photo (or
4
6
  `imageFallback`) with an optional `badge` and an info button that slides `description` up over
5
7
  the image, then the name, `compareAtPrice` struck through, `price` and `interval`. Purchase turns
@@ -1,5 +1,7 @@
1
1
  # Proration Preview
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  What a plan change costs, ported from the customer portal's change-plan sheet: the current and
4
6
  new plan side by side, a sentence on when the change applies, then plain rows (credit for unused
5
7
  time, charge for the new plan, the amount due today and the next invoice). Amounts are integer
@@ -1,5 +1,7 @@
1
1
  # Radar Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Several series compared over the same metrics, as polygons on a radar (spider) grid, on the bklit
4
6
  `RadarChart` primitive (visx). Compose it from children: `RadarGrid`, `RadarAxis`, `RadarLabels`
5
7
  and one `RadarArea` per series (`index` into `data`). `metrics` is a list of `{ key, label }`;
@@ -1,5 +1,7 @@
1
1
  # Reorder List
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A vertical list the user can reorder by dragging or with the keyboard, after interior.dev's reorder
4
6
  list (https://www.interior.dev/docs/reorder-list). It uses `motion`'s `Reorder`: the dragged row
5
7
  lifts and the other rows spring out of its way. With the keyboard, Space grabs a row, the arrow
@@ -31,6 +33,7 @@ move without animation.
31
33
  | `disabled` | `boolean` | - | Turns off dragging and keyboard moves. |
32
34
  | `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. |
33
35
  | `onValueCommitted` | `((next: T[]) => void)` | - | Called with the final order when a drag or a keyboard move ends. |
36
+ | `variant` | `"card" \| "plain"` | `"card"` | `card` boxes each row; `plain` divides the rows with a line, for a list inside a card of its own. A dragged row lifts with a fill and a shadow either way. |
34
37
 
35
38
  ## useReorderList
36
39
 
@@ -0,0 +1,22 @@
1
+ # Required mark
2
+
3
+ > **Beta**: the API may still change in a minor release.
4
+
5
+ Decorative required marker shared by `Label` and `FieldLabel`. Hidden from assistive
6
+ technology: the control's own `required` attribute is what gets announced. Exported for a
7
+ heading over a required group of fields; give it `className="ms-1"` there.
8
+
9
+ ```tsx
10
+ import { LabelRequiredIndicator } from "@dodopayments/ui/required-mark";
11
+ ```
12
+
13
+ ## LabelRequiredIndicator
14
+
15
+ Decorative required marker shared by `Label` and `FieldLabel`. Hidden from assistive
16
+ technology: the control's own `required` attribute is what gets announced. Exported for a
17
+ heading over a required group of fields; give it `className="ms-1"` there.
18
+
19
+ | Prop | Type | Default | Description |
20
+ | --- | --- | --- | --- |
21
+ | `className` | `string` | - | Additional Tailwind classes, merged last. |
22
+
@@ -1,5 +1,7 @@
1
1
  # Ring Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Progress toward several targets as concentric rings, on the bklit `RingChart` primitive (visx).
4
6
  Compose it from children: one `Ring` per row of `data` (`index`, 0 = innermost) and an optional
5
7
  `RingCenter` that shows the sum of the values, or the hovered ring. Rows are
@@ -1,5 +1,7 @@
1
1
  # Sale share card
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the
4
6
  business chip, a headline and the amount in the brand lime with a dark outline. Always light, whatever the theme,
5
7
  so the saved picture looks the same. Capture this element at its own size, and preview it in a `ScaledFrame`.
@@ -1,5 +1,7 @@
1
1
  # Sankey Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A Sankey diagram on the bklit `SankeyChart` primitive (visx, d3-sankey): flows between nodes, each
4
6
  band as wide as its value. Use it to show where an amount goes, e.g. gross volume into fees,
5
7
  refunds and payouts. Compose it from children: `SankeyLink` (the bands), `SankeyNode` (the bars
@@ -1,5 +1,7 @@
1
1
  # Scatter Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Values over time as dots, on the bklit `ScatterChart` primitive (visx). Compose it from
4
6
  children: one `Scatter` per series (`dataKey`), `ChartGrid` or `Background`, `XAxis`, `YAxis`,
5
7
  `ChartTooltip`. Rows need a `Date` under `xDataKey` (default `"date"`) and a number under each
@@ -9,7 +9,7 @@ toggle buttons (`aria-pressed`); give it an `aria-label`. Don't use it for page
9
9
  more than 3–4 options (use a `Select`).
10
10
 
11
11
  ```tsx
12
- import { SegmentedControl, SegmentedControlGroup, SegmentedControlItem } from "@dodopayments/ui/segmented-control";
12
+ import { SegmentedControl, SegmentedControlGroup, SegmentedControlItem, SegmentedControlMenu } from "@dodopayments/ui/segmented-control";
13
13
  ```
14
14
 
15
15
  ## SegmentedControl
@@ -67,6 +67,19 @@ or active. An icon-only segment is square and needs an `aria-label`. `disabled`
67
67
 
68
68
  Also accepts Base UI props: `defaultPressed`, `disabled`, `nativeButton`, `onPressedChange`, `pressed`, `render`.
69
69
 
70
+ ## SegmentedControlMenu
71
+
72
+ A segment that opens a menu of further options, for a single-select `segmented` control with more values than
73
+ fit: "More" with a 12px caret, 28 tall and padded as the other segments. Picking an option makes it the control's
74
+ value; the segment then shows that option, raised under the thumb, and still opens the menu.
75
+
76
+ | Prop | Type | Default | Description |
77
+ | --- | --- | --- | --- |
78
+ | `items` (required) | `readonly { value: string; label: ReactNode; }[]` | - | The options it holds, as `SegmentedControl` values. |
79
+ | `label` (required) | `ReactNode` | - | What the segment says while none of its options is active, e.g. "More". |
80
+ | `aria-label` | `string` | - | Accessible name of the segment, e.g. "More statuses". |
81
+ | `className` | `string` | - | Additional Tailwind classes, merged last. |
82
+
70
83
  ## Examples
71
84
 
72
85
  ### segmented-control/disabled
@@ -38,6 +38,7 @@ control on the trailing side, and optional content underneath. Ported from the d
38
38
  | `controlId` | `string` | - | `id` of the form control in `control`: the title becomes its `<label>`. |
39
39
  | `description` | `ReactNode` | - | What the setting does or its current state, under the title. |
40
40
  | `descriptionId` | `string` | - | `id` given to the description, so the control can reference it with `aria-describedby`. |
41
+ | `icon` | `ReactNode` | - | A leading icon tile before the title, e.g. `<FeaturedIcon icon={<KeyIcon />} />`. |
41
42
  | `tooltip` | `ReactNode` | - | Longer help in a tooltip on an info button next to the title. |
42
43
  | `tooltipLabel` | `string` | `"More information"` | Accessible name of the info button. |
43
44
 
@@ -65,6 +66,7 @@ label (clicking it toggles the switch) and the description is its accessible des
65
66
  | --- | --- | --- | --- |
66
67
  | `title` (required) | `ReactNode` | - | What the setting is, e.g. "Password". |
67
68
  | `description` | `ReactNode` | - | What the setting does or its current state, under the title. |
69
+ | `icon` | `ReactNode` | - | A leading icon tile before the title, e.g. `<FeaturedIcon icon={<KeyIcon />} />`. |
68
70
  | `switchProps` | `Omit<SwitchProps, "defaultChecked" \| "id" \| "disabled" \| "name" \| "checked" \| "onCheckedChange">` | - | Other props of the `Switch`, e.g. `size` or `inputRef`. |
69
71
  | `tooltip` | `ReactNode` | - | Longer help in a tooltip on an info button next to the title. |
70
72
  | `tooltipLabel` | `string` | `"More information"` | Accessible name of the info button. |
@@ -4,8 +4,10 @@ The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in f
4
4
  direction (the right in LTR). `type="side"` (default) is a grey tray 8 from the screen edges, 400 wide (`size="lg"`:
5
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
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.
7
+ Always include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`, and use a Dialog for a
8
+ yes / no confirm. A sheet can open over another, nested in its tree or not: the one behind steps back, smaller and
9
+ faded 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
10
+ one it covers, so only a sliver of that one shows.
9
11
 
10
12
  ```tsx
11
13
  import { SheetContent, Sheet, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPanel, SheetPortal, SheetTitle, SheetTrigger } from "@dodopayments/ui/sheet";
@@ -17,8 +19,10 @@ The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in f
17
19
  direction (the right in LTR). `type="side"` (default) is a grey tray 8 from the screen edges, 400 wide (`size="lg"`:
18
20
  560, `size="xl"`: 768), with the title and close on the grey chin, the body in a white panel that scrolls, and the
19
21
  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
+ Always include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`, and use a Dialog for a
23
+ yes / no confirm. A sheet can open over another, nested in its tree or not: the one behind steps back, smaller and
24
+ faded 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
25
+ one it covers, so only a sliver of that one shows.
22
26
 
23
27
  | Prop | Type | Default | Description |
24
28
  | --- | --- | --- | --- |
@@ -6,7 +6,7 @@ as a 256px drawer. Compose it from `SidebarHeader` (a `SidebarBusinessSwitcher`)
6
6
  menus) and `SidebarFooter` (Developer, Settings and a `SidebarModeSwitch`), inside a `SidebarProvider`.
7
7
 
8
8
  ```tsx
9
- import { Sidebar, SidebarBanner, SidebarBusinessSwitcher, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuButton, SidebarMenuCollapsible, SidebarMenuCollapsibleContent, SidebarMenuCollapsibleTrigger, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarModeSwitch, SidebarProvider, SidebarRail, SidebarTrigger, useSidebar } from "@dodopayments/ui/sidebar";
9
+ import { Sidebar, SidebarBanner, SidebarBusinessList, SidebarBusinessSwitcher, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuButton, SidebarMenuCollapsible, SidebarMenuCollapsibleContent, SidebarMenuCollapsibleTrigger, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarModeSwitch, SidebarProvider, SidebarRail, SidebarTrigger, useSidebar } from "@dodopayments/ui/sidebar";
10
10
  ```
11
11
 
12
12
  ## Sidebar
@@ -27,16 +27,26 @@ inside `SidebarProvider`. From 1024px it is fixed to the top of the window and t
27
27
  start below it (its height is `--sidebar-top` on the provider, for a page that sizes itself to the window); below
28
28
  that it sits at the top of the page, above the inset. With nothing in it, it takes no space.
29
29
 
30
+ ## SidebarBusinessList
31
+
32
+ The other businesses in the business Menu, as old-main: the label, then the rows (40 tall, 8 apart) in a list that
33
+ scrolls past 212 tall with faded edges, so "Add new business", Settings and Sign out under it stay in view.
34
+
35
+ | Prop | Type | Default | Description |
36
+ | --- | --- | --- | --- |
37
+ | `label` (required) | `ReactNode` | - | The group's label, e.g. "Other businesses". It stays put while the rows scroll. |
38
+
30
39
  ## SidebarBusinessSwitcher
31
40
 
32
41
  The business switcher at the top of the sidebar (Figma `.Business switcher`): a 44px white row with a 24px
33
42
  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
34
- (`children`) 8px below. Put it in `SidebarHeader`.
43
+ 8px below: the current business (logo and name) on top, then `children`. Put it in `SidebarHeader`.
35
44
 
36
45
  | Prop | Type | Default | Description |
37
46
  | --- | --- | --- | --- |
38
47
  | `name` (required) | `string` | - | Name of the current business. Its initials fill the avatar when there is no `logoUrl`. |
39
48
  | `badge` | `ReactNode` | - | After the name, e.g. the member's role as a neutral `Badge`. Hidden on the icon rail. |
49
+ | `footer` | `ReactNode` | - | Items on the grey strip under the white panel, such as Settings and Sign out. |
40
50
  | `logoUrl` | `string` | - | Logo of the current business. |
41
51
  | `menuClassName` | `string` | `240 wide` | Extra classes for the menu. |
42
52
  | `menuContentProps` | `Omit<MenuContentProps, "className" \| "children">` | - | Props for the `MenuContent`, e.g. `finalFocus`. |
@@ -166,6 +176,7 @@ icon rail it is a warning "Test" / success "Live" `Badge` that switches the mode
166
176
  | --- | --- | --- | --- |
167
177
  | `className` | `string` | - | Additional Tailwind classes, merged last. |
168
178
  | `defaultMode` | `"test" \| "live"` | `"test"` | The mode on the first render (uncontrolled). |
179
+ | `labels` | `{ test?: string \| undefined; live?: string \| undefined; }` | - | The two halves' text, e.g. "Test mode" and "Live mode". The badge on the icon rail keeps the short words. |
169
180
  | `mode` | `"test" \| "live"` | - | The current mode (controlled). |
170
181
  | `onModeChange` | `((mode: "test" \| "live") => void)` | - | Called with the mode the user picked. |
171
182
 
@@ -1,5 +1,7 @@
1
1
  # Slider
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  Picks a number, or a range with two thumbs, by dragging or with the keyboard: the Dodo Nest Slider. A 4px
4
6
  track in `--tertiary`, the range in the brand colour with the Progress bar's glossy rim, and a 16px Thumb
5
7
  (Surface/Primary, a 1px gradient rim and a soft shadow) that stays inside the track at both ends. Renders
@@ -21,6 +21,8 @@ so the label is real text that screen readers announce in every browser.
21
21
  | Prop | Type | Default | Description |
22
22
  | --- | --- | --- | --- |
23
23
  | `label` | `string` | `"Loading..."` | Accessible label announced by screen readers. |
24
+ | `size` | `"md" \| "lg"` | `"md"` | `md` 20 × 20, in a panel or a status line; `lg` 48 × 48, alone in the middle of a page that is still loading. |
25
+ | `tone` | `"info" \| "brand"` | `"brand"` | The arc's colour: `brand` (Content/Brand-primary) or `info` (Surface/Accent-primary blue, the dashboard's full-page loader). |
24
26
 
25
27
  ## Examples
26
28
 
@@ -1,5 +1,7 @@
1
1
  # Sunburst Chart
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A hierarchy as rings around a center, on the bklit `SunburstChart` primitive. Compose it from
4
6
  children: one `SunburstSegment` per arc of `buildArcs(data).arcs`, plus `SunburstCenter` (the hub:
5
7
  the focused total with `formatValue`, and a click zooms out), `SunburstLabels`, `SunburstBreadcrumb`
@@ -0,0 +1,91 @@
1
+ # Switch transition
2
+
3
+ The screen a switch of mode or business shows while the dashboard reloads its data: a slow Paper mesh
4
+ gradient in the tone's colour (green for live mode, amber for test mode, blue for a business) over the page, and the
5
+ message shimmering in the middle at heading size. It covers the whole viewport (portalled, above
6
+ sheets and dialogs), fades in, and fades out once `active` clears. The gradient stands still under
7
+ reduced motion, and is left out where WebGL 2 is unavailable.
8
+
9
+ ```tsx
10
+ import { SwitchTransition } from "@dodopayments/ui/switch-transition";
11
+ ```
12
+
13
+ ## SwitchTransition
14
+
15
+ The screen a switch of mode or business shows while the dashboard reloads its data: a slow Paper mesh
16
+ gradient in the tone's colour (green for live mode, amber for test mode, blue for a business) over the page, and the
17
+ message shimmering in the middle at heading size. It covers the whole viewport (portalled, above
18
+ sheets and dialogs), fades in, and fades out once `active` clears. The gradient stands still under
19
+ reduced motion, and is left out where WebGL 2 is unavailable.
20
+
21
+ | Prop | Type | Default | Description |
22
+ | --- | --- | --- | --- |
23
+ | `active` (required) | `boolean` | - | A switch is running. Clear it once the new mode or business has loaded. |
24
+ | `message` (required) | `string` | - | What is happening, such as "Switching to test mode". Announced politely. |
25
+ | `inline` | `boolean` | `false` | Render in place, still covering the viewport, instead of in a portal: for a page that is only this screen (a sign-in callback), so it renders on the server too. |
26
+ | `tone` | `SwitchTransitionTone` | `"brand"` | The gradient's colour: `brand` for live mode, `warning` for test mode, `info` for a business. |
27
+
28
+ ## Examples
29
+
30
+ ### switch-transition/default
31
+
32
+ ```tsx
33
+ "use client";
34
+
35
+ import { Button } from "@dodopayments/ui/button";
36
+ import { SwitchTransition } from "@dodopayments/ui/switch-transition";
37
+ import * as React from "react";
38
+
39
+ export default function SwitchTransitionDefault() {
40
+ const [active, setActive] = React.useState(false);
41
+
42
+ return (
43
+ <div className="flex flex-col items-center gap-4">
44
+ <div className="relative h-60 w-full overflow-hidden rounded-xl border border-border">
45
+ <SwitchTransition
46
+ active={active}
47
+ className="absolute"
48
+ inline
49
+ message="Switching to live mode"
50
+ />
51
+ </div>
52
+ <Button
53
+ onClick={() => {
54
+ setActive(true);
55
+ setTimeout(() => setActive(false), 2000);
56
+ }}
57
+ variant="secondary"
58
+ >
59
+ Switch mode
60
+ </Button>
61
+ </div>
62
+ );
63
+ }
64
+ ```
65
+
66
+ ### switch-transition/tones
67
+
68
+ ```tsx
69
+ "use client";
70
+
71
+ import { SwitchTransition } from "@dodopayments/ui/switch-transition";
72
+
73
+ export default function SwitchTransitionTones() {
74
+ return (
75
+ <div className="grid w-full grid-cols-1 gap-4 sm:grid-cols-3">
76
+ {(["brand", "warning", "info"] as const).map((tone) => (
77
+ <div className="relative h-40 overflow-hidden rounded-xl border border-border" key={tone}>
78
+ <SwitchTransition
79
+ active
80
+ className="absolute"
81
+ inline
82
+ message={`Tone: ${tone}`}
83
+ tone={tone}
84
+ />
85
+ </div>
86
+ ))}
87
+ </div>
88
+ );
89
+ }
90
+ ```
91
+
@@ -1,5 +1,7 @@
1
1
  # Task Steps
2
2
 
3
+ > **Deprecated** since 1.8.0.
4
+
3
5
  A vertical checklist for a multi-step job, such as a deploy or an import, after interior.dev's task
4
6
  steps (https://www.interior.dev/docs/task-steps). Steps before `value` show a check, the step at
5
7
  `value` spins and shimmers, and later steps wait as dots. Set `failed` to mark the step at `value`
@@ -2,7 +2,7 @@
2
2
 
3
3
  Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes
4
4
  test data for live data. It is the app shell's own strip (not an Alert): a centred 12px (Body/Secondary)
5
- message on a dark strip (`bg-test-banner`: Grey 900, Grey 800 in dark mode), sticky by
5
+ message on a 36px dark strip (`bg-test-banner`: Grey 950, the Surface/Inverted fill, and Grey 800 in dark mode), sticky by
6
6
  default, 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
7
7
  `TestModeBadge` next to test-mode records.
8
8
 
@@ -14,7 +14,7 @@ import { TestModeBanner, TestModeBadge } from "@dodopayments/ui/test-mode-banner
14
14
 
15
15
  Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes
16
16
  test data for live data. It is the app shell's own strip (not an Alert): a centred 12px (Body/Secondary)
17
- message on a dark strip (`bg-test-banner`: Grey 900, Grey 800 in dark mode), sticky by
17
+ message on a 36px dark strip (`bg-test-banner`: Grey 950, the Surface/Inverted fill, and Grey 800 in dark mode), sticky by
18
18
  default, 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
19
19
  `TestModeBadge` next to test-mode records.
20
20