shadcn-glass-ui 1.0.11 → 2.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 (215) hide show
  1. package/CHANGELOG.md +213 -0
  2. package/README.md +174 -17
  3. package/context7.json +58 -0
  4. package/dist/cli/index.cjs +470 -0
  5. package/dist/cli/index.cjs.map +1 -0
  6. package/dist/cli/index.d.ts +18 -0
  7. package/dist/cli/index.js +469 -0
  8. package/dist/cli/index.js.map +1 -0
  9. package/dist/components.cjs +4 -4
  10. package/dist/components.d.ts +153 -22
  11. package/dist/components.js +2 -2
  12. package/dist/hooks.cjs +2 -2
  13. package/dist/index.cjs +872 -5
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.ts +0 -2390
  16. package/dist/index.js +844 -3
  17. package/dist/index.js.map +1 -1
  18. package/dist/r/ai-card-glass.json +5 -12
  19. package/dist/r/avatar-glass.json +5 -15
  20. package/dist/r/circular-metric-glass.json +5 -11
  21. package/dist/r/circular-progress-glass.json +5 -12
  22. package/dist/r/combobox-glass.json +5 -13
  23. package/dist/r/flag-alert-glass.json +5 -11
  24. package/dist/r/flags-section-glass.json +5 -12
  25. package/dist/r/insight-card-glass.json +17 -0
  26. package/dist/r/interactive-card.json +5 -12
  27. package/dist/r/language-bar-glass.json +5 -11
  28. package/dist/r/metric-card-glass.json +6 -13
  29. package/dist/r/metrics-grid-glass.json +5 -11
  30. package/dist/r/modal-glass.json +5 -15
  31. package/dist/r/progress-glass.json +5 -13
  32. package/dist/r/registry.json +20 -2
  33. package/dist/r/segmented-control-glass.json +5 -11
  34. package/dist/r/sparkline-glass.json +17 -0
  35. package/dist/r/stepper-glass.json +33 -0
  36. package/dist/r/tabs-glass.json +4 -9
  37. package/dist/r/trust-score-card-glass.json +5 -12
  38. package/dist/r/year-card-glass.json +5 -13
  39. package/dist/shadcn-glass-ui.css +1 -1
  40. package/dist/{theme-context-XtasSxRT.cjs → theme-context-CVW50BKW.cjs} +2 -2
  41. package/dist/{theme-context-XtasSxRT.cjs.map → theme-context-CVW50BKW.cjs.map} +1 -1
  42. package/dist/themes.cjs +1 -1
  43. package/dist/trust-score-card-glass-BcZbul0P.js +26895 -0
  44. package/dist/trust-score-card-glass-BcZbul0P.js.map +1 -0
  45. package/dist/trust-score-card-glass-r3qM09Jp.cjs +27689 -0
  46. package/dist/trust-score-card-glass-r3qM09Jp.cjs.map +1 -0
  47. package/dist/{use-focus-BbpE2qGq.cjs → use-focus-ZE8ozmZE.cjs} +2 -2
  48. package/dist/{use-focus-BbpE2qGq.cjs.map → use-focus-ZE8ozmZE.cjs.map} +1 -1
  49. package/dist/{use-wallpaper-tint-CIqtoETa.cjs → use-wallpaper-tint-BuS80tbN.cjs} +2 -2
  50. package/dist/{use-wallpaper-tint-CIqtoETa.cjs.map → use-wallpaper-tint-BuS80tbN.cjs.map} +1 -1
  51. package/dist/{utils-CGCOTvxT.js → utils-CcyeqpKQ.js} +1 -1
  52. package/dist/{utils-CGCOTvxT.js.map → utils-CcyeqpKQ.js.map} +1 -1
  53. package/dist/{utils-CriE74ig.cjs → utils-DLXayspX.cjs} +2 -2
  54. package/dist/{utils-CriE74ig.cjs.map → utils-DLXayspX.cjs.map} +1 -1
  55. package/dist/utils.cjs +1 -1
  56. package/dist/utils.js +1 -1
  57. package/docs/AI_IMPROVEMENTS_COMPLETE.md +574 -0
  58. package/docs/AI_USAGE.md +1328 -0
  59. package/docs/API_PATTERNS_COMPARISON.md +418 -0
  60. package/docs/BEST_PRACTICES.md +800 -0
  61. package/docs/COMPLIANCE_CHECKLIST.md +307 -0
  62. package/docs/COMPLIANCE_TESTING.md +436 -0
  63. package/docs/COMPONENTS_CATALOG.md +1076 -0
  64. package/docs/CSS_VARIABLES_AUDIT.md +306 -0
  65. package/docs/CSS_VARIABLES_REFACTORING_PLAN.md +330 -0
  66. package/docs/EXPORTS_MAP.json +875 -0
  67. package/docs/EXPORTS_STRUCTURE.md +729 -0
  68. package/docs/GETTING_STARTED.md +655 -0
  69. package/docs/METRIC_CARD_API_REDESIGN.md +354 -0
  70. package/docs/PRIMITIVE_MAPPING.md +404 -0
  71. package/docs/PUBLISHING.md +593 -0
  72. package/docs/REGISTRY_SUMMARY.md +96 -0
  73. package/docs/REGISTRY_USAGE.md +339 -0
  74. package/docs/SECURITY.md +117 -0
  75. package/docs/THEME_CREATION_GUIDE.md +455 -0
  76. package/docs/TOKEN_ARCHITECTURE.md +365 -0
  77. package/docs/announcements/v1.0.5-devto.md +363 -0
  78. package/docs/announcements/v1.0.5-reddit.md +115 -0
  79. package/docs/announcements/v1.0.5-twitter.md +70 -0
  80. package/docs/api/README.md +725 -0
  81. package/docs/api/functions/ThemeProvider.md +21 -0
  82. package/docs/api/functions/cn.md +27 -0
  83. package/docs/api/functions/getNextTheme.md +21 -0
  84. package/docs/api/functions/getThemeConfig.md +21 -0
  85. package/docs/api/functions/useFocus.md +53 -0
  86. package/docs/api/functions/useHover.md +47 -0
  87. package/docs/api/functions/useResponsive.md +31 -0
  88. package/docs/api/functions/useTheme.md +15 -0
  89. package/docs/api/functions/useWallpaperTint.md +36 -0
  90. package/docs/api/globals.md +139 -0
  91. package/docs/api/interfaces/AlertGlassProps.md +131 -0
  92. package/docs/api/interfaces/AvatarGlassProps.md +114 -0
  93. package/docs/api/interfaces/BadgeGlassProps.md +118 -0
  94. package/docs/api/interfaces/ButtonGlassProps.md +179 -0
  95. package/docs/api/interfaces/CheckboxGlassProps.md +125 -0
  96. package/docs/api/interfaces/DropdownGlassProps.md +123 -0
  97. package/docs/api/interfaces/DropdownItem.md +53 -0
  98. package/docs/api/interfaces/GlassCardProps.md +151 -0
  99. package/docs/api/interfaces/InputGlassProps.md +169 -0
  100. package/docs/api/interfaces/NotificationGlassProps.md +67 -0
  101. package/docs/api/interfaces/ProgressGlassProps.md +49 -0
  102. package/docs/api/interfaces/SkeletonGlassProps.md +41 -0
  103. package/docs/api/interfaces/SliderGlassProps.md +107 -0
  104. package/docs/api/interfaces/TabItem.md +25 -0
  105. package/docs/api/interfaces/ThemeConfig.md +25 -0
  106. package/docs/api/interfaces/ThemeContextValue.md +47 -0
  107. package/docs/api/interfaces/ToggleGlassProps.md +59 -0
  108. package/docs/api/interfaces/TooltipGlassProps.md +119 -0
  109. package/docs/api/type-aliases/AlertType.md +11 -0
  110. package/docs/api/type-aliases/AlertVariant.md +11 -0
  111. package/docs/api/type-aliases/AvatarSize.md +11 -0
  112. package/docs/api/type-aliases/AvatarStatus.md +13 -0
  113. package/docs/api/type-aliases/BadgeSize.md +11 -0
  114. package/docs/api/type-aliases/BadgeVariant.md +11 -0
  115. package/docs/api/type-aliases/ButtonGlassSize.md +11 -0
  116. package/docs/api/type-aliases/ButtonGlassVariant.md +11 -0
  117. package/docs/api/type-aliases/DropdownAlign.md +11 -0
  118. package/docs/api/type-aliases/GlowType.md +11 -0
  119. package/docs/api/type-aliases/InputGlassSize.md +11 -0
  120. package/docs/api/type-aliases/IntensityType.md +11 -0
  121. package/docs/api/type-aliases/ModalSize.md +11 -0
  122. package/docs/api/type-aliases/NotificationType.md +11 -0
  123. package/docs/api/type-aliases/PaddingType.md +11 -0
  124. package/docs/api/type-aliases/ProgressGradient.md +11 -0
  125. package/docs/api/type-aliases/ProgressSize.md +11 -0
  126. package/docs/api/type-aliases/SkeletonVariant.md +11 -0
  127. package/docs/api/type-aliases/Theme.md +11 -0
  128. package/docs/api/type-aliases/ToggleGlassSize.md +11 -0
  129. package/docs/api/type-aliases/TooltipPosition.md +11 -0
  130. package/docs/api/variables/AICardGlass.md +11 -0
  131. package/docs/api/variables/AlertGlass.md +11 -0
  132. package/docs/api/variables/AvatarGlass.md +11 -0
  133. package/docs/api/variables/BadgeGlass.md +11 -0
  134. package/docs/api/variables/BaseProgressGlass.md +11 -0
  135. package/docs/api/variables/ButtonGlass.md +11 -0
  136. package/docs/api/variables/CareerStatsGlass.md +11 -0
  137. package/docs/api/variables/CareerStatsHeaderGlass.md +11 -0
  138. package/docs/api/variables/CheckboxGlass.md +11 -0
  139. package/docs/api/variables/CircularMetricGlass.md +22 -0
  140. package/docs/api/variables/CircularProgressGlass.md +11 -0
  141. package/docs/api/variables/ComboBoxGlass.md +27 -0
  142. package/docs/api/variables/ContributionMetricsGlass.md +11 -0
  143. package/docs/api/variables/DropdownGlass.md +11 -0
  144. package/docs/api/variables/ExpandableHeaderGlass.md +11 -0
  145. package/docs/api/variables/FlagAlertGlass.md +11 -0
  146. package/docs/api/variables/FlagsSectionGlass.md +11 -0
  147. package/docs/api/variables/FormFieldWrapper.md +44 -0
  148. package/docs/api/variables/GlassCard.md +11 -0
  149. package/docs/api/variables/HeaderBrandingGlass.md +11 -0
  150. package/docs/api/variables/HeaderNavGlass.md +11 -0
  151. package/docs/api/variables/IconButtonGlass.md +11 -0
  152. package/docs/api/variables/InputGlass.md +11 -0
  153. package/docs/api/variables/InteractiveCard.md +45 -0
  154. package/docs/api/variables/LanguageBarGlass.md +11 -0
  155. package/docs/api/variables/MetricCardGlass.md +11 -0
  156. package/docs/api/variables/MetricsGridGlass.md +11 -0
  157. package/docs/api/variables/ModalGlass.md +72 -0
  158. package/docs/api/variables/NotificationGlass.md +11 -0
  159. package/docs/api/variables/PopoverGlass.md +11 -0
  160. package/docs/api/variables/ProfileAvatarGlass.md +11 -0
  161. package/docs/api/variables/ProfileHeaderGlass.md +11 -0
  162. package/docs/api/variables/ProgressGlass.md +11 -0
  163. package/docs/api/variables/ProjectsListGlass.md +11 -0
  164. package/docs/api/variables/RainbowProgressGlass.md +11 -0
  165. package/docs/api/variables/RepositoryCardGlass.md +11 -0
  166. package/docs/api/variables/RepositoryHeaderGlass.md +11 -0
  167. package/docs/api/variables/RepositoryMetadataGlass.md +11 -0
  168. package/docs/api/variables/SearchBoxGlass.md +11 -0
  169. package/docs/api/variables/SegmentedControlGlass.md +11 -0
  170. package/docs/api/variables/SkeletonGlass.md +11 -0
  171. package/docs/api/variables/SliderGlass.md +11 -0
  172. package/docs/api/variables/SortDropdownGlass.md +11 -0
  173. package/docs/api/variables/StatItemGlass.md +11 -0
  174. package/docs/api/variables/StatusIndicatorGlass.md +11 -0
  175. package/docs/api/variables/THEMES.md +11 -0
  176. package/docs/api/variables/THEME_CONFIG.md +11 -0
  177. package/docs/api/variables/TabsGlass.md +52 -0
  178. package/docs/api/variables/ThemeToggleGlass.md +11 -0
  179. package/docs/api/variables/ToggleGlass.md +11 -0
  180. package/docs/api/variables/TooltipGlass.md +11 -0
  181. package/docs/api/variables/TouchTarget.md +35 -0
  182. package/docs/api/variables/TrustScoreCardGlass.md +11 -0
  183. package/docs/api/variables/TrustScoreDisplayGlass.md +11 -0
  184. package/docs/api/variables/UserInfoGlass.md +11 -0
  185. package/docs/api/variables/UserStatsLineGlass.md +11 -0
  186. package/docs/api/variables/YearCardGlass.md +11 -0
  187. package/docs/api/variables/alertVariants.md +21 -0
  188. package/docs/api/variables/avatarSizes.md +21 -0
  189. package/docs/api/variables/badgeVariants.md +21 -0
  190. package/docs/api/variables/buttonGlassVariants.md +21 -0
  191. package/docs/api/variables/cardIntensity.md +21 -0
  192. package/docs/api/variables/dropdownAlign.md +21 -0
  193. package/docs/api/variables/inputVariants.md +21 -0
  194. package/docs/api/variables/modalSizes.md +21 -0
  195. package/docs/api/variables/notificationVariants.md +21 -0
  196. package/docs/api/variables/progressSizes.md +21 -0
  197. package/docs/api/variables/shadcnAlertVariants.md +21 -0
  198. package/docs/api/variables/shadcnBadgeVariants.md +21 -0
  199. package/docs/api/variables/shadcnButtonVariants.md +21 -0
  200. package/docs/api/variables/skeletonVariants.md +21 -0
  201. package/docs/api/variables/statusSizes.md +21 -0
  202. package/docs/api/variables/toggleSizes.md +21 -0
  203. package/docs/api/variables/tooltipPositions.md +21 -0
  204. package/docs/design-system/UI_DESIGN.md +628 -0
  205. package/docs/migration/CSS_VARIABLES_MIGRATION_2.0.md +325 -0
  206. package/docs/migration/modal-glass-compound-api.md +458 -0
  207. package/docs/migration/select-to-combobox.md +386 -0
  208. package/docs/migration/tabs-glass-compound-api.md +579 -0
  209. package/docs/technical/DEPENDENCIES.md +291 -0
  210. package/docs/visual-testing-guide.md +324 -0
  211. package/package.json +16 -3
  212. package/dist/trust-score-card-glass-CNcQveNY.cjs +0 -8231
  213. package/dist/trust-score-card-glass-CNcQveNY.cjs.map +0 -1
  214. package/dist/trust-score-card-glass-CowcDyxH.js +0 -7795
  215. package/dist/trust-score-card-glass-CowcDyxH.js.map +0 -1
@@ -0,0 +1,725 @@
1
+ **shadcn-glass-ui API Reference v1.0.7**
2
+
3
+ ---
4
+
5
+ # shadcn-glass-ui
6
+
7
+ [![npm version](https://img.shields.io/npm/v/shadcn-glass-ui.svg)](https://www.npmjs.com/package/shadcn-glass-ui)
8
+ [![npm downloads](https://img.shields.io/npm/dm/shadcn-glass-ui.svg)](https://www.npmjs.com/package/shadcn-glass-ui)
9
+ [![License](https://img.shields.io/npm/l/shadcn-glass-ui.svg)](https://github.com/Yhooi2/shadcn-glass-ui-library/blob/main/LICENSE)
10
+ [![CI](https://github.com/Yhooi2/shadcn-glass-ui-library/workflows/CI%2FCD%20Pipeline/badge.svg)](https://github.com/Yhooi2/shadcn-glass-ui-library/actions)
11
+ [![Bundle Size](https://img.shields.io/bundlephobia/minzip/shadcn-glass-ui)](https://bundlephobia.com/package/shadcn-glass-ui)
12
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue)](https://www.typescriptlang.org/)
13
+ [![React](https://img.shields.io/badge/React-19.2-blue)](https://reactjs.org/)
14
+ [![Tailwind CSS](https://img.shields.io/badge/Tailwind-4.1-blue)](https://tailwindcss.com/)
15
+ [![AI-Friendly](https://img.shields.io/badge/AI-Friendly-blueviolet?logo=openai)](docs/AI_USAGE.md)
16
+ [![Claude Code](https://img.shields.io/badge/Claude-Code-5865F2?logo=anthropic)](docs/AI_USAGE.md)
17
+ [![GitHub Copilot](https://img.shields.io/badge/GitHub-Copilot-181717?logo=github)](docs/AI_USAGE.md)
18
+
19
+ Glassmorphism UI library for React - AI-friendly with 58 components, strict TypeScript, and
20
+ comprehensive docs.
21
+
22
+ ## ✨ Highlights
23
+
24
+ - 🎨 **58 Components** - Core UI (18) + Atomic (7) + Composite (13) + Sections (7) + Specialized
25
+ (10) + Primitives (3)
26
+ - 🌈 **3 Themes** - Glass (dark glassmorphism), Light (clean minimal), Aurora (gradient glow)
27
+ - 🤖 **AI-Friendly** - Optimized for Claude Code, Copilot, GPT with comprehensive docs
28
+ - 🔮 **Advanced Patterns** - asChild polymorphic rendering, Compound components (Modal, Tabs)
29
+ - ♿ **WCAG 2.1 AA** - Full accessibility compliance with automated testing
30
+ - 📱 **Touch Optimized** - 44×44px minimum touch targets (Apple HIG)
31
+ - ⚡ **Modern Stack** - React 19, Tailwind v4, Vitest 4, Storybook 10, Vite 7
32
+ - 🧪 **1355+ Tests** - 650+ compliance + 580 visual regression + 125 unit tests
33
+ - 📦 **shadcn Compatible** - Works seamlessly with existing shadcn/ui projects
34
+ - 🎯 **Design System** - Comprehensive [UI_DESIGN.md](../design-system/UI_DESIGN.md) specifications
35
+ - 📦 **Bundle Size** - ~110KB gzipped (production build)
36
+
37
+ ## Tech Stack
38
+
39
+ - **React 19.2** - Server Components, React Compiler, automatic batching
40
+ - **TypeScript 5.9** - Strict type checking
41
+ - **Tailwind CSS 4.1** - CSS-first configuration with CSS variables
42
+ - **Vite 7** (rolldown-vite) - Rust-powered bundler
43
+ - **Storybook 10.1** - Component workshop with ESM-only architecture
44
+ - **Vitest 4.0** - Browser mode testing with visual regression
45
+
46
+ See [DEPENDENCIES.md](DEPENDENCIES.md) for detailed dependency documentation.
47
+
48
+ ## 🤖 AI Assistant Support
49
+
50
+ This library is **optimized for AI coding assistants** including Claude Code, GitHub Copilot, and
51
+ ChatGPT:
52
+
53
+ - 📖 **Dedicated AI Guide** - [AI_USAGE.md](../../docs/AI_USAGE.md) with decision trees and
54
+ workflows
55
+ - 🎯 **TypeScript Strict Mode** - Full type inference for autocomplete
56
+ - 📝 **Rich JSDoc** - Every component documented with @example, @accessibility
57
+ - 🗂️ **Component Catalog** - [COMPONENTS_CATALOG.md](../../docs/COMPONENTS_CATALOG.md) with
58
+ searchable index
59
+ - 🔍 **Exports Map** - Machine-readable [EXPORTS_MAP.json](../../docs/EXPORTS_MAP.json)
60
+ - 🧪 **Real-World Examples** - Use-case based Storybook stories
61
+ - 📦 **shadcn CLI Compatible** - Install components via
62
+ `npx shadcn add @shadcn-glass-ui/button-glass`
63
+
64
+ [**→ Read AI Usage Guide**](../../docs/AI_USAGE.md) |
65
+ [**→ Component Catalog**](../../docs/COMPONENTS_CATALOG.md)
66
+
67
+ ## 📚 Documentation
68
+
69
+ - **[Live Storybook](https://yhooi2.github.io/shadcn-glass-ui-library/)** - Interactive component
70
+ demos
71
+ - **[npm Package](https://www.npmjs.com/package/shadcn-glass-ui)** - Public npm registry
72
+ - **[Getting Started Guide](../../docs/GETTING_STARTED.md)** - Setup tutorial
73
+ - **[GitHub](https://github.com/Yhooi2/shadcn-glass-ui-library)** - Source code
74
+ - [Component Documentation](https://yhooi2.github.io/shadcn-glass-ui-library/?path=/docs) - Detailed
75
+ API references
76
+ - [Registry Usage Guide](../../docs/REGISTRY_USAGE.md) - shadcn CLI installation guide
77
+ - [Design System](../design-system/UI_DESIGN.md) - Comprehensive UI specifications
78
+ - [Migration Guides](../../docs/migration) - Upgrade and API changes
79
+
80
+ ## 📦 Installation
81
+
82
+ Install from npm registry:
83
+
84
+ ```bash
85
+ npm install shadcn-glass-ui
86
+ ```
87
+
88
+ ## 🚀 Quick Start
89
+
90
+ **Requirements:**
91
+
92
+ - React 18.0+ or 19.0+
93
+ - React-DOM 18.0+ or 19.0+
94
+ - Tailwind CSS 4.0+
95
+
96
+ ### Basic Usage
97
+
98
+ ```tsx
99
+ import { ButtonGlass, InputGlass, ThemeProvider } from 'shadcn-glass-ui';
100
+ import 'shadcn-glass-ui/dist/styles.css';
101
+
102
+ function App() {
103
+ return (
104
+ <ThemeProvider defaultTheme="glass">
105
+ <div className="p-8 space-y-4">
106
+ <ButtonGlass variant="primary" size="lg">
107
+ Click me
108
+ </ButtonGlass>
109
+ <InputGlass placeholder="Enter text..." />
110
+ </div>
111
+ </ThemeProvider>
112
+ );
113
+ }
114
+
115
+ export default App;
116
+ ```
117
+
118
+ ## 🆕 Advanced Features (Phase 3)
119
+
120
+ ### asChild Pattern
121
+
122
+ Polymorphic rendering with Radix UI Slot - render components as any element:
123
+
124
+ ```tsx
125
+ import { ButtonGlass } from 'shadcn-glass-ui';
126
+ import { Link } from 'react-router-dom';
127
+
128
+ // Render button as Link
129
+ <ButtonGlass asChild>
130
+ <Link to="/profile">View Profile</Link>
131
+ </ButtonGlass>
132
+
133
+ // Render button as anchor
134
+ <ButtonGlass asChild variant="primary">
135
+ <a href="https://example.com" target="_blank">
136
+ External Link
137
+ </a>
138
+ </ButtonGlass>
139
+ ```
140
+
141
+ **Supported components:** `ButtonGlass`, `AvatarGlass`, `GlassCard`
142
+
143
+ ### Compound Components
144
+
145
+ Fine-grained composition for complex components:
146
+
147
+ ```tsx
148
+ import { ModalGlass, TabsGlass } from 'shadcn-glass-ui';
149
+
150
+ // ModalGlass Compound API
151
+ <ModalGlass.Root open={open} onOpenChange={setOpen}>
152
+ <ModalGlass.Overlay />
153
+ <ModalGlass.Content>
154
+ <ModalGlass.Header>
155
+ <ModalGlass.Title>Confirm Action</ModalGlass.Title>
156
+ <ModalGlass.Description>
157
+ This action cannot be undone
158
+ </ModalGlass.Description>
159
+ <ModalGlass.Close />
160
+ </ModalGlass.Header>
161
+ <ModalGlass.Body>
162
+ <p>Content here...</p>
163
+ </ModalGlass.Body>
164
+ <ModalGlass.Footer>
165
+ <ButtonGlass onClick={() => setOpen(false)}>Cancel</ButtonGlass>
166
+ <ButtonGlass variant="primary">Confirm</ButtonGlass>
167
+ </ModalGlass.Footer>
168
+ </ModalGlass.Content>
169
+ </ModalGlass.Root>
170
+
171
+ // TabsGlass Compound API
172
+ <TabsGlass.Root value={activeTab} onValueChange={setActiveTab}>
173
+ <TabsGlass.List>
174
+ <TabsGlass.Trigger value="tab1">Overview</TabsGlass.Trigger>
175
+ <TabsGlass.Trigger value="tab2">Analytics</TabsGlass.Trigger>
176
+ </TabsGlass.List>
177
+ <TabsGlass.Content value="tab1">
178
+ <p>Overview content</p>
179
+ </TabsGlass.Content>
180
+ <TabsGlass.Content value="tab2">
181
+ <p>Analytics content</p>
182
+ </TabsGlass.Content>
183
+ </TabsGlass.Root>
184
+ ```
185
+
186
+ ## ⚠️ Breaking Changes (v1.0.0)
187
+
188
+ **v1.0.0 removes all legacy/deprecated APIs.** This is a clean slate release with only Compound API
189
+ support.
190
+
191
+ ### Removed Components
192
+
193
+ #### SelectGlass (Removed in v1.0.0)
194
+
195
+ **SelectGlass has been removed.** Use **ComboBoxGlass** instead.
196
+
197
+ ```tsx
198
+ // ❌ Removed in v1.0.0
199
+ <SelectGlass
200
+ options={options}
201
+ value={value}
202
+ onChange={setValue}
203
+ placeholder="Select option"
204
+ />
205
+
206
+ // ✅ Use ComboBoxGlass
207
+ <ComboBoxGlass
208
+ options={options}
209
+ value={value}
210
+ onChange={setValue}
211
+ placeholder="Select option"
212
+ />
213
+ ```
214
+
215
+ ### Removed Legacy APIs
216
+
217
+ #### ModalGlass: Legacy Props API Removed
218
+
219
+ **The old props-based API has been removed.** Use Compound API instead.
220
+
221
+ ```tsx
222
+ // ❌ Removed in v1.0.0
223
+ <ModalGlass isOpen={true} onClose={() => {}} title="Test">
224
+ Content
225
+ </ModalGlass>
226
+
227
+ // ✅ Use Compound API
228
+ <ModalGlass.Root open={true} onOpenChange={() => {}}>
229
+ <ModalGlass.Overlay />
230
+ <ModalGlass.Content>
231
+ <ModalGlass.Header>
232
+ <ModalGlass.Title>Test</ModalGlass.Title>
233
+ <ModalGlass.Close />
234
+ </ModalGlass.Header>
235
+ <ModalGlass.Body>Content</ModalGlass.Body>
236
+ </ModalGlass.Content>
237
+ </ModalGlass.Root>
238
+ ```
239
+
240
+ **Key Changes:**
241
+
242
+ - `isOpen` → `open` (on ModalGlass.Root)
243
+ - `onClose` → `onOpenChange` (callback signature changed from `() => void` to
244
+ `(open: boolean) => void`)
245
+ - `title` prop removed → use `<ModalGlass.Title>` component
246
+ - Manual structure required (Overlay, Content, Header, Body, Footer)
247
+
248
+ #### TabsGlass: Legacy Props API Removed
249
+
250
+ **The old props-based API has been removed.** Use Compound API instead.
251
+
252
+ ```tsx
253
+ // ❌ Removed in v1.0.0
254
+ <TabsGlass
255
+ tabs={[
256
+ { id: 'tab1', label: 'Tab 1' },
257
+ { id: 'tab2', label: 'Tab 2' }
258
+ ]}
259
+ activeTab="tab1"
260
+ onChange={setActiveTab}
261
+ />
262
+
263
+ // ✅ Use Compound API
264
+ <TabsGlass.Root value="tab1" onValueChange={setActiveTab}>
265
+ <TabsGlass.List>
266
+ <TabsGlass.Trigger value="tab1">Tab 1</TabsGlass.Trigger>
267
+ <TabsGlass.Trigger value="tab2">Tab 2</TabsGlass.Trigger>
268
+ </TabsGlass.List>
269
+ <TabsGlass.Content value="tab1">Content 1</TabsGlass.Content>
270
+ <TabsGlass.Content value="tab2">Content 2</TabsGlass.Content>
271
+ </TabsGlass.Root>
272
+ ```
273
+
274
+ **Key Changes:**
275
+
276
+ - `tabs` array prop removed → use individual `<TabsGlass.Trigger>` components
277
+ - `activeTab` → `value` (on TabsGlass.Root)
278
+ - `onChange` → `onValueChange`
279
+ - Content must be explicitly defined with `<TabsGlass.Content>` for each tab
280
+
281
+ ### Migration Guides
282
+
283
+ Detailed migration guides are available in the [docs/migration/](../../docs/migration) directory:
284
+
285
+ - **[ModalGlass Compound API](../../docs/migration/modal-glass-compound-api.md)** - Legacy →
286
+ Compound API
287
+ - **[TabsGlass Compound API](../../docs/migration/tabs-glass-compound-api.md)** - Legacy → Compound
288
+ API
289
+
290
+ ### Changelog
291
+
292
+ See [CHANGELOG.md](../../CHANGELOG.md) for complete version history and breaking changes.
293
+
294
+ ## 📚 Full Documentation
295
+
296
+ - **[Getting Started Guide](../../docs/GETTING_STARTED.md)** - Comprehensive setup tutorial
297
+ - **[AI Usage Guide](../../docs/AI_USAGE.md)** - Using library with AI assistants (Copilot, Claude,
298
+ GPT)
299
+ - **[Publishing Guide](../../docs/PUBLISHING.md)** - Build and publish with TypeScript declarations
300
+ - **[Storybook](https://yhooi2.github.io/shadcn-glass-ui-library/)** - Live component demos
301
+ - **[UI Design System](../design-system/UI_DESIGN.md)** - Complete design specifications
302
+ - **[Visual Testing Guide](../../docs/visual-testing-guide.md)** - Screenshot update workflow
303
+ - **[Migration Guide](MIGRATION_GUIDE.md)** - Upgrading from v1
304
+ - **[Breaking Changes](BREAKING_CHANGES.md)** - API changes log
305
+ - **[Dependencies](DEPENDENCIES.md)** - Detailed dependency docs
306
+ - **[Contributing](../../CONTRIBUTING.md)** - Development guidelines
307
+
308
+ ## 🎯 Component Categories
309
+
310
+ ### Level 1: Core UI (18 components)
311
+
312
+ Essential building blocks for any application:
313
+
314
+ - **Buttons & Actions**: ButtonGlass
315
+ - **Inputs**: InputGlass, CheckboxGlass, ToggleGlass, SliderGlass, ComboBoxGlass, PopoverGlass
316
+ - **Containers**: GlassCard, ModalGlass
317
+ - **Navigation**: TabsGlass, DropdownGlass
318
+ - **Feedback**: BadgeGlass, AlertGlass, NotificationGlass, TooltipGlass, SkeletonGlass,
319
+ ProgressGlass, CircularProgressGlass
320
+ - **Media**: AvatarGlass
321
+
322
+ [View all Core UI components →](https://yhooi2.github.io/shadcn-glass-ui-library/?path=/docs)
323
+
324
+ ### Level 2: Atomic (6 components)
325
+
326
+ Small, specialized components for specific use cases:
327
+
328
+ - **SearchBoxGlass** - Search input with icon
329
+ - **ThemeToggleGlass** - Theme switcher button
330
+ - **ExpandableHeaderGlass** - Collapsible header section
331
+ - **SortDropdownGlass** - Sorting dropdown menu
332
+ - **StatItemGlass** - Individual stat display
333
+ - **IconButtonGlass** - Icon-only button variant
334
+
335
+ [View all Atomic components →](https://yhooi2.github.io/shadcn-glass-ui-library/?path=/docs)
336
+
337
+ ### Level 3: Composite (13 components)
338
+
339
+ Pre-built complex components combining multiple elements:
340
+
341
+ - **AICardGlass** - AI summary card with feature list
342
+ - **MetricCardGlass** - Metric display card with progress indicator
343
+ - **YearCardGlass** - Year card for career timeline
344
+ - **CircularMetricGlass** - Circular progress metric display
345
+ - **RepositoryCardGlass** - Repository card with expandable details
346
+ - **RepositoryHeaderGlass** - Repository header with metadata
347
+ - **RepositoryMetadataGlass** - Repository metadata display
348
+ - **TrustScoreDisplayGlass** - Trust score with visual indicator
349
+ - **UserStatsLineGlass** - User statistics horizontal display
350
+ - **UserInfoGlass** - User information card
351
+ - **CareerStatsHeaderGlass** - Career statistics header
352
+ - **ContributionMetricsGlass** - Contribution metrics display
353
+ - **MetricsGridGlass** - Grid layout for metrics
354
+
355
+ [View all Composite components →](https://yhooi2.github.io/shadcn-glass-ui-library/?path=/docs)
356
+
357
+ ### Specialized Components (8 components)
358
+
359
+ Advanced specialized components for specific use cases:
360
+
361
+ - **StatusIndicatorGlass** - Status dots with glow effect
362
+ - **SegmentedControlGlass** - Segmented button group
363
+ - **RainbowProgressGlass** - Rainbow gradient progress bar
364
+ - **LanguageBarGlass** - Language proficiency bar with legend
365
+ - **ProfileAvatarGlass** - Large avatar with glow animation
366
+ - **FlagAlertGlass** - Warning/danger flag alert with icon
367
+ - **ProgressGlass** - Enhanced progress bar
368
+ - **BaseProgressGlass** - Base progress component
369
+
370
+ [View all Specialized components →](https://yhooi2.github.io/shadcn-glass-ui-library/?path=/docs)
371
+
372
+ ### Level 4: Sections (7 components)
373
+
374
+ Full-page sections ready to use in your application:
375
+
376
+ - **HeaderNavGlass** - Navigation header with search and theme toggle
377
+ - **ProfileHeaderGlass** - User profile header with avatar, stats, and languages
378
+ - **CareerStatsGlass** - Career statistics with expandable year cards
379
+ - **FlagsSectionGlass** - Expandable flags/warnings section
380
+ - **TrustScoreCardGlass** - Trust score display with detailed metrics
381
+ - **ProjectsListGlass** - Projects list with filtering and sorting
382
+ - **HeaderBrandingGlass** - Branded header with logo and navigation
383
+
384
+ [View all Section components →](https://yhooi2.github.io/shadcn-glass-ui-library/?path=/docs)
385
+
386
+ ### Blocks (6 ready-to-use demo sections)
387
+
388
+ Complete component showcases following shadcn/ui pattern - these are demo/documentation components,
389
+ not production-ready blocks:
390
+
391
+ - **ButtonsBlock** - All button variants, sizes, states demo
392
+ - **FormElementsBlock** - Input, Slider, Toggle, Checkbox demos
393
+ - **ProgressBlock** - Progress bars, RainbowProgress, Skeletons demo
394
+ - **AvatarGalleryBlock** - Avatar sizes and status indicators demo
395
+ - **BadgesBlock** - Badge variants with tooltips demo
396
+ - **NotificationsBlock** - Notifications and alerts demo
397
+
398
+ **Note:** Blocks are showcase/demo components visible in Storybook. For production use, utilize
399
+ individual components from the categories above.
400
+
401
+ [View Blocks in Storybook →](https://yhooi2.github.io/shadcn-glass-ui-library/?path=/story/glass-blocks--default)
402
+
403
+ ### Demo Pages (3 full applications)
404
+
405
+ Complete application examples showcasing all components:
406
+
407
+ - **ComponentShowcase** - Interactive demo of all 58 components with theme switching
408
+ - **DesktopShowcase** - GitHub Analytics desktop application mockup with glassmorphism design
409
+ - **MobileShowcase** - Mobile-optimized GitHub profile view with responsive layout
410
+
411
+ [Try live demos →](https://yhooi2.github.io/shadcn-glass-ui-library/)
412
+
413
+ ## 🎨 Themes
414
+
415
+ shadcn-glass-ui provides three built-in themes:
416
+
417
+ ### 🌑 Glass Theme (Dark Glassmorphism)
418
+
419
+ Default dark theme with frosted glass effects:
420
+
421
+ ```tsx
422
+ <div className="theme-glass">
423
+ <ButtonGlass>Glassmorphic Button</ButtonGlass>
424
+ </div>
425
+ ```
426
+
427
+ **Features:**
428
+
429
+ - Backdrop blur: 16px (md)
430
+ - Dark background with glass overlays
431
+ - Purple gradient accents
432
+ - Glow effects on hover/focus
433
+
434
+ ### ☀️ Light Theme
435
+
436
+ Clean, minimal light theme:
437
+
438
+ ```tsx
439
+ <div className="theme-light">
440
+ <ButtonGlass>Light Theme Button</ButtonGlass>
441
+ </div>
442
+ ```
443
+
444
+ **Features:**
445
+
446
+ - Subtle shadows instead of blur
447
+ - White/gray color palette
448
+ - Reduced opacity overlays
449
+ - Crisp, modern aesthetic
450
+
451
+ ### 🌈 Aurora Theme (Gradient)
452
+
453
+ Vibrant gradient theme with glow effects:
454
+
455
+ ```tsx
456
+ <div className="theme-aurora">
457
+ <ButtonGlass>Aurora Gradient Button</ButtonGlass>
458
+ </div>
459
+ ```
460
+
461
+ **Features:**
462
+
463
+ - Multi-color gradients
464
+ - Enhanced glow effects
465
+ - Dynamic backgrounds
466
+ - Eye-catching visuals
467
+
468
+ ### Theme Switching
469
+
470
+ ```tsx
471
+ import { useState } from 'react';
472
+ import { ThemeProvider, useTheme } from '@/lib/theme-context';
473
+
474
+ function App() {
475
+ return (
476
+ <ThemeProvider defaultTheme="glass">
477
+ <YourApp />
478
+ </ThemeProvider>
479
+ );
480
+ }
481
+
482
+ function ThemeSwitcher() {
483
+ const { theme, setTheme } = useTheme();
484
+
485
+ return (
486
+ <select value={theme} onChange={(e) => setTheme(e.target.value)}>
487
+ <option value="glass">Glass (Dark)</option>
488
+ <option value="light">Light</option>
489
+ <option value="aurora">Aurora</option>
490
+ </select>
491
+ );
492
+ }
493
+ ```
494
+
495
+ ## 🔮 Glass Effect Intensity
496
+
497
+ GlassCard supports 3 intensity levels for customizable blur effects:
498
+
499
+ ```tsx
500
+ // Subtle glass effect (8px blur)
501
+ <GlassCard intensity="subtle">
502
+ Subtle Effect
503
+ </GlassCard>
504
+
505
+ // Standard glassmorphism (16px blur - default)
506
+ <GlassCard intensity="medium">
507
+ Standard Glass
508
+ </GlassCard>
509
+
510
+ // Strong glass effect (24px blur)
511
+ <GlassCard intensity="strong">
512
+ Strong Effect
513
+ </GlassCard>
514
+ ```
515
+
516
+ **Intensity Levels:**
517
+
518
+ - `subtle` - 8px blur (--blur-sm) - Light glass effect
519
+ - `medium` - 16px blur (--blur-md) - Standard cards (default)
520
+ - `strong` - 24px blur (--blur-lg) - Featured cards
521
+
522
+ **Performance Note:** Use sparingly - limit to 2-3 glass elements per view for optimal performance.
523
+
524
+ ## ♿ Accessibility
525
+
526
+ All components are WCAG 2.1 AA compliant:
527
+
528
+ - ✅ **Keyboard Navigation** - Full Tab/Enter/Arrow key support
529
+ - ✅ **Screen Readers** - Proper ARIA labels and roles
530
+ - ✅ **Focus Indicators** - Visible focus rings (2px inner + 4px outer)
531
+ - ✅ **Color Contrast** - Minimum 4.5:1 for text, 3:1 for UI
532
+ - ✅ **Touch Targets** - 44×44px minimum (Apple HIG)
533
+ - ✅ **Reduced Motion** - Respects `prefers-reduced-motion`
534
+
535
+ ### Automated Testing
536
+
537
+ ```bash
538
+ npm run test:compliance # Design system compliance (650+ tests)
539
+ npm run test:compliance:browser # Browser-based a11y tests
540
+ ```
541
+
542
+ ## 📊 Performance
543
+
544
+ Thanks to the modern stack:
545
+
546
+ ### Build Performance
547
+
548
+ - **Production Builds**: 3-16x faster (Rolldown bundler)
549
+ - **Memory Usage**: 100x reduction vs Webpack/Rollup
550
+ - **Dev Server**: Near-instant start with Vite HMR
551
+ - **CSS Builds**: 100x faster incremental builds (Tailwind v4)
552
+
553
+ ### Runtime Performance
554
+
555
+ - **Render Optimization**: 32% fewer renders (React 19 compiler)
556
+ - **Bundle Size**: Tree-shakeable ESM exports
557
+ - **Code Splitting**: Automatic route-based splitting
558
+ - **CSS Output**: Optimized purged CSS (~10KB gzipped)
559
+
560
+ ### Performance Benchmarks
561
+
562
+ ```bash
563
+ npm run benchmark # Run performance benchmarks
564
+ ```
565
+
566
+ Example results:
567
+
568
+ - ButtonGlass initial render: < 1ms
569
+ - 100 component renders: < 50ms
570
+ - Theme switching: < 100ms
571
+
572
+ ## 🧪 Testing
573
+
574
+ Comprehensive test coverage across multiple layers:
575
+
576
+ ### Test Suites
577
+
578
+ ```bash
579
+ # All tests (1,355+ total)
580
+ npm test
581
+
582
+ # Design system compliance (650+ tests)
583
+ npm run test:compliance:run # jsdom tests
584
+ npm run test:compliance:browser:run # browser tests
585
+
586
+ # Visual regression (580 screenshots)
587
+ npm run test:visual:ci # Run visual tests
588
+ npm run test:visual:update # Update baselines
589
+
590
+ # Unit tests (125 tests)
591
+ npm run test:unit
592
+
593
+ # Coverage report (90% target)
594
+ npm run test:coverage
595
+ ```
596
+
597
+ ### Test Categories
598
+
599
+ | Category | Tests | Coverage |
600
+ | ---------------------------- | ---------- | ----------------- |
601
+ | **Design System Compliance** | 650+ | 100% |
602
+ | **Visual Regression** | 580 | All components |
603
+ | **Unit Tests** | 125 | Core utilities |
604
+ | **Total** | **1,355+** | **Comprehensive** |
605
+
606
+ ## 🛠️ Development
607
+
608
+ ### Prerequisites
609
+
610
+ - **Node.js**: 20.16+, 22.19+, or 24+
611
+ - **npm**: Latest stable version
612
+
613
+ ### Setup
614
+
615
+ ```bash
616
+ # Clone repository
617
+ git clone https://github.com/Yhooi2/shadcn-glass-ui-library.git
618
+ cd shadcn-glass-ui-library
619
+
620
+ # Install dependencies
621
+ npm install
622
+
623
+ # Setup git hooks (prevents committing screenshots from non-Linux platforms)
624
+ ./scripts/setup-git-hooks.sh
625
+
626
+ # Start development
627
+ npm run dev # Vite dev server (port 5173)
628
+ npm run storybook # Storybook (port 6006)
629
+ ```
630
+
631
+ ### Build
632
+
633
+ ```bash
634
+ npm run build # TypeScript check + Vite build
635
+ npm run build-storybook # Build static Storybook
636
+ ```
637
+
638
+ ### Linting
639
+
640
+ ```bash
641
+ npm run lint # ESLint
642
+ npm run format # Prettier
643
+ ```
644
+
645
+ ## 📁 Project Structure
646
+
647
+ ```
648
+ shadcn-glass-ui/
649
+ ├── src/
650
+ │ ├── components/
651
+ │ │ ├── glass/
652
+ │ │ │ ├── ui/ # Core UI components (17)
653
+ │ │ │ ├── atomic/ # Atomic components (6)
654
+ │ │ │ ├── composite/ # Composite components (13)
655
+ │ │ │ └── sections/ # Section components (7)
656
+ │ │ ├── blocks/ # Ready-to-use blocks (6)
657
+ │ │ ├── __visual__/ # Visual regression tests
658
+ │ │ ├── ComponentShowcase.tsx
659
+ │ │ └── DesktopShowcase.tsx
660
+ │ ├── lib/
661
+ │ │ ├── utils.ts # cn() utility
662
+ │ │ ├── theme-context.tsx # Theme provider
663
+ │ │ ├── themeStyles.ts # Theme definitions
664
+ │ │ └── variants/ # CVA variants
665
+ │ ├── styles/
666
+ │ │ ├── tokens/ # Design tokens
667
+ │ │ └── themes/ # Theme CSS
668
+ │ └── test/
669
+ │ ├── compliance/ # Compliance tests
670
+ │ └── utils/ # Test utilities
671
+ ├── .storybook/ # Storybook config
672
+ ├── docs/ # Documentation
673
+ ├── docs/design-system/UI_DESIGN.md # Design system spec
674
+ └── package.json
675
+ ```
676
+
677
+ ## 🤝 Contributing
678
+
679
+ We welcome contributions! Please see [CONTRIBUTING.md](../../CONTRIBUTING.md) for guidelines.
680
+
681
+ ### Quick Contribution Guide
682
+
683
+ 1. Fork the repository
684
+ 2. Create a feature branch: `git checkout -b feat/amazing-component`
685
+ 3. Make your changes following our code standards
686
+ 4. Run tests: `npm run test:compliance:run`
687
+ 5. Commit with conventional commits: `feat(ui): add DatePickerGlass component`
688
+ 6. Push and create a Pull Request
689
+
690
+ See [CONTRIBUTING.md](../../CONTRIBUTING.md) for detailed guidelines.
691
+
692
+ ## 📝 License
693
+
694
+ MIT License
695
+
696
+ This project is open source under the MIT license. See [LICENSE](../../LICENSE) for details.
697
+
698
+ ## 🙏 Credits
699
+
700
+ Built with amazing open source projects:
701
+
702
+ - [shadcn/ui](https://ui.shadcn.com/) - Design system foundation
703
+ - [Radix UI](https://www.radix-ui.com/) - Unstyled accessible primitives
704
+ - [Tailwind CSS](https://tailwindcss.com/) - Utility-first CSS framework
705
+ - [Vite](https://vitejs.dev/) - Next generation frontend tooling
706
+ - [Storybook](https://storybook.js.org/) - Component workshop
707
+ - [Vitest](https://vitest.dev/) - Blazing fast unit test framework
708
+
709
+ ## 🔗 Links
710
+
711
+ - **NPM Package**: [shadcn-glass-ui](https://www.npmjs.com/package/shadcn-glass-ui)
712
+ - **Documentation**: [Storybook](https://yhooi2.github.io/shadcn-glass-ui-library/)
713
+ - **GitHub**: [shadcn-glass-ui-library](https://github.com/Yhooi2/shadcn-glass-ui-library)
714
+ - **Issues**: [Report a bug](https://github.com/Yhooi2/shadcn-glass-ui-library/issues)
715
+ - **Discussions**: [Community](https://github.com/Yhooi2/shadcn-glass-ui-library/discussions)
716
+
717
+ ## ⭐ Star History
718
+
719
+ If you find this project useful, please consider giving it a star on GitHub!
720
+
721
+ [![Star History Chart](https://api.star-history.com/svg?repos=Yhooi2/shadcn-glass-ui-library&type=Date)](https://star-history.com/#Yhooi2/shadcn-glass-ui-library&Date)
722
+
723
+ ---
724
+
725
+ **Made with ❤️ and glassmorphism**