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.
Files changed (353) hide show
  1. package/README.md +218 -119
  2. package/package.json +25 -52
  3. package/src/components/index.ts +207 -0
  4. package/src/components/lib/AnimatedGalaxy.astro +185 -0
  5. package/src/components/lib/Galaxy3D.astro +308 -0
  6. package/src/components/lib/GlassNavbar.astro +13 -11
  7. package/src/components/lib/LogoWithGalaxy.astro +63 -0
  8. package/src/components/lib/buttons/3dPushButton.astro +9 -0
  9. package/src/components/lib/buttons/AnimatedIconButton.astro +10 -0
  10. package/src/components/lib/buttons/BorderDrawButton.astro +9 -0
  11. package/src/components/lib/buttons/CyberpunkButton.astro +10 -0
  12. package/src/components/lib/buttons/DoubleBorderButton.astro +9 -0
  13. package/src/components/lib/buttons/GhostOutlineButton.astro +10 -0
  14. package/src/components/lib/buttons/GlassButton.astro +13 -32
  15. package/src/components/lib/buttons/GlowButton.astro +9 -0
  16. package/src/components/lib/buttons/LiquidButton.astro +9 -0
  17. package/src/components/lib/buttons/LoadingButton.astro +10 -0
  18. package/src/components/lib/buttons/MagneticButton.astro +10 -0
  19. package/src/components/lib/buttons/MinimalPillButton.astro +9 -0
  20. package/src/components/lib/buttons/NeumorphicButton.astro +10 -0
  21. package/src/components/lib/buttons/PulseButton.astro +10 -0
  22. package/src/components/lib/buttons/RetroArcadeButton.astro +9 -0
  23. package/src/components/lib/buttons/RetroShadowButton.astro +9 -0
  24. package/src/components/lib/buttons/ShimmerButton.astro +9 -0
  25. package/src/components/lib/buttons/ShinyButton.astro +9 -0
  26. package/src/components/lib/buttons/TiltGlowButton.astro +10 -0
  27. package/src/components/lib/cards/BlogHorizontalCard.astro +46 -13
  28. package/src/components/lib/cards/CyberFeatureCard.astro +50 -6
  29. package/src/components/lib/cards/EcommerceProductCard.astro +69 -16
  30. package/src/components/lib/cards/GlassCard.astro +8 -0
  31. package/src/components/lib/cards/GlassEventCard.astro +53 -12
  32. package/src/components/lib/cards/GlowPortfolioCard.astro +46 -9
  33. package/src/components/lib/cards/InteractiveTiltCard.astro +47 -7
  34. package/src/components/lib/cards/KanbanItemCard.astro +40 -9
  35. package/src/components/lib/cards/MinimalLinkCard.astro +37 -7
  36. package/src/components/lib/cards/MusicPlayerMini.astro +54 -14
  37. package/src/components/lib/cards/NeumorphicCard.astro +32 -2
  38. package/src/components/lib/cards/NotificationCard.astro +44 -9
  39. package/src/components/lib/cards/PricingCard.astro +47 -9
  40. package/src/components/lib/cards/ProfileCard.astro +50 -11
  41. package/src/components/lib/cards/RetroGameCard.astro +37 -9
  42. package/src/components/lib/cards/StatCard.astro +43 -8
  43. package/src/components/lib/cards/TaskKanbanCard.astro +50 -11
  44. package/src/components/lib/cards/TestimonialCardClean.astro +43 -12
  45. package/src/components/lib/cards/WeatherWidgetCard.astro +36 -10
  46. package/src/components/lib/feedback/AnimatedCheckmark.astro +58 -9
  47. package/src/components/lib/feedback/Badge.astro +47 -12
  48. package/src/components/lib/feedback/CircleProgress.astro +56 -13
  49. package/src/components/lib/feedback/ConfettiFeedback.astro +74 -11
  50. package/src/components/lib/feedback/CyberGlitchAlert.astro +69 -6
  51. package/src/components/lib/feedback/EmptyStateCard.astro +55 -7
  52. package/src/components/lib/feedback/GlassAlert.astro +59 -13
  53. package/src/components/lib/feedback/GlassModal.astro +99 -14
  54. package/src/components/lib/feedback/GlassProgress.astro +39 -5
  55. package/src/components/lib/feedback/IndicatorBadgeMinimal.astro +56 -3
  56. package/src/components/lib/feedback/NeonSpinner.astro +40 -3
  57. package/src/components/lib/feedback/PulseDot.astro +51 -7
  58. package/src/components/lib/feedback/RatingPill.astro +38 -8
  59. package/src/components/lib/feedback/ShakeErrorGroup.astro +44 -3
  60. package/src/components/lib/feedback/SimpleTooltip.astro +53 -4
  61. package/src/components/lib/feedback/SkeletonList.astro +59 -13
  62. package/src/components/lib/feedback/Spotlight.astro +49 -4
  63. package/src/components/lib/feedback/StepProgress.astro +96 -9
  64. package/src/components/lib/feedback/ToastNotif.astro +60 -6
  65. package/src/components/lib/feedback/TypingIndicator.astro +52 -7
  66. package/src/components/lib/forms/AnimatedInput.astro +47 -5
  67. package/src/components/lib/forms/ChipInput.astro +116 -8
  68. package/src/components/lib/forms/ColorPickerInput.astro +53 -6
  69. package/src/components/lib/forms/CurrencyInput.astro +59 -6
  70. package/src/components/lib/forms/CustomRadioGroup.astro +61 -9
  71. package/src/components/lib/forms/CyberpunkCheckbox.astro +64 -8
  72. package/src/components/lib/forms/DragDropUpload.astro +87 -7
  73. package/src/components/lib/forms/ErrorInput.astro +31 -4
  74. package/src/components/lib/forms/FloatingPassword.astro +48 -10
  75. package/src/components/lib/forms/FormGroupVertical.astro +63 -9
  76. package/src/components/lib/forms/GlassSlider.astro +84 -3
  77. package/src/components/lib/forms/GlassTextarea.astro +39 -6
  78. package/src/components/lib/forms/ModernSelect.astro +66 -10
  79. package/src/components/lib/forms/NeumorphicSwitch.astro +54 -26
  80. package/src/components/lib/forms/OTPInput.astro +84 -12
  81. package/src/components/lib/forms/RatingStars.astro +66 -10
  82. package/src/components/lib/forms/SearchReveal.astro +44 -6
  83. package/src/components/lib/forms/SegmentedControl.astro +61 -7
  84. package/src/components/lib/forms/SimpleFileInput.astro +57 -6
  85. package/src/components/lib/forms/StepperInput.astro +101 -9
  86. package/src/components/lib/layout/FeatureHero.astro +70 -6
  87. package/src/components/lib/layout/FooterCenteredMinimal.astro +5 -2
  88. package/src/components/lib/navigation/GlassNavbar.astro +10 -5
  89. package/src/components/lib/navigation/MinimalSidebar.astro +6 -3
  90. package/src/components/lib/navigation/SimpleFooterGlass.astro +6 -2
  91. package/src/components/lib/overlays/SplashIntroOverlay.astro +6 -3
  92. package/src/components/lib/sections/ButtonsShowcase.astro +182 -0
  93. package/src/components/lib/sections/CardsShowcase.astro +376 -0
  94. package/src/components/lib/sections/DataShowcase.astro +329 -0
  95. package/src/components/lib/sections/FeedbackShowcase.astro +320 -0
  96. package/src/components/lib/sections/FormsShowcase.astro +347 -0
  97. package/src/components/lib/sections/HeroGlass.astro +202 -0
  98. package/src/components/lib/sections/HeroGradient.astro +143 -0
  99. package/src/components/lib/sections/HeroSplit.astro +210 -0
  100. package/src/components/lib/sections/LayoutShowcase.astro +317 -0
  101. package/src/components/lib/sections/NavigationShowcase.astro +285 -0
  102. package/src/components/lib/sections/OverlaysShowcase.astro +373 -0
  103. package/src/components/lib/sections/TypographyShowcase.astro +239 -0
  104. package/src/components/lib/sections/index.ts +9 -0
  105. package/src/components/types.d.ts +6 -0
  106. package/{dist → src}/styles/global.css +5 -5
  107. package/dist/AnimatedInput.astro +0 -82
  108. package/dist/Badge.astro +0 -52
  109. package/dist/GlassButton.astro +0 -87
  110. package/dist/GlassCard.astro +0 -72
  111. package/dist/GlassNavbar.astro +0 -65
  112. package/dist/GlowButton.astro +0 -60
  113. package/dist/buttons/3dPushButton.astro +0 -136
  114. package/dist/buttons/AnimatedIconButton.astro +0 -146
  115. package/dist/buttons/BorderDrawButton.astro +0 -112
  116. package/dist/buttons/CyberpunkButton.astro +0 -148
  117. package/dist/buttons/DoubleBorderButton.astro +0 -131
  118. package/dist/buttons/GhostOutlineButton.astro +0 -109
  119. package/dist/buttons/GlassButton.astro +0 -165
  120. package/dist/buttons/GlowButton.astro +0 -119
  121. package/dist/buttons/LiquidButton.astro +0 -167
  122. package/dist/buttons/LoadingButton.astro +0 -148
  123. package/dist/buttons/MagneticButton.astro +0 -134
  124. package/dist/buttons/MinimalPillButton.astro +0 -102
  125. package/dist/buttons/NeumorphicButton.astro +0 -158
  126. package/dist/buttons/PulseButton.astro +0 -111
  127. package/dist/buttons/RetroArcadeButton.astro +0 -105
  128. package/dist/buttons/RetroShadowButton.astro +0 -82
  129. package/dist/buttons/ShimmerButton.astro +0 -113
  130. package/dist/buttons/ShinyButton.astro +0 -121
  131. package/dist/buttons/TiltGlowButton.astro +0 -145
  132. package/dist/buttons/index.mjs +0 -19
  133. package/dist/buttons/index.ts +0 -19
  134. package/dist/cards/BlogHorizontalCard.astro +0 -18
  135. package/dist/cards/CyberFeatureCard.astro +0 -12
  136. package/dist/cards/EcommerceProductCard.astro +0 -24
  137. package/dist/cards/GlassCard.astro +0 -17
  138. package/dist/cards/GlassEventCard.astro +0 -19
  139. package/dist/cards/GlowPortfolioCard.astro +0 -16
  140. package/dist/cards/InteractiveTiltCard.astro +0 -25
  141. package/dist/cards/KanbanItemCard.astro +0 -15
  142. package/dist/cards/MinimalLinkCard.astro +0 -12
  143. package/dist/cards/MusicPlayerMini.astro +0 -21
  144. package/dist/cards/NeumorphicCard.astro +0 -6
  145. package/dist/cards/NotificationCard.astro +0 -15
  146. package/dist/cards/PricingCard.astro +0 -17
  147. package/dist/cards/ProfileCard.astro +0 -17
  148. package/dist/cards/RetroGameCard.astro +0 -15
  149. package/dist/cards/StatCard.astro +0 -15
  150. package/dist/cards/TaskKanbanCard.astro +0 -18
  151. package/dist/cards/TestimonialCardClean.astro +0 -20
  152. package/dist/cards/WeatherWidgetCard.astro +0 -17
  153. package/dist/cards/index.mjs +0 -19
  154. package/dist/cards/index.ts +0 -19
  155. package/dist/data/AccordionGroupGlass.astro +0 -21
  156. package/dist/data/AvatarGroupStack.astro +0 -15
  157. package/dist/data/CalendarGridView.astro +0 -18
  158. package/dist/data/DataChipsGroup.astro +0 -16
  159. package/dist/data/DescriptionListHoriz.astro +0 -14
  160. package/dist/data/FileTreeView.astro +0 -22
  161. package/dist/data/GanttChartMinimal.astro +0 -12
  162. package/dist/data/GlassTable.astro +0 -23
  163. package/dist/data/KeyValuePillGroup.astro +0 -12
  164. package/dist/data/PriceCompareTable.astro +0 -22
  165. package/dist/data/ProgressListSmall.astro +0 -17
  166. package/dist/data/RatingBreakdownBar.astro +0 -13
  167. package/dist/data/SparklineStatCard.astro +0 -16
  168. package/dist/data/StatsGridDashboard.astro +0 -16
  169. package/dist/data/StepperDataVertical.astro +0 -15
  170. package/dist/data/TagCloudData.astro +0 -14
  171. package/dist/data/TimelineHorizSteps.astro +0 -18
  172. package/dist/data/TreeItemInteractive.astro +0 -18
  173. package/dist/data/UserDirectoryItem.astro +0 -15
  174. package/dist/data/VerticalTimeline.astro +0 -21
  175. package/dist/data/index.mjs +0 -20
  176. package/dist/data/index.ts +0 -20
  177. package/dist/feedback/AnimatedCheckmark.astro +0 -13
  178. package/dist/feedback/Badge.astro +0 -19
  179. package/dist/feedback/CircleProgress.astro +0 -22
  180. package/dist/feedback/ConfettiFeedback.astro +0 -18
  181. package/dist/feedback/CyberGlitchAlert.astro +0 -11
  182. package/dist/feedback/EmptyStateCard.astro +0 -13
  183. package/dist/feedback/GlassAlert.astro +0 -20
  184. package/dist/feedback/GlassModal.astro +0 -19
  185. package/dist/feedback/GlassProgress.astro +0 -10
  186. package/dist/feedback/IndicatorBadgeMinimal.astro +0 -10
  187. package/dist/feedback/NeonSpinner.astro +0 -7
  188. package/dist/feedback/PulseDot.astro +0 -12
  189. package/dist/feedback/RatingPill.astro +0 -13
  190. package/dist/feedback/ShakeErrorGroup.astro +0 -7
  191. package/dist/feedback/SimpleTooltip.astro +0 -10
  192. package/dist/feedback/SkeletonList.astro +0 -20
  193. package/dist/feedback/Spotlight.astro +0 -9
  194. package/dist/feedback/StepProgress.astro +0 -14
  195. package/dist/feedback/ToastNotif.astro +0 -11
  196. package/dist/feedback/TypingIndicator.astro +0 -12
  197. package/dist/feedback/index.mjs +0 -20
  198. package/dist/feedback/index.ts +0 -20
  199. package/dist/forms/AnimatedInput.astro +0 -16
  200. package/dist/forms/ChipInput.astro +0 -13
  201. package/dist/forms/ColorPickerInput.astro +0 -13
  202. package/dist/forms/CurrencyInput.astro +0 -11
  203. package/dist/forms/CustomRadioGroup.astro +0 -13
  204. package/dist/forms/CyberpunkCheckbox.astro +0 -15
  205. package/dist/forms/DragDropUpload.astro +0 -12
  206. package/dist/forms/ErrorInput.astro +0 -11
  207. package/dist/forms/FloatingPassword.astro +0 -20
  208. package/dist/forms/FormGroupVertical.astro +0 -14
  209. package/dist/forms/GlassSlider.astro +0 -7
  210. package/dist/forms/GlassTextarea.astro +0 -14
  211. package/dist/forms/ModernSelect.astro +0 -16
  212. package/dist/forms/NeumorphicSwitch.astro +0 -55
  213. package/dist/forms/OTPInput.astro +0 -22
  214. package/dist/forms/RatingStars.astro +0 -15
  215. package/dist/forms/SearchReveal.astro +0 -13
  216. package/dist/forms/SegmentedControl.astro +0 -13
  217. package/dist/forms/SimpleFileInput.astro +0 -11
  218. package/dist/forms/StepperInput.astro +0 -14
  219. package/dist/forms/index.mjs +0 -20
  220. package/dist/forms/index.ts +0 -20
  221. package/dist/index.js +0 -1
  222. package/dist/index.mjs +0 -1
  223. package/dist/layout/BentoGrid3.astro +0 -14
  224. package/dist/layout/CenterFixedBox.astro +0 -6
  225. package/dist/layout/CenteredContainer.astro +0 -8
  226. package/dist/layout/ClusterHorizontal.astro +0 -6
  227. package/dist/layout/FeatureHero.astro +0 -17
  228. package/dist/layout/FooterCenteredMinimal.astro +0 -11
  229. package/dist/layout/FullBleedSection.astro +0 -6
  230. package/dist/layout/GalleryGrid4.astro +0 -7
  231. package/dist/layout/GlassCardGrid.astro +0 -6
  232. package/dist/layout/GlassSectionHeader.astro +0 -15
  233. package/dist/layout/LandingSectionSplit.astro +0 -13
  234. package/dist/layout/MasonryGrid.astro +0 -7
  235. package/dist/layout/MinimalFooterGrid.astro +0 -20
  236. package/dist/layout/ScrollSnapSection.astro +0 -7
  237. package/dist/layout/SectionDividerText.astro +0 -7
  238. package/dist/layout/SidebarLayoutWrapper.astro +0 -11
  239. package/dist/layout/SplitScreenLayout.astro +0 -11
  240. package/dist/layout/StepLayoutVertical.astro +0 -21
  241. package/dist/layout/StickySidebarWrapper.astro +0 -10
  242. package/dist/layout/VerticalStack.astro +0 -8
  243. package/dist/layout/index.mjs +0 -20
  244. package/dist/layout/index.ts +0 -20
  245. package/dist/navigation/AnchorSideNav.astro +0 -13
  246. package/dist/navigation/BottomNavMobile.astro +0 -13
  247. package/dist/navigation/BreadcrumbsMinimal.astro +0 -16
  248. package/dist/navigation/BurgerMorphIcon.astro +0 -12
  249. package/dist/navigation/CommandPaletteUI.astro +0 -17
  250. package/dist/navigation/DotNavigationSlider.astro +0 -13
  251. package/dist/navigation/FloatingTabBar.astro +0 -12
  252. package/dist/navigation/GlassNavbar.astro +0 -19
  253. package/dist/navigation/LangSwitcherPill.astro +0 -17
  254. package/dist/navigation/MegaMenuGlass.astro +0 -25
  255. package/dist/navigation/MinimalSidebar.astro +0 -18
  256. package/dist/navigation/PaginationGlass.astro +0 -20
  257. package/dist/navigation/PaginationInfiniteUI.astro +0 -11
  258. package/dist/navigation/RadialIconMenu.astro +0 -15
  259. package/dist/navigation/RetroArcadeMenu.astro +0 -12
  260. package/dist/navigation/ScrollProgressTop.astro +0 -15
  261. package/dist/navigation/SimpleFooterGlass.astro +0 -21
  262. package/dist/navigation/TabUnderline.astro +0 -14
  263. package/dist/navigation/UserProfileNav.astro +0 -21
  264. package/dist/navigation/VerticalTabs.astro +0 -14
  265. package/dist/navigation/index.mjs +0 -20
  266. package/dist/navigation/index.ts +0 -20
  267. package/dist/overlays/AgeVerificationOverlay.astro +0 -20
  268. package/dist/overlays/BackdropBlurMask.astro +0 -6
  269. package/dist/overlays/BottomSheetMobile.astro +0 -16
  270. package/dist/overlays/CommandDialog.astro +0 -19
  271. package/dist/overlays/ContextMenuOverlay.astro +0 -17
  272. package/dist/overlays/CookieBannerGlass.astro +0 -14
  273. package/dist/overlays/ExitIntentOverlay.astro +0 -19
  274. package/dist/overlays/FloatingTrayActions.astro +0 -13
  275. package/dist/overlays/HelpBubbleOverlay.astro +0 -11
  276. package/dist/overlays/LightboxOverlay.astro +0 -13
  277. package/dist/overlays/LoadingOverlayFull.astro +0 -10
  278. package/dist/overlays/MobileNavOverlay.astro +0 -18
  279. package/dist/overlays/OverlayModal.astro +0 -24
  280. package/dist/overlays/PopoverMenuGlass.astro +0 -17
  281. package/dist/overlays/SearchOverlayFullscreen.astro +0 -15
  282. package/dist/overlays/SideDrawerRight.astro +0 -16
  283. package/dist/overlays/SplashIntroOverlay.astro +0 -11
  284. package/dist/overlays/SpotlightIndicator.astro +0 -6
  285. package/dist/overlays/ToastStackOverlay.astro +0 -12
  286. package/dist/overlays/TooltipActionTray.astro +0 -14
  287. package/dist/overlays/index.mjs +0 -20
  288. package/dist/overlays/index.ts +0 -20
  289. package/dist/typography/AnimatedUnderlineLink.astro +0 -10
  290. package/dist/typography/BackgroundClipMask.astro +0 -7
  291. package/dist/typography/CodeInlineGlass.astro +0 -6
  292. package/dist/typography/CyberpunkGlitchText.astro +0 -20
  293. package/dist/typography/DropCapParagraph.astro +0 -7
  294. package/dist/typography/FadedVerticalText.astro +0 -6
  295. package/dist/typography/FloatingTextLabel.astro +0 -10
  296. package/dist/typography/GlassBlockQuote.astro +0 -13
  297. package/dist/typography/GlassTextReveal.astro +0 -7
  298. package/dist/typography/GradientHeading.astro +0 -9
  299. package/dist/typography/GradientUnderlineLink.astro +0 -7
  300. package/dist/typography/KbdIndicator.astro +0 -6
  301. package/dist/typography/LetterSpacingWide.astro +0 -6
  302. package/dist/typography/MinimalListMarkers.astro +0 -10
  303. package/dist/typography/MonospaceStatLine.astro +0 -6
  304. package/dist/typography/NeonTextHighlight.astro +0 -6
  305. package/dist/typography/ShadowRevealText.astro +0 -7
  306. package/dist/typography/StrokeHeadingOutline.astro +0 -8
  307. package/dist/typography/Text3DLayer.astro +0 -7
  308. package/dist/typography/TypewriterText.astro +0 -15
  309. package/dist/typography/index.mjs +0 -20
  310. package/dist/typography/index.ts +0 -20
  311. package/dist/utilities/AspectRatioBox.astro +0 -11
  312. package/dist/utilities/BackgroundDotPattern.astro +0 -6
  313. package/dist/utilities/CircularMask.astro +0 -7
  314. package/dist/utilities/ClickRippleWrapper.astro +0 -7
  315. package/dist/utilities/FadeInWrapper.astro +0 -11
  316. package/dist/utilities/FixedRatioImage.astro +0 -7
  317. package/dist/utilities/GlassBlurLayer.astro +0 -6
  318. package/dist/utilities/GradientBorderMask.astro +0 -7
  319. package/dist/utilities/HoverLift.astro +0 -7
  320. package/dist/utilities/ResponsiveSpacer.astro +0 -15
  321. package/dist/utilities/ResponsiveVisToggle.astro +0 -11
  322. package/dist/utilities/ScrollLockParent.astro +0 -11
  323. package/dist/utilities/ScrollMarginTarget.astro +0 -10
  324. package/dist/utilities/SlideUpReveal.astro +0 -7
  325. package/dist/utilities/SmoothAnchorLink.astro +0 -22
  326. package/dist/utilities/StackLayering.astro +0 -12
  327. package/dist/utilities/StickyObserver.astro +0 -8
  328. package/dist/utilities/TextTruncate.astro +0 -10
  329. package/dist/utilities/TruncateSingleLine.astro +0 -6
  330. package/dist/utilities/VisuallyHidden.astro +0 -6
  331. package/dist/utilities/index.mjs +0 -20
  332. package/dist/utilities/index.ts +0 -20
  333. package/src/components/lib/utilities/AspectRatioBox.astro +0 -11
  334. package/src/components/lib/utilities/BackgroundDotPattern.astro +0 -6
  335. package/src/components/lib/utilities/CircularMask.astro +0 -7
  336. package/src/components/lib/utilities/ClickRippleWrapper.astro +0 -7
  337. package/src/components/lib/utilities/FadeInWrapper.astro +0 -11
  338. package/src/components/lib/utilities/FixedRatioImage.astro +0 -7
  339. package/src/components/lib/utilities/GlassBlurLayer.astro +0 -6
  340. package/src/components/lib/utilities/GradientBorderMask.astro +0 -7
  341. package/src/components/lib/utilities/HoverLift.astro +0 -7
  342. package/src/components/lib/utilities/ResponsiveSpacer.astro +0 -15
  343. package/src/components/lib/utilities/ResponsiveVisToggle.astro +0 -11
  344. package/src/components/lib/utilities/ScrollLockParent.astro +0 -11
  345. package/src/components/lib/utilities/ScrollMarginTarget.astro +0 -10
  346. package/src/components/lib/utilities/SlideUpReveal.astro +0 -7
  347. package/src/components/lib/utilities/SmoothAnchorLink.astro +0 -22
  348. package/src/components/lib/utilities/StackLayering.astro +0 -12
  349. package/src/components/lib/utilities/StickyObserver.astro +0 -8
  350. package/src/components/lib/utilities/TextTruncate.astro +0 -10
  351. package/src/components/lib/utilities/TruncateSingleLine.astro +0 -6
  352. package/src/components/lib/utilities/VisuallyHidden.astro +0 -6
  353. package/src/components/lib/utilities/index.ts +0 -20
@@ -1,112 +0,0 @@
1
- ---
2
- interface Props {
3
- href?: string;
4
- type?: 'button' | 'submit' | 'reset';
5
- color?: string;
6
- size?: 'sm' | 'md' | 'lg';
7
- disabled?: boolean;
8
- }
9
-
10
- const {
11
- href,
12
- type = 'button',
13
- color = '#6366f1',
14
- size = 'md',
15
- disabled = false
16
- } = Astro.props;
17
-
18
- const Tag = href ? 'a' : 'button';
19
- ---
20
-
21
- <Tag
22
- href={href}
23
- type={href ? undefined : type}
24
- disabled={disabled}
25
- class={`draw-btn draw-btn--${size}`}
26
- style={`--btn-color: ${color}`}
27
- >
28
- <span class="draw-btn__text"><slot /></span>
29
- </Tag>
30
-
31
- <style>
32
- .draw-btn {
33
- position: relative;
34
- display: inline-flex;
35
- align-items: center;
36
- justify-content: center;
37
- background: transparent;
38
- color: var(--c-text-2, #94a3b8);
39
- border: 2px solid rgba(255, 255, 255, 0.05);
40
- cursor: pointer;
41
- text-decoration: none;
42
- transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
43
- font-weight: 600;
44
- user-select: none;
45
- white-space: nowrap;
46
- font-family: var(--font-sans, inherit);
47
- }
48
-
49
- .draw-btn__text {
50
- position: relative;
51
- z-index: 2;
52
- transition: color 0.5s ease;
53
- }
54
-
55
- .draw-btn::before,
56
- .draw-btn::after {
57
- content: '';
58
- position: absolute;
59
- width: 0;
60
- height: 0;
61
- border: 2px solid transparent;
62
- z-index: 1;
63
- transition: width 0.2s 0.2s ease-out, height 0.2s ease-out, border-color 0.1s;
64
- }
65
-
66
- .draw-btn::before {
67
- top: -2px;
68
- left: -2px;
69
- }
70
-
71
- .draw-btn::after {
72
- bottom: -2px;
73
- right: -2px;
74
- }
75
-
76
- .draw-btn:hover:not(:disabled) {
77
- color: #fff;
78
- border-color: transparent;
79
- }
80
-
81
- .draw-btn:hover:not(:disabled)::before {
82
- width: calc(100% + 4px);
83
- height: calc(100% + 4px);
84
- border-top-color: var(--btn-color);
85
- border-right-color: var(--btn-color);
86
- transition: width 0.2s ease-out, height 0.2s 0.2s ease-out;
87
- }
88
-
89
- .draw-btn:hover:not(:disabled)::after {
90
- width: calc(100% + 4px);
91
- height: calc(100% + 4px);
92
- border-bottom-color: var(--btn-color);
93
- border-left-color: var(--btn-color);
94
- transition: width 0.2s ease-out, height 0.2s 0.2s ease-out;
95
- }
96
-
97
- .draw-btn:active:not(:disabled) {
98
- transform: scale(0.98);
99
- }
100
-
101
- .draw-btn:disabled {
102
- opacity: 0.5;
103
- cursor: not-allowed;
104
- filter: grayscale(1);
105
- }
106
-
107
- /* Sizes */
108
- .draw-btn--sm { padding: 0.45rem 1.2rem; font-size: 0.85rem; }
109
- .draw-btn--md { padding: 0.75rem 1.8rem; font-size: 1rem; }
110
- .draw-btn--lg { padding: 1.1rem 2.5rem; font-size: 1.2rem; }
111
- </style>
112
-
@@ -1,148 +0,0 @@
1
- ---
2
- interface Props {
3
- href?: string;
4
- type?: 'button' | 'submit' | 'reset';
5
- primaryColor?: string;
6
- secondaryColor?: string;
7
- size?: 'sm' | 'md' | 'lg';
8
- label?: string; // Used for glitch effect text
9
- }
10
-
11
- const {
12
- href,
13
- type = 'button',
14
- primaryColor = '#ff003c',
15
- secondaryColor = '#00e0ff',
16
- size = 'md',
17
- label = "READY"
18
- } = Astro.props;
19
-
20
- const Tag = href ? 'a' : 'button';
21
- ---
22
-
23
- <Tag
24
- href={href}
25
- type={href ? undefined : type}
26
- class={`cyber-btn cyber-btn--${size}`}
27
- style={`--primary-color: ${primaryColor}; --secondary-color: ${secondaryColor};`}
28
- data-text={label}
29
- >
30
- <span class="cyber-btn__inner">
31
- <slot>{label}</slot>
32
- </span>
33
- <span class="cyber-btn__glitch"></span>
34
- <span class="cyber-btn__tag">R25</span>
35
- </Tag>
36
-
37
- <style>
38
- .cyber-btn {
39
- --glitch-width: 4px;
40
- position: relative;
41
- display: inline-flex;
42
- align-items: center;
43
- justify-content: center;
44
- background: var(--primary-color);
45
- color: #fff;
46
- border: none;
47
- font-family: var(--font-sans, 'Inter', sans-serif);
48
- font-weight: 800;
49
- text-transform: uppercase;
50
- font-style: italic;
51
- cursor: pointer;
52
- text-decoration: none;
53
- transition: all 0.2s;
54
- clip-path: polygon(-10% 0, 100% 0, 100% 65%, 90% 103%, 0 103%, -10% 70%);
55
- user-select: none;
56
- white-space: nowrap;
57
- }
58
-
59
- .cyber-btn__inner {
60
- position: relative;
61
- z-index: 2;
62
- padding: 0.8rem 2.2rem;
63
- display: block;
64
- }
65
-
66
- /* Glitch Layers */
67
- .cyber-btn::before,
68
- .cyber-btn::after,
69
- .cyber-btn__glitch {
70
- content: attr(data-text);
71
- position: absolute;
72
- top: 0;
73
- left: 0;
74
- width: 100%;
75
- height: 100%;
76
- display: flex;
77
- align-items: center;
78
- justify-content: center;
79
- opacity: 0;
80
- z-index: 1;
81
- }
82
-
83
- .cyber-btn::before {
84
- background: var(--secondary-color);
85
- clip-path: polygon(0 0, 100% 0, 100% 5%, 0 5%);
86
- transform: translate(-4px, -2px);
87
- }
88
-
89
- .cyber-btn::after {
90
- background: #f3f3f3;
91
- clip-path: polygon(0 95%, 100% 95%, 100% 100%, 0 100%);
92
- transform: translate(4px, 2px);
93
- color: #000;
94
- }
95
-
96
- .cyber-btn__tag {
97
- position: absolute;
98
- padding: 1px 4px;
99
- letter-spacing: 1px;
100
- line-height: 1;
101
- bottom: -2px;
102
- right: 5%;
103
- font-weight: 400;
104
- font-size: 0.6rem;
105
- background: #000;
106
- color: var(--secondary-color);
107
- z-index: 3;
108
- font-style: normal;
109
- }
110
-
111
- /* Hover Animations */
112
- .cyber-btn:hover {
113
- transform: scale(1.03);
114
- background: var(--primary-color);
115
- box-shadow: 10px 0px 0px var(--secondary-color);
116
- }
117
-
118
- .cyber-btn:hover::before,
119
- .cyber-btn:hover::after,
120
- .cyber-btn:hover .cyber-btn__glitch {
121
- opacity: 1;
122
- animation: glitch 0.3s infinite;
123
- }
124
-
125
- .cyber-btn:hover::before {
126
- animation-direction: alternate-reverse;
127
- }
128
-
129
- .cyber-btn:active {
130
- transform: scale(0.98);
131
- filter: brightness(1.2);
132
- }
133
-
134
- @keyframes glitch {
135
- 0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); transform: translate(0); }
136
- 20% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); transform: translate(-5px); }
137
- 40% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); transform: translate(5px); }
138
- 60% { clip-path: polygon(0 80%, 100% 80%, 100% 90%, 0 90%); transform: translate(-5px); }
139
- 80% { clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%); transform: translate(5px); }
140
- 100% { clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%); transform: translate(0); }
141
- }
142
-
143
- /* Sizes */
144
- .cyber-btn--sm .cyber-btn__inner { padding: 0.5rem 1.4rem; font-size: 0.85rem; }
145
- .cyber-btn--md .cyber-btn__inner { padding: 0.8rem 2.2rem; font-size: 1.05rem; }
146
- .cyber-btn--lg .cyber-btn__inner { padding: 1.1rem 3rem; font-size: 1.25rem; }
147
- </style>
148
-
@@ -1,131 +0,0 @@
1
- ---
2
- interface Props {
3
- href?: string;
4
- type?: 'button' | 'submit' | 'reset';
5
- variant?: 'primary' | 'secondary' | 'ghost';
6
- size?: 'sm' | 'md' | 'lg';
7
- disabled?: boolean;
8
- }
9
-
10
- const {
11
- href,
12
- type = 'button',
13
- variant = 'primary',
14
- size = 'md',
15
- disabled = false
16
- } = Astro.props;
17
-
18
- const Tag = href ? 'a' : 'button';
19
- ---
20
-
21
- <Tag
22
- href={href}
23
- type={href ? undefined : type}
24
- disabled={disabled}
25
- class={`double-border-btn double-border-btn--${variant} double-border-btn--${size}`}
26
- >
27
- <span class="double-border-btn__content"><slot /></span>
28
- </Tag>
29
-
30
- <style>
31
- .double-border-btn {
32
- --offset: 5px;
33
- --border-color: rgba(255, 255, 255, 0.4);
34
- --hover-color: #fff;
35
-
36
- position: relative;
37
- display: inline-flex;
38
- align-items: center;
39
- justify-content: center;
40
- padding: 0;
41
- background: transparent;
42
- color: #fff;
43
- border: 1px solid var(--border-color);
44
- border-radius: var(--r-sm, 4px);
45
- cursor: pointer;
46
- text-decoration: none;
47
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
48
- z-index: 1;
49
- user-select: none;
50
- white-space: nowrap;
51
- font-family: var(--font-sans, inherit);
52
- font-weight: 500;
53
- }
54
-
55
- .double-border-btn__content {
56
- display: block;
57
- padding: 0.6rem 1.6rem;
58
- }
59
-
60
- .double-border-btn::before {
61
- content: '';
62
- position: absolute;
63
- top: var(--offset);
64
- left: var(--offset);
65
- width: 100%;
66
- height: 100%;
67
- border: 1px solid var(--border-color);
68
- border-radius: inherit;
69
- z-index: -1;
70
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
71
- opacity: 0.5;
72
- }
73
-
74
- .double-border-btn:hover:not(:disabled) {
75
- color: var(--hover-color);
76
- border-color: var(--hover-color);
77
- transform: translate(calc(var(--offset) * -0.5), calc(var(--offset) * -0.5));
78
- }
79
-
80
- .double-border-btn:hover:not(:disabled)::before {
81
- top: calc(var(--offset) * 1.5);
82
- left: calc(var(--offset) * 1.5);
83
- border-color: var(--hover-color);
84
- opacity: 1;
85
- }
86
-
87
- .double-border-btn:active:not(:disabled) {
88
- transform: translate(0, 0);
89
- }
90
-
91
- .double-border-btn:active:not(:disabled)::before {
92
- top: 0;
93
- left: 0;
94
- }
95
-
96
- .double-border-btn:disabled {
97
- opacity: 0.5;
98
- cursor: not-allowed;
99
- filter: grayscale(1);
100
- }
101
-
102
- /* Variants */
103
- .double-border-btn--primary {
104
- --border-color: rgba(99, 102, 241, 0.5);
105
- --hover-color: #818cf8;
106
- color: #818cf8;
107
- }
108
-
109
- .double-border-btn--secondary {
110
- --border-color: rgba(255, 255, 255, 0.3);
111
- --hover-color: #fff;
112
- color: #fff;
113
- }
114
-
115
- .double-border-btn--ghost {
116
- --border-color: rgba(255, 255, 255, 0.1);
117
- --hover-color: rgba(255, 255, 255, 0.8);
118
- color: rgba(255, 255, 255, 0.6);
119
- }
120
-
121
- /* Sizes */
122
- .double-border-btn--sm { --offset: 3px; }
123
- .double-border-btn--sm .double-border-btn__content { padding: 0.45rem 1rem; font-size: 0.85rem; }
124
-
125
- .double-border-btn--md { --offset: 5px; }
126
- .double-border-btn--md .double-border-btn__content { padding: 0.65rem 1.6rem; font-size: 1rem; }
127
-
128
- .double-border-btn--lg { --offset: 8px; }
129
- .double-border-btn--lg .double-border-btn__content { padding: 0.85rem 2.2rem; font-size: 1.15rem; }
130
- </style>
131
-
@@ -1,109 +0,0 @@
1
- ---
2
- interface Props {
3
- href?: string;
4
- type?: 'button' | 'submit' | 'reset';
5
- primaryColor?: string;
6
- secondaryColor?: string;
7
- size?: 'sm' | 'md' | 'lg';
8
- disabled?: boolean;
9
- }
10
-
11
- const {
12
- href,
13
- type = 'button',
14
- primaryColor = '#6366f1',
15
- secondaryColor = '#c084fc',
16
- size = 'md',
17
- disabled = false
18
- } = Astro.props;
19
-
20
- const Tag = href ? 'a' : 'button';
21
- ---
22
-
23
- <Tag
24
- href={href}
25
- type={href ? undefined : type}
26
- disabled={disabled}
27
- class={`ghost-grad-btn ghost-grad-btn--${size}`}
28
- style={`--primary-color: ${primaryColor}; --secondary-color: ${secondaryColor};`}
29
- >
30
- <span class="ghost-grad-btn__text"><slot /></span>
31
- </Tag>
32
-
33
- <style>
34
- .ghost-grad-btn {
35
- position: relative;
36
- display: inline-flex;
37
- align-items: center;
38
- justify-content: center;
39
- background: #0f172a;
40
- color: #fff;
41
- padding: 2px;
42
- border: none;
43
- border-radius: var(--r-md, 12px);
44
- cursor: pointer;
45
- text-decoration: none;
46
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
47
- font-weight: 700;
48
- user-select: none;
49
- white-space: nowrap;
50
- overflow: hidden;
51
- font-family: var(--font-sans, inherit);
52
- }
53
-
54
- .ghost-grad-btn::before {
55
- content: '';
56
- position: absolute;
57
- inset: 0;
58
- background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
59
- z-index: 1;
60
- transition: opacity 0.3s ease;
61
- }
62
-
63
- .ghost-grad-btn:hover:not(:disabled)::before {
64
- opacity: 0.8;
65
- }
66
-
67
- .ghost-grad-btn__text {
68
- position: relative;
69
- display: block;
70
- width: 100%;
71
- height: 100%;
72
- background: #0f172a;
73
- padding: 0.7rem 1.8rem;
74
- border-radius: calc(var(--r-md, 12px) - 2px);
75
- z-index: 2;
76
- transition: background 0.3s ease, color 0.3s ease;
77
- }
78
-
79
- .ghost-grad-btn:hover:not(:disabled) .ghost-grad-btn__text {
80
- background: transparent;
81
- color: #fff;
82
- }
83
-
84
- .ghost-grad-btn:hover:not(:disabled) {
85
- box-shadow: 0 10px 25px -5px color-mix(in srgb, var(--primary-color), transparent 50%);
86
- transform: translateY(-1px);
87
- }
88
-
89
- .ghost-grad-btn:active:not(:disabled) {
90
- transform: scale(0.98);
91
- }
92
-
93
- .ghost-grad-btn:disabled {
94
- opacity: 0.5;
95
- cursor: not-allowed;
96
- filter: grayscale(1);
97
- }
98
-
99
- /* Sizes */
100
- .ghost-grad-btn--sm { font-size: 0.85rem; }
101
- .ghost-grad-btn--sm .ghost-grad-btn__text { padding: 0.45rem 1.2rem; }
102
-
103
- .ghost-grad-btn--md { font-size: 1rem; }
104
- .ghost-grad-btn--md .ghost-grad-btn__text { padding: 0.75rem 1.8rem; }
105
-
106
- .ghost-grad-btn--lg { font-size: 1.15rem; }
107
- .ghost-grad-btn--lg .ghost-grad-btn__text { padding: 1.1rem 2.5rem; }
108
- </style>
109
-
@@ -1,165 +0,0 @@
1
- ---
2
- interface Props {
3
- href?: string;
4
- type?: 'button' | 'submit' | 'reset';
5
- variant?: 'primary' | 'secondary' | 'ghost';
6
- size?: 'sm' | 'md' | 'lg';
7
- disabled?: boolean;
8
- }
9
-
10
- const { href, type = 'button', variant = 'primary', size = 'md', disabled = false } = Astro.props;
11
- const Tag = href ? 'a' : 'button';
12
- ---
13
- <Tag
14
- href={href}
15
- type={href ? undefined : type}
16
- disabled={disabled}
17
- class={`glass-btn glass-btn--${variant} glass-btn--${size}`}
18
- >
19
- <slot />
20
- </Tag>
21
-
22
- <style>
23
- ---
24
- interface Props {
25
- href?: string;
26
- type?: 'button' | 'submit' | 'reset';
27
- variant?: 'primary' | 'secondary' | 'ghost';
28
- size?: 'sm' | 'md' | 'lg';
29
- disabled?: boolean;
30
- }
31
-
32
- const { href, type = 'button', variant = 'primary', size = 'md', disabled = false } = Astro.props;
33
- const Tag = href ? 'a' : 'button';
34
- ---
35
- <Tag
36
- href={href}
37
- type={href ? undefined : type}
38
- disabled={disabled}
39
- class={`glass-btn glass-btn--${variant} glass-btn--${size}`}
40
- >
41
- <span class="glass-btn__shimmer"></span>
42
- <span class="glass-btn__content">
43
- <slot />
44
- </span>
45
- </Tag>
46
-
47
- <style>
48
- .glass-btn {
49
- --btn-bg: rgba(255, 255, 255, 0.05);
50
- --btn-border: rgba(255, 255, 255, 0.1);
51
- --btn-text: var(--c-text-1, #d4d4d4);
52
- --btn-glow: rgba(184, 134, 11, 0);
53
-
54
- display: inline-flex;
55
- align-items: center;
56
- justify-content: center;
57
- gap: 0.6rem;
58
- font-family: var(--font-sans, inherit);
59
- font-weight: 600;
60
- letter-spacing: 0.02em;
61
- border-radius: var(--r-md, 12px);
62
- cursor: pointer;
63
- text-decoration: none;
64
- border: 1px solid var(--btn-border);
65
- background: var(--btn-bg);
66
- backdrop-filter: blur(12px);
67
- -webkit-backdrop-filter: blur(12px);
68
- position: relative;
69
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
70
- white-space: nowrap;
71
- user-select: none;
72
- overflow: hidden;
73
- color: var(--btn-text);
74
- }
75
-
76
- /* Shimmer Effect */
77
- .glass-btn__shimmer {
78
- position: absolute;
79
- inset: 0;
80
- background: linear-gradient(
81
- 90deg,
82
- transparent,
83
- rgba(255, 255, 255, 0.05),
84
- rgba(255, 255, 255, 0.15),
85
- rgba(255, 255, 255, 0.05),
86
- transparent
87
- );
88
- transform: translateX(-100%);
89
- transition: transform 0.6s ease;
90
- pointer-events: none;
91
- }
92
-
93
- .glass-btn:hover:not(:disabled) .glass-btn__shimmer {
94
- transform: translateX(100%);
95
- }
96
-
97
- /* Glass Border Glow */
98
- .glass-btn::after {
99
- content: '';
100
- position: absolute;
101
- inset: 0;
102
- border-radius: inherit;
103
- padding: 1px;
104
- background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent, rgba(255,255,255,0.05));
105
- -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
106
- -webkit-mask-composite: xor;
107
- mask-composite: exclude;
108
- pointer-events: none;
109
- opacity: 0.5;
110
- transition: opacity 0.3s ease;
111
- }
112
-
113
- .glass-btn:hover:not(:disabled)::after {
114
- opacity: 1;
115
- }
116
-
117
- .glass-btn:hover:not(:disabled) {
118
- transform: translateY(-2px);
119
- border-color: rgba(255, 255, 255, 0.2);
120
- box-shadow: 0 10px 30px -10px var(--btn-glow);
121
- }
122
-
123
- .glass-btn:active:not(:disabled) {
124
- transform: translateY(0) scale(0.98);
125
- }
126
-
127
- .glass-btn:disabled {
128
- opacity: 0.4;
129
- cursor: not-allowed;
130
- filter: grayscale(1);
131
- }
132
-
133
- /* Variants */
134
- .glass-btn--primary {
135
- --btn-bg: linear-gradient(135deg, rgba(184, 134, 11, 0.7), rgba(212, 160, 23, 0.7));
136
- --btn-text: #0a0a0a;
137
- --btn-glow: rgba(184, 134, 11, 0.4);
138
- border-color: rgba(255, 255, 255, 0.1);
139
- }
140
-
141
- .glass-btn--secondary {
142
- --btn-bg: rgba(255, 255, 255, 0.03);
143
- --btn-glow: rgba(255, 255, 255, 0.1);
144
- }
145
-
146
- .glass-btn--ghost {
147
- --btn-bg: transparent;
148
- --btn-text: var(--c-primary-light, #d4a017);
149
- --btn-border: rgba(184, 134, 11, 0.25);
150
- --btn-glow: rgba(184, 134, 11, 0.15);
151
- backdrop-filter: none;
152
- }
153
-
154
- .glass-btn--ghost:hover:not(:disabled) {
155
- background: rgba(184, 134, 11, 0.08);
156
- border-color: rgba(184, 134, 11, 0.4);
157
- }
158
-
159
- /* Sizes */
160
- .glass-btn--sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; }
161
- .glass-btn--md { padding: 0.75rem 1.6rem; font-size: 0.95rem; }
162
- .glass-btn--lg { padding: 1.1rem 2.4rem; font-size: 1.1rem; }
163
- </style>
164
- </style>
165
-