@itilite/lumina-ui 0.0.324 → 1.0.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.
@@ -0,0 +1,141 @@
1
+ import {
2
+ Button
3
+ } from "./chunk-HISCHZ5H.mjs";
4
+ import {
5
+ __objRest,
6
+ __spreadProps,
7
+ __spreadValues
8
+ } from "./chunk-FWCSY2DS.mjs";
9
+
10
+ // src/atom/Modal/Modal.tsx
11
+ import { Modal as AntModal } from "antd";
12
+ import clsx from "clsx";
13
+
14
+ // src/atom/Modal/Modal.module.scss
15
+ var Modal_module_default = { "modal": "Modal-module__modal___PKrAi", "footerMargintopDisable": "Modal-module__footerMargintopDisable___4B6u-", "ant-modal-footer": "Modal-module__ant-modal-footer___HKsDR", "okBtn": "Modal-module__okBtn___Ut8e5", "cancelBtn": "Modal-module__cancelBtn___i0Rm8" };
16
+
17
+ // src/atom/Modal/Modal.tsx
18
+ import { jsx, jsxs } from "react/jsx-runtime";
19
+ var Close = (_a) => {
20
+ var _b = _a, { size = 14, color = "#B6BAC3" } = _b, rest = __objRest(_b, ["size", "color"]);
21
+ return /* @__PURE__ */ jsx(
22
+ "svg",
23
+ __spreadProps(__spreadValues({
24
+ width: size,
25
+ height: size,
26
+ viewBox: "0 0 14 14",
27
+ fill: "none",
28
+ xmlns: "http://www.w3.org/2000/svg"
29
+ }, rest), {
30
+ children: /* @__PURE__ */ jsx(
31
+ "path",
32
+ {
33
+ d: "M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L7 5.58579L12.2929 0.292893C12.6834 -0.0976311 13.3166 -0.0976311 13.7071 0.292893C14.0976 0.683417 14.0976 1.31658 13.7071 1.70711L8.41421 7L13.7071 12.2929C14.0976 12.6834 14.0976 13.3166 13.7071 13.7071C13.3166 14.0976 12.6834 14.0976 12.2929 13.7071L7 8.41421L1.70711 13.7071C1.31658 14.0976 0.683417 14.0976 0.292893 13.7071C-0.0976311 13.3166 -0.0976311 12.6834 0.292893 12.2929L5.58579 7L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",
34
+ fill: color
35
+ }
36
+ )
37
+ })
38
+ );
39
+ };
40
+ var Modal = (_a) => {
41
+ var _b = _a, {
42
+ className = "",
43
+ title = "",
44
+ children,
45
+ open = false,
46
+ handleOk,
47
+ handleCancel,
48
+ okText = "",
49
+ cancelText = "",
50
+ closeIcon = /* @__PURE__ */ jsx(Close, { color: "#6B7280" }),
51
+ bodyClassName = "modalBody",
52
+ outsideClickDisable = false,
53
+ hideCross = false,
54
+ okButtonLoading = false,
55
+ okButtonDisabled = false,
56
+ variant = "primary",
57
+ okBtnClasses = "",
58
+ cancelButtonAnalytics = {},
59
+ okButtonAnalytics = {},
60
+ footerMargintopDisable = true
61
+ } = _b, rest = __objRest(_b, [
62
+ "className",
63
+ "title",
64
+ "children",
65
+ "open",
66
+ "handleOk",
67
+ "handleCancel",
68
+ "okText",
69
+ "cancelText",
70
+ "closeIcon",
71
+ "bodyClassName",
72
+ "outsideClickDisable",
73
+ "hideCross",
74
+ "okButtonLoading",
75
+ "okButtonDisabled",
76
+ "variant",
77
+ "okBtnClasses",
78
+ "cancelButtonAnalytics",
79
+ "okButtonAnalytics",
80
+ "footerMargintopDisable"
81
+ ]);
82
+ return /* @__PURE__ */ jsx("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx(
83
+ AntModal,
84
+ __spreadProps(__spreadValues({
85
+ title,
86
+ open,
87
+ onOk: handleOk,
88
+ onCancel: handleCancel,
89
+ className: clsx(Modal_module_default.modal, className, {
90
+ footerMargintopDisable
91
+ }),
92
+ okText,
93
+ cancelText,
94
+ closeIcon,
95
+ closable: !hideCross,
96
+ maskClosable: !outsideClickDisable,
97
+ footer: okText || cancelText ? /* @__PURE__ */ jsxs(
98
+ "div",
99
+ {
100
+ className: clsx({
101
+ primaryFooter: variant === "primary",
102
+ secondaryFooter: variant === "secondary"
103
+ }),
104
+ children: [
105
+ cancelText && /* @__PURE__ */ jsx(
106
+ Button,
107
+ __spreadProps(__spreadValues({
108
+ onClick: handleCancel,
109
+ type: "secondary",
110
+ className: "cancelBtn",
111
+ variant: "subtle"
112
+ }, cancelButtonAnalytics), {
113
+ children: cancelText
114
+ })
115
+ ),
116
+ okText && /* @__PURE__ */ jsx(
117
+ Button,
118
+ __spreadProps(__spreadValues({
119
+ onClick: handleOk,
120
+ className: clsx(okBtnClasses, "okBtn"),
121
+ loading: okButtonLoading,
122
+ disabled: okButtonDisabled
123
+ }, okButtonAnalytics), {
124
+ children: okText
125
+ })
126
+ )
127
+ ]
128
+ }
129
+ ) : null
130
+ }, rest), {
131
+ children: /* @__PURE__ */ jsx("div", { className: bodyClassName, children })
132
+ })
133
+ ) });
134
+ };
135
+ Modal.displayName = "Modal";
136
+ var Modal_default = Modal;
137
+
138
+ export {
139
+ Modal,
140
+ Modal_default
141
+ };
@@ -2,16 +2,16 @@ import {
2
2
  __objRest,
3
3
  __spreadProps,
4
4
  __spreadValues
5
- } from "./chunk-FUJQIYOF.mjs";
5
+ } from "./chunk-FWCSY2DS.mjs";
6
6
 
7
- // src/Checkbox/Checkbox.tsx
7
+ // src/atom/Checkbox/Checkbox.tsx
8
8
  import { Checkbox as AntCheckbox } from "antd";
9
9
  import clsx from "clsx";
10
10
 
11
- // src/Checkbox/Checkbox.module.scss
12
- var Checkbox_module_default = { "checkbox": "Checkbox-module__checkbox___D2qRJ", "size_small": "Checkbox-module__size_small___lgUjj", "size_medium": "Checkbox-module__size_medium___Npyaz", "size_large": "Checkbox-module__size_large___chR9U", "type_checked": "Checkbox-module__type_checked___fhhpM", "disabled": "Checkbox-module__disabled___xqtab", "type_unchecked": "Checkbox-module__type_unchecked___1zNB7", "variant_normal": "Checkbox-module__variant_normal___MbKJP", "variant_emphasized": "Checkbox-module__variant_emphasized___Yo9yv", "variant_indeterminate": "Checkbox-module__variant_indeterminate___-tnoD" };
11
+ // src/atom/Checkbox/Checkbox.module.scss
12
+ var Checkbox_module_default = { "checkbox": "Checkbox-module__checkbox___xxg5L", "size_small": "Checkbox-module__size_small___Kknlo", "size_medium": "Checkbox-module__size_medium___V6Ah8", "size_large": "Checkbox-module__size_large___eWjFY", "type_checked": "Checkbox-module__type_checked___5742T", "disabled": "Checkbox-module__disabled___v-RG1", "type_unchecked": "Checkbox-module__type_unchecked___QFMpP", "variant_normal": "Checkbox-module__variant_normal___faYKo", "variant_emphasized": "Checkbox-module__variant_emphasized___-koYj", "variant_indeterminate": "Checkbox-module__variant_indeterminate___J5Xcc" };
13
13
 
14
- // src/Checkbox/Checkbox.tsx
14
+ // src/atom/Checkbox/Checkbox.tsx
15
15
  import { jsx } from "react/jsx-runtime";
16
16
  function Checkbox(props) {
17
17
  const _a = props, {
@@ -0,0 +1,87 @@
1
+ // src/atom/Avatar/Avatar.tsx
2
+ import clsx from "clsx";
3
+ import { jsx } from "react/jsx-runtime";
4
+ var COLOR_MAP = {
5
+ A: "#6455BF",
6
+ B: "#C46273",
7
+ C: "#52A79E",
8
+ D: "#DF8654",
9
+ E: "#B8639F",
10
+ F: "#6455BF",
11
+ G: "#C46273",
12
+ H: "#52A79E",
13
+ I: "#DF8654",
14
+ J: "#B8639F",
15
+ K: "#6455BF",
16
+ L: "#C46273",
17
+ M: "#52A79E",
18
+ N: "#DF8654",
19
+ O: "#B8639F",
20
+ P: "#6455BF",
21
+ Q: "#C46273",
22
+ R: "#52A79E",
23
+ S: "#DF8654",
24
+ T: "#B8639F",
25
+ U: "#6455BF",
26
+ V: "#C46273",
27
+ W: "#52A79E",
28
+ X: "#DF8654",
29
+ Y: "#B8639F",
30
+ Z: "#6455BF",
31
+ 0: "#6455BF",
32
+ 1: "#C46273",
33
+ 6: "#C46273",
34
+ 2: "#52A79E",
35
+ 7: "#52A79E",
36
+ 3: "#DF8654",
37
+ 8: "#DF8654",
38
+ 4: "#B8639F",
39
+ 9: "#B8639F"
40
+ };
41
+ function Avatar({
42
+ img,
43
+ className,
44
+ name,
45
+ height = 28,
46
+ width = 28,
47
+ size = "normal"
48
+ }) {
49
+ return /* @__PURE__ */ jsx(
50
+ "div",
51
+ {
52
+ style: { height, width },
53
+ className: "tw-rounded-full tw-flex tw-items-center",
54
+ children: !img && name ? /* @__PURE__ */ jsx(
55
+ "div",
56
+ {
57
+ style: {
58
+ backgroundColor: COLOR_MAP[name[0]],
59
+ height,
60
+ width
61
+ },
62
+ className: clsx(
63
+ { "tw-text-font-size-10": size === "small" },
64
+ `tw-text-white tw-font-medium tw-rounded-full tw-flex tw-items-center tw-justify-center`,
65
+ className
66
+ ),
67
+ children: name[0]
68
+ }
69
+ ) : img ? /* @__PURE__ */ jsx(
70
+ "img",
71
+ {
72
+ src: img,
73
+ style: { height, width },
74
+ alt: name,
75
+ className: clsx("tw-rounded-full tw-object-cover", className)
76
+ }
77
+ ) : null
78
+ }
79
+ );
80
+ }
81
+ Avatar.displayName = "Avatar";
82
+ var Avatar_default = Avatar;
83
+
84
+ export {
85
+ Avatar,
86
+ Avatar_default
87
+ };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,10 @@
1
1
  export { default as Button } from './Button.mjs';
2
2
  export { default as Checkbox } from './Checkbox.mjs';
3
+ export { default as Modal } from './Modal.mjs';
4
+ export { default as Radio } from './Radio.mjs';
5
+ export { default as Switch } from './Switch.mjs';
6
+ export { default as Tooltip } from './Tooltip.mjs';
7
+ export { default as Avatar } from './Avatar.mjs';
3
8
  import 'react';
4
9
  import 'antd/es/checkbox';
10
+ import 'antd/lib/radio';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,10 @@
1
1
  export { default as Button } from './Button.js';
2
2
  export { default as Checkbox } from './Checkbox.js';
3
+ export { default as Modal } from './Modal.js';
4
+ export { default as Radio } from './Radio.js';
5
+ export { default as Switch } from './Switch.js';
6
+ export { default as Tooltip } from './Tooltip.js';
7
+ export { default as Avatar } from './Avatar.js';
3
8
  import 'react';
4
9
  import 'antd/es/checkbox';
10
+ import 'antd/lib/radio';
package/dist/index.js CHANGED
@@ -59,19 +59,24 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
59
59
  // src/index.ts
60
60
  var src_exports = {};
61
61
  __export(src_exports, {
62
+ Avatar: () => Avatar_default,
62
63
  Button: () => Button_default,
63
- Checkbox: () => Checkbox_default
64
+ Checkbox: () => Checkbox_default,
65
+ Modal: () => Modal_default,
66
+ Radio: () => Radio_default,
67
+ Switch: () => Switch_default,
68
+ Tooltip: () => Tooltip_default
64
69
  });
65
70
  module.exports = __toCommonJS(src_exports);
66
71
 
67
- // src/Button/Button.tsx
72
+ // src/atom/Button/Button.tsx
68
73
  var import_antd = require("antd");
69
74
  var import_clsx = __toESM(require("clsx"));
70
75
 
71
- // src/Button/Button.module.scss
72
- var Button_module_default = { "button": "Button-module__button___PM45p", "size_large": "Button-module__size_large___4muaQ", "shape_circle": "Button-module__shape_circle___5jh5G", "size_normal": "Button-module__size_normal___qtQjh", "size_small": "Button-module__size_small___7xabg", "type_primary": "Button-module__type_primary___-eoy3", "variant_subtle": "Button-module__variant_subtle___FojFh", "variant_text": "Button-module__variant_text___T-3KC", "variant_link": "Button-module__variant_link___dTdwy", "type_secondary": "Button-module__type_secondary___CwF0Y", "type_critical": "Button-module__type_critical___vVyiK", "onHoverUnderline": "Button-module__onHoverUnderline___wKzkT" };
76
+ // src/atom/Button/Button.module.scss
77
+ var Button_module_default = { "button": "Button-module__button___cLCyl", "size_large": "Button-module__size_large___S-mbU", "shape_circle": "Button-module__shape_circle___sPUS5", "size_normal": "Button-module__size_normal___qJUMj", "size_small": "Button-module__size_small___IUeei", "type_primary": "Button-module__type_primary___Tauz-", "variant_subtle": "Button-module__variant_subtle___BMbbd", "variant_text": "Button-module__variant_text___Pc5Ia", "variant_link": "Button-module__variant_link___Cj1O9", "type_secondary": "Button-module__type_secondary___CLmrA", "type_critical": "Button-module__type_critical___6ILOp", "onHoverUnderline": "Button-module__onHoverUnderline___LOfXo" };
73
78
 
74
- // src/Button/Button.tsx
79
+ // src/atom/Button/Button.tsx
75
80
  var import_jsx_runtime = require("react/jsx-runtime");
76
81
  function Button(props) {
77
82
  const {
@@ -137,14 +142,14 @@ function Button(props) {
137
142
  Button.displayName = "Button";
138
143
  var Button_default = Button;
139
144
 
140
- // src/Checkbox/Checkbox.tsx
145
+ // src/atom/Checkbox/Checkbox.tsx
141
146
  var import_antd2 = require("antd");
142
147
  var import_clsx2 = __toESM(require("clsx"));
143
148
 
144
- // src/Checkbox/Checkbox.module.scss
145
- var Checkbox_module_default = { "checkbox": "Checkbox-module__checkbox___D2qRJ", "size_small": "Checkbox-module__size_small___lgUjj", "size_medium": "Checkbox-module__size_medium___Npyaz", "size_large": "Checkbox-module__size_large___chR9U", "type_checked": "Checkbox-module__type_checked___fhhpM", "disabled": "Checkbox-module__disabled___xqtab", "type_unchecked": "Checkbox-module__type_unchecked___1zNB7", "variant_normal": "Checkbox-module__variant_normal___MbKJP", "variant_emphasized": "Checkbox-module__variant_emphasized___Yo9yv", "variant_indeterminate": "Checkbox-module__variant_indeterminate___-tnoD" };
149
+ // src/atom/Checkbox/Checkbox.module.scss
150
+ var Checkbox_module_default = { "checkbox": "Checkbox-module__checkbox___xxg5L", "size_small": "Checkbox-module__size_small___Kknlo", "size_medium": "Checkbox-module__size_medium___V6Ah8", "size_large": "Checkbox-module__size_large___eWjFY", "type_checked": "Checkbox-module__type_checked___5742T", "disabled": "Checkbox-module__disabled___v-RG1", "type_unchecked": "Checkbox-module__type_unchecked___QFMpP", "variant_normal": "Checkbox-module__variant_normal___faYKo", "variant_emphasized": "Checkbox-module__variant_emphasized___-koYj", "variant_indeterminate": "Checkbox-module__variant_indeterminate___J5Xcc" };
146
151
 
147
- // src/Checkbox/Checkbox.tsx
152
+ // src/atom/Checkbox/Checkbox.tsx
148
153
  var import_jsx_runtime2 = require("react/jsx-runtime");
149
154
  function Checkbox(props) {
150
155
  const _a = props, {
@@ -190,8 +195,357 @@ function Checkbox(props) {
190
195
  }
191
196
  Checkbox.displayName = "Checkbox";
192
197
  var Checkbox_default = Checkbox;
198
+
199
+ // src/atom/Modal/Modal.tsx
200
+ var import_antd3 = require("antd");
201
+ var import_clsx3 = __toESM(require("clsx"));
202
+
203
+ // src/atom/Modal/Modal.module.scss
204
+ var Modal_module_default = { "modal": "Modal-module__modal___PKrAi", "footerMargintopDisable": "Modal-module__footerMargintopDisable___4B6u-", "ant-modal-footer": "Modal-module__ant-modal-footer___HKsDR", "okBtn": "Modal-module__okBtn___Ut8e5", "cancelBtn": "Modal-module__cancelBtn___i0Rm8" };
205
+
206
+ // src/atom/Modal/Modal.tsx
207
+ var import_jsx_runtime3 = require("react/jsx-runtime");
208
+ var Close = (_a) => {
209
+ var _b = _a, { size = 14, color = "#B6BAC3" } = _b, rest = __objRest(_b, ["size", "color"]);
210
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
211
+ "svg",
212
+ __spreadProps(__spreadValues({
213
+ width: size,
214
+ height: size,
215
+ viewBox: "0 0 14 14",
216
+ fill: "none",
217
+ xmlns: "http://www.w3.org/2000/svg"
218
+ }, rest), {
219
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
220
+ "path",
221
+ {
222
+ d: "M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L7 5.58579L12.2929 0.292893C12.6834 -0.0976311 13.3166 -0.0976311 13.7071 0.292893C14.0976 0.683417 14.0976 1.31658 13.7071 1.70711L8.41421 7L13.7071 12.2929C14.0976 12.6834 14.0976 13.3166 13.7071 13.7071C13.3166 14.0976 12.6834 14.0976 12.2929 13.7071L7 8.41421L1.70711 13.7071C1.31658 14.0976 0.683417 14.0976 0.292893 13.7071C-0.0976311 13.3166 -0.0976311 12.6834 0.292893 12.2929L5.58579 7L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",
223
+ fill: color
224
+ }
225
+ )
226
+ })
227
+ );
228
+ };
229
+ var Modal = (_a) => {
230
+ var _b = _a, {
231
+ className = "",
232
+ title = "",
233
+ children,
234
+ open = false,
235
+ handleOk,
236
+ handleCancel,
237
+ okText = "",
238
+ cancelText = "",
239
+ closeIcon = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Close, { color: "#6B7280" }),
240
+ bodyClassName = "modalBody",
241
+ outsideClickDisable = false,
242
+ hideCross = false,
243
+ okButtonLoading = false,
244
+ okButtonDisabled = false,
245
+ variant = "primary",
246
+ okBtnClasses = "",
247
+ cancelButtonAnalytics = {},
248
+ okButtonAnalytics = {},
249
+ footerMargintopDisable = true
250
+ } = _b, rest = __objRest(_b, [
251
+ "className",
252
+ "title",
253
+ "children",
254
+ "open",
255
+ "handleOk",
256
+ "handleCancel",
257
+ "okText",
258
+ "cancelText",
259
+ "closeIcon",
260
+ "bodyClassName",
261
+ "outsideClickDisable",
262
+ "hideCross",
263
+ "okButtonLoading",
264
+ "okButtonDisabled",
265
+ "variant",
266
+ "okBtnClasses",
267
+ "cancelButtonAnalytics",
268
+ "okButtonAnalytics",
269
+ "footerMargintopDisable"
270
+ ]);
271
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
272
+ import_antd3.Modal,
273
+ __spreadProps(__spreadValues({
274
+ title,
275
+ open,
276
+ onOk: handleOk,
277
+ onCancel: handleCancel,
278
+ className: (0, import_clsx3.default)(Modal_module_default.modal, className, {
279
+ footerMargintopDisable
280
+ }),
281
+ okText,
282
+ cancelText,
283
+ closeIcon,
284
+ closable: !hideCross,
285
+ maskClosable: !outsideClickDisable,
286
+ footer: okText || cancelText ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
287
+ "div",
288
+ {
289
+ className: (0, import_clsx3.default)({
290
+ primaryFooter: variant === "primary",
291
+ secondaryFooter: variant === "secondary"
292
+ }),
293
+ children: [
294
+ cancelText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
295
+ Button,
296
+ __spreadProps(__spreadValues({
297
+ onClick: handleCancel,
298
+ type: "secondary",
299
+ className: "cancelBtn",
300
+ variant: "subtle"
301
+ }, cancelButtonAnalytics), {
302
+ children: cancelText
303
+ })
304
+ ),
305
+ okText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
306
+ Button,
307
+ __spreadProps(__spreadValues({
308
+ onClick: handleOk,
309
+ className: (0, import_clsx3.default)(okBtnClasses, "okBtn"),
310
+ loading: okButtonLoading,
311
+ disabled: okButtonDisabled
312
+ }, okButtonAnalytics), {
313
+ children: okText
314
+ })
315
+ )
316
+ ]
317
+ }
318
+ ) : null
319
+ }, rest), {
320
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: bodyClassName, children })
321
+ })
322
+ ) });
323
+ };
324
+ Modal.displayName = "Modal";
325
+ var Modal_default = Modal;
326
+
327
+ // src/atom/Radio/Radio.tsx
328
+ var import_antd4 = require("antd");
329
+ var import_clsx4 = __toESM(require("clsx"));
330
+
331
+ // src/atom/Radio/Radio.module.scss
332
+ var Radio_module_default = { "radio": "Radio-module__radio___1CPAk", "size_small": "Radio-module__size_small___nRXgM", "size_medium": "Radio-module__size_medium___uSzPl", "size_large": "Radio-module__size_large___ubpHs", "type_checked": "Radio-module__type_checked___BvPpu", "disabled": "Radio-module__disabled___AF98Z", "type_unchecked": "Radio-module__type_unchecked___Xrb-7", "variant_normal": "Radio-module__variant_normal___FQkTC", "variant_emphasized": "Radio-module__variant_emphasized___Fgpv6" };
333
+
334
+ // src/atom/Radio/Radio.tsx
335
+ var import_jsx_runtime4 = require("react/jsx-runtime");
336
+ var Radio = (_a) => {
337
+ var _b = _a, {
338
+ checked = true,
339
+ className = "",
340
+ size = "small",
341
+ variant = "normal",
342
+ children,
343
+ onChange = () => {
344
+ },
345
+ disabled = false,
346
+ extra = null
347
+ } = _b, rest = __objRest(_b, [
348
+ "checked",
349
+ "className",
350
+ "size",
351
+ "variant",
352
+ "children",
353
+ "onChange",
354
+ "disabled",
355
+ "extra"
356
+ ]);
357
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
358
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
359
+ import_antd4.Radio,
360
+ __spreadProps(__spreadValues({
361
+ className: (0, import_clsx4.default)(
362
+ Radio_module_default.radio,
363
+ Radio_module_default[`size_${size}`],
364
+ Radio_module_default[`variant_${variant}`],
365
+ checked ? Radio_module_default.type_checked : Radio_module_default.type_unchecked,
366
+ disabled && Radio_module_default.disabled,
367
+ className
368
+ ),
369
+ onChange,
370
+ checked,
371
+ disabled
372
+ }, rest), {
373
+ children
374
+ })
375
+ ),
376
+ checked && extra
377
+ ] });
378
+ };
379
+ Radio.displayName = "Radio";
380
+ var Radio_default = Radio;
381
+
382
+ // src/atom/Switch/Switch.tsx
383
+ var import_antd5 = require("antd");
384
+ var import_clsx5 = __toESM(require("clsx"));
385
+
386
+ // src/atom/Switch/Switch.module.scss
387
+ var Switch_module_default = { "switch": "Switch-module__switch___fUHZL" };
388
+
389
+ // src/atom/Switch/Switch.tsx
390
+ var import_jsx_runtime5 = require("react/jsx-runtime");
391
+ var Switch = (_a) => {
392
+ var _b = _a, {
393
+ className,
394
+ onChange = () => {
395
+ },
396
+ size = "default",
397
+ disabled = false,
398
+ checked = false
399
+ } = _b, rest = __objRest(_b, [
400
+ "className",
401
+ "onChange",
402
+ "size",
403
+ "disabled",
404
+ "checked"
405
+ ]);
406
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
407
+ import_antd5.Switch,
408
+ __spreadValues({
409
+ className: (0, import_clsx5.default)(className, Switch_module_default.switch, Switch_module_default[size]),
410
+ onChange,
411
+ size,
412
+ disabled,
413
+ checked
414
+ }, rest)
415
+ );
416
+ };
417
+ Switch.displayName = "Switch";
418
+ var Switch_default = Switch;
419
+
420
+ // src/atom/Tooltip/Tooltip.tsx
421
+ var import_antd6 = require("antd");
422
+
423
+ // src/atom/Tooltip/Tooltip.module.scss
424
+ var Tooltip_module_default = { "light": "Tooltip-module__light___H5oCc" };
425
+
426
+ // src/atom/Tooltip/Tooltip.tsx
427
+ var import_jsx_runtime6 = require("react/jsx-runtime");
428
+ var Tooltip = (_a) => {
429
+ var _b = _a, {
430
+ children,
431
+ title = "",
432
+ placement = "top",
433
+ color = "#1F2937",
434
+ className,
435
+ mode = "dark"
436
+ } = _b, rest = __objRest(_b, [
437
+ "children",
438
+ "title",
439
+ "placement",
440
+ "color",
441
+ "className",
442
+ "mode"
443
+ ]);
444
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
445
+ import_antd6.Tooltip,
446
+ __spreadProps(__spreadValues({
447
+ className,
448
+ color,
449
+ title,
450
+ placement,
451
+ overlayClassName: mode === "light" ? Tooltip_module_default.light : ""
452
+ }, rest), {
453
+ children
454
+ })
455
+ );
456
+ };
457
+ Tooltip.displayName = "Tooltip";
458
+ var Tooltip_default = Tooltip;
459
+
460
+ // src/atom/Avatar/Avatar.tsx
461
+ var import_clsx6 = __toESM(require("clsx"));
462
+ var import_jsx_runtime7 = require("react/jsx-runtime");
463
+ var COLOR_MAP = {
464
+ A: "#6455BF",
465
+ B: "#C46273",
466
+ C: "#52A79E",
467
+ D: "#DF8654",
468
+ E: "#B8639F",
469
+ F: "#6455BF",
470
+ G: "#C46273",
471
+ H: "#52A79E",
472
+ I: "#DF8654",
473
+ J: "#B8639F",
474
+ K: "#6455BF",
475
+ L: "#C46273",
476
+ M: "#52A79E",
477
+ N: "#DF8654",
478
+ O: "#B8639F",
479
+ P: "#6455BF",
480
+ Q: "#C46273",
481
+ R: "#52A79E",
482
+ S: "#DF8654",
483
+ T: "#B8639F",
484
+ U: "#6455BF",
485
+ V: "#C46273",
486
+ W: "#52A79E",
487
+ X: "#DF8654",
488
+ Y: "#B8639F",
489
+ Z: "#6455BF",
490
+ 0: "#6455BF",
491
+ 1: "#C46273",
492
+ 6: "#C46273",
493
+ 2: "#52A79E",
494
+ 7: "#52A79E",
495
+ 3: "#DF8654",
496
+ 8: "#DF8654",
497
+ 4: "#B8639F",
498
+ 9: "#B8639F"
499
+ };
500
+ function Avatar({
501
+ img,
502
+ className,
503
+ name,
504
+ height = 28,
505
+ width = 28,
506
+ size = "normal"
507
+ }) {
508
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
509
+ "div",
510
+ {
511
+ style: { height, width },
512
+ className: "tw-rounded-full tw-flex tw-items-center",
513
+ children: !img && name ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
514
+ "div",
515
+ {
516
+ style: {
517
+ backgroundColor: COLOR_MAP[name[0]],
518
+ height,
519
+ width
520
+ },
521
+ className: (0, import_clsx6.default)(
522
+ { "tw-text-font-size-10": size === "small" },
523
+ `tw-text-white tw-font-medium tw-rounded-full tw-flex tw-items-center tw-justify-center`,
524
+ className
525
+ ),
526
+ children: name[0]
527
+ }
528
+ ) : img ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
529
+ "img",
530
+ {
531
+ src: img,
532
+ style: { height, width },
533
+ alt: name,
534
+ className: (0, import_clsx6.default)("tw-rounded-full tw-object-cover", className)
535
+ }
536
+ ) : null
537
+ }
538
+ );
539
+ }
540
+ Avatar.displayName = "Avatar";
541
+ var Avatar_default = Avatar;
193
542
  // Annotate the CommonJS export names for ESM import in node:
194
543
  0 && (module.exports = {
544
+ Avatar,
195
545
  Button,
196
- Checkbox
546
+ Checkbox,
547
+ Modal,
548
+ Radio,
549
+ Switch,
550
+ Tooltip
197
551
  });