@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 +4 -4
- package/dist/{color-css.d.ts → colorCss.d.ts} +1 -1
- package/dist/{color-css.js → colorCss.js} +3 -3
- package/dist/{color-family.d.ts → colorFamily.d.ts} +1 -1
- package/dist/{color-family.js → colorFamily.js} +4 -4
- package/dist/{color-name.d.ts → colorName.d.ts} +1 -1
- package/dist/{color-name.js → colorName.js} +2 -2
- package/dist/{color-slot.js → colorSlot.js} +1 -1
- package/dist/contrast.d.ts +1 -1
- package/dist/contrast.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +3 -3
- package/dist/semantic.d.ts +1 -1
- package/dist/semantic.js +1 -1
- package/package.json +3 -3
- /package/dist/{color-slot.d.ts → colorSlot.d.ts} +0 -0
package/dist/cli.js
CHANGED
|
@@ -124,7 +124,7 @@ function primitiveHex(name) {
|
|
|
124
124
|
return color[family][step];
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
// src/
|
|
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/
|
|
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/
|
|
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/
|
|
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 "./
|
|
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 "./
|
|
3
|
-
import { colorSlots, familySlotSteps, isSlotStep, slotPrimitive, slotValueHex } from "./
|
|
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/
|
|
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 "./
|
|
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 "./
|
|
3
|
-
import { dataColorRule, familyThemeDeclarations, primitiveVar } from "./
|
|
4
|
-
import { colorSlots, resolveSlotSteps, slotPrimitive, slotValueHex } from "./
|
|
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/
|
|
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 "./
|
|
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 "./
|
|
2
|
+
import { colorSlots, familySlotSteps } from "./colorSlot.js";
|
|
3
3
|
import { colorValueHex, roleFamily, roleSharedSlots, semanticEntries, slotColorValue } from "./semantic.js";
|
|
4
4
|
|
|
5
|
-
// src/
|
|
5
|
+
// src/colorName.ts
|
|
6
6
|
/**
|
|
7
7
|
* Role 이름 목록(neutral, primary, success, warning, danger, info 순서).
|
|
8
8
|
* @internal `@tide-design/foundation/internal` 전용. 앱 개발자용 공개 계약이 아니다(문서 앱·빌드 스크립트·테스트용).
|
package/dist/contrast.d.ts
CHANGED
package/dist/contrast.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColorFamily, ColorStep, PrimitiveColorName, color } from "./color.js";
|
|
2
|
-
import { ColorSlot } from "./
|
|
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";
|
package/dist/internal.d.ts
CHANGED
|
@@ -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 "./
|
|
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 "./
|
|
11
|
-
import { AccentUtility, accentDefaultDeclarations, accentUtilities, accentVar, dataColorRule, familyThemeDeclarations, familyVar, primitiveVar, roleAliasCss, semanticVar, tideFamilyThemeDeclarations } from "./
|
|
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 "./
|
|
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 "./
|
|
5
|
-
import { accentDefaultDeclarations, accentUtilities, accentVar, dataColorRule, familyThemeDeclarations, familyVar, primitiveVar, roleAliasCss, semanticVar, tideFamilyThemeDeclarations } from "./
|
|
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";
|
package/dist/semantic.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColorFamily, PrimitiveColorName } from "./color.js";
|
|
2
|
-
import { BackgroundSlot, ColorSlot, familyOverrides, slotRule } from "./
|
|
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 "./
|
|
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.
|
|
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/
|
|
32
|
-
"default": "./dist/
|
|
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
|