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,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="grad-border-box"><slot /></div>
|
|
4
|
-
<style>
|
|
5
|
-
.grad-border-box { position: relative; padding: 2rem; background: #080b14; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
|
|
6
|
-
.grad-border-box::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: linear-gradient(135deg, #6366f1, #c084fc); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
|
|
7
|
-
</style>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="h-lift"><slot /></div>
|
|
4
|
-
<style>
|
|
5
|
-
.h-lift { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s; cursor: pointer; display: inline-block; width: 100%; }
|
|
6
|
-
.h-lift:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
|
|
7
|
-
</style>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { size?: 'sm' | 'md' | 'lg' | 'xl'; }
|
|
3
|
-
const { size = 'md' } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class:list={['spacer', `spacer--${size}`]}></div>
|
|
6
|
-
<style>
|
|
7
|
-
.spacer--sm { height: 1rem; }
|
|
8
|
-
.spacer--md { height: 2.5rem; }
|
|
9
|
-
.spacer--lg { height: 5rem; }
|
|
10
|
-
.spacer--xl { height: 10rem; }
|
|
11
|
-
@media (max-width: 768px) {
|
|
12
|
-
.spacer--lg { height: 2.5rem; }
|
|
13
|
-
.spacer--xl { height: 4rem; }
|
|
14
|
-
}
|
|
15
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { hideOn?: 'mobile' | 'desktop'; }
|
|
3
|
-
const { hideOn } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class:list={['vis-toggle', hideOn ? `hide-${hideOn}` : '']}>
|
|
6
|
-
<slot />
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
@media (max-width: 768px) { .hide-mobile { display: none !important; } }
|
|
10
|
-
@media (min-width: 769px) { .hide-desktop { display: none !important; } }
|
|
11
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="scroll-lock-triggers">
|
|
4
|
-
<div class="scroll-lock-trigger" onclick="document.body.style.overflow = 'hidden'">Lock Scroll</div>
|
|
5
|
-
<div class="scroll-lock-trigger" onclick="document.body.style.overflow = 'auto'">Unlock Scroll</div>
|
|
6
|
-
</div>
|
|
7
|
-
<style>
|
|
8
|
-
.scroll-lock-triggers { display: flex; gap: 1rem; }
|
|
9
|
-
.scroll-lock-trigger { cursor: pointer; color: #6366f1; text-decoration: underline; font-weight: 700; font-size: 0.9rem; }
|
|
10
|
-
.scroll-lock-trigger:hover { color: #818cf8; }
|
|
11
|
-
</style>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { offset?: string; id?: string; }
|
|
3
|
-
const { offset = '100px', id } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<section class="s-target" style={`scroll-margin-top: ${offset}`} id={id}>
|
|
6
|
-
<slot />
|
|
7
|
-
</section>
|
|
8
|
-
<style>
|
|
9
|
-
.s-target { position: relative; }
|
|
10
|
-
</style>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { to: string; }
|
|
3
|
-
const { to } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<a href={`#${to}`} class="smooth-s"><slot /></a>
|
|
6
|
-
<style>
|
|
7
|
-
.smooth-s { color: #6366f1; font-weight: 800; text-decoration: none; cursor: pointer; transition: 0.2s; }
|
|
8
|
-
.smooth-s:hover { color: #818cf8; text-decoration: underline; }
|
|
9
|
-
</style>
|
|
10
|
-
<script>
|
|
11
|
-
// Ensuring smooth scroll behavior for modern browsers if not set in CSS
|
|
12
|
-
document.querySelectorAll('.smooth-s').forEach(anchor => {
|
|
13
|
-
anchor.addEventListener('click', function (e) {
|
|
14
|
-
e.preventDefault();
|
|
15
|
-
const targetId = this.getAttribute('href').substring(1);
|
|
16
|
-
const targetElement = document.getElementById(targetId);
|
|
17
|
-
if (targetElement) {
|
|
18
|
-
targetElement.scrollIntoView({ behavior: 'smooth' });
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
</script>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { layer?: 'base' | 'nav' | 'overlay' | 'toast'; }
|
|
3
|
-
const { layer = 'base' } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class:list={['z-stack', `z-${layer}`]}><slot /></div>
|
|
6
|
-
<style>
|
|
7
|
-
.z-stack { position: relative; }
|
|
8
|
-
.z-base { z-index: 1; }
|
|
9
|
-
.z-nav { z-index: 1000; }
|
|
10
|
-
.z-overlay { z-index: 2000; }
|
|
11
|
-
.z-toast { z-index: 3000; }
|
|
12
|
-
</style>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { lines?: number; }
|
|
3
|
-
const { lines = 1 } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class="truncate" style={`-webkit-line-clamp: ${lines}`}>
|
|
6
|
-
<slot />
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
.truncate { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
|
|
10
|
-
</style>
|
package/dist/utilities/index.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { default as AspectRatioBox } from './AspectRatioBox.astro';
|
|
2
|
-
export { default as BackgroundDotPattern } from './BackgroundDotPattern.astro';
|
|
3
|
-
export { default as CircularMask } from './CircularMask.astro';
|
|
4
|
-
export { default as ClickRippleWrapper } from './ClickRippleWrapper.astro';
|
|
5
|
-
export { default as FadeInWrapper } from './FadeInWrapper.astro';
|
|
6
|
-
export { default as FixedRatioImage } from './FixedRatioImage.astro';
|
|
7
|
-
export { default as GlassBlurLayer } from './GlassBlurLayer.astro';
|
|
8
|
-
export { default as GradientBorderMask } from './GradientBorderMask.astro';
|
|
9
|
-
export { default as HoverLift } from './HoverLift.astro';
|
|
10
|
-
export { default as ResponsiveSpacer } from './ResponsiveSpacer.astro';
|
|
11
|
-
export { default as ResponsiveVisToggle } from './ResponsiveVisToggle.astro';
|
|
12
|
-
export { default as ScrollLockParent } from './ScrollLockParent.astro';
|
|
13
|
-
export { default as ScrollMarginTarget } from './ScrollMarginTarget.astro';
|
|
14
|
-
export { default as SlideUpReveal } from './SlideUpReveal.astro';
|
|
15
|
-
export { default as SmoothAnchorLink } from './SmoothAnchorLink.astro';
|
|
16
|
-
export { default as StackLayering } from './StackLayering.astro';
|
|
17
|
-
export { default as StickyObserver } from './StickyObserver.astro';
|
|
18
|
-
export { default as TextTruncate } from './TextTruncate.astro';
|
|
19
|
-
export { default as TruncateSingleLine } from './TruncateSingleLine.astro';
|
|
20
|
-
export { default as VisuallyHidden } from './VisuallyHidden.astro';
|
package/dist/utilities/index.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { default as AspectRatioBox } from './AspectRatioBox.astro';
|
|
2
|
-
export { default as BackgroundDotPattern } from './BackgroundDotPattern.astro';
|
|
3
|
-
export { default as CircularMask } from './CircularMask.astro';
|
|
4
|
-
export { default as ClickRippleWrapper } from './ClickRippleWrapper.astro';
|
|
5
|
-
export { default as FadeInWrapper } from './FadeInWrapper.astro';
|
|
6
|
-
export { default as FixedRatioImage } from './FixedRatioImage.astro';
|
|
7
|
-
export { default as GlassBlurLayer } from './GlassBlurLayer.astro';
|
|
8
|
-
export { default as GradientBorderMask } from './GradientBorderMask.astro';
|
|
9
|
-
export { default as HoverLift } from './HoverLift.astro';
|
|
10
|
-
export { default as ResponsiveSpacer } from './ResponsiveSpacer.astro';
|
|
11
|
-
export { default as ResponsiveVisToggle } from './ResponsiveVisToggle.astro';
|
|
12
|
-
export { default as ScrollLockParent } from './ScrollLockParent.astro';
|
|
13
|
-
export { default as ScrollMarginTarget } from './ScrollMarginTarget.astro';
|
|
14
|
-
export { default as SlideUpReveal } from './SlideUpReveal.astro';
|
|
15
|
-
export { default as SmoothAnchorLink } from './SmoothAnchorLink.astro';
|
|
16
|
-
export { default as StackLayering } from './StackLayering.astro';
|
|
17
|
-
export { default as StickyObserver } from './StickyObserver.astro';
|
|
18
|
-
export { default as TextTruncate } from './TextTruncate.astro';
|
|
19
|
-
export { default as TruncateSingleLine } from './TruncateSingleLine.astro';
|
|
20
|
-
export { default as VisuallyHidden } from './VisuallyHidden.astro';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { ratio?: string; }
|
|
3
|
-
const { ratio = '16 / 9' } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class="aspect-box" style={`aspect-ratio: ${ratio}`}>
|
|
6
|
-
<slot />
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
.aspect-box { width: 100%; background: rgba(30, 41, 59, 0.5); overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); }
|
|
10
|
-
.aspect-box :global(img, video, iframe) { width: 100%; height: 100%; object-fit: cover; }
|
|
11
|
-
</style>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="c-mask"><slot /></div>
|
|
4
|
-
<style>
|
|
5
|
-
.c-mask { width: 100px; height: 100px; overflow: hidden; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
|
|
6
|
-
.c-mask :global(*) { width: 100%; height: 100%; object-fit: cover; }
|
|
7
|
-
</style>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<button class="ripple-bt"><slot /></button>
|
|
4
|
-
<style>
|
|
5
|
-
.ripple-bt { background: none; border: none; padding: 0; outline: none; transition: transform 0.1s; cursor: pointer; border-radius: inherit; }
|
|
6
|
-
.ripple-bt:active { transform: scale(0.95); }
|
|
7
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { duration?: string; delay?: string; }
|
|
3
|
-
const { duration = '0.6s', delay = '0s' } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class="fade-in" style={`--d: ${duration}; --l: ${delay}`}>
|
|
6
|
-
<slot />
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
.fade-in { opacity: 0; animation: fade-in-anim var(--d) cubic-bezier(0.16, 1, 0.3, 1) var(--l) forwards; }
|
|
10
|
-
@keyframes fade-in-anim { to { opacity: 1; } }
|
|
11
|
-
</style>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="ratio-3-2"><slot /></div>
|
|
4
|
-
<style>
|
|
5
|
-
.ratio-3-2 { width: 100%; aspect-ratio: 3 / 2; position: relative; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); }
|
|
6
|
-
.ratio-3-2 :global(*) { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
|
|
7
|
-
</style>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="grad-border-box"><slot /></div>
|
|
4
|
-
<style>
|
|
5
|
-
.grad-border-box { position: relative; padding: 2rem; background: #080b14; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
|
|
6
|
-
.grad-border-box::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: linear-gradient(135deg, #6366f1, #c084fc); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
|
|
7
|
-
</style>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="h-lift"><slot /></div>
|
|
4
|
-
<style>
|
|
5
|
-
.h-lift { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s; cursor: pointer; display: inline-block; width: 100%; }
|
|
6
|
-
.h-lift:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
|
|
7
|
-
</style>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { size?: 'sm' | 'md' | 'lg' | 'xl'; }
|
|
3
|
-
const { size = 'md' } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class:list={['spacer', `spacer--${size}`]}></div>
|
|
6
|
-
<style>
|
|
7
|
-
.spacer--sm { height: 1rem; }
|
|
8
|
-
.spacer--md { height: 2.5rem; }
|
|
9
|
-
.spacer--lg { height: 5rem; }
|
|
10
|
-
.spacer--xl { height: 10rem; }
|
|
11
|
-
@media (max-width: 768px) {
|
|
12
|
-
.spacer--lg { height: 2.5rem; }
|
|
13
|
-
.spacer--xl { height: 4rem; }
|
|
14
|
-
}
|
|
15
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { hideOn?: 'mobile' | 'desktop'; }
|
|
3
|
-
const { hideOn } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class:list={['vis-toggle', hideOn ? `hide-${hideOn}` : '']}>
|
|
6
|
-
<slot />
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
@media (max-width: 768px) { .hide-mobile { display: none !important; } }
|
|
10
|
-
@media (min-width: 769px) { .hide-desktop { display: none !important; } }
|
|
11
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
---
|
|
3
|
-
<div class="scroll-lock-triggers">
|
|
4
|
-
<div class="scroll-lock-trigger" onclick="document.body.style.overflow = 'hidden'">Lock Scroll</div>
|
|
5
|
-
<div class="scroll-lock-trigger" onclick="document.body.style.overflow = 'auto'">Unlock Scroll</div>
|
|
6
|
-
</div>
|
|
7
|
-
<style>
|
|
8
|
-
.scroll-lock-triggers { display: flex; gap: 1rem; }
|
|
9
|
-
.scroll-lock-trigger { cursor: pointer; color: #6366f1; text-decoration: underline; font-weight: 700; font-size: 0.9rem; }
|
|
10
|
-
.scroll-lock-trigger:hover { color: #818cf8; }
|
|
11
|
-
</style>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { offset?: string; id?: string; }
|
|
3
|
-
const { offset = '100px', id } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<section class="s-target" style={`scroll-margin-top: ${offset}`} id={id}>
|
|
6
|
-
<slot />
|
|
7
|
-
</section>
|
|
8
|
-
<style>
|
|
9
|
-
.s-target { position: relative; }
|
|
10
|
-
</style>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { to: string; }
|
|
3
|
-
const { to } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<a href={`#${to}`} class="smooth-s"><slot /></a>
|
|
6
|
-
<style>
|
|
7
|
-
.smooth-s { color: #6366f1; font-weight: 800; text-decoration: none; cursor: pointer; transition: 0.2s; }
|
|
8
|
-
.smooth-s:hover { color: #818cf8; text-decoration: underline; }
|
|
9
|
-
</style>
|
|
10
|
-
<script>
|
|
11
|
-
// Ensuring smooth scroll behavior for modern browsers if not set in CSS
|
|
12
|
-
document.querySelectorAll('.smooth-s').forEach(anchor => {
|
|
13
|
-
anchor.addEventListener('click', function (e) {
|
|
14
|
-
e.preventDefault();
|
|
15
|
-
const targetId = this.getAttribute('href').substring(1);
|
|
16
|
-
const targetElement = document.getElementById(targetId);
|
|
17
|
-
if (targetElement) {
|
|
18
|
-
targetElement.scrollIntoView({ behavior: 'smooth' });
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
</script>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { layer?: 'base' | 'nav' | 'overlay' | 'toast'; }
|
|
3
|
-
const { layer = 'base' } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class:list={['z-stack', `z-${layer}`]}><slot /></div>
|
|
6
|
-
<style>
|
|
7
|
-
.z-stack { position: relative; }
|
|
8
|
-
.z-base { z-index: 1; }
|
|
9
|
-
.z-nav { z-index: 1000; }
|
|
10
|
-
.z-overlay { z-index: 2000; }
|
|
11
|
-
.z-toast { z-index: 3000; }
|
|
12
|
-
</style>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props { lines?: number; }
|
|
3
|
-
const { lines = 1 } = Astro.props;
|
|
4
|
-
---
|
|
5
|
-
<div class="truncate" style={`-webkit-line-clamp: ${lines}`}>
|
|
6
|
-
<slot />
|
|
7
|
-
</div>
|
|
8
|
-
<style>
|
|
9
|
-
.truncate { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
|
|
10
|
-
</style>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { default as AspectRatioBox } from './AspectRatioBox.astro';
|
|
2
|
-
export { default as BackgroundDotPattern } from './BackgroundDotPattern.astro';
|
|
3
|
-
export { default as CircularMask } from './CircularMask.astro';
|
|
4
|
-
export { default as ClickRippleWrapper } from './ClickRippleWrapper.astro';
|
|
5
|
-
export { default as FadeInWrapper } from './FadeInWrapper.astro';
|
|
6
|
-
export { default as FixedRatioImage } from './FixedRatioImage.astro';
|
|
7
|
-
export { default as GlassBlurLayer } from './GlassBlurLayer.astro';
|
|
8
|
-
export { default as GradientBorderMask } from './GradientBorderMask.astro';
|
|
9
|
-
export { default as HoverLift } from './HoverLift.astro';
|
|
10
|
-
export { default as ResponsiveSpacer } from './ResponsiveSpacer.astro';
|
|
11
|
-
export { default as ResponsiveVisToggle } from './ResponsiveVisToggle.astro';
|
|
12
|
-
export { default as ScrollLockParent } from './ScrollLockParent.astro';
|
|
13
|
-
export { default as ScrollMarginTarget } from './ScrollMarginTarget.astro';
|
|
14
|
-
export { default as SlideUpReveal } from './SlideUpReveal.astro';
|
|
15
|
-
export { default as SmoothAnchorLink } from './SmoothAnchorLink.astro';
|
|
16
|
-
export { default as StackLayering } from './StackLayering.astro';
|
|
17
|
-
export { default as StickyObserver } from './StickyObserver.astro';
|
|
18
|
-
export { default as TextTruncate } from './TextTruncate.astro';
|
|
19
|
-
export { default as TruncateSingleLine } from './TruncateSingleLine.astro';
|
|
20
|
-
export { default as VisuallyHidden } from './VisuallyHidden.astro';
|