@codefast/ui 0.5.0-canary.5 → 0.5.0-canary.6
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 +60 -0
- package/README.md +59 -355
- package/dist/components/accordion.d.ts +37 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.js +33 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert-dialog.d.ts +102 -0
- package/dist/components/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog.js +75 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.d.ts +38 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +32 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/aspect-ratio.d.ts +13 -0
- package/dist/components/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio.js +13 -0
- package/dist/components/aspect-ratio.js.map +1 -0
- package/dist/components/{attachment.d.mts → attachment.d.ts} +21 -55
- package/dist/components/attachment.d.ts.map +1 -0
- package/dist/components/attachment.js +65 -0
- package/dist/components/attachment.js.map +1 -0
- package/dist/components/avatar.d.ts +55 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +44 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +15 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +15 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +62 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +52 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/bubble.d.ts +50 -0
- package/dist/components/bubble.d.ts.map +1 -0
- package/dist/components/bubble.js +34 -0
- package/dist/components/bubble.js.map +1 -0
- package/dist/components/button-group.d.ts +32 -0
- package/dist/components/button-group.d.ts.map +1 -0
- package/dist/components/button-group.js +29 -0
- package/dist/components/button-group.js.map +1 -0
- package/dist/components/button.d.ts +16 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +18 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar.d.ts +27 -0
- package/dist/components/calendar.d.ts.map +1 -0
- package/dist/components/calendar.js +96 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card.d.ts +62 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +49 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/{carousel.d.mts → carousel.d.ts} +25 -52
- package/dist/components/carousel.d.ts.map +1 -0
- package/dist/components/carousel.js +137 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/chart.d.ts +101 -0
- package/dist/components/chart.d.ts.map +1 -0
- package/dist/components/chart.js +217 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox-cards.d.ts +23 -0
- package/dist/components/checkbox-cards.d.ts.map +1 -0
- package/dist/components/checkbox-cards.js +22 -0
- package/dist/components/checkbox-cards.js.map +1 -0
- package/dist/components/checkbox-group.d.ts +21 -0
- package/dist/components/checkbox-group.d.ts.map +1 -0
- package/dist/components/checkbox-group.js +21 -0
- package/dist/components/checkbox-group.js.map +1 -0
- package/dist/components/checkbox.d.ts +13 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +15 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/collapsible.d.ts +29 -0
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible.js +25 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/command.d.ts +91 -0
- package/dist/components/command.d.ts.map +1 -0
- package/dist/components/command.js +71 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/context-menu.d.ts +136 -0
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu.js +99 -0
- package/dist/components/context-menu.js.map +1 -0
- package/dist/components/dialog.d.ts +86 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +64 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/direction.d.ts +19 -0
- package/dist/components/direction.d.ts.map +1 -0
- package/dist/components/direction.js +17 -0
- package/dist/components/direction.js.map +1 -0
- package/dist/components/drawer.d.ts +74 -0
- package/dist/components/drawer.d.ts.map +1 -0
- package/dist/components/drawer.js +57 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +136 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.js +99 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/empty.d.ts +53 -0
- package/dist/components/empty.d.ts.map +1 -0
- package/dist/components/empty.js +44 -0
- package/dist/components/empty.js.map +1 -0
- package/dist/components/field.d.ts +95 -0
- package/dist/components/field.d.ts.map +1 -0
- package/dist/components/field.js +86 -0
- package/dist/components/field.js.map +1 -0
- package/dist/components/{form.d.mts → form.d.ts} +15 -33
- package/dist/components/form.d.ts.map +1 -0
- package/dist/components/form.js +97 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/hover-card.d.ts +37 -0
- package/dist/components/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card.js +32 -0
- package/dist/components/hover-card.js.map +1 -0
- package/dist/components/input-group.d.ts +56 -0
- package/dist/components/input-group.d.ts.map +1 -0
- package/dist/components/input-group.js +56 -0
- package/dist/components/input-group.js.map +1 -0
- package/dist/components/input-number.d.ts +60 -0
- package/dist/components/input-number.d.ts.map +1 -0
- package/dist/components/input-number.js +68 -0
- package/dist/components/input-number.js.map +1 -0
- package/dist/components/input-otp.d.ts +40 -0
- package/dist/components/input-otp.d.ts.map +1 -0
- package/dist/components/input-otp.js +41 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input-password.d.ts +13 -0
- package/dist/components/input-password.d.ts.map +1 -0
- package/dist/components/input-password.js +19 -0
- package/dist/components/input-password.js.map +1 -0
- package/dist/components/input-search.d.ts +17 -0
- package/dist/components/input-search.d.ts.map +1 -0
- package/dist/components/input-search.js +24 -0
- package/dist/components/input-search.js.map +1 -0
- package/dist/components/input.d.ts +12 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +13 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/item.d.ts +88 -0
- package/dist/components/item.d.ts.map +1 -0
- package/dist/components/item.js +71 -0
- package/dist/components/item.js.map +1 -0
- package/dist/components/kbd.d.ts +20 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.js +19 -0
- package/dist/components/kbd.js.map +1 -0
- package/dist/components/label.d.ts +13 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +14 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/{marker.d.mts → marker.d.ts} +9 -21
- package/dist/components/marker.d.ts.map +1 -0
- package/dist/components/marker.js +28 -0
- package/dist/components/marker.js.map +1 -0
- package/dist/components/menubar.d.ts +144 -0
- package/dist/components/menubar.d.ts.map +1 -0
- package/dist/components/menubar.js +105 -0
- package/dist/components/menubar.js.map +1 -0
- package/dist/components/message-scroller.d.ts +67 -0
- package/dist/components/message-scroller.d.ts.map +1 -0
- package/dist/components/message-scroller.js +46 -0
- package/dist/components/message-scroller.js.map +1 -0
- package/dist/components/{message.d.mts → message.d.ts} +11 -31
- package/dist/components/message.d.ts.map +1 -0
- package/dist/components/message.js +43 -0
- package/dist/components/message.js.map +1 -0
- package/dist/components/native-select.d.ts +30 -0
- package/dist/components/native-select.d.ts.map +1 -0
- package/dist/components/native-select.js +26 -0
- package/dist/components/native-select.js.map +1 -0
- package/dist/components/navigation-menu.d.ts +71 -0
- package/dist/components/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation-menu.js +58 -0
- package/dist/components/navigation-menu.js.map +1 -0
- package/dist/components/pagination.d.ts +70 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +51 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/popover.d.ts +69 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +56 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress-circle.d.ts +72 -0
- package/dist/components/progress-circle.d.ts.map +1 -0
- package/dist/components/progress-circle.js +58 -0
- package/dist/components/progress-circle.js.map +1 -0
- package/dist/components/progress.d.ts +13 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +16 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio-cards.d.ts +21 -0
- package/dist/components/radio-cards.d.ts.map +1 -0
- package/dist/components/radio-cards.js +21 -0
- package/dist/components/radio-cards.js.map +1 -0
- package/dist/components/radio-group.d.ts +21 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +20 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/radio.d.ts +14 -0
- package/dist/components/radio.d.ts.map +1 -0
- package/dist/components/radio.js +14 -0
- package/dist/components/radio.js.map +1 -0
- package/dist/components/resizable.d.ts +31 -0
- package/dist/components/resizable.d.ts.map +1 -0
- package/dist/components/resizable.js +26 -0
- package/dist/components/resizable.js.map +1 -0
- package/dist/components/scroll-area.d.ts +27 -0
- package/dist/components/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area.js +29 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/select.d.ts +87 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +70 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.d.ts +23 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.js +21 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/sheet.d.ts +88 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.js +69 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/sidebar.d.ts +231 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.js +279 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/skeleton.d.ts +12 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +13 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.d.ts +13 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +21 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.d.ts +14 -0
- package/dist/components/sonner.d.ts.map +1 -0
- package/dist/components/sonner.js +32 -0
- package/dist/components/sonner.js.map +1 -0
- package/dist/components/spinner.d.ts +14 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.js +30 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/switch.d.ts +15 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +14 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +68 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +55 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +38 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +33 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +12 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +13 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/toggle-group.d.ts +30 -0
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.js +42 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.d.ts +15 -0
- package/dist/components/toggle.d.ts.map +1 -0
- package/dist/components/toggle.js +14 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.d.ts +45 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +38 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/hooks/{use-animated-value.d.mts → use-animated-value.d.ts} +2 -4
- package/dist/hooks/use-animated-value.d.ts.map +1 -0
- package/dist/hooks/use-animated-value.js +73 -0
- package/dist/hooks/use-animated-value.js.map +1 -0
- package/dist/hooks/{use-copy-to-clipboard.d.mts → use-copy-to-clipboard.d.ts} +6 -11
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -0
- package/dist/hooks/use-copy-to-clipboard.js +48 -0
- package/dist/hooks/use-copy-to-clipboard.js.map +1 -0
- package/dist/hooks/{use-is-mobile.d.mts → use-is-mobile.d.ts} +2 -4
- package/dist/hooks/use-is-mobile.d.ts.map +1 -0
- package/dist/hooks/use-is-mobile.js +25 -0
- package/dist/hooks/use-is-mobile.js.map +1 -0
- package/dist/hooks/{use-media-query.d.mts → use-media-query.d.ts} +2 -4
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +55 -0
- package/dist/hooks/use-media-query.js.map +1 -0
- package/dist/hooks/use-message-scroller-commands.d.ts +22 -0
- package/dist/hooks/use-message-scroller-commands.d.ts.map +1 -0
- package/dist/hooks/use-message-scroller-commands.js +190 -0
- package/dist/hooks/use-message-scroller-commands.js.map +1 -0
- package/dist/hooks/use-message-scroller-controller.d.ts +12 -0
- package/dist/hooks/use-message-scroller-controller.d.ts.map +1 -0
- package/dist/hooks/use-message-scroller-controller.js +471 -0
- package/dist/hooks/use-message-scroller-controller.js.map +1 -0
- package/dist/hooks/use-message-scroller-refs.d.ts +54 -0
- package/dist/hooks/use-message-scroller-refs.d.ts.map +1 -0
- package/dist/hooks/use-message-scroller-refs.js +88 -0
- package/dist/hooks/use-message-scroller-refs.js.map +1 -0
- package/dist/hooks/{use-mutation-observer.d.mts → use-mutation-observer.d.ts} +3 -6
- package/dist/hooks/use-mutation-observer.d.ts.map +1 -0
- package/dist/hooks/use-mutation-observer.js +42 -0
- package/dist/hooks/use-mutation-observer.js.map +1 -0
- package/dist/hooks/{use-pagination.d.mts → use-pagination.d.ts} +21 -28
- package/dist/hooks/use-pagination.d.ts.map +1 -0
- package/dist/hooks/use-pagination.js +117 -0
- package/dist/hooks/use-pagination.js.map +1 -0
- package/dist/index.d.ts +181 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +94 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/message-scroller/{geometry.d.mts → geometry.d.ts} +40 -73
- package/dist/lib/message-scroller/geometry.d.ts.map +1 -0
- package/dist/lib/message-scroller/geometry.js +246 -0
- package/dist/lib/message-scroller/geometry.js.map +1 -0
- package/dist/lib/message-scroller/{stores.d.mts → stores.d.ts} +3 -5
- package/dist/lib/message-scroller/stores.d.ts.map +1 -0
- package/dist/lib/message-scroller/stores.js +64 -0
- package/dist/lib/message-scroller/stores.js.map +1 -0
- package/dist/lib/message-scroller/types.d.ts +170 -0
- package/dist/lib/message-scroller/types.d.ts.map +1 -0
- package/dist/lib/message-scroller/types.js +66 -0
- package/dist/lib/message-scroller/types.js.map +1 -0
- package/dist/lib/message-scroller/{utils.d.mts → utils.d.ts} +2 -3
- package/dist/lib/message-scroller/utils.d.ts.map +1 -0
- package/dist/lib/message-scroller/utils.js +11 -0
- package/dist/lib/message-scroller/utils.js.map +1 -0
- package/dist/lib/{use-render.d.mts → use-render.d.ts} +14 -19
- package/dist/lib/use-render.d.ts.map +1 -0
- package/dist/lib/use-render.js +119 -0
- package/dist/lib/use-render.js.map +1 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/{utils.mjs → utils.js} +1 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/primitives/checkbox-group.d.ts +135 -0
- package/dist/primitives/checkbox-group.d.ts.map +1 -0
- package/dist/primitives/checkbox-group.js +120 -0
- package/dist/primitives/checkbox-group.js.map +1 -0
- package/dist/primitives/input-number.d.ts +109 -0
- package/dist/primitives/input-number.d.ts.map +1 -0
- package/dist/primitives/input-number.js +532 -0
- package/dist/primitives/input-number.js.map +1 -0
- package/dist/primitives/input.d.ts +77 -0
- package/dist/primitives/input.d.ts.map +1 -0
- package/dist/primitives/input.js +83 -0
- package/dist/primitives/input.js.map +1 -0
- package/dist/primitives/message-scroller.d.ts +43 -0
- package/dist/primitives/message-scroller.d.ts.map +1 -0
- package/dist/primitives/message-scroller.js +210 -0
- package/dist/primitives/message-scroller.js.map +1 -0
- package/dist/primitives/progress-circle.d.ts +166 -0
- package/dist/primitives/progress-circle.d.ts.map +1 -0
- package/dist/primitives/progress-circle.js +171 -0
- package/dist/primitives/progress-circle.js.map +1 -0
- package/dist/variants/{alert.d.mts → alert.d.ts} +8 -9
- package/dist/variants/alert.d.ts.map +1 -0
- package/dist/variants/alert.js +24 -0
- package/dist/variants/alert.js.map +1 -0
- package/dist/variants/{attachment.d.mts → attachment.d.ts} +17 -18
- package/dist/variants/attachment.d.ts.map +1 -0
- package/dist/variants/attachment.js +54 -0
- package/dist/variants/attachment.js.map +1 -0
- package/dist/variants/badge.d.ts +21 -0
- package/dist/variants/badge.d.ts.map +1 -0
- package/dist/variants/badge.js +28 -0
- package/dist/variants/badge.js.map +1 -0
- package/dist/variants/{bubble.d.mts → bubble.d.ts} +21 -22
- package/dist/variants/bubble.d.ts.map +1 -0
- package/dist/variants/bubble.js +57 -0
- package/dist/variants/bubble.js.map +1 -0
- package/dist/variants/{button-group.d.mts → button-group.d.ts} +8 -9
- package/dist/variants/button-group.d.ts.map +1 -0
- package/dist/variants/button-group.js +24 -0
- package/dist/variants/button-group.js.map +1 -0
- package/dist/variants/button.d.ts +31 -0
- package/dist/variants/button.d.ts.map +1 -0
- package/dist/variants/button.js +39 -0
- package/dist/variants/button.js.map +1 -0
- package/dist/variants/{empty.d.mts → empty.d.ts} +8 -9
- package/dist/variants/empty.d.ts.map +1 -0
- package/dist/variants/empty.js +24 -0
- package/dist/variants/empty.js.map +1 -0
- package/dist/variants/field.d.ts +18 -0
- package/dist/variants/field.d.ts.map +1 -0
- package/dist/variants/field.js +25 -0
- package/dist/variants/field.js.map +1 -0
- package/dist/variants/{input-group.d.mts → input-group.d.ts} +16 -17
- package/dist/variants/input-group.d.ts.map +1 -0
- package/dist/variants/input-group.js +55 -0
- package/dist/variants/input-group.js.map +1 -0
- package/dist/variants/{item.d.mts → item.d.ts} +19 -20
- package/dist/variants/item.d.ts.map +1 -0
- package/dist/variants/item.js +50 -0
- package/dist/variants/item.js.map +1 -0
- package/dist/variants/{marker.d.mts → marker.d.ts} +9 -10
- package/dist/variants/marker.d.ts.map +1 -0
- package/dist/variants/marker.js +27 -0
- package/dist/variants/marker.js.map +1 -0
- package/dist/variants/{navigation-menu.d.mts → navigation-menu.d.ts} +4 -5
- package/dist/variants/navigation-menu.d.ts.map +1 -0
- package/dist/variants/navigation-menu.js +15 -0
- package/dist/variants/navigation-menu.js.map +1 -0
- package/dist/variants/progress-circle.d.ts +51 -0
- package/dist/variants/progress-circle.d.ts.map +1 -0
- package/dist/variants/progress-circle.js +36 -0
- package/dist/variants/progress-circle.js.map +1 -0
- package/dist/variants/scroll-area.d.ts +23 -0
- package/dist/variants/scroll-area.d.ts.map +1 -0
- package/dist/variants/scroll-area.js +63 -0
- package/dist/variants/scroll-area.js.map +1 -0
- package/dist/variants/separator.d.ts +22 -0
- package/dist/variants/separator.d.ts.map +1 -0
- package/dist/variants/separator.js +30 -0
- package/dist/variants/separator.js.map +1 -0
- package/dist/variants/sheet.d.ts +19 -0
- package/dist/variants/sheet.d.ts.map +1 -0
- package/dist/variants/sheet.js +26 -0
- package/dist/variants/sheet.js.map +1 -0
- package/dist/variants/sidebar.d.ts +22 -0
- package/dist/variants/sidebar.d.ts.map +1 -0
- package/dist/variants/sidebar.js +30 -0
- package/dist/variants/sidebar.js.map +1 -0
- package/dist/variants/{tabs.d.mts → tabs.d.ts} +8 -9
- package/dist/variants/tabs.d.ts.map +1 -0
- package/dist/variants/tabs.js +24 -0
- package/dist/variants/tabs.js.map +1 -0
- package/dist/variants/toggle.d.ts +22 -0
- package/dist/variants/toggle.d.ts.map +1 -0
- package/dist/variants/toggle.js +30 -0
- package/dist/variants/toggle.js.map +1 -0
- package/package.json +253 -262
- package/src/components/accordion.tsx +3 -3
- package/src/components/alert-dialog.tsx +7 -7
- package/src/components/alert.tsx +1 -1
- package/src/components/aspect-ratio.tsx +1 -1
- package/src/components/attachment.tsx +1 -1
- package/src/components/avatar.tsx +1 -1
- package/src/components/badge.tsx +1 -1
- package/src/components/breadcrumb.tsx +3 -6
- package/src/components/bubble.tsx +1 -1
- package/src/components/button-group.tsx +2 -2
- package/src/components/button.tsx +1 -1
- package/src/components/calendar.tsx +2 -2
- package/src/components/card.tsx +2 -2
- package/src/components/checkbox-cards.tsx +2 -2
- package/src/components/checkbox.tsx +1 -1
- package/src/components/collapsible.tsx +1 -1
- package/src/components/context-menu.tsx +8 -8
- package/src/components/dialog.tsx +9 -6
- package/src/components/direction.tsx +1 -1
- package/src/components/drawer.tsx +3 -3
- package/src/components/dropdown-menu.tsx +8 -8
- package/src/components/empty.tsx +3 -3
- package/src/components/field.tsx +5 -5
- package/src/components/form.tsx +2 -2
- package/src/components/hover-card.tsx +2 -2
- package/src/components/input-group.tsx +2 -2
- package/src/components/input-number.tsx +166 -112
- package/src/components/input-otp.tsx +2 -2
- package/src/components/input.tsx +1 -1
- package/src/components/item.tsx +1 -1
- package/src/components/label.tsx +1 -1
- package/src/components/marker.tsx +1 -1
- package/src/components/menubar.tsx +12 -12
- package/src/components/native-select.tsx +1 -1
- package/src/components/navigation-menu.tsx +3 -3
- package/src/components/pagination.tsx +4 -4
- package/src/components/popover.tsx +3 -3
- package/src/components/progress.tsx +2 -2
- package/src/components/radio-cards.tsx +3 -3
- package/src/components/radio-group.tsx +2 -2
- package/src/components/scroll-area.tsx +1 -1
- package/src/components/select.tsx +5 -5
- package/src/components/separator.tsx +1 -1
- package/src/components/sheet.tsx +4 -4
- package/src/components/sidebar.tsx +11 -4
- package/src/components/slider.tsx +3 -3
- package/src/components/spinner.tsx +1 -1
- package/src/components/switch.tsx +1 -1
- package/src/components/tabs.tsx +2 -2
- package/src/components/textarea.tsx +1 -1
- package/src/components/toggle-group.tsx +3 -3
- package/src/components/toggle.tsx +1 -1
- package/src/components/tooltip.tsx +1 -1
- package/src/lib/message-scroller/geometry.ts +6 -2
- package/src/lib/message-scroller/stores.ts +2 -2
- package/src/primitives/checkbox-group.tsx +5 -6
- package/src/primitives/input-number.tsx +122 -43
- package/src/variants/alert.ts +1 -1
- package/src/variants/button-group.ts +3 -3
- package/src/variants/button.ts +9 -10
- package/src/variants/empty.ts +1 -1
- package/src/variants/field.ts +3 -3
- package/src/variants/input-group.ts +3 -3
- package/src/variants/item.ts +2 -2
- package/src/variants/navigation-menu.ts +1 -1
- package/src/variants/tabs.ts +1 -1
- package/src/variants/toggle.ts +4 -4
- package/dist/components/accordion.d.mts +0 -52
- package/dist/components/accordion.mjs +0 -65
- package/dist/components/alert-dialog.d.mts +0 -135
- package/dist/components/alert-dialog.mjs +0 -130
- package/dist/components/alert.d.mts +0 -51
- package/dist/components/alert.mjs +0 -50
- package/dist/components/aspect-ratio.d.mts +0 -16
- package/dist/components/aspect-ratio.mjs +0 -14
- package/dist/components/attachment.mjs +0 -112
- package/dist/components/avatar.d.mts +0 -75
- package/dist/components/avatar.mjs +0 -67
- package/dist/components/badge.d.mts +0 -21
- package/dist/components/badge.mjs +0 -20
- package/dist/components/breadcrumb.d.mts +0 -85
- package/dist/components/breadcrumb.mjs +0 -89
- package/dist/components/bubble.d.mts +0 -67
- package/dist/components/bubble.mjs +0 -58
- package/dist/components/button-group.d.mts +0 -45
- package/dist/components/button-group.mjs +0 -43
- package/dist/components/button.d.mts +0 -24
- package/dist/components/button.mjs +0 -35
- package/dist/components/calendar.d.mts +0 -43
- package/dist/components/calendar.mjs +0 -117
- package/dist/components/card.d.mts +0 -85
- package/dist/components/card.mjs +0 -76
- package/dist/components/carousel.mjs +0 -172
- package/dist/components/chart.d.mts +0 -135
- package/dist/components/chart.mjs +0 -214
- package/dist/components/checkbox-cards.d.mts +0 -29
- package/dist/components/checkbox-cards.mjs +0 -36
- package/dist/components/checkbox-group.d.mts +0 -28
- package/dist/components/checkbox-group.mjs +0 -32
- package/dist/components/checkbox.d.mts +0 -17
- package/dist/components/checkbox.mjs +0 -22
- package/dist/components/collapsible.d.mts +0 -36
- package/dist/components/collapsible.mjs +0 -32
- package/dist/components/command.d.mts +0 -127
- package/dist/components/command.mjs +0 -125
- package/dist/components/context-menu.d.mts +0 -188
- package/dist/components/context-menu.mjs +0 -172
- package/dist/components/dialog.d.mts +0 -115
- package/dist/components/dialog.mjs +0 -121
- package/dist/components/direction.d.mts +0 -24
- package/dist/components/direction.mjs +0 -18
- package/dist/components/drawer.d.mts +0 -101
- package/dist/components/drawer.mjs +0 -97
- package/dist/components/dropdown-menu.d.mts +0 -189
- package/dist/components/dropdown-menu.mjs +0 -178
- package/dist/components/empty.d.mts +0 -73
- package/dist/components/empty.mjs +0 -70
- package/dist/components/field.d.mts +0 -131
- package/dist/components/field.mjs +0 -135
- package/dist/components/form.mjs +0 -113
- package/dist/components/hover-card.d.mts +0 -50
- package/dist/components/hover-card.mjs +0 -49
- package/dist/components/input-group.d.mts +0 -79
- package/dist/components/input-group.mjs +0 -87
- package/dist/components/input-number.d.mts +0 -36
- package/dist/components/input-number.mjs +0 -86
- package/dist/components/input-otp.d.mts +0 -53
- package/dist/components/input-otp.mjs +0 -62
- package/dist/components/input-password.d.mts +0 -19
- package/dist/components/input-password.mjs +0 -38
- package/dist/components/input-search.d.mts +0 -26
- package/dist/components/input-search.mjs +0 -51
- package/dist/components/input.d.mts +0 -17
- package/dist/components/input.mjs +0 -16
- package/dist/components/item.d.mts +0 -123
- package/dist/components/item.mjs +0 -120
- package/dist/components/kbd.d.mts +0 -27
- package/dist/components/kbd.mjs +0 -25
- package/dist/components/label.d.mts +0 -17
- package/dist/components/label.mjs +0 -16
- package/dist/components/marker.mjs +0 -42
- package/dist/components/menubar.d.mts +0 -202
- package/dist/components/menubar.mjs +0 -188
- package/dist/components/message-scroller.d.mts +0 -89
- package/dist/components/message-scroller.mjs +0 -77
- package/dist/components/message.mjs +0 -66
- package/dist/components/native-select.d.mts +0 -41
- package/dist/components/native-select.mjs +0 -46
- package/dist/components/navigation-menu.d.mts +0 -100
- package/dist/components/navigation-menu.mjs +0 -103
- package/dist/components/pagination.d.mts +0 -94
- package/dist/components/pagination.mjs +0 -107
- package/dist/components/popover.d.mts +0 -93
- package/dist/components/popover.mjs +0 -88
- package/dist/components/progress-circle.d.mts +0 -89
- package/dist/components/progress-circle.mjs +0 -80
- package/dist/components/progress.d.mts +0 -18
- package/dist/components/progress.mjs +0 -21
- package/dist/components/radio-cards.d.mts +0 -26
- package/dist/components/radio-cards.mjs +0 -35
- package/dist/components/radio-group.d.mts +0 -28
- package/dist/components/radio-group.mjs +0 -31
- package/dist/components/radio.d.mts +0 -20
- package/dist/components/radio.mjs +0 -18
- package/dist/components/resizable.d.mts +0 -41
- package/dist/components/resizable.mjs +0 -36
- package/dist/components/scroll-area.d.mts +0 -39
- package/dist/components/scroll-area.mjs +0 -56
- package/dist/components/select.d.mts +0 -122
- package/dist/components/select.mjs +0 -131
- package/dist/components/separator.d.mts +0 -32
- package/dist/components/separator.mjs +0 -33
- package/dist/components/sheet.d.mts +0 -119
- package/dist/components/sheet.mjs +0 -123
- package/dist/components/sidebar.d.mts +0 -320
- package/dist/components/sidebar.mjs +0 -414
- package/dist/components/skeleton.d.mts +0 -16
- package/dist/components/skeleton.mjs +0 -15
- package/dist/components/slider.d.mts +0 -21
- package/dist/components/slider.mjs +0 -41
- package/dist/components/sonner.d.mts +0 -16
- package/dist/components/sonner.mjs +0 -32
- package/dist/components/spinner.d.mts +0 -20
- package/dist/components/spinner.mjs +0 -42
- package/dist/components/switch.d.mts +0 -20
- package/dist/components/switch.mjs +0 -21
- package/dist/components/table.d.mts +0 -93
- package/dist/components/table.mjs +0 -89
- package/dist/components/tabs.d.mts +0 -53
- package/dist/components/tabs.mjs +0 -53
- package/dist/components/textarea.d.mts +0 -16
- package/dist/components/textarea.mjs +0 -15
- package/dist/components/toggle-group.d.mts +0 -46
- package/dist/components/toggle-group.mjs +0 -58
- package/dist/components/toggle.d.mts +0 -20
- package/dist/components/toggle.mjs +0 -20
- package/dist/components/tooltip.d.mts +0 -61
- package/dist/components/tooltip.mjs +0 -59
- package/dist/hooks/use-animated-value.mjs +0 -65
- package/dist/hooks/use-copy-to-clipboard.mjs +0 -44
- package/dist/hooks/use-is-mobile.mjs +0 -27
- package/dist/hooks/use-media-query.mjs +0 -51
- package/dist/hooks/use-message-scroller-commands.d.mts +0 -39
- package/dist/hooks/use-message-scroller-commands.mjs +0 -165
- package/dist/hooks/use-message-scroller-controller.d.mts +0 -19
- package/dist/hooks/use-message-scroller-controller.mjs +0 -382
- package/dist/hooks/use-message-scroller-refs.d.mts +0 -60
- package/dist/hooks/use-message-scroller-refs.mjs +0 -77
- package/dist/hooks/use-mutation-observer.mjs +0 -42
- package/dist/hooks/use-pagination.mjs +0 -122
- package/dist/index.d.mts +0 -96
- package/dist/index.mjs +0 -95
- package/dist/lib/message-scroller/geometry.mjs +0 -199
- package/dist/lib/message-scroller/stores.mjs +0 -52
- package/dist/lib/message-scroller/types.d.mts +0 -171
- package/dist/lib/message-scroller/types.mjs +0 -53
- package/dist/lib/message-scroller/utils.mjs +0 -12
- package/dist/lib/use-render.mjs +0 -84
- package/dist/lib/utils.d.mts +0 -2
- package/dist/primitives/checkbox-group.d.mts +0 -154
- package/dist/primitives/checkbox-group.mjs +0 -137
- package/dist/primitives/input-number.d.mts +0 -119
- package/dist/primitives/input-number.mjs +0 -532
- package/dist/primitives/input.d.mts +0 -81
- package/dist/primitives/input.mjs +0 -80
- package/dist/primitives/message-scroller.d.mts +0 -88
- package/dist/primitives/message-scroller.mjs +0 -240
- package/dist/primitives/progress-circle.d.mts +0 -195
- package/dist/primitives/progress-circle.mjs +0 -189
- package/dist/variants/alert.mjs +0 -15
- package/dist/variants/attachment.mjs +0 -42
- package/dist/variants/badge.d.mts +0 -22
- package/dist/variants/badge.mjs +0 -19
- package/dist/variants/bubble.mjs +0 -45
- package/dist/variants/button-group.mjs +0 -15
- package/dist/variants/button.d.mts +0 -32
- package/dist/variants/button.mjs +0 -34
- package/dist/variants/empty.mjs +0 -15
- package/dist/variants/field.d.mts +0 -19
- package/dist/variants/field.mjs +0 -16
- package/dist/variants/input-group.mjs +0 -34
- package/dist/variants/input-number.d.mts +0 -45
- package/dist/variants/input-number.mjs +0 -40
- package/dist/variants/item.mjs +0 -38
- package/dist/variants/marker.mjs +0 -18
- package/dist/variants/navigation-menu.mjs +0 -8
- package/dist/variants/progress-circle.d.mts +0 -52
- package/dist/variants/progress-circle.mjs +0 -45
- package/dist/variants/scroll-area.d.mts +0 -24
- package/dist/variants/scroll-area.mjs +0 -58
- package/dist/variants/separator.d.mts +0 -23
- package/dist/variants/separator.mjs +0 -25
- package/dist/variants/sheet.d.mts +0 -20
- package/dist/variants/sheet.mjs +0 -17
- package/dist/variants/sidebar.d.mts +0 -23
- package/dist/variants/sidebar.mjs +0 -25
- package/dist/variants/tabs.mjs +0 -15
- package/dist/variants/toggle.d.mts +0 -23
- package/dist/variants/toggle.mjs +0 -25
- package/src/variants/input-number.ts +0 -65
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AspectRatio as AspectRatio$1 } from "radix-ui";
|
|
2
|
-
import { ComponentProps, JSX } from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/aspect-ratio.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* @since 0.3.16-canary.0
|
|
7
|
-
*/
|
|
8
|
-
type AspectRatioProps = ComponentProps<typeof AspectRatio$1.Root>;
|
|
9
|
-
/**
|
|
10
|
-
* @since 0.3.16-canary.0
|
|
11
|
-
*/
|
|
12
|
-
declare function AspectRatio({
|
|
13
|
-
...props
|
|
14
|
-
}: AspectRatioProps): JSX.Element;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { AspectRatio, type AspectRatioProps };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AspectRatio as AspectRatio$1 } from "radix-ui";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
//#region src/components/aspect-ratio.tsx
|
|
4
|
-
/**
|
|
5
|
-
* @since 0.3.16-canary.0
|
|
6
|
-
*/
|
|
7
|
-
function AspectRatio({ ...props }) {
|
|
8
|
-
return /* @__PURE__ */ jsx(AspectRatio$1.Root, {
|
|
9
|
-
"data-slot": "aspect-ratio",
|
|
10
|
-
...props
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { AspectRatio };
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { cn } from "../lib/utils.mjs";
|
|
2
|
-
import { Button } from "./button.mjs";
|
|
3
|
-
import { attachmentMediaVariants, attachmentVariants } from "../variants/attachment.mjs";
|
|
4
|
-
import { Slot } from "radix-ui";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/attachment.tsx
|
|
7
|
-
/**
|
|
8
|
-
* @since 0.5.0-canary.3
|
|
9
|
-
*/
|
|
10
|
-
function Attachment({ className, orientation = "horizontal", size = "default", state = "done", ...props }) {
|
|
11
|
-
return /* @__PURE__ */ jsx("div", {
|
|
12
|
-
className: attachmentVariants({
|
|
13
|
-
className,
|
|
14
|
-
orientation,
|
|
15
|
-
size
|
|
16
|
-
}),
|
|
17
|
-
"data-orientation": orientation,
|
|
18
|
-
"data-size": size,
|
|
19
|
-
"data-slot": "attachment",
|
|
20
|
-
"data-state": state,
|
|
21
|
-
...props
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @since 0.5.0-canary.3
|
|
26
|
-
*/
|
|
27
|
-
function AttachmentMedia({ className, variant = "icon", ...props }) {
|
|
28
|
-
return /* @__PURE__ */ jsx("div", {
|
|
29
|
-
className: attachmentMediaVariants({
|
|
30
|
-
className,
|
|
31
|
-
variant
|
|
32
|
-
}),
|
|
33
|
-
"data-slot": "attachment-media",
|
|
34
|
-
"data-variant": variant,
|
|
35
|
-
...props
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @since 0.5.0-canary.3
|
|
40
|
-
*/
|
|
41
|
-
function AttachmentContent({ className, ...props }) {
|
|
42
|
-
return /* @__PURE__ */ jsx("div", {
|
|
43
|
-
className: cn("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
|
|
44
|
-
"data-slot": "attachment-content",
|
|
45
|
-
...props
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* @since 0.5.0-canary.3
|
|
50
|
-
*/
|
|
51
|
-
function AttachmentTitle({ className, ...props }) {
|
|
52
|
-
return /* @__PURE__ */ jsx("span", {
|
|
53
|
-
className: cn("block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer", className),
|
|
54
|
-
"data-slot": "attachment-title",
|
|
55
|
-
...props
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @since 0.5.0-canary.3
|
|
60
|
-
*/
|
|
61
|
-
function AttachmentDescription({ className, ...props }) {
|
|
62
|
-
return /* @__PURE__ */ jsx("span", {
|
|
63
|
-
className: cn("mt-0.5 block max-w-full min-w-0 truncate text-xs text-muted-foreground group-data-[state=error]/attachment:text-destructive/80", className),
|
|
64
|
-
"data-slot": "attachment-description",
|
|
65
|
-
...props
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* @since 0.5.0-canary.3
|
|
70
|
-
*/
|
|
71
|
-
function AttachmentActions({ className, ...props }) {
|
|
72
|
-
return /* @__PURE__ */ jsx("div", {
|
|
73
|
-
className: cn("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:end-3 group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:gap-1", className),
|
|
74
|
-
"data-slot": "attachment-actions",
|
|
75
|
-
...props
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* @since 0.5.0-canary.3
|
|
80
|
-
*/
|
|
81
|
-
function AttachmentAction({ className, size = "icon-xs", variant, ...props }) {
|
|
82
|
-
return /* @__PURE__ */ jsx(Button, {
|
|
83
|
-
className: cn(className),
|
|
84
|
-
"data-slot": "attachment-action",
|
|
85
|
-
size,
|
|
86
|
-
variant: variant ?? "ghost",
|
|
87
|
-
...props
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @since 0.5.0-canary.3
|
|
92
|
-
*/
|
|
93
|
-
function AttachmentTrigger({ asChild = false, className, type, ...props }) {
|
|
94
|
-
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "button", {
|
|
95
|
-
className: cn("absolute inset-0 z-10 outline-none", className),
|
|
96
|
-
"data-slot": "attachment-trigger",
|
|
97
|
-
type: asChild ? void 0 : type ?? "button",
|
|
98
|
-
...props
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* @since 0.5.0-canary.3
|
|
103
|
-
*/
|
|
104
|
-
function AttachmentGroup({ className, ...props }) {
|
|
105
|
-
return /* @__PURE__ */ jsx("div", {
|
|
106
|
-
className: cn("flex min-w-0 scroll-fade-x snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", className),
|
|
107
|
-
"data-slot": "attachment-group",
|
|
108
|
-
...props
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
//#endregion
|
|
112
|
-
export { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Avatar as Avatar$1 } from "radix-ui";
|
|
2
|
-
import { ComponentProps, JSX } from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/avatar.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* @since 0.3.16-canary.0
|
|
7
|
-
*/
|
|
8
|
-
type AvatarProps = ComponentProps<typeof Avatar$1.Root> & {
|
|
9
|
-
size?: "default" | "sm" | "lg";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @since 0.3.16-canary.0
|
|
13
|
-
*/
|
|
14
|
-
declare function Avatar({
|
|
15
|
-
className,
|
|
16
|
-
size,
|
|
17
|
-
...props
|
|
18
|
-
}: AvatarProps): JSX.Element;
|
|
19
|
-
/**
|
|
20
|
-
* @since 0.3.16-canary.0
|
|
21
|
-
*/
|
|
22
|
-
type AvatarImageProps = ComponentProps<typeof Avatar$1.Image>;
|
|
23
|
-
/**
|
|
24
|
-
* @since 0.3.16-canary.0
|
|
25
|
-
*/
|
|
26
|
-
declare function AvatarImage({
|
|
27
|
-
className,
|
|
28
|
-
...props
|
|
29
|
-
}: AvatarImageProps): JSX.Element;
|
|
30
|
-
/**
|
|
31
|
-
* @since 0.3.16-canary.0
|
|
32
|
-
*/
|
|
33
|
-
type AvatarFallbackProps = ComponentProps<typeof Avatar$1.Fallback>;
|
|
34
|
-
/**
|
|
35
|
-
* @since 0.3.16-canary.0
|
|
36
|
-
*/
|
|
37
|
-
declare function AvatarFallback({
|
|
38
|
-
className,
|
|
39
|
-
...props
|
|
40
|
-
}: AvatarFallbackProps): JSX.Element;
|
|
41
|
-
/**
|
|
42
|
-
* @since 0.3.16-canary.0
|
|
43
|
-
*/
|
|
44
|
-
type AvatarBadgeProps = ComponentProps<"span">;
|
|
45
|
-
/**
|
|
46
|
-
* @since 0.3.16-canary.0
|
|
47
|
-
*/
|
|
48
|
-
declare function AvatarBadge({
|
|
49
|
-
className,
|
|
50
|
-
...props
|
|
51
|
-
}: AvatarBadgeProps): JSX.Element;
|
|
52
|
-
/**
|
|
53
|
-
* @since 0.3.16-canary.0
|
|
54
|
-
*/
|
|
55
|
-
type AvatarGroupProps = ComponentProps<"div">;
|
|
56
|
-
/**
|
|
57
|
-
* @since 0.3.16-canary.0
|
|
58
|
-
*/
|
|
59
|
-
declare function AvatarGroup({
|
|
60
|
-
className,
|
|
61
|
-
...props
|
|
62
|
-
}: AvatarGroupProps): JSX.Element;
|
|
63
|
-
/**
|
|
64
|
-
* @since 0.3.16-canary.0
|
|
65
|
-
*/
|
|
66
|
-
type AvatarGroupCountProps = ComponentProps<"div">;
|
|
67
|
-
/**
|
|
68
|
-
* @since 0.3.16-canary.0
|
|
69
|
-
*/
|
|
70
|
-
declare function AvatarGroupCount({
|
|
71
|
-
className,
|
|
72
|
-
...props
|
|
73
|
-
}: AvatarGroupCountProps): JSX.Element;
|
|
74
|
-
//#endregion
|
|
75
|
-
export { Avatar, AvatarBadge, type AvatarBadgeProps, AvatarFallback, type AvatarFallbackProps, AvatarGroup, AvatarGroupCount, type AvatarGroupCountProps, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { cn } from "../lib/utils.mjs";
|
|
2
|
-
import { Avatar as Avatar$1 } from "radix-ui";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/avatar.tsx
|
|
5
|
-
/**
|
|
6
|
-
* @since 0.3.16-canary.0
|
|
7
|
-
*/
|
|
8
|
-
function Avatar({ className, size = "default", ...props }) {
|
|
9
|
-
return /* @__PURE__ */ jsx(Avatar$1.Root, {
|
|
10
|
-
className: cn("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten", className),
|
|
11
|
-
"data-size": size,
|
|
12
|
-
"data-slot": "avatar",
|
|
13
|
-
...props
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @since 0.3.16-canary.0
|
|
18
|
-
*/
|
|
19
|
-
function AvatarImage({ className, ...props }) {
|
|
20
|
-
return /* @__PURE__ */ jsx(Avatar$1.Image, {
|
|
21
|
-
className: cn("aspect-square size-full rounded-full object-cover", className),
|
|
22
|
-
"data-slot": "avatar-image",
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @since 0.3.16-canary.0
|
|
28
|
-
*/
|
|
29
|
-
function AvatarFallback({ className, ...props }) {
|
|
30
|
-
return /* @__PURE__ */ jsx(Avatar$1.Fallback, {
|
|
31
|
-
className: cn("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs", className),
|
|
32
|
-
"data-slot": "avatar-fallback",
|
|
33
|
-
...props
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @since 0.3.16-canary.0
|
|
38
|
-
*/
|
|
39
|
-
function AvatarBadge({ className, ...props }) {
|
|
40
|
-
return /* @__PURE__ */ jsx("span", {
|
|
41
|
-
className: cn("absolute inset-e-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none", "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden", "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2", "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2", className),
|
|
42
|
-
"data-slot": "avatar-badge",
|
|
43
|
-
...props
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @since 0.3.16-canary.0
|
|
48
|
-
*/
|
|
49
|
-
function AvatarGroup({ className, ...props }) {
|
|
50
|
-
return /* @__PURE__ */ jsx("div", {
|
|
51
|
-
className: cn("group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background rtl:space-x-reverse", className),
|
|
52
|
-
"data-slot": "avatar-group",
|
|
53
|
-
...props
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @since 0.3.16-canary.0
|
|
58
|
-
*/
|
|
59
|
-
function AvatarGroupCount({ className, ...props }) {
|
|
60
|
-
return /* @__PURE__ */ jsx("div", {
|
|
61
|
-
className: cn("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3", className),
|
|
62
|
-
"data-slot": "avatar-group-count",
|
|
63
|
-
...props
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BadgeVariants } from "../variants/badge.mjs";
|
|
2
|
-
import { ComponentProps, JSX } from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/badge.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* @since 0.3.16-canary.0
|
|
7
|
-
*/
|
|
8
|
-
interface BadgeProps extends ComponentProps<"span">, BadgeVariants {
|
|
9
|
-
asChild?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @since 0.3.16-canary.0
|
|
13
|
-
*/
|
|
14
|
-
declare function Badge({
|
|
15
|
-
asChild,
|
|
16
|
-
className,
|
|
17
|
-
variant,
|
|
18
|
-
...props
|
|
19
|
-
}: BadgeProps): JSX.Element;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { Badge, type BadgeProps };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { badgeVariants } from "../variants/badge.mjs";
|
|
2
|
-
import { Slot } from "radix-ui";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/badge.tsx
|
|
5
|
-
/**
|
|
6
|
-
* @since 0.3.16-canary.0
|
|
7
|
-
*/
|
|
8
|
-
function Badge({ asChild = false, className, variant = "default", ...props }) {
|
|
9
|
-
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "span", {
|
|
10
|
-
className: badgeVariants({
|
|
11
|
-
className,
|
|
12
|
-
variant
|
|
13
|
-
}),
|
|
14
|
-
"data-slot": "badge",
|
|
15
|
-
"data-variant": variant,
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { Badge };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, JSX } from "react";
|
|
2
|
-
|
|
3
|
-
//#region src/components/breadcrumb.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* @since 0.3.16-canary.0
|
|
6
|
-
*/
|
|
7
|
-
type BreadcrumbProps = ComponentProps<"nav">;
|
|
8
|
-
/**
|
|
9
|
-
* @since 0.3.16-canary.0
|
|
10
|
-
*/
|
|
11
|
-
declare function Breadcrumb({
|
|
12
|
-
...props
|
|
13
|
-
}: BreadcrumbProps): JSX.Element;
|
|
14
|
-
/**
|
|
15
|
-
* @since 0.3.16-canary.0
|
|
16
|
-
*/
|
|
17
|
-
type BreadcrumbListProps = ComponentProps<"ol">;
|
|
18
|
-
/**
|
|
19
|
-
* @since 0.3.16-canary.0
|
|
20
|
-
*/
|
|
21
|
-
declare function BreadcrumbList({
|
|
22
|
-
className,
|
|
23
|
-
...props
|
|
24
|
-
}: BreadcrumbListProps): JSX.Element;
|
|
25
|
-
/**
|
|
26
|
-
* @since 0.3.16-canary.0
|
|
27
|
-
*/
|
|
28
|
-
type BreadcrumbItemProps = ComponentProps<"li">;
|
|
29
|
-
/**
|
|
30
|
-
* @since 0.3.16-canary.0
|
|
31
|
-
*/
|
|
32
|
-
declare function BreadcrumbItem({
|
|
33
|
-
className,
|
|
34
|
-
...props
|
|
35
|
-
}: BreadcrumbItemProps): JSX.Element;
|
|
36
|
-
/**
|
|
37
|
-
* @since 0.3.16-canary.0
|
|
38
|
-
*/
|
|
39
|
-
interface BreadcrumbLinkProps extends ComponentProps<"a"> {
|
|
40
|
-
asChild?: boolean;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @since 0.3.16-canary.0
|
|
44
|
-
*/
|
|
45
|
-
declare function BreadcrumbLink({
|
|
46
|
-
asChild,
|
|
47
|
-
className,
|
|
48
|
-
...props
|
|
49
|
-
}: BreadcrumbLinkProps): JSX.Element;
|
|
50
|
-
/**
|
|
51
|
-
* @since 0.3.16-canary.0
|
|
52
|
-
*/
|
|
53
|
-
type BreadcrumbPageProps = ComponentProps<"span">;
|
|
54
|
-
/**
|
|
55
|
-
* @since 0.3.16-canary.0
|
|
56
|
-
*/
|
|
57
|
-
declare function BreadcrumbPage({
|
|
58
|
-
className,
|
|
59
|
-
...props
|
|
60
|
-
}: BreadcrumbPageProps): JSX.Element;
|
|
61
|
-
/**
|
|
62
|
-
* @since 0.3.16-canary.0
|
|
63
|
-
*/
|
|
64
|
-
type BreadcrumbSeparatorProps = ComponentProps<"li">;
|
|
65
|
-
/**
|
|
66
|
-
* @since 0.3.16-canary.0
|
|
67
|
-
*/
|
|
68
|
-
declare function BreadcrumbSeparator({
|
|
69
|
-
children,
|
|
70
|
-
className,
|
|
71
|
-
...props
|
|
72
|
-
}: BreadcrumbSeparatorProps): JSX.Element;
|
|
73
|
-
/**
|
|
74
|
-
* @since 0.3.16-canary.0
|
|
75
|
-
*/
|
|
76
|
-
type BreadcrumbEllipsisProps = ComponentProps<"span">;
|
|
77
|
-
/**
|
|
78
|
-
* @since 0.3.16-canary.0
|
|
79
|
-
*/
|
|
80
|
-
declare function BreadcrumbEllipsis({
|
|
81
|
-
className,
|
|
82
|
-
...props
|
|
83
|
-
}: BreadcrumbEllipsisProps): JSX.Element;
|
|
84
|
-
//#endregion
|
|
85
|
-
export { Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { cn } from "../lib/utils.mjs";
|
|
2
|
-
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
3
|
-
import { Slot } from "radix-ui";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/breadcrumb.tsx
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
function Breadcrumb({ ...props }) {
|
|
10
|
-
return /* @__PURE__ */ jsx("nav", {
|
|
11
|
-
"aria-label": "breadcrumb",
|
|
12
|
-
"data-slot": "breadcrumb",
|
|
13
|
-
...props
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @since 0.3.16-canary.0
|
|
18
|
-
*/
|
|
19
|
-
function BreadcrumbList({ className, ...props }) {
|
|
20
|
-
return /* @__PURE__ */ jsx("ol", {
|
|
21
|
-
className: cn("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground sm:gap-2.5", className),
|
|
22
|
-
"data-slot": "breadcrumb-list",
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @since 0.3.16-canary.0
|
|
28
|
-
*/
|
|
29
|
-
function BreadcrumbItem({ className, ...props }) {
|
|
30
|
-
return /* @__PURE__ */ jsx("li", {
|
|
31
|
-
className: cn("inline-flex items-center gap-1.5", className),
|
|
32
|
-
"data-slot": "breadcrumb-item",
|
|
33
|
-
...props
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @since 0.3.16-canary.0
|
|
38
|
-
*/
|
|
39
|
-
function BreadcrumbLink({ asChild, className, ...props }) {
|
|
40
|
-
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "a", {
|
|
41
|
-
className: cn("transition-colors hover:text-foreground", className),
|
|
42
|
-
"data-slot": "breadcrumb-link",
|
|
43
|
-
...props
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @since 0.3.16-canary.0
|
|
48
|
-
*/
|
|
49
|
-
function BreadcrumbPage({ className, ...props }) {
|
|
50
|
-
return /* @__PURE__ */ jsx("span", {
|
|
51
|
-
"aria-current": "page",
|
|
52
|
-
"aria-disabled": "true",
|
|
53
|
-
className: cn("font-normal text-foreground", className),
|
|
54
|
-
"data-slot": "breadcrumb-page",
|
|
55
|
-
role: "link",
|
|
56
|
-
...props
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @since 0.3.16-canary.0
|
|
61
|
-
*/
|
|
62
|
-
function BreadcrumbSeparator({ children, className, ...props }) {
|
|
63
|
-
return /* @__PURE__ */ jsx("li", {
|
|
64
|
-
"aria-hidden": "true",
|
|
65
|
-
className: cn("[&>svg]:size-3.5", className),
|
|
66
|
-
"data-slot": "breadcrumb-separator",
|
|
67
|
-
role: "presentation",
|
|
68
|
-
...props,
|
|
69
|
-
children: children ?? /* @__PURE__ */ jsx(ChevronRightIcon, { className: "rtl:rotate-180" })
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @since 0.3.16-canary.0
|
|
74
|
-
*/
|
|
75
|
-
function BreadcrumbEllipsis({ className, ...props }) {
|
|
76
|
-
return /* @__PURE__ */ jsxs("span", {
|
|
77
|
-
"aria-hidden": "true",
|
|
78
|
-
className: cn("flex size-5 items-center justify-center [&>svg]:size-4", className),
|
|
79
|
-
"data-slot": "breadcrumb-ellipsis",
|
|
80
|
-
role: "presentation",
|
|
81
|
-
...props,
|
|
82
|
-
children: [/* @__PURE__ */ jsx(MoreHorizontalIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
83
|
-
className: "sr-only",
|
|
84
|
-
children: "More"
|
|
85
|
-
})]
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
|
-
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { BubbleReactionsVariants, BubbleVariants } from "../variants/bubble.mjs";
|
|
2
|
-
import { ComponentProps, JSX } from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/bubble.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Vertical stack of consecutive bubbles from one author.
|
|
7
|
-
*
|
|
8
|
-
* @since 0.5.0-canary.3
|
|
9
|
-
*/
|
|
10
|
-
type BubbleGroupProps = ComponentProps<"div">;
|
|
11
|
-
/**
|
|
12
|
-
* @since 0.5.0-canary.3
|
|
13
|
-
*/
|
|
14
|
-
declare function BubbleGroup({
|
|
15
|
-
className,
|
|
16
|
-
...props
|
|
17
|
-
}: BubbleGroupProps): JSX.Element;
|
|
18
|
-
/**
|
|
19
|
-
* Chat bubble wrapper. `variant` colors the content; `align` sets the side.
|
|
20
|
-
*
|
|
21
|
-
* @since 0.5.0-canary.3
|
|
22
|
-
*/
|
|
23
|
-
interface BubbleProps extends ComponentProps<"div">, BubbleVariants {
|
|
24
|
-
align?: "start" | "end";
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @since 0.5.0-canary.3
|
|
28
|
-
*/
|
|
29
|
-
declare function Bubble({
|
|
30
|
-
align,
|
|
31
|
-
className,
|
|
32
|
-
variant,
|
|
33
|
-
...props
|
|
34
|
-
}: BubbleProps): JSX.Element;
|
|
35
|
-
/**
|
|
36
|
-
* The bubble's colored surface; render as a button/link with `asChild`.
|
|
37
|
-
*
|
|
38
|
-
* @since 0.5.0-canary.3
|
|
39
|
-
*/
|
|
40
|
-
interface BubbleContentProps extends ComponentProps<"div"> {
|
|
41
|
-
asChild?: boolean;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @since 0.5.0-canary.3
|
|
45
|
-
*/
|
|
46
|
-
declare function BubbleContent({
|
|
47
|
-
asChild,
|
|
48
|
-
className,
|
|
49
|
-
...props
|
|
50
|
-
}: BubbleContentProps): JSX.Element;
|
|
51
|
-
/**
|
|
52
|
-
* Reaction pill overlapping a bubble corner.
|
|
53
|
-
*
|
|
54
|
-
* @since 0.5.0-canary.3
|
|
55
|
-
*/
|
|
56
|
-
interface BubbleReactionsProps extends ComponentProps<"div">, BubbleReactionsVariants {}
|
|
57
|
-
/**
|
|
58
|
-
* @since 0.5.0-canary.3
|
|
59
|
-
*/
|
|
60
|
-
declare function BubbleReactions({
|
|
61
|
-
align,
|
|
62
|
-
className,
|
|
63
|
-
side,
|
|
64
|
-
...props
|
|
65
|
-
}: BubbleReactionsProps): JSX.Element;
|
|
66
|
-
//#endregion
|
|
67
|
-
export { Bubble, BubbleContent, type BubbleContentProps, BubbleGroup, type BubbleGroupProps, type BubbleProps, BubbleReactions, type BubbleReactionsProps };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { cn } from "../lib/utils.mjs";
|
|
2
|
-
import { bubbleReactionsVariants, bubbleVariants } from "../variants/bubble.mjs";
|
|
3
|
-
import { Slot } from "radix-ui";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/bubble.tsx
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.5.0-canary.3
|
|
8
|
-
*/
|
|
9
|
-
function BubbleGroup({ className, ...props }) {
|
|
10
|
-
return /* @__PURE__ */ jsx("div", {
|
|
11
|
-
className: cn("flex min-w-0 flex-col gap-2", className),
|
|
12
|
-
"data-slot": "bubble-group",
|
|
13
|
-
...props
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @since 0.5.0-canary.3
|
|
18
|
-
*/
|
|
19
|
-
function Bubble({ align = "start", className, variant = "default", ...props }) {
|
|
20
|
-
return /* @__PURE__ */ jsx("div", {
|
|
21
|
-
className: bubbleVariants({
|
|
22
|
-
className,
|
|
23
|
-
variant
|
|
24
|
-
}),
|
|
25
|
-
"data-align": align,
|
|
26
|
-
"data-slot": "bubble",
|
|
27
|
-
"data-variant": variant,
|
|
28
|
-
...props
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @since 0.5.0-canary.3
|
|
33
|
-
*/
|
|
34
|
-
function BubbleContent({ asChild = false, className, ...props }) {
|
|
35
|
-
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "div", {
|
|
36
|
-
className: cn("w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50", className),
|
|
37
|
-
"data-slot": "bubble-content",
|
|
38
|
-
...props
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @since 0.5.0-canary.3
|
|
43
|
-
*/
|
|
44
|
-
function BubbleReactions({ align = "end", className, side = "bottom", ...props }) {
|
|
45
|
-
return /* @__PURE__ */ jsx("div", {
|
|
46
|
-
className: bubbleReactionsVariants({
|
|
47
|
-
align,
|
|
48
|
-
className,
|
|
49
|
-
side
|
|
50
|
-
}),
|
|
51
|
-
"data-align": align,
|
|
52
|
-
"data-side": side,
|
|
53
|
-
"data-slot": "bubble-reactions",
|
|
54
|
-
...props
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
export { Bubble, BubbleContent, BubbleGroup, BubbleReactions };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Separator } from "./separator.mjs";
|
|
2
|
-
import { ButtonGroupVariants } from "../variants/button-group.mjs";
|
|
3
|
-
import { ComponentProps, JSX } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/components/button-group.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
type ButtonGroupProps = ComponentProps<"div"> & ButtonGroupVariants;
|
|
10
|
-
/**
|
|
11
|
-
* @since 0.3.16-canary.0
|
|
12
|
-
*/
|
|
13
|
-
declare function ButtonGroup({
|
|
14
|
-
className,
|
|
15
|
-
orientation,
|
|
16
|
-
...props
|
|
17
|
-
}: ButtonGroupProps): JSX.Element;
|
|
18
|
-
/**
|
|
19
|
-
* @since 0.3.16-canary.0
|
|
20
|
-
*/
|
|
21
|
-
interface ButtonGroupTextProps extends ComponentProps<"div"> {
|
|
22
|
-
asChild?: boolean;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @since 0.3.16-canary.0
|
|
26
|
-
*/
|
|
27
|
-
declare function ButtonGroupText({
|
|
28
|
-
asChild,
|
|
29
|
-
className,
|
|
30
|
-
...props
|
|
31
|
-
}: ButtonGroupTextProps): JSX.Element;
|
|
32
|
-
/**
|
|
33
|
-
* @since 0.3.16-canary.0
|
|
34
|
-
*/
|
|
35
|
-
type ButtonGroupSeparatorProps = ComponentProps<typeof Separator>;
|
|
36
|
-
/**
|
|
37
|
-
* @since 0.3.16-canary.0
|
|
38
|
-
*/
|
|
39
|
-
declare function ButtonGroupSeparator({
|
|
40
|
-
className,
|
|
41
|
-
orientation,
|
|
42
|
-
...props
|
|
43
|
-
}: ButtonGroupSeparatorProps): JSX.Element;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps };
|