@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.
- package/README.ko.md +226 -0
- package/README.md +66 -44
- package/dist/{chunk-V6YD53NH.js → chunk-23LQJYZN.js} +5 -2
- package/dist/chunk-2JUFL4KX.js +41 -0
- package/dist/{chunk-ZTRASVGZ.js → chunk-34L7HTM7.js} +1 -1
- package/dist/{chunk-GSUCBWML.js → chunk-3RK3MKAR.js} +5 -2
- package/dist/{chunk-6JXHXIEH.js → chunk-3UIKCS56.js} +2 -2
- package/dist/{chunk-MWBEE6VI.js → chunk-4EXZ2SDV.js} +5 -5
- package/dist/{chunk-MNYVAEXK.js → chunk-4ROIPF33.js} +16 -3
- package/dist/{chunk-JKSABDFT.js → chunk-4TGPAUJV.js} +4 -4
- package/dist/{chunk-D2KXIKI4.js → chunk-4XPXZNBX.js} +18 -11
- package/dist/{chunk-LG3KM5V3.js → chunk-5I3EQHR4.js} +6 -2
- package/dist/chunk-63EKUOJH.js +72 -0
- package/dist/chunk-6A5JHOBB.js +134 -0
- package/dist/{chunk-N5VOFGF3.js → chunk-75UDFONR.js} +5 -4
- package/dist/{chunk-GORISA3L.js → chunk-7KIM5MHV.js} +1 -1
- package/dist/{chunk-4L6OSSSG.js → chunk-7S2PCYNT.js} +3 -3
- package/dist/{chunk-2SIBG5BG.js → chunk-7YWUKMZD.js} +7 -0
- package/dist/{chunk-7X2N4VZM.js → chunk-ATBYGPLP.js} +1 -1
- package/dist/{chunk-A74POWYY.js → chunk-B7AJJKOY.js} +1 -1
- package/dist/{chunk-W7PEL3DX.js → chunk-BRBOGLFT.js} +4 -4
- package/dist/{chunk-IOUNOHP7.js → chunk-BRFW2LL2.js} +1 -1
- package/dist/chunk-BTYH4MHU.js +118 -0
- package/dist/{chunk-I4NT6G2T.js → chunk-DRTJSTEV.js} +2 -2
- package/dist/{chunk-JIYLTMVL.js → chunk-DVCGAI5N.js} +2 -2
- package/dist/chunk-E4TKORMQ.js +59 -0
- package/dist/{chunk-AV7ELXHG.js → chunk-E5TDIRBJ.js} +2 -2
- package/dist/{chunk-UBASOMP5.js → chunk-HGVPZSWW.js} +18 -13
- package/dist/{chunk-7F5X6F7X.js → chunk-HV6A6Z5R.js} +1 -1
- package/dist/chunk-ILMPKSWS.js +125 -0
- package/dist/{chunk-J5NLAZV2.js → chunk-JHUWZ6YW.js} +2 -2
- package/dist/{chunk-LON5THYQ.js → chunk-KLMKCYIN.js} +1 -1
- package/dist/{chunk-4KJZRI74.js → chunk-KWUOLKDO.js} +1 -1
- package/dist/{chunk-GJO2MPC3.js → chunk-LCYDMYZS.js} +1 -1
- package/dist/{chunk-WIQAPWTY.js → chunk-LL3VWKY4.js} +1 -1
- package/dist/{chunk-IMAFMUZ7.js → chunk-LSS3GJUE.js} +3 -2
- package/dist/{chunk-2PFSRVVD.js → chunk-LWHLB2Y6.js} +84 -18
- package/dist/{chunk-BBE4RXR7.js → chunk-MTZXWVW3.js} +17 -6
- package/dist/{chunk-ORMEWXMH.js → chunk-N3ETBM74.js} +1 -14
- package/dist/{chunk-KYAHURXN.js → chunk-N3TCQ5BF.js} +4 -3
- package/dist/{chunk-HX4MPCVV.js → chunk-NTZBMWB6.js} +4 -4
- package/dist/{chunk-RJGYONRO.js → chunk-PRPMEHRE.js} +2 -2
- package/dist/{chunk-KG65BFPK.js → chunk-QAIN3WNN.js} +1 -1
- package/dist/{chunk-JJAIVUVD.js → chunk-R7EFDSPZ.js} +2 -2
- package/dist/{chunk-VJE4HA2C.js → chunk-RWCPRPEP.js} +3 -2
- package/dist/{chunk-B6L5XV7O.js → chunk-SCAFDDJP.js} +11 -11
- package/dist/{chunk-KXYDTC4A.js → chunk-SNFPZD6L.js} +11 -2
- package/dist/{chunk-B5VRZ2VJ.js → chunk-TNDEYJEL.js} +25 -6
- package/dist/{chunk-GDTZMX3L.js → chunk-TRGFXIEF.js} +1 -1
- package/dist/{chunk-JRORMRVN.js → chunk-U2TGXJ3A.js} +1 -1
- package/dist/{chunk-VNDL2E44.js → chunk-U52U5SK7.js} +2 -2
- package/dist/{chunk-54REXMTE.js → chunk-UWOWKOOQ.js} +3 -1
- package/dist/{chunk-4PROUAZ5.js → chunk-V3WZFUY3.js} +7 -7
- package/dist/{chunk-G4LJN4OZ.js → chunk-VH57Y5Z4.js} +1 -1
- package/dist/chunk-VQJY52YF.js +139 -0
- package/dist/{chunk-5S7M2AJL.js → chunk-VWAB4PM7.js} +1 -1
- package/dist/{chunk-AQZPGOEZ.js → chunk-VWKZMGPJ.js} +5 -4
- package/dist/{chunk-4K27YLAE.js → chunk-VZ2PQA4U.js} +2 -2
- package/dist/{chunk-ZOWEW4GY.js → chunk-WBHX4MJV.js} +2 -2
- package/dist/{chunk-G4SNTXJ3.js → chunk-WSHRBK6Y.js} +7 -6
- package/dist/{chunk-UMRKMF3E.js → chunk-WXOWI7BJ.js} +2 -2
- package/dist/chunk-XAGPZLRK.js +106 -0
- package/dist/{chunk-VPRTPW7C.js → chunk-XF3WUF3F.js} +2 -2
- package/dist/{chunk-6TRD7ZW4.js → chunk-XKIBJJA3.js} +25 -21
- package/dist/{chunk-ZLYBY3R4.js → chunk-XTGS6JJB.js} +10 -5
- package/dist/{chunk-BFZR62LZ.js → chunk-XXPB4C37.js} +7 -7
- package/dist/{chunk-LUIYCIF7.js → chunk-Y4ME3Q5K.js} +2 -2
- package/dist/{chunk-Q66VOVGN.js → chunk-Y4WPEIKW.js} +1 -1
- package/dist/{chunk-MREY2W7N.js → chunk-Y6CPPBJI.js} +1 -1
- package/dist/{chunk-6TUDUOGC.js → chunk-ZEHNCHIV.js} +2 -2
- package/dist/{chunk-D73ZJQMX.js → chunk-ZZABL54F.js} +13 -0
- package/dist/core/auth/adapters/sql/dialect.d.ts +21 -0
- package/dist/core/auth/adapters/sql/dialect.js +11 -0
- package/dist/core/auth/adapters/sql/email-token-repository.d.ts +17 -0
- package/dist/core/auth/adapters/sql/email-token-repository.js +9 -0
- package/dist/core/auth/adapters/sql/index.d.ts +7 -0
- package/dist/core/auth/adapters/sql/index.js +27 -0
- package/dist/core/auth/adapters/sql/oauth-account-repository.d.ts +18 -0
- package/dist/core/auth/adapters/sql/oauth-account-repository.js +9 -0
- package/dist/core/auth/adapters/sql/types.d.ts +73 -0
- package/dist/core/auth/adapters/sql/types.js +7 -0
- package/dist/core/auth/adapters/sql/user-repository.d.ts +20 -0
- package/dist/core/auth/adapters/sql/user-repository.js +9 -0
- package/dist/core/auth/config.d.ts +3 -0
- package/dist/core/auth/config.js +3 -3
- package/dist/core/auth/email/index.d.ts +3 -3
- package/dist/core/auth/email/index.js +3 -3
- package/dist/core/auth/email/sender.d.ts +1 -1
- package/dist/core/auth/email/sender.js +2 -2
- package/dist/core/auth/email/token-generator.d.ts +11 -0
- package/dist/core/auth/email/token-generator.js +2 -2
- package/dist/core/auth/errors/index.js +1 -1
- package/dist/core/auth/index.d.ts +11 -11
- package/dist/core/auth/index.js +23 -15
- package/dist/core/auth/jwt/client.js +3 -2
- package/dist/core/auth/jwt/cookie.d.ts +1 -1
- package/dist/core/auth/jwt/cookie.js +4 -4
- package/dist/core/auth/jwt/index.d.ts +41 -9
- package/dist/core/auth/jwt/index.js +6 -6
- package/dist/core/auth/jwt/types.d.ts +1 -1
- package/dist/core/auth/jwt/types.js +1 -1
- package/dist/core/auth/oauth/index.d.ts +6 -6
- package/dist/core/auth/oauth/index.js +5 -5
- package/dist/core/auth/oauth/providers/github.d.ts +1 -1
- package/dist/core/auth/oauth/providers/github.js +1 -1
- package/dist/core/auth/oauth/providers/google.d.ts +1 -1
- package/dist/core/auth/oauth/providers/google.js +1 -1
- package/dist/core/auth/oauth/providers/index.d.ts +5 -5
- package/dist/core/auth/oauth/providers/index.js +4 -4
- package/dist/core/auth/oauth/providers/kakao.d.ts +1 -1
- package/dist/core/auth/oauth/providers/kakao.js +1 -1
- package/dist/core/auth/oauth/providers/meta.d.ts +1 -1
- package/dist/core/auth/oauth/providers/meta.js +1 -1
- package/dist/core/auth/oauth/providers/microsoft.d.ts +1 -1
- package/dist/core/auth/oauth/providers/microsoft.js +1 -1
- package/dist/core/auth/oauth/state-cookie.js +1 -1
- package/dist/core/auth/password/client-helper.d.ts +9 -9
- package/dist/core/auth/password/client-helper.js +5 -3
- package/dist/core/auth/password/hasher.d.ts +83 -0
- package/dist/core/auth/password/hasher.js +14 -0
- package/dist/core/auth/password/index.d.ts +8 -6
- package/dist/core/auth/password/index.js +11 -2
- package/dist/core/auth/services/email-verification.service.d.ts +1 -1
- package/dist/core/auth/services/email-verification.service.js +3 -3
- package/dist/core/auth/services/index.d.ts +13 -12
- package/dist/core/auth/services/index.js +16 -16
- package/dist/core/auth/services/login.service.d.ts +15 -1
- package/dist/core/auth/services/login.service.js +6 -6
- package/dist/core/auth/services/oauth-callback.service.d.ts +7 -1
- package/dist/core/auth/services/oauth-callback.service.js +6 -6
- package/dist/core/auth/services/password-reset.service.d.ts +1 -1
- package/dist/core/auth/services/password-reset.service.js +3 -3
- package/dist/core/auth/services/refresh-token-store.d.ts +39 -0
- package/dist/core/auth/services/register.service.d.ts +1 -1
- package/dist/core/auth/services/register.service.js +3 -3
- package/dist/core/auth/services/token-refresh.service.d.ts +27 -1
- package/dist/core/auth/services/token-refresh.service.js +6 -6
- package/dist/core/auth/token-delivery.d.ts +47 -0
- package/dist/core/auth/token-delivery.js +14 -0
- package/dist/core/auth/types/index.d.ts +38 -4
- package/dist/core/auth/types/index.js +1 -1
- package/dist/core/cache/cache-config.js +4 -4
- package/dist/core/cache/cache-defaults.js +1 -1
- package/dist/core/cache/cache-env.d.ts +3 -3
- package/dist/core/cache/cache-env.js +3 -3
- package/dist/core/cache/cache-factory.d.ts +6 -6
- package/dist/core/cache/cache-factory.js +11 -11
- package/dist/core/cache/cache-invalidation.d.ts +4 -4
- package/dist/core/cache/cache-invalidation.js +12 -12
- package/dist/core/cache/cache-redis.js +5 -5
- package/dist/core/cache/cache-types.js +1 -1
- package/dist/core/cache/cache-wrapper.d.ts +1 -1
- package/dist/core/cache/cache-wrapper.js +12 -12
- package/dist/core/cache/cache.d.ts +2 -2
- package/dist/core/cache/cache.js +17 -17
- package/dist/core/cache/config.js +2 -2
- package/dist/core/cache/hybrid-cache-manager.d.ts +1 -1
- package/dist/core/cache/hybrid-cache-manager.js +7 -7
- package/dist/core/cache/index.d.ts +15 -15
- package/dist/core/cache/index.js +17 -17
- package/dist/core/cache/inmemory-cache-manager.d.ts +1 -1
- package/dist/core/cache/inmemory-cache-manager.js +3 -3
- package/dist/core/cache/noop-cache-manager.d.ts +1 -1
- package/dist/core/cache/noop-cache-manager.js +5 -5
- package/dist/core/cache/redis-cache-manager.d.ts +2 -2
- package/dist/core/cache/redis-cache-manager.js +6 -6
- package/dist/core/config/common.js +1 -1
- package/dist/core/config/errors.js +1 -1
- package/dist/core/config/registry.d.ts +7 -7
- package/dist/core/config/registry.js +1 -1
- package/dist/core/config/warn.js +1 -1
- package/dist/core/constants/error-codes.js +1 -1
- package/dist/core/constants/index.d.ts +5 -5
- package/dist/core/constants/index.js +10 -8
- package/dist/core/constants/messages.js +1 -1
- package/dist/core/constants/pagination.js +1 -1
- package/dist/core/constants/security.d.ts +15 -0
- package/dist/core/constants/security.js +4 -2
- package/dist/core/constants/validation.js +1 -1
- package/dist/core/cors/index.js +1 -1
- package/dist/core/error/app-error.d.ts +2 -2
- package/dist/core/error/app-error.js +1 -1
- package/dist/core/error/extract-error-info.js +1 -1
- package/dist/core/error/friendly-messages-v2.d.ts +3 -3
- package/dist/core/error/friendly-messages-v2.js +4 -4
- package/dist/core/error/friendly-messages.js +1 -1
- package/dist/core/error/index.d.ts +6 -6
- package/dist/core/error/index.js +4 -4
- package/dist/core/error/messages/en.d.ts +1 -1
- package/dist/core/error/messages/en.js +1 -1
- package/dist/core/error/messages/index.d.ts +2 -2
- package/dist/core/error/messages/index.js +3 -3
- package/dist/core/error/messages/ko.d.ts +1 -1
- package/dist/core/error/messages/ko.js +1 -1
- package/dist/core/geolocation/batch-processor.d.ts +1 -1
- package/dist/core/geolocation/batch-processor.js +3 -3
- package/dist/core/geolocation/config.js +1 -1
- package/dist/core/geolocation/index.d.ts +5 -5
- package/dist/core/geolocation/index.js +7 -7
- package/dist/core/geolocation/providers/base-provider.d.ts +2 -2
- package/dist/core/geolocation/providers/base-provider.js +1 -1
- package/dist/core/geolocation/providers/index.d.ts +6 -6
- package/dist/core/geolocation/providers/index.js +5 -5
- package/dist/core/geolocation/providers/ip-api-provider.d.ts +3 -3
- package/dist/core/geolocation/providers/ip-api-provider.js +1 -1
- package/dist/core/geolocation/providers/ipapi-co-provider.d.ts +3 -3
- package/dist/core/geolocation/providers/ipapi-co-provider.js +1 -1
- package/dist/core/geolocation/providers/ipgeolocation-provider.d.ts +3 -3
- package/dist/core/geolocation/providers/ipgeolocation-provider.js +1 -1
- package/dist/core/geolocation/providers/maxmind-provider.d.ts +3 -3
- package/dist/core/geolocation/providers/maxmind-provider.js +1 -1
- package/dist/core/logger/config.js +1 -1
- package/dist/core/logger/logger.js +2 -2
- package/dist/core/storage/config.js +1 -1
- package/dist/core/storage/r2-storage.js +1 -1
- package/dist/core/system/cpu.d.ts +1 -1
- package/dist/core/system/cpu.js +4 -4
- package/dist/core/system/disk.d.ts +1 -1
- package/dist/core/system/disk.js +4 -4
- package/dist/core/system/environment.d.ts +1 -1
- package/dist/core/system/environment.js +7 -7
- package/dist/core/system/health-check.d.ts +2 -2
- package/dist/core/system/health-check.js +5 -5
- package/dist/core/system/index.d.ts +7 -7
- package/dist/core/system/index.js +17 -17
- package/dist/core/system/memory.d.ts +1 -1
- package/dist/core/system/memory.js +4 -4
- package/dist/core/system/network.d.ts +1 -1
- package/dist/core/system/network.js +4 -4
- package/dist/core/system/utils.js +3 -3
- package/dist/core/types/geoip.d.ts +1 -1
- package/dist/core/types/qr-code.js +1 -1
- package/dist/core/utils/error-message-formatter.js +1 -1
- package/dist/core/utils/format-number.js +1 -1
- package/dist/core/utils/index.d.ts +3 -3
- package/dist/core/utils/index.js +9 -9
- package/dist/core/utils/input-validation.js +52 -16
- package/dist/core/utils/ip-utils.js +1 -1
- package/dist/core/utils/optimistic-lock.js +1 -1
- package/dist/core/utils/sanitizer.js +2 -2
- package/dist/core/utils/short-code-generator.js +1 -1
- package/dist/core/utils/timezone.js +121 -14
- package/dist/core/utils/type-guards.js +1 -1
- package/dist/core/utils/url-normalizer.js +1 -1
- package/dist/core/validators/index.d.ts +1 -1
- package/dist/core/validators/index.js +2 -2
- package/dist/core/validators/password-validator.d.ts +3 -3
- package/dist/core/validators/password-validator.js +2 -2
- package/dist/initialize.d.ts +10 -10
- package/dist/initialize.js +7 -7
- package/dist/next/auth-handlers/forgot-password.handler.d.ts +1 -1
- package/dist/next/auth-handlers/forgot-password.handler.js +4 -4
- package/dist/next/auth-handlers/index.d.ts +11 -11
- package/dist/next/auth-handlers/index.js +32 -31
- package/dist/next/auth-handlers/login.handler.d.ts +1 -1
- package/dist/next/auth-handlers/login.handler.js +7 -6
- package/dist/next/auth-handlers/logout.handler.d.ts +1 -1
- package/dist/next/auth-handlers/logout.handler.js +5 -5
- package/dist/next/auth-handlers/me.handler.d.ts +1 -1
- package/dist/next/auth-handlers/me.handler.js +7 -6
- package/dist/next/auth-handlers/oauth-authorize.handler.d.ts +1 -1
- package/dist/next/auth-handlers/oauth-authorize.handler.js +4 -4
- package/dist/next/auth-handlers/oauth-callback.handler.d.ts +1 -1
- package/dist/next/auth-handlers/oauth-callback.handler.js +9 -9
- package/dist/next/auth-handlers/refresh.handler.d.ts +1 -1
- package/dist/next/auth-handlers/refresh.handler.js +8 -7
- package/dist/next/auth-handlers/register.handler.d.ts +1 -1
- package/dist/next/auth-handlers/register.handler.js +4 -4
- package/dist/next/auth-handlers/reset-password.handler.d.ts +1 -1
- package/dist/next/auth-handlers/reset-password.handler.js +4 -4
- package/dist/next/auth-handlers/verify-email.handler.d.ts +1 -1
- package/dist/next/auth-handlers/verify-email.handler.js +4 -4
- package/dist/next/auth-types/handler-types.d.ts +5 -1
- package/dist/next/auth-types/handler-types.js +13 -1
- package/dist/next/auth-types/index.d.ts +1 -1
- package/dist/next/auth-types/index.js +13 -1
- package/dist/next/error/error-handler.js +3 -3
- package/dist/next/error/index.d.ts +3 -3
- package/dist/next/error/index.js +9 -9
- package/dist/next/error/locale-detector.d.ts +1 -1
- package/dist/next/error/locale-detector.js +1 -1
- package/dist/next/middleware/auth.d.ts +3 -3
- package/dist/next/middleware/auth.js +8 -7
- package/dist/next/middleware/cors.d.ts +2 -2
- package/dist/next/middleware/cors.js +3 -3
- package/dist/next/middleware/error-handler.d.ts +1 -1
- package/dist/next/middleware/error-handler.js +6 -6
- package/dist/next/middleware/index.d.ts +11 -11
- package/dist/next/middleware/index.js +19 -18
- package/dist/next/middleware/init-request.d.ts +1 -1
- package/dist/next/middleware/init-request.js +1 -1
- package/dist/next/middleware/middleware-chain.d.ts +1 -1
- package/dist/next/middleware/middleware-chain.js +3 -3
- package/dist/next/middleware/rate-limit.d.ts +2 -2
- package/dist/next/middleware/rate-limit.js +3 -3
- package/dist/next/middleware/response-logger.d.ts +1 -1
- package/dist/next/middleware/response-logger.js +3 -3
- package/dist/next/middleware/security.d.ts +1 -1
- package/dist/next/middleware/security.js +3 -3
- package/dist/next/middleware/types.d.ts +6 -3
- package/dist/next/middleware/wrappers.d.ts +2 -2
- package/dist/next/middleware/wrappers.js +18 -17
- package/dist/next/utils/api-helpers.d.ts +6 -2
- package/dist/next/utils/api-helpers.js +3 -2
- package/dist/next/utils/cors.js +2 -2
- package/dist/next/utils/csv-export-format.js +1 -1
- package/dist/next/utils/csv-export.js +3 -3
- package/dist/next/utils/error-processor.d.ts +1 -1
- package/dist/next/utils/error-processor.js +3 -3
- package/dist/next/utils/index.d.ts +5 -5
- package/dist/next/utils/index.js +28 -27
- package/dist/prisma/auth-adapter/index.d.ts +1 -1
- package/dist/prisma/auth-adapter/index.js +1 -1
- package/package.json +96 -52
- package/dist/chunk-2P4N4OK2.js +0 -150
- package/dist/chunk-4IQWQSEV.js +0 -27
- package/dist/chunk-4K76HG4V.js +0 -34
- package/dist/chunk-7EXSMZ2O.js +0 -29
- package/dist/chunk-7VXRBTRF.js +0 -110
- package/dist/chunk-ARXUKGZI.js +0 -58
- package/dist/chunk-B5OH43PR.js +0 -31
- package/dist/chunk-BW4QO7T6.js +0 -56
- package/dist/chunk-EK4TL7VW.js +0 -22
- package/dist/chunk-ERKJJDY6.js +0 -117
- package/dist/chunk-G4GT4X3J.js +0 -240
- package/dist/chunk-GPOSTBDQ.js +0 -193
- package/dist/chunk-IRUFNC4L.js +0 -26
- package/dist/chunk-J2MAXMIP.js +0 -105
- package/dist/chunk-MFMQO6IS.js +0 -127
- package/dist/chunk-PBQGXOVX.js +0 -31
- package/dist/chunk-STMAKLLG.js +0 -24
- package/dist/chunk-WP233RH2.js +0 -80
- package/dist/chunk-WWOYFWFB.js +0 -137
- package/dist/chunk-X7FGBUA4.js +0 -117
- package/dist/chunk-YSPIFSDI.js +0 -136
- package/dist/chunk-ZCLKRGZ4.js +0 -81
- package/dist/react/components/ui/Alert.d.ts +0 -12
- package/dist/react/components/ui/Alert.js +0 -10
- package/dist/react/components/ui/Badge.d.ts +0 -7
- package/dist/react/components/ui/Badge.js +0 -8
- package/dist/react/components/ui/Button.d.ts +0 -7
- package/dist/react/components/ui/Button.js +0 -8
- package/dist/react/components/ui/DataTable.d.ts +0 -8
- package/dist/react/components/ui/DataTable.js +0 -22
- package/dist/react/components/ui/DomainDisplay.d.ts +0 -12
- package/dist/react/components/ui/DomainDisplay.js +0 -31
- package/dist/react/components/ui/Input.d.ts +0 -5
- package/dist/react/components/ui/Input.js +0 -8
- package/dist/react/components/ui/Label.d.ts +0 -5
- package/dist/react/components/ui/Label.js +0 -8
- package/dist/react/components/ui/Pagination.d.ts +0 -42
- package/dist/react/components/ui/Pagination.js +0 -20
- package/dist/react/components/ui/Select.d.ts +0 -15
- package/dist/react/components/ui/Select.js +0 -27
- package/dist/react/components/ui/Skeleton.d.ts +0 -6
- package/dist/react/components/ui/Skeleton.js +0 -8
- package/dist/react/components/ui/TimezoneDisplay.d.ts +0 -22
- package/dist/react/components/ui/TimezoneDisplay.js +0 -83
- package/dist/react/components/ui/Tooltip.d.ts +0 -21
- package/dist/react/components/ui/Tooltip.js +0 -94
- package/dist/react/components/ui/data-table/DataTable.d.ts +0 -2
- package/dist/react/components/ui/data-table/DataTable.js +0 -22
- package/dist/react/components/ui/data-table/DataTableBody.d.ts +0 -19
- package/dist/react/components/ui/data-table/DataTableBody.js +0 -10
- package/dist/react/components/ui/data-table/DataTableBulkActions.d.ts +0 -17
- package/dist/react/components/ui/data-table/DataTableBulkActions.js +0 -12
- package/dist/react/components/ui/data-table/DataTableFilters.d.ts +0 -15
- package/dist/react/components/ui/data-table/DataTableFilters.js +0 -13
- package/dist/react/components/ui/data-table/DataTablePagination.d.ts +0 -10
- package/dist/react/components/ui/data-table/DataTablePagination.js +0 -11
- package/dist/react/components/ui/data-table/DataTableSearch.d.ts +0 -24
- package/dist/react/components/ui/data-table/DataTableSearch.js +0 -12
- package/dist/react/components/ui/data-table/index.d.ts +0 -13
- package/dist/react/components/ui/data-table/index.js +0 -42
- package/dist/react/components/ui/data-table/types.d.ts +0 -120
- package/dist/react/components/ui/data-table/types.js +0 -9
- package/dist/react/components/ui/loading-bar.d.ts +0 -20
- package/dist/react/components/ui/loading-bar.js +0 -15
- package/dist/react/error/error-display.d.ts +0 -48
- package/dist/react/error/error-display.js +0 -30
- package/dist/react/error/index.d.ts +0 -6
- package/dist/react/error/index.js +0 -30
- package/dist/react/hooks/useDataTable.d.ts +0 -96
- package/dist/react/hooks/useDataTable.js +0 -151
- package/dist/react/hooks/useDebounce.d.ts +0 -7
- package/dist/react/hooks/useDebounce.js +0 -7
- package/dist/react/hooks/useExitIntent.d.ts +0 -35
- package/dist/react/hooks/useExitIntent.js +0 -72
- package/dist/react/hooks/useTimezone.d.ts +0 -19
- package/dist/react/hooks/useTimezone.js +0 -11
- package/dist/react/utils/client-utils.d.ts +0 -3
- package/dist/react/utils/client-utils.js +0 -9
- package/dist/react/utils/qr-code.d.ts +0 -16
- package/dist/react/utils/qr-code.js +0 -215
- package/dist/{chunk-7PEVOMBO.js → chunk-AOWUPAPS.js} +0 -0
- package/dist/{chunk-VDRLJU6C.js → chunk-E2HYIONP.js} +3 -3
- package/dist/{chunk-7WG7XPXC.js → chunk-KKZCNF6U.js} +3 -3
- package/dist/{chunk-UQ3Z3ZAF.js → chunk-P7WHMKN5.js} +3 -3
- /package/dist/{chunk-M22Z2NO6.js → core/auth/services/refresh-token-store.js} +0 -0
package/dist/chunk-WWOYFWFB.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__spreadValues
|
|
3
|
-
} from "./chunk-ORMEWXMH.js";
|
|
4
|
-
|
|
5
|
-
// src/core/utils/timezone.ts
|
|
6
|
-
function getCurrentUTC() {
|
|
7
|
-
return /* @__PURE__ */ new Date();
|
|
8
|
-
}
|
|
9
|
-
function utcToLocal(utcDate, timezone) {
|
|
10
|
-
const date = new Date(utcDate);
|
|
11
|
-
if (timezone) {
|
|
12
|
-
return new Date(date.toLocaleString("en-US", { timeZone: timezone }));
|
|
13
|
-
}
|
|
14
|
-
return date;
|
|
15
|
-
}
|
|
16
|
-
function localToUTC(localDate) {
|
|
17
|
-
const date = new Date(localDate);
|
|
18
|
-
return new Date(date.getTime() - date.getTimezoneOffset() * 6e4);
|
|
19
|
-
}
|
|
20
|
-
function formatUserFriendlyDate(date, options) {
|
|
21
|
-
const dateObj = new Date(date);
|
|
22
|
-
const defaultOptions = __spreadValues({
|
|
23
|
-
year: "numeric",
|
|
24
|
-
month: "long",
|
|
25
|
-
day: "numeric",
|
|
26
|
-
hour: "2-digit",
|
|
27
|
-
minute: "2-digit",
|
|
28
|
-
timeZoneName: "short",
|
|
29
|
-
hour12: false
|
|
30
|
-
}, options);
|
|
31
|
-
return dateObj.toLocaleDateString(void 0, defaultOptions);
|
|
32
|
-
}
|
|
33
|
-
function formatSimpleDate(date) {
|
|
34
|
-
const dateObj = new Date(date);
|
|
35
|
-
return dateObj.toLocaleDateString(void 0, {
|
|
36
|
-
year: "numeric",
|
|
37
|
-
month: "2-digit",
|
|
38
|
-
day: "2-digit"
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
function formatSimpleTime(date) {
|
|
42
|
-
const dateObj = new Date(date);
|
|
43
|
-
return dateObj.toLocaleTimeString(void 0, {
|
|
44
|
-
hour: "2-digit",
|
|
45
|
-
minute: "2-digit",
|
|
46
|
-
second: "2-digit",
|
|
47
|
-
hour12: false
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
function formatFullDateTime(date) {
|
|
51
|
-
const dateObj = new Date(date);
|
|
52
|
-
const dateStr = dateObj.toLocaleDateString(void 0, {
|
|
53
|
-
year: "numeric",
|
|
54
|
-
month: "2-digit",
|
|
55
|
-
day: "2-digit"
|
|
56
|
-
});
|
|
57
|
-
const timeStr = dateObj.toLocaleTimeString(void 0, {
|
|
58
|
-
hour: "2-digit",
|
|
59
|
-
minute: "2-digit",
|
|
60
|
-
second: "2-digit",
|
|
61
|
-
hour12: false
|
|
62
|
-
});
|
|
63
|
-
return `${dateStr} ${timeStr}`;
|
|
64
|
-
}
|
|
65
|
-
function formatTableDateTime(date) {
|
|
66
|
-
const dateObj = new Date(date);
|
|
67
|
-
return {
|
|
68
|
-
date: dateObj.toLocaleDateString(void 0, {
|
|
69
|
-
year: "numeric",
|
|
70
|
-
month: "2-digit",
|
|
71
|
-
day: "2-digit"
|
|
72
|
-
}),
|
|
73
|
-
time: dateObj.toLocaleTimeString(void 0, {
|
|
74
|
-
hour: "2-digit",
|
|
75
|
-
minute: "2-digit",
|
|
76
|
-
second: "2-digit",
|
|
77
|
-
hour12: false
|
|
78
|
-
})
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function getRelativeTime(date) {
|
|
82
|
-
const now = /* @__PURE__ */ new Date();
|
|
83
|
-
const targetDate = new Date(date);
|
|
84
|
-
const diffInSeconds = Math.floor(
|
|
85
|
-
(now.getTime() - targetDate.getTime()) / 1e3
|
|
86
|
-
);
|
|
87
|
-
if (diffInSeconds < 60) {
|
|
88
|
-
return "just now";
|
|
89
|
-
}
|
|
90
|
-
const diffInMinutes = Math.floor(diffInSeconds / 60);
|
|
91
|
-
if (diffInMinutes < 60) {
|
|
92
|
-
return `${diffInMinutes}m ago`;
|
|
93
|
-
}
|
|
94
|
-
const diffInHours = Math.floor(diffInMinutes / 60);
|
|
95
|
-
if (diffInHours < 24) {
|
|
96
|
-
return `${diffInHours}h ago`;
|
|
97
|
-
}
|
|
98
|
-
const diffInDays = Math.floor(diffInHours / 24);
|
|
99
|
-
if (diffInDays < 7) {
|
|
100
|
-
return `${diffInDays}d ago`;
|
|
101
|
-
}
|
|
102
|
-
const diffInWeeks = Math.floor(diffInDays / 7);
|
|
103
|
-
if (diffInWeeks < 4) {
|
|
104
|
-
return `${diffInWeeks}w ago`;
|
|
105
|
-
}
|
|
106
|
-
const diffInMonths = Math.floor(diffInDays / 30);
|
|
107
|
-
if (diffInMonths < 12) {
|
|
108
|
-
return `${diffInMonths}mo ago`;
|
|
109
|
-
}
|
|
110
|
-
const diffInYears = Math.floor(diffInDays / 365);
|
|
111
|
-
return `${diffInYears}y ago`;
|
|
112
|
-
}
|
|
113
|
-
function getUserTimezone() {
|
|
114
|
-
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
115
|
-
}
|
|
116
|
-
function getTimezoneOffset() {
|
|
117
|
-
return (/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
118
|
-
}
|
|
119
|
-
function toUTCISOString(date) {
|
|
120
|
-
const dateObj = new Date(date);
|
|
121
|
-
return dateObj.toISOString();
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export {
|
|
125
|
-
getCurrentUTC,
|
|
126
|
-
utcToLocal,
|
|
127
|
-
localToUTC,
|
|
128
|
-
formatUserFriendlyDate,
|
|
129
|
-
formatSimpleDate,
|
|
130
|
-
formatSimpleTime,
|
|
131
|
-
formatFullDateTime,
|
|
132
|
-
formatTableDateTime,
|
|
133
|
-
getRelativeTime,
|
|
134
|
-
getUserTimezone,
|
|
135
|
-
getTimezoneOffset,
|
|
136
|
-
toUTCISOString
|
|
137
|
-
};
|
package/dist/chunk-X7FGBUA4.js
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-4K76HG4V.js";
|
|
4
|
-
|
|
5
|
-
// src/react/components/ui/loading-bar.tsx
|
|
6
|
-
import { useEffect, useState } from "react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
function LoadingBar({
|
|
9
|
-
className,
|
|
10
|
-
size = "md",
|
|
11
|
-
variant = "default",
|
|
12
|
-
animated = true
|
|
13
|
-
}) {
|
|
14
|
-
const [progress, setProgress] = useState(0);
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
if (!animated) return;
|
|
17
|
-
const interval = setInterval(() => {
|
|
18
|
-
setProgress((prev) => {
|
|
19
|
-
if (prev >= 100) {
|
|
20
|
-
return 0;
|
|
21
|
-
}
|
|
22
|
-
return prev + Math.random() * 15;
|
|
23
|
-
});
|
|
24
|
-
}, 200);
|
|
25
|
-
return () => clearInterval(interval);
|
|
26
|
-
}, [animated]);
|
|
27
|
-
const sizeClasses = {
|
|
28
|
-
sm: "h-1",
|
|
29
|
-
md: "h-2",
|
|
30
|
-
lg: "h-3"
|
|
31
|
-
};
|
|
32
|
-
const variantClasses = {
|
|
33
|
-
default: "bg-gradient-to-r from-blue-500 via-purple-500 to-pink-500",
|
|
34
|
-
primary: "bg-gradient-to-r from-blue-600 via-blue-500 to-blue-400",
|
|
35
|
-
secondary: "bg-gradient-to-r from-gray-600 via-gray-500 to-gray-400"
|
|
36
|
-
};
|
|
37
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
38
|
-
"w-full bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",
|
|
39
|
-
sizeClasses[size],
|
|
40
|
-
className
|
|
41
|
-
), children: [
|
|
42
|
-
/* @__PURE__ */ jsx(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
className: cn(
|
|
46
|
-
"h-full rounded-full transition-all duration-300 ease-out",
|
|
47
|
-
variantClasses[variant]
|
|
48
|
-
),
|
|
49
|
-
style: {
|
|
50
|
-
width: animated ? `${Math.min(progress, 100)}%` : "100%",
|
|
51
|
-
backgroundSize: "200% 100%",
|
|
52
|
-
animation: animated ? "shimmer 2s ease-in-out infinite" : "none"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
),
|
|
56
|
-
animated && /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: {
|
|
57
|
-
__html: `
|
|
58
|
-
@keyframes shimmer {
|
|
59
|
-
0% { background-position: -200% 0; }
|
|
60
|
-
100% { background-position: 200% 0; }
|
|
61
|
-
}
|
|
62
|
-
`
|
|
63
|
-
} })
|
|
64
|
-
] });
|
|
65
|
-
}
|
|
66
|
-
function LoadingBarWithText({
|
|
67
|
-
className,
|
|
68
|
-
size = "md",
|
|
69
|
-
variant = "default",
|
|
70
|
-
text = "Loading data...",
|
|
71
|
-
animated = true
|
|
72
|
-
}) {
|
|
73
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col items-center space-y-3 py-8", className), children: [
|
|
74
|
-
/* @__PURE__ */ jsx(LoadingBar, { size, variant, className: "w-64", animated }),
|
|
75
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400 animate-pulse", children: text })
|
|
76
|
-
] });
|
|
77
|
-
}
|
|
78
|
-
function LoadingBarCompact({
|
|
79
|
-
className,
|
|
80
|
-
size = "sm",
|
|
81
|
-
variant = "primary",
|
|
82
|
-
animated = true
|
|
83
|
-
}) {
|
|
84
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center space-x-2", className), children: [
|
|
85
|
-
/* @__PURE__ */ jsx(LoadingBar, { size, variant, className: "flex-1", animated }),
|
|
86
|
-
animated && /* @__PURE__ */ jsx("div", { className: "w-2 h-2 bg-blue-600 rounded-full animate-ping" })
|
|
87
|
-
] });
|
|
88
|
-
}
|
|
89
|
-
function LoadingCard({
|
|
90
|
-
variant = "card",
|
|
91
|
-
text = "Loading...",
|
|
92
|
-
className,
|
|
93
|
-
size = "md",
|
|
94
|
-
animated = true
|
|
95
|
-
}) {
|
|
96
|
-
switch (variant) {
|
|
97
|
-
case "bar":
|
|
98
|
-
return /* @__PURE__ */ jsx(LoadingBar, { size, className, animated });
|
|
99
|
-
case "compact":
|
|
100
|
-
return /* @__PURE__ */ jsx(LoadingBarCompact, { size, className, animated });
|
|
101
|
-
case "text":
|
|
102
|
-
return /* @__PURE__ */ jsx(LoadingBarWithText, { text, size, className, animated });
|
|
103
|
-
case "card":
|
|
104
|
-
default:
|
|
105
|
-
return /* @__PURE__ */ jsx("div", { className: cn("bg-white border border-gray-200 rounded-lg shadow-sm", className), children: /* @__PURE__ */ jsx("div", { className: "p-6", children: /* @__PURE__ */ jsxs("div", { className: "py-8 text-center text-gray-500", children: [
|
|
106
|
-
/* @__PURE__ */ jsx(LoadingBarCompact, { size: "sm", className: "mb-4", animated }),
|
|
107
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm", children: text })
|
|
108
|
-
] }) }) });
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export {
|
|
113
|
-
LoadingBar,
|
|
114
|
-
LoadingBarWithText,
|
|
115
|
-
LoadingBarCompact,
|
|
116
|
-
LoadingCard
|
|
117
|
-
};
|
package/dist/chunk-YSPIFSDI.js
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Input
|
|
3
|
-
} from "./chunk-4IQWQSEV.js";
|
|
4
|
-
import {
|
|
5
|
-
Label
|
|
6
|
-
} from "./chunk-IRUFNC4L.js";
|
|
7
|
-
import {
|
|
8
|
-
Select,
|
|
9
|
-
SelectContent,
|
|
10
|
-
SelectItem,
|
|
11
|
-
SelectTrigger,
|
|
12
|
-
SelectValue
|
|
13
|
-
} from "./chunk-GPOSTBDQ.js";
|
|
14
|
-
import {
|
|
15
|
-
Button
|
|
16
|
-
} from "./chunk-BW4QO7T6.js";
|
|
17
|
-
import {
|
|
18
|
-
cn
|
|
19
|
-
} from "./chunk-4K76HG4V.js";
|
|
20
|
-
import {
|
|
21
|
-
__spreadProps,
|
|
22
|
-
__spreadValues
|
|
23
|
-
} from "./chunk-ORMEWXMH.js";
|
|
24
|
-
|
|
25
|
-
// src/react/components/ui/data-table/DataTableFilters.tsx
|
|
26
|
-
import { RefreshCw } from "lucide-react";
|
|
27
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
28
|
-
function DataTableFilters({
|
|
29
|
-
filters,
|
|
30
|
-
filterValues,
|
|
31
|
-
onFilterChange,
|
|
32
|
-
onClearFilters,
|
|
33
|
-
hasActiveFilters,
|
|
34
|
-
labels
|
|
35
|
-
}) {
|
|
36
|
-
return /* @__PURE__ */ jsxs("div", { className: "p-2 bg-muted/50 rounded-lg space-y-2", children: [
|
|
37
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4", children: filters.map((filter) => {
|
|
38
|
-
var _a, _b, _c, _d, _e;
|
|
39
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("space-y-1", filter.className), children: [
|
|
40
|
-
/* @__PURE__ */ jsx(Label, { className: "text-sm font-medium", children: filter.label }),
|
|
41
|
-
filter.type === "text" && /* @__PURE__ */ jsx(
|
|
42
|
-
Input,
|
|
43
|
-
{
|
|
44
|
-
"data-testid": `filter-${filter.key}`,
|
|
45
|
-
type: "text",
|
|
46
|
-
value: filterValues[filter.key] || "",
|
|
47
|
-
onChange: (e) => onFilterChange == null ? void 0 : onFilterChange(filter.key, e.target.value),
|
|
48
|
-
placeholder: filter.placeholder,
|
|
49
|
-
className: "text-xs"
|
|
50
|
-
}
|
|
51
|
-
),
|
|
52
|
-
filter.type === "select" && /* @__PURE__ */ jsxs(
|
|
53
|
-
Select,
|
|
54
|
-
{
|
|
55
|
-
value: filterValues[filter.key] || "all",
|
|
56
|
-
onValueChange: (value) => onFilterChange == null ? void 0 : onFilterChange(filter.key, value),
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ jsx(SelectTrigger, { "data-testid": `filter-${filter.key}`, className: "text-xs w-full h-9", children: /* @__PURE__ */ jsx(SelectValue, { placeholder: filter.placeholder }) }),
|
|
59
|
-
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
60
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "all", children: labels.all }),
|
|
61
|
-
(_a = filter.options) == null ? void 0 : _a.map((option) => /* @__PURE__ */ jsx(SelectItem, { value: option.value, children: option.label }, option.value))
|
|
62
|
-
] })
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
filter.type === "date" && /* @__PURE__ */ jsx(
|
|
67
|
-
Input,
|
|
68
|
-
{
|
|
69
|
-
type: "date",
|
|
70
|
-
value: filterValues[filter.key] || "",
|
|
71
|
-
onChange: (e) => onFilterChange == null ? void 0 : onFilterChange(filter.key, e.target.value),
|
|
72
|
-
className: "text-xs"
|
|
73
|
-
}
|
|
74
|
-
),
|
|
75
|
-
filter.type === "number" && /* @__PURE__ */ jsx(
|
|
76
|
-
Input,
|
|
77
|
-
{
|
|
78
|
-
type: "number",
|
|
79
|
-
value: filterValues[filter.key] || "",
|
|
80
|
-
onChange: (e) => onFilterChange == null ? void 0 : onFilterChange(filter.key, e.target.value),
|
|
81
|
-
placeholder: filter.placeholder,
|
|
82
|
-
className: "text-xs"
|
|
83
|
-
}
|
|
84
|
-
),
|
|
85
|
-
filter.type === "range" && /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
87
|
-
Input,
|
|
88
|
-
{
|
|
89
|
-
type: filter.inputType || "text",
|
|
90
|
-
value: ((_b = filterValues[filter.key]) == null ? void 0 : _b.min) || ((_c = filterValues[filter.key]) == null ? void 0 : _c.start) || "",
|
|
91
|
-
onChange: (e) => {
|
|
92
|
-
const currentValue = filterValues[filter.key] || {};
|
|
93
|
-
const newValue = filter.key.includes("date") || filter.key.includes("Date") ? __spreadProps(__spreadValues({}, currentValue), { start: e.target.value }) : __spreadProps(__spreadValues({}, currentValue), { min: e.target.value });
|
|
94
|
-
onFilterChange == null ? void 0 : onFilterChange(filter.key, newValue);
|
|
95
|
-
},
|
|
96
|
-
className: "text-xs",
|
|
97
|
-
placeholder: filter.minPlaceholder || labels.min
|
|
98
|
-
}
|
|
99
|
-
),
|
|
100
|
-
/* @__PURE__ */ jsx(
|
|
101
|
-
Input,
|
|
102
|
-
{
|
|
103
|
-
type: filter.inputType || "text",
|
|
104
|
-
value: ((_d = filterValues[filter.key]) == null ? void 0 : _d.max) || ((_e = filterValues[filter.key]) == null ? void 0 : _e.end) || "",
|
|
105
|
-
onChange: (e) => {
|
|
106
|
-
const currentValue = filterValues[filter.key] || {};
|
|
107
|
-
const newValue = filter.key.includes("date") || filter.key.includes("Date") ? __spreadProps(__spreadValues({}, currentValue), { end: e.target.value }) : __spreadProps(__spreadValues({}, currentValue), { max: e.target.value });
|
|
108
|
-
onFilterChange == null ? void 0 : onFilterChange(filter.key, newValue);
|
|
109
|
-
},
|
|
110
|
-
className: "text-xs",
|
|
111
|
-
placeholder: filter.maxPlaceholder || labels.max
|
|
112
|
-
}
|
|
113
|
-
)
|
|
114
|
-
] })
|
|
115
|
-
] }, filter.key);
|
|
116
|
-
}) }),
|
|
117
|
-
hasActiveFilters && onClearFilters && /* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsxs(
|
|
118
|
-
Button,
|
|
119
|
-
{
|
|
120
|
-
"data-testid": "clear-filters-btn",
|
|
121
|
-
variant: "outline",
|
|
122
|
-
size: "sm",
|
|
123
|
-
onClick: onClearFilters,
|
|
124
|
-
className: "flex items-center gap-2",
|
|
125
|
-
children: [
|
|
126
|
-
/* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" }),
|
|
127
|
-
labels.clearFilters
|
|
128
|
-
]
|
|
129
|
-
}
|
|
130
|
-
) })
|
|
131
|
-
] });
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export {
|
|
135
|
-
DataTableFilters
|
|
136
|
-
};
|
package/dist/chunk-ZCLKRGZ4.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
LoadingBar
|
|
3
|
-
} from "./chunk-X7FGBUA4.js";
|
|
4
|
-
import {
|
|
5
|
-
formatLabel
|
|
6
|
-
} from "./chunk-B5OH43PR.js";
|
|
7
|
-
import {
|
|
8
|
-
Button
|
|
9
|
-
} from "./chunk-BW4QO7T6.js";
|
|
10
|
-
|
|
11
|
-
// src/react/components/ui/data-table/DataTableBulkActions.tsx
|
|
12
|
-
import { CheckSquare, Square, Loader2 } from "lucide-react";
|
|
13
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
function DataTableBulkActions({
|
|
15
|
-
bulkActions,
|
|
16
|
-
localSelectedIds,
|
|
17
|
-
dataLength,
|
|
18
|
-
bulkActionLoading,
|
|
19
|
-
onSelectAll,
|
|
20
|
-
onBulkAction,
|
|
21
|
-
labels
|
|
22
|
-
}) {
|
|
23
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 p-3 bg-muted rounded-lg", children: [
|
|
25
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col sm:flex-row items-start sm:items-center gap-3", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
26
|
-
/* @__PURE__ */ jsxs(
|
|
27
|
-
Button,
|
|
28
|
-
{
|
|
29
|
-
"data-testid": "select-all-btn",
|
|
30
|
-
variant: "outline",
|
|
31
|
-
size: "sm",
|
|
32
|
-
onClick: () => {
|
|
33
|
-
const allSelected = localSelectedIds.length === dataLength && dataLength > 0;
|
|
34
|
-
onSelectAll(!allSelected);
|
|
35
|
-
},
|
|
36
|
-
className: "flex items-center gap-1 h-9 px-3",
|
|
37
|
-
children: [
|
|
38
|
-
localSelectedIds.length === dataLength && dataLength > 0 ? /* @__PURE__ */ jsx(CheckSquare, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(Square, { className: "h-4 w-4" }),
|
|
39
|
-
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: labels.selectAll }),
|
|
40
|
-
/* @__PURE__ */ jsx("span", { className: "sm:hidden", children: labels.selectAllShort })
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
),
|
|
44
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: formatLabel(labels.selected, { count: localSelectedIds.length, total: dataLength }) })
|
|
45
|
-
] }) }),
|
|
46
|
-
localSelectedIds.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-2", children: bulkActions.map((action) => {
|
|
47
|
-
var _a;
|
|
48
|
-
const isLoading = bulkActionLoading === action.key;
|
|
49
|
-
const isDisabled = !!bulkActionLoading || ((_a = action.disabled) == null ? void 0 : _a.call(action, localSelectedIds)) || localSelectedIds.length === 0;
|
|
50
|
-
return /* @__PURE__ */ jsxs(
|
|
51
|
-
Button,
|
|
52
|
-
{
|
|
53
|
-
"data-testid": `bulk-action-${action.key}`,
|
|
54
|
-
variant: action.variant || "outline",
|
|
55
|
-
size: "sm",
|
|
56
|
-
onClick: () => onBulkAction(action),
|
|
57
|
-
disabled: isDisabled,
|
|
58
|
-
className: "flex items-center gap-1 h-9 text-xs",
|
|
59
|
-
children: [
|
|
60
|
-
isLoading ? /* @__PURE__ */ jsx(Loader2, { className: "h-3 w-3 animate-spin" }) : action.icon,
|
|
61
|
-
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline", children: isLoading ? labels.processing : action.label }),
|
|
62
|
-
/* @__PURE__ */ jsx("span", { className: "sm:hidden", children: isLoading ? "..." : action.label.split(" ")[0] })
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
action.key
|
|
66
|
-
);
|
|
67
|
-
}) })
|
|
68
|
-
] }),
|
|
69
|
-
bulkActionLoading && /* @__PURE__ */ jsxs("div", { className: "p-3 bg-muted/50 rounded-lg", children: [
|
|
70
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
71
|
-
/* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin text-primary" }),
|
|
72
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: formatLabel(labels.processingItems, { count: localSelectedIds.length }) })
|
|
73
|
-
] }),
|
|
74
|
-
/* @__PURE__ */ jsx(LoadingBar, { size: "sm", variant: "primary", className: "mt-2" })
|
|
75
|
-
] })
|
|
76
|
-
] });
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export {
|
|
80
|
-
DataTableBulkActions
|
|
81
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DataTable
|
|
3
|
-
*
|
|
4
|
-
* 하위 호환성을 위한 re-export wrapper
|
|
5
|
-
* 실제 구현은 ./data-table/ 디렉토리에 위치
|
|
6
|
-
*/
|
|
7
|
-
export { DataTable } from "./data-table";
|
|
8
|
-
export type { DataTableLabels, ColumnDef, BulkAction, FilterConfig, PaginationConfig, SortConfig, DataTableProps, } from "./data-table";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-7PEVOMBO.js";
|
|
2
|
-
import {
|
|
3
|
-
DataTable
|
|
4
|
-
} from "../../../chunk-G4GT4X3J.js";
|
|
5
|
-
import "../../../chunk-2P4N4OK2.js";
|
|
6
|
-
import "../../../chunk-ZCLKRGZ4.js";
|
|
7
|
-
import "../../../chunk-X7FGBUA4.js";
|
|
8
|
-
import "../../../chunk-YSPIFSDI.js";
|
|
9
|
-
import "../../../chunk-MFMQO6IS.js";
|
|
10
|
-
import "../../../chunk-7VXRBTRF.js";
|
|
11
|
-
import "../../../chunk-B5OH43PR.js";
|
|
12
|
-
import "../../../chunk-4IQWQSEV.js";
|
|
13
|
-
import "../../../chunk-IRUFNC4L.js";
|
|
14
|
-
import "../../../chunk-J2MAXMIP.js";
|
|
15
|
-
import "../../../chunk-GPOSTBDQ.js";
|
|
16
|
-
import "../../../chunk-PBQGXOVX.js";
|
|
17
|
-
import "../../../chunk-BW4QO7T6.js";
|
|
18
|
-
import "../../../chunk-4K76HG4V.js";
|
|
19
|
-
import "../../../chunk-ORMEWXMH.js";
|
|
20
|
-
export {
|
|
21
|
-
DataTable
|
|
22
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface IDomainDisplayProps {
|
|
2
|
-
className?: string;
|
|
3
|
-
showProtocol?: boolean;
|
|
4
|
-
baseUrl?: string;
|
|
5
|
-
appendTrailingSlash?: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* 도메인을 표시하는 컴포넌트
|
|
9
|
-
* baseUrl prop이 없으면 현재 브라우저 도메인을 기준으로 표시합니다.
|
|
10
|
-
*/
|
|
11
|
-
export declare function DomainDisplay({ className, showProtocol, baseUrl, appendTrailingSlash }: IDomainDisplayProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../chunk-ORMEWXMH.js";
|
|
3
|
-
|
|
4
|
-
// src/react/components/ui/DomainDisplay.tsx
|
|
5
|
-
import { useEffect, useMemo, useState } from "react";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
var FALLBACK_BASE_URL = "https://example.com";
|
|
8
|
-
function DomainDisplay({
|
|
9
|
-
className = "",
|
|
10
|
-
showProtocol = true,
|
|
11
|
-
baseUrl,
|
|
12
|
-
appendTrailingSlash = true
|
|
13
|
-
}) {
|
|
14
|
-
const initialBaseUrl = useMemo(() => {
|
|
15
|
-
if (baseUrl) return baseUrl;
|
|
16
|
-
if (typeof window !== "undefined") return window.location.origin;
|
|
17
|
-
return FALLBACK_BASE_URL;
|
|
18
|
-
}, [baseUrl]);
|
|
19
|
-
const [resolvedBaseUrl, setResolvedBaseUrl] = useState(initialBaseUrl);
|
|
20
|
-
useEffect(() => {
|
|
21
|
-
if (!baseUrl && typeof window !== "undefined") {
|
|
22
|
-
setResolvedBaseUrl(window.location.origin);
|
|
23
|
-
}
|
|
24
|
-
}, [baseUrl]);
|
|
25
|
-
const normalizedBase = showProtocol ? resolvedBaseUrl : resolvedBaseUrl.replace(/^https?:\/\//, "");
|
|
26
|
-
const displayDomain = appendTrailingSlash ? normalizedBase.endsWith("/") ? normalizedBase : `${normalizedBase}/` : normalizedBase.replace(/\/$/, "");
|
|
27
|
-
return /* @__PURE__ */ jsx("span", { className: `font-mono text-sm text-muted-foreground ${className}`, children: displayDomain });
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
DomainDisplay
|
|
31
|
-
};
|