@xsolla/xui-nav-bar-native 0.64.0-pr56.1768348754

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/index.d.mts ADDED
@@ -0,0 +1,45 @@
1
+ import React, { ReactNode } from 'react';
2
+
3
+ interface NavBarProps {
4
+ /**
5
+ * Size variant of the NavBar
6
+ * @default 'md'
7
+ */
8
+ size?: "sm" | "md" | "lg";
9
+ /**
10
+ * Whether to show a bottom border
11
+ * @default false
12
+ */
13
+ bordered?: boolean;
14
+ /**
15
+ * Custom background color
16
+ */
17
+ backgroundColor?: string;
18
+ /**
19
+ * Content of the NavBar, typically StartSlot, Center, and EndSlot
20
+ */
21
+ children?: ReactNode;
22
+ /**
23
+ * Test ID for testing frameworks
24
+ */
25
+ testID?: string;
26
+ }
27
+ interface NavBarSlotProps {
28
+ /**
29
+ * Slot content
30
+ */
31
+ children?: ReactNode;
32
+ /**
33
+ * Test ID for testing frameworks
34
+ */
35
+ testID?: string;
36
+ }
37
+
38
+ declare const NavBarRoot: React.FC<NavBarProps>;
39
+ declare const NavBar: React.FC<NavBarProps> & {
40
+ StartSlot: React.FC<NavBarSlotProps>;
41
+ Center: React.FC<NavBarSlotProps>;
42
+ EndSlot: React.FC<NavBarSlotProps>;
43
+ };
44
+
45
+ export { NavBar, type NavBarProps, NavBarRoot, type NavBarSlotProps };
package/index.d.ts ADDED
@@ -0,0 +1,45 @@
1
+ import React, { ReactNode } from 'react';
2
+
3
+ interface NavBarProps {
4
+ /**
5
+ * Size variant of the NavBar
6
+ * @default 'md'
7
+ */
8
+ size?: "sm" | "md" | "lg";
9
+ /**
10
+ * Whether to show a bottom border
11
+ * @default false
12
+ */
13
+ bordered?: boolean;
14
+ /**
15
+ * Custom background color
16
+ */
17
+ backgroundColor?: string;
18
+ /**
19
+ * Content of the NavBar, typically StartSlot, Center, and EndSlot
20
+ */
21
+ children?: ReactNode;
22
+ /**
23
+ * Test ID for testing frameworks
24
+ */
25
+ testID?: string;
26
+ }
27
+ interface NavBarSlotProps {
28
+ /**
29
+ * Slot content
30
+ */
31
+ children?: ReactNode;
32
+ /**
33
+ * Test ID for testing frameworks
34
+ */
35
+ testID?: string;
36
+ }
37
+
38
+ declare const NavBarRoot: React.FC<NavBarProps>;
39
+ declare const NavBar: React.FC<NavBarProps> & {
40
+ StartSlot: React.FC<NavBarSlotProps>;
41
+ Center: React.FC<NavBarSlotProps>;
42
+ EndSlot: React.FC<NavBarSlotProps>;
43
+ };
44
+
45
+ export { NavBar, type NavBarProps, NavBarRoot, type NavBarSlotProps };
package/index.js ADDED
@@ -0,0 +1,555 @@
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
+ NavBar: () => NavBar,
34
+ NavBarRoot: () => NavBarRoot
35
+ });
36
+ module.exports = __toCommonJS(index_exports);
37
+
38
+ // ../primitives-native/src/Box.tsx
39
+ var import_react_native = require("react-native");
40
+ var import_jsx_runtime = require("react/jsx-runtime");
41
+ var Box = ({
42
+ children,
43
+ onPress,
44
+ onLayout,
45
+ onMoveShouldSetResponder,
46
+ onResponderGrant,
47
+ onResponderMove,
48
+ onResponderRelease,
49
+ onResponderTerminate,
50
+ backgroundColor,
51
+ borderColor,
52
+ borderWidth,
53
+ borderBottomWidth,
54
+ borderBottomColor,
55
+ borderTopWidth,
56
+ borderTopColor,
57
+ borderLeftWidth,
58
+ borderLeftColor,
59
+ borderRightWidth,
60
+ borderRightColor,
61
+ borderRadius,
62
+ borderStyle,
63
+ height,
64
+ padding,
65
+ paddingHorizontal,
66
+ paddingVertical,
67
+ margin,
68
+ marginTop,
69
+ marginBottom,
70
+ marginLeft,
71
+ marginRight,
72
+ flexDirection,
73
+ alignItems,
74
+ justifyContent,
75
+ position,
76
+ top,
77
+ bottom,
78
+ left,
79
+ right,
80
+ width,
81
+ flex,
82
+ overflow,
83
+ zIndex,
84
+ hoverStyle,
85
+ pressStyle,
86
+ style,
87
+ "data-testid": dataTestId,
88
+ testID,
89
+ as,
90
+ src,
91
+ alt,
92
+ ...rest
93
+ }) => {
94
+ const getContainerStyle = (pressed) => ({
95
+ backgroundColor: pressed && pressStyle?.backgroundColor ? pressStyle.backgroundColor : backgroundColor,
96
+ borderColor,
97
+ borderWidth,
98
+ borderBottomWidth,
99
+ borderBottomColor,
100
+ borderTopWidth,
101
+ borderTopColor,
102
+ borderLeftWidth,
103
+ borderLeftColor,
104
+ borderRightWidth,
105
+ borderRightColor,
106
+ borderRadius,
107
+ borderStyle,
108
+ overflow,
109
+ zIndex,
110
+ height,
111
+ width,
112
+ padding,
113
+ paddingHorizontal,
114
+ paddingVertical,
115
+ margin,
116
+ marginTop,
117
+ marginBottom,
118
+ marginLeft,
119
+ marginRight,
120
+ flexDirection,
121
+ alignItems,
122
+ justifyContent,
123
+ position,
124
+ top,
125
+ bottom,
126
+ left,
127
+ right,
128
+ flex,
129
+ ...style
130
+ });
131
+ const finalTestID = dataTestId || testID;
132
+ const {
133
+ role,
134
+ tabIndex,
135
+ onKeyDown,
136
+ onKeyUp,
137
+ "aria-label": _ariaLabel,
138
+ "aria-labelledby": _ariaLabelledBy,
139
+ "aria-current": _ariaCurrent,
140
+ "aria-disabled": _ariaDisabled,
141
+ "aria-live": _ariaLive,
142
+ className,
143
+ "data-testid": _dataTestId,
144
+ ...nativeRest
145
+ } = rest;
146
+ if (as === "img" && src) {
147
+ const imageStyle = {
148
+ width,
149
+ height,
150
+ borderRadius,
151
+ position,
152
+ top,
153
+ bottom,
154
+ left,
155
+ right,
156
+ ...style
157
+ };
158
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
159
+ import_react_native.Image,
160
+ {
161
+ source: { uri: src },
162
+ style: imageStyle,
163
+ testID: finalTestID,
164
+ resizeMode: "cover",
165
+ ...nativeRest
166
+ }
167
+ );
168
+ }
169
+ if (onPress) {
170
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
171
+ import_react_native.Pressable,
172
+ {
173
+ onPress,
174
+ onLayout,
175
+ onMoveShouldSetResponder,
176
+ onResponderGrant,
177
+ onResponderMove,
178
+ onResponderRelease,
179
+ onResponderTerminate,
180
+ style: ({ pressed }) => getContainerStyle(pressed),
181
+ testID: finalTestID,
182
+ ...nativeRest,
183
+ children
184
+ }
185
+ );
186
+ }
187
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
188
+ import_react_native.View,
189
+ {
190
+ style: getContainerStyle(),
191
+ testID: finalTestID,
192
+ onLayout,
193
+ onMoveShouldSetResponder,
194
+ onResponderGrant,
195
+ onResponderMove,
196
+ onResponderRelease,
197
+ onResponderTerminate,
198
+ ...nativeRest,
199
+ children
200
+ }
201
+ );
202
+ };
203
+
204
+ // ../primitives-native/src/Text.tsx
205
+ var import_react_native2 = require("react-native");
206
+ var import_jsx_runtime2 = require("react/jsx-runtime");
207
+
208
+ // ../primitives-native/src/Spinner.tsx
209
+ var import_react_native3 = require("react-native");
210
+ var import_jsx_runtime3 = require("react/jsx-runtime");
211
+ var Spinner = ({
212
+ color,
213
+ size,
214
+ role,
215
+ "aria-label": ariaLabel,
216
+ "aria-live": ariaLive,
217
+ "aria-describedby": ariaDescribedBy,
218
+ testID
219
+ }) => {
220
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
221
+ import_react_native3.View,
222
+ {
223
+ accessible: true,
224
+ accessibilityRole: role === "status" ? "none" : void 0,
225
+ accessibilityLabel: ariaLabel,
226
+ accessibilityLiveRegion: ariaLive === "polite" ? "polite" : ariaLive === "assertive" ? "assertive" : "none",
227
+ testID,
228
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
229
+ import_react_native3.ActivityIndicator,
230
+ {
231
+ color,
232
+ size: typeof size === "number" ? size : "small"
233
+ }
234
+ )
235
+ }
236
+ );
237
+ };
238
+ Spinner.displayName = "Spinner";
239
+
240
+ // ../primitives-native/src/Icon.tsx
241
+ var import_react = __toESM(require("react"));
242
+ var import_react_native4 = require("react-native");
243
+ var import_jsx_runtime4 = require("react/jsx-runtime");
244
+
245
+ // ../primitives-native/src/Divider.tsx
246
+ var import_react_native5 = require("react-native");
247
+ var import_jsx_runtime5 = require("react/jsx-runtime");
248
+
249
+ // ../primitives-native/src/Input.tsx
250
+ var import_react2 = require("react");
251
+ var import_react_native6 = require("react-native");
252
+ var import_jsx_runtime6 = require("react/jsx-runtime");
253
+ var keyboardTypeMap = {
254
+ text: "default",
255
+ number: "numeric",
256
+ email: "email-address",
257
+ tel: "phone-pad",
258
+ url: "url",
259
+ decimal: "decimal-pad"
260
+ };
261
+ var inputModeToKeyboardType = {
262
+ none: "default",
263
+ text: "default",
264
+ decimal: "decimal-pad",
265
+ numeric: "number-pad",
266
+ tel: "phone-pad",
267
+ search: "default",
268
+ email: "email-address",
269
+ url: "url"
270
+ };
271
+ var autoCompleteToTextContentType = {
272
+ "one-time-code": "oneTimeCode",
273
+ email: "emailAddress",
274
+ username: "username",
275
+ password: "password",
276
+ "new-password": "newPassword",
277
+ tel: "telephoneNumber",
278
+ "postal-code": "postalCode",
279
+ name: "name"
280
+ };
281
+ var InputPrimitive = (0, import_react2.forwardRef)(
282
+ ({
283
+ value,
284
+ placeholder,
285
+ onChange,
286
+ onChangeText,
287
+ onFocus,
288
+ onBlur,
289
+ onKeyDown,
290
+ disabled,
291
+ secureTextEntry,
292
+ style,
293
+ color,
294
+ fontSize,
295
+ placeholderTextColor,
296
+ maxLength,
297
+ name,
298
+ type,
299
+ inputMode,
300
+ autoComplete,
301
+ id,
302
+ "aria-invalid": ariaInvalid,
303
+ "aria-describedby": ariaDescribedBy,
304
+ "aria-labelledby": ariaLabelledBy,
305
+ "aria-label": ariaLabel,
306
+ "aria-disabled": ariaDisabled,
307
+ "data-testid": dataTestId
308
+ }, ref) => {
309
+ const handleChangeText = (text) => {
310
+ onChangeText?.(text);
311
+ if (onChange) {
312
+ const syntheticEvent = {
313
+ target: { value: text },
314
+ currentTarget: { value: text },
315
+ type: "change",
316
+ nativeEvent: { text },
317
+ preventDefault: () => {
318
+ },
319
+ stopPropagation: () => {
320
+ },
321
+ isTrusted: false
322
+ };
323
+ onChange(syntheticEvent);
324
+ }
325
+ };
326
+ const keyboardType = inputMode ? inputModeToKeyboardType[inputMode] || "default" : type ? keyboardTypeMap[type] || "default" : "default";
327
+ const textContentType = autoComplete ? autoCompleteToTextContentType[autoComplete] : void 0;
328
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
329
+ import_react_native6.TextInput,
330
+ {
331
+ ref,
332
+ value,
333
+ placeholder,
334
+ onChangeText: handleChangeText,
335
+ onFocus,
336
+ onBlur,
337
+ onKeyPress: (e) => {
338
+ if (onKeyDown) {
339
+ onKeyDown({
340
+ key: e.nativeEvent.key,
341
+ preventDefault: () => {
342
+ }
343
+ });
344
+ }
345
+ },
346
+ editable: !disabled,
347
+ secureTextEntry: secureTextEntry || type === "password",
348
+ keyboardType,
349
+ textContentType,
350
+ style: [
351
+ {
352
+ color,
353
+ fontSize: typeof fontSize === "number" ? fontSize : void 0,
354
+ flex: 1,
355
+ padding: 0,
356
+ textAlign: style?.textAlign || "left"
357
+ },
358
+ style
359
+ ],
360
+ placeholderTextColor,
361
+ maxLength,
362
+ testID: dataTestId || id,
363
+ accessibilityLabel: ariaLabel,
364
+ accessibilityHint: ariaDescribedBy,
365
+ accessibilityState: {
366
+ disabled: disabled || ariaDisabled
367
+ },
368
+ accessible: true
369
+ }
370
+ );
371
+ }
372
+ );
373
+ InputPrimitive.displayName = "InputPrimitive";
374
+
375
+ // ../primitives-native/src/TextArea.tsx
376
+ var import_react3 = require("react");
377
+ var import_react_native7 = require("react-native");
378
+ var import_jsx_runtime7 = require("react/jsx-runtime");
379
+ var TextAreaPrimitive = (0, import_react3.forwardRef)(
380
+ ({
381
+ value,
382
+ placeholder,
383
+ onChange,
384
+ onChangeText,
385
+ onFocus,
386
+ onBlur,
387
+ onKeyDown,
388
+ disabled,
389
+ style,
390
+ color,
391
+ fontSize,
392
+ placeholderTextColor,
393
+ maxLength,
394
+ rows,
395
+ id,
396
+ "aria-invalid": ariaInvalid,
397
+ "aria-describedby": ariaDescribedBy,
398
+ "aria-labelledby": ariaLabelledBy,
399
+ "aria-label": ariaLabel,
400
+ "aria-disabled": ariaDisabled,
401
+ "data-testid": dataTestId
402
+ }, ref) => {
403
+ const handleChangeText = (text) => {
404
+ onChangeText?.(text);
405
+ if (onChange) {
406
+ const syntheticEvent = {
407
+ target: { value: text },
408
+ currentTarget: { value: text },
409
+ type: "change",
410
+ nativeEvent: { text },
411
+ preventDefault: () => {
412
+ },
413
+ stopPropagation: () => {
414
+ },
415
+ isTrusted: false
416
+ };
417
+ onChange(syntheticEvent);
418
+ }
419
+ };
420
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
421
+ import_react_native7.TextInput,
422
+ {
423
+ ref,
424
+ value,
425
+ placeholder,
426
+ onChangeText: handleChangeText,
427
+ onFocus,
428
+ onBlur,
429
+ onKeyPress: (e) => {
430
+ if (onKeyDown) {
431
+ onKeyDown({
432
+ key: e.nativeEvent.key,
433
+ preventDefault: () => {
434
+ }
435
+ });
436
+ }
437
+ },
438
+ editable: !disabled,
439
+ multiline: true,
440
+ numberOfLines: rows || 4,
441
+ style: [
442
+ {
443
+ color,
444
+ fontSize: typeof fontSize === "number" ? fontSize : void 0,
445
+ flex: 1,
446
+ padding: 0,
447
+ textAlignVertical: "top",
448
+ textAlign: style?.textAlign || "left"
449
+ },
450
+ style
451
+ ],
452
+ placeholderTextColor,
453
+ maxLength,
454
+ testID: dataTestId || id,
455
+ accessibilityLabel: ariaLabel,
456
+ accessibilityHint: ariaDescribedBy,
457
+ accessibilityState: {
458
+ disabled: disabled || ariaDisabled
459
+ },
460
+ accessible: true
461
+ }
462
+ );
463
+ }
464
+ );
465
+ TextAreaPrimitive.displayName = "TextAreaPrimitive";
466
+
467
+ // src/NavBar.tsx
468
+ var import_xui_core = require("@xsolla/xui-core");
469
+ var import_jsx_runtime8 = require("react/jsx-runtime");
470
+ var StartSlot = ({ children, testID }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
471
+ Box,
472
+ {
473
+ flexDirection: "row",
474
+ alignItems: "center",
475
+ justifyContent: "flex-start",
476
+ flex: 1,
477
+ flexBasis: 0,
478
+ gap: 8,
479
+ testID,
480
+ children
481
+ }
482
+ );
483
+ var Center = ({ children, testID }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
484
+ Box,
485
+ {
486
+ flexDirection: "row",
487
+ alignItems: "center",
488
+ justifyContent: "center",
489
+ flex: 2,
490
+ flexBasis: 0,
491
+ gap: 8,
492
+ testID,
493
+ children
494
+ }
495
+ );
496
+ var EndSlot = ({ children, testID }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
497
+ Box,
498
+ {
499
+ flexDirection: "row",
500
+ alignItems: "center",
501
+ justifyContent: "flex-end",
502
+ flex: 1,
503
+ flexBasis: 0,
504
+ gap: 8,
505
+ testID,
506
+ children
507
+ }
508
+ );
509
+ var NavBarRoot = ({
510
+ size = "md",
511
+ bordered = false,
512
+ backgroundColor,
513
+ children,
514
+ testID
515
+ }) => {
516
+ const { theme } = (0, import_xui_core.useDesignSystem)();
517
+ const sizeConfigs = {
518
+ sm: { height: 48, paddingHorizontal: 12 },
519
+ md: { height: 64, paddingHorizontal: 16 },
520
+ lg: { height: 80, paddingHorizontal: 20 }
521
+ };
522
+ const currentSize = sizeConfigs[size];
523
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
524
+ Box,
525
+ {
526
+ width: "100%",
527
+ height: currentSize.height,
528
+ flexDirection: "row",
529
+ alignItems: "center",
530
+ justifyContent: "space-between",
531
+ paddingHorizontal: currentSize.paddingHorizontal,
532
+ backgroundColor: backgroundColor || theme.colors.background.primary,
533
+ borderBottomWidth: bordered ? 1 : 0,
534
+ borderBottomColor: theme.colors.border.secondary,
535
+ borderStyle: "solid",
536
+ testID,
537
+ children
538
+ }
539
+ );
540
+ };
541
+ var NavBar = Object.assign(NavBarRoot, {
542
+ StartSlot,
543
+ Center,
544
+ EndSlot
545
+ });
546
+ NavBarRoot.displayName = "NavBar";
547
+ StartSlot.displayName = "NavBar.StartSlot";
548
+ Center.displayName = "NavBar.Center";
549
+ EndSlot.displayName = "NavBar.EndSlot";
550
+ // Annotate the CommonJS export names for ESM import in node:
551
+ 0 && (module.exports = {
552
+ NavBar,
553
+ NavBarRoot
554
+ });
555
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.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","../../src/NavBar.tsx"],"sourcesContent":["export * from \"./NavBar\";\nexport * from \"./types\";\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","import React 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 { NavBarProps, NavBarSlotProps } from \"./types\";\n\nconst StartSlot: React.FC<NavBarSlotProps> = ({ children, testID }) => (\n <Box\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"flex-start\"\n flex={1}\n flexBasis={0}\n gap={8}\n testID={testID}\n >\n {children}\n </Box>\n);\n\nconst Center: React.FC<NavBarSlotProps> = ({ children, testID }) => (\n <Box\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n flex={2}\n flexBasis={0}\n gap={8}\n testID={testID}\n >\n {children}\n </Box>\n);\n\nconst EndSlot: React.FC<NavBarSlotProps> = ({ children, testID }) => (\n <Box\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"flex-end\"\n flex={1}\n flexBasis={0}\n gap={8}\n testID={testID}\n >\n {children}\n </Box>\n);\n\nexport const NavBarRoot: React.FC<NavBarProps> = ({\n size = \"md\",\n bordered = false,\n backgroundColor,\n children,\n testID,\n}) => {\n const { theme } = useDesignSystem();\n\n const sizeConfigs = {\n sm: { height: 48, paddingHorizontal: 12 },\n md: { height: 64, paddingHorizontal: 16 },\n lg: { height: 80, paddingHorizontal: 20 },\n };\n\n const currentSize = sizeConfigs[size];\n\n return (\n <Box\n width=\"100%\"\n height={currentSize.height}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"space-between\"\n paddingHorizontal={currentSize.paddingHorizontal}\n backgroundColor={backgroundColor || theme.colors.background.primary}\n borderBottomWidth={bordered ? 1 : 0}\n borderBottomColor={theme.colors.border.secondary}\n borderStyle=\"solid\"\n testID={testID}\n >\n {children}\n </Box>\n );\n};\n\nexport const NavBar = Object.assign(NavBarRoot, {\n StartSlot,\n Center,\n EndSlot,\n});\n\nNavBarRoot.displayName = \"NavBar\";\nStartSlot.displayName = \"NavBar.StartSlot\";\nCenter.displayName = \"NavBar.Center\";\nEndSlot.displayName = \"NavBar.EndSlot\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,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;A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EC;AAAA;AAAA,EACH;AAEJ;AAEO,IAAM,SAAS,OAAO,OAAO,YAAY;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAED,WAAW,cAAc;AACzB,UAAU,cAAc;AACxB,OAAO,cAAc;AACrB,QAAQ,cAAc;","names":["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"]}
package/index.mjs ADDED
@@ -0,0 +1,521 @@
1
+ // ../primitives-native/src/Box.tsx
2
+ import {
3
+ View,
4
+ Pressable,
5
+ Image
6
+ } from "react-native";
7
+ import { jsx } from "react/jsx-runtime";
8
+ var Box = ({
9
+ children,
10
+ onPress,
11
+ onLayout,
12
+ onMoveShouldSetResponder,
13
+ onResponderGrant,
14
+ onResponderMove,
15
+ onResponderRelease,
16
+ onResponderTerminate,
17
+ backgroundColor,
18
+ borderColor,
19
+ borderWidth,
20
+ borderBottomWidth,
21
+ borderBottomColor,
22
+ borderTopWidth,
23
+ borderTopColor,
24
+ borderLeftWidth,
25
+ borderLeftColor,
26
+ borderRightWidth,
27
+ borderRightColor,
28
+ borderRadius,
29
+ borderStyle,
30
+ height,
31
+ padding,
32
+ paddingHorizontal,
33
+ paddingVertical,
34
+ margin,
35
+ marginTop,
36
+ marginBottom,
37
+ marginLeft,
38
+ marginRight,
39
+ flexDirection,
40
+ alignItems,
41
+ justifyContent,
42
+ position,
43
+ top,
44
+ bottom,
45
+ left,
46
+ right,
47
+ width,
48
+ flex,
49
+ overflow,
50
+ zIndex,
51
+ hoverStyle,
52
+ pressStyle,
53
+ style,
54
+ "data-testid": dataTestId,
55
+ testID,
56
+ as,
57
+ src,
58
+ alt,
59
+ ...rest
60
+ }) => {
61
+ const getContainerStyle = (pressed) => ({
62
+ backgroundColor: pressed && pressStyle?.backgroundColor ? pressStyle.backgroundColor : backgroundColor,
63
+ borderColor,
64
+ borderWidth,
65
+ borderBottomWidth,
66
+ borderBottomColor,
67
+ borderTopWidth,
68
+ borderTopColor,
69
+ borderLeftWidth,
70
+ borderLeftColor,
71
+ borderRightWidth,
72
+ borderRightColor,
73
+ borderRadius,
74
+ borderStyle,
75
+ overflow,
76
+ zIndex,
77
+ height,
78
+ width,
79
+ padding,
80
+ paddingHorizontal,
81
+ paddingVertical,
82
+ margin,
83
+ marginTop,
84
+ marginBottom,
85
+ marginLeft,
86
+ marginRight,
87
+ flexDirection,
88
+ alignItems,
89
+ justifyContent,
90
+ position,
91
+ top,
92
+ bottom,
93
+ left,
94
+ right,
95
+ flex,
96
+ ...style
97
+ });
98
+ const finalTestID = dataTestId || testID;
99
+ const {
100
+ role,
101
+ tabIndex,
102
+ onKeyDown,
103
+ onKeyUp,
104
+ "aria-label": _ariaLabel,
105
+ "aria-labelledby": _ariaLabelledBy,
106
+ "aria-current": _ariaCurrent,
107
+ "aria-disabled": _ariaDisabled,
108
+ "aria-live": _ariaLive,
109
+ className,
110
+ "data-testid": _dataTestId,
111
+ ...nativeRest
112
+ } = rest;
113
+ if (as === "img" && src) {
114
+ const imageStyle = {
115
+ width,
116
+ height,
117
+ borderRadius,
118
+ position,
119
+ top,
120
+ bottom,
121
+ left,
122
+ right,
123
+ ...style
124
+ };
125
+ return /* @__PURE__ */ jsx(
126
+ Image,
127
+ {
128
+ source: { uri: src },
129
+ style: imageStyle,
130
+ testID: finalTestID,
131
+ resizeMode: "cover",
132
+ ...nativeRest
133
+ }
134
+ );
135
+ }
136
+ if (onPress) {
137
+ return /* @__PURE__ */ jsx(
138
+ Pressable,
139
+ {
140
+ onPress,
141
+ onLayout,
142
+ onMoveShouldSetResponder,
143
+ onResponderGrant,
144
+ onResponderMove,
145
+ onResponderRelease,
146
+ onResponderTerminate,
147
+ style: ({ pressed }) => getContainerStyle(pressed),
148
+ testID: finalTestID,
149
+ ...nativeRest,
150
+ children
151
+ }
152
+ );
153
+ }
154
+ return /* @__PURE__ */ jsx(
155
+ View,
156
+ {
157
+ style: getContainerStyle(),
158
+ testID: finalTestID,
159
+ onLayout,
160
+ onMoveShouldSetResponder,
161
+ onResponderGrant,
162
+ onResponderMove,
163
+ onResponderRelease,
164
+ onResponderTerminate,
165
+ ...nativeRest,
166
+ children
167
+ }
168
+ );
169
+ };
170
+
171
+ // ../primitives-native/src/Text.tsx
172
+ import { Text as RNText } from "react-native";
173
+ import { jsx as jsx2 } from "react/jsx-runtime";
174
+
175
+ // ../primitives-native/src/Spinner.tsx
176
+ import { ActivityIndicator, View as View2 } from "react-native";
177
+ import { jsx as jsx3 } from "react/jsx-runtime";
178
+ var Spinner = ({
179
+ color,
180
+ size,
181
+ role,
182
+ "aria-label": ariaLabel,
183
+ "aria-live": ariaLive,
184
+ "aria-describedby": ariaDescribedBy,
185
+ testID
186
+ }) => {
187
+ return /* @__PURE__ */ jsx3(
188
+ View2,
189
+ {
190
+ accessible: true,
191
+ accessibilityRole: role === "status" ? "none" : void 0,
192
+ accessibilityLabel: ariaLabel,
193
+ accessibilityLiveRegion: ariaLive === "polite" ? "polite" : ariaLive === "assertive" ? "assertive" : "none",
194
+ testID,
195
+ children: /* @__PURE__ */ jsx3(
196
+ ActivityIndicator,
197
+ {
198
+ color,
199
+ size: typeof size === "number" ? size : "small"
200
+ }
201
+ )
202
+ }
203
+ );
204
+ };
205
+ Spinner.displayName = "Spinner";
206
+
207
+ // ../primitives-native/src/Icon.tsx
208
+ import React from "react";
209
+ import { View as View3 } from "react-native";
210
+ import { jsx as jsx4 } from "react/jsx-runtime";
211
+
212
+ // ../primitives-native/src/Divider.tsx
213
+ import { View as View4 } from "react-native";
214
+ import { jsx as jsx5 } from "react/jsx-runtime";
215
+
216
+ // ../primitives-native/src/Input.tsx
217
+ import { forwardRef } from "react";
218
+ import { TextInput as RNTextInput } from "react-native";
219
+ import { jsx as jsx6 } from "react/jsx-runtime";
220
+ var keyboardTypeMap = {
221
+ text: "default",
222
+ number: "numeric",
223
+ email: "email-address",
224
+ tel: "phone-pad",
225
+ url: "url",
226
+ decimal: "decimal-pad"
227
+ };
228
+ var inputModeToKeyboardType = {
229
+ none: "default",
230
+ text: "default",
231
+ decimal: "decimal-pad",
232
+ numeric: "number-pad",
233
+ tel: "phone-pad",
234
+ search: "default",
235
+ email: "email-address",
236
+ url: "url"
237
+ };
238
+ var autoCompleteToTextContentType = {
239
+ "one-time-code": "oneTimeCode",
240
+ email: "emailAddress",
241
+ username: "username",
242
+ password: "password",
243
+ "new-password": "newPassword",
244
+ tel: "telephoneNumber",
245
+ "postal-code": "postalCode",
246
+ name: "name"
247
+ };
248
+ var InputPrimitive = forwardRef(
249
+ ({
250
+ value,
251
+ placeholder,
252
+ onChange,
253
+ onChangeText,
254
+ onFocus,
255
+ onBlur,
256
+ onKeyDown,
257
+ disabled,
258
+ secureTextEntry,
259
+ style,
260
+ color,
261
+ fontSize,
262
+ placeholderTextColor,
263
+ maxLength,
264
+ name,
265
+ type,
266
+ inputMode,
267
+ autoComplete,
268
+ id,
269
+ "aria-invalid": ariaInvalid,
270
+ "aria-describedby": ariaDescribedBy,
271
+ "aria-labelledby": ariaLabelledBy,
272
+ "aria-label": ariaLabel,
273
+ "aria-disabled": ariaDisabled,
274
+ "data-testid": dataTestId
275
+ }, ref) => {
276
+ const handleChangeText = (text) => {
277
+ onChangeText?.(text);
278
+ if (onChange) {
279
+ const syntheticEvent = {
280
+ target: { value: text },
281
+ currentTarget: { value: text },
282
+ type: "change",
283
+ nativeEvent: { text },
284
+ preventDefault: () => {
285
+ },
286
+ stopPropagation: () => {
287
+ },
288
+ isTrusted: false
289
+ };
290
+ onChange(syntheticEvent);
291
+ }
292
+ };
293
+ const keyboardType = inputMode ? inputModeToKeyboardType[inputMode] || "default" : type ? keyboardTypeMap[type] || "default" : "default";
294
+ const textContentType = autoComplete ? autoCompleteToTextContentType[autoComplete] : void 0;
295
+ return /* @__PURE__ */ jsx6(
296
+ RNTextInput,
297
+ {
298
+ ref,
299
+ value,
300
+ placeholder,
301
+ onChangeText: handleChangeText,
302
+ onFocus,
303
+ onBlur,
304
+ onKeyPress: (e) => {
305
+ if (onKeyDown) {
306
+ onKeyDown({
307
+ key: e.nativeEvent.key,
308
+ preventDefault: () => {
309
+ }
310
+ });
311
+ }
312
+ },
313
+ editable: !disabled,
314
+ secureTextEntry: secureTextEntry || type === "password",
315
+ keyboardType,
316
+ textContentType,
317
+ style: [
318
+ {
319
+ color,
320
+ fontSize: typeof fontSize === "number" ? fontSize : void 0,
321
+ flex: 1,
322
+ padding: 0,
323
+ textAlign: style?.textAlign || "left"
324
+ },
325
+ style
326
+ ],
327
+ placeholderTextColor,
328
+ maxLength,
329
+ testID: dataTestId || id,
330
+ accessibilityLabel: ariaLabel,
331
+ accessibilityHint: ariaDescribedBy,
332
+ accessibilityState: {
333
+ disabled: disabled || ariaDisabled
334
+ },
335
+ accessible: true
336
+ }
337
+ );
338
+ }
339
+ );
340
+ InputPrimitive.displayName = "InputPrimitive";
341
+
342
+ // ../primitives-native/src/TextArea.tsx
343
+ import { forwardRef as forwardRef2 } from "react";
344
+ import { TextInput as RNTextInput2 } from "react-native";
345
+ import { jsx as jsx7 } from "react/jsx-runtime";
346
+ var TextAreaPrimitive = forwardRef2(
347
+ ({
348
+ value,
349
+ placeholder,
350
+ onChange,
351
+ onChangeText,
352
+ onFocus,
353
+ onBlur,
354
+ onKeyDown,
355
+ disabled,
356
+ style,
357
+ color,
358
+ fontSize,
359
+ placeholderTextColor,
360
+ maxLength,
361
+ rows,
362
+ id,
363
+ "aria-invalid": ariaInvalid,
364
+ "aria-describedby": ariaDescribedBy,
365
+ "aria-labelledby": ariaLabelledBy,
366
+ "aria-label": ariaLabel,
367
+ "aria-disabled": ariaDisabled,
368
+ "data-testid": dataTestId
369
+ }, ref) => {
370
+ const handleChangeText = (text) => {
371
+ onChangeText?.(text);
372
+ if (onChange) {
373
+ const syntheticEvent = {
374
+ target: { value: text },
375
+ currentTarget: { value: text },
376
+ type: "change",
377
+ nativeEvent: { text },
378
+ preventDefault: () => {
379
+ },
380
+ stopPropagation: () => {
381
+ },
382
+ isTrusted: false
383
+ };
384
+ onChange(syntheticEvent);
385
+ }
386
+ };
387
+ return /* @__PURE__ */ jsx7(
388
+ RNTextInput2,
389
+ {
390
+ ref,
391
+ value,
392
+ placeholder,
393
+ onChangeText: handleChangeText,
394
+ onFocus,
395
+ onBlur,
396
+ onKeyPress: (e) => {
397
+ if (onKeyDown) {
398
+ onKeyDown({
399
+ key: e.nativeEvent.key,
400
+ preventDefault: () => {
401
+ }
402
+ });
403
+ }
404
+ },
405
+ editable: !disabled,
406
+ multiline: true,
407
+ numberOfLines: rows || 4,
408
+ style: [
409
+ {
410
+ color,
411
+ fontSize: typeof fontSize === "number" ? fontSize : void 0,
412
+ flex: 1,
413
+ padding: 0,
414
+ textAlignVertical: "top",
415
+ textAlign: style?.textAlign || "left"
416
+ },
417
+ style
418
+ ],
419
+ placeholderTextColor,
420
+ maxLength,
421
+ testID: dataTestId || id,
422
+ accessibilityLabel: ariaLabel,
423
+ accessibilityHint: ariaDescribedBy,
424
+ accessibilityState: {
425
+ disabled: disabled || ariaDisabled
426
+ },
427
+ accessible: true
428
+ }
429
+ );
430
+ }
431
+ );
432
+ TextAreaPrimitive.displayName = "TextAreaPrimitive";
433
+
434
+ // src/NavBar.tsx
435
+ import { useDesignSystem } from "@xsolla/xui-core";
436
+ import { jsx as jsx8 } from "react/jsx-runtime";
437
+ var StartSlot = ({ children, testID }) => /* @__PURE__ */ jsx8(
438
+ Box,
439
+ {
440
+ flexDirection: "row",
441
+ alignItems: "center",
442
+ justifyContent: "flex-start",
443
+ flex: 1,
444
+ flexBasis: 0,
445
+ gap: 8,
446
+ testID,
447
+ children
448
+ }
449
+ );
450
+ var Center = ({ children, testID }) => /* @__PURE__ */ jsx8(
451
+ Box,
452
+ {
453
+ flexDirection: "row",
454
+ alignItems: "center",
455
+ justifyContent: "center",
456
+ flex: 2,
457
+ flexBasis: 0,
458
+ gap: 8,
459
+ testID,
460
+ children
461
+ }
462
+ );
463
+ var EndSlot = ({ children, testID }) => /* @__PURE__ */ jsx8(
464
+ Box,
465
+ {
466
+ flexDirection: "row",
467
+ alignItems: "center",
468
+ justifyContent: "flex-end",
469
+ flex: 1,
470
+ flexBasis: 0,
471
+ gap: 8,
472
+ testID,
473
+ children
474
+ }
475
+ );
476
+ var NavBarRoot = ({
477
+ size = "md",
478
+ bordered = false,
479
+ backgroundColor,
480
+ children,
481
+ testID
482
+ }) => {
483
+ const { theme } = useDesignSystem();
484
+ const sizeConfigs = {
485
+ sm: { height: 48, paddingHorizontal: 12 },
486
+ md: { height: 64, paddingHorizontal: 16 },
487
+ lg: { height: 80, paddingHorizontal: 20 }
488
+ };
489
+ const currentSize = sizeConfigs[size];
490
+ return /* @__PURE__ */ jsx8(
491
+ Box,
492
+ {
493
+ width: "100%",
494
+ height: currentSize.height,
495
+ flexDirection: "row",
496
+ alignItems: "center",
497
+ justifyContent: "space-between",
498
+ paddingHorizontal: currentSize.paddingHorizontal,
499
+ backgroundColor: backgroundColor || theme.colors.background.primary,
500
+ borderBottomWidth: bordered ? 1 : 0,
501
+ borderBottomColor: theme.colors.border.secondary,
502
+ borderStyle: "solid",
503
+ testID,
504
+ children
505
+ }
506
+ );
507
+ };
508
+ var NavBar = Object.assign(NavBarRoot, {
509
+ StartSlot,
510
+ Center,
511
+ EndSlot
512
+ });
513
+ NavBarRoot.displayName = "NavBar";
514
+ StartSlot.displayName = "NavBar.StartSlot";
515
+ Center.displayName = "NavBar.Center";
516
+ EndSlot.displayName = "NavBar.EndSlot";
517
+ export {
518
+ NavBar,
519
+ NavBarRoot
520
+ };
521
+ //# sourceMappingURL=index.mjs.map
package/index.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../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","../../src/NavBar.tsx"],"sourcesContent":["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","import React 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 { NavBarProps, NavBarSlotProps } from \"./types\";\n\nconst StartSlot: React.FC<NavBarSlotProps> = ({ children, testID }) => (\n <Box\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"flex-start\"\n flex={1}\n flexBasis={0}\n gap={8}\n testID={testID}\n >\n {children}\n </Box>\n);\n\nconst Center: React.FC<NavBarSlotProps> = ({ children, testID }) => (\n <Box\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n flex={2}\n flexBasis={0}\n gap={8}\n testID={testID}\n >\n {children}\n </Box>\n);\n\nconst EndSlot: React.FC<NavBarSlotProps> = ({ children, testID }) => (\n <Box\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"flex-end\"\n flex={1}\n flexBasis={0}\n gap={8}\n testID={testID}\n >\n {children}\n </Box>\n);\n\nexport const NavBarRoot: React.FC<NavBarProps> = ({\n size = \"md\",\n bordered = false,\n backgroundColor,\n children,\n testID,\n}) => {\n const { theme } = useDesignSystem();\n\n const sizeConfigs = {\n sm: { height: 48, paddingHorizontal: 12 },\n md: { height: 64, paddingHorizontal: 16 },\n lg: { height: 80, paddingHorizontal: 20 },\n };\n\n const currentSize = sizeConfigs[size];\n\n return (\n <Box\n width=\"100%\"\n height={currentSize.height}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"space-between\"\n paddingHorizontal={currentSize.paddingHorizontal}\n backgroundColor={backgroundColor || theme.colors.background.primary}\n borderBottomWidth={bordered ? 1 : 0}\n borderBottomColor={theme.colors.border.secondary}\n borderStyle=\"solid\"\n testID={testID}\n >\n {children}\n </Box>\n );\n};\n\nexport const NavBar = Object.assign(NavBarRoot, {\n StartSlot,\n Center,\n EndSlot,\n});\n\nNavBarRoot.displayName = \"NavBar\";\nStartSlot.displayName = \"NavBar.StartSlot\";\nCenter.displayName = \"NavBar.Center\";\nEndSlot.displayName = \"NavBar.EndSlot\";\n"],"mappings":";AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAKK;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,EAC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AEC;AAAA;AAAA,EACH;AAEJ;AAEO,IAAM,SAAS,OAAO,OAAO,YAAY;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAED,WAAW,cAAc;AACzB,UAAU,cAAc;AACxB,OAAO,cAAc;AACrB,QAAQ,cAAc;","names":["jsx","View","jsx","View","jsx","View","jsx","jsx","forwardRef","RNTextInput","jsx","jsx"]}
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@xsolla/xui-nav-bar-native",
3
+ "version": "0.64.0-pr56.1768348754",
4
+ "main": "./index.js",
5
+ "module": "./index.mjs",
6
+ "types": "./index.d.ts",
7
+ "scripts": {
8
+ "build": "yarn build:web && yarn build:native",
9
+ "build:web": "PLATFORM=web tsup src/index.tsx --format esm,cjs --dts --env.PLATFORM web --clean",
10
+ "build:native": "PLATFORM=native tsup src/index.tsx --format esm,cjs --dts --env.PLATFORM native --clean"
11
+ },
12
+ "dependencies": {
13
+ "@xsolla/xui-core": "0.64.0-pr56.1768348754",
14
+ "@xsolla/xui-primitives-core": "0.64.0-pr56.1768348754"
15
+ },
16
+ "peerDependencies": {
17
+ "react": ">=16.8.0",
18
+ "react-native": "*"
19
+ },
20
+ "devDependencies": {
21
+ "tsup": "^8.0.0"
22
+ },
23
+ "license": "MIT"
24
+ }