@marismoon/ui 0.0.0-stage → 0.1.0-next.1
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,93 @@
|
|
|
1
|
+
import { AppIcon } from "../icons/app-icon.js";
|
|
2
|
+
import { MoonLinearIcon } from "../icons/solar/moon-linear.js";
|
|
3
|
+
import { SunLinearIcon } from "../icons/solar/sun-linear.js";
|
|
4
|
+
import { Button } from "../ui/button.js";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { useUiLabels } from "../../lib/ui-labels.js";
|
|
7
|
+
import { useState, useSyncExternalStore } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { AnimatePresence } from "motion/react";
|
|
10
|
+
import { span } from "motion/react-m";
|
|
11
|
+
import { useTheme } from "next-themes";
|
|
12
|
+
// src/components/shared/ThemeSwitcher.tsx
|
|
13
|
+
var iconEaseOut = [
|
|
14
|
+
.23,
|
|
15
|
+
1,
|
|
16
|
+
.32,
|
|
17
|
+
1
|
|
18
|
+
];
|
|
19
|
+
var reducedMotionQuery = "(prefers-reduced-motion: reduce)";
|
|
20
|
+
function subscribeToMotionPreference(onChange) {
|
|
21
|
+
const media = window.matchMedia(reducedMotionQuery);
|
|
22
|
+
media.addEventListener("change", onChange);
|
|
23
|
+
return () => media.removeEventListener("change", onChange);
|
|
24
|
+
}
|
|
25
|
+
function prefersReducedMotion() {
|
|
26
|
+
return window.matchMedia(reducedMotionQuery).matches;
|
|
27
|
+
}
|
|
28
|
+
function ThemeSwitcher({ className }) {
|
|
29
|
+
const { resolvedTheme, setTheme } = useTheme();
|
|
30
|
+
const [iconReset, setIconReset] = useState(0);
|
|
31
|
+
const reduceMotion = useSyncExternalStore(subscribeToMotionPreference, prefersReducedMotion, () => null);
|
|
32
|
+
const labels = useUiLabels();
|
|
33
|
+
const ready = reduceMotion !== null && (resolvedTheme === "dark" || resolvedTheme === "light");
|
|
34
|
+
const dark = resolvedTheme === "dark";
|
|
35
|
+
const target = dark ? "light" : "dark";
|
|
36
|
+
const label = ready ? target === "light" ? labels.themeToLight : labels.themeToDark : labels.themeLoading;
|
|
37
|
+
const icon = /* @__PURE__ */ jsx(AppIcon, {
|
|
38
|
+
icon: dark ? MoonLinearIcon : SunLinearIcon,
|
|
39
|
+
size: 20,
|
|
40
|
+
"aria-hidden": "true"
|
|
41
|
+
});
|
|
42
|
+
const hiddenIcon = {
|
|
43
|
+
rotate: dark ? -90 : 90,
|
|
44
|
+
scale: 0
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
47
|
+
type: "button",
|
|
48
|
+
variant: "ghost",
|
|
49
|
+
size: "icon",
|
|
50
|
+
className: cn("workspace-mode-control", className),
|
|
51
|
+
"aria-label": label,
|
|
52
|
+
"aria-description": labels.themeShiftHint,
|
|
53
|
+
"aria-keyshortcuts": "Shift+Enter Shift+Space",
|
|
54
|
+
title: ready ? labels.themeTitle(label) : label,
|
|
55
|
+
disabled: !ready,
|
|
56
|
+
onClick: (event) => {
|
|
57
|
+
if (event.detail === 0 || event.shiftKey) setIconReset((current) => current + 1);
|
|
58
|
+
setTheme(event.shiftKey ? "system" : target);
|
|
59
|
+
},
|
|
60
|
+
onKeyDown: (event) => {
|
|
61
|
+
if (event.shiftKey && (event.key === "Enter" || event.key === " ")) {
|
|
62
|
+
event.preventDefault();
|
|
63
|
+
setIconReset((current) => current + 1);
|
|
64
|
+
setTheme("system");
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
children: ready && (reduceMotion ? icon : /* @__PURE__ */ jsx(AnimatePresence, {
|
|
68
|
+
initial: false,
|
|
69
|
+
mode: "wait",
|
|
70
|
+
children: /* @__PURE__ */ jsx(span, {
|
|
71
|
+
className: "flex text-foreground",
|
|
72
|
+
initial: hiddenIcon,
|
|
73
|
+
animate: {
|
|
74
|
+
rotate: 0,
|
|
75
|
+
scale: 1
|
|
76
|
+
},
|
|
77
|
+
exit: {
|
|
78
|
+
...hiddenIcon,
|
|
79
|
+
transition: {
|
|
80
|
+
duration: .085,
|
|
81
|
+
ease: iconEaseOut
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
transition: {
|
|
85
|
+
duration: .115,
|
|
86
|
+
ease: iconEaseOut
|
|
87
|
+
},
|
|
88
|
+
children: icon
|
|
89
|
+
}, resolvedTheme)
|
|
90
|
+
}, iconReset))
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
export { ThemeSwitcher };
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
/* Aries data table template. Every table in the product renders through
|
|
2
|
+
DataTable, so these rules are the only place table chrome is defined.
|
|
3
|
+
Features add column widths (--column-fraction) and cell content styles. */
|
|
4
|
+
|
|
5
|
+
.data-table-hint {
|
|
6
|
+
--data-table-inset: var(--register-inset, var(--space-4));
|
|
7
|
+
display: none;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 5px;
|
|
10
|
+
padding: 0 var(--data-table-inset) 9px;
|
|
11
|
+
color: var(--muted-foreground);
|
|
12
|
+
font-size: 0.75rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@container (max-width: 899px) {
|
|
16
|
+
.data-table-hint {
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.data-table-hint[data-empty] {
|
|
22
|
+
visibility: hidden;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* The table fills its card: toolbar and footer keep their height and the rows
|
|
26
|
+
scroll in this region, so the card bottom lines up with the nav. */
|
|
27
|
+
.data-table-scroll,
|
|
28
|
+
.data-table-empty {
|
|
29
|
+
flex: 1 1 0;
|
|
30
|
+
min-block-size: var(--data-table-min-height, 560px);
|
|
31
|
+
min-width: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.data-table-scroll {
|
|
35
|
+
position: relative;
|
|
36
|
+
overflow: auto;
|
|
37
|
+
scrollbar-color: var(--border) transparent;
|
|
38
|
+
scrollbar-width: thin;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.data-table-scroll:focus-visible {
|
|
42
|
+
outline-offset: -2px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.data-table {
|
|
46
|
+
--data-table-selection-width: 40px;
|
|
47
|
+
--data-table-data-width: max(
|
|
48
|
+
860px,
|
|
49
|
+
calc(100cqw - var(--data-table-selection-width))
|
|
50
|
+
);
|
|
51
|
+
width: 100%;
|
|
52
|
+
min-width: calc(860px + var(--data-table-selection-width));
|
|
53
|
+
border-collapse: collapse;
|
|
54
|
+
table-layout: fixed;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.data-table :is(th, td) {
|
|
58
|
+
padding-inline: var(--space-3);
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
vertical-align: middle;
|
|
61
|
+
text-align: start;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* One alignment per column, set on both its header and its cells, so a header
|
|
65
|
+
and its values always share the same edge. */
|
|
66
|
+
.data-table [data-align="end"] {
|
|
67
|
+
text-align: end;
|
|
68
|
+
font-variant-numeric: tabular-nums lining-nums;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.data-table [data-align="center"] {
|
|
72
|
+
text-align: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.data-table tr > :last-child {
|
|
76
|
+
padding-inline-end: 14px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.data-table [data-column]:not([data-column="selection"]) {
|
|
80
|
+
width: calc(var(--data-table-data-width) * var(--column-fraction, 0.1));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.data-table [data-column="selection"] {
|
|
84
|
+
width: var(--data-table-selection-width);
|
|
85
|
+
padding-inline: 0;
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.data-table [data-column="selection"] + [data-column] {
|
|
90
|
+
padding-inline-start: 14px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* A floating pill header bar: the cell is transparent and ::after paints the
|
|
94
|
+
capsule with the same surface and lift as the search box. */
|
|
95
|
+
.data-table thead th {
|
|
96
|
+
position: sticky;
|
|
97
|
+
z-index: 1;
|
|
98
|
+
top: 0;
|
|
99
|
+
height: 38px;
|
|
100
|
+
border-bottom: 0;
|
|
101
|
+
background: transparent;
|
|
102
|
+
color: var(--muted-foreground);
|
|
103
|
+
font-size: 0.71875rem;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
letter-spacing: 0.02em;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.data-table thead th::after {
|
|
109
|
+
content: "";
|
|
110
|
+
position: absolute;
|
|
111
|
+
z-index: -1;
|
|
112
|
+
inset: 0;
|
|
113
|
+
pointer-events: none;
|
|
114
|
+
/* Opaque so rows scrolling underneath never show through; a quiet, nearly
|
|
115
|
+
flat tint so the bar reads as part of the table, not above it. */
|
|
116
|
+
background: var(
|
|
117
|
+
--table-head-fill,
|
|
118
|
+
color-mix(in srgb, var(--popover) 86%, var(--background))
|
|
119
|
+
);
|
|
120
|
+
box-shadow: var(--table-head-shadow, inset 0 1px 0 rgb(255 255 255 / 0.55));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* In dark the bar's top light is a whisper, not a white line above the header. */
|
|
124
|
+
.dark .data-table thead th::after {
|
|
125
|
+
box-shadow: var(--table-head-shadow, inset 0 1px 0 rgb(255 255 255 / 0.08));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* No rule above the header bar or between it and the first record. */
|
|
129
|
+
.data-table thead tr {
|
|
130
|
+
border-bottom: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.data-table tbody tr:first-child :is(th, td) {
|
|
134
|
+
border-top: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.data-table thead th:first-child::after {
|
|
138
|
+
border-start-start-radius: 19px;
|
|
139
|
+
border-end-start-radius: 19px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.data-table thead th:last-child::after {
|
|
143
|
+
border-start-end-radius: 19px;
|
|
144
|
+
border-end-end-radius: 19px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.data-table tbody :is(th, td) {
|
|
148
|
+
position: relative;
|
|
149
|
+
height: 51px;
|
|
150
|
+
/* Keeps the cell metrics of a ruled row; the visible line is the ::after. */
|
|
151
|
+
border-bottom: 1px solid transparent;
|
|
152
|
+
font-size: 0.8125rem;
|
|
153
|
+
font-weight: 460;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.data-table tbody th {
|
|
157
|
+
padding-block: var(--space-1);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* The record divider stops short of both card edges: drawn per row, inset at the
|
|
161
|
+
first and last cell. */
|
|
162
|
+
.data-table tbody :is(th, td)::after {
|
|
163
|
+
position: absolute;
|
|
164
|
+
inset-block-end: -1px;
|
|
165
|
+
inset-inline: 0;
|
|
166
|
+
height: 1px;
|
|
167
|
+
background: var(--border-subtle);
|
|
168
|
+
content: "";
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Both ends of the line fade out instead of stopping dead. */
|
|
172
|
+
.data-table tbody tr > :first-child::after {
|
|
173
|
+
inset-inline-start: 10px;
|
|
174
|
+
background: linear-gradient(to right, transparent, var(--border-subtle) 44px);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.data-table tbody tr > :last-child::after {
|
|
178
|
+
inset-inline-end: 10px;
|
|
179
|
+
background: linear-gradient(to left, transparent, var(--border-subtle) 44px);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.data-table tbody tr:last-child :is(th, td)::after {
|
|
183
|
+
display: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.data-table tbody tr:last-child :is(th, td) {
|
|
187
|
+
border-bottom: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* ---- Motion template (every table inherits it) -------------------------
|
|
191
|
+
Quiet, short and never on the numbers: 120-180ms colour changes, a 180ms
|
|
192
|
+
fade for rows entering, no counting animations and no bounce, so amounts and
|
|
193
|
+
statuses stay aligned while a finance user compares columns. */
|
|
194
|
+
.data-table tbody tr {
|
|
195
|
+
/* Row dividers are drawn per cell (::after) so they can stop short of the
|
|
196
|
+
edges; the shadcn row border would add a second, full-width line. */
|
|
197
|
+
border-bottom: 0;
|
|
198
|
+
transition: background-color 140ms var(--ease-feedback);
|
|
199
|
+
animation: data-table-row-in 180ms var(--ease-feedback) backwards;
|
|
200
|
+
animation-delay: calc(min(var(--row-index, 0), 8) * 16ms);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@keyframes data-table-row-in {
|
|
204
|
+
from {
|
|
205
|
+
opacity: 0;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.data-table tbody tr:hover,
|
|
210
|
+
.data-table tbody tr:focus-within {
|
|
211
|
+
background: var(
|
|
212
|
+
--row-hover,
|
|
213
|
+
color-mix(in srgb, var(--accent) 37%, transparent)
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.data-table tbody tr[data-state="selected"] {
|
|
218
|
+
background: color-mix(in srgb, var(--accent) 45%, transparent);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* Selected rows grow a thin accent bar on their leading edge. */
|
|
222
|
+
.data-table tbody tr > :first-child {
|
|
223
|
+
position: relative;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.data-table tbody tr > :first-child::before {
|
|
227
|
+
position: absolute;
|
|
228
|
+
inset-block: 12px;
|
|
229
|
+
inset-inline-start: 4px;
|
|
230
|
+
width: 3px;
|
|
231
|
+
border-radius: 999px;
|
|
232
|
+
background: var(--primary);
|
|
233
|
+
transform: scaleY(0);
|
|
234
|
+
transition: transform 180ms var(--ease-feedback);
|
|
235
|
+
content: "";
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.data-table tbody tr[data-state="selected"] > :first-child::before {
|
|
239
|
+
transform: scaleY(1);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* Row actions stay quiet until the row (or the action) is the focus. */
|
|
243
|
+
.data-table [data-column="actions"] :is(button, a) {
|
|
244
|
+
transition:
|
|
245
|
+
color 140ms var(--ease-feedback),
|
|
246
|
+
scale 140ms var(--ease-feedback);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.data-table
|
|
250
|
+
tbody
|
|
251
|
+
tr:is(:hover, :focus-within)
|
|
252
|
+
[data-column="actions"]
|
|
253
|
+
:is(button, a),
|
|
254
|
+
.data-table [data-column="actions"] :is(button, a):is(:hover, :focus-visible) {
|
|
255
|
+
color: var(--foreground);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.data-table [data-column="actions"] :is(button, a):is(:hover, :focus-visible) {
|
|
259
|
+
scale: 1.08;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* A breathing dot for statuses that are still in progress (StatusBadge pulse). */
|
|
263
|
+
.status-pulse {
|
|
264
|
+
animation: status-breathe 2.4s ease-in-out infinite;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
@keyframes status-breathe {
|
|
268
|
+
50% {
|
|
269
|
+
opacity: 0.35;
|
|
270
|
+
transform: scale(0.8);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* A filter that is narrowing the table gets a soft primary tint. */
|
|
275
|
+
.data-table-filter {
|
|
276
|
+
transition:
|
|
277
|
+
background-color 160ms var(--ease-feedback),
|
|
278
|
+
color 160ms var(--ease-feedback);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.data-table-filter[data-active] {
|
|
282
|
+
background: color-mix(in srgb, var(--primary) 10%, var(--field-surface));
|
|
283
|
+
color: var(--primary);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* Loading: skeleton rows with the same rhythm as real rows. */
|
|
287
|
+
.data-table-skeleton {
|
|
288
|
+
display: grid;
|
|
289
|
+
align-content: start;
|
|
290
|
+
gap: 0;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.data-table-skeleton-row {
|
|
294
|
+
display: grid;
|
|
295
|
+
grid-template-columns: 2fr 1fr 1fr;
|
|
296
|
+
gap: 24px;
|
|
297
|
+
align-items: center;
|
|
298
|
+
height: 51px;
|
|
299
|
+
padding-inline: var(--space-4);
|
|
300
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.data-table-skeleton-row > span {
|
|
304
|
+
height: 12px;
|
|
305
|
+
border-radius: 999px;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
@media (prefers-reduced-motion: reduce) {
|
|
309
|
+
.data-table tbody tr,
|
|
310
|
+
.status-pulse {
|
|
311
|
+
animation: none;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.data-table
|
|
315
|
+
[data-column="actions"]
|
|
316
|
+
:is(button, a):is(:hover, :focus-visible) {
|
|
317
|
+
scale: none;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.data-table-footer,
|
|
322
|
+
.data-table-summary,
|
|
323
|
+
.data-table-pagination {
|
|
324
|
+
display: flex;
|
|
325
|
+
align-items: center;
|
|
326
|
+
gap: 8px;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.data-table-footer {
|
|
330
|
+
--data-table-inset: var(--register-inset, var(--space-4));
|
|
331
|
+
min-height: 49px;
|
|
332
|
+
flex-wrap: wrap;
|
|
333
|
+
justify-content: space-between;
|
|
334
|
+
margin-block-start: auto;
|
|
335
|
+
padding: 6px var(--data-table-inset);
|
|
336
|
+
border-top: 1px solid var(--border-subtle);
|
|
337
|
+
color: var(--muted-foreground);
|
|
338
|
+
font-size: 0.75rem;
|
|
339
|
+
font-variant-numeric: tabular-nums lining-nums;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.data-table-pagination {
|
|
343
|
+
--pagination-control-size: var(--control-size-dense);
|
|
344
|
+
gap: var(--space-3);
|
|
345
|
+
margin-inline-start: auto;
|
|
346
|
+
white-space: nowrap;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.data-table-summary {
|
|
350
|
+
flex-wrap: wrap;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
@media (max-width: 520px) {
|
|
354
|
+
.data-table-footer {
|
|
355
|
+
padding-inline: var(--space-3);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.data-table-pagination {
|
|
359
|
+
--pagination-control-size: var(--control-size-touch);
|
|
360
|
+
gap: 6px;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
@media (max-width: 414px) {
|
|
365
|
+
.data-table-footer {
|
|
366
|
+
block-size: 82.140625px;
|
|
367
|
+
align-content: space-between;
|
|
368
|
+
row-gap: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.data-table-pagination {
|
|
372
|
+
flex-basis: 100%;
|
|
373
|
+
justify-content: flex-end;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useTable, type ReactTable, type RowData } from "@tanstack/react-table";
|
|
2
|
+
/** The one TanStack feature set every Aries table is built on. */
|
|
3
|
+
export declare const dataTableFeatures: {
|
|
4
|
+
columnFilteringFeature: import("@tanstack/react-table").TableFeature;
|
|
5
|
+
globalFilteringFeature: import("@tanstack/react-table").TableFeature;
|
|
6
|
+
rowPaginationFeature: import("@tanstack/react-table").TableFeature;
|
|
7
|
+
rowSelectionFeature: import("@tanstack/react-table").TableFeature;
|
|
8
|
+
filteredRowModel: (table: import("@tanstack/react-table").Table<any, any>) => () => import("@tanstack/react-table").RowModel<any, any>;
|
|
9
|
+
paginatedRowModel: (table: import("@tanstack/react-table").Table<any, any>) => () => import("@tanstack/react-table").RowModel<any, any>;
|
|
10
|
+
};
|
|
11
|
+
export type DataTableInstance<TData extends RowData> = ReactTable<typeof dataTableFeatures, TData>;
|
|
12
|
+
export declare function createDataTableColumns<TData extends RowData>(): import("@tanstack/react-table").ColumnHelper<{
|
|
13
|
+
columnFilteringFeature: import("@tanstack/react-table").TableFeature;
|
|
14
|
+
globalFilteringFeature: import("@tanstack/react-table").TableFeature;
|
|
15
|
+
rowPaginationFeature: import("@tanstack/react-table").TableFeature;
|
|
16
|
+
rowSelectionFeature: import("@tanstack/react-table").TableFeature;
|
|
17
|
+
filteredRowModel: (table: import("@tanstack/react-table").Table<any, any>) => () => import("@tanstack/react-table").RowModel<any, any>;
|
|
18
|
+
paginatedRowModel: (table: import("@tanstack/react-table").Table<any, any>) => () => import("@tanstack/react-table").RowModel<any, any>;
|
|
19
|
+
}, TData>;
|
|
20
|
+
type DataTableOptions<TData extends RowData> = Omit<Parameters<typeof useTable<typeof dataTableFeatures, TData>>[0], "features">;
|
|
21
|
+
export declare function useDataTable<TData extends RowData>(options: DataTableOptions<TData>): DataTableInstance<TData>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { columnFilteringFeature, createColumnHelper, createFilteredRowModel, createPaginatedRowModel, globalFilteringFeature, rowPaginationFeature, rowSelectionFeature, tableFeatures, useTable } from "@tanstack/react-table";
|
|
2
|
+
// src/components/shared/use-data-table.ts
|
|
3
|
+
/** The one TanStack feature set every Aries table is built on. */
|
|
4
|
+
var dataTableFeatures = tableFeatures({
|
|
5
|
+
columnFilteringFeature,
|
|
6
|
+
globalFilteringFeature,
|
|
7
|
+
rowPaginationFeature,
|
|
8
|
+
rowSelectionFeature,
|
|
9
|
+
filteredRowModel: createFilteredRowModel(),
|
|
10
|
+
paginatedRowModel: createPaginatedRowModel()
|
|
11
|
+
});
|
|
12
|
+
function createDataTableColumns() {
|
|
13
|
+
return createColumnHelper();
|
|
14
|
+
}
|
|
15
|
+
function useDataTable(options) {
|
|
16
|
+
return useTable({
|
|
17
|
+
features: dataTableFeatures,
|
|
18
|
+
...options
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export { createDataTableColumns, dataTableFeatures, useDataTable };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Accordion as AccordionPrimitive } from "radix-ui";
|
|
3
|
+
declare function Accordion({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): React.JSX.Element;
|
|
5
|
+
declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): React.JSX.Element;
|
|
7
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { IconPlaceholder } from "../icons/icon-placeholder.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { Accordion as Accordion$1 } from "radix-ui";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
// src/components/ui/accordion.tsx
|
|
7
|
+
function Accordion({ className, ...props }) {
|
|
8
|
+
return /* @__PURE__ */ jsx(Accordion$1.Root, {
|
|
9
|
+
"data-slot": "accordion",
|
|
10
|
+
className: cn("flex w-full flex-col overflow-hidden rounded-2xl border", className),
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function AccordionItem({ className, ...props }) {
|
|
15
|
+
return /* @__PURE__ */ jsx(Accordion$1.Item, {
|
|
16
|
+
"data-slot": "accordion-item",
|
|
17
|
+
className: cn("not-last:border-b data-open:bg-muted/50", className),
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function AccordionTrigger({ className, children, ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsx(Accordion$1.Header, {
|
|
23
|
+
className: "flex",
|
|
24
|
+
children: /* @__PURE__ */ jsxs(Accordion$1.Trigger, {
|
|
25
|
+
"data-slot": "accordion-trigger",
|
|
26
|
+
className: cn("group/accordion-trigger relative flex flex-1 items-start justify-between gap-6 border border-transparent p-4 text-left text-sm font-medium transition-all outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground", className),
|
|
27
|
+
...props,
|
|
28
|
+
children: [
|
|
29
|
+
children,
|
|
30
|
+
/* @__PURE__ */ jsx(IconPlaceholder, {
|
|
31
|
+
lucide: "ChevronDownIcon",
|
|
32
|
+
tabler: "IconChevronDown",
|
|
33
|
+
"data-slot": "accordion-trigger-icon",
|
|
34
|
+
hugeicons: "ArrowDown01Icon",
|
|
35
|
+
phosphor: "CaretDownIcon",
|
|
36
|
+
remixicon: "RiArrowDownSLine",
|
|
37
|
+
className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ jsx(IconPlaceholder, {
|
|
40
|
+
lucide: "ChevronUpIcon",
|
|
41
|
+
tabler: "IconChevronUp",
|
|
42
|
+
"data-slot": "accordion-trigger-icon",
|
|
43
|
+
hugeicons: "ArrowUp01Icon",
|
|
44
|
+
phosphor: "CaretUpIcon",
|
|
45
|
+
remixicon: "RiArrowUpSLine",
|
|
46
|
+
className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"
|
|
47
|
+
})
|
|
48
|
+
]
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function AccordionContent({ className, children, ...props }) {
|
|
53
|
+
return /* @__PURE__ */ jsx(Accordion$1.Content, {
|
|
54
|
+
"data-slot": "accordion-content",
|
|
55
|
+
className: "overflow-hidden px-4 text-sm data-open:animate-accordion-down data-closed:animate-accordion-up",
|
|
56
|
+
...props,
|
|
57
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
58
|
+
className: cn("h-(--radix-accordion-content-height) pt-0 pb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", className),
|
|
59
|
+
children
|
|
60
|
+
})
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): React.JSX.Element;
|
|
7
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): React.JSX.Element;
|
|
8
|
+
declare function AlertDialogContent({ className, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
|
|
9
|
+
size?: "default" | "sm";
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
12
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
13
|
+
declare function AlertDialogMedia({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
14
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): React.JSX.Element;
|
|
15
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): React.JSX.Element;
|
|
16
|
+
declare function AlertDialogAction({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
|
|
17
|
+
declare function AlertDialogCancel({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
|
|
18
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
|