@xsolla/xui-notification 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.mjs CHANGED
@@ -203,263 +203,10 @@ 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/Notification.tsx
460
207
  import { useDesignSystem } from "@xsolla/xui-core";
461
208
  import { X, AlertCircle, Check } from "@xsolla/xui-icons";
462
- import { jsx as jsx8, jsxs } from "react/jsx-runtime";
209
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
463
210
  var Notification = ({
464
211
  tone = "neutral",
465
212
  type = "toast",
@@ -497,12 +244,12 @@ var Notification = ({
497
244
  const renderIcon = () => {
498
245
  switch (tone) {
499
246
  case "success":
500
- return /* @__PURE__ */ jsx8(Check, { size: config.iconSize, color: toneConfig.icon });
247
+ return /* @__PURE__ */ jsx3(Check, { size: config.iconSize, color: toneConfig.icon });
501
248
  case "warning":
502
249
  case "alert":
503
- return /* @__PURE__ */ jsx8(AlertCircle, { size: config.iconSize, color: toneConfig.icon });
250
+ return /* @__PURE__ */ jsx3(AlertCircle, { size: config.iconSize, color: toneConfig.icon });
504
251
  default:
505
- return /* @__PURE__ */ jsx8(AlertCircle, { size: config.iconSize, color: toneConfig.icon });
252
+ return /* @__PURE__ */ jsx3(AlertCircle, { size: config.iconSize, color: toneConfig.icon });
506
253
  }
507
254
  };
508
255
  return /* @__PURE__ */ jsxs(
@@ -517,7 +264,7 @@ var Notification = ({
517
264
  alignItems: type === "inline" ? "center" : "flex-start",
518
265
  gap: 16,
519
266
  children: [
520
- /* @__PURE__ */ jsx8(
267
+ /* @__PURE__ */ jsx3(
521
268
  Box,
522
269
  {
523
270
  width: config.iconWrapperSize,
@@ -536,7 +283,7 @@ var Notification = ({
536
283
  alignItems: type === "inline" ? "center" : "flex-start",
537
284
  children: [
538
285
  /* @__PURE__ */ jsxs(Box, { flex: 1, gap: 4, children: [
539
- title && /* @__PURE__ */ jsx8(
286
+ title && /* @__PURE__ */ jsx3(
540
287
  Text,
541
288
  {
542
289
  color: theme.colors.content.primary,
@@ -545,7 +292,7 @@ var Notification = ({
545
292
  children: title
546
293
  }
547
294
  ),
548
- message && /* @__PURE__ */ jsx8(
295
+ message && /* @__PURE__ */ jsx3(
549
296
  Text,
550
297
  {
551
298
  color: theme.colors.content.secondary,
@@ -554,7 +301,7 @@ var Notification = ({
554
301
  }
555
302
  )
556
303
  ] }),
557
- actionLabel && /* @__PURE__ */ jsx8(Box, { onPress: onAction, paddingVertical: type === "inline" ? 0 : 8, children: /* @__PURE__ */ jsx8(
304
+ actionLabel && /* @__PURE__ */ jsx3(Box, { onPress: onAction, paddingVertical: type === "inline" ? 0 : 8, children: /* @__PURE__ */ jsx3(
558
305
  Text,
559
306
  {
560
307
  color: theme.colors.content.primary,
@@ -568,14 +315,14 @@ var Notification = ({
568
315
  ]
569
316
  }
570
317
  ),
571
- showClose && /* @__PURE__ */ jsx8(Box, { onPress: onClose, marginTop: type === "inline" ? 0 : 2, children: /* @__PURE__ */ jsx8(
318
+ showClose && /* @__PURE__ */ jsx3(Box, { onPress: onClose, marginTop: type === "inline" ? 0 : 2, children: /* @__PURE__ */ jsx3(
572
319
  Box,
573
320
  {
574
321
  width: 24,
575
322
  height: 24,
576
323
  alignItems: "center",
577
324
  justifyContent: "center",
578
- children: /* @__PURE__ */ jsx8(X, { size: 18, color: theme.colors.content.primary })
325
+ children: /* @__PURE__ */ jsx3(X, { size: 18, color: theme.colors.content.primary })
579
326
  }
580
327
  ) })
581
328
  ]
@@ -1 +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/Notification.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 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 { X, AlertCircle, Check } from \"@xsolla/xui-icons\";\n\nexport interface NotificationProps {\n tone?: \"neutral\" | \"success\" | \"warning\" | \"alert\";\n type?: \"toast\" | \"inline\";\n title?: string;\n message?: string;\n actionLabel?: string;\n onAction?: () => void;\n onClose?: () => void;\n showClose?: boolean;\n}\n\nexport const Notification: React.FC<NotificationProps> = ({\n tone = \"neutral\",\n type = \"toast\",\n title,\n message,\n actionLabel,\n onAction,\n onClose,\n showClose = true,\n}) => {\n const { theme } = useDesignSystem();\n const config = theme.sizing.notification(type);\n\n const toneConfig = {\n neutral: {\n bg: theme.colors.background.neutral.secondary,\n content: theme.colors.content.neutral.primary,\n icon: theme.colors.content.neutral.primary,\n },\n success: {\n bg: theme.colors.background.success.secondary,\n content: theme.colors.content.success.primary,\n icon: theme.colors.content.success.primary,\n },\n warning: {\n bg: theme.colors.background.warning.secondary,\n content: theme.colors.content.warning.primary,\n icon: theme.colors.content.warning.primary,\n },\n alert: {\n bg: theme.colors.background.alert.secondary,\n content: theme.colors.content.alert.primary,\n icon: theme.colors.content.alert.primary,\n },\n }[tone];\n\n const renderIcon = () => {\n switch (tone) {\n case \"success\":\n return <Check size={config.iconSize} color={toneConfig.icon} />;\n case \"warning\":\n case \"alert\":\n return <AlertCircle size={config.iconSize} color={toneConfig.icon} />;\n default:\n return <AlertCircle size={config.iconSize} color={toneConfig.icon} />;\n }\n };\n\n return (\n <Box\n backgroundColor={toneConfig.bg}\n borderRadius={config.radius}\n paddingHorizontal={config.paddingHorizontal}\n paddingVertical={config.paddingVertical}\n width={config.width}\n flexDirection=\"row\"\n alignItems={type === \"inline\" ? \"center\" : \"flex-start\"}\n gap={16}\n >\n <Box\n width={config.iconWrapperSize}\n height={config.iconWrapperSize}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n {renderIcon()}\n </Box>\n\n <Box\n flex={1}\n flexDirection={type === \"inline\" ? \"row\" : \"column\"}\n gap={type === \"inline\" ? 28 : config.gap}\n alignItems={type === \"inline\" ? \"center\" : \"flex-start\"}\n >\n <Box flex={1} gap={4}>\n {title && (\n <Text\n color={theme.colors.content.primary}\n fontSize={config.titleSize}\n fontWeight=\"500\"\n >\n {title}\n </Text>\n )}\n {message && (\n <Text\n color={theme.colors.content.secondary}\n fontSize={config.messageSize}\n >\n {message}\n </Text>\n )}\n </Box>\n\n {actionLabel && (\n <Box onPress={onAction} paddingVertical={type === \"inline\" ? 0 : 8}>\n <Text\n color={theme.colors.content.primary}\n fontSize={16}\n fontWeight=\"500\"\n letterSpacing={0.4}\n whiteSpace=\"nowrap\"\n >\n {actionLabel}\n </Text>\n </Box>\n )}\n </Box>\n\n {showClose && (\n <Box onPress={onClose} marginTop={type === \"inline\" ? 0 : 2}>\n <Box\n width={24}\n height={24}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <X size={18} color={theme.colors.content.primary} />\n </Box>\n </Box>\n )}\n </Box>\n );\n};\n"],"mappings":";AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AAmID;AAhIC,IAAM,MAA0B,C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J;","names":["jsx","View","jsx","View","jsx","View","jsx","jsx","forwardRef","RNTextInput","jsx","jsx"]}
1
+ {"version":3,"sources":["../../../primitives-native/src/Box.tsx","../../../primitives-native/src/Text.tsx","../../src/Notification.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 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 { X, AlertCircle, Check } from \"@xsolla/xui-icons\";\n\nexport interface NotificationProps {\n tone?: \"neutral\" | \"success\" | \"warning\" | \"alert\";\n type?: \"toast\" | \"inline\";\n title?: string;\n message?: string;\n actionLabel?: string;\n onAction?: () => void;\n onClose?: () => void;\n showClose?: boolean;\n}\n\nexport const Notification: React.FC<NotificationProps> = ({\n tone = \"neutral\",\n type = \"toast\",\n title,\n message,\n actionLabel,\n onAction,\n onClose,\n showClose = true,\n}) => {\n const { theme } = useDesignSystem();\n const config = theme.sizing.notification(type);\n\n const toneConfig = {\n neutral: {\n bg: theme.colors.background.neutral.secondary,\n content: theme.colors.content.neutral.primary,\n icon: theme.colors.content.neutral.primary,\n },\n success: {\n bg: theme.colors.background.success.secondary,\n content: theme.colors.content.success.primary,\n icon: theme.colors.content.success.primary,\n },\n warning: {\n bg: theme.colors.background.warning.secondary,\n content: theme.colors.content.warning.primary,\n icon: theme.colors.content.warning.primary,\n },\n alert: {\n bg: theme.colors.background.alert.secondary,\n content: theme.colors.content.alert.primary,\n icon: theme.colors.content.alert.primary,\n },\n }[tone];\n\n const renderIcon = () => {\n switch (tone) {\n case \"success\":\n return <Check size={config.iconSize} color={toneConfig.icon} />;\n case \"warning\":\n case \"alert\":\n return <AlertCircle size={config.iconSize} color={toneConfig.icon} />;\n default:\n return <AlertCircle size={config.iconSize} color={toneConfig.icon} />;\n }\n };\n\n return (\n <Box\n backgroundColor={toneConfig.bg}\n borderRadius={config.radius}\n paddingHorizontal={config.paddingHorizontal}\n paddingVertical={config.paddingVertical}\n width={config.width}\n flexDirection=\"row\"\n alignItems={type === \"inline\" ? \"center\" : \"flex-start\"}\n gap={16}\n >\n <Box\n width={config.iconWrapperSize}\n height={config.iconWrapperSize}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n {renderIcon()}\n </Box>\n\n <Box\n flex={1}\n flexDirection={type === \"inline\" ? \"row\" : \"column\"}\n gap={type === \"inline\" ? 28 : config.gap}\n alignItems={type === \"inline\" ? \"center\" : \"flex-start\"}\n >\n <Box flex={1} gap={4}>\n {title && (\n <Text\n color={theme.colors.content.primary}\n fontSize={config.titleSize}\n fontWeight=\"500\"\n >\n {title}\n </Text>\n )}\n {message && (\n <Text\n color={theme.colors.content.secondary}\n fontSize={config.messageSize}\n >\n {message}\n </Text>\n )}\n </Box>\n\n {actionLabel && (\n <Box onPress={onAction} paddingVertical={type === \"inline\" ? 0 : 8}>\n <Text\n color={theme.colors.content.primary}\n fontSize={16}\n fontWeight=\"500\"\n letterSpacing={0.4}\n whiteSpace=\"nowrap\"\n >\n {actionLabel}\n </Text>\n </Box>\n )}\n </Box>\n\n {showClose && (\n <Box onPress={onClose} marginTop={type === \"inline\" ? 0 : 2}>\n <Box\n width={24}\n height={24}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <X size={18} color={theme.colors.content.primary} />\n </Box>\n </Box>\n )}\n </Box>\n );\n};\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,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,oBAAoB,CAAC,aAAkC;AAAA,IAC3D,iBACE,WAAW,YAAY,kBACnB,WAAW,kBACX;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,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js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -10,9 +10,9 @@
10
10
  "build:native": "PLATFORM=native tsup"
11
11
  },
12
12
  "dependencies": {
13
- "@xsolla/xui-core": "0.89.0",
14
- "@xsolla/xui-icons": "0.89.0",
15
- "@xsolla/xui-primitives-core": "0.89.0"
13
+ "@xsolla/xui-core": "0.91.0",
14
+ "@xsolla/xui-icons": "0.91.0",
15
+ "@xsolla/xui-primitives-core": "0.91.0"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": ">=16.8.0",
@@ -24,6 +24,7 @@
24
24
  "vitest": "^4.0.18"
25
25
  },
26
26
  "license": "MIT",
27
+ "sideEffects": false,
27
28
  "react-native": "./native/index.js",
28
29
  "exports": {
29
30
  ".": {