@withwiz/toolkit 0.1.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 (380) hide show
  1. package/README.md +162 -0
  2. package/dist/auth/adapters/prisma/index.d.ts +43 -0
  3. package/dist/auth/adapters/prisma/index.js +284 -0
  4. package/dist/auth/core/email/token-generator.d.ts +43 -0
  5. package/dist/auth/core/email/token-generator.js +7 -0
  6. package/dist/auth/core/jwt/client.d.ts +87 -0
  7. package/dist/auth/core/jwt/client.js +36 -0
  8. package/dist/auth/core/jwt/index.d.ts +110 -0
  9. package/dist/auth/core/jwt/index.js +10 -0
  10. package/dist/auth/core/jwt/types.d.ts +6 -0
  11. package/dist/auth/core/jwt/types.js +13 -0
  12. package/dist/auth/core/oauth/index.d.ts +51 -0
  13. package/dist/auth/core/oauth/index.js +12 -0
  14. package/dist/auth/core/password/client-helper.d.ts +44 -0
  15. package/dist/auth/core/password/client-helper.js +28 -0
  16. package/dist/auth/core/password/index.d.ts +71 -0
  17. package/dist/auth/core/password/index.js +14 -0
  18. package/dist/auth/errors/index.d.ts +49 -0
  19. package/dist/auth/errors/index.js +17 -0
  20. package/dist/auth/index.d.ts +21 -0
  21. package/dist/auth/index.js +97 -0
  22. package/dist/auth/types/index.d.ts +213 -0
  23. package/dist/auth/types/index.js +13 -0
  24. package/dist/cache/cache-config.d.ts +73 -0
  25. package/dist/cache/cache-config.js +12 -0
  26. package/dist/cache/cache-defaults.d.ts +141 -0
  27. package/dist/cache/cache-defaults.js +33 -0
  28. package/dist/cache/cache-env.d.ts +75 -0
  29. package/dist/cache/cache-env.js +25 -0
  30. package/dist/cache/cache-factory.d.ts +34 -0
  31. package/dist/cache/cache-factory.js +28 -0
  32. package/dist/cache/cache-invalidation.d.ts +90 -0
  33. package/dist/cache/cache-invalidation.js +24 -0
  34. package/dist/cache/cache-keys-legacy.d.ts +35 -0
  35. package/dist/cache/cache-keys-legacy.js +7 -0
  36. package/dist/cache/cache-redis.d.ts +74 -0
  37. package/dist/cache/cache-redis.js +24 -0
  38. package/dist/cache/cache-types.d.ts +151 -0
  39. package/dist/cache/cache-types.js +9 -0
  40. package/dist/cache/cache-wrapper.d.ts +27 -0
  41. package/dist/cache/cache-wrapper.js +22 -0
  42. package/dist/cache/cache.d.ts +14 -0
  43. package/dist/cache/cache.js +112 -0
  44. package/dist/cache/hybrid-cache-manager.d.ts +148 -0
  45. package/dist/cache/hybrid-cache-manager.js +13 -0
  46. package/dist/cache/index.d.ts +21 -0
  47. package/dist/cache/index.js +112 -0
  48. package/dist/cache/inmemory-cache-manager.d.ts +163 -0
  49. package/dist/cache/inmemory-cache-manager.js +9 -0
  50. package/dist/cache/noop-cache-manager.d.ts +36 -0
  51. package/dist/cache/noop-cache-manager.js +11 -0
  52. package/dist/cache/redis-cache-manager.d.ts +34 -0
  53. package/dist/cache/redis-cache-manager.js +11 -0
  54. package/dist/chunk-26Y7VEYG.js +93 -0
  55. package/dist/chunk-2DVWSDST.js +119 -0
  56. package/dist/chunk-2KAPUVIS.js +155 -0
  57. package/dist/chunk-2TO7WUKK.js +93 -0
  58. package/dist/chunk-34WAGUT5.js +117 -0
  59. package/dist/chunk-3DZA6AGS.js +120 -0
  60. package/dist/chunk-4DPSCTX4.js +212 -0
  61. package/dist/chunk-4KJXENRM.js +64 -0
  62. package/dist/chunk-4NWJ3WCZ.js +28 -0
  63. package/dist/chunk-4ODT3Q4A.js +86 -0
  64. package/dist/chunk-5ATB5D6S.js +40 -0
  65. package/dist/chunk-62FLBG6B.js +34 -0
  66. package/dist/chunk-62Q7DN5G.js +25 -0
  67. package/dist/chunk-65LHDFU3.js +242 -0
  68. package/dist/chunk-6C7HQIX4.js +13 -0
  69. package/dist/chunk-6D3HHYER.js +32 -0
  70. package/dist/chunk-6LTZCXNC.js +326 -0
  71. package/dist/chunk-7VJNLGAS.js +110 -0
  72. package/dist/chunk-7XFHGAJP.js +0 -0
  73. package/dist/chunk-A6EAAWMK.js +50 -0
  74. package/dist/chunk-AHDPGRXS.js +51 -0
  75. package/dist/chunk-AIH3F7JV.js +76 -0
  76. package/dist/chunk-AIHQBQ3E.js +109 -0
  77. package/dist/chunk-BKGVSC6S.js +152 -0
  78. package/dist/chunk-COK4ZXNG.js +0 -0
  79. package/dist/chunk-DEEJBDJE.js +47 -0
  80. package/dist/chunk-DH2ZHGW2.js +53 -0
  81. package/dist/chunk-EBUEBEJX.js +0 -0
  82. package/dist/chunk-EEUBKZV4.js +54 -0
  83. package/dist/chunk-EQYTE7WD.js +139 -0
  84. package/dist/chunk-EUQATJLI.js +180 -0
  85. package/dist/chunk-EZC6ETFW.js +80 -0
  86. package/dist/chunk-EZR55KV2.js +249 -0
  87. package/dist/chunk-F6LCSFSU.js +31 -0
  88. package/dist/chunk-FOKAATUQ.js +62 -0
  89. package/dist/chunk-FW3IEJ7H.js +71 -0
  90. package/dist/chunk-G26T2PRQ.js +53 -0
  91. package/dist/chunk-G4NI37NN.js +257 -0
  92. package/dist/chunk-GCZOXUDV.js +132 -0
  93. package/dist/chunk-GDWEDUHO.js +55 -0
  94. package/dist/chunk-GL2NANFH.js +434 -0
  95. package/dist/chunk-GPBOMJSZ.js +136 -0
  96. package/dist/chunk-H5I5GWAA.js +94 -0
  97. package/dist/chunk-HGC4CCKB.js +29 -0
  98. package/dist/chunk-HV3DGSSH.js +447 -0
  99. package/dist/chunk-I47QEDTX.js +193 -0
  100. package/dist/chunk-IAJNC34M.js +102 -0
  101. package/dist/chunk-IHXRF3BH.js +215 -0
  102. package/dist/chunk-IJEZ7G7S.js +26 -0
  103. package/dist/chunk-IQQKKUAV.js +151 -0
  104. package/dist/chunk-JBCDEAMW.js +35 -0
  105. package/dist/chunk-JLLMTTQ4.js +75 -0
  106. package/dist/chunk-JS5VI3OW.js +143 -0
  107. package/dist/chunk-KAWVMIRJ.js +44 -0
  108. package/dist/chunk-KMCJIL57.js +214 -0
  109. package/dist/chunk-KWTBD4CM.js +145 -0
  110. package/dist/chunk-KXAWBFJN.js +310 -0
  111. package/dist/chunk-L25BNU3E.js +56 -0
  112. package/dist/chunk-L76O3X3D.js +197 -0
  113. package/dist/chunk-LNV2E4I6.js +63 -0
  114. package/dist/chunk-MLGO3HLS.js +329 -0
  115. package/dist/chunk-MRJE6OX5.js +22 -0
  116. package/dist/chunk-MYLGYX4K.js +57 -0
  117. package/dist/chunk-N4YGR5WH.js +310 -0
  118. package/dist/chunk-OIVXOT2X.js +80 -0
  119. package/dist/chunk-ORMEWXMH.js +37 -0
  120. package/dist/chunk-POKGHK3L.js +57 -0
  121. package/dist/chunk-Q7IP4JMW.js +69 -0
  122. package/dist/chunk-RJUVBBZG.js +27 -0
  123. package/dist/chunk-S73334QY.js +89 -0
  124. package/dist/chunk-SLG26KHZ.js +101 -0
  125. package/dist/chunk-SR65BF6X.js +82 -0
  126. package/dist/chunk-SS56XFLI.js +19 -0
  127. package/dist/chunk-T3LJYAMO.js +277 -0
  128. package/dist/chunk-TDZJ6SAI.js +34 -0
  129. package/dist/chunk-TEIYA7U4.js +72 -0
  130. package/dist/chunk-TMVS4F7E.js +88 -0
  131. package/dist/chunk-TRBKJ7JT.js +137 -0
  132. package/dist/chunk-TXGNSECL.js +84 -0
  133. package/dist/chunk-TZAP5T4N.js +188 -0
  134. package/dist/chunk-UCYQNHST.js +24 -0
  135. package/dist/chunk-ULF5RDDX.js +0 -0
  136. package/dist/chunk-UXQRU3EM.js +167 -0
  137. package/dist/chunk-V5K5FYU7.js +200 -0
  138. package/dist/chunk-VDXB5DCY.js +68 -0
  139. package/dist/chunk-VSGKVZB4.js +47 -0
  140. package/dist/chunk-VWODEQ5C.js +204 -0
  141. package/dist/chunk-WDUFQFDP.js +193 -0
  142. package/dist/chunk-WHR7HPWF.js +126 -0
  143. package/dist/chunk-WSQMXMTL.js +122 -0
  144. package/dist/chunk-XHZ5L4FO.js +103 -0
  145. package/dist/chunk-XPASCCUA.js +404 -0
  146. package/dist/chunk-XRRPEBKB.js +231 -0
  147. package/dist/chunk-Y2TUZFCP.js +0 -0
  148. package/dist/chunk-Y3OTJH2S.js +473 -0
  149. package/dist/chunk-YBSHN67U.js +161 -0
  150. package/dist/chunk-YJ3TLEW3.js +100 -0
  151. package/dist/chunk-YJWLWUFK.js +105 -0
  152. package/dist/chunk-Z4D4CMDA.js +488 -0
  153. package/dist/chunk-ZHVUK5OY.js +314 -0
  154. package/dist/chunk-ZTN4X5FN.js +29 -0
  155. package/dist/chunk-ZZIKRBJU.js +96 -0
  156. package/dist/components/ui/Alert.d.ts +12 -0
  157. package/dist/components/ui/Alert.js +10 -0
  158. package/dist/components/ui/Badge.d.ts +7 -0
  159. package/dist/components/ui/Badge.js +8 -0
  160. package/dist/components/ui/Button.d.ts +7 -0
  161. package/dist/components/ui/Button.js +8 -0
  162. package/dist/components/ui/DataTable.d.ts +103 -0
  163. package/dist/components/ui/DataTable.js +606 -0
  164. package/dist/components/ui/DomainDisplay.d.ts +12 -0
  165. package/dist/components/ui/DomainDisplay.js +31 -0
  166. package/dist/components/ui/Input.d.ts +5 -0
  167. package/dist/components/ui/Input.js +8 -0
  168. package/dist/components/ui/Label.d.ts +5 -0
  169. package/dist/components/ui/Label.js +8 -0
  170. package/dist/components/ui/Pagination.d.ts +42 -0
  171. package/dist/components/ui/Pagination.js +20 -0
  172. package/dist/components/ui/Select.d.ts +15 -0
  173. package/dist/components/ui/Select.js +27 -0
  174. package/dist/components/ui/Skeleton.d.ts +6 -0
  175. package/dist/components/ui/Skeleton.js +8 -0
  176. package/dist/components/ui/TimezoneDisplay.d.ts +22 -0
  177. package/dist/components/ui/TimezoneDisplay.js +83 -0
  178. package/dist/components/ui/Tooltip.d.ts +21 -0
  179. package/dist/components/ui/Tooltip.js +94 -0
  180. package/dist/components/ui/WorldMapChart.d.ts +17 -0
  181. package/dist/components/ui/WorldMapChart.js +250 -0
  182. package/dist/components/ui/loading-bar.d.ts +20 -0
  183. package/dist/components/ui/loading-bar.js +15 -0
  184. package/dist/constants/error-codes.d.ts +389 -0
  185. package/dist/constants/error-codes.js +27 -0
  186. package/dist/constants/index.d.ts +11 -0
  187. package/dist/constants/index.js +85 -0
  188. package/dist/constants/messages.d.ts +83 -0
  189. package/dist/constants/messages.js +13 -0
  190. package/dist/constants/pagination.d.ts +43 -0
  191. package/dist/constants/pagination.js +15 -0
  192. package/dist/constants/security.d.ts +66 -0
  193. package/dist/constants/security.js +23 -0
  194. package/dist/constants/validation.d.ts +60 -0
  195. package/dist/constants/validation.js +19 -0
  196. package/dist/error/ErrorBoundary.d.ts +47 -0
  197. package/dist/error/app-error.d.ts +144 -0
  198. package/dist/error/app-error.js +10 -0
  199. package/dist/error/components/EmptyState.d.ts +50 -0
  200. package/dist/error/components/ErrorAlert.d.ts +50 -0
  201. package/dist/error/components/ErrorPage.d.ts +39 -0
  202. package/dist/error/components/LoadingState.d.ts +37 -0
  203. package/dist/error/components/index.d.ts +13 -0
  204. package/dist/error/components/index.js +18 -0
  205. package/dist/error/core/locale-detector.d.ts +44 -0
  206. package/dist/error/core/locale-detector.js +9 -0
  207. package/dist/error/error-display.d.ts +55 -0
  208. package/dist/error/error-display.js +24 -0
  209. package/dist/error/error-handler.d.ts +118 -0
  210. package/dist/error/error-handler.js +18 -0
  211. package/dist/error/friendly-messages-v2.d.ts +46 -0
  212. package/dist/error/friendly-messages-v2.js +15 -0
  213. package/dist/error/friendly-messages.d.ts +22 -0
  214. package/dist/error/friendly-messages.js +12 -0
  215. package/dist/error/hooks/index.d.ts +7 -0
  216. package/dist/error/hooks/index.js +14 -0
  217. package/dist/error/hooks/useErrorHandler.d.ts +67 -0
  218. package/dist/error/hooks/useErrorHandler.js +14 -0
  219. package/dist/error/index.d.ts +26 -0
  220. package/dist/error/index.js +289 -0
  221. package/dist/error/logging/error-logger.d.ts +77 -0
  222. package/dist/error/logging/error-logger.js +10 -0
  223. package/dist/error/logging/index.d.ts +9 -0
  224. package/dist/error/logging/index.js +35 -0
  225. package/dist/error/logging/transports/base.d.ts +30 -0
  226. package/dist/error/logging/transports/base.js +7 -0
  227. package/dist/error/logging/transports/console.d.ts +40 -0
  228. package/dist/error/logging/transports/console.js +9 -0
  229. package/dist/error/logging/transports/file.d.ts +49 -0
  230. package/dist/error/logging/transports/file.js +8 -0
  231. package/dist/error/logging/transports/index.d.ts +12 -0
  232. package/dist/error/logging/transports/index.js +25 -0
  233. package/dist/error/logging/transports/sentry.d.ts +44 -0
  234. package/dist/error/logging/transports/sentry.js +9 -0
  235. package/dist/error/logging/transports/slack.d.ts +51 -0
  236. package/dist/error/logging/transports/slack.js +9 -0
  237. package/dist/error/logging/types.d.ts +83 -0
  238. package/dist/error/logging/types.js +7 -0
  239. package/dist/error/messages/en.d.ts +5 -0
  240. package/dist/error/messages/en.js +7 -0
  241. package/dist/error/messages/index.d.ts +40 -0
  242. package/dist/error/messages/index.js +17 -0
  243. package/dist/error/messages/ko.d.ts +5 -0
  244. package/dist/error/messages/ko.js +7 -0
  245. package/dist/error/messages/types.d.ts +30 -0
  246. package/dist/error/messages/types.js +0 -0
  247. package/dist/error/recovery/circuit-breaker.d.ts +85 -0
  248. package/dist/error/recovery/circuit-breaker.js +9 -0
  249. package/dist/error/recovery/degradation.d.ts +56 -0
  250. package/dist/error/recovery/degradation.js +7 -0
  251. package/dist/error/recovery/fallback.d.ts +55 -0
  252. package/dist/error/recovery/fallback.js +11 -0
  253. package/dist/error/recovery/index.d.ts +12 -0
  254. package/dist/error/recovery/index.js +26 -0
  255. package/dist/error/recovery/retry.d.ts +44 -0
  256. package/dist/error/recovery/retry.js +7 -0
  257. package/dist/geolocation/batch-processor.d.ts +33 -0
  258. package/dist/geolocation/batch-processor.js +10 -0
  259. package/dist/geolocation/index.d.ts +14 -0
  260. package/dist/geolocation/index.js +36 -0
  261. package/dist/geolocation/providers/base-provider.d.ts +33 -0
  262. package/dist/geolocation/providers/base-provider.js +9 -0
  263. package/dist/geolocation/providers/index.d.ts +54 -0
  264. package/dist/geolocation/providers/index.js +29 -0
  265. package/dist/geolocation/providers/ip-api-provider.d.ts +17 -0
  266. package/dist/geolocation/providers/ip-api-provider.js +8 -0
  267. package/dist/geolocation/providers/ipapi-co-provider.d.ts +17 -0
  268. package/dist/geolocation/providers/ipapi-co-provider.js +8 -0
  269. package/dist/geolocation/providers/ipgeolocation-provider.d.ts +18 -0
  270. package/dist/geolocation/providers/ipgeolocation-provider.js +8 -0
  271. package/dist/geolocation/providers/maxmind-provider.d.ts +18 -0
  272. package/dist/geolocation/providers/maxmind-provider.js +8 -0
  273. package/dist/hooks/useDataTable.d.ts +51 -0
  274. package/dist/hooks/useDataTable.js +149 -0
  275. package/dist/hooks/useDebounce.d.ts +7 -0
  276. package/dist/hooks/useDebounce.js +7 -0
  277. package/dist/hooks/useExitIntent.d.ts +35 -0
  278. package/dist/hooks/useExitIntent.js +72 -0
  279. package/dist/hooks/useTimezone.d.ts +19 -0
  280. package/dist/hooks/useTimezone.js +11 -0
  281. package/dist/logger/logger.d.ts +11 -0
  282. package/dist/logger/logger.js +17 -0
  283. package/dist/middleware/auth.d.ts +87 -0
  284. package/dist/middleware/auth.js +20 -0
  285. package/dist/middleware/cors.d.ts +30 -0
  286. package/dist/middleware/cors.js +10 -0
  287. package/dist/middleware/error-handler.d.ts +23 -0
  288. package/dist/middleware/error-handler.js +13 -0
  289. package/dist/middleware/index.d.ts +16 -0
  290. package/dist/middleware/index.js +72 -0
  291. package/dist/middleware/init-request.d.ts +18 -0
  292. package/dist/middleware/init-request.js +8 -0
  293. package/dist/middleware/middleware-chain.d.ts +53 -0
  294. package/dist/middleware/middleware-chain.js +8 -0
  295. package/dist/middleware/rate-limit.d.ts +82 -0
  296. package/dist/middleware/rate-limit.js +14 -0
  297. package/dist/middleware/response-logger.d.ts +22 -0
  298. package/dist/middleware/response-logger.js +8 -0
  299. package/dist/middleware/security.d.ts +31 -0
  300. package/dist/middleware/security.js +9 -0
  301. package/dist/middleware/types.d.ts +45 -0
  302. package/dist/middleware/types.js +0 -0
  303. package/dist/middleware/wrappers.d.ts +91 -0
  304. package/dist/middleware/wrappers.js +32 -0
  305. package/dist/storage/r2-storage.d.ts +38 -0
  306. package/dist/storage/r2-storage.js +105 -0
  307. package/dist/system/cpu.d.ts +2 -0
  308. package/dist/system/cpu.js +9 -0
  309. package/dist/system/disk.d.ts +2 -0
  310. package/dist/system/disk.js +9 -0
  311. package/dist/system/environment.d.ts +8 -0
  312. package/dist/system/environment.js +9 -0
  313. package/dist/system/health-check.d.ts +26 -0
  314. package/dist/system/health-check.js +10 -0
  315. package/dist/system/index.d.ts +51 -0
  316. package/dist/system/index.js +194 -0
  317. package/dist/system/memory.d.ts +2 -0
  318. package/dist/system/memory.js +9 -0
  319. package/dist/system/network.d.ts +2 -0
  320. package/dist/system/network.js +9 -0
  321. package/dist/system/types.d.ts +93 -0
  322. package/dist/system/types.js +0 -0
  323. package/dist/system/utils.d.ts +12 -0
  324. package/dist/system/utils.js +26 -0
  325. package/dist/types/api.d.ts +80 -0
  326. package/dist/types/api.js +0 -0
  327. package/dist/types/database.d.ts +38 -0
  328. package/dist/types/database.js +0 -0
  329. package/dist/types/env.d.ts +105 -0
  330. package/dist/types/env.js +0 -0
  331. package/dist/types/geoip.d.ts +152 -0
  332. package/dist/types/geoip.js +0 -0
  333. package/dist/types/i18n.d.ts +11 -0
  334. package/dist/types/i18n.js +0 -0
  335. package/dist/types/qr-code.d.ts +139 -0
  336. package/dist/types/qr-code.js +75 -0
  337. package/dist/types/user.d.ts +54 -0
  338. package/dist/types/user.js +0 -0
  339. package/dist/utils/api-helpers.d.ts +147 -0
  340. package/dist/utils/api-helpers.js +30 -0
  341. package/dist/utils/client/client-utils.d.ts +3 -0
  342. package/dist/utils/client/client-utils.js +9 -0
  343. package/dist/utils/client/qr-code.d.ts +16 -0
  344. package/dist/utils/client/qr-code.js +215 -0
  345. package/dist/utils/cors.d.ts +40 -0
  346. package/dist/utils/cors.js +21 -0
  347. package/dist/utils/csv-export.d.ts +97 -0
  348. package/dist/utils/csv-export.js +20 -0
  349. package/dist/utils/error-message-formatter.d.ts +17 -0
  350. package/dist/utils/error-message-formatter.js +11 -0
  351. package/dist/utils/error-processor.d.ts +70 -0
  352. package/dist/utils/error-processor.js +34 -0
  353. package/dist/utils/format-number.d.ts +17 -0
  354. package/dist/utils/format-number.js +9 -0
  355. package/dist/utils/index.d.ts +13 -0
  356. package/dist/utils/index.js +160 -0
  357. package/dist/utils/input-validation.d.ts +88 -0
  358. package/dist/utils/input-validation.js +223 -0
  359. package/dist/utils/ip-utils.d.ts +15 -0
  360. package/dist/utils/ip-utils.js +91 -0
  361. package/dist/utils/optimistic-lock.d.ts +27 -0
  362. package/dist/utils/optimistic-lock.js +16 -0
  363. package/dist/utils/sanitizer.d.ts +72 -0
  364. package/dist/utils/sanitizer.js +19 -0
  365. package/dist/utils/shared-utils.d.ts +25 -0
  366. package/dist/utils/shared-utils.js +43 -0
  367. package/dist/utils/short-code-generator.d.ts +24 -0
  368. package/dist/utils/short-code-generator.js +9 -0
  369. package/dist/utils/timezone.d.ts +56 -0
  370. package/dist/utils/timezone.js +29 -0
  371. package/dist/utils/type-guards.d.ts +164 -0
  372. package/dist/utils/type-guards.js +59 -0
  373. package/dist/utils/url-normalizer.d.ts +53 -0
  374. package/dist/utils/url-normalizer.js +21 -0
  375. package/dist/validators/index.d.ts +7 -0
  376. package/dist/validators/index.js +13 -0
  377. package/dist/validators/password-validator.d.ts +86 -0
  378. package/dist/validators/password-validator.js +13 -0
  379. package/dist/world_countries-C2WUL2CQ.js +279 -0
  380. package/package.json +129 -0
@@ -0,0 +1,314 @@
1
+ import {
2
+ getErrorDisplayInfo
3
+ } from "./chunk-POKGHK3L.js";
4
+
5
+ // src/error/components/ErrorPage.tsx
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ function ErrorPage({
8
+ code,
9
+ locale = "ko",
10
+ showHomeButton = true,
11
+ homeUrl = "/",
12
+ showRetryButton = false,
13
+ onRetry,
14
+ additionalMessage
15
+ }) {
16
+ const errorInfo = getErrorDisplayInfo(code, locale);
17
+ return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen items-center justify-center bg-gray-50 px-4 py-12 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-md space-y-8 text-center", children: [
18
+ /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx("span", { className: "text-6xl", role: "img", "aria-label": "error-icon", children: errorInfo.icon }) }),
19
+ /* @__PURE__ */ jsxs("div", { className: "text-sm font-medium text-gray-500", children: [
20
+ locale === "ko" ? "\uC624\uB958 \uCF54\uB4DC" : "Error Code",
21
+ ": ",
22
+ code
23
+ ] }),
24
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold tracking-tight text-gray-900", children: errorInfo.title }) }),
25
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
26
+ /* @__PURE__ */ jsx("p", { className: "text-base text-gray-600", children: errorInfo.description }),
27
+ errorInfo.action && /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-500", children: errorInfo.action }),
28
+ additionalMessage && /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-500", children: additionalMessage })
29
+ ] }),
30
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:justify-center", children: [
31
+ showHomeButton && /* @__PURE__ */ jsx(
32
+ "a",
33
+ {
34
+ href: homeUrl,
35
+ className: "inline-flex items-center justify-center rounded-md border border-transparent bg-blue-600 px-6 py-3 text-base font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
36
+ children: locale === "ko" ? "\uD648\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30" : "Go to Home"
37
+ }
38
+ ),
39
+ showRetryButton && onRetry && /* @__PURE__ */ jsx(
40
+ "button",
41
+ {
42
+ onClick: onRetry,
43
+ className: "inline-flex items-center justify-center rounded-md border border-gray-300 bg-white px-6 py-3 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
44
+ children: locale === "ko" ? "\uB2E4\uC2DC \uC2DC\uB3C4" : "Retry"
45
+ }
46
+ )
47
+ ] })
48
+ ] }) });
49
+ }
50
+
51
+ // src/error/components/ErrorAlert.tsx
52
+ import { useState } from "react";
53
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
54
+ var severityColors = {
55
+ info: {
56
+ bg: "bg-blue-50",
57
+ border: "border-blue-200",
58
+ text: "text-blue-800",
59
+ icon: "text-blue-400"
60
+ },
61
+ warning: {
62
+ bg: "bg-yellow-50",
63
+ border: "border-yellow-200",
64
+ text: "text-yellow-800",
65
+ icon: "text-yellow-400"
66
+ },
67
+ error: {
68
+ bg: "bg-red-50",
69
+ border: "border-red-200",
70
+ text: "text-red-800",
71
+ icon: "text-red-400"
72
+ },
73
+ critical: {
74
+ bg: "bg-red-100",
75
+ border: "border-red-300",
76
+ text: "text-red-900",
77
+ icon: "text-red-500"
78
+ }
79
+ };
80
+ function ErrorAlert({
81
+ code,
82
+ locale = "ko",
83
+ dismissible = false,
84
+ onDismiss,
85
+ actionText,
86
+ onAction,
87
+ additionalMessage,
88
+ icon: customIcon,
89
+ variant = "filled"
90
+ }) {
91
+ const [isVisible, setIsVisible] = useState(true);
92
+ const errorInfo = getErrorDisplayInfo(code, locale);
93
+ const colors = severityColors[errorInfo.severity];
94
+ const handleDismiss = () => {
95
+ setIsVisible(false);
96
+ onDismiss == null ? void 0 : onDismiss();
97
+ };
98
+ if (!isVisible) {
99
+ return null;
100
+ }
101
+ return /* @__PURE__ */ jsxs2(
102
+ "div",
103
+ {
104
+ className: `rounded-lg ${variant === "filled" ? colors.bg : "bg-white"} border ${colors.border} p-4`,
105
+ role: "alert",
106
+ children: [
107
+ /* @__PURE__ */ jsxs2("div", { className: "flex", children: [
108
+ /* @__PURE__ */ jsx2("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx2(
109
+ "span",
110
+ {
111
+ className: `text-xl ${colors.icon}`,
112
+ role: "img",
113
+ "aria-label": "error-icon",
114
+ children: customIcon || errorInfo.icon
115
+ }
116
+ ) }),
117
+ /* @__PURE__ */ jsxs2("div", { className: "ml-3 flex-1", children: [
118
+ /* @__PURE__ */ jsx2("h3", { className: `text-sm font-medium ${colors.text}`, children: errorInfo.title }),
119
+ /* @__PURE__ */ jsxs2("div", { className: `mt-2 text-sm ${colors.text}`, children: [
120
+ /* @__PURE__ */ jsx2("p", { children: errorInfo.description }),
121
+ errorInfo.action && /* @__PURE__ */ jsx2("p", { className: "mt-1 text-xs opacity-80", children: errorInfo.action }),
122
+ additionalMessage && /* @__PURE__ */ jsx2("p", { className: "mt-1 text-xs opacity-80", children: additionalMessage })
123
+ ] }),
124
+ actionText && onAction && /* @__PURE__ */ jsx2("div", { className: "mt-3", children: /* @__PURE__ */ jsx2(
125
+ "button",
126
+ {
127
+ onClick: onAction,
128
+ className: `rounded-md px-3 py-2 text-sm font-medium ${colors.text} hover:bg-opacity-20 focus:outline-none focus:ring-2 focus:ring-offset-2`,
129
+ children: actionText
130
+ }
131
+ ) })
132
+ ] }),
133
+ dismissible && /* @__PURE__ */ jsx2("div", { className: "ml-auto flex-shrink-0 pl-3", children: /* @__PURE__ */ jsxs2(
134
+ "button",
135
+ {
136
+ onClick: handleDismiss,
137
+ className: `inline-flex rounded-md ${colors.text} hover:bg-opacity-20 focus:outline-none focus:ring-2 focus:ring-offset-2`,
138
+ "aria-label": "Close",
139
+ children: [
140
+ /* @__PURE__ */ jsx2("span", { className: "sr-only", children: "Close" }),
141
+ /* @__PURE__ */ jsx2(
142
+ "svg",
143
+ {
144
+ className: "h-5 w-5",
145
+ xmlns: "http://www.w3.org/2000/svg",
146
+ viewBox: "0 0 20 20",
147
+ fill: "currentColor",
148
+ "aria-hidden": "true",
149
+ children: /* @__PURE__ */ jsx2(
150
+ "path",
151
+ {
152
+ fillRule: "evenodd",
153
+ d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
154
+ clipRule: "evenodd"
155
+ }
156
+ )
157
+ }
158
+ )
159
+ ]
160
+ }
161
+ ) })
162
+ ] }),
163
+ /* @__PURE__ */ jsxs2("div", { className: `ml-9 mt-2 text-xs ${colors.text} opacity-60`, children: [
164
+ "Code: ",
165
+ code
166
+ ] })
167
+ ]
168
+ }
169
+ );
170
+ }
171
+
172
+ // src/error/components/LoadingState.tsx
173
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
174
+ var sizeStyles = {
175
+ sm: {
176
+ spinner: "h-4 w-4 border-2",
177
+ text: "text-sm",
178
+ dots: "h-2 w-2"
179
+ },
180
+ md: {
181
+ spinner: "h-8 w-8 border-2",
182
+ text: "text-base",
183
+ dots: "h-3 w-3"
184
+ },
185
+ lg: {
186
+ spinner: "h-12 w-12 border-4",
187
+ text: "text-lg",
188
+ dots: "h-4 w-4"
189
+ }
190
+ };
191
+ function LoadingState({
192
+ message,
193
+ locale = "ko",
194
+ size = "md",
195
+ fullScreen = false,
196
+ variant = "spinner"
197
+ }) {
198
+ const defaultMessage = locale === "ko" ? "\uB85C\uB529 \uC911..." : "Loading...";
199
+ const displayMessage = message || defaultMessage;
200
+ const styles = sizeStyles[size];
201
+ const renderSpinner = () => /* @__PURE__ */ jsx3(
202
+ "div",
203
+ {
204
+ className: `${styles.spinner} animate-spin rounded-full border-blue-600 border-t-transparent`,
205
+ role: "status",
206
+ "aria-label": "loading"
207
+ }
208
+ );
209
+ const renderDots = () => /* @__PURE__ */ jsx3("div", { className: "flex space-x-2", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx3(
210
+ "div",
211
+ {
212
+ className: `${styles.dots} animate-bounce rounded-full bg-blue-600`,
213
+ style: { animationDelay: `${i * 0.15}s` }
214
+ },
215
+ i
216
+ )) });
217
+ const renderPulse = () => /* @__PURE__ */ jsx3("div", { className: "flex space-x-2", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx3(
218
+ "div",
219
+ {
220
+ className: `${styles.dots} animate-pulse rounded-full bg-blue-600`,
221
+ style: { animationDelay: `${i * 0.2}s` }
222
+ },
223
+ i
224
+ )) });
225
+ const renderLoadingAnimation = () => {
226
+ switch (variant) {
227
+ case "dots":
228
+ return renderDots();
229
+ case "pulse":
230
+ return renderPulse();
231
+ case "spinner":
232
+ default:
233
+ return renderSpinner();
234
+ }
235
+ };
236
+ const content = /* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center justify-center space-y-4", children: [
237
+ renderLoadingAnimation(),
238
+ /* @__PURE__ */ jsx3("p", { className: `${styles.text} text-gray-600`, children: displayMessage })
239
+ ] });
240
+ if (fullScreen) {
241
+ return /* @__PURE__ */ jsx3("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-white bg-opacity-75", children: content });
242
+ }
243
+ return /* @__PURE__ */ jsx3("div", { className: "flex items-center justify-center py-12", children: content });
244
+ }
245
+
246
+ // src/error/components/EmptyState.tsx
247
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
248
+ var sizeStyles2 = {
249
+ sm: {
250
+ container: "py-8",
251
+ icon: "text-4xl",
252
+ title: "text-base",
253
+ description: "text-sm"
254
+ },
255
+ md: {
256
+ container: "py-12",
257
+ icon: "text-6xl",
258
+ title: "text-lg",
259
+ description: "text-base"
260
+ },
261
+ lg: {
262
+ container: "py-16",
263
+ icon: "text-8xl",
264
+ title: "text-xl",
265
+ description: "text-lg"
266
+ }
267
+ };
268
+ function EmptyState({
269
+ title,
270
+ description,
271
+ locale = "ko",
272
+ icon = "\u{1F4E6}",
273
+ actionText,
274
+ onAction,
275
+ size = "md"
276
+ }) {
277
+ const defaultTitle = locale === "ko" ? "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" : "No data available";
278
+ const defaultDescription = locale === "ko" ? "\uC544\uC9C1 \uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4." : "No items have been registered yet.";
279
+ const displayTitle = title || defaultTitle;
280
+ const displayDescription = description || defaultDescription;
281
+ const styles = sizeStyles2[size];
282
+ const renderIcon = () => {
283
+ if (typeof icon === "string") {
284
+ return /* @__PURE__ */ jsx4("span", { className: `${styles.icon}`, role: "img", "aria-label": "empty-icon", children: icon });
285
+ }
286
+ return icon;
287
+ };
288
+ return /* @__PURE__ */ jsxs4(
289
+ "div",
290
+ {
291
+ className: `flex flex-col items-center justify-center text-center ${styles.container}`,
292
+ children: [
293
+ /* @__PURE__ */ jsx4("div", { className: "mb-4 text-gray-400", children: renderIcon() }),
294
+ /* @__PURE__ */ jsx4("h3", { className: `${styles.title} font-semibold text-gray-900`, children: displayTitle }),
295
+ /* @__PURE__ */ jsx4("p", { className: `${styles.description} mt-2 text-gray-500`, children: displayDescription }),
296
+ actionText && onAction && /* @__PURE__ */ jsx4(
297
+ "button",
298
+ {
299
+ onClick: onAction,
300
+ className: "mt-6 inline-flex items-center rounded-md border border-transparent bg-blue-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
301
+ children: actionText
302
+ }
303
+ )
304
+ ]
305
+ }
306
+ );
307
+ }
308
+
309
+ export {
310
+ ErrorPage,
311
+ ErrorAlert,
312
+ LoadingState,
313
+ EmptyState
314
+ };
@@ -0,0 +1,29 @@
1
+ // src/hooks/useDebounce.ts
2
+ import { useEffect, useState, useRef } from "react";
3
+ function useDebounce(value, delay) {
4
+ const [debouncedValue, setDebouncedValue] = useState(value);
5
+ const timeoutRef = useRef(null);
6
+ const lastValueRef = useRef(value);
7
+ useEffect(() => {
8
+ if (value === lastValueRef.current) {
9
+ return;
10
+ }
11
+ lastValueRef.current = value;
12
+ if (timeoutRef.current) {
13
+ clearTimeout(timeoutRef.current);
14
+ }
15
+ timeoutRef.current = setTimeout(() => {
16
+ setDebouncedValue(value);
17
+ }, delay);
18
+ return () => {
19
+ if (timeoutRef.current) {
20
+ clearTimeout(timeoutRef.current);
21
+ }
22
+ };
23
+ }, [value, delay]);
24
+ return debouncedValue;
25
+ }
26
+
27
+ export {
28
+ useDebounce
29
+ };
@@ -0,0 +1,96 @@
1
+ import {
2
+ BaseTransport
3
+ } from "./chunk-HGC4CCKB.js";
4
+
5
+ // src/error/logging/transports/sentry.ts
6
+ var SENTRY_SEVERITY_MAP = {
7
+ ["debug" /* DEBUG */]: "debug",
8
+ ["info" /* INFO */]: "info",
9
+ ["warn" /* WARN */]: "warning",
10
+ ["error" /* ERROR */]: "error",
11
+ ["critical" /* CRITICAL */]: "fatal"
12
+ };
13
+ var SentryTransport = class extends BaseTransport {
14
+ constructor(options = {}) {
15
+ const dsn = options.dsn || process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
16
+ super("sentry", Boolean(dsn) && options.enabled !== false);
17
+ this.Sentry = null;
18
+ this.dsn = dsn;
19
+ this.environment = options.environment || process.env.NODE_ENV || "development";
20
+ this.minLevel = options.minLevel || "error" /* ERROR */;
21
+ if (this.isEnabled()) {
22
+ this.initSentry();
23
+ }
24
+ }
25
+ /**
26
+ * Sentry 초기화
27
+ */
28
+ async initSentry() {
29
+ try {
30
+ const isServer = typeof window === "undefined";
31
+ if (isServer) {
32
+ const Sentry = await import("@sentry/node");
33
+ this.Sentry = Sentry;
34
+ } else {
35
+ const Sentry = await import("@sentry/browser");
36
+ this.Sentry = Sentry;
37
+ }
38
+ this.Sentry.init({
39
+ dsn: this.dsn,
40
+ environment: this.environment,
41
+ // 성능 모니터링 비활성화 (에러 로깅만)
42
+ tracesSampleRate: 0
43
+ });
44
+ } catch (error) {
45
+ console.error("[SentryTransport] Failed to initialize Sentry:", error);
46
+ this.disable();
47
+ }
48
+ }
49
+ async log(entry) {
50
+ if (!this.Sentry) {
51
+ return;
52
+ }
53
+ if (!this.shouldLog(entry.level)) {
54
+ return;
55
+ }
56
+ try {
57
+ this.Sentry.withScope((scope) => {
58
+ scope.setLevel(SENTRY_SEVERITY_MAP[entry.level]);
59
+ if (entry.context.requestId) {
60
+ scope.setTag("requestId", entry.context.requestId);
61
+ }
62
+ if (entry.context.userId) {
63
+ scope.setUser({ id: entry.context.userId });
64
+ }
65
+ if (entry.context.errorCode) {
66
+ scope.setTag("errorCode", entry.context.errorCode);
67
+ }
68
+ scope.setContext("error_context", entry.context);
69
+ if (entry.error) {
70
+ this.Sentry.captureException(entry.error);
71
+ } else {
72
+ this.Sentry.captureMessage(entry.message);
73
+ }
74
+ });
75
+ } catch (error) {
76
+ console.error("[SentryTransport] Failed to send to Sentry:", error);
77
+ }
78
+ }
79
+ /**
80
+ * 로그 레벨 체크
81
+ */
82
+ shouldLog(level) {
83
+ const LOG_LEVEL_PRIORITY = {
84
+ ["debug" /* DEBUG */]: 0,
85
+ ["info" /* INFO */]: 1,
86
+ ["warn" /* WARN */]: 2,
87
+ ["error" /* ERROR */]: 3,
88
+ ["critical" /* CRITICAL */]: 4
89
+ };
90
+ return LOG_LEVEL_PRIORITY[level] >= LOG_LEVEL_PRIORITY[this.minLevel];
91
+ }
92
+ };
93
+
94
+ export {
95
+ SentryTransport
96
+ };
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface IAlertProps {
3
+ variant?: 'default' | 'destructive';
4
+ children: React.ReactNode;
5
+ className?: string;
6
+ }
7
+ export interface IAlertDescriptionProps {
8
+ children: React.ReactNode;
9
+ className?: string;
10
+ }
11
+ export declare function Alert({ variant, children, className }: IAlertProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function AlertDescription({ children, className }: IAlertDescriptionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import {
2
+ Alert,
3
+ AlertDescription
4
+ } from "../../chunk-F6LCSFSU.js";
5
+ import "../../chunk-62FLBG6B.js";
6
+ import "../../chunk-ORMEWXMH.js";
7
+ export {
8
+ Alert,
9
+ AlertDescription
10
+ };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface IBadgeProps {
3
+ children: React.ReactNode;
4
+ variant?: 'default' | 'secondary' | 'destructive' | 'outline';
5
+ className?: string;
6
+ }
7
+ export declare function Badge({ children, variant, className }: IBadgeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import {
2
+ Badge
3
+ } from "../../chunk-UCYQNHST.js";
4
+ import "../../chunk-62FLBG6B.js";
5
+ import "../../chunk-ORMEWXMH.js";
6
+ export {
7
+ Badge
8
+ };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
4
+ size?: 'default' | 'sm' | 'lg' | 'icon';
5
+ children: React.ReactNode;
6
+ }
7
+ export declare function Button({ className, variant, size, children, ...props }: IButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import {
2
+ Button
3
+ } from "../../chunk-L25BNU3E.js";
4
+ import "../../chunk-62FLBG6B.js";
5
+ import "../../chunk-ORMEWXMH.js";
6
+ export {
7
+ Button
8
+ };
@@ -0,0 +1,103 @@
1
+ import { ReactNode } from "react";
2
+ export interface DataTableLabels {
3
+ search?: string;
4
+ filter?: string;
5
+ filterActive?: string;
6
+ clearFilters?: string;
7
+ selectAll?: string;
8
+ selectAllShort?: string;
9
+ selected?: string;
10
+ processing?: string;
11
+ processingItems?: string;
12
+ loading?: string;
13
+ perPage?: string;
14
+ all?: string;
15
+ min?: string;
16
+ max?: string;
17
+ previous?: string;
18
+ next?: string;
19
+ showing?: string;
20
+ }
21
+ export interface ColumnDef<T> {
22
+ key: string;
23
+ header: string;
24
+ accessorKey?: keyof T;
25
+ cell?: (item: T) => React.ReactNode;
26
+ sortable?: boolean;
27
+ width?: string;
28
+ className?: string;
29
+ hidden?: boolean;
30
+ responsive?: {
31
+ sm?: boolean;
32
+ md?: boolean;
33
+ lg?: boolean;
34
+ xl?: boolean;
35
+ };
36
+ }
37
+ export interface BulkAction {
38
+ key: string;
39
+ label: string;
40
+ icon?: React.ReactNode;
41
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
42
+ onClick: (selectedIds: string[]) => Promise<void>;
43
+ disabled?: (selectedIds: string[]) => boolean;
44
+ }
45
+ export interface FilterConfig {
46
+ key: string;
47
+ label: string;
48
+ type: 'text' | 'select' | 'date' | 'number' | 'switch' | 'range';
49
+ options?: {
50
+ value: string;
51
+ label: string;
52
+ }[];
53
+ placeholder?: string;
54
+ className?: string;
55
+ inputType?: 'text' | 'number' | 'date';
56
+ minPlaceholder?: string;
57
+ maxPlaceholder?: string;
58
+ }
59
+ export interface PaginationConfig {
60
+ page: number;
61
+ pageSize: number;
62
+ total: number;
63
+ pageSizeOptions?: number[];
64
+ onPageChange: (page: number) => void;
65
+ onPageSizeChange: (pageSize: number) => void;
66
+ }
67
+ export interface SortConfig {
68
+ sort: string;
69
+ order: 'asc' | 'desc';
70
+ onSortChange: (sort: string, order: 'asc' | 'desc') => void;
71
+ }
72
+ export interface DataTableProps<T> {
73
+ data: T[];
74
+ columns: ColumnDef<T>[];
75
+ loading?: boolean;
76
+ error?: string | null;
77
+ pagination?: PaginationConfig;
78
+ sort?: SortConfig;
79
+ bulkActions?: BulkAction[];
80
+ filters?: FilterConfig[];
81
+ filterValues?: Record<string, any>;
82
+ onFilterChange?: (key: string, value: any) => void;
83
+ onClearFilters?: () => void;
84
+ selectable?: boolean;
85
+ onSelectionChange?: (selectedIds: string[]) => void;
86
+ selectedIds?: string[];
87
+ getRowId: (item: T) => string;
88
+ className?: string;
89
+ emptyMessage?: string;
90
+ searchPlaceholder?: string;
91
+ onSearch?: (search: string) => void;
92
+ onSearchValueChange?: (searchValue: string) => void;
93
+ searchValue?: string;
94
+ showFilters?: boolean;
95
+ onToggleFilters?: (show: boolean) => void;
96
+ createButton?: ReactNode | {
97
+ label: string;
98
+ onClick: () => void;
99
+ };
100
+ /** i18n labels - 미제공 시 영어 기본값 사용 */
101
+ labels?: Partial<DataTableLabels>;
102
+ }
103
+ export declare function DataTable<T>({ data, columns, loading, error, pagination, sort, bulkActions, filters, filterValues, onFilterChange, onClearFilters, selectable, onSelectionChange, selectedIds, getRowId, className, emptyMessage, searchPlaceholder, onSearch, onSearchValueChange, searchValue, showFilters, onToggleFilters, createButton, labels: customLabels, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;