@espressif/dashboard-ui-components 1.11.2 → 1.13.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 +196 -5
- package/.cursor/rules/dashboard-ui-consumption.mdc +183 -4
- package/CHANGELOG.md +1048 -0
- package/README.md +246 -8
- 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 +160 -27
- 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 +77 -0
- package/dist/components/floating-window/_hooks/use-resize.js +133 -0
- package/dist/components/floating-window/floating-window.js +124 -0
- package/dist/components/floating-window/index.d.ts +64 -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 +181 -19529
- package/dist/components/index.js +71 -15
- 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/keyframes/index.d.ts +53 -0
- package/dist/components/keyframes/index.js +3 -0
- package/dist/components/keyframes/keyframes-motion.js +23 -0
- package/dist/components/keyframes/keyframes.js +37 -0
- 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/qr-code/index.d.ts +26 -0
- package/dist/components/qr-code/index.js +2 -0
- package/dist/components/qr-code/qr-code.js +69 -0
- package/dist/components/radio-group/index.d.ts +24 -0
- package/dist/components/radio-group/index.js +2 -0
- package/dist/components/range-field/index.d.ts +45 -0
- package/dist/components/range-field/index.js +2 -0
- package/dist/components/range-field/range-field.js +164 -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 +26 -0
- package/dist/components/reveal/index.js +2 -0
- package/dist/components/reveal/reveal.js +27 -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 +34 -0
- package/dist/components/search-box/index.js +2 -0
- package/dist/components/search-box/search-box.js +24 -14
- 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 +64 -0
- package/dist/components/showcase-card/index.js +2 -0
- package/dist/components/showcase-card/showcase-card.js +116 -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 +5 -3
- 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/trace/index.d.ts +49 -0
- package/dist/components/trace/index.js +2 -0
- package/dist/components/trace/trace.js +109 -0
- 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 +40 -10
- 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 +173 -15
- package/dist/index.js +73 -15
- 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-DONJJXIy.d.ts +30 -0
- package/package.json +58 -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 +711 -0
- package/dist/app-logo.props-Ct7QBdTd.d.ts +0 -40
- package/dist/popover-ByLD3-Qv.d.ts +0 -204
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { cn } from "../../utils/cn.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/toolbar/toolbar.tsx
|
|
4
|
+
var FOCUSABLE = "button:not([disabled]), a[href], [tabindex=\"0\"]";
|
|
5
|
+
/** Left and Right arrows move between the toolbar's controls, as the toolbar role promises; Home and End jump to the ends. */
|
|
6
|
+
function moveFocus(event) {
|
|
7
|
+
const step = {
|
|
8
|
+
ArrowRight: 1,
|
|
9
|
+
ArrowLeft: -1,
|
|
10
|
+
Home: "first",
|
|
11
|
+
End: "last"
|
|
12
|
+
}[event.key];
|
|
13
|
+
if (step === void 0) return;
|
|
14
|
+
const controls = Array.from(event.currentTarget.querySelectorAll(FOCUSABLE));
|
|
15
|
+
const at = controls.indexOf(document.activeElement);
|
|
16
|
+
if (controls.length === 0 || at < 0) return;
|
|
17
|
+
event.preventDefault();
|
|
18
|
+
let next = at;
|
|
19
|
+
if (step === "first") next = 0;
|
|
20
|
+
else if (step === "last") next = controls.length - 1;
|
|
21
|
+
else next = (at + step + controls.length) % controls.length;
|
|
22
|
+
controls[next]?.focus();
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A thin bar of small controls across the top of a work area — 44px, so
|
|
26
|
+
* 28px controls (`ToolbarButton`) sit in it with air on both sides. Three
|
|
27
|
+
* slots: the start and end share the width, so the centre is centred on the
|
|
28
|
+
* bar, not between whatever the sides happen to hold. A bottom rule in the
|
|
29
|
+
* border colour every panel edge uses, so the bar and the columns under it
|
|
30
|
+
* read as one grid. Left/Right arrows move between its controls.
|
|
31
|
+
*/
|
|
32
|
+
function Toolbar({ label, start, center, end, tone = "page", className }) {
|
|
33
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
34
|
+
role: "toolbar",
|
|
35
|
+
"aria-label": label,
|
|
36
|
+
onKeyDown: moveFocus,
|
|
37
|
+
"data-slot": "toolbar",
|
|
38
|
+
className: cn("flex h-11 shrink-0 items-center gap-2 border-b border-border px-2", tone === "dark" ? "dark bg-sidebar text-foreground" : "bg-background", className),
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ jsx("div", {
|
|
41
|
+
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
42
|
+
children: start
|
|
43
|
+
}),
|
|
44
|
+
center && /* @__PURE__ */ jsx("div", {
|
|
45
|
+
className: "flex min-w-0 shrink-0 items-center justify-center",
|
|
46
|
+
children: center
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ jsx("div", {
|
|
49
|
+
className: "flex min-w-0 flex-1 items-center justify-end gap-2",
|
|
50
|
+
children: end
|
|
51
|
+
})
|
|
52
|
+
]
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { Toolbar };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactNode, ReactElement } from 'react';
|
|
3
|
+
import { k as StyleAxisProps } from '../../style-axes-DSQ2DGc5.js';
|
|
4
|
+
export { T as TooltipContent, a as TooltipContentProps, b as TooltipProvider, c as TooltipProviderProps, d as TooltipRoot, e as TooltipTrigger, f as TooltipTriggerProps } from '../../tooltip-C0bYa8a3.js';
|
|
5
|
+
import 'motion/react';
|
|
6
|
+
import '../../slot-DGErA9zi.js';
|
|
7
|
+
|
|
8
|
+
type Side = 'top' | 'bottom' | 'left' | 'right';
|
|
9
|
+
type Align = 'start' | 'center' | 'end';
|
|
10
|
+
/** `radius` and `elevation` shape the tooltip bubble (see TooltipContent). */
|
|
11
|
+
interface TooltipProps extends Pick<StyleAxisProps, 'radius' | 'elevation'> {
|
|
12
|
+
content: ReactNode;
|
|
13
|
+
children: ReactElement;
|
|
14
|
+
side?: Side;
|
|
15
|
+
sideOffset?: number;
|
|
16
|
+
align?: Align;
|
|
17
|
+
alignOffset?: number;
|
|
18
|
+
openDelay?: number;
|
|
19
|
+
closeDelay?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Caps the bubble's width so long content wraps: `xs` 20rem, `sm` 24rem,
|
|
22
|
+
* `md` 28rem. Unset, the bubble grows to fit its content (a short label).
|
|
23
|
+
*/
|
|
24
|
+
maxWidth?: 'xs' | 'sm' | 'md';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare function Tooltip({ content, children, side, sideOffset, align, alignOffset, openDelay, closeDelay, radius, elevation, maxWidth, }: TooltipProps): React.JSX.Element;
|
|
28
|
+
|
|
29
|
+
export { Tooltip, type TooltipProps };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { Tooltip as Tooltip$1, TooltipContent, TooltipProvider, TooltipTrigger } from "../../core/animate-ui/components/animate/tooltip.js";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/tooltip/tooltip.tsx
|
|
4
|
-
|
|
4
|
+
var maxWidthClasses = {
|
|
5
|
+
xs: "max-w-xs",
|
|
6
|
+
sm: "max-w-sm",
|
|
7
|
+
md: "max-w-md"
|
|
8
|
+
};
|
|
9
|
+
function Tooltip({ content, children, side, sideOffset, align, alignOffset, openDelay, closeDelay, radius, elevation, maxWidth }) {
|
|
5
10
|
return /* @__PURE__ */ jsx(TooltipProvider, {
|
|
6
11
|
openDelay,
|
|
7
12
|
closeDelay,
|
|
@@ -13,7 +18,12 @@ function Tooltip({ content, children, side, sideOffset, align, alignOffset, open
|
|
|
13
18
|
children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
14
19
|
asChild: true,
|
|
15
20
|
children
|
|
16
|
-
}), /* @__PURE__ */ jsx(TooltipContent, {
|
|
21
|
+
}), /* @__PURE__ */ jsx(TooltipContent, {
|
|
22
|
+
radius,
|
|
23
|
+
elevation,
|
|
24
|
+
className: maxWidth ? maxWidthClasses[maxWidth] : void 0,
|
|
25
|
+
children: content
|
|
26
|
+
})]
|
|
17
27
|
})
|
|
18
28
|
});
|
|
19
29
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Collapsible, CollapsibleContent } from '../collapsible/index.js';
|
|
3
|
+
import '@radix-ui/react-collapsible';
|
|
4
|
+
|
|
5
|
+
/** How a step stands: running (its title shimmers), failed, or waiting to start. Unset: done. */
|
|
6
|
+
type TraceStatus = "running" | "error" | "pending";
|
|
7
|
+
interface TraceProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
/** `sm` for a dense list beside a conversation (12px text), `md` (14px) on its own. Default `md`. */
|
|
9
|
+
size?: "sm" | "md";
|
|
10
|
+
}
|
|
11
|
+
interface TraceLineProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
12
|
+
status?: TraceStatus;
|
|
13
|
+
}
|
|
14
|
+
type TraceIconProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
15
|
+
interface TraceTitleProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
16
|
+
/** A plain string shimmers while its line is running; anything else is drawn as it is. */
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
type TraceDescriptionProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
20
|
+
type TraceCollapsibleProps = React.ComponentPropsWithoutRef<typeof Collapsible>;
|
|
21
|
+
type TraceCollapsibleTriggerProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
22
|
+
type TraceCollapsibleContentProps = React.ComponentPropsWithoutRef<typeof CollapsibleContent>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* An agent's steps, one line each: what it read, ran, changed or thought,
|
|
26
|
+
* in the order it did them. A line names the action with an icon and a title,
|
|
27
|
+
* may carry a short description (a diff stat, a duration, a count) and a
|
|
28
|
+
* status, and may open to show more (`TraceCollapsible`). The pattern of
|
|
29
|
+
* shadcn's AI Elements Trace, on this library's tokens.
|
|
30
|
+
*
|
|
31
|
+
* Status is colour and motion, so say it in the title too ("Build failed").
|
|
32
|
+
*/
|
|
33
|
+
declare function Trace({ size, className, ...props }: TraceProps): React.JSX.Element;
|
|
34
|
+
/** One step: an icon, a title, an optional description. A span, so it is not a tab stop unless a trigger or link wraps it. */
|
|
35
|
+
declare function TraceLine({ status, className, ...props }: TraceLineProps): React.JSX.Element;
|
|
36
|
+
/** The icon naming the action (before the title) or showing a state (after it). Decorative: the title says it. */
|
|
37
|
+
declare function TraceIcon({ className, ...props }: TraceIconProps): React.JSX.Element;
|
|
38
|
+
/** The step in words, on one line (truncated). A string title shimmers while its line runs, unless the person asks for reduced motion. */
|
|
39
|
+
declare function TraceTitle({ children, className, ...props }: TraceTitleProps): React.JSX.Element;
|
|
40
|
+
/** Secondary text after the title: a diff stat, a duration, a count. Never truncated. */
|
|
41
|
+
declare function TraceDescription({ className, ...props }: TraceDescriptionProps): React.JSX.Element;
|
|
42
|
+
/** A line that opens to show more. Closed unless `defaultOpen` or `open` says otherwise. */
|
|
43
|
+
declare function TraceCollapsible({ className, ...props }: TraceCollapsibleProps): React.JSX.Element;
|
|
44
|
+
/** The button that opens and closes the line: wrap the `TraceLine` in it. A chevron follows the line. */
|
|
45
|
+
declare function TraceCollapsibleTrigger({ className, children, ...props }: TraceCollapsibleTriggerProps): React.JSX.Element;
|
|
46
|
+
/** What the line opens to, set in under its title. */
|
|
47
|
+
declare function TraceCollapsibleContent({ className, ...props }: TraceCollapsibleContentProps): React.JSX.Element;
|
|
48
|
+
|
|
49
|
+
export { Trace, TraceCollapsible, TraceCollapsibleContent, type TraceCollapsibleContentProps, type TraceCollapsibleProps, TraceCollapsibleTrigger, type TraceCollapsibleTriggerProps, TraceDescription, type TraceDescriptionProps, TraceIcon, type TraceIconProps, TraceLine, type TraceLineProps, type TraceProps, type TraceStatus, TraceTitle, type TraceTitleProps };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle } from "./trace.js";
|
|
2
|
+
export { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../utils/cn.js";
|
|
3
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../core/collapsible.js";
|
|
4
|
+
import { usePrefersReducedMotion } from "../../core/hooks/use-prefers-reduced-motion.js";
|
|
5
|
+
import { ShimmeringText } from "../text-effects/shimmer-text/shimmer-text.js";
|
|
6
|
+
import * as React$1 from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { ChevronRight } from "lucide-react";
|
|
9
|
+
//#region src/components/trace/trace.tsx
|
|
10
|
+
var SizeContext = React$1.createContext("md");
|
|
11
|
+
var StatusContext = React$1.createContext(void 0);
|
|
12
|
+
/**
|
|
13
|
+
* An agent's steps, one line each: what it read, ran, changed or thought,
|
|
14
|
+
* in the order it did them. A line names the action with an icon and a title,
|
|
15
|
+
* may carry a short description (a diff stat, a duration, a count) and a
|
|
16
|
+
* status, and may open to show more (`TraceCollapsible`). The pattern of
|
|
17
|
+
* shadcn's AI Elements Trace, on this library's tokens.
|
|
18
|
+
*
|
|
19
|
+
* Status is colour and motion, so say it in the title too ("Build failed").
|
|
20
|
+
*/
|
|
21
|
+
function Trace({ size = "md", className, ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsx(SizeContext.Provider, {
|
|
23
|
+
value: size,
|
|
24
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
25
|
+
"data-slot": "trace",
|
|
26
|
+
className: cn("flex min-w-0 flex-col gap-0.5", size === "sm" ? "text-xs leading-5" : "text-sm leading-6", className),
|
|
27
|
+
...props
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/** One step: an icon, a title, an optional description. A span, so it is not a tab stop unless a trigger or link wraps it. */
|
|
32
|
+
function TraceLine({ status, className, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsx(StatusContext.Provider, {
|
|
34
|
+
value: status,
|
|
35
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
36
|
+
"data-slot": "trace-line",
|
|
37
|
+
"data-status": status ?? "done",
|
|
38
|
+
className: cn("flex min-w-0 items-center gap-1.5 text-foreground-muted", status === "error" && "text-error", status === "pending" && "text-foreground-disabled", className),
|
|
39
|
+
...props
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/** The icon naming the action (before the title) or showing a state (after it). Decorative: the title says it. */
|
|
44
|
+
function TraceIcon({ className, ...props }) {
|
|
45
|
+
return /* @__PURE__ */ jsx("span", {
|
|
46
|
+
"aria-hidden": true,
|
|
47
|
+
"data-slot": "trace-icon",
|
|
48
|
+
className: cn("inline-flex shrink-0 items-center justify-center", React$1.useContext(SizeContext) === "sm" ? "[&_svg]:size-3.5" : "[&_svg]:size-4", className),
|
|
49
|
+
...props
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/** The step in words, on one line (truncated). A string title shimmers while its line runs, unless the person asks for reduced motion. */
|
|
53
|
+
function TraceTitle({ children, className, ...props }) {
|
|
54
|
+
const status = React$1.useContext(StatusContext);
|
|
55
|
+
const reduced = usePrefersReducedMotion();
|
|
56
|
+
const shimmer = status === "running" && !reduced && typeof children === "string";
|
|
57
|
+
return /* @__PURE__ */ jsx("span", {
|
|
58
|
+
"data-slot": "trace-title",
|
|
59
|
+
className: cn("min-w-0 truncate", status === "running" && "text-foreground-secondary", className),
|
|
60
|
+
...props,
|
|
61
|
+
children: shimmer ? /* @__PURE__ */ jsx(ShimmeringText, {
|
|
62
|
+
text: children,
|
|
63
|
+
color: "var(--color-foreground-muted)",
|
|
64
|
+
shimmeringColor: "var(--color-foreground)"
|
|
65
|
+
}) : children
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/** Secondary text after the title: a diff stat, a duration, a count. Never truncated. */
|
|
69
|
+
function TraceDescription({ className, ...props }) {
|
|
70
|
+
return /* @__PURE__ */ jsx("span", {
|
|
71
|
+
"data-slot": "trace-description",
|
|
72
|
+
className: cn("shrink-0 tabular-nums text-foreground-muted", className),
|
|
73
|
+
...props
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/** A line that opens to show more. Closed unless `defaultOpen` or `open` says otherwise. */
|
|
77
|
+
function TraceCollapsible({ className, ...props }) {
|
|
78
|
+
return /* @__PURE__ */ jsx(Collapsible, {
|
|
79
|
+
"data-slot": "trace-collapsible",
|
|
80
|
+
className: cn("group/trace min-w-0", className),
|
|
81
|
+
...props
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/** The button that opens and closes the line: wrap the `TraceLine` in it. A chevron follows the line. */
|
|
85
|
+
function TraceCollapsibleTrigger({ className, children, ...props }) {
|
|
86
|
+
return /* @__PURE__ */ jsx(CollapsibleTrigger, {
|
|
87
|
+
asChild: true,
|
|
88
|
+
children: /* @__PURE__ */ jsxs("button", {
|
|
89
|
+
type: "button",
|
|
90
|
+
"data-slot": "trace-collapsible-trigger",
|
|
91
|
+
className: cn("group/trigger flex w-full min-w-0 cursor-pointer items-center gap-1 rounded-sm text-left outline-none", "hover:[&_[data-slot=trace-line][data-status=done]]:text-foreground focus-visible:ring-2 focus-visible:ring-ring", className),
|
|
92
|
+
...props,
|
|
93
|
+
children: [children, /* @__PURE__ */ jsx(ChevronRight, {
|
|
94
|
+
"aria-hidden": true,
|
|
95
|
+
className: "size-3.5 shrink-0 text-foreground-muted transition-transform group-data-[state=open]/trigger:rotate-90 motion-reduce:transition-none"
|
|
96
|
+
})]
|
|
97
|
+
})
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/** What the line opens to, set in under its title. */
|
|
101
|
+
function TraceCollapsibleContent({ className, ...props }) {
|
|
102
|
+
return /* @__PURE__ */ jsx(CollapsibleContent, {
|
|
103
|
+
"data-slot": "trace-collapsible-content",
|
|
104
|
+
className: cn("pt-1 pb-1.5 pl-5 text-foreground-muted", className),
|
|
105
|
+
...props
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
+
|
|
4
|
+
interface TransferItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface TransferListProps<T> {
|
|
10
|
+
sourceItems: T[];
|
|
11
|
+
targetItems: T[];
|
|
12
|
+
getItemId?: (item: T) => string;
|
|
13
|
+
getItemLabel?: (item: T) => string;
|
|
14
|
+
onChange: (targetItems: T[]) => void;
|
|
15
|
+
renderItem?: (item: T) => ReactNode;
|
|
16
|
+
searchable?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
sourceTitle: string;
|
|
19
|
+
targetTitle: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Maximum height of each panel. Panels grow with content up to this limit;
|
|
23
|
+
* list bodies scroll internally when content exceeds the available space.
|
|
24
|
+
*/
|
|
25
|
+
maxHeight?: CSSProperties["maxHeight"];
|
|
26
|
+
/** Hidden inputs for native form submit (same pattern as SelectableCardList) */
|
|
27
|
+
name?: string;
|
|
28
|
+
form?: string;
|
|
29
|
+
isItemDisabled?: (item: T) => boolean;
|
|
30
|
+
/** Defaults to "Transfer list" */
|
|
31
|
+
ariaLabel?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare function TransferList<T>({ sourceItems, targetItems, getItemId, getItemLabel, onChange, renderItem, searchable, disabled, sourceTitle, targetTitle, className, name, form, isItemDisabled, ariaLabel, maxHeight, }: TransferListProps<T>): React.JSX.Element;
|
|
35
|
+
|
|
36
|
+
export { type TransferItem, TransferList, type TransferListProps };
|
|
@@ -106,7 +106,7 @@ function TransferListItems({ filteredItems, items, selectedIds, getItemId, getIt
|
|
|
106
106
|
animate: "center",
|
|
107
107
|
exit: "exit",
|
|
108
108
|
transition: rowTransition,
|
|
109
|
-
className: cn("flex cursor-pointer items-center gap-2 rounded-md px-1 py-1.5", itemDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-muted/50"),
|
|
109
|
+
className: cn("flex cursor-pointer items-center gap-2 rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-md)))] px-1 py-1.5", itemDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-muted/50"),
|
|
110
110
|
children: [/* @__PURE__ */ jsx(Checkbox, {
|
|
111
111
|
checked,
|
|
112
112
|
disabled: itemDisabled,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type TruncatedLineWithTooltipProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
tooltipContent: ReactNode;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* How many lines show before the text is cut with an ellipsis: 1 (the
|
|
10
|
+
* default) to 6. Past one line it is clamped (a card's description) and
|
|
11
|
+
* measured by its height instead of its width.
|
|
12
|
+
*/
|
|
13
|
+
lines?: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Truncation with a tooltip of the whole text, shown only when the text is
|
|
17
|
+
* actually cut (measured via DOM): one line by default, or a few (`lines`).
|
|
18
|
+
* An app's own {@link TooltipProvider} wins; without one it brings its own.
|
|
19
|
+
*/
|
|
20
|
+
declare function TruncatedLineWithTooltip({ className, tooltipContent, children, lines, }: TruncatedLineWithTooltipProps): React.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { TruncatedLineWithTooltip, type TruncatedLineWithTooltipProps };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../utils/cn.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useHasTooltipProvider } from "../../core/animate-ui/primitives/animate/tooltip.js";
|
|
4
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../core/animate-ui/components/animate/tooltip.js";
|
|
4
5
|
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
//#region src/components/truncated-line-with-tooltip/truncated-line-with-tooltip.tsx
|
|
@@ -11,18 +12,29 @@ function hasTooltipContent(content) {
|
|
|
11
12
|
if (typeof content === "boolean") return false;
|
|
12
13
|
return true;
|
|
13
14
|
}
|
|
15
|
+
/** Written out in full so Tailwind finds them. */
|
|
16
|
+
var CLAMP = {
|
|
17
|
+
2: "line-clamp-2",
|
|
18
|
+
3: "line-clamp-3",
|
|
19
|
+
4: "line-clamp-4",
|
|
20
|
+
5: "line-clamp-5",
|
|
21
|
+
6: "line-clamp-6"
|
|
22
|
+
};
|
|
14
23
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
24
|
+
* Truncation with a tooltip of the whole text, shown only when the text is
|
|
25
|
+
* actually cut (measured via DOM): one line by default, or a few (`lines`).
|
|
26
|
+
* An app's own {@link TooltipProvider} wins; without one it brings its own.
|
|
17
27
|
*/
|
|
18
|
-
function TruncatedLineWithTooltip({ className, tooltipContent, children }) {
|
|
28
|
+
function TruncatedLineWithTooltip({ className, tooltipContent, children, lines = 1 }) {
|
|
29
|
+
const clamp = CLAMP[lines];
|
|
19
30
|
const textRef = useRef(null);
|
|
20
31
|
const [isTruncated, setIsTruncated] = useState(false);
|
|
32
|
+
const hasTooltipProvider = useHasTooltipProvider();
|
|
21
33
|
const measure = useCallback(() => {
|
|
22
34
|
const el = textRef.current;
|
|
23
35
|
if (!el) return;
|
|
24
|
-
setIsTruncated(el.scrollWidth > el.clientWidth + 1);
|
|
25
|
-
}, []);
|
|
36
|
+
setIsTruncated(clamp ? el.scrollHeight > el.clientHeight + 1 : el.scrollWidth > el.clientWidth + 1);
|
|
37
|
+
}, [clamp]);
|
|
26
38
|
useLayoutEffect(() => {
|
|
27
39
|
measure();
|
|
28
40
|
}, [
|
|
@@ -39,11 +51,11 @@ function TruncatedLineWithTooltip({ className, tooltipContent, children }) {
|
|
|
39
51
|
}, [measure]);
|
|
40
52
|
const line = /* @__PURE__ */ jsx("span", {
|
|
41
53
|
ref: textRef,
|
|
42
|
-
className: cn("block min-w-0 truncate", className),
|
|
54
|
+
className: cn("block min-w-0", clamp ?? "truncate", className),
|
|
43
55
|
children
|
|
44
56
|
});
|
|
45
57
|
if (!(isTruncated && hasTooltipContent(tooltipContent))) return line;
|
|
46
|
-
|
|
58
|
+
const tooltip = /* @__PURE__ */ jsxs(Tooltip, {
|
|
47
59
|
side: "top",
|
|
48
60
|
children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
49
61
|
className: "block min-w-0 w-full cursor-inherit text-left",
|
|
@@ -56,6 +68,12 @@ function TruncatedLineWithTooltip({ className, tooltipContent, children }) {
|
|
|
56
68
|
})
|
|
57
69
|
})]
|
|
58
70
|
});
|
|
71
|
+
if (hasTooltipProvider) return tooltip;
|
|
72
|
+
return /* @__PURE__ */ jsx(TooltipProvider, {
|
|
73
|
+
openDelay: 300,
|
|
74
|
+
closeDelay: 100,
|
|
75
|
+
children: tooltip
|
|
76
|
+
});
|
|
59
77
|
}
|
|
60
78
|
//#endregion
|
|
61
79
|
export { TruncatedLineWithTooltip };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { JSX, HTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const TYPOGRAPHY_VARIANTS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "body1", "body2", "subtitle1", "subtitle2"];
|
|
5
|
+
type TypographyVariant = (typeof TYPOGRAPHY_VARIANTS)[number];
|
|
6
|
+
/** Tailwind classes per variant — edit here to tune the type scale. */
|
|
7
|
+
declare const typographyVariantClasses: Record<TypographyVariant, string>;
|
|
8
|
+
/** Default semantic tag per variant (Material UI–aligned). */
|
|
9
|
+
declare const typographyDefaultElement: Record<TypographyVariant, keyof JSX.IntrinsicElements>;
|
|
10
|
+
|
|
11
|
+
interface TypographyProps extends HTMLAttributes<HTMLElement> {
|
|
12
|
+
variant?: TypographyVariant;
|
|
13
|
+
/** Override the rendered element while keeping variant styles (e.g. `as="span"` with `variant="h1"`). */
|
|
14
|
+
as?: keyof JSX.IntrinsicElements;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare const Typography: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<HTMLElement>>;
|
|
18
|
+
|
|
19
|
+
export { TYPOGRAPHY_VARIANTS, Typography, type TypographyProps, type TypographyVariant, typographyDefaultElement, typographyVariantClasses };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { HTMLAttributes } from 'react';
|
|
4
|
+
import { P as PresetColor, S as Size } from '../../index-BQANnKs9.js';
|
|
5
|
+
import { k as StyleAxisProps } from '../../style-axes-DSQ2DGc5.js';
|
|
6
|
+
import * as lucide_react from 'lucide-react';
|
|
7
|
+
import { LucideIcon } from 'lucide-react';
|
|
8
|
+
|
|
9
|
+
type UserType = "admin" | "super_admin";
|
|
10
|
+
interface UserTypeBadgeRegistryItem {
|
|
11
|
+
label: string;
|
|
12
|
+
color: PresetColor;
|
|
13
|
+
icon: LucideIcon;
|
|
14
|
+
}
|
|
15
|
+
declare const userTypeBadgeRegistry: {
|
|
16
|
+
admin: {
|
|
17
|
+
label: string;
|
|
18
|
+
color: "secondary";
|
|
19
|
+
icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
20
|
+
};
|
|
21
|
+
super_admin: {
|
|
22
|
+
label: string;
|
|
23
|
+
color: "error";
|
|
24
|
+
icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
declare const userTypeBadgeUserTypes: UserType[];
|
|
28
|
+
|
|
29
|
+
interface UserTypeBadgeProps extends HTMLAttributes<HTMLDivElement>, Pick<StyleAxisProps, "radius"> {
|
|
30
|
+
userType: UserType;
|
|
31
|
+
size?: Size;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare const userTypeBadgeSizeVariants: (props?: ({
|
|
35
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
36
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
37
|
+
declare const UserTypeBadge: React.ForwardRefExoticComponent<UserTypeBadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
|
|
39
|
+
export { type UserType, UserTypeBadge, type UserTypeBadgeProps, type UserTypeBadgeRegistryItem, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { userTypeBadgeRegistry, userTypeBadgeUserTypes } from "./user-type-badge.registry.js";
|
|
2
|
+
import { UserTypeBadge, userTypeBadgeSizeVariants } from "./user-type-badge.js";
|
|
3
|
+
export { UserTypeBadge, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes };
|
|
@@ -14,7 +14,7 @@ var userTypeBadgeSizeVariants = cva("inline-flex font-medium tracking-tight shad
|
|
|
14
14
|
defaultVariants: { size: "default" }
|
|
15
15
|
});
|
|
16
16
|
var userTypeBadgeMetallicClasses = cn("relative isolate overflow-hidden border border-white/20", "shadow-[inset_0_1px_0_rgba(255,255,255,0.30),inset_0_-1px_0_rgba(0,0,0,0.22)]", "before:pointer-events-none before:absolute before:inset-0 before:rounded-[inherit]", "before:bg-[linear-gradient(135deg,rgba(255,255,255,0.24)_0%,rgba(255,255,255,0.04)_36%,rgba(0,0,0,0.16)_72%,rgba(255,255,255,0.12)_100%)]", "after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:border after:border-white/15", "after:bg-[linear-gradient(315deg,rgba(255,255,255,0.24)_0%,rgba(255,255,255,0.04)_36%,rgba(0,0,0,0.16)_72%,rgba(255,255,255,0.12)_100%)]", "after:opacity-0 after:transition-opacity after:duration-[1800ms] after:ease-in-out hover:after:opacity-100");
|
|
17
|
-
var UserTypeBadge = React$1.forwardRef(({ userType, size = "default", className, ...props }, ref) => {
|
|
17
|
+
var UserTypeBadge = React$1.forwardRef(({ userType, size = "default", className, radius, ...props }, ref) => {
|
|
18
18
|
const { color, icon: Icon, label } = userTypeBadgeRegistry[userType];
|
|
19
19
|
return /* @__PURE__ */ jsx("div", {
|
|
20
20
|
ref,
|
|
@@ -23,6 +23,7 @@ var UserTypeBadge = React$1.forwardRef(({ userType, size = "default", className,
|
|
|
23
23
|
children: /* @__PURE__ */ jsxs(Badge, {
|
|
24
24
|
variant: "solid",
|
|
25
25
|
color,
|
|
26
|
+
radius,
|
|
26
27
|
className: cn(userTypeBadgeSizeVariants({ size }), userTypeBadgeMetallicClasses, className),
|
|
27
28
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
28
29
|
"aria-hidden": true,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { V as VerticalStepperProps } from '../../vertical-stepper.props-DONJJXIy.js';
|
|
3
|
+
export { a as VerticalStepperSize, b as VerticalStepperStep, c as VerticalStepperStepStatus } from '../../vertical-stepper.props-DONJJXIy.js';
|
|
4
|
+
|
|
5
|
+
declare function VerticalStepper({ data, onStepClick, size, className, ariaLabel, }: VerticalStepperProps): React.JSX.Element;
|
|
6
|
+
|
|
7
|
+
export { VerticalStepper, VerticalStepperProps };
|