@codefast/ui 0.5.0 → 0.6.0
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 +28 -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
|
@@ -6,9 +6,7 @@ import { useControllableState } from "radix-ui/internal";
|
|
|
6
6
|
import type { ComponentProps, JSX } from "react";
|
|
7
7
|
import { useCallback } from "react";
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
* Context: CheckboxGroup
|
|
11
|
-
* --------------------------------------------------------------------------- */
|
|
9
|
+
// ── Context: CheckboxGroup ───────────────────────────────────────────────────────────────────────────────────────────
|
|
12
10
|
|
|
13
11
|
const CHECKBOX_GROUP_NAME = "CheckboxGroup";
|
|
14
12
|
|
|
@@ -70,9 +68,7 @@ interface CheckboxGroupContextValue {
|
|
|
70
68
|
const [CheckboxGroupContextProvider, useCheckboxGroupContext] =
|
|
71
69
|
createCheckboxGroupContext<CheckboxGroupContextValue>(CHECKBOX_GROUP_NAME);
|
|
72
70
|
|
|
73
|
-
|
|
74
|
-
* Component: CheckboxGroup
|
|
75
|
-
* --------------------------------------------------------------------------- */
|
|
71
|
+
// ── Component: CheckboxGroup ─────────────────────────────────────────────────────────────────────────────────────────
|
|
76
72
|
|
|
77
73
|
/**
|
|
78
74
|
* Base props for the CheckboxGroup component
|
|
@@ -218,9 +214,7 @@ function CheckboxGroup({
|
|
|
218
214
|
);
|
|
219
215
|
}
|
|
220
216
|
|
|
221
|
-
|
|
222
|
-
* Component: CheckboxGroupItem
|
|
223
|
-
* --------------------------------------------------------------------------- */
|
|
217
|
+
// ── Component: CheckboxGroupItem ─────────────────────────────────────────────────────────────────────────────────────
|
|
224
218
|
const ITEM_NAME = "CheckboxGroupItem";
|
|
225
219
|
|
|
226
220
|
/**
|
|
@@ -300,9 +294,7 @@ function CheckboxGroupItem({
|
|
|
300
294
|
);
|
|
301
295
|
}
|
|
302
296
|
|
|
303
|
-
|
|
304
|
-
* Component: CheckboxGroupIndicator
|
|
305
|
-
* --------------------------------------------------------------------------- */
|
|
297
|
+
// ── Component: CheckboxGroupIndicator ────────────────────────────────────────────────────────────────────────────────
|
|
306
298
|
|
|
307
299
|
/**
|
|
308
300
|
* Props for the CheckboxGroupIndicator component
|
|
@@ -328,9 +320,7 @@ function CheckboxGroupIndicator({
|
|
|
328
320
|
return <CheckboxPrimitive.Indicator {...checkboxScope} {...props} />;
|
|
329
321
|
}
|
|
330
322
|
|
|
331
|
-
|
|
332
|
-
* Exports
|
|
333
|
-
* -------------------------------------------------------------------------- */
|
|
323
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
334
324
|
|
|
335
325
|
export {
|
|
336
326
|
CheckboxGroup,
|
|
@@ -16,9 +16,7 @@ import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
|
16
16
|
import * as InputPrimitive from "#/primitives/input";
|
|
17
17
|
import { createInputScope } from "#/primitives/input";
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
* Context: InputNumber
|
|
21
|
-
* -------------------------------------------------------------------------- */
|
|
19
|
+
// ── Context: InputNumber ─────────────────────────────────────────────────────────────────────────────────────────────
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
22
|
* The name of the InputNumber component constant.
|
|
@@ -143,9 +141,7 @@ interface InputNumberContextValue {
|
|
|
143
141
|
const [InputNumberContextProvider, useInputNumberContext] =
|
|
144
142
|
createInputNumberContext<InputNumberContextValue>(NUMBER_INPUT_NAME);
|
|
145
143
|
|
|
146
|
-
|
|
147
|
-
* Component: InputNumber
|
|
148
|
-
* -------------------------------------------------------------------------- */
|
|
144
|
+
// ── Component: InputNumber ───────────────────────────────────────────────────────────────────────────────────────────
|
|
149
145
|
|
|
150
146
|
/**
|
|
151
147
|
* Props for the main InputNumber component.
|
|
@@ -386,9 +382,7 @@ function InputNumber(numberInputProps: ScopedProps<InputNumberProps>): JSX.Eleme
|
|
|
386
382
|
);
|
|
387
383
|
}
|
|
388
384
|
|
|
389
|
-
|
|
390
|
-
* Component: InputNumberField
|
|
391
|
-
* -------------------------------------------------------------------------- */
|
|
385
|
+
// ── Component: InputNumberField ──────────────────────────────────────────────────────────────────────────────────────
|
|
392
386
|
|
|
393
387
|
/**
|
|
394
388
|
* The name of the InputNumberField component constant.
|
|
@@ -711,9 +705,7 @@ function InputNumberField({
|
|
|
711
705
|
);
|
|
712
706
|
}
|
|
713
707
|
|
|
714
|
-
|
|
715
|
-
* Component: NumberStepperButton
|
|
716
|
-
* -------------------------------------------------------------------------- */
|
|
708
|
+
// ── Component: NumberStepperButton ───────────────────────────────────────────────────────────────────────────────────
|
|
717
709
|
|
|
718
710
|
/**
|
|
719
711
|
* The name of the NumberStepperButton component constant.
|
|
@@ -853,9 +845,7 @@ function NumberStepperButton({
|
|
|
853
845
|
);
|
|
854
846
|
}
|
|
855
847
|
|
|
856
|
-
|
|
857
|
-
* Component: InputNumberIncrementButton
|
|
858
|
-
* -------------------------------------------------------------------------- */
|
|
848
|
+
// ── Component: InputNumberIncrementButton ────────────────────────────────────────────────────────────────────────────
|
|
859
849
|
|
|
860
850
|
/**
|
|
861
851
|
* @since 0.3.16-canary.0
|
|
@@ -869,9 +859,7 @@ function InputNumberIncrementButton(props: InputNumberIncrementButtonProps): JSX
|
|
|
869
859
|
return <NumberStepperButton operation="increment" {...props} />;
|
|
870
860
|
}
|
|
871
861
|
|
|
872
|
-
|
|
873
|
-
* Component: InputNumberDecrementButton
|
|
874
|
-
* -------------------------------------------------------------------------- */
|
|
862
|
+
// ── Component: InputNumberDecrementButton ────────────────────────────────────────────────────────────────────────────
|
|
875
863
|
|
|
876
864
|
/**
|
|
877
865
|
* @since 0.3.16-canary.0
|
|
@@ -885,9 +873,7 @@ function InputNumberDecrementButton(props: InputNumberDecrementButtonProps): JSX
|
|
|
885
873
|
return <NumberStepperButton operation="decrement" {...props} />;
|
|
886
874
|
}
|
|
887
875
|
|
|
888
|
-
|
|
889
|
-
* Utility Functions
|
|
890
|
-
* -------------------------------------------------------------------------- */
|
|
876
|
+
// ── Utility Functions ────────────────────────────────────────────────────────────────────────────────────────────────
|
|
891
877
|
|
|
892
878
|
/**
|
|
893
879
|
* Chains multiple callbacks into a single function
|
|
@@ -1022,9 +1008,7 @@ function roundToStep(value: number, step: number): number {
|
|
|
1022
1008
|
return Number(value.toFixed(fractionDigits));
|
|
1023
1009
|
}
|
|
1024
1010
|
|
|
1025
|
-
|
|
1026
|
-
* Exports
|
|
1027
|
-
* -------------------------------------------------------------------------- */
|
|
1011
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
1028
1012
|
|
|
1029
1013
|
export {
|
|
1030
1014
|
createInputNumberScope,
|
package/src/primitives/input.tsx
CHANGED
|
@@ -3,9 +3,7 @@ import { Context } from "radix-ui/internal";
|
|
|
3
3
|
import type { ComponentProps, JSX, PointerEventHandler, PropsWithChildren, ReactNode, RefObject } from "react";
|
|
4
4
|
import { useRef } from "react";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
* Component: Input
|
|
8
|
-
* -------------------------------------------------------------------------- */
|
|
6
|
+
// ── Component: Input ─────────────────────────────────────────────────────────────────────────────────────────────────
|
|
9
7
|
|
|
10
8
|
const INPUT_NAME = "Input";
|
|
11
9
|
|
|
@@ -188,9 +186,7 @@ function Input(inputProps: ScopedProps<InputProps>): JSX.Element {
|
|
|
188
186
|
);
|
|
189
187
|
}
|
|
190
188
|
|
|
191
|
-
|
|
192
|
-
* Component: InputField
|
|
193
|
-
* -------------------------------------------------------------------------- */
|
|
189
|
+
// ── Component: InputField ────────────────────────────────────────────────────────────────────────────────────────────
|
|
194
190
|
|
|
195
191
|
const INPUT_FIELD_NAME = "InputField";
|
|
196
192
|
|
|
@@ -218,9 +214,7 @@ function InputField({ __scopeInput, ...props }: ScopedProps<InputFieldProps>): J
|
|
|
218
214
|
return <input ref={composedInputRef} disabled={disabled} readOnly={readOnly} type="text" {...props} />;
|
|
219
215
|
}
|
|
220
216
|
|
|
221
|
-
|
|
222
|
-
* Exports
|
|
223
|
-
* -------------------------------------------------------------------------- */
|
|
217
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
224
218
|
|
|
225
219
|
export { createInputScope, InputField as Field, Input, InputField, Input as Root };
|
|
226
220
|
|
|
@@ -2,9 +2,7 @@ import { Context } from "radix-ui/internal";
|
|
|
2
2
|
import type { ComponentProps, ReactNode } from "react";
|
|
3
3
|
import { useId, useMemo } from "react";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
* Context: ProgressCircleProvider
|
|
7
|
-
* --------------------------------------------------------------------------- */
|
|
5
|
+
// ── Context: ProgressCircleProvider ──────────────────────────────────────────────────────────────────────────────────
|
|
8
6
|
|
|
9
7
|
const PROGRESS_CIRCLE_PROVIDER_NAME = "ProgressCircleProvider";
|
|
10
8
|
|
|
@@ -111,9 +109,7 @@ const [createProgressCircleContext, createProgressCircleScope] =
|
|
|
111
109
|
const [ProgressCircleContextProvider, useProgressCircleContext] =
|
|
112
110
|
createProgressCircleContext<ProgressCircleContextValue>(PROGRESS_CIRCLE_PROVIDER_NAME);
|
|
113
111
|
|
|
114
|
-
|
|
115
|
-
* Component: ProgressCircleProvider
|
|
116
|
-
* --------------------------------------------------------------------------- */
|
|
112
|
+
// ── Component: ProgressCircleProvider ────────────────────────────────────────────────────────────────────────────────
|
|
117
113
|
|
|
118
114
|
/**
|
|
119
115
|
* @since 0.3.16-canary.0
|
|
@@ -287,9 +283,7 @@ function ProgressCircleProvider({
|
|
|
287
283
|
);
|
|
288
284
|
}
|
|
289
285
|
|
|
290
|
-
|
|
291
|
-
* Component: ProgressCircle
|
|
292
|
-
* --------------------------------------------------------------------------- */
|
|
286
|
+
// ── Component: ProgressCircle ────────────────────────────────────────────────────────────────────────────────────────
|
|
293
287
|
|
|
294
288
|
/**
|
|
295
289
|
* @since 0.3.16-canary.0
|
|
@@ -307,9 +301,7 @@ function ProgressCircle({ __scopeProgressCircle, ...props }: ScopedProps<Progres
|
|
|
307
301
|
return <div {...props} />;
|
|
308
302
|
}
|
|
309
303
|
|
|
310
|
-
|
|
311
|
-
* Component: ProgressCircleSVG
|
|
312
|
-
* --------------------------------------------------------------------------- */
|
|
304
|
+
// ── Component: ProgressCircleSVG ─────────────────────────────────────────────────────────────────────────────────────
|
|
313
305
|
|
|
314
306
|
const PROGRESS_CIRCLE_SVG_NAME = "ProgressCircleSVG";
|
|
315
307
|
|
|
@@ -348,9 +340,7 @@ function ProgressCircleSVG({ __scopeProgressCircle, ...props }: ScopedProps<Prog
|
|
|
348
340
|
);
|
|
349
341
|
}
|
|
350
342
|
|
|
351
|
-
|
|
352
|
-
* Component: ProgressCircleTrack
|
|
353
|
-
* --------------------------------------------------------------------------- */
|
|
343
|
+
// ── Component: ProgressCircleTrack ───────────────────────────────────────────────────────────────────────────────────
|
|
354
344
|
|
|
355
345
|
const PROGRESS_CIRCLE_TRACK_NAME = "ProgressCircleTrack";
|
|
356
346
|
|
|
@@ -385,9 +375,7 @@ function ProgressCircleTrack({ __scopeProgressCircle, ...props }: ScopedProps<Pr
|
|
|
385
375
|
);
|
|
386
376
|
}
|
|
387
377
|
|
|
388
|
-
|
|
389
|
-
* Component: ProgressCircleIndicator
|
|
390
|
-
* --------------------------------------------------------------------------- */
|
|
378
|
+
// ── Component: ProgressCircleIndicator ───────────────────────────────────────────────────────────────────────────────
|
|
391
379
|
|
|
392
380
|
const PROGRESS_CIRCLE_INDICATOR_NAME = "ProgressCircleIndicator";
|
|
393
381
|
|
|
@@ -427,9 +415,7 @@ function ProgressCircleIndicator({
|
|
|
427
415
|
);
|
|
428
416
|
}
|
|
429
417
|
|
|
430
|
-
|
|
431
|
-
* Component: ProgressCircleValue
|
|
432
|
-
* --------------------------------------------------------------------------- */
|
|
418
|
+
// ── Component: ProgressCircleValue ───────────────────────────────────────────────────────────────────────────────────
|
|
433
419
|
|
|
434
420
|
const PROGRESS_CIRCLE_VALUE_NAME = "ProgressCircleValue";
|
|
435
421
|
|
|
@@ -461,9 +447,7 @@ function ProgressCircleValue({
|
|
|
461
447
|
return <div {...props}>{children ?? valueText}</div>;
|
|
462
448
|
}
|
|
463
449
|
|
|
464
|
-
|
|
465
|
-
* Helpers
|
|
466
|
-
* -------------------------------------------------------------------------- */
|
|
450
|
+
// ── Helpers ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
467
451
|
|
|
468
452
|
/**
|
|
469
453
|
* Clamps a value within a specified min/max range
|
|
@@ -477,9 +461,7 @@ function clamp(min: number, max: number, value: number): number {
|
|
|
477
461
|
return Math.min(max, Math.max(min, value));
|
|
478
462
|
}
|
|
479
463
|
|
|
480
|
-
|
|
481
|
-
* Exports
|
|
482
|
-
* -------------------------------------------------------------------------- */
|
|
464
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
483
465
|
|
|
484
466
|
export {
|
|
485
467
|
createProgressCircleScope,
|
package/src/variants/alert.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: Alert
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: Alert ───────────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
@@ -26,9 +24,7 @@ const alertVariants = tv({
|
|
|
26
24
|
*/
|
|
27
25
|
type AlertVariants = VariantProps<typeof alertVariants>;
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
* Exports
|
|
31
|
-
* -------------------------------------------------------------------------- */
|
|
27
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
32
28
|
|
|
33
29
|
export { alertVariants };
|
|
34
30
|
export type { AlertVariants };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: Attachment
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: Attachment ──────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* File/media attachment card. Size drives padding for the media and content
|
|
@@ -36,9 +34,7 @@ const attachmentVariants = tv({
|
|
|
36
34
|
*/
|
|
37
35
|
type AttachmentVariants = VariantProps<typeof attachmentVariants>;
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
* Variant: AttachmentMedia
|
|
41
|
-
* -------------------------------------------------------------------------- */
|
|
37
|
+
// ── Variant: AttachmentMedia ─────────────────────────────────────────────────────────────────────────────────────────
|
|
42
38
|
|
|
43
39
|
/**
|
|
44
40
|
* Media thumbnail — an icon tile or a cover image that reacts to attachment
|
|
@@ -65,9 +61,7 @@ const attachmentMediaVariants = tv({
|
|
|
65
61
|
*/
|
|
66
62
|
type AttachmentMediaVariants = VariantProps<typeof attachmentMediaVariants>;
|
|
67
63
|
|
|
68
|
-
|
|
69
|
-
* Exports
|
|
70
|
-
* -------------------------------------------------------------------------- */
|
|
64
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
71
65
|
|
|
72
66
|
export { attachmentMediaVariants, attachmentVariants };
|
|
73
67
|
export type { AttachmentMediaVariants, AttachmentVariants };
|
package/src/variants/badge.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: Badge
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: Badge ───────────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
@@ -31,9 +29,7 @@ const badgeVariants = tv({
|
|
|
31
29
|
*/
|
|
32
30
|
type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
* Exports
|
|
36
|
-
* -------------------------------------------------------------------------- */
|
|
32
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
37
33
|
|
|
38
34
|
export { badgeVariants };
|
|
39
35
|
export type { BadgeVariants };
|
package/src/variants/bubble.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: Bubble
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: Bubble ──────────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* Chat bubble surface. Variants paint the nested `bubble-content`, so the color
|
|
@@ -41,9 +39,7 @@ const bubbleVariants = tv({
|
|
|
41
39
|
*/
|
|
42
40
|
type BubbleVariants = VariantProps<typeof bubbleVariants>;
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
* Variant: BubbleReactions
|
|
46
|
-
* -------------------------------------------------------------------------- */
|
|
42
|
+
// ── Variant: BubbleReactions ─────────────────────────────────────────────────────────────────────────────────────────
|
|
47
43
|
|
|
48
44
|
/**
|
|
49
45
|
* Reaction pill anchored to a bubble corner.
|
|
@@ -73,9 +69,7 @@ const bubbleReactionsVariants = tv({
|
|
|
73
69
|
*/
|
|
74
70
|
type BubbleReactionsVariants = VariantProps<typeof bubbleReactionsVariants>;
|
|
75
71
|
|
|
76
|
-
|
|
77
|
-
* Exports
|
|
78
|
-
* -------------------------------------------------------------------------- */
|
|
72
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
79
73
|
|
|
80
74
|
export { bubbleReactionsVariants, bubbleVariants };
|
|
81
75
|
export type { BubbleReactionsVariants, BubbleVariants };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: ButtonGroup
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: ButtonGroup ─────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
@@ -28,9 +26,7 @@ const buttonGroupVariants = tv({
|
|
|
28
26
|
*/
|
|
29
27
|
type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
* Exports
|
|
33
|
-
* -------------------------------------------------------------------------- */
|
|
29
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
34
30
|
|
|
35
31
|
export { buttonGroupVariants };
|
|
36
32
|
export type { ButtonGroupVariants };
|
package/src/variants/button.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: Button
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: Button ──────────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
@@ -47,9 +45,7 @@ const buttonVariants = tv({
|
|
|
47
45
|
*/
|
|
48
46
|
type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
49
47
|
|
|
50
|
-
|
|
51
|
-
* Exports
|
|
52
|
-
* -------------------------------------------------------------------------- */
|
|
48
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
53
49
|
|
|
54
50
|
export { buttonVariants };
|
|
55
51
|
export type { ButtonVariants };
|
package/src/variants/empty.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: EmptyMedia
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: EmptyMedia ──────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
@@ -26,9 +24,7 @@ const emptyMediaVariants = tv({
|
|
|
26
24
|
*/
|
|
27
25
|
type EmptyMediaVariants = VariantProps<typeof emptyMediaVariants>;
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
* Exports
|
|
31
|
-
* -------------------------------------------------------------------------- */
|
|
27
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
32
28
|
|
|
33
29
|
export { emptyMediaVariants };
|
|
34
30
|
export type { EmptyMediaVariants };
|
package/src/variants/field.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: Field
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: Field ───────────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
@@ -29,9 +27,7 @@ const fieldVariants = tv({
|
|
|
29
27
|
*/
|
|
30
28
|
type FieldVariants = VariantProps<typeof fieldVariants>;
|
|
31
29
|
|
|
32
|
-
|
|
33
|
-
* Exports
|
|
34
|
-
* -------------------------------------------------------------------------- */
|
|
30
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
35
31
|
|
|
36
32
|
export { fieldVariants };
|
|
37
33
|
export type { FieldVariants };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: InputGroup
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: InputGroup ──────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
@@ -12,9 +10,7 @@ const inputGroupVariants = tv({
|
|
|
12
10
|
base: "group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5",
|
|
13
11
|
});
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
* Variant: InputGroupAddon
|
|
17
|
-
* -------------------------------------------------------------------------- */
|
|
13
|
+
// ── Variant: InputGroupAddon ─────────────────────────────────────────────────────────────────────────────────────────
|
|
18
14
|
|
|
19
15
|
/**
|
|
20
16
|
* @since 0.3.16-canary.0
|
|
@@ -35,9 +31,7 @@ const inputGroupAddonVariants = tv({
|
|
|
35
31
|
},
|
|
36
32
|
});
|
|
37
33
|
|
|
38
|
-
|
|
39
|
-
* Variant: InputGroupButton
|
|
40
|
-
* -------------------------------------------------------------------------- */
|
|
34
|
+
// ── Variant: InputGroupButton ────────────────────────────────────────────────────────────────────────────────────────
|
|
41
35
|
|
|
42
36
|
/**
|
|
43
37
|
* @since 0.3.16-canary.0
|
|
@@ -72,9 +66,7 @@ type InputGroupAddonVariants = VariantProps<typeof inputGroupAddonVariants>;
|
|
|
72
66
|
*/
|
|
73
67
|
type InputGroupButtonVariants = VariantProps<typeof inputGroupButtonVariants>;
|
|
74
68
|
|
|
75
|
-
|
|
76
|
-
* Exports
|
|
77
|
-
* -------------------------------------------------------------------------- */
|
|
69
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
78
70
|
|
|
79
71
|
export { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants };
|
|
80
72
|
export type { InputGroupAddonVariants, InputGroupButtonVariants, InputGroupVariants };
|
package/src/variants/item.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: Item
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: Item ────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
@@ -28,9 +26,7 @@ const itemVariants = tv({
|
|
|
28
26
|
},
|
|
29
27
|
});
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
* Variant: ItemMedia
|
|
33
|
-
* -------------------------------------------------------------------------- */
|
|
29
|
+
// ── Variant: ItemMedia ───────────────────────────────────────────────────────────────────────────────────────────────
|
|
34
30
|
|
|
35
31
|
/**
|
|
36
32
|
* @since 0.3.16-canary.0
|
|
@@ -60,9 +56,7 @@ type ItemVariants = VariantProps<typeof itemVariants>;
|
|
|
60
56
|
*/
|
|
61
57
|
type ItemMediaVariants = VariantProps<typeof itemMediaVariants>;
|
|
62
58
|
|
|
63
|
-
|
|
64
|
-
* Exports
|
|
65
|
-
* -------------------------------------------------------------------------- */
|
|
59
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
66
60
|
|
|
67
61
|
export { itemMediaVariants, itemVariants };
|
|
68
62
|
export type { ItemMediaVariants, ItemVariants };
|
package/src/variants/marker.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: Marker
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: Marker ──────────────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* Inline chat divider — plain label, centered separator rule, or bottom border.
|
|
@@ -30,9 +28,7 @@ const markerVariants = tv({
|
|
|
30
28
|
*/
|
|
31
29
|
type MarkerVariants = VariantProps<typeof markerVariants>;
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
* Exports
|
|
35
|
-
* -------------------------------------------------------------------------- */
|
|
31
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
36
32
|
|
|
37
33
|
export { markerVariants };
|
|
38
34
|
export type { MarkerVariants };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Style: NavigationMenuTrigger
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Style: NavigationMenuTrigger ─────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
@@ -17,9 +15,7 @@ const navigationMenuTriggerVariants = tv({
|
|
|
17
15
|
*/
|
|
18
16
|
type NavigationMenuTriggerVariants = VariantProps<typeof navigationMenuTriggerVariants>;
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
* Exports
|
|
22
|
-
* -------------------------------------------------------------------------- */
|
|
18
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
23
19
|
|
|
24
20
|
export { navigationMenuTriggerVariants };
|
|
25
21
|
export type { NavigationMenuTriggerVariants };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "#/lib/utils";
|
|
2
2
|
import { tv } from "#/lib/utils";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Variant: ProgressCircle
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Variant: ProgressCircle ──────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
@@ -38,9 +36,7 @@ const progressCircleVariants = tv({
|
|
|
38
36
|
*/
|
|
39
37
|
type ProgressCircleVariants = VariantProps<typeof progressCircleVariants>;
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
* Exports
|
|
43
|
-
* -------------------------------------------------------------------------- */
|
|
39
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
44
40
|
|
|
45
41
|
export { progressCircleVariants };
|
|
46
42
|
export type { ProgressCircleVariants };
|