@morlay/dsh-client-ui-primitives 0.0.3 → 0.0.4

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.cjs CHANGED
@@ -2127,7 +2127,7 @@ window.__ModuleLoader__.load({
2127
2127
  //#endregion
2128
2128
  //#region src/client/theme.generated.ts
2129
2129
  /**
2130
- * 官方主题的 `--dsw-*` token 全集(395 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
2130
+ * 官方主题的 `--dsw-*` token 全集(400 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
2131
2131
  *
2132
2132
  * 叶子是该变量的**默认值**(官方 light 主题里首次出现的定义):既是类型推导的来源,也可作 fallback。
2133
2133
  * `"$"` 键出现在「自身也是 token 的分支」上(命名体系里有 40 个短名同时是长名前缀的 token)。
@@ -2137,7 +2137,10 @@ window.__ModuleLoader__.load({
2137
2137
  alias: {
2138
2138
  bg: {
2139
2139
  base: "var(--dsw-static-neutral-bluish-00)",
2140
- document: { preview: "var(--dsw-static-neutral-bluish-100)" },
2140
+ document: {
2141
+ preview: "var(--dsw-static-neutral-bluish-100)",
2142
+ selection: "color-mix(in srgb, var(--dsw-static-blue-500) 40%, transparent)"
2143
+ },
2141
2144
  layer: {
2142
2145
  "1": "var(--dsw-static-neutral-bluish-00)",
2143
2146
  "2": "var(--dsw-static-neutral-bluish-00)",
@@ -2230,6 +2233,10 @@ window.__ModuleLoader__.load({
2230
2233
  } },
2231
2234
  label: {
2232
2235
  caption: "var(--dsw-static-neutral-bluish-400)",
2236
+ deep: { diving: {
2237
+ $: "color-mix(in srgb, var(--dsw-static-deepseek-500) 70%, var(--dsw-static-blue-950))",
2238
+ shimmer: "color-mix(in srgb, var(--dsw-static-deepseek-500) 30%, var(--dsw-static-blue-950))"
2239
+ } },
2233
2240
  dimmed: "var(--dsw-static-neutral-bluish-200)",
2234
2241
  document: { preview: "var(--dsw-static-neutral-bluish-700)" },
2235
2242
  primary: {
@@ -2240,6 +2247,7 @@ window.__ModuleLoader__.load({
2240
2247
  inverted: "var(--dsw-static-neutral-bluish-00)"
2241
2248
  },
2242
2249
  secondary: "var(--dsw-static-neutral-bluish-700)",
2250
+ shimmer: "color-mix(in srgb, var(--dsw-static-neutral-1000) 30%, transparent)",
2243
2251
  tertiary: "var(--dsw-static-neutral-bluish-600)"
2244
2252
  },
2245
2253
  link: "var(--dsw-static-deepseek-500)",
@@ -2302,6 +2310,7 @@ window.__ModuleLoader__.load({
2302
2310
  tertiary: "var(--dsw-static-amber-100)"
2303
2311
  }
2304
2312
  },
2313
+ switch: { thumb: "var(--dsw-static-neutral-bluish-00)" },
2305
2314
  toast: {
2306
2315
  bg: "var(--dsw-static-neutral-bluish-800)",
2307
2316
  label: "var(--dsw-static-neutral-bluish-00)"
package/dist/client.d.cts CHANGED
@@ -9419,7 +9419,7 @@ declare function styleOf(component: StyledComponent<ElementType>): CSSProps;
9419
9419
  //#endregion
9420
9420
  //#region src/client/theme.generated.d.ts
9421
9421
  /**
9422
- * 官方主题的 `--dsw-*` token 全集(395 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
9422
+ * 官方主题的 `--dsw-*` token 全集(400 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
9423
9423
  *
9424
9424
  * 叶子是该变量的**默认值**(官方 light 主题里首次出现的定义):既是类型推导的来源,也可作 fallback。
9425
9425
  * `"$"` 键出现在「自身也是 token 的分支」上(命名体系里有 40 个短名同时是长名前缀的 token)。
@@ -9431,6 +9431,7 @@ declare const designTokens: {
9431
9431
  readonly base: "var(--dsw-static-neutral-bluish-00)";
9432
9432
  readonly document: {
9433
9433
  readonly preview: "var(--dsw-static-neutral-bluish-100)";
9434
+ readonly selection: "color-mix(in srgb, var(--dsw-static-blue-500) 40%, transparent)";
9434
9435
  };
9435
9436
  readonly layer: {
9436
9437
  readonly "1": "var(--dsw-static-neutral-bluish-00)";
@@ -9550,6 +9551,12 @@ declare const designTokens: {
9550
9551
  };
9551
9552
  readonly label: {
9552
9553
  readonly caption: "var(--dsw-static-neutral-bluish-400)";
9554
+ readonly deep: {
9555
+ readonly diving: {
9556
+ readonly $: "color-mix(in srgb, var(--dsw-static-deepseek-500) 70%, var(--dsw-static-blue-950))";
9557
+ readonly shimmer: "color-mix(in srgb, var(--dsw-static-deepseek-500) 30%, var(--dsw-static-blue-950))";
9558
+ };
9559
+ };
9553
9560
  readonly dimmed: "var(--dsw-static-neutral-bluish-200)";
9554
9561
  readonly document: {
9555
9562
  readonly preview: "var(--dsw-static-neutral-bluish-700)";
@@ -9562,6 +9569,7 @@ declare const designTokens: {
9562
9569
  readonly inverted: "var(--dsw-static-neutral-bluish-00)";
9563
9570
  };
9564
9571
  readonly secondary: "var(--dsw-static-neutral-bluish-700)";
9572
+ readonly shimmer: "color-mix(in srgb, var(--dsw-static-neutral-1000) 30%, transparent)";
9565
9573
  readonly tertiary: "var(--dsw-static-neutral-bluish-600)";
9566
9574
  };
9567
9575
  readonly link: "var(--dsw-static-deepseek-500)";
@@ -9638,6 +9646,9 @@ declare const designTokens: {
9638
9646
  readonly tertiary: "var(--dsw-static-amber-100)";
9639
9647
  };
9640
9648
  };
9649
+ readonly switch: {
9650
+ readonly thumb: "var(--dsw-static-neutral-bluish-00)";
9651
+ };
9641
9652
  readonly toast: {
9642
9653
  readonly bg: "var(--dsw-static-neutral-bluish-800)";
9643
9654
  readonly label: "var(--dsw-static-neutral-bluish-00)";
@@ -10246,6 +10257,7 @@ declare const dsw: TokenVars<{
10246
10257
  readonly base: "var(--dsw-static-neutral-bluish-00)";
10247
10258
  readonly document: {
10248
10259
  readonly preview: "var(--dsw-static-neutral-bluish-100)";
10260
+ readonly selection: "color-mix(in srgb, var(--dsw-static-blue-500) 40%, transparent)";
10249
10261
  };
10250
10262
  readonly layer: {
10251
10263
  readonly "1": "var(--dsw-static-neutral-bluish-00)";
@@ -10365,6 +10377,12 @@ declare const dsw: TokenVars<{
10365
10377
  };
10366
10378
  readonly label: {
10367
10379
  readonly caption: "var(--dsw-static-neutral-bluish-400)";
10380
+ readonly deep: {
10381
+ readonly diving: {
10382
+ readonly $: "color-mix(in srgb, var(--dsw-static-deepseek-500) 70%, var(--dsw-static-blue-950))";
10383
+ readonly shimmer: "color-mix(in srgb, var(--dsw-static-deepseek-500) 30%, var(--dsw-static-blue-950))";
10384
+ };
10385
+ };
10368
10386
  readonly dimmed: "var(--dsw-static-neutral-bluish-200)";
10369
10387
  readonly document: {
10370
10388
  readonly preview: "var(--dsw-static-neutral-bluish-700)";
@@ -10377,6 +10395,7 @@ declare const dsw: TokenVars<{
10377
10395
  readonly inverted: "var(--dsw-static-neutral-bluish-00)";
10378
10396
  };
10379
10397
  readonly secondary: "var(--dsw-static-neutral-bluish-700)";
10398
+ readonly shimmer: "color-mix(in srgb, var(--dsw-static-neutral-1000) 30%, transparent)";
10380
10399
  readonly tertiary: "var(--dsw-static-neutral-bluish-600)";
10381
10400
  };
10382
10401
  readonly link: "var(--dsw-static-deepseek-500)";
@@ -10453,6 +10472,9 @@ declare const dsw: TokenVars<{
10453
10472
  readonly tertiary: "var(--dsw-static-amber-100)";
10454
10473
  };
10455
10474
  };
10475
+ readonly switch: {
10476
+ readonly thumb: "var(--dsw-static-neutral-bluish-00)";
10477
+ };
10456
10478
  readonly toast: {
10457
10479
  readonly bg: "var(--dsw-static-neutral-bluish-800)";
10458
10480
  readonly label: "var(--dsw-static-neutral-bluish-00)";
package/dist/client.d.mts CHANGED
@@ -9418,7 +9418,7 @@ declare function styleOf(component: StyledComponent<ElementType>): CSSProps;
9418
9418
  //#endregion
9419
9419
  //#region src/client/theme.generated.d.ts
9420
9420
  /**
9421
- * 官方主题的 `--dsw-*` token 全集(395 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
9421
+ * 官方主题的 `--dsw-*` token 全集(400 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
9422
9422
  *
9423
9423
  * 叶子是该变量的**默认值**(官方 light 主题里首次出现的定义):既是类型推导的来源,也可作 fallback。
9424
9424
  * `"$"` 键出现在「自身也是 token 的分支」上(命名体系里有 40 个短名同时是长名前缀的 token)。
@@ -9430,6 +9430,7 @@ declare const designTokens: {
9430
9430
  readonly base: "var(--dsw-static-neutral-bluish-00)";
9431
9431
  readonly document: {
9432
9432
  readonly preview: "var(--dsw-static-neutral-bluish-100)";
9433
+ readonly selection: "color-mix(in srgb, var(--dsw-static-blue-500) 40%, transparent)";
9433
9434
  };
9434
9435
  readonly layer: {
9435
9436
  readonly "1": "var(--dsw-static-neutral-bluish-00)";
@@ -9549,6 +9550,12 @@ declare const designTokens: {
9549
9550
  };
9550
9551
  readonly label: {
9551
9552
  readonly caption: "var(--dsw-static-neutral-bluish-400)";
9553
+ readonly deep: {
9554
+ readonly diving: {
9555
+ readonly $: "color-mix(in srgb, var(--dsw-static-deepseek-500) 70%, var(--dsw-static-blue-950))";
9556
+ readonly shimmer: "color-mix(in srgb, var(--dsw-static-deepseek-500) 30%, var(--dsw-static-blue-950))";
9557
+ };
9558
+ };
9552
9559
  readonly dimmed: "var(--dsw-static-neutral-bluish-200)";
9553
9560
  readonly document: {
9554
9561
  readonly preview: "var(--dsw-static-neutral-bluish-700)";
@@ -9561,6 +9568,7 @@ declare const designTokens: {
9561
9568
  readonly inverted: "var(--dsw-static-neutral-bluish-00)";
9562
9569
  };
9563
9570
  readonly secondary: "var(--dsw-static-neutral-bluish-700)";
9571
+ readonly shimmer: "color-mix(in srgb, var(--dsw-static-neutral-1000) 30%, transparent)";
9564
9572
  readonly tertiary: "var(--dsw-static-neutral-bluish-600)";
9565
9573
  };
9566
9574
  readonly link: "var(--dsw-static-deepseek-500)";
@@ -9637,6 +9645,9 @@ declare const designTokens: {
9637
9645
  readonly tertiary: "var(--dsw-static-amber-100)";
9638
9646
  };
9639
9647
  };
9648
+ readonly switch: {
9649
+ readonly thumb: "var(--dsw-static-neutral-bluish-00)";
9650
+ };
9640
9651
  readonly toast: {
9641
9652
  readonly bg: "var(--dsw-static-neutral-bluish-800)";
9642
9653
  readonly label: "var(--dsw-static-neutral-bluish-00)";
@@ -10245,6 +10256,7 @@ declare const dsw: TokenVars<{
10245
10256
  readonly base: "var(--dsw-static-neutral-bluish-00)";
10246
10257
  readonly document: {
10247
10258
  readonly preview: "var(--dsw-static-neutral-bluish-100)";
10259
+ readonly selection: "color-mix(in srgb, var(--dsw-static-blue-500) 40%, transparent)";
10248
10260
  };
10249
10261
  readonly layer: {
10250
10262
  readonly "1": "var(--dsw-static-neutral-bluish-00)";
@@ -10364,6 +10376,12 @@ declare const dsw: TokenVars<{
10364
10376
  };
10365
10377
  readonly label: {
10366
10378
  readonly caption: "var(--dsw-static-neutral-bluish-400)";
10379
+ readonly deep: {
10380
+ readonly diving: {
10381
+ readonly $: "color-mix(in srgb, var(--dsw-static-deepseek-500) 70%, var(--dsw-static-blue-950))";
10382
+ readonly shimmer: "color-mix(in srgb, var(--dsw-static-deepseek-500) 30%, var(--dsw-static-blue-950))";
10383
+ };
10384
+ };
10367
10385
  readonly dimmed: "var(--dsw-static-neutral-bluish-200)";
10368
10386
  readonly document: {
10369
10387
  readonly preview: "var(--dsw-static-neutral-bluish-700)";
@@ -10376,6 +10394,7 @@ declare const dsw: TokenVars<{
10376
10394
  readonly inverted: "var(--dsw-static-neutral-bluish-00)";
10377
10395
  };
10378
10396
  readonly secondary: "var(--dsw-static-neutral-bluish-700)";
10397
+ readonly shimmer: "color-mix(in srgb, var(--dsw-static-neutral-1000) 30%, transparent)";
10379
10398
  readonly tertiary: "var(--dsw-static-neutral-bluish-600)";
10380
10399
  };
10381
10400
  readonly link: "var(--dsw-static-deepseek-500)";
@@ -10452,6 +10471,9 @@ declare const dsw: TokenVars<{
10452
10471
  readonly tertiary: "var(--dsw-static-amber-100)";
10453
10472
  };
10454
10473
  };
10474
+ readonly switch: {
10475
+ readonly thumb: "var(--dsw-static-neutral-bluish-00)";
10476
+ };
10455
10477
  readonly toast: {
10456
10478
  readonly bg: "var(--dsw-static-neutral-bluish-800)";
10457
10479
  readonly label: "var(--dsw-static-neutral-bluish-00)";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morlay/dsh-client-ui-primitives",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "css-in-js styling kit (styled / Token / Styling) plus the shared reference parser and renderer (findReferences / parseReferenceToken) 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",
@@ -40,15 +40,15 @@
40
40
  "micromark-util-types": "^2.0.2"
41
41
  },
42
42
  "devDependencies": {
43
- "@deepseek-ai/dsh-api-remotes": "0.1.7-rc.2",
44
- "@deepseek-ai/dsh-client-locale": "0.1.7-rc.2",
45
- "@deepseek-ai/dsh-client-store": "0.1.7-rc.2",
46
- "@deepseek-ai/dsh-client-ui-plugin-manager": "0.1.7-rc.2",
47
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.2",
48
- "@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2",
49
- "@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.2",
50
- "@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.2",
51
- "@deepseek-ai/dsh-util-values": "0.1.7-rc.2",
43
+ "@deepseek-ai/dsh-api-remotes": "0.2.0-rc.1",
44
+ "@deepseek-ai/dsh-client-locale": "0.2.0-rc.1",
45
+ "@deepseek-ai/dsh-client-store": "0.2.0-rc.1",
46
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.0-rc.1",
47
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.1",
48
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.1",
49
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.1",
50
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.1",
51
+ "@deepseek-ai/dsh-util-values": "0.2.0-rc.1",
52
52
  "@deepseek-ai/schemastery": "3.18.4",
53
53
  "@testing-library/react": "^16.3.0",
54
54
  "@types/mdast": "^4.0.4",
@@ -59,13 +59,13 @@
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@deepseek-ai/cordis": "^4.0.4",
62
- "@deepseek-ai/dsh-api-remotes": "^0.1.7-rc.2",
63
- "@deepseek-ai/dsh-client-locale": "^0.1.7-rc.2",
64
- "@deepseek-ai/dsh-client-store": "^0.1.7-rc.2",
65
- "@deepseek-ai/dsh-client-ui-plugin-manager": "^0.1.7-rc.2",
66
- "@deepseek-ai/dsh-client-ui-renderer": "^0.1.7-rc.2",
67
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.7-rc.2",
68
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.7-rc.2"
62
+ "@deepseek-ai/dsh-api-remotes": "^0.2.0-rc.1",
63
+ "@deepseek-ai/dsh-client-locale": "^0.2.0-rc.1",
64
+ "@deepseek-ai/dsh-client-store": "^0.2.0-rc.1",
65
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "^0.2.0-rc.1",
66
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.2.0-rc.1",
67
+ "@deepseek-ai/dsh-client-ui-settings": "^0.2.0-rc.1",
68
+ "@deepseek-ai/dsh-client-ui-slots": "^0.2.0-rc.1"
69
69
  },
70
70
  "dsh": {
71
71
  "client": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 官方主题的 `--dsw-*` token 全集(395 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
2
+ * 官方主题的 `--dsw-*` token 全集(400 个),由 packages/client/ui-primitives/scripts/gen-design-tokens.mts 生成,勿手改。
3
3
  *
4
4
  * 叶子是该变量的**默认值**(官方 light 主题里首次出现的定义):既是类型推导的来源,也可作 fallback。
5
5
  * `"$"` 键出现在「自身也是 token 的分支」上(命名体系里有 40 个短名同时是长名前缀的 token)。
@@ -11,6 +11,7 @@ export const designTokens = {
11
11
  base: "var(--dsw-static-neutral-bluish-00)",
12
12
  document: {
13
13
  preview: "var(--dsw-static-neutral-bluish-100)",
14
+ selection: "color-mix(in srgb, var(--dsw-static-blue-500) 40%, transparent)",
14
15
  },
15
16
  layer: {
16
17
  "1": "var(--dsw-static-neutral-bluish-00)",
@@ -130,6 +131,13 @@ export const designTokens = {
130
131
  },
131
132
  label: {
132
133
  caption: "var(--dsw-static-neutral-bluish-400)",
134
+ deep: {
135
+ diving: {
136
+ $: "color-mix(in srgb, var(--dsw-static-deepseek-500) 70%, var(--dsw-static-blue-950))",
137
+ shimmer:
138
+ "color-mix(in srgb, var(--dsw-static-deepseek-500) 30%, var(--dsw-static-blue-950))",
139
+ },
140
+ },
133
141
  dimmed: "var(--dsw-static-neutral-bluish-200)",
134
142
  document: {
135
143
  preview: "var(--dsw-static-neutral-bluish-700)",
@@ -142,6 +150,7 @@ export const designTokens = {
142
150
  inverted: "var(--dsw-static-neutral-bluish-00)",
143
151
  },
144
152
  secondary: "var(--dsw-static-neutral-bluish-700)",
153
+ shimmer: "color-mix(in srgb, var(--dsw-static-neutral-1000) 30%, transparent)",
145
154
  tertiary: "var(--dsw-static-neutral-bluish-600)",
146
155
  },
147
156
  link: "var(--dsw-static-deepseek-500)",
@@ -218,6 +227,9 @@ export const designTokens = {
218
227
  tertiary: "var(--dsw-static-amber-100)",
219
228
  },
220
229
  },
230
+ switch: {
231
+ thumb: "var(--dsw-static-neutral-bluish-00)",
232
+ },
221
233
  toast: {
222
234
  bg: "var(--dsw-static-neutral-bluish-800)",
223
235
  label: "var(--dsw-static-neutral-bluish-00)",