@x-plat/design-system 0.5.62 → 0.5.63

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 (33) hide show
  1. package/dist/components/Button/index.cjs +2 -1
  2. package/dist/components/Button/index.d.cts +1 -1
  3. package/dist/components/Button/index.d.ts +1 -1
  4. package/dist/components/Button/index.js +2 -1
  5. package/dist/components/ChatInput/index.cjs +2 -1
  6. package/dist/components/ChatInput/index.js +2 -1
  7. package/dist/components/CheckBox/index.cjs +2 -1
  8. package/dist/components/CheckBox/index.d.cts +1 -1
  9. package/dist/components/CheckBox/index.d.ts +1 -1
  10. package/dist/components/CheckBox/index.js +2 -1
  11. package/dist/components/DatePicker/index.cjs +4 -2
  12. package/dist/components/DatePicker/index.js +4 -2
  13. package/dist/components/IconButton/index.cjs +2 -1
  14. package/dist/components/IconButton/index.d.cts +1 -1
  15. package/dist/components/IconButton/index.d.ts +1 -1
  16. package/dist/components/IconButton/index.js +2 -1
  17. package/dist/components/Input/index.cjs +2 -1
  18. package/dist/components/Input/index.d.cts +2 -2
  19. package/dist/components/Input/index.d.ts +2 -2
  20. package/dist/components/Input/index.js +2 -1
  21. package/dist/components/Radio/index.cjs +3 -1
  22. package/dist/components/Radio/index.d.cts +1 -1
  23. package/dist/components/Radio/index.d.ts +1 -1
  24. package/dist/components/Radio/index.js +3 -1
  25. package/dist/components/TextArea/index.cjs +2 -2
  26. package/dist/components/TextArea/index.d.cts +1 -2
  27. package/dist/components/TextArea/index.d.ts +1 -2
  28. package/dist/components/TextArea/index.js +2 -2
  29. package/dist/components/index.cjs +13 -7
  30. package/dist/components/index.js +13 -7
  31. package/dist/index.cjs +13 -7
  32. package/dist/index.js +13 -7
  33. package/package.json +1 -1
@@ -45,6 +45,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
45
45
  var Button = (props) => {
46
46
  const {
47
47
  children,
48
+ className,
48
49
  type = "primary",
49
50
  size = "md",
50
51
  disabled,
@@ -53,7 +54,7 @@ var Button = (props) => {
53
54
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
54
55
  "button",
55
56
  {
56
- className: clsx_default("lib-xplat-button", type, size),
57
+ className: clsx_default("lib-xplat-button", type, size, className),
57
58
  disabled,
58
59
  ...rest,
59
60
  children
@@ -4,7 +4,7 @@ import { B as ButtonAttributes } from '../../attributes-DJIWir_0.cjs';
4
4
 
5
5
  type ButtonType = "primary" | "secondary" | "danger" | "ghost";
6
6
  type ButtonSize = "sm" | "md" | "lg";
7
- interface ButtonProps extends Omit<ButtonAttributes, "className"> {
7
+ interface ButtonProps extends Omit<ButtonAttributes, "style"> {
8
8
  children: React.ReactNode;
9
9
  type?: ButtonType;
10
10
  size?: ButtonSize;
@@ -4,7 +4,7 @@ import { B as ButtonAttributes } from '../../attributes-DJIWir_0.js';
4
4
 
5
5
  type ButtonType = "primary" | "secondary" | "danger" | "ghost";
6
6
  type ButtonSize = "sm" | "md" | "lg";
7
- interface ButtonProps extends Omit<ButtonAttributes, "className"> {
7
+ interface ButtonProps extends Omit<ButtonAttributes, "style"> {
8
8
  children: React.ReactNode;
9
9
  type?: ButtonType;
10
10
  size?: ButtonSize;
@@ -19,6 +19,7 @@ import { jsx } from "react/jsx-runtime";
19
19
  var Button = (props) => {
20
20
  const {
21
21
  children,
22
+ className,
22
23
  type = "primary",
23
24
  size = "md",
24
25
  disabled,
@@ -27,7 +28,7 @@ var Button = (props) => {
27
28
  return /* @__PURE__ */ jsx(
28
29
  "button",
29
30
  {
30
- className: clsx_default("lib-xplat-button", type, size),
31
+ className: clsx_default("lib-xplat-button", type, size, className),
31
32
  disabled,
32
33
  ...rest,
33
34
  children
@@ -58,6 +58,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
58
58
  var IconButton = (props) => {
59
59
  const {
60
60
  icon,
61
+ className,
61
62
  type = "primary",
62
63
  size = "md",
63
64
  disabled,
@@ -66,7 +67,7 @@ var IconButton = (props) => {
66
67
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
68
  "button",
68
69
  {
69
- className: clsx_default("lib-xplat-icon-button", type, size),
70
+ className: clsx_default("lib-xplat-icon-button", type, size, className),
70
71
  disabled,
71
72
  ...rest,
72
73
  children: icon
@@ -22,6 +22,7 @@ import { jsx } from "react/jsx-runtime";
22
22
  var IconButton = (props) => {
23
23
  const {
24
24
  icon,
25
+ className,
25
26
  type = "primary",
26
27
  size = "md",
27
28
  disabled,
@@ -30,7 +31,7 @@ var IconButton = (props) => {
30
31
  return /* @__PURE__ */ jsx(
31
32
  "button",
32
33
  {
33
- className: clsx_default("lib-xplat-icon-button", type, size),
34
+ className: clsx_default("lib-xplat-icon-button", type, size, className),
34
35
  disabled,
35
36
  ...rest,
36
37
  children: icon
@@ -951,6 +951,7 @@ var import_jsx_runtime295 = require("react/jsx-runtime");
951
951
  var CheckBox = (props) => {
952
952
  const {
953
953
  checked,
954
+ className,
954
955
  label,
955
956
  onChange,
956
957
  disabled,
@@ -965,7 +966,7 @@ var CheckBox = (props) => {
965
966
  const checkedClasses = `checked`;
966
967
  const disabledClasses = "disabled";
967
968
  const boxClasses = disabled ? disabledClasses : checked ? checkedClasses : uncheckedClasses;
968
- return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)("label", { className: clsx_default("lib-xplat-checkbox", size, type), children: [
969
+ return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)("label", { className: clsx_default("lib-xplat-checkbox", size, type, className), children: [
969
970
  /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
970
971
  "input",
971
972
  {
@@ -4,7 +4,7 @@ import 'react';
4
4
 
5
5
  type CheckBoxSize = "sm" | "md" | "lg";
6
6
  type CheckBoxType = "brand" | "success" | "error" | "warning" | "info";
7
- interface CheckBoxProps extends Omit<InputAttributes, "size" | "className"> {
7
+ interface CheckBoxProps extends Omit<InputAttributes, "size"> {
8
8
  label?: string;
9
9
  checked?: boolean;
10
10
  size?: CheckBoxSize;
@@ -4,7 +4,7 @@ import 'react';
4
4
 
5
5
  type CheckBoxSize = "sm" | "md" | "lg";
6
6
  type CheckBoxType = "brand" | "success" | "error" | "warning" | "info";
7
- interface CheckBoxProps extends Omit<InputAttributes, "size" | "className"> {
7
+ interface CheckBoxProps extends Omit<InputAttributes, "size"> {
8
8
  label?: string;
9
9
  checked?: boolean;
10
10
  size?: CheckBoxSize;
@@ -925,6 +925,7 @@ import { jsx as jsx295, jsxs as jsxs189 } from "react/jsx-runtime";
925
925
  var CheckBox = (props) => {
926
926
  const {
927
927
  checked,
928
+ className,
928
929
  label,
929
930
  onChange,
930
931
  disabled,
@@ -939,7 +940,7 @@ var CheckBox = (props) => {
939
940
  const checkedClasses = `checked`;
940
941
  const disabledClasses = "disabled";
941
942
  const boxClasses = disabled ? disabledClasses : checked ? checkedClasses : uncheckedClasses;
942
- return /* @__PURE__ */ jsxs189("label", { className: clsx_default("lib-xplat-checkbox", size, type), children: [
943
+ return /* @__PURE__ */ jsxs189("label", { className: clsx_default("lib-xplat-checkbox", size, type, className), children: [
943
944
  /* @__PURE__ */ jsx295(
944
945
  "input",
945
946
  {
@@ -61,6 +61,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
61
61
  var Button = (props) => {
62
62
  const {
63
63
  children,
64
+ className,
64
65
  type = "primary",
65
66
  size = "md",
66
67
  disabled,
@@ -69,7 +70,7 @@ var Button = (props) => {
69
70
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
70
71
  "button",
71
72
  {
72
- className: clsx_default("lib-xplat-button", type, size),
73
+ className: clsx_default("lib-xplat-button", type, size, className),
73
74
  disabled,
74
75
  ...rest,
75
76
  children
@@ -284,6 +285,7 @@ var parseValue = (type, value) => {
284
285
  var Input = import_react.default.forwardRef((props, ref) => {
285
286
  const {
286
287
  value,
288
+ className,
287
289
  onChange,
288
290
  type = "text",
289
291
  size = "md",
@@ -307,7 +309,7 @@ var Input = import_react.default.forwardRef((props, ref) => {
307
309
  onChange(event);
308
310
  }
309
311
  };
310
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "lib-xplat-input-wrap", children: [
312
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: clsx_default("lib-xplat-input-wrap", className), children: [
311
313
  /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
312
314
  "div",
313
315
  {
@@ -22,6 +22,7 @@ import { jsx } from "react/jsx-runtime";
22
22
  var Button = (props) => {
23
23
  const {
24
24
  children,
25
+ className,
25
26
  type = "primary",
26
27
  size = "md",
27
28
  disabled,
@@ -30,7 +31,7 @@ var Button = (props) => {
30
31
  return /* @__PURE__ */ jsx(
31
32
  "button",
32
33
  {
33
- className: clsx_default("lib-xplat-button", type, size),
34
+ className: clsx_default("lib-xplat-button", type, size, className),
34
35
  disabled,
35
36
  ...rest,
36
37
  children
@@ -245,6 +246,7 @@ var parseValue = (type, value) => {
245
246
  var Input = React.forwardRef((props, ref) => {
246
247
  const {
247
248
  value,
249
+ className,
248
250
  onChange,
249
251
  type = "text",
250
252
  size = "md",
@@ -268,7 +270,7 @@ var Input = React.forwardRef((props, ref) => {
268
270
  onChange(event);
269
271
  }
270
272
  };
271
- return /* @__PURE__ */ jsxs4("div", { className: "lib-xplat-input-wrap", children: [
273
+ return /* @__PURE__ */ jsxs4("div", { className: clsx_default("lib-xplat-input-wrap", className), children: [
272
274
  /* @__PURE__ */ jsxs4(
273
275
  "div",
274
276
  {
@@ -45,6 +45,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
45
45
  var IconButton = (props) => {
46
46
  const {
47
47
  icon,
48
+ className,
48
49
  type = "primary",
49
50
  size = "md",
50
51
  disabled,
@@ -53,7 +54,7 @@ var IconButton = (props) => {
53
54
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
54
55
  "button",
55
56
  {
56
- className: clsx_default("lib-xplat-icon-button", type, size),
57
+ className: clsx_default("lib-xplat-icon-button", type, size, className),
57
58
  disabled,
58
59
  ...rest,
59
60
  children: icon
@@ -4,7 +4,7 @@ import { B as ButtonAttributes } from '../../attributes-DJIWir_0.cjs';
4
4
 
5
5
  type IconButtonType = "primary" | "secondary" | "danger" | "ghost";
6
6
  type IconButtonSize = "sm" | "md" | "lg";
7
- interface IconButtonProps extends Omit<ButtonAttributes, "className" | "children"> {
7
+ interface IconButtonProps extends Omit<ButtonAttributes, "children"> {
8
8
  icon: React.ReactNode;
9
9
  type?: IconButtonType;
10
10
  size?: IconButtonSize;
@@ -4,7 +4,7 @@ import { B as ButtonAttributes } from '../../attributes-DJIWir_0.js';
4
4
 
5
5
  type IconButtonType = "primary" | "secondary" | "danger" | "ghost";
6
6
  type IconButtonSize = "sm" | "md" | "lg";
7
- interface IconButtonProps extends Omit<ButtonAttributes, "className" | "children"> {
7
+ interface IconButtonProps extends Omit<ButtonAttributes, "children"> {
8
8
  icon: React.ReactNode;
9
9
  type?: IconButtonType;
10
10
  size?: IconButtonSize;
@@ -19,6 +19,7 @@ import { jsx } from "react/jsx-runtime";
19
19
  var IconButton = (props) => {
20
20
  const {
21
21
  icon,
22
+ className,
22
23
  type = "primary",
23
24
  size = "md",
24
25
  disabled,
@@ -27,7 +28,7 @@ var IconButton = (props) => {
27
28
  return /* @__PURE__ */ jsx(
28
29
  "button",
29
30
  {
30
- className: clsx_default("lib-xplat-icon-button", type, size),
31
+ className: clsx_default("lib-xplat-icon-button", type, size, className),
31
32
  disabled,
32
33
  ...rest,
33
34
  children: icon
@@ -256,6 +256,7 @@ var parseValue = (type, value) => {
256
256
  var Input = import_react.default.forwardRef((props, ref) => {
257
257
  const {
258
258
  value,
259
+ className,
259
260
  onChange,
260
261
  type = "text",
261
262
  size = "md",
@@ -279,7 +280,7 @@ var Input = import_react.default.forwardRef((props, ref) => {
279
280
  onChange(event);
280
281
  }
281
282
  };
282
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "lib-xplat-input-wrap", children: [
283
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: clsx_default("lib-xplat-input-wrap", className), children: [
283
284
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
284
285
  "div",
285
286
  {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { I as InputAttributes } from '../../attributes-DJIWir_0.cjs';
3
3
 
4
4
  type InputSize$1 = "sm" | "md" | "lg";
5
- interface InputProps extends Omit<InputAttributes, "size" | "className"> {
5
+ interface InputProps extends Omit<InputAttributes, "size"> {
6
6
  type?: "text" | "number" | "email" | "password" | "tel";
7
7
  size?: InputSize$1;
8
8
  validations?: {
@@ -14,7 +14,7 @@ interface InputProps extends Omit<InputAttributes, "size" | "className"> {
14
14
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
15
15
 
16
16
  type InputSize = "sm" | "md" | "lg";
17
- interface PasswordInputProps extends Omit<InputAttributes, "size" | "className"> {
17
+ interface PasswordInputProps extends Omit<InputAttributes, "size"> {
18
18
  validations?: {
19
19
  status: "error" | "warning" | "success" | "default";
20
20
  message: string;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { I as InputAttributes } from '../../attributes-DJIWir_0.js';
3
3
 
4
4
  type InputSize$1 = "sm" | "md" | "lg";
5
- interface InputProps extends Omit<InputAttributes, "size" | "className"> {
5
+ interface InputProps extends Omit<InputAttributes, "size"> {
6
6
  type?: "text" | "number" | "email" | "password" | "tel";
7
7
  size?: InputSize$1;
8
8
  validations?: {
@@ -14,7 +14,7 @@ interface InputProps extends Omit<InputAttributes, "size" | "className"> {
14
14
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
15
15
 
16
16
  type InputSize = "sm" | "md" | "lg";
17
- interface PasswordInputProps extends Omit<InputAttributes, "size" | "className"> {
17
+ interface PasswordInputProps extends Omit<InputAttributes, "size"> {
18
18
  validations?: {
19
19
  status: "error" | "warning" | "success" | "default";
20
20
  message: string;
@@ -219,6 +219,7 @@ var parseValue = (type, value) => {
219
219
  var Input = React.forwardRef((props, ref) => {
220
220
  const {
221
221
  value,
222
+ className,
222
223
  onChange,
223
224
  type = "text",
224
225
  size = "md",
@@ -242,7 +243,7 @@ var Input = React.forwardRef((props, ref) => {
242
243
  onChange(event);
243
244
  }
244
245
  };
245
- return /* @__PURE__ */ jsxs4("div", { className: "lib-xplat-input-wrap", children: [
246
+ return /* @__PURE__ */ jsxs4("div", { className: clsx_default("lib-xplat-input-wrap", className), children: [
246
247
  /* @__PURE__ */ jsxs4(
247
248
  "div",
248
249
  {
@@ -66,6 +66,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
66
66
  var Radio = (props) => {
67
67
  const {
68
68
  label,
69
+ className,
69
70
  value,
70
71
  size: sizeProp,
71
72
  type = "brand",
@@ -87,7 +88,8 @@ var Radio = (props) => {
87
88
  "lib-xplat-radio",
88
89
  size,
89
90
  type,
90
- localChecked ? "checked" : void 0
91
+ localChecked ? "checked" : void 0,
92
+ className
91
93
  ),
92
94
  children: [
93
95
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { ...rest, ...inputProps, checked: localChecked, type: "radio" }),
@@ -4,7 +4,7 @@ import React from 'react';
4
4
 
5
5
  type RadioSize = "sm" | "md" | "lg";
6
6
  type RadioType = "brand" | "success" | "error" | "warning" | "info";
7
- interface RadioProps extends Omit<InputAttributes, "size" | "className"> {
7
+ interface RadioProps extends Omit<InputAttributes, "size"> {
8
8
  label?: string;
9
9
  /**
10
10
  * 단일 사용시 name 필수 작성
@@ -4,7 +4,7 @@ import React from 'react';
4
4
 
5
5
  type RadioSize = "sm" | "md" | "lg";
6
6
  type RadioType = "brand" | "success" | "error" | "warning" | "info";
7
- interface RadioProps extends Omit<InputAttributes, "size" | "className"> {
7
+ interface RadioProps extends Omit<InputAttributes, "size"> {
8
8
  label?: string;
9
9
  /**
10
10
  * 단일 사용시 name 필수 작성
@@ -29,6 +29,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
29
29
  var Radio = (props) => {
30
30
  const {
31
31
  label,
32
+ className,
32
33
  value,
33
34
  size: sizeProp,
34
35
  type = "brand",
@@ -50,7 +51,8 @@ var Radio = (props) => {
50
51
  "lib-xplat-radio",
51
52
  size,
52
53
  type,
53
- localChecked ? "checked" : void 0
54
+ localChecked ? "checked" : void 0,
55
+ className
54
56
  ),
55
57
  children: [
56
58
  /* @__PURE__ */ jsx("input", { ...rest, ...inputProps, checked: localChecked, type: "radio" }),
@@ -57,7 +57,7 @@ var clsx_default = clsx;
57
57
  var import_jsx_runtime = require("react/jsx-runtime");
58
58
  var TextArea = import_react.default.forwardRef(
59
59
  (props, ref) => {
60
- const { value, onChange, disabled, ...textareaProps } = props;
60
+ const { value, className, onChange, disabled, ...textareaProps } = props;
61
61
  const localRef = import_react.default.useRef(null);
62
62
  const setRefs = (el) => {
63
63
  localRef.current = el;
@@ -85,7 +85,7 @@ var TextArea = import_react.default.forwardRef(
85
85
  const nextHeight = Math.min(el.scrollHeight, 400);
86
86
  el.style.height = `${nextHeight}px`;
87
87
  }, [value]);
88
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "lib-xplat-textarea-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
88
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: clsx_default("lib-xplat-textarea-wrapper", className), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
89
89
  "div",
90
90
  {
91
91
  className: clsx_default(
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { T as TextareaAttributes } from '../../attributes-DJIWir_0.cjs';
3
3
 
4
- type TextareaProps = Omit<TextareaAttributes, "className">;
5
- declare const TextArea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
4
+ declare const TextArea: React.ForwardRefExoticComponent<TextareaAttributes & React.RefAttributes<HTMLTextAreaElement>>;
6
5
 
7
6
  export { TextArea };
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { T as TextareaAttributes } from '../../attributes-DJIWir_0.js';
3
3
 
4
- type TextareaProps = Omit<TextareaAttributes, "className">;
5
- declare const TextArea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
4
+ declare const TextArea: React.ForwardRefExoticComponent<TextareaAttributes & React.RefAttributes<HTMLTextAreaElement>>;
6
5
 
7
6
  export { TextArea };
@@ -21,7 +21,7 @@ var clsx_default = clsx;
21
21
  import { jsx } from "react/jsx-runtime";
22
22
  var TextArea = React.forwardRef(
23
23
  (props, ref) => {
24
- const { value, onChange, disabled, ...textareaProps } = props;
24
+ const { value, className, onChange, disabled, ...textareaProps } = props;
25
25
  const localRef = React.useRef(null);
26
26
  const setRefs = (el) => {
27
27
  localRef.current = el;
@@ -49,7 +49,7 @@ var TextArea = React.forwardRef(
49
49
  const nextHeight = Math.min(el.scrollHeight, 400);
50
50
  el.style.height = `${nextHeight}px`;
51
51
  }, [value]);
52
- return /* @__PURE__ */ jsx("div", { className: "lib-xplat-textarea-wrapper", children: /* @__PURE__ */ jsx(
52
+ return /* @__PURE__ */ jsx("div", { className: clsx_default("lib-xplat-textarea-wrapper", className), children: /* @__PURE__ */ jsx(
53
53
  "div",
54
54
  {
55
55
  className: clsx_default(
@@ -1674,6 +1674,7 @@ var import_jsx_runtime301 = require("react/jsx-runtime");
1674
1674
  var Button = (props) => {
1675
1675
  const {
1676
1676
  children,
1677
+ className,
1677
1678
  type = "primary",
1678
1679
  size = "md",
1679
1680
  disabled,
@@ -1682,7 +1683,7 @@ var Button = (props) => {
1682
1683
  return /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
1683
1684
  "button",
1684
1685
  {
1685
- className: clsx_default("lib-xplat-button", type, size),
1686
+ className: clsx_default("lib-xplat-button", type, size, className),
1686
1687
  disabled,
1687
1688
  ...rest,
1688
1689
  children
@@ -2790,6 +2791,7 @@ var import_jsx_runtime306 = require("react/jsx-runtime");
2790
2791
  var IconButton = (props) => {
2791
2792
  const {
2792
2793
  icon,
2794
+ className,
2793
2795
  type = "primary",
2794
2796
  size = "md",
2795
2797
  disabled,
@@ -2798,7 +2800,7 @@ var IconButton = (props) => {
2798
2800
  return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
2799
2801
  "button",
2800
2802
  {
2801
- className: clsx_default("lib-xplat-icon-button", type, size),
2803
+ className: clsx_default("lib-xplat-icon-button", type, size, className),
2802
2804
  disabled,
2803
2805
  ...rest,
2804
2806
  children: icon
@@ -2902,6 +2904,7 @@ var import_jsx_runtime308 = require("react/jsx-runtime");
2902
2904
  var CheckBox = (props) => {
2903
2905
  const {
2904
2906
  checked,
2907
+ className,
2905
2908
  label,
2906
2909
  onChange,
2907
2910
  disabled,
@@ -2916,7 +2919,7 @@ var CheckBox = (props) => {
2916
2919
  const checkedClasses = `checked`;
2917
2920
  const disabledClasses = "disabled";
2918
2921
  const boxClasses = disabled ? disabledClasses : checked ? checkedClasses : uncheckedClasses;
2919
- return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)("label", { className: clsx_default("lib-xplat-checkbox", size, type), children: [
2922
+ return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)("label", { className: clsx_default("lib-xplat-checkbox", size, type, className), children: [
2920
2923
  /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
2921
2924
  "input",
2922
2925
  {
@@ -3057,6 +3060,7 @@ var parseValue = (type, value) => {
3057
3060
  var Input = import_react7.default.forwardRef((props, ref) => {
3058
3061
  const {
3059
3062
  value,
3063
+ className,
3060
3064
  onChange,
3061
3065
  type = "text",
3062
3066
  size = "md",
@@ -3080,7 +3084,7 @@ var Input = import_react7.default.forwardRef((props, ref) => {
3080
3084
  onChange(event);
3081
3085
  }
3082
3086
  };
3083
- return /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)("div", { className: "lib-xplat-input-wrap", children: [
3087
+ return /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)("div", { className: clsx_default("lib-xplat-input-wrap", className), children: [
3084
3088
  /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)(
3085
3089
  "div",
3086
3090
  {
@@ -5066,6 +5070,7 @@ var import_jsx_runtime332 = require("react/jsx-runtime");
5066
5070
  var Radio = (props) => {
5067
5071
  const {
5068
5072
  label,
5073
+ className,
5069
5074
  value,
5070
5075
  size: sizeProp,
5071
5076
  type = "brand",
@@ -5087,7 +5092,8 @@ var Radio = (props) => {
5087
5092
  "lib-xplat-radio",
5088
5093
  size,
5089
5094
  type,
5090
- localChecked ? "checked" : void 0
5095
+ localChecked ? "checked" : void 0,
5096
+ className
5091
5097
  ),
5092
5098
  children: [
5093
5099
  /* @__PURE__ */ (0, import_jsx_runtime332.jsx)("input", { ...rest, ...inputProps, checked: localChecked, type: "radio" }),
@@ -5990,7 +5996,7 @@ var import_react39 = __toESM(require("react"), 1);
5990
5996
  var import_jsx_runtime347 = require("react/jsx-runtime");
5991
5997
  var TextArea = import_react39.default.forwardRef(
5992
5998
  (props, ref) => {
5993
- const { value, onChange, disabled, ...textareaProps } = props;
5999
+ const { value, className, onChange, disabled, ...textareaProps } = props;
5994
6000
  const localRef = import_react39.default.useRef(null);
5995
6001
  const setRefs = (el) => {
5996
6002
  localRef.current = el;
@@ -6018,7 +6024,7 @@ var TextArea = import_react39.default.forwardRef(
6018
6024
  const nextHeight = Math.min(el.scrollHeight, 400);
6019
6025
  el.style.height = `${nextHeight}px`;
6020
6026
  }, [value]);
6021
- return /* @__PURE__ */ (0, import_jsx_runtime347.jsx)("div", { className: "lib-xplat-textarea-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(
6027
+ return /* @__PURE__ */ (0, import_jsx_runtime347.jsx)("div", { className: clsx_default("lib-xplat-textarea-wrapper", className), children: /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(
6022
6028
  "div",
6023
6029
  {
6024
6030
  className: clsx_default(
@@ -1583,6 +1583,7 @@ import { jsx as jsx301 } from "react/jsx-runtime";
1583
1583
  var Button = (props) => {
1584
1584
  const {
1585
1585
  children,
1586
+ className,
1586
1587
  type = "primary",
1587
1588
  size = "md",
1588
1589
  disabled,
@@ -1591,7 +1592,7 @@ var Button = (props) => {
1591
1592
  return /* @__PURE__ */ jsx301(
1592
1593
  "button",
1593
1594
  {
1594
- className: clsx_default("lib-xplat-button", type, size),
1595
+ className: clsx_default("lib-xplat-button", type, size, className),
1595
1596
  disabled,
1596
1597
  ...rest,
1597
1598
  children
@@ -2699,6 +2700,7 @@ import { jsx as jsx306 } from "react/jsx-runtime";
2699
2700
  var IconButton = (props) => {
2700
2701
  const {
2701
2702
  icon,
2703
+ className,
2702
2704
  type = "primary",
2703
2705
  size = "md",
2704
2706
  disabled,
@@ -2707,7 +2709,7 @@ var IconButton = (props) => {
2707
2709
  return /* @__PURE__ */ jsx306(
2708
2710
  "button",
2709
2711
  {
2710
- className: clsx_default("lib-xplat-icon-button", type, size),
2712
+ className: clsx_default("lib-xplat-icon-button", type, size, className),
2711
2713
  disabled,
2712
2714
  ...rest,
2713
2715
  children: icon
@@ -2811,6 +2813,7 @@ import { jsx as jsx308, jsxs as jsxs198 } from "react/jsx-runtime";
2811
2813
  var CheckBox = (props) => {
2812
2814
  const {
2813
2815
  checked,
2816
+ className,
2814
2817
  label,
2815
2818
  onChange,
2816
2819
  disabled,
@@ -2825,7 +2828,7 @@ var CheckBox = (props) => {
2825
2828
  const checkedClasses = `checked`;
2826
2829
  const disabledClasses = "disabled";
2827
2830
  const boxClasses = disabled ? disabledClasses : checked ? checkedClasses : uncheckedClasses;
2828
- return /* @__PURE__ */ jsxs198("label", { className: clsx_default("lib-xplat-checkbox", size, type), children: [
2831
+ return /* @__PURE__ */ jsxs198("label", { className: clsx_default("lib-xplat-checkbox", size, type, className), children: [
2829
2832
  /* @__PURE__ */ jsx308(
2830
2833
  "input",
2831
2834
  {
@@ -2966,6 +2969,7 @@ var parseValue = (type, value) => {
2966
2969
  var Input = React7.forwardRef((props, ref) => {
2967
2970
  const {
2968
2971
  value,
2972
+ className,
2969
2973
  onChange,
2970
2974
  type = "text",
2971
2975
  size = "md",
@@ -2989,7 +2993,7 @@ var Input = React7.forwardRef((props, ref) => {
2989
2993
  onChange(event);
2990
2994
  }
2991
2995
  };
2992
- return /* @__PURE__ */ jsxs200("div", { className: "lib-xplat-input-wrap", children: [
2996
+ return /* @__PURE__ */ jsxs200("div", { className: clsx_default("lib-xplat-input-wrap", className), children: [
2993
2997
  /* @__PURE__ */ jsxs200(
2994
2998
  "div",
2995
2999
  {
@@ -4975,6 +4979,7 @@ import { jsx as jsx332, jsxs as jsxs215 } from "react/jsx-runtime";
4975
4979
  var Radio = (props) => {
4976
4980
  const {
4977
4981
  label,
4982
+ className,
4978
4983
  value,
4979
4984
  size: sizeProp,
4980
4985
  type = "brand",
@@ -4996,7 +5001,8 @@ var Radio = (props) => {
4996
5001
  "lib-xplat-radio",
4997
5002
  size,
4998
5003
  type,
4999
- localChecked ? "checked" : void 0
5004
+ localChecked ? "checked" : void 0,
5005
+ className
5000
5006
  ),
5001
5007
  children: [
5002
5008
  /* @__PURE__ */ jsx332("input", { ...rest, ...inputProps, checked: localChecked, type: "radio" }),
@@ -5899,7 +5905,7 @@ import React38 from "react";
5899
5905
  import { jsx as jsx347 } from "react/jsx-runtime";
5900
5906
  var TextArea = React38.forwardRef(
5901
5907
  (props, ref) => {
5902
- const { value, onChange, disabled, ...textareaProps } = props;
5908
+ const { value, className, onChange, disabled, ...textareaProps } = props;
5903
5909
  const localRef = React38.useRef(null);
5904
5910
  const setRefs = (el) => {
5905
5911
  localRef.current = el;
@@ -5927,7 +5933,7 @@ var TextArea = React38.forwardRef(
5927
5933
  const nextHeight = Math.min(el.scrollHeight, 400);
5928
5934
  el.style.height = `${nextHeight}px`;
5929
5935
  }, [value]);
5930
- return /* @__PURE__ */ jsx347("div", { className: "lib-xplat-textarea-wrapper", children: /* @__PURE__ */ jsx347(
5936
+ return /* @__PURE__ */ jsx347("div", { className: clsx_default("lib-xplat-textarea-wrapper", className), children: /* @__PURE__ */ jsx347(
5931
5937
  "div",
5932
5938
  {
5933
5939
  className: clsx_default(
package/dist/index.cjs CHANGED
@@ -6073,6 +6073,7 @@ var import_jsx_runtime301 = require("react/jsx-runtime");
6073
6073
  var Button = (props) => {
6074
6074
  const {
6075
6075
  children,
6076
+ className,
6076
6077
  type = "primary",
6077
6078
  size = "md",
6078
6079
  disabled,
@@ -6081,7 +6082,7 @@ var Button = (props) => {
6081
6082
  return /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
6082
6083
  "button",
6083
6084
  {
6084
- className: clsx_default("lib-xplat-button", type, size),
6085
+ className: clsx_default("lib-xplat-button", type, size, className),
6085
6086
  disabled,
6086
6087
  ...rest,
6087
6088
  children
@@ -7189,6 +7190,7 @@ var import_jsx_runtime306 = require("react/jsx-runtime");
7189
7190
  var IconButton = (props) => {
7190
7191
  const {
7191
7192
  icon,
7193
+ className,
7192
7194
  type = "primary",
7193
7195
  size = "md",
7194
7196
  disabled,
@@ -7197,7 +7199,7 @@ var IconButton = (props) => {
7197
7199
  return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
7198
7200
  "button",
7199
7201
  {
7200
- className: clsx_default("lib-xplat-icon-button", type, size),
7202
+ className: clsx_default("lib-xplat-icon-button", type, size, className),
7201
7203
  disabled,
7202
7204
  ...rest,
7203
7205
  children: icon
@@ -7314,6 +7316,7 @@ var import_jsx_runtime308 = require("react/jsx-runtime");
7314
7316
  var CheckBox = (props) => {
7315
7317
  const {
7316
7318
  checked,
7319
+ className,
7317
7320
  label,
7318
7321
  onChange,
7319
7322
  disabled,
@@ -7328,7 +7331,7 @@ var CheckBox = (props) => {
7328
7331
  const checkedClasses = `checked`;
7329
7332
  const disabledClasses = "disabled";
7330
7333
  const boxClasses = disabled ? disabledClasses : checked ? checkedClasses : uncheckedClasses;
7331
- return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)("label", { className: clsx_default("lib-xplat-checkbox", size, type), children: [
7334
+ return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)("label", { className: clsx_default("lib-xplat-checkbox", size, type, className), children: [
7332
7335
  /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
7333
7336
  "input",
7334
7337
  {
@@ -7469,6 +7472,7 @@ var parseValue = (type, value) => {
7469
7472
  var Input = import_react7.default.forwardRef((props, ref) => {
7470
7473
  const {
7471
7474
  value,
7475
+ className,
7472
7476
  onChange,
7473
7477
  type = "text",
7474
7478
  size = "md",
@@ -7492,7 +7496,7 @@ var Input = import_react7.default.forwardRef((props, ref) => {
7492
7496
  onChange(event);
7493
7497
  }
7494
7498
  };
7495
- return /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)("div", { className: "lib-xplat-input-wrap", children: [
7499
+ return /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)("div", { className: clsx_default("lib-xplat-input-wrap", className), children: [
7496
7500
  /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)(
7497
7501
  "div",
7498
7502
  {
@@ -9478,6 +9482,7 @@ var import_jsx_runtime332 = require("react/jsx-runtime");
9478
9482
  var Radio = (props) => {
9479
9483
  const {
9480
9484
  label,
9485
+ className,
9481
9486
  value,
9482
9487
  size: sizeProp,
9483
9488
  type = "brand",
@@ -9499,7 +9504,8 @@ var Radio = (props) => {
9499
9504
  "lib-xplat-radio",
9500
9505
  size,
9501
9506
  type,
9502
- localChecked ? "checked" : void 0
9507
+ localChecked ? "checked" : void 0,
9508
+ className
9503
9509
  ),
9504
9510
  children: [
9505
9511
  /* @__PURE__ */ (0, import_jsx_runtime332.jsx)("input", { ...rest, ...inputProps, checked: localChecked, type: "radio" }),
@@ -10402,7 +10408,7 @@ var import_react39 = __toESM(require("react"), 1);
10402
10408
  var import_jsx_runtime347 = require("react/jsx-runtime");
10403
10409
  var TextArea = import_react39.default.forwardRef(
10404
10410
  (props, ref) => {
10405
- const { value, onChange, disabled, ...textareaProps } = props;
10411
+ const { value, className, onChange, disabled, ...textareaProps } = props;
10406
10412
  const localRef = import_react39.default.useRef(null);
10407
10413
  const setRefs = (el) => {
10408
10414
  localRef.current = el;
@@ -10430,7 +10436,7 @@ var TextArea = import_react39.default.forwardRef(
10430
10436
  const nextHeight = Math.min(el.scrollHeight, 400);
10431
10437
  el.style.height = `${nextHeight}px`;
10432
10438
  }, [value]);
10433
- return /* @__PURE__ */ (0, import_jsx_runtime347.jsx)("div", { className: "lib-xplat-textarea-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(
10439
+ return /* @__PURE__ */ (0, import_jsx_runtime347.jsx)("div", { className: clsx_default("lib-xplat-textarea-wrapper", className), children: /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(
10434
10440
  "div",
10435
10441
  {
10436
10442
  className: clsx_default(
package/dist/index.js CHANGED
@@ -5673,6 +5673,7 @@ import { jsx as jsx301 } from "react/jsx-runtime";
5673
5673
  var Button = (props) => {
5674
5674
  const {
5675
5675
  children,
5676
+ className,
5676
5677
  type = "primary",
5677
5678
  size = "md",
5678
5679
  disabled,
@@ -5681,7 +5682,7 @@ var Button = (props) => {
5681
5682
  return /* @__PURE__ */ jsx301(
5682
5683
  "button",
5683
5684
  {
5684
- className: clsx_default("lib-xplat-button", type, size),
5685
+ className: clsx_default("lib-xplat-button", type, size, className),
5685
5686
  disabled,
5686
5687
  ...rest,
5687
5688
  children
@@ -6789,6 +6790,7 @@ import { jsx as jsx306 } from "react/jsx-runtime";
6789
6790
  var IconButton = (props) => {
6790
6791
  const {
6791
6792
  icon,
6793
+ className,
6792
6794
  type = "primary",
6793
6795
  size = "md",
6794
6796
  disabled,
@@ -6797,7 +6799,7 @@ var IconButton = (props) => {
6797
6799
  return /* @__PURE__ */ jsx306(
6798
6800
  "button",
6799
6801
  {
6800
- className: clsx_default("lib-xplat-icon-button", type, size),
6802
+ className: clsx_default("lib-xplat-icon-button", type, size, className),
6801
6803
  disabled,
6802
6804
  ...rest,
6803
6805
  children: icon
@@ -6914,6 +6916,7 @@ import { jsx as jsx308, jsxs as jsxs198 } from "react/jsx-runtime";
6914
6916
  var CheckBox = (props) => {
6915
6917
  const {
6916
6918
  checked,
6919
+ className,
6917
6920
  label,
6918
6921
  onChange,
6919
6922
  disabled,
@@ -6928,7 +6931,7 @@ var CheckBox = (props) => {
6928
6931
  const checkedClasses = `checked`;
6929
6932
  const disabledClasses = "disabled";
6930
6933
  const boxClasses = disabled ? disabledClasses : checked ? checkedClasses : uncheckedClasses;
6931
- return /* @__PURE__ */ jsxs198("label", { className: clsx_default("lib-xplat-checkbox", size, type), children: [
6934
+ return /* @__PURE__ */ jsxs198("label", { className: clsx_default("lib-xplat-checkbox", size, type, className), children: [
6932
6935
  /* @__PURE__ */ jsx308(
6933
6936
  "input",
6934
6937
  {
@@ -7069,6 +7072,7 @@ var parseValue = (type, value) => {
7069
7072
  var Input = React7.forwardRef((props, ref) => {
7070
7073
  const {
7071
7074
  value,
7075
+ className,
7072
7076
  onChange,
7073
7077
  type = "text",
7074
7078
  size = "md",
@@ -7092,7 +7096,7 @@ var Input = React7.forwardRef((props, ref) => {
7092
7096
  onChange(event);
7093
7097
  }
7094
7098
  };
7095
- return /* @__PURE__ */ jsxs200("div", { className: "lib-xplat-input-wrap", children: [
7099
+ return /* @__PURE__ */ jsxs200("div", { className: clsx_default("lib-xplat-input-wrap", className), children: [
7096
7100
  /* @__PURE__ */ jsxs200(
7097
7101
  "div",
7098
7102
  {
@@ -9078,6 +9082,7 @@ import { jsx as jsx332, jsxs as jsxs215 } from "react/jsx-runtime";
9078
9082
  var Radio = (props) => {
9079
9083
  const {
9080
9084
  label,
9085
+ className,
9081
9086
  value,
9082
9087
  size: sizeProp,
9083
9088
  type = "brand",
@@ -9099,7 +9104,8 @@ var Radio = (props) => {
9099
9104
  "lib-xplat-radio",
9100
9105
  size,
9101
9106
  type,
9102
- localChecked ? "checked" : void 0
9107
+ localChecked ? "checked" : void 0,
9108
+ className
9103
9109
  ),
9104
9110
  children: [
9105
9111
  /* @__PURE__ */ jsx332("input", { ...rest, ...inputProps, checked: localChecked, type: "radio" }),
@@ -10002,7 +10008,7 @@ import React38 from "react";
10002
10008
  import { jsx as jsx347 } from "react/jsx-runtime";
10003
10009
  var TextArea = React38.forwardRef(
10004
10010
  (props, ref) => {
10005
- const { value, onChange, disabled, ...textareaProps } = props;
10011
+ const { value, className, onChange, disabled, ...textareaProps } = props;
10006
10012
  const localRef = React38.useRef(null);
10007
10013
  const setRefs = (el) => {
10008
10014
  localRef.current = el;
@@ -10030,7 +10036,7 @@ var TextArea = React38.forwardRef(
10030
10036
  const nextHeight = Math.min(el.scrollHeight, 400);
10031
10037
  el.style.height = `${nextHeight}px`;
10032
10038
  }, [value]);
10033
- return /* @__PURE__ */ jsx347("div", { className: "lib-xplat-textarea-wrapper", children: /* @__PURE__ */ jsx347(
10039
+ return /* @__PURE__ */ jsx347("div", { className: clsx_default("lib-xplat-textarea-wrapper", className), children: /* @__PURE__ */ jsx347(
10034
10040
  "div",
10035
10041
  {
10036
10042
  className: clsx_default(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-plat/design-system",
3
- "version": "0.5.62",
3
+ "version": "0.5.63",
4
4
  "description": "XPLAT UI Design System",
5
5
  "author": "XPLAT WOONG",
6
6
  "main": "dist/index.cjs",