@uniai-fe/uds-foundation 0.4.3 → 0.4.5

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.
@@ -30,9 +30,26 @@
30
30
  "Pretendard JP",
31
31
  "Pretendard Variable",
32
32
  "Pretendard",
33
+ "Noto Sans KR",
34
+ -apple-system,
35
+ BlinkMacSystemFont,
36
+ "Apple SD Gothic Neo",
37
+ "Segoe UI",
38
+ Roboto,
39
+ "Helvetica",
40
+ "Helvetica Neue",
41
+ "Apple Color Emoji",
42
+ "Segoe UI Emoji",
43
+ "Segoe UI Symbol",
44
+ "Malgun Gothic",
45
+ "dotum",
46
+ Oxygen,
47
+ "Oxygen-Sans",
48
+ "Ubuntu",
49
+ "Cantarell",
33
50
  "Inter",
34
51
  sans-serif
35
- ); // Pretendard/Inter 스택을 전역 기본값으로 유지한다.
52
+ ); // 변경 설명: legacy reset의 폰트 fallback 자산을 foundation standard reset fallback 체계로 승격한다.
36
53
  }
37
54
 
38
55
  *:focus,
@@ -121,6 +138,7 @@
121
138
  q::before,
122
139
  q::after {
123
140
  content: "";
141
+ content: none;
124
142
  }
125
143
 
126
144
  img,
@@ -179,6 +197,10 @@
179
197
  font-size: 0;
180
198
  }
181
199
 
200
+ mark {
201
+ display: inline;
202
+ }
203
+
182
204
  a {
183
205
  display: block;
184
206
  color: #333;
@@ -215,6 +237,8 @@
215
237
  }
216
238
 
217
239
  select::-ms-expand {
240
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
241
+ filter: alpha(opacity=0);
218
242
  opacity: 0;
219
243
  }
220
244
 
@@ -251,10 +275,17 @@
251
275
  appearance: none;
252
276
  }
253
277
 
278
+ ::-webkit-search-cancel-button {
279
+ caret-color: transparent;
280
+ border-color: transparent;
281
+ display: none;
282
+ }
283
+
254
284
  ::-webkit-file-upload-button {
255
285
  appearance: button;
256
286
  }
257
287
 
288
+ input[type="text"],
258
289
  input[type="date"],
259
290
  input[type="number"] {
260
291
  appearance: none;
@@ -281,9 +312,18 @@
281
312
  }
282
313
 
283
314
  input[type="range"]::-webkit-slider-thumb {
315
+ -webkit-appearance: none;
316
+ -moz-appearance: none;
284
317
  appearance: none;
285
318
  }
286
319
 
320
+ input[type="range"]::-ms-track {
321
+ cursor: pointer;
322
+ background: transparent;
323
+ border-color: transparent;
324
+ color: transparent;
325
+ }
326
+
287
327
  input[type="checkbox"] {
288
328
  appearance: checkbox;
289
329
  }
@@ -293,6 +333,7 @@
293
333
  }
294
334
 
295
335
  progress {
336
+ -webkit-appearance: none;
296
337
  appearance: none;
297
338
  border: 1px solid #e1e1e1;
298
339
  }
@@ -1,81 +1,83 @@
1
+ import type { color_primitive, color_semantic } from "../data/color";
2
+ import type {
3
+ layout_breakpoint,
4
+ layout_radius,
5
+ layout_size,
6
+ } from "../data/layout";
7
+ import type { spacing_gap, spacing_padding } from "../data/spacing";
8
+ import type { themeTokens } from "../data/tokens";
9
+ import type { typography_tokens } from "../data/typography";
10
+
1
11
  /**
2
- * ThemeTypographyVariant; typography variant token 구조
3
- * @property {number} size font-size px 값
4
- * @property {string} line_height line-height 값
5
- * @property {number} letter_spacing letter-spacing 값
6
- * @property {number} font_weight font-weight 값
12
+ * ThemeColorPrimitive; primitive color token snapshot 타입
7
13
  */
8
- export interface ThemeTypographyVariant {
9
- /**
10
- * font-size px 값
11
- */
12
- readonly size: number;
13
- /**
14
- * line-height 값
15
- */
16
- readonly line_height: string;
17
- /**
18
- * letter-spacing 값
19
- */
20
- readonly letter_spacing: number;
21
- /**
22
- * font-weight 값
23
- */
24
- readonly font_weight: number;
25
- }
14
+ export type ThemeColorPrimitive = typeof color_primitive;
26
15
 
27
16
  /**
28
- * ThemeColorPrimitive; primitive color token map
17
+ * ThemeColorSemantic; semantic color token snapshot 타입
29
18
  */
30
- export type ThemeColorPrimitive = Record<string, string>;
19
+ export type ThemeColorSemantic = typeof color_semantic;
20
+
31
21
  /**
32
- * ThemeColorSemanticSection; semantic color nested token map
22
+ * ThemeColorSemanticSection; semantic color nested token map 호환 타입
33
23
  * @property {string | ThemeColorSemanticSection} [token] semantic color value 또는 하위 section
34
24
  */
35
25
  export interface ThemeColorSemanticSection {
36
26
  readonly [token: string]: string | ThemeColorSemanticSection;
37
27
  }
28
+
29
+ /**
30
+ * ThemeSpacingPadding; spacing padding token snapshot 타입
31
+ */
32
+ export type ThemeSpacingPadding = typeof spacing_padding;
33
+
38
34
  /**
39
- * ThemeSpacingScale; spacing scale token map
35
+ * ThemeSpacingGap; spacing gap token snapshot 타입
36
+ */
37
+ export type ThemeSpacingGap = typeof spacing_gap;
38
+
39
+ /**
40
+ * ThemeSpacingScale; spacing scale token map 호환 타입
40
41
  */
41
42
  export type ThemeSpacingScale = Record<string, number>;
43
+
44
+ /**
45
+ * ThemeLayoutBreakpoint; layout breakpoint token snapshot 타입
46
+ */
47
+ export type ThemeLayoutBreakpoint = typeof layout_breakpoint;
48
+
42
49
  /**
43
- * ThemeLayoutSizes; layout size token map
50
+ * ThemeLayoutSize; layout size token snapshot 타입
51
+ */
52
+ export type ThemeLayoutSize = typeof layout_size;
53
+
54
+ /**
55
+ * ThemeLayoutRadius; layout radius token snapshot 타입
56
+ */
57
+ export type ThemeLayoutRadius = typeof layout_radius;
58
+
59
+ /**
60
+ * ThemeLayoutSizes; layout size token map 호환 타입
44
61
  */
45
62
  export type ThemeLayoutSizes = Record<string, number>;
63
+
46
64
  /**
47
- * ThemeTypographyCategory; typography category token map
65
+ * ThemeTypography; typography token snapshot 타입
48
66
  */
49
- export type ThemeTypographyCategory = Record<string, ThemeTypographyVariant>;
67
+ export type ThemeTypography = typeof typography_tokens;
68
+
69
+ /**
70
+ * ThemeTypographyCategory; typography category token map 타입
71
+ */
72
+ export type ThemeTypographyCategory = ThemeTypography[keyof ThemeTypography];
73
+
74
+ /**
75
+ * ThemeTypographyVariant; typography variant token 구조
76
+ */
77
+ export type ThemeTypographyVariant =
78
+ ThemeTypographyCategory[keyof ThemeTypographyCategory];
50
79
 
51
80
  /**
52
81
  * ThemeTokens; foundation token snapshot 전체 구조
53
- * @property {{ primitive: ThemeColorPrimitive; semantic: ThemeColorSemanticSection }} color color token 집합
54
- * @property {{ padding: ThemeSpacingScale; gap: ThemeSpacingScale }} spacing spacing token 집합
55
- * @property {{ breakpoint: Record<"xsmall" | "small" | "medium" | "large", number>; size: ThemeLayoutSizes; radius: { size: ThemeLayoutSizes; level: ThemeLayoutSizes } }} layout layout token 집합
56
- * @property {{ [category: string]: ThemeTypographyCategory }} typography typography token 집합
57
82
  */
58
- export interface ThemeTokens {
59
- readonly color: {
60
- readonly primitive: ThemeColorPrimitive;
61
- readonly semantic: ThemeColorSemanticSection;
62
- };
63
- readonly spacing: {
64
- readonly padding: ThemeSpacingScale;
65
- readonly gap: ThemeSpacingScale;
66
- };
67
- readonly layout: {
68
- readonly breakpoint: Record<
69
- "xsmall" | "small" | "medium" | "large",
70
- number
71
- >;
72
- readonly size: ThemeLayoutSizes;
73
- readonly radius: {
74
- readonly size: ThemeLayoutSizes;
75
- readonly level: ThemeLayoutSizes;
76
- };
77
- };
78
- readonly typography: {
79
- readonly [category: string]: ThemeTypographyCategory;
80
- };
81
- }
83
+ export type ThemeTokens = typeof themeTokens;