@codefast/ui 0.5.0-canary.5 → 1.0.0-canary.7
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 +16 -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 +15 -0
- package/dist/components/input-number.d.ts.map +1 -0
- package/dist/components/input-number.js +31 -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 +479 -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/input-number.d.ts +44 -0
- package/dist/variants/input-number.d.ts.map +1 -0
- package/dist/variants/input-number.js +51 -0
- package/dist/variants/input-number.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 +257 -260
- package/src/components/accordion.tsx +1 -1
- package/src/components/alert-dialog.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 +1 -1
- package/src/components/bubble.tsx +1 -1
- package/src/components/button-group.tsx +1 -1
- package/src/components/button.tsx +1 -1
- package/src/components/checkbox.tsx +1 -1
- package/src/components/collapsible.tsx +1 -1
- package/src/components/context-menu.tsx +1 -1
- package/src/components/dialog.tsx +1 -1
- package/src/components/direction.tsx +1 -1
- package/src/components/dropdown-menu.tsx +1 -1
- package/src/components/form.tsx +2 -2
- package/src/components/hover-card.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 +1 -1
- package/src/components/navigation-menu.tsx +1 -1
- package/src/components/popover.tsx +1 -1
- package/src/components/progress.tsx +1 -1
- package/src/components/radio-cards.tsx +1 -1
- package/src/components/radio-group.tsx +1 -1
- package/src/components/scroll-area.tsx +1 -1
- package/src/components/select.tsx +1 -1
- package/src/components/separator.tsx +1 -1
- package/src/components/sheet.tsx +1 -1
- package/src/components/sidebar.tsx +9 -2
- package/src/components/slider.tsx +1 -1
- package/src/components/spinner.tsx +1 -1
- package/src/components/switch.tsx +1 -1
- package/src/components/tabs.tsx +1 -1
- package/src/components/toggle-group.tsx +1 -1
- 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/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
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { VariantProps } from "
|
|
2
|
-
|
|
3
|
-
//#region src/variants/input-group.d.ts
|
|
1
|
+
import type { VariantProps } from "#/lib/utils";
|
|
4
2
|
/**
|
|
5
3
|
* @since 0.3.16-canary.0
|
|
6
4
|
*/
|
|
@@ -9,23 +7,23 @@ declare const inputGroupVariants: import("@codefast/tailwind-variants").VariantR
|
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
10
8
|
*/
|
|
11
9
|
declare const inputGroupAddonVariants: import("@codefast/tailwind-variants").VariantResolver<{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
align: {
|
|
11
|
+
"block-end": string;
|
|
12
|
+
"block-start": string;
|
|
13
|
+
"inline-end": string;
|
|
14
|
+
"inline-start": string;
|
|
15
|
+
};
|
|
18
16
|
}, Record<string, never>>;
|
|
19
17
|
/**
|
|
20
18
|
* @since 0.3.16-canary.0
|
|
21
19
|
*/
|
|
22
20
|
declare const inputGroupButtonVariants: import("@codefast/tailwind-variants").VariantResolver<{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
size: {
|
|
22
|
+
"icon-xs": string;
|
|
23
|
+
"icon-sm": string;
|
|
24
|
+
sm: string;
|
|
25
|
+
xs: string;
|
|
26
|
+
};
|
|
29
27
|
}, Record<string, never>>;
|
|
30
28
|
/**
|
|
31
29
|
* @since 0.3.16-canary.0
|
|
@@ -39,5 +37,6 @@ type InputGroupAddonVariants = VariantProps<typeof inputGroupAddonVariants>;
|
|
|
39
37
|
* @since 0.3.16-canary.0
|
|
40
38
|
*/
|
|
41
39
|
type InputGroupButtonVariants = VariantProps<typeof inputGroupButtonVariants>;
|
|
42
|
-
|
|
43
|
-
export {
|
|
40
|
+
export { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants };
|
|
41
|
+
export type { InputGroupAddonVariants, InputGroupButtonVariants, InputGroupVariants };
|
|
42
|
+
//# sourceMappingURL=input-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../../src/variants/input-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;GAEG;AACH,QAAA,MAAM,kBAAkB,oGAEtB,CAAC;AAMH;;GAEG;AACH,QAAA,MAAM,uBAAuB;;QAOvB,WAAW;QACX,aAAa;QAEb,YAAY;QACZ,cAAc;;yBAGlB,CAAC;AAMH;;GAEG;AACH,QAAA,MAAM,wBAAwB;;QAOxB,SAAS;QACT,SAAS;QACT,EAAE;QACF,EAAE;;yBAGN,CAAC;AAEH;;GAEG;AACH,KAAK,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAElE;;GAEG;AACH,KAAK,uBAAuB,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE5E;;GAEG;AACH,KAAK,wBAAwB,GAAG,YAAY,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAM9E,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,CAAC;AACjF,YAAY,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { tv } from "#/lib/utils";
|
|
2
|
+
/* -----------------------------------------------------------------------------
|
|
3
|
+
* Variant: InputGroup
|
|
4
|
+
* -------------------------------------------------------------------------- */
|
|
5
|
+
/**
|
|
6
|
+
* @since 0.3.16-canary.0
|
|
7
|
+
*/
|
|
8
|
+
const inputGroupVariants = tv({
|
|
9
|
+
base: "group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5",
|
|
10
|
+
});
|
|
11
|
+
/* -----------------------------------------------------------------------------
|
|
12
|
+
* Variant: InputGroupAddon
|
|
13
|
+
* -------------------------------------------------------------------------- */
|
|
14
|
+
/**
|
|
15
|
+
* @since 0.3.16-canary.0
|
|
16
|
+
*/
|
|
17
|
+
const inputGroupAddonVariants = tv({
|
|
18
|
+
base: "flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-disabled/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-3px)] [&>svg:not([class*='size-'])]:size-4",
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
align: "inline-start",
|
|
21
|
+
},
|
|
22
|
+
variants: {
|
|
23
|
+
align: {
|
|
24
|
+
"block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2",
|
|
25
|
+
"block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
|
|
26
|
+
"inline-end": "order-last pe-2 has-[>button]:-me-1 has-[>kbd]:me-[-0.15rem]",
|
|
27
|
+
"inline-start": "order-first ps-2 has-[>button]:-ms-1 has-[>kbd]:ms-[-0.15rem]",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
/* -----------------------------------------------------------------------------
|
|
32
|
+
* Variant: InputGroupButton
|
|
33
|
+
* -------------------------------------------------------------------------- */
|
|
34
|
+
/**
|
|
35
|
+
* @since 0.3.16-canary.0
|
|
36
|
+
*/
|
|
37
|
+
const inputGroupButtonVariants = tv({
|
|
38
|
+
base: "flex items-center gap-2 text-sm shadow-none",
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
size: "xs",
|
|
41
|
+
},
|
|
42
|
+
variants: {
|
|
43
|
+
size: {
|
|
44
|
+
"icon-xs": "size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0",
|
|
45
|
+
"icon-sm": "size-8 p-0 has-[>svg]:p-0",
|
|
46
|
+
sm: "",
|
|
47
|
+
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
/* -----------------------------------------------------------------------------
|
|
52
|
+
* Exports
|
|
53
|
+
* -------------------------------------------------------------------------- */
|
|
54
|
+
export { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants };
|
|
55
|
+
//# sourceMappingURL=input-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-group.js","sourceRoot":"","sources":["../../src/variants/input-group.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,kBAAkB,GAAG,EAAE,CAAC;IAC5B,IAAI,EAAE,8hCAA8hC;CACriC,CAAC,CAAC;AAEH;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,uBAAuB,GAAG,EAAE,CAAC;IACjC,IAAI,EAAE,kPAAkP;IACxP,eAAe,EAAE;QACf,KAAK,EAAE,cAAc;KACtB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,WAAW,EAAE,kGAAkG;YAC/G,aAAa,EACX,mGAAmG;YACrG,YAAY,EAAE,8DAA8D;YAC5E,cAAc,EAAE,+DAA+D;SAChF;KACF;CACF,CAAC,CAAC;AAEH;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,wBAAwB,GAAG,EAAE,CAAC;IAClC,IAAI,EAAE,6CAA6C;IACnD,eAAe,EAAE;QACf,IAAI,EAAE,IAAI;KACX;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,SAAS,EAAE,6DAA6D;YACxE,SAAS,EAAE,2BAA2B;YACtC,EAAE,EAAE,EAAE;YACN,EAAE,EAAE,2FAA2F;SAChG;KACF;CACF,CAAC,CAAC;AAiBH;;gFAEgF;AAEhF,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { VariantProps } from "#/lib/utils";
|
|
2
|
+
/**
|
|
3
|
+
* @since 0.3.16-canary.0
|
|
4
|
+
*/
|
|
5
|
+
declare const inputNumberVariants: import("@codefast/tailwind-variants").VariantResolver<{
|
|
6
|
+
variant: {
|
|
7
|
+
split: {
|
|
8
|
+
field: string;
|
|
9
|
+
};
|
|
10
|
+
stepper: {};
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
/**
|
|
14
|
+
* Split layout: trailing increment button (always on the inline end).
|
|
15
|
+
*/
|
|
16
|
+
incrementButton: string;
|
|
17
|
+
/**
|
|
18
|
+
* Split layout: leading decrement button (always on the inline start).
|
|
19
|
+
*/
|
|
20
|
+
decrementButton: string;
|
|
21
|
+
/**
|
|
22
|
+
* Editable numeric input.
|
|
23
|
+
*/
|
|
24
|
+
field: string;
|
|
25
|
+
/**
|
|
26
|
+
* Outer container.
|
|
27
|
+
*/
|
|
28
|
+
root: string;
|
|
29
|
+
/**
|
|
30
|
+
* Stepper layout: stacked chevron column on the trailing edge.
|
|
31
|
+
*/
|
|
32
|
+
stepper: string;
|
|
33
|
+
/**
|
|
34
|
+
* Stepper layout: individual chevron button (shared by increment/decrement).
|
|
35
|
+
*/
|
|
36
|
+
stepperButton: string;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* @since 0.3.16-canary.0
|
|
40
|
+
*/
|
|
41
|
+
type InputNumberVariants = VariantProps<typeof inputNumberVariants>;
|
|
42
|
+
export { inputNumberVariants };
|
|
43
|
+
export type { InputNumberVariants };
|
|
44
|
+
//# sourceMappingURL=input-number.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-number.d.ts","sourceRoot":"","sources":["../../src/variants/input-number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;GAEG;AACH,QAAA,MAAM,mBAAmB;;QAoCnB,KAAK;YACH,KAAK;;QAEP,OAAO;;;IAlCT;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAEH;;OAEG;;IAGH;;OAEG;;EAWL,CAAC;AAEH;;GAEG;AACH,KAAK,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAMpE,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { tv } from "#/lib/utils";
|
|
2
|
+
/* -----------------------------------------------------------------------------
|
|
3
|
+
* Variant: InputNumber
|
|
4
|
+
* -------------------------------------------------------------------------- */
|
|
5
|
+
/**
|
|
6
|
+
* @since 0.3.16-canary.0
|
|
7
|
+
*/
|
|
8
|
+
const inputNumberVariants = tv({
|
|
9
|
+
defaultVariants: {
|
|
10
|
+
variant: "stepper",
|
|
11
|
+
},
|
|
12
|
+
slots: {
|
|
13
|
+
/**
|
|
14
|
+
* Split layout: trailing increment button (always on the inline end).
|
|
15
|
+
*/
|
|
16
|
+
incrementButton: "order-last h-full w-9 shrink-0 rounded-none rounded-e-[calc(var(--radius-md)-1px)] border-s border-s-input text-muted-foreground group-focus-within/input-number:border-s-ring group-has-aria-invalid/input-number:border-s-destructive focus-visible:bg-ring/50 focus-visible:ring-0 group-has-aria-invalid/input-number:focus-visible:bg-destructive/20 dark:group-has-aria-invalid/input-number:focus-visible:bg-destructive/40",
|
|
17
|
+
/**
|
|
18
|
+
* Split layout: leading decrement button (always on the inline start).
|
|
19
|
+
*/
|
|
20
|
+
decrementButton: "order-first h-full w-9 shrink-0 rounded-none rounded-s-[calc(var(--radius-md)-1px)] border-e border-e-input text-muted-foreground group-focus-within/input-number:border-e-ring group-has-aria-invalid/input-number:border-e-destructive focus-visible:bg-ring/50 focus-visible:ring-0 group-has-aria-invalid/input-number:focus-visible:bg-destructive/20 dark:group-has-aria-invalid/input-number:focus-visible:bg-destructive/40",
|
|
21
|
+
/**
|
|
22
|
+
* Editable numeric input.
|
|
23
|
+
*/
|
|
24
|
+
field: "h-full min-w-0 flex-1 bg-transparent px-2.5 py-1 outline-hidden selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed",
|
|
25
|
+
/**
|
|
26
|
+
* Outer container.
|
|
27
|
+
*/
|
|
28
|
+
root: "group/input-number relative flex h-9 w-full min-w-0 items-center overflow-hidden rounded-md border border-input bg-transparent text-base transition-[color,box-shadow] not-has-disabled:shadow-xs focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-disabled:opacity-50 has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 motion-reduce:transition-none md:text-sm dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
29
|
+
/**
|
|
30
|
+
* Stepper layout: stacked chevron column on the trailing edge.
|
|
31
|
+
*/
|
|
32
|
+
stepper: "order-last grid h-full w-8 shrink-0 divide-y divide-input border-s border-s-input transition-colors group-focus-within/input-number:divide-ring group-focus-within/input-number:border-s-ring group-has-aria-invalid/input-number:divide-destructive group-has-aria-invalid/input-number:border-s-destructive motion-reduce:transition-none *:[button]:focus-visible:bg-ring/50 *:[button]:focus-visible:ring-0 group-has-aria-invalid/input-number:*:[button]:focus-visible:bg-destructive/20 dark:group-has-aria-invalid/input-number:*:[button]:focus-visible:bg-destructive/40",
|
|
33
|
+
/**
|
|
34
|
+
* Stepper layout: individual chevron button (shared by increment/decrement).
|
|
35
|
+
*/
|
|
36
|
+
stepperButton: "h-auto min-w-0 rounded-none px-0 text-muted-foreground",
|
|
37
|
+
},
|
|
38
|
+
variants: {
|
|
39
|
+
variant: {
|
|
40
|
+
split: {
|
|
41
|
+
field: "text-center tabular-nums",
|
|
42
|
+
},
|
|
43
|
+
stepper: {},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
/* -----------------------------------------------------------------------------
|
|
48
|
+
* Exports
|
|
49
|
+
* -------------------------------------------------------------------------- */
|
|
50
|
+
export { inputNumberVariants };
|
|
51
|
+
//# sourceMappingURL=input-number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-number.js","sourceRoot":"","sources":["../../src/variants/input-number.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,mBAAmB,GAAG,EAAE,CAAC;IAC7B,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;IACD,KAAK,EAAE;QACL;;WAEG;QACH,eAAe,EACb,oaAAoa;QACta;;WAEG;QACH,eAAe,EACb,qaAAqa;QACva;;WAEG;QACH,KAAK,EACH,mNAAmN;QACrN;;WAEG;QACH,IAAI,EAAE,ykBAAykB;QAC/kB;;WAEG;QACH,OAAO,EACL,ojBAAojB;QACtjB;;WAEG;QACH,aAAa,EAAE,wDAAwD;KACxE;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,KAAK,EAAE,0BAA0B;aAClC;YACD,OAAO,EAAE,EAAE;SACZ;KACF;CACF,CAAC,CAAC;AAOH;;gFAEgF;AAEhF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,30 +1,28 @@
|
|
|
1
|
-
import { VariantProps } from "
|
|
2
|
-
|
|
3
|
-
//#region src/variants/item.d.ts
|
|
1
|
+
import type { VariantProps } from "#/lib/utils";
|
|
4
2
|
/**
|
|
5
3
|
* @since 0.3.16-canary.0
|
|
6
4
|
*/
|
|
7
5
|
declare const itemVariants: import("@codefast/tailwind-variants").VariantResolver<{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
size: {
|
|
7
|
+
default: string;
|
|
8
|
+
sm: string;
|
|
9
|
+
xs: string;
|
|
10
|
+
};
|
|
11
|
+
variant: {
|
|
12
|
+
default: string;
|
|
13
|
+
muted: string;
|
|
14
|
+
outline: string;
|
|
15
|
+
};
|
|
18
16
|
}, Record<string, never>>;
|
|
19
17
|
/**
|
|
20
18
|
* @since 0.3.16-canary.0
|
|
21
19
|
*/
|
|
22
20
|
declare const itemMediaVariants: import("@codefast/tailwind-variants").VariantResolver<{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
variant: {
|
|
22
|
+
default: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
image: string;
|
|
25
|
+
};
|
|
28
26
|
}, Record<string, never>>;
|
|
29
27
|
/**
|
|
30
28
|
* @since 0.3.16-canary.0
|
|
@@ -34,5 +32,6 @@ type ItemVariants = VariantProps<typeof itemVariants>;
|
|
|
34
32
|
* @since 0.3.16-canary.0
|
|
35
33
|
*/
|
|
36
34
|
type ItemMediaVariants = VariantProps<typeof itemMediaVariants>;
|
|
37
|
-
|
|
38
|
-
export {
|
|
35
|
+
export { itemMediaVariants, itemVariants };
|
|
36
|
+
export type { ItemMediaVariants, ItemVariants };
|
|
37
|
+
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/variants/item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;GAEG;AACH,QAAA,MAAM,YAAY;;QAQZ,OAAO;QACP,EAAE;QACF,EAAE;;;QAGF,OAAO;QACP,KAAK;QACL,OAAO;;yBAGX,CAAC;AAMH;;GAEG;AACH,QAAA,MAAM,iBAAiB;;QAOjB,OAAO;QACP,IAAI;QACJ,KAAK;;yBAIT,CAAC;AAEH;;GAEG;AACH,KAAK,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAEtD;;GAEG;AACH,KAAK,iBAAiB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAMhE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC;AAC3C,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { tv } from "#/lib/utils";
|
|
2
|
+
/* -----------------------------------------------------------------------------
|
|
3
|
+
* Variant: Item
|
|
4
|
+
* -------------------------------------------------------------------------- */
|
|
5
|
+
/**
|
|
6
|
+
* @since 0.3.16-canary.0
|
|
7
|
+
*/
|
|
8
|
+
const itemVariants = tv({
|
|
9
|
+
base: "group/item flex w-full flex-wrap items-center rounded-md border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted",
|
|
10
|
+
defaultVariants: {
|
|
11
|
+
size: "default",
|
|
12
|
+
variant: "default",
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
default: "gap-3.5 px-4 py-3.5",
|
|
17
|
+
sm: "gap-2.5 px-3 py-2.5",
|
|
18
|
+
xs: "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0",
|
|
19
|
+
},
|
|
20
|
+
variant: {
|
|
21
|
+
default: "border-transparent",
|
|
22
|
+
muted: "border-transparent bg-muted/50",
|
|
23
|
+
outline: "border-border",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
/* -----------------------------------------------------------------------------
|
|
28
|
+
* Variant: ItemMedia
|
|
29
|
+
* -------------------------------------------------------------------------- */
|
|
30
|
+
/**
|
|
31
|
+
* @since 0.3.16-canary.0
|
|
32
|
+
*/
|
|
33
|
+
const itemMediaVariants = tv({
|
|
34
|
+
base: "flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none",
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
variant: "default",
|
|
37
|
+
},
|
|
38
|
+
variants: {
|
|
39
|
+
variant: {
|
|
40
|
+
default: "bg-transparent",
|
|
41
|
+
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
42
|
+
image: "size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
/* -----------------------------------------------------------------------------
|
|
47
|
+
* Exports
|
|
48
|
+
* -------------------------------------------------------------------------- */
|
|
49
|
+
export { itemMediaVariants, itemVariants };
|
|
50
|
+
//# sourceMappingURL=item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../src/variants/item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,YAAY,GAAG,EAAE,CAAC;IACtB,IAAI,EAAE,wOAAwO;IAC9O,eAAe,EAAE;QACf,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,qBAAqB;YAC9B,EAAE,EAAE,qBAAqB;YACzB,EAAE,EAAE,4DAA4D;SACjE;QACD,OAAO,EAAE;YACP,OAAO,EAAE,oBAAoB;YAC7B,KAAK,EAAE,gCAAgC;YACvC,OAAO,EAAE,eAAe;SACzB;KACF;CACF,CAAC,CAAC;AAEH;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,iBAAiB,GAAG,EAAE,CAAC;IAC3B,IAAI,EAAE,gMAAgM;IACtM,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,gBAAgB;YACzB,IAAI,EAAE,sCAAsC;YAC5C,KAAK,EACH,6IAA6I;SAChJ;KACF;CACF,CAAC,CAAC;AAYH;;gFAEgF;AAEhF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { VariantProps } from "
|
|
2
|
-
|
|
3
|
-
//#region src/variants/marker.d.ts
|
|
1
|
+
import type { VariantProps } from "#/lib/utils";
|
|
4
2
|
/**
|
|
5
3
|
* Inline chat divider — plain label, centered separator rule, or bottom border.
|
|
6
4
|
*
|
|
7
5
|
* @since 0.5.0-canary.3
|
|
8
6
|
*/
|
|
9
7
|
declare const markerVariants: import("@codefast/tailwind-variants").VariantResolver<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
variant: {
|
|
9
|
+
default: string;
|
|
10
|
+
separator: string;
|
|
11
|
+
border: string;
|
|
12
|
+
};
|
|
15
13
|
}, Record<string, never>>;
|
|
16
14
|
/**
|
|
17
15
|
* @since 0.5.0-canary.3
|
|
18
16
|
*/
|
|
19
17
|
type MarkerVariants = VariantProps<typeof markerVariants>;
|
|
20
|
-
|
|
21
|
-
export {
|
|
18
|
+
export { markerVariants };
|
|
19
|
+
export type { MarkerVariants };
|
|
20
|
+
//# sourceMappingURL=marker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marker.d.ts","sourceRoot":"","sources":["../../src/variants/marker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;;;GAIG;AACH,QAAA,MAAM,cAAc;;QAOd,OAAO;QACP,SAAS;QAET,MAAM;;yBAGV,CAAC;AAEH;;GAEG;AACH,KAAK,cAAc,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAM1D,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { tv } from "#/lib/utils";
|
|
2
|
+
/* -----------------------------------------------------------------------------
|
|
3
|
+
* Variant: Marker
|
|
4
|
+
* -------------------------------------------------------------------------- */
|
|
5
|
+
/**
|
|
6
|
+
* Inline chat divider — plain label, centered separator rule, or bottom border.
|
|
7
|
+
*
|
|
8
|
+
* @since 0.5.0-canary.3
|
|
9
|
+
*/
|
|
10
|
+
const markerVariants = tv({
|
|
11
|
+
base: "group/marker relative flex min-h-4 w-full items-center gap-2 text-start text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground",
|
|
12
|
+
defaultVariants: {
|
|
13
|
+
variant: "default",
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
variant: {
|
|
17
|
+
default: "",
|
|
18
|
+
separator: "before:me-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ms-1 after:h-px after:min-w-0 after:flex-1 after:bg-border",
|
|
19
|
+
border: "border-b border-border pb-2",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
/* -----------------------------------------------------------------------------
|
|
24
|
+
* Exports
|
|
25
|
+
* -------------------------------------------------------------------------- */
|
|
26
|
+
export { markerVariants };
|
|
27
|
+
//# sourceMappingURL=marker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marker.js","sourceRoot":"","sources":["../../src/variants/marker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;;;GAIG;AACH,MAAM,cAAc,GAAG,EAAE,CAAC;IACxB,IAAI,EAAE,2MAA2M;IACjN,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,EAAE;YACX,SAAS,EACP,wIAAwI;YAC1I,MAAM,EAAE,6BAA6B;SACtC;KACF;CACF,CAAC,CAAC;AAOH;;gFAEgF;AAEhF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { VariantProps } from "
|
|
2
|
-
|
|
3
|
-
//#region src/variants/navigation-menu.d.ts
|
|
1
|
+
import type { VariantProps } from "#/lib/utils";
|
|
4
2
|
/**
|
|
5
3
|
* @since 0.3.16-canary.0
|
|
6
4
|
*/
|
|
@@ -9,5 +7,6 @@ declare const navigationMenuTriggerVariants: import("@codefast/tailwind-variants
|
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
10
8
|
*/
|
|
11
9
|
type NavigationMenuTriggerVariants = VariantProps<typeof navigationMenuTriggerVariants>;
|
|
12
|
-
|
|
13
|
-
export {
|
|
10
|
+
export { navigationMenuTriggerVariants };
|
|
11
|
+
export type { NavigationMenuTriggerVariants };
|
|
12
|
+
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/variants/navigation-menu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;GAEG;AACH,QAAA,MAAM,6BAA6B,oGAEjC,CAAC;AAEH;;GAEG;AACH,KAAK,6BAA6B,GAAG,YAAY,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAMxF,OAAO,EAAE,6BAA6B,EAAE,CAAC;AACzC,YAAY,EAAE,6BAA6B,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { tv } from "#/lib/utils";
|
|
2
|
+
/* -----------------------------------------------------------------------------
|
|
3
|
+
* Style: NavigationMenuTrigger
|
|
4
|
+
* -------------------------------------------------------------------------- */
|
|
5
|
+
/**
|
|
6
|
+
* @since 0.3.16-canary.0
|
|
7
|
+
*/
|
|
8
|
+
const navigationMenuTriggerVariants = tv({
|
|
9
|
+
base: "group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted",
|
|
10
|
+
});
|
|
11
|
+
/* -----------------------------------------------------------------------------
|
|
12
|
+
* Exports
|
|
13
|
+
* -------------------------------------------------------------------------- */
|
|
14
|
+
export { navigationMenuTriggerVariants };
|
|
15
|
+
//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","sourceRoot":"","sources":["../../src/variants/navigation-menu.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,6BAA6B,GAAG,EAAE,CAAC;IACvC,IAAI,EAAE,gbAAgb;CACvb,CAAC,CAAC;AAOH;;gFAEgF;AAEhF,OAAO,EAAE,6BAA6B,EAAE,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { VariantProps } from "#/lib/utils";
|
|
2
|
+
/**
|
|
3
|
+
* @since 0.3.16-canary.0
|
|
4
|
+
*/
|
|
5
|
+
declare const progressCircleVariants: import("@codefast/tailwind-variants").VariantResolver<{
|
|
6
|
+
size: {
|
|
7
|
+
sm: {
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
md: {
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
lg: {
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
xl: {
|
|
17
|
+
label: string;
|
|
18
|
+
};
|
|
19
|
+
"2xl": {
|
|
20
|
+
label: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
thickness: {
|
|
24
|
+
regular: {};
|
|
25
|
+
thick: {};
|
|
26
|
+
thin: {};
|
|
27
|
+
};
|
|
28
|
+
variant: {
|
|
29
|
+
default: {
|
|
30
|
+
indicator: string;
|
|
31
|
+
track: string;
|
|
32
|
+
};
|
|
33
|
+
destructive: {
|
|
34
|
+
indicator: string;
|
|
35
|
+
track: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
indicator: string;
|
|
40
|
+
label: string;
|
|
41
|
+
root: string;
|
|
42
|
+
svg: string;
|
|
43
|
+
track: string;
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* @since 0.3.16-canary.0
|
|
47
|
+
*/
|
|
48
|
+
type ProgressCircleVariants = VariantProps<typeof progressCircleVariants>;
|
|
49
|
+
export { progressCircleVariants };
|
|
50
|
+
export type { ProgressCircleVariants };
|
|
51
|
+
//# sourceMappingURL=progress-circle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-circle.d.ts","sourceRoot":"","sources":["../../src/variants/progress-circle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;GAEG;AACH,QAAA,MAAM,sBAAsB;;QAWtB,EAAE;YAAI,KAAK;;QACX,EAAE;YAAI,KAAK;;QACX,EAAE;YAAI,KAAK;;QACX,EAAE;YAAI,KAAK;;QACX,KAAK;YAAI,KAAK;;;;QAEH,OAAO;QAAM,KAAK;QAAM,IAAI;;;QAEvC,OAAO;YAAI,SAAS;YAAkB,KAAK;;QAC3C,WAAW;YAAI,SAAS;YAAsB,KAAK;;;;;;;;;EAGvD,CAAC;AAEH;;GAEG;AACH,KAAK,sBAAsB,GAAG,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAM1E,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { tv } from "#/lib/utils";
|
|
2
|
+
/* -----------------------------------------------------------------------------
|
|
3
|
+
* Variant: ProgressCircle
|
|
4
|
+
* -------------------------------------------------------------------------- */
|
|
5
|
+
/**
|
|
6
|
+
* @since 0.3.16-canary.0
|
|
7
|
+
*/
|
|
8
|
+
const progressCircleVariants = tv({
|
|
9
|
+
defaultVariants: { size: "md", thickness: "regular", variant: "default" },
|
|
10
|
+
slots: {
|
|
11
|
+
indicator: "origin-center",
|
|
12
|
+
label: "absolute inset-0 flex items-center justify-center text-xs font-medium",
|
|
13
|
+
root: "relative inline-flex items-center justify-center",
|
|
14
|
+
svg: "size-full",
|
|
15
|
+
track: "origin-center",
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
size: {
|
|
19
|
+
sm: { label: "text-[0.625rem]" },
|
|
20
|
+
md: { label: "text-xs" },
|
|
21
|
+
lg: { label: "text-sm" },
|
|
22
|
+
xl: { label: "text-base" },
|
|
23
|
+
"2xl": { label: "text-lg" },
|
|
24
|
+
},
|
|
25
|
+
thickness: { regular: {}, thick: {}, thin: {} },
|
|
26
|
+
variant: {
|
|
27
|
+
default: { indicator: "text-primary", track: "text-primary/20" },
|
|
28
|
+
destructive: { indicator: "text-destructive", track: "text-destructive/20" },
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
/* -----------------------------------------------------------------------------
|
|
33
|
+
* Exports
|
|
34
|
+
* -------------------------------------------------------------------------- */
|
|
35
|
+
export { progressCircleVariants };
|
|
36
|
+
//# sourceMappingURL=progress-circle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-circle.js","sourceRoot":"","sources":["../../src/variants/progress-circle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,sBAAsB,GAAG,EAAE,CAAC;IAChC,eAAe,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;IACzE,KAAK,EAAE;QACL,SAAS,EAAE,eAAe;QAC1B,KAAK,EAAE,uEAAuE;QAC9E,IAAI,EAAE,kDAAkD;QACxD,GAAG,EAAE,WAAW;QAChB,KAAK,EAAE,eAAe;KACvB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE;YAChC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;YACxB,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;YACxB,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;YAC1B,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;SAC5B;QACD,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QAC/C,OAAO,EAAE;YACP,OAAO,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,iBAAiB,EAAE;YAChE,WAAW,EAAE,EAAE,SAAS,EAAE,kBAAkB,EAAE,KAAK,EAAE,qBAAqB,EAAE;SAC7E;KACF;CACF,CAAC,CAAC;AAOH;;gFAEgF;AAEhF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { VariantProps } from "#/lib/utils";
|
|
2
|
+
/**
|
|
3
|
+
* @since 0.3.16-canary.0
|
|
4
|
+
*/
|
|
5
|
+
declare const scrollAreaScrollbarVariants: import("@codefast/tailwind-variants").VariantResolver<{
|
|
6
|
+
orientation: {
|
|
7
|
+
horizontal: string;
|
|
8
|
+
vertical: string;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
none: string;
|
|
12
|
+
sm: string;
|
|
13
|
+
md: string;
|
|
14
|
+
lg: string;
|
|
15
|
+
};
|
|
16
|
+
}, Record<string, never>>;
|
|
17
|
+
/**
|
|
18
|
+
* @since 0.3.16-canary.0
|
|
19
|
+
*/
|
|
20
|
+
type ScrollAreaScrollbarVariants = VariantProps<typeof scrollAreaScrollbarVariants>;
|
|
21
|
+
export { scrollAreaScrollbarVariants };
|
|
22
|
+
export type { ScrollAreaScrollbarVariants };
|
|
23
|
+
//# sourceMappingURL=scroll-area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/variants/scroll-area.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD;;GAEG;AACH,QAAA,MAAM,2BAA2B;;QAwC3B,UAAU;QACV,QAAQ;;;QAGR,IAAI;QACJ,EAAE;QACF,EAAE;QACF,EAAE;;yBAGN,CAAC;AAEH;;GAEG;AACH,KAAK,2BAA2B,GAAG,YAAY,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMpF,OAAO,EAAE,2BAA2B,EAAE,CAAC;AACvC,YAAY,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { tv } from "#/lib/utils";
|
|
2
|
+
/* -----------------------------------------------------------------------------
|
|
3
|
+
* Variant: ScrollAreaScrollbar
|
|
4
|
+
* -------------------------------------------------------------------------- */
|
|
5
|
+
/**
|
|
6
|
+
* @since 0.3.16-canary.0
|
|
7
|
+
*/
|
|
8
|
+
const scrollAreaScrollbarVariants = tv({
|
|
9
|
+
base: "flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent",
|
|
10
|
+
compoundVariants: [
|
|
11
|
+
{
|
|
12
|
+
className: "w-1.5",
|
|
13
|
+
orientation: "vertical",
|
|
14
|
+
size: "sm",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
className: "w-2",
|
|
18
|
+
orientation: "vertical",
|
|
19
|
+
size: "md",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
className: "w-2.5",
|
|
23
|
+
orientation: "vertical",
|
|
24
|
+
size: "lg",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
className: "h-1.5",
|
|
28
|
+
orientation: "horizontal",
|
|
29
|
+
size: "sm",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
className: "h-2",
|
|
33
|
+
orientation: "horizontal",
|
|
34
|
+
size: "md",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
className: "h-2.5",
|
|
38
|
+
orientation: "horizontal",
|
|
39
|
+
size: "lg",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
orientation: "vertical",
|
|
44
|
+
size: "md",
|
|
45
|
+
},
|
|
46
|
+
variants: {
|
|
47
|
+
orientation: {
|
|
48
|
+
horizontal: "",
|
|
49
|
+
vertical: "",
|
|
50
|
+
},
|
|
51
|
+
size: {
|
|
52
|
+
none: "",
|
|
53
|
+
sm: "",
|
|
54
|
+
md: "",
|
|
55
|
+
lg: "",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
/* -----------------------------------------------------------------------------
|
|
60
|
+
* Exports
|
|
61
|
+
* -------------------------------------------------------------------------- */
|
|
62
|
+
export { scrollAreaScrollbarVariants };
|
|
63
|
+
//# sourceMappingURL=scroll-area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-area.js","sourceRoot":"","sources":["../../src/variants/scroll-area.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;gFAEgF;AAEhF;;GAEG;AACH,MAAM,2BAA2B,GAAG,EAAE,CAAC;IACrC,IAAI,EAAE,oQAAoQ;IAC1Q,gBAAgB,EAAE;QAChB;YACE,SAAS,EAAE,OAAO;YAClB,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,IAAI;SACX;QACD;YACE,SAAS,EAAE,KAAK;YAChB,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,IAAI;SACX;QACD;YACE,SAAS,EAAE,OAAO;YAClB,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,IAAI;SACX;QACD;YACE,SAAS,EAAE,OAAO;YAClB,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,IAAI;SACX;QACD;YACE,SAAS,EAAE,KAAK;YAChB,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,IAAI;SACX;QACD;YACE,SAAS,EAAE,OAAO;YAClB,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,IAAI;SACX;KACF;IACD,eAAe,EAAE;QACf,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,IAAI;KACX;IACD,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,UAAU,EAAE,EAAE;YACd,QAAQ,EAAE,EAAE;SACb;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,EAAE;YACR,EAAE,EAAE,EAAE;YACN,EAAE,EAAE,EAAE;YACN,EAAE,EAAE,EAAE;SACP;KACF;CACF,CAAC,CAAC;AAOH;;gFAEgF;AAEhF,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|