@xsolla/xui-progress-line 0.64.0-pr56.1768440195
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.d.mts +23 -0
- package/native/index.d.ts +23 -0
- package/native/index.js +530 -0
- package/native/index.js.map +1 -0
- package/native/index.mjs +497 -0
- package/native/index.mjs.map +1 -0
- package/package.json +46 -0
- package/web/index.d.mts +23 -0
- package/web/index.d.ts +23 -0
- package/web/index.js +531 -0
- package/web/index.js.map +1 -0
- package/web/index.mjs +494 -0
- package/web/index.mjs.map +1 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '@xsolla/xui-primitives-core';
|
|
3
|
+
|
|
4
|
+
type ProgressLineSize = "sm" | "md" | "lg";
|
|
5
|
+
type ProgressLineState = "default" | "error" | "success";
|
|
6
|
+
interface ProgressLineProps extends Omit<BoxProps, "size"> {
|
|
7
|
+
/**
|
|
8
|
+
* Property for changing height of the line.
|
|
9
|
+
*/
|
|
10
|
+
size?: ProgressLineSize;
|
|
11
|
+
/**
|
|
12
|
+
* Property for changing color of the inner line.
|
|
13
|
+
*/
|
|
14
|
+
state?: ProgressLineState;
|
|
15
|
+
/**
|
|
16
|
+
* Property for changing width of the inner line.
|
|
17
|
+
*/
|
|
18
|
+
percent?: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const ProgressLine: React.ForwardRefExoticComponent<ProgressLineProps & React.RefAttributes<any>>;
|
|
22
|
+
|
|
23
|
+
export { ProgressLine, type ProgressLineProps, type ProgressLineSize, type ProgressLineState };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '@xsolla/xui-primitives-core';
|
|
3
|
+
|
|
4
|
+
type ProgressLineSize = "sm" | "md" | "lg";
|
|
5
|
+
type ProgressLineState = "default" | "error" | "success";
|
|
6
|
+
interface ProgressLineProps extends Omit<BoxProps, "size"> {
|
|
7
|
+
/**
|
|
8
|
+
* Property for changing height of the line.
|
|
9
|
+
*/
|
|
10
|
+
size?: ProgressLineSize;
|
|
11
|
+
/**
|
|
12
|
+
* Property for changing color of the inner line.
|
|
13
|
+
*/
|
|
14
|
+
state?: ProgressLineState;
|
|
15
|
+
/**
|
|
16
|
+
* Property for changing width of the inner line.
|
|
17
|
+
*/
|
|
18
|
+
percent?: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const ProgressLine: React.ForwardRefExoticComponent<ProgressLineProps & React.RefAttributes<any>>;
|
|
22
|
+
|
|
23
|
+
export { ProgressLine, type ProgressLineProps, type ProgressLineSize, type ProgressLineState };
|
package/native/index.js
ADDED
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
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
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.tsx
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
ProgressLine: () => ProgressLine
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
|
+
|
|
37
|
+
// src/ProgressLine.tsx
|
|
38
|
+
var import_react4 = require("react");
|
|
39
|
+
|
|
40
|
+
// ../primitives-native/src/Box.tsx
|
|
41
|
+
var import_react_native = require("react-native");
|
|
42
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
|
+
var Box = ({
|
|
44
|
+
children,
|
|
45
|
+
onPress,
|
|
46
|
+
onLayout,
|
|
47
|
+
onMoveShouldSetResponder,
|
|
48
|
+
onResponderGrant,
|
|
49
|
+
onResponderMove,
|
|
50
|
+
onResponderRelease,
|
|
51
|
+
onResponderTerminate,
|
|
52
|
+
backgroundColor,
|
|
53
|
+
borderColor,
|
|
54
|
+
borderWidth,
|
|
55
|
+
borderBottomWidth,
|
|
56
|
+
borderBottomColor,
|
|
57
|
+
borderTopWidth,
|
|
58
|
+
borderTopColor,
|
|
59
|
+
borderLeftWidth,
|
|
60
|
+
borderLeftColor,
|
|
61
|
+
borderRightWidth,
|
|
62
|
+
borderRightColor,
|
|
63
|
+
borderRadius,
|
|
64
|
+
borderStyle,
|
|
65
|
+
height,
|
|
66
|
+
padding,
|
|
67
|
+
paddingHorizontal,
|
|
68
|
+
paddingVertical,
|
|
69
|
+
margin,
|
|
70
|
+
marginTop,
|
|
71
|
+
marginBottom,
|
|
72
|
+
marginLeft,
|
|
73
|
+
marginRight,
|
|
74
|
+
flexDirection,
|
|
75
|
+
alignItems,
|
|
76
|
+
justifyContent,
|
|
77
|
+
position,
|
|
78
|
+
top,
|
|
79
|
+
bottom,
|
|
80
|
+
left,
|
|
81
|
+
right,
|
|
82
|
+
width,
|
|
83
|
+
flex,
|
|
84
|
+
overflow,
|
|
85
|
+
zIndex,
|
|
86
|
+
hoverStyle,
|
|
87
|
+
pressStyle,
|
|
88
|
+
style,
|
|
89
|
+
"data-testid": dataTestId,
|
|
90
|
+
testID,
|
|
91
|
+
as,
|
|
92
|
+
src,
|
|
93
|
+
alt,
|
|
94
|
+
...rest
|
|
95
|
+
}) => {
|
|
96
|
+
const getContainerStyle = (pressed) => ({
|
|
97
|
+
backgroundColor: pressed && pressStyle?.backgroundColor ? pressStyle.backgroundColor : backgroundColor,
|
|
98
|
+
borderColor,
|
|
99
|
+
borderWidth,
|
|
100
|
+
borderBottomWidth,
|
|
101
|
+
borderBottomColor,
|
|
102
|
+
borderTopWidth,
|
|
103
|
+
borderTopColor,
|
|
104
|
+
borderLeftWidth,
|
|
105
|
+
borderLeftColor,
|
|
106
|
+
borderRightWidth,
|
|
107
|
+
borderRightColor,
|
|
108
|
+
borderRadius,
|
|
109
|
+
borderStyle,
|
|
110
|
+
overflow,
|
|
111
|
+
zIndex,
|
|
112
|
+
height,
|
|
113
|
+
width,
|
|
114
|
+
padding,
|
|
115
|
+
paddingHorizontal,
|
|
116
|
+
paddingVertical,
|
|
117
|
+
margin,
|
|
118
|
+
marginTop,
|
|
119
|
+
marginBottom,
|
|
120
|
+
marginLeft,
|
|
121
|
+
marginRight,
|
|
122
|
+
flexDirection,
|
|
123
|
+
alignItems,
|
|
124
|
+
justifyContent,
|
|
125
|
+
position,
|
|
126
|
+
top,
|
|
127
|
+
bottom,
|
|
128
|
+
left,
|
|
129
|
+
right,
|
|
130
|
+
flex,
|
|
131
|
+
...style
|
|
132
|
+
});
|
|
133
|
+
const finalTestID = dataTestId || testID;
|
|
134
|
+
const {
|
|
135
|
+
role,
|
|
136
|
+
tabIndex,
|
|
137
|
+
onKeyDown,
|
|
138
|
+
onKeyUp,
|
|
139
|
+
"aria-label": _ariaLabel,
|
|
140
|
+
"aria-labelledby": _ariaLabelledBy,
|
|
141
|
+
"aria-current": _ariaCurrent,
|
|
142
|
+
"aria-disabled": _ariaDisabled,
|
|
143
|
+
"aria-live": _ariaLive,
|
|
144
|
+
className,
|
|
145
|
+
"data-testid": _dataTestId,
|
|
146
|
+
...nativeRest
|
|
147
|
+
} = rest;
|
|
148
|
+
if (as === "img" && src) {
|
|
149
|
+
const imageStyle = {
|
|
150
|
+
width,
|
|
151
|
+
height,
|
|
152
|
+
borderRadius,
|
|
153
|
+
position,
|
|
154
|
+
top,
|
|
155
|
+
bottom,
|
|
156
|
+
left,
|
|
157
|
+
right,
|
|
158
|
+
...style
|
|
159
|
+
};
|
|
160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
161
|
+
import_react_native.Image,
|
|
162
|
+
{
|
|
163
|
+
source: { uri: src },
|
|
164
|
+
style: imageStyle,
|
|
165
|
+
testID: finalTestID,
|
|
166
|
+
resizeMode: "cover",
|
|
167
|
+
...nativeRest
|
|
168
|
+
}
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
if (onPress) {
|
|
172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
173
|
+
import_react_native.Pressable,
|
|
174
|
+
{
|
|
175
|
+
onPress,
|
|
176
|
+
onLayout,
|
|
177
|
+
onMoveShouldSetResponder,
|
|
178
|
+
onResponderGrant,
|
|
179
|
+
onResponderMove,
|
|
180
|
+
onResponderRelease,
|
|
181
|
+
onResponderTerminate,
|
|
182
|
+
style: ({ pressed }) => getContainerStyle(pressed),
|
|
183
|
+
testID: finalTestID,
|
|
184
|
+
...nativeRest,
|
|
185
|
+
children
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
190
|
+
import_react_native.View,
|
|
191
|
+
{
|
|
192
|
+
style: getContainerStyle(),
|
|
193
|
+
testID: finalTestID,
|
|
194
|
+
onLayout,
|
|
195
|
+
onMoveShouldSetResponder,
|
|
196
|
+
onResponderGrant,
|
|
197
|
+
onResponderMove,
|
|
198
|
+
onResponderRelease,
|
|
199
|
+
onResponderTerminate,
|
|
200
|
+
...nativeRest,
|
|
201
|
+
children
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
// ../primitives-native/src/Text.tsx
|
|
207
|
+
var import_react_native2 = require("react-native");
|
|
208
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
209
|
+
|
|
210
|
+
// ../primitives-native/src/Spinner.tsx
|
|
211
|
+
var import_react_native3 = require("react-native");
|
|
212
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
213
|
+
var Spinner = ({
|
|
214
|
+
color,
|
|
215
|
+
size,
|
|
216
|
+
role,
|
|
217
|
+
"aria-label": ariaLabel,
|
|
218
|
+
"aria-live": ariaLive,
|
|
219
|
+
"aria-describedby": ariaDescribedBy,
|
|
220
|
+
testID
|
|
221
|
+
}) => {
|
|
222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
223
|
+
import_react_native3.View,
|
|
224
|
+
{
|
|
225
|
+
accessible: true,
|
|
226
|
+
accessibilityRole: role === "status" ? "none" : void 0,
|
|
227
|
+
accessibilityLabel: ariaLabel,
|
|
228
|
+
accessibilityLiveRegion: ariaLive === "polite" ? "polite" : ariaLive === "assertive" ? "assertive" : "none",
|
|
229
|
+
testID,
|
|
230
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
231
|
+
import_react_native3.ActivityIndicator,
|
|
232
|
+
{
|
|
233
|
+
color,
|
|
234
|
+
size: typeof size === "number" ? size : "small"
|
|
235
|
+
}
|
|
236
|
+
)
|
|
237
|
+
}
|
|
238
|
+
);
|
|
239
|
+
};
|
|
240
|
+
Spinner.displayName = "Spinner";
|
|
241
|
+
|
|
242
|
+
// ../primitives-native/src/Icon.tsx
|
|
243
|
+
var import_react = __toESM(require("react"));
|
|
244
|
+
var import_react_native4 = require("react-native");
|
|
245
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
246
|
+
|
|
247
|
+
// ../primitives-native/src/Divider.tsx
|
|
248
|
+
var import_react_native5 = require("react-native");
|
|
249
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
250
|
+
|
|
251
|
+
// ../primitives-native/src/Input.tsx
|
|
252
|
+
var import_react2 = require("react");
|
|
253
|
+
var import_react_native6 = require("react-native");
|
|
254
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
255
|
+
var keyboardTypeMap = {
|
|
256
|
+
text: "default",
|
|
257
|
+
number: "numeric",
|
|
258
|
+
email: "email-address",
|
|
259
|
+
tel: "phone-pad",
|
|
260
|
+
url: "url",
|
|
261
|
+
decimal: "decimal-pad"
|
|
262
|
+
};
|
|
263
|
+
var inputModeToKeyboardType = {
|
|
264
|
+
none: "default",
|
|
265
|
+
text: "default",
|
|
266
|
+
decimal: "decimal-pad",
|
|
267
|
+
numeric: "number-pad",
|
|
268
|
+
tel: "phone-pad",
|
|
269
|
+
search: "default",
|
|
270
|
+
email: "email-address",
|
|
271
|
+
url: "url"
|
|
272
|
+
};
|
|
273
|
+
var autoCompleteToTextContentType = {
|
|
274
|
+
"one-time-code": "oneTimeCode",
|
|
275
|
+
email: "emailAddress",
|
|
276
|
+
username: "username",
|
|
277
|
+
password: "password",
|
|
278
|
+
"new-password": "newPassword",
|
|
279
|
+
tel: "telephoneNumber",
|
|
280
|
+
"postal-code": "postalCode",
|
|
281
|
+
name: "name"
|
|
282
|
+
};
|
|
283
|
+
var InputPrimitive = (0, import_react2.forwardRef)(
|
|
284
|
+
({
|
|
285
|
+
value,
|
|
286
|
+
placeholder,
|
|
287
|
+
onChange,
|
|
288
|
+
onChangeText,
|
|
289
|
+
onFocus,
|
|
290
|
+
onBlur,
|
|
291
|
+
onKeyDown,
|
|
292
|
+
disabled,
|
|
293
|
+
secureTextEntry,
|
|
294
|
+
style,
|
|
295
|
+
color,
|
|
296
|
+
fontSize,
|
|
297
|
+
placeholderTextColor,
|
|
298
|
+
maxLength,
|
|
299
|
+
name,
|
|
300
|
+
type,
|
|
301
|
+
inputMode,
|
|
302
|
+
autoComplete,
|
|
303
|
+
id,
|
|
304
|
+
"aria-invalid": ariaInvalid,
|
|
305
|
+
"aria-describedby": ariaDescribedBy,
|
|
306
|
+
"aria-labelledby": ariaLabelledBy,
|
|
307
|
+
"aria-label": ariaLabel,
|
|
308
|
+
"aria-disabled": ariaDisabled,
|
|
309
|
+
"data-testid": dataTestId
|
|
310
|
+
}, ref) => {
|
|
311
|
+
const handleChangeText = (text) => {
|
|
312
|
+
onChangeText?.(text);
|
|
313
|
+
if (onChange) {
|
|
314
|
+
const syntheticEvent = {
|
|
315
|
+
target: { value: text },
|
|
316
|
+
currentTarget: { value: text },
|
|
317
|
+
type: "change",
|
|
318
|
+
nativeEvent: { text },
|
|
319
|
+
preventDefault: () => {
|
|
320
|
+
},
|
|
321
|
+
stopPropagation: () => {
|
|
322
|
+
},
|
|
323
|
+
isTrusted: false
|
|
324
|
+
};
|
|
325
|
+
onChange(syntheticEvent);
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
const keyboardType = inputMode ? inputModeToKeyboardType[inputMode] || "default" : type ? keyboardTypeMap[type] || "default" : "default";
|
|
329
|
+
const textContentType = autoComplete ? autoCompleteToTextContentType[autoComplete] : void 0;
|
|
330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
331
|
+
import_react_native6.TextInput,
|
|
332
|
+
{
|
|
333
|
+
ref,
|
|
334
|
+
value,
|
|
335
|
+
placeholder,
|
|
336
|
+
onChangeText: handleChangeText,
|
|
337
|
+
onFocus,
|
|
338
|
+
onBlur,
|
|
339
|
+
onKeyPress: (e) => {
|
|
340
|
+
if (onKeyDown) {
|
|
341
|
+
onKeyDown({
|
|
342
|
+
key: e.nativeEvent.key,
|
|
343
|
+
preventDefault: () => {
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
editable: !disabled,
|
|
349
|
+
secureTextEntry: secureTextEntry || type === "password",
|
|
350
|
+
keyboardType,
|
|
351
|
+
textContentType,
|
|
352
|
+
style: [
|
|
353
|
+
{
|
|
354
|
+
color,
|
|
355
|
+
fontSize: typeof fontSize === "number" ? fontSize : void 0,
|
|
356
|
+
flex: 1,
|
|
357
|
+
padding: 0,
|
|
358
|
+
textAlign: style?.textAlign || "left"
|
|
359
|
+
},
|
|
360
|
+
style
|
|
361
|
+
],
|
|
362
|
+
placeholderTextColor,
|
|
363
|
+
maxLength,
|
|
364
|
+
testID: dataTestId || id,
|
|
365
|
+
accessibilityLabel: ariaLabel,
|
|
366
|
+
accessibilityHint: ariaDescribedBy,
|
|
367
|
+
accessibilityState: {
|
|
368
|
+
disabled: disabled || ariaDisabled
|
|
369
|
+
},
|
|
370
|
+
accessible: true
|
|
371
|
+
}
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
);
|
|
375
|
+
InputPrimitive.displayName = "InputPrimitive";
|
|
376
|
+
|
|
377
|
+
// ../primitives-native/src/TextArea.tsx
|
|
378
|
+
var import_react3 = require("react");
|
|
379
|
+
var import_react_native7 = require("react-native");
|
|
380
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
381
|
+
var TextAreaPrimitive = (0, import_react3.forwardRef)(
|
|
382
|
+
({
|
|
383
|
+
value,
|
|
384
|
+
placeholder,
|
|
385
|
+
onChange,
|
|
386
|
+
onChangeText,
|
|
387
|
+
onFocus,
|
|
388
|
+
onBlur,
|
|
389
|
+
onKeyDown,
|
|
390
|
+
disabled,
|
|
391
|
+
style,
|
|
392
|
+
color,
|
|
393
|
+
fontSize,
|
|
394
|
+
placeholderTextColor,
|
|
395
|
+
maxLength,
|
|
396
|
+
rows,
|
|
397
|
+
id,
|
|
398
|
+
"aria-invalid": ariaInvalid,
|
|
399
|
+
"aria-describedby": ariaDescribedBy,
|
|
400
|
+
"aria-labelledby": ariaLabelledBy,
|
|
401
|
+
"aria-label": ariaLabel,
|
|
402
|
+
"aria-disabled": ariaDisabled,
|
|
403
|
+
"data-testid": dataTestId
|
|
404
|
+
}, ref) => {
|
|
405
|
+
const handleChangeText = (text) => {
|
|
406
|
+
onChangeText?.(text);
|
|
407
|
+
if (onChange) {
|
|
408
|
+
const syntheticEvent = {
|
|
409
|
+
target: { value: text },
|
|
410
|
+
currentTarget: { value: text },
|
|
411
|
+
type: "change",
|
|
412
|
+
nativeEvent: { text },
|
|
413
|
+
preventDefault: () => {
|
|
414
|
+
},
|
|
415
|
+
stopPropagation: () => {
|
|
416
|
+
},
|
|
417
|
+
isTrusted: false
|
|
418
|
+
};
|
|
419
|
+
onChange(syntheticEvent);
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
423
|
+
import_react_native7.TextInput,
|
|
424
|
+
{
|
|
425
|
+
ref,
|
|
426
|
+
value,
|
|
427
|
+
placeholder,
|
|
428
|
+
onChangeText: handleChangeText,
|
|
429
|
+
onFocus,
|
|
430
|
+
onBlur,
|
|
431
|
+
onKeyPress: (e) => {
|
|
432
|
+
if (onKeyDown) {
|
|
433
|
+
onKeyDown({
|
|
434
|
+
key: e.nativeEvent.key,
|
|
435
|
+
preventDefault: () => {
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
editable: !disabled,
|
|
441
|
+
multiline: true,
|
|
442
|
+
numberOfLines: rows || 4,
|
|
443
|
+
style: [
|
|
444
|
+
{
|
|
445
|
+
color,
|
|
446
|
+
fontSize: typeof fontSize === "number" ? fontSize : void 0,
|
|
447
|
+
flex: 1,
|
|
448
|
+
padding: 0,
|
|
449
|
+
textAlignVertical: "top",
|
|
450
|
+
textAlign: style?.textAlign || "left"
|
|
451
|
+
},
|
|
452
|
+
style
|
|
453
|
+
],
|
|
454
|
+
placeholderTextColor,
|
|
455
|
+
maxLength,
|
|
456
|
+
testID: dataTestId || id,
|
|
457
|
+
accessibilityLabel: ariaLabel,
|
|
458
|
+
accessibilityHint: ariaDescribedBy,
|
|
459
|
+
accessibilityState: {
|
|
460
|
+
disabled: disabled || ariaDisabled
|
|
461
|
+
},
|
|
462
|
+
accessible: true
|
|
463
|
+
}
|
|
464
|
+
);
|
|
465
|
+
}
|
|
466
|
+
);
|
|
467
|
+
TextAreaPrimitive.displayName = "TextAreaPrimitive";
|
|
468
|
+
|
|
469
|
+
// src/ProgressLine.tsx
|
|
470
|
+
var import_xui_core = require("@xsolla/xui-core");
|
|
471
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
472
|
+
var getHeight = (size) => {
|
|
473
|
+
switch (size) {
|
|
474
|
+
case "sm":
|
|
475
|
+
return 4;
|
|
476
|
+
case "md":
|
|
477
|
+
return 6;
|
|
478
|
+
case "lg":
|
|
479
|
+
return 8;
|
|
480
|
+
default:
|
|
481
|
+
return 6;
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
var getStateColor = (state, theme) => {
|
|
485
|
+
switch (state) {
|
|
486
|
+
case "success":
|
|
487
|
+
return theme.colors.content.success.primary;
|
|
488
|
+
case "error":
|
|
489
|
+
return theme.colors.content.alert.primary;
|
|
490
|
+
default:
|
|
491
|
+
return theme.colors.content.brand.primary;
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
var ProgressLine = (0, import_react4.forwardRef)(
|
|
495
|
+
({ size = "md", state = "default", percent = 0, ...rest }, ref) => {
|
|
496
|
+
const { theme } = (0, import_xui_core.useDesignSystem)();
|
|
497
|
+
const validPercent = Math.min(Math.max(0, percent), 100);
|
|
498
|
+
const height = getHeight(size);
|
|
499
|
+
const innerColor = getStateColor(state, theme);
|
|
500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
501
|
+
Box,
|
|
502
|
+
{
|
|
503
|
+
...rest,
|
|
504
|
+
ref,
|
|
505
|
+
width: "100%",
|
|
506
|
+
height,
|
|
507
|
+
backgroundColor: theme.colors.background.secondary,
|
|
508
|
+
borderRadius: 100,
|
|
509
|
+
overflow: "hidden",
|
|
510
|
+
"data-testid": "progress-line__outer",
|
|
511
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
512
|
+
Box,
|
|
513
|
+
{
|
|
514
|
+
height: "100%",
|
|
515
|
+
width: `${validPercent}%`,
|
|
516
|
+
backgroundColor: innerColor,
|
|
517
|
+
borderRadius: 100,
|
|
518
|
+
"data-testid": "progress-line__inner"
|
|
519
|
+
}
|
|
520
|
+
)
|
|
521
|
+
}
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
);
|
|
525
|
+
ProgressLine.displayName = "ProgressLine";
|
|
526
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
527
|
+
0 && (module.exports = {
|
|
528
|
+
ProgressLine
|
|
529
|
+
});
|
|
530
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.tsx","../../src/ProgressLine.tsx","../../../primitives-native/src/Box.tsx","../../../primitives-native/src/Text.tsx","../../../primitives-native/src/Spinner.tsx","../../../primitives-native/src/Icon.tsx","../../../primitives-native/src/Divider.tsx","../../../primitives-native/src/Input.tsx","../../../primitives-native/src/TextArea.tsx"],"sourcesContent":["export * from \"./ProgressLine\";\nexport * from \"./types\";\n","import React, { forwardRef } from \"react\";\n// @ts-ignore - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useDesignSystem } from \"@xsolla/xui-core\";\nimport type {\n ProgressLineProps,\n ProgressLineSize,\n ProgressLineState,\n} from \"./types\";\n\nconst getHeight = (size: ProgressLineSize) => {\n switch (size) {\n case \"sm\":\n return 4;\n case \"md\":\n return 6;\n case \"lg\":\n return 8;\n default:\n return 6;\n }\n};\n\nconst getStateColor = (state: ProgressLineState, theme: any) => {\n switch (state) {\n case \"success\":\n return theme.colors.content.success.primary;\n case \"error\":\n return theme.colors.content.alert.primary;\n default:\n return theme.colors.content.brand.primary;\n }\n};\n\nexport const ProgressLine = forwardRef<any, ProgressLineProps>(\n ({ size = \"md\", state = \"default\", percent = 0, ...rest }, ref) => {\n const { theme } = useDesignSystem();\n const validPercent = Math.min(Math.max(0, percent), 100);\n const height = getHeight(size);\n const innerColor = getStateColor(state, theme);\n\n return (\n <Box\n {...rest}\n ref={ref}\n width=\"100%\"\n height={height}\n backgroundColor={theme.colors.background.secondary} // using secondary as ghost/placeholder\n borderRadius={100}\n overflow=\"hidden\"\n data-testid=\"progress-line__outer\"\n >\n <Box\n height=\"100%\"\n width={`${validPercent}%`}\n backgroundColor={innerColor}\n borderRadius={100}\n data-testid=\"progress-line__inner\"\n />\n </Box>\n );\n }\n);\n\nProgressLine.displayName = \"ProgressLine\";\n","import React from \"react\";\nimport {\n View,\n Pressable,\n Image,\n ViewStyle,\n ImageStyle,\n DimensionValue,\n AnimatableNumericValue,\n} from \"react-native\";\nimport { BoxProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Box: React.FC<BoxProps> = ({\n children,\n onPress,\n onLayout,\n onMoveShouldSetResponder,\n onResponderGrant,\n onResponderMove,\n onResponderRelease,\n onResponderTerminate,\n backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius,\n borderStyle,\n height,\n padding,\n paddingHorizontal,\n paddingVertical,\n margin,\n marginTop,\n marginBottom,\n marginLeft,\n marginRight,\n flexDirection,\n alignItems,\n justifyContent,\n position,\n top,\n bottom,\n left,\n right,\n width,\n flex,\n overflow,\n zIndex,\n hoverStyle,\n pressStyle,\n style,\n \"data-testid\": dataTestId,\n testID,\n as,\n src,\n alt,\n ...rest\n}) => {\n const getContainerStyle = (pressed?: boolean): ViewStyle => ({\n backgroundColor:\n pressed && pressStyle?.backgroundColor\n ? pressStyle.backgroundColor\n : backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius: borderRadius as AnimatableNumericValue,\n borderStyle: borderStyle as ViewStyle[\"borderStyle\"],\n overflow,\n zIndex,\n height: height as DimensionValue,\n width: width as DimensionValue,\n padding: padding as DimensionValue,\n paddingHorizontal: paddingHorizontal as DimensionValue,\n paddingVertical: paddingVertical as DimensionValue,\n margin: margin as DimensionValue,\n marginTop: marginTop as DimensionValue,\n marginBottom: marginBottom as DimensionValue,\n marginLeft: marginLeft as DimensionValue,\n marginRight: marginRight as DimensionValue,\n flexDirection,\n alignItems,\n justifyContent,\n position: position as ViewStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n flex,\n ...(style as ViewStyle),\n });\n\n const finalTestID = dataTestId || testID;\n\n // Destructure and drop web-only props from rest before passing to RN components\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {\n role,\n tabIndex,\n onKeyDown,\n onKeyUp,\n \"aria-label\": _ariaLabel,\n \"aria-labelledby\": _ariaLabelledBy,\n \"aria-current\": _ariaCurrent,\n \"aria-disabled\": _ariaDisabled,\n \"aria-live\": _ariaLive,\n className,\n \"data-testid\": _dataTestId,\n ...nativeRest\n } = rest as Record<string, unknown>;\n\n // Handle as=\"img\" for React Native\n if (as === \"img\" && src) {\n const imageStyle: ImageStyle = {\n width: width as DimensionValue,\n height: height as DimensionValue,\n borderRadius: borderRadius as number,\n position: position as ImageStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n ...(style as ImageStyle),\n };\n\n return (\n <Image\n source={{ uri: src }}\n style={imageStyle}\n testID={finalTestID}\n resizeMode=\"cover\"\n {...nativeRest}\n />\n );\n }\n\n if (onPress) {\n return (\n <Pressable\n onPress={onPress}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n style={({ pressed }) => getContainerStyle(pressed)}\n testID={finalTestID}\n {...nativeRest}\n >\n {children}\n </Pressable>\n );\n }\n\n return (\n <View\n style={getContainerStyle()}\n testID={finalTestID}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n {...nativeRest}\n >\n {children}\n </View>\n );\n};\n","import React from \"react\";\nimport { Text as RNText, TextStyle, AccessibilityRole } from \"react-native\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\n\n// Map web roles to React Native accessibility roles\nconst roleMap: Record<string, AccessibilityRole> = {\n alert: \"alert\",\n heading: \"header\",\n button: \"button\",\n link: \"link\",\n text: \"text\",\n};\n\nexport const Text: React.FC<TextProps> = ({\n children,\n color,\n fontSize,\n fontWeight,\n fontFamily,\n id,\n role,\n ...props\n}) => {\n // Extract the first font name from a comma-separated list (e.g. for web-style font stacks)\n let resolvedFontFamily = fontFamily\n ? fontFamily.split(\",\")[0].replace(/['\"]/g, \"\").trim()\n : undefined;\n\n // On native, if we don't have the custom font loaded, it's better to use the system font\n // to avoid rendering issues or missing text.\n if (resolvedFontFamily === \"Pilat Wide Bold\") {\n resolvedFontFamily = undefined;\n }\n\n const style: TextStyle = {\n color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n fontWeight: fontWeight as TextStyle[\"fontWeight\"],\n fontFamily: resolvedFontFamily,\n textDecorationLine: props.textDecoration as TextStyle[\"textDecorationLine\"],\n };\n\n // Map role to React Native accessibilityRole\n const accessibilityRole = role ? roleMap[role] : undefined;\n\n return (\n <RNText style={style} testID={id} accessibilityRole={accessibilityRole}>\n {children}\n </RNText>\n );\n};\n","import type React from \"react\";\nimport { ActivityIndicator, View } from \"react-native\";\nimport type { SpinnerProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Spinner: React.FC<SpinnerProps> = ({\n color,\n size,\n role,\n \"aria-label\": ariaLabel,\n \"aria-live\": ariaLive,\n \"aria-describedby\": ariaDescribedBy,\n testID,\n}) => {\n return (\n <View\n accessible={true}\n accessibilityRole={role === \"status\" ? \"none\" : undefined}\n accessibilityLabel={ariaLabel}\n accessibilityLiveRegion={\n ariaLive === \"polite\"\n ? \"polite\"\n : ariaLive === \"assertive\"\n ? \"assertive\"\n : \"none\"\n }\n testID={testID}\n >\n <ActivityIndicator\n color={color}\n size={typeof size === \"number\" ? size : \"small\"}\n />\n </View>\n );\n};\n\nSpinner.displayName = \"Spinner\";\n","import React from \"react\";\nimport { View, ViewStyle } from \"react-native\";\nimport { IconProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Icon: React.FC<IconProps> = ({ children, color, size }) => {\n const style: ViewStyle = {\n width: typeof size === \"number\" ? size : undefined,\n height: typeof size === \"number\" ? size : undefined,\n alignItems: \"center\",\n justifyContent: \"center\",\n };\n\n // On native, we try to pass the color down to children (like Text primitives)\n // to mimic the CSS inheritance behavior of the web version.\n const childrenWithProps = React.Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n // @ts-ignore - passing color down to potential Text/Icon children\n return React.cloneElement(child, {\n color: child.props.color || color,\n // Also pass size if child seems to be an icon that needs it\n size: child.props.size || size,\n });\n }\n return child;\n });\n\n return <View style={style}>{childrenWithProps}</View>;\n};\n","import React from \"react\";\nimport { View, ViewStyle } from \"react-native\";\nimport { DividerProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Divider: React.FC<DividerProps> = ({\n color,\n height,\n width,\n vertical,\n dashStroke,\n}) => {\n const style: ViewStyle = {\n backgroundColor: dashStroke\n ? \"transparent\"\n : color || \"rgba(255, 255, 255, 0.15)\",\n width: vertical ? (typeof width === \"number\" ? width : 1) : \"100%\",\n height: vertical ? \"100%\" : typeof height === \"number\" ? height : 1,\n ...(dashStroke && {\n borderStyle: \"dashed\",\n borderColor: color || \"rgba(255, 255, 255, 0.15)\",\n borderWidth: 0,\n ...(vertical\n ? { borderLeftWidth: typeof width === \"number\" ? width : 1 }\n : { borderTopWidth: typeof height === \"number\" ? height : 1 }),\n }),\n };\n\n return <View style={style} />;\n};\n","import React, { forwardRef } from \"react\";\nimport { TextInput as RNTextInput } from \"react-native\";\nimport { InputPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\n// Map web input types to React Native keyboard types\nconst keyboardTypeMap: Record<string, any> = {\n text: \"default\",\n number: \"numeric\",\n email: \"email-address\",\n tel: \"phone-pad\",\n url: \"url\",\n decimal: \"decimal-pad\",\n};\n\n// Map web inputMode to React Native keyboard types\nconst inputModeToKeyboardType: Record<string, any> = {\n none: \"default\",\n text: \"default\",\n decimal: \"decimal-pad\",\n numeric: \"number-pad\",\n tel: \"phone-pad\",\n search: \"default\",\n email: \"email-address\",\n url: \"url\",\n};\n\n// Map web autoComplete to React Native textContentType (iOS)\nconst autoCompleteToTextContentType: Record<string, any> = {\n \"one-time-code\": \"oneTimeCode\",\n email: \"emailAddress\",\n username: \"username\",\n password: \"password\",\n \"new-password\": \"newPassword\",\n tel: \"telephoneNumber\",\n \"postal-code\": \"postalCode\",\n name: \"name\",\n};\n\nexport const InputPrimitive = forwardRef<RNTextInput, InputPrimitiveProps>(\n (\n {\n value,\n placeholder,\n onChange,\n onChangeText,\n onFocus,\n onBlur,\n onKeyDown,\n disabled,\n secureTextEntry,\n style,\n color,\n fontSize,\n placeholderTextColor,\n maxLength,\n name,\n type,\n inputMode,\n autoComplete,\n id,\n \"aria-invalid\": ariaInvalid,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-label\": ariaLabel,\n \"aria-disabled\": ariaDisabled,\n \"data-testid\": dataTestId,\n },\n ref\n ) => {\n const handleChangeText = (text: string) => {\n onChangeText?.(text);\n\n // Create a synthetic event for onChange compatibility\n // Include nativeEvent and no-op methods to prevent runtime errors\n // when consumers expect DOM-like event behavior\n if (onChange) {\n const syntheticEvent = {\n target: { value: text },\n currentTarget: { value: text },\n type: \"change\",\n nativeEvent: { text },\n preventDefault: () => {},\n stopPropagation: () => {},\n isTrusted: false,\n } as unknown as React.ChangeEvent<HTMLInputElement>;\n onChange(syntheticEvent);\n }\n };\n\n // Determine keyboard type - inputMode takes precedence over type\n const keyboardType = inputMode\n ? inputModeToKeyboardType[inputMode] || \"default\"\n : type\n ? keyboardTypeMap[type] || \"default\"\n : \"default\";\n\n // Determine textContentType for iOS autofill\n const textContentType = autoComplete\n ? autoCompleteToTextContentType[autoComplete]\n : undefined;\n\n return (\n <RNTextInput\n ref={ref}\n value={value}\n placeholder={placeholder}\n onChangeText={handleChangeText}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyPress={(e) => {\n // Map onKeyPress to onKeyDown for cross-platform compatibility\n // Include preventDefault to avoid runtime errors when consumers call it\n if (onKeyDown) {\n onKeyDown({\n key: e.nativeEvent.key,\n preventDefault: () => {},\n } as any);\n }\n }}\n editable={!disabled}\n secureTextEntry={secureTextEntry || type === \"password\"}\n keyboardType={keyboardType}\n textContentType={textContentType}\n style={[\n {\n color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n flex: 1,\n padding: 0,\n textAlign: (style as any)?.textAlign || \"left\",\n },\n style as any,\n ]}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\n // React Native accessibility props\n testID={dataTestId || id}\n accessibilityLabel={ariaLabel}\n accessibilityHint={ariaDescribedBy}\n accessibilityState={{\n disabled: disabled || ariaDisabled,\n }}\n accessible={true}\n />\n );\n }\n);\n\nInputPrimitive.displayName = \"InputPrimitive\";\n","import React, { forwardRef } from \"react\";\nimport { TextInput as RNTextInput } from \"react-native\";\nimport { TextAreaPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\nexport const TextAreaPrimitive = forwardRef<\n RNTextInput,\n TextAreaPrimitiveProps\n>(\n (\n {\n value,\n placeholder,\n onChange,\n onChangeText,\n onFocus,\n onBlur,\n onKeyDown,\n disabled,\n style,\n color,\n fontSize,\n placeholderTextColor,\n maxLength,\n rows,\n id,\n \"aria-invalid\": ariaInvalid,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-label\": ariaLabel,\n \"aria-disabled\": ariaDisabled,\n \"data-testid\": dataTestId,\n },\n ref\n ) => {\n const handleChangeText = (text: string) => {\n onChangeText?.(text);\n\n if (onChange) {\n const syntheticEvent = {\n target: { value: text },\n currentTarget: { value: text },\n type: \"change\",\n nativeEvent: { text },\n preventDefault: () => {},\n stopPropagation: () => {},\n isTrusted: false,\n } as unknown as React.ChangeEvent<HTMLTextAreaElement>;\n onChange(syntheticEvent);\n }\n };\n\n return (\n <RNTextInput\n ref={ref}\n value={value}\n placeholder={placeholder}\n onChangeText={handleChangeText}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyPress={(e) => {\n if (onKeyDown) {\n onKeyDown({\n key: e.nativeEvent.key,\n preventDefault: () => {},\n } as any);\n }\n }}\n editable={!disabled}\n multiline={true}\n numberOfLines={rows || 4}\n style={[\n {\n color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n flex: 1,\n padding: 0,\n textAlignVertical: \"top\",\n textAlign: (style as any)?.textAlign || \"left\",\n },\n style as any,\n ]}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\n testID={dataTestId || id}\n accessibilityLabel={ariaLabel}\n accessibilityHint={ariaDescribedBy}\n accessibilityState={{\n disabled: disabled || ariaDisabled,\n }}\n accessible={true}\n />\n );\n }\n);\n\nTextAreaPrimitive.displayName = \"TextAreaPrimitive\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,gBAAkC;;;ACClC,0BAQO;AAmID;AAhIC,IAAM,MAA0B,CAAC;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,oBAAoB,CAAC,aAAkC;AAAA,IAC3D,iBACE,WAAW,YAAY,kBACnB,WAAW,kBACX;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAI;AAA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AAAA,QACA,OAAM;AAAA,QACN;AAAA,QACA,iBAAiB,MAAM,OAAO,WAAW;AAAA,QACzC,cAAc;AAAA,QACd,UAAS;AAAA,QACT,eAAY;AAAA,QAEZ;AAAA,UAAC;AAAA;AAAA,YACC,QAAO;AAAA,YACP,OAAO,GAAG,YAAY;AAAA,YACtB,iBAAiB;AAAA,YACjB,cAAc;AAAA,YACd,eAAY;AAAA;AAAA,QACd;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,aAAa,cAAc;","names":["import_react","import_react_native","import_jsx_runtime","import_react_native","import_jsx_runtime","import_react_native","import_jsx_runtime","import_react_native","import_jsx_runtime","import_react","import_react_native","import_jsx_runtime","RNTextInput","import_react","import_react_native","import_jsx_runtime","RNTextInput","import_jsx_runtime"]}
|