@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,105 +0,0 @@
|
|
|
1
|
-
/* -------------------------------------------------------------------------
|
|
2
|
-
* Violet theme
|
|
3
|
-
*
|
|
4
|
-
* Color tokens for the violet palette across the light (`:root`) and
|
|
5
|
-
* `.dark` variants. Trailing comments note the source
|
|
6
|
-
* palette swatch for each value.
|
|
7
|
-
* ------------------------------------------------------------------------- */
|
|
8
|
-
|
|
9
|
-
:root {
|
|
10
|
-
/* ── Surfaces & semantic colors ────────────────────────────────────────────────────────────────────────────────── */
|
|
11
|
-
|
|
12
|
-
--background: oklch(1 0 0); /* --color-zinc-50 */
|
|
13
|
-
--foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
14
|
-
|
|
15
|
-
--primary: oklch(0.541 0.281 293.009); /* --color-violet-600 */
|
|
16
|
-
--primary-foreground: oklch(0.969 0.016 293.756); /* --color-violet-50 */
|
|
17
|
-
|
|
18
|
-
--secondary: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
19
|
-
--secondary-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
20
|
-
|
|
21
|
-
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
|
-
|
|
23
|
-
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.552 0.016 285.938); /* --color-zinc-500 */
|
|
25
|
-
|
|
26
|
-
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
|
-
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
28
|
-
|
|
29
|
-
--popover: oklch(1 0 0); /* --color-zinc-50 */
|
|
30
|
-
--popover-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
31
|
-
|
|
32
|
-
--card: oklch(1 0 0); /* --color-zinc-50 */
|
|
33
|
-
--card-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
34
|
-
|
|
35
|
-
/* ── Form & focus ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
36
|
-
|
|
37
|
-
--border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
38
|
-
--input: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
39
|
-
--ring: oklch(0.702 0.183 293.541); /* --color-violet-400 */
|
|
40
|
-
|
|
41
|
-
/* ── Sidebar ───────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
42
|
-
|
|
43
|
-
--sidebar: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
44
|
-
--sidebar-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
45
|
-
--sidebar-primary: oklch(0.541 0.281 293.009); /* --color-violet-600 */
|
|
46
|
-
--sidebar-primary-foreground: oklch(0.969 0.016 293.756); /* --color-violet-50 */
|
|
47
|
-
--sidebar-accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
48
|
-
--sidebar-accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
49
|
-
--sidebar-border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
50
|
-
--sidebar-ring: oklch(0.702 0.183 293.541); /* --color-violet-400 */
|
|
51
|
-
|
|
52
|
-
/* ── Charts ────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
53
|
-
|
|
54
|
-
--chart-1: oklch(0.811 0.111 293.571); /* --color-violet-300 */
|
|
55
|
-
--chart-2: oklch(0.606 0.25 292.717); /* --color-violet-500 */
|
|
56
|
-
--chart-3: oklch(0.541 0.281 293.009); /* --color-violet-600 */
|
|
57
|
-
--chart-4: oklch(0.491 0.27 292.581); /* --color-violet-700 */
|
|
58
|
-
--chart-5: oklch(0.432 0.232 292.759); /* --color-violet-800 */
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.dark {
|
|
62
|
-
/* Dark variant — overrides the light tokens above. */
|
|
63
|
-
|
|
64
|
-
--background: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
65
|
-
--foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
66
|
-
|
|
67
|
-
--primary: oklch(0.606 0.25 292.717); /* --color-violet-500 */
|
|
68
|
-
--primary-foreground: oklch(0.969 0.016 293.756); /* --color-violet-50 */
|
|
69
|
-
|
|
70
|
-
--secondary: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
71
|
-
--secondary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
72
|
-
|
|
73
|
-
--destructive: oklch(0.704 0.191 22.216); /* --color-red-400 */
|
|
74
|
-
|
|
75
|
-
--muted: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
76
|
-
--muted-foreground: oklch(0.705 0.015 286.067); /* --color-zinc-400 */
|
|
77
|
-
|
|
78
|
-
--accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
79
|
-
--accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
80
|
-
|
|
81
|
-
--popover: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
82
|
-
--popover-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
83
|
-
|
|
84
|
-
--card: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
85
|
-
--card-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
86
|
-
|
|
87
|
-
--border: oklch(1 0 0 / 10%); /* --color-white */
|
|
88
|
-
--input: oklch(1 0 0 / 15%); /* --color-white */
|
|
89
|
-
--ring: oklch(0.38 0.189 293.745); /* --color-violet-900 */
|
|
90
|
-
|
|
91
|
-
--sidebar: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
92
|
-
--sidebar-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
93
|
-
--sidebar-primary: oklch(0.606 0.25 292.717); /* --color-violet-500 */
|
|
94
|
-
--sidebar-primary-foreground: oklch(0.969 0.016 293.756); /* --color-violet-50 */
|
|
95
|
-
--sidebar-accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
96
|
-
--sidebar-accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
97
|
-
--sidebar-border: oklch(1 0 0 / 10%); /* --color-white */
|
|
98
|
-
--sidebar-ring: oklch(0.38 0.189 293.745); /* --color-violet-900 */
|
|
99
|
-
|
|
100
|
-
--chart-1: oklch(0.811 0.111 293.571); /* --color-violet-300 */
|
|
101
|
-
--chart-2: oklch(0.606 0.25 292.717); /* --color-violet-500 */
|
|
102
|
-
--chart-3: oklch(0.541 0.281 293.009); /* --color-violet-600 */
|
|
103
|
-
--chart-4: oklch(0.491 0.27 292.581); /* --color-violet-700 */
|
|
104
|
-
--chart-5: oklch(0.432 0.232 292.759); /* --color-violet-800 */
|
|
105
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/* -------------------------------------------------------------------------
|
|
2
|
-
* Yellow theme
|
|
3
|
-
*
|
|
4
|
-
* Color tokens for the yellow palette across the light (`:root`) and
|
|
5
|
-
* `.dark` variants. Trailing comments note the source
|
|
6
|
-
* palette swatch for each value.
|
|
7
|
-
* ------------------------------------------------------------------------- */
|
|
8
|
-
|
|
9
|
-
:root {
|
|
10
|
-
/* ── Surfaces & semantic colors ────────────────────────────────────────────────────────────────────────────────── */
|
|
11
|
-
|
|
12
|
-
--background: oklch(1 0 0); /* --color-zinc-50 */
|
|
13
|
-
--foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
14
|
-
|
|
15
|
-
--primary: oklch(0.681 0.162 75.834); /* --color-yellow-600 */
|
|
16
|
-
--primary-foreground: oklch(0.987 0.026 102.212); /* --color-yellow-50 */
|
|
17
|
-
|
|
18
|
-
--secondary: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
19
|
-
--secondary-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
20
|
-
|
|
21
|
-
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
|
-
|
|
23
|
-
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.552 0.016 285.938); /* --color-zinc-500 */
|
|
25
|
-
|
|
26
|
-
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
|
-
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
28
|
-
|
|
29
|
-
--popover: oklch(1 0 0); /* --color-zinc-50 */
|
|
30
|
-
--popover-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
31
|
-
|
|
32
|
-
--card: oklch(1 0 0); /* --color-zinc-50 */
|
|
33
|
-
--card-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
34
|
-
|
|
35
|
-
/* ── Form & focus ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
36
|
-
|
|
37
|
-
--border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
38
|
-
--input: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
39
|
-
--ring: oklch(0.852 0.199 91.936); /* --color-yellow-400 */
|
|
40
|
-
|
|
41
|
-
/* ── Sidebar ───────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
42
|
-
|
|
43
|
-
--sidebar: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
44
|
-
--sidebar-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
45
|
-
--sidebar-primary: oklch(0.681 0.162 75.834); /* --color-yellow-600 */
|
|
46
|
-
--sidebar-primary-foreground: oklch(0.987 0.026 102.212); /* --color-yellow-50 */
|
|
47
|
-
--sidebar-accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
48
|
-
--sidebar-accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
49
|
-
--sidebar-border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
50
|
-
--sidebar-ring: oklch(0.852 0.199 91.936); /* --color-yellow-400 */
|
|
51
|
-
|
|
52
|
-
/* ── Charts ────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
53
|
-
|
|
54
|
-
--chart-1: oklch(0.905 0.182 98.111); /* --color-yellow-300 */
|
|
55
|
-
--chart-2: oklch(0.795 0.184 86.047); /* --color-yellow-500 */
|
|
56
|
-
--chart-3: oklch(0.681 0.162 75.834); /* --color-yellow-600 */
|
|
57
|
-
--chart-4: oklch(0.554 0.135 66.442); /* --color-yellow-700 */
|
|
58
|
-
--chart-5: oklch(0.476 0.114 61.907); /* --color-yellow-800 */
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.dark {
|
|
62
|
-
/* Dark variant — overrides the light tokens above. */
|
|
63
|
-
|
|
64
|
-
--background: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
65
|
-
--foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
66
|
-
|
|
67
|
-
--primary: oklch(0.795 0.184 86.047); /* --color-yellow-500 */
|
|
68
|
-
--primary-foreground: oklch(0.421 0.095 57.708); /* --color-yellow-900 */
|
|
69
|
-
|
|
70
|
-
--secondary: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
71
|
-
--secondary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
72
|
-
|
|
73
|
-
--destructive: oklch(0.704 0.191 22.216); /* --color-red-400 */
|
|
74
|
-
|
|
75
|
-
--muted: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
76
|
-
--muted-foreground: oklch(0.705 0.015 286.067); /* --color-zinc-400 */
|
|
77
|
-
|
|
78
|
-
--accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
79
|
-
--accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
80
|
-
|
|
81
|
-
--popover: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
82
|
-
--popover-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
83
|
-
|
|
84
|
-
--card: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
85
|
-
--card-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
86
|
-
|
|
87
|
-
--border: oklch(1 0 0 / 10%); /* --color-white */
|
|
88
|
-
--input: oklch(1 0 0 / 15%); /* --color-white */
|
|
89
|
-
--ring: oklch(0.421 0.095 57.708); /* --color-yellow-900 */
|
|
90
|
-
|
|
91
|
-
--sidebar: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
92
|
-
--sidebar-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
93
|
-
--sidebar-primary: oklch(0.795 0.184 86.047); /* --color-yellow-500 */
|
|
94
|
-
--sidebar-primary-foreground: oklch(0.987 0.026 102.212); /* --color-yellow-50 */
|
|
95
|
-
--sidebar-accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
96
|
-
--sidebar-accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
97
|
-
--sidebar-border: oklch(1 0 0 / 10%); /* --color-white */
|
|
98
|
-
--sidebar-ring: oklch(0.421 0.095 57.708); /* --color-yellow-900 */
|
|
99
|
-
|
|
100
|
-
--chart-1: oklch(0.905 0.182 98.111); /* --color-yellow-300 */
|
|
101
|
-
--chart-2: oklch(0.795 0.184 86.047); /* --color-yellow-500 */
|
|
102
|
-
--chart-3: oklch(0.681 0.162 75.834); /* --color-yellow-600 */
|
|
103
|
-
--chart-4: oklch(0.554 0.135 66.442); /* --color-yellow-700 */
|
|
104
|
-
--chart-5: oklch(0.476 0.114 61.907); /* --color-yellow-800 */
|
|
105
|
-
}
|
package/src/css/themes/zinc.css
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/* -------------------------------------------------------------------------
|
|
2
|
-
* Zinc theme
|
|
3
|
-
*
|
|
4
|
-
* Color tokens for the zinc palette across the light (`:root`) and
|
|
5
|
-
* `.dark` variants. Trailing comments note the source
|
|
6
|
-
* palette swatch for each value.
|
|
7
|
-
* ------------------------------------------------------------------------- */
|
|
8
|
-
|
|
9
|
-
:root {
|
|
10
|
-
/* ── Surfaces & semantic colors ────────────────────────────────────────────────────────────────────────────────── */
|
|
11
|
-
|
|
12
|
-
--background: oklch(1 0 0); /* --color-zinc-50 */
|
|
13
|
-
--foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
14
|
-
|
|
15
|
-
--primary: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
16
|
-
--primary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
17
|
-
|
|
18
|
-
--secondary: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
19
|
-
--secondary-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
20
|
-
|
|
21
|
-
--destructive: oklch(0.577 0.245 27.325); /* --color-red-600 */
|
|
22
|
-
|
|
23
|
-
--muted: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
24
|
-
--muted-foreground: oklch(0.552 0.016 285.938); /* --color-zinc-500 */
|
|
25
|
-
|
|
26
|
-
--accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
27
|
-
--accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
28
|
-
|
|
29
|
-
--popover: oklch(1 0 0); /* --color-zinc-50 */
|
|
30
|
-
--popover-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
31
|
-
|
|
32
|
-
--card: oklch(1 0 0); /* --color-zinc-50 */
|
|
33
|
-
--card-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
34
|
-
|
|
35
|
-
/* ── Form & focus ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
36
|
-
|
|
37
|
-
--border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
38
|
-
--input: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
39
|
-
--ring: oklch(0.705 0.015 286.067); /* --color-zinc-400 */
|
|
40
|
-
|
|
41
|
-
/* ── Sidebar ───────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
42
|
-
|
|
43
|
-
--sidebar: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
44
|
-
--sidebar-foreground: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
45
|
-
--sidebar-primary: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
46
|
-
--sidebar-primary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
47
|
-
--sidebar-accent: oklch(0.967 0.001 286.375); /* --color-zinc-100 */
|
|
48
|
-
--sidebar-accent-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
49
|
-
--sidebar-border: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
50
|
-
--sidebar-ring: oklch(0.705 0.015 286.067); /* --color-zinc-400 */
|
|
51
|
-
|
|
52
|
-
/* ── Charts ────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
53
|
-
|
|
54
|
-
--chart-1: oklch(0.646 0.222 41.116); /* --color-orange-600 */
|
|
55
|
-
--chart-2: oklch(0.6 0.118 184.704); /* --color-teal-600 */
|
|
56
|
-
--chart-3: oklch(0.398 0.07 227.392); /* --color-cyan-900 */
|
|
57
|
-
--chart-4: oklch(0.828 0.189 84.429); /* --color-amber-400 */
|
|
58
|
-
--chart-5: oklch(0.769 0.188 70.08); /* --color-amber-500 */
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.dark {
|
|
62
|
-
/* Dark variant — overrides the light tokens above. */
|
|
63
|
-
|
|
64
|
-
--background: oklch(0.141 0.005 285.823); /* --color-zinc-950 */
|
|
65
|
-
--foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
66
|
-
|
|
67
|
-
--primary: oklch(0.92 0.004 286.32); /* --color-zinc-200 */
|
|
68
|
-
--primary-foreground: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
69
|
-
|
|
70
|
-
--secondary: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
71
|
-
--secondary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
72
|
-
|
|
73
|
-
--destructive: oklch(0.704 0.191 22.216); /* --color-red-400 */
|
|
74
|
-
|
|
75
|
-
--muted: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
76
|
-
--muted-foreground: oklch(0.705 0.015 286.067); /* --color-zinc-400 */
|
|
77
|
-
|
|
78
|
-
--accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
79
|
-
--accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
80
|
-
|
|
81
|
-
--popover: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
82
|
-
--popover-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
83
|
-
|
|
84
|
-
--card: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
85
|
-
--card-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
86
|
-
|
|
87
|
-
--border: oklch(1 0 0 / 10%); /* --color-white */
|
|
88
|
-
--input: oklch(1 0 0 / 15%); /* --color-white */
|
|
89
|
-
--ring: oklch(0.552 0.016 285.938); /* --color-zinc-500 */
|
|
90
|
-
|
|
91
|
-
--sidebar: oklch(0.21 0.006 285.885); /* --color-zinc-900 */
|
|
92
|
-
--sidebar-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
93
|
-
--sidebar-primary: oklch(0.488 0.243 264.376); /* --color-blue-700 */
|
|
94
|
-
--sidebar-primary-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
95
|
-
--sidebar-accent: oklch(0.274 0.006 286.033); /* --color-zinc-800 */
|
|
96
|
-
--sidebar-accent-foreground: oklch(0.985 0 0); /* --color-zinc-50 */
|
|
97
|
-
--sidebar-border: oklch(1 0 0 / 10%); /* --color-white */
|
|
98
|
-
--sidebar-ring: oklch(0.552 0.016 285.938); /* --color-zinc-500 */
|
|
99
|
-
|
|
100
|
-
--chart-1: oklch(0.488 0.243 264.376); /* --color-blue-700 */
|
|
101
|
-
--chart-2: oklch(0.696 0.17 162.48); /* --color-emerald-500 */
|
|
102
|
-
--chart-3: oklch(0.769 0.188 70.08); /* --color-amber-500 */
|
|
103
|
-
--chart-4: oklch(0.627 0.265 303.9); /* --color-purple-500 */
|
|
104
|
-
--chart-5: oklch(0.645 0.246 16.439); /* --color-rose-500 */
|
|
105
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef, useState } from "react";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Produces a smoothly animated numeric value in response to changes.
|
|
5
|
-
*
|
|
6
|
-
* Applies a time-based easing (easeOutQuad) between the current and target values
|
|
7
|
-
* over the specified duration. When disabled, the value updates immediately.
|
|
8
|
-
*
|
|
9
|
-
* @param targetValue - Target number to animate toward; null resolves to 0.
|
|
10
|
-
* @param duration - Animation duration in milliseconds.
|
|
11
|
-
* @param animated - When false, bypasses animation and sets the value directly.
|
|
12
|
-
* @returns The current (rounded) animated value.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* const value = useAnimatedValue(75, 1000, true);
|
|
17
|
-
* return <div>{value}%</div>;
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @since 0.3.16-canary.0
|
|
21
|
-
*/
|
|
22
|
-
export function useAnimatedValue(targetValue: null | number, duration: number, animated?: boolean): number {
|
|
23
|
-
// Default to 0 when targetValue is null
|
|
24
|
-
const actualTargetValue = targetValue ?? 0;
|
|
25
|
-
|
|
26
|
-
// Current animated output
|
|
27
|
-
const [animatedValue, setAnimatedValue] = useState(actualTargetValue);
|
|
28
|
-
|
|
29
|
-
// Prevent stale closures inside RAF loop
|
|
30
|
-
const animatedValueRef = useRef(actualTargetValue);
|
|
31
|
-
|
|
32
|
-
// Animate only when asked and there is a positive window; otherwise the target is shown directly.
|
|
33
|
-
const shouldAnimate = animated === true && duration > 0;
|
|
34
|
-
|
|
35
|
-
// Pin the state to the target while animation is off, so re-enabling eases from the shown value.
|
|
36
|
-
if (!shouldAnimate && animatedValue !== actualTargetValue) {
|
|
37
|
-
setAnimatedValue(actualTargetValue);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
if (!shouldAnimate) {
|
|
42
|
-
animatedValueRef.current = actualTargetValue;
|
|
43
|
-
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Starting value
|
|
48
|
-
const currentValue = animatedValueRef.current;
|
|
49
|
-
|
|
50
|
-
// Total delta across the animation
|
|
51
|
-
const valueRange = actualTargetValue - currentValue;
|
|
52
|
-
|
|
53
|
-
if (valueRange === 0) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Start timestamp
|
|
58
|
-
const startTime = performance.now();
|
|
59
|
-
|
|
60
|
-
// requestAnimationFrame id for cleanup
|
|
61
|
-
let animationFrame: number;
|
|
62
|
-
|
|
63
|
-
// RAF step
|
|
64
|
-
const animateValue = (currentTime: number): void => {
|
|
65
|
-
// Elapsed milliseconds
|
|
66
|
-
const elapsedTime = currentTime - startTime;
|
|
67
|
-
|
|
68
|
-
if (elapsedTime >= duration) {
|
|
69
|
-
animatedValueRef.current = actualTargetValue;
|
|
70
|
-
setAnimatedValue(actualTargetValue);
|
|
71
|
-
} else {
|
|
72
|
-
// Linear progress (0..1)
|
|
73
|
-
const progress = elapsedTime / duration;
|
|
74
|
-
|
|
75
|
-
// easeOutQuad easing
|
|
76
|
-
const easeProgress = 1 - (1 - progress) * (1 - progress);
|
|
77
|
-
|
|
78
|
-
// Interpolated value
|
|
79
|
-
const nextValue = currentValue + valueRange * easeProgress;
|
|
80
|
-
|
|
81
|
-
animatedValueRef.current = nextValue;
|
|
82
|
-
setAnimatedValue(nextValue);
|
|
83
|
-
animationFrame = requestAnimationFrame(animateValue);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
animationFrame = requestAnimationFrame(animateValue);
|
|
88
|
-
|
|
89
|
-
return (): void => {
|
|
90
|
-
cancelAnimationFrame(animationFrame);
|
|
91
|
-
};
|
|
92
|
-
}, [actualTargetValue, duration, shouldAnimate]);
|
|
93
|
-
|
|
94
|
-
return Math.round(animatedValue);
|
|
95
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Provides clipboard copy capability with a transient copied state.
|
|
5
|
-
*
|
|
6
|
-
* Internally uses the Clipboard API when available and sets a temporary
|
|
7
|
-
* `isCopied` flag for UI feedback. A custom callback may be invoked upon copy.
|
|
8
|
-
*
|
|
9
|
-
* @param options - Configuration options.
|
|
10
|
-
* - onCopy: Callback invoked after a successful copy.
|
|
11
|
-
* - timeout: Duration in milliseconds to keep `isCopied` true. Defaults to 2000.
|
|
12
|
-
* @returns An object with a `copyToClipboard` function and an `isCopied` flag.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* const { copyToClipboard, isCopied } = useCopyToClipboard({ timeout: 1500 });
|
|
17
|
-
* <button onClick={() => copyToClipboard("Hello")}>{isCopied ? "Copied" : "Copy"}</button>
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @since 0.3.16-canary.0
|
|
21
|
-
*/
|
|
22
|
-
export function useCopyToClipboard({ onCopy, timeout = 2000 }: { onCopy?: () => void; timeout?: number } = {}): {
|
|
23
|
-
copyToClipboard: (value: string) => Promise<void>;
|
|
24
|
-
isCopied: boolean;
|
|
25
|
-
} {
|
|
26
|
-
const [isCopied, setIsCopied] = useState(false);
|
|
27
|
-
|
|
28
|
-
const copyToClipboard = async (value: string): Promise<void> => {
|
|
29
|
-
if (
|
|
30
|
-
typeof window === "undefined" ||
|
|
31
|
-
!("clipboard" in navigator) ||
|
|
32
|
-
typeof navigator.clipboard.writeText !== "function"
|
|
33
|
-
) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if (!value) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
try {
|
|
42
|
-
await navigator.clipboard.writeText(value);
|
|
43
|
-
setIsCopied(true);
|
|
44
|
-
|
|
45
|
-
if (onCopy) {
|
|
46
|
-
onCopy();
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
setTimeout(() => {
|
|
50
|
-
setIsCopied(false);
|
|
51
|
-
}, timeout);
|
|
52
|
-
} catch (error) {
|
|
53
|
-
console.error(error);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return { copyToClipboard, isCopied };
|
|
58
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { useSyncExternalStore } from "react";
|
|
2
|
-
|
|
3
|
-
const emptySubscribe = (): (() => void) => () => {};
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Reports `false` during SSR and the first client render, then `true` once hydrated.
|
|
7
|
-
*
|
|
8
|
-
* Client-only UI (a restored preference, viewport readouts) must match the server
|
|
9
|
-
* markup on the first paint to avoid a hydration mismatch, so components gate on
|
|
10
|
-
* this flag instead of a mount effect.
|
|
11
|
-
*
|
|
12
|
-
* @since 0.8.0
|
|
13
|
-
*/
|
|
14
|
-
function useHasHydrated(): boolean {
|
|
15
|
-
return useSyncExternalStore(
|
|
16
|
-
emptySubscribe,
|
|
17
|
-
() => true,
|
|
18
|
-
() => false,
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { useHasHydrated };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useMediaQuery } from "#/hooks/use-media-query";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Determines whether the current viewport should be treated as mobile.
|
|
5
|
-
*
|
|
6
|
-
* Uses {@link useMediaQuery} to evaluate a max-width media query derived from the
|
|
7
|
-
* provided breakpoint. By default, widths below 768px are considered mobile.
|
|
8
|
-
*
|
|
9
|
-
* @param mobileBreakpoint - Pixel width used as the mobile breakpoint. Values strictly
|
|
10
|
-
* less than this breakpoint are treated as mobile. Defaults to 768.
|
|
11
|
-
* @returns true when the viewport width is less than the given breakpoint; otherwise false.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const isMobile = useIsMobile();
|
|
16
|
-
* if (isMobile) {
|
|
17
|
-
* // Render compact layout
|
|
18
|
-
* }
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @since 0.3.16-canary.0
|
|
22
|
-
*/
|
|
23
|
-
export function useIsMobile(mobileBreakpoint = 768): boolean {
|
|
24
|
-
return useMediaQuery(`(max-width: ${(mobileBreakpoint - 1).toString()}px)`);
|
|
25
|
-
}
|
package/src/hooks/use-latest.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { RefObject } from "react";
|
|
2
|
-
import { useLayoutEffect, useRef } from "react";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Returns a ref that always holds the latest value.
|
|
6
|
-
*
|
|
7
|
-
* The mirror runs in a layout effect, so every post-commit reader — later layout
|
|
8
|
-
* effects, MutationObserver callbacks, event handlers — sees the current render's
|
|
9
|
-
* value without a forbidden write during render.
|
|
10
|
-
*
|
|
11
|
-
* @since 0.5.0-canary.3
|
|
12
|
-
*/
|
|
13
|
-
function useLatest<Value>(value: Value): RefObject<Value> {
|
|
14
|
-
const ref = useRef(value);
|
|
15
|
-
|
|
16
|
-
useLayoutEffect(() => {
|
|
17
|
-
ref.current = value;
|
|
18
|
-
}, [value]);
|
|
19
|
-
|
|
20
|
-
return ref;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { useLatest };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Event handler for MediaQueryList changes.
|
|
5
|
-
*
|
|
6
|
-
* @param event - Media query change event providing the updated match status.
|
|
7
|
-
*/
|
|
8
|
-
type MediaQueryChangeHandler = (event: MediaQueryListEvent) => void;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Subscribe to a CSS media query and receive its match state.
|
|
12
|
-
*
|
|
13
|
-
* Evaluates the query immediately (when supported) and updates on changes
|
|
14
|
-
* via an event listener.
|
|
15
|
-
*
|
|
16
|
-
* @param query - A valid media query string (e.g., "(max-width: 768px)").
|
|
17
|
-
* @returns true when the media query currently matches; otherwise false.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* const isNarrow = useMediaQuery("(max-width: 768px)");
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @since 0.3.16-canary.0
|
|
25
|
-
*/
|
|
26
|
-
export function useMediaQuery(query: string): boolean {
|
|
27
|
-
/**
|
|
28
|
-
* State to store whether the query matches.
|
|
29
|
-
* The initial value is calculated based on the current window state.
|
|
30
|
-
*/
|
|
31
|
-
const [matches, setMatches] = useState<boolean>(() => {
|
|
32
|
-
// Ensure initial state matches current media query status
|
|
33
|
-
if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
|
|
34
|
-
return window.matchMedia(query).matches;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return false;
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
// Only run in a browser environment where matchMedia is available
|
|
42
|
-
if (typeof window === "undefined") {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* MediaQueryList to evaluate and observe the provided query.
|
|
48
|
-
*/
|
|
49
|
-
const mediaQueryList = window.matchMedia(query);
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Update state when the media query status changes.
|
|
53
|
-
*/
|
|
54
|
-
const onChange: MediaQueryChangeHandler = (event): void => {
|
|
55
|
-
setMatches(event.matches);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
mediaQueryList.addEventListener("change", onChange);
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Removes the event listener on unmount or when the query changes.
|
|
62
|
-
*/
|
|
63
|
-
return (): void => {
|
|
64
|
-
mediaQueryList.removeEventListener("change", onChange);
|
|
65
|
-
};
|
|
66
|
-
}, [query]);
|
|
67
|
-
|
|
68
|
-
return matches;
|
|
69
|
-
}
|