@xsolla/xui-stepper 0.78.0 → 0.79.0-pr124.1769766602

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.
@@ -1,4 +1,5 @@
1
- import React, { ReactElement } from 'react';
1
+ import * as React from 'react';
2
+ import React__default, { ReactElement } from 'react';
2
3
  import { BoxProps } from '@xsolla/xui-primitives-core';
3
4
 
4
5
  type StepperDirectionType = "horizontal" | "vertical";
@@ -81,10 +82,10 @@ interface StepperProps extends Omit<BoxProps, "onClick"> {
81
82
 
82
83
  declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<any>>;
83
84
 
84
- declare const ProgressStep: React.FC<ProgressStepProps>;
85
+ declare const ProgressStep: React__default.FC<ProgressStepProps>;
85
86
 
86
- declare const ProgressStepItem: React.FC<ProgressStepItemProps>;
87
+ declare const ProgressStepItem: React__default.FC<ProgressStepItemProps>;
87
88
 
88
- declare const Step: React.FC<StepProps>;
89
+ declare const Step: React__default.FC<StepProps>;
89
90
 
90
91
  export { ProgressStep, ProgressStepItem, type ProgressStepItemProps, type ProgressStepItemState, type ProgressStepProps, type ProgressStepSize, Step, type StepClickType, type StepProps, type StepStateType, type StepType, Stepper, type StepperDirectionType, type StepperPaletteType, type StepperProps, type StepperSize, type StepperUIVariantType };
package/native/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import React, { ReactElement } from 'react';
1
+ import * as React from 'react';
2
+ import React__default, { ReactElement } from 'react';
2
3
  import { BoxProps } from '@xsolla/xui-primitives-core';
3
4
 
4
5
  type StepperDirectionType = "horizontal" | "vertical";
@@ -81,10 +82,10 @@ interface StepperProps extends Omit<BoxProps, "onClick"> {
81
82
 
82
83
  declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<any>>;
83
84
 
84
- declare const ProgressStep: React.FC<ProgressStepProps>;
85
+ declare const ProgressStep: React__default.FC<ProgressStepProps>;
85
86
 
86
- declare const ProgressStepItem: React.FC<ProgressStepItemProps>;
87
+ declare const ProgressStepItem: React__default.FC<ProgressStepItemProps>;
87
88
 
88
- declare const Step: React.FC<StepProps>;
89
+ declare const Step: React__default.FC<StepProps>;
89
90
 
90
91
  export { ProgressStep, ProgressStepItem, type ProgressStepItemProps, type ProgressStepItemState, type ProgressStepProps, type ProgressStepSize, Step, type StepClickType, type StepProps, type StepStateType, type StepType, Stepper, type StepperDirectionType, type StepperPaletteType, type StepperProps, type StepperSize, type StepperUIVariantType };
package/native/index.js CHANGED
@@ -250,7 +250,6 @@ var Spinner = ({
250
250
  role,
251
251
  "aria-label": ariaLabel,
252
252
  "aria-live": ariaLive,
253
- "aria-describedby": ariaDescribedBy,
254
253
  testID
255
254
  }) => {
256
255
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
@@ -350,14 +349,11 @@ var InputPrimitive = (0, import_react2.forwardRef)(
350
349
  fontSize,
351
350
  placeholderTextColor,
352
351
  maxLength,
353
- name,
354
352
  type,
355
353
  inputMode,
356
354
  autoComplete,
357
355
  id,
358
- "aria-invalid": ariaInvalid,
359
356
  "aria-describedby": ariaDescribedBy,
360
- "aria-labelledby": ariaLabelledBy,
361
357
  "aria-label": ariaLabel,
362
358
  "aria-disabled": ariaDisabled,
363
359
  "data-testid": dataTestId
@@ -449,9 +445,7 @@ var TextAreaPrimitive = (0, import_react3.forwardRef)(
449
445
  maxLength,
450
446
  rows,
451
447
  id,
452
- "aria-invalid": ariaInvalid,
453
448
  "aria-describedby": ariaDescribedBy,
454
- "aria-labelledby": ariaLabelledBy,
455
449
  "aria-label": ariaLabel,
456
450
  "aria-disabled": ariaDisabled,
457
451
  "data-testid": dataTestId
@@ -808,17 +802,13 @@ var StepState = ({
808
802
  size,
809
803
  step,
810
804
  variantUI,
811
- disabled,
812
- noClick,
813
805
  palette,
814
806
  theme,
815
807
  mode,
816
808
  sizeStyles,
817
- className,
818
- isLast = false
809
+ className
819
810
  }) => {
820
811
  const paletteColor = getPaletteColor(palette, theme, "active");
821
- const paletteTextColor = getPaletteColor(palette, theme, "text");
822
812
  const iconStyles = (0, import_react5.useMemo)(() => {
823
813
  if (variantUI === "simple") {
824
814
  switch (state) {
@@ -922,73 +912,6 @@ var StepState = ({
922
912
  }
923
913
  }
924
914
  }, [state, variantUI, theme, paletteColor]);
925
- const iconHoverStyles = (0, import_react5.useMemo)(() => {
926
- if (disabled || noClick) return {};
927
- if (variantUI === "simple") {
928
- if (isLast) {
929
- return {
930
- backgroundColor: paletteColor,
931
- borderColor: paletteColor,
932
- color: theme.colors.content.static.light,
933
- opacity: 0.9
934
- };
935
- }
936
- switch (state) {
937
- case "current":
938
- return {
939
- backgroundColor: paletteColor,
940
- borderColor: paletteColor,
941
- opacity: 0.9
942
- };
943
- case "incomplete":
944
- return {
945
- borderColor: paletteColor,
946
- color: paletteColor,
947
- opacity: 0.9
948
- };
949
- case "loading":
950
- return {
951
- color: paletteColor,
952
- opacity: 0.9
953
- };
954
- case "complete":
955
- return {
956
- borderColor: paletteColor,
957
- color: paletteColor,
958
- opacity: 0.9
959
- };
960
- case "alert":
961
- case "warning":
962
- return {};
963
- default:
964
- return {};
965
- }
966
- } else {
967
- switch (state) {
968
- case "current":
969
- return {
970
- backgroundColor: theme.colors.control.brand.primary.bgHover
971
- };
972
- case "incomplete":
973
- return {
974
- backgroundColor: theme.colors.control.input.bgHover || theme.colors.control.input.bg
975
- };
976
- case "loading":
977
- return {
978
- color: theme.colors.control.brand.primary.bgHover
979
- };
980
- case "complete":
981
- return {
982
- backgroundColor: theme.colors.control.brand.primary.bgHover
983
- };
984
- case "alert":
985
- case "warning":
986
- return {};
987
- default:
988
- return {};
989
- }
990
- }
991
- }, [state, variantUI, disabled, noClick, theme, paletteColor]);
992
915
  const iconSize = 18;
993
916
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
994
917
  Box,
@@ -5,7 +5,8 @@
5
5
  * @flow
6
6
  */
7
7
 
8
- import React, { Element } from "react";
8
+ import * as React from "react";
9
+ import React__default, { Element } from "react";
9
10
  import { BoxProps } from "@xsolla/xui-primitives-core";
10
11
  declare type StepperDirectionType = "horizontal" | "vertical";
11
12
  declare type StepperUIVariantType = "current" | "simple";
@@ -102,9 +103,9 @@ declare var Stepper: React.ForwardRefExoticComponent<{
102
103
  ...StepperProps,
103
104
  ...React.RefAttributes<any>,
104
105
  }>;
105
- declare var ProgressStep: React.FC<ProgressStepProps>;
106
- declare var ProgressStepItem: React.FC<ProgressStepItemProps>;
107
- declare var Step: React.FC<StepProps>;
106
+ declare var ProgressStep: React__default.FC<ProgressStepProps>;
107
+ declare var ProgressStepItem: React__default.FC<ProgressStepItemProps>;
108
+ declare var Step: React__default.FC<StepProps>;
108
109
  export type {
109
110
  ProgressStepItemProps,
110
111
  ProgressStepItemState,