@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
@@ -1,2102 +1,22 @@
1
- // src/components/DatePicker/InputDatePicker/index.tsx
2
- import React8 from "react";
3
-
4
- // ../../node_modules/clsx/dist/clsx.mjs
5
- function r(e) {
6
- var t, f, n = "";
7
- if ("string" == typeof e || "number" == typeof e) n += e;
8
- else if ("object" == typeof e) if (Array.isArray(e)) {
9
- var o = e.length;
10
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
11
- } else for (f in e) e[f] && (n && (n += " "), n += f);
12
- return n;
13
- }
14
- function clsx() {
15
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
16
- return n;
17
- }
18
- var clsx_default = clsx;
19
-
20
- // src/components/Button/Button.tsx
21
- import { jsx } from "react/jsx-runtime";
22
- var Button = (props) => {
23
- const {
24
- children,
25
- type = "primary",
26
- size = "md",
27
- disabled,
28
- ...rest
29
- } = props;
30
- return /* @__PURE__ */ jsx(
31
- "button",
32
- {
33
- className: clsx_default("lib-xplat-button", type, size),
34
- disabled,
35
- ...rest,
36
- children
37
- }
38
- );
39
- };
40
- Button.displayName = "Button";
41
- var Button_default = Button;
42
-
43
- // src/components/Input/Input.tsx
44
- import React from "react";
45
-
46
- // src/tokens/svg/status/ErrorIcon.tsx
47
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
48
- var ErrorIcon = () => /* @__PURE__ */ jsxs(
49
- "svg",
50
- {
51
- xmlns: "http://www.w3.org/2000/svg",
52
- width: "1em",
53
- height: "1em",
54
- viewBox: "0 0 16 16",
55
- fill: "none",
56
- children: [
57
- /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_1196_9603)", children: [
58
- /* @__PURE__ */ jsx2(
59
- "path",
60
- {
61
- d: "M9.57588 5.57559C9.81019 5.34127 10.19 5.34127 10.4243 5.57559C10.6586 5.8099 10.6586 6.18971 10.4243 6.42402L8.84854 7.9998L10.4243 9.57559C10.6586 9.8099 10.6586 10.1897 10.4243 10.424C10.19 10.6583 9.81019 10.6583 9.57588 10.424L8.0001 8.84824L6.42432 10.424C6.19 10.6583 5.81019 10.6583 5.57588 10.424C5.34156 10.1897 5.34156 9.8099 5.57588 9.57559L7.15166 7.9998L5.57588 6.42402C5.34156 6.18971 5.34156 5.8099 5.57588 5.57559C5.81019 5.34127 6.19 5.34127 6.42432 5.57559L8.0001 7.15137L9.57588 5.57559Z",
62
- fill: "currentColor"
63
- }
64
- ),
65
- /* @__PURE__ */ jsx2(
66
- "path",
67
- {
68
- fillRule: "evenodd",
69
- clipRule: "evenodd",
70
- d: "M8.0001 0.733398C12.0131 0.73361 15.2671 3.98679 15.2673 7.9998C15.2672 12.0129 12.0131 15.2668 8.0001 15.267C3.98701 15.2669 0.733016 12.0129 0.73291 7.9998C0.733051 3.98674 3.98704 0.733539 8.0001 0.733398ZM8.0001 1.9334C4.64978 1.93354 1.93383 4.64948 1.93369 7.9998C1.9338 11.3502 4.64975 14.0669 8.0001 14.067C11.3504 14.0668 14.0672 11.3501 14.0673 7.9998C14.0671 4.64953 11.3504 1.93361 8.0001 1.9334Z",
71
- fill: "currentColor"
72
- }
73
- )
74
- ] }),
75
- /* @__PURE__ */ jsx2("defs", { children: /* @__PURE__ */ jsx2("clipPath", { id: "clip0_1196_9603", children: /* @__PURE__ */ jsx2("rect", { width: "16", height: "16", fill: "white" }) }) })
76
- ]
77
- }
78
- );
79
- var ErrorIcon_default = ErrorIcon;
80
-
81
- // src/tokens/svg/status/InfoIcon.tsx
82
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
83
- var InfoIcon = () => /* @__PURE__ */ jsxs2(
84
- "svg",
85
- {
86
- xmlns: "http://www.w3.org/2000/svg",
87
- width: "1em",
88
- height: "1em",
89
- viewBox: "0 0 16 16",
90
- fill: "none",
91
- children: [
92
- /* @__PURE__ */ jsxs2("g", { clipPath: "url(#clip0_1188_11261)", children: [
93
- /* @__PURE__ */ jsx3(
94
- "path",
95
- {
96
- d: "M8.00156 7.39999C8.33293 7.39999 8.60156 7.66862 8.60156 7.99999V10.6664C8.60156 10.9978 8.33293 11.2664 8.00156 11.2664C7.67019 11.2664 7.40156 10.9978 7.40156 10.6664V7.99999C7.40156 7.66862 7.67019 7.39999 8.00156 7.39999Z",
97
- fill: "currentColor"
98
- }
99
- ),
100
- /* @__PURE__ */ jsx3(
101
- "path",
102
- {
103
- d: "M8.00859 4.73358C8.3398 4.73378 8.60859 5.00233 8.60859 5.33358C8.60849 5.66474 8.33973 5.93338 8.00859 5.93358H8.00156C7.67026 5.93358 7.40167 5.66486 7.40156 5.33358C7.40156 5.00221 7.67019 4.73358 8.00156 4.73358H8.00859Z",
104
- fill: "currentColor"
105
- }
106
- ),
107
- /* @__PURE__ */ jsx3(
108
- "path",
109
- {
110
- fillRule: "evenodd",
111
- clipRule: "evenodd",
112
- d: "M8.00156 0.733582C12.0146 0.733793 15.2686 3.98697 15.2688 7.99999C15.2686 12.013 12.0146 15.267 8.00156 15.2672C3.98848 15.267 0.734481 12.0131 0.734375 7.99999C0.734516 3.98693 3.9885 0.733722 8.00156 0.733582ZM8.00156 1.93358C4.65124 1.93372 1.9353 4.64967 1.93516 7.99999C1.93526 11.3503 4.65122 14.067 8.00156 14.0672C11.3518 14.067 14.0686 11.3503 14.0688 7.99999C14.0686 4.64971 11.3518 1.93379 8.00156 1.93358Z",
113
- fill: "currentColor"
114
- }
115
- )
116
- ] }),
117
- /* @__PURE__ */ jsx3("defs", { children: /* @__PURE__ */ jsx3("clipPath", { id: "clip0_1188_11261", children: /* @__PURE__ */ jsx3("rect", { width: "16", height: "16", fill: "white" }) }) })
118
- ]
119
- }
120
- );
121
- var InfoIcon_default = InfoIcon;
122
-
123
- // src/tokens/svg/status/SuccessIcon.tsx
124
- import { jsx as jsx4 } from "react/jsx-runtime";
125
- var SuccessIcon = () => /* @__PURE__ */ jsx4(
126
- "svg",
127
- {
128
- xmlns: "http://www.w3.org/2000/svg",
129
- width: "1em",
130
- height: "1em",
131
- viewBox: "0 0 16 16",
132
- fill: "none",
133
- children: /* @__PURE__ */ jsx4(
134
- "path",
135
- {
136
- d: "M12.9084 3.57597C13.1426 3.34172 13.5225 3.34185 13.7568 3.57597C13.9911 3.81028 13.9911 4.19009 13.7568 4.4244L6.424 11.758C6.31157 11.8703 6.15869 11.9337 5.99978 11.9338C5.8409 11.9337 5.68798 11.8703 5.57556 11.758L2.24197 8.4244C2.00782 8.19018 2.00795 7.81028 2.24197 7.57597C2.47626 7.34167 2.85609 7.34172 3.09041 7.57597L5.999 10.4846L12.9084 3.57597Z",
137
- fill: "currentColor"
138
- }
139
- )
140
- }
141
- );
142
- var SuccessIcon_default = SuccessIcon;
143
-
144
- // src/components/FieldMessage/FieldMessage.tsx
145
- import { Fragment, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
146
- var ICON = {
147
- default: /* @__PURE__ */ jsx5(InfoIcon_default, {}),
148
- success: /* @__PURE__ */ jsx5(SuccessIcon_default, {}),
149
- warning: /* @__PURE__ */ jsx5(InfoIcon_default, {}),
150
- error: /* @__PURE__ */ jsx5(ErrorIcon_default, {})
151
- };
152
- var FieldMessage = (props) => {
153
- const { validations } = props;
154
- if (!validations || validations.length === 0) return null;
155
- return /* @__PURE__ */ jsx5("div", { className: "lib-xplat-field-message-wrap", children: validations.map((v, idx) => /* @__PURE__ */ jsxs3(
156
- "div",
157
- {
158
- className: clsx_default("lib-xplat-field-message", v.status),
159
- children: [
160
- /* @__PURE__ */ jsx5("div", { className: "icon", children: ICON[v.status] }),
161
- /* @__PURE__ */ jsx5("span", { children: v.message })
162
- ]
163
- },
164
- `${v.message}_${idx}`
165
- )) });
166
- };
167
- FieldMessage.displayName = "FieldMessage";
168
- var FieldMessage_default = FieldMessage;
169
- var Field = (props) => {
170
- const { label, required = false, htmlFor, labelId, validations, children } = props;
171
- const hasMessages = !!validations && validations.length > 0;
172
- if (!label && !hasMessages) return /* @__PURE__ */ jsx5(Fragment, { children });
173
- return /* @__PURE__ */ jsxs3("div", { className: "lib-xplat-field", children: [
174
- label && /* @__PURE__ */ jsxs3("label", { className: "lib-xplat-field-label", id: labelId, htmlFor, children: [
175
- label,
176
- required && /* @__PURE__ */ jsx5("span", { className: "required", "aria-hidden": "true", children: "*" })
177
- ] }),
178
- children,
179
- hasMessages && /* @__PURE__ */ jsx5(FieldMessage, { validations })
180
- ] });
181
- };
182
- Field.displayName = "Field";
183
- var hasError = (validations) => !!validations?.some((v) => v.status === "error");
184
-
185
- // src/components/Input/reg.ts
186
- var numberAndCommaReg = /^[0-9,]+$/;
187
- var phoneNumberMaxLengthReg = /^.{0,13}$/;
188
- var creditCardNumberReg = /^(\d{4}-){3}\d{4}$/;
189
- var anyReg = /^.*$/;
190
- var inputTypeReg = {
191
- number: numberAndCommaReg,
192
- tel: phoneNumberMaxLengthReg,
193
- creditCard: creditCardNumberReg,
194
- email: anyReg,
195
- password: anyReg,
196
- text: anyReg
197
- };
198
-
199
- // src/components/Input/utils/tel.ts
200
- var handleTelBackspace = (prevValue, currValue) => {
201
- if (!prevValue || !currValue) return currValue;
202
- if (prevValue.length <= currValue.length) return currValue;
203
- const prevArr = [...prevValue];
204
- const currArr = [...currValue];
205
- const diffIndex = prevArr.findIndex((char, idx) => char !== currArr[idx]);
206
- if (diffIndex >= 0 && prevArr[diffIndex] === "-") {
207
- const chars = prevValue.split("");
208
- for (let i = diffIndex - 1; i >= 0; i--) {
209
- if (/\d/.test(chars[i])) {
210
- chars.splice(i, 1);
211
- break;
212
- }
213
- }
214
- return chars.join("");
215
- }
216
- return currValue;
217
- };
218
-
219
- // src/components/Input/Input.tsx
220
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
221
- var formatValue = (type, value) => {
222
- if (value === null || value === void 0) return "";
223
- const strValue = Array.isArray(value) ? String(value[0] ?? "") : String(value);
224
- switch (type) {
225
- case "number": {
226
- if (!strValue) return "";
227
- const n = typeof value === "number" ? value : Number(strValue.replace(/,/g, ""));
228
- return isNaN(n) ? "" : n.toLocaleString("en-US");
229
- }
230
- case "tel": {
231
- const digits = strValue.replace(/\D/g, "");
232
- if (!digits) return "";
233
- if (digits.startsWith("02")) {
234
- if (digits.length <= 2) return digits;
235
- if (digits.length <= 6) return digits.replace(/^(02)(\d+)/, "$1-$2");
236
- return digits.replace(/^(02)(\d{3,4})(\d{0,4})$/, "$1-$2-$3");
237
- }
238
- if (/^01[016789]/.test(digits)) {
239
- if (digits.length <= 3) return digits;
240
- if (digits.length <= 6)
241
- return digits.replace(/^(01[016789])(\d+)/, "$1-$2");
242
- if (digits.length === 10) {
243
- return digits.replace(/^(01[016789])(\d{3})(\d{0,4})$/, "$1-$2-$3");
244
- }
245
- return digits.replace(/^(01[016789])(\d{4})(\d{0,4})$/, "$1-$2-$3");
246
- }
247
- if (digits.length <= 3) return digits;
248
- if (digits.length <= 6) return digits.replace(/^(\d{3})(\d+)/, "$1-$2");
249
- return digits.replace(/^(\d{3})(\d{3,4})(\d{0,4})$/, "$1-$2-$3");
250
- }
251
- default:
252
- return strValue;
253
- }
254
- };
255
- var parseValue = (type, value) => {
256
- switch (type) {
257
- case "number": {
258
- if (value === "") return "";
259
- const n = Number(value.replace(/,/g, ""));
260
- return isNaN(n) ? 0 : n;
261
- }
262
- case "tel":
263
- return value.replace(/\D/g, "");
264
- default:
265
- return value;
266
- }
267
- };
268
- var Input = React.forwardRef((props, ref) => {
269
- const {
270
- value,
271
- className,
272
- onChange,
273
- type = "text",
274
- size = "md",
275
- suffix,
276
- disabled,
277
- validations,
278
- label,
279
- required,
280
- ...inputProps
281
- } = props;
282
- const autoId = React.useId();
283
- const fieldId = inputProps.id ?? autoId;
284
- const localValue = formatValue(type, value);
285
- const handleChange = (e) => {
286
- let val = e.target.value;
287
- if (val !== "" && !inputTypeReg[type].test(val)) return;
288
- if (type === "tel" && localValue) {
289
- val = handleTelBackspace(localValue, val);
290
- }
291
- if (onChange) {
292
- const event = {
293
- ...e,
294
- target: { value: parseValue(type, val) }
295
- };
296
- onChange(event);
297
- }
298
- };
299
- return /* @__PURE__ */ jsx6(Field, { label, required, htmlFor: fieldId, children: /* @__PURE__ */ jsxs4("div", { className: clsx_default("lib-xplat-input-wrap", className), children: [
300
- /* @__PURE__ */ jsxs4(
301
- "div",
302
- {
303
- className: clsx_default("lib-xplat-input", size, disabled ? "disabled" : void 0),
304
- children: [
305
- /* @__PURE__ */ jsx6(
306
- "input",
307
- {
308
- ...inputProps,
309
- ref,
310
- id: fieldId,
311
- disabled,
312
- type: type === "number" ? "text" : type,
313
- value: localValue,
314
- onChange: handleChange,
315
- "aria-invalid": hasError(validations) || void 0
316
- }
317
- ),
318
- suffix && /* @__PURE__ */ jsx6("div", { className: "suffix", children: suffix })
319
- ]
320
- }
321
- ),
322
- /* @__PURE__ */ jsx6(FieldMessage_default, { validations })
323
- ] }) });
324
- });
325
- Input.displayName = "Input";
326
- var Input_default = Input;
327
-
328
- // src/components/Input/PasswordInput/PasswordInput.tsx
329
- import React2 from "react";
330
-
331
- // src/tokens/svg/form/CloseEyeIcon.tsx
332
- import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
333
- var CloseEyeIcon = () => /* @__PURE__ */ jsxs5(
334
- "svg",
335
- {
336
- xmlns: "http://www.w3.org/2000/svg",
337
- width: "1em",
338
- height: "1em",
339
- viewBox: "0 0 20 20",
340
- fill: "none",
341
- children: [
342
- /* @__PURE__ */ jsx7(
343
- "path",
344
- {
345
- fillRule: "evenodd",
346
- clipRule: "evenodd",
347
- d: "M0.219742 0.219551C0.512654 -0.0731039 0.987475 -0.0732631 1.28029 0.219551L19.6133 18.5526C19.9059 18.8454 19.9059 19.3203 19.6133 19.6131C19.3205 19.9059 18.8457 19.9058 18.5527 19.6131L14.7813 15.8416C13.3403 16.784 11.6591 17.3045 9.92873 17.3328H9.91701C6.70085 17.3328 4.22416 15.4963 2.59865 13.7625C1.77931 12.8885 1.15357 12.0171 0.732437 11.3651C0.521591 11.0386 0.360106 10.7651 0.250992 10.5711C0.196584 10.4744 0.154657 10.3968 0.125992 10.3426C0.111712 10.3156 0.100585 10.2933 0.0927887 10.2781C0.0890167 10.2708 0.0852609 10.2649 0.083023 10.2606C0.0819635 10.2585 0.0817067 10.2561 0.0810699 10.2547L0.0800933 10.2528L0.0791168 10.2518C-0.0297164 10.034 -0.0260827 9.77692 0.0888824 9.56232C1.04113 7.78778 2.31584 6.20831 3.84572 4.90607L0.219742 1.2801C-0.0731515 0.987204 -0.0731515 0.512444 0.219742 0.219551ZM4.91115 5.9715C3.58556 7.08096 2.46618 8.41669 1.60646 9.91779C1.70047 10.0817 1.82896 10.2988 1.9922 10.5516C2.37833 11.1494 2.95068 11.9449 3.69337 12.7371C5.19121 14.3347 7.2954 15.8286 9.90822 15.8319C11.2476 15.8092 12.5514 15.4346 13.6934 14.7537L11.6348 12.6951C11.4891 12.7906 11.3365 12.8759 11.1768 12.9471C10.7784 13.1246 10.3482 13.2205 9.91212 13.2283C9.47589 13.236 9.0413 13.1554 8.63673 12.992C8.23247 12.8287 7.86504 12.5854 7.55666 12.2772C7.24809 11.9686 7.00429 11.6007 6.84084 11.1961C6.6774 10.7915 6.59683 10.358 6.60451 9.9217C6.61221 9.48532 6.70813 9.05473 6.88576 8.65607C6.95708 8.49604 7.04011 8.3419 7.13576 8.19611L4.91115 5.9715ZM8.24123 9.30158C8.15522 9.50642 8.10843 9.72574 8.10451 9.94807C8.10037 10.183 8.14345 10.4167 8.23146 10.6346C8.31948 10.8524 8.45111 11.0505 8.6172 11.2166C8.78327 11.3825 8.98157 11.5135 9.19923 11.6014C9.41683 11.6892 9.65018 11.7324 9.88478 11.7283C10.1069 11.7244 10.3257 11.6765 10.5303 11.5906L8.24123 9.30158Z",
348
- fill: "currentColor"
349
- }
350
- ),
351
- /* @__PURE__ */ jsx7(
352
- "path",
353
- {
354
- d: "M9.91701 2.5008C13.1328 2.5011 15.609 4.33645 17.2344 6.07014C18.0538 6.94422 18.6805 7.81555 19.1016 8.4676C19.3125 8.79427 19.473 9.06857 19.582 9.26252C19.6366 9.35947 19.6784 9.43688 19.707 9.49103C19.7213 9.51797 19.7325 9.53938 19.7402 9.55451C19.744 9.56183 19.7478 9.5677 19.75 9.57209L19.7539 9.5799L19.7901 9.66486C19.8604 9.86248 19.8453 10.0829 19.7451 10.2703C19.2148 11.2625 18.5817 12.1966 17.8574 13.0574C17.5908 13.3743 17.1177 13.4147 16.8008 13.1483C16.4839 12.8816 16.4424 12.4085 16.709 12.0916C17.2798 11.4133 17.7876 10.6845 18.2266 9.91486C18.1327 9.75115 18.0048 9.53442 17.8418 9.28205C17.4558 8.68431 16.8833 7.88875 16.1406 7.0965C14.6413 5.49721 12.5337 4.00013 9.91701 3.99982H9.91505C9.3843 3.99858 8.85471 4.05957 8.33791 4.18049C7.93468 4.27487 7.53105 4.02408 7.43654 3.62092C7.34213 3.21761 7.5928 2.81396 7.99611 2.71955C8.62561 2.57227 9.27051 2.49939 9.91701 2.5008Z",
355
- fill: "currentColor"
356
- }
357
- )
358
- ]
359
- }
360
- );
361
- var CloseEyeIcon_default = CloseEyeIcon;
362
-
363
- // src/tokens/svg/form/OpenEyeIcon.tsx
364
- import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
365
- var OpenEyeIcon = () => /* @__PURE__ */ jsxs6(
366
- "svg",
367
- {
368
- xmlns: "http://www.w3.org/2000/svg",
369
- width: "1em",
370
- height: "1em",
371
- viewBox: "0 0 20 20",
372
- fill: "none",
373
- children: [
374
- /* @__PURE__ */ jsx8(
375
- "path",
376
- {
377
- fillRule: "evenodd",
378
- clipRule: "evenodd",
379
- d: "M10 6.75C11.795 6.75 13.25 8.20507 13.25 10C13.25 11.7949 11.795 13.25 10 13.25C8.20514 13.25 6.75004 11.7949 6.75004 10C6.75004 8.20509 8.20514 6.75002 10 6.75ZM10 8.25C9.03356 8.25002 8.25004 9.03352 8.25004 10C8.25004 10.9665 9.03356 11.75 10 11.75C10.9665 11.75 11.75 10.9665 11.75 10C11.75 9.0335 10.9665 8.25 10 8.25Z",
380
- fill: "currentColor"
381
- }
382
- ),
383
- /* @__PURE__ */ jsx8(
384
- "path",
385
- {
386
- fillRule: "evenodd",
387
- clipRule: "evenodd",
388
- d: "M10.001 2.58301C13.2168 2.5833 15.693 4.41963 17.3184 6.15332C18.1379 7.02746 18.7644 7.8987 19.1856 8.55078C19.3966 8.87754 19.5569 9.15172 19.6661 9.3457C19.7206 9.44274 19.7624 9.52003 19.7911 9.57422C19.8054 9.60124 19.8165 9.62253 19.8243 9.6377C19.8281 9.64511 19.8318 9.65085 19.834 9.65527L19.8379 9.66309L19.8731 9.74512C19.9423 9.93686 19.9301 10.1503 19.8379 10.335L19.834 10.3438C19.8318 10.3481 19.828 10.354 19.8243 10.3613C19.8165 10.3764 19.8053 10.3989 19.7911 10.4258C19.7624 10.4799 19.7204 10.5577 19.6661 10.6543C19.557 10.8482 19.3963 11.1219 19.1856 11.4482C18.7645 12.1003 18.1378 12.9716 17.3184 13.8457C15.693 15.5794 13.2169 17.4157 10.001 17.416C6.78478 17.416 4.30817 15.5796 2.68266 13.8457C1.86324 12.9716 1.23758 12.1003 0.816447 11.4482C0.605537 11.1217 0.444118 10.8483 0.335002 10.6543C0.280535 10.5575 0.23867 10.4799 0.210002 10.4258C0.195664 10.3987 0.184599 10.3765 0.176799 10.3613C0.172971 10.3539 0.169262 10.3481 0.167033 10.3438C0.165933 10.3416 0.165786 10.3393 0.16508 10.3379L0.164103 10.3359L0.163127 10.335C0.0576283 10.1238 0.0575788 9.87516 0.163127 9.66406L0.164103 9.66309L0.16508 9.66113C0.165655 9.65972 0.166042 9.65723 0.167033 9.65527C0.169295 9.6509 0.17306 9.64497 0.176799 9.6377C0.184576 9.62257 0.195818 9.60103 0.210002 9.57422C0.238658 9.52007 0.280573 9.44247 0.335002 9.3457C0.444118 9.15173 0.605537 8.87735 0.816447 8.55078C1.2376 7.89875 1.86341 7.02719 2.68266 6.15332C4.30818 4.41955 6.78494 2.58301 10.001 2.58301ZM10.001 4.08301C7.38417 4.08301 5.27685 5.58037 3.77738 7.17969C3.03465 7.97195 2.46234 8.7674 2.07621 9.36523C1.91278 9.6183 1.78352 9.83509 1.68949 9.99902C1.7836 10.1632 1.91229 10.3809 2.07621 10.6348C2.46234 11.2326 3.03462 12.028 3.77738 12.8203C5.27685 14.4196 7.38421 15.916 10.001 15.916C12.6177 15.9157 14.7253 14.4196 16.2246 12.8203C16.9674 12.028 17.5397 11.2326 17.9258 10.6348C18.0896 10.3812 18.2175 10.1631 18.3116 9.99902C18.2176 9.83513 18.0892 9.61828 17.9258 9.36523C17.5398 8.76747 16.9674 7.97197 16.2246 7.17969C14.7253 5.58039 12.6177 4.0833 10.001 4.08301Z",
389
- fill: "currentColor"
390
- }
391
- )
392
- ]
393
- }
394
- );
395
- var OpenEyeIcon_default = OpenEyeIcon;
396
-
397
- // src/components/Input/PasswordInput/PasswordInput.tsx
398
- import { jsx as jsx9 } from "react/jsx-runtime";
399
- var PasswordInput = React2.forwardRef(
400
- (props, ref) => {
401
- const { reg: _reg, ...inputProps } = props;
402
- const [isView, setIsView] = React2.useState(false);
403
- const handleChangeView = () => {
404
- setIsView((prev) => !prev);
405
- };
406
- return /* @__PURE__ */ jsx9(
407
- Input_default,
408
- {
409
- ...inputProps,
410
- suffix: /* @__PURE__ */ jsx9("div", { className: "wrapper pointer", onClick: handleChangeView, children: isView ? /* @__PURE__ */ jsx9(OpenEyeIcon_default, {}) : /* @__PURE__ */ jsx9(CloseEyeIcon_default, {}) }),
411
- type: isView ? "text" : "password",
412
- ref
413
- }
414
- );
415
- }
416
- );
417
- PasswordInput.displayName = "PasswordInput";
418
-
419
- // src/components/Modal/Modal.tsx
420
- import React5 from "react";
421
- import { createPortal } from "react-dom";
422
-
423
- // src/tokens/hooks/useOverlayKeyboard.ts
424
- import React4 from "react";
425
-
426
- // src/tokens/hooks/useAutoPosition.ts
427
- import React3 from "react";
428
-
429
- // src/tokens/hooks/useOverlayKeyboard.ts
430
- var FOCUSABLE = [
431
- "a[href]",
432
- "button:not([disabled])",
433
- "input:not([disabled]):not([type='hidden'])",
434
- "select:not([disabled])",
435
- "textarea:not([disabled])",
436
- "[tabindex]:not([tabindex='-1'])"
437
- ].join(",");
438
- var focusableIn = (el) => Array.from(el.querySelectorAll(FOCUSABLE)).filter(
439
- // 화면에 없는 것은 제외 (display:none 등)
440
- (n) => n.offsetWidth > 0 || n.offsetHeight > 0 || n === document.activeElement
441
- );
442
- var useEscapeKey = (enabled, onEscape) => {
443
- React4.useEffect(() => {
444
- if (!enabled) return;
445
- const onKey = (e) => {
446
- if (e.key !== "Escape") return;
447
- if (e.defaultPrevented) return;
448
- e.preventDefault();
449
- onEscape();
450
- };
451
- document.addEventListener("keydown", onKey);
452
- return () => document.removeEventListener("keydown", onKey);
453
- }, [enabled, onEscape]);
454
- };
455
- var useFocusTrap = (containerRef, enabled, options = {}) => {
456
- const { trap = false, initialFocus } = options;
457
- const restoreRef = React4.useRef(null);
458
- React4.useEffect(() => {
459
- if (!enabled) return;
460
- restoreRef.current = document.activeElement;
461
- const raf = requestAnimationFrame(() => {
462
- const el = containerRef.current;
463
- if (!el) return;
464
- const target = initialFocus?.current ?? focusableIn(el)[0] ?? el;
465
- if (!target.hasAttribute("tabindex") && !focusableIn(el).includes(target)) {
466
- target.setAttribute("tabindex", "-1");
467
- }
468
- target.focus({ preventScroll: true });
469
- });
470
- return () => {
471
- cancelAnimationFrame(raf);
472
- const prev = restoreRef.current;
473
- if (prev && document.contains(prev)) prev.focus({ preventScroll: true });
474
- };
475
- }, [enabled, containerRef, initialFocus]);
476
- React4.useEffect(() => {
477
- if (!enabled || !trap) return;
478
- const onKey = (e) => {
479
- if (e.key !== "Tab") return;
480
- const el = containerRef.current;
481
- if (!el) return;
482
- const items = focusableIn(el);
483
- if (items.length === 0) {
484
- e.preventDefault();
485
- return;
486
- }
487
- const first = items[0];
488
- const last = items[items.length - 1];
489
- const active = document.activeElement;
490
- if (e.shiftKey && (active === first || !el.contains(active))) {
491
- e.preventDefault();
492
- last.focus();
493
- } else if (!e.shiftKey && (active === last || !el.contains(active))) {
494
- e.preventDefault();
495
- first.focus();
496
- }
497
- };
498
- document.addEventListener("keydown", onKey);
499
- return () => document.removeEventListener("keydown", onKey);
500
- }, [enabled, trap, containerRef]);
501
- };
502
-
503
- // src/components/Modal/Modal.tsx
504
- import { jsx as jsx10 } from "react/jsx-runtime";
505
- var ANIMATION_DURATION_MS = 200;
506
- var Modal = (props) => {
507
- const { isOpen, onClose, children } = props;
508
- const [mounted, setMounted] = React5.useState(false);
509
- const [visible, setVisible] = React5.useState(false);
510
- const [settled, setSettled] = React5.useState(false);
511
- const boxRef = React5.useRef(null);
512
- useEscapeKey(isOpen, onClose);
513
- useFocusTrap(boxRef, isOpen && mounted, { trap: true });
514
- React5.useEffect(() => {
515
- if (isOpen) {
516
- setMounted(true);
517
- const show = setTimeout(() => setVisible(true), 1);
518
- const settle = setTimeout(() => setSettled(true), ANIMATION_DURATION_MS + 50);
519
- return () => {
520
- clearTimeout(show);
521
- clearTimeout(settle);
522
- };
523
- }
524
- setSettled(false);
525
- setVisible(false);
526
- const t = setTimeout(() => setMounted(false), ANIMATION_DURATION_MS);
527
- return () => clearTimeout(t);
528
- }, [isOpen]);
529
- if (typeof document === "undefined") return null;
530
- if (!mounted) return null;
531
- const stateClass = visible ? "enter" : "exit";
532
- return createPortal(
533
- /* @__PURE__ */ jsx10(
534
- "div",
535
- {
536
- className: clsx_default("lib-xplat-modal", "dim", stateClass),
537
- onClick: onClose,
538
- children: /* @__PURE__ */ jsx10(
539
- "div",
540
- {
541
- ref: boxRef,
542
- className: clsx_default("lib-xplat-modal", "modal-box", stateClass, settled && "settled"),
543
- role: "dialog",
544
- "aria-modal": "true",
545
- onClick: (e) => e.stopPropagation(),
546
- children
547
- }
548
- )
549
- }
550
- ),
551
- document.body
552
- );
553
- };
554
- Modal.displayName = "Modal";
555
- var Modal_default = Modal;
556
-
557
- // src/tokens/svg/action/CopyIcon.tsx
558
- import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
559
-
560
- // src/tokens/svg/action/CropIcon.tsx
561
- import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
562
-
563
- // src/tokens/svg/action/DeleteIcon.tsx
564
- import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
565
-
566
- // src/tokens/svg/action/DownloadCloudIcon.tsx
567
- import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
568
-
569
- // src/tokens/svg/action/DownloadIcon.tsx
570
- import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
571
-
572
- // src/tokens/svg/action/Edit2Icon.tsx
573
- import { jsx as jsx16 } from "react/jsx-runtime";
574
-
575
- // src/tokens/svg/action/Edit3Icon.tsx
576
- import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
577
-
578
- // src/tokens/svg/action/EditIcon.tsx
579
- import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
580
-
581
- // src/tokens/svg/action/ExternalLinkIcon.tsx
582
- import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
583
-
584
- // src/tokens/svg/action/FilterIcon.tsx
585
- import { jsx as jsx20 } from "react/jsx-runtime";
586
-
587
- // src/tokens/svg/action/Link2Icon.tsx
588
- import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
589
-
590
- // src/tokens/svg/action/LinkIcon.tsx
591
- import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
592
-
593
- // src/tokens/svg/action/MoveIcon.tsx
594
- import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
595
-
596
- // src/tokens/svg/action/RefreshCcwIcon.tsx
597
- import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
598
-
599
- // src/tokens/svg/action/RefreshCwIcon.tsx
600
- import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
601
-
602
- // src/tokens/svg/action/RotateCcwIcon.tsx
603
- import { jsx as jsx26 } from "react/jsx-runtime";
604
-
605
- // src/tokens/svg/action/RotateCwIcon.tsx
606
- import { jsx as jsx27 } from "react/jsx-runtime";
607
-
608
- // src/tokens/svg/action/SaveIcon.tsx
609
- import { jsx as jsx28 } from "react/jsx-runtime";
610
-
611
- // src/tokens/svg/action/ScissorsIcon.tsx
612
- import { jsx as jsx29, jsxs as jsxs20 } from "react/jsx-runtime";
613
-
614
- // src/tokens/svg/action/SearchIcon.tsx
615
- import { jsx as jsx30 } from "react/jsx-runtime";
616
-
617
- // src/tokens/svg/action/Share2Icon.tsx
618
- import { jsx as jsx31 } from "react/jsx-runtime";
619
-
620
- // src/tokens/svg/action/ShareIcon.tsx
621
- import { jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
622
-
623
- // src/tokens/svg/action/Trash2Icon.tsx
624
- import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
625
-
626
- // src/tokens/svg/action/TrashIcon.tsx
627
- import { jsx as jsx34 } from "react/jsx-runtime";
628
-
629
- // src/tokens/svg/action/UploadCloudIcon.tsx
630
- import { jsx as jsx35, jsxs as jsxs23 } from "react/jsx-runtime";
631
-
632
- // src/tokens/svg/action/UploadIcon.tsx
633
- import { jsx as jsx36, jsxs as jsxs24 } from "react/jsx-runtime";
634
-
635
- // src/tokens/svg/action/ZoomInIcon.tsx
636
- import { jsx as jsx37, jsxs as jsxs25 } from "react/jsx-runtime";
637
-
638
- // src/tokens/svg/action/ZoomOutIcon.tsx
639
- import { jsx as jsx38, jsxs as jsxs26 } from "react/jsx-runtime";
640
-
641
- // src/tokens/svg/arrow/ArrowDownCircleIcon.tsx
642
- import { jsx as jsx39, jsxs as jsxs27 } from "react/jsx-runtime";
643
-
644
- // src/tokens/svg/arrow/ArrowDownIcon.tsx
645
- import { jsx as jsx40 } from "react/jsx-runtime";
646
-
647
- // src/tokens/svg/arrow/ArrowDownLeftIcon.tsx
648
- import { jsx as jsx41 } from "react/jsx-runtime";
649
-
650
- // src/tokens/svg/arrow/ArrowDownRightIcon.tsx
651
- import { jsx as jsx42 } from "react/jsx-runtime";
652
-
653
- // src/tokens/svg/arrow/ArrowLeftCircleIcon.tsx
654
- import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
655
-
656
- // src/tokens/svg/arrow/ArrowLeftIcon.tsx
657
- import { jsx as jsx44 } from "react/jsx-runtime";
658
-
659
- // src/tokens/svg/arrow/ArrowRightCircleIcon.tsx
660
- import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
661
-
662
- // src/tokens/svg/arrow/ArrowRightIcon.tsx
663
- import { jsx as jsx46 } from "react/jsx-runtime";
664
-
665
- // src/tokens/svg/arrow/ArrowUpCircleIcon.tsx
666
- import { jsx as jsx47, jsxs as jsxs30 } from "react/jsx-runtime";
667
-
668
- // src/tokens/svg/arrow/ArrowUpIcon.tsx
669
- import { jsx as jsx48 } from "react/jsx-runtime";
670
-
671
- // src/tokens/svg/arrow/ArrowUpLeftIcon.tsx
672
- import { jsx as jsx49 } from "react/jsx-runtime";
673
-
674
- // src/tokens/svg/arrow/ArrowUpRightIcon.tsx
675
- import { jsx as jsx50 } from "react/jsx-runtime";
676
-
677
- // src/tokens/svg/arrow/ChevronDownIcon.tsx
678
- import { jsx as jsx51 } from "react/jsx-runtime";
679
-
680
- // src/tokens/svg/arrow/ChevronLeftIcon.tsx
681
- import { jsx as jsx52 } from "react/jsx-runtime";
682
- var ChevronLeftIcon = () => /* @__PURE__ */ jsx52(
683
- "svg",
684
- {
685
- xmlns: "http://www.w3.org/2000/svg",
686
- width: "1em",
687
- height: "1em",
688
- viewBox: "0 0 20 20",
689
- fill: "none",
690
- children: /* @__PURE__ */ jsx52("path", { d: "M11.9697 4.46978C12.2626 4.17689 12.7373 4.17689 13.0302 4.46978C13.3231 4.76268 13.3231 5.23746 13.0302 5.53033L8.56049 10.0001L13.0302 14.4698C13.3231 14.7627 13.3231 15.2375 13.0302 15.5303C12.7373 15.8232 12.2626 15.8232 11.9697 15.5303L6.96967 10.5303C6.67678 10.2374 6.67678 9.76268 6.96967 9.46978L11.9697 4.46978Z", fill: "currentColor" })
691
- }
692
- );
693
- var ChevronLeftIcon_default = ChevronLeftIcon;
694
-
695
- // src/tokens/svg/arrow/ChevronRightIcon.tsx
696
- import { jsx as jsx53 } from "react/jsx-runtime";
697
- var ChevronRightIcon = () => /* @__PURE__ */ jsx53(
698
- "svg",
699
- {
700
- xmlns: "http://www.w3.org/2000/svg",
701
- width: "1em",
702
- height: "1em",
703
- viewBox: "0 0 20 20",
704
- fill: "none",
705
- children: /* @__PURE__ */ jsx53("path", { d: "M6.96967 4.46978C7.26256 4.17689 7.73732 4.17689 8.03022 4.46978L13.0302 9.46978C13.3231 9.76268 13.3231 10.2375 13.0302 10.5303L8.03022 15.5303C7.73734 15.8232 7.26257 15.8232 6.96967 15.5303C6.67678 15.2374 6.67678 14.7627 6.96967 14.4698L11.4394 10.0001L6.96967 5.53033C6.67678 5.23744 6.67678 4.76268 6.96967 4.46978Z", fill: "currentColor" })
706
- }
707
- );
708
- var ChevronRightIcon_default = ChevronRightIcon;
709
-
710
- // src/tokens/svg/arrow/ChevronsDownIcon.tsx
711
- import { jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
712
-
713
- // src/tokens/svg/arrow/ChevronsLeftIcon.tsx
714
- import { jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
715
-
716
- // src/tokens/svg/arrow/ChevronsRightIcon.tsx
717
- import { jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
718
-
719
- // src/tokens/svg/arrow/ChevronsUpIcon.tsx
720
- import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
721
-
722
- // src/tokens/svg/arrow/ChevronUpIcon.tsx
723
- import { jsx as jsx58 } from "react/jsx-runtime";
724
-
725
- // src/tokens/svg/arrow/CompassIcon.tsx
726
- import { jsx as jsx59, jsxs as jsxs35 } from "react/jsx-runtime";
727
-
728
- // src/tokens/svg/arrow/CornerDownLeftIcon.tsx
729
- import { jsx as jsx60 } from "react/jsx-runtime";
730
-
731
- // src/tokens/svg/arrow/CornerDownRightIcon.tsx
732
- import { jsx as jsx61 } from "react/jsx-runtime";
733
-
734
- // src/tokens/svg/arrow/CornerLeftDownIcon.tsx
735
- import { jsx as jsx62 } from "react/jsx-runtime";
736
-
737
- // src/tokens/svg/arrow/CornerLeftUpIcon.tsx
738
- import { jsx as jsx63 } from "react/jsx-runtime";
739
-
740
- // src/tokens/svg/arrow/CornerRightDownIcon.tsx
741
- import { jsx as jsx64 } from "react/jsx-runtime";
742
-
743
- // src/tokens/svg/arrow/CornerRightUpIcon.tsx
744
- import { jsx as jsx65 } from "react/jsx-runtime";
745
-
746
- // src/tokens/svg/arrow/CornerUpLeftIcon.tsx
747
- import { jsx as jsx66 } from "react/jsx-runtime";
748
-
749
- // src/tokens/svg/arrow/CornerUpRightIcon.tsx
750
- import { jsx as jsx67 } from "react/jsx-runtime";
751
-
752
- // src/tokens/svg/arrow/MapIcon.tsx
753
- import { jsx as jsx68, jsxs as jsxs36 } from "react/jsx-runtime";
754
-
755
- // src/tokens/svg/arrow/MapPinIcon.tsx
756
- import { jsx as jsx69, jsxs as jsxs37 } from "react/jsx-runtime";
757
-
758
- // src/tokens/svg/arrow/Navigation2Icon.tsx
759
- import { jsx as jsx70 } from "react/jsx-runtime";
760
-
761
- // src/tokens/svg/arrow/NavigationIcon.tsx
762
- import { jsx as jsx71 } from "react/jsx-runtime";
763
-
764
- // src/tokens/svg/call/CallActiveIcon.tsx
765
- import { jsx as jsx72, jsxs as jsxs38 } from "react/jsx-runtime";
766
-
767
- // src/tokens/svg/call/CallForwardedIcon.tsx
768
- import { jsx as jsx73, jsxs as jsxs39 } from "react/jsx-runtime";
769
-
770
- // src/tokens/svg/call/CallIcon.tsx
771
- import { jsx as jsx74 } from "react/jsx-runtime";
772
-
773
- // src/tokens/svg/call/CallIncomingIcon.tsx
774
- import { jsx as jsx75, jsxs as jsxs40 } from "react/jsx-runtime";
775
-
776
- // src/tokens/svg/call/CallMissedIcon.tsx
777
- import { jsx as jsx76, jsxs as jsxs41 } from "react/jsx-runtime";
778
-
779
- // src/tokens/svg/call/CallOffIcon.tsx
780
- import { jsx as jsx77, jsxs as jsxs42 } from "react/jsx-runtime";
781
-
782
- // src/tokens/svg/call/CallOutgoingIcon.tsx
783
- import { jsx as jsx78, jsxs as jsxs43 } from "react/jsx-runtime";
784
-
785
- // src/tokens/svg/call/VoicemailIcon.tsx
786
- import { jsx as jsx79 } from "react/jsx-runtime";
787
-
788
- // src/tokens/svg/chart/BarChart2Icon.tsx
789
- import { jsx as jsx80, jsxs as jsxs44 } from "react/jsx-runtime";
790
-
791
- // src/tokens/svg/chart/BarChartIcon.tsx
792
- import { jsx as jsx81, jsxs as jsxs45 } from "react/jsx-runtime";
793
-
794
- // src/tokens/svg/chart/PieChartIcon.tsx
795
- import { jsx as jsx82, jsxs as jsxs46 } from "react/jsx-runtime";
796
-
797
- // src/tokens/svg/chart/TableIcon.tsx
798
- import { jsx as jsx83 } from "react/jsx-runtime";
799
-
800
- // src/tokens/svg/chart/TrendingDownIcon.tsx
801
- import { jsx as jsx84 } from "react/jsx-runtime";
802
-
803
- // src/tokens/svg/chart/TrendingUpIcon.tsx
804
- import { jsx as jsx85 } from "react/jsx-runtime";
805
-
806
- // src/tokens/svg/commerce/CreditCardIcon.tsx
807
- import { jsx as jsx86 } from "react/jsx-runtime";
808
-
809
- // src/tokens/svg/commerce/DollarSignIcon.tsx
810
- import { jsx as jsx87 } from "react/jsx-runtime";
811
-
812
- // src/tokens/svg/commerce/GiftIcon.tsx
813
- import { jsx as jsx88, jsxs as jsxs47 } from "react/jsx-runtime";
814
-
815
- // src/tokens/svg/commerce/ShoppingBagIcon.tsx
816
- import { jsx as jsx89, jsxs as jsxs48 } from "react/jsx-runtime";
817
-
818
- // src/tokens/svg/commerce/ShoppingCartIcon.tsx
819
- import { jsx as jsx90, jsxs as jsxs49 } from "react/jsx-runtime";
820
-
821
- // src/tokens/svg/commerce/TagIcon.tsx
822
- import { jsx as jsx91, jsxs as jsxs50 } from "react/jsx-runtime";
823
-
824
- // src/tokens/svg/commerce/TruckIcon.tsx
825
- import { jsx as jsx92 } from "react/jsx-runtime";
826
-
827
- // src/tokens/svg/communication/BellIcon.tsx
828
- import { jsx as jsx93, jsxs as jsxs51 } from "react/jsx-runtime";
829
-
830
- // src/tokens/svg/communication/BellOffIcon.tsx
831
- import { jsx as jsx94, jsxs as jsxs52 } from "react/jsx-runtime";
832
-
833
- // src/tokens/svg/communication/InboxIcon.tsx
834
- import { jsx as jsx95 } from "react/jsx-runtime";
835
-
836
- // src/tokens/svg/communication/MessageCircleIcon.tsx
837
- import { jsx as jsx96 } from "react/jsx-runtime";
838
-
839
- // src/tokens/svg/communication/MessageSquareIcon.tsx
840
- import { jsx as jsx97 } from "react/jsx-runtime";
841
-
842
- // src/tokens/svg/communication/PaperclipIcon.tsx
843
- import { jsx as jsx98 } from "react/jsx-runtime";
844
-
845
- // src/tokens/svg/communication/SendIcon.tsx
846
- import { jsx as jsx99, jsxs as jsxs53 } from "react/jsx-runtime";
847
-
848
- // src/tokens/svg/date/CalendarIcon.tsx
849
- import { jsx as jsx100 } from "react/jsx-runtime";
850
-
851
- // src/tokens/svg/date/CalenderIcon.tsx
852
- import { jsx as jsx101 } from "react/jsx-runtime";
853
- var CalenderIcon = () => /* @__PURE__ */ jsx101(
854
- "svg",
855
- {
856
- xmlns: "http://www.w3.org/2000/svg",
857
- width: "1em",
858
- height: "1em",
859
- viewBox: "0 0 16 16",
860
- fill: "none",
861
- children: /* @__PURE__ */ jsx101(
862
- "path",
863
- {
864
- fillRule: "evenodd",
865
- clipRule: "evenodd",
866
- d: "M10.6671 0.733398C10.9983 0.73361 11.2671 1.00216 11.2671 1.3334V2.06621H12.6663C13.734 2.06621 14.5998 2.93214 14.5999 3.9998V13.3326C14.5999 14.4004 13.7341 15.2662 12.6663 15.2662H3.3335C2.26575 15.2662 1.3999 14.4004 1.3999 13.3326V3.9998C1.40001 2.93214 2.26581 2.06621 3.3335 2.06621H4.7335V1.3334C4.7335 1.00203 5.00213 0.733398 5.3335 0.733398C5.66469 0.73361 5.9335 1.00216 5.9335 1.3334V2.06621H10.0671V1.3334C10.0671 1.00203 10.3357 0.733398 10.6671 0.733398ZM2.5999 7.26621V13.3326C2.5999 13.7376 2.92849 14.0662 3.3335 14.0662H12.6663C13.0713 14.0662 13.3999 13.7376 13.3999 13.3326V7.26621H2.5999ZM3.3335 3.26621C2.92855 3.26621 2.60001 3.59489 2.5999 3.9998V6.06621H13.3999V3.9998C13.3998 3.59489 13.0713 3.26621 12.6663 3.26621H11.2671V3.9998C11.267 4.33096 10.9982 4.59959 10.6671 4.5998C10.3358 4.5998 10.0672 4.33109 10.0671 3.9998V3.26621H5.9335V3.9998C5.93339 4.33096 5.66462 4.59959 5.3335 4.5998C5.00219 4.5998 4.7336 4.33109 4.7335 3.9998V3.26621H3.3335Z",
867
- fill: "currentColor"
868
- }
869
- )
870
- }
871
- );
872
- var CalenderIcon_default = CalenderIcon;
873
-
874
- // src/tokens/svg/date/ClockIcon.tsx
875
- import { jsx as jsx102, jsxs as jsxs54 } from "react/jsx-runtime";
876
-
877
- // src/tokens/svg/date/SunriseIcon.tsx
878
- import { jsx as jsx103, jsxs as jsxs55 } from "react/jsx-runtime";
879
-
880
- // src/tokens/svg/date/SunsetIcon.tsx
881
- import { jsx as jsx104, jsxs as jsxs56 } from "react/jsx-runtime";
882
-
883
- // src/tokens/svg/dev/CodeIcon.tsx
884
- import { jsx as jsx105, jsxs as jsxs57 } from "react/jsx-runtime";
885
-
886
- // src/tokens/svg/dev/GitBranchIcon.tsx
887
- import { jsx as jsx106 } from "react/jsx-runtime";
888
-
889
- // src/tokens/svg/dev/GitCommitIcon.tsx
890
- import { jsx as jsx107 } from "react/jsx-runtime";
891
-
892
- // src/tokens/svg/dev/GitMergeIcon.tsx
893
- import { jsx as jsx108 } from "react/jsx-runtime";
894
-
895
- // src/tokens/svg/dev/GitPullRequestIcon.tsx
896
- import { jsx as jsx109, jsxs as jsxs58 } from "react/jsx-runtime";
897
-
898
- // src/tokens/svg/dev/TerminalIcon.tsx
899
- import { jsx as jsx110, jsxs as jsxs59 } from "react/jsx-runtime";
900
-
901
- // src/tokens/svg/device/BatteryChargingIcon.tsx
902
- import { jsx as jsx111, jsxs as jsxs60 } from "react/jsx-runtime";
903
-
904
- // src/tokens/svg/device/BatteryIcon.tsx
905
- import { jsx as jsx112, jsxs as jsxs61 } from "react/jsx-runtime";
906
-
907
- // src/tokens/svg/device/BluetoothIcon.tsx
908
- import { jsx as jsx113 } from "react/jsx-runtime";
909
-
910
- // src/tokens/svg/device/CommandIcon.tsx
911
- import { jsx as jsx114 } from "react/jsx-runtime";
912
-
913
- // src/tokens/svg/device/CpuIcon.tsx
914
- import { jsx as jsx115, jsxs as jsxs62 } from "react/jsx-runtime";
915
-
916
- // src/tokens/svg/device/DatabaseIcon.tsx
917
- import { jsx as jsx116 } from "react/jsx-runtime";
918
-
919
- // src/tokens/svg/device/HardDriveIcon.tsx
920
- import { jsx as jsx117, jsxs as jsxs63 } from "react/jsx-runtime";
921
-
922
- // src/tokens/svg/device/MonitorIcon.tsx
923
- import { jsx as jsx118 } from "react/jsx-runtime";
924
-
925
- // src/tokens/svg/device/PrinterIcon.tsx
926
- import { jsx as jsx119, jsxs as jsxs64 } from "react/jsx-runtime";
927
-
928
- // src/tokens/svg/device/ServerIcon.tsx
929
- import { jsx as jsx120, jsxs as jsxs65 } from "react/jsx-runtime";
930
-
931
- // src/tokens/svg/device/SmartphoneIcon.tsx
932
- import { jsx as jsx121, jsxs as jsxs66 } from "react/jsx-runtime";
933
-
934
- // src/tokens/svg/device/TabletIcon.tsx
935
- import { jsx as jsx122, jsxs as jsxs67 } from "react/jsx-runtime";
936
-
937
- // src/tokens/svg/device/TvIcon.tsx
938
- import { jsx as jsx123, jsxs as jsxs68 } from "react/jsx-runtime";
939
-
940
- // src/tokens/svg/device/WatchIcon.tsx
941
- import { jsx as jsx124, jsxs as jsxs69 } from "react/jsx-runtime";
942
-
943
- // src/tokens/svg/device/WifiIcon.tsx
944
- import { jsx as jsx125, jsxs as jsxs70 } from "react/jsx-runtime";
945
-
946
- // src/tokens/svg/device/WifiOffIcon.tsx
947
- import { jsx as jsx126, jsxs as jsxs71 } from "react/jsx-runtime";
948
-
949
- // src/tokens/svg/edit/AlignCenterIcon.tsx
950
- import { jsx as jsx127, jsxs as jsxs72 } from "react/jsx-runtime";
951
-
952
- // src/tokens/svg/edit/AlignJustifyIcon.tsx
953
- import { jsx as jsx128, jsxs as jsxs73 } from "react/jsx-runtime";
954
-
955
- // src/tokens/svg/edit/AlignLeftIcon.tsx
956
- import { jsx as jsx129, jsxs as jsxs74 } from "react/jsx-runtime";
957
-
958
- // src/tokens/svg/edit/AlignRightIcon.tsx
959
- import { jsx as jsx130, jsxs as jsxs75 } from "react/jsx-runtime";
960
-
961
- // src/tokens/svg/edit/BoldIcon.tsx
962
- import { jsx as jsx131 } from "react/jsx-runtime";
963
-
964
- // src/tokens/svg/edit/ItalicIcon.tsx
965
- import { jsx as jsx132 } from "react/jsx-runtime";
966
-
967
- // src/tokens/svg/edit/PenToolIcon.tsx
968
- import { jsx as jsx133, jsxs as jsxs76 } from "react/jsx-runtime";
969
-
970
- // src/tokens/svg/edit/TypeIcon.tsx
971
- import { jsx as jsx134 } from "react/jsx-runtime";
972
-
973
- // src/tokens/svg/edit/UnderlineIcon.tsx
974
- import { jsx as jsx135, jsxs as jsxs77 } from "react/jsx-runtime";
975
-
976
- // src/tokens/svg/file/ArchiveIcon.tsx
977
- import { jsx as jsx136, jsxs as jsxs78 } from "react/jsx-runtime";
978
-
979
- // src/tokens/svg/file/BookIcon.tsx
980
- import { jsx as jsx137 } from "react/jsx-runtime";
981
-
982
- // src/tokens/svg/file/BookmarkIcon.tsx
983
- import { jsx as jsx138 } from "react/jsx-runtime";
984
-
985
- // src/tokens/svg/file/BookOpenIcon.tsx
986
- import { jsx as jsx139 } from "react/jsx-runtime";
987
-
988
- // src/tokens/svg/file/ClipboardIcon.tsx
989
- import { jsx as jsx140 } from "react/jsx-runtime";
990
-
991
- // src/tokens/svg/file/FileIcon.tsx
992
- import { jsx as jsx141 } from "react/jsx-runtime";
993
-
994
- // src/tokens/svg/file/FileMinusIcon.tsx
995
- import { jsx as jsx142, jsxs as jsxs79 } from "react/jsx-runtime";
996
-
997
- // src/tokens/svg/file/FilePlusIcon.tsx
998
- import { jsx as jsx143, jsxs as jsxs80 } from "react/jsx-runtime";
999
-
1000
- // src/tokens/svg/file/FileTextIcon.tsx
1001
- import { jsx as jsx144, jsxs as jsxs81 } from "react/jsx-runtime";
1002
-
1003
- // src/tokens/svg/file/FolderIcon.tsx
1004
- import { jsx as jsx145 } from "react/jsx-runtime";
1005
-
1006
- // src/tokens/svg/file/FolderMinusIcon.tsx
1007
- import { jsx as jsx146, jsxs as jsxs82 } from "react/jsx-runtime";
1008
-
1009
- // src/tokens/svg/file/FolderPlusIcon.tsx
1010
- import { jsx as jsx147, jsxs as jsxs83 } from "react/jsx-runtime";
1011
-
1012
- // src/tokens/svg/file/PackageIcon.tsx
1013
- import { jsx as jsx148 } from "react/jsx-runtime";
1014
-
1015
- // src/tokens/svg/form/CheckSquareIcon.tsx
1016
- import { jsx as jsx149, jsxs as jsxs84 } from "react/jsx-runtime";
1017
-
1018
- // src/tokens/svg/form/EyeIcon.tsx
1019
- import { jsx as jsx150, jsxs as jsxs85 } from "react/jsx-runtime";
1020
-
1021
- // src/tokens/svg/form/EyeOffIcon.tsx
1022
- import { jsx as jsx151, jsxs as jsxs86 } from "react/jsx-runtime";
1023
-
1024
- // src/tokens/svg/form/SettingsIcon.tsx
1025
- import { jsx as jsx152, jsxs as jsxs87 } from "react/jsx-runtime";
1026
-
1027
- // src/tokens/svg/form/SlidersIcon.tsx
1028
- import { jsx as jsx153, jsxs as jsxs88 } from "react/jsx-runtime";
1029
-
1030
- // src/tokens/svg/form/ToggleLeftIcon.tsx
1031
- import { jsx as jsx154, jsxs as jsxs89 } from "react/jsx-runtime";
1032
-
1033
- // src/tokens/svg/form/ToggleRightIcon.tsx
1034
- import { jsx as jsx155, jsxs as jsxs90 } from "react/jsx-runtime";
1035
-
1036
- // src/tokens/svg/layout/ColumnsIcon.tsx
1037
- import { jsx as jsx156 } from "react/jsx-runtime";
1038
-
1039
- // src/tokens/svg/layout/GridIcon.tsx
1040
- import { jsx as jsx157, jsxs as jsxs91 } from "react/jsx-runtime";
1041
-
1042
- // src/tokens/svg/layout/LayoutIcon.tsx
1043
- import { jsx as jsx158 } from "react/jsx-runtime";
1044
-
1045
- // src/tokens/svg/layout/ListIcon.tsx
1046
- import { jsx as jsx159, jsxs as jsxs92 } from "react/jsx-runtime";
1047
-
1048
- // src/tokens/svg/layout/Maximize2Icon.tsx
1049
- import { jsx as jsx160, jsxs as jsxs93 } from "react/jsx-runtime";
1050
-
1051
- // src/tokens/svg/layout/MaximizeIcon.tsx
1052
- import { jsx as jsx161, jsxs as jsxs94 } from "react/jsx-runtime";
1053
-
1054
- // src/tokens/svg/layout/MenuIcon.tsx
1055
- import { jsx as jsx162, jsxs as jsxs95 } from "react/jsx-runtime";
1056
-
1057
- // src/tokens/svg/layout/Minimize2Icon.tsx
1058
- import { jsx as jsx163, jsxs as jsxs96 } from "react/jsx-runtime";
1059
-
1060
- // src/tokens/svg/layout/MinimizeIcon.tsx
1061
- import { jsx as jsx164, jsxs as jsxs97 } from "react/jsx-runtime";
1062
-
1063
- // src/tokens/svg/layout/MoreHorizontalIcon.tsx
1064
- import { jsx as jsx165, jsxs as jsxs98 } from "react/jsx-runtime";
1065
-
1066
- // src/tokens/svg/layout/MoreVerticalIcon.tsx
1067
- import { jsx as jsx166, jsxs as jsxs99 } from "react/jsx-runtime";
1068
-
1069
- // src/tokens/svg/layout/SidebarIcon.tsx
1070
- import { jsx as jsx167 } from "react/jsx-runtime";
1071
-
1072
- // src/tokens/svg/media/AirplayIcon.tsx
1073
- import { jsx as jsx168, jsxs as jsxs100 } from "react/jsx-runtime";
1074
-
1075
- // src/tokens/svg/media/CameraIcon.tsx
1076
- import { jsx as jsx169, jsxs as jsxs101 } from "react/jsx-runtime";
1077
-
1078
- // src/tokens/svg/media/CameraOffIcon.tsx
1079
- import { jsx as jsx170, jsxs as jsxs102 } from "react/jsx-runtime";
1080
-
1081
- // src/tokens/svg/media/CastIcon.tsx
1082
- import { jsx as jsx171, jsxs as jsxs103 } from "react/jsx-runtime";
1083
-
1084
- // src/tokens/svg/media/DiscIcon.tsx
1085
- import { jsx as jsx172, jsxs as jsxs104 } from "react/jsx-runtime";
1086
-
1087
- // src/tokens/svg/media/FastForwardIcon.tsx
1088
- import { jsx as jsx173, jsxs as jsxs105 } from "react/jsx-runtime";
1089
-
1090
- // src/tokens/svg/media/FilmIcon.tsx
1091
- import { jsx as jsx174, jsxs as jsxs106 } from "react/jsx-runtime";
1092
-
1093
- // src/tokens/svg/media/HeadphonesIcon.tsx
1094
- import { jsx as jsx175 } from "react/jsx-runtime";
1095
-
1096
- // src/tokens/svg/media/ImageIcon.tsx
1097
- import { jsx as jsx176, jsxs as jsxs107 } from "react/jsx-runtime";
1098
-
1099
- // src/tokens/svg/media/MicIcon.tsx
1100
- import { jsx as jsx177, jsxs as jsxs108 } from "react/jsx-runtime";
1101
-
1102
- // src/tokens/svg/media/MicOffIcon.tsx
1103
- import { jsx as jsx178, jsxs as jsxs109 } from "react/jsx-runtime";
1104
-
1105
- // src/tokens/svg/media/MusicIcon.tsx
1106
- import { jsx as jsx179 } from "react/jsx-runtime";
1107
-
1108
- // src/tokens/svg/media/PauseCircleIcon.tsx
1109
- import { jsx as jsx180, jsxs as jsxs110 } from "react/jsx-runtime";
1110
-
1111
- // src/tokens/svg/media/PauseIcon.tsx
1112
- import { jsx as jsx181, jsxs as jsxs111 } from "react/jsx-runtime";
1113
-
1114
- // src/tokens/svg/media/PlayCircleIcon.tsx
1115
- import { jsx as jsx182, jsxs as jsxs112 } from "react/jsx-runtime";
1116
-
1117
- // src/tokens/svg/media/PlayIcon.tsx
1118
- import { jsx as jsx183 } from "react/jsx-runtime";
1119
-
1120
- // src/tokens/svg/media/RepeatIcon.tsx
1121
- import { jsx as jsx184, jsxs as jsxs113 } from "react/jsx-runtime";
1122
-
1123
- // src/tokens/svg/media/RewindIcon.tsx
1124
- import { jsx as jsx185, jsxs as jsxs114 } from "react/jsx-runtime";
1125
-
1126
- // src/tokens/svg/media/SkipBackIcon.tsx
1127
- import { jsx as jsx186, jsxs as jsxs115 } from "react/jsx-runtime";
1128
-
1129
- // src/tokens/svg/media/SkipForwardIcon.tsx
1130
- import { jsx as jsx187, jsxs as jsxs116 } from "react/jsx-runtime";
1131
-
1132
- // src/tokens/svg/media/SpeakerIcon.tsx
1133
- import { jsx as jsx188, jsxs as jsxs117 } from "react/jsx-runtime";
1134
-
1135
- // src/tokens/svg/media/StopCircleIcon.tsx
1136
- import { jsx as jsx189, jsxs as jsxs118 } from "react/jsx-runtime";
1137
-
1138
- // src/tokens/svg/media/VideoIcon.tsx
1139
- import { jsx as jsx190 } from "react/jsx-runtime";
1140
-
1141
- // src/tokens/svg/media/VideoOffIcon.tsx
1142
- import { jsx as jsx191, jsxs as jsxs119 } from "react/jsx-runtime";
1143
-
1144
- // src/tokens/svg/media/Volume1Icon.tsx
1145
- import { jsx as jsx192, jsxs as jsxs120 } from "react/jsx-runtime";
1146
-
1147
- // src/tokens/svg/media/Volume2Icon.tsx
1148
- import { jsx as jsx193, jsxs as jsxs121 } from "react/jsx-runtime";
1149
-
1150
- // src/tokens/svg/media/VolumeIcon.tsx
1151
- import { jsx as jsx194 } from "react/jsx-runtime";
1152
-
1153
- // src/tokens/svg/media/VolumeXIcon.tsx
1154
- import { jsx as jsx195, jsxs as jsxs122 } from "react/jsx-runtime";
1155
-
1156
- // src/tokens/svg/misc/AnchorIcon.tsx
1157
- import { jsx as jsx196, jsxs as jsxs123 } from "react/jsx-runtime";
1158
-
1159
- // src/tokens/svg/misc/ApertureIcon.tsx
1160
- import { jsx as jsx197, jsxs as jsxs124 } from "react/jsx-runtime";
1161
-
1162
- // src/tokens/svg/misc/AwardIcon.tsx
1163
- import { jsx as jsx198 } from "react/jsx-runtime";
1164
-
1165
- // src/tokens/svg/misc/BoxIcon.tsx
1166
- import { jsx as jsx199 } from "react/jsx-runtime";
1167
-
1168
- // src/tokens/svg/misc/BriefcaseIcon.tsx
1169
- import { jsx as jsx200 } from "react/jsx-runtime";
1170
-
1171
- // src/tokens/svg/misc/CoffeeIcon.tsx
1172
- import { jsx as jsx201, jsxs as jsxs125 } from "react/jsx-runtime";
1173
-
1174
- // src/tokens/svg/misc/CrosshairIcon.tsx
1175
- import { jsx as jsx202, jsxs as jsxs126 } from "react/jsx-runtime";
1176
-
1177
- // src/tokens/svg/misc/FeatherIcon.tsx
1178
- import { jsx as jsx203, jsxs as jsxs127 } from "react/jsx-runtime";
1179
-
1180
- // src/tokens/svg/misc/FlagIcon.tsx
1181
- import { jsx as jsx204 } from "react/jsx-runtime";
1182
-
1183
- // src/tokens/svg/misc/FrownIcon.tsx
1184
- import { jsx as jsx205, jsxs as jsxs128 } from "react/jsx-runtime";
1185
-
1186
- // src/tokens/svg/misc/GlobeIcon.tsx
1187
- import { jsx as jsx206, jsxs as jsxs129 } from "react/jsx-runtime";
1188
-
1189
- // src/tokens/svg/misc/HeartIcon.tsx
1190
- import { jsx as jsx207 } from "react/jsx-runtime";
1191
-
1192
- // src/tokens/svg/misc/HomeIcon.tsx
1193
- import { jsx as jsx208 } from "react/jsx-runtime";
1194
-
1195
- // src/tokens/svg/misc/LayersIcon.tsx
1196
- import { jsx as jsx209, jsxs as jsxs130 } from "react/jsx-runtime";
1197
-
1198
- // src/tokens/svg/misc/LifeBuoyIcon.tsx
1199
- import { jsx as jsx210, jsxs as jsxs131 } from "react/jsx-runtime";
1200
-
1201
- // src/tokens/svg/misc/MehIcon.tsx
1202
- import { jsx as jsx211, jsxs as jsxs132 } from "react/jsx-runtime";
1203
-
1204
- // src/tokens/svg/misc/MousePointerIcon.tsx
1205
- import { jsx as jsx212 } from "react/jsx-runtime";
1206
-
1207
- // src/tokens/svg/misc/PocketIcon.tsx
1208
- import { jsx as jsx213, jsxs as jsxs133 } from "react/jsx-runtime";
1209
-
1210
- // src/tokens/svg/misc/PowerIcon.tsx
1211
- import { jsx as jsx214, jsxs as jsxs134 } from "react/jsx-runtime";
1212
-
1213
- // src/tokens/svg/misc/RadioIcon.tsx
1214
- import { jsx as jsx215, jsxs as jsxs135 } from "react/jsx-runtime";
1215
-
1216
- // src/tokens/svg/misc/ShieldIcon.tsx
1217
- import { jsx as jsx216 } from "react/jsx-runtime";
1218
-
1219
- // src/tokens/svg/misc/ShieldOffIcon.tsx
1220
- import { jsx as jsx217, jsxs as jsxs136 } from "react/jsx-runtime";
1221
-
1222
- // src/tokens/svg/misc/ShuffleIcon.tsx
1223
- import { jsx as jsx218, jsxs as jsxs137 } from "react/jsx-runtime";
1224
-
1225
- // src/tokens/svg/misc/SmileIcon.tsx
1226
- import { jsx as jsx219, jsxs as jsxs138 } from "react/jsx-runtime";
1227
-
1228
- // src/tokens/svg/misc/StarIcon.tsx
1229
- import { jsx as jsx220 } from "react/jsx-runtime";
1230
-
1231
- // src/tokens/svg/misc/TargetIcon.tsx
1232
- import { jsx as jsx221, jsxs as jsxs139 } from "react/jsx-runtime";
1233
-
1234
- // src/tokens/svg/misc/ThumbsDownIcon.tsx
1235
- import { jsx as jsx222 } from "react/jsx-runtime";
1236
-
1237
- // src/tokens/svg/misc/ThumbsUpIcon.tsx
1238
- import { jsx as jsx223 } from "react/jsx-runtime";
1239
-
1240
- // src/tokens/svg/misc/ToolIcon.tsx
1241
- import { jsx as jsx224 } from "react/jsx-runtime";
1242
-
1243
- // src/tokens/svg/misc/ZapIcon.tsx
1244
- import { jsx as jsx225 } from "react/jsx-runtime";
1245
-
1246
- // src/tokens/svg/misc/ZapOffIcon.tsx
1247
- import { jsx as jsx226, jsxs as jsxs140 } from "react/jsx-runtime";
1248
-
1249
- // src/tokens/svg/shape/AtSignIcon.tsx
1250
- import { jsx as jsx227, jsxs as jsxs141 } from "react/jsx-runtime";
1251
-
1252
- // src/tokens/svg/shape/CircleIcon.tsx
1253
- import { jsx as jsx228, jsxs as jsxs142 } from "react/jsx-runtime";
1254
-
1255
- // src/tokens/svg/shape/DivideCircleIcon.tsx
1256
- import { jsx as jsx229, jsxs as jsxs143 } from "react/jsx-runtime";
1257
-
1258
- // src/tokens/svg/shape/DivideIcon.tsx
1259
- import { jsx as jsx230, jsxs as jsxs144 } from "react/jsx-runtime";
1260
-
1261
- // src/tokens/svg/shape/DivideSquareIcon.tsx
1262
- import { jsx as jsx231, jsxs as jsxs145 } from "react/jsx-runtime";
1263
-
1264
- // src/tokens/svg/shape/HashIcon.tsx
1265
- import { jsx as jsx232 } from "react/jsx-runtime";
1266
-
1267
- // src/tokens/svg/shape/HexagonIcon.tsx
1268
- import { jsx as jsx233 } from "react/jsx-runtime";
1269
-
1270
- // src/tokens/svg/shape/OctagonIcon.tsx
1271
- import { jsx as jsx234, jsxs as jsxs146 } from "react/jsx-runtime";
1272
-
1273
- // src/tokens/svg/shape/PercentIcon.tsx
1274
- import { jsx as jsx235, jsxs as jsxs147 } from "react/jsx-runtime";
1275
-
1276
- // src/tokens/svg/shape/SlashIcon.tsx
1277
- import { jsx as jsx236, jsxs as jsxs148 } from "react/jsx-runtime";
1278
-
1279
- // src/tokens/svg/shape/SquareIcon.tsx
1280
- import { jsx as jsx237 } from "react/jsx-runtime";
1281
-
1282
- // src/tokens/svg/shape/TriangleIcon.tsx
1283
- import { jsx as jsx238 } from "react/jsx-runtime";
1284
-
1285
- // src/tokens/svg/social/ChromeIcon.tsx
1286
- import { jsx as jsx239, jsxs as jsxs149 } from "react/jsx-runtime";
1287
-
1288
- // src/tokens/svg/social/CodepenIcon.tsx
1289
- import { jsx as jsx240, jsxs as jsxs150 } from "react/jsx-runtime";
1290
-
1291
- // src/tokens/svg/social/CodesandboxIcon.tsx
1292
- import { jsx as jsx241 } from "react/jsx-runtime";
1293
-
1294
- // src/tokens/svg/social/DribbbleIcon.tsx
1295
- import { jsx as jsx242, jsxs as jsxs151 } from "react/jsx-runtime";
1296
-
1297
- // src/tokens/svg/social/FacebookIcon.tsx
1298
- import { jsx as jsx243 } from "react/jsx-runtime";
1299
-
1300
- // src/tokens/svg/social/FigmaIcon.tsx
1301
- import { jsx as jsx244 } from "react/jsx-runtime";
1302
-
1303
- // src/tokens/svg/social/FramerIcon.tsx
1304
- import { jsx as jsx245 } from "react/jsx-runtime";
1305
-
1306
- // src/tokens/svg/social/GithubIcon.tsx
1307
- import { jsx as jsx246 } from "react/jsx-runtime";
1308
-
1309
- // src/tokens/svg/social/GitlabIcon.tsx
1310
- import { jsx as jsx247, jsxs as jsxs152 } from "react/jsx-runtime";
1311
-
1312
- // src/tokens/svg/social/InstagramIcon.tsx
1313
- import { jsx as jsx248, jsxs as jsxs153 } from "react/jsx-runtime";
1314
-
1315
- // src/tokens/svg/social/LinkedinIcon.tsx
1316
- import { jsx as jsx249, jsxs as jsxs154 } from "react/jsx-runtime";
1317
-
1318
- // src/tokens/svg/social/RssIcon.tsx
1319
- import { jsx as jsx250, jsxs as jsxs155 } from "react/jsx-runtime";
1320
-
1321
- // src/tokens/svg/social/SlackIcon.tsx
1322
- import { jsx as jsx251, jsxs as jsxs156 } from "react/jsx-runtime";
1323
-
1324
- // src/tokens/svg/social/TrelloIcon.tsx
1325
- import { jsx as jsx252, jsxs as jsxs157 } from "react/jsx-runtime";
1326
-
1327
- // src/tokens/svg/social/TwitchIcon.tsx
1328
- import { jsx as jsx253, jsxs as jsxs158 } from "react/jsx-runtime";
1329
-
1330
- // src/tokens/svg/social/TwitterIcon.tsx
1331
- import { jsx as jsx254 } from "react/jsx-runtime";
1332
-
1333
- // src/tokens/svg/social/YoutubeIcon.tsx
1334
- import { jsx as jsx255, jsxs as jsxs159 } from "react/jsx-runtime";
1335
-
1336
- // src/tokens/svg/status/ActivityIcon.tsx
1337
- import { jsx as jsx256 } from "react/jsx-runtime";
1338
-
1339
- // src/tokens/svg/status/AlertCircleIcon.tsx
1340
- import { jsx as jsx257, jsxs as jsxs160 } from "react/jsx-runtime";
1341
-
1342
- // src/tokens/svg/status/AlertOctagonIcon.tsx
1343
- import { jsx as jsx258, jsxs as jsxs161 } from "react/jsx-runtime";
1344
-
1345
- // src/tokens/svg/status/AlertTriangleIcon.tsx
1346
- import { jsx as jsx259, jsxs as jsxs162 } from "react/jsx-runtime";
1347
-
1348
- // src/tokens/svg/status/CheckCircleIcon.tsx
1349
- import { jsx as jsx260, jsxs as jsxs163 } from "react/jsx-runtime";
1350
-
1351
- // src/tokens/svg/status/CheckIcon.tsx
1352
- import { jsx as jsx261 } from "react/jsx-runtime";
1353
-
1354
- // src/tokens/svg/status/HelpCircleIcon.tsx
1355
- import { jsx as jsx262, jsxs as jsxs164 } from "react/jsx-runtime";
1356
-
1357
- // src/tokens/svg/status/LoaderIcon.tsx
1358
- import { jsx as jsx263, jsxs as jsxs165 } from "react/jsx-runtime";
1359
-
1360
- // src/tokens/svg/status/MinusCircleIcon.tsx
1361
- import { jsx as jsx264, jsxs as jsxs166 } from "react/jsx-runtime";
1362
-
1363
- // src/tokens/svg/status/MinusIcon.tsx
1364
- import { jsx as jsx265 } from "react/jsx-runtime";
1365
-
1366
- // src/tokens/svg/status/MinusSquareIcon.tsx
1367
- import { jsx as jsx266, jsxs as jsxs167 } from "react/jsx-runtime";
1368
-
1369
- // src/tokens/svg/status/PlusCircleIcon.tsx
1370
- import { jsx as jsx267, jsxs as jsxs168 } from "react/jsx-runtime";
1371
-
1372
- // src/tokens/svg/status/PlusIcon.tsx
1373
- import { jsx as jsx268 } from "react/jsx-runtime";
1374
-
1375
- // src/tokens/svg/status/PlusSquareIcon.tsx
1376
- import { jsx as jsx269, jsxs as jsxs169 } from "react/jsx-runtime";
1377
-
1378
- // src/tokens/svg/status/XCircleIcon.tsx
1379
- import { jsx as jsx270, jsxs as jsxs170 } from "react/jsx-runtime";
1380
-
1381
- // src/tokens/svg/status/XIcon.tsx
1382
- import { jsx as jsx271 } from "react/jsx-runtime";
1383
-
1384
- // src/tokens/svg/status/XOctagonIcon.tsx
1385
- import { jsx as jsx272, jsxs as jsxs171 } from "react/jsx-runtime";
1386
-
1387
- // src/tokens/svg/status/XSquareIcon.tsx
1388
- import { jsx as jsx273, jsxs as jsxs172 } from "react/jsx-runtime";
1389
-
1390
- // src/tokens/svg/user/GierIcon.tsx
1391
- import { jsx as jsx274, jsxs as jsxs173 } from "react/jsx-runtime";
1392
-
1393
- // src/tokens/svg/user/KeyIcon.tsx
1394
- import { jsx as jsx275 } from "react/jsx-runtime";
1395
-
1396
- // src/tokens/svg/user/LockIcon.tsx
1397
- import { jsx as jsx276 } from "react/jsx-runtime";
1398
-
1399
- // src/tokens/svg/user/LogInIcon.tsx
1400
- import { jsx as jsx277, jsxs as jsxs174 } from "react/jsx-runtime";
1401
-
1402
- // src/tokens/svg/user/LogOutIcon.tsx
1403
- import { jsx as jsx278, jsxs as jsxs175 } from "react/jsx-runtime";
1404
-
1405
- // src/tokens/svg/user/MailIcon.tsx
1406
- import { jsx as jsx279 } from "react/jsx-runtime";
1407
-
1408
- // src/tokens/svg/user/ProfileIcon.tsx
1409
- import { jsx as jsx280, jsxs as jsxs176 } from "react/jsx-runtime";
1410
-
1411
- // src/tokens/svg/user/UnlockIcon.tsx
1412
- import { jsx as jsx281 } from "react/jsx-runtime";
1413
-
1414
- // src/tokens/svg/user/UserCheckIcon.tsx
1415
- import { jsx as jsx282, jsxs as jsxs177 } from "react/jsx-runtime";
1416
-
1417
- // src/tokens/svg/user/UserIcon.tsx
1418
- import { jsx as jsx283, jsxs as jsxs178 } from "react/jsx-runtime";
1419
-
1420
- // src/tokens/svg/user/UserMinusIcon.tsx
1421
- import { jsx as jsx284, jsxs as jsxs179 } from "react/jsx-runtime";
1422
-
1423
- // src/tokens/svg/user/UserPlusIcon.tsx
1424
- import { jsx as jsx285, jsxs as jsxs180 } from "react/jsx-runtime";
1425
-
1426
- // src/tokens/svg/user/UsersIcon.tsx
1427
- import { jsx as jsx286, jsxs as jsxs181 } from "react/jsx-runtime";
1428
-
1429
- // src/tokens/svg/user/UserXIcon.tsx
1430
- import { jsx as jsx287, jsxs as jsxs182 } from "react/jsx-runtime";
1431
-
1432
- // src/tokens/svg/weather/CloudDrizzleIcon.tsx
1433
- import { jsx as jsx288, jsxs as jsxs183 } from "react/jsx-runtime";
1434
-
1435
- // src/tokens/svg/weather/CloudIcon.tsx
1436
- import { jsx as jsx289 } from "react/jsx-runtime";
1437
-
1438
- // src/tokens/svg/weather/CloudLightningIcon.tsx
1439
- import { jsx as jsx290, jsxs as jsxs184 } from "react/jsx-runtime";
1440
-
1441
- // src/tokens/svg/weather/CloudOffIcon.tsx
1442
- import { jsx as jsx291, jsxs as jsxs185 } from "react/jsx-runtime";
1443
-
1444
- // src/tokens/svg/weather/CloudRainIcon.tsx
1445
- import { jsx as jsx292, jsxs as jsxs186 } from "react/jsx-runtime";
1446
-
1447
- // src/tokens/svg/weather/CloudSnowIcon.tsx
1448
- import { jsx as jsx293, jsxs as jsxs187 } from "react/jsx-runtime";
1449
-
1450
- // src/tokens/svg/weather/DropletIcon.tsx
1451
- import { jsx as jsx294 } from "react/jsx-runtime";
1452
-
1453
- // src/tokens/svg/weather/MoonIcon.tsx
1454
- import { jsx as jsx295 } from "react/jsx-runtime";
1455
-
1456
- // src/tokens/svg/weather/SunIcon.tsx
1457
- import { jsx as jsx296, jsxs as jsxs188 } from "react/jsx-runtime";
1458
-
1459
- // src/tokens/svg/weather/ThermometerIcon.tsx
1460
- import { jsx as jsx297 } from "react/jsx-runtime";
1461
-
1462
- // src/tokens/svg/weather/UmbrellaIcon.tsx
1463
- import { jsx as jsx298, jsxs as jsxs189 } from "react/jsx-runtime";
1464
-
1465
- // src/tokens/svg/weather/WindIcon.tsx
1466
- import { jsx as jsx299, jsxs as jsxs190 } from "react/jsx-runtime";
1467
-
1468
- // src/components/DatePicker/SingleDatePicker/index.tsx
1469
- import React7 from "react";
1470
-
1471
- // src/components/Calendar/useCalendar.ts
1472
- import React6 from "react";
1473
- var useCalendar = (initialYear, initialMonth) => {
1474
- const today = /* @__PURE__ */ new Date();
1475
- const [year, setYear] = React6.useState(initialYear ?? today.getFullYear());
1476
- const [month, setMonth] = React6.useState(initialMonth ?? today.getMonth());
1477
- const days = React6.useMemo(() => {
1478
- const firstDay = new Date(year, month, 1);
1479
- const lastDay = new Date(year, month + 1, 0);
1480
- const startDayOfWeek = firstDay.getDay();
1481
- const result = [];
1482
- const prevMonthLast = new Date(year, month, 0);
1483
- for (let i = startDayOfWeek - 1; i >= 0; i--) {
1484
- const d = new Date(year, month - 1, prevMonthLast.getDate() - i);
1485
- result.push({
1486
- date: d,
1487
- day: d.getDate(),
1488
- isCurrentMonth: false,
1489
- isToday: false,
1490
- isSunday: d.getDay() === 0,
1491
- isSaturday: d.getDay() === 6
1492
- });
1493
- }
1494
- for (let d = 1; d <= lastDay.getDate(); d++) {
1495
- const date = new Date(year, month, d);
1496
- const isToday = date.getFullYear() === today.getFullYear() && date.getMonth() === today.getMonth() && date.getDate() === today.getDate();
1497
- result.push({
1498
- date,
1499
- day: d,
1500
- isCurrentMonth: true,
1501
- isToday,
1502
- isSunday: date.getDay() === 0,
1503
- isSaturday: date.getDay() === 6
1504
- });
1505
- }
1506
- const remaining = 42 - result.length;
1507
- for (let d = 1; d <= remaining; d++) {
1508
- const date = new Date(year, month + 1, d);
1509
- result.push({
1510
- date,
1511
- day: d,
1512
- isCurrentMonth: false,
1513
- isToday: false,
1514
- isSunday: date.getDay() === 0,
1515
- isSaturday: date.getDay() === 6
1516
- });
1517
- }
1518
- return result;
1519
- }, [year, month]);
1520
- const goToPrevMonth = React6.useCallback(() => {
1521
- setMonth((prev) => {
1522
- if (prev === 0) {
1523
- setYear((y) => y - 1);
1524
- return 11;
1525
- }
1526
- return prev - 1;
1527
- });
1528
- }, []);
1529
- const goToNextMonth = React6.useCallback(() => {
1530
- setMonth((prev) => {
1531
- if (prev === 11) {
1532
- setYear((y) => y + 1);
1533
- return 0;
1534
- }
1535
- return prev + 1;
1536
- });
1537
- }, []);
1538
- const goToToday = React6.useCallback(() => {
1539
- setYear(today.getFullYear());
1540
- setMonth(today.getMonth());
1541
- }, []);
1542
- return {
1543
- year,
1544
- month,
1545
- days,
1546
- goToPrevMonth,
1547
- goToNextMonth,
1548
- goToToday,
1549
- setYear,
1550
- setMonth
1551
- };
1552
- };
1553
- var isSameDay = (a, b) => {
1554
- return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();
1555
- };
1556
- var isInRange = (date, start, end) => {
1557
- const d = date.getTime();
1558
- const s = new Date(start.getFullYear(), start.getMonth(), start.getDate()).getTime();
1559
- const e = new Date(end.getFullYear(), end.getMonth(), end.getDate()).getTime();
1560
- return d >= s && d <= e;
1561
- };
1562
- var WEEKDAY_LABELS = {
1563
- ko: ["\uC77C", "\uC6D4", "\uD654", "\uC218", "\uBAA9", "\uAE08", "\uD1A0"],
1564
- en: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
1565
- };
1566
- var MONTH_LABELS = {
1567
- 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"],
1568
- en: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
1569
- };
1570
-
1571
- // src/components/DatePicker/SingleDatePicker/index.tsx
1572
- import { Fragment as Fragment2, jsx as jsx300, jsxs as jsxs191 } from "react/jsx-runtime";
1573
- var DayCell = React7.memo(
1574
- ({
1575
- day,
1576
- disabled,
1577
- selected,
1578
- highlighted,
1579
- isStart,
1580
- isEnd,
1581
- inRange,
1582
- onSelect
1583
- }) => /* @__PURE__ */ jsx300(
1584
- "button",
1585
- {
1586
- type: "button",
1587
- className: clsx_default(
1588
- "datepicker-day",
1589
- !day.isCurrentMonth && "outside",
1590
- disabled && "disabled",
1591
- (selected || isStart || isEnd) && "selected",
1592
- highlighted && !selected && "highlighted",
1593
- inRange && !isStart && !isEnd && "in-range",
1594
- day.isToday && "today",
1595
- day.isSunday && "sunday",
1596
- day.isSaturday && "saturday"
1597
- ),
1598
- disabled: disabled || !day.isCurrentMonth,
1599
- onClick: () => {
1600
- if (!disabled && day.isCurrentMonth) onSelect(day.date);
1601
- },
1602
- children: day.day
1603
- }
1604
- ),
1605
- (prev, next) => prev.selected === next.selected && prev.disabled === next.disabled && prev.highlighted === next.highlighted && prev.isStart === next.isStart && prev.isEnd === next.isEnd && prev.inRange === next.inRange && prev.day === next.day
1606
- );
1607
- DayCell.displayName = "DayCell";
1608
- var SingleDatePicker = (props) => {
1609
- const {
1610
- value,
1611
- onChange,
1612
- minDate,
1613
- maxDate,
1614
- highlightDates = [],
1615
- locale = "ko",
1616
- rangeStart,
1617
- rangeEnd,
1618
- label,
1619
- required,
1620
- validations
1621
- } = props;
1622
- const labelId = React7.useId();
1623
- const initialYear = value?.getFullYear();
1624
- const initialMonth = value?.getMonth();
1625
- const { year, month, days, goToPrevMonth, goToNextMonth, setYear, setMonth } = useCalendar(
1626
- initialYear,
1627
- initialMonth
1628
- );
1629
- const [pickerMode, setPickerMode] = React7.useState("days");
1630
- const [yearRangeStart, setYearRangeStart] = React7.useState(
1631
- Math.floor((initialYear ?? (/* @__PURE__ */ new Date()).getFullYear()) / 12) * 12
1632
- );
1633
- const minTime = React7.useMemo(
1634
- () => minDate ? new Date(minDate.getFullYear(), minDate.getMonth(), minDate.getDate()).getTime() : -Infinity,
1635
- [minDate]
1636
- );
1637
- const maxTime = React7.useMemo(
1638
- () => maxDate ? new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate()).getTime() : Infinity,
1639
- [maxDate]
1640
- );
1641
- const highlightSet = React7.useMemo(() => {
1642
- const set = /* @__PURE__ */ new Set();
1643
- for (const h of highlightDates) {
1644
- set.add(`${h.getFullYear()}-${h.getMonth()}-${h.getDate()}`);
1645
- }
1646
- return set;
1647
- }, [highlightDates]);
1648
- const handleSelect = React7.useCallback(
1649
- (date) => {
1650
- onChange?.(date);
1651
- },
1652
- [onChange]
1653
- );
1654
- const handlePrev = () => {
1655
- if (pickerMode === "days") goToPrevMonth();
1656
- else if (pickerMode === "months") setYear(year - 1);
1657
- else setYearRangeStart((s) => s - 12);
1658
- };
1659
- const handleNext = () => {
1660
- if (pickerMode === "days") goToNextMonth();
1661
- else if (pickerMode === "months") setYear(year + 1);
1662
- else setYearRangeStart((s) => s + 12);
1663
- };
1664
- const handleTitleClick = () => {
1665
- if (pickerMode === "days") setPickerMode("months");
1666
- else if (pickerMode === "months") {
1667
- setYearRangeStart(Math.floor(year / 12) * 12);
1668
- setPickerMode("years");
1669
- } else {
1670
- setPickerMode("days");
1671
- }
1672
- };
1673
- const handleMonthSelect = (m) => {
1674
- setMonth(m);
1675
- setPickerMode("days");
1676
- };
1677
- const handleYearSelect = (y) => {
1678
- setYear(y);
1679
- setPickerMode("months");
1680
- };
1681
- const weekdays = WEEKDAY_LABELS[locale];
1682
- const monthLabels = MONTH_LABELS[locale];
1683
- const titleText = pickerMode === "days" ? locale === "ko" ? `${year}\uB144 ${monthLabels[month]}` : `${monthLabels[month]} ${year}` : pickerMode === "months" ? `${year}` : `${yearRangeStart} - ${yearRangeStart + 11}`;
1684
- const hasRange = rangeStart != null && rangeEnd != null;
1685
- const calendar = /* @__PURE__ */ jsxs191(
1686
- "div",
1687
- {
1688
- className: clsx_default("lib-xplat-datepicker", "single"),
1689
- role: "group",
1690
- "aria-labelledby": label ? labelId : void 0,
1691
- children: [
1692
- /* @__PURE__ */ jsxs191("div", { className: "datepicker-header", children: [
1693
- /* @__PURE__ */ jsx300("button", { className: "datepicker-nav", onClick: handlePrev, type: "button", children: /* @__PURE__ */ jsx300(ChevronLeftIcon_default, {}) }),
1694
- /* @__PURE__ */ jsx300("button", { className: "datepicker-title", onClick: handleTitleClick, type: "button", children: titleText }),
1695
- /* @__PURE__ */ jsx300("button", { className: "datepicker-nav", onClick: handleNext, type: "button", children: /* @__PURE__ */ jsx300(ChevronRightIcon_default, {}) })
1696
- ] }),
1697
- /* @__PURE__ */ jsxs191("div", { className: "datepicker-body", children: [
1698
- pickerMode === "years" && /* @__PURE__ */ jsx300("div", { className: "datepicker-picker-grid", children: Array.from({ length: 12 }, (_, i) => {
1699
- const y = yearRangeStart + i;
1700
- return /* @__PURE__ */ jsx300(
1701
- "button",
1702
- {
1703
- type: "button",
1704
- className: clsx_default("datepicker-picker-cell", y === year && "active"),
1705
- onClick: () => handleYearSelect(y),
1706
- children: y
1707
- },
1708
- y
1709
- );
1710
- }) }),
1711
- pickerMode === "months" && /* @__PURE__ */ jsx300("div", { className: "datepicker-picker-grid", children: monthLabels.map((label2, i) => /* @__PURE__ */ jsx300(
1712
- "button",
1713
- {
1714
- type: "button",
1715
- className: clsx_default("datepicker-picker-cell", i === month && "active"),
1716
- onClick: () => handleMonthSelect(i),
1717
- children: label2
1718
- },
1719
- i
1720
- )) }),
1721
- pickerMode === "days" && /* @__PURE__ */ jsxs191(Fragment2, { children: [
1722
- /* @__PURE__ */ jsx300("div", { className: "datepicker-weekdays", children: weekdays.map((label2, i) => /* @__PURE__ */ jsx300(
1723
- "div",
1724
- {
1725
- className: clsx_default(
1726
- "datepicker-weekday",
1727
- i === 0 && "sunday",
1728
- i === 6 && "saturday"
1729
- ),
1730
- children: label2
1731
- },
1732
- label2
1733
- )) }),
1734
- /* @__PURE__ */ jsx300("div", { className: "datepicker-grid", children: days.map((day, idx) => {
1735
- const t = day.date.getTime();
1736
- const disabled = t < minTime || t > maxTime;
1737
- const selected = value ? isSameDay(day.date, value) : false;
1738
- const highlighted = highlightSet.has(
1739
- `${day.date.getFullYear()}-${day.date.getMonth()}-${day.date.getDate()}`
1740
- );
1741
- const isStart = hasRange ? isSameDay(day.date, rangeStart) : false;
1742
- const isEnd = hasRange ? isSameDay(day.date, rangeEnd) : false;
1743
- const inRangeVal = hasRange ? isInRange(day.date, rangeStart, rangeEnd) : false;
1744
- return /* @__PURE__ */ jsx300(
1745
- DayCell,
1746
- {
1747
- day,
1748
- disabled,
1749
- selected,
1750
- highlighted,
1751
- isStart,
1752
- isEnd,
1753
- inRange: inRangeVal,
1754
- onSelect: handleSelect
1755
- },
1756
- idx
1757
- );
1758
- }) })
1759
- ] })
1760
- ] })
1761
- ]
1762
- }
1763
- );
1764
- return /* @__PURE__ */ jsx300(Field, { label, required, labelId, validations, children: calendar });
1765
- };
1766
- SingleDatePicker.displayName = "SingleDatePicker";
1767
- var SingleDatePicker_default = SingleDatePicker;
1768
-
1769
- // src/components/DatePicker/InputDatePicker/index.tsx
1770
- import { jsx as jsx301, jsxs as jsxs192 } from "react/jsx-runtime";
1771
- var formatDate = (date) => {
1772
- if (!date || !(date instanceof Date) || isNaN(date.getTime())) return "";
1773
- const y = date.getFullYear();
1774
- const m = String(date.getMonth() + 1).padStart(2, "0");
1775
- const d = String(date.getDate()).padStart(2, "0");
1776
- return `${y}/${m}/${d}`;
1777
- };
1778
- var InputDatePicker = (props) => {
1779
- const {
1780
- value,
1781
- onChange,
1782
- minDate,
1783
- maxDate,
1784
- disabled,
1785
- locale = "ko",
1786
- placeholder,
1787
- label,
1788
- required,
1789
- validations
1790
- } = props;
1791
- const [isOpen, setIsOpen] = React8.useState(false);
1792
- const [tempDate, setTempDate] = React8.useState(value ?? /* @__PURE__ */ new Date());
1793
- const handleOpen = () => {
1794
- if (disabled) return;
1795
- setTempDate(value ?? /* @__PURE__ */ new Date());
1796
- setIsOpen(true);
1797
- };
1798
- const handleSelect = (date) => {
1799
- if (date) setTempDate(date);
1800
- };
1801
- const handleApply = () => {
1802
- onChange?.(tempDate);
1803
- setIsOpen(false);
1804
- };
1805
- const handleClose = () => {
1806
- setIsOpen(false);
1807
- };
1808
- return /* @__PURE__ */ jsxs192("div", { className: clsx_default("lib-xplat-datepicker input-datepicker", disabled && "disabled"), children: [
1809
- /* @__PURE__ */ jsx301("div", { className: "input-datepicker-trigger", onClick: handleOpen, children: /* @__PURE__ */ jsx301(
1810
- Input_default,
1811
- {
1812
- value: formatDate(value),
1813
- placeholder,
1814
- suffix: /* @__PURE__ */ jsx301(CalenderIcon_default, {}),
1815
- disabled,
1816
- label,
1817
- required,
1818
- validations,
1819
- readOnly: true
1820
- }
1821
- ) }),
1822
- /* @__PURE__ */ jsx301(Modal_default, { isOpen, onClose: handleClose, children: /* @__PURE__ */ jsxs192("div", { className: "lib-xplat-popup-datepicker-card", children: [
1823
- /* @__PURE__ */ jsx301("div", { className: "popup-datepicker-content", children: /* @__PURE__ */ jsx301(
1824
- SingleDatePicker_default,
1825
- {
1826
- value: tempDate,
1827
- onChange: handleSelect,
1828
- minDate,
1829
- maxDate,
1830
- locale
1831
- }
1832
- ) }),
1833
- /* @__PURE__ */ jsxs192("div", { className: "popup-datepicker-footer", children: [
1834
- /* @__PURE__ */ jsx301(Button_default, { type: "secondary", onClick: handleClose, children: locale === "ko" ? "\uCDE8\uC18C" : "Cancel" }),
1835
- /* @__PURE__ */ jsx301(Button_default, { type: "primary", onClick: handleApply, children: locale === "ko" ? "\uC801\uC6A9" : "Apply" })
1836
- ] })
1837
- ] }) })
1838
- ] });
1839
- };
1840
- InputDatePicker.displayName = "InputDatePicker";
1841
- var InputDatePicker_default = InputDatePicker;
1842
-
1843
- // src/components/DatePicker/PopupPicker/index.tsx
1844
- import React12 from "react";
1845
-
1846
- // src/components/DatePicker/RangePicker/index.tsx
1847
- import React11 from "react";
1848
-
1849
- // src/components/Tab/Tab.tsx
1850
- import React10 from "react";
1851
-
1852
- // src/components/Tab/TabItem.tsx
1853
- import React9 from "react";
1854
- import { jsx as jsx302 } from "react/jsx-runtime";
1855
- var TabItem = React9.forwardRef((props, ref) => {
1856
- const { isActive, title, onClick } = props;
1857
- return /* @__PURE__ */ jsx302(
1858
- "button",
1859
- {
1860
- ref,
1861
- type: "button",
1862
- role: "tab",
1863
- "aria-selected": isActive,
1864
- tabIndex: isActive ? 0 : -1,
1865
- className: clsx_default("tab-item", isActive ? "active" : null),
1866
- onClick,
1867
- children: title
1868
- }
1869
- );
1870
- });
1871
- TabItem.displayName = "TabItem";
1872
- var TabItem_default = TabItem;
1873
-
1874
- // src/components/Tab/Tab.tsx
1875
- import { jsx as jsx303, jsxs as jsxs193 } from "react/jsx-runtime";
1876
- var Tab = (props) => {
1877
- const { activeIndex, onChange, tabs, variant, type, size = "md" } = props;
1878
- const shape = variant ?? type ?? "default";
1879
- const [underlineStyle, setUnderlineStyle] = React10.useState({
1880
- left: 0,
1881
- width: 0
1882
- });
1883
- const itemRefs = React10.useRef([]);
1884
- const handleKeyDown = (e) => {
1885
- const last = tabs.length - 1;
1886
- let next = null;
1887
- if (e.key === "ArrowRight") next = activeIndex >= last ? 0 : activeIndex + 1;
1888
- else if (e.key === "ArrowLeft") next = activeIndex <= 0 ? last : activeIndex - 1;
1889
- else if (e.key === "Home") next = 0;
1890
- else if (e.key === "End") next = last;
1891
- if (next === null) return;
1892
- e.preventDefault();
1893
- onChange(tabs[next], next);
1894
- itemRefs.current[next]?.focus();
1895
- };
1896
- const handleChangeActiveTab = (tabItem, tabIdx) => {
1897
- onChange(tabItem, tabIdx);
1898
- };
1899
- React10.useEffect(() => {
1900
- const el = itemRefs.current[activeIndex];
1901
- if (el) {
1902
- setUnderlineStyle({ left: el.offsetLeft, width: el.offsetWidth });
1903
- }
1904
- }, [activeIndex, tabs.length]);
1905
- return /* @__PURE__ */ jsxs193(
1906
- "div",
1907
- {
1908
- className: clsx_default("lib-xplat-tab", `type-${shape}`, size),
1909
- role: "tablist",
1910
- onKeyDown: handleKeyDown,
1911
- children: [
1912
- tabs.map((tab, idx) => /* @__PURE__ */ jsx303(
1913
- TabItem_default,
1914
- {
1915
- onClick: () => handleChangeActiveTab(tab, idx),
1916
- isActive: activeIndex === idx,
1917
- ref: (el) => {
1918
- itemRefs.current[idx] = el;
1919
- },
1920
- title: tab.title
1921
- },
1922
- `${tab.value}_${idx}`
1923
- )),
1924
- shape === "toggle" && /* @__PURE__ */ jsx303(
1925
- "div",
1926
- {
1927
- className: "tab-toggle-underline",
1928
- style: {
1929
- left: underlineStyle.left,
1930
- width: underlineStyle.width
1931
- }
1932
- }
1933
- )
1934
- ]
1935
- }
1936
- );
1937
- };
1938
- Tab.displayName = "Tab";
1939
- var Tab_default = Tab;
1940
-
1941
- // src/components/DatePicker/RangePicker/index.tsx
1942
- import { jsx as jsx304, jsxs as jsxs194 } from "react/jsx-runtime";
1943
- var RangePicker = (props) => {
1944
- const {
1945
- startDate,
1946
- endDate,
1947
- onChange,
1948
- minDate,
1949
- maxDate,
1950
- locale = "ko",
1951
- label,
1952
- required,
1953
- validations
1954
- } = props;
1955
- const labelId = React11.useId();
1956
- const [activeTab, setActiveTab] = React11.useState("start");
1957
- const handleStartChange = (date) => {
1958
- if (!date) return;
1959
- const newStart = date > endDate ? endDate : date;
1960
- onChange?.({ startDate: newStart, endDate });
1961
- };
1962
- const handleEndChange = (date) => {
1963
- if (!date) return;
1964
- const newEnd = date < startDate ? startDate : date;
1965
- onChange?.({ startDate, endDate: newEnd });
1966
- };
1967
- const startMaxDate = maxDate && endDate < maxDate ? endDate : endDate;
1968
- const endMinDate = minDate && startDate > minDate ? startDate : startDate;
1969
- const calendar = /* @__PURE__ */ jsxs194(
1970
- "div",
1971
- {
1972
- className: clsx_default("lib-xplat-datepicker", "range"),
1973
- role: "group",
1974
- "aria-labelledby": label ? labelId : void 0,
1975
- children: [
1976
- /* @__PURE__ */ jsx304("div", { className: "datepicker-range-tabs", children: /* @__PURE__ */ jsx304(
1977
- Tab_default,
1978
- {
1979
- activeIndex: activeTab === "start" ? 0 : 1,
1980
- tabs: [
1981
- { value: "start", title: locale === "ko" ? "\uC2DC\uC791\uC77C" : "Start" },
1982
- { value: "end", title: locale === "ko" ? "\uC885\uB8CC\uC77C" : "End" }
1983
- ],
1984
- onChange: (tab) => setActiveTab(tab.value),
1985
- type: "toggle",
1986
- size: "sm"
1987
- }
1988
- ) }),
1989
- /* @__PURE__ */ jsxs194("div", { className: "datepicker-range-panels", children: [
1990
- /* @__PURE__ */ jsx304(
1991
- SingleDatePicker_default,
1992
- {
1993
- value: startDate,
1994
- onChange: handleStartChange,
1995
- minDate,
1996
- maxDate: startMaxDate,
1997
- rangeStart: startDate,
1998
- rangeEnd: endDate,
1999
- locale
2000
- }
2001
- ),
2002
- /* @__PURE__ */ jsx304(
2003
- SingleDatePicker_default,
2004
- {
2005
- value: endDate,
2006
- onChange: handleEndChange,
2007
- minDate: endMinDate,
2008
- maxDate,
2009
- rangeStart: startDate,
2010
- rangeEnd: endDate,
2011
- locale
2012
- }
2013
- )
2014
- ] }),
2015
- /* @__PURE__ */ jsx304("div", { className: "datepicker-range-mobile", children: activeTab === "start" ? /* @__PURE__ */ jsx304(
2016
- SingleDatePicker_default,
2017
- {
2018
- value: startDate,
2019
- onChange: handleStartChange,
2020
- minDate,
2021
- maxDate: startMaxDate,
2022
- rangeStart: startDate,
2023
- rangeEnd: endDate,
2024
- locale
2025
- }
2026
- ) : /* @__PURE__ */ jsx304(
2027
- SingleDatePicker_default,
2028
- {
2029
- value: endDate,
2030
- onChange: handleEndChange,
2031
- minDate: endMinDate,
2032
- maxDate,
2033
- rangeStart: startDate,
2034
- rangeEnd: endDate,
2035
- locale
2036
- }
2037
- ) })
2038
- ]
2039
- }
2040
- );
2041
- return /* @__PURE__ */ jsx304(Field, { label, required, labelId, validations, children: calendar });
2042
- };
2043
- RangePicker.displayName = "RangePicker";
2044
- var RangePicker_default = RangePicker;
2045
-
2046
- // src/components/DatePicker/PopupPicker/index.tsx
2047
- import { jsx as jsx305, jsxs as jsxs195 } from "react/jsx-runtime";
2048
- var PopupPicker = (props) => {
2049
- const { component, type, locale } = props;
2050
- const [isOpen, setIsOpen] = React12.useState(false);
2051
- const handleClick = () => setIsOpen(true);
2052
- const handleClose = () => setIsOpen(false);
2053
- const handleSingleChange = (date) => {
2054
- if (!date) return;
2055
- props.onChange?.(date);
2056
- handleClose();
2057
- };
2058
- return /* @__PURE__ */ jsxs195("div", { className: "lib-xplat-popup-datepicker", children: [
2059
- React12.cloneElement(component, { onClick: handleClick }),
2060
- /* @__PURE__ */ jsx305(Modal_default, { isOpen, onClose: handleClose, children: /* @__PURE__ */ jsxs195("div", { className: clsx_default("lib-xplat-popup-datepicker-card", type === "range" && "range-mode"), children: [
2061
- /* @__PURE__ */ jsxs195("div", { className: "popup-datepicker-content", children: [
2062
- type === "single" && /* @__PURE__ */ jsx305(
2063
- SingleDatePicker_default,
2064
- {
2065
- value: props.value,
2066
- onChange: handleSingleChange,
2067
- minDate: props.minDate,
2068
- maxDate: props.maxDate,
2069
- locale
2070
- }
2071
- ),
2072
- type === "range" && /* @__PURE__ */ jsx305(
2073
- RangePicker_default,
2074
- {
2075
- startDate: props.startDate,
2076
- endDate: props.endDate,
2077
- onChange: props.onChange,
2078
- minDate: props.minDate,
2079
- maxDate: props.maxDate,
2080
- locale
2081
- }
2082
- )
2083
- ] }),
2084
- /* @__PURE__ */ jsxs195("div", { className: "popup-datepicker-footer", children: [
2085
- /* @__PURE__ */ jsx305(
2086
- Button_default,
2087
- {
2088
- type: "secondary",
2089
- onClick: handleClose,
2090
- children: locale === "ko" ? "\uCDE8\uC18C" : "Cancel"
2091
- }
2092
- ),
2093
- /* @__PURE__ */ jsx305(Button_default, { type: "primary", onClick: handleClose, children: locale === "ko" ? "\uC801\uC6A9" : "Apply" })
2094
- ] })
2095
- ] }) })
2096
- ] });
2097
- };
2098
- PopupPicker.displayName = "PopupPicker";
2099
- var PopupPicker_default = PopupPicker;
1
+ import {
2
+ InputDatePicker_default,
3
+ PopupPicker_default,
4
+ RangePicker_default,
5
+ SingleDatePicker_default
6
+ } from "../../chunk-WDAFLVQK.js";
7
+ import "../../chunk-BPZXL5TP.js";
8
+ import "../../chunk-4EF7NVAL.js";
9
+ import "../../chunk-HXUGW4RR.js";
10
+ import "../../chunk-F664X2OY.js";
11
+ import "../../chunk-QURIHUEC.js";
12
+ import "../../chunk-TTY5PE3P.js";
13
+ import "../../chunk-OL4NANHB.js";
14
+ import "../../chunk-UGEGN35F.js";
15
+ import "../../chunk-CIRQYSQW.js";
16
+ import "../../chunk-XMM52J3T.js";
17
+ import "../../chunk-7YOI5XOW.js";
18
+ import "../../chunk-BGXHIDUR.js";
19
+ import "../../chunk-KZOJN57Q.js";
2100
20
  export {
2101
21
  InputDatePicker_default as InputDatePicker,
2102
22
  PopupPicker_default as PopupDatePicker,