@pactor-app/ui 1.43.0 → 1.46.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pactor-app/ui",
3
- "version": "1.43.0",
3
+ "version": "1.46.0",
4
4
  "description": "Pactor UI kit (shadcn): the single built-in UI kit — vendored shadcn/ui components (Base UI primitives + cva + tailwind-merge + lucide-react), props contracts, interaction core (OverlayManager / UiBridge) and layouts, with build-time Tailwind v4 prebuilt styles.css (zero consumer-side Tailwind config)",
5
5
  "keywords": [
6
6
  "pactor",
@@ -75,7 +75,8 @@
75
75
  "default": "./dist/ui/index.cjs"
76
76
  }
77
77
  },
78
- "./styles.css": "./styles.css"
78
+ "./styles.css": "./styles.css",
79
+ "./theme-bridge.css": "./src/theme-bridge.css"
79
80
  },
80
81
  "sideEffects": [
81
82
  "./styles.css"
@@ -85,21 +86,20 @@
85
86
  },
86
87
  "files": [
87
88
  "dist",
88
- "styles.css"
89
+ "styles.css",
90
+ "src/theme-bridge.css"
89
91
  ],
90
92
  "publishConfig": {
91
93
  "access": "public"
92
94
  },
93
95
  "dependencies": {
94
96
  "@base-ui/react": "^1.7.0",
95
- "ace-builds": "^1.44.0",
96
97
  "class-variance-authority": "^0.7.1",
97
98
  "clsx": "^2.1.1",
98
99
  "cmdk": "^1.1.1",
99
100
  "cn": "^0.2.6",
100
101
  "date-fns": "^4.4.0",
101
102
  "dompurify": "^3.2.4",
102
- "echarts": "^6.1.0",
103
103
  "embla-carousel-react": "^8.6.0",
104
104
  "input-otp": "^1.5.0",
105
105
  "lucide-react": "^1.34.0",
@@ -108,11 +108,11 @@
108
108
  "react-resizable-panels": "^4.12.3",
109
109
  "tailwind-merge": "^3.6.0",
110
110
  "vaul": "^1.1.2",
111
- "@pactor-app/core": "1.43.0",
112
- "@pactor-app/markdown": "1.43.0",
113
- "@pactor-app/permission": "1.43.0",
114
- "@pactor-app/runtime": "1.43.0",
115
- "@pactor-app/router": "1.43.0"
111
+ "@pactor-app/core": "1.46.0",
112
+ "@pactor-app/router": "1.46.0",
113
+ "@pactor-app/permission": "1.46.0",
114
+ "@pactor-app/runtime": "1.46.0",
115
+ "@pactor-app/markdown": "1.46.0"
116
116
  },
117
117
  "peerDependencies": {
118
118
  "react": ">=18",
@@ -0,0 +1,54 @@
1
+ /**
2
+ * @pactor-app/ui 语义令牌桥(全仓单一定义,spec: unified-styles-entry /
3
+ * 语义令牌桥单源):语义令牌 → Tailwind 工具类映射(@theme inline)。
4
+ * ui 自身样式表经 `@import ./theme-bridge.css` 内联;chat / blocks / chart
5
+ * 样式源经 `@import @pactor-app/ui/theme-bridge.css` 在编译期内联——
6
+ * 映射运行时读 var(),令牌值本体仅由 ui styles.css 的 :root / 暗色块定义。
7
+ */
8
+
9
+ /* 语义令牌 → 工具类桥接(运行时解析 var(),支持暗色覆盖与宿主换肤) */
10
+ @theme inline {
11
+ --color-background: var(--background);
12
+ --color-foreground: var(--foreground);
13
+ --color-card: var(--card);
14
+ --color-card-foreground: var(--card-foreground);
15
+ --color-popover: var(--popover);
16
+ --color-popover-foreground: var(--popover-foreground);
17
+ --color-primary: var(--primary);
18
+ --color-primary-foreground: var(--primary-foreground);
19
+ --color-secondary: var(--secondary);
20
+ --color-secondary-foreground: var(--secondary-foreground);
21
+ --color-muted: var(--muted);
22
+ --color-muted-foreground: var(--muted-foreground);
23
+ --color-accent: var(--accent);
24
+ --color-accent-foreground: var(--accent-foreground);
25
+ --color-destructive: var(--destructive);
26
+ --color-destructive-foreground: var(--destructive-foreground);
27
+ --color-success: var(--success);
28
+ --color-warning: var(--warning);
29
+ --color-info: var(--info);
30
+ --color-border: var(--border);
31
+ --color-input: var(--input);
32
+ --color-ring: var(--ring);
33
+ --color-chart-1: var(--chart-1);
34
+ --color-chart-2: var(--chart-2);
35
+ --color-chart-3: var(--chart-3);
36
+ --color-chart-4: var(--chart-4);
37
+ --color-chart-5: var(--chart-5);
38
+ --color-sidebar: var(--sidebar);
39
+ --color-sidebar-foreground: var(--sidebar-foreground);
40
+ --color-sidebar-primary: var(--sidebar-primary);
41
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
42
+ --color-sidebar-accent: var(--sidebar-accent);
43
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
44
+ --color-sidebar-border: var(--sidebar-border);
45
+ --color-sidebar-ring: var(--sidebar-ring);
46
+
47
+ --radius-sm: calc(var(--radius) * 0.6);
48
+ --radius-md: calc(var(--radius) * 0.8);
49
+ --radius-lg: var(--radius);
50
+ --radius-xl: calc(var(--radius) * 1.4);
51
+ --radius-2xl: calc(var(--radius) * 1.8);
52
+ --radius-3xl: calc(var(--radius) * 2.2);
53
+ --radius-4xl: calc(var(--radius) * 2.6);
54
+ }