@espressif/dashboard-ui-components 1.11.2 → 1.12.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/.claude/rules/dashboard-ui-consumption.md +176 -5
- package/.cursor/rules/dashboard-ui-consumption.mdc +163 -4
- package/CHANGELOG.md +1005 -0
- package/README.md +240 -7
- package/THIRD-PARTY-NOTICES.md +2 -1
- package/dist/alert.props-CcKo49Rb.d.ts +44 -0
- package/dist/animation/index.d.ts +3 -0
- package/dist/animation/index.js +3 -0
- package/dist/avatar.props-2q5BsX-R.d.ts +29 -0
- package/dist/button-BK-DIR_L.d.ts +21 -0
- package/dist/button-BxJ7s6sR.d.ts +76 -0
- package/dist/calendar.props-BtCzuWH1.d.ts +12 -0
- package/dist/carousel/index.d.ts +2 -0
- package/dist/carousel/index.js +2 -0
- package/dist/charts/index.d.ts +5 -0
- package/dist/charts/index.js +9 -0
- package/dist/common/app-logo/app-logo.js +1 -1
- package/dist/common/index.d.ts +9 -20
- package/dist/common/my-account-menu/my-account-menu.js +45 -13
- package/dist/common/profile-card/profile-card.js +3 -2
- package/dist/components/accordion/accordion.js +14 -5
- package/dist/components/accordion/index.d.ts +36 -0
- package/dist/components/accordion/index.js +2 -0
- package/dist/components/advanced-search-box/advanced-search-box.js +8 -2
- package/dist/components/advanced-search-box/index.d.ts +29 -0
- package/dist/components/advanced-search-box/index.js +2 -0
- package/dist/components/alert/alert.js +2 -1
- package/dist/components/alert/index.d.ts +12 -0
- package/dist/components/alert/index.js +2 -0
- package/dist/components/anchored-panel/anchored-panel.js +83 -0
- package/dist/components/anchored-panel/index.d.ts +31 -0
- package/dist/components/anchored-panel/index.js +2 -0
- package/dist/components/animated-containers/index.d.ts +13 -0
- package/dist/components/animated-containers/index.js +2 -0
- package/dist/components/async-multi-select/async-multi-select.js +48 -7
- package/dist/components/async-multi-select/index.d.ts +63 -0
- package/dist/components/async-multi-select/index.js +2 -0
- package/dist/components/avatar/avatar.js +11 -4
- package/dist/components/avatar/index.d.ts +8 -0
- package/dist/components/avatar/index.js +2 -0
- package/dist/components/avatar-group/avatar-group.js +35 -0
- package/dist/components/avatar-group/index.d.ts +31 -0
- package/dist/components/avatar-group/index.js +2 -0
- package/dist/components/badge/index.d.ts +14 -0
- package/dist/components/badge/index.js +2 -0
- package/dist/components/breadcrumb/index.d.ts +21 -0
- package/dist/components/breadcrumb/index.js +2 -0
- package/dist/components/bubble/bubble.js +18 -0
- package/dist/components/bubble/index.d.ts +19 -0
- package/dist/components/bubble/index.js +2 -0
- package/dist/components/button/button.js +87 -25
- package/dist/components/button/flash-button.js +9 -3
- package/dist/components/button/index.d.ts +56 -0
- package/dist/components/button/index.js +6 -0
- package/dist/components/button-group/index.d.ts +16 -0
- package/dist/components/button-group/index.js +2 -0
- package/dist/components/calendar/calendar.js +5 -5
- package/dist/components/calendar/index.d.ts +11 -0
- package/dist/components/calendar/index.js +2 -0
- package/dist/components/card/index.d.ts +11 -0
- package/dist/components/card/index.js +2 -0
- package/dist/components/card-rail/card-rail.js +50 -0
- package/dist/components/card-rail/index.d.ts +30 -0
- package/dist/components/card-rail/index.js +2 -0
- package/dist/components/cards/collapsible-card.js +5 -2
- package/dist/components/cards/index.d.ts +16200 -0
- package/dist/components/cards/index.js +8 -0
- package/dist/components/cards/section-card.js +133 -8
- package/dist/components/cards/simple-card.js +5 -2
- package/dist/components/carousel/carousel.js +137 -49
- package/dist/components/carousel/index.d.ts +130 -0
- package/dist/components/carousel/index.js +2 -0
- package/dist/components/category-card/category-card.js +111 -0
- package/dist/components/category-card/index.d.ts +55 -0
- package/dist/components/category-card/index.js +2 -0
- package/dist/components/chart/area-chart.js +95 -85
- package/dist/components/chart/bar-chart.js +123 -60
- package/dist/components/chart/chart.js +127 -3
- package/dist/components/chart/composed-chart.js +109 -98
- package/dist/components/chart/donut-chart.js +23 -5
- package/dist/components/chart/index.d.ts +732 -0
- package/dist/components/chart/index.js +9 -0
- package/dist/components/chart/line-chart.js +93 -83
- package/dist/components/chart/treemap-chart.js +71 -58
- package/dist/components/check-badge/check-badge.js +25 -0
- package/dist/components/check-badge/index.d.ts +13 -0
- package/dist/components/check-badge/index.js +2 -0
- package/dist/components/checkbox/index.d.ts +8 -0
- package/dist/components/checkbox/index.js +2 -0
- package/dist/components/choice-card/choice-card.js +99 -0
- package/dist/components/choice-card/index.d.ts +41 -0
- package/dist/components/choice-card/index.js +2 -0
- package/dist/components/circular-progress/circular-progress.js +5 -2
- package/dist/components/circular-progress/index.d.ts +23 -0
- package/dist/components/circular-progress/index.js +2 -0
- package/dist/components/code/index.d.ts +40 -0
- package/dist/components/code/index.js +2 -0
- package/dist/components/code-editor/code-editor.js +9 -3
- package/dist/components/code-editor/index.d.ts +82 -0
- package/dist/components/code-editor/index.js +2 -0
- package/dist/components/collapsible/index.d.ts +42 -0
- package/dist/components/collapsible/index.js +2 -0
- package/dist/components/column-panel/column-panel.js +38 -0
- package/dist/components/column-panel/index.d.ts +37 -0
- package/dist/components/column-panel/index.js +3 -0
- package/dist/components/column-panel/use-panel-flag.js +27 -0
- package/dist/components/combobox/index.d.ts +28 -0
- package/dist/components/combobox/index.js +2 -0
- package/dist/components/confirmation-dialog/confirmation-dialog.js +1 -1
- package/dist/components/confirmation-dialog/index.d.ts +40 -0
- package/dist/components/confirmation-dialog/index.js +3 -0
- package/dist/components/content-container/index.d.ts +16 -0
- package/dist/components/content-container/index.js +2 -0
- package/dist/components/copiable-text/index.d.ts +33 -0
- package/dist/components/copiable-text/index.js +2 -0
- package/dist/components/coverflow/_constants/coverflow-poses.js +23 -0
- package/dist/components/coverflow/_constants/coverflow-shapes.js +23 -0
- package/dist/components/coverflow/_hooks/use-coverflow.js +90 -0
- package/dist/components/coverflow/_utils/ring.js +24 -0
- package/dist/components/coverflow/coverflow.js +198 -0
- package/dist/components/coverflow/index.d.ts +105 -0
- package/dist/components/coverflow/index.js +2 -0
- package/dist/components/data-table/data-table.js +9 -2
- package/dist/components/data-table/index.d.ts +120 -0
- package/dist/components/data-table/index.js +3 -0
- package/dist/components/date-picker/date-picker.js +5 -2
- package/dist/components/date-picker/index.d.ts +50 -0
- package/dist/components/date-picker/index.js +2 -0
- package/dist/components/date-range-picker/date-range-picker.js +11 -2
- package/dist/components/date-range-picker/index.d.ts +100 -0
- package/dist/components/date-range-picker/index.js +3 -0
- package/dist/components/date-time-picker/date-time-picker.js +5 -2
- package/dist/components/date-time-picker/index.d.ts +79 -0
- package/dist/components/date-time-picker/index.js +2 -0
- package/dist/components/device-icon/index.d.ts +17 -0
- package/dist/components/device-icon/index.js +2 -0
- package/dist/components/dialog/index.d.ts +38 -0
- package/dist/components/dialog/index.js +2 -0
- package/dist/components/dropdown-menu/index.d.ts +57 -0
- package/dist/components/dropdown-menu/index.js +2 -0
- package/dist/components/dynamic-list/dynamic-list.js +4 -4
- package/dist/components/dynamic-list/index.d.ts +74 -0
- package/dist/components/dynamic-list/index.js +2 -0
- package/dist/components/error-display/index.d.ts +17 -0
- package/dist/components/error-display/index.js +3 -0
- package/dist/components/expandable-text/expandable-text-overlay.js +78 -0
- package/dist/components/expandable-text/expandable-text.js +73 -0
- package/dist/components/expandable-text/index.d.ts +39 -0
- package/dist/components/expandable-text/index.js +2 -0
- package/dist/components/expandable-text/use-clamped.js +23 -0
- package/dist/components/facet-filters/_hooks/use-filter-group.js +51 -0
- package/dist/components/facet-filters/active-filters.js +31 -0
- package/dist/components/facet-filters/filter-group.js +110 -0
- package/dist/components/facet-filters/filters-panel.js +59 -0
- package/dist/components/facet-filters/filters-pill.js +40 -0
- package/dist/components/facet-filters/index.d.ts +104 -0
- package/dist/components/facet-filters/index.js +6 -0
- package/dist/components/facet-filters/use-filters-collapsed.js +21 -0
- package/dist/components/feature-grid/feature-grid.js +115 -0
- package/dist/components/feature-grid/index.d.ts +53 -0
- package/dist/components/feature-grid/index.js +2 -0
- package/dist/components/file-input/file-input.js +9 -3
- package/dist/components/file-input/index.d.ts +78 -0
- package/dist/components/file-input/index.js +2 -0
- package/dist/components/file-upload/file-upload.js +10 -5
- package/dist/components/file-upload/index.d.ts +38 -0
- package/dist/components/file-upload/index.js +2 -0
- package/dist/components/filters-bar/filters-bar.js +5 -1
- package/dist/components/filters-bar/index.d.ts +26 -0
- package/dist/components/filters-bar/index.js +2 -0
- package/dist/components/flip-card/flip-card.js +147 -0
- package/dist/components/flip-card/index.d.ts +43 -0
- package/dist/components/flip-card/index.js +2 -0
- package/dist/components/floating-window/_hooks/use-drag-move.js +76 -0
- package/dist/components/floating-window/floating-window.js +97 -0
- package/dist/components/floating-window/index.d.ts +45 -0
- package/dist/components/floating-window/index.js +2 -0
- package/dist/components/form/index.d.ts +28 -0
- package/dist/components/form/index.js +2 -0
- package/dist/components/fullscreen-dialog/fullscreen-dialog.js +6 -2
- package/dist/components/fullscreen-dialog/index.d.ts +38 -0
- package/dist/components/fullscreen-dialog/index.js +2 -0
- package/dist/components/horizontal-stepper/horizontal-stepper.js +122 -0
- package/dist/components/horizontal-stepper/index.d.ts +70 -0
- package/dist/components/horizontal-stepper/index.js +2 -0
- package/dist/components/icon-avatar/index.d.ts +9 -0
- package/dist/components/icon-avatar/index.js +2 -0
- package/dist/components/icon-text-action-card/icon-text-action-card.js +9 -5
- package/dist/components/icon-text-action-card/index.d.ts +11 -0
- package/dist/components/icon-text-action-card/index.js +2 -0
- package/dist/components/identicon/identicon.js +33 -0
- package/dist/components/identicon/index.d.ts +26 -0
- package/dist/components/identicon/index.js +2 -0
- package/dist/components/illustration/index.d.ts +37 -0
- package/dist/components/illustration/index.js +3 -0
- package/dist/components/index.d.ts +177 -19529
- package/dist/components/index.js +61 -10
- package/dist/components/input/index.d.ts +15 -0
- package/dist/components/input/index.js +3 -0
- package/dist/components/input-group/index.d.ts +35 -0
- package/dist/components/input-group/index.js +2 -0
- package/dist/components/input-group/input-group.js +41 -0
- package/dist/components/input-otp/index.d.ts +63 -0
- package/dist/components/input-otp/index.js +2 -0
- package/dist/components/key-value-manager/index.d.ts +63 -0
- package/dist/components/key-value-manager/index.js +2 -0
- package/dist/components/key-value-manager/key-value-manager-table.js +7 -5
- package/dist/components/label/index.d.ts +8 -0
- package/dist/components/label/index.js +2 -0
- package/dist/components/link/index.d.ts +33 -0
- package/dist/components/link/index.js +2 -0
- package/dist/components/list/index.d.ts +9 -0
- package/dist/components/list/index.js +3 -0
- package/dist/components/list/list-item.utils.js +1 -1
- package/dist/components/list/list.js +3 -1
- package/dist/components/list-details/index.d.ts +51 -0
- package/dist/components/list-details/index.js +2 -0
- package/dist/components/list-details/list-details.js +5 -2
- package/dist/components/lottie-animation-container/index.d.ts +10 -0
- package/dist/components/lottie-animation-container/index.js +2 -0
- package/dist/components/lottie-animation-container/lottie-animation-container.js +22 -3
- package/dist/components/lottie-animations/index.d.ts +8 -0
- package/dist/components/lottie-animations/index.js +2 -0
- package/dist/components/markdown-content/index.d.ts +32 -0
- package/dist/components/markdown-content/index.js +2 -0
- package/dist/components/media-card/index.d.ts +125 -0
- package/dist/components/media-card/index.js +4 -0
- package/dist/components/media-card/media-card-image.js +59 -0
- package/dist/components/media-card/media-card-reveal.js +76 -0
- package/dist/components/media-card/media-card.classes.js +37 -0
- package/dist/components/media-card/media-card.js +91 -0
- package/dist/components/media-stage/index.d.ts +41 -0
- package/dist/components/media-stage/index.js +2 -0
- package/dist/components/media-stage/media-stage.js +48 -0
- package/dist/components/menu/index.d.ts +14 -0
- package/dist/components/menu/index.js +2 -0
- package/dist/components/message-scroller/_hooks/use-follow-bottom.js +85 -0
- package/dist/components/message-scroller/index.d.ts +29 -0
- package/dist/components/message-scroller/index.js +2 -0
- package/dist/components/message-scroller/message-scroller.js +65 -0
- package/dist/components/mini-bar-chart/index.d.ts +40 -0
- package/dist/components/mini-bar-chart/index.js +2 -0
- package/dist/components/mini-bar-chart/mini-bar-chart.js +93 -0
- package/dist/components/monospace-content/index.d.ts +43 -0
- package/dist/components/monospace-content/index.js +2 -0
- package/dist/components/monospace-content/monospace-content.js +1 -1
- package/dist/components/nav-bar/index.d.ts +148 -0
- package/dist/components/nav-bar/index.js +2 -0
- package/dist/components/nav-bar/nav-bar-details-panel.js +158 -44
- package/dist/components/nav-bar/nav-bar-mobile-menu.js +93 -27
- package/dist/components/nav-bar/nav-bar.js +256 -138
- package/dist/components/nav-bar/use-nav-bar-hover-details.js +80 -0
- package/dist/components/nav-bar/use-nav-bar-overflow.js +5 -5
- package/dist/components/notice-strip/index.d.ts +32 -0
- package/dist/components/notice-strip/index.js +2 -0
- package/dist/components/notice-strip/notice-strip.js +57 -0
- package/dist/components/option-card-group/index.d.ts +50 -0
- package/dist/components/option-card-group/index.js +2 -0
- package/dist/components/option-card-group/option-card-group.js +76 -0
- package/dist/components/overflow-badge-list/index.d.ts +63 -0
- package/dist/components/overflow-badge-list/index.js +2 -0
- package/dist/components/overflow-badge-list/overflow-badge-list.js +78 -19
- package/dist/components/page-banner/index.d.ts +33 -0
- package/dist/components/page-banner/index.js +2 -0
- package/dist/components/page-banner/page-banner.js +56 -0
- package/dist/components/page-container/index.d.ts +20 -0
- package/dist/components/page-container/index.js +3 -0
- package/dist/components/page-container/page-container.js +5 -5
- package/dist/components/pagination/index.d.ts +31 -0
- package/dist/components/pagination/index.js +3 -0
- package/dist/components/popover/index.d.ts +60 -0
- package/dist/components/popover/index.js +3 -0
- package/dist/components/preview-card/index.d.ts +24 -0
- package/dist/components/preview-card/index.js +2 -0
- package/dist/components/progress-bar/index.d.ts +32 -0
- package/dist/components/progress-bar/index.js +2 -0
- package/dist/components/progress-bar/progress-bar.js +22 -6
- package/dist/components/radio-group/index.d.ts +24 -0
- package/dist/components/radio-group/index.js +2 -0
- package/dist/components/rank-numeral/index.d.ts +30 -0
- package/dist/components/rank-numeral/index.js +2 -0
- package/dist/components/rank-numeral/rank-numeral.js +26 -0
- package/dist/components/reaction-button/index.d.ts +32 -0
- package/dist/components/reaction-button/index.js +2 -0
- package/dist/components/reaction-button/reaction-button.js +50 -0
- package/dist/components/readout/index.d.ts +31 -0
- package/dist/components/readout/index.js +2 -0
- package/dist/components/readout/readout.js +63 -0
- package/dist/components/requirement-list/index.d.ts +52 -0
- package/dist/components/requirement-list/index.js +2 -0
- package/dist/components/requirement-list/requirement-list.js +29 -8
- package/dist/components/resizable/index.d.ts +31 -0
- package/dist/components/resizable/index.js +4 -0
- package/dist/components/resizable/resizable-group.js +23 -0
- package/dist/components/resizable/resizable-panel.js +28 -0
- package/dist/components/resizable/resizable-separator.js +24 -0
- package/dist/components/reveal/index.d.ts +23 -0
- package/dist/components/reveal/index.js +2 -0
- package/dist/components/reveal/reveal.js +24 -0
- package/dist/components/scroll-area/index.d.ts +27 -0
- package/dist/components/scroll-area/index.js +2 -0
- package/dist/components/scrollable-sections/index.d.ts +58 -0
- package/dist/components/scrollable-sections/index.js +2 -0
- package/dist/components/scrollable-sections/scrollable-sections.js +11 -3
- package/dist/components/search-box/index.d.ts +32 -0
- package/dist/components/search-box/index.js +2 -0
- package/dist/components/search-box/search-box.js +18 -3
- package/dist/components/search-field-shell.js +1 -1
- package/dist/components/select/index.d.ts +44 -0
- package/dist/components/select/index.js +2 -0
- package/dist/components/selectable-card-list/checkbox-card-list.js +5 -3
- package/dist/components/selectable-card-list/index.d.ts +76 -0
- package/dist/components/selectable-card-list/index.js +2 -0
- package/dist/components/selectable-card-list/radio-card-list.js +12 -6
- package/dist/components/selectable-card-list/selectable-card-list-shared.js +24 -12
- package/dist/components/selectable-card-list/selectable-card-list.js +12 -3
- package/dist/components/separator/index.d.ts +24 -0
- package/dist/components/separator/index.js +2 -0
- package/dist/components/share-menu/index.d.ts +55 -0
- package/dist/components/share-menu/index.js +2 -0
- package/dist/components/share-menu/share-marks.js +31 -0
- package/dist/components/share-menu/share-menu.js +140 -0
- package/dist/components/share-menu/share-urls.js +15 -0
- package/dist/components/sheet/index.d.ts +41 -0
- package/dist/components/sheet/index.js +2 -0
- package/dist/components/showcase-card/index.d.ts +53 -0
- package/dist/components/showcase-card/index.js +2 -0
- package/dist/components/showcase-card/showcase-card.js +75 -0
- package/dist/components/sidebar/index.d.ts +109 -0
- package/dist/components/sidebar/index.js +4 -0
- package/dist/components/sidebar/sidebar.js +56 -40
- package/dist/components/simple-clickable-card/index.d.ts +11 -0
- package/dist/components/simple-clickable-card/index.js +2 -0
- package/dist/components/simple-clickable-card/simple-clickable-card-shared.js +2 -2
- package/dist/components/simple-clickable-card/simple-clickable-card.js +5 -2
- package/dist/components/simple-info-card/index.d.ts +25 -0
- package/dist/components/simple-info-card/index.js +2 -0
- package/dist/components/simple-info-card/simple-info-card.js +6 -3
- package/dist/components/simple-list/index.d.ts +63 -0
- package/dist/components/simple-list/index.js +2 -0
- package/dist/components/simple-list/simple-list.js +3 -1
- package/dist/components/simple-paginated-list/index.d.ts +20 -0
- package/dist/components/simple-paginated-list/index.js +2 -0
- package/dist/components/simplified-date/index.d.ts +18 -0
- package/dist/components/simplified-date/index.js +2 -0
- package/dist/components/skeleton/index.d.ts +5 -0
- package/dist/components/skeleton/index.js +2 -0
- package/dist/components/skeletons/index.d.ts +11 -0
- package/dist/components/skeletons/index.js +2 -0
- package/dist/components/sort-menu/index.d.ts +34 -0
- package/dist/components/sort-menu/index.js +2 -0
- package/dist/components/sort-menu/sort-menu.js +39 -0
- package/dist/components/spinner/index.d.ts +15 -0
- package/dist/components/spinner/index.js +2 -0
- package/dist/components/stat-card/index.d.ts +43 -0
- package/dist/components/stat-card/index.js +2 -0
- package/dist/components/stat-card/stat-card.js +31 -12
- package/dist/components/status-badge/index.d.ts +24 -0
- package/dist/components/status-badge/index.js +2 -0
- package/dist/components/status-badge/status-badge.js +3 -2
- package/dist/components/status-card-list/index.d.ts +24 -0
- package/dist/components/status-card-list/index.js +2 -0
- package/dist/components/status-card-list/status-card-list.js +8 -4
- package/dist/components/step-tabs/index.d.ts +94 -0
- package/dist/components/step-tabs/index.js +2 -0
- package/dist/components/step-tabs/step-tabs.js +202 -0
- package/dist/components/style-scope/index.d.ts +32 -0
- package/dist/components/style-scope/index.js +2 -0
- package/dist/components/style-scope/style-scope.js +49 -0
- package/dist/components/switch/index.d.ts +15 -0
- package/dist/components/switch/index.js +2 -0
- package/dist/components/table/index.d.ts +18 -0
- package/dist/components/table/index.js +2 -0
- package/dist/components/tabs/index.d.ts +103 -0
- package/dist/components/tabs/index.js +2 -0
- package/dist/components/tag/index.d.ts +31 -0
- package/dist/components/tag/index.js +2 -0
- package/dist/components/tag/tag.js +79 -28
- package/dist/components/tag-input/index.d.ts +36 -0
- package/dist/components/tag-input/index.js +2 -0
- package/dist/components/tag-input/tag-input.js +10 -4
- package/dist/components/text-effects/index.d.ts +53 -0
- package/dist/components/text-effects/index.js +6 -0
- package/dist/components/textarea/index.d.ts +16 -0
- package/dist/components/textarea/index.js +2 -0
- package/dist/components/thumbnail-strip/index.d.ts +42 -0
- package/dist/components/thumbnail-strip/index.js +2 -0
- package/dist/components/thumbnail-strip/thumbnail-strip.js +124 -0
- package/dist/components/thumbnail-strip/use-scroll-edges.js +41 -0
- package/dist/components/time-picker/index.d.ts +13 -0
- package/dist/components/time-picker/index.js +2 -0
- package/dist/components/timeline/index.d.ts +39 -0
- package/dist/components/timeline/index.js +2 -0
- package/dist/components/timeline/timeline.js +85 -0
- package/dist/components/toast/index.d.ts +56 -0
- package/dist/components/toast/index.js +2 -0
- package/dist/components/toast/toast.js +42 -32
- package/dist/components/togglable-items-list/index.d.ts +28 -0
- package/dist/components/togglable-items-list/index.js +2 -0
- package/dist/components/toggle-group/index.d.ts +35 -0
- package/dist/components/toggle-group/index.js +2 -0
- package/dist/components/toolbar/index.d.ts +58 -0
- package/dist/components/toolbar/index.js +3 -0
- package/dist/components/toolbar/toolbar-button.js +40 -0
- package/dist/components/toolbar/toolbar.js +56 -0
- package/dist/components/tooltip/index.d.ts +29 -0
- package/dist/components/tooltip/index.js +3 -0
- package/dist/components/tooltip/tooltip.js +12 -2
- package/dist/components/transfer-list/index.d.ts +36 -0
- package/dist/components/transfer-list/index.js +2 -0
- package/dist/components/transfer-list/transfer-list.js +1 -1
- package/dist/components/truncated-line-with-tooltip/index.d.ts +22 -0
- package/dist/components/truncated-line-with-tooltip/index.js +2 -0
- package/dist/components/truncated-line-with-tooltip/truncated-line-with-tooltip.js +26 -8
- package/dist/components/typography/index.d.ts +19 -0
- package/dist/components/typography/index.js +3 -0
- package/dist/components/use-mobile/index.d.ts +3 -0
- package/dist/components/use-mobile/index.js +2 -0
- package/dist/components/user-type-badge/index.d.ts +39 -0
- package/dist/components/user-type-badge/index.js +3 -0
- package/dist/components/user-type-badge/user-type-badge.js +2 -1
- package/dist/components/vertical-stepper/index.d.ts +7 -0
- package/dist/components/vertical-stepper/index.js +2 -0
- package/dist/components/vertical-stepper/vertical-stepper.js +33 -6
- package/dist/components/view-toggle/index.d.ts +38 -0
- package/dist/components/view-toggle/index.js +2 -0
- package/dist/components/view-toggle/view-toggle.js +56 -0
- package/dist/core/animate-ui/components/animate/code.js +83 -9
- package/dist/core/animate-ui/components/animate/tabs.js +234 -19
- package/dist/core/animate-ui/components/animate/tooltip.js +10 -2
- package/dist/core/animate-ui/components/base/preview-card.js +20 -3
- package/dist/core/animate-ui/components/buttons/copy.js +12 -6
- package/dist/core/animate-ui/components/radix/dialog.js +17 -3
- package/dist/core/animate-ui/components/radix/dropdown-menu.js +26 -9
- package/dist/core/animate-ui/components/radix/sheet.js +20 -4
- package/dist/core/animate-ui/components/radix/sidebar.js +9 -9
- package/dist/core/animate-ui/components/radix/toggle-group.js +103 -13
- package/dist/core/animate-ui/components/radix/toggle.js +5 -5
- package/dist/core/animate-ui/primitives/animate/code-block.js +31 -4
- package/dist/core/animate-ui/primitives/animate/shiki-highlighter.js +5 -2
- package/dist/core/animate-ui/primitives/animate/tabs.js +7 -4
- package/dist/core/animate-ui/primitives/animate/tooltip.js +10 -3
- package/dist/core/animate-ui/primitives/base/preview-card.js +2 -2
- package/dist/core/animate-ui/primitives/base/progress.js +1 -1
- package/dist/core/animate-ui/primitives/base/radio.js +3 -3
- package/dist/core/animate-ui/primitives/effects/highlight.js +1 -0
- package/dist/core/animate-ui/primitives/radix/accordion.js +1 -1
- package/dist/core/animate-ui/primitives/radix/dialog.js +6 -3
- package/dist/core/animate-ui/primitives/radix/dropdown-menu.js +2 -2
- package/dist/core/animate-ui/primitives/radix/sheet.js +7 -3
- package/dist/core/animate-ui/primitives/radix/switch.js +2 -2
- package/dist/core/animate-ui/primitives/radix/toggle-group.js +2 -2
- package/dist/core/badge.js +5 -2
- package/dist/core/breadcrumb.js +1 -1
- package/dist/core/button/button.js +8 -8
- package/dist/core/button/craft-button.js +8 -2
- package/dist/core/button.js +17 -7
- package/dist/core/card.js +23 -5
- package/dist/core/combobox/combobox.js +8 -2
- package/dist/core/command.js +3 -3
- package/dist/core/form.js +1 -1
- package/dist/core/hooks/use-nested-layer-press-guard.js +46 -0
- package/dist/core/hooks/use-on-screen.js +33 -0
- package/dist/core/hooks/use-prefers-reduced-motion.js +19 -0
- package/dist/core/hooks/use-scroll-overflow.js +20 -0
- package/dist/core/index.d.ts +30 -5
- package/dist/core/index.js +5 -2
- package/dist/core/input/input-password.js +13 -9
- package/dist/core/input/input.js +38 -12
- package/dist/core/input-otp/input-otp.js +9 -5
- package/dist/core/popover-group.js +48 -0
- package/dist/core/popover-hover.js +127 -0
- package/dist/core/popover.js +75 -6
- package/dist/core/select.js +35 -20
- package/dist/core/table.js +5 -3
- package/dist/core/textarea/textarea.js +11 -3
- package/dist/data-table/index.d.ts +4 -0
- package/dist/data-table/index.js +3 -0
- package/dist/date/index.d.ts +11 -0
- package/dist/date/index.js +7 -0
- package/dist/forms/index.d.ts +4 -0
- package/dist/forms/index.js +2 -0
- package/dist/icon-avatar.props-RYtw2eSW.d.ts +31 -0
- package/dist/icon-text-action-card.props-B2ggncUK.d.ts +53 -0
- package/dist/index.d.ts +169 -15
- package/dist/index.js +63 -10
- package/dist/input-CYI1hhGc.d.ts +38 -0
- package/dist/layouts/index.d.ts +132 -8
- package/dist/layouts/index.js +3 -1
- package/dist/layouts/minimal-workspace-layout/minimal-workspace-layout-context.js +5 -0
- package/dist/layouts/minimal-workspace-layout/minimal-workspace-layout.js +404 -0
- package/dist/layouts/minimal-workspace-layout/rail-logo.js +90 -0
- package/dist/layouts/minimal-workspace-layout/sidebar-trigger.js +42 -0
- package/dist/layouts/shared/account-menu-props.js +21 -0
- package/dist/layouts/shared/footer-branding.js +34 -0
- package/dist/layouts/shared/sidebar-logo.js +59 -0
- package/dist/layouts/workspace-layout/account-menu/account-menu.js +9 -3
- package/dist/layouts/workspace-layout/footer/footer.js +1 -1
- package/dist/layouts/workspace-layout/header/header.js +1 -1
- package/dist/layouts/workspace-layout/workspace-layout.js +28 -80
- package/dist/{list.props-x1j3CbcF.d.ts → list.props-DP_xPTqU.d.ts} +2 -1
- package/dist/markdown/index.d.ts +11 -0
- package/dist/markdown/index.js +5 -0
- package/dist/my-account-menu.props-C7DK71WC.d.ts +67 -0
- package/dist/page-container.props-JutTvKFq.d.ts +48 -0
- package/dist/resizable.props-RxFY5tm_.d.ts +44 -0
- package/dist/section-card-B7c5uc08.d.ts +84 -0
- package/dist/simple-clickable-card.props-BrPCw7CR.d.ts +51 -0
- package/dist/slot-DGErA9zi.d.ts +10 -0
- package/dist/status-badge.props-lKlEOfRt.d.ts +32 -0
- package/dist/style-axes-DSQ2DGc5.d.ts +133 -0
- package/dist/toast/index.d.ts +6 -0
- package/dist/toast/index.js +2 -0
- package/dist/tooltip-C0bYa8a3.d.ts +37 -0
- package/dist/{types-DtUxK-Am.d.ts → types-CkXflqg7.d.ts} +31 -1
- package/dist/utils/cn.js +6 -1
- package/dist/utils/color.js +35 -10
- package/dist/utils/index.d.ts +18 -2
- package/dist/utils/index.js +4 -1
- package/dist/utils/silver-shine.js +16 -1
- package/dist/utils/style-axes.js +227 -0
- package/dist/utils/variant.js +104 -8
- package/dist/utils/view-transition.js +21 -0
- package/dist/variant-D81RhpbR.d.ts +104 -0
- package/dist/vertical-stepper.props-BXYcbW70.d.ts +29 -0
- package/package.json +52 -6
- package/src/styles/colors.css +100 -4
- package/src/styles/globals.css +8 -131
- package/src/styles/style-axes.css +21 -0
- package/src/styles/theme.css +696 -0
- package/dist/app-logo.props-Ct7QBdTd.d.ts +0 -40
- package/dist/popover-ByLD3-Qv.d.ts +0 -204
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChartContainer, ChartLegend, ChartLegendContent, ChartLegendList, ChartStyle, ChartTooltip, ChartTooltipContent } from "./chart.js";
|
|
2
|
+
import { CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, DEFAULT_CHART_SERIES_COLORS, buildSeriesChartConfig, getChartSeriesColor } from "./chart-colors.js";
|
|
3
|
+
import { BarChart } from "./bar-chart.js";
|
|
4
|
+
import { AreaChart } from "./area-chart.js";
|
|
5
|
+
import { LineChart } from "./line-chart.js";
|
|
6
|
+
import { ComposedChart } from "./composed-chart.js";
|
|
7
|
+
import { DonutChart } from "./donut-chart.js";
|
|
8
|
+
import { TreemapChart } from "./treemap-chart.js";
|
|
9
|
+
export { AreaChart, BarChart, CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, ChartContainer, ChartLegend, ChartLegendContent, ChartLegendList, ChartStyle, ChartTooltip, ChartTooltipContent, ComposedChart, DEFAULT_CHART_SERIES_COLORS, DonutChart, LineChart, TreemapChart, buildSeriesChartConfig, getChartSeriesColor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from "../../utils/cn.js";
|
|
2
|
-
import { ChartContainer, ChartLegend, ChartLegendContent, ChartTooltip, ChartTooltipContent } from "./chart.js";
|
|
2
|
+
import { ChartContainer, ChartLegend, ChartLegendContent, ChartLegendFrame, ChartTooltip, ChartTooltipContent, buildSeriesLegendItems, renderChartLegendList, useChartScope } from "./chart.js";
|
|
3
3
|
import { buildAutoSeriesConfig, coerceSeriesValuesToNumbers, inferCategoryKey } from "./chart-series-data.js";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -15,7 +15,8 @@ function resolveStrokeWidth(width) {
|
|
|
15
15
|
if (typeof width === "number") return width;
|
|
16
16
|
return STROKE_WIDTH_MAP[width];
|
|
17
17
|
}
|
|
18
|
-
var LineChart$1 = React$1.forwardRef(function LineChart$2({ data, config: explicitConfig, categoryKey, stacked = false, curveType = "monotone", strokeWidth, showDots = false, showActiveDot = true, gradientStroke: _gradientStroke = true, gradientGlow = true, showTooltip = true, showLegend = false, showGrid = false, hideXAxis = false, hideYAxis = false, xAxisTickFormatter, yAxisTickFormatter, labelFormatter, className, margin }, ref) {
|
|
18
|
+
var LineChart$1 = React$1.forwardRef(function LineChart$2({ data, config: explicitConfig, tooltipRadius, tooltipElevation, categoryKey, stacked = false, curveType = "monotone", strokeWidth, showDots = false, showActiveDot = true, gradientStroke: _gradientStroke = true, gradientGlow = true, showTooltip = true, showLegend = false, showGrid = false, hideXAxis = false, hideYAxis = false, xAxisTickFormatter, yAxisTickFormatter, labelFormatter, className, margin, ...legendOptions }, ref) {
|
|
19
|
+
const scope = useChartScope();
|
|
19
20
|
const resolvedCategoryKey = React$1.useMemo(() => categoryKey ?? inferCategoryKey(data[0]), [categoryKey, data]);
|
|
20
21
|
const config = React$1.useMemo(() => buildAutoSeriesConfig(data, resolvedCategoryKey, explicitConfig), [
|
|
21
22
|
data,
|
|
@@ -47,88 +48,97 @@ var LineChart$1 = React$1.forwardRef(function LineChart$2({ data, config: explic
|
|
|
47
48
|
const glowOrderKeys = React$1.useMemo(() => stacked ? [...seriesKeys].reverse() : seriesKeys, [seriesKeys, stacked]);
|
|
48
49
|
const idPrefix = `line-${React$1.useId().replace(/:/g, "")}`;
|
|
49
50
|
const glowGradientId = (key) => `${idPrefix}-glow-${key}`;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
children: /* @__PURE__ */
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
dataKey: key,
|
|
116
|
-
stroke: `var(--color-${key})`,
|
|
117
|
-
strokeWidth: resolvedStrokeWidth,
|
|
118
|
-
dot: showDots ? {
|
|
119
|
-
r: 3,
|
|
51
|
+
const listLegend = renderChartLegendList(showLegend, legendOptions, buildSeriesLegendItems(seriesKeys, config, data));
|
|
52
|
+
return /* @__PURE__ */ jsx(ChartLegendFrame, {
|
|
53
|
+
chartId: scope.chartId,
|
|
54
|
+
legend: listLegend,
|
|
55
|
+
children: /* @__PURE__ */ jsx(ChartContainer, {
|
|
56
|
+
ref,
|
|
57
|
+
id: scope.id,
|
|
58
|
+
config,
|
|
59
|
+
className: cn("w-full", className),
|
|
60
|
+
children: /* @__PURE__ */ jsxs(LineChart, {
|
|
61
|
+
accessibilityLayer: true,
|
|
62
|
+
data: processedData,
|
|
63
|
+
margin,
|
|
64
|
+
children: [
|
|
65
|
+
gradientGlow && /* @__PURE__ */ jsx("defs", { children: seriesKeys.map((key) => /* @__PURE__ */ jsxs("linearGradient", {
|
|
66
|
+
id: glowGradientId(key),
|
|
67
|
+
x1: "0",
|
|
68
|
+
y1: "0",
|
|
69
|
+
x2: "0",
|
|
70
|
+
y2: "1",
|
|
71
|
+
children: [/* @__PURE__ */ jsx("stop", {
|
|
72
|
+
offset: "0%",
|
|
73
|
+
stopColor: `var(--color-${key})`,
|
|
74
|
+
stopOpacity: .18
|
|
75
|
+
}), /* @__PURE__ */ jsx("stop", {
|
|
76
|
+
offset: "100%",
|
|
77
|
+
stopColor: `var(--color-${key})`,
|
|
78
|
+
stopOpacity: 0
|
|
79
|
+
})]
|
|
80
|
+
}, key)) }),
|
|
81
|
+
showGrid && /* @__PURE__ */ jsx(CartesianGrid, { vertical: false }),
|
|
82
|
+
/* @__PURE__ */ jsx(XAxis, {
|
|
83
|
+
type: "category",
|
|
84
|
+
dataKey: resolvedCategoryKey,
|
|
85
|
+
hide: hideXAxis,
|
|
86
|
+
tickLine: false,
|
|
87
|
+
axisLine: false,
|
|
88
|
+
tickMargin: 8,
|
|
89
|
+
tickFormatter: xAxisTickFormatter
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ jsx(YAxis, {
|
|
92
|
+
type: "number",
|
|
93
|
+
hide: hideYAxis,
|
|
94
|
+
tickLine: false,
|
|
95
|
+
axisLine: false,
|
|
96
|
+
tickMargin: 8,
|
|
97
|
+
tickFormatter: yAxisTickFormatter
|
|
98
|
+
}),
|
|
99
|
+
showTooltip && /* @__PURE__ */ jsx(ChartTooltip, {
|
|
100
|
+
cursor: {
|
|
101
|
+
stroke: "var(--color-border)",
|
|
102
|
+
strokeWidth: 1
|
|
103
|
+
},
|
|
104
|
+
labelFormatter,
|
|
105
|
+
content: /* @__PURE__ */ jsx(ChartTooltipContent, {
|
|
106
|
+
radius: tooltipRadius,
|
|
107
|
+
elevation: tooltipElevation
|
|
108
|
+
})
|
|
109
|
+
}),
|
|
110
|
+
showLegend && !listLegend && /* @__PURE__ */ jsx(ChartLegend, { content: /* @__PURE__ */ jsx(ChartLegendContent, {}) }),
|
|
111
|
+
gradientGlow && glowOrderKeys.map((key) => /* @__PURE__ */ jsx(Area, {
|
|
112
|
+
type: curveType,
|
|
113
|
+
dataKey: key,
|
|
114
|
+
fill: `url(#${glowGradientId(key)})`,
|
|
115
|
+
stroke: "transparent",
|
|
120
116
|
strokeWidth: 0,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
117
|
+
activeDot: false,
|
|
118
|
+
isAnimationActive: true,
|
|
119
|
+
legendType: "none",
|
|
120
|
+
tooltipType: "none"
|
|
121
|
+
}, `glow-${key}`)),
|
|
122
|
+
seriesKeys.map((key) => /* @__PURE__ */ jsx(Line, {
|
|
123
|
+
type: curveType,
|
|
124
|
+
dataKey: key,
|
|
125
|
+
stroke: `var(--color-${key})`,
|
|
126
|
+
strokeWidth: resolvedStrokeWidth,
|
|
127
|
+
dot: showDots ? {
|
|
128
|
+
r: 3,
|
|
129
|
+
strokeWidth: 0,
|
|
130
|
+
fill: `var(--color-${key})`
|
|
131
|
+
} : false,
|
|
132
|
+
activeDot: showActiveDot ? {
|
|
133
|
+
r: 4,
|
|
134
|
+
strokeWidth: 2,
|
|
135
|
+
stroke: "var(--color-background)",
|
|
136
|
+
fill: `var(--color-${key})`
|
|
137
|
+
} : false,
|
|
138
|
+
isAnimationActive: true
|
|
139
|
+
}, key))
|
|
140
|
+
]
|
|
141
|
+
})
|
|
132
142
|
})
|
|
133
143
|
});
|
|
134
144
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../utils/cn.js";
|
|
2
2
|
import { isPresetColor } from "../../utils/color.js";
|
|
3
|
-
import { ChartContainer, ChartTooltip, ChartTooltipContent } from "./chart.js";
|
|
3
|
+
import { ChartContainer, ChartTooltip, ChartTooltipContent, renderChartLegendList } from "./chart.js";
|
|
4
4
|
import { buildSeriesChartConfig } from "./chart-colors.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -185,7 +185,7 @@ function TreemapLegend({ config, order, colorByKey }) {
|
|
|
185
185
|
})
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
var TreemapChart = React$1.forwardRef(function TreemapChart({ data, config: explicitConfig, color, maxDataPoints, showTooltip = true, showLegend = false, gradient = true, aspectRatio = 4 / 3, valueFormatter = defaultValueFormatter, labelStyle, className, isAnimationActive = true, animationDuration = DEFAULT_TREEMAP_ANIMATION_DURATION_MS, animationEasing = DEFAULT_TREEMAP_ANIMATION_EASING, animationBegin = 0, isUpdateAnimationActive }, ref) {
|
|
188
|
+
var TreemapChart = React$1.forwardRef(function TreemapChart({ data, config: explicitConfig, tooltipRadius, tooltipElevation, color, maxDataPoints, showTooltip = true, showLegend = false, gradient = true, aspectRatio = 4 / 3, valueFormatter = defaultValueFormatter, labelStyle, className, isAnimationActive = true, animationDuration = DEFAULT_TREEMAP_ANIMATION_DURATION_MS, animationEasing = DEFAULT_TREEMAP_ANIMATION_EASING, animationBegin = 0, isUpdateAnimationActive, ...legendOptions }, ref) {
|
|
189
189
|
const resolvedUpdateAnimationActive = isUpdateAnimationActive ?? isAnimationActive;
|
|
190
190
|
const gradientScope = React$1.useId().replace(/:/g, "");
|
|
191
191
|
const resolvedLabelStyle = React$1.useMemo(() => ({
|
|
@@ -227,66 +227,79 @@ var TreemapChart = React$1.forwardRef(function TreemapChart({ data, config: expl
|
|
|
227
227
|
name: d.key,
|
|
228
228
|
fill: colorByKey.get(d.key)
|
|
229
229
|
})), [sortedData, colorByKey]);
|
|
230
|
+
const listLegend = renderChartLegendList(showLegend, legendOptions, sortedData.filter((d) => d.key in config).map((d) => ({
|
|
231
|
+
key: d.key,
|
|
232
|
+
label: config[d.key]?.label ?? d.key,
|
|
233
|
+
icon: config[d.key]?.icon,
|
|
234
|
+
color: colorByKey.get(d.key),
|
|
235
|
+
value: d.value
|
|
236
|
+
})));
|
|
230
237
|
return /* @__PURE__ */ jsxs("div", {
|
|
231
238
|
ref,
|
|
232
|
-
className: cn("flex w-full flex-col", className),
|
|
233
|
-
children: [
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
239
|
+
className: cn("flex w-full flex-col", listLegend && "gap-4", className),
|
|
240
|
+
children: [
|
|
241
|
+
/* @__PURE__ */ jsx("div", {
|
|
242
|
+
className: "relative min-h-0 flex-1",
|
|
243
|
+
children: /* @__PURE__ */ jsx(ChartContainer, {
|
|
244
|
+
config,
|
|
245
|
+
className: "h-full w-full",
|
|
246
|
+
children: /* @__PURE__ */ jsxs(Treemap, {
|
|
247
|
+
data: treemapData,
|
|
248
|
+
dataKey: "value",
|
|
249
|
+
nameKey: "key",
|
|
250
|
+
aspectRatio,
|
|
251
|
+
stroke: "transparent",
|
|
252
|
+
isAnimationActive,
|
|
253
|
+
isUpdateAnimationActive: resolvedUpdateAnimationActive,
|
|
254
|
+
animationBegin,
|
|
255
|
+
animationDuration,
|
|
256
|
+
animationEasing,
|
|
257
|
+
content: /* @__PURE__ */ jsx(TreemapTile, {
|
|
258
|
+
gradientScope,
|
|
259
|
+
gradient,
|
|
260
|
+
valueFormatter,
|
|
261
|
+
colorByKey,
|
|
262
|
+
textColorByKey,
|
|
263
|
+
autoTextColor,
|
|
264
|
+
labelStyle: resolvedLabelStyle
|
|
265
|
+
}),
|
|
266
|
+
children: [gradient && /* @__PURE__ */ jsx("defs", { children: uniqueKeys.map((key) => {
|
|
267
|
+
const stopColor = colorByKey.get(key) ?? "var(--color-muted)";
|
|
268
|
+
return /* @__PURE__ */ jsxs("linearGradient", {
|
|
269
|
+
id: `treemap-grad-${gradientScope}-${sanitizeId(key)}`,
|
|
270
|
+
x1: "0",
|
|
271
|
+
y1: "0",
|
|
272
|
+
x2: "0",
|
|
273
|
+
y2: "1",
|
|
274
|
+
children: [/* @__PURE__ */ jsx("stop", {
|
|
275
|
+
offset: "0%",
|
|
276
|
+
stopColor,
|
|
277
|
+
stopOpacity: GRADIENT_TOP_OPACITY
|
|
278
|
+
}), /* @__PURE__ */ jsx("stop", {
|
|
279
|
+
offset: "100%",
|
|
280
|
+
stopColor,
|
|
281
|
+
stopOpacity: GRADIENT_BOTTOM_OPACITY
|
|
282
|
+
})]
|
|
283
|
+
}, key);
|
|
284
|
+
}) }), showTooltip && /* @__PURE__ */ jsx(ChartTooltip, {
|
|
285
|
+
cursor: false,
|
|
286
|
+
content: /* @__PURE__ */ jsx(ChartTooltipContent, {
|
|
287
|
+
radius: tooltipRadius,
|
|
288
|
+
elevation: tooltipElevation,
|
|
289
|
+
hideLabel: true,
|
|
290
|
+
nameKey: "key"
|
|
291
|
+
})
|
|
292
|
+
})]
|
|
293
|
+
})
|
|
283
294
|
})
|
|
295
|
+
}),
|
|
296
|
+
listLegend,
|
|
297
|
+
showLegend && !listLegend && /* @__PURE__ */ jsx(TreemapLegend, {
|
|
298
|
+
config,
|
|
299
|
+
order: uniqueKeys,
|
|
300
|
+
colorByKey
|
|
284
301
|
})
|
|
285
|
-
|
|
286
|
-
config,
|
|
287
|
-
order: uniqueKeys,
|
|
288
|
-
colorByKey
|
|
289
|
-
})]
|
|
302
|
+
]
|
|
290
303
|
});
|
|
291
304
|
});
|
|
292
305
|
TreemapChart.displayName = "TreemapChart";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
//#region src/components/check-badge/check-badge.tsx
|
|
3
|
+
/** A small filled success circle with a tick, drawn inside an `<svg>` (a scene, a diagram): done. */
|
|
4
|
+
function CheckBadge({ cx, cy, r }) {
|
|
5
|
+
const scale = r * 2 / 12;
|
|
6
|
+
return /* @__PURE__ */ jsxs("g", {
|
|
7
|
+
"data-slot": "check-badge",
|
|
8
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
9
|
+
cx,
|
|
10
|
+
cy,
|
|
11
|
+
r,
|
|
12
|
+
className: "fill-success"
|
|
13
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
14
|
+
d: "M2.6 6.3 5 8.6l4.4-4.9",
|
|
15
|
+
transform: `translate(${cx - r} ${cy - r}) scale(${scale})`,
|
|
16
|
+
fill: "none",
|
|
17
|
+
strokeWidth: 1.6,
|
|
18
|
+
strokeLinecap: "round",
|
|
19
|
+
strokeLinejoin: "round",
|
|
20
|
+
className: "stroke-background"
|
|
21
|
+
})]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { CheckBadge };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CheckBadgeProps {
|
|
4
|
+
cx: number;
|
|
5
|
+
cy: number;
|
|
6
|
+
/** Radius, in scene units. */
|
|
7
|
+
r: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** A small filled success circle with a tick, drawn inside an `<svg>` (a scene, a diagram): done. */
|
|
11
|
+
declare function CheckBadge({ cx, cy, r }: CheckBadgeProps): React.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { CheckBadge, type CheckBadgeProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
import { HTMLMotionProps } from 'motion/react';
|
|
4
|
+
|
|
5
|
+
type CheckboxProps = React.ComponentProps<typeof CheckboxPrimitive.Root> & HTMLMotionProps<'button'>;
|
|
6
|
+
declare function Checkbox({ className, onCheckedChange, ...props }: CheckboxProps): React.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { Checkbox };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { cn } from "../../utils/cn.js";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Check } from "lucide-react";
|
|
4
|
+
//#region src/components/choice-card/choice-card.tsx
|
|
5
|
+
var MIST = "from-primary/8 via-primary/3 to-card dark:from-primary/12 dark:via-primary/4";
|
|
6
|
+
/**
|
|
7
|
+
* A stack's chosen card carries a ring. A row's border is one hairline in the
|
|
8
|
+
* mist's own starting colour, chosen or not, so a list of several reads calm:
|
|
9
|
+
* the tick says which are chosen.
|
|
10
|
+
*/
|
|
11
|
+
function border(row, selected) {
|
|
12
|
+
if (row) return "border-primary/8 hover:border-primary/50 dark:border-primary/12";
|
|
13
|
+
return selected ? "border-primary ring-2 ring-primary/30" : "border-primary/8 hover:border-primary/50 dark:border-primary/15";
|
|
14
|
+
}
|
|
15
|
+
function Tick() {
|
|
16
|
+
return /* @__PURE__ */ jsx("span", {
|
|
17
|
+
className: "absolute top-2 right-2 flex h-6 w-6 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-sm",
|
|
18
|
+
children: /* @__PURE__ */ jsx(Check, {
|
|
19
|
+
className: "h-3.5 w-3.5",
|
|
20
|
+
"aria-hidden": true
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/** The lines under (or beside) the title: the meta, then the note in the primary colour. */
|
|
25
|
+
function Lines({ meta, note, wrap, disabled, className }) {
|
|
26
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
27
|
+
className: cn("flex min-w-0 flex-col gap-0.5 text-xs text-foreground-secondary", !wrap && "*:truncate", className),
|
|
28
|
+
children: [meta, note && /* @__PURE__ */ jsx("span", {
|
|
29
|
+
className: cn("font-medium", disabled ? "text-foreground-secondary" : "text-primary"),
|
|
30
|
+
children: note
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A card you click to CHOOSE something (a board, a framework, a template),
|
|
36
|
+
* where `ShowcaseCard` is one you click to open. The whole card is one toggle
|
|
37
|
+
* button. Its picture sits edge to edge on a mist that clears into the card,
|
|
38
|
+
* so the picture has no box of its own, with the title where the mist ends
|
|
39
|
+
* and the meta lines under it. The chosen one carries a ring and a tick; one
|
|
40
|
+
* that cannot be chosen is greyed with its reason as the note. In a `row`,
|
|
41
|
+
* the picture is small on the left and the mist runs left to right.
|
|
42
|
+
*/
|
|
43
|
+
function ChoiceCard(props) {
|
|
44
|
+
const { media, title, meta, wrap = false, note, badge, disabled = false, layout = "stack", selected, onSelect } = props;
|
|
45
|
+
const row = layout === "row";
|
|
46
|
+
return /* @__PURE__ */ jsxs("button", {
|
|
47
|
+
type: "button",
|
|
48
|
+
"aria-pressed": selected,
|
|
49
|
+
disabled,
|
|
50
|
+
onClick: onSelect,
|
|
51
|
+
"data-slot": "choice-card",
|
|
52
|
+
className: cn("group/choice-card relative flex overflow-hidden rounded-2xl border bg-card text-left transition-[border-color,box-shadow,transform] duration-150", row ? "items-stretch" : "flex-col", disabled ? "cursor-not-allowed border-border opacity-55 grayscale" : "cursor-pointer hover:-translate-y-0.5 hover:shadow-md motion-reduce:hover:translate-y-0", !disabled && border(row, selected)),
|
|
53
|
+
children: [
|
|
54
|
+
row ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
55
|
+
className: cn("flex w-22 shrink-0 items-center overflow-hidden bg-linear-to-r", MIST),
|
|
56
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
57
|
+
className: "block w-full transition-transform duration-300 ease-out group-hover/choice-card:scale-105 motion-reduce:group-hover/choice-card:scale-100",
|
|
58
|
+
children: media
|
|
59
|
+
})
|
|
60
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
61
|
+
className: "flex min-w-0 flex-1 flex-col justify-center gap-0.5 py-2.5 pr-9 pl-1",
|
|
62
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
63
|
+
className: "line-clamp-2 text-sm font-semibold text-foreground",
|
|
64
|
+
children: title
|
|
65
|
+
}), /* @__PURE__ */ jsx(Lines, {
|
|
66
|
+
meta,
|
|
67
|
+
note,
|
|
68
|
+
wrap,
|
|
69
|
+
disabled
|
|
70
|
+
})]
|
|
71
|
+
})] }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("span", {
|
|
72
|
+
className: cn("relative block overflow-hidden bg-linear-to-b", MIST),
|
|
73
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
74
|
+
className: "block transition-transform duration-300 ease-out group-hover/choice-card:scale-105 motion-reduce:group-hover/choice-card:scale-100",
|
|
75
|
+
children: media
|
|
76
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
77
|
+
className: "relative block px-3 pt-1",
|
|
78
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
79
|
+
className: "line-clamp-2 text-sm font-semibold text-foreground",
|
|
80
|
+
children: title
|
|
81
|
+
})
|
|
82
|
+
})]
|
|
83
|
+
}), /* @__PURE__ */ jsx(Lines, {
|
|
84
|
+
meta,
|
|
85
|
+
note,
|
|
86
|
+
wrap,
|
|
87
|
+
disabled,
|
|
88
|
+
className: "px-3 pt-1 pb-3"
|
|
89
|
+
})] }),
|
|
90
|
+
selected && /* @__PURE__ */ jsx(Tick, {}),
|
|
91
|
+
badge && /* @__PURE__ */ jsx("span", {
|
|
92
|
+
className: "absolute top-2 left-2 flex",
|
|
93
|
+
children: badge
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
export { ChoiceCard };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface ChoiceCardProps {
|
|
5
|
+
/** The picture: transparent behind it, so it sits on the card's mist. Grows a little on hover. */
|
|
6
|
+
media: ReactNode;
|
|
7
|
+
title: string;
|
|
8
|
+
/** Lines under the title (what it is, who makes it), each truncating on its own. */
|
|
9
|
+
meta?: ReactNode;
|
|
10
|
+
/** Let the meta lines wrap instead of truncating (a sentence rather than a few words). */
|
|
11
|
+
wrap?: boolean;
|
|
12
|
+
/** Drawn over the picture's top-left corner (a "Popular" mark). The top-right is the tick's. */
|
|
13
|
+
badge?: ReactNode;
|
|
14
|
+
/** One line under the meta, in the primary colour: why this one is offered ("Has a screen"), or why it cannot be chosen. */
|
|
15
|
+
note?: ReactNode;
|
|
16
|
+
/** Cannot be chosen now: greyed, no hover, and `note` says why. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* `stack` (default): the picture across the top, the words under it — for a
|
|
20
|
+
* grid you choose ONE from by its picture. `row`: a small picture on the left,
|
|
21
|
+
* the words beside it, the mist running left to right — for a list of several
|
|
22
|
+
* chosen at once, where the words carry more than the picture.
|
|
23
|
+
*/
|
|
24
|
+
layout?: "stack" | "row";
|
|
25
|
+
/** The chosen one: a ring, a tick, and `aria-pressed`. */
|
|
26
|
+
selected: boolean;
|
|
27
|
+
onSelect: () => void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* A card you click to CHOOSE something (a board, a framework, a template),
|
|
32
|
+
* where `ShowcaseCard` is one you click to open. The whole card is one toggle
|
|
33
|
+
* button. Its picture sits edge to edge on a mist that clears into the card,
|
|
34
|
+
* so the picture has no box of its own, with the title where the mist ends
|
|
35
|
+
* and the meta lines under it. The chosen one carries a ring and a tick; one
|
|
36
|
+
* that cannot be chosen is greyed with its reason as the note. In a `row`,
|
|
37
|
+
* the picture is small on the left and the mist runs left to right.
|
|
38
|
+
*/
|
|
39
|
+
declare function ChoiceCard(props: ChoiceCardProps): React.JSX.Element;
|
|
40
|
+
|
|
41
|
+
export { ChoiceCard, type ChoiceCardProps };
|
|
@@ -58,7 +58,7 @@ function strokeResolvedStyle(color, opacity) {
|
|
|
58
58
|
return { stroke: opacity === "muted" ? `color-mix(in srgb, ${color} 20%, transparent)` : color };
|
|
59
59
|
}
|
|
60
60
|
var labelTypographyClass = "whitespace-nowrap text-center leading-none font-semibold tracking-tight tabular-nums";
|
|
61
|
-
var CircularProgress = React$1.forwardRef(function CircularProgress({ value, showPercentage = false, color = "primary", size = DEFAULT_SIZE_PX, className, style, ...props }, ref) {
|
|
61
|
+
var CircularProgress = React$1.forwardRef(function CircularProgress({ value, showPercentage = false, color = "primary", size = DEFAULT_SIZE_PX, className, style, children, ...props }, ref) {
|
|
62
62
|
const boxSize = clampSizePx(size);
|
|
63
63
|
const displayValue = truncateOneDecimal(clampProgress(value));
|
|
64
64
|
const strokeWidth = STROKE_WIDTH_VIEWBOX;
|
|
@@ -110,7 +110,10 @@ var CircularProgress = React$1.forwardRef(function CircularProgress({ value, sho
|
|
|
110
110
|
strokeDashoffset: dashOffset
|
|
111
111
|
})]
|
|
112
112
|
})
|
|
113
|
-
}),
|
|
113
|
+
}), children != null ? /* @__PURE__ */ jsx("span", {
|
|
114
|
+
className: "absolute inset-0 flex min-h-0 min-w-0 items-center justify-center",
|
|
115
|
+
children
|
|
116
|
+
}) : showPercentage ? /* @__PURE__ */ jsxs("span", {
|
|
114
117
|
className: cn("pointer-events-none absolute inset-0 flex min-h-0 min-w-0 items-center justify-center", presetProgressClass, labelTypographyClass),
|
|
115
118
|
style: {
|
|
116
119
|
fontSize: fontSizePx,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { C as Color } from '../../index-BQANnKs9.js';
|
|
3
|
+
|
|
4
|
+
interface CircularProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Progress amount; clamped to 0–100. Display and arc use one decimal place
|
|
7
|
+
* truncated toward zero (e.g. 78.67676876 → 78.6).
|
|
8
|
+
*/
|
|
9
|
+
value: number;
|
|
10
|
+
showPercentage?: boolean;
|
|
11
|
+
color?: Color;
|
|
12
|
+
/** Outer width and height of the circle in CSS pixels (e.g. 32 → 32×32). */
|
|
13
|
+
size?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Content centred inside the ring (an icon, an `IconAvatar`, a count). Drawn
|
|
16
|
+
* instead of the percentage, so pass `showPercentage` only without it.
|
|
17
|
+
*/
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const CircularProgress: React.ForwardRefExoticComponent<CircularProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
|
|
23
|
+
export { CircularProgress, type CircularProgressProps };
|