@morlay/dsh-client-ui-primitives 0.0.2-alpha.5 → 0.0.2-alpha.7

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/dist/client.d.cts CHANGED
@@ -9414,7 +9414,7 @@ declare function styleOf(component: StyledComponent<ElementType>): CSSProps;
9414
9414
  //#endregion
9415
9415
  //#region src/client/theme.generated.d.ts
9416
9416
  /**
9417
- * 官方主题的 `--dsw-*` token 全集(359 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
9417
+ * 官方主题的 `--dsw-*` token 全集(367 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
9418
9418
  *
9419
9419
  * 叶子是该变量的**默认值**(官方 light 主题里首次出现的定义):既是类型推导的来源,也可作 fallback。
9420
9420
  * `"$"` 键出现在「自身也是 token 的分支」上(命名体系里有 40 个短名同时是长名前缀的 token)。
@@ -9512,6 +9512,12 @@ declare const designTokens: {
9512
9512
  };
9513
9513
  };
9514
9514
  };
9515
+ readonly code: {
9516
+ readonly diff: {
9517
+ readonly added: "var(--dsw-static-green-500-a08)";
9518
+ readonly deleted: "var(--dsw-static-red-600-a08)";
9519
+ };
9520
+ };
9515
9521
  readonly interactive: {
9516
9522
  readonly bg: {
9517
9523
  readonly active: "rgba(38, 49, 72, 0.1)";
@@ -9577,6 +9583,9 @@ declare const designTokens: {
9577
9583
  readonly primary: "var(--dsw-static-red-600)";
9578
9584
  readonly secondary: "var(--dsw-static-red-400)";
9579
9585
  };
9586
+ readonly idle: {
9587
+ readonly primary: "var(--dsw-static-neutral-300)";
9588
+ };
9580
9589
  readonly success: {
9581
9590
  readonly primary: "var(--dsw-static-green-500)";
9582
9591
  readonly secondary: "var(--dsw-static-green-400)";
@@ -10010,6 +10019,11 @@ declare const designTokens: {
10010
10019
  readonly mask: {
10011
10020
  readonly blur: "blur(2px)";
10012
10021
  };
10022
+ readonly menu: {
10023
+ readonly backdrop: {
10024
+ readonly filter: "blur(40px) saturate(150%)";
10025
+ };
10026
+ };
10013
10027
  readonly shadow: {
10014
10028
  readonly lv1: {
10015
10029
  readonly $: "0 2px 4px 0 rgba(0, 0, 0, 0.05)";
@@ -10029,7 +10043,7 @@ declare const designTokens: {
10029
10043
  readonly login: {
10030
10044
  readonly input: "var(--dsw-static-neutral-bluish-50)";
10031
10045
  };
10032
- readonly menu: "var(--dsw-alias-bg-layer-3)";
10046
+ readonly menu: "rgba(248, 249, 250, 0.58)";
10033
10047
  readonly selector: "var(--dsw-static-neutral-bluish-60)";
10034
10048
  readonly sidebar: {
10035
10049
  readonly fill: "var(--dsw-static-neutral-bluish-50)";
@@ -10072,7 +10086,7 @@ declare const designTokens: {
10072
10086
  readonly "100": "rgb(228, 237, 253)";
10073
10087
  readonly "200": "rgb(211, 226, 255)";
10074
10088
  readonly "300": "rgb(183, 200, 254)";
10075
- readonly "400": "rgb(103, 158, 254)";
10089
+ readonly "400": "rgb(122, 170, 255)";
10076
10090
  readonly "450": "rgb(86, 134, 254)";
10077
10091
  readonly "500": "rgb(65, 118, 230)";
10078
10092
  readonly "600": "rgb(72, 104, 178)";
@@ -10085,7 +10099,11 @@ declare const designTokens: {
10085
10099
  readonly green: {
10086
10100
  readonly "100": "rgb(230, 250, 237)";
10087
10101
  readonly "400": "rgb(78, 209, 126)";
10088
- readonly "500": "rgb(34, 197, 94)";
10102
+ readonly "500": {
10103
+ readonly $: "rgb(34, 197, 94)";
10104
+ readonly a08: "rgb(34 197 94 / 8%)";
10105
+ readonly a12: "rgb(34 197 94 / 12%)";
10106
+ };
10089
10107
  readonly "900": "rgb(35, 60, 44)";
10090
10108
  };
10091
10109
  readonly neutral: {
@@ -10130,9 +10148,15 @@ declare const designTokens: {
10130
10148
  readonly red: {
10131
10149
  readonly "50": "rgb(254, 242, 242)";
10132
10150
  readonly "100": "rgb(254, 226, 226)";
10133
- readonly "400": "rgb(242, 90, 90)";
10151
+ readonly "400": {
10152
+ readonly $: "rgb(242, 90, 90)";
10153
+ readonly a12: "rgb(242 90 90 / 12%)";
10154
+ };
10134
10155
  readonly "500": "rgb(239, 68, 68)";
10135
- readonly "600": "rgb(236, 19, 19)";
10156
+ readonly "600": {
10157
+ readonly $: "rgb(236, 19, 19)";
10158
+ readonly a08: "rgb(236 19 19 / 8%)";
10159
+ };
10136
10160
  readonly "900": "rgb(87, 12, 12)";
10137
10161
  };
10138
10162
  };
@@ -10231,6 +10255,12 @@ declare const dsw: TokenVars<{
10231
10255
  };
10232
10256
  };
10233
10257
  };
10258
+ readonly code: {
10259
+ readonly diff: {
10260
+ readonly added: "var(--dsw-static-green-500-a08)";
10261
+ readonly deleted: "var(--dsw-static-red-600-a08)";
10262
+ };
10263
+ };
10234
10264
  readonly interactive: {
10235
10265
  readonly bg: {
10236
10266
  readonly active: "rgba(38, 49, 72, 0.1)";
@@ -10296,6 +10326,9 @@ declare const dsw: TokenVars<{
10296
10326
  readonly primary: "var(--dsw-static-red-600)";
10297
10327
  readonly secondary: "var(--dsw-static-red-400)";
10298
10328
  };
10329
+ readonly idle: {
10330
+ readonly primary: "var(--dsw-static-neutral-300)";
10331
+ };
10299
10332
  readonly success: {
10300
10333
  readonly primary: "var(--dsw-static-green-500)";
10301
10334
  readonly secondary: "var(--dsw-static-green-400)";
@@ -10729,6 +10762,11 @@ declare const dsw: TokenVars<{
10729
10762
  readonly mask: {
10730
10763
  readonly blur: "blur(2px)";
10731
10764
  };
10765
+ readonly menu: {
10766
+ readonly backdrop: {
10767
+ readonly filter: "blur(40px) saturate(150%)";
10768
+ };
10769
+ };
10732
10770
  readonly shadow: {
10733
10771
  readonly lv1: {
10734
10772
  readonly $: "0 2px 4px 0 rgba(0, 0, 0, 0.05)";
@@ -10748,7 +10786,7 @@ declare const dsw: TokenVars<{
10748
10786
  readonly login: {
10749
10787
  readonly input: "var(--dsw-static-neutral-bluish-50)";
10750
10788
  };
10751
- readonly menu: "var(--dsw-alias-bg-layer-3)";
10789
+ readonly menu: "rgba(248, 249, 250, 0.58)";
10752
10790
  readonly selector: "var(--dsw-static-neutral-bluish-60)";
10753
10791
  readonly sidebar: {
10754
10792
  readonly fill: "var(--dsw-static-neutral-bluish-50)";
@@ -10791,7 +10829,7 @@ declare const dsw: TokenVars<{
10791
10829
  readonly "100": "rgb(228, 237, 253)";
10792
10830
  readonly "200": "rgb(211, 226, 255)";
10793
10831
  readonly "300": "rgb(183, 200, 254)";
10794
- readonly "400": "rgb(103, 158, 254)";
10832
+ readonly "400": "rgb(122, 170, 255)";
10795
10833
  readonly "450": "rgb(86, 134, 254)";
10796
10834
  readonly "500": "rgb(65, 118, 230)";
10797
10835
  readonly "600": "rgb(72, 104, 178)";
@@ -10804,7 +10842,11 @@ declare const dsw: TokenVars<{
10804
10842
  readonly green: {
10805
10843
  readonly "100": "rgb(230, 250, 237)";
10806
10844
  readonly "400": "rgb(78, 209, 126)";
10807
- readonly "500": "rgb(34, 197, 94)";
10845
+ readonly "500": {
10846
+ readonly $: "rgb(34, 197, 94)";
10847
+ readonly a08: "rgb(34 197 94 / 8%)";
10848
+ readonly a12: "rgb(34 197 94 / 12%)";
10849
+ };
10808
10850
  readonly "900": "rgb(35, 60, 44)";
10809
10851
  };
10810
10852
  readonly neutral: {
@@ -10849,9 +10891,15 @@ declare const dsw: TokenVars<{
10849
10891
  readonly red: {
10850
10892
  readonly "50": "rgb(254, 242, 242)";
10851
10893
  readonly "100": "rgb(254, 226, 226)";
10852
- readonly "400": "rgb(242, 90, 90)";
10894
+ readonly "400": {
10895
+ readonly $: "rgb(242, 90, 90)";
10896
+ readonly a12: "rgb(242 90 90 / 12%)";
10897
+ };
10853
10898
  readonly "500": "rgb(239, 68, 68)";
10854
- readonly "600": "rgb(236, 19, 19)";
10899
+ readonly "600": {
10900
+ readonly $: "rgb(236, 19, 19)";
10901
+ readonly a08: "rgb(236 19 19 / 8%)";
10902
+ };
10855
10903
  readonly "900": "rgb(87, 12, 12)";
10856
10904
  };
10857
10905
  };
package/dist/client.d.mts CHANGED
@@ -9414,7 +9414,7 @@ declare function styleOf(component: StyledComponent<ElementType>): CSSProps;
9414
9414
  //#endregion
9415
9415
  //#region src/client/theme.generated.d.ts
9416
9416
  /**
9417
- * 官方主题的 `--dsw-*` token 全集(359 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
9417
+ * 官方主题的 `--dsw-*` token 全集(367 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
9418
9418
  *
9419
9419
  * 叶子是该变量的**默认值**(官方 light 主题里首次出现的定义):既是类型推导的来源,也可作 fallback。
9420
9420
  * `"$"` 键出现在「自身也是 token 的分支」上(命名体系里有 40 个短名同时是长名前缀的 token)。
@@ -9512,6 +9512,12 @@ declare const designTokens: {
9512
9512
  };
9513
9513
  };
9514
9514
  };
9515
+ readonly code: {
9516
+ readonly diff: {
9517
+ readonly added: "var(--dsw-static-green-500-a08)";
9518
+ readonly deleted: "var(--dsw-static-red-600-a08)";
9519
+ };
9520
+ };
9515
9521
  readonly interactive: {
9516
9522
  readonly bg: {
9517
9523
  readonly active: "rgba(38, 49, 72, 0.1)";
@@ -9577,6 +9583,9 @@ declare const designTokens: {
9577
9583
  readonly primary: "var(--dsw-static-red-600)";
9578
9584
  readonly secondary: "var(--dsw-static-red-400)";
9579
9585
  };
9586
+ readonly idle: {
9587
+ readonly primary: "var(--dsw-static-neutral-300)";
9588
+ };
9580
9589
  readonly success: {
9581
9590
  readonly primary: "var(--dsw-static-green-500)";
9582
9591
  readonly secondary: "var(--dsw-static-green-400)";
@@ -10010,6 +10019,11 @@ declare const designTokens: {
10010
10019
  readonly mask: {
10011
10020
  readonly blur: "blur(2px)";
10012
10021
  };
10022
+ readonly menu: {
10023
+ readonly backdrop: {
10024
+ readonly filter: "blur(40px) saturate(150%)";
10025
+ };
10026
+ };
10013
10027
  readonly shadow: {
10014
10028
  readonly lv1: {
10015
10029
  readonly $: "0 2px 4px 0 rgba(0, 0, 0, 0.05)";
@@ -10029,7 +10043,7 @@ declare const designTokens: {
10029
10043
  readonly login: {
10030
10044
  readonly input: "var(--dsw-static-neutral-bluish-50)";
10031
10045
  };
10032
- readonly menu: "var(--dsw-alias-bg-layer-3)";
10046
+ readonly menu: "rgba(248, 249, 250, 0.58)";
10033
10047
  readonly selector: "var(--dsw-static-neutral-bluish-60)";
10034
10048
  readonly sidebar: {
10035
10049
  readonly fill: "var(--dsw-static-neutral-bluish-50)";
@@ -10072,7 +10086,7 @@ declare const designTokens: {
10072
10086
  readonly "100": "rgb(228, 237, 253)";
10073
10087
  readonly "200": "rgb(211, 226, 255)";
10074
10088
  readonly "300": "rgb(183, 200, 254)";
10075
- readonly "400": "rgb(103, 158, 254)";
10089
+ readonly "400": "rgb(122, 170, 255)";
10076
10090
  readonly "450": "rgb(86, 134, 254)";
10077
10091
  readonly "500": "rgb(65, 118, 230)";
10078
10092
  readonly "600": "rgb(72, 104, 178)";
@@ -10085,7 +10099,11 @@ declare const designTokens: {
10085
10099
  readonly green: {
10086
10100
  readonly "100": "rgb(230, 250, 237)";
10087
10101
  readonly "400": "rgb(78, 209, 126)";
10088
- readonly "500": "rgb(34, 197, 94)";
10102
+ readonly "500": {
10103
+ readonly $: "rgb(34, 197, 94)";
10104
+ readonly a08: "rgb(34 197 94 / 8%)";
10105
+ readonly a12: "rgb(34 197 94 / 12%)";
10106
+ };
10089
10107
  readonly "900": "rgb(35, 60, 44)";
10090
10108
  };
10091
10109
  readonly neutral: {
@@ -10130,9 +10148,15 @@ declare const designTokens: {
10130
10148
  readonly red: {
10131
10149
  readonly "50": "rgb(254, 242, 242)";
10132
10150
  readonly "100": "rgb(254, 226, 226)";
10133
- readonly "400": "rgb(242, 90, 90)";
10151
+ readonly "400": {
10152
+ readonly $: "rgb(242, 90, 90)";
10153
+ readonly a12: "rgb(242 90 90 / 12%)";
10154
+ };
10134
10155
  readonly "500": "rgb(239, 68, 68)";
10135
- readonly "600": "rgb(236, 19, 19)";
10156
+ readonly "600": {
10157
+ readonly $: "rgb(236, 19, 19)";
10158
+ readonly a08: "rgb(236 19 19 / 8%)";
10159
+ };
10136
10160
  readonly "900": "rgb(87, 12, 12)";
10137
10161
  };
10138
10162
  };
@@ -10231,6 +10255,12 @@ declare const dsw: TokenVars<{
10231
10255
  };
10232
10256
  };
10233
10257
  };
10258
+ readonly code: {
10259
+ readonly diff: {
10260
+ readonly added: "var(--dsw-static-green-500-a08)";
10261
+ readonly deleted: "var(--dsw-static-red-600-a08)";
10262
+ };
10263
+ };
10234
10264
  readonly interactive: {
10235
10265
  readonly bg: {
10236
10266
  readonly active: "rgba(38, 49, 72, 0.1)";
@@ -10296,6 +10326,9 @@ declare const dsw: TokenVars<{
10296
10326
  readonly primary: "var(--dsw-static-red-600)";
10297
10327
  readonly secondary: "var(--dsw-static-red-400)";
10298
10328
  };
10329
+ readonly idle: {
10330
+ readonly primary: "var(--dsw-static-neutral-300)";
10331
+ };
10299
10332
  readonly success: {
10300
10333
  readonly primary: "var(--dsw-static-green-500)";
10301
10334
  readonly secondary: "var(--dsw-static-green-400)";
@@ -10729,6 +10762,11 @@ declare const dsw: TokenVars<{
10729
10762
  readonly mask: {
10730
10763
  readonly blur: "blur(2px)";
10731
10764
  };
10765
+ readonly menu: {
10766
+ readonly backdrop: {
10767
+ readonly filter: "blur(40px) saturate(150%)";
10768
+ };
10769
+ };
10732
10770
  readonly shadow: {
10733
10771
  readonly lv1: {
10734
10772
  readonly $: "0 2px 4px 0 rgba(0, 0, 0, 0.05)";
@@ -10748,7 +10786,7 @@ declare const dsw: TokenVars<{
10748
10786
  readonly login: {
10749
10787
  readonly input: "var(--dsw-static-neutral-bluish-50)";
10750
10788
  };
10751
- readonly menu: "var(--dsw-alias-bg-layer-3)";
10789
+ readonly menu: "rgba(248, 249, 250, 0.58)";
10752
10790
  readonly selector: "var(--dsw-static-neutral-bluish-60)";
10753
10791
  readonly sidebar: {
10754
10792
  readonly fill: "var(--dsw-static-neutral-bluish-50)";
@@ -10791,7 +10829,7 @@ declare const dsw: TokenVars<{
10791
10829
  readonly "100": "rgb(228, 237, 253)";
10792
10830
  readonly "200": "rgb(211, 226, 255)";
10793
10831
  readonly "300": "rgb(183, 200, 254)";
10794
- readonly "400": "rgb(103, 158, 254)";
10832
+ readonly "400": "rgb(122, 170, 255)";
10795
10833
  readonly "450": "rgb(86, 134, 254)";
10796
10834
  readonly "500": "rgb(65, 118, 230)";
10797
10835
  readonly "600": "rgb(72, 104, 178)";
@@ -10804,7 +10842,11 @@ declare const dsw: TokenVars<{
10804
10842
  readonly green: {
10805
10843
  readonly "100": "rgb(230, 250, 237)";
10806
10844
  readonly "400": "rgb(78, 209, 126)";
10807
- readonly "500": "rgb(34, 197, 94)";
10845
+ readonly "500": {
10846
+ readonly $: "rgb(34, 197, 94)";
10847
+ readonly a08: "rgb(34 197 94 / 8%)";
10848
+ readonly a12: "rgb(34 197 94 / 12%)";
10849
+ };
10808
10850
  readonly "900": "rgb(35, 60, 44)";
10809
10851
  };
10810
10852
  readonly neutral: {
@@ -10849,9 +10891,15 @@ declare const dsw: TokenVars<{
10849
10891
  readonly red: {
10850
10892
  readonly "50": "rgb(254, 242, 242)";
10851
10893
  readonly "100": "rgb(254, 226, 226)";
10852
- readonly "400": "rgb(242, 90, 90)";
10894
+ readonly "400": {
10895
+ readonly $: "rgb(242, 90, 90)";
10896
+ readonly a12: "rgb(242 90 90 / 12%)";
10897
+ };
10853
10898
  readonly "500": "rgb(239, 68, 68)";
10854
- readonly "600": "rgb(236, 19, 19)";
10899
+ readonly "600": {
10900
+ readonly $: "rgb(236, 19, 19)";
10901
+ readonly a08: "rgb(236 19 19 / 8%)";
10902
+ };
10855
10903
  readonly "900": "rgb(87, 12, 12)";
10856
10904
  };
10857
10905
  };
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "UI Primitives",
4
+ "description": "css-in-js styling layer plus the shared reference parser and renderer for the forked conversation UI."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "UI 基础层",
4
+ "description": "css-in-js 样式层,以及被 fork 的对话 UI 共用的引用解析与渲染转换。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morlay/dsh-client-ui-primitives",
3
- "version": "0.0.2-alpha.5",
3
+ "version": "0.0.2-alpha.7",
4
4
  "description": "css-in-js styling kit (styled / Token / Styling) for the forked conversation UI: consumes the official --dsw-* design tokens, so no CSS Modules precompile step is needed.",
5
5
  "keywords": [
6
6
  "client",
@@ -16,6 +16,7 @@
16
16
  "url": "https://github.com/morlay/dsh-plugin.git"
17
17
  },
18
18
  "files": [
19
+ "locale/*.json",
19
20
  "dist",
20
21
  "src",
21
22
  "cordis.patch.yml",
@@ -29,7 +30,8 @@
29
30
  "./client": {
30
31
  "types": "./dist/client.d.cts",
31
32
  "default": "./dist/client.cjs"
32
- }
33
+ },
34
+ "./locale/*.json": "./locale/*.json"
33
35
  },
34
36
  "dependencies": {
35
37
  "mdast-util-from-markdown": "^2.0.3",
@@ -40,7 +42,7 @@
40
42
  "micromark-util-types": "^2.0.2"
41
43
  },
42
44
  "devDependencies": {
43
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.6-alpha.2",
45
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.7-alpha.2",
44
46
  "@types/mdast": "^4.0.4",
45
47
  "@types/react": "~18.3.1",
46
48
  "csstype": "^3.1.3",
@@ -48,7 +50,7 @@
48
50
  "react-dom": "^18.2.0"
49
51
  },
50
52
  "peerDependencies": {
51
- "@deepseek-ai/cordis": "4.0.2"
53
+ "@deepseek-ai/cordis": "4.0.4"
52
54
  },
53
55
  "dsh": {
54
56
  "client": {