shadcn-glass-ui 2.1.4 → 2.2.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 +51 -0
- package/README.md +13 -13
- package/context7.json +30 -4
- package/dist/cli/index.cjs +1 -1
- package/dist/components.cjs +4 -4
- package/dist/components.d.ts +18 -4
- package/dist/components.js +1 -1
- package/dist/hooks.cjs +2 -2
- package/dist/index.cjs +2320 -997
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2284 -996
- package/dist/index.js.map +1 -1
- package/dist/shadcn-glass-ui.css +1 -1
- package/dist/{theme-context-Y98bGvcm.cjs → theme-context-D_cb9KzA.cjs} +2 -2
- package/dist/{theme-context-Y98bGvcm.cjs.map → theme-context-D_cb9KzA.cjs.map} +1 -1
- package/dist/themes.cjs +1 -1
- package/dist/{trust-score-card-glass-2rjz00d_.cjs → trust-score-card-glass-CTsEVRD3.cjs} +178 -35
- package/dist/{trust-score-card-glass-2rjz00d_.cjs.map → trust-score-card-glass-CTsEVRD3.cjs.map} +1 -1
- package/dist/{trust-score-card-glass-zjkx4OC2.js → trust-score-card-glass-CUStm4o_.js} +86 -15
- package/dist/{trust-score-card-glass-zjkx4OC2.js.map → trust-score-card-glass-CUStm4o_.js.map} +1 -1
- package/dist/{use-focus-DbpBEuee.cjs → use-focus--Hw2nevi.cjs} +2 -2
- package/dist/{use-focus-DbpBEuee.cjs.map → use-focus--Hw2nevi.cjs.map} +1 -1
- package/dist/{use-wallpaper-tint-DbawS9zh.cjs → use-wallpaper-tint-B4oMQsXQ.cjs} +2 -2
- package/dist/{use-wallpaper-tint-DbawS9zh.cjs.map → use-wallpaper-tint-B4oMQsXQ.cjs.map} +1 -1
- package/dist/{utils-XlyXIhuP.cjs → utils-BqeJ4aco.cjs} +2 -2
- package/dist/{utils-XlyXIhuP.cjs.map → utils-BqeJ4aco.cjs.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/docs/AI_USAGE.md +5 -5
- package/docs/BEST_PRACTICES.md +1 -1
- package/docs/COMPONENTS_CATALOG.md +215 -0
- package/docs/EXPORTS_MAP.json +140 -14
- package/docs/EXPORTS_STRUCTURE.md +43 -9
- package/docs/GETTING_STARTED.md +1 -1
- package/docs/REGISTRY_USAGE.md +1 -1
- package/docs/api/README.md +1 -1
- package/docs/components/SIDEBAR_GLASS.md +555 -0
- package/docs/components/SPLIT_LAYOUT_GLASS.md +304 -365
- package/package.json +6 -3
package/docs/EXPORTS_MAP.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"title": "shadcn-glass-ui Exports Map",
|
|
4
4
|
"description": "Machine-readable export structure for AI assistants and automated tools",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.8",
|
|
6
6
|
"library": "shadcn-glass-ui",
|
|
7
7
|
"repository": "https://github.com/yhooi2/shadcn-glass-ui",
|
|
8
|
-
"lastUpdated": "2025-12-
|
|
8
|
+
"lastUpdated": "2025-12-17",
|
|
9
9
|
|
|
10
10
|
"components": {
|
|
11
11
|
"primitives": {
|
|
@@ -76,7 +76,15 @@
|
|
|
76
76
|
"type": "component",
|
|
77
77
|
"description": "Status badge with multiple variants",
|
|
78
78
|
"props": "BadgeGlassProps",
|
|
79
|
-
"variants": [
|
|
79
|
+
"variants": [
|
|
80
|
+
"default",
|
|
81
|
+
"secondary",
|
|
82
|
+
"destructive",
|
|
83
|
+
"outline",
|
|
84
|
+
"success",
|
|
85
|
+
"warning",
|
|
86
|
+
"info"
|
|
87
|
+
],
|
|
80
88
|
"category": "display",
|
|
81
89
|
"keywords": ["badge", "tag", "label", "status"],
|
|
82
90
|
"shadcnCompatible": true
|
|
@@ -169,7 +177,18 @@
|
|
|
169
177
|
"keywords": ["modal", "dialog", "overlay", "popup"],
|
|
170
178
|
"shadcnCompatible": true,
|
|
171
179
|
"compoundAPI": true,
|
|
172
|
-
"subComponents": [
|
|
180
|
+
"subComponents": [
|
|
181
|
+
"Root",
|
|
182
|
+
"Trigger",
|
|
183
|
+
"Overlay",
|
|
184
|
+
"Content",
|
|
185
|
+
"Header",
|
|
186
|
+
"Title",
|
|
187
|
+
"Description",
|
|
188
|
+
"Body",
|
|
189
|
+
"Footer",
|
|
190
|
+
"Close"
|
|
191
|
+
]
|
|
173
192
|
},
|
|
174
193
|
{
|
|
175
194
|
"name": "NotificationGlass",
|
|
@@ -245,6 +264,50 @@
|
|
|
245
264
|
"category": "overlay",
|
|
246
265
|
"keywords": ["tooltip", "hint", "help", "overlay"],
|
|
247
266
|
"shadcnCompatible": true
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "SidebarGlass",
|
|
270
|
+
"path": "components/glass/ui/sidebar-glass",
|
|
271
|
+
"type": "component",
|
|
272
|
+
"description": "Collapsible sidebar navigation with glassmorphism styling (100% shadcn/ui compatible)",
|
|
273
|
+
"props": "SidebarGlassProps",
|
|
274
|
+
"category": "navigation",
|
|
275
|
+
"keywords": [
|
|
276
|
+
"sidebar",
|
|
277
|
+
"navigation",
|
|
278
|
+
"drawer",
|
|
279
|
+
"collapsible",
|
|
280
|
+
"menu",
|
|
281
|
+
"compound",
|
|
282
|
+
"rail"
|
|
283
|
+
],
|
|
284
|
+
"shadcnCompatible": true,
|
|
285
|
+
"compoundAPI": true,
|
|
286
|
+
"subComponents": [
|
|
287
|
+
"Provider",
|
|
288
|
+
"Root",
|
|
289
|
+
"Header",
|
|
290
|
+
"Content",
|
|
291
|
+
"Footer",
|
|
292
|
+
"Rail",
|
|
293
|
+
"Inset",
|
|
294
|
+
"Trigger",
|
|
295
|
+
"Separator",
|
|
296
|
+
"Group",
|
|
297
|
+
"GroupLabel",
|
|
298
|
+
"GroupAction",
|
|
299
|
+
"GroupContent",
|
|
300
|
+
"Menu",
|
|
301
|
+
"MenuItem",
|
|
302
|
+
"MenuButton",
|
|
303
|
+
"MenuAction",
|
|
304
|
+
"MenuBadge",
|
|
305
|
+
"MenuSkeleton",
|
|
306
|
+
"MenuSub",
|
|
307
|
+
"MenuSubItem",
|
|
308
|
+
"MenuSubButton"
|
|
309
|
+
],
|
|
310
|
+
"contains": ["ModalGlass", "GlassCard"]
|
|
248
311
|
}
|
|
249
312
|
]
|
|
250
313
|
},
|
|
@@ -525,6 +588,40 @@
|
|
|
525
588
|
"category": "display",
|
|
526
589
|
"keywords": ["year", "card", "timeline", "career"],
|
|
527
590
|
"contains": ["GlassCard", "StatItemGlass"]
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "SplitLayoutGlass",
|
|
594
|
+
"path": "components/glass/composite/split-layout-glass",
|
|
595
|
+
"type": "component",
|
|
596
|
+
"description": "Two-column responsive layout with sticky scroll behavior and glassmorphism styling",
|
|
597
|
+
"props": "SplitLayoutGlassProps",
|
|
598
|
+
"category": "layout",
|
|
599
|
+
"keywords": [
|
|
600
|
+
"layout",
|
|
601
|
+
"split",
|
|
602
|
+
"sidebar",
|
|
603
|
+
"responsive",
|
|
604
|
+
"sticky",
|
|
605
|
+
"two-column",
|
|
606
|
+
"master-detail",
|
|
607
|
+
"compound"
|
|
608
|
+
],
|
|
609
|
+
"compoundAPI": true,
|
|
610
|
+
"subComponents": [
|
|
611
|
+
"Provider",
|
|
612
|
+
"Root",
|
|
613
|
+
"Sidebar",
|
|
614
|
+
"SidebarHeader",
|
|
615
|
+
"SidebarContent",
|
|
616
|
+
"SidebarFooter",
|
|
617
|
+
"Main",
|
|
618
|
+
"MainHeader",
|
|
619
|
+
"MainContent",
|
|
620
|
+
"MainFooter",
|
|
621
|
+
"Trigger",
|
|
622
|
+
"Accordion"
|
|
623
|
+
],
|
|
624
|
+
"contains": ["GlassCard", "ScrollArea"]
|
|
528
625
|
}
|
|
529
626
|
]
|
|
530
627
|
},
|
|
@@ -709,6 +806,24 @@
|
|
|
709
806
|
"returns": "{ isDark: boolean; tintColor: string }",
|
|
710
807
|
"category": "theming",
|
|
711
808
|
"keywords": ["wallpaper", "tint", "color", "macos"]
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"name": "useSplitLayout",
|
|
812
|
+
"path": "components/glass/composite/split-layout-glass",
|
|
813
|
+
"type": "hook",
|
|
814
|
+
"description": "Hook for accessing SplitLayoutGlass context (selectedKey, isOpen, isMobile, toggle, state)",
|
|
815
|
+
"returns": "SplitLayoutContextValue",
|
|
816
|
+
"category": "layout",
|
|
817
|
+
"keywords": ["split", "layout", "sidebar", "context", "state"]
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"name": "useSidebar",
|
|
821
|
+
"path": "components/glass/ui/sidebar-glass",
|
|
822
|
+
"type": "hook",
|
|
823
|
+
"description": "Hook for accessing SidebarGlass context (100% shadcn/ui compatible)",
|
|
824
|
+
"returns": "SidebarContextValue",
|
|
825
|
+
"category": "navigation",
|
|
826
|
+
"keywords": ["sidebar", "context", "state", "collapsible"]
|
|
712
827
|
}
|
|
713
828
|
]
|
|
714
829
|
},
|
|
@@ -737,7 +852,15 @@
|
|
|
737
852
|
],
|
|
738
853
|
"variants": {
|
|
739
854
|
"AlertType": ["default", "destructive", "success", "warning"],
|
|
740
|
-
"BadgeVariant": [
|
|
855
|
+
"BadgeVariant": [
|
|
856
|
+
"default",
|
|
857
|
+
"secondary",
|
|
858
|
+
"destructive",
|
|
859
|
+
"outline",
|
|
860
|
+
"success",
|
|
861
|
+
"warning",
|
|
862
|
+
"info"
|
|
863
|
+
],
|
|
741
864
|
"NotificationType": ["default", "destructive", "success", "warning"],
|
|
742
865
|
"SkeletonVariant": ["text", "circle", "rectangle"],
|
|
743
866
|
"TooltipPosition": ["top", "bottom", "left", "right"],
|
|
@@ -779,21 +902,21 @@
|
|
|
779
902
|
},
|
|
780
903
|
|
|
781
904
|
"statistics": {
|
|
782
|
-
"totalComponents":
|
|
905
|
+
"totalComponents": 57,
|
|
783
906
|
"byLevel": {
|
|
784
907
|
"primitives": 3,
|
|
785
|
-
"core":
|
|
908
|
+
"core": 19,
|
|
786
909
|
"atomic": 6,
|
|
787
910
|
"specialized": 8,
|
|
788
|
-
"composite":
|
|
911
|
+
"composite": 14,
|
|
789
912
|
"sections": 7
|
|
790
913
|
},
|
|
791
|
-
"totalTypes":
|
|
792
|
-
"totalHooks":
|
|
914
|
+
"totalTypes": 47,
|
|
915
|
+
"totalHooks": 6,
|
|
793
916
|
"totalUtilities": 1,
|
|
794
|
-
"shadcnCompatible":
|
|
917
|
+
"shadcnCompatible": 19,
|
|
795
918
|
"supportsAsChild": 3,
|
|
796
|
-
"compoundAPI":
|
|
919
|
+
"compoundAPI": 4
|
|
797
920
|
},
|
|
798
921
|
|
|
799
922
|
"usage": {
|
|
@@ -814,7 +937,9 @@
|
|
|
814
937
|
"MetricsGridGlass",
|
|
815
938
|
"ProgressGlass",
|
|
816
939
|
"BadgeGlass",
|
|
817
|
-
"HeaderNavGlass"
|
|
940
|
+
"HeaderNavGlass",
|
|
941
|
+
"SidebarGlass",
|
|
942
|
+
"SplitLayoutGlass"
|
|
818
943
|
],
|
|
819
944
|
"forms": [
|
|
820
945
|
"InputGlass",
|
|
@@ -833,7 +958,8 @@
|
|
|
833
958
|
"RepositoryCardGlass",
|
|
834
959
|
"TrustScoreCardGlass",
|
|
835
960
|
"LanguageBarGlass"
|
|
836
|
-
]
|
|
961
|
+
],
|
|
962
|
+
"layouts": ["SplitLayoutGlass", "SidebarGlass", "GlassCard", "ModalGlass", "TabsGlass"]
|
|
837
963
|
}
|
|
838
964
|
},
|
|
839
965
|
|
|
@@ -101,8 +101,9 @@ Level 5: Sections (7) → Complete page sections
|
|
|
101
101
|
└──────────────────┬──────────────────────────┘
|
|
102
102
|
│
|
|
103
103
|
┌──────────────────▼──────────────────────────┐
|
|
104
|
-
│ LEVEL 4: COMPOSITE (
|
|
105
|
-
│ MetricCardGlass, AICardGlass,
|
|
104
|
+
│ LEVEL 4: COMPOSITE (14 components) │
|
|
105
|
+
│ MetricCardGlass, AICardGlass, │
|
|
106
|
+
│ SplitLayoutGlass, etc. │
|
|
106
107
|
└──────────────────┬──────────────────────────┘
|
|
107
108
|
│
|
|
108
109
|
┌──────────────────▼──────────────────────────┐
|
|
@@ -116,8 +117,9 @@ Level 5: Sections (7) → Complete page sections
|
|
|
116
117
|
└──────────────────┬──────────────────────────┘
|
|
117
118
|
│
|
|
118
119
|
┌──────────────────▼──────────────────────────┐
|
|
119
|
-
│ LEVEL 1: CORE UI (
|
|
120
|
-
│ ButtonGlass, InputGlass, ModalGlass,
|
|
120
|
+
│ LEVEL 1: CORE UI (19 components) │
|
|
121
|
+
│ ButtonGlass, InputGlass, ModalGlass, │
|
|
122
|
+
│ SidebarGlass, etc. │
|
|
121
123
|
└──────────────────┬──────────────────────────┘
|
|
122
124
|
│
|
|
123
125
|
┌──────────────────▼──────────────────────────┐
|
|
@@ -193,6 +195,12 @@ Primary building blocks for application interfaces. These are the most commonly
|
|
|
193
195
|
| `SkeletonGlass` | Loading skeleton | `variant`, `width`, `height` | text, circle, rectangle |
|
|
194
196
|
| `TooltipGlass` | Tooltip overlay | `content`, `position`, `children` | top, bottom, left, right |
|
|
195
197
|
|
|
198
|
+
#### Navigation (1)
|
|
199
|
+
|
|
200
|
+
| Export | Description | Key Props | shadcn/ui |
|
|
201
|
+
| -------------- | ------------------------------ | ---------------------------------------------- | --------- |
|
|
202
|
+
| `SidebarGlass` | Collapsible sidebar navigation | `side`, `variant`, `collapsible`, compound API | 100% |
|
|
203
|
+
|
|
196
204
|
**Import:**
|
|
197
205
|
|
|
198
206
|
```tsx
|
|
@@ -326,10 +334,16 @@ import { ProgressGlass, RainbowProgressGlass, SegmentedControlGlass } from 'shad
|
|
|
326
334
|
|
|
327
335
|
---
|
|
328
336
|
|
|
329
|
-
### Level 4: Composite Components (
|
|
337
|
+
### Level 4: Composite Components (14 components)
|
|
330
338
|
|
|
331
339
|
Multi-component compositions that combine several elements.
|
|
332
340
|
|
|
341
|
+
#### Layout (1)
|
|
342
|
+
|
|
343
|
+
| Export | Description | Contains | Use Case |
|
|
344
|
+
| ------------------ | ---------------------------- | --------------------- | --------------------------- |
|
|
345
|
+
| `SplitLayoutGlass` | Two-column responsive layout | GlassCard, ScrollArea | Docs, dashboards, analytics |
|
|
346
|
+
|
|
333
347
|
#### Metrics & Stats (4)
|
|
334
348
|
|
|
335
349
|
| Export | Description | Contains | Use Case |
|
|
@@ -546,7 +560,14 @@ console.log(THEME_CONFIG); // [{ name: 'glass', label: 'Glass' }, ...]
|
|
|
546
560
|
### React Hooks
|
|
547
561
|
|
|
548
562
|
```tsx
|
|
549
|
-
import {
|
|
563
|
+
import {
|
|
564
|
+
useFocus,
|
|
565
|
+
useHover,
|
|
566
|
+
useResponsive,
|
|
567
|
+
useWallpaperTint,
|
|
568
|
+
useSplitLayout,
|
|
569
|
+
useSidebar,
|
|
570
|
+
} from 'shadcn-glass-ui';
|
|
550
571
|
|
|
551
572
|
// Focus management
|
|
552
573
|
function FocusExample() {
|
|
@@ -571,6 +592,18 @@ function WallpaperExample() {
|
|
|
571
592
|
const { isDark, tintColor } = useWallpaperTint();
|
|
572
593
|
return <div style={{ color: tintColor }}>Adaptive UI</div>;
|
|
573
594
|
}
|
|
595
|
+
|
|
596
|
+
// SplitLayoutGlass context
|
|
597
|
+
function SplitLayoutExample() {
|
|
598
|
+
const { selectedKey, isOpen, isMobile, toggle } = useSplitLayout();
|
|
599
|
+
return <button onClick={toggle}>{isOpen ? 'Close' : 'Open'}</button>;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
// SidebarGlass context (shadcn/ui compatible)
|
|
603
|
+
function SidebarExample() {
|
|
604
|
+
const { state, toggleSidebar, isMobile } = useSidebar();
|
|
605
|
+
return <button onClick={toggleSidebar}>{state}</button>;
|
|
606
|
+
}
|
|
574
607
|
```
|
|
575
608
|
|
|
576
609
|
### CVA Variants (Advanced)
|
|
@@ -688,10 +721,10 @@ import {
|
|
|
688
721
|
### Component Count by Level
|
|
689
722
|
|
|
690
723
|
- **Level 0 (Primitives):** 3 components
|
|
691
|
-
- **Level 1 (Core UI):**
|
|
724
|
+
- **Level 1 (Core UI):** 19 components (including SidebarGlass)
|
|
692
725
|
- **Level 2 (Atomic):** 7 components
|
|
693
726
|
- **Level 3 (Specialized):** 10 components
|
|
694
|
-
- **Level 4 (Composite):**
|
|
727
|
+
- **Level 4 (Composite):** 14 components (including SplitLayoutGlass)
|
|
695
728
|
- **Level 5 (Sections):** 7 components
|
|
696
729
|
- **Total:** 57 components
|
|
697
730
|
|
|
@@ -700,9 +733,10 @@ import {
|
|
|
700
733
|
- **Components:** 57 total
|
|
701
734
|
- **Types:** 25+ prop types, 15+ variant types
|
|
702
735
|
- **Utilities:** 1 function (`cn`)
|
|
703
|
-
- **Hooks:**
|
|
736
|
+
- **Hooks:** 6 custom hooks (including useSplitLayout, useSidebar)
|
|
704
737
|
- **Theme:** 6 exports (provider, hook, constants, helpers)
|
|
705
738
|
- **CVA Variants:** 15+ variant functions
|
|
739
|
+
- **Compound Components:** ModalGlass, TabsGlass, SidebarGlass, SplitLayoutGlass, StepperGlass
|
|
706
740
|
|
|
707
741
|
### shadcn/ui Compatibility
|
|
708
742
|
|
package/docs/GETTING_STARTED.md
CHANGED
|
@@ -126,7 +126,7 @@ Create or update your `globals.css`:
|
|
|
126
126
|
@tailwind utilities;
|
|
127
127
|
|
|
128
128
|
/* Import shadcn-glass-ui styles (if using npm package) */
|
|
129
|
-
@import 'shadcn-glass-ui/
|
|
129
|
+
@import 'shadcn-glass-ui/styles.css';
|
|
130
130
|
|
|
131
131
|
/* Or define variables manually */
|
|
132
132
|
@layer base {
|
package/docs/REGISTRY_USAGE.md
CHANGED
|
@@ -313,7 +313,7 @@ npm install shadcn-glass-ui
|
|
|
313
313
|
|
|
314
314
|
```tsx
|
|
315
315
|
import { ButtonGlass, InputGlass } from 'shadcn-glass-ui';
|
|
316
|
-
import 'shadcn-glass-ui/
|
|
316
|
+
import 'shadcn-glass-ui/styles.css';
|
|
317
317
|
```
|
|
318
318
|
|
|
319
319
|
See [GETTING_STARTED.md](./GETTING_STARTED.md) for npm installation guide.
|
package/docs/api/README.md
CHANGED