@x-plat/design-system 0.2.4 → 0.3.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 (73) hide show
  1. package/dist/{colors-cxE7RsuF.d.cts → colors-BgzpjYfN.d.cts} +3 -6
  2. package/dist/{colors-cxE7RsuF.d.ts → colors-BgzpjYfN.d.ts} +3 -6
  3. package/dist/components/Avatar/index.cjs +2 -14
  4. package/dist/components/Avatar/index.d.cts +3 -235
  5. package/dist/components/Avatar/index.d.ts +3 -235
  6. package/dist/components/Avatar/index.js +2 -14
  7. package/dist/components/Badge/index.cjs +2 -14
  8. package/dist/components/Badge/index.d.cts +3 -235
  9. package/dist/components/Badge/index.d.ts +3 -235
  10. package/dist/components/Badge/index.js +2 -14
  11. package/dist/components/Button/index.cjs +2 -14
  12. package/dist/components/Button/index.d.cts +3 -235
  13. package/dist/components/Button/index.d.ts +3 -235
  14. package/dist/components/Button/index.js +2 -14
  15. package/dist/components/CheckBox/index.cjs +2 -14
  16. package/dist/components/CheckBox/index.d.cts +3 -235
  17. package/dist/components/CheckBox/index.d.ts +3 -235
  18. package/dist/components/CheckBox/index.js +2 -14
  19. package/dist/components/Chip/index.cjs +2 -14
  20. package/dist/components/Chip/index.d.cts +3 -235
  21. package/dist/components/Chip/index.d.ts +3 -235
  22. package/dist/components/Chip/index.js +2 -14
  23. package/dist/components/DatePicker/index.cjs +9 -161
  24. package/dist/components/DatePicker/index.d.cts +5 -469
  25. package/dist/components/DatePicker/index.d.ts +5 -469
  26. package/dist/components/DatePicker/index.js +9 -161
  27. package/dist/components/Pagination/index.cjs +2 -14
  28. package/dist/components/Pagination/index.d.cts +3 -235
  29. package/dist/components/Pagination/index.d.ts +3 -235
  30. package/dist/components/Pagination/index.js +2 -14
  31. package/dist/components/Progress/index.cjs +2 -14
  32. package/dist/components/Progress/index.d.cts +3 -235
  33. package/dist/components/Progress/index.d.ts +3 -235
  34. package/dist/components/Progress/index.js +2 -14
  35. package/dist/components/Radio/index.cjs +2 -14
  36. package/dist/components/Radio/index.d.cts +3 -235
  37. package/dist/components/Radio/index.d.ts +3 -235
  38. package/dist/components/Radio/index.js +2 -14
  39. package/dist/components/Spinner/index.cjs +2 -14
  40. package/dist/components/Spinner/index.d.cts +3 -235
  41. package/dist/components/Spinner/index.d.ts +3 -235
  42. package/dist/components/Spinner/index.js +2 -14
  43. package/dist/components/Steps/index.cjs +2 -14
  44. package/dist/components/Steps/index.d.cts +3 -235
  45. package/dist/components/Steps/index.d.ts +3 -235
  46. package/dist/components/Steps/index.js +2 -14
  47. package/dist/components/Switch/index.cjs +2 -14
  48. package/dist/components/Switch/index.d.cts +3 -235
  49. package/dist/components/Switch/index.d.ts +3 -235
  50. package/dist/components/Switch/index.js +2 -14
  51. package/dist/components/Table/index.cjs +2 -16
  52. package/dist/components/Table/index.d.cts +3 -235
  53. package/dist/components/Table/index.d.ts +3 -235
  54. package/dist/components/Table/index.js +2 -16
  55. package/dist/components/Tag/index.cjs +2 -14
  56. package/dist/components/Tag/index.d.cts +3 -235
  57. package/dist/components/Tag/index.d.ts +3 -235
  58. package/dist/components/Tag/index.js +2 -14
  59. package/dist/components/Tooltip/index.cjs +2 -14
  60. package/dist/components/Tooltip/index.d.cts +3 -238
  61. package/dist/components/Tooltip/index.d.ts +3 -238
  62. package/dist/components/Tooltip/index.js +2 -14
  63. package/dist/components/index.cjs +35 -159
  64. package/dist/components/index.d.cts +1 -1
  65. package/dist/components/index.d.ts +1 -1
  66. package/dist/components/index.js +35 -159
  67. package/dist/index.cjs +35 -159
  68. package/dist/index.d.cts +1 -1
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +35 -159
  71. package/dist/tokens/index.d.cts +1 -1
  72. package/dist/tokens/index.d.ts +1 -1
  73. package/package.json +1 -1
@@ -1,249 +1,14 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { b as ColorNamespace, d as ColorName, a as CustomNamespaces, C as CustomColors, g as ColorProps, e as ColorDepth } from '../../colors-cxE7RsuF.js';
3
2
  import React from 'react';
3
+ import { g as ColorProps } from '../../colors-BgzpjYfN.js';
4
4
 
5
- type TooltipColor = Exclude<ColorName<ColorNamespace>, "black" | "white">;
6
- interface TooltipProps<N extends ColorNamespace, C extends ColorName<N> = ColorName<N>> extends ColorProps<N, C> {
5
+ interface TooltipProps extends ColorProps {
7
6
  type?: "primary" | "secondary";
8
7
  description: React.ReactNode;
9
- color?: TooltipColor;
10
- colorDepth?: ColorDepth<ColorNamespace, TooltipColor>;
11
8
  children?: React.ReactNode;
12
9
  }
13
10
  declare const Tooltip: {
14
- <N extends ColorNamespace = "xplat", C extends ColorName<N> = keyof (N extends "xplat" | "test" ? N extends never ? {
15
- readonly xplat: {
16
- readonly red: {
17
- readonly 50: "#FFF0F0";
18
- readonly 100: "#FFDDDE";
19
- readonly 200: "#FFC1C2";
20
- readonly 300: "#FF9698";
21
- readonly 400: "#FF5A5D";
22
- readonly 500: "#FF272B";
23
- readonly 600: "#F80409";
24
- readonly 700: "#D40105";
25
- readonly 800: "#AE0609";
26
- readonly 900: "#900C0F";
27
- };
28
- readonly green: {
29
- readonly 50: "#E5F6EA";
30
- readonly 100: "#C1E7CC";
31
- readonly 200: "#98D8AC";
32
- readonly 300: "#6CCA8B";
33
- readonly 400: "#47BE72";
34
- readonly 500: "#10B259";
35
- readonly 600: "#00A34F";
36
- readonly 700: "#009143";
37
- readonly 800: "#007F38";
38
- readonly 900: "#006024";
39
- };
40
- readonly orange: {
41
- readonly 50: "#FFF8EC";
42
- readonly 100: "#FFF0D3";
43
- readonly 200: "#FFDDA5";
44
- readonly 300: "#FFC46D";
45
- readonly 400: "#FF9F32";
46
- readonly 500: "#FF820A";
47
- readonly 600: "#FF6900";
48
- readonly 700: "#CC4B02";
49
- readonly 800: "#A13A0B";
50
- readonly 900: "#82320C";
51
- };
52
- readonly yellow: {
53
- readonly 50: "#FFFDE7";
54
- readonly 100: "#FFFAC1";
55
- readonly 200: "#FFF186";
56
- readonly 300: "#FFE041";
57
- readonly 400: "#FFCC0D";
58
- readonly 500: "#F0B100";
59
- readonly 600: "#D18800";
60
- readonly 700: "#A66002";
61
- readonly 800: "#894B0A";
62
- readonly 900: "#743D0F";
63
- };
64
- readonly blue: {
65
- readonly 50: "#F1F4FD";
66
- readonly 100: "#DFE7FA";
67
- readonly 200: "#C5D4F8";
68
- readonly 300: "#9EB8F2";
69
- readonly 400: "#7093EA";
70
- readonly 500: "#4D6DE3";
71
- readonly 600: "#3950D7";
72
- readonly 700: "#303EC5";
73
- readonly 800: "#2D35A0";
74
- readonly 900: "#29317F";
75
- };
76
- readonly lightblue: {
77
- readonly 50: "#EEFAFF";
78
- readonly 100: "#D9F4FF";
79
- readonly 200: "#BBEDFF";
80
- readonly 300: "#8DE3FF";
81
- readonly 400: "#57D0FF";
82
- readonly 500: "#30B6FF";
83
- readonly 600: "#1999F7";
84
- readonly 700: "#1280E3";
85
- readonly 800: "#1566B8";
86
- readonly 900: "#175791";
87
- };
88
- readonly purple: {
89
- readonly 50: "#FBF6FE";
90
- readonly 100: "#F5EAFD";
91
- readonly 200: "#EDD8FC";
92
- readonly 300: "#E0BAF8";
93
- readonly 400: "#CD8DF3";
94
- readonly 500: "#B961EB";
95
- readonly 600: "#A541DC";
96
- readonly 700: "#9230C5";
97
- readonly 800: "#782B9E";
98
- readonly 900: "#62247F";
99
- };
100
- readonly pink: {
101
- readonly 50: "#FFF4FE";
102
- readonly 100: "#FFE7FD";
103
- readonly 200: "#FFCFFA";
104
- readonly 300: "#FEA9F1";
105
- readonly 400: "#FD75E7";
106
- readonly 500: "#F553DA";
107
- readonly 600: "#D821B6";
108
- readonly 700: "#B31892";
109
- readonly 800: "#921676";
110
- readonly 900: "#781761";
111
- };
112
- readonly neutral: {
113
- readonly 50: "#FAFAFA";
114
- readonly 100: "#F5F5F5";
115
- readonly 200: "#E5E5E5";
116
- readonly 300: "#D4D4D4";
117
- readonly 400: "#A1A1A1";
118
- readonly 500: "#737373";
119
- readonly 600: "#525252";
120
- readonly 700: "#404040";
121
- readonly 800: "#262626";
122
- readonly 900: "#171717";
123
- };
124
- readonly black: "#000000";
125
- readonly white: "#FFFFFF";
126
- };
127
- readonly test: {
128
- readonly default: "#ffffff";
129
- };
130
- }[N] & CustomNamespaces[N] & (N extends "xplat" ? CustomColors : {}) : {
131
- readonly xplat: {
132
- readonly red: {
133
- readonly 50: "#FFF0F0";
134
- readonly 100: "#FFDDDE";
135
- readonly 200: "#FFC1C2";
136
- readonly 300: "#FF9698";
137
- readonly 400: "#FF5A5D";
138
- readonly 500: "#FF272B";
139
- readonly 600: "#F80409";
140
- readonly 700: "#D40105";
141
- readonly 800: "#AE0609";
142
- readonly 900: "#900C0F";
143
- };
144
- readonly green: {
145
- readonly 50: "#E5F6EA";
146
- readonly 100: "#C1E7CC";
147
- readonly 200: "#98D8AC";
148
- readonly 300: "#6CCA8B";
149
- readonly 400: "#47BE72";
150
- readonly 500: "#10B259";
151
- readonly 600: "#00A34F";
152
- readonly 700: "#009143";
153
- readonly 800: "#007F38";
154
- readonly 900: "#006024";
155
- };
156
- readonly orange: {
157
- readonly 50: "#FFF8EC";
158
- readonly 100: "#FFF0D3";
159
- readonly 200: "#FFDDA5";
160
- readonly 300: "#FFC46D";
161
- readonly 400: "#FF9F32";
162
- readonly 500: "#FF820A";
163
- readonly 600: "#FF6900";
164
- readonly 700: "#CC4B02";
165
- readonly 800: "#A13A0B";
166
- readonly 900: "#82320C";
167
- };
168
- readonly yellow: {
169
- readonly 50: "#FFFDE7";
170
- readonly 100: "#FFFAC1";
171
- readonly 200: "#FFF186";
172
- readonly 300: "#FFE041";
173
- readonly 400: "#FFCC0D";
174
- readonly 500: "#F0B100";
175
- readonly 600: "#D18800";
176
- readonly 700: "#A66002";
177
- readonly 800: "#894B0A";
178
- readonly 900: "#743D0F";
179
- };
180
- readonly blue: {
181
- readonly 50: "#F1F4FD";
182
- readonly 100: "#DFE7FA";
183
- readonly 200: "#C5D4F8";
184
- readonly 300: "#9EB8F2";
185
- readonly 400: "#7093EA";
186
- readonly 500: "#4D6DE3";
187
- readonly 600: "#3950D7";
188
- readonly 700: "#303EC5";
189
- readonly 800: "#2D35A0";
190
- readonly 900: "#29317F";
191
- };
192
- readonly lightblue: {
193
- readonly 50: "#EEFAFF";
194
- readonly 100: "#D9F4FF";
195
- readonly 200: "#BBEDFF";
196
- readonly 300: "#8DE3FF";
197
- readonly 400: "#57D0FF";
198
- readonly 500: "#30B6FF";
199
- readonly 600: "#1999F7";
200
- readonly 700: "#1280E3";
201
- readonly 800: "#1566B8";
202
- readonly 900: "#175791";
203
- };
204
- readonly purple: {
205
- readonly 50: "#FBF6FE";
206
- readonly 100: "#F5EAFD";
207
- readonly 200: "#EDD8FC";
208
- readonly 300: "#E0BAF8";
209
- readonly 400: "#CD8DF3";
210
- readonly 500: "#B961EB";
211
- readonly 600: "#A541DC";
212
- readonly 700: "#9230C5";
213
- readonly 800: "#782B9E";
214
- readonly 900: "#62247F";
215
- };
216
- readonly pink: {
217
- readonly 50: "#FFF4FE";
218
- readonly 100: "#FFE7FD";
219
- readonly 200: "#FFCFFA";
220
- readonly 300: "#FEA9F1";
221
- readonly 400: "#FD75E7";
222
- readonly 500: "#F553DA";
223
- readonly 600: "#D821B6";
224
- readonly 700: "#B31892";
225
- readonly 800: "#921676";
226
- readonly 900: "#781761";
227
- };
228
- readonly neutral: {
229
- readonly 50: "#FAFAFA";
230
- readonly 100: "#F5F5F5";
231
- readonly 200: "#E5E5E5";
232
- readonly 300: "#D4D4D4";
233
- readonly 400: "#A1A1A1";
234
- readonly 500: "#737373";
235
- readonly 600: "#525252";
236
- readonly 700: "#404040";
237
- readonly 800: "#262626";
238
- readonly 900: "#171717";
239
- };
240
- readonly black: "#000000";
241
- readonly white: "#FFFFFF";
242
- };
243
- readonly test: {
244
- readonly default: "#ffffff";
245
- };
246
- }[N] & (N extends "xplat" ? CustomColors : {}) : N extends never ? CustomNamespaces[N] : {})>(props: TooltipProps<N, C>): react_jsx_runtime.JSX.Element;
11
+ (props: TooltipProps): react_jsx_runtime.JSX.Element;
247
12
  displayName: string;
248
13
  };
249
14
 
@@ -1,11 +1,6 @@
1
1
  // src/components/Tooltip/Tooltip.tsx
2
2
  import React from "react";
3
3
 
4
- // src/util/getColor.ts
5
- var getColorClass = (namespace, palette, shade) => {
6
- return `${String(namespace)}-${String(palette)}${shade !== void 0 ? `-${String(shade)}` : ""}`;
7
- };
8
-
9
4
  // ../../node_modules/clsx/dist/clsx.mjs
10
5
  function r(e) {
11
6
  var t, f, n = "";
@@ -27,19 +22,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
27
22
  var Tooltip = (props) => {
28
23
  const {
29
24
  type = "primary",
30
- colorNamespace = "xplat",
31
- color = "blue",
32
- colorDepth,
33
- colorToken,
25
+ color = "xplat-neutral-900",
34
26
  description,
35
27
  children
36
28
  } = props;
37
29
  const iconRef = React.useRef(null);
38
- const colorClass = colorToken ?? getColorClass(
39
- colorNamespace,
40
- color,
41
- colorDepth ?? 500
42
- );
30
+ const colorClass = color;
43
31
  return /* @__PURE__ */ jsxs("div", { className: "lib-xplat-tooltip", children: [
44
32
  /* @__PURE__ */ jsx("div", { className: "tooltip-content", ref: iconRef, children: children || "Tooltip" }),
45
33
  /* @__PURE__ */ jsx("div", { className: clsx_default("tooltip-wrapper", colorClass, type), children: description })
@@ -1453,11 +1453,6 @@ var Alert = (props) => {
1453
1453
  Alert.displayName = "Alert";
1454
1454
  var Alert_default = Alert;
1455
1455
 
1456
- // src/util/getColor.ts
1457
- var getColorClass = (namespace, palette, shade) => {
1458
- return `${String(namespace)}-${String(palette)}${shade !== void 0 ? `-${String(shade)}` : ""}`;
1459
- };
1460
-
1461
1456
  // src/components/Avatar/Avatar.tsx
1462
1457
  var import_jsx_runtime297 = require("react/jsx-runtime");
1463
1458
  var Avatar = (props) => {
@@ -1466,17 +1461,10 @@ var Avatar = (props) => {
1466
1461
  alt,
1467
1462
  name,
1468
1463
  size: size4 = "md",
1469
- colorNamespace = "xplat",
1470
- color: color2 = "blue",
1471
- colorDepth,
1472
- colorToken,
1464
+ color: color2 = "xplat-blue-500",
1473
1465
  className
1474
1466
  } = props;
1475
- const colorClass = colorToken ?? getColorClass(
1476
- colorNamespace,
1477
- color2,
1478
- colorDepth ?? 500
1479
- );
1467
+ const colorClass = color2;
1480
1468
  const initials = name ? name.split(" ").map((s) => s[0]).join("").slice(0, 2).toUpperCase() : "";
1481
1469
  return /* @__PURE__ */ (0, import_jsx_runtime297.jsx)("div", { className: clsx_default("lib-xplat-avatar", size4, className), children: src ? /* @__PURE__ */ (0, import_jsx_runtime297.jsx)("img", { src, alt: alt || name || "avatar" }) : /* @__PURE__ */ (0, import_jsx_runtime297.jsx)("div", { className: clsx_default("fallback", colorClass), children: initials || /* @__PURE__ */ (0, import_jsx_runtime297.jsx)("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime297.jsx)("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }) }) }) });
1482
1470
  };
@@ -1492,17 +1480,10 @@ var Badge = (props) => {
1492
1480
  maxCount = 99,
1493
1481
  dot = false,
1494
1482
  size: size4 = "md",
1495
- colorNamespace = "xplat",
1496
- color: color2 = "red",
1497
- colorDepth,
1498
- colorToken,
1483
+ color: color2 = "xplat-red-500",
1499
1484
  className
1500
1485
  } = props;
1501
- const colorClass = colorToken ?? getColorClass(
1502
- colorNamespace,
1503
- color2,
1504
- colorDepth ?? 500
1505
- );
1486
+ const colorClass = color2;
1506
1487
  const showBadge = dot || count2 !== void 0 && count2 > 0;
1507
1488
  const displayCount = count2 !== void 0 && count2 > maxCount ? `${maxCount}+` : count2;
1508
1489
  return /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)("div", { className: clsx_default("lib-xplat-badge", size4, className), children: [
@@ -1535,19 +1516,12 @@ var Button = (props) => {
1535
1516
  children,
1536
1517
  type = "primary",
1537
1518
  size: size4 = "md",
1538
- colorNamespace = "xplat",
1539
- color: color2 = "black",
1540
- colorDepth,
1541
- colorToken,
1519
+ color: color2 = "xplat-black",
1542
1520
  disabled,
1543
1521
  className,
1544
1522
  ...rest
1545
1523
  } = props;
1546
- const colorClass = colorToken ?? getColorClass(
1547
- colorNamespace,
1548
- color2,
1549
- colorDepth ?? 500
1550
- );
1524
+ const colorClass = color2;
1551
1525
  return /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
1552
1526
  "button",
1553
1527
  {
@@ -16165,10 +16139,7 @@ var Chart_default = Chart3;
16165
16139
  var import_jsx_runtime306 = require("react/jsx-runtime");
16166
16140
  var CheckBox = (props) => {
16167
16141
  const {
16168
- colorNamespace = "xplat",
16169
- color: color2 = "blue",
16170
- colorDepth,
16171
- colorToken,
16142
+ color: color2 = "xplat-blue-500",
16172
16143
  checked,
16173
16144
  label,
16174
16145
  onChange,
@@ -16180,11 +16151,7 @@ var CheckBox = (props) => {
16180
16151
  const handleChange = (e) => {
16181
16152
  if (onChange) onChange(e);
16182
16153
  };
16183
- const mainColor = colorToken ?? getColorClass(
16184
- colorNamespace,
16185
- color2,
16186
- colorDepth ?? 500
16187
- );
16154
+ const mainColor = color2;
16188
16155
  const uncheckedClasses = `unchecked`;
16189
16156
  const checkedClasses = `checked ${mainColor}`;
16190
16157
  const disabledClasses = "disabled";
@@ -16212,19 +16179,12 @@ var import_jsx_runtime307 = require("react/jsx-runtime");
16212
16179
  var Chip = (props) => {
16213
16180
  const {
16214
16181
  children,
16215
- colorNamespace = "xplat",
16216
- color: color2 = "black",
16217
- colorDepth,
16218
- colorToken,
16182
+ color: color2 = "xplat-black",
16219
16183
  type = "primary",
16220
16184
  size: size4 = "md",
16221
16185
  className
16222
16186
  } = props;
16223
- const colorClass = colorToken ?? getColorClass(
16224
- colorNamespace,
16225
- color2,
16226
- colorDepth ?? 500
16227
- );
16187
+ const colorClass = color2;
16228
16188
  return /* @__PURE__ */ (0, import_jsx_runtime307.jsx)("div", { className: clsx_default("lib-xplat-chip", type, size4, colorClass, className), children });
16229
16189
  };
16230
16190
  Chip.displayName = "Chip";
@@ -27218,19 +27178,11 @@ var Modal_default = Modal;
27218
27178
 
27219
27179
  // src/components/DatePicker/SingleDatePicker/index.tsx
27220
27180
  var import_jsx_runtime314 = require("react/jsx-runtime");
27221
- function getColorValue(ns, color2, depth) {
27222
- const nsColors = colors[ns];
27223
- const colorEntry = nsColors[color2];
27224
- if (typeof colorEntry === "string") return colorEntry;
27225
- return colorEntry[String(depth)] ?? "";
27226
- }
27227
27181
  var SingleDatePicker = (props) => {
27228
27182
  const {
27229
27183
  value,
27230
27184
  onChange,
27231
- colorNamespace = "xplat",
27232
- color: color2 = "blue",
27233
- colorDepth,
27185
+ color: color2 = "xplat-blue-500",
27234
27186
  highlightDates,
27235
27187
  ...rest
27236
27188
  } = props;
@@ -27238,16 +27190,11 @@ var SingleDatePicker = (props) => {
27238
27190
  if (Array.isArray(date)) return;
27239
27191
  onChange?.(date);
27240
27192
  };
27241
- const activeColor = getColorValue(
27242
- colorNamespace,
27243
- color2,
27244
- colorDepth ?? 500
27245
- );
27246
27193
  return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
27247
27194
  "div",
27248
27195
  {
27249
27196
  className: "lib-xplat-datepicker",
27250
- style: { "--datepicker-active-color": activeColor },
27197
+ style: { "--datepicker-active-color": `var(--${color2})` },
27251
27198
  children: /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
27252
27199
  DatePicker,
27253
27200
  {
@@ -27305,13 +27252,12 @@ var PopupPicker = (props) => {
27305
27252
  Button_default,
27306
27253
  {
27307
27254
  type: "secondary",
27308
- color: "neutral",
27309
- colorDepth: 400,
27255
+ color: "xplat-neutral-400",
27310
27256
  onClick: handleClose,
27311
27257
  children: "\uCDE8\uC18C"
27312
27258
  }
27313
27259
  ),
27314
- /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(Button_default, { type: "primary", color: "blue", onClick: handleClose, children: "\uC801\uC6A9" })
27260
+ /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(Button_default, { type: "primary", color: "xplat-blue-500", onClick: handleClose, children: "\uC801\uC6A9" })
27315
27261
  ] })
27316
27262
  ] }) })
27317
27263
  ] });
@@ -27341,19 +27287,12 @@ var RangePicker = (props) => {
27341
27287
  onChange,
27342
27288
  minDate,
27343
27289
  maxDate,
27344
- colorNamespace,
27345
- color: color2,
27346
- colorDepth
27290
+ color: color2
27347
27291
  } = props;
27348
27292
  const rangeDates = import_react15.default.useMemo(
27349
27293
  () => getDatesBetween(startDate, endDate),
27350
27294
  [startDate, endDate]
27351
27295
  );
27352
- const colorProps = {
27353
- ...colorNamespace !== void 0 && { colorNamespace },
27354
- ...color2 !== void 0 && { color: color2 },
27355
- ...colorDepth !== void 0 && { colorDepth }
27356
- };
27357
27296
  return /* @__PURE__ */ (0, import_jsx_runtime316.jsxs)("div", { className: "lib-xplat-range-datepicker", children: [
27358
27297
  /* @__PURE__ */ (0, import_jsx_runtime316.jsxs)("div", { className: "lib-xplat-range-datepicker-from", children: [
27359
27298
  /* @__PURE__ */ (0, import_jsx_runtime316.jsx)("span", { className: "lib-xplat-range-datepicker-label", children: "\uC2DC\uC791" }),
@@ -27365,7 +27304,7 @@ var RangePicker = (props) => {
27365
27304
  minDate,
27366
27305
  maxDate: endDate,
27367
27306
  highlightDates: rangeDates,
27368
- ...colorProps
27307
+ color: color2
27369
27308
  }
27370
27309
  )
27371
27310
  ] }),
@@ -27379,7 +27318,7 @@ var RangePicker = (props) => {
27379
27318
  minDate: startDate,
27380
27319
  maxDate,
27381
27320
  highlightDates: rangeDates,
27382
- ...colorProps
27321
+ color: color2
27383
27322
  }
27384
27323
  )
27385
27324
  ] })
@@ -28091,17 +28030,10 @@ var Pagination = (props) => {
28091
28030
  siblingCount = 1,
28092
28031
  onChange,
28093
28032
  size: size4 = "md",
28094
- colorNamespace = "xplat",
28095
- color: color2 = "blue",
28096
- colorDepth,
28097
- colorToken,
28033
+ color: color2 = "xplat-blue-500",
28098
28034
  className
28099
28035
  } = props;
28100
- const colorClass = colorToken ?? getColorClass(
28101
- colorNamespace,
28102
- color2,
28103
- colorDepth ?? 500
28104
- );
28036
+ const colorClass = color2;
28105
28037
  const totalPages = Math.max(1, Math.ceil(total / pageSize));
28106
28038
  const pages = getPageRange(current, totalPages, siblingCount);
28107
28039
  const handleClick = (page) => {
@@ -28211,17 +28143,10 @@ var Progress = (props) => {
28211
28143
  max: max3 = 100,
28212
28144
  size: size4 = "md",
28213
28145
  showLabel = false,
28214
- colorNamespace = "xplat",
28215
- color: color2 = "blue",
28216
- colorDepth,
28217
- colorToken,
28146
+ color: color2 = "xplat-blue-500",
28218
28147
  className
28219
28148
  } = props;
28220
- const colorClass = colorToken ?? getColorClass(
28221
- colorNamespace,
28222
- color2,
28223
- colorDepth ?? 500
28224
- );
28149
+ const colorClass = color2;
28225
28150
  const percentage = Math.min(100, Math.max(0, value / max3 * 100));
28226
28151
  return /* @__PURE__ */ (0, import_jsx_runtime328.jsxs)("div", { className: clsx_default("lib-xplat-progress", size4, className), children: [
28227
28152
  /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
@@ -28267,10 +28192,7 @@ var Radio = (props) => {
28267
28192
  label,
28268
28193
  value,
28269
28194
  className,
28270
- colorNamespace = "xplat",
28271
- color: color2 = "blue",
28272
- colorDepth,
28273
- colorToken,
28195
+ color: color2 = "xplat-blue-500",
28274
28196
  size: sizeProp,
28275
28197
  ...rest
28276
28198
  } = props;
@@ -28283,11 +28205,7 @@ var Radio = (props) => {
28283
28205
  value,
28284
28206
  onChange: rest.onChange
28285
28207
  };
28286
- const colorClass = colorToken ?? getColorClass(
28287
- colorNamespace,
28288
- color2,
28289
- colorDepth ?? 500
28290
- );
28208
+ const colorClass = color2;
28291
28209
  return /* @__PURE__ */ (0, import_jsx_runtime329.jsxs)(
28292
28210
  "label",
28293
28211
  {
@@ -28352,17 +28270,10 @@ var import_jsx_runtime332 = require("react/jsx-runtime");
28352
28270
  var Spinner = (props) => {
28353
28271
  const {
28354
28272
  size: size4 = "md",
28355
- colorNamespace = "xplat",
28356
- color: color2 = "blue",
28357
- colorDepth,
28358
- colorToken,
28273
+ color: color2 = "xplat-blue-500",
28359
28274
  className
28360
28275
  } = props;
28361
- const colorClass = colorToken ?? getColorClass(
28362
- colorNamespace,
28363
- color2,
28364
- colorDepth ?? 500
28365
- );
28276
+ const colorClass = color2;
28366
28277
  return /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(
28367
28278
  "div",
28368
28279
  {
@@ -28404,17 +28315,10 @@ var Steps = (props) => {
28404
28315
  const {
28405
28316
  items,
28406
28317
  current,
28407
- colorNamespace = "xplat",
28408
- color: color2 = "blue",
28409
- colorDepth,
28410
- colorToken,
28318
+ color: color2 = "xplat-blue-500",
28411
28319
  className
28412
28320
  } = props;
28413
- const colorClass = colorToken ?? getColorClass(
28414
- colorNamespace,
28415
- color2,
28416
- colorDepth ?? 500
28417
- );
28321
+ const colorClass = color2;
28418
28322
  return /* @__PURE__ */ (0, import_jsx_runtime333.jsx)("div", { className: clsx_default("lib-xplat-steps", className), children: items.map((item, index3) => {
28419
28323
  const status = index3 < current ? "completed" : index3 === current ? "active" : "pending";
28420
28324
  return /* @__PURE__ */ (0, import_jsx_runtime333.jsxs)("div", { className: clsx_default("step-item", status), children: [
@@ -28442,10 +28346,7 @@ var Switch = (props) => {
28442
28346
  size: size4 = "md",
28443
28347
  disabled,
28444
28348
  onChange,
28445
- colorNamespace = "xplat",
28446
- color: color2 = "blue",
28447
- colorDepth,
28448
- colorToken,
28349
+ color: color2 = "xplat-blue-500",
28449
28350
  className
28450
28351
  } = props;
28451
28352
  const [isAnimating, setIsAnimating] = import_react29.default.useState(false);
@@ -28465,11 +28366,7 @@ var Switch = (props) => {
28465
28366
  timeoutRef.current = null;
28466
28367
  }, KNOB_TRANSITION_MS);
28467
28368
  };
28468
- const colorClass = colorToken ?? getColorClass(
28469
- colorNamespace,
28470
- color2,
28471
- colorDepth ?? 500
28472
- );
28369
+ const colorClass = color2;
28473
28370
  return /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
28474
28371
  "div",
28475
28372
  {
@@ -28711,10 +28608,7 @@ var TableRow = (props) => {
28711
28608
  const {
28712
28609
  children,
28713
28610
  className,
28714
- colorNamespace = "xplat",
28715
- color: color2 = "black",
28716
- colorDepth,
28717
- colorToken,
28611
+ color: color2 = "xplat-blue-500",
28718
28612
  type = "secondary",
28719
28613
  isHover,
28720
28614
  onClick
@@ -28727,11 +28621,7 @@ var TableRow = (props) => {
28727
28621
  return [...prev, ref];
28728
28622
  });
28729
28623
  };
28730
- const colorClass = colorToken ?? getColorClass(
28731
- colorNamespace,
28732
- color2,
28733
- colorDepth ?? 500
28734
- );
28624
+ const colorClass = color2;
28735
28625
  return /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(TableRowContext_default.Provider, { value: { stickyCells, registerStickyCell }, children: /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
28736
28626
  "tr",
28737
28627
  {
@@ -28758,17 +28648,10 @@ var Tag = (props) => {
28758
28648
  children,
28759
28649
  onClose,
28760
28650
  size: size4 = "md",
28761
- colorNamespace = "xplat",
28762
- color: color2 = "neutral",
28763
- colorDepth,
28764
- colorToken,
28651
+ color: color2 = "xplat-neutral-500",
28765
28652
  className
28766
28653
  } = props;
28767
- const colorClass = colorToken ?? getColorClass(
28768
- colorNamespace,
28769
- color2,
28770
- colorDepth ?? 500
28771
- );
28654
+ const colorClass = color2;
28772
28655
  return /* @__PURE__ */ (0, import_jsx_runtime342.jsxs)("span", { className: clsx_default("lib-xplat-tag", size4, colorClass, className), children: [
28773
28656
  /* @__PURE__ */ (0, import_jsx_runtime342.jsx)("span", { className: "tag-label", children }),
28774
28657
  onClose && /* @__PURE__ */ (0, import_jsx_runtime342.jsx)("button", { className: "tag-close", onClick: onClose, "aria-label": "\uC0AD\uC81C", children: /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(XIcon_default, {}) })
@@ -28931,19 +28814,12 @@ var import_jsx_runtime345 = require("react/jsx-runtime");
28931
28814
  var Tooltip2 = (props) => {
28932
28815
  const {
28933
28816
  type = "primary",
28934
- colorNamespace = "xplat",
28935
- color: color2 = "blue",
28936
- colorDepth,
28937
- colorToken,
28817
+ color: color2 = "xplat-neutral-900",
28938
28818
  description,
28939
28819
  children
28940
28820
  } = props;
28941
28821
  const iconRef = import_react39.default.useRef(null);
28942
- const colorClass = colorToken ?? getColorClass(
28943
- colorNamespace,
28944
- color2,
28945
- colorDepth ?? 500
28946
- );
28822
+ const colorClass = color2;
28947
28823
  return /* @__PURE__ */ (0, import_jsx_runtime345.jsxs)("div", { className: "lib-xplat-tooltip", children: [
28948
28824
  /* @__PURE__ */ (0, import_jsx_runtime345.jsx)("div", { className: "tooltip-content", ref: iconRef, children: children || "Tooltip" }),
28949
28825
  /* @__PURE__ */ (0, import_jsx_runtime345.jsx)("div", { className: clsx_default("tooltip-wrapper", colorClass, type), children: description })