@svadmin/core 0.84.0 → 0.84.2

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": "@svadmin/core",
3
- "version": "0.84.0",
3
+ "version": "0.84.2",
4
4
  "author": "zuohuadong",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Color scale generation and theme-token exchange.
3
3
  *
4
- * Capability parity with the Arco ecosystem's `@arco-design/color` + theme
5
- * editor: derive a tonal scale from one brand color, build light/dark CSS
4
+ * Capability parity with the reference ecosystem's tone-scale generator and
5
+ * theme editor: derive a tonal scale from one brand color, build light/dark CSS
6
6
  * variable bundles, and exchange presets as portable JSON.
7
7
  *
8
8
  * Boundaries (intentional):
@@ -220,10 +220,10 @@ function contrastAdjusted(
220
220
  const SCALE_LIGHTNESS_STEP = (0.975 - 0.26) / 9;
221
221
 
222
222
  /**
223
- * Official Arco hover (5) / pressed (7) / disabled fill (3) for the written
223
+ * Reference hover (5) / pressed (7) / disabled fill (3) for the written
224
224
  * product bases. `#165DFF` is the CSS default and must not be regenerated.
225
- * Dark values are the compiled `body[arco-theme=dark]` channels from
226
- * `@arco-design/web-react` 2.66.1, not the light scale reversed by hand.
225
+ * Dark values are the compiled dark-theme channels of the reference component
226
+ * library 2.66.1, not the light scale reversed by hand.
227
227
  */
228
228
  const OFFICIAL_INTERACTION_RAMPS: Record<string, { hover: string; pressed: string; disabled: string }> = {
229
229
  '#165DFF': { hover: '#4080FF', pressed: '#0E42D2', disabled: '#94BFFF' },
@@ -263,7 +263,7 @@ function parseOklchColor(color: string): { l: number; c: number; h: number } | u
263
263
 
264
264
  /**
265
265
  * Hover / pressed / disabled fills for one brand color.
266
- * Known Arco bases return the official hex. Every other color shifts lightness
266
+ * Known reference bases return the pinned hex. Every other color shifts lightness
267
267
  * by the existing OKLCH scale step so imported themes stay on the same ramp.
268
268
  */
269
269
  export function interactionRamps(color: string): InteractionRamps {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 文案格式层,对齐 Arco 文案规范里已经有宿主可用的几条:
2
+ * 文案格式层,对齐通用后台文案规范里已经有宿主可用的几条:
3
3
  * 24 小时制、超过四位整数才千分位、中西文之间留空格、省略号用「…」。
4
4
  * 不是一套新的 i18n 框架。
5
5
  */
@@ -623,7 +623,7 @@ export function unregisterThemeOwner(token: ThemeOwnerToken|undefined): void {
623
623
 
624
624
  /**
625
625
  * Derive a full tonal palette from one brand color and register it.
626
- * Mirrors the Arco `@arco-design/color` capability without a Less variable layer.
626
+ * Mirrors the reference tone-scale capability without a Less variable layer.
627
627
  */
628
628
  export function registerColorTheme(input: { name: string; label?: string; color: string }): ColorPreset {
629
629
  const derived=deriveColorPreset(input);