@senvenli/react 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +32 -2
- package/dist/action/button-group.d.ts +26 -0
- package/dist/action/button-group.js +12 -0
- package/dist/action/button-group.js.map +1 -0
- package/dist/action/button.d.ts +42 -0
- package/dist/action/button.js +58 -0
- package/dist/action/button.js.map +1 -0
- package/dist/action/close-button.d.ts +12 -0
- package/dist/action/close-button.js +13 -0
- package/dist/action/close-button.js.map +1 -0
- package/dist/action/copy-button.d.ts +21 -0
- package/dist/action/copy-button.js +38 -0
- package/dist/action/copy-button.js.map +1 -0
- package/dist/action/fab.d.ts +29 -0
- package/dist/action/fab.js +57 -0
- package/dist/action/fab.js.map +1 -0
- package/dist/action/files.d.ts +70 -0
- package/dist/action/files.js +156 -0
- package/dist/action/files.js.map +1 -0
- package/dist/action/index.d.ts +23 -0
- package/dist/action/index.js +16 -0
- package/dist/action/index.js.map +1 -0
- package/dist/action/language-names.d.ts +19 -0
- package/dist/action/language-names.js +79 -0
- package/dist/action/language-names.js.map +1 -0
- package/dist/action/language-switcher.d.ts +57 -0
- package/dist/action/language-switcher.js +53 -0
- package/dist/action/language-switcher.js.map +1 -0
- package/dist/action/link-button.d.ts +57 -0
- package/dist/action/link-button.js +48 -0
- package/dist/action/link-button.js.map +1 -0
- package/dist/action/link.d.ts +24 -0
- package/dist/action/link.js +18 -0
- package/dist/action/link.js.map +1 -0
- package/dist/action/pressable.d.ts +40 -0
- package/dist/action/pressable.js +65 -0
- package/dist/action/pressable.js.map +1 -0
- package/dist/action/styles.d.ts +60 -0
- package/dist/action/styles.js +109 -0
- package/dist/action/styles.js.map +1 -0
- package/dist/action/theme-script.d.ts +12 -0
- package/dist/action/theme-script.js +23 -0
- package/dist/action/theme-script.js.map +1 -0
- package/dist/action/theme-switcher.d.ts +43 -0
- package/dist/action/theme-switcher.js +260 -0
- package/dist/action/theme-switcher.js.map +1 -0
- package/dist/action/theme-toggle.d.ts +43 -0
- package/dist/action/theme-toggle.js +259 -0
- package/dist/action/theme-toggle.js.map +1 -0
- package/dist/action/toggle.d.ts +44 -0
- package/dist/action/toggle.js +28 -0
- package/dist/action/toggle.js.map +1 -0
- package/dist/action/touch-target.d.ts +9 -0
- package/dist/action/touch-target.js +14 -0
- package/dist/action/touch-target.js.map +1 -0
- package/dist/charts/axis-width.d.ts +186 -0
- package/dist/charts/axis-width.js +1262 -0
- package/dist/charts/axis-width.js.map +1 -0
- package/dist/charts/bar-public.d.ts +16 -0
- package/dist/charts/bar-public.js +16 -0
- package/dist/charts/bar-public.js.map +1 -0
- package/dist/charts/chart-parts.d.ts +136 -0
- package/dist/charts/chart-parts.js +160 -0
- package/dist/charts/chart-parts.js.map +1 -0
- package/dist/charts/core-charts.d.ts +157 -0
- package/dist/charts/core-charts.js +505 -0
- package/dist/charts/core-charts.js.map +1 -0
- package/dist/charts/index.d.ts +12 -0
- package/dist/charts/index.js +8 -0
- package/dist/charts/index.js.map +1 -0
- package/dist/charts/list-charts.d.ts +124 -0
- package/dist/charts/list-charts.js +308 -0
- package/dist/charts/list-charts.js.map +1 -0
- package/dist/charts/more-charts.d.ts +138 -0
- package/dist/charts/more-charts.js +284 -0
- package/dist/charts/more-charts.js.map +1 -0
- package/dist/charts/report-charts.d.ts +138 -0
- package/dist/charts/report-charts.js +370 -0
- package/dist/charts/report-charts.js.map +1 -0
- package/dist/charts/value-tick.d.ts +178 -0
- package/dist/charts/value-tick.js +240 -0
- package/dist/charts/value-tick.js.map +1 -0
- package/dist/collection/data-table-url-hook.d.ts +34 -0
- package/dist/collection/data-table-url-hook.js +70 -0
- package/dist/collection/data-table-url-hook.js.map +1 -0
- package/dist/collection/data-table-url.d.ts +30 -0
- package/dist/collection/data-table-url.js +48 -0
- package/dist/collection/data-table-url.js.map +1 -0
- package/dist/collection/data-table.d.ts +112 -0
- package/dist/collection/data-table.js +188 -0
- package/dist/collection/data-table.js.map +1 -0
- package/dist/collection/grid-list-public.d.ts +18 -0
- package/dist/collection/grid-list-public.js +19 -0
- package/dist/collection/grid-list-public.js.map +1 -0
- package/dist/collection/grid-list.d.ts +73 -0
- package/dist/collection/grid-list.js +46 -0
- package/dist/collection/grid-list.js.map +1 -0
- package/dist/collection/index.d.ts +14 -0
- package/dist/collection/index.js +8 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/list.d.ts +61 -0
- package/dist/collection/list.js +38 -0
- package/dist/collection/list.js.map +1 -0
- package/dist/collection/selection-checkbox.d.ts +5 -0
- package/dist/collection/selection-checkbox.js +13 -0
- package/dist/collection/selection-checkbox.js.map +1 -0
- package/dist/collection/table.d.ts +91 -0
- package/dist/collection/table.js +183 -0
- package/dist/collection/table.js.map +1 -0
- package/dist/collection/tree.d.ts +31 -0
- package/dist/collection/tree.js +22 -0
- package/dist/collection/tree.js.map +1 -0
- package/dist/color/color.d.ts +87 -0
- package/dist/color/color.js +200 -0
- package/dist/color/color.js.map +1 -0
- package/dist/color/contrast.d.ts +34 -0
- package/dist/color/contrast.js +44 -0
- package/dist/color/contrast.js.map +1 -0
- package/dist/color/index.d.ts +4 -0
- package/dist/color/index.js +5 -0
- package/dist/color/index.js.map +1 -0
- package/dist/date/calendar.d.ts +71 -0
- package/dist/date/calendar.js +291 -0
- package/dist/date/calendar.js.map +1 -0
- package/dist/date/fields.d.ts +174 -0
- package/dist/date/fields.js +250 -0
- package/dist/date/fields.js.map +1 -0
- package/dist/date/index.d.ts +7 -0
- package/dist/date/index.js +6 -0
- package/dist/date/index.js.map +1 -0
- package/dist/date/month-grid.d.ts +31 -0
- package/dist/date/month-grid.js +115 -0
- package/dist/date/month-grid.js.map +1 -0
- package/dist/date/pickers.d.ts +118 -0
- package/dist/date/pickers.js +176 -0
- package/dist/date/pickers.js.map +1 -0
- package/dist/date/public.d.ts +25 -0
- package/dist/date/public.js +24 -0
- package/dist/date/public.js.map +1 -0
- package/dist/date/segments.d.ts +153 -0
- package/dist/date/segments.js +433 -0
- package/dist/date/segments.js.map +1 -0
- package/dist/defaults.d.ts +74 -0
- package/dist/defaults.js +100 -0
- package/dist/defaults.js.map +1 -0
- package/dist/density.d.ts +2 -0
- package/dist/density.js +2 -0
- package/dist/density.js.map +1 -0
- package/dist/display/avatar.d.ts +29 -0
- package/dist/display/avatar.js +71 -0
- package/dist/display/avatar.js.map +1 -0
- package/dist/display/badge.d.ts +65 -0
- package/dist/display/badge.js +99 -0
- package/dist/display/badge.js.map +1 -0
- package/dist/display/card.d.ts +72 -0
- package/dist/display/card.js +91 -0
- package/dist/display/card.js.map +1 -0
- package/dist/display/carousel.d.ts +47 -0
- package/dist/display/carousel.js +214 -0
- package/dist/display/carousel.js.map +1 -0
- package/dist/display/description-list.d.ts +25 -0
- package/dist/display/description-list.js +36 -0
- package/dist/display/description-list.js.map +1 -0
- package/dist/display/icon-aliases.d.ts +1 -0
- package/dist/display/icon-aliases.js +259 -0
- package/dist/display/icon-aliases.js.map +1 -0
- package/dist/display/icon-names.d.ts +4 -0
- package/dist/display/icon-names.js +2 -0
- package/dist/display/icon-names.js.map +1 -0
- package/dist/display/icon.d.ts +51 -0
- package/dist/display/icon.js +96 -0
- package/dist/display/icon.js.map +1 -0
- package/dist/display/image-crop.d.ts +106 -0
- package/dist/display/image-crop.js +117 -0
- package/dist/display/image-crop.js.map +1 -0
- package/dist/display/image-cropper.d.ts +68 -0
- package/dist/display/image-cropper.js +284 -0
- package/dist/display/image-cropper.js.map +1 -0
- package/dist/display/image-viewer.d.ts +54 -0
- package/dist/display/image-viewer.js +84 -0
- package/dist/display/image-viewer.js.map +1 -0
- package/dist/display/image.d.ts +26 -0
- package/dist/display/image.js +17 -0
- package/dist/display/image.js.map +1 -0
- package/dist/display/index.d.ts +29 -0
- package/dist/display/index.js +16 -0
- package/dist/display/index.js.map +1 -0
- package/dist/display/iso-chip.d.ts +19 -0
- package/dist/display/iso-chip.js +21 -0
- package/dist/display/iso-chip.js.map +1 -0
- package/dist/display/kbd.d.ts +11 -0
- package/dist/display/kbd.js +33 -0
- package/dist/display/kbd.js.map +1 -0
- package/dist/display/lozenge.d.ts +30 -0
- package/dist/display/lozenge.js +55 -0
- package/dist/display/lozenge.js.map +1 -0
- package/dist/display/scroll-area.d.ts +29 -0
- package/dist/display/scroll-area.js +95 -0
- package/dist/display/scroll-area.js.map +1 -0
- package/dist/display/separator.d.ts +13 -0
- package/dist/display/separator.js +24 -0
- package/dist/display/separator.js.map +1 -0
- package/dist/display/stat.d.ts +35 -0
- package/dist/display/stat.js +41 -0
- package/dist/display/stat.js.map +1 -0
- package/dist/display/timeline.d.ts +44 -0
- package/dist/display/timeline.js +111 -0
- package/dist/display/timeline.js.map +1 -0
- package/dist/display/typography.d.ts +37 -0
- package/dist/display/typography.js +53 -0
- package/dist/display/typography.js.map +1 -0
- package/dist/display/visually-hidden.d.ts +14 -0
- package/dist/display/visually-hidden.js +10 -0
- package/dist/display/visually-hidden.js.map +1 -0
- package/dist/feedback/banner.d.ts +46 -0
- package/dist/feedback/banner.js +157 -0
- package/dist/feedback/banner.js.map +1 -0
- package/dist/feedback/cooldown.d.ts +17 -0
- package/dist/feedback/cooldown.js +59 -0
- package/dist/feedback/cooldown.js.map +1 -0
- package/dist/feedback/empty-state.d.ts +35 -0
- package/dist/feedback/empty-state.js +39 -0
- package/dist/feedback/empty-state.js.map +1 -0
- package/dist/feedback/index.d.ts +12 -0
- package/dist/feedback/index.js +11 -0
- package/dist/feedback/index.js.map +1 -0
- package/dist/feedback/meter.d.ts +33 -0
- package/dist/feedback/meter.js +42 -0
- package/dist/feedback/meter.js.map +1 -0
- package/dist/feedback/motion.d.ts +9 -0
- package/dist/feedback/motion.js +57 -0
- package/dist/feedback/motion.js.map +1 -0
- package/dist/feedback/progress.d.ts +39 -0
- package/dist/feedback/progress.js +68 -0
- package/dist/feedback/progress.js.map +1 -0
- package/dist/feedback/skeleton.d.ts +48 -0
- package/dist/feedback/skeleton.js +61 -0
- package/dist/feedback/skeleton.js.map +1 -0
- package/dist/feedback/spinner.d.ts +19 -0
- package/dist/feedback/spinner.js +29 -0
- package/dist/feedback/spinner.js.map +1 -0
- package/dist/feedback/status-dot.d.ts +23 -0
- package/dist/feedback/status-dot.js +37 -0
- package/dist/feedback/status-dot.js.map +1 -0
- package/dist/form/countries.d.ts +34 -0
- package/dist/form/countries.js +273 -0
- package/dist/form/countries.js.map +1 -0
- package/dist/form/data-attributes.d.ts +11 -0
- package/dist/form/data-attributes.js +22 -0
- package/dist/form/data-attributes.js.map +1 -0
- package/dist/form/field-parts.d.ts +113 -0
- package/dist/form/field-parts.js +178 -0
- package/dist/form/field-parts.js.map +1 -0
- package/dist/form/field.d.ts +36 -0
- package/dist/form/field.js +65 -0
- package/dist/form/field.js.map +1 -0
- package/dist/form/files.d.ts +70 -0
- package/dist/form/files.js +156 -0
- package/dist/form/files.js.map +1 -0
- package/dist/form/form.d.ts +40 -0
- package/dist/form/form.js +74 -0
- package/dist/form/form.js.map +1 -0
- package/dist/form/image-crop.d.ts +106 -0
- package/dist/form/image-crop.js +117 -0
- package/dist/form/image-crop.js.map +1 -0
- package/dist/form/image-cropper.d.ts +68 -0
- package/dist/form/image-cropper.js +284 -0
- package/dist/form/image-cropper.js.map +1 -0
- package/dist/form/index.d.ts +24 -0
- package/dist/form/index.js +15 -0
- package/dist/form/index.js.map +1 -0
- package/dist/form/input-group.d.ts +63 -0
- package/dist/form/input-group.js +63 -0
- package/dist/form/input-group.js.map +1 -0
- package/dist/form/input-otp.d.ts +35 -0
- package/dist/form/input-otp.js +83 -0
- package/dist/form/input-otp.js.map +1 -0
- package/dist/form/input.d.ts +36 -0
- package/dist/form/input.js +41 -0
- package/dist/form/input.js.map +1 -0
- package/dist/form/number-field.d.ts +84 -0
- package/dist/form/number-field.js +81 -0
- package/dist/form/number-field.js.map +1 -0
- package/dist/form/otp-field.d.ts +37 -0
- package/dist/form/otp-field.js +116 -0
- package/dist/form/otp-field.js.map +1 -0
- package/dist/form/password-field.d.ts +61 -0
- package/dist/form/password-field.js +61 -0
- package/dist/form/password-field.js.map +1 -0
- package/dist/form/phone-field.d.ts +104 -0
- package/dist/form/phone-field.js +275 -0
- package/dist/form/phone-field.js.map +1 -0
- package/dist/form/phone-paste.d.ts +24 -0
- package/dist/form/phone-paste.js +40 -0
- package/dist/form/phone-paste.js.map +1 -0
- package/dist/form/phone.d.ts +159 -0
- package/dist/form/phone.js +309 -0
- package/dist/form/phone.js.map +1 -0
- package/dist/form/search-field.d.ts +29 -0
- package/dist/form/search-field.js +23 -0
- package/dist/form/search-field.js.map +1 -0
- package/dist/form/styles.d.ts +31 -0
- package/dist/form/styles.js +43 -0
- package/dist/form/styles.js.map +1 -0
- package/dist/form/text-area.d.ts +70 -0
- package/dist/form/text-area.js +93 -0
- package/dist/form/text-area.js.map +1 -0
- package/dist/form/text-field.d.ts +131 -0
- package/dist/form/text-field.js +59 -0
- package/dist/form/text-field.js.map +1 -0
- package/dist/form/validation.d.ts +145 -0
- package/dist/form/validation.js +136 -0
- package/dist/form/validation.js.map +1 -0
- package/dist/i18n.d.ts +438 -0
- package/dist/i18n.js +948 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/intl-locale.d.ts +30 -0
- package/dist/intl-locale.js +83 -0
- package/dist/intl-locale.js.map +1 -0
- package/dist/layers.d.ts +32 -0
- package/dist/layers.js +33 -0
- package/dist/layers.js.map +1 -0
- package/dist/layout/auth-form-layout.d.ts +71 -0
- package/dist/layout/auth-form-layout.js +61 -0
- package/dist/layout/auth-form-layout.js.map +1 -0
- package/dist/layout/auth-layout.d.ts +59 -0
- package/dist/layout/auth-layout.js +26 -0
- package/dist/layout/auth-layout.js.map +1 -0
- package/dist/layout/box.d.ts +26 -0
- package/dist/layout/box.js +16 -0
- package/dist/layout/box.js.map +1 -0
- package/dist/layout/grid.d.ts +27 -0
- package/dist/layout/grid.js +26 -0
- package/dist/layout/grid.js.map +1 -0
- package/dist/layout/index.d.ts +16 -0
- package/dist/layout/index.js +12 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/pressable.d.ts +40 -0
- package/dist/layout/pressable.js +65 -0
- package/dist/layout/pressable.js.map +1 -0
- package/dist/layout/reset-sent-card.d.ts +39 -0
- package/dist/layout/reset-sent-card.js +22 -0
- package/dist/layout/reset-sent-card.js.map +1 -0
- package/dist/layout/scroll-area.d.ts +29 -0
- package/dist/layout/scroll-area.js +95 -0
- package/dist/layout/scroll-area.js.map +1 -0
- package/dist/layout/section.d.ts +41 -0
- package/dist/layout/section.js +22 -0
- package/dist/layout/section.js.map +1 -0
- package/dist/layout/split.d.ts +50 -0
- package/dist/layout/split.js +35 -0
- package/dist/layout/split.js.map +1 -0
- package/dist/layout/stack.d.ts +44 -0
- package/dist/layout/stack.js +36 -0
- package/dist/layout/stack.js.map +1 -0
- package/dist/layout/tokens.d.ts +33 -0
- package/dist/layout/tokens.js +85 -0
- package/dist/layout/tokens.js.map +1 -0
- package/dist/layout/toolbar.d.ts +37 -0
- package/dist/layout/toolbar.js +334 -0
- package/dist/layout/toolbar.js.map +1 -0
- package/dist/navigate-context.d.ts +12 -0
- package/dist/navigate-context.js +13 -0
- package/dist/navigate-context.js.map +1 -0
- package/dist/navigation/accordion.d.ts +40 -0
- package/dist/navigation/accordion.js +33 -0
- package/dist/navigation/accordion.js.map +1 -0
- package/dist/navigation/bottom-nav.d.ts +29 -0
- package/dist/navigation/bottom-nav.js +48 -0
- package/dist/navigation/bottom-nav.js.map +1 -0
- package/dist/navigation/brand-link-context.d.ts +8 -0
- package/dist/navigation/brand-link-context.js +9 -0
- package/dist/navigation/brand-link-context.js.map +1 -0
- package/dist/navigation/breadcrumbs.d.ts +36 -0
- package/dist/navigation/breadcrumbs.js +51 -0
- package/dist/navigation/breadcrumbs.js.map +1 -0
- package/dist/navigation/dock.d.ts +27 -0
- package/dist/navigation/dock.js +47 -0
- package/dist/navigation/dock.js.map +1 -0
- package/dist/navigation/footer.d.ts +43 -0
- package/dist/navigation/footer.js +43 -0
- package/dist/navigation/footer.js.map +1 -0
- package/dist/navigation/index.d.ts +22 -0
- package/dist/navigation/index.js +17 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/navigation/language-names.d.ts +19 -0
- package/dist/navigation/language-names.js +79 -0
- package/dist/navigation/language-names.js.map +1 -0
- package/dist/navigation/language-switcher.d.ts +55 -0
- package/dist/navigation/language-switcher.js +53 -0
- package/dist/navigation/language-switcher.js.map +1 -0
- package/dist/navigation/nav-panel.d.ts +18 -0
- package/dist/navigation/nav-panel.js +51 -0
- package/dist/navigation/nav-panel.js.map +1 -0
- package/dist/navigation/navbar.d.ts +73 -0
- package/dist/navigation/navbar.js +64 -0
- package/dist/navigation/navbar.js.map +1 -0
- package/dist/navigation/page-header.d.ts +37 -0
- package/dist/navigation/page-header.js +50 -0
- package/dist/navigation/page-header.js.map +1 -0
- package/dist/navigation/pagination.d.ts +25 -0
- package/dist/navigation/pagination.js +51 -0
- package/dist/navigation/pagination.js.map +1 -0
- package/dist/navigation/panel-header.d.ts +37 -0
- package/dist/navigation/panel-header.js +50 -0
- package/dist/navigation/panel-header.js.map +1 -0
- package/dist/navigation/sidebar-script.d.ts +12 -0
- package/dist/navigation/sidebar-script.js +20 -0
- package/dist/navigation/sidebar-script.js.map +1 -0
- package/dist/navigation/sidebar.d.ts +149 -0
- package/dist/navigation/sidebar.js +332 -0
- package/dist/navigation/sidebar.js.map +1 -0
- package/dist/navigation/skip-link.d.ts +12 -0
- package/dist/navigation/skip-link.js +30 -0
- package/dist/navigation/skip-link.js.map +1 -0
- package/dist/navigation/stepper.d.ts +50 -0
- package/dist/navigation/stepper.js +96 -0
- package/dist/navigation/stepper.js.map +1 -0
- package/dist/navigation/tabs.d.ts +84 -0
- package/dist/navigation/tabs.js +118 -0
- package/dist/navigation/tabs.js.map +1 -0
- package/dist/navigation/toolbar.d.ts +37 -0
- package/dist/navigation/toolbar.js +334 -0
- package/dist/navigation/toolbar.js.map +1 -0
- package/dist/overlay/alert-dialog.d.ts +63 -0
- package/dist/overlay/alert-dialog.js +76 -0
- package/dist/overlay/alert-dialog.js.map +1 -0
- package/dist/overlay/command-palette.d.ts +53 -0
- package/dist/overlay/command-palette.js +130 -0
- package/dist/overlay/command-palette.js.map +1 -0
- package/dist/overlay/command.d.ts +53 -0
- package/dist/overlay/command.js +129 -0
- package/dist/overlay/command.js.map +1 -0
- package/dist/overlay/context-menu.d.ts +29 -0
- package/dist/overlay/context-menu.js +58 -0
- package/dist/overlay/context-menu.js.map +1 -0
- package/dist/overlay/dialog.d.ts +162 -0
- package/dist/overlay/dialog.js +174 -0
- package/dist/overlay/dialog.js.map +1 -0
- package/dist/overlay/drawer.d.ts +41 -0
- package/dist/overlay/drawer.js +114 -0
- package/dist/overlay/drawer.js.map +1 -0
- package/dist/overlay/floating.d.ts +142 -0
- package/dist/overlay/floating.js +226 -0
- package/dist/overlay/floating.js.map +1 -0
- package/dist/overlay/hover-card.d.ts +19 -0
- package/dist/overlay/hover-card.js +31 -0
- package/dist/overlay/hover-card.js.map +1 -0
- package/dist/overlay/index.d.ts +18 -0
- package/dist/overlay/index.js +12 -0
- package/dist/overlay/index.js.map +1 -0
- package/dist/overlay/overlay-base.d.ts +105 -0
- package/dist/overlay/overlay-base.js +250 -0
- package/dist/overlay/overlay-base.js.map +1 -0
- package/dist/overlay/overlay.d.ts +299 -0
- package/dist/overlay/overlay.js +558 -0
- package/dist/overlay/overlay.js.map +1 -0
- package/dist/overlay/toast.d.ts +58 -0
- package/dist/overlay/toast.js +145 -0
- package/dist/overlay/toast.js.map +1 -0
- package/dist/provider.d.ts +26 -0
- package/dist/provider.js +30 -0
- package/dist/provider.js.map +1 -0
- package/dist/selection/autocomplete.d.ts +54 -0
- package/dist/selection/autocomplete.js +122 -0
- package/dist/selection/autocomplete.js.map +1 -0
- package/dist/selection/checkbox.d.ts +56 -0
- package/dist/selection/checkbox.js +49 -0
- package/dist/selection/checkbox.js.map +1 -0
- package/dist/selection/choice-size.d.ts +26 -0
- package/dist/selection/choice-size.js +50 -0
- package/dist/selection/choice-size.js.map +1 -0
- package/dist/selection/choice-text.d.ts +21 -0
- package/dist/selection/choice-text.js +33 -0
- package/dist/selection/choice-text.js.map +1 -0
- package/dist/selection/combobox.d.ts +173 -0
- package/dist/selection/combobox.js +410 -0
- package/dist/selection/combobox.js.map +1 -0
- package/dist/selection/index.d.ts +20 -0
- package/dist/selection/index.js +13 -0
- package/dist/selection/index.js.map +1 -0
- package/dist/selection/list-box.d.ts +30 -0
- package/dist/selection/list-box.js +16 -0
- package/dist/selection/list-box.js.map +1 -0
- package/dist/selection/listbox.d.ts +44 -0
- package/dist/selection/listbox.js +49 -0
- package/dist/selection/listbox.js.map +1 -0
- package/dist/selection/match.d.ts +20 -0
- package/dist/selection/match.js +57 -0
- package/dist/selection/match.js.map +1 -0
- package/dist/selection/multi-select.d.ts +72 -0
- package/dist/selection/multi-select.js +138 -0
- package/dist/selection/multi-select.js.map +1 -0
- package/dist/selection/radio-card.d.ts +31 -0
- package/dist/selection/radio-card.js +29 -0
- package/dist/selection/radio-card.js.map +1 -0
- package/dist/selection/radio.d.ts +72 -0
- package/dist/selection/radio.js +64 -0
- package/dist/selection/radio.js.map +1 -0
- package/dist/selection/select-public.d.ts +19 -0
- package/dist/selection/select-public.js +24 -0
- package/dist/selection/select-public.js.map +1 -0
- package/dist/selection/select.d.ts +72 -0
- package/dist/selection/select.js +69 -0
- package/dist/selection/select.js.map +1 -0
- package/dist/selection/slider.d.ts +16 -0
- package/dist/selection/slider.js +44 -0
- package/dist/selection/slider.js.map +1 -0
- package/dist/selection/styles.d.ts +26 -0
- package/dist/selection/styles.js +78 -0
- package/dist/selection/styles.js.map +1 -0
- package/dist/selection/switch.d.ts +24 -0
- package/dist/selection/switch.js +27 -0
- package/dist/selection/switch.js.map +1 -0
- package/dist/selection/tag-group.d.ts +38 -0
- package/dist/selection/tag-group.js +45 -0
- package/dist/selection/tag-group.js.map +1 -0
- package/dist/tone.d.ts +6 -0
- package/dist/tone.js +2 -0
- package/dist/tone.js.map +1 -0
- package/dist/utils.d.ts +9 -0
- package/dist/utils.js +42 -0
- package/dist/utils.js.map +1 -0
- package/manifest/component.full.schema.json +391 -0
- package/manifest/component.schema.json +279 -0
- package/manifests/accordion.json +299 -0
- package/manifests/alert-dialog.json +261 -0
- package/manifests/area-chart.json +338 -0
- package/manifests/autocomplete.json +299 -0
- package/manifests/avatar.json +253 -0
- package/manifests/badge.json +288 -0
- package/manifests/banner.json +185 -0
- package/manifests/bar-chart.json +454 -0
- package/manifests/bar-list.json +262 -0
- package/manifests/bottom-nav.json +139 -0
- package/manifests/box.json +3450 -0
- package/manifests/breadcrumbs.json +199 -0
- package/manifests/button-group.json +2294 -0
- package/manifests/button.json +1211 -0
- package/manifests/calendar-heatmap.json +218 -0
- package/manifests/calendar.json +299 -0
- package/manifests/card.json +308 -0
- package/manifests/carousel.json +263 -0
- package/manifests/chart-parts.json +309 -0
- package/manifests/checkbox.json +998 -0
- package/manifests/close-button.json +1000 -0
- package/manifests/color-field.json +276 -0
- package/manifests/color-picker.json +161 -0
- package/manifests/color-swatch-picker.json +220 -0
- package/manifests/color-swatch.json +140 -0
- package/manifests/combobox.json +581 -0
- package/manifests/command.json +275 -0
- package/manifests/composed-chart.json +287 -0
- package/manifests/context-menu.json +148 -0
- package/manifests/copy-button.json +192 -0
- package/manifests/data-table.json +334 -0
- package/manifests/date-field.json +302 -0
- package/manifests/date-picker.json +472 -0
- package/manifests/description-list.json +201 -0
- package/manifests/dialog.json +322 -0
- package/manifests/donut-chart.json +264 -0
- package/manifests/drawer.json +211 -0
- package/manifests/empty-state.json +185 -0
- package/manifests/fab.json +172 -0
- package/manifests/field.json +209 -0
- package/manifests/file-upload.json +791 -0
- package/manifests/form.json +829 -0
- package/manifests/funnel-chart.json +223 -0
- package/manifests/gauge-chart.json +252 -0
- package/manifests/grid-list.json +335 -0
- package/manifests/grid.json +3482 -0
- package/manifests/heading.json +183 -0
- package/manifests/heatmap.json +265 -0
- package/manifests/hover-card.json +172 -0
- package/manifests/icon.json +201 -0
- package/manifests/image-cropper.json +295 -0
- package/manifests/image-viewer.json +198 -0
- package/manifests/image.json +193 -0
- package/manifests/index.json +2035 -0
- package/manifests/input-group.json +3571 -0
- package/manifests/input.json +1557 -0
- package/manifests/kbd.json +98 -0
- package/manifests/language-switcher.json +274 -0
- package/manifests/line-chart.json +342 -0
- package/manifests/link.json +867 -0
- package/manifests/list-box.json +213 -0
- package/manifests/menu.json +453 -0
- package/manifests/meter.json +145 -0
- package/manifests/navbar.json +281 -0
- package/manifests/otp-field.json +1029 -0
- package/manifests/page-header.json +164 -0
- package/manifests/pagination.json +181 -0
- package/manifests/popover.json +205 -0
- package/manifests/pressable.json +367 -0
- package/manifests/progress.json +282 -0
- package/manifests/radar-chart.json +229 -0
- package/manifests/radial-chart.json +195 -0
- package/manifests/radio.json +975 -0
- package/manifests/scatter-chart.json +277 -0
- package/manifests/scroll-area.json +127 -0
- package/manifests/section.json +169 -0
- package/manifests/select.json +474 -0
- package/manifests/separator.json +119 -0
- package/manifests/sidebar.json +584 -0
- package/manifests/skeleton.json +235 -0
- package/manifests/skip-link.json +89 -0
- package/manifests/slider.json +706 -0
- package/manifests/sparkline.json +208 -0
- package/manifests/spinner.json +105 -0
- package/manifests/split.json +6618 -0
- package/manifests/stack.json +3541 -0
- package/manifests/stat.json +192 -0
- package/manifests/stepper.json +279 -0
- package/manifests/switch.json +205 -0
- package/manifests/table.json +375 -0
- package/manifests/tabs.json +438 -0
- package/manifests/tag-group.json +264 -0
- package/manifests/text-area.json +1136 -0
- package/manifests/text.json +244 -0
- package/manifests/theme-switcher.json +152 -0
- package/manifests/time-field.json +284 -0
- package/manifests/timeline.json +196 -0
- package/manifests/toast.json +87 -0
- package/manifests/toggle-button.json +1489 -0
- package/manifests/toolbar.json +145 -0
- package/manifests/tooltip.json +181 -0
- package/manifests/tracker.json +192 -0
- package/manifests/tree.json +245 -0
- package/manifests/visually-hidden.json +114 -0
- package/package.json +117 -3
- package/styles/base.css +56 -0
- package/styles/theme.css +154 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-charts.js","sourceRoot":"","sources":["../../src/charts/core-charts.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,IAAI,EACJ,GAAG,EACH,aAAa,EACb,aAAa,IAAI,qBAAqB,EACtC,SAAS,EACT,IAAI,EACJ,aAAa,EACb,mBAAmB,EACnB,OAAO,EACP,KAAK,EACL,KAAK,EACL,WAAW,GAEZ,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEjF,OAAO,EACL,aAAa,EACb,UAAU,EACV,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,GAIf,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAwB,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/L,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAmB,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACjJ,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AA0CrD;;;;GAIG;AACH,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,yBAAyB,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,kBAAkB,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE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,EAAE;QACnB,IAAI,CAAC,SAAS,IAAI,MAAM,CAAC,OAAO;YAAE,OAAO;QACzC,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;QACtB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC3B,CAAC","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport {\n Area,\n Bar,\n CartesianGrid,\n ComposedChart as RechartsComposedChart,\n LabelList,\n Line,\n ReferenceLine,\n ResponsiveContainer,\n Tooltip,\n XAxis,\n YAxis,\n usePlotArea,\n type LabelProps,\n} from \"recharts\";\nimport { useLocale } from \"react-aria-components\";\n\nimport { chartCategoryLabel, chartNoDataLabel, chartPeriodLabel } from \"../i18n\";\n\nimport {\n CHART_NEUTRAL,\n ChartFrame,\n ChartLegend,\n ChartTooltip,\n chartColor,\n chartSeries,\n useChartAnimation,\n useChartDirection,\n useChartSeries,\n type ChartLegendItem,\n type ChartTooltipProps,\n type ChartValueFormatter,\n} from \"./chart-parts\";\nimport type { TableColumn } from \"../collection/table\";\nimport { type FormattedValues, chartNumber, formattedValues, labelText, textLines, textWidth, tickAxisWidth, tickOverhang, tickWrapWidth, valueAxisTicks, valueAxisWidth } from \"./axis-width\";\nimport { CategoryTick, LineSpan, NameTick, type PlacedLine, ValueTick, clippedLine, firstLineDy, isolatedLabel, placedLine } from \"./value-tick\";\nimport { EmptyState } from \"../feedback/empty-state\";\n\n/* ── Shared ───────────────────────────────────────────────────────────────── */\n\ntype Row = Record<string, unknown>;\n\nexport type ChartBaseProps<T extends Row> = {\n /** What the chart shows (\"Revenue\"), over it; leave it out when a card or a heading already says so. */\n title?: string;\n /** Names the chart when it has no visible `title` (a card's heading already says what it shows). */\n \"aria-label\"?: string;\n /** The period it covers (\"June–September 2026\"). */\n period?: string;\n /** The headline figure, in `metric-medium` (\"€ 184,2k\"). */\n total?: React.ReactNode;\n data: readonly T[];\n /** The x key: the period or category of each row. */\n index: keyof T & string;\n /** The series keys, in order; the first is the product's own figure (`ds-chart-1`). */\n categories: readonly (keyof T & string)[];\n /** Series names by key (\"web\" → \"Website\"); the key by default. */\n labels?: Readonly<Partial<Record<string, string>>>;\n /** Shared by axis, tooltip and table (Intl): \"€ 48.920\". */\n valueFormatter?: ChartValueFormatter;\n /** The index label in the tooltip and the table (\"August 2026\"). */\n indexFormatter?: (value: unknown) => string;\n /** The index column's header in the data table; \"Period\" for time charts, \"Category\" for BarChart. */\n indexLabel?: string;\n /** The plot's height in px; 240 by default. */\n height?: number;\n isLoading?: boolean;\n /** Shown instead of the plot when `data` is empty; \"No data for this period\" by default. */\n /** Shown instead of the plot when there is no data: an `EmptyState size=\"small\"` or text; \"No data\" by default. */\n emptyState?: React.ReactNode;\n /**\n * `false` for whole counts (orders, new customers): the value axis steps by whole numbers, so a small count\n * reads 0 / 1 / 2 / 3, never 0.7 / 1.4 / 2.1. Fractional steps by default. Percent bars keep their\n * 0–100% steps.\n */\n allowDecimals?: boolean;\n};\n\n/**\n * The size is in `style` as well, with its unit: Recharts measures a tick for wrapping in a hidden span that\n * takes only the tick's `style` (assigned as is, so a bare 11 is dropped). Without it the span kept the page's\n * body size (14–16px) and a tick that fits at 11px broke over two lines (\"€\" above \"1.500.000\").\n */\nconst AXIS_TICK = { fill: \"var(--ds-text-subtlest)\", fontSize: 11, style: { fontVariantNumeric: \"tabular-nums\", fontSize: \"11px\" } } as const;\n/** A label's 11px (bar totals, reference lines), in `style` too: Recharts measures labels for wrapping the same way. */\nconst LABEL_SIZE = { fontSize: 11, style: { fontSize: \"11px\" } } as const;\nconst plainNumber: ChartValueFormatter = (value) => String(value);\n\nfunction useShell<T extends Row>(\n props: ChartBaseProps<T>,\n seriesKeys: readonly string[],\n kinds: Readonly<Record<string, ChartLegendItem[\"kind\"]>>,\n options: { comparison?: string; indexKind?: \"period\" | \"category\"; dashes?: Readonly<Record<string, string>> } = {},\n) {\n const { comparison, indexKind = \"period\", dashes } = options;\n const { data, index, labels, valueFormatter = plainNumber, indexFormatter = String } = props;\n const { locale } = useLocale();\n const series = useChartSeries();\n const animate = useChartAnimation();\n const direction = useChartDirection();\n const label = (key: string) => labels?.[key] ?? key;\n let colorIndex = 0;\n const styles = Object.fromEntries(\n seriesKeys.map((key) => {\n const isComparison = key === comparison;\n const style = chartSeries(isComparison ? 0 : colorIndex, { kind: kinds[key], isComparison });\n if (!isComparison) colorIndex += 1;\n return [key, dashes?.[key] ? { ...style, strokeDasharray: dashes[key] } : style];\n }),\n );\n const legend: ChartLegendItem[] = seriesKeys.map((key) => ({ key, label: label(key), kind: kinds[key], ...styles[key]! }));\n // A value as the chart plots it (a numeric string too, as Recharts draws it); \"—\" for a gap.\n const shown = (row: T, key: string, format: ChartValueFormatter) => {\n const value = chartNumber(row[key]);\n return value === undefined ? \"—\" : format(value);\n };\n const columns: TableColumn<T>[] = [\n {\n key: index,\n header: props.indexLabel ?? (indexKind === \"category\" ? chartCategoryLabel(locale) : chartPeriodLabel(locale)),\n isRowHeader: true,\n render: (row) => indexFormatter(row[index]),\n },\n ...seriesKeys.map((key) => ({\n key,\n header: label(key),\n align: \"end\" as const,\n render: (row: T) => shown(row, key, valueFormatter),\n })),\n ];\n const tooltip = (\n <Tooltip\n cursor={{ stroke: \"var(--ds-border-bold)\", strokeWidth: 1 }}\n isAnimationActive={animate}\n content={<PlottedTooltip valueFormatter={valueFormatter} labelFormatter={indexFormatter} labels={Object.fromEntries(seriesKeys.map((key) => [key, label(key)]))} />}\n />\n );\n return { series, animate, direction, styles, legend, columns, tooltip, label, valueFormatter, indexFormatter, locale, shown };\n}\n\n/**\n * @internal The tooltip over a chart's own rows (Recharts hands it the raw values): a value shown as the chart\n * plots it, a numeric string (\"1450000\") formatted as the number it is drawn at, as the data table shows it.\n * Shared with RadarChart.\n */\nexport function PlottedTooltip({ payload, ...props }: ChartTooltipProps) {\n return <ChartTooltip {...props} payload={payload?.map((entry) => ({ ...entry, value: chartNumber(entry.value) ?? entry.value }))} />;\n}\n\n/** Title, period and the headline figure over the chart. */\n/** @internal Shared with the other chart modules; not exported from the package. */\nexport function ChartHeader({ title, period, total }: Pick<ChartBaseProps<Row>, \"title\" | \"period\" | \"total\">) {\n return (\n <div data-slot=\"chart-header\" className=\"flex flex-wrap items-end justify-between gap-x-ds-300 gap-y-ds-050\">\n <div className=\"flex min-w-0 flex-col items-start\">\n {title && <bdi className=\"text-body-strong text-ds-text\">{title}</bdi>}\n {period && <bdi className=\"text-body-small text-ds-text-subtle\">{period}</bdi>}\n </div>\n {total != null && (\n <bdi data-slot=\"chart-total\" className=\"text-metric-medium text-ds-text\">\n {total}\n </bdi>\n )}\n </div>\n );\n}\n\nfunction Shell<T extends Row>({\n props,\n shell,\n legendPlacement,\n showLegend,\n onResize,\n children,\n}: {\n props: ChartBaseProps<T>;\n shell: ReturnType<typeof useShell<T>>;\n legendPlacement?: \"top\" | \"bottom\";\n showLegend: boolean;\n /** The chart's measured width, each time it changes (never on the server). */\n onResize?: (width: number) => void;\n children: React.ReactElement;\n}) {\n const height = props.height ?? 240;\n // Rows keyed by position: two rows may share a category value.\n const positions = React.useMemo(() => new Map(props.data.map((row, position) => [row, position])), [props.data]);\n return (\n <section data-slot=\"chart\" aria-label={props.title ?? props[\"aria-label\"]} className=\"flex min-w-0 flex-col gap-ds-200\">\n {(props.title || props.period || props.total != null) && <ChartHeader title={props.title} period={props.period} total={props.total} />}\n <ChartFrame\n height={height}\n isLoading={props.isLoading}\n emptyState={props.data.length === 0 ? props.emptyState ?? <EmptyState size=\"small\" icon=\"chart-column\" title={chartNoDataLabel(shell.locale)} /> : null}\n legendPlacement={legendPlacement}\n legend={showLegend ? <ChartLegend items={shell.legend} hidden={shell.series.hidden} onToggle={shell.series.toggle} /> : undefined}\n dataTable={{ caption: [props.title ?? props[\"aria-label\"], props.period].filter(Boolean).join(\" · \"), columns: shell.columns, rows: props.data, rowKey: (row) => positions.get(row) ?? String(row[props.index]) }}\n >\n <ResponsiveContainer width=\"100%\" height=\"100%\" onResize={onResize ? (width) => onResize(Math.round(width)) : undefined}>\n {children}\n </ResponsiveContainer>\n </ChartFrame>\n </section>\n );\n}\n\nconst VALUE_TICKS = 4;\n/** A value axis is never narrower than this, so short figures (\"€ 54\", \"120\") keep the axis they always had. */\nconst VALUE_AXIS_MIN = 48;\n\n/**\n * A value axis wide enough for its longest tick: the ticks Recharts draws for these values, formatted, at their\n * estimated width (axis-width's textWidth) plus the 8px Recharts draws them in from the plot, 48–128px. A fixed\n * 48px kept \"€ 20.000\" (48px at 11px) over two lines, since Recharts wraps a tick unless it is narrower than the\n * axis. Ticks too long for the 128px axis are shown with compact figures in the chart's locale, and the axis is\n * sized for those (axis-width's tickAxisWidth).\n */\nconst valueWidth = (values: Iterable<unknown>, format: ChartValueFormatter, locale: string, allowDecimals = true) =>\n valueAxisWidth(values, format, { tickCount: VALUE_TICKS, min: VALUE_AXIS_MIN, locale, allowDecimals });\n\n/** The values of these keys in every row: what a `[0, \"auto\"]` value axis spans. */\nfunction valuesOf<T extends Row>(data: readonly T[], keys: readonly string[]): unknown[] {\n return data.flatMap((row) => keys.map((key) => row[key]));\n}\n\n/**\n * A value axis. Its ticks are the DS's ({@link ValueTick}: a figure with its sign and currency never parts, and\n * a tick too long for its room shows its figures compact), given `ticks`, the values the axis draws, so an axis\n * that needs a compact figure shows every tick compact. `beside` for an axis beside the plot, whether the chart\n * sized it from its ticks or an app gave its width (AreaChart's `yAxisWidth`): each tick is given the room it has,\n * the axis less the 8px inset (axis-width's tickWrapWidth), so a tick clipped to it never passes the axis's outer\n * edge, the chart's (given the whole axis, the clip began 8px past it). A horizontal axis under the\n * plot gives each tick Recharts' room.\n */\nconst yAxisProps = (\n shell: { direction: ReturnType<typeof useChartDirection>; valueFormatter: ChartValueFormatter },\n width: number,\n beside: boolean,\n ticks: readonly number[] | undefined,\n allowDecimals = true,\n) => ({\n orientation: shell.direction.valueAxis,\n tickLine: false,\n axisLine: false,\n tick: <ValueTick {...AXIS_TICK} {...(beside ? { width: tickWrapWidth(width) } : {})} axisTicks={ticks} />,\n tickCount: VALUE_TICKS,\n // The steps Recharts draws must be the ones the axis was sized and formatted for (`ticks`).\n allowDecimals,\n width,\n tickFormatter: (value: number) => shell.valueFormatter(value),\n});\n\n/**\n * How far a vertical value axis's top tick stands above the chart's 8px top margin (axis-width's tickOverhang): the\n * room a top tick of several lines takes above its gridline, in the room {@link yAxisProps} gives it, so the chart's\n * top margin holds it (\"€ 1.500.000 net | this month\" passed the svg's top by 4px). 0 for a one-line top tick.\n */\nconst valueAxisOverhang = (format: ChartValueFormatter, width: number, ticks: readonly number[] | undefined, locale: string) => {\n if (!ticks || ticks.length === 0) return 0;\n const texts = ticks.map((value) => format(value));\n // Recharts' ticks rise from the axis's start: the last is the top one.\n return tickOverhang(texts.at(-1), tickWrapWidth(width), locale, texts, formattedValues(ticks, format));\n};\n\n/** The chart's top margin: 8px, and the room the top value tick takes past one line. */\nconst CHART_TOP = 8;\n\n/** The time or category axis under the plot: Recharts' ticks, kept inside the chart ({@link CategoryTick}). */\nconst xAxisProps = (index: string, shell: { direction: ReturnType<typeof useChartDirection> }) => ({\n dataKey: index,\n reversed: shell.direction.reversed,\n tickLine: false,\n axisLine: { stroke: \"var(--ds-border-bold)\" },\n tick: <CategoryTick {...AXIS_TICK} />,\n});\n\n/**\n * The chart's margins around a time axis whose periods sit on the plot's edges (AreaChart, LineChart, a\n * ComposedChart without bars): Recharts centers the last period's tick on the plot's end, so half of it stands past\n * the plot. The end side (the right, the left in RTL, where the axis is reversed) is at least half that tick's\n * estimated width (axis-width's textWidth, as drawn in tabular figures), so \"Sep\" no longer passes the chart's edge;\n * 4px as before where it is narrower. The start side is the value axis's, which holds the first tick's other half.\n */\nfunction edgeMargin<T extends Row>(data: readonly T[], index: string, isRtl: boolean, overhang = 0) {\n const last = data.at(-1);\n const end = Math.max(CHART_EDGE, Math.ceil(textWidth(last === undefined ? \"\" : String(last[index] ?? \"\"), \"tabular\") / 2));\n return { top: CHART_TOP + overhang, right: isRtl ? CHART_EDGE : end, bottom: 0, left: isRtl ? end : CHART_EDGE };\n}\n\nconst GRID = <CartesianGrid vertical={false} stroke=\"var(--ds-border)\" />;\n/** The hover point: ringed in the surface color so it reads on the line. */\nconst ACTIVE_DOT = { r: 4, strokeWidth: 2, stroke: \"var(--ds-surface-raised)\" };\n\n/* ── AreaChart ───────────────────────────────────────────────────────────── */\n\nexport type AreaChartProps<T extends Row> = ChartBaseProps<T> & {\n /** The previous period's key: a dashed `ds-chart-neutral` line without fill. */\n comparison?: keyof T & string;\n /** The value axis' width in px; by default wide enough for its longest tick (48–128px). */\n yAxisWidth?: number;\n /** A pointer press on the chart: the row under it (keyboard users read values in the tooltip and the table). */\n onValueChange?: (row: T | null) => void;\n};\n\n/**\n * How one quantity changes over time, optionally against the previous period: a 2px `ds-chart-1` line\n * over a 16% fill, the comparison dashed in `ds-chart-neutral` without fill. The value axis starts at\n * zero; a vertical guide and a ringed point follow the pointer and the arrow keys.\n */\nexport function AreaChart<T extends Row>(props: AreaChartProps<T>) {\n const { data, index, categories, comparison, yAxisWidth, onValueChange, allowDecimals = true } = props;\n const keys = comparison ? [...categories, comparison] : [...categories];\n const shell = useShell(props, keys, Object.fromEntries(keys.map((key) => [key, key === comparison ? \"line\" : \"area\"])), {\n comparison,\n dashes: comparison ? { [comparison]: \"6 4\" } : undefined,\n });\n const values = valuesOf(data, keys.filter((key) => !shell.series.isHidden(key)));\n const axisWidth = yAxisWidth ?? valueWidth(values, shell.valueFormatter, shell.locale, allowDecimals);\n const ticks = valueAxisTicks(values, VALUE_TICKS, allowDecimals);\n return (\n <Shell props={props} shell={shell} showLegend={keys.length > 1}>\n <RechartsComposedChart\n data={data as Row[]}\n accessibilityLayer\n // Recharts 3 reports the active index as a string.\n onClick={(state) => {\n const position = state?.activeIndex == null ? NaN : Number(state.activeIndex);\n onValueChange?.(Number.isInteger(position) ? (data[position] ?? null) : null);\n }}\n margin={edgeMargin(data, index, shell.direction.isRtl, valueAxisOverhang(shell.valueFormatter, axisWidth, ticks, shell.locale))}\n >\n {GRID}\n <XAxis {...xAxisProps(index, shell)} />\n <YAxis {...yAxisProps(shell, axisWidth, true, ticks, allowDecimals)} domain={[0, \"auto\"]} />\n {categories\n .filter((key) => !shell.series.isHidden(key))\n .map((key) => (\n <Area\n key={key}\n dataKey={key as string}\n name={key}\n type=\"monotone\"\n stroke={shell.styles[key]!.color}\n strokeWidth={2}\n fill={shell.styles[key]!.color}\n fillOpacity={0.16}\n activeDot={ACTIVE_DOT}\n isAnimationActive={shell.animate}\n />\n ))}\n {comparison && !shell.series.isHidden(comparison) && (\n <Line dataKey={comparison as string} name={comparison} type=\"monotone\" stroke={CHART_NEUTRAL} strokeWidth={2} strokeDasharray=\"6 4\" dot={false} activeDot={ACTIVE_DOT} isAnimationActive={shell.animate} />\n )}\n {shell.tooltip}\n </RechartsComposedChart>\n </Shell>\n );\n}\n\n/* ── LineChart ───────────────────────────────────────────────────────────── */\n\nexport type ChartReferenceLine = { value: number; label: string };\n\nexport type LineChartProps<T extends Row> = ChartBaseProps<T> & {\n /** A target or an average: dashed `ds-border-bold` with a label at its end. */\n referenceLines?: readonly ChartReferenceLine[];\n /** Join across missing values; gaps stay gaps by default. */\n connectNulls?: boolean;\n};\n\n/**\n * A few series over time where the shape matters: 2px lines with round joins (dashed after the second,\n * so they part by pattern as well as hue), optional reference lines, and the legend below with line keys.\n * Up to five lines; more needs filtering, not more colors.\n */\nexport function LineChart<T extends Row>(props: LineChartProps<T>) {\n const { data, index, categories, referenceLines, connectNulls, allowDecimals = true } = props;\n const shell = useShell(props, categories, Object.fromEntries(categories.map((key) => [key, \"line\"])));\n useOnce(categories.length > 5, \"LineChart: at most five lines; filter (pick regions) instead of adding colors.\");\n const values = valuesOf(data, categories.filter((key) => !shell.series.isHidden(key)));\n const axisWidth = valueWidth(values, shell.valueFormatter, shell.locale, allowDecimals);\n const ticks = valueAxisTicks(values, VALUE_TICKS, allowDecimals);\n return (\n <Shell props={props} shell={shell} showLegend legendPlacement=\"bottom\">\n <RechartsComposedChart data={data as Row[]} accessibilityLayer margin={edgeMargin(data, index, shell.direction.isRtl, valueAxisOverhang(shell.valueFormatter, axisWidth, ticks, shell.locale))}>\n {GRID}\n <XAxis {...xAxisProps(index, shell)} />\n <YAxis {...yAxisProps(shell, axisWidth, true, ticks, allowDecimals)} />\n {referenceLines?.map((line) => (\n <ReferenceLine\n key={line.label}\n y={line.value}\n stroke=\"var(--ds-border-bold)\"\n strokeDasharray=\"4 4\"\n // At the line's end, just above it.\n label={{ value: line.label, position: shell.direction.isRtl ? \"insideBottomLeft\" : \"insideBottomRight\", fill: \"var(--ds-text-subtle)\", ...LABEL_SIZE, ...isolatedLabel(line.label, shell.direction.isRtl ? \"insideBottomLeft\" : \"insideBottomRight\") }}\n />\n ))}\n {categories\n .filter((key) => !shell.series.isHidden(key))\n .map((key) => (\n <Line\n key={key}\n dataKey={key as string}\n name={key}\n type=\"monotone\"\n stroke={shell.styles[key]!.color}\n strokeDasharray={shell.styles[key]!.strokeDasharray}\n strokeWidth={2}\n strokeLinejoin=\"round\"\n strokeLinecap=\"round\"\n dot={false}\n activeDot={ACTIVE_DOT}\n connectNulls={connectNulls}\n isAnimationActive={shell.animate}\n />\n ))}\n {shell.tooltip}\n </RechartsComposedChart>\n </Shell>\n );\n}\n\n/* ── BarChart ────────────────────────────────────────────────────────────── */\n\n/**\n * The room for a horizontal bar's total, from its formatted text: its {@link textWidth} (each character at the\n * widest Geist or a fallback draws it at 11px: a figure 7px, \".\" and the space 3.5px, \"€\" 8px; format and bidi\n * marks, as the U+200F ar-EG puts before a currency figure, take none), plus the label's 5px gap. An estimate,\n * not a measurement, yet never under the drawn total: it is the same on the server, in tests and before the web\n * font loads, so the margin never moves between the first render and the next. Never under 48px (the room every\n * total had) and never over 96px, so a 390px phone keeps about 150px of bars. A longer total is not shortened:\n * the bar-end label ({@link BarEndLabel}) wraps it between its words within the room it has, in both directions,\n * or keeps a unit too wide for it on one line ending at the room's edge, so no figure is cut at the chart's edge. The tooltip and the data table have\n * the whole figure.\n */\nconst BAR_LABEL_GAP = 5;\nconst BAR_END_MIN = 48;\nconst BAR_END_MAX = 96;\n/** How far a label that ends at its room's edge (the chart's edge, or the plot's start) stands in from it. */\nconst BAR_LABEL_INSET = 2;\n/** The category names' column beside horizontal bars. */\nconst CATEGORY_AXIS = 112;\n/** The chart's 4px edge on the side without totals. */\nconst CHART_EDGE = 4;\n\n/** @internal A bar-end label's estimated width in px, as {@link barLabelRoom} counts it (no gap). */\nexport function barLabelWidth(text: string): number {\n return textWidth(text);\n}\n\n/** @internal The room for the widest of these bar-end totals, in px; 0 when there are none. */\nexport function barLabelRoom(texts: readonly string[]): number {\n if (texts.length === 0) return 0;\n const width = Math.max(...texts.map(barLabelWidth));\n return Math.min(BAR_END_MAX, Math.max(BAR_END_MIN, width + BAR_LABEL_GAP));\n}\n\n/**\n * @internal A bar-end label's lines for the room it has: whole when it fits, otherwise broken between its units\n * (axis-width's textLines and textUnits, the value ticks' rule too: only between two words with letters or after a\n * separator ending a word, \"12 orders, | 3 canceled\", never beside a figure, so a figure keeps its sign, currency,\n * unit and magnitude words), each line as long as fits, by the same estimate as the room. When a unit is wider\n * than the room the label stays one line, which ends at the room's edge.\n */\nexport function barLabelLines(text: string, room: number): string[] {\n return textLines(text, room);\n}\n\n/** A Cartesian box (a bar, the chart) as Recharts hands it to a label; a polar one has no `width`. */\nconst cartesian = (box: LabelProps[\"viewBox\"]) => (box && \"width\" in box ? { x: box.x ?? 0, y: box.y ?? 0, width: box.width ?? 0, height: box.height ?? 0 } : undefined);\n\n/**\n * @internal The total at a horizontal bar's end, in place of Recharts' own label: Recharts sized a\n * label that runs left (every bar in RTL, a negative one in LTR) by the room on its right, so in RTL a total\n * wider than its room stayed on one line and was cut at the chart's edge, and a negative bar's total ran over\n * the category names. This one stands 5px past the end the bar runs to, as Recharts' did, and is sized by the\n * room on that side:\n * - running forward (to the end room): up to the chart's edge;\n * - running back (a negative value): up to the plot's start, never over the category names; the value axis\n * starts that much later where the chart's width allows it (see BarChart).\n * A label wider than that wraps between its units ({@link barLabelLines}: between words with letters, and after a\n * \",\" or \"/\" between figures); one that still does not fit (a unit wider than the room, kept on one line) ends 2px\n * short of the room's edge (the chart's edge, or the plot's start), over its own bar's tip, and reaches back no\n * further than 2px short of the plot's start on the category names' side (the chart's edge on the other): never\n * over the names. A unit wider than even that is shortened by the value ticks' own chain\n * (axis-width's labelText: compact and exact figures, then scientific notation, then its qualifiers dropped), and\n * what still passes is clipped there, each line's reading start in view (value-tick's clippedLine); such a label\n * carries the whole total as its accessible name and hover title. `totals` are the chart's labels with the totals\n * they were formatted from, which prove how the formatter writes its marks. The same estimate as the end room, so\n * the server and the first render draw it the same. Drawn as Recharts draws a label (a `recharts-label` text,\n * centered on the bar), each line in its own reading direction where the label is anchored (value-tick's LineSpan),\n * so a total that reads from the left and fits looks as before, and one that reads from the right\n * (\"\\u200f١٥٠٬٠٠٠ €\") reads so.\n */\nexport function BarEndLabel({ viewBox, parentViewBox, value, fill, fontSize, style, totals }: LabelProps & { totals?: FormattedValues }) {\n const direction = useChartDirection();\n const plot = usePlotArea();\n const { locale } = useLocale();\n const clipId = `ds-bar-end-${React.useId().replace(/[^\\w-]/g, \"\")}`;\n const bar = cartesian(viewBox);\n if (typeof value !== \"string\" || value === \"\" || !bar) return null;\n const { x, y, width, height } = bar;\n // The side the bar runs to on screen, and the side the values grow to (left in RTL: the axis is reversed).\n const runs = width < 0 ? -1 : 1;\n const forward = direction.reversed ? -1 : 1;\n const anchor = x + width + runs * BAR_LABEL_GAP;\n const chart = cartesian(parentViewBox);\n const chartWidth = chart?.width ?? 0;\n const edge = runs > 0 ? chartWidth : 0;\n const limit = runs === forward || !plot ? edge : runs > 0 ? plot.x + plot.width : plot.x;\n const room = Math.max(0, (limit - anchor) * runs);\n // Lines that still pass the room (a figure wider than it, by the estimate) end at the room's edge instead, 2px\n // in from it so they never touch the chart's edge: anchored there on their far side, so the browser's own width\n // places them, and a label narrower than its estimate covers no more of its bar than it must.\n const flushAt = limit - runs * BAR_LABEL_INSET;\n // Such a label runs back over the plot as far as `reach`: the plot's start where the category names stand (left in\n // LTR, right in RTL), the chart's edge on the other side; never over the names.\n const namesAhead = direction.isRtl ? runs < 0 : runs > 0;\n const reach = (plot && namesAhead ? (runs > 0 ? plot.x : plot.x + plot.width) : runs > 0 ? 0 : chartWidth) + runs * BAR_LABEL_INSET;\n const span = Math.max(0, (flushAt - reach) * runs);\n const widest = (lines: readonly string[]) => Math.max(...lines.map(barLabelWidth));\n // Wider than all of that (a figure of many digits in a narrow chart): shortened by the value ticks' chain; what\n // still passes `reach` is clipped there. Either way the whole total is its accessible name and hover title, and the\n // data table and the tooltip have it.\n const { lines, shortened } = labelText(value, room, span, locale, totals);\n const flush = widest(lines) > room;\n const clipped = flush && widest(lines) > span;\n // A clipped label's lines are each drawn from the clip's edge where they start to read, in their own direction, so\n // what stays in view is their reading start, the currency and figure a formatter writes first, never only their\n // tail (\"▯xxxx\" of \"€ 1.450.000xxxx\", and of \"\\u200f١٥٠ ترليون €xxxx\"); the value ticks clip the same way.\n const clipStart = Math.min(reach, flushAt);\n const toward = clipped ? 1 : flush ? -runs : runs;\n const textAnchor = toward > 0 ? \"start\" : \"end\";\n // Every line in its own direction (value-tick's LineSpan), where the label is anchored: its left edge at the bar's end\n // when it runs right, its right edge when it runs left or ends at the room's edge.\n const lineAt = (line: string): PlacedLine => (clipped ? clippedLine(line, clipStart, span, \"proportional\") : placedLine(line, flush ? flushAt : anchor, textAnchor));\n const at = lineAt(lines[0] ?? \"\").x;\n // Recharts' Text centers lines on the bar: the first line's dy is (n − 1) / 2 lines up, plus half a cap height.\n const firstDy = firstLineDy(lines.length);\n return (\n <g>\n {clipped && (\n <clipPath id={clipId}>\n <rect x={clipStart} y={chart?.y ?? 0} width={span} height={chart?.height ?? 0} />\n </clipPath>\n )}\n <text\n x={at}\n y={y + height / 2}\n className=\"recharts-text recharts-label\"\n data-slot=\"chart-bar-end-label\"\n data-shortened={shortened || clipped || undefined}\n aria-label={shortened || clipped ? value : undefined}\n clipPath={clipped ? `url(#${clipId})` : undefined}\n textAnchor={textAnchor}\n fill={fill}\n fontSize={fontSize}\n style={style}\n >\n {(shortened || clipped) && <title>{value}</title>}\n {lines.map((line, index) => (\n <LineSpan key={index} {...lineAt(line)} inherited={textAnchor} dy={index === 0 ? firstDy : \"1em\"}>\n {line}\n </LineSpan>\n ))}\n </text>\n </g>\n );\n}\n\n/** Where a bar's total stands: its text, whether the bar runs forward (to the end room) and the value it ends at. */\ntype EndLabel = { text: string; forward: boolean; at: number };\n\n/**\n * A stack as Recharts draws it (`stackOffset` \"none\"): its parts in series order, each from where the last one\n * ended, whatever their signs. A part counts as Recharts counts it (`Number(value)`: null is 0, `\"1500000\"` is\n * 1,500,000); one that is not a number (NaN) is skipped, the next one starting where it would have. `ends` are\n * the edges the parts reach (the value axis spans them); `last` the last part Recharts draws (one with a\n * non-zero length), which carries the stack's total.\n */\nfunction walkStack(row: Row, parts: readonly string[]) {\n let reached = 0;\n const ends = [0];\n let last: { key: string; value: number } | undefined;\n for (const key of parts) {\n const raw = row[key];\n const value = raw === undefined || raw === null ? 0 : Number(raw);\n const end = reached + value;\n if (!Number.isFinite(end)) continue;\n ends.push(end);\n if (value !== 0) last = { key, value };\n reached = end;\n }\n return { total: reached, ends, last };\n}\n\n/** Every percent a 0–100% share axis can print: its ticks are shares rounded to whole percents. */\nconst PERCENT_STEPS = Array.from({ length: 101 }, (_, step) => step / 100);\n\nexport type BarChartProps<T extends Row> = ChartBaseProps<T> & {\n /** `grouped` periods side by side, `stacked` parts of a whole, `percent` parts as shares. */\n type?: \"grouped\" | \"stacked\" | \"percent\";\n /** `horizontal` for long category names, ranked; `vertical` columns by default. */\n layout?: \"vertical\" | \"horizontal\";\n /** A comparison series (last year): `ds-chart-neutral`. */\n comparison?: keyof T & string;\n /** Horizontal bars are sorted by their total unless the categories have a natural order (`none`). */\n sortBy?: \"value\" | \"none\";\n /** An average or target line. */\n referenceLines?: readonly ChartReferenceLine[];\n};\n\n/**\n * Values across categories or periods: grouped, stacked (at most five parts) or percent, in columns or\n * horizontal bars (labels at the start, totals at the bar end). Bars have a 2px corner radius and a 20%\n * gap in the band; the current series is `ds-chart-1`, a comparison `ds-chart-neutral`.\n */\nexport function BarChart<T extends Row>(props: BarChartProps<T>) {\n const { index, categories, type = \"grouped\", layout = \"vertical\", sortBy, referenceLines } = props;\n // A comparison has no meaning on a share axis: percent bars leave it out.\n const comparison = type === \"percent\" ? undefined : props.comparison;\n useOnce(type === \"percent\" && props.comparison !== undefined, \"BarChart: a comparison is left out of percent bars; show it in a grouped chart.\");\n const keys = comparison ? [...categories, comparison] : [...categories];\n const shell = useShell(props, keys, Object.fromEntries(keys.map((key) => [key, \"bar\"])), { comparison, indexKind: \"category\" });\n const horizontal = layout === \"horizontal\";\n const stacked = type !== \"grouped\";\n // The chart's measured width (horizontal bars only): none on the server and in the first render.\n const [chartWidth, setChartWidth] = React.useState<number | null>(null);\n useOnce(stacked && categories.length > 5, \"BarChart: a stack holds at most five parts; put the rest in \\\"Other\\\".\");\n // Totals count what is shown (visible series, never the comparison). The ranking counts every current\n // series, so the bars keep their order while the legend hides and shows parts.\n const sum = (row: T, of: readonly string[]) => of.reduce((acc, key) => acc + (chartNumber(row[key]) ?? 0), 0);\n const data = horizontal && (sortBy ?? \"value\") === \"value\" ? [...props.data].sort((a, b) => sum(b, categories) - sum(a, categories)) : [...props.data];\n const percent = type === \"percent\";\n // Decimal value steps unless whole ones are asked for; a share axis keeps its 0–100% steps.\n const axisDecimals = percent || props.allowDecimals !== false;\n const percentFormat = new Intl.NumberFormat(shell.locale, { style: \"percent\", maximumFractionDigits: 0 });\n const formatter = percent ? (value: number) => percentFormat.format(value) : shell.valueFormatter;\n const visible = keys.filter((key) => !shell.series.isHidden(key));\n // The stack's parts: what is shown, never the comparison (it sits beside the stack).\n const parts = visible.filter((key) => key !== comparison);\n const stacks = new Map(stacked ? data.map((row) => [row, walkStack(row, parts)] as const) : []);\n // The value axis spans what is drawn: each stack's edges as Recharts stacks it, a comparison on its own.\n const spans = stacked\n ? data.flatMap((row) => [...stacks.get(row)!.ends, ...valuesOf([row], visible.filter((key) => key === comparison))])\n : valuesOf(data, visible);\n /**\n * The total a bar carries past its end, if any: a stack's total on the last part Recharts draws (a part left\n * empty or at zero passes it on to the one before, so every stack with a part shows its total); a grouped bar's\n * and a comparison's own value. Percent bars carry none, and Recharts draws no bar for a gap or a zero.\n */\n const endLabel = (row: T, key: string): EndLabel | undefined => {\n if (!horizontal || percent) return undefined;\n if (stacked && key !== comparison) {\n const stack = stacks.get(row);\n if (!stack?.last || stack.last.key !== key) return undefined;\n return { text: shell.valueFormatter(stack.total), forward: stack.last.value > 0, at: stack.total };\n }\n const value = chartNumber(row[key]);\n if (value === undefined || value === 0) return undefined;\n return { text: shell.valueFormatter(value), forward: value > 0, at: value };\n };\n const labels = data.flatMap((row) => visible.map((key) => endLabel(row, key)).filter((label): label is EndLabel => label !== undefined));\n // Each total by its text: what proves how the formatter writes its marks (axis-width's labelText).\n const labelValues: FormattedValues = new Map(labels.map((label) => [label.text, label.at]));\n // The totals drawn in the end room: a bar running forward from zero or past it. One that runs forward but ends\n // below zero (a stack's negative total on a forward last part) stands inside the plot, and one that runs back\n // stands at the start side, so neither takes end room.\n const endTotals = labels.filter((label) => label.forward && label.at >= 0).map((label) => label.text);\n // Horizontal bars put the values on the x axis, whose ticks have the plot's width (the 48px is unused there);\n // percent bars span 0–100%, sized from every percent a tick can print.\n const valueAxisWidth = horizontal ? VALUE_AXIS_MIN : percent ? tickAxisWidth(PERCENT_STEPS.map(formatter), VALUE_AXIS_MIN, 0, shell.locale, formattedValues(PERCENT_STEPS, formatter)) : valueWidth(spans, formatter, shell.locale, axisDecimals);\n // A share axis's ticks are its percents, short in every locale.\n const valueTicks = percent ? undefined : valueAxisTicks(spans, VALUE_TICKS, axisDecimals);\n const valueAxis = yAxisProps({ ...shell, valueFormatter: formatter }, valueAxisWidth, !horizontal, valueTicks, axisDecimals);\n // Columns: the top value tick's lines past one stand above the plot (horizontal bars have their values below).\n const overhang = horizontal ? 0 : valueAxisOverhang(formatter, valueAxisWidth, valueTicks, shell.locale);\n const domain = percent ? [0, 1] : [0, \"auto\"];\n const categoryAxis = xAxisProps(index, shell);\n // Room for the totals at the bar end: on the right, or on the left in RTL; never under 48px, so the value\n // axis' last tick keeps the room it always had where no total is drawn (percent bars).\n const endRoom = horizontal ? Math.max(BAR_END_MIN, barLabelRoom(endTotals)) : 4;\n /*\n * A total that runs back (a negative bar, or a stack whose last part runs back) from zero or below stands\n * toward the category names. The value axis starts later by the room it needs, so it ends clear of them: per\n * label, its width plus the gap (at most the end room's 96px; a longer one wraps) less the room the plot already\n * leaves it before the axis' start, on Recharts' own ticks. Only once the chart's width is measured (none on the\n * server or in the first render, so both draw the same), and never more than half the plot: the bars keep the\n * other half however narrow the chart is, and a label that then has too little room wraps or ends at the plot's\n * start.\n */\n const startPadding = (() => {\n const back = labels.filter((label) => !label.forward && label.at <= 0);\n if (!horizontal || chartWidth === null || back.length === 0) return 0;\n const plotWidth = chartWidth - CHART_EDGE - endRoom - CATEGORY_AXIS;\n if (plotWidth <= 0) return 0;\n const ticks = valueAxisTicks(spans, VALUE_TICKS, axisDecimals);\n const low = ticks[0]!;\n const high = ticks.at(-1)!;\n let needed = 0;\n for (const label of back) {\n const room = Math.min(BAR_END_MAX, barLabelWidth(label.text) + BAR_LABEL_GAP);\n // How far along the axis the label's bar ends (0 at its start), and the padding that leaves it its room.\n const along = high > low ? (label.at - low) / (high - low) : 0;\n if (along < 1) needed = Math.max(needed, (room - along * plotWidth) / (1 - along));\n }\n return Math.min(Math.ceil(needed), Math.floor(plotWidth / 2));\n })();\n return (\n <Shell props={{ ...props, data }} shell={shell} showLegend={keys.length > 1} onResize={horizontal ? setChartWidth : undefined}>\n <RechartsComposedChart\n data={data as Row[]}\n layout={horizontal ? \"vertical\" : \"horizontal\"}\n stackOffset={percent ? \"expand\" : undefined}\n barCategoryGap=\"20%\"\n accessibilityLayer\n // Room for totals at the bar ends, and above the plot for a reference line's label.\n margin={{\n top: horizontal && referenceLines?.length ? 20 : CHART_TOP + overhang,\n right: shell.direction.isRtl ? CHART_EDGE : endRoom,\n bottom: 0,\n left: shell.direction.isRtl ? endRoom : CHART_EDGE,\n }}\n >\n <CartesianGrid vertical={horizontal} horizontal={!horizontal} stroke=\"var(--ds-border)\" />\n {horizontal ? (\n <>\n <XAxis\n type=\"number\"\n {...valueAxis}\n domain={domain as [number, number]}\n orientation={undefined}\n reversed={shell.direction.reversed}\n // The axis' start is on the right in RTL.\n {...(startPadding > 0 ? { padding: shell.direction.reversed ? { right: startPadding } : { left: startPadding } } : {})}\n />\n <YAxis\n type=\"category\"\n dataKey={index as string}\n orientation={shell.direction.valueAxis}\n tickLine={false}\n axisLine={false}\n width={CATEGORY_AXIS}\n // Recharts' own tick (its Text, its wrapping), each name in its own reading direction (value-tick's NameTick).\n tick={<NameTick {...AXIS_TICK} fill=\"var(--ds-text-subtle)\" />}\n />\n </>\n ) : (\n <>\n <XAxis {...categoryAxis} />\n <YAxis {...valueAxis} domain={domain as [number, number]} />\n </>\n )}\n {referenceLines?.map((line) => (\n <ReferenceLine\n key={line.label}\n {...(horizontal ? { x: line.value } : { y: line.value })}\n stroke=\"var(--ds-border-bold)\"\n strokeDasharray=\"4 4\"\n label={{ value: line.label, position: horizontal ? \"top\" : shell.direction.isRtl ? \"insideBottomLeft\" : \"insideBottomRight\", fill: \"var(--ds-text-subtle)\", ...LABEL_SIZE, ...isolatedLabel(line.label, horizontal ? \"top\" : shell.direction.isRtl ? \"insideBottomLeft\" : \"insideBottomRight\") }}\n />\n ))}\n {visible.map((key) => (\n <Bar\n key={key}\n dataKey={key as string}\n name={key}\n // A comparison (last year) sits beside the stack, never on it.\n stackId={stacked && key !== comparison ? \"stack\" : undefined}\n fill={shell.styles[key]!.color}\n radius={2}\n isAnimationActive={shell.animate}\n >\n {/* Totals at the end of horizontal bars; each part of a stack asks whether it is the one that carries the total. */}\n {horizontal && !percent && (\n <LabelList\n valueAccessor={(entry: { payload?: T }) => (entry.payload ? endLabel(entry.payload, key)?.text : undefined)}\n content={(label: LabelProps) => <BarEndLabel {...label} totals={labelValues} />}\n fill=\"var(--ds-text-subtle)\"\n {...LABEL_SIZE}\n />\n )}\n </Bar>\n ))}\n {shell.tooltip}\n </RechartsComposedChart>\n </Shell>\n );\n}\n\n/* ── ComposedChart ───────────────────────────────────────────────────────── */\n\nexport type ComposedSeries<T extends Row> = { key: keyof T & string; axis: \"left\" | \"right\" };\n\n// Two value axes with their own units: whole steps are not offered here, where one setting would read as both.\nexport type ComposedChartProps<T extends Row> = Omit<ChartBaseProps<T>, \"categories\" | \"valueFormatter\" | \"allowDecimals\"> & {\n /** Volume: `ds-chart-2` bars. */\n bars: readonly ComposedSeries<T>[];\n /** Rate: `ds-chart-1` lines with ringed points. */\n lines: readonly ComposedSeries<T>[];\n /** One formatter per axis (\"124 orders\", \"€ 54\"); put the units in `period` or the title. */\n valueFormatters: { left: ChartValueFormatter; right: ChartValueFormatter };\n};\n\n/**\n * Two related measures with different units on one time axis: volume as `ds-chart-2` bars on the left\n * axis, a rate as a `ds-chart-1` line with ringed points on the right (mirrored in RTL). Only when their\n * relation is the point; otherwise use two charts.\n */\nexport function ComposedChart<T extends Row>(props: ComposedChartProps<T>) {\n const { data, index, bars, lines, valueFormatters } = props;\n const keys = [...lines.map((line) => line.key), ...bars.map((bar) => bar.key)];\n const axisOf = Object.fromEntries([...bars, ...lines].map((series) => [series.key, series.axis]));\n const shell = useShell(\n { ...props, categories: keys, valueFormatter: valueFormatters.left },\n keys,\n Object.fromEntries([...bars.map((bar) => [bar.key, \"bar\"]), ...lines.map((line) => [line.key, \"line\"])]),\n );\n // One sequence across both kinds, the line first (ds-chart-1) and the bar next (ds-chart-2), as the design\n // draws them; further lines are dashed, so no two series share a hue and a pattern.\n const order = Array.from({ length: Math.max(lines.length, bars.length) }, (_, position) => [lines[position]?.key, bars[position]?.key]).flat().filter(Boolean) as string[];\n const color = (key: string) => chartColor(order.indexOf(key));\n const lineDash = (key: string) => (lines.findIndex((line) => line.key === key) >= 1 ? \"6 4\" : undefined);\n const format = (key: string) => (axisOf[key] === \"right\" ? valueFormatters.right : valueFormatters.left);\n const columns: TableColumn<T>[] = [\n shell.columns[0]!,\n ...keys.map((key) => ({ key, header: shell.label(key), align: \"end\" as const, render: (row: T) => shell.shown(row, key, format(key)) })),\n ];\n const legend = shell.legend.map((item) => ({ ...item, color: color(item.key), strokeDasharray: item.kind === \"line\" ? lineDash(item.key) : undefined }));\n const usesRight = [...bars, ...lines].some((series) => series.axis === \"right\");\n const usesLeft = [...bars, ...lines].some((series) => series.axis === \"left\");\n // Each value axis spans the series drawn on it, in its own format.\n const axisValues = (axis: \"left\" | \"right\") => valuesOf(data, keys.filter((key) => axisOf[key] === axis && !shell.series.isHidden(key)));\n const axisWidth = (axis: \"left\" | \"right\") => valueWidth(axisValues(axis), valueFormatters[axis], shell.locale);\n const axisTicks = (axis: \"left\" | \"right\") => valueAxisTicks(axisValues(axis), VALUE_TICKS);\n const valueAxis = (axis: \"left\" | \"right\") => yAxisProps({ ...shell, valueFormatter: valueFormatters[axis] }, axisWidth(axis), true, axisTicks(axis));\n // The top margin holds either axis's top tick.\n const overhang = Math.max(\n ...([\"left\", \"right\"] as const).filter((axis) => (axis === \"left\" ? usesLeft : usesRight)).map((axis) => valueAxisOverhang(valueFormatters[axis], axisWidth(axis), axisTicks(axis), shell.locale)),\n 0,\n );\n const side = (axis: \"left\" | \"right\") => (shell.direction.isRtl ? (axis === \"left\" ? \"right\" : \"left\") : axis);\n return (\n <Shell props={props as unknown as ChartBaseProps<T>} shell={{ ...shell, columns, legend }} showLegend>\n {/* With bars the periods stand in bands, their ticks inside the plot, and an end-side axis holds the last\n tick's half; with neither, the periods sit on the plot's edges. */}\n <RechartsComposedChart\n data={data as Row[]}\n accessibilityLayer\n margin={\n usesRight || bars.some((bar) => !shell.series.isHidden(bar.key))\n ? { top: CHART_TOP + overhang, right: CHART_EDGE, bottom: 0, left: CHART_EDGE }\n : edgeMargin(data, index, shell.direction.isRtl, overhang)\n }\n >\n {GRID}\n <XAxis {...xAxisProps(index, shell)} />\n {usesLeft && <YAxis yAxisId=\"left\" {...valueAxis(\"left\")} orientation={side(\"left\")} domain={[0, \"auto\"]} />}\n {usesRight && <YAxis yAxisId=\"right\" {...valueAxis(\"right\")} orientation={side(\"right\")} domain={[0, \"auto\"]} />}\n {bars\n .filter((bar) => !shell.series.isHidden(bar.key))\n .map((bar) => (\n <Bar key={bar.key} yAxisId={bar.axis} dataKey={bar.key as string} name={bar.key} fill={color(bar.key)} radius={2} isAnimationActive={shell.animate} />\n ))}\n {lines\n .filter((line) => !shell.series.isHidden(line.key))\n .map((line) => (\n <Line\n key={line.key}\n yAxisId={line.axis}\n dataKey={line.key as string}\n name={line.key}\n type=\"monotone\"\n stroke={color(line.key)}\n strokeDasharray={lineDash(line.key)}\n strokeWidth={2}\n dot={{ r: 3, strokeWidth: 2, fill: \"var(--ds-surface-raised)\" }}\n activeDot={ACTIVE_DOT}\n isAnimationActive={shell.animate}\n />\n ))}\n <Tooltip\n cursor={{ fill: \"var(--ds-background-neutral)\", opacity: 0.5 }}\n isAnimationActive={shell.animate}\n content={(tooltip) => (\n <ChartTooltip\n {...tooltip}\n labelFormatter={shell.indexFormatter}\n labels={Object.fromEntries(keys.map((key) => [key, shell.label(key)]))}\n valueFormatter={(value) => String(value)}\n payload={tooltip.payload?.map((entry) => {\n const value = chartNumber(entry.value);\n return {\n dataKey: String(entry.dataKey),\n name: String(entry.name ?? entry.dataKey),\n color: entry.color,\n value: value === undefined ? entry.value : format(String(entry.dataKey))(value),\n };\n })}\n />\n )}\n />\n </RechartsComposedChart>\n </Shell>\n );\n}\n\n/** A dev warning, once per mount, when a design limit is passed. */\nfunction useOnce(condition: boolean, message: string) {\n const warned = React.useRef(false);\n React.useEffect(() => {\n if (!condition || warned.current) return;\n warned.current = true;\n console.warn(message);\n }, [condition, message]);\n}\n\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { CHART_COLORS, CHART_NEUTRAL, ChartAnimation, ChartFrame, ChartLegend, ChartTooltip, chartColor, chartSeries, useChartAnimation, useChartDirection, useChartSeries, } from "./chart-parts.js";
|
|
2
|
+
export type { ChartDataTable, ChartFrameProps, ChartLegendItem, ChartLegendProps, ChartSeriesStyle, ChartTooltipEntry, ChartTooltipProps, ChartValueFormatter, } from "./chart-parts.js";
|
|
3
|
+
export { AreaChart, ComposedChart, LineChart } from "./core-charts.js";
|
|
4
|
+
export { BarChart } from "./bar-public.js";
|
|
5
|
+
export type { BarChartProps, BarChartWaterfallProps } from "./bar-public.js";
|
|
6
|
+
export type { AreaChartProps, ChartBaseProps, ChartReferenceLine, ComposedChartProps, ComposedSeries, LineChartProps, } from "./core-charts.js";
|
|
7
|
+
export { DonutChart, GaugeChart, RadarChart, RadialChart, ScatterChart, Sparkline } from "./more-charts.js";
|
|
8
|
+
export type { DonutChartProps, DonutDatum, GaugeChartProps, RadarChartProps, RadialChartProps, ScatterChartProps, SparklineProps, } from "./more-charts.js";
|
|
9
|
+
export { BarList, CalendarHeatmap, FunnelChart, Tracker } from "./list-charts.js";
|
|
10
|
+
export type { BarListDatum, BarListProps, CalendarHeatmapDatum, CalendarHeatmapProps, ChartDay, FunnelChartProps, FunnelStep, TrackerDatum, TrackerProps, TrackerTone, } from "./list-charts.js";
|
|
11
|
+
export { Heatmap } from "./report-charts.js";
|
|
12
|
+
export type { HeatmapCell, HeatmapProps, WaterfallChartStep } from "./report-charts.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @senvenli/react/charts: Recharts-based charts and the shared ChartParts (frame, legend, tooltip, data table).
|
|
2
|
+
export { CHART_COLORS, CHART_NEUTRAL, ChartAnimation, ChartFrame, ChartLegend, ChartTooltip, chartColor, chartSeries, useChartAnimation, useChartDirection, useChartSeries, } from "./chart-parts.js";
|
|
3
|
+
export { AreaChart, ComposedChart, LineChart } from "./core-charts.js";
|
|
4
|
+
export { BarChart } from "./bar-public.js";
|
|
5
|
+
export { DonutChart, GaugeChart, RadarChart, RadialChart, ScatterChart, Sparkline } from "./more-charts.js";
|
|
6
|
+
export { BarList, CalendarHeatmap, FunnelChart, Tracker } from "./list-charts.js";
|
|
7
|
+
export { Heatmap } from "./report-charts.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/charts/index.ts"],"names":[],"mappings":"AAAA,gHAAgH;AAChH,OAAO,EACL,YAAY,EACZ,aAAa,EACb,cAAc,EACd,UAAU,EACV,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,GACf,MAAM,eAAe,CAAC;AAWvB,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAUxC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAUzG,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAa/E,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// @senvenli/react/charts: Recharts-based charts and the shared ChartParts (frame, legend, tooltip, data table).\nexport {\n CHART_COLORS,\n CHART_NEUTRAL,\n ChartAnimation,\n ChartFrame,\n ChartLegend,\n ChartTooltip,\n chartColor,\n chartSeries,\n useChartAnimation,\n useChartDirection,\n useChartSeries,\n} from \"./chart-parts\";\nexport type {\n ChartDataTable,\n ChartFrameProps,\n ChartLegendItem,\n ChartLegendProps,\n ChartSeriesStyle,\n ChartTooltipEntry,\n ChartTooltipProps,\n ChartValueFormatter,\n} from \"./chart-parts\";\nexport { AreaChart, ComposedChart, LineChart } from \"./core-charts\";\nexport { BarChart } from \"./bar-public\";\nexport type { BarChartProps, BarChartWaterfallProps } from \"./bar-public\";\nexport type {\n AreaChartProps,\n ChartBaseProps,\n ChartReferenceLine,\n ComposedChartProps,\n ComposedSeries,\n LineChartProps,\n} from \"./core-charts\";\nexport { DonutChart, GaugeChart, RadarChart, RadialChart, ScatterChart, Sparkline } from \"./more-charts\";\nexport type {\n DonutChartProps,\n DonutDatum,\n GaugeChartProps,\n RadarChartProps,\n RadialChartProps,\n ScatterChartProps,\n SparklineProps,\n} from \"./more-charts\";\nexport { BarList, CalendarHeatmap, FunnelChart, Tracker } from \"./list-charts\";\nexport type {\n BarListDatum,\n BarListProps,\n CalendarHeatmapDatum,\n CalendarHeatmapProps,\n ChartDay,\n FunnelChartProps,\n FunnelStep,\n TrackerDatum,\n TrackerProps,\n TrackerTone,\n} from \"./list-charts\";\nexport { Heatmap } from \"./report-charts\";\nexport type { HeatmapCell, HeatmapProps, WaterfallChartStep } from \"./report-charts\";\n"]}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The list-shaped charts: BarList, CalendarHeatmap, Tracker, Funnel.
|
|
3
|
+
* Plain HTML on the shared ChartFrame (loading, empty and data-table states) rather than Recharts:
|
|
4
|
+
* each is a list or grid that reads as text and compares like a chart. Logical properties
|
|
5
|
+
* throughout, so the layout mirrors in RTL on its own.
|
|
6
|
+
*/
|
|
7
|
+
import type { Tone } from "../tone.js";
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
import { type CalendarDate } from "@internationalized/date";
|
|
10
|
+
import { type ChartValueFormatter } from "./chart-parts.js";
|
|
11
|
+
type FrameProps = {
|
|
12
|
+
/** What the chart shows, over it; leave it out when a card or a heading already says so. */
|
|
13
|
+
title?: string;
|
|
14
|
+
/** Names the chart when it has no visible `title` (a card's heading already says what it shows). */
|
|
15
|
+
"aria-label"?: string;
|
|
16
|
+
period?: string;
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
/** Shown instead of the plot when there is no data: an `EmptyState size="small"` or text; "No data" by default. */
|
|
19
|
+
emptyState?: React.ReactNode;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* A day as an ISO date ("2026-09-14") or a CalendarDate. An ISO date-time counts as the calendar date
|
|
23
|
+
* written in it, in its own offset: `new Date().toISOString()` gives the UTC date, which near midnight
|
|
24
|
+
* can be the day before or after the reader's. Pass the local date when that matters.
|
|
25
|
+
*/
|
|
26
|
+
export type ChartDay = string | CalendarDate;
|
|
27
|
+
export type BarListDatum = {
|
|
28
|
+
name: string;
|
|
29
|
+
value: number;
|
|
30
|
+
href?: string;
|
|
31
|
+
};
|
|
32
|
+
export type BarListProps = FrameProps & {
|
|
33
|
+
data: readonly BarListDatum[];
|
|
34
|
+
valueFormatter?: ChartValueFormatter;
|
|
35
|
+
/** The rows shown before "Show all": five by default, ten at most. */
|
|
36
|
+
limit?: number;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Named items ranked with a proportional bar behind each label: reads like a list, compares like a
|
|
40
|
+
* chart. 28px rows, the bar in `ds-background-brand-subtle` from the inline start, width relative to the
|
|
41
|
+
* top item; the name in `ds-text` (a link when it has `href`), the value at the end in medium tabular
|
|
42
|
+
* figures. Sorted largest first; the rest behind "Show all".
|
|
43
|
+
*/
|
|
44
|
+
export declare function BarList({ title, "aria-label": ariaLabel, period, data, valueFormatter, limit, isLoading, emptyState }: BarListProps): React.JSX.Element;
|
|
45
|
+
export type CalendarHeatmapDatum = {
|
|
46
|
+
date: ChartDay;
|
|
47
|
+
value: number;
|
|
48
|
+
};
|
|
49
|
+
export type CalendarHeatmapProps = FrameProps & {
|
|
50
|
+
data: readonly CalendarHeatmapDatum[];
|
|
51
|
+
/** The first and last day drawn; the data's range by default. */
|
|
52
|
+
start?: ChartDay;
|
|
53
|
+
end?: ChartDay;
|
|
54
|
+
/** Four ascending lower bounds of the four intensity steps; from the data's quartiles by default. */
|
|
55
|
+
thresholds?: readonly [number, number, number, number];
|
|
56
|
+
valueFormatter?: ChartValueFormatter;
|
|
57
|
+
onDayPress?: (day: {
|
|
58
|
+
date: CalendarDate;
|
|
59
|
+
value: number | undefined;
|
|
60
|
+
}) => void;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Five steps that differ in lightness, not hue alone: none, then the selected brand ramp to `ds-chart-1`.
|
|
64
|
+
* Light runs pale to deep, dark runs deep to bright; the third step is a mix, so no new token.
|
|
65
|
+
* @internal Shared with Heatmap; not exported from the package.
|
|
66
|
+
*/
|
|
67
|
+
export declare const HEAT_LEVELS: readonly ["var(--ds-background-neutral)", "var(--ds-background-selected-hovered)", "var(--ds-background-selected-pressed)", "color-mix(in oklab, var(--ds-chart-1) 65%, var(--ds-background-selected-pressed))", "var(--ds-chart-1)"];
|
|
68
|
+
/** The lower bounds of steps 1–4: the smallest positive value, then the quartiles of the positive values. */
|
|
69
|
+
export declare function heatmapThresholds(values: readonly number[]): [number, number, number, number];
|
|
70
|
+
/** @internal The step (0–4) of a value: 0 for none, zero or less. Shared with Heatmap. */
|
|
71
|
+
export declare const levelOf: (value: number | undefined, thresholds: readonly number[]) => number;
|
|
72
|
+
/**
|
|
73
|
+
* A daily measure as a grid of weekdays (rows) by weeks (columns): weekly and seasonal patterns at a
|
|
74
|
+
* glance. 12px cells, 3px gaps, five steps from `ds-background-neutral` through the brand ramp; weekday
|
|
75
|
+
* labels on alternate rows; a "Less … More" scale under it. Weeks start on the locale's first day. One tab
|
|
76
|
+
* stop: the arrow keys move a day (up, down) or a week (start, end); every cell is named by its date and
|
|
77
|
+
* value, and the active one is spelled out under the grid with its step's range.
|
|
78
|
+
*/
|
|
79
|
+
export declare function CalendarHeatmap({ title, "aria-label": ariaLabel, period, data, start, end, thresholds, valueFormatter, onDayPress, isLoading, emptyState }: CalendarHeatmapProps): React.JSX.Element;
|
|
80
|
+
export type TrackerTone = Extract<Tone, "neutral" | "success" | "warning" | "danger">;
|
|
81
|
+
export type TrackerDatum = {
|
|
82
|
+
date: ChartDay;
|
|
83
|
+
status: string;
|
|
84
|
+
tooltip?: string;
|
|
85
|
+
};
|
|
86
|
+
export type TrackerProps = FrameProps & {
|
|
87
|
+
data: readonly TrackerDatum[];
|
|
88
|
+
/** Each status's tone and the word for it ("Operational", "Outage"); the legend follows this order. */
|
|
89
|
+
statusMap: Readonly<Record<string, {
|
|
90
|
+
tone: TrackerTone;
|
|
91
|
+
label: string;
|
|
92
|
+
}>>;
|
|
93
|
+
/** The result in a sentence ("26 days operational, 1 outage"); the counts per status by default. */
|
|
94
|
+
summary?: string;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* One status per period (day, hour) as a strip of blocks: integration uptime, daily service availability.
|
|
98
|
+
* 28px blocks with 2px gaps in the success, warning and danger icon tokens, `ds-background-neutral-pressed`
|
|
99
|
+
* for no data; the first and last date under it. The summary sentence states the result and the legend
|
|
100
|
+
* names every color, so color repeats the words and never carries them alone. One tab stop: the arrow
|
|
101
|
+
* keys move along the strip, each block named by its date and status.
|
|
102
|
+
*/
|
|
103
|
+
export declare function Tracker({ title, "aria-label": ariaLabel, period, data, statusMap, summary, isLoading, emptyState }: TrackerProps): React.JSX.Element;
|
|
104
|
+
export type FunnelStep = {
|
|
105
|
+
name: string;
|
|
106
|
+
value: number;
|
|
107
|
+
};
|
|
108
|
+
export type FunnelChartProps = FrameProps & {
|
|
109
|
+
/** Truly ordered steps, each a subset of the one before. */
|
|
110
|
+
steps: readonly FunnelStep[];
|
|
111
|
+
valueFormatter?: ChartValueFormatter;
|
|
112
|
+
/** The conversion from the previous step beside each count. On by default. */
|
|
113
|
+
showStepConversion?: boolean;
|
|
114
|
+
/** The first-to-last conversion in the subtitle. On by default. */
|
|
115
|
+
showTotalConversion?: boolean;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* How many items reach each ordered step and where they drop off (search to payment). Bars from a
|
|
119
|
+
* shared inline-start edge, width relative to the first step, `ds-chart-1` fading 12% per step; the step
|
|
120
|
+
* name before the bar, the count after it and the conversion from the previous step in
|
|
121
|
+
* `ds-text-subtlest`. The subtitle states the total conversion. Every figure is text.
|
|
122
|
+
*/
|
|
123
|
+
export declare function FunnelChart({ title, "aria-label": ariaLabel, period, steps, valueFormatter, showStepConversion, showTotalConversion, isLoading, emptyState }: FunnelChartProps): React.JSX.Element;
|
|
124
|
+
export {};
|