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