@pylerai/design-system 2.3.1-rc.1 → 2.5.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.
Files changed (43) hide show
  1. package/README.md +2 -1
  2. package/dist/components/ui/badge.d.ts +3 -0
  3. package/dist/components/ui/badge.js +28 -20
  4. package/dist/components/ui/button.d.ts +1 -1
  5. package/dist/components/ui/button.js +38 -25
  6. package/dist/components/ui/dropdown.js +89 -86
  7. package/dist/components/ui/input.js +30 -30
  8. package/dist/components/ui/label.d.ts +1 -1
  9. package/dist/components/ui/label.js +11 -10
  10. package/dist/components/ui/media-slider.d.ts +20 -0
  11. package/dist/components/ui/media-slider.js +90 -0
  12. package/dist/components/ui/progress-bar.d.ts +21 -0
  13. package/dist/components/ui/progress-bar.js +45 -0
  14. package/dist/components/ui/search-field.js +45 -43
  15. package/dist/components/ui/table.js +33 -33
  16. package/dist/components/ui/tabs.js +76 -69
  17. package/dist/components/ui/timeline-tracks.d.ts +66 -0
  18. package/dist/components/ui/timeline-tracks.js +80 -0
  19. package/dist/components/ui/timeline.d.ts +31 -0
  20. package/dist/components/ui/timeline.js +119 -0
  21. package/dist/components/ui/toast.js +5 -5
  22. package/dist/components/ui/video-player.d.ts +29 -0
  23. package/dist/components/ui/video-player.js +174 -0
  24. package/dist/index.d.ts +7 -1
  25. package/dist/index.js +38 -32
  26. package/dist/lib/field-box.d.ts +13 -0
  27. package/dist/lib/field-box.js +11 -0
  28. package/dist/lib/format-time.d.ts +5 -0
  29. package/dist/lib/format-time.js +8 -0
  30. package/dist/lib/icons.d.ts +6 -0
  31. package/dist/lib/icons.js +68 -44
  32. package/dist/lib/utils.d.ts +1 -0
  33. package/dist/lib/utils.js +14 -7
  34. package/dist/style.css +1 -1
  35. package/dist/tokens/pyler-light.d.ts +12 -0
  36. package/dist/tokens/pyler-light.js +27 -23
  37. package/dist/tokens/shadow-radius.d.ts +3 -3
  38. package/dist/tokens/shadow-radius.js +3 -3
  39. package/dist/tokens/typography.d.ts +8 -2
  40. package/dist/tokens/typography.js +6 -0
  41. package/package.json +1 -1
  42. package/pyler-tailwind-colors.cjs +4 -0
  43. package/pyler-typography.cjs +7 -0
@@ -10,11 +10,11 @@ const g = [
10
10
  "category",
11
11
  "icon"
12
12
  ];
13
- function c(e) {
13
+ function h(e) {
14
14
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
15
15
  }
16
16
  function n(e) {
17
- return e.split(".").map(c).join("-");
17
+ return e.split(".").map(h).join("-");
18
18
  }
19
19
  function i(e) {
20
20
  return `--ds-${n(e)}`;
@@ -22,11 +22,11 @@ function i(e) {
22
22
  function l(e) {
23
23
  return `bg-ds-${n(e)}`;
24
24
  }
25
- function h(e) {
25
+ function c(e) {
26
26
  return typeof e == "object" && e !== null && "hex" in e && typeof e.hex == "string";
27
27
  }
28
28
  function s(e, r, a) {
29
- if (h(e)) {
29
+ if (c(e)) {
30
30
  const t = r.join("."), o = r[0];
31
31
  return [
32
32
  {
@@ -49,14 +49,16 @@ const F = {
49
49
  white: { hex: "#FFFFFF" }
50
50
  },
51
51
  main: {
52
- default: { hex: "#2C80F5" }
52
+ default: { hex: "#2C80F5" },
53
+ "sky-blue": { hex: "#BAD3F6" }
53
54
  },
54
55
  background: {
55
56
  default: { hex: "#FFFFFF" }
56
57
  },
57
58
  text: {
58
59
  strong: { hex: "#333333" },
59
- normal: { hex: "#969696" },
60
+ medium: { hex: "#666666" },
61
+ normal: { hex: "#AFAFAF" },
60
62
  disabled: { hex: "#CCCCCC" }
61
63
  },
62
64
  line: {
@@ -66,7 +68,9 @@ const F = {
66
68
  surface: {
67
69
  strong: { hex: "#F5F5F5" },
68
70
  normal: { hex: "#F7F8F9" },
69
- alternative: { hex: "#FFFFFF" }
71
+ alternative: { hex: "#FFFFFF" },
72
+ hovered: { hex: "#E2E2E2" },
73
+ disabled: { hex: "#EBEBEB" }
70
74
  },
71
75
  primary: {
72
76
  "blue-normal": { hex: "#2C80F5" },
@@ -83,17 +87,17 @@ const F = {
83
87
  "green-muted": { hex: "#F4FBF7" }
84
88
  },
85
89
  category: {
86
- sexual: { hex: "#FF6355" },
87
- violence: { hex: "#C06528" },
88
- hate: { hex: "#6554C0" },
89
- politics: { hex: "#0B945A" },
90
- controversy: { hex: "#0098B2" },
90
+ sexual: { hex: "#E83535" },
91
+ violence: { hex: "#E48752" },
92
+ hate: { hex: "#914FD2" },
93
+ politics: { hex: "#0A9050" },
94
+ controversy: { hex: "#0D7E8C" },
91
95
  talk: { hex: "#2B70E4" },
92
- overseas: { hex: "#E63FE1" },
93
- religion: { hex: "#FFC400" },
94
- custom: { hex: "#58CF04" },
95
- sensitive: { hex: "#CC3D00" },
96
- issue: { hex: "#00B8D9" }
96
+ overseas: { hex: "#F779F3" },
97
+ religion: { hex: "#F0A200" },
98
+ custom: { hex: "#8AAF12" },
99
+ sensitive: { hex: "#C82868" },
100
+ issue: { hex: "#57AAE0" }
97
101
  },
98
102
  icon: {
99
103
  strong: { hex: "#333333" },
@@ -112,7 +116,7 @@ const F = {
112
116
  ["category.custom", "Custom"],
113
117
  ["category.sensitive", "Sensitive"],
114
118
  ["category.issue", "Issue"]
115
- ]), C = s(
119
+ ]), d = s(
116
120
  F,
117
121
  [],
118
122
  x
@@ -120,15 +124,15 @@ const F = {
120
124
  function u(e) {
121
125
  return i(e);
122
126
  }
123
- const d = u;
124
- function y(e) {
127
+ const C = u;
128
+ function E(e) {
125
129
  return n(e);
126
130
  }
127
131
  export {
128
132
  F as PYLER_LIGHT_COLOR_TOKENS,
129
133
  g as PYLER_LIGHT_GROUP_ORDER,
130
- C as flatPylerLightTokens,
131
- y as formatPylerPathForDisplay,
134
+ d as flatPylerLightTokens,
135
+ E as formatPylerPathForDisplay,
132
136
  u as getDsCssVar,
133
- d as getPylerCssVar
137
+ C as getPylerCssVar
134
138
  };
@@ -9,11 +9,11 @@
9
9
  export declare const DS_RADIUS: {
10
10
  /** 2px — 체크박스 등 가장 작은 요소 */
11
11
  readonly xs: "var(--ds-radius-xs)";
12
- /** 4px — 작은 버튼(Height 36px 미만), 배지, 라벨 */
12
+ /** 4px — 작은 아이콘 버튼, 배지, 라벨 */
13
13
  readonly ss: "var(--ds-radius-ss)";
14
- /** 8px — 주요 버튼, 인풋, 카드 */
14
+ /** 8px — 버튼(small 포함), 인풋, 카드 */
15
15
  readonly md: "var(--ds-radius-md)";
16
- /** 12px — 모달 */
16
+ /** 12px — 모달, 스낵바 */
17
17
  readonly lg: "var(--ds-radius-lg)";
18
18
  };
19
19
  export type DsRadiusKey = keyof typeof DS_RADIUS;
@@ -2,11 +2,11 @@
2
2
  const s = {
3
3
  /** 2px — 체크박스 등 가장 작은 요소 */
4
4
  xs: "var(--ds-radius-xs)",
5
- /** 4px — 작은 버튼(Height 36px 미만), 배지, 라벨 */
5
+ /** 4px — 작은 아이콘 버튼, 배지, 라벨 */
6
6
  ss: "var(--ds-radius-ss)",
7
- /** 8px — 주요 버튼, 인풋, 카드 */
7
+ /** 8px — 버튼(small 포함), 인풋, 카드 */
8
8
  md: "var(--ds-radius-md)",
9
- /** 12px — 모달 */
9
+ /** 12px — 모달, 스낵바 */
10
10
  lg: "var(--ds-radius-lg)"
11
11
  }, d = {
12
12
  /** 모달 이외 팝업, 드롭다운 리스트, 더보기 */
@@ -82,9 +82,15 @@ export declare const PYLER_TYPOGRAPHY_STYLE: {
82
82
  readonly lineHeight: "var(--ds-type-label-1-r-line-height)";
83
83
  readonly fontWeight: "var(--ds-type-label-1-r-font-weight)";
84
84
  };
85
+ readonly label1Sb: {
86
+ readonly fontFamily: "var(--ds-font-sans)";
87
+ readonly fontSize: "var(--ds-type-label-1-sb-font-size)";
88
+ readonly lineHeight: "var(--ds-type-label-1-sb-line-height)";
89
+ readonly fontWeight: "var(--ds-type-label-1-sb-font-weight)";
90
+ };
85
91
  };
86
92
  export type PylerTypographyStyleKey = keyof typeof PYLER_TYPOGRAPHY_STYLE;
87
93
  /** Tailwind 유틸 접두사 `text-` 와 정렬 (예: title-1-sb → text-title-1-sb) */
88
- export type PylerTypographyScale = "title-1-sb" | "title-1-m" | "title-2-sb" | "body-1-m" | "body-1-r" | "body-2-sb" | "body-2-m" | "body-2-r" | "body-3-m" | "body-3-r" | "body-4-m" | "body-4-r" | "label-1-r";
94
+ export type PylerTypographyScale = "title-1-sb" | "title-1-m" | "title-2-sb" | "body-1-m" | "body-1-r" | "body-2-sb" | "body-2-m" | "body-2-r" | "body-3-m" | "body-3-r" | "body-4-m" | "body-4-r" | "label-1-r" | "label-1-sb";
89
95
  /** 순수 CSS 클래스 (Tailwind/Chakra 없이) */
90
- export type PylerTypographyUtilityClass = "ds-type-title-1-sb" | "ds-type-title-1-m" | "ds-type-title-2-sb" | "ds-type-body-1-m" | "ds-type-body-1-r" | "ds-type-body-2-sb" | "ds-type-body-2-m" | "ds-type-body-2-r" | "ds-type-body-3-m" | "ds-type-body-3-r" | "ds-type-body-4-m" | "ds-type-body-4-r" | "ds-type-label-1-r";
96
+ export type PylerTypographyUtilityClass = "ds-type-title-1-sb" | "ds-type-title-1-m" | "ds-type-title-2-sb" | "ds-type-body-1-m" | "ds-type-body-1-r" | "ds-type-body-2-sb" | "ds-type-body-2-m" | "ds-type-body-2-r" | "ds-type-body-3-m" | "ds-type-body-3-r" | "ds-type-body-4-m" | "ds-type-body-4-r" | "ds-type-label-1-r" | "ds-type-label-1-sb";
@@ -77,6 +77,12 @@ const t = {
77
77
  fontSize: "var(--ds-type-label-1-r-font-size)",
78
78
  lineHeight: "var(--ds-type-label-1-r-line-height)",
79
79
  fontWeight: "var(--ds-type-label-1-r-font-weight)"
80
+ },
81
+ label1Sb: {
82
+ fontFamily: "var(--ds-font-sans)",
83
+ fontSize: "var(--ds-type-label-1-sb-font-size)",
84
+ lineHeight: "var(--ds-type-label-1-sb-line-height)",
85
+ fontWeight: "var(--ds-type-label-1-sb-font-weight)"
80
86
  }
81
87
  };
82
88
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pylerai/design-system",
3
- "version": "2.3.1-rc.1",
3
+ "version": "2.5.0",
4
4
  "description": "design-system for pyler frontend",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -11,6 +11,7 @@ module.exports = {
11
11
  },
12
12
  main: {
13
13
  default: "var(--ds-main-default)",
14
+ "sky-blue": "var(--ds-main-sky-blue)",
14
15
  },
15
16
  background: {
16
17
  default: "var(--ds-background-default)",
@@ -21,6 +22,7 @@ module.exports = {
21
22
  },
22
23
  text: {
23
24
  strong: "var(--ds-text-strong)",
25
+ medium: "var(--ds-text-medium)",
24
26
  normal: "var(--ds-text-normal)",
25
27
  disabled: "var(--ds-text-disabled)",
26
28
  },
@@ -32,6 +34,8 @@ module.exports = {
32
34
  strong: "var(--ds-surface-strong)",
33
35
  normal: "var(--ds-surface-normal)",
34
36
  alternative: "var(--ds-surface-alternative)",
37
+ hovered: "var(--ds-surface-hovered)",
38
+ disabled: "var(--ds-surface-disabled)",
35
39
  },
36
40
  primary: {
37
41
  "blue-normal": "var(--ds-primary-blue-normal)",
@@ -110,6 +110,13 @@ const pylerTypographyThemeExtend = {
110
110
  fontWeight: "var(--ds-type-label-1-r-font-weight)",
111
111
  },
112
112
  ],
113
+ "label-1-sb": [
114
+ "var(--ds-type-label-1-sb-font-size)",
115
+ {
116
+ lineHeight: "var(--ds-type-label-1-sb-line-height)",
117
+ fontWeight: "var(--ds-type-label-1-sb-font-weight)",
118
+ },
119
+ ],
113
120
  },
114
121
  };
115
122