@tekton-ui/ui 0.2.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/README.md +1137 -0
- package/dist/index.d.mts +719 -0
- package/dist/index.mjs +3511 -0
- package/dist/src/components/alert-dialog.d.ts +21 -0
- package/dist/src/components/alert-dialog.d.ts.map +1 -0
- package/dist/src/components/alert-dialog.js +26 -0
- package/dist/src/components/alert-dialog.js.map +1 -0
- package/dist/src/components/alert-dialog.stories.d.ts +22 -0
- package/dist/src/components/alert-dialog.stories.d.ts.map +1 -0
- package/dist/src/components/alert-dialog.stories.js +22 -0
- package/dist/src/components/alert-dialog.stories.js.map +1 -0
- package/dist/src/components/avatar.d.ts +7 -0
- package/dist/src/components/avatar.d.ts.map +1 -0
- package/dist/src/components/avatar.js +12 -0
- package/dist/src/components/avatar.js.map +1 -0
- package/dist/src/components/avatar.stories.d.ts +38 -0
- package/dist/src/components/avatar.stories.d.ts.map +1 -0
- package/dist/src/components/avatar.stories.js +33 -0
- package/dist/src/components/avatar.stories.js.map +1 -0
- package/dist/src/components/badge.d.ts +10 -0
- package/dist/src/components/badge.d.ts.map +1 -0
- package/dist/src/components/badge.js +21 -0
- package/dist/src/components/badge.js.map +1 -0
- package/dist/src/components/badge.stories.d.ts +73 -0
- package/dist/src/components/badge.stories.d.ts.map +1 -0
- package/dist/src/components/badge.stories.js +60 -0
- package/dist/src/components/badge.stories.js.map +1 -0
- package/dist/src/components/breadcrumb.d.ts +27 -0
- package/dist/src/components/breadcrumb.d.ts.map +1 -0
- package/dist/src/components/breadcrumb.js +60 -0
- package/dist/src/components/breadcrumb.js.map +1 -0
- package/dist/src/components/breadcrumb.stories.d.ts +49 -0
- package/dist/src/components/breadcrumb.stories.d.ts.map +1 -0
- package/dist/src/components/breadcrumb.stories.js +43 -0
- package/dist/src/components/breadcrumb.stories.js.map +1 -0
- package/dist/src/components/button.d.ts +12 -0
- package/dist/src/components/button.d.ts.map +1 -0
- package/dist/src/components/button.js +34 -0
- package/dist/src/components/button.js.map +1 -0
- package/dist/src/components/button.stories.d.ts +134 -0
- package/dist/src/components/button.stories.d.ts.map +1 -0
- package/dist/src/components/button.stories.js +101 -0
- package/dist/src/components/button.stories.js.map +1 -0
- package/dist/src/components/calendar.d.ts +8 -0
- package/dist/src/components/calendar.d.ts.map +1 -0
- package/dist/src/components/calendar.js +39 -0
- package/dist/src/components/calendar.js.map +1 -0
- package/dist/src/components/calendar.stories.d.ts +46 -0
- package/dist/src/components/calendar.stories.d.ts.map +1 -0
- package/dist/src/components/calendar.stories.js +88 -0
- package/dist/src/components/calendar.stories.js.map +1 -0
- package/dist/src/components/card.d.ts +9 -0
- package/dist/src/components/card.d.ts.map +1 -0
- package/dist/src/components/card.js +17 -0
- package/dist/src/components/card.js.map +1 -0
- package/dist/src/components/card.stories.d.ts +46 -0
- package/dist/src/components/card.stories.d.ts.map +1 -0
- package/dist/src/components/card.stories.js +40 -0
- package/dist/src/components/card.stories.js.map +1 -0
- package/dist/src/components/checkbox.d.ts +5 -0
- package/dist/src/components/checkbox.d.ts.map +1 -0
- package/dist/src/components/checkbox.js +9 -0
- package/dist/src/components/checkbox.js.map +1 -0
- package/dist/src/components/checkbox.stories.d.ts +50 -0
- package/dist/src/components/checkbox.stories.d.ts.map +1 -0
- package/dist/src/components/checkbox.stories.js +48 -0
- package/dist/src/components/checkbox.stories.js.map +1 -0
- package/dist/src/components/command.d.ts +81 -0
- package/dist/src/components/command.d.ts.map +1 -0
- package/dist/src/components/command.js +27 -0
- package/dist/src/components/command.js.map +1 -0
- package/dist/src/components/command.stories.d.ts +34 -0
- package/dist/src/components/command.stories.d.ts.map +1 -0
- package/dist/src/components/command.stories.js +44 -0
- package/dist/src/components/command.stories.js.map +1 -0
- package/dist/src/components/dialog.d.ts +20 -0
- package/dist/src/components/dialog.d.ts.map +1 -0
- package/dist/src/components/dialog.js +23 -0
- package/dist/src/components/dialog.js.map +1 -0
- package/dist/src/components/dialog.stories.d.ts +38 -0
- package/dist/src/components/dialog.stories.d.ts.map +1 -0
- package/dist/src/components/dialog.stories.js +36 -0
- package/dist/src/components/dialog.stories.js.map +1 -0
- package/dist/src/components/dropdown-menu.d.ts +28 -0
- package/dist/src/components/dropdown-menu.d.ts.map +1 -0
- package/dist/src/components/dropdown-menu.js +33 -0
- package/dist/src/components/dropdown-menu.js.map +1 -0
- package/dist/src/components/dropdown-menu.stories.d.ts +30 -0
- package/dist/src/components/dropdown-menu.stories.d.ts.map +1 -0
- package/dist/src/components/dropdown-menu.stories.js +37 -0
- package/dist/src/components/dropdown-menu.stories.js.map +1 -0
- package/dist/src/components/form.d.ts +24 -0
- package/dist/src/components/form.d.ts.map +1 -0
- package/dist/src/components/form.js +62 -0
- package/dist/src/components/form.js.map +1 -0
- package/dist/src/components/form.stories.d.ts +34 -0
- package/dist/src/components/form.stories.d.ts.map +1 -0
- package/dist/src/components/form.stories.js +132 -0
- package/dist/src/components/form.stories.js.map +1 -0
- package/dist/src/components/input.d.ts +5 -0
- package/dist/src/components/input.d.ts.map +1 -0
- package/dist/src/components/input.js +9 -0
- package/dist/src/components/input.js.map +1 -0
- package/dist/src/components/input.stories.d.ts +101 -0
- package/dist/src/components/input.stories.d.ts.map +1 -0
- package/dist/src/components/input.stories.js +79 -0
- package/dist/src/components/input.stories.js.map +1 -0
- package/dist/src/components/label.d.ts +6 -0
- package/dist/src/components/label.d.ts.map +1 -0
- package/dist/src/components/label.js +10 -0
- package/dist/src/components/label.js.map +1 -0
- package/dist/src/components/label.stories.d.ts +34 -0
- package/dist/src/components/label.stories.d.ts.map +1 -0
- package/dist/src/components/label.stories.js +32 -0
- package/dist/src/components/label.stories.js.map +1 -0
- package/dist/src/components/navigation-menu.d.ts +13 -0
- package/dist/src/components/navigation-menu.d.ts.map +1 -0
- package/dist/src/components/navigation-menu.js +22 -0
- package/dist/src/components/navigation-menu.js.map +1 -0
- package/dist/src/components/navigation-menu.stories.d.ts +26 -0
- package/dist/src/components/navigation-menu.stories.d.ts.map +1 -0
- package/dist/src/components/navigation-menu.stories.js +30 -0
- package/dist/src/components/navigation-menu.stories.js.map +1 -0
- package/dist/src/components/popover.d.ts +7 -0
- package/dist/src/components/popover.d.ts.map +1 -0
- package/dist/src/components/popover.js +10 -0
- package/dist/src/components/popover.js.map +1 -0
- package/dist/src/components/popover.stories.d.ts +22 -0
- package/dist/src/components/popover.stories.d.ts.map +1 -0
- package/dist/src/components/popover.stories.js +24 -0
- package/dist/src/components/popover.stories.js.map +1 -0
- package/dist/src/components/progress.d.ts +5 -0
- package/dist/src/components/progress.d.ts.map +1 -0
- package/dist/src/components/progress.js +8 -0
- package/dist/src/components/progress.js.map +1 -0
- package/dist/src/components/progress.stories.d.ts +44 -0
- package/dist/src/components/progress.stories.d.ts.map +1 -0
- package/dist/src/components/progress.stories.js +63 -0
- package/dist/src/components/progress.stories.js.map +1 -0
- package/dist/src/components/radio-group.d.ts +6 -0
- package/dist/src/components/radio-group.d.ts.map +1 -0
- package/dist/src/components/radio-group.js +15 -0
- package/dist/src/components/radio-group.js.map +1 -0
- package/dist/src/components/radio-group.stories.d.ts +34 -0
- package/dist/src/components/radio-group.stories.d.ts.map +1 -0
- package/dist/src/components/radio-group.stories.js +31 -0
- package/dist/src/components/radio-group.stories.js.map +1 -0
- package/dist/src/components/scroll-area.d.ts +6 -0
- package/dist/src/components/scroll-area.d.ts.map +1 -0
- package/dist/src/components/scroll-area.js +10 -0
- package/dist/src/components/scroll-area.js.map +1 -0
- package/dist/src/components/scroll-area.stories.d.ts +46 -0
- package/dist/src/components/scroll-area.stories.d.ts.map +1 -0
- package/dist/src/components/scroll-area.stories.js +44 -0
- package/dist/src/components/scroll-area.stories.js.map +1 -0
- package/dist/src/components/select.d.ts +14 -0
- package/dist/src/components/select.d.ts.map +1 -0
- package/dist/src/components/select.js +26 -0
- package/dist/src/components/select.js.map +1 -0
- package/dist/src/components/select.stories.d.ts +42 -0
- package/dist/src/components/select.stories.d.ts.map +1 -0
- package/dist/src/components/select.stories.js +37 -0
- package/dist/src/components/select.stories.js.map +1 -0
- package/dist/src/components/separator.d.ts +5 -0
- package/dist/src/components/separator.d.ts.map +1 -0
- package/dist/src/components/separator.js +8 -0
- package/dist/src/components/separator.js.map +1 -0
- package/dist/src/components/separator.stories.d.ts +47 -0
- package/dist/src/components/separator.stories.d.ts.map +1 -0
- package/dist/src/components/separator.stories.js +41 -0
- package/dist/src/components/separator.stories.js.map +1 -0
- package/dist/src/components/sheet.d.ts +26 -0
- package/dist/src/components/sheet.d.ts.map +1 -0
- package/dist/src/components/sheet.js +37 -0
- package/dist/src/components/sheet.js.map +1 -0
- package/dist/src/components/sheet.stories.d.ts +18 -0
- package/dist/src/components/sheet.stories.d.ts.map +1 -0
- package/dist/src/components/sheet.stories.js +21 -0
- package/dist/src/components/sheet.stories.js.map +1 -0
- package/dist/src/components/sidebar.d.ts +40 -0
- package/dist/src/components/sidebar.d.ts.map +1 -0
- package/dist/src/components/sidebar.js +101 -0
- package/dist/src/components/sidebar.js.map +1 -0
- package/dist/src/components/sidebar.stories.d.ts +55 -0
- package/dist/src/components/sidebar.stories.d.ts.map +1 -0
- package/dist/src/components/sidebar.stories.js +51 -0
- package/dist/src/components/sidebar.stories.js.map +1 -0
- package/dist/src/components/skeleton.d.ts +3 -0
- package/dist/src/components/skeleton.d.ts.map +1 -0
- package/dist/src/components/skeleton.js +7 -0
- package/dist/src/components/skeleton.js.map +1 -0
- package/dist/src/components/skeleton.stories.d.ts +50 -0
- package/dist/src/components/skeleton.stories.d.ts.map +1 -0
- package/dist/src/components/skeleton.stories.js +42 -0
- package/dist/src/components/skeleton.stories.js.map +1 -0
- package/dist/src/components/switch.d.ts +5 -0
- package/dist/src/components/switch.d.ts.map +1 -0
- package/dist/src/components/switch.js +8 -0
- package/dist/src/components/switch.js.map +1 -0
- package/dist/src/components/switch.stories.d.ts +50 -0
- package/dist/src/components/switch.stories.d.ts.map +1 -0
- package/dist/src/components/switch.stories.js +48 -0
- package/dist/src/components/switch.stories.js.map +1 -0
- package/dist/src/components/table.d.ts +11 -0
- package/dist/src/components/table.d.ts.map +1 -0
- package/dist/src/components/table.js +21 -0
- package/dist/src/components/table.js.map +1 -0
- package/dist/src/components/table.stories.d.ts +26 -0
- package/dist/src/components/table.stories.d.ts.map +1 -0
- package/dist/src/components/table.stories.js +26 -0
- package/dist/src/components/table.stories.js.map +1 -0
- package/dist/src/components/tabs.d.ts +8 -0
- package/dist/src/components/tabs.d.ts.map +1 -0
- package/dist/src/components/tabs.js +13 -0
- package/dist/src/components/tabs.js.map +1 -0
- package/dist/src/components/tabs.stories.d.ts +22 -0
- package/dist/src/components/tabs.stories.d.ts.map +1 -0
- package/dist/src/components/tabs.stories.js +25 -0
- package/dist/src/components/tabs.stories.js.map +1 -0
- package/dist/src/components/textarea.d.ts +5 -0
- package/dist/src/components/textarea.d.ts.map +1 -0
- package/dist/src/components/textarea.js +9 -0
- package/dist/src/components/textarea.js.map +1 -0
- package/dist/src/components/textarea.stories.d.ts +64 -0
- package/dist/src/components/textarea.stories.d.ts.map +1 -0
- package/dist/src/components/textarea.stories.js +60 -0
- package/dist/src/components/textarea.stories.js.map +1 -0
- package/dist/src/components/toast.d.ts +16 -0
- package/dist/src/components/toast.d.ts.map +1 -0
- package/dist/src/components/toast.js +34 -0
- package/dist/src/components/toast.js.map +1 -0
- package/dist/src/components/toast.stories.d.ts +22 -0
- package/dist/src/components/toast.stories.d.ts.map +1 -0
- package/dist/src/components/toast.stories.js +32 -0
- package/dist/src/components/toast.stories.js.map +1 -0
- package/dist/src/components/tooltip.d.ts +8 -0
- package/dist/src/components/tooltip.d.ts.map +1 -0
- package/dist/src/components/tooltip.js +11 -0
- package/dist/src/components/tooltip.js.map +1 -0
- package/dist/src/components/tooltip.stories.d.ts +26 -0
- package/dist/src/components/tooltip.stories.d.ts.map +1 -0
- package/dist/src/components/tooltip.stories.js +25 -0
- package/dist/src/components/tooltip.stories.js.map +1 -0
- package/dist/src/index.d.ts +45 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +36 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lib/motion.d.ts +99 -0
- package/dist/src/lib/motion.d.ts.map +1 -0
- package/dist/src/lib/motion.js +88 -0
- package/dist/src/lib/motion.js.map +1 -0
- package/dist/src/lib/theme-loader.d.ts +69 -0
- package/dist/src/lib/theme-loader.d.ts.map +1 -0
- package/dist/src/lib/theme-loader.js +113 -0
- package/dist/src/lib/theme-loader.js.map +1 -0
- package/dist/src/lib/tokens.d.ts +50 -0
- package/dist/src/lib/tokens.d.ts.map +1 -0
- package/dist/src/lib/tokens.js +53 -0
- package/dist/src/lib/tokens.js.map +1 -0
- package/dist/src/lib/utils.d.ts +3 -0
- package/dist/src/lib/utils.d.ts.map +1 -0
- package/dist/src/lib/utils.js +6 -0
- package/dist/src/lib/utils.js.map +1 -0
- package/dist/src/templates/auth/forgot-password.d.ts +4 -0
- package/dist/src/templates/auth/forgot-password.d.ts.map +1 -0
- package/dist/src/templates/auth/forgot-password.js +47 -0
- package/dist/src/templates/auth/forgot-password.js.map +1 -0
- package/dist/src/templates/auth/forgot-password.stories.d.ts +14 -0
- package/dist/src/templates/auth/forgot-password.stories.d.ts.map +1 -0
- package/dist/src/templates/auth/forgot-password.stories.js +14 -0
- package/dist/src/templates/auth/forgot-password.stories.js.map +1 -0
- package/dist/src/templates/auth/login.d.ts +4 -0
- package/dist/src/templates/auth/login.d.ts.map +1 -0
- package/dist/src/templates/auth/login.js +50 -0
- package/dist/src/templates/auth/login.js.map +1 -0
- package/dist/src/templates/auth/login.stories.d.ts +95 -0
- package/dist/src/templates/auth/login.stories.d.ts.map +1 -0
- package/dist/src/templates/auth/login.stories.js +77 -0
- package/dist/src/templates/auth/login.stories.js.map +1 -0
- package/dist/src/templates/auth/signup.d.ts +4 -0
- package/dist/src/templates/auth/signup.d.ts.map +1 -0
- package/dist/src/templates/auth/signup.js +49 -0
- package/dist/src/templates/auth/signup.js.map +1 -0
- package/dist/src/templates/auth/signup.stories.d.ts +18 -0
- package/dist/src/templates/auth/signup.stories.d.ts.map +1 -0
- package/dist/src/templates/auth/signup.stories.js +21 -0
- package/dist/src/templates/auth/signup.stories.js.map +1 -0
- package/dist/src/templates/auth/verification.d.ts +4 -0
- package/dist/src/templates/auth/verification.d.ts.map +1 -0
- package/dist/src/templates/auth/verification.js +47 -0
- package/dist/src/templates/auth/verification.js.map +1 -0
- package/dist/src/templates/auth/verification.stories.d.ts +19 -0
- package/dist/src/templates/auth/verification.stories.d.ts.map +1 -0
- package/dist/src/templates/auth/verification.stories.js +19 -0
- package/dist/src/templates/auth/verification.stories.js.map +1 -0
- package/dist/src/templates/core/landing.d.ts +4 -0
- package/dist/src/templates/core/landing.d.ts.map +1 -0
- package/dist/src/templates/core/landing.js +44 -0
- package/dist/src/templates/core/landing.js.map +1 -0
- package/dist/src/templates/core/landing.stories.d.ts +14 -0
- package/dist/src/templates/core/landing.stories.d.ts.map +1 -0
- package/dist/src/templates/core/landing.stories.js +14 -0
- package/dist/src/templates/core/landing.stories.js.map +1 -0
- package/dist/src/templates/core/preferences.d.ts +4 -0
- package/dist/src/templates/core/preferences.d.ts.map +1 -0
- package/dist/src/templates/core/preferences.js +51 -0
- package/dist/src/templates/core/preferences.js.map +1 -0
- package/dist/src/templates/core/preferences.stories.d.ts +14 -0
- package/dist/src/templates/core/preferences.stories.d.ts.map +1 -0
- package/dist/src/templates/core/preferences.stories.js +14 -0
- package/dist/src/templates/core/preferences.stories.js.map +1 -0
- package/dist/src/templates/core/profile.d.ts +4 -0
- package/dist/src/templates/core/profile.d.ts.map +1 -0
- package/dist/src/templates/core/profile.js +49 -0
- package/dist/src/templates/core/profile.js.map +1 -0
- package/dist/src/templates/core/profile.stories.d.ts +19 -0
- package/dist/src/templates/core/profile.stories.d.ts.map +1 -0
- package/dist/src/templates/core/profile.stories.js +19 -0
- package/dist/src/templates/core/profile.stories.js.map +1 -0
- package/dist/src/templates/dashboard/overview.d.ts +4 -0
- package/dist/src/templates/dashboard/overview.d.ts.map +1 -0
- package/dist/src/templates/dashboard/overview.js +65 -0
- package/dist/src/templates/dashboard/overview.js.map +1 -0
- package/dist/src/templates/dashboard/overview.stories.d.ts +55 -0
- package/dist/src/templates/dashboard/overview.stories.d.ts.map +1 -0
- package/dist/src/templates/dashboard/overview.stories.js +51 -0
- package/dist/src/templates/dashboard/overview.stories.js.map +1 -0
- package/dist/src/templates/feedback/confirmation.d.ts +4 -0
- package/dist/src/templates/feedback/confirmation.d.ts.map +1 -0
- package/dist/src/templates/feedback/confirmation.js +47 -0
- package/dist/src/templates/feedback/confirmation.js.map +1 -0
- package/dist/src/templates/feedback/confirmation.stories.d.ts +14 -0
- package/dist/src/templates/feedback/confirmation.stories.d.ts.map +1 -0
- package/dist/src/templates/feedback/confirmation.stories.js +14 -0
- package/dist/src/templates/feedback/confirmation.stories.js.map +1 -0
- package/dist/src/templates/feedback/empty.d.ts +4 -0
- package/dist/src/templates/feedback/empty.d.ts.map +1 -0
- package/dist/src/templates/feedback/empty.js +45 -0
- package/dist/src/templates/feedback/empty.js.map +1 -0
- package/dist/src/templates/feedback/empty.stories.d.ts +14 -0
- package/dist/src/templates/feedback/empty.stories.d.ts.map +1 -0
- package/dist/src/templates/feedback/empty.stories.js +14 -0
- package/dist/src/templates/feedback/empty.stories.js.map +1 -0
- package/dist/src/templates/feedback/error.d.ts +4 -0
- package/dist/src/templates/feedback/error.d.ts.map +1 -0
- package/dist/src/templates/feedback/error.js +45 -0
- package/dist/src/templates/feedback/error.js.map +1 -0
- package/dist/src/templates/feedback/error.stories.d.ts +14 -0
- package/dist/src/templates/feedback/error.stories.d.ts.map +1 -0
- package/dist/src/templates/feedback/error.stories.js +14 -0
- package/dist/src/templates/feedback/error.stories.js.map +1 -0
- package/dist/src/templates/feedback/loading.d.ts +4 -0
- package/dist/src/templates/feedback/loading.d.ts.map +1 -0
- package/dist/src/templates/feedback/loading.js +42 -0
- package/dist/src/templates/feedback/loading.js.map +1 -0
- package/dist/src/templates/feedback/loading.stories.d.ts +14 -0
- package/dist/src/templates/feedback/loading.stories.d.ts.map +1 -0
- package/dist/src/templates/feedback/loading.stories.js +14 -0
- package/dist/src/templates/feedback/loading.stories.js.map +1 -0
- package/dist/src/templates/feedback/success.d.ts +4 -0
- package/dist/src/templates/feedback/success.d.ts.map +1 -0
- package/dist/src/templates/feedback/success.js +45 -0
- package/dist/src/templates/feedback/success.js.map +1 -0
- package/dist/src/templates/feedback/success.stories.d.ts +14 -0
- package/dist/src/templates/feedback/success.stories.d.ts.map +1 -0
- package/dist/src/templates/feedback/success.stories.js +14 -0
- package/dist/src/templates/feedback/success.stories.js.map +1 -0
- package/dist/src/templates/index.d.ts +16 -0
- package/dist/src/templates/index.d.ts.map +1 -0
- package/dist/src/templates/index.js +45 -0
- package/dist/src/templates/index.js.map +1 -0
- package/dist/src/templates/registry.d.ts +23 -0
- package/dist/src/templates/registry.d.ts.map +1 -0
- package/dist/src/templates/registry.js +90 -0
- package/dist/src/templates/registry.js.map +1 -0
- package/dist/src/templates/types.d.ts +78 -0
- package/dist/src/templates/types.d.ts.map +1 -0
- package/dist/src/templates/types.js +23 -0
- package/dist/src/templates/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +117 -0
- package/styles/globals.css +191 -0
- package/styles/tokens.css +303 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export default meta;
|
|
2
|
+
export namespace Default {
|
|
3
|
+
namespace args {
|
|
4
|
+
let placeholder: string;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export namespace Email {
|
|
8
|
+
export namespace args_1 {
|
|
9
|
+
export let type: string;
|
|
10
|
+
let placeholder_1: string;
|
|
11
|
+
export { placeholder_1 as placeholder };
|
|
12
|
+
}
|
|
13
|
+
export { args_1 as args };
|
|
14
|
+
}
|
|
15
|
+
export namespace Password {
|
|
16
|
+
export namespace args_2 {
|
|
17
|
+
let type_1: string;
|
|
18
|
+
export { type_1 as type };
|
|
19
|
+
let placeholder_2: string;
|
|
20
|
+
export { placeholder_2 as placeholder };
|
|
21
|
+
}
|
|
22
|
+
export { args_2 as args };
|
|
23
|
+
}
|
|
24
|
+
export namespace Number {
|
|
25
|
+
export namespace args_3 {
|
|
26
|
+
let type_2: string;
|
|
27
|
+
export { type_2 as type };
|
|
28
|
+
let placeholder_3: string;
|
|
29
|
+
export { placeholder_3 as placeholder };
|
|
30
|
+
}
|
|
31
|
+
export { args_3 as args };
|
|
32
|
+
}
|
|
33
|
+
export namespace Search {
|
|
34
|
+
export namespace args_4 {
|
|
35
|
+
let type_3: string;
|
|
36
|
+
export { type_3 as type };
|
|
37
|
+
let placeholder_4: string;
|
|
38
|
+
export { placeholder_4 as placeholder };
|
|
39
|
+
}
|
|
40
|
+
export { args_4 as args };
|
|
41
|
+
}
|
|
42
|
+
export namespace Disabled {
|
|
43
|
+
export namespace args_5 {
|
|
44
|
+
export let disabled: boolean;
|
|
45
|
+
let placeholder_5: string;
|
|
46
|
+
export { placeholder_5 as placeholder };
|
|
47
|
+
export let value: string;
|
|
48
|
+
}
|
|
49
|
+
export { args_5 as args };
|
|
50
|
+
}
|
|
51
|
+
export namespace WithLabel {
|
|
52
|
+
function render(): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
}
|
|
54
|
+
export namespace WithHelperText {
|
|
55
|
+
export function render_1(): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export { render_1 as render };
|
|
57
|
+
}
|
|
58
|
+
export namespace WithError {
|
|
59
|
+
export function render_2(): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export { render_2 as render };
|
|
61
|
+
}
|
|
62
|
+
export namespace File {
|
|
63
|
+
export function render_3(): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
export { render_3 as render };
|
|
65
|
+
}
|
|
66
|
+
export namespace AllTypes {
|
|
67
|
+
export function render_4(): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
export { render_4 as render };
|
|
69
|
+
}
|
|
70
|
+
declare namespace meta {
|
|
71
|
+
export let title: string;
|
|
72
|
+
export { Input as component };
|
|
73
|
+
export namespace parameters {
|
|
74
|
+
let layout: string;
|
|
75
|
+
}
|
|
76
|
+
export let tags: string[];
|
|
77
|
+
export namespace argTypes {
|
|
78
|
+
export namespace type_4 {
|
|
79
|
+
let control: string;
|
|
80
|
+
let options: string[];
|
|
81
|
+
let description: string;
|
|
82
|
+
}
|
|
83
|
+
export { type_4 as type };
|
|
84
|
+
export namespace placeholder_6 {
|
|
85
|
+
let control_1: string;
|
|
86
|
+
export { control_1 as control };
|
|
87
|
+
let description_1: string;
|
|
88
|
+
export { description_1 as description };
|
|
89
|
+
}
|
|
90
|
+
export { placeholder_6 as placeholder };
|
|
91
|
+
export namespace disabled_1 {
|
|
92
|
+
let control_2: string;
|
|
93
|
+
export { control_2 as control };
|
|
94
|
+
let description_2: string;
|
|
95
|
+
export { description_2 as description };
|
|
96
|
+
}
|
|
97
|
+
export { disabled_1 as disabled };
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
import { Input } from './input';
|
|
101
|
+
//# sourceMappingURL=input.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.stories.d.ts","sourceRoot":"","sources":["../../../src/components/input.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6FY,2DAGD;;;IAMC,oEAMD;;;;IAMC,oEAMD;;;;IAMC,oEAGD;;;;IAMC,oEAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAtJW,SAAS"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Input } from './input';
|
|
3
|
+
import { Label } from './label';
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/Input',
|
|
6
|
+
component: Input,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: 'centered',
|
|
9
|
+
},
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {
|
|
12
|
+
type: {
|
|
13
|
+
control: 'select',
|
|
14
|
+
options: ['text', 'email', 'password', 'number', 'tel', 'url', 'search', 'date', 'time'],
|
|
15
|
+
description: 'HTML input type',
|
|
16
|
+
},
|
|
17
|
+
placeholder: {
|
|
18
|
+
control: 'text',
|
|
19
|
+
description: 'Placeholder text',
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
control: 'boolean',
|
|
23
|
+
description: 'Disable input interaction',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
export const Default = {
|
|
29
|
+
args: {
|
|
30
|
+
placeholder: 'Enter text...',
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
export const Email = {
|
|
34
|
+
args: {
|
|
35
|
+
type: 'email',
|
|
36
|
+
placeholder: 'email@example.com',
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export const Password = {
|
|
40
|
+
args: {
|
|
41
|
+
type: 'password',
|
|
42
|
+
placeholder: 'Enter password',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
export const Number = {
|
|
46
|
+
args: {
|
|
47
|
+
type: 'number',
|
|
48
|
+
placeholder: '0',
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export const Search = {
|
|
52
|
+
args: {
|
|
53
|
+
type: 'search',
|
|
54
|
+
placeholder: 'Search...',
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
export const Disabled = {
|
|
58
|
+
args: {
|
|
59
|
+
disabled: true,
|
|
60
|
+
placeholder: 'Disabled input',
|
|
61
|
+
value: 'Cannot edit',
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
export const WithLabel = {
|
|
65
|
+
render: () => (_jsxs("div", { className: "grid w-full max-w-sm items-center gap-1.5", children: [_jsx(Label, { htmlFor: "email", children: "Email" }), _jsx(Input, { type: "email", id: "email", placeholder: "Email" })] })),
|
|
66
|
+
};
|
|
67
|
+
export const WithHelperText = {
|
|
68
|
+
render: () => (_jsxs("div", { className: "grid w-full max-w-sm items-center gap-1.5", children: [_jsx(Label, { htmlFor: "email-2", children: "Email" }), _jsx(Input, { type: "email", id: "email-2", placeholder: "Email" }), _jsx("p", { className: "text-sm text-[var(--tekton-bg-muted-foreground)]", children: "We'll never share your email." })] })),
|
|
69
|
+
};
|
|
70
|
+
export const WithError = {
|
|
71
|
+
render: () => (_jsxs("div", { className: "grid w-full max-w-sm items-center gap-1.5", children: [_jsx(Label, { htmlFor: "email-3", children: "Email" }), _jsx(Input, { type: "email", id: "email-3", placeholder: "Email", className: "border-[var(--tekton-bg-destructive)]", "aria-invalid": "true", "aria-describedby": "email-error" }), _jsx("p", { id: "email-error", className: "text-sm text-[var(--tekton-bg-destructive)]", children: "Please enter a valid email address." })] })),
|
|
72
|
+
};
|
|
73
|
+
export const File = {
|
|
74
|
+
render: () => (_jsxs("div", { className: "grid w-full max-w-sm items-center gap-1.5", children: [_jsx(Label, { htmlFor: "picture", children: "Picture" }), _jsx(Input, { id: "picture", type: "file" })] })),
|
|
75
|
+
};
|
|
76
|
+
export const AllTypes = {
|
|
77
|
+
render: () => (_jsxs("div", { className: "grid w-full max-w-sm gap-4", children: [_jsxs("div", { className: "grid gap-1.5", children: [_jsx(Label, { htmlFor: "text", children: "Text" }), _jsx(Input, { type: "text", id: "text", placeholder: "Text input" })] }), _jsxs("div", { className: "grid gap-1.5", children: [_jsx(Label, { htmlFor: "email-all", children: "Email" }), _jsx(Input, { type: "email", id: "email-all", placeholder: "email@example.com" })] }), _jsxs("div", { className: "grid gap-1.5", children: [_jsx(Label, { htmlFor: "password-all", children: "Password" }), _jsx(Input, { type: "password", id: "password-all", placeholder: "Password" })] }), _jsxs("div", { className: "grid gap-1.5", children: [_jsx(Label, { htmlFor: "number-all", children: "Number" }), _jsx(Input, { type: "number", id: "number-all", placeholder: "0" })] }), _jsxs("div", { className: "grid gap-1.5", children: [_jsx(Label, { htmlFor: "date", children: "Date" }), _jsx(Input, { type: "date", id: "date" })] })] })),
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=input.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.stories.js","sourceRoot":"","sources":["../../../src/components/input.stories.jsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,MAAM,IAAI,GAAG;IACT,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE;QACR,MAAM,EAAE,UAAU;KACrB;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACN,IAAI,EAAE;YACF,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;YACxF,WAAW,EAAE,iBAAiB;SACjC;QACD,WAAW,EAAE;YACT,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,kBAAkB;SAClC;QACD,QAAQ,EAAE;YACN,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,2BAA2B;SAC3C;KACJ;CACJ,CAAC;AACF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,IAAI,EAAE;QACF,WAAW,EAAE,eAAe;KAC/B;CACJ,CAAC;AAKF,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,IAAI,EAAE;QACF,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,mBAAmB;KACnC;CACJ,CAAC;AAIF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB,IAAI,EAAE;QACF,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,gB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C,GAAG,GAAE,IAClD,EACN,eAAK,SAAS,EAAC,cAAc,aAC3B,KAAC,KAAK,IAAC,OAAO,EAAC,MAAM,qBAAa,EAClC,KAAC,KAAK,IAAC,IAAI,EAAC,MAAM,EAAC,EAAE,EAAC,MAAM,GAAE,IAC1B,IACF,CAAC;CACV,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
+
export { Label };
|
|
6
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/label.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAOlE,QAAA,MAAM,KAAK,4PAKT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { cn } from '../lib/utils';
|
|
6
|
+
const labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
|
|
7
|
+
const Label = React.forwardRef(({ className, ...props }, ref) => (_jsx(LabelPrimitive.Root, { ref: ref, className: cn(labelVariants(), className), ...props })));
|
|
8
|
+
Label.displayName = LabelPrimitive.Root.displayName;
|
|
9
|
+
export { Label };
|
|
10
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../../src/components/label.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,MAAM,aAAa,GAAG,GAAG,CACvB,4FAA4F,CAC7F,CAAC;AAEF,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAG5B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,cAAc,CAAC,IAAI,IAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CACxF,CAAC,CAAC;AACH,KAAK,CAAC,WAAW,GAAG,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default meta;
|
|
2
|
+
export namespace Default {
|
|
3
|
+
function render(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
}
|
|
5
|
+
export namespace WithInput {
|
|
6
|
+
export function render_1(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { render_1 as render };
|
|
8
|
+
}
|
|
9
|
+
export namespace Required {
|
|
10
|
+
export function render_2(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { render_2 as render };
|
|
12
|
+
}
|
|
13
|
+
export namespace WithCheckbox {
|
|
14
|
+
export function render_3(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { render_3 as render };
|
|
16
|
+
}
|
|
17
|
+
export namespace Disabled {
|
|
18
|
+
export function render_4(): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { render_4 as render };
|
|
20
|
+
}
|
|
21
|
+
export namespace FormExample {
|
|
22
|
+
export function render_5(): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export { render_5 as render };
|
|
24
|
+
}
|
|
25
|
+
declare namespace meta {
|
|
26
|
+
export let title: string;
|
|
27
|
+
export { Label as component };
|
|
28
|
+
export namespace parameters {
|
|
29
|
+
let layout: string;
|
|
30
|
+
}
|
|
31
|
+
export let tags: string[];
|
|
32
|
+
}
|
|
33
|
+
import { Label } from './label';
|
|
34
|
+
//# sourceMappingURL=label.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.stories.d.ts","sourceRoot":"","sources":["../../../src/components/label.stories.jsx"],"names":[],"mappings":";;IAuBY,2DAA0B;;;IAO1B,oEAGD;;;;IAMC,oEAKD;;;;IAMC,oEAKD;;;;IAOC,oEAKD;;;;IAMC,oEAeD;;;;;;;;;;;sBAlFW,SAAS"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Label } from './label';
|
|
3
|
+
import { Input } from './input';
|
|
4
|
+
import { Checkbox } from './checkbox';
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Components/Label',
|
|
7
|
+
component: Label,
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: 'centered',
|
|
10
|
+
},
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export const Default = {
|
|
15
|
+
render: () => _jsx(Label, { children: "Label" }),
|
|
16
|
+
};
|
|
17
|
+
export const WithInput = {
|
|
18
|
+
render: () => (_jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { htmlFor: "email", children: "Email address" }), _jsx(Input, { type: "email", id: "email", placeholder: "email@example.com" })] })),
|
|
19
|
+
};
|
|
20
|
+
export const Required = {
|
|
21
|
+
render: () => (_jsxs("div", { className: "grid gap-2", children: [_jsxs(Label, { htmlFor: "username", children: ["Username ", _jsx("span", { className: "text-[var(--tekton-bg-destructive)]", children: "*" })] }), _jsx(Input, { id: "username", placeholder: "Enter username", required: true })] })),
|
|
22
|
+
};
|
|
23
|
+
export const WithCheckbox = {
|
|
24
|
+
render: () => (_jsxs("div", { className: "flex items-center space-x-2", children: [_jsx(Checkbox, { id: "terms" }), _jsx(Label, { htmlFor: "terms", className: "cursor-pointer", children: "Accept terms and conditions" })] })),
|
|
25
|
+
};
|
|
26
|
+
export const Disabled = {
|
|
27
|
+
render: () => (_jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { htmlFor: "disabled", className: "opacity-70", children: "Disabled field" }), _jsx(Input, { id: "disabled", placeholder: "Cannot edit", disabled: true })] })),
|
|
28
|
+
};
|
|
29
|
+
export const FormExample = {
|
|
30
|
+
render: () => (_jsxs("div", { className: "grid w-full max-w-sm gap-4", children: [_jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { htmlFor: "firstname", children: "First name" }), _jsx(Input, { id: "firstname", placeholder: "John" })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { htmlFor: "lastname", children: "Last name" }), _jsx(Input, { id: "lastname", placeholder: "Doe" })] }), _jsxs("div", { className: "grid gap-2", children: [_jsxs(Label, { htmlFor: "email-form", children: ["Email ", _jsx("span", { className: "text-[var(--tekton-bg-destructive)]", children: "*" })] }), _jsx(Input, { id: "email-form", type: "email", placeholder: "john@example.com", required: true })] })] })),
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=label.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.stories.js","sourceRoot":"","sources":["../../../src/components/label.stories.jsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC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AAM,CAAC,MAAM,QAAQ,GAAG;IACpB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,eAAK,SAAS,EAAC,YAAY,aACxC,KAAC,KAAK,IAAC,OAAO,EAAC,UAAU,EAAC,SAAS,EAAC,YAAY,+BAExC,EACR,KAAC,KAAK,IAAC,EAAE,EAAC,UAAU,EAAC,WAAW,EAAC,aAAa,EAAC,QAAQ,SAAE,IACrD,CAAC;CACV,CAAC;AAIF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,eAAK,SAAS,EAAC,4BAA4B,aACxD,eAAK,SAAS,EAAC,YAAY,aACzB,KAAC,KAAK,IAAC,OAAO,EAAC,WAAW,2BAAmB,EAC7C,KAAC,KAAK,IAAC,EAAE,EAAC,WAAW,EAAC,WAAW,EAAC,MAAM,GAAE,IACtC,EACN,eAAK,SAAS,EAAC,YAAY,aACzB,KAAC,KAAK,IAAC,OAAO,EAAC,UAAU,0BAAkB,EAC3C,KAAC,KAAK,IAAC,EAAE,EAAC,UAAU,EAAC,WAAW,EAAC,KAAK,GAAE,IACpC,EACN,eAAK,SAAS,EAAC,YAAY,aACzB,MAAC,KAAK,IAAC,OAAO,EAAC,YAAY,uBACnB,eAAM,SAAS,EAAC,qCAAqC,kBAAS,IAC9D,EACR,KAAC,KAAK,IAAC,EAAE,EAAC,YAAY,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,kBAAkB,EAAC,QAAQ,SAAE,IACzE,IACF,CAAC;CACV,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
3
|
+
declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
4
|
+
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
5
|
+
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
6
|
+
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
7
|
+
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { navigationMenuTriggerStyle, NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, };
|
|
13
|
+
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../../src/components/navigation-menu.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAI3E,QAAA,MAAM,cAAc,iKAYlB,CAAC;AAGH,QAAA,MAAM,kBAAkB,+KAYtB,CAAC;AAGH,QAAA,MAAM,kBAAkB,uHAA+B,CAAC;AAExD,QAAA,MAAM,0BAA0B,oFAE/B,CAAC;AAEF,QAAA,MAAM,qBAAqB,oLA4BzB,CAAC;AAGH,QAAA,MAAM,qBAAqB,8KAYzB,CAAC;AAGH,QAAA,MAAM,kBAAkB,2HAA+B,CAAC;AAExD,QAAA,MAAM,sBAAsB,+KAc1B,CAAC;AAGH,QAAA,MAAM,uBAAuB,gLAc3B,CAAC;AAGH,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,GACvB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { cn } from '../lib/utils';
|
|
6
|
+
const NavigationMenu = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(NavigationMenuPrimitive.Root, { ref: ref, className: cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className), ...props, children: [children, _jsx(NavigationMenuViewport, {})] })));
|
|
7
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
8
|
+
const NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => (_jsx(NavigationMenuPrimitive.List, { ref: ref, className: cn('group flex flex-1 list-none items-center justify-center gap-[var(--tekton-spacing-1)]', className), ...props })));
|
|
9
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
10
|
+
const NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
11
|
+
const navigationMenuTriggerStyle = cva('group inline-flex h-10 w-max items-center justify-center rounded-[var(--tekton-radius-md)] bg-[var(--tekton-bg-background)] px-[var(--tekton-spacing-4)] py-[var(--tekton-spacing-2)] text-sm font-medium transition-colors hover:bg-[var(--tekton-bg-accent)] hover:text-[var(--tekton-bg-accent-foreground)] focus:bg-[var(--tekton-bg-accent)] focus:text-[var(--tekton-bg-accent-foreground)] focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-[var(--tekton-bg-accent)]/50 data-[state=open]:bg-[var(--tekton-bg-accent)]/50');
|
|
12
|
+
const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(NavigationMenuPrimitive.Trigger, { ref: ref, className: cn(navigationMenuTriggerStyle(), 'group', className), ...props, children: [children, ' ', _jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180", "aria-hidden": "true", children: _jsx("path", { d: "M2.5 4.5L6 8L9.5 4.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })] })));
|
|
13
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
14
|
+
const NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(NavigationMenuPrimitive.Content, { ref: ref, className: cn('left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto', className), ...props })));
|
|
15
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
16
|
+
const NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
17
|
+
const NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { className: cn('absolute left-0 top-full flex justify-center'), children: _jsx(NavigationMenuPrimitive.Viewport, { className: cn('origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-[var(--tekton-radius-md)] border border-[var(--tekton-border-default)] bg-[var(--tekton-bg-popover)] text-[var(--tekton-text-popover-foreground)] shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]', className), ref: ref, ...props }) })));
|
|
18
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
19
|
+
const NavigationMenuIndicator = React.forwardRef(({ className, ...props }, ref) => (_jsx(NavigationMenuPrimitive.Indicator, { ref: ref, className: cn('top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in', className), ...props, children: _jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-[var(--tekton-border-default)] shadow-md" }) })));
|
|
20
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
21
|
+
export { navigationMenuTriggerStyle, NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, };
|
|
22
|
+
//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","sourceRoot":"","sources":["../../../src/components/navigation-menu.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,GAAG,EAA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C,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,uBAAuB,CAAC,SAAS,IAChC,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,8LAA8L,EAC9L,SAAS,CACV,KACG,KAAK,YAET,cAAK,SAAS,EAAC,gGAAgG,GAAG,GAChF,CACrC,CAAC,CAAC;AACH,uBAAuB,CAAC,WAAW,GAAG,uBAAuB,CAAC,SAAS,CAAC,WAAW,CAAC;AAEpF,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,GACvB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default meta;
|
|
2
|
+
export namespace Default {
|
|
3
|
+
function render(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
}
|
|
5
|
+
export namespace WithDropdowns {
|
|
6
|
+
export function render_1(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { render_1 as render };
|
|
8
|
+
}
|
|
9
|
+
export namespace MultiLevel {
|
|
10
|
+
export function render_2(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { render_2 as render };
|
|
12
|
+
}
|
|
13
|
+
export namespace Compact {
|
|
14
|
+
export function render_3(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { render_3 as render };
|
|
16
|
+
}
|
|
17
|
+
declare namespace meta {
|
|
18
|
+
export let title: string;
|
|
19
|
+
export { NavigationMenu as component };
|
|
20
|
+
export namespace parameters {
|
|
21
|
+
let layout: string;
|
|
22
|
+
}
|
|
23
|
+
export let tags: string[];
|
|
24
|
+
}
|
|
25
|
+
import { NavigationMenu } from './navigation-menu';
|
|
26
|
+
//# sourceMappingURL=navigation-menu.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/navigation-menu.stories.jsx"],"names":[],"mappings":";;IAqBY,2DAYU;;;IAOV,oEAuDU;;;;IAMV,oEA0CU;;;;IAMV,oEAkBU;;;;;;;;;;;+BAjKgJ,mBAAmB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerStyle, } from './navigation-menu';
|
|
3
|
+
import { cn } from '../lib/utils';
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/NavigationMenu',
|
|
6
|
+
component: NavigationMenu,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: 'centered',
|
|
9
|
+
},
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
export const Default = {
|
|
14
|
+
render: () => (_jsx(NavigationMenu, { children: _jsxs(NavigationMenuList, { children: [_jsx(NavigationMenuItem, { children: _jsx(NavigationMenuLink, { className: navigationMenuTriggerStyle(), children: "Home" }) }), _jsx(NavigationMenuItem, { children: _jsx(NavigationMenuLink, { className: navigationMenuTriggerStyle(), children: "About" }) }), _jsx(NavigationMenuItem, { children: _jsx(NavigationMenuLink, { className: navigationMenuTriggerStyle(), children: "Contact" }) })] }) })),
|
|
15
|
+
};
|
|
16
|
+
export const WithDropdowns = {
|
|
17
|
+
render: () => (_jsx(NavigationMenu, { children: _jsxs(NavigationMenuList, { children: [_jsxs(NavigationMenuItem, { children: [_jsx(NavigationMenuTrigger, { children: "Products" }), _jsx(NavigationMenuContent, { children: _jsxs("ul", { className: "grid gap-3 p-6 md:w-[400px] lg:w-[500px] lg:grid-cols-[.75fr_1fr]", children: [_jsx("li", { className: "row-span-3", children: _jsx(NavigationMenuLink, { asChild: true, children: _jsxs("a", { className: "flex h-full w-full select-none flex-col justify-end rounded-[var(--tekton-radius-md)] bg-gradient-to-b from-[var(--tekton-bg-muted)]/50 to-[var(--tekton-bg-muted)] p-6 no-underline outline-none focus:shadow-md", href: "/", children: [_jsx("div", { className: "mb-2 mt-4 text-lg font-medium", children: "Featured Product" }), _jsx("p", { className: "text-sm leading-tight text-[var(--tekton-text-muted-foreground)]", children: "Beautifully designed components built with Radix UI and Tailwind CSS." })] }) }) }), _jsx(ListItem, { href: "/product-1", title: "Product 1", children: "A powerful solution for your needs" }), _jsx(ListItem, { href: "/product-2", title: "Product 2", children: "Advanced features and capabilities" }), _jsx(ListItem, { href: "/product-3", title: "Product 3", children: "Enterprise-grade reliability" })] }) })] }), _jsxs(NavigationMenuItem, { children: [_jsx(NavigationMenuTrigger, { children: "Solutions" }), _jsx(NavigationMenuContent, { children: _jsxs("ul", { className: "grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px]", children: [_jsx(ListItem, { href: "/marketing", title: "Marketing", children: "Reach your audience effectively" }), _jsx(ListItem, { href: "/analytics", title: "Analytics", children: "Data-driven insights and reports" }), _jsx(ListItem, { href: "/commerce", title: "Commerce", children: "Build your online store" }), _jsx(ListItem, { href: "/insights", title: "Insights", children: "Understand your customers" })] }) })] }), _jsx(NavigationMenuItem, { children: _jsx(NavigationMenuLink, { className: navigationMenuTriggerStyle(), href: "/pricing", children: "Pricing" }) })] }) })),
|
|
18
|
+
};
|
|
19
|
+
export const MultiLevel = {
|
|
20
|
+
render: () => (_jsx(NavigationMenu, { children: _jsxs(NavigationMenuList, { children: [_jsxs(NavigationMenuItem, { children: [_jsx(NavigationMenuTrigger, { children: "Resources" }), _jsx(NavigationMenuContent, { children: _jsxs("ul", { className: "grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2", children: [_jsx(ListItem, { href: "/docs", title: "Documentation", children: "Learn how to integrate our products" }), _jsx(ListItem, { href: "/guides", title: "Guides", children: "Step-by-step tutorials and examples" }), _jsx(ListItem, { href: "/api", title: "API Reference", children: "Complete API documentation" }), _jsx(ListItem, { href: "/changelog", title: "Changelog", children: "Latest updates and releases" })] }) })] }), _jsxs(NavigationMenuItem, { children: [_jsx(NavigationMenuTrigger, { children: "Company" }), _jsx(NavigationMenuContent, { children: _jsxs("ul", { className: "grid w-[300px] gap-3 p-4", children: [_jsx(ListItem, { href: "/about", title: "About Us", children: "Our mission and values" }), _jsx(ListItem, { href: "/team", title: "Team", children: "Meet the people behind the product" }), _jsx(ListItem, { href: "/careers", title: "Careers", children: "Join our growing team" }), _jsx(ListItem, { href: "/blog", title: "Blog", children: "Latest news and insights" })] }) })] })] }) })),
|
|
21
|
+
};
|
|
22
|
+
export const Compact = {
|
|
23
|
+
render: () => (_jsx(NavigationMenu, { children: _jsxs(NavigationMenuList, { className: "gap-0", children: [_jsx(NavigationMenuItem, { children: _jsx(NavigationMenuLink, { className: cn(navigationMenuTriggerStyle(), 'px-3 py-2 text-xs'), children: "Home" }) }), _jsx(NavigationMenuItem, { children: _jsx(NavigationMenuLink, { className: cn(navigationMenuTriggerStyle(), 'px-3 py-2 text-xs'), children: "About" }) }), _jsx(NavigationMenuItem, { children: _jsx(NavigationMenuLink, { className: cn(navigationMenuTriggerStyle(), 'px-3 py-2 text-xs'), children: "Contact" }) })] }) })),
|
|
24
|
+
};
|
|
25
|
+
const ListItem = React.forwardRef(({ className, title, children, ...props }, ref) => {
|
|
26
|
+
return (_jsx("li", { children: _jsx(NavigationMenuLink, { asChild: true, children: _jsxs("a", { ref: ref, className: cn('block select-none space-y-1 rounded-[var(--tekton-radius-md)] p-3 leading-none no-underline outline-none transition-colors hover:bg-[var(--tekton-bg-accent)] hover:text-[var(--tekton-bg-accent-foreground)] focus:bg-[var(--tekton-bg-accent)] focus:text-[var(--tekton-bg-accent-foreground)]', className), ...props, children: [_jsx("div", { className: "text-sm font-medium leading-none", children: title }), _jsx("p", { className: "line-clamp-2 text-sm leading-snug text-[var(--tekton-text-muted-foreground)]", children: children })] }) }) }));
|
|
27
|
+
});
|
|
28
|
+
ListItem.displayName = 'ListItem';
|
|
29
|
+
import * as React from 'react';
|
|
30
|
+
//# sourceMappingURL=navigation-menu.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.stories.js","sourceRoot":"","sources":["../../../src/components/navigation-menu.stories.jsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,0BAA0B,GAAG,MAAM,mBAAmB,CAAC;AAC1L,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,MAAM,IAAI,GAAG;IACT,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,cAAc;IACzB,UAAU,EAAE;QACR,MAAM,EAAE,UAAU;KACrB;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;CACrB,CAAC;AACF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,KAAC,cAAc,cAC5B,MAAC,kBAAkB,eACjB,KAAC,kBAAkB,cACjB,KAAC,kBAAkB,IAAC,SAAS,EAAE,0BAA0B,EAAE,qBAA2B,GACnE,EACrB,KAAC,kBAAkB,cACjB,KAAC,kBAAkB,IAAC,SAAS,EAAE,0BAA0B,EAAE,sBAA4B,GACpE,EACrB,KAAC,kBAAkB,cACjB,KAAC,kBAAkB,IAAC,SAAS,EAAE,0BAA0B,EAAE,wBAA8B,GACtE,IACF,GACN,CAAC;CACrB,CAAC;AAKF,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,KAAC,cAAc,cAC5B,MAAC,kBAAkB,eACjB,MAAC,kBAAkB,eACjB,KAAC,qBAAqB,2BAAiC,EACvD,KAAC,qBAAqB,cACpB,cAAI,SAAS,EAAC,mEAAmE,aAC/E,aAAI,SAAS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ACN,CAAC;CACrB,CAAC;AAIF,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAChF,OAAO,CAAC,uBACN,KAAC,kBAAkB,IAAC,OAAO,kBACzB,aAAG,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,kSAAkS,EAAE,SAAS,CAAC,KAAM,KAAK,aAClV,cAAK,SAAS,EAAC,kCAAkC,YAAE,KAAK,GAAO,EAC/D,YAAG,SAAS,EAAC,8EAA8E,YACxF,QAAQ,GACP,IACF,GACe,GAClB,CAAC,CAAC;AACX,CAAC,CAAC,CAAC;AACH,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAIlC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Popover, PopoverTrigger, PopoverContent };
|
|
7
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAG5D,QAAA,MAAM,OAAO,yCAAwB,CAAC;AACtC,QAAA,MAAM,cAAc,gHAA2B,CAAC;AAEhD,QAAA,MAAM,cAAc,gKAgBlB,CAAC;AAGH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
4
|
+
import { cn } from '../lib/utils';
|
|
5
|
+
const Popover = PopoverPrimitive.Root;
|
|
6
|
+
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
7
|
+
const PopoverContent = React.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn('z-50 w-72 rounded-[var(--tekton-radius-md)] border border-[var(--tekton-border-default)] bg-[var(--tekton-bg-popover)] p-[var(--tekton-spacing-4)] text-[var(--tekton-bg-popover-foreground)] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className), ...props }) })));
|
|
8
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
9
|
+
export { Popover, PopoverTrigger, PopoverContent };
|
|
10
|
+
//# sourceMappingURL=popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../../src/components/popover.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC;AACtC,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAC;AAEhD,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAGrC,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,QAAQ,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACpE,KAAC,gBAAgB,CAAC,MAAM,cACtB,KAAC,gBAAgB,CAAC,OAAO,IACvB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,EAAE,CACX,uiBAAuiB,EACviB,SAAS,CACV,KACG,KAAK,GACT,GACsB,CAC3B,CAAC,CAAC;AACH,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC,OAAO,CAAC,WAAW,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default meta;
|
|
2
|
+
export namespace Default {
|
|
3
|
+
function render(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
}
|
|
5
|
+
export namespace WithForm {
|
|
6
|
+
export function render_1(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { render_1 as render };
|
|
8
|
+
}
|
|
9
|
+
export namespace Alignments {
|
|
10
|
+
export function render_2(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { render_2 as render };
|
|
12
|
+
}
|
|
13
|
+
declare namespace meta {
|
|
14
|
+
export let title: string;
|
|
15
|
+
export { Popover as component };
|
|
16
|
+
export namespace parameters {
|
|
17
|
+
let layout: string;
|
|
18
|
+
}
|
|
19
|
+
export let tags: string[];
|
|
20
|
+
}
|
|
21
|
+
import { Popover } from './popover';
|
|
22
|
+
//# sourceMappingURL=popover.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.stories.d.ts","sourceRoot":"","sources":["../../../src/components/popover.stories.jsx"],"names":[],"mappings":";;IAwBY,2DAYG;;;IAMH,oEA4BG;;;;IAMH,oEA2BD;;;;;;;;;;;wBAjG6C,WAAW"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Popover, PopoverContent, PopoverTrigger } from './popover';
|
|
3
|
+
import { Button } from './button';
|
|
4
|
+
import { Input } from './input';
|
|
5
|
+
import { Label } from './label';
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Components/Popover',
|
|
8
|
+
component: Popover,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
},
|
|
12
|
+
tags: ['autodocs'],
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
export const Default = {
|
|
16
|
+
render: () => (_jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Open popover" }) }), _jsx(PopoverContent, { children: _jsxs("div", { className: "space-y-2", children: [_jsx("h4", { className: "font-medium leading-none", children: "Dimensions" }), _jsx("p", { className: "text-sm text-[var(--tekton-bg-muted-foreground)]", children: "Set the dimensions for the layer." })] }) })] })),
|
|
17
|
+
};
|
|
18
|
+
export const WithForm = {
|
|
19
|
+
render: () => (_jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Open Settings" }) }), _jsx(PopoverContent, { className: "w-80", children: _jsxs("div", { className: "grid gap-4", children: [_jsxs("div", { className: "space-y-2", children: [_jsx("h4", { className: "font-medium leading-none", children: "Dimensions" }), _jsx("p", { className: "text-sm text-[var(--tekton-bg-muted-foreground)]", children: "Set the dimensions for the layer." })] }), _jsxs("div", { className: "grid gap-2", children: [_jsxs("div", { className: "grid grid-cols-3 items-center gap-4", children: [_jsx(Label, { htmlFor: "width", children: "Width" }), _jsx(Input, { id: "width", defaultValue: "100%", className: "col-span-2 h-8" })] }), _jsxs("div", { className: "grid grid-cols-3 items-center gap-4", children: [_jsx(Label, { htmlFor: "maxWidth", children: "Max. width" }), _jsx(Input, { id: "maxWidth", defaultValue: "300px", className: "col-span-2 h-8" })] }), _jsxs("div", { className: "grid grid-cols-3 items-center gap-4", children: [_jsx(Label, { htmlFor: "height", children: "Height" }), _jsx(Input, { id: "height", defaultValue: "25px", className: "col-span-2 h-8" })] })] })] }) })] })),
|
|
20
|
+
};
|
|
21
|
+
export const Alignments = {
|
|
22
|
+
render: () => (_jsxs("div", { className: "flex gap-4", children: [_jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Align Start" }) }), _jsx(PopoverContent, { align: "start", children: _jsx("p", { children: "Aligned to start" }) })] }), _jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Align Center" }) }), _jsx(PopoverContent, { align: "center", children: _jsx("p", { children: "Aligned to center" }) })] }), _jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Align End" }) }), _jsx(PopoverContent, { align: "end", children: _jsx("p", { children: "Aligned to end" }) })] })] })),
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=popover.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.stories.js","sourceRoot":"","sources":["../../../src/components/popover.stories.jsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,MAAM,IAAI,GAAG;IACT,KAAK,EAAE,oBAAoB;IAC3B,SA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,GAAE,IAClE,EACN,eAAK,SAAS,EAAC,qCAAqC,aAClD,KAAC,KAAK,IAAC,OAAO,EAAC,QAAQ,uBAAe,EACtC,KAAC,KAAK,IAAC,EAAE,EAAC,QAAQ,EAAC,YAAY,EAAC,MAAM,EAAC,SAAS,EAAC,gBAAgB,GAAE,IAC/D,IACF,IACF,GACS,IACT,CAAC;CACd,CAAC;AAIF,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,eAAK,SAAS,EAAC,YAAY,aACxC,MAAC,OAAO,eACN,KAAC,cAAc,IAAC,OAAO,kBACrB,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,4BAAqB,GAC/B,EACjB,KAAC,cAAc,IAAC,KAAK,EAAC,OAAO,YAC3B,2CAAuB,GACR,IACT,EAEV,MAAC,OAAO,eACN,KAAC,cAAc,IAAC,OAAO,kBACrB,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,6BAAsB,GAChC,EACjB,KAAC,cAAc,IAAC,KAAK,EAAC,QAAQ,YAC5B,4CAAwB,GACT,IACT,EAEV,MAAC,OAAO,eACN,KAAC,cAAc,IAAC,OAAO,kBACrB,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,0BAAmB,GAC7B,EACjB,KAAC,cAAc,IAAC,KAAK,EAAC,KAAK,YACzB,yCAAqB,GACN,IACT,IACN,CAAC;CACV,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
3
|
+
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Progress };
|
|
5
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/progress.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAG9D,QAAA,MAAM,QAAQ,2JAqBZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
4
|
+
import { cn } from '../lib/utils';
|
|
5
|
+
const Progress = React.forwardRef(({ className, value, ...props }, ref) => (_jsx(ProgressPrimitive.Root, { ref: ref, value: value, "aria-valuenow": value ?? undefined, "aria-valuemin": 0, "aria-valuemax": 100, className: cn('relative h-4 w-full overflow-hidden rounded-[var(--tekton-radius-full)] bg-[var(--tekton-bg-secondary)]', className), ...props, children: _jsx(ProgressPrimitive.Indicator, { className: "h-full w-full flex-1 bg-[var(--tekton-bg-primary)] transition-all", style: { transform: `translateX(-${100 - (value || 0)}%)` } }) })));
|
|
6
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
7
|
+
export { Progress };
|
|
8
|
+
//# sourceMappingURL=progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../../src/components/progress.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAG/B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACzC,KAAC,iBAAiB,CAAC,IAAI,IACrB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,mBACG,KAAK,IAAI,SAAS,mBAClB,CAAC,mBACD,GAAG,EAClB,SAAS,EAAE,EAAE,CACX,yGAAyG,EACzG,SAAS,CACV,KACG,KAAK,YAET,KAAC,iBAAiB,CAAC,SAAS,IAC1B,SAAS,EAAC,mEAAmE,EAC7E,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,GAAG,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,EAAE,GAC3D,GACqB,CAC1B,CAAC,CAAC;AACH,QAAQ,CAAC,WAAW,GAAG,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export default meta;
|
|
2
|
+
export namespace Default {
|
|
3
|
+
namespace args {
|
|
4
|
+
let value: number;
|
|
5
|
+
let className: string;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export namespace Values {
|
|
9
|
+
function render(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export namespace Animated {
|
|
12
|
+
export function render_1(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { render_1 as render };
|
|
14
|
+
}
|
|
15
|
+
export namespace FileUpload {
|
|
16
|
+
export function render_2(): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { render_2 as render };
|
|
18
|
+
}
|
|
19
|
+
export namespace Sizes {
|
|
20
|
+
export function render_3(): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export { render_3 as render };
|
|
22
|
+
}
|
|
23
|
+
declare namespace meta {
|
|
24
|
+
export let title: string;
|
|
25
|
+
export { Progress as component };
|
|
26
|
+
export namespace parameters {
|
|
27
|
+
let layout: string;
|
|
28
|
+
}
|
|
29
|
+
export let tags: string[];
|
|
30
|
+
export namespace argTypes {
|
|
31
|
+
export namespace value_1 {
|
|
32
|
+
namespace control {
|
|
33
|
+
let type: string;
|
|
34
|
+
let min: number;
|
|
35
|
+
let max: number;
|
|
36
|
+
let step: number;
|
|
37
|
+
}
|
|
38
|
+
let description: string;
|
|
39
|
+
}
|
|
40
|
+
export { value_1 as value };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
import { Progress } from './progress';
|
|
44
|
+
//# sourceMappingURL=progress.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.stories.d.ts","sourceRoot":"","sources":["../../../src/components/progress.stories.jsx"],"names":[],"mappings":";;;;;;;;IAsCY,2DA6BD;;;IAMC,oEAUP;;;;IAMO,oEA6BP;;;;IAMO,oEAaD;;;;;;;;;;;;;;;;;;;;;;;yBAlIc,YAAY"}
|