@paymanai/payman-ask-sdk 4.0.12 → 4.0.13
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/index.d.mts +3 -19
- package/dist/index.d.ts +3 -19
- package/dist/index.js +313 -177
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +315 -162
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +209 -0
- package/dist/styles.css.map +1 -1
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -2422,6 +2422,215 @@
|
|
|
2422
2422
|
.payman-v2-feedback-modal-btn-primary:hover:not(:disabled) {
|
|
2423
2423
|
background: color-mix(in srgb, var(--payman-v2-btn-primary) 88%, white);
|
|
2424
2424
|
}
|
|
2425
|
+
.payman-v2-pdf-block {
|
|
2426
|
+
display: inline-flex;
|
|
2427
|
+
align-items: stretch;
|
|
2428
|
+
border: 1px solid var(--payman-v2-border-1);
|
|
2429
|
+
border-radius: var(--payman-v2-radius-md);
|
|
2430
|
+
overflow: hidden;
|
|
2431
|
+
cursor: pointer;
|
|
2432
|
+
background: var(--payman-v2-bg);
|
|
2433
|
+
transition: box-shadow 0.14s ease, border-color 0.14s ease;
|
|
2434
|
+
max-width: 360px;
|
|
2435
|
+
min-width: 180px;
|
|
2436
|
+
font-family: inherit;
|
|
2437
|
+
text-align: left;
|
|
2438
|
+
vertical-align: middle;
|
|
2439
|
+
}
|
|
2440
|
+
.payman-v2-pdf-block:hover {
|
|
2441
|
+
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
|
|
2442
|
+
border-color: var(--payman-v2-text-4);
|
|
2443
|
+
}
|
|
2444
|
+
.payman-v2-pdf-block:active {
|
|
2445
|
+
box-shadow: none;
|
|
2446
|
+
}
|
|
2447
|
+
.payman-v2-pdf-block-icon-area {
|
|
2448
|
+
display: flex;
|
|
2449
|
+
align-items: center;
|
|
2450
|
+
justify-content: center;
|
|
2451
|
+
width: 44px;
|
|
2452
|
+
flex-shrink: 0;
|
|
2453
|
+
background: var(--payman-v2-bg-secondary);
|
|
2454
|
+
border-right: 1px solid var(--payman-v2-border-1);
|
|
2455
|
+
color: var(--payman-v2-text-3);
|
|
2456
|
+
transition: color 0.14s ease;
|
|
2457
|
+
}
|
|
2458
|
+
.payman-v2-pdf-block:hover .payman-v2-pdf-block-icon-area {
|
|
2459
|
+
color: var(--payman-v2-text-2);
|
|
2460
|
+
}
|
|
2461
|
+
.payman-v2-pdf-block-body {
|
|
2462
|
+
display: flex;
|
|
2463
|
+
flex-direction: column;
|
|
2464
|
+
gap: 2px;
|
|
2465
|
+
padding: 0.5rem 0.75rem;
|
|
2466
|
+
min-width: 0;
|
|
2467
|
+
}
|
|
2468
|
+
.payman-v2-pdf-block-name {
|
|
2469
|
+
font-size: 0.8125rem;
|
|
2470
|
+
font-weight: 500;
|
|
2471
|
+
color: var(--payman-v2-text-1);
|
|
2472
|
+
line-height: 1.3;
|
|
2473
|
+
white-space: nowrap;
|
|
2474
|
+
overflow: hidden;
|
|
2475
|
+
text-overflow: ellipsis;
|
|
2476
|
+
}
|
|
2477
|
+
.payman-v2-pdf-block-sub {
|
|
2478
|
+
font-size: 0.6875rem;
|
|
2479
|
+
color: var(--payman-v2-text-3);
|
|
2480
|
+
line-height: 1.2;
|
|
2481
|
+
}
|
|
2482
|
+
.payman-v2-pdf-sheet-overlay {
|
|
2483
|
+
position: fixed;
|
|
2484
|
+
inset: 0;
|
|
2485
|
+
z-index: 9000;
|
|
2486
|
+
background: rgba(0, 0, 0, 0.32);
|
|
2487
|
+
}
|
|
2488
|
+
.payman-v2-pdf-sheet {
|
|
2489
|
+
position: fixed;
|
|
2490
|
+
top: 0;
|
|
2491
|
+
right: 0;
|
|
2492
|
+
bottom: 0;
|
|
2493
|
+
background: var(--payman-v2-bg);
|
|
2494
|
+
display: flex;
|
|
2495
|
+
flex-direction: column;
|
|
2496
|
+
z-index: 9001;
|
|
2497
|
+
border-left: 1px solid var(--payman-v2-border-1);
|
|
2498
|
+
box-shadow: -6px 0 28px rgba(0, 0, 0, 0.09), -1px 0 4px rgba(0, 0, 0, 0.05);
|
|
2499
|
+
min-width: 320px;
|
|
2500
|
+
}
|
|
2501
|
+
.payman-v2-pdf-sheet-resize-handle {
|
|
2502
|
+
position: absolute;
|
|
2503
|
+
left: 0;
|
|
2504
|
+
top: 0;
|
|
2505
|
+
bottom: 0;
|
|
2506
|
+
width: 6px;
|
|
2507
|
+
cursor: ew-resize;
|
|
2508
|
+
z-index: 10;
|
|
2509
|
+
display: flex;
|
|
2510
|
+
align-items: center;
|
|
2511
|
+
justify-content: center;
|
|
2512
|
+
}
|
|
2513
|
+
.payman-v2-pdf-sheet-resize-handle:hover .payman-v2-pdf-sheet-resize-grip,
|
|
2514
|
+
.payman-v2-pdf-sheet-resize-handle:active .payman-v2-pdf-sheet-resize-grip {
|
|
2515
|
+
opacity: 1;
|
|
2516
|
+
}
|
|
2517
|
+
.payman-v2-pdf-sheet-resize-grip {
|
|
2518
|
+
width: 2px;
|
|
2519
|
+
height: 32px;
|
|
2520
|
+
border-radius: 2px;
|
|
2521
|
+
background: var(--payman-v2-border-1);
|
|
2522
|
+
opacity: 0;
|
|
2523
|
+
transition: opacity 0.15s ease;
|
|
2524
|
+
}
|
|
2525
|
+
.payman-v2-pdf-sheet-header {
|
|
2526
|
+
display: flex;
|
|
2527
|
+
align-items: center;
|
|
2528
|
+
justify-content: space-between;
|
|
2529
|
+
gap: 0.75rem;
|
|
2530
|
+
padding: 0 0.875rem 0 1rem;
|
|
2531
|
+
height: 48px;
|
|
2532
|
+
background: var(--payman-v2-bg);
|
|
2533
|
+
border-bottom: 1px solid var(--payman-v2-border-1);
|
|
2534
|
+
flex-shrink: 0;
|
|
2535
|
+
position: relative;
|
|
2536
|
+
z-index: 1;
|
|
2537
|
+
}
|
|
2538
|
+
.payman-v2-pdf-sheet-header-left {
|
|
2539
|
+
display: flex;
|
|
2540
|
+
align-items: center;
|
|
2541
|
+
gap: 0.4rem;
|
|
2542
|
+
min-width: 0;
|
|
2543
|
+
flex: 1;
|
|
2544
|
+
}
|
|
2545
|
+
.payman-v2-pdf-sheet-file-icon {
|
|
2546
|
+
display: flex;
|
|
2547
|
+
align-items: center;
|
|
2548
|
+
justify-content: center;
|
|
2549
|
+
color: var(--payman-v2-text-3);
|
|
2550
|
+
flex-shrink: 0;
|
|
2551
|
+
}
|
|
2552
|
+
.payman-v2-pdf-sheet-title {
|
|
2553
|
+
font-size: 0.8125rem;
|
|
2554
|
+
font-weight: 500;
|
|
2555
|
+
color: var(--payman-v2-text-1);
|
|
2556
|
+
white-space: nowrap;
|
|
2557
|
+
overflow: hidden;
|
|
2558
|
+
text-overflow: ellipsis;
|
|
2559
|
+
line-height: 1.3;
|
|
2560
|
+
}
|
|
2561
|
+
.payman-v2-pdf-sheet-header-actions {
|
|
2562
|
+
display: flex;
|
|
2563
|
+
align-items: center;
|
|
2564
|
+
gap: 0.25rem;
|
|
2565
|
+
flex-shrink: 0;
|
|
2566
|
+
}
|
|
2567
|
+
.payman-v2-pdf-sheet-download-btn {
|
|
2568
|
+
display: inline-flex;
|
|
2569
|
+
align-items: center;
|
|
2570
|
+
gap: 0.3rem;
|
|
2571
|
+
padding: 0.3125rem 0.65rem;
|
|
2572
|
+
font-size: 0.75rem;
|
|
2573
|
+
font-weight: 500;
|
|
2574
|
+
color: var(--payman-v2-text-2);
|
|
2575
|
+
background: transparent;
|
|
2576
|
+
border: 1px solid var(--payman-v2-border-1);
|
|
2577
|
+
border-radius: var(--payman-v2-radius-full);
|
|
2578
|
+
cursor: pointer;
|
|
2579
|
+
transition: background 0.13s ease, color 0.13s ease;
|
|
2580
|
+
white-space: nowrap;
|
|
2581
|
+
font-family: inherit;
|
|
2582
|
+
}
|
|
2583
|
+
.payman-v2-pdf-sheet-download-btn:hover {
|
|
2584
|
+
background: var(--payman-v2-hover);
|
|
2585
|
+
color: var(--payman-v2-text-1);
|
|
2586
|
+
}
|
|
2587
|
+
.payman-v2-pdf-sheet-close-btn {
|
|
2588
|
+
display: inline-flex;
|
|
2589
|
+
align-items: center;
|
|
2590
|
+
justify-content: center;
|
|
2591
|
+
width: 28px;
|
|
2592
|
+
height: 28px;
|
|
2593
|
+
border-radius: var(--payman-v2-radius-full);
|
|
2594
|
+
border: none;
|
|
2595
|
+
background: transparent;
|
|
2596
|
+
color: var(--payman-v2-text-3);
|
|
2597
|
+
cursor: pointer;
|
|
2598
|
+
transition: background 0.13s ease, color 0.13s ease;
|
|
2599
|
+
flex-shrink: 0;
|
|
2600
|
+
font-family: inherit;
|
|
2601
|
+
}
|
|
2602
|
+
.payman-v2-pdf-sheet-close-btn:hover {
|
|
2603
|
+
background: var(--payman-v2-hover);
|
|
2604
|
+
color: var(--payman-v2-text-1);
|
|
2605
|
+
}
|
|
2606
|
+
.payman-v2-pdf-sheet-body {
|
|
2607
|
+
flex: 1;
|
|
2608
|
+
position: relative;
|
|
2609
|
+
overflow: hidden;
|
|
2610
|
+
background: var(--payman-v2-bg-secondary);
|
|
2611
|
+
}
|
|
2612
|
+
.payman-v2-pdf-sheet-loading {
|
|
2613
|
+
position: absolute;
|
|
2614
|
+
inset: 0;
|
|
2615
|
+
display: flex;
|
|
2616
|
+
flex-direction: column;
|
|
2617
|
+
align-items: center;
|
|
2618
|
+
justify-content: center;
|
|
2619
|
+
gap: 0.5rem;
|
|
2620
|
+
z-index: 1;
|
|
2621
|
+
}
|
|
2622
|
+
.payman-v2-pdf-sheet-loading-text {
|
|
2623
|
+
font-size: 0.8125rem;
|
|
2624
|
+
color: var(--payman-v2-text-3);
|
|
2625
|
+
}
|
|
2626
|
+
.payman-v2-pdf-sheet-iframe {
|
|
2627
|
+
position: absolute;
|
|
2628
|
+
inset: 0;
|
|
2629
|
+
width: 100%;
|
|
2630
|
+
height: 100%;
|
|
2631
|
+
border: none;
|
|
2632
|
+
display: block;
|
|
2633
|
+
}
|
|
2425
2634
|
|
|
2426
2635
|
/* src/styles.css */
|
|
2427
2636
|
.payman-chat-root {
|