@tide-design/foundation 0.11.0 → 0.11.1

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/cli.js CHANGED
@@ -124,7 +124,7 @@ function primitiveHex(name) {
124
124
  return color[family][step];
125
125
  }
126
126
 
127
- // src/color-slot.ts
127
+ // src/colorSlot.ts
128
128
  /**
129
129
  * 색 계열 변수 묶음의 슬롯. CSS에서는 `--tide-<색 이름>-<슬롯>`과 `--tide-accent-<슬롯>`으로 나간다.
130
130
  */
@@ -493,7 +493,7 @@ function semanticHex(name, theme) {
493
493
  return colorValueHex(entry.value[theme]);
494
494
  }
495
495
 
496
- // src/color-name.ts
496
+ // src/colorName.ts
497
497
  /**
498
498
  * Role 이름 목록(neutral, primary, success, warning, danger, info 순서).
499
499
  * @internal `@tide-design/foundation/internal` 전용. 앱 개발자용 공개 계약이 아니다(문서 앱·빌드 스크립트·테스트용).
@@ -533,7 +533,7 @@ function roleSlotToken(role, slot) {
533
533
  }
534
534
  }
535
535
 
536
- // src/color-css.ts
536
+ // src/colorCss.ts
537
537
  /** Primitive 변수 이름. 예: `--tide-color-blue-600` */
538
538
  function primitiveVar(name) {
539
539
  return `--tide-color-${name}`;
@@ -805,7 +805,7 @@ function contrastRatio(foreground, background) {
805
805
  return (Math.max(a, b) + .05) / (Math.min(a, b) + .05);
806
806
  }
807
807
 
808
- // src/color-family.ts
808
+ // src/colorFamily.ts
809
809
  /**
810
810
  * `@tide-design/foundation/color-family`: 앱이 자기 브랜드 색 계열을 더하는 API.
811
811
  *
@@ -1,5 +1,5 @@
1
1
  import { ColorStep } from "./color.js";
2
- import { ColorSlot, SlotRule } from "./color-slot.js";
2
+ import { ColorSlot, SlotRule } from "./colorSlot.js";
3
3
  import { SemanticColorName, SemanticNamespace, ThemeName } from "./semantic.js";
4
4
  /** Primitive 변수 이름. 예: `--tide-color-blue-600` */
5
5
  export declare function primitiveVar(name: string): string;
@@ -1,9 +1,9 @@
1
1
  import { color } from "./color.js";
2
- import { colorFamilyNames, isRole, roleNames, roleSlotToken } from "./color-name.js";
3
- import { colorSlots, familySlotSteps, isSlotStep, slotPrimitive, slotValueHex } from "./color-slot.js";
2
+ import { colorFamilyNames, isRole, roleNames, roleSlotToken } from "./colorName.js";
3
+ import { colorSlots, familySlotSteps, isSlotStep, slotPrimitive, slotValueHex } from "./colorSlot.js";
4
4
  import { roleFamily, semanticEntries, slotColorValue } from "./semantic.js";
5
5
 
6
- // src/color-css.ts
6
+ // src/colorCss.ts
7
7
  /** Primitive 변수 이름. 예: `--tide-color-blue-600` */
8
8
  function primitiveVar(name) {
9
9
  return `--tide-color-${name}`;
@@ -6,7 +6,7 @@
6
6
  * @packageDocumentation
7
7
  */
8
8
  import { ColorStep } from "./color.js";
9
- import { ColorSlot, SlotColorRef, SlotMix, SlotOverlay, SlotOverrides, SlotRule, SlotStep, SlotValue } from "./color-slot.js";
9
+ import { ColorSlot, SlotColorRef, SlotMix, SlotOverlay, SlotOverrides, SlotRule, SlotStep, SlotValue } from "./colorSlot.js";
10
10
  import { ColorContrastResult, ColorContrastRule } from "./contrast.js";
11
11
  import { ThemeName } from "./semantic.js";
12
12
  /** 50~950의 11단계 스케일. 값은 `#rrggbb` hex다. */
@@ -1,10 +1,10 @@
1
1
  import { color } from "./color.js";
2
- import { tideColorNames } from "./color-name.js";
3
- import { dataColorRule, familyThemeDeclarations, primitiveVar } from "./color-css.js";
4
- import { colorSlots, resolveSlotSteps, slotPrimitive, slotValueHex } from "./color-slot.js";
2
+ import { tideColorNames } from "./colorName.js";
3
+ import { dataColorRule, familyThemeDeclarations, primitiveVar } from "./colorCss.js";
4
+ import { colorSlots, resolveSlotSteps, slotPrimitive, slotValueHex } from "./colorSlot.js";
5
5
  import { checkColorContrast } from "./contrast.js";
6
6
 
7
- // src/color-family.ts
7
+ // src/colorFamily.ts
8
8
  /**
9
9
  * `@tide-design/foundation/color-family`: 앱이 자기 브랜드 색 계열을 더하는 API.
10
10
  *
@@ -1,5 +1,5 @@
1
1
  import { ColorFamily } from "./color.js";
2
- import { ColorSlot } from "./color-slot.js";
2
+ import { ColorSlot } from "./colorSlot.js";
3
3
  import { SemanticColorName, ThemeName, ThemedColor, TideRole } from "./semantic.js";
4
4
  /** Tide에 들어 있는 색 이름. 앱이 augmentation으로 더한 이름은 들어 있지 않다. */
5
5
  export type TideColor = TideRole | ColorFamily;
@@ -1,8 +1,8 @@
1
1
  import { color } from "./color.js";
2
- import { colorSlots, familySlotSteps } from "./color-slot.js";
2
+ import { colorSlots, familySlotSteps } from "./colorSlot.js";
3
3
  import { colorValueHex, roleFamily, roleSharedSlots, semanticEntries, slotColorValue } from "./semantic.js";
4
4
 
5
- // src/color-name.ts
5
+ // src/colorName.ts
6
6
  /**
7
7
  * Role 이름 목록(neutral, primary, success, warning, danger, info 순서).
8
8
  * @internal `@tide-design/foundation/internal` 전용. 앱 개발자용 공개 계약이 아니다(문서 앱·빌드 스크립트·테스트용).
@@ -1,6 +1,6 @@
1
1
  import { primitiveHex } from "./color.js";
2
2
 
3
- // src/color-slot.ts
3
+ // src/colorSlot.ts
4
4
  /**
5
5
  * 색 계열 변수 묶음의 슬롯. CSS에서는 `--tide-<색 이름>-<슬롯>`과 `--tide-accent-<슬롯>`으로 나간다.
6
6
  */
@@ -1,4 +1,4 @@
1
- import { ColorSlot } from "./color-slot.js";
1
+ import { ColorSlot } from "./colorSlot.js";
2
2
  import { SemanticColorName, ThemeName } from "./semantic.js";
3
3
  /**
4
4
  * 대비 하한 세 등급(ADR 0023).
package/dist/contrast.js CHANGED
@@ -1,4 +1,4 @@
1
- import { mixHex } from "./color-slot.js";
1
+ import { mixHex } from "./colorSlot.js";
2
2
  import { semanticHex } from "./semantic.js";
3
3
 
4
4
  // src/contrast.ts
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ColorFamily, ColorStep, PrimitiveColorName, color } from "./color.js";
2
- import { ColorSlot } from "./color-slot.js";
2
+ import { ColorSlot } from "./colorSlot.js";
3
3
  import { AlphaColor, Color, ColorFamilyName, ColorFamilyRegistry, MixedColor, Role, RoleRegistry, SemanticColorName, SemanticColorValue, SemanticNamespace, ThemeName, ThemedColor, TideRole, semantic, semanticPrefix } from "./semantic.js";
4
4
  import { ContrastExclusion, ContrastMinRatio, ContrastPair, contrastPairs } from "./contrast.js";
5
5
  import { FontFamilyName, FontSizeStep, FontWeightName, TextStyleName, TextStyleValue, fontFamily, fontSize, fontWeight, textStyle } from "./typography.js";
@@ -5,10 +5,10 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
  import { primitiveHex } from "./color.js";
8
- import { BackgroundSlot, SlotColorRef, SlotMix, SlotOverlay, SlotOverrides, SlotRule, SlotStep, SlotValue, colorSlots, familyOverrides, familySlotSteps, mixHex, resolveSlotSteps, slotPrimitive, slotRule, slotValueHex } from "./color-slot.js";
8
+ import { BackgroundSlot, SlotColorRef, SlotMix, SlotOverlay, SlotOverrides, SlotRule, SlotStep, SlotValue, colorSlots, familyOverrides, familySlotSteps, mixHex, resolveSlotSteps, slotPrimitive, slotRule, slotValueHex } from "./colorSlot.js";
9
9
  import { colorValueHex, roleFamily, roleOverrides, roleSharedSlots, semanticEntries, semanticHex, shadowColor } from "./semantic.js";
10
- import { TideColor, colorFamilyNames, colorSlotHex, colorSlotValues, isRole, roleNames, roleSlotToken, tideColorNames } from "./color-name.js";
11
- import { AccentUtility, accentDefaultDeclarations, accentUtilities, accentVar, dataColorRule, familyThemeDeclarations, familyVar, primitiveVar, roleAliasCss, semanticVar, tideFamilyThemeDeclarations } from "./color-css.js";
10
+ import { TideColor, colorFamilyNames, colorSlotHex, colorSlotValues, isRole, roleNames, roleSlotToken, tideColorNames } from "./colorName.js";
11
+ import { AccentUtility, accentDefaultDeclarations, accentUtilities, accentVar, dataColorRule, familyThemeDeclarations, familyVar, primitiveVar, roleAliasCss, semanticVar, tideFamilyThemeDeclarations } from "./colorCss.js";
12
12
  import { ColorContrastResult, ColorContrastRule, checkColorContrast, colorContrastRules, contrastExclusions, contrastPairRatio, contrastRatio, opaqueSemanticHex } from "./contrast.js";
13
13
  import { fontFamilyCss } from "./typography.js";
14
14
  import { shadowCss } from "./shape.js";
package/dist/internal.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { primitiveHex } from "./color.js";
2
- import { colorSlots, familyOverrides, familySlotSteps, mixHex, resolveSlotSteps, slotPrimitive, slotRule, slotValueHex } from "./color-slot.js";
2
+ import { colorSlots, familyOverrides, familySlotSteps, mixHex, resolveSlotSteps, slotPrimitive, slotRule, slotValueHex } from "./colorSlot.js";
3
3
  import { colorValueHex, roleFamily, roleOverrides, roleSharedSlots, semanticEntries, semanticHex, shadowColor } from "./semantic.js";
4
- import { colorFamilyNames, colorSlotHex, colorSlotValues, isRole, roleNames, roleSlotToken, tideColorNames } from "./color-name.js";
5
- import { accentDefaultDeclarations, accentUtilities, accentVar, dataColorRule, familyThemeDeclarations, familyVar, primitiveVar, roleAliasCss, semanticVar, tideFamilyThemeDeclarations } from "./color-css.js";
4
+ import { colorFamilyNames, colorSlotHex, colorSlotValues, isRole, roleNames, roleSlotToken, tideColorNames } from "./colorName.js";
5
+ import { accentDefaultDeclarations, accentUtilities, accentVar, dataColorRule, familyThemeDeclarations, familyVar, primitiveVar, roleAliasCss, semanticVar, tideFamilyThemeDeclarations } from "./colorCss.js";
6
6
  import { checkColorContrast, colorContrastRules, contrastExclusions, contrastPairRatio, contrastRatio, opaqueSemanticHex } from "./contrast.js";
7
7
  import { fontFamilyCss } from "./typography.js";
8
8
  import { shadowCss } from "./shape.js";
@@ -1,5 +1,5 @@
1
1
  import { ColorFamily, PrimitiveColorName } from "./color.js";
2
- import { BackgroundSlot, ColorSlot, familyOverrides, slotRule } from "./color-slot.js";
2
+ import { BackgroundSlot, ColorSlot, familyOverrides, slotRule } from "./colorSlot.js";
3
3
  /** Theme 이름 */
4
4
  export type ThemeName = "light" | "dark";
5
5
  /**
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { primitiveHex } from "./color.js";
2
- import { colorSlots, familyOverrides, mixHex, resolveSlotSteps, slotPrimitive } from "./color-slot.js";
2
+ import { colorSlots, familyOverrides, mixHex, resolveSlotSteps, slotPrimitive } from "./colorSlot.js";
3
3
 
4
4
  // src/semantic.ts
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tide-design/foundation",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Tide 디자인 시스템의 Token과 CSS",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,8 +28,8 @@
28
28
  "default": "./dist/internal.js"
29
29
  },
30
30
  "./color-family": {
31
- "types": "./dist/color-family.d.ts",
32
- "default": "./dist/color-family.js"
31
+ "types": "./dist/colorFamily.d.ts",
32
+ "default": "./dist/colorFamily.js"
33
33
  },
34
34
  "./tokens.css": "./dist/tokens.css",
35
35
  "./tailwind.css": "./dist/tailwind.css",
File without changes