@xsolla/xui-link 0.89.0 → 0.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/native/index.js CHANGED
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
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
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
 
30
20
  // src/index.tsx
@@ -235,262 +225,9 @@ var Text = ({
235
225
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_native2.Text, { style, testID: id, accessibilityRole, children });
236
226
  };
237
227
 
238
- // ../primitives-native/src/Spinner.tsx
239
- var import_react_native3 = require("react-native");
240
- var import_jsx_runtime3 = require("react/jsx-runtime");
241
- var Spinner = ({
242
- color,
243
- size,
244
- role,
245
- "aria-label": ariaLabel,
246
- "aria-live": ariaLive,
247
- testID
248
- }) => {
249
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
250
- import_react_native3.View,
251
- {
252
- accessible: true,
253
- accessibilityRole: role === "status" ? "none" : void 0,
254
- accessibilityLabel: ariaLabel,
255
- accessibilityLiveRegion: ariaLive === "polite" ? "polite" : ariaLive === "assertive" ? "assertive" : "none",
256
- testID,
257
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
258
- import_react_native3.ActivityIndicator,
259
- {
260
- color,
261
- size: typeof size === "number" ? size : "small"
262
- }
263
- )
264
- }
265
- );
266
- };
267
- Spinner.displayName = "Spinner";
268
-
269
- // ../primitives-native/src/Icon.tsx
270
- var import_react = __toESM(require("react"));
271
- var import_react_native4 = require("react-native");
272
- var import_jsx_runtime4 = require("react/jsx-runtime");
273
-
274
- // ../primitives-native/src/Divider.tsx
275
- var import_react_native5 = require("react-native");
276
- var import_jsx_runtime5 = require("react/jsx-runtime");
277
-
278
- // ../primitives-native/src/Input.tsx
279
- var import_react2 = require("react");
280
- var import_react_native6 = require("react-native");
281
- var import_jsx_runtime6 = require("react/jsx-runtime");
282
- var keyboardTypeMap = {
283
- text: "default",
284
- number: "numeric",
285
- email: "email-address",
286
- tel: "phone-pad",
287
- url: "url",
288
- decimal: "decimal-pad"
289
- };
290
- var inputModeToKeyboardType = {
291
- none: "default",
292
- text: "default",
293
- decimal: "decimal-pad",
294
- numeric: "number-pad",
295
- tel: "phone-pad",
296
- search: "default",
297
- email: "email-address",
298
- url: "url"
299
- };
300
- var autoCompleteToTextContentType = {
301
- "one-time-code": "oneTimeCode",
302
- email: "emailAddress",
303
- username: "username",
304
- password: "password",
305
- "new-password": "newPassword",
306
- tel: "telephoneNumber",
307
- "postal-code": "postalCode",
308
- name: "name"
309
- };
310
- var InputPrimitive = (0, import_react2.forwardRef)(
311
- ({
312
- value,
313
- placeholder,
314
- onChange,
315
- onChangeText,
316
- onFocus,
317
- onBlur,
318
- onKeyDown,
319
- disabled,
320
- secureTextEntry,
321
- style,
322
- color,
323
- fontSize,
324
- placeholderTextColor,
325
- maxLength,
326
- type,
327
- inputMode,
328
- autoComplete,
329
- id,
330
- "aria-describedby": ariaDescribedBy,
331
- "aria-label": ariaLabel,
332
- "aria-disabled": ariaDisabled,
333
- "data-testid": dataTestId
334
- }, ref) => {
335
- const handleChangeText = (text) => {
336
- onChangeText?.(text);
337
- if (onChange) {
338
- const syntheticEvent = {
339
- target: { value: text },
340
- currentTarget: { value: text },
341
- type: "change",
342
- nativeEvent: { text },
343
- preventDefault: () => {
344
- },
345
- stopPropagation: () => {
346
- },
347
- isTrusted: false
348
- };
349
- onChange(syntheticEvent);
350
- }
351
- };
352
- const keyboardType = inputMode ? inputModeToKeyboardType[inputMode] || "default" : type ? keyboardTypeMap[type] || "default" : "default";
353
- const textContentType = autoComplete ? autoCompleteToTextContentType[autoComplete] : void 0;
354
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
355
- import_react_native6.TextInput,
356
- {
357
- ref,
358
- value,
359
- placeholder,
360
- onChangeText: handleChangeText,
361
- onFocus,
362
- onBlur,
363
- onKeyPress: (e) => {
364
- if (onKeyDown) {
365
- onKeyDown({
366
- key: e.nativeEvent.key,
367
- preventDefault: () => {
368
- }
369
- });
370
- }
371
- },
372
- editable: !disabled,
373
- secureTextEntry: secureTextEntry || type === "password",
374
- keyboardType,
375
- textContentType,
376
- style: [
377
- {
378
- color,
379
- fontSize: typeof fontSize === "number" ? fontSize : void 0,
380
- flex: 1,
381
- padding: 0,
382
- textAlign: style?.textAlign || "left"
383
- },
384
- style
385
- ],
386
- placeholderTextColor,
387
- maxLength,
388
- testID: dataTestId || id,
389
- accessibilityLabel: ariaLabel,
390
- accessibilityHint: ariaDescribedBy,
391
- accessibilityState: {
392
- disabled: disabled || ariaDisabled
393
- },
394
- accessible: true
395
- }
396
- );
397
- }
398
- );
399
- InputPrimitive.displayName = "InputPrimitive";
400
-
401
- // ../primitives-native/src/TextArea.tsx
402
- var import_react3 = require("react");
403
- var import_react_native7 = require("react-native");
404
- var import_jsx_runtime7 = require("react/jsx-runtime");
405
- var TextAreaPrimitive = (0, import_react3.forwardRef)(
406
- ({
407
- value,
408
- placeholder,
409
- onChange,
410
- onChangeText,
411
- onFocus,
412
- onBlur,
413
- onKeyDown,
414
- disabled,
415
- style,
416
- color,
417
- fontSize,
418
- placeholderTextColor,
419
- maxLength,
420
- rows,
421
- id,
422
- "aria-describedby": ariaDescribedBy,
423
- "aria-label": ariaLabel,
424
- "aria-disabled": ariaDisabled,
425
- "data-testid": dataTestId
426
- }, ref) => {
427
- const handleChangeText = (text) => {
428
- onChangeText?.(text);
429
- if (onChange) {
430
- const syntheticEvent = {
431
- target: { value: text },
432
- currentTarget: { value: text },
433
- type: "change",
434
- nativeEvent: { text },
435
- preventDefault: () => {
436
- },
437
- stopPropagation: () => {
438
- },
439
- isTrusted: false
440
- };
441
- onChange(syntheticEvent);
442
- }
443
- };
444
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
445
- import_react_native7.TextInput,
446
- {
447
- ref,
448
- value,
449
- placeholder,
450
- onChangeText: handleChangeText,
451
- onFocus,
452
- onBlur,
453
- onKeyPress: (e) => {
454
- if (onKeyDown) {
455
- onKeyDown({
456
- key: e.nativeEvent.key,
457
- preventDefault: () => {
458
- }
459
- });
460
- }
461
- },
462
- editable: !disabled,
463
- multiline: true,
464
- numberOfLines: rows || 4,
465
- style: [
466
- {
467
- color,
468
- fontSize: typeof fontSize === "number" ? fontSize : void 0,
469
- flex: 1,
470
- padding: 0,
471
- textAlignVertical: "top",
472
- textAlign: style?.textAlign || "left"
473
- },
474
- style
475
- ],
476
- placeholderTextColor,
477
- maxLength,
478
- testID: dataTestId || id,
479
- accessibilityLabel: ariaLabel,
480
- accessibilityHint: ariaDescribedBy,
481
- accessibilityState: {
482
- disabled: disabled || ariaDisabled
483
- },
484
- accessible: true
485
- }
486
- );
487
- }
488
- );
489
- TextAreaPrimitive.displayName = "TextAreaPrimitive";
490
-
491
228
  // src/Link.tsx
492
229
  var import_xui_core = require("@xsolla/xui-core");
493
- var import_jsx_runtime8 = require("react/jsx-runtime");
230
+ var import_jsx_runtime3 = require("react/jsx-runtime");
494
231
  var Link = ({
495
232
  size = "md",
496
233
  href,
@@ -536,7 +273,7 @@ var Link = ({
536
273
  const defaultColor = theme.colors.control.link.primary;
537
274
  const disabledColor = theme.colors.control.text.disable;
538
275
  const textColor = disabled ? disabledColor : color || defaultColor;
539
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
276
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
540
277
  Box,
541
278
  {
542
279
  as: "a",
@@ -560,7 +297,7 @@ var Link = ({
560
297
  outlineStyle: "solid",
561
298
  outlineOffset: 2
562
299
  },
563
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
300
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
564
301
  Text,
565
302
  {
566
303
  color: textColor,
@@ -1 +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/Link.tsx"],"sourcesContent":["export * from \"./Link\";\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 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 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 type,\n inputMode,\n autoComplete,\n id,\n \"aria-describedby\": ariaDescribedBy,\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-describedby\": ariaDescribedBy,\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-expect-error - this will be resolved at build time\nimport { Box, Text } from \"@xsolla/xui-primitives\";\nimport { useDesignSystem } from \"@xsolla/xui-core\";\nimport type { LinkProps, LinkSize } from \"./types\";\n\nexport const Link: React.FC<LinkProps> = ({\n size = \"md\",\n href,\n onClick,\n disabled = false,\n underline = false,\n children,\n target,\n rel,\n color,\n testID,\n}) => {\n const { theme } = useDesignSystem();\n\n const fontSizeMap: Record<LinkSize, number> = {\n sm: 12,\n md: 14,\n lg: 16,\n };\n\n const handleClick = (e: any) => {\n if (disabled) {\n e.preventDefault?.();\n return;\n }\n if (onClick) {\n e.preventDefault?.();\n onClick();\n }\n };\n\n const getRel = (): string | undefined => {\n if (target === \"_blank\") {\n const securityRel = \"noopener noreferrer\";\n if (rel) {\n const relParts = rel.split(/\\s+/);\n const securityParts = securityRel.split(/\\s+/);\n const allParts = [...relParts, ...securityParts];\n const uniqueParts = Array.from(new Set(allParts));\n return uniqueParts.join(\" \");\n }\n return securityRel;\n }\n return rel;\n };\n\n const defaultColor = theme.colors.control.link.primary;\n const disabledColor = theme.colors.control.text.disable;\n const textColor = disabled ? disabledColor : color || defaultColor;\n\n return (\n <Box\n as=\"a\"\n href={disabled ? undefined : href}\n onPress={handleClick}\n onClick={handleClick}\n target={target}\n rel={getRel()}\n cursor={disabled ? \"not-allowed\" : \"pointer\"}\n flexDirection=\"row\"\n alignItems=\"center\"\n display=\"inline-flex\"\n gap={8}\n testID={testID}\n role=\"link\"\n tabIndex={disabled ? -1 : 0}\n hoverStyle={!disabled ? { opacity: 0.8 } : undefined}\n focusStyle={{\n outlineColor: theme.colors.border.brand,\n outlineWidth: 2,\n outlineStyle: \"solid\",\n outlineOffset: 2,\n }}\n >\n <Text\n color={textColor}\n fontSize={fontSizeMap[size]}\n fontWeight=\"400\"\n textDecoration={underline ? \"underline\" : \"none\"}\n >\n {children}\n </Text>\n </Box>\n );\n};\n\nLink.displayName = \"Link\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,0BAQO;AAmID;AAhIC,IAAM,MAA0B,CAAC;AAAA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runtime","RNText","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"]}
1
+ {"version":3,"sources":["../../src/index.tsx","../../../primitives-native/src/Box.tsx","../../../primitives-native/src/Text.tsx","../../src/Link.tsx"],"sourcesContent":["export * from \"./Link\";\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 React from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text } from \"@xsolla/xui-primitives\";\nimport { useDesignSystem } from \"@xsolla/xui-core\";\nimport type { LinkProps, LinkSize } from \"./types\";\n\nexport const Link: React.FC<LinkProps> = ({\n size = \"md\",\n href,\n onClick,\n disabled = false,\n underline = false,\n children,\n target,\n rel,\n color,\n testID,\n}) => {\n const { theme } = useDesignSystem();\n\n const fontSizeMap: Record<LinkSize, number> = {\n sm: 12,\n md: 14,\n lg: 16,\n };\n\n const handleClick = (e: any) => {\n if (disabled) {\n e.preventDefault?.();\n return;\n }\n if (onClick) {\n e.preventDefault?.();\n onClick();\n }\n };\n\n const getRel = (): string | undefined => {\n if (target === \"_blank\") {\n const securityRel = \"noopener noreferrer\";\n if (rel) {\n const relParts = rel.split(/\\s+/);\n const securityParts = securityRel.split(/\\s+/);\n const allParts = [...relParts, ...securityParts];\n const uniqueParts = Array.from(new Set(allParts));\n return uniqueParts.join(\" \");\n }\n return securityRel;\n }\n return rel;\n };\n\n const defaultColor = theme.colors.control.link.primary;\n const disabledColor = theme.colors.control.text.disable;\n const textColor = disabled ? disabledColor : color || defaultColor;\n\n return (\n <Box\n as=\"a\"\n href={disabled ? undefined : href}\n onPress={handleClick}\n onClick={handleClick}\n target={target}\n rel={getRel()}\n cursor={disabled ? \"not-allowed\" : \"pointer\"}\n flexDirection=\"row\"\n alignItems=\"center\"\n display=\"inline-flex\"\n gap={8}\n testID={testID}\n role=\"link\"\n tabIndex={disabled ? -1 : 0}\n hoverStyle={!disabled ? { opacity: 0.8 } : undefined}\n focusStyle={{\n outlineColor: theme.colors.border.brand,\n outlineWidth: 2,\n outlineStyle: \"solid\",\n outlineOffset: 2,\n }}\n >\n <Text\n color={textColor}\n fontSize={fontSizeMap[size]}\n fontWeight=\"400\"\n textDecoration={underline ? \"underline\" : \"none\"}\n >\n {children}\n </Text>\n </Box>\n );\n};\n\nLink.displayName = \"Link\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;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;AA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S;AAAA,MACT,SAAS;AAAA,MACT;AAAA,MACA,KAAK,OAAO;AAAA,MACZ,QAAQ,WAAW,gBAAgB;AAAA,MACnC,eAAc;AAAA,MACd,YAAW;AAAA,MACX,SAAQ;AAAA,MACR,KAAK;AAAA,MACL;AAAA,MACA,MAAK;AAAA,MACL,UAAU,WAAW,KAAK;AAAA,MAC1B,YAAY,CAAC,WAAW,EAAE,SAAS,IAAI,IAAI;AAAA,MAC3C,YAAY;AAAA,QACV,cAAc,MAAM,OAAO,OAAO;AAAA,QAClC,cAAc;AAAA,QACd,cAAc;AAAA,QACd,eAAe;AAAA,MACjB;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,OAAO;AAAA,UACP,UAAU,YAAY,IAAI;AAAA,UAC1B,YAAW;AAAA,UACX,gBAAgB,YAAY,cAAc;AAAA,UAEzC;AAAA;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;AAEA,KAAK,cAAc;","names":["import_react_native","import_jsx_runtime","RNText","import_jsx_runtime"]}
package/native/index.mjs CHANGED
@@ -203,262 +203,9 @@ var Text = ({
203
203
  return /* @__PURE__ */ jsx2(RNText, { style, testID: id, accessibilityRole, children });
204
204
  };
205
205
 
206
- // ../primitives-native/src/Spinner.tsx
207
- import { ActivityIndicator, View as View2 } from "react-native";
208
- import { jsx as jsx3 } from "react/jsx-runtime";
209
- var Spinner = ({
210
- color,
211
- size,
212
- role,
213
- "aria-label": ariaLabel,
214
- "aria-live": ariaLive,
215
- testID
216
- }) => {
217
- return /* @__PURE__ */ jsx3(
218
- View2,
219
- {
220
- accessible: true,
221
- accessibilityRole: role === "status" ? "none" : void 0,
222
- accessibilityLabel: ariaLabel,
223
- accessibilityLiveRegion: ariaLive === "polite" ? "polite" : ariaLive === "assertive" ? "assertive" : "none",
224
- testID,
225
- children: /* @__PURE__ */ jsx3(
226
- ActivityIndicator,
227
- {
228
- color,
229
- size: typeof size === "number" ? size : "small"
230
- }
231
- )
232
- }
233
- );
234
- };
235
- Spinner.displayName = "Spinner";
236
-
237
- // ../primitives-native/src/Icon.tsx
238
- import React from "react";
239
- import { View as View3 } from "react-native";
240
- import { jsx as jsx4 } from "react/jsx-runtime";
241
-
242
- // ../primitives-native/src/Divider.tsx
243
- import { View as View4 } from "react-native";
244
- import { jsx as jsx5 } from "react/jsx-runtime";
245
-
246
- // ../primitives-native/src/Input.tsx
247
- import { forwardRef } from "react";
248
- import { TextInput as RNTextInput } from "react-native";
249
- import { jsx as jsx6 } from "react/jsx-runtime";
250
- var keyboardTypeMap = {
251
- text: "default",
252
- number: "numeric",
253
- email: "email-address",
254
- tel: "phone-pad",
255
- url: "url",
256
- decimal: "decimal-pad"
257
- };
258
- var inputModeToKeyboardType = {
259
- none: "default",
260
- text: "default",
261
- decimal: "decimal-pad",
262
- numeric: "number-pad",
263
- tel: "phone-pad",
264
- search: "default",
265
- email: "email-address",
266
- url: "url"
267
- };
268
- var autoCompleteToTextContentType = {
269
- "one-time-code": "oneTimeCode",
270
- email: "emailAddress",
271
- username: "username",
272
- password: "password",
273
- "new-password": "newPassword",
274
- tel: "telephoneNumber",
275
- "postal-code": "postalCode",
276
- name: "name"
277
- };
278
- var InputPrimitive = forwardRef(
279
- ({
280
- value,
281
- placeholder,
282
- onChange,
283
- onChangeText,
284
- onFocus,
285
- onBlur,
286
- onKeyDown,
287
- disabled,
288
- secureTextEntry,
289
- style,
290
- color,
291
- fontSize,
292
- placeholderTextColor,
293
- maxLength,
294
- type,
295
- inputMode,
296
- autoComplete,
297
- id,
298
- "aria-describedby": ariaDescribedBy,
299
- "aria-label": ariaLabel,
300
- "aria-disabled": ariaDisabled,
301
- "data-testid": dataTestId
302
- }, ref) => {
303
- const handleChangeText = (text) => {
304
- onChangeText?.(text);
305
- if (onChange) {
306
- const syntheticEvent = {
307
- target: { value: text },
308
- currentTarget: { value: text },
309
- type: "change",
310
- nativeEvent: { text },
311
- preventDefault: () => {
312
- },
313
- stopPropagation: () => {
314
- },
315
- isTrusted: false
316
- };
317
- onChange(syntheticEvent);
318
- }
319
- };
320
- const keyboardType = inputMode ? inputModeToKeyboardType[inputMode] || "default" : type ? keyboardTypeMap[type] || "default" : "default";
321
- const textContentType = autoComplete ? autoCompleteToTextContentType[autoComplete] : void 0;
322
- return /* @__PURE__ */ jsx6(
323
- RNTextInput,
324
- {
325
- ref,
326
- value,
327
- placeholder,
328
- onChangeText: handleChangeText,
329
- onFocus,
330
- onBlur,
331
- onKeyPress: (e) => {
332
- if (onKeyDown) {
333
- onKeyDown({
334
- key: e.nativeEvent.key,
335
- preventDefault: () => {
336
- }
337
- });
338
- }
339
- },
340
- editable: !disabled,
341
- secureTextEntry: secureTextEntry || type === "password",
342
- keyboardType,
343
- textContentType,
344
- style: [
345
- {
346
- color,
347
- fontSize: typeof fontSize === "number" ? fontSize : void 0,
348
- flex: 1,
349
- padding: 0,
350
- textAlign: style?.textAlign || "left"
351
- },
352
- style
353
- ],
354
- placeholderTextColor,
355
- maxLength,
356
- testID: dataTestId || id,
357
- accessibilityLabel: ariaLabel,
358
- accessibilityHint: ariaDescribedBy,
359
- accessibilityState: {
360
- disabled: disabled || ariaDisabled
361
- },
362
- accessible: true
363
- }
364
- );
365
- }
366
- );
367
- InputPrimitive.displayName = "InputPrimitive";
368
-
369
- // ../primitives-native/src/TextArea.tsx
370
- import { forwardRef as forwardRef2 } from "react";
371
- import { TextInput as RNTextInput2 } from "react-native";
372
- import { jsx as jsx7 } from "react/jsx-runtime";
373
- var TextAreaPrimitive = forwardRef2(
374
- ({
375
- value,
376
- placeholder,
377
- onChange,
378
- onChangeText,
379
- onFocus,
380
- onBlur,
381
- onKeyDown,
382
- disabled,
383
- style,
384
- color,
385
- fontSize,
386
- placeholderTextColor,
387
- maxLength,
388
- rows,
389
- id,
390
- "aria-describedby": ariaDescribedBy,
391
- "aria-label": ariaLabel,
392
- "aria-disabled": ariaDisabled,
393
- "data-testid": dataTestId
394
- }, ref) => {
395
- const handleChangeText = (text) => {
396
- onChangeText?.(text);
397
- if (onChange) {
398
- const syntheticEvent = {
399
- target: { value: text },
400
- currentTarget: { value: text },
401
- type: "change",
402
- nativeEvent: { text },
403
- preventDefault: () => {
404
- },
405
- stopPropagation: () => {
406
- },
407
- isTrusted: false
408
- };
409
- onChange(syntheticEvent);
410
- }
411
- };
412
- return /* @__PURE__ */ jsx7(
413
- RNTextInput2,
414
- {
415
- ref,
416
- value,
417
- placeholder,
418
- onChangeText: handleChangeText,
419
- onFocus,
420
- onBlur,
421
- onKeyPress: (e) => {
422
- if (onKeyDown) {
423
- onKeyDown({
424
- key: e.nativeEvent.key,
425
- preventDefault: () => {
426
- }
427
- });
428
- }
429
- },
430
- editable: !disabled,
431
- multiline: true,
432
- numberOfLines: rows || 4,
433
- style: [
434
- {
435
- color,
436
- fontSize: typeof fontSize === "number" ? fontSize : void 0,
437
- flex: 1,
438
- padding: 0,
439
- textAlignVertical: "top",
440
- textAlign: style?.textAlign || "left"
441
- },
442
- style
443
- ],
444
- placeholderTextColor,
445
- maxLength,
446
- testID: dataTestId || id,
447
- accessibilityLabel: ariaLabel,
448
- accessibilityHint: ariaDescribedBy,
449
- accessibilityState: {
450
- disabled: disabled || ariaDisabled
451
- },
452
- accessible: true
453
- }
454
- );
455
- }
456
- );
457
- TextAreaPrimitive.displayName = "TextAreaPrimitive";
458
-
459
206
  // src/Link.tsx
460
207
  import { useDesignSystem } from "@xsolla/xui-core";
461
- import { jsx as jsx8 } from "react/jsx-runtime";
208
+ import { jsx as jsx3 } from "react/jsx-runtime";
462
209
  var Link = ({
463
210
  size = "md",
464
211
  href,
@@ -504,7 +251,7 @@ var Link = ({
504
251
  const defaultColor = theme.colors.control.link.primary;
505
252
  const disabledColor = theme.colors.control.text.disable;
506
253
  const textColor = disabled ? disabledColor : color || defaultColor;
507
- return /* @__PURE__ */ jsx8(
254
+ return /* @__PURE__ */ jsx3(
508
255
  Box,
509
256
  {
510
257
  as: "a",
@@ -528,7 +275,7 @@ var Link = ({
528
275
  outlineStyle: "solid",
529
276
  outlineOffset: 2
530
277
  },
531
- children: /* @__PURE__ */ jsx8(
278
+ children: /* @__PURE__ */ jsx3(
532
279
  Text,
533
280
  {
534
281
  color: textColor,