@ug666/ui-react 0.1.0 → 0.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.
Files changed (54) hide show
  1. package/dist/blocks/index.cjs +238 -0
  2. package/dist/blocks/index.cjs.map +1 -0
  3. package/dist/blocks/index.d.cts +86 -0
  4. package/dist/blocks/index.d.ts +86 -0
  5. package/dist/blocks/index.js +153 -0
  6. package/dist/blocks/index.js.map +1 -0
  7. package/dist/button-CaLZig8j.d.cts +22 -0
  8. package/dist/button-CaLZig8j.d.ts +22 -0
  9. package/dist/chunk-2IVRUJKO.js +377 -0
  10. package/dist/chunk-2IVRUJKO.js.map +1 -0
  11. package/dist/chunk-73WQAE3E.js +3003 -0
  12. package/dist/chunk-73WQAE3E.js.map +1 -0
  13. package/dist/chunk-RUDEZA5Q.js +62 -0
  14. package/dist/chunk-RUDEZA5Q.js.map +1 -0
  15. package/dist/chunk-S45GP6IB.js +254 -0
  16. package/dist/chunk-S45GP6IB.js.map +1 -0
  17. package/dist/components/index.cjs +3993 -0
  18. package/dist/components/index.cjs.map +1 -0
  19. package/dist/components/index.d.cts +1097 -0
  20. package/dist/components/index.d.ts +1097 -0
  21. package/dist/components/index.js +330 -0
  22. package/dist/components/index.js.map +1 -0
  23. package/dist/hooks/index.cjs +1 -0
  24. package/dist/hooks/index.cjs.map +1 -1
  25. package/dist/hooks/index.js +1 -0
  26. package/dist/index.cjs +1410 -710
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +274 -1340
  29. package/dist/index.d.ts +274 -1340
  30. package/dist/index.js +385 -3229
  31. package/dist/index.js.map +1 -1
  32. package/dist/labs/index.cjs +34 -0
  33. package/dist/labs/index.cjs.map +1 -0
  34. package/dist/labs/index.d.cts +12 -0
  35. package/dist/labs/index.d.ts +12 -0
  36. package/dist/labs/index.js +9 -0
  37. package/dist/labs/index.js.map +1 -0
  38. package/dist/patterns/index.cjs +758 -0
  39. package/dist/patterns/index.cjs.map +1 -0
  40. package/dist/patterns/index.d.cts +158 -0
  41. package/dist/patterns/index.d.ts +158 -0
  42. package/dist/patterns/index.js +320 -0
  43. package/dist/patterns/index.js.map +1 -0
  44. package/dist/primitives/index.cjs +384 -0
  45. package/dist/primitives/index.cjs.map +1 -0
  46. package/dist/primitives/index.d.cts +137 -0
  47. package/dist/primitives/index.d.ts +137 -0
  48. package/dist/primitives/index.js +56 -0
  49. package/dist/primitives/index.js.map +1 -0
  50. package/dist/sidebar-vl00Z2o-.d.cts +93 -0
  51. package/dist/sidebar-vl00Z2o-.d.ts +93 -0
  52. package/dist/styles.css +2499 -0
  53. package/dist/tokens.css +86 -9
  54. package/package.json +36 -6
package/dist/tokens.css CHANGED
@@ -1,9 +1,86 @@
1
- /**
2
- * @description: @ug666/ui-react 的 tokens 入口 — 重新导出 @ug666/ui-utils 的 design tokens,让 React 用户只需装 react 包即可
3
- * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。
4
- * @date: 2026-04-17
5
- *
6
- * 使用方式:
7
- * import '@ug666/ui-react/tokens.css'
8
- */
9
- @import "@ug666/ui-utils/tokens.css";
1
+ /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
+ :root {
3
+ --surface-0: 204 33% 98%;
4
+ --surface-1: 0 0% 100%;
5
+ --surface-2: 204 26% 96%;
6
+ --surface-3: 198 24% 92%;
7
+ --text-primary: 214 32% 12%;
8
+ --text-secondary: 211 15% 36%;
9
+ --text-tertiary: 211 11% 56%;
10
+ --text-inverted: 0 0% 100%;
11
+ --border-strong: 205 18% 72%;
12
+ --border-base: 206 19% 86%;
13
+ --border-subtle: 204 24% 92%;
14
+ --primary: 186 86% 34%;
15
+ --primary-hover: 188 88% 28%;
16
+ --primary-active: 190 86% 23%;
17
+ --primary-fg: 0 0% 100%;
18
+ --primary-soft: 186 86% 34%;
19
+ --primary-soft-fg: 190 86% 23%;
20
+ --success: 154 66% 34%;
21
+ --success-hover: 154 72% 28%;
22
+ --success-fg: 0 0% 100%;
23
+ --success-soft: 160 84% 39%;
24
+ --success-soft-fg: 154 72% 25%;
25
+ --warning: 38 92% 50%;
26
+ --warning-hover: 32 95% 44%;
27
+ --warning-fg: 0 0% 100%;
28
+ --warning-soft: 38 92% 50%;
29
+ --warning-soft-fg: 32 95% 44%;
30
+ --danger: 350 72% 50%;
31
+ --danger-hover: 350 76% 42%;
32
+ --danger-fg: 0 0% 100%;
33
+ --danger-soft: 0 84% 60%;
34
+ --danger-soft-fg: 350 76% 42%;
35
+ --info: 219 76% 54%;
36
+ --info-hover: 222 72% 47%;
37
+ --info-fg: 0 0% 100%;
38
+ --info-soft: 217 91% 60%;
39
+ --info-soft-fg: 222 72% 42%;
40
+ --ring: 186 86% 34%;
41
+ --shadow-color: 214 32% 12%;
42
+ --overlay: 0 0% 0%;
43
+ --overlay-alpha: 0.5;
44
+ }
45
+ .dark {
46
+ --surface-0: 210 26% 8%;
47
+ --surface-1: 210 21% 12%;
48
+ --surface-2: 205 18% 17%;
49
+ --surface-3: 198 17% 24%;
50
+ --text-primary: 190 24% 96%;
51
+ --text-secondary: 201 13% 72%;
52
+ --text-tertiary: 203 9% 56%;
53
+ --text-inverted: 210 26% 8%;
54
+ --border-strong: 199 16% 34%;
55
+ --border-base: 205 16% 24%;
56
+ --border-subtle: 208 18% 16%;
57
+ --primary: 181 82% 48%;
58
+ --primary-hover: 181 82% 56%;
59
+ --primary-active: 181 84% 66%;
60
+ --primary-fg: 210 26% 8%;
61
+ --primary-soft: 181 82% 48%;
62
+ --primary-soft-fg: 181 84% 66%;
63
+ --success: 158 64% 52%;
64
+ --success-hover: 156 72% 67%;
65
+ --success-fg: 240 6% 10%;
66
+ --success-soft: 158 64% 52%;
67
+ --success-soft-fg: 156 72% 67%;
68
+ --warning: 43 96% 56%;
69
+ --warning-hover: 48 96% 63%;
70
+ --warning-fg: 240 6% 10%;
71
+ --warning-soft: 43 96% 56%;
72
+ --warning-soft-fg: 48 96% 63%;
73
+ --danger: 0 91% 71%;
74
+ --danger-hover: 0 94% 82%;
75
+ --danger-fg: 240 6% 10%;
76
+ --danger-soft: 0 91% 71%;
77
+ --danger-soft-fg: 0 94% 82%;
78
+ --info: 213 94% 68%;
79
+ --info-hover: 212 96% 78%;
80
+ --info-fg: 240 6% 10%;
81
+ --info-soft: 213 94% 68%;
82
+ --info-soft-fg: 212 96% 78%;
83
+ --ring: 181 82% 48%;
84
+ --shadow-color: 210 40% 2%;
85
+ --overlay-alpha: 0.7;
86
+ }
package/package.json CHANGED
@@ -1,15 +1,19 @@
1
1
  {
2
2
  "name": "@ug666/ui-react",
3
- "version": "0.1.0",
4
- "description": "UG React UI 组件库 + Hooks",
3
+ "version": "0.2.0",
4
+ "description": "UG React UI 组件库 + Patterns + Blocks + Hooks",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
8
8
  "module": "./dist/index.js",
9
9
  "types": "./dist/index.d.ts",
10
+ "style": "./dist/styles.css",
10
11
  "files": [
11
12
  "dist"
12
13
  ],
14
+ "sideEffects": [
15
+ "**/*.css"
16
+ ],
13
17
  "publishConfig": {
14
18
  "access": "public"
15
19
  },
@@ -19,11 +23,37 @@
19
23
  "import": "./dist/index.js",
20
24
  "require": "./dist/index.cjs"
21
25
  },
26
+ "./primitives": {
27
+ "types": "./dist/primitives/index.d.ts",
28
+ "import": "./dist/primitives/index.js",
29
+ "require": "./dist/primitives/index.cjs"
30
+ },
31
+ "./components": {
32
+ "types": "./dist/components/index.d.ts",
33
+ "import": "./dist/components/index.js",
34
+ "require": "./dist/components/index.cjs"
35
+ },
36
+ "./patterns": {
37
+ "types": "./dist/patterns/index.d.ts",
38
+ "import": "./dist/patterns/index.js",
39
+ "require": "./dist/patterns/index.cjs"
40
+ },
41
+ "./blocks": {
42
+ "types": "./dist/blocks/index.d.ts",
43
+ "import": "./dist/blocks/index.js",
44
+ "require": "./dist/blocks/index.cjs"
45
+ },
46
+ "./labs": {
47
+ "types": "./dist/labs/index.d.ts",
48
+ "import": "./dist/labs/index.js",
49
+ "require": "./dist/labs/index.cjs"
50
+ },
22
51
  "./hooks": {
23
52
  "types": "./dist/hooks/index.d.ts",
24
53
  "import": "./dist/hooks/index.js",
25
54
  "require": "./dist/hooks/index.cjs"
26
55
  },
56
+ "./styles.css": "./dist/styles.css",
27
57
  "./tokens.css": "./dist/tokens.css"
28
58
  },
29
59
  "scripts": {
@@ -32,21 +62,21 @@
32
62
  "prepublishOnly": "bun run build"
33
63
  },
34
64
  "dependencies": {
35
- "@ug666/ui-utils": "^0.1.0",
65
+ "clsx": "^2.1.0",
66
+ "tailwind-merge": "^3.0.0",
36
67
  "lucide-react": "^0.468.0",
37
68
  "class-variance-authority": "^0.7.0"
38
69
  },
39
70
  "peerDependencies": {
40
71
  "react": "^18.0.0 || ^19.0.0",
41
- "react-dom": "^18.0.0 || ^19.0.0",
42
- "tailwindcss": "^4.0.0"
72
+ "react-dom": "^18.0.0 || ^19.0.0"
43
73
  },
44
74
  "devDependencies": {
45
75
  "@types/react": "^19.0.0",
46
76
  "@types/react-dom": "^19.0.0",
47
- "@ug666/ui-tsconfig": "^0.1.0",
48
77
  "react": "^19.0.0",
49
78
  "react-dom": "^19.0.0",
79
+ "tailwindcss": "^4.0.0",
50
80
  "tsup": "^8.5.1",
51
81
  "typescript": "^5.7.0"
52
82
  }