@codefast/ui 0.9.0 → 0.9.2
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 +30 -0
- package/LICENSE +1 -1
- 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 +6 -160
- 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,32 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: ButtonGroup ─────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const buttonGroupVariants = tv({
|
|
10
|
-
base: "group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
|
|
11
|
-
defaultVariants: {
|
|
12
|
-
orientation: "horizontal",
|
|
13
|
-
},
|
|
14
|
-
variants: {
|
|
15
|
-
orientation: {
|
|
16
|
-
horizontal:
|
|
17
|
-
"[&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-e-lg!",
|
|
18
|
-
vertical:
|
|
19
|
-
"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @since 0.3.16-canary.0
|
|
26
|
-
*/
|
|
27
|
-
type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;
|
|
28
|
-
|
|
29
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
30
|
-
|
|
31
|
-
export { buttonGroupVariants };
|
|
32
|
-
export type { ButtonGroupVariants };
|
package/src/variants/button.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: Button ──────────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const buttonVariants = tv({
|
|
10
|
-
base: "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
11
|
-
defaultVariants: {
|
|
12
|
-
size: "default",
|
|
13
|
-
variant: "default",
|
|
14
|
-
},
|
|
15
|
-
variants: {
|
|
16
|
-
size: {
|
|
17
|
-
default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2", // 32px
|
|
18
|
-
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3", // 24px
|
|
19
|
-
sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5", // 28px
|
|
20
|
-
lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2", // 36px
|
|
21
|
-
|
|
22
|
-
icon: "size-8", // 32px
|
|
23
|
-
"icon-xs":
|
|
24
|
-
"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3", // 24px
|
|
25
|
-
"icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg", // 28px
|
|
26
|
-
"icon-lg": "size-9", // 36px
|
|
27
|
-
},
|
|
28
|
-
variant: {
|
|
29
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
30
|
-
destructive:
|
|
31
|
-
"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
|
|
32
|
-
ghost:
|
|
33
|
-
"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
|
|
34
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
35
|
-
outline:
|
|
36
|
-
"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
|
|
37
|
-
secondary:
|
|
38
|
-
"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @since 0.3.16-canary.0
|
|
45
|
-
*/
|
|
46
|
-
type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
47
|
-
|
|
48
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
49
|
-
|
|
50
|
-
export { buttonVariants };
|
|
51
|
-
export type { ButtonVariants };
|
package/src/variants/empty.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: EmptyMedia ──────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const emptyMediaVariants = tv({
|
|
10
|
-
base: "mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
11
|
-
defaultVariants: {
|
|
12
|
-
variant: "default",
|
|
13
|
-
},
|
|
14
|
-
variants: {
|
|
15
|
-
variant: {
|
|
16
|
-
default: "bg-transparent",
|
|
17
|
-
icon: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @since 0.3.16-canary.0
|
|
24
|
-
*/
|
|
25
|
-
type EmptyMediaVariants = VariantProps<typeof emptyMediaVariants>;
|
|
26
|
-
|
|
27
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
28
|
-
|
|
29
|
-
export { emptyMediaVariants };
|
|
30
|
-
export type { EmptyMediaVariants };
|
package/src/variants/field.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: Field ───────────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const fieldVariants = tv({
|
|
10
|
-
base: "group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
|
|
11
|
-
defaultVariants: {
|
|
12
|
-
orientation: "vertical",
|
|
13
|
-
},
|
|
14
|
-
variants: {
|
|
15
|
-
orientation: {
|
|
16
|
-
horizontal:
|
|
17
|
-
"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-0.5",
|
|
18
|
-
responsive:
|
|
19
|
-
"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-0.5",
|
|
20
|
-
vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @since 0.3.16-canary.0
|
|
27
|
-
*/
|
|
28
|
-
type FieldVariants = VariantProps<typeof fieldVariants>;
|
|
29
|
-
|
|
30
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
31
|
-
|
|
32
|
-
export { fieldVariants };
|
|
33
|
-
export type { FieldVariants };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: InputGroup ──────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const inputGroupVariants = tv({
|
|
10
|
-
base: "group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5",
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
// ── Variant: InputGroupAddon ─────────────────────────────────────────────────────────────────────────────────────────
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @since 0.3.16-canary.0
|
|
17
|
-
*/
|
|
18
|
-
const inputGroupAddonVariants = tv({
|
|
19
|
-
base: "flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-disabled/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-3px)] [&>svg:not([class*='size-'])]:size-4",
|
|
20
|
-
defaultVariants: {
|
|
21
|
-
align: "inline-start",
|
|
22
|
-
},
|
|
23
|
-
variants: {
|
|
24
|
-
align: {
|
|
25
|
-
"block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2",
|
|
26
|
-
"block-start":
|
|
27
|
-
"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
|
|
28
|
-
"inline-end": "order-last pe-2 has-[>button]:me-[-0.3rem] has-[>kbd]:me-[-0.15rem]",
|
|
29
|
-
"inline-start": "order-first ps-2 has-[>button]:ms-[-0.3rem] has-[>kbd]:ms-[-0.15rem]",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
// ── Variant: InputGroupButton ────────────────────────────────────────────────────────────────────────────────────────
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @since 0.3.16-canary.0
|
|
38
|
-
*/
|
|
39
|
-
const inputGroupButtonVariants = tv({
|
|
40
|
-
base: "flex items-center gap-2 text-sm shadow-none",
|
|
41
|
-
defaultVariants: {
|
|
42
|
-
size: "xs",
|
|
43
|
-
},
|
|
44
|
-
variants: {
|
|
45
|
-
size: {
|
|
46
|
-
"icon-xs": "size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0",
|
|
47
|
-
"icon-sm": "size-8 p-0 has-[>svg]:p-0",
|
|
48
|
-
sm: "",
|
|
49
|
-
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @since 0.3.16-canary.0
|
|
56
|
-
*/
|
|
57
|
-
type InputGroupVariants = VariantProps<typeof inputGroupVariants>;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @since 0.3.16-canary.0
|
|
61
|
-
*/
|
|
62
|
-
type InputGroupAddonVariants = VariantProps<typeof inputGroupAddonVariants>;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @since 0.3.16-canary.0
|
|
66
|
-
*/
|
|
67
|
-
type InputGroupButtonVariants = VariantProps<typeof inputGroupButtonVariants>;
|
|
68
|
-
|
|
69
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
70
|
-
|
|
71
|
-
export { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants };
|
|
72
|
-
export type { InputGroupAddonVariants, InputGroupButtonVariants, InputGroupVariants };
|
package/src/variants/item.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: Item ────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const itemVariants = tv({
|
|
10
|
-
base: "group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted",
|
|
11
|
-
defaultVariants: {
|
|
12
|
-
size: "default",
|
|
13
|
-
variant: "default",
|
|
14
|
-
},
|
|
15
|
-
variants: {
|
|
16
|
-
size: {
|
|
17
|
-
default: "gap-2.5 px-3 py-2.5",
|
|
18
|
-
sm: "gap-2.5 px-3 py-2.5",
|
|
19
|
-
xs: "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0",
|
|
20
|
-
},
|
|
21
|
-
variant: {
|
|
22
|
-
default: "border-transparent",
|
|
23
|
-
muted: "border-transparent bg-muted/50",
|
|
24
|
-
outline: "border-border",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
// ── Variant: ItemMedia ───────────────────────────────────────────────────────────────────────────────────────────────
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @since 0.3.16-canary.0
|
|
33
|
-
*/
|
|
34
|
-
const itemMediaVariants = tv({
|
|
35
|
-
base: "flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none",
|
|
36
|
-
defaultVariants: {
|
|
37
|
-
variant: "default",
|
|
38
|
-
},
|
|
39
|
-
variants: {
|
|
40
|
-
variant: {
|
|
41
|
-
default: "bg-transparent",
|
|
42
|
-
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
43
|
-
image:
|
|
44
|
-
"size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @since 0.3.16-canary.0
|
|
51
|
-
*/
|
|
52
|
-
type ItemVariants = VariantProps<typeof itemVariants>;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @since 0.3.16-canary.0
|
|
56
|
-
*/
|
|
57
|
-
type ItemMediaVariants = VariantProps<typeof itemMediaVariants>;
|
|
58
|
-
|
|
59
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
60
|
-
|
|
61
|
-
export { itemMediaVariants, itemVariants };
|
|
62
|
-
export type { ItemMediaVariants, ItemVariants };
|
package/src/variants/marker.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: Marker ──────────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Inline chat divider — plain label, centered separator rule, or bottom border.
|
|
8
|
-
*
|
|
9
|
-
* @since 0.5.0-canary.3
|
|
10
|
-
*/
|
|
11
|
-
const markerVariants = tv({
|
|
12
|
-
base: "group/marker relative flex min-h-4 w-full items-center gap-2 text-start text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground",
|
|
13
|
-
defaultVariants: {
|
|
14
|
-
variant: "default",
|
|
15
|
-
},
|
|
16
|
-
variants: {
|
|
17
|
-
variant: {
|
|
18
|
-
default: "",
|
|
19
|
-
separator:
|
|
20
|
-
"before:me-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ms-1 after:h-px after:min-w-0 after:flex-1 after:bg-border",
|
|
21
|
-
border: "border-b border-border pb-2",
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @since 0.5.0-canary.3
|
|
28
|
-
*/
|
|
29
|
-
type MarkerVariants = VariantProps<typeof markerVariants>;
|
|
30
|
-
|
|
31
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
32
|
-
|
|
33
|
-
export { markerVariants };
|
|
34
|
-
export type { MarkerVariants };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Style: NavigationMenuTrigger ─────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const navigationMenuTriggerVariants = tv({
|
|
10
|
-
base: "group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg 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/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted",
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @since 0.3.16-canary.0
|
|
15
|
-
*/
|
|
16
|
-
type NavigationMenuTriggerVariants = VariantProps<typeof navigationMenuTriggerVariants>;
|
|
17
|
-
|
|
18
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
19
|
-
|
|
20
|
-
export { navigationMenuTriggerVariants };
|
|
21
|
-
export type { NavigationMenuTriggerVariants };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: ProgressCircle ──────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const progressCircleVariants = tv({
|
|
10
|
-
defaultVariants: { size: "md", thickness: "regular", variant: "default" },
|
|
11
|
-
slots: {
|
|
12
|
-
indicator: "origin-center",
|
|
13
|
-
label: "absolute inset-0 flex items-center justify-center text-xs font-medium",
|
|
14
|
-
root: "relative inline-flex items-center justify-center",
|
|
15
|
-
svg: "size-full",
|
|
16
|
-
track: "origin-center",
|
|
17
|
-
},
|
|
18
|
-
variants: {
|
|
19
|
-
size: {
|
|
20
|
-
sm: { label: "text-[0.625rem]" },
|
|
21
|
-
md: { label: "text-xs" },
|
|
22
|
-
lg: { label: "text-sm" },
|
|
23
|
-
xl: { label: "text-base" },
|
|
24
|
-
"2xl": { label: "text-lg" },
|
|
25
|
-
},
|
|
26
|
-
thickness: { regular: {}, thick: {}, thin: {} },
|
|
27
|
-
variant: {
|
|
28
|
-
default: { indicator: "text-primary", track: "text-primary/20" },
|
|
29
|
-
destructive: { indicator: "text-destructive", track: "text-destructive/20" },
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @since 0.3.16-canary.0
|
|
36
|
-
*/
|
|
37
|
-
type ProgressCircleVariants = VariantProps<typeof progressCircleVariants>;
|
|
38
|
-
|
|
39
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
40
|
-
|
|
41
|
-
export { progressCircleVariants };
|
|
42
|
-
export type { ProgressCircleVariants };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: ScrollAreaScrollbar ─────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const scrollAreaScrollbarVariants = tv({
|
|
10
|
-
base: "flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent",
|
|
11
|
-
compoundVariants: [
|
|
12
|
-
{
|
|
13
|
-
className: "w-1.5",
|
|
14
|
-
orientation: "vertical",
|
|
15
|
-
size: "sm",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
className: "w-2",
|
|
19
|
-
orientation: "vertical",
|
|
20
|
-
size: "md",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
className: "w-2.5",
|
|
24
|
-
orientation: "vertical",
|
|
25
|
-
size: "lg",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
className: "h-1.5",
|
|
29
|
-
orientation: "horizontal",
|
|
30
|
-
size: "sm",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
className: "h-2",
|
|
34
|
-
orientation: "horizontal",
|
|
35
|
-
size: "md",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
className: "h-2.5",
|
|
39
|
-
orientation: "horizontal",
|
|
40
|
-
size: "lg",
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
defaultVariants: {
|
|
44
|
-
orientation: "vertical",
|
|
45
|
-
size: "md",
|
|
46
|
-
},
|
|
47
|
-
variants: {
|
|
48
|
-
orientation: {
|
|
49
|
-
horizontal: "",
|
|
50
|
-
vertical: "",
|
|
51
|
-
},
|
|
52
|
-
size: {
|
|
53
|
-
none: "",
|
|
54
|
-
sm: "",
|
|
55
|
-
md: "",
|
|
56
|
-
lg: "",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @since 0.3.16-canary.0
|
|
63
|
-
*/
|
|
64
|
-
type ScrollAreaScrollbarVariants = VariantProps<typeof scrollAreaScrollbarVariants>;
|
|
65
|
-
|
|
66
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
67
|
-
|
|
68
|
-
export { scrollAreaScrollbarVariants };
|
|
69
|
-
export type { ScrollAreaScrollbarVariants };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: Separator ───────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const separatorVariants = tv({
|
|
10
|
-
base: "shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
|
|
11
|
-
defaultVariants: {
|
|
12
|
-
align: "center",
|
|
13
|
-
orientation: "horizontal",
|
|
14
|
-
},
|
|
15
|
-
variants: {
|
|
16
|
-
align: {
|
|
17
|
-
center: "relative flex items-center justify-center",
|
|
18
|
-
end: "relative flex items-center justify-end",
|
|
19
|
-
start: "relative flex items-center justify-start",
|
|
20
|
-
},
|
|
21
|
-
orientation: {
|
|
22
|
-
horizontal: "",
|
|
23
|
-
vertical: "",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @since 0.3.16-canary.0
|
|
30
|
-
*/
|
|
31
|
-
type SeparatorVariants = VariantProps<typeof separatorVariants>;
|
|
32
|
-
|
|
33
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
34
|
-
|
|
35
|
-
export { separatorVariants };
|
|
36
|
-
export type { SeparatorVariants };
|
package/src/variants/sheet.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: SheetContent ────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const sheetContentVariants = tv({
|
|
10
|
-
base: "fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition ease-ui data-open:animate-in data-open:animation-duration-panel-in data-open:fade-in-0 data-closed:animate-out data-closed:ease-exit data-closed:animation-duration-panel-out data-closed:fade-out-0",
|
|
11
|
-
defaultVariants: {
|
|
12
|
-
side: "right",
|
|
13
|
-
},
|
|
14
|
-
variants: {
|
|
15
|
-
side: {
|
|
16
|
-
bottom: "inset-x-0 bottom-0 h-auto border-t data-open:slide-in-from-bottom-10 data-closed:slide-out-to-bottom-10",
|
|
17
|
-
left: "inset-y-0 inset-s-0 h-full w-3/4 border-e sm:max-w-sm data-open:slide-in-from-left-10 data-closed:slide-out-to-left-10",
|
|
18
|
-
right:
|
|
19
|
-
"inset-y-0 inset-e-0 h-full w-3/4 border-s sm:max-w-sm data-open:slide-in-from-right-10 data-closed:slide-out-to-right-10",
|
|
20
|
-
top: "inset-x-0 top-0 h-auto border-b data-open:slide-in-from-top-10 data-closed:slide-out-to-top-10",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @since 0.3.16-canary.0
|
|
27
|
-
*/
|
|
28
|
-
type SheetContentVariants = VariantProps<typeof sheetContentVariants>;
|
|
29
|
-
|
|
30
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
31
|
-
|
|
32
|
-
export { sheetContentVariants };
|
|
33
|
-
export type { SheetContentVariants };
|
package/src/variants/sidebar.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: SidebarMenuButton ───────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const sidebarMenuButtonVariants = tv({
|
|
10
|
-
base: "peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",
|
|
11
|
-
defaultVariants: {
|
|
12
|
-
size: "default",
|
|
13
|
-
variant: "default",
|
|
14
|
-
},
|
|
15
|
-
variants: {
|
|
16
|
-
size: {
|
|
17
|
-
default: "h-8 text-sm",
|
|
18
|
-
sm: "h-7 text-xs",
|
|
19
|
-
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!",
|
|
20
|
-
},
|
|
21
|
-
variant: {
|
|
22
|
-
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
23
|
-
outline:
|
|
24
|
-
"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @since 0.3.16-canary.0
|
|
31
|
-
*/
|
|
32
|
-
type SidebarMenuButtonVariants = VariantProps<typeof sidebarMenuButtonVariants>;
|
|
33
|
-
|
|
34
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
35
|
-
|
|
36
|
-
export { sidebarMenuButtonVariants };
|
|
37
|
-
export type { SidebarMenuButtonVariants };
|
package/src/variants/tabs.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: TabsList ────────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const tabsListVariants = tv({
|
|
10
|
-
base: "group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-0.75 text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",
|
|
11
|
-
defaultVariants: {
|
|
12
|
-
variant: "default",
|
|
13
|
-
},
|
|
14
|
-
variants: {
|
|
15
|
-
variant: {
|
|
16
|
-
default: "bg-muted",
|
|
17
|
-
line: "gap-1 bg-transparent",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @since 0.3.16-canary.0
|
|
24
|
-
*/
|
|
25
|
-
type TabsListVariants = VariantProps<typeof tabsListVariants>;
|
|
26
|
-
|
|
27
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
28
|
-
|
|
29
|
-
export { tabsListVariants };
|
|
30
|
-
export type { TabsListVariants };
|
package/src/variants/toggle.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from "#/lib/utils";
|
|
2
|
-
import { tv } from "#/lib/utils";
|
|
3
|
-
|
|
4
|
-
// ── Variant: Toggle ──────────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
const toggleVariants = tv({
|
|
10
|
-
base: "group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
11
|
-
defaultVariants: {
|
|
12
|
-
size: "default",
|
|
13
|
-
variant: "default",
|
|
14
|
-
},
|
|
15
|
-
variants: {
|
|
16
|
-
size: {
|
|
17
|
-
default: "h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2",
|
|
18
|
-
sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
19
|
-
lg: "h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2",
|
|
20
|
-
},
|
|
21
|
-
variant: {
|
|
22
|
-
default: "bg-transparent",
|
|
23
|
-
outline: "border border-input bg-transparent shadow-xs hover:bg-muted",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @since 0.3.16-canary.0
|
|
30
|
-
*/
|
|
31
|
-
type ToggleVariants = VariantProps<typeof toggleVariants>;
|
|
32
|
-
|
|
33
|
-
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
34
|
-
|
|
35
|
-
export { toggleVariants };
|
|
36
|
-
export type { ToggleVariants };
|