@codefast/ui 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +24 -16
- package/dist/components/accordion.d.ts.map +1 -1
- package/dist/components/accordion.js +1 -3
- package/dist/components/accordion.js.map +1 -1
- package/dist/components/alert-dialog.d.ts.map +1 -1
- package/dist/components/alert-dialog.js +1 -3
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.d.ts.map +1 -1
- package/dist/components/alert.js +1 -3
- package/dist/components/alert.js.map +1 -1
- package/dist/components/aspect-ratio.d.ts.map +1 -1
- package/dist/components/aspect-ratio.js +1 -3
- package/dist/components/aspect-ratio.js.map +1 -1
- package/dist/components/attachment.d.ts.map +1 -1
- package/dist/components/attachment.js +1 -3
- package/dist/components/attachment.js.map +1 -1
- package/dist/components/avatar.d.ts.map +1 -1
- package/dist/components/avatar.js +1 -3
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.d.ts.map +1 -1
- package/dist/components/badge.js +1 -3
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb.js +1 -3
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/bubble.d.ts.map +1 -1
- package/dist/components/bubble.js +1 -3
- package/dist/components/bubble.js.map +1 -1
- package/dist/components/button-group.d.ts.map +1 -1
- package/dist/components/button-group.js +1 -3
- package/dist/components/button-group.js.map +1 -1
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +1 -3
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +4 -12
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/card.d.ts.map +1 -1
- package/dist/components/card.js +1 -3
- package/dist/components/card.js.map +1 -1
- package/dist/components/carousel.d.ts.map +1 -1
- package/dist/components/carousel.js +5 -15
- package/dist/components/carousel.js.map +1 -1
- package/dist/components/chart.d.ts.map +1 -1
- package/dist/components/chart.js +5 -15
- package/dist/components/chart.js.map +1 -1
- package/dist/components/checkbox-cards.d.ts.map +1 -1
- package/dist/components/checkbox-cards.js +1 -3
- package/dist/components/checkbox-cards.js.map +1 -1
- package/dist/components/checkbox-group.d.ts.map +1 -1
- package/dist/components/checkbox-group.js +1 -3
- package/dist/components/checkbox-group.js.map +1 -1
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +1 -3
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible.js +1 -3
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/command.d.ts.map +1 -1
- package/dist/components/command.js +1 -3
- package/dist/components/command.js.map +1 -1
- package/dist/components/context-menu.d.ts.map +1 -1
- package/dist/components/context-menu.js +1 -3
- package/dist/components/context-menu.js.map +1 -1
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/dialog.js +1 -3
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/direction.d.ts.map +1 -1
- package/dist/components/direction.js +1 -3
- package/dist/components/direction.js.map +1 -1
- package/dist/components/drawer.d.ts.map +1 -1
- package/dist/components/drawer.js +1 -3
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu.js +1 -3
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/empty.d.ts.map +1 -1
- package/dist/components/empty.js +1 -3
- package/dist/components/empty.js.map +1 -1
- package/dist/components/field.d.ts.map +1 -1
- package/dist/components/field.js +1 -3
- package/dist/components/field.js.map +1 -1
- package/dist/components/form.d.ts.map +1 -1
- package/dist/components/form.js +5 -15
- package/dist/components/form.js.map +1 -1
- package/dist/components/hover-card.d.ts.map +1 -1
- package/dist/components/hover-card.js +1 -3
- package/dist/components/hover-card.js.map +1 -1
- package/dist/components/input-group.d.ts.map +1 -1
- package/dist/components/input-group.js +1 -3
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input-number.d.ts.map +1 -1
- package/dist/components/input-number.js +1 -3
- package/dist/components/input-number.js.map +1 -1
- package/dist/components/input-otp.d.ts.map +1 -1
- package/dist/components/input-otp.js +1 -3
- package/dist/components/input-otp.js.map +1 -1
- package/dist/components/input-password.d.ts.map +1 -1
- package/dist/components/input-password.js +1 -3
- package/dist/components/input-password.js.map +1 -1
- package/dist/components/input-search.d.ts.map +1 -1
- package/dist/components/input-search.js +1 -3
- package/dist/components/input-search.js.map +1 -1
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/input.js +1 -3
- package/dist/components/input.js.map +1 -1
- package/dist/components/item.d.ts.map +1 -1
- package/dist/components/item.js +1 -3
- package/dist/components/item.js.map +1 -1
- package/dist/components/kbd.d.ts.map +1 -1
- package/dist/components/kbd.js +1 -3
- package/dist/components/kbd.js.map +1 -1
- package/dist/components/label.d.ts.map +1 -1
- package/dist/components/label.js +1 -3
- package/dist/components/label.js.map +1 -1
- package/dist/components/marker.d.ts.map +1 -1
- package/dist/components/marker.js +1 -3
- package/dist/components/marker.js.map +1 -1
- package/dist/components/menubar.d.ts.map +1 -1
- package/dist/components/menubar.js +1 -3
- package/dist/components/menubar.js.map +1 -1
- package/dist/components/message-scroller.d.ts.map +1 -1
- package/dist/components/message-scroller.js +1 -3
- package/dist/components/message-scroller.js.map +1 -1
- package/dist/components/message.d.ts.map +1 -1
- package/dist/components/message.js +1 -3
- package/dist/components/message.js.map +1 -1
- package/dist/components/native-select.d.ts.map +1 -1
- package/dist/components/native-select.js +1 -3
- package/dist/components/native-select.js.map +1 -1
- package/dist/components/navigation-menu.d.ts.map +1 -1
- package/dist/components/navigation-menu.js +1 -3
- package/dist/components/navigation-menu.js.map +1 -1
- package/dist/components/pagination.d.ts.map +1 -1
- package/dist/components/pagination.js +1 -3
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/popover.d.ts.map +1 -1
- package/dist/components/popover.js +1 -3
- package/dist/components/popover.js.map +1 -1
- package/dist/components/progress-circle.d.ts.map +1 -1
- package/dist/components/progress-circle.js +3 -7
- package/dist/components/progress-circle.js.map +1 -1
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +1 -3
- package/dist/components/progress.js.map +1 -1
- package/dist/components/radio-cards.d.ts.map +1 -1
- package/dist/components/radio-cards.js +1 -3
- package/dist/components/radio-cards.js.map +1 -1
- package/dist/components/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group.js +1 -3
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/radio.d.ts.map +1 -1
- package/dist/components/radio.js +1 -3
- package/dist/components/radio.js.map +1 -1
- package/dist/components/resizable.d.ts.map +1 -1
- package/dist/components/resizable.js +1 -3
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area.js +2 -6
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/select.js +1 -3
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.d.ts.map +1 -1
- package/dist/components/separator.js +1 -3
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.d.ts.map +1 -1
- package/dist/components/sheet.js +1 -3
- package/dist/components/sheet.js.map +1 -1
- package/dist/components/sidebar.d.ts +3 -0
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.js +9 -20
- package/dist/components/sidebar.js.map +1 -1
- package/dist/components/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton.js +1 -3
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.js +1 -3
- package/dist/components/slider.js.map +1 -1
- package/dist/components/sonner.d.ts.map +1 -1
- package/dist/components/sonner.js +1 -3
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/spinner.d.ts.map +1 -1
- package/dist/components/spinner.js +2 -6
- package/dist/components/spinner.js.map +1 -1
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +1 -3
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.d.ts.map +1 -1
- package/dist/components/table.js +1 -3
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +1 -3
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/textarea.d.ts.map +1 -1
- package/dist/components/textarea.js +1 -3
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/toggle-group.d.ts.map +1 -1
- package/dist/components/toggle-group.js +3 -9
- package/dist/components/toggle-group.js.map +1 -1
- package/dist/components/toggle.d.ts.map +1 -1
- package/dist/components/toggle.js +1 -3
- package/dist/components/toggle.js.map +1 -1
- package/dist/components/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip.js +1 -3
- package/dist/components/tooltip.js.map +1 -1
- package/dist/hooks/use-animated-value.d.ts +1 -1
- package/dist/hooks/use-animated-value.js +1 -1
- package/dist/hooks/use-copy-to-clipboard.d.ts +1 -1
- package/dist/hooks/use-copy-to-clipboard.js +1 -1
- package/dist/hooks/use-is-mobile.d.ts +1 -1
- package/dist/hooks/use-is-mobile.js +1 -1
- package/dist/hooks/use-media-query.js +1 -1
- package/dist/hooks/use-message-scroller-commands.d.ts +4 -0
- package/dist/hooks/use-message-scroller-commands.d.ts.map +1 -1
- package/dist/hooks/use-message-scroller-commands.js +4 -3
- package/dist/hooks/use-message-scroller-commands.js.map +1 -1
- package/dist/hooks/use-message-scroller-controller.d.ts +4 -0
- package/dist/hooks/use-message-scroller-controller.d.ts.map +1 -1
- package/dist/hooks/use-message-scroller-controller.js +4 -3
- package/dist/hooks/use-message-scroller-controller.js.map +1 -1
- package/dist/hooks/use-message-scroller-refs.d.ts +7 -0
- package/dist/hooks/use-message-scroller-refs.d.ts.map +1 -1
- package/dist/hooks/use-message-scroller-refs.js +3 -2
- package/dist/hooks/use-message-scroller-refs.js.map +1 -1
- package/dist/hooks/use-pagination.d.ts +1 -1
- package/dist/hooks/use-pagination.js +1 -1
- package/dist/lib/message-scroller/types.d.ts +66 -0
- package/dist/lib/message-scroller/types.d.ts.map +1 -1
- package/dist/lib/message-scroller/types.js +23 -14
- package/dist/lib/message-scroller/types.js.map +1 -1
- package/dist/lib/use-render.d.ts +1 -1
- package/dist/lib/use-render.js +1 -1
- package/dist/primitives/checkbox-group.d.ts.map +1 -1
- package/dist/primitives/checkbox-group.js +3 -9
- package/dist/primitives/checkbox-group.js.map +1 -1
- package/dist/primitives/input-number.d.ts.map +1 -1
- package/dist/primitives/input-number.js +5 -15
- package/dist/primitives/input-number.js.map +1 -1
- package/dist/primitives/input.d.ts.map +1 -1
- package/dist/primitives/input.js +3 -9
- package/dist/primitives/input.js.map +1 -1
- package/dist/primitives/progress-circle.d.ts.map +1 -1
- package/dist/primitives/progress-circle.js +7 -21
- package/dist/primitives/progress-circle.js.map +1 -1
- package/dist/variants/alert.d.ts.map +1 -1
- package/dist/variants/alert.js +2 -6
- package/dist/variants/alert.js.map +1 -1
- package/dist/variants/attachment.d.ts.map +1 -1
- package/dist/variants/attachment.js +3 -9
- package/dist/variants/attachment.js.map +1 -1
- package/dist/variants/badge.d.ts.map +1 -1
- package/dist/variants/badge.js +2 -6
- package/dist/variants/badge.js.map +1 -1
- package/dist/variants/bubble.d.ts.map +1 -1
- package/dist/variants/bubble.js +3 -9
- package/dist/variants/bubble.js.map +1 -1
- package/dist/variants/button-group.d.ts.map +1 -1
- package/dist/variants/button-group.js +2 -6
- package/dist/variants/button-group.js.map +1 -1
- package/dist/variants/button.d.ts.map +1 -1
- package/dist/variants/button.js +2 -6
- package/dist/variants/button.js.map +1 -1
- package/dist/variants/empty.d.ts.map +1 -1
- package/dist/variants/empty.js +2 -6
- package/dist/variants/empty.js.map +1 -1
- package/dist/variants/field.d.ts.map +1 -1
- package/dist/variants/field.js +2 -6
- package/dist/variants/field.js.map +1 -1
- package/dist/variants/input-group.d.ts.map +1 -1
- package/dist/variants/input-group.js +4 -12
- package/dist/variants/input-group.js.map +1 -1
- package/dist/variants/item.d.ts.map +1 -1
- package/dist/variants/item.js +3 -9
- package/dist/variants/item.js.map +1 -1
- package/dist/variants/marker.d.ts.map +1 -1
- package/dist/variants/marker.js +2 -6
- package/dist/variants/marker.js.map +1 -1
- package/dist/variants/navigation-menu.d.ts.map +1 -1
- package/dist/variants/navigation-menu.js +2 -6
- package/dist/variants/navigation-menu.js.map +1 -1
- package/dist/variants/progress-circle.d.ts.map +1 -1
- package/dist/variants/progress-circle.js +2 -6
- package/dist/variants/progress-circle.js.map +1 -1
- package/dist/variants/scroll-area.d.ts.map +1 -1
- package/dist/variants/scroll-area.js +2 -6
- package/dist/variants/scroll-area.js.map +1 -1
- package/dist/variants/separator.d.ts.map +1 -1
- package/dist/variants/separator.js +2 -6
- package/dist/variants/separator.js.map +1 -1
- package/dist/variants/sheet.d.ts.map +1 -1
- package/dist/variants/sheet.js +2 -6
- package/dist/variants/sheet.js.map +1 -1
- package/dist/variants/sidebar.d.ts.map +1 -1
- package/dist/variants/sidebar.js +2 -6
- package/dist/variants/sidebar.js.map +1 -1
- package/dist/variants/tabs.d.ts.map +1 -1
- package/dist/variants/tabs.js +2 -6
- package/dist/variants/tabs.js.map +1 -1
- package/dist/variants/toggle.d.ts.map +1 -1
- package/dist/variants/toggle.js +2 -6
- package/dist/variants/toggle.js.map +1 -1
- package/package.json +11 -10
- package/src/components/accordion.tsx +5 -15
- package/src/components/alert-dialog.tsx +12 -36
- package/src/components/alert.tsx +5 -15
- package/src/components/aspect-ratio.tsx +2 -6
- package/src/components/attachment.tsx +10 -30
- package/src/components/avatar.tsx +7 -21
- package/src/components/badge.tsx +2 -6
- package/src/components/breadcrumb.tsx +8 -24
- package/src/components/bubble.tsx +5 -15
- package/src/components/button-group.tsx +4 -12
- package/src/components/button.tsx +2 -6
- package/src/components/calendar.tsx +6 -18
- package/src/components/card.tsx +8 -24
- package/src/components/carousel.tsx +7 -21
- package/src/components/chart.tsx +11 -33
- package/src/components/checkbox-cards.tsx +3 -9
- package/src/components/checkbox-group.tsx +3 -9
- package/src/components/checkbox.tsx +2 -6
- package/src/components/collapsible.tsx +4 -12
- package/src/components/command.tsx +11 -33
- package/src/components/context-menu.tsx +16 -48
- package/src/components/dialog.tsx +10 -30
- package/src/components/direction.tsx +2 -6
- package/src/components/drawer.tsx +9 -27
- package/src/components/dropdown-menu.tsx +16 -48
- package/src/components/empty.tsx +7 -21
- package/src/components/field.tsx +11 -33
- package/src/components/form.tsx +10 -30
- package/src/components/hover-card.tsx +5 -15
- package/src/components/input-group.tsx +7 -21
- package/src/components/input-number.tsx +6 -18
- package/src/components/input-otp.tsx +5 -15
- package/src/components/input-password.tsx +2 -6
- package/src/components/input-search.tsx +2 -6
- package/src/components/input.tsx +2 -6
- package/src/components/item.tsx +11 -33
- package/src/components/kbd.tsx +2 -6
- package/src/components/label.tsx +2 -6
- package/src/components/marker.tsx +4 -12
- package/src/components/menubar.tsx +17 -51
- package/src/components/message-scroller.tsx +7 -21
- package/src/components/message.tsx +7 -21
- package/src/components/native-select.tsx +4 -12
- package/src/components/navigation-menu.tsx +9 -27
- package/src/components/pagination.tsx +8 -24
- package/src/components/popover.tsx +9 -27
- package/src/components/progress-circle.tsx +4 -10
- package/src/components/progress.tsx +2 -6
- package/src/components/radio-cards.tsx +3 -9
- package/src/components/radio-group.tsx +3 -9
- package/src/components/radio.tsx +2 -6
- package/src/components/resizable.tsx +4 -12
- package/src/components/scroll-area.tsx +4 -12
- package/src/components/select.tsx +11 -33
- package/src/components/separator.tsx +3 -9
- package/src/components/sheet.tsx +10 -30
- package/src/components/sidebar.tsx +28 -77
- package/src/components/skeleton.tsx +2 -6
- package/src/components/slider.tsx +2 -6
- package/src/components/sonner.tsx +2 -6
- package/src/components/spinner.tsx +2 -6
- package/src/components/switch.tsx +2 -6
- package/src/components/table.tsx +9 -27
- package/src/components/tabs.tsx +5 -15
- package/src/components/textarea.tsx +2 -6
- package/src/components/toggle-group.tsx +4 -12
- package/src/components/toggle.tsx +2 -6
- package/src/components/tooltip.tsx +6 -18
- package/src/css/foundation/base.css +3 -9
- package/src/css/foundation/motion.css +2 -6
- package/src/css/foundation/tokens.css +6 -18
- package/src/css/foundation/variants.css +3 -9
- package/src/css/themes/amber.css +4 -12
- package/src/css/themes/blue.css +4 -12
- package/src/css/themes/cyan.css +4 -12
- package/src/css/themes/emerald.css +4 -12
- package/src/css/themes/fuchsia.css +4 -12
- package/src/css/themes/gray.css +4 -12
- package/src/css/themes/green.css +4 -12
- package/src/css/themes/indigo.css +4 -12
- package/src/css/themes/lime.css +4 -12
- package/src/css/themes/neutral.css +4 -12
- package/src/css/themes/orange.css +4 -12
- package/src/css/themes/pink.css +4 -12
- package/src/css/themes/purple.css +4 -12
- package/src/css/themes/red.css +4 -12
- package/src/css/themes/rose.css +4 -12
- package/src/css/themes/sky.css +4 -12
- package/src/css/themes/slate.css +4 -12
- package/src/css/themes/stone.css +4 -12
- package/src/css/themes/teal.css +4 -12
- package/src/css/themes/violet.css +4 -12
- package/src/css/themes/yellow.css +4 -12
- package/src/css/themes/zinc.css +4 -12
- package/src/hooks/use-animated-value.ts +1 -1
- package/src/hooks/use-copy-to-clipboard.ts +1 -1
- package/src/hooks/use-is-mobile.ts +1 -1
- package/src/hooks/use-media-query.ts +1 -1
- package/src/hooks/use-message-scroller-commands.ts +4 -3
- package/src/hooks/use-message-scroller-controller.ts +4 -3
- package/src/hooks/use-message-scroller-refs.ts +7 -5
- package/src/hooks/use-pagination.ts +1 -1
- package/src/lib/message-scroller/types.ts +66 -39
- package/src/lib/use-render.ts +1 -1
- package/src/primitives/checkbox-group.tsx +5 -15
- package/src/primitives/input-number.tsx +8 -24
- package/src/primitives/input.tsx +3 -9
- package/src/primitives/progress-circle.tsx +9 -27
- package/src/variants/alert.ts +2 -6
- package/src/variants/attachment.ts +3 -9
- package/src/variants/badge.ts +2 -6
- package/src/variants/bubble.ts +3 -9
- package/src/variants/button-group.ts +2 -6
- package/src/variants/button.ts +2 -6
- package/src/variants/empty.ts +2 -6
- package/src/variants/field.ts +2 -6
- package/src/variants/input-group.ts +4 -12
- package/src/variants/item.ts +3 -9
- package/src/variants/marker.ts +2 -6
- package/src/variants/navigation-menu.ts +2 -6
- package/src/variants/progress-circle.ts +2 -6
- package/src/variants/scroll-area.ts +2 -6
- package/src/variants/separator.ts +2 -6
- package/src/variants/sheet.ts +2 -6
- package/src/variants/sidebar.ts +2 -6
- package/src/variants/tabs.ts +2 -6
- package/src/variants/toggle.ts +2 -6
|
@@ -4,9 +4,7 @@ import type { ComponentProps, JSX } from "react";
|
|
|
4
4
|
|
|
5
5
|
import { cn } from "#/lib/utils";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
* Component: DropdownMenu
|
|
9
|
-
* -------------------------------------------------------------------------- */
|
|
7
|
+
// ── Component: DropdownMenu ──────────────────────────────────────────────────────────────────────────────────────────
|
|
10
8
|
|
|
11
9
|
/**
|
|
12
10
|
* @since 0.3.16-canary.0
|
|
@@ -20,9 +18,7 @@ function DropdownMenu({ ...props }: DropdownMenuProps): JSX.Element {
|
|
|
20
18
|
return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
* Component: DropdownMenuTrigger
|
|
25
|
-
* -------------------------------------------------------------------------- */
|
|
21
|
+
// ── Component: DropdownMenuTrigger ───────────────────────────────────────────────────────────────────────────────────
|
|
26
22
|
|
|
27
23
|
/**
|
|
28
24
|
* @since 0.3.16-canary.0
|
|
@@ -36,9 +32,7 @@ function DropdownMenuTrigger({ ...props }: DropdownMenuTriggerProps): JSX.Elemen
|
|
|
36
32
|
return <DropdownMenuPrimitive.Trigger data-slot="dropdown-menu-trigger" {...props} />;
|
|
37
33
|
}
|
|
38
34
|
|
|
39
|
-
|
|
40
|
-
* Component: DropdownMenuGroup
|
|
41
|
-
* -------------------------------------------------------------------------- */
|
|
35
|
+
// ── Component: DropdownMenuGroup ─────────────────────────────────────────────────────────────────────────────────────
|
|
42
36
|
|
|
43
37
|
/**
|
|
44
38
|
* @since 0.3.16-canary.0
|
|
@@ -52,9 +46,7 @@ function DropdownMenuGroup({ ...props }: DropdownMenuGroupProps): JSX.Element {
|
|
|
52
46
|
return <DropdownMenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />;
|
|
53
47
|
}
|
|
54
48
|
|
|
55
|
-
|
|
56
|
-
* Component: DropdownMenuSub
|
|
57
|
-
* -------------------------------------------------------------------------- */
|
|
49
|
+
// ── Component: DropdownMenuSub ───────────────────────────────────────────────────────────────────────────────────────
|
|
58
50
|
|
|
59
51
|
/**
|
|
60
52
|
* @since 0.3.16-canary.0
|
|
@@ -68,9 +60,7 @@ function DropdownMenuSub({ ...props }: DropdownMenuSubProps): JSX.Element {
|
|
|
68
60
|
return <DropdownMenuPrimitive.Sub data-slot="dropdown-menu-sub" {...props} />;
|
|
69
61
|
}
|
|
70
62
|
|
|
71
|
-
|
|
72
|
-
* Component: DropdownMenuRadioGroup
|
|
73
|
-
* -------------------------------------------------------------------------- */
|
|
63
|
+
// ── Component: DropdownMenuRadioGroup ────────────────────────────────────────────────────────────────────────────────
|
|
74
64
|
|
|
75
65
|
/**
|
|
76
66
|
* @since 0.3.16-canary.0
|
|
@@ -84,9 +74,7 @@ function DropdownMenuRadioGroup({ ...props }: DropdownMenuRadioGroupProps): JSX.
|
|
|
84
74
|
return <DropdownMenuPrimitive.RadioGroup data-slot="dropdown-menu-radio-group" {...props} />;
|
|
85
75
|
}
|
|
86
76
|
|
|
87
|
-
|
|
88
|
-
* Component: DropdownMenuSubTrigger
|
|
89
|
-
* -------------------------------------------------------------------------- */
|
|
77
|
+
// ── Component: DropdownMenuSubTrigger ────────────────────────────────────────────────────────────────────────────────
|
|
90
78
|
|
|
91
79
|
/**
|
|
92
80
|
* @since 0.3.16-canary.0
|
|
@@ -115,9 +103,7 @@ function DropdownMenuSubTrigger({ children, className, inset, ...props }: Dropdo
|
|
|
115
103
|
);
|
|
116
104
|
}
|
|
117
105
|
|
|
118
|
-
|
|
119
|
-
* Component: DropdownMenuSubContent
|
|
120
|
-
* -------------------------------------------------------------------------- */
|
|
106
|
+
// ── Component: DropdownMenuSubContent ────────────────────────────────────────────────────────────────────────────────
|
|
121
107
|
|
|
122
108
|
/**
|
|
123
109
|
* @since 0.3.16-canary.0
|
|
@@ -142,9 +128,7 @@ function DropdownMenuSubContent({ className, ...props }: DropdownMenuSubContentP
|
|
|
142
128
|
);
|
|
143
129
|
}
|
|
144
130
|
|
|
145
|
-
|
|
146
|
-
* Component: DropdownMenuContent
|
|
147
|
-
* -------------------------------------------------------------------------- */
|
|
131
|
+
// ── Component: DropdownMenuContent ───────────────────────────────────────────────────────────────────────────────────
|
|
148
132
|
|
|
149
133
|
/**
|
|
150
134
|
* @since 0.3.16-canary.0
|
|
@@ -176,9 +160,7 @@ function DropdownMenuContent({
|
|
|
176
160
|
);
|
|
177
161
|
}
|
|
178
162
|
|
|
179
|
-
|
|
180
|
-
* Component: DropdownMenuItem
|
|
181
|
-
* -------------------------------------------------------------------------- */
|
|
163
|
+
// ── Component: DropdownMenuItem ──────────────────────────────────────────────────────────────────────────────────────
|
|
182
164
|
|
|
183
165
|
/**
|
|
184
166
|
* @since 0.3.16-canary.0
|
|
@@ -206,9 +188,7 @@ function DropdownMenuItem({ className, inset, variant = "default", ...props }: D
|
|
|
206
188
|
);
|
|
207
189
|
}
|
|
208
190
|
|
|
209
|
-
|
|
210
|
-
* Component: DropdownMenuCheckboxItem
|
|
211
|
-
* -------------------------------------------------------------------------- */
|
|
191
|
+
// ── Component: DropdownMenuCheckboxItem ──────────────────────────────────────────────────────────────────────────────
|
|
212
192
|
|
|
213
193
|
/**
|
|
214
194
|
* @since 0.3.16-canary.0
|
|
@@ -251,9 +231,7 @@ function DropdownMenuCheckboxItem({
|
|
|
251
231
|
);
|
|
252
232
|
}
|
|
253
233
|
|
|
254
|
-
|
|
255
|
-
* Component: DropdownMenuRadioItem
|
|
256
|
-
* -------------------------------------------------------------------------- */
|
|
234
|
+
// ── Component: DropdownMenuRadioItem ─────────────────────────────────────────────────────────────────────────────────
|
|
257
235
|
|
|
258
236
|
/**
|
|
259
237
|
* @since 0.3.16-canary.0
|
|
@@ -289,9 +267,7 @@ function DropdownMenuRadioItem({ children, className, inset, ...props }: Dropdow
|
|
|
289
267
|
);
|
|
290
268
|
}
|
|
291
269
|
|
|
292
|
-
|
|
293
|
-
* Component: DropdownMenuLabel
|
|
294
|
-
* -------------------------------------------------------------------------- */
|
|
270
|
+
// ── Component: DropdownMenuLabel ─────────────────────────────────────────────────────────────────────────────────────
|
|
295
271
|
|
|
296
272
|
/**
|
|
297
273
|
* @since 0.3.16-canary.0
|
|
@@ -314,9 +290,7 @@ function DropdownMenuLabel({ className, inset, ...props }: DropdownMenuLabelProp
|
|
|
314
290
|
);
|
|
315
291
|
}
|
|
316
292
|
|
|
317
|
-
|
|
318
|
-
* Component: DropdownMenuSeparator
|
|
319
|
-
* -------------------------------------------------------------------------- */
|
|
293
|
+
// ── Component: DropdownMenuSeparator ─────────────────────────────────────────────────────────────────────────────────
|
|
320
294
|
|
|
321
295
|
/**
|
|
322
296
|
* @since 0.3.16-canary.0
|
|
@@ -336,9 +310,7 @@ function DropdownMenuSeparator({ className, ...props }: DropdownMenuSeparatorPro
|
|
|
336
310
|
);
|
|
337
311
|
}
|
|
338
312
|
|
|
339
|
-
|
|
340
|
-
* Component: DropdownMenuShortcut
|
|
341
|
-
* -------------------------------------------------------------------------- */
|
|
313
|
+
// ── Component: DropdownMenuShortcut ──────────────────────────────────────────────────────────────────────────────────
|
|
342
314
|
|
|
343
315
|
/**
|
|
344
316
|
* @since 0.3.16-canary.0
|
|
@@ -361,9 +333,7 @@ function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps
|
|
|
361
333
|
);
|
|
362
334
|
}
|
|
363
335
|
|
|
364
|
-
|
|
365
|
-
* Component: DropdownMenuArrow
|
|
366
|
-
* -------------------------------------------------------------------------- */
|
|
336
|
+
// ── Component: DropdownMenuArrow ─────────────────────────────────────────────────────────────────────────────────────
|
|
367
337
|
|
|
368
338
|
/**
|
|
369
339
|
* @since 0.3.16-canary.0
|
|
@@ -379,9 +349,7 @@ function DropdownMenuArrow({ className, ...props }: DropdownMenuArrowProps): JSX
|
|
|
379
349
|
);
|
|
380
350
|
}
|
|
381
351
|
|
|
382
|
-
|
|
383
|
-
* Exports
|
|
384
|
-
* -------------------------------------------------------------------------- */
|
|
352
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
385
353
|
|
|
386
354
|
export {
|
|
387
355
|
DropdownMenu,
|
package/src/components/empty.tsx
CHANGED
|
@@ -4,9 +4,7 @@ import { cn } from "#/lib/utils";
|
|
|
4
4
|
import type { EmptyMediaVariants } from "#/variants/empty";
|
|
5
5
|
import { emptyMediaVariants } from "#/variants/empty";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
* Component: Empty
|
|
9
|
-
* -------------------------------------------------------------------------- */
|
|
7
|
+
// ── Component: Empty ─────────────────────────────────────────────────────────────────────────────────────────────────
|
|
10
8
|
|
|
11
9
|
/**
|
|
12
10
|
* @since 0.3.16-canary.0
|
|
@@ -29,9 +27,7 @@ function Empty({ className, ...props }: EmptyProps): JSX.Element {
|
|
|
29
27
|
);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
|
|
33
|
-
* Component: EmptyHeader
|
|
34
|
-
* -------------------------------------------------------------------------- */
|
|
30
|
+
// ── Component: EmptyHeader ───────────────────────────────────────────────────────────────────────────────────────────
|
|
35
31
|
|
|
36
32
|
/**
|
|
37
33
|
* @since 0.3.16-canary.0
|
|
@@ -47,9 +43,7 @@ function EmptyHeader({ className, ...props }: EmptyHeaderProps): JSX.Element {
|
|
|
47
43
|
);
|
|
48
44
|
}
|
|
49
45
|
|
|
50
|
-
|
|
51
|
-
* Component: EmptyMedia
|
|
52
|
-
* -------------------------------------------------------------------------- */
|
|
46
|
+
// ── Component: EmptyMedia ────────────────────────────────────────────────────────────────────────────────────────────
|
|
53
47
|
|
|
54
48
|
/**
|
|
55
49
|
* @since 0.3.16-canary.0
|
|
@@ -70,9 +64,7 @@ function EmptyMedia({ className, variant = "default", ...props }: EmptyMediaProp
|
|
|
70
64
|
);
|
|
71
65
|
}
|
|
72
66
|
|
|
73
|
-
|
|
74
|
-
* Component: EmptyTitle
|
|
75
|
-
* -------------------------------------------------------------------------- */
|
|
67
|
+
// ── Component: EmptyTitle ────────────────────────────────────────────────────────────────────────────────────────────
|
|
76
68
|
|
|
77
69
|
/**
|
|
78
70
|
* @since 0.3.16-canary.0
|
|
@@ -92,9 +84,7 @@ function EmptyTitle({ className, ...props }: EmptyTitleProps): JSX.Element {
|
|
|
92
84
|
);
|
|
93
85
|
}
|
|
94
86
|
|
|
95
|
-
|
|
96
|
-
* Component: EmptyDescription
|
|
97
|
-
* -------------------------------------------------------------------------- */
|
|
87
|
+
// ── Component: EmptyDescription ──────────────────────────────────────────────────────────────────────────────────────
|
|
98
88
|
|
|
99
89
|
/**
|
|
100
90
|
* @since 0.3.16-canary.0
|
|
@@ -117,9 +107,7 @@ function EmptyDescription({ className, ...props }: EmptyDescriptionProps): JSX.E
|
|
|
117
107
|
);
|
|
118
108
|
}
|
|
119
109
|
|
|
120
|
-
|
|
121
|
-
* Component: EmptyContent
|
|
122
|
-
* -------------------------------------------------------------------------- */
|
|
110
|
+
// ── Component: EmptyContent ──────────────────────────────────────────────────────────────────────────────────────────
|
|
123
111
|
|
|
124
112
|
/**
|
|
125
113
|
* @since 0.3.16-canary.0
|
|
@@ -139,9 +127,7 @@ function EmptyContent({ className, ...props }: EmptyContentProps): JSX.Element {
|
|
|
139
127
|
);
|
|
140
128
|
}
|
|
141
129
|
|
|
142
|
-
|
|
143
|
-
* Exports
|
|
144
|
-
* -------------------------------------------------------------------------- */
|
|
130
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
145
131
|
|
|
146
132
|
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
|
|
147
133
|
|
package/src/components/field.tsx
CHANGED
|
@@ -7,9 +7,7 @@ import { cn } from "#/lib/utils";
|
|
|
7
7
|
import type { FieldVariants } from "#/variants/field";
|
|
8
8
|
import { fieldVariants } from "#/variants/field";
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
* Component: FieldSet
|
|
12
|
-
* -------------------------------------------------------------------------- */
|
|
10
|
+
// ── Component: FieldSet ──────────────────────────────────────────────────────────────────────────────────────────────
|
|
13
11
|
|
|
14
12
|
/**
|
|
15
13
|
* @since 0.3.16-canary.0
|
|
@@ -32,9 +30,7 @@ function FieldSet({ className, ...props }: FieldSetProps): JSX.Element {
|
|
|
32
30
|
);
|
|
33
31
|
}
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
* Component: FieldLegend
|
|
37
|
-
* -------------------------------------------------------------------------- */
|
|
33
|
+
// ── Component: FieldLegend ───────────────────────────────────────────────────────────────────────────────────────────
|
|
38
34
|
|
|
39
35
|
/**
|
|
40
36
|
* @since 0.3.16-canary.0
|
|
@@ -57,9 +53,7 @@ function FieldLegend({ className, variant = "legend", ...props }: FieldLegendPro
|
|
|
57
53
|
);
|
|
58
54
|
}
|
|
59
55
|
|
|
60
|
-
|
|
61
|
-
* Component: FieldGroup
|
|
62
|
-
* -------------------------------------------------------------------------- */
|
|
56
|
+
// ── Component: FieldGroup ────────────────────────────────────────────────────────────────────────────────────────────
|
|
63
57
|
|
|
64
58
|
/**
|
|
65
59
|
* @since 0.3.16-canary.0
|
|
@@ -82,9 +76,7 @@ function FieldGroup({ className, ...props }: FieldGroupProps): JSX.Element {
|
|
|
82
76
|
);
|
|
83
77
|
}
|
|
84
78
|
|
|
85
|
-
|
|
86
|
-
* Component: Field
|
|
87
|
-
* -------------------------------------------------------------------------- */
|
|
79
|
+
// ── Component: Field ─────────────────────────────────────────────────────────────────────────────────────────────────
|
|
88
80
|
|
|
89
81
|
/**
|
|
90
82
|
* @since 0.3.16-canary.0
|
|
@@ -106,9 +98,7 @@ function Field({ className, orientation = "vertical", ...props }: FieldProps): J
|
|
|
106
98
|
);
|
|
107
99
|
}
|
|
108
100
|
|
|
109
|
-
|
|
110
|
-
* Component: FieldContent
|
|
111
|
-
* -------------------------------------------------------------------------- */
|
|
101
|
+
// ── Component: FieldContent ──────────────────────────────────────────────────────────────────────────────────────────
|
|
112
102
|
|
|
113
103
|
/**
|
|
114
104
|
* @since 0.3.16-canary.0
|
|
@@ -128,9 +118,7 @@ function FieldContent({ className, ...props }: FieldContentProps): JSX.Element {
|
|
|
128
118
|
);
|
|
129
119
|
}
|
|
130
120
|
|
|
131
|
-
|
|
132
|
-
* Component: FieldLabel
|
|
133
|
-
* -------------------------------------------------------------------------- */
|
|
121
|
+
// ── Component: FieldLabel ────────────────────────────────────────────────────────────────────────────────────────────
|
|
134
122
|
|
|
135
123
|
/**
|
|
136
124
|
* @since 0.3.16-canary.0
|
|
@@ -154,9 +142,7 @@ function FieldLabel({ className, ...props }: FieldLabelProps): JSX.Element {
|
|
|
154
142
|
);
|
|
155
143
|
}
|
|
156
144
|
|
|
157
|
-
|
|
158
|
-
* Component: FieldTitle
|
|
159
|
-
* -------------------------------------------------------------------------- */
|
|
145
|
+
// ── Component: FieldTitle ────────────────────────────────────────────────────────────────────────────────────────────
|
|
160
146
|
|
|
161
147
|
/**
|
|
162
148
|
* @since 0.3.16-canary.0
|
|
@@ -179,9 +165,7 @@ function FieldTitle({ className, ...props }: FieldTitleProps): JSX.Element {
|
|
|
179
165
|
);
|
|
180
166
|
}
|
|
181
167
|
|
|
182
|
-
|
|
183
|
-
* Component: FieldDescription
|
|
184
|
-
* -------------------------------------------------------------------------- */
|
|
168
|
+
// ── Component: FieldDescription ──────────────────────────────────────────────────────────────────────────────────────
|
|
185
169
|
|
|
186
170
|
/**
|
|
187
171
|
* @since 0.3.16-canary.0
|
|
@@ -206,9 +190,7 @@ function FieldDescription({ className, ...props }: FieldDescriptionProps): JSX.E
|
|
|
206
190
|
);
|
|
207
191
|
}
|
|
208
192
|
|
|
209
|
-
|
|
210
|
-
* Component: FieldSeparator
|
|
211
|
-
* -------------------------------------------------------------------------- */
|
|
193
|
+
// ── Component: FieldSeparator ────────────────────────────────────────────────────────────────────────────────────────
|
|
212
194
|
|
|
213
195
|
/**
|
|
214
196
|
* @since 0.3.16-canary.0
|
|
@@ -243,9 +225,7 @@ function FieldSeparator({ children, className, ...props }: FieldSeparatorProps):
|
|
|
243
225
|
);
|
|
244
226
|
}
|
|
245
227
|
|
|
246
|
-
|
|
247
|
-
* Component: FieldError
|
|
248
|
-
* -------------------------------------------------------------------------- */
|
|
228
|
+
// ── Component: FieldError ────────────────────────────────────────────────────────────────────────────────────────────
|
|
249
229
|
|
|
250
230
|
interface FieldErrorMessage {
|
|
251
231
|
message?: string;
|
|
@@ -298,9 +278,7 @@ function FieldError({ children, className, errors, ...props }: FieldErrorProps):
|
|
|
298
278
|
);
|
|
299
279
|
}
|
|
300
280
|
|
|
301
|
-
|
|
302
|
-
* Exports
|
|
303
|
-
* -------------------------------------------------------------------------- */
|
|
281
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
304
282
|
|
|
305
283
|
export {
|
|
306
284
|
Field,
|
package/src/components/form.tsx
CHANGED
|
@@ -9,9 +9,7 @@ import { Controller, FormProvider, useFormContext, useFormState } from "react-ho
|
|
|
9
9
|
import { Label } from "#/components/label";
|
|
10
10
|
import { cn } from "#/lib/utils";
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
* Component: Form
|
|
14
|
-
* -------------------------------------------------------------------------- */
|
|
12
|
+
// ── Component: Form ──────────────────────────────────────────────────────────────────────────────────────────────────
|
|
15
13
|
|
|
16
14
|
/**
|
|
17
15
|
* @since 0.3.16-canary.0
|
|
@@ -23,9 +21,7 @@ type FormProps = ComponentProps<typeof FormProvider>;
|
|
|
23
21
|
*/
|
|
24
22
|
const Form: typeof FormProvider = FormProvider;
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
* Context: FormField
|
|
28
|
-
* -------------------------------------------------------------------------- */
|
|
24
|
+
// ── Context: FormField ───────────────────────────────────────────────────────────────────────────────────────────────
|
|
29
25
|
|
|
30
26
|
const FORM_FIELD_NAME = "FormField";
|
|
31
27
|
|
|
@@ -73,9 +69,7 @@ function useFormItem(
|
|
|
73
69
|
};
|
|
74
70
|
}
|
|
75
71
|
|
|
76
|
-
|
|
77
|
-
* Component: FormField
|
|
78
|
-
* -------------------------------------------------------------------------- */
|
|
72
|
+
// ── Component: FormField ─────────────────────────────────────────────────────────────────────────────────────────────
|
|
79
73
|
|
|
80
74
|
/**
|
|
81
75
|
* @since 0.3.16-canary.0
|
|
@@ -101,9 +95,7 @@ function FormField<
|
|
|
101
95
|
);
|
|
102
96
|
}
|
|
103
97
|
|
|
104
|
-
|
|
105
|
-
* Context: FormItem
|
|
106
|
-
* -------------------------------------------------------------------------- */
|
|
98
|
+
// ── Context: FormItem ────────────────────────────────────────────────────────────────────────────────────────────────
|
|
107
99
|
|
|
108
100
|
const FORM_ITEM_NAME = "FormItem";
|
|
109
101
|
|
|
@@ -113,9 +105,7 @@ interface FormItemContextValue {
|
|
|
113
105
|
|
|
114
106
|
const [FormItemContextProvider, useFormItemContext] = createFormFieldContext<FormItemContextValue>(FORM_ITEM_NAME);
|
|
115
107
|
|
|
116
|
-
|
|
117
|
-
* Component: FormItem
|
|
118
|
-
* -------------------------------------------------------------------------- */
|
|
108
|
+
// ── Component: FormItem ──────────────────────────────────────────────────────────────────────────────────────────────
|
|
119
109
|
|
|
120
110
|
/**
|
|
121
111
|
* @since 0.3.16-canary.0
|
|
@@ -135,9 +125,7 @@ function FormItem({ __scopeFormField, className, ...props }: ScopedProps<FormIte
|
|
|
135
125
|
);
|
|
136
126
|
}
|
|
137
127
|
|
|
138
|
-
|
|
139
|
-
* Component: FormLabel
|
|
140
|
-
* -------------------------------------------------------------------------- */
|
|
128
|
+
// ── Component: FormLabel ─────────────────────────────────────────────────────────────────────────────────────────────
|
|
141
129
|
|
|
142
130
|
const FORM_LABEL_NAME = "FormLabel";
|
|
143
131
|
|
|
@@ -155,9 +143,7 @@ function FormLabel({ __scopeFormField, ...props }: ScopedProps<FormLabelProps>):
|
|
|
155
143
|
return <Label data-invalid={error ? true : undefined} data-slot="form-label" htmlFor={formItemId} {...props} />;
|
|
156
144
|
}
|
|
157
145
|
|
|
158
|
-
|
|
159
|
-
* Component: FormControl
|
|
160
|
-
* -------------------------------------------------------------------------- */
|
|
146
|
+
// ── Component: FormControl ───────────────────────────────────────────────────────────────────────────────────────────
|
|
161
147
|
|
|
162
148
|
const FORM_CONTROL_NAME = "FormControl";
|
|
163
149
|
|
|
@@ -183,9 +169,7 @@ function FormControl({ __scopeFormField, ...props }: ScopedProps<FormControlProp
|
|
|
183
169
|
);
|
|
184
170
|
}
|
|
185
171
|
|
|
186
|
-
|
|
187
|
-
* Component: FormDescription
|
|
188
|
-
* -------------------------------------------------------------------------- */
|
|
172
|
+
// ── Component: FormDescription ───────────────────────────────────────────────────────────────────────────────────────
|
|
189
173
|
|
|
190
174
|
/**
|
|
191
175
|
* @since 0.3.16-canary.0
|
|
@@ -208,9 +192,7 @@ function FormDescription({ __scopeFormField, className, ...props }: ScopedProps<
|
|
|
208
192
|
);
|
|
209
193
|
}
|
|
210
194
|
|
|
211
|
-
|
|
212
|
-
* Component: FormMessage
|
|
213
|
-
* -------------------------------------------------------------------------- */
|
|
195
|
+
// ── Component: FormMessage ───────────────────────────────────────────────────────────────────────────────────────────
|
|
214
196
|
|
|
215
197
|
const FORM_MESSAGE_NAME = "FormMessage";
|
|
216
198
|
|
|
@@ -242,9 +224,7 @@ function FormMessage({ __scopeFormField, children, className, ...props }: Scoped
|
|
|
242
224
|
);
|
|
243
225
|
}
|
|
244
226
|
|
|
245
|
-
|
|
246
|
-
* Exports
|
|
247
|
-
* -------------------------------------------------------------------------- */
|
|
227
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
248
228
|
|
|
249
229
|
export type {
|
|
250
230
|
FormControlProps,
|
|
@@ -3,9 +3,7 @@ import type { ComponentProps, JSX } from "react";
|
|
|
3
3
|
|
|
4
4
|
import { cn } from "#/lib/utils";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
* Component: HoverCard
|
|
8
|
-
* -------------------------------------------------------------------------- */
|
|
6
|
+
// ── Component: HoverCard ─────────────────────────────────────────────────────────────────────────────────────────────
|
|
9
7
|
|
|
10
8
|
/**
|
|
11
9
|
* @since 0.3.16-canary.0
|
|
@@ -19,9 +17,7 @@ function HoverCard({ ...props }: HoverCardProps): JSX.Element {
|
|
|
19
17
|
return <HoverCardPrimitive.Root data-slot="hover-card" {...props} />;
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
* Component: HoverCardTrigger
|
|
24
|
-
* -------------------------------------------------------------------------- */
|
|
20
|
+
// ── Component: HoverCardTrigger ──────────────────────────────────────────────────────────────────────────────────────
|
|
25
21
|
|
|
26
22
|
/**
|
|
27
23
|
* @since 0.3.16-canary.0
|
|
@@ -35,9 +31,7 @@ function HoverCardTrigger({ ...props }: HoverCardTriggerProps): JSX.Element {
|
|
|
35
31
|
return <HoverCardPrimitive.Trigger data-slot="hover-card-trigger" {...props} />;
|
|
36
32
|
}
|
|
37
33
|
|
|
38
|
-
|
|
39
|
-
* Component: HoverCardContent
|
|
40
|
-
* -------------------------------------------------------------------------- */
|
|
34
|
+
// ── Component: HoverCardContent ──────────────────────────────────────────────────────────────────────────────────────
|
|
41
35
|
|
|
42
36
|
/**
|
|
43
37
|
* @since 0.3.16-canary.0
|
|
@@ -69,9 +63,7 @@ function HoverCardContent({
|
|
|
69
63
|
);
|
|
70
64
|
}
|
|
71
65
|
|
|
72
|
-
|
|
73
|
-
* Component: HoverCardArrow
|
|
74
|
-
* -------------------------------------------------------------------------- */
|
|
66
|
+
// ── Component: HoverCardArrow ────────────────────────────────────────────────────────────────────────────────────────
|
|
75
67
|
|
|
76
68
|
/**
|
|
77
69
|
* @since 0.3.16-canary.0
|
|
@@ -85,9 +77,7 @@ function HoverCardArrow({ className, ...props }: HoverCardArrowProps): JSX.Eleme
|
|
|
85
77
|
return <HoverCardPrimitive.Arrow className={cn("fill-popover", className)} data-slot="hover-card-arrow" {...props} />;
|
|
86
78
|
}
|
|
87
79
|
|
|
88
|
-
|
|
89
|
-
* Exports
|
|
90
|
-
* -------------------------------------------------------------------------- */
|
|
80
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
91
81
|
|
|
92
82
|
export { HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger };
|
|
93
83
|
export type { HoverCardArrowProps, HoverCardContentProps, HoverCardProps, HoverCardTriggerProps };
|
|
@@ -10,9 +10,7 @@ import { cn } from "#/lib/utils";
|
|
|
10
10
|
import type { InputGroupAddonVariants, InputGroupButtonVariants } from "#/variants/input-group";
|
|
11
11
|
import { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants } from "#/variants/input-group";
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
* Component: InputGroup
|
|
15
|
-
* -------------------------------------------------------------------------- */
|
|
13
|
+
// ── Component: InputGroup ────────────────────────────────────────────────────────────────────────────────────────────
|
|
16
14
|
|
|
17
15
|
/**
|
|
18
16
|
* @since 0.3.16-canary.0
|
|
@@ -26,9 +24,7 @@ function InputGroup({ className, ...props }: InputGroupProps): JSX.Element {
|
|
|
26
24
|
return <div className={inputGroupVariants({ className })} data-slot="input-group" role="group" {...props} />;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
* Component: InputGroupAddon
|
|
31
|
-
* -------------------------------------------------------------------------- */
|
|
27
|
+
// ── Component: InputGroupAddon ───────────────────────────────────────────────────────────────────────────────────────
|
|
32
28
|
|
|
33
29
|
/**
|
|
34
30
|
* @since 0.3.16-canary.0
|
|
@@ -63,9 +59,7 @@ function InputGroupAddon({ align = "inline-start", className, ...props }: InputG
|
|
|
63
59
|
);
|
|
64
60
|
}
|
|
65
61
|
|
|
66
|
-
|
|
67
|
-
* Component: InputGroupButton
|
|
68
|
-
* -------------------------------------------------------------------------- */
|
|
62
|
+
// ── Component: InputGroupButton ──────────────────────────────────────────────────────────────────────────────────────
|
|
69
63
|
|
|
70
64
|
/**
|
|
71
65
|
* @since 0.3.16-canary.0
|
|
@@ -94,9 +88,7 @@ function InputGroupButton({
|
|
|
94
88
|
);
|
|
95
89
|
}
|
|
96
90
|
|
|
97
|
-
|
|
98
|
-
* Component: InputGroupText
|
|
99
|
-
* -------------------------------------------------------------------------- */
|
|
91
|
+
// ── Component: InputGroupText ────────────────────────────────────────────────────────────────────────────────────────
|
|
100
92
|
|
|
101
93
|
/**
|
|
102
94
|
* @since 0.3.16-canary.0
|
|
@@ -119,9 +111,7 @@ function InputGroupText({ className, ...props }: InputGroupTextProps): JSX.Eleme
|
|
|
119
111
|
);
|
|
120
112
|
}
|
|
121
113
|
|
|
122
|
-
|
|
123
|
-
* Component: InputGroupInput
|
|
124
|
-
* -------------------------------------------------------------------------- */
|
|
114
|
+
// ── Component: InputGroupInput ───────────────────────────────────────────────────────────────────────────────────────
|
|
125
115
|
|
|
126
116
|
/**
|
|
127
117
|
* @since 0.3.16-canary.0
|
|
@@ -144,9 +134,7 @@ function InputGroupInput({ className, ...props }: InputGroupInputProps): JSX.Ele
|
|
|
144
134
|
);
|
|
145
135
|
}
|
|
146
136
|
|
|
147
|
-
|
|
148
|
-
* Component: InputGroupTextarea
|
|
149
|
-
* -------------------------------------------------------------------------- */
|
|
137
|
+
// ── Component: InputGroupTextarea ────────────────────────────────────────────────────────────────────────────────────
|
|
150
138
|
|
|
151
139
|
/**
|
|
152
140
|
* @since 0.3.16-canary.0
|
|
@@ -169,9 +157,7 @@ function InputGroupTextarea({ className, ...props }: InputGroupTextareaProps): J
|
|
|
169
157
|
);
|
|
170
158
|
}
|
|
171
159
|
|
|
172
|
-
|
|
173
|
-
* Exports
|
|
174
|
-
* -------------------------------------------------------------------------- */
|
|
160
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
175
161
|
|
|
176
162
|
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
177
163
|
|