@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,117 @@
|
|
|
1
|
+
import { Separator as Separator$1 } from "./separator.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { Slot } from "radix-ui";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
7
|
+
// src/components/ui/item.tsx
|
|
8
|
+
function ItemGroup({ className, ...props }) {
|
|
9
|
+
return /* @__PURE__ */ jsx("div", {
|
|
10
|
+
role: "list",
|
|
11
|
+
"data-slot": "item-group",
|
|
12
|
+
className: cn("group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2", className),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function ItemSeparator({ className, ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Separator$1, {
|
|
18
|
+
"data-slot": "item-separator",
|
|
19
|
+
orientation: "horizontal",
|
|
20
|
+
className: cn("my-2", className),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
var itemVariants = cva("group/item flex w-full flex-wrap items-center rounded-2xl border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted", {
|
|
25
|
+
variants: {
|
|
26
|
+
variant: {
|
|
27
|
+
default: "border-transparent",
|
|
28
|
+
outline: "border-border",
|
|
29
|
+
muted: "border-transparent bg-muted/50"
|
|
30
|
+
},
|
|
31
|
+
size: {
|
|
32
|
+
default: "gap-3.5 px-4 py-3.5",
|
|
33
|
+
sm: "gap-3.5 px-3.5 py-3",
|
|
34
|
+
xs: "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
variant: "default",
|
|
39
|
+
size: "default"
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
function Item({ className, variant = "default", size = "default", asChild = false, ...props }) {
|
|
43
|
+
const Comp = asChild ? Slot.Root : "div";
|
|
44
|
+
return /* @__PURE__ */ jsx(Comp, {
|
|
45
|
+
"data-slot": "item",
|
|
46
|
+
"data-variant": variant,
|
|
47
|
+
"data-size": size,
|
|
48
|
+
className: cn(itemVariants({
|
|
49
|
+
variant,
|
|
50
|
+
size,
|
|
51
|
+
className
|
|
52
|
+
})),
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
var itemMediaVariants = cva("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none", {
|
|
57
|
+
variants: { variant: {
|
|
58
|
+
default: "bg-transparent",
|
|
59
|
+
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
60
|
+
image: "size-10 overflow-hidden rounded-xl group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 group-data-[size=xs]/item:rounded-lg [&_img]:size-full [&_img]:object-cover"
|
|
61
|
+
} },
|
|
62
|
+
defaultVariants: { variant: "default" }
|
|
63
|
+
});
|
|
64
|
+
function ItemMedia({ className, variant = "default", ...props }) {
|
|
65
|
+
return /* @__PURE__ */ jsx("div", {
|
|
66
|
+
"data-slot": "item-media",
|
|
67
|
+
"data-variant": variant,
|
|
68
|
+
className: cn(itemMediaVariants({
|
|
69
|
+
variant,
|
|
70
|
+
className
|
|
71
|
+
})),
|
|
72
|
+
...props
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function ItemContent({ className, ...props }) {
|
|
76
|
+
return /* @__PURE__ */ jsx("div", {
|
|
77
|
+
"data-slot": "item-content",
|
|
78
|
+
className: cn("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0.5 [&+[data-slot=item-content]]:flex-none", className),
|
|
79
|
+
...props
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function ItemTitle({ className, ...props }) {
|
|
83
|
+
return /* @__PURE__ */ jsx("div", {
|
|
84
|
+
"data-slot": "item-title",
|
|
85
|
+
className: cn("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4", className),
|
|
86
|
+
...props
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function ItemDescription({ className, ...props }) {
|
|
90
|
+
return /* @__PURE__ */ jsx("p", {
|
|
91
|
+
"data-slot": "item-description",
|
|
92
|
+
className: cn("line-clamp-2 text-left text-sm font-normal text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
93
|
+
...props
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function ItemActions({ className, ...props }) {
|
|
97
|
+
return /* @__PURE__ */ jsx("div", {
|
|
98
|
+
"data-slot": "item-actions",
|
|
99
|
+
className: cn("flex items-center gap-2", className),
|
|
100
|
+
...props
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function ItemHeader({ className, ...props }) {
|
|
104
|
+
return /* @__PURE__ */ jsx("div", {
|
|
105
|
+
"data-slot": "item-header",
|
|
106
|
+
className: cn("flex basis-full items-center justify-between gap-2", className),
|
|
107
|
+
...props
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function ItemFooter({ className, ...props }) {
|
|
111
|
+
return /* @__PURE__ */ jsx("div", {
|
|
112
|
+
"data-slot": "item-footer",
|
|
113
|
+
className: cn("flex basis-full items-center justify-between gap-2", className),
|
|
114
|
+
...props
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { cn } from "cn";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/components/ui/kbd.tsx
|
|
4
|
+
function Kbd({ className, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx("kbd", {
|
|
6
|
+
"data-slot": "kbd",
|
|
7
|
+
className: cn("pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-lg bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=input-group]:bg-input in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3", className),
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function KbdGroup({ className, ...props }) {
|
|
12
|
+
return /* @__PURE__ */ jsx("kbd", {
|
|
13
|
+
"data-slot": "kbd-group",
|
|
14
|
+
className: cn("inline-flex items-center gap-1", className),
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export { Kbd, KbdGroup };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { Label as Label$1 } from "radix-ui";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
// src/components/ui/label.tsx
|
|
6
|
+
function Label({ className, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(Label$1.Root, {
|
|
8
|
+
"data-slot": "label",
|
|
9
|
+
className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export { Label };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const markerVariants: (props?: ({
|
|
4
|
+
variant?: "separator" | "border" | "default" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
declare function Marker({ className, variant, asChild, ...props }: React.ComponentProps<"div"> & VariantProps<typeof markerVariants> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare function MarkerIcon({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
10
|
+
declare function MarkerContent({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
11
|
+
export { Marker, MarkerIcon, MarkerContent, markerVariants };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { Slot } from "radix-ui";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
// src/components/ui/marker.tsx
|
|
7
|
+
var markerVariants = cva("group/marker relative flex min-h-4 w-full items-center gap-2 text-left text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground", { variants: { variant: {
|
|
8
|
+
default: "",
|
|
9
|
+
separator: "before:mr-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ml-1 after:h-px after:min-w-0 after:flex-1 after:bg-border",
|
|
10
|
+
border: "border-b border-border pb-2"
|
|
11
|
+
} } });
|
|
12
|
+
function Marker({ className, variant = "default", asChild = false, ...props }) {
|
|
13
|
+
const Comp = asChild ? Slot.Root : "div";
|
|
14
|
+
return /* @__PURE__ */ jsx(Comp, {
|
|
15
|
+
"data-slot": "marker",
|
|
16
|
+
"data-variant": variant,
|
|
17
|
+
className: cn(markerVariants({
|
|
18
|
+
variant,
|
|
19
|
+
className
|
|
20
|
+
})),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function MarkerIcon({ className, ...props }) {
|
|
25
|
+
return /* @__PURE__ */ jsx("span", {
|
|
26
|
+
"data-slot": "marker-icon",
|
|
27
|
+
"aria-hidden": "true",
|
|
28
|
+
className: cn("size-4 shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function MarkerContent({ className, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsx("span", {
|
|
34
|
+
"data-slot": "marker-content",
|
|
35
|
+
className: cn("min-w-0 wrap-break-word group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
export { Marker, MarkerContent, MarkerIcon, markerVariants };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
3
|
+
declare function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): React.JSX.Element;
|
|
5
|
+
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): React.JSX.Element;
|
|
6
|
+
declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): React.JSX.Element;
|
|
7
|
+
declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): React.JSX.Element;
|
|
8
|
+
declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Trigger>): React.JSX.Element;
|
|
9
|
+
declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Content>): React.JSX.Element;
|
|
10
|
+
declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof MenubarPrimitive.Item> & {
|
|
11
|
+
inset?: boolean;
|
|
12
|
+
variant?: "default" | "destructive";
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
declare function MenubarCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem> & {
|
|
15
|
+
inset?: boolean;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
declare function MenubarRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioItem> & {
|
|
18
|
+
inset?: boolean;
|
|
19
|
+
}): React.JSX.Element;
|
|
20
|
+
declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Label> & {
|
|
21
|
+
inset?: boolean;
|
|
22
|
+
}): React.JSX.Element;
|
|
23
|
+
declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Separator>): React.JSX.Element;
|
|
24
|
+
declare function MenubarShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
25
|
+
declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): React.JSX.Element;
|
|
26
|
+
declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
|
|
27
|
+
inset?: boolean;
|
|
28
|
+
}): React.JSX.Element;
|
|
29
|
+
declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): React.JSX.Element;
|
|
30
|
+
export { Menubar, MenubarPortal, MenubarMenu, MenubarTrigger, MenubarContent, MenubarGroup, MenubarSeparator, MenubarLabel, MenubarItem, MenubarShortcut, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarSub, MenubarSubTrigger, MenubarSubContent, };
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { IconPlaceholder } from "../icons/icon-placeholder.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { cn } from "cn";
|
|
5
|
+
import { Menubar as Menubar$1 } from "radix-ui";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
// src/components/ui/menubar.tsx
|
|
8
|
+
function Menubar({ className, ...props }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Menubar$1.Root, {
|
|
10
|
+
"data-slot": "menubar",
|
|
11
|
+
className: cn("flex h-[34px] items-center gap-0.5 rounded-full bg-(--recess) p-[3px] pointer-coarse:h-11", className),
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function MenubarMenu({ ...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(Menubar$1.Menu, {
|
|
17
|
+
"data-slot": "menubar-menu",
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function MenubarGroup({ ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsx(Menubar$1.Group, {
|
|
23
|
+
"data-slot": "menubar-group",
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function MenubarPortal({ ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx(Menubar$1.Portal, {
|
|
29
|
+
"data-slot": "menubar-portal",
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function MenubarRadioGroup({ ...props }) {
|
|
34
|
+
return /* @__PURE__ */ jsx(Menubar$1.RadioGroup, {
|
|
35
|
+
"data-slot": "menubar-radio-group",
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function MenubarTrigger({ className, ...props }) {
|
|
40
|
+
return /* @__PURE__ */ jsx(Menubar$1.Trigger, {
|
|
41
|
+
"data-slot": "menubar-trigger",
|
|
42
|
+
className: cn("flex h-7 items-center rounded-full px-3 text-xs font-[620] text-muted-foreground outline-hidden select-none hover:bg-(--sidebar-item-hover) hover:text-foreground aria-expanded:bg-(--layout-control) aria-expanded:text-foreground pointer-coarse:h-9", className),
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function MenubarContent({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }) {
|
|
47
|
+
return /* @__PURE__ */ jsx(MenubarPortal, { children: /* @__PURE__ */ jsx(Menubar$1.Content, {
|
|
48
|
+
"data-slot": "menubar-content",
|
|
49
|
+
align,
|
|
50
|
+
alignOffset,
|
|
51
|
+
sideOffset,
|
|
52
|
+
className: cn("z-50 min-w-36 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-2xl bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/5 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", className),
|
|
53
|
+
...props
|
|
54
|
+
}) });
|
|
55
|
+
}
|
|
56
|
+
function MenubarItem({ className, inset, variant = "default", ...props }) {
|
|
57
|
+
return /* @__PURE__ */ jsx(Menubar$1.Item, {
|
|
58
|
+
"data-slot": "menubar-item",
|
|
59
|
+
"data-inset": inset,
|
|
60
|
+
"data-variant": variant,
|
|
61
|
+
className: cn("group/menubar-item relative flex min-h-7 cursor-default items-center gap-2 rounded-xl px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!", className),
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function MenubarCheckboxItem({ className, children, checked, inset, ...props }) {
|
|
66
|
+
return /* @__PURE__ */ jsxs(Menubar$1.CheckboxItem, {
|
|
67
|
+
"data-slot": "menubar-checkbox-item",
|
|
68
|
+
"data-inset": inset,
|
|
69
|
+
className: cn("relative flex min-h-7 cursor-default items-center gap-2 rounded-xl py-1.5 pr-1.5 pl-7 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
70
|
+
checked,
|
|
71
|
+
...props,
|
|
72
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
73
|
+
className: "pointer-events-none absolute left-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
74
|
+
children: /* @__PURE__ */ jsx(Menubar$1.ItemIndicator, { children: /* @__PURE__ */ jsx(IconPlaceholder, {
|
|
75
|
+
lucide: "CheckIcon",
|
|
76
|
+
tabler: "IconCheck",
|
|
77
|
+
hugeicons: "Tick02Icon",
|
|
78
|
+
phosphor: "CheckIcon",
|
|
79
|
+
remixicon: "RiCheckLine"
|
|
80
|
+
}) })
|
|
81
|
+
}), children]
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function MenubarRadioItem({ className, children, inset, ...props }) {
|
|
85
|
+
return /* @__PURE__ */ jsxs(Menubar$1.RadioItem, {
|
|
86
|
+
"data-slot": "menubar-radio-item",
|
|
87
|
+
"data-inset": inset,
|
|
88
|
+
className: cn("relative flex min-h-7 cursor-default items-center gap-2 rounded-xl py-1.5 pr-1.5 pl-7 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
89
|
+
...props,
|
|
90
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
91
|
+
className: "pointer-events-none absolute left-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
92
|
+
children: /* @__PURE__ */ jsx(Menubar$1.ItemIndicator, { children: /* @__PURE__ */ jsx(IconPlaceholder, {
|
|
93
|
+
lucide: "CheckIcon",
|
|
94
|
+
tabler: "IconCheck",
|
|
95
|
+
hugeicons: "Tick02Icon",
|
|
96
|
+
phosphor: "CheckIcon",
|
|
97
|
+
remixicon: "RiCheckLine"
|
|
98
|
+
}) })
|
|
99
|
+
}), children]
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function MenubarLabel({ className, inset, ...props }) {
|
|
103
|
+
return /* @__PURE__ */ jsx(Menubar$1.Label, {
|
|
104
|
+
"data-slot": "menubar-label",
|
|
105
|
+
"data-inset": inset,
|
|
106
|
+
className: cn("px-2 py-1 text-sm text-muted-foreground data-inset:pl-7", className),
|
|
107
|
+
...props
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function MenubarSeparator({ className, ...props }) {
|
|
111
|
+
return /* @__PURE__ */ jsx(Menubar$1.Separator, {
|
|
112
|
+
"data-slot": "menubar-separator",
|
|
113
|
+
className: cn("-mx-1 my-1 h-px bg-border/50", className),
|
|
114
|
+
...props
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function MenubarShortcut({ className, ...props }) {
|
|
118
|
+
return /* @__PURE__ */ jsx("span", {
|
|
119
|
+
"data-slot": "menubar-shortcut",
|
|
120
|
+
className: cn("ml-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground", className),
|
|
121
|
+
...props
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function MenubarSub({ ...props }) {
|
|
125
|
+
return /* @__PURE__ */ jsx(Menubar$1.Sub, {
|
|
126
|
+
"data-slot": "menubar-sub",
|
|
127
|
+
...props
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function MenubarSubTrigger({ className, inset, children, ...props }) {
|
|
131
|
+
return /* @__PURE__ */ jsxs(Menubar$1.SubTrigger, {
|
|
132
|
+
"data-slot": "menubar-sub-trigger",
|
|
133
|
+
"data-inset": inset,
|
|
134
|
+
className: cn("flex min-h-7 cursor-default items-center gap-2 rounded-xl px-2 py-1.5 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4", className),
|
|
135
|
+
...props,
|
|
136
|
+
children: [children, /* @__PURE__ */ jsx(IconPlaceholder, {
|
|
137
|
+
lucide: "ChevronRightIcon",
|
|
138
|
+
tabler: "IconChevronRight",
|
|
139
|
+
hugeicons: "ArrowRight01Icon",
|
|
140
|
+
phosphor: "CaretRightIcon",
|
|
141
|
+
remixicon: "RiArrowRightSLine",
|
|
142
|
+
className: "ml-auto size-4"
|
|
143
|
+
})]
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
function MenubarSubContent({ className, ...props }) {
|
|
147
|
+
return /* @__PURE__ */ jsx(Menubar$1.SubContent, {
|
|
148
|
+
"data-slot": "menubar-sub-content",
|
|
149
|
+
className: cn("z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-2xl bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/5 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
150
|
+
...props
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { MessageScroller as MessageScrollerPrimitive, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
declare function MessageScrollerProvider(props: React.ComponentProps<typeof MessageScrollerPrimitive.Provider>): React.JSX.Element;
|
|
5
|
+
declare function MessageScroller({ className, ...props }: React.ComponentProps<typeof MessageScrollerPrimitive.Root>): React.JSX.Element;
|
|
6
|
+
declare function MessageScrollerViewport({ className, ...props }: React.ComponentProps<typeof MessageScrollerPrimitive.Viewport>): React.JSX.Element;
|
|
7
|
+
declare function MessageScrollerContent({ className, ...props }: React.ComponentProps<typeof MessageScrollerPrimitive.Content>): React.JSX.Element;
|
|
8
|
+
declare function MessageScrollerItem({ className, scrollAnchor, ...props }: React.ComponentProps<typeof MessageScrollerPrimitive.Item>): React.JSX.Element;
|
|
9
|
+
declare function MessageScrollerButton({ direction, className, children, render, variant, size, ...props }: React.ComponentProps<typeof MessageScrollerPrimitive.Button> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
|
|
10
|
+
export { MessageScrollerProvider, MessageScroller, MessageScrollerViewport, MessageScrollerContent, MessageScrollerItem, MessageScrollerButton, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Button } from "./button.js";
|
|
2
|
+
import { IconPlaceholder } from "../icons/icon-placeholder.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { cn } from "cn";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { MessageScroller as MessageScroller$1, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
7
|
+
// src/components/ui/message-scroller.tsx
|
|
8
|
+
function MessageScrollerProvider(props) {
|
|
9
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Provider, { ...props });
|
|
10
|
+
}
|
|
11
|
+
function MessageScroller({ className, ...props }) {
|
|
12
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Root, {
|
|
13
|
+
"data-slot": "message-scroller",
|
|
14
|
+
className: cn("group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden", className),
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function MessageScrollerViewport({ className, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Viewport, {
|
|
20
|
+
"data-slot": "message-scroller-viewport",
|
|
21
|
+
className: cn("size-full min-h-0 min-w-0 scroll-fade-b scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent data-pending-scroll:invisible", className),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function MessageScrollerContent({ className, ...props }) {
|
|
26
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Content, {
|
|
27
|
+
"data-slot": "message-scroller-content",
|
|
28
|
+
className: cn("flex h-max min-h-full flex-col gap-8", className),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function MessageScrollerItem({ className, scrollAnchor = false, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Item, {
|
|
34
|
+
"data-slot": "message-scroller-item",
|
|
35
|
+
scrollAnchor,
|
|
36
|
+
className: cn("min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]", className),
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function MessageScrollerButton({ direction = "end", className, children, render, variant = "secondary", size = "icon-sm", ...props }) {
|
|
41
|
+
return /* @__PURE__ */ jsx(MessageScroller$1.Button, {
|
|
42
|
+
"data-slot": "message-scroller-button",
|
|
43
|
+
"data-direction": direction,
|
|
44
|
+
"data-variant": variant,
|
|
45
|
+
"data-size": size,
|
|
46
|
+
direction,
|
|
47
|
+
className: cn("absolute inset-s-1/2 -translate-x-1/2 border-border bg-background text-foreground transition-[translate,scale,opacity] duration-200 hover:bg-muted hover:text-foreground data-[active=false]:pointer-events-none data-[active=false]:scale-95 data-[active=false]:opacity-0 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:translate-y-0 data-[active=true]:scale-100 data-[active=true]:opacity-100 data-[active=true]:ease-[cubic-bezier(0.23,1,0.32,1)] data-[direction=end]:bottom-4 data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:top-4 data-[direction=start]:data-[active=false]:-translate-y-full rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180", className),
|
|
48
|
+
render: render ?? /* @__PURE__ */ jsx(Button, {
|
|
49
|
+
variant,
|
|
50
|
+
size
|
|
51
|
+
}),
|
|
52
|
+
...props,
|
|
53
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(IconPlaceholder, {
|
|
54
|
+
lucide: "ArrowDownIcon",
|
|
55
|
+
tabler: "IconArrowDown",
|
|
56
|
+
hugeicons: "ArrowDown02Icon",
|
|
57
|
+
phosphor: "ArrowDownIcon",
|
|
58
|
+
remixicon: "RiArrowDownLine"
|
|
59
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
60
|
+
className: "sr-only",
|
|
61
|
+
children: direction === "end" ? "Scroll to end" : "Scroll to start"
|
|
62
|
+
})] })
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function MessageGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
3
|
+
declare function Message({ className, align, ...props }: React.ComponentProps<"div"> & {
|
|
4
|
+
align?: "start" | "end";
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
declare function MessageAvatar({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
7
|
+
declare function MessageContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
8
|
+
declare function MessageHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
9
|
+
declare function MessageFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
10
|
+
export { MessageGroup, Message, MessageAvatar, MessageContent, MessageFooter, MessageHeader, };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
// src/components/ui/message.tsx
|
|
5
|
+
function MessageGroup({ className, ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx("div", {
|
|
7
|
+
"data-slot": "message-group",
|
|
8
|
+
className: cn("flex min-w-0 flex-col gap-2", className),
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function Message({ className, align = "start", ...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsx("div", {
|
|
14
|
+
"data-slot": "message",
|
|
15
|
+
"data-align": align,
|
|
16
|
+
className: cn("group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse", className),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function MessageAvatar({ className, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsx("div", {
|
|
22
|
+
"data-slot": "message-avatar",
|
|
23
|
+
className: cn("flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted group-has-data-[slot=message-footer]/message:-translate-y-8", className),
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function MessageContent({ className, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx("div", {
|
|
29
|
+
"data-slot": "message-content",
|
|
30
|
+
className: cn("flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end", className),
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function MessageHeader({ className, ...props }) {
|
|
35
|
+
return /* @__PURE__ */ jsx("div", {
|
|
36
|
+
"data-slot": "message-header",
|
|
37
|
+
className: cn("flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0", className),
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function MessageFooter({ className, ...props }) {
|
|
42
|
+
return /* @__PURE__ */ jsx("div", {
|
|
43
|
+
"data-slot": "message-footer",
|
|
44
|
+
className: cn("flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end", className),
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type NativeSelectProps = Omit<React.ComponentProps<"select">, "size"> & {
|
|
3
|
+
size?: "sm" | "default";
|
|
4
|
+
};
|
|
5
|
+
declare function NativeSelect({ className, size, ...props }: NativeSelectProps): React.JSX.Element;
|
|
6
|
+
declare function NativeSelectOption({ className, ...props }: React.ComponentProps<"option">): React.JSX.Element;
|
|
7
|
+
declare function NativeSelectOptGroup({ className, ...props }: React.ComponentProps<"optgroup">): React.JSX.Element;
|
|
8
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IconPlaceholder } from "../icons/icon-placeholder.js";
|
|
2
|
+
import { useUiLabels } from "../../lib/ui-labels.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { cn } from "cn";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
// src/components/ui/native-select.tsx
|
|
7
|
+
function NativeSelect({ className, size = "default", ...props }) {
|
|
8
|
+
const labels = useUiLabels();
|
|
9
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
10
|
+
className: cn("group/native-select relative w-fit has-[select:disabled]:opacity-50", className),
|
|
11
|
+
"data-slot": "native-select-wrapper",
|
|
12
|
+
"data-size": size,
|
|
13
|
+
children: [/* @__PURE__ */ jsx("select", {
|
|
14
|
+
"data-slot": "native-select",
|
|
15
|
+
"data-size": size,
|
|
16
|
+
"aria-label": props["aria-label"] ?? (props.id || props["aria-labelledby"] ? void 0 : labels.nativeSelect),
|
|
17
|
+
className: "h-8 w-full min-w-0 appearance-none rounded-2xl border border-transparent bg-(--field-surface) py-1 pr-8 pl-2.5 text-sm shadow-(--field-shadow) transition-[color,box-shadow] duration-200 outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
18
|
+
...props
|
|
19
|
+
}), /* @__PURE__ */ jsx(IconPlaceholder, {
|
|
20
|
+
lucide: "ChevronDownIcon",
|
|
21
|
+
tabler: "IconSelector",
|
|
22
|
+
hugeicons: "UnfoldMoreIcon",
|
|
23
|
+
phosphor: "CaretDownIcon",
|
|
24
|
+
remixicon: "RiArrowDownSLine",
|
|
25
|
+
className: "pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none",
|
|
26
|
+
"aria-hidden": "true",
|
|
27
|
+
"data-slot": "native-select-icon"
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function NativeSelectOption({ className, ...props }) {
|
|
32
|
+
return /* @__PURE__ */ jsx("option", {
|
|
33
|
+
"data-slot": "native-select-option",
|
|
34
|
+
className: cn("bg-[Canvas] text-[CanvasText]", className),
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function NativeSelectOptGroup({ className, ...props }) {
|
|
39
|
+
return /* @__PURE__ */ jsx("optgroup", {
|
|
40
|
+
"data-slot": "native-select-optgroup",
|
|
41
|
+
className: cn("bg-[Canvas] text-[CanvasText]", className),
|
|
42
|
+
...props
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
3
|
+
declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
4
|
+
viewport?: boolean;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>): React.JSX.Element;
|
|
7
|
+
declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>): React.JSX.Element;
|
|
8
|
+
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): React.JSX.Element;
|
|
10
|
+
declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>): React.JSX.Element;
|
|
11
|
+
declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): React.JSX.Element;
|
|
12
|
+
declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): React.JSX.Element;
|
|
13
|
+
declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): React.JSX.Element;
|
|
14
|
+
export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, };
|