@codefast/ui 0.9.0 → 0.9.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/CHANGELOG.md +23 -0
- package/README.md +78 -39
- package/dist/components/accordion.d.ts +1 -2
- package/dist/components/accordion.js +1 -2
- package/dist/components/alert-dialog.d.ts +1 -2
- package/dist/components/alert-dialog.js +1 -2
- package/dist/components/alert.d.ts +1 -2
- package/dist/components/alert.js +1 -2
- package/dist/components/aspect-ratio.d.ts +1 -2
- package/dist/components/aspect-ratio.js +1 -2
- package/dist/components/attachment.d.ts +1 -2
- package/dist/components/attachment.js +1 -2
- package/dist/components/avatar.d.ts +1 -2
- package/dist/components/avatar.js +1 -2
- package/dist/components/badge.d.ts +1 -2
- package/dist/components/badge.js +1 -2
- package/dist/components/breadcrumb.d.ts +1 -2
- package/dist/components/breadcrumb.js +1 -2
- package/dist/components/bubble.d.ts +1 -2
- package/dist/components/bubble.js +1 -2
- package/dist/components/button-group.d.ts +1 -2
- package/dist/components/button-group.js +1 -2
- package/dist/components/button.d.ts +1 -2
- package/dist/components/button.js +1 -2
- package/dist/components/calendar.d.ts +2 -3
- package/dist/components/calendar.js +1 -2
- package/dist/components/card.d.ts +1 -2
- package/dist/components/card.js +1 -2
- package/dist/components/carousel.d.ts +1 -2
- package/dist/components/carousel.js +1 -2
- package/dist/components/chart.d.ts +1 -2
- package/dist/components/chart.js +1 -2
- package/dist/components/checkbox-cards.d.ts +1 -2
- package/dist/components/checkbox-cards.js +1 -2
- package/dist/components/checkbox-group.d.ts +1 -2
- package/dist/components/checkbox-group.js +1 -2
- package/dist/components/checkbox.d.ts +1 -2
- package/dist/components/checkbox.js +1 -2
- package/dist/components/collapsible.d.ts +1 -2
- package/dist/components/collapsible.js +1 -2
- package/dist/components/command.d.ts +1 -2
- package/dist/components/command.js +1 -2
- package/dist/components/context-menu.d.ts +2 -3
- package/dist/components/context-menu.js +3 -4
- package/dist/components/dialog.d.ts +1 -2
- package/dist/components/dialog.js +1 -2
- package/dist/components/direction.d.ts +1 -2
- package/dist/components/direction.js +1 -2
- package/dist/components/drawer.d.ts +1 -2
- package/dist/components/drawer.js +1 -2
- package/dist/components/dropdown-menu.d.ts +2 -3
- package/dist/components/dropdown-menu.js +3 -4
- package/dist/components/empty.d.ts +1 -2
- package/dist/components/empty.js +1 -2
- package/dist/components/field.d.ts +1 -2
- package/dist/components/field.js +1 -2
- package/dist/components/form.d.ts +1 -2
- package/dist/components/form.js +1 -2
- package/dist/components/hover-card.d.ts +1 -2
- package/dist/components/hover-card.js +1 -2
- package/dist/components/input-group.d.ts +1 -2
- package/dist/components/input-group.js +1 -2
- package/dist/components/input-number.d.ts +1 -2
- package/dist/components/input-number.js +1 -2
- package/dist/components/input-otp.d.ts +1 -2
- package/dist/components/input-otp.js +1 -2
- package/dist/components/input-password.d.ts +1 -2
- package/dist/components/input-password.js +1 -2
- package/dist/components/input-search.d.ts +1 -2
- package/dist/components/input-search.js +2 -3
- package/dist/components/input.d.ts +1 -2
- package/dist/components/input.js +1 -2
- package/dist/components/item.d.ts +1 -2
- package/dist/components/item.js +1 -2
- package/dist/components/kbd.d.ts +1 -2
- package/dist/components/kbd.js +1 -2
- package/dist/components/label.d.ts +1 -2
- package/dist/components/label.js +1 -2
- package/dist/components/marker.d.ts +1 -2
- package/dist/components/marker.js +1 -2
- package/dist/components/menubar.d.ts +2 -3
- package/dist/components/menubar.js +3 -4
- package/dist/components/message-scroller.d.ts +1 -2
- package/dist/components/message-scroller.js +1 -2
- package/dist/components/message.d.ts +1 -2
- package/dist/components/message.js +1 -2
- package/dist/components/native-select.d.ts +1 -2
- package/dist/components/native-select.js +1 -2
- package/dist/components/navigation-menu.d.ts +1 -2
- package/dist/components/navigation-menu.js +1 -2
- package/dist/components/pagination.d.ts +1 -2
- package/dist/components/pagination.js +1 -2
- package/dist/components/popover.d.ts +1 -2
- package/dist/components/popover.js +1 -2
- package/dist/components/progress-circle.d.ts +1 -2
- package/dist/components/progress-circle.js +1 -2
- package/dist/components/progress.d.ts +1 -2
- package/dist/components/progress.js +1 -2
- package/dist/components/radio-cards.d.ts +1 -2
- package/dist/components/radio-cards.js +1 -2
- package/dist/components/radio-group.d.ts +1 -2
- package/dist/components/radio-group.js +1 -2
- package/dist/components/radio.d.ts +1 -2
- package/dist/components/radio.js +1 -2
- package/dist/components/resizable.d.ts +1 -2
- package/dist/components/resizable.js +1 -2
- package/dist/components/scroll-area.d.ts +1 -2
- package/dist/components/scroll-area.js +2 -3
- package/dist/components/select.d.ts +1 -2
- package/dist/components/select.js +1 -2
- package/dist/components/separator.d.ts +1 -2
- package/dist/components/separator.js +2 -3
- package/dist/components/sheet.d.ts +1 -2
- package/dist/components/sheet.js +1 -2
- package/dist/components/sidebar.d.ts +1 -2
- package/dist/components/sidebar.js +1 -2
- package/dist/components/skeleton.d.ts +1 -2
- package/dist/components/skeleton.js +1 -2
- package/dist/components/slider.d.ts +1 -2
- package/dist/components/slider.js +2 -3
- package/dist/components/sonner.d.ts +1 -2
- package/dist/components/sonner.js +1 -2
- package/dist/components/spinner.d.ts +1 -2
- package/dist/components/spinner.js +1 -2
- package/dist/components/switch.d.ts +1 -2
- package/dist/components/switch.js +1 -2
- package/dist/components/table.d.ts +1 -2
- package/dist/components/table.js +1 -2
- package/dist/components/tabs.d.ts +1 -2
- package/dist/components/tabs.js +1 -2
- package/dist/components/textarea.d.ts +1 -2
- package/dist/components/textarea.js +1 -2
- package/dist/components/toggle-group.d.ts +1 -2
- package/dist/components/toggle-group.js +1 -2
- package/dist/components/toggle.d.ts +1 -2
- package/dist/components/toggle.js +1 -2
- package/dist/components/tooltip.d.ts +1 -2
- package/dist/components/tooltip.js +1 -2
- package/dist/hooks/use-animated-value.d.ts +1 -2
- package/dist/hooks/use-animated-value.js +1 -2
- package/dist/hooks/use-copy-to-clipboard.d.ts +1 -2
- package/dist/hooks/use-copy-to-clipboard.js +1 -2
- package/dist/hooks/use-has-hydrated.d.ts +1 -2
- package/dist/hooks/use-has-hydrated.js +1 -2
- package/dist/hooks/use-is-mobile.d.ts +1 -2
- package/dist/hooks/use-is-mobile.js +1 -2
- package/dist/hooks/use-latest.d.ts +1 -2
- package/dist/hooks/use-latest.js +1 -2
- package/dist/hooks/use-media-query.d.ts +1 -2
- package/dist/hooks/use-media-query.js +1 -2
- package/dist/hooks/use-message-scroller-commands.d.ts +1 -2
- package/dist/hooks/use-message-scroller-commands.js +1 -2
- package/dist/hooks/use-message-scroller-controller.d.ts +1 -2
- package/dist/hooks/use-message-scroller-controller.js +1 -2
- package/dist/hooks/use-message-scroller-refs.d.ts +2 -3
- package/dist/hooks/use-message-scroller-refs.js +1 -2
- package/dist/hooks/use-mutation-observer.d.ts +1 -2
- package/dist/hooks/use-mutation-observer.js +1 -2
- package/dist/hooks/use-pagination.d.ts +1 -2
- package/dist/hooks/use-pagination.js +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/lib/message-scroller/geometry.d.ts +1 -2
- package/dist/lib/message-scroller/geometry.js +1 -2
- package/dist/lib/message-scroller/stores.d.ts +1 -2
- package/dist/lib/message-scroller/stores.js +1 -2
- package/dist/lib/message-scroller/types.d.ts +4 -5
- package/dist/lib/message-scroller/types.js +1 -2
- package/dist/lib/use-render.d.ts +2 -3
- package/dist/lib/use-render.js +1 -2
- package/dist/lib/utils.d.ts +1 -2
- package/dist/lib/utils.js +1 -2
- package/dist/primitives/checkbox-group.d.ts +2 -3
- package/dist/primitives/checkbox-group.js +3 -4
- package/dist/primitives/input-number.d.ts +1 -2
- package/dist/primitives/input-number.js +2 -3
- package/dist/primitives/input.d.ts +1 -2
- package/dist/primitives/input.js +1 -2
- package/dist/primitives/message-scroller.d.ts +1 -2
- package/dist/primitives/message-scroller.js +1 -2
- package/dist/primitives/progress-circle.d.ts +1 -2
- package/dist/primitives/progress-circle.js +1 -2
- package/dist/variants/alert.d.ts +1 -2
- package/dist/variants/alert.js +1 -2
- package/dist/variants/attachment.d.ts +1 -2
- package/dist/variants/attachment.js +1 -2
- package/dist/variants/badge.d.ts +1 -2
- package/dist/variants/badge.js +1 -2
- package/dist/variants/bubble.d.ts +1 -2
- package/dist/variants/bubble.js +1 -2
- package/dist/variants/button-group.d.ts +1 -2
- package/dist/variants/button-group.js +1 -2
- package/dist/variants/button.d.ts +1 -2
- package/dist/variants/button.js +1 -2
- package/dist/variants/empty.d.ts +1 -2
- package/dist/variants/empty.js +1 -2
- package/dist/variants/field.d.ts +1 -2
- package/dist/variants/field.js +1 -2
- package/dist/variants/input-group.d.ts +1 -2
- package/dist/variants/input-group.js +1 -2
- package/dist/variants/item.d.ts +1 -2
- package/dist/variants/item.js +1 -2
- package/dist/variants/marker.d.ts +1 -2
- package/dist/variants/marker.js +1 -2
- package/dist/variants/navigation-menu.d.ts +1 -2
- package/dist/variants/navigation-menu.js +1 -2
- package/dist/variants/progress-circle.d.ts +1 -2
- package/dist/variants/progress-circle.js +1 -2
- package/dist/variants/scroll-area.d.ts +1 -2
- package/dist/variants/scroll-area.js +1 -2
- package/dist/variants/separator.d.ts +1 -2
- package/dist/variants/separator.js +1 -2
- package/dist/variants/sheet.d.ts +1 -2
- package/dist/variants/sheet.js +1 -2
- package/dist/variants/sidebar.d.ts +1 -2
- package/dist/variants/sidebar.js +1 -2
- package/dist/variants/tabs.d.ts +1 -2
- package/dist/variants/tabs.js +1 -2
- package/dist/variants/toggle.d.ts +1 -2
- package/dist/variants/toggle.js +1 -2
- package/package.json +12 -129
- package/dist/components/accordion.d.ts.map +0 -1
- package/dist/components/accordion.js.map +0 -1
- package/dist/components/alert-dialog.d.ts.map +0 -1
- package/dist/components/alert-dialog.js.map +0 -1
- package/dist/components/alert.d.ts.map +0 -1
- package/dist/components/alert.js.map +0 -1
- package/dist/components/aspect-ratio.d.ts.map +0 -1
- package/dist/components/aspect-ratio.js.map +0 -1
- package/dist/components/attachment.d.ts.map +0 -1
- package/dist/components/attachment.js.map +0 -1
- package/dist/components/avatar.d.ts.map +0 -1
- package/dist/components/avatar.js.map +0 -1
- package/dist/components/badge.d.ts.map +0 -1
- package/dist/components/badge.js.map +0 -1
- package/dist/components/breadcrumb.d.ts.map +0 -1
- package/dist/components/breadcrumb.js.map +0 -1
- package/dist/components/bubble.d.ts.map +0 -1
- package/dist/components/bubble.js.map +0 -1
- package/dist/components/button-group.d.ts.map +0 -1
- package/dist/components/button-group.js.map +0 -1
- package/dist/components/button.d.ts.map +0 -1
- package/dist/components/button.js.map +0 -1
- package/dist/components/calendar.d.ts.map +0 -1
- package/dist/components/calendar.js.map +0 -1
- package/dist/components/card.d.ts.map +0 -1
- package/dist/components/card.js.map +0 -1
- package/dist/components/carousel.d.ts.map +0 -1
- package/dist/components/carousel.js.map +0 -1
- package/dist/components/chart.d.ts.map +0 -1
- package/dist/components/chart.js.map +0 -1
- package/dist/components/checkbox-cards.d.ts.map +0 -1
- package/dist/components/checkbox-cards.js.map +0 -1
- package/dist/components/checkbox-group.d.ts.map +0 -1
- package/dist/components/checkbox-group.js.map +0 -1
- package/dist/components/checkbox.d.ts.map +0 -1
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/collapsible.d.ts.map +0 -1
- package/dist/components/collapsible.js.map +0 -1
- package/dist/components/command.d.ts.map +0 -1
- package/dist/components/command.js.map +0 -1
- package/dist/components/context-menu.d.ts.map +0 -1
- package/dist/components/context-menu.js.map +0 -1
- package/dist/components/dialog.d.ts.map +0 -1
- package/dist/components/dialog.js.map +0 -1
- package/dist/components/direction.d.ts.map +0 -1
- package/dist/components/direction.js.map +0 -1
- package/dist/components/drawer.d.ts.map +0 -1
- package/dist/components/drawer.js.map +0 -1
- package/dist/components/dropdown-menu.d.ts.map +0 -1
- package/dist/components/dropdown-menu.js.map +0 -1
- package/dist/components/empty.d.ts.map +0 -1
- package/dist/components/empty.js.map +0 -1
- package/dist/components/field.d.ts.map +0 -1
- package/dist/components/field.js.map +0 -1
- package/dist/components/form.d.ts.map +0 -1
- package/dist/components/form.js.map +0 -1
- package/dist/components/hover-card.d.ts.map +0 -1
- package/dist/components/hover-card.js.map +0 -1
- package/dist/components/input-group.d.ts.map +0 -1
- package/dist/components/input-group.js.map +0 -1
- package/dist/components/input-number.d.ts.map +0 -1
- package/dist/components/input-number.js.map +0 -1
- package/dist/components/input-otp.d.ts.map +0 -1
- package/dist/components/input-otp.js.map +0 -1
- package/dist/components/input-password.d.ts.map +0 -1
- package/dist/components/input-password.js.map +0 -1
- package/dist/components/input-search.d.ts.map +0 -1
- package/dist/components/input-search.js.map +0 -1
- package/dist/components/input.d.ts.map +0 -1
- package/dist/components/input.js.map +0 -1
- package/dist/components/item.d.ts.map +0 -1
- package/dist/components/item.js.map +0 -1
- package/dist/components/kbd.d.ts.map +0 -1
- package/dist/components/kbd.js.map +0 -1
- package/dist/components/label.d.ts.map +0 -1
- package/dist/components/label.js.map +0 -1
- package/dist/components/marker.d.ts.map +0 -1
- package/dist/components/marker.js.map +0 -1
- package/dist/components/menubar.d.ts.map +0 -1
- package/dist/components/menubar.js.map +0 -1
- package/dist/components/message-scroller.d.ts.map +0 -1
- package/dist/components/message-scroller.js.map +0 -1
- package/dist/components/message.d.ts.map +0 -1
- package/dist/components/message.js.map +0 -1
- package/dist/components/native-select.d.ts.map +0 -1
- package/dist/components/native-select.js.map +0 -1
- package/dist/components/navigation-menu.d.ts.map +0 -1
- package/dist/components/navigation-menu.js.map +0 -1
- package/dist/components/pagination.d.ts.map +0 -1
- package/dist/components/pagination.js.map +0 -1
- package/dist/components/popover.d.ts.map +0 -1
- package/dist/components/popover.js.map +0 -1
- package/dist/components/progress-circle.d.ts.map +0 -1
- package/dist/components/progress-circle.js.map +0 -1
- package/dist/components/progress.d.ts.map +0 -1
- package/dist/components/progress.js.map +0 -1
- package/dist/components/radio-cards.d.ts.map +0 -1
- package/dist/components/radio-cards.js.map +0 -1
- package/dist/components/radio-group.d.ts.map +0 -1
- package/dist/components/radio-group.js.map +0 -1
- package/dist/components/radio.d.ts.map +0 -1
- package/dist/components/radio.js.map +0 -1
- package/dist/components/resizable.d.ts.map +0 -1
- package/dist/components/resizable.js.map +0 -1
- package/dist/components/scroll-area.d.ts.map +0 -1
- package/dist/components/scroll-area.js.map +0 -1
- package/dist/components/select.d.ts.map +0 -1
- package/dist/components/select.js.map +0 -1
- package/dist/components/separator.d.ts.map +0 -1
- package/dist/components/separator.js.map +0 -1
- package/dist/components/sheet.d.ts.map +0 -1
- package/dist/components/sheet.js.map +0 -1
- package/dist/components/sidebar.d.ts.map +0 -1
- package/dist/components/sidebar.js.map +0 -1
- package/dist/components/skeleton.d.ts.map +0 -1
- package/dist/components/skeleton.js.map +0 -1
- package/dist/components/slider.d.ts.map +0 -1
- package/dist/components/slider.js.map +0 -1
- package/dist/components/sonner.d.ts.map +0 -1
- package/dist/components/sonner.js.map +0 -1
- package/dist/components/spinner.d.ts.map +0 -1
- package/dist/components/spinner.js.map +0 -1
- package/dist/components/switch.d.ts.map +0 -1
- package/dist/components/switch.js.map +0 -1
- package/dist/components/table.d.ts.map +0 -1
- package/dist/components/table.js.map +0 -1
- package/dist/components/tabs.d.ts.map +0 -1
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/textarea.d.ts.map +0 -1
- package/dist/components/textarea.js.map +0 -1
- package/dist/components/toggle-group.d.ts.map +0 -1
- package/dist/components/toggle-group.js.map +0 -1
- package/dist/components/toggle.d.ts.map +0 -1
- package/dist/components/toggle.js.map +0 -1
- package/dist/components/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip.js.map +0 -1
- package/dist/hooks/use-animated-value.d.ts.map +0 -1
- package/dist/hooks/use-animated-value.js.map +0 -1
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +0 -1
- package/dist/hooks/use-copy-to-clipboard.js.map +0 -1
- package/dist/hooks/use-has-hydrated.d.ts.map +0 -1
- package/dist/hooks/use-has-hydrated.js.map +0 -1
- package/dist/hooks/use-is-mobile.d.ts.map +0 -1
- package/dist/hooks/use-is-mobile.js.map +0 -1
- package/dist/hooks/use-latest.d.ts.map +0 -1
- package/dist/hooks/use-latest.js.map +0 -1
- package/dist/hooks/use-media-query.d.ts.map +0 -1
- package/dist/hooks/use-media-query.js.map +0 -1
- package/dist/hooks/use-message-scroller-commands.d.ts.map +0 -1
- package/dist/hooks/use-message-scroller-commands.js.map +0 -1
- package/dist/hooks/use-message-scroller-controller.d.ts.map +0 -1
- package/dist/hooks/use-message-scroller-controller.js.map +0 -1
- package/dist/hooks/use-message-scroller-refs.d.ts.map +0 -1
- package/dist/hooks/use-message-scroller-refs.js.map +0 -1
- package/dist/hooks/use-mutation-observer.d.ts.map +0 -1
- package/dist/hooks/use-mutation-observer.js.map +0 -1
- package/dist/hooks/use-pagination.d.ts.map +0 -1
- package/dist/hooks/use-pagination.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/message-scroller/geometry.d.ts.map +0 -1
- package/dist/lib/message-scroller/geometry.js.map +0 -1
- package/dist/lib/message-scroller/stores.d.ts.map +0 -1
- package/dist/lib/message-scroller/stores.js.map +0 -1
- package/dist/lib/message-scroller/types.d.ts.map +0 -1
- package/dist/lib/message-scroller/types.js.map +0 -1
- package/dist/lib/use-render.d.ts.map +0 -1
- package/dist/lib/use-render.js.map +0 -1
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js.map +0 -1
- package/dist/primitives/checkbox-group.d.ts.map +0 -1
- package/dist/primitives/checkbox-group.js.map +0 -1
- package/dist/primitives/input-number.d.ts.map +0 -1
- package/dist/primitives/input-number.js.map +0 -1
- package/dist/primitives/input.d.ts.map +0 -1
- package/dist/primitives/input.js.map +0 -1
- package/dist/primitives/message-scroller.d.ts.map +0 -1
- package/dist/primitives/message-scroller.js.map +0 -1
- package/dist/primitives/progress-circle.d.ts.map +0 -1
- package/dist/primitives/progress-circle.js.map +0 -1
- package/dist/variants/alert.d.ts.map +0 -1
- package/dist/variants/alert.js.map +0 -1
- package/dist/variants/attachment.d.ts.map +0 -1
- package/dist/variants/attachment.js.map +0 -1
- package/dist/variants/badge.d.ts.map +0 -1
- package/dist/variants/badge.js.map +0 -1
- package/dist/variants/bubble.d.ts.map +0 -1
- package/dist/variants/bubble.js.map +0 -1
- package/dist/variants/button-group.d.ts.map +0 -1
- package/dist/variants/button-group.js.map +0 -1
- package/dist/variants/button.d.ts.map +0 -1
- package/dist/variants/button.js.map +0 -1
- package/dist/variants/empty.d.ts.map +0 -1
- package/dist/variants/empty.js.map +0 -1
- package/dist/variants/field.d.ts.map +0 -1
- package/dist/variants/field.js.map +0 -1
- package/dist/variants/input-group.d.ts.map +0 -1
- package/dist/variants/input-group.js.map +0 -1
- package/dist/variants/item.d.ts.map +0 -1
- package/dist/variants/item.js.map +0 -1
- package/dist/variants/marker.d.ts.map +0 -1
- package/dist/variants/marker.js.map +0 -1
- package/dist/variants/navigation-menu.d.ts.map +0 -1
- package/dist/variants/navigation-menu.js.map +0 -1
- package/dist/variants/progress-circle.d.ts.map +0 -1
- package/dist/variants/progress-circle.js.map +0 -1
- package/dist/variants/scroll-area.d.ts.map +0 -1
- package/dist/variants/scroll-area.js.map +0 -1
- package/dist/variants/separator.d.ts.map +0 -1
- package/dist/variants/separator.js.map +0 -1
- package/dist/variants/sheet.d.ts.map +0 -1
- package/dist/variants/sheet.js.map +0 -1
- package/dist/variants/sidebar.d.ts.map +0 -1
- package/dist/variants/sidebar.js.map +0 -1
- package/dist/variants/tabs.d.ts.map +0 -1
- package/dist/variants/tabs.js.map +0 -1
- package/dist/variants/toggle.d.ts.map +0 -1
- package/dist/variants/toggle.js.map +0 -1
- package/src/components/accordion.tsx +0 -104
- package/src/components/alert-dialog.tsx +0 -274
- package/src/components/alert.tsx +0 -84
- package/src/components/aspect-ratio.tsx +0 -21
- package/src/components/attachment.tsx +0 -264
- package/src/components/avatar.tsx +0 -157
- package/src/components/badge.tsx +0 -31
- package/src/components/breadcrumb.tsx +0 -170
- package/src/components/bubble.tsx +0 -106
- package/src/components/button-group.tsx +0 -89
- package/src/components/button.tsx +0 -51
- package/src/components/calendar.tsx +0 -210
- package/src/components/card.tsx +0 -153
- package/src/components/carousel.tsx +0 -344
- package/src/components/chart.tsx +0 -514
- package/src/components/checkbox-cards.tsx +0 -67
- package/src/components/checkbox-group.tsx +0 -55
- package/src/components/checkbox.tsx +0 -41
- package/src/components/collapsible.tsx +0 -49
- package/src/components/command.tsx +0 -276
- package/src/components/context-menu.tsx +0 -378
- package/src/components/dialog.tsx +0 -226
- package/src/components/direction.tsx +0 -28
- package/src/components/drawer.tsx +0 -191
- package/src/components/dropdown-menu.tsx +0 -387
- package/src/components/empty.tsx +0 -141
- package/src/components/field.tsx +0 -307
- package/src/components/form.tsx +0 -238
- package/src/components/hover-card.tsx +0 -83
- package/src/components/input-group.tsx +0 -171
- package/src/components/input-number.tsx +0 -191
- package/src/components/input-otp.tsx +0 -122
- package/src/components/input-password.tsx +0 -46
- package/src/components/input-search.tsx +0 -77
- package/src/components/input.tsx +0 -32
- package/src/components/item.tsx +0 -244
- package/src/components/kbd.tsx +0 -43
- package/src/components/label.tsx +0 -32
- package/src/components/marker.tsx +0 -86
- package/src/components/menubar.tsx +0 -406
- package/src/components/message-scroller.tsx +0 -199
- package/src/components/message.tsx +0 -159
- package/src/components/native-select.tsx +0 -79
- package/src/components/navigation-menu.tsx +0 -217
- package/src/components/pagination.tsx +0 -182
- package/src/components/popover.tsx +0 -152
- package/src/components/progress-circle.tsx +0 -179
- package/src/components/progress.tsx +0 -37
- package/src/components/radio-cards.tsx +0 -60
- package/src/components/radio-group.tsx +0 -55
- package/src/components/radio.tsx +0 -36
- package/src/components/resizable.tsx +0 -70
- package/src/components/scroll-area.tsx +0 -87
- package/src/components/select.tsx +0 -274
- package/src/components/separator.tsx +0 -54
- package/src/components/sheet.tsx +0 -221
- package/src/components/sidebar.tsx +0 -891
- package/src/components/skeleton.tsx +0 -31
- package/src/components/slider.tsx +0 -62
- package/src/components/sonner.tsx +0 -53
- package/src/components/spinner.tsx +0 -62
- package/src/components/switch.tsx +0 -40
- package/src/components/table.tsx +0 -165
- package/src/components/tabs.tsx +0 -100
- package/src/components/textarea.tsx +0 -31
- package/src/components/toggle-group.tsx +0 -129
- package/src/components/toggle.tsx +0 -26
- package/src/components/tooltip.tsx +0 -103
- package/src/css/foundation/base.css +0 -68
- package/src/css/foundation/motion.css +0 -65
- package/src/css/foundation/source.css +0 -10
- package/src/css/foundation/tokens.css +0 -83
- package/src/css/foundation/utilities.css +0 -451
- package/src/css/foundation/variants.css +0 -108
- package/src/css/preset.css +0 -14
- package/src/css/style.css +0 -11
- package/src/css/themes/amber.css +0 -105
- package/src/css/themes/blue.css +0 -105
- package/src/css/themes/cyan.css +0 -105
- package/src/css/themes/emerald.css +0 -105
- package/src/css/themes/fuchsia.css +0 -105
- package/src/css/themes/gray.css +0 -105
- package/src/css/themes/green.css +0 -105
- package/src/css/themes/indigo.css +0 -105
- package/src/css/themes/lime.css +0 -105
- package/src/css/themes/neutral.css +0 -105
- package/src/css/themes/orange.css +0 -105
- package/src/css/themes/pink.css +0 -105
- package/src/css/themes/purple.css +0 -105
- package/src/css/themes/red.css +0 -105
- package/src/css/themes/rose.css +0 -105
- package/src/css/themes/sky.css +0 -105
- package/src/css/themes/slate.css +0 -105
- package/src/css/themes/stone.css +0 -105
- package/src/css/themes/teal.css +0 -105
- package/src/css/themes/violet.css +0 -105
- package/src/css/themes/yellow.css +0 -105
- package/src/css/themes/zinc.css +0 -105
- package/src/hooks/use-animated-value.ts +0 -95
- package/src/hooks/use-copy-to-clipboard.ts +0 -58
- package/src/hooks/use-has-hydrated.ts +0 -22
- package/src/hooks/use-is-mobile.ts +0 -25
- package/src/hooks/use-latest.ts +0 -23
- package/src/hooks/use-media-query.ts +0 -69
- package/src/hooks/use-message-scroller-commands.ts +0 -351
- package/src/hooks/use-message-scroller-controller.ts +0 -733
- package/src/hooks/use-message-scroller-refs.ts +0 -163
- package/src/hooks/use-mutation-observer.ts +0 -51
- package/src/hooks/use-pagination.ts +0 -166
- package/src/index.ts +0 -751
- package/src/lib/message-scroller/geometry.ts +0 -401
- package/src/lib/message-scroller/stores.ts +0 -88
- package/src/lib/message-scroller/types.ts +0 -349
- package/src/lib/use-render.ts +0 -201
- package/src/lib/utils.ts +0 -5
- package/src/primitives/checkbox-group.tsx +0 -335
- package/src/primitives/input-number.tsx +0 -1030
- package/src/primitives/input.tsx +0 -221
- package/src/primitives/message-scroller.tsx +0 -414
- package/src/primitives/progress-circle.tsx +0 -489
- package/src/variants/alert.ts +0 -30
- package/src/variants/attachment.ts +0 -67
- package/src/variants/badge.ts +0 -35
- package/src/variants/bubble.ts +0 -75
- package/src/variants/button-group.ts +0 -32
- package/src/variants/button.ts +0 -51
- package/src/variants/empty.ts +0 -30
- package/src/variants/field.ts +0 -33
- package/src/variants/input-group.ts +0 -72
- package/src/variants/item.ts +0 -62
- package/src/variants/marker.ts +0 -34
- package/src/variants/navigation-menu.ts +0 -21
- package/src/variants/progress-circle.ts +0 -42
- package/src/variants/scroll-area.ts +0 -69
- package/src/variants/separator.ts +0 -36
- package/src/variants/sheet.ts +0 -33
- package/src/variants/sidebar.ts +0 -37
- package/src/variants/tabs.ts +0 -30
- package/src/variants/toggle.ts +0 -36
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import * as AvatarPrimitive from "radix-ui/avatar";
|
|
2
|
-
import type { ComponentProps, JSX } from "react";
|
|
3
|
-
|
|
4
|
-
import { cn } from "#/lib/utils";
|
|
5
|
-
|
|
6
|
-
// ── Component: Avatar ────────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @since 0.3.16-canary.0
|
|
10
|
-
*/
|
|
11
|
-
type AvatarProps = ComponentProps<typeof AvatarPrimitive.Root> & {
|
|
12
|
-
size?: "default" | "sm" | "lg";
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @since 0.3.16-canary.0
|
|
17
|
-
*/
|
|
18
|
-
function Avatar({ className, size = "default", ...props }: AvatarProps): JSX.Element {
|
|
19
|
-
return (
|
|
20
|
-
<AvatarPrimitive.Root
|
|
21
|
-
className={cn(
|
|
22
|
-
"group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",
|
|
23
|
-
className,
|
|
24
|
-
)}
|
|
25
|
-
data-size={size}
|
|
26
|
-
data-slot="avatar"
|
|
27
|
-
{...props}
|
|
28
|
-
/>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// ── Component: AvatarImage ───────────────────────────────────────────────────────────────────────────────────────────
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @since 0.3.16-canary.0
|
|
36
|
-
*/
|
|
37
|
-
type AvatarImageProps = ComponentProps<typeof AvatarPrimitive.Image>;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @since 0.3.16-canary.0
|
|
41
|
-
*/
|
|
42
|
-
function AvatarImage({ className, ...props }: AvatarImageProps): JSX.Element {
|
|
43
|
-
return (
|
|
44
|
-
<AvatarPrimitive.Image
|
|
45
|
-
className={cn("aspect-square size-full rounded-full object-cover", className)}
|
|
46
|
-
data-slot="avatar-image"
|
|
47
|
-
{...props}
|
|
48
|
-
/>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// ── Component: AvatarFallback ────────────────────────────────────────────────────────────────────────────────────────
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @since 0.3.16-canary.0
|
|
56
|
-
*/
|
|
57
|
-
type AvatarFallbackProps = ComponentProps<typeof AvatarPrimitive.Fallback>;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @since 0.3.16-canary.0
|
|
61
|
-
*/
|
|
62
|
-
function AvatarFallback({ className, ...props }: AvatarFallbackProps): JSX.Element {
|
|
63
|
-
return (
|
|
64
|
-
<AvatarPrimitive.Fallback
|
|
65
|
-
className={cn(
|
|
66
|
-
"flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
|
|
67
|
-
className,
|
|
68
|
-
)}
|
|
69
|
-
data-slot="avatar-fallback"
|
|
70
|
-
{...props}
|
|
71
|
-
/>
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// ── Component: AvatarBadge ───────────────────────────────────────────────────────────────────────────────────────────
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @since 0.3.16-canary.0
|
|
79
|
-
*/
|
|
80
|
-
type AvatarBadgeProps = ComponentProps<"span">;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @since 0.3.16-canary.0
|
|
84
|
-
*/
|
|
85
|
-
function AvatarBadge({ className, ...props }: AvatarBadgeProps): JSX.Element {
|
|
86
|
-
return (
|
|
87
|
-
<span
|
|
88
|
-
className={cn(
|
|
89
|
-
"absolute inset-e-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none",
|
|
90
|
-
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
91
|
-
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
92
|
-
"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",
|
|
93
|
-
className,
|
|
94
|
-
)}
|
|
95
|
-
data-slot="avatar-badge"
|
|
96
|
-
{...props}
|
|
97
|
-
/>
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// ── Component: AvatarGroup ───────────────────────────────────────────────────────────────────────────────────────────
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @since 0.3.16-canary.0
|
|
105
|
-
*/
|
|
106
|
-
type AvatarGroupProps = ComponentProps<"div">;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @since 0.3.16-canary.0
|
|
110
|
-
*/
|
|
111
|
-
function AvatarGroup({ className, ...props }: AvatarGroupProps): JSX.Element {
|
|
112
|
-
return (
|
|
113
|
-
<div
|
|
114
|
-
className={cn(
|
|
115
|
-
"group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background rtl:space-x-reverse",
|
|
116
|
-
className,
|
|
117
|
-
)}
|
|
118
|
-
data-slot="avatar-group"
|
|
119
|
-
{...props}
|
|
120
|
-
/>
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// ── Component: AvatarGroupCount ──────────────────────────────────────────────────────────────────────────────────────
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @since 0.3.16-canary.0
|
|
128
|
-
*/
|
|
129
|
-
type AvatarGroupCountProps = ComponentProps<"div">;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* @since 0.3.16-canary.0
|
|
133
|
-
*/
|
|
134
|
-
function AvatarGroupCount({ className, ...props }: AvatarGroupCountProps): JSX.Element {
|
|
135
|
-
return (
|
|
136
|
-
<div
|
|
137
|
-
className={cn(
|
|
138
|
-
"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",
|
|
139
|
-
className,
|
|
140
|
-
)}
|
|
141
|
-
data-slot="avatar-group-count"
|
|
142
|
-
{...props}
|
|
143
|
-
/>
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
148
|
-
|
|
149
|
-
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };
|
|
150
|
-
export type {
|
|
151
|
-
AvatarBadgeProps,
|
|
152
|
-
AvatarFallbackProps,
|
|
153
|
-
AvatarGroupCountProps,
|
|
154
|
-
AvatarGroupProps,
|
|
155
|
-
AvatarImageProps,
|
|
156
|
-
AvatarProps,
|
|
157
|
-
};
|
package/src/components/badge.tsx
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as Slot from "radix-ui/slot";
|
|
2
|
-
import type { ComponentProps, JSX } from "react";
|
|
3
|
-
|
|
4
|
-
import type { BadgeVariants } from "#/variants/badge";
|
|
5
|
-
import { badgeVariants } from "#/variants/badge";
|
|
6
|
-
|
|
7
|
-
// ── Component: Badge ─────────────────────────────────────────────────────────────────────────────────────────────────
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @since 0.3.16-canary.0
|
|
11
|
-
*/
|
|
12
|
-
interface BadgeProps extends ComponentProps<"span">, BadgeVariants {
|
|
13
|
-
asChild?: boolean;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @since 0.3.16-canary.0
|
|
18
|
-
*/
|
|
19
|
-
function Badge({ asChild = false, className, variant = "default", ...props }: BadgeProps): JSX.Element {
|
|
20
|
-
const Component = asChild ? Slot.Root : "span";
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<Component className={badgeVariants({ className, variant })} data-slot="badge" data-variant={variant} {...props} />
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
28
|
-
|
|
29
|
-
export { Badge };
|
|
30
|
-
|
|
31
|
-
export type { BadgeProps };
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
2
|
-
import * as Slot from "radix-ui/slot";
|
|
3
|
-
import type { ComponentProps, JSX } from "react";
|
|
4
|
-
|
|
5
|
-
import { cn } from "#/lib/utils";
|
|
6
|
-
|
|
7
|
-
// ── Component: Breadcrumb ────────────────────────────────────────────────────────────────────────────────────────────
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @since 0.3.16-canary.0
|
|
11
|
-
*/
|
|
12
|
-
type BreadcrumbProps = ComponentProps<"nav">;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @since 0.3.16-canary.0
|
|
16
|
-
*/
|
|
17
|
-
function Breadcrumb({ ...props }: BreadcrumbProps): JSX.Element {
|
|
18
|
-
return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// ── Component: BreadcrumbList ────────────────────────────────────────────────────────────────────────────────────────
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @since 0.3.16-canary.0
|
|
25
|
-
*/
|
|
26
|
-
type BreadcrumbListProps = ComponentProps<"ol">;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @since 0.3.16-canary.0
|
|
30
|
-
*/
|
|
31
|
-
function BreadcrumbList({ className, ...props }: BreadcrumbListProps): JSX.Element {
|
|
32
|
-
return (
|
|
33
|
-
<ol
|
|
34
|
-
className={cn("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground", className)}
|
|
35
|
-
data-slot="breadcrumb-list"
|
|
36
|
-
{...props}
|
|
37
|
-
/>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// ── Component: BreadcrumbItem ────────────────────────────────────────────────────────────────────────────────────────
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @since 0.3.16-canary.0
|
|
45
|
-
*/
|
|
46
|
-
type BreadcrumbItemProps = ComponentProps<"li">;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @since 0.3.16-canary.0
|
|
50
|
-
*/
|
|
51
|
-
function BreadcrumbItem({ className, ...props }: BreadcrumbItemProps): JSX.Element {
|
|
52
|
-
return <li className={cn("inline-flex items-center gap-1", className)} data-slot="breadcrumb-item" {...props} />;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// ── Component: BreadcrumbLink ────────────────────────────────────────────────────────────────────────────────────────
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @since 0.3.16-canary.0
|
|
59
|
-
*/
|
|
60
|
-
interface BreadcrumbLinkProps extends ComponentProps<"a"> {
|
|
61
|
-
asChild?: boolean;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @since 0.3.16-canary.0
|
|
66
|
-
*/
|
|
67
|
-
function BreadcrumbLink({ asChild, className, ...props }: BreadcrumbLinkProps): JSX.Element {
|
|
68
|
-
const Component = asChild ? Slot.Root : "a";
|
|
69
|
-
|
|
70
|
-
return (
|
|
71
|
-
<Component
|
|
72
|
-
className={cn("transition-colors hover:text-foreground", className)}
|
|
73
|
-
data-slot="breadcrumb-link"
|
|
74
|
-
{...props}
|
|
75
|
-
/>
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// ── Component: BreadcrumbPage ────────────────────────────────────────────────────────────────────────────────────────
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @since 0.3.16-canary.0
|
|
83
|
-
*/
|
|
84
|
-
type BreadcrumbPageProps = ComponentProps<"span">;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @since 0.3.16-canary.0
|
|
88
|
-
*/
|
|
89
|
-
function BreadcrumbPage({ className, ...props }: BreadcrumbPageProps): JSX.Element {
|
|
90
|
-
return (
|
|
91
|
-
<span
|
|
92
|
-
aria-current="page"
|
|
93
|
-
aria-disabled="true"
|
|
94
|
-
className={cn("font-normal text-foreground", className)}
|
|
95
|
-
data-slot="breadcrumb-page"
|
|
96
|
-
role="link"
|
|
97
|
-
{...props}
|
|
98
|
-
/>
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// ── Component: BreadcrumbSeparator ───────────────────────────────────────────────────────────────────────────────────
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @since 0.3.16-canary.0
|
|
106
|
-
*/
|
|
107
|
-
type BreadcrumbSeparatorProps = ComponentProps<"li">;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @since 0.3.16-canary.0
|
|
111
|
-
*/
|
|
112
|
-
function BreadcrumbSeparator({ children, className, ...props }: BreadcrumbSeparatorProps): JSX.Element {
|
|
113
|
-
return (
|
|
114
|
-
<li
|
|
115
|
-
aria-hidden="true"
|
|
116
|
-
className={cn("[&>svg]:size-3.5", className)}
|
|
117
|
-
data-slot="breadcrumb-separator"
|
|
118
|
-
role="presentation"
|
|
119
|
-
{...props}
|
|
120
|
-
>
|
|
121
|
-
{children ?? <ChevronRightIcon className="rtl:rotate-180" />}
|
|
122
|
-
</li>
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// ── Component: BreadcrumbEllipsis ────────────────────────────────────────────────────────────────────────────────────
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* @since 0.3.16-canary.0
|
|
130
|
-
*/
|
|
131
|
-
type BreadcrumbEllipsisProps = ComponentProps<"span">;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @since 0.3.16-canary.0
|
|
135
|
-
*/
|
|
136
|
-
function BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): JSX.Element {
|
|
137
|
-
return (
|
|
138
|
-
<span
|
|
139
|
-
aria-hidden="true"
|
|
140
|
-
className={cn("flex size-5 items-center justify-center [&>svg]:size-4", className)}
|
|
141
|
-
data-slot="breadcrumb-ellipsis"
|
|
142
|
-
role="presentation"
|
|
143
|
-
{...props}
|
|
144
|
-
>
|
|
145
|
-
<MoreHorizontalIcon />
|
|
146
|
-
<span className="sr-only">More</span>
|
|
147
|
-
</span>
|
|
148
|
-
);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
152
|
-
|
|
153
|
-
export {
|
|
154
|
-
Breadcrumb,
|
|
155
|
-
BreadcrumbEllipsis,
|
|
156
|
-
BreadcrumbItem,
|
|
157
|
-
BreadcrumbLink,
|
|
158
|
-
BreadcrumbList,
|
|
159
|
-
BreadcrumbPage,
|
|
160
|
-
BreadcrumbSeparator,
|
|
161
|
-
};
|
|
162
|
-
export type {
|
|
163
|
-
BreadcrumbEllipsisProps,
|
|
164
|
-
BreadcrumbItemProps,
|
|
165
|
-
BreadcrumbLinkProps,
|
|
166
|
-
BreadcrumbListProps,
|
|
167
|
-
BreadcrumbPageProps,
|
|
168
|
-
BreadcrumbProps,
|
|
169
|
-
BreadcrumbSeparatorProps,
|
|
170
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import * as Slot from "radix-ui/slot";
|
|
2
|
-
import type { ComponentProps, JSX } from "react";
|
|
3
|
-
|
|
4
|
-
import { cn } from "#/lib/utils";
|
|
5
|
-
import type { BubbleReactionsVariants, BubbleVariants } from "#/variants/bubble";
|
|
6
|
-
import { bubbleReactionsVariants, bubbleVariants } from "#/variants/bubble";
|
|
7
|
-
|
|
8
|
-
// ── Component: BubbleGroup ───────────────────────────────────────────────────────────────────────────────────────────
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Vertical stack of consecutive bubbles from one author.
|
|
12
|
-
*
|
|
13
|
-
* @since 0.5.0-canary.3
|
|
14
|
-
*/
|
|
15
|
-
type BubbleGroupProps = ComponentProps<"div">;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @since 0.5.0-canary.3
|
|
19
|
-
*/
|
|
20
|
-
function BubbleGroup({ className, ...props }: BubbleGroupProps): JSX.Element {
|
|
21
|
-
return <div className={cn("flex min-w-0 flex-col gap-2", className)} data-slot="bubble-group" {...props} />;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// ── Component: Bubble ────────────────────────────────────────────────────────────────────────────────────────────────
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Chat bubble wrapper. `variant` colors the content; `align` sets the side.
|
|
28
|
-
*
|
|
29
|
-
* @since 0.5.0-canary.3
|
|
30
|
-
*/
|
|
31
|
-
interface BubbleProps extends ComponentProps<"div">, BubbleVariants {
|
|
32
|
-
align?: "start" | "end";
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @since 0.5.0-canary.3
|
|
37
|
-
*/
|
|
38
|
-
function Bubble({ align = "start", className, variant = "default", ...props }: BubbleProps): JSX.Element {
|
|
39
|
-
return (
|
|
40
|
-
<div
|
|
41
|
-
className={bubbleVariants({ className, variant })}
|
|
42
|
-
data-align={align}
|
|
43
|
-
data-slot="bubble"
|
|
44
|
-
data-variant={variant}
|
|
45
|
-
{...props}
|
|
46
|
-
/>
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// ── Component: BubbleContent ─────────────────────────────────────────────────────────────────────────────────────────
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* The bubble's colored surface; render as a button/link with `asChild`.
|
|
54
|
-
*
|
|
55
|
-
* @since 0.5.0-canary.3
|
|
56
|
-
*/
|
|
57
|
-
interface BubbleContentProps extends ComponentProps<"div"> {
|
|
58
|
-
asChild?: boolean;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @since 0.5.0-canary.3
|
|
63
|
-
*/
|
|
64
|
-
function BubbleContent({ asChild = false, className, ...props }: BubbleContentProps): JSX.Element {
|
|
65
|
-
const Component = asChild ? Slot.Root : "div";
|
|
66
|
-
|
|
67
|
-
return (
|
|
68
|
-
<Component
|
|
69
|
-
className={cn(
|
|
70
|
-
"w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50",
|
|
71
|
-
className,
|
|
72
|
-
)}
|
|
73
|
-
data-slot="bubble-content"
|
|
74
|
-
{...props}
|
|
75
|
-
/>
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// ── Component: BubbleReactions ───────────────────────────────────────────────────────────────────────────────────────
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Reaction pill overlapping a bubble corner.
|
|
83
|
-
*
|
|
84
|
-
* @since 0.5.0-canary.3
|
|
85
|
-
*/
|
|
86
|
-
interface BubbleReactionsProps extends ComponentProps<"div">, BubbleReactionsVariants {}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @since 0.5.0-canary.3
|
|
90
|
-
*/
|
|
91
|
-
function BubbleReactions({ align = "end", className, side = "bottom", ...props }: BubbleReactionsProps): JSX.Element {
|
|
92
|
-
return (
|
|
93
|
-
<div
|
|
94
|
-
className={bubbleReactionsVariants({ align, className, side })}
|
|
95
|
-
data-align={align}
|
|
96
|
-
data-side={side}
|
|
97
|
-
data-slot="bubble-reactions"
|
|
98
|
-
{...props}
|
|
99
|
-
/>
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
104
|
-
|
|
105
|
-
export { Bubble, BubbleContent, BubbleGroup, BubbleReactions };
|
|
106
|
-
export type { BubbleContentProps, BubbleGroupProps, BubbleProps, BubbleReactionsProps };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import * as Slot from "radix-ui/slot";
|
|
2
|
-
import type { ComponentProps, JSX } from "react";
|
|
3
|
-
|
|
4
|
-
import { Separator } from "#/components/separator";
|
|
5
|
-
import { cn } from "#/lib/utils";
|
|
6
|
-
import type { ButtonGroupVariants } from "#/variants/button-group";
|
|
7
|
-
import { buttonGroupVariants } from "#/variants/button-group";
|
|
8
|
-
|
|
9
|
-
// ── Component: ButtonGroup ───────────────────────────────────────────────────────────────────────────────────────────
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @since 0.3.16-canary.0
|
|
13
|
-
*/
|
|
14
|
-
type ButtonGroupProps = ComponentProps<"div"> & ButtonGroupVariants;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @since 0.3.16-canary.0
|
|
18
|
-
*/
|
|
19
|
-
function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): JSX.Element {
|
|
20
|
-
return (
|
|
21
|
-
<div
|
|
22
|
-
className={buttonGroupVariants({ orientation, className })}
|
|
23
|
-
data-orientation={orientation}
|
|
24
|
-
data-slot="button-group"
|
|
25
|
-
role="group"
|
|
26
|
-
{...props}
|
|
27
|
-
/>
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// ── Component: ButtonGroupText ───────────────────────────────────────────────────────────────────────────────────────
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @since 0.3.16-canary.0
|
|
35
|
-
*/
|
|
36
|
-
interface ButtonGroupTextProps extends ComponentProps<"div"> {
|
|
37
|
-
asChild?: boolean;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @since 0.3.16-canary.0
|
|
42
|
-
*/
|
|
43
|
-
function ButtonGroupText({ asChild = false, className, ...props }: ButtonGroupTextProps): JSX.Element {
|
|
44
|
-
const Component = asChild ? Slot.Root : "div";
|
|
45
|
-
|
|
46
|
-
return (
|
|
47
|
-
<Component
|
|
48
|
-
className={cn(
|
|
49
|
-
"flex items-center gap-2 rounded-lg border bg-muted px-2.5 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
50
|
-
className,
|
|
51
|
-
)}
|
|
52
|
-
{...props}
|
|
53
|
-
/>
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// ── Component: ButtonGroupSeparator ──────────────────────────────────────────────────────────────────────────────────
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @since 0.3.16-canary.0
|
|
61
|
-
*/
|
|
62
|
-
type ButtonGroupSeparatorProps = ComponentProps<typeof Separator>;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @since 0.3.16-canary.0
|
|
66
|
-
*/
|
|
67
|
-
function ButtonGroupSeparator({
|
|
68
|
-
className,
|
|
69
|
-
orientation = "vertical",
|
|
70
|
-
...props
|
|
71
|
-
}: ButtonGroupSeparatorProps): JSX.Element {
|
|
72
|
-
return (
|
|
73
|
-
<Separator
|
|
74
|
-
className={cn(
|
|
75
|
-
"relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto",
|
|
76
|
-
className,
|
|
77
|
-
)}
|
|
78
|
-
data-slot="button-group-separator"
|
|
79
|
-
orientation={orientation}
|
|
80
|
-
{...props}
|
|
81
|
-
/>
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
86
|
-
|
|
87
|
-
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText };
|
|
88
|
-
|
|
89
|
-
export type { ButtonGroupProps, ButtonGroupSeparatorProps, ButtonGroupTextProps };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as Slot from "radix-ui/slot";
|
|
2
|
-
import type { ComponentProps, JSX } from "react";
|
|
3
|
-
|
|
4
|
-
import type { ButtonVariants } from "#/variants/button";
|
|
5
|
-
import { buttonVariants } from "#/variants/button";
|
|
6
|
-
|
|
7
|
-
// ── Component: Button ────────────────────────────────────────────────────────────────────────────────────────────────
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @since 0.3.16-canary.0
|
|
11
|
-
*/
|
|
12
|
-
type ButtonProps = ComponentProps<"button"> &
|
|
13
|
-
ButtonVariants & {
|
|
14
|
-
asChild?: boolean;
|
|
15
|
-
type?: ComponentProps<"button">["type"];
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @since 0.3.16-canary.0
|
|
20
|
-
*/
|
|
21
|
-
function Button({ asChild = false, className, size, type = "button", variant, ...props }: ButtonProps): JSX.Element {
|
|
22
|
-
const Comp = asChild ? Slot.Root : "button";
|
|
23
|
-
|
|
24
|
-
if (asChild) {
|
|
25
|
-
return (
|
|
26
|
-
<Comp
|
|
27
|
-
className={buttonVariants({ className, size, variant })}
|
|
28
|
-
data-size={size}
|
|
29
|
-
data-slot="button"
|
|
30
|
-
data-variant={variant}
|
|
31
|
-
{...props}
|
|
32
|
-
/>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
<button
|
|
38
|
-
className={buttonVariants({ className, size, variant })}
|
|
39
|
-
data-size={size}
|
|
40
|
-
data-slot="button"
|
|
41
|
-
data-variant={variant}
|
|
42
|
-
type={type}
|
|
43
|
-
{...props}
|
|
44
|
-
/>
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
49
|
-
|
|
50
|
-
export { Button };
|
|
51
|
-
export type { ButtonProps };
|