@xsolla/xui-primitives-core 0.158.0 → 0.159.0-pr308.1779636217

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.
Files changed (3) hide show
  1. package/index.d.mts +21 -1
  2. package/index.d.ts +21 -1
  3. package/package.json +1 -1
package/index.d.mts CHANGED
@@ -1,5 +1,9 @@
1
1
  import React from 'react';
2
2
 
3
+ interface TestIDProps {
4
+ /** Test ID for testing frameworks */
5
+ testID?: string;
6
+ }
3
7
  interface BoxProps {
4
8
  children?: React.ReactNode;
5
9
  backgroundColor?: string;
@@ -127,6 +131,10 @@ interface TextProps {
127
131
  className?: string;
128
132
  id?: string;
129
133
  role?: string;
134
+ /** Test ID for testing frameworks */
135
+ testID?: string;
136
+ /** Test ID for testing frameworks (web) */
137
+ "data-testid"?: string;
130
138
  }
131
139
  interface SpinnerProps {
132
140
  color?: string;
@@ -148,6 +156,10 @@ interface IconProps {
148
156
  color?: string;
149
157
  size?: number | string;
150
158
  children?: React.ReactNode;
159
+ /** Test ID for testing frameworks */
160
+ testID?: string;
161
+ /** Test ID for testing frameworks (web) */
162
+ "data-testid"?: string;
151
163
  }
152
164
  interface DividerProps {
153
165
  color?: string;
@@ -155,6 +167,10 @@ interface DividerProps {
155
167
  width?: number | string;
156
168
  vertical?: boolean;
157
169
  dashStroke?: boolean;
170
+ /** Test ID for testing frameworks */
171
+ testID?: string;
172
+ /** Test ID for testing frameworks (web) */
173
+ "data-testid"?: string;
158
174
  }
159
175
  interface InputPrimitiveProps {
160
176
  value?: string;
@@ -185,11 +201,15 @@ interface InputPrimitiveProps {
185
201
  "aria-label"?: string;
186
202
  "aria-disabled"?: boolean;
187
203
  "data-testid"?: string;
204
+ /** Test ID for testing frameworks */
205
+ testID?: string;
188
206
  }
189
207
  interface TextAreaPrimitiveProps extends Omit<InputPrimitiveProps, "onKeyDown" | "secureTextEntry"> {
190
208
  onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
191
209
  rows?: number;
192
210
  autoSize?: boolean;
211
+ /** Test ID for testing frameworks */
212
+ testID?: string;
193
213
  }
194
214
  interface LinearGradientProps {
195
215
  /** Gradient color stops from start to end */
@@ -222,4 +242,4 @@ interface LinearGradientProps {
222
242
  testID?: string;
223
243
  }
224
244
 
225
- export type { BoxProps, DividerProps, IconProps, InputPrimitiveProps, LinearGradientProps, SpinnerProps, TextAreaPrimitiveProps, TextProps };
245
+ export type { BoxProps, DividerProps, IconProps, InputPrimitiveProps, LinearGradientProps, SpinnerProps, TestIDProps, TextAreaPrimitiveProps, TextProps };
package/index.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import React from 'react';
2
2
 
3
+ interface TestIDProps {
4
+ /** Test ID for testing frameworks */
5
+ testID?: string;
6
+ }
3
7
  interface BoxProps {
4
8
  children?: React.ReactNode;
5
9
  backgroundColor?: string;
@@ -127,6 +131,10 @@ interface TextProps {
127
131
  className?: string;
128
132
  id?: string;
129
133
  role?: string;
134
+ /** Test ID for testing frameworks */
135
+ testID?: string;
136
+ /** Test ID for testing frameworks (web) */
137
+ "data-testid"?: string;
130
138
  }
131
139
  interface SpinnerProps {
132
140
  color?: string;
@@ -148,6 +156,10 @@ interface IconProps {
148
156
  color?: string;
149
157
  size?: number | string;
150
158
  children?: React.ReactNode;
159
+ /** Test ID for testing frameworks */
160
+ testID?: string;
161
+ /** Test ID for testing frameworks (web) */
162
+ "data-testid"?: string;
151
163
  }
152
164
  interface DividerProps {
153
165
  color?: string;
@@ -155,6 +167,10 @@ interface DividerProps {
155
167
  width?: number | string;
156
168
  vertical?: boolean;
157
169
  dashStroke?: boolean;
170
+ /** Test ID for testing frameworks */
171
+ testID?: string;
172
+ /** Test ID for testing frameworks (web) */
173
+ "data-testid"?: string;
158
174
  }
159
175
  interface InputPrimitiveProps {
160
176
  value?: string;
@@ -185,11 +201,15 @@ interface InputPrimitiveProps {
185
201
  "aria-label"?: string;
186
202
  "aria-disabled"?: boolean;
187
203
  "data-testid"?: string;
204
+ /** Test ID for testing frameworks */
205
+ testID?: string;
188
206
  }
189
207
  interface TextAreaPrimitiveProps extends Omit<InputPrimitiveProps, "onKeyDown" | "secureTextEntry"> {
190
208
  onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
191
209
  rows?: number;
192
210
  autoSize?: boolean;
211
+ /** Test ID for testing frameworks */
212
+ testID?: string;
193
213
  }
194
214
  interface LinearGradientProps {
195
215
  /** Gradient color stops from start to end */
@@ -222,4 +242,4 @@ interface LinearGradientProps {
222
242
  testID?: string;
223
243
  }
224
244
 
225
- export type { BoxProps, DividerProps, IconProps, InputPrimitiveProps, LinearGradientProps, SpinnerProps, TextAreaPrimitiveProps, TextProps };
245
+ export type { BoxProps, DividerProps, IconProps, InputPrimitiveProps, LinearGradientProps, SpinnerProps, TestIDProps, TextAreaPrimitiveProps, TextProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-primitives-core",
3
- "version": "0.158.0",
3
+ "version": "0.159.0-pr308.1779636217",
4
4
  "description": "Core type definitions for XUI primitives",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",