@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,84 @@
|
|
|
1
|
+
import { IconPlaceholder } from "../icons/icon-placeholder.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { NavigationMenu as NavigationMenu$1 } from "radix-ui";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
7
|
+
// src/components/ui/navigation-menu.tsx
|
|
8
|
+
function NavigationMenu({ className, children, viewport = true, ...props }) {
|
|
9
|
+
return /* @__PURE__ */ jsxs(NavigationMenu$1.Root, {
|
|
10
|
+
"data-slot": "navigation-menu",
|
|
11
|
+
"data-viewport": viewport,
|
|
12
|
+
className: cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className),
|
|
13
|
+
...props,
|
|
14
|
+
children: [children, viewport && /* @__PURE__ */ jsx(NavigationMenuViewport, {})]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function NavigationMenuList({ className, ...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsx(NavigationMenu$1.List, {
|
|
19
|
+
"data-slot": "navigation-menu-list",
|
|
20
|
+
className: cn("group flex flex-1 list-none items-center justify-center gap-0", className),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function NavigationMenuItem({ className, ...props }) {
|
|
25
|
+
return /* @__PURE__ */ jsx(NavigationMenu$1.Item, {
|
|
26
|
+
"data-slot": "navigation-menu-item",
|
|
27
|
+
className: cn("relative", className),
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
var navigationMenuTriggerStyle = cva("group/navigation-menu-trigger inline-flex h-8 w-max items-center justify-center rounded-full px-3 text-[0.8125rem] font-medium transition-colors outline-none hover:bg-(--sidebar-item-hover) focus-visible:ring-3 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-(--layout-control) data-open:bg-(--layout-control)");
|
|
32
|
+
function NavigationMenuTrigger({ className, children, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsxs(NavigationMenu$1.Trigger, {
|
|
34
|
+
"data-slot": "navigation-menu-trigger",
|
|
35
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
36
|
+
...props,
|
|
37
|
+
children: [
|
|
38
|
+
children,
|
|
39
|
+
" ",
|
|
40
|
+
/* @__PURE__ */ jsx(IconPlaceholder, {
|
|
41
|
+
lucide: "ChevronDownIcon",
|
|
42
|
+
tabler: "IconChevronDown",
|
|
43
|
+
hugeicons: "ArrowDown01Icon",
|
|
44
|
+
phosphor: "CaretDownIcon",
|
|
45
|
+
remixicon: "RiArrowDownSLine",
|
|
46
|
+
className: "relative top-px ml-1 size-3 transition duration-300 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180",
|
|
47
|
+
"aria-hidden": "true"
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function NavigationMenuContent({ className, ...props }) {
|
|
53
|
+
return /* @__PURE__ */ jsx(NavigationMenu$1.Content, {
|
|
54
|
+
"data-slot": "navigation-menu-content",
|
|
55
|
+
className: cn("top-0 left-0 w-full p-1.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-2xl group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/5 group-data-[viewport=false]/navigation-menu:duration-300 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto group-data-[viewport=false]/navigation-menu:dark:ring-foreground/10 group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95", className),
|
|
56
|
+
...props
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function NavigationMenuViewport({ className, ...props }) {
|
|
60
|
+
return /* @__PURE__ */ jsx("div", {
|
|
61
|
+
className: cn("absolute top-full left-0 isolate z-50 flex justify-center"),
|
|
62
|
+
children: /* @__PURE__ */ jsx(NavigationMenu$1.Viewport, {
|
|
63
|
+
"data-slot": "navigation-menu-viewport",
|
|
64
|
+
className: cn("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-2xl bg-popover text-popover-foreground shadow-lg ring-1 ring-foreground/5 duration-100 md:w-(--radix-navigation-menu-viewport-width) dark:ring-foreground/10 data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90", className),
|
|
65
|
+
...props
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function NavigationMenuLink({ className, ...props }) {
|
|
70
|
+
return /* @__PURE__ */ jsx(NavigationMenu$1.Link, {
|
|
71
|
+
"data-slot": "navigation-menu-link",
|
|
72
|
+
className: cn("flex items-center gap-2 rounded-2xl px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:w-full in-data-[slot=navigation-menu-content]:rounded-xl in-data-[slot=navigation-menu-content]:p-2 in-data-[slot=navigation-menu-content]:font-normal data-[active=true]:bg-muted/50 data-[active=true]:hover:bg-muted data-[active=true]:focus:bg-muted [&_svg:not([class*='size-'])]:size-4", className),
|
|
73
|
+
...props
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function NavigationMenuIndicator({ className, ...props }) {
|
|
77
|
+
return /* @__PURE__ */ jsx(NavigationMenu$1.Indicator, {
|
|
78
|
+
"data-slot": "navigation-menu-indicator",
|
|
79
|
+
className: cn("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in", className),
|
|
80
|
+
...props,
|
|
81
|
+
children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import { Button } from "./button.js";
|
|
3
|
+
declare function Pagination({ className, ...props }: ComponentProps<"nav">): import("react").JSX.Element;
|
|
4
|
+
declare function PaginationContent({ className, ...props }: ComponentProps<"ul">): import("react").JSX.Element;
|
|
5
|
+
declare function PaginationItem(props: ComponentProps<"li">): import("react").JSX.Element;
|
|
6
|
+
type PaginationLinkProps = {
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
href?: string;
|
|
9
|
+
} & Pick<ComponentProps<typeof Button>, "size"> & Omit<ComponentProps<typeof Button>, "size" | "variant">;
|
|
10
|
+
declare function PaginationLink({ className, isActive, size, href, children, ...props }: PaginationLinkProps): import("react").JSX.Element;
|
|
11
|
+
declare function PaginationPrevious({ className, children, ...props }: ComponentProps<typeof PaginationLink>): import("react").JSX.Element;
|
|
12
|
+
declare function PaginationNext({ className, children, ...props }: ComponentProps<typeof PaginationLink>): import("react").JSX.Element;
|
|
13
|
+
declare function PaginationEllipsis({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* Page numbers to render: always the first and last page, the current page
|
|
16
|
+
* with one neighbour on each side, and "ellipsis" for the gaps. At most seven
|
|
17
|
+
* entries, so the control keeps a stable width while paging.
|
|
18
|
+
*/
|
|
19
|
+
declare function getPaginationRange(current: number, total: number): (number | "ellipsis")[];
|
|
20
|
+
export { getPaginationRange, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { AppIcon } from "../icons/app-icon.js";
|
|
2
|
+
import { AltArrowLeftLinearIcon } from "../icons/solar/alt-arrow-left-linear.js";
|
|
3
|
+
import { AltArrowRightLinearIcon } from "../icons/solar/alt-arrow-right-linear.js";
|
|
4
|
+
import { MenuDotsLinearIcon } from "../icons/solar/menu-dots-linear.js";
|
|
5
|
+
import { Button } from "./button.js";
|
|
6
|
+
import { useUiLabels } from "../../lib/ui-labels.js";
|
|
7
|
+
import { cn } from "cn";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
// src/components/ui/pagination.tsx
|
|
10
|
+
function Pagination({ className, ...props }) {
|
|
11
|
+
return /* @__PURE__ */ jsx("nav", {
|
|
12
|
+
"aria-label": "pagination",
|
|
13
|
+
"data-slot": "pagination",
|
|
14
|
+
className: cn("mx-auto flex w-full justify-center", className),
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function PaginationContent({ className, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
20
|
+
"data-slot": "pagination-content",
|
|
21
|
+
className: cn("flex items-center gap-1", className),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function PaginationItem(props) {
|
|
26
|
+
return /* @__PURE__ */ jsx("li", {
|
|
27
|
+
"data-slot": "pagination-item",
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function PaginationLink({ className, isActive, size = "icon", href, children, ...props }) {
|
|
32
|
+
const classes = cn(isActive ? "bg-(--field-surface) shadow-(--field-shadow) hover:bg-(--field-surface-hover)" : "hover:bg-(--field-surface) hover:text-foreground hover:shadow-(--field-shadow)", className);
|
|
33
|
+
const common = {
|
|
34
|
+
variant: isActive ? "outline" : "ghost",
|
|
35
|
+
size,
|
|
36
|
+
"data-slot": "pagination-link",
|
|
37
|
+
"data-active": isActive || void 0,
|
|
38
|
+
className: classes
|
|
39
|
+
};
|
|
40
|
+
if (href !== void 0) return /* @__PURE__ */ jsx(Button, {
|
|
41
|
+
asChild: true,
|
|
42
|
+
...common,
|
|
43
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
44
|
+
href,
|
|
45
|
+
"aria-current": isActive ? "page" : void 0,
|
|
46
|
+
children
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
50
|
+
type: "button",
|
|
51
|
+
"aria-current": isActive ? "page" : void 0,
|
|
52
|
+
...common,
|
|
53
|
+
...props,
|
|
54
|
+
children
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function PaginationPrevious({ className, children, ...props }) {
|
|
58
|
+
return /* @__PURE__ */ jsxs(PaginationLink, {
|
|
59
|
+
size: "default",
|
|
60
|
+
className: cn("pl-1.5!", className),
|
|
61
|
+
...props,
|
|
62
|
+
children: [/* @__PURE__ */ jsx(AppIcon, {
|
|
63
|
+
icon: AltArrowLeftLinearIcon,
|
|
64
|
+
"data-icon": "inline-start"
|
|
65
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
66
|
+
className: "hidden sm:block",
|
|
67
|
+
children
|
|
68
|
+
})]
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function PaginationNext({ className, children, ...props }) {
|
|
72
|
+
return /* @__PURE__ */ jsxs(PaginationLink, {
|
|
73
|
+
size: "default",
|
|
74
|
+
className: cn("pr-1.5!", className),
|
|
75
|
+
...props,
|
|
76
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
77
|
+
className: "hidden sm:block",
|
|
78
|
+
children
|
|
79
|
+
}), /* @__PURE__ */ jsx(AppIcon, {
|
|
80
|
+
icon: AltArrowRightLinearIcon,
|
|
81
|
+
"data-icon": "inline-end"
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function PaginationEllipsis({ className, ...props }) {
|
|
86
|
+
const labels = useUiLabels();
|
|
87
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
88
|
+
"data-slot": "pagination-ellipsis",
|
|
89
|
+
className: cn("flex size-(--control-size) items-center justify-center text-muted-foreground", className),
|
|
90
|
+
...props,
|
|
91
|
+
children: [/* @__PURE__ */ jsx(AppIcon, {
|
|
92
|
+
icon: MenuDotsLinearIcon,
|
|
93
|
+
fill: "currentColor",
|
|
94
|
+
stroke: "none",
|
|
95
|
+
"aria-hidden": "true"
|
|
96
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
97
|
+
className: "sr-only",
|
|
98
|
+
children: labels.morePages
|
|
99
|
+
})]
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Page numbers to render: always the first and last page, the current page
|
|
104
|
+
* with one neighbour on each side, and "ellipsis" for the gaps. At most seven
|
|
105
|
+
* entries, so the control keeps a stable width while paging.
|
|
106
|
+
*/
|
|
107
|
+
function getPaginationRange(current, total) {
|
|
108
|
+
if (total <= 5) return Array.from({ length: total }, (_, index) => index + 1);
|
|
109
|
+
if (current <= 3) return [
|
|
110
|
+
1,
|
|
111
|
+
2,
|
|
112
|
+
3,
|
|
113
|
+
4,
|
|
114
|
+
"ellipsis",
|
|
115
|
+
total
|
|
116
|
+
];
|
|
117
|
+
if (current >= total - 2) return [
|
|
118
|
+
1,
|
|
119
|
+
"ellipsis",
|
|
120
|
+
total - 3,
|
|
121
|
+
total - 2,
|
|
122
|
+
total - 1,
|
|
123
|
+
total
|
|
124
|
+
];
|
|
125
|
+
return [
|
|
126
|
+
1,
|
|
127
|
+
"ellipsis",
|
|
128
|
+
current - 1,
|
|
129
|
+
current,
|
|
130
|
+
current + 1,
|
|
131
|
+
"ellipsis",
|
|
132
|
+
total
|
|
133
|
+
];
|
|
134
|
+
}
|
|
135
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, getPaginationRange };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
|
|
7
|
+
declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
8
|
+
declare function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">): React.JSX.Element;
|
|
9
|
+
declare function PopoverDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
|
|
10
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { Popover as Popover$1 } from "radix-ui";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
// src/components/ui/popover.tsx
|
|
6
|
+
function Popover({ ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(Popover$1.Root, {
|
|
8
|
+
"data-slot": "popover",
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function PopoverTrigger({ ...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsx(Popover$1.Trigger, {
|
|
14
|
+
"data-slot": "popover-trigger",
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(Popover$1.Content, {
|
|
20
|
+
"data-slot": "popover-content",
|
|
21
|
+
align,
|
|
22
|
+
sideOffset,
|
|
23
|
+
className: cn("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-4 rounded-3xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/5 outline-hidden 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),
|
|
24
|
+
...props
|
|
25
|
+
}) });
|
|
26
|
+
}
|
|
27
|
+
function PopoverAnchor({ ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx(Popover$1.Anchor, {
|
|
29
|
+
"data-slot": "popover-anchor",
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function PopoverHeader({ className, ...props }) {
|
|
34
|
+
return /* @__PURE__ */ jsx("div", {
|
|
35
|
+
"data-slot": "popover-header",
|
|
36
|
+
className: cn("flex flex-col gap-1 text-sm", className),
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function PopoverTitle({ className, ...props }) {
|
|
41
|
+
return /* @__PURE__ */ jsx("div", {
|
|
42
|
+
"data-slot": "popover-title",
|
|
43
|
+
className: cn("text-base font-medium", className),
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function PopoverDescription({ className, ...props }) {
|
|
48
|
+
return /* @__PURE__ */ jsx("p", {
|
|
49
|
+
"data-slot": "popover-description",
|
|
50
|
+
className: cn("text-muted-foreground", className),
|
|
51
|
+
...props
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* One look for every floating list (select, menus, combobox, popover, cards):
|
|
2
|
+
the same glass, rounded content, and pill-shaped rows as the bills filters.
|
|
3
|
+
Unlayered, so it wins over the utility classes the shadcn files ship with. */
|
|
4
|
+
:is(
|
|
5
|
+
[data-slot="select-content"],
|
|
6
|
+
[data-slot="dropdown-menu-content"],
|
|
7
|
+
[data-slot="dropdown-menu-sub-content"],
|
|
8
|
+
[data-slot="context-menu-content"],
|
|
9
|
+
[data-slot="context-menu-sub-content"],
|
|
10
|
+
[data-slot="menubar-content"],
|
|
11
|
+
[data-slot="menubar-sub-content"],
|
|
12
|
+
[data-slot="combobox-content"],
|
|
13
|
+
[data-slot="popover-content"],
|
|
14
|
+
[data-slot="hover-card-content"],
|
|
15
|
+
[data-slot="navigation-menu-content"],
|
|
16
|
+
[data-slot="navigation-menu-viewport"]
|
|
17
|
+
) {
|
|
18
|
+
border-radius: var(--radius-control);
|
|
19
|
+
background: color-mix(in srgb, var(--popover) 97%, transparent);
|
|
20
|
+
box-shadow: var(--floating-shadow);
|
|
21
|
+
backdrop-filter: blur(24px) saturate(160%);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:is(
|
|
25
|
+
[data-slot="select-content"],
|
|
26
|
+
[data-slot="dropdown-menu-content"],
|
|
27
|
+
[data-slot="dropdown-menu-sub-content"],
|
|
28
|
+
[data-slot="context-menu-content"],
|
|
29
|
+
[data-slot="context-menu-sub-content"],
|
|
30
|
+
[data-slot="menubar-content"],
|
|
31
|
+
[data-slot="menubar-sub-content"],
|
|
32
|
+
[data-slot="combobox-content"]
|
|
33
|
+
) {
|
|
34
|
+
padding: 4px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:is(
|
|
38
|
+
[data-slot="select-item"],
|
|
39
|
+
[data-slot="dropdown-menu-item"],
|
|
40
|
+
[data-slot="dropdown-menu-checkbox-item"],
|
|
41
|
+
[data-slot="dropdown-menu-radio-item"],
|
|
42
|
+
[data-slot="dropdown-menu-sub-trigger"],
|
|
43
|
+
[data-slot="context-menu-item"],
|
|
44
|
+
[data-slot="context-menu-checkbox-item"],
|
|
45
|
+
[data-slot="context-menu-radio-item"],
|
|
46
|
+
[data-slot="context-menu-sub-trigger"],
|
|
47
|
+
[data-slot="menubar-item"],
|
|
48
|
+
[data-slot="menubar-checkbox-item"],
|
|
49
|
+
[data-slot="menubar-radio-item"],
|
|
50
|
+
[data-slot="menubar-sub-trigger"],
|
|
51
|
+
[data-slot="combobox-item"],
|
|
52
|
+
[data-slot="command-item"]
|
|
53
|
+
) {
|
|
54
|
+
min-height: 1.625rem;
|
|
55
|
+
margin-block: 1px;
|
|
56
|
+
border-radius: calc(var(--radius-control) - 4px);
|
|
57
|
+
font-size: 0.8125rem;
|
|
58
|
+
transition: background-color var(--duration-feedback) var(--ease-feedback);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:is(
|
|
62
|
+
[data-slot="select-item"],
|
|
63
|
+
[data-slot="dropdown-menu-item"],
|
|
64
|
+
[data-slot="dropdown-menu-checkbox-item"],
|
|
65
|
+
[data-slot="dropdown-menu-radio-item"],
|
|
66
|
+
[data-slot="dropdown-menu-sub-trigger"],
|
|
67
|
+
[data-slot="context-menu-item"],
|
|
68
|
+
[data-slot="context-menu-checkbox-item"],
|
|
69
|
+
[data-slot="context-menu-radio-item"],
|
|
70
|
+
[data-slot="context-menu-sub-trigger"],
|
|
71
|
+
[data-slot="menubar-item"],
|
|
72
|
+
[data-slot="menubar-checkbox-item"],
|
|
73
|
+
[data-slot="menubar-radio-item"],
|
|
74
|
+
[data-slot="menubar-sub-trigger"],
|
|
75
|
+
[data-slot="combobox-item"],
|
|
76
|
+
[data-slot="command-item"]
|
|
77
|
+
):is([data-highlighted], [data-selected="true"], [data-state="open"]) {
|
|
78
|
+
background-color: color-mix(in srgb, var(--accent) 45%, var(--popover));
|
|
79
|
+
color: var(--accent-foreground);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:is(
|
|
83
|
+
[data-slot="dropdown-menu-label"],
|
|
84
|
+
[data-slot="context-menu-label"],
|
|
85
|
+
[data-slot="menubar-label"],
|
|
86
|
+
[data-slot="select-label"],
|
|
87
|
+
[data-slot="combobox-label"]
|
|
88
|
+
) {
|
|
89
|
+
font-size: 0.75rem;
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
color: var(--muted-foreground);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Small floating cards use the small control height (28px) for their actions. */
|
|
95
|
+
[data-slot="alert-dialog-content"][data-size="sm"]
|
|
96
|
+
[data-slot="alert-dialog-footer"]
|
|
97
|
+
button {
|
|
98
|
+
height: var(--control-size-small);
|
|
99
|
+
padding-inline: 0.625rem;
|
|
100
|
+
font-size: 0.75rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media (pointer: coarse) {
|
|
104
|
+
[data-slot="alert-dialog-content"][data-size="sm"]
|
|
105
|
+
[data-slot="alert-dialog-footer"]
|
|
106
|
+
button {
|
|
107
|
+
height: 2.5rem;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { Progress as Progress$1 } from "radix-ui";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
// src/components/ui/progress.tsx
|
|
7
|
+
function Progress({ className, value, ...props }) {
|
|
8
|
+
return /* @__PURE__ */ jsx(Progress$1.Root, {
|
|
9
|
+
"data-slot": "progress",
|
|
10
|
+
value,
|
|
11
|
+
className: cn("relative flex h-2 w-full items-center overflow-x-hidden rounded-2xl bg-muted", className),
|
|
12
|
+
...props,
|
|
13
|
+
children: /* @__PURE__ */ jsx(Progress$1.Indicator, {
|
|
14
|
+
"data-slot": "progress-indicator",
|
|
15
|
+
className: "size-full flex-1 bg-primary transition-all",
|
|
16
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export { Progress };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Questionnaire as QuestionnairePrimitive } from "@shadcn/react/questionnaire";
|
|
3
|
+
import { type Button } from "./button.js";
|
|
4
|
+
declare function Questionnaire({ className, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare function QuestionnaireProgress({ className, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Progress>): React.JSX.Element;
|
|
6
|
+
declare function QuestionnaireItem({ className, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Item>): React.JSX.Element;
|
|
7
|
+
declare function QuestionnaireTitle({ className, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Title>): React.JSX.Element;
|
|
8
|
+
declare function QuestionnaireDescription({ className, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Description>): React.JSX.Element;
|
|
9
|
+
declare function QuestionnaireChoices({ className, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Choices>): React.JSX.Element;
|
|
10
|
+
declare function QuestionnaireChoice({ children, className, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Choice>): React.JSX.Element;
|
|
11
|
+
declare function QuestionnaireChoiceDescription({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
12
|
+
declare function QuestionnaireInput({ className, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Input>): React.JSX.Element;
|
|
13
|
+
declare function QuestionnaireError({ className, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Error>): React.JSX.Element;
|
|
14
|
+
declare function QuestionnaireActions({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
15
|
+
declare function QuestionnairePrevious({ children, className, size, variant, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Previous> & Pick<React.ComponentProps<typeof Button>, "size" | "variant">): React.JSX.Element;
|
|
16
|
+
declare function QuestionnaireSkip({ children, className, size, variant, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Skip> & Pick<React.ComponentProps<typeof Button>, "size" | "variant">): React.JSX.Element;
|
|
17
|
+
declare function QuestionnaireNext({ children, className, size, variant, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Next> & Pick<React.ComponentProps<typeof Button>, "size" | "variant">): React.JSX.Element;
|
|
18
|
+
declare function QuestionnaireSubmit({ children, className, size, variant, ...props }: React.ComponentProps<typeof QuestionnairePrimitive.Submit> & Pick<React.ComponentProps<typeof Button>, "size" | "variant">): React.JSX.Element;
|
|
19
|
+
export { Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireInput, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { buttonVariants } from "./button.js";
|
|
3
|
+
import { IconPlaceholder } from "../icons/icon-placeholder.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { cn } from "cn";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Questionnaire as Questionnaire$1 } from "@shadcn/react/questionnaire";
|
|
8
|
+
// src/components/ui/questionnaire.tsx
|
|
9
|
+
function Questionnaire({ className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Questionnaire$1.Root, {
|
|
11
|
+
"data-slot": "questionnaire",
|
|
12
|
+
className: cn("flex w-full min-w-0 flex-col gap-6", className),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function QuestionnaireProgress({ className, ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Questionnaire$1.Progress, {
|
|
18
|
+
"data-slot": "questionnaire-progress",
|
|
19
|
+
className: cn("min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium text-muted-foreground tabular-nums", className),
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function QuestionnaireItem({ className, ...props }) {
|
|
24
|
+
return /* @__PURE__ */ jsx(Questionnaire$1.Item, {
|
|
25
|
+
"data-slot": "questionnaire-item",
|
|
26
|
+
className: cn("flex min-w-0 flex-col gap-5 border-0 p-0 outline-none", className),
|
|
27
|
+
...props
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function QuestionnaireTitle({ className, ...props }) {
|
|
31
|
+
return /* @__PURE__ */ jsx(Questionnaire$1.Title, {
|
|
32
|
+
"data-slot": "questionnaire-title",
|
|
33
|
+
className: cn("font-heading text-base font-semibold text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-5", className),
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function QuestionnaireDescription({ className, ...props }) {
|
|
38
|
+
return /* @__PURE__ */ jsx(Questionnaire$1.Description, {
|
|
39
|
+
"data-slot": "questionnaire-description",
|
|
40
|
+
className: cn("text-sm text-pretty text-muted-foreground", className),
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function QuestionnaireChoices({ className, ...props }) {
|
|
45
|
+
return /* @__PURE__ */ jsx(Questionnaire$1.Choices, {
|
|
46
|
+
"data-slot": "questionnaire-choices",
|
|
47
|
+
className: cn("group/questionnaire-choices grid min-w-0 gap-3", className),
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function QuestionnaireChoice({ children, className, ...props }) {
|
|
52
|
+
return /* @__PURE__ */ jsxs(Questionnaire$1.Choice, {
|
|
53
|
+
"data-slot": "questionnaire-choice",
|
|
54
|
+
className: cn("group/questionnaire-choice relative flex min-h-11 cursor-pointer items-start gap-3 rounded-2xl border border-input px-4 py-3 text-start text-sm transition-colors outline-none select-none hover:bg-input/40 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-3 has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive data-checked:border-primary/40 data-checked:bg-primary/10", "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", className),
|
|
55
|
+
...props,
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ jsx(Questionnaire$1.ChoiceInput, {
|
|
58
|
+
"data-slot": "questionnaire-choice-input",
|
|
59
|
+
className: "absolute inset-0 z-10 size-full cursor-pointer opacity-0"
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ jsxs("span", {
|
|
62
|
+
"aria-hidden": "true",
|
|
63
|
+
"data-slot": "questionnaire-choice-indicator",
|
|
64
|
+
className: "pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[5px] border border-transparent bg-input/90 group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:group-data-checked/questionnaire-choice:bg-primary",
|
|
65
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
66
|
+
"data-slot": "questionnaire-choice-indicator-dot",
|
|
67
|
+
className: "hidden size-2 rounded-full bg-primary-foreground group-data-[type=checkbox]/questionnaire-choice:hidden group-data-checked/questionnaire-choice:block dark:size-2.5"
|
|
68
|
+
}), /* @__PURE__ */ jsx(IconPlaceholder, {
|
|
69
|
+
"data-slot": "questionnaire-choice-indicator-check",
|
|
70
|
+
className: "hidden size-3.5 group-data-[type=radio]/questionnaire-choice:hidden group-data-checked/questionnaire-choice:block",
|
|
71
|
+
lucide: "CheckIcon",
|
|
72
|
+
tabler: "IconCheck",
|
|
73
|
+
hugeicons: "Tick02Icon",
|
|
74
|
+
phosphor: "CheckIcon",
|
|
75
|
+
remixicon: "RiCheckLine"
|
|
76
|
+
})]
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ jsx(Questionnaire$1.ChoiceLabel, {
|
|
79
|
+
"data-slot": "questionnaire-choice-label",
|
|
80
|
+
className: "flex min-w-0 flex-1 flex-col gap-1 leading-snug",
|
|
81
|
+
children
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ jsx(Questionnaire$1.ChoiceShortcut, {
|
|
84
|
+
"data-slot": "questionnaire-choice-shortcut",
|
|
85
|
+
className: "pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-full border border-primary/10 bg-background/80 font-mono text-[0.625rem] leading-none font-medium text-muted-foreground group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex"
|
|
86
|
+
})
|
|
87
|
+
]
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function QuestionnaireChoiceDescription({ className, ...props }) {
|
|
91
|
+
return /* @__PURE__ */ jsx("span", {
|
|
92
|
+
"data-slot": "questionnaire-choice-description",
|
|
93
|
+
className: cn("text-muted-foreground", className),
|
|
94
|
+
...props
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function QuestionnaireInput({ className, ...props }) {
|
|
98
|
+
return /* @__PURE__ */ jsx("div", {
|
|
99
|
+
"data-slot": "questionnaire-input-wrapper",
|
|
100
|
+
className: "group/questionnaire-input relative w-full min-w-0",
|
|
101
|
+
children: /* @__PURE__ */ jsx(Questionnaire$1.Input, {
|
|
102
|
+
"data-slot": "questionnaire-input",
|
|
103
|
+
className: cn("h-8 min-h-11 w-full min-w-0 rounded-2xl border border-transparent bg-(--field-surface) px-2.5 py-1 text-base shadow-(--field-shadow) transition-[color,box-shadow,background-color] duration-200 outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 sm:min-h-0 md:text-sm dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", "selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground", className),
|
|
104
|
+
...props
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function QuestionnaireError({ className, ...props }) {
|
|
109
|
+
return /* @__PURE__ */ jsx(Questionnaire$1.Error, {
|
|
110
|
+
"data-slot": "questionnaire-error",
|
|
111
|
+
className: cn("mt-2 text-sm text-destructive", className),
|
|
112
|
+
...props
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function QuestionnaireActions({ className, ...props }) {
|
|
116
|
+
return /* @__PURE__ */ jsx("div", {
|
|
117
|
+
"data-slot": "questionnaire-actions",
|
|
118
|
+
className: cn("grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-8", className),
|
|
119
|
+
...props
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function QuestionnairePrevious({ children, className, size = "default", variant = "outline", ...props }) {
|
|
123
|
+
return /* @__PURE__ */ jsx(Questionnaire$1.Previous, {
|
|
124
|
+
"data-slot": "questionnaire-previous",
|
|
125
|
+
"data-size": size,
|
|
126
|
+
"data-variant": variant,
|
|
127
|
+
className: cn(buttonVariants({
|
|
128
|
+
size,
|
|
129
|
+
variant
|
|
130
|
+
}), "col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0", className),
|
|
131
|
+
...props,
|
|
132
|
+
children: children ?? "Previous"
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
function QuestionnaireSkip({ children, className, size = "default", variant = "outline", ...props }) {
|
|
136
|
+
return /* @__PURE__ */ jsx(Questionnaire$1.Skip, {
|
|
137
|
+
"data-slot": "questionnaire-skip",
|
|
138
|
+
"data-size": size,
|
|
139
|
+
"data-variant": variant,
|
|
140
|
+
className: cn(buttonVariants({
|
|
141
|
+
size,
|
|
142
|
+
variant
|
|
143
|
+
}), "col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0", className),
|
|
144
|
+
...props,
|
|
145
|
+
children: children ?? "Skip"
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function QuestionnaireNext({ children, className, size = "default", variant = "default", ...props }) {
|
|
149
|
+
return /* @__PURE__ */ jsx(Questionnaire$1.Next, {
|
|
150
|
+
"data-slot": "questionnaire-next",
|
|
151
|
+
"data-size": size,
|
|
152
|
+
"data-variant": variant,
|
|
153
|
+
className: cn(buttonVariants({
|
|
154
|
+
size,
|
|
155
|
+
variant
|
|
156
|
+
}), "col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0", className),
|
|
157
|
+
...props,
|
|
158
|
+
children: children ?? "Next"
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
function QuestionnaireSubmit({ children, className, size = "default", variant = "default", ...props }) {
|
|
162
|
+
return /* @__PURE__ */ jsx(Questionnaire$1.Submit, {
|
|
163
|
+
"data-slot": "questionnaire-submit",
|
|
164
|
+
"data-size": size,
|
|
165
|
+
"data-variant": variant,
|
|
166
|
+
className: cn(buttonVariants({
|
|
167
|
+
size,
|
|
168
|
+
variant
|
|
169
|
+
}), "col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0", className),
|
|
170
|
+
...props,
|
|
171
|
+
children: children ?? "Submit"
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
export { Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireInput, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
3
|
+
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): React.JSX.Element;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|