@withwiz/toolkit 0.7.1 → 0.9.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 (399) hide show
  1. package/README.ko.md +226 -0
  2. package/README.md +66 -44
  3. package/dist/{chunk-V6YD53NH.js → chunk-23LQJYZN.js} +5 -2
  4. package/dist/chunk-2JUFL4KX.js +41 -0
  5. package/dist/{chunk-ZTRASVGZ.js → chunk-34L7HTM7.js} +1 -1
  6. package/dist/{chunk-GSUCBWML.js → chunk-3RK3MKAR.js} +5 -2
  7. package/dist/{chunk-6JXHXIEH.js → chunk-3UIKCS56.js} +2 -2
  8. package/dist/{chunk-MWBEE6VI.js → chunk-4EXZ2SDV.js} +5 -5
  9. package/dist/{chunk-MNYVAEXK.js → chunk-4ROIPF33.js} +16 -3
  10. package/dist/{chunk-JKSABDFT.js → chunk-4TGPAUJV.js} +4 -4
  11. package/dist/{chunk-D2KXIKI4.js → chunk-4XPXZNBX.js} +18 -11
  12. package/dist/{chunk-LG3KM5V3.js → chunk-5I3EQHR4.js} +6 -2
  13. package/dist/chunk-63EKUOJH.js +72 -0
  14. package/dist/chunk-6A5JHOBB.js +134 -0
  15. package/dist/{chunk-N5VOFGF3.js → chunk-75UDFONR.js} +5 -4
  16. package/dist/{chunk-GORISA3L.js → chunk-7KIM5MHV.js} +1 -1
  17. package/dist/{chunk-4L6OSSSG.js → chunk-7S2PCYNT.js} +3 -3
  18. package/dist/{chunk-2SIBG5BG.js → chunk-7YWUKMZD.js} +7 -0
  19. package/dist/{chunk-7X2N4VZM.js → chunk-ATBYGPLP.js} +1 -1
  20. package/dist/{chunk-A74POWYY.js → chunk-B7AJJKOY.js} +1 -1
  21. package/dist/{chunk-W7PEL3DX.js → chunk-BRBOGLFT.js} +4 -4
  22. package/dist/{chunk-IOUNOHP7.js → chunk-BRFW2LL2.js} +1 -1
  23. package/dist/chunk-BTYH4MHU.js +118 -0
  24. package/dist/{chunk-I4NT6G2T.js → chunk-DRTJSTEV.js} +2 -2
  25. package/dist/{chunk-JIYLTMVL.js → chunk-DVCGAI5N.js} +2 -2
  26. package/dist/chunk-E4TKORMQ.js +59 -0
  27. package/dist/{chunk-AV7ELXHG.js → chunk-E5TDIRBJ.js} +2 -2
  28. package/dist/{chunk-UBASOMP5.js → chunk-HGVPZSWW.js} +18 -13
  29. package/dist/{chunk-7F5X6F7X.js → chunk-HV6A6Z5R.js} +1 -1
  30. package/dist/chunk-ILMPKSWS.js +125 -0
  31. package/dist/{chunk-J5NLAZV2.js → chunk-JHUWZ6YW.js} +2 -2
  32. package/dist/{chunk-LON5THYQ.js → chunk-KLMKCYIN.js} +1 -1
  33. package/dist/{chunk-4KJZRI74.js → chunk-KWUOLKDO.js} +1 -1
  34. package/dist/{chunk-GJO2MPC3.js → chunk-LCYDMYZS.js} +1 -1
  35. package/dist/{chunk-WIQAPWTY.js → chunk-LL3VWKY4.js} +1 -1
  36. package/dist/{chunk-IMAFMUZ7.js → chunk-LSS3GJUE.js} +3 -2
  37. package/dist/{chunk-2PFSRVVD.js → chunk-LWHLB2Y6.js} +84 -18
  38. package/dist/{chunk-BBE4RXR7.js → chunk-MTZXWVW3.js} +17 -6
  39. package/dist/{chunk-ORMEWXMH.js → chunk-N3ETBM74.js} +1 -14
  40. package/dist/{chunk-KYAHURXN.js → chunk-N3TCQ5BF.js} +4 -3
  41. package/dist/{chunk-HX4MPCVV.js → chunk-NTZBMWB6.js} +4 -4
  42. package/dist/{chunk-RJGYONRO.js → chunk-PRPMEHRE.js} +2 -2
  43. package/dist/{chunk-KG65BFPK.js → chunk-QAIN3WNN.js} +1 -1
  44. package/dist/{chunk-JJAIVUVD.js → chunk-R7EFDSPZ.js} +2 -2
  45. package/dist/{chunk-VJE4HA2C.js → chunk-RWCPRPEP.js} +3 -2
  46. package/dist/{chunk-B6L5XV7O.js → chunk-SCAFDDJP.js} +11 -11
  47. package/dist/{chunk-KXYDTC4A.js → chunk-SNFPZD6L.js} +11 -2
  48. package/dist/{chunk-B5VRZ2VJ.js → chunk-TNDEYJEL.js} +25 -6
  49. package/dist/{chunk-GDTZMX3L.js → chunk-TRGFXIEF.js} +1 -1
  50. package/dist/{chunk-JRORMRVN.js → chunk-U2TGXJ3A.js} +1 -1
  51. package/dist/{chunk-VNDL2E44.js → chunk-U52U5SK7.js} +2 -2
  52. package/dist/{chunk-54REXMTE.js → chunk-UWOWKOOQ.js} +3 -1
  53. package/dist/{chunk-4PROUAZ5.js → chunk-V3WZFUY3.js} +7 -7
  54. package/dist/{chunk-G4LJN4OZ.js → chunk-VH57Y5Z4.js} +1 -1
  55. package/dist/chunk-VQJY52YF.js +139 -0
  56. package/dist/{chunk-5S7M2AJL.js → chunk-VWAB4PM7.js} +1 -1
  57. package/dist/{chunk-AQZPGOEZ.js → chunk-VWKZMGPJ.js} +5 -4
  58. package/dist/{chunk-4K27YLAE.js → chunk-VZ2PQA4U.js} +2 -2
  59. package/dist/{chunk-ZOWEW4GY.js → chunk-WBHX4MJV.js} +2 -2
  60. package/dist/{chunk-G4SNTXJ3.js → chunk-WSHRBK6Y.js} +7 -6
  61. package/dist/{chunk-UMRKMF3E.js → chunk-WXOWI7BJ.js} +2 -2
  62. package/dist/chunk-XAGPZLRK.js +106 -0
  63. package/dist/{chunk-VPRTPW7C.js → chunk-XF3WUF3F.js} +2 -2
  64. package/dist/{chunk-6TRD7ZW4.js → chunk-XKIBJJA3.js} +25 -21
  65. package/dist/{chunk-ZLYBY3R4.js → chunk-XTGS6JJB.js} +10 -5
  66. package/dist/{chunk-BFZR62LZ.js → chunk-XXPB4C37.js} +7 -7
  67. package/dist/{chunk-LUIYCIF7.js → chunk-Y4ME3Q5K.js} +2 -2
  68. package/dist/{chunk-Q66VOVGN.js → chunk-Y4WPEIKW.js} +1 -1
  69. package/dist/{chunk-MREY2W7N.js → chunk-Y6CPPBJI.js} +1 -1
  70. package/dist/{chunk-6TUDUOGC.js → chunk-ZEHNCHIV.js} +2 -2
  71. package/dist/{chunk-D73ZJQMX.js → chunk-ZZABL54F.js} +13 -0
  72. package/dist/core/auth/adapters/sql/dialect.d.ts +21 -0
  73. package/dist/core/auth/adapters/sql/dialect.js +11 -0
  74. package/dist/core/auth/adapters/sql/email-token-repository.d.ts +17 -0
  75. package/dist/core/auth/adapters/sql/email-token-repository.js +9 -0
  76. package/dist/core/auth/adapters/sql/index.d.ts +7 -0
  77. package/dist/core/auth/adapters/sql/index.js +27 -0
  78. package/dist/core/auth/adapters/sql/oauth-account-repository.d.ts +18 -0
  79. package/dist/core/auth/adapters/sql/oauth-account-repository.js +9 -0
  80. package/dist/core/auth/adapters/sql/types.d.ts +73 -0
  81. package/dist/core/auth/adapters/sql/types.js +7 -0
  82. package/dist/core/auth/adapters/sql/user-repository.d.ts +20 -0
  83. package/dist/core/auth/adapters/sql/user-repository.js +9 -0
  84. package/dist/core/auth/config.d.ts +3 -0
  85. package/dist/core/auth/config.js +3 -3
  86. package/dist/core/auth/email/index.d.ts +3 -3
  87. package/dist/core/auth/email/index.js +3 -3
  88. package/dist/core/auth/email/sender.d.ts +1 -1
  89. package/dist/core/auth/email/sender.js +2 -2
  90. package/dist/core/auth/email/token-generator.d.ts +11 -0
  91. package/dist/core/auth/email/token-generator.js +2 -2
  92. package/dist/core/auth/errors/index.js +1 -1
  93. package/dist/core/auth/index.d.ts +11 -11
  94. package/dist/core/auth/index.js +23 -15
  95. package/dist/core/auth/jwt/client.js +3 -2
  96. package/dist/core/auth/jwt/cookie.d.ts +1 -1
  97. package/dist/core/auth/jwt/cookie.js +4 -4
  98. package/dist/core/auth/jwt/index.d.ts +41 -9
  99. package/dist/core/auth/jwt/index.js +6 -6
  100. package/dist/core/auth/jwt/types.d.ts +1 -1
  101. package/dist/core/auth/jwt/types.js +1 -1
  102. package/dist/core/auth/oauth/index.d.ts +6 -6
  103. package/dist/core/auth/oauth/index.js +5 -5
  104. package/dist/core/auth/oauth/providers/github.d.ts +1 -1
  105. package/dist/core/auth/oauth/providers/github.js +1 -1
  106. package/dist/core/auth/oauth/providers/google.d.ts +1 -1
  107. package/dist/core/auth/oauth/providers/google.js +1 -1
  108. package/dist/core/auth/oauth/providers/index.d.ts +5 -5
  109. package/dist/core/auth/oauth/providers/index.js +4 -4
  110. package/dist/core/auth/oauth/providers/kakao.d.ts +1 -1
  111. package/dist/core/auth/oauth/providers/kakao.js +1 -1
  112. package/dist/core/auth/oauth/providers/meta.d.ts +1 -1
  113. package/dist/core/auth/oauth/providers/meta.js +1 -1
  114. package/dist/core/auth/oauth/providers/microsoft.d.ts +1 -1
  115. package/dist/core/auth/oauth/providers/microsoft.js +1 -1
  116. package/dist/core/auth/oauth/state-cookie.js +1 -1
  117. package/dist/core/auth/password/client-helper.d.ts +9 -9
  118. package/dist/core/auth/password/client-helper.js +5 -3
  119. package/dist/core/auth/password/hasher.d.ts +83 -0
  120. package/dist/core/auth/password/hasher.js +14 -0
  121. package/dist/core/auth/password/index.d.ts +8 -6
  122. package/dist/core/auth/password/index.js +11 -2
  123. package/dist/core/auth/services/email-verification.service.d.ts +1 -1
  124. package/dist/core/auth/services/email-verification.service.js +3 -3
  125. package/dist/core/auth/services/index.d.ts +13 -12
  126. package/dist/core/auth/services/index.js +16 -16
  127. package/dist/core/auth/services/login.service.d.ts +15 -1
  128. package/dist/core/auth/services/login.service.js +6 -6
  129. package/dist/core/auth/services/oauth-callback.service.d.ts +7 -1
  130. package/dist/core/auth/services/oauth-callback.service.js +6 -6
  131. package/dist/core/auth/services/password-reset.service.d.ts +1 -1
  132. package/dist/core/auth/services/password-reset.service.js +3 -3
  133. package/dist/core/auth/services/refresh-token-store.d.ts +39 -0
  134. package/dist/core/auth/services/register.service.d.ts +1 -1
  135. package/dist/core/auth/services/register.service.js +3 -3
  136. package/dist/core/auth/services/token-refresh.service.d.ts +27 -1
  137. package/dist/core/auth/services/token-refresh.service.js +6 -6
  138. package/dist/core/auth/token-delivery.d.ts +47 -0
  139. package/dist/core/auth/token-delivery.js +14 -0
  140. package/dist/core/auth/types/index.d.ts +38 -4
  141. package/dist/core/auth/types/index.js +1 -1
  142. package/dist/core/cache/cache-config.js +4 -4
  143. package/dist/core/cache/cache-defaults.js +1 -1
  144. package/dist/core/cache/cache-env.d.ts +3 -3
  145. package/dist/core/cache/cache-env.js +3 -3
  146. package/dist/core/cache/cache-factory.d.ts +6 -6
  147. package/dist/core/cache/cache-factory.js +11 -11
  148. package/dist/core/cache/cache-invalidation.d.ts +4 -4
  149. package/dist/core/cache/cache-invalidation.js +12 -12
  150. package/dist/core/cache/cache-redis.js +5 -5
  151. package/dist/core/cache/cache-types.js +1 -1
  152. package/dist/core/cache/cache-wrapper.d.ts +1 -1
  153. package/dist/core/cache/cache-wrapper.js +12 -12
  154. package/dist/core/cache/cache.d.ts +2 -2
  155. package/dist/core/cache/cache.js +17 -17
  156. package/dist/core/cache/config.js +2 -2
  157. package/dist/core/cache/hybrid-cache-manager.d.ts +1 -1
  158. package/dist/core/cache/hybrid-cache-manager.js +7 -7
  159. package/dist/core/cache/index.d.ts +15 -15
  160. package/dist/core/cache/index.js +17 -17
  161. package/dist/core/cache/inmemory-cache-manager.d.ts +1 -1
  162. package/dist/core/cache/inmemory-cache-manager.js +3 -3
  163. package/dist/core/cache/noop-cache-manager.d.ts +1 -1
  164. package/dist/core/cache/noop-cache-manager.js +5 -5
  165. package/dist/core/cache/redis-cache-manager.d.ts +2 -2
  166. package/dist/core/cache/redis-cache-manager.js +6 -6
  167. package/dist/core/config/common.js +1 -1
  168. package/dist/core/config/errors.js +1 -1
  169. package/dist/core/config/registry.d.ts +7 -7
  170. package/dist/core/config/registry.js +1 -1
  171. package/dist/core/config/warn.js +1 -1
  172. package/dist/core/constants/error-codes.js +1 -1
  173. package/dist/core/constants/index.d.ts +5 -5
  174. package/dist/core/constants/index.js +10 -8
  175. package/dist/core/constants/messages.js +1 -1
  176. package/dist/core/constants/pagination.js +1 -1
  177. package/dist/core/constants/security.d.ts +15 -0
  178. package/dist/core/constants/security.js +4 -2
  179. package/dist/core/constants/validation.js +1 -1
  180. package/dist/core/cors/index.js +1 -1
  181. package/dist/core/error/app-error.d.ts +2 -2
  182. package/dist/core/error/app-error.js +1 -1
  183. package/dist/core/error/extract-error-info.js +1 -1
  184. package/dist/core/error/friendly-messages-v2.d.ts +3 -3
  185. package/dist/core/error/friendly-messages-v2.js +4 -4
  186. package/dist/core/error/friendly-messages.js +1 -1
  187. package/dist/core/error/index.d.ts +6 -6
  188. package/dist/core/error/index.js +4 -4
  189. package/dist/core/error/messages/en.d.ts +1 -1
  190. package/dist/core/error/messages/en.js +1 -1
  191. package/dist/core/error/messages/index.d.ts +2 -2
  192. package/dist/core/error/messages/index.js +3 -3
  193. package/dist/core/error/messages/ko.d.ts +1 -1
  194. package/dist/core/error/messages/ko.js +1 -1
  195. package/dist/core/geolocation/batch-processor.d.ts +1 -1
  196. package/dist/core/geolocation/batch-processor.js +3 -3
  197. package/dist/core/geolocation/config.js +1 -1
  198. package/dist/core/geolocation/index.d.ts +5 -5
  199. package/dist/core/geolocation/index.js +7 -7
  200. package/dist/core/geolocation/providers/base-provider.d.ts +2 -2
  201. package/dist/core/geolocation/providers/base-provider.js +1 -1
  202. package/dist/core/geolocation/providers/index.d.ts +6 -6
  203. package/dist/core/geolocation/providers/index.js +5 -5
  204. package/dist/core/geolocation/providers/ip-api-provider.d.ts +3 -3
  205. package/dist/core/geolocation/providers/ip-api-provider.js +1 -1
  206. package/dist/core/geolocation/providers/ipapi-co-provider.d.ts +3 -3
  207. package/dist/core/geolocation/providers/ipapi-co-provider.js +1 -1
  208. package/dist/core/geolocation/providers/ipgeolocation-provider.d.ts +3 -3
  209. package/dist/core/geolocation/providers/ipgeolocation-provider.js +1 -1
  210. package/dist/core/geolocation/providers/maxmind-provider.d.ts +3 -3
  211. package/dist/core/geolocation/providers/maxmind-provider.js +1 -1
  212. package/dist/core/logger/config.js +1 -1
  213. package/dist/core/logger/logger.js +2 -2
  214. package/dist/core/storage/config.js +1 -1
  215. package/dist/core/storage/r2-storage.js +1 -1
  216. package/dist/core/system/cpu.d.ts +1 -1
  217. package/dist/core/system/cpu.js +4 -4
  218. package/dist/core/system/disk.d.ts +1 -1
  219. package/dist/core/system/disk.js +4 -4
  220. package/dist/core/system/environment.d.ts +1 -1
  221. package/dist/core/system/environment.js +7 -7
  222. package/dist/core/system/health-check.d.ts +2 -2
  223. package/dist/core/system/health-check.js +5 -5
  224. package/dist/core/system/index.d.ts +7 -7
  225. package/dist/core/system/index.js +17 -17
  226. package/dist/core/system/memory.d.ts +1 -1
  227. package/dist/core/system/memory.js +4 -4
  228. package/dist/core/system/network.d.ts +1 -1
  229. package/dist/core/system/network.js +4 -4
  230. package/dist/core/system/utils.js +3 -3
  231. package/dist/core/types/geoip.d.ts +1 -1
  232. package/dist/core/types/qr-code.js +1 -1
  233. package/dist/core/utils/error-message-formatter.js +1 -1
  234. package/dist/core/utils/format-number.js +1 -1
  235. package/dist/core/utils/index.d.ts +3 -3
  236. package/dist/core/utils/index.js +9 -9
  237. package/dist/core/utils/input-validation.js +52 -16
  238. package/dist/core/utils/ip-utils.js +1 -1
  239. package/dist/core/utils/optimistic-lock.js +1 -1
  240. package/dist/core/utils/sanitizer.js +2 -2
  241. package/dist/core/utils/short-code-generator.js +1 -1
  242. package/dist/core/utils/timezone.js +121 -14
  243. package/dist/core/utils/type-guards.js +1 -1
  244. package/dist/core/utils/url-normalizer.js +1 -1
  245. package/dist/core/validators/index.d.ts +1 -1
  246. package/dist/core/validators/index.js +2 -2
  247. package/dist/core/validators/password-validator.d.ts +3 -3
  248. package/dist/core/validators/password-validator.js +2 -2
  249. package/dist/initialize.d.ts +10 -10
  250. package/dist/initialize.js +7 -7
  251. package/dist/next/auth-handlers/forgot-password.handler.d.ts +1 -1
  252. package/dist/next/auth-handlers/forgot-password.handler.js +4 -4
  253. package/dist/next/auth-handlers/index.d.ts +11 -11
  254. package/dist/next/auth-handlers/index.js +32 -31
  255. package/dist/next/auth-handlers/login.handler.d.ts +1 -1
  256. package/dist/next/auth-handlers/login.handler.js +7 -6
  257. package/dist/next/auth-handlers/logout.handler.d.ts +1 -1
  258. package/dist/next/auth-handlers/logout.handler.js +5 -5
  259. package/dist/next/auth-handlers/me.handler.d.ts +1 -1
  260. package/dist/next/auth-handlers/me.handler.js +7 -6
  261. package/dist/next/auth-handlers/oauth-authorize.handler.d.ts +1 -1
  262. package/dist/next/auth-handlers/oauth-authorize.handler.js +4 -4
  263. package/dist/next/auth-handlers/oauth-callback.handler.d.ts +1 -1
  264. package/dist/next/auth-handlers/oauth-callback.handler.js +9 -9
  265. package/dist/next/auth-handlers/refresh.handler.d.ts +1 -1
  266. package/dist/next/auth-handlers/refresh.handler.js +8 -7
  267. package/dist/next/auth-handlers/register.handler.d.ts +1 -1
  268. package/dist/next/auth-handlers/register.handler.js +4 -4
  269. package/dist/next/auth-handlers/reset-password.handler.d.ts +1 -1
  270. package/dist/next/auth-handlers/reset-password.handler.js +4 -4
  271. package/dist/next/auth-handlers/verify-email.handler.d.ts +1 -1
  272. package/dist/next/auth-handlers/verify-email.handler.js +4 -4
  273. package/dist/next/auth-types/handler-types.d.ts +5 -1
  274. package/dist/next/auth-types/handler-types.js +13 -1
  275. package/dist/next/auth-types/index.d.ts +1 -1
  276. package/dist/next/auth-types/index.js +13 -1
  277. package/dist/next/error/error-handler.js +3 -3
  278. package/dist/next/error/index.d.ts +3 -3
  279. package/dist/next/error/index.js +9 -9
  280. package/dist/next/error/locale-detector.d.ts +1 -1
  281. package/dist/next/error/locale-detector.js +1 -1
  282. package/dist/next/middleware/auth.d.ts +3 -3
  283. package/dist/next/middleware/auth.js +8 -7
  284. package/dist/next/middleware/cors.d.ts +2 -2
  285. package/dist/next/middleware/cors.js +3 -3
  286. package/dist/next/middleware/error-handler.d.ts +1 -1
  287. package/dist/next/middleware/error-handler.js +6 -6
  288. package/dist/next/middleware/index.d.ts +11 -11
  289. package/dist/next/middleware/index.js +19 -18
  290. package/dist/next/middleware/init-request.d.ts +1 -1
  291. package/dist/next/middleware/init-request.js +1 -1
  292. package/dist/next/middleware/middleware-chain.d.ts +1 -1
  293. package/dist/next/middleware/middleware-chain.js +3 -3
  294. package/dist/next/middleware/rate-limit.d.ts +2 -2
  295. package/dist/next/middleware/rate-limit.js +3 -3
  296. package/dist/next/middleware/response-logger.d.ts +1 -1
  297. package/dist/next/middleware/response-logger.js +3 -3
  298. package/dist/next/middleware/security.d.ts +1 -1
  299. package/dist/next/middleware/security.js +3 -3
  300. package/dist/next/middleware/types.d.ts +6 -3
  301. package/dist/next/middleware/wrappers.d.ts +2 -2
  302. package/dist/next/middleware/wrappers.js +18 -17
  303. package/dist/next/utils/api-helpers.d.ts +6 -2
  304. package/dist/next/utils/api-helpers.js +3 -2
  305. package/dist/next/utils/cors.js +2 -2
  306. package/dist/next/utils/csv-export-format.js +1 -1
  307. package/dist/next/utils/csv-export.js +3 -3
  308. package/dist/next/utils/error-processor.d.ts +1 -1
  309. package/dist/next/utils/error-processor.js +3 -3
  310. package/dist/next/utils/index.d.ts +5 -5
  311. package/dist/next/utils/index.js +28 -27
  312. package/dist/prisma/auth-adapter/index.d.ts +1 -1
  313. package/dist/prisma/auth-adapter/index.js +1 -1
  314. package/package.json +96 -52
  315. package/dist/chunk-2P4N4OK2.js +0 -150
  316. package/dist/chunk-4IQWQSEV.js +0 -27
  317. package/dist/chunk-4K76HG4V.js +0 -34
  318. package/dist/chunk-7EXSMZ2O.js +0 -29
  319. package/dist/chunk-7VXRBTRF.js +0 -110
  320. package/dist/chunk-ARXUKGZI.js +0 -58
  321. package/dist/chunk-B5OH43PR.js +0 -31
  322. package/dist/chunk-BW4QO7T6.js +0 -56
  323. package/dist/chunk-EK4TL7VW.js +0 -22
  324. package/dist/chunk-ERKJJDY6.js +0 -117
  325. package/dist/chunk-G4GT4X3J.js +0 -240
  326. package/dist/chunk-GPOSTBDQ.js +0 -193
  327. package/dist/chunk-IRUFNC4L.js +0 -26
  328. package/dist/chunk-J2MAXMIP.js +0 -105
  329. package/dist/chunk-MFMQO6IS.js +0 -127
  330. package/dist/chunk-PBQGXOVX.js +0 -31
  331. package/dist/chunk-STMAKLLG.js +0 -24
  332. package/dist/chunk-WP233RH2.js +0 -80
  333. package/dist/chunk-WWOYFWFB.js +0 -137
  334. package/dist/chunk-X7FGBUA4.js +0 -117
  335. package/dist/chunk-YSPIFSDI.js +0 -136
  336. package/dist/chunk-ZCLKRGZ4.js +0 -81
  337. package/dist/react/components/ui/Alert.d.ts +0 -12
  338. package/dist/react/components/ui/Alert.js +0 -10
  339. package/dist/react/components/ui/Badge.d.ts +0 -7
  340. package/dist/react/components/ui/Badge.js +0 -8
  341. package/dist/react/components/ui/Button.d.ts +0 -7
  342. package/dist/react/components/ui/Button.js +0 -8
  343. package/dist/react/components/ui/DataTable.d.ts +0 -8
  344. package/dist/react/components/ui/DataTable.js +0 -22
  345. package/dist/react/components/ui/DomainDisplay.d.ts +0 -12
  346. package/dist/react/components/ui/DomainDisplay.js +0 -31
  347. package/dist/react/components/ui/Input.d.ts +0 -5
  348. package/dist/react/components/ui/Input.js +0 -8
  349. package/dist/react/components/ui/Label.d.ts +0 -5
  350. package/dist/react/components/ui/Label.js +0 -8
  351. package/dist/react/components/ui/Pagination.d.ts +0 -42
  352. package/dist/react/components/ui/Pagination.js +0 -20
  353. package/dist/react/components/ui/Select.d.ts +0 -15
  354. package/dist/react/components/ui/Select.js +0 -27
  355. package/dist/react/components/ui/Skeleton.d.ts +0 -6
  356. package/dist/react/components/ui/Skeleton.js +0 -8
  357. package/dist/react/components/ui/TimezoneDisplay.d.ts +0 -22
  358. package/dist/react/components/ui/TimezoneDisplay.js +0 -83
  359. package/dist/react/components/ui/Tooltip.d.ts +0 -21
  360. package/dist/react/components/ui/Tooltip.js +0 -94
  361. package/dist/react/components/ui/data-table/DataTable.d.ts +0 -2
  362. package/dist/react/components/ui/data-table/DataTable.js +0 -22
  363. package/dist/react/components/ui/data-table/DataTableBody.d.ts +0 -19
  364. package/dist/react/components/ui/data-table/DataTableBody.js +0 -10
  365. package/dist/react/components/ui/data-table/DataTableBulkActions.d.ts +0 -17
  366. package/dist/react/components/ui/data-table/DataTableBulkActions.js +0 -12
  367. package/dist/react/components/ui/data-table/DataTableFilters.d.ts +0 -15
  368. package/dist/react/components/ui/data-table/DataTableFilters.js +0 -13
  369. package/dist/react/components/ui/data-table/DataTablePagination.d.ts +0 -10
  370. package/dist/react/components/ui/data-table/DataTablePagination.js +0 -11
  371. package/dist/react/components/ui/data-table/DataTableSearch.d.ts +0 -24
  372. package/dist/react/components/ui/data-table/DataTableSearch.js +0 -12
  373. package/dist/react/components/ui/data-table/index.d.ts +0 -13
  374. package/dist/react/components/ui/data-table/index.js +0 -42
  375. package/dist/react/components/ui/data-table/types.d.ts +0 -120
  376. package/dist/react/components/ui/data-table/types.js +0 -9
  377. package/dist/react/components/ui/loading-bar.d.ts +0 -20
  378. package/dist/react/components/ui/loading-bar.js +0 -15
  379. package/dist/react/error/error-display.d.ts +0 -48
  380. package/dist/react/error/error-display.js +0 -30
  381. package/dist/react/error/index.d.ts +0 -6
  382. package/dist/react/error/index.js +0 -30
  383. package/dist/react/hooks/useDataTable.d.ts +0 -96
  384. package/dist/react/hooks/useDataTable.js +0 -151
  385. package/dist/react/hooks/useDebounce.d.ts +0 -7
  386. package/dist/react/hooks/useDebounce.js +0 -7
  387. package/dist/react/hooks/useExitIntent.d.ts +0 -35
  388. package/dist/react/hooks/useExitIntent.js +0 -72
  389. package/dist/react/hooks/useTimezone.d.ts +0 -19
  390. package/dist/react/hooks/useTimezone.js +0 -11
  391. package/dist/react/utils/client-utils.d.ts +0 -3
  392. package/dist/react/utils/client-utils.js +0 -9
  393. package/dist/react/utils/qr-code.d.ts +0 -16
  394. package/dist/react/utils/qr-code.js +0 -215
  395. package/dist/{chunk-7PEVOMBO.js → chunk-AOWUPAPS.js} +0 -0
  396. package/dist/{chunk-VDRLJU6C.js → chunk-E2HYIONP.js} +3 -3
  397. package/dist/{chunk-7WG7XPXC.js → chunk-KKZCNF6U.js} +3 -3
  398. package/dist/{chunk-UQ3Z3ZAF.js → chunk-P7WHMKN5.js} +3 -3
  399. /package/dist/{chunk-M22Z2NO6.js → core/auth/services/refresh-token-store.js} +0 -0
@@ -1,193 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-4K76HG4V.js";
4
- import {
5
- __objRest,
6
- __spreadProps,
7
- __spreadValues
8
- } from "./chunk-ORMEWXMH.js";
9
-
10
- // src/react/components/ui/Select.tsx
11
- import * as SelectPrimitive from "@radix-ui/react-select";
12
- import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
13
- import { jsx, jsxs } from "react/jsx-runtime";
14
- function Select(_a) {
15
- var props = __objRest(_a, []);
16
- return /* @__PURE__ */ jsx(SelectPrimitive.Root, __spreadValues({ "data-slot": "select" }, props));
17
- }
18
- function SelectGroup(_a) {
19
- var props = __objRest(_a, []);
20
- return /* @__PURE__ */ jsx(SelectPrimitive.Group, __spreadValues({ "data-slot": "select-group" }, props));
21
- }
22
- function SelectValue(_a) {
23
- var props = __objRest(_a, []);
24
- return /* @__PURE__ */ jsx(SelectPrimitive.Value, __spreadValues({ "data-slot": "select-value" }, props));
25
- }
26
- function SelectTrigger(_a) {
27
- var _b = _a, {
28
- className,
29
- size = "default",
30
- children
31
- } = _b, props = __objRest(_b, [
32
- "className",
33
- "size",
34
- "children"
35
- ]);
36
- return /* @__PURE__ */ jsxs(
37
- SelectPrimitive.Trigger,
38
- __spreadProps(__spreadValues({
39
- "data-slot": "select-trigger",
40
- "data-size": size,
41
- className: cn(
42
- "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
43
- className
44
- )
45
- }, props), {
46
- children: [
47
- children,
48
- /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
49
- ]
50
- })
51
- );
52
- }
53
- function SelectContent(_a) {
54
- var _b = _a, {
55
- className,
56
- children,
57
- position = "popper"
58
- } = _b, props = __objRest(_b, [
59
- "className",
60
- "children",
61
- "position"
62
- ]);
63
- return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
64
- SelectPrimitive.Content,
65
- __spreadProps(__spreadValues({
66
- "data-slot": "select-content",
67
- className: cn(
68
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
69
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
70
- className
71
- ),
72
- position
73
- }, props), {
74
- children: [
75
- /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
76
- /* @__PURE__ */ jsx(
77
- SelectPrimitive.Viewport,
78
- {
79
- className: cn(
80
- "p-1",
81
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
82
- ),
83
- children
84
- }
85
- ),
86
- /* @__PURE__ */ jsx(SelectScrollDownButton, {})
87
- ]
88
- })
89
- ) });
90
- }
91
- function SelectLabel(_a) {
92
- var _b = _a, {
93
- className
94
- } = _b, props = __objRest(_b, [
95
- "className"
96
- ]);
97
- return /* @__PURE__ */ jsx(
98
- SelectPrimitive.Label,
99
- __spreadValues({
100
- "data-slot": "select-label",
101
- className: cn("text-muted-foreground px-2 py-1.5 text-xs", className)
102
- }, props)
103
- );
104
- }
105
- function SelectItem(_a) {
106
- var _b = _a, {
107
- className,
108
- children
109
- } = _b, props = __objRest(_b, [
110
- "className",
111
- "children"
112
- ]);
113
- return /* @__PURE__ */ jsxs(
114
- SelectPrimitive.Item,
115
- __spreadProps(__spreadValues({
116
- "data-slot": "select-item",
117
- className: cn(
118
- "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
119
- className
120
- )
121
- }, props), {
122
- children: [
123
- /* @__PURE__ */ jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
124
- /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
125
- ]
126
- })
127
- );
128
- }
129
- function SelectSeparator(_a) {
130
- var _b = _a, {
131
- className
132
- } = _b, props = __objRest(_b, [
133
- "className"
134
- ]);
135
- return /* @__PURE__ */ jsx(
136
- SelectPrimitive.Separator,
137
- __spreadValues({
138
- "data-slot": "select-separator",
139
- className: cn("bg-muted -mx-1 my-1 h-px", className)
140
- }, props)
141
- );
142
- }
143
- function SelectScrollUpButton(_a) {
144
- var _b = _a, {
145
- className
146
- } = _b, props = __objRest(_b, [
147
- "className"
148
- ]);
149
- return /* @__PURE__ */ jsx(
150
- SelectPrimitive.ScrollUpButton,
151
- __spreadProps(__spreadValues({
152
- "data-slot": "select-scroll-up-button",
153
- className: cn(
154
- "flex cursor-default items-center justify-center py-1",
155
- className
156
- )
157
- }, props), {
158
- children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
159
- })
160
- );
161
- }
162
- function SelectScrollDownButton(_a) {
163
- var _b = _a, {
164
- className
165
- } = _b, props = __objRest(_b, [
166
- "className"
167
- ]);
168
- return /* @__PURE__ */ jsx(
169
- SelectPrimitive.ScrollDownButton,
170
- __spreadProps(__spreadValues({
171
- "data-slot": "select-scroll-down-button",
172
- className: cn(
173
- "flex cursor-default items-center justify-center py-1",
174
- className
175
- )
176
- }, props), {
177
- children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
178
- })
179
- );
180
- }
181
-
182
- export {
183
- Select,
184
- SelectGroup,
185
- SelectValue,
186
- SelectTrigger,
187
- SelectContent,
188
- SelectLabel,
189
- SelectItem,
190
- SelectSeparator,
191
- SelectScrollUpButton,
192
- SelectScrollDownButton
193
- };
@@ -1,26 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-4K76HG4V.js";
4
- import {
5
- __objRest,
6
- __spreadValues
7
- } from "./chunk-ORMEWXMH.js";
8
-
9
- // src/react/components/ui/Label.tsx
10
- import { jsx } from "react/jsx-runtime";
11
- function Label(_a) {
12
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
13
- return /* @__PURE__ */ jsx(
14
- "label",
15
- __spreadValues({
16
- className: cn(
17
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
18
- className
19
- )
20
- }, props)
21
- );
22
- }
23
-
24
- export {
25
- Label
26
- };
@@ -1,105 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-4K76HG4V.js";
4
-
5
- // src/react/components/ui/Pagination.tsx
6
- import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
- function Pagination({ children, className }) {
9
- return /* @__PURE__ */ jsx(
10
- "nav",
11
- {
12
- className: cn("mx-auto flex w-full justify-center", className),
13
- role: "navigation",
14
- "aria-label": "pagination",
15
- children
16
- }
17
- );
18
- }
19
- function PaginationContent({ children, className }) {
20
- return /* @__PURE__ */ jsx("ul", { className: cn("flex flex-row items-center gap-1", className), children });
21
- }
22
- function PaginationItem({ children, className }) {
23
- return /* @__PURE__ */ jsx("li", { className: cn("", className), children });
24
- }
25
- function PaginationLink({
26
- children,
27
- href,
28
- onClick,
29
- isActive = false,
30
- className
31
- }) {
32
- return /* @__PURE__ */ jsx(
33
- "a",
34
- {
35
- href,
36
- onClick,
37
- className: cn(
38
- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
39
- isActive ? "h-10 px-4 bg-primary text-primary-foreground" : "h-10 px-4 hover:bg-accent hover:text-accent-foreground",
40
- className
41
- ),
42
- children
43
- }
44
- );
45
- }
46
- function PaginationPrevious({
47
- href,
48
- onClick,
49
- className,
50
- children
51
- }) {
52
- return /* @__PURE__ */ jsxs(
53
- "a",
54
- {
55
- href,
56
- onClick,
57
- className: cn(
58
- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 h-10 px-4 hover:bg-accent hover:text-accent-foreground",
59
- className
60
- ),
61
- children: [
62
- /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
63
- /* @__PURE__ */ jsx("span", { className: "ml-2", children: children || "Previous" })
64
- ]
65
- }
66
- );
67
- }
68
- function PaginationNext({
69
- href,
70
- onClick,
71
- className,
72
- children
73
- }) {
74
- return /* @__PURE__ */ jsxs(
75
- "a",
76
- {
77
- href,
78
- onClick,
79
- className: cn(
80
- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 h-10 px-4 hover:bg-accent hover:text-accent-foreground",
81
- className
82
- ),
83
- children: [
84
- /* @__PURE__ */ jsx("span", { className: "mr-2", children: children || "Next" }),
85
- /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })
86
- ]
87
- }
88
- );
89
- }
90
- function PaginationEllipsis({ className }) {
91
- return /* @__PURE__ */ jsxs("span", { className: cn("flex h-10 w-10 items-center justify-center", className), children: [
92
- /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }),
93
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
94
- ] });
95
- }
96
-
97
- export {
98
- Pagination,
99
- PaginationContent,
100
- PaginationItem,
101
- PaginationLink,
102
- PaginationPrevious,
103
- PaginationNext,
104
- PaginationEllipsis
105
- };
@@ -1,127 +0,0 @@
1
- import {
2
- formatLabel
3
- } from "./chunk-B5OH43PR.js";
4
- import {
5
- Pagination,
6
- PaginationContent,
7
- PaginationEllipsis,
8
- PaginationItem,
9
- PaginationLink,
10
- PaginationNext,
11
- PaginationPrevious
12
- } from "./chunk-J2MAXMIP.js";
13
-
14
- // src/react/components/ui/data-table/DataTablePagination.tsx
15
- import { jsx, jsxs } from "react/jsx-runtime";
16
- function DataTablePagination({
17
- pagination,
18
- labels
19
- }) {
20
- const totalPages = Math.ceil(pagination.total / pagination.pageSize);
21
- return /* @__PURE__ */ jsx("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-3 p-3 bg-muted/50 rounded-lg", children: /* @__PURE__ */ jsx(Pagination, { className: "w-full", children: /* @__PURE__ */ jsxs(PaginationContent, { className: "flex-wrap gap-1 justify-between w-full items-center", children: [
22
- /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground text-center sm:text-left whitespace-nowrap", children: formatLabel(labels.showing, {
23
- start: (pagination.page - 1) * pagination.pageSize + 1,
24
- end: Math.min(pagination.page * pagination.pageSize, pagination.total),
25
- total: pagination.total
26
- }) }),
27
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsxs(
28
- PaginationPrevious,
29
- {
30
- href: "#",
31
- onClick: (e) => {
32
- e.preventDefault();
33
- if (pagination.page > 1) pagination.onPageChange(pagination.page - 1);
34
- },
35
- className: pagination.page <= 1 ? "pointer-events-none opacity-50" : "",
36
- children: [
37
- /* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: labels.previous }),
38
- /* @__PURE__ */ jsx("span", { className: "sm:hidden", children: "\u2190" })
39
- ]
40
- }
41
- ) }),
42
- /* @__PURE__ */ jsx("div", { className: "hidden sm:flex", children: (() => {
43
- const pages = [];
44
- if (pagination.page > 3) {
45
- pages.push(
46
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(
47
- PaginationLink,
48
- {
49
- href: "#",
50
- onClick: (e) => {
51
- e.preventDefault();
52
- pagination.onPageChange(1);
53
- },
54
- children: "1"
55
- }
56
- ) }, 1)
57
- );
58
- if (pagination.page > 4) {
59
- pages.push(
60
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationEllipsis, {}) }, "ellipsis1")
61
- );
62
- }
63
- }
64
- for (let i = Math.max(1, pagination.page - 2); i <= Math.min(totalPages, pagination.page + 2); i++) {
65
- pages.push(
66
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(
67
- PaginationLink,
68
- {
69
- href: "#",
70
- isActive: i === pagination.page,
71
- onClick: (e) => {
72
- e.preventDefault();
73
- pagination.onPageChange(i);
74
- },
75
- children: i
76
- }
77
- ) }, i)
78
- );
79
- }
80
- if (pagination.page < totalPages - 2) {
81
- if (pagination.page < totalPages - 3) {
82
- pages.push(
83
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationEllipsis, {}) }, "ellipsis2")
84
- );
85
- }
86
- pages.push(
87
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(
88
- PaginationLink,
89
- {
90
- href: "#",
91
- onClick: (e) => {
92
- e.preventDefault();
93
- pagination.onPageChange(totalPages);
94
- },
95
- children: totalPages
96
- }
97
- ) }, totalPages)
98
- );
99
- }
100
- return pages;
101
- })() }),
102
- /* @__PURE__ */ jsx("div", { className: "sm:hidden", children: /* @__PURE__ */ jsxs("span", { className: "px-3 py-2 text-sm font-medium", children: [
103
- pagination.page,
104
- " / ",
105
- totalPages
106
- ] }) }),
107
- /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsxs(
108
- PaginationNext,
109
- {
110
- href: "#",
111
- onClick: (e) => {
112
- e.preventDefault();
113
- if (pagination.page < totalPages) pagination.onPageChange(pagination.page + 1);
114
- },
115
- className: pagination.page >= totalPages ? "pointer-events-none opacity-50" : "",
116
- children: [
117
- /* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: labels.next }),
118
- /* @__PURE__ */ jsx("span", { className: "sm:hidden", children: "\u2192" })
119
- ]
120
- }
121
- ) })
122
- ] }) }) });
123
- }
124
-
125
- export {
126
- DataTablePagination
127
- };
@@ -1,31 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-4K76HG4V.js";
4
-
5
- // src/react/components/ui/Alert.tsx
6
- import { jsx } from "react/jsx-runtime";
7
- function Alert({ variant = "default", children, className }) {
8
- const variantClasses = {
9
- default: "bg-background text-foreground",
10
- destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
11
- };
12
- return /* @__PURE__ */ jsx(
13
- "div",
14
- {
15
- className: cn(
16
- "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
17
- variantClasses[variant],
18
- className
19
- ),
20
- children
21
- }
22
- );
23
- }
24
- function AlertDescription({ children, className }) {
25
- return /* @__PURE__ */ jsx("div", { className: cn("text-sm [&_p]:leading-relaxed", className), children });
26
- }
27
-
28
- export {
29
- Alert,
30
- AlertDescription
31
- };
@@ -1,24 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-4K76HG4V.js";
4
-
5
- // src/react/components/ui/Badge.tsx
6
- import { jsx } from "react/jsx-runtime";
7
- function Badge({
8
- children,
9
- variant = "default",
10
- className
11
- }) {
12
- const baseClasses = "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2";
13
- const variantClasses = {
14
- default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
15
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
16
- destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
17
- outline: "text-foreground"
18
- };
19
- return /* @__PURE__ */ jsx("div", { className: cn(baseClasses, variantClasses[variant], className), children });
20
- }
21
-
22
- export {
23
- Badge
24
- };
@@ -1,80 +0,0 @@
1
- import {
2
- getTimezoneOffset,
3
- getUserTimezone
4
- } from "./chunk-WWOYFWFB.js";
5
- import {
6
- __spreadProps,
7
- __spreadValues
8
- } from "./chunk-ORMEWXMH.js";
9
-
10
- // src/react/hooks/useTimezone.ts
11
- import { useState, useEffect, useCallback } from "react";
12
- function useTimezone() {
13
- const [timezoneInfo, setTimezoneInfo] = useState({
14
- timezone: "UTC",
15
- offset: 0,
16
- offsetFormatted: "+00:00"
17
- });
18
- const [isLoading, setIsLoading] = useState(true);
19
- useEffect(() => {
20
- try {
21
- const timezone = getUserTimezone();
22
- const offset = getTimezoneOffset();
23
- const offsetFormatted = formatOffset(offset);
24
- setTimezoneInfo({
25
- timezone,
26
- offset,
27
- offsetFormatted
28
- });
29
- } catch (error) {
30
- console.warn("Cannot get timezone information:", error);
31
- setTimezoneInfo({
32
- timezone: "UTC",
33
- offset: 0,
34
- offsetFormatted: "+00:00"
35
- });
36
- } finally {
37
- setIsLoading(false);
38
- }
39
- }, []);
40
- const formatOffset = useCallback((offsetMinutes) => {
41
- const absOffset = Math.abs(offsetMinutes);
42
- const hours = Math.floor(absOffset / 60);
43
- const minutes = absOffset % 60;
44
- const sign = offsetMinutes <= 0 ? "+" : "-";
45
- return `${sign}${hours.toString().padStart(2, "0")}:${minutes.toString().padStart(2, "0")}`;
46
- }, []);
47
- const refreshTimezone = useCallback(() => {
48
- try {
49
- const timezone = getUserTimezone();
50
- const offset = getTimezoneOffset();
51
- const offsetFormatted = formatOffset(offset);
52
- setTimezoneInfo({
53
- timezone,
54
- offset,
55
- offsetFormatted
56
- });
57
- } catch (error) {
58
- console.error("Failed to refresh timezone information:", error);
59
- }
60
- }, [formatOffset]);
61
- return __spreadProps(__spreadValues({}, timezoneInfo), {
62
- isLoading,
63
- refreshTimezone
64
- });
65
- }
66
- function useSimpleTimezone() {
67
- const { timezone, offsetFormatted, isLoading } = useTimezone();
68
- return {
69
- timezone,
70
- offsetFormatted,
71
- isLoading,
72
- // 간단한 표시용
73
- display: `${timezone} (${offsetFormatted})`
74
- };
75
- }
76
-
77
- export {
78
- useTimezone,
79
- useSimpleTimezone
80
- };