shadcn-glass-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +227 -0
- package/LICENSE +201 -0
- package/README.md +693 -0
- package/dist/components.cjs +59 -0
- package/dist/components.d.ts +1413 -0
- package/dist/components.js +5 -0
- package/dist/hooks.cjs +6 -0
- package/dist/hooks.d.ts +225 -0
- package/dist/hooks.js +3 -0
- package/dist/index.cjs +138 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1761 -0
- package/dist/index.js +56 -0
- package/dist/index.js.map +1 -0
- package/dist/shadcn-glass-ui.css +3 -0
- package/dist/theme-context-BZoCplcU.js +66 -0
- package/dist/theme-context-BZoCplcU.js.map +1 -0
- package/dist/theme-context-DrLak65e.cjs +102 -0
- package/dist/theme-context-DrLak65e.cjs.map +1 -0
- package/dist/themes.cjs +7 -0
- package/dist/themes.d.ts +36 -0
- package/dist/themes.js +2 -0
- package/dist/trust-score-card-glass-DqaCKo1w.cjs +8225 -0
- package/dist/trust-score-card-glass-DqaCKo1w.cjs.map +1 -0
- package/dist/trust-score-card-glass-tJnNNzeS.js +7789 -0
- package/dist/trust-score-card-glass-tJnNNzeS.js.map +1 -0
- package/dist/use-focus-6xqfE5s6.cjs +130 -0
- package/dist/use-focus-6xqfE5s6.cjs.map +1 -0
- package/dist/use-focus-CX0TJJIj.js +118 -0
- package/dist/use-focus-CX0TJJIj.js.map +1 -0
- package/dist/use-wallpaper-tint-D1f3UGGs.cjs +162 -0
- package/dist/use-wallpaper-tint-D1f3UGGs.cjs.map +1 -0
- package/dist/use-wallpaper-tint-DUgmytlY.js +150 -0
- package/dist/use-wallpaper-tint-DUgmytlY.js.map +1 -0
- package/dist/utils-BNzkwPwE.cjs +14 -0
- package/dist/utils-BNzkwPwE.cjs.map +1 -0
- package/dist/utils-CGCOTvxT.js +8 -0
- package/dist/utils-CGCOTvxT.js.map +1 -0
- package/dist/utils.cjs +2 -0
- package/dist/utils.d.ts +10 -0
- package/dist/utils.js +2 -0
- package/dist/vite.svg +1 -0
- package/package.json +196 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_trust_score_card_glass = require("./trust-score-card-glass-DqaCKo1w.cjs");
|
|
2
|
+
let clsx = require("clsx");
|
|
3
|
+
let tailwind_merge = require("tailwind-merge");
|
|
4
|
+
const cn = (...inputs) => {
|
|
5
|
+
return (0, tailwind_merge.twMerge)((0, clsx.clsx)(inputs));
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "cn", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function() {
|
|
10
|
+
return cn;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=utils-BNzkwPwE.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-BNzkwPwE.cjs","names":[],"sources":["../src/lib/utils.ts"],"sourcesContent":["// ========================================\n// GLASS THEME UTILITIES\n// ========================================\n\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Combine class names with Tailwind merge support (shadcn standard)\n * @param inputs - Array of class values\n * @returns Merged class string\n */\nexport const cn = (...inputs: ClassValue[]): string => {\n return twMerge(clsx(inputs));\n};\n"],"mappings":";;;AAYA,MAAa,MAAM,GAAG,WAAiC;AACrD,SAAA,GAAA,eAAA,UAAA,GAAA,KAAA,MAAoB,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-CGCOTvxT.js","names":[],"sources":["../src/lib/utils.ts"],"sourcesContent":["// ========================================\n// GLASS THEME UTILITIES\n// ========================================\n\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Combine class names with Tailwind merge support (shadcn standard)\n * @param inputs - Array of class values\n * @returns Merged class string\n */\nexport const cn = (...inputs: ClassValue[]): string => {\n return twMerge(clsx(inputs));\n};\n"],"mappings":";;AAYA,MAAa,MAAM,GAAG,WAAiC;AACrD,QAAO,QAAQ,KAAK,OAAO,CAAC"}
|
package/dist/utils.cjs
ADDED
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Combine class names with Tailwind merge support (shadcn standard)
|
|
5
|
+
* @param inputs - Array of class values
|
|
6
|
+
* @returns Merged class string
|
|
7
|
+
*/
|
|
8
|
+
export declare const cn: (...inputs: ClassValue[]) => string;
|
|
9
|
+
|
|
10
|
+
export { }
|
package/dist/utils.js
ADDED
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "shadcn-glass-ui",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Modern glassmorphism UI component library for React with full shadcn/ui compatibility",
|
|
6
|
+
"author": "Yhooi2",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"react",
|
|
10
|
+
"ui",
|
|
11
|
+
"glassmorphism",
|
|
12
|
+
"shadcn",
|
|
13
|
+
"tailwind",
|
|
14
|
+
"components",
|
|
15
|
+
"design-system",
|
|
16
|
+
"typescript"
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/Yhooi2/shadcn-glass-ui-library.git"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://yhooi2.github.io/shadcn-glass-ui-library/",
|
|
23
|
+
"bugs": "https://github.com/Yhooi2/shadcn-glass-ui-library/issues",
|
|
24
|
+
"type": "module",
|
|
25
|
+
"main": "./dist/index.cjs",
|
|
26
|
+
"module": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"import": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"default": "./dist/index.cjs"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"./components": {
|
|
40
|
+
"import": {
|
|
41
|
+
"types": "./dist/components.d.ts",
|
|
42
|
+
"default": "./dist/components.js"
|
|
43
|
+
},
|
|
44
|
+
"require": {
|
|
45
|
+
"types": "./dist/components.d.ts",
|
|
46
|
+
"default": "./dist/components.cjs"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"./hooks": {
|
|
50
|
+
"import": {
|
|
51
|
+
"types": "./dist/hooks.d.ts",
|
|
52
|
+
"default": "./dist/hooks.js"
|
|
53
|
+
},
|
|
54
|
+
"require": {
|
|
55
|
+
"types": "./dist/hooks.d.ts",
|
|
56
|
+
"default": "./dist/hooks.cjs"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"./utils": {
|
|
60
|
+
"import": {
|
|
61
|
+
"types": "./dist/utils.d.ts",
|
|
62
|
+
"default": "./dist/utils.js"
|
|
63
|
+
},
|
|
64
|
+
"require": {
|
|
65
|
+
"types": "./dist/utils.d.ts",
|
|
66
|
+
"default": "./dist/utils.cjs"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"./themes": {
|
|
70
|
+
"import": {
|
|
71
|
+
"types": "./dist/themes.d.ts",
|
|
72
|
+
"default": "./dist/themes.js"
|
|
73
|
+
},
|
|
74
|
+
"require": {
|
|
75
|
+
"types": "./dist/themes.d.ts",
|
|
76
|
+
"default": "./dist/themes.cjs"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"./styles.css": "./dist/styles.css"
|
|
80
|
+
},
|
|
81
|
+
"files": [
|
|
82
|
+
"dist",
|
|
83
|
+
"README.md",
|
|
84
|
+
"LICENSE",
|
|
85
|
+
"CHANGELOG.md"
|
|
86
|
+
],
|
|
87
|
+
"sideEffects": [
|
|
88
|
+
"*.css"
|
|
89
|
+
],
|
|
90
|
+
"peerDependencies": {
|
|
91
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
92
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
93
|
+
"tailwindcss": "^4.0.0"
|
|
94
|
+
},
|
|
95
|
+
"peerDependenciesMeta": {
|
|
96
|
+
"tailwindcss": {
|
|
97
|
+
"optional": false
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"scripts": {
|
|
101
|
+
"dev": "vite",
|
|
102
|
+
"build": "tsc -b && vite build",
|
|
103
|
+
"build:lib": "vite build --config vite.config.lib.ts",
|
|
104
|
+
"build:types": "tsc --project tsconfig.build.json",
|
|
105
|
+
"prepublishOnly": "npm run build:lib",
|
|
106
|
+
"lint": "eslint .",
|
|
107
|
+
"preview": "vite preview",
|
|
108
|
+
"storybook": "storybook dev -p 6006",
|
|
109
|
+
"build-storybook": "storybook build",
|
|
110
|
+
"test": "vitest",
|
|
111
|
+
"test:unit": "vitest --project=unit",
|
|
112
|
+
"test:storybook": "vitest --project=storybook",
|
|
113
|
+
"test:visual": "vitest --project=visual",
|
|
114
|
+
"test:visual:update": "vitest --project=visual --update",
|
|
115
|
+
"test:visual:ci": "vitest --project=visual --run",
|
|
116
|
+
"test:all": "vitest --run",
|
|
117
|
+
"test:coverage": "vitest --run --coverage --project=unit",
|
|
118
|
+
"test:coverage:open": "vitest --run --coverage --project=unit && open coverage/index.html",
|
|
119
|
+
"test:compliance": "vitest --project=compliance",
|
|
120
|
+
"test:compliance:run": "vitest --project=compliance --run",
|
|
121
|
+
"test:compliance:browser": "vitest --project=compliance-browser",
|
|
122
|
+
"test:compliance:browser:run": "vitest --project=compliance-browser --run",
|
|
123
|
+
"test:compliance:source": "vitest src/test/compliance/source-code --run",
|
|
124
|
+
"test:compliance:source:watch": "vitest src/test/compliance/source-code",
|
|
125
|
+
"test:full-compliance": "npm run lint && npm run test:compliance:run && npm run test:visual:ci",
|
|
126
|
+
"audit:design-system": "npm run test:compliance:run && npm run test:compliance:source"
|
|
127
|
+
},
|
|
128
|
+
"dependencies": {
|
|
129
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
130
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
131
|
+
"@radix-ui/react-collapsible": "^1.1.12",
|
|
132
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
133
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
134
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
135
|
+
"@radix-ui/react-progress": "^1.1.8",
|
|
136
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
137
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
138
|
+
"@radix-ui/react-slider": "^1.3.6",
|
|
139
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
140
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
141
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
142
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
143
|
+
"@tailwindcss/postcss": "^4.1.17",
|
|
144
|
+
"@tailwindcss/vite": "^4.1.17",
|
|
145
|
+
"class-variance-authority": "^0.7.1",
|
|
146
|
+
"clsx": "^2.1.1",
|
|
147
|
+
"cmdk": "^1.1.1",
|
|
148
|
+
"lucide-react": "^0.555.0",
|
|
149
|
+
"next-themes": "^0.4.6",
|
|
150
|
+
"postcss": "^8.5.6",
|
|
151
|
+
"sonner": "^2.0.7",
|
|
152
|
+
"tailwind-merge": "^3.4.0",
|
|
153
|
+
"tailwindcss": "^4.0.0"
|
|
154
|
+
},
|
|
155
|
+
"devDependencies": {
|
|
156
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
157
|
+
"@eslint/js": "^9.39.1",
|
|
158
|
+
"@storybook/addon-a11y": "^10.1.0",
|
|
159
|
+
"@storybook/addon-docs": "^10.1.0",
|
|
160
|
+
"@storybook/addon-mcp": "^0.1.3",
|
|
161
|
+
"@storybook/addon-onboarding": "^10.1.0",
|
|
162
|
+
"@storybook/addon-vitest": "^10.1.0",
|
|
163
|
+
"@storybook/react-vite": "^10.1.0",
|
|
164
|
+
"@testing-library/react": "^16.3.0",
|
|
165
|
+
"@types/glob": "^8.1.0",
|
|
166
|
+
"@types/node": "^24.10.1",
|
|
167
|
+
"@types/react": "^19.2.5",
|
|
168
|
+
"@types/react-dom": "^19.2.3",
|
|
169
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
170
|
+
"@vitest/browser-playwright": "^4.0.14",
|
|
171
|
+
"@vitest/coverage-v8": "^4.0.14",
|
|
172
|
+
"eslint": "^9.39.1",
|
|
173
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
174
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
175
|
+
"eslint-plugin-storybook": "^10.1.0",
|
|
176
|
+
"glob": "^13.0.0",
|
|
177
|
+
"globals": "^16.5.0",
|
|
178
|
+
"jsdom": "^27.2.0",
|
|
179
|
+
"playwright": "^1.57.0",
|
|
180
|
+
"prettier": "3.7.1",
|
|
181
|
+
"react": "^19.2.0",
|
|
182
|
+
"react-dom": "^19.2.0",
|
|
183
|
+
"sass": "^1.94.2",
|
|
184
|
+
"shadcn": "^3.5.0",
|
|
185
|
+
"storybook": "^10.1.0",
|
|
186
|
+
"tw-animate-css": "^1.4.0",
|
|
187
|
+
"typescript": "~5.9.3",
|
|
188
|
+
"typescript-eslint": "^8.46.4",
|
|
189
|
+
"vite": "npm:rolldown-vite@7.2.5",
|
|
190
|
+
"vite-plugin-dts": "^4.5.4",
|
|
191
|
+
"vitest": "^4.0.14"
|
|
192
|
+
},
|
|
193
|
+
"overrides": {
|
|
194
|
+
"vite": "npm:rolldown-vite@7.2.5"
|
|
195
|
+
}
|
|
196
|
+
}
|