@itilite/lumina-ui 1.1.12 → 1.1.13

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 (238) hide show
  1. package/dist/Avatar-DX2JwvAs.d.mts +17 -0
  2. package/dist/Avatar-DX2JwvAs.d.ts +17 -0
  3. package/dist/Tag-l7I5oeyk.d.mts +13 -0
  4. package/dist/Tag-l7I5oeyk.d.ts +13 -0
  5. package/dist/atom/Avatar/Avatar.d.mts +1 -9
  6. package/dist/atom/Avatar/Avatar.d.ts +1 -9
  7. package/dist/atom/RangePicker/RangePicker.js +102 -105
  8. package/dist/atom/RangePicker/RangePicker.mjs +3 -3
  9. package/dist/atom/Select/Select.d.mts +4 -1
  10. package/dist/atom/Select/Select.d.ts +4 -1
  11. package/dist/atom/Select/Select.js +102 -105
  12. package/dist/atom/Select/Select.mjs +1 -1
  13. package/dist/atom/Tag/Tag.d.mts +3 -10
  14. package/dist/atom/Tag/Tag.d.ts +3 -10
  15. package/dist/chunk-3S4X3YO2.mjs +64 -0
  16. package/dist/chunk-DLLT6V65.mjs +141 -0
  17. package/dist/chunk-I5VHKSQR.mjs +64 -0
  18. package/dist/chunk-N2WTNCQU.mjs +66 -0
  19. package/dist/chunk-N3YFQDW7.mjs +77 -0
  20. package/dist/chunk-QWK3MYDM.mjs +64 -0
  21. package/dist/chunk-SWRFCTJW.mjs +77 -0
  22. package/dist/chunk-UUEPD2FH.mjs +141 -0
  23. package/dist/index.d.mts +2 -0
  24. package/dist/index.d.ts +2 -0
  25. package/dist/index.js +158 -107
  26. package/dist/index.mjs +23 -19
  27. package/dist/molecules/UserProfile/UserProfile.d.mts +23 -0
  28. package/dist/molecules/UserProfile/UserProfile.d.ts +23 -0
  29. package/dist/molecules/UserProfile/UserProfile.js +243 -0
  30. package/dist/molecules/UserProfile/UserProfile.mjs +11 -0
  31. package/dist/styles.css +252 -236
  32. package/dist/types-D4MD2w3_.d.mts +9 -0
  33. package/dist/types-D4MD2w3_.d.ts +9 -0
  34. package/dist/types-mhQmqhsR.d.mts +10 -0
  35. package/dist/types-mhQmqhsR.d.ts +10 -0
  36. package/package.json +1 -1
  37. package/dist/chunk-22VF7AVT.mjs +0 -618
  38. package/dist/chunk-2BNAAOBU.mjs +0 -670
  39. package/dist/chunk-2IMRLK6M.mjs +0 -44
  40. package/dist/chunk-2JIINZEK.mjs +0 -618
  41. package/dist/chunk-2LBFKQDZ.mjs +0 -660
  42. package/dist/chunk-2QQU6BYR.mjs +0 -678
  43. package/dist/chunk-2ZJBF5C4.mjs +0 -618
  44. package/dist/chunk-33JITG5Y.mjs +0 -621
  45. package/dist/chunk-3AWYHB3A.mjs +0 -618
  46. package/dist/chunk-3IMCN4K3.mjs +0 -670
  47. package/dist/chunk-3K2RTVMH.mjs +0 -584
  48. package/dist/chunk-3KBQQCET.mjs +0 -674
  49. package/dist/chunk-3KUHXNFH.mjs +0 -678
  50. package/dist/chunk-3PPNOIXN.mjs +0 -618
  51. package/dist/chunk-3WWAOBS6.mjs +0 -633
  52. package/dist/chunk-3XFY3TXJ.mjs +0 -611
  53. package/dist/chunk-3XW7HS5W.mjs +0 -618
  54. package/dist/chunk-3YDCRJYV.mjs +0 -618
  55. package/dist/chunk-447HZYZ4.mjs +0 -612
  56. package/dist/chunk-46F3B4U6.mjs +0 -618
  57. package/dist/chunk-4K5RZHL4.mjs +0 -618
  58. package/dist/chunk-4QHFP4YD.mjs +0 -666
  59. package/dist/chunk-4TFX4DHY.mjs +0 -702
  60. package/dist/chunk-4TWO6JES.mjs +0 -666
  61. package/dist/chunk-4UQVJ3ZU.mjs +0 -666
  62. package/dist/chunk-5247J65D.mjs +0 -670
  63. package/dist/chunk-57YKBWEI.mjs +0 -673
  64. package/dist/chunk-5BBLW4MR.mjs +0 -670
  65. package/dist/chunk-5PFI6XBL.mjs +0 -618
  66. package/dist/chunk-66H5WSEJ.mjs +0 -618
  67. package/dist/chunk-6NZEDJ2M.mjs +0 -582
  68. package/dist/chunk-6OC6URNL.mjs +0 -73
  69. package/dist/chunk-6OGEXG5U.mjs +0 -618
  70. package/dist/chunk-6ROQXYVN.mjs +0 -672
  71. package/dist/chunk-6WNI6X5Q.mjs +0 -618
  72. package/dist/chunk-6XGVIU52.mjs +0 -679
  73. package/dist/chunk-72PPCN6D.mjs +0 -675
  74. package/dist/chunk-74EGXFNN.mjs +0 -618
  75. package/dist/chunk-77NCDGJA.mjs +0 -707
  76. package/dist/chunk-7L3WTWF3.mjs +0 -677
  77. package/dist/chunk-7NGBIPZT.mjs +0 -618
  78. package/dist/chunk-7NM4FNMQ.mjs +0 -666
  79. package/dist/chunk-7YBBSVUA.mjs +0 -672
  80. package/dist/chunk-7Z52UP7P.mjs +0 -618
  81. package/dist/chunk-AC6WC7OO.mjs +0 -618
  82. package/dist/chunk-B3LDL3KD.mjs +0 -670
  83. package/dist/chunk-B63IXC6M.mjs +0 -618
  84. package/dist/chunk-B65LGQ47.mjs +0 -666
  85. package/dist/chunk-B6MTRO54.mjs +0 -618
  86. package/dist/chunk-BJBP5XYB.mjs +0 -618
  87. package/dist/chunk-BKPTZNXK.mjs +0 -618
  88. package/dist/chunk-BLLSWPCC.mjs +0 -618
  89. package/dist/chunk-BOYB7REJ.mjs +0 -670
  90. package/dist/chunk-BP2D64XI.mjs +0 -618
  91. package/dist/chunk-BP4XS2GF.mjs +0 -585
  92. package/dist/chunk-BRT5IPGQ.mjs +0 -618
  93. package/dist/chunk-BTIIO2CP.mjs +0 -582
  94. package/dist/chunk-C2J3VBFZ.mjs +0 -670
  95. package/dist/chunk-CDOR7GQP.mjs +0 -618
  96. package/dist/chunk-CI2RMA4V.mjs +0 -612
  97. package/dist/chunk-CNN74G3M.mjs +0 -666
  98. package/dist/chunk-CNUIZOQJ.mjs +0 -669
  99. package/dist/chunk-CPBXPEST.mjs +0 -672
  100. package/dist/chunk-CPOZJCLV.mjs +0 -681
  101. package/dist/chunk-CVOLXLMU.mjs +0 -618
  102. package/dist/chunk-CWUCNC36.mjs +0 -666
  103. package/dist/chunk-CZBGN6GS.mjs +0 -612
  104. package/dist/chunk-D3APB62N.mjs +0 -618
  105. package/dist/chunk-D5B2TUSL.mjs +0 -591
  106. package/dist/chunk-D7TWXVL2.mjs +0 -674
  107. package/dist/chunk-DAZ53AD7.mjs +0 -671
  108. package/dist/chunk-DBY5U6IU.mjs +0 -618
  109. package/dist/chunk-DRNY4L7J.mjs +0 -618
  110. package/dist/chunk-DXTVU4M5.mjs +0 -618
  111. package/dist/chunk-DZBTD6QK.mjs +0 -666
  112. package/dist/chunk-E6UPDTDY.mjs +0 -611
  113. package/dist/chunk-EAK2IMM4.mjs +0 -37
  114. package/dist/chunk-EQT2Q2LW.mjs +0 -610
  115. package/dist/chunk-EWMCELQV.mjs +0 -670
  116. package/dist/chunk-EYKWBEHX.mjs +0 -612
  117. package/dist/chunk-FHLCFUP6.mjs +0 -666
  118. package/dist/chunk-FMPFLQZV.mjs +0 -670
  119. package/dist/chunk-G25YXZ74.mjs +0 -618
  120. package/dist/chunk-G6P5MKL3.mjs +0 -582
  121. package/dist/chunk-G7I4NT42.mjs +0 -720
  122. package/dist/chunk-GSG6ZC3R.mjs +0 -37
  123. package/dist/chunk-GU5F7Z7I.mjs +0 -681
  124. package/dist/chunk-H3MQUFTJ.mjs +0 -618
  125. package/dist/chunk-HKZRLVBX.mjs +0 -618
  126. package/dist/chunk-HPDJYQXM.mjs +0 -663
  127. package/dist/chunk-HQALJGVT.mjs +0 -618
  128. package/dist/chunk-HTYOI6JT.mjs +0 -618
  129. package/dist/chunk-I5GBZ3UX.mjs +0 -676
  130. package/dist/chunk-IIJUGDEJ.mjs +0 -618
  131. package/dist/chunk-IQHBVGA4.mjs +0 -677
  132. package/dist/chunk-IUTUCRDD.mjs +0 -611
  133. package/dist/chunk-IV4V55OA.mjs +0 -672
  134. package/dist/chunk-J2RAFKAD.mjs +0 -618
  135. package/dist/chunk-J327EMX2.mjs +0 -663
  136. package/dist/chunk-J3ZBXBJ2.mjs +0 -689
  137. package/dist/chunk-JCMSG75Q.mjs +0 -51
  138. package/dist/chunk-JEAZCSST.mjs +0 -676
  139. package/dist/chunk-JL34UFI7.mjs +0 -670
  140. package/dist/chunk-JTKSGGQM.mjs +0 -611
  141. package/dist/chunk-JZC2RRDH.mjs +0 -618
  142. package/dist/chunk-JZCHXA6R.mjs +0 -585
  143. package/dist/chunk-K3Y7VKT6.mjs +0 -670
  144. package/dist/chunk-KDR6M52K.mjs +0 -723
  145. package/dist/chunk-KEVXNUFG.mjs +0 -672
  146. package/dist/chunk-KH7D4ESJ.mjs +0 -584
  147. package/dist/chunk-KQBCWIIM.mjs +0 -618
  148. package/dist/chunk-KRYAP7NG.mjs +0 -670
  149. package/dist/chunk-KU655POK.mjs +0 -657
  150. package/dist/chunk-L55SLVNX.mjs +0 -618
  151. package/dist/chunk-LCRYOZEV.mjs +0 -618
  152. package/dist/chunk-LEPDKBT2.mjs +0 -709
  153. package/dist/chunk-LH55S6HJ.mjs +0 -618
  154. package/dist/chunk-LH7PP6V2.mjs +0 -618
  155. package/dist/chunk-LJMMYKE2.mjs +0 -618
  156. package/dist/chunk-LK5TROLL.mjs +0 -666
  157. package/dist/chunk-MDR7DAKM.mjs +0 -618
  158. package/dist/chunk-MJZLCWZ5.mjs +0 -666
  159. package/dist/chunk-MKZTEJLS.mjs +0 -612
  160. package/dist/chunk-MO7JTKPH.mjs +0 -618
  161. package/dist/chunk-MOD7MLCD.mjs +0 -64
  162. package/dist/chunk-MQCOQHHP.mjs +0 -618
  163. package/dist/chunk-MSM4KUBM.mjs +0 -618
  164. package/dist/chunk-MTIUER63.mjs +0 -676
  165. package/dist/chunk-MWC57EU6.mjs +0 -666
  166. package/dist/chunk-NBLV3UX5.mjs +0 -618
  167. package/dist/chunk-NLADSOJS.mjs +0 -618
  168. package/dist/chunk-NPMTWR3Y.mjs +0 -618
  169. package/dist/chunk-NQ6GKEO7.mjs +0 -670
  170. package/dist/chunk-NZSFYNUK.mjs +0 -618
  171. package/dist/chunk-OANBDTKG.mjs +0 -73
  172. package/dist/chunk-OCNF4O5U.mjs +0 -612
  173. package/dist/chunk-OCW5QSWA.mjs +0 -618
  174. package/dist/chunk-OMXQ6VML.mjs +0 -618
  175. package/dist/chunk-OQF7JZFS.mjs +0 -670
  176. package/dist/chunk-OT675HGC.mjs +0 -670
  177. package/dist/chunk-P47TCYKN.mjs +0 -618
  178. package/dist/chunk-P7TOGXPI.mjs +0 -672
  179. package/dist/chunk-PCAXXEEQ.mjs +0 -618
  180. package/dist/chunk-PDHMG7OZ.mjs +0 -672
  181. package/dist/chunk-PFGVOZGM.mjs +0 -618
  182. package/dist/chunk-PGAAFJOG.mjs +0 -576
  183. package/dist/chunk-PQSSDK3E.mjs +0 -618
  184. package/dist/chunk-PSESRID3.mjs +0 -681
  185. package/dist/chunk-PST7W3NG.mjs +0 -618
  186. package/dist/chunk-QGPBZ2YV.mjs +0 -664
  187. package/dist/chunk-QOPCJITC.mjs +0 -618
  188. package/dist/chunk-QSE52CRC.mjs +0 -618
  189. package/dist/chunk-QTP2QMPL.mjs +0 -669
  190. package/dist/chunk-QUZAACW5.mjs +0 -585
  191. package/dist/chunk-R47XX6IW.mjs +0 -611
  192. package/dist/chunk-RAWVG2MM.mjs +0 -618
  193. package/dist/chunk-RL6AEU6E.mjs +0 -612
  194. package/dist/chunk-RZ7V2KQZ.mjs +0 -621
  195. package/dist/chunk-S3CUYIE3.mjs +0 -585
  196. package/dist/chunk-T2Y6AXM5.mjs +0 -618
  197. package/dist/chunk-T7T4HCHH.mjs +0 -618
  198. package/dist/chunk-TED2WCDG.mjs +0 -618
  199. package/dist/chunk-TENXL4LK.mjs +0 -107
  200. package/dist/chunk-THT4ALWQ.mjs +0 -618
  201. package/dist/chunk-TJLIMMMB.mjs +0 -612
  202. package/dist/chunk-TNOJDLON.mjs +0 -611
  203. package/dist/chunk-TOR67IHH.mjs +0 -672
  204. package/dist/chunk-TOV7NVKM.mjs +0 -618
  205. package/dist/chunk-TSYMIRRN.mjs +0 -618
  206. package/dist/chunk-TTSRI4V7.mjs +0 -708
  207. package/dist/chunk-TWV2Z27S.mjs +0 -618
  208. package/dist/chunk-UBS3DTE5.mjs +0 -672
  209. package/dist/chunk-UBW6RYVF.mjs +0 -670
  210. package/dist/chunk-UFAFA6RV.mjs +0 -585
  211. package/dist/chunk-UJNUFKR5.mjs +0 -43
  212. package/dist/chunk-UPUD2FQL.mjs +0 -618
  213. package/dist/chunk-UUTSL2NM.mjs +0 -618
  214. package/dist/chunk-VAZZJOSJ.mjs +0 -618
  215. package/dist/chunk-VCWXOX2B.mjs +0 -618
  216. package/dist/chunk-VHCLEOHZ.mjs +0 -618
  217. package/dist/chunk-VTZSCGME.mjs +0 -666
  218. package/dist/chunk-W33KZ2XR.mjs +0 -618
  219. package/dist/chunk-W7J4GMPI.mjs +0 -618
  220. package/dist/chunk-WCYB5OTY.mjs +0 -618
  221. package/dist/chunk-WOVMTYDV.mjs +0 -612
  222. package/dist/chunk-WR3USBWK.mjs +0 -672
  223. package/dist/chunk-WXYQARQ6.mjs +0 -618
  224. package/dist/chunk-XE4LPYOW.mjs +0 -581
  225. package/dist/chunk-XSDANHCE.mjs +0 -618
  226. package/dist/chunk-Y6XKW4NG.mjs +0 -618
  227. package/dist/chunk-YCAOWGDP.mjs +0 -618
  228. package/dist/chunk-YO5EDEA6.mjs +0 -618
  229. package/dist/chunk-YQSNJFZE.mjs +0 -618
  230. package/dist/chunk-Z6VG6AG7.mjs +0 -678
  231. package/dist/chunk-ZAPKQ4C3.mjs +0 -678
  232. package/dist/chunk-ZCWDQNHL.mjs +0 -618
  233. package/dist/chunk-ZF5JBNCI.mjs +0 -618
  234. package/dist/chunk-ZN7BHWOF.mjs +0 -672
  235. package/dist/chunk-ZUMHWVMV.mjs +0 -585
  236. package/dist/chunk-ZUQJKA5J.mjs +0 -666
  237. package/dist/chunk-ZUUAXTPM.mjs +0 -618
  238. package/dist/chunk-ZWHWIGYQ.mjs +0 -618
@@ -0,0 +1,141 @@
1
+ import {
2
+ Button
3
+ } from "./chunk-N3YFQDW7.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
+ };
package/dist/index.d.mts CHANGED
@@ -13,4 +13,6 @@ export { default as Slider } from './atom/Slider/Slider.mjs';
13
13
  import 'react';
14
14
  import 'antd/es/checkbox';
15
15
  import 'antd/lib/radio';
16
+ import './types-mhQmqhsR.mjs';
17
+ import './types-D4MD2w3_.mjs';
16
18
  import 'react/jsx-runtime';
package/dist/index.d.ts CHANGED
@@ -13,4 +13,6 @@ export { default as Slider } from './atom/Slider/Slider.js';
13
13
  import 'react';
14
14
  import 'antd/es/checkbox';
15
15
  import 'antd/lib/radio';
16
+ import './types-mhQmqhsR.js';
17
+ import './types-D4MD2w3_.js';
16
18
  import 'react/jsx-runtime';
package/dist/index.js CHANGED
@@ -70,7 +70,8 @@ __export(index_exports, {
70
70
  Slider: () => Slider_default,
71
71
  Switch: () => Switch_default,
72
72
  Tag: () => Tag_default,
73
- Tooltip: () => Tooltip_default
73
+ Tooltip: () => Tooltip_default,
74
+ UserProfile: () => UserProfile_default
74
75
  });
75
76
  module.exports = __toCommonJS(index_exports);
76
77
 
@@ -761,46 +762,6 @@ var LoadingSpinner_default = LoadingSpinner;
761
762
 
762
763
  // src/atom/Select/Select.tsx
763
764
  var import_jsx_runtime14 = require("react/jsx-runtime");
764
- var InputWrapper = (0, import_react2.memo)(({ children, disabled, disabledTooltip }) => {
765
- if (disabled && disabledTooltip)
766
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Tooltip_default, { title: disabledTooltip, children });
767
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, { children });
768
- });
769
- var OptionItem = (0, import_react2.memo)(({
770
- option,
771
- index,
772
- isSelected,
773
- isHighlighted,
774
- experience,
775
- size,
776
- optionClassName,
777
- onSelectHandler,
778
- onMouseEnterHandler
779
- }) => {
780
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
781
- "div",
782
- {
783
- onClick: () => onSelectHandler(option),
784
- onMouseEnter: () => onMouseEnterHandler(index),
785
- className: (0, import_clsx8.default)(
786
- "tw-transition-all tw-duration-150",
787
- { "tw-typography-body2": size !== "small" },
788
- { "tw-typography-caption1": size === "small" },
789
- optionClassName
790
- ),
791
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
792
- "div",
793
- {
794
- className: (0, import_clsx8.default)(
795
- "tw-px-4 tw-cursor-pointer tw-py-2 tw-mx-0.5 tw-rounded-xl",
796
- isSelected ? experience === "personal" ? "tw-bg-[#f1e8fa]" : "tw-bg-[#fff1e1]" : isHighlighted ? "tw-bg-[#f3f4f6] tw-text-gray-900" : "tw-text-gray-900 hover:tw-bg-[#1118270a]"
797
- ),
798
- children: option.label
799
- }
800
- )
801
- }
802
- );
803
- });
804
765
  var Select = ({
805
766
  label,
806
767
  mandatory = false,
@@ -1039,31 +1000,6 @@ var Select = ({
1039
1000
  }
1040
1001
  return "";
1041
1002
  }, [selectedValue, validatedOptions, showDisplayValue, normalizeValue]);
1042
- const displayValue = (0, import_react2.useMemo)(() => getDisplayValue(), [getDisplayValue]);
1043
- const inputClasses = (0, import_react2.useMemo)(() => {
1044
- return (0, import_clsx8.default)(
1045
- "tw-w-full tw-rounded-xl tw-outline-none tw-transition-all tw-duration-200 tw-cursor-pointer tw-border-solid tw-text-color-text-default",
1046
- sizeClasses.input,
1047
- sizeClasses.padding,
1048
- variantClasses,
1049
- {
1050
- "tw-bg-white": valueSelected || displayValue || isFocused,
1051
- "tw-bg-color-gray-5": !valueSelected || !displayValue,
1052
- "!tw-bg-[#F8F7F6] tw-cursor-not-allowed tw-pointer-events-none": disabled
1053
- },
1054
- !label && "tw-flex tw-items-center",
1055
- {
1056
- "!tw-border-color-primary": isFocused && experience === "business"
1057
- },
1058
- {
1059
- "!tw-border-[#804D7B]": isFocused && experience === "personal"
1060
- },
1061
- error ? "!tw-border-color-text-critical " : "tw-border-[#EBE3DD] hover:tw-border-[#C5B7AC]",
1062
- "focus:tw-shadow-sm focus:tw-ring-offset-1",
1063
- className,
1064
- inputClassName
1065
- );
1066
- }, [sizeClasses, variantClasses, valueSelected, displayValue, isFocused, disabled, label, experience, error, className, inputClassName]);
1067
1003
  const filteredOptions = (0, import_react2.useMemo)(() => {
1068
1004
  var _a;
1069
1005
  if (!enableSearch) {
@@ -1158,7 +1094,7 @@ var Select = ({
1158
1094
  }, [highlightedIndex]);
1159
1095
  (0, import_react2.useEffect)(() => {
1160
1096
  optionRefs.current = [];
1161
- }, [filteredOptions.length]);
1097
+ }, [filteredOptions]);
1162
1098
  const handleMouseEnter = (0, import_react2.useCallback)(() => {
1163
1099
  if (hoverTimeoutRef.current) {
1164
1100
  clearTimeout(hoverTimeoutRef.current);
@@ -1195,23 +1131,12 @@ var Select = ({
1195
1131
  },
1196
1132
  [isOpen, handleInputInteraction]
1197
1133
  );
1198
- const handleChevronMouseDown = (0, import_react2.useCallback)(
1199
- (e) => {
1200
- if (isHovering && selectedValue && allowClear) {
1201
- handleClear(e);
1202
- } else {
1203
- handleChevronClick(e);
1204
- }
1205
- },
1206
- [isHovering, selectedValue, allowClear, handleClear, handleChevronClick]
1207
- );
1208
- const handleOptionClick = (0, import_react2.useCallback)((option) => {
1209
- handleOptionSelect(option);
1210
- }, [handleOptionSelect]);
1211
- const handleOptionMouseEnter = (0, import_react2.useCallback)((index) => {
1212
- setHighlightedIndex(index);
1213
- }, []);
1214
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(InputWrapper, { disabled, disabledTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1134
+ const InputWrapper = ({ children }) => {
1135
+ if (disabled && disabledTooltip)
1136
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Tooltip_default, { title: disabledTooltip, children });
1137
+ return children;
1138
+ };
1139
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(InputWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1215
1140
  "div",
1216
1141
  {
1217
1142
  style,
@@ -1235,11 +1160,35 @@ var Select = ({
1235
1160
  autoCorrect: "off",
1236
1161
  autoCapitalize: "off",
1237
1162
  spellCheck: "false",
1238
- value: isFocused && enableSearch ? searchTerm : displayValue,
1163
+ value: isFocused && enableSearch ? searchTerm : getDisplayValue(),
1239
1164
  onChange: enableSearch ? handleSearchChange : void 0,
1240
1165
  onClick: handleInputInteraction,
1241
1166
  onKeyDown: handleKeyDown,
1242
- className: inputClasses,
1167
+ className: (0, import_clsx8.default)(
1168
+ "tw-w-full tw-rounded-xl tw-outline-none tw-transition-all tw-duration-200 tw-cursor-pointer tw-border-solid tw-text-color-text-default",
1169
+ sizeClasses.input,
1170
+ sizeClasses.padding,
1171
+ variantClasses,
1172
+ {
1173
+ "tw-bg-white": valueSelected || getDisplayValue() || isFocused,
1174
+ "tw-bg-color-gray-5": !valueSelected || !getDisplayValue(),
1175
+ "!tw-bg-[#F8F7F6] tw-cursor-not-allowed tw-pointer-events-none": disabled
1176
+ },
1177
+ // Conditional padding based on label presence
1178
+ !label && "tw-flex tw-items-center",
1179
+ {
1180
+ "!tw-border-color-primary": isFocused && experience === "business"
1181
+ },
1182
+ {
1183
+ "!tw-border-[#804D7B]": isFocused && experience === "personal"
1184
+ },
1185
+ error ? "!tw-border-color-text-critical " : "tw-border-[#EBE3DD] hover:tw-border-[#C5B7AC]",
1186
+ // Add focus state styling
1187
+ "focus:tw-shadow-sm focus:tw-ring-offset-1",
1188
+ className,
1189
+ inputClassName
1190
+ // Put inputClassName last so it can override default classes
1191
+ ),
1243
1192
  readOnly: !isFocused || !enableSearch
1244
1193
  }
1245
1194
  ),
@@ -1280,7 +1229,13 @@ var Select = ({
1280
1229
  // Only rotate chevron when open and not showing clear icon
1281
1230
  isOpen && !(isHovering && selectedValue && allowClear) && "-tw-rotate-180"
1282
1231
  ),
1283
- onMouseDown: handleChevronMouseDown,
1232
+ onMouseDown: (e) => {
1233
+ if (isHovering && selectedValue && allowClear) {
1234
+ handleClear(e);
1235
+ } else {
1236
+ handleChevronClick(e);
1237
+ }
1238
+ },
1284
1239
  children: disabled ? null : isHovering && selectedValue && allowClear ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1285
1240
  CrossV2,
1286
1241
  {
@@ -1311,32 +1266,75 @@ var Select = ({
1311
1266
  dropdownClassName
1312
1267
  ),
1313
1268
  ref: optionListRef,
1314
- children: filteredOptions.length > 0 ? filteredOptions.map((option, index) => {
1315
- const isSelected = normalizeValue(selectedValue) === normalizeValue(option.value);
1316
- const isHighlighted = index === highlightedIndex;
1317
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { ref: (el) => optionRefs.current[index] = el, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1318
- OptionItem,
1319
- {
1320
- option,
1321
- index,
1322
- isSelected,
1323
- isHighlighted,
1324
- experience,
1325
- size,
1326
- optionClassName,
1327
- onSelectHandler: handleOptionClick,
1328
- onMouseEnterHandler: handleOptionMouseEnter
1329
- }
1330
- ) }, doubleCharSearch ? option.label : option.value);
1331
- }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "tw-px-4 tw-py-3 tw-text-gray-500 tw-text-sm", children: "No options found" })
1269
+ children: filteredOptions.length > 0 ? filteredOptions.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1270
+ "div",
1271
+ {
1272
+ ref: (el) => optionRefs.current[index] = el,
1273
+ onClick: () => handleOptionSelect(option),
1274
+ onMouseEnter: () => setHighlightedIndex(index),
1275
+ className: (0, import_clsx8.default)(
1276
+ "tw-transition-all tw-duration-150",
1277
+ { "tw-typography-body2": size !== "small" },
1278
+ { "tw-typography-caption1": size === "small" },
1279
+ optionClassName
1280
+ ),
1281
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1282
+ "div",
1283
+ {
1284
+ className: (0, import_clsx8.default)(
1285
+ "tw-px-4 tw-cursor-pointer tw-py-2 tw-mx-0.5 tw-rounded-xl",
1286
+ normalizeValue(selectedValue) === normalizeValue(option.value) ? experience === "personal" ? "tw-bg-[#f1e8fa]" : "tw-bg-[#fff1e1]" : (
1287
+ // Highlighted option styling (keyboard navigation)
1288
+ index === highlightedIndex ? "tw-bg-[#f3f4f6] tw-text-gray-900" : (
1289
+ // Default option styling
1290
+ "tw-text-gray-900 hover:tw-bg-[#1118270a]"
1291
+ )
1292
+ )
1293
+ ),
1294
+ children: option.label
1295
+ }
1296
+ )
1297
+ },
1298
+ doubleCharSearch ? option.label : option.value
1299
+ )) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "tw-px-4 tw-py-3 tw-text-gray-500 tw-text-sm", children: "No options found" })
1332
1300
  }
1333
1301
  )
1334
1302
  ]
1335
1303
  }
1336
1304
  ) });
1337
1305
  };
1306
+ var arePropsEqual = (prevProps, nextProps) => {
1307
+ var _a, _b;
1308
+ const criticalProps = [
1309
+ "value",
1310
+ "valueSelected",
1311
+ "options",
1312
+ "error",
1313
+ "disabled",
1314
+ "label",
1315
+ "mandatory"
1316
+ ];
1317
+ for (const prop of criticalProps) {
1318
+ if (prevProps[prop] !== nextProps[prop]) {
1319
+ return false;
1320
+ }
1321
+ }
1322
+ if (((_a = prevProps.options) == null ? void 0 : _a.length) !== ((_b = nextProps.options) == null ? void 0 : _b.length)) {
1323
+ return false;
1324
+ }
1325
+ if (prevProps.options && nextProps.options) {
1326
+ for (let i = 0; i < prevProps.options.length; i++) {
1327
+ const prevOpt = prevProps.options[i];
1328
+ const nextOpt = nextProps.options[i];
1329
+ if ((prevOpt == null ? void 0 : prevOpt.value) !== (nextOpt == null ? void 0 : nextOpt.value) || (prevOpt == null ? void 0 : prevOpt.label) !== (nextOpt == null ? void 0 : nextOpt.label)) {
1330
+ return false;
1331
+ }
1332
+ }
1333
+ }
1334
+ return true;
1335
+ };
1338
1336
  Select.displayName = "Select";
1339
- var Select_default = Select;
1337
+ var Select_default = (0, import_react2.memo)(Select, arePropsEqual);
1340
1338
 
1341
1339
  // src/atom/RangePicker/RangePicker.tsx
1342
1340
  var import_jsx_runtime15 = require("react/jsx-runtime");
@@ -2005,6 +2003,58 @@ function Slider(props) {
2005
2003
  }
2006
2004
  Slider.displayName = "Slider";
2007
2005
  var Slider_default = Slider;
2006
+
2007
+ // src/molecules/UserProfile/UserProfile.tsx
2008
+ var import_clsx11 = __toESM(require("clsx"));
2009
+
2010
+ // src/molecules/UserProfile/UserProfile.module.scss
2011
+ var UserProfile_module_default = { "userProfile": "UserProfile-module__userProfile___cRMm9", "profileContent": "UserProfile-module__profileContent___tfy8E", "profileHeader": "UserProfile-module__profileHeader___5qYbt", "profileName": "UserProfile-module__profileName___x8pg-", "profileEmail": "UserProfile-module__profileEmail___ZWKDd" };
2012
+
2013
+ // src/molecules/UserProfile/UserProfile.tsx
2014
+ var import_jsx_runtime17 = require("react/jsx-runtime");
2015
+ var UserProfile = ({
2016
+ firstName = "",
2017
+ lastName = "",
2018
+ email = "",
2019
+ profileImg = "",
2020
+ className = "",
2021
+ avatarHeight = 32,
2022
+ avatarWidth = 32,
2023
+ avatarSize = "normal",
2024
+ showTag = false,
2025
+ tagProps,
2026
+ uniqueKey = "",
2027
+ nameClassName = "",
2028
+ emailClassName = ""
2029
+ }) => {
2030
+ const fullName = `${firstName} ${lastName}`;
2031
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: (0, import_clsx11.default)(UserProfile_module_default.userProfile, className), children: [
2032
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2033
+ Avatar,
2034
+ {
2035
+ img: profileImg,
2036
+ name: fullName,
2037
+ className: "tw-w-full tw-h-full tw-border-none",
2038
+ height: avatarHeight,
2039
+ width: avatarWidth,
2040
+ size: avatarSize
2041
+ }
2042
+ ),
2043
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: UserProfile_module_default.profileContent, children: [
2044
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: UserProfile_module_default.profileHeader, children: [
2045
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("p", { className: (0, import_clsx11.default)(nameClassName || (0, import_clsx11.default)(UserProfile_module_default.profileName, "tw-typography-body2Bold")), children: [
2046
+ firstName,
2047
+ " ",
2048
+ lastName
2049
+ ] }),
2050
+ showTag && tagProps && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Tag, __spreadValues({}, tagProps))
2051
+ ] }),
2052
+ email && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: (0, import_clsx11.default)(emailClassName || (0, import_clsx11.default)(UserProfile_module_default.profileEmail, "tw-typography-caption3", "amp-mask")), children: email })
2053
+ ] })
2054
+ ] }, uniqueKey);
2055
+ };
2056
+ UserProfile.displayName = "UserProfile";
2057
+ var UserProfile_default = UserProfile;
2008
2058
  // Annotate the CommonJS export names for ESM import in node:
2009
2059
  0 && (module.exports = {
2010
2060
  Avatar,
@@ -2018,5 +2068,6 @@ var Slider_default = Slider;
2018
2068
  Slider,
2019
2069
  Switch,
2020
2070
  Tag,
2021
- Tooltip
2071
+ Tooltip,
2072
+ UserProfile
2022
2073
  });
package/dist/index.mjs CHANGED
@@ -1,40 +1,43 @@
1
1
  import {
2
2
  RangePicker_default
3
- } from "./chunk-IIJUGDEJ.mjs";
4
- import "./chunk-ZTRM4HZJ.mjs";
3
+ } from "./chunk-35KDS27M.mjs";
5
4
  import {
6
- Modal_default
7
- } from "./chunk-UQJ3BDM4.mjs";
5
+ Slider_default
6
+ } from "./chunk-D3N7VFER.mjs";
7
+ import {
8
+ Select_default
9
+ } from "./chunk-E4FCLHYA.mjs";
8
10
  import {
9
11
  Switch_default
10
12
  } from "./chunk-MNARBWAJ.mjs";
13
+ import {
14
+ Tooltip_default
15
+ } from "./chunk-MLCMZRUC.mjs";
16
+ import {
17
+ UserProfile_default
18
+ } from "./chunk-N2WTNCQU.mjs";
11
19
  import {
12
20
  Tag_default
13
21
  } from "./chunk-4VZB2KR2.mjs";
14
22
  import {
15
23
  Avatar_default
16
24
  } from "./chunk-IWO2Y5QX.mjs";
17
- import {
18
- Button_default
19
- } from "./chunk-AF2RKLH6.mjs";
20
25
  import {
21
26
  Checkbox_default
22
27
  } from "./chunk-UQZNUEZE.mjs";
23
28
  import {
24
- Radio_default
25
- } from "./chunk-2EBPXGRY.mjs";
26
- import {
27
- Slider_default
28
- } from "./chunk-D3N7VFER.mjs";
29
+ LoadingSpinner_default
30
+ } from "./chunk-QKTMWS4J.mjs";
29
31
  import {
30
- Select_default
31
- } from "./chunk-GU5F7Z7I.mjs";
32
+ Modal_default
33
+ } from "./chunk-UQJ3BDM4.mjs";
32
34
  import {
33
- Tooltip_default
34
- } from "./chunk-MLCMZRUC.mjs";
35
+ Button_default
36
+ } from "./chunk-AF2RKLH6.mjs";
35
37
  import {
36
- LoadingSpinner_default
37
- } from "./chunk-QKTMWS4J.mjs";
38
+ Radio_default
39
+ } from "./chunk-2EBPXGRY.mjs";
40
+ import "./chunk-ZTRM4HZJ.mjs";
38
41
  import "./chunk-FWCSY2DS.mjs";
39
42
  export {
40
43
  Avatar_default as Avatar,
@@ -48,5 +51,6 @@ export {
48
51
  Slider_default as Slider,
49
52
  Switch_default as Switch,
50
53
  Tag_default as Tag,
51
- Tooltip_default as Tooltip
54
+ Tooltip_default as Tooltip,
55
+ UserProfile_default as UserProfile
52
56
  };
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { T as TagProps } from '../../types-D4MD2w3_.mjs';
3
+ import { A as AvatarProps } from '../../types-mhQmqhsR.mjs';
4
+
5
+ interface UserProfileProps {
6
+ firstName: string;
7
+ lastName: string;
8
+ email?: string;
9
+ profileImg?: string;
10
+ className?: string;
11
+ avatarHeight?: number;
12
+ avatarWidth?: number;
13
+ avatarSize?: AvatarProps["size"];
14
+ showTag?: boolean;
15
+ tagProps?: TagProps;
16
+ uniqueKey?: string;
17
+ nameClassName?: string;
18
+ emailClassName?: string;
19
+ }
20
+
21
+ declare const UserProfile: React.FC<UserProfileProps>;
22
+
23
+ export { UserProfile, UserProfile as default };
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { T as TagProps } from '../../types-D4MD2w3_.js';
3
+ import { A as AvatarProps } from '../../types-mhQmqhsR.js';
4
+
5
+ interface UserProfileProps {
6
+ firstName: string;
7
+ lastName: string;
8
+ email?: string;
9
+ profileImg?: string;
10
+ className?: string;
11
+ avatarHeight?: number;
12
+ avatarWidth?: number;
13
+ avatarSize?: AvatarProps["size"];
14
+ showTag?: boolean;
15
+ tagProps?: TagProps;
16
+ uniqueKey?: string;
17
+ nameClassName?: string;
18
+ emailClassName?: string;
19
+ }
20
+
21
+ declare const UserProfile: React.FC<UserProfileProps>;
22
+
23
+ export { UserProfile, UserProfile as default };