@xsolla/xui-core 0.156.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.mjs CHANGED
@@ -101,7 +101,7 @@ var pentagram_dark_default = {
101
101
  },
102
102
  layer: {
103
103
  scrim: "rgba(0, 0, 0, 0.5)",
104
- float: "rgba(0, 0, 0, 0.5)"
104
+ float: "rgba(0, 0, 0, 0.8)"
105
105
  },
106
106
  control: {
107
107
  brand: {
@@ -197,9 +197,9 @@ var pentagram_dark_default = {
197
197
  borderPress: "rgba(255, 255, 255, 0)"
198
198
  },
199
199
  secondary: {
200
- bg: "rgba(80, 49, 232, 0.4)",
201
- bgHover: "rgba(149, 128, 255, 0.4)",
202
- bgPress: "rgba(80, 49, 232, 0.4)",
200
+ bg: "#22136c",
201
+ bgHover: "#301b98",
202
+ bgPress: "#140b41",
203
203
  border: "#7055f6",
204
204
  borderHover: "#9580ff",
205
205
  borderPress: "rgba(255, 255, 255, 0)"
@@ -239,11 +239,11 @@ var pentagram_dark_default = {
239
239
  borderPress: "rgba(255, 255, 255, 0)"
240
240
  },
241
241
  secondary: {
242
- bg: "rgba(232, 79, 48, 0.4)",
243
- bgHover: "rgba(246, 112, 85, 0.4)",
244
- bgPress: "rgba(195, 61, 34, 0.4)",
245
- border: "rgba(246, 112, 85, 0.32)",
246
- borderHover: "rgba(246, 112, 85, 0.32)",
242
+ bg: "#6c2213",
243
+ bgHover: "#98301b",
244
+ bgPress: "#41140b",
245
+ border: "#98301b",
246
+ borderHover: "#c33d22",
247
247
  borderPress: "rgba(255, 255, 255, 0)"
248
248
  },
249
249
  tertiary: {
@@ -281,7 +281,7 @@ var pentagram_dark_default = {
281
281
  textDisable: "rgba(255, 255, 255, 0.36)"
282
282
  },
283
283
  focus: {
284
- bg: "rgba(0, 0, 0, 0.5)",
284
+ bg: "rgba(0, 0, 0, 0.8)",
285
285
  border: "#31cae8"
286
286
  },
287
287
  check: {
@@ -315,7 +315,11 @@ var pentagram_dark_default = {
315
315
  knob: {
316
316
  bg: "#80eaff",
317
317
  bgHover: "#b2f2ff",
318
- bgInactive: "#ffffff"
318
+ bgActive: "#80eaff",
319
+ bgActiveHover: "#b2f2ff",
320
+ bgInactive: "#ffffff",
321
+ bgInactiveHover: "#f4f5f6",
322
+ bgDisable: "rgba(255, 255, 255, 0.4)"
319
323
  },
320
324
  text: {
321
325
  primary: "#ffffff",
@@ -359,8 +363,8 @@ var pentagram_dark_default = {
359
363
  id: {
360
364
  bg: "#34474b",
361
365
  bgSeries: "#000000",
362
- textSeries: "#4b6368",
363
- textNumber: "#000000",
366
+ textSeries: "#b7c5c8",
367
+ textNumber: "#b7c5c8",
364
368
  textCompact: "rgba(255, 255, 255, 0.48)"
365
369
  },
366
370
  subentity: {
@@ -373,6 +377,9 @@ var pentagram_dark_default = {
373
377
  textCompact: "rgba(255, 255, 255, 0.48)"
374
378
  }
375
379
  },
380
+ toast: {
381
+ bg: "#34474b"
382
+ },
376
383
  toggleButton: {
377
384
  bg: "rgba(178, 242, 255, 0.1)",
378
385
  bgHover: "rgba(178, 242, 255, 0.15)",
@@ -439,7 +446,7 @@ var pentagram_light_default = {
439
446
  secondary: "rgba(0, 0, 0, 0.75)",
440
447
  tertiary: "rgba(0, 0, 0, 0.6)",
441
448
  brand: {
442
- primary: "#22a8c3",
449
+ primary: "#1b8398",
443
450
  secondary: "#31cae8"
444
451
  },
445
452
  brandExtra: {
@@ -595,9 +602,9 @@ var pentagram_light_default = {
595
602
  borderPress: "rgba(255, 255, 255, 0)"
596
603
  },
597
604
  secondary: {
598
- bg: "rgba(80, 49, 232, 0.4)",
599
- bgHover: "rgba(149, 128, 255, 0.4)",
600
- bgPress: "rgba(80, 49, 232, 0.4)",
605
+ bg: "#bfb2ff",
606
+ bgHover: "#d4ccff",
607
+ bgPress: "#9580ff",
601
608
  border: "#9580ff",
602
609
  borderHover: "#bfb2ff",
603
610
  borderPress: "rgba(255, 255, 255, 0)"
@@ -637,11 +644,11 @@ var pentagram_light_default = {
637
644
  borderPress: "rgba(255, 255, 255, 0)"
638
645
  },
639
646
  secondary: {
640
- bg: "rgba(232, 79, 48, 0.4)",
641
- bgHover: "rgba(246, 112, 85, 0.4)",
642
- bgPress: "rgba(195, 61, 34, 0.4)",
643
- border: "rgba(246, 112, 85, 0.32)",
644
- borderHover: "rgba(246, 112, 85, 0.32)",
647
+ bg: "#ffbfb2",
648
+ bgHover: "#ffd5cc",
649
+ bgPress: "#ff9580",
650
+ border: "#ff9580",
651
+ borderHover: "#ffbfb2",
645
652
  borderPress: "rgba(255, 255, 255, 0)"
646
653
  },
647
654
  tertiary: {
@@ -683,13 +690,13 @@ var pentagram_light_default = {
683
690
  border: "#31cae8"
684
691
  },
685
692
  check: {
686
- bg: "#ccf6ff",
687
- bgHover: "#e5fbff",
693
+ bg: "#233134",
694
+ bgHover: "#4b6368",
688
695
  bgDisable: "rgba(0, 0, 0, 0.25)",
689
- border: "#80eaff",
690
- borderHover: "#b2f2ff",
696
+ border: "#233134",
697
+ borderHover: "#4b6368",
691
698
  borderDisable: "rgba(0, 0, 0, 0)",
692
- icon: "#000000"
699
+ icon: "#ffffff"
693
700
  },
694
701
  faint: {
695
702
  bg: "rgba(0, 0, 0, 0.15)",
@@ -698,22 +705,26 @@ var pentagram_light_default = {
698
705
  borderHover: "rgba(0, 0, 0, 0.15)"
699
706
  },
700
707
  slider: {
701
- bg: "#80eaff",
702
- bgHover: "#b2f2ff",
708
+ bg: "#233134",
709
+ bgHover: "#4b6368",
703
710
  bgDisable: "#cccccc"
704
711
  },
705
712
  switch: {
706
- bg: "#ccf6ff",
707
- bgHover: "#e5fbff",
713
+ bg: "#233134",
714
+ bgHover: "#4b6368",
708
715
  bgDisable: "rgba(0, 0, 0, 0.25)",
709
- border: "#80eaff",
710
- borderHover: "#b2f2ff",
716
+ border: "#233134",
717
+ borderHover: "#4b6368",
711
718
  borderDisable: "rgba(0, 0, 0, 0)"
712
719
  },
713
720
  knob: {
714
- bg: "#000000",
715
- bgHover: "#233134",
716
- bgInactive: "#000000"
721
+ bg: "#233134",
722
+ bgHover: "#4b6368",
723
+ bgActive: "#ffffff",
724
+ bgActiveHover: "#f4f5f6",
725
+ bgInactive: "#ffffff",
726
+ bgInactiveHover: "#f4f5f6",
727
+ bgDisable: "rgba(0, 0, 0, 0.3)"
717
728
  },
718
729
  text: {
719
730
  primary: "#000000",
@@ -771,17 +782,20 @@ var pentagram_light_default = {
771
782
  textCompact: "rgba(0, 0, 0, 0.48)"
772
783
  }
773
784
  },
785
+ toast: {
786
+ bg: "#34474b"
787
+ },
774
788
  toggleButton: {
775
789
  bg: "rgba(0, 0, 0, 0.08)",
776
790
  bgHover: "rgba(0, 0, 0, 0.15)",
777
- bgActive: "#ccf6ff",
791
+ bgActive: "#233134",
778
792
  bgDisable: "rgba(0, 0, 0, 0.2)",
779
793
  border: "rgba(0, 0, 0, 0.1)",
780
794
  borderHover: "rgba(0, 0, 0, 0.15)",
781
- borderActive: "#80eaff",
795
+ borderActive: "#233134",
782
796
  borderDisable: "rgba(0, 0, 0, 0)",
783
797
  text: "#000000",
784
- textActive: "#000000",
798
+ textActive: "#ffffff",
785
799
  textDisable: "rgba(0, 0, 0, 0.36)"
786
800
  },
787
801
  appButton: {
@@ -1111,7 +1125,11 @@ var ltg_dark_default = {
1111
1125
  knob: {
1112
1126
  bg: "#ffffff",
1113
1127
  bgHover: "#f6f8f9",
1114
- bgInactive: "#ffffff"
1128
+ bgActive: "#ffffff",
1129
+ bgActiveHover: "#f6f8f9",
1130
+ bgInactive: "#ffffff",
1131
+ bgInactiveHover: "#f6f8f9",
1132
+ bgDisable: "#ffffff"
1115
1133
  },
1116
1134
  text: {
1117
1135
  primary: "#ffffff",
@@ -1155,8 +1173,8 @@ var ltg_dark_default = {
1155
1173
  id: {
1156
1174
  bg: "#d7dee0",
1157
1175
  bgSeries: "#000000",
1158
- textSeries: "#d7dee0",
1159
- textNumber: "#000000",
1176
+ textSeries: "#b7c5c8",
1177
+ textNumber: "#b7c5c8",
1160
1178
  textCompact: "rgba(255, 255, 255, 0.48)"
1161
1179
  },
1162
1180
  subentity: {
@@ -1169,6 +1187,9 @@ var ltg_dark_default = {
1169
1187
  textCompact: "rgba(255, 255, 255, 0.48)"
1170
1188
  }
1171
1189
  },
1190
+ toast: {
1191
+ bg: "#233134"
1192
+ },
1172
1193
  toggleButton: {
1173
1194
  bg: "rgba(255, 255, 255, 0.1)",
1174
1195
  bgHover: "rgba(255, 255, 255, 0.15)",
@@ -1215,6 +1236,7 @@ var spacing = {
1215
1236
  var radius = {
1216
1237
  button: 4,
1217
1238
  card: 12,
1239
+ contextMenu: 8,
1218
1240
  input: 4,
1219
1241
  tagSmall: 4,
1220
1242
  tagMedium: 6,
@@ -1230,7 +1252,8 @@ var shadow = {
1230
1252
  surface: "0px 1px 2px rgba(7, 7, 8, 0.2), 0px 2px 6px 2px rgba(7, 7, 8, 0.1)",
1231
1253
  surfaceHover: "0px 4px 8px 3px rgba(7, 7, 8, 0.1), 0px 1px 3px rgba(7, 7, 8, 0.2)",
1232
1254
  popover: "0px 6px 10px 4px rgba(7, 7, 8, 0.1), 0px 2px 3px rgba(7, 7, 8, 0.2)",
1233
- modal: "0px 8px 12px 6px rgba(7, 7, 8, 0.1), 0px 4px 4px rgba(7, 7, 8, 0.2)"
1255
+ modal: "0px 8px 12px 6px rgba(7, 7, 8, 0.1), 0px 4px 4px rgba(7, 7, 8, 0.2)",
1256
+ contextMenu: "0px 4px 12px rgba(0, 0, 0, 0.15)"
1234
1257
  };
1235
1258
 
1236
1259
  // src/tokens/fonts.ts
@@ -1307,11 +1330,11 @@ var typographyTokens = {
1307
1330
  },
1308
1331
  basic: {
1309
1332
  display: {
1310
- fontSize: 48,
1311
- lineHeight: "48px",
1312
- fontWeight: 800,
1313
- scaleStep: "550",
1314
- lineHeightCategory: "display"
1333
+ fontSize: 28,
1334
+ lineHeight: "36px",
1335
+ fontWeight: 500,
1336
+ scaleStep: "300",
1337
+ lineHeightCategory: "compact"
1315
1338
  },
1316
1339
  "body-lg": {
1317
1340
  fontSize: 18,
@@ -2253,26 +2276,29 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
2253
2276
  const configs = {
2254
2277
  xl: {
2255
2278
  size: 24,
2279
+ iconSize: 10,
2256
2280
  fontSize: 20,
2257
2281
  lineHeight: 22,
2258
2282
  descriptionFontSize: 18,
2259
2283
  descriptionLineHeight: 20,
2260
2284
  labelGap: 12,
2261
2285
  textGap: 4,
2262
- borderWidth: 2
2286
+ borderWidth: 1
2263
2287
  },
2264
2288
  lg: {
2265
2289
  size: 20,
2290
+ iconSize: 8,
2266
2291
  fontSize: 18,
2267
2292
  lineHeight: 20,
2268
2293
  descriptionFontSize: 16,
2269
2294
  descriptionLineHeight: 18,
2270
2295
  labelGap: 10,
2271
2296
  textGap: 2,
2272
- borderWidth: 2
2297
+ borderWidth: 1
2273
2298
  },
2274
2299
  md: {
2275
2300
  size: 18,
2301
+ iconSize: 8,
2276
2302
  fontSize: 16,
2277
2303
  lineHeight: 18,
2278
2304
  descriptionFontSize: 14,
@@ -2283,11 +2309,12 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
2283
2309
  },
2284
2310
  sm: {
2285
2311
  size: 16,
2312
+ iconSize: 6,
2286
2313
  fontSize: 14,
2287
2314
  lineHeight: 16,
2288
2315
  descriptionFontSize: 12,
2289
2316
  descriptionLineHeight: 14,
2290
- labelGap: 8,
2317
+ labelGap: 6,
2291
2318
  textGap: 0,
2292
2319
  borderWidth: 1
2293
2320
  }
@@ -3119,75 +3146,95 @@ var themeConfig = (mode = "dark", productContext = defaultProductContext) => {
3119
3146
  contextMenu: (size) => {
3120
3147
  const configs = {
3121
3148
  xl: {
3122
- paddingVertical: 8,
3149
+ paddingVertical: 0,
3123
3150
  itemPaddingHorizontal: 16,
3124
3151
  itemPaddingVertical: 18,
3125
3152
  fontSize: 20,
3126
- lineHeight: 22,
3153
+ lineHeight: 26,
3127
3154
  descriptionFontSize: 18,
3128
3155
  iconSize: 18,
3129
3156
  gap: 12,
3130
3157
  minWidth: 276,
3158
+ panelWidth: 320,
3159
+ statusDotSize: 12,
3160
+ iconWrapperSize: 40,
3161
+ triggerOffset: 4,
3162
+ borderRadius: 8,
3131
3163
  // Search sizing from Figma
3132
3164
  searchPaddingHorizontal: 16,
3133
3165
  searchPaddingVertical: 18,
3134
3166
  searchGap: 18,
3135
3167
  searchFontSize: 20,
3136
- searchLineHeight: 22,
3168
+ searchLineHeight: 26,
3137
3169
  searchIconSize: 18
3138
3170
  },
3139
3171
  lg: {
3140
- paddingVertical: 8,
3172
+ paddingVertical: 0,
3141
3173
  itemPaddingHorizontal: 14,
3142
3174
  itemPaddingVertical: 14,
3143
3175
  fontSize: 18,
3144
- lineHeight: 20,
3176
+ lineHeight: 24,
3145
3177
  descriptionFontSize: 16,
3146
3178
  iconSize: 18,
3147
3179
  gap: 10,
3148
3180
  minWidth: 220,
3181
+ panelWidth: 296,
3182
+ statusDotSize: 10,
3183
+ iconWrapperSize: 36,
3184
+ triggerOffset: 4,
3185
+ borderRadius: 8,
3149
3186
  // Search sizing from Figma
3150
3187
  searchPaddingHorizontal: 14,
3151
3188
  searchPaddingVertical: 14,
3152
3189
  searchGap: 14,
3153
3190
  searchFontSize: 18,
3154
- searchLineHeight: 20,
3191
+ searchLineHeight: 24,
3155
3192
  searchIconSize: 18
3156
3193
  },
3157
3194
  md: {
3158
- paddingVertical: 8,
3195
+ paddingVertical: 0,
3159
3196
  itemPaddingHorizontal: 12,
3160
3197
  itemPaddingVertical: 11,
3161
3198
  fontSize: 16,
3162
- lineHeight: 18,
3199
+ lineHeight: 20,
3163
3200
  descriptionFontSize: 14,
3164
3201
  iconSize: 18,
3165
3202
  gap: 8,
3166
3203
  minWidth: 172,
3204
+ panelWidth: 272,
3205
+ statusDotSize: 8,
3206
+ iconWrapperSize: 32,
3207
+ triggerOffset: 4,
3208
+ borderRadius: 8,
3167
3209
  // Search sizing from Figma
3168
3210
  searchPaddingHorizontal: 12,
3169
3211
  searchPaddingVertical: 11,
3170
3212
  searchGap: 10,
3171
3213
  searchFontSize: 16,
3172
- searchLineHeight: 18,
3214
+ searchLineHeight: 20,
3173
3215
  searchIconSize: 18
3174
3216
  },
3175
3217
  sm: {
3176
- paddingVertical: 8,
3218
+ paddingVertical: 0,
3177
3219
  itemPaddingHorizontal: 10,
3178
3220
  itemPaddingVertical: 8,
3179
3221
  fontSize: 14,
3180
- lineHeight: 16,
3222
+ lineHeight: 18,
3181
3223
  descriptionFontSize: 12,
3182
3224
  iconSize: 18,
3183
3225
  gap: 8,
3184
3226
  minWidth: 132,
3227
+ panelWidth: 248,
3228
+ statusDotSize: 6,
3229
+ iconWrapperSize: 24,
3230
+ triggerOffset: 4,
3231
+ borderRadius: 4,
3185
3232
  // Search sizing from Figma
3186
3233
  searchPaddingHorizontal: 10,
3187
3234
  searchPaddingVertical: 7,
3188
3235
  searchGap: 6,
3189
3236
  searchFontSize: 14,
3190
- searchLineHeight: 16,
3237
+ searchLineHeight: 18,
3191
3238
  searchIconSize: 18
3192
3239
  }
3193
3240
  };