acidui-core 1.0.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 (194) hide show
  1. package/README.md +127 -0
  2. package/eslint.config.js +23 -0
  3. package/git +0 -0
  4. package/index.html +13 -0
  5. package/package.json +38 -0
  6. package/public/vite.svg +1 -0
  7. package/src/App.css +8 -0
  8. package/src/App.tsx +26 -0
  9. package/src/assets/react.svg +1 -0
  10. package/src/cli/main.mjs +209 -0
  11. package/src/components/AcidAccordion.css +52 -0
  12. package/src/components/AcidAccordion.tsx +72 -0
  13. package/src/components/AcidAlert.css +86 -0
  14. package/src/components/AcidAlert.tsx +52 -0
  15. package/src/components/AcidAnimatedNotification.css +103 -0
  16. package/src/components/AcidAnimatedNotification.tsx +62 -0
  17. package/src/components/AcidAspectRatio.css +16 -0
  18. package/src/components/AcidAspectRatio.tsx +21 -0
  19. package/src/components/AcidAuroraText.css +49 -0
  20. package/src/components/AcidAuroraText.tsx +19 -0
  21. package/src/components/AcidAvatar.css +70 -0
  22. package/src/components/AcidAvatar.tsx +32 -0
  23. package/src/components/AcidBadge.css +54 -0
  24. package/src/components/AcidBadge.tsx +27 -0
  25. package/src/components/AcidBentoGrid.css +98 -0
  26. package/src/components/AcidBentoGrid.tsx +68 -0
  27. package/src/components/AcidBorderBeam.css +27 -0
  28. package/src/components/AcidBorderBeam.tsx +37 -0
  29. package/src/components/AcidBreadcrumb.css +36 -0
  30. package/src/components/AcidBreadcrumb.tsx +35 -0
  31. package/src/components/AcidButton.css +97 -0
  32. package/src/components/AcidButton.tsx +29 -0
  33. package/src/components/AcidCalendar.css +136 -0
  34. package/src/components/AcidCalendar.tsx +144 -0
  35. package/src/components/AcidCard.css +42 -0
  36. package/src/components/AcidCard.tsx +26 -0
  37. package/src/components/AcidCarousel.css +166 -0
  38. package/src/components/AcidCarousel.tsx +168 -0
  39. package/src/components/AcidChart.css +132 -0
  40. package/src/components/AcidChart.tsx +198 -0
  41. package/src/components/AcidCheckbox.css +64 -0
  42. package/src/components/AcidCheckbox.tsx +58 -0
  43. package/src/components/AcidCodeBlock.css +51 -0
  44. package/src/components/AcidCodeBlock.tsx +25 -0
  45. package/src/components/AcidCodeDisplay.css +79 -0
  46. package/src/components/AcidCodeDisplay.tsx +42 -0
  47. package/src/components/AcidCollapsible.css +54 -0
  48. package/src/components/AcidCollapsible.tsx +56 -0
  49. package/src/components/AcidCommand.css +207 -0
  50. package/src/components/AcidCommand.tsx +149 -0
  51. package/src/components/AcidConfettiButton.tsx +37 -0
  52. package/src/components/AcidContextMenu.css +84 -0
  53. package/src/components/AcidContextMenu.tsx +111 -0
  54. package/src/components/AcidCountUp.css +54 -0
  55. package/src/components/AcidCountUp.tsx +66 -0
  56. package/src/components/AcidDialog.css +124 -0
  57. package/src/components/AcidDialog.tsx +89 -0
  58. package/src/components/AcidDivider.css +44 -0
  59. package/src/components/AcidDivider.tsx +28 -0
  60. package/src/components/AcidDock.css +74 -0
  61. package/src/components/AcidDock.tsx +65 -0
  62. package/src/components/AcidDragOrderList.css +45 -0
  63. package/src/components/AcidDragOrderList.tsx +58 -0
  64. package/src/components/AcidDrawer.css +64 -0
  65. package/src/components/AcidDrawer.tsx +55 -0
  66. package/src/components/AcidDropdown.css +103 -0
  67. package/src/components/AcidDropdown.tsx +87 -0
  68. package/src/components/AcidDynamicNavbar.css +273 -0
  69. package/src/components/AcidDynamicNavbar.tsx +157 -0
  70. package/src/components/AcidElectroBorder.css +141 -0
  71. package/src/components/AcidElectroBorder.tsx +53 -0
  72. package/src/components/AcidFloatingNavbar.css +152 -0
  73. package/src/components/AcidFloatingNavbar.tsx +111 -0
  74. package/src/components/AcidForm.css +78 -0
  75. package/src/components/AcidForm.tsx +45 -0
  76. package/src/components/AcidGlassFolder.css +111 -0
  77. package/src/components/AcidGlassFolder.tsx +34 -0
  78. package/src/components/AcidGradientButton.css +99 -0
  79. package/src/components/AcidGradientButton.tsx +37 -0
  80. package/src/components/AcidGridBox.css +61 -0
  81. package/src/components/AcidGridBox.tsx +26 -0
  82. package/src/components/AcidIconBox.css +42 -0
  83. package/src/components/AcidIconBox.tsx +18 -0
  84. package/src/components/AcidInput.css +99 -0
  85. package/src/components/AcidInput.tsx +27 -0
  86. package/src/components/AcidInputOtp.css +57 -0
  87. package/src/components/AcidInputOtp.tsx +102 -0
  88. package/src/components/AcidLabel.css +26 -0
  89. package/src/components/AcidLabel.tsx +18 -0
  90. package/src/components/AcidLayout.css +42 -0
  91. package/src/components/AcidLayout.tsx +35 -0
  92. package/src/components/AcidLink.css +26 -0
  93. package/src/components/AcidLink.tsx +19 -0
  94. package/src/components/AcidMagicCard.css +27 -0
  95. package/src/components/AcidMagicCard.tsx +49 -0
  96. package/src/components/AcidMagicLoader.css +47 -0
  97. package/src/components/AcidMagicLoader.tsx +43 -0
  98. package/src/components/AcidMarquee.css +59 -0
  99. package/src/components/AcidMarquee.tsx +28 -0
  100. package/src/components/AcidMeter.css +118 -0
  101. package/src/components/AcidMeter.tsx +37 -0
  102. package/src/components/AcidNavbar.css +142 -0
  103. package/src/components/AcidNavbar.tsx +111 -0
  104. package/src/components/AcidNavigationMenu.css +47 -0
  105. package/src/components/AcidNavigationMenu.tsx +38 -0
  106. package/src/components/AcidPagination.css +57 -0
  107. package/src/components/AcidPagination.tsx +51 -0
  108. package/src/components/AcidProgress.css +57 -0
  109. package/src/components/AcidProgress.tsx +40 -0
  110. package/src/components/AcidRadioGroup.css +98 -0
  111. package/src/components/AcidRadioGroup.tsx +70 -0
  112. package/src/components/AcidResizable.css +34 -0
  113. package/src/components/AcidResizable.tsx +46 -0
  114. package/src/components/AcidRippleButton.css +34 -0
  115. package/src/components/AcidRippleButton.tsx +61 -0
  116. package/src/components/AcidRippleLoader.css +23 -0
  117. package/src/components/AcidRippleLoader.tsx +40 -0
  118. package/src/components/AcidScrollArea.css +28 -0
  119. package/src/components/AcidScrollArea.tsx +21 -0
  120. package/src/components/AcidScrollList.css +107 -0
  121. package/src/components/AcidScrollList.tsx +58 -0
  122. package/src/components/AcidScrollReveal.tsx +29 -0
  123. package/src/components/AcidScrollStack.css +46 -0
  124. package/src/components/AcidScrollStack.tsx +54 -0
  125. package/src/components/AcidSelect.css +144 -0
  126. package/src/components/AcidSelect.tsx +108 -0
  127. package/src/components/AcidSeparator.css +15 -0
  128. package/src/components/AcidSeparator.tsx +24 -0
  129. package/src/components/AcidSheet.css +99 -0
  130. package/src/components/AcidSheet.tsx +68 -0
  131. package/src/components/AcidShineButton.css +36 -0
  132. package/src/components/AcidShineButton.tsx +24 -0
  133. package/src/components/AcidShinyText.css +22 -0
  134. package/src/components/AcidShinyText.tsx +20 -0
  135. package/src/components/AcidSidebar.css +152 -0
  136. package/src/components/AcidSidebar.tsx +44 -0
  137. package/src/components/AcidSkeleton.css +61 -0
  138. package/src/components/AcidSkeleton.tsx +29 -0
  139. package/src/components/AcidSlider.css +89 -0
  140. package/src/components/AcidSlider.tsx +87 -0
  141. package/src/components/AcidSolidCard.css +55 -0
  142. package/src/components/AcidSolidCard.tsx +35 -0
  143. package/src/components/AcidStackList.css +59 -0
  144. package/src/components/AcidStackList.tsx +38 -0
  145. package/src/components/AcidStepList.css +35 -0
  146. package/src/components/AcidStepList.tsx +31 -0
  147. package/src/components/AcidSwitch.css +48 -0
  148. package/src/components/AcidSwitch.tsx +48 -0
  149. package/src/components/AcidTable.css +60 -0
  150. package/src/components/AcidTable.tsx +44 -0
  151. package/src/components/AcidTabs.css +102 -0
  152. package/src/components/AcidTabs.tsx +47 -0
  153. package/src/components/AcidTerminalCard.css +63 -0
  154. package/src/components/AcidTerminalCard.tsx +35 -0
  155. package/src/components/AcidTextMarquee.css +30 -0
  156. package/src/components/AcidTextMarquee.tsx +37 -0
  157. package/src/components/AcidTextarea.tsx +32 -0
  158. package/src/components/AcidTimeline.css +129 -0
  159. package/src/components/AcidTimeline.tsx +59 -0
  160. package/src/components/AcidToast.css +77 -0
  161. package/src/components/AcidToast.tsx +72 -0
  162. package/src/components/AcidToggle.css +73 -0
  163. package/src/components/AcidToggle.tsx +56 -0
  164. package/src/components/AcidToggleGroup.css +61 -0
  165. package/src/components/AcidToggleGroup.tsx +76 -0
  166. package/src/components/AcidTooltip.css +81 -0
  167. package/src/components/AcidTooltip.tsx +44 -0
  168. package/src/components/AcidTopLoader.css +24 -0
  169. package/src/components/AcidTopLoader.tsx +61 -0
  170. package/src/components/AcidTopStickyBar.css +99 -0
  171. package/src/components/AcidTopStickyBar.tsx +51 -0
  172. package/src/components/AcidTrialButton.css +55 -0
  173. package/src/components/AcidTrialButton.tsx +26 -0
  174. package/src/components/AcidTrustedUsers.css +59 -0
  175. package/src/components/AcidTrustedUsers.tsx +46 -0
  176. package/src/components/AcidTypewriterInput.css +37 -0
  177. package/src/components/AcidTypewriterInput.tsx +31 -0
  178. package/src/components/AcidTypingText.tsx +32 -0
  179. package/src/components/AcidVideoText.css +35 -0
  180. package/src/components/AcidVideoText.tsx +25 -0
  181. package/src/data/sidebar.ts +135 -0
  182. package/src/data/snippets.ts +13 -0
  183. package/src/index.css +136 -0
  184. package/src/main.tsx +13 -0
  185. package/src/pages/Docs.css +604 -0
  186. package/src/pages/Docs.tsx +2347 -0
  187. package/src/pages/Landing.css +342 -0
  188. package/src/pages/Landing.tsx +216 -0
  189. package/src/pages/Library.css +426 -0
  190. package/src/pages/Library.tsx +254 -0
  191. package/tsconfig.app.json +28 -0
  192. package/tsconfig.json +7 -0
  193. package/tsconfig.node.json +26 -0
  194. package/vite.config.ts +7 -0
@@ -0,0 +1,68 @@
1
+ import React from 'react';
2
+ import { motion, AnimatePresence } from 'framer-motion';
3
+ import { X } from 'lucide-react';
4
+ import clsx from 'clsx';
5
+ import './AcidSheet.css';
6
+
7
+ export interface AcidSheetProps {
8
+ isOpen: boolean;
9
+ onClose: () => void;
10
+ title?: string;
11
+ description?: string;
12
+ children: React.ReactNode;
13
+ side?: 'left' | 'right' | 'top' | 'bottom';
14
+ className?: string;
15
+ }
16
+
17
+ export const AcidSheet = ({
18
+ isOpen,
19
+ onClose,
20
+ title,
21
+ description,
22
+ children,
23
+ side = 'right',
24
+ className
25
+ }: AcidSheetProps) => {
26
+ const slideVariants = {
27
+ right: { initial: { x: '100%' }, animate: { x: 0 }, exit: { x: '100%' } },
28
+ left: { initial: { x: '-100%' }, animate: { x: 0 }, exit: { x: '-100%' } },
29
+ top: { initial: { y: '-100%' }, animate: { y: 0 }, exit: { y: '-100%' } },
30
+ bottom: { initial: { y: '100%' }, animate: { y: 0 }, exit: { y: '100%' } },
31
+ };
32
+
33
+ return (
34
+ <AnimatePresence>
35
+ {isOpen && (
36
+ <>
37
+ <motion.div
38
+ initial={{ opacity: 0 }}
39
+ animate={{ opacity: 1 }}
40
+ exit={{ opacity: 0 }}
41
+ onClick={onClose}
42
+ className="ac-sheet-overlay"
43
+ />
44
+ <motion.div
45
+ initial={slideVariants[side].initial}
46
+ animate={slideVariants[side].animate}
47
+ exit={slideVariants[side].exit}
48
+ transition={{ type: 'spring', damping: 25, stiffness: 200 }}
49
+ className={clsx('ac-sheet', `ac-sheet-${side}`, className)}
50
+ >
51
+ <div className="ac-sheet-header">
52
+ <div className="ac-sheet-header-content">
53
+ {title && <h2 className="ac-sheet-title">{title}</h2>}
54
+ {description && <p className="ac-sheet-desc">{description}</p>}
55
+ </div>
56
+ <button className="ac-sheet-close" onClick={onClose}>
57
+ <X size={20} />
58
+ </button>
59
+ </div>
60
+ <div className="ac-sheet-content">
61
+ {children}
62
+ </div>
63
+ </motion.div>
64
+ </>
65
+ )}
66
+ </AnimatePresence>
67
+ );
68
+ };
@@ -0,0 +1,36 @@
1
+ .ac-shine-btn {
2
+ position: relative;
3
+ overflow: hidden;
4
+ padding: 0.75rem 2rem;
5
+ background: #111;
6
+ color: var(--ac-brand);
7
+ border: 1px solid var(--ac-brand);
8
+ font-family: var(--font-mono);
9
+ font-weight: 700;
10
+ cursor: pointer;
11
+ border-radius: 4px;
12
+ transition: all 0.2s;
13
+ }
14
+
15
+ .ac-shine-btn:hover {
16
+ background: var(--ac-brand);
17
+ color: #000;
18
+ }
19
+
20
+ .ac-shine-overlay {
21
+ position: absolute;
22
+ top: 0;
23
+ left: -100%;
24
+ width: 50%;
25
+ height: 100%;
26
+ background: linear-gradient(to right,
27
+ transparent,
28
+ var(--shine-color),
29
+ transparent);
30
+ transform: skewX(-25deg);
31
+ transition: left 0.5s;
32
+ }
33
+
34
+ .ac-shine-btn:hover .ac-shine-overlay {
35
+ left: 200%;
36
+ }
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import clsx from 'clsx';
3
+ import './AcidShineButton.css';
4
+
5
+ export interface AcidShineButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6
+ shineColor?: string;
7
+ }
8
+
9
+ export const AcidShineButton = ({
10
+ children,
11
+ className,
12
+ shineColor = 'rgba(255, 255, 255, 0.4)',
13
+ ...props
14
+ }: AcidShineButtonProps) => {
15
+ return (
16
+ <button className={clsx('ac-shine-btn', className)} {...props}>
17
+ <span className="ac-btn-text">{children}</span>
18
+ <div
19
+ className="ac-shine-overlay"
20
+ style={{ '--shine-color': shineColor } as React.CSSProperties}
21
+ />
22
+ </button>
23
+ );
24
+ };
@@ -0,0 +1,22 @@
1
+ .ac-shiny-text {
2
+ color: rgba(255, 255, 255, 0.45);
3
+ background: linear-gradient(120deg,
4
+ rgba(255, 255, 255, 0) 40%,
5
+ rgba(255, 255, 255, 0.8) 50%,
6
+ rgba(255, 255, 255, 0) 60%);
7
+ background-size: 200% 100%;
8
+ -webkit-background-clip: text;
9
+ background-clip: text;
10
+ display: inline-block;
11
+ animation: shiny-scan var(--shiny-duration, 2s) linear infinite;
12
+ }
13
+
14
+ @keyframes shiny-scan {
15
+ 0% {
16
+ background-position: 100% 0;
17
+ }
18
+
19
+ 100% {
20
+ background-position: -100% 0;
21
+ }
22
+ }
@@ -0,0 +1,20 @@
1
+ import clsx from 'clsx';
2
+ import './AcidShinyText.css';
3
+
4
+ export interface AcidShinyTextProps {
5
+ children: string;
6
+ className?: string;
7
+ style?: React.CSSProperties;
8
+ speed?: number;
9
+ }
10
+
11
+ export const AcidShinyText = ({ children, className, style, speed = 2 }: AcidShinyTextProps) => {
12
+ return (
13
+ <span
14
+ className={clsx('ac-shiny-text', className)}
15
+ style={{ ...style, '--shiny-duration': `${speed}s` } as React.CSSProperties}
16
+ >
17
+ {children}
18
+ </span>
19
+ );
20
+ };
@@ -0,0 +1,152 @@
1
+ .sidebar-search {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: 0.75rem;
5
+ padding: 0.75rem 1rem;
6
+ margin: 1rem;
7
+ border: 1px solid var(--ac-border-muted);
8
+ border-radius: 8px;
9
+ background: var(--ac-surface);
10
+ color: var(--ac-text-muted);
11
+ transition: all 0.2s;
12
+ }
13
+
14
+ .sidebar-search:focus-within {
15
+ border-color: var(--ac-brand);
16
+ color: var(--ac-text-primary);
17
+ }
18
+
19
+ .sidebar-search input {
20
+ background: transparent;
21
+ border: none;
22
+ color: inherit;
23
+ font-family: var(--font-primary);
24
+ font-size: 0.75rem;
25
+ width: 100%;
26
+ outline: none;
27
+ text-transform: uppercase;
28
+ letter-spacing: 0.05em;
29
+ }
30
+
31
+ .ac-sidebar {
32
+ width: 280px;
33
+ flex-shrink: 0;
34
+ height: calc(100vh - 8rem);
35
+ position: sticky;
36
+ top: 6rem;
37
+ overflow-y: auto;
38
+ border-right: 1px solid var(--ac-border-muted);
39
+ padding-right: 1rem;
40
+ }
41
+
42
+ /* Custom raw scrollbar */
43
+ .ac-sidebar::-webkit-scrollbar {
44
+ width: 4px;
45
+ }
46
+
47
+ .ac-sidebar::-webkit-scrollbar-track {
48
+ background: var(--ac-bg);
49
+ }
50
+
51
+ .ac-sidebar::-webkit-scrollbar-thumb {
52
+ background: var(--ac-border-muted);
53
+ }
54
+
55
+ .ac-sidebar:hover::-webkit-scrollbar-thumb {
56
+ background: var(--ac-lime);
57
+ }
58
+
59
+ .ac-sidebar-inner {
60
+ display: flex;
61
+ flex-direction: column;
62
+ gap: 2rem;
63
+ padding-bottom: 4rem;
64
+ }
65
+
66
+ .ac-sidebar-category {
67
+ display: flex;
68
+ flex-direction: column;
69
+ gap: 0.75rem;
70
+ }
71
+
72
+ .ac-sidebar-cat-title {
73
+ display: flex;
74
+ align-items: center;
75
+ gap: 0.5rem;
76
+ font-family: var(--font-inter);
77
+ font-weight: 700;
78
+ font-size: 0.95rem;
79
+ color: var(--ac-text-primary);
80
+ text-transform: uppercase;
81
+ letter-spacing: 0.05em;
82
+ margin-bottom: 0.5rem;
83
+ }
84
+
85
+ .ac-sidebar-cat-icon {
86
+ color: var(--ac-text-secondary);
87
+ }
88
+
89
+ .ac-sidebar-list {
90
+ list-style: none;
91
+ padding: 0;
92
+ margin: 0;
93
+ display: flex;
94
+ flex-direction: column;
95
+ gap: 0.5rem;
96
+ padding-left: 1.5rem;
97
+ border-left: 1px solid var(--ac-border-muted);
98
+ margin-left: 6px;
99
+ }
100
+
101
+ .ac-sidebar-item {
102
+ display: flex;
103
+ align-items: center;
104
+ }
105
+
106
+ .ac-sidebar-link {
107
+ display: flex;
108
+ align-items: center;
109
+ gap: 0.5rem;
110
+ text-decoration: none;
111
+ color: var(--ac-text-secondary);
112
+ font-size: 0.9rem;
113
+ font-weight: 500;
114
+ transition: all 0.2s ease;
115
+ position: relative;
116
+ width: 100%;
117
+ }
118
+
119
+ .ac-sidebar-link:hover {
120
+ color: var(--ac-lime);
121
+ transform: translateX(4px);
122
+ }
123
+
124
+ .ac-sidebar-link::before {
125
+ content: '';
126
+ position: absolute;
127
+ left: -1.5rem;
128
+ top: 50%;
129
+ transform: translateY(-50%);
130
+ width: 8px;
131
+ height: 2px;
132
+ background: transparent;
133
+ transition: background 0.2s;
134
+ }
135
+
136
+ .ac-sidebar-link:hover::before {
137
+ background: var(--ac-lime);
138
+ }
139
+
140
+ .ac-sidebar-badge-new {
141
+ background: rgba(0, 240, 255, 0.1);
142
+ color: var(--ac-cyan);
143
+ border: 1px solid var(--ac-cyan);
144
+ font-size: 0.6rem;
145
+ font-family: var(--font-mono);
146
+ font-weight: 700;
147
+ padding: 0.1rem 0.3rem;
148
+ border-radius: var(--ac-radius-sm);
149
+ margin-left: auto;
150
+ text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
151
+ box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
152
+ }
@@ -0,0 +1,44 @@
1
+ import clsx from 'clsx';
2
+ import { ChevronRight } from 'lucide-react';
3
+ import './AcidSidebar.css';
4
+
5
+ export interface SidebarCategory {
6
+ title: string;
7
+ items: { name: string; isNew?: boolean }[];
8
+ }
9
+
10
+ export interface AcidSidebarProps {
11
+ categories: SidebarCategory[];
12
+ className?: string;
13
+ children?: React.ReactNode;
14
+ }
15
+
16
+ export const AcidSidebar = ({ categories, className, children }: AcidSidebarProps) => {
17
+ return (
18
+ <div className={clsx('ac-sidebar', className)}>
19
+ <div className="ac-sidebar-inner">
20
+ {children}
21
+ {categories.map((cat, i) => (
22
+ <div key={i} className="ac-sidebar-category">
23
+ <h4 className="ac-sidebar-cat-title">
24
+ <ChevronRight size={14} className="ac-sidebar-cat-icon" />
25
+ {cat.title}
26
+ </h4>
27
+ <ul className="ac-sidebar-list">
28
+ {cat.items.map((item, j) => (
29
+ <li key={j} className="ac-sidebar-item">
30
+ <a href={`#${item.name.replace(/\s+/g, '-').toLowerCase()}`} className="ac-sidebar-link">
31
+ {item.name}
32
+ {item.isNew && (
33
+ <span className="ac-sidebar-badge-new">NEW</span>
34
+ )}
35
+ </a>
36
+ </li>
37
+ ))}
38
+ </ul>
39
+ </div>
40
+ ))}
41
+ </div>
42
+ </div>
43
+ );
44
+ };
@@ -0,0 +1,61 @@
1
+ .ac-skeleton {
2
+ background: var(--ac-border-muted);
3
+ position: relative;
4
+ overflow: hidden;
5
+ opacity: 0.8;
6
+ }
7
+
8
+ .ac-skeleton::after {
9
+ content: '';
10
+ position: absolute;
11
+ top: 0;
12
+ left: 0;
13
+ width: 100%;
14
+ height: 100%;
15
+ background: linear-gradient(90deg,
16
+ transparent,
17
+ rgba(255, 255, 255, 0.1),
18
+ transparent);
19
+ animation: ac-skeleton-shimmer 2s infinite;
20
+ }
21
+
22
+ [data-theme='light'] .ac-skeleton::after {
23
+ background: linear-gradient(90deg,
24
+ transparent,
25
+ rgba(0, 0, 0, 0.05),
26
+ transparent);
27
+ }
28
+
29
+ .ac-skeleton-circle {
30
+ border-radius: 50%;
31
+ }
32
+
33
+ .ac-skeleton-rectangle {
34
+ border-radius: var(--ac-radius-sm);
35
+ }
36
+
37
+ .ac-skeleton-industrial {
38
+ clip-path: polygon(5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%, 0 5%);
39
+ }
40
+
41
+ @keyframes ac-skeleton-pulse {
42
+
43
+ 0%,
44
+ 100% {
45
+ opacity: 1;
46
+ }
47
+
48
+ 50% {
49
+ opacity: 0.5;
50
+ }
51
+ }
52
+
53
+ @keyframes ac-skeleton-shimmer {
54
+ 0% {
55
+ transform: translateX(-100%);
56
+ }
57
+
58
+ 100% {
59
+ transform: translateX(100%);
60
+ }
61
+ }
@@ -0,0 +1,29 @@
1
+
2
+ import clsx from 'clsx';
3
+ import './AcidSkeleton.css';
4
+
5
+ export interface AcidSkeletonProps {
6
+ width?: string | number;
7
+ height?: string | number;
8
+ shape?: 'rectangle' | 'circle' | 'industrial';
9
+ className?: string;
10
+ }
11
+
12
+ export const AcidSkeleton = ({
13
+ width = '100%',
14
+ height = '1rem',
15
+ shape = 'rectangle',
16
+ className
17
+ }: AcidSkeletonProps) => {
18
+ const style = {
19
+ width,
20
+ height,
21
+ };
22
+
23
+ return (
24
+ <div
25
+ className={clsx('ac-skeleton', `ac-skeleton-${shape}`, className)}
26
+ style={style}
27
+ />
28
+ );
29
+ };
@@ -0,0 +1,89 @@
1
+ .ac-slider-container {
2
+ width: 100%;
3
+ padding: 1rem 0;
4
+ user-select: none;
5
+ }
6
+
7
+ .ac-slider-header {
8
+ display: flex;
9
+ justify-content: space-between;
10
+ margin-bottom: 0.75rem;
11
+ }
12
+
13
+ .ac-slider-label {
14
+ font-family: var(--font-mono);
15
+ font-size: 0.7rem;
16
+ color: var(--ac-text-muted);
17
+ text-transform: uppercase;
18
+ letter-spacing: 0.05em;
19
+ }
20
+
21
+ .ac-slider-value {
22
+ font-family: var(--font-mono);
23
+ font-size: 0.85rem;
24
+ font-weight: 700;
25
+ color: var(--ac-brand);
26
+ }
27
+
28
+ .ac-slider-track-wrapper {
29
+ position: relative;
30
+ height: 24px;
31
+ display: flex;
32
+ align-items: center;
33
+ cursor: pointer;
34
+ }
35
+
36
+ .ac-slider-track {
37
+ width: 100%;
38
+ height: 4px;
39
+ background: var(--ac-surface);
40
+ border: 1px solid var(--ac-border-muted);
41
+ border-radius: 2px;
42
+ position: relative;
43
+ overflow: hidden;
44
+ }
45
+
46
+ .ac-slider-fill {
47
+ height: 100%;
48
+ background: var(--ac-brand);
49
+ }
50
+
51
+ .ac-slider-thumb {
52
+ position: absolute;
53
+ width: 16px;
54
+ height: 16px;
55
+ background: var(--ac-text-primary);
56
+ border: 1px solid var(--ac-border-muted);
57
+ border-radius: 4px;
58
+ /* Industrial look */
59
+ top: 50%;
60
+ transform: translate(-50%, -50%);
61
+ pointer-events: none;
62
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
63
+ }
64
+
65
+ .ac-slider-markers {
66
+ display: flex;
67
+ justify-content: space-between;
68
+ margin-top: 0.5rem;
69
+ }
70
+
71
+ .ac-marker {
72
+ font-family: var(--font-mono);
73
+ font-size: 0.6rem;
74
+ color: var(--ac-text-muted);
75
+ }
76
+
77
+ .ac-slider-disabled {
78
+ opacity: 0.5;
79
+ cursor: not-allowed;
80
+ }
81
+
82
+ [data-theme='light'] .ac-slider-track {
83
+ background: #eee;
84
+ }
85
+
86
+ [data-theme='light'] .ac-slider-thumb {
87
+ background: white;
88
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
89
+ }
@@ -0,0 +1,87 @@
1
+ import { useState, useRef } from 'react';
2
+ import { motion } from 'framer-motion';
3
+ import clsx from 'clsx';
4
+ import './AcidSlider.css';
5
+
6
+ export interface AcidSliderProps {
7
+ min?: number;
8
+ max?: number;
9
+ step?: number;
10
+ defaultValue?: number;
11
+ value?: number;
12
+ onChange?: (value: number) => void;
13
+ label?: string;
14
+ className?: string;
15
+ disabled?: boolean;
16
+ }
17
+
18
+ export const AcidSlider = ({
19
+ min = 0,
20
+ max = 100,
21
+ step = 1,
22
+ defaultValue = 0,
23
+ value,
24
+ onChange,
25
+ label,
26
+ className,
27
+ disabled = false
28
+ }: AcidSliderProps) => {
29
+ const [internalValue, setInternalValue] = useState(defaultValue);
30
+ const trackRef = useRef<HTMLDivElement>(null);
31
+ const resolvedValue = value !== undefined ? value : internalValue;
32
+
33
+ const percentage = ((resolvedValue - min) / (max - min)) * 100;
34
+
35
+ const handleUpdate = (clientX: number) => {
36
+ if (disabled || !trackRef.current) return;
37
+ const rect = trackRef.current.getBoundingClientRect();
38
+ const offsetX = Math.min(Math.max(clientX - rect.left, 0), rect.width);
39
+ const ratio = offsetX / rect.width;
40
+ const rawValue = ratio * (max - min) + min;
41
+ const steppedValue = Math.round(rawValue / step) * step;
42
+ const finalValue = Math.min(Math.max(steppedValue, min), max);
43
+
44
+ setInternalValue(finalValue);
45
+ onChange?.(finalValue);
46
+ };
47
+
48
+ const onMouseDown = (e: React.MouseEvent) => {
49
+ handleUpdate(e.clientX);
50
+ const onMouseMove = (moveEvent: MouseEvent) => handleUpdate(moveEvent.clientX);
51
+ const onMouseUp = () => {
52
+ document.removeEventListener('mousemove', onMouseMove);
53
+ document.removeEventListener('mouseup', onMouseUp);
54
+ };
55
+ document.addEventListener('mousemove', onMouseMove);
56
+ document.addEventListener('mouseup', onMouseUp);
57
+ };
58
+
59
+ return (
60
+ <div className={clsx('ac-slider-container', className, disabled && 'ac-slider-disabled')}>
61
+ <div className="ac-slider-header">
62
+ {label && <span className="ac-slider-label">{label}</span>}
63
+ <span className="ac-slider-value">{resolvedValue}</span>
64
+ </div>
65
+
66
+ <div className="ac-slider-track-wrapper" ref={trackRef} onMouseDown={onMouseDown}>
67
+ <div className="ac-slider-track">
68
+ <motion.div
69
+ className="ac-slider-fill"
70
+ style={{ width: `${percentage}%` }}
71
+ transition={{ type: 'spring', stiffness: 400, damping: 40 }}
72
+ />
73
+ </div>
74
+ <motion.div
75
+ className="ac-slider-thumb"
76
+ animate={{ left: `${percentage}%` }}
77
+ transition={{ type: 'spring', stiffness: 500, damping: 40 }}
78
+ />
79
+ </div>
80
+
81
+ <div className="ac-slider-markers">
82
+ <span className="ac-marker">{min}</span>
83
+ <span className="ac-marker">{max}</span>
84
+ </div>
85
+ </div>
86
+ );
87
+ };
@@ -0,0 +1,55 @@
1
+ .ac-solid-card {
2
+ background: #f0f0f0;
3
+ /* Off-white bright contrast against the pure black system */
4
+ color: #000;
5
+ border-radius: 12px;
6
+ padding: 2rem;
7
+ display: flex;
8
+ flex-direction: column;
9
+ min-height: 480px;
10
+ }
11
+
12
+ .ac-solid-header {
13
+ display: flex;
14
+ justify-content: space-between;
15
+ align-items: center;
16
+ margin-bottom: auto;
17
+ /* Pushes content down */
18
+ }
19
+
20
+ /* Override AcidLabel colors specifically for light layout */
21
+ .ac-solid-card .ac-label {
22
+ color: #666;
23
+ }
24
+
25
+ .ac-solid-card .ac-dot-brand {
26
+ background-color: var(--ac-brand);
27
+ }
28
+
29
+ .ac-solid-ghost-text {
30
+ font-family: var(--font-mono);
31
+ font-size: 0.75rem;
32
+ color: #777;
33
+ letter-spacing: 0.05em;
34
+ text-transform: uppercase;
35
+ }
36
+
37
+ .ac-solid-content {
38
+ margin-top: 4rem;
39
+ }
40
+
41
+ .ac-solid-graphic {
42
+ margin-bottom: 1.5rem;
43
+ color: #111;
44
+ }
45
+
46
+ .ac-solid-title {
47
+ font-size: clamp(2.5rem, 5vw, 4rem);
48
+ font-family: var(--font-inter);
49
+ line-height: 1.05;
50
+ font-weight: 500;
51
+ letter-spacing: -0.04em;
52
+ color: #000;
53
+ margin-bottom: 2rem;
54
+ max-width: 600px;
55
+ }