@xsolla/xui-stepper 0.74.0 → 0.76.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.
@@ -0,0 +1,123 @@
1
+ /**
2
+ * Flowtype definitions for index
3
+ * Generated by Flowgen from a Typescript Definition
4
+ * Flowgen v1.21.0
5
+ * @flow
6
+ */
7
+
8
+ import React, { Element } from "react";
9
+ import { BoxProps } from "@xsolla/xui-primitives-core";
10
+ declare type StepperDirectionType = "horizontal" | "vertical";
11
+ declare type StepperUIVariantType = "current" | "simple";
12
+ declare type StepperPaletteType = "brand" | "brandSecondary";
13
+ declare type StepStateType =
14
+ | "current"
15
+ | "incomplete"
16
+ | "loading"
17
+ | "complete"
18
+ | "alert"
19
+ | "warning";
20
+ declare type StepClickType = (x: {
21
+ number: number,
22
+ step: StepType,
23
+ ...
24
+ }) => void;
25
+ declare type StepperSize = "sm" | "md";
26
+ declare type ProgressStepSize = "sm" | "md";
27
+ declare type ProgressStepItemState = "active" | "default" | "hover";
28
+ declare interface ProgressStepItemProps {
29
+ state?: ProgressStepItemState;
30
+ size?: ProgressStepSize;
31
+ className?: string;
32
+ onPress?: () => void;
33
+ onMouseEnter?: () => void;
34
+ onMouseLeave?: () => void;
35
+ }
36
+ declare interface ProgressStepProps {
37
+ count: number;
38
+ activeStep: number;
39
+ size?: ProgressStepSize;
40
+ arrows?: boolean;
41
+ onStepPress?: (step: number) => void;
42
+ className?: string;
43
+ }
44
+ declare type StepType = {
45
+ title: string | Element,
46
+ description?: string | Element,
47
+ state?: StepStateType,
48
+ disabled?: boolean,
49
+ key?: string,
50
+ noClick?: boolean,
51
+ ...
52
+ };
53
+ declare type StepProps = {
54
+ size: StepperSize,
55
+ onClick?: StepClickType,
56
+ stepNumber: number,
57
+ tail: boolean,
58
+ direction: StepperDirectionType,
59
+ variantUI: StepperUIVariantType,
60
+ palette?: StepperPaletteType,
61
+ isLast?: boolean,
62
+ isFirstColoredTail?: boolean,
63
+ isLastColoredTail?: boolean,
64
+ ...
65
+ } & StepType;
66
+ declare type StepperProps = {
67
+ /**
68
+ * List with steps for Stepper
69
+ */
70
+ steps: StepType[],
71
+
72
+ /**
73
+ * Parameter with type form for stepper. Default type "horizontal"
74
+ */
75
+ direction?: StepperDirectionType,
76
+ size?: StepperSize,
77
+
78
+ /**
79
+ */
80
+ tail?: boolean,
81
+
82
+ /**
83
+ * The step number in the array and an object with step data will be passed to the function
84
+ */
85
+ onClick?: StepClickType,
86
+ variantUI?: StepperUIVariantType,
87
+
88
+ /**
89
+ * Color palette variant. Default is "brand"
90
+ */
91
+ palette?: StepperPaletteType,
92
+ customClass?: string,
93
+ className?: string,
94
+
95
+ /**
96
+ * Accessibility label for the stepper. If not provided, a default label will be used.
97
+ */
98
+ "aria-label"?: string,
99
+ ...
100
+ } & $Diff<BoxProps, { onClick: any }>;
101
+ declare var Stepper: React.ForwardRefExoticComponent<{
102
+ ...StepperProps,
103
+ ...React.RefAttributes<any>,
104
+ }>;
105
+ declare var ProgressStep: React.FC<ProgressStepProps>;
106
+ declare var ProgressStepItem: React.FC<ProgressStepItemProps>;
107
+ declare var Step: React.FC<StepProps>;
108
+ export type {
109
+ ProgressStepItemProps,
110
+ ProgressStepItemState,
111
+ ProgressStepProps,
112
+ ProgressStepSize,
113
+ StepClickType,
114
+ StepProps,
115
+ StepStateType,
116
+ StepType,
117
+ StepperDirectionType,
118
+ StepperPaletteType,
119
+ StepperProps,
120
+ StepperSize,
121
+ StepperUIVariantType,
122
+ };
123
+ declare export { ProgressStep, ProgressStepItem, Step, Stepper };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-stepper",
3
- "version": "0.74.0",
3
+ "version": "0.76.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -14,9 +14,9 @@
14
14
  "test:coverage": "vitest run --coverage"
15
15
  },
16
16
  "dependencies": {
17
- "@xsolla/xui-core": "0.74.0",
18
- "@xsolla/xui-icons": "0.74.0",
19
- "@xsolla/xui-primitives-core": "0.74.0"
17
+ "@xsolla/xui-core": "0.76.0",
18
+ "@xsolla/xui-icons": "0.76.0",
19
+ "@xsolla/xui-primitives-core": "0.76.0"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": ">=16.8.0",
@@ -0,0 +1,123 @@
1
+ /**
2
+ * Flowtype definitions for index
3
+ * Generated by Flowgen from a Typescript Definition
4
+ * Flowgen v1.21.0
5
+ * @flow
6
+ */
7
+
8
+ import React, { Element } from "react";
9
+ import { BoxProps } from "@xsolla/xui-primitives-core";
10
+ declare type StepperDirectionType = "horizontal" | "vertical";
11
+ declare type StepperUIVariantType = "current" | "simple";
12
+ declare type StepperPaletteType = "brand" | "brandSecondary";
13
+ declare type StepStateType =
14
+ | "current"
15
+ | "incomplete"
16
+ | "loading"
17
+ | "complete"
18
+ | "alert"
19
+ | "warning";
20
+ declare type StepClickType = (x: {
21
+ number: number,
22
+ step: StepType,
23
+ ...
24
+ }) => void;
25
+ declare type StepperSize = "sm" | "md";
26
+ declare type ProgressStepSize = "sm" | "md";
27
+ declare type ProgressStepItemState = "active" | "default" | "hover";
28
+ declare interface ProgressStepItemProps {
29
+ state?: ProgressStepItemState;
30
+ size?: ProgressStepSize;
31
+ className?: string;
32
+ onPress?: () => void;
33
+ onMouseEnter?: () => void;
34
+ onMouseLeave?: () => void;
35
+ }
36
+ declare interface ProgressStepProps {
37
+ count: number;
38
+ activeStep: number;
39
+ size?: ProgressStepSize;
40
+ arrows?: boolean;
41
+ onStepPress?: (step: number) => void;
42
+ className?: string;
43
+ }
44
+ declare type StepType = {
45
+ title: string | Element,
46
+ description?: string | Element,
47
+ state?: StepStateType,
48
+ disabled?: boolean,
49
+ key?: string,
50
+ noClick?: boolean,
51
+ ...
52
+ };
53
+ declare type StepProps = {
54
+ size: StepperSize,
55
+ onClick?: StepClickType,
56
+ stepNumber: number,
57
+ tail: boolean,
58
+ direction: StepperDirectionType,
59
+ variantUI: StepperUIVariantType,
60
+ palette?: StepperPaletteType,
61
+ isLast?: boolean,
62
+ isFirstColoredTail?: boolean,
63
+ isLastColoredTail?: boolean,
64
+ ...
65
+ } & StepType;
66
+ declare type StepperProps = {
67
+ /**
68
+ * List with steps for Stepper
69
+ */
70
+ steps: StepType[],
71
+
72
+ /**
73
+ * Parameter with type form for stepper. Default type "horizontal"
74
+ */
75
+ direction?: StepperDirectionType,
76
+ size?: StepperSize,
77
+
78
+ /**
79
+ */
80
+ tail?: boolean,
81
+
82
+ /**
83
+ * The step number in the array and an object with step data will be passed to the function
84
+ */
85
+ onClick?: StepClickType,
86
+ variantUI?: StepperUIVariantType,
87
+
88
+ /**
89
+ * Color palette variant. Default is "brand"
90
+ */
91
+ palette?: StepperPaletteType,
92
+ customClass?: string,
93
+ className?: string,
94
+
95
+ /**
96
+ * Accessibility label for the stepper. If not provided, a default label will be used.
97
+ */
98
+ "aria-label"?: string,
99
+ ...
100
+ } & $Diff<BoxProps, { onClick: any }>;
101
+ declare var Stepper: React.ForwardRefExoticComponent<{
102
+ ...StepperProps,
103
+ ...React.RefAttributes<any>,
104
+ }>;
105
+ declare var ProgressStep: React.FC<ProgressStepProps>;
106
+ declare var ProgressStepItem: React.FC<ProgressStepItemProps>;
107
+ declare var Step: React.FC<StepProps>;
108
+ export type {
109
+ ProgressStepItemProps,
110
+ ProgressStepItemState,
111
+ ProgressStepProps,
112
+ ProgressStepSize,
113
+ StepClickType,
114
+ StepProps,
115
+ StepStateType,
116
+ StepType,
117
+ StepperDirectionType,
118
+ StepperPaletteType,
119
+ StepperProps,
120
+ StepperSize,
121
+ StepperUIVariantType,
122
+ };
123
+ declare export { ProgressStep, ProgressStepItem, Step, Stepper };