@xsolla/xui-core 0.160.2 → 0.161.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 +1017 -201
- package/index.d.ts +1017 -201
- package/index.js +211 -90
- package/index.js.map +1 -1
- package/index.mjs +208 -90
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -55,9 +55,12 @@ __export(index_exports, {
|
|
|
55
55
|
lineHeightDisplay: () => lineHeightDisplay,
|
|
56
56
|
lineHeightText: () => lineHeightText,
|
|
57
57
|
radius: () => radius,
|
|
58
|
+
radiusScale: () => radiusScale,
|
|
58
59
|
responsiveTypographyScale: () => responsiveTypographyScale,
|
|
59
60
|
shadow: () => shadow,
|
|
61
|
+
shape: () => shape,
|
|
60
62
|
spacing: () => spacing,
|
|
63
|
+
stroke: () => stroke,
|
|
61
64
|
themeConfig: () => themeConfig,
|
|
62
65
|
typography: () => typography,
|
|
63
66
|
typographyTokens: () => typographyTokens,
|
|
@@ -1313,6 +1316,129 @@ var radius = {
|
|
|
1313
1316
|
avatarLarge: 8,
|
|
1314
1317
|
avatarCircle: 999
|
|
1315
1318
|
};
|
|
1319
|
+
var radiusScale = {
|
|
1320
|
+
"25": 2,
|
|
1321
|
+
"50": 4,
|
|
1322
|
+
"75": 6,
|
|
1323
|
+
"100": 8,
|
|
1324
|
+
"150": 12,
|
|
1325
|
+
"200": 16,
|
|
1326
|
+
"250": 20,
|
|
1327
|
+
"300": 24,
|
|
1328
|
+
"350": 28,
|
|
1329
|
+
"400": 32,
|
|
1330
|
+
"999": 999
|
|
1331
|
+
};
|
|
1332
|
+
var stroke = {
|
|
1333
|
+
"1": 1,
|
|
1334
|
+
"2": 2,
|
|
1335
|
+
"3": 3
|
|
1336
|
+
};
|
|
1337
|
+
|
|
1338
|
+
// src/tokens/shape.ts
|
|
1339
|
+
var shape = {
|
|
1340
|
+
button: {
|
|
1341
|
+
xl: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1342
|
+
lg: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1343
|
+
md: { borderRadius: radiusScale["75"], borderWidth: stroke["1"] },
|
|
1344
|
+
sm: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1345
|
+
xs: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] }
|
|
1346
|
+
},
|
|
1347
|
+
checkbox: {
|
|
1348
|
+
xl: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1349
|
+
lg: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1350
|
+
md: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1351
|
+
sm: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] }
|
|
1352
|
+
},
|
|
1353
|
+
input: {
|
|
1354
|
+
xl: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1355
|
+
lg: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1356
|
+
md: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1357
|
+
sm: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1358
|
+
xs: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] }
|
|
1359
|
+
},
|
|
1360
|
+
segmented: {
|
|
1361
|
+
xl: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1362
|
+
lg: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1363
|
+
md: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1364
|
+
sm: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] }
|
|
1365
|
+
},
|
|
1366
|
+
segmentedItem: {
|
|
1367
|
+
xl: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1368
|
+
lg: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1369
|
+
md: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1370
|
+
sm: { borderRadius: radiusScale["25"], borderWidth: stroke["1"] }
|
|
1371
|
+
},
|
|
1372
|
+
switch: {
|
|
1373
|
+
xl: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1374
|
+
lg: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1375
|
+
md: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1376
|
+
sm: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] }
|
|
1377
|
+
},
|
|
1378
|
+
knob: {
|
|
1379
|
+
xl: { borderRadius: radiusScale["25"] },
|
|
1380
|
+
lg: { borderRadius: radiusScale["25"] },
|
|
1381
|
+
md: { borderRadius: radiusScale["25"] },
|
|
1382
|
+
sm: { borderRadius: radiusScale["25"] }
|
|
1383
|
+
},
|
|
1384
|
+
tabItem: {
|
|
1385
|
+
xl: { borderRadius: radiusScale["100"] },
|
|
1386
|
+
lg: { borderRadius: radiusScale["100"] },
|
|
1387
|
+
md: { borderRadius: radiusScale["50"] },
|
|
1388
|
+
sm: { borderRadius: radiusScale["50"] }
|
|
1389
|
+
},
|
|
1390
|
+
tag: {
|
|
1391
|
+
xl: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1392
|
+
lg: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1393
|
+
md: { borderRadius: radiusScale["75"], borderWidth: stroke["1"] },
|
|
1394
|
+
sm: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1395
|
+
xs: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1396
|
+
label: { borderRadius: 0 }
|
|
1397
|
+
},
|
|
1398
|
+
tooltip: {
|
|
1399
|
+
xl: { borderRadius: radiusScale["100"] },
|
|
1400
|
+
lg: { borderRadius: radiusScale["100"] },
|
|
1401
|
+
md: { borderRadius: radiusScale["100"] },
|
|
1402
|
+
sm: { borderRadius: radiusScale["50"] }
|
|
1403
|
+
},
|
|
1404
|
+
radio: {
|
|
1405
|
+
xl: { borderRadius: radiusScale["999"], borderWidth: stroke["1"] },
|
|
1406
|
+
lg: { borderRadius: radiusScale["999"], borderWidth: stroke["1"] },
|
|
1407
|
+
md: { borderRadius: radiusScale["999"], borderWidth: stroke["1"] },
|
|
1408
|
+
sm: { borderRadius: radiusScale["999"], borderWidth: stroke["1"] }
|
|
1409
|
+
},
|
|
1410
|
+
contextMenu: {
|
|
1411
|
+
xl: { borderRadius: radiusScale["100"] },
|
|
1412
|
+
lg: { borderRadius: radiusScale["100"] },
|
|
1413
|
+
md: { borderRadius: radiusScale["100"] },
|
|
1414
|
+
sm: { borderRadius: radiusScale["50"] },
|
|
1415
|
+
xs: { borderRadius: radiusScale["50"] }
|
|
1416
|
+
},
|
|
1417
|
+
avatar: {
|
|
1418
|
+
xl: { borderRadius: radiusScale["100"], borderWidth: stroke["2"] },
|
|
1419
|
+
lg: { borderRadius: radiusScale["75"], borderWidth: stroke["2"] },
|
|
1420
|
+
md: { borderRadius: radiusScale["75"], borderWidth: stroke["2"] },
|
|
1421
|
+
sm: { borderRadius: radiusScale["50"], borderWidth: stroke["2"] },
|
|
1422
|
+
xs: { borderRadius: radiusScale["50"], borderWidth: stroke["2"] },
|
|
1423
|
+
xxs: { borderRadius: radiusScale["25"], borderWidth: stroke["2"] }
|
|
1424
|
+
},
|
|
1425
|
+
modal: {
|
|
1426
|
+
borderRadius: radiusScale["100"]
|
|
1427
|
+
},
|
|
1428
|
+
toast: {
|
|
1429
|
+
borderRadius: radiusScale["50"]
|
|
1430
|
+
},
|
|
1431
|
+
toggleButtonGroup: {
|
|
1432
|
+
xl: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1433
|
+
lg: { borderRadius: radiusScale["100"], borderWidth: stroke["1"] },
|
|
1434
|
+
md: { borderRadius: radiusScale["75"], borderWidth: stroke["1"] },
|
|
1435
|
+
sm: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] },
|
|
1436
|
+
xs: { borderRadius: radiusScale["50"], borderWidth: stroke["1"] }
|
|
1437
|
+
},
|
|
1438
|
+
tagLabel: {
|
|
1439
|
+
borderRadius: 0
|
|
1440
|
+
}
|
|
1441
|
+
};
|
|
1316
1442
|
|
|
1317
1443
|
// src/tokens/shadows.ts
|
|
1318
1444
|
var shadow = {
|
|
@@ -2172,7 +2298,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2172
2298
|
return {
|
|
2173
2299
|
colors: colors[mode],
|
|
2174
2300
|
spacing,
|
|
2175
|
-
|
|
2301
|
+
shape,
|
|
2176
2302
|
shadow,
|
|
2177
2303
|
fonts: contextFonts,
|
|
2178
2304
|
typography: {
|
|
@@ -2195,7 +2321,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2195
2321
|
iconContainerSize: 64,
|
|
2196
2322
|
iconPadding: 20,
|
|
2197
2323
|
loadingPadding: 40,
|
|
2198
|
-
borderRadius:
|
|
2324
|
+
borderRadius: shape.button.xl.borderRadius,
|
|
2199
2325
|
labelIconSize: 18,
|
|
2200
2326
|
labelIconGap: 6
|
|
2201
2327
|
},
|
|
@@ -2209,7 +2335,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2209
2335
|
iconContainerSize: 56,
|
|
2210
2336
|
iconPadding: 20,
|
|
2211
2337
|
loadingPadding: 36,
|
|
2212
|
-
borderRadius:
|
|
2338
|
+
borderRadius: shape.button.lg.borderRadius,
|
|
2213
2339
|
labelIconSize: 16,
|
|
2214
2340
|
labelIconGap: 6
|
|
2215
2341
|
},
|
|
@@ -2223,7 +2349,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2223
2349
|
iconContainerSize: 48,
|
|
2224
2350
|
iconPadding: 20,
|
|
2225
2351
|
loadingPadding: 32,
|
|
2226
|
-
borderRadius:
|
|
2352
|
+
borderRadius: shape.button.md.borderRadius,
|
|
2227
2353
|
labelIconSize: 14,
|
|
2228
2354
|
labelIconGap: 4
|
|
2229
2355
|
},
|
|
@@ -2237,7 +2363,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2237
2363
|
iconContainerSize: 40,
|
|
2238
2364
|
iconPadding: 20,
|
|
2239
2365
|
loadingPadding: 28,
|
|
2240
|
-
borderRadius:
|
|
2366
|
+
borderRadius: shape.button.sm.borderRadius,
|
|
2241
2367
|
labelIconSize: 12,
|
|
2242
2368
|
labelIconGap: 4
|
|
2243
2369
|
},
|
|
@@ -2251,7 +2377,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2251
2377
|
iconContainerSize: 32,
|
|
2252
2378
|
iconPadding: 20,
|
|
2253
2379
|
loadingPadding: 28,
|
|
2254
|
-
borderRadius:
|
|
2380
|
+
borderRadius: shape.button.xs.borderRadius,
|
|
2255
2381
|
labelIconSize: 10,
|
|
2256
2382
|
labelIconGap: 4
|
|
2257
2383
|
}
|
|
@@ -2266,7 +2392,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2266
2392
|
fontSize: 16,
|
|
2267
2393
|
spinnerSize: 28,
|
|
2268
2394
|
iconSize: 20,
|
|
2269
|
-
borderRadius:
|
|
2395
|
+
borderRadius: radiusScale["50"]
|
|
2270
2396
|
},
|
|
2271
2397
|
lg: {
|
|
2272
2398
|
height: 32,
|
|
@@ -2274,7 +2400,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2274
2400
|
fontSize: 14,
|
|
2275
2401
|
spinnerSize: 24,
|
|
2276
2402
|
iconSize: 18,
|
|
2277
|
-
borderRadius:
|
|
2403
|
+
borderRadius: radiusScale["50"]
|
|
2278
2404
|
},
|
|
2279
2405
|
md: {
|
|
2280
2406
|
height: 28,
|
|
@@ -2282,7 +2408,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2282
2408
|
fontSize: 14,
|
|
2283
2409
|
spinnerSize: 24,
|
|
2284
2410
|
iconSize: 16,
|
|
2285
|
-
borderRadius:
|
|
2411
|
+
borderRadius: radiusScale["25"]
|
|
2286
2412
|
},
|
|
2287
2413
|
sm: {
|
|
2288
2414
|
height: 22,
|
|
@@ -2290,7 +2416,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2290
2416
|
fontSize: 12,
|
|
2291
2417
|
spinnerSize: 16,
|
|
2292
2418
|
iconSize: 14,
|
|
2293
|
-
borderRadius:
|
|
2419
|
+
borderRadius: radiusScale["25"]
|
|
2294
2420
|
},
|
|
2295
2421
|
xs: {
|
|
2296
2422
|
height: 20,
|
|
@@ -2298,7 +2424,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2298
2424
|
fontSize: 12,
|
|
2299
2425
|
spinnerSize: 16,
|
|
2300
2426
|
iconSize: 12,
|
|
2301
|
-
borderRadius:
|
|
2427
|
+
borderRadius: radiusScale["25"]
|
|
2302
2428
|
}
|
|
2303
2429
|
};
|
|
2304
2430
|
return configs[size];
|
|
@@ -2311,7 +2437,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2311
2437
|
descriptionFontSize: 16,
|
|
2312
2438
|
labelGap: 12,
|
|
2313
2439
|
textGap: 4,
|
|
2314
|
-
borderRadius:
|
|
2440
|
+
borderRadius: shape.checkbox.xl.borderRadius
|
|
2315
2441
|
},
|
|
2316
2442
|
lg: {
|
|
2317
2443
|
size: 20,
|
|
@@ -2319,7 +2445,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2319
2445
|
descriptionFontSize: 14,
|
|
2320
2446
|
labelGap: 10,
|
|
2321
2447
|
textGap: 2,
|
|
2322
|
-
borderRadius:
|
|
2448
|
+
borderRadius: shape.checkbox.lg.borderRadius
|
|
2323
2449
|
},
|
|
2324
2450
|
md: {
|
|
2325
2451
|
size: 18,
|
|
@@ -2327,7 +2453,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2327
2453
|
descriptionFontSize: 14,
|
|
2328
2454
|
labelGap: 8,
|
|
2329
2455
|
textGap: 2,
|
|
2330
|
-
borderRadius:
|
|
2456
|
+
borderRadius: shape.checkbox.md.borderRadius
|
|
2331
2457
|
},
|
|
2332
2458
|
sm: {
|
|
2333
2459
|
size: 16,
|
|
@@ -2335,7 +2461,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2335
2461
|
descriptionFontSize: 12,
|
|
2336
2462
|
labelGap: 8,
|
|
2337
2463
|
textGap: 0,
|
|
2338
|
-
borderRadius:
|
|
2464
|
+
borderRadius: shape.checkbox.sm.borderRadius
|
|
2339
2465
|
}
|
|
2340
2466
|
};
|
|
2341
2467
|
return configs[size];
|
|
@@ -2397,7 +2523,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2397
2523
|
paddingHorizontal: 12,
|
|
2398
2524
|
fontSize: 20,
|
|
2399
2525
|
iconSize: 18,
|
|
2400
|
-
radius:
|
|
2526
|
+
radius: shape.input.xl.borderRadius,
|
|
2401
2527
|
borderWidth: 2,
|
|
2402
2528
|
fieldGap: 8,
|
|
2403
2529
|
lineHeight: 20
|
|
@@ -2408,7 +2534,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2408
2534
|
paddingHorizontal: 12,
|
|
2409
2535
|
fontSize: 18,
|
|
2410
2536
|
iconSize: 18,
|
|
2411
|
-
radius:
|
|
2537
|
+
radius: shape.input.lg.borderRadius,
|
|
2412
2538
|
borderWidth: 2,
|
|
2413
2539
|
fieldGap: 6,
|
|
2414
2540
|
lineHeight: 18
|
|
@@ -2419,7 +2545,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2419
2545
|
paddingHorizontal: 12,
|
|
2420
2546
|
fontSize: 16,
|
|
2421
2547
|
iconSize: 18,
|
|
2422
|
-
radius:
|
|
2548
|
+
radius: shape.input.md.borderRadius,
|
|
2423
2549
|
borderWidth: 1,
|
|
2424
2550
|
fieldGap: 4,
|
|
2425
2551
|
lineHeight: 16
|
|
@@ -2430,7 +2556,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2430
2556
|
paddingHorizontal: 10,
|
|
2431
2557
|
fontSize: 14,
|
|
2432
2558
|
iconSize: 18,
|
|
2433
|
-
radius:
|
|
2559
|
+
radius: shape.input.sm.borderRadius,
|
|
2434
2560
|
borderWidth: 1,
|
|
2435
2561
|
fieldGap: 4,
|
|
2436
2562
|
lineHeight: 14
|
|
@@ -2441,7 +2567,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2441
2567
|
paddingHorizontal: 10,
|
|
2442
2568
|
fontSize: 12,
|
|
2443
2569
|
iconSize: 18,
|
|
2444
|
-
radius:
|
|
2570
|
+
radius: shape.input.xs.borderRadius,
|
|
2445
2571
|
borderWidth: 1,
|
|
2446
2572
|
fieldGap: 4,
|
|
2447
2573
|
lineHeight: 10
|
|
@@ -2463,7 +2589,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2463
2589
|
errorFontSize: 16,
|
|
2464
2590
|
errorLineHeight: 18,
|
|
2465
2591
|
errorGap: 8,
|
|
2466
|
-
radius:
|
|
2592
|
+
radius: shape.input.xl.borderRadius,
|
|
2467
2593
|
borderWidth: 1
|
|
2468
2594
|
},
|
|
2469
2595
|
lg: {
|
|
@@ -2478,7 +2604,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2478
2604
|
errorFontSize: 16,
|
|
2479
2605
|
errorLineHeight: 18,
|
|
2480
2606
|
errorGap: 8,
|
|
2481
|
-
radius:
|
|
2607
|
+
radius: shape.input.lg.borderRadius,
|
|
2482
2608
|
borderWidth: 1
|
|
2483
2609
|
},
|
|
2484
2610
|
md: {
|
|
@@ -2493,7 +2619,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2493
2619
|
errorFontSize: 14,
|
|
2494
2620
|
errorLineHeight: 16,
|
|
2495
2621
|
errorGap: 6,
|
|
2496
|
-
radius:
|
|
2622
|
+
radius: shape.input.md.borderRadius,
|
|
2497
2623
|
borderWidth: 1
|
|
2498
2624
|
},
|
|
2499
2625
|
sm: {
|
|
@@ -2508,7 +2634,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2508
2634
|
errorFontSize: 12,
|
|
2509
2635
|
errorLineHeight: 14,
|
|
2510
2636
|
errorGap: 6,
|
|
2511
|
-
radius:
|
|
2637
|
+
radius: shape.input.sm.borderRadius,
|
|
2512
2638
|
borderWidth: 1
|
|
2513
2639
|
},
|
|
2514
2640
|
xs: {
|
|
@@ -2523,7 +2649,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2523
2649
|
errorFontSize: 11,
|
|
2524
2650
|
errorLineHeight: 13,
|
|
2525
2651
|
errorGap: 4,
|
|
2526
|
-
radius:
|
|
2652
|
+
radius: shape.input.xs.borderRadius,
|
|
2527
2653
|
borderWidth: 1
|
|
2528
2654
|
}
|
|
2529
2655
|
};
|
|
@@ -2618,7 +2744,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2618
2744
|
size: 64,
|
|
2619
2745
|
gap: 10,
|
|
2620
2746
|
fontSize: 20,
|
|
2621
|
-
radius:
|
|
2747
|
+
radius: shape.input.xl.borderRadius,
|
|
2622
2748
|
borderWidth: 1,
|
|
2623
2749
|
fieldGap: 8
|
|
2624
2750
|
},
|
|
@@ -2626,7 +2752,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2626
2752
|
size: 56,
|
|
2627
2753
|
gap: 8,
|
|
2628
2754
|
fontSize: 18,
|
|
2629
|
-
radius:
|
|
2755
|
+
radius: shape.input.lg.borderRadius,
|
|
2630
2756
|
borderWidth: 1,
|
|
2631
2757
|
fieldGap: 6
|
|
2632
2758
|
},
|
|
@@ -2634,7 +2760,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2634
2760
|
size: 48,
|
|
2635
2761
|
gap: 6,
|
|
2636
2762
|
fontSize: 16,
|
|
2637
|
-
radius:
|
|
2763
|
+
radius: shape.input.md.borderRadius,
|
|
2638
2764
|
borderWidth: 1,
|
|
2639
2765
|
fieldGap: 4
|
|
2640
2766
|
},
|
|
@@ -2642,7 +2768,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2642
2768
|
size: 40,
|
|
2643
2769
|
gap: 4,
|
|
2644
2770
|
fontSize: 14,
|
|
2645
|
-
radius:
|
|
2771
|
+
radius: shape.input.sm.borderRadius,
|
|
2646
2772
|
borderWidth: 1,
|
|
2647
2773
|
fieldGap: 4
|
|
2648
2774
|
},
|
|
@@ -2650,7 +2776,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2650
2776
|
size: 32,
|
|
2651
2777
|
gap: 4,
|
|
2652
2778
|
fontSize: 12,
|
|
2653
|
-
radius:
|
|
2779
|
+
radius: shape.input.xs.borderRadius,
|
|
2654
2780
|
borderWidth: 1,
|
|
2655
2781
|
fieldGap: 4
|
|
2656
2782
|
}
|
|
@@ -2664,35 +2790,35 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2664
2790
|
padding: spacing.xl,
|
|
2665
2791
|
fontSize: 20,
|
|
2666
2792
|
iconSize: 32,
|
|
2667
|
-
radius:
|
|
2793
|
+
radius: shape.input.xl.borderRadius
|
|
2668
2794
|
},
|
|
2669
2795
|
lg: {
|
|
2670
2796
|
height: 128,
|
|
2671
2797
|
padding: spacing.l,
|
|
2672
2798
|
fontSize: 18,
|
|
2673
2799
|
iconSize: 28,
|
|
2674
|
-
radius:
|
|
2800
|
+
radius: shape.input.lg.borderRadius
|
|
2675
2801
|
},
|
|
2676
2802
|
md: {
|
|
2677
2803
|
height: 112,
|
|
2678
2804
|
padding: spacing.m,
|
|
2679
2805
|
fontSize: 16,
|
|
2680
2806
|
iconSize: 24,
|
|
2681
|
-
radius:
|
|
2807
|
+
radius: shape.input.md.borderRadius
|
|
2682
2808
|
},
|
|
2683
2809
|
sm: {
|
|
2684
2810
|
height: 96,
|
|
2685
2811
|
padding: spacing.s,
|
|
2686
2812
|
fontSize: 14,
|
|
2687
2813
|
iconSize: 20,
|
|
2688
|
-
radius:
|
|
2814
|
+
radius: shape.input.sm.borderRadius
|
|
2689
2815
|
},
|
|
2690
2816
|
xs: {
|
|
2691
2817
|
height: 80,
|
|
2692
2818
|
padding: spacing.xs,
|
|
2693
2819
|
fontSize: 12,
|
|
2694
2820
|
iconSize: 16,
|
|
2695
|
-
radius:
|
|
2821
|
+
radius: shape.input.xs.borderRadius
|
|
2696
2822
|
}
|
|
2697
2823
|
};
|
|
2698
2824
|
return configs[size];
|
|
@@ -2709,8 +2835,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2709
2835
|
descriptionLineHeight: 20,
|
|
2710
2836
|
labelGap: 12,
|
|
2711
2837
|
textGap: 4,
|
|
2712
|
-
frameBorderRadius:
|
|
2713
|
-
knobBorderRadius:
|
|
2838
|
+
frameBorderRadius: shape.switch.xl.borderRadius,
|
|
2839
|
+
knobBorderRadius: shape.knob.xl.borderRadius
|
|
2714
2840
|
},
|
|
2715
2841
|
lg: {
|
|
2716
2842
|
width: 36,
|
|
@@ -2722,8 +2848,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2722
2848
|
descriptionLineHeight: 18,
|
|
2723
2849
|
labelGap: 10,
|
|
2724
2850
|
textGap: 2,
|
|
2725
|
-
frameBorderRadius:
|
|
2726
|
-
knobBorderRadius:
|
|
2851
|
+
frameBorderRadius: shape.switch.lg.borderRadius,
|
|
2852
|
+
knobBorderRadius: shape.knob.lg.borderRadius
|
|
2727
2853
|
},
|
|
2728
2854
|
md: {
|
|
2729
2855
|
width: 32,
|
|
@@ -2735,8 +2861,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2735
2861
|
descriptionLineHeight: 16,
|
|
2736
2862
|
labelGap: 8,
|
|
2737
2863
|
textGap: 2,
|
|
2738
|
-
frameBorderRadius:
|
|
2739
|
-
knobBorderRadius:
|
|
2864
|
+
frameBorderRadius: shape.switch.md.borderRadius,
|
|
2865
|
+
knobBorderRadius: shape.knob.md.borderRadius
|
|
2740
2866
|
},
|
|
2741
2867
|
sm: {
|
|
2742
2868
|
width: 28,
|
|
@@ -2748,8 +2874,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2748
2874
|
descriptionLineHeight: 14,
|
|
2749
2875
|
labelGap: 8,
|
|
2750
2876
|
textGap: 0,
|
|
2751
|
-
frameBorderRadius:
|
|
2752
|
-
knobBorderRadius:
|
|
2877
|
+
frameBorderRadius: shape.switch.sm.borderRadius,
|
|
2878
|
+
knobBorderRadius: shape.knob.sm.borderRadius
|
|
2753
2879
|
}
|
|
2754
2880
|
};
|
|
2755
2881
|
return configs[size];
|
|
@@ -2763,8 +2889,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2763
2889
|
badgeSize: 20,
|
|
2764
2890
|
badgeOffsetCircle: { right: -4, top: -4 },
|
|
2765
2891
|
badgeOffsetSquare: { right: -8, top: -8 },
|
|
2766
|
-
borderRadiusSquare:
|
|
2767
|
-
borderRadiusCircle:
|
|
2892
|
+
borderRadiusSquare: shape.avatar.xl.borderRadius,
|
|
2893
|
+
borderRadiusCircle: radiusScale["999"]
|
|
2768
2894
|
},
|
|
2769
2895
|
lg: {
|
|
2770
2896
|
size: 56,
|
|
@@ -2773,8 +2899,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2773
2899
|
badgeSize: 20,
|
|
2774
2900
|
badgeOffsetCircle: { right: -4, top: -4 },
|
|
2775
2901
|
badgeOffsetSquare: { right: -8, top: -8 },
|
|
2776
|
-
borderRadiusSquare:
|
|
2777
|
-
borderRadiusCircle:
|
|
2902
|
+
borderRadiusSquare: shape.avatar.lg.borderRadius,
|
|
2903
|
+
borderRadiusCircle: radiusScale["999"]
|
|
2778
2904
|
},
|
|
2779
2905
|
md: {
|
|
2780
2906
|
size: 48,
|
|
@@ -2783,8 +2909,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2783
2909
|
badgeSize: 20,
|
|
2784
2910
|
badgeOffsetCircle: { right: -5, top: -5 },
|
|
2785
2911
|
badgeOffsetSquare: { right: -8, top: -8 },
|
|
2786
|
-
borderRadiusSquare:
|
|
2787
|
-
borderRadiusCircle:
|
|
2912
|
+
borderRadiusSquare: shape.avatar.md.borderRadius,
|
|
2913
|
+
borderRadiusCircle: radiusScale["999"]
|
|
2788
2914
|
},
|
|
2789
2915
|
sm: {
|
|
2790
2916
|
size: 40,
|
|
@@ -2793,8 +2919,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2793
2919
|
badgeSize: 20,
|
|
2794
2920
|
badgeOffsetCircle: { right: -6, top: -6 },
|
|
2795
2921
|
badgeOffsetSquare: { right: -8, top: -8 },
|
|
2796
|
-
borderRadiusSquare:
|
|
2797
|
-
borderRadiusCircle:
|
|
2922
|
+
borderRadiusSquare: shape.avatar.sm.borderRadius,
|
|
2923
|
+
borderRadiusCircle: radiusScale["999"]
|
|
2798
2924
|
},
|
|
2799
2925
|
xs: {
|
|
2800
2926
|
size: 32,
|
|
@@ -2803,8 +2929,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2803
2929
|
badgeSize: 8,
|
|
2804
2930
|
badgeOffsetCircle: { right: -1, top: -1 },
|
|
2805
2931
|
badgeOffsetSquare: { right: -3, top: -3 },
|
|
2806
|
-
borderRadiusSquare:
|
|
2807
|
-
borderRadiusCircle:
|
|
2932
|
+
borderRadiusSquare: shape.avatar.xs.borderRadius,
|
|
2933
|
+
borderRadiusCircle: radiusScale["999"]
|
|
2808
2934
|
},
|
|
2809
2935
|
xxs: {
|
|
2810
2936
|
size: 24,
|
|
@@ -2813,8 +2939,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2813
2939
|
badgeSize: 6,
|
|
2814
2940
|
badgeOffsetCircle: { right: -1, top: -1 },
|
|
2815
2941
|
badgeOffsetSquare: { right: -2, top: -2 },
|
|
2816
|
-
borderRadiusSquare:
|
|
2817
|
-
borderRadiusCircle:
|
|
2942
|
+
borderRadiusSquare: shape.avatar.xxs.borderRadius,
|
|
2943
|
+
borderRadiusCircle: radiusScale["999"]
|
|
2818
2944
|
}
|
|
2819
2945
|
};
|
|
2820
2946
|
return configs[size];
|
|
@@ -2828,7 +2954,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2828
2954
|
lineHeight: 22,
|
|
2829
2955
|
gap: 6,
|
|
2830
2956
|
iconSize: 22,
|
|
2831
|
-
radius:
|
|
2957
|
+
radius: shape.tag.xl.borderRadius,
|
|
2832
2958
|
borderWidth: 1
|
|
2833
2959
|
},
|
|
2834
2960
|
lg: {
|
|
@@ -2838,7 +2964,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2838
2964
|
lineHeight: 20,
|
|
2839
2965
|
gap: 6,
|
|
2840
2966
|
iconSize: 20,
|
|
2841
|
-
radius:
|
|
2967
|
+
radius: shape.tag.lg.borderRadius,
|
|
2842
2968
|
borderWidth: 1
|
|
2843
2969
|
},
|
|
2844
2970
|
md: {
|
|
@@ -2848,7 +2974,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2848
2974
|
lineHeight: 18,
|
|
2849
2975
|
gap: 4,
|
|
2850
2976
|
iconSize: 18,
|
|
2851
|
-
radius:
|
|
2977
|
+
radius: shape.tag.md.borderRadius,
|
|
2852
2978
|
borderWidth: 1
|
|
2853
2979
|
},
|
|
2854
2980
|
sm: {
|
|
@@ -2858,7 +2984,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2858
2984
|
lineHeight: 16,
|
|
2859
2985
|
gap: 4,
|
|
2860
2986
|
iconSize: 16,
|
|
2861
|
-
radius:
|
|
2987
|
+
radius: shape.tag.sm.borderRadius,
|
|
2862
2988
|
borderWidth: 1
|
|
2863
2989
|
},
|
|
2864
2990
|
xs: {
|
|
@@ -2868,7 +2994,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2868
2994
|
lineHeight: 14,
|
|
2869
2995
|
gap: 4,
|
|
2870
2996
|
iconSize: 14,
|
|
2871
|
-
radius:
|
|
2997
|
+
radius: shape.tag.xs.borderRadius,
|
|
2872
2998
|
borderWidth: 1
|
|
2873
2999
|
}
|
|
2874
3000
|
};
|
|
@@ -2934,11 +3060,11 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2934
3060
|
xl: {
|
|
2935
3061
|
height: 64,
|
|
2936
3062
|
containerPadding: 4,
|
|
2937
|
-
containerRadius:
|
|
3063
|
+
containerRadius: shape.segmented.xl.borderRadius,
|
|
2938
3064
|
itemHeight: 56,
|
|
2939
3065
|
itemPaddingHorizontal: 20,
|
|
2940
3066
|
itemPaddingVertical: 10,
|
|
2941
|
-
itemRadius:
|
|
3067
|
+
itemRadius: shape.segmentedItem.xl.borderRadius,
|
|
2942
3068
|
fontSize: 20,
|
|
2943
3069
|
lineHeight: 22,
|
|
2944
3070
|
iconSize: 24,
|
|
@@ -2947,11 +3073,11 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2947
3073
|
lg: {
|
|
2948
3074
|
height: 56,
|
|
2949
3075
|
containerPadding: 4,
|
|
2950
|
-
containerRadius:
|
|
3076
|
+
containerRadius: shape.segmented.lg.borderRadius,
|
|
2951
3077
|
itemHeight: 48,
|
|
2952
3078
|
itemPaddingHorizontal: 20,
|
|
2953
3079
|
itemPaddingVertical: 10,
|
|
2954
|
-
itemRadius:
|
|
3080
|
+
itemRadius: shape.segmentedItem.lg.borderRadius,
|
|
2955
3081
|
fontSize: 18,
|
|
2956
3082
|
lineHeight: 20,
|
|
2957
3083
|
iconSize: 24,
|
|
@@ -2960,11 +3086,11 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2960
3086
|
md: {
|
|
2961
3087
|
height: 48,
|
|
2962
3088
|
containerPadding: 4,
|
|
2963
|
-
containerRadius:
|
|
3089
|
+
containerRadius: shape.segmented.md.borderRadius,
|
|
2964
3090
|
itemHeight: 40,
|
|
2965
3091
|
itemPaddingHorizontal: 16,
|
|
2966
3092
|
itemPaddingVertical: 8,
|
|
2967
|
-
itemRadius:
|
|
3093
|
+
itemRadius: shape.segmentedItem.md.borderRadius,
|
|
2968
3094
|
fontSize: 16,
|
|
2969
3095
|
lineHeight: 18,
|
|
2970
3096
|
iconSize: 24,
|
|
@@ -2973,11 +3099,11 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2973
3099
|
sm: {
|
|
2974
3100
|
height: 40,
|
|
2975
3101
|
containerPadding: 4,
|
|
2976
|
-
containerRadius:
|
|
3102
|
+
containerRadius: shape.segmented.sm.borderRadius,
|
|
2977
3103
|
itemHeight: 32,
|
|
2978
3104
|
itemPaddingHorizontal: 12,
|
|
2979
3105
|
itemPaddingVertical: 6,
|
|
2980
|
-
itemRadius:
|
|
3106
|
+
itemRadius: shape.segmentedItem.sm.borderRadius,
|
|
2981
3107
|
fontSize: 14,
|
|
2982
3108
|
lineHeight: 16,
|
|
2983
3109
|
iconSize: 20,
|
|
@@ -2991,10 +3117,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
2991
3117
|
xl: {
|
|
2992
3118
|
height: 64,
|
|
2993
3119
|
containerPadding: 4,
|
|
2994
|
-
containerRadius: 4,
|
|
2995
3120
|
itemPaddingHorizontal: 16,
|
|
2996
3121
|
itemPaddingVertical: 18,
|
|
2997
|
-
itemRadius: 2,
|
|
2998
3122
|
fontSize: 20,
|
|
2999
3123
|
lineHeight: 22,
|
|
3000
3124
|
iconSize: 24,
|
|
@@ -3003,10 +3127,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3003
3127
|
lg: {
|
|
3004
3128
|
height: 56,
|
|
3005
3129
|
containerPadding: 4,
|
|
3006
|
-
containerRadius: 4,
|
|
3007
3130
|
itemPaddingHorizontal: 16,
|
|
3008
3131
|
itemPaddingVertical: 14,
|
|
3009
|
-
itemRadius: 2,
|
|
3010
3132
|
fontSize: 18,
|
|
3011
3133
|
lineHeight: 20,
|
|
3012
3134
|
iconSize: 24,
|
|
@@ -3015,10 +3137,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3015
3137
|
md: {
|
|
3016
3138
|
height: 48,
|
|
3017
3139
|
containerPadding: 4,
|
|
3018
|
-
containerRadius: 4,
|
|
3019
3140
|
itemPaddingHorizontal: 12,
|
|
3020
3141
|
itemPaddingVertical: 11,
|
|
3021
|
-
itemRadius: 2,
|
|
3022
3142
|
fontSize: 16,
|
|
3023
3143
|
lineHeight: 18,
|
|
3024
3144
|
iconSize: 24,
|
|
@@ -3027,10 +3147,8 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3027
3147
|
sm: {
|
|
3028
3148
|
height: 40,
|
|
3029
3149
|
containerPadding: 3,
|
|
3030
|
-
containerRadius: 2,
|
|
3031
3150
|
itemPaddingHorizontal: 12,
|
|
3032
3151
|
itemPaddingVertical: 8,
|
|
3033
|
-
itemRadius: 2,
|
|
3034
3152
|
fontSize: 14,
|
|
3035
3153
|
lineHeight: 16,
|
|
3036
3154
|
iconSize: 20,
|
|
@@ -3048,7 +3166,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3048
3166
|
fontSize: 20,
|
|
3049
3167
|
lineHeight: 22,
|
|
3050
3168
|
gap: 8,
|
|
3051
|
-
borderRadius:
|
|
3169
|
+
borderRadius: radiusScale["50"]
|
|
3052
3170
|
},
|
|
3053
3171
|
lg: {
|
|
3054
3172
|
height: 56,
|
|
@@ -3057,7 +3175,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3057
3175
|
fontSize: 18,
|
|
3058
3176
|
lineHeight: 20,
|
|
3059
3177
|
gap: 8,
|
|
3060
|
-
borderRadius:
|
|
3178
|
+
borderRadius: radiusScale["50"]
|
|
3061
3179
|
},
|
|
3062
3180
|
md: {
|
|
3063
3181
|
height: 48,
|
|
@@ -3066,7 +3184,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3066
3184
|
fontSize: 16,
|
|
3067
3185
|
lineHeight: 18,
|
|
3068
3186
|
gap: 8,
|
|
3069
|
-
borderRadius:
|
|
3187
|
+
borderRadius: radiusScale["25"]
|
|
3070
3188
|
},
|
|
3071
3189
|
sm: {
|
|
3072
3190
|
height: 40,
|
|
@@ -3075,7 +3193,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3075
3193
|
fontSize: 14,
|
|
3076
3194
|
lineHeight: 16,
|
|
3077
3195
|
gap: 4,
|
|
3078
|
-
borderRadius:
|
|
3196
|
+
borderRadius: radiusScale["25"]
|
|
3079
3197
|
}
|
|
3080
3198
|
};
|
|
3081
3199
|
return configs[size];
|
|
@@ -3119,7 +3237,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3119
3237
|
messageSize: 14,
|
|
3120
3238
|
iconSize: 20,
|
|
3121
3239
|
iconWrapperSize: 32,
|
|
3122
|
-
radius:
|
|
3240
|
+
radius: shape.toast.borderRadius
|
|
3123
3241
|
},
|
|
3124
3242
|
inline: {
|
|
3125
3243
|
width: "100%",
|
|
@@ -3130,7 +3248,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3130
3248
|
messageSize: 14,
|
|
3131
3249
|
iconSize: 20,
|
|
3132
3250
|
iconWrapperSize: 32,
|
|
3133
|
-
radius:
|
|
3251
|
+
radius: shape.modal.borderRadius
|
|
3134
3252
|
}
|
|
3135
3253
|
};
|
|
3136
3254
|
return configs[type];
|
|
@@ -3139,7 +3257,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3139
3257
|
minHeight: 66,
|
|
3140
3258
|
iconFrameWidth: 54,
|
|
3141
3259
|
iconSize: 24,
|
|
3142
|
-
borderRadius:
|
|
3260
|
+
borderRadius: radiusScale["100"],
|
|
3143
3261
|
bodyPaddingHorizontal: 16,
|
|
3144
3262
|
bodyPaddingVertical: 12,
|
|
3145
3263
|
textGap: 2,
|
|
@@ -3310,7 +3428,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3310
3428
|
},
|
|
3311
3429
|
modal: () => {
|
|
3312
3430
|
return {
|
|
3313
|
-
borderRadius:
|
|
3431
|
+
borderRadius: shape.modal.borderRadius,
|
|
3314
3432
|
headerPadding: "28px 24px 0",
|
|
3315
3433
|
contentPadding: 24,
|
|
3316
3434
|
headerButtonSize: "xs",
|
|
@@ -3447,7 +3565,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3447
3565
|
minHeight: 64,
|
|
3448
3566
|
paddingHorizontal: 12,
|
|
3449
3567
|
paddingVertical: 8,
|
|
3450
|
-
borderRadius:
|
|
3568
|
+
borderRadius: shape.toast.borderRadius,
|
|
3451
3569
|
gap: 12,
|
|
3452
3570
|
iconSize: 24,
|
|
3453
3571
|
closeButtonSize: 24,
|
|
@@ -3468,7 +3586,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3468
3586
|
lineHeight: 22,
|
|
3469
3587
|
iconSize: 24,
|
|
3470
3588
|
gap: 6,
|
|
3471
|
-
borderRadius:
|
|
3589
|
+
borderRadius: shape.toggleButtonGroup.xl.borderRadius,
|
|
3472
3590
|
itemGap: 8
|
|
3473
3591
|
},
|
|
3474
3592
|
lg: {
|
|
@@ -3478,7 +3596,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3478
3596
|
lineHeight: 20,
|
|
3479
3597
|
iconSize: 24,
|
|
3480
3598
|
gap: 4,
|
|
3481
|
-
borderRadius:
|
|
3599
|
+
borderRadius: shape.toggleButtonGroup.lg.borderRadius,
|
|
3482
3600
|
itemGap: 8
|
|
3483
3601
|
},
|
|
3484
3602
|
md: {
|
|
@@ -3488,7 +3606,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3488
3606
|
lineHeight: 18,
|
|
3489
3607
|
iconSize: 24,
|
|
3490
3608
|
gap: 4,
|
|
3491
|
-
borderRadius:
|
|
3609
|
+
borderRadius: shape.toggleButtonGroup.md.borderRadius,
|
|
3492
3610
|
itemGap: 8
|
|
3493
3611
|
},
|
|
3494
3612
|
sm: {
|
|
@@ -3498,7 +3616,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3498
3616
|
lineHeight: 16,
|
|
3499
3617
|
iconSize: 24,
|
|
3500
3618
|
gap: 2,
|
|
3501
|
-
borderRadius:
|
|
3619
|
+
borderRadius: shape.toggleButtonGroup.sm.borderRadius,
|
|
3502
3620
|
itemGap: 4
|
|
3503
3621
|
},
|
|
3504
3622
|
xs: {
|
|
@@ -3508,7 +3626,7 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
|
|
|
3508
3626
|
lineHeight: 16,
|
|
3509
3627
|
iconSize: 24,
|
|
3510
3628
|
gap: 2,
|
|
3511
|
-
borderRadius:
|
|
3629
|
+
borderRadius: shape.toggleButtonGroup.xs.borderRadius,
|
|
3512
3630
|
itemGap: 4
|
|
3513
3631
|
}
|
|
3514
3632
|
};
|
|
@@ -3639,9 +3757,12 @@ var useModalId = () => (0, import_react3.useContext)(ModalIdContext);
|
|
|
3639
3757
|
lineHeightDisplay,
|
|
3640
3758
|
lineHeightText,
|
|
3641
3759
|
radius,
|
|
3760
|
+
radiusScale,
|
|
3642
3761
|
responsiveTypographyScale,
|
|
3643
3762
|
shadow,
|
|
3763
|
+
shape,
|
|
3644
3764
|
spacing,
|
|
3765
|
+
stroke,
|
|
3645
3766
|
themeConfig,
|
|
3646
3767
|
typography,
|
|
3647
3768
|
typographyTokens,
|