@dodopayments/ui 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/component-registry.json +1579 -219
- package/ai/component-registry.md +43 -39
- package/ai/components/app-top-bar.md +17 -5
- package/ai/components/area-chart.md +2 -0
- package/ai/components/avatar.md +3 -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/data-grid.md +1 -1
- 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-toolbar.md +3 -1
- package/ai/components/live-activity.md +2 -0
- package/ai/components/new-items-pill.md +2 -0
- package/ai/components/page-header.md +13 -11
- package/ai/components/payment-logos.md +5 -4
- 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 +3 -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/segmented-control.md +14 -1
- package/ai/components/settings-section.md +2 -0
- package/ai/components/sheet.md +8 -4
- package/ai/components/sidebar.md +13 -2
- package/ai/components/slider.md +2 -0
- package/ai/components/spinner.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 +32 -16
- 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 +37 -16
- 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/avatar/avatar.d.ts +22 -1
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +13 -3
- package/dist/components/avatar/avatar.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/{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.d.ts +1 -1
- package/dist/components/data-grid/data-grid.js +4 -4
- 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-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.d.ts +3 -1
- package/dist/components/list-toolbar/list-toolbar.d.ts.map +1 -1
- package/dist/components/list-toolbar/list-toolbar.js +14 -3
- package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
- package/dist/components/page-header/page-header.d.ts +11 -7
- package/dist/components/page-header/page-header.d.ts.map +1 -1
- package/dist/components/page-header/page-header.js +34 -11
- 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/payment-logos/payment-logos.d.ts +8 -3
- package/dist/components/payment-logos/payment-logos.d.ts.map +1 -1
- package/dist/components/payment-logos/payment-logos.js +5 -5
- package/dist/components/payment-logos/payment-logos.js.map +1 -1
- package/dist/components/radio-group/radio-group.d.ts +2 -2
- package/dist/components/radio-group/radio-group.js +5 -5
- package/dist/components/radio-group/radio-group.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 +7 -1
- package/dist/components/reorder-list/reorder-list.d.ts.map +1 -1
- package/dist/components/reorder-list/reorder-list.js +11 -5
- 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/segmented-control/index.d.ts +1 -1
- package/dist/components/segmented-control/index.d.ts.map +1 -1
- package/dist/components/segmented-control/index.js +1 -1
- package/dist/components/segmented-control/index.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts +19 -0
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +28 -7
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +10 -4
- 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/index.d.ts +1 -1
- package/dist/components/sidebar/index.d.ts.map +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/index.js.map +1 -1
- package/dist/components/sidebar/sidebar.d.ts +22 -3
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.js +28 -12
- package/dist/components/sidebar/sidebar.js.map +1 -1
- package/dist/components/spinner/spinner.d.ts +12 -1
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/spinner/spinner.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/lib/segmented-control.js +2 -2
- package/dist/primitives/lib/segmented-control.js.map +1 -1
- 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/dialog.d.ts.map +1 -1
- package/dist/primitives/ui/dialog.js +4 -2
- package/dist/primitives/ui/dialog.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 +113 -7
- package/dist/primitives/ui/sheet.js.map +1 -1
- package/dist/primitives/ui/sidebar.js +2 -2
- package/dist/primitives/ui/sidebar.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/switch.d.ts +2 -2
- package/dist/primitives/ui/switch.d.ts.map +1 -1
- package/dist/primitives/ui/switch.js +2 -2
- package/dist/primitives/ui/switch.js.map +1 -1
- package/dist/primitives/ui/table.js +4 -4
- package/dist/primitives/ui/table.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 +90 -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 +113 -342
- package/dist/styles/tokens.test.tsx +187 -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
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://dodo-ui.dev/schema/component-registry.json",
|
|
3
3
|
"name": "@dodopayments/ui",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.0",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"slug": "alert",
|
|
8
8
|
"title": "Alert",
|
|
9
9
|
"category": "Feedback",
|
|
10
10
|
"status": "stable",
|
|
11
|
+
"level": "organism",
|
|
11
12
|
"description": "A message that stays on the page (Dodo Nest Alert), tinted by `tone`. `size=\"inline\"` is a note inside\ncontent, `size=\"banner\"` the status of a whole section (a tray with a white panel and a Featured icon),\nand `size=\"page\"` a full-width strip under the top bar. `children` is the message. Not a live region by\ndefault; pass `role=\"alert\"` when it appears in response to an error the user must hear about.",
|
|
12
13
|
"importPath": "@dodopayments/ui/alert",
|
|
13
14
|
"exports": [
|
|
@@ -140,7 +141,11 @@
|
|
|
140
141
|
"slug": "area-chart",
|
|
141
142
|
"title": "Area Chart",
|
|
142
143
|
"category": "Charts",
|
|
143
|
-
"status": "
|
|
144
|
+
"status": "deprecated",
|
|
145
|
+
"deprecated": {
|
|
146
|
+
"since": "1.8.0"
|
|
147
|
+
},
|
|
148
|
+
"level": "molecule",
|
|
144
149
|
"description": "A metric over time as a filled area, on the bklit `AreaChart` primitive (visx). Compose it from\nchildren: `ChartGrid`, one `Area` per series (`dataKey`), `XAxis`, `YAxis`, `ChartTooltip`,\n`ReferenceArea`, `ChartMarkers`. Series reveal from left to right on mount; `status=\"loading\"`\ndraws a pulsing placeholder with `loadingLabel`. Rows need a `Date` under `xDataKey` (default\n`\"date\"`), oldest first. The chart is as wide as its container; height comes from `aspectRatio`\n(default `\"2 / 1\"`) or a height class.",
|
|
145
150
|
"importPath": "@dodopayments/ui/area-chart",
|
|
146
151
|
"exports": [
|
|
@@ -604,6 +609,7 @@
|
|
|
604
609
|
"title": "Avatar",
|
|
605
610
|
"category": "Data display",
|
|
606
611
|
"status": "stable",
|
|
612
|
+
"level": "atom",
|
|
607
613
|
"description": "A round profile picture with an initials fallback, built on the `Avatar` primitive. Compose it from\n`AvatarImage` and `AvatarFallback`; inside an `AvatarGroup` it takes the group's size unless `size` is set.",
|
|
608
614
|
"importPath": "@dodopayments/ui/avatar",
|
|
609
615
|
"exports": [
|
|
@@ -662,6 +668,24 @@
|
|
|
662
668
|
],
|
|
663
669
|
"default": "\"md\""
|
|
664
670
|
},
|
|
671
|
+
{
|
|
672
|
+
"name": "variant",
|
|
673
|
+
"type": "\"person\" | \"logo\"",
|
|
674
|
+
"required": false,
|
|
675
|
+
"description": "",
|
|
676
|
+
"source": "dodo",
|
|
677
|
+
"values": [
|
|
678
|
+
{
|
|
679
|
+
"value": "person",
|
|
680
|
+
"description": "A person: a circle. The default."
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"value": "logo",
|
|
684
|
+
"description": "A business or store logo: a square with 8px corners."
|
|
685
|
+
}
|
|
686
|
+
],
|
|
687
|
+
"default": "\"person\""
|
|
688
|
+
},
|
|
665
689
|
{
|
|
666
690
|
"name": "render",
|
|
667
691
|
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, AvatarRootState>",
|
|
@@ -792,6 +816,24 @@
|
|
|
792
816
|
}
|
|
793
817
|
],
|
|
794
818
|
"default": "\"md\""
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"name": "variant",
|
|
822
|
+
"type": "\"person\" | \"logo\"",
|
|
823
|
+
"required": false,
|
|
824
|
+
"description": "",
|
|
825
|
+
"source": "dodo",
|
|
826
|
+
"values": [
|
|
827
|
+
{
|
|
828
|
+
"value": "person",
|
|
829
|
+
"description": "A person: a circle. The default."
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"value": "logo",
|
|
833
|
+
"description": "A business or store logo: a square with 8px corners."
|
|
834
|
+
}
|
|
835
|
+
],
|
|
836
|
+
"default": "\"person\""
|
|
795
837
|
}
|
|
796
838
|
]
|
|
797
839
|
},
|
|
@@ -912,6 +954,24 @@
|
|
|
912
954
|
}
|
|
913
955
|
],
|
|
914
956
|
"default": "\"md\""
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"name": "variant",
|
|
960
|
+
"type": "\"person\" | \"logo\"",
|
|
961
|
+
"required": false,
|
|
962
|
+
"description": "",
|
|
963
|
+
"source": "dodo",
|
|
964
|
+
"values": [
|
|
965
|
+
{
|
|
966
|
+
"value": "person",
|
|
967
|
+
"description": "A person: a circle. The default."
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"value": "logo",
|
|
971
|
+
"description": "A business or store logo: a square with 8px corners."
|
|
972
|
+
}
|
|
973
|
+
],
|
|
974
|
+
"default": "\"person\""
|
|
915
975
|
}
|
|
916
976
|
]
|
|
917
977
|
}
|
|
@@ -941,6 +1001,7 @@
|
|
|
941
1001
|
"title": "Badge",
|
|
942
1002
|
"category": "Data display",
|
|
943
1003
|
"status": "stable",
|
|
1004
|
+
"level": "atom",
|
|
944
1005
|
"description": "A short status or label, one or two words, in eight tones: five for status and neutral labels, three (orange, pink,\nviolet) for categories. Not interactive. A fixed width truncates the label with an ellipsis. A tone change crossfades\nthe pill and its dot in `duration-quick`. With `status` (and `kind`) it shows a Dodo API status: the tone, label and\nicon come from the status map, and a later status change swaps the label in with a short blurred rise.",
|
|
945
1006
|
"importPath": "@dodopayments/ui/badge",
|
|
946
1007
|
"exports": [
|
|
@@ -1169,6 +1230,7 @@
|
|
|
1169
1230
|
"title": "Featured Icon",
|
|
1170
1231
|
"category": "Data display",
|
|
1171
1232
|
"status": "stable",
|
|
1233
|
+
"level": "atom",
|
|
1172
1234
|
"description": "A 32px (or 20px at `size=\"sm\"`) tile that shows what a card, dialog or empty state is about, in eight tones. Not interactive, and\ndecorative by default (`aria-hidden`): the title next to it says what it is. To give the tile a name of its own,\npass `role=\"img\"`, `aria-label` and `aria-hidden={false}`.",
|
|
1173
1235
|
"importPath": "@dodopayments/ui/featured-icon",
|
|
1174
1236
|
"exports": [
|
|
@@ -1278,7 +1340,11 @@
|
|
|
1278
1340
|
"slug": "breadcrumb",
|
|
1279
1341
|
"title": "Breadcrumb",
|
|
1280
1342
|
"category": "Navigation",
|
|
1281
|
-
"status": "
|
|
1343
|
+
"status": "deprecated",
|
|
1344
|
+
"deprecated": {
|
|
1345
|
+
"since": "1.8.0"
|
|
1346
|
+
},
|
|
1347
|
+
"level": "atom",
|
|
1282
1348
|
"description": "Shows where the current page sits in the navigation hierarchy. Renders the `Breadcrumb` primitive:\na `<nav>` landmark labelled \"Breadcrumb\" (override with `aria-label`) that holds a `BreadcrumbList`.",
|
|
1283
1349
|
"importPath": "@dodopayments/ui/breadcrumb",
|
|
1284
1350
|
"exports": [
|
|
@@ -1371,7 +1437,11 @@
|
|
|
1371
1437
|
"slug": "bar-chart",
|
|
1372
1438
|
"title": "Bar Chart",
|
|
1373
1439
|
"category": "Charts",
|
|
1374
|
-
"status": "
|
|
1440
|
+
"status": "deprecated",
|
|
1441
|
+
"deprecated": {
|
|
1442
|
+
"since": "1.8.0"
|
|
1443
|
+
},
|
|
1444
|
+
"level": "molecule",
|
|
1375
1445
|
"description": "Values per category as bars, on the bklit `BarChart` primitive (visx). Compose it from children:\none `Bar` per series (`dataKey`), `BarXAxis` (vertical) or `BarYAxis` (horizontal), `ChartGrid`,\n`ChartTooltip`. A vertical chart rounds its value axis up to the `YAxis` `numTicks` (else the `ChartGrid` rows),\nso the top of the plot is a labelled line. Several `Bar`s group side by side; `stacked` stacks them. `orientation=\"horizontal\"`\nputs the categories on the y-axis. `BarSquares` draws a series as square cells, and\n`BarDepthBack` / `BarDepthFront` add a 3D glass look. Rows are objects with a category under\n`xDataKey` (default `\"name\"`) and a number under each `dataKey`. Bars grow from the baseline on\nmount. `status=\"loading\"` draws a shimmer skeleton (no data needed) and sets `aria-busy` on the\nfigure. The chart is as wide as its container; height comes from `aspectRatio` (default `\"2 / 1\"`)\nor a height class.",
|
|
1376
1446
|
"importPath": "@dodopayments/ui/bar-chart",
|
|
1377
1447
|
"exports": [
|
|
@@ -2129,6 +2199,7 @@
|
|
|
2129
2199
|
"title": "Line Chart",
|
|
2130
2200
|
"category": "Charts",
|
|
2131
2201
|
"status": "stable",
|
|
2202
|
+
"level": "molecule",
|
|
2132
2203
|
"description": "One or more metrics over time as lines, on the bklit `LineChart` primitive (visx). Compose it from\nchildren: `ChartGrid`, one `Line` per series (`dataKey`), `XAxis`, `YAxis`, `ChartTooltip`,\n`ReferenceArea`, `ChartMarkers`. For a series that crosses zero add `ProfitLossLine`; to extend a\nseries past today add `ProjectionLine` and `LineSeriesTerminalMarker`. Series reveal from left to\nright on mount, and new `data` tweens the y-domain without a new reveal. `status=\"loading\"` draws\na pulsing placeholder with `loadingLabel`. Rows need a `Date` under `xDataKey` (default `\"date\"`),\noldest first. The chart is as wide as its container; height comes from `aspectRatio` (default\n`\"2 / 1\"`) or a height class.",
|
|
2133
2204
|
"importPath": "@dodopayments/ui/line-chart",
|
|
2134
2205
|
"exports": [
|
|
@@ -3216,7 +3287,11 @@
|
|
|
3216
3287
|
"slug": "composed-chart",
|
|
3217
3288
|
"title": "Composed Chart",
|
|
3218
3289
|
"category": "Charts",
|
|
3219
|
-
"status": "
|
|
3290
|
+
"status": "deprecated",
|
|
3291
|
+
"deprecated": {
|
|
3292
|
+
"since": "1.8.0"
|
|
3293
|
+
},
|
|
3294
|
+
"level": "molecule",
|
|
3220
3295
|
"description": "Several kinds of series on one time axis, on the bklit `ComposedChart` primitive (visx): columns\nfor one metric with a line or an area for another. It exports only the root. Take the children\nfrom the other chart slugs: `SeriesBar` from `@dodopayments/ui/bar-chart`, `Line` from\n`@dodopayments/ui/line-chart`, `Area` from `@dodopayments/ui/area-chart`, and `ChartGrid`,\n`XAxis`, `YAxis` from `@dodopayments/ui/chart` and `ChartTooltip` from\n`@dodopayments/ui/chart-tooltip`. `barSize`, `maxBarSize`, `barGap`, `stacked` and `stackGap`\nlay out the columns; lines and areas are never stacked. Rows need a `Date` under `xDataKey`\n(default `\"date\"`), oldest first. The chart is as wide as its container; height comes from\n`aspectRatio` (default `\"2 / 1\"`) or a height class.",
|
|
3221
3296
|
"importPath": "@dodopayments/ui/composed-chart",
|
|
3222
3297
|
"exports": [
|
|
@@ -3359,7 +3434,11 @@
|
|
|
3359
3434
|
"slug": "scatter-chart",
|
|
3360
3435
|
"title": "Scatter Chart",
|
|
3361
3436
|
"category": "Charts",
|
|
3362
|
-
"status": "
|
|
3437
|
+
"status": "deprecated",
|
|
3438
|
+
"deprecated": {
|
|
3439
|
+
"since": "1.8.0"
|
|
3440
|
+
},
|
|
3441
|
+
"level": "molecule",
|
|
3363
3442
|
"description": "Values over time as dots, on the bklit `ScatterChart` primitive (visx). Compose it from\nchildren: one `Scatter` per series (`dataKey`), `ChartGrid` or `Background`, `XAxis`, `YAxis`,\n`ChartTooltip`. Rows need a `Date` under `xDataKey` (default `\"date\"`) and a number under each\nseries `dataKey`; the y-axis starts at 0. Dots reveal on mount over `animationDuration` (pass\n`0` to skip). There is no loading or empty state: render a placeholder until rows arrive. The\nchart is as wide as its container; height comes from `aspectRatio` (default `\"2 / 1\"`) or a\nheight class.",
|
|
3364
3443
|
"importPath": "@dodopayments/ui/scatter-chart",
|
|
3365
3444
|
"exports": [
|
|
@@ -3612,7 +3691,11 @@
|
|
|
3612
3691
|
"slug": "radar-chart",
|
|
3613
3692
|
"title": "Radar Chart",
|
|
3614
3693
|
"category": "Charts",
|
|
3615
|
-
"status": "
|
|
3694
|
+
"status": "deprecated",
|
|
3695
|
+
"deprecated": {
|
|
3696
|
+
"since": "1.8.0"
|
|
3697
|
+
},
|
|
3698
|
+
"level": "molecule",
|
|
3616
3699
|
"description": "Several series compared over the same metrics, as polygons on a radar (spider) grid, on the bklit\n`RadarChart` primitive (visx). Compose it from children: `RadarGrid`, `RadarAxis`, `RadarLabels`\nand one `RadarArea` per series (`index` into `data`). `metrics` is a list of `{ key, label }`;\neach `data` item is `{ label, color?, values: { [metric key]: 0-100 } }`, so normalise raw values\nto 0-100 first. Grid rings, axes, labels and polygons animate in on mount (`animate={false}` turns\nthis off). Hovering a polygon highlights it and dims the others. Without `size` the chart is a\nsquare as wide as its container. It has no loading or empty state: with no `data` it draws only\nthe grid.",
|
|
3617
3700
|
"importPath": "@dodopayments/ui/radar-chart",
|
|
3618
3701
|
"exports": [
|
|
@@ -3913,7 +3996,11 @@
|
|
|
3913
3996
|
"slug": "gauge-chart",
|
|
3914
3997
|
"title": "Gauge Chart",
|
|
3915
3998
|
"category": "Charts",
|
|
3916
|
-
"status": "
|
|
3999
|
+
"status": "deprecated",
|
|
4000
|
+
"deprecated": {
|
|
4001
|
+
"since": "1.8.0"
|
|
4002
|
+
},
|
|
4003
|
+
"level": "molecule",
|
|
3917
4004
|
"description": "One value from 0 to 100 as a row of notches, around an arc (default) or along a horizontal track\n(`orientation=\"linear\"`), on the bklit `Gauge` primitive. `value` sets how many notches fill.\n`centerValue` adds an optional animated statistic with a `defaultLabel` caption: in the arc\ncentre, or above / below the linear track (`labelPlacement`, `labelAlign`). Filled notches are the full\ncolour by default; `variant=\"tint\"` gives the tint look of the other charts (a 20% wash with a solid 3px outer\nedge). Set `useGradient` for a colour ramp across the notches (blue to violet unless `activeGradient` sets one), or pass `PatternLines` / `LinearGradient` children and point\n`activeFill` / `inactiveFill` at them with `url(#id)`. The plot is a `role=\"meter\"` with\n`aria-valuenow`. Notches pop in on mount (instant under reduced motion). It has no loading or\nempty state.",
|
|
3918
4005
|
"importPath": "@dodopayments/ui/gauge-chart",
|
|
3919
4006
|
"exports": [
|
|
@@ -4196,7 +4283,11 @@
|
|
|
4196
4283
|
"slug": "funnel-chart",
|
|
4197
4284
|
"title": "Funnel Chart",
|
|
4198
4285
|
"category": "Charts",
|
|
4199
|
-
"status": "
|
|
4286
|
+
"status": "deprecated",
|
|
4287
|
+
"deprecated": {
|
|
4288
|
+
"since": "1.8.0"
|
|
4289
|
+
},
|
|
4290
|
+
"level": "molecule",
|
|
4200
4291
|
"description": "Drop-off through the stages of a flow (visited, started checkout, paid), on the bklit\n`FunnelChart` primitive. `data` is a list of `{ label, value, displayValue?, color?, gradient? }`,\nfirst stage first; each segment is sized as a share of the first stage and shows its value, a\npercentage chip and the stage label, and each boundary shows the step conversion (\"→ 54%\") from the\nstage before. Segments are solid by default: a full-colour core inside faint halo bands (`layers` rings);\n`variant=\"tint\"` gives the wash of the tint look (20% with a solid 2px edge on the outer sides). Each stage takes the\nnext palette colour unless `color` sets one. Segments grow in with a stagger on mount; hovering one dims\nthe others. `orientation=\"vertical\"` stacks the stages top to bottom; `grid` adds background bands\nand divider lines. Height comes from the aspect ratio unless a class sets it. It has no loading\nstate and renders an empty frame when `data` is empty.",
|
|
4201
4292
|
"importPath": "@dodopayments/ui/funnel-chart",
|
|
4202
4293
|
"exports": [
|
|
@@ -4415,7 +4506,11 @@
|
|
|
4415
4506
|
"slug": "pie-chart",
|
|
4416
4507
|
"title": "Pie Chart",
|
|
4417
4508
|
"category": "Charts",
|
|
4418
|
-
"status": "
|
|
4509
|
+
"status": "deprecated",
|
|
4510
|
+
"deprecated": {
|
|
4511
|
+
"since": "1.8.0"
|
|
4512
|
+
},
|
|
4513
|
+
"level": "molecule",
|
|
4419
4514
|
"description": "Parts of a whole as pie or donut slices, on the bklit `PieChart` primitive (visx). Compose it from\nchildren: one `PieSlice` per row of `data` (`index`), and a `PieCenter` for a donut\n(`innerRadius > 0`) that shows the total, or the hovered slice. Rows are `{ label, value, color? }`\nin display order; slices go clockwise from 12 o'clock. Slices sweep in on mount; there is no\nloading or empty state, so render a placeholder while data loads and when every value is 0.\nWithout `size` the chart is a square as wide as its container. Link a `Legend` with `hoveredIndex`\nand `onHoverChange`.",
|
|
4420
4515
|
"importPath": "@dodopayments/ui/pie-chart",
|
|
4421
4516
|
"exports": [
|
|
@@ -4706,7 +4801,11 @@
|
|
|
4706
4801
|
"slug": "ring-chart",
|
|
4707
4802
|
"title": "Ring Chart",
|
|
4708
4803
|
"category": "Charts",
|
|
4709
|
-
"status": "
|
|
4804
|
+
"status": "deprecated",
|
|
4805
|
+
"deprecated": {
|
|
4806
|
+
"since": "1.8.0"
|
|
4807
|
+
},
|
|
4808
|
+
"level": "molecule",
|
|
4710
4809
|
"description": "Progress toward several targets as concentric rings, on the bklit `RingChart` primitive (visx).\nCompose it from children: one `Ring` per row of `data` (`index`, 0 = innermost) and an optional\n`RingCenter` that shows the sum of the values, or the hovered ring. Rows are\n`{ label, value, maxValue, color? }`; each ring fills `value / maxValue` of its track. Tracks scale\nin and arcs fill on mount; there is no loading or empty state, so render a placeholder while data\nloads. Without `size` the chart is a square as wide as its container. Link a `Legend` with\n`hoveredIndex` and `onHoverChange`.",
|
|
4711
4810
|
"importPath": "@dodopayments/ui/ring-chart",
|
|
4712
4811
|
"exports": [
|
|
@@ -4970,7 +5069,11 @@
|
|
|
4970
5069
|
"slug": "sunburst-chart",
|
|
4971
5070
|
"title": "Sunburst Chart",
|
|
4972
5071
|
"category": "Charts",
|
|
4973
|
-
"status": "
|
|
5072
|
+
"status": "deprecated",
|
|
5073
|
+
"deprecated": {
|
|
5074
|
+
"since": "1.8.0"
|
|
5075
|
+
},
|
|
5076
|
+
"level": "molecule",
|
|
4974
5077
|
"description": "A hierarchy as rings around a center, on the bklit `SunburstChart` primitive. Compose it from\nchildren: one `SunburstSegment` per arc of `buildArcs(data).arcs`, plus `SunburstCenter` (the hub:\nthe focused total with `formatValue`, and a click zooms out), `SunburstLabels`, `SunburstBreadcrumb`\n(drill-down path, above), `SunburstLegend` (branches with value and share, beside the rings) and\n`SunburstHint` (live hint, below). `data` is a `SunburstNode` tree; leaves carry `value`. Segments are\nsolid by default (full colour, fading by ring), like the bar and pie charts; `variant=\"tint\"` on\n`SunburstSegment` gives the wash with a solid rim. Click a segment with children to zoom in.\nThe SVG is decorative and pointer-only: `SunburstLegend` rows zoom in and `SunburstBreadcrumb` buttons\nzoom out by keyboard, so keep both in the chart when focus can change. Rings reveal on mount;\nthere is no loading or empty state. `size` (default 520) is the largest diameter; the chart never\ngets wider than its container.",
|
|
4975
5078
|
"importPath": "@dodopayments/ui/sunburst-chart",
|
|
4976
5079
|
"exports": [
|
|
@@ -5361,7 +5464,11 @@
|
|
|
5361
5464
|
"slug": "heatmap-chart",
|
|
5362
5465
|
"title": "Heatmap Chart",
|
|
5363
5466
|
"category": "Charts",
|
|
5364
|
-
"status": "
|
|
5467
|
+
"status": "deprecated",
|
|
5468
|
+
"deprecated": {
|
|
5469
|
+
"since": "1.8.0"
|
|
5470
|
+
},
|
|
5471
|
+
"level": "molecule",
|
|
5365
5472
|
"description": "A calendar heatmap on the bklit `HeatmapChart` primitive (visx): one column per week, one row per\nweekday, each cell filled by its level on the `--chart-scale-01..05` tokens. Compose it from\nchildren: `HeatmapCells`, `HeatmapXAxis` (months), `HeatmapYAxis` (weekdays), `HeatmapSeparator`\nand `HeatmapTooltip`. Put a `HeatmapLegend` next to it, and wrap both in a\n`HeatmapInteractionProvider` to link legend and cell hover. `data` is `HeatmapColumn[]`: each\ncolumn holds 7 `HeatmapBin`s, Sunday first, and each `count` is a level from 0 (none) to 4 (most).\nBin raw values into levels before you pass them. Cells fade in on mount; `status=\"loading\"`\nshimmers the cells and shows `loadingLabel`. With `layout=\"fluid\"` (default) the cells are square\nand the height follows the container width.",
|
|
5366
5473
|
"importPath": "@dodopayments/ui/heatmap-chart",
|
|
5367
5474
|
"exports": [
|
|
@@ -6123,7 +6230,11 @@
|
|
|
6123
6230
|
"slug": "sankey-chart",
|
|
6124
6231
|
"title": "Sankey Chart",
|
|
6125
6232
|
"category": "Charts",
|
|
6126
|
-
"status": "
|
|
6233
|
+
"status": "deprecated",
|
|
6234
|
+
"deprecated": {
|
|
6235
|
+
"since": "1.8.0"
|
|
6236
|
+
},
|
|
6237
|
+
"level": "molecule",
|
|
6127
6238
|
"description": "A Sankey diagram on the bklit `SankeyChart` primitive (visx, d3-sankey): flows between nodes, each\nband as wide as its value. Use it to show where an amount goes, e.g. gross volume into fees,\nrefunds and payouts. Compose it from children: `SankeyLink` (the bands), `SankeyNode` (the bars\nand their labels) and `SankeyTooltip`. `data` is `{ nodes, links }`: each node has a `name`, each\nlink a `source` and `target` node index and a `value`. Nodes and bands grow in on mount over\n`animationDuration`. Nodes and bands are solid by default: nodes in full colour, each band its source node's\ncolour at 35% opacity, so crossing bands blend; set `useGradient` on `SankeyLink` for a source-to-target gradient.\n`variant=\"tint\"` on `SankeyLink` / `SankeyNode` gives the tint look of the other charts (nodes a 20% wash with a\nsolid edge on their label side, bands a 12% wash, 24% while highlighted). The chart is as wide as its container; height comes from `aspectRatio`\n(default `\"2 / 1\"`). The default `margin` keeps 180px on each side for node labels.",
|
|
6128
6239
|
"importPath": "@dodopayments/ui/sankey-chart",
|
|
6129
6240
|
"exports": [
|
|
@@ -6451,6 +6562,7 @@
|
|
|
6451
6562
|
"title": "Choropleth Chart",
|
|
6452
6563
|
"category": "Charts",
|
|
6453
6564
|
"status": "stable",
|
|
6565
|
+
"level": "molecule",
|
|
6454
6566
|
"description": "A choropleth map on the bklit `ChoroplethChart` primitive (visx geo, Mercator projection): one\nregion per GeoJSON feature, each filled by its value. Compose it from children:\n`ChoroplethGraticule` (grid lines), `ChoroplethFeatureComponent` (the regions; colour them with\n`getFeatureColor` on the `--chart-scale-01..05` tokens) and `ChoroplethTooltip`. Other children,\nsuch as zoom buttons that call `useChoroplethZoom()`, render in an HTML overlay. `data` is a GeoJSON\n`FeatureCollection`; the library ships no map geometry, so load it yourself through\n`topojson-client`. For a world map, use one that draws India on its official boundary, not raw\n`world-atlas` / Natural Earth, which cuts off Jammu and Kashmir and Ladakh: download\nhttps://raw.githubusercontent.com/dodopayments/dodo-ui/main/apps/docs/lib/geo/world-countries-110m.json\nto `lib/geo/world-countries-110m.json` in your app (the examples import it as\n`@/lib/geo/world-countries-110m.json`). Regions carry `properties.name` and, except N. Cyprus,\nSomaliland and Kosovo, `properties.iso2`. Regions fade in on mount. `zoomEnabled` turns on wheel\nzoom and drag to pan. The chart is as wide as its container; height comes from `aspectRatio`\n(default `\"16 / 9\"`).",
|
|
6455
6567
|
"importPath": "@dodopayments/ui/choropleth-chart",
|
|
6456
6568
|
"exports": [
|
|
@@ -6979,6 +7091,7 @@
|
|
|
6979
7091
|
"title": "Retention Matrix",
|
|
6980
7092
|
"category": "Charts",
|
|
6981
7093
|
"status": "stable",
|
|
7094
|
+
"level": "organism",
|
|
6982
7095
|
"description": "How many customers of each monthly cohort are still active in the months after they joined, drawn the way the\nHeatmap chart draws its cells. One row per cohort (cohort, size, Month 0 to Month 6); each cell writes its\nretention % and is shaded on one of four lime levels (`--chart-scale-02..05`), split across the matrix's own values\nlike the heatmap's (see {@link retentionThresholds}); only 0% is grey and 100% (Month 0) is the darkest lime. Hovering a cell fades the others\nand shows the cohort, the month and how many customers that is. Months a cohort has not reached are blank.\nThe matrix keeps a 560px minimum width and scrolls sideways in a narrower parent. Put it in a `Card` titled\n\"User retention\".",
|
|
6983
7096
|
"importPath": "@dodopayments/ui/retention-matrix",
|
|
6984
7097
|
"exports": [
|
|
@@ -7091,6 +7204,7 @@
|
|
|
7091
7204
|
"title": "Comparison Bars",
|
|
7092
7205
|
"category": "Charts",
|
|
7093
7206
|
"status": "stable",
|
|
7207
|
+
"level": "organism",
|
|
7094
7208
|
"description": "Categories compared with the previous period, as the dashboard's analytics draw them (Payments breakdown,\nRevenue by product, Disputes, New vs returning, Revenue by country). Each row has a label, a pale lime bar for\nthe current value, a dark marker with a dot at the previous value and the current value on the right; when the\nvalue fell short of the previous one, the gap is hatched. All rows share one scale, set by the largest value of\neither period. Hovering a row highlights it and shows both periods. Put it in a `Card` (or, with a summary\nsuch as a total, in a `StatCard`) and pass `periods` for the legend.",
|
|
7095
7209
|
"importPath": "@dodopayments/ui/comparison-bars",
|
|
7096
7210
|
"exports": [
|
|
@@ -7177,6 +7291,7 @@
|
|
|
7177
7291
|
"title": "Button",
|
|
7178
7292
|
"category": "Actions",
|
|
7179
7293
|
"status": "stable",
|
|
7294
|
+
"level": "molecule",
|
|
7180
7295
|
"description": "Triggers an action. Renders the `Button` primitive on Base UI `Button`, which always has button\nsemantics. For navigation, do not render a link through `Button`; use `ButtonLink`, or style the\nlink itself with `buttonVariants()`: `<Link href=\"/x\" className={buttonVariants({ variant: \"secondary\" })}>`.\nWhile `loading`, the label and the spinner face cross-fade in place on a spring (after interior.dev's\nloading button) and the button keeps focus. `result` swaps in a success or error face the same way\nand announces it. With `labelHidden=\"narrow\"`, a page header, list toolbar or record header action\nshows only its icon on a phone, with its label in a tooltip.",
|
|
7181
7296
|
"importPath": "@dodopayments/ui/button",
|
|
7182
7297
|
"exports": [
|
|
@@ -7540,7 +7655,11 @@
|
|
|
7540
7655
|
"slug": "button-group",
|
|
7541
7656
|
"title": "Button group",
|
|
7542
7657
|
"category": "Actions",
|
|
7543
|
-
"status": "
|
|
7658
|
+
"status": "deprecated",
|
|
7659
|
+
"deprecated": {
|
|
7660
|
+
"since": "1.8.0"
|
|
7661
|
+
},
|
|
7662
|
+
"level": "atom",
|
|
7544
7663
|
"description": "Joins buttons into one control: a split button (a primary action beside a `Menu` of related ones,\ne.g. Save with Copy to live mode behind a `⋯`) or a row of related actions. The inner corners and\nborders meet. Name the group with `aria-label` when its buttons share one purpose.",
|
|
7545
7664
|
"importPath": "@dodopayments/ui/button-group",
|
|
7546
7665
|
"exports": [
|
|
@@ -7612,6 +7731,7 @@
|
|
|
7612
7731
|
"title": "Chart",
|
|
7613
7732
|
"category": "Charts",
|
|
7614
7733
|
"status": "stable",
|
|
7734
|
+
"level": "organism",
|
|
7615
7735
|
"description": "The frame every dodo chart renders around its plot: a `role=\"figure\"` box named by `label`, as wide\nas its container. Its height comes from the chart's `aspectRatio` or from a height class\n(`className=\"h-48\"`). Use it to give a custom visx chart the same accessible frame.",
|
|
7616
7736
|
"importPath": "@dodopayments/ui/chart",
|
|
7617
7737
|
"exports": [
|
|
@@ -8757,7 +8877,11 @@
|
|
|
8757
8877
|
"slug": "chart-legend",
|
|
8758
8878
|
"title": "Chart Legend",
|
|
8759
8879
|
"category": "Charts",
|
|
8760
|
-
"status": "
|
|
8880
|
+
"status": "deprecated",
|
|
8881
|
+
"deprecated": {
|
|
8882
|
+
"since": "1.8.0"
|
|
8883
|
+
},
|
|
8884
|
+
"level": "atom",
|
|
8761
8885
|
"description": "A list legend for a chart: one row per item with a colour dot, the label and the value. Set\n`showProgress` to draw each `value` against its `maxValue` as a progress bar with a percentage.\nRows report hover through `onHover`; pass `hoveredIndex` back to fade the other rows and to\nhighlight the matching series in the chart.",
|
|
8762
8886
|
"importPath": "@dodopayments/ui/chart-legend",
|
|
8763
8887
|
"exports": [
|
|
@@ -9107,6 +9231,7 @@
|
|
|
9107
9231
|
"title": "Chart Tooltip",
|
|
9108
9232
|
"category": "Charts",
|
|
9109
9233
|
"status": "stable",
|
|
9234
|
+
"level": "atom",
|
|
9110
9235
|
"description": "The hover layer of a chart: a vertical crosshair, a dot on each series, a floating panel with one\nrow per series and a date pill under the plot. Rows default to each series' colour, `dataKey` and\nvalue; pass `rows` to rename or format them, or `content` to render the whole panel.",
|
|
9111
9236
|
"importPath": "@dodopayments/ui/chart-tooltip",
|
|
9112
9237
|
"exports": [
|
|
@@ -9663,6 +9788,7 @@
|
|
|
9663
9788
|
"title": "Card",
|
|
9664
9789
|
"category": "Layout",
|
|
9665
9790
|
"status": "stable",
|
|
9791
|
+
"level": "molecule",
|
|
9666
9792
|
"description": "The section card (Dodo Nest Card): a grey tray around an optional `CardHeader` strip (`CardTitle` with an\noptional `help`, `CardDescription`, a small `CardAction`), the white `CardContent` panel and an optional\n`CardFooter` note on the grey. `tone=\"error\"` tints the tray red. For the common shape pass `title` (with\n`help`), `description` and `action` as props: the card draws the header and puts `children` in the panel (the\nheader renders only when one of them is set, the panel only with children). Renders a `<div>`; pass `render` to\noutput another element, e.g. `render={<section />}`. Stack cards 24 apart; never nest a card in a card.\nGive a card a definite width (a grid cell, `w-full`, a `max-w-*` column): below about 20rem the header moves\nits action under the title, and the header, a size container, does not widen a card that shrinks to fit.",
|
|
9667
9793
|
"importPath": "@dodopayments/ui/card",
|
|
9668
9794
|
"exports": [
|
|
@@ -9953,6 +10079,7 @@
|
|
|
9953
10079
|
"title": "Date picker",
|
|
9954
10080
|
"category": "Forms",
|
|
9955
10081
|
"status": "stable",
|
|
10082
|
+
"level": "organism",
|
|
9956
10083
|
"description": "The Dodo Nest Date picker: the calendar panel itself, without a trigger (put it in a `Popover` under a Button, or\ninline under a field). `type=\"range\"` (default) has presets (Today … Last year), two months, optional date fields\nand a Reset / Apply footer on a grey tray around the panel; under 640px it shows one month, the presets scroll in a\nrow above it and the footer buttons fill the width. `type=\"single\"` is one month with month and year selects, on\nthe same grey tray. Days are 32px; a picked day is the primary gradient, a range runs on a grey band, today has a\ndot and disabled days are greyed out. Arrow keys, Page Up / Down and Home / End move between days.",
|
|
9957
10084
|
"importPath": "@dodopayments/ui/date-picker",
|
|
9958
10085
|
"exports": [
|
|
@@ -10121,6 +10248,7 @@
|
|
|
10121
10248
|
"title": "Code Block",
|
|
10122
10249
|
"category": "Data display",
|
|
10123
10250
|
"status": "stable",
|
|
10251
|
+
"level": "organism",
|
|
10124
10252
|
"description": "Read-only monospace block for code, JSON payloads and commands, in Geist Mono, with an optional header and a copy\nbutton. Colours JSON with the syntax tokens. A scrollable code area is keyboard focusable. With `snippets` it shows\nthe same example in several languages (cURL, Node.js, Python, Go): the header holds a tab per language, the picked\nlanguage is shared through a `CodeBlockProvider` and, with `storageKey`, remembered in localStorage (read after\nmount, so server and client render the same first frame).",
|
|
10125
10253
|
"importPath": "@dodopayments/ui/code-block",
|
|
10126
10254
|
"exports": [
|
|
@@ -10316,6 +10444,7 @@
|
|
|
10316
10444
|
"title": "Copy button",
|
|
10317
10445
|
"category": "Actions",
|
|
10318
10446
|
"status": "stable",
|
|
10447
|
+
"level": "atom",
|
|
10319
10448
|
"description": "Button that copies `content` to the clipboard, composed on the `Button` primitive: icon-only, or with\ntext `children` that swap to \"Copied\" in place. The copy,\ncheck and error icons share one cell and cross-fade in place on a spring, so the button never\nchanges size; the check draws itself in. It falls back to a selection copy when the Clipboard API\nrefuses (to a `copy` event for `sensitive` content, which never enters the page), shows a failed\nstate when both fail, and announces `copiedLabel` or `errorLabel` through a polite live region\nwhile the accessible name stays `label`. Motion after interior.dev's copy button.",
|
|
10320
10449
|
"importPath": "@dodopayments/ui/copy-button",
|
|
10321
10450
|
"exports": [
|
|
@@ -10493,6 +10622,7 @@
|
|
|
10493
10622
|
"title": "Data table",
|
|
10494
10623
|
"category": "Data display",
|
|
10495
10624
|
"status": "stable",
|
|
10625
|
+
"level": "organism",
|
|
10496
10626
|
"description": "The Dodo Nest Data table, driven by a TanStack Table v8 instance: the column headers on a grey tray,\nthe rows (`size` md 48 / lg 64) on the white panel inside it, skeleton rows while `isLoading`, and\n`emptyMessage` centred in the panel when there are no rows. It keeps the table layout at every width:\na table wider than its container scrolls sideways (the container is then a tab stop). For a phone, give the\nless important columns `meta.priority` 2 or 3 so they hide while the table is narrow, and set `pinFirstColumn`\nto keep the first column in view. It sets\n`aria-sort` on sortable headers and marks selected rows `data-state=\"selected\"`, tinted\nSurface/Secondary as on hover. Sorting, selection and pagination stay in the table\ninstance; pair it with `DataGridColumnHeader`, `DataGridRowSelect(All)` and `DataGridPagination`\n(16 below). After a sort change, the rows glide to their new positions (`animateSort`) and a polite\nlive region announces the new sort. `bulkActions` adds a sticky \"N selected\" bar with actions for\nthe selected rows.",
|
|
10497
10627
|
"importPath": "@dodopayments/ui/data-grid",
|
|
10498
10628
|
"exports": [
|
|
@@ -10674,7 +10804,7 @@
|
|
|
10674
10804
|
},
|
|
10675
10805
|
{
|
|
10676
10806
|
"name": "DataGridColumnHeader",
|
|
10677
|
-
"description": "Column header label (.Table header cell): Labels/Secondary in Content/
|
|
10807
|
+
"description": "Column header label (.Table header cell): Labels/Secondary in Content/Primary, with 12px icons 4\napart. For sortable columns it is a button that cycles ascending → descending → unsorted and shows an\narrow for the current direction (a neutral caret when unsorted). The arrow fades in and turns on a\nspring when the direction changes. It is disabled while the grid is loading. Non-sortable columns\nrender plain text. `help` adds an info icon with a tooltip.",
|
|
10678
10808
|
"props": [
|
|
10679
10809
|
{
|
|
10680
10810
|
"name": "column",
|
|
@@ -10954,6 +11084,7 @@
|
|
|
10954
11084
|
"title": "Checkbox",
|
|
10955
11085
|
"category": "Forms",
|
|
10956
11086
|
"status": "stable",
|
|
11087
|
+
"level": "molecule",
|
|
10957
11088
|
"description": "A box the user ticks to turn an option on or off. Renders the `Checkbox` primitive on Base UI\n`Checkbox`: a `<span role=\"checkbox\">` plus a hidden `<input>` so it submits with forms.\n`indeterminate` shows a dash (`aria-checked=\"mixed\"`) for \"some selected\" parents. On its own it is\nthe bare box: name it by wrapping it in a `<label>` or with `aria-label`. With `label` it renders the\nwhole option: the label wraps the box (clicking it toggles the box), `description` and `error` are\nlinked with `aria-describedby`, `required` adds the asterisk, `disabled` disables the whole option,\nand `reveal` shows content below while the box is ticked.\nTicking fades the fill in and draws the check mark, the dash grows in from half width, and the box\npresses in while held (also when the label is pressed); content revealed by a tick fades in, and a\nbox that is already ticked when it mounts does not animate.",
|
|
10958
11089
|
"importPath": "@dodopayments/ui/checkbox",
|
|
10959
11090
|
"exports": [
|
|
@@ -11173,7 +11304,11 @@
|
|
|
11173
11304
|
"slug": "container",
|
|
11174
11305
|
"title": "Container",
|
|
11175
11306
|
"category": "Layout",
|
|
11176
|
-
"status": "
|
|
11307
|
+
"status": "deprecated",
|
|
11308
|
+
"deprecated": {
|
|
11309
|
+
"since": "1.8.0"
|
|
11310
|
+
},
|
|
11311
|
+
"level": "atom",
|
|
11177
11312
|
"description": "Composite (the primitives have no Container): layout only, on the Tailwind spacing scale.\nCentres page content at a max width with the responsive page gutter. Use one per page, around\nits sections. Renders a `div`; use `render={<main />}` when it is the page's main landmark.",
|
|
11178
11313
|
"importPath": "@dodopayments/ui/container",
|
|
11179
11314
|
"exports": [
|
|
@@ -11251,6 +11386,7 @@
|
|
|
11251
11386
|
"title": "Country select",
|
|
11252
11387
|
"category": "Forms",
|
|
11253
11388
|
"status": "stable",
|
|
11389
|
+
"level": "molecule",
|
|
11254
11390
|
"description": "Searchable country picker. Shows each country's flag and name; typing filters by name or exact\nISO code. The value is the upper-case ISO 3166-1 alpha-2 code.\n\nBuilt from primitive parts: a `Combobox` primitive whose trigger renders the `SelectButton` primitive (select-style\nfield), with the search `ComboboxInput` inside the `ComboboxPopup`.",
|
|
11255
11391
|
"importPath": "@dodopayments/ui/country-select",
|
|
11256
11392
|
"exports": [
|
|
@@ -11420,6 +11556,7 @@
|
|
|
11420
11556
|
"title": "Currency select",
|
|
11421
11557
|
"category": "Forms",
|
|
11422
11558
|
"status": "stable",
|
|
11559
|
+
"level": "molecule",
|
|
11423
11560
|
"description": "Searchable currency picker. Each option shows the issuing country's flag (the EU flag for EUR, a globe\nfor supranational codes such as XOF), the ISO 4217 code and its localized name; typing\nfilters by code prefix or name. The value is the upper-case currency code.\n\nBuilt from primitive parts: a `Combobox` primitive whose trigger renders the `SelectButton` primitive (select-style\nfield), with the search `ComboboxInput` inside the `ComboboxPopup`.",
|
|
11424
11561
|
"importPath": "@dodopayments/ui/currency-select",
|
|
11425
11562
|
"exports": [
|
|
@@ -11590,7 +11727,11 @@
|
|
|
11590
11727
|
"slug": "color-input",
|
|
11591
11728
|
"title": "Color input",
|
|
11592
11729
|
"category": "Forms",
|
|
11593
|
-
"status": "
|
|
11730
|
+
"status": "deprecated",
|
|
11731
|
+
"deprecated": {
|
|
11732
|
+
"since": "1.8.0"
|
|
11733
|
+
},
|
|
11734
|
+
"level": "organism",
|
|
11594
11735
|
"description": "A colour field: a swatch that opens the browser's colour picker, beside a text field for a hex.\nEither one changes the value, so a merchant can paste a brand colour or pick one. The swatch stays\nempty while the text is not a colour. With an empty value the browser's picker starts at black, so\npicking black from empty fires no change: type it instead.",
|
|
11595
11736
|
"importPath": "@dodopayments/ui/color-input",
|
|
11596
11737
|
"exports": [
|
|
@@ -11681,7 +11822,11 @@
|
|
|
11681
11822
|
"slug": "timezone-select",
|
|
11682
11823
|
"title": "Time zone select",
|
|
11683
11824
|
"category": "Forms",
|
|
11684
|
-
"status": "
|
|
11825
|
+
"status": "deprecated",
|
|
11826
|
+
"deprecated": {
|
|
11827
|
+
"since": "1.8.0"
|
|
11828
|
+
},
|
|
11829
|
+
"level": "atom",
|
|
11685
11830
|
"description": "Searchable IANA time zone picker. Each option shows the zone and its current GMT offset; typing\nfilters by either (underscores match spaces). The value is the IANA identifier.\n\nBuilt from primitive parts: a `Combobox` primitive whose trigger renders the `SelectButton` primitive (select-style\nfield), with the search `ComboboxInput` inside the `ComboboxPopup`.",
|
|
11686
11831
|
"importPath": "@dodopayments/ui/timezone-select",
|
|
11687
11832
|
"exports": [
|
|
@@ -11835,6 +11980,7 @@
|
|
|
11835
11980
|
"title": "Collapsible",
|
|
11836
11981
|
"category": "Layout",
|
|
11837
11982
|
"status": "stable",
|
|
11983
|
+
"level": "molecule",
|
|
11838
11984
|
"description": "Shows and hides a section of content: the `Collapsible` primitive on Base UI `Collapsible`. Compose it\nfrom a `CollapsibleTrigger` and a `CollapsibleContent`; `variant=\"card\"` is the Dodo Nest Collapsible section\ntray, with `CollapsibleTitle` and `CollapsibleDescription` in the trigger.",
|
|
11839
11985
|
"importPath": "@dodopayments/ui/collapsible",
|
|
11840
11986
|
"exports": [
|
|
@@ -12193,6 +12339,7 @@
|
|
|
12193
12339
|
"title": "Scaled frame",
|
|
12194
12340
|
"category": "Layout",
|
|
12195
12341
|
"status": "stable",
|
|
12342
|
+
"level": "atom",
|
|
12196
12343
|
"description": "Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout\npage in an `iframe` beside its settings. The frame keeps the content's aspect ratio and never scales\nit up: content narrower than the frame sits in its middle. The content stays a live page; put a\ncover over it when it should not take clicks.",
|
|
12197
12344
|
"importPath": "@dodopayments/ui/scaled-frame",
|
|
12198
12345
|
"exports": [
|
|
@@ -12234,6 +12381,7 @@
|
|
|
12234
12381
|
"title": "Dialog",
|
|
12235
12382
|
"category": "Overlays",
|
|
12236
12383
|
"status": "stable",
|
|
12384
|
+
"level": "molecule",
|
|
12237
12385
|
"description": "The dialog (Dodo Nest Dialog): portal + scrim + a grey tray around a white panel, with the close button\n(secondary, 24px) on the title row (primitive `DialogPopup`). Always include a `DialogTitle`. Lay it out as\n`DialogHeader` and `DialogPanel` (the white panel; the body scrolls) and `DialogFooter` (the strip on the\ntray). A confirm dialog starts its header with a `DialogIcon`; make it `<Dialog alert>`.",
|
|
12238
12386
|
"importPath": "@dodopayments/ui/dialog",
|
|
12239
12387
|
"exports": [
|
|
@@ -12759,6 +12907,13 @@
|
|
|
12759
12907
|
"description": "Icon shown in a Featured icon tile above the title. Defaults to an info icon (a warning icon when\n`destructive`); pass `null` to hide it.",
|
|
12760
12908
|
"source": "dodo"
|
|
12761
12909
|
},
|
|
12910
|
+
{
|
|
12911
|
+
"name": "iconTone",
|
|
12912
|
+
"type": "\"info\" | \"success\" | \"warning\" | \"error\" | \"violet\" | \"neutral\" | \"pink\" | \"orange\" | null",
|
|
12913
|
+
"required": false,
|
|
12914
|
+
"description": "Tone of the icon tile, e.g. `warning` for a pause or `success` for a resume. Defaults to `error`\nwhen `destructive`, else `neutral`.",
|
|
12915
|
+
"source": "dodo"
|
|
12916
|
+
},
|
|
12762
12917
|
{
|
|
12763
12918
|
"name": "loading",
|
|
12764
12919
|
"type": "boolean",
|
|
@@ -12848,7 +13003,12 @@
|
|
|
12848
13003
|
"slug": "drawer",
|
|
12849
13004
|
"title": "Drawer",
|
|
12850
13005
|
"category": "Overlays",
|
|
12851
|
-
"status": "
|
|
13006
|
+
"status": "deprecated",
|
|
13007
|
+
"deprecated": {
|
|
13008
|
+
"since": "1.8.0",
|
|
13009
|
+
"replacement": "Sheet"
|
|
13010
|
+
},
|
|
13011
|
+
"level": "atom",
|
|
12852
13012
|
"description": "The drawer: portal + scrim + popup, docked to the bottom edge with a drag handle and a close button. A grey tray\nwith rounded top corners, like Dialog: the title and body in a white panel, the actions on the grey strip. It is\nas tall as its content, up to the screen minus 48, and pads the bottom safe area; a focused field stays above the\nsoftware keyboard. Always include a `DrawerTitle`; lay it out as `DrawerHeader`, `DrawerPanel` and `DrawerFooter`.",
|
|
12853
13013
|
"importPath": "@dodopayments/ui/drawer",
|
|
12854
13014
|
"exports": [
|
|
@@ -13218,7 +13378,11 @@
|
|
|
13218
13378
|
"slug": "direction-provider",
|
|
13219
13379
|
"title": "Direction Provider",
|
|
13220
13380
|
"category": "Utilities",
|
|
13221
|
-
"status": "
|
|
13381
|
+
"status": "deprecated",
|
|
13382
|
+
"deprecated": {
|
|
13383
|
+
"since": "1.8.0"
|
|
13384
|
+
},
|
|
13385
|
+
"level": "atom",
|
|
13222
13386
|
"description": "Sets the reading direction for every component inside: keyboard navigation (arrow keys in menus,\ntabs, sliders, radio groups and tree views follow the reading order), slider and scroll positions,\nand the `side=\"start\"` / `side=\"end\"` of Sheet, Sidebar and the `-start` / `-end` Toaster\npositions, which resolve to the physical edge. Wrap the app once, next to `<html dir=\"rtl\">`;\nwith `asWrapper` it also renders a `<div dir>` for a mirrored region inside the page.",
|
|
13223
13387
|
"importPath": "@dodopayments/ui/direction-provider",
|
|
13224
13388
|
"exports": [
|
|
@@ -13284,6 +13448,7 @@
|
|
|
13284
13448
|
"title": "Empty",
|
|
13285
13449
|
"category": "Feedback",
|
|
13286
13450
|
"status": "stable",
|
|
13451
|
+
"level": "molecule",
|
|
13287
13452
|
"description": "What a page, card or table shows when there is nothing yet (Dodo Nest Empty state): an optional Featured icon\n(neutral, or `iconTone=\"error\"` when loading failed), a title (Label/Primary), an optional description (Body/Primary, Content/Secondary) and an optional action,\nin a centred column up to 360 wide. It has no container or padding of its own: put it where the content would be.\nThe title, description and action rise in one after the other.",
|
|
13288
13453
|
"importPath": "@dodopayments/ui/empty",
|
|
13289
13454
|
"exports": [
|
|
@@ -13374,6 +13539,7 @@
|
|
|
13374
13539
|
"title": "Field",
|
|
13375
13540
|
"category": "Forms",
|
|
13376
13541
|
"status": "stable",
|
|
13542
|
+
"level": "organism",
|
|
13377
13543
|
"description": "Groups a label, description, control and error message and wires them together: the label and\nmessages are linked to the control (`htmlFor`, `aria-describedby`) and the control gets\n`aria-invalid` + `data-invalid` when validation fails, which switches `Input` to its destructive\nborder. When a submit of the surrounding `Form` (or `FormField`) fails while the field is invalid,\nits control shakes once (`animate-shake`); typing never shakes it. Renders the `Field` primitive\non Base UI `Field.Root`.\n\nPass `label` (and `description`, `required`, `help`, `action`, `error`) to get the Dodo Nest\nField: `layout=\"vertical\"` (default) for forms, `layout=\"horizontal\"` for settings rows with the\ncontrol (a Switch, a 160px Select, a Button) on the trailing side and optional `expanded` content.\n`children` is then the control. Without `label`, compose the parts as children.",
|
|
13378
13544
|
"importPath": "@dodopayments/ui/field",
|
|
13379
13545
|
"exports": [
|
|
@@ -13559,6 +13725,13 @@
|
|
|
13559
13725
|
"name": "FieldControl",
|
|
13560
13726
|
"description": "The field's control: the `Input` primitive (Base UI `Input`, i.e. `Field.Control`) with the same\n`size` scale as `Input`. Primitive exports `FieldControl` unstyled, so this renders the styled Input.\nAccepts Base UI's `render` prop to swap the rendered element.",
|
|
13561
13727
|
"props": [
|
|
13728
|
+
{
|
|
13729
|
+
"name": "action",
|
|
13730
|
+
"type": "{ label: ReactNode; onClick: () => void; disabled?: boolean | undefined; }",
|
|
13731
|
+
"required": false,
|
|
13732
|
+
"description": "A boxed button at the end (Surface/Secondary with a divider), for one action on the value, such as\n\"Generate slug\".",
|
|
13733
|
+
"source": "dodo"
|
|
13734
|
+
},
|
|
13562
13735
|
{
|
|
13563
13736
|
"name": "addon",
|
|
13564
13737
|
"type": "ReactNode",
|
|
@@ -13735,6 +13908,14 @@
|
|
|
13735
13908
|
"description": "",
|
|
13736
13909
|
"source": "dodo"
|
|
13737
13910
|
},
|
|
13911
|
+
{
|
|
13912
|
+
"name": "variant",
|
|
13913
|
+
"type": "\"inline\" | \"field\"",
|
|
13914
|
+
"required": false,
|
|
13915
|
+
"default": "\"field\"",
|
|
13916
|
+
"description": "`field` is the bordered box. `inline` reads as text in a heading row, such as a checkout group's name: no box,\nthe value underlined, a focus ring when it is edited.",
|
|
13917
|
+
"source": "dodo"
|
|
13918
|
+
},
|
|
13738
13919
|
{
|
|
13739
13920
|
"name": "defaultValue",
|
|
13740
13921
|
"type": "string | number | readonly string[]",
|
|
@@ -13882,11 +14063,41 @@
|
|
|
13882
14063
|
],
|
|
13883
14064
|
"docsUrl": "/components/field"
|
|
13884
14065
|
},
|
|
14066
|
+
{
|
|
14067
|
+
"slug": "required-mark",
|
|
14068
|
+
"title": "Required mark",
|
|
14069
|
+
"category": "Forms",
|
|
14070
|
+
"status": "beta",
|
|
14071
|
+
"level": "atom",
|
|
14072
|
+
"description": "Decorative required marker shared by `Label` and `FieldLabel`. Hidden from assistive\ntechnology: the control's own `required` attribute is what gets announced. Exported for a\nheading over a required group of fields; give it `className=\"ms-1\"` there.",
|
|
14073
|
+
"importPath": "@dodopayments/ui/required-mark",
|
|
14074
|
+
"exports": [
|
|
14075
|
+
"LabelRequiredIndicator"
|
|
14076
|
+
],
|
|
14077
|
+
"parts": [
|
|
14078
|
+
{
|
|
14079
|
+
"name": "LabelRequiredIndicator",
|
|
14080
|
+
"description": "Decorative required marker shared by `Label` and `FieldLabel`. Hidden from assistive\ntechnology: the control's own `required` attribute is what gets announced. Exported for a\nheading over a required group of fields; give it `className=\"ms-1\"` there.",
|
|
14081
|
+
"props": [
|
|
14082
|
+
{
|
|
14083
|
+
"name": "className",
|
|
14084
|
+
"type": "string",
|
|
14085
|
+
"required": false,
|
|
14086
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
14087
|
+
"source": "dodo"
|
|
14088
|
+
}
|
|
14089
|
+
]
|
|
14090
|
+
}
|
|
14091
|
+
],
|
|
14092
|
+
"examples": [],
|
|
14093
|
+
"docsUrl": "/components/field"
|
|
14094
|
+
},
|
|
13885
14095
|
{
|
|
13886
14096
|
"slug": "form",
|
|
13887
14097
|
"title": "Form",
|
|
13888
14098
|
"category": "Forms",
|
|
13889
14099
|
"status": "stable",
|
|
14100
|
+
"level": "atom",
|
|
13890
14101
|
"description": "Native `<form>` (the `Form` primitive on Base UI `Form`) that validates the `Field`s inside it on submit.\nWhen a field is invalid it cancels the submission, shows the errors, focuses the first invalid\ncontrol and shakes the invalid controls once. `onFormSubmit` receives the values as an object keyed\nby field `name`; `errors` (e.g. from your server) shows messages on the fields with matching names,\nand when they answer a submit those fields shake too: also when the response repeats the\nprevious submit's messages (pass a new `errors` object per response) and when a retry clears\n`errors` before the response arrives. A `render` element (not a function) keeps Base UI's own\nform handling and skips the shake. Stacks its children 16px apart.",
|
|
13891
14102
|
"importPath": "@dodopayments/ui/form",
|
|
13892
14103
|
"exports": [
|
|
@@ -13961,6 +14172,7 @@
|
|
|
13961
14172
|
"title": "Form field",
|
|
13962
14173
|
"category": "Forms",
|
|
13963
14174
|
"status": "stable",
|
|
14175
|
+
"level": "organism",
|
|
13964
14176
|
"description": "react-hook-form adapter for `Field`. Registers the field through RHF's `Controller` and renders\nthe output of `render` inside a `Field` that mirrors the controller state: `invalid`, `dirty`,\n`touched` and `disabled`. A `FieldError` without children shows `fieldState.error.message`\n(falling back to `error.root.message`). Like `Form`, a failed `handleSubmit` shakes the control\nonce while the field is invalid. Spread `field` onto the control:\n`render={({ field }) => <Input {...field} />}`. Import it from `@dodopayments/ui/form-field`;\nit needs the optional `react-hook-form` peer dependency.",
|
|
13965
14177
|
"importPath": "@dodopayments/ui/form-field",
|
|
13966
14178
|
"exports": [
|
|
@@ -14046,6 +14258,7 @@
|
|
|
14046
14258
|
"title": "File Upload",
|
|
14047
14259
|
"category": "Forms",
|
|
14048
14260
|
"status": "stable",
|
|
14261
|
+
"level": "organism",
|
|
14049
14262
|
"description": "Dropzone for picking files: click (or Enter / Space) opens the file picker, and files can be\ndragged onto it. Validates `accept`, `maxSize` and `multiple`, then reports accepted files through\n`onFilesAdded` and refused ones through `onFilesRejected`. It does not keep or upload files: list\nthem with `FileUploadList` / `FileUploadItem`, inside a `FileUploadTray` for several files.\n\nThe primitives have no dropzone, so this is a composite: a native `<button>` in the Dodo Nest look\n(Surface/Primary, 1px Border/Primary, Radius/Large, a neutral Featured icon) and a hidden\n`<input type=\"file\">`.",
|
|
14050
14263
|
"importPath": "@dodopayments/ui/file-upload",
|
|
14051
14264
|
"exports": [
|
|
@@ -14484,6 +14697,7 @@
|
|
|
14484
14697
|
"title": "Image Crop",
|
|
14485
14698
|
"category": "Forms",
|
|
14486
14699
|
"status": "stable",
|
|
14700
|
+
"level": "organism",
|
|
14487
14701
|
"description": "Crops a picked image before it is uploaded, as the dashboard's image fields do (main's ImageUpload): the\nwhole image with a box of `aspect` over it, 90% of the image and centred to start. Drag the box to move it,\na corner to resize it, or move it with the arrow keys. Crop draws the boxed area to a canvas, shrinks it so\nits longer side is at most `maxDimension`, and calls `onCrop` with the new file. Put it beside a\n`FileUpload`: open it with the picked file, and upload what `onCrop` returns. It stays mounted and toggles\n`open`; its state starts fresh for every file.",
|
|
14488
14702
|
"importPath": "@dodopayments/ui/image-crop",
|
|
14489
14703
|
"exports": [
|
|
@@ -14563,6 +14777,7 @@
|
|
|
14563
14777
|
"title": "Grid",
|
|
14564
14778
|
"category": "Layout",
|
|
14565
14779
|
"status": "stable",
|
|
14780
|
+
"level": "atom",
|
|
14566
14781
|
"description": "Composite (the primitives have no Grid): layout only, on the Tailwind spacing scale.\nEqual-width columns (1-4) with a gap from the spacing scale. Columns follow the width the grid\nis given (container queries), not the viewport, so one grid works in a page, a card or a sidebar.\nIt is wrapped in a full-width size container (`data-slot=\"grid-container\"`); `className`,\n`render` and other props go to the grid element itself.",
|
|
14567
14782
|
"importPath": "@dodopayments/ui/grid",
|
|
14568
14783
|
"exports": [
|
|
@@ -14664,6 +14879,7 @@
|
|
|
14664
14879
|
"title": "Copyable ID",
|
|
14665
14880
|
"category": "Data display",
|
|
14666
14881
|
"status": "stable",
|
|
14882
|
+
"level": "organism",
|
|
14667
14883
|
"description": "An ID or secret the merchant can copy, in Geist Mono 12: the Dodo Nest Copyable ID. `inline` (default) for rails,\ntables and headers, `field` for long references, `chip` with a `label` for an entity header, and `secret` masked\nwith a reveal button. A `Tooltip` primitive shows the full value (except for a secret) and a ghost icon copy\n`Button` copies it, turning into a green check for 2 s. Clicks on the buttons do not bubble to a clickable parent\nrow. An empty `value` renders a dash.",
|
|
14668
14884
|
"importPath": "@dodopayments/ui/copyable-id",
|
|
14669
14885
|
"exports": [
|
|
@@ -14831,6 +15047,7 @@
|
|
|
14831
15047
|
"title": "Money",
|
|
14832
15048
|
"category": "Data display",
|
|
14833
15049
|
"status": "stable",
|
|
15050
|
+
"level": "molecule",
|
|
14834
15051
|
"description": "A formatted amount from integer minor units and an ISO 4217 code: the decimals follow the\ncurrency's exponent (two for USD, none for JPY, three for KWD), digits are `tabular-nums` and\nnegatives use the true minus sign. Refunds and other negatives are muted, never red; red is only\nfor an explicit `status=\"failed\"`. `compact` shortens the amount and shows the full value in a\n`Tooltip`; `blur` hides it until hovered or focused, for balances on shared screens.\n\n`compact` and `blur` render a `<button>` (a tab stop, `aria-pressed` while a blurred amount is\npinned open), so do not place them inside a link, button or clickable row or card: use a plain\namount there.",
|
|
14835
15052
|
"importPath": "@dodopayments/ui/money",
|
|
14836
15053
|
"exports": [
|
|
@@ -14939,7 +15156,11 @@
|
|
|
14939
15156
|
"slug": "fx-conversion",
|
|
14940
15157
|
"title": "FX Conversion",
|
|
14941
15158
|
"category": "Data display",
|
|
14942
|
-
"status": "
|
|
15159
|
+
"status": "deprecated",
|
|
15160
|
+
"deprecated": {
|
|
15161
|
+
"since": "1.8.0"
|
|
15162
|
+
},
|
|
15163
|
+
"level": "organism",
|
|
14943
15164
|
"description": "A currency conversion with the settlement amount first: the converted `to` amount as the primary\nfigure, the `from` amount it came from, the rate (\"1 USD = 83.12 INR\") with the `Timestamp` it was\nquoted at, and an optional live countdown while the rate is locked (`lockedUntil`). Amounts are\ninteger minor units rendered by `Money`.",
|
|
14944
15165
|
"importPath": "@dodopayments/ui/fx-conversion",
|
|
14945
15166
|
"exports": [
|
|
@@ -15026,6 +15247,7 @@
|
|
|
15026
15247
|
"title": "Input",
|
|
15027
15248
|
"category": "Forms",
|
|
15028
15249
|
"status": "stable",
|
|
15250
|
+
"level": "organism",
|
|
15029
15251
|
"description": "The Dodo Nest Input. Lets the merchant type a value: one line (text, search, URLs, phone), several lines\n(`type=\"textarea\"`), a list of chips (`type=\"chips\"`, typed, or picked from `suggestions`), an amount in minor\nunits (`type=\"money\"`), a phone number with a country picker (`type=\"phone\"`) or a GSTIN / ABN (`type=\"tax-id\"`). A flat field on the panel: 1px Border/Primary, Radius/Medium,\na brand ring on focus, a red ring when invalid (the placeholder stays muted), grey (Surface/Secondary) when read-only. Every Input\nis 36 tall; a one-line input can be the compact `size=\"sm\"` (28), or `size=\"code\"` (56, large centred monospace) for one code read off another screen. A one-line input takes icons, an inline `prefix` / `suffix`,\na boxed `addon`, `prefixSelect` / `suffixSelect` and a `shortcut`; read-only shows a copy button (`copyable={false}` hides it,\nwhen the page already offers its own copy action). With\n`suggestions` it suggests values in a list while the user types (an autocomplete; the value stays free text). Inside\na `Field` it picks up the label, description and validation state.",
|
|
15030
15252
|
"importPath": "@dodopayments/ui/input",
|
|
15031
15253
|
"exports": [
|
|
@@ -15240,6 +15462,7 @@
|
|
|
15240
15462
|
"title": "Input group",
|
|
15241
15463
|
"category": "Forms",
|
|
15242
15464
|
"status": "stable",
|
|
15465
|
+
"level": "organism",
|
|
15243
15466
|
"description": "One bordered field holding inputs, text addons and buttons (primitive `InputGroup`): prefixes and\nsuffixes (`InputGroupAddon`), joined inputs (several `InputGroupInput`s) and attached actions\n(`InputGroupButton`). Renders a `<div role=\"group\">`; give it `aria-label` or `aria-labelledby`\nwhen the parts share one label.",
|
|
15244
15467
|
"importPath": "@dodopayments/ui/input-group",
|
|
15245
15468
|
"exports": [
|
|
@@ -15443,6 +15666,7 @@
|
|
|
15443
15666
|
"title": "Kbd",
|
|
15444
15667
|
"category": "Typography",
|
|
15445
15668
|
"status": "stable",
|
|
15669
|
+
"level": "atom",
|
|
15446
15670
|
"description": "A keyboard key, e.g. The `⌘K` hint next to a search field: the `Kbd` primitive. Renders a `<kbd>`;\nwrap the keys of a shortcut in `KbdGroup`. Purely visual: it does not register the shortcut.",
|
|
15447
15671
|
"importPath": "@dodopayments/ui/kbd",
|
|
15448
15672
|
"exports": [
|
|
@@ -15496,6 +15720,7 @@
|
|
|
15496
15720
|
"title": "Menu",
|
|
15497
15721
|
"category": "Overlays",
|
|
15498
15722
|
"status": "stable",
|
|
15723
|
+
"level": "atom",
|
|
15499
15724
|
"description": "The floating list of actions (the `MenuPopup` primitive: portal + positioner + popup): Surface/Overlay,\nRadius/Large, 160 to 320 wide, scrolls past 320 tall. With `mobileSheet` it opens below 640px as a bottom sheet\nover a scrim, full width, with the same items. Holds `MenuItem`, `MenuLinkItem`, `MenuCheckboxItem`, `MenuRadioGroup`,\n`MenuGroup`, `MenuSeparator` and `MenuSub`.",
|
|
15500
15725
|
"importPath": "@dodopayments/ui/menu",
|
|
15501
15726
|
"exports": [
|
|
@@ -16576,6 +16801,7 @@
|
|
|
16576
16801
|
"title": "OTP Field",
|
|
16577
16802
|
"category": "Forms",
|
|
16578
16803
|
"status": "stable",
|
|
16804
|
+
"level": "atom",
|
|
16579
16805
|
"description": "One-time code input split into single-character cells (email/SMS verification, 2FA), built on the `OTPField`\nprimitive: 48 × 48 cells, 8 apart, that shrink to 40 in a narrow column (Dodo Nest OTP input). Renders\n`length` cells unless you pass `OtpFieldInput` / `OtpFieldSeparator` children. Put `id` on the field and point a\n`<label htmlFor>` at it: the id lands on the first cell, and the other cells are labelled \"Character N of LEN\".\n\nMotion (Figma OTP input > Motion): a typed digit slides up into its cell and a deleted one falls out; the focused\ncell springs up to 1.06 with a blinking caret; a pasted code fills the cells one after the other; a refused code\n(`status=\"error\"`) flashes red, holds, then clears right to left; an accepted code (`status=\"success\"`) draws a\ngreen ring round every cell. Reduced motion keeps only the colour changes.",
|
|
16580
16806
|
"importPath": "@dodopayments/ui/otp-field",
|
|
16581
16807
|
"exports": [
|
|
@@ -16832,6 +17058,7 @@
|
|
|
16832
17058
|
"title": "Popover",
|
|
16833
17059
|
"category": "Overlays",
|
|
16834
17060
|
"status": "stable",
|
|
17061
|
+
"level": "organism",
|
|
16835
17062
|
"description": "The floating tray (the `PopoverPopup` primitive: portal + positioner + popup + viewport). Lay it out\nas `PopoverHeader` (title chin), `PopoverPanel` (the white content panel) and, for `sm`, an optional\n`PopoverFooter` (Clear / Filter on the grey). Add a `PopoverTitle` so the dialog has an accessible\nname. It rises from the trigger side as it opens.",
|
|
16836
17063
|
"importPath": "@dodopayments/ui/popover",
|
|
16837
17064
|
"exports": [
|
|
@@ -17354,6 +17581,7 @@
|
|
|
17354
17581
|
"title": "Progress",
|
|
17355
17582
|
"category": "Feedback",
|
|
17356
17583
|
"status": "stable",
|
|
17584
|
+
"level": "atom",
|
|
17357
17585
|
"description": "Shows how far something has got, built on the `Progress` primitive (Base UI, `role=\"progressbar\"`): a 6px,\nfull-radius bar that fills its container (Dodo Nest Progress bar). Pass `value={null}` for an indeterminate\nbar, `segments` for a segmented bar such as the Payouts balance, or `steps` for one bar per step of a flow. Name it with a `ProgressLabel` child or\n`aria-label`; `ProgressLabel` and `ProgressValue` children sit in a row above the track. The fill eases to each\nnew value (`--motion-duration-slow`, no motion with reduced motion), and `completeLabel` announces the end,\nafter interior.dev's progress bar (https://www.interior.dev/docs/progress-bar).",
|
|
17358
17586
|
"importPath": "@dodopayments/ui/progress",
|
|
17359
17587
|
"exports": [
|
|
@@ -17553,6 +17781,7 @@
|
|
|
17553
17781
|
"title": "Quantity stepper",
|
|
17554
17782
|
"category": "Forms",
|
|
17555
17783
|
"status": "stable",
|
|
17784
|
+
"level": "atom",
|
|
17556
17785
|
"description": "A whole number between − and + buttons for picking how many of something (Figma: Quantity stepper).\nTwo sizes: `default` 24 high like Button xs (28 below `sm`), and `lg` the height of Button lg (36,\nshorter in compact density) for a row with a lg button. The value hugs its digits, and at 0 it shows 0.\nBuilt on the Base UI `NumberField` parts: the value is a number input (`aria-roledescription`\n\"Number field\") and the single tab stop. ArrowUp / ArrowDown step by `step`, Home / End jump to\n`min` / `max`, and the − / + buttons disable at the bounds. `onValueChange` reports `null` while the\nvalue is cleared. `id` lands on the value, so a `<label htmlFor>` names it; otherwise pass `aria-label`.\n\nA press on − / + (or the mouse wheel with `allowWheelScrub`) spins the digits with NumberFlow over\n`duration-slow`; holding a button repeats without spinning. While the user edits the value, the plain\ninput shows instead, so typing and arrow-key steps never animate. The animated copy is `aria-hidden`.",
|
|
17557
17786
|
"importPath": "@dodopayments/ui/quantity-stepper",
|
|
17558
17787
|
"exports": [
|
|
@@ -17784,7 +18013,8 @@
|
|
|
17784
18013
|
"title": "Link",
|
|
17785
18014
|
"category": "Navigation",
|
|
17786
18015
|
"status": "stable",
|
|
17787
|
-
"
|
|
18016
|
+
"level": "atom",
|
|
18017
|
+
"description": "Navigates somewhere (Dodo Nest Link). `inline` underlines words inside a sentence and wraps with it;\n`entity` has no underline and a trailing arrow, for “View all” and IDs, and truncates on one line.\nBlue (`accent`) by default, red (`error`) next to a destructive or warning message. An inline link takes\nthe size of its sentence; an entity link is always 12. Keep the full stop outside the link.\n\nRenders an `<a>`; pass a router link through `render` (`render={<NextLink href=\"/payments\" />}`) to\nkeep client-side navigation.",
|
|
17788
18018
|
"importPath": "@dodopayments/ui/link",
|
|
17789
18019
|
"exports": [
|
|
17790
18020
|
"DODO_LINK_DEFAULT_VARIANTS",
|
|
@@ -17796,7 +18026,7 @@
|
|
|
17796
18026
|
"parts": [
|
|
17797
18027
|
{
|
|
17798
18028
|
"name": "Link",
|
|
17799
|
-
"description": "Navigates somewhere (Dodo Nest Link). `inline` underlines words inside a sentence and wraps with it;\n`entity` has no underline and a trailing arrow, for “View all” and IDs, and truncates on one line.\nBlue (`accent`) by default, red (`error`) next to a destructive or warning message. An inline link takes\nthe size of its sentence; an entity link is always
|
|
18029
|
+
"description": "Navigates somewhere (Dodo Nest Link). `inline` underlines words inside a sentence and wraps with it;\n`entity` has no underline and a trailing arrow, for “View all” and IDs, and truncates on one line.\nBlue (`accent`) by default, red (`error`) next to a destructive or warning message. An inline link takes\nthe size of its sentence; an entity link is always 12. Keep the full stop outside the link.\n\nRenders an `<a>`; pass a router link through `render` (`render={<NextLink href=\"/payments\" />}`) to\nkeep client-side navigation.",
|
|
17800
18030
|
"props": [
|
|
17801
18031
|
{
|
|
17802
18032
|
"name": "external",
|
|
@@ -17845,7 +18075,7 @@
|
|
|
17845
18075
|
},
|
|
17846
18076
|
{
|
|
17847
18077
|
"value": "entity",
|
|
17848
|
-
"description": "Labels/
|
|
18078
|
+
"description": "Labels/Secondary (12) and a 12 trailing arrow, for “View all” and IDs that open a page. No underline until hover, when it fades in under the label. Keeps one line and truncates."
|
|
17849
18079
|
}
|
|
17850
18080
|
],
|
|
17851
18081
|
"default": "\"inline\""
|
|
@@ -17877,6 +18107,7 @@
|
|
|
17877
18107
|
"title": "Logo",
|
|
17878
18108
|
"category": "Brand",
|
|
17879
18109
|
"status": "stable",
|
|
18110
|
+
"level": "atom",
|
|
17880
18111
|
"description": "The Dodo Payments logo (mark, wordmark or lockup) drawn as inline SVG. Size steps, colours and\nclear space are built in, so the artwork cannot be stretched, recoloured or crowded. It is an\nimage named \"Dodo Payments\" unless `decorative` hides it from assistive technology.",
|
|
17881
18112
|
"importPath": "@dodopayments/ui/logo",
|
|
17882
18113
|
"exports": [
|
|
@@ -18015,6 +18246,7 @@
|
|
|
18015
18246
|
"title": "Rich text editor",
|
|
18016
18247
|
"category": "Forms",
|
|
18017
18248
|
"status": "stable",
|
|
18249
|
+
"level": "molecule",
|
|
18018
18250
|
"description": "Formatted text field for product and collection descriptions, stored as markdown (Dodo Nest Rich text editor).\nA Surface/Primary frame with a 1px Border/Primary and a 12px radius; the grey strip on top holds the text style\nmenu (Paragraph, Heading 1–3), bold, italic, underline and text colour, then strikethrough, lists and quote. The\nbody is a WYSIWYG editor (Tiptap): text shows formatted as you type, the toolbar formats the selection or the\ncurrent block, and Cmd/Ctrl+B, I, U and undo / redo work. It grows with its content (padding 12, at least 120\ntall). A format that is on at the selection shows pressed. Focus draws the Border/Brand-primary ring and the focus\nhalo. `value` stays markdown, with `<u>…</u>` underline and `<span data-color=\"…\">` colour, so `RichTextContent`\nrenders it. Put it in a `Field`: the label focuses it and the description and error describe it.",
|
|
18019
18251
|
"importPath": "@dodopayments/ui/rich-text-editor",
|
|
18020
18252
|
"exports": [
|
|
@@ -18262,6 +18494,7 @@
|
|
|
18262
18494
|
"title": "Pagination",
|
|
18263
18495
|
"category": "Navigation",
|
|
18264
18496
|
"status": "stable",
|
|
18497
|
+
"level": "organism",
|
|
18265
18498
|
"description": "Moves through the rows of a table (Dodo Nest Pagination): an optional \"Rows per page\" select, the\nrange label (\"Viewing (1 – 10)\", or \"Page 12\" where the total is unknown) and previous / next arrows, with\noptional first / last page buttons around them (`onFirst`, `onLast`).\nPlace it 16 below the table; it fills the table's width. The arrow that cannot go further is\ndisabled, not hidden. When the row is too narrow the range and arrows wrap under the select.\n\nIt holds no state: pass the range, `hasPrevious` / `hasNext` and the handlers. For TanStack tables use\n`DataGridPagination`, which works them out from the table.",
|
|
18266
18499
|
"importPath": "@dodopayments/ui/pagination",
|
|
18267
18500
|
"exports": [
|
|
@@ -18390,7 +18623,8 @@
|
|
|
18390
18623
|
"title": "App top bar",
|
|
18391
18624
|
"category": "Navigation",
|
|
18392
18625
|
"status": "stable",
|
|
18393
|
-
"
|
|
18626
|
+
"level": "organism",
|
|
18627
|
+
"description": "The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command\npalette), Dodo Games, Milestones (Setup guide while the business is setting up), Dodo AI, chat, theme,\nnotifications and the account on the right. Below a 672px bar it collapses as old-main's phone bar: a menu button opens the sidebar,\nsearch becomes an icon, Setup guide, Dodo AI and chat stay as buttons, Games and Milestones leave the bar and the\ntheme moves into the account menu (`AppTopBarThemeItem`). It has no fill: put it first in the main panel.",
|
|
18394
18628
|
"importPath": "@dodopayments/ui/app-top-bar",
|
|
18395
18629
|
"exports": [
|
|
18396
18630
|
"AppTopBar",
|
|
@@ -18402,6 +18636,8 @@
|
|
|
18402
18636
|
"AppTopBarProps",
|
|
18403
18637
|
"AppTopBarSupportItem",
|
|
18404
18638
|
"AppTopBarSupportItemProps",
|
|
18639
|
+
"AppTopBarThemeItem",
|
|
18640
|
+
"AppTopBarThemeItemProps",
|
|
18405
18641
|
"AppTopBarUser",
|
|
18406
18642
|
"DODO_APP_TOP_BAR_DEFAULT_VARIANTS",
|
|
18407
18643
|
"DODO_APP_TOP_BAR_VARIANTS"
|
|
@@ -18409,7 +18645,7 @@
|
|
|
18409
18645
|
"parts": [
|
|
18410
18646
|
{
|
|
18411
18647
|
"name": "AppTopBar",
|
|
18412
|
-
"description": "The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command\npalette), Dodo Games, Milestones (Setup guide while the business is setting up), Dodo AI, chat, theme,\nnotifications and the account on the right. Below a 672px bar it collapses: a menu button opens the sidebar,\nsearch becomes an icon
|
|
18648
|
+
"description": "The bar at the top of every dashboard page (Dodo Nest App top bar): search on the left (opens the Command\npalette), Dodo Games, Milestones (Setup guide while the business is setting up), Dodo AI, chat, theme,\nnotifications and the account on the right. Below a 672px bar it collapses as old-main's phone bar: a menu button opens the sidebar,\nsearch becomes an icon, Setup guide, Dodo AI and chat stay as buttons, Games and Milestones leave the bar and the\ntheme moves into the account menu (`AppTopBarThemeItem`). It has no fill: put it first in the main panel.",
|
|
18413
18649
|
"props": [
|
|
18414
18650
|
{
|
|
18415
18651
|
"name": "account",
|
|
@@ -18691,6 +18927,20 @@
|
|
|
18691
18927
|
"source": "dodo"
|
|
18692
18928
|
}
|
|
18693
18929
|
]
|
|
18930
|
+
},
|
|
18931
|
+
{
|
|
18932
|
+
"name": "AppTopBarThemeItem",
|
|
18933
|
+
"description": "Old-main's theme item for the account menu on the mobile row, where the bar has no theme toggle: a moon and\n\"Dark mode\" in light, a sun and \"Light mode\" in dark. Put it in `account` where it belongs; it renders nothing\non desktop.",
|
|
18934
|
+
"props": [
|
|
18935
|
+
{
|
|
18936
|
+
"name": "labels",
|
|
18937
|
+
"type": "{ dark?: string | undefined; light?: string | undefined; }",
|
|
18938
|
+
"required": false,
|
|
18939
|
+
"default": "{ dark: \"Dark mode\", light: \"Light mode\" }",
|
|
18940
|
+
"description": "",
|
|
18941
|
+
"source": "dodo"
|
|
18942
|
+
}
|
|
18943
|
+
]
|
|
18694
18944
|
}
|
|
18695
18945
|
],
|
|
18696
18946
|
"examples": [
|
|
@@ -18718,6 +18968,7 @@
|
|
|
18718
18968
|
"title": "Radio Group",
|
|
18719
18969
|
"category": "Forms",
|
|
18720
18970
|
"status": "stable",
|
|
18971
|
+
"level": "atom",
|
|
18721
18972
|
"description": "A set of mutually exclusive options: exactly one `Radio` can be selected. Built on the primitives\nRadioGroup (Base UI, `role=\"radiogroup\"`): Tab moves focus into the group and arrow keys move the\nselection. Name it with `aria-labelledby` or `aria-label`; with `name` the selected `value` is\nsubmitted with the surrounding form. Options stack in a column; pass `flex-row flex-wrap` to lay them\nout in a row. On coarse pointers (touch) the gap between options grows to 32px so the 44px touch\ntargets of neighbouring radios never overlap; override it with `pointer-coarse:gap-*`.\nA clicked option's dot springs in and the previous one fades out; selection with the keyboard\n(arrow keys, Space) switches the dot instantly.",
|
|
18722
18973
|
"importPath": "@dodopayments/ui/radio-group",
|
|
18723
18974
|
"exports": [
|
|
@@ -19021,6 +19272,7 @@
|
|
|
19021
19272
|
"title": "Select",
|
|
19022
19273
|
"category": "Forms",
|
|
19023
19274
|
"status": "stable",
|
|
19275
|
+
"level": "molecule",
|
|
19024
19276
|
"description": "The field (Figma `container`) that opens the list: put a `SelectValue` inside. 36 tall, or 28 with `size=\"sm\"`; the caret turns up\nwhile the list is open; `aria-invalid` (or an invalid `Field`) shows the error border. `variant=\"compact\"` is a\nborderless 32 trigger that hugs its value, for a language or currency switcher (with an `icon` or a flag).",
|
|
19025
19277
|
"importPath": "@dodopayments/ui/select",
|
|
19026
19278
|
"exports": [
|
|
@@ -19594,175 +19846,1025 @@
|
|
|
19594
19846
|
"docsUrl": "/components/select"
|
|
19595
19847
|
},
|
|
19596
19848
|
{
|
|
19597
|
-
"slug": "
|
|
19598
|
-
"title": "
|
|
19599
|
-
"category": "
|
|
19600
|
-
"status": "
|
|
19601
|
-
"
|
|
19602
|
-
"
|
|
19849
|
+
"slug": "combobox",
|
|
19850
|
+
"title": "Combobox",
|
|
19851
|
+
"category": "Forms",
|
|
19852
|
+
"status": "beta",
|
|
19853
|
+
"level": "atom",
|
|
19854
|
+
"description": "Internal: the engine of `Select` with `searchable` or `multiple`, and of `Input type=\"chips\"` with `suggestions`.\nRoot of a searchable select (primitive `Combobox`): users filter `items` by typing and pick one value,\nor several with `multiple`. Items shaped `{ value, label }` show their label in the input; for\nother shapes pass `itemToStringLabel`.",
|
|
19855
|
+
"importPath": "@dodopayments/ui/combobox",
|
|
19603
19856
|
"exports": [
|
|
19604
|
-
"
|
|
19605
|
-
"
|
|
19606
|
-
"
|
|
19607
|
-
"
|
|
19608
|
-
"
|
|
19609
|
-
"
|
|
19610
|
-
"
|
|
19611
|
-
"
|
|
19612
|
-
"
|
|
19613
|
-
"
|
|
19614
|
-
"
|
|
19615
|
-
"
|
|
19616
|
-
"
|
|
19617
|
-
"
|
|
19618
|
-
"
|
|
19619
|
-
"
|
|
19620
|
-
"
|
|
19621
|
-
"
|
|
19622
|
-
"
|
|
19623
|
-
"
|
|
19624
|
-
"
|
|
19625
|
-
"
|
|
19626
|
-
"
|
|
19627
|
-
"
|
|
19857
|
+
"Combobox",
|
|
19858
|
+
"ComboboxChip",
|
|
19859
|
+
"ComboboxChipProps",
|
|
19860
|
+
"ComboboxChips",
|
|
19861
|
+
"ComboboxChipsInput",
|
|
19862
|
+
"ComboboxChipsInputProps",
|
|
19863
|
+
"ComboboxChipsPresence",
|
|
19864
|
+
"ComboboxChipsPresenceProps",
|
|
19865
|
+
"ComboboxChipsProps",
|
|
19866
|
+
"ComboboxContent",
|
|
19867
|
+
"ComboboxContentProps",
|
|
19868
|
+
"ComboboxEmpty",
|
|
19869
|
+
"ComboboxEmptyProps",
|
|
19870
|
+
"ComboboxGroup",
|
|
19871
|
+
"ComboboxGroupLabel",
|
|
19872
|
+
"ComboboxGroupLabelProps",
|
|
19873
|
+
"ComboboxGroupProps",
|
|
19874
|
+
"ComboboxInput",
|
|
19875
|
+
"ComboboxInputProps",
|
|
19876
|
+
"ComboboxItem",
|
|
19877
|
+
"ComboboxItemProps",
|
|
19878
|
+
"ComboboxLabel",
|
|
19879
|
+
"ComboboxLabelProps",
|
|
19880
|
+
"ComboboxList",
|
|
19881
|
+
"ComboboxListProps",
|
|
19882
|
+
"ComboboxPositionerProps",
|
|
19883
|
+
"ComboboxProps",
|
|
19884
|
+
"ComboboxSeparator",
|
|
19885
|
+
"ComboboxSeparatorProps",
|
|
19886
|
+
"ComboboxTrigger",
|
|
19887
|
+
"ComboboxTriggerProps",
|
|
19888
|
+
"ComboboxValue"
|
|
19628
19889
|
],
|
|
19629
19890
|
"parts": [
|
|
19630
19891
|
{
|
|
19631
|
-
"name": "
|
|
19632
|
-
"description": "
|
|
19892
|
+
"name": "Combobox",
|
|
19893
|
+
"description": "Internal: the engine of `Select` with `searchable` or `multiple`, and of `Input type=\"chips\"` with `suggestions`.\nRoot of a searchable select (primitive `Combobox`): users filter `items` by typing and pick one value,\nor several with `multiple`. Items shaped `{ value, label }` show their label in the input; for\nother shapes pass `itemToStringLabel`.",
|
|
19633
19894
|
"props": [
|
|
19634
19895
|
{
|
|
19635
|
-
"name": "
|
|
19636
|
-
"type": "
|
|
19896
|
+
"name": "actionsRef",
|
|
19897
|
+
"type": "RefObject<Actions | null>",
|
|
19637
19898
|
"required": false,
|
|
19638
|
-
"description": "
|
|
19639
|
-
"source": "
|
|
19899
|
+
"description": "A ref to imperative actions.\n- `unmount`: Manually unmounts the combobox.\nCall this after any externally controlled closing animation finishes.",
|
|
19900
|
+
"source": "base-ui"
|
|
19640
19901
|
},
|
|
19641
19902
|
{
|
|
19642
|
-
"name": "
|
|
19903
|
+
"name": "autoComplete",
|
|
19643
19904
|
"type": "string",
|
|
19644
19905
|
"required": false,
|
|
19645
|
-
"
|
|
19646
|
-
"
|
|
19647
|
-
"source": "dodo"
|
|
19906
|
+
"description": "Provides a hint to the browser for autofill.",
|
|
19907
|
+
"source": "base-ui"
|
|
19648
19908
|
},
|
|
19649
19909
|
{
|
|
19650
|
-
"name": "
|
|
19910
|
+
"name": "autoHighlight",
|
|
19651
19911
|
"type": "boolean",
|
|
19652
19912
|
"required": false,
|
|
19653
19913
|
"default": "false",
|
|
19654
|
-
"description": "
|
|
19655
|
-
"source": "
|
|
19914
|
+
"description": "Whether the first matching item is highlighted automatically while filtering.",
|
|
19915
|
+
"source": "base-ui"
|
|
19656
19916
|
},
|
|
19657
19917
|
{
|
|
19658
|
-
"name": "
|
|
19659
|
-
"type": "
|
|
19918
|
+
"name": "defaultInputValue",
|
|
19919
|
+
"type": "string | number | readonly string[]",
|
|
19660
19920
|
"required": false,
|
|
19661
|
-
"description": "
|
|
19662
|
-
"source": "
|
|
19921
|
+
"description": "The uncontrolled input value when initially rendered.\n\nTo render a controlled input, use the `inputValue` prop instead.",
|
|
19922
|
+
"source": "base-ui"
|
|
19663
19923
|
},
|
|
19664
19924
|
{
|
|
19665
|
-
"name": "
|
|
19666
|
-
"type": "
|
|
19925
|
+
"name": "defaultOpen",
|
|
19926
|
+
"type": "boolean",
|
|
19667
19927
|
"required": false,
|
|
19668
|
-
"
|
|
19669
|
-
"
|
|
19670
|
-
"
|
|
19671
|
-
{
|
|
19672
|
-
"value": "md",
|
|
19673
|
-
"description": "400 wide: short forms and details. The default."
|
|
19674
|
-
},
|
|
19675
|
-
{
|
|
19676
|
-
"value": "lg",
|
|
19677
|
-
"description": "560 wide: longer forms. Side sheets only."
|
|
19678
|
-
},
|
|
19679
|
-
{
|
|
19680
|
-
"value": "xl",
|
|
19681
|
-
"description": "768 wide: a form with a code editor or a long checklist, such as a webhook endpoint. Side sheets only."
|
|
19682
|
-
}
|
|
19683
|
-
],
|
|
19684
|
-
"default": "\"md\""
|
|
19928
|
+
"default": "false",
|
|
19929
|
+
"description": "Whether the popup is initially open.\n\nTo render a controlled popup, use the `open` prop instead.",
|
|
19930
|
+
"source": "base-ui"
|
|
19685
19931
|
},
|
|
19686
19932
|
{
|
|
19687
|
-
"name": "
|
|
19688
|
-
"type": "
|
|
19933
|
+
"name": "defaultValue",
|
|
19934
|
+
"type": "ComboboxValueType<Value, Multiple> | null",
|
|
19689
19935
|
"required": false,
|
|
19690
|
-
"description": "",
|
|
19691
|
-
"source": "
|
|
19692
|
-
"values": [
|
|
19693
|
-
{
|
|
19694
|
-
"value": "side",
|
|
19695
|
-
"description": "A side panel for a task or record that keeps the page in view: refund, dispute, edit customer, new API key."
|
|
19696
|
-
},
|
|
19697
|
-
{
|
|
19698
|
-
"value": "full",
|
|
19699
|
-
"description": "Full screen for long multi-step flows (add bank account, verification): back, title, progress and close on top, a 664 column of Card sections, the actions below."
|
|
19700
|
-
}
|
|
19701
|
-
],
|
|
19702
|
-
"default": "\"side\""
|
|
19936
|
+
"description": "The uncontrolled selected value of the combobox when it's initially rendered.\n\nTo render a controlled combobox, use the `value` prop instead.",
|
|
19937
|
+
"source": "base-ui"
|
|
19703
19938
|
},
|
|
19704
19939
|
{
|
|
19705
|
-
"name": "
|
|
19706
|
-
"type": "boolean
|
|
19940
|
+
"name": "disabled",
|
|
19941
|
+
"type": "boolean",
|
|
19707
19942
|
"required": false,
|
|
19708
|
-
"
|
|
19943
|
+
"default": "false",
|
|
19944
|
+
"description": "Whether the component should ignore user interaction.",
|
|
19709
19945
|
"source": "base-ui"
|
|
19710
19946
|
},
|
|
19711
19947
|
{
|
|
19712
|
-
"name": "
|
|
19713
|
-
"type": "
|
|
19948
|
+
"name": "filter",
|
|
19949
|
+
"type": "((item: Item, query: string, itemToString?: ((item: Item) => string) | undefined) => boolean) | null",
|
|
19714
19950
|
"required": false,
|
|
19715
|
-
"description": "
|
|
19951
|
+
"description": "Filter function used to match items vs input query.\nReceives the source item, which is the derived value's item when `items` is a `createItems()`\ncollection, and the item itself otherwise.",
|
|
19716
19952
|
"source": "base-ui"
|
|
19717
19953
|
},
|
|
19718
19954
|
{
|
|
19719
|
-
"name": "
|
|
19720
|
-
"type": "
|
|
19955
|
+
"name": "filteredItems",
|
|
19956
|
+
"type": "readonly Item[] | readonly Group<Item>[]",
|
|
19721
19957
|
"required": false,
|
|
19722
|
-
"description": "
|
|
19958
|
+
"description": "Filtered items to display in the list.\nWhen provided, the list uses these items instead of filtering the `items` prop internally.\nWhen `items` is also provided, this array must preserve its flat or grouped structure.\nWith a `createItems()` collection, pass source items rather than derived values.\nNullish entries are not supported, as in `items`.\nUse when you want to control filtering logic externally with the `useFilter()` hook.",
|
|
19723
19959
|
"source": "base-ui"
|
|
19724
|
-
}
|
|
19725
|
-
]
|
|
19726
|
-
},
|
|
19727
|
-
{
|
|
19728
|
-
"name": "Sheet",
|
|
19729
|
-
"description": "Root of a sheet: a modal side panel (the `Sheet` primitive on Base UI Dialog). Controls open state\n(`open`/`onOpenChange` or `defaultOpen`).",
|
|
19730
|
-
"props": [
|
|
19960
|
+
},
|
|
19731
19961
|
{
|
|
19732
|
-
"name": "
|
|
19733
|
-
"type": "
|
|
19962
|
+
"name": "form",
|
|
19963
|
+
"type": "string",
|
|
19734
19964
|
"required": false,
|
|
19735
|
-
"description": "
|
|
19965
|
+
"description": "Identifies the form that owns the internal input.\nUseful when the combobox is rendered outside the form.",
|
|
19736
19966
|
"source": "base-ui"
|
|
19737
19967
|
},
|
|
19738
19968
|
{
|
|
19739
|
-
"name": "
|
|
19969
|
+
"name": "grid",
|
|
19740
19970
|
"type": "boolean",
|
|
19741
19971
|
"required": false,
|
|
19742
19972
|
"default": "false",
|
|
19743
|
-
"description": "Whether
|
|
19973
|
+
"description": "Whether list items are presented in a grid layout.\nWhen enabled, arrow keys navigate across rows and columns inferred from DOM rows.",
|
|
19744
19974
|
"source": "base-ui"
|
|
19745
19975
|
},
|
|
19746
19976
|
{
|
|
19747
|
-
"name": "
|
|
19748
|
-
"type": "
|
|
19977
|
+
"name": "highlightItemOnHover",
|
|
19978
|
+
"type": "boolean",
|
|
19749
19979
|
"required": false,
|
|
19750
|
-
"
|
|
19980
|
+
"default": "true",
|
|
19981
|
+
"description": "Whether moving the pointer over items should highlight them.\nDisabling this prop allows CSS `:hover` to be differentiated from the `:focus` (`data-highlighted`) state.",
|
|
19751
19982
|
"source": "base-ui"
|
|
19752
19983
|
},
|
|
19753
19984
|
{
|
|
19754
|
-
"name": "
|
|
19985
|
+
"name": "id",
|
|
19986
|
+
"type": "string",
|
|
19987
|
+
"required": false,
|
|
19988
|
+
"description": "The id of the component.",
|
|
19989
|
+
"source": "base-ui"
|
|
19990
|
+
},
|
|
19991
|
+
{
|
|
19992
|
+
"name": "inline",
|
|
19755
19993
|
"type": "boolean",
|
|
19756
19994
|
"required": false,
|
|
19757
19995
|
"default": "false",
|
|
19758
|
-
"description": "Whether
|
|
19996
|
+
"description": "Whether the list is rendered inline without using the component's own popup.\n\nSpecify `open` unconditionally in conjunction with this prop so the list is considered\nvisible: `<Combobox.Root inline open>`\n\nIn a `Combobox.Root` > `Dialog.Root` composition, bind the Combobox's `open` and\n`onOpenChange` props to the `Dialog`'s `open` and `onOpenChange` state instead so the\ncomponent resets its transient state (filter query, highlighted item, and input value) when\nthe dialog closes.",
|
|
19759
19997
|
"source": "base-ui"
|
|
19760
19998
|
},
|
|
19761
19999
|
{
|
|
19762
|
-
"name": "
|
|
19763
|
-
"type": "
|
|
20000
|
+
"name": "inputRef",
|
|
20001
|
+
"type": "Ref<HTMLInputElement>",
|
|
19764
20002
|
"required": false,
|
|
19765
|
-
"description": "A
|
|
20003
|
+
"description": "A ref to the hidden input element.",
|
|
20004
|
+
"source": "base-ui"
|
|
20005
|
+
},
|
|
20006
|
+
{
|
|
20007
|
+
"name": "inputValue",
|
|
20008
|
+
"type": "string | number | readonly string[]",
|
|
20009
|
+
"required": false,
|
|
20010
|
+
"description": "The input value of the combobox. Use when controlled.",
|
|
20011
|
+
"source": "base-ui"
|
|
20012
|
+
},
|
|
20013
|
+
{
|
|
20014
|
+
"name": "isItemEqualToValue",
|
|
20015
|
+
"type": "((itemValue: Value, value: Value) => boolean)",
|
|
20016
|
+
"required": false,
|
|
20017
|
+
"description": "Custom comparison logic used to determine if a combobox item value matches the current selected value. Useful when item values are objects without matching referentially.\nWith a `createItems()` collection, both arguments are derived values.\nDefaults to `Object.is` comparison.",
|
|
20018
|
+
"source": "base-ui"
|
|
20019
|
+
},
|
|
20020
|
+
{
|
|
20021
|
+
"name": "itemToStringLabel",
|
|
20022
|
+
"type": "((itemValue: Value) => string)",
|
|
20023
|
+
"required": false,
|
|
20024
|
+
"description": "When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for display in the input.\nIf the shape of the object is `{ value, label }`, the label will be used automatically without needing to specify this prop.\nWith a `createItems()` collection, this receives the derived value, and the collection's\n`getLabel` takes precedence for values it can resolve.",
|
|
20025
|
+
"source": "base-ui"
|
|
20026
|
+
},
|
|
20027
|
+
{
|
|
20028
|
+
"name": "itemToStringValue",
|
|
20029
|
+
"type": "((itemValue: Value) => string)",
|
|
20030
|
+
"required": false,
|
|
20031
|
+
"description": "When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for form submission.\nIf the shape of the object is `{ value, label }`, the value will be used automatically without needing to specify this prop.\nWith a `createItems()` collection, this receives the derived value.",
|
|
20032
|
+
"source": "base-ui"
|
|
20033
|
+
},
|
|
20034
|
+
{
|
|
20035
|
+
"name": "items",
|
|
20036
|
+
"type": "readonly any[] | readonly Group<any>[] | ComboboxItemCollection<Item, Value>",
|
|
20037
|
+
"required": false,
|
|
20038
|
+
"description": "The items to be displayed in the list.\nCan be a flat array of items, an array of groups with items, or a collection created by\nthe `createItems()` function, which derives each item's selection value and label.\nNullish entries are not supported: remove them from the data before passing it.",
|
|
20039
|
+
"source": "base-ui"
|
|
20040
|
+
},
|
|
20041
|
+
{
|
|
20042
|
+
"name": "limit",
|
|
20043
|
+
"type": "number",
|
|
20044
|
+
"required": false,
|
|
20045
|
+
"default": "-1",
|
|
20046
|
+
"description": "The maximum number of items to display in the list.",
|
|
20047
|
+
"source": "base-ui"
|
|
20048
|
+
},
|
|
20049
|
+
{
|
|
20050
|
+
"name": "locale",
|
|
20051
|
+
"type": "LocalesArgument",
|
|
20052
|
+
"required": false,
|
|
20053
|
+
"description": "The locale to use for string comparison.\nDefaults to the user's runtime locale.",
|
|
20054
|
+
"source": "base-ui"
|
|
20055
|
+
},
|
|
20056
|
+
{
|
|
20057
|
+
"name": "loopFocus",
|
|
20058
|
+
"type": "boolean",
|
|
20059
|
+
"required": false,
|
|
20060
|
+
"default": "true",
|
|
20061
|
+
"description": "Whether to loop keyboard focus back to the input when the end of the list is reached while using the arrow keys. The first item can then be reached by pressing <kbd>ArrowDown</kbd> again from the input, or the last item can be reached by pressing <kbd>ArrowUp</kbd> from the input.\nThe input is always included in the focus loop per [ARIA Authoring Practices](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/).\nWhen disabled, focus does not move when on the last element and the user presses <kbd>ArrowDown</kbd>, or when on the first element and the user presses <kbd>ArrowUp</kbd>.",
|
|
20062
|
+
"source": "base-ui"
|
|
20063
|
+
},
|
|
20064
|
+
{
|
|
20065
|
+
"name": "modal",
|
|
20066
|
+
"type": "boolean",
|
|
20067
|
+
"required": false,
|
|
20068
|
+
"default": "false",
|
|
20069
|
+
"description": "Determines if the popup enters a modal state when open.\n- `true`: user interaction is limited to the popup: document page scroll is locked and pointer interactions on outside elements are disabled.\n- `false`: user interaction with the rest of the document is allowed.\n\nOn touch devices, a `true` modal blocks outside taps but leaves the page scrollable unless the popup spans nearly the full viewport width, matching native iOS behavior.",
|
|
20070
|
+
"source": "base-ui"
|
|
20071
|
+
},
|
|
20072
|
+
{
|
|
20073
|
+
"name": "multiple",
|
|
20074
|
+
"type": "Multiple",
|
|
20075
|
+
"required": false,
|
|
20076
|
+
"default": "false",
|
|
20077
|
+
"description": "Whether multiple items can be selected.",
|
|
20078
|
+
"source": "base-ui"
|
|
20079
|
+
},
|
|
20080
|
+
{
|
|
20081
|
+
"name": "name",
|
|
20082
|
+
"type": "string",
|
|
20083
|
+
"required": false,
|
|
20084
|
+
"description": "Identifies the field when a form is submitted.",
|
|
20085
|
+
"source": "base-ui"
|
|
20086
|
+
},
|
|
20087
|
+
{
|
|
20088
|
+
"name": "onInputValueChange",
|
|
20089
|
+
"type": "((inputValue: string, eventDetails: ChangeEventDetails) => void)",
|
|
20090
|
+
"required": false,
|
|
20091
|
+
"description": "Event handler called when the input value changes.",
|
|
20092
|
+
"source": "base-ui"
|
|
20093
|
+
},
|
|
20094
|
+
{
|
|
20095
|
+
"name": "onItemHighlighted",
|
|
20096
|
+
"type": "((highlightedValue: Value | undefined, eventDetails: HighlightEventDetails) => void)",
|
|
20097
|
+
"required": false,
|
|
20098
|
+
"description": "Callback fired when an item is highlighted or unhighlighted.\nReceives the highlighted item value (or `undefined` if no item is highlighted) and event details with a `reason` property describing why the highlight changed.\nThe `reason` can be:\n- `'keyboard'`: the highlight changed due to keyboard navigation.\n- `'pointer'`: the highlight changed due to pointer hovering.\n- `'none'`: the highlight changed programmatically.",
|
|
20099
|
+
"source": "base-ui"
|
|
20100
|
+
},
|
|
20101
|
+
{
|
|
20102
|
+
"name": "onOpenChange",
|
|
20103
|
+
"type": "((open: boolean, eventDetails: ChangeEventDetails) => void)",
|
|
20104
|
+
"required": false,
|
|
20105
|
+
"description": "Event handler called when the popup is opened or closed.",
|
|
20106
|
+
"source": "base-ui"
|
|
20107
|
+
},
|
|
20108
|
+
{
|
|
20109
|
+
"name": "onOpenChangeComplete",
|
|
20110
|
+
"type": "((open: boolean) => void)",
|
|
20111
|
+
"required": false,
|
|
20112
|
+
"description": "Event handler called after any animations complete when the popup is opened or closed.",
|
|
20113
|
+
"source": "base-ui"
|
|
20114
|
+
},
|
|
20115
|
+
{
|
|
20116
|
+
"name": "onValueChange",
|
|
20117
|
+
"type": "((value: ComboboxValueType<Value, Multiple> | (Multiple extends true ? never : null), eventDetails: ChangeEventDetails) => void)",
|
|
20118
|
+
"required": false,
|
|
20119
|
+
"description": "Event handler called when the selected value of the combobox changes.",
|
|
20120
|
+
"source": "base-ui"
|
|
20121
|
+
},
|
|
20122
|
+
{
|
|
20123
|
+
"name": "open",
|
|
20124
|
+
"type": "boolean",
|
|
20125
|
+
"required": false,
|
|
20126
|
+
"description": "Whether the popup is currently open. Use when controlled.",
|
|
20127
|
+
"source": "base-ui"
|
|
20128
|
+
},
|
|
20129
|
+
{
|
|
20130
|
+
"name": "openOnInputClick",
|
|
20131
|
+
"type": "boolean",
|
|
20132
|
+
"required": false,
|
|
20133
|
+
"default": "true",
|
|
20134
|
+
"description": "Whether the popup opens when clicking the input.",
|
|
20135
|
+
"source": "base-ui"
|
|
20136
|
+
},
|
|
20137
|
+
{
|
|
20138
|
+
"name": "readOnly",
|
|
20139
|
+
"type": "boolean",
|
|
20140
|
+
"required": false,
|
|
20141
|
+
"default": "false",
|
|
20142
|
+
"description": "Whether the user should be unable to choose a different option from the popup.",
|
|
20143
|
+
"source": "base-ui"
|
|
20144
|
+
},
|
|
20145
|
+
{
|
|
20146
|
+
"name": "required",
|
|
20147
|
+
"type": "boolean",
|
|
20148
|
+
"required": false,
|
|
20149
|
+
"default": "false",
|
|
20150
|
+
"description": "Whether the user must choose a value before submitting a form.",
|
|
20151
|
+
"source": "base-ui"
|
|
20152
|
+
},
|
|
20153
|
+
{
|
|
20154
|
+
"name": "value",
|
|
20155
|
+
"type": "ComboboxValueType<Value, Multiple> | null",
|
|
20156
|
+
"required": false,
|
|
20157
|
+
"description": "The selected value of the combobox. Use when controlled.",
|
|
20158
|
+
"source": "base-ui"
|
|
20159
|
+
},
|
|
20160
|
+
{
|
|
20161
|
+
"name": "virtualized",
|
|
20162
|
+
"type": "boolean",
|
|
20163
|
+
"required": false,
|
|
20164
|
+
"default": "false",
|
|
20165
|
+
"description": "Whether the items are being externally virtualized.",
|
|
20166
|
+
"source": "base-ui"
|
|
20167
|
+
}
|
|
20168
|
+
]
|
|
20169
|
+
},
|
|
20170
|
+
{
|
|
20171
|
+
"name": "ComboboxChip",
|
|
20172
|
+
"description": "One selected value inside `ComboboxChips` (primitive `ComboboxChip`), with a remove button.",
|
|
20173
|
+
"props": [
|
|
20174
|
+
{
|
|
20175
|
+
"name": "className",
|
|
20176
|
+
"type": "string",
|
|
20177
|
+
"required": false,
|
|
20178
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
20179
|
+
"source": "dodo"
|
|
20180
|
+
},
|
|
20181
|
+
{
|
|
20182
|
+
"name": "removeLabel",
|
|
20183
|
+
"type": "string",
|
|
20184
|
+
"required": false,
|
|
20185
|
+
"description": "Accessible name of the remove button. Defaults to `Remove <label>` for string labels, else `Remove`.",
|
|
20186
|
+
"source": "dodo"
|
|
20187
|
+
},
|
|
20188
|
+
{
|
|
20189
|
+
"name": "showRemove",
|
|
20190
|
+
"type": "boolean",
|
|
20191
|
+
"required": false,
|
|
20192
|
+
"default": "true",
|
|
20193
|
+
"description": "Render a remove button after the label.",
|
|
20194
|
+
"source": "dodo"
|
|
20195
|
+
},
|
|
20196
|
+
{
|
|
20197
|
+
"name": "render",
|
|
20198
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxChipState>",
|
|
20199
|
+
"required": false,
|
|
20200
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20201
|
+
"source": "base-ui"
|
|
20202
|
+
}
|
|
20203
|
+
]
|
|
20204
|
+
},
|
|
20205
|
+
{
|
|
20206
|
+
"name": "ComboboxChips",
|
|
20207
|
+
"description": "Field for `multiple` selection (primitive `ComboboxChips`): wraps the selected `ComboboxChip`s and a\n`ComboboxChipsInput`, usually rendered from a `ComboboxValue` function. Rows wrap as chips are\nadded; the list is anchored to it. Chips animate like `TagInput`: a new chip scales in and the\nothers reflow. Wrap the chips in `ComboboxChipsPresence` so a removed chip also fades out.",
|
|
20208
|
+
"props": [
|
|
20209
|
+
{
|
|
20210
|
+
"name": "className",
|
|
20211
|
+
"type": "string",
|
|
20212
|
+
"required": false,
|
|
20213
|
+
"description": "Classes for the field-styled box around the chips and the input.",
|
|
20214
|
+
"source": "dodo"
|
|
20215
|
+
},
|
|
20216
|
+
{
|
|
20217
|
+
"name": "startAddon",
|
|
20218
|
+
"type": "ReactNode",
|
|
20219
|
+
"required": false,
|
|
20220
|
+
"description": "Icon or text shown before the chips.",
|
|
20221
|
+
"source": "dodo"
|
|
20222
|
+
},
|
|
20223
|
+
{
|
|
20224
|
+
"name": "render",
|
|
20225
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxChipsState>",
|
|
20226
|
+
"required": false,
|
|
20227
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20228
|
+
"source": "base-ui"
|
|
20229
|
+
}
|
|
20230
|
+
]
|
|
20231
|
+
},
|
|
20232
|
+
{
|
|
20233
|
+
"name": "ComboboxChipsInput",
|
|
20234
|
+
"description": "The text input inside `ComboboxChips` (primitive `ComboboxChipsInput`). Fills the rest of the last row.",
|
|
20235
|
+
"props": [
|
|
20236
|
+
{
|
|
20237
|
+
"name": "className",
|
|
20238
|
+
"type": "string",
|
|
20239
|
+
"required": false,
|
|
20240
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
20241
|
+
"source": "dodo"
|
|
20242
|
+
},
|
|
20243
|
+
{
|
|
20244
|
+
"name": "size",
|
|
20245
|
+
"type": "\"default\" | \"sm\" | \"lg\"",
|
|
20246
|
+
"required": false,
|
|
20247
|
+
"description": "Matches the chips box height, like `Input`.",
|
|
20248
|
+
"source": "dodo"
|
|
20249
|
+
},
|
|
20250
|
+
{
|
|
20251
|
+
"name": "disabled",
|
|
20252
|
+
"type": "boolean",
|
|
20253
|
+
"required": false,
|
|
20254
|
+
"default": "false",
|
|
20255
|
+
"description": "Whether the component should ignore user interaction.",
|
|
20256
|
+
"source": "base-ui"
|
|
20257
|
+
},
|
|
20258
|
+
{
|
|
20259
|
+
"name": "render",
|
|
20260
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxInputState>",
|
|
20261
|
+
"required": false,
|
|
20262
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20263
|
+
"source": "base-ui"
|
|
20264
|
+
}
|
|
20265
|
+
]
|
|
20266
|
+
},
|
|
20267
|
+
{
|
|
20268
|
+
"name": "ComboboxChipsPresence",
|
|
20269
|
+
"description": "Keeps a removed `ComboboxChip` mounted while it fades out, so the other chips reflow around it (as in\n`TagInput`). Put it inside `ComboboxChips`, around the mapped chips only, not the input.",
|
|
20270
|
+
"props": []
|
|
20271
|
+
},
|
|
20272
|
+
{
|
|
20273
|
+
"name": "ComboboxContent",
|
|
20274
|
+
"description": "The floating panel (primitive `ComboboxPopup`). Holds `ComboboxEmpty` and `ComboboxList`, plus a\n`ComboboxInput` first when the input lives inside the popup. Anchored to the input group, the\nchips or the trigger by default.",
|
|
20275
|
+
"props": [
|
|
20276
|
+
{
|
|
20277
|
+
"name": "align",
|
|
20278
|
+
"type": "Align",
|
|
20279
|
+
"required": false,
|
|
20280
|
+
"description": "",
|
|
20281
|
+
"source": "dodo"
|
|
20282
|
+
},
|
|
20283
|
+
{
|
|
20284
|
+
"name": "alignOffset",
|
|
20285
|
+
"type": "number | OffsetFunction",
|
|
20286
|
+
"required": false,
|
|
20287
|
+
"description": "",
|
|
20288
|
+
"source": "dodo"
|
|
20289
|
+
},
|
|
20290
|
+
{
|
|
20291
|
+
"name": "anchor",
|
|
20292
|
+
"type": "Element | VirtualElement | RefObject<Element | null> | (() => Element | VirtualElement | null) | null",
|
|
20293
|
+
"required": false,
|
|
20294
|
+
"description": "",
|
|
20295
|
+
"source": "dodo"
|
|
20296
|
+
},
|
|
20297
|
+
{
|
|
20298
|
+
"name": "className",
|
|
20299
|
+
"type": "string",
|
|
20300
|
+
"required": false,
|
|
20301
|
+
"description": "Classes for the popup surface.",
|
|
20302
|
+
"source": "dodo"
|
|
20303
|
+
},
|
|
20304
|
+
{
|
|
20305
|
+
"name": "collisionAvoidance",
|
|
20306
|
+
"type": "CollisionAvoidance",
|
|
20307
|
+
"required": false,
|
|
20308
|
+
"description": "",
|
|
20309
|
+
"source": "dodo"
|
|
20310
|
+
},
|
|
20311
|
+
{
|
|
20312
|
+
"name": "portalProps",
|
|
20313
|
+
"type": "ComboboxPortalProps",
|
|
20314
|
+
"required": false,
|
|
20315
|
+
"description": "Props of the portal, e.g. `container` to render the list inside an element.",
|
|
20316
|
+
"source": "dodo"
|
|
20317
|
+
},
|
|
20318
|
+
{
|
|
20319
|
+
"name": "positionMethod",
|
|
20320
|
+
"type": "\"fixed\" | \"absolute\"",
|
|
20321
|
+
"required": false,
|
|
20322
|
+
"description": "",
|
|
20323
|
+
"source": "dodo"
|
|
20324
|
+
},
|
|
20325
|
+
{
|
|
20326
|
+
"name": "positionerProps",
|
|
20327
|
+
"type": "ComboboxPositionerProps",
|
|
20328
|
+
"required": false,
|
|
20329
|
+
"description": "Positioner options (side, align, offsets, anchor). Same as passing them directly.",
|
|
20330
|
+
"source": "dodo"
|
|
20331
|
+
},
|
|
20332
|
+
{
|
|
20333
|
+
"name": "side",
|
|
20334
|
+
"type": "Side",
|
|
20335
|
+
"required": false,
|
|
20336
|
+
"description": "",
|
|
20337
|
+
"source": "dodo"
|
|
20338
|
+
},
|
|
20339
|
+
{
|
|
20340
|
+
"name": "sideOffset",
|
|
20341
|
+
"type": "number | OffsetFunction",
|
|
20342
|
+
"required": false,
|
|
20343
|
+
"description": "",
|
|
20344
|
+
"source": "dodo"
|
|
20345
|
+
},
|
|
20346
|
+
{
|
|
20347
|
+
"name": "finalFocus",
|
|
20348
|
+
"type": "boolean | RefObject<HTMLElement | null> | ((closeType: InteractionType) => boolean | void | HTMLElement | null)",
|
|
20349
|
+
"required": false,
|
|
20350
|
+
"description": "Determines the element to focus when the popup is closed.\n\n- `false`: Do not move focus.\n- `true`: Move focus based on the default behavior (trigger or previously focused element).\n- `RefObject`: Move focus to the ref element.\n- `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).\n Return an element to focus, `true` to use the default behavior, or `false`/`undefined` to do nothing.",
|
|
20351
|
+
"source": "base-ui"
|
|
20352
|
+
},
|
|
20353
|
+
{
|
|
20354
|
+
"name": "initialFocus",
|
|
20355
|
+
"type": "boolean | RefObject<HTMLElement | null> | ((openType: InteractionType) => boolean | void | HTMLElement | null)",
|
|
20356
|
+
"required": false,
|
|
20357
|
+
"description": "Determines the element to focus when the popup is opened.\n\n- `false`: Do not move focus.\n- `true`: Move focus based on the default behavior (first tabbable element or popup).\n- `RefObject`: Move focus to the ref element.\n- `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).\n Return an element to focus, `true` to use the default behavior, or `false`/`undefined` to do nothing.",
|
|
20358
|
+
"source": "base-ui"
|
|
20359
|
+
},
|
|
20360
|
+
{
|
|
20361
|
+
"name": "render",
|
|
20362
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxPopupState>",
|
|
20363
|
+
"required": false,
|
|
20364
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20365
|
+
"source": "base-ui"
|
|
20366
|
+
}
|
|
20367
|
+
]
|
|
20368
|
+
},
|
|
20369
|
+
{
|
|
20370
|
+
"name": "ComboboxEmpty",
|
|
20371
|
+
"description": "Message shown when filtering leaves no items (needs `items` on the root). The element stays\nmounted as a polite live region and renders its children only while the list is empty.",
|
|
20372
|
+
"props": [
|
|
20373
|
+
{
|
|
20374
|
+
"name": "className",
|
|
20375
|
+
"type": "string",
|
|
20376
|
+
"required": false,
|
|
20377
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
20378
|
+
"source": "dodo"
|
|
20379
|
+
},
|
|
20380
|
+
{
|
|
20381
|
+
"name": "render",
|
|
20382
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxEmptyState>",
|
|
20383
|
+
"required": false,
|
|
20384
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20385
|
+
"source": "base-ui"
|
|
20386
|
+
}
|
|
20387
|
+
]
|
|
20388
|
+
},
|
|
20389
|
+
{
|
|
20390
|
+
"name": "ComboboxGroup",
|
|
20391
|
+
"description": "A group of options. With grouped `items` (`{ value, items }[]`), pass the group's `items` here\nand render them with Base UI `Combobox.Collection`.",
|
|
20392
|
+
"props": [
|
|
20393
|
+
{
|
|
20394
|
+
"name": "className",
|
|
20395
|
+
"type": "string",
|
|
20396
|
+
"required": false,
|
|
20397
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
20398
|
+
"source": "dodo"
|
|
20399
|
+
},
|
|
20400
|
+
{
|
|
20401
|
+
"name": "items",
|
|
20402
|
+
"type": "readonly any[]",
|
|
20403
|
+
"required": false,
|
|
20404
|
+
"description": "Items to be rendered within this group.\nWhen provided, child `Collection` components will use these items.",
|
|
20405
|
+
"source": "base-ui"
|
|
20406
|
+
},
|
|
20407
|
+
{
|
|
20408
|
+
"name": "render",
|
|
20409
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxGroupState>",
|
|
20410
|
+
"required": false,
|
|
20411
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20412
|
+
"source": "base-ui"
|
|
20413
|
+
}
|
|
20414
|
+
]
|
|
20415
|
+
},
|
|
20416
|
+
{
|
|
20417
|
+
"name": "ComboboxGroupLabel",
|
|
20418
|
+
"description": "Heading for a `ComboboxGroup`.",
|
|
20419
|
+
"props": [
|
|
20420
|
+
{
|
|
20421
|
+
"name": "className",
|
|
20422
|
+
"type": "string",
|
|
20423
|
+
"required": false,
|
|
20424
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
20425
|
+
"source": "dodo"
|
|
20426
|
+
},
|
|
20427
|
+
{
|
|
20428
|
+
"name": "render",
|
|
20429
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxGroupLabelState>",
|
|
20430
|
+
"required": false,
|
|
20431
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20432
|
+
"source": "base-ui"
|
|
20433
|
+
}
|
|
20434
|
+
]
|
|
20435
|
+
},
|
|
20436
|
+
{
|
|
20437
|
+
"name": "ComboboxInput",
|
|
20438
|
+
"description": "The search field (primitive `ComboboxInput`): a text input with optional clear and caret buttons.\nOther props go to the `<input>`. The list is positioned against the whole group.",
|
|
20439
|
+
"props": [
|
|
20440
|
+
{
|
|
20441
|
+
"name": "className",
|
|
20442
|
+
"type": "string",
|
|
20443
|
+
"required": false,
|
|
20444
|
+
"description": "Classes for the field-styled control around the input (`data-slot=\"input-control\"`).",
|
|
20445
|
+
"source": "dodo"
|
|
20446
|
+
},
|
|
20447
|
+
{
|
|
20448
|
+
"name": "clearLabel",
|
|
20449
|
+
"type": "string",
|
|
20450
|
+
"required": false,
|
|
20451
|
+
"default": "\"Clear\"",
|
|
20452
|
+
"description": "Accessible name of the clear button.",
|
|
20453
|
+
"source": "dodo"
|
|
20454
|
+
},
|
|
20455
|
+
{
|
|
20456
|
+
"name": "showClear",
|
|
20457
|
+
"type": "boolean",
|
|
20458
|
+
"required": false,
|
|
20459
|
+
"default": "false",
|
|
20460
|
+
"description": "Show a button that clears the value. Base UI only mounts it while there is a value to clear.",
|
|
20461
|
+
"source": "dodo"
|
|
20462
|
+
},
|
|
20463
|
+
{
|
|
20464
|
+
"name": "showTrigger",
|
|
20465
|
+
"type": "boolean",
|
|
20466
|
+
"required": false,
|
|
20467
|
+
"default": "true",
|
|
20468
|
+
"description": "Show the caret button that opens and closes the list.",
|
|
20469
|
+
"source": "dodo"
|
|
20470
|
+
},
|
|
20471
|
+
{
|
|
20472
|
+
"name": "size",
|
|
20473
|
+
"type": "\"default\" | \"sm\" | \"lg\"",
|
|
20474
|
+
"required": false,
|
|
20475
|
+
"default": "\"default\"",
|
|
20476
|
+
"description": "Control height, like `Input`.",
|
|
20477
|
+
"source": "dodo"
|
|
20478
|
+
},
|
|
20479
|
+
{
|
|
20480
|
+
"name": "startAddon",
|
|
20481
|
+
"type": "ReactNode",
|
|
20482
|
+
"required": false,
|
|
20483
|
+
"description": "Icon or text shown inside the field before the input.",
|
|
20484
|
+
"source": "dodo"
|
|
20485
|
+
},
|
|
20486
|
+
{
|
|
20487
|
+
"name": "triggerLabel",
|
|
20488
|
+
"type": "string",
|
|
20489
|
+
"required": false,
|
|
20490
|
+
"default": "\"Show options\"",
|
|
20491
|
+
"description": "Accessible name of the caret button.",
|
|
20492
|
+
"source": "dodo"
|
|
20493
|
+
},
|
|
20494
|
+
{
|
|
20495
|
+
"name": "disabled",
|
|
20496
|
+
"type": "boolean",
|
|
20497
|
+
"required": false,
|
|
20498
|
+
"default": "false",
|
|
20499
|
+
"description": "Whether the component should ignore user interaction.",
|
|
20500
|
+
"source": "base-ui"
|
|
20501
|
+
},
|
|
20502
|
+
{
|
|
20503
|
+
"name": "render",
|
|
20504
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxInputState>",
|
|
20505
|
+
"required": false,
|
|
20506
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20507
|
+
"source": "base-ui"
|
|
20508
|
+
}
|
|
20509
|
+
]
|
|
20510
|
+
},
|
|
20511
|
+
{
|
|
20512
|
+
"name": "ComboboxItem",
|
|
20513
|
+
"description": "One option (primitive `ComboboxItem`). `value` is what gets selected (usually the item object from\n`items`); children are the visible label. A check marks selected options.",
|
|
20514
|
+
"props": [
|
|
20515
|
+
{
|
|
20516
|
+
"name": "className",
|
|
20517
|
+
"type": "string",
|
|
20518
|
+
"required": false,
|
|
20519
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
20520
|
+
"source": "dodo"
|
|
20521
|
+
},
|
|
20522
|
+
{
|
|
20523
|
+
"name": "description",
|
|
20524
|
+
"type": "ReactNode",
|
|
20525
|
+
"required": false,
|
|
20526
|
+
"description": "Secondary line shown under the label.",
|
|
20527
|
+
"source": "dodo"
|
|
20528
|
+
},
|
|
20529
|
+
{
|
|
20530
|
+
"name": "disabled",
|
|
20531
|
+
"type": "boolean",
|
|
20532
|
+
"required": false,
|
|
20533
|
+
"default": "false",
|
|
20534
|
+
"description": "Whether the component should ignore user interaction.",
|
|
20535
|
+
"source": "base-ui"
|
|
20536
|
+
},
|
|
20537
|
+
{
|
|
20538
|
+
"name": "index",
|
|
20539
|
+
"type": "number",
|
|
20540
|
+
"required": false,
|
|
20541
|
+
"description": "The index of the item in the list. Improves performance when specified by avoiding the need to calculate the index automatically from the DOM.",
|
|
20542
|
+
"source": "base-ui"
|
|
20543
|
+
},
|
|
20544
|
+
{
|
|
20545
|
+
"name": "nativeButton",
|
|
20546
|
+
"type": "boolean",
|
|
20547
|
+
"required": false,
|
|
20548
|
+
"default": "false",
|
|
20549
|
+
"description": "Whether the component renders a native `<button>` element when replacing it\nvia the `render` prop.\nSet to `true` if the rendered element is a native button.",
|
|
20550
|
+
"source": "base-ui"
|
|
20551
|
+
},
|
|
20552
|
+
{
|
|
20553
|
+
"name": "onClick",
|
|
20554
|
+
"type": "((event: BaseUIEvent<MouseEvent<HTMLDivElement, MouseEvent>>) => void)",
|
|
20555
|
+
"required": false,
|
|
20556
|
+
"description": "An optional click handler for the item when selected.\nIt fires when clicking the item with the pointer, as well as when pressing `Enter` with the keyboard if the item is highlighted when the `Input` or `List` element has focus.",
|
|
20557
|
+
"source": "base-ui"
|
|
20558
|
+
},
|
|
20559
|
+
{
|
|
20560
|
+
"name": "render",
|
|
20561
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxItemState>",
|
|
20562
|
+
"required": false,
|
|
20563
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20564
|
+
"source": "base-ui"
|
|
20565
|
+
},
|
|
20566
|
+
{
|
|
20567
|
+
"name": "value",
|
|
20568
|
+
"type": "any",
|
|
20569
|
+
"required": false,
|
|
20570
|
+
"default": "null",
|
|
20571
|
+
"description": "A unique value that identifies this item.",
|
|
20572
|
+
"source": "base-ui"
|
|
20573
|
+
}
|
|
20574
|
+
]
|
|
20575
|
+
},
|
|
20576
|
+
{
|
|
20577
|
+
"name": "ComboboxLabel",
|
|
20578
|
+
"description": "Visible label for `ComboboxTrigger` (input-inside-popup pattern), styled as the `Label` primitive\n(the primitives have no combobox label). To label `ComboboxInput`, use a `<label htmlFor>` that points at the\ninput's `id`, or `aria-label`.",
|
|
20579
|
+
"props": [
|
|
20580
|
+
{
|
|
20581
|
+
"name": "className",
|
|
20582
|
+
"type": "string",
|
|
20583
|
+
"required": false,
|
|
20584
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
20585
|
+
"source": "dodo"
|
|
20586
|
+
},
|
|
20587
|
+
{
|
|
20588
|
+
"name": "render",
|
|
20589
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxLabelState>",
|
|
20590
|
+
"required": false,
|
|
20591
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20592
|
+
"source": "base-ui"
|
|
20593
|
+
}
|
|
20594
|
+
]
|
|
20595
|
+
},
|
|
20596
|
+
{
|
|
20597
|
+
"name": "ComboboxList",
|
|
20598
|
+
"description": "Scrollable list of options (primitive `ComboboxList`). Pass a render function,\n`(item) => <ComboboxItem …/>`, to render the root's `items` (filtered as the user types), or\nstatic children.",
|
|
20599
|
+
"props": [
|
|
20600
|
+
{
|
|
20601
|
+
"name": "className",
|
|
20602
|
+
"type": "string",
|
|
20603
|
+
"required": false,
|
|
20604
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
20605
|
+
"source": "dodo"
|
|
20606
|
+
},
|
|
20607
|
+
{
|
|
20608
|
+
"name": "render",
|
|
20609
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxListState>",
|
|
20610
|
+
"required": false,
|
|
20611
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20612
|
+
"source": "base-ui"
|
|
20613
|
+
}
|
|
20614
|
+
]
|
|
20615
|
+
},
|
|
20616
|
+
{
|
|
20617
|
+
"name": "ComboboxSeparator",
|
|
20618
|
+
"description": "Divider between groups.",
|
|
20619
|
+
"props": [
|
|
20620
|
+
{
|
|
20621
|
+
"name": "className",
|
|
20622
|
+
"type": "string",
|
|
20623
|
+
"required": false,
|
|
20624
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
20625
|
+
"source": "dodo"
|
|
20626
|
+
},
|
|
20627
|
+
{
|
|
20628
|
+
"name": "orientation",
|
|
20629
|
+
"type": "Orientation",
|
|
20630
|
+
"required": false,
|
|
20631
|
+
"default": "'horizontal'",
|
|
20632
|
+
"description": "The orientation of the separator.",
|
|
20633
|
+
"source": "base-ui"
|
|
20634
|
+
},
|
|
20635
|
+
{
|
|
20636
|
+
"name": "render",
|
|
20637
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxSeparatorState>",
|
|
20638
|
+
"required": false,
|
|
20639
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20640
|
+
"source": "base-ui"
|
|
20641
|
+
}
|
|
20642
|
+
]
|
|
20643
|
+
},
|
|
20644
|
+
{
|
|
20645
|
+
"name": "ComboboxTrigger",
|
|
20646
|
+
"description": "Select-like button for the input-inside-popup pattern: put a `ComboboxValue` inside and a\n`ComboboxInput` (with `showTrigger={false}`) at the top of `ComboboxContent`. Primitive leaves its\ntrigger unstyled; it is rendered as an outline primitive Button, the primitive pattern for this layout.",
|
|
20647
|
+
"props": [
|
|
20648
|
+
{
|
|
20649
|
+
"name": "className",
|
|
20650
|
+
"type": "string",
|
|
20651
|
+
"required": false,
|
|
20652
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
20653
|
+
"source": "dodo"
|
|
20654
|
+
},
|
|
20655
|
+
{
|
|
20656
|
+
"name": "disabled",
|
|
20657
|
+
"type": "boolean",
|
|
20658
|
+
"required": false,
|
|
20659
|
+
"default": "false",
|
|
20660
|
+
"description": "Whether the component should ignore user interaction.",
|
|
20661
|
+
"source": "base-ui"
|
|
20662
|
+
},
|
|
20663
|
+
{
|
|
20664
|
+
"name": "nativeButton",
|
|
20665
|
+
"type": "boolean",
|
|
20666
|
+
"required": false,
|
|
20667
|
+
"default": "true",
|
|
20668
|
+
"description": "Whether the component renders a native `<button>` element when replacing it\nvia the `render` prop.\nSet to `false` if the rendered element is not a button (for example, `<div>`).",
|
|
20669
|
+
"source": "base-ui"
|
|
20670
|
+
},
|
|
20671
|
+
{
|
|
20672
|
+
"name": "render",
|
|
20673
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ComboboxTriggerState>",
|
|
20674
|
+
"required": false,
|
|
20675
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20676
|
+
"source": "base-ui"
|
|
20677
|
+
}
|
|
20678
|
+
]
|
|
20679
|
+
},
|
|
20680
|
+
{
|
|
20681
|
+
"name": "ComboboxValue",
|
|
20682
|
+
"description": "Renders the selected value's label, or `placeholder` when empty. Pass a function as children to\nrender the value yourself (for example as `ComboboxChip`s with `multiple`).",
|
|
20683
|
+
"props": [
|
|
20684
|
+
{
|
|
20685
|
+
"name": "placeholder",
|
|
20686
|
+
"type": "ReactNode",
|
|
20687
|
+
"required": false,
|
|
20688
|
+
"description": "The placeholder value to display when no value is selected.\nThis is overridden by `children` if specified, or by a null item's label in `items`.",
|
|
20689
|
+
"source": "base-ui"
|
|
20690
|
+
}
|
|
20691
|
+
]
|
|
20692
|
+
}
|
|
20693
|
+
],
|
|
20694
|
+
"examples": [],
|
|
20695
|
+
"docsUrl": "/components/select#searchable"
|
|
20696
|
+
},
|
|
20697
|
+
{
|
|
20698
|
+
"slug": "sheet",
|
|
20699
|
+
"title": "Sheet",
|
|
20700
|
+
"category": "Overlays",
|
|
20701
|
+
"status": "stable",
|
|
20702
|
+
"level": "organism",
|
|
20703
|
+
"description": "The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading\ndirection (the right in LTR). `type=\"side\"` (default) is a grey tray 8 from the screen edges, 400 wide (`size=\"lg\"`:\n560, `size=\"xl\"`: 768), with the title and close on the grey chin, the body in a white panel that scrolls, and the\nactions on the grey strip; below 400 it fills the screen minus 8 on every side. `type=\"full\"` covers the screen.\nAlways include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`, and use a Dialog for a\nyes / no confirm. A sheet can open over another, nested in its tree or not: the one behind steps back, smaller and\nfaded under the scrim's colour and blur, over a single scrim, and Escape or a click away closes only the top one. A sheet is at least as wide as the\none it covers, so only a sliver of that one shows.",
|
|
20704
|
+
"importPath": "@dodopayments/ui/sheet",
|
|
20705
|
+
"exports": [
|
|
20706
|
+
"DODO_SHEET_DEFAULT_VARIANTS",
|
|
20707
|
+
"DODO_SHEET_SIZE_DEFAULT_VARIANTS",
|
|
20708
|
+
"DODO_SHEET_SIZE_VARIANTS",
|
|
20709
|
+
"DODO_SHEET_VARIANTS",
|
|
20710
|
+
"Sheet",
|
|
20711
|
+
"SheetClose",
|
|
20712
|
+
"SheetCloseProps",
|
|
20713
|
+
"SheetContent",
|
|
20714
|
+
"SheetContentProps",
|
|
20715
|
+
"SheetDescription",
|
|
20716
|
+
"SheetDescriptionProps",
|
|
20717
|
+
"SheetFooter",
|
|
20718
|
+
"SheetHeader",
|
|
20719
|
+
"SheetHeaderProps",
|
|
20720
|
+
"SheetOverlay",
|
|
20721
|
+
"SheetOverlayProps",
|
|
20722
|
+
"SheetPanel",
|
|
20723
|
+
"SheetPortal",
|
|
20724
|
+
"SheetProps",
|
|
20725
|
+
"SheetTitle",
|
|
20726
|
+
"SheetTitleProps",
|
|
20727
|
+
"SheetTrigger",
|
|
20728
|
+
"SheetTriggerProps",
|
|
20729
|
+
"sheetVariants"
|
|
20730
|
+
],
|
|
20731
|
+
"parts": [
|
|
20732
|
+
{
|
|
20733
|
+
"name": "SheetContent",
|
|
20734
|
+
"description": "The sheet (Dodo Nest Sheet): portal + scrim + popup + close button, sliding in from the end of the reading\ndirection (the right in LTR). `type=\"side\"` (default) is a grey tray 8 from the screen edges, 400 wide (`size=\"lg\"`:\n560, `size=\"xl\"`: 768), with the title and close on the grey chin, the body in a white panel that scrolls, and the\nactions on the grey strip; below 400 it fills the screen minus 8 on every side. `type=\"full\"` covers the screen.\nAlways include a `SheetTitle`; lay it out as `SheetHeader`, `SheetPanel` and `SheetFooter`, and use a Dialog for a\nyes / no confirm. A sheet can open over another, nested in its tree or not: the one behind steps back, smaller and\nfaded under the scrim's colour and blur, over a single scrim, and Escape or a click away closes only the top one. A sheet is at least as wide as the\none it covers, so only a sliver of that one shows.",
|
|
20735
|
+
"props": [
|
|
20736
|
+
{
|
|
20737
|
+
"name": "className",
|
|
20738
|
+
"type": "string",
|
|
20739
|
+
"required": false,
|
|
20740
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
20741
|
+
"source": "dodo"
|
|
20742
|
+
},
|
|
20743
|
+
{
|
|
20744
|
+
"name": "closeLabel",
|
|
20745
|
+
"type": "string",
|
|
20746
|
+
"required": false,
|
|
20747
|
+
"default": "\"Close\"",
|
|
20748
|
+
"description": "Accessible label for the close button.",
|
|
20749
|
+
"source": "dodo"
|
|
20750
|
+
},
|
|
20751
|
+
{
|
|
20752
|
+
"name": "hideCloseButton",
|
|
20753
|
+
"type": "boolean",
|
|
20754
|
+
"required": false,
|
|
20755
|
+
"default": "false",
|
|
20756
|
+
"description": "Hide the close button. Keep a visible way to close the sheet, e.g. a `SheetClose`.",
|
|
20757
|
+
"source": "dodo"
|
|
20758
|
+
},
|
|
20759
|
+
{
|
|
20760
|
+
"name": "portalProps",
|
|
20761
|
+
"type": "DialogPortalProps",
|
|
20762
|
+
"required": false,
|
|
20763
|
+
"description": "Props for the portal, e.g. a `container` to render the sheet into instead of `document.body`.",
|
|
20764
|
+
"source": "dodo"
|
|
20765
|
+
},
|
|
20766
|
+
{
|
|
20767
|
+
"name": "size",
|
|
20768
|
+
"type": "\"md\" | \"lg\" | \"xl\"",
|
|
20769
|
+
"required": false,
|
|
20770
|
+
"description": "",
|
|
20771
|
+
"source": "dodo",
|
|
20772
|
+
"values": [
|
|
20773
|
+
{
|
|
20774
|
+
"value": "md",
|
|
20775
|
+
"description": "400 wide: short forms and details. The default."
|
|
20776
|
+
},
|
|
20777
|
+
{
|
|
20778
|
+
"value": "lg",
|
|
20779
|
+
"description": "560 wide: longer forms. Side sheets only."
|
|
20780
|
+
},
|
|
20781
|
+
{
|
|
20782
|
+
"value": "xl",
|
|
20783
|
+
"description": "768 wide: a form with a code editor or a long checklist, such as a webhook endpoint. Side sheets only."
|
|
20784
|
+
}
|
|
20785
|
+
],
|
|
20786
|
+
"default": "\"md\""
|
|
20787
|
+
},
|
|
20788
|
+
{
|
|
20789
|
+
"name": "type",
|
|
20790
|
+
"type": "\"side\" | \"full\"",
|
|
20791
|
+
"required": false,
|
|
20792
|
+
"description": "",
|
|
20793
|
+
"source": "dodo",
|
|
20794
|
+
"values": [
|
|
20795
|
+
{
|
|
20796
|
+
"value": "side",
|
|
20797
|
+
"description": "A side panel for a task or record that keeps the page in view: refund, dispute, edit customer, new API key."
|
|
20798
|
+
},
|
|
20799
|
+
{
|
|
20800
|
+
"value": "full",
|
|
20801
|
+
"description": "Full screen for long multi-step flows (add bank account, verification): back, title, progress and close on top, a 664 column of Card sections, the actions below."
|
|
20802
|
+
}
|
|
20803
|
+
],
|
|
20804
|
+
"default": "\"side\""
|
|
20805
|
+
},
|
|
20806
|
+
{
|
|
20807
|
+
"name": "finalFocus",
|
|
20808
|
+
"type": "boolean | RefObject<HTMLElement | null> | ((closeType: InteractionType) => boolean | void | HTMLElement | null)",
|
|
20809
|
+
"required": false,
|
|
20810
|
+
"description": "Determines the element to focus when the dialog is closed.\n\n- `false`: Do not move focus.\n- `true`: Move focus based on the default behavior (trigger or previously focused element).\n- `RefObject`: Move focus to the ref element.\n- `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).\n Return an element to focus, `true` to use the default behavior, `null` to fall back to the default behavior, or `false`/`undefined` to do nothing.",
|
|
20811
|
+
"source": "base-ui"
|
|
20812
|
+
},
|
|
20813
|
+
{
|
|
20814
|
+
"name": "initialFocus",
|
|
20815
|
+
"type": "boolean | RefObject<HTMLElement | null> | ((openType: InteractionType) => boolean | void | HTMLElement | null)",
|
|
20816
|
+
"required": false,
|
|
20817
|
+
"description": "Determines the element to focus when the dialog is opened.\nBy default, focus moves to the first tabbable element inside the popup, except when the dialog\nis opened by touch, then the popup itself is focused to avoid opening the virtual keyboard.\n\n- `false`: Do not move focus.\n- `true`: Move focus based on the default behavior (first tabbable element or popup).\n- `RefObject`: Move focus to the ref element.\n- `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).\n Return an element to focus, `true` to use the default behavior, `null` to fall back to the default behavior, or `false`/`undefined` to do nothing.",
|
|
20818
|
+
"source": "base-ui"
|
|
20819
|
+
},
|
|
20820
|
+
{
|
|
20821
|
+
"name": "render",
|
|
20822
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, DialogPopupState>",
|
|
20823
|
+
"required": false,
|
|
20824
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
|
|
20825
|
+
"source": "base-ui"
|
|
20826
|
+
}
|
|
20827
|
+
]
|
|
20828
|
+
},
|
|
20829
|
+
{
|
|
20830
|
+
"name": "Sheet",
|
|
20831
|
+
"description": "Root of a sheet: a modal side panel (the `Sheet` primitive on Base UI Dialog). Controls open state\n(`open`/`onOpenChange` or `defaultOpen`).",
|
|
20832
|
+
"props": [
|
|
20833
|
+
{
|
|
20834
|
+
"name": "actionsRef",
|
|
20835
|
+
"type": "RefObject<DialogRootActions | null>",
|
|
20836
|
+
"required": false,
|
|
20837
|
+
"description": "A ref to imperative actions.\n- `unmount`: Manually unmounts the dialog.\nCall this after any externally controlled closing animation finishes.\n- `close`: Closes the dialog imperatively when called.",
|
|
20838
|
+
"source": "base-ui"
|
|
20839
|
+
},
|
|
20840
|
+
{
|
|
20841
|
+
"name": "defaultOpen",
|
|
20842
|
+
"type": "boolean",
|
|
20843
|
+
"required": false,
|
|
20844
|
+
"default": "false",
|
|
20845
|
+
"description": "Whether the dialog is initially open.\n\nTo render a controlled dialog, use the `open` prop instead.",
|
|
20846
|
+
"source": "base-ui"
|
|
20847
|
+
},
|
|
20848
|
+
{
|
|
20849
|
+
"name": "defaultTriggerId",
|
|
20850
|
+
"type": "string | null",
|
|
20851
|
+
"required": false,
|
|
20852
|
+
"description": "ID of the trigger that the dialog is associated with.\nThis is useful in conjunction with the `defaultOpen` prop to create an initially open dialog.",
|
|
20853
|
+
"source": "base-ui"
|
|
20854
|
+
},
|
|
20855
|
+
{
|
|
20856
|
+
"name": "disablePointerDismissal",
|
|
20857
|
+
"type": "boolean",
|
|
20858
|
+
"required": false,
|
|
20859
|
+
"default": "false",
|
|
20860
|
+
"description": "Whether to prevent the dialog from closing on outside presses.\nFor non-modal dialogs, this also prevents the dialog from closing when focus moves outside of it.",
|
|
20861
|
+
"source": "base-ui"
|
|
20862
|
+
},
|
|
20863
|
+
{
|
|
20864
|
+
"name": "handle",
|
|
20865
|
+
"type": "DialogHandle<Payload>",
|
|
20866
|
+
"required": false,
|
|
20867
|
+
"description": "A handle to associate the dialog with a trigger.\nIf specified, allows external triggers to control the dialog's open state.\nCan be created with the Dialog.createHandle() method.",
|
|
19766
20868
|
"source": "base-ui"
|
|
19767
20869
|
},
|
|
19768
20870
|
{
|
|
@@ -20073,11 +21175,14 @@
|
|
|
20073
21175
|
"title": "Sidebar",
|
|
20074
21176
|
"category": "Navigation",
|
|
20075
21177
|
"status": "stable",
|
|
21178
|
+
"level": "organism",
|
|
20076
21179
|
"description": "The app sidebar (Dodo Nest Sidebar), on the `Sidebar` primitive. From 1024px it docks to the start edge (the\nleft in LTR, the right in RTL) and collapses to a 68px icon rail or expands to a 256px list; below that it opens\nas a 256px drawer. Compose it from `SidebarHeader` (a `SidebarBusinessSwitcher`), `SidebarContent` (groups and\nmenus) and `SidebarFooter` (Developer, Settings and a `SidebarModeSwitch`), inside a `SidebarProvider`.",
|
|
20077
21180
|
"importPath": "@dodopayments/ui/sidebar",
|
|
20078
21181
|
"exports": [
|
|
20079
21182
|
"Sidebar",
|
|
20080
21183
|
"SidebarBanner",
|
|
21184
|
+
"SidebarBusinessList",
|
|
21185
|
+
"SidebarBusinessListProps",
|
|
20081
21186
|
"SidebarBusinessSwitcher",
|
|
20082
21187
|
"SidebarBusinessSwitcherProps",
|
|
20083
21188
|
"SidebarContent",
|
|
@@ -20131,9 +21236,22 @@
|
|
|
20131
21236
|
"description": "Full-width strips above the whole app shell (a `TestModeBanner`, an impersonation or action strip). Place it first\ninside `SidebarProvider`. From 1024px it is fixed to the top of the window and the docked sidebar and the inset\nstart below it (its height is `--sidebar-top` on the provider, for a page that sizes itself to the window); below\nthat it sits at the top of the page, above the inset. With nothing in it, it takes no space.",
|
|
20132
21237
|
"props": []
|
|
20133
21238
|
},
|
|
21239
|
+
{
|
|
21240
|
+
"name": "SidebarBusinessList",
|
|
21241
|
+
"description": "The other businesses in the business Menu, as old-main: the label, then the rows (40 tall, 8 apart) in a list that\nscrolls past 212 tall with faded edges, so \"Add new business\", Settings and Sign out under it stay in view.",
|
|
21242
|
+
"props": [
|
|
21243
|
+
{
|
|
21244
|
+
"name": "label",
|
|
21245
|
+
"type": "ReactNode",
|
|
21246
|
+
"required": true,
|
|
21247
|
+
"description": "The group's label, e.g. \"Other businesses\". It stays put while the rows scroll.",
|
|
21248
|
+
"source": "dodo"
|
|
21249
|
+
}
|
|
21250
|
+
]
|
|
21251
|
+
},
|
|
20134
21252
|
{
|
|
20135
21253
|
"name": "SidebarBusinessSwitcher",
|
|
20136
|
-
"description": "The business switcher at the top of the sidebar (Figma `.Business switcher`): a 44px white row with a 24px\navatar, the name (truncates), an optional `badge` and an up-down chevron; the same 24px avatar alone on the icon rail. Opens the business Menu\
|
|
21254
|
+
"description": "The business switcher at the top of the sidebar (Figma `.Business switcher`): a 44px white row with a 24px\navatar, the name (truncates), an optional `badge` and an up-down chevron; the same 24px avatar alone on the icon rail. Opens the business Menu\n8px below: the current business (logo and name) on top, then `children`. Put it in `SidebarHeader`.",
|
|
20137
21255
|
"props": [
|
|
20138
21256
|
{
|
|
20139
21257
|
"name": "name",
|
|
@@ -20149,6 +21267,13 @@
|
|
|
20149
21267
|
"description": "After the name, e.g. the member's role as a neutral `Badge`. Hidden on the icon rail.",
|
|
20150
21268
|
"source": "dodo"
|
|
20151
21269
|
},
|
|
21270
|
+
{
|
|
21271
|
+
"name": "footer",
|
|
21272
|
+
"type": "ReactNode",
|
|
21273
|
+
"required": false,
|
|
21274
|
+
"description": "Items on the grey strip under the white panel, such as Settings and Sign out.",
|
|
21275
|
+
"source": "dodo"
|
|
21276
|
+
},
|
|
20152
21277
|
{
|
|
20153
21278
|
"name": "logoUrl",
|
|
20154
21279
|
"type": "string",
|
|
@@ -20449,6 +21574,13 @@
|
|
|
20449
21574
|
"description": "The mode on the first render (uncontrolled).",
|
|
20450
21575
|
"source": "dodo"
|
|
20451
21576
|
},
|
|
21577
|
+
{
|
|
21578
|
+
"name": "labels",
|
|
21579
|
+
"type": "{ test?: string | undefined; live?: string | undefined; }",
|
|
21580
|
+
"required": false,
|
|
21581
|
+
"description": "The two halves' text, e.g. \"Test mode\" and \"Live mode\". The badge on the icon rail keeps the short words.",
|
|
21582
|
+
"source": "dodo"
|
|
21583
|
+
},
|
|
20452
21584
|
{
|
|
20453
21585
|
"name": "mode",
|
|
20454
21586
|
"type": "\"test\" | \"live\"",
|
|
@@ -20586,6 +21718,7 @@
|
|
|
20586
21718
|
"title": "Skeleton",
|
|
20587
21719
|
"category": "Feedback",
|
|
20588
21720
|
"status": "stable",
|
|
21721
|
+
"level": "atom",
|
|
20589
21722
|
"description": "A grey placeholder shown while content loads (Dodo Nest Skeleton), sized like the thing it replaces: `shape=\"line\"`\nfor text, `\"block\"` (the default) for media, charts and controls, `\"circle\"` for avatars. Size it with `className`\n(e.g. `w-32`, `h-20 w-60`, `size-8`). It sits on white panels. Hidden from assistive tech (`aria-hidden`); mark the loading region\nwith `aria-busy` and announce the state elsewhere.",
|
|
20590
21723
|
"importPath": "@dodopayments/ui/skeleton",
|
|
20591
21724
|
"exports": [
|
|
@@ -20968,7 +22101,11 @@
|
|
|
20968
22101
|
"slug": "slider",
|
|
20969
22102
|
"title": "Slider",
|
|
20970
22103
|
"category": "Forms",
|
|
20971
|
-
"status": "
|
|
22104
|
+
"status": "deprecated",
|
|
22105
|
+
"deprecated": {
|
|
22106
|
+
"since": "1.8.0"
|
|
22107
|
+
},
|
|
22108
|
+
"level": "atom",
|
|
20972
22109
|
"description": "Picks a number, or a range with two thumbs, by dragging or with the keyboard: the Dodo Nest Slider. A 4px\ntrack in `--tertiary`, the range in the brand colour with the Progress bar's glossy rim, and a 16px Thumb\n(Surface/Primary, a 1px gradient rim and a soft shadow) that stays inside the track at both ends. Renders\none thumb per entry in `value`/`defaultValue` (one thumb for a plain number). Name it with `label`,\n`aria-label` or `getAriaLabel`.\n\nThe pressed or dragged thumb grows one size step (`duration-quick`). Its position follows the pointer and\nthe keyboard exactly, with no transition, so arrow-key steps never animate.\n\nComposed from the Base UI parts: the `Slider` primitive renders its thumbs itself and does not forward\nper-thumb props, so it cannot carry `aria-label`, `getAriaLabel`, `getAriaValueText` or the value tooltip.\nThe value readout uses the `SliderValue` primitive.",
|
|
20973
22110
|
"importPath": "@dodopayments/ui/slider",
|
|
20974
22111
|
"exports": [
|
|
@@ -21288,6 +22425,7 @@
|
|
|
21288
22425
|
"title": "Spinner",
|
|
21289
22426
|
"category": "Feedback",
|
|
21290
22427
|
"status": "stable",
|
|
22428
|
+
"level": "atom",
|
|
21291
22429
|
"description": "Loading indicator for a wait with no known layout or progress (Dodo Nest Spinner): a 20 × 20 ring,\na Border/Primary track with a Content/Brand-primary quarter arc turning on it. Centre it in a panel\nwith a short message 12 below, or put it before a status line. Announces `label` through\n`role=\"status\"`; the status role and label sit on a wrapping `<span>` (not on the primitive `<svg>`)\nso the label is real text that screen readers announce in every browser.",
|
|
21292
22430
|
"importPath": "@dodopayments/ui/spinner",
|
|
21293
22431
|
"exports": [
|
|
@@ -21306,6 +22444,22 @@
|
|
|
21306
22444
|
"default": "\"Loading...\"",
|
|
21307
22445
|
"description": "Accessible label announced by screen readers.",
|
|
21308
22446
|
"source": "dodo"
|
|
22447
|
+
},
|
|
22448
|
+
{
|
|
22449
|
+
"name": "size",
|
|
22450
|
+
"type": "\"md\" | \"lg\"",
|
|
22451
|
+
"required": false,
|
|
22452
|
+
"default": "\"md\"",
|
|
22453
|
+
"description": "`md` 20 × 20, in a panel or a status line; `lg` 48 × 48, alone in the middle of a page that is still loading.",
|
|
22454
|
+
"source": "dodo"
|
|
22455
|
+
},
|
|
22456
|
+
{
|
|
22457
|
+
"name": "tone",
|
|
22458
|
+
"type": "\"info\" | \"brand\"",
|
|
22459
|
+
"required": false,
|
|
22460
|
+
"default": "\"brand\"",
|
|
22461
|
+
"description": "The arc's colour: `brand` (Content/Brand-primary) or `info` (Surface/Accent-primary blue, the dashboard's\nfull-page loader).",
|
|
22462
|
+
"source": "dodo"
|
|
21309
22463
|
}
|
|
21310
22464
|
]
|
|
21311
22465
|
}
|
|
@@ -21339,6 +22493,7 @@
|
|
|
21339
22493
|
"title": "Navigation progress",
|
|
21340
22494
|
"category": "Feedback",
|
|
21341
22495
|
"status": "stable",
|
|
22496
|
+
"level": "atom",
|
|
21342
22497
|
"description": "Navigation progress: a 2px bar in the brand green (Content/Brand-primary) fixed across the very top\nof the viewport, above the sidebar, the top bar and any overlay, that tells the user a page is on its\nway. Mount it once in the app shell and drive `active` from the router. It shows only after `delay`,\ncreeps towards the end while the page loads, then fills the track and fades out. It is decorative\n(`aria-hidden`), takes no pointer events and never takes focus; under reduced motion it is a still,\nfull-width bar.",
|
|
21343
22498
|
"importPath": "@dodopayments/ui/navigation-progress",
|
|
21344
22499
|
"exports": [
|
|
@@ -21381,6 +22536,7 @@
|
|
|
21381
22536
|
"title": "Text Shimmer",
|
|
21382
22537
|
"category": "Typography",
|
|
21383
22538
|
"status": "stable",
|
|
22539
|
+
"level": "atom",
|
|
21384
22540
|
"description": "Text with a highlight sweeping across it, for \"in progress\" labels such as \"Generating report...\".\nRenders a `<p>` by default (use `render` for another element). With reduced motion it renders as\nstatic `text-muted-foreground` text. Composite (the primitives have no shimmer): the `dodo-text-shimmer`\nutility sweeps the primitive `foreground` token over `muted-foreground`.",
|
|
21385
22541
|
"importPath": "@dodopayments/ui/text-shimmer",
|
|
21386
22542
|
"exports": [
|
|
@@ -21451,11 +22607,75 @@
|
|
|
21451
22607
|
],
|
|
21452
22608
|
"docsUrl": "/components/text-shimmer"
|
|
21453
22609
|
},
|
|
22610
|
+
{
|
|
22611
|
+
"slug": "switch-transition",
|
|
22612
|
+
"title": "Switch transition",
|
|
22613
|
+
"category": "Feedback",
|
|
22614
|
+
"status": "stable",
|
|
22615
|
+
"level": "molecule",
|
|
22616
|
+
"description": "The screen a switch of mode or business shows while the dashboard reloads its data: a slow Paper mesh\ngradient in the tone's colour (green for live mode, amber for test mode, blue for a business) over the page, and the\nmessage shimmering in the middle at heading size. It covers the whole viewport (portalled, above\nsheets and dialogs), fades in, and fades out once `active` clears. The gradient stands still under\nreduced motion, and is left out where WebGL 2 is unavailable.",
|
|
22617
|
+
"importPath": "@dodopayments/ui/switch-transition",
|
|
22618
|
+
"exports": [
|
|
22619
|
+
"SwitchTransition",
|
|
22620
|
+
"SwitchTransitionProps",
|
|
22621
|
+
"SwitchTransitionTone"
|
|
22622
|
+
],
|
|
22623
|
+
"parts": [
|
|
22624
|
+
{
|
|
22625
|
+
"name": "SwitchTransition",
|
|
22626
|
+
"description": "The screen a switch of mode or business shows while the dashboard reloads its data: a slow Paper mesh\ngradient in the tone's colour (green for live mode, amber for test mode, blue for a business) over the page, and the\nmessage shimmering in the middle at heading size. It covers the whole viewport (portalled, above\nsheets and dialogs), fades in, and fades out once `active` clears. The gradient stands still under\nreduced motion, and is left out where WebGL 2 is unavailable.",
|
|
22627
|
+
"props": [
|
|
22628
|
+
{
|
|
22629
|
+
"name": "active",
|
|
22630
|
+
"type": "boolean",
|
|
22631
|
+
"required": true,
|
|
22632
|
+
"description": "A switch is running. Clear it once the new mode or business has loaded.",
|
|
22633
|
+
"source": "dodo"
|
|
22634
|
+
},
|
|
22635
|
+
{
|
|
22636
|
+
"name": "message",
|
|
22637
|
+
"type": "string",
|
|
22638
|
+
"required": true,
|
|
22639
|
+
"description": "What is happening, such as \"Switching to test mode\". Announced politely.",
|
|
22640
|
+
"source": "dodo"
|
|
22641
|
+
},
|
|
22642
|
+
{
|
|
22643
|
+
"name": "inline",
|
|
22644
|
+
"type": "boolean",
|
|
22645
|
+
"required": false,
|
|
22646
|
+
"default": "false",
|
|
22647
|
+
"description": "Render in place, still covering the viewport, instead of in a portal: for a page that is only this\nscreen (a sign-in callback), so it renders on the server too.",
|
|
22648
|
+
"source": "dodo"
|
|
22649
|
+
},
|
|
22650
|
+
{
|
|
22651
|
+
"name": "tone",
|
|
22652
|
+
"type": "SwitchTransitionTone",
|
|
22653
|
+
"required": false,
|
|
22654
|
+
"default": "\"brand\"",
|
|
22655
|
+
"description": "The gradient's colour: `brand` for live mode, `warning` for test mode, `info` for a business.",
|
|
22656
|
+
"source": "dodo"
|
|
22657
|
+
}
|
|
22658
|
+
]
|
|
22659
|
+
}
|
|
22660
|
+
],
|
|
22661
|
+
"examples": [
|
|
22662
|
+
{
|
|
22663
|
+
"name": "switch-transition/default",
|
|
22664
|
+
"code": "\"use client\";\n\nimport { Button } from \"@dodopayments/ui/button\";\nimport { SwitchTransition } from \"@dodopayments/ui/switch-transition\";\nimport * as React from \"react\";\n\nexport default function SwitchTransitionDefault() {\n const [active, setActive] = React.useState(false);\n\n return (\n <div className=\"flex flex-col items-center gap-4\">\n <div className=\"relative h-60 w-full overflow-hidden rounded-xl border border-border\">\n <SwitchTransition\n active={active}\n className=\"absolute\"\n inline\n message=\"Switching to live mode\"\n />\n </div>\n <Button\n onClick={() => {\n setActive(true);\n setTimeout(() => setActive(false), 2000);\n }}\n variant=\"secondary\"\n >\n Switch mode\n </Button>\n </div>\n );\n}"
|
|
22665
|
+
},
|
|
22666
|
+
{
|
|
22667
|
+
"name": "switch-transition/tones",
|
|
22668
|
+
"code": "\"use client\";\n\nimport { SwitchTransition } from \"@dodopayments/ui/switch-transition\";\n\nexport default function SwitchTransitionTones() {\n return (\n <div className=\"grid w-full grid-cols-1 gap-4 sm:grid-cols-3\">\n {([\"brand\", \"warning\", \"info\"] as const).map((tone) => (\n <div className=\"relative h-40 overflow-hidden rounded-xl border border-border\" key={tone}>\n <SwitchTransition\n active\n className=\"absolute\"\n inline\n message={`Tone: ${tone}`}\n tone={tone}\n />\n </div>\n ))}\n </div>\n );\n}"
|
|
22669
|
+
}
|
|
22670
|
+
],
|
|
22671
|
+
"docsUrl": "/components/switch-transition"
|
|
22672
|
+
},
|
|
21454
22673
|
{
|
|
21455
22674
|
"slug": "switch",
|
|
21456
22675
|
"title": "Switch",
|
|
21457
22676
|
"category": "Forms",
|
|
21458
22677
|
"status": "stable",
|
|
22678
|
+
"level": "atom",
|
|
21459
22679
|
"description": "An on/off toggle for settings that take effect immediately. Renders the `Switch` primitive (Base UI): a\n`<span role=\"switch\">` with `aria-checked` plus a hidden `<input>` so it submits with forms. Name it\nby wrapping it and its text in a `<label>`, or pass `aria-label`.",
|
|
21460
22680
|
"importPath": "@dodopayments/ui/switch",
|
|
21461
22681
|
"exports": [
|
|
@@ -21622,6 +22842,7 @@
|
|
|
21622
22842
|
"title": "Segmented control",
|
|
21623
22843
|
"category": "Actions",
|
|
21624
22844
|
"status": "stable",
|
|
22845
|
+
"level": "molecule",
|
|
21625
22846
|
"description": "Switches between 2–3 views or values of the same thing (Dodo Nest Segmented control): a chart range\n(7 / 30 / 90 days), Daily / Weekly, a permission level (None / Read / Write), the Test / Live mode. A grey track\nwhere a raised segment springs to the active one. Pass `items`, or `SegmentedControlItem` children. One segment\nis always active: `value` is a string, and pressing the active segment again keeps it. `variant=\"ghost\"` and\n`\"outline\"` are toolbar rows that also take `size` and `multiple` (`value` is then an array). Renders a group of\ntoggle buttons (`aria-pressed`); give it an `aria-label`. Don't use it for page navigation (use `Tabs`) or for\nmore than 3–4 options (use a `Select`).",
|
|
21626
22847
|
"importPath": "@dodopayments/ui/segmented-control",
|
|
21627
22848
|
"exports": [
|
|
@@ -21632,6 +22853,8 @@
|
|
|
21632
22853
|
"SegmentedControlGroupProps",
|
|
21633
22854
|
"SegmentedControlItem",
|
|
21634
22855
|
"SegmentedControlItemProps",
|
|
22856
|
+
"SegmentedControlMenu",
|
|
22857
|
+
"SegmentedControlMenuProps",
|
|
21635
22858
|
"SegmentedControlOption",
|
|
21636
22859
|
"SegmentedControlProps",
|
|
21637
22860
|
"SegmentedControlSize",
|
|
@@ -21924,6 +23147,40 @@
|
|
|
21924
23147
|
"source": "base-ui"
|
|
21925
23148
|
}
|
|
21926
23149
|
]
|
|
23150
|
+
},
|
|
23151
|
+
{
|
|
23152
|
+
"name": "SegmentedControlMenu",
|
|
23153
|
+
"description": "A segment that opens a menu of further options, for a single-select `segmented` control with more values than\nfit: \"More\" with a 12px caret, 28 tall and padded as the other segments. Picking an option makes it the control's\nvalue; the segment then shows that option, raised under the thumb, and still opens the menu.",
|
|
23154
|
+
"props": [
|
|
23155
|
+
{
|
|
23156
|
+
"name": "items",
|
|
23157
|
+
"type": "readonly { value: string; label: ReactNode; }[]",
|
|
23158
|
+
"required": true,
|
|
23159
|
+
"description": "The options it holds, as `SegmentedControl` values.",
|
|
23160
|
+
"source": "dodo"
|
|
23161
|
+
},
|
|
23162
|
+
{
|
|
23163
|
+
"name": "label",
|
|
23164
|
+
"type": "ReactNode",
|
|
23165
|
+
"required": true,
|
|
23166
|
+
"description": "What the segment says while none of its options is active, e.g. \"More\".",
|
|
23167
|
+
"source": "dodo"
|
|
23168
|
+
},
|
|
23169
|
+
{
|
|
23170
|
+
"name": "aria-label",
|
|
23171
|
+
"type": "string",
|
|
23172
|
+
"required": false,
|
|
23173
|
+
"description": "Accessible name of the segment, e.g. \"More statuses\".",
|
|
23174
|
+
"source": "dodo"
|
|
23175
|
+
},
|
|
23176
|
+
{
|
|
23177
|
+
"name": "className",
|
|
23178
|
+
"type": "string",
|
|
23179
|
+
"required": false,
|
|
23180
|
+
"description": "Additional Tailwind classes, merged last.",
|
|
23181
|
+
"source": "dodo"
|
|
23182
|
+
}
|
|
23183
|
+
]
|
|
21927
23184
|
}
|
|
21928
23185
|
],
|
|
21929
23186
|
"examples": [
|
|
@@ -21959,6 +23216,7 @@
|
|
|
21959
23216
|
"title": "Toast",
|
|
21960
23217
|
"category": "Feedback",
|
|
21961
23218
|
"status": "stable",
|
|
23219
|
+
"level": "molecule",
|
|
21962
23220
|
"description": "Renders the toasts queued with `toast.success()`, `toast.error()`, `toast.info()` and `toast.loading()` (and the\nprimitives `toastManager`). Mount exactly one, near the root of the app. Each toast is the Dodo Nest tray: a tone\ntinted tray around a white panel with a Featured icon (the Spinner while loading), the title, an optional\ndescription, a close button, an optional Dismiss + action row and an optional footer. Toasts are 360 wide (the full\nwidth minus 16 a side on phones), stack 8 apart up to `limit`, expand while hovered or focused, and can be swiped\ntoward the nearest edges. The default `top-end` corner is the top right in LTR and the top left in RTL.",
|
|
21963
23221
|
"importPath": "@dodopayments/ui/toast",
|
|
21964
23222
|
"exports": [
|
|
@@ -22320,6 +23578,7 @@
|
|
|
22320
23578
|
"title": "Tabs",
|
|
22321
23579
|
"category": "Navigation",
|
|
22322
23580
|
"status": "stable",
|
|
23581
|
+
"level": "molecule",
|
|
22323
23582
|
"description": "Switches between related views in the same context, such as the sections of a customer page.\nPair it with `TabsList`, `TabsTrigger` and `TabsContent`; each `TabsTrigger` shows the\n`TabsContent` with the same `value`. Renders the `Tabs` primitive (Base UI `Tabs`).",
|
|
22324
23583
|
"importPath": "@dodopayments/ui/tabs",
|
|
22325
23584
|
"exports": [
|
|
@@ -22598,7 +23857,8 @@
|
|
|
22598
23857
|
"title": "Test Mode Banner",
|
|
22599
23858
|
"category": "Feedback",
|
|
22600
23859
|
"status": "stable",
|
|
22601
|
-
"
|
|
23860
|
+
"level": "organism",
|
|
23861
|
+
"description": "Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes\ntest data for live data. It is the app shell's own strip (not an Alert): a centred 12px (Body/Secondary)\nmessage on a 36px dark strip (`bg-test-banner`: Grey 950, the Surface/Inverted fill, and Grey 800 in dark mode), sticky by\ndefault, with an optional underlined \"Switch to live mode\" link button and a \"Learn more\" link. It slides in from above on mount. Pair it with\n`TestModeBadge` next to test-mode records.",
|
|
22602
23862
|
"importPath": "@dodopayments/ui/test-mode-banner",
|
|
22603
23863
|
"exports": [
|
|
22604
23864
|
"TestModeBadge",
|
|
@@ -22610,7 +23870,7 @@
|
|
|
22610
23870
|
"parts": [
|
|
22611
23871
|
{
|
|
22612
23872
|
"name": "TestModeBanner",
|
|
22613
|
-
"description": "Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes\ntest data for live data. It is the app shell's own strip (not an Alert): a centred 12px (Body/Secondary)\nmessage on a dark strip (`bg-test-banner`: Grey
|
|
23873
|
+
"description": "Warning strip that stays at the top of the dashboard while test mode is on, so nobody mistakes\ntest data for live data. It is the app shell's own strip (not an Alert): a centred 12px (Body/Secondary)\nmessage on a 36px dark strip (`bg-test-banner`: Grey 950, the Surface/Inverted fill, and Grey 800 in dark mode), sticky by\ndefault, with an optional underlined \"Switch to live mode\" link button and a \"Learn more\" link. It slides in from above on mount. Pair it with\n`TestModeBadge` next to test-mode records.",
|
|
22614
23874
|
"props": [
|
|
22615
23875
|
{
|
|
22616
23876
|
"name": "labels",
|
|
@@ -22734,6 +23994,7 @@
|
|
|
22734
23994
|
"title": "Icon Morph",
|
|
22735
23995
|
"category": "Actions",
|
|
22736
23996
|
"status": "stable",
|
|
23997
|
+
"level": "organism",
|
|
22737
23998
|
"description": "A button whose icon morphs between two or more states on press, e.g. sun / moon for a theme\ntoggle, menu / close, play / pause. After interior.dev's icon morph\n(https://www.interior.dev/docs/icon-morph): every state draws the same set of paths and `motion`\nsprings each `d` attribute, so one shape turns into the next. Composes `Button` (`variant` and\n`size` pass through; default `secondary` and `icon`). It only reports the state: wire `value` and\n`onValueChange` to whatever it controls. With reduced motion the swap is instant.",
|
|
22738
23999
|
"importPath": "@dodopayments/ui/icon-morph",
|
|
22739
24000
|
"exports": [
|
|
@@ -22924,6 +24185,7 @@
|
|
|
22924
24185
|
"title": "Command palette",
|
|
22925
24186
|
"category": "Overlays",
|
|
22926
24187
|
"status": "stable",
|
|
24188
|
+
"level": "organism",
|
|
22927
24189
|
"description": "A searchable list of commands: the `Command` primitive, an inline Base UI `Autocomplete` that is\nalways open. Put it in a `CommandDialogContent` for a palette that opens on a shortcut, or on the\npage. Compose it from `CommandInput`, `CommandList`, `CommandEmpty`, `CommandGroup` and\n`CommandItem`. With `items`, typing ranks them with a fuzzy match (see `fuzzy`), the first match\nstays highlighted, and Enter runs it.",
|
|
22928
24190
|
"importPath": "@dodopayments/ui/command",
|
|
22929
24191
|
"exports": [
|
|
@@ -23799,7 +25061,12 @@
|
|
|
23799
25061
|
"slug": "context-menu",
|
|
23800
25062
|
"title": "Context menu",
|
|
23801
25063
|
"category": "Overlays",
|
|
23802
|
-
"status": "
|
|
25064
|
+
"status": "deprecated",
|
|
25065
|
+
"deprecated": {
|
|
25066
|
+
"since": "1.8.0",
|
|
25067
|
+
"replacement": "Menu"
|
|
25068
|
+
},
|
|
25069
|
+
"level": "atom",
|
|
23803
25070
|
"description": "Root of a context menu: a menu that opens at the pointer on right-click, or on a long press with\ntouch. Controls open state (`open`/`onOpenChange` or `defaultOpen`). Holds one\n`ContextMenuTrigger` and one `ContextMenuContent` with the Menu parts.",
|
|
23804
25071
|
"importPath": "@dodopayments/ui/context-menu",
|
|
23805
25072
|
"exports": [
|
|
@@ -24062,6 +25329,7 @@
|
|
|
24062
25329
|
"title": "List item",
|
|
24063
25330
|
"category": "Data display",
|
|
24064
25331
|
"status": "stable",
|
|
25332
|
+
"level": "atom",
|
|
24065
25333
|
"description": "One line of a list or one small card (Dodo Nest List item): a leading part, the title and description (one line\neach, with an ellipsis, or whole with `wrap`) and a trailing part. `layout` is `row` (order lines, settings rows, sessions, saved\npayment methods inside a panel; a divider under every row but the last), `card` (side-by-side portal cards, 12\napart), `tile` (a bordered row tile: add-ons with a quantity, or with `href` / `render` a link with a chevron for a settings index) or `add` (a dashed “Add …” tile that is a button; pass `onClick`). Renders a `<div>` (an `<li>` with\n`render={<li />}`, a link with `render={<a href=\"…\" />}`); the add tile renders a `<button>`. It has no hover or\nselected state: for a choice, use a Radio card.",
|
|
24066
25334
|
"importPath": "@dodopayments/ui/list-item",
|
|
24067
25335
|
"exports": [
|
|
@@ -24281,6 +25549,7 @@
|
|
|
24281
25549
|
"title": "List toolbar",
|
|
24282
25550
|
"category": "Data display",
|
|
24283
25551
|
"status": "stable",
|
|
25552
|
+
"level": "organism",
|
|
24284
25553
|
"description": "The row above every Data table (Dodo Nest List toolbar): search, a count or a Refresh button on the left, every\nbutton on the right, the two sides 16 apart and the items in a side 8 apart, all 36 tall. It fills its column and\nhas no fill of its own. Below 42rem of its own width (a container query; Figma says ~700) it stacks: the left side\nfull width, then the right side spread from edge to edge. Put it 16 above the Data table, at the same width. Page\ntitles and tabs belong in the Page header, not here.",
|
|
24285
25554
|
"importPath": "@dodopayments/ui/list-toolbar",
|
|
24286
25555
|
"exports": [
|
|
@@ -24354,7 +25623,7 @@
|
|
|
24354
25623
|
},
|
|
24355
25624
|
{
|
|
24356
25625
|
"name": "ListToolbarFilters",
|
|
24357
|
-
"description": "Filters (Figma: Button secondary lg with the filter icon) opening a `Popover` sm, 8 below and right-aligned: the\n\"Filter by\" header, your filters in the panel, and Clear / Filter on the strip when `onClear` / `onApply` are set.\
|
|
25626
|
+
"description": "Filters (Figma: Button secondary lg with the filter icon) opening a `Popover` sm, 8 below and right-aligned: the\n\"Filter by\" header, your filters in the panel, and Clear / Filter on the strip when `onClear` / `onApply` are set.\nSeveral filters (more than one child) sit two to a row, 12 apart, in a 464 wide popover, as Figma's Filter\npopover; one filter keeps the 220 popover. On mobile it holds every filter and the date range. `count` shows how\nmany filters are applied.",
|
|
24358
25627
|
"props": [
|
|
24359
25628
|
{
|
|
24360
25629
|
"name": "className",
|
|
@@ -24560,6 +25829,7 @@
|
|
|
24560
25829
|
"title": "Leaderboard",
|
|
24561
25830
|
"category": "Data display",
|
|
24562
25831
|
"status": "stable",
|
|
25832
|
+
"level": "organism",
|
|
24563
25833
|
"description": "Top customers by spend (Dodo Nest Leaderboard): a podium of the top three (one joined block of white cells\nwith a gold, silver or bronze glow and a ribbon medal, in rank order 1 · 2 · 3), then a ranked list from 4\ndown, 12 below. Under 24rem (384px) wide the podium stacks, each place a row with its medal beside the text, so\nthe amounts and names read whole. With two customers the third cell is hidden and there is no list; with none it shows the\nempty state; `loading` shows the skeleton. Put it in a `Card`. Compose `LeaderboardPodium`,\n`LeaderboardPodiumCell`, `LeaderboardList` and `LeaderboardRow` for a custom layout.",
|
|
24564
25834
|
"importPath": "@dodopayments/ui/leaderboard",
|
|
24565
25835
|
"exports": [
|
|
@@ -24741,6 +26011,7 @@
|
|
|
24741
26011
|
"title": "Milestone",
|
|
24742
26012
|
"category": "Data display",
|
|
24743
26013
|
"status": "stable",
|
|
26014
|
+
"level": "organism",
|
|
24744
26015
|
"description": "A milestone on the Milestones page (Design File › Merchant Milestones). `state=\"achieved\"` is a reached milestone:\nthe category's colour fades from the top (blue geography, green revenue, indigo growth, violet customers), with\nits gem, title, description, date and a Share button. `state=\"progress\"` is the next target: a grey card with a\ngrey gem, the target and a Progress bar with its percent. Light and dark come from the `--milestone-*` tokens.",
|
|
24745
26016
|
"importPath": "@dodopayments/ui/milestone",
|
|
24746
26017
|
"exports": [
|
|
@@ -25068,7 +26339,11 @@
|
|
|
25068
26339
|
"slug": "sale-share-card",
|
|
25069
26340
|
"title": "Sale share card",
|
|
25070
26341
|
"category": "Data display",
|
|
25071
|
-
"status": "
|
|
26342
|
+
"status": "deprecated",
|
|
26343
|
+
"deprecated": {
|
|
26344
|
+
"since": "1.8.0"
|
|
26345
|
+
},
|
|
26346
|
+
"level": "molecule",
|
|
25072
26347
|
"description": "A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the\nbusiness chip, a headline and the amount in the brand lime with a dark outline. Always light, whatever the theme,\nso the saved picture looks the same. Capture this element at its own size, and preview it in a `ScaledFrame`.",
|
|
25073
26348
|
"importPath": "@dodopayments/ui/sale-share-card",
|
|
25074
26349
|
"exports": [
|
|
@@ -25132,6 +26407,7 @@
|
|
|
25132
26407
|
"title": "Chart share card",
|
|
25133
26408
|
"category": "Data display",
|
|
25134
26409
|
"status": "stable",
|
|
26410
|
+
"level": "molecule",
|
|
25135
26411
|
"description": "An analytics card as an image to share (the dashboard's Analytics and Home, Share): the card at a fixed design\nwidth on artwork, the business chip above it and the Dodo Payments lockup with a verified badge below. The card\nfollows the theme. Capture this element at its own size, and preview it in a `ScaledFrame`.",
|
|
25136
26412
|
"importPath": "@dodopayments/ui/chart-share-card",
|
|
25137
26413
|
"exports": [
|
|
@@ -25197,6 +26473,7 @@
|
|
|
25197
26473
|
"title": "Setup guide",
|
|
25198
26474
|
"category": "Feedback",
|
|
25199
26475
|
"status": "stable",
|
|
26476
|
+
"level": "organism",
|
|
25200
26477
|
"description": "The setup guide a new business follows (the dashboard's Setup guide, opened from the top bar's Setup guide\nbutton): a 320 wide grey tray (Direction 1) with the title, the percent done and a progress bar on its strip, then\none white panel per step, 4 apart. A\ngroup row opens (one at a time) to its tasks, each with a status dot, a status Badge when submitted or blocked and an\noptional \"Mark as done\"; a link row goes straight to a page; a locked row waits behind a padlock; a finished row\nshows a green check. Collapsed, it keeps the header and bar and says what is up next. Place it yourself (the\ndashboard pins it to the bottom-right corner).",
|
|
25201
26478
|
"importPath": "@dodopayments/ui/setup-guide",
|
|
25202
26479
|
"exports": [
|
|
@@ -25343,7 +26620,11 @@
|
|
|
25343
26620
|
"slug": "filter-grid",
|
|
25344
26621
|
"title": "Filter Grid",
|
|
25345
26622
|
"category": "Data display",
|
|
25346
|
-
"status": "
|
|
26623
|
+
"status": "deprecated",
|
|
26624
|
+
"deprecated": {
|
|
26625
|
+
"since": "1.8.0"
|
|
26626
|
+
},
|
|
26627
|
+
"level": "atom",
|
|
25347
26628
|
"description": "Filter chips over a grid of cards, after interior.dev's filter grid\n(https://www.interior.dev/docs/filter-grid). The chips are a Base UI radio group: the arrow keys\nmove and select, and each chip shows its count. The active thumb slides between chips, cells that\nleave fade out, and the cells that stay glide to their new place. The grid keeps a fixed height,\nand focus inside a removed cell returns to the grid. With reduced motion everything changes in\nplace.",
|
|
25348
26629
|
"importPath": "@dodopayments/ui/filter-grid",
|
|
25349
26630
|
"exports": [
|
|
@@ -25543,7 +26824,11 @@
|
|
|
25543
26824
|
"slug": "live-activity",
|
|
25544
26825
|
"title": "Live Activity",
|
|
25545
26826
|
"category": "Feedback",
|
|
25546
|
-
"status": "
|
|
26827
|
+
"status": "deprecated",
|
|
26828
|
+
"deprecated": {
|
|
26829
|
+
"since": "1.8.0"
|
|
26830
|
+
},
|
|
26831
|
+
"level": "organism",
|
|
25547
26832
|
"description": "A small pod that reports one background task, like a phone's live activity, after interior.dev's\nlive activity. Compact it shows a spinner and the percentage; hover, focus, a new task or a phase\nchange opens it to show the title, detail and a progress bar. The pod springs between the two\nsizes, the spinner turns into a drawn check or a warning, and a failure stays open with an optional\naction. Phase changes are announced politely. Drive it with {@link useLiveActivity}. With reduced\nmotion every change is instant.",
|
|
25548
26833
|
"importPath": "@dodopayments/ui/live-activity",
|
|
25549
26834
|
"exports": [
|
|
@@ -25649,6 +26934,7 @@
|
|
|
25649
26934
|
"title": "Load More",
|
|
25650
26935
|
"category": "Navigation",
|
|
25651
26936
|
"status": "stable",
|
|
26937
|
+
"level": "organism",
|
|
25652
26938
|
"description": "The button at the end of a paged list, after interior.dev's load more\n(https://www.interior.dev/docs/load-more). It loads the next page on press and, with `auto`,\nwhen the end of the list comes near the viewport (at most `maxAutoLoads` times in a row). Its four\nfaces (load more, loading, error, end) share one cell and cross-fade on a spring, so the button\nkeeps its width. Composes `Button` (default `ghost`, `sm`). With reduced motion the faces swap\nwithout animation.",
|
|
25653
26939
|
"importPath": "@dodopayments/ui/load-more",
|
|
25654
26940
|
"exports": [
|
|
@@ -25842,7 +27128,11 @@
|
|
|
25842
27128
|
"slug": "new-items-pill",
|
|
25843
27129
|
"title": "New Items Pill",
|
|
25844
27130
|
"category": "Feedback",
|
|
25845
|
-
"status": "
|
|
27131
|
+
"status": "deprecated",
|
|
27132
|
+
"deprecated": {
|
|
27133
|
+
"since": "1.8.0"
|
|
27134
|
+
},
|
|
27135
|
+
"level": "organism",
|
|
25846
27136
|
"description": "A floating \"3 new items\" pill for feeds and chats, after interior.dev's new items pill\n(https://www.interior.dev/docs/new-items-pill). Place it in a `relative` wrapper around the scroll\ncontainer and feed it from {@link useNewItems}. It springs in from its edge, and a live region\nannounces the count once a burst of items settles. Composes `Button` (default `secondary`, `sm`).\nWith reduced motion it only fades.",
|
|
25847
27137
|
"importPath": "@dodopayments/ui/new-items-pill",
|
|
25848
27138
|
"exports": [
|
|
@@ -25980,6 +27270,7 @@
|
|
|
25980
27270
|
"title": "Password Strength",
|
|
25981
27271
|
"category": "Forms",
|
|
25982
27272
|
"status": "stable",
|
|
27273
|
+
"level": "atom",
|
|
25983
27274
|
"description": "A strength meter and a rule checklist for a password field, after interior.dev's password strength\n(https://www.interior.dev/docs/password-strength). The segments fill from the start edge one after another (`scale-x`,\n`duration-slow`, `ease-smooth-out`, staggered by `--motion-duration-stagger`) and change colour with the score (destructive, warning, success). The strength name cross-fades in\nplace, a warning shows for commonly guessed passwords, and each rule ticks when met. It renders the\n`Meter` primitive (Base UI `Meter`, `role=\"meter\"`) and announces a summary through a polite live\nregion after the user pauses. Put it below the password field and link it with `aria-describedby`\nwhen it helps. With reduced motion every change is instant.",
|
|
25984
27275
|
"importPath": "@dodopayments/ui/password-strength",
|
|
25985
27276
|
"exports": [
|
|
@@ -26123,7 +27414,11 @@
|
|
|
26123
27414
|
"slug": "reorder-list",
|
|
26124
27415
|
"title": "Reorder List",
|
|
26125
27416
|
"category": "Data display",
|
|
26126
|
-
"status": "
|
|
27417
|
+
"status": "deprecated",
|
|
27418
|
+
"deprecated": {
|
|
27419
|
+
"since": "1.8.0"
|
|
27420
|
+
},
|
|
27421
|
+
"level": "atom",
|
|
26127
27422
|
"description": "A vertical list the user can reorder by dragging or with the keyboard, after interior.dev's reorder\nlist (https://www.interior.dev/docs/reorder-list). It uses `motion`'s `Reorder`: the dragged row\nlifts and the other rows spring out of its way. With the keyboard, Space grabs a row, the arrow\nkeys move it, Space drops it and Escape restores the order. A live region reads each step. The list\nis controlled: keep `value` in state and update it from `onValueChange`. With reduced motion rows\nmove without animation.",
|
|
26128
27423
|
"importPath": "@dodopayments/ui/reorder-list",
|
|
26129
27424
|
"exports": [
|
|
@@ -26199,6 +27494,14 @@
|
|
|
26199
27494
|
"required": false,
|
|
26200
27495
|
"description": "Called with the final order when a drag or a keyboard move ends.",
|
|
26201
27496
|
"source": "dodo"
|
|
27497
|
+
},
|
|
27498
|
+
{
|
|
27499
|
+
"name": "variant",
|
|
27500
|
+
"type": "\"card\" | \"plain\"",
|
|
27501
|
+
"required": false,
|
|
27502
|
+
"default": "\"card\"",
|
|
27503
|
+
"description": "`card` boxes each row; `plain` divides the rows with a line, for a list inside a card of its own. A dragged\nrow lifts with a fill and a shadow either way.",
|
|
27504
|
+
"source": "dodo"
|
|
26202
27505
|
}
|
|
26203
27506
|
]
|
|
26204
27507
|
}
|
|
@@ -26285,7 +27588,11 @@
|
|
|
26285
27588
|
"slug": "task-steps",
|
|
26286
27589
|
"title": "Task Steps",
|
|
26287
27590
|
"category": "Feedback",
|
|
26288
|
-
"status": "
|
|
27591
|
+
"status": "deprecated",
|
|
27592
|
+
"deprecated": {
|
|
27593
|
+
"since": "1.8.0"
|
|
27594
|
+
},
|
|
27595
|
+
"level": "molecule",
|
|
26289
27596
|
"description": "A vertical checklist for a multi-step job, such as a deploy or an import, after interior.dev's task\nsteps (https://www.interior.dev/docs/task-steps). Steps before `value` show a check, the step at\n`value` spins and shimmers, and later steps wait as dots. Set `failed` to mark the step at `value`\nwith a cross. When a step finishes its badge pops in and its check draws along its stroke\n(`duration-very-slow` after `delay-micro`); rows already done on mount do not animate. A `meta`\ntext, such as a duration, shows when its step is done. A polite live region reads the active step\nafter a short delay, and the end of the run. With reduced motion the badges appear without the pop\nor the draw, and the label does not shimmer. Composite: the primitive `Spinner` and `TextShimmer`.",
|
|
26290
27597
|
"importPath": "@dodopayments/ui/task-steps",
|
|
26291
27598
|
"exports": [
|
|
@@ -26393,7 +27700,11 @@
|
|
|
26393
27700
|
"slug": "typing-indicator",
|
|
26394
27701
|
"title": "Typing Indicator",
|
|
26395
27702
|
"category": "Feedback",
|
|
26396
|
-
"status": "
|
|
27703
|
+
"status": "deprecated",
|
|
27704
|
+
"deprecated": {
|
|
27705
|
+
"since": "1.8.0"
|
|
27706
|
+
},
|
|
27707
|
+
"level": "atom",
|
|
26397
27708
|
"description": "A chat bubble with three dots that ripple while someone types, and an \"is typing\" label, after\ninterior.dev's typing indicator (https://www.interior.dev/docs/typing-indicator). The bubble grows in\nfrom its bottom corner and shrinks away on send. The label slides between rosters. A polite live region\nreads the label after it holds still for `announceAfter`. With reduced motion the dots hold still and\neverything fades. Composite: motion only, on the `muted` tokens.",
|
|
26398
27709
|
"importPath": "@dodopayments/ui/typing-indicator",
|
|
26399
27710
|
"exports": [
|
|
@@ -26552,6 +27863,7 @@
|
|
|
26552
27863
|
"title": "Value Flash",
|
|
26553
27864
|
"category": "Data display",
|
|
26554
27865
|
"status": "stable",
|
|
27866
|
+
"level": "atom",
|
|
26555
27867
|
"description": "A number that flashes when it changes, for live prices, balances and counters. After\ninterior.dev's value flash (https://www.interior.dev/docs/value-flash): the new number rolls in\nfrom the direction of the change, the value tints success (up) or destructive (down), lifts\nslightly, and a caret pops in beside it. Changes are announced through a polite live region once\nthe value settles. With reduced motion the number cross-fades and nothing moves.",
|
|
26556
27868
|
"importPath": "@dodopayments/ui/value-flash",
|
|
26557
27869
|
"exports": [
|
|
@@ -26739,7 +28051,11 @@
|
|
|
26739
28051
|
"slug": "wizard-steps",
|
|
26740
28052
|
"title": "Wizard Steps",
|
|
26741
28053
|
"category": "Navigation",
|
|
26742
|
-
"status": "
|
|
28054
|
+
"status": "deprecated",
|
|
28055
|
+
"deprecated": {
|
|
28056
|
+
"since": "1.8.0"
|
|
28057
|
+
},
|
|
28058
|
+
"level": "organism",
|
|
26743
28059
|
"description": "A multi-step form with a numbered rail, a sliding panel and Back / Next buttons, after interior.dev's\nwizard steps (https://www.interior.dev/docs/wizard-steps). The panel slides in the direction of travel.\nAs a step finishes its connector fills (`duration-slow`) and its check draws (`duration-very-slow`\nafter `delay-micro`); steps finished on mount do not animate. Steps already visited stay\nselectable: click them, or use the arrow keys, Home and End on the rail. On the last step Next\nbecomes Finish and calls `onComplete`; set `complete` to show the done panel. With reduced motion\nthe panels cross-fade without travel.\nComposite: our `Button` for Back and Next.",
|
|
26744
28060
|
"importPath": "@dodopayments/ui/wizard-steps",
|
|
26745
28061
|
"exports": [
|
|
@@ -26912,7 +28228,8 @@
|
|
|
26912
28228
|
"title": "Timestamp",
|
|
26913
28229
|
"category": "Data display",
|
|
26914
28230
|
"status": "stable",
|
|
26915
|
-
"
|
|
28231
|
+
"level": "molecule",
|
|
28232
|
+
"description": "A timestamp that reveals the exact time on hover, focus or tap: the trigger shows the time in\n`format`, the card lists it in the preferred (or device) zone, in UTC, relative to now and as\nepoch milliseconds. Relative times refresh every 30 seconds. Built on the `PreviewCard` primitive; on\ntouch (coarse pointer) devices a tap toggles it. The card is not in the tab order, so each row's copy\nbutton is for a pointer; keyboard and screen-reader users get every zone from the trigger's own text.",
|
|
26916
28233
|
"importPath": "@dodopayments/ui/timestamp",
|
|
26917
28234
|
"exports": [
|
|
26918
28235
|
"TimeZoneProvider",
|
|
@@ -26925,7 +28242,7 @@
|
|
|
26925
28242
|
"parts": [
|
|
26926
28243
|
{
|
|
26927
28244
|
"name": "Timestamp",
|
|
26928
|
-
"description": "A timestamp that reveals the exact time on hover, focus or tap: the trigger shows the time in\n`format`, the
|
|
28245
|
+
"description": "A timestamp that reveals the exact time on hover, focus or tap: the trigger shows the time in\n`format`, the card lists it in the preferred (or device) zone, in UTC, relative to now and as\nepoch milliseconds. Relative times refresh every 30 seconds. Built on the `PreviewCard` primitive; on\ntouch (coarse pointer) devices a tap toggles it. The card is not in the tab order, so each row's copy\nbutton is for a pointer; keyboard and screen-reader users get every zone from the trigger's own text.",
|
|
26929
28246
|
"props": [
|
|
26930
28247
|
{
|
|
26931
28248
|
"name": "value",
|
|
@@ -26955,59 +28272,6 @@
|
|
|
26955
28272
|
"required": false,
|
|
26956
28273
|
"description": "IANA time zone (e.g. \"Asia/Kolkata\") for the trigger and the first tooltip row, over the\nnearest `TimeZoneProvider`'s. When neither is set or valid, the trigger uses UTC and the first row uses the device's zone.",
|
|
26957
28274
|
"source": "dodo"
|
|
26958
|
-
},
|
|
26959
|
-
{
|
|
26960
|
-
"name": "className",
|
|
26961
|
-
"type": "string | ((state: TooltipTriggerState) => string | undefined)",
|
|
26962
|
-
"required": false,
|
|
26963
|
-
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state.",
|
|
26964
|
-
"source": "base-ui"
|
|
26965
|
-
},
|
|
26966
|
-
{
|
|
26967
|
-
"name": "closeDelay",
|
|
26968
|
-
"type": "number",
|
|
26969
|
-
"required": false,
|
|
26970
|
-
"default": "0",
|
|
26971
|
-
"description": "How long to wait before closing the tooltip. Specified in milliseconds.",
|
|
26972
|
-
"source": "base-ui"
|
|
26973
|
-
},
|
|
26974
|
-
{
|
|
26975
|
-
"name": "closeOnClick",
|
|
26976
|
-
"type": "boolean",
|
|
26977
|
-
"required": false,
|
|
26978
|
-
"default": "true",
|
|
26979
|
-
"description": "Whether the tooltip should close when this trigger is clicked.",
|
|
26980
|
-
"source": "base-ui"
|
|
26981
|
-
},
|
|
26982
|
-
{
|
|
26983
|
-
"name": "delay",
|
|
26984
|
-
"type": "number",
|
|
26985
|
-
"required": false,
|
|
26986
|
-
"default": "600",
|
|
26987
|
-
"description": "How long to wait before opening the tooltip on hover. Specified in milliseconds.",
|
|
26988
|
-
"source": "base-ui"
|
|
26989
|
-
},
|
|
26990
|
-
{
|
|
26991
|
-
"name": "disabled",
|
|
26992
|
-
"type": "boolean",
|
|
26993
|
-
"required": false,
|
|
26994
|
-
"default": "false",
|
|
26995
|
-
"description": "If `true`, the tooltip will not open when interacting with this trigger.\nNote that this doesn't apply the `disabled` attribute to the trigger element.\nIf you want to disable the trigger element itself, you can pass the `disabled` prop to the trigger element via the `render` prop.",
|
|
26996
|
-
"source": "base-ui"
|
|
26997
|
-
},
|
|
26998
|
-
{
|
|
26999
|
-
"name": "handle",
|
|
27000
|
-
"type": "TooltipHandle<unknown>",
|
|
27001
|
-
"required": false,
|
|
27002
|
-
"description": "A handle to associate the trigger with a tooltip.",
|
|
27003
|
-
"source": "base-ui"
|
|
27004
|
-
},
|
|
27005
|
-
{
|
|
27006
|
-
"name": "payload",
|
|
27007
|
-
"type": "unknown",
|
|
27008
|
-
"required": false,
|
|
27009
|
-
"description": "A payload to pass to the tooltip when it is opened.",
|
|
27010
|
-
"source": "base-ui"
|
|
27011
28275
|
}
|
|
27012
28276
|
]
|
|
27013
28277
|
},
|
|
@@ -27046,6 +28310,7 @@
|
|
|
27046
28310
|
"title": "Tooltip",
|
|
27047
28311
|
"category": "Overlays",
|
|
27048
28312
|
"status": "stable",
|
|
28313
|
+
"level": "atom",
|
|
27049
28314
|
"description": "The tooltip bubble (primitive `TooltipPopup`). Keep it to one short sentence; max width is 280px.",
|
|
27050
28315
|
"importPath": "@dodopayments/ui/tooltip",
|
|
27051
28316
|
"exports": [
|
|
@@ -27535,7 +28800,8 @@
|
|
|
27535
28800
|
"title": "Page header",
|
|
27536
28801
|
"category": "Navigation",
|
|
27537
28802
|
"status": "stable",
|
|
27538
|
-
"
|
|
28803
|
+
"level": "organism",
|
|
28804
|
+
"description": "The title row at the top of every dashboard page (Dodo Nest Page header). `size=\"sm\"` shrinks the title and\nraises the description for list and settings pages. Navigation is none (top-level pages),\n`back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above\nthe title). The title is Heading/Primary (Heading/Secondary on the mobile layout) with an optional `help`\nquestion icon and a `meta` slot for a status Badge or Copyable ID; `actions` holds up to two large Buttons on the\nright; the `description` sits under the title, indented past the back button. Rows are 4 apart. Below 576px (or\nwith `breakpoint=\"mobile\"`) the back button stays beside the title and the actions move 8 below the description.\nNo fill: put it first on the main panel, 40 under the App top bar on desktop (24 on mobile) and 24 above the\nfirst section.",
|
|
27539
28805
|
"importPath": "@dodopayments/ui/page-header",
|
|
27540
28806
|
"exports": [
|
|
27541
28807
|
"PageHeader",
|
|
@@ -27544,13 +28810,13 @@
|
|
|
27544
28810
|
"parts": [
|
|
27545
28811
|
{
|
|
27546
28812
|
"name": "PageHeader",
|
|
27547
|
-
"description": "The title row at the top of every dashboard page (Dodo Nest Page header). `size=\"sm\"` shrinks the title and\nraises the description for list and settings pages. Navigation is none (top-level pages),\n`back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above\nthe title). The title is Heading/Secondary with an optional `help
|
|
28813
|
+
"description": "The title row at the top of every dashboard page (Dodo Nest Page header). `size=\"sm\"` shrinks the title and\nraises the description for list and settings pages. Navigation is none (top-level pages),\n`back` (one level up: a secondary 36px icon button before the title) or `breadcrumb` (two or more levels, above\nthe title). The title is Heading/Primary (Heading/Secondary on the mobile layout) with an optional `help`\nquestion icon and a `meta` slot for a status Badge or Copyable ID; `actions` holds up to two large Buttons on the\nright; the `description` sits under the title, indented past the back button. Rows are 4 apart. Below 576px (or\nwith `breakpoint=\"mobile\"`) the back button stays beside the title and the actions move 8 below the description.\nNo fill: put it first on the main panel, 40 under the App top bar on desktop (24 on mobile) and 24 above the\nfirst section.",
|
|
27548
28814
|
"props": [
|
|
27549
28815
|
{
|
|
27550
28816
|
"name": "title",
|
|
27551
28817
|
"type": "ReactNode",
|
|
27552
28818
|
"required": true,
|
|
27553
|
-
"description": "Page title
|
|
28819
|
+
"description": "Page title, e.g. \"Transaction details\": Heading/Primary on the desktop row, Heading/Secondary on the mobile\nlayout (`size=\"sm\"`: Heading/Tertiary). Long titles and IDs wrap.",
|
|
27554
28820
|
"source": "dodo"
|
|
27555
28821
|
},
|
|
27556
28822
|
{
|
|
@@ -27656,6 +28922,7 @@
|
|
|
27656
28922
|
"title": "Order Summary",
|
|
27657
28923
|
"category": "Blocks",
|
|
27658
28924
|
"status": "stable",
|
|
28925
|
+
"level": "organism",
|
|
27659
28926
|
"description": "Checkout order summary, ported from the checkout and the customer portal: product rows\n(`OrderSummaryItem`), then amount lines (`OrderSummaryLine`) ending in the total, then an\noptional free-trial row. Every amount is passed in formatted. With `collapsible`, phones get an\n\"Order details\" toggle with the total; from `lg` up the summary always shows. Renders a\n`<section>` named by `title` or `aria-label`.",
|
|
27660
28927
|
"importPath": "@dodopayments/ui/order-summary",
|
|
27661
28928
|
"exports": [
|
|
@@ -27997,6 +29264,7 @@
|
|
|
27997
29264
|
"title": "Details Panel",
|
|
27998
29265
|
"category": "Blocks",
|
|
27999
29266
|
"status": "stable",
|
|
29267
|
+
"level": "organism",
|
|
28000
29268
|
"description": "Read-only facts of a record as labelled values grouped in sections, ported from the dashboard's\npayment details panel and payout schedule card: a `Card` with the title, description and action on\nits grey strip and the sections and footer in the white panel, separated by rules, each section a description list (`<dl>`). `layout=\"grid\"` stacks label over\nvalue in 2 columns (1 under 20rem, 3 from 28rem); `layout=\"rows\"` puts label and value\non one divided row. Values are preformatted nodes; empty ones show `emptyValue`, and `hidden`\nitems are left out.",
|
|
28001
29269
|
"importPath": "@dodopayments/ui/details-panel",
|
|
28002
29270
|
"exports": [
|
|
@@ -28115,7 +29383,11 @@
|
|
|
28115
29383
|
"slug": "invoice-document",
|
|
28116
29384
|
"title": "Invoice Document",
|
|
28117
29385
|
"category": "Blocks",
|
|
28118
|
-
"status": "
|
|
29386
|
+
"status": "deprecated",
|
|
29387
|
+
"deprecated": {
|
|
29388
|
+
"since": "1.8.0"
|
|
29389
|
+
},
|
|
29390
|
+
"level": "molecule",
|
|
28119
29391
|
"description": "An invoice as its PDF prints, ported from the dashboard's invoice preview: A4 at 72 dpi (595 wide,\nat least 842 tall) with the title, status and merchant on a grey strip, the parties, the amount due,\nthe details, the lines and the totals, then Dodo's footer. It always draws light, as the PDF does.\nPut it in a `ScaledFrame` with `width={595}` to fit it to a column.",
|
|
28120
29392
|
"importPath": "@dodopayments/ui/invoice-document",
|
|
28121
29393
|
"exports": [
|
|
@@ -28331,7 +29603,11 @@
|
|
|
28331
29603
|
"slug": "payment-result",
|
|
28332
29604
|
"title": "Payment Result",
|
|
28333
29605
|
"category": "Blocks",
|
|
28334
|
-
"status": "
|
|
29606
|
+
"status": "deprecated",
|
|
29607
|
+
"deprecated": {
|
|
29608
|
+
"since": "1.8.0"
|
|
29609
|
+
},
|
|
29610
|
+
"level": "organism",
|
|
28335
29611
|
"description": "Receipt card for the page a customer lands on after paying, ported from the checkout status page:\na merchant pill, a toned icon with the outcome title, a status `Badge` and date row, the decline\nreason, then the purchased items, the totals with an optional `Alert` notice and the invoice\nlink, each section after a dashed rule. Values are preformatted by the caller; sections without\ncontent are left out with their rule.",
|
|
28336
29612
|
"importPath": "@dodopayments/ui/payment-result",
|
|
28337
29613
|
"exports": [
|
|
@@ -28510,6 +29786,7 @@
|
|
|
28510
29786
|
"title": "Celebration Dialog",
|
|
28511
29787
|
"category": "Blocks",
|
|
28512
29788
|
"status": "stable",
|
|
29789
|
+
"level": "atom",
|
|
28513
29790
|
"description": "The dialog that marks a milestone, as the dashboard shows when setup reaches 100% in live mode: a 296px hero of\nmoving green silk with `media` over it, confetti falling across the window behind the card, then the title, the\ndescription and one `action`. No close button: the action, Escape and the scrim all close it. The silk and the\nconfetti stop under `prefers-reduced-motion`. Load it lazily where it rarely opens: it ships a WebGL shader.",
|
|
28514
29791
|
"importPath": "@dodopayments/ui/celebration-dialog",
|
|
28515
29792
|
"exports": [
|
|
@@ -28594,6 +29871,7 @@
|
|
|
28594
29871
|
"title": "Subscription Card",
|
|
28595
29872
|
"category": "Blocks",
|
|
28596
29873
|
"status": "stable",
|
|
29874
|
+
"level": "organism",
|
|
28597
29875
|
"description": "A customer's subscription in the customer portal: name, add-ons and business, the payment method in the top\ncorner, the price with an optional note, then \"Manage subscription\" and the status and date chips. A `notice`\n(`CardNotice`) tucks under the card for past due, on hold, trial, plan change, cancellation, pause or a missing\npayment method. The card is the Direction 1 tray around a white panel. Values are preformatted: it does no\ncurrency or date math. `children` render under the price, e.g. a usage `Progress`.",
|
|
28598
29876
|
"importPath": "@dodopayments/ui/subscription-card",
|
|
28599
29877
|
"exports": [
|
|
@@ -28751,6 +30029,7 @@
|
|
|
28751
30029
|
"title": "Payment Method List",
|
|
28752
30030
|
"category": "Blocks",
|
|
28753
30031
|
"status": "stable",
|
|
30032
|
+
"level": "organism",
|
|
28754
30033
|
"description": "Card listing saved payment methods or bank accounts, after the customer portal's payment methods\nsection and the dashboard's linked bank accounts: a `Card` with a heading, an optional add\nbutton and a list of `PaymentMethodItem`s, optionally split into `PaymentMethodGroup`s. With no\nitems it shows an empty state that holds the add button.",
|
|
28755
30034
|
"importPath": "@dodopayments/ui/payment-method-list",
|
|
28756
30035
|
"exports": [
|
|
@@ -29012,7 +30291,11 @@
|
|
|
29012
30291
|
"slug": "plan-picker",
|
|
29013
30292
|
"title": "Plan Picker",
|
|
29014
30293
|
"category": "Blocks",
|
|
29015
|
-
"status": "
|
|
30294
|
+
"status": "deprecated",
|
|
30295
|
+
"deprecated": {
|
|
30296
|
+
"since": "1.8.0"
|
|
30297
|
+
},
|
|
30298
|
+
"level": "organism",
|
|
29016
30299
|
"description": "Plan chooser for checkout and change-plan flows, ported from the checkout product collection and\nthe customer portal's change-plan sheet. Plans are cards in a `RadioGroup`: a label row with the\nradio, name, badges and price, then under a divider the description, feature chips, an `extra`\nslot and, on the selected plan, a `QuantityStepper`. A click anywhere on a card picks its\nplan and arrow keys move the selection. With more than one group, `Tabs` switch between the groups\n(e.g. Monthly and Yearly) while the selection is shared. `currentValue` marks the customer's plan\nwith a badge, and `footer` holds the follow-up action.",
|
|
29017
30300
|
"importPath": "@dodopayments/ui/plan-picker",
|
|
29018
30301
|
"exports": [
|
|
@@ -29193,7 +30476,11 @@
|
|
|
29193
30476
|
"slug": "proration-preview",
|
|
29194
30477
|
"title": "Proration Preview",
|
|
29195
30478
|
"category": "Blocks",
|
|
29196
|
-
"status": "
|
|
30479
|
+
"status": "deprecated",
|
|
30480
|
+
"deprecated": {
|
|
30481
|
+
"since": "1.8.0"
|
|
30482
|
+
},
|
|
30483
|
+
"level": "organism",
|
|
29197
30484
|
"description": "What a plan change costs, ported from the customer portal's change-plan sheet: the current and\nnew plan side by side, a sentence on when the change applies, then plain rows (credit for unused\ntime, charge for the new plan, the amount due today and the next invoice). Amounts are integer\nminor units rendered with `Money` (the credit as a muted negative with a true minus sign), the\ninvoice date with `Timestamp`. Rows are `OrderSummaryLine`s. Renders a `<section>` named by\n`title` or `aria-label` and described by the summary. The component does no proration maths:\npass the amounts from your billing API's preview.",
|
|
29198
30485
|
"importPath": "@dodopayments/ui/proration-preview",
|
|
29199
30486
|
"exports": [
|
|
@@ -29322,6 +30609,7 @@
|
|
|
29322
30609
|
"title": "Stat Card",
|
|
29323
30610
|
"category": "Blocks",
|
|
29324
30611
|
"status": "stable",
|
|
30612
|
+
"level": "organism",
|
|
29325
30613
|
"description": "A static metric (Dodo Nest Stat card): the label on a grey strip, the number in a white panel, and an optional\ntrend chip and comparison under it. Put a `StatCardBreakdown` inside for the parts of the number (Payout balance).\n`loading` shows Skeleton lines, `empty` shows \"-\" and a reason, and `error` (with `onRetry`) a retry; what replaces\nthe loading skeletons fades in. Cards in a CSS grid row (`StatGrid`) stretch to one height. `layout=\"inline\"`\ndrops the tray for a bare stat; a grouped `StatGrid` makes every card in it inline. Renders a `<section>` labelled by the\nlabel.",
|
|
29326
30614
|
"importPath": "@dodopayments/ui/stat-card",
|
|
29327
30615
|
"exports": [
|
|
@@ -29611,6 +30899,7 @@
|
|
|
29611
30899
|
"title": "Settings Section",
|
|
29612
30900
|
"category": "Blocks",
|
|
29613
30901
|
"status": "stable",
|
|
30902
|
+
"level": "organism",
|
|
29614
30903
|
"description": "A card of related settings, ported from the dashboard's settings pages: a heading with a\ndescription and an optional action, then rows (`SettingRow`, `SettingToggleRow`) separated by\ndividers, and an optional footer. Renders a `<section>` labelled by its heading.",
|
|
29615
30904
|
"importPath": "@dodopayments/ui/settings-section",
|
|
29616
30905
|
"exports": [
|
|
@@ -29727,6 +31016,13 @@
|
|
|
29727
31016
|
"description": "`id` given to the description, so the control can reference it with `aria-describedby`.",
|
|
29728
31017
|
"source": "dodo"
|
|
29729
31018
|
},
|
|
31019
|
+
{
|
|
31020
|
+
"name": "icon",
|
|
31021
|
+
"type": "ReactNode",
|
|
31022
|
+
"required": false,
|
|
31023
|
+
"description": "A leading icon tile before the title, e.g. `<FeaturedIcon icon={<KeyIcon />} />`.",
|
|
31024
|
+
"source": "dodo"
|
|
31025
|
+
},
|
|
29730
31026
|
{
|
|
29731
31027
|
"name": "tooltip",
|
|
29732
31028
|
"type": "ReactNode",
|
|
@@ -29819,6 +31115,13 @@
|
|
|
29819
31115
|
"description": "What the setting does or its current state, under the title.",
|
|
29820
31116
|
"source": "dodo"
|
|
29821
31117
|
},
|
|
31118
|
+
{
|
|
31119
|
+
"name": "icon",
|
|
31120
|
+
"type": "ReactNode",
|
|
31121
|
+
"required": false,
|
|
31122
|
+
"description": "A leading icon tile before the title, e.g. `<FeaturedIcon icon={<KeyIcon />} />`.",
|
|
31123
|
+
"source": "dodo"
|
|
31124
|
+
},
|
|
29822
31125
|
{
|
|
29823
31126
|
"name": "switchProps",
|
|
29824
31127
|
"type": "Omit<SwitchProps, \"defaultChecked\" | \"id\" | \"disabled\" | \"name\" | \"checked\" | \"onCheckedChange\">",
|
|
@@ -29894,6 +31197,7 @@
|
|
|
29894
31197
|
"title": "Activity timeline",
|
|
29895
31198
|
"category": "Blocks",
|
|
29896
31199
|
"status": "stable",
|
|
31200
|
+
"level": "organism",
|
|
29897
31201
|
"description": "Events over time on payment and customer detail pages and the blocklist log (Dodo Nest Activity\ntimeline): an `ol` of `ActivityTimelineItem`s, each with a tone icon (a 20px Featured icon, or a\ndot for `tone=\"none\"`), a line to the next event, a title, an optional description and a\n`Timestamp` on the right. Newest first. While `loading` it shows skeleton rows, with no events an\nempty state, on `error` an error state with an optional retry, and while `hasMore` a `LoadMore`\nbutton under the list. It holds no data: fetch, sort and word the events in your app. Put it in a\n`Card` titled \"Activity log\".",
|
|
29898
31202
|
"importPath": "@dodopayments/ui/activity-timeline",
|
|
29899
31203
|
"exports": [
|
|
@@ -30165,6 +31469,7 @@
|
|
|
30165
31469
|
"title": "Auth Card",
|
|
30166
31470
|
"category": "Blocks",
|
|
30167
31471
|
"status": "stable",
|
|
31472
|
+
"level": "organism",
|
|
30168
31473
|
"description": "Sign-in card, ported from the dashboard login page and the customer portal login: a logo, a\nheading and four steps. `\"email\"` shows optional social `providers` (the last used one says so\nat its end) with an \"Or\" divider and an email form; with `onPasswordContinue` its main button is\n\"Continue with password\" and a secondary \"Log in with OTP\" sends a code. `\"password\"` adds a\npassword field with a show/hide button and a forgot-password link (and keeps the providers with\n`providersOnPasswordStep`); `\"code\"` shows an `OtpField` that submits by itself once every slot\nis filled; `\"sent\"` tells the user to open the link in their email. You own `step` and switch it\nfrom your handlers; the card keeps the email, shows loading buttons for returned promises, moves\nfocus to the new step and shows `error` under the field it belongs to. Renders a `<section>`\nlabelled by the heading.",
|
|
30169
31474
|
"importPath": "@dodopayments/ui/auth-card",
|
|
30170
31475
|
"exports": [
|
|
@@ -30590,7 +31895,11 @@
|
|
|
30590
31895
|
"slug": "product-card",
|
|
30591
31896
|
"title": "Product Card",
|
|
30592
31897
|
"category": "Blocks",
|
|
30593
|
-
"status": "
|
|
31898
|
+
"status": "deprecated",
|
|
31899
|
+
"deprecated": {
|
|
31900
|
+
"since": "1.8.0"
|
|
31901
|
+
},
|
|
31902
|
+
"level": "organism",
|
|
30594
31903
|
"description": "Storefront product card, ported from the Dodo store front: a square blur-up photo (or\n`imageFallback`) with an optional `badge` and an info button that slides `description` up over\nthe image, then the name, `compareAtPrice` struck through, `price` and `interval`. Purchase turns\ninto a `QuantityStepper` and Buy now, which calls `onBuy(quantity)`; at 0 the stepper shows 0 and Buy\nnow is disabled, and focus follows the swap. Renders an `<article>` labelled by the name.",
|
|
30595
31904
|
"importPath": "@dodopayments/ui/product-card",
|
|
30596
31905
|
"exports": [
|
|
@@ -30889,6 +32198,7 @@
|
|
|
30889
32198
|
"title": "Record Header",
|
|
30890
32199
|
"category": "Blocks",
|
|
30891
32200
|
"status": "stable",
|
|
32201
|
+
"level": "organism",
|
|
30892
32202
|
"description": "Hero of a record's detail page (a payment, customer or subscription), not the page title: a\n`<section>` labelled by the title around a `Card`. It shows optional media, the title (an\namount or a name) with its status and a subtitle, icon + text facts (`meta`), labelled `chips`\nsuch as a `CopyableId` and a `Timestamp`, and a `notice` (`CardNotice`) tucked under the card. The actions sit\nbeside the heading while the heading keeps its own width up to 12rem, even in a narrow pane, and wrap under it when\nthey do not fit. The media lines up with the title row.",
|
|
30893
32203
|
"importPath": "@dodopayments/ui/record-header",
|
|
30894
32204
|
"exports": [
|
|
@@ -30986,6 +32296,7 @@
|
|
|
30986
32296
|
"title": "Brand logos",
|
|
30987
32297
|
"category": "Brand",
|
|
30988
32298
|
"status": "stable",
|
|
32299
|
+
"level": "atom",
|
|
30989
32300
|
"description": "A brand's mark at 16px (size it with `size-*`), e.g. the provider type of a workload identity provider. Black or\nwhite marks (GitHub, Vercel, AWS's wordmark) use `currentColor`, so they follow the text in both themes; coloured\nmarks keep their brand colours.",
|
|
30990
32301
|
"importPath": "@dodopayments/ui/brand-logos",
|
|
30991
32302
|
"exports": [
|
|
@@ -31030,7 +32341,8 @@
|
|
|
31030
32341
|
"title": "Payment logos & flags",
|
|
31031
32342
|
"category": "Brand",
|
|
31032
32343
|
"status": "stable",
|
|
31033
|
-
"
|
|
32344
|
+
"level": "atom",
|
|
32345
|
+
"description": "The official logo of a card network, wallet, bank method, BNPL or crypto, 33 × 22 (detail pages, settings) or\n30 × 20 with `size=\"sm\"` (table rows), always 3:2 so the artwork is never cropped: the artwork itself with 4px corners and a hairline edge, so every corner reads the same on any\nbackground. Never recoloured; the same in dark mode. `unknown` is a neutral tile with a credit card icon. Named\nafter the brand unless `decorative`. Each logo loads on first use; until then its box holds the space.",
|
|
31034
32346
|
"importPath": "@dodopayments/ui/payment-logos",
|
|
31035
32347
|
"exports": [
|
|
31036
32348
|
"FLAG_COUNTRIES",
|
|
@@ -31050,7 +32362,7 @@
|
|
|
31050
32362
|
"parts": [
|
|
31051
32363
|
{
|
|
31052
32364
|
"name": "PaymentLogo",
|
|
31053
|
-
"description": "The official logo of a card network, wallet, bank method, BNPL or crypto,
|
|
32365
|
+
"description": "The official logo of a card network, wallet, bank method, BNPL or crypto, 33 × 22 (detail pages, settings) or\n30 × 20 with `size=\"sm\"` (table rows), always 3:2 so the artwork is never cropped: the artwork itself with 4px corners and a hairline edge, so every corner reads the same on any\nbackground. Never recoloured; the same in dark mode. `unknown` is a neutral tile with a credit card icon. Named\nafter the brand unless `decorative`. Each logo loads on first use; until then its box holds the space.",
|
|
31054
32366
|
"props": [
|
|
31055
32367
|
{
|
|
31056
32368
|
"name": "brand",
|
|
@@ -31065,6 +32377,14 @@
|
|
|
31065
32377
|
"required": false,
|
|
31066
32378
|
"description": "Hide from assistive technology when the text next to it already names the method.",
|
|
31067
32379
|
"source": "dodo"
|
|
32380
|
+
},
|
|
32381
|
+
{
|
|
32382
|
+
"name": "size",
|
|
32383
|
+
"type": "\"sm\" | \"md\"",
|
|
32384
|
+
"required": false,
|
|
32385
|
+
"default": "\"md\"",
|
|
32386
|
+
"description": "`md` 33 × 22 (detail pages, settings); `sm` 30 × 20, for table rows. Both 3:2, the artwork's own ratio.",
|
|
32387
|
+
"source": "dodo"
|
|
31068
32388
|
}
|
|
31069
32389
|
]
|
|
31070
32390
|
},
|
|
@@ -31110,11 +32430,43 @@
|
|
|
31110
32430
|
],
|
|
31111
32431
|
"docsUrl": "/components/payment-logos"
|
|
31112
32432
|
},
|
|
32433
|
+
{
|
|
32434
|
+
"slug": "flag",
|
|
32435
|
+
"title": "Flag",
|
|
32436
|
+
"category": "Brand",
|
|
32437
|
+
"status": "beta",
|
|
32438
|
+
"level": "atom",
|
|
32439
|
+
"description": "A country flag for a currency or a country: the Nucleo flag, 20 × 14 with its corners clipped to 2, no\nborder, never recoloured. Decorative unless it gets an `aria-label` (give it one only when no country or\ncurrency name sits next to it). Each flag loads on first use; codes without a flag show a globe.",
|
|
32440
|
+
"importPath": "@dodopayments/ui/flag",
|
|
32441
|
+
"exports": [
|
|
32442
|
+
"FLAG_COUNTRIES",
|
|
32443
|
+
"Flag",
|
|
32444
|
+
"FlagProps"
|
|
32445
|
+
],
|
|
32446
|
+
"parts": [
|
|
32447
|
+
{
|
|
32448
|
+
"name": "Flag",
|
|
32449
|
+
"description": "A country flag for a currency or a country: the Nucleo flag, 20 × 14 with its corners clipped to 2, no\nborder, never recoloured. Decorative unless it gets an `aria-label` (give it one only when no country or\ncurrency name sits next to it). Each flag loads on first use; codes without a flag show a globe.",
|
|
32450
|
+
"props": [
|
|
32451
|
+
{
|
|
32452
|
+
"name": "country",
|
|
32453
|
+
"type": "string",
|
|
32454
|
+
"required": true,
|
|
32455
|
+
"description": "ISO 3166-1 alpha-2 code, any case: `\"IN\"`, `\"us\"`. `\"EU\"` is the euro's flag.",
|
|
32456
|
+
"source": "dodo"
|
|
32457
|
+
}
|
|
32458
|
+
]
|
|
32459
|
+
}
|
|
32460
|
+
],
|
|
32461
|
+
"examples": [],
|
|
32462
|
+
"docsUrl": "/components/payment-logos"
|
|
32463
|
+
},
|
|
31113
32464
|
{
|
|
31114
32465
|
"slug": "card-field",
|
|
31115
32466
|
"title": "Card Field",
|
|
31116
32467
|
"category": "Forms",
|
|
31117
32468
|
"status": "stable",
|
|
32469
|
+
"level": "organism",
|
|
31118
32470
|
"description": "PCI-sensitive card form composing Input/InputGroup and Field errors. Use only when your integration permits raw card inputs, not as a substitute for PSP-hosted fields.",
|
|
31119
32471
|
"importPath": "@dodopayments/ui/card-field",
|
|
31120
32472
|
"exports": [
|
|
@@ -31189,7 +32541,11 @@
|
|
|
31189
32541
|
"slug": "wallet-buttons",
|
|
31190
32542
|
"title": "Wallet Buttons",
|
|
31191
32543
|
"category": "Forms",
|
|
31192
|
-
"status": "
|
|
32544
|
+
"status": "deprecated",
|
|
32545
|
+
"deprecated": {
|
|
32546
|
+
"since": "1.8.0"
|
|
32547
|
+
},
|
|
32548
|
+
"level": "organism",
|
|
31193
32549
|
"description": "Express checkout buttons for Apple Pay, Google Pay and Amazon Pay in the brands' black (white in dark mode) style,\nshown only for the wallets in `available`, with an \"Or pay another way\" divider before the other\npayment methods.",
|
|
31194
32550
|
"importPath": "@dodopayments/ui/wallet-buttons",
|
|
31195
32551
|
"exports": [
|
|
@@ -31252,7 +32608,11 @@
|
|
|
31252
32608
|
"slug": "checkout-page",
|
|
31253
32609
|
"title": "Checkout Page",
|
|
31254
32610
|
"category": "Blocks",
|
|
31255
|
-
"status": "
|
|
32611
|
+
"status": "deprecated",
|
|
32612
|
+
"deprecated": {
|
|
32613
|
+
"since": "1.8.0"
|
|
32614
|
+
},
|
|
32615
|
+
"level": "atom",
|
|
31256
32616
|
"description": "Two-column hosted checkout layout, after the Dodo checkout: the merchant brand and order summary on\nthe start side and the payment column on the end side, both pushed against the centre line and\nseparated by a soft seam, with no card around either. The columns stack (summary first) when the\nblock is narrower than 42rem; widths follow the page's own size, not the viewport, and a collapsible\n`OrderSummary` inside folds at the same width. Layout only:\ncompose it with `OrderSummary`, `WalletButtons`, `CardField`, consent `Checkbox`es and a trust footer (`footer`).\nIt renders no landmarks, so it can sit inside your app shell; wrap the page in `<main>` when it is\nthe page's main content.",
|
|
31257
32617
|
"importPath": "@dodopayments/ui/checkout-page",
|
|
31258
32618
|
"exports": [
|