@dodopayments/ui 1.3.0 → 1.5.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 +642 -99
- package/ai/component-registry.md +4 -0
- package/ai/components/activity-timeline.md +3 -1
- package/ai/components/area-chart.md +4 -4
- package/ai/components/avatar.md +1 -1
- package/ai/components/bar-chart.md +18 -18
- package/ai/components/brand-logos.md +1 -1
- package/ai/components/button-group.md +65 -0
- package/ai/components/chart-tooltip.md +3 -3
- package/ai/components/chart.md +6 -6
- package/ai/components/checkout-page.md +1 -1
- package/ai/components/collapsible.md +1 -1
- package/ai/components/color-input.md +56 -0
- package/ai/components/composed-chart.md +7 -7
- package/ai/components/copyable-id.md +1 -0
- package/ai/components/data-grid.md +8 -5
- package/ai/components/file-upload.md +25 -1
- package/ai/components/filter-grid.md +4 -7
- package/ai/components/funnel-chart.md +14 -12
- package/ai/components/gauge-chart.md +9 -11
- package/ai/components/line-chart.md +2 -2
- package/ai/components/list-toolbar.md +3 -3
- package/ai/components/logo.md +3 -1
- package/ai/components/money.md +3 -3
- package/ai/components/pagination.md +1 -0
- package/ai/components/pie-chart.md +11 -2
- package/ai/components/product-card.md +2 -1
- package/ai/components/radio-group.md +85 -6
- package/ai/components/reorder-list.md +1 -1
- package/ai/components/ring-chart.md +17 -8
- package/ai/components/sale-share-card.md +48 -0
- package/ai/components/sankey-chart.md +23 -23
- package/ai/components/scaled-frame.md +41 -0
- package/ai/components/skeleton.md +1 -1
- package/ai/components/stat-card.md +32 -5
- package/ai/components/sunburst-chart.md +7 -4
- package/ai/components/test-mode-banner.md +3 -3
- package/ai/skills/dodo-charts/SKILL.md +12 -7
- package/ai/skills/dodo-design/SKILL.md +4 -2
- package/dist/components/activity-timeline/activity-timeline.d.ts +22 -2
- package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -1
- package/dist/components/activity-timeline/activity-timeline.js +11 -5
- package/dist/components/activity-timeline/activity-timeline.js.map +1 -1
- package/dist/components/avatar/avatar.d.ts +9 -7
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +9 -7
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/brand-logos/brand-artwork.d.ts +16 -1
- package/dist/components/brand-logos/brand-artwork.d.ts.map +1 -1
- package/dist/components/brand-logos/brand-artwork.js +16 -1
- package/dist/components/brand-logos/brand-artwork.js.map +1 -1
- package/dist/components/brand-logos/brand-logos.d.ts +2 -2
- package/dist/components/brand-logos/brand-logos.d.ts.map +1 -1
- package/dist/components/brand-logos/brand-logos.js +7 -1
- package/dist/components/brand-logos/brand-logos.js.map +1 -1
- package/dist/components/button-group/button-group.d.ts +21 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/button-group.js +16 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +2 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/color-input/color-input.d.ts +21 -0
- package/dist/components/color-input/color-input.d.ts.map +1 -0
- package/dist/components/color-input/color-input.js +28 -0
- package/dist/components/color-input/color-input.js.map +1 -0
- package/dist/components/color-input/index.d.ts +2 -0
- package/dist/components/color-input/index.d.ts.map +1 -0
- package/dist/components/color-input/index.js +2 -0
- package/dist/components/color-input/index.js.map +1 -0
- package/dist/components/copyable-id/copyable-id.d.ts +7 -1
- package/dist/components/copyable-id/copyable-id.d.ts.map +1 -1
- package/dist/components/copyable-id/copyable-id.js +21 -3
- package/dist/components/copyable-id/copyable-id.js.map +1 -1
- package/dist/components/data-grid/bulk-actions.d.ts +4 -2
- package/dist/components/data-grid/bulk-actions.d.ts.map +1 -1
- package/dist/components/data-grid/bulk-actions.js +65 -4
- package/dist/components/data-grid/bulk-actions.js.map +1 -1
- package/dist/components/data-grid/data-grid.d.ts +15 -4
- package/dist/components/data-grid/data-grid.d.ts.map +1 -1
- package/dist/components/data-grid/data-grid.js +57 -16
- package/dist/components/data-grid/data-grid.js.map +1 -1
- package/dist/components/data-grid/table.d.ts +1 -1
- package/dist/components/data-grid/table.d.ts.map +1 -1
- package/dist/components/data-grid/table.js +6 -1
- package/dist/components/data-grid/table.js.map +1 -1
- package/dist/components/file-upload/file-upload.d.ts +21 -0
- package/dist/components/file-upload/file-upload.d.ts.map +1 -1
- package/dist/components/file-upload/file-upload.js +42 -20
- package/dist/components/file-upload/file-upload.js.map +1 -1
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/file-upload/index.d.ts.map +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.js.map +1 -1
- package/dist/components/filter-grid/filter-grid.d.ts +7 -2
- package/dist/components/filter-grid/filter-grid.d.ts.map +1 -1
- package/dist/components/filter-grid/filter-grid.js +3 -2
- package/dist/components/filter-grid/filter-grid.js.map +1 -1
- package/dist/components/funnel-chart/funnel-chart.d.ts +3 -2
- package/dist/components/funnel-chart/funnel-chart.d.ts.map +1 -1
- package/dist/components/funnel-chart/funnel-chart.js +3 -2
- package/dist/components/funnel-chart/funnel-chart.js.map +1 -1
- package/dist/components/gauge-chart/gauge-chart.d.ts +3 -4
- package/dist/components/gauge-chart/gauge-chart.d.ts.map +1 -1
- package/dist/components/gauge-chart/gauge-chart.js +3 -4
- package/dist/components/gauge-chart/gauge-chart.js.map +1 -1
- package/dist/components/list-toolbar/list-toolbar.d.ts +3 -3
- package/dist/components/list-toolbar/list-toolbar.js +4 -4
- package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
- package/dist/components/live-activity/live-activity.d.ts.map +1 -1
- package/dist/components/live-activity/live-activity.js +8 -3
- package/dist/components/live-activity/live-activity.js.map +1 -1
- package/dist/components/logo/logo.d.ts +5 -1
- package/dist/components/logo/logo.d.ts.map +1 -1
- package/dist/components/logo/logo.js +6 -2
- package/dist/components/logo/logo.js.map +1 -1
- package/dist/components/page-header/page-header.d.ts.map +1 -1
- package/dist/components/page-header/page-header.js +4 -2
- package/dist/components/page-header/page-header.js.map +1 -1
- package/dist/components/pagination/pagination.d.ts +7 -1
- package/dist/components/pagination/pagination.d.ts.map +1 -1
- package/dist/components/pagination/pagination.js +7 -4
- package/dist/components/pagination/pagination.js.map +1 -1
- package/dist/components/payment-method-list/payment-method-list.d.ts.map +1 -1
- package/dist/components/payment-method-list/payment-method-list.js +4 -1
- package/dist/components/payment-method-list/payment-method-list.js.map +1 -1
- package/dist/components/product-card/product-card.d.ts +8 -2
- package/dist/components/product-card/product-card.d.ts.map +1 -1
- package/dist/components/product-card/product-card.js +2 -2
- package/dist/components/product-card/product-card.js.map +1 -1
- package/dist/components/radio-group/radio-group.d.ts +28 -6
- package/dist/components/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group/radio-group.js +37 -4
- package/dist/components/radio-group/radio-group.js.map +1 -1
- package/dist/components/sale-share-card/index.d.ts +2 -0
- package/dist/components/sale-share-card/index.d.ts.map +1 -0
- package/dist/components/sale-share-card/index.js +2 -0
- package/dist/components/sale-share-card/index.js.map +1 -0
- package/dist/components/sale-share-card/sale-share-card.d.ts +27 -0
- package/dist/components/sale-share-card/sale-share-card.d.ts.map +1 -0
- package/dist/components/sale-share-card/sale-share-card.js +46 -0
- package/dist/components/sale-share-card/sale-share-card.js.map +1 -0
- package/dist/components/sankey-chart/sankey-chart.d.ts +4 -4
- package/dist/components/sankey-chart/sankey-chart.js +4 -4
- package/dist/components/scaled-frame/index.d.ts +2 -0
- package/dist/components/scaled-frame/index.d.ts.map +1 -0
- package/dist/components/scaled-frame/index.js +2 -0
- package/dist/components/scaled-frame/index.js.map +1 -0
- package/dist/components/scaled-frame/scaled-frame.d.ts +17 -0
- package/dist/components/scaled-frame/scaled-frame.d.ts.map +1 -0
- package/dist/components/scaled-frame/scaled-frame.js +43 -0
- package/dist/components/scaled-frame/scaled-frame.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.js +13 -9
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/slider/slider-thumb.d.ts +2 -2
- package/dist/components/slider/slider-thumb.d.ts.map +1 -1
- package/dist/components/slider/slider-thumb.js +2 -2
- package/dist/components/slider/slider-thumb.js.map +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/slider/slider.js.map +1 -1
- package/dist/components/stat-card/index.d.ts +1 -1
- package/dist/components/stat-card/index.d.ts.map +1 -1
- package/dist/components/stat-card/index.js +1 -1
- package/dist/components/stat-card/index.js.map +1 -1
- package/dist/components/stat-card/stat-card.d.ts +47 -7
- package/dist/components/stat-card/stat-card.d.ts.map +1 -1
- package/dist/components/stat-card/stat-card.js +72 -12
- package/dist/components/stat-card/stat-card.js.map +1 -1
- package/dist/components/sunburst-chart/sunburst-chart.d.ts +2 -1
- package/dist/components/sunburst-chart/sunburst-chart.d.ts.map +1 -1
- package/dist/components/sunburst-chart/sunburst-chart.js +2 -1
- package/dist/components/sunburst-chart/sunburst-chart.js.map +1 -1
- package/dist/components/timestamp/timestamp.js +1 -1
- package/dist/components/timestamp/timestamp.js.map +1 -1
- package/dist/icons/index.d.ts +5 -2
- package/dist/icons/index.js +5 -2
- package/dist/icons/ui/coins.d.ts +3 -0
- package/dist/icons/ui/coins.js +5 -0
- package/dist/icons/ui/report.d.ts +3 -0
- package/dist/icons/ui/report.js +5 -0
- package/dist/icons/ui/ticket.d.ts +3 -0
- package/dist/icons/ui/ticket.js +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/cn-tables.js +5 -5
- package/dist/lib/cn-tables.js.map +1 -1
- package/dist/primitives/charts/area-chart.js +1 -1
- package/dist/primitives/charts/area-chart.js.map +1 -1
- package/dist/primitives/charts/area.d.ts +1 -1
- package/dist/primitives/charts/area.d.ts.map +1 -1
- package/dist/primitives/charts/bar-chart.js +1 -1
- package/dist/primitives/charts/bar-chart.js.map +1 -1
- package/dist/primitives/charts/bar-squares.d.ts +1 -1
- package/dist/primitives/charts/bar-squares.d.ts.map +1 -1
- package/dist/primitives/charts/bar.d.ts +6 -5
- package/dist/primitives/charts/bar.d.ts.map +1 -1
- package/dist/primitives/charts/bar.js +1 -1
- package/dist/primitives/charts/bar.js.map +1 -1
- package/dist/primitives/charts/chart-context.js +2 -2
- package/dist/primitives/charts/chart-context.js.map +1 -1
- package/dist/primitives/charts/composed-chart.js +3 -3
- package/dist/primitives/charts/composed-chart.js.map +1 -1
- package/dist/primitives/charts/funnel-chart.d.ts +12 -8
- package/dist/primitives/charts/funnel-chart.d.ts.map +1 -1
- package/dist/primitives/charts/funnel-chart.js +38 -9
- package/dist/primitives/charts/funnel-chart.js.map +1 -1
- package/dist/primitives/charts/gauge.d.ts +4 -4
- package/dist/primitives/charts/gauge.js +7 -7
- package/dist/primitives/charts/gauge.js.map +1 -1
- package/dist/primitives/charts/line-chart.js +1 -1
- package/dist/primitives/charts/line-chart.js.map +1 -1
- package/dist/primitives/charts/line-series-terminal-marker.d.ts.map +1 -1
- package/dist/primitives/charts/line-series-terminal-marker.js +1 -1
- package/dist/primitives/charts/line-series-terminal-marker.js.map +1 -1
- package/dist/primitives/charts/line.d.ts +1 -1
- package/dist/primitives/charts/line.d.ts.map +1 -1
- package/dist/primitives/charts/notch-gauge-shared.d.ts.map +1 -1
- package/dist/primitives/charts/notch-gauge-shared.js +4 -3
- package/dist/primitives/charts/notch-gauge-shared.js.map +1 -1
- package/dist/primitives/charts/pie-context.d.ts +3 -2
- package/dist/primitives/charts/pie-context.d.ts.map +1 -1
- package/dist/primitives/charts/pie-context.js +7 -6
- package/dist/primitives/charts/pie-context.js.map +1 -1
- package/dist/primitives/charts/pie-slice.d.ts +2 -2
- package/dist/primitives/charts/pie-slice.js +1 -1
- package/dist/primitives/charts/pie-slice.js.map +1 -1
- package/dist/primitives/charts/ring-context.d.ts +4 -2
- package/dist/primitives/charts/ring-context.d.ts.map +1 -1
- package/dist/primitives/charts/ring-context.js +8 -6
- package/dist/primitives/charts/ring-context.js.map +1 -1
- package/dist/primitives/charts/ring.d.ts +8 -8
- package/dist/primitives/charts/ring.d.ts.map +1 -1
- package/dist/primitives/charts/ring.js +4 -4
- package/dist/primitives/charts/ring.js.map +1 -1
- package/dist/primitives/charts/sankey/sankey-link.d.ts +9 -10
- package/dist/primitives/charts/sankey/sankey-link.d.ts.map +1 -1
- package/dist/primitives/charts/sankey/sankey-link.js +14 -9
- package/dist/primitives/charts/sankey/sankey-link.js.map +1 -1
- package/dist/primitives/charts/sankey/sankey-node.d.ts +5 -5
- package/dist/primitives/charts/sankey/sankey-node.d.ts.map +1 -1
- package/dist/primitives/charts/sankey/sankey-node.js +6 -6
- package/dist/primitives/charts/sankey/sankey-node.js.map +1 -1
- package/dist/primitives/charts/series-bar.d.ts +4 -4
- package/dist/primitives/charts/series-bar.d.ts.map +1 -1
- package/dist/primitives/charts/series-bar.js +1 -1
- package/dist/primitives/charts/series-bar.js.map +1 -1
- package/dist/primitives/charts/sunburst-context.d.ts +3 -2
- package/dist/primitives/charts/sunburst-context.d.ts.map +1 -1
- package/dist/primitives/charts/sunburst-context.js +6 -5
- package/dist/primitives/charts/sunburst-context.js.map +1 -1
- package/dist/primitives/charts/sunburst-legend.d.ts +7 -2
- package/dist/primitives/charts/sunburst-legend.d.ts.map +1 -1
- package/dist/primitives/charts/sunburst-legend.js +8 -6
- package/dist/primitives/charts/sunburst-legend.js.map +1 -1
- package/dist/primitives/charts/sunburst-segment.d.ts +3 -3
- package/dist/primitives/charts/sunburst-segment.js +2 -2
- package/dist/primitives/charts/sunburst-segment.js.map +1 -1
- package/dist/primitives/charts/tooltip/date-ticker.js +2 -2
- package/dist/primitives/charts/tooltip/date-ticker.js.map +1 -1
- package/dist/primitives/charts/tooltip/tooltip-box.js +1 -1
- package/dist/primitives/charts/tooltip/tooltip-box.js.map +1 -1
- package/dist/primitives/ui/alert-dialog.js +1 -1
- package/dist/primitives/ui/alert-dialog.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/dialog.js +1 -1
- 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/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/sheet.js +2 -2
- package/dist/primitives/ui/sheet.js.map +1 -1
- package/dist/primitives/ui/slider.js +1 -1
- package/dist/primitives/ui/slider.js.map +1 -1
- package/dist/primitives/ui/switch.d.ts +1 -1
- package/dist/primitives/ui/switch.d.ts.map +1 -1
- package/dist/primitives/ui/switch.js +1 -1
- package/dist/primitives/ui/switch.js.map +1 -1
- package/dist/primitives/ui/table.js +2 -2
- package/dist/primitives/ui/table.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/tooltip.js +1 -1
- package/dist/primitives/ui/tooltip.js.map +1 -1
- package/dist/styles/theme.css +9 -0
- package/dist/styles/tokens.css +96 -36
- package/dist/styles/tokens.test.tsx +20 -2
- package/dist/theme/color.d.ts +5 -0
- package/dist/theme/color.d.ts.map +1 -1
- package/dist/theme/color.js +22 -0
- package/dist/theme/color.js.map +1 -1
- package/dist/theme/css.d.ts +3 -3
- package/dist/theme/css.d.ts.map +1 -1
- package/dist/theme/css.js +29 -11
- package/dist/theme/css.js.map +1 -1
- package/package.json +1 -1
package/ai/component-registry.md
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
- **Retention Matrix** (`@dodopayments/ui/retention-matrix`, Charts): How many customers of each monthly cohort are still active in the months after they joined, drawn the way the
|
|
23
23
|
- **Comparison Bars** (`@dodopayments/ui/comparison-bars`, Charts): Categories compared with the previous period, as the dashboard's analytics draw them (Payments breakdown,
|
|
24
24
|
- **Button** (`@dodopayments/ui/button`, Actions): Triggers an action. Renders the `Button` primitive on Base UI `Button`, which always has button
|
|
25
|
+
- **Button group** (`@dodopayments/ui/button-group`, Actions): Joins buttons into one control: a split button (a primary action beside a `Menu` of related ones,
|
|
25
26
|
- **Chart** (`@dodopayments/ui/chart`, Charts): The frame every dodo chart renders around its plot: a `role="figure"` box named by `label`, as wide
|
|
26
27
|
- **Chart Legend** (`@dodopayments/ui/chart-legend`, Charts): A list legend for a chart: one row per item with a colour dot, the label and the value. Set
|
|
27
28
|
- **Chart Tooltip** (`@dodopayments/ui/chart-tooltip`, Charts): The hover layer of a chart: a vertical crosshair, a dot on each series, a floating panel with one
|
|
@@ -34,8 +35,10 @@
|
|
|
34
35
|
- **Container** (`@dodopayments/ui/container`, Layout): Composite (the primitives have no Container): layout only, on the Tailwind spacing scale.
|
|
35
36
|
- **Country select** (`@dodopayments/ui/country-select`, Forms): Searchable country picker. Shows each country's flag and name; typing filters by name or exact
|
|
36
37
|
- **Currency select** (`@dodopayments/ui/currency-select`, Forms): Searchable currency picker. Each option shows the issuing country's flag (the EU flag for EUR, a globe
|
|
38
|
+
- **Color input** (`@dodopayments/ui/color-input`, Forms): A colour field: a swatch that opens the browser's colour picker, beside a text field for a hex.
|
|
37
39
|
- **Time zone select** (`@dodopayments/ui/timezone-select`, Forms): Searchable IANA time zone picker. Each option shows the zone and its current GMT offset; typing
|
|
38
40
|
- **Collapsible** (`@dodopayments/ui/collapsible`, Layout): Shows and hides a section of content: the `Collapsible` primitive on Base UI `Collapsible`. Compose it
|
|
41
|
+
- **Scaled frame** (`@dodopayments/ui/scaled-frame`, Layout): Shows content laid out at a fixed size, scaled down to the width the frame has, e.g. a live checkout
|
|
39
42
|
- **Dialog** (`@dodopayments/ui/dialog`, Overlays): The dialog (Dodo Nest Dialog): portal + scrim + a grey tray around a white panel, with the close button
|
|
40
43
|
- **Direction Provider** (`@dodopayments/ui/direction-provider`, Utilities): Sets the reading direction for every component inside: keyboard navigation (arrow keys in menus,
|
|
41
44
|
- **Empty** (`@dodopayments/ui/empty`, Feedback): What a page, card or table shows when there is nothing yet (Dodo Nest Empty state): an optional Featured icon
|
|
@@ -80,6 +83,7 @@
|
|
|
80
83
|
- **List toolbar** (`@dodopayments/ui/list-toolbar`, Data display): The row above every Data table (Dodo Nest List toolbar): search, a count or a Refresh button on the left, every
|
|
81
84
|
- **Leaderboard** (`@dodopayments/ui/leaderboard`, Data display): Top customers by spend (Dodo Nest Leaderboard): a podium of the top three (one joined block of white cells
|
|
82
85
|
- **Milestone** (`@dodopayments/ui/milestone`, Data display): A milestone on the Milestones page (Design File › Merchant Milestones). `state="achieved"` is a reached milestone:
|
|
86
|
+
- **Sale share card** (`@dodopayments/ui/sale-share-card`, Data display): A new sale as an image to share (the dashboard's payments list, Share): 720 by 400, the artwork behind, the
|
|
83
87
|
- **Setup guide** (`@dodopayments/ui/setup-guide`, Feedback): The setup guide a new business follows (the dashboard's Setup guide, opened from the top bar's Setup guide
|
|
84
88
|
- **Filter Grid** (`@dodopayments/ui/filter-grid`, Data display): Filter chips over a grid of cards, after interior.dev's filter grid
|
|
85
89
|
- **Live Activity** (`@dodopayments/ui/live-activity`, Feedback): A small pod that reports one background task, like a phone's live activity, after interior.dev's
|
|
@@ -37,6 +37,7 @@ button under the list. It holds no data: fetch, sort and word the events in your
|
|
|
37
37
|
| `onRetry` | `(() => void)` | - | Adds a retry button to the error state. |
|
|
38
38
|
| `timeZone` | `string` | - | IANA time zone of the timestamps, e.g. "Asia/Kolkata". Defaults to UTC. |
|
|
39
39
|
| `timestampFormat` | `TimestampFormat` | `"datetime"` | How the timestamps render. |
|
|
40
|
+
| `timestampPlacement` | `"end" \| "below"` | `"end"` | Where the time sits: `end` at the trailing end of the title's line, `below` on its own line under the title and description, for a log read top to bottom. |
|
|
40
41
|
|
|
41
42
|
## ActivityTimelineItem
|
|
42
43
|
|
|
@@ -58,7 +59,8 @@ Breakpoint mobile). Use it inside an `ol`; `ActivityTimeline` does this for you.
|
|
|
58
59
|
| `timeZone` | `string` | - | IANA time zone of the timestamp, e.g. "Asia/Kolkata". Defaults to UTC. |
|
|
59
60
|
| `timestamp` | `string \| number \| Date` | - | When it happened: an ISO 8601 string, epoch milliseconds or a `Date`, shown with `Timestamp`. |
|
|
60
61
|
| `timestampFormat` | `TimestampFormat` | `"datetime"` | How the timestamp renders. |
|
|
61
|
-
| `
|
|
62
|
+
| `timestampPlacement` | `"end" \| "below"` | `"end"` | Where the time sits: `end` at the trailing end of the title's line, `below` on its own line under the title and description, for a log read top to bottom. |
|
|
63
|
+
| `tone` | `"success" \| "warning" \| "error" \| "info" \| "neutral" \| "step" \| "none"` | `"neutral" with an `icon`, otherwise "none"` | Tone of the icon slot: `success`, `warning`, `error`, `info` and `neutral` draw a 20px Featured icon, `none` a bare dot.<br>`success`: A good outcome, e.g. a payment or refund succeeded or a dispute was won. Glyph circle-check.<br>`warning`: Pending or waiting for someone, e.g. partly captured or a customer action required. Glyph circle-dashed.<br>`error`: A failure or loss, e.g. a payment failed or a dispute was opened or lost. Glyph circle-warning.<br>`info`: A milestone that is neither good nor bad, e.g. a refund requested or evidence submitted. Glyph circle-info.<br>`neutral`: A plain step with no outcome. Glyph circle-minus; give it a specific `icon`, e.g. a credit card for Payment started.<br>`step`: A step of a log: a brand ring, joined to the next step by a brand line, e.g. the notes on a blocklist entry.<br>`none`: A minor event with no icon: a bare 6px dot, e.g. a status not set or a blocklist entry. |
|
|
62
64
|
|
|
63
65
|
## Examples
|
|
64
66
|
|
|
@@ -56,7 +56,7 @@ While the chart loads it draws the loading pulse or sweep.
|
|
|
56
56
|
| `dashArray` | `string` | - | Dash pattern for the tail segment when `dashFromIndex` is set. Default: "6,4" |
|
|
57
57
|
| `dashFromIndex` | `number` | - | Data index from which the line stroke becomes dashed (inclusive). Useful for projecting incomplete periods, e.g. dashed from yesterday through today. |
|
|
58
58
|
| `fadeEdges` | `FadeEdges` | - | Fade the area fill (and stroke) toward transparent at the chart edges. - `true` fades both edges, `false` disables the fade entirely. - `"left"` / `"right"` fades only that side: useful when the opposite edge butts up against another element you don't want to fade into. Default: false |
|
|
59
|
-
| `fill` | `string` | - | Fill color for the area gradient start. Default: var(--chart-1) |
|
|
59
|
+
| `fill` | `string` | - | Fill color for the area gradient start. Default: var(--chart-solid-1) |
|
|
60
60
|
| `fillOpacity` | `number` | - | Fill opacity at the top of the area. Default: 0.4 |
|
|
61
61
|
| `gradientSpan` | `number` | - | Vertical extent of the fill gradient (0–1). `1` fades across the full height; lower values compress the gradient toward the top. |
|
|
62
62
|
| `gradientToOpacity` | `number` | - | Gradient opacity at bottom (0 = fully transparent). Default: 0 |
|
|
@@ -146,7 +146,7 @@ export default function AreaChartDefault() {
|
|
|
146
146
|
<YAxis formatValue={(value) => usdCompact.format(value)} />
|
|
147
147
|
<ChartTooltip
|
|
148
148
|
rows={(point) => [
|
|
149
|
-
{ color: "var(--chart-1)", label: "Gross revenue", value: usd.format(point["revenue"] as number) },
|
|
149
|
+
{ color: "var(--chart-solid-1)", label: "Gross revenue", value: usd.format(point["revenue"] as number) },
|
|
150
150
|
]}
|
|
151
151
|
/>
|
|
152
152
|
</AreaChart>
|
|
@@ -220,7 +220,7 @@ const data = Array.from({ length: 13 }, (_, week) => ({
|
|
|
220
220
|
}));
|
|
221
221
|
|
|
222
222
|
const series = [
|
|
223
|
-
{ key: "scale", label: "Scale", color: "var(--chart-1)" },
|
|
223
|
+
{ key: "scale", label: "Scale", color: "var(--chart-solid-1)" },
|
|
224
224
|
{ key: "growth", label: "Growth", color: "var(--chart-2)" },
|
|
225
225
|
{ key: "starter", label: "Starter", color: "var(--chart-3)" },
|
|
226
226
|
] as const;
|
|
@@ -292,7 +292,7 @@ export default function AreaChartReferenceArea() {
|
|
|
292
292
|
patternColor="var(--chart-scale-pattern-color)"
|
|
293
293
|
strokeStyle="dashed"
|
|
294
294
|
/>
|
|
295
|
-
<Area dataKey="checkouts" fill="var(--chart-1)" />
|
|
295
|
+
<Area dataKey="checkouts" fill="var(--chart-solid-1)" />
|
|
296
296
|
<XAxis />
|
|
297
297
|
<ChartTooltip />
|
|
298
298
|
</AreaChart>
|
package/ai/components/avatar.md
CHANGED
|
@@ -28,7 +28,7 @@ Shown while the image loads, when it fails or when there is no image. Renders th
|
|
|
28
28
|
| Prop | Type | Default | Description |
|
|
29
29
|
| --- | --- | --- | --- |
|
|
30
30
|
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
31
|
-
| `color` | `"auto" \| "neutral" \| "blue" \| "purple" \| "pink" \| "lime"` | `"auto"` | `auto`: Picks blue, purple, pink or lime from the name's initials, so a name always gets the same colour.<br>`neutral`: Grey: Surface/Tertiary with Content/Primary initials. Never picked by `auto`; set it where colour would distract.<br>`blue`: The `info` tone: a soft blue fill with blue initials.<br>`purple`: The
|
|
31
|
+
| `color` | `"auto" \| "neutral" \| "blue" \| "purple" \| "pink" \| "lime"` | `"auto"` | `auto`: Picks blue, purple, pink or lime from the name's initials, so a name always gets the same colour.<br>`neutral`: Grey: Surface/Tertiary with Content/Primary initials. Never picked by `auto`; set it where colour would distract.<br>`blue`: The `info` tone: a soft blue fill with blue initials.<br>`purple`: The violet category tone: a soft violet fill with violet initials.<br>`pink`: The pink category tone: a soft pink fill with pink initials.<br>`lime`: The `success` tone: a soft green fill with green initials. |
|
|
32
32
|
| `name` | `string` | - | Full name, always read by screen readers (also when `children` replace the initials). Without `children`, its initials (first and last word) are shown. |
|
|
33
33
|
| `singleInitials` | `boolean` | `false` | Show only the first initial. |
|
|
34
34
|
|
|
@@ -60,7 +60,7 @@ gradient or a pattern `url(#id)`; set `stroke` for the tooltip dot when `fill` i
|
|
|
60
60
|
| `animate` | `boolean` | - | Whether to animate the bars. Default: true |
|
|
61
61
|
| `animationType` | `BarAnimationType` | - | Animation type: "grow" (height) or "fade" (opacity + blur). Default: "grow" |
|
|
62
62
|
| `fadedOpacity` | `number` | - | Opacity when not hovered (when another bar is hovered). Default: 0.3 |
|
|
63
|
-
| `fill` | `string` | - | Fill color for the bar. Can be a color, gradient url, or pattern url. Default: var(--chart-1) |
|
|
63
|
+
| `fill` | `string` | - | Fill color for the bar. Can be a color, gradient url, or pattern url. Default: var(--chart-solid-1) |
|
|
64
64
|
| `groupGap` | `number` | - | Gap between grouped bars in pixels. Default: 4 |
|
|
65
65
|
| `lineCap` | `BarLineCap` | - | Line cap style for bar ends: "round", "butt", or a number for custom radius. Default: "round" |
|
|
66
66
|
| `minBarHeight` | `number` | - | Minimum rendered bar height in px (non-stacked, vertical). Floors short or zero-value bars so they stay visible. Pair with the same value on `<BarDepthProvider minBarHeight>` when using the 3D surfaces. Default: 0 |
|
|
@@ -68,7 +68,7 @@ gradient or a pattern `url(#id)`; set `stroke` for the tooltip dot when `fill` i
|
|
|
68
68
|
| `stackGap` | `number` | - | Gap between stacked bars in pixels. Default: 0 |
|
|
69
69
|
| `staggerDelay` | `number` | - | Stagger delay between bars in seconds. Auto-calculated if not provided. |
|
|
70
70
|
| `stroke` | `string` | - | Color for tooltip dot. Use when fill is a gradient/pattern. Default: uses fill value |
|
|
71
|
-
| `variant` | `"tint" \| "solid"` | - | `"tint"`: the radar look, an opaque 20% wash of the colour (mixed into the card, so gridlines stay behind it) with a solid 3px edge at the value end (35% while hovered).
|
|
71
|
+
| `variant` | `"tint" \| "solid"` | - | `"solid"`: the full colour, the default look of the bar charts. `"tint"`: the radar look, an opaque 20% wash of the colour (mixed into the card, so gridlines stay behind it) with a solid 3px edge at the value end (35% while hovered). A gradient or pattern `fill` without `stroke`, and `perspective` bars, stay solid. Default: "solid" |
|
|
72
72
|
| `yAxisId` | `string \| number` | - | Y-scale group id for vertical bars (Recharts `yAxisId`). Default: `"left"`. |
|
|
73
73
|
|
|
74
74
|
## BarXAxis
|
|
@@ -134,10 +134,10 @@ Several `SeriesBar`s in a composed chart group or stack by the chart's bar setti
|
|
|
134
134
|
| `dataKey` (required) | `string` | - | Key in data for bar height (y value) |
|
|
135
135
|
| `animate` | `boolean` | - | Animate grow from baseline. Default: true |
|
|
136
136
|
| `fadedOpacity` | `number` | - | Opacity for non-hovered bars when another point is hovered (matches BarChart). Default: 0.3 |
|
|
137
|
-
| `fill` | `string` | - | Fill color. Default: var(--chart-1) |
|
|
137
|
+
| `fill` | `string` | - | Fill color. Default: var(--chart-solid-1) |
|
|
138
138
|
| `radius` | `number` | - | Corner radius for bar top corners. Default: 0 (square tops, similar to Bar lineCap="butt") |
|
|
139
139
|
| `stroke` | `string` | - | Tooltip dot color when fill is gradient/pattern. Default: fill |
|
|
140
|
-
| `variant` | `"tint" \| "solid"` | - | `"
|
|
140
|
+
| `variant` | `"tint" \| "solid"` | - | `"solid"`: the full colour, as `Bar`. `"tint"`: an opaque 20% wash of the colour (35% for the hovered point) with a solid 3px edge along the top. A gradient or pattern `fill` without `stroke` stays solid. Default: "solid" |
|
|
141
141
|
|
|
142
142
|
## BarColumnTrack
|
|
143
143
|
|
|
@@ -168,7 +168,7 @@ the tooltip dots land on the top square.
|
|
|
168
168
|
| `dataKey` (required) | `string` | - | Key in data for the column value. |
|
|
169
169
|
| `animate` | `boolean` | - | Whether the squares cascade up on mount. Default: true |
|
|
170
170
|
| `fadedOpacity` | `number` | - | Opacity of the other columns while one category is hovered. Default: 0.3 |
|
|
171
|
-
| `fill` | `string` | - | Fill color, gradient url, or pattern url. Default: var(--chart-1) |
|
|
171
|
+
| `fill` | `string` | - | Fill color, gradient url, or pattern url. Default: var(--chart-solid-1) |
|
|
172
172
|
| `gradientStops` | `GradientStop[]` | - | |
|
|
173
173
|
| `groupGap` | `number` | - | Gap between grouped series columns in pixels. Default: 4 |
|
|
174
174
|
| `patternPreset` | `"none" \| "vertical" \| "horizontal" \| "diagonal" \| "cross" \| "dots" \| "circles" \| "accent"` | - | Pattern preset when fill is a pattern (for gradient tinting) |
|
|
@@ -293,8 +293,8 @@ const data = [
|
|
|
293
293
|
];
|
|
294
294
|
|
|
295
295
|
const legendItems = [
|
|
296
|
-
{ label: "Gross revenue", value: 0, color: "var(--chart-1)" },
|
|
297
|
-
{ label: "Net revenue", value: 0, color: "var(--chart-2)" },
|
|
296
|
+
{ label: "Gross revenue", value: 0, color: "var(--chart-solid-1)" },
|
|
297
|
+
{ label: "Net revenue", value: 0, color: "var(--chart-solid-2)" },
|
|
298
298
|
];
|
|
299
299
|
|
|
300
300
|
const usd = new Intl.NumberFormat("en-US", {
|
|
@@ -308,19 +308,19 @@ export default function BarChartGrouped() {
|
|
|
308
308
|
<div className="flex w-full flex-col gap-3">
|
|
309
309
|
<Legend items={legendItems} className="flex-row flex-wrap gap-1">
|
|
310
310
|
<LegendItem className="flex items-center gap-2">
|
|
311
|
-
<LegendMarker
|
|
311
|
+
<LegendMarker />
|
|
312
312
|
<LegendLabel />
|
|
313
313
|
</LegendItem>
|
|
314
314
|
</Legend>
|
|
315
315
|
<BarChart data={data} xDataKey="month" label="Gross and net revenue by month, January to June 2026">
|
|
316
316
|
<ChartGrid horizontal />
|
|
317
|
-
<Bar dataKey="gross" fill="var(--chart-1)" />
|
|
318
|
-
<Bar dataKey="net" fill="var(--chart-2)" />
|
|
317
|
+
<Bar dataKey="gross" fill="var(--chart-solid-1)" />
|
|
318
|
+
<Bar dataKey="net" fill="var(--chart-solid-2)" />
|
|
319
319
|
<BarXAxis />
|
|
320
320
|
<ChartTooltip
|
|
321
321
|
rows={(point) => [
|
|
322
|
-
{ color: "var(--chart-1)", label: "Gross", value: usd.format(point.gross as number) },
|
|
323
|
-
{ color: "var(--chart-2)", label: "Net", value: usd.format(point.net as number) },
|
|
322
|
+
{ color: "var(--chart-solid-1)", label: "Gross", value: usd.format(point.gross as number) },
|
|
323
|
+
{ color: "var(--chart-solid-2)", label: "Net", value: usd.format(point.net as number) },
|
|
324
324
|
]}
|
|
325
325
|
/>
|
|
326
326
|
</BarChart>
|
|
@@ -364,12 +364,12 @@ export default function BarChartHorizontal() {
|
|
|
364
364
|
label="Top products by revenue, last 30 days"
|
|
365
365
|
>
|
|
366
366
|
<ChartGrid horizontal={false} vertical />
|
|
367
|
-
<Bar dataKey="revenue" fill="var(--chart-1)" />
|
|
367
|
+
<Bar dataKey="revenue" fill="var(--chart-solid-1)" />
|
|
368
368
|
<BarYAxis />
|
|
369
369
|
<ChartTooltip
|
|
370
370
|
showCrosshair={false}
|
|
371
371
|
rows={(point) => [
|
|
372
|
-
{ color: "var(--chart-1)", label: "Revenue", value: usd.format(point.revenue as number) },
|
|
372
|
+
{ color: "var(--chart-solid-1)", label: "Revenue", value: usd.format(point.revenue as number) },
|
|
373
373
|
]}
|
|
374
374
|
/>
|
|
375
375
|
</BarChart>
|
|
@@ -444,9 +444,9 @@ const data = [
|
|
|
444
444
|
];
|
|
445
445
|
|
|
446
446
|
const series = [
|
|
447
|
-
{ key: "bank", label: "Bank transfer", color: "var(--chart-1)" },
|
|
448
|
-
{ key: "card", label: "Card", color: "var(--chart-2)" },
|
|
449
|
-
{ key: "wallet", label: "Wallet", color: "var(--chart-3)" },
|
|
447
|
+
{ key: "bank", label: "Bank transfer", color: "var(--chart-solid-1)" },
|
|
448
|
+
{ key: "card", label: "Card", color: "var(--chart-solid-2)" },
|
|
449
|
+
{ key: "wallet", label: "Wallet", color: "var(--chart-solid-3)" },
|
|
450
450
|
] as const;
|
|
451
451
|
|
|
452
452
|
const legendItems = series.map(({ label, color }) => ({ label, value: 0, color }));
|
|
@@ -462,7 +462,7 @@ export default function BarChartStacked() {
|
|
|
462
462
|
<div className="flex w-full flex-col gap-3">
|
|
463
463
|
<Legend items={legendItems} className="flex-row flex-wrap gap-1">
|
|
464
464
|
<LegendItem className="flex items-center gap-2">
|
|
465
|
-
<LegendMarker
|
|
465
|
+
<LegendMarker />
|
|
466
466
|
<LegendLabel />
|
|
467
467
|
</LegendItem>
|
|
468
468
|
</Legend>
|
|
@@ -16,7 +16,7 @@ marks keep their brand colours.
|
|
|
16
16
|
|
|
17
17
|
| Prop | Type | Default | Description |
|
|
18
18
|
| --- | --- | --- | --- |
|
|
19
|
-
| `brand` (required) | `"meta" \| "github" \| "gitlab" \| "terraform" \| "vercel" \| "google-cloud" \| "aws" \| "kubernetes" \| "google-analytics" \| "google-tag-manager"` | - | Which brand's mark to draw. |
|
|
19
|
+
| `brand` (required) | `"meta" \| "github" \| "gitlab" \| "terraform" \| "vercel" \| "google-cloud" \| "aws" \| "kubernetes" \| "google-analytics" \| "google-tag-manager" \| "stripe" \| "adyen" \| "dodo-payments"` | - | Which brand's mark to draw. |
|
|
20
20
|
| `label` | `string` | - | Names the mark for screen readers (`role="img"`). Leave it out when the brand's name is already next to the mark: the mark is then decorative. |
|
|
21
21
|
|
|
22
22
|
## Examples
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Button group
|
|
2
|
+
|
|
3
|
+
Joins buttons into one control: a split button (a primary action beside a `Menu` of related ones,
|
|
4
|
+
e.g. Save with Copy to live mode behind a `⋯`) or a row of related actions. The inner corners and
|
|
5
|
+
borders meet. Name the group with `aria-label` when its buttons share one purpose.
|
|
6
|
+
|
|
7
|
+
```tsx
|
|
8
|
+
import { ButtonGroup, ButtonGroupSeparator } from "@dodopayments/ui/button-group";
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## ButtonGroup
|
|
12
|
+
|
|
13
|
+
Joins buttons into one control: a split button (a primary action beside a `Menu` of related ones,
|
|
14
|
+
e.g. Save with Copy to live mode behind a `⋯`) or a row of related actions. The inner corners and
|
|
15
|
+
borders meet. Name the group with `aria-label` when its buttons share one purpose.
|
|
16
|
+
|
|
17
|
+
| Prop | Type | Default | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
20
|
+
| `orientation` | `"vertical" \| "horizontal" \| null` | - | |
|
|
21
|
+
|
|
22
|
+
## ButtonGroupSeparator
|
|
23
|
+
|
|
24
|
+
The rule between two buttons of a {@link ButtonGroup}: vertical by default, for a row of buttons.
|
|
25
|
+
|
|
26
|
+
| Prop | Type | Default | Description |
|
|
27
|
+
| --- | --- | --- | --- |
|
|
28
|
+
| `className` | `string \| (string & ((state: SeparatorState) => string \| undefined))` | - | CSS class applied to the element, or a function that returns a class based on the component's state. |
|
|
29
|
+
| `orientation` | `"vertical" \| "horizontal"` | `"vertical"` | Direction of the rule: vertical between the buttons of a row, horizontal in a column. |
|
|
30
|
+
|
|
31
|
+
Also accepts Base UI props: `render`.
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
### button-group/split
|
|
36
|
+
|
|
37
|
+
```tsx
|
|
38
|
+
"use client";
|
|
39
|
+
|
|
40
|
+
import { Button } from "@dodopayments/ui/button";
|
|
41
|
+
import { ButtonGroup, ButtonGroupSeparator } from "@dodopayments/ui/button-group";
|
|
42
|
+
import { DotsIcon } from "@dodopayments/ui/icons";
|
|
43
|
+
import { Menu, MenuContent, MenuItem, MenuTrigger } from "@dodopayments/ui/menu";
|
|
44
|
+
|
|
45
|
+
export default function ButtonGroupSplit() {
|
|
46
|
+
return (
|
|
47
|
+
<ButtonGroup aria-label="Save actions">
|
|
48
|
+
<Button variant="secondary">Save</Button>
|
|
49
|
+
<ButtonGroupSeparator />
|
|
50
|
+
<Menu>
|
|
51
|
+
<MenuTrigger
|
|
52
|
+
render={<Button variant="secondary" size="icon" aria-label="More save actions" />}
|
|
53
|
+
>
|
|
54
|
+
<DotsIcon aria-hidden="true" />
|
|
55
|
+
</MenuTrigger>
|
|
56
|
+
<MenuContent align="end">
|
|
57
|
+
<MenuItem>Copy to live mode</MenuItem>
|
|
58
|
+
<MenuItem>Reset</MenuItem>
|
|
59
|
+
</MenuContent>
|
|
60
|
+
</Menu>
|
|
61
|
+
</ButtonGroup>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
@@ -149,7 +149,7 @@ export default function ChartTooltipCustomRows() {
|
|
|
149
149
|
return (
|
|
150
150
|
<AreaChart data={data} label="Gross revenue, refunds and net revenue, first two weeks of September 2026">
|
|
151
151
|
<ChartGrid horizontal />
|
|
152
|
-
<Area dataKey="revenue" fill="var(--chart-1)" />
|
|
152
|
+
<Area dataKey="revenue" fill="var(--chart-solid-1)" />
|
|
153
153
|
<Area dataKey="refunds" fill="var(--chart-2)" />
|
|
154
154
|
<XAxis />
|
|
155
155
|
<ChartTooltip
|
|
@@ -157,7 +157,7 @@ export default function ChartTooltipCustomRows() {
|
|
|
157
157
|
const revenue = point.revenue as number;
|
|
158
158
|
const refunds = point.refunds as number;
|
|
159
159
|
return [
|
|
160
|
-
{ color: "var(--chart-1)", label: "Gross revenue", value: usd.format(revenue) },
|
|
160
|
+
{ color: "var(--chart-solid-1)", label: "Gross revenue", value: usd.format(revenue) },
|
|
161
161
|
{ color: "var(--chart-2)", label: "Refunds", value: usd.format(refunds) },
|
|
162
162
|
{ color: "var(--muted-foreground)", label: "Net revenue", value: usd.format(revenue - refunds) },
|
|
163
163
|
];
|
|
@@ -188,7 +188,7 @@ export default function ChartTooltipDefault() {
|
|
|
188
188
|
return (
|
|
189
189
|
<AreaChart data={data} label="Gross revenue and refunds, first two weeks of September 2026">
|
|
190
190
|
<ChartGrid horizontal />
|
|
191
|
-
<Area dataKey="revenue" fill="var(--chart-1)" />
|
|
191
|
+
<Area dataKey="revenue" fill="var(--chart-solid-1)" />
|
|
192
192
|
<Area dataKey="refunds" fill="var(--chart-2)" />
|
|
193
193
|
<XAxis />
|
|
194
194
|
<ChartTooltip />
|
package/ai/components/chart.md
CHANGED
|
@@ -307,7 +307,7 @@ export default function ChartBrushDemo() {
|
|
|
307
307
|
animationDuration={0}
|
|
308
308
|
style={{ aspectRatio: "unset" }}
|
|
309
309
|
>
|
|
310
|
-
<Area dataKey="payouts" fill="var(--chart-1)" fillOpacity={0.15} animate={false} showHighlight={false} />
|
|
310
|
+
<Area dataKey="payouts" fill="var(--chart-solid-1)" fillOpacity={0.15} animate={false} showHighlight={false} />
|
|
311
311
|
<ChartBrush
|
|
312
312
|
fadeOuterEdges
|
|
313
313
|
initialSelection={layout.brushSelection ?? undefined}
|
|
@@ -328,7 +328,7 @@ export default function ChartBrushDemo() {
|
|
|
328
328
|
yDomainTween
|
|
329
329
|
>
|
|
330
330
|
<ChartGrid horizontal />
|
|
331
|
-
<Area dataKey="payouts" fill="var(--chart-1)" />
|
|
331
|
+
<Area dataKey="payouts" fill="var(--chart-solid-1)" />
|
|
332
332
|
<XAxis />
|
|
333
333
|
<ChartTooltip />
|
|
334
334
|
</AreaChart>
|
|
@@ -364,7 +364,7 @@ export default function ChartGridAxes() {
|
|
|
364
364
|
return (
|
|
365
365
|
<AreaChart data={data} label="Monthly recurring revenue, September 2026" margin={{ left: 56 }}>
|
|
366
366
|
<ChartGrid horizontal vertical />
|
|
367
|
-
<Area dataKey="mrr" fill="var(--chart-1)" />
|
|
367
|
+
<Area dataKey="mrr" fill="var(--chart-solid-1)" />
|
|
368
368
|
<XAxis />
|
|
369
369
|
<YAxis formatValue={(value) => usdCompact.format(value)} />
|
|
370
370
|
</AreaChart>
|
|
@@ -425,7 +425,7 @@ export default function ChartMarkersDemo() {
|
|
|
425
425
|
return (
|
|
426
426
|
<AreaChart data={data} label="Gross revenue with product and incident events, September 2026" margin={{ top: 40 }}>
|
|
427
427
|
<ChartGrid horizontal />
|
|
428
|
-
<Area dataKey="revenue" fill="var(--chart-1)" />
|
|
428
|
+
<Area dataKey="revenue" fill="var(--chart-solid-1)" />
|
|
429
429
|
<XAxis />
|
|
430
430
|
<ChartMarkers items={markers} />
|
|
431
431
|
<ChartTooltip>
|
|
@@ -464,12 +464,12 @@ export default function ChartReferenceArea() {
|
|
|
464
464
|
markerColor="var(--chart-2)"
|
|
465
465
|
axisLabelColor="var(--chart-2)"
|
|
466
466
|
/>
|
|
467
|
-
<Area dataKey="conversion" fill="var(--chart-1)" />
|
|
467
|
+
<Area dataKey="conversion" fill="var(--chart-solid-1)" />
|
|
468
468
|
<XAxis />
|
|
469
469
|
<YAxis formatLargeNumbers={false} formatValue={(value) => `${value.toFixed(1)}%`} />
|
|
470
470
|
<ChartTooltip
|
|
471
471
|
rows={(point) => [
|
|
472
|
-
{ color: "var(--chart-1)", label: "Conversion", value: `${(point.conversion as number).toFixed(2)}%` },
|
|
472
|
+
{ color: "var(--chart-solid-1)", label: "Conversion", value: `${(point.conversion as number).toFixed(2)}%` },
|
|
473
473
|
]}
|
|
474
474
|
/>
|
|
475
475
|
</AreaChart>
|
|
@@ -89,7 +89,7 @@ export default function CheckoutPageBasic() {
|
|
|
89
89
|
<AvatarImage src={LOGO} alt="" />
|
|
90
90
|
<AvatarFallback name="Acme" />
|
|
91
91
|
</Avatar>
|
|
92
|
-
<span className="font-heading
|
|
92
|
+
<span className="font-heading text-heading-quaternary text-foreground">Acme</span>
|
|
93
93
|
</>
|
|
94
94
|
}
|
|
95
95
|
summary={
|
|
@@ -78,7 +78,7 @@ animation.
|
|
|
78
78
|
| `onOpenChange` | `((open: boolean) => void)` | - | Called with the next state when the user toggles it. |
|
|
79
79
|
| `open` | `boolean` | - | Whether the text is expanded. Pass it to control the component. |
|
|
80
80
|
| `size` | `"default" \| "icon" \| "xs" \| "lg" \| "icon-xs" \| "icon-lg" \| null` | - | |
|
|
81
|
-
| `variant` | `"
|
|
81
|
+
| `variant` | `"link" \| "default" \| "warning" \| "secondary" \| "ghost" \| "destructive" \| "wallet" \| "destructive-outline" \| null` | - | |
|
|
82
82
|
|
|
83
83
|
## useShowMore
|
|
84
84
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Color input
|
|
2
|
+
|
|
3
|
+
A colour field: a swatch that opens the browser's colour picker, beside a text field for a hex.
|
|
4
|
+
Either one changes the value, so a merchant can paste a brand colour or pick one. The swatch stays
|
|
5
|
+
empty while the text is not a colour. With an empty value the browser's picker starts at black, so
|
|
6
|
+
picking black from empty fires no change: type it instead.
|
|
7
|
+
|
|
8
|
+
```tsx
|
|
9
|
+
import { ColorInput } from "@dodopayments/ui/color-input";
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## ColorInput
|
|
13
|
+
|
|
14
|
+
A colour field: a swatch that opens the browser's colour picker, beside a text field for a hex.
|
|
15
|
+
Either one changes the value, so a merchant can paste a brand colour or pick one. The swatch stays
|
|
16
|
+
empty while the text is not a colour. With an empty value the browser's picker starts at black, so
|
|
17
|
+
picking black from empty fires no change: type it instead.
|
|
18
|
+
|
|
19
|
+
| Prop | Type | Default | Description |
|
|
20
|
+
| --- | --- | --- | --- |
|
|
21
|
+
| `value` (required) | `string` | - | The colour as the merchant typed it, usually a hex such as `#635bff`. Empty means none. |
|
|
22
|
+
| `className` | `string` | - | Classes for the input's control wrapper (rendered `display: contents` inside the group). |
|
|
23
|
+
| `groupClassName` | `string` | - | Classes for the group around the swatch and the text field. |
|
|
24
|
+
| `nativeInput` | `boolean` | - | |
|
|
25
|
+
| `onValueChange` | `((value: string) => void)` | - | Called with the typed text, or with the `#rrggbb` the native picker chose. |
|
|
26
|
+
| `pickerLabel` | `string` | - | Accessible name of the native colour picker behind the swatch. |
|
|
27
|
+
| `size` | `"lg"` | `"lg"` | Input height, as `Input` (`DODO_INPUT_VARIANTS`): one size, `lg` 36. |
|
|
28
|
+
| `unstyled` | `boolean` | - | |
|
|
29
|
+
|
|
30
|
+
Also accepts Base UI props: `render`.
|
|
31
|
+
|
|
32
|
+
## Examples
|
|
33
|
+
|
|
34
|
+
### color-input/field
|
|
35
|
+
|
|
36
|
+
```tsx
|
|
37
|
+
"use client";
|
|
38
|
+
/* eslint-disable dodo/no-raw-color-literal -- the hex is the merchant brand colour the demo edits, data rather than styling. */
|
|
39
|
+
|
|
40
|
+
import { ColorInput } from "@dodopayments/ui/color-input";
|
|
41
|
+
import { Field } from "@dodopayments/ui/field";
|
|
42
|
+
import { useState } from "react";
|
|
43
|
+
|
|
44
|
+
export default function ColorInputField() {
|
|
45
|
+
// The merchant's brand colour, as main's Design settings store it.
|
|
46
|
+
const [value, setValue] = useState("#635bff");
|
|
47
|
+
return (
|
|
48
|
+
<div className="w-full max-w-xs">
|
|
49
|
+
<Field label="Primary button">
|
|
50
|
+
<ColorInput aria-label="Primary button" value={value} onValueChange={setValue} />
|
|
51
|
+
</Field>
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
@@ -71,8 +71,8 @@ const data = Array.from({ length: 30 }, (_, day) => {
|
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
const legendItems = [
|
|
74
|
-
{ label: "Orders", value: 0, color: "var(--chart-2)" },
|
|
75
|
-
{ label: "Revenue ($K)", value: 0, color: "var(--chart-1)" },
|
|
74
|
+
{ label: "Orders", value: 0, color: "var(--chart-solid-2)" },
|
|
75
|
+
{ label: "Revenue ($K)", value: 0, color: "var(--chart-solid-1)" },
|
|
76
76
|
{ label: "7-day run rate ($K)", value: 0, color: "var(--chart-comparison)" },
|
|
77
77
|
];
|
|
78
78
|
|
|
@@ -92,9 +92,9 @@ export default function ComposedChartDefault() {
|
|
|
92
92
|
maxBarSize={32}
|
|
93
93
|
>
|
|
94
94
|
<ChartGrid horizontal />
|
|
95
|
-
<SeriesBar dataKey="orders" fill="var(--chart-2)" radius={4} />
|
|
95
|
+
<SeriesBar dataKey="orders" fill="var(--chart-solid-2)" radius={4} />
|
|
96
96
|
<Line dataKey="runRate" variant="comparison" />
|
|
97
|
-
<Line dataKey="revenue" stroke="var(--chart-1)" />
|
|
97
|
+
<Line dataKey="revenue" stroke="var(--chart-solid-1)" />
|
|
98
98
|
<XAxis numTicks={6} />
|
|
99
99
|
<ChartTooltip showCrosshair={false} />
|
|
100
100
|
</ComposedChart>
|
|
@@ -125,9 +125,9 @@ const data = Array.from({ length: 12 }, (_, week) => ({
|
|
|
125
125
|
}));
|
|
126
126
|
|
|
127
127
|
const bars = [
|
|
128
|
-
{ key: "card", label: "Card", color: "var(--chart-1)" },
|
|
129
|
-
{ key: "bank", label: "Bank transfer", color: "var(--chart-2)" },
|
|
130
|
-
{ key: "wallet", label: "Wallet", color: "var(--chart-3)" },
|
|
128
|
+
{ key: "card", label: "Card", color: "var(--chart-solid-1)" },
|
|
129
|
+
{ key: "bank", label: "Bank transfer", color: "var(--chart-solid-2)" },
|
|
130
|
+
{ key: "wallet", label: "Wallet", color: "var(--chart-solid-3)" },
|
|
131
131
|
] as const;
|
|
132
132
|
|
|
133
133
|
const legendItems = [
|
|
@@ -24,6 +24,7 @@ row. An empty `value` renders a dash.
|
|
|
24
24
|
| `copyLabel` | `string` | `"Copy ID" ("Copy secret" for `variant="secret"`)` | Accessible name of the copy button. |
|
|
25
25
|
| `defaultRevealed` | `boolean` | `false` | Initial revealed state of an uncontrolled `secret`. |
|
|
26
26
|
| `label` | `ReactNode` | - | The key of a `chip`, e.g. "Customer ID" (Body/Secondary, Content/Secondary). |
|
|
27
|
+
| `link` | `ReactElement<Record<string, unknown>, string \| JSXElementConstructor<any>>` | - | Renders the value as this link, e.g. `<NextLink href="/payments/pay_…" />`, for an ID that opens its record. The value keeps its middle truncation and underlines on hover; the copy button stays beside it, outside the link. `inline` and `chip` only. |
|
|
27
28
|
| `onCopy` | `((value: string) => void)` | - | Called with `value` after it was written to the clipboard. |
|
|
28
29
|
| `onCopyError` | `((error: unknown) => void)` | - | Called when the clipboard write fails (e.g. permission denied or insecure context). |
|
|
29
30
|
| `onRevealedChange` | `((revealed: boolean) => void)` | - | Called when the reveal button shows or masks a `secret`, and when `remaskAfterMs` masks it again. |
|
|
@@ -4,8 +4,8 @@ The Dodo Nest Data table, driven by a TanStack Table v8 instance: the column hea
|
|
|
4
4
|
the rows (`size` md 48 / lg 64) on the white panel inside it, skeleton rows while `isLoading`, and
|
|
5
5
|
`emptyMessage` centred in the panel when there are no rows. It keeps the table layout at every width:
|
|
6
6
|
a table wider than its container scrolls sideways (the container is then a tab stop). It sets
|
|
7
|
-
`aria-sort` on sortable headers and marks selected rows `data-state="selected"
|
|
8
|
-
|
|
7
|
+
`aria-sort` on sortable headers and marks selected rows `data-state="selected"`, tinted
|
|
8
|
+
Surface/Secondary as on hover. Sorting, selection and pagination stay in the table
|
|
9
9
|
instance; pair it with `DataGridColumnHeader`, `DataGridRowSelect(All)` and `DataGridPagination`
|
|
10
10
|
(16 below). After a sort change, the rows glide to their new positions (`animateSort`) and a polite
|
|
11
11
|
live region announces the new sort. `bulkActions` adds a sticky "N selected" bar with actions for
|
|
@@ -21,8 +21,8 @@ The Dodo Nest Data table, driven by a TanStack Table v8 instance: the column hea
|
|
|
21
21
|
the rows (`size` md 48 / lg 64) on the white panel inside it, skeleton rows while `isLoading`, and
|
|
22
22
|
`emptyMessage` centred in the panel when there are no rows. It keeps the table layout at every width:
|
|
23
23
|
a table wider than its container scrolls sideways (the container is then a tab stop). It sets
|
|
24
|
-
`aria-sort` on sortable headers and marks selected rows `data-state="selected"
|
|
25
|
-
|
|
24
|
+
`aria-sort` on sortable headers and marks selected rows `data-state="selected"`, tinted
|
|
25
|
+
Surface/Secondary as on hover. Sorting, selection and pagination stay in the table
|
|
26
26
|
instance; pair it with `DataGridColumnHeader`, `DataGridRowSelect(All)` and `DataGridPagination`
|
|
27
27
|
(16 below). After a sort change, the rows glide to their new positions (`animateSort`) and a polite
|
|
28
28
|
live region announces the new sort. `bulkActions` adds a sticky "N selected" bar with actions for
|
|
@@ -38,10 +38,12 @@ the selected rows.
|
|
|
38
38
|
| `bulkActionsQueryKey` | `unknown` | - | With `manualPagination`, the server query the rows came from (for example the filters you send to your API). "Select all N matching" is dropped whenever it changes, so a bulk action never runs against results the user did not select. Any JSON-serialisable value. |
|
|
39
39
|
| `emptyMessage` | `ReactNode` | `"No data available"` | Shown centred in the panel (48 above and below) when there are no rows: an `Empty`, for no data yet or for no results with a "Clear filters" action. |
|
|
40
40
|
| `formatSortAnnouncement` | `((sort: DataGridSortAnnouncement \| null) => string)` | `(sort) => sort ? `Sorted by ${sort.column}, ${sort.direction}.` : "Sort cleared."` | Text that a polite live region announces after the user changes the sort. `null` means the sort was cleared. |
|
|
41
|
+
| `getRowHref` | `((row: TData) => string)` | - | Makes each row a link to this URL, as main's tables: a click (or Enter) calls `onRowNavigate`, and Ctrl, Cmd, the middle button or Ctrl+Enter open it in a new tab. Rows become focusable. Clicks on controls inside the row are ignored, as for `onRowClick`. |
|
|
41
42
|
| `isLoading` | `boolean` | `false` | Render skeleton rows instead of data and mark the table `aria-busy`. |
|
|
42
43
|
| `layout` | `"table" \| "auto" \| "cards"` | - | Chose between the table and the old mobile card list. The table layout is used at every width now (a table wider than its container scrolls sideways), so this has no effect. |
|
|
43
44
|
| `loadingRows` | `number` | - | Number of skeleton rows while loading. Defaults to the current page size. |
|
|
44
45
|
| `onRowClick` | `((row: TData) => void)` | - | Called with the row's original data when a row is clicked or activated with Enter/Space. Makes rows focusable. Clicks on buttons, links, inputs, checkboxes and `[data-no-row-click]` elements inside the row are ignored. |
|
|
46
|
+
| `onRowNavigate` | `((href: string, row: TData) => void)` | `Assigns the URL to `window.location`` | Follows a row's link in the same tab, e.g. `(href) => router.push(href)` for client-side routing. |
|
|
45
47
|
| `size` | `"md" \| "lg"` | `"md"` | `md`: 48 rows, for one-line cells (the default).<br>`lg`: 64 rows, for a primary cell with a subtitle, a date with its time or an avatar. |
|
|
46
48
|
|
|
47
49
|
## DataGridColumnHeader
|
|
@@ -74,11 +76,12 @@ assumed while the current page is full.
|
|
|
74
76
|
| `onLast` | `(() => void)` | - | Called when the last-page button is pressed. Setting it shows the button after the next arrow; it is disabled with the next arrow (`hasNext`). Leave it out for cursor lists, which cannot jump to the end. |
|
|
75
77
|
| `rowsPerPageOptions` | `readonly number[]` | `[10, 25, 50, 100]` | The choices of the rows-per-page select. A `rowsPerPage` that is not in the list is added to it. |
|
|
76
78
|
| `showRowsPerPage` | `boolean` | `true` | Show the "Rows per page" select. Turn it off for cursor lists, which show "Page N". |
|
|
79
|
+
| `size` | `"default" \| "sm"` | `"default"` | `default` is the Figma footer: Body/Primary labels, a 72 select and 36 arrows. `sm` is a quieter one for dense pages: Body/Secondary labels, a compact select and 24 arrows. |
|
|
77
80
|
|
|
78
81
|
## DataGridRowSelect
|
|
79
82
|
|
|
80
83
|
Row selection checkbox for a `select` column's `cell`. Toggles `row.toggleSelected()`. A selected row
|
|
81
|
-
keeps
|
|
84
|
+
keeps the Surface/Secondary hover tint, and this box is checked.
|
|
82
85
|
|
|
83
86
|
| Prop | Type | Default | Description |
|
|
84
87
|
| --- | --- | --- | --- |
|
|
@@ -10,7 +10,7 @@ The primitives have no dropzone, so this is a composite: a native `<button>` in
|
|
|
10
10
|
`<input type="file">`.
|
|
11
11
|
|
|
12
12
|
```tsx
|
|
13
|
-
import { FileUpload, FileUploadFooter, FileUploadItem, FileUploadList, FileUploadTray, formatFileSize } from "@dodopayments/ui/file-upload";
|
|
13
|
+
import { FileUpload, FileUploadButton, FileUploadFooter, FileUploadItem, FileUploadList, FileUploadTray, formatFileSize } from "@dodopayments/ui/file-upload";
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
## FileUpload
|
|
@@ -39,6 +39,30 @@ The primitives have no dropzone, so this is a composite: a native `<button>` in
|
|
|
39
39
|
| `onFilesAdded` | `((files: File[]) => void)` | - | Called with the accepted files of each pick or drop. |
|
|
40
40
|
| `onFilesRejected` | `((rejections: FileUploadRejection[]) => void)` | - | Called with the refused files of each pick or drop and the reason for each. |
|
|
41
41
|
|
|
42
|
+
## FileUploadButton
|
|
43
|
+
|
|
44
|
+
A button that opens the file picker, for a small upload in a row, such as a logo beside its preview,
|
|
45
|
+
where the dropzone is too large. Picked files are checked as `FileUpload` checks them.
|
|
46
|
+
|
|
47
|
+
| Prop | Type | Default | Description |
|
|
48
|
+
| --- | --- | --- | --- |
|
|
49
|
+
| `accept` | `string` | - | Accepted files, as in `<input accept>`, checked again after the pick. |
|
|
50
|
+
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
51
|
+
| `errorText` | `ReactNode` | `"Try again"` | Label shown while `result` is `"error"`. |
|
|
52
|
+
| `loading` | `boolean` | - | Swaps the label for a spinner and `loadingText`, and marks the button busy. The button stays focusable (`aria-disabled`, not `disabled`) and ignores presses. Pass it (even `false`) on buttons that load: both faces then share one cell, so the button keeps its width. |
|
|
53
|
+
| `loadingText` | `ReactNode` | - | Label shown while `loading` or `progress` is set. Defaults to `children`. |
|
|
54
|
+
| `maxSize` | `number` | - | Largest accepted file, in bytes. |
|
|
55
|
+
| `multiple` | `boolean` | - | Accept several files per pick. When false, only the first acceptable file is kept. |
|
|
56
|
+
| `onFilesAdded` | `((files: File[]) => void)` | - | Called with the accepted files of each pick. |
|
|
57
|
+
| `onFilesRejected` | `((rejections: FileUploadRejection[]) => void)` | - | Called with the refused files of each pick and the reason for each. |
|
|
58
|
+
| `progress` | `number \| null` | - | Determinate progress (0-100). A fill sweeps across the button and the percentage is shown next to `loadingText`. `null`/`undefined` falls back to `loading`. |
|
|
59
|
+
| `result` | `"success" \| "error" \| null` | - | Outcome of the last action, after interior.dev's loading button. `"success"` swaps the label for a check and `successText`, `"error"` for a warning icon and `errorText`; `null` shows the label. The outcome is announced through a polite live region. Pass it (even `null`) on buttons that report an outcome, so every face shares one cell from the first render. Clear it yourself, e.g. after 1.4s. With `result`, `Button` renders the button and a sibling status element, so do not pass a `Button` with `result` as the `render` element of another component. |
|
|
60
|
+
| `size` | `"default" \| "icon" \| "xs" \| "lg" \| "icon-xs" \| "icon-lg" \| null` | - | |
|
|
61
|
+
| `successText` | `ReactNode` | `"Done"` | Label shown while `result` is `"success"`. |
|
|
62
|
+
| `variant` | `"link" \| "default" \| "warning" \| "secondary" \| "ghost" \| "destructive" \| "wallet" \| "destructive-outline" \| null` | - | |
|
|
63
|
+
|
|
64
|
+
Also accepts Base UI props: `focusableWhenDisabled`, `nativeButton`, `render`.
|
|
65
|
+
|
|
42
66
|
## FileUploadFooter
|
|
43
67
|
|
|
44
68
|
The tray footer: a link-style Remove all button (underlined on hover) and a summary, on one row (Figma File upload > footer).
|
|
@@ -26,7 +26,7 @@ place.
|
|
|
26
26
|
| `filters` (required) | `readonly FilterGridFilter<T>[]` | - | |
|
|
27
27
|
| `getKey` (required) | `(item: T) => string` | - | A stable key per item, so cells keep their identity across filters. |
|
|
28
28
|
| `items` (required) | `readonly T[]` | - | |
|
|
29
|
-
| `renderItem` (required) | `(item: T) => ReactNode` | - | Content of one cell. |
|
|
29
|
+
| `renderItem` (required) | `(item: T) => ReactNode` | - | Content of one cell: drawn in the white panel of the cell's card tray. |
|
|
30
30
|
| `className` | `string` | - | Additional Tailwind classes, merged last. |
|
|
31
31
|
| `columns` | `number` | `3` | Grid columns. |
|
|
32
32
|
| `defaultValue` | `string` | - | Id of the filter active on mount when uncontrolled. Defaults to the first filter. |
|
|
@@ -34,6 +34,7 @@ place.
|
|
|
34
34
|
| `gap` | `number` | `8` | Gap between cells in pixels. |
|
|
35
35
|
| `maxRows` | `number` | `4` | Rows before the grid scrolls. The grid keeps the height of all items (up to this cap), so filtering does not move the content below it. |
|
|
36
36
|
| `onValueChange` | `((id: string) => void)` | - | Called with the id of the filter the user picks. |
|
|
37
|
+
| `renderTitle` | `((item: T) => ReactNode)` | - | Title of one cell, at the top of its white panel above the `renderItem` content (Heading/Quaternary, truncated). Without it the panel holds `renderItem` only. |
|
|
37
38
|
| `rowHeight` | `number` | `72` | Row height in pixels. |
|
|
38
39
|
| `value` | `string` | - | Id of the active filter. Pass it to control the grid. |
|
|
39
40
|
|
|
@@ -98,12 +99,8 @@ export default function FilterGridBasic() {
|
|
|
98
99
|
items={PRODUCTS}
|
|
99
100
|
filters={FILTERS}
|
|
100
101
|
getKey={(p) => p.id}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<span className="truncate text-label-primary">{p.name}</span>
|
|
104
|
-
<span className="text-body-secondary text-muted-foreground">{p.price}</span>
|
|
105
|
-
</div>
|
|
106
|
-
)}
|
|
102
|
+
renderTitle={(p) => p.name}
|
|
103
|
+
renderItem={(p) => <span className="text-body-secondary text-muted-foreground">{p.price}</span>}
|
|
107
104
|
/>
|
|
108
105
|
);
|
|
109
106
|
}
|