@x-plat/design-system 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/dist/chunk-2EGVOUGV.cjs +93 -0
  2. package/dist/chunk-2T3BVV7R.js +0 -0
  3. package/dist/chunk-3FYYFDKQ.js +159 -0
  4. package/dist/chunk-3M3GFSHJ.js +67 -0
  5. package/dist/chunk-3WBHUFOA.cjs +48 -0
  6. package/dist/chunk-3XYYZQR5.cjs +22 -0
  7. package/dist/chunk-4EF7NVAL.js +67 -0
  8. package/dist/chunk-4ISERXK2.cjs +1 -0
  9. package/dist/chunk-4KYHHJ6Z.cjs +250 -0
  10. package/dist/chunk-4NSRDRXC.cjs +70 -0
  11. package/dist/chunk-4OXMRSVE.cjs +99 -0
  12. package/dist/chunk-55EPYLXN.js +30 -0
  13. package/dist/chunk-5CE3ADO5.js +254 -0
  14. package/dist/chunk-5F6Y2JD6.cjs +1 -0
  15. package/dist/chunk-5FMTMXSP.cjs +127 -0
  16. package/dist/chunk-5POCKDDY.js +36 -0
  17. package/dist/chunk-5VDI56BV.js +33 -0
  18. package/dist/chunk-5WLBUPSK.js +77 -0
  19. package/dist/chunk-5WNNWQHD.cjs +272 -0
  20. package/dist/chunk-66STZB6I.cjs +404 -0
  21. package/dist/chunk-6AIKCZN7.js +1455 -0
  22. package/dist/chunk-6IUJJUVP.js +18 -0
  23. package/dist/chunk-6P2B3ZGP.js +79 -0
  24. package/dist/chunk-764ILIDG.cjs +22 -0
  25. package/dist/chunk-7B44DWC4.js +0 -0
  26. package/dist/chunk-7BE6ETFY.js +18 -0
  27. package/dist/chunk-7BSUS5A4.js +97 -0
  28. package/dist/chunk-7RPWCDEW.cjs +20 -0
  29. package/dist/chunk-7ULXHGLO.cjs +77 -0
  30. package/dist/chunk-7YOI5XOW.js +55 -0
  31. package/dist/chunk-AFVTM5CP.js +0 -0
  32. package/dist/chunk-AN2WSL3B.cjs +1 -0
  33. package/dist/chunk-AT5Y5GLS.cjs +118 -0
  34. package/dist/chunk-AWPO2FI7.js +404 -0
  35. package/dist/chunk-BGXHIDUR.js +103 -0
  36. package/dist/chunk-BPZXL5TP.js +99 -0
  37. package/dist/chunk-BRTS5GWV.js +275 -0
  38. package/dist/chunk-BS3MLZCK.cjs +97 -0
  39. package/dist/chunk-BSPYYE2U.js +36 -0
  40. package/dist/chunk-BWJAEB42.js +48 -0
  41. package/dist/chunk-C4RMTISI.cjs +18 -0
  42. package/dist/chunk-C6M4XVR7.cjs +36 -0
  43. package/dist/chunk-CGC4D5MP.cjs +89 -0
  44. package/dist/chunk-CIRQYSQW.js +70 -0
  45. package/dist/chunk-CLOTWJNP.cjs +310 -0
  46. package/dist/chunk-CS7ZY35M.cjs +49 -0
  47. package/dist/chunk-CUV4RLDE.js +89 -0
  48. package/dist/chunk-CZAMLFSE.cjs +275 -0
  49. package/dist/chunk-D7QZLJ3Z.cjs +18 -0
  50. package/dist/chunk-DMSAAZ3M.cjs +92 -0
  51. package/dist/chunk-DUIZC7VJ.cjs +36 -0
  52. package/dist/chunk-DVBF4BDH.js +43 -0
  53. package/dist/chunk-EETYMP6K.cjs +584 -0
  54. package/dist/chunk-EFQL7JPX.js +0 -0
  55. package/dist/chunk-EFU7IAF5.cjs +12 -0
  56. package/dist/chunk-F3M2H5EX.cjs +79 -0
  57. package/dist/chunk-F436V2SX.cjs +254 -0
  58. package/dist/chunk-F664X2OY.js +250 -0
  59. package/dist/chunk-FF7ELUQW.cjs +1 -0
  60. package/dist/chunk-G3HE4S3Q.cjs +296 -0
  61. package/dist/chunk-GOPD5KUK.js +23 -0
  62. package/dist/chunk-GYTB24V6.cjs +107 -0
  63. package/dist/chunk-GZ657SGO.js +310 -0
  64. package/dist/chunk-H2QN65L6.cjs +1 -0
  65. package/dist/chunk-H6WUT7CK.js +22 -0
  66. package/dist/chunk-H76OQ75T.js +49 -0
  67. package/dist/chunk-HA3XONYI.js +18 -0
  68. package/dist/chunk-HF3UFXEU.js +296 -0
  69. package/dist/chunk-HGA47QVV.cjs +55 -0
  70. package/dist/chunk-HHPPAMXF.cjs +674 -0
  71. package/dist/chunk-HLV2XIE2.cjs +385 -0
  72. package/dist/chunk-HNQGIL45.cjs +96 -0
  73. package/dist/chunk-HQ37R7T3.js +53 -0
  74. package/dist/chunk-HXUGW4RR.js +187 -0
  75. package/dist/chunk-HYPRLWD3.js +272 -0
  76. package/dist/chunk-I7TLJUTP.cjs +6 -0
  77. package/dist/chunk-ICTWDTKC.cjs +1 -0
  78. package/dist/chunk-IPYKHDP4.cjs +187 -0
  79. package/dist/chunk-IRKREQ2X.cjs +18 -0
  80. package/dist/chunk-IVJJBMRY.js +92 -0
  81. package/dist/chunk-JPVIVOFG.js +26 -0
  82. package/dist/chunk-JYNBNSNF.js +151 -0
  83. package/dist/chunk-JZC3BXAC.js +93 -0
  84. package/dist/chunk-K5XPQWXN.cjs +92 -0
  85. package/dist/chunk-KQ3GOMHL.js +31 -0
  86. package/dist/chunk-KUJH72U6.cjs +159 -0
  87. package/dist/chunk-KVUXLC6M.cjs +479 -0
  88. package/dist/chunk-KZOJN57Q.js +19 -0
  89. package/dist/chunk-L3XPL4NP.cjs +53 -0
  90. package/dist/chunk-LOEMSXYB.js +0 -0
  91. package/dist/chunk-LU4KBPNG.cjs +23 -0
  92. package/dist/chunk-MWWWPQDB.js +26 -0
  93. package/dist/chunk-NCBB3WUJ.js +562 -0
  94. package/dist/chunk-NGCZTZST.cjs +562 -0
  95. package/dist/chunk-NSDKALIS.cjs +67 -0
  96. package/dist/chunk-NZHCRLNB.cjs +26 -0
  97. package/dist/chunk-OL4NANHB.js +0 -0
  98. package/dist/chunk-OTJRNKLR.js +96 -0
  99. package/dist/chunk-OWWFKTSK.js +0 -0
  100. package/dist/chunk-P2E3PB62.cjs +99 -0
  101. package/dist/chunk-P2QVFR7S.js +20 -0
  102. package/dist/chunk-P6ZGIYY7.cjs +18 -0
  103. package/dist/chunk-PFGSJJRY.cjs +19 -0
  104. package/dist/chunk-PNIUW7AJ.cjs +32 -0
  105. package/dist/chunk-Q2M2ONGO.js +70 -0
  106. package/dist/chunk-Q4PGP5KE.cjs +562 -0
  107. package/dist/chunk-QAI2YQPY.cjs +51 -0
  108. package/dist/chunk-QCD7UEZ3.cjs +59 -0
  109. package/dist/chunk-QEZ4R3SK.js +6 -0
  110. package/dist/chunk-QKDCPM2D.cjs +23 -0
  111. package/dist/chunk-QRGG3V7W.cjs +59 -0
  112. package/dist/chunk-QURIHUEC.js +107 -0
  113. package/dist/chunk-QY742LWN.js +30 -0
  114. package/dist/chunk-QYMRGYTN.js +127 -0
  115. package/dist/chunk-RLKJ2RZG.js +23 -0
  116. package/dist/chunk-RRR5BUOM.cjs +30 -0
  117. package/dist/chunk-RU3FCVXM.cjs +1 -0
  118. package/dist/chunk-RYTDVTV2.js +32 -0
  119. package/dist/chunk-RYYGUYDE.js +92 -0
  120. package/dist/chunk-SGLP4U3Y.cjs +67 -0
  121. package/dist/chunk-SJC543ZK.js +71 -0
  122. package/dist/chunk-SLYQK4SC.js +20 -0
  123. package/dist/chunk-SMLCOMLS.js +2888 -0
  124. package/dist/chunk-SNMOPLMH.cjs +372 -0
  125. package/dist/chunk-TRJUJYW7.cjs +151 -0
  126. package/dist/chunk-TTY5PE3P.js +30 -0
  127. package/dist/chunk-TXARYG3J.js +22 -0
  128. package/dist/chunk-TYXJU4EF.js +18 -0
  129. package/dist/chunk-U3PC7FYZ.cjs +26 -0
  130. package/dist/chunk-U67JM2WL.cjs +34 -0
  131. package/dist/chunk-UARGO5UG.js +59 -0
  132. package/dist/chunk-UCYE3H3F.cjs +43 -0
  133. package/dist/chunk-UGEGN35F.js +118 -0
  134. package/dist/chunk-UHUA3GQC.cjs +30 -0
  135. package/dist/chunk-UJQN477L.js +59 -0
  136. package/dist/chunk-UMX7DTFZ.cjs +70 -0
  137. package/dist/chunk-UT42P54P.js +372 -0
  138. package/dist/chunk-V76ZRGHQ.cjs +1 -0
  139. package/dist/chunk-VCIK366Y.cjs +1455 -0
  140. package/dist/chunk-VMA74ABT.cjs +137 -0
  141. package/dist/chunk-VSA62N2O.js +12 -0
  142. package/dist/chunk-WDAFLVQK.js +479 -0
  143. package/dist/chunk-WHMLMAMO.js +674 -0
  144. package/dist/chunk-WNBLKKLM.js +0 -0
  145. package/dist/chunk-WQ2GY7F3.js +46 -0
  146. package/dist/chunk-WRLCCK3M.cjs +30 -0
  147. package/dist/chunk-WVCZIOLY.js +562 -0
  148. package/dist/chunk-WZLGJQLW.js +385 -0
  149. package/dist/chunk-XB6FEBK6.js +34 -0
  150. package/dist/chunk-XMERDSRE.js +75 -0
  151. package/dist/chunk-XMLFKZYY.js +137 -0
  152. package/dist/chunk-XMM52J3T.js +584 -0
  153. package/dist/chunk-XZ7C5CGB.cjs +103 -0
  154. package/dist/chunk-YGFBAOKX.js +51 -0
  155. package/dist/chunk-YIN552MF.cjs +20 -0
  156. package/dist/chunk-YLC42E65.cjs +31 -0
  157. package/dist/chunk-YOTXRYJL.cjs +46 -0
  158. package/dist/chunk-ZAUGJZK7.js +99 -0
  159. package/dist/chunk-ZIZOQTDG.cjs +75 -0
  160. package/dist/chunk-ZMSV5VZI.cjs +2888 -0
  161. package/dist/chunk-ZN6MLZAE.cjs +71 -0
  162. package/dist/chunk-ZNCT6HXA.cjs +33 -0
  163. package/dist/components/Accordion/index.cjs +5 -1036
  164. package/dist/components/Accordion/index.js +5 -999
  165. package/dist/components/Alert/index.cjs +4 -69
  166. package/dist/components/Alert/index.js +4 -42
  167. package/dist/components/AutoResizeTextArea/index.cjs +6 -260
  168. package/dist/components/AutoResizeTextArea/index.js +6 -223
  169. package/dist/components/Avatar/index.cjs +4 -65
  170. package/dist/components/Avatar/index.js +4 -38
  171. package/dist/components/Badge/index.cjs +6 -69
  172. package/dist/components/Badge/index.js +5 -40
  173. package/dist/components/Box/index.cjs +4 -58
  174. package/dist/components/Box/index.js +4 -31
  175. package/dist/components/Breadcrumb/index.cjs +4 -42
  176. package/dist/components/Breadcrumb/index.js +3 -14
  177. package/dist/components/Button/index.cjs +5 -65
  178. package/dist/components/Button/index.js +5 -38
  179. package/dist/components/Calendar/index.cjs +6 -1317
  180. package/dist/components/Calendar/index.js +10 -1281
  181. package/dist/components/CardTab/index.cjs +4 -120
  182. package/dist/components/CardTab/index.js +4 -83
  183. package/dist/components/Chart/index.cjs +5 -708
  184. package/dist/components/Chart/index.js +4 -670
  185. package/dist/components/ChatInput/index.cjs +9 -390
  186. package/dist/components/ChatInput/index.js +9 -353
  187. package/dist/components/CheckBox/index.cjs +20 -1125
  188. package/dist/components/CheckBox/index.js +17 -1095
  189. package/dist/components/Chip/index.cjs +5 -55
  190. package/dist/components/Chip/index.js +5 -28
  191. package/dist/components/DatePicker/index.cjs +16 -2136
  192. package/dist/components/DatePicker/index.js +19 -2099
  193. package/dist/components/Divider/index.cjs +4 -58
  194. package/dist/components/Divider/index.js +4 -31
  195. package/dist/components/Drawer/index.cjs +5 -190
  196. package/dist/components/Drawer/index.js +5 -153
  197. package/dist/components/Dropdown/index.cjs +7 -375
  198. package/dist/components/Dropdown/index.js +7 -338
  199. package/dist/components/Editor/index.cjs +6 -1486
  200. package/dist/components/Editor/index.css +53 -0
  201. package/dist/components/Editor/index.d.cts +13 -0
  202. package/dist/components/Editor/index.d.ts +13 -0
  203. package/dist/components/Editor/index.js +6 -1453
  204. package/dist/components/EmptyState/index.cjs +4 -42
  205. package/dist/components/EmptyState/index.js +3 -14
  206. package/dist/components/FieldMessage/index.cjs +7 -182
  207. package/dist/components/FieldMessage/index.js +8 -154
  208. package/dist/components/FileUpload/index.cjs +7 -1171
  209. package/dist/components/FileUpload/index.js +7 -1134
  210. package/dist/components/HtmlTypeWriter/index.cjs +3 -171
  211. package/dist/components/HtmlTypeWriter/index.js +3 -133
  212. package/dist/components/IconButton/index.cjs +4 -65
  213. package/dist/components/IconButton/index.js +4 -38
  214. package/dist/components/ImageSelector/index.cjs +8 -1214
  215. package/dist/components/ImageSelector/index.js +8 -1177
  216. package/dist/components/Input/index.cjs +7 -429
  217. package/dist/components/Input/index.js +8 -392
  218. package/dist/components/Link/index.cjs +4 -61
  219. package/dist/components/Link/index.js +4 -34
  220. package/dist/components/LinkButton/index.cjs +5 -61
  221. package/dist/components/LinkButton/index.js +5 -34
  222. package/dist/components/Modal/index.cjs +5 -190
  223. package/dist/components/Modal/index.js +5 -153
  224. package/dist/components/NotificationBadge/index.cjs +5 -68
  225. package/dist/components/NotificationBadge/index.js +5 -40
  226. package/dist/components/Pagination/index.cjs +6 -1034
  227. package/dist/components/Pagination/index.js +6 -1007
  228. package/dist/components/PopOver/index.cjs +7 -363
  229. package/dist/components/PopOver/index.js +7 -326
  230. package/dist/components/Progress/index.cjs +5 -84
  231. package/dist/components/Progress/index.js +5 -57
  232. package/dist/components/Radio/index.cjs +7 -274
  233. package/dist/components/Radio/index.js +8 -237
  234. package/dist/components/Select/index.cjs +10 -1577
  235. package/dist/components/Select/index.js +11 -1540
  236. package/dist/components/Skeleton/index.cjs +4 -71
  237. package/dist/components/Skeleton/index.js +4 -44
  238. package/dist/components/Spinner/index.cjs +5 -88
  239. package/dist/components/Spinner/index.js +5 -61
  240. package/dist/components/Stat/index.cjs +5 -81
  241. package/dist/components/Stat/index.js +5 -54
  242. package/dist/components/Steps/index.cjs +7 -968
  243. package/dist/components/Steps/index.js +7 -941
  244. package/dist/components/Swiper/index.cjs +4 -357
  245. package/dist/components/Swiper/index.js +4 -320
  246. package/dist/components/Switch/index.cjs +7 -252
  247. package/dist/components/Switch/index.js +7 -215
  248. package/dist/components/Tab/index.cjs +4 -144
  249. package/dist/components/Tab/index.js +4 -107
  250. package/dist/components/Table/index.cjs +4 -310
  251. package/dist/components/Table/index.css +31 -5
  252. package/dist/components/Table/index.js +8 -273
  253. package/dist/components/Tag/index.cjs +6 -969
  254. package/dist/components/Tag/index.js +6 -942
  255. package/dist/components/TextArea/index.cjs +6 -229
  256. package/dist/components/TextArea/index.js +6 -192
  257. package/dist/components/TimePicker/index.cjs +9 -579
  258. package/dist/components/TimePicker/index.js +9 -542
  259. package/dist/components/Toast/index.cjs +5 -146
  260. package/dist/components/Toast/index.js +5 -108
  261. package/dist/components/ToggleChip/index.cjs +5 -66
  262. package/dist/components/ToggleChip/index.js +5 -39
  263. package/dist/components/Tooltip/index.cjs +6 -204
  264. package/dist/components/Tooltip/index.js +6 -167
  265. package/dist/components/Tour/index.cjs +6 -414
  266. package/dist/components/Tour/index.js +6 -377
  267. package/dist/components/Video/index.cjs +7 -796
  268. package/dist/components/Video/index.js +7 -759
  269. package/dist/components/index.cjs +140 -8315
  270. package/dist/components/index.css +31 -5
  271. package/dist/components/index.js +190 -8261
  272. package/dist/index.cjs +903 -13291
  273. package/dist/index.css +31 -5
  274. package/dist/index.js +524 -12499
  275. package/dist/layout/Grid/FullGrid/index.cjs +4 -46
  276. package/dist/layout/Grid/FullGrid/index.js +3 -18
  277. package/dist/layout/Grid/FullScreen/index.cjs +4 -46
  278. package/dist/layout/Grid/FullScreen/index.js +3 -18
  279. package/dist/layout/Grid/Item/index.cjs +5 -68
  280. package/dist/layout/Grid/Item/index.js +5 -41
  281. package/dist/layout/Grid/index.cjs +14 -109
  282. package/dist/layout/Grid/index.js +14 -79
  283. package/dist/layout/Header/index.cjs +4 -44
  284. package/dist/layout/Header/index.js +3 -16
  285. package/dist/layout/Layout/index.cjs +4 -42
  286. package/dist/layout/Layout/index.js +3 -14
  287. package/dist/layout/SideBar/index.cjs +6 -96
  288. package/dist/layout/SideBar/index.js +6 -57
  289. package/dist/layout/index.cjs +38 -209
  290. package/dist/layout/index.js +27 -153
  291. package/dist/tokens/index.cjs +627 -6119
  292. package/dist/tokens/index.js +324 -5489
  293. package/guidelines/components/editor.md +3 -0
  294. package/guidelines/components/table.md +23 -0
  295. package/guidelines/setup.md +7 -0
  296. package/package.json +6 -3
@@ -0,0 +1,51 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
+
3
+ var _chunkPFGSJJRYcjs = require('./chunk-PFGSJJRY.cjs');
4
+
5
+ // src/layout/SideBar/SideBar.tsx
6
+ var _react = require('react'); var _react2 = _interopRequireDefault(_react);
7
+
8
+ // src/layout/SideBar/SideBarContext.tsx
9
+
10
+ var SideBarContext = _react2.default.createContext(null);
11
+ var useSideBarContext = () => {
12
+ const ctx = _react2.default.useContext(SideBarContext);
13
+ if (!ctx) throw new Error("Error");
14
+ return ctx;
15
+ };
16
+ var SideBarContext_default = SideBarContext;
17
+
18
+ // src/layout/SideBar/SideBar.tsx
19
+ var _jsxruntime = require('react/jsx-runtime');
20
+ var SideBar = (props) => {
21
+ const { children, className } = props;
22
+ const [isOpen, setIsOpen] = _react2.default.useState(true);
23
+ const handleSwitchSideBar = () => {
24
+ setIsOpen((prev) => !prev);
25
+ };
26
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
27
+ SideBarContext_default.Provider,
28
+ {
29
+ value: { isSidebarOpen: isOpen, handleSwitchSideBar },
30
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
31
+ "div",
32
+ {
33
+ className: _chunkPFGSJJRYcjs.clsx_default.call(void 0,
34
+ "lib-xplat-layout-sidebar",
35
+ isOpen ? "large" : "small",
36
+ className
37
+ ),
38
+ children
39
+ }
40
+ )
41
+ }
42
+ );
43
+ };
44
+ SideBar.displayName = "SideBar";
45
+ var SideBar_default = SideBar;
46
+
47
+
48
+
49
+
50
+
51
+ exports.useSideBarContext = useSideBarContext; exports.SideBarContext_default = SideBarContext_default; exports.SideBar_default = SideBar_default;
@@ -0,0 +1,59 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+ var _chunk4KYHHJ6Zcjs = require('./chunk-4KYHHJ6Z.cjs');
4
+
5
+ // src/tokens/hooks/useClickOutside.ts
6
+ var _react = require('react'); var _react2 = _interopRequireDefault(_react);
7
+ var useClickOutside = (refs, handler, enabled = true) => {
8
+ _react2.default.useEffect(() => {
9
+ if (!enabled) return;
10
+ const refArray = Array.isArray(refs) ? refs : [refs];
11
+ const listener = (event) => {
12
+ const target = event.target;
13
+ const isInside = refArray.some(
14
+ (ref) => ref.current && ref.current.contains(target)
15
+ );
16
+ if (!isInside) {
17
+ handler();
18
+ }
19
+ };
20
+ document.addEventListener("mousedown", listener);
21
+ document.addEventListener("touchstart", listener);
22
+ return () => {
23
+ document.removeEventListener("mousedown", listener);
24
+ document.removeEventListener("touchstart", listener);
25
+ };
26
+ }, [refs, handler, enabled]);
27
+ };
28
+ var useClickOutside_default = useClickOutside;
29
+
30
+ // src/tokens/hooks/useOverlayHost.ts
31
+
32
+ var useOverlayHost = (triggerRef, enabled) => {
33
+ const [host, setHost] = _react2.default.useState(null);
34
+ _react2.default.useLayoutEffect(() => {
35
+ if (!enabled || !triggerRef.current) {
36
+ setHost(null);
37
+ return;
38
+ }
39
+ const el = document.createElement("div");
40
+ el.dataset.xplatOverlayHost = "";
41
+ el.style.position = "relative";
42
+ el.style.width = "0";
43
+ el.style.height = "0";
44
+ const parent = _nullishCoalesce(_chunk4KYHHJ6Zcjs.findScrollParent.call(void 0, triggerRef.current), () => ( document.body));
45
+ parent.appendChild(el);
46
+ setHost(el);
47
+ return () => {
48
+ el.remove();
49
+ setHost(null);
50
+ };
51
+ }, [enabled, triggerRef]);
52
+ return host;
53
+ };
54
+ var useOverlayHost_default = useOverlayHost;
55
+
56
+
57
+
58
+
59
+ exports.useClickOutside_default = useClickOutside_default; exports.useOverlayHost_default = useOverlayHost_default;
@@ -0,0 +1,6 @@
1
+ // src/tokens/interface/status.ts
2
+ var normalizeStatus = (value) => value === "brand" ? "primary" : value;
3
+
4
+ export {
5
+ normalizeStatus
6
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPFGSJJRYcjs = require('./chunk-PFGSJJRY.cjs');
4
+
5
+ // src/components/Box/Box.tsx
6
+ var _jsxruntime = require('react/jsx-runtime');
7
+ var Box = ({
8
+ children,
9
+ title,
10
+ variant = "outlined",
11
+ padding = "md"
12
+ }) => {
13
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkPFGSJJRYcjs.clsx_default.call(void 0, "lib-xplat-box", variant, `pad-${padding}`), children: [
14
+ title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "box-title", children: title }),
15
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "box-content", children })
16
+ ] });
17
+ };
18
+ Box.displayName = "Box";
19
+ var Box_default = Box;
20
+
21
+
22
+
23
+ exports.Box_default = Box_default;
@@ -0,0 +1,59 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkSNMOPLMHcjs = require('./chunk-SNMOPLMH.cjs');
4
+
5
+
6
+
7
+ var _chunkHGA47QVVcjs = require('./chunk-HGA47QVV.cjs');
8
+
9
+
10
+ var _chunkI7TLJUTPcjs = require('./chunk-I7TLJUTP.cjs');
11
+
12
+
13
+ var _chunkPFGSJJRYcjs = require('./chunk-PFGSJJRY.cjs');
14
+
15
+ // src/components/CheckBox/CheckBox.tsx
16
+ var _jsxruntime = require('react/jsx-runtime');
17
+ var CheckBox = (props) => {
18
+ const {
19
+ checked,
20
+ className,
21
+ label,
22
+ onChange,
23
+ disabled,
24
+ size = "md",
25
+ type = "primary",
26
+ validations,
27
+ ...rest
28
+ } = props;
29
+ const statusType = _chunkI7TLJUTPcjs.normalizeStatus.call(void 0, type);
30
+ const handleChange = (e) => {
31
+ if (onChange) onChange(e);
32
+ };
33
+ const uncheckedClasses = `unchecked`;
34
+ const checkedClasses = `checked`;
35
+ const disabledClasses = "disabled";
36
+ const boxClasses = disabled ? disabledClasses : checked ? checkedClasses : uncheckedClasses;
37
+ const control = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "label", { className: _chunkPFGSJJRYcjs.clsx_default.call(void 0, "lib-xplat-checkbox", size, statusType, className), children: [
38
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
39
+ "input",
40
+ {
41
+ type: "checkbox",
42
+ checked,
43
+ onChange: handleChange,
44
+ disabled,
45
+ "aria-invalid": _chunkHGA47QVVcjs.hasError.call(void 0, validations) || void 0,
46
+ ...rest
47
+ }
48
+ ),
49
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPFGSJJRYcjs.clsx_default.call(void 0, "checkbox", boxClasses), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPFGSJJRYcjs.clsx_default.call(void 0, "check-icon", { visible: checked }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSNMOPLMHcjs.CheckIcon_default, {}) }) }),
50
+ label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "label", children: label })
51
+ ] });
52
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHGA47QVVcjs.Field, { validations, children: control });
53
+ };
54
+ CheckBox.displayName = "CheckBox";
55
+ var CheckBox_default = CheckBox;
56
+
57
+
58
+
59
+ exports.CheckBox_default = CheckBox_default;
@@ -0,0 +1,107 @@
1
+ // src/components/Calendar/useCalendar.ts
2
+ import React from "react";
3
+ var useCalendar = (initialYear, initialMonth) => {
4
+ const today = /* @__PURE__ */ new Date();
5
+ const [year, setYear] = React.useState(initialYear ?? today.getFullYear());
6
+ const [month, setMonth] = React.useState(initialMonth ?? today.getMonth());
7
+ const days = React.useMemo(() => {
8
+ const firstDay = new Date(year, month, 1);
9
+ const lastDay = new Date(year, month + 1, 0);
10
+ const startDayOfWeek = firstDay.getDay();
11
+ const result = [];
12
+ const prevMonthLast = new Date(year, month, 0);
13
+ for (let i = startDayOfWeek - 1; i >= 0; i--) {
14
+ const d = new Date(year, month - 1, prevMonthLast.getDate() - i);
15
+ result.push({
16
+ date: d,
17
+ day: d.getDate(),
18
+ isCurrentMonth: false,
19
+ isToday: false,
20
+ isSunday: d.getDay() === 0,
21
+ isSaturday: d.getDay() === 6
22
+ });
23
+ }
24
+ for (let d = 1; d <= lastDay.getDate(); d++) {
25
+ const date = new Date(year, month, d);
26
+ const isToday = date.getFullYear() === today.getFullYear() && date.getMonth() === today.getMonth() && date.getDate() === today.getDate();
27
+ result.push({
28
+ date,
29
+ day: d,
30
+ isCurrentMonth: true,
31
+ isToday,
32
+ isSunday: date.getDay() === 0,
33
+ isSaturday: date.getDay() === 6
34
+ });
35
+ }
36
+ const remaining = 42 - result.length;
37
+ for (let d = 1; d <= remaining; d++) {
38
+ const date = new Date(year, month + 1, d);
39
+ result.push({
40
+ date,
41
+ day: d,
42
+ isCurrentMonth: false,
43
+ isToday: false,
44
+ isSunday: date.getDay() === 0,
45
+ isSaturday: date.getDay() === 6
46
+ });
47
+ }
48
+ return result;
49
+ }, [year, month]);
50
+ const goToPrevMonth = React.useCallback(() => {
51
+ setMonth((prev) => {
52
+ if (prev === 0) {
53
+ setYear((y) => y - 1);
54
+ return 11;
55
+ }
56
+ return prev - 1;
57
+ });
58
+ }, []);
59
+ const goToNextMonth = React.useCallback(() => {
60
+ setMonth((prev) => {
61
+ if (prev === 11) {
62
+ setYear((y) => y + 1);
63
+ return 0;
64
+ }
65
+ return prev + 1;
66
+ });
67
+ }, []);
68
+ const goToToday = React.useCallback(() => {
69
+ setYear(today.getFullYear());
70
+ setMonth(today.getMonth());
71
+ }, []);
72
+ return {
73
+ year,
74
+ month,
75
+ days,
76
+ goToPrevMonth,
77
+ goToNextMonth,
78
+ goToToday,
79
+ setYear,
80
+ setMonth
81
+ };
82
+ };
83
+ var isSameDay = (a, b) => {
84
+ return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();
85
+ };
86
+ var isInRange = (date, start, end) => {
87
+ const d = date.getTime();
88
+ const s = new Date(start.getFullYear(), start.getMonth(), start.getDate()).getTime();
89
+ const e = new Date(end.getFullYear(), end.getMonth(), end.getDate()).getTime();
90
+ return d >= s && d <= e;
91
+ };
92
+ var WEEKDAY_LABELS = {
93
+ ko: ["\uC77C", "\uC6D4", "\uD654", "\uC218", "\uBAA9", "\uAE08", "\uD1A0"],
94
+ en: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
95
+ };
96
+ var MONTH_LABELS = {
97
+ ko: ["1\uC6D4", "2\uC6D4", "3\uC6D4", "4\uC6D4", "5\uC6D4", "6\uC6D4", "7\uC6D4", "8\uC6D4", "9\uC6D4", "10\uC6D4", "11\uC6D4", "12\uC6D4"],
98
+ en: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
99
+ };
100
+
101
+ export {
102
+ useCalendar,
103
+ isSameDay,
104
+ isInRange,
105
+ WEEKDAY_LABELS,
106
+ MONTH_LABELS
107
+ };
@@ -0,0 +1,30 @@
1
+ import {
2
+ clsx_default
3
+ } from "./chunk-KZOJN57Q.js";
4
+
5
+ // src/components/Avatar/Avatar.tsx
6
+ import { jsx } from "react/jsx-runtime";
7
+ var CATEGORICAL_COUNT = 8;
8
+ var getColorIndex = (name) => {
9
+ if (!name) return 1;
10
+ const code = name.charCodeAt(0) || 0;
11
+ return code % CATEGORICAL_COUNT + 1;
12
+ };
13
+ var Avatar = (props) => {
14
+ const {
15
+ src,
16
+ alt,
17
+ name,
18
+ size = "md"
19
+ } = props;
20
+ const fullInitials = name ? name.split(" ").map((s) => s[0]).join("").slice(0, 2).toUpperCase() : "";
21
+ const initials = size === "sm" ? fullInitials.slice(0, 1) : fullInitials;
22
+ const catIndex = getColorIndex(name || "");
23
+ return /* @__PURE__ */ jsx("div", { className: clsx_default("lib-xplat-avatar", size), children: src ? /* @__PURE__ */ jsx("img", { src, alt: alt || name || "avatar" }) : /* @__PURE__ */ jsx("div", { className: clsx_default("fallback", `cat-${catIndex}`), children: initials || /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }) }) }) });
24
+ };
25
+ Avatar.displayName = "Avatar";
26
+ var Avatar_default = Avatar;
27
+
28
+ export {
29
+ Avatar_default
30
+ };
@@ -0,0 +1,127 @@
1
+ // src/tokens/svg/communication/BellIcon.tsx
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ var BellIcon = () => /* @__PURE__ */ jsxs(
4
+ "svg",
5
+ {
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: "1em",
8
+ height: "1em",
9
+ viewBox: "0 0 20 20",
10
+ fill: "none",
11
+ children: [
12
+ /* @__PURE__ */ jsx("path", { d: "M10.793 17.124C11.0008 16.7657 11.4601 16.6437 11.8183 16.8516C12.1764 17.0594 12.2983 17.5178 12.0908 17.876C11.8784 18.2422 11.5729 18.5465 11.206 18.7578C10.8392 18.969 10.4232 19.0801 9.99998 19.0801C9.57671 19.08 9.16072 18.9691 8.79393 18.7578C8.42711 18.5465 8.12256 18.2422 7.91014 17.876C7.7024 17.5177 7.82435 17.0594 8.1826 16.8516C8.54088 16.6438 8.9992 16.7658 9.20702 17.124C9.28759 17.2629 9.40384 17.3779 9.54295 17.458C9.68199 17.5381 9.83955 17.58 9.99998 17.5801C10.1606 17.5801 10.3188 17.5382 10.458 17.458C10.5969 17.3779 10.7124 17.2627 10.793 17.124Z", fill: "currentColor" }),
13
+ /* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.99998 0.916992C11.525 0.916997 12.9871 1.52323 14.0654 2.60156C15.1437 3.67988 15.75 5.14206 15.75 6.66699C15.75 9.47276 16.3501 11.2219 16.9082 12.2451C17.1882 12.7585 17.4625 13.0974 17.6543 13.2998C17.7502 13.401 17.8264 13.4689 17.873 13.5078C17.8962 13.5271 17.9123 13.5393 17.9199 13.5449L17.918 13.5439C18.1921 13.7275 18.3134 14.0689 18.2178 14.3848C18.1218 14.7007 17.8303 14.917 17.5 14.917H2.49998C2.16971 14.917 1.87818 14.7007 1.78221 14.3848C1.68658 14.0689 1.80886 13.7275 2.08299 13.5439L2.08006 13.5449L2.07811 13.5469C2.07672 13.5478 2.07546 13.5486 2.07518 13.5488C2.07547 13.5486 2.07713 13.5471 2.08006 13.5449C2.08766 13.5393 2.10379 13.5271 2.12694 13.5078C2.17362 13.4689 2.24981 13.401 2.34569 13.2998C2.53742 13.0974 2.81172 12.7585 3.09178 12.2451C3.64984 11.2219 4.24995 9.47276 4.24998 6.66699C4.24998 5.14205 4.85629 3.67989 5.93455 2.60156C7.01289 1.52323 8.47499 0.916992 9.99998 0.916992ZM9.99998 2.41699C8.87281 2.41699 7.79213 2.86508 6.9951 3.66211C6.19814 4.45913 5.74998 5.53988 5.74998 6.66699C5.74995 9.69403 5.10005 11.6955 4.40819 12.9639C4.31893 13.1275 4.22836 13.2781 4.13963 13.417H15.8603C15.7716 13.2781 15.681 13.1275 15.5918 12.9639C14.8999 11.6955 14.25 9.69403 14.25 6.66699C14.25 5.53988 13.8018 4.45913 13.0049 3.66211C12.2078 2.86508 11.1271 2.417 9.99998 2.41699Z", fill: "currentColor" })
14
+ ]
15
+ }
16
+ );
17
+ var BellIcon_default = BellIcon;
18
+
19
+ // src/tokens/svg/communication/BellOffIcon.tsx
20
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
21
+ var BellOffIcon = () => /* @__PURE__ */ jsxs2(
22
+ "svg",
23
+ {
24
+ xmlns: "http://www.w3.org/2000/svg",
25
+ width: "1em",
26
+ height: "1em",
27
+ viewBox: "0 0 20 20",
28
+ fill: "none",
29
+ children: [
30
+ /* @__PURE__ */ jsxs2("g", { clipPath: "url(#belloff-clip)", children: [
31
+ /* @__PURE__ */ jsx2("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.302706 0.302974C0.595527 0.0101535 1.07034 0.0102988 1.36325 0.302974L19.6963 18.636C19.9892 18.9289 19.9892 19.4036 19.6963 19.6965C19.4034 19.9892 18.9285 19.9894 18.6357 19.6965L13.8564 14.9172H2.49997C2.16955 14.9172 1.87805 14.7002 1.7822 14.384C1.68661 14.0679 1.80917 13.7265 2.08396 13.5432L2.08005 13.5452L2.0781 13.5471L2.07517 13.5491C2.07517 13.5491 2.0768 13.5476 2.08005 13.5452C2.08762 13.5395 2.10374 13.5274 2.12692 13.5081C2.17359 13.4692 2.24984 13.4012 2.34567 13.3C2.53741 13.0977 2.8117 12.7588 3.09177 12.2454C3.61497 11.2861 4.17511 9.68875 4.24314 7.1809L4.24997 6.66723C4.24912 6.25506 4.29325 5.84422 4.38181 5.44262L0.302706 1.36352C0.010102 1.07068 0.0100991 0.595812 0.302706 0.302974ZM5.74704 6.80786C5.72721 9.75629 5.08925 11.7155 4.40817 12.9641C4.31891 13.1277 4.22835 13.2783 4.13962 13.4172H12.3564L5.74704 6.80786Z", fill: "currentColor" }),
32
+ /* @__PURE__ */ jsx2("path", { d: "M10.7929 17.1243C11.0008 16.766 11.46 16.644 11.8183 16.8518C12.1762 17.0597 12.2983 17.5181 12.0908 17.8762C11.8784 18.2424 11.5728 18.5468 11.206 18.7581C10.8393 18.9692 10.4232 19.0803 9.99997 19.0803C9.57674 19.0803 9.16068 18.9693 8.79392 18.7581C8.42716 18.5468 8.12254 18.2423 7.91013 17.8762C7.7024 17.518 7.82438 17.0596 8.18259 16.8518C8.54086 16.6441 8.99919 16.766 9.207 17.1243C9.28757 17.263 9.40389 17.3782 9.54294 17.4582C9.68195 17.5382 9.83959 17.5803 9.99997 17.5803C10.1605 17.5803 10.3189 17.5384 10.458 17.4582C10.5969 17.3782 10.7124 17.2629 10.7929 17.1243Z", fill: "currentColor" }),
33
+ /* @__PURE__ */ jsx2("path", { d: "M9.72263 0.916255C10.7629 0.866089 11.7978 1.09917 12.7158 1.59106C13.6337 2.08301 14.4012 2.81529 14.9355 3.70922C15.4697 4.60308 15.7513 5.62592 15.75 6.66723C15.75 6.67097 15.75 6.6752 15.75 6.67895C15.7287 8.0146 15.8961 9.34737 16.248 10.636C16.3569 11.0354 16.122 11.4488 15.7226 11.5579C15.3233 11.6669 14.9111 11.4307 14.8017 11.0315C14.4611 9.78446 14.2761 8.50028 14.2509 7.20922L14.25 6.65551C14.2493 5.88913 14.0407 5.13672 13.6474 4.47876C13.2525 3.81816 12.6852 3.27688 12.0068 2.91333C11.3284 2.54989 10.5637 2.37723 9.79489 2.4143C9.02603 2.45147 8.28093 2.69704 7.6406 3.12426C7.29609 3.35368 6.83032 3.26063 6.60056 2.91626C6.37106 2.57183 6.46437 2.10609 6.80857 1.87622C7.6749 1.29826 8.68242 0.966514 9.72263 0.916255Z", fill: "currentColor" })
34
+ ] }),
35
+ /* @__PURE__ */ jsx2("defs", { children: /* @__PURE__ */ jsx2("clipPath", { id: "belloff-clip", children: /* @__PURE__ */ jsx2("rect", { width: "20", height: "20", fill: "currentColor" }) }) })
36
+ ]
37
+ }
38
+ );
39
+ var BellOffIcon_default = BellOffIcon;
40
+
41
+ // src/tokens/svg/communication/InboxIcon.tsx
42
+ import { jsx as jsx3 } from "react/jsx-runtime";
43
+ var InboxIcon = () => /* @__PURE__ */ jsx3(
44
+ "svg",
45
+ {
46
+ xmlns: "http://www.w3.org/2000/svg",
47
+ width: "1em",
48
+ height: "1em",
49
+ viewBox: "0 0 20 20",
50
+ fill: "none",
51
+ children: /* @__PURE__ */ jsx3("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1357 2.58887C14.5262 2.61642 14.9052 2.73914 15.2393 2.94629C15.6205 3.18274 15.9288 3.52041 16.1289 3.92188L19.0039 9.66406C19.0085 9.6732 19.0114 9.68309 19.0156 9.69238C19.0201 9.70236 19.0242 9.71245 19.0283 9.72266C19.0435 9.76047 19.0556 9.79921 19.0645 9.83887C19.0759 9.89088 19.084 9.94456 19.084 10V15C19.0839 15.6406 18.8289 16.2559 18.376 16.709C17.9229 17.162 17.3077 17.4159 16.667 17.416H3.33398C2.69326 17.416 2.07817 17.1619 1.625 16.709C1.17186 16.2558 0.916102 15.6408 0.916016 15V10C0.916016 9.93796 0.925251 9.87797 0.939453 9.82031C0.946105 9.79337 0.955231 9.7673 0.964844 9.74121C0.971561 9.723 0.97827 9.70501 0.986328 9.6875C0.989796 9.67995 0.992369 9.67151 0.996094 9.66406L3.87109 3.92188C4.07114 3.5205 4.37962 3.18271 4.76074 2.94629C5.14272 2.70954 5.5838 2.58326 6.0332 2.58301H13.9678L14.1357 2.58887ZM2.41699 15C2.41708 15.2429 2.51382 15.4756 2.68555 15.6475C2.85744 15.8193 3.09093 15.916 3.33398 15.916H16.667C16.9099 15.9159 17.1436 15.8193 17.3154 15.6475C17.4868 15.4757 17.5839 15.2427 17.584 15V10.75H13.7354L12.291 12.916C12.152 13.1245 11.9176 13.2498 11.667 13.25H8.33398C8.08337 13.25 7.84909 13.1244 7.70996 12.916L6.26562 10.75H2.41699V15ZM5.90723 4.0918C5.78168 4.1094 5.66034 4.1535 5.55176 4.2207C5.40697 4.31049 5.28976 4.43927 5.21387 4.5918L2.88184 9.25H6.66699L6.75977 9.25586C6.97442 9.28274 7.16933 9.40146 7.29102 9.58398L8.73535 11.75H11.2656L12.71 9.58398L12.7656 9.50977C12.9071 9.34599 13.1146 9.25 13.334 9.25H17.1191L14.7871 4.5918C14.7113 4.43917 14.594 4.31057 14.4492 4.2207C14.3407 4.15341 14.2193 4.10951 14.0938 4.0918L13.9668 4.08301H6.03418L5.90723 4.0918Z", fill: "currentColor" })
52
+ }
53
+ );
54
+ var InboxIcon_default = InboxIcon;
55
+
56
+ // src/tokens/svg/communication/MessageCircleIcon.tsx
57
+ import { jsx as jsx4 } from "react/jsx-runtime";
58
+ var MessageCircleIcon = () => /* @__PURE__ */ jsx4(
59
+ "svg",
60
+ {
61
+ xmlns: "http://www.w3.org/2000/svg",
62
+ width: "1em",
63
+ height: "1em",
64
+ viewBox: "0 0 20 20",
65
+ fill: "none",
66
+ children: /* @__PURE__ */ jsx4("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.8748 1.75098C12.7959 1.85705 14.6109 2.66787 15.9715 4.02832C17.332 5.38886 18.1427 7.20384 18.2488 9.125C18.2496 9.13876 18.2498 9.15321 18.2498 9.16699V9.58105L18.2371 10.0371C18.1772 11.0978 17.9001 12.1367 17.4197 13.0879L17.4187 13.0869C16.7685 14.387 15.7703 15.4815 14.534 16.2461C13.297 17.011 11.8711 17.4164 10.4168 17.417C9.30666 17.4196 8.21147 17.1796 7.20291 16.7217L2.73708 18.2119C2.46766 18.3016 2.17031 18.2311 1.96951 18.0303C1.76879 17.8294 1.69811 17.5321 1.78787 17.2627L3.27712 12.7959C2.81937 11.7871 2.57989 10.6913 2.58279 9.58105C2.58372 8.12738 2.98913 6.70222 3.75369 5.46582C4.47077 4.30628 5.47782 3.35519 6.67263 2.70508L6.91482 2.5791C8.00062 2.03128 9.20059 1.74811 10.4168 1.75098L10.8328 1.75L10.8748 1.75098ZM10.4148 3.25C9.43317 3.24749 8.4639 3.47734 7.58767 3.91992L7.58474 3.9209C6.53312 4.4466 5.64846 5.25496 5.03005 6.25488C4.4116 7.25499 4.08324 8.4081 4.08279 9.58398C4.08023 10.5657 4.31012 11.5358 4.75271 12.4121C4.84276 12.5905 4.85791 12.7977 4.7947 12.9873L3.68533 16.3135L7.01248 15.2051C7.202 15.1419 7.4093 15.1571 7.58767 15.2471C8.4639 15.6897 9.43317 15.9195 10.4148 15.917C11.5907 15.9165 12.7448 15.5881 13.7449 14.9697C14.7449 14.3513 15.5532 13.4667 16.0789 12.415L16.0799 12.4121C16.5225 11.5358 16.7523 10.5667 16.7498 9.58496V9.19531C16.6613 7.64742 16.0065 6.18637 14.9099 5.08984C13.8134 3.99342 12.3523 3.33851 10.8045 3.25H10.4148Z", fill: "currentColor" })
67
+ }
68
+ );
69
+ var MessageCircleIcon_default = MessageCircleIcon;
70
+
71
+ // src/tokens/svg/communication/MessageSquareIcon.tsx
72
+ import { jsx as jsx5 } from "react/jsx-runtime";
73
+ var MessageSquareIcon = () => /* @__PURE__ */ jsx5(
74
+ "svg",
75
+ {
76
+ xmlns: "http://www.w3.org/2000/svg",
77
+ width: "1em",
78
+ height: "1em",
79
+ viewBox: "0 0 20 20",
80
+ fill: "none",
81
+ children: /* @__PURE__ */ jsx5("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.833 1.75C16.4739 1.75 17.0888 2.00479 17.542 2.45801C17.9952 2.91122 18.25 3.52605 18.25 4.16699V12.5C18.25 13.1409 17.9952 13.7558 17.542 14.209C17.0888 14.6621 16.4739 14.917 15.833 14.917H6.14355L3.03027 18.0303C2.81579 18.2448 2.49313 18.3094 2.21289 18.1934C1.93263 18.0773 1.75 17.8033 1.75 17.5V4.16699C1.75 3.52605 2.00479 2.91122 2.45801 2.45801C2.91122 2.00479 3.52605 1.75 4.16699 1.75H15.833ZM4.16699 3.25C3.92388 3.25 3.69046 3.34665 3.51855 3.51855C3.34665 3.69046 3.25 3.92388 3.25 4.16699V15.6895L5.30273 13.6367L5.41699 13.543C5.53928 13.4613 5.68382 13.4171 5.83301 13.417H15.833C16.076 13.417 16.3096 13.3202 16.4814 13.1484C16.6534 12.9765 16.75 12.7431 16.75 12.5V4.16699C16.75 3.92388 16.6534 3.69046 16.4814 3.51855C16.3095 3.34665 16.0761 3.25 15.833 3.25H4.16699Z", fill: "currentColor" })
82
+ }
83
+ );
84
+ var MessageSquareIcon_default = MessageSquareIcon;
85
+
86
+ // src/tokens/svg/communication/PaperclipIcon.tsx
87
+ import { jsx as jsx6 } from "react/jsx-runtime";
88
+ var PaperclipIcon = () => /* @__PURE__ */ jsx6(
89
+ "svg",
90
+ {
91
+ xmlns: "http://www.w3.org/2000/svg",
92
+ width: "1em",
93
+ height: "1em",
94
+ viewBox: "0 0 20 20",
95
+ fill: "none",
96
+ children: /* @__PURE__ */ jsx6("path", { d: "M13.1504 0.40625C14.2336 0.406376 15.2731 0.836606 16.0391 1.60254C16.805 2.36854 17.2352 3.40798 17.2354 4.49121C17.2354 5.57445 16.8049 6.61381 16.0391 7.37988L8.37207 15.0391L8.37109 15.0381C7.91773 15.4913 7.30318 15.7461 6.66211 15.7461C6.02103 15.746 5.40644 15.4914 4.95312 15.0381C4.4999 14.5848 4.24516 13.9701 4.24512 13.3291C4.24518 12.688 4.4998 12.0725 4.95312 11.6191L12.0283 4.55273C12.3213 4.26024 12.7962 4.26002 13.0889 4.55273C13.3815 4.84574 13.3808 5.32055 13.0879 5.61328L6.01367 12.6807C5.84179 12.8527 5.74518 13.0859 5.74512 13.3291C5.74516 13.5723 5.84175 13.8055 6.01367 13.9775C6.18568 14.1495 6.41886 14.246 6.66211 14.2461C6.90547 14.2461 7.13944 14.1496 7.31152 13.9775L14.9775 6.31934C15.4623 5.83453 15.7354 5.17679 15.7354 4.49121C15.7352 3.80575 15.4622 3.14779 14.9775 2.66309C14.4929 2.17869 13.8356 1.90638 13.1504 1.90625C12.465 1.90625 11.807 2.17856 11.3223 2.66309L3.66406 10.3213C2.86657 11.1188 2.41803 12.2013 2.41797 13.3291C2.41801 14.4569 2.86663 15.5384 3.66406 16.3359C4.4616 17.1334 5.54307 17.582 6.6709 17.582C7.79875 17.582 8.88022 17.1334 9.67773 16.3359L17.3359 8.67773C17.6287 8.38508 18.1036 8.38524 18.3965 8.67773C18.6893 8.97059 18.6893 9.44538 18.3965 9.73828L10.7383 17.3965C9.65946 18.4753 8.19657 19.082 6.6709 19.082C5.14517 19.082 3.68139 18.4753 2.60254 17.3965C1.52401 16.3177 0.918012 14.8546 0.917969 13.3291C0.918033 11.8035 1.52375 10.3395 2.60254 9.26074L10.2617 1.60254C11.0278 0.836713 12.0672 0.40625 13.1504 0.40625Z", fill: "currentColor" })
97
+ }
98
+ );
99
+ var PaperclipIcon_default = PaperclipIcon;
100
+
101
+ // src/tokens/svg/communication/SendIcon.tsx
102
+ import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
103
+ var SendIcon = () => /* @__PURE__ */ jsxs3(
104
+ "svg",
105
+ {
106
+ xmlns: "http://www.w3.org/2000/svg",
107
+ width: "1em",
108
+ height: "1em",
109
+ viewBox: "0 0 20 20",
110
+ fill: "none",
111
+ children: [
112
+ /* @__PURE__ */ jsx7("g", { clipPath: "url(#send-clip)", children: /* @__PURE__ */ jsx7("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18.3558 0.918873C18.3887 0.919879 18.4212 0.9224 18.4535 0.927663C18.4642 0.929393 18.4751 0.930348 18.4857 0.932545C18.527 0.941123 18.5675 0.953269 18.6068 0.968678C18.6178 0.972968 18.6282 0.978499 18.639 0.983327C18.6672 0.995914 18.6945 1.01021 18.7211 1.0263C18.7403 1.03794 18.7594 1.04988 18.7777 1.0634C18.7803 1.06534 18.7829 1.0673 18.7855 1.06926C18.8126 1.08979 18.839 1.11195 18.8637 1.13665C18.8872 1.16018 18.9084 1.18517 18.9281 1.21087C18.9322 1.21625 18.9359 1.22198 18.9398 1.22747C18.9501 1.24168 18.959 1.25667 18.9681 1.27141C18.9866 1.30108 19.0029 1.33154 19.017 1.36321C19.0214 1.37309 19.0267 1.38248 19.0306 1.39251C19.0461 1.43186 19.0581 1.47231 19.0668 1.5136C19.069 1.52426 19.0699 1.5351 19.0717 1.54583C19.077 1.57815 19.0794 1.61062 19.0805 1.64348C19.0808 1.65621 19.0817 1.66884 19.0814 1.68157C19.0799 1.75981 19.0681 1.83872 19.0414 1.91497L13.2074 18.581C13.1058 18.871 12.8377 19.0703 12.5306 19.0829C12.2237 19.0954 11.9398 18.9192 11.8148 18.6386L8.59706 11.4003L1.3617 8.18547C1.08085 8.06057 0.90492 7.77678 0.917368 7.46965C0.929915 7.16252 1.12827 6.89358 1.41834 6.79192L18.0853 0.958913C18.1613 0.932334 18.2398 0.919479 18.3178 0.917897C18.3305 0.91763 18.3431 0.918498 18.3558 0.918873ZM10.0609 10.999L12.4164 16.2997L16.5375 4.52239L10.0609 10.999ZM3.69862 7.58294L9.00038 9.93841L15.4808 3.45794L3.69862 7.58294Z", fill: "currentColor" }) }),
113
+ /* @__PURE__ */ jsx7("defs", { children: /* @__PURE__ */ jsx7("clipPath", { id: "send-clip", children: /* @__PURE__ */ jsx7("rect", { width: "20", height: "20", fill: "currentColor" }) }) })
114
+ ]
115
+ }
116
+ );
117
+ var SendIcon_default = SendIcon;
118
+
119
+ export {
120
+ BellIcon_default,
121
+ BellOffIcon_default,
122
+ InboxIcon_default,
123
+ MessageCircleIcon_default,
124
+ MessageSquareIcon_default,
125
+ PaperclipIcon_default,
126
+ SendIcon_default
127
+ };
@@ -0,0 +1,23 @@
1
+ import {
2
+ clsx_default
3
+ } from "./chunk-KZOJN57Q.js";
4
+
5
+ // src/components/Divider/Divider.tsx
6
+ import { jsx } from "react/jsx-runtime";
7
+ var Divider = (props) => {
8
+ const { orientation = "horizontal" } = props;
9
+ return /* @__PURE__ */ jsx(
10
+ "div",
11
+ {
12
+ className: clsx_default("lib-xplat-divider", orientation),
13
+ role: "separator",
14
+ "aria-orientation": orientation
15
+ }
16
+ );
17
+ };
18
+ Divider.displayName = "Divider";
19
+ var Divider_default = Divider;
20
+
21
+ export {
22
+ Divider_default
23
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPFGSJJRYcjs = require('./chunk-PFGSJJRY.cjs');
4
+
5
+ // src/components/Avatar/Avatar.tsx
6
+ var _jsxruntime = require('react/jsx-runtime');
7
+ var CATEGORICAL_COUNT = 8;
8
+ var getColorIndex = (name) => {
9
+ if (!name) return 1;
10
+ const code = name.charCodeAt(0) || 0;
11
+ return code % CATEGORICAL_COUNT + 1;
12
+ };
13
+ var Avatar = (props) => {
14
+ const {
15
+ src,
16
+ alt,
17
+ name,
18
+ size = "md"
19
+ } = props;
20
+ const fullInitials = name ? name.split(" ").map((s) => s[0]).join("").slice(0, 2).toUpperCase() : "";
21
+ const initials = size === "sm" ? fullInitials.slice(0, 1) : fullInitials;
22
+ const catIndex = getColorIndex(name || "");
23
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkPFGSJJRYcjs.clsx_default.call(void 0, "lib-xplat-avatar", size), children: src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src, alt: alt || name || "avatar" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkPFGSJJRYcjs.clsx_default.call(void 0, "fallback", `cat-${catIndex}`), children: initials || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }) }) }) });
24
+ };
25
+ Avatar.displayName = "Avatar";
26
+ var Avatar_default = Avatar;
27
+
28
+
29
+
30
+ exports.Avatar_default = Avatar_default;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,32 @@
1
+ import {
2
+ normalizeStatus
3
+ } from "./chunk-QEZ4R3SK.js";
4
+ import {
5
+ clsx_default
6
+ } from "./chunk-KZOJN57Q.js";
7
+
8
+ // src/components/NotificationBadge/NotificationBadge.tsx
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ var NotificationBadge = (props) => {
11
+ const {
12
+ children,
13
+ type = "error",
14
+ count,
15
+ maxCount = 99,
16
+ dot = false,
17
+ size = "md"
18
+ } = props;
19
+ const statusType = normalizeStatus(type);
20
+ const showBadge = dot || count !== void 0 && count > 0;
21
+ const displayCount = count !== void 0 && count > maxCount ? `${maxCount}+` : count;
22
+ return /* @__PURE__ */ jsxs("div", { className: clsx_default("lib-xplat-notification-badge", size), children: [
23
+ children,
24
+ showBadge && /* @__PURE__ */ jsx("span", { className: clsx_default("badge-indicator", statusType, { dot }), children: !dot && displayCount })
25
+ ] });
26
+ };
27
+ NotificationBadge.displayName = "NotificationBadge";
28
+ var NotificationBadge_default = NotificationBadge;
29
+
30
+ export {
31
+ NotificationBadge_default
32
+ };
@@ -0,0 +1,92 @@
1
+ import {
2
+ ChevronDownIcon_default
3
+ } from "./chunk-XMM52J3T.js";
4
+ import {
5
+ clsx_default
6
+ } from "./chunk-KZOJN57Q.js";
7
+
8
+ // src/components/Accordion/Accordion.tsx
9
+ import React from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ var AccordionItem = React.memo(
12
+ ({
13
+ item,
14
+ isOpen,
15
+ onToggle
16
+ }) => {
17
+ const bodyRef = React.useRef(null);
18
+ const [height, setHeight] = React.useState(0);
19
+ React.useEffect(() => {
20
+ if (bodyRef.current) {
21
+ setHeight(bodyRef.current.scrollHeight);
22
+ }
23
+ }, [isOpen, item.content]);
24
+ return /* @__PURE__ */ jsxs("div", { className: clsx_default("accordion-item", { open: isOpen }), children: [
25
+ /* @__PURE__ */ jsxs(
26
+ "button",
27
+ {
28
+ className: "accordion-header",
29
+ onClick: onToggle,
30
+ "aria-expanded": isOpen,
31
+ children: [
32
+ /* @__PURE__ */ jsx("span", { className: "title", children: item.title }),
33
+ /* @__PURE__ */ jsx("span", { className: "chevron", children: /* @__PURE__ */ jsx(ChevronDownIcon_default, {}) })
34
+ ]
35
+ }
36
+ ),
37
+ /* @__PURE__ */ jsx(
38
+ "div",
39
+ {
40
+ ref: bodyRef,
41
+ className: "accordion-body",
42
+ style: { maxHeight: isOpen ? height : 0 },
43
+ children: /* @__PURE__ */ jsx("div", { className: "accordion-content", children: item.content })
44
+ }
45
+ )
46
+ ] });
47
+ }
48
+ );
49
+ AccordionItem.displayName = "AccordionItem";
50
+ var Accordion = (props) => {
51
+ const { items } = props;
52
+ const isMultiple = props.multiple === true;
53
+ const controlledKeys = isMultiple ? props.activeKeys : props.activeKey !== void 0 ? props.activeKey !== null ? [props.activeKey] : [] : void 0;
54
+ const defaultKeys = isMultiple ? props.defaultActiveKeys ?? [] : props.defaultActiveKey ? [props.defaultActiveKey] : [];
55
+ const isControlled = controlledKeys !== void 0;
56
+ const [uncontrolledKeys, setUncontrolledKeys] = React.useState(
57
+ new Set(defaultKeys)
58
+ );
59
+ const currentKeys = isControlled ? new Set(controlledKeys) : uncontrolledKeys;
60
+ const toggle = (key) => {
61
+ const next = new Set(isMultiple ? currentKeys : []);
62
+ if (currentKeys.has(key)) {
63
+ next.delete(key);
64
+ } else {
65
+ next.add(key);
66
+ }
67
+ if (!isControlled) {
68
+ setUncontrolledKeys(next);
69
+ }
70
+ if (isMultiple) {
71
+ props.onChange?.([...next]);
72
+ } else {
73
+ const first = [...next][0] ?? null;
74
+ props.onChange?.(first);
75
+ }
76
+ };
77
+ return /* @__PURE__ */ jsx("div", { className: "lib-xplat-accordion", children: items.map((item) => /* @__PURE__ */ jsx(
78
+ AccordionItem,
79
+ {
80
+ item,
81
+ isOpen: currentKeys.has(item.key),
82
+ onToggle: () => toggle(item.key)
83
+ },
84
+ item.key
85
+ )) });
86
+ };
87
+ Accordion.displayName = "Accordion";
88
+ var Accordion_default = Accordion;
89
+
90
+ export {
91
+ Accordion_default
92
+ };