@dodopayments/ui 1.4.0 → 1.6.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 (515) hide show
  1. package/ai/component-registry.json +1258 -257
  2. package/ai/component-registry.md +5 -1
  3. package/ai/components/area-chart.md +4 -4
  4. package/ai/components/avatar.md +1 -1
  5. package/ai/components/badge.md +24 -0
  6. package/ai/components/bar-chart.md +18 -18
  7. package/ai/components/brand-logos.md +1 -1
  8. package/ai/components/button.md +24 -1
  9. package/ai/components/chart-tooltip.md +3 -3
  10. package/ai/components/chart.md +6 -6
  11. package/ai/components/checkout-page.md +1 -1
  12. package/ai/components/collapsible.md +1 -1
  13. package/ai/components/color-input.md +1 -1
  14. package/ai/components/composed-chart.md +7 -7
  15. package/ai/components/copyable-id.md +1 -0
  16. package/ai/components/country-select.md +1 -0
  17. package/ai/components/currency-select.md +1 -0
  18. package/ai/components/data-grid.md +92 -2
  19. package/ai/components/date-picker.md +1 -1
  20. package/ai/components/dialog.md +4 -2
  21. package/ai/components/drawer.md +292 -0
  22. package/ai/components/featured-icon.md +1 -0
  23. package/ai/components/field.md +1 -1
  24. package/ai/components/file-upload.md +1 -1
  25. package/ai/components/filter-grid.md +4 -7
  26. package/ai/components/funnel-chart.md +14 -12
  27. package/ai/components/gauge-chart.md +9 -11
  28. package/ai/components/icon-morph.md +1 -1
  29. package/ai/components/image-crop.md +89 -0
  30. package/ai/components/input-group.md +1 -1
  31. package/ai/components/input.md +43 -2
  32. package/ai/components/invoice-document.md +182 -0
  33. package/ai/components/line-chart.md +2 -2
  34. package/ai/components/load-more.md +1 -1
  35. package/ai/components/logo.md +1 -1
  36. package/ai/components/menu.md +10 -9
  37. package/ai/components/milestone.md +1 -1
  38. package/ai/components/money.md +3 -3
  39. package/ai/components/new-items-pill.md +1 -1
  40. package/ai/components/payment-logos.md +1 -1
  41. package/ai/components/pie-chart.md +11 -2
  42. package/ai/components/popover.md +2 -1
  43. package/ai/components/reorder-list.md +46 -1
  44. package/ai/components/ring-chart.md +17 -8
  45. package/ai/components/sale-share-card.md +48 -0
  46. package/ai/components/sankey-chart.md +23 -23
  47. package/ai/components/scaled-frame.md +1 -1
  48. package/ai/components/select.md +29 -2
  49. package/ai/components/setup-guide.md +1 -1
  50. package/ai/components/sidebar.md +2 -2
  51. package/ai/components/stat-card.md +32 -5
  52. package/ai/components/sunburst-chart.md +7 -4
  53. package/ai/components/tabs.md +39 -0
  54. package/ai/components/test-mode-banner.md +6 -3
  55. package/ai/components/timestamp.md +11 -2
  56. package/ai/components/timezone-select.md +1 -0
  57. package/ai/skills/dodo-charts/SKILL.md +12 -7
  58. package/ai/skills/dodo-design/SKILL.md +17 -7
  59. package/dist/components/avatar/avatar.d.ts +9 -7
  60. package/dist/components/avatar/avatar.d.ts.map +1 -1
  61. package/dist/components/avatar/avatar.js +9 -7
  62. package/dist/components/avatar/avatar.js.map +1 -1
  63. package/dist/components/badge/badge.d.ts +12 -0
  64. package/dist/components/badge/badge.d.ts.map +1 -1
  65. package/dist/components/badge/badge.js +23 -4
  66. package/dist/components/badge/badge.js.map +1 -1
  67. package/dist/components/brand-logos/brand-artwork.d.ts +30 -1
  68. package/dist/components/brand-logos/brand-artwork.d.ts.map +1 -1
  69. package/dist/components/brand-logos/brand-artwork.js +30 -1
  70. package/dist/components/brand-logos/brand-artwork.js.map +1 -1
  71. package/dist/components/brand-logos/brand-logos.d.ts +2 -2
  72. package/dist/components/brand-logos/brand-logos.d.ts.map +1 -1
  73. package/dist/components/brand-logos/brand-logos.js +11 -1
  74. package/dist/components/brand-logos/brand-logos.js.map +1 -1
  75. package/dist/components/button/button.d.ts +12 -0
  76. package/dist/components/button/button.d.ts.map +1 -1
  77. package/dist/components/button/button.js +8 -0
  78. package/dist/components/button/button.js.map +1 -1
  79. package/dist/components/card/card-notice.d.ts.map +1 -1
  80. package/dist/components/card/card-notice.js +1 -1
  81. package/dist/components/card/card-notice.js.map +1 -1
  82. package/dist/components/code-block/code-block.d.ts.map +1 -1
  83. package/dist/components/code-block/code-block.js +3 -1
  84. package/dist/components/code-block/code-block.js.map +1 -1
  85. package/dist/components/comparison-bars/comparison-bars.js +2 -2
  86. package/dist/components/comparison-bars/comparison-bars.js.map +1 -1
  87. package/dist/components/copyable-id/copyable-id.d.ts +7 -1
  88. package/dist/components/copyable-id/copyable-id.d.ts.map +1 -1
  89. package/dist/components/copyable-id/copyable-id.js +21 -3
  90. package/dist/components/copyable-id/copyable-id.js.map +1 -1
  91. package/dist/components/country-select/country-select.d.ts +6 -1
  92. package/dist/components/country-select/country-select.d.ts.map +1 -1
  93. package/dist/components/country-select/country-select.js +2 -2
  94. package/dist/components/country-select/country-select.js.map +1 -1
  95. package/dist/components/currency-select/currency-select.d.ts +6 -1
  96. package/dist/components/currency-select/currency-select.d.ts.map +1 -1
  97. package/dist/components/currency-select/currency-select.js +2 -2
  98. package/dist/components/currency-select/currency-select.js.map +1 -1
  99. package/dist/components/data-grid/bulk-actions.js +2 -2
  100. package/dist/components/data-grid/bulk-actions.js.map +1 -1
  101. package/dist/components/data-grid/data-grid.d.ts +17 -2
  102. package/dist/components/data-grid/data-grid.d.ts.map +1 -1
  103. package/dist/components/data-grid/data-grid.js +111 -9
  104. package/dist/components/data-grid/data-grid.js.map +1 -1
  105. package/dist/components/data-grid/table.d.ts.map +1 -1
  106. package/dist/components/data-grid/table.js +5 -0
  107. package/dist/components/data-grid/table.js.map +1 -1
  108. package/dist/components/date-picker/date-picker.js +2 -2
  109. package/dist/components/date-picker/date-picker.js.map +1 -1
  110. package/dist/components/dialog/dialog.d.ts +12 -4
  111. package/dist/components/dialog/dialog.d.ts.map +1 -1
  112. package/dist/components/dialog/dialog.js +46 -7
  113. package/dist/components/dialog/dialog.js.map +1 -1
  114. package/dist/components/drawer/drawer.d.ts +73 -0
  115. package/dist/components/drawer/drawer.d.ts.map +1 -0
  116. package/dist/components/drawer/drawer.js +56 -0
  117. package/dist/components/drawer/drawer.js.map +1 -0
  118. package/dist/components/drawer/index.d.ts +2 -0
  119. package/dist/components/drawer/index.d.ts.map +1 -0
  120. package/dist/components/drawer/index.js +2 -0
  121. package/dist/components/drawer/index.js.map +1 -0
  122. package/dist/components/featured-icon/featured-icon.d.ts +103 -1
  123. package/dist/components/featured-icon/featured-icon.d.ts.map +1 -1
  124. package/dist/components/featured-icon/featured-icon.js +61 -3
  125. package/dist/components/featured-icon/featured-icon.js.map +1 -1
  126. package/dist/components/featured-icon/index.d.ts +1 -1
  127. package/dist/components/featured-icon/index.d.ts.map +1 -1
  128. package/dist/components/featured-icon/index.js +1 -1
  129. package/dist/components/featured-icon/index.js.map +1 -1
  130. package/dist/components/featured-icon/sphere.d.ts +7 -0
  131. package/dist/components/featured-icon/sphere.d.ts.map +1 -0
  132. package/dist/components/featured-icon/sphere.js +29 -0
  133. package/dist/components/featured-icon/sphere.js.map +1 -0
  134. package/dist/components/file-upload/file-upload.js +1 -1
  135. package/dist/components/file-upload/file-upload.js.map +1 -1
  136. package/dist/components/filter-grid/filter-grid.d.ts +7 -2
  137. package/dist/components/filter-grid/filter-grid.d.ts.map +1 -1
  138. package/dist/components/filter-grid/filter-grid.js +3 -2
  139. package/dist/components/filter-grid/filter-grid.js.map +1 -1
  140. package/dist/components/funnel-chart/funnel-chart.d.ts +3 -2
  141. package/dist/components/funnel-chart/funnel-chart.d.ts.map +1 -1
  142. package/dist/components/funnel-chart/funnel-chart.js +3 -2
  143. package/dist/components/funnel-chart/funnel-chart.js.map +1 -1
  144. package/dist/components/gauge-chart/gauge-chart.d.ts +3 -4
  145. package/dist/components/gauge-chart/gauge-chart.d.ts.map +1 -1
  146. package/dist/components/gauge-chart/gauge-chart.js +3 -4
  147. package/dist/components/gauge-chart/gauge-chart.js.map +1 -1
  148. package/dist/components/image-crop/crop-math.d.ts +28 -0
  149. package/dist/components/image-crop/crop-math.d.ts.map +1 -0
  150. package/dist/components/image-crop/crop-math.js +53 -0
  151. package/dist/components/image-crop/crop-math.js.map +1 -0
  152. package/dist/components/image-crop/image-crop.d.ts +31 -0
  153. package/dist/components/image-crop/image-crop.d.ts.map +1 -0
  154. package/dist/components/image-crop/image-crop.js +165 -0
  155. package/dist/components/image-crop/image-crop.js.map +1 -0
  156. package/dist/components/image-crop/index.d.ts +2 -0
  157. package/dist/components/image-crop/index.d.ts.map +1 -0
  158. package/dist/components/image-crop/index.js +2 -0
  159. package/dist/components/image-crop/index.js.map +1 -0
  160. package/dist/components/input/input.d.ts +8 -2
  161. package/dist/components/input/input.d.ts.map +1 -1
  162. package/dist/components/input/input.js +12 -3
  163. package/dist/components/input/input.js.map +1 -1
  164. package/dist/components/input-group/input-group.d.ts +1 -1
  165. package/dist/components/input-group/input-group.js +1 -1
  166. package/dist/components/input-group/input-group.js.map +1 -1
  167. package/dist/components/invoice-document/index.d.ts +2 -0
  168. package/dist/components/invoice-document/index.d.ts.map +1 -0
  169. package/dist/components/invoice-document/index.js +2 -0
  170. package/dist/components/invoice-document/index.js.map +1 -0
  171. package/dist/components/invoice-document/invoice-document.d.ts +180 -0
  172. package/dist/components/invoice-document/invoice-document.d.ts.map +1 -0
  173. package/dist/components/invoice-document/invoice-document.js +58 -0
  174. package/dist/components/invoice-document/invoice-document.js.map +1 -0
  175. package/dist/components/list-item/list-item.d.ts +2 -2
  176. package/dist/components/list-item/list-item.d.ts.map +1 -1
  177. package/dist/components/list-item/list-item.js +3 -3
  178. package/dist/components/list-item/list-item.js.map +1 -1
  179. package/dist/components/list-toolbar/list-toolbar-date-range.js +1 -1
  180. package/dist/components/list-toolbar/list-toolbar-date-range.js.map +1 -1
  181. package/dist/components/live-activity/live-activity.d.ts.map +1 -1
  182. package/dist/components/live-activity/live-activity.js +8 -3
  183. package/dist/components/live-activity/live-activity.js.map +1 -1
  184. package/dist/components/logo/logo.d.ts +5 -1
  185. package/dist/components/logo/logo.d.ts.map +1 -1
  186. package/dist/components/logo/logo.js +7 -3
  187. package/dist/components/logo/logo.js.map +1 -1
  188. package/dist/components/menu/menu.d.ts +10 -9
  189. package/dist/components/menu/menu.d.ts.map +1 -1
  190. package/dist/components/menu/menu.js +5 -4
  191. package/dist/components/menu/menu.js.map +1 -1
  192. package/dist/components/page-header/page-header.d.ts.map +1 -1
  193. package/dist/components/page-header/page-header.js +6 -6
  194. package/dist/components/page-header/page-header.js.map +1 -1
  195. package/dist/components/pagination/pagination.d.ts.map +1 -1
  196. package/dist/components/pagination/pagination.js +4 -2
  197. package/dist/components/pagination/pagination.js.map +1 -1
  198. package/dist/components/payment-logos/artwork/link.d.ts +2 -0
  199. package/dist/components/payment-logos/artwork/link.d.ts.map +1 -0
  200. package/dist/components/payment-logos/artwork/link.js +5 -0
  201. package/dist/components/payment-logos/artwork/link.js.map +1 -0
  202. package/dist/components/payment-logos/payment-logos.d.ts +1 -1
  203. package/dist/components/payment-logos/payment-logos.d.ts.map +1 -1
  204. package/dist/components/payment-logos/payment-logos.js +3 -0
  205. package/dist/components/payment-logos/payment-logos.js.map +1 -1
  206. package/dist/components/payment-method-list/payment-method-list.d.ts.map +1 -1
  207. package/dist/components/payment-method-list/payment-method-list.js +4 -1
  208. package/dist/components/payment-method-list/payment-method-list.js.map +1 -1
  209. package/dist/components/popover/popover.d.ts +7 -0
  210. package/dist/components/popover/popover.d.ts.map +1 -1
  211. package/dist/components/popover/popover.js.map +1 -1
  212. package/dist/components/quantity-stepper/quantity-stepper.js +1 -1
  213. package/dist/components/quantity-stepper/quantity-stepper.js.map +1 -1
  214. package/dist/components/radio-group/radio-group.js +2 -2
  215. package/dist/components/radio-group/radio-group.js.map +1 -1
  216. package/dist/components/reorder-list/reorder-list.d.ts +11 -2
  217. package/dist/components/reorder-list/reorder-list.d.ts.map +1 -1
  218. package/dist/components/reorder-list/reorder-list.js +39 -16
  219. package/dist/components/reorder-list/reorder-list.js.map +1 -1
  220. package/dist/components/rich-text-editor/rich-text-editor.js +1 -1
  221. package/dist/components/rich-text-editor/rich-text-editor.js.map +1 -1
  222. package/dist/components/sale-share-card/index.d.ts +2 -0
  223. package/dist/components/sale-share-card/index.d.ts.map +1 -0
  224. package/dist/components/sale-share-card/index.js +2 -0
  225. package/dist/components/sale-share-card/index.js.map +1 -0
  226. package/dist/components/sale-share-card/sale-share-card.d.ts +27 -0
  227. package/dist/components/sale-share-card/sale-share-card.d.ts.map +1 -0
  228. package/dist/components/sale-share-card/sale-share-card.js +46 -0
  229. package/dist/components/sale-share-card/sale-share-card.js.map +1 -0
  230. package/dist/components/sankey-chart/sankey-chart.d.ts +4 -4
  231. package/dist/components/sankey-chart/sankey-chart.js +4 -4
  232. package/dist/components/scaled-frame/scaled-frame.d.ts +6 -2
  233. package/dist/components/scaled-frame/scaled-frame.d.ts.map +1 -1
  234. package/dist/components/scaled-frame/scaled-frame.js +20 -1
  235. package/dist/components/scaled-frame/scaled-frame.js.map +1 -1
  236. package/dist/components/segmented-control/segmented-control.d.ts +2 -2
  237. package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
  238. package/dist/components/segmented-control/segmented-control.js +10 -2
  239. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  240. package/dist/components/select/select.d.ts +21 -3
  241. package/dist/components/select/select.d.ts.map +1 -1
  242. package/dist/components/select/select.js +24 -9
  243. package/dist/components/select/select.js.map +1 -1
  244. package/dist/components/sidebar/sidebar.d.ts +2 -2
  245. package/dist/components/sidebar/sidebar.js +2 -2
  246. package/dist/components/skeleton/skeleton.d.ts.map +1 -1
  247. package/dist/components/skeleton/skeleton.js +7 -7
  248. package/dist/components/skeleton/skeleton.js.map +1 -1
  249. package/dist/components/slider/slider-thumb.d.ts +2 -2
  250. package/dist/components/slider/slider-thumb.d.ts.map +1 -1
  251. package/dist/components/slider/slider-thumb.js +2 -2
  252. package/dist/components/slider/slider-thumb.js.map +1 -1
  253. package/dist/components/slider/slider.js +1 -1
  254. package/dist/components/slider/slider.js.map +1 -1
  255. package/dist/components/stat-card/index.d.ts +1 -1
  256. package/dist/components/stat-card/index.d.ts.map +1 -1
  257. package/dist/components/stat-card/index.js +1 -1
  258. package/dist/components/stat-card/index.js.map +1 -1
  259. package/dist/components/stat-card/stat-card.d.ts +47 -7
  260. package/dist/components/stat-card/stat-card.d.ts.map +1 -1
  261. package/dist/components/stat-card/stat-card.js +72 -12
  262. package/dist/components/stat-card/stat-card.js.map +1 -1
  263. package/dist/components/subscription-card/subscription-card.js +1 -1
  264. package/dist/components/subscription-card/subscription-card.js.map +1 -1
  265. package/dist/components/sunburst-chart/sunburst-chart.d.ts +2 -1
  266. package/dist/components/sunburst-chart/sunburst-chart.d.ts.map +1 -1
  267. package/dist/components/sunburst-chart/sunburst-chart.js +2 -1
  268. package/dist/components/sunburst-chart/sunburst-chart.js.map +1 -1
  269. package/dist/components/tabs/tabs.d.ts +30 -1
  270. package/dist/components/tabs/tabs.d.ts.map +1 -1
  271. package/dist/components/tabs/tabs.js +14 -4
  272. package/dist/components/tabs/tabs.js.map +1 -1
  273. package/dist/components/test-mode-banner/test-mode-banner.d.ts.map +1 -1
  274. package/dist/components/test-mode-banner/test-mode-banner.js +3 -2
  275. package/dist/components/test-mode-banner/test-mode-banner.js.map +1 -1
  276. package/dist/components/timestamp/index.d.ts +1 -1
  277. package/dist/components/timestamp/index.d.ts.map +1 -1
  278. package/dist/components/timestamp/index.js +1 -1
  279. package/dist/components/timestamp/index.js.map +1 -1
  280. package/dist/components/timestamp/timestamp.d.ts +12 -2
  281. package/dist/components/timestamp/timestamp.d.ts.map +1 -1
  282. package/dist/components/timestamp/timestamp.js +12 -2
  283. package/dist/components/timestamp/timestamp.js.map +1 -1
  284. package/dist/components/timezone-select/timezone-select.d.ts +6 -1
  285. package/dist/components/timezone-select/timezone-select.d.ts.map +1 -1
  286. package/dist/components/timezone-select/timezone-select.js +2 -2
  287. package/dist/components/timezone-select/timezone-select.js.map +1 -1
  288. package/dist/components/tooltip/tooltip.js +1 -1
  289. package/dist/components/tooltip/tooltip.js.map +1 -1
  290. package/dist/icons/index.d.ts +9 -0
  291. package/dist/icons/index.js +9 -0
  292. package/dist/icons/ui/arrow-turn-right.d.ts +3 -0
  293. package/dist/icons/ui/arrow-turn-right.d.ts.map +1 -0
  294. package/dist/icons/ui/arrow-turn-right.js +5 -0
  295. package/dist/icons/ui/arrow-turn-right.js.map +1 -0
  296. package/dist/icons/ui/box-glyph.d.ts +3 -0
  297. package/dist/icons/ui/box-glyph.js +5 -0
  298. package/dist/icons/ui/circle-check-glyph.d.ts +3 -0
  299. package/dist/icons/ui/circle-check-glyph.js +5 -0
  300. package/dist/icons/ui/crop.d.ts +3 -0
  301. package/dist/icons/ui/crop.d.ts.map +1 -0
  302. package/dist/icons/ui/crop.js +5 -0
  303. package/dist/icons/ui/crop.js.map +1 -0
  304. package/dist/icons/ui/greek-temple-glyph.d.ts +3 -0
  305. package/dist/icons/ui/greek-temple-glyph.js +5 -0
  306. package/dist/icons/ui/hourglass-glyph.d.ts +3 -0
  307. package/dist/icons/ui/hourglass-glyph.js +5 -0
  308. package/dist/icons/ui/shop-glyph.d.ts +3 -0
  309. package/dist/icons/ui/shop-glyph.js +5 -0
  310. package/dist/icons/ui/triangle-warning-glyph.d.ts +3 -0
  311. package/dist/icons/ui/triangle-warning-glyph.js +5 -0
  312. package/dist/icons/ui/user-glyph.d.ts +3 -0
  313. package/dist/icons/ui/user-glyph.js +5 -0
  314. package/dist/index.d.ts +3 -0
  315. package/dist/index.d.ts.map +1 -1
  316. package/dist/index.js +3 -0
  317. package/dist/index.js.map +1 -1
  318. package/dist/lib/cn-tables.js +5 -5
  319. package/dist/lib/cn-tables.js.map +1 -1
  320. package/dist/lib/locale-messages.d.ts +8 -0
  321. package/dist/lib/locale-messages.d.ts.map +1 -1
  322. package/dist/lib/locale-messages.js +9 -0
  323. package/dist/lib/locale-messages.js.map +1 -1
  324. package/dist/locales/ar.d.ts.map +1 -1
  325. package/dist/locales/ar.js +6 -0
  326. package/dist/locales/ar.js.map +1 -1
  327. package/dist/locales/de.d.ts.map +1 -1
  328. package/dist/locales/de.js +6 -0
  329. package/dist/locales/de.js.map +1 -1
  330. package/dist/locales/es.d.ts.map +1 -1
  331. package/dist/locales/es.js +6 -0
  332. package/dist/locales/es.js.map +1 -1
  333. package/dist/locales/fr.d.ts.map +1 -1
  334. package/dist/locales/fr.js +6 -0
  335. package/dist/locales/fr.js.map +1 -1
  336. package/dist/locales/he.d.ts.map +1 -1
  337. package/dist/locales/he.js +6 -0
  338. package/dist/locales/he.js.map +1 -1
  339. package/dist/locales/hi.d.ts.map +1 -1
  340. package/dist/locales/hi.js +6 -0
  341. package/dist/locales/hi.js.map +1 -1
  342. package/dist/locales/ja.d.ts.map +1 -1
  343. package/dist/locales/ja.js +6 -0
  344. package/dist/locales/ja.js.map +1 -1
  345. package/dist/locales/pt-BR.d.ts.map +1 -1
  346. package/dist/locales/pt-BR.js +6 -0
  347. package/dist/locales/pt-BR.js.map +1 -1
  348. package/dist/locales/zh-CN.d.ts.map +1 -1
  349. package/dist/locales/zh-CN.js +6 -0
  350. package/dist/locales/zh-CN.js.map +1 -1
  351. package/dist/primitives/charts/area-chart.js +1 -1
  352. package/dist/primitives/charts/area-chart.js.map +1 -1
  353. package/dist/primitives/charts/area.d.ts +1 -1
  354. package/dist/primitives/charts/area.d.ts.map +1 -1
  355. package/dist/primitives/charts/bar-chart.js +1 -1
  356. package/dist/primitives/charts/bar-chart.js.map +1 -1
  357. package/dist/primitives/charts/bar-squares.d.ts +1 -1
  358. package/dist/primitives/charts/bar-squares.d.ts.map +1 -1
  359. package/dist/primitives/charts/bar.d.ts +6 -5
  360. package/dist/primitives/charts/bar.d.ts.map +1 -1
  361. package/dist/primitives/charts/bar.js +1 -1
  362. package/dist/primitives/charts/bar.js.map +1 -1
  363. package/dist/primitives/charts/chart-context.js +2 -2
  364. package/dist/primitives/charts/chart-context.js.map +1 -1
  365. package/dist/primitives/charts/composed-chart.js +3 -3
  366. package/dist/primitives/charts/composed-chart.js.map +1 -1
  367. package/dist/primitives/charts/funnel-chart.d.ts +12 -8
  368. package/dist/primitives/charts/funnel-chart.d.ts.map +1 -1
  369. package/dist/primitives/charts/funnel-chart.js +38 -9
  370. package/dist/primitives/charts/funnel-chart.js.map +1 -1
  371. package/dist/primitives/charts/gauge.d.ts +4 -4
  372. package/dist/primitives/charts/gauge.js +8 -8
  373. package/dist/primitives/charts/gauge.js.map +1 -1
  374. package/dist/primitives/charts/line-chart.js +1 -1
  375. package/dist/primitives/charts/line-chart.js.map +1 -1
  376. package/dist/primitives/charts/line-series-terminal-marker.d.ts.map +1 -1
  377. package/dist/primitives/charts/line-series-terminal-marker.js +1 -1
  378. package/dist/primitives/charts/line-series-terminal-marker.js.map +1 -1
  379. package/dist/primitives/charts/line.d.ts +1 -1
  380. package/dist/primitives/charts/line.d.ts.map +1 -1
  381. package/dist/primitives/charts/notch-gauge-shared.d.ts.map +1 -1
  382. package/dist/primitives/charts/notch-gauge-shared.js +4 -3
  383. package/dist/primitives/charts/notch-gauge-shared.js.map +1 -1
  384. package/dist/primitives/charts/pie-context.d.ts +3 -2
  385. package/dist/primitives/charts/pie-context.d.ts.map +1 -1
  386. package/dist/primitives/charts/pie-context.js +7 -6
  387. package/dist/primitives/charts/pie-context.js.map +1 -1
  388. package/dist/primitives/charts/pie-slice.d.ts +2 -2
  389. package/dist/primitives/charts/pie-slice.js +1 -1
  390. package/dist/primitives/charts/pie-slice.js.map +1 -1
  391. package/dist/primitives/charts/ring-context.d.ts +4 -2
  392. package/dist/primitives/charts/ring-context.d.ts.map +1 -1
  393. package/dist/primitives/charts/ring-context.js +8 -6
  394. package/dist/primitives/charts/ring-context.js.map +1 -1
  395. package/dist/primitives/charts/ring.d.ts +8 -8
  396. package/dist/primitives/charts/ring.d.ts.map +1 -1
  397. package/dist/primitives/charts/ring.js +4 -4
  398. package/dist/primitives/charts/ring.js.map +1 -1
  399. package/dist/primitives/charts/sankey/sankey-link.d.ts +9 -10
  400. package/dist/primitives/charts/sankey/sankey-link.d.ts.map +1 -1
  401. package/dist/primitives/charts/sankey/sankey-link.js +14 -9
  402. package/dist/primitives/charts/sankey/sankey-link.js.map +1 -1
  403. package/dist/primitives/charts/sankey/sankey-node.d.ts +5 -5
  404. package/dist/primitives/charts/sankey/sankey-node.d.ts.map +1 -1
  405. package/dist/primitives/charts/sankey/sankey-node.js +6 -6
  406. package/dist/primitives/charts/sankey/sankey-node.js.map +1 -1
  407. package/dist/primitives/charts/series-bar.d.ts +4 -4
  408. package/dist/primitives/charts/series-bar.d.ts.map +1 -1
  409. package/dist/primitives/charts/series-bar.js +1 -1
  410. package/dist/primitives/charts/series-bar.js.map +1 -1
  411. package/dist/primitives/charts/sunburst-context.d.ts +3 -2
  412. package/dist/primitives/charts/sunburst-context.d.ts.map +1 -1
  413. package/dist/primitives/charts/sunburst-context.js +6 -5
  414. package/dist/primitives/charts/sunburst-context.js.map +1 -1
  415. package/dist/primitives/charts/sunburst-legend.d.ts +7 -2
  416. package/dist/primitives/charts/sunburst-legend.d.ts.map +1 -1
  417. package/dist/primitives/charts/sunburst-legend.js +8 -6
  418. package/dist/primitives/charts/sunburst-legend.js.map +1 -1
  419. package/dist/primitives/charts/sunburst-segment.d.ts +3 -3
  420. package/dist/primitives/charts/sunburst-segment.js +2 -2
  421. package/dist/primitives/charts/sunburst-segment.js.map +1 -1
  422. package/dist/primitives/charts/tooltip/date-ticker.js +2 -2
  423. package/dist/primitives/charts/tooltip/date-ticker.js.map +1 -1
  424. package/dist/primitives/charts/tooltip/tooltip-box.js +1 -1
  425. package/dist/primitives/charts/tooltip/tooltip-box.js.map +1 -1
  426. package/dist/primitives/hooks/use-media-query.d.ts +1 -1
  427. package/dist/primitives/hooks/use-media-query.js +1 -1
  428. package/dist/primitives/lib/mobile-sheet.d.ts +25 -0
  429. package/dist/primitives/lib/mobile-sheet.d.ts.map +1 -0
  430. package/dist/primitives/lib/mobile-sheet.js +28 -0
  431. package/dist/primitives/lib/mobile-sheet.js.map +1 -0
  432. package/dist/primitives/lib/segmented-control.d.ts +8 -2
  433. package/dist/primitives/lib/segmented-control.d.ts.map +1 -1
  434. package/dist/primitives/lib/segmented-control.js +8 -2
  435. package/dist/primitives/lib/segmented-control.js.map +1 -1
  436. package/dist/primitives/ui/alert-dialog.js +1 -1
  437. package/dist/primitives/ui/alert-dialog.js.map +1 -1
  438. package/dist/primitives/ui/autocomplete.js +1 -1
  439. package/dist/primitives/ui/autocomplete.js.map +1 -1
  440. package/dist/primitives/ui/button.d.ts +1 -1
  441. package/dist/primitives/ui/button.d.ts.map +1 -1
  442. package/dist/primitives/ui/button.js +3 -1
  443. package/dist/primitives/ui/button.js.map +1 -1
  444. package/dist/primitives/ui/calendar.d.ts.map +1 -1
  445. package/dist/primitives/ui/calendar.js +4 -2
  446. package/dist/primitives/ui/calendar.js.map +1 -1
  447. package/dist/primitives/ui/checkbox.d.ts.map +1 -1
  448. package/dist/primitives/ui/checkbox.js +3 -1
  449. package/dist/primitives/ui/checkbox.js.map +1 -1
  450. package/dist/primitives/ui/combobox.js +2 -2
  451. package/dist/primitives/ui/combobox.js.map +1 -1
  452. package/dist/primitives/ui/dialog.d.ts +7 -0
  453. package/dist/primitives/ui/dialog.d.ts.map +1 -1
  454. package/dist/primitives/ui/dialog.js +12 -1
  455. package/dist/primitives/ui/dialog.js.map +1 -1
  456. package/dist/primitives/ui/drawer.d.ts +1 -2
  457. package/dist/primitives/ui/drawer.d.ts.map +1 -1
  458. package/dist/primitives/ui/drawer.js +30 -14
  459. package/dist/primitives/ui/drawer.js.map +1 -1
  460. package/dist/primitives/ui/input-group.d.ts.map +1 -1
  461. package/dist/primitives/ui/input-group.js +4 -1
  462. package/dist/primitives/ui/input-group.js.map +1 -1
  463. package/dist/primitives/ui/input.js +1 -1
  464. package/dist/primitives/ui/input.js.map +1 -1
  465. package/dist/primitives/ui/menu.d.ts.map +1 -1
  466. package/dist/primitives/ui/menu.js +15 -16
  467. package/dist/primitives/ui/menu.js.map +1 -1
  468. package/dist/primitives/ui/number-field.js +1 -1
  469. package/dist/primitives/ui/number-field.js.map +1 -1
  470. package/dist/primitives/ui/otp-field.js +2 -2
  471. package/dist/primitives/ui/otp-field.js.map +1 -1
  472. package/dist/primitives/ui/popover.d.ts +3 -1
  473. package/dist/primitives/ui/popover.d.ts.map +1 -1
  474. package/dist/primitives/ui/popover.js +11 -5
  475. package/dist/primitives/ui/popover.js.map +1 -1
  476. package/dist/primitives/ui/preview-card.js +1 -1
  477. package/dist/primitives/ui/preview-card.js.map +1 -1
  478. package/dist/primitives/ui/radio-group.js +1 -1
  479. package/dist/primitives/ui/radio-group.js.map +1 -1
  480. package/dist/primitives/ui/select.d.ts +7 -3
  481. package/dist/primitives/ui/select.d.ts.map +1 -1
  482. package/dist/primitives/ui/select.js +14 -5
  483. package/dist/primitives/ui/select.js.map +1 -1
  484. package/dist/primitives/ui/sheet.d.ts.map +1 -1
  485. package/dist/primitives/ui/sheet.js +5 -4
  486. package/dist/primitives/ui/sheet.js.map +1 -1
  487. package/dist/primitives/ui/sidebar.js +1 -1
  488. package/dist/primitives/ui/slider.js +1 -1
  489. package/dist/primitives/ui/slider.js.map +1 -1
  490. package/dist/primitives/ui/switch.d.ts +1 -1
  491. package/dist/primitives/ui/switch.d.ts.map +1 -1
  492. package/dist/primitives/ui/switch.js +1 -1
  493. package/dist/primitives/ui/switch.js.map +1 -1
  494. package/dist/primitives/ui/tabs.d.ts.map +1 -1
  495. package/dist/primitives/ui/tabs.js +1 -1
  496. package/dist/primitives/ui/tabs.js.map +1 -1
  497. package/dist/primitives/ui/textarea.js +1 -1
  498. package/dist/primitives/ui/textarea.js.map +1 -1
  499. package/dist/primitives/ui/toast.js +2 -2
  500. package/dist/primitives/ui/toast.js.map +1 -1
  501. package/dist/primitives/ui/tooltip.js +1 -1
  502. package/dist/primitives/ui/tooltip.js.map +1 -1
  503. package/dist/styles/motion.test.tsx +15 -0
  504. package/dist/styles/theme.css +13 -0
  505. package/dist/styles/tokens.css +142 -39
  506. package/dist/styles/tokens.test.tsx +154 -3
  507. package/dist/theme/color.d.ts +5 -0
  508. package/dist/theme/color.d.ts.map +1 -1
  509. package/dist/theme/color.js +22 -0
  510. package/dist/theme/color.js.map +1 -1
  511. package/dist/theme/css.d.ts +3 -3
  512. package/dist/theme/css.d.ts.map +1 -1
  513. package/dist/theme/css.js +33 -15
  514. package/dist/theme/css.js.map +1 -1
  515. package/package.json +1 -1
@@ -28,12 +28,13 @@ Also accepts Base UI props: `finalFocus`, `initialFocus`, `render`.
28
28
 
29
29
  ## Dialog
30
30
 
31
- Root of a modal dialog, centred on the screen. Controls open state (`open`/`onOpenChange` or `defaultOpen`).
32
- `alert` makes it an alert dialog for confirmations.
31
+ Root of a modal dialog, centred on the screen; with `mobileSheet` it is a bottom drawer on a phone. Controls open
32
+ state (`open`/`onOpenChange` or `defaultOpen`). `alert` makes it an alert dialog for confirmations.
33
33
 
34
34
  | Prop | Type | Default | Description |
35
35
  | --- | --- | --- | --- |
36
36
  | `alert` | `boolean` | `false` | An alert dialog: it interrupts to confirm or acknowledge something (`role="alertdialog"`). Clicking the backdrop does not close it and `DialogContent` has no close button, so always offer an explicit Cancel in the footer. Escape still closes it. `ConfirmDialog` is a ready-made one. |
37
+ | `mobileSheet` | `boolean` | `false` | Below 640px, show the dialog as a bottom drawer: docked to the bottom edge at full width, closed with a swipe down as well as the scrim, Escape and the close button, with the actions sharing the footer row. Off by default: the dialog stays centred at every width. Do not set it when the body has its own drag gesture. An alert dialog is always centred. |
37
38
 
38
39
  Also accepts Base UI props: `actionsRef`, `defaultOpen`, `defaultTriggerId`, `disablePointerDismissal`, `handle`, `modal`, `onOpenChange`, `onOpenChangeComplete`, `open`, `triggerId`.
39
40
 
@@ -80,6 +81,7 @@ button), `neutral` or `warning` with the black primary. Decorative: the title sa
80
81
  | Prop | Type | Default | Description |
81
82
  | --- | --- | --- | --- |
82
83
  | `icon` (required) | `ReactNode` | - | The icon in the tile, a Nucleo icon (16px at `md`, 12px at `sm`): `<FeaturedIcon icon={<KeyIcon />} />`. |
84
+ | `look` | `"tile" \| "sphere"` | - | `tile`: The rounded square with a soft fill and two borders (the default). `sphere`: The dashboard's glossy round badge in the tone, a white icon on it (44px at `md`, 28px at `sm`), as the verification checklist shows each step. |
83
85
  | `size` | `"sm" \| "md" \| null` | - | |
84
86
  | `tone` | `"info" \| "success" \| "warning" \| "error" \| "violet" \| "neutral" \| "pink" \| "orange" \| null` | - | |
85
87
 
@@ -0,0 +1,292 @@
1
+ # Drawer
2
+
3
+ The drawer: portal + scrim + popup, docked to the bottom edge with a drag handle and a close button. A grey tray
4
+ with rounded top corners, like Dialog: the title and body in a white panel, the actions on the grey strip. It is
5
+ as tall as its content, up to the screen minus 48, and pads the bottom safe area; a focused field stays above the
6
+ software keyboard. Always include a `DrawerTitle`; lay it out as `DrawerHeader`, `DrawerPanel` and `DrawerFooter`.
7
+
8
+ ```tsx
9
+ import { DrawerContent, Drawer, DrawerClose, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPanel, DrawerTitle, DrawerTrigger } from "@dodopayments/ui/drawer";
10
+ ```
11
+
12
+ ## DrawerContent
13
+
14
+ The drawer: portal + scrim + popup, docked to the bottom edge with a drag handle and a close button. A grey tray
15
+ with rounded top corners, like Dialog: the title and body in a white panel, the actions on the grey strip. It is
16
+ as tall as its content, up to the screen minus 48, and pads the bottom safe area; a focused field stays above the
17
+ software keyboard. Always include a `DrawerTitle`; lay it out as `DrawerHeader`, `DrawerPanel` and `DrawerFooter`.
18
+
19
+ | Prop | Type | Default | Description |
20
+ | --- | --- | --- | --- |
21
+ | `className` | `string` | - | Additional Tailwind classes, merged last. |
22
+ | `closeLabel` | `string` | `"Close"` | Accessible label for the close button. |
23
+ | `hideCloseButton` | `boolean` | `false` | Hide the close button. The scrim, Escape and a swipe down still close the drawer. |
24
+ | `hideHandle` | `boolean` | `false` | Hide the drag handle on top. The drawer still closes with a swipe down. |
25
+ | `portalProps` | `DrawerPortalProps` | - | Props for the portal, e.g. a `container` to render the drawer into instead of `document.body`. |
26
+
27
+ Also accepts Base UI props: `finalFocus`, `initialFocus`, `render`.
28
+
29
+ ## Drawer
30
+
31
+ Root of a drawer: a modal panel that slides up from the bottom edge and closes with a swipe down, a tap on the
32
+ scrim or Escape (the `Drawer` primitive on Base UI Drawer). Controls open state (`open` / `onOpenChange` or
33
+ `defaultOpen`). `snapPoints` (fractions of the viewport, or px / rem lengths) let it rest at several heights.
34
+ Built for phones: on wide screens use a `Dialog` or a `Sheet`.
35
+
36
+ Also accepts Base UI props: `actionsRef`, `defaultOpen`, `defaultSnapPoint`, `defaultTriggerId`, `disablePointerDismissal`, `handle`, `modal`, `onOpenChange`, `onOpenChangeComplete`, `onSnapPointChange`, `open`, `snapPoint`, `snapPoints`, `snapToSequentialPoints`, `triggerId`.
37
+
38
+ ## DrawerClose
39
+
40
+ Closes the drawer. Use `render={<Button variant="secondary" />}` for a footer action.
41
+
42
+ | Prop | Type | Default | Description |
43
+ | --- | --- | --- | --- |
44
+ | `className` | `string` | - | Additional Tailwind classes, merged last. |
45
+
46
+ Also accepts Base UI props: `nativeButton`, `render`.
47
+
48
+ ## DrawerDescription
49
+
50
+ One or two lines under the title; becomes the drawer's accessible description.
51
+
52
+ | Prop | Type | Default | Description |
53
+ | --- | --- | --- | --- |
54
+ | `className` | `string` | - | Additional Tailwind classes, merged last. |
55
+
56
+ Also accepts Base UI props: `render`.
57
+
58
+ ## DrawerFooter
59
+
60
+ The actions, on the grey strip under the panel. They share the row: cancel first, the primary action last.
61
+
62
+ ## DrawerHeader
63
+
64
+ The top of the white panel: `DrawerTitle` and an optional `DrawerDescription`.
65
+
66
+ ## DrawerPanel
67
+
68
+ The body of the white panel. It scrolls inside the drawer, under the header and above the footer.
69
+
70
+ | Prop | Type | Default | Description |
71
+ | --- | --- | --- | --- |
72
+ | `scrollFade` | `boolean` | `true` | Fade the content at the edges it scrolls under. |
73
+
74
+ ## DrawerTitle
75
+
76
+ The drawer's accessible name. Required.
77
+
78
+ | Prop | Type | Default | Description |
79
+ | --- | --- | --- | --- |
80
+ | `className` | `string` | - | Additional Tailwind classes, merged last. |
81
+
82
+ Also accepts Base UI props: `render`.
83
+
84
+ ## DrawerTrigger
85
+
86
+ Opens the drawer. Use `render={<Button />}` to style it as a Dodo button.
87
+
88
+ | Prop | Type | Default | Description |
89
+ | --- | --- | --- | --- |
90
+ | `className` | `string` | - | Additional Tailwind classes, merged last. |
91
+
92
+ Also accepts Base UI props: `handle`, `id`, `nativeButton`, `payload`, `render`.
93
+
94
+ ## Examples
95
+
96
+ ### drawer/basic
97
+
98
+ ```tsx
99
+ "use client";
100
+
101
+ import { Button } from "@dodopayments/ui/button";
102
+ import {
103
+ Drawer,
104
+ DrawerClose,
105
+ DrawerContent,
106
+ DrawerDescription,
107
+ DrawerFooter,
108
+ DrawerHeader,
109
+ DrawerPanel,
110
+ DrawerTitle,
111
+ DrawerTrigger,
112
+ } from "@dodopayments/ui/drawer";
113
+ import { Field, FieldDescription, FieldLabel } from "@dodopayments/ui/field";
114
+ import { Input } from "@dodopayments/ui/input";
115
+
116
+ export default function DrawerBasic() {
117
+ return (
118
+ <Drawer>
119
+ <DrawerTrigger render={<Button variant="secondary" />}>Initiate refund</DrawerTrigger>
120
+ <DrawerContent>
121
+ <DrawerHeader>
122
+ <DrawerTitle>Initiate refund</DrawerTitle>
123
+ <DrawerDescription>Payment pay_7Hq2Xa…Lm3d · $49.00 · Visa •••• 4242</DrawerDescription>
124
+ </DrawerHeader>
125
+ <DrawerPanel>
126
+ <div className="flex flex-col gap-4">
127
+ <Field>
128
+ <FieldLabel>Amount</FieldLabel>
129
+ <Input type="money" currency="USD" defaultValue={4900} />
130
+ </Field>
131
+ <Field>
132
+ <FieldLabel>Reason</FieldLabel>
133
+ <FieldDescription>Shown to the customer on the refund receipt.</FieldDescription>
134
+ <Input placeholder="Duplicate charge" />
135
+ </Field>
136
+ </div>
137
+ </DrawerPanel>
138
+ <DrawerFooter>
139
+ <DrawerClose render={<Button variant="secondary" />}>Cancel</DrawerClose>
140
+ <DrawerClose render={<Button />}>Refund $49.00</DrawerClose>
141
+ </DrawerFooter>
142
+ </DrawerContent>
143
+ </Drawer>
144
+ );
145
+ }
146
+ ```
147
+
148
+ ### drawer/master
149
+
150
+ ```tsx
151
+ "use client";
152
+
153
+ import { Button } from "@dodopayments/ui/button";
154
+ import {
155
+ Drawer,
156
+ DrawerClose,
157
+ DrawerContent,
158
+ DrawerDescription,
159
+ DrawerFooter,
160
+ DrawerHeader,
161
+ DrawerTitle,
162
+ DrawerTrigger,
163
+ } from "@dodopayments/ui/drawer";
164
+
165
+ export default function DrawerMaster() {
166
+ return (
167
+ <Drawer>
168
+ <DrawerTrigger render={<Button variant="secondary" />}>Open drawer</DrawerTrigger>
169
+ <DrawerContent>
170
+ <DrawerHeader>
171
+ <DrawerTitle>Pause subscription?</DrawerTitle>
172
+ <DrawerDescription>
173
+ Billing stops today. The customer keeps access until 14 December.
174
+ </DrawerDescription>
175
+ </DrawerHeader>
176
+ <DrawerFooter>
177
+ <DrawerClose render={<Button variant="secondary" />}>Cancel</DrawerClose>
178
+ <DrawerClose render={<Button variant="warning" />}>Pause</DrawerClose>
179
+ </DrawerFooter>
180
+ </DrawerContent>
181
+ </Drawer>
182
+ );
183
+ }
184
+ ```
185
+
186
+ ### drawer/nested
187
+
188
+ ```tsx
189
+ "use client";
190
+
191
+ import { Button } from "@dodopayments/ui/button";
192
+ import {
193
+ Drawer,
194
+ DrawerClose,
195
+ DrawerContent,
196
+ DrawerDescription,
197
+ DrawerFooter,
198
+ DrawerHeader,
199
+ DrawerTitle,
200
+ DrawerTrigger,
201
+ } from "@dodopayments/ui/drawer";
202
+
203
+ export default function DrawerNested() {
204
+ return (
205
+ <Drawer>
206
+ <DrawerTrigger render={<Button variant="secondary" />}>Cancel subscription</DrawerTrigger>
207
+ <DrawerContent>
208
+ <DrawerHeader>
209
+ <DrawerTitle>Cancel subscription</DrawerTitle>
210
+ <DrawerDescription>
211
+ Pro plan · $49.00 a month. The customer keeps access until 14 December.
212
+ </DrawerDescription>
213
+ </DrawerHeader>
214
+ <DrawerFooter>
215
+ <DrawerClose render={<Button variant="secondary" />}>Keep it</DrawerClose>
216
+ <Drawer>
217
+ <DrawerTrigger render={<Button variant="destructive" />}>Cancel now</DrawerTrigger>
218
+ <DrawerContent>
219
+ <DrawerHeader>
220
+ <DrawerTitle>Cancel right away?</DrawerTitle>
221
+ <DrawerDescription>
222
+ Access ends now and the unused days are not refunded.
223
+ </DrawerDescription>
224
+ </DrawerHeader>
225
+ <DrawerFooter>
226
+ <DrawerClose render={<Button variant="secondary" />}>Back</DrawerClose>
227
+ <DrawerClose render={<Button variant="destructive" />}>Cancel now</DrawerClose>
228
+ </DrawerFooter>
229
+ </DrawerContent>
230
+ </Drawer>
231
+ </DrawerFooter>
232
+ </DrawerContent>
233
+ </Drawer>
234
+ );
235
+ }
236
+ ```
237
+
238
+ ### drawer/snap-points
239
+
240
+ ```tsx
241
+ "use client";
242
+
243
+ import { Button } from "@dodopayments/ui/button";
244
+ import {
245
+ Drawer,
246
+ DrawerContent,
247
+ DrawerDescription,
248
+ DrawerHeader,
249
+ DrawerPanel,
250
+ DrawerTitle,
251
+ DrawerTrigger,
252
+ } from "@dodopayments/ui/drawer";
253
+
254
+ const EVENTS = [
255
+ "payment.succeeded",
256
+ "payment.failed",
257
+ "refund.succeeded",
258
+ "subscription.active",
259
+ "subscription.on_hold",
260
+ "subscription.renewed",
261
+ "subscription.cancelled",
262
+ "dispute.opened",
263
+ "dispute.won",
264
+ "dispute.lost",
265
+ "license_key.created",
266
+ "payout.succeeded",
267
+ ];
268
+
269
+ export default function DrawerSnapPoints() {
270
+ return (
271
+ <Drawer snapPoints={[0.5, 1]}>
272
+ <DrawerTrigger render={<Button variant="secondary" />}>Webhook events</DrawerTrigger>
273
+ <DrawerContent>
274
+ <DrawerHeader>
275
+ <DrawerTitle>Webhook events</DrawerTitle>
276
+ <DrawerDescription>Drag up to see the full list.</DrawerDescription>
277
+ </DrawerHeader>
278
+ <DrawerPanel>
279
+ <ul className="flex flex-col gap-3">
280
+ {EVENTS.map((event) => (
281
+ <li key={event} className="text-mono-primary text-foreground">
282
+ {event}
283
+ </li>
284
+ ))}
285
+ </ul>
286
+ </DrawerPanel>
287
+ </DrawerContent>
288
+ </Drawer>
289
+ );
290
+ }
291
+ ```
292
+
@@ -17,6 +17,7 @@ pass `role="img"`, `aria-label` and `aria-hidden={false}`.
17
17
  | Prop | Type | Default | Description |
18
18
  | --- | --- | --- | --- |
19
19
  | `icon` (required) | `ReactNode` | - | The icon in the tile, a Nucleo icon (16px at `md`, 12px at `sm`): `<FeaturedIcon icon={<KeyIcon />} />`. |
20
+ | `look` | `"tile" \| "sphere"` | - | `tile`: The rounded square with a soft fill and two borders (the default). `sphere`: The dashboard's glossy round badge in the tone, a white icon on it (44px at `md`, 28px at `sm`), as the verification checklist shows each step. |
20
21
  | `size` | `"md" \| "sm"` | `"md"` | `md`: 32px tile with a 16px icon, for cards, dialogs and empty states (the default).<br>`sm`: 20px tile with a 12px icon, the height of a text line, e.g. the events of an `ActivityTimeline`. |
21
22
  | `tone` | `"neutral" \| "success" \| "warning" \| "error" \| "info" \| "orange" \| "pink" \| "violet"` | `"neutral"` | `neutral`: Settings link cards, empty states and invite or refund dialogs (the default).<br>`success`: A finished or verified state.<br>`warning`: Something that needs action.<br>`error`: The top of a destructive confirm, or a failure.<br>`info`: Under review, or an archive notice.<br>`orange`: A category or highlight whose meaning the label already carries. Not a status.<br>`pink`: A category or highlight whose meaning the label already carries. Not a status.<br>`violet`: A category or highlight whose meaning the label already carries. Not a status. |
22
23
 
@@ -66,7 +66,7 @@ Accepts Base UI's `render` prop to swap the rendered element.
66
66
  | `prefix` | `ReactNode` | - | Inline text before the value in Content/Primary, e.g. `$`. |
67
67
  | `prefixSelect` | `ReactNode` | - | A chrome-less select at the start, e.g. the phone country code: pass a `Select` with its `SelectTrigger`. |
68
68
  | `shortcut` | `string` | - | A keyboard shortcut shown at the end in a `Kbd`, e.g. `/` on a search field. |
69
- | `size` | `"lg" \| null` | - | |
69
+ | `size` | `"sm" \| "lg" \| null` | - | |
70
70
  | `suffix` | `ReactNode` | - | Inline text after the value in Content/Secondary, e.g. `%`. |
71
71
  | `suffixSelect` | `ReactNode` | - | A chrome-less select at the end, e.g. the currency: pass a `Select` with its `SelectTrigger`. |
72
72
  | `suggestions` | `readonly InputSuggestion[] \| readonly InputSuggestionGroup[]` | - | Suggestions shown in a list under the field while the user types: strings, `{ value, label }` items, or groups (`{ label, items }`). Pass an array (it may be empty, e.g. while async results load) to turn them on. |
@@ -57,7 +57,7 @@ where the dropzone is too large. Picked files are checked as `FileUpload` checks
57
57
  | `onFilesRejected` | `((rejections: FileUploadRejection[]) => void)` | - | Called with the refused files of each pick and the reason for each. |
58
58
  | `progress` | `number \| null` | - | Determinate progress (0-100). A fill sweeps across the button and the percentage is shown next to `loadingText`. `null`/`undefined` falls back to `loading`. |
59
59
  | `result` | `"success" \| "error" \| null` | - | Outcome of the last action, after interior.dev's loading button. `"success"` swaps the label for a check and `successText`, `"error"` for a warning icon and `errorText`; `null` shows the label. The outcome is announced through a polite live region. Pass it (even `null`) on buttons that report an outcome, so every face shares one cell from the first render. Clear it yourself, e.g. after 1.4s. With `result`, `Button` renders the button and a sibling status element, so do not pass a `Button` with `result` as the `render` element of another component. |
60
- | `size` | `"default" \| "icon" \| "xs" \| "lg" \| "icon-xs" \| "icon-lg" \| null` | - | |
60
+ | `size` | `"default" \| "sm" \| "icon" \| "xs" \| "lg" \| "icon-sm" \| "icon-xs" \| "icon-lg" \| null` | - | |
61
61
  | `successText` | `ReactNode` | `"Done"` | Label shown while `result` is `"success"`. |
62
62
  | `variant` | `"link" \| "default" \| "warning" \| "secondary" \| "ghost" \| "destructive" \| "wallet" \| "destructive-outline" \| null` | - | |
63
63
 
@@ -26,7 +26,7 @@ place.
26
26
  | `filters` (required) | `readonly FilterGridFilter<T>[]` | - | |
27
27
  | `getKey` (required) | `(item: T) => string` | - | A stable key per item, so cells keep their identity across filters. |
28
28
  | `items` (required) | `readonly T[]` | - | |
29
- | `renderItem` (required) | `(item: T) => ReactNode` | - | Content of one cell. |
29
+ | `renderItem` (required) | `(item: T) => ReactNode` | - | Content of one cell: drawn in the white panel of the cell's card tray. |
30
30
  | `className` | `string` | - | Additional Tailwind classes, merged last. |
31
31
  | `columns` | `number` | `3` | Grid columns. |
32
32
  | `defaultValue` | `string` | - | Id of the filter active on mount when uncontrolled. Defaults to the first filter. |
@@ -34,6 +34,7 @@ place.
34
34
  | `gap` | `number` | `8` | Gap between cells in pixels. |
35
35
  | `maxRows` | `number` | `4` | Rows before the grid scrolls. The grid keeps the height of all items (up to this cap), so filtering does not move the content below it. |
36
36
  | `onValueChange` | `((id: string) => void)` | - | Called with the id of the filter the user picks. |
37
+ | `renderTitle` | `((item: T) => ReactNode)` | - | Title of one cell, at the top of its white panel above the `renderItem` content (Heading/Quaternary, truncated). Without it the panel holds `renderItem` only. |
37
38
  | `rowHeight` | `number` | `72` | Row height in pixels. |
38
39
  | `value` | `string` | - | Id of the active filter. Pass it to control the grid. |
39
40
 
@@ -98,12 +99,8 @@ export default function FilterGridBasic() {
98
99
  items={PRODUCTS}
99
100
  filters={FILTERS}
100
101
  getKey={(p) => p.id}
101
- renderItem={(p) => (
102
- <div className="flex h-full flex-col justify-between">
103
- <span className="truncate text-label-primary">{p.name}</span>
104
- <span className="text-body-secondary text-muted-foreground">{p.price}</span>
105
- </div>
106
- )}
102
+ renderTitle={(p) => p.name}
103
+ renderItem={(p) => <span className="text-body-secondary text-muted-foreground">{p.price}</span>}
107
104
  />
108
105
  );
109
106
  }
@@ -4,8 +4,9 @@ Drop-off through the stages of a flow (visited, started checkout, paid), on the
4
4
  `FunnelChart` primitive. `data` is a list of `{ label, value, displayValue?, color?, gradient? }`,
5
5
  first stage first; each segment is sized as a share of the first stage and shows its value, a
6
6
  percentage chip and the stage label, and each boundary shows the step conversion ("→ 54%") from the
7
- stage before. Segments use the tint look of the other charts (a 20% wash with a solid 2px edge on the
8
- outer sides); `variant="solid"` draws the full colour as `layers` halo rings. Segments grow in with a stagger on mount; hovering one dims
7
+ stage before. Segments are solid by default: a full-colour core inside faint halo bands (`layers` rings);
8
+ `variant="tint"` gives the wash of the tint look (20% with a solid 2px edge on the outer sides). Each stage takes the
9
+ next palette colour unless `color` sets one. Segments grow in with a stagger on mount; hovering one dims
9
10
  the others. `orientation="vertical"` stacks the stages top to bottom; `grid` adds background bands
10
11
  and divider lines. Height comes from the aspect ratio unless a class sets it. It has no loading
11
12
  state and renders an empty frame when `data` is empty.
@@ -20,8 +21,9 @@ Drop-off through the stages of a flow (visited, started checkout, paid), on the
20
21
  `FunnelChart` primitive. `data` is a list of `{ label, value, displayValue?, color?, gradient? }`,
21
22
  first stage first; each segment is sized as a share of the first stage and shows its value, a
22
23
  percentage chip and the stage label, and each boundary shows the step conversion ("→ 54%") from the
23
- stage before. Segments use the tint look of the other charts (a 20% wash with a solid 2px edge on the
24
- outer sides); `variant="solid"` draws the full colour as `layers` halo rings. Segments grow in with a stagger on mount; hovering one dims
24
+ stage before. Segments are solid by default: a full-colour core inside faint halo bands (`layers` rings);
25
+ `variant="tint"` gives the wash of the tint look (20% with a solid 2px edge on the outer sides). Each stage takes the
26
+ next palette colour unless `color` sets one. Segments grow in with a stagger on mount; hovering one dims
25
27
  the others. `orientation="vertical"` stacks the stages top to bottom; `grid` adds background bands
26
28
  and divider lines. Height comes from the aspect ratio unless a class sets it. It has no loading
27
29
  state and renders an empty frame when `data` is empty.
@@ -31,7 +33,7 @@ state and renders an empty frame when `data` is empty.
31
33
  | `data` (required) | `FunnelStage[]` | - | |
32
34
  | `label` (required) | `string` | - | Accessible name of the chart, e.g. "Checkout funnel, last 30 days". Set as `aria-label` on the `role="figure"` frame. The stage values, percentages and labels stay in the page as text. |
33
35
  | `className` | `string` | - | Additional Tailwind classes, merged last. |
34
- | `color` | `string` | - | |
36
+ | `color` | `string` | - | One colour for every stage. Without it, each stage takes the next palette colour: `--chart-solid-1` to `--chart-solid-3` (the bar colours), then `--chart-4` and `--chart-5`, repeated. |
35
37
  | `conversionLabel` | `string` | - | Screen reader text after the step conversion. Default "of the previous stage" |
36
38
  | `edges` | `"curved" \| "straight"` | - | Edge style for the funnel segments. Default "curved" |
37
39
  | `enterTransition` | `Transition` | - | Framer Motion transition for segment enter animation |
@@ -44,7 +46,7 @@ state and renders an empty frame when `data` is empty.
44
46
  | `labelAlign` | `"center" \| "end" \| "start"` | - | Where the label group sits within the segment cell. - "center" (default), "start", "end" For horizontal funnel: start=top, end=bottom. For vertical funnel: start=left, end=right. |
45
47
  | `labelLayout` | `"spread" \| "grouped"` | - | Controls how segment labels (value, percentage, stage name) are arranged. - "spread": Value/percentage/label are spread apart (top/center/bottom for horizontal, left/center/right for vertical). This is the default. - "grouped": All label items stack together in a tight group. When "grouped", use `labelOrientation` and `labelAlign` for full control. |
46
48
  | `labelOrientation` | `"vertical" \| "horizontal"` | - | Stack direction of the label group. Only applies when `labelLayout="grouped"`. - "vertical": Items stack top-to-bottom. Default for horizontal funnels. - "horizontal": Items stack left-to-right. Default for vertical funnels. |
47
- | `layers` | `number` | - | Halo rings of the `"solid"` look. Default 3 |
49
+ | `layers` | `number` | - | Rings of the `"solid"` look: the core plus `layers - 1` halo bands. Default 3 |
48
50
  | `onHoverChange` | `((index: number \| null) => void)` | - | Callback when hover state changes |
49
51
  | `orientation` | `"vertical" \| "horizontal"` | - | |
50
52
  | `renderPattern` | `((id: string, color: string) => ReactNode)` | - | Render a visx pattern definition. Receives a unique `id` string per segment and the resolved `color`. Return a `<PatternLines>` (or any visx pattern) inside an SVG `<defs>`. The component will use `fill="url(#id)"` on the innermost ring while keeping outer halo rings as solid color. |
@@ -53,7 +55,7 @@ state and renders an empty frame when `data` is empty.
53
55
  | `showPercentage` | `boolean` | - | |
54
56
  | `showValues` | `boolean` | - | |
55
57
  | `staggerDelay` | `number` | - | Stagger delay between segments in seconds. Default 0.12 |
56
- | `variant` | `"tint" \| "solid"` | - | `"tint"`: the radar look of the other charts, each segment an opaque 20% wash of its colour (mixed into the card) with a solid 2px edge along its outer sides. `"solid"`: the full colour drawn as `layers` nested halo rings. A `renderPattern` fill stays solid. Default: "tint" |
58
+ | `variant` | `"tint" \| "solid"` | - | `"solid"`: a full-colour core inside `layers - 1` faint halo bands, as the bar, pie and ring charts. `"tint"`: each segment an opaque 20% wash of its colour (mixed into the card) with a solid 2px edge along its outer sides. A `renderPattern` fill stays solid. Default: "solid" |
57
59
 
58
60
  ## Examples
59
61
 
@@ -88,14 +90,14 @@ const compact = new Intl.NumberFormat("en-US", { notation: "compact" });
88
90
 
89
91
  // Payouts through review: each stage has its own colour, the last one a gradient.
90
92
  const payouts: FunnelStage[] = [
91
- { label: "Requested", value: 1_240, color: "var(--chart-1)" },
92
- { label: "Verified", value: 1_090, color: "var(--chart-2)" },
93
- { label: "Approved", value: 1_010, color: "var(--chart-3)" },
93
+ { label: "Requested", value: 1_240, color: "var(--chart-solid-2)" },
94
+ { label: "Verified", value: 1_090, color: "var(--chart-solid-3)" },
95
+ { label: "Approved", value: 1_010, color: "var(--chart-5)" },
94
96
  {
95
97
  label: "Paid out",
96
98
  value: 980,
97
99
  gradient: [
98
- { offset: 0, color: "var(--chart-3)" },
100
+ { offset: 0, color: "var(--chart-solid-3)" },
99
101
  { offset: 1, color: "var(--chart-5)" },
100
102
  ],
101
103
  },
@@ -136,7 +138,7 @@ export default function FunnelChartVertical() {
136
138
  data={trials}
137
139
  label="Trial to paid funnel, September"
138
140
  orientation="vertical"
139
- color="var(--chart-2)"
141
+ color="var(--chart-solid-2)"
140
142
  edges="straight"
141
143
  grid
142
144
  />
@@ -3,10 +3,9 @@
3
3
  One value from 0 to 100 as a row of notches, around an arc (default) or along a horizontal track
4
4
  (`orientation="linear"`), on the bklit `Gauge` primitive. `value` sets how many notches fill.
5
5
  `centerValue` adds an optional animated statistic with a `defaultLabel` caption: in the arc
6
- centre, or above / below the linear track (`labelPlacement`, `labelAlign`). Filled notches use the
7
- tint look of the other charts (a 20% wash with a solid 3px outer edge); `variant="solid"` fills
8
- them with the full colour. Set `useGradient` for
9
- a colour ramp across the notches, or pass `PatternLines` / `LinearGradient` children and point
6
+ centre, or above / below the linear track (`labelPlacement`, `labelAlign`). Filled notches are the full
7
+ colour by default; `variant="tint"` gives the tint look of the other charts (a 20% wash with a solid 3px outer
8
+ edge). Set `useGradient` for a colour ramp across the notches (blue to violet unless `activeGradient` sets one), or pass `PatternLines` / `LinearGradient` children and point
10
9
  `activeFill` / `inactiveFill` at them with `url(#id)`. The plot is a `role="meter"` with
11
10
  `aria-valuenow`. Notches pop in on mount (instant under reduced motion). It has no loading or
12
11
  empty state.
@@ -20,10 +19,9 @@ import { GaugeChart } from "@dodopayments/ui/gauge-chart";
20
19
  One value from 0 to 100 as a row of notches, around an arc (default) or along a horizontal track
21
20
  (`orientation="linear"`), on the bklit `Gauge` primitive. `value` sets how many notches fill.
22
21
  `centerValue` adds an optional animated statistic with a `defaultLabel` caption: in the arc
23
- centre, or above / below the linear track (`labelPlacement`, `labelAlign`). Filled notches use the
24
- tint look of the other charts (a 20% wash with a solid 3px outer edge); `variant="solid"` fills
25
- them with the full colour. Set `useGradient` for
26
- a colour ramp across the notches, or pass `PatternLines` / `LinearGradient` children and point
22
+ centre, or above / below the linear track (`labelPlacement`, `labelAlign`). Filled notches are the full
23
+ colour by default; `variant="tint"` gives the tint look of the other charts (a 20% wash with a solid 3px outer
24
+ edge). Set `useGradient` for a colour ramp across the notches (blue to violet unless `activeGradient` sets one), or pass `PatternLines` / `LinearGradient` children and point
27
25
  `activeFill` / `inactiveFill` at them with `url(#id)`. The plot is a `role="meter"` with
28
26
  `aria-valuenow`. Notches pop in on mount (instant under reduced motion). It has no loading or
29
27
  empty state.
@@ -63,7 +61,7 @@ empty state.
63
61
  | `totalNotches` | `number` | - | Number of notches |
64
62
  | `uniformWidth` | `boolean` | - | `true` = rectangular notches; `false` = tapered toward center / midline |
65
63
  | `useGradient` | `boolean` | - | |
66
- | `variant` | `"tint" \| "solid"` | - | `"tint"`: the radar look of the other charts, each filled notch an opaque 20% wash of its colour (mixed into the card) with a solid 3px edge on its outer side. `"solid"`: the full colour. A gradient or pattern `activeFill` (`url(#id)`) and the theme palette gradient stay solid. Default: "tint" |
64
+ | `variant` | `"tint" \| "solid"` | - | `"solid"`: the full colour, as the bar, pie and ring charts. `"tint"`: each filled notch an opaque 20% wash of its colour (mixed into the card) with a solid 3px edge on its outer side. A gradient or pattern `activeFill` (`url(#id)`) and the theme palette gradient stay solid. Default: "solid" |
67
65
  | `width` | `number` | - | |
68
66
 
69
67
  ## Examples
@@ -108,7 +106,7 @@ export default function GaugeChartGradient() {
108
106
  defaultLabel="Auth rate"
109
107
  formatOptions={{ style: "percent", maximumFractionDigits: 0 }}
110
108
  useGradient
111
- activeGradient={["var(--chart-2)", "var(--chart-3)"]}
109
+ activeGradient={["var(--chart-solid-2)", "var(--chart-solid-3)"]}
112
110
  inactiveFillOpacity={0.4}
113
111
  minWidth={240}
114
112
  />
@@ -164,7 +162,7 @@ export default function GaugeChartLinear() {
164
162
  totalNotches={50}
165
163
  spacing={0}
166
164
  notchCornerRadius={3}
167
- activeFill="var(--chart-2)"
165
+ activeFill="var(--chart-solid-2)"
168
166
  inactiveFillOpacity={0.4}
169
167
  />
170
168
  </div>
@@ -33,7 +33,7 @@ springs each `d` attribute, so one shape turns into the next. Composes `Button`
33
33
  | `semantics` | `IconMorphSemantics` | `"label"` | `"label"` names the button after the shown state. `"pressed"` and `"expanded"` also set `aria-pressed` / `aria-expanded` while state 1 shows; pass a fixed `aria-label` with them. |
34
34
  | `shapes` | `readonly IconMorphShape[]` | - | Custom states (two or more) on a 24 x 24 grid. Give matching paths the same commands so they interpolate. |
35
35
  | `showLabel` | `boolean` | `false` | Shows the state's label beside the icon. The label cross-fades with the icon. |
36
- | `size` | `"default" \| "icon" \| "xs" \| "lg" \| "icon-xs" \| "icon-lg" \| null` | - | |
36
+ | `size` | `"default" \| "sm" \| "icon" \| "xs" \| "lg" \| "icon-sm" \| "icon-xs" \| "icon-lg" \| null` | - | |
37
37
  | `strokeWidth` | `number` | `2` | Stroke width on the 24 x 24 grid. 2 renders as 1.5px at the 18px icon size, like Nucleo outline icons. |
38
38
  | `successText` | `ReactNode` | `"Done"` | Label shown while `result` is `"success"`. |
39
39
  | `value` | `number \| boolean` | - | The shown state. A boolean maps to 0 / 1. Pass it to control the morph. |
@@ -0,0 +1,89 @@
1
+ # Image Crop
2
+
3
+ Crops a picked image before it is uploaded, as the dashboard's image fields do (main's ImageUpload): the
4
+ whole image with a box of `aspect` over it, 90% of the image and centred to start. Drag the box to move it,
5
+ a corner to resize it, or move it with the arrow keys. Crop draws the boxed area to a canvas, shrinks it so
6
+ its longer side is at most `maxDimension`, and calls `onCrop` with the new file. Put it beside a
7
+ `FileUpload`: open it with the picked file, and upload what `onCrop` returns. It stays mounted and toggles
8
+ `open`; its state starts fresh for every file.
9
+
10
+ ```tsx
11
+ import { ImageCropDialog } from "@dodopayments/ui/image-crop";
12
+ ```
13
+
14
+ ## ImageCropDialog
15
+
16
+ Crops a picked image before it is uploaded, as the dashboard's image fields do (main's ImageUpload): the
17
+ whole image with a box of `aspect` over it, 90% of the image and centred to start. Drag the box to move it,
18
+ a corner to resize it, or move it with the arrow keys. Crop draws the boxed area to a canvas, shrinks it so
19
+ its longer side is at most `maxDimension`, and calls `onCrop` with the new file. Put it beside a
20
+ `FileUpload`: open it with the picked file, and upload what `onCrop` returns. It stays mounted and toggles
21
+ `open`; its state starts fresh for every file.
22
+
23
+ | Prop | Type | Default | Description |
24
+ | --- | --- | --- | --- |
25
+ | `file` (required) | `File \| null` | - | The picked image. The dialog shows it while `open`. |
26
+ | `onCrop` (required) | `(file: File) => void` | - | Called with the cropped image: the same name, and the same type when it is JPEG, PNG or WebP (else PNG). |
27
+ | `onOpenChange` (required) | `(open: boolean) => void` | - | |
28
+ | `open` (required) | `boolean` | - | |
29
+ | `aspect` | `number` | `1` | Width over height of the crop, e.g. `1` for a product image or `16 / 9` for a banner. |
30
+ | `maxDimension` | `number` | `1920` | The longest side of the output in pixels; a larger crop is shrunk to it, a smaller one kept. |
31
+ | `title` | `string` | `the locale's `imageCropTitle` ("Crop image")` | Accessible title. |
32
+
33
+ ## Examples
34
+
35
+ ### image-crop/master
36
+
37
+ ```tsx
38
+ "use client";
39
+
40
+ import { FileUpload } from "@dodopayments/ui/file-upload";
41
+ import { ImageCropDialog } from "@dodopayments/ui/image-crop";
42
+ import { useEffect, useState } from "react";
43
+
44
+ export default function ImageCropMaster() {
45
+ const [picked, setPicked] = useState<File | null>(null);
46
+ const [open, setOpen] = useState(false);
47
+ const [preview, setPreview] = useState<string | null>(null);
48
+
49
+ useEffect(
50
+ () => () => {
51
+ if (preview) URL.revokeObjectURL(preview);
52
+ },
53
+ [preview],
54
+ );
55
+
56
+ return (
57
+ <div className="flex w-full max-w-120 flex-col gap-4">
58
+ <FileUpload
59
+ accept="image/png,image/jpeg,image/webp"
60
+ description="PNG, JPG or WebP, up to 3 MB. Cropped to a square."
61
+ maxSize={3 * 1024 * 1024}
62
+ onFilesAdded={([file]) => {
63
+ if (!file) return;
64
+ setPicked(file);
65
+ setOpen(true);
66
+ }}
67
+ />
68
+ {preview ? (
69
+ // biome-ignore lint/performance/noImgElement: a local object URL in a demo.
70
+ <img
71
+ alt="Cropped"
72
+ className="size-24 rounded-lg border border-border object-cover"
73
+ src={preview}
74
+ />
75
+ ) : null}
76
+ <ImageCropDialog
77
+ file={picked}
78
+ open={open}
79
+ onOpenChange={setOpen}
80
+ onCrop={(file: File) => {
81
+ setPreview(URL.createObjectURL(file));
82
+ setOpen(false);
83
+ }}
84
+ />
85
+ </div>
86
+ );
87
+ }
88
+ ```
89
+
@@ -51,7 +51,7 @@ several in one group for joined inputs; they share the width equally, and `style
51
51
  | --- | --- | --- | --- |
52
52
  | `className` | `string` | - | Classes for the input's control wrapper (rendered `display: contents` inside the group). |
53
53
  | `nativeInput` | `boolean` | - | |
54
- | `size` | `"lg"` | `"lg"` | Input height, as `Input` (`DODO_INPUT_VARIANTS`): one size, `lg` 36. |
54
+ | `size` | `"sm" \| "lg"` | `"lg"` | Input height, as `Input` (`DODO_INPUT_VARIANTS`): `lg` 36 or the compact `sm` 28. |
55
55
  | `unstyled` | `boolean` | - | |
56
56
 
57
57
  Also accepts Base UI props: `defaultValue`, `onValueChange`, `render`, `value`.