@espressif/dashboard-ui-components 1.11.2 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/rules/dashboard-ui-consumption.md +176 -5
- package/.cursor/rules/dashboard-ui-consumption.mdc +163 -4
- package/CHANGELOG.md +1005 -0
- package/README.md +240 -7
- package/THIRD-PARTY-NOTICES.md +2 -1
- package/dist/alert.props-CcKo49Rb.d.ts +44 -0
- package/dist/animation/index.d.ts +3 -0
- package/dist/animation/index.js +3 -0
- package/dist/avatar.props-2q5BsX-R.d.ts +29 -0
- package/dist/button-BK-DIR_L.d.ts +21 -0
- package/dist/button-BxJ7s6sR.d.ts +76 -0
- package/dist/calendar.props-BtCzuWH1.d.ts +12 -0
- package/dist/carousel/index.d.ts +2 -0
- package/dist/carousel/index.js +2 -0
- package/dist/charts/index.d.ts +5 -0
- package/dist/charts/index.js +9 -0
- package/dist/common/app-logo/app-logo.js +1 -1
- package/dist/common/index.d.ts +9 -20
- package/dist/common/my-account-menu/my-account-menu.js +45 -13
- package/dist/common/profile-card/profile-card.js +3 -2
- package/dist/components/accordion/accordion.js +14 -5
- package/dist/components/accordion/index.d.ts +36 -0
- package/dist/components/accordion/index.js +2 -0
- package/dist/components/advanced-search-box/advanced-search-box.js +8 -2
- package/dist/components/advanced-search-box/index.d.ts +29 -0
- package/dist/components/advanced-search-box/index.js +2 -0
- package/dist/components/alert/alert.js +2 -1
- package/dist/components/alert/index.d.ts +12 -0
- package/dist/components/alert/index.js +2 -0
- package/dist/components/anchored-panel/anchored-panel.js +83 -0
- package/dist/components/anchored-panel/index.d.ts +31 -0
- package/dist/components/anchored-panel/index.js +2 -0
- package/dist/components/animated-containers/index.d.ts +13 -0
- package/dist/components/animated-containers/index.js +2 -0
- package/dist/components/async-multi-select/async-multi-select.js +48 -7
- package/dist/components/async-multi-select/index.d.ts +63 -0
- package/dist/components/async-multi-select/index.js +2 -0
- package/dist/components/avatar/avatar.js +11 -4
- package/dist/components/avatar/index.d.ts +8 -0
- package/dist/components/avatar/index.js +2 -0
- package/dist/components/avatar-group/avatar-group.js +35 -0
- package/dist/components/avatar-group/index.d.ts +31 -0
- package/dist/components/avatar-group/index.js +2 -0
- package/dist/components/badge/index.d.ts +14 -0
- package/dist/components/badge/index.js +2 -0
- package/dist/components/breadcrumb/index.d.ts +21 -0
- package/dist/components/breadcrumb/index.js +2 -0
- package/dist/components/bubble/bubble.js +18 -0
- package/dist/components/bubble/index.d.ts +19 -0
- package/dist/components/bubble/index.js +2 -0
- package/dist/components/button/button.js +87 -25
- package/dist/components/button/flash-button.js +9 -3
- package/dist/components/button/index.d.ts +56 -0
- package/dist/components/button/index.js +6 -0
- package/dist/components/button-group/index.d.ts +16 -0
- package/dist/components/button-group/index.js +2 -0
- package/dist/components/calendar/calendar.js +5 -5
- package/dist/components/calendar/index.d.ts +11 -0
- package/dist/components/calendar/index.js +2 -0
- package/dist/components/card/index.d.ts +11 -0
- package/dist/components/card/index.js +2 -0
- package/dist/components/card-rail/card-rail.js +50 -0
- package/dist/components/card-rail/index.d.ts +30 -0
- package/dist/components/card-rail/index.js +2 -0
- package/dist/components/cards/collapsible-card.js +5 -2
- package/dist/components/cards/index.d.ts +16200 -0
- package/dist/components/cards/index.js +8 -0
- package/dist/components/cards/section-card.js +133 -8
- package/dist/components/cards/simple-card.js +5 -2
- package/dist/components/carousel/carousel.js +137 -49
- package/dist/components/carousel/index.d.ts +130 -0
- package/dist/components/carousel/index.js +2 -0
- package/dist/components/category-card/category-card.js +111 -0
- package/dist/components/category-card/index.d.ts +55 -0
- package/dist/components/category-card/index.js +2 -0
- package/dist/components/chart/area-chart.js +95 -85
- package/dist/components/chart/bar-chart.js +123 -60
- package/dist/components/chart/chart.js +127 -3
- package/dist/components/chart/composed-chart.js +109 -98
- package/dist/components/chart/donut-chart.js +23 -5
- package/dist/components/chart/index.d.ts +732 -0
- package/dist/components/chart/index.js +9 -0
- package/dist/components/chart/line-chart.js +93 -83
- package/dist/components/chart/treemap-chart.js +71 -58
- package/dist/components/check-badge/check-badge.js +25 -0
- package/dist/components/check-badge/index.d.ts +13 -0
- package/dist/components/check-badge/index.js +2 -0
- package/dist/components/checkbox/index.d.ts +8 -0
- package/dist/components/checkbox/index.js +2 -0
- package/dist/components/choice-card/choice-card.js +99 -0
- package/dist/components/choice-card/index.d.ts +41 -0
- package/dist/components/choice-card/index.js +2 -0
- package/dist/components/circular-progress/circular-progress.js +5 -2
- package/dist/components/circular-progress/index.d.ts +23 -0
- package/dist/components/circular-progress/index.js +2 -0
- package/dist/components/code/index.d.ts +40 -0
- package/dist/components/code/index.js +2 -0
- package/dist/components/code-editor/code-editor.js +9 -3
- package/dist/components/code-editor/index.d.ts +82 -0
- package/dist/components/code-editor/index.js +2 -0
- package/dist/components/collapsible/index.d.ts +42 -0
- package/dist/components/collapsible/index.js +2 -0
- package/dist/components/column-panel/column-panel.js +38 -0
- package/dist/components/column-panel/index.d.ts +37 -0
- package/dist/components/column-panel/index.js +3 -0
- package/dist/components/column-panel/use-panel-flag.js +27 -0
- package/dist/components/combobox/index.d.ts +28 -0
- package/dist/components/combobox/index.js +2 -0
- package/dist/components/confirmation-dialog/confirmation-dialog.js +1 -1
- package/dist/components/confirmation-dialog/index.d.ts +40 -0
- package/dist/components/confirmation-dialog/index.js +3 -0
- package/dist/components/content-container/index.d.ts +16 -0
- package/dist/components/content-container/index.js +2 -0
- package/dist/components/copiable-text/index.d.ts +33 -0
- package/dist/components/copiable-text/index.js +2 -0
- package/dist/components/coverflow/_constants/coverflow-poses.js +23 -0
- package/dist/components/coverflow/_constants/coverflow-shapes.js +23 -0
- package/dist/components/coverflow/_hooks/use-coverflow.js +90 -0
- package/dist/components/coverflow/_utils/ring.js +24 -0
- package/dist/components/coverflow/coverflow.js +198 -0
- package/dist/components/coverflow/index.d.ts +105 -0
- package/dist/components/coverflow/index.js +2 -0
- package/dist/components/data-table/data-table.js +9 -2
- package/dist/components/data-table/index.d.ts +120 -0
- package/dist/components/data-table/index.js +3 -0
- package/dist/components/date-picker/date-picker.js +5 -2
- package/dist/components/date-picker/index.d.ts +50 -0
- package/dist/components/date-picker/index.js +2 -0
- package/dist/components/date-range-picker/date-range-picker.js +11 -2
- package/dist/components/date-range-picker/index.d.ts +100 -0
- package/dist/components/date-range-picker/index.js +3 -0
- package/dist/components/date-time-picker/date-time-picker.js +5 -2
- package/dist/components/date-time-picker/index.d.ts +79 -0
- package/dist/components/date-time-picker/index.js +2 -0
- package/dist/components/device-icon/index.d.ts +17 -0
- package/dist/components/device-icon/index.js +2 -0
- package/dist/components/dialog/index.d.ts +38 -0
- package/dist/components/dialog/index.js +2 -0
- package/dist/components/dropdown-menu/index.d.ts +57 -0
- package/dist/components/dropdown-menu/index.js +2 -0
- package/dist/components/dynamic-list/dynamic-list.js +4 -4
- package/dist/components/dynamic-list/index.d.ts +74 -0
- package/dist/components/dynamic-list/index.js +2 -0
- package/dist/components/error-display/index.d.ts +17 -0
- package/dist/components/error-display/index.js +3 -0
- package/dist/components/expandable-text/expandable-text-overlay.js +78 -0
- package/dist/components/expandable-text/expandable-text.js +73 -0
- package/dist/components/expandable-text/index.d.ts +39 -0
- package/dist/components/expandable-text/index.js +2 -0
- package/dist/components/expandable-text/use-clamped.js +23 -0
- package/dist/components/facet-filters/_hooks/use-filter-group.js +51 -0
- package/dist/components/facet-filters/active-filters.js +31 -0
- package/dist/components/facet-filters/filter-group.js +110 -0
- package/dist/components/facet-filters/filters-panel.js +59 -0
- package/dist/components/facet-filters/filters-pill.js +40 -0
- package/dist/components/facet-filters/index.d.ts +104 -0
- package/dist/components/facet-filters/index.js +6 -0
- package/dist/components/facet-filters/use-filters-collapsed.js +21 -0
- package/dist/components/feature-grid/feature-grid.js +115 -0
- package/dist/components/feature-grid/index.d.ts +53 -0
- package/dist/components/feature-grid/index.js +2 -0
- package/dist/components/file-input/file-input.js +9 -3
- package/dist/components/file-input/index.d.ts +78 -0
- package/dist/components/file-input/index.js +2 -0
- package/dist/components/file-upload/file-upload.js +10 -5
- package/dist/components/file-upload/index.d.ts +38 -0
- package/dist/components/file-upload/index.js +2 -0
- package/dist/components/filters-bar/filters-bar.js +5 -1
- package/dist/components/filters-bar/index.d.ts +26 -0
- package/dist/components/filters-bar/index.js +2 -0
- package/dist/components/flip-card/flip-card.js +147 -0
- package/dist/components/flip-card/index.d.ts +43 -0
- package/dist/components/flip-card/index.js +2 -0
- package/dist/components/floating-window/_hooks/use-drag-move.js +76 -0
- package/dist/components/floating-window/floating-window.js +97 -0
- package/dist/components/floating-window/index.d.ts +45 -0
- package/dist/components/floating-window/index.js +2 -0
- package/dist/components/form/index.d.ts +28 -0
- package/dist/components/form/index.js +2 -0
- package/dist/components/fullscreen-dialog/fullscreen-dialog.js +6 -2
- package/dist/components/fullscreen-dialog/index.d.ts +38 -0
- package/dist/components/fullscreen-dialog/index.js +2 -0
- package/dist/components/horizontal-stepper/horizontal-stepper.js +122 -0
- package/dist/components/horizontal-stepper/index.d.ts +70 -0
- package/dist/components/horizontal-stepper/index.js +2 -0
- package/dist/components/icon-avatar/index.d.ts +9 -0
- package/dist/components/icon-avatar/index.js +2 -0
- package/dist/components/icon-text-action-card/icon-text-action-card.js +9 -5
- package/dist/components/icon-text-action-card/index.d.ts +11 -0
- package/dist/components/icon-text-action-card/index.js +2 -0
- package/dist/components/identicon/identicon.js +33 -0
- package/dist/components/identicon/index.d.ts +26 -0
- package/dist/components/identicon/index.js +2 -0
- package/dist/components/illustration/index.d.ts +37 -0
- package/dist/components/illustration/index.js +3 -0
- package/dist/components/index.d.ts +177 -19529
- package/dist/components/index.js +61 -10
- package/dist/components/input/index.d.ts +15 -0
- package/dist/components/input/index.js +3 -0
- package/dist/components/input-group/index.d.ts +35 -0
- package/dist/components/input-group/index.js +2 -0
- package/dist/components/input-group/input-group.js +41 -0
- package/dist/components/input-otp/index.d.ts +63 -0
- package/dist/components/input-otp/index.js +2 -0
- package/dist/components/key-value-manager/index.d.ts +63 -0
- package/dist/components/key-value-manager/index.js +2 -0
- package/dist/components/key-value-manager/key-value-manager-table.js +7 -5
- package/dist/components/label/index.d.ts +8 -0
- package/dist/components/label/index.js +2 -0
- package/dist/components/link/index.d.ts +33 -0
- package/dist/components/link/index.js +2 -0
- package/dist/components/list/index.d.ts +9 -0
- package/dist/components/list/index.js +3 -0
- package/dist/components/list/list-item.utils.js +1 -1
- package/dist/components/list/list.js +3 -1
- package/dist/components/list-details/index.d.ts +51 -0
- package/dist/components/list-details/index.js +2 -0
- package/dist/components/list-details/list-details.js +5 -2
- package/dist/components/lottie-animation-container/index.d.ts +10 -0
- package/dist/components/lottie-animation-container/index.js +2 -0
- package/dist/components/lottie-animation-container/lottie-animation-container.js +22 -3
- package/dist/components/lottie-animations/index.d.ts +8 -0
- package/dist/components/lottie-animations/index.js +2 -0
- package/dist/components/markdown-content/index.d.ts +32 -0
- package/dist/components/markdown-content/index.js +2 -0
- package/dist/components/media-card/index.d.ts +125 -0
- package/dist/components/media-card/index.js +4 -0
- package/dist/components/media-card/media-card-image.js +59 -0
- package/dist/components/media-card/media-card-reveal.js +76 -0
- package/dist/components/media-card/media-card.classes.js +37 -0
- package/dist/components/media-card/media-card.js +91 -0
- package/dist/components/media-stage/index.d.ts +41 -0
- package/dist/components/media-stage/index.js +2 -0
- package/dist/components/media-stage/media-stage.js +48 -0
- package/dist/components/menu/index.d.ts +14 -0
- package/dist/components/menu/index.js +2 -0
- package/dist/components/message-scroller/_hooks/use-follow-bottom.js +85 -0
- package/dist/components/message-scroller/index.d.ts +29 -0
- package/dist/components/message-scroller/index.js +2 -0
- package/dist/components/message-scroller/message-scroller.js +65 -0
- package/dist/components/mini-bar-chart/index.d.ts +40 -0
- package/dist/components/mini-bar-chart/index.js +2 -0
- package/dist/components/mini-bar-chart/mini-bar-chart.js +93 -0
- package/dist/components/monospace-content/index.d.ts +43 -0
- package/dist/components/monospace-content/index.js +2 -0
- package/dist/components/monospace-content/monospace-content.js +1 -1
- package/dist/components/nav-bar/index.d.ts +148 -0
- package/dist/components/nav-bar/index.js +2 -0
- package/dist/components/nav-bar/nav-bar-details-panel.js +158 -44
- package/dist/components/nav-bar/nav-bar-mobile-menu.js +93 -27
- package/dist/components/nav-bar/nav-bar.js +256 -138
- package/dist/components/nav-bar/use-nav-bar-hover-details.js +80 -0
- package/dist/components/nav-bar/use-nav-bar-overflow.js +5 -5
- package/dist/components/notice-strip/index.d.ts +32 -0
- package/dist/components/notice-strip/index.js +2 -0
- package/dist/components/notice-strip/notice-strip.js +57 -0
- package/dist/components/option-card-group/index.d.ts +50 -0
- package/dist/components/option-card-group/index.js +2 -0
- package/dist/components/option-card-group/option-card-group.js +76 -0
- package/dist/components/overflow-badge-list/index.d.ts +63 -0
- package/dist/components/overflow-badge-list/index.js +2 -0
- package/dist/components/overflow-badge-list/overflow-badge-list.js +78 -19
- package/dist/components/page-banner/index.d.ts +33 -0
- package/dist/components/page-banner/index.js +2 -0
- package/dist/components/page-banner/page-banner.js +56 -0
- package/dist/components/page-container/index.d.ts +20 -0
- package/dist/components/page-container/index.js +3 -0
- package/dist/components/page-container/page-container.js +5 -5
- package/dist/components/pagination/index.d.ts +31 -0
- package/dist/components/pagination/index.js +3 -0
- package/dist/components/popover/index.d.ts +60 -0
- package/dist/components/popover/index.js +3 -0
- package/dist/components/preview-card/index.d.ts +24 -0
- package/dist/components/preview-card/index.js +2 -0
- package/dist/components/progress-bar/index.d.ts +32 -0
- package/dist/components/progress-bar/index.js +2 -0
- package/dist/components/progress-bar/progress-bar.js +22 -6
- package/dist/components/radio-group/index.d.ts +24 -0
- package/dist/components/radio-group/index.js +2 -0
- package/dist/components/rank-numeral/index.d.ts +30 -0
- package/dist/components/rank-numeral/index.js +2 -0
- package/dist/components/rank-numeral/rank-numeral.js +26 -0
- package/dist/components/reaction-button/index.d.ts +32 -0
- package/dist/components/reaction-button/index.js +2 -0
- package/dist/components/reaction-button/reaction-button.js +50 -0
- package/dist/components/readout/index.d.ts +31 -0
- package/dist/components/readout/index.js +2 -0
- package/dist/components/readout/readout.js +63 -0
- package/dist/components/requirement-list/index.d.ts +52 -0
- package/dist/components/requirement-list/index.js +2 -0
- package/dist/components/requirement-list/requirement-list.js +29 -8
- package/dist/components/resizable/index.d.ts +31 -0
- package/dist/components/resizable/index.js +4 -0
- package/dist/components/resizable/resizable-group.js +23 -0
- package/dist/components/resizable/resizable-panel.js +28 -0
- package/dist/components/resizable/resizable-separator.js +24 -0
- package/dist/components/reveal/index.d.ts +23 -0
- package/dist/components/reveal/index.js +2 -0
- package/dist/components/reveal/reveal.js +24 -0
- package/dist/components/scroll-area/index.d.ts +27 -0
- package/dist/components/scroll-area/index.js +2 -0
- package/dist/components/scrollable-sections/index.d.ts +58 -0
- package/dist/components/scrollable-sections/index.js +2 -0
- package/dist/components/scrollable-sections/scrollable-sections.js +11 -3
- package/dist/components/search-box/index.d.ts +32 -0
- package/dist/components/search-box/index.js +2 -0
- package/dist/components/search-box/search-box.js +18 -3
- package/dist/components/search-field-shell.js +1 -1
- package/dist/components/select/index.d.ts +44 -0
- package/dist/components/select/index.js +2 -0
- package/dist/components/selectable-card-list/checkbox-card-list.js +5 -3
- package/dist/components/selectable-card-list/index.d.ts +76 -0
- package/dist/components/selectable-card-list/index.js +2 -0
- package/dist/components/selectable-card-list/radio-card-list.js +12 -6
- package/dist/components/selectable-card-list/selectable-card-list-shared.js +24 -12
- package/dist/components/selectable-card-list/selectable-card-list.js +12 -3
- package/dist/components/separator/index.d.ts +24 -0
- package/dist/components/separator/index.js +2 -0
- package/dist/components/share-menu/index.d.ts +55 -0
- package/dist/components/share-menu/index.js +2 -0
- package/dist/components/share-menu/share-marks.js +31 -0
- package/dist/components/share-menu/share-menu.js +140 -0
- package/dist/components/share-menu/share-urls.js +15 -0
- package/dist/components/sheet/index.d.ts +41 -0
- package/dist/components/sheet/index.js +2 -0
- package/dist/components/showcase-card/index.d.ts +53 -0
- package/dist/components/showcase-card/index.js +2 -0
- package/dist/components/showcase-card/showcase-card.js +75 -0
- package/dist/components/sidebar/index.d.ts +109 -0
- package/dist/components/sidebar/index.js +4 -0
- package/dist/components/sidebar/sidebar.js +56 -40
- package/dist/components/simple-clickable-card/index.d.ts +11 -0
- package/dist/components/simple-clickable-card/index.js +2 -0
- package/dist/components/simple-clickable-card/simple-clickable-card-shared.js +2 -2
- package/dist/components/simple-clickable-card/simple-clickable-card.js +5 -2
- package/dist/components/simple-info-card/index.d.ts +25 -0
- package/dist/components/simple-info-card/index.js +2 -0
- package/dist/components/simple-info-card/simple-info-card.js +6 -3
- package/dist/components/simple-list/index.d.ts +63 -0
- package/dist/components/simple-list/index.js +2 -0
- package/dist/components/simple-list/simple-list.js +3 -1
- package/dist/components/simple-paginated-list/index.d.ts +20 -0
- package/dist/components/simple-paginated-list/index.js +2 -0
- package/dist/components/simplified-date/index.d.ts +18 -0
- package/dist/components/simplified-date/index.js +2 -0
- package/dist/components/skeleton/index.d.ts +5 -0
- package/dist/components/skeleton/index.js +2 -0
- package/dist/components/skeletons/index.d.ts +11 -0
- package/dist/components/skeletons/index.js +2 -0
- package/dist/components/sort-menu/index.d.ts +34 -0
- package/dist/components/sort-menu/index.js +2 -0
- package/dist/components/sort-menu/sort-menu.js +39 -0
- package/dist/components/spinner/index.d.ts +15 -0
- package/dist/components/spinner/index.js +2 -0
- package/dist/components/stat-card/index.d.ts +43 -0
- package/dist/components/stat-card/index.js +2 -0
- package/dist/components/stat-card/stat-card.js +31 -12
- package/dist/components/status-badge/index.d.ts +24 -0
- package/dist/components/status-badge/index.js +2 -0
- package/dist/components/status-badge/status-badge.js +3 -2
- package/dist/components/status-card-list/index.d.ts +24 -0
- package/dist/components/status-card-list/index.js +2 -0
- package/dist/components/status-card-list/status-card-list.js +8 -4
- package/dist/components/step-tabs/index.d.ts +94 -0
- package/dist/components/step-tabs/index.js +2 -0
- package/dist/components/step-tabs/step-tabs.js +202 -0
- package/dist/components/style-scope/index.d.ts +32 -0
- package/dist/components/style-scope/index.js +2 -0
- package/dist/components/style-scope/style-scope.js +49 -0
- package/dist/components/switch/index.d.ts +15 -0
- package/dist/components/switch/index.js +2 -0
- package/dist/components/table/index.d.ts +18 -0
- package/dist/components/table/index.js +2 -0
- package/dist/components/tabs/index.d.ts +103 -0
- package/dist/components/tabs/index.js +2 -0
- package/dist/components/tag/index.d.ts +31 -0
- package/dist/components/tag/index.js +2 -0
- package/dist/components/tag/tag.js +79 -28
- package/dist/components/tag-input/index.d.ts +36 -0
- package/dist/components/tag-input/index.js +2 -0
- package/dist/components/tag-input/tag-input.js +10 -4
- package/dist/components/text-effects/index.d.ts +53 -0
- package/dist/components/text-effects/index.js +6 -0
- package/dist/components/textarea/index.d.ts +16 -0
- package/dist/components/textarea/index.js +2 -0
- package/dist/components/thumbnail-strip/index.d.ts +42 -0
- package/dist/components/thumbnail-strip/index.js +2 -0
- package/dist/components/thumbnail-strip/thumbnail-strip.js +124 -0
- package/dist/components/thumbnail-strip/use-scroll-edges.js +41 -0
- package/dist/components/time-picker/index.d.ts +13 -0
- package/dist/components/time-picker/index.js +2 -0
- package/dist/components/timeline/index.d.ts +39 -0
- package/dist/components/timeline/index.js +2 -0
- package/dist/components/timeline/timeline.js +85 -0
- package/dist/components/toast/index.d.ts +56 -0
- package/dist/components/toast/index.js +2 -0
- package/dist/components/toast/toast.js +42 -32
- package/dist/components/togglable-items-list/index.d.ts +28 -0
- package/dist/components/togglable-items-list/index.js +2 -0
- package/dist/components/toggle-group/index.d.ts +35 -0
- package/dist/components/toggle-group/index.js +2 -0
- package/dist/components/toolbar/index.d.ts +58 -0
- package/dist/components/toolbar/index.js +3 -0
- package/dist/components/toolbar/toolbar-button.js +40 -0
- package/dist/components/toolbar/toolbar.js +56 -0
- package/dist/components/tooltip/index.d.ts +29 -0
- package/dist/components/tooltip/index.js +3 -0
- package/dist/components/tooltip/tooltip.js +12 -2
- package/dist/components/transfer-list/index.d.ts +36 -0
- package/dist/components/transfer-list/index.js +2 -0
- package/dist/components/transfer-list/transfer-list.js +1 -1
- package/dist/components/truncated-line-with-tooltip/index.d.ts +22 -0
- package/dist/components/truncated-line-with-tooltip/index.js +2 -0
- package/dist/components/truncated-line-with-tooltip/truncated-line-with-tooltip.js +26 -8
- package/dist/components/typography/index.d.ts +19 -0
- package/dist/components/typography/index.js +3 -0
- package/dist/components/use-mobile/index.d.ts +3 -0
- package/dist/components/use-mobile/index.js +2 -0
- package/dist/components/user-type-badge/index.d.ts +39 -0
- package/dist/components/user-type-badge/index.js +3 -0
- package/dist/components/user-type-badge/user-type-badge.js +2 -1
- package/dist/components/vertical-stepper/index.d.ts +7 -0
- package/dist/components/vertical-stepper/index.js +2 -0
- package/dist/components/vertical-stepper/vertical-stepper.js +33 -6
- package/dist/components/view-toggle/index.d.ts +38 -0
- package/dist/components/view-toggle/index.js +2 -0
- package/dist/components/view-toggle/view-toggle.js +56 -0
- package/dist/core/animate-ui/components/animate/code.js +83 -9
- package/dist/core/animate-ui/components/animate/tabs.js +234 -19
- package/dist/core/animate-ui/components/animate/tooltip.js +10 -2
- package/dist/core/animate-ui/components/base/preview-card.js +20 -3
- package/dist/core/animate-ui/components/buttons/copy.js +12 -6
- package/dist/core/animate-ui/components/radix/dialog.js +17 -3
- package/dist/core/animate-ui/components/radix/dropdown-menu.js +26 -9
- package/dist/core/animate-ui/components/radix/sheet.js +20 -4
- package/dist/core/animate-ui/components/radix/sidebar.js +9 -9
- package/dist/core/animate-ui/components/radix/toggle-group.js +103 -13
- package/dist/core/animate-ui/components/radix/toggle.js +5 -5
- package/dist/core/animate-ui/primitives/animate/code-block.js +31 -4
- package/dist/core/animate-ui/primitives/animate/shiki-highlighter.js +5 -2
- package/dist/core/animate-ui/primitives/animate/tabs.js +7 -4
- package/dist/core/animate-ui/primitives/animate/tooltip.js +10 -3
- package/dist/core/animate-ui/primitives/base/preview-card.js +2 -2
- package/dist/core/animate-ui/primitives/base/progress.js +1 -1
- package/dist/core/animate-ui/primitives/base/radio.js +3 -3
- package/dist/core/animate-ui/primitives/effects/highlight.js +1 -0
- package/dist/core/animate-ui/primitives/radix/accordion.js +1 -1
- package/dist/core/animate-ui/primitives/radix/dialog.js +6 -3
- package/dist/core/animate-ui/primitives/radix/dropdown-menu.js +2 -2
- package/dist/core/animate-ui/primitives/radix/sheet.js +7 -3
- package/dist/core/animate-ui/primitives/radix/switch.js +2 -2
- package/dist/core/animate-ui/primitives/radix/toggle-group.js +2 -2
- package/dist/core/badge.js +5 -2
- package/dist/core/breadcrumb.js +1 -1
- package/dist/core/button/button.js +8 -8
- package/dist/core/button/craft-button.js +8 -2
- package/dist/core/button.js +17 -7
- package/dist/core/card.js +23 -5
- package/dist/core/combobox/combobox.js +8 -2
- package/dist/core/command.js +3 -3
- package/dist/core/form.js +1 -1
- package/dist/core/hooks/use-nested-layer-press-guard.js +46 -0
- package/dist/core/hooks/use-on-screen.js +33 -0
- package/dist/core/hooks/use-prefers-reduced-motion.js +19 -0
- package/dist/core/hooks/use-scroll-overflow.js +20 -0
- package/dist/core/index.d.ts +30 -5
- package/dist/core/index.js +5 -2
- package/dist/core/input/input-password.js +13 -9
- package/dist/core/input/input.js +38 -12
- package/dist/core/input-otp/input-otp.js +9 -5
- package/dist/core/popover-group.js +48 -0
- package/dist/core/popover-hover.js +127 -0
- package/dist/core/popover.js +75 -6
- package/dist/core/select.js +35 -20
- package/dist/core/table.js +5 -3
- package/dist/core/textarea/textarea.js +11 -3
- package/dist/data-table/index.d.ts +4 -0
- package/dist/data-table/index.js +3 -0
- package/dist/date/index.d.ts +11 -0
- package/dist/date/index.js +7 -0
- package/dist/forms/index.d.ts +4 -0
- package/dist/forms/index.js +2 -0
- package/dist/icon-avatar.props-RYtw2eSW.d.ts +31 -0
- package/dist/icon-text-action-card.props-B2ggncUK.d.ts +53 -0
- package/dist/index.d.ts +169 -15
- package/dist/index.js +63 -10
- package/dist/input-CYI1hhGc.d.ts +38 -0
- package/dist/layouts/index.d.ts +132 -8
- package/dist/layouts/index.js +3 -1
- package/dist/layouts/minimal-workspace-layout/minimal-workspace-layout-context.js +5 -0
- package/dist/layouts/minimal-workspace-layout/minimal-workspace-layout.js +404 -0
- package/dist/layouts/minimal-workspace-layout/rail-logo.js +90 -0
- package/dist/layouts/minimal-workspace-layout/sidebar-trigger.js +42 -0
- package/dist/layouts/shared/account-menu-props.js +21 -0
- package/dist/layouts/shared/footer-branding.js +34 -0
- package/dist/layouts/shared/sidebar-logo.js +59 -0
- package/dist/layouts/workspace-layout/account-menu/account-menu.js +9 -3
- package/dist/layouts/workspace-layout/footer/footer.js +1 -1
- package/dist/layouts/workspace-layout/header/header.js +1 -1
- package/dist/layouts/workspace-layout/workspace-layout.js +28 -80
- package/dist/{list.props-x1j3CbcF.d.ts → list.props-DP_xPTqU.d.ts} +2 -1
- package/dist/markdown/index.d.ts +11 -0
- package/dist/markdown/index.js +5 -0
- package/dist/my-account-menu.props-C7DK71WC.d.ts +67 -0
- package/dist/page-container.props-JutTvKFq.d.ts +48 -0
- package/dist/resizable.props-RxFY5tm_.d.ts +44 -0
- package/dist/section-card-B7c5uc08.d.ts +84 -0
- package/dist/simple-clickable-card.props-BrPCw7CR.d.ts +51 -0
- package/dist/slot-DGErA9zi.d.ts +10 -0
- package/dist/status-badge.props-lKlEOfRt.d.ts +32 -0
- package/dist/style-axes-DSQ2DGc5.d.ts +133 -0
- package/dist/toast/index.d.ts +6 -0
- package/dist/toast/index.js +2 -0
- package/dist/tooltip-C0bYa8a3.d.ts +37 -0
- package/dist/{types-DtUxK-Am.d.ts → types-CkXflqg7.d.ts} +31 -1
- package/dist/utils/cn.js +6 -1
- package/dist/utils/color.js +35 -10
- package/dist/utils/index.d.ts +18 -2
- package/dist/utils/index.js +4 -1
- package/dist/utils/silver-shine.js +16 -1
- package/dist/utils/style-axes.js +227 -0
- package/dist/utils/variant.js +104 -8
- package/dist/utils/view-transition.js +21 -0
- package/dist/variant-D81RhpbR.d.ts +104 -0
- package/dist/vertical-stepper.props-BXYcbW70.d.ts +29 -0
- package/package.json +52 -6
- package/src/styles/colors.css +100 -4
- package/src/styles/globals.css +8 -131
- package/src/styles/style-axes.css +21 -0
- package/src/styles/theme.css +696 -0
- package/dist/app-logo.props-Ct7QBdTd.d.ts +0 -40
- package/dist/popover-ByLD3-Qv.d.ts +0 -204
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { PRESET_GRADIENT_BACKDROP, PRESET_GRADIENT_FRAME, VARIANTS, VARIANT_GRADIENT_BACKDROP_BASE, VARIANT_GRADIENT_DURATION_CLASS, VARIANT_GRADIENT_HOVER_OVERLAY_CLASS, VARIANT_GRADIENT_TRANSITION_DURATION_MS, arbitraryGradientBackgroundImage, resolveVariantStyles } from "../utils/variant.js";
|
|
1
|
+
import { PRESET_GRADIENT_BACKDROP, PRESET_GRADIENT_FRAME, VARIANTS, VARIANT_GRADIENT_BACKDROP_BASE, VARIANT_GRADIENT_DURATION_CLASS, VARIANT_GRADIENT_HOVER_OVERLAY_CLASS, VARIANT_GRADIENT_TRANSITION_DURATION_MS, arbitraryGradientBackgroundImage, listVariants, registerVariant, resolveVariantStyles } from "../utils/variant.js";
|
|
2
|
+
import { BORDERS, DENSITIES, ELEVATIONS, RADII, densityStyle, listStyleValues, registerDensity, registerStyleValue, resolveDensity, resolveStyleValue, useStyleAxes } from "../utils/style-axes.js";
|
|
3
|
+
import { StyleScope } from "./style-scope/style-scope.js";
|
|
4
|
+
import { Tooltip as Tooltip$1, TooltipContent, TooltipProvider, TooltipTrigger } from "../core/animate-ui/components/animate/tooltip.js";
|
|
5
|
+
import { TruncatedLineWithTooltip } from "./truncated-line-with-tooltip/truncated-line-with-tooltip.js";
|
|
2
6
|
import { Accordion } from "./accordion/accordion.js";
|
|
3
7
|
import Avatar from "./avatar/avatar.js";
|
|
8
|
+
import AvatarGroup from "./avatar-group/avatar-group.js";
|
|
4
9
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "../core/animate-ui/components/radix/dropdown-menu.js";
|
|
5
10
|
import { LIST_CLASS_NAMES } from "./list/list.props.js";
|
|
6
11
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../core/collapsible.js";
|
|
@@ -13,7 +18,6 @@ import { Illustration } from "./illustration/illustration.js";
|
|
|
13
18
|
import NoDataCard from "./cards/no-data-card/no-data-card.js";
|
|
14
19
|
import { CollapsibleCard } from "./cards/collapsible-card.js";
|
|
15
20
|
import { buttonVariants } from "../core/button.js";
|
|
16
|
-
import { Tooltip as Tooltip$1, TooltipContent, TooltipProvider, TooltipTrigger } from "../core/animate-ui/components/animate/tooltip.js";
|
|
17
21
|
import Tooltip from "./tooltip/tooltip.js";
|
|
18
22
|
import { Button } from "./button/button.js";
|
|
19
23
|
import { InvertButton } from "./button/invert-button.js";
|
|
@@ -24,6 +28,7 @@ import { LottieAnimationContainer } from "./lottie-animation-container/lottie-an
|
|
|
24
28
|
import { animatedCardAnimations, animatedCardTypeKeys } from "./cards/animated-card/animated-card-animations.js";
|
|
25
29
|
import { AnimatedCard } from "./cards/animated-card/animated-card.js";
|
|
26
30
|
import { ScrollArea, ScrollBar } from "../core/scroll-area.js";
|
|
31
|
+
import { PopoverGroup } from "../core/popover-group.js";
|
|
27
32
|
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "../core/popover.js";
|
|
28
33
|
import { ListDetails } from "./list-details/list-details.js";
|
|
29
34
|
import Menu from "./menu/menu.js";
|
|
@@ -50,15 +55,55 @@ import { FileInput } from "./file-input/file-input.js";
|
|
|
50
55
|
import { Checkbox } from "../core/checkbox/motion-checkbox.js";
|
|
51
56
|
import { Switch } from "../core/animate-ui/components/radix/switch.js";
|
|
52
57
|
import { ToggleGroup, ToggleGroupItem } from "../core/animate-ui/components/radix/toggle-group.js";
|
|
58
|
+
import { FeatureGrid } from "./feature-grid/feature-grid.js";
|
|
59
|
+
import { MediaStage } from "./media-stage/media-stage.js";
|
|
60
|
+
import { ThumbnailStrip } from "./thumbnail-strip/thumbnail-strip.js";
|
|
61
|
+
import { ViewToggle } from "./view-toggle/view-toggle.js";
|
|
62
|
+
import { Toolbar } from "./toolbar/toolbar.js";
|
|
63
|
+
import { ToolbarButton } from "./toolbar/toolbar-button.js";
|
|
64
|
+
import { Badge, badgeVariants } from "../core/badge.js";
|
|
65
|
+
import { AnchoredPanel } from "./anchored-panel/anchored-panel.js";
|
|
66
|
+
import { FloatingWindow } from "./floating-window/floating-window.js";
|
|
67
|
+
import { IconTextActionCard } from "./icon-text-action-card/icon-text-action-card.js";
|
|
68
|
+
import { Alert } from "./alert/alert.js";
|
|
69
|
+
import { NoticeStrip } from "./notice-strip/notice-strip.js";
|
|
70
|
+
import { Readout } from "./readout/readout.js";
|
|
71
|
+
import { ChoiceCard } from "./choice-card/choice-card.js";
|
|
72
|
+
import { MediaCard, MediaCardAction, MediaCardBody, MediaCardFooter, MediaCardLink, MediaCardMedia, MediaCardMeta, MediaCardTitle } from "./media-card/media-card.js";
|
|
73
|
+
import { MediaCardImage } from "./media-card/media-card-image.js";
|
|
74
|
+
import { MediaCardReveal, MediaCardRevealChips, MediaCardRevealFooter, MediaCardRevealItem } from "./media-card/media-card-reveal.js";
|
|
75
|
+
import { ShowcaseCard } from "./showcase-card/showcase-card.js";
|
|
76
|
+
import { SortMenu } from "./sort-menu/sort-menu.js";
|
|
77
|
+
import { Tag } from "./tag/tag.js";
|
|
78
|
+
import { ActiveFilters } from "./facet-filters/active-filters.js";
|
|
79
|
+
import SearchBox from "./search-box/search-box.js";
|
|
80
|
+
import { FilterGroup } from "./facet-filters/filter-group.js";
|
|
81
|
+
import { FiltersPanel } from "./facet-filters/filters-panel.js";
|
|
82
|
+
import { FiltersPill } from "./facet-filters/filters-pill.js";
|
|
83
|
+
import { supportsViewTransitions, useFiltersCollapsed } from "./facet-filters/use-filters-collapsed.js";
|
|
84
|
+
import { InputGroup, InputGroupAddon, InputGroupTextarea } from "./input-group/input-group.js";
|
|
85
|
+
import { Bubble } from "./bubble/bubble.js";
|
|
86
|
+
import { Reveal } from "./reveal/reveal.js";
|
|
87
|
+
import { CheckBadge } from "./check-badge/check-badge.js";
|
|
88
|
+
import { MessageScroller } from "./message-scroller/message-scroller.js";
|
|
89
|
+
import { ResizableGroup } from "./resizable/resizable-group.js";
|
|
90
|
+
import { ResizablePanel } from "./resizable/resizable-panel.js";
|
|
91
|
+
import { ResizableSeparator } from "./resizable/resizable-separator.js";
|
|
92
|
+
import { usePanelFlag } from "./column-panel/use-panel-flag.js";
|
|
93
|
+
import { ColumnPanel } from "./column-panel/column-panel.js";
|
|
53
94
|
import { RadioGroup } from "./radio-group/radio-group.js";
|
|
54
95
|
import { SelectableCardList } from "./selectable-card-list/selectable-card-list.js";
|
|
55
96
|
import { StatusCardList } from "./status-card-list/status-card-list.js";
|
|
56
97
|
import { VerticalStepper } from "./vertical-stepper/vertical-stepper.js";
|
|
57
|
-
import {
|
|
98
|
+
import { HorizontalStepper } from "./horizontal-stepper/horizontal-stepper.js";
|
|
58
99
|
import { Spinner } from "./spinner/spinner.js";
|
|
100
|
+
import { StatusBadge, statusBadgeSizeVariants } from "./status-badge/status-badge.js";
|
|
101
|
+
import { OptionCardGroup } from "./option-card-group/option-card-group.js";
|
|
102
|
+
import { StepTabs } from "./step-tabs/step-tabs.js";
|
|
59
103
|
import { StatCard } from "./stat-card/stat-card.js";
|
|
104
|
+
import { ReactionButton } from "./reaction-button/reaction-button.js";
|
|
60
105
|
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from "../core/button-group.js";
|
|
61
|
-
import { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./chart/chart.js";
|
|
106
|
+
import { ChartContainer, ChartLegend, ChartLegendContent, ChartLegendList, ChartStyle, ChartTooltip, ChartTooltipContent } from "./chart/chart.js";
|
|
62
107
|
import { CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, DEFAULT_CHART_SERIES_COLORS, buildSeriesChartConfig, getChartSeriesColor } from "./chart/chart-colors.js";
|
|
63
108
|
import { BarChart } from "./chart/bar-chart.js";
|
|
64
109
|
import { AreaChart } from "./chart/area-chart.js";
|
|
@@ -68,7 +113,9 @@ import { DonutChart } from "./chart/donut-chart.js";
|
|
|
68
113
|
import { TreemapChart } from "./chart/treemap-chart.js";
|
|
69
114
|
import { InputOTP, InputOTPSeparator } from "../core/input-otp/input-otp.js";
|
|
70
115
|
import { Carousel } from "./carousel/carousel.js";
|
|
116
|
+
import { Coverflow } from "./coverflow/coverflow.js";
|
|
71
117
|
import { Textarea } from "../core/textarea/textarea.js";
|
|
118
|
+
import { ExpandableText } from "./expandable-text/expandable-text.js";
|
|
72
119
|
import { AsyncCombobox } from "../core/combobox/combobox.js";
|
|
73
120
|
import { AsyncMultiSelect } from "./async-multi-select/async-multi-select.js";
|
|
74
121
|
import { Calendar, CalendarDayButton } from "./calendar/calendar.js";
|
|
@@ -81,7 +128,6 @@ import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, Breadcr
|
|
|
81
128
|
import { SimplifiedDate } from "./simplified-date/simplified-date.js";
|
|
82
129
|
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "../core/table.js";
|
|
83
130
|
import { Link } from "./link/link.js";
|
|
84
|
-
import SearchBox from "./search-box/search-box.js";
|
|
85
131
|
import FiltersBar from "./filters-bar/filters-bar.js";
|
|
86
132
|
import AdvancedSearchBox from "./advanced-search-box/advanced-search-box.js";
|
|
87
133
|
import { TogglableItemsList } from "./togglable-items-list/togglable-items-list.js";
|
|
@@ -92,16 +138,20 @@ import { TableSkeleton } from "./skeletons/table-skeleton.js";
|
|
|
92
138
|
import { DataTable } from "./data-table/data-table.js";
|
|
93
139
|
import { DataTableRowActions } from "./data-table/row-actions.js";
|
|
94
140
|
import { DeviceIcon } from "./device-icon/device-icon.js";
|
|
141
|
+
import { MiniBarChart } from "./mini-bar-chart/mini-bar-chart.js";
|
|
142
|
+
import { ShareMenu } from "./share-menu/share-menu.js";
|
|
143
|
+
import { Timeline } from "./timeline/timeline.js";
|
|
144
|
+
import Identicon from "./identicon/identicon.js";
|
|
95
145
|
import { userTypeBadgeRegistry, userTypeBadgeUserTypes } from "./user-type-badge/user-type-badge.registry.js";
|
|
96
146
|
import { UserTypeBadge, userTypeBadgeSizeVariants } from "./user-type-badge/user-type-badge.js";
|
|
97
|
-
import { StatusBadge, statusBadgeSizeVariants } from "./status-badge/status-badge.js";
|
|
98
|
-
import { Tag } from "./tag/tag.js";
|
|
99
147
|
import { TagInput } from "./tag-input/tag-input.js";
|
|
100
148
|
import { TransferList } from "./transfer-list/transfer-list.js";
|
|
101
149
|
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "../core/animate-ui/components/radix/dialog.js";
|
|
102
|
-
import { IconTextActionCard } from "./icon-text-action-card/icon-text-action-card.js";
|
|
103
|
-
import { Alert } from "./alert/alert.js";
|
|
104
150
|
import { ConfirmationDialog } from "./confirmation-dialog/confirmation-dialog.js";
|
|
151
|
+
import { PageBanner } from "./page-banner/page-banner.js";
|
|
152
|
+
import { CardRail } from "./card-rail/card-rail.js";
|
|
153
|
+
import { FlipCard } from "./flip-card/flip-card.js";
|
|
154
|
+
import { RankNumeral } from "./rank-numeral/rank-numeral.js";
|
|
105
155
|
import { PreviewCard, PreviewCardBackdrop, PreviewCardPanel, PreviewCardTrigger } from "../core/animate-ui/components/base/preview-card.js";
|
|
106
156
|
import { Code } from "../core/animate-ui/components/animate/code.js";
|
|
107
157
|
import { MonospaceContent } from "./monospace-content/monospace-content.js";
|
|
@@ -121,6 +171,7 @@ import { ProgressBar } from "./progress-bar/progress-bar.js";
|
|
|
121
171
|
import { FullSizeError } from "./error-display/full-size-error/full-size-error.js";
|
|
122
172
|
import { InlineError } from "./error-display/inline-error/inline-error.js";
|
|
123
173
|
import { SimpleClickableCard } from "./simple-clickable-card/simple-clickable-card.js";
|
|
174
|
+
import { CategoryCard } from "./category-card/category-card.js";
|
|
124
175
|
import { SimpleInfoCard } from "./simple-info-card/simple-info-card.js";
|
|
125
176
|
import { GlitchText } from "./text-effects/glitch-effect/glitch-text.js";
|
|
126
177
|
import { GradientText } from "./text-effects/gradient-text/gradient-text.js";
|
|
@@ -131,4 +182,4 @@ import { CodeEditor } from "./code-editor/code-editor.js";
|
|
|
131
182
|
import { ContentContainer } from "./content-container/content-container.js";
|
|
132
183
|
import PageContainer from "./page-container/page-container.js";
|
|
133
184
|
import PageContainerSkeleton from "./page-container/page-container-skeleton.js";
|
|
134
|
-
export { Accordion, AdvancedSearchBox, Alert, AnimatedCard, AreaChart, AsyncCombobox, AsyncMultiSelect, Avatar, Badge, BarChart, BasicDetailsCard, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CircularProgress, Code, CodeEditor, Collapsible, CollapsibleCard, CollapsibleContent, CollapsibleTrigger, ComposedChart, ConfirmationDialog, ContentContainer, CopiableText, CopyButton, DEFAULT_CHART_SERIES_COLORS, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, DataTableRowActions, DatePicker, DateRangePicker, DateTimePicker, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DonutChart, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicList, FileInput, FileUpload, FiltersBar, FlashButton, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FullSizeError, FullscreenDialog, GlitchText, GradientText, HighlightText, IconAvatar, IconTextActionCard, Illustration, InlineError, Input, InputOTP, InputOTPSeparator, InputPassword, InvertButton, KeyValueManager, LIST_CLASS_NAMES, Label, LineChart, Link, List, ListDetails, LottieAnimationContainer, MarkdownContent, Menu, MonospaceContent, NavBar, NoDataCard, OverflowBadgeList, PRESET_GRADIENT_BACKDROP, PRESET_GRADIENT_FRAME, PRESET_IDS, PRESET_LABELS, PageContainer, PageContainerSkeleton, Pagination, PopCollectionItem, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreviewCard, PreviewCardBackdrop, PreviewCardPanel, PreviewCardTrigger, ProgressBar, ROLLING_PRESET_IDS, RadioGroup, RequirementList, ScrollArea, ScrollBar, ScrollableSections, SearchBox, SectionCard, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableCardList, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, ShimmeringText, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, Sidebar$1 as SidebarPrimitive, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleCard, SimpleClickableCard, SimpleInfoCard, SimpleList, SimplePaginatedList, SimplifiedDate, Skeleton, Spinner, StatCard, StatusBadge, StatusCardList, Switch, TYPOGRAPHY_VARIANTS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsContents, TabsList, TabsTrigger, Tag, TagInput, Textarea, TimePicker, Toast, Toaster, TogglableItemsList, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, Tooltip$1 as TooltipRoot, TooltipTrigger, TransferList, TreemapChart, Typography, UserTypeBadge, VARIANTS, VARIANT_GRADIENT_BACKDROP_BASE, VARIANT_GRADIENT_DURATION_CLASS, VARIANT_GRADIENT_HOVER_OVERLAY_CLASS, VARIANT_GRADIENT_TRANSITION_DURATION_MS, VerificationInProgress, VerticalStepper, animatedCardAnimations, animatedCardTypeKeys, arbitraryGradientBackgroundImage, badgeVariants, buildSeriesChartConfig, buttonGroupVariants, buttonVariants, computeDateRange, getChartSeriesColor, illustrationRegistry, illustrationsById, isSidebarGroup, parseSvgViewBoxAspectRatio, parseTextMarkup, resolveVariantStyles, statusBadgeSizeVariants, toast, typographyDefaultElement, typographyVariantClasses, useFormField, useIsMobile, useSidebar, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes };
|
|
185
|
+
export { Accordion, ActiveFilters, AdvancedSearchBox, Alert, AnchoredPanel, AnimatedCard, AreaChart, AsyncCombobox, AsyncMultiSelect, Avatar, AvatarGroup, BORDERS, Badge, BarChart, BasicDetailsCard, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CHART_CATEGORY_COLORS, CHART_SERIES_COLORS, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardRail, CardTitle, Carousel, CategoryCard, ChartContainer, ChartLegend, ChartLegendContent, ChartLegendList, ChartStyle, ChartTooltip, ChartTooltipContent, CheckBadge, Checkbox, ChoiceCard, CircularProgress, Code, CodeEditor, Collapsible, CollapsibleCard, CollapsibleContent, CollapsibleTrigger, ColumnPanel, ComposedChart, ConfirmationDialog, ContentContainer, CopiableText, CopyButton, Coverflow, DEFAULT_CHART_SERIES_COLORS, DEFAULT_PAGE_SIZE_OPTIONS, DENSITIES, DataTable, DataTableRowActions, DatePicker, DateRangePicker, DateTimePicker, DeviceIcon, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DonutChart, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicList, ELEVATIONS, ExpandableText, FeatureGrid, FileInput, FileUpload, FilterGroup, FiltersBar, FiltersPanel, FiltersPill, FlashButton, FlipCard, FloatingWindow, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FullSizeError, FullscreenDialog, GlitchText, GradientText, HighlightText, HorizontalStepper, IconAvatar, IconTextActionCard, Identicon, Illustration, InlineError, Input, InputGroup, InputGroupAddon, InputGroupTextarea, InputOTP, InputOTPSeparator, InputPassword, InvertButton, KeyValueManager, LIST_CLASS_NAMES, Label, LineChart, Link, List, ListDetails, LottieAnimationContainer, MarkdownContent, MediaCard, MediaCardAction, MediaCardBody, MediaCardFooter, MediaCardImage, MediaCardLink, MediaCardMedia, MediaCardMeta, MediaCardReveal, MediaCardRevealChips, MediaCardRevealFooter, MediaCardRevealItem, MediaCardTitle, MediaStage, Menu, MessageScroller, MiniBarChart, MonospaceContent, NavBar, NoDataCard, NoticeStrip, OptionCardGroup, OverflowBadgeList, PRESET_GRADIENT_BACKDROP, PRESET_GRADIENT_FRAME, PRESET_IDS, PRESET_LABELS, PageBanner, PageContainer, PageContainerSkeleton, Pagination, PopCollectionItem, Popover, PopoverAnchor, PopoverContent, PopoverGroup, PopoverTrigger, PreviewCard, PreviewCardBackdrop, PreviewCardPanel, PreviewCardTrigger, ProgressBar, RADII, ROLLING_PRESET_IDS, RadioGroup, RankNumeral, ReactionButton, Readout, RequirementList, ResizableGroup, ResizablePanel, ResizableSeparator, Reveal, ScrollArea, ScrollBar, ScrollableSections, SearchBox, SectionCard, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableCardList, Separator, ShareMenu, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, ShimmeringText, ShowcaseCard, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, Sidebar$1 as SidebarPrimitive, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleCard, SimpleClickableCard, SimpleInfoCard, SimpleList, SimplePaginatedList, SimplifiedDate, Skeleton, SortMenu, Spinner, StatCard, StatusBadge, StatusCardList, StepTabs, StyleScope, Switch, TYPOGRAPHY_VARIANTS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsContents, TabsList, TabsTrigger, Tag, TagInput, Textarea, ThumbnailStrip, TimePicker, Timeline, Toast, Toaster, TogglableItemsList, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarButton, Tooltip, TooltipContent, TooltipProvider, Tooltip$1 as TooltipRoot, TooltipTrigger, TransferList, TreemapChart, TruncatedLineWithTooltip, Typography, UserTypeBadge, VARIANTS, VARIANT_GRADIENT_BACKDROP_BASE, VARIANT_GRADIENT_DURATION_CLASS, VARIANT_GRADIENT_HOVER_OVERLAY_CLASS, VARIANT_GRADIENT_TRANSITION_DURATION_MS, VerificationInProgress, VerticalStepper, ViewToggle, animatedCardAnimations, animatedCardTypeKeys, arbitraryGradientBackgroundImage, badgeVariants, buildSeriesChartConfig, buttonGroupVariants, buttonVariants, computeDateRange, densityStyle, getChartSeriesColor, illustrationRegistry, illustrationsById, isSidebarGroup, listStyleValues, listVariants, parseSvgViewBoxAspectRatio, parseTextMarkup, registerDensity, registerStyleValue, registerVariant, resolveDensity, resolveStyleValue, resolveVariantStyles, statusBadgeSizeVariants, supportsViewTransitions, toast, typographyDefaultElement, typographyVariantClasses, useFiltersCollapsed, useFormField, useIsMobile, usePanelFlag, useSidebar, useStyleAxes, userTypeBadgeRegistry, userTypeBadgeSizeVariants, userTypeBadgeUserTypes };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { a as InputProps } from '../../input-CYI1hhGc.js';
|
|
2
|
+
export { I as Input } from '../../input-CYI1hhGc.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import '../../style-axes-DSQ2DGc5.js';
|
|
5
|
+
import '../../index-BQANnKs9.js';
|
|
6
|
+
|
|
7
|
+
interface InputPasswordProps extends InputProps {
|
|
8
|
+
/** Accessible name of the toggle while the password is hidden. Default: 'Show password'. */
|
|
9
|
+
showPasswordLabel?: string;
|
|
10
|
+
/** Accessible name of the toggle while the password is shown. Default: 'Hide password'. */
|
|
11
|
+
hidePasswordLabel?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const InputPassword: React.ForwardRefExoticComponent<Omit<InputPasswordProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
14
|
+
|
|
15
|
+
export { InputPassword };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { HTMLAttributes, TextareaHTMLAttributes, Ref } from 'react';
|
|
3
|
+
|
|
4
|
+
interface InputGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* `raised` (default): a soft lift below it, for a box on the page. `float`: a
|
|
7
|
+
* wide halo on every side, for a box floating over the page at the bottom of a
|
|
8
|
+
* window, where a shadow cast downward would be hidden. `flat`: no shadow, for
|
|
9
|
+
* a box inside a small surface that already stands off the page (a window).
|
|
10
|
+
*/
|
|
11
|
+
elevation?: "raised" | "float" | "flat";
|
|
12
|
+
}
|
|
13
|
+
type InputGroupAddonProps = HTMLAttributes<HTMLDivElement>;
|
|
14
|
+
interface InputGroupTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
15
|
+
ref?: Ref<HTMLTextAreaElement>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A field and the controls that belong to it, in one bordered box (shadcn's
|
|
20
|
+
* Input Group, on the library's tokens). The box takes the focus ring when
|
|
21
|
+
* anything inside it has focus, so the field inside draws none of its own;
|
|
22
|
+
* `elevation` sets how it stands off the page. Compose with
|
|
23
|
+
* `InputGroupTextarea` and `InputGroupAddon`.
|
|
24
|
+
*/
|
|
25
|
+
declare function InputGroup({ className, elevation, ...props }: InputGroupProps): React.JSX.Element;
|
|
26
|
+
/** A row of controls under the field in an `InputGroup` (shadcn's `align="block-end"` addon). */
|
|
27
|
+
declare function InputGroupAddon({ className, ...props }: InputGroupAddonProps): React.JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* The borderless text area inside an `InputGroup`. It grows with its content
|
|
30
|
+
* (`field-sizing: content`) between its min and max height, then scrolls; a
|
|
31
|
+
* browser without field-sizing keeps the min height and scrolls.
|
|
32
|
+
*/
|
|
33
|
+
declare function InputGroupTextarea({ className, ref, ...props }: InputGroupTextareaProps): React.JSX.Element;
|
|
34
|
+
|
|
35
|
+
export { InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupProps, InputGroupTextarea, type InputGroupTextareaProps };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { cn } from "../../utils/cn.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/input-group/input-group.tsx
|
|
4
|
+
/**
|
|
5
|
+
* A field and the controls that belong to it, in one bordered box (shadcn's
|
|
6
|
+
* Input Group, on the library's tokens). The box takes the focus ring when
|
|
7
|
+
* anything inside it has focus, so the field inside draws none of its own;
|
|
8
|
+
* `elevation` sets how it stands off the page. Compose with
|
|
9
|
+
* `InputGroupTextarea` and `InputGroupAddon`.
|
|
10
|
+
*/
|
|
11
|
+
function InputGroup({ className, elevation = "raised", ...props }) {
|
|
12
|
+
return /* @__PURE__ */ jsx("div", {
|
|
13
|
+
role: "group",
|
|
14
|
+
"data-slot": "input-group",
|
|
15
|
+
className: cn("relative flex w-full flex-col rounded-3xl border border-border bg-card transition-[border-color,box-shadow] duration-200", elevation === "raised" && "shadow-md shadow-foreground/8 dark:shadow-(--espd-elevation-overlay)", elevation === "float" && "shadow-float shadow-foreground/10 dark:shadow-primary/20", "focus-within:border-primary focus-within:ring-4 focus-within:ring-primary/15", className),
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/** A row of controls under the field in an `InputGroup` (shadcn's `align="block-end"` addon). */
|
|
20
|
+
function InputGroupAddon({ className, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsx("div", {
|
|
22
|
+
"data-slot": "input-group-addon",
|
|
23
|
+
className: cn("relative flex items-center gap-1", className),
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The borderless text area inside an `InputGroup`. It grows with its content
|
|
29
|
+
* (`field-sizing: content`) between its min and max height, then scrolls; a
|
|
30
|
+
* browser without field-sizing keeps the min height and scrolls.
|
|
31
|
+
*/
|
|
32
|
+
function InputGroupTextarea({ className, ref, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsx("textarea", {
|
|
34
|
+
ref,
|
|
35
|
+
"data-slot": "input-group-textarea",
|
|
36
|
+
className: cn("block w-full resize-none overflow-y-auto border-0 bg-transparent text-foreground caret-primary outline-none field-sizing-content placeholder:text-foreground-secondary focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60", className),
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { InputGroup, InputGroupAddon, InputGroupTextarea };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { S as Size } from '../../index-BQANnKs9.js';
|
|
3
|
+
import { k as StyleAxisProps } from '../../style-axes-DSQ2DGc5.js';
|
|
4
|
+
|
|
5
|
+
interface InputOTPProps {
|
|
6
|
+
/** Number of slots. Clamped to [2, 12]. Default: 6. */
|
|
7
|
+
length?: number;
|
|
8
|
+
/** When true, accept `[a-zA-Z0-9]` instead of digits only. Ignored when `regex` is set. */
|
|
9
|
+
allowAlphaNumeric?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Custom validation pattern (JS regex source, e.g. `"^[0-9a-fA-F]+$"`). When
|
|
12
|
+
* provided, overrides `allowAlphaNumeric`.
|
|
13
|
+
*/
|
|
14
|
+
regex?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Group boundaries. `[3, 3]` renders `[slot slot slot] · [slot slot slot]`.
|
|
17
|
+
* Ignored (with a `console.warn`) when the sum does not equal `length`.
|
|
18
|
+
*/
|
|
19
|
+
separators?: number[];
|
|
20
|
+
/**
|
|
21
|
+
* When `true`, slots stretch to fill the parent width, dividing space equally.
|
|
22
|
+
* When `false` (default), slots use a fixed size based on the `size` prop.
|
|
23
|
+
*/
|
|
24
|
+
expand?: boolean;
|
|
25
|
+
/** Controlled value. */
|
|
26
|
+
value?: string;
|
|
27
|
+
/** Uncontrolled initial value. */
|
|
28
|
+
defaultValue?: string;
|
|
29
|
+
/** Fires on every change with the current concatenated value. */
|
|
30
|
+
onChange?: (value: string) => void;
|
|
31
|
+
/** Fires once when the last slot is filled. */
|
|
32
|
+
onComplete?: (value: string) => void;
|
|
33
|
+
label?: React.ReactNode;
|
|
34
|
+
required?: boolean;
|
|
35
|
+
size?: Size;
|
|
36
|
+
/** Fully rounded slots. Same as `radius="full"`; `radius` wins when both are set. */
|
|
37
|
+
rounded?: boolean;
|
|
38
|
+
/** Slot corner radius (style axis). */
|
|
39
|
+
radius?: StyleAxisProps['radius'];
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
startHelperContent?: React.ReactNode;
|
|
42
|
+
endHelperContent?: React.ReactNode;
|
|
43
|
+
hintContent?: React.ReactNode;
|
|
44
|
+
error?: boolean;
|
|
45
|
+
errorContent?: React.ReactNode;
|
|
46
|
+
id?: string;
|
|
47
|
+
name?: string;
|
|
48
|
+
autoFocus?: boolean;
|
|
49
|
+
autoComplete?: string;
|
|
50
|
+
className?: string;
|
|
51
|
+
/** Class applied to the slot row container (rare; usually not needed). */
|
|
52
|
+
containerClassName?: string;
|
|
53
|
+
'aria-label'?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Standalone visual divider used between OTP slot groups. Exported for callers
|
|
57
|
+
* that want to render their own custom slot layout; the default `InputOTP`
|
|
58
|
+
* component renders it automatically based on the `separators` prop.
|
|
59
|
+
*/
|
|
60
|
+
declare const InputOTPSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
declare const InputOTP: React.ForwardRefExoticComponent<InputOTPProps & React.RefAttributes<HTMLInputElement>>;
|
|
62
|
+
|
|
63
|
+
export { InputOTP, type InputOTPProps, InputOTPSeparator };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface KeyValueManagerItem {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
interface KeyValueManagerFieldMeta {
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
regex?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Flags for `regex`, passed to the `RegExp` constructor (e.g. `"u"` to use
|
|
12
|
+
* Unicode property escapes such as `\p{L}`).
|
|
13
|
+
*/
|
|
14
|
+
regexFlags?: string;
|
|
15
|
+
/**
|
|
16
|
+
* When set, the field is a select limited to these values instead of free
|
|
17
|
+
* text, and any other value is rejected.
|
|
18
|
+
*/
|
|
19
|
+
options?: string[];
|
|
20
|
+
}
|
|
21
|
+
interface KeyValueManagerLabels {
|
|
22
|
+
/** Placeholder for the search box. Defaults to `Search <keyLabel> or <valueLabel>` (lowercased). */
|
|
23
|
+
search?: string;
|
|
24
|
+
/** Add button text; also its accessible name when it is icon-only on small screens. Default: `"Add"`. */
|
|
25
|
+
add?: string;
|
|
26
|
+
/** Accessible name of the button that closes the expanded search on small screens. Default: `"Close search"`. */
|
|
27
|
+
closeSearch?: string;
|
|
28
|
+
/** Error message shown under the first field on invalid or duplicate input. Default: `"Invalid key"`. */
|
|
29
|
+
keyErrorMessage?: string;
|
|
30
|
+
/** Error message shown under the second field on invalid input. Default: `"Invalid value"`. */
|
|
31
|
+
valueErrorMessage?: string;
|
|
32
|
+
/** Success message shown after a successful add. Default: `"Added successfully"`. */
|
|
33
|
+
successMessage?: string;
|
|
34
|
+
/** Header for the first column and label of the first field in the add popover. Default: `"Key"`. */
|
|
35
|
+
keyLabel?: string;
|
|
36
|
+
/** Header for the second column and label of the second field in the add popover. Default: `"Value"`. */
|
|
37
|
+
valueLabel?: string;
|
|
38
|
+
/** Header for the action column. Default: `"Action"`. */
|
|
39
|
+
actionLabel?: string;
|
|
40
|
+
/** Message shown when the list is empty. Default: `"No items"`. */
|
|
41
|
+
emptyItems?: string;
|
|
42
|
+
/** Message shown when a search returns no results. Default: `"No matches"`. */
|
|
43
|
+
emptySearch?: string;
|
|
44
|
+
/** Placeholder of a field that has `options`. Default: `"Select"`. */
|
|
45
|
+
selectPlaceholder?: string;
|
|
46
|
+
}
|
|
47
|
+
interface KeyValueManagerProps {
|
|
48
|
+
items: KeyValueManagerItem[];
|
|
49
|
+
meta?: {
|
|
50
|
+
key?: KeyValueManagerFieldMeta;
|
|
51
|
+
value?: KeyValueManagerFieldMeta;
|
|
52
|
+
};
|
|
53
|
+
onUpdate: (items: KeyValueManagerItem[]) => void;
|
|
54
|
+
maxAllowed?: number;
|
|
55
|
+
/** Page size for the table. Default: `10`. */
|
|
56
|
+
itemsPerPage?: number;
|
|
57
|
+
labels?: KeyValueManagerLabels;
|
|
58
|
+
className?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare function KeyValueManager({ items, meta, onUpdate, maxAllowed, itemsPerPage, labels: labelsProp, className, }: KeyValueManagerProps): React.JSX.Element;
|
|
62
|
+
|
|
63
|
+
export { KeyValueManager, type KeyValueManagerFieldMeta, type KeyValueManagerItem, type KeyValueManagerLabels, type KeyValueManagerProps };
|
|
@@ -8,6 +8,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
import { ChevronLeft, ChevronRight, Trash2 } from "lucide-react";
|
|
9
9
|
import { AnimatePresence, motion } from "framer-motion";
|
|
10
10
|
//#region src/components/key-value-manager/key-value-manager-table.tsx
|
|
11
|
+
var MotionTableBody = motion.create(TableBody);
|
|
11
12
|
var slideTransition = {
|
|
12
13
|
duration: .15,
|
|
13
14
|
ease: [
|
|
@@ -109,6 +110,7 @@ function KeyValueManagerTable({ rows, itemsPerPage = 10, hasSearchQuery, onDelet
|
|
|
109
110
|
}),
|
|
110
111
|
/* @__PURE__ */ jsxs(Table, {
|
|
111
112
|
containerClassName: "hidden sm:block",
|
|
113
|
+
className: "overflow-hidden",
|
|
112
114
|
children: [/* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
113
115
|
/* @__PURE__ */ jsx(TableHead, { children: keyLabel }),
|
|
114
116
|
/* @__PURE__ */ jsx(TableHead, { children: valueLabel }),
|
|
@@ -116,21 +118,21 @@ function KeyValueManagerTable({ rows, itemsPerPage = 10, hasSearchQuery, onDelet
|
|
|
116
118
|
className: "w-12 text-right",
|
|
117
119
|
children: actionLabel
|
|
118
120
|
})
|
|
119
|
-
] }) }), /* @__PURE__ */ jsx(TableBody, { children:
|
|
121
|
+
] }) }), noRows ? /* @__PURE__ */ jsx(TableBody, { children: /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, {
|
|
120
122
|
colSpan: 3,
|
|
121
123
|
className: "py-8 text-center text-muted-foreground",
|
|
122
124
|
children: emptyMessage
|
|
123
|
-
}) }) : /* @__PURE__ */ jsx(AnimatePresence, {
|
|
125
|
+
}) }) }) : /* @__PURE__ */ jsx(AnimatePresence, {
|
|
124
126
|
mode: "wait",
|
|
125
127
|
custom: direction,
|
|
126
|
-
|
|
128
|
+
initial: false,
|
|
129
|
+
children: /* @__PURE__ */ jsx(MotionTableBody, {
|
|
127
130
|
custom: direction,
|
|
128
131
|
variants: slideVariants,
|
|
129
132
|
initial: "enter",
|
|
130
133
|
animate: "center",
|
|
131
134
|
exit: "exit",
|
|
132
135
|
transition: slideTransition,
|
|
133
|
-
className: "contents",
|
|
134
136
|
children: pageRows.map(({ item, sourceIndex }) => /* @__PURE__ */ jsxs(TableRow, {
|
|
135
137
|
className: "group",
|
|
136
138
|
children: [
|
|
@@ -149,7 +151,7 @@ function KeyValueManagerTable({ rows, itemsPerPage = 10, hasSearchQuery, onDelet
|
|
|
149
151
|
]
|
|
150
152
|
}, `${sourceIndex}-${item.key}`))
|
|
151
153
|
}, page)
|
|
152
|
-
})
|
|
154
|
+
})]
|
|
153
155
|
}),
|
|
154
156
|
showPagination ? /* @__PURE__ */ jsxs("div", {
|
|
155
157
|
className: "mt-3 flex justify-end gap-1 px-2",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
7
|
+
|
|
8
|
+
export { Label };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AnchorHTMLAttributes, ElementType, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type LinkColor = "primary" | "secondary" | "error" | "info" | "success" | "warning" | "gray";
|
|
5
|
+
type LinkVariant = "default" | "ghost";
|
|
6
|
+
/** Anchor attrs minus the ones the component owns (`href` is derived from `to`; `target`/`rel` are forced for external URLs). */
|
|
7
|
+
type ForwardedAnchorAttrs = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "target" | "rel">;
|
|
8
|
+
interface LinkProps extends ForwardedAnchorAttrs {
|
|
9
|
+
/** Destination. Absolute URLs (http(s)://, mailto:, tel:, sms:, ftp:, //) are auto-detected as external. Anything else is internal. */
|
|
10
|
+
to: string;
|
|
11
|
+
/** Route params, only forwarded when `linkComponent` is provided. Dropped for plain `<a>` and external fallbacks. */
|
|
12
|
+
params?: Record<string, unknown>;
|
|
13
|
+
/** Query / search params, only forwarded when `linkComponent` is provided. */
|
|
14
|
+
search?: Record<string, unknown>;
|
|
15
|
+
/**
|
|
16
|
+
* Router-aware Link component used for internal navigation. Receives `to`, `params`, `search`, `className`, `children`, plus any forwarded anchor attrs.
|
|
17
|
+
* If omitted, internal links render a plain `<a href={to}>`, which causes a full page reload — pass your router's Link to avoid that.
|
|
18
|
+
* Ignored for external URLs.
|
|
19
|
+
*/
|
|
20
|
+
linkComponent?: ElementType;
|
|
21
|
+
/** Theme color. When set, the link renders in a ghost-pill style (padded, color-tinted hover background). When omitted, the link is a bare inline anchor that inherits color. */
|
|
22
|
+
color?: LinkColor;
|
|
23
|
+
/** Visual variant. `"default"` applies padded pill styling from `color`; `"ghost"` strips padding, height, and hover background for a bare inline link. Default `"default"`. */
|
|
24
|
+
variant?: LinkVariant;
|
|
25
|
+
/** Show the animated underline on hover. Default `false`. */
|
|
26
|
+
underline?: boolean;
|
|
27
|
+
startIcon?: ReactNode;
|
|
28
|
+
endIcon?: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
32
|
+
|
|
33
|
+
export { Link, type LinkColor, type LinkProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { f as ListProps } from '../../list.props-DP_xPTqU.js';
|
|
3
|
+
export { L as LIST_CLASS_NAMES, a as ListGroup, b as ListItem, c as ListItemSize, d as ListItemVariant, e as ListLinkComponentProps, g as ListRole } from '../../list.props-DP_xPTqU.js';
|
|
4
|
+
import '../../index-BQANnKs9.js';
|
|
5
|
+
import '../../style-axes-DSQ2DGc5.js';
|
|
6
|
+
|
|
7
|
+
declare function List({ items, role, showSeparators, className, itemClassName, separatorClassName, linkComponent, density, }: ListProps): React__default.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { List, ListProps };
|
|
@@ -4,7 +4,7 @@ import { LIST_CLASS_NAMES } from "./list.props.js";
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/list/list-item.utils.tsx
|
|
7
|
-
var listItemBase = "min-h-[var(--menu-item-height)] w-full scroll-mt-[calc(var(--spacing)*1.5)] px-[calc(var(--spacing)*2.5)] py-[calc(var(--spacing)*1.5)] my-[calc(var(--spacing)*0.5)] text-sm leading-[var(--tw-leading,var(--text-sm--line-height))] select-none rounded-[10px] items-center flex relative no-underline";
|
|
7
|
+
var listItemBase = "min-h-[var(--espd-item-height,var(--menu-item-height))] w-full scroll-mt-[calc(var(--spacing)*1.5)] px-[calc(var(--spacing)*2.5)] py-[calc(var(--spacing)*1.5)] my-[calc(var(--spacing)*0.5)] text-sm leading-[var(--tw-leading,var(--text-sm--line-height))] select-none rounded-[var(--espd-own-radius,var(--espd-radius-item,10px))] items-center flex relative no-underline";
|
|
8
8
|
/**
|
|
9
9
|
* Interaction classes shared by the `<button>` and link renderings of a row, so a
|
|
10
10
|
* linked item is visually identical to a clickable one.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { cn } from "../../utils/cn.js";
|
|
2
|
+
import { densityStyle } from "../../utils/style-axes.js";
|
|
2
3
|
import { DropdownMenuLabel, DropdownMenuSeparator } from "../../core/animate-ui/components/radix/dropdown-menu.js";
|
|
3
4
|
import { LIST_CLASS_NAMES } from "./list.props.js";
|
|
4
5
|
import { isListItem } from "./list-item.utils.js";
|
|
@@ -8,12 +9,13 @@ import React from "react";
|
|
|
8
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
//#region src/components/list/list.tsx
|
|
10
11
|
var groupLabelBase = "text-sm font-normal truncate overflow-ellipsis font-inter text-gray-400 flex items-center gap-2";
|
|
11
|
-
function List({ items, role = "list", showSeparators = true, className, itemClassName, separatorClassName, linkComponent }) {
|
|
12
|
+
function List({ items, role = "list", showSeparators = true, className, itemClassName, separatorClassName, linkComponent, density }) {
|
|
12
13
|
const shouldShowSeparators = showSeparators && items.length > 1;
|
|
13
14
|
const isDropdown = role === "dropdown-list";
|
|
14
15
|
const ItemComponent = isDropdown ? DropdownListItem : StandardListItem;
|
|
15
16
|
return /* @__PURE__ */ jsx(isDropdown ? React.Fragment : ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
16
17
|
className: cn(LIST_CLASS_NAMES.container, "flex flex-col", className),
|
|
18
|
+
style: densityStyle(density),
|
|
17
19
|
children
|
|
18
20
|
}), { children: items.map((group, groupIndex) => {
|
|
19
21
|
const isLastGroup = groupIndex === items.length - 1;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { k as StyleAxisProps } from '../../style-axes-DSQ2DGc5.js';
|
|
4
|
+
import { c as SectionCardVariant, b as SectionCardSize } from '../../section-card-B7c5uc08.js';
|
|
5
|
+
import { C as Color } from '../../index-BQANnKs9.js';
|
|
6
|
+
import '../../variant-D81RhpbR.js';
|
|
7
|
+
|
|
8
|
+
type ListDetailsTitleListPanelColumnWidth = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12;
|
|
9
|
+
type ListDetailsItem = {
|
|
10
|
+
id: string;
|
|
11
|
+
title: string | ReactNode;
|
|
12
|
+
endIcon?: ReactNode;
|
|
13
|
+
details: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* How the items are picked below the `md` breakpoint (768px), where the details
|
|
17
|
+
* take the full width:
|
|
18
|
+
* - `"dropdown"`: the selected title in a menu button between previous/next
|
|
19
|
+
* arrows; the menu lists every item with the `footer` at its bottom.
|
|
20
|
+
* - `"strip"`: a sideways-scrolling row of titles. The `footer` is hidden.
|
|
21
|
+
*/
|
|
22
|
+
type ListDetailsMobileNavigation = "dropdown" | "strip";
|
|
23
|
+
interface ListDetailsLabels {
|
|
24
|
+
/** Accessible name of the small-screen "previous item" arrow. Default: `"Previous item"`. */
|
|
25
|
+
previousItem?: string;
|
|
26
|
+
/** Accessible name of the small-screen "next item" arrow. Default: `"Next item"`. */
|
|
27
|
+
nextItem?: string;
|
|
28
|
+
/** Screen-reader prefix of the small-screen menu button, before the selected title. Default: `"Choose item"`. */
|
|
29
|
+
chooseItem?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Style axis `radius`: the item list's frame. */
|
|
32
|
+
interface ListDetailsProps extends Pick<StyleAxisProps, "radius"> {
|
|
33
|
+
value?: string;
|
|
34
|
+
onSelect?: (itemId: string) => void;
|
|
35
|
+
data: ListDetailsItem[];
|
|
36
|
+
height?: number;
|
|
37
|
+
className?: string;
|
|
38
|
+
titleListPanelColumnWidth?: ListDetailsTitleListPanelColumnWidth;
|
|
39
|
+
footer?: ReactNode;
|
|
40
|
+
unmountOnExit?: boolean;
|
|
41
|
+
variant?: SectionCardVariant;
|
|
42
|
+
color?: Color;
|
|
43
|
+
size?: SectionCardSize;
|
|
44
|
+
/** @default "dropdown" */
|
|
45
|
+
mobileNavigation?: ListDetailsMobileNavigation;
|
|
46
|
+
labels?: ListDetailsLabels;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare function ListDetails({ value, onSelect, data, height, className, titleListPanelColumnWidth, footer, unmountOnExit, variant, color, size, mobileNavigation, labels, radius, }: ListDetailsProps): React.JSX.Element;
|
|
50
|
+
|
|
51
|
+
export { ListDetails, type ListDetailsItem, type ListDetailsLabels, type ListDetailsMobileNavigation, type ListDetailsProps, type ListDetailsTitleListPanelColumnWidth };
|