@spectrabrain/eds 0.1.1 → 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.
package/dist/tokens.d.mts CHANGED
@@ -1,6 +1,7 @@
1
- type SemanticTokenName = "color-bg-brand-primary" | "color-bg-brand-primary-hover" | "color-bg-brand-weak" | "color-bg-brand-weak-hover" | "color-bg-critical-primary" | "color-bg-critical-primary-hover" | "color-bg-critical-weak" | "color-bg-critical-weak-hover" | "color-bg-disabled" | "color-bg-informative-primary" | "color-bg-informative-primary-hover" | "color-bg-informative-weak" | "color-bg-informative-weak-hover" | "color-bg-layer-basement" | "color-bg-layer-basement-hover" | "color-bg-layer-default" | "color-bg-layer-default-hover" | "color-bg-layer-floating" | "color-bg-layer-floating-hover" | "color-bg-neutral-inverted" | "color-bg-neutral-inverted-hover" | "color-bg-neutral-primary" | "color-bg-neutral-primary-hover" | "color-bg-neutral-weak" | "color-bg-neutral-weak-hover" | "color-bg-positive-primary" | "color-bg-positive-primary-hover" | "color-bg-positive-weak" | "color-bg-positive-weak-hover" | "color-bg-transparent" | "color-bg-transparent-hover" | "color-bg-warning-primary" | "color-bg-warning-primary-hover" | "color-bg-warning-weak" | "color-bg-warning-weak-hover" | "color-fg-brand" | "color-fg-brand-contrast" | "color-fg-critical" | "color-fg-critical-contrast" | "color-fg-disabled" | "color-fg-focus" | "color-fg-informative" | "color-fg-informative-contrast" | "color-fg-neutral" | "color-fg-neutral-inverted" | "color-fg-neutral-secondary" | "color-fg-neutral-tertiary" | "color-fg-placeholder" | "color-fg-positive" | "color-fg-positive-contrast" | "color-fg-warning" | "color-fg-warning-contrast" | "color-stroke-brand-primary" | "color-stroke-brand-weak" | "color-stroke-critical-primary" | "color-stroke-critical-weak" | "color-stroke-focusRing" | "color-stroke-informative-primary" | "color-stroke-informative-weak" | "color-stroke-neutral-contrast" | "color-stroke-neutral-primary" | "color-stroke-neutral-secondary" | "color-stroke-neutral-tertiary" | "color-stroke-neutral-weak" | "color-stroke-positive-primary" | "color-stroke-positive-weak" | "color-stroke-warning-primary" | "color-stroke-warning-weak" | "typography-body1-fontFamily" | "typography-body1-fontSize" | "typography-body1-fontWeight" | "typography-body1-letterSpacing" | "typography-body1-lineHeight" | "typography-body2-fontFamily" | "typography-body2-fontSize" | "typography-body2-fontWeight" | "typography-body2-letterSpacing" | "typography-body2-lineHeight" | "typography-body3-fontFamily" | "typography-body3-fontSize" | "typography-body3-fontWeight" | "typography-body3-letterSpacing" | "typography-body3-lineHeight" | "typography-body4-fontFamily" | "typography-body4-fontSize" | "typography-body4-fontWeight" | "typography-body4-letterSpacing" | "typography-body4-lineHeight" | "typography-caption1-fontFamily" | "typography-caption1-fontSize" | "typography-caption1-fontWeight" | "typography-caption1-letterSpacing" | "typography-caption1-lineHeight" | "typography-caption2-fontFamily" | "typography-caption2-fontSize" | "typography-caption2-fontWeight" | "typography-caption2-letterSpacing" | "typography-caption2-lineHeight" | "typography-caption3-fontFamily" | "typography-caption3-fontSize" | "typography-caption3-fontWeight" | "typography-caption3-letterSpacing" | "typography-caption3-lineHeight" | "typography-display1-fontFamily" | "typography-display1-fontSize" | "typography-display1-fontWeight" | "typography-display1-letterSpacing" | "typography-display1-lineHeight" | "typography-display2-fontFamily" | "typography-display2-fontSize" | "typography-display2-fontWeight" | "typography-display2-letterSpacing" | "typography-display2-lineHeight" | "typography-heading1-fontFamily" | "typography-heading1-fontSize" | "typography-heading1-fontWeight" | "typography-heading1-letterSpacing" | "typography-heading1-lineHeight" | "typography-heading2-fontFamily" | "typography-heading2-fontSize" | "typography-heading2-fontWeight" | "typography-heading2-letterSpacing" | "typography-heading2-lineHeight" | "typography-heading3-fontFamily" | "typography-heading3-fontSize" | "typography-heading3-fontWeight" | "typography-heading3-letterSpacing" | "typography-heading3-lineHeight" | "typography-heading4-fontFamily" | "typography-heading4-fontSize" | "typography-heading4-fontWeight" | "typography-heading4-letterSpacing" | "typography-heading4-lineHeight" | "typography-title1-fontFamily" | "typography-title1-fontSize" | "typography-title1-fontWeight" | "typography-title1-letterSpacing" | "typography-title1-lineHeight" | "typography-title2-fontFamily" | "typography-title2-fontSize" | "typography-title2-fontWeight" | "typography-title2-letterSpacing" | "typography-title2-lineHeight" | "typography-title3-fontFamily" | "typography-title3-fontSize" | "typography-title3-fontWeight" | "typography-title3-letterSpacing" | "typography-title3-lineHeight" | "typography-title4-fontFamily" | "typography-title4-fontSize" | "typography-title4-fontWeight" | "typography-title4-letterSpacing" | "typography-title4-lineHeight";
1
+ type SemanticTokenName = "color-bg-brand-primary" | "color-bg-brand-primary-hover" | "color-bg-brand-weak" | "color-bg-brand-weak-hover" | "color-bg-critical-primary" | "color-bg-critical-primary-hover" | "color-bg-critical-weak" | "color-bg-critical-weak-hover" | "color-bg-disabled" | "color-bg-informative-primary" | "color-bg-informative-primary-hover" | "color-bg-informative-weak" | "color-bg-informative-weak-hover" | "color-bg-layer-basement" | "color-bg-layer-basement-hover" | "color-bg-layer-default" | "color-bg-layer-default-hover" | "color-bg-layer-floating" | "color-bg-layer-floating-hover" | "color-bg-neutral-inverted" | "color-bg-neutral-inverted-hover" | "color-bg-neutral-primary" | "color-bg-neutral-primary-hover" | "color-bg-neutral-weak" | "color-bg-neutral-weak-hover" | "color-bg-positive-primary" | "color-bg-positive-primary-hover" | "color-bg-positive-weak" | "color-bg-positive-weak-hover" | "color-bg-transparent" | "color-bg-transparent-hover" | "color-bg-warning-primary" | "color-bg-warning-primary-hover" | "color-bg-warning-weak" | "color-bg-warning-weak-hover" | "color-fg-brand" | "color-fg-brand-contrast" | "color-fg-critical" | "color-fg-critical-contrast" | "color-fg-disabled" | "color-fg-focus" | "color-fg-informative" | "color-fg-informative-contrast" | "color-fg-neutral" | "color-fg-neutral-inverted" | "color-fg-neutral-secondary" | "color-fg-neutral-tertiary" | "color-fg-placeholder" | "color-fg-positive" | "color-fg-positive-contrast" | "color-fg-warning" | "color-fg-warning-contrast" | "color-stroke-brand-primary" | "color-stroke-brand-weak" | "color-stroke-critical-primary" | "color-stroke-critical-weak" | "color-stroke-focusRing" | "color-stroke-informative-primary" | "color-stroke-informative-weak" | "color-stroke-neutral-contrast" | "color-stroke-neutral-primary" | "color-stroke-neutral-secondary" | "color-stroke-neutral-tertiary" | "color-stroke-neutral-weak" | "color-stroke-positive-primary" | "color-stroke-positive-weak" | "color-stroke-warning-primary" | "color-stroke-warning-weak" | "radius-1" | "radius-10" | "radius-2" | "radius-3" | "radius-4" | "radius-5" | "radius-6" | "radius-7" | "radius-8" | "radius-9" | "radius-none" | "spacing-0.5" | "spacing-1" | "spacing-1.5" | "spacing-10" | "spacing-11" | "spacing-12" | "spacing-2" | "spacing-2.5" | "spacing-3" | "spacing-3.5" | "spacing-4" | "spacing-4.5" | "spacing-5" | "spacing-6" | "spacing-7" | "spacing-7.5" | "spacing-8" | "spacing-9" | "spacing-none" | "typography-body1-fontFamily" | "typography-body1-fontSize" | "typography-body1-fontWeight" | "typography-body1-letterSpacing" | "typography-body1-lineHeight" | "typography-body2-fontFamily" | "typography-body2-fontSize" | "typography-body2-fontWeight" | "typography-body2-letterSpacing" | "typography-body2-lineHeight" | "typography-body3-fontFamily" | "typography-body3-fontSize" | "typography-body3-fontWeight" | "typography-body3-letterSpacing" | "typography-body3-lineHeight" | "typography-body4-fontFamily" | "typography-body4-fontSize" | "typography-body4-fontWeight" | "typography-body4-letterSpacing" | "typography-body4-lineHeight" | "typography-caption1-fontFamily" | "typography-caption1-fontSize" | "typography-caption1-fontWeight" | "typography-caption1-letterSpacing" | "typography-caption1-lineHeight" | "typography-caption2-fontFamily" | "typography-caption2-fontSize" | "typography-caption2-fontWeight" | "typography-caption2-letterSpacing" | "typography-caption2-lineHeight" | "typography-caption3-fontFamily" | "typography-caption3-fontSize" | "typography-caption3-fontWeight" | "typography-caption3-letterSpacing" | "typography-caption3-lineHeight" | "typography-display1-fontFamily" | "typography-display1-fontSize" | "typography-display1-fontWeight" | "typography-display1-letterSpacing" | "typography-display1-lineHeight" | "typography-display2-fontFamily" | "typography-display2-fontSize" | "typography-display2-fontWeight" | "typography-display2-letterSpacing" | "typography-display2-lineHeight" | "typography-heading1-fontFamily" | "typography-heading1-fontSize" | "typography-heading1-fontWeight" | "typography-heading1-letterSpacing" | "typography-heading1-lineHeight" | "typography-heading2-fontFamily" | "typography-heading2-fontSize" | "typography-heading2-fontWeight" | "typography-heading2-letterSpacing" | "typography-heading2-lineHeight" | "typography-heading3-fontFamily" | "typography-heading3-fontSize" | "typography-heading3-fontWeight" | "typography-heading3-letterSpacing" | "typography-heading3-lineHeight" | "typography-heading4-fontFamily" | "typography-heading4-fontSize" | "typography-heading4-fontWeight" | "typography-heading4-letterSpacing" | "typography-heading4-lineHeight" | "typography-title1-fontFamily" | "typography-title1-fontSize" | "typography-title1-fontWeight" | "typography-title1-letterSpacing" | "typography-title1-lineHeight" | "typography-title2-fontFamily" | "typography-title2-fontSize" | "typography-title2-fontWeight" | "typography-title2-letterSpacing" | "typography-title2-lineHeight" | "typography-title3-fontFamily" | "typography-title3-fontSize" | "typography-title3-fontWeight" | "typography-title3-letterSpacing" | "typography-title3-lineHeight" | "typography-title4-fontFamily" | "typography-title4-fontSize" | "typography-title4-fontWeight" | "typography-title4-letterSpacing" | "typography-title4-lineHeight";
2
2
  type SemanticTokenType = "color" | "dimension" | "fontFamily" | "fontWeight";
3
- type SemanticTokenCssVariable = `--eds-${SemanticTokenName}`;
3
+ type EscapeCssDots<Name extends string> = Name extends `${infer Head}.${infer Tail}` ? `${Head}\\.${EscapeCssDots<Tail>}` : Name;
4
+ type SemanticTokenCssVariable = `--eds-${EscapeCssDots<SemanticTokenName>}`;
4
5
  type SemanticTokenCssReference = `var(${SemanticTokenCssVariable})`;
5
6
  interface SemanticToken {
6
7
  readonly name: SemanticTokenName;
@@ -16,4 +17,4 @@ declare const tokenNames: readonly SemanticTokenName[];
16
17
  /** 공개 token 이름을 var(--eds-…) 참조로 바꿉니다. 이름은 SemanticTokenName 리터럴로 전달하며, tokenNames에 없는 문자열은 런타임 오류입니다. */
17
18
  declare function cssVar(name: SemanticTokenName): SemanticTokenCssReference;
18
19
 
19
- export { type SemanticToken, type SemanticTokenCssReference, type SemanticTokenCssVariable, type SemanticTokenMap, type SemanticTokenName, type SemanticTokenType, cssVar, tokenNames, tokens };
20
+ export { type EscapeCssDots, type SemanticToken, type SemanticTokenCssReference, type SemanticTokenCssVariable, type SemanticTokenMap, type SemanticTokenName, type SemanticTokenType, cssVar, tokenNames, tokens };
package/dist/tokens.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- type SemanticTokenName = "color-bg-brand-primary" | "color-bg-brand-primary-hover" | "color-bg-brand-weak" | "color-bg-brand-weak-hover" | "color-bg-critical-primary" | "color-bg-critical-primary-hover" | "color-bg-critical-weak" | "color-bg-critical-weak-hover" | "color-bg-disabled" | "color-bg-informative-primary" | "color-bg-informative-primary-hover" | "color-bg-informative-weak" | "color-bg-informative-weak-hover" | "color-bg-layer-basement" | "color-bg-layer-basement-hover" | "color-bg-layer-default" | "color-bg-layer-default-hover" | "color-bg-layer-floating" | "color-bg-layer-floating-hover" | "color-bg-neutral-inverted" | "color-bg-neutral-inverted-hover" | "color-bg-neutral-primary" | "color-bg-neutral-primary-hover" | "color-bg-neutral-weak" | "color-bg-neutral-weak-hover" | "color-bg-positive-primary" | "color-bg-positive-primary-hover" | "color-bg-positive-weak" | "color-bg-positive-weak-hover" | "color-bg-transparent" | "color-bg-transparent-hover" | "color-bg-warning-primary" | "color-bg-warning-primary-hover" | "color-bg-warning-weak" | "color-bg-warning-weak-hover" | "color-fg-brand" | "color-fg-brand-contrast" | "color-fg-critical" | "color-fg-critical-contrast" | "color-fg-disabled" | "color-fg-focus" | "color-fg-informative" | "color-fg-informative-contrast" | "color-fg-neutral" | "color-fg-neutral-inverted" | "color-fg-neutral-secondary" | "color-fg-neutral-tertiary" | "color-fg-placeholder" | "color-fg-positive" | "color-fg-positive-contrast" | "color-fg-warning" | "color-fg-warning-contrast" | "color-stroke-brand-primary" | "color-stroke-brand-weak" | "color-stroke-critical-primary" | "color-stroke-critical-weak" | "color-stroke-focusRing" | "color-stroke-informative-primary" | "color-stroke-informative-weak" | "color-stroke-neutral-contrast" | "color-stroke-neutral-primary" | "color-stroke-neutral-secondary" | "color-stroke-neutral-tertiary" | "color-stroke-neutral-weak" | "color-stroke-positive-primary" | "color-stroke-positive-weak" | "color-stroke-warning-primary" | "color-stroke-warning-weak" | "typography-body1-fontFamily" | "typography-body1-fontSize" | "typography-body1-fontWeight" | "typography-body1-letterSpacing" | "typography-body1-lineHeight" | "typography-body2-fontFamily" | "typography-body2-fontSize" | "typography-body2-fontWeight" | "typography-body2-letterSpacing" | "typography-body2-lineHeight" | "typography-body3-fontFamily" | "typography-body3-fontSize" | "typography-body3-fontWeight" | "typography-body3-letterSpacing" | "typography-body3-lineHeight" | "typography-body4-fontFamily" | "typography-body4-fontSize" | "typography-body4-fontWeight" | "typography-body4-letterSpacing" | "typography-body4-lineHeight" | "typography-caption1-fontFamily" | "typography-caption1-fontSize" | "typography-caption1-fontWeight" | "typography-caption1-letterSpacing" | "typography-caption1-lineHeight" | "typography-caption2-fontFamily" | "typography-caption2-fontSize" | "typography-caption2-fontWeight" | "typography-caption2-letterSpacing" | "typography-caption2-lineHeight" | "typography-caption3-fontFamily" | "typography-caption3-fontSize" | "typography-caption3-fontWeight" | "typography-caption3-letterSpacing" | "typography-caption3-lineHeight" | "typography-display1-fontFamily" | "typography-display1-fontSize" | "typography-display1-fontWeight" | "typography-display1-letterSpacing" | "typography-display1-lineHeight" | "typography-display2-fontFamily" | "typography-display2-fontSize" | "typography-display2-fontWeight" | "typography-display2-letterSpacing" | "typography-display2-lineHeight" | "typography-heading1-fontFamily" | "typography-heading1-fontSize" | "typography-heading1-fontWeight" | "typography-heading1-letterSpacing" | "typography-heading1-lineHeight" | "typography-heading2-fontFamily" | "typography-heading2-fontSize" | "typography-heading2-fontWeight" | "typography-heading2-letterSpacing" | "typography-heading2-lineHeight" | "typography-heading3-fontFamily" | "typography-heading3-fontSize" | "typography-heading3-fontWeight" | "typography-heading3-letterSpacing" | "typography-heading3-lineHeight" | "typography-heading4-fontFamily" | "typography-heading4-fontSize" | "typography-heading4-fontWeight" | "typography-heading4-letterSpacing" | "typography-heading4-lineHeight" | "typography-title1-fontFamily" | "typography-title1-fontSize" | "typography-title1-fontWeight" | "typography-title1-letterSpacing" | "typography-title1-lineHeight" | "typography-title2-fontFamily" | "typography-title2-fontSize" | "typography-title2-fontWeight" | "typography-title2-letterSpacing" | "typography-title2-lineHeight" | "typography-title3-fontFamily" | "typography-title3-fontSize" | "typography-title3-fontWeight" | "typography-title3-letterSpacing" | "typography-title3-lineHeight" | "typography-title4-fontFamily" | "typography-title4-fontSize" | "typography-title4-fontWeight" | "typography-title4-letterSpacing" | "typography-title4-lineHeight";
1
+ type SemanticTokenName = "color-bg-brand-primary" | "color-bg-brand-primary-hover" | "color-bg-brand-weak" | "color-bg-brand-weak-hover" | "color-bg-critical-primary" | "color-bg-critical-primary-hover" | "color-bg-critical-weak" | "color-bg-critical-weak-hover" | "color-bg-disabled" | "color-bg-informative-primary" | "color-bg-informative-primary-hover" | "color-bg-informative-weak" | "color-bg-informative-weak-hover" | "color-bg-layer-basement" | "color-bg-layer-basement-hover" | "color-bg-layer-default" | "color-bg-layer-default-hover" | "color-bg-layer-floating" | "color-bg-layer-floating-hover" | "color-bg-neutral-inverted" | "color-bg-neutral-inverted-hover" | "color-bg-neutral-primary" | "color-bg-neutral-primary-hover" | "color-bg-neutral-weak" | "color-bg-neutral-weak-hover" | "color-bg-positive-primary" | "color-bg-positive-primary-hover" | "color-bg-positive-weak" | "color-bg-positive-weak-hover" | "color-bg-transparent" | "color-bg-transparent-hover" | "color-bg-warning-primary" | "color-bg-warning-primary-hover" | "color-bg-warning-weak" | "color-bg-warning-weak-hover" | "color-fg-brand" | "color-fg-brand-contrast" | "color-fg-critical" | "color-fg-critical-contrast" | "color-fg-disabled" | "color-fg-focus" | "color-fg-informative" | "color-fg-informative-contrast" | "color-fg-neutral" | "color-fg-neutral-inverted" | "color-fg-neutral-secondary" | "color-fg-neutral-tertiary" | "color-fg-placeholder" | "color-fg-positive" | "color-fg-positive-contrast" | "color-fg-warning" | "color-fg-warning-contrast" | "color-stroke-brand-primary" | "color-stroke-brand-weak" | "color-stroke-critical-primary" | "color-stroke-critical-weak" | "color-stroke-focusRing" | "color-stroke-informative-primary" | "color-stroke-informative-weak" | "color-stroke-neutral-contrast" | "color-stroke-neutral-primary" | "color-stroke-neutral-secondary" | "color-stroke-neutral-tertiary" | "color-stroke-neutral-weak" | "color-stroke-positive-primary" | "color-stroke-positive-weak" | "color-stroke-warning-primary" | "color-stroke-warning-weak" | "radius-1" | "radius-10" | "radius-2" | "radius-3" | "radius-4" | "radius-5" | "radius-6" | "radius-7" | "radius-8" | "radius-9" | "radius-none" | "spacing-0.5" | "spacing-1" | "spacing-1.5" | "spacing-10" | "spacing-11" | "spacing-12" | "spacing-2" | "spacing-2.5" | "spacing-3" | "spacing-3.5" | "spacing-4" | "spacing-4.5" | "spacing-5" | "spacing-6" | "spacing-7" | "spacing-7.5" | "spacing-8" | "spacing-9" | "spacing-none" | "typography-body1-fontFamily" | "typography-body1-fontSize" | "typography-body1-fontWeight" | "typography-body1-letterSpacing" | "typography-body1-lineHeight" | "typography-body2-fontFamily" | "typography-body2-fontSize" | "typography-body2-fontWeight" | "typography-body2-letterSpacing" | "typography-body2-lineHeight" | "typography-body3-fontFamily" | "typography-body3-fontSize" | "typography-body3-fontWeight" | "typography-body3-letterSpacing" | "typography-body3-lineHeight" | "typography-body4-fontFamily" | "typography-body4-fontSize" | "typography-body4-fontWeight" | "typography-body4-letterSpacing" | "typography-body4-lineHeight" | "typography-caption1-fontFamily" | "typography-caption1-fontSize" | "typography-caption1-fontWeight" | "typography-caption1-letterSpacing" | "typography-caption1-lineHeight" | "typography-caption2-fontFamily" | "typography-caption2-fontSize" | "typography-caption2-fontWeight" | "typography-caption2-letterSpacing" | "typography-caption2-lineHeight" | "typography-caption3-fontFamily" | "typography-caption3-fontSize" | "typography-caption3-fontWeight" | "typography-caption3-letterSpacing" | "typography-caption3-lineHeight" | "typography-display1-fontFamily" | "typography-display1-fontSize" | "typography-display1-fontWeight" | "typography-display1-letterSpacing" | "typography-display1-lineHeight" | "typography-display2-fontFamily" | "typography-display2-fontSize" | "typography-display2-fontWeight" | "typography-display2-letterSpacing" | "typography-display2-lineHeight" | "typography-heading1-fontFamily" | "typography-heading1-fontSize" | "typography-heading1-fontWeight" | "typography-heading1-letterSpacing" | "typography-heading1-lineHeight" | "typography-heading2-fontFamily" | "typography-heading2-fontSize" | "typography-heading2-fontWeight" | "typography-heading2-letterSpacing" | "typography-heading2-lineHeight" | "typography-heading3-fontFamily" | "typography-heading3-fontSize" | "typography-heading3-fontWeight" | "typography-heading3-letterSpacing" | "typography-heading3-lineHeight" | "typography-heading4-fontFamily" | "typography-heading4-fontSize" | "typography-heading4-fontWeight" | "typography-heading4-letterSpacing" | "typography-heading4-lineHeight" | "typography-title1-fontFamily" | "typography-title1-fontSize" | "typography-title1-fontWeight" | "typography-title1-letterSpacing" | "typography-title1-lineHeight" | "typography-title2-fontFamily" | "typography-title2-fontSize" | "typography-title2-fontWeight" | "typography-title2-letterSpacing" | "typography-title2-lineHeight" | "typography-title3-fontFamily" | "typography-title3-fontSize" | "typography-title3-fontWeight" | "typography-title3-letterSpacing" | "typography-title3-lineHeight" | "typography-title4-fontFamily" | "typography-title4-fontSize" | "typography-title4-fontWeight" | "typography-title4-letterSpacing" | "typography-title4-lineHeight";
2
2
  type SemanticTokenType = "color" | "dimension" | "fontFamily" | "fontWeight";
3
- type SemanticTokenCssVariable = `--eds-${SemanticTokenName}`;
3
+ type EscapeCssDots<Name extends string> = Name extends `${infer Head}.${infer Tail}` ? `${Head}\\.${EscapeCssDots<Tail>}` : Name;
4
+ type SemanticTokenCssVariable = `--eds-${EscapeCssDots<SemanticTokenName>}`;
4
5
  type SemanticTokenCssReference = `var(${SemanticTokenCssVariable})`;
5
6
  interface SemanticToken {
6
7
  readonly name: SemanticTokenName;
@@ -16,4 +17,4 @@ declare const tokenNames: readonly SemanticTokenName[];
16
17
  /** 공개 token 이름을 var(--eds-…) 참조로 바꿉니다. 이름은 SemanticTokenName 리터럴로 전달하며, tokenNames에 없는 문자열은 런타임 오류입니다. */
17
18
  declare function cssVar(name: SemanticTokenName): SemanticTokenCssReference;
18
19
 
19
- export { type SemanticToken, type SemanticTokenCssReference, type SemanticTokenCssVariable, type SemanticTokenMap, type SemanticTokenName, type SemanticTokenType, cssVar, tokenNames, tokens };
20
+ export { type EscapeCssDots, type SemanticToken, type SemanticTokenCssReference, type SemanticTokenCssVariable, type SemanticTokenMap, type SemanticTokenName, type SemanticTokenType, cssVar, tokenNames, tokens };
package/dist/tokens.js CHANGED
@@ -410,6 +410,276 @@ var tokenMap = /* @__PURE__ */ Object.freeze({
410
410
  "value": "#FDE047",
411
411
  "cssVariable": "--eds-color-stroke-warning-weak"
412
412
  },
413
+ "radius-1": {
414
+ "name": "radius-1",
415
+ "type": "dimension",
416
+ "value": {
417
+ "value": 2,
418
+ "unit": "px"
419
+ },
420
+ "cssVariable": "--eds-radius-1"
421
+ },
422
+ "radius-10": {
423
+ "name": "radius-10",
424
+ "type": "dimension",
425
+ "value": {
426
+ "value": 999,
427
+ "unit": "px"
428
+ },
429
+ "cssVariable": "--eds-radius-10"
430
+ },
431
+ "radius-2": {
432
+ "name": "radius-2",
433
+ "type": "dimension",
434
+ "value": {
435
+ "value": 4,
436
+ "unit": "px"
437
+ },
438
+ "cssVariable": "--eds-radius-2"
439
+ },
440
+ "radius-3": {
441
+ "name": "radius-3",
442
+ "type": "dimension",
443
+ "value": {
444
+ "value": 6,
445
+ "unit": "px"
446
+ },
447
+ "cssVariable": "--eds-radius-3"
448
+ },
449
+ "radius-4": {
450
+ "name": "radius-4",
451
+ "type": "dimension",
452
+ "value": {
453
+ "value": 8,
454
+ "unit": "px"
455
+ },
456
+ "cssVariable": "--eds-radius-4"
457
+ },
458
+ "radius-5": {
459
+ "name": "radius-5",
460
+ "type": "dimension",
461
+ "value": {
462
+ "value": 10,
463
+ "unit": "px"
464
+ },
465
+ "cssVariable": "--eds-radius-5"
466
+ },
467
+ "radius-6": {
468
+ "name": "radius-6",
469
+ "type": "dimension",
470
+ "value": {
471
+ "value": 12,
472
+ "unit": "px"
473
+ },
474
+ "cssVariable": "--eds-radius-6"
475
+ },
476
+ "radius-7": {
477
+ "name": "radius-7",
478
+ "type": "dimension",
479
+ "value": {
480
+ "value": 14,
481
+ "unit": "px"
482
+ },
483
+ "cssVariable": "--eds-radius-7"
484
+ },
485
+ "radius-8": {
486
+ "name": "radius-8",
487
+ "type": "dimension",
488
+ "value": {
489
+ "value": 16,
490
+ "unit": "px"
491
+ },
492
+ "cssVariable": "--eds-radius-8"
493
+ },
494
+ "radius-9": {
495
+ "name": "radius-9",
496
+ "type": "dimension",
497
+ "value": {
498
+ "value": 20,
499
+ "unit": "px"
500
+ },
501
+ "cssVariable": "--eds-radius-9"
502
+ },
503
+ "radius-none": {
504
+ "name": "radius-none",
505
+ "type": "dimension",
506
+ "value": {
507
+ "value": 0,
508
+ "unit": "px"
509
+ },
510
+ "cssVariable": "--eds-radius-none"
511
+ },
512
+ "spacing-0.5": {
513
+ "name": "spacing-0.5",
514
+ "type": "dimension",
515
+ "value": {
516
+ "value": 2,
517
+ "unit": "px"
518
+ },
519
+ "cssVariable": "--eds-spacing-0\\.5"
520
+ },
521
+ "spacing-1": {
522
+ "name": "spacing-1",
523
+ "type": "dimension",
524
+ "value": {
525
+ "value": 4,
526
+ "unit": "px"
527
+ },
528
+ "cssVariable": "--eds-spacing-1"
529
+ },
530
+ "spacing-1.5": {
531
+ "name": "spacing-1.5",
532
+ "type": "dimension",
533
+ "value": {
534
+ "value": 6,
535
+ "unit": "px"
536
+ },
537
+ "cssVariable": "--eds-spacing-1\\.5"
538
+ },
539
+ "spacing-10": {
540
+ "name": "spacing-10",
541
+ "type": "dimension",
542
+ "value": {
543
+ "value": 40,
544
+ "unit": "px"
545
+ },
546
+ "cssVariable": "--eds-spacing-10"
547
+ },
548
+ "spacing-11": {
549
+ "name": "spacing-11",
550
+ "type": "dimension",
551
+ "value": {
552
+ "value": 44,
553
+ "unit": "px"
554
+ },
555
+ "cssVariable": "--eds-spacing-11"
556
+ },
557
+ "spacing-12": {
558
+ "name": "spacing-12",
559
+ "type": "dimension",
560
+ "value": {
561
+ "value": 48,
562
+ "unit": "px"
563
+ },
564
+ "cssVariable": "--eds-spacing-12"
565
+ },
566
+ "spacing-2": {
567
+ "name": "spacing-2",
568
+ "type": "dimension",
569
+ "value": {
570
+ "value": 8,
571
+ "unit": "px"
572
+ },
573
+ "cssVariable": "--eds-spacing-2"
574
+ },
575
+ "spacing-2.5": {
576
+ "name": "spacing-2.5",
577
+ "type": "dimension",
578
+ "value": {
579
+ "value": 10,
580
+ "unit": "px"
581
+ },
582
+ "cssVariable": "--eds-spacing-2\\.5"
583
+ },
584
+ "spacing-3": {
585
+ "name": "spacing-3",
586
+ "type": "dimension",
587
+ "value": {
588
+ "value": 12,
589
+ "unit": "px"
590
+ },
591
+ "cssVariable": "--eds-spacing-3"
592
+ },
593
+ "spacing-3.5": {
594
+ "name": "spacing-3.5",
595
+ "type": "dimension",
596
+ "value": {
597
+ "value": 14,
598
+ "unit": "px"
599
+ },
600
+ "cssVariable": "--eds-spacing-3\\.5"
601
+ },
602
+ "spacing-4": {
603
+ "name": "spacing-4",
604
+ "type": "dimension",
605
+ "value": {
606
+ "value": 16,
607
+ "unit": "px"
608
+ },
609
+ "cssVariable": "--eds-spacing-4"
610
+ },
611
+ "spacing-4.5": {
612
+ "name": "spacing-4.5",
613
+ "type": "dimension",
614
+ "value": {
615
+ "value": 18,
616
+ "unit": "px"
617
+ },
618
+ "cssVariable": "--eds-spacing-4\\.5"
619
+ },
620
+ "spacing-5": {
621
+ "name": "spacing-5",
622
+ "type": "dimension",
623
+ "value": {
624
+ "value": 20,
625
+ "unit": "px"
626
+ },
627
+ "cssVariable": "--eds-spacing-5"
628
+ },
629
+ "spacing-6": {
630
+ "name": "spacing-6",
631
+ "type": "dimension",
632
+ "value": {
633
+ "value": 24,
634
+ "unit": "px"
635
+ },
636
+ "cssVariable": "--eds-spacing-6"
637
+ },
638
+ "spacing-7": {
639
+ "name": "spacing-7",
640
+ "type": "dimension",
641
+ "value": {
642
+ "value": 28,
643
+ "unit": "px"
644
+ },
645
+ "cssVariable": "--eds-spacing-7"
646
+ },
647
+ "spacing-7.5": {
648
+ "name": "spacing-7.5",
649
+ "type": "dimension",
650
+ "value": {
651
+ "value": 30,
652
+ "unit": "px"
653
+ },
654
+ "cssVariable": "--eds-spacing-7\\.5"
655
+ },
656
+ "spacing-8": {
657
+ "name": "spacing-8",
658
+ "type": "dimension",
659
+ "value": {
660
+ "value": 32,
661
+ "unit": "px"
662
+ },
663
+ "cssVariable": "--eds-spacing-8"
664
+ },
665
+ "spacing-9": {
666
+ "name": "spacing-9",
667
+ "type": "dimension",
668
+ "value": {
669
+ "value": 36,
670
+ "unit": "px"
671
+ },
672
+ "cssVariable": "--eds-spacing-9"
673
+ },
674
+ "spacing-none": {
675
+ "name": "spacing-none",
676
+ "type": "dimension",
677
+ "value": {
678
+ "value": 0,
679
+ "unit": "px"
680
+ },
681
+ "cssVariable": "--eds-spacing-none"
682
+ },
413
683
  "typography-body1-fontFamily": {
414
684
  "name": "typography-body1-fontFamily",
415
685
  "type": "fontFamily",
@@ -1212,6 +1482,36 @@ var tokenNames = /* @__PURE__ */ Object.freeze([
1212
1482
  "color-stroke-positive-weak",
1213
1483
  "color-stroke-warning-primary",
1214
1484
  "color-stroke-warning-weak",
1485
+ "radius-1",
1486
+ "radius-10",
1487
+ "radius-2",
1488
+ "radius-3",
1489
+ "radius-4",
1490
+ "radius-5",
1491
+ "radius-6",
1492
+ "radius-7",
1493
+ "radius-8",
1494
+ "radius-9",
1495
+ "radius-none",
1496
+ "spacing-0.5",
1497
+ "spacing-1",
1498
+ "spacing-1.5",
1499
+ "spacing-10",
1500
+ "spacing-11",
1501
+ "spacing-12",
1502
+ "spacing-2",
1503
+ "spacing-2.5",
1504
+ "spacing-3",
1505
+ "spacing-3.5",
1506
+ "spacing-4",
1507
+ "spacing-4.5",
1508
+ "spacing-5",
1509
+ "spacing-6",
1510
+ "spacing-7",
1511
+ "spacing-7.5",
1512
+ "spacing-8",
1513
+ "spacing-9",
1514
+ "spacing-none",
1215
1515
  "typography-body1-fontFamily",
1216
1516
  "typography-body1-fontSize",
1217
1517
  "typography-body1-fontWeight",
@@ -1302,7 +1602,7 @@ function cssVar(name) {
1302
1602
  if (!tokenNames.includes(name)) {
1303
1603
  throw new Error("Unknown semantic token: " + name);
1304
1604
  }
1305
- return "var(--eds-" + name + ")";
1605
+ return "var(" + tokenMap[name].cssVariable + ")";
1306
1606
  }
1307
1607
 
1308
1608
  exports.cssVar = cssVar;