@dodopayments/ui 1.7.2 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/component-registry.json +1469 -238
- package/ai/component-registry.md +42 -38
- package/ai/components/app-top-bar.md +17 -5
- package/ai/components/area-chart.md +2 -0
- package/ai/components/bar-chart.md +2 -0
- package/ai/components/breadcrumb.md +2 -0
- package/ai/components/button-group.md +2 -0
- package/ai/components/chart-legend.md +2 -0
- package/ai/components/checkout-page.md +2 -0
- package/ai/components/color-input.md +2 -0
- package/ai/components/combobox.md +199 -0
- package/ai/components/composed-chart.md +2 -0
- package/ai/components/container.md +2 -0
- package/ai/components/context-menu.md +2 -0
- package/ai/components/dialog.md +1 -0
- package/ai/components/direction-provider.md +2 -0
- package/ai/components/drawer.md +2 -0
- package/ai/components/field.md +2 -0
- package/ai/components/filter-grid.md +2 -0
- package/ai/components/flag.md +22 -0
- package/ai/components/funnel-chart.md +2 -0
- package/ai/components/fx-conversion.md +2 -0
- package/ai/components/gauge-chart.md +2 -0
- package/ai/components/heatmap-chart.md +2 -0
- package/ai/components/invoice-document.md +2 -0
- package/ai/components/link.md +3 -3
- package/ai/components/list-item.md +4 -4
- package/ai/components/live-activity.md +2 -0
- package/ai/components/new-items-pill.md +2 -0
- package/ai/components/page-header.md +1 -0
- package/ai/components/payment-result.md +2 -0
- package/ai/components/pie-chart.md +2 -0
- package/ai/components/plan-picker.md +2 -0
- package/ai/components/product-card.md +2 -0
- package/ai/components/proration-preview.md +2 -0
- package/ai/components/radar-chart.md +2 -0
- package/ai/components/reorder-list.md +4 -0
- package/ai/components/required-mark.md +22 -0
- package/ai/components/ring-chart.md +2 -0
- package/ai/components/sale-share-card.md +2 -0
- package/ai/components/sankey-chart.md +2 -0
- package/ai/components/scatter-chart.md +2 -0
- package/ai/components/settings-section.md +2 -0
- package/ai/components/sheet.md +8 -4
- package/ai/components/slider.md +2 -0
- package/ai/components/sunburst-chart.md +2 -0
- package/ai/components/switch-transition.md +91 -0
- package/ai/components/task-steps.md +2 -0
- package/ai/components/test-mode-banner.md +2 -2
- package/ai/components/timestamp.md +8 -8
- package/ai/components/timezone-select.md +2 -0
- package/ai/components/typing-indicator.md +2 -0
- package/ai/components/wallet-buttons.md +2 -0
- package/ai/components/wizard-steps.md +2 -0
- package/ai/skills/dodo-charts/SKILL.md +21 -12
- package/ai/skills/dodo-design/SKILL.md +21 -10
- package/bin/registry.js +15 -4
- package/bin/scan.d.ts +3 -2
- package/bin/scan.js +4 -4
- package/dist/components/app-top-bar/app-top-bar.d.ts +17 -3
- package/dist/components/app-top-bar/app-top-bar.d.ts.map +1 -1
- package/dist/components/app-top-bar/app-top-bar.js +25 -9
- package/dist/components/app-top-bar/app-top-bar.js.map +1 -1
- package/dist/components/app-top-bar/index.d.ts +1 -1
- package/dist/components/app-top-bar/index.d.ts.map +1 -1
- package/dist/components/app-top-bar/index.js +1 -1
- package/dist/components/app-top-bar/index.js.map +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +11 -2
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.js +7 -3
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.js +3 -1
- package/dist/components/collapsible/collapsible.js.map +1 -1
- package/dist/components/{select/select-combobox.d.ts → combobox/combobox.d.ts} +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/{select/select-combobox.js → combobox/combobox.js} +1 -1
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +2 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/country-select/country-select.js +1 -1
- package/dist/components/country-select/country-select.js.map +1 -1
- package/dist/components/currency-select/currency-select.js +1 -1
- package/dist/components/currency-select/currency-select.js.map +1 -1
- package/dist/components/data-grid/data-grid.js +2 -2
- package/dist/components/data-grid/data-grid.js.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.js +8 -7
- package/dist/components/date-picker/date-picker.js.map +1 -1
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/date-picker/index.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.js.map +1 -1
- package/dist/components/dialog/confirm-dialog.d.ts +7 -1
- package/dist/components/dialog/confirm-dialog.d.ts.map +1 -1
- package/dist/components/dialog/confirm-dialog.js +2 -2
- package/dist/components/dialog/confirm-dialog.js.map +1 -1
- package/dist/components/field/field.d.ts +0 -19
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/field/field.js +2 -13
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/field/index.d.ts +1 -1
- package/dist/components/field/index.d.ts.map +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.js.map +1 -1
- package/dist/components/field/label.d.ts +0 -8
- package/dist/components/field/label.d.ts.map +1 -1
- package/dist/components/field/label.js +1 -9
- package/dist/components/field/label.js.map +1 -1
- package/dist/components/filter-grid/filter-grid.js +1 -1
- package/dist/components/filter-grid/filter-grid.js.map +1 -1
- package/dist/components/flag/country-flag.d.ts.map +1 -0
- package/dist/components/flag/country-flag.js.map +1 -0
- package/dist/components/flag/flag.d.ts.map +1 -0
- package/dist/components/{payment-logos → flag}/flag.js +1 -1
- package/dist/components/flag/flag.js.map +1 -0
- package/dist/components/flag/index.d.ts +2 -0
- package/dist/components/flag/index.d.ts.map +1 -0
- package/dist/components/flag/index.js +2 -0
- package/dist/components/flag/index.js.map +1 -0
- package/dist/components/form/form.js +1 -1
- package/dist/components/form/form.js.map +1 -1
- package/dist/components/form-field/form-field.d.ts.map +1 -1
- package/dist/components/form-field/form-field.js +2 -1
- package/dist/components/form-field/form-field.js.map +1 -1
- package/dist/components/input/chips-field.d.ts +6 -0
- package/dist/components/input/chips-field.d.ts.map +1 -1
- package/dist/components/input/chips-field.js +3 -1
- package/dist/components/input/chips-field.js.map +1 -1
- package/dist/components/input/input-chips-suggestions.js +1 -1
- package/dist/components/input/input-chips-suggestions.js.map +1 -1
- package/dist/components/input/input-phone.js +1 -1
- package/dist/components/input/input-phone.js.map +1 -1
- package/dist/components/input/input.d.ts +15 -0
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/input.js +9 -4
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/link/link.d.ts +5 -5
- package/dist/components/link/link.js +5 -5
- package/dist/components/link/link.js.map +1 -1
- package/dist/components/list-item/list-item.d.ts +6 -6
- package/dist/components/list-item/list-item.d.ts.map +1 -1
- package/dist/components/list-item/list-item.js +7 -6
- package/dist/components/list-item/list-item.js.map +1 -1
- package/dist/components/list-toolbar/list-toolbar-date-range.d.ts +1 -1
- package/dist/components/list-toolbar/list-toolbar-date-range.js +3 -3
- package/dist/components/list-toolbar/list-toolbar-date-range.js.map +1 -1
- package/dist/components/list-toolbar/list-toolbar.js +1 -1
- package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
- package/dist/components/page-header/page-header.d.ts +13 -2
- package/dist/components/page-header/page-header.d.ts.map +1 -1
- package/dist/components/page-header/page-header.js +14 -2
- package/dist/components/page-header/page-header.js.map +1 -1
- package/dist/components/payment-logos/index.d.ts +1 -1
- package/dist/components/payment-logos/index.d.ts.map +1 -1
- package/dist/components/payment-logos/index.js +1 -1
- package/dist/components/payment-logos/index.js.map +1 -1
- package/dist/components/record-header/record-header.js +1 -1
- package/dist/components/record-header/record-header.js.map +1 -1
- package/dist/components/reorder-list/reorder-list.d.ts +15 -1
- package/dist/components/reorder-list/reorder-list.d.ts.map +1 -1
- package/dist/components/reorder-list/reorder-list.js +13 -6
- package/dist/components/reorder-list/reorder-list.js.map +1 -1
- package/dist/components/required-mark/index.d.ts +2 -0
- package/dist/components/required-mark/index.d.ts.map +1 -0
- package/dist/components/required-mark/index.js +2 -0
- package/dist/components/required-mark/index.js.map +1 -0
- package/dist/components/required-mark/required-mark.d.ts +9 -0
- package/dist/components/required-mark/required-mark.d.ts.map +1 -0
- package/dist/components/required-mark/required-mark.js +11 -0
- package/dist/components/required-mark/required-mark.js.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +18 -1
- package/dist/components/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.js +2 -2
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/settings-section/settings-section.d.ts +3 -1
- package/dist/components/settings-section/settings-section.d.ts.map +1 -1
- package/dist/components/settings-section/settings-section.js +6 -5
- package/dist/components/settings-section/settings-section.js.map +1 -1
- package/dist/components/sheet/sheet.d.ts +6 -4
- package/dist/components/sheet/sheet.d.ts.map +1 -1
- package/dist/components/sheet/sheet.js +4 -2
- package/dist/components/sheet/sheet.js.map +1 -1
- package/dist/components/sidebar/sidebar.js +1 -1
- package/dist/components/sidebar/sidebar.js.map +1 -1
- package/dist/components/switch-transition/index.d.ts +2 -0
- package/dist/components/switch-transition/index.d.ts.map +1 -0
- package/dist/components/switch-transition/index.js +2 -0
- package/dist/components/switch-transition/index.js.map +1 -0
- package/dist/components/switch-transition/switch-transition.d.ts +30 -0
- package/dist/components/switch-transition/switch-transition.d.ts.map +1 -0
- package/dist/components/switch-transition/switch-transition.js +80 -0
- package/dist/components/switch-transition/switch-transition.js.map +1 -0
- package/dist/components/test-mode-banner/test-mode-banner.d.ts +1 -1
- package/dist/components/test-mode-banner/test-mode-banner.js +2 -2
- package/dist/components/test-mode-banner/test-mode-banner.js.map +1 -1
- package/dist/components/timestamp/timestamp.d.ts +5 -7
- package/dist/components/timestamp/timestamp.d.ts.map +1 -1
- package/dist/components/timestamp/timestamp.js +18 -14
- package/dist/components/timestamp/timestamp.js.map +1 -1
- package/dist/icons/index.d.ts +22 -0
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +22 -0
- package/dist/icons/index.js.map +1 -1
- package/dist/icons/ui/ai-agents.d.ts +3 -1
- package/dist/icons/ui/ai-agents.d.ts.map +1 -1
- package/dist/icons/ui/ai-agents.js +3 -1
- package/dist/icons/ui/ai-agents.js.map +1 -1
- package/dist/icons/ui/badge-check-2-outline-duo.d.ts +3 -0
- package/dist/icons/ui/badge-check-2-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/badge-check-2-outline-duo.js +5 -0
- package/dist/icons/ui/badge-check-2-outline-duo.js.map +1 -0
- package/dist/icons/ui/ban-outline-duo.d.ts +3 -0
- package/dist/icons/ui/ban-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/ban-outline-duo.js +5 -0
- package/dist/icons/ui/ban-outline-duo.js.map +1 -0
- package/dist/icons/ui/chart-column-outline-duo.d.ts +3 -0
- package/dist/icons/ui/chart-column-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/chart-column-outline-duo.js +5 -0
- package/dist/icons/ui/chart-column-outline-duo.js.map +1 -0
- package/dist/icons/ui/check-glyph-12.d.ts +3 -1
- package/dist/icons/ui/check-glyph-12.d.ts.map +1 -1
- package/dist/icons/ui/check-glyph-12.js +3 -1
- package/dist/icons/ui/check-glyph-12.js.map +1 -1
- package/dist/icons/ui/circle-user-outline-duo.d.ts +3 -0
- package/dist/icons/ui/circle-user-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/circle-user-outline-duo.js +5 -0
- package/dist/icons/ui/circle-user-outline-duo.js.map +1 -0
- package/dist/icons/ui/credit-card-outline-duo.d.ts +3 -0
- package/dist/icons/ui/credit-card-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/credit-card-outline-duo.js +5 -0
- package/dist/icons/ui/credit-card-outline-duo.js.map +1 -0
- package/dist/icons/ui/crown.d.ts +3 -0
- package/dist/icons/ui/crown.d.ts.map +1 -0
- package/dist/icons/ui/crown.js +5 -0
- package/dist/icons/ui/crown.js.map +1 -0
- package/dist/icons/ui/envelope-outline-duo.d.ts +3 -0
- package/dist/icons/ui/envelope-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/envelope-outline-duo.js +5 -0
- package/dist/icons/ui/envelope-outline-duo.js.map +1 -0
- package/dist/icons/ui/gear-outline-duo.d.ts +3 -0
- package/dist/icons/ui/gear-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/gear-outline-duo.js +5 -0
- package/dist/icons/ui/gear-outline-duo.js.map +1 -0
- package/dist/icons/ui/greek-temple-2-outline-duo.d.ts +3 -0
- package/dist/icons/ui/greek-temple-2-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/greek-temple-2-outline-duo.js +5 -0
- package/dist/icons/ui/greek-temple-2-outline-duo.js.map +1 -0
- package/dist/icons/ui/heart-glyph.d.ts +3 -1
- package/dist/icons/ui/heart-glyph.d.ts.map +1 -1
- package/dist/icons/ui/heart-glyph.js +3 -1
- package/dist/icons/ui/heart-glyph.js.map +1 -1
- package/dist/icons/ui/heart.d.ts +3 -1
- package/dist/icons/ui/heart.d.ts.map +1 -1
- package/dist/icons/ui/heart.js +3 -1
- package/dist/icons/ui/heart.js.map +1 -1
- package/dist/icons/ui/laptop-2.d.ts +3 -0
- package/dist/icons/ui/laptop-2.d.ts.map +1 -0
- package/dist/icons/ui/laptop-2.js +5 -0
- package/dist/icons/ui/laptop-2.js.map +1 -0
- package/dist/icons/ui/life-ring-outline-duo.d.ts +3 -0
- package/dist/icons/ui/life-ring-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/life-ring-outline-duo.js +5 -0
- package/dist/icons/ui/life-ring-outline-duo.js.map +1 -0
- package/dist/icons/ui/mobile.d.ts +3 -0
- package/dist/icons/ui/mobile.d.ts.map +1 -0
- package/dist/icons/ui/mobile.js +5 -0
- package/dist/icons/ui/mobile.js.map +1 -0
- package/dist/icons/ui/office-3-outline-duo.d.ts +3 -0
- package/dist/icons/ui/office-3-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/office-3-outline-duo.js +5 -0
- package/dist/icons/ui/office-3-outline-duo.js.map +1 -0
- package/dist/icons/ui/palette-2-outline-duo.d.ts +3 -0
- package/dist/icons/ui/palette-2-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/palette-2-outline-duo.js +5 -0
- package/dist/icons/ui/palette-2-outline-duo.js.map +1 -0
- package/dist/icons/ui/plug-2-outline-duo.d.ts +3 -0
- package/dist/icons/ui/plug-2-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/plug-2-outline-duo.js +5 -0
- package/dist/icons/ui/plug-2-outline-duo.js.map +1 -0
- package/dist/icons/ui/plug-sparkle-outline-duo.d.ts +3 -0
- package/dist/icons/ui/plug-sparkle-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/plug-sparkle-outline-duo.js +5 -0
- package/dist/icons/ui/plug-sparkle-outline-duo.js.map +1 -0
- package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts +3 -0
- package/dist/icons/ui/refresh-clockwise-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/refresh-clockwise-outline-duo.js +5 -0
- package/dist/icons/ui/refresh-clockwise-outline-duo.js.map +1 -0
- package/dist/icons/ui/scale-outline-duo.d.ts +3 -0
- package/dist/icons/ui/scale-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/scale-outline-duo.js +5 -0
- package/dist/icons/ui/scale-outline-duo.js.map +1 -0
- package/dist/icons/ui/shop-outline-duo.d.ts +3 -0
- package/dist/icons/ui/shop-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/shop-outline-duo.js +5 -0
- package/dist/icons/ui/shop-outline-duo.js.map +1 -0
- package/dist/icons/ui/tag-outline-duo.d.ts +3 -0
- package/dist/icons/ui/tag-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/tag-outline-duo.js +5 -0
- package/dist/icons/ui/tag-outline-duo.js.map +1 -0
- package/dist/icons/ui/ticket-outline-duo.d.ts +3 -0
- package/dist/icons/ui/ticket-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/ticket-outline-duo.js +5 -0
- package/dist/icons/ui/ticket-outline-duo.js.map +1 -0
- package/dist/icons/ui/trash-2.d.ts +3 -1
- package/dist/icons/ui/trash-2.d.ts.map +1 -1
- package/dist/icons/ui/trash-2.js +3 -1
- package/dist/icons/ui/trash-2.js.map +1 -1
- package/dist/icons/ui/users-6-outline-duo.d.ts +3 -0
- package/dist/icons/ui/users-6-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/users-6-outline-duo.js +5 -0
- package/dist/icons/ui/users-6-outline-duo.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/{components/date-picker/day-label.d.ts → lib/calendar-day.d.ts} +1 -1
- package/dist/lib/calendar-day.d.ts.map +1 -0
- package/dist/{components/date-picker/day-label.js → lib/calendar-day.js} +1 -1
- package/dist/lib/calendar-day.js.map +1 -0
- package/dist/lib/cn-tables.js +5 -5
- package/dist/lib/cn-tables.js.map +1 -1
- package/dist/lib/column-title.d.ts.map +1 -0
- package/dist/lib/column-title.js.map +1 -0
- package/dist/{components/date-picker/presets.d.ts → lib/date-presets.d.ts} +2 -2
- package/dist/lib/date-presets.d.ts.map +1 -0
- package/dist/{components/date-picker/presets.js → lib/date-presets.js} +2 -2
- package/dist/lib/date-presets.js.map +1 -0
- package/dist/lib/field-context.d.ts +21 -0
- package/dist/lib/field-context.d.ts.map +1 -0
- package/dist/lib/field-context.js +14 -0
- package/dist/lib/field-context.js.map +1 -0
- package/dist/lib/motion.d.ts +4 -2
- package/dist/lib/motion.d.ts.map +1 -1
- package/dist/lib/motion.js +4 -2
- package/dist/lib/motion.js.map +1 -1
- package/dist/lib/use-animated-height.d.ts +6 -0
- package/dist/lib/use-animated-height.d.ts.map +1 -0
- package/dist/lib/use-animated-height.js +67 -0
- package/dist/lib/use-animated-height.js.map +1 -0
- package/dist/primitives/ui/autocomplete.js +1 -1
- package/dist/primitives/ui/autocomplete.js.map +1 -1
- package/dist/primitives/ui/button.js +6 -6
- package/dist/primitives/ui/button.js.map +1 -1
- package/dist/primitives/ui/card.js +1 -1
- package/dist/primitives/ui/card.js.map +1 -1
- package/dist/primitives/ui/checkbox.js +1 -1
- package/dist/primitives/ui/checkbox.js.map +1 -1
- package/dist/primitives/ui/combobox.js +3 -3
- package/dist/primitives/ui/combobox.js.map +1 -1
- package/dist/primitives/ui/drawer.js +1 -1
- package/dist/primitives/ui/drawer.js.map +1 -1
- package/dist/primitives/ui/empty.js +2 -2
- package/dist/primitives/ui/empty.js.map +1 -1
- package/dist/primitives/ui/group.js +2 -2
- package/dist/primitives/ui/group.js.map +1 -1
- package/dist/primitives/ui/input-group.js +1 -1
- package/dist/primitives/ui/input-group.js.map +1 -1
- package/dist/primitives/ui/input.js +2 -2
- package/dist/primitives/ui/input.js.map +1 -1
- package/dist/primitives/ui/menu.d.ts +1 -1
- package/dist/primitives/ui/menu.d.ts.map +1 -1
- package/dist/primitives/ui/menu.js +1 -1
- package/dist/primitives/ui/menu.js.map +1 -1
- package/dist/primitives/ui/number-field.js +1 -1
- package/dist/primitives/ui/number-field.js.map +1 -1
- package/dist/primitives/ui/otp-field.js +1 -1
- package/dist/primitives/ui/otp-field.js.map +1 -1
- package/dist/primitives/ui/popover.js +1 -1
- package/dist/primitives/ui/popover.js.map +1 -1
- package/dist/primitives/ui/preview-card.js +1 -1
- package/dist/primitives/ui/preview-card.js.map +1 -1
- package/dist/primitives/ui/radio-group.js +1 -1
- package/dist/primitives/ui/radio-group.js.map +1 -1
- package/dist/primitives/ui/select.js +2 -2
- package/dist/primitives/ui/select.js.map +1 -1
- package/dist/primitives/ui/sheet.d.ts +4 -3
- package/dist/primitives/ui/sheet.d.ts.map +1 -1
- package/dist/primitives/ui/sheet.js +112 -6
- package/dist/primitives/ui/sheet.js.map +1 -1
- package/dist/primitives/ui/skeleton.js +1 -1
- package/dist/primitives/ui/skeleton.js.map +1 -1
- package/dist/primitives/ui/textarea.js +2 -2
- package/dist/primitives/ui/textarea.js.map +1 -1
- package/dist/primitives/ui/toast.js +2 -2
- package/dist/primitives/ui/toast.js.map +1 -1
- package/dist/primitives/ui/toggle-group.js +1 -1
- package/dist/primitives/ui/toggle-group.js.map +1 -1
- package/dist/primitives/ui/toggle.js +1 -1
- package/dist/primitives/ui/toggle.js.map +1 -1
- package/dist/primitives/ui/toolbar.js +1 -1
- package/dist/primitives/ui/toolbar.js.map +1 -1
- package/dist/primitives/ui/tooltip.js +1 -1
- package/dist/primitives/ui/tooltip.js.map +1 -1
- package/dist/styles/extensions.css +5 -0
- package/dist/styles/hover.test.tsx +154 -0
- package/dist/styles/rtl.test.tsx +1 -1
- package/dist/styles/theme-switch-tokens.test.tsx +96 -0
- package/dist/styles/theme.css +23 -10
- package/dist/styles/tokens-artwork.css +115 -0
- package/dist/styles/tokens-charts.css +81 -0
- package/dist/styles/tokens-motion.css +60 -0
- package/dist/styles/tokens.css +81 -340
- package/dist/styles/tokens.test.tsx +40 -4
- package/eslint/restricted-classes.js +6 -0
- package/package.json +5 -1
- package/stylelint/index.d.ts +1 -1
- package/stylelint/index.js +9 -2
- package/dist/components/country-select/country-flag.d.ts.map +0 -1
- package/dist/components/country-select/country-flag.js.map +0 -1
- package/dist/components/data-grid/column-title.d.ts.map +0 -1
- package/dist/components/data-grid/column-title.js.map +0 -1
- package/dist/components/date-picker/day-label.d.ts.map +0 -1
- package/dist/components/date-picker/day-label.js.map +0 -1
- package/dist/components/date-picker/presets.d.ts.map +0 -1
- package/dist/components/date-picker/presets.js.map +0 -1
- package/dist/components/payment-logos/flag.d.ts.map +0 -1
- package/dist/components/payment-logos/flag.js.map +0 -1
- package/dist/components/select/select-combobox.d.ts.map +0 -1
- package/dist/components/select/select-combobox.js.map +0 -1
- /package/dist/components/{country-select → flag}/country-flag.d.ts +0 -0
- /package/dist/components/{country-select → flag}/country-flag.js +0 -0
- /package/dist/components/{payment-logos → flag}/flag.d.ts +0 -0
- /package/dist/{components/data-grid → lib}/column-title.d.ts +0 -0
- /package/dist/{components/data-grid → lib}/column-title.js +0 -0
package/ai/component-registry.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
# @dodopayments/ui component registry
|
|
2
2
|
|
|
3
3
|
- **Alert** (`@dodopayments/ui/alert`, Feedback): A message that stays on the page (Dodo Nest Alert), tinted by `tone`. `size="inline"` is a note inside
|
|
4
|
-
- **Area Chart** (`@dodopayments/ui/area-chart`, Charts): A metric over time as a filled area, on the bklit `AreaChart` primitive (visx). Compose it from
|
|
4
|
+
- **Area Chart** (`@dodopayments/ui/area-chart`, Charts): **Deprecated** since 1.8.0. A metric over time as a filled area, on the bklit `AreaChart` primitive (visx). Compose it from
|
|
5
5
|
- **Avatar** (`@dodopayments/ui/avatar`, Data display): A round profile picture with an initials fallback, built on the `Avatar` primitive. Compose it from
|
|
6
6
|
- **Badge** (`@dodopayments/ui/badge`, Data display): A short status or label, one or two words, in eight tones: five for status and neutral labels, three (orange, pink,
|
|
7
7
|
- **Featured Icon** (`@dodopayments/ui/featured-icon`, Data display): A 32px (or 20px at `size="sm"`) tile that shows what a card, dialog or empty state is about, in eight tones. Not interactive, and
|
|
8
|
-
- **Breadcrumb** (`@dodopayments/ui/breadcrumb`, Navigation): Shows where the current page sits in the navigation hierarchy. Renders the `Breadcrumb` primitive:
|
|
9
|
-
- **Bar Chart** (`@dodopayments/ui/bar-chart`, Charts): Values per category as bars, on the bklit `BarChart` primitive (visx). Compose it from children:
|
|
8
|
+
- **Breadcrumb** (`@dodopayments/ui/breadcrumb`, Navigation): **Deprecated** since 1.8.0. Shows where the current page sits in the navigation hierarchy. Renders the `Breadcrumb` primitive:
|
|
9
|
+
- **Bar Chart** (`@dodopayments/ui/bar-chart`, Charts): **Deprecated** since 1.8.0. Values per category as bars, on the bklit `BarChart` primitive (visx). Compose it from children:
|
|
10
10
|
- **Line Chart** (`@dodopayments/ui/line-chart`, Charts): One or more metrics over time as lines, on the bklit `LineChart` primitive (visx). Compose it from
|
|
11
|
-
- **Composed Chart** (`@dodopayments/ui/composed-chart`, Charts): Several kinds of series on one time axis, on the bklit `ComposedChart` primitive (visx): columns
|
|
12
|
-
- **Scatter Chart** (`@dodopayments/ui/scatter-chart`, Charts): Values over time as dots, on the bklit `ScatterChart` primitive (visx). Compose it from
|
|
13
|
-
- **Radar Chart** (`@dodopayments/ui/radar-chart`, Charts): Several series compared over the same metrics, as polygons on a radar (spider) grid, on the bklit
|
|
14
|
-
- **Gauge Chart** (`@dodopayments/ui/gauge-chart`, Charts): One value from 0 to 100 as a row of notches, around an arc (default) or along a horizontal track
|
|
15
|
-
- **Funnel Chart** (`@dodopayments/ui/funnel-chart`, Charts): Drop-off through the stages of a flow (visited, started checkout, paid), on the bklit
|
|
16
|
-
- **Pie Chart** (`@dodopayments/ui/pie-chart`, Charts): Parts of a whole as pie or donut slices, on the bklit `PieChart` primitive (visx). Compose it from
|
|
17
|
-
- **Ring Chart** (`@dodopayments/ui/ring-chart`, Charts): Progress toward several targets as concentric rings, on the bklit `RingChart` primitive (visx).
|
|
18
|
-
- **Sunburst Chart** (`@dodopayments/ui/sunburst-chart`, Charts): A hierarchy as rings around a center, on the bklit `SunburstChart` primitive. Compose it from
|
|
19
|
-
- **Heatmap Chart** (`@dodopayments/ui/heatmap-chart`, Charts): A calendar heatmap on the bklit `HeatmapChart` primitive (visx): one column per week, one row per
|
|
20
|
-
- **Sankey Chart** (`@dodopayments/ui/sankey-chart`, Charts): A Sankey diagram on the bklit `SankeyChart` primitive (visx, d3-sankey): flows between nodes, each
|
|
11
|
+
- **Composed Chart** (`@dodopayments/ui/composed-chart`, Charts): **Deprecated** since 1.8.0. Several kinds of series on one time axis, on the bklit `ComposedChart` primitive (visx): columns
|
|
12
|
+
- **Scatter Chart** (`@dodopayments/ui/scatter-chart`, Charts): **Deprecated** since 1.8.0. Values over time as dots, on the bklit `ScatterChart` primitive (visx). Compose it from
|
|
13
|
+
- **Radar Chart** (`@dodopayments/ui/radar-chart`, Charts): **Deprecated** since 1.8.0. Several series compared over the same metrics, as polygons on a radar (spider) grid, on the bklit
|
|
14
|
+
- **Gauge Chart** (`@dodopayments/ui/gauge-chart`, Charts): **Deprecated** since 1.8.0. One value from 0 to 100 as a row of notches, around an arc (default) or along a horizontal track
|
|
15
|
+
- **Funnel Chart** (`@dodopayments/ui/funnel-chart`, Charts): **Deprecated** since 1.8.0. Drop-off through the stages of a flow (visited, started checkout, paid), on the bklit
|
|
16
|
+
- **Pie Chart** (`@dodopayments/ui/pie-chart`, Charts): **Deprecated** since 1.8.0. Parts of a whole as pie or donut slices, on the bklit `PieChart` primitive (visx). Compose it from
|
|
17
|
+
- **Ring Chart** (`@dodopayments/ui/ring-chart`, Charts): **Deprecated** since 1.8.0. Progress toward several targets as concentric rings, on the bklit `RingChart` primitive (visx).
|
|
18
|
+
- **Sunburst Chart** (`@dodopayments/ui/sunburst-chart`, Charts): **Deprecated** since 1.8.0. A hierarchy as rings around a center, on the bklit `SunburstChart` primitive. Compose it from
|
|
19
|
+
- **Heatmap Chart** (`@dodopayments/ui/heatmap-chart`, Charts): **Deprecated** since 1.8.0. A calendar heatmap on the bklit `HeatmapChart` primitive (visx): one column per week, one row per
|
|
20
|
+
- **Sankey Chart** (`@dodopayments/ui/sankey-chart`, Charts): **Deprecated** since 1.8.0. A Sankey diagram on the bklit `SankeyChart` primitive (visx, d3-sankey): flows between nodes, each
|
|
21
21
|
- **Choropleth Chart** (`@dodopayments/ui/choropleth-chart`, Charts): A choropleth map on the bklit `ChoroplethChart` primitive (visx geo, Mercator projection): one
|
|
22
22
|
- **Retention Matrix** (`@dodopayments/ui/retention-matrix`, Charts): How many customers of each monthly cohort are still active in the months after they joined, drawn the way the
|
|
23
23
|
- **Comparison Bars** (`@dodopayments/ui/comparison-bars`, Charts): Categories compared with the previous period, as the dashboard's analytics draw them (Payments breakdown,
|
|
24
24
|
- **Button** (`@dodopayments/ui/button`, Actions): Triggers an action. Renders the `Button` primitive on Base UI `Button`, which always has button
|
|
25
|
-
- **Button group** (`@dodopayments/ui/button-group`, Actions): Joins buttons into one control: a split button (a primary action beside a `Menu` of related ones,
|
|
25
|
+
- **Button group** (`@dodopayments/ui/button-group`, Actions): **Deprecated** since 1.8.0. Joins buttons into one control: a split button (a primary action beside a `Menu` of related ones,
|
|
26
26
|
- **Chart** (`@dodopayments/ui/chart`, Charts): The frame every dodo chart renders around its plot: a `role="figure"` box named by `label`, as wide
|
|
27
|
-
- **Chart Legend** (`@dodopayments/ui/chart-legend`, Charts): A list legend for a chart: one row per item with a colour dot, the label and the value. Set
|
|
27
|
+
- **Chart Legend** (`@dodopayments/ui/chart-legend`, Charts): **Deprecated** since 1.8.0. A list legend for a chart: one row per item with a colour dot, the label and the value. Set
|
|
28
28
|
- **Chart Tooltip** (`@dodopayments/ui/chart-tooltip`, Charts): The hover layer of a chart: a vertical crosshair, a dot on each series, a floating panel with one
|
|
29
29
|
- **Card** (`@dodopayments/ui/card`, Layout): The section card (Dodo Nest Card): a grey tray around an optional `CardHeader` strip (`CardTitle` with an
|
|
30
30
|
- **Date picker** (`@dodopayments/ui/date-picker`, Forms): The Dodo Nest Date picker: the calendar panel itself, without a trigger (put it in a `Popover` under a Button, or
|
|
@@ -32,18 +32,19 @@
|
|
|
32
32
|
- **Copy button** (`@dodopayments/ui/copy-button`, Actions): Button that copies `content` to the clipboard, composed on the `Button` primitive: icon-only, or with
|
|
33
33
|
- **Data table** (`@dodopayments/ui/data-grid`, Data display): The Dodo Nest Data table, driven by a TanStack Table v8 instance: the column headers on a grey tray,
|
|
34
34
|
- **Checkbox** (`@dodopayments/ui/checkbox`, Forms): A box the user ticks to turn an option on or off. Renders the `Checkbox` primitive on Base UI
|
|
35
|
-
- **Container** (`@dodopayments/ui/container`, Layout): Composite (the primitives have no Container): layout only, on the Tailwind spacing scale.
|
|
35
|
+
- **Container** (`@dodopayments/ui/container`, Layout): **Deprecated** since 1.8.0. Composite (the primitives have no Container): layout only, on the Tailwind spacing scale.
|
|
36
36
|
- **Country select** (`@dodopayments/ui/country-select`, Forms): Searchable country picker. Shows each country's flag and name; typing filters by name or exact
|
|
37
37
|
- **Currency select** (`@dodopayments/ui/currency-select`, Forms): Searchable currency picker. Each option shows the issuing country's flag (the EU flag for EUR, a globe
|
|
38
|
-
- **Color input** (`@dodopayments/ui/color-input`, Forms): A colour field: a swatch that opens the browser's colour picker, beside a text field for a hex.
|
|
39
|
-
- **Time zone select** (`@dodopayments/ui/timezone-select`, Forms): Searchable IANA time zone picker. Each option shows the zone and its current GMT offset; typing
|
|
38
|
+
- **Color input** (`@dodopayments/ui/color-input`, Forms): **Deprecated** since 1.8.0. A colour field: a swatch that opens the browser's colour picker, beside a text field for a hex.
|
|
39
|
+
- **Time zone select** (`@dodopayments/ui/timezone-select`, Forms): **Deprecated** since 1.8.0. Searchable IANA time zone picker. Each option shows the zone and its current GMT offset; typing
|
|
40
40
|
- **Collapsible** (`@dodopayments/ui/collapsible`, Layout): Shows and hides a section of content: the `Collapsible` primitive on Base UI `Collapsible`. Compose it
|
|
41
41
|
- **Scaled frame** (`@dodopayments/ui/scaled-frame`, Layout): Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout
|
|
42
42
|
- **Dialog** (`@dodopayments/ui/dialog`, Overlays): The dialog (Dodo Nest Dialog): portal + scrim + a grey tray around a white panel, with the close button
|
|
43
|
-
- **Drawer** (`@dodopayments/ui/drawer`, Overlays): The drawer: portal + scrim + popup, docked to the bottom edge with a drag handle and a close button. A grey tray
|
|
44
|
-
- **Direction Provider** (`@dodopayments/ui/direction-provider`, Utilities): Sets the reading direction for every component inside: keyboard navigation (arrow keys in menus,
|
|
43
|
+
- **Drawer** (`@dodopayments/ui/drawer`, Overlays): **Deprecated** since 1.8.0. Use Sheet instead. The drawer: portal + scrim + popup, docked to the bottom edge with a drag handle and a close button. A grey tray
|
|
44
|
+
- **Direction Provider** (`@dodopayments/ui/direction-provider`, Utilities): **Deprecated** since 1.8.0. Sets the reading direction for every component inside: keyboard navigation (arrow keys in menus,
|
|
45
45
|
- **Empty** (`@dodopayments/ui/empty`, Feedback): What a page, card or table shows when there is nothing yet (Dodo Nest Empty state): an optional Featured icon
|
|
46
46
|
- **Field** (`@dodopayments/ui/field`, Forms): Groups a label, description, control and error message and wires them together: the label and
|
|
47
|
+
- **Required mark** (`@dodopayments/ui/required-mark`, Forms): **Beta**: the API may still change in a minor release. Decorative required marker shared by `Label` and `FieldLabel`. Hidden from assistive
|
|
47
48
|
- **Form** (`@dodopayments/ui/form`, Forms): Native `<form>` (the `Form` primitive on Base UI `Form`) that validates the `Field`s inside it on submit.
|
|
48
49
|
- **Form field** (`@dodopayments/ui/form-field`, Forms): react-hook-form adapter for `Field`. Registers the field through RHF's `Controller` and renders
|
|
49
50
|
- **File Upload** (`@dodopayments/ui/file-upload`, Forms): Dropzone for picking files: click (or Enter / Space) opens the file picker, and files can be
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
- **Grid** (`@dodopayments/ui/grid`, Layout): Composite (the primitives have no Grid): layout only, on the Tailwind spacing scale.
|
|
52
53
|
- **Copyable ID** (`@dodopayments/ui/copyable-id`, Data display): An ID or secret the merchant can copy, in Geist Mono 12: the Dodo Nest Copyable ID. `inline` (default) for rails,
|
|
53
54
|
- **Money** (`@dodopayments/ui/money`, Data display): A formatted amount from integer minor units and an ISO 4217 code: the decimals follow the
|
|
54
|
-
- **FX Conversion** (`@dodopayments/ui/fx-conversion`, Data display): A currency conversion with the settlement amount first: the converted `to` amount as the primary
|
|
55
|
+
- **FX Conversion** (`@dodopayments/ui/fx-conversion`, Data display): **Deprecated** since 1.8.0. A currency conversion with the settlement amount first: the converted `to` amount as the primary
|
|
55
56
|
- **Input** (`@dodopayments/ui/input`, Forms): The Dodo Nest Input. Lets the merchant type a value: one line (text, search, URLs, phone), several lines
|
|
56
57
|
- **Input group** (`@dodopayments/ui/input-group`, Forms): One bordered field holding inputs, text addons and buttons (primitive `InputGroup`): prefixes and
|
|
57
58
|
- **Kbd** (`@dodopayments/ui/kbd`, Typography): A keyboard key, e.g. The `⌘K` hint next to a search field: the `Kbd` primitive. Renders a `<kbd>`;
|
|
@@ -67,13 +68,15 @@
|
|
|
67
68
|
- **App top bar** (`@dodopayments/ui/app-top-bar`, Navigation): The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command
|
|
68
69
|
- **Radio Group** (`@dodopayments/ui/radio-group`, Forms): A set of mutually exclusive options: exactly one `Radio` can be selected. Built on the primitives
|
|
69
70
|
- **Select** (`@dodopayments/ui/select`, Forms): The field (Figma `container`) that opens the list: put a `SelectValue` inside. 36 tall, or 28 with `size="sm"`; the caret turns up
|
|
71
|
+
- **Combobox** (`@dodopayments/ui/combobox`, Forms): **Beta**: the API may still change in a minor release. Internal: the engine of `Select` with `searchable` or `multiple`, and of `Input type="chips"` with `suggestions`.
|
|
70
72
|
- **Sheet** (`@dodopayments/ui/sheet`, Overlays): The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading
|
|
71
73
|
- **Sidebar** (`@dodopayments/ui/sidebar`, Navigation): The app sidebar (Dodo Nest Sidebar), on the `Sidebar` primitive. From 1024px it docks to the start edge (the
|
|
72
74
|
- **Skeleton** (`@dodopayments/ui/skeleton`, Feedback): A grey placeholder shown while content loads (Dodo Nest Skeleton), sized like the thing it replaces: `shape="line"`
|
|
73
|
-
- **Slider** (`@dodopayments/ui/slider`, Forms): Picks a number, or a range with two thumbs, by dragging or with the keyboard: the Dodo Nest Slider. A 4px
|
|
75
|
+
- **Slider** (`@dodopayments/ui/slider`, Forms): **Deprecated** since 1.8.0. Picks a number, or a range with two thumbs, by dragging or with the keyboard: the Dodo Nest Slider. A 4px
|
|
74
76
|
- **Spinner** (`@dodopayments/ui/spinner`, Feedback): Loading indicator for a wait with no known layout or progress (Dodo Nest Spinner): a 20 × 20 ring,
|
|
75
77
|
- **Navigation progress** (`@dodopayments/ui/navigation-progress`, Feedback): Navigation progress: a 2px bar in the brand green (Content/Brand-primary) fixed across the very top
|
|
76
78
|
- **Text Shimmer** (`@dodopayments/ui/text-shimmer`, Typography): Text with a highlight sweeping across it, for "in progress" labels such as "Generating report...".
|
|
79
|
+
- **Switch transition** (`@dodopayments/ui/switch-transition`, Feedback): The screen a switch of mode or business shows while the dashboard reloads its data: a slow Paper mesh
|
|
77
80
|
- **Switch** (`@dodopayments/ui/switch`, Forms): An on/off toggle for settings that take effect immediately. Renders the `Switch` primitive (Base UI): a
|
|
78
81
|
- **Segmented control** (`@dodopayments/ui/segmented-control`, Actions): Switches between 2–3 views or values of the same thing (Dodo Nest Segmented control): a chart range
|
|
79
82
|
- **Toast** (`@dodopayments/ui/toast`, Feedback): Renders the toasts queued with `toast.success()`, `toast.error()`, `toast.info()` and `toast.loading()` (and the
|
|
@@ -81,44 +84,45 @@
|
|
|
81
84
|
- **Test Mode Banner** (`@dodopayments/ui/test-mode-banner`, Feedback): Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes
|
|
82
85
|
- **Icon Morph** (`@dodopayments/ui/icon-morph`, Actions): A button whose icon morphs between two or more states on press, e.g. sun / moon for a theme
|
|
83
86
|
- **Command palette** (`@dodopayments/ui/command`, Overlays): A searchable list of commands: the `Command` primitive, an inline Base UI `Autocomplete` that is
|
|
84
|
-
- **Context menu** (`@dodopayments/ui/context-menu`, Overlays): Root of a context menu: a menu that opens at the pointer on right-click, or on a long press with
|
|
87
|
+
- **Context menu** (`@dodopayments/ui/context-menu`, Overlays): **Deprecated** since 1.8.0. Use Menu instead. Root of a context menu: a menu that opens at the pointer on right-click, or on a long press with
|
|
85
88
|
- **List item** (`@dodopayments/ui/list-item`, Data display): One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line
|
|
86
89
|
- **List toolbar** (`@dodopayments/ui/list-toolbar`, Data display): The row above every Data table (Dodo Nest List toolbar): search, a count or a Refresh button on the left, every
|
|
87
90
|
- **Leaderboard** (`@dodopayments/ui/leaderboard`, Data display): Top customers by spend (Dodo Nest Leaderboard): a podium of the top three (one joined block of white cells
|
|
88
91
|
- **Milestone** (`@dodopayments/ui/milestone`, Data display): A milestone on the Milestones page (Design File › Merchant Milestones). `state="achieved"` is a reached milestone:
|
|
89
|
-
- **Sale share card** (`@dodopayments/ui/sale-share-card`, Data display): A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the
|
|
92
|
+
- **Sale share card** (`@dodopayments/ui/sale-share-card`, Data display): **Deprecated** since 1.8.0. A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the
|
|
90
93
|
- **Chart share card** (`@dodopayments/ui/chart-share-card`, Data display): An analytics card as an image to share (the dashboard's Analytics and Home, Share): the card at a fixed design
|
|
91
94
|
- **Setup guide** (`@dodopayments/ui/setup-guide`, Feedback): The setup guide a new business follows (the dashboard's Setup guide, opened from the top bar's Setup guide
|
|
92
|
-
- **Filter Grid** (`@dodopayments/ui/filter-grid`, Data display): Filter chips over a grid of cards, after interior.dev's filter grid
|
|
93
|
-
- **Live Activity** (`@dodopayments/ui/live-activity`, Feedback): A small pod that reports one background task, like a phone's live activity, after interior.dev's
|
|
95
|
+
- **Filter Grid** (`@dodopayments/ui/filter-grid`, Data display): **Deprecated** since 1.8.0. Filter chips over a grid of cards, after interior.dev's filter grid
|
|
96
|
+
- **Live Activity** (`@dodopayments/ui/live-activity`, Feedback): **Deprecated** since 1.8.0. A small pod that reports one background task, like a phone's live activity, after interior.dev's
|
|
94
97
|
- **Load More** (`@dodopayments/ui/load-more`, Navigation): The button at the end of a paged list, after interior.dev's load more
|
|
95
|
-
- **New Items Pill** (`@dodopayments/ui/new-items-pill`, Feedback): A floating "3 new items" pill for feeds and chats, after interior.dev's new items pill
|
|
98
|
+
- **New Items Pill** (`@dodopayments/ui/new-items-pill`, Feedback): **Deprecated** since 1.8.0. A floating "3 new items" pill for feeds and chats, after interior.dev's new items pill
|
|
96
99
|
- **Password Strength** (`@dodopayments/ui/password-strength`, Forms): A strength meter and a rule checklist for a password field, after interior.dev's password strength
|
|
97
|
-
- **Reorder List** (`@dodopayments/ui/reorder-list`, Data display): A vertical list the user can reorder by dragging or with the keyboard, after interior.dev's reorder
|
|
98
|
-
- **Task Steps** (`@dodopayments/ui/task-steps`, Feedback): A vertical checklist for a multi-step job, such as a deploy or an import, after interior.dev's task
|
|
99
|
-
- **Typing Indicator** (`@dodopayments/ui/typing-indicator`, Feedback): A chat bubble with three dots that ripple while someone types, and an "is typing" label, after
|
|
100
|
+
- **Reorder List** (`@dodopayments/ui/reorder-list`, Data display): **Deprecated** since 1.8.0. A vertical list the user can reorder by dragging or with the keyboard, after interior.dev's reorder
|
|
101
|
+
- **Task Steps** (`@dodopayments/ui/task-steps`, Feedback): **Deprecated** since 1.8.0. A vertical checklist for a multi-step job, such as a deploy or an import, after interior.dev's task
|
|
102
|
+
- **Typing Indicator** (`@dodopayments/ui/typing-indicator`, Feedback): **Deprecated** since 1.8.0. A chat bubble with three dots that ripple while someone types, and an "is typing" label, after
|
|
100
103
|
- **Value Flash** (`@dodopayments/ui/value-flash`, Data display): A number that flashes when it changes, for live prices, balances and counters. After
|
|
101
|
-
- **Wizard Steps** (`@dodopayments/ui/wizard-steps`, Navigation): A multi-step form with a numbered rail, a sliding panel and Back / Next buttons, after interior.dev's
|
|
104
|
+
- **Wizard Steps** (`@dodopayments/ui/wizard-steps`, Navigation): **Deprecated** since 1.8.0. A multi-step form with a numbered rail, a sliding panel and Back / Next buttons, after interior.dev's
|
|
102
105
|
- **Timestamp** (`@dodopayments/ui/timestamp`, Data display): A timestamp that reveals the exact time on hover, focus or tap: the trigger shows the time in
|
|
103
106
|
- **Tooltip** (`@dodopayments/ui/tooltip`, Overlays): The tooltip bubble (primitive `TooltipPopup`). Keep it to one short sentence; max width is 280px.
|
|
104
107
|
- **Page header** (`@dodopayments/ui/page-header`, Navigation): The title row at the top of every dashboard page (Dodo Nest Page header). `size="sm"` shrinks the title and
|
|
105
108
|
- **Order Summary** (`@dodopayments/ui/order-summary`, Blocks): Checkout order summary, ported from the checkout and the customer portal: product rows
|
|
106
109
|
- **Details Panel** (`@dodopayments/ui/details-panel`, Blocks): Read-only facts of a record as labelled values grouped in sections, ported from the dashboard's
|
|
107
|
-
- **Invoice Document** (`@dodopayments/ui/invoice-document`, Blocks): An invoice as its PDF prints, ported from the dashboard's invoice preview: A4 at 72 dpi (595 wide,
|
|
108
|
-
- **Payment Result** (`@dodopayments/ui/payment-result`, Blocks): Receipt card for the page a customer lands on after paying, ported from the checkout status page:
|
|
110
|
+
- **Invoice Document** (`@dodopayments/ui/invoice-document`, Blocks): **Deprecated** since 1.8.0. An invoice as its PDF prints, ported from the dashboard's invoice preview: A4 at 72 dpi (595 wide,
|
|
111
|
+
- **Payment Result** (`@dodopayments/ui/payment-result`, Blocks): **Deprecated** since 1.8.0. Receipt card for the page a customer lands on after paying, ported from the checkout status page:
|
|
109
112
|
- **Celebration Dialog** (`@dodopayments/ui/celebration-dialog`, Blocks): The dialog that marks a milestone, as the dashboard shows when setup reaches 100% in live mode: a 296px hero of
|
|
110
113
|
- **Subscription Card** (`@dodopayments/ui/subscription-card`, Blocks): A customer's subscription in the customer portal: name, add-ons and business, the payment method in the top
|
|
111
114
|
- **Payment Method List** (`@dodopayments/ui/payment-method-list`, Blocks): Card listing saved payment methods or bank accounts, after the customer portal's payment methods
|
|
112
|
-
- **Plan Picker** (`@dodopayments/ui/plan-picker`, Blocks): Plan chooser for checkout and change-plan flows, ported from the checkout product collection and
|
|
113
|
-
- **Proration Preview** (`@dodopayments/ui/proration-preview`, Blocks): What a plan change costs, ported from the customer portal's change-plan sheet: the current and
|
|
115
|
+
- **Plan Picker** (`@dodopayments/ui/plan-picker`, Blocks): **Deprecated** since 1.8.0. Plan chooser for checkout and change-plan flows, ported from the checkout product collection and
|
|
116
|
+
- **Proration Preview** (`@dodopayments/ui/proration-preview`, Blocks): **Deprecated** since 1.8.0. What a plan change costs, ported from the customer portal's change-plan sheet: the current and
|
|
114
117
|
- **Stat Card** (`@dodopayments/ui/stat-card`, Blocks): A static metric (Dodo Nest Stat card): the label on a grey strip, the number in a white panel, and an optional
|
|
115
118
|
- **Settings Section** (`@dodopayments/ui/settings-section`, Blocks): A card of related settings, ported from the dashboard's settings pages: a heading with a
|
|
116
119
|
- **Activity timeline** (`@dodopayments/ui/activity-timeline`, Blocks): Events over time on payment and customer detail pages and the blocklist log (Dodo Nest Activity
|
|
117
120
|
- **Auth Card** (`@dodopayments/ui/auth-card`, Blocks): Sign-in card, ported from the dashboard login page and the customer portal login: a logo, a
|
|
118
|
-
- **Product Card** (`@dodopayments/ui/product-card`, Blocks): Storefront product card, ported from the Dodo store front: a square blur-up photo (or
|
|
121
|
+
- **Product Card** (`@dodopayments/ui/product-card`, Blocks): **Deprecated** since 1.8.0. Storefront product card, ported from the Dodo store front: a square blur-up photo (or
|
|
119
122
|
- **Record Header** (`@dodopayments/ui/record-header`, Blocks): Hero of a record's detail page (a payment, customer or subscription), not the page title: a
|
|
120
123
|
- **Brand logos** (`@dodopayments/ui/brand-logos`, Brand): A brand's mark at 16px (size it with `size-*`), e.g. the provider type of a workload identity provider. Black or
|
|
121
124
|
- **Payment logos & flags** (`@dodopayments/ui/payment-logos`, Brand): The official logo of a card network, wallet, bank method, BNPL or crypto, 33 × 22 (detail pages, settings) or
|
|
125
|
+
- **Flag** (`@dodopayments/ui/flag`, Brand): **Beta**: the API may still change in a minor release. A country flag for a currency or a country: the Nucleo flag, 20 × 14 with its corners clipped to 2, no
|
|
122
126
|
- **Card Field** (`@dodopayments/ui/card-field`, Forms): PCI-sensitive card form composing Input/InputGroup and Field errors. Use only when your integration permits raw card inputs, not as a substitute for PSP-hosted fields.
|
|
123
|
-
- **Wallet Buttons** (`@dodopayments/ui/wallet-buttons`, Forms): Express checkout buttons for Apple Pay, Google Pay and Amazon Pay in the brands' black (white in dark mode) style,
|
|
124
|
-
- **Checkout Page** (`@dodopayments/ui/checkout-page`, Blocks): Two-column hosted checkout layout, after the Dodo checkout: the merchant brand and order summary on
|
|
127
|
+
- **Wallet Buttons** (`@dodopayments/ui/wallet-buttons`, Forms): **Deprecated** since 1.8.0. Express checkout buttons for Apple Pay, Google Pay and Amazon Pay in the brands' black (white in dark mode) style,
|
|
128
|
+
- **Checkout Page** (`@dodopayments/ui/checkout-page`, Blocks): **Deprecated** since 1.8.0. Two-column hosted checkout layout, after the Dodo checkout: the merchant brand and order summary on
|
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command
|
|
4
4
|
palette), Dodo Games, Milestones (Setup guide while the business is setting up), Dodo AI, chat, theme,
|
|
5
|
-
notifications and the account on the right. Below a 672px bar it collapses: a menu button opens the sidebar,
|
|
6
|
-
search becomes an icon
|
|
5
|
+
notifications and the account on the right. Below a 672px bar it collapses as old-main's phone bar: a menu button opens the sidebar,
|
|
6
|
+
search becomes an icon, Setup guide, Dodo AI and chat stay as buttons, Games and Milestones leave the bar and the
|
|
7
|
+
theme moves into the account menu (`AppTopBarThemeItem`). It has no fill: put it first in the main panel.
|
|
7
8
|
|
|
8
9
|
```tsx
|
|
9
|
-
import { AppTopBar, AppTopBarGamesButton, AppTopBarMilestonesRing, AppTopBarSupportItem } from "@dodopayments/ui/app-top-bar";
|
|
10
|
+
import { AppTopBar, AppTopBarGamesButton, AppTopBarMilestonesRing, AppTopBarSupportItem, AppTopBarThemeItem } from "@dodopayments/ui/app-top-bar";
|
|
10
11
|
```
|
|
11
12
|
|
|
12
13
|
## AppTopBar
|
|
13
14
|
|
|
14
15
|
The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command
|
|
15
16
|
palette), Dodo Games, Milestones (Setup guide while the business is setting up), Dodo AI, chat, theme,
|
|
16
|
-
notifications and the account on the right. Below a 672px bar it collapses: a menu button opens the sidebar,
|
|
17
|
-
search becomes an icon
|
|
17
|
+
notifications and the account on the right. Below a 672px bar it collapses as old-main's phone bar: a menu button opens the sidebar,
|
|
18
|
+
search becomes an icon, Setup guide, Dodo AI and chat stay as buttons, Games and Milestones leave the bar and the
|
|
19
|
+
theme moves into the account menu (`AppTopBarThemeItem`). It has no fill: put it first in the main panel.
|
|
18
20
|
|
|
19
21
|
| Prop | Type | Default | Description |
|
|
20
22
|
| --- | --- | --- | --- |
|
|
@@ -78,6 +80,16 @@ One row of the help panel: a bordered secondary row with an icon and a label. A
|
|
|
78
80
|
| `href` | `string` | - | Makes the row a link that opens in a new tab, e.g. the docs or the Discord server. |
|
|
79
81
|
| `onClick` | `(() => void)` | - | |
|
|
80
82
|
|
|
83
|
+
## AppTopBarThemeItem
|
|
84
|
+
|
|
85
|
+
Old-main's theme item for the account menu on the mobile row, where the bar has no theme toggle: a moon and
|
|
86
|
+
"Dark mode" in light, a sun and "Light mode" in dark. Put it in `account` where it belongs; it renders nothing
|
|
87
|
+
on desktop.
|
|
88
|
+
|
|
89
|
+
| Prop | Type | Default | Description |
|
|
90
|
+
| --- | --- | --- | --- |
|
|
91
|
+
| `labels` | `{ dark?: string \| undefined; light?: string \| undefined; }` | `{ dark: "Dark mode", light: "Light mode" }` | |
|
|
92
|
+
|
|
81
93
|
## Examples
|
|
82
94
|
|
|
83
95
|
### app-top-bar/callbacks
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Area Chart
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0.
|
|
4
|
+
|
|
3
5
|
A metric over time as a filled area, on the bklit `AreaChart` primitive (visx). Compose it from
|
|
4
6
|
children: `ChartGrid`, one `Area` per series (`dataKey`), `XAxis`, `YAxis`, `ChartTooltip`,
|
|
5
7
|
`ReferenceArea`, `ChartMarkers`. Series reveal from left to right on mount; `status="loading"`
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Bar Chart
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0.
|
|
4
|
+
|
|
3
5
|
Values per category as bars, on the bklit `BarChart` primitive (visx). Compose it from children:
|
|
4
6
|
one `Bar` per series (`dataKey`), `BarXAxis` (vertical) or `BarYAxis` (horizontal), `ChartGrid`,
|
|
5
7
|
`ChartTooltip`. A vertical chart rounds its value axis up to the `YAxis` `numTicks` (else the `ChartGrid` rows),
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Button group
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0.
|
|
4
|
+
|
|
3
5
|
Joins buttons into one control: a split button (a primary action beside a `Menu` of related ones,
|
|
4
6
|
e.g. Save with Copy to live mode behind a `⋯`) or a row of related actions. The inner corners and
|
|
5
7
|
borders meet. Name the group with `aria-label` when its buttons share one purpose.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Chart Legend
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0.
|
|
4
|
+
|
|
3
5
|
A list legend for a chart: one row per item with a colour dot, the label and the value. Set
|
|
4
6
|
`showProgress` to draw each `value` against its `maxValue` as a progress bar with a percentage.
|
|
5
7
|
Rows report hover through `onHover`; pass `hoveredIndex` back to fade the other rows and to
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Checkout Page
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0.
|
|
4
|
+
|
|
3
5
|
Two-column hosted checkout layout, after the Dodo checkout: the merchant brand and order summary on
|
|
4
6
|
the start side and the payment column on the end side, both pushed against the centre line and
|
|
5
7
|
separated by a soft seam, with no card around either. The columns stack (summary first) when the
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Color input
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0.
|
|
4
|
+
|
|
3
5
|
A colour field: a swatch that opens the browser's colour picker, beside a text field for a hex.
|
|
4
6
|
Either one changes the value, so a merchant can paste a brand colour or pick one. The swatch stays
|
|
5
7
|
empty while the text is not a colour. With an empty value the browser's picker starts at black, so
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# Combobox
|
|
2
|
+
|
|
3
|
+
> **Beta**: the API may still change in a minor release.
|
|
4
|
+
|
|
5
|
+
Internal: the engine of `Select` with `searchable` or `multiple`, and of `Input type="chips"` with `suggestions`.
|
|
6
|
+
Root of a searchable select (primitive `Combobox`): users filter `items` by typing and pick one value,
|
|
7
|
+
or several with `multiple`. Items shaped `{ value, label }` show their label in the input; for
|
|
8
|
+
other shapes pass `itemToStringLabel`.
|
|
9
|
+
|
|
10
|
+
```tsx
|
|
11
|
+
import { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxChipsPresence, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue } from "@dodopayments/ui/combobox";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Combobox
|
|
15
|
+
|
|
16
|
+
Internal: the engine of `Select` with `searchable` or `multiple`, and of `Input type="chips"` with `suggestions`.
|
|
17
|
+
Root of a searchable select (primitive `Combobox`): users filter `items` by typing and pick one value,
|
|
18
|
+
or several with `multiple`. Items shaped `{ value, label }` show their label in the input; for
|
|
19
|
+
other shapes pass `itemToStringLabel`.
|
|
20
|
+
|
|
21
|
+
Also accepts Base UI props: `actionsRef`, `autoComplete`, `autoHighlight`, `defaultInputValue`, `defaultOpen`, `defaultValue`, `disabled`, `filter`, `filteredItems`, `form`, `grid`, `highlightItemOnHover`, `id`, `inline`, `inputRef`, `inputValue`, `isItemEqualToValue`, `itemToStringLabel`, `itemToStringValue`, `items`, `limit`, `locale`, `loopFocus`, `modal`, `multiple`, `name`, `onInputValueChange`, `onItemHighlighted`, `onOpenChange`, `onOpenChangeComplete`, `onValueChange`, `open`, `openOnInputClick`, `readOnly`, `required`, `value`, `virtualized`.
|
|
22
|
+
|
|
23
|
+
## ComboboxChip
|
|
24
|
+
|
|
25
|
+
One selected value inside `ComboboxChips` (primitive `ComboboxChip`), with a remove button.
|
|
26
|
+
|
|
27
|
+
| Prop | Type | Default | Description |
|
|
28
|
+
| --- | --- | --- | --- |
|
|
29
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
30
|
+
| `removeLabel` | `string` | - | Accessible name of the remove button. Defaults to `Remove <label>` for string labels, else `Remove`. |
|
|
31
|
+
| `showRemove` | `boolean` | `true` | Render a remove button after the label. |
|
|
32
|
+
|
|
33
|
+
Also accepts Base UI props: `render`.
|
|
34
|
+
|
|
35
|
+
## ComboboxChips
|
|
36
|
+
|
|
37
|
+
Field for `multiple` selection (primitive `ComboboxChips`): wraps the selected `ComboboxChip`s and a
|
|
38
|
+
`ComboboxChipsInput`, usually rendered from a `ComboboxValue` function. Rows wrap as chips are
|
|
39
|
+
added; the list is anchored to it. Chips animate like `TagInput`: a new chip scales in and the
|
|
40
|
+
others reflow. Wrap the chips in `ComboboxChipsPresence` so a removed chip also fades out.
|
|
41
|
+
|
|
42
|
+
| Prop | Type | Default | Description |
|
|
43
|
+
| --- | --- | --- | --- |
|
|
44
|
+
| `className` | `string` | - | Classes for the field-styled box around the chips and the input. |
|
|
45
|
+
| `startAddon` | `ReactNode` | - | Icon or text shown before the chips. |
|
|
46
|
+
|
|
47
|
+
Also accepts Base UI props: `render`.
|
|
48
|
+
|
|
49
|
+
## ComboboxChipsInput
|
|
50
|
+
|
|
51
|
+
The text input inside `ComboboxChips` (primitive `ComboboxChipsInput`). Fills the rest of the last row.
|
|
52
|
+
|
|
53
|
+
| Prop | Type | Default | Description |
|
|
54
|
+
| --- | --- | --- | --- |
|
|
55
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
56
|
+
| `size` | `"default" \| "sm" \| "lg"` | - | Matches the chips box height, like `Input`. |
|
|
57
|
+
|
|
58
|
+
Also accepts Base UI props: `disabled`, `render`.
|
|
59
|
+
|
|
60
|
+
## ComboboxChipsPresence
|
|
61
|
+
|
|
62
|
+
Keeps a removed `ComboboxChip` mounted while it fades out, so the other chips reflow around it (as in
|
|
63
|
+
`TagInput`). Put it inside `ComboboxChips`, around the mapped chips only, not the input.
|
|
64
|
+
|
|
65
|
+
## ComboboxContent
|
|
66
|
+
|
|
67
|
+
The floating panel (primitive `ComboboxPopup`). Holds `ComboboxEmpty` and `ComboboxList`, plus a
|
|
68
|
+
`ComboboxInput` first when the input lives inside the popup. Anchored to the input group, the
|
|
69
|
+
chips or the trigger by default.
|
|
70
|
+
|
|
71
|
+
| Prop | Type | Default | Description |
|
|
72
|
+
| --- | --- | --- | --- |
|
|
73
|
+
| `align` | `Align` | - | |
|
|
74
|
+
| `alignOffset` | `number \| OffsetFunction` | - | |
|
|
75
|
+
| `anchor` | `Element \| VirtualElement \| RefObject<Element \| null> \| (() => Element \| VirtualElement \| null) \| null` | - | |
|
|
76
|
+
| `className` | `string` | - | Classes for the popup surface. |
|
|
77
|
+
| `collisionAvoidance` | `CollisionAvoidance` | - | |
|
|
78
|
+
| `portalProps` | `ComboboxPortalProps` | - | Props of the portal, e.g. `container` to render the list inside an element. |
|
|
79
|
+
| `positionMethod` | `"fixed" \| "absolute"` | - | |
|
|
80
|
+
| `positionerProps` | `ComboboxPositionerProps` | - | Positioner options (side, align, offsets, anchor). Same as passing them directly. |
|
|
81
|
+
| `side` | `Side` | - | |
|
|
82
|
+
| `sideOffset` | `number \| OffsetFunction` | - | |
|
|
83
|
+
|
|
84
|
+
Also accepts Base UI props: `finalFocus`, `initialFocus`, `render`.
|
|
85
|
+
|
|
86
|
+
## ComboboxEmpty
|
|
87
|
+
|
|
88
|
+
Message shown when filtering leaves no items (needs `items` on the root). The element stays
|
|
89
|
+
mounted as a polite live region and renders its children only while the list is empty.
|
|
90
|
+
|
|
91
|
+
| Prop | Type | Default | Description |
|
|
92
|
+
| --- | --- | --- | --- |
|
|
93
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
94
|
+
|
|
95
|
+
Also accepts Base UI props: `render`.
|
|
96
|
+
|
|
97
|
+
## ComboboxGroup
|
|
98
|
+
|
|
99
|
+
A group of options. With grouped `items` (`{ value, items }[]`), pass the group's `items` here
|
|
100
|
+
and render them with Base UI `Combobox.Collection`.
|
|
101
|
+
|
|
102
|
+
| Prop | Type | Default | Description |
|
|
103
|
+
| --- | --- | --- | --- |
|
|
104
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
105
|
+
|
|
106
|
+
Also accepts Base UI props: `items`, `render`.
|
|
107
|
+
|
|
108
|
+
## ComboboxGroupLabel
|
|
109
|
+
|
|
110
|
+
Heading for a `ComboboxGroup`.
|
|
111
|
+
|
|
112
|
+
| Prop | Type | Default | Description |
|
|
113
|
+
| --- | --- | --- | --- |
|
|
114
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
115
|
+
|
|
116
|
+
Also accepts Base UI props: `render`.
|
|
117
|
+
|
|
118
|
+
## ComboboxInput
|
|
119
|
+
|
|
120
|
+
The search field (primitive `ComboboxInput`): a text input with optional clear and caret buttons.
|
|
121
|
+
Other props go to the `<input>`. The list is positioned against the whole group.
|
|
122
|
+
|
|
123
|
+
| Prop | Type | Default | Description |
|
|
124
|
+
| --- | --- | --- | --- |
|
|
125
|
+
| `className` | `string` | - | Classes for the field-styled control around the input (`data-slot="input-control"`). |
|
|
126
|
+
| `clearLabel` | `string` | `"Clear"` | Accessible name of the clear button. |
|
|
127
|
+
| `showClear` | `boolean` | `false` | Show a button that clears the value. Base UI only mounts it while there is a value to clear. |
|
|
128
|
+
| `showTrigger` | `boolean` | `true` | Show the caret button that opens and closes the list. |
|
|
129
|
+
| `size` | `"default" \| "sm" \| "lg"` | `"default"` | Control height, like `Input`. |
|
|
130
|
+
| `startAddon` | `ReactNode` | - | Icon or text shown inside the field before the input. |
|
|
131
|
+
| `triggerLabel` | `string` | `"Show options"` | Accessible name of the caret button. |
|
|
132
|
+
|
|
133
|
+
Also accepts Base UI props: `disabled`, `render`.
|
|
134
|
+
|
|
135
|
+
## ComboboxItem
|
|
136
|
+
|
|
137
|
+
One option (primitive `ComboboxItem`). `value` is what gets selected (usually the item object from
|
|
138
|
+
`items`); children are the visible label. A check marks selected options.
|
|
139
|
+
|
|
140
|
+
| Prop | Type | Default | Description |
|
|
141
|
+
| --- | --- | --- | --- |
|
|
142
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
143
|
+
| `description` | `ReactNode` | - | Secondary line shown under the label. |
|
|
144
|
+
|
|
145
|
+
Also accepts Base UI props: `disabled`, `index`, `nativeButton`, `onClick`, `render`, `value`.
|
|
146
|
+
|
|
147
|
+
## ComboboxLabel
|
|
148
|
+
|
|
149
|
+
Visible label for `ComboboxTrigger` (input-inside-popup pattern), styled as the `Label` primitive
|
|
150
|
+
(the primitives have no combobox label). To label `ComboboxInput`, use a `<label htmlFor>` that points at the
|
|
151
|
+
input's `id`, or `aria-label`.
|
|
152
|
+
|
|
153
|
+
| Prop | Type | Default | Description |
|
|
154
|
+
| --- | --- | --- | --- |
|
|
155
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
156
|
+
|
|
157
|
+
Also accepts Base UI props: `render`.
|
|
158
|
+
|
|
159
|
+
## ComboboxList
|
|
160
|
+
|
|
161
|
+
Scrollable list of options (primitive `ComboboxList`). Pass a render function,
|
|
162
|
+
`(item) => <ComboboxItem …/>`, to render the root's `items` (filtered as the user types), or
|
|
163
|
+
static children.
|
|
164
|
+
|
|
165
|
+
| Prop | Type | Default | Description |
|
|
166
|
+
| --- | --- | --- | --- |
|
|
167
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
168
|
+
|
|
169
|
+
Also accepts Base UI props: `render`.
|
|
170
|
+
|
|
171
|
+
## ComboboxSeparator
|
|
172
|
+
|
|
173
|
+
Divider between groups.
|
|
174
|
+
|
|
175
|
+
| Prop | Type | Default | Description |
|
|
176
|
+
| --- | --- | --- | --- |
|
|
177
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
178
|
+
|
|
179
|
+
Also accepts Base UI props: `orientation`, `render`.
|
|
180
|
+
|
|
181
|
+
## ComboboxTrigger
|
|
182
|
+
|
|
183
|
+
Select-like button for the input-inside-popup pattern: put a `ComboboxValue` inside and a
|
|
184
|
+
`ComboboxInput` (with `showTrigger={false}`) at the top of `ComboboxContent`. Primitive leaves its
|
|
185
|
+
trigger unstyled; it is rendered as an outline primitive Button, the primitive pattern for this layout.
|
|
186
|
+
|
|
187
|
+
| Prop | Type | Default | Description |
|
|
188
|
+
| --- | --- | --- | --- |
|
|
189
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
190
|
+
|
|
191
|
+
Also accepts Base UI props: `disabled`, `nativeButton`, `render`.
|
|
192
|
+
|
|
193
|
+
## ComboboxValue
|
|
194
|
+
|
|
195
|
+
Renders the selected value's label, or `placeholder` when empty. Pass a function as children to
|
|
196
|
+
render the value yourself (for example as `ComboboxChip`s with `multiple`).
|
|
197
|
+
|
|
198
|
+
Also accepts Base UI props: `placeholder`.
|
|
199
|
+
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Composed Chart
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0.
|
|
4
|
+
|
|
3
5
|
Several kinds of series on one time axis, on the bklit `ComposedChart` primitive (visx): columns
|
|
4
6
|
for one metric with a line or an area for another. It exports only the root. Take the children
|
|
5
7
|
from the other chart slugs: `SeriesBar` from `@dodopayments/ui/bar-chart`, `Line` from
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Container
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0.
|
|
4
|
+
|
|
3
5
|
Composite (the primitives have no Container): layout only, on the Tailwind spacing scale.
|
|
4
6
|
Centres page content at a max width with the responsive page gutter. Use one per page, around
|
|
5
7
|
its sections. Renders a `div`; use `render={<main />}` when it is the page's main landmark.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Context menu
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0. Use Menu instead.
|
|
4
|
+
|
|
3
5
|
Root of a context menu: a menu that opens at the pointer on right-click, or on a long press with
|
|
4
6
|
touch. Controls open state (`open`/`onOpenChange` or `defaultOpen`). Holds one
|
|
5
7
|
`ContextMenuTrigger` and one `ContextMenuContent` with the Menu parts.
|
package/ai/components/dialog.md
CHANGED
|
@@ -151,6 +151,7 @@ cancel is disabled and Escape is ignored.
|
|
|
151
151
|
| `description` | `ReactNode` | - | Explains the consequence of confirming. |
|
|
152
152
|
| `destructive` | `boolean` | `false` | Styles the confirm button and the icon as destructive. |
|
|
153
153
|
| `icon` | `ReactNode` | - | Icon shown in a Featured icon tile above the title. Defaults to an info icon (a warning icon when `destructive`); pass `null` to hide it. |
|
|
154
|
+
| `iconTone` | `"info" \| "success" \| "warning" \| "error" \| "violet" \| "neutral" \| "pink" \| "orange" \| null` | - | Tone of the icon tile, e.g. `warning` for a pause or `success` for a resume. Defaults to `error` when `destructive`, else `neutral`. |
|
|
154
155
|
| `loading` | `boolean` | - | Shows the confirm button as loading and blocks closing while work you track yourself runs, e.g. `loading={mutation.isPending}`. Once you pass it (even as `false`), confirming no longer closes the dialog unless `onConfirm` returns a promise: set `open` to `false` when the work succeeds, and leave it open to let the user retry after a failure. |
|
|
155
156
|
| `onCancel` | `(() => void)` | - | Called when the cancel button is pressed. |
|
|
156
157
|
| `onError` | `((error: unknown) => void)` | - | Receives the rejection of a promise returned by `onConfirm`. Without it, the error is passed to The global `reportError()`. |
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Direction Provider
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0.
|
|
4
|
+
|
|
3
5
|
Sets the reading direction for every component inside: keyboard navigation (arrow keys in menus,
|
|
4
6
|
tabs, sliders, radio groups and tree views follow the reading order), slider and scroll positions,
|
|
5
7
|
and the `side="start"` / `side="end"` of Sheet, Sidebar and the `-start` / `-end` Toaster
|
package/ai/components/drawer.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Drawer
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0. Use Sheet instead.
|
|
4
|
+
|
|
3
5
|
The drawer: portal + scrim + popup, docked to the bottom edge with a drag handle and a close button. A grey tray
|
|
4
6
|
with rounded top corners, like Dialog: the title and body in a white panel, the actions on the grey strip. It is
|
|
5
7
|
as tall as its content, up to the screen minus 48, and pads the bottom safe area; a focused field stays above the
|
package/ai/components/field.md
CHANGED
|
@@ -53,6 +53,7 @@ Accepts Base UI's `render` prop to swap the rendered element.
|
|
|
53
53
|
|
|
54
54
|
| Prop | Type | Default | Description |
|
|
55
55
|
| --- | --- | --- | --- |
|
|
56
|
+
| `action` | `{ label: ReactNode; onClick: () => void; disabled?: boolean \| undefined; }` | - | A boxed button at the end (Surface/Secondary with a divider), for one action on the value, such as "Generate slug". |
|
|
56
57
|
| `addon` | `ReactNode` | - | A boxed add-on at the start (Surface/Secondary with a divider), for long fixed prefixes such as a store URL. |
|
|
57
58
|
| `className` | `string` | - | Classes for the control wrapper (`data-slot="input-control"`). |
|
|
58
59
|
| `clearable` | `boolean` | `false` | With `suggestions`, shows a clear button at the end while the input has text. |
|
|
@@ -77,6 +78,7 @@ Accepts Base UI's `render` prop to swap the rendered element.
|
|
|
77
78
|
| `trailingIcon` | `ReactNode` | - | An icon after the value, e.g. a calendar on a date field. |
|
|
78
79
|
| `type` | `InputHtmlType` | - | |
|
|
79
80
|
| `unstyled` | `boolean` | - | |
|
|
81
|
+
| `variant` | `"inline" \| "field"` | `"field"` | `field` is the bordered box. `inline` reads as text in a heading row, such as a checkout group's name: no box, the value underlined, a focus ring when it is edited. |
|
|
80
82
|
|
|
81
83
|
Also accepts Base UI props: `defaultValue`, `onValueChange`, `render`, `value`.
|
|
82
84
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Filter Grid
|
|
2
2
|
|
|
3
|
+
> **Deprecated** since 1.8.0.
|
|
4
|
+
|
|
3
5
|
Filter chips over a grid of cards, after interior.dev's filter grid
|
|
4
6
|
(https://www.interior.dev/docs/filter-grid). The chips are a Base UI radio group: the arrow keys
|
|
5
7
|
move and select, and each chip shows its count. The active thumb slides between chips, cells that
|
|
@@ -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
|