@marismoon/ui 0.0.0-stage → 0.1.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +26 -2
- package/THIRD_PARTY_NOTICES.md +50 -0
- package/dist/components/icons/app-icon.d.ts +14 -0
- package/dist/components/icons/app-icon.js +30 -0
- package/dist/components/icons/icon-placeholder.d.ts +134 -0
- package/dist/components/icons/icon-placeholder.js +240 -0
- package/dist/components/icons/icon-variants.d.ts +2 -0
- package/dist/components/icons/icon-variants.js +68 -0
- package/dist/components/icons/index.d.ts +117 -0
- package/dist/components/icons/index.js +118 -0
- package/dist/components/icons/solar/add-circle-linear.d.ts +2 -0
- package/dist/components/icons/solar/add-circle-linear.js +27 -0
- package/dist/components/icons/solar/add-folder-linear.d.ts +2 -0
- package/dist/components/icons/solar/add-folder-linear.js +21 -0
- package/dist/components/icons/solar/alt-arrow-down-linear.d.ts +2 -0
- package/dist/components/icons/solar/alt-arrow-down-linear.js +22 -0
- package/dist/components/icons/solar/alt-arrow-left-linear.d.ts +2 -0
- package/dist/components/icons/solar/alt-arrow-left-linear.js +22 -0
- package/dist/components/icons/solar/alt-arrow-right-linear.d.ts +2 -0
- package/dist/components/icons/solar/alt-arrow-right-linear.js +22 -0
- package/dist/components/icons/solar/alt-arrow-up-linear.d.ts +2 -0
- package/dist/components/icons/solar/alt-arrow-up-linear.js +22 -0
- package/dist/components/icons/solar/archive-linear.d.ts +2 -0
- package/dist/components/icons/solar/archive-linear.js +25 -0
- package/dist/components/icons/solar/arrow-down-linear.d.ts +2 -0
- package/dist/components/icons/solar/arrow-down-linear.js +22 -0
- package/dist/components/icons/solar/arrow-left-linear.d.ts +2 -0
- package/dist/components/icons/solar/arrow-left-linear.js +22 -0
- package/dist/components/icons/solar/arrow-right-linear.d.ts +2 -0
- package/dist/components/icons/solar/arrow-right-linear.js +22 -0
- package/dist/components/icons/solar/arrow-right-up-linear.d.ts +2 -0
- package/dist/components/icons/solar/arrow-right-up-linear.js +22 -0
- package/dist/components/icons/solar/arrow-up-linear.d.ts +2 -0
- package/dist/components/icons/solar/arrow-up-linear.js +22 -0
- package/dist/components/icons/solar/bell-bold.d.ts +2 -0
- package/dist/components/icons/solar/bell-bold.js +20 -0
- package/dist/components/icons/solar/bell-linear.d.ts +2 -0
- package/dist/components/icons/solar/bell-linear.js +23 -0
- package/dist/components/icons/solar/bill-list-bold.d.ts +2 -0
- package/dist/components/icons/solar/bill-list-bold.js +19 -0
- package/dist/components/icons/solar/bill-list-linear.d.ts +2 -0
- package/dist/components/icons/solar/bill-list-linear.js +23 -0
- package/dist/components/icons/solar/bluetooth-linear.d.ts +2 -0
- package/dist/components/icons/solar/bluetooth-linear.js +26 -0
- package/dist/components/icons/solar/book-linear.d.ts +2 -0
- package/dist/components/icons/solar/book-linear.js +26 -0
- package/dist/components/icons/solar/bookmark-linear.d.ts +2 -0
- package/dist/components/icons/solar/bookmark-linear.js +21 -0
- package/dist/components/icons/solar/brain-linear.d.ts +2 -0
- package/dist/components/icons/solar/brain-linear.js +25 -0
- package/dist/components/icons/solar/branching-paths-up-linear.d.ts +2 -0
- package/dist/components/icons/solar/branching-paths-up-linear.js +33 -0
- package/dist/components/icons/solar/buildings-2-linear.d.ts +2 -0
- package/dist/components/icons/solar/buildings-2-linear.js +31 -0
- package/dist/components/icons/solar/calculator-linear.d.ts +2 -0
- package/dist/components/icons/solar/calculator-linear.js +32 -0
- package/dist/components/icons/solar/calendar-linear.d.ts +2 -0
- package/dist/components/icons/solar/calendar-linear.js +50 -0
- package/dist/components/icons/solar/card-bold.d.ts +2 -0
- package/dist/components/icons/solar/card-bold.js +22 -0
- package/dist/components/icons/solar/card-linear.d.ts +2 -0
- package/dist/components/icons/solar/card-linear.js +23 -0
- package/dist/components/icons/solar/chart-2-bold.d.ts +2 -0
- package/dist/components/icons/solar/chart-2-bold.js +31 -0
- package/dist/components/icons/solar/chart-2-linear.d.ts +2 -0
- package/dist/components/icons/solar/chart-2-linear.js +24 -0
- package/dist/components/icons/solar/chart-square-bold.d.ts +2 -0
- package/dist/components/icons/solar/chart-square-bold.js +19 -0
- package/dist/components/icons/solar/chart-square-linear.d.ts +2 -0
- package/dist/components/icons/solar/chart-square-linear.js +23 -0
- package/dist/components/icons/solar/chat-square-linear.d.ts +2 -0
- package/dist/components/icons/solar/chat-square-linear.js +21 -0
- package/dist/components/icons/solar/check-circle-linear.d.ts +2 -0
- package/dist/components/icons/solar/check-circle-linear.js +28 -0
- package/dist/components/icons/solar/check-mark-linear.d.ts +2 -0
- package/dist/components/icons/solar/check-mark-linear.js +22 -0
- package/dist/components/icons/solar/clipboard-linear.d.ts +2 -0
- package/dist/components/icons/solar/clipboard-linear.js +27 -0
- package/dist/components/icons/solar/clock-circle-bold.d.ts +2 -0
- package/dist/components/icons/solar/clock-circle-bold.js +19 -0
- package/dist/components/icons/solar/clock-circle-linear.d.ts +2 -0
- package/dist/components/icons/solar/clock-circle-linear.js +28 -0
- package/dist/components/icons/solar/close-circle-linear.d.ts +2 -0
- package/dist/components/icons/solar/close-circle-linear.js +27 -0
- package/dist/components/icons/solar/close-linear.d.ts +2 -0
- package/dist/components/icons/solar/close-linear.js +21 -0
- package/dist/components/icons/solar/cloud-bold.d.ts +2 -0
- package/dist/components/icons/solar/cloud-bold.js +17 -0
- package/dist/components/icons/solar/cloud-linear.d.ts +2 -0
- package/dist/components/icons/solar/cloud-linear.js +21 -0
- package/dist/components/icons/solar/code-linear.d.ts +2 -0
- package/dist/components/icons/solar/code-linear.js +25 -0
- package/dist/components/icons/solar/code-square-linear.d.ts +2 -0
- package/dist/components/icons/solar/code-square-linear.js +26 -0
- package/dist/components/icons/solar/copy-linear.d.ts +2 -0
- package/dist/components/icons/solar/copy-linear.js +20 -0
- package/dist/components/icons/solar/danger-circle-linear.d.ts +2 -0
- package/dist/components/icons/solar/danger-circle-linear.js +30 -0
- package/dist/components/icons/solar/danger-triangle-linear.d.ts +2 -0
- package/dist/components/icons/solar/danger-triangle-linear.js +36 -0
- package/dist/components/icons/solar/diskette-linear.d.ts +2 -0
- package/dist/components/icons/solar/diskette-linear.js +25 -0
- package/dist/components/icons/solar/dislike-linear.d.ts +2 -0
- package/dist/components/icons/solar/dislike-linear.js +28 -0
- package/dist/components/icons/solar/document-text-bold.d.ts +2 -0
- package/dist/components/icons/solar/document-text-bold.js +19 -0
- package/dist/components/icons/solar/document-text-linear.d.ts +2 -0
- package/dist/components/icons/solar/document-text-linear.js +23 -0
- package/dist/components/icons/solar/download-linear.d.ts +2 -0
- package/dist/components/icons/solar/download-linear.js +24 -0
- package/dist/components/icons/solar/eye-bold.d.ts +2 -0
- package/dist/components/icons/solar/eye-bold.js +19 -0
- package/dist/components/icons/solar/eye-closed-linear.d.ts +2 -0
- package/dist/components/icons/solar/eye-closed-linear.js +21 -0
- package/dist/components/icons/solar/eye-linear.d.ts +2 -0
- package/dist/components/icons/solar/eye-linear.js +20 -0
- package/dist/components/icons/solar/file-code-linear.d.ts +2 -0
- package/dist/components/icons/solar/file-code-linear.js +31 -0
- package/dist/components/icons/solar/file-linear.d.ts +2 -0
- package/dist/components/icons/solar/file-linear.js +24 -0
- package/dist/components/icons/solar/file-text-linear.d.ts +2 -0
- package/dist/components/icons/solar/file-text-linear.js +34 -0
- package/dist/components/icons/solar/folder-bold.d.ts +2 -0
- package/dist/components/icons/solar/folder-bold.js +19 -0
- package/dist/components/icons/solar/folder-linear.d.ts +2 -0
- package/dist/components/icons/solar/folder-linear.js +23 -0
- package/dist/components/icons/solar/gallery-linear.d.ts +2 -0
- package/dist/components/icons/solar/gallery-linear.js +29 -0
- package/dist/components/icons/solar/global-linear.d.ts +2 -0
- package/dist/components/icons/solar/global-linear.js +25 -0
- package/dist/components/icons/solar/graph-linear.d.ts +2 -0
- package/dist/components/icons/solar/graph-linear.js +21 -0
- package/dist/components/icons/solar/graph-up-linear.d.ts +2 -0
- package/dist/components/icons/solar/graph-up-linear.js +24 -0
- package/dist/components/icons/solar/heart-linear.d.ts +2 -0
- package/dist/components/icons/solar/heart-linear.js +22 -0
- package/dist/components/icons/solar/home-2-linear.d.ts +2 -0
- package/dist/components/icons/solar/home-2-linear.js +21 -0
- package/dist/components/icons/solar/home-smile-angle-bold.d.ts +2 -0
- package/dist/components/icons/solar/home-smile-angle-bold.js +19 -0
- package/dist/components/icons/solar/home-smile-angle-linear.d.ts +2 -0
- package/dist/components/icons/solar/home-smile-angle-linear.js +21 -0
- package/dist/components/icons/solar/inbox-linear.d.ts +2 -0
- package/dist/components/icons/solar/inbox-linear.js +23 -0
- package/dist/components/icons/solar/info-circle-linear.d.ts +2 -0
- package/dist/components/icons/solar/info-circle-linear.js +30 -0
- package/dist/components/icons/solar/letter-bold.d.ts +2 -0
- package/dist/components/icons/solar/letter-bold.js +19 -0
- package/dist/components/icons/solar/letter-linear.d.ts +2 -0
- package/dist/components/icons/solar/letter-linear.js +23 -0
- package/dist/components/icons/solar/like-linear.d.ts +2 -0
- package/dist/components/icons/solar/like-linear.js +28 -0
- package/dist/components/icons/solar/link-linear.d.ts +2 -0
- package/dist/components/icons/solar/link-linear.js +21 -0
- package/dist/components/icons/solar/list-linear.d.ts +2 -0
- package/dist/components/icons/solar/list-linear.js +25 -0
- package/dist/components/icons/solar/logout-2-linear.d.ts +2 -0
- package/dist/components/icons/solar/logout-2-linear.js +24 -0
- package/dist/components/icons/solar/magnifer-linear.d.ts +2 -0
- package/dist/components/icons/solar/magnifer-linear.js +27 -0
- package/dist/components/icons/solar/magnifier-zoom-in-linear.d.ts +2 -0
- package/dist/components/icons/solar/magnifier-zoom-in-linear.js +29 -0
- package/dist/components/icons/solar/magnifier-zoom-out-linear.d.ts +2 -0
- package/dist/components/icons/solar/magnifier-zoom-out-linear.js +29 -0
- package/dist/components/icons/solar/maximize-square-minimalistic-linear.d.ts +2 -0
- package/dist/components/icons/solar/maximize-square-minimalistic-linear.js +24 -0
- package/dist/components/icons/solar/menu-dots-linear.d.ts +2 -0
- package/dist/components/icons/solar/menu-dots-linear.js +34 -0
- package/dist/components/icons/solar/microphone-linear.d.ts +2 -0
- package/dist/components/icons/solar/microphone-linear.js +27 -0
- package/dist/components/icons/solar/minimize-square-minimalistic-linear.d.ts +2 -0
- package/dist/components/icons/solar/minimize-square-minimalistic-linear.js +24 -0
- package/dist/components/icons/solar/minus-circle-linear.d.ts +2 -0
- package/dist/components/icons/solar/minus-circle-linear.js +26 -0
- package/dist/components/icons/solar/monitor-linear.d.ts +2 -0
- package/dist/components/icons/solar/monitor-linear.js +23 -0
- package/dist/components/icons/solar/moon-linear.d.ts +2 -0
- package/dist/components/icons/solar/moon-linear.js +16 -0
- package/dist/components/icons/solar/notebook-bold.d.ts +2 -0
- package/dist/components/icons/solar/notebook-bold.js +19 -0
- package/dist/components/icons/solar/notebook-linear.d.ts +2 -0
- package/dist/components/icons/solar/notebook-linear.js +23 -0
- package/dist/components/icons/solar/pallete-2-bold.d.ts +2 -0
- package/dist/components/icons/solar/pallete-2-bold.js +19 -0
- package/dist/components/icons/solar/pallete-2-linear.d.ts +2 -0
- package/dist/components/icons/solar/pallete-2-linear.js +62 -0
- package/dist/components/icons/solar/panel-left-close-linear.d.ts +2 -0
- package/dist/components/icons/solar/panel-left-close-linear.js +26 -0
- package/dist/components/icons/solar/panel-left-open-linear.d.ts +2 -0
- package/dist/components/icons/solar/panel-left-open-linear.js +26 -0
- package/dist/components/icons/solar/pen-linear.d.ts +2 -0
- package/dist/components/icons/solar/pen-linear.js +21 -0
- package/dist/components/icons/solar/pie-chart-2-linear.d.ts +2 -0
- package/dist/components/icons/solar/pie-chart-2-linear.js +21 -0
- package/dist/components/icons/solar/presentation-graph-linear.d.ts +2 -0
- package/dist/components/icons/solar/presentation-graph-linear.js +28 -0
- package/dist/components/icons/solar/pulse-linear.d.ts +2 -0
- package/dist/components/icons/solar/pulse-linear.js +21 -0
- package/dist/components/icons/solar/question-circle-linear.d.ts +2 -0
- package/dist/components/icons/solar/question-circle-linear.js +32 -0
- package/dist/components/icons/solar/radio-minimalistic-linear.d.ts +2 -0
- package/dist/components/icons/solar/radio-minimalistic-linear.js +32 -0
- package/dist/components/icons/solar/refresh-bold.d.ts +2 -0
- package/dist/components/icons/solar/refresh-bold.js +20 -0
- package/dist/components/icons/solar/refresh-circle-linear.d.ts +2 -0
- package/dist/components/icons/solar/refresh-circle-linear.js +35 -0
- package/dist/components/icons/solar/refresh-linear.d.ts +2 -0
- package/dist/components/icons/solar/refresh-linear.js +16 -0
- package/dist/components/icons/solar/restart-linear.d.ts +2 -0
- package/dist/components/icons/solar/restart-linear.js +22 -0
- package/dist/components/icons/solar/sale-linear.d.ts +2 -0
- package/dist/components/icons/solar/sale-linear.js +34 -0
- package/dist/components/icons/solar/scissors-linear.d.ts +2 -0
- package/dist/components/icons/solar/scissors-linear.js +21 -0
- package/dist/components/icons/solar/settings-bold.d.ts +2 -0
- package/dist/components/icons/solar/settings-bold.js +19 -0
- package/dist/components/icons/solar/settings-linear.d.ts +2 -0
- package/dist/components/icons/solar/settings-linear.js +24 -0
- package/dist/components/icons/solar/share-linear.d.ts +2 -0
- package/dist/components/icons/solar/share-linear.js +27 -0
- package/dist/components/icons/solar/shield-warning-bold.d.ts +2 -0
- package/dist/components/icons/solar/shield-warning-bold.js +19 -0
- package/dist/components/icons/solar/shield-warning-linear.d.ts +2 -0
- package/dist/components/icons/solar/shield-warning-linear.js +36 -0
- package/dist/components/icons/solar/smile-circle-linear.d.ts +2 -0
- package/dist/components/icons/solar/smile-circle-linear.js +38 -0
- package/dist/components/icons/solar/sort-horizontal-linear.d.ts +2 -0
- package/dist/components/icons/solar/sort-horizontal-linear.js +22 -0
- package/dist/components/icons/solar/sort-vertical-linear.d.ts +2 -0
- package/dist/components/icons/solar/sort-vertical-linear.js +22 -0
- package/dist/components/icons/solar/soundwave-linear.d.ts +2 -0
- package/dist/components/icons/solar/soundwave-linear.js +27 -0
- package/dist/components/icons/solar/star-linear.d.ts +2 -0
- package/dist/components/icons/solar/star-linear.js +21 -0
- package/dist/components/icons/solar/stars-linear.d.ts +2 -0
- package/dist/components/icons/solar/stars-linear.js +20 -0
- package/dist/components/icons/solar/subtitles-linear.d.ts +2 -0
- package/dist/components/icons/solar/subtitles-linear.js +29 -0
- package/dist/components/icons/solar/sun-linear.d.ts +2 -0
- package/dist/components/icons/solar/sun-linear.js +27 -0
- package/dist/components/icons/solar/text-bold-linear.d.ts +2 -0
- package/dist/components/icons/solar/text-bold-linear.js +21 -0
- package/dist/components/icons/solar/text-format-linear.d.ts +2 -0
- package/dist/components/icons/solar/text-format-linear.js +22 -0
- package/dist/components/icons/solar/text-italic-linear.d.ts +2 -0
- package/dist/components/icons/solar/text-italic-linear.js +22 -0
- package/dist/components/icons/solar/text-underline-linear.d.ts +2 -0
- package/dist/components/icons/solar/text-underline-linear.js +22 -0
- package/dist/components/icons/solar/transfer-horizontal-linear.d.ts +2 -0
- package/dist/components/icons/solar/transfer-horizontal-linear.js +22 -0
- package/dist/components/icons/solar/transfer-vertical-linear.d.ts +2 -0
- package/dist/components/icons/solar/transfer-vertical-linear.js +22 -0
- package/dist/components/icons/solar/trash-bin-trash-linear.d.ts +2 -0
- package/dist/components/icons/solar/trash-bin-trash-linear.js +27 -0
- package/dist/components/icons/solar/user-circle-linear.d.ts +2 -0
- package/dist/components/icons/solar/user-circle-linear.js +33 -0
- package/dist/components/icons/solar/user-cross-linear.d.ts +2 -0
- package/dist/components/icons/solar/user-cross-linear.js +33 -0
- package/dist/components/icons/solar/user-linear.d.ts +2 -0
- package/dist/components/icons/solar/user-linear.js +25 -0
- package/dist/components/icons/solar/users-group-rounded-linear.d.ts +2 -0
- package/dist/components/icons/solar/users-group-rounded-linear.js +35 -0
- package/dist/components/icons/solar/verified-check-linear.d.ts +2 -0
- package/dist/components/icons/solar/verified-check-linear.js +24 -0
- package/dist/components/icons/solar/volume-cross-linear.d.ts +2 -0
- package/dist/components/icons/solar/volume-cross-linear.js +30 -0
- package/dist/components/icons/solar/wallet-linear.d.ts +2 -0
- package/dist/components/icons/solar/wallet-linear.js +32 -0
- package/dist/components/icons/solar/widget-2-bold.d.ts +2 -0
- package/dist/components/icons/solar/widget-2-bold.js +35 -0
- package/dist/components/icons/solar/widget-2-linear.d.ts +2 -0
- package/dist/components/icons/solar/widget-2-linear.js +20 -0
- package/dist/components/icons/solar/widget-4-linear.d.ts +2 -0
- package/dist/components/icons/solar/widget-4-linear.js +25 -0
- package/dist/components/icons/solar/window-frame-linear.d.ts +2 -0
- package/dist/components/icons/solar/window-frame-linear.js +37 -0
- package/dist/components/motion/MotionSurface.d.ts +4 -0
- package/dist/components/motion/MotionSurface.js +15 -0
- package/dist/components/motion/motion-tokens.d.ts +38 -0
- package/dist/components/motion/motion-tokens.js +38 -0
- package/dist/components/shared/BrandPaletteControl.d.ts +1 -0
- package/dist/components/shared/BrandPaletteControl.js +48 -0
- package/dist/components/shared/DarkStyleControl.d.ts +3 -0
- package/dist/components/shared/DarkStyleControl.js +48 -0
- package/dist/components/shared/DataTable.d.ts +29 -0
- package/dist/components/shared/DataTable.js +180 -0
- package/dist/components/shared/EmptyState.d.ts +11 -0
- package/dist/components/shared/EmptyState.js +32 -0
- package/dist/components/shared/FrostCard.d.ts +2 -0
- package/dist/components/shared/FrostCard.js +11 -0
- package/dist/components/shared/MetricCard.d.ts +14 -0
- package/dist/components/shared/MetricCard.js +36 -0
- package/dist/components/shared/StatusBadge.d.ts +32 -0
- package/dist/components/shared/StatusBadge.js +41 -0
- package/dist/components/shared/ThemeSwitcher.d.ts +3 -0
- package/dist/components/shared/ThemeSwitcher.js +93 -0
- package/dist/components/shared/data-table.css +375 -0
- package/dist/components/shared/use-data-table.d.ts +22 -0
- package/dist/components/shared/use-data-table.js +21 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.js +63 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/alert-dialog.js +99 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/alert.js +42 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/aspect-ratio.js +11 -0
- package/dist/components/ui/attachment.d.ts +24 -0
- package/dist/components/ui/attachment.js +100 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/avatar.js +50 -0
- package/dist/components/ui/badge.d.ts +25 -0
- package/dist/components/ui/badge.js +52 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb.js +82 -0
- package/dist/components/ui/bubble.d.ts +17 -0
- package/dist/components/ui/bubble.js +71 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button-group.js +39 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.js +55 -0
- package/dist/components/ui/calendar.d.ts +10 -0
- package/dist/components/ui/calendar.js +123 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/card.js +55 -0
- package/dist/components/ui/carousel.d.ts +28 -0
- package/dist/components/ui/carousel.js +142 -0
- package/dist/components/ui/chart.d.ts +44 -0
- package/dist/components/ui/chart.js +148 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.js +24 -0
- package/dist/components/ui/code-block.d.ts +26 -0
- package/dist/components/ui/code-block.js +133 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.js +23 -0
- package/dist/components/ui/combobox.d.ts +24 -0
- package/dist/components/ui/combobox.js +188 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/command.js +101 -0
- package/dist/components/ui/context-menu.d.ts +31 -0
- package/dist/components/ui/context-menu.js +142 -0
- package/dist/components/ui/date-picker.d.ts +19 -0
- package/dist/components/ui/date-picker.js +107 -0
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.js +121 -0
- package/dist/components/ui/direction.d.ts +7 -0
- package/dist/components/ui/direction.js +13 -0
- package/dist/components/ui/drawer.d.ts +13 -0
- package/dist/components/ui/drawer.js +76 -0
- package/dist/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/components/ui/dropdown-menu.js +141 -0
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/empty.js +58 -0
- package/dist/components/ui/field.d.ts +24 -0
- package/dist/components/ui/field.js +109 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.js +30 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input-group.js +79 -0
- package/dist/components/ui/input-otp.d.ts +11 -0
- package/dist/components/ui/input-otp.js +52 -0
- package/dist/components/ui/input.d.ts +11 -0
- package/dist/components/ui/input.js +20 -0
- package/dist/components/ui/item.d.ts +23 -0
- package/dist/components/ui/item.js +117 -0
- package/dist/components/ui/kbd.d.ts +3 -0
- package/dist/components/ui/kbd.js +18 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.js +13 -0
- package/dist/components/ui/marker.d.ts +11 -0
- package/dist/components/ui/marker.js +39 -0
- package/dist/components/ui/menubar.d.ts +30 -0
- package/dist/components/ui/menubar.js +153 -0
- package/dist/components/ui/message-scroller.d.ts +10 -0
- package/dist/components/ui/message-scroller.js +65 -0
- package/dist/components/ui/message.d.ts +10 -0
- package/dist/components/ui/message.js +48 -0
- package/dist/components/ui/native-select.d.ts +8 -0
- package/dist/components/ui/native-select.js +45 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/navigation-menu.js +84 -0
- package/dist/components/ui/pagination.d.ts +20 -0
- package/dist/components/ui/pagination.js +135 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/popover.js +54 -0
- package/dist/components/ui/popup.css +109 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/progress.js +20 -0
- package/dist/components/ui/questionnaire.d.ts +19 -0
- package/dist/components/ui/questionnaire.js +174 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group.js +25 -0
- package/dist/components/ui/resizable.d.ts +7 -0
- package/dist/components/ui/resizable.js +27 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.js +35 -0
- package/dist/components/ui/select.css +56 -0
- package/dist/components/ui/select.d.ts +22 -0
- package/dist/components/ui/select.js +226 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.js +15 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/sheet.js +94 -0
- package/dist/components/ui/sidebar.d.ts +69 -0
- package/dist/components/ui/sidebar.js +383 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton.js +11 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/slider.js +39 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/sonner.js +74 -0
- package/dist/components/ui/spinner.d.ts +2 -0
- package/dist/components/ui/spinner.js +19 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/switch.js +19 -0
- package/dist/components/ui/table.d.ts +12 -0
- package/dist/components/ui/table.js +66 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/tabs.js +45 -0
- package/dist/components/ui/text-field.css +96 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/textarea.js +13 -0
- package/dist/components/ui/toggle-group.d.ts +10 -0
- package/dist/components/ui/toggle-group.js +51 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/toggle.js +35 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip.js +34 -0
- package/dist/components/ui/trace.d.ts +18 -0
- package/dist/components/ui/trace.js +80 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +17 -0
- package/dist/lib/format.d.ts +3 -0
- package/dist/lib/format.js +24 -0
- package/dist/lib/storage.d.ts +22 -0
- package/dist/lib/storage.js +54 -0
- package/dist/lib/ui-labels.d.ts +37 -0
- package/dist/lib/ui-labels.js +37 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.js +1 -0
- package/dist/styles/dark-base.css +145 -0
- package/dist/styles/dark-clean.css +62 -0
- package/dist/styles/fonts.css +6 -0
- package/dist/styles/globals.css +134 -0
- package/dist/styles/icon-states.css +48 -0
- package/dist/styles/materials.css +188 -0
- package/dist/styles/motion.css +132 -0
- package/dist/styles/shadcn.css +642 -0
- package/dist/styles/soft-edge.css +60 -0
- package/dist/styles/spectrum.css +212 -0
- package/dist/styles/tokens.css +1048 -0
- package/package.json +116 -3
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const routeEntry: {
|
|
2
|
+
initial: {
|
|
3
|
+
opacity: number;
|
|
4
|
+
};
|
|
5
|
+
animate: {
|
|
6
|
+
opacity: number;
|
|
7
|
+
};
|
|
8
|
+
transition: {
|
|
9
|
+
duration: number;
|
|
10
|
+
ease: readonly [0.23, 1, 0.32, 1];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const dialogEntry: {
|
|
14
|
+
initial: {
|
|
15
|
+
opacity: number;
|
|
16
|
+
y: number;
|
|
17
|
+
};
|
|
18
|
+
animate: {
|
|
19
|
+
opacity: number;
|
|
20
|
+
y: number;
|
|
21
|
+
};
|
|
22
|
+
transition: {
|
|
23
|
+
duration: number;
|
|
24
|
+
ease: readonly [0.23, 1, 0.32, 1];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const overlayEntry: {
|
|
28
|
+
initial: {
|
|
29
|
+
opacity: number;
|
|
30
|
+
};
|
|
31
|
+
animate: {
|
|
32
|
+
opacity: number;
|
|
33
|
+
};
|
|
34
|
+
transition: {
|
|
35
|
+
duration: number;
|
|
36
|
+
ease: readonly [0.23, 1, 0.32, 1];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// src/components/motion/motion-tokens.ts
|
|
2
|
+
var easeOut = [
|
|
3
|
+
.23,
|
|
4
|
+
1,
|
|
5
|
+
.32,
|
|
6
|
+
1
|
|
7
|
+
];
|
|
8
|
+
var routeEntry = {
|
|
9
|
+
initial: { opacity: .65 },
|
|
10
|
+
animate: { opacity: 1 },
|
|
11
|
+
transition: {
|
|
12
|
+
duration: .21,
|
|
13
|
+
ease: easeOut
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var dialogEntry = {
|
|
17
|
+
initial: {
|
|
18
|
+
opacity: 0,
|
|
19
|
+
y: 6
|
|
20
|
+
},
|
|
21
|
+
animate: {
|
|
22
|
+
opacity: 1,
|
|
23
|
+
y: 0
|
|
24
|
+
},
|
|
25
|
+
transition: {
|
|
26
|
+
duration: .18,
|
|
27
|
+
ease: easeOut
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
var overlayEntry = {
|
|
31
|
+
initial: { opacity: 0 },
|
|
32
|
+
animate: { opacity: 1 },
|
|
33
|
+
transition: {
|
|
34
|
+
duration: .16,
|
|
35
|
+
ease: easeOut
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export { dialogEntry, overlayEntry, routeEntry };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function BrandPaletteControl(): import("react").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AppIcon } from "../icons/app-icon.js";
|
|
2
|
+
import { Pallete2LinearIcon } from "../icons/solar/pallete-2-linear.js";
|
|
3
|
+
import { Button } from "../ui/button.js";
|
|
4
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip.js";
|
|
5
|
+
import { getActivePalette, isPalette, paletteLabels, setStoredPalette } from "../../lib/storage.js";
|
|
6
|
+
import { useUiLabels } from "../../lib/ui-labels.js";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { useTheme } from "next-themes";
|
|
10
|
+
// src/components/shared/BrandPaletteControl.tsx
|
|
11
|
+
var paletteOrder = Object.keys(paletteLabels).filter(isPalette);
|
|
12
|
+
var lightOnlyPalettes = /* @__PURE__ */ new Set(["aries-light"]);
|
|
13
|
+
function getNextPalette(palette, dark) {
|
|
14
|
+
const order = dark ? paletteOrder.filter((item) => !lightOnlyPalettes.has(item)) : paletteOrder;
|
|
15
|
+
return order[(order.indexOf(palette) + 1) % order.length] ?? palette;
|
|
16
|
+
}
|
|
17
|
+
function BrandPaletteControl() {
|
|
18
|
+
const labels = useUiLabels();
|
|
19
|
+
const [palette, setPalette] = useState(getActivePalette);
|
|
20
|
+
const dark = useTheme().resolvedTheme === "dark";
|
|
21
|
+
const nextPalette = getNextPalette(palette, dark);
|
|
22
|
+
function cyclePalette() {
|
|
23
|
+
const next = getNextPalette(getActivePalette(), dark);
|
|
24
|
+
setStoredPalette(next);
|
|
25
|
+
setPalette(next);
|
|
26
|
+
}
|
|
27
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
28
|
+
asChild: true,
|
|
29
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
30
|
+
type: "button",
|
|
31
|
+
variant: "ghost",
|
|
32
|
+
size: "icon",
|
|
33
|
+
className: "workspace-mode-control",
|
|
34
|
+
"aria-label": labels.brandPalette,
|
|
35
|
+
onClick: cyclePalette,
|
|
36
|
+
children: /* @__PURE__ */ jsx(AppIcon, {
|
|
37
|
+
icon: Pallete2LinearIcon,
|
|
38
|
+
size: 20,
|
|
39
|
+
"aria-hidden": "true"
|
|
40
|
+
})
|
|
41
|
+
})
|
|
42
|
+
}), /* @__PURE__ */ jsx(TooltipContent, {
|
|
43
|
+
side: "bottom",
|
|
44
|
+
sideOffset: 8,
|
|
45
|
+
children: labels.brandTooltip(labels.paletteName(palette, paletteLabels[palette]), labels.paletteName(nextPalette, paletteLabels[nextPalette]))
|
|
46
|
+
})] });
|
|
47
|
+
}
|
|
48
|
+
export { BrandPaletteControl };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AppIcon } from "../icons/app-icon.js";
|
|
2
|
+
import { WindowFrameLinearIcon } from "../icons/solar/window-frame-linear.js";
|
|
3
|
+
import { Button } from "../ui/button.js";
|
|
4
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip.js";
|
|
5
|
+
import { getActiveDarkStyle, setStoredDarkStyle } from "../../lib/storage.js";
|
|
6
|
+
import { useUiLabels } from "../../lib/ui-labels.js";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { useTheme } from "next-themes";
|
|
10
|
+
// src/components/shared/DarkStyleControl.tsx
|
|
11
|
+
/** Header switch between the two dark looks, for comparing them. Dark mode
|
|
12
|
+
* only: light mode shows exactly the controls it always did. */
|
|
13
|
+
function DarkStyleControl() {
|
|
14
|
+
const { resolvedTheme } = useTheme();
|
|
15
|
+
const ui = useUiLabels();
|
|
16
|
+
const labels = {
|
|
17
|
+
glass: ui.darkGlass,
|
|
18
|
+
clean: ui.darkClean
|
|
19
|
+
};
|
|
20
|
+
const [style, setStyle] = useState(getActiveDarkStyle);
|
|
21
|
+
if (resolvedTheme !== "dark") return null;
|
|
22
|
+
const next = style === "glass" ? "clean" : "glass";
|
|
23
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
24
|
+
asChild: true,
|
|
25
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
26
|
+
type: "button",
|
|
27
|
+
variant: "ghost",
|
|
28
|
+
size: "icon",
|
|
29
|
+
className: "workspace-mode-control",
|
|
30
|
+
"aria-label": ui.darkStyle,
|
|
31
|
+
"aria-pressed": style === "clean",
|
|
32
|
+
onClick: () => {
|
|
33
|
+
setStoredDarkStyle(next);
|
|
34
|
+
setStyle(next);
|
|
35
|
+
},
|
|
36
|
+
children: /* @__PURE__ */ jsx(AppIcon, {
|
|
37
|
+
icon: WindowFrameLinearIcon,
|
|
38
|
+
size: 20,
|
|
39
|
+
"aria-hidden": "true"
|
|
40
|
+
})
|
|
41
|
+
})
|
|
42
|
+
}), /* @__PURE__ */ jsx(TooltipContent, {
|
|
43
|
+
side: "bottom",
|
|
44
|
+
sideOffset: 8,
|
|
45
|
+
children: ui.darkTooltip(labels[style], labels[next])
|
|
46
|
+
})] });
|
|
47
|
+
}
|
|
48
|
+
export { DarkStyleControl };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { RowData } from "@tanstack/react-table";
|
|
3
|
+
import type { DataTableInstance } from "./use-data-table.js";
|
|
4
|
+
type Align = "start" | "end" | "center";
|
|
5
|
+
export interface DataTableProps<TData extends RowData> {
|
|
6
|
+
table: DataTableInstance<TData>;
|
|
7
|
+
/** Screen-reader caption and the label of the scroll region. */
|
|
8
|
+
caption: string;
|
|
9
|
+
/** Alignment per column id: shared by the header and every cell below it. */
|
|
10
|
+
columnAlign?: Readonly<Record<string, Align>>;
|
|
11
|
+
/** Column rendered as the row header (`th scope="row"`). */
|
|
12
|
+
rowHeaderColumn: string;
|
|
13
|
+
selectAllLabel: string;
|
|
14
|
+
selectRowLabel: (row: TData) => string;
|
|
15
|
+
paginationLabel: string;
|
|
16
|
+
pageSizes?: readonly number[];
|
|
17
|
+
/** Shown instead of the rows when nothing matches. */
|
|
18
|
+
empty: ReactNode;
|
|
19
|
+
scrollHint?: string;
|
|
20
|
+
/** Shows shimmering skeleton rows (same row height) instead of the data. */
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The Aries table template: shadcn Table + TanStack Table, a quiet sticky
|
|
25
|
+
* header, per-column alignment, row selection and a footer with the row range
|
|
26
|
+
* and round pagination. Features pass columns and cell content only.
|
|
27
|
+
*/
|
|
28
|
+
export declare function DataTable<TData extends RowData>({ table, caption, columnAlign, rowHeaderColumn, selectAllLabel, selectRowLabel, paginationLabel, pageSizes, empty, scrollHint, loading, }: DataTableProps<TData>): import("react").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { useUiLabels } from "../../lib/ui-labels.js";
|
|
2
|
+
import { AppIcon } from "../icons/app-icon.js";
|
|
3
|
+
import { SortHorizontalLinearIcon } from "../icons/solar/sort-horizontal-linear.js";
|
|
4
|
+
import { Button } from "../ui/button.js";
|
|
5
|
+
import { Checkbox } from "../ui/checkbox.js";
|
|
6
|
+
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, getPaginationRange } from "../ui/pagination.js";
|
|
7
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../ui/select.js";
|
|
8
|
+
import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from "../ui/table.js";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import "./data-table.css";
|
|
11
|
+
// src/components/shared/DataTable.tsx
|
|
12
|
+
/**
|
|
13
|
+
* The Aries table template: shadcn Table + TanStack Table, a quiet sticky
|
|
14
|
+
* header, per-column alignment, row selection and a footer with the row range
|
|
15
|
+
* and round pagination. Features pass columns and cell content only.
|
|
16
|
+
*/
|
|
17
|
+
function DataTable({ table, caption, columnAlign = {}, rowHeaderColumn, selectAllLabel, selectRowLabel, paginationLabel, pageSizes = [
|
|
18
|
+
10,
|
|
19
|
+
20,
|
|
20
|
+
50
|
|
21
|
+
], empty, scrollHint, loading = false }) {
|
|
22
|
+
const labels = useUiLabels();
|
|
23
|
+
const count = table.getFilteredRowModel().rows.length;
|
|
24
|
+
const selectedCount = table.getSelectedRowIds().length;
|
|
25
|
+
const visibleRows = table.getRowModel().rows;
|
|
26
|
+
const { pageIndex, pageSize } = table.state.pagination;
|
|
27
|
+
const first = pageIndex * pageSize + 1;
|
|
28
|
+
const last = first + visibleRows.length - 1;
|
|
29
|
+
const pageItems = getPaginationRange(pageIndex + 1, table.getPageCount());
|
|
30
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31
|
+
scrollHint && /* @__PURE__ */ jsxs("p", {
|
|
32
|
+
className: "data-table-hint",
|
|
33
|
+
"data-empty": !count || void 0,
|
|
34
|
+
children: [/* @__PURE__ */ jsx(AppIcon, {
|
|
35
|
+
icon: SortHorizontalLinearIcon,
|
|
36
|
+
size: 15
|
|
37
|
+
}), scrollHint]
|
|
38
|
+
}),
|
|
39
|
+
loading ? /* @__PURE__ */ jsx("div", {
|
|
40
|
+
className: "data-table-empty data-table-skeleton",
|
|
41
|
+
role: "status",
|
|
42
|
+
"aria-label": labels.loading,
|
|
43
|
+
children: Array.from({ length: 6 }, (_, row) => /* @__PURE__ */ jsxs("div", {
|
|
44
|
+
className: "data-table-skeleton-row",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ jsx("span", { className: "shimmer-block" }),
|
|
47
|
+
/* @__PURE__ */ jsx("span", { className: "shimmer-block" }),
|
|
48
|
+
/* @__PURE__ */ jsx("span", { className: "shimmer-block" })
|
|
49
|
+
]
|
|
50
|
+
}, row))
|
|
51
|
+
}) : count === 0 ? /* @__PURE__ */ jsx("div", {
|
|
52
|
+
className: "data-table-empty",
|
|
53
|
+
children: empty
|
|
54
|
+
}) : /* @__PURE__ */ jsxs(Table, {
|
|
55
|
+
className: "data-table",
|
|
56
|
+
containerProps: {
|
|
57
|
+
className: "data-table-scroll",
|
|
58
|
+
role: "region",
|
|
59
|
+
"aria-label": caption,
|
|
60
|
+
tabIndex: 0
|
|
61
|
+
},
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ jsx(TableCaption, {
|
|
64
|
+
className: "sr-only",
|
|
65
|
+
children: caption
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ jsx(TableHeader, { children: table.getHeaderGroups().map((group) => /* @__PURE__ */ jsx(TableRow, { children: group.headers.map((header) => {
|
|
68
|
+
const id = header.column.id;
|
|
69
|
+
return /* @__PURE__ */ jsx(TableHead, {
|
|
70
|
+
"data-column": id,
|
|
71
|
+
"data-align": columnAlign[id],
|
|
72
|
+
scope: "col",
|
|
73
|
+
children: id === "selection" ? /* @__PURE__ */ jsx(Checkbox, {
|
|
74
|
+
"aria-label": selectAllLabel,
|
|
75
|
+
checked: table.getIsAllPageRowsSelected() || table.getIsSomePageRowsSelected() && "indeterminate",
|
|
76
|
+
onCheckedChange: (value) => table.toggleAllPageRowsSelected(value === true)
|
|
77
|
+
}) : /* @__PURE__ */ jsx(table.FlexRender, { header })
|
|
78
|
+
}, header.id);
|
|
79
|
+
}) }, group.id)) }),
|
|
80
|
+
/* @__PURE__ */ jsx(TableBody, { children: visibleRows.map((row, index) => /* @__PURE__ */ jsx(TableRow, {
|
|
81
|
+
"data-state": row.getIsSelected() ? "selected" : void 0,
|
|
82
|
+
style: { "--row-index": index },
|
|
83
|
+
children: row.getAllCells().map((cell) => {
|
|
84
|
+
const id = cell.column.id;
|
|
85
|
+
return /* @__PURE__ */ jsx(id === rowHeaderColumn ? TableHead : TableCell, {
|
|
86
|
+
className: id === rowHeaderColumn ? void 0 : "py-0",
|
|
87
|
+
scope: id === rowHeaderColumn ? "row" : void 0,
|
|
88
|
+
"data-column": id,
|
|
89
|
+
"data-align": columnAlign[id],
|
|
90
|
+
children: id === "selection" ? /* @__PURE__ */ jsx(Checkbox, {
|
|
91
|
+
"aria-label": selectRowLabel(row.original),
|
|
92
|
+
checked: row.getIsSelected(),
|
|
93
|
+
onCheckedChange: (value) => row.toggleSelected(value === true)
|
|
94
|
+
}) : /* @__PURE__ */ jsx(table.FlexRender, { cell })
|
|
95
|
+
}, cell.id);
|
|
96
|
+
})
|
|
97
|
+
}, row.id)) })
|
|
98
|
+
]
|
|
99
|
+
}),
|
|
100
|
+
/* @__PURE__ */ jsxs("div", {
|
|
101
|
+
className: "data-table-footer",
|
|
102
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
103
|
+
className: "data-table-summary",
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ jsx("p", {
|
|
106
|
+
"aria-live": "polite",
|
|
107
|
+
children: count ? labels.tableRange(first, last, count) : labels.tableEmpty
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ jsx("span", {
|
|
110
|
+
role: "status",
|
|
111
|
+
className: selectedCount === 0 ? "sr-only" : void 0,
|
|
112
|
+
children: labels.selectedCount(selectedCount)
|
|
113
|
+
}),
|
|
114
|
+
selectedCount > 0 && /* @__PURE__ */ jsx(Button, {
|
|
115
|
+
type: "button",
|
|
116
|
+
variant: "link",
|
|
117
|
+
size: "xs",
|
|
118
|
+
className: "px-0",
|
|
119
|
+
onClick: () => table.resetRowSelection(),
|
|
120
|
+
children: labels.clearSelection
|
|
121
|
+
})
|
|
122
|
+
]
|
|
123
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
124
|
+
className: "data-table-pagination",
|
|
125
|
+
children: [/* @__PURE__ */ jsxs(Select, {
|
|
126
|
+
value: String(pageSize),
|
|
127
|
+
onValueChange: (value) => table.setPagination({
|
|
128
|
+
pageIndex: 0,
|
|
129
|
+
pageSize: Number(value)
|
|
130
|
+
}),
|
|
131
|
+
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
132
|
+
className: "h-(--pagination-control-size)",
|
|
133
|
+
"aria-label": labels.pageSize,
|
|
134
|
+
size: "dense",
|
|
135
|
+
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
136
|
+
}), /* @__PURE__ */ jsx(SelectContent, {
|
|
137
|
+
position: "popper",
|
|
138
|
+
align: "start",
|
|
139
|
+
children: pageSizes.map((size) => /* @__PURE__ */ jsx(SelectItem, {
|
|
140
|
+
value: String(size),
|
|
141
|
+
children: size
|
|
142
|
+
}, size))
|
|
143
|
+
})]
|
|
144
|
+
}), /* @__PURE__ */ jsx(Pagination, {
|
|
145
|
+
className: "mx-0 w-auto",
|
|
146
|
+
"aria-label": paginationLabel,
|
|
147
|
+
children: /* @__PURE__ */ jsxs(PaginationContent, { children: [
|
|
148
|
+
/* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationPrevious, {
|
|
149
|
+
className: "h-7 rounded-full px-2.5 text-xs pointer-coarse:h-10",
|
|
150
|
+
disabled: !count || !table.getCanPreviousPage(),
|
|
151
|
+
onClick: () => table.previousPage(),
|
|
152
|
+
"aria-label": labels.previousPage,
|
|
153
|
+
title: labels.previousPage,
|
|
154
|
+
children: labels.previousPage
|
|
155
|
+
}) }),
|
|
156
|
+
pageItems.map((item, index) => /* @__PURE__ */ jsx(PaginationItem, {
|
|
157
|
+
className: "max-sm:hidden",
|
|
158
|
+
children: item === "ellipsis" ? /* @__PURE__ */ jsx(PaginationEllipsis, { className: "size-7 pointer-coarse:size-10" }) : /* @__PURE__ */ jsx(PaginationLink, {
|
|
159
|
+
className: "size-7 rounded-full text-xs pointer-coarse:size-10",
|
|
160
|
+
isActive: item === pageIndex + 1,
|
|
161
|
+
"aria-label": labels.pageN(item),
|
|
162
|
+
onClick: () => table.setPageIndex(item - 1),
|
|
163
|
+
children: item
|
|
164
|
+
})
|
|
165
|
+
}, item === "ellipsis" ? `ellipsis-${index}` : item)),
|
|
166
|
+
/* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationNext, {
|
|
167
|
+
className: "h-7 rounded-full px-2.5 text-xs pointer-coarse:h-10",
|
|
168
|
+
disabled: !count || !table.getCanNextPage(),
|
|
169
|
+
onClick: () => table.nextPage(),
|
|
170
|
+
"aria-label": labels.nextPage,
|
|
171
|
+
title: labels.nextPage,
|
|
172
|
+
children: labels.nextPage
|
|
173
|
+
}) })
|
|
174
|
+
] })
|
|
175
|
+
})]
|
|
176
|
+
})]
|
|
177
|
+
})
|
|
178
|
+
] });
|
|
179
|
+
}
|
|
180
|
+
export { DataTable };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type AppIconComponent } from "../icons/index.js";
|
|
3
|
+
type EmptyStateProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
icon?: AppIconComponent;
|
|
7
|
+
action?: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function EmptyState({ title, description, icon, action, className, }: EmptyStateProps): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AppIcon } from "../icons/app-icon.js";
|
|
2
|
+
import { InboxLinearIcon } from "../icons/solar/inbox-linear.js";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/components/shared/EmptyState.tsx
|
|
6
|
+
function EmptyState({ title, description, icon = InboxLinearIcon, action, className }) {
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
8
|
+
className: cn("grid justify-items-center gap-2 px-5 py-10 text-center", className),
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ jsx("div", {
|
|
11
|
+
className: "mb-1 grid size-12 place-items-center rounded-2xl bg-accent text-accent-foreground",
|
|
12
|
+
children: /* @__PURE__ */ jsx(AppIcon, {
|
|
13
|
+
icon,
|
|
14
|
+
"aria-hidden": "true"
|
|
15
|
+
})
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ jsx("h3", {
|
|
18
|
+
className: "text-sm font-semibold text-foreground",
|
|
19
|
+
children: title
|
|
20
|
+
}),
|
|
21
|
+
description && /* @__PURE__ */ jsx("p", {
|
|
22
|
+
className: "max-w-sm text-sm leading-relaxed text-muted-foreground",
|
|
23
|
+
children: description
|
|
24
|
+
}),
|
|
25
|
+
action && /* @__PURE__ */ jsx("div", {
|
|
26
|
+
className: "mt-2",
|
|
27
|
+
children: action
|
|
28
|
+
})
|
|
29
|
+
]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export { EmptyState };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Card } from "../ui/card.js";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
// src/components/shared/FrostCard.tsx
|
|
5
|
+
function FrostCard({ className, ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx(Card, {
|
|
7
|
+
className: cn("surface gap-0 overflow-visible bg-transparent p-0 shadow-none ring-0", className),
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
export { FrostCard };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type AppIconComponent } from "../icons/index.js";
|
|
3
|
+
type MetricCardProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: ReactNode;
|
|
6
|
+
icon?: AppIconComponent;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
featured?: boolean;
|
|
11
|
+
density?: "default" | "compact";
|
|
12
|
+
};
|
|
13
|
+
export declare function MetricCard({ label, value, icon, description, children, className, featured, density, }: MetricCardProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AppIcon } from "../icons/app-icon.js";
|
|
2
|
+
import { FrostCard } from "./FrostCard.js";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/components/shared/MetricCard.tsx
|
|
6
|
+
function MetricCard({ label, value, icon, description, children, className, featured = false, density = "default" }) {
|
|
7
|
+
const compact = density === "compact";
|
|
8
|
+
return /* @__PURE__ */ jsxs(FrostCard, {
|
|
9
|
+
className: cn("min-w-0", compact ? "p-(--card-inset)" : "gap-3 p-(--card-inset)", className),
|
|
10
|
+
children: [/* @__PURE__ */ jsxs("dl", {
|
|
11
|
+
className: "min-w-0",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ jsxs("dt", {
|
|
14
|
+
className: cn("flex items-center justify-between gap-2", compact ? "text-(length:--metric-label-size) leading-(--metric-label-leading) font-(number:--metric-label-weight)" : "min-h-8 text-sm font-medium text-muted-foreground"),
|
|
15
|
+
children: [label, icon && /* @__PURE__ */ jsx("span", {
|
|
16
|
+
className: "grid size-8 shrink-0 place-items-center rounded-xl bg-accent text-accent-foreground",
|
|
17
|
+
children: /* @__PURE__ */ jsx(AppIcon, {
|
|
18
|
+
icon,
|
|
19
|
+
size: 16,
|
|
20
|
+
"aria-hidden": "true"
|
|
21
|
+
})
|
|
22
|
+
})]
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ jsx("dd", {
|
|
25
|
+
className: cn("break-words tabular-nums", compact ? "mt-1 text-(length:--metric-value-size) leading-(--metric-value-leading) font-(number:--metric-value-weight) tracking-(--metric-value-tracking)" : "mt-2 leading-tight font-semibold tracking-tight", !compact && (featured ? "text-3xl sm:text-4xl" : "text-[clamp(1.35rem,2.1vw,1.85rem)]")),
|
|
26
|
+
children: value
|
|
27
|
+
}),
|
|
28
|
+
description && /* @__PURE__ */ jsx("dd", {
|
|
29
|
+
className: cn(compact ? "mt-1 text-(length:--metric-note-size) leading-(--metric-note-leading)" : "mt-1.5 text-xs", compact && featured ? "text-(--hero-muted)" : "text-muted-foreground"),
|
|
30
|
+
children: description
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
}), children]
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
export { MetricCard };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
declare const tones: {
|
|
3
|
+
readonly neutral: {
|
|
4
|
+
readonly color: "--muted-foreground";
|
|
5
|
+
readonly background: "--muted";
|
|
6
|
+
};
|
|
7
|
+
readonly success: {
|
|
8
|
+
readonly color: "--success";
|
|
9
|
+
readonly background: "--success-bg";
|
|
10
|
+
};
|
|
11
|
+
readonly warning: {
|
|
12
|
+
readonly color: "--warning";
|
|
13
|
+
readonly background: "--warning-bg";
|
|
14
|
+
};
|
|
15
|
+
readonly danger: {
|
|
16
|
+
readonly color: "--danger";
|
|
17
|
+
readonly background: "--danger-bg";
|
|
18
|
+
};
|
|
19
|
+
readonly info: {
|
|
20
|
+
readonly color: "--info";
|
|
21
|
+
readonly background: "--info-bg";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type StatusBadgeProps = {
|
|
25
|
+
tone?: keyof typeof tones;
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
className?: string;
|
|
28
|
+
/** Slow breathing dot for work that is still in progress. */
|
|
29
|
+
pulse?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare function StatusBadge({ tone, children, className, pulse, }: StatusBadgeProps): import("react").JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Badge } from "../ui/badge.js";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
// src/components/shared/StatusBadge.tsx
|
|
5
|
+
var tones = {
|
|
6
|
+
neutral: {
|
|
7
|
+
color: "--muted-foreground",
|
|
8
|
+
background: "--muted"
|
|
9
|
+
},
|
|
10
|
+
success: {
|
|
11
|
+
color: "--success",
|
|
12
|
+
background: "--success-bg"
|
|
13
|
+
},
|
|
14
|
+
warning: {
|
|
15
|
+
color: "--warning",
|
|
16
|
+
background: "--warning-bg"
|
|
17
|
+
},
|
|
18
|
+
danger: {
|
|
19
|
+
color: "--danger",
|
|
20
|
+
background: "--danger-bg"
|
|
21
|
+
},
|
|
22
|
+
info: {
|
|
23
|
+
color: "--info",
|
|
24
|
+
background: "--info-bg"
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
function StatusBadge({ tone = "neutral", children, className, pulse = false }) {
|
|
28
|
+
const { color, background } = tones[tone];
|
|
29
|
+
return /* @__PURE__ */ jsxs(Badge, {
|
|
30
|
+
className: cn("h-6 gap-1.5 rounded-full border-[color:var(--status-badge-edge,transparent)] px-2 text-xs font-medium", className),
|
|
31
|
+
style: {
|
|
32
|
+
color: `var(${color})`,
|
|
33
|
+
backgroundColor: `var(${background})`
|
|
34
|
+
},
|
|
35
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
36
|
+
"aria-hidden": "true",
|
|
37
|
+
className: cn("size-1.5 rounded-full bg-current", pulse && "status-pulse")
|
|
38
|
+
}), children]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export { StatusBadge };
|