@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
package/dist/variants/toggle.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { tv } from "#/lib/utils";
|
|
2
|
-
|
|
3
|
-
* Variant: Toggle
|
|
4
|
-
* -------------------------------------------------------------------------- */
|
|
2
|
+
// ── Variant: Toggle ──────────────────────────────────────────────────────────────────────────────────────────────────
|
|
5
3
|
/**
|
|
6
4
|
* @since 0.3.16-canary.0
|
|
7
5
|
*/
|
|
@@ -23,8 +21,6 @@ const toggleVariants = tv({
|
|
|
23
21
|
},
|
|
24
22
|
},
|
|
25
23
|
});
|
|
26
|
-
|
|
27
|
-
* Exports
|
|
28
|
-
* -------------------------------------------------------------------------- */
|
|
24
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
29
25
|
export { toggleVariants };
|
|
30
26
|
//# sourceMappingURL=toggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../src/variants/toggle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC
|
|
1
|
+
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../src/variants/toggle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,wHAAwH;AAExH;;GAEG;AACH,MAAM,cAAc,GAAG,EAAE,CAAC;IACxB,IAAI,EAAE,ugBAAugB;IAC7gB,eAAe,EAAE;QACf,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,sFAAsF;YAC/F,EAAE,EAAE,oLAAoL;YACxL,EAAE,EAAE,sFAAsF;SAC3F;QACD,OAAO,EAAE;YACP,OAAO,EAAE,gBAAgB;YACzB,OAAO,EAAE,6DAA6D;SACvE;KACF;CACF,CAAC,CAAC;AAOH,wHAAwH;AAExH,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Core UI components library built with React and Tailwind CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -610,34 +610,35 @@
|
|
|
610
610
|
"cmdk": "^1.1.1",
|
|
611
611
|
"embla-carousel-react": "^8.6.0",
|
|
612
612
|
"input-otp": "^1.4.2",
|
|
613
|
-
"lucide-react": "^1.
|
|
613
|
+
"lucide-react": "^1.31.0",
|
|
614
614
|
"next-themes": "^0.4.6",
|
|
615
615
|
"radix-ui": "^1.6.7",
|
|
616
|
-
"react-hook-form": "^7.
|
|
616
|
+
"react-hook-form": "^7.85.0",
|
|
617
617
|
"react-resizable-panels": "^4.12.2",
|
|
618
618
|
"recharts": "^3.10.1",
|
|
619
|
-
"sonner": "^2.0.
|
|
619
|
+
"sonner": "^2.0.8",
|
|
620
|
+
"tailwind-merge": "^3.6.0",
|
|
620
621
|
"tw-animate-css": "^1.4.0",
|
|
621
622
|
"vaul": "^1.1.2",
|
|
622
|
-
"@codefast/tailwind-variants": "0.
|
|
623
|
+
"@codefast/tailwind-variants": "0.6.1"
|
|
623
624
|
},
|
|
624
625
|
"devDependencies": {
|
|
625
626
|
"@tailwindcss/postcss": "^4.3.3",
|
|
626
627
|
"@testing-library/dom": "^10.4.1",
|
|
627
|
-
"@testing-library/jest-dom": "^7.0.
|
|
628
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
628
629
|
"@testing-library/react": "^16.3.2",
|
|
629
|
-
"@testing-library/user-event": "^14.6.
|
|
630
|
+
"@testing-library/user-event": "^14.6.4",
|
|
630
631
|
"@types/jest-axe": "^3.5.9",
|
|
631
|
-
"@types/node": "^26.
|
|
632
|
+
"@types/node": "^26.2.0",
|
|
632
633
|
"@vitejs/plugin-react": "^6.0.5",
|
|
633
634
|
"@vitest/coverage-v8": "^4.1.10",
|
|
634
635
|
"jest-axe": "^11.0.0",
|
|
635
636
|
"jsdom": "^30.0.1",
|
|
636
|
-
"postcss": "^8.5.
|
|
637
|
+
"postcss": "^8.5.26",
|
|
637
638
|
"tailwindcss": "^4.3.3",
|
|
638
639
|
"typescript": "^7.0.2",
|
|
639
640
|
"vitest": "^4.1.10",
|
|
640
|
-
"@codefast/typescript-config": "0.
|
|
641
|
+
"@codefast/typescript-config": "0.6.1"
|
|
641
642
|
},
|
|
642
643
|
"peerDependencies": {
|
|
643
644
|
"@types/react": ">=19.0.0",
|
|
@@ -4,9 +4,7 @@ import type { ComponentProps, JSX } from "react";
|
|
|
4
4
|
|
|
5
5
|
import { cn } from "#/lib/utils";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
* Component: Accordion
|
|
9
|
-
* -------------------------------------------------------------------------- */
|
|
7
|
+
// ── Component: Accordion ─────────────────────────────────────────────────────────────────────────────────────────────
|
|
10
8
|
|
|
11
9
|
/**
|
|
12
10
|
* @since 0.3.16-canary.0
|
|
@@ -20,9 +18,7 @@ function Accordion({ className, ...props }: AccordionProps): JSX.Element {
|
|
|
20
18
|
return <AccordionPrimitive.Root className={cn("flex w-full flex-col", className)} data-slot="accordion" {...props} />;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
* Component: AccordionItem
|
|
25
|
-
* -------------------------------------------------------------------------- */
|
|
21
|
+
// ── Component: AccordionItem ─────────────────────────────────────────────────────────────────────────────────────────
|
|
26
22
|
|
|
27
23
|
/**
|
|
28
24
|
* @since 0.3.16-canary.0
|
|
@@ -38,9 +34,7 @@ function AccordionItem({ className, ...props }: AccordionItemProps): JSX.Element
|
|
|
38
34
|
);
|
|
39
35
|
}
|
|
40
36
|
|
|
41
|
-
|
|
42
|
-
* Component: AccordionTrigger
|
|
43
|
-
* -------------------------------------------------------------------------- */
|
|
37
|
+
// ── Component: AccordionTrigger ──────────────────────────────────────────────────────────────────────────────────────
|
|
44
38
|
|
|
45
39
|
/**
|
|
46
40
|
* @since 0.3.16-canary.0
|
|
@@ -75,9 +69,7 @@ function AccordionTrigger({ children, className, ...props }: AccordionTriggerPro
|
|
|
75
69
|
);
|
|
76
70
|
}
|
|
77
71
|
|
|
78
|
-
|
|
79
|
-
* Component: AccordionContent
|
|
80
|
-
* -------------------------------------------------------------------------- */
|
|
72
|
+
// ── Component: AccordionContent ──────────────────────────────────────────────────────────────────────────────────────
|
|
81
73
|
|
|
82
74
|
/**
|
|
83
75
|
* @since 0.3.16-canary.0
|
|
@@ -106,9 +98,7 @@ function AccordionContent({ children, className, ...props }: AccordionContentPro
|
|
|
106
98
|
);
|
|
107
99
|
}
|
|
108
100
|
|
|
109
|
-
|
|
110
|
-
* Exports
|
|
111
|
-
* -------------------------------------------------------------------------- */
|
|
101
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
112
102
|
|
|
113
103
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
114
104
|
export type { AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps };
|
|
@@ -5,9 +5,7 @@ import { Button } from "#/components/button";
|
|
|
5
5
|
import type { ButtonProps } from "#/components/button";
|
|
6
6
|
import { cn } from "#/lib/utils";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
* Component: AlertDialog
|
|
10
|
-
* -------------------------------------------------------------------------- */
|
|
8
|
+
// ── Component: AlertDialog ───────────────────────────────────────────────────────────────────────────────────────────
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
* @since 0.3.16-canary.0
|
|
@@ -21,9 +19,7 @@ function AlertDialog({ ...props }: AlertDialogProps): JSX.Element {
|
|
|
21
19
|
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
|
|
22
20
|
}
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
* Component: AlertDialogTrigger
|
|
26
|
-
* -------------------------------------------------------------------------- */
|
|
22
|
+
// ── Component: AlertDialogTrigger ────────────────────────────────────────────────────────────────────────────────────
|
|
27
23
|
|
|
28
24
|
/**
|
|
29
25
|
* @since 0.3.16-canary.0
|
|
@@ -37,9 +33,7 @@ function AlertDialogTrigger({ ...props }: AlertDialogTriggerProps): JSX.Element
|
|
|
37
33
|
return <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />;
|
|
38
34
|
}
|
|
39
35
|
|
|
40
|
-
|
|
41
|
-
* Component: AlertDialogContent
|
|
42
|
-
* -------------------------------------------------------------------------- */
|
|
36
|
+
// ── Component: AlertDialogContent ────────────────────────────────────────────────────────────────────────────────────
|
|
43
37
|
|
|
44
38
|
/**
|
|
45
39
|
* @since 0.3.16-canary.0
|
|
@@ -73,9 +67,7 @@ function AlertDialogContent({ className, size = "default", ...props }: AlertDial
|
|
|
73
67
|
);
|
|
74
68
|
}
|
|
75
69
|
|
|
76
|
-
|
|
77
|
-
* Component: AlertDialogHeader
|
|
78
|
-
* -------------------------------------------------------------------------- */
|
|
70
|
+
// ── Component: AlertDialogHeader ─────────────────────────────────────────────────────────────────────────────────────
|
|
79
71
|
|
|
80
72
|
/**
|
|
81
73
|
* @since 0.3.16-canary.0
|
|
@@ -98,9 +90,7 @@ function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): JSX
|
|
|
98
90
|
);
|
|
99
91
|
}
|
|
100
92
|
|
|
101
|
-
|
|
102
|
-
* Component: AlertDialogMedia
|
|
103
|
-
* -------------------------------------------------------------------------- */
|
|
93
|
+
// ── Component: AlertDialogMedia ──────────────────────────────────────────────────────────────────────────────────────
|
|
104
94
|
|
|
105
95
|
/**
|
|
106
96
|
* @since 0.3.16-canary.0
|
|
@@ -123,9 +113,7 @@ function AlertDialogMedia({ className, ...props }: AlertDialogMediaProps): JSX.E
|
|
|
123
113
|
);
|
|
124
114
|
}
|
|
125
115
|
|
|
126
|
-
|
|
127
|
-
* Component: AlertDialogBody
|
|
128
|
-
* -------------------------------------------------------------------------- */
|
|
116
|
+
// ── Component: AlertDialogBody ───────────────────────────────────────────────────────────────────────────────────────
|
|
129
117
|
|
|
130
118
|
/**
|
|
131
119
|
* Optional scrollable region for long content. When used, the Header and Footer
|
|
@@ -149,9 +137,7 @@ function AlertDialogBody({ className, ...props }: AlertDialogBodyProps): JSX.Ele
|
|
|
149
137
|
);
|
|
150
138
|
}
|
|
151
139
|
|
|
152
|
-
|
|
153
|
-
* Component: AlertDialogFooter
|
|
154
|
-
* -------------------------------------------------------------------------- */
|
|
140
|
+
// ── Component: AlertDialogFooter ─────────────────────────────────────────────────────────────────────────────────────
|
|
155
141
|
|
|
156
142
|
/**
|
|
157
143
|
* @since 0.3.16-canary.0
|
|
@@ -174,9 +160,7 @@ function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): JSX
|
|
|
174
160
|
);
|
|
175
161
|
}
|
|
176
162
|
|
|
177
|
-
|
|
178
|
-
* Component: AlertDialogTitle
|
|
179
|
-
* -------------------------------------------------------------------------- */
|
|
163
|
+
// ── Component: AlertDialogTitle ──────────────────────────────────────────────────────────────────────────────────────
|
|
180
164
|
|
|
181
165
|
/**
|
|
182
166
|
* @since 0.3.16-canary.0
|
|
@@ -199,9 +183,7 @@ function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps): JSX.E
|
|
|
199
183
|
);
|
|
200
184
|
}
|
|
201
185
|
|
|
202
|
-
|
|
203
|
-
* Component: AlertDialogDescription
|
|
204
|
-
* -------------------------------------------------------------------------- */
|
|
186
|
+
// ── Component: AlertDialogDescription ────────────────────────────────────────────────────────────────────────────────
|
|
205
187
|
|
|
206
188
|
/**
|
|
207
189
|
* @since 0.3.16-canary.0
|
|
@@ -224,9 +206,7 @@ function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionP
|
|
|
224
206
|
);
|
|
225
207
|
}
|
|
226
208
|
|
|
227
|
-
|
|
228
|
-
* Component: AlertDialogAction
|
|
229
|
-
* -------------------------------------------------------------------------- */
|
|
209
|
+
// ── Component: AlertDialogAction ─────────────────────────────────────────────────────────────────────────────────────
|
|
230
210
|
|
|
231
211
|
/**
|
|
232
212
|
* @since 0.3.16-canary.0
|
|
@@ -245,9 +225,7 @@ function AlertDialogAction({ size = "default", variant = "default", ...props }:
|
|
|
245
225
|
);
|
|
246
226
|
}
|
|
247
227
|
|
|
248
|
-
|
|
249
|
-
* Component: AlertDialogCancel
|
|
250
|
-
* -------------------------------------------------------------------------- */
|
|
228
|
+
// ── Component: AlertDialogCancel ─────────────────────────────────────────────────────────────────────────────────────
|
|
251
229
|
|
|
252
230
|
/**
|
|
253
231
|
* @since 0.3.16-canary.0
|
|
@@ -266,9 +244,7 @@ function AlertDialogCancel({ size = "default", variant = "outline", ...props }:
|
|
|
266
244
|
);
|
|
267
245
|
}
|
|
268
246
|
|
|
269
|
-
|
|
270
|
-
* Exports
|
|
271
|
-
* -------------------------------------------------------------------------- */
|
|
247
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
272
248
|
|
|
273
249
|
export {
|
|
274
250
|
AlertDialog,
|
package/src/components/alert.tsx
CHANGED
|
@@ -4,9 +4,7 @@ import { cn } from "#/lib/utils";
|
|
|
4
4
|
import type { AlertVariants } from "#/variants/alert";
|
|
5
5
|
import { alertVariants } from "#/variants/alert";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
* Component: Alert
|
|
9
|
-
* -------------------------------------------------------------------------- */
|
|
7
|
+
// ── Component: Alert ─────────────────────────────────────────────────────────────────────────────────────────────────
|
|
10
8
|
|
|
11
9
|
/**
|
|
12
10
|
* @since 0.3.16-canary.0
|
|
@@ -20,9 +18,7 @@ function Alert({ className, variant, ...props }: AlertProps): JSX.Element {
|
|
|
20
18
|
return <div className={alertVariants({ className, variant })} data-slot="alert" role="alert" {...props} />;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
* Component: AlertTitle
|
|
25
|
-
* -------------------------------------------------------------------------- */
|
|
21
|
+
// ── Component: AlertTitle ────────────────────────────────────────────────────────────────────────────────────────────
|
|
26
22
|
|
|
27
23
|
/**
|
|
28
24
|
* @since 0.3.16-canary.0
|
|
@@ -45,9 +41,7 @@ function AlertTitle({ className, ...props }: AlertTitleProps): JSX.Element {
|
|
|
45
41
|
);
|
|
46
42
|
}
|
|
47
43
|
|
|
48
|
-
|
|
49
|
-
* Component: AlertDescription
|
|
50
|
-
* -------------------------------------------------------------------------- */
|
|
44
|
+
// ── Component: AlertDescription ──────────────────────────────────────────────────────────────────────────────────────
|
|
51
45
|
|
|
52
46
|
/**
|
|
53
47
|
* @since 0.3.16-canary.0
|
|
@@ -70,9 +64,7 @@ function AlertDescription({ className, ...props }: AlertDescriptionProps): JSX.E
|
|
|
70
64
|
);
|
|
71
65
|
}
|
|
72
66
|
|
|
73
|
-
|
|
74
|
-
* Component: AlertAction
|
|
75
|
-
* -------------------------------------------------------------------------- */
|
|
67
|
+
// ── Component: AlertAction ───────────────────────────────────────────────────────────────────────────────────────────
|
|
76
68
|
|
|
77
69
|
/**
|
|
78
70
|
* @since 0.3.16-canary.0
|
|
@@ -86,9 +78,7 @@ function AlertAction({ className, ...props }: AlertActionProps): JSX.Element {
|
|
|
86
78
|
return <div className={cn("absolute inset-e-2 top-2", className)} data-slot="alert-action" {...props} />;
|
|
87
79
|
}
|
|
88
80
|
|
|
89
|
-
|
|
90
|
-
* Exports
|
|
91
|
-
* -------------------------------------------------------------------------- */
|
|
81
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
92
82
|
|
|
93
83
|
export { Alert, AlertAction, AlertDescription, AlertTitle };
|
|
94
84
|
export type { AlertActionProps, AlertDescriptionProps, AlertProps, AlertTitleProps };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as AspectRatioPrimitive from "radix-ui/aspect-ratio";
|
|
2
2
|
import type { ComponentProps, JSX } from "react";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* Component: AspectRatio
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
4
|
+
// ── Component: AspectRatio ───────────────────────────────────────────────────────────────────────────────────────────
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
@@ -17,9 +15,7 @@ function AspectRatio({ ...props }: AspectRatioProps): JSX.Element {
|
|
|
17
15
|
return <AspectRatioPrimitive.Root data-slot="aspect-ratio" {...props} />;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
* Exports
|
|
22
|
-
* -------------------------------------------------------------------------- */
|
|
18
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
23
19
|
|
|
24
20
|
export { AspectRatio };
|
|
25
21
|
export type { AspectRatioProps };
|
|
@@ -6,9 +6,7 @@ import { cn } from "#/lib/utils";
|
|
|
6
6
|
import type { AttachmentMediaVariants, AttachmentVariants } from "#/variants/attachment";
|
|
7
7
|
import { attachmentMediaVariants, attachmentVariants } from "#/variants/attachment";
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
* Component: Attachment
|
|
11
|
-
* -------------------------------------------------------------------------- */
|
|
9
|
+
// ── Component: Attachment ────────────────────────────────────────────────────────────────────────────────────────────
|
|
12
10
|
|
|
13
11
|
/**
|
|
14
12
|
* File/media attachment card. `state` drives the upload lifecycle styling.
|
|
@@ -41,9 +39,7 @@ function Attachment({
|
|
|
41
39
|
);
|
|
42
40
|
}
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
* Component: AttachmentMedia
|
|
46
|
-
* -------------------------------------------------------------------------- */
|
|
42
|
+
// ── Component: AttachmentMedia ───────────────────────────────────────────────────────────────────────────────────────
|
|
47
43
|
|
|
48
44
|
/**
|
|
49
45
|
* Thumbnail slot — an icon tile or a cover image.
|
|
@@ -66,9 +62,7 @@ function AttachmentMedia({ className, variant = "icon", ...props }: AttachmentMe
|
|
|
66
62
|
);
|
|
67
63
|
}
|
|
68
64
|
|
|
69
|
-
|
|
70
|
-
* Component: AttachmentContent
|
|
71
|
-
* -------------------------------------------------------------------------- */
|
|
65
|
+
// ── Component: AttachmentContent ─────────────────────────────────────────────────────────────────────────────────────
|
|
72
66
|
|
|
73
67
|
/**
|
|
74
68
|
* Text column holding the title and description.
|
|
@@ -93,9 +87,7 @@ function AttachmentContent({ className, ...props }: AttachmentContentProps): JSX
|
|
|
93
87
|
);
|
|
94
88
|
}
|
|
95
89
|
|
|
96
|
-
|
|
97
|
-
* Component: AttachmentTitle
|
|
98
|
-
* -------------------------------------------------------------------------- */
|
|
90
|
+
// ── Component: AttachmentTitle ───────────────────────────────────────────────────────────────────────────────────────
|
|
99
91
|
|
|
100
92
|
/**
|
|
101
93
|
* File name; shimmers while uploading or processing.
|
|
@@ -120,9 +112,7 @@ function AttachmentTitle({ className, ...props }: AttachmentTitleProps): JSX.Ele
|
|
|
120
112
|
);
|
|
121
113
|
}
|
|
122
114
|
|
|
123
|
-
|
|
124
|
-
* Component: AttachmentDescription
|
|
125
|
-
* -------------------------------------------------------------------------- */
|
|
115
|
+
// ── Component: AttachmentDescription ─────────────────────────────────────────────────────────────────────────────────
|
|
126
116
|
|
|
127
117
|
/**
|
|
128
118
|
* Secondary line (size, type); turns destructive on error.
|
|
@@ -147,9 +137,7 @@ function AttachmentDescription({ className, ...props }: AttachmentDescriptionPro
|
|
|
147
137
|
);
|
|
148
138
|
}
|
|
149
139
|
|
|
150
|
-
|
|
151
|
-
* Component: AttachmentActions
|
|
152
|
-
* -------------------------------------------------------------------------- */
|
|
140
|
+
// ── Component: AttachmentActions ─────────────────────────────────────────────────────────────────────────────────────
|
|
153
141
|
|
|
154
142
|
/**
|
|
155
143
|
* Action cluster; floats to the top corner in the vertical orientation.
|
|
@@ -174,9 +162,7 @@ function AttachmentActions({ className, ...props }: AttachmentActionsProps): JSX
|
|
|
174
162
|
);
|
|
175
163
|
}
|
|
176
164
|
|
|
177
|
-
|
|
178
|
-
* Component: AttachmentAction
|
|
179
|
-
* -------------------------------------------------------------------------- */
|
|
165
|
+
// ── Component: AttachmentAction ──────────────────────────────────────────────────────────────────────────────────────
|
|
180
166
|
|
|
181
167
|
/**
|
|
182
168
|
* A single action button; defaults to a ghost icon button.
|
|
@@ -200,9 +186,7 @@ function AttachmentAction({ className, size = "icon-xs", variant, ...props }: At
|
|
|
200
186
|
);
|
|
201
187
|
}
|
|
202
188
|
|
|
203
|
-
|
|
204
|
-
* Component: AttachmentTrigger
|
|
205
|
-
* -------------------------------------------------------------------------- */
|
|
189
|
+
// ── Component: AttachmentTrigger ─────────────────────────────────────────────────────────────────────────────────────
|
|
206
190
|
|
|
207
191
|
/**
|
|
208
192
|
* Full-card overlay trigger for opening/previewing the attachment.
|
|
@@ -229,9 +213,7 @@ function AttachmentTrigger({ asChild = false, className, type, ...props }: Attac
|
|
|
229
213
|
);
|
|
230
214
|
}
|
|
231
215
|
|
|
232
|
-
|
|
233
|
-
* Component: AttachmentGroup
|
|
234
|
-
* -------------------------------------------------------------------------- */
|
|
216
|
+
// ── Component: AttachmentGroup ───────────────────────────────────────────────────────────────────────────────────────
|
|
235
217
|
|
|
236
218
|
/**
|
|
237
219
|
* Horizontally scrollable row of attachments with snap and edge fade.
|
|
@@ -256,9 +238,7 @@ function AttachmentGroup({ className, ...props }: AttachmentGroupProps): JSX.Ele
|
|
|
256
238
|
);
|
|
257
239
|
}
|
|
258
240
|
|
|
259
|
-
|
|
260
|
-
* Exports
|
|
261
|
-
* -------------------------------------------------------------------------- */
|
|
241
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
262
242
|
|
|
263
243
|
export {
|
|
264
244
|
Attachment,
|
|
@@ -3,9 +3,7 @@ import type { ComponentProps, JSX } from "react";
|
|
|
3
3
|
|
|
4
4
|
import { cn } from "#/lib/utils";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
* Component: Avatar
|
|
8
|
-
* -------------------------------------------------------------------------- */
|
|
6
|
+
// ── Component: Avatar ────────────────────────────────────────────────────────────────────────────────────────────────
|
|
9
7
|
|
|
10
8
|
/**
|
|
11
9
|
* @since 0.3.16-canary.0
|
|
@@ -31,9 +29,7 @@ function Avatar({ className, size = "default", ...props }: AvatarProps): JSX.Ele
|
|
|
31
29
|
);
|
|
32
30
|
}
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
* Component: AvatarImage
|
|
36
|
-
* -------------------------------------------------------------------------- */
|
|
32
|
+
// ── Component: AvatarImage ───────────────────────────────────────────────────────────────────────────────────────────
|
|
37
33
|
|
|
38
34
|
/**
|
|
39
35
|
* @since 0.3.16-canary.0
|
|
@@ -53,9 +49,7 @@ function AvatarImage({ className, ...props }: AvatarImageProps): JSX.Element {
|
|
|
53
49
|
);
|
|
54
50
|
}
|
|
55
51
|
|
|
56
|
-
|
|
57
|
-
* Component: AvatarFallback
|
|
58
|
-
* -------------------------------------------------------------------------- */
|
|
52
|
+
// ── Component: AvatarFallback ────────────────────────────────────────────────────────────────────────────────────────
|
|
59
53
|
|
|
60
54
|
/**
|
|
61
55
|
* @since 0.3.16-canary.0
|
|
@@ -78,9 +72,7 @@ function AvatarFallback({ className, ...props }: AvatarFallbackProps): JSX.Eleme
|
|
|
78
72
|
);
|
|
79
73
|
}
|
|
80
74
|
|
|
81
|
-
|
|
82
|
-
* Component: AvatarBadge
|
|
83
|
-
* -------------------------------------------------------------------------- */
|
|
75
|
+
// ── Component: AvatarBadge ───────────────────────────────────────────────────────────────────────────────────────────
|
|
84
76
|
|
|
85
77
|
/**
|
|
86
78
|
* @since 0.3.16-canary.0
|
|
@@ -106,9 +98,7 @@ function AvatarBadge({ className, ...props }: AvatarBadgeProps): JSX.Element {
|
|
|
106
98
|
);
|
|
107
99
|
}
|
|
108
100
|
|
|
109
|
-
|
|
110
|
-
* Component: AvatarGroup
|
|
111
|
-
* -------------------------------------------------------------------------- */
|
|
101
|
+
// ── Component: AvatarGroup ───────────────────────────────────────────────────────────────────────────────────────────
|
|
112
102
|
|
|
113
103
|
/**
|
|
114
104
|
* @since 0.3.16-canary.0
|
|
@@ -131,9 +121,7 @@ function AvatarGroup({ className, ...props }: AvatarGroupProps): JSX.Element {
|
|
|
131
121
|
);
|
|
132
122
|
}
|
|
133
123
|
|
|
134
|
-
|
|
135
|
-
* Component: AvatarGroupCount
|
|
136
|
-
* -------------------------------------------------------------------------- */
|
|
124
|
+
// ── Component: AvatarGroupCount ──────────────────────────────────────────────────────────────────────────────────────
|
|
137
125
|
|
|
138
126
|
/**
|
|
139
127
|
* @since 0.3.16-canary.0
|
|
@@ -156,9 +144,7 @@ function AvatarGroupCount({ className, ...props }: AvatarGroupCountProps): JSX.E
|
|
|
156
144
|
);
|
|
157
145
|
}
|
|
158
146
|
|
|
159
|
-
|
|
160
|
-
* Exports
|
|
161
|
-
* -------------------------------------------------------------------------- */
|
|
147
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
162
148
|
|
|
163
149
|
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };
|
|
164
150
|
export type {
|
package/src/components/badge.tsx
CHANGED
|
@@ -4,9 +4,7 @@ import type { ComponentProps, JSX } from "react";
|
|
|
4
4
|
import type { BadgeVariants } from "#/variants/badge";
|
|
5
5
|
import { badgeVariants } from "#/variants/badge";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
* Component: Badge
|
|
9
|
-
* -------------------------------------------------------------------------- */
|
|
7
|
+
// ── Component: Badge ─────────────────────────────────────────────────────────────────────────────────────────────────
|
|
10
8
|
|
|
11
9
|
/**
|
|
12
10
|
* @since 0.3.16-canary.0
|
|
@@ -26,9 +24,7 @@ function Badge({ asChild = false, className, variant = "default", ...props }: Ba
|
|
|
26
24
|
);
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
* Exports
|
|
31
|
-
* -------------------------------------------------------------------------- */
|
|
27
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
32
28
|
|
|
33
29
|
export { Badge };
|
|
34
30
|
|
|
@@ -4,9 +4,7 @@ import type { ComponentProps, JSX } from "react";
|
|
|
4
4
|
|
|
5
5
|
import { cn } from "#/lib/utils";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
* Component: Breadcrumb
|
|
9
|
-
* -------------------------------------------------------------------------- */
|
|
7
|
+
// ── Component: Breadcrumb ────────────────────────────────────────────────────────────────────────────────────────────
|
|
10
8
|
|
|
11
9
|
/**
|
|
12
10
|
* @since 0.3.16-canary.0
|
|
@@ -20,9 +18,7 @@ function Breadcrumb({ ...props }: BreadcrumbProps): JSX.Element {
|
|
|
20
18
|
return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
* Component: BreadcrumbList
|
|
25
|
-
* -------------------------------------------------------------------------- */
|
|
21
|
+
// ── Component: BreadcrumbList ────────────────────────────────────────────────────────────────────────────────────────
|
|
26
22
|
|
|
27
23
|
/**
|
|
28
24
|
* @since 0.3.16-canary.0
|
|
@@ -42,9 +38,7 @@ function BreadcrumbList({ className, ...props }: BreadcrumbListProps): JSX.Eleme
|
|
|
42
38
|
);
|
|
43
39
|
}
|
|
44
40
|
|
|
45
|
-
|
|
46
|
-
* Component: BreadcrumbItem
|
|
47
|
-
* -------------------------------------------------------------------------- */
|
|
41
|
+
// ── Component: BreadcrumbItem ────────────────────────────────────────────────────────────────────────────────────────
|
|
48
42
|
|
|
49
43
|
/**
|
|
50
44
|
* @since 0.3.16-canary.0
|
|
@@ -58,9 +52,7 @@ function BreadcrumbItem({ className, ...props }: BreadcrumbItemProps): JSX.Eleme
|
|
|
58
52
|
return <li className={cn("inline-flex items-center gap-1", className)} data-slot="breadcrumb-item" {...props} />;
|
|
59
53
|
}
|
|
60
54
|
|
|
61
|
-
|
|
62
|
-
* Component: BreadcrumbLink
|
|
63
|
-
* -------------------------------------------------------------------------- */
|
|
55
|
+
// ── Component: BreadcrumbLink ────────────────────────────────────────────────────────────────────────────────────────
|
|
64
56
|
|
|
65
57
|
/**
|
|
66
58
|
* @since 0.3.16-canary.0
|
|
@@ -84,9 +76,7 @@ function BreadcrumbLink({ asChild, className, ...props }: BreadcrumbLinkProps):
|
|
|
84
76
|
);
|
|
85
77
|
}
|
|
86
78
|
|
|
87
|
-
|
|
88
|
-
* Component: BreadcrumbPage
|
|
89
|
-
* -------------------------------------------------------------------------- */
|
|
79
|
+
// ── Component: BreadcrumbPage ────────────────────────────────────────────────────────────────────────────────────────
|
|
90
80
|
|
|
91
81
|
/**
|
|
92
82
|
* @since 0.3.16-canary.0
|
|
@@ -109,9 +99,7 @@ function BreadcrumbPage({ className, ...props }: BreadcrumbPageProps): JSX.Eleme
|
|
|
109
99
|
);
|
|
110
100
|
}
|
|
111
101
|
|
|
112
|
-
|
|
113
|
-
* Component: BreadcrumbSeparator
|
|
114
|
-
* -------------------------------------------------------------------------- */
|
|
102
|
+
// ── Component: BreadcrumbSeparator ───────────────────────────────────────────────────────────────────────────────────
|
|
115
103
|
|
|
116
104
|
/**
|
|
117
105
|
* @since 0.3.16-canary.0
|
|
@@ -135,9 +123,7 @@ function BreadcrumbSeparator({ children, className, ...props }: BreadcrumbSepara
|
|
|
135
123
|
);
|
|
136
124
|
}
|
|
137
125
|
|
|
138
|
-
|
|
139
|
-
* Component: BreadcrumbEllipsis
|
|
140
|
-
* -------------------------------------------------------------------------- */
|
|
126
|
+
// ── Component: BreadcrumbEllipsis ────────────────────────────────────────────────────────────────────────────────────
|
|
141
127
|
|
|
142
128
|
/**
|
|
143
129
|
* @since 0.3.16-canary.0
|
|
@@ -162,9 +148,7 @@ function BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): J
|
|
|
162
148
|
);
|
|
163
149
|
}
|
|
164
150
|
|
|
165
|
-
|
|
166
|
-
* Exports
|
|
167
|
-
* -------------------------------------------------------------------------- */
|
|
151
|
+
// ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
168
152
|
|
|
169
153
|
export {
|
|
170
154
|
Breadcrumb,
|