shadcn-glass-ui 1.0.10 → 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.
- package/CHANGELOG.md +259 -16
- package/README.md +248 -28
- package/context7.json +58 -0
- package/dist/cli/index.cjs +470 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.ts +18 -0
- package/dist/cli/index.js +469 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/components.cjs +4 -4
- package/dist/components.d.ts +153 -22
- package/dist/components.js +2 -2
- package/dist/hooks.cjs +2 -2
- package/dist/index.cjs +872 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -2390
- package/dist/index.js +844 -3
- package/dist/index.js.map +1 -1
- package/dist/r/ai-card-glass.json +5 -12
- package/dist/r/avatar-glass.json +5 -15
- package/dist/r/circular-metric-glass.json +5 -11
- package/dist/r/circular-progress-glass.json +5 -12
- package/dist/r/combobox-glass.json +5 -13
- package/dist/r/flag-alert-glass.json +5 -11
- package/dist/r/flags-section-glass.json +5 -12
- package/dist/r/insight-card-glass.json +17 -0
- package/dist/r/interactive-card.json +5 -12
- package/dist/r/language-bar-glass.json +5 -11
- package/dist/r/metric-card-glass.json +6 -13
- package/dist/r/metrics-grid-glass.json +5 -11
- package/dist/r/modal-glass.json +5 -15
- package/dist/r/popover-glass.json +1 -1
- package/dist/r/progress-glass.json +5 -13
- package/dist/r/registry.json +20 -2
- package/dist/r/segmented-control-glass.json +5 -11
- package/dist/r/sparkline-glass.json +17 -0
- package/dist/r/stepper-glass.json +33 -0
- package/dist/r/tabs-glass.json +4 -9
- package/dist/r/trust-score-card-glass.json +5 -12
- package/dist/r/year-card-glass.json +5 -13
- package/dist/shadcn-glass-ui.css +1 -1
- package/dist/{theme-context-XtasSxRT.cjs → theme-context-CVW50BKW.cjs} +2 -2
- package/dist/{theme-context-XtasSxRT.cjs.map → theme-context-CVW50BKW.cjs.map} +1 -1
- package/dist/themes.cjs +1 -1
- package/dist/trust-score-card-glass-BcZbul0P.js +26895 -0
- package/dist/trust-score-card-glass-BcZbul0P.js.map +1 -0
- package/dist/trust-score-card-glass-r3qM09Jp.cjs +27689 -0
- package/dist/trust-score-card-glass-r3qM09Jp.cjs.map +1 -0
- package/dist/{use-focus-BbpE2qGq.cjs → use-focus-ZE8ozmZE.cjs} +2 -2
- package/dist/{use-focus-BbpE2qGq.cjs.map → use-focus-ZE8ozmZE.cjs.map} +1 -1
- package/dist/{use-wallpaper-tint-CIqtoETa.cjs → use-wallpaper-tint-BuS80tbN.cjs} +2 -2
- package/dist/{use-wallpaper-tint-CIqtoETa.cjs.map → use-wallpaper-tint-BuS80tbN.cjs.map} +1 -1
- package/dist/{utils-CGCOTvxT.js → utils-CcyeqpKQ.js} +1 -1
- package/dist/{utils-CGCOTvxT.js.map → utils-CcyeqpKQ.js.map} +1 -1
- package/dist/{utils-CriE74ig.cjs → utils-DLXayspX.cjs} +2 -2
- package/dist/{utils-CriE74ig.cjs.map → utils-DLXayspX.cjs.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/docs/AI_IMPROVEMENTS_COMPLETE.md +574 -0
- package/docs/AI_USAGE.md +1328 -0
- package/docs/API_PATTERNS_COMPARISON.md +418 -0
- package/docs/BEST_PRACTICES.md +800 -0
- package/docs/COMPLIANCE_CHECKLIST.md +307 -0
- package/docs/COMPLIANCE_TESTING.md +436 -0
- package/docs/COMPONENTS_CATALOG.md +1076 -0
- package/docs/CSS_VARIABLES_AUDIT.md +306 -0
- package/docs/CSS_VARIABLES_REFACTORING_PLAN.md +330 -0
- package/docs/EXPORTS_MAP.json +875 -0
- package/docs/EXPORTS_STRUCTURE.md +729 -0
- package/docs/GETTING_STARTED.md +655 -0
- package/docs/METRIC_CARD_API_REDESIGN.md +354 -0
- package/docs/PRIMITIVE_MAPPING.md +404 -0
- package/docs/PUBLISHING.md +593 -0
- package/docs/REGISTRY_SUMMARY.md +96 -0
- package/docs/REGISTRY_USAGE.md +339 -0
- package/docs/SECURITY.md +117 -0
- package/docs/THEME_CREATION_GUIDE.md +455 -0
- package/docs/TOKEN_ARCHITECTURE.md +365 -0
- package/docs/announcements/v1.0.5-devto.md +363 -0
- package/docs/announcements/v1.0.5-reddit.md +115 -0
- package/docs/announcements/v1.0.5-twitter.md +70 -0
- package/docs/api/README.md +725 -0
- package/docs/api/functions/ThemeProvider.md +21 -0
- package/docs/api/functions/cn.md +27 -0
- package/docs/api/functions/getNextTheme.md +21 -0
- package/docs/api/functions/getThemeConfig.md +21 -0
- package/docs/api/functions/useFocus.md +53 -0
- package/docs/api/functions/useHover.md +47 -0
- package/docs/api/functions/useResponsive.md +31 -0
- package/docs/api/functions/useTheme.md +15 -0
- package/docs/api/functions/useWallpaperTint.md +36 -0
- package/docs/api/globals.md +139 -0
- package/docs/api/interfaces/AlertGlassProps.md +131 -0
- package/docs/api/interfaces/AvatarGlassProps.md +114 -0
- package/docs/api/interfaces/BadgeGlassProps.md +118 -0
- package/docs/api/interfaces/ButtonGlassProps.md +179 -0
- package/docs/api/interfaces/CheckboxGlassProps.md +125 -0
- package/docs/api/interfaces/DropdownGlassProps.md +123 -0
- package/docs/api/interfaces/DropdownItem.md +53 -0
- package/docs/api/interfaces/GlassCardProps.md +151 -0
- package/docs/api/interfaces/InputGlassProps.md +169 -0
- package/docs/api/interfaces/NotificationGlassProps.md +67 -0
- package/docs/api/interfaces/ProgressGlassProps.md +49 -0
- package/docs/api/interfaces/SkeletonGlassProps.md +41 -0
- package/docs/api/interfaces/SliderGlassProps.md +107 -0
- package/docs/api/interfaces/TabItem.md +25 -0
- package/docs/api/interfaces/ThemeConfig.md +25 -0
- package/docs/api/interfaces/ThemeContextValue.md +47 -0
- package/docs/api/interfaces/ToggleGlassProps.md +59 -0
- package/docs/api/interfaces/TooltipGlassProps.md +119 -0
- package/docs/api/type-aliases/AlertType.md +11 -0
- package/docs/api/type-aliases/AlertVariant.md +11 -0
- package/docs/api/type-aliases/AvatarSize.md +11 -0
- package/docs/api/type-aliases/AvatarStatus.md +13 -0
- package/docs/api/type-aliases/BadgeSize.md +11 -0
- package/docs/api/type-aliases/BadgeVariant.md +11 -0
- package/docs/api/type-aliases/ButtonGlassSize.md +11 -0
- package/docs/api/type-aliases/ButtonGlassVariant.md +11 -0
- package/docs/api/type-aliases/DropdownAlign.md +11 -0
- package/docs/api/type-aliases/GlowType.md +11 -0
- package/docs/api/type-aliases/InputGlassSize.md +11 -0
- package/docs/api/type-aliases/IntensityType.md +11 -0
- package/docs/api/type-aliases/ModalSize.md +11 -0
- package/docs/api/type-aliases/NotificationType.md +11 -0
- package/docs/api/type-aliases/PaddingType.md +11 -0
- package/docs/api/type-aliases/ProgressGradient.md +11 -0
- package/docs/api/type-aliases/ProgressSize.md +11 -0
- package/docs/api/type-aliases/SkeletonVariant.md +11 -0
- package/docs/api/type-aliases/Theme.md +11 -0
- package/docs/api/type-aliases/ToggleGlassSize.md +11 -0
- package/docs/api/type-aliases/TooltipPosition.md +11 -0
- package/docs/api/variables/AICardGlass.md +11 -0
- package/docs/api/variables/AlertGlass.md +11 -0
- package/docs/api/variables/AvatarGlass.md +11 -0
- package/docs/api/variables/BadgeGlass.md +11 -0
- package/docs/api/variables/BaseProgressGlass.md +11 -0
- package/docs/api/variables/ButtonGlass.md +11 -0
- package/docs/api/variables/CareerStatsGlass.md +11 -0
- package/docs/api/variables/CareerStatsHeaderGlass.md +11 -0
- package/docs/api/variables/CheckboxGlass.md +11 -0
- package/docs/api/variables/CircularMetricGlass.md +22 -0
- package/docs/api/variables/CircularProgressGlass.md +11 -0
- package/docs/api/variables/ComboBoxGlass.md +27 -0
- package/docs/api/variables/ContributionMetricsGlass.md +11 -0
- package/docs/api/variables/DropdownGlass.md +11 -0
- package/docs/api/variables/ExpandableHeaderGlass.md +11 -0
- package/docs/api/variables/FlagAlertGlass.md +11 -0
- package/docs/api/variables/FlagsSectionGlass.md +11 -0
- package/docs/api/variables/FormFieldWrapper.md +44 -0
- package/docs/api/variables/GlassCard.md +11 -0
- package/docs/api/variables/HeaderBrandingGlass.md +11 -0
- package/docs/api/variables/HeaderNavGlass.md +11 -0
- package/docs/api/variables/IconButtonGlass.md +11 -0
- package/docs/api/variables/InputGlass.md +11 -0
- package/docs/api/variables/InteractiveCard.md +45 -0
- package/docs/api/variables/LanguageBarGlass.md +11 -0
- package/docs/api/variables/MetricCardGlass.md +11 -0
- package/docs/api/variables/MetricsGridGlass.md +11 -0
- package/docs/api/variables/ModalGlass.md +72 -0
- package/docs/api/variables/NotificationGlass.md +11 -0
- package/docs/api/variables/PopoverGlass.md +11 -0
- package/docs/api/variables/ProfileAvatarGlass.md +11 -0
- package/docs/api/variables/ProfileHeaderGlass.md +11 -0
- package/docs/api/variables/ProgressGlass.md +11 -0
- package/docs/api/variables/ProjectsListGlass.md +11 -0
- package/docs/api/variables/RainbowProgressGlass.md +11 -0
- package/docs/api/variables/RepositoryCardGlass.md +11 -0
- package/docs/api/variables/RepositoryHeaderGlass.md +11 -0
- package/docs/api/variables/RepositoryMetadataGlass.md +11 -0
- package/docs/api/variables/SearchBoxGlass.md +11 -0
- package/docs/api/variables/SegmentedControlGlass.md +11 -0
- package/docs/api/variables/SkeletonGlass.md +11 -0
- package/docs/api/variables/SliderGlass.md +11 -0
- package/docs/api/variables/SortDropdownGlass.md +11 -0
- package/docs/api/variables/StatItemGlass.md +11 -0
- package/docs/api/variables/StatusIndicatorGlass.md +11 -0
- package/docs/api/variables/THEMES.md +11 -0
- package/docs/api/variables/THEME_CONFIG.md +11 -0
- package/docs/api/variables/TabsGlass.md +52 -0
- package/docs/api/variables/ThemeToggleGlass.md +11 -0
- package/docs/api/variables/ToggleGlass.md +11 -0
- package/docs/api/variables/TooltipGlass.md +11 -0
- package/docs/api/variables/TouchTarget.md +35 -0
- package/docs/api/variables/TrustScoreCardGlass.md +11 -0
- package/docs/api/variables/TrustScoreDisplayGlass.md +11 -0
- package/docs/api/variables/UserInfoGlass.md +11 -0
- package/docs/api/variables/UserStatsLineGlass.md +11 -0
- package/docs/api/variables/YearCardGlass.md +11 -0
- package/docs/api/variables/alertVariants.md +21 -0
- package/docs/api/variables/avatarSizes.md +21 -0
- package/docs/api/variables/badgeVariants.md +21 -0
- package/docs/api/variables/buttonGlassVariants.md +21 -0
- package/docs/api/variables/cardIntensity.md +21 -0
- package/docs/api/variables/dropdownAlign.md +21 -0
- package/docs/api/variables/inputVariants.md +21 -0
- package/docs/api/variables/modalSizes.md +21 -0
- package/docs/api/variables/notificationVariants.md +21 -0
- package/docs/api/variables/progressSizes.md +21 -0
- package/docs/api/variables/shadcnAlertVariants.md +21 -0
- package/docs/api/variables/shadcnBadgeVariants.md +21 -0
- package/docs/api/variables/shadcnButtonVariants.md +21 -0
- package/docs/api/variables/skeletonVariants.md +21 -0
- package/docs/api/variables/statusSizes.md +21 -0
- package/docs/api/variables/toggleSizes.md +21 -0
- package/docs/api/variables/tooltipPositions.md +21 -0
- package/docs/design-system/UI_DESIGN.md +628 -0
- package/docs/migration/CSS_VARIABLES_MIGRATION_2.0.md +325 -0
- package/docs/migration/modal-glass-compound-api.md +458 -0
- package/docs/migration/select-to-combobox.md +386 -0
- package/docs/migration/tabs-glass-compound-api.md +579 -0
- package/docs/technical/DEPENDENCIES.md +291 -0
- package/docs/visual-testing-guide.md +324 -0
- package/package.json +16 -3
- package/dist/trust-score-card-glass-CNcQveNY.cjs +0 -8231
- package/dist/trust-score-card-glass-CNcQveNY.cjs.map +0 -1
- package/dist/trust-score-card-glass-CowcDyxH.js +0 -7795
- package/dist/trust-score-card-glass-CowcDyxH.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,14 +2,238 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project
|
|
6
|
+
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [2.0.0] - 2025-12-11
|
|
9
|
+
|
|
10
|
+
### ✨ Added
|
|
11
|
+
|
|
12
|
+
**New Components:**
|
|
13
|
+
|
|
14
|
+
- **StepperGlass** - Compound stepper component for multi-step workflows
|
|
15
|
+
- 3 variants: `numbered` (default), `icon`, `dots`
|
|
16
|
+
- 2 orientations: `horizontal` (default), `vertical`
|
|
17
|
+
- 3 sizes: `sm`, `md`, `lg`
|
|
18
|
+
- Linear mode support for wizard patterns (locks future steps)
|
|
19
|
+
- Full accessibility: keyboard navigation, ARIA labels, focus management
|
|
20
|
+
- 14+ Storybook stories covering all variants and use cases
|
|
21
|
+
- Complete unit test coverage
|
|
22
|
+
|
|
23
|
+
**Token Architecture:**
|
|
24
|
+
|
|
25
|
+
- **3-Layer CSS Token System** implemented across all themes
|
|
26
|
+
- **Layer 1**: 207 primitive tokens in `src/styles/tokens/oklch-primitives.css`
|
|
27
|
+
- **Layer 2**: Semantic tokens (role-based) in each theme file
|
|
28
|
+
- **Layer 3**: Component tokens (component-specific)
|
|
29
|
+
- **Zero hardcoded OKLCH values** in all theme files:
|
|
30
|
+
- glass.css: 98 → 0 hardcoded values ✅
|
|
31
|
+
- light.css: 3 → 0 hardcoded values ✅
|
|
32
|
+
- aurora.css: 0 → 0 hardcoded values ✅
|
|
33
|
+
- **296+ CSS variables per theme** with complete semantic coverage
|
|
34
|
+
- **Theme creation time**: Reduced from 2-3 hours to 10-15 minutes (90% faster)
|
|
35
|
+
|
|
36
|
+
**Documentation:**
|
|
37
|
+
|
|
38
|
+
- [TOKEN_ARCHITECTURE.md](docs/TOKEN_ARCHITECTURE.md) (365 lines) - Complete 3-layer token system
|
|
39
|
+
guide
|
|
40
|
+
- [THEME_CREATION_GUIDE.md](docs/THEME_CREATION_GUIDE.md) (455 lines) - 15-minute theme creation
|
|
41
|
+
tutorial
|
|
42
|
+
- [CSS_VARIABLES_AUDIT.md](docs/CSS_VARIABLES_AUDIT.md) - Complete audit of 296+ variables
|
|
43
|
+
- [API_PATTERNS_COMPARISON.md](docs/API_PATTERNS_COMPARISON.md) - Component API consistency guide
|
|
44
|
+
- [PRIMITIVE_MAPPING.md](docs/PRIMITIVE_MAPPING.md) - Primitive token reference
|
|
45
|
+
- [CSS_VARIABLES_MIGRATION_2.0.md](docs/migration/CSS_VARIABLES_MIGRATION_2.0.md) - v1.x → v2.0.0
|
|
46
|
+
migration guide
|
|
47
|
+
|
|
48
|
+
**Custom Hooks (Exported):**
|
|
49
|
+
|
|
50
|
+
- `useFocus` - Focus state management with glow effects
|
|
51
|
+
- `useHover` - Hover detection for interactive components
|
|
52
|
+
- `useResponsive` - Responsive breakpoint detection
|
|
53
|
+
- `useWallpaperTint` - Wallpaper color tint detection
|
|
54
|
+
|
|
55
|
+
**Registry:**
|
|
56
|
+
|
|
57
|
+
- Added `stepper-glass` to shadcn registry
|
|
58
|
+
- Total registry items: 55 components
|
|
59
|
+
|
|
60
|
+
### 🔧 Internal
|
|
61
|
+
|
|
62
|
+
**CSS Variables Standardization:**
|
|
63
|
+
|
|
64
|
+
- Migrated all internal components to semantic CSS variable names
|
|
65
|
+
- Updated `CircularMetricGlass`, `MetricCardGlass`, `MetricsGridGlass` to use semantic tokens
|
|
66
|
+
- Updated `InteractiveCard` documentation with new variable names
|
|
67
|
+
- All unit tests updated to reflect semantic naming
|
|
68
|
+
- Complete migration to 3-layer token architecture
|
|
69
|
+
|
|
70
|
+
**Performance:**
|
|
71
|
+
|
|
72
|
+
- Theme creation time: 2-3 hours → 10-15 minutes (90% faster)
|
|
73
|
+
- CSS maintainability improved with semantic token layer
|
|
74
|
+
- Zero code duplication in color values
|
|
75
|
+
|
|
76
|
+
### ⚠️ BREAKING CHANGES
|
|
77
|
+
|
|
78
|
+
**CSS Variables REMOVED:**
|
|
79
|
+
|
|
80
|
+
The following CSS variable names have been **REMOVED** in v2.0.0:
|
|
81
|
+
|
|
82
|
+
| Removed (v1.x) | Replacement (v2.0+) | Semantic Meaning |
|
|
83
|
+
| -------------------- | ------------------------ | ---------------- |
|
|
84
|
+
| `--metric-emerald-*` | `--metric-success-*` | Success states |
|
|
85
|
+
| `--metric-amber-*` | `--metric-warning-*` | Warning states |
|
|
86
|
+
| `--metric-blue-*` | `--metric-default-*` | Neutral/default |
|
|
87
|
+
| `--metric-red-*` | `--metric-destructive-*` | Error/danger |
|
|
88
|
+
|
|
89
|
+
**Total affected variables:** 16 (4 color families × 4 properties: -bg, -text, -border, -glow)
|
|
90
|
+
|
|
91
|
+
**Migration:**
|
|
92
|
+
|
|
93
|
+
```css
|
|
94
|
+
/* ❌ REMOVED in v2.0.0 */
|
|
95
|
+
background: var(--metric-emerald-bg);
|
|
96
|
+
color: var(--metric-amber-text);
|
|
97
|
+
box-shadow: var(--metric-blue-glow);
|
|
98
|
+
|
|
99
|
+
/* ✅ Use in v2.0.0+ */
|
|
100
|
+
background: var(--metric-success-bg);
|
|
101
|
+
color: var(--metric-warning-text);
|
|
102
|
+
box-shadow: var(--metric-default-glow);
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Why?**
|
|
106
|
+
|
|
107
|
+
- Aligns with shadcn/ui naming conventions
|
|
108
|
+
- Improves semantic meaning (color names → semantic roles)
|
|
109
|
+
- Consistency with component variant props (AlertGlass, BadgeGlass, ButtonGlass)
|
|
110
|
+
- Part of 3-layer token architecture migration
|
|
111
|
+
|
|
112
|
+
**Migration Guide:**
|
|
113
|
+
[docs/migration/CSS_VARIABLES_MIGRATION_2.0.md](docs/migration/CSS_VARIABLES_MIGRATION_2.0.md)
|
|
114
|
+
|
|
115
|
+
**Automated Migration Script:**
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# macOS/Linux
|
|
119
|
+
find src/ -type f \( -name "*.tsx" -o -name "*.css" \) -exec sed -i '' \
|
|
120
|
+
-e 's/--metric-emerald-/--metric-success-/g' \
|
|
121
|
+
-e 's/--metric-amber-/--metric-warning-/g' \
|
|
122
|
+
-e 's/--metric-blue-/--metric-default-/g' \
|
|
123
|
+
-e 's/--metric-red-/--metric-destructive-/g' \
|
|
124
|
+
{} +
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### 📊 Statistics
|
|
128
|
+
|
|
129
|
+
- **Components**: 57 → **58** (added StepperGlass)
|
|
130
|
+
- **Tests**: 1,355+ → **~1,570+**
|
|
131
|
+
- Visual: 582 → **802** (+220 screenshots from StepperGlass variants)
|
|
132
|
+
- Compliance: ~650
|
|
133
|
+
- Unit: ~125
|
|
134
|
+
- **Primitive Tokens**: **207** OKLCH color primitives
|
|
135
|
+
- **CSS Variables**: **296+** per theme (glass, light, aurora)
|
|
136
|
+
- **Hardcoded OKLCH**: **0** (was 98 in glass.css)
|
|
137
|
+
- **Themes**: 3 (glass, light, aurora)
|
|
138
|
+
- **Registry Items**: **55**
|
|
139
|
+
- **Exported Hooks**: **4**
|
|
140
|
+
|
|
141
|
+
### 📚 Related Documentation
|
|
142
|
+
|
|
143
|
+
- [TOKEN_ARCHITECTURE.md](docs/TOKEN_ARCHITECTURE.md) - Complete token system documentation
|
|
144
|
+
- [THEME_CREATION_GUIDE.md](docs/THEME_CREATION_GUIDE.md) - Create themes in 15 minutes
|
|
145
|
+
- [CSS_VARIABLES_MIGRATION_2.0.md](docs/migration/CSS_VARIABLES_MIGRATION_2.0.md) - Migration guide
|
|
146
|
+
- [CSS_VARIABLES_AUDIT.md](docs/CSS_VARIABLES_AUDIT.md) - Full variable audit
|
|
147
|
+
|
|
148
|
+
## [1.1.0] - 2025-12-10
|
|
149
|
+
|
|
150
|
+
### ✨ Added
|
|
151
|
+
|
|
152
|
+
**New Components:**
|
|
153
|
+
|
|
154
|
+
- **SparklineGlass**: Compact bar chart for time series visualization
|
|
155
|
+
- Support for height variants (sm/md/lg) and gap spacing (none/sm/md)
|
|
156
|
+
- Highlight maximum value with custom colors
|
|
157
|
+
- Animated grow effect with staggered delays
|
|
158
|
+
- Full accessibility with role="img" and descriptive aria-labels
|
|
159
|
+
- 10 Storybook stories and comprehensive unit tests
|
|
160
|
+
|
|
161
|
+
- **InsightCardGlass**: Insight display component with 7 semantic variants
|
|
162
|
+
- Variants: default, tip, highlight, warning, stat, growth, decline
|
|
163
|
+
- Inline and card display modes
|
|
164
|
+
- Clickable with full keyboard support (Enter/Space keys)
|
|
165
|
+
- Animated fade-in effect
|
|
166
|
+
- Full accessibility support
|
|
167
|
+
|
|
168
|
+
**Extended Components:**
|
|
169
|
+
|
|
170
|
+
- **YearCardGlass**:
|
|
171
|
+
- Added optional `sparklineData` for monthly activity trends
|
|
172
|
+
- Added optional `insights` array for analytical insight cards
|
|
173
|
+
- Support for all 7 InsightCardGlass variants
|
|
174
|
+
- Full backward compatibility maintained
|
|
175
|
+
- 8 new Storybook stories, 30 unit tests
|
|
176
|
+
|
|
177
|
+
- **MetricCardGlass**:
|
|
178
|
+
- Added optional `sparklineData` for metric trend visualization
|
|
179
|
+
- Added `showSparkline` flag for toggling sparkline display
|
|
180
|
+
- Automatic positioning of progress bar and sparkline
|
|
181
|
+
- Full backward compatibility maintained
|
|
182
|
+
- 11 new Storybook stories, 33 unit tests
|
|
183
|
+
|
|
184
|
+
**AI Compatibility:**
|
|
185
|
+
|
|
186
|
+
- Included `docs/` folder in npm package for AI assistants
|
|
187
|
+
- Added `docs/EXPORTS_MAP.json` - Machine-readable component registry
|
|
188
|
+
- Added `docs/AI_USAGE.md` - Quick reference guide for AI tools
|
|
189
|
+
- Enhanced TypeDoc comments with `@example` and `@accessibility` sections
|
|
190
|
+
- Added `context7.json` for Context7 MCP integration
|
|
191
|
+
- Added CLI commands for component exploration:
|
|
192
|
+
- `npx shadcn-glass-ui info <name>` - Show component details (fuzzy search)
|
|
193
|
+
- `npx shadcn-glass-ui list` - List all components
|
|
194
|
+
- `npx shadcn-glass-ui list --category=core` - Filter by category
|
|
195
|
+
|
|
196
|
+
**Infrastructure:**
|
|
197
|
+
|
|
198
|
+
- Installed `framer-motion` dependency for animations
|
|
199
|
+
- Added CVA variants for SparklineGlass and InsightCardGlass
|
|
200
|
+
- Added CSS animations: `sparkline-grow` and `insight-fade-in`
|
|
201
|
+
- Added CSS variables for SparklineGlass theming
|
|
202
|
+
- Created visual regression tests for new components
|
|
203
|
+
|
|
204
|
+
### 📊 Testing
|
|
205
|
+
|
|
206
|
+
- **Total new tests**: 83 unit tests + 5 visual regression tests
|
|
207
|
+
- **Pass rate**: 100% (all tests passing)
|
|
208
|
+
- **Coverage**: SparklineGlass (10 tests), InsightCardGlass (10 tests), YearCardGlass (+30 tests),
|
|
209
|
+
MetricCardGlass (+33 tests)
|
|
210
|
+
|
|
211
|
+
### 🔄 Changed
|
|
212
|
+
|
|
213
|
+
- Updated component count: 55+ components (was 53)
|
|
214
|
+
- Updated `package.json` to include `docs/` in published package
|
|
215
|
+
- Enhanced registry with new component entries
|
|
216
|
+
|
|
217
|
+
### 🚀 Breaking Changes
|
|
218
|
+
|
|
219
|
+
**None** - This release maintains full backward compatibility with v1.0.x
|
|
220
|
+
|
|
221
|
+
## [1.0.9] - 2025-12-06
|
|
222
|
+
|
|
223
|
+
### 📚 AIDocumentation
|
|
224
|
+
|
|
225
|
+
- Added improved AI-focused documentation to help LLMs understand and work with the codebase more
|
|
226
|
+
effectively
|
|
227
|
+
- Added guidance for AI assistants, workflows, and common automation patterns
|
|
228
|
+
- Enhanced internal docs to optimize reasoning and code navigation for AI tools
|
|
229
|
+
- Added improved storybook stories
|
|
7
230
|
|
|
8
231
|
## [1.0.9] - 2025-12-06
|
|
9
232
|
|
|
10
233
|
### 🐛 Bug Fixes
|
|
11
234
|
|
|
12
235
|
**CSS Import Order:**
|
|
236
|
+
|
|
13
237
|
- Fixed PostCSS warnings by moving all `@import` directives before CSS rules
|
|
14
238
|
- All imports now precede style declarations (per CSS spec requirement)
|
|
15
239
|
- Build process now runs completely clean without warnings
|
|
@@ -21,6 +245,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
21
245
|
### 📚 Documentation
|
|
22
246
|
|
|
23
247
|
**Major CLAUDE.md Restructure - AI-Friendly Documentation:**
|
|
248
|
+
|
|
24
249
|
- Added **Quick Commands Cheatsheet** at the top for instant reference
|
|
25
250
|
- Added **Common Tasks for AI** section with step-by-step workflows:
|
|
26
251
|
- Adding new Glass components
|
|
@@ -66,11 +291,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
66
291
|
### 🔄 Changed
|
|
67
292
|
|
|
68
293
|
**Package Name:**
|
|
294
|
+
|
|
69
295
|
- Renamed package from `@yhooi2/shadcn-glass-ui` to `shadcn-glass-ui`
|
|
70
296
|
- Simpler installation: `npm install shadcn-glass-ui`
|
|
71
|
-
- **Migration:** Update your `package.json` dependencies from `@yhooi2/shadcn-glass-ui` to
|
|
297
|
+
- **Migration:** Update your `package.json` dependencies from `@yhooi2/shadcn-glass-ui` to
|
|
298
|
+
`shadcn-glass-ui`
|
|
72
299
|
|
|
73
300
|
**Publishing:**
|
|
301
|
+
|
|
74
302
|
- Now publishing only to npm Registry (removed GitHub Packages)
|
|
75
303
|
- Simplified installation - no authentication required
|
|
76
304
|
- Single source of truth for package distribution
|
|
@@ -101,6 +329,7 @@ npm install shadcn-glass-ui
|
|
|
101
329
|
```
|
|
102
330
|
|
|
103
331
|
Update your imports (no changes needed - imports remain the same):
|
|
332
|
+
|
|
104
333
|
```tsx
|
|
105
334
|
// Still works the same way
|
|
106
335
|
import { ButtonGlass, InputGlass } from 'shadcn-glass-ui';
|
|
@@ -111,11 +340,14 @@ import { ButtonGlass, InputGlass } from 'shadcn-glass-ui';
|
|
|
111
340
|
### 🔄 Changed
|
|
112
341
|
|
|
113
342
|
**Package Name:**
|
|
343
|
+
|
|
114
344
|
- Renamed package from `@yhooi2/shadcn-glass-ui` to `shadcn-glass-ui`
|
|
115
345
|
- Simpler installation: `npm install shadcn-glass-ui`
|
|
116
|
-
- **Migration:** Update your `package.json` dependencies from `@yhooi2/shadcn-glass-ui` to
|
|
346
|
+
- **Migration:** Update your `package.json` dependencies from `@yhooi2/shadcn-glass-ui` to
|
|
347
|
+
`shadcn-glass-ui`
|
|
117
348
|
|
|
118
349
|
**Publishing:**
|
|
350
|
+
|
|
119
351
|
- Now publishing only to npm Registry (removed GitHub Packages)
|
|
120
352
|
- Simplified installation - no authentication required
|
|
121
353
|
- Single source of truth for package distribution
|
|
@@ -146,6 +378,7 @@ npm install shadcn-glass-ui
|
|
|
146
378
|
```
|
|
147
379
|
|
|
148
380
|
Update your imports (no changes needed - imports remain the same):
|
|
381
|
+
|
|
149
382
|
```tsx
|
|
150
383
|
// Still works the same way
|
|
151
384
|
import { ButtonGlass, InputGlass } from 'shadcn-glass-ui';
|
|
@@ -156,6 +389,7 @@ import { ButtonGlass, InputGlass } from 'shadcn-glass-ui';
|
|
|
156
389
|
### ✨ Added
|
|
157
390
|
|
|
158
391
|
**Glass Variants System:**
|
|
392
|
+
|
|
159
393
|
- New comprehensive glass effect variants: `crystal`, `frosted`, `fluted`, `glass`
|
|
160
394
|
- Color tint modifiers: `purple`, `cyan`, `amber`, `emerald`, `rose`
|
|
161
395
|
- Intensity modifiers: `subtle`, `medium`, `strong`
|
|
@@ -163,10 +397,12 @@ import { ButtonGlass, InputGlass } from 'shadcn-glass-ui';
|
|
|
163
397
|
- New CSS utility classes in `primitives.css` for all variants
|
|
164
398
|
|
|
165
399
|
**Components:**
|
|
400
|
+
|
|
166
401
|
- `GlassVariantsDemo` - Interactive showcase of all 72 glass variant combinations
|
|
167
402
|
- Updated `GlassCard.stories.tsx` with variant demonstrations
|
|
168
403
|
|
|
169
404
|
**Publishing:**
|
|
405
|
+
|
|
170
406
|
- Dual registry support: npm Registry + GitHub Packages
|
|
171
407
|
- Automated publishing to both registries on release
|
|
172
408
|
- Enhanced GitHub Actions workflow with registry validation
|
|
@@ -239,7 +475,8 @@ import { ButtonGlass, InputGlass } from 'shadcn-glass-ui';
|
|
|
239
475
|
|
|
240
476
|
- **ModalGlass:** Legacy props API completely removed
|
|
241
477
|
- **Old API:** `isOpen`, `onClose`, `title` props
|
|
242
|
-
- **New API:** Compound API only (`ModalGlass.Root`, `.Overlay`, `.Content`, `.Header`, `.Body`,
|
|
478
|
+
- **New API:** Compound API only (`ModalGlass.Root`, `.Overlay`, `.Content`, `.Header`, `.Body`,
|
|
479
|
+
`.Footer`, `.Title`, `.Description`, `.Close`)
|
|
243
480
|
- **Migration:** See [ModalGlass Compound API guide](docs/migration/modal-glass-compound-api.md)
|
|
244
481
|
- **Key Changes:**
|
|
245
482
|
- `isOpen` → `open` (on ModalGlass.Root)
|
|
@@ -291,7 +528,8 @@ import { ButtonGlass, InputGlass } from 'shadcn-glass-ui';
|
|
|
291
528
|
|
|
292
529
|
### ⚠️ BREAKING CHANGES
|
|
293
530
|
|
|
294
|
-
- **ButtonGlass:** Removed `danger` variant in favor of `destructive` for shadcn/ui API
|
|
531
|
+
- **ButtonGlass:** Removed `danger` variant in favor of `destructive` for shadcn/ui API
|
|
532
|
+
compatibility
|
|
295
533
|
- **Migration:** Replace `variant="danger"` with `variant="destructive"`
|
|
296
534
|
- **Affected:** 3 files in library, user code may require updates
|
|
297
535
|
- **Rationale:** Aligns with shadcn/ui design system standards
|
|
@@ -312,7 +550,8 @@ import { ButtonGlass, InputGlass } from 'shadcn-glass-ui';
|
|
|
312
550
|
|
|
313
551
|
### 🔧 Refactored
|
|
314
552
|
|
|
315
|
-
- **AlertGlass:** Migrated from deprecated `type` prop to `variant` prop (57 instances across
|
|
553
|
+
- **AlertGlass:** Migrated from deprecated `type` prop to `variant` prop (57 instances across
|
|
554
|
+
codebase)
|
|
316
555
|
- **NotificationGlass:** Migrated from deprecated `type` prop to `variant` prop (8 source files)
|
|
317
556
|
- Updated all visual regression tests to use new `variant` API (582 tests passing)
|
|
318
557
|
- Updated all unit tests to use new `variant` API (32 NotificationGlass tests, 32 AlertGlass tests)
|
|
@@ -398,8 +637,10 @@ If you're using this library and have code that breaks after updating, here's ho
|
|
|
398
637
|
|
|
399
638
|
All changes align the library with shadcn/ui design system standards:
|
|
400
639
|
|
|
401
|
-
1. **Consistent Naming**: `variant` is the standard prop name across shadcn/ui components (Button,
|
|
402
|
-
|
|
640
|
+
1. **Consistent Naming**: `variant` is the standard prop name across shadcn/ui components (Button,
|
|
641
|
+
Badge, Alert, etc.)
|
|
642
|
+
2. **Semantic Correctness**: `variant` describes visual style variations, while `type` describes
|
|
643
|
+
data types
|
|
403
644
|
3. **Better DX**: Consistent APIs across all Glass components improve developer experience
|
|
404
645
|
4. **Design System Compliance**: Makes the library easier to integrate with shadcn/ui projects
|
|
405
646
|
|
|
@@ -415,13 +656,13 @@ All changes align the library with shadcn/ui design system standards:
|
|
|
415
656
|
|
|
416
657
|
### Changes Summary
|
|
417
658
|
|
|
418
|
-
| Category | Count
|
|
419
|
-
|
|
659
|
+
| Category | Count |
|
|
660
|
+
| ------------------ | ---------------------------------------------- |
|
|
420
661
|
| Breaking changes | 3 (ButtonGlass, AlertGlass, NotificationGlass) |
|
|
421
|
-
| Files modified | 20+
|
|
422
|
-
| Empty dirs removed | 9
|
|
423
|
-
| Tests updated | 582 visual + 64 unit
|
|
424
|
-
| Documentation | 5 new files (1,967 lines)
|
|
662
|
+
| Files modified | 20+ |
|
|
663
|
+
| Empty dirs removed | 9 |
|
|
664
|
+
| Tests updated | 582 visual + 64 unit |
|
|
665
|
+
| Documentation | 5 new files (1,967 lines) |
|
|
425
666
|
|
|
426
667
|
### Quality Metrics
|
|
427
668
|
|
|
@@ -448,4 +689,6 @@ All changes align the library with shadcn/ui design system standards:
|
|
|
448
689
|
|
|
449
690
|
---
|
|
450
691
|
|
|
451
|
-
**Note**: This changelog documents the breaking changes and migrations performed during the legacy
|
|
692
|
+
**Note**: This changelog documents the breaking changes and migrations performed during the legacy
|
|
693
|
+
code cleanup initiative. For future releases, this file will continue to track all notable changes
|
|
694
|
+
to the project.
|