@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
package/dist/core/popover.js
CHANGED
|
@@ -1,12 +1,79 @@
|
|
|
1
1
|
import { cn } from "../utils/cn.js";
|
|
2
|
+
import { useStyleAxes } from "../utils/style-axes.js";
|
|
3
|
+
import { useControlledState } from "./hooks/use-controlled-state.js";
|
|
4
|
+
import { useNestedLayerPressGuard } from "./hooks/use-nested-layer-press-guard.js";
|
|
5
|
+
import { PopoverHoverContext, usePopoverHover, usePopoverHoverContext } from "./popover-hover.js";
|
|
6
|
+
import { usePopoverGroupContext } from "./popover-group.js";
|
|
2
7
|
import * as React$1 from "react";
|
|
3
8
|
import { jsx } from "react/jsx-runtime";
|
|
4
9
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
5
10
|
//#region src/core/popover.tsx
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
function Popover({ openOnHover = false, openDelay = 120, closeDelay = 150, open: openProp, defaultOpen, onOpenChange, value, ...props }) {
|
|
12
|
+
const group = usePopoverGroupContext();
|
|
13
|
+
const generatedKey = React$1.useId();
|
|
14
|
+
const key = value ?? generatedKey;
|
|
15
|
+
const [ownOpen, setOwnOpen] = useControlledState({
|
|
16
|
+
value: openProp,
|
|
17
|
+
defaultValue: defaultOpen ?? false,
|
|
18
|
+
onChange: onOpenChange
|
|
19
|
+
});
|
|
20
|
+
const inGroup = group !== null && openProp === void 0;
|
|
21
|
+
const open = inGroup ? group.value === key : ownOpen;
|
|
22
|
+
const setOpen = React$1.useCallback((next, viaHover = false) => {
|
|
23
|
+
if (!inGroup) {
|
|
24
|
+
setOwnOpen(next);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (next) group.setValue(key);
|
|
28
|
+
else if (viaHover ? group.valueRef.current !== null : group.valueRef.current === key) group.setValue(null);
|
|
29
|
+
onOpenChange?.(next);
|
|
30
|
+
}, [
|
|
31
|
+
inGroup,
|
|
32
|
+
group,
|
|
33
|
+
key,
|
|
34
|
+
setOwnOpen,
|
|
35
|
+
onOpenChange
|
|
36
|
+
]);
|
|
37
|
+
const replaced = React$1.useCallback(() => inGroup && group.valueRef.current !== null && group.valueRef.current !== key, [
|
|
38
|
+
inGroup,
|
|
39
|
+
group,
|
|
40
|
+
key
|
|
41
|
+
]);
|
|
42
|
+
const hover = usePopoverHover({
|
|
43
|
+
enabled: openOnHover,
|
|
44
|
+
open,
|
|
45
|
+
setOpen,
|
|
46
|
+
openDelay: inGroup && group.value !== null && group.value !== key ? group.switchDelay : openDelay,
|
|
47
|
+
closeDelay,
|
|
48
|
+
shared: inGroup ? group.hover : void 0,
|
|
49
|
+
replaced
|
|
50
|
+
});
|
|
51
|
+
return /* @__PURE__ */ jsx(PopoverHoverContext.Provider, {
|
|
52
|
+
value: hover,
|
|
53
|
+
children: /* @__PURE__ */ jsx(PopoverPrimitive.Root, {
|
|
54
|
+
open,
|
|
55
|
+
onOpenChange: hover.onOpenChange,
|
|
56
|
+
...props
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
var PopoverTrigger = React$1.forwardRef((props, ref) => {
|
|
61
|
+
const hover = usePopoverHoverContext();
|
|
62
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, {
|
|
63
|
+
ref,
|
|
64
|
+
...hover.triggerProps(props)
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
PopoverTrigger.displayName = PopoverPrimitive.Trigger.displayName;
|
|
8
68
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
9
|
-
var PopoverContent = React$1.forwardRef(({ className, align = "center", sideOffset = 4, portal = true, onWheel, onTouchMove, ...props }, ref) => {
|
|
69
|
+
var PopoverContent = React$1.forwardRef(({ className, align = "center", sideOffset = 4, portal = true, onWheel, onTouchMove, onPointerDownOutside, radius, elevation, style, ...props }, ref) => {
|
|
70
|
+
const axes = useStyleAxes({
|
|
71
|
+
radius,
|
|
72
|
+
elevation,
|
|
73
|
+
style
|
|
74
|
+
}, ["radius", "elevation"]);
|
|
75
|
+
const pressGuard = useNestedLayerPressGuard(ref, onPointerDownOutside);
|
|
76
|
+
const hover = usePopoverHoverContext();
|
|
10
77
|
const handleWheel = (event) => {
|
|
11
78
|
onWheel?.(event);
|
|
12
79
|
event.stopPropagation();
|
|
@@ -16,13 +83,15 @@ var PopoverContent = React$1.forwardRef(({ className, align = "center", sideOffs
|
|
|
16
83
|
event.stopPropagation();
|
|
17
84
|
};
|
|
18
85
|
const content = /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
|
|
19
|
-
ref,
|
|
86
|
+
ref: pressGuard.ref,
|
|
87
|
+
onPointerDownOutside: pressGuard.onPointerDownOutside,
|
|
20
88
|
align,
|
|
21
89
|
sideOffset,
|
|
22
90
|
onWheel: handleWheel,
|
|
23
91
|
onTouchMove: handleTouchMove,
|
|
24
|
-
className: cn("z-50 w-72 rounded-2xl border bg-popover p-4 text-popover-foreground shadow-lg outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin)", className),
|
|
25
|
-
|
|
92
|
+
className: cn("z-50 w-72 rounded-[var(--espd-own-radius,var(--espd-radius-overlay,var(--radius-2xl)))] border bg-popover p-4 text-popover-foreground shadow-[shadow:var(--espd-own-elevation,var(--espd-elevation-overlay,var(--shadow-lg)))] outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin)", className),
|
|
93
|
+
style: axes.style,
|
|
94
|
+
...hover.contentProps(props)
|
|
26
95
|
});
|
|
27
96
|
return portal ? /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: content }) : content;
|
|
28
97
|
});
|
package/dist/core/select.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { cn } from "../utils/cn.js";
|
|
2
|
+
import { useStyleAxes } from "../utils/style-axes.js";
|
|
2
3
|
import { FieldLabelRow, fieldHintClassName } from "./field-label-row.js";
|
|
3
4
|
import * as React$1 from "react";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -9,8 +10,8 @@ var Select = SelectPrimitive.Root;
|
|
|
9
10
|
var SelectGroup = SelectPrimitive.Group;
|
|
10
11
|
var SelectValue = SelectPrimitive.Value;
|
|
11
12
|
var triggerSizeClasses = {
|
|
12
|
-
sm: "h-8 px-3 text-xs",
|
|
13
|
-
default: "h-10 px-3.5 py-2 text-base md:text-sm",
|
|
13
|
+
sm: "h-[var(--espd-control-height-sm,calc(var(--spacing)*8))] px-3 text-xs",
|
|
14
|
+
default: "h-[var(--espd-control-height-lg,calc(var(--spacing)*10))] px-3.5 py-2 text-base md:text-sm",
|
|
14
15
|
lg: "h-12 px-5 text-lg"
|
|
15
16
|
};
|
|
16
17
|
/**
|
|
@@ -19,8 +20,13 @@ var triggerSizeClasses = {
|
|
|
19
20
|
* Input shows matching icon dimensions whatever `size` they share.
|
|
20
21
|
*/
|
|
21
22
|
var triggerIconClassName = "size-4 shrink-0 opacity-50";
|
|
22
|
-
var SelectTrigger = React$1.forwardRef(({ className, children, size = "default", label, required, hintContent, error, errorContent, id, "aria-describedby": ariaDescribedBy, ...props }, ref) => {
|
|
23
|
+
var SelectTrigger = React$1.forwardRef(({ className, children, size = "default", label, required, hintContent, error, errorContent, id, "aria-describedby": ariaDescribedBy, radius, border, style, ...props }, ref) => {
|
|
23
24
|
const autoId = React$1.useId();
|
|
25
|
+
const axes = useStyleAxes({
|
|
26
|
+
radius,
|
|
27
|
+
border,
|
|
28
|
+
style
|
|
29
|
+
}, ["radius", "border"]);
|
|
24
30
|
const hasEnhancedProps = label !== void 0 || required !== void 0 || hintContent !== void 0 || error !== void 0 || errorContent !== void 0;
|
|
25
31
|
const hasError = error || !!errorContent;
|
|
26
32
|
const triggerId = id ?? (hasEnhancedProps ? autoId : void 0);
|
|
@@ -32,7 +38,8 @@ var SelectTrigger = React$1.forwardRef(({ className, children, size = "default",
|
|
|
32
38
|
"aria-required": required || void 0,
|
|
33
39
|
"aria-invalid": hasError || void 0,
|
|
34
40
|
"aria-describedby": describedBy,
|
|
35
|
-
className: cn("flex w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-background ring-offset-background transition-[box-shadow,border-color] duration-200 ease-in-out data-[placeholder]:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", triggerSizeClasses[size], hasError && "border-destructive focus-visible:ring-destructive", className),
|
|
41
|
+
className: cn("flex w-full items-center justify-between whitespace-nowrap rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background ring-offset-background transition-[box-shadow,border-color] duration-200 ease-in-out data-[placeholder]:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", triggerSizeClasses[size], hasError && "border-destructive focus-visible:ring-destructive", className),
|
|
42
|
+
style: axes.style,
|
|
36
43
|
...props,
|
|
37
44
|
children: [children, /* @__PURE__ */ jsx(SelectPrimitive.Icon, {
|
|
38
45
|
asChild: true,
|
|
@@ -95,21 +102,29 @@ function releaseFocusScrolledOutOfView(event) {
|
|
|
95
102
|
if (itemRect.top >= viewportRect.top && itemRect.bottom <= viewportRect.bottom) return;
|
|
96
103
|
viewport.closest("[role=\"listbox\"]")?.focus({ preventScroll: true });
|
|
97
104
|
}
|
|
98
|
-
var SelectContent = React$1.forwardRef(({ className, children, position = "popper", ...props }, ref) =>
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
var SelectContent = React$1.forwardRef(({ className, children, position = "popper", radius, elevation, style, ...props }, ref) => {
|
|
106
|
+
const axes = useStyleAxes({
|
|
107
|
+
radius,
|
|
108
|
+
elevation,
|
|
109
|
+
style
|
|
110
|
+
}, ["radius", "elevation"]);
|
|
111
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, {
|
|
112
|
+
ref,
|
|
113
|
+
className: cn("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-[var(--espd-own-radius,var(--espd-radius-overlay,var(--radius-2xl)))] border bg-popover px-1.5 py-2 text-popover-foreground shadow-[shadow:var(--espd-own-elevation,var(--espd-elevation-overlay,var(--shadow-lg)))] outline-none will-change-[opacity,transform] select-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-select-content-transform-origin)", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
|
|
114
|
+
position,
|
|
115
|
+
style: axes.style,
|
|
116
|
+
...props,
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
119
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Viewport, {
|
|
120
|
+
className: cn("p-0", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
121
|
+
onScroll: releaseFocusScrolledOutOfView,
|
|
122
|
+
children
|
|
123
|
+
}),
|
|
124
|
+
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
125
|
+
]
|
|
126
|
+
}) });
|
|
127
|
+
});
|
|
113
128
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
114
129
|
var SelectLabel = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Label, {
|
|
115
130
|
ref,
|
|
@@ -119,7 +134,7 @@ var SelectLabel = React$1.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
119
134
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
120
135
|
var SelectItem = React$1.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
|
|
121
136
|
ref,
|
|
122
|
-
className: cn("relative flex w-full cursor-default select-none items-center rounded-sm py-2 pl-2.5 pr-9 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
|
|
137
|
+
className: cn("relative flex w-full cursor-default select-none items-center rounded-[var(--espd-own-radius,var(--espd-radius-item,var(--radius-sm)))] py-2 pl-2.5 pr-9 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
|
|
123
138
|
...props,
|
|
124
139
|
children: [/* @__PURE__ */ jsx("span", {
|
|
125
140
|
className: "absolute right-2.5 flex h-3.5 w-3.5 items-center justify-center",
|
package/dist/core/table.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { cn } from "../utils/cn.js";
|
|
2
|
+
import { densityStyle } from "../utils/style-axes.js";
|
|
2
3
|
import * as React$1 from "react";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
//#region src/core/table.tsx
|
|
5
|
-
var Table = React$1.forwardRef(({ className, containerRef, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
6
|
+
var Table = React$1.forwardRef(({ className, containerRef, containerClassName, density, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
6
7
|
ref: containerRef,
|
|
7
8
|
"data-slot": "table-container",
|
|
9
|
+
style: densityStyle(density),
|
|
8
10
|
className: cn("relative w-full overflow-auto", containerClassName),
|
|
9
11
|
children: /* @__PURE__ */ jsx("table", {
|
|
10
12
|
ref,
|
|
@@ -39,13 +41,13 @@ var TableRow = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
39
41
|
TableRow.displayName = "TableRow";
|
|
40
42
|
var TableHead = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("th", {
|
|
41
43
|
ref,
|
|
42
|
-
className: cn("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className),
|
|
44
|
+
className: cn("h-[var(--espd-table-head-height,calc(var(--spacing)*10))] px-[var(--espd-table-cell-padding,calc(var(--spacing)*2))] text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className),
|
|
43
45
|
...props
|
|
44
46
|
}));
|
|
45
47
|
TableHead.displayName = "TableHead";
|
|
46
48
|
var TableCell = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("td", {
|
|
47
49
|
ref,
|
|
48
|
-
className: cn("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className),
|
|
50
|
+
className: cn("p-[var(--espd-table-cell-padding,calc(var(--spacing)*2))] align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className),
|
|
49
51
|
...props
|
|
50
52
|
}));
|
|
51
53
|
TableCell.displayName = "TableCell";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { cn } from "../../utils/cn.js";
|
|
2
|
+
import { useStyleAxes } from "../../utils/style-axes.js";
|
|
2
3
|
import * as React$1 from "react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
//#region src/core/textarea/textarea.tsx
|
|
@@ -8,7 +9,7 @@ var sizeClasses = {
|
|
|
8
9
|
default: "min-h-[80px] px-3 py-2 text-base md:text-sm",
|
|
9
10
|
lg: "min-h-[100px] px-4 py-3 text-lg"
|
|
10
11
|
};
|
|
11
|
-
var Textarea = React$1.forwardRef(({ className, label, size = "default", hintContent, error, errorContent, charLimit, onChange, value, defaultValue, id, required, placeholder, ...restProps }, ref) => {
|
|
12
|
+
var Textarea = React$1.forwardRef(({ className, label, size = "default", hintContent, error, errorContent, charLimit, onChange, value, defaultValue, id, required, placeholder, radius, border, style, ...restProps }, ref) => {
|
|
12
13
|
const autoId = React$1.useId();
|
|
13
14
|
const textareaId = id || autoId;
|
|
14
15
|
const [charCount, setCharCount] = React$1.useState(() => {
|
|
@@ -20,6 +21,11 @@ var Textarea = React$1.forwardRef(({ className, label, size = "default", hintCon
|
|
|
20
21
|
React$1.useEffect(() => {
|
|
21
22
|
if (charLimit !== void 0 && typeof value === "string") setCharCount(value.length);
|
|
22
23
|
}, [value, charLimit]);
|
|
24
|
+
const axes = useStyleAxes({
|
|
25
|
+
radius,
|
|
26
|
+
border,
|
|
27
|
+
style
|
|
28
|
+
}, ["radius", "border"]);
|
|
23
29
|
const hasEnhancedProps = label !== void 0 || hintContent !== void 0 || error !== void 0 || errorContent !== void 0 || charLimit !== void 0;
|
|
24
30
|
const hasError = error || !!errorContent;
|
|
25
31
|
const effectiveSize = size || "default";
|
|
@@ -30,7 +36,7 @@ var Textarea = React$1.forwardRef(({ className, label, size = "default", hintCon
|
|
|
30
36
|
const textareaElement = /* @__PURE__ */ jsx("textarea", {
|
|
31
37
|
id: textareaId,
|
|
32
38
|
ref,
|
|
33
|
-
className: cn("flex w-full rounded-md border border-input bg-background ring-offset-background transition-[box-shadow,border-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 resize-y", sizeClasses[effectiveSize], hasError && "border-destructive focus-visible:ring-destructive", className),
|
|
39
|
+
className: cn("flex w-full rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background ring-offset-background transition-[box-shadow,border-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 resize-y", sizeClasses[effectiveSize], hasError && "border-destructive focus-visible:ring-destructive", className),
|
|
34
40
|
required,
|
|
35
41
|
"aria-invalid": hasError || void 0,
|
|
36
42
|
"aria-describedby": errorContent ? `${textareaId}-error` : void 0,
|
|
@@ -39,17 +45,19 @@ var Textarea = React$1.forwardRef(({ className, label, size = "default", hintCon
|
|
|
39
45
|
defaultValue,
|
|
40
46
|
maxLength: charLimit,
|
|
41
47
|
placeholder,
|
|
48
|
+
style: axes.style,
|
|
42
49
|
...restProps
|
|
43
50
|
});
|
|
44
51
|
if (!hasEnhancedProps) return /* @__PURE__ */ jsx("textarea", {
|
|
45
52
|
ref,
|
|
46
53
|
id,
|
|
47
|
-
className: cn("flex min-h-[60px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background transition-[box-shadow,border-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm resize-y", className),
|
|
54
|
+
className: cn("flex min-h-[60px] w-full rounded-[var(--espd-own-radius,var(--espd-radius-control,var(--radius-md)))] border-[length:var(--espd-own-border-width,var(--espd-border-width-control,1px))] border-input bg-background px-3 py-2 text-base ring-offset-background transition-[box-shadow,border-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm resize-y", className),
|
|
48
55
|
required,
|
|
49
56
|
placeholder,
|
|
50
57
|
value,
|
|
51
58
|
defaultValue,
|
|
52
59
|
onChange,
|
|
60
|
+
style: axes.style,
|
|
53
61
|
...restProps
|
|
54
62
|
});
|
|
55
63
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { Calendar, CalendarDayButton } from '../components/calendar/index.js';
|
|
2
|
+
export { C as CalendarProps } from '../calendar.props-BtCzuWH1.js';
|
|
3
|
+
export { DatePicker, DatePickerProps } from '../components/date-picker/index.js';
|
|
4
|
+
export { DateRangePicker, DateRangePickerCommittedRange, DateRangePickerDraftRange, DateRangePickerPresetId, DateRangePickerProps, PRESET_IDS, PRESET_LABELS, ROLLING_PRESET_IDS, computeDateRange } from '../components/date-range-picker/index.js';
|
|
5
|
+
export { DateTimePicker, DateTimePickerProps } from '../components/date-time-picker/index.js';
|
|
6
|
+
export { TimePicker, TimePickerProps } from '../components/time-picker/index.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'react-day-picker';
|
|
9
|
+
import '../index-BQANnKs9.js';
|
|
10
|
+
import '../style-axes-DSQ2DGc5.js';
|
|
11
|
+
import '../input-CYI1hhGc.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Calendar, CalendarDayButton } from "../components/calendar/calendar.js";
|
|
2
|
+
import { DatePicker } from "../components/date-picker/date-picker.js";
|
|
3
|
+
import { TimePicker } from "../components/time-picker/time-picker.js";
|
|
4
|
+
import { DateTimePicker } from "../components/date-time-picker/date-time-picker.js";
|
|
5
|
+
import { PRESET_IDS, PRESET_LABELS, ROLLING_PRESET_IDS, computeDateRange } from "../components/date-range-picker/presets.js";
|
|
6
|
+
import { DateRangePicker } from "../components/date-range-picker/date-range-picker.js";
|
|
7
|
+
export { Calendar, CalendarDayButton, DatePicker, DateRangePicker, DateTimePicker, PRESET_IDS, PRESET_LABELS, ROLLING_PRESET_IDS, TimePicker, computeDateRange };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
+
import { C as Color } from './index-BQANnKs9.js';
|
|
3
|
+
import { f as Variant } from './variant-D81RhpbR.js';
|
|
4
|
+
|
|
5
|
+
type IconAvatarVariant = "legacy" | Variant;
|
|
6
|
+
interface IconAvatarRingProps {
|
|
7
|
+
show: boolean;
|
|
8
|
+
pulsate?: boolean;
|
|
9
|
+
color?: Color;
|
|
10
|
+
}
|
|
11
|
+
interface IconAvatarProps {
|
|
12
|
+
size?: number;
|
|
13
|
+
color?: Color;
|
|
14
|
+
variant?: IconAvatarVariant;
|
|
15
|
+
ring?: IconAvatarRingProps;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Extra classes applied to the inner disc after the variant/legacy styling.
|
|
20
|
+
* Useful for callers that need to override the disc surface (e.g. drawing a
|
|
21
|
+
* translucent-foreground bubble on top of a solid-color card).
|
|
22
|
+
*/
|
|
23
|
+
discClassName?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Inline style overrides applied to the inner disc after the variant/legacy
|
|
26
|
+
* styling. Takes precedence over the resolved variant `containerStyle`.
|
|
27
|
+
*/
|
|
28
|
+
discStyle?: CSSProperties;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type { IconAvatarProps as I, IconAvatarRingProps as a, IconAvatarVariant as b };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { C as Color, S as Size } from './index-BQANnKs9.js';
|
|
3
|
+
import { f as Variant } from './variant-D81RhpbR.js';
|
|
4
|
+
import { k as StyleAxisProps } from './style-axes-DSQ2DGc5.js';
|
|
5
|
+
import { b as IconAvatarVariant } from './icon-avatar.props-RYtw2eSW.js';
|
|
6
|
+
|
|
7
|
+
type IconTextActionCardVariant = Variant;
|
|
8
|
+
type IconTextActionCardActionsPlacement = "auto" | "below";
|
|
9
|
+
interface IconTextActionCardProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "title">, Pick<StyleAxisProps, "radius"> {
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
title?: ReactNode;
|
|
12
|
+
/** Secondary line below the title. */
|
|
13
|
+
description?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* When `true` and `title` is a string, keep the title on one line with ellipsis;
|
|
16
|
+
* show a tooltip if overflow. Ignored for React node titles.
|
|
17
|
+
*/
|
|
18
|
+
truncateTitle?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* When `true` and `description` is a string, same behavior as `truncateTitle`.
|
|
21
|
+
* Ignored for React node descriptions.
|
|
22
|
+
*/
|
|
23
|
+
truncateDescription?: boolean;
|
|
24
|
+
onClick?: ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
25
|
+
/**
|
|
26
|
+
* Trailing slot; replaces the chevron when the primary row is clickable without actions.
|
|
27
|
+
* With both `onClick` and `actions`, renders beside the primary hit target (not nested in it).
|
|
28
|
+
*/
|
|
29
|
+
actions?: ReactNode;
|
|
30
|
+
/** When `true`, show `actions` only while hovering the card container. */
|
|
31
|
+
showActionsOnlyOnHover?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Where `actions` sit, at every width:
|
|
34
|
+
* - `"auto"`: beside the text when they fit (the text keeps at least 12rem),
|
|
35
|
+
* otherwise on their own line below it.
|
|
36
|
+
* - `"below"`: always on their own line below the text, end-aligned.
|
|
37
|
+
*
|
|
38
|
+
* @default "auto"
|
|
39
|
+
*/
|
|
40
|
+
actionsPlacement?: IconTextActionCardActionsPlacement;
|
|
41
|
+
color?: Color;
|
|
42
|
+
iconAvatarVariant?: IconAvatarVariant;
|
|
43
|
+
/** Overrides the leading `IconAvatar` color. Defaults from card `variant` and `color`. */
|
|
44
|
+
iconAvatarColor?: Color;
|
|
45
|
+
size?: Size;
|
|
46
|
+
/**
|
|
47
|
+
* `solid` / `soft` / `outline` / `gradient` — see `resolveVariantStyles`
|
|
48
|
+
* in `@/utils/variant` for the canonical token mapping.
|
|
49
|
+
*/
|
|
50
|
+
variant?: IconTextActionCardVariant;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type { IconTextActionCardActionsPlacement as I, IconTextActionCardProps as a, IconTextActionCardVariant as b };
|