astro-component-kit 0.0.1 → 0.1.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 +218 -119
- package/package.json +25 -52
- package/src/components/index.ts +207 -0
- package/src/components/lib/AnimatedGalaxy.astro +185 -0
- package/src/components/lib/Galaxy3D.astro +308 -0
- package/src/components/lib/GlassNavbar.astro +13 -11
- package/src/components/lib/LogoWithGalaxy.astro +63 -0
- package/src/components/lib/buttons/3dPushButton.astro +9 -0
- package/src/components/lib/buttons/AnimatedIconButton.astro +10 -0
- package/src/components/lib/buttons/BorderDrawButton.astro +9 -0
- package/src/components/lib/buttons/CyberpunkButton.astro +10 -0
- package/src/components/lib/buttons/DoubleBorderButton.astro +9 -0
- package/src/components/lib/buttons/GhostOutlineButton.astro +10 -0
- package/src/components/lib/buttons/GlassButton.astro +13 -32
- package/src/components/lib/buttons/GlowButton.astro +9 -0
- package/src/components/lib/buttons/LiquidButton.astro +9 -0
- package/src/components/lib/buttons/LoadingButton.astro +10 -0
- package/src/components/lib/buttons/MagneticButton.astro +10 -0
- package/src/components/lib/buttons/MinimalPillButton.astro +9 -0
- package/src/components/lib/buttons/NeumorphicButton.astro +10 -0
- package/src/components/lib/buttons/PulseButton.astro +10 -0
- package/src/components/lib/buttons/RetroArcadeButton.astro +9 -0
- package/src/components/lib/buttons/RetroShadowButton.astro +9 -0
- package/src/components/lib/buttons/ShimmerButton.astro +9 -0
- package/src/components/lib/buttons/ShinyButton.astro +9 -0
- package/src/components/lib/buttons/TiltGlowButton.astro +10 -0
- package/src/components/lib/cards/BlogHorizontalCard.astro +46 -13
- package/src/components/lib/cards/CyberFeatureCard.astro +50 -6
- package/src/components/lib/cards/EcommerceProductCard.astro +69 -16
- package/src/components/lib/cards/GlassCard.astro +8 -0
- package/src/components/lib/cards/GlassEventCard.astro +53 -12
- package/src/components/lib/cards/GlowPortfolioCard.astro +46 -9
- package/src/components/lib/cards/InteractiveTiltCard.astro +47 -7
- package/src/components/lib/cards/KanbanItemCard.astro +40 -9
- package/src/components/lib/cards/MinimalLinkCard.astro +37 -7
- package/src/components/lib/cards/MusicPlayerMini.astro +54 -14
- package/src/components/lib/cards/NeumorphicCard.astro +32 -2
- package/src/components/lib/cards/NotificationCard.astro +44 -9
- package/src/components/lib/cards/PricingCard.astro +47 -9
- package/src/components/lib/cards/ProfileCard.astro +50 -11
- package/src/components/lib/cards/RetroGameCard.astro +37 -9
- package/src/components/lib/cards/StatCard.astro +43 -8
- package/src/components/lib/cards/TaskKanbanCard.astro +50 -11
- package/src/components/lib/cards/TestimonialCardClean.astro +43 -12
- package/src/components/lib/cards/WeatherWidgetCard.astro +36 -10
- package/src/components/lib/feedback/AnimatedCheckmark.astro +58 -9
- package/src/components/lib/feedback/Badge.astro +47 -12
- package/src/components/lib/feedback/CircleProgress.astro +56 -13
- package/src/components/lib/feedback/ConfettiFeedback.astro +74 -11
- package/src/components/lib/feedback/CyberGlitchAlert.astro +69 -6
- package/src/components/lib/feedback/EmptyStateCard.astro +55 -7
- package/src/components/lib/feedback/GlassAlert.astro +59 -13
- package/src/components/lib/feedback/GlassModal.astro +99 -14
- package/src/components/lib/feedback/GlassProgress.astro +39 -5
- package/src/components/lib/feedback/IndicatorBadgeMinimal.astro +56 -3
- package/src/components/lib/feedback/NeonSpinner.astro +40 -3
- package/src/components/lib/feedback/PulseDot.astro +51 -7
- package/src/components/lib/feedback/RatingPill.astro +38 -8
- package/src/components/lib/feedback/ShakeErrorGroup.astro +44 -3
- package/src/components/lib/feedback/SimpleTooltip.astro +53 -4
- package/src/components/lib/feedback/SkeletonList.astro +59 -13
- package/src/components/lib/feedback/Spotlight.astro +49 -4
- package/src/components/lib/feedback/StepProgress.astro +96 -9
- package/src/components/lib/feedback/ToastNotif.astro +60 -6
- package/src/components/lib/feedback/TypingIndicator.astro +52 -7
- package/src/components/lib/forms/AnimatedInput.astro +47 -5
- package/src/components/lib/forms/ChipInput.astro +116 -8
- package/src/components/lib/forms/ColorPickerInput.astro +53 -6
- package/src/components/lib/forms/CurrencyInput.astro +59 -6
- package/src/components/lib/forms/CustomRadioGroup.astro +61 -9
- package/src/components/lib/forms/CyberpunkCheckbox.astro +64 -8
- package/src/components/lib/forms/DragDropUpload.astro +87 -7
- package/src/components/lib/forms/ErrorInput.astro +31 -4
- package/src/components/lib/forms/FloatingPassword.astro +48 -10
- package/src/components/lib/forms/FormGroupVertical.astro +63 -9
- package/src/components/lib/forms/GlassSlider.astro +84 -3
- package/src/components/lib/forms/GlassTextarea.astro +39 -6
- package/src/components/lib/forms/ModernSelect.astro +66 -10
- package/src/components/lib/forms/NeumorphicSwitch.astro +54 -26
- package/src/components/lib/forms/OTPInput.astro +84 -12
- package/src/components/lib/forms/RatingStars.astro +66 -10
- package/src/components/lib/forms/SearchReveal.astro +44 -6
- package/src/components/lib/forms/SegmentedControl.astro +61 -7
- package/src/components/lib/forms/SimpleFileInput.astro +57 -6
- package/src/components/lib/forms/StepperInput.astro +101 -9
- package/src/components/lib/layout/FeatureHero.astro +70 -6
- package/src/components/lib/layout/FooterCenteredMinimal.astro +5 -2
- package/src/components/lib/navigation/GlassNavbar.astro +10 -5
- package/src/components/lib/navigation/MinimalSidebar.astro +6 -3
- package/src/components/lib/navigation/SimpleFooterGlass.astro +6 -2
- package/src/components/lib/overlays/SplashIntroOverlay.astro +6 -3
- package/src/components/lib/sections/ButtonsShowcase.astro +182 -0
- package/src/components/lib/sections/CardsShowcase.astro +376 -0
- package/src/components/lib/sections/DataShowcase.astro +329 -0
- package/src/components/lib/sections/FeedbackShowcase.astro +320 -0
- package/src/components/lib/sections/FormsShowcase.astro +347 -0
- package/src/components/lib/sections/HeroGlass.astro +202 -0
- package/src/components/lib/sections/HeroGradient.astro +143 -0
- package/src/components/lib/sections/HeroSplit.astro +210 -0
- package/src/components/lib/sections/LayoutShowcase.astro +317 -0
- package/src/components/lib/sections/NavigationShowcase.astro +285 -0
- package/src/components/lib/sections/OverlaysShowcase.astro +373 -0
- package/src/components/lib/sections/TypographyShowcase.astro +239 -0
- package/src/components/lib/sections/index.ts +9 -0
- package/src/components/types.d.ts +6 -0
- package/{dist → src}/styles/global.css +5 -5
- package/dist/AnimatedInput.astro +0 -82
- package/dist/Badge.astro +0 -52
- package/dist/GlassButton.astro +0 -87
- package/dist/GlassCard.astro +0 -72
- package/dist/GlassNavbar.astro +0 -65
- package/dist/GlowButton.astro +0 -60
- package/dist/buttons/3dPushButton.astro +0 -136
- package/dist/buttons/AnimatedIconButton.astro +0 -146
- package/dist/buttons/BorderDrawButton.astro +0 -112
- package/dist/buttons/CyberpunkButton.astro +0 -148
- package/dist/buttons/DoubleBorderButton.astro +0 -131
- package/dist/buttons/GhostOutlineButton.astro +0 -109
- package/dist/buttons/GlassButton.astro +0 -165
- package/dist/buttons/GlowButton.astro +0 -119
- package/dist/buttons/LiquidButton.astro +0 -167
- package/dist/buttons/LoadingButton.astro +0 -148
- package/dist/buttons/MagneticButton.astro +0 -134
- package/dist/buttons/MinimalPillButton.astro +0 -102
- package/dist/buttons/NeumorphicButton.astro +0 -158
- package/dist/buttons/PulseButton.astro +0 -111
- package/dist/buttons/RetroArcadeButton.astro +0 -105
- package/dist/buttons/RetroShadowButton.astro +0 -82
- package/dist/buttons/ShimmerButton.astro +0 -113
- package/dist/buttons/ShinyButton.astro +0 -121
- package/dist/buttons/TiltGlowButton.astro +0 -145
- package/dist/buttons/index.mjs +0 -19
- package/dist/buttons/index.ts +0 -19
- package/dist/cards/BlogHorizontalCard.astro +0 -18
- package/dist/cards/CyberFeatureCard.astro +0 -12
- package/dist/cards/EcommerceProductCard.astro +0 -24
- package/dist/cards/GlassCard.astro +0 -17
- package/dist/cards/GlassEventCard.astro +0 -19
- package/dist/cards/GlowPortfolioCard.astro +0 -16
- package/dist/cards/InteractiveTiltCard.astro +0 -25
- package/dist/cards/KanbanItemCard.astro +0 -15
- package/dist/cards/MinimalLinkCard.astro +0 -12
- package/dist/cards/MusicPlayerMini.astro +0 -21
- package/dist/cards/NeumorphicCard.astro +0 -6
- package/dist/cards/NotificationCard.astro +0 -15
- package/dist/cards/PricingCard.astro +0 -17
- package/dist/cards/ProfileCard.astro +0 -17
- package/dist/cards/RetroGameCard.astro +0 -15
- package/dist/cards/StatCard.astro +0 -15
- package/dist/cards/TaskKanbanCard.astro +0 -18
- package/dist/cards/TestimonialCardClean.astro +0 -20
- package/dist/cards/WeatherWidgetCard.astro +0 -17
- package/dist/cards/index.mjs +0 -19
- package/dist/cards/index.ts +0 -19
- package/dist/data/AccordionGroupGlass.astro +0 -21
- package/dist/data/AvatarGroupStack.astro +0 -15
- package/dist/data/CalendarGridView.astro +0 -18
- package/dist/data/DataChipsGroup.astro +0 -16
- package/dist/data/DescriptionListHoriz.astro +0 -14
- package/dist/data/FileTreeView.astro +0 -22
- package/dist/data/GanttChartMinimal.astro +0 -12
- package/dist/data/GlassTable.astro +0 -23
- package/dist/data/KeyValuePillGroup.astro +0 -12
- package/dist/data/PriceCompareTable.astro +0 -22
- package/dist/data/ProgressListSmall.astro +0 -17
- package/dist/data/RatingBreakdownBar.astro +0 -13
- package/dist/data/SparklineStatCard.astro +0 -16
- package/dist/data/StatsGridDashboard.astro +0 -16
- package/dist/data/StepperDataVertical.astro +0 -15
- package/dist/data/TagCloudData.astro +0 -14
- package/dist/data/TimelineHorizSteps.astro +0 -18
- package/dist/data/TreeItemInteractive.astro +0 -18
- package/dist/data/UserDirectoryItem.astro +0 -15
- package/dist/data/VerticalTimeline.astro +0 -21
- package/dist/data/index.mjs +0 -20
- package/dist/data/index.ts +0 -20
- package/dist/feedback/AnimatedCheckmark.astro +0 -13
- package/dist/feedback/Badge.astro +0 -19
- package/dist/feedback/CircleProgress.astro +0 -22
- package/dist/feedback/ConfettiFeedback.astro +0 -18
- package/dist/feedback/CyberGlitchAlert.astro +0 -11
- package/dist/feedback/EmptyStateCard.astro +0 -13
- package/dist/feedback/GlassAlert.astro +0 -20
- package/dist/feedback/GlassModal.astro +0 -19
- package/dist/feedback/GlassProgress.astro +0 -10
- package/dist/feedback/IndicatorBadgeMinimal.astro +0 -10
- package/dist/feedback/NeonSpinner.astro +0 -7
- package/dist/feedback/PulseDot.astro +0 -12
- package/dist/feedback/RatingPill.astro +0 -13
- package/dist/feedback/ShakeErrorGroup.astro +0 -7
- package/dist/feedback/SimpleTooltip.astro +0 -10
- package/dist/feedback/SkeletonList.astro +0 -20
- package/dist/feedback/Spotlight.astro +0 -9
- package/dist/feedback/StepProgress.astro +0 -14
- package/dist/feedback/ToastNotif.astro +0 -11
- package/dist/feedback/TypingIndicator.astro +0 -12
- package/dist/feedback/index.mjs +0 -20
- package/dist/feedback/index.ts +0 -20
- package/dist/forms/AnimatedInput.astro +0 -16
- package/dist/forms/ChipInput.astro +0 -13
- package/dist/forms/ColorPickerInput.astro +0 -13
- package/dist/forms/CurrencyInput.astro +0 -11
- package/dist/forms/CustomRadioGroup.astro +0 -13
- package/dist/forms/CyberpunkCheckbox.astro +0 -15
- package/dist/forms/DragDropUpload.astro +0 -12
- package/dist/forms/ErrorInput.astro +0 -11
- package/dist/forms/FloatingPassword.astro +0 -20
- package/dist/forms/FormGroupVertical.astro +0 -14
- package/dist/forms/GlassSlider.astro +0 -7
- package/dist/forms/GlassTextarea.astro +0 -14
- package/dist/forms/ModernSelect.astro +0 -16
- package/dist/forms/NeumorphicSwitch.astro +0 -55
- package/dist/forms/OTPInput.astro +0 -22
- package/dist/forms/RatingStars.astro +0 -15
- package/dist/forms/SearchReveal.astro +0 -13
- package/dist/forms/SegmentedControl.astro +0 -13
- package/dist/forms/SimpleFileInput.astro +0 -11
- package/dist/forms/StepperInput.astro +0 -14
- package/dist/forms/index.mjs +0 -20
- package/dist/forms/index.ts +0 -20
- package/dist/index.js +0 -1
- package/dist/index.mjs +0 -1
- package/dist/layout/BentoGrid3.astro +0 -14
- package/dist/layout/CenterFixedBox.astro +0 -6
- package/dist/layout/CenteredContainer.astro +0 -8
- package/dist/layout/ClusterHorizontal.astro +0 -6
- package/dist/layout/FeatureHero.astro +0 -17
- package/dist/layout/FooterCenteredMinimal.astro +0 -11
- package/dist/layout/FullBleedSection.astro +0 -6
- package/dist/layout/GalleryGrid4.astro +0 -7
- package/dist/layout/GlassCardGrid.astro +0 -6
- package/dist/layout/GlassSectionHeader.astro +0 -15
- package/dist/layout/LandingSectionSplit.astro +0 -13
- package/dist/layout/MasonryGrid.astro +0 -7
- package/dist/layout/MinimalFooterGrid.astro +0 -20
- package/dist/layout/ScrollSnapSection.astro +0 -7
- package/dist/layout/SectionDividerText.astro +0 -7
- package/dist/layout/SidebarLayoutWrapper.astro +0 -11
- package/dist/layout/SplitScreenLayout.astro +0 -11
- package/dist/layout/StepLayoutVertical.astro +0 -21
- package/dist/layout/StickySidebarWrapper.astro +0 -10
- package/dist/layout/VerticalStack.astro +0 -8
- package/dist/layout/index.mjs +0 -20
- package/dist/layout/index.ts +0 -20
- package/dist/navigation/AnchorSideNav.astro +0 -13
- package/dist/navigation/BottomNavMobile.astro +0 -13
- package/dist/navigation/BreadcrumbsMinimal.astro +0 -16
- package/dist/navigation/BurgerMorphIcon.astro +0 -12
- package/dist/navigation/CommandPaletteUI.astro +0 -17
- package/dist/navigation/DotNavigationSlider.astro +0 -13
- package/dist/navigation/FloatingTabBar.astro +0 -12
- package/dist/navigation/GlassNavbar.astro +0 -19
- package/dist/navigation/LangSwitcherPill.astro +0 -17
- package/dist/navigation/MegaMenuGlass.astro +0 -25
- package/dist/navigation/MinimalSidebar.astro +0 -18
- package/dist/navigation/PaginationGlass.astro +0 -20
- package/dist/navigation/PaginationInfiniteUI.astro +0 -11
- package/dist/navigation/RadialIconMenu.astro +0 -15
- package/dist/navigation/RetroArcadeMenu.astro +0 -12
- package/dist/navigation/ScrollProgressTop.astro +0 -15
- package/dist/navigation/SimpleFooterGlass.astro +0 -21
- package/dist/navigation/TabUnderline.astro +0 -14
- package/dist/navigation/UserProfileNav.astro +0 -21
- package/dist/navigation/VerticalTabs.astro +0 -14
- package/dist/navigation/index.mjs +0 -20
- package/dist/navigation/index.ts +0 -20
- package/dist/overlays/AgeVerificationOverlay.astro +0 -20
- package/dist/overlays/BackdropBlurMask.astro +0 -6
- package/dist/overlays/BottomSheetMobile.astro +0 -16
- package/dist/overlays/CommandDialog.astro +0 -19
- package/dist/overlays/ContextMenuOverlay.astro +0 -17
- package/dist/overlays/CookieBannerGlass.astro +0 -14
- package/dist/overlays/ExitIntentOverlay.astro +0 -19
- package/dist/overlays/FloatingTrayActions.astro +0 -13
- package/dist/overlays/HelpBubbleOverlay.astro +0 -11
- package/dist/overlays/LightboxOverlay.astro +0 -13
- package/dist/overlays/LoadingOverlayFull.astro +0 -10
- package/dist/overlays/MobileNavOverlay.astro +0 -18
- package/dist/overlays/OverlayModal.astro +0 -24
- package/dist/overlays/PopoverMenuGlass.astro +0 -17
- package/dist/overlays/SearchOverlayFullscreen.astro +0 -15
- package/dist/overlays/SideDrawerRight.astro +0 -16
- package/dist/overlays/SplashIntroOverlay.astro +0 -11
- package/dist/overlays/SpotlightIndicator.astro +0 -6
- package/dist/overlays/ToastStackOverlay.astro +0 -12
- package/dist/overlays/TooltipActionTray.astro +0 -14
- package/dist/overlays/index.mjs +0 -20
- package/dist/overlays/index.ts +0 -20
- package/dist/typography/AnimatedUnderlineLink.astro +0 -10
- package/dist/typography/BackgroundClipMask.astro +0 -7
- package/dist/typography/CodeInlineGlass.astro +0 -6
- package/dist/typography/CyberpunkGlitchText.astro +0 -20
- package/dist/typography/DropCapParagraph.astro +0 -7
- package/dist/typography/FadedVerticalText.astro +0 -6
- package/dist/typography/FloatingTextLabel.astro +0 -10
- package/dist/typography/GlassBlockQuote.astro +0 -13
- package/dist/typography/GlassTextReveal.astro +0 -7
- package/dist/typography/GradientHeading.astro +0 -9
- package/dist/typography/GradientUnderlineLink.astro +0 -7
- package/dist/typography/KbdIndicator.astro +0 -6
- package/dist/typography/LetterSpacingWide.astro +0 -6
- package/dist/typography/MinimalListMarkers.astro +0 -10
- package/dist/typography/MonospaceStatLine.astro +0 -6
- package/dist/typography/NeonTextHighlight.astro +0 -6
- package/dist/typography/ShadowRevealText.astro +0 -7
- package/dist/typography/StrokeHeadingOutline.astro +0 -8
- package/dist/typography/Text3DLayer.astro +0 -7
- package/dist/typography/TypewriterText.astro +0 -15
- package/dist/typography/index.mjs +0 -20
- package/dist/typography/index.ts +0 -20
- package/dist/utilities/AspectRatioBox.astro +0 -11
- package/dist/utilities/BackgroundDotPattern.astro +0 -6
- package/dist/utilities/CircularMask.astro +0 -7
- package/dist/utilities/ClickRippleWrapper.astro +0 -7
- package/dist/utilities/FadeInWrapper.astro +0 -11
- package/dist/utilities/FixedRatioImage.astro +0 -7
- package/dist/utilities/GlassBlurLayer.astro +0 -6
- package/dist/utilities/GradientBorderMask.astro +0 -7
- package/dist/utilities/HoverLift.astro +0 -7
- package/dist/utilities/ResponsiveSpacer.astro +0 -15
- package/dist/utilities/ResponsiveVisToggle.astro +0 -11
- package/dist/utilities/ScrollLockParent.astro +0 -11
- package/dist/utilities/ScrollMarginTarget.astro +0 -10
- package/dist/utilities/SlideUpReveal.astro +0 -7
- package/dist/utilities/SmoothAnchorLink.astro +0 -22
- package/dist/utilities/StackLayering.astro +0 -12
- package/dist/utilities/StickyObserver.astro +0 -8
- package/dist/utilities/TextTruncate.astro +0 -10
- package/dist/utilities/TruncateSingleLine.astro +0 -6
- package/dist/utilities/VisuallyHidden.astro +0 -6
- package/dist/utilities/index.mjs +0 -20
- package/dist/utilities/index.ts +0 -20
- package/src/components/lib/utilities/AspectRatioBox.astro +0 -11
- package/src/components/lib/utilities/BackgroundDotPattern.astro +0 -6
- package/src/components/lib/utilities/CircularMask.astro +0 -7
- package/src/components/lib/utilities/ClickRippleWrapper.astro +0 -7
- package/src/components/lib/utilities/FadeInWrapper.astro +0 -11
- package/src/components/lib/utilities/FixedRatioImage.astro +0 -7
- package/src/components/lib/utilities/GlassBlurLayer.astro +0 -6
- package/src/components/lib/utilities/GradientBorderMask.astro +0 -7
- package/src/components/lib/utilities/HoverLift.astro +0 -7
- package/src/components/lib/utilities/ResponsiveSpacer.astro +0 -15
- package/src/components/lib/utilities/ResponsiveVisToggle.astro +0 -11
- package/src/components/lib/utilities/ScrollLockParent.astro +0 -11
- package/src/components/lib/utilities/ScrollMarginTarget.astro +0 -10
- package/src/components/lib/utilities/SlideUpReveal.astro +0 -7
- package/src/components/lib/utilities/SmoothAnchorLink.astro +0 -22
- package/src/components/lib/utilities/StackLayering.astro +0 -12
- package/src/components/lib/utilities/StickyObserver.astro +0 -8
- package/src/components/lib/utilities/TextTruncate.astro +0 -10
- package/src/components/lib/utilities/TruncateSingleLine.astro +0 -6
- package/src/components/lib/utilities/VisuallyHidden.astro +0 -6
- package/src/components/lib/utilities/index.ts +0 -20
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="steps">
|
|
4
|
-
<div class="step active">1<span>Details</span></div>
|
|
5
|
-
<div class="step">2<span>Payment</span></div>
|
|
6
|
-
<div class="step">3<span>Finish</span></div>
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
.steps { display: flex; justify-content: space-between; position: relative; margin-bottom: 2rem; }
|
|
10
|
-
.steps::before { content: ""; position: absolute; top: 15px; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.05); z-index: -1; }
|
|
11
|
-
.step { width: 32px; height: 32px; border-radius: 50%; background: #1e293b; color: #64748b; border: 2px solid rgba(255,255,255,0.1); display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; position: relative; }
|
|
12
|
-
.step.active { background: #6366f1; border-color: #6366f1; color: #fff; box-shadow: 0 0 15px rgba(99,102,241,0.4); }
|
|
13
|
-
.step span { position: absolute; top: 100%; margin-top: 8px; font-size: 0.65rem; white-space: nowrap; color: inherit; }
|
|
14
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="toast show">
|
|
4
|
-
<span class="icon">✅</span>
|
|
5
|
-
<span>Settings saved successfully!</span>
|
|
6
|
-
</div>
|
|
7
|
-
<style>
|
|
8
|
-
.toast { position: fixed; bottom: 2rem; right: 2rem; background: #111; color: #fff; padding: 1rem 1.5rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 0.8rem; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transform: translateY(100px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1000; }
|
|
9
|
-
.toast.show { transform: translateY(0); }
|
|
10
|
-
.icon { background: rgba(52,211,153,0.1); padding: 4px; border-radius: 6px; }
|
|
11
|
-
</style>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="typing">
|
|
4
|
-
<span></span><span></span><span></span>
|
|
5
|
-
</div>
|
|
6
|
-
<style>
|
|
7
|
-
.typing { display: flex; gap: 4px; padding: 10px 15px; background: rgba(255,255,255,0.05); border-radius: 15px; width: fit-content; }
|
|
8
|
-
.typing span { width: 6px; height: 6px; background: #64748b; border-radius: 50%; animation: type 1s infinite alternate; }
|
|
9
|
-
.typing span:nth-child(2) { animation-delay: 0.2s; }
|
|
10
|
-
.typing span:nth-child(3) { animation-delay: 0.4s; }
|
|
11
|
-
@keyframes type { to { transform: translateY(-5px); background: #6366f1; } }
|
|
12
|
-
</style>
|
package/dist/feedback/index.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { default as AnimatedCheckmark } from './AnimatedCheckmark.astro';
|
|
2
|
-
export { default as Badge } from './Badge.astro';
|
|
3
|
-
export { default as CircleProgress } from './CircleProgress.astro';
|
|
4
|
-
export { default as ConfettiFeedback } from './ConfettiFeedback.astro';
|
|
5
|
-
export { default as CyberGlitchAlert } from './CyberGlitchAlert.astro';
|
|
6
|
-
export { default as EmptyStateCard } from './EmptyStateCard.astro';
|
|
7
|
-
export { default as GlassAlert } from './GlassAlert.astro';
|
|
8
|
-
export { default as GlassModal } from './GlassModal.astro';
|
|
9
|
-
export { default as GlassProgress } from './GlassProgress.astro';
|
|
10
|
-
export { default as IndicatorBadgeMinimal } from './IndicatorBadgeMinimal.astro';
|
|
11
|
-
export { default as NeonSpinner } from './NeonSpinner.astro';
|
|
12
|
-
export { default as PulseDot } from './PulseDot.astro';
|
|
13
|
-
export { default as RatingPill } from './RatingPill.astro';
|
|
14
|
-
export { default as ShakeErrorGroup } from './ShakeErrorGroup.astro';
|
|
15
|
-
export { default as SimpleTooltip } from './SimpleTooltip.astro';
|
|
16
|
-
export { default as SkeletonList } from './SkeletonList.astro';
|
|
17
|
-
export { default as Spotlight } from './Spotlight.astro';
|
|
18
|
-
export { default as StepProgress } from './StepProgress.astro';
|
|
19
|
-
export { default as ToastNotif } from './ToastNotif.astro';
|
|
20
|
-
export { default as TypingIndicator } from './TypingIndicator.astro';
|
package/dist/feedback/index.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { default as AnimatedCheckmark } from './AnimatedCheckmark.astro';
|
|
2
|
-
export { default as Badge } from './Badge.astro';
|
|
3
|
-
export { default as CircleProgress } from './CircleProgress.astro';
|
|
4
|
-
export { default as ConfettiFeedback } from './ConfettiFeedback.astro';
|
|
5
|
-
export { default as CyberGlitchAlert } from './CyberGlitchAlert.astro';
|
|
6
|
-
export { default as EmptyStateCard } from './EmptyStateCard.astro';
|
|
7
|
-
export { default as GlassAlert } from './GlassAlert.astro';
|
|
8
|
-
export { default as GlassModal } from './GlassModal.astro';
|
|
9
|
-
export { default as GlassProgress } from './GlassProgress.astro';
|
|
10
|
-
export { default as IndicatorBadgeMinimal } from './IndicatorBadgeMinimal.astro';
|
|
11
|
-
export { default as NeonSpinner } from './NeonSpinner.astro';
|
|
12
|
-
export { default as PulseDot } from './PulseDot.astro';
|
|
13
|
-
export { default as RatingPill } from './RatingPill.astro';
|
|
14
|
-
export { default as ShakeErrorGroup } from './ShakeErrorGroup.astro';
|
|
15
|
-
export { default as SimpleTooltip } from './SimpleTooltip.astro';
|
|
16
|
-
export { default as SkeletonList } from './SkeletonList.astro';
|
|
17
|
-
export { default as Spotlight } from './Spotlight.astro';
|
|
18
|
-
export { default as StepProgress } from './StepProgress.astro';
|
|
19
|
-
export { default as ToastNotif } from './ToastNotif.astro';
|
|
20
|
-
export { default as TypingIndicator } from './TypingIndicator.astro';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { label: string; id: string; type?: string; placeholder?: string; required?: boolean; name?: string; }
|
|
3
|
-
const { label, id, type = 'text', placeholder = ' ', required = false, name } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class="anim-input-wrap">
|
|
6
|
-
<input {id} {name} {type} {placeholder} {required} class="anim-input" autocomplete="off" />
|
|
7
|
-
<label for={id} class="anim-input-label">{label}</label>
|
|
8
|
-
</div>
|
|
9
|
-
<style>
|
|
10
|
-
.anim-input-wrap { position: relative; width: 100%; }
|
|
11
|
-
.anim-input { width: 100%; padding: 1.1rem 1rem 0.5rem; font-family: inherit; font-size: 0.95rem; color: #e2e8f0; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; outline: none; box-sizing: border-box; transition: border-color 0.25s ease, background 0.25s ease; }
|
|
12
|
-
.anim-input::placeholder { color: transparent; }
|
|
13
|
-
.anim-input:focus { background: rgba(99, 102, 241, 0.06); border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12); }
|
|
14
|
-
.anim-input-label { position: absolute; top: 0.9rem; left: 1rem; font-size: 0.9rem; color: #64748b; pointer-events: none; transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease; }
|
|
15
|
-
.anim-input:focus ~ .anim-input-label, .anim-input:not(:placeholder-shown) ~ .anim-input-label { top: 0.28rem; font-size: 0.68rem; color: #818cf8; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
|
|
16
|
-
</style>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="chip-input">
|
|
4
|
-
<span class="chip">Astro <button>×</button></span>
|
|
5
|
-
<span class="chip">UI <button>×</button></span>
|
|
6
|
-
<input type="text" placeholder="Add tag..." />
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
.chip-input { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; background: rgba(0,0,0,0.1); border: 1px solid var(--c-border); border-radius: 10px; }
|
|
10
|
-
.chip { background: #6366f1; color: #fff; padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
|
|
11
|
-
.chip button { background: none; border: none; color: #fff; cursor: pointer; font-size: 1rem; }
|
|
12
|
-
.chip-input input { background: none; border: none; outline: none; color: #fff; flex: 1; padding: 0.2rem; }
|
|
13
|
-
</style>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="color-picker-wrap">
|
|
4
|
-
<input type="color" class="color-input" id="picker" value="#6366f1" />
|
|
5
|
-
<label for="picker">Primary Accent</label>
|
|
6
|
-
</div>
|
|
7
|
-
<style>
|
|
8
|
-
.color-picker-wrap { display: flex; align-items: center; gap: 1rem; }
|
|
9
|
-
.color-input { -webkit-appearance: none; border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; background: transparent; }
|
|
10
|
-
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
|
|
11
|
-
.color-input::-webkit-color-swatch { border: 2px solid rgba(255,255,255,0.2); border-radius: 50%; }
|
|
12
|
-
label { font-size: 0.9rem; color: #e2e8f0; font-weight: 500; }
|
|
13
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="curr-wrap">
|
|
4
|
-
<span class="symbol">$</span>
|
|
5
|
-
<input type="number" step="0.01" value="0.00" />
|
|
6
|
-
</div>
|
|
7
|
-
<style>
|
|
8
|
-
.curr-wrap { display: flex; align-items: center; background: rgba(255,255,255,0.05); border-radius: 10px; border: 1px solid var(--c-border); overflow: hidden; }
|
|
9
|
-
.symbol { padding: 0.8rem; background: rgba(255,255,255,0.05); color: #94a3b8; font-weight: 700; }
|
|
10
|
-
.curr-wrap input { background: none; border: none; padding: 0.8rem; color: #fff; font-size: 1.1rem; width: 100%; outline: none; }
|
|
11
|
-
</style>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="radio-group">
|
|
4
|
-
<label class="radio-item"><input type="radio" name="opt" checked /><span>Option A</span></label>
|
|
5
|
-
<label class="radio-item"><input type="radio" name="opt" /><span>Option B</span></label>
|
|
6
|
-
</div>
|
|
7
|
-
<style>
|
|
8
|
-
.radio-group { display: flex; flex-direction: column; gap: 0.8rem; }
|
|
9
|
-
.radio-item { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; color: #94a3b8; }
|
|
10
|
-
.radio-item input { appearance: none; width: 20px; height: 20px; border: 2px solid #6366f1; border-radius: 50%; position: relative; cursor: pointer; }
|
|
11
|
-
.radio-item input:checked::after { content: ''; position: absolute; inset: 4px; background: #6366f1; border-radius: 50%; }
|
|
12
|
-
.radio-item input:checked + span { color: #fff; font-weight: 600; }
|
|
13
|
-
</style>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<label class="cyber-check">
|
|
4
|
-
<input type="checkbox" />
|
|
5
|
-
<span class="checkmark"></span>
|
|
6
|
-
<slot />
|
|
7
|
-
</label>
|
|
8
|
-
<style>
|
|
9
|
-
.cyber-check { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; color: #00e0ff; font-family: monospace; font-weight: 700; text-transform: uppercase; }
|
|
10
|
-
.cyber-check input { display: none; }
|
|
11
|
-
.checkmark { width: 18px; height: 18px; border: 2px solid #ff003c; position: relative; transition: 0.2s; }
|
|
12
|
-
.cyber-check input:checked + .checkmark { background: #ff003c; box-shadow: 0 0 10px #ff003c; }
|
|
13
|
-
.checkmark::after { content: ''; position: absolute; display: none; left: 5px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
|
|
14
|
-
.cyber-check input:checked + .checkmark::after { display: block; }
|
|
15
|
-
</style>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="upload-zone">
|
|
4
|
-
<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>
|
|
5
|
-
<p>Drag files here or <span>browse</span></p>
|
|
6
|
-
<input type="file" hidden />
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
.upload-zone { border: 2px dashed rgba(255,255,255,0.1); border-radius: 20px; padding: 3rem; text-align: center; background: rgba(255,255,255,0.02); cursor: pointer; transition: 0.3s; color: #94a3b8; }
|
|
10
|
-
.upload-zone:hover { border-color: #6366f1; background: rgba(99, 102, 241, 0.05); color: #fff; }
|
|
11
|
-
.upload-zone span { color: #6366f1; font-weight: 600; text-decoration: underline; }
|
|
12
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="error-wrap">
|
|
4
|
-
<input type="text" class="input-error" value="invalid-email" />
|
|
5
|
-
<span class="error-msg">Please enter a valid email address</span>
|
|
6
|
-
</div>
|
|
7
|
-
<style>
|
|
8
|
-
.error-wrap { display: flex; flex-direction: column; gap: 0.4rem; }
|
|
9
|
-
.input-error { border: 1px solid #ef4444 !important; background: rgba(239, 68, 68, 0.05) !important; padding: 0.8rem; color: #fff; border-radius: 10px; outline: none; }
|
|
10
|
-
.error-msg { font-size: 0.75rem; color: #f87171; font-weight: 500; }
|
|
11
|
-
</style>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="pass-wrap">
|
|
4
|
-
<input type="password" id="pass" placeholder="Password" />
|
|
5
|
-
<button type="button" id="toggle-pass">👁️</button>
|
|
6
|
-
</div>
|
|
7
|
-
<style>
|
|
8
|
-
.pass-wrap { position: relative; width: 100%; }
|
|
9
|
-
.pass-wrap input { width: 100%; padding: 0.8rem 3rem 0.8rem 1rem; background: rgba(0,0,0,0.2); border: 1px solid var(--c-border); border-radius: 10px; color: #fff; outline: none; }
|
|
10
|
-
#toggle-pass { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; opacity: 0.5; }
|
|
11
|
-
</style>
|
|
12
|
-
<script>
|
|
13
|
-
const btn = document.getElementById('toggle-pass');
|
|
14
|
-
const pass = document.getElementById('pass') as HTMLInputElement;
|
|
15
|
-
btn?.addEventListener('click', () => {
|
|
16
|
-
const isPass = pass.type === 'password';
|
|
17
|
-
pass.type = isPass ? 'text' : 'password';
|
|
18
|
-
btn.textContent = isPass ? '🙈' : '👁️';
|
|
19
|
-
});
|
|
20
|
-
</script>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="form-group">
|
|
4
|
-
<label>Company Name</label>
|
|
5
|
-
<input type="text" placeholder="e.g. Acme Corp" />
|
|
6
|
-
<p class="help-text">Visible on your public profile.</p>
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
|
|
10
|
-
label { font-size: 0.82rem; font-weight: 700; color: #e2e8f0; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
11
|
-
input { background: #0f172a; border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 0.8rem; border-radius: 8px; outline: none; }
|
|
12
|
-
input:focus { border-color: #6366f1; }
|
|
13
|
-
.help-text { font-size: 0.75rem; color: #64748b; }
|
|
14
|
-
</style>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<input type="range" class="glass-slider" min="0" max="100" />
|
|
4
|
-
<style>
|
|
5
|
-
.glass-slider { -webkit-appearance: none; width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 5px; outline: none; backdrop-filter: blur(5px); }
|
|
6
|
-
.glass-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #6366f1; cursor: pointer; border: 2px solid rgba(255,255,255,0.5); box-shadow: 0 0 10px rgba(99,102,241,0.5); }
|
|
7
|
-
</style>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { label: string; id: string; rows?: number; }
|
|
3
|
-
const { label, id, rows = 4 } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class="glass-textarea-wrap">
|
|
6
|
-
<label for={id} class="glass-label">{label}</label>
|
|
7
|
-
<textarea {id} {rows} class="glass-textarea" placeholder="Start typing..."></textarea>
|
|
8
|
-
</div>
|
|
9
|
-
<style>
|
|
10
|
-
.glass-textarea-wrap { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
|
|
11
|
-
.glass-label { font-size: 0.85rem; font-weight: 600; color: #94a3b8; margin-left: 0.5rem; }
|
|
12
|
-
.glass-textarea { width: 100%; padding: 1rem; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; color: #fff; font-family: inherit; font-size: 0.9rem; outline: none; transition: 0.3s; resize: vertical; }
|
|
13
|
-
.glass-textarea:focus { border-color: rgba(99, 102, 241, 0.4); background: rgba(255, 255, 255, 0.06); }
|
|
14
|
-
</style>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="select-wrap">
|
|
4
|
-
<select class="custom-select">
|
|
5
|
-
<option>Select Option</option>
|
|
6
|
-
<option>Product Design</option>
|
|
7
|
-
<option>Web Development</option>
|
|
8
|
-
<option>Mobile Apps</option>
|
|
9
|
-
</select>
|
|
10
|
-
<div class="select-arrow"></div>
|
|
11
|
-
</div>
|
|
12
|
-
<style>
|
|
13
|
-
.select-wrap { position: relative; width: 100%; }
|
|
14
|
-
.custom-select { width: 100%; padding: 0.8rem 1rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: #fff; appearance: none; cursor: pointer; outline: none; }
|
|
15
|
-
.select-arrow { position: absolute; top: 18px; right: 15px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #64748b; pointer-events: none; }
|
|
16
|
-
</style>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<label class="neu-switch">
|
|
4
|
-
<input type="checkbox" />
|
|
5
|
-
<span class="slider"></span>
|
|
6
|
-
</label>
|
|
7
|
-
<style>
|
|
8
|
-
.neu-switch {
|
|
9
|
-
position: relative;
|
|
10
|
-
display: inline-block;
|
|
11
|
-
width: 56px;
|
|
12
|
-
height: 30px;
|
|
13
|
-
}
|
|
14
|
-
.neu-switch input {
|
|
15
|
-
opacity: 0;
|
|
16
|
-
width: 0;
|
|
17
|
-
height: 0;
|
|
18
|
-
}
|
|
19
|
-
.slider {
|
|
20
|
-
position: absolute;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
inset: 0;
|
|
23
|
-
background: #1a1f2e;
|
|
24
|
-
transition: 0.4s;
|
|
25
|
-
border-radius: 34px;
|
|
26
|
-
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
27
|
-
box-shadow:
|
|
28
|
-
inset 2px 2px 4px rgba(0, 0, 0, 0.4),
|
|
29
|
-
inset -2px -2px 4px rgba(255, 255, 255, 0.03);
|
|
30
|
-
}
|
|
31
|
-
.slider:before {
|
|
32
|
-
position: absolute;
|
|
33
|
-
content: "";
|
|
34
|
-
height: 22px;
|
|
35
|
-
width: 22px;
|
|
36
|
-
left: 3px;
|
|
37
|
-
top: 3px;
|
|
38
|
-
background: #4b5563;
|
|
39
|
-
transition: 0.4s;
|
|
40
|
-
border-radius: 50%;
|
|
41
|
-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
42
|
-
}
|
|
43
|
-
input:checked + .slider {
|
|
44
|
-
background: #1e2433;
|
|
45
|
-
box-shadow:
|
|
46
|
-
inset 2px 2px 4px rgba(0, 0, 0, 0.5),
|
|
47
|
-
inset -2px -2px 4px rgba(255, 255, 255, 0.02);
|
|
48
|
-
}
|
|
49
|
-
input:checked + .slider:before {
|
|
50
|
-
transform: translateX(26px);
|
|
51
|
-
background: #818cf8;
|
|
52
|
-
box-shadow: 0 0 10px rgba(129, 140, 248, 0.4);
|
|
53
|
-
}
|
|
54
|
-
</style>
|
|
55
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="otp-wrap">
|
|
4
|
-
<input type="text" maxlength="1" />
|
|
5
|
-
<input type="text" maxlength="1" />
|
|
6
|
-
<input type="text" maxlength="1" />
|
|
7
|
-
<input type="text" maxlength="1" />
|
|
8
|
-
</div>
|
|
9
|
-
<style>
|
|
10
|
-
.otp-wrap { display: flex; gap: 0.75rem; justify-content: center; }
|
|
11
|
-
.otp-wrap input { width: 45px; height: 55px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; text-align: center; color: #fff; font-size: 1.5rem; font-weight: 700; outline: none; transition: 0.2s; }
|
|
12
|
-
.otp-wrap input:focus { border-color: #6366f1; background: rgba(99, 102, 241, 0.1); box-shadow: 0 0 15px rgba(99, 102, 241, 0.3); }
|
|
13
|
-
</style>
|
|
14
|
-
<script>
|
|
15
|
-
document.querySelectorAll('.otp-wrap input').forEach((input, idx, inputs) => {
|
|
16
|
-
input.addEventListener('input', () => {
|
|
17
|
-
if ((input as HTMLInputElement).value && idx < inputs.length - 1) {
|
|
18
|
-
(inputs[idx+1] as HTMLInputElement).focus();
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
</script>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="rating">
|
|
4
|
-
<input type="radio" name="star" id="star5" /><label for="star5"></label>
|
|
5
|
-
<input type="radio" name="star" id="star4" /><label for="star4"></label>
|
|
6
|
-
<input type="radio" name="star" id="star3" /><label for="star3"></label>
|
|
7
|
-
<input type="radio" name="star" id="star2" /><label for="star2"></label>
|
|
8
|
-
<input type="radio" name="star" id="star1" /><label for="star1"></label>
|
|
9
|
-
</div>
|
|
10
|
-
<style>
|
|
11
|
-
.rating { display: flex; flex-direction: row-reverse; gap: 5px; }
|
|
12
|
-
.rating input { display: none; }
|
|
13
|
-
.rating label { width: 24px; height: 24px; background: #334155; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); cursor: pointer; transition: 0.2s; }
|
|
14
|
-
.rating label:hover, .rating label:hover ~ label, .rating input:checked ~ label { background: #fbbf24; box-shadow: 0 0 10px #fbbf24; }
|
|
15
|
-
</style>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="search-box">
|
|
4
|
-
<input type="text" placeholder="Search..." />
|
|
5
|
-
<button>🔍</button>
|
|
6
|
-
</div>
|
|
7
|
-
<style>
|
|
8
|
-
.search-box { position: relative; width: 40px; height: 40px; transition: 0.4s; }
|
|
9
|
-
.search-box:hover, .search-box:focus-within { width: 250px; }
|
|
10
|
-
.search-box input { width: 100%; height: 100%; background: #1e293b; border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; padding: 0 45px 0 20px; color: #fff; outline: none; opacity: 0; transition: 0.3s; }
|
|
11
|
-
.search-box:hover input, .search-box:focus-within input { opacity: 1; }
|
|
12
|
-
.search-box button { position: absolute; right: 0; width: 40px; height: 40px; background: #6366f1; border: none; border-radius: 50%; color: #fff; cursor: pointer; }
|
|
13
|
-
</style>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="segmented">
|
|
4
|
-
<input type="radio" name="seg" id="seg1" checked /><label for="seg1">Daily</label>
|
|
5
|
-
<input type="radio" name="seg" id="seg2" /><label for="seg2">Weekly</label>
|
|
6
|
-
<input type="radio" name="seg" id="seg3" /><label for="seg3">Monthly</label>
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
.segmented { display: flex; position: relative; background: rgba(255,255,255,0.05); padding: 4px; border-radius: 10px; width: fit-content; }
|
|
10
|
-
.segmented label { padding: 0.4rem 1.2rem; cursor: pointer; z-index: 1; font-size: 0.85rem; transition: 0.3s; color: #94a3b8; }
|
|
11
|
-
.segmented input { display: none; }
|
|
12
|
-
.segmented input:checked + label { color: #fff; font-weight: 600; background: rgba(99, 102, 241, 0.2); border-radius: 6px; }
|
|
13
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<label class="file-btn">
|
|
4
|
-
<input type="file" />
|
|
5
|
-
<span>Upload Logo</span>
|
|
6
|
-
</label>
|
|
7
|
-
<style>
|
|
8
|
-
.file-btn { position: relative; overflow: hidden; display: inline-block; cursor: pointer; }
|
|
9
|
-
.file-btn input { position: absolute; font-size: 100px; right: 0; top: 0; opacity: 0; cursor: pointer; }
|
|
10
|
-
.file-btn span { background: #6366f1; color: #fff; padding: 0.7rem 1.5rem; border-radius: 8px; font-weight: 600; display: inline-block; }
|
|
11
|
-
</style>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="stepper">
|
|
4
|
-
<button>-</button>
|
|
5
|
-
<input type="number" value="1" />
|
|
6
|
-
<button>+</button>
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
.stepper { display: flex; align-items: center; gap: 2px; }
|
|
10
|
-
.stepper button { width: 35px; height: 35px; background: #6366f1; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; transition: 0.2s; }
|
|
11
|
-
.stepper button:hover { background: #4f46e5; }
|
|
12
|
-
.stepper input { width: 50px; height: 35px; background: rgba(255,255,255,0.05); border: none; text-align: center; color: #fff; outline: none; -moz-appearance: textfield; }
|
|
13
|
-
.stepper input::-webkit-inner-spin-button { display: none; }
|
|
14
|
-
</style>
|
package/dist/forms/index.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { default as AnimatedInput } from './AnimatedInput.astro';
|
|
2
|
-
export { default as ChipInput } from './ChipInput.astro';
|
|
3
|
-
export { default as ColorPickerInput } from './ColorPickerInput.astro';
|
|
4
|
-
export { default as CurrencyInput } from './CurrencyInput.astro';
|
|
5
|
-
export { default as CustomRadioGroup } from './CustomRadioGroup.astro';
|
|
6
|
-
export { default as CyberpunkCheckbox } from './CyberpunkCheckbox.astro';
|
|
7
|
-
export { default as DragDropUpload } from './DragDropUpload.astro';
|
|
8
|
-
export { default as ErrorInput } from './ErrorInput.astro';
|
|
9
|
-
export { default as FloatingPassword } from './FloatingPassword.astro';
|
|
10
|
-
export { default as FormGroupVertical } from './FormGroupVertical.astro';
|
|
11
|
-
export { default as GlassSlider } from './GlassSlider.astro';
|
|
12
|
-
export { default as GlassTextarea } from './GlassTextarea.astro';
|
|
13
|
-
export { default as ModernSelect } from './ModernSelect.astro';
|
|
14
|
-
export { default as NeumorphicSwitch } from './NeumorphicSwitch.astro';
|
|
15
|
-
export { default as OTPInput } from './OTPInput.astro';
|
|
16
|
-
export { default as RatingStars } from './RatingStars.astro';
|
|
17
|
-
export { default as SearchReveal } from './SearchReveal.astro';
|
|
18
|
-
export { default as SegmentedControl } from './SegmentedControl.astro';
|
|
19
|
-
export { default as SimpleFileInput } from './SimpleFileInput.astro';
|
|
20
|
-
export { default as StepperInput } from './StepperInput.astro';
|
package/dist/forms/index.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { default as AnimatedInput } from './AnimatedInput.astro';
|
|
2
|
-
export { default as ChipInput } from './ChipInput.astro';
|
|
3
|
-
export { default as ColorPickerInput } from './ColorPickerInput.astro';
|
|
4
|
-
export { default as CurrencyInput } from './CurrencyInput.astro';
|
|
5
|
-
export { default as CustomRadioGroup } from './CustomRadioGroup.astro';
|
|
6
|
-
export { default as CyberpunkCheckbox } from './CyberpunkCheckbox.astro';
|
|
7
|
-
export { default as DragDropUpload } from './DragDropUpload.astro';
|
|
8
|
-
export { default as ErrorInput } from './ErrorInput.astro';
|
|
9
|
-
export { default as FloatingPassword } from './FloatingPassword.astro';
|
|
10
|
-
export { default as FormGroupVertical } from './FormGroupVertical.astro';
|
|
11
|
-
export { default as GlassSlider } from './GlassSlider.astro';
|
|
12
|
-
export { default as GlassTextarea } from './GlassTextarea.astro';
|
|
13
|
-
export { default as ModernSelect } from './ModernSelect.astro';
|
|
14
|
-
export { default as NeumorphicSwitch } from './NeumorphicSwitch.astro';
|
|
15
|
-
export { default as OTPInput } from './OTPInput.astro';
|
|
16
|
-
export { default as RatingStars } from './RatingStars.astro';
|
|
17
|
-
export { default as SearchReveal } from './SearchReveal.astro';
|
|
18
|
-
export { default as SegmentedControl } from './SegmentedControl.astro';
|
|
19
|
-
export { default as SimpleFileInput } from './SimpleFileInput.astro';
|
|
20
|
-
export { default as StepperInput } from './StepperInput.astro';
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// Astro Components Library
|
package/dist/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// Astro Components Library
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="bento">
|
|
4
|
-
<div class="item wide"><slot name="1" /></div>
|
|
5
|
-
<div class="item"><slot name="2" /></div>
|
|
6
|
-
<div class="item"><slot name="3" /></div>
|
|
7
|
-
<div class="item tall"><slot name="4" /></div>
|
|
8
|
-
</div>
|
|
9
|
-
<style>
|
|
10
|
-
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 1rem; }
|
|
11
|
-
.item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 1rem; }
|
|
12
|
-
.wide { grid-column: span 2; }
|
|
13
|
-
.tall { grid-row: span 2; }
|
|
14
|
-
</style>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { maxWidth?: string; }
|
|
3
|
-
const { maxWidth = '1200px' } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class="container" style={`--max-width: ${maxWidth}`}><slot /></div>
|
|
6
|
-
<style>
|
|
7
|
-
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
|
|
8
|
-
</style>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<section class="f-hero">
|
|
4
|
-
<div class="f-inner">
|
|
5
|
-
<h1>Experience the <span>Next Dimension</span> of Design</h1>
|
|
6
|
-
<p>Build stunning interfaces faster than ever with our premium component ecosystem.</p>
|
|
7
|
-
<div class="f-actions"><slot /></div>
|
|
8
|
-
</div>
|
|
9
|
-
</section>
|
|
10
|
-
<style>
|
|
11
|
-
.f-hero { padding: 8rem 2rem; text-align: center; background: radial-gradient(circle at top, rgba(99,102,241,0.15) 0%, transparent 70%); }
|
|
12
|
-
.f-inner { max-width: 800px; margin: 0 auto; }
|
|
13
|
-
h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; color: #fff; }
|
|
14
|
-
h1 span { background: linear-gradient(135deg, #6366f1, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
|
|
15
|
-
p { font-size: 1.25rem; color: #94a3b8; line-height: 1.6; margin-bottom: 2.5rem; }
|
|
16
|
-
.f-actions { display: flex; justify-content: center; gap: 1rem; }
|
|
17
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<footer class="c-footer">
|
|
4
|
-
<div class="c-logo">Astro Components</div>
|
|
5
|
-
<div class="c-copy">© 2024 Built with ❤️ and Astro.</div>
|
|
6
|
-
</footer>
|
|
7
|
-
<style>
|
|
8
|
-
.c-footer { text-align: center; padding: 4rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
|
|
9
|
-
.c-logo { font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; letter-spacing: 0.05em; }
|
|
10
|
-
.c-copy { font-size: 0.8rem; color: #64748b; }
|
|
11
|
-
</style>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="gal-grid"><slot /></div>
|
|
4
|
-
<style>
|
|
5
|
-
.gal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
|
|
6
|
-
.gal-grid :global(> *) { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, 0.05); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
|
|
7
|
-
</style>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { title: string; subtitle?: string; }
|
|
3
|
-
const { title, subtitle } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class="s-header">
|
|
6
|
-
<h2>{title}</h2>
|
|
7
|
-
{subtitle && <p>{subtitle}</p>}
|
|
8
|
-
<div class="s-line"></div>
|
|
9
|
-
</div>
|
|
10
|
-
<style>
|
|
11
|
-
.s-header { margin-bottom: 3rem; }
|
|
12
|
-
h2 { font-size: 2rem; color: #fff; margin: 0; }
|
|
13
|
-
p { color: #64748b; margin: 0.5rem 0 0; }
|
|
14
|
-
.s-line { height: 4px; width: 60px; background: #6366f1; border-radius: 2px; margin-top: 1.25rem; }
|
|
15
|
-
</style>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<section class="split-sec">
|
|
4
|
-
<div class="txt"><h2>Build faster</h2><p>Scale with pre-built logic and stunning modular designs.</p></div>
|
|
5
|
-
<div class="media"></div>
|
|
6
|
-
</section>
|
|
7
|
-
<style>
|
|
8
|
-
.split-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 4rem 1.5rem; }
|
|
9
|
-
.media { height: 400px; background: rgba(15, 23, 42, 0.5); border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); }
|
|
10
|
-
h2 { font-size: 2.5rem; color: #fff; margin-bottom: 1rem; }
|
|
11
|
-
p { font-size: 1.1rem; color: #94a3b8; line-height: 1.6; }
|
|
12
|
-
@media (max-width: 768px) { .split-sec { grid-template-columns: 1fr; } }
|
|
13
|
-
</style>
|