@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,135 +0,0 @@
|
|
|
1
|
-
import { cn } from "../lib/utils.mjs";
|
|
2
|
-
import { Separator } from "./separator.mjs";
|
|
3
|
-
import { Label } from "./label.mjs";
|
|
4
|
-
import { fieldVariants } from "../variants/field.mjs";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { useMemo } from "react";
|
|
7
|
-
//#region src/components/field.tsx
|
|
8
|
-
/**
|
|
9
|
-
* @since 0.3.16-canary.0
|
|
10
|
-
*/
|
|
11
|
-
function FieldSet({ className, ...props }) {
|
|
12
|
-
return /* @__PURE__ */ jsx("fieldset", {
|
|
13
|
-
className: cn("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className),
|
|
14
|
-
"data-slot": "field-set",
|
|
15
|
-
...props
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @since 0.3.16-canary.0
|
|
20
|
-
*/
|
|
21
|
-
function FieldLegend({ className, variant = "legend", ...props }) {
|
|
22
|
-
return /* @__PURE__ */ jsx("legend", {
|
|
23
|
-
className: cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className),
|
|
24
|
-
"data-slot": "field-legend",
|
|
25
|
-
"data-variant": variant,
|
|
26
|
-
...props
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @since 0.3.16-canary.0
|
|
31
|
-
*/
|
|
32
|
-
function FieldGroup({ className, ...props }) {
|
|
33
|
-
return /* @__PURE__ */ jsx("div", {
|
|
34
|
-
className: cn("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", className),
|
|
35
|
-
"data-slot": "field-group",
|
|
36
|
-
...props
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @since 0.3.16-canary.0
|
|
41
|
-
*/
|
|
42
|
-
function Field({ className, orientation = "vertical", ...props }) {
|
|
43
|
-
return /* @__PURE__ */ jsx("div", {
|
|
44
|
-
className: fieldVariants({
|
|
45
|
-
className,
|
|
46
|
-
orientation
|
|
47
|
-
}),
|
|
48
|
-
"data-orientation": orientation,
|
|
49
|
-
"data-slot": "field",
|
|
50
|
-
role: "group",
|
|
51
|
-
...props
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @since 0.3.16-canary.0
|
|
56
|
-
*/
|
|
57
|
-
function FieldContent({ className, ...props }) {
|
|
58
|
-
return /* @__PURE__ */ jsx("div", {
|
|
59
|
-
className: cn("group/field-content flex flex-1 flex-col gap-1 leading-snug", className),
|
|
60
|
-
"data-slot": "field-content",
|
|
61
|
-
...props
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* @since 0.3.16-canary.0
|
|
66
|
-
*/
|
|
67
|
-
function FieldLabel({ className, ...props }) {
|
|
68
|
-
return /* @__PURE__ */ jsx(Label, {
|
|
69
|
-
className: cn("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-disabled/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-3 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className),
|
|
70
|
-
"data-slot": "field-label",
|
|
71
|
-
...props
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* @since 0.3.16-canary.0
|
|
76
|
-
*/
|
|
77
|
-
function FieldTitle({ className, ...props }) {
|
|
78
|
-
return /* @__PURE__ */ jsx("div", {
|
|
79
|
-
className: cn("flex w-fit items-center gap-2 text-sm font-medium group-data-disabled/field:opacity-50", className),
|
|
80
|
-
"data-slot": "field-label",
|
|
81
|
-
...props
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @since 0.3.16-canary.0
|
|
86
|
-
*/
|
|
87
|
-
function FieldDescription({ className, ...props }) {
|
|
88
|
-
return /* @__PURE__ */ jsx("p", {
|
|
89
|
-
className: cn("text-start text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
90
|
-
"data-slot": "field-description",
|
|
91
|
-
...props
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* @since 0.3.16-canary.0
|
|
96
|
-
*/
|
|
97
|
-
function FieldSeparator({ children, className, ...props }) {
|
|
98
|
-
const hasContent = Boolean(children);
|
|
99
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
100
|
-
className: cn("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", className),
|
|
101
|
-
"data-content": hasContent,
|
|
102
|
-
"data-slot": "field-separator",
|
|
103
|
-
...props,
|
|
104
|
-
children: [/* @__PURE__ */ jsx(Separator, { className: "absolute inset-0 top-1/2" }), hasContent ? /* @__PURE__ */ jsx("span", {
|
|
105
|
-
className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
|
|
106
|
-
"data-slot": "field-separator-content",
|
|
107
|
-
children
|
|
108
|
-
}) : null]
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* @since 0.3.16-canary.0
|
|
113
|
-
*/
|
|
114
|
-
function FieldError({ children, className, errors, ...props }) {
|
|
115
|
-
const fallbackContent = useMemo(() => {
|
|
116
|
-
if (!errors?.length) return null;
|
|
117
|
-
const uniqueErrors = [...new Map(errors.map((error) => [error?.message, error])).values()];
|
|
118
|
-
if (uniqueErrors.length === 1) return uniqueErrors[0]?.message ?? null;
|
|
119
|
-
return /* @__PURE__ */ jsx("ul", {
|
|
120
|
-
className: "ms-4 flex list-disc flex-col gap-1",
|
|
121
|
-
children: uniqueErrors.map((error) => error?.message ? /* @__PURE__ */ jsx("li", { children: error.message }, error.message) : null)
|
|
122
|
-
});
|
|
123
|
-
}, [errors]);
|
|
124
|
-
const content = children ?? fallbackContent;
|
|
125
|
-
if (content === null || content === void 0 || content === false) return null;
|
|
126
|
-
return /* @__PURE__ */ jsx("div", {
|
|
127
|
-
className: cn("text-sm font-normal text-destructive", className),
|
|
128
|
-
"data-slot": "field-error",
|
|
129
|
-
role: "alert",
|
|
130
|
-
...props,
|
|
131
|
-
children: content
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
//#endregion
|
|
135
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
package/dist/components/form.mjs
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { cn } from "../lib/utils.mjs";
|
|
2
|
-
import { Label as Label$1 } from "./label.mjs";
|
|
3
|
-
import { Slot } from "radix-ui";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { useId } from "react";
|
|
6
|
-
import { Context } from "radix-ui/internal";
|
|
7
|
-
import { Controller, FormProvider, useFormContext, useFormState } from "react-hook-form";
|
|
8
|
-
//#region src/components/form.tsx
|
|
9
|
-
/**
|
|
10
|
-
* @since 0.3.16-canary.0
|
|
11
|
-
*/
|
|
12
|
-
const Form = FormProvider;
|
|
13
|
-
const FORM_FIELD_NAME = "FormField";
|
|
14
|
-
const [createFormFieldContext, createFormFieldScope] = Context.createContextScope(FORM_FIELD_NAME);
|
|
15
|
-
const [FormFieldContextProvider, useFormFieldContext] = createFormFieldContext(FORM_FIELD_NAME);
|
|
16
|
-
function useFormItem(consumerName, scope) {
|
|
17
|
-
const { id } = useFormItemContext(consumerName, scope);
|
|
18
|
-
const { name } = useFormFieldContext(consumerName, scope);
|
|
19
|
-
const { getFieldState } = useFormContext();
|
|
20
|
-
const fieldState = getFieldState(name, useFormState({ name }));
|
|
21
|
-
return {
|
|
22
|
-
formDescriptionId: `form-item-description-${id}`,
|
|
23
|
-
formItemId: `form-item-${id}`,
|
|
24
|
-
formMessageId: `form-item-message-${id}`,
|
|
25
|
-
id,
|
|
26
|
-
name,
|
|
27
|
-
...fieldState
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* @since 0.3.16-canary.0
|
|
32
|
-
*/
|
|
33
|
-
function FormField(formFieldProps) {
|
|
34
|
-
const { __scopeFormField, ...props } = formFieldProps;
|
|
35
|
-
return /* @__PURE__ */ jsx(FormFieldContextProvider, {
|
|
36
|
-
name: props.name,
|
|
37
|
-
scope: __scopeFormField,
|
|
38
|
-
children: /* @__PURE__ */ jsx(Controller, { ...props })
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
const [FormItemContextProvider, useFormItemContext] = createFormFieldContext("FormItem");
|
|
42
|
-
/**
|
|
43
|
-
* @since 0.3.16-canary.0
|
|
44
|
-
*/
|
|
45
|
-
function FormItem({ __scopeFormField, className, ...props }) {
|
|
46
|
-
const id = useId();
|
|
47
|
-
return /* @__PURE__ */ jsx(FormItemContextProvider, {
|
|
48
|
-
id,
|
|
49
|
-
scope: __scopeFormField,
|
|
50
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
51
|
-
className: cn("grid gap-2", className),
|
|
52
|
-
"data-slot": "form-item",
|
|
53
|
-
...props
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
const FORM_LABEL_NAME = "FormLabel";
|
|
58
|
-
/**
|
|
59
|
-
* @since 0.3.16-canary.0
|
|
60
|
-
*/
|
|
61
|
-
function FormLabel({ __scopeFormField, ...props }) {
|
|
62
|
-
const { error, formItemId } = useFormItem(FORM_LABEL_NAME, __scopeFormField);
|
|
63
|
-
return /* @__PURE__ */ jsx(Label$1, {
|
|
64
|
-
"data-invalid": error ? true : void 0,
|
|
65
|
-
"data-slot": "form-label",
|
|
66
|
-
htmlFor: formItemId,
|
|
67
|
-
...props
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
const FORM_CONTROL_NAME = "FormControl";
|
|
71
|
-
/**
|
|
72
|
-
* @since 0.3.16-canary.0
|
|
73
|
-
*/
|
|
74
|
-
function FormControl({ __scopeFormField, ...props }) {
|
|
75
|
-
const { error, formDescriptionId, formItemId, formMessageId } = useFormItem(FORM_CONTROL_NAME, __scopeFormField);
|
|
76
|
-
return /* @__PURE__ */ jsx(Slot.Root, {
|
|
77
|
-
"aria-describedby": error ? `${formDescriptionId} ${formMessageId}` : formDescriptionId,
|
|
78
|
-
"aria-invalid": Boolean(error),
|
|
79
|
-
"data-slot": "form-control",
|
|
80
|
-
id: formItemId,
|
|
81
|
-
...props
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @since 0.3.16-canary.0
|
|
86
|
-
*/
|
|
87
|
-
function FormDescription({ __scopeFormField, className, ...props }) {
|
|
88
|
-
const { formDescriptionId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);
|
|
89
|
-
return /* @__PURE__ */ jsx("p", {
|
|
90
|
-
className: cn("text-xs text-muted-foreground", className),
|
|
91
|
-
"data-slot": "form-description",
|
|
92
|
-
id: formDescriptionId,
|
|
93
|
-
...props
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
const FORM_MESSAGE_NAME = "FormMessage";
|
|
97
|
-
/**
|
|
98
|
-
* @since 0.3.16-canary.0
|
|
99
|
-
*/
|
|
100
|
-
function FormMessage({ __scopeFormField, children, className, ...props }) {
|
|
101
|
-
const { error, formMessageId } = useFormItem(FORM_MESSAGE_NAME, __scopeFormField);
|
|
102
|
-
const body = error?.message ?? children;
|
|
103
|
-
if (!body) return null;
|
|
104
|
-
return /* @__PURE__ */ jsx("p", {
|
|
105
|
-
className: cn("text-xs", error?.message ? "font-medium text-destructive" : "text-muted-foreground", className),
|
|
106
|
-
"data-slot": "form-message",
|
|
107
|
-
id: formMessageId,
|
|
108
|
-
...props,
|
|
109
|
-
children: body
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
//#endregion
|
|
113
|
-
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, createFormFieldScope };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { HoverCard as HoverCard$1 } from "radix-ui";
|
|
2
|
-
import { ComponentProps, JSX } from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/hover-card.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* @since 0.3.16-canary.0
|
|
7
|
-
*/
|
|
8
|
-
type HoverCardProps = ComponentProps<typeof HoverCard$1.Root>;
|
|
9
|
-
/**
|
|
10
|
-
* @since 0.3.16-canary.0
|
|
11
|
-
*/
|
|
12
|
-
declare function HoverCard({
|
|
13
|
-
...props
|
|
14
|
-
}: HoverCardProps): JSX.Element;
|
|
15
|
-
/**
|
|
16
|
-
* @since 0.3.16-canary.0
|
|
17
|
-
*/
|
|
18
|
-
type HoverCardTriggerProps = ComponentProps<typeof HoverCard$1.Trigger>;
|
|
19
|
-
/**
|
|
20
|
-
* @since 0.3.16-canary.0
|
|
21
|
-
*/
|
|
22
|
-
declare function HoverCardTrigger({
|
|
23
|
-
...props
|
|
24
|
-
}: HoverCardTriggerProps): JSX.Element;
|
|
25
|
-
/**
|
|
26
|
-
* @since 0.3.16-canary.0
|
|
27
|
-
*/
|
|
28
|
-
type HoverCardContentProps = ComponentProps<typeof HoverCard$1.Content>;
|
|
29
|
-
/**
|
|
30
|
-
* @since 0.3.16-canary.0
|
|
31
|
-
*/
|
|
32
|
-
declare function HoverCardContent({
|
|
33
|
-
align,
|
|
34
|
-
className,
|
|
35
|
-
sideOffset,
|
|
36
|
-
...props
|
|
37
|
-
}: HoverCardContentProps): JSX.Element;
|
|
38
|
-
/**
|
|
39
|
-
* @since 0.3.16-canary.0
|
|
40
|
-
*/
|
|
41
|
-
type HoverCardArrowProps = ComponentProps<typeof HoverCard$1.Arrow>;
|
|
42
|
-
/**
|
|
43
|
-
* @since 0.3.16-canary.0
|
|
44
|
-
*/
|
|
45
|
-
declare function HoverCardArrow({
|
|
46
|
-
className,
|
|
47
|
-
...props
|
|
48
|
-
}: HoverCardArrowProps): JSX.Element;
|
|
49
|
-
//#endregion
|
|
50
|
-
export { HoverCard, HoverCardArrow, type HoverCardArrowProps, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, type HoverCardTriggerProps };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { cn } from "../lib/utils.mjs";
|
|
2
|
-
import { HoverCard as HoverCard$1 } from "radix-ui";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/hover-card.tsx
|
|
5
|
-
/**
|
|
6
|
-
* @since 0.3.16-canary.0
|
|
7
|
-
*/
|
|
8
|
-
function HoverCard({ ...props }) {
|
|
9
|
-
return /* @__PURE__ */ jsx(HoverCard$1.Root, {
|
|
10
|
-
"data-slot": "hover-card",
|
|
11
|
-
...props
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @since 0.3.16-canary.0
|
|
16
|
-
*/
|
|
17
|
-
function HoverCardTrigger({ ...props }) {
|
|
18
|
-
return /* @__PURE__ */ jsx(HoverCard$1.Trigger, {
|
|
19
|
-
"data-slot": "hover-card-trigger",
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @since 0.3.16-canary.0
|
|
25
|
-
*/
|
|
26
|
-
function HoverCardContent({ align = "center", className, sideOffset = 4, ...props }) {
|
|
27
|
-
return /* @__PURE__ */ jsx(HoverCard$1.Portal, {
|
|
28
|
-
"data-slot": "hover-card-portal",
|
|
29
|
-
children: /* @__PURE__ */ jsx(HoverCard$1.Content, {
|
|
30
|
-
align,
|
|
31
|
-
className: cn("z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-lg bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden ease-snappy data-open:animate-in data-open:animation-duration-popup-in data-open:fade-in-0 data-open:zoom-in-95 data-open:data-side-top:slide-in-from-bottom-2 data-open:data-side-right:slide-in-from-left-2 data-open:data-side-bottom:slide-in-from-top-2 data-open:data-side-left:slide-in-from-right-2 data-closed:animate-out data-closed:ease-exit data-closed:animation-duration-popup-out data-closed:fade-out-0 data-closed:zoom-out-95 data-closed:data-side-top:slide-out-to-bottom-2 data-closed:data-side-right:slide-out-to-left-2 data-closed:data-side-bottom:slide-out-to-top-2 data-closed:data-side-left:slide-out-to-right-2", className),
|
|
32
|
-
"data-slot": "hover-card-content",
|
|
33
|
-
sideOffset,
|
|
34
|
-
...props
|
|
35
|
-
})
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @since 0.3.16-canary.0
|
|
40
|
-
*/
|
|
41
|
-
function HoverCardArrow({ className, ...props }) {
|
|
42
|
-
return /* @__PURE__ */ jsx(HoverCard$1.Arrow, {
|
|
43
|
-
className: cn("fill-popover", className),
|
|
44
|
-
"data-slot": "hover-card-arrow",
|
|
45
|
-
...props
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
49
|
-
export { HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from "./button.mjs";
|
|
2
|
-
import { InputProps } from "./input.mjs";
|
|
3
|
-
import { TextareaProps } from "./textarea.mjs";
|
|
4
|
-
import { InputGroupAddonVariants, InputGroupButtonVariants } from "../variants/input-group.mjs";
|
|
5
|
-
import { ComponentProps, JSX } from "react";
|
|
6
|
-
|
|
7
|
-
//#region src/components/input-group.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* @since 0.3.16-canary.0
|
|
10
|
-
*/
|
|
11
|
-
type InputGroupProps = ComponentProps<"div">;
|
|
12
|
-
/**
|
|
13
|
-
* @since 0.3.16-canary.0
|
|
14
|
-
*/
|
|
15
|
-
declare function InputGroup({
|
|
16
|
-
className,
|
|
17
|
-
...props
|
|
18
|
-
}: InputGroupProps): JSX.Element;
|
|
19
|
-
/**
|
|
20
|
-
* @since 0.3.16-canary.0
|
|
21
|
-
*/
|
|
22
|
-
type InputGroupAddonProps = ComponentProps<"div"> & InputGroupAddonVariants;
|
|
23
|
-
/**
|
|
24
|
-
* @since 0.3.16-canary.0
|
|
25
|
-
*/
|
|
26
|
-
declare function InputGroupAddon({
|
|
27
|
-
align,
|
|
28
|
-
className,
|
|
29
|
-
...props
|
|
30
|
-
}: InputGroupAddonProps): JSX.Element;
|
|
31
|
-
/**
|
|
32
|
-
* @since 0.3.16-canary.0
|
|
33
|
-
*/
|
|
34
|
-
type InputGroupButtonProps = Omit<ButtonProps, "size"> & InputGroupButtonVariants;
|
|
35
|
-
/**
|
|
36
|
-
* @since 0.3.16-canary.0
|
|
37
|
-
*/
|
|
38
|
-
declare function InputGroupButton({
|
|
39
|
-
className,
|
|
40
|
-
size,
|
|
41
|
-
type,
|
|
42
|
-
variant,
|
|
43
|
-
...props
|
|
44
|
-
}: InputGroupButtonProps): JSX.Element;
|
|
45
|
-
/**
|
|
46
|
-
* @since 0.3.16-canary.0
|
|
47
|
-
*/
|
|
48
|
-
type InputGroupTextProps = ComponentProps<"span">;
|
|
49
|
-
/**
|
|
50
|
-
* @since 0.3.16-canary.0
|
|
51
|
-
*/
|
|
52
|
-
declare function InputGroupText({
|
|
53
|
-
className,
|
|
54
|
-
...props
|
|
55
|
-
}: InputGroupTextProps): JSX.Element;
|
|
56
|
-
/**
|
|
57
|
-
* @since 0.3.16-canary.0
|
|
58
|
-
*/
|
|
59
|
-
type InputGroupInputProps = InputProps;
|
|
60
|
-
/**
|
|
61
|
-
* @since 0.3.16-canary.0
|
|
62
|
-
*/
|
|
63
|
-
declare function InputGroupInput({
|
|
64
|
-
className,
|
|
65
|
-
...props
|
|
66
|
-
}: InputGroupInputProps): JSX.Element;
|
|
67
|
-
/**
|
|
68
|
-
* @since 0.3.16-canary.0
|
|
69
|
-
*/
|
|
70
|
-
type InputGroupTextareaProps = TextareaProps;
|
|
71
|
-
/**
|
|
72
|
-
* @since 0.3.16-canary.0
|
|
73
|
-
*/
|
|
74
|
-
declare function InputGroupTextarea({
|
|
75
|
-
className,
|
|
76
|
-
...props
|
|
77
|
-
}: InputGroupTextareaProps): JSX.Element;
|
|
78
|
-
//#endregion
|
|
79
|
-
export { InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputGroupTextarea, type InputGroupTextareaProps };
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { cn } from "../lib/utils.mjs";
|
|
2
|
-
import { Button } from "./button.mjs";
|
|
3
|
-
import { Input } from "./input.mjs";
|
|
4
|
-
import { Textarea } from "./textarea.mjs";
|
|
5
|
-
import { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants } from "../variants/input-group.mjs";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
//#region src/components/input-group.tsx
|
|
8
|
-
/**
|
|
9
|
-
* @since 0.3.16-canary.0
|
|
10
|
-
*/
|
|
11
|
-
function InputGroup({ className, ...props }) {
|
|
12
|
-
return /* @__PURE__ */ jsx("div", {
|
|
13
|
-
className: inputGroupVariants({ className }),
|
|
14
|
-
"data-slot": "input-group",
|
|
15
|
-
role: "group",
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @since 0.3.16-canary.0
|
|
21
|
-
*/
|
|
22
|
-
function InputGroupAddon({ align = "inline-start", className, ...props }) {
|
|
23
|
-
return /* @__PURE__ */ jsx("div", {
|
|
24
|
-
className: inputGroupAddonVariants({
|
|
25
|
-
align,
|
|
26
|
-
className
|
|
27
|
-
}),
|
|
28
|
-
"data-align": align,
|
|
29
|
-
"data-slot": "input-group-addon",
|
|
30
|
-
role: "group",
|
|
31
|
-
onPointerDown: (event) => {
|
|
32
|
-
if (event.target.closest("button")) return;
|
|
33
|
-
event.preventDefault();
|
|
34
|
-
const control = event.currentTarget.parentElement?.querySelector("input, textarea");
|
|
35
|
-
if (control instanceof HTMLElement) control.focus();
|
|
36
|
-
},
|
|
37
|
-
...props
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* @since 0.3.16-canary.0
|
|
42
|
-
*/
|
|
43
|
-
function InputGroupButton({ className, size = "xs", type = "button", variant = "ghost", ...props }) {
|
|
44
|
-
return /* @__PURE__ */ jsx(Button, {
|
|
45
|
-
className: inputGroupButtonVariants({
|
|
46
|
-
size,
|
|
47
|
-
className
|
|
48
|
-
}),
|
|
49
|
-
"data-size": size,
|
|
50
|
-
"data-slot": "input-group-button",
|
|
51
|
-
type,
|
|
52
|
-
variant,
|
|
53
|
-
...props
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @since 0.3.16-canary.0
|
|
58
|
-
*/
|
|
59
|
-
function InputGroupText({ className, ...props }) {
|
|
60
|
-
return /* @__PURE__ */ jsx("span", {
|
|
61
|
-
className: cn("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className),
|
|
62
|
-
"data-slot": "input-group-text",
|
|
63
|
-
...props
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @since 0.3.16-canary.0
|
|
68
|
-
*/
|
|
69
|
-
function InputGroupInput({ className, ...props }) {
|
|
70
|
-
return /* @__PURE__ */ jsx(Input, {
|
|
71
|
-
className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
|
|
72
|
-
"data-slot": "input-group-control",
|
|
73
|
-
...props
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* @since 0.3.16-canary.0
|
|
78
|
-
*/
|
|
79
|
-
function InputGroupTextarea({ className, ...props }) {
|
|
80
|
-
return /* @__PURE__ */ jsx(Textarea, {
|
|
81
|
-
className: cn("flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
|
|
82
|
-
"data-slot": "input-group-control",
|
|
83
|
-
...props
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
//#endregion
|
|
87
|
-
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Field as InputNumberField, InputNumber as InputNumber$1 } from "../primitives/input-number.mjs";
|
|
2
|
-
import { InputNumberVariants } from "../variants/input-number.mjs";
|
|
3
|
-
import { ComponentProps, JSX } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/components/input-number.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
interface InputNumberProps extends ComponentProps<typeof InputNumberField>, ComponentProps<typeof InputNumber$1>, InputNumberVariants {}
|
|
10
|
-
/**
|
|
11
|
-
* @since 0.3.16-canary.0
|
|
12
|
-
*/
|
|
13
|
-
declare function InputNumber({
|
|
14
|
-
ariaDecrementLabel,
|
|
15
|
-
ariaIncrementLabel,
|
|
16
|
-
className,
|
|
17
|
-
defaultValue,
|
|
18
|
-
disabled,
|
|
19
|
-
formatOptions,
|
|
20
|
-
id,
|
|
21
|
-
loaderPosition,
|
|
22
|
-
loading,
|
|
23
|
-
max,
|
|
24
|
-
min,
|
|
25
|
-
onChange,
|
|
26
|
-
prefix,
|
|
27
|
-
readOnly,
|
|
28
|
-
spinner,
|
|
29
|
-
step,
|
|
30
|
-
suffix,
|
|
31
|
-
value,
|
|
32
|
-
variant,
|
|
33
|
-
...props
|
|
34
|
-
}: InputNumberProps): JSX.Element;
|
|
35
|
-
//#endregion
|
|
36
|
-
export { InputNumber, type InputNumberProps };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { buttonVariants } from "../variants/button.mjs";
|
|
2
|
-
import { Spinner } from "./spinner.mjs";
|
|
3
|
-
import { DecrementButton as InputNumberDecrementButton, Field as InputNumberField, IncrementButton as InputNumberIncrementButton, InputNumber as InputNumber$1 } from "../primitives/input-number.mjs";
|
|
4
|
-
import { inputNumberVariants } from "../variants/input-number.mjs";
|
|
5
|
-
import { ChevronDownIcon, ChevronUpIcon, MinusIcon, PlusIcon } from "lucide-react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
//#region src/components/input-number.tsx
|
|
8
|
-
/**
|
|
9
|
-
* @since 0.3.16-canary.0
|
|
10
|
-
*/
|
|
11
|
-
function InputNumber({ ariaDecrementLabel, ariaIncrementLabel, className, defaultValue, disabled, formatOptions, id, loaderPosition, loading, max, min, onChange, prefix, readOnly, spinner, step, suffix, value, variant = "stepper", ...props }) {
|
|
12
|
-
const isSplit = variant === "split";
|
|
13
|
-
const { decrementButton, field, incrementButton, root, stepper, stepperButton } = inputNumberVariants({ variant });
|
|
14
|
-
return /* @__PURE__ */ jsxs(InputNumber$1, {
|
|
15
|
-
ariaDecrementLabel,
|
|
16
|
-
ariaIncrementLabel,
|
|
17
|
-
className: root({ className }),
|
|
18
|
-
"data-slot": "input-number",
|
|
19
|
-
"data-variant": variant,
|
|
20
|
-
defaultValue,
|
|
21
|
-
disabled,
|
|
22
|
-
formatOptions,
|
|
23
|
-
id,
|
|
24
|
-
loaderPosition,
|
|
25
|
-
loading,
|
|
26
|
-
max,
|
|
27
|
-
min,
|
|
28
|
-
prefix,
|
|
29
|
-
readOnly,
|
|
30
|
-
spinner: spinner ?? /* @__PURE__ */ jsx(Spinner, {}, "spinner"),
|
|
31
|
-
step,
|
|
32
|
-
suffix,
|
|
33
|
-
value,
|
|
34
|
-
onChange,
|
|
35
|
-
children: [
|
|
36
|
-
isSplit ? /* @__PURE__ */ jsx(InputNumberDecrementButton, {
|
|
37
|
-
"aria-label": "Decrement",
|
|
38
|
-
className: buttonVariants({
|
|
39
|
-
className: decrementButton(),
|
|
40
|
-
variant: "ghost"
|
|
41
|
-
}),
|
|
42
|
-
"data-slot": "input-number-decrement-button",
|
|
43
|
-
children: /* @__PURE__ */ jsx(MinusIcon, {})
|
|
44
|
-
}) : null,
|
|
45
|
-
/* @__PURE__ */ jsx(InputNumberField, {
|
|
46
|
-
autoCapitalize: "none",
|
|
47
|
-
autoComplete: "off",
|
|
48
|
-
autoCorrect: "off",
|
|
49
|
-
className: field(),
|
|
50
|
-
spellCheck: "false",
|
|
51
|
-
...props
|
|
52
|
-
}),
|
|
53
|
-
isSplit ? /* @__PURE__ */ jsx(InputNumberIncrementButton, {
|
|
54
|
-
"aria-label": "Increment",
|
|
55
|
-
className: buttonVariants({
|
|
56
|
-
className: incrementButton(),
|
|
57
|
-
variant: "ghost"
|
|
58
|
-
}),
|
|
59
|
-
"data-slot": "input-number-increment-button",
|
|
60
|
-
children: /* @__PURE__ */ jsx(PlusIcon, {})
|
|
61
|
-
}) : /* @__PURE__ */ jsxs("div", {
|
|
62
|
-
className: stepper(),
|
|
63
|
-
"data-slot": "input-number-buttons",
|
|
64
|
-
children: [/* @__PURE__ */ jsx(InputNumberIncrementButton, {
|
|
65
|
-
"aria-label": "Increment",
|
|
66
|
-
className: buttonVariants({
|
|
67
|
-
className: stepperButton(),
|
|
68
|
-
variant: "ghost"
|
|
69
|
-
}),
|
|
70
|
-
"data-slot": "input-number-increment-button",
|
|
71
|
-
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-3.5" })
|
|
72
|
-
}), /* @__PURE__ */ jsx(InputNumberDecrementButton, {
|
|
73
|
-
"aria-label": "Decrement",
|
|
74
|
-
className: buttonVariants({
|
|
75
|
-
className: stepperButton(),
|
|
76
|
-
variant: "ghost"
|
|
77
|
-
}),
|
|
78
|
-
"data-slot": "input-number-decrement-button",
|
|
79
|
-
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-3.5" })
|
|
80
|
-
})]
|
|
81
|
-
})
|
|
82
|
-
]
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
//#endregion
|
|
86
|
-
export { InputNumber };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, JSX } from "react";
|
|
2
|
-
import { OTPInput, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from "input-otp";
|
|
3
|
-
|
|
4
|
-
//#region src/components/input-otp.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* @since 0.3.16-canary.0
|
|
7
|
-
*/
|
|
8
|
-
type InputOTPProps = ComponentProps<typeof OTPInput>;
|
|
9
|
-
/**
|
|
10
|
-
* @since 0.3.16-canary.0
|
|
11
|
-
*/
|
|
12
|
-
declare function InputOTP({
|
|
13
|
-
className,
|
|
14
|
-
containerClassName,
|
|
15
|
-
...props
|
|
16
|
-
}: InputOTPProps): JSX.Element;
|
|
17
|
-
/**
|
|
18
|
-
* @since 0.3.16-canary.0
|
|
19
|
-
*/
|
|
20
|
-
type InputOTPGroupProps = ComponentProps<"div">;
|
|
21
|
-
/**
|
|
22
|
-
* @since 0.3.16-canary.0
|
|
23
|
-
*/
|
|
24
|
-
declare function InputOTPGroup({
|
|
25
|
-
className,
|
|
26
|
-
...props
|
|
27
|
-
}: InputOTPGroupProps): JSX.Element;
|
|
28
|
-
/**
|
|
29
|
-
* @since 0.3.16-canary.0
|
|
30
|
-
*/
|
|
31
|
-
interface InputOTPSlotProps extends ComponentProps<"div"> {
|
|
32
|
-
index: number;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @since 0.3.16-canary.0
|
|
36
|
-
*/
|
|
37
|
-
declare function InputOTPSlot({
|
|
38
|
-
className,
|
|
39
|
-
index,
|
|
40
|
-
...props
|
|
41
|
-
}: InputOTPSlotProps): JSX.Element;
|
|
42
|
-
/**
|
|
43
|
-
* @since 0.3.16-canary.0
|
|
44
|
-
*/
|
|
45
|
-
type InputOTPSeparatorProps = ComponentProps<"div">;
|
|
46
|
-
/**
|
|
47
|
-
* @since 0.3.16-canary.0
|
|
48
|
-
*/
|
|
49
|
-
declare function InputOTPSeparator({
|
|
50
|
-
...props
|
|
51
|
-
}: InputOTPSeparatorProps): JSX.Element;
|
|
52
|
-
//#endregion
|
|
53
|
-
export { InputOTP, InputOTPGroup, type InputOTPGroupProps, type InputOTPProps, InputOTPSeparator, type InputOTPSeparatorProps, InputOTPSlot, type InputOTPSlotProps, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS };
|