@xsolla/xui-core 0.154.2 → 0.155.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/index.d.mts +282 -0
- package/index.d.ts +282 -0
- package/index.js +83 -0
- package/index.js.map +1 -1
- package/index.mjs +83 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2434,6 +2434,89 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2434
2434
|
};
|
|
2435
2435
|
return configs[size];
|
|
2436
2436
|
},
|
|
2437
|
+
dragDropUploader: (size) => {
|
|
2438
|
+
const base = {
|
|
2439
|
+
width: 360,
|
|
2440
|
+
rootGap: 12,
|
|
2441
|
+
radius: 4,
|
|
2442
|
+
borderWidth: 1,
|
|
2443
|
+
textGap: 6,
|
|
2444
|
+
titleFontSize: 14,
|
|
2445
|
+
titleLineHeight: 18,
|
|
2446
|
+
descriptionFontSize: 14,
|
|
2447
|
+
descriptionLineHeight: 18,
|
|
2448
|
+
errorFontSize: 12,
|
|
2449
|
+
errorLineHeight: 16,
|
|
2450
|
+
listGap: 6,
|
|
2451
|
+
itemGap: 8,
|
|
2452
|
+
itemPaddingVertical: 8,
|
|
2453
|
+
itemPaddingLeft: 8,
|
|
2454
|
+
itemPaddingRight: 12,
|
|
2455
|
+
itemIconWrapperSize: 32,
|
|
2456
|
+
itemIconSize: 20,
|
|
2457
|
+
itemTitleFontSize: 14,
|
|
2458
|
+
itemTitleLineHeight: 16,
|
|
2459
|
+
itemDescriptionFontSize: 14,
|
|
2460
|
+
itemDescriptionLineHeight: 18,
|
|
2461
|
+
removeIconSize: 18
|
|
2462
|
+
};
|
|
2463
|
+
const configs = {
|
|
2464
|
+
xl: {
|
|
2465
|
+
...base,
|
|
2466
|
+
areaHeight: 240,
|
|
2467
|
+
areaPadding: 20,
|
|
2468
|
+
areaGap: 16,
|
|
2469
|
+
iconSize: 32
|
|
2470
|
+
},
|
|
2471
|
+
lg: {
|
|
2472
|
+
...base,
|
|
2473
|
+
areaHeight: 200,
|
|
2474
|
+
areaPadding: 20,
|
|
2475
|
+
areaGap: 16,
|
|
2476
|
+
iconSize: 24
|
|
2477
|
+
},
|
|
2478
|
+
md: {
|
|
2479
|
+
...base,
|
|
2480
|
+
areaHeight: 160,
|
|
2481
|
+
areaPadding: 20,
|
|
2482
|
+
areaGap: 16,
|
|
2483
|
+
iconSize: 24
|
|
2484
|
+
},
|
|
2485
|
+
sm: {
|
|
2486
|
+
...base,
|
|
2487
|
+
areaHeight: 128,
|
|
2488
|
+
areaPadding: 20,
|
|
2489
|
+
areaGap: 16,
|
|
2490
|
+
iconSize: 24
|
|
2491
|
+
},
|
|
2492
|
+
xs: {
|
|
2493
|
+
...base,
|
|
2494
|
+
width: 320,
|
|
2495
|
+
rootGap: 8,
|
|
2496
|
+
areaHeight: 104,
|
|
2497
|
+
areaPadding: 16,
|
|
2498
|
+
areaGap: 8,
|
|
2499
|
+
textGap: 4,
|
|
2500
|
+
iconSize: 16,
|
|
2501
|
+
titleFontSize: 12,
|
|
2502
|
+
titleLineHeight: 16,
|
|
2503
|
+
descriptionFontSize: 12,
|
|
2504
|
+
descriptionLineHeight: 16,
|
|
2505
|
+
listGap: 4,
|
|
2506
|
+
itemGap: 4,
|
|
2507
|
+
itemPaddingVertical: 4,
|
|
2508
|
+
itemPaddingLeft: 4,
|
|
2509
|
+
itemIconWrapperSize: 24,
|
|
2510
|
+
itemIconSize: 16,
|
|
2511
|
+
itemTitleFontSize: 12,
|
|
2512
|
+
itemTitleLineHeight: 14,
|
|
2513
|
+
itemDescriptionFontSize: 12,
|
|
2514
|
+
itemDescriptionLineHeight: 16,
|
|
2515
|
+
removeIconSize: 14
|
|
2516
|
+
}
|
|
2517
|
+
};
|
|
2518
|
+
return configs[size];
|
|
2519
|
+
},
|
|
2437
2520
|
inputPin: (size) => {
|
|
2438
2521
|
const configs = {
|
|
2439
2522
|
xl: {
|