@xsolla/xui-core 0.157.0 → 0.158.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.js CHANGED
@@ -169,7 +169,7 @@ var pentagram_dark_default = {
169
169
  },
170
170
  layer: {
171
171
  scrim: "rgba(0, 0, 0, 0.5)",
172
- float: "rgba(0, 0, 0, 0.5)"
172
+ float: "rgba(0, 0, 0, 0.8)"
173
173
  },
174
174
  control: {
175
175
  brand: {
@@ -265,9 +265,9 @@ var pentagram_dark_default = {
265
265
  borderPress: "rgba(255, 255, 255, 0)"
266
266
  },
267
267
  secondary: {
268
- bg: "rgba(80, 49, 232, 0.4)",
269
- bgHover: "rgba(149, 128, 255, 0.4)",
270
- bgPress: "rgba(80, 49, 232, 0.4)",
268
+ bg: "#22136c",
269
+ bgHover: "#301b98",
270
+ bgPress: "#140b41",
271
271
  border: "#7055f6",
272
272
  borderHover: "#9580ff",
273
273
  borderPress: "rgba(255, 255, 255, 0)"
@@ -307,11 +307,11 @@ var pentagram_dark_default = {
307
307
  borderPress: "rgba(255, 255, 255, 0)"
308
308
  },
309
309
  secondary: {
310
- bg: "rgba(232, 79, 48, 0.4)",
311
- bgHover: "rgba(246, 112, 85, 0.4)",
312
- bgPress: "rgba(195, 61, 34, 0.4)",
313
- border: "rgba(246, 112, 85, 0.32)",
314
- borderHover: "rgba(246, 112, 85, 0.32)",
310
+ bg: "#6c2213",
311
+ bgHover: "#98301b",
312
+ bgPress: "#41140b",
313
+ border: "#98301b",
314
+ borderHover: "#c33d22",
315
315
  borderPress: "rgba(255, 255, 255, 0)"
316
316
  },
317
317
  tertiary: {
@@ -349,7 +349,7 @@ var pentagram_dark_default = {
349
349
  textDisable: "rgba(255, 255, 255, 0.36)"
350
350
  },
351
351
  focus: {
352
- bg: "rgba(0, 0, 0, 0.5)",
352
+ bg: "rgba(0, 0, 0, 0.8)",
353
353
  border: "#31cae8"
354
354
  },
355
355
  check: {
@@ -383,7 +383,11 @@ var pentagram_dark_default = {
383
383
  knob: {
384
384
  bg: "#80eaff",
385
385
  bgHover: "#b2f2ff",
386
- bgInactive: "#ffffff"
386
+ bgActive: "#80eaff",
387
+ bgActiveHover: "#b2f2ff",
388
+ bgInactive: "#ffffff",
389
+ bgInactiveHover: "#f4f5f6",
390
+ bgDisable: "rgba(255, 255, 255, 0.4)"
387
391
  },
388
392
  text: {
389
393
  primary: "#ffffff",
@@ -427,8 +431,8 @@ var pentagram_dark_default = {
427
431
  id: {
428
432
  bg: "#34474b",
429
433
  bgSeries: "#000000",
430
- textSeries: "#4b6368",
431
- textNumber: "#000000",
434
+ textSeries: "#b7c5c8",
435
+ textNumber: "#b7c5c8",
432
436
  textCompact: "rgba(255, 255, 255, 0.48)"
433
437
  },
434
438
  subentity: {
@@ -441,6 +445,9 @@ var pentagram_dark_default = {
441
445
  textCompact: "rgba(255, 255, 255, 0.48)"
442
446
  }
443
447
  },
448
+ toast: {
449
+ bg: "#34474b"
450
+ },
444
451
  toggleButton: {
445
452
  bg: "rgba(178, 242, 255, 0.1)",
446
453
  bgHover: "rgba(178, 242, 255, 0.15)",
@@ -507,7 +514,7 @@ var pentagram_light_default = {
507
514
  secondary: "rgba(0, 0, 0, 0.75)",
508
515
  tertiary: "rgba(0, 0, 0, 0.6)",
509
516
  brand: {
510
- primary: "#22a8c3",
517
+ primary: "#1b8398",
511
518
  secondary: "#31cae8"
512
519
  },
513
520
  brandExtra: {
@@ -663,9 +670,9 @@ var pentagram_light_default = {
663
670
  borderPress: "rgba(255, 255, 255, 0)"
664
671
  },
665
672
  secondary: {
666
- bg: "rgba(80, 49, 232, 0.4)",
667
- bgHover: "rgba(149, 128, 255, 0.4)",
668
- bgPress: "rgba(80, 49, 232, 0.4)",
673
+ bg: "#bfb2ff",
674
+ bgHover: "#d4ccff",
675
+ bgPress: "#9580ff",
669
676
  border: "#9580ff",
670
677
  borderHover: "#bfb2ff",
671
678
  borderPress: "rgba(255, 255, 255, 0)"
@@ -705,11 +712,11 @@ var pentagram_light_default = {
705
712
  borderPress: "rgba(255, 255, 255, 0)"
706
713
  },
707
714
  secondary: {
708
- bg: "rgba(232, 79, 48, 0.4)",
709
- bgHover: "rgba(246, 112, 85, 0.4)",
710
- bgPress: "rgba(195, 61, 34, 0.4)",
711
- border: "rgba(246, 112, 85, 0.32)",
712
- borderHover: "rgba(246, 112, 85, 0.32)",
715
+ bg: "#ffbfb2",
716
+ bgHover: "#ffd5cc",
717
+ bgPress: "#ff9580",
718
+ border: "#ff9580",
719
+ borderHover: "#ffbfb2",
713
720
  borderPress: "rgba(255, 255, 255, 0)"
714
721
  },
715
722
  tertiary: {
@@ -751,13 +758,13 @@ var pentagram_light_default = {
751
758
  border: "#31cae8"
752
759
  },
753
760
  check: {
754
- bg: "#ccf6ff",
755
- bgHover: "#e5fbff",
761
+ bg: "#233134",
762
+ bgHover: "#4b6368",
756
763
  bgDisable: "rgba(0, 0, 0, 0.25)",
757
- border: "#80eaff",
758
- borderHover: "#b2f2ff",
764
+ border: "#233134",
765
+ borderHover: "#4b6368",
759
766
  borderDisable: "rgba(0, 0, 0, 0)",
760
- icon: "#000000"
767
+ icon: "#ffffff"
761
768
  },
762
769
  faint: {
763
770
  bg: "rgba(0, 0, 0, 0.15)",
@@ -766,22 +773,26 @@ var pentagram_light_default = {
766
773
  borderHover: "rgba(0, 0, 0, 0.15)"
767
774
  },
768
775
  slider: {
769
- bg: "#80eaff",
770
- bgHover: "#b2f2ff",
776
+ bg: "#233134",
777
+ bgHover: "#4b6368",
771
778
  bgDisable: "#cccccc"
772
779
  },
773
780
  switch: {
774
- bg: "#ccf6ff",
775
- bgHover: "#e5fbff",
781
+ bg: "#233134",
782
+ bgHover: "#4b6368",
776
783
  bgDisable: "rgba(0, 0, 0, 0.25)",
777
- border: "#80eaff",
778
- borderHover: "#b2f2ff",
784
+ border: "#233134",
785
+ borderHover: "#4b6368",
779
786
  borderDisable: "rgba(0, 0, 0, 0)"
780
787
  },
781
788
  knob: {
782
- bg: "#000000",
783
- bgHover: "#233134",
784
- bgInactive: "#000000"
789
+ bg: "#233134",
790
+ bgHover: "#4b6368",
791
+ bgActive: "#ffffff",
792
+ bgActiveHover: "#f4f5f6",
793
+ bgInactive: "#ffffff",
794
+ bgInactiveHover: "#f4f5f6",
795
+ bgDisable: "rgba(0, 0, 0, 0.3)"
785
796
  },
786
797
  text: {
787
798
  primary: "#000000",
@@ -839,17 +850,20 @@ var pentagram_light_default = {
839
850
  textCompact: "rgba(0, 0, 0, 0.48)"
840
851
  }
841
852
  },
853
+ toast: {
854
+ bg: "#34474b"
855
+ },
842
856
  toggleButton: {
843
857
  bg: "rgba(0, 0, 0, 0.08)",
844
858
  bgHover: "rgba(0, 0, 0, 0.15)",
845
- bgActive: "#ccf6ff",
859
+ bgActive: "#233134",
846
860
  bgDisable: "rgba(0, 0, 0, 0.2)",
847
861
  border: "rgba(0, 0, 0, 0.1)",
848
862
  borderHover: "rgba(0, 0, 0, 0.15)",
849
- borderActive: "#80eaff",
863
+ borderActive: "#233134",
850
864
  borderDisable: "rgba(0, 0, 0, 0)",
851
865
  text: "#000000",
852
- textActive: "#000000",
866
+ textActive: "#ffffff",
853
867
  textDisable: "rgba(0, 0, 0, 0.36)"
854
868
  },
855
869
  appButton: {
@@ -1179,7 +1193,11 @@ var ltg_dark_default = {
1179
1193
  knob: {
1180
1194
  bg: "#ffffff",
1181
1195
  bgHover: "#f6f8f9",
1182
- bgInactive: "#ffffff"
1196
+ bgActive: "#ffffff",
1197
+ bgActiveHover: "#f6f8f9",
1198
+ bgInactive: "#ffffff",
1199
+ bgInactiveHover: "#f6f8f9",
1200
+ bgDisable: "#ffffff"
1183
1201
  },
1184
1202
  text: {
1185
1203
  primary: "#ffffff",
@@ -1223,8 +1241,8 @@ var ltg_dark_default = {
1223
1241
  id: {
1224
1242
  bg: "#d7dee0",
1225
1243
  bgSeries: "#000000",
1226
- textSeries: "#d7dee0",
1227
- textNumber: "#000000",
1244
+ textSeries: "#b7c5c8",
1245
+ textNumber: "#b7c5c8",
1228
1246
  textCompact: "rgba(255, 255, 255, 0.48)"
1229
1247
  },
1230
1248
  subentity: {
@@ -1237,6 +1255,9 @@ var ltg_dark_default = {
1237
1255
  textCompact: "rgba(255, 255, 255, 0.48)"
1238
1256
  }
1239
1257
  },
1258
+ toast: {
1259
+ bg: "#233134"
1260
+ },
1240
1261
  toggleButton: {
1241
1262
  bg: "rgba(255, 255, 255, 0.1)",
1242
1263
  bgHover: "rgba(255, 255, 255, 0.15)",
@@ -1283,6 +1304,7 @@ var spacing = {
1283
1304
  var radius = {
1284
1305
  button: 4,
1285
1306
  card: 12,
1307
+ contextMenu: 8,
1286
1308
  input: 4,
1287
1309
  tagSmall: 4,
1288
1310
  tagMedium: 6,
@@ -1298,7 +1320,8 @@ var shadow = {
1298
1320
  surface: "0px 1px 2px rgba(7, 7, 8, 0.2), 0px 2px 6px 2px rgba(7, 7, 8, 0.1)",
1299
1321
  surfaceHover: "0px 4px 8px 3px rgba(7, 7, 8, 0.1), 0px 1px 3px rgba(7, 7, 8, 0.2)",
1300
1322
  popover: "0px 6px 10px 4px rgba(7, 7, 8, 0.1), 0px 2px 3px rgba(7, 7, 8, 0.2)",
1301
- modal: "0px 8px 12px 6px rgba(7, 7, 8, 0.1), 0px 4px 4px rgba(7, 7, 8, 0.2)"
1323
+ modal: "0px 8px 12px 6px rgba(7, 7, 8, 0.1), 0px 4px 4px rgba(7, 7, 8, 0.2)",
1324
+ contextMenu: "0px 4px 12px rgba(0, 0, 0, 0.15)"
1302
1325
  };
1303
1326
 
1304
1327
  // src/tokens/fonts.ts
@@ -1375,11 +1398,11 @@ var typographyTokens = {
1375
1398
  },
1376
1399
  basic: {
1377
1400
  display: {
1378
- fontSize: 48,
1379
- lineHeight: "48px",
1380
- fontWeight: 800,
1381
- scaleStep: "550",
1382
- lineHeightCategory: "display"
1401
+ fontSize: 28,
1402
+ lineHeight: "36px",
1403
+ fontWeight: 500,
1404
+ scaleStep: "300",
1405
+ lineHeightCategory: "compact"
1383
1406
  },
1384
1407
  "body-lg": {
1385
1408
  fontSize: 18,
@@ -2321,26 +2344,29 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
2321
2344
  const configs = {
2322
2345
  xl: {
2323
2346
  size: 24,
2347
+ iconSize: 10,
2324
2348
  fontSize: 20,
2325
2349
  lineHeight: 22,
2326
2350
  descriptionFontSize: 18,
2327
2351
  descriptionLineHeight: 20,
2328
2352
  labelGap: 12,
2329
2353
  textGap: 4,
2330
- borderWidth: 2
2354
+ borderWidth: 1
2331
2355
  },
2332
2356
  lg: {
2333
2357
  size: 20,
2358
+ iconSize: 8,
2334
2359
  fontSize: 18,
2335
2360
  lineHeight: 20,
2336
2361
  descriptionFontSize: 16,
2337
2362
  descriptionLineHeight: 18,
2338
2363
  labelGap: 10,
2339
2364
  textGap: 2,
2340
- borderWidth: 2
2365
+ borderWidth: 1
2341
2366
  },
2342
2367
  md: {
2343
2368
  size: 18,
2369
+ iconSize: 8,
2344
2370
  fontSize: 16,
2345
2371
  lineHeight: 18,
2346
2372
  descriptionFontSize: 14,
@@ -2351,11 +2377,12 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
2351
2377
  },
2352
2378
  sm: {
2353
2379
  size: 16,
2380
+ iconSize: 6,
2354
2381
  fontSize: 14,
2355
2382
  lineHeight: 16,
2356
2383
  descriptionFontSize: 12,
2357
2384
  descriptionLineHeight: 14,
2358
- labelGap: 8,
2385
+ labelGap: 6,
2359
2386
  textGap: 0,
2360
2387
  borderWidth: 1
2361
2388
  }
@@ -3187,75 +3214,95 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
3187
3214
  contextMenu: (size) => {
3188
3215
  const configs = {
3189
3216
  xl: {
3190
- paddingVertical: 8,
3217
+ paddingVertical: 0,
3191
3218
  itemPaddingHorizontal: 16,
3192
3219
  itemPaddingVertical: 18,
3193
3220
  fontSize: 20,
3194
- lineHeight: 22,
3221
+ lineHeight: 26,
3195
3222
  descriptionFontSize: 18,
3196
3223
  iconSize: 18,
3197
3224
  gap: 12,
3198
3225
  minWidth: 276,
3226
+ panelWidth: 320,
3227
+ statusDotSize: 12,
3228
+ iconWrapperSize: 40,
3229
+ triggerOffset: 4,
3230
+ borderRadius: 8,
3199
3231
  // Search sizing from Figma
3200
3232
  searchPaddingHorizontal: 16,
3201
3233
  searchPaddingVertical: 18,
3202
3234
  searchGap: 18,
3203
3235
  searchFontSize: 20,
3204
- searchLineHeight: 22,
3236
+ searchLineHeight: 26,
3205
3237
  searchIconSize: 18
3206
3238
  },
3207
3239
  lg: {
3208
- paddingVertical: 8,
3240
+ paddingVertical: 0,
3209
3241
  itemPaddingHorizontal: 14,
3210
3242
  itemPaddingVertical: 14,
3211
3243
  fontSize: 18,
3212
- lineHeight: 20,
3244
+ lineHeight: 24,
3213
3245
  descriptionFontSize: 16,
3214
3246
  iconSize: 18,
3215
3247
  gap: 10,
3216
3248
  minWidth: 220,
3249
+ panelWidth: 296,
3250
+ statusDotSize: 10,
3251
+ iconWrapperSize: 36,
3252
+ triggerOffset: 4,
3253
+ borderRadius: 8,
3217
3254
  // Search sizing from Figma
3218
3255
  searchPaddingHorizontal: 14,
3219
3256
  searchPaddingVertical: 14,
3220
3257
  searchGap: 14,
3221
3258
  searchFontSize: 18,
3222
- searchLineHeight: 20,
3259
+ searchLineHeight: 24,
3223
3260
  searchIconSize: 18
3224
3261
  },
3225
3262
  md: {
3226
- paddingVertical: 8,
3263
+ paddingVertical: 0,
3227
3264
  itemPaddingHorizontal: 12,
3228
3265
  itemPaddingVertical: 11,
3229
3266
  fontSize: 16,
3230
- lineHeight: 18,
3267
+ lineHeight: 20,
3231
3268
  descriptionFontSize: 14,
3232
3269
  iconSize: 18,
3233
3270
  gap: 8,
3234
3271
  minWidth: 172,
3272
+ panelWidth: 272,
3273
+ statusDotSize: 8,
3274
+ iconWrapperSize: 32,
3275
+ triggerOffset: 4,
3276
+ borderRadius: 8,
3235
3277
  // Search sizing from Figma
3236
3278
  searchPaddingHorizontal: 12,
3237
3279
  searchPaddingVertical: 11,
3238
3280
  searchGap: 10,
3239
3281
  searchFontSize: 16,
3240
- searchLineHeight: 18,
3282
+ searchLineHeight: 20,
3241
3283
  searchIconSize: 18
3242
3284
  },
3243
3285
  sm: {
3244
- paddingVertical: 8,
3286
+ paddingVertical: 0,
3245
3287
  itemPaddingHorizontal: 10,
3246
3288
  itemPaddingVertical: 8,
3247
3289
  fontSize: 14,
3248
- lineHeight: 16,
3290
+ lineHeight: 18,
3249
3291
  descriptionFontSize: 12,
3250
3292
  iconSize: 18,
3251
3293
  gap: 8,
3252
3294
  minWidth: 132,
3295
+ panelWidth: 248,
3296
+ statusDotSize: 6,
3297
+ iconWrapperSize: 24,
3298
+ triggerOffset: 4,
3299
+ borderRadius: 4,
3253
3300
  // Search sizing from Figma
3254
3301
  searchPaddingHorizontal: 10,
3255
3302
  searchPaddingVertical: 7,
3256
3303
  searchGap: 6,
3257
3304
  searchFontSize: 14,
3258
- searchLineHeight: 16,
3305
+ searchLineHeight: 18,
3259
3306
  searchIconSize: 18
3260
3307
  }
3261
3308
  };