@xsolla/xui-stepper 0.89.0 → 0.91.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/native/index.js CHANGED
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
 
30
20
  // src/index.tsx
@@ -38,7 +28,7 @@ __export(index_exports, {
38
28
  module.exports = __toCommonJS(index_exports);
39
29
 
40
30
  // src/Stepper.tsx
41
- var import_react6 = require("react");
31
+ var import_react3 = require("react");
42
32
 
43
33
  // ../primitives-native/src/Box.tsx
44
34
  var import_react_native = require("react-native");
@@ -272,14 +262,9 @@ var Spinner = ({
272
262
  };
273
263
  Spinner.displayName = "Spinner";
274
264
 
275
- // ../primitives-native/src/Icon.tsx
276
- var import_react = __toESM(require("react"));
265
+ // ../primitives-native/src/Divider.tsx
277
266
  var import_react_native4 = require("react-native");
278
267
  var import_jsx_runtime4 = require("react/jsx-runtime");
279
-
280
- // ../primitives-native/src/Divider.tsx
281
- var import_react_native5 = require("react-native");
282
- var import_jsx_runtime5 = require("react/jsx-runtime");
283
268
  var Divider = ({
284
269
  color,
285
270
  height,
@@ -298,227 +283,14 @@ var Divider = ({
298
283
  ...vertical ? { borderLeftWidth: typeof width === "number" ? width : 1 } : { borderTopWidth: typeof height === "number" ? height : 1 }
299
284
  }
300
285
  };
301
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_native5.View, { style });
302
- };
303
-
304
- // ../primitives-native/src/Input.tsx
305
- var import_react2 = require("react");
306
- var import_react_native6 = require("react-native");
307
- var import_jsx_runtime6 = require("react/jsx-runtime");
308
- var keyboardTypeMap = {
309
- text: "default",
310
- number: "numeric",
311
- email: "email-address",
312
- tel: "phone-pad",
313
- url: "url",
314
- decimal: "decimal-pad"
315
- };
316
- var inputModeToKeyboardType = {
317
- none: "default",
318
- text: "default",
319
- decimal: "decimal-pad",
320
- numeric: "number-pad",
321
- tel: "phone-pad",
322
- search: "default",
323
- email: "email-address",
324
- url: "url"
286
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_native4.View, { style });
325
287
  };
326
- var autoCompleteToTextContentType = {
327
- "one-time-code": "oneTimeCode",
328
- email: "emailAddress",
329
- username: "username",
330
- password: "password",
331
- "new-password": "newPassword",
332
- tel: "telephoneNumber",
333
- "postal-code": "postalCode",
334
- name: "name"
335
- };
336
- var InputPrimitive = (0, import_react2.forwardRef)(
337
- ({
338
- value,
339
- placeholder,
340
- onChange,
341
- onChangeText,
342
- onFocus,
343
- onBlur,
344
- onKeyDown,
345
- disabled,
346
- secureTextEntry,
347
- style,
348
- color,
349
- fontSize,
350
- placeholderTextColor,
351
- maxLength,
352
- type,
353
- inputMode,
354
- autoComplete,
355
- id,
356
- "aria-describedby": ariaDescribedBy,
357
- "aria-label": ariaLabel,
358
- "aria-disabled": ariaDisabled,
359
- "data-testid": dataTestId
360
- }, ref) => {
361
- const handleChangeText = (text) => {
362
- onChangeText?.(text);
363
- if (onChange) {
364
- const syntheticEvent = {
365
- target: { value: text },
366
- currentTarget: { value: text },
367
- type: "change",
368
- nativeEvent: { text },
369
- preventDefault: () => {
370
- },
371
- stopPropagation: () => {
372
- },
373
- isTrusted: false
374
- };
375
- onChange(syntheticEvent);
376
- }
377
- };
378
- const keyboardType = inputMode ? inputModeToKeyboardType[inputMode] || "default" : type ? keyboardTypeMap[type] || "default" : "default";
379
- const textContentType = autoComplete ? autoCompleteToTextContentType[autoComplete] : void 0;
380
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
381
- import_react_native6.TextInput,
382
- {
383
- ref,
384
- value,
385
- placeholder,
386
- onChangeText: handleChangeText,
387
- onFocus,
388
- onBlur,
389
- onKeyPress: (e) => {
390
- if (onKeyDown) {
391
- onKeyDown({
392
- key: e.nativeEvent.key,
393
- preventDefault: () => {
394
- }
395
- });
396
- }
397
- },
398
- editable: !disabled,
399
- secureTextEntry: secureTextEntry || type === "password",
400
- keyboardType,
401
- textContentType,
402
- style: [
403
- {
404
- color,
405
- fontSize: typeof fontSize === "number" ? fontSize : void 0,
406
- flex: 1,
407
- padding: 0,
408
- textAlign: style?.textAlign || "left"
409
- },
410
- style
411
- ],
412
- placeholderTextColor,
413
- maxLength,
414
- testID: dataTestId || id,
415
- accessibilityLabel: ariaLabel,
416
- accessibilityHint: ariaDescribedBy,
417
- accessibilityState: {
418
- disabled: disabled || ariaDisabled
419
- },
420
- accessible: true
421
- }
422
- );
423
- }
424
- );
425
- InputPrimitive.displayName = "InputPrimitive";
426
-
427
- // ../primitives-native/src/TextArea.tsx
428
- var import_react3 = require("react");
429
- var import_react_native7 = require("react-native");
430
- var import_jsx_runtime7 = require("react/jsx-runtime");
431
- var TextAreaPrimitive = (0, import_react3.forwardRef)(
432
- ({
433
- value,
434
- placeholder,
435
- onChange,
436
- onChangeText,
437
- onFocus,
438
- onBlur,
439
- onKeyDown,
440
- disabled,
441
- style,
442
- color,
443
- fontSize,
444
- placeholderTextColor,
445
- maxLength,
446
- rows,
447
- id,
448
- "aria-describedby": ariaDescribedBy,
449
- "aria-label": ariaLabel,
450
- "aria-disabled": ariaDisabled,
451
- "data-testid": dataTestId
452
- }, ref) => {
453
- const handleChangeText = (text) => {
454
- onChangeText?.(text);
455
- if (onChange) {
456
- const syntheticEvent = {
457
- target: { value: text },
458
- currentTarget: { value: text },
459
- type: "change",
460
- nativeEvent: { text },
461
- preventDefault: () => {
462
- },
463
- stopPropagation: () => {
464
- },
465
- isTrusted: false
466
- };
467
- onChange(syntheticEvent);
468
- }
469
- };
470
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
471
- import_react_native7.TextInput,
472
- {
473
- ref,
474
- value,
475
- placeholder,
476
- onChangeText: handleChangeText,
477
- onFocus,
478
- onBlur,
479
- onKeyPress: (e) => {
480
- if (onKeyDown) {
481
- onKeyDown({
482
- key: e.nativeEvent.key,
483
- preventDefault: () => {
484
- }
485
- });
486
- }
487
- },
488
- editable: !disabled,
489
- multiline: true,
490
- numberOfLines: rows || 4,
491
- style: [
492
- {
493
- color,
494
- fontSize: typeof fontSize === "number" ? fontSize : void 0,
495
- flex: 1,
496
- padding: 0,
497
- textAlignVertical: "top",
498
- textAlign: style?.textAlign || "left"
499
- },
500
- style
501
- ],
502
- placeholderTextColor,
503
- maxLength,
504
- testID: dataTestId || id,
505
- accessibilityLabel: ariaLabel,
506
- accessibilityHint: ariaDescribedBy,
507
- accessibilityState: {
508
- disabled: disabled || ariaDisabled
509
- },
510
- accessible: true
511
- }
512
- );
513
- }
514
- );
515
- TextAreaPrimitive.displayName = "TextAreaPrimitive";
516
288
 
517
289
  // src/Stepper.tsx
518
290
  var import_xui_core3 = require("@xsolla/xui-core");
519
291
 
520
292
  // src/Step.tsx
521
- var import_react5 = require("react");
293
+ var import_react2 = require("react");
522
294
  var import_xui_core2 = require("@xsolla/xui-core");
523
295
  var import_xui_icons = require("@xsolla/xui-icons");
524
296
 
@@ -563,7 +335,7 @@ var isWeb = () => {
563
335
 
564
336
  // src/StepTail.tsx
565
337
  var import_xui_core = require("@xsolla/xui-core");
566
- var import_jsx_runtime8 = require("react/jsx-runtime");
338
+ var import_jsx_runtime5 = require("react/jsx-runtime");
567
339
  var StepTail = ({
568
340
  variantUI,
569
341
  direction,
@@ -648,7 +420,7 @@ var StepTail = ({
648
420
  }
649
421
  const borderOffset = isHorizontal ? -(tailHeight / 2 + 0.5) : -3;
650
422
  if (isHorizontal) {
651
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
423
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
652
424
  Box,
653
425
  {
654
426
  position: "absolute",
@@ -663,7 +435,7 @@ var StepTail = ({
663
435
  }
664
436
  );
665
437
  }
666
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
438
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
667
439
  Box,
668
440
  {
669
441
  position: "absolute",
@@ -680,9 +452,9 @@ var StepTail = ({
680
452
  };
681
453
 
682
454
  // src/hooks/useStepHoverStyles.ts
683
- var import_react4 = require("react");
455
+ var import_react = require("react");
684
456
  var useStepHoverStyles = (variantUI, state, className, theme, isLast, disabled, noClick, palette) => {
685
- (0, import_react4.useEffect)(() => {
457
+ (0, import_react.useEffect)(() => {
686
458
  if (!isWeb()) {
687
459
  return;
688
460
  }
@@ -796,7 +568,7 @@ var useStepHoverStyles = (variantUI, state, className, theme, isLast, disabled,
796
568
  };
797
569
 
798
570
  // src/Step.tsx
799
- var import_jsx_runtime9 = require("react/jsx-runtime");
571
+ var import_jsx_runtime6 = require("react/jsx-runtime");
800
572
  var StepState = ({
801
573
  state,
802
574
  size,
@@ -809,7 +581,7 @@ var StepState = ({
809
581
  className
810
582
  }) => {
811
583
  const paletteColor = getPaletteColor(palette, theme, "active");
812
- const iconStyles = (0, import_react5.useMemo)(() => {
584
+ const iconStyles = (0, import_react2.useMemo)(() => {
813
585
  if (variantUI === "simple") {
814
586
  switch (state) {
815
587
  case "current":
@@ -913,7 +685,7 @@ var StepState = ({
913
685
  }
914
686
  }, [state, variantUI, theme, paletteColor]);
915
687
  const iconSize = 18;
916
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
688
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
917
689
  Box,
918
690
  {
919
691
  className,
@@ -926,7 +698,7 @@ var StepState = ({
926
698
  alignItems: "center",
927
699
  justifyContent: "center",
928
700
  flexShrink: 0,
929
- children: state === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Spinner, { size: size === "sm" ? 16 : 20, color: iconStyles.color }) : state === "complete" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_xui_icons.Check, { size: iconSize, color: iconStyles.color }) : state === "alert" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_xui_icons.X, { size: iconSize, color: iconStyles.color }) : state === "warning" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_xui_icons.AlertCircle, { size: iconSize, color: iconStyles.color }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
701
+ children: state === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Spinner, { size: size === "sm" ? 16 : 20, color: iconStyles.color }) : state === "complete" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_xui_icons.Check, { size: iconSize, color: iconStyles.color }) : state === "alert" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_xui_icons.X, { size: iconSize, color: iconStyles.color }) : state === "warning" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_xui_icons.AlertCircle, { size: iconSize, color: iconStyles.color }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
930
702
  Text,
931
703
  {
932
704
  color: iconStyles.color,
@@ -957,7 +729,7 @@ var Step = ({
957
729
  }) => {
958
730
  const { theme, mode } = (0, import_xui_core2.useDesignSystem)();
959
731
  const sizeStyles = theme.sizing.stepper(size);
960
- const stepClassName = (0, import_react5.useMemo)(
732
+ const stepClassName = (0, import_react2.useMemo)(
961
733
  () => `step-${stepNumber}-${variantUI}-${direction}-${size}-${state}-${palette}`,
962
734
  [stepNumber, variantUI, direction, size, state, palette]
963
735
  );
@@ -971,7 +743,7 @@ var Step = ({
971
743
  noClick,
972
744
  palette
973
745
  );
974
- const stepClick = (0, import_react5.useCallback)(() => {
746
+ const stepClick = (0, import_react2.useCallback)(() => {
975
747
  if (onClick && !disabled && !noClick) {
976
748
  onClick({
977
749
  number: stepNumber,
@@ -984,7 +756,7 @@ var Step = ({
984
756
  });
985
757
  }
986
758
  }, [onClick, disabled, noClick, stepNumber, title, description, state]);
987
- const stepAriaLabel = (0, import_react5.useMemo)(() => {
759
+ const stepAriaLabel = (0, import_react2.useMemo)(() => {
988
760
  const stepNum = stepNumber + 1;
989
761
  const titleText = typeof title === "string" ? title : "Step";
990
762
  const descriptionText = description && typeof description === "string" ? description : "";
@@ -1006,7 +778,7 @@ var Step = ({
1006
778
  }
1007
779
  return label;
1008
780
  }, [stepNumber, title, description, state, isLast]);
1009
- const handleKeyDown = (0, import_react5.useCallback)(
781
+ const handleKeyDown = (0, import_react2.useCallback)(
1010
782
  (event) => {
1011
783
  if (event.key === "Enter" && !disabled && !noClick) {
1012
784
  event.preventDefault();
@@ -1018,7 +790,7 @@ var Step = ({
1018
790
  },
1019
791
  [stepClick, disabled, noClick]
1020
792
  );
1021
- const handleKeyUp = (0, import_react5.useCallback)(
793
+ const handleKeyUp = (0, import_react2.useCallback)(
1022
794
  (event) => {
1023
795
  if (event.key === " " && !disabled && !noClick) {
1024
796
  event.preventDefault();
@@ -1029,7 +801,7 @@ var Step = ({
1029
801
  );
1030
802
  const isInteractive = !disabled && !noClick && !!onClick;
1031
803
  const isCurrent = state === "current";
1032
- const titleStyles = (0, import_react5.useMemo)(() => {
804
+ const titleStyles = (0, import_react2.useMemo)(() => {
1033
805
  if (variantUI === "simple") {
1034
806
  const sizeStylesMap = {
1035
807
  sm: {
@@ -1087,7 +859,7 @@ var Step = ({
1087
859
  };
1088
860
  }
1089
861
  }, [variantUI, direction, size, state, theme, palette]);
1090
- const descriptionStyles = (0, import_react5.useMemo)(() => {
862
+ const descriptionStyles = (0, import_react2.useMemo)(() => {
1091
863
  const sizeStylesMap = {
1092
864
  sm: {
1093
865
  fontSize: 12,
@@ -1110,7 +882,7 @@ var Step = ({
1110
882
  fontWeight: "400"
1111
883
  };
1112
884
  }, [size, variantUI, state, theme]);
1113
- const contentWrapperStyles = (0, import_react5.useMemo)(() => {
885
+ const contentWrapperStyles = (0, import_react2.useMemo)(() => {
1114
886
  if (variantUI === "simple") {
1115
887
  if (direction === "horizontal") {
1116
888
  return {
@@ -1138,7 +910,7 @@ var Step = ({
1138
910
  return baseStyles;
1139
911
  }
1140
912
  }, [variantUI, direction, size]);
1141
- const stepWrapperStyles = (0, import_react5.useMemo)(() => {
913
+ const stepWrapperStyles = (0, import_react2.useMemo)(() => {
1142
914
  if (variantUI === "current") {
1143
915
  if (direction === "horizontal") {
1144
916
  return {
@@ -1171,7 +943,7 @@ var Step = ({
1171
943
  }
1172
944
  }, [variantUI, direction, size, isLast]);
1173
945
  if (variantUI === "current" && direction === "horizontal") {
1174
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
946
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1175
947
  Box,
1176
948
  {
1177
949
  role: isWeb() ? "button" : void 0,
@@ -1194,7 +966,7 @@ var Step = ({
1194
966
  cursor: disabled || noClick ? "default" : "pointer"
1195
967
  },
1196
968
  children: [
1197
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
969
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1198
970
  StepTail,
1199
971
  {
1200
972
  variantUI,
@@ -1207,7 +979,7 @@ var Step = ({
1207
979
  palette
1208
980
  }
1209
981
  ),
1210
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
982
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1211
983
  Box,
1212
984
  {
1213
985
  flexDirection: "column",
@@ -1218,7 +990,7 @@ var Step = ({
1218
990
  paddingRight: size === "sm" ? 20 : 24,
1219
991
  width: "100%",
1220
992
  children: [
1221
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box, { flexDirection: "column", alignItems: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
993
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Box, { flexDirection: "column", alignItems: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1222
994
  StepState,
1223
995
  {
1224
996
  state,
@@ -1235,7 +1007,7 @@ var Step = ({
1235
1007
  isLast
1236
1008
  }
1237
1009
  ) }),
1238
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1010
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1239
1011
  Box,
1240
1012
  {
1241
1013
  flexDirection: "column",
@@ -1244,7 +1016,7 @@ var Step = ({
1244
1016
  gap: 4,
1245
1017
  width: "100%",
1246
1018
  children: [
1247
- typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1019
+ typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1248
1020
  Text,
1249
1021
  {
1250
1022
  className: `step-title-${stepClassName}`,
@@ -1255,7 +1027,7 @@ var Step = ({
1255
1027
  children: title
1256
1028
  }
1257
1029
  ) : title,
1258
- description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box, { width: "100%", alignItems: "flex-start", children: typeof description === "string" || typeof description === "number" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1030
+ description && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Box, { width: "100%", alignItems: "flex-start", children: typeof description === "string" || typeof description === "number" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1259
1031
  Text,
1260
1032
  {
1261
1033
  className: `step-description-${stepClassName}`,
@@ -1277,7 +1049,7 @@ var Step = ({
1277
1049
  );
1278
1050
  }
1279
1051
  if (variantUI === "simple" && direction === "horizontal") {
1280
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1052
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1281
1053
  Box,
1282
1054
  {
1283
1055
  role: isWeb() ? "button" : void 0,
@@ -1298,7 +1070,7 @@ var Step = ({
1298
1070
  cursor: disabled || noClick ? "default" : "pointer"
1299
1071
  },
1300
1072
  children: [
1301
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box, { flexDirection: "column", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1073
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Box, { flexDirection: "column", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1302
1074
  StepState,
1303
1075
  {
1304
1076
  state,
@@ -1314,8 +1086,8 @@ var Step = ({
1314
1086
  isLast
1315
1087
  }
1316
1088
  ) }),
1317
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Box, { ...contentWrapperStyles, children: [
1318
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1089
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Box, { ...contentWrapperStyles, children: [
1090
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1319
1091
  Box,
1320
1092
  {
1321
1093
  flexDirection: "row",
@@ -1324,7 +1096,7 @@ var Step = ({
1324
1096
  paddingTop: variantUI === "simple" ? size === "sm" ? 1 : 4 : void 0,
1325
1097
  paddingBottom: variantUI === "simple" ? size === "sm" ? 1 : 4 : void 0,
1326
1098
  children: [
1327
- typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1099
+ typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1328
1100
  Text,
1329
1101
  {
1330
1102
  className: `step-title-${stepClassName}`,
@@ -1335,20 +1107,20 @@ var Step = ({
1335
1107
  children: title
1336
1108
  }
1337
1109
  ) : title,
1338
- tail && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1110
+ tail && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1339
1111
  Box,
1340
1112
  {
1341
1113
  flex: 1,
1342
1114
  marginLeft: size === "sm" ? 8 : 12,
1343
1115
  alignItems: "center",
1344
1116
  justifyContent: "center",
1345
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Divider, { color: theme.colors.border.secondary })
1117
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Divider, { color: theme.colors.border.secondary })
1346
1118
  }
1347
1119
  )
1348
1120
  ]
1349
1121
  }
1350
1122
  ),
1351
- description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box, { children: typeof description === "string" || typeof description === "number" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1123
+ description && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Box, { children: typeof description === "string" || typeof description === "number" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1352
1124
  Text,
1353
1125
  {
1354
1126
  className: `step-description-${stepClassName}`,
@@ -1365,7 +1137,7 @@ var Step = ({
1365
1137
  );
1366
1138
  }
1367
1139
  if (variantUI === "current" && direction === "vertical") {
1368
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1140
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1369
1141
  Box,
1370
1142
  {
1371
1143
  role: isWeb() ? "button" : void 0,
@@ -1387,7 +1159,7 @@ var Step = ({
1387
1159
  cursor: disabled || noClick ? "default" : "pointer"
1388
1160
  },
1389
1161
  children: [
1390
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1162
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1391
1163
  StepTail,
1392
1164
  {
1393
1165
  variantUI,
@@ -1400,7 +1172,7 @@ var Step = ({
1400
1172
  palette
1401
1173
  }
1402
1174
  ),
1403
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1175
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1404
1176
  Box,
1405
1177
  {
1406
1178
  flexDirection: "column",
@@ -1411,7 +1183,7 @@ var Step = ({
1411
1183
  paddingBottom: size === "sm" ? 20 : 24,
1412
1184
  flex: 1,
1413
1185
  children: [
1414
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box, { flexDirection: "column", alignItems: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1186
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Box, { flexDirection: "column", alignItems: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1415
1187
  StepState,
1416
1188
  {
1417
1189
  state,
@@ -1428,7 +1200,7 @@ var Step = ({
1428
1200
  isLast
1429
1201
  }
1430
1202
  ) }),
1431
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1203
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1432
1204
  Box,
1433
1205
  {
1434
1206
  flexDirection: "column",
@@ -1437,7 +1209,7 @@ var Step = ({
1437
1209
  gap: 4,
1438
1210
  width: "100%",
1439
1211
  children: [
1440
- typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1212
+ typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1441
1213
  Text,
1442
1214
  {
1443
1215
  className: `step-title-${stepClassName}`,
@@ -1448,7 +1220,7 @@ var Step = ({
1448
1220
  children: title
1449
1221
  }
1450
1222
  ) : title,
1451
- description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box, { children: typeof description === "string" || typeof description === "number" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1223
+ description && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Box, { children: typeof description === "string" || typeof description === "number" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1452
1224
  Text,
1453
1225
  {
1454
1226
  className: `step-description-${stepClassName}`,
@@ -1469,7 +1241,7 @@ var Step = ({
1469
1241
  }
1470
1242
  );
1471
1243
  }
1472
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1244
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1473
1245
  Box,
1474
1246
  {
1475
1247
  role: isWeb() ? "button" : void 0,
@@ -1488,8 +1260,8 @@ var Step = ({
1488
1260
  ...stepWrapperStyles,
1489
1261
  ...isWeb() && { cursor: disabled || noClick ? "default" : "pointer" },
1490
1262
  children: [
1491
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Box, { flexDirection: "column", alignItems: "center", flexShrink: 0, children: [
1492
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1263
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Box, { flexDirection: "column", alignItems: "center", flexShrink: 0, children: [
1264
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1493
1265
  StepState,
1494
1266
  {
1495
1267
  state,
@@ -1504,7 +1276,7 @@ var Step = ({
1504
1276
  sizeStyles
1505
1277
  }
1506
1278
  ),
1507
- tail && !isLast && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1279
+ tail && !isLast && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1508
1280
  Box,
1509
1281
  {
1510
1282
  width: 1,
@@ -1518,8 +1290,8 @@ var Step = ({
1518
1290
  }
1519
1291
  )
1520
1292
  ] }),
1521
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Box, { ...contentWrapperStyles, flex: 1, children: [
1522
- typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1293
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Box, { ...contentWrapperStyles, flex: 1, children: [
1294
+ typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1523
1295
  Text,
1524
1296
  {
1525
1297
  color: titleStyles.color,
@@ -1529,7 +1301,7 @@ var Step = ({
1529
1301
  children: title
1530
1302
  }
1531
1303
  ) : title,
1532
- description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box, { marginTop: descriptionStyles.marginTop, children: typeof description === "string" || typeof description === "number" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1304
+ description && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Box, { marginTop: descriptionStyles.marginTop, children: typeof description === "string" || typeof description === "number" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1533
1305
  Text,
1534
1306
  {
1535
1307
  color: descriptionStyles.color,
@@ -1546,9 +1318,9 @@ var Step = ({
1546
1318
  };
1547
1319
 
1548
1320
  // src/Stepper.tsx
1549
- var import_jsx_runtime10 = require("react/jsx-runtime");
1550
- var import_react7 = require("react");
1551
- var Stepper = (0, import_react6.forwardRef)(
1321
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1322
+ var import_react4 = require("react");
1323
+ var Stepper = (0, import_react3.forwardRef)(
1552
1324
  ({
1553
1325
  direction = "horizontal",
1554
1326
  variantUI = "current",
@@ -1569,7 +1341,7 @@ var Stepper = (0, import_react6.forwardRef)(
1569
1341
  const tailOffset = tailSize / 2;
1570
1342
  const defaultAriaLabel = `Stepper with ${steps.length} step${steps.length !== 1 ? "s" : ""}`;
1571
1343
  const stepperAriaLabel = ariaLabel || defaultAriaLabel;
1572
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1344
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1573
1345
  Box,
1574
1346
  {
1575
1347
  ref,
@@ -1609,7 +1381,7 @@ var Stepper = (0, import_react6.forwardRef)(
1609
1381
  const isLast = index === steps.length - 1;
1610
1382
  const isFirstColoredTail = index === firstColoredTailIndex;
1611
1383
  const isLastColoredTail = index === lastColoredTailIndex;
1612
- return /* @__PURE__ */ (0, import_react7.createElement)(
1384
+ return /* @__PURE__ */ (0, import_react4.createElement)(
1613
1385
  Step,
1614
1386
  {
1615
1387
  size,
@@ -1640,7 +1412,7 @@ var import_xui_icons2 = require("@xsolla/xui-icons");
1640
1412
 
1641
1413
  // src/ProgressStepItem.tsx
1642
1414
  var import_xui_core4 = require("@xsolla/xui-core");
1643
- var import_jsx_runtime11 = require("react/jsx-runtime");
1415
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1644
1416
  var ProgressStepItem = ({
1645
1417
  state = "default",
1646
1418
  size = "md",
@@ -1662,7 +1434,7 @@ var ProgressStepItem = ({
1662
1434
  backgroundColor = theme.colors.content.tertiary || "rgba(0, 0, 0, 0.6)";
1663
1435
  opacity = isHover ? 0.5 : 0.2;
1664
1436
  }
1665
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1437
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1666
1438
  Box,
1667
1439
  {
1668
1440
  className,
@@ -1680,7 +1452,7 @@ var ProgressStepItem = ({
1680
1452
  };
1681
1453
 
1682
1454
  // src/ProgressStep.tsx
1683
- var import_jsx_runtime12 = require("react/jsx-runtime");
1455
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1684
1456
  var ProgressStep = ({
1685
1457
  count,
1686
1458
  activeStep,
@@ -1704,7 +1476,7 @@ var ProgressStep = ({
1704
1476
  const iconSize = size === "md" ? 18 : 14;
1705
1477
  const isFirst = activeStep <= 0;
1706
1478
  const isLast = activeStep >= count - 1;
1707
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1479
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1708
1480
  Box,
1709
1481
  {
1710
1482
  className,
@@ -1714,7 +1486,7 @@ var ProgressStep = ({
1714
1486
  gap: 4,
1715
1487
  height: size === "md" ? 24 : 18,
1716
1488
  children: [
1717
- arrows && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1489
+ arrows && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1718
1490
  Box,
1719
1491
  {
1720
1492
  onPress: handlePrev,
@@ -1725,10 +1497,10 @@ var ProgressStep = ({
1725
1497
  borderRadius: 4,
1726
1498
  opacity: isFirst ? 0.2 : 1,
1727
1499
  cursor: isFirst ? "default" : "pointer",
1728
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_xui_icons2.ArrowLeft, { size: iconSize, color: theme.colors.content.primary })
1500
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_xui_icons2.ArrowLeft, { size: iconSize, color: theme.colors.content.primary })
1729
1501
  }
1730
1502
  ),
1731
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box, { flexDirection: "row", alignItems: "center", gap: 4, children: Array.from({ length: count }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1503
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box, { flexDirection: "row", alignItems: "center", gap: 4, children: Array.from({ length: count }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1732
1504
  ProgressStepItem,
1733
1505
  {
1734
1506
  size,
@@ -1737,7 +1509,7 @@ var ProgressStep = ({
1737
1509
  },
1738
1510
  i
1739
1511
  )) }),
1740
- arrows && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1512
+ arrows && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1741
1513
  Box,
1742
1514
  {
1743
1515
  onPress: handleNext,
@@ -1748,7 +1520,7 @@ var ProgressStep = ({
1748
1520
  borderRadius: 4,
1749
1521
  opacity: isLast ? 0.2 : 1,
1750
1522
  cursor: isLast ? "default" : "pointer",
1751
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_xui_icons2.ArrowRight, { size: iconSize, color: theme.colors.content.primary })
1523
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_xui_icons2.ArrowRight, { size: iconSize, color: theme.colors.content.primary })
1752
1524
  }
1753
1525
  )
1754
1526
  ]