@licklist/design 0.78.7-stage.18 → 0.78.7-stage.19
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/dist/CustomDatePicker/CustomDatePicker.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/CustomDatePicker/CustomDatePicker.tsx +0 -2
- package/yarn.lock +113 -145
- package/dist/CustomAlertTypes/AlertBox.d.ts +0 -22
- package/dist/CustomAlertTypes/AlertBox.d.ts.map +0 -1
- package/dist/CustomAlertTypes/AlertRender.d.ts +0 -21
- package/dist/CustomAlertTypes/AlertRender.d.ts.map +0 -1
- package/dist/CustomAlertTypes/alertThemes.d.ts +0 -41
- package/dist/CustomAlertTypes/alertThemes.d.ts.map +0 -1
- package/dist/CustomAlertTypes/utils/textWrapperUtils.d.ts +0 -8
- package/dist/CustomAlertTypes/utils/textWrapperUtils.d.ts.map +0 -1
- package/src/CustomAlertTypes/AlertBox.tsx +0 -87
- package/src/CustomAlertTypes/AlertRender.ts +0 -283
- package/src/CustomAlertTypes/alertThemes.ts +0 -72
- package/src/CustomAlertTypes/utils/textWrapperUtils.ts +0 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomDatePicker.d.ts","sourceRoot":"","sources":["../../src/CustomDatePicker/CustomDatePicker.tsx"],"names":[],"mappings":"AAMA,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,OAAc,EACd,QAAe,EAChB,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"CustomDatePicker.d.ts","sourceRoot":"","sources":["../../src/CustomDatePicker/CustomDatePicker.tsx"],"names":[],"mappings":"AAMA,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,OAAc,EACd,QAAe,EAChB,EAAE,qBAAqB,2CAwOvB"}
|
package/package.json
CHANGED
package/yarn.lock
CHANGED
|
@@ -3280,156 +3280,156 @@ __metadata:
|
|
|
3280
3280
|
languageName: node
|
|
3281
3281
|
linkType: hard
|
|
3282
3282
|
|
|
3283
|
-
"@rollup/rollup-android-arm-eabi@npm:4.52.
|
|
3284
|
-
version: 4.52.
|
|
3285
|
-
resolution: "@rollup/rollup-android-arm-eabi@npm:4.52.
|
|
3283
|
+
"@rollup/rollup-android-arm-eabi@npm:4.52.2":
|
|
3284
|
+
version: 4.52.2
|
|
3285
|
+
resolution: "@rollup/rollup-android-arm-eabi@npm:4.52.2"
|
|
3286
3286
|
conditions: os=android & cpu=arm
|
|
3287
3287
|
languageName: node
|
|
3288
3288
|
linkType: hard
|
|
3289
3289
|
|
|
3290
|
-
"@rollup/rollup-android-arm64@npm:4.52.
|
|
3291
|
-
version: 4.52.
|
|
3292
|
-
resolution: "@rollup/rollup-android-arm64@npm:4.52.
|
|
3290
|
+
"@rollup/rollup-android-arm64@npm:4.52.2":
|
|
3291
|
+
version: 4.52.2
|
|
3292
|
+
resolution: "@rollup/rollup-android-arm64@npm:4.52.2"
|
|
3293
3293
|
conditions: os=android & cpu=arm64
|
|
3294
3294
|
languageName: node
|
|
3295
3295
|
linkType: hard
|
|
3296
3296
|
|
|
3297
|
-
"@rollup/rollup-darwin-arm64@npm:4.52.
|
|
3298
|
-
version: 4.52.
|
|
3299
|
-
resolution: "@rollup/rollup-darwin-arm64@npm:4.52.
|
|
3297
|
+
"@rollup/rollup-darwin-arm64@npm:4.52.2":
|
|
3298
|
+
version: 4.52.2
|
|
3299
|
+
resolution: "@rollup/rollup-darwin-arm64@npm:4.52.2"
|
|
3300
3300
|
conditions: os=darwin & cpu=arm64
|
|
3301
3301
|
languageName: node
|
|
3302
3302
|
linkType: hard
|
|
3303
3303
|
|
|
3304
|
-
"@rollup/rollup-darwin-x64@npm:4.52.
|
|
3305
|
-
version: 4.52.
|
|
3306
|
-
resolution: "@rollup/rollup-darwin-x64@npm:4.52.
|
|
3304
|
+
"@rollup/rollup-darwin-x64@npm:4.52.2":
|
|
3305
|
+
version: 4.52.2
|
|
3306
|
+
resolution: "@rollup/rollup-darwin-x64@npm:4.52.2"
|
|
3307
3307
|
conditions: os=darwin & cpu=x64
|
|
3308
3308
|
languageName: node
|
|
3309
3309
|
linkType: hard
|
|
3310
3310
|
|
|
3311
|
-
"@rollup/rollup-freebsd-arm64@npm:4.52.
|
|
3312
|
-
version: 4.52.
|
|
3313
|
-
resolution: "@rollup/rollup-freebsd-arm64@npm:4.52.
|
|
3311
|
+
"@rollup/rollup-freebsd-arm64@npm:4.52.2":
|
|
3312
|
+
version: 4.52.2
|
|
3313
|
+
resolution: "@rollup/rollup-freebsd-arm64@npm:4.52.2"
|
|
3314
3314
|
conditions: os=freebsd & cpu=arm64
|
|
3315
3315
|
languageName: node
|
|
3316
3316
|
linkType: hard
|
|
3317
3317
|
|
|
3318
|
-
"@rollup/rollup-freebsd-x64@npm:4.52.
|
|
3319
|
-
version: 4.52.
|
|
3320
|
-
resolution: "@rollup/rollup-freebsd-x64@npm:4.52.
|
|
3318
|
+
"@rollup/rollup-freebsd-x64@npm:4.52.2":
|
|
3319
|
+
version: 4.52.2
|
|
3320
|
+
resolution: "@rollup/rollup-freebsd-x64@npm:4.52.2"
|
|
3321
3321
|
conditions: os=freebsd & cpu=x64
|
|
3322
3322
|
languageName: node
|
|
3323
3323
|
linkType: hard
|
|
3324
3324
|
|
|
3325
|
-
"@rollup/rollup-linux-arm-gnueabihf@npm:4.52.
|
|
3326
|
-
version: 4.52.
|
|
3327
|
-
resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.52.
|
|
3325
|
+
"@rollup/rollup-linux-arm-gnueabihf@npm:4.52.2":
|
|
3326
|
+
version: 4.52.2
|
|
3327
|
+
resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.52.2"
|
|
3328
3328
|
conditions: os=linux & cpu=arm & libc=glibc
|
|
3329
3329
|
languageName: node
|
|
3330
3330
|
linkType: hard
|
|
3331
3331
|
|
|
3332
|
-
"@rollup/rollup-linux-arm-musleabihf@npm:4.52.
|
|
3333
|
-
version: 4.52.
|
|
3334
|
-
resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.52.
|
|
3332
|
+
"@rollup/rollup-linux-arm-musleabihf@npm:4.52.2":
|
|
3333
|
+
version: 4.52.2
|
|
3334
|
+
resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.52.2"
|
|
3335
3335
|
conditions: os=linux & cpu=arm & libc=musl
|
|
3336
3336
|
languageName: node
|
|
3337
3337
|
linkType: hard
|
|
3338
3338
|
|
|
3339
|
-
"@rollup/rollup-linux-arm64-gnu@npm:4.52.
|
|
3340
|
-
version: 4.52.
|
|
3341
|
-
resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.52.
|
|
3339
|
+
"@rollup/rollup-linux-arm64-gnu@npm:4.52.2":
|
|
3340
|
+
version: 4.52.2
|
|
3341
|
+
resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.52.2"
|
|
3342
3342
|
conditions: os=linux & cpu=arm64 & libc=glibc
|
|
3343
3343
|
languageName: node
|
|
3344
3344
|
linkType: hard
|
|
3345
3345
|
|
|
3346
|
-
"@rollup/rollup-linux-arm64-musl@npm:4.52.
|
|
3347
|
-
version: 4.52.
|
|
3348
|
-
resolution: "@rollup/rollup-linux-arm64-musl@npm:4.52.
|
|
3346
|
+
"@rollup/rollup-linux-arm64-musl@npm:4.52.2":
|
|
3347
|
+
version: 4.52.2
|
|
3348
|
+
resolution: "@rollup/rollup-linux-arm64-musl@npm:4.52.2"
|
|
3349
3349
|
conditions: os=linux & cpu=arm64 & libc=musl
|
|
3350
3350
|
languageName: node
|
|
3351
3351
|
linkType: hard
|
|
3352
3352
|
|
|
3353
|
-
"@rollup/rollup-linux-loong64-gnu@npm:4.52.
|
|
3354
|
-
version: 4.52.
|
|
3355
|
-
resolution: "@rollup/rollup-linux-loong64-gnu@npm:4.52.
|
|
3353
|
+
"@rollup/rollup-linux-loong64-gnu@npm:4.52.2":
|
|
3354
|
+
version: 4.52.2
|
|
3355
|
+
resolution: "@rollup/rollup-linux-loong64-gnu@npm:4.52.2"
|
|
3356
3356
|
conditions: os=linux & cpu=loong64 & libc=glibc
|
|
3357
3357
|
languageName: node
|
|
3358
3358
|
linkType: hard
|
|
3359
3359
|
|
|
3360
|
-
"@rollup/rollup-linux-ppc64-gnu@npm:4.52.
|
|
3361
|
-
version: 4.52.
|
|
3362
|
-
resolution: "@rollup/rollup-linux-ppc64-gnu@npm:4.52.
|
|
3360
|
+
"@rollup/rollup-linux-ppc64-gnu@npm:4.52.2":
|
|
3361
|
+
version: 4.52.2
|
|
3362
|
+
resolution: "@rollup/rollup-linux-ppc64-gnu@npm:4.52.2"
|
|
3363
3363
|
conditions: os=linux & cpu=ppc64 & libc=glibc
|
|
3364
3364
|
languageName: node
|
|
3365
3365
|
linkType: hard
|
|
3366
3366
|
|
|
3367
|
-
"@rollup/rollup-linux-riscv64-gnu@npm:4.52.
|
|
3368
|
-
version: 4.52.
|
|
3369
|
-
resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.52.
|
|
3367
|
+
"@rollup/rollup-linux-riscv64-gnu@npm:4.52.2":
|
|
3368
|
+
version: 4.52.2
|
|
3369
|
+
resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.52.2"
|
|
3370
3370
|
conditions: os=linux & cpu=riscv64 & libc=glibc
|
|
3371
3371
|
languageName: node
|
|
3372
3372
|
linkType: hard
|
|
3373
3373
|
|
|
3374
|
-
"@rollup/rollup-linux-riscv64-musl@npm:4.52.
|
|
3375
|
-
version: 4.52.
|
|
3376
|
-
resolution: "@rollup/rollup-linux-riscv64-musl@npm:4.52.
|
|
3374
|
+
"@rollup/rollup-linux-riscv64-musl@npm:4.52.2":
|
|
3375
|
+
version: 4.52.2
|
|
3376
|
+
resolution: "@rollup/rollup-linux-riscv64-musl@npm:4.52.2"
|
|
3377
3377
|
conditions: os=linux & cpu=riscv64 & libc=musl
|
|
3378
3378
|
languageName: node
|
|
3379
3379
|
linkType: hard
|
|
3380
3380
|
|
|
3381
|
-
"@rollup/rollup-linux-s390x-gnu@npm:4.52.
|
|
3382
|
-
version: 4.52.
|
|
3383
|
-
resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.52.
|
|
3381
|
+
"@rollup/rollup-linux-s390x-gnu@npm:4.52.2":
|
|
3382
|
+
version: 4.52.2
|
|
3383
|
+
resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.52.2"
|
|
3384
3384
|
conditions: os=linux & cpu=s390x & libc=glibc
|
|
3385
3385
|
languageName: node
|
|
3386
3386
|
linkType: hard
|
|
3387
3387
|
|
|
3388
|
-
"@rollup/rollup-linux-x64-gnu@npm:4.52.
|
|
3389
|
-
version: 4.52.
|
|
3390
|
-
resolution: "@rollup/rollup-linux-x64-gnu@npm:4.52.
|
|
3388
|
+
"@rollup/rollup-linux-x64-gnu@npm:4.52.2":
|
|
3389
|
+
version: 4.52.2
|
|
3390
|
+
resolution: "@rollup/rollup-linux-x64-gnu@npm:4.52.2"
|
|
3391
3391
|
conditions: os=linux & cpu=x64 & libc=glibc
|
|
3392
3392
|
languageName: node
|
|
3393
3393
|
linkType: hard
|
|
3394
3394
|
|
|
3395
|
-
"@rollup/rollup-linux-x64-musl@npm:4.52.
|
|
3396
|
-
version: 4.52.
|
|
3397
|
-
resolution: "@rollup/rollup-linux-x64-musl@npm:4.52.
|
|
3395
|
+
"@rollup/rollup-linux-x64-musl@npm:4.52.2":
|
|
3396
|
+
version: 4.52.2
|
|
3397
|
+
resolution: "@rollup/rollup-linux-x64-musl@npm:4.52.2"
|
|
3398
3398
|
conditions: os=linux & cpu=x64 & libc=musl
|
|
3399
3399
|
languageName: node
|
|
3400
3400
|
linkType: hard
|
|
3401
3401
|
|
|
3402
|
-
"@rollup/rollup-openharmony-arm64@npm:4.52.
|
|
3403
|
-
version: 4.52.
|
|
3404
|
-
resolution: "@rollup/rollup-openharmony-arm64@npm:4.52.
|
|
3402
|
+
"@rollup/rollup-openharmony-arm64@npm:4.52.2":
|
|
3403
|
+
version: 4.52.2
|
|
3404
|
+
resolution: "@rollup/rollup-openharmony-arm64@npm:4.52.2"
|
|
3405
3405
|
conditions: os=openharmony & cpu=arm64
|
|
3406
3406
|
languageName: node
|
|
3407
3407
|
linkType: hard
|
|
3408
3408
|
|
|
3409
|
-
"@rollup/rollup-win32-arm64-msvc@npm:4.52.
|
|
3410
|
-
version: 4.52.
|
|
3411
|
-
resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.52.
|
|
3409
|
+
"@rollup/rollup-win32-arm64-msvc@npm:4.52.2":
|
|
3410
|
+
version: 4.52.2
|
|
3411
|
+
resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.52.2"
|
|
3412
3412
|
conditions: os=win32 & cpu=arm64
|
|
3413
3413
|
languageName: node
|
|
3414
3414
|
linkType: hard
|
|
3415
3415
|
|
|
3416
|
-
"@rollup/rollup-win32-ia32-msvc@npm:4.52.
|
|
3417
|
-
version: 4.52.
|
|
3418
|
-
resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.52.
|
|
3416
|
+
"@rollup/rollup-win32-ia32-msvc@npm:4.52.2":
|
|
3417
|
+
version: 4.52.2
|
|
3418
|
+
resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.52.2"
|
|
3419
3419
|
conditions: os=win32 & cpu=ia32
|
|
3420
3420
|
languageName: node
|
|
3421
3421
|
linkType: hard
|
|
3422
3422
|
|
|
3423
|
-
"@rollup/rollup-win32-x64-gnu@npm:4.52.
|
|
3424
|
-
version: 4.52.
|
|
3425
|
-
resolution: "@rollup/rollup-win32-x64-gnu@npm:4.52.
|
|
3423
|
+
"@rollup/rollup-win32-x64-gnu@npm:4.52.2":
|
|
3424
|
+
version: 4.52.2
|
|
3425
|
+
resolution: "@rollup/rollup-win32-x64-gnu@npm:4.52.2"
|
|
3426
3426
|
conditions: os=win32 & cpu=x64
|
|
3427
3427
|
languageName: node
|
|
3428
3428
|
linkType: hard
|
|
3429
3429
|
|
|
3430
|
-
"@rollup/rollup-win32-x64-msvc@npm:4.52.
|
|
3431
|
-
version: 4.52.
|
|
3432
|
-
resolution: "@rollup/rollup-win32-x64-msvc@npm:4.52.
|
|
3430
|
+
"@rollup/rollup-win32-x64-msvc@npm:4.52.2":
|
|
3431
|
+
version: 4.52.2
|
|
3432
|
+
resolution: "@rollup/rollup-win32-x64-msvc@npm:4.52.2"
|
|
3433
3433
|
conditions: os=win32 & cpu=x64
|
|
3434
3434
|
languageName: node
|
|
3435
3435
|
linkType: hard
|
|
@@ -5173,14 +5173,14 @@ __metadata:
|
|
|
5173
5173
|
linkType: hard
|
|
5174
5174
|
|
|
5175
5175
|
"@tiptap/extension-bubble-menu@npm:^2.0.0-beta.56":
|
|
5176
|
-
version: 2.26.
|
|
5177
|
-
resolution: "@tiptap/extension-bubble-menu@npm:2.26.
|
|
5176
|
+
version: 2.26.2
|
|
5177
|
+
resolution: "@tiptap/extension-bubble-menu@npm:2.26.2"
|
|
5178
5178
|
dependencies:
|
|
5179
5179
|
tippy.js: "npm:^6.3.7"
|
|
5180
5180
|
peerDependencies:
|
|
5181
5181
|
"@tiptap/core": ^2.7.0
|
|
5182
5182
|
"@tiptap/pm": ^2.7.0
|
|
5183
|
-
checksum: 10c0/
|
|
5183
|
+
checksum: 10c0/a130c081a3c2a1b3811ef3792147965ef0290a056d3ea34349ede73663f2133e1667d22766ef384650689fe753607784ec828010c1cb0ddc0bc854c7d4f0bb65
|
|
5184
5184
|
languageName: node
|
|
5185
5185
|
linkType: hard
|
|
5186
5186
|
|
|
@@ -5203,14 +5203,14 @@ __metadata:
|
|
|
5203
5203
|
linkType: hard
|
|
5204
5204
|
|
|
5205
5205
|
"@tiptap/extension-floating-menu@npm:^2.0.0-beta.51":
|
|
5206
|
-
version: 2.26.
|
|
5207
|
-
resolution: "@tiptap/extension-floating-menu@npm:2.26.
|
|
5206
|
+
version: 2.26.2
|
|
5207
|
+
resolution: "@tiptap/extension-floating-menu@npm:2.26.2"
|
|
5208
5208
|
dependencies:
|
|
5209
5209
|
tippy.js: "npm:^6.3.7"
|
|
5210
5210
|
peerDependencies:
|
|
5211
5211
|
"@tiptap/core": ^2.7.0
|
|
5212
5212
|
"@tiptap/pm": ^2.7.0
|
|
5213
|
-
checksum: 10c0/
|
|
5213
|
+
checksum: 10c0/70350a5b4db1065a6ecb7a1e3eb2957fefd3948e4f260cbaeac6076d0b63754ea36c42c478c28cf3c4537588b9b64c01d0235eb8ab1f1fa361e2a1403a7e9a2f
|
|
5214
5214
|
languageName: node
|
|
5215
5215
|
linkType: hard
|
|
5216
5216
|
|
|
@@ -8856,18 +8856,6 @@ __metadata:
|
|
|
8856
8856
|
languageName: node
|
|
8857
8857
|
linkType: hard
|
|
8858
8858
|
|
|
8859
|
-
"create-hash@npm:~1.1.3":
|
|
8860
|
-
version: 1.1.3
|
|
8861
|
-
resolution: "create-hash@npm:1.1.3"
|
|
8862
|
-
dependencies:
|
|
8863
|
-
cipher-base: "npm:^1.0.1"
|
|
8864
|
-
inherits: "npm:^2.0.1"
|
|
8865
|
-
ripemd160: "npm:^2.0.0"
|
|
8866
|
-
sha.js: "npm:^2.4.0"
|
|
8867
|
-
checksum: 10c0/dbcf4a1b13c8dd5f2a69f5f30bd2701f919ed7d3fbf5aa530cf00b17a950c2b77f63bfe6a2981735a646ae2620d96c8f4584bf70aeeabf050a31de4e46219d08
|
|
8868
|
-
languageName: node
|
|
8869
|
-
linkType: hard
|
|
8870
|
-
|
|
8871
8859
|
"create-hmac@npm:^1.1.7":
|
|
8872
8860
|
version: 1.1.7
|
|
8873
8861
|
resolution: "create-hmac@npm:1.1.7"
|
|
@@ -12117,15 +12105,6 @@ __metadata:
|
|
|
12117
12105
|
languageName: node
|
|
12118
12106
|
linkType: hard
|
|
12119
12107
|
|
|
12120
|
-
"hash-base@npm:^2.0.0":
|
|
12121
|
-
version: 2.0.2
|
|
12122
|
-
resolution: "hash-base@npm:2.0.2"
|
|
12123
|
-
dependencies:
|
|
12124
|
-
inherits: "npm:^2.0.1"
|
|
12125
|
-
checksum: 10c0/283f6060277b52e627a734c4d19d4315ba82326cab5a2f4f2f00b924d747dc7cc902a8cedb1904c7a3501075fcbb24c08de1152bae296698fdc5ad75b33986af
|
|
12126
|
-
languageName: node
|
|
12127
|
-
linkType: hard
|
|
12128
|
-
|
|
12129
12108
|
"hash-base@npm:^3.0.0, hash-base@npm:^3.1.2":
|
|
12130
12109
|
version: 3.1.2
|
|
12131
12110
|
resolution: "hash-base@npm:3.1.2"
|
|
@@ -12138,7 +12117,7 @@ __metadata:
|
|
|
12138
12117
|
languageName: node
|
|
12139
12118
|
linkType: hard
|
|
12140
12119
|
|
|
12141
|
-
"hash-base@npm:~3.0
|
|
12120
|
+
"hash-base@npm:~3.0.4":
|
|
12142
12121
|
version: 3.0.5
|
|
12143
12122
|
resolution: "hash-base@npm:3.0.5"
|
|
12144
12123
|
dependencies:
|
|
@@ -15687,16 +15666,15 @@ __metadata:
|
|
|
15687
15666
|
linkType: hard
|
|
15688
15667
|
|
|
15689
15668
|
"parse-asn1@npm:^5.0.0, parse-asn1@npm:^5.1.7":
|
|
15690
|
-
version: 5.1.
|
|
15691
|
-
resolution: "parse-asn1@npm:5.1.
|
|
15669
|
+
version: 5.1.8
|
|
15670
|
+
resolution: "parse-asn1@npm:5.1.8"
|
|
15692
15671
|
dependencies:
|
|
15693
15672
|
asn1.js: "npm:^4.10.1"
|
|
15694
15673
|
browserify-aes: "npm:^1.2.0"
|
|
15695
15674
|
evp_bytestokey: "npm:^1.0.3"
|
|
15696
|
-
|
|
15697
|
-
pbkdf2: "npm:^3.1.2"
|
|
15675
|
+
pbkdf2: "npm:^3.1.3"
|
|
15698
15676
|
safe-buffer: "npm:^5.2.1"
|
|
15699
|
-
checksum: 10c0/
|
|
15677
|
+
checksum: 10c0/3343672ccb029f18ce308aed6745c62f38cfefd368aa5d644872c6301e5c5129b4a4848c1600c50ea7b60484c2521919bbf27cb30f47311372db9901cced506b
|
|
15700
15678
|
languageName: node
|
|
15701
15679
|
linkType: hard
|
|
15702
15680
|
|
|
@@ -15906,17 +15884,17 @@ __metadata:
|
|
|
15906
15884
|
languageName: node
|
|
15907
15885
|
linkType: hard
|
|
15908
15886
|
|
|
15909
|
-
"pbkdf2@npm:^3.1.2":
|
|
15910
|
-
version: 3.1.
|
|
15911
|
-
resolution: "pbkdf2@npm:3.1.
|
|
15887
|
+
"pbkdf2@npm:^3.1.2, pbkdf2@npm:^3.1.3":
|
|
15888
|
+
version: 3.1.4
|
|
15889
|
+
resolution: "pbkdf2@npm:3.1.4"
|
|
15912
15890
|
dependencies:
|
|
15913
|
-
create-hash: "npm
|
|
15891
|
+
create-hash: "npm:^1.2.0"
|
|
15914
15892
|
create-hmac: "npm:^1.1.7"
|
|
15915
|
-
ripemd160: "npm
|
|
15893
|
+
ripemd160: "npm:^2.0.3"
|
|
15916
15894
|
safe-buffer: "npm:^5.2.1"
|
|
15917
|
-
sha.js: "npm:^2.4.
|
|
15918
|
-
to-buffer: "npm:^1.2.
|
|
15919
|
-
checksum: 10c0/
|
|
15895
|
+
sha.js: "npm:^2.4.12"
|
|
15896
|
+
to-buffer: "npm:^1.2.1"
|
|
15897
|
+
checksum: 10c0/4b1cf014f00d6e1005b25a6ffd30b3a45c3ae75d6a13b8d4a35765dffd9dd11f40499c7895385980a607a80669aadc5f4b5fc3d0450db9753f572e4e97c16dd7
|
|
15920
15898
|
languageName: node
|
|
15921
15899
|
linkType: hard
|
|
15922
15900
|
|
|
@@ -18763,17 +18741,7 @@ __metadata:
|
|
|
18763
18741
|
languageName: node
|
|
18764
18742
|
linkType: hard
|
|
18765
18743
|
|
|
18766
|
-
"ripemd160@npm
|
|
18767
|
-
version: 2.0.1
|
|
18768
|
-
resolution: "ripemd160@npm:2.0.1"
|
|
18769
|
-
dependencies:
|
|
18770
|
-
hash-base: "npm:^2.0.0"
|
|
18771
|
-
inherits: "npm:^2.0.1"
|
|
18772
|
-
checksum: 10c0/d4cbb4713c1268bb35e44815b12e3744a952a72b72e6a72110c8f3932227ddf68841110285fe2ed1c04805e2621d85f905deb5f55f9d91fa1bfc0f8081a244e6
|
|
18773
|
-
languageName: node
|
|
18774
|
-
linkType: hard
|
|
18775
|
-
|
|
18776
|
-
"ripemd160@npm:^2.0.0, ripemd160@npm:^2.0.1":
|
|
18744
|
+
"ripemd160@npm:^2.0.0, ripemd160@npm:^2.0.1, ripemd160@npm:^2.0.3":
|
|
18777
18745
|
version: 2.0.3
|
|
18778
18746
|
resolution: "ripemd160@npm:2.0.3"
|
|
18779
18747
|
dependencies:
|
|
@@ -18886,31 +18854,31 @@ __metadata:
|
|
|
18886
18854
|
linkType: hard
|
|
18887
18855
|
|
|
18888
18856
|
"rollup@npm:^4.13.0":
|
|
18889
|
-
version: 4.52.
|
|
18890
|
-
resolution: "rollup@npm:4.52.
|
|
18891
|
-
dependencies:
|
|
18892
|
-
"@rollup/rollup-android-arm-eabi": "npm:4.52.
|
|
18893
|
-
"@rollup/rollup-android-arm64": "npm:4.52.
|
|
18894
|
-
"@rollup/rollup-darwin-arm64": "npm:4.52.
|
|
18895
|
-
"@rollup/rollup-darwin-x64": "npm:4.52.
|
|
18896
|
-
"@rollup/rollup-freebsd-arm64": "npm:4.52.
|
|
18897
|
-
"@rollup/rollup-freebsd-x64": "npm:4.52.
|
|
18898
|
-
"@rollup/rollup-linux-arm-gnueabihf": "npm:4.52.
|
|
18899
|
-
"@rollup/rollup-linux-arm-musleabihf": "npm:4.52.
|
|
18900
|
-
"@rollup/rollup-linux-arm64-gnu": "npm:4.52.
|
|
18901
|
-
"@rollup/rollup-linux-arm64-musl": "npm:4.52.
|
|
18902
|
-
"@rollup/rollup-linux-loong64-gnu": "npm:4.52.
|
|
18903
|
-
"@rollup/rollup-linux-ppc64-gnu": "npm:4.52.
|
|
18904
|
-
"@rollup/rollup-linux-riscv64-gnu": "npm:4.52.
|
|
18905
|
-
"@rollup/rollup-linux-riscv64-musl": "npm:4.52.
|
|
18906
|
-
"@rollup/rollup-linux-s390x-gnu": "npm:4.52.
|
|
18907
|
-
"@rollup/rollup-linux-x64-gnu": "npm:4.52.
|
|
18908
|
-
"@rollup/rollup-linux-x64-musl": "npm:4.52.
|
|
18909
|
-
"@rollup/rollup-openharmony-arm64": "npm:4.52.
|
|
18910
|
-
"@rollup/rollup-win32-arm64-msvc": "npm:4.52.
|
|
18911
|
-
"@rollup/rollup-win32-ia32-msvc": "npm:4.52.
|
|
18912
|
-
"@rollup/rollup-win32-x64-gnu": "npm:4.52.
|
|
18913
|
-
"@rollup/rollup-win32-x64-msvc": "npm:4.52.
|
|
18857
|
+
version: 4.52.2
|
|
18858
|
+
resolution: "rollup@npm:4.52.2"
|
|
18859
|
+
dependencies:
|
|
18860
|
+
"@rollup/rollup-android-arm-eabi": "npm:4.52.2"
|
|
18861
|
+
"@rollup/rollup-android-arm64": "npm:4.52.2"
|
|
18862
|
+
"@rollup/rollup-darwin-arm64": "npm:4.52.2"
|
|
18863
|
+
"@rollup/rollup-darwin-x64": "npm:4.52.2"
|
|
18864
|
+
"@rollup/rollup-freebsd-arm64": "npm:4.52.2"
|
|
18865
|
+
"@rollup/rollup-freebsd-x64": "npm:4.52.2"
|
|
18866
|
+
"@rollup/rollup-linux-arm-gnueabihf": "npm:4.52.2"
|
|
18867
|
+
"@rollup/rollup-linux-arm-musleabihf": "npm:4.52.2"
|
|
18868
|
+
"@rollup/rollup-linux-arm64-gnu": "npm:4.52.2"
|
|
18869
|
+
"@rollup/rollup-linux-arm64-musl": "npm:4.52.2"
|
|
18870
|
+
"@rollup/rollup-linux-loong64-gnu": "npm:4.52.2"
|
|
18871
|
+
"@rollup/rollup-linux-ppc64-gnu": "npm:4.52.2"
|
|
18872
|
+
"@rollup/rollup-linux-riscv64-gnu": "npm:4.52.2"
|
|
18873
|
+
"@rollup/rollup-linux-riscv64-musl": "npm:4.52.2"
|
|
18874
|
+
"@rollup/rollup-linux-s390x-gnu": "npm:4.52.2"
|
|
18875
|
+
"@rollup/rollup-linux-x64-gnu": "npm:4.52.2"
|
|
18876
|
+
"@rollup/rollup-linux-x64-musl": "npm:4.52.2"
|
|
18877
|
+
"@rollup/rollup-openharmony-arm64": "npm:4.52.2"
|
|
18878
|
+
"@rollup/rollup-win32-arm64-msvc": "npm:4.52.2"
|
|
18879
|
+
"@rollup/rollup-win32-ia32-msvc": "npm:4.52.2"
|
|
18880
|
+
"@rollup/rollup-win32-x64-gnu": "npm:4.52.2"
|
|
18881
|
+
"@rollup/rollup-win32-x64-msvc": "npm:4.52.2"
|
|
18914
18882
|
"@types/estree": "npm:1.0.8"
|
|
18915
18883
|
fsevents: "npm:~2.3.2"
|
|
18916
18884
|
dependenciesMeta:
|
|
@@ -18962,7 +18930,7 @@ __metadata:
|
|
|
18962
18930
|
optional: true
|
|
18963
18931
|
bin:
|
|
18964
18932
|
rollup: dist/bin/rollup
|
|
18965
|
-
checksum: 10c0/
|
|
18933
|
+
checksum: 10c0/2d457b11bbb904f40bde943acb1a784732ef8d8ce7d528e1dc955f6d11df4f9c6ac7885675bac677cface13e420b63dfc8eea959446fbb3329841e49767f7e7d
|
|
18966
18934
|
languageName: node
|
|
18967
18935
|
linkType: hard
|
|
18968
18936
|
|
|
@@ -19403,7 +19371,7 @@ __metadata:
|
|
|
19403
19371
|
languageName: node
|
|
19404
19372
|
linkType: hard
|
|
19405
19373
|
|
|
19406
|
-
"sha.js@npm:^2.4.0, sha.js@npm:^2.4.
|
|
19374
|
+
"sha.js@npm:^2.4.0, sha.js@npm:^2.4.12, sha.js@npm:^2.4.8":
|
|
19407
19375
|
version: 2.4.12
|
|
19408
19376
|
resolution: "sha.js@npm:2.4.12"
|
|
19409
19377
|
dependencies:
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { alertThemes } from "./alertThemes";
|
|
2
|
-
export interface AlertConfig {
|
|
3
|
-
type: keyof typeof alertThemes;
|
|
4
|
-
title?: string;
|
|
5
|
-
subTitle?: string;
|
|
6
|
-
message?: string | string[];
|
|
7
|
-
description?: string;
|
|
8
|
-
actionText?: string;
|
|
9
|
-
secondaryActionText?: string;
|
|
10
|
-
onAction?: (() => void) | null;
|
|
11
|
-
onSecondaryAction?: (() => void) | null;
|
|
12
|
-
timeout?: number;
|
|
13
|
-
closable?: boolean;
|
|
14
|
-
titleColor?: string;
|
|
15
|
-
subTitleColor?: string;
|
|
16
|
-
showArrow?: boolean;
|
|
17
|
-
showSecondaryArrow?: boolean;
|
|
18
|
-
alignActionsRight?: boolean;
|
|
19
|
-
mount?: "container" | "global";
|
|
20
|
-
}
|
|
21
|
-
export declare function showAlert(config: AlertConfig): void;
|
|
22
|
-
//# sourceMappingURL=AlertBox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertBox.d.ts","sourceRoot":"","sources":["../../src/CustomAlertTypes/AlertBox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,OAAO,WAAW,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IAC/B,iBAAiB,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC;CAChC;AAqDD,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,QAW5C"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AlertConfig } from './AlertBox';
|
|
3
|
-
export declare class AlertRenderer {
|
|
4
|
-
static createAlert(config: AlertConfig, onClose: () => void): React.DetailedReactHTMLElement<{
|
|
5
|
-
style: {
|
|
6
|
-
backgroundColor: string;
|
|
7
|
-
border: string;
|
|
8
|
-
borderRadius: string;
|
|
9
|
-
padding: string;
|
|
10
|
-
width: string;
|
|
11
|
-
maxWidth: string;
|
|
12
|
-
margin: string;
|
|
13
|
-
pointerEvents: "auto";
|
|
14
|
-
fontFamily: string;
|
|
15
|
-
position: "relative";
|
|
16
|
-
overflow: "hidden";
|
|
17
|
-
boxSizing: "border-box";
|
|
18
|
-
};
|
|
19
|
-
}, HTMLElement>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=AlertRender.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertRender.d.ts","sourceRoot":"","sources":["../../src/CustomAlertTypes/AlertRender.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,qBAAa,aAAa;IACxB,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,IAAI;;;;;;;;;;;;;;;;CAoR5D"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const ErrorIcon: () => React.ReactSVGElement;
|
|
3
|
-
export declare const SuccessIcon: () => React.ReactSVGElement;
|
|
4
|
-
export declare const InfoIcon: () => React.ReactSVGElement;
|
|
5
|
-
export declare const WarningIcon: () => React.ReactSVGElement;
|
|
6
|
-
export declare const commonStyle: {
|
|
7
|
-
fontFamily: string;
|
|
8
|
-
color: string;
|
|
9
|
-
borderRad: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const alertThemes: {
|
|
12
|
-
error: {
|
|
13
|
-
bg: string;
|
|
14
|
-
border: string;
|
|
15
|
-
icon: string;
|
|
16
|
-
IconComponent: () => React.ReactSVGElement;
|
|
17
|
-
defaultTitle: string;
|
|
18
|
-
};
|
|
19
|
-
success: {
|
|
20
|
-
bg: string;
|
|
21
|
-
border: string;
|
|
22
|
-
icon: string;
|
|
23
|
-
IconComponent: () => React.ReactSVGElement;
|
|
24
|
-
defaultTitle: string;
|
|
25
|
-
};
|
|
26
|
-
warning: {
|
|
27
|
-
bg: string;
|
|
28
|
-
border: string;
|
|
29
|
-
icon: string;
|
|
30
|
-
IconComponent: () => React.ReactSVGElement;
|
|
31
|
-
defaultTitle: string;
|
|
32
|
-
};
|
|
33
|
-
info: {
|
|
34
|
-
bg: string;
|
|
35
|
-
border: string;
|
|
36
|
-
icon: string;
|
|
37
|
-
IconComponent: () => React.ReactSVGElement;
|
|
38
|
-
defaultTitle: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=alertThemes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alertThemes.d.ts","sourceRoot":"","sources":["../../src/CustomAlertTypes/alertThemes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA8B1B,eAAO,MAAM,SAAS,6BAA0C,CAAC;AACjE,eAAO,MAAM,WAAW,6BAA4C,CAAC;AACrE,eAAO,MAAM,QAAQ,6BAAyC,CAAC;AAC/D,eAAO,MAAM,WAAW,6BAA4C,CAAC;AAErE,eAAO,MAAM,WAAW;;;;CAIvB,CAAA;AAGD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BvB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wraps text into multiple lines by word count limit.
|
|
3
|
-
* @param text - The input string
|
|
4
|
-
* @param limit - Max characters per line
|
|
5
|
-
* @returns Wrapped text as a single string with newlines
|
|
6
|
-
*/
|
|
7
|
-
export declare function wrapText(text: string, limit: number): string;
|
|
8
|
-
//# sourceMappingURL=textWrapperUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textWrapperUtils.d.ts","sourceRoot":"","sources":["../../../src/CustomAlertTypes/utils/textWrapperUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAmB5D"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { createRoot } from "react-dom/client";
|
|
2
|
-
import { AlertRenderer } from './AlertRender';
|
|
3
|
-
import { alertThemes } from "./alertThemes";
|
|
4
|
-
|
|
5
|
-
export interface AlertConfig {
|
|
6
|
-
type: keyof typeof alertThemes;
|
|
7
|
-
title?: string;
|
|
8
|
-
subTitle?: string;
|
|
9
|
-
message?: string | string[];
|
|
10
|
-
description?: string;
|
|
11
|
-
actionText?: string;
|
|
12
|
-
secondaryActionText?: string;
|
|
13
|
-
onAction?: (() => void) | null;
|
|
14
|
-
onSecondaryAction?: (() => void) | null;
|
|
15
|
-
timeout?: number;
|
|
16
|
-
closable?: boolean;
|
|
17
|
-
titleColor?: string;
|
|
18
|
-
subTitleColor?: string;
|
|
19
|
-
showArrow?: boolean;
|
|
20
|
-
showSecondaryArrow?: boolean;
|
|
21
|
-
alignActionsRight?: boolean;
|
|
22
|
-
mount?: "container" | "global";
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
let container: HTMLDivElement | null = null;
|
|
26
|
-
let root: any = null;
|
|
27
|
-
|
|
28
|
-
function createContainer(mount: "container" | "global" = "global") {
|
|
29
|
-
if (container) return container;
|
|
30
|
-
container = document.createElement("div");
|
|
31
|
-
root = createRoot(container);
|
|
32
|
-
|
|
33
|
-
if (mount === "container") {
|
|
34
|
-
const containerFluid = document.querySelector(
|
|
35
|
-
".container-fluid"
|
|
36
|
-
) as HTMLDivElement | null;
|
|
37
|
-
|
|
38
|
-
if (containerFluid) {
|
|
39
|
-
container.style.cssText = `
|
|
40
|
-
width: 100%;
|
|
41
|
-
margin-bottom: 1rem;
|
|
42
|
-
pointer-events: auto;
|
|
43
|
-
`;
|
|
44
|
-
containerFluid.insertBefore(container, containerFluid.firstChild);
|
|
45
|
-
} else {
|
|
46
|
-
document.body.appendChild(container);
|
|
47
|
-
}
|
|
48
|
-
} else {
|
|
49
|
-
container.style.cssText = `
|
|
50
|
-
position: fixed;
|
|
51
|
-
top: 0;
|
|
52
|
-
left: 0;
|
|
53
|
-
right: 0;
|
|
54
|
-
z-index: 9999;
|
|
55
|
-
pointer-events: none;
|
|
56
|
-
`;
|
|
57
|
-
document.body.appendChild(container);
|
|
58
|
-
}
|
|
59
|
-
injectShrinkBarAnimation();
|
|
60
|
-
return container;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function injectShrinkBarAnimation() {
|
|
64
|
-
if (document.getElementById('shrinkBar-style')) return;
|
|
65
|
-
const style = document.createElement('style');
|
|
66
|
-
style.id = 'shrinkBar-style';
|
|
67
|
-
style.textContent = `
|
|
68
|
-
@keyframes shrinkBar {
|
|
69
|
-
from { width: 100%; }
|
|
70
|
-
to { width: 0%; }
|
|
71
|
-
}
|
|
72
|
-
`;
|
|
73
|
-
document.head.appendChild(style);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function showAlert(config: AlertConfig) {
|
|
77
|
-
createContainer(config.mount || "global");
|
|
78
|
-
const removeAlert = () => {
|
|
79
|
-
if (root) root.render(null);
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
if (config.timeout && config.timeout > 0) {
|
|
83
|
-
setTimeout(removeAlert, config.timeout);
|
|
84
|
-
}
|
|
85
|
-
const alertBox = AlertRenderer.createAlert(config, removeAlert);
|
|
86
|
-
root.render(alertBox);
|
|
87
|
-
}
|
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { MdClose, MdArrowForward } from "react-icons/md";
|
|
3
|
-
import { alertThemes, commonStyle } from "./alertThemes";
|
|
4
|
-
import { wrapText } from "./utils/textWrapperUtils";
|
|
5
|
-
import { AlertConfig } from './AlertBox'
|
|
6
|
-
export class AlertRenderer {
|
|
7
|
-
static createAlert(config: AlertConfig, onClose: () => void) {
|
|
8
|
-
const theme = alertThemes[config.type];
|
|
9
|
-
|
|
10
|
-
return React.createElement(
|
|
11
|
-
"div",
|
|
12
|
-
{
|
|
13
|
-
style: {
|
|
14
|
-
backgroundColor: theme.bg,
|
|
15
|
-
border: theme.border,
|
|
16
|
-
borderRadius: commonStyle.borderRad,
|
|
17
|
-
padding: "16px 20px 0",
|
|
18
|
-
width: "100%",
|
|
19
|
-
maxWidth: "100%",
|
|
20
|
-
margin: "0 auto",
|
|
21
|
-
pointerEvents: "auto",
|
|
22
|
-
fontFamily: commonStyle.fontFamily,
|
|
23
|
-
position: "relative",
|
|
24
|
-
overflow: "hidden",
|
|
25
|
-
boxSizing: "border-box",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
// HEADER ROW (icon + title + close button)
|
|
30
|
-
React.createElement(
|
|
31
|
-
"div",
|
|
32
|
-
{
|
|
33
|
-
style: {
|
|
34
|
-
display: "grid",
|
|
35
|
-
gridTemplateColumns: "20px 1fr auto", // icon | title | X
|
|
36
|
-
alignItems: "center",
|
|
37
|
-
columnGap: "12px",
|
|
38
|
-
marginBottom: "4px",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
// Icon
|
|
43
|
-
React.createElement(theme.IconComponent, {
|
|
44
|
-
size: 20,
|
|
45
|
-
style: {
|
|
46
|
-
color: theme.icon,
|
|
47
|
-
gridColumn: "1 / 2",
|
|
48
|
-
gridRow: "1 / 2",
|
|
49
|
-
},
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
// Title
|
|
53
|
-
React.createElement(
|
|
54
|
-
"h4",
|
|
55
|
-
{
|
|
56
|
-
style: {
|
|
57
|
-
gridColumn: "2 / 3",
|
|
58
|
-
gridRow: "1 / 2",
|
|
59
|
-
alignSelf: "center",
|
|
60
|
-
fontFamily: commonStyle.fontFamily,
|
|
61
|
-
fontSize: "16px",
|
|
62
|
-
fontWeight: 600,
|
|
63
|
-
lineHeight: "18px",
|
|
64
|
-
color: config.titleColor || commonStyle.fontFamily,
|
|
65
|
-
margin: 0,
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
config.title || theme.defaultTitle
|
|
69
|
-
),
|
|
70
|
-
|
|
71
|
-
// Close Button
|
|
72
|
-
config.closable !== true &&
|
|
73
|
-
React.createElement(
|
|
74
|
-
"button",
|
|
75
|
-
{
|
|
76
|
-
style: {
|
|
77
|
-
gridColumn: "3 / 4",
|
|
78
|
-
gridRow: "1 / 2",
|
|
79
|
-
background: "none",
|
|
80
|
-
border: "none",
|
|
81
|
-
color: config.type === "info" ? "#1E3A8A" : theme.icon,
|
|
82
|
-
cursor: "pointer",
|
|
83
|
-
padding: 0,
|
|
84
|
-
lineHeight: 1,
|
|
85
|
-
display: "flex",
|
|
86
|
-
alignItems: "center",
|
|
87
|
-
},
|
|
88
|
-
onClick: onClose,
|
|
89
|
-
},
|
|
90
|
-
React.createElement(MdClose, { size: 20 })
|
|
91
|
-
)
|
|
92
|
-
),
|
|
93
|
-
|
|
94
|
-
// BODY (Subtitle, Message, Description, Actions)
|
|
95
|
-
React.createElement(
|
|
96
|
-
"div",
|
|
97
|
-
{
|
|
98
|
-
style: {
|
|
99
|
-
marginLeft: "32px", // aligns with title, not icon
|
|
100
|
-
marginBottom:
|
|
101
|
-
!config.message && !config.description && !config.actionText
|
|
102
|
-
? "12px"
|
|
103
|
-
: "0",
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
// Subtitle
|
|
108
|
-
config.subTitle &&
|
|
109
|
-
React.createElement(
|
|
110
|
-
"span",
|
|
111
|
-
{
|
|
112
|
-
style: {
|
|
113
|
-
fontFamily: "Geist, system-ui, sans-serif",
|
|
114
|
-
fontSize: "16px",
|
|
115
|
-
fontWeight: 600,
|
|
116
|
-
lineHeight: "18px",
|
|
117
|
-
color: config.subTitleColor || commonStyle.color,
|
|
118
|
-
display: "block",
|
|
119
|
-
marginBottom: "4px",
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
config.subTitle
|
|
123
|
-
),
|
|
124
|
-
|
|
125
|
-
// Message
|
|
126
|
-
config.message &&
|
|
127
|
-
(Array.isArray(config.message)
|
|
128
|
-
? React.createElement(
|
|
129
|
-
"ul",
|
|
130
|
-
{
|
|
131
|
-
style: {
|
|
132
|
-
margin: "0 0 8px 0",
|
|
133
|
-
paddingLeft: "20px",
|
|
134
|
-
fontFamily: commonStyle.fontFamily,
|
|
135
|
-
fontSize: "15px",
|
|
136
|
-
fontWeight: 400,
|
|
137
|
-
lineHeight: "20px",
|
|
138
|
-
color: commonStyle.color,
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
config.message.map((line, idx) =>
|
|
142
|
-
React.createElement(
|
|
143
|
-
"li",
|
|
144
|
-
{
|
|
145
|
-
key: idx,
|
|
146
|
-
style: {
|
|
147
|
-
fontSize: "15px",
|
|
148
|
-
fontWeight: 400,
|
|
149
|
-
lineHeight: "20px",
|
|
150
|
-
fontFamily: "Geist, system-ui, sans-serif",
|
|
151
|
-
color: commonStyle.color,
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
line
|
|
155
|
-
)
|
|
156
|
-
)
|
|
157
|
-
)
|
|
158
|
-
: React.createElement(
|
|
159
|
-
"p",
|
|
160
|
-
{
|
|
161
|
-
style: {
|
|
162
|
-
fontFamily: commonStyle.fontFamily,
|
|
163
|
-
fontSize: "15px",
|
|
164
|
-
fontWeight: 400,
|
|
165
|
-
lineHeight: "20px",
|
|
166
|
-
color: commonStyle.color,
|
|
167
|
-
margin: "0 0 8px 0",
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
|
-
config.message
|
|
171
|
-
)),
|
|
172
|
-
|
|
173
|
-
// Description
|
|
174
|
-
config.description &&
|
|
175
|
-
React.createElement(
|
|
176
|
-
"p",
|
|
177
|
-
{
|
|
178
|
-
style: {
|
|
179
|
-
fontFamily: commonStyle.fontFamily,
|
|
180
|
-
fontSize: "15px",
|
|
181
|
-
fontWeight: 400,
|
|
182
|
-
lineHeight: "20px",
|
|
183
|
-
color: commonStyle.color,
|
|
184
|
-
margin: "0 0 12px 0",
|
|
185
|
-
whiteSpace: "pre-line",
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
wrapText(config.description, 150)
|
|
189
|
-
),
|
|
190
|
-
|
|
191
|
-
// Actions
|
|
192
|
-
(config.actionText || config.secondaryActionText) &&
|
|
193
|
-
React.createElement(
|
|
194
|
-
"div",
|
|
195
|
-
{
|
|
196
|
-
style: {
|
|
197
|
-
display: "flex",
|
|
198
|
-
flexDirection: "row",
|
|
199
|
-
gap: "16px",
|
|
200
|
-
marginTop: "6px",
|
|
201
|
-
justifyContent: config.alignActionsRight
|
|
202
|
-
? "flex-end"
|
|
203
|
-
: "flex-start",
|
|
204
|
-
marginBottom: "8px",
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
|
|
208
|
-
// Primary Action
|
|
209
|
-
config.actionText &&
|
|
210
|
-
React.createElement(
|
|
211
|
-
"button",
|
|
212
|
-
{
|
|
213
|
-
style: {
|
|
214
|
-
fontFamily: commonStyle.fontFamily,
|
|
215
|
-
fontSize: "15px",
|
|
216
|
-
fontWeight: 600,
|
|
217
|
-
lineHeight: "20px",
|
|
218
|
-
color: commonStyle.color,
|
|
219
|
-
background: "none",
|
|
220
|
-
border: "none",
|
|
221
|
-
padding: 0,
|
|
222
|
-
cursor: "pointer",
|
|
223
|
-
display: "flex",
|
|
224
|
-
alignItems: "center",
|
|
225
|
-
gap: "4px",
|
|
226
|
-
},
|
|
227
|
-
onClick: () => {
|
|
228
|
-
if (config.onAction) config.onAction();
|
|
229
|
-
onClose();
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
config.actionText,
|
|
233
|
-
config.showArrow &&
|
|
234
|
-
React.createElement(MdArrowForward, { size: 16 })
|
|
235
|
-
),
|
|
236
|
-
|
|
237
|
-
// Secondary Action
|
|
238
|
-
config.secondaryActionText &&
|
|
239
|
-
React.createElement(
|
|
240
|
-
"button",
|
|
241
|
-
{
|
|
242
|
-
style: {
|
|
243
|
-
fontFamily: commonStyle.fontFamily,
|
|
244
|
-
fontSize: "15px",
|
|
245
|
-
fontWeight: 600,
|
|
246
|
-
lineHeight: "20px",
|
|
247
|
-
color: commonStyle.color,
|
|
248
|
-
background: "none",
|
|
249
|
-
border: "none",
|
|
250
|
-
padding: 0,
|
|
251
|
-
cursor: "pointer",
|
|
252
|
-
display: "flex",
|
|
253
|
-
alignItems: "center",
|
|
254
|
-
gap: "4px",
|
|
255
|
-
},
|
|
256
|
-
onClick: () => {
|
|
257
|
-
if (config.onSecondaryAction) config.onSecondaryAction();
|
|
258
|
-
onClose();
|
|
259
|
-
},
|
|
260
|
-
},
|
|
261
|
-
config.secondaryActionText,
|
|
262
|
-
config.showSecondaryArrow &&
|
|
263
|
-
React.createElement(MdArrowForward, { size: 16 })
|
|
264
|
-
)
|
|
265
|
-
)
|
|
266
|
-
),
|
|
267
|
-
|
|
268
|
-
// Progress Bar
|
|
269
|
-
config.timeout &&
|
|
270
|
-
React.createElement("div", {
|
|
271
|
-
style: {
|
|
272
|
-
position: "absolute",
|
|
273
|
-
bottom: 0,
|
|
274
|
-
left: 0,
|
|
275
|
-
height: "4px",
|
|
276
|
-
backgroundColor: theme.icon,
|
|
277
|
-
width: "100%",
|
|
278
|
-
animation: `shrinkBar ${config.timeout}ms linear forwards`,
|
|
279
|
-
},
|
|
280
|
-
})
|
|
281
|
-
);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
// Factory for simple SVG icon components
|
|
4
|
-
function createSvgIcon(pathD: string, fillColor: string) {
|
|
5
|
-
return () =>
|
|
6
|
-
React.createElement(
|
|
7
|
-
"svg",
|
|
8
|
-
{
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
width: 32,
|
|
11
|
-
height: 32,
|
|
12
|
-
viewBox: "0 0 32 32",
|
|
13
|
-
},
|
|
14
|
-
React.createElement("path", { d: pathD, fill: fillColor })
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// Each icon path (different geometry and colors)
|
|
19
|
-
const iconInfoPath =
|
|
20
|
-
'M16 7C20.9706 7 25 11.0294 25 16C25 20.9706 20.9706 25 16 25C11.0294 25 7 20.9706 7 16C7 11.0294 11.0294 7 16 7ZM16 14C15.4477 14 15 14.4477 15 15V20C15 20.5523 15.4477 21 16 21C16.5523 21 17 20.5523 17 20V15C17 14.4477 16.5523 14 16 14ZM16 11C15.4477 11 15 11.4477 15 12C15 12.5523 15.4477 13 16 13C16.5523 13 17 12.5523 17 12C17 11.4477 16.5523 11 16 11Z';
|
|
21
|
-
|
|
22
|
-
const warningIconPath =
|
|
23
|
-
'M15.3496 8.46973C15.7414 7.84329 16.6543 7.84314 17.0459 8.46973L25.2412 21.583C25.6574 22.249 25.1788 23.113 24.3936 23.1133H8.00195C7.21654 23.1133 6.73711 22.249 7.15332 21.583L15.3496 8.46973ZM16.1973 19.1133C15.6451 19.1134 15.1973 19.5611 15.1973 20.1133C15.1973 20.6654 15.6451 21.1132 16.1973 21.1133C16.7495 21.1133 17.1972 20.6655 17.1973 20.1133C17.1973 19.561 16.7496 19.1133 16.1973 19.1133ZM15.1973 18.1133H17.1973V13.1133H15.1973V18.1133Z';
|
|
24
|
-
|
|
25
|
-
const errorIconPath =
|
|
26
|
-
'M16.1975 7C21.1681 7 25.1975 11.0294 25.1975 16C25.1975 20.9706 21.1681 25 16.1975 25C11.2269 25 7.19751 20.9706 7.19751 16C7.19751 11.0294 11.2269 7 16.1975 7ZM16.1975 14.5859L13.3694 11.7578L11.9553 13.1719L14.7834 16L11.9553 18.8281L13.3694 20.2422L16.1975 17.4141L19.0256 20.2422L20.4397 18.8281L17.6116 16L20.4397 13.1719L19.0256 11.7578L16.1975 14.5859Z';
|
|
27
|
-
|
|
28
|
-
const successIconPath =
|
|
29
|
-
'M16 7C20.9706 7 25 11.0294 25 16C25 20.9706 20.9706 25 16 25C11.0294 25 7 20.9706 7 16C7 11.0294 11.0294 7 16 7ZM14.4463 17.6055L12.7217 15.8076L11.2783 17.1924L14.3525 20.3945L21.6729 13.7402L20.3271 12.2598L14.4463 17.6055Z';
|
|
30
|
-
// Specific icons with unique fills
|
|
31
|
-
export const ErrorIcon = createSvgIcon(errorIconPath, "#E0423A"); // red
|
|
32
|
-
export const SuccessIcon = createSvgIcon(successIconPath, "#52C22B"); // green
|
|
33
|
-
export const InfoIcon = createSvgIcon(iconInfoPath, "#0E8CE2"); // blue
|
|
34
|
-
export const WarningIcon = createSvgIcon(warningIconPath, "#E2A50C"); // yellow
|
|
35
|
-
|
|
36
|
-
export const commonStyle = {
|
|
37
|
-
fontFamily: 'Geist, system-ui, sans-serif',
|
|
38
|
-
color: '#14215A',
|
|
39
|
-
borderRad: '8px',
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
export const alertThemes = {
|
|
44
|
-
error: {
|
|
45
|
-
bg: "#FCECEB",
|
|
46
|
-
border: "2px solid #F5C4C2",
|
|
47
|
-
icon: "#E0423A",
|
|
48
|
-
IconComponent: ErrorIcon,
|
|
49
|
-
defaultTitle: "Error!",
|
|
50
|
-
},
|
|
51
|
-
success: {
|
|
52
|
-
bg: "#EEF9EA",
|
|
53
|
-
border: "2px solid #C9ECBD",
|
|
54
|
-
icon: "#52C22B",
|
|
55
|
-
IconComponent: SuccessIcon,
|
|
56
|
-
defaultTitle: "Success!",
|
|
57
|
-
},
|
|
58
|
-
warning: {
|
|
59
|
-
bg: "#FCF6E7",
|
|
60
|
-
border: "2px solid #F2D68F",
|
|
61
|
-
icon: "#E2A50C",
|
|
62
|
-
IconComponent: WarningIcon,
|
|
63
|
-
defaultTitle: "Warning!",
|
|
64
|
-
},
|
|
65
|
-
info: {
|
|
66
|
-
bg: "#E7F4FC",
|
|
67
|
-
border: "2px solid #B4DBF6",
|
|
68
|
-
icon: "#0E8CE2",
|
|
69
|
-
IconComponent: InfoIcon,
|
|
70
|
-
defaultTitle: "Info",
|
|
71
|
-
},
|
|
72
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wraps text into multiple lines by word count limit.
|
|
3
|
-
* @param text - The input string
|
|
4
|
-
* @param limit - Max characters per line
|
|
5
|
-
* @returns Wrapped text as a single string with newlines
|
|
6
|
-
*/
|
|
7
|
-
export function wrapText(text: string, limit: number): string {
|
|
8
|
-
const words = text.split(' ');
|
|
9
|
-
let lines: string[] = [];
|
|
10
|
-
let currentLine = '';
|
|
11
|
-
|
|
12
|
-
words.forEach((word) => {
|
|
13
|
-
if ((currentLine + word).length >= limit) {
|
|
14
|
-
lines.push(currentLine.trim());
|
|
15
|
-
currentLine = word + ' ';
|
|
16
|
-
} else {
|
|
17
|
-
currentLine += word + ' ';
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
if (currentLine.trim() !== '') {
|
|
22
|
-
lines.push(currentLine.trim());
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return lines.join('\n');
|
|
26
|
-
}
|